@schmitech/chatbot-widget 0.4.14 → 0.4.15
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/README.md +13 -11
- package/dist/chatbot-widget.bundle.js +91 -91
- package/dist/chatbot-widget.css +1 -1
- package/dist/chatbot-widget.es.js +898 -858
- package/dist/chatbot-widget.umd.js +90 -90
- package/dist/config/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -82,12 +82,12 @@ function qI() {
|
|
|
82
82
|
}
|
|
83
83
|
function E(S, N, J) {
|
|
84
84
|
{
|
|
85
|
-
var ce = I.ReactDebugCurrentFrame,
|
|
86
|
-
|
|
87
|
-
var
|
|
85
|
+
var ce = I.ReactDebugCurrentFrame, Me = ce.getStackAddendum();
|
|
86
|
+
Me !== "" && (N += "%s", J = J.concat([Me]));
|
|
87
|
+
var Se = J.map(function(fe) {
|
|
88
88
|
return String(fe);
|
|
89
89
|
});
|
|
90
|
-
|
|
90
|
+
Se.unshift("Warning: " + N), Function.prototype.apply.call(console[S], console, Se);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
var R = !1, T = !1, F = !1, X = !1, V = !1, B;
|
|
@@ -103,8 +103,8 @@ function qI() {
|
|
|
103
103
|
var ce = S.displayName;
|
|
104
104
|
if (ce)
|
|
105
105
|
return ce;
|
|
106
|
-
var
|
|
107
|
-
return
|
|
106
|
+
var Me = N.displayName || N.name || "";
|
|
107
|
+
return Me !== "" ? J + "(" + Me + ")" : J;
|
|
108
108
|
}
|
|
109
109
|
function ie(S) {
|
|
110
110
|
return S.displayName || "Context";
|
|
@@ -144,9 +144,9 @@ function qI() {
|
|
|
144
144
|
var ce = S.displayName || null;
|
|
145
145
|
return ce !== null ? ce : te(S.type) || "Memo";
|
|
146
146
|
case k: {
|
|
147
|
-
var
|
|
147
|
+
var Me = S, Se = Me._payload, fe = Me._init;
|
|
148
148
|
try {
|
|
149
|
-
return te(fe(
|
|
149
|
+
return te(fe(Se));
|
|
150
150
|
} catch {
|
|
151
151
|
return null;
|
|
152
152
|
}
|
|
@@ -154,14 +154,14 @@ function qI() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var Y = Object.assign, ue = 0, me,
|
|
157
|
+
var Y = Object.assign, ue = 0, me, Le, De, L, ve, be, A;
|
|
158
158
|
function je() {
|
|
159
159
|
}
|
|
160
160
|
je.__reactDisabledLog = !0;
|
|
161
161
|
function _e() {
|
|
162
162
|
{
|
|
163
163
|
if (ue === 0) {
|
|
164
|
-
me = console.log,
|
|
164
|
+
me = console.log, Le = console.info, De = console.warn, L = console.error, ve = console.group, be = console.groupCollapsed, A = console.groupEnd;
|
|
165
165
|
var S = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
@@ -194,7 +194,7 @@ function qI() {
|
|
|
194
194
|
value: me
|
|
195
195
|
}),
|
|
196
196
|
info: Y({}, S, {
|
|
197
|
-
value:
|
|
197
|
+
value: Le
|
|
198
198
|
}),
|
|
199
199
|
warn: Y({}, S, {
|
|
200
200
|
value: De
|
|
@@ -203,10 +203,10 @@ function qI() {
|
|
|
203
203
|
value: L
|
|
204
204
|
}),
|
|
205
205
|
group: Y({}, S, {
|
|
206
|
-
value:
|
|
206
|
+
value: ve
|
|
207
207
|
}),
|
|
208
208
|
groupCollapsed: Y({}, S, {
|
|
209
|
-
value:
|
|
209
|
+
value: be
|
|
210
210
|
}),
|
|
211
211
|
groupEnd: Y({}, S, {
|
|
212
212
|
value: A
|
|
@@ -222,8 +222,8 @@ function qI() {
|
|
|
222
222
|
if (Pe === void 0)
|
|
223
223
|
try {
|
|
224
224
|
throw Error();
|
|
225
|
-
} catch (
|
|
226
|
-
var ce =
|
|
225
|
+
} catch (Me) {
|
|
226
|
+
var ce = Me.stack.trim().match(/\n( *(at )?)/);
|
|
227
227
|
Pe = ce && ce[1] || "";
|
|
228
228
|
}
|
|
229
229
|
return `
|
|
@@ -245,10 +245,10 @@ function qI() {
|
|
|
245
245
|
}
|
|
246
246
|
var ce;
|
|
247
247
|
We = !0;
|
|
248
|
-
var
|
|
248
|
+
var Me = Error.prepareStackTrace;
|
|
249
249
|
Error.prepareStackTrace = void 0;
|
|
250
|
-
var
|
|
251
|
-
|
|
250
|
+
var Se;
|
|
251
|
+
Se = Ze.current, Ze.current = null, _e();
|
|
252
252
|
try {
|
|
253
253
|
if (N) {
|
|
254
254
|
var fe = function() {
|
|
@@ -292,21 +292,21 @@ function qI() {
|
|
|
292
292
|
if (Re !== 1 || Oe !== 1)
|
|
293
293
|
do
|
|
294
294
|
if (Re--, Oe--, Oe < 0 || ke[Re] !== et[Oe]) {
|
|
295
|
-
var
|
|
295
|
+
var Ct = `
|
|
296
296
|
` + ke[Re].replace(" at new ", " at ");
|
|
297
|
-
return S.displayName &&
|
|
297
|
+
return S.displayName && Ct.includes("<anonymous>") && (Ct = Ct.replace("<anonymous>", S.displayName)), typeof S == "function" && kt.set(S, Ct), Ct;
|
|
298
298
|
}
|
|
299
299
|
while (Re >= 1 && Oe >= 0);
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
} finally {
|
|
304
|
-
We = !1, Ze.current =
|
|
304
|
+
We = !1, Ze.current = Se, Te(), Error.prepareStackTrace = Me;
|
|
305
305
|
}
|
|
306
306
|
var X0 = S ? S.displayName || S.name : "", M1 = X0 ? Ge(X0) : "";
|
|
307
307
|
return typeof S == "function" && kt.set(S, M1), M1;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function Xt(S, N, J) {
|
|
310
310
|
return o1(S, !1);
|
|
311
311
|
}
|
|
312
312
|
function Dt(S) {
|
|
@@ -329,13 +329,13 @@ function qI() {
|
|
|
329
329
|
if (typeof S == "object")
|
|
330
330
|
switch (S.$$typeof) {
|
|
331
331
|
case h:
|
|
332
|
-
return
|
|
332
|
+
return Xt(S.render);
|
|
333
333
|
case m:
|
|
334
334
|
return mt(S.type, N, J);
|
|
335
335
|
case k: {
|
|
336
|
-
var ce = S,
|
|
336
|
+
var ce = S, Me = ce._payload, Se = ce._init;
|
|
337
337
|
try {
|
|
338
|
-
return mt(
|
|
338
|
+
return mt(Se(Me), N, J);
|
|
339
339
|
} catch {
|
|
340
340
|
}
|
|
341
341
|
}
|
|
@@ -350,11 +350,11 @@ function qI() {
|
|
|
350
350
|
} else
|
|
351
351
|
ft.setExtraStackFrame(null);
|
|
352
352
|
}
|
|
353
|
-
function G0(S, N, J, ce,
|
|
353
|
+
function G0(S, N, J, ce, Me) {
|
|
354
354
|
{
|
|
355
|
-
var
|
|
355
|
+
var Se = Function.call.bind(Qe);
|
|
356
356
|
for (var fe in S)
|
|
357
|
-
if (
|
|
357
|
+
if (Se(S, fe)) {
|
|
358
358
|
var ke = void 0;
|
|
359
359
|
try {
|
|
360
360
|
if (typeof S[fe] != "function") {
|
|
@@ -365,15 +365,15 @@ function qI() {
|
|
|
365
365
|
} catch (Re) {
|
|
366
366
|
ke = Re;
|
|
367
367
|
}
|
|
368
|
-
ke && !(ke instanceof Error) && (Rt(
|
|
368
|
+
ke && !(ke instanceof Error) && (Rt(Me), q("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ce || "React class", J, fe, typeof ke), Rt(null)), ke instanceof Error && !(ke.message in Lt) && (Lt[ke.message] = !0, Rt(Me), q("Failed %s type: %s", J, ke.message), Rt(null));
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
var $e = Array.isArray;
|
|
373
|
-
function
|
|
373
|
+
function St(S) {
|
|
374
374
|
return $e(S);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function Et(S) {
|
|
377
377
|
{
|
|
378
378
|
var N = typeof Symbol == "function" && Symbol.toStringTag, J = N && S[Symbol.toStringTag] || S.constructor.name || "Object";
|
|
379
379
|
return J;
|
|
@@ -389,16 +389,16 @@ function qI() {
|
|
|
389
389
|
function P(S) {
|
|
390
390
|
return "" + S;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function W(S) {
|
|
393
393
|
if (W0(S))
|
|
394
|
-
return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
394
|
+
return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Et(S)), P(S);
|
|
395
395
|
}
|
|
396
|
-
var
|
|
396
|
+
var oe = I.ReactCurrentOwner, pe = {
|
|
397
397
|
key: !0,
|
|
398
398
|
ref: !0,
|
|
399
399
|
__self: !0,
|
|
400
400
|
__source: !0
|
|
401
|
-
},
|
|
401
|
+
}, xe, lt;
|
|
402
402
|
function Yt(S) {
|
|
403
403
|
if (Qe.call(S, "ref")) {
|
|
404
404
|
var N = Object.getOwnPropertyDescriptor(S, "ref").get;
|
|
@@ -416,12 +416,12 @@ function qI() {
|
|
|
416
416
|
return S.key !== void 0;
|
|
417
417
|
}
|
|
418
418
|
function v1(S, N) {
|
|
419
|
-
typeof S.ref == "string" &&
|
|
419
|
+
typeof S.ref == "string" && oe.current;
|
|
420
420
|
}
|
|
421
421
|
function x1(S, N) {
|
|
422
422
|
{
|
|
423
423
|
var J = function() {
|
|
424
|
-
|
|
424
|
+
xe || (xe = !0, q("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", N));
|
|
425
425
|
};
|
|
426
426
|
J.isReactWarning = !0, Object.defineProperty(S, "key", {
|
|
427
427
|
get: J,
|
|
@@ -440,7 +440,7 @@ function qI() {
|
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
var l1 = function(S, N, J, ce,
|
|
443
|
+
var l1 = function(S, N, J, ce, Me, Se, fe) {
|
|
444
444
|
var ke = {
|
|
445
445
|
// This tag allows us to uniquely identify this as a React Element
|
|
446
446
|
$$typeof: r,
|
|
@@ -450,7 +450,7 @@ function qI() {
|
|
|
450
450
|
ref: J,
|
|
451
451
|
props: fe,
|
|
452
452
|
// Record the component responsible for creating this element.
|
|
453
|
-
_owner:
|
|
453
|
+
_owner: Se
|
|
454
454
|
};
|
|
455
455
|
return ke._store = {}, Object.defineProperty(ke._store, "validated", {
|
|
456
456
|
configurable: !1,
|
|
@@ -466,25 +466,25 @@ function qI() {
|
|
|
466
466
|
configurable: !1,
|
|
467
467
|
enumerable: !1,
|
|
468
468
|
writable: !1,
|
|
469
|
-
value:
|
|
469
|
+
value: Me
|
|
470
470
|
}), Object.freeze && (Object.freeze(ke.props), Object.freeze(ke)), ke;
|
|
471
471
|
};
|
|
472
|
-
function Bt(S, N, J, ce,
|
|
472
|
+
function Bt(S, N, J, ce, Me) {
|
|
473
473
|
{
|
|
474
|
-
var
|
|
475
|
-
J !== void 0 && (
|
|
476
|
-
for (
|
|
477
|
-
Qe.call(N,
|
|
474
|
+
var Se, fe = {}, ke = null, et = null;
|
|
475
|
+
J !== void 0 && (W(J), ke = "" + J), Ht(N) && (W(N.key), ke = "" + N.key), Yt(N) && (et = N.ref, v1(N, Me));
|
|
476
|
+
for (Se in N)
|
|
477
|
+
Qe.call(N, Se) && !pe.hasOwnProperty(Se) && (fe[Se] = N[Se]);
|
|
478
478
|
if (S && S.defaultProps) {
|
|
479
479
|
var Re = S.defaultProps;
|
|
480
|
-
for (
|
|
481
|
-
fe[
|
|
480
|
+
for (Se in Re)
|
|
481
|
+
fe[Se] === void 0 && (fe[Se] = Re[Se]);
|
|
482
482
|
}
|
|
483
483
|
if (ke || et) {
|
|
484
484
|
var Oe = typeof S == "function" ? S.displayName || S.name || "Unknown" : S;
|
|
485
485
|
ke && x1(fe, Oe), et && Je(fe, Oe);
|
|
486
486
|
}
|
|
487
|
-
return l1(S, ke, et,
|
|
487
|
+
return l1(S, ke, et, Me, ce, oe.current, fe);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
var jx = I.ReactCurrentOwner, _w = I.ReactDebugCurrentFrame;
|
|
@@ -545,7 +545,7 @@ Check the top-level render call using <` + J + ">.");
|
|
|
545
545
|
{
|
|
546
546
|
if (typeof S != "object")
|
|
547
547
|
return;
|
|
548
|
-
if (
|
|
548
|
+
if (St(S))
|
|
549
549
|
for (var J = 0; J < S.length; J++) {
|
|
550
550
|
var ce = S[J];
|
|
551
551
|
Vx(ce) && Ww(ce, N);
|
|
@@ -553,9 +553,9 @@ Check the top-level render call using <` + J + ">.");
|
|
|
553
553
|
else if (Vx(S))
|
|
554
554
|
S._store && (S._store.validated = !0);
|
|
555
555
|
else if (S) {
|
|
556
|
-
var
|
|
557
|
-
if (typeof
|
|
558
|
-
for (var
|
|
556
|
+
var Me = w(S);
|
|
557
|
+
if (typeof Me == "function" && Me !== S.entries)
|
|
558
|
+
for (var Se = Me.call(S), fe; !(fe = Se.next()).done; )
|
|
559
559
|
Vx(fe.value) && Ww(fe.value, N);
|
|
560
560
|
}
|
|
561
561
|
}
|
|
@@ -579,8 +579,8 @@ Check the top-level render call using <` + J + ">.");
|
|
|
579
579
|
G0(J, S.props, "prop", ce, S);
|
|
580
580
|
} else if (N.PropTypes !== void 0 && !Ox) {
|
|
581
581
|
Ox = !0;
|
|
582
|
-
var
|
|
583
|
-
q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
582
|
+
var Me = te(N);
|
|
583
|
+
q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Me || "Unknown");
|
|
584
584
|
}
|
|
585
585
|
typeof N.getDefaultProps == "function" && !N.getDefaultProps.isReactClassApproved && q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
586
586
|
}
|
|
@@ -598,7 +598,7 @@ Check the top-level render call using <` + J + ">.");
|
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
var Xw = {};
|
|
601
|
-
function Yw(S, N, J, ce,
|
|
601
|
+
function Yw(S, N, J, ce, Me, Se) {
|
|
602
602
|
{
|
|
603
603
|
var fe = G(S);
|
|
604
604
|
if (!fe) {
|
|
@@ -607,23 +607,23 @@ Check the top-level render call using <` + J + ">.");
|
|
|
607
607
|
var et = fI();
|
|
608
608
|
et ? ke += et : ke += Zw();
|
|
609
609
|
var Re;
|
|
610
|
-
S === null ? Re = "null" :
|
|
610
|
+
S === null ? Re = "null" : St(S) ? Re = "array" : S !== void 0 && S.$$typeof === r ? (Re = "<" + (te(S.type) || "Unknown") + " />", ke = " Did you accidentally export a JSX literal instead of a component?") : Re = typeof S, q("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Re, ke);
|
|
611
611
|
}
|
|
612
|
-
var Oe = Bt(S, N, J,
|
|
612
|
+
var Oe = Bt(S, N, J, Me, Se);
|
|
613
613
|
if (Oe == null)
|
|
614
614
|
return Oe;
|
|
615
615
|
if (fe) {
|
|
616
|
-
var
|
|
617
|
-
if (
|
|
616
|
+
var Ct = N.children;
|
|
617
|
+
if (Ct !== void 0)
|
|
618
618
|
if (ce)
|
|
619
|
-
if (
|
|
620
|
-
for (var X0 = 0; X0 <
|
|
621
|
-
$w(
|
|
622
|
-
Object.freeze && Object.freeze(
|
|
619
|
+
if (St(Ct)) {
|
|
620
|
+
for (var X0 = 0; X0 < Ct.length; X0++)
|
|
621
|
+
$w(Ct[X0], S);
|
|
622
|
+
Object.freeze && Object.freeze(Ct);
|
|
623
623
|
} else
|
|
624
624
|
q("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
625
625
|
else
|
|
626
|
-
$w(
|
|
626
|
+
$w(Ct, S);
|
|
627
627
|
}
|
|
628
628
|
if (Qe.call(N, "key")) {
|
|
629
629
|
var M1 = te(S), ct = Object.keys(N).filter(function(CI) {
|
|
@@ -654,7 +654,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
654
654
|
}
|
|
655
655
|
var HI = {};
|
|
656
656
|
HI.NODE_ENV === "production" ? CM.exports = TI() : CM.exports = qI();
|
|
657
|
-
var
|
|
657
|
+
var U = CM.exports;
|
|
658
658
|
/**
|
|
659
659
|
* @license lucide-react v0.344.0 - ISC
|
|
660
660
|
*
|
|
@@ -9430,7 +9430,7 @@ const g4 = i("Gamepad", [
|
|
|
9430
9430
|
* This source code is licensed under the ISC license.
|
|
9431
9431
|
* See the LICENSE file in the root directory of this source tree.
|
|
9432
9432
|
*/
|
|
9433
|
-
const
|
|
9433
|
+
const jt = i("GanttChartSquare", [
|
|
9434
9434
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
9435
9435
|
["path", { d: "M9 8h7", key: "kbo1nt" }],
|
|
9436
9436
|
["path", { d: "M8 12h6", key: "ikassy" }],
|
|
@@ -9882,7 +9882,7 @@ const o0 = i("Grid2x2", [
|
|
|
9882
9882
|
* This source code is licensed under the ISC license.
|
|
9883
9883
|
* See the LICENSE file in the root directory of this source tree.
|
|
9884
9884
|
*/
|
|
9885
|
-
const
|
|
9885
|
+
const Ot = i("Grid3x3", [
|
|
9886
9886
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
9887
9887
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
9888
9888
|
["path", { d: "M3 15h18", key: "5xshup" }],
|
|
@@ -21133,7 +21133,7 @@ const FI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21133
21133
|
Gamepad: g4,
|
|
21134
21134
|
Gamepad2: f4,
|
|
21135
21135
|
GanttChart: v4,
|
|
21136
|
-
GanttChartSquare:
|
|
21136
|
+
GanttChartSquare: jt,
|
|
21137
21137
|
Gauge: M4,
|
|
21138
21138
|
GaugeCircle: x4,
|
|
21139
21139
|
Gavel: w4,
|
|
@@ -21166,7 +21166,7 @@ const FI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21166
21166
|
GraduationCap: $4,
|
|
21167
21167
|
Grape: X4,
|
|
21168
21168
|
Grid2x2: o0,
|
|
21169
|
-
Grid3x3:
|
|
21169
|
+
Grid3x3: Ot,
|
|
21170
21170
|
Grip: Q4,
|
|
21171
21171
|
GripHorizontal: Y4,
|
|
21172
21172
|
GripVertical: K4,
|
|
@@ -23272,10 +23272,10 @@ const DI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23272
23272
|
GamepadIcon: g4,
|
|
23273
23273
|
GanttChart: v4,
|
|
23274
23274
|
GanttChartIcon: v4,
|
|
23275
|
-
GanttChartSquare:
|
|
23276
|
-
GanttChartSquareIcon:
|
|
23277
|
-
GanttSquare:
|
|
23278
|
-
GanttSquareIcon:
|
|
23275
|
+
GanttChartSquare: jt,
|
|
23276
|
+
GanttChartSquareIcon: jt,
|
|
23277
|
+
GanttSquare: jt,
|
|
23278
|
+
GanttSquareIcon: jt,
|
|
23279
23279
|
Gauge: M4,
|
|
23280
23280
|
GaugeCircle: x4,
|
|
23281
23281
|
GaugeCircleIcon: x4,
|
|
@@ -23342,16 +23342,16 @@ const DI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23342
23342
|
GraduationCapIcon: $4,
|
|
23343
23343
|
Grape: X4,
|
|
23344
23344
|
GrapeIcon: X4,
|
|
23345
|
-
Grid:
|
|
23345
|
+
Grid: Ot,
|
|
23346
23346
|
Grid2X2: o0,
|
|
23347
23347
|
Grid2X2Icon: o0,
|
|
23348
23348
|
Grid2x2: o0,
|
|
23349
23349
|
Grid2x2Icon: o0,
|
|
23350
|
-
Grid3X3:
|
|
23351
|
-
Grid3X3Icon:
|
|
23352
|
-
Grid3x3:
|
|
23353
|
-
Grid3x3Icon:
|
|
23354
|
-
GridIcon:
|
|
23350
|
+
Grid3X3: Ot,
|
|
23351
|
+
Grid3X3Icon: Ot,
|
|
23352
|
+
Grid3x3: Ot,
|
|
23353
|
+
Grid3x3Icon: Ot,
|
|
23354
|
+
GridIcon: Ot,
|
|
23355
23355
|
Grip: Q4,
|
|
23356
23356
|
GripHorizontal: Y4,
|
|
23357
23357
|
GripHorizontalIcon: Y4,
|
|
@@ -24300,8 +24300,8 @@ const DI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
24300
24300
|
LucideGamepad: g4,
|
|
24301
24301
|
LucideGamepad2: f4,
|
|
24302
24302
|
LucideGanttChart: v4,
|
|
24303
|
-
LucideGanttChartSquare:
|
|
24304
|
-
LucideGanttSquare:
|
|
24303
|
+
LucideGanttChartSquare: jt,
|
|
24304
|
+
LucideGanttSquare: jt,
|
|
24305
24305
|
LucideGauge: M4,
|
|
24306
24306
|
LucideGaugeCircle: x4,
|
|
24307
24307
|
LucideGavel: w4,
|
|
@@ -24335,11 +24335,11 @@ const DI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
24335
24335
|
LucideGrab: W4,
|
|
24336
24336
|
LucideGraduationCap: $4,
|
|
24337
24337
|
LucideGrape: X4,
|
|
24338
|
-
LucideGrid:
|
|
24338
|
+
LucideGrid: Ot,
|
|
24339
24339
|
LucideGrid2X2: o0,
|
|
24340
24340
|
LucideGrid2x2: o0,
|
|
24341
|
-
LucideGrid3X3:
|
|
24342
|
-
LucideGrid3x3:
|
|
24341
|
+
LucideGrid3X3: Ot,
|
|
24342
|
+
LucideGrid3x3: Ot,
|
|
24343
24343
|
LucideGrip: Q4,
|
|
24344
24344
|
LucideGripHorizontal: Y4,
|
|
24345
24345
|
LucideGripVertical: K4,
|
|
@@ -24918,7 +24918,7 @@ const DI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
24918
24918
|
LucideSquareDashedBottomCode: Pf,
|
|
24919
24919
|
LucideSquareDot: Y1,
|
|
24920
24920
|
LucideSquareEqual: Q1,
|
|
24921
|
-
LucideSquareGantt:
|
|
24921
|
+
LucideSquareGantt: jt,
|
|
24922
24922
|
LucideSquareKanban: s0,
|
|
24923
24923
|
LucideSquareKanbanDashed: c0,
|
|
24924
24924
|
LucideSquarePen: gt,
|
|
@@ -26019,8 +26019,8 @@ const DI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
26019
26019
|
SquareDotIcon: Y1,
|
|
26020
26020
|
SquareEqual: Q1,
|
|
26021
26021
|
SquareEqualIcon: Q1,
|
|
26022
|
-
SquareGantt:
|
|
26023
|
-
SquareGanttIcon:
|
|
26022
|
+
SquareGantt: jt,
|
|
26023
|
+
SquareGanttIcon: jt,
|
|
26024
26024
|
SquareIcon: Ef,
|
|
26025
26025
|
SquareKanban: s0,
|
|
26026
26026
|
SquareKanbanDashed: c0,
|
|
@@ -26961,7 +26961,7 @@ function nw(e) {
|
|
|
26961
26961
|
typeof window > "u" || (sessionStorage.setItem(qM, e), window.CHATBOT_SESSION_ID = e);
|
|
26962
26962
|
}
|
|
26963
26963
|
const rA = 120, nA = 200;
|
|
26964
|
-
let
|
|
26964
|
+
let we = {
|
|
26965
26965
|
MAX_MESSAGE_LENGTH: 250,
|
|
26966
26966
|
MAX_SUGGESTED_QUESTION_LENGTH: rA,
|
|
26967
26967
|
MAX_SUGGESTED_QUESTION_QUERY_LENGTH: nA,
|
|
@@ -27301,11 +27301,11 @@ const aA = `
|
|
|
27301
27301
|
transform: translateY(-1px);
|
|
27302
27302
|
}
|
|
27303
27303
|
`, iA = (e) => {
|
|
27304
|
-
const { BREAKPOINTS: t, WIDTHS: r } =
|
|
27304
|
+
const { BREAKPOINTS: t, WIDTHS: r } = we.WINDOW_DIMENSIONS;
|
|
27305
27305
|
return e < t.SM ? "100%" : e < t.MD ? r.SM : e < t.LG ? r.MD : r.LG;
|
|
27306
|
-
}, oA = (e) => e <
|
|
27306
|
+
}, oA = (e) => e < we.WINDOW_DIMENSIONS.BREAKPOINTS.SM ? "100%" : we.WINDOW_DIMENSIONS.WIDTHS.SM, lA = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif";
|
|
27307
27307
|
function cA(e) {
|
|
27308
|
-
Object.assign(
|
|
27308
|
+
Object.assign(we, e);
|
|
27309
27309
|
}
|
|
27310
27310
|
let sb = !1;
|
|
27311
27311
|
function sA() {
|
|
@@ -27339,7 +27339,7 @@ const tS = YI((e, t) => ({
|
|
|
27339
27339
|
getSessionId: () => t().sessionId,
|
|
27340
27340
|
sendMessage: async (r) => {
|
|
27341
27341
|
try {
|
|
27342
|
-
const n =
|
|
27342
|
+
const n = we.MAX_SUGGESTED_QUESTION_QUERY_LENGTH;
|
|
27343
27343
|
let a = r;
|
|
27344
27344
|
if (r.length > n && (a = r.substring(0, n)), !sA())
|
|
27345
27345
|
throw new Error("API not properly configured");
|
|
@@ -27399,7 +27399,7 @@ const tS = YI((e, t) => ({
|
|
|
27399
27399
|
suggestedQuestions: {
|
|
27400
27400
|
background: "#F3F4F6",
|
|
27401
27401
|
text: "#1F2937",
|
|
27402
|
-
|
|
27402
|
+
highlightedBackground: "#FEF3C7"
|
|
27403
27403
|
},
|
|
27404
27404
|
chatButton: {
|
|
27405
27405
|
background: "#ffffff",
|
|
@@ -27432,12 +27432,12 @@ const tS = YI((e, t) => ({
|
|
|
27432
27432
|
behavior: g ? "auto" : "smooth"
|
|
27433
27433
|
}), setTimeout(() => {
|
|
27434
27434
|
m();
|
|
27435
|
-
}, g ? 0 :
|
|
27435
|
+
}, g ? 0 : we.ANIMATIONS.SCROLL_TIMEOUT));
|
|
27436
27436
|
}
|
|
27437
27437
|
}, []), m = dt(() => {
|
|
27438
27438
|
if (c.current && !e) {
|
|
27439
|
-
const { scrollTop: g, scrollHeight: x, clientHeight: C } = c.current, w = Math.abs(x - g - C) <
|
|
27440
|
-
r(!I && g >
|
|
27439
|
+
const { scrollTop: g, scrollHeight: x, clientHeight: C } = c.current, w = Math.abs(x - g - C) < we.SCROLL_THRESHOLDS.BOTTOM_THRESHOLD, I = g < we.SCROLL_THRESHOLDS.TOP_THRESHOLD;
|
|
27440
|
+
r(!I && g > we.SCROLL_THRESHOLDS.SHOW_SCROLL_TOP_OFFSET), a(!w);
|
|
27441
27441
|
}
|
|
27442
27442
|
}, [e]), k = dt(() => {
|
|
27443
27443
|
c.current && (l(!0), c.current.scrollTo({
|
|
@@ -27445,7 +27445,7 @@ const tS = YI((e, t) => ({
|
|
|
27445
27445
|
behavior: "smooth"
|
|
27446
27446
|
}), setTimeout(() => {
|
|
27447
27447
|
l(!1), m();
|
|
27448
|
-
},
|
|
27448
|
+
}, we.ANIMATIONS.SCROLL_TIMEOUT));
|
|
27449
27449
|
}, [m]);
|
|
27450
27450
|
return {
|
|
27451
27451
|
// State
|
|
@@ -27496,7 +27496,7 @@ const tS = YI((e, t) => ({
|
|
|
27496
27496
|
}) => {
|
|
27497
27497
|
const [n, a] = ut(""), [o, l] = ut(!1), c = nt(null), s = dt((k) => {
|
|
27498
27498
|
const g = k.target.value;
|
|
27499
|
-
g.length <=
|
|
27499
|
+
g.length <= we.MAX_MESSAGE_LENGTH && a(g);
|
|
27500
27500
|
}, []), h = dt(() => {
|
|
27501
27501
|
n.trim() && !t && (e(n.trim()), a(""));
|
|
27502
27502
|
}, [n, t, e]), u = dt((k) => {
|
|
@@ -27616,7 +27616,7 @@ pt.prototype.property = "";
|
|
|
27616
27616
|
pt.prototype.spaceSeparated = !1;
|
|
27617
27617
|
pt.prototype.space = void 0;
|
|
27618
27618
|
let vA = 0;
|
|
27619
|
-
const se = U0(), Ve = U0(), HM = U0(),
|
|
27619
|
+
const se = U0(), Ve = U0(), HM = U0(), Z = U0(), Ae = U0(), rr = U0(), vt = U0();
|
|
27620
27620
|
function U0() {
|
|
27621
27621
|
return 2 ** ++vA;
|
|
27622
27622
|
}
|
|
@@ -27626,9 +27626,9 @@ const BM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
27626
27626
|
booleanish: Ve,
|
|
27627
27627
|
commaOrSpaceSeparated: vt,
|
|
27628
27628
|
commaSeparated: rr,
|
|
27629
|
-
number:
|
|
27629
|
+
number: Z,
|
|
27630
27630
|
overloadedBoolean: HM,
|
|
27631
|
-
spaceSeparated:
|
|
27631
|
+
spaceSeparated: Ae
|
|
27632
27632
|
}, Symbol.toStringTag, { value: "Module" })), $x = (
|
|
27633
27633
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
27634
27634
|
Object.keys(BM)
|
|
@@ -27680,48 +27680,48 @@ const iS = hr({
|
|
|
27680
27680
|
ariaAutoComplete: null,
|
|
27681
27681
|
ariaBusy: Ve,
|
|
27682
27682
|
ariaChecked: Ve,
|
|
27683
|
-
ariaColCount:
|
|
27684
|
-
ariaColIndex:
|
|
27685
|
-
ariaColSpan:
|
|
27686
|
-
ariaControls:
|
|
27683
|
+
ariaColCount: Z,
|
|
27684
|
+
ariaColIndex: Z,
|
|
27685
|
+
ariaColSpan: Z,
|
|
27686
|
+
ariaControls: Ae,
|
|
27687
27687
|
ariaCurrent: null,
|
|
27688
|
-
ariaDescribedBy:
|
|
27688
|
+
ariaDescribedBy: Ae,
|
|
27689
27689
|
ariaDetails: null,
|
|
27690
27690
|
ariaDisabled: Ve,
|
|
27691
|
-
ariaDropEffect:
|
|
27691
|
+
ariaDropEffect: Ae,
|
|
27692
27692
|
ariaErrorMessage: null,
|
|
27693
27693
|
ariaExpanded: Ve,
|
|
27694
|
-
ariaFlowTo:
|
|
27694
|
+
ariaFlowTo: Ae,
|
|
27695
27695
|
ariaGrabbed: Ve,
|
|
27696
27696
|
ariaHasPopup: null,
|
|
27697
27697
|
ariaHidden: Ve,
|
|
27698
27698
|
ariaInvalid: null,
|
|
27699
27699
|
ariaKeyShortcuts: null,
|
|
27700
27700
|
ariaLabel: null,
|
|
27701
|
-
ariaLabelledBy:
|
|
27702
|
-
ariaLevel:
|
|
27701
|
+
ariaLabelledBy: Ae,
|
|
27702
|
+
ariaLevel: Z,
|
|
27703
27703
|
ariaLive: null,
|
|
27704
27704
|
ariaModal: Ve,
|
|
27705
27705
|
ariaMultiLine: Ve,
|
|
27706
27706
|
ariaMultiSelectable: Ve,
|
|
27707
27707
|
ariaOrientation: null,
|
|
27708
|
-
ariaOwns:
|
|
27708
|
+
ariaOwns: Ae,
|
|
27709
27709
|
ariaPlaceholder: null,
|
|
27710
|
-
ariaPosInSet:
|
|
27710
|
+
ariaPosInSet: Z,
|
|
27711
27711
|
ariaPressed: Ve,
|
|
27712
27712
|
ariaReadOnly: Ve,
|
|
27713
27713
|
ariaRelevant: null,
|
|
27714
27714
|
ariaRequired: Ve,
|
|
27715
|
-
ariaRoleDescription:
|
|
27716
|
-
ariaRowCount:
|
|
27717
|
-
ariaRowIndex:
|
|
27718
|
-
ariaRowSpan:
|
|
27715
|
+
ariaRoleDescription: Ae,
|
|
27716
|
+
ariaRowCount: Z,
|
|
27717
|
+
ariaRowIndex: Z,
|
|
27718
|
+
ariaRowSpan: Z,
|
|
27719
27719
|
ariaSelected: Ve,
|
|
27720
|
-
ariaSetSize:
|
|
27720
|
+
ariaSetSize: Z,
|
|
27721
27721
|
ariaSort: null,
|
|
27722
|
-
ariaValueMax:
|
|
27723
|
-
ariaValueMin:
|
|
27724
|
-
ariaValueNow:
|
|
27722
|
+
ariaValueMax: Z,
|
|
27723
|
+
ariaValueMin: Z,
|
|
27724
|
+
ariaValueNow: Z,
|
|
27725
27725
|
ariaValueText: null,
|
|
27726
27726
|
role: null
|
|
27727
27727
|
},
|
|
@@ -27747,8 +27747,8 @@ const xA = hr({
|
|
|
27747
27747
|
// Standard Properties.
|
|
27748
27748
|
abbr: null,
|
|
27749
27749
|
accept: rr,
|
|
27750
|
-
acceptCharset:
|
|
27751
|
-
accessKey:
|
|
27750
|
+
acceptCharset: Ae,
|
|
27751
|
+
accessKey: Ae,
|
|
27752
27752
|
action: null,
|
|
27753
27753
|
allow: null,
|
|
27754
27754
|
allowFullScreen: se,
|
|
@@ -27758,22 +27758,22 @@ const xA = hr({
|
|
|
27758
27758
|
as: null,
|
|
27759
27759
|
async: se,
|
|
27760
27760
|
autoCapitalize: null,
|
|
27761
|
-
autoComplete:
|
|
27761
|
+
autoComplete: Ae,
|
|
27762
27762
|
autoFocus: se,
|
|
27763
27763
|
autoPlay: se,
|
|
27764
|
-
blocking:
|
|
27764
|
+
blocking: Ae,
|
|
27765
27765
|
capture: null,
|
|
27766
27766
|
charSet: null,
|
|
27767
27767
|
checked: se,
|
|
27768
27768
|
cite: null,
|
|
27769
|
-
className:
|
|
27770
|
-
cols:
|
|
27769
|
+
className: Ae,
|
|
27770
|
+
cols: Z,
|
|
27771
27771
|
colSpan: null,
|
|
27772
27772
|
content: null,
|
|
27773
27773
|
contentEditable: Ve,
|
|
27774
27774
|
controls: se,
|
|
27775
|
-
controlsList:
|
|
27776
|
-
coords:
|
|
27775
|
+
controlsList: Ae,
|
|
27776
|
+
coords: Z | rr,
|
|
27777
27777
|
crossOrigin: null,
|
|
27778
27778
|
data: null,
|
|
27779
27779
|
dateTime: null,
|
|
@@ -27794,14 +27794,14 @@ const xA = hr({
|
|
|
27794
27794
|
formMethod: null,
|
|
27795
27795
|
formNoValidate: se,
|
|
27796
27796
|
formTarget: null,
|
|
27797
|
-
headers:
|
|
27798
|
-
height:
|
|
27797
|
+
headers: Ae,
|
|
27798
|
+
height: Z,
|
|
27799
27799
|
hidden: HM,
|
|
27800
|
-
high:
|
|
27800
|
+
high: Z,
|
|
27801
27801
|
href: null,
|
|
27802
27802
|
hrefLang: null,
|
|
27803
|
-
htmlFor:
|
|
27804
|
-
httpEquiv:
|
|
27803
|
+
htmlFor: Ae,
|
|
27804
|
+
httpEquiv: Ae,
|
|
27805
27805
|
id: null,
|
|
27806
27806
|
imageSizes: null,
|
|
27807
27807
|
imageSrcSet: null,
|
|
@@ -27811,10 +27811,10 @@ const xA = hr({
|
|
|
27811
27811
|
is: null,
|
|
27812
27812
|
isMap: se,
|
|
27813
27813
|
itemId: null,
|
|
27814
|
-
itemProp:
|
|
27815
|
-
itemRef:
|
|
27814
|
+
itemProp: Ae,
|
|
27815
|
+
itemRef: Ae,
|
|
27816
27816
|
itemScope: se,
|
|
27817
|
-
itemType:
|
|
27817
|
+
itemType: Ae,
|
|
27818
27818
|
kind: null,
|
|
27819
27819
|
label: null,
|
|
27820
27820
|
lang: null,
|
|
@@ -27822,14 +27822,14 @@ const xA = hr({
|
|
|
27822
27822
|
list: null,
|
|
27823
27823
|
loading: null,
|
|
27824
27824
|
loop: se,
|
|
27825
|
-
low:
|
|
27825
|
+
low: Z,
|
|
27826
27826
|
manifest: null,
|
|
27827
27827
|
max: null,
|
|
27828
|
-
maxLength:
|
|
27828
|
+
maxLength: Z,
|
|
27829
27829
|
media: null,
|
|
27830
27830
|
method: null,
|
|
27831
27831
|
min: null,
|
|
27832
|
-
minLength:
|
|
27832
|
+
minLength: Z,
|
|
27833
27833
|
multiple: se,
|
|
27834
27834
|
muted: se,
|
|
27835
27835
|
name: null,
|
|
@@ -27925,9 +27925,9 @@ const xA = hr({
|
|
|
27925
27925
|
onWaiting: null,
|
|
27926
27926
|
onWheel: null,
|
|
27927
27927
|
open: se,
|
|
27928
|
-
optimum:
|
|
27928
|
+
optimum: Z,
|
|
27929
27929
|
pattern: null,
|
|
27930
|
-
ping:
|
|
27930
|
+
ping: Ae,
|
|
27931
27931
|
placeholder: null,
|
|
27932
27932
|
playsInline: se,
|
|
27933
27933
|
popover: null,
|
|
@@ -27937,12 +27937,12 @@ const xA = hr({
|
|
|
27937
27937
|
preload: null,
|
|
27938
27938
|
readOnly: se,
|
|
27939
27939
|
referrerPolicy: null,
|
|
27940
|
-
rel:
|
|
27940
|
+
rel: Ae,
|
|
27941
27941
|
required: se,
|
|
27942
27942
|
reversed: se,
|
|
27943
|
-
rows:
|
|
27944
|
-
rowSpan:
|
|
27945
|
-
sandbox:
|
|
27943
|
+
rows: Z,
|
|
27944
|
+
rowSpan: Z,
|
|
27945
|
+
sandbox: Ae,
|
|
27946
27946
|
scope: null,
|
|
27947
27947
|
scoped: se,
|
|
27948
27948
|
seamless: se,
|
|
@@ -27951,19 +27951,19 @@ const xA = hr({
|
|
|
27951
27951
|
shadowRootDelegatesFocus: se,
|
|
27952
27952
|
shadowRootMode: null,
|
|
27953
27953
|
shape: null,
|
|
27954
|
-
size:
|
|
27954
|
+
size: Z,
|
|
27955
27955
|
sizes: null,
|
|
27956
27956
|
slot: null,
|
|
27957
|
-
span:
|
|
27957
|
+
span: Z,
|
|
27958
27958
|
spellCheck: Ve,
|
|
27959
27959
|
src: null,
|
|
27960
27960
|
srcDoc: null,
|
|
27961
27961
|
srcLang: null,
|
|
27962
27962
|
srcSet: null,
|
|
27963
|
-
start:
|
|
27963
|
+
start: Z,
|
|
27964
27964
|
step: null,
|
|
27965
27965
|
style: null,
|
|
27966
|
-
tabIndex:
|
|
27966
|
+
tabIndex: Z,
|
|
27967
27967
|
target: null,
|
|
27968
27968
|
title: null,
|
|
27969
27969
|
translate: null,
|
|
@@ -27971,7 +27971,7 @@ const xA = hr({
|
|
|
27971
27971
|
typeMustMatch: se,
|
|
27972
27972
|
useMap: null,
|
|
27973
27973
|
value: Ve,
|
|
27974
|
-
width:
|
|
27974
|
+
width: Z,
|
|
27975
27975
|
wrap: null,
|
|
27976
27976
|
writingSuggestions: null,
|
|
27977
27977
|
// Legacy.
|
|
@@ -27980,7 +27980,7 @@ const xA = hr({
|
|
|
27980
27980
|
// Several. Use CSS `text-align` instead,
|
|
27981
27981
|
aLink: null,
|
|
27982
27982
|
// `<body>`. Use CSS `a:active {color}` instead
|
|
27983
|
-
archive:
|
|
27983
|
+
archive: Ae,
|
|
27984
27984
|
// `<object>`. List of URIs to archives
|
|
27985
27985
|
axis: null,
|
|
27986
27986
|
// `<td>` and `<th>`. Use `scope` on `<th>`
|
|
@@ -27988,11 +27988,11 @@ const xA = hr({
|
|
|
27988
27988
|
// `<body>`. Use CSS `background-image` instead
|
|
27989
27989
|
bgColor: null,
|
|
27990
27990
|
// `<body>` and table elements. Use CSS `background-color` instead
|
|
27991
|
-
border:
|
|
27991
|
+
border: Z,
|
|
27992
27992
|
// `<table>`. Use CSS `border-width` instead,
|
|
27993
27993
|
borderColor: null,
|
|
27994
27994
|
// `<table>`. Use CSS `border-color` instead,
|
|
27995
|
-
bottomMargin:
|
|
27995
|
+
bottomMargin: Z,
|
|
27996
27996
|
// `<body>`
|
|
27997
27997
|
cellPadding: null,
|
|
27998
27998
|
// `<table>`
|
|
@@ -28026,9 +28026,9 @@ const xA = hr({
|
|
|
28026
28026
|
// `<table>`
|
|
28027
28027
|
frameBorder: null,
|
|
28028
28028
|
// `<iframe>`. Use CSS `border` instead
|
|
28029
|
-
hSpace:
|
|
28029
|
+
hSpace: Z,
|
|
28030
28030
|
// `<img>` and `<object>`
|
|
28031
|
-
leftMargin:
|
|
28031
|
+
leftMargin: Z,
|
|
28032
28032
|
// `<body>`
|
|
28033
28033
|
link: null,
|
|
28034
28034
|
// `<body>`. Use CSS `a:link {color: *}` instead
|
|
@@ -28036,9 +28036,9 @@ const xA = hr({
|
|
|
28036
28036
|
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
|
28037
28037
|
lowSrc: null,
|
|
28038
28038
|
// `<img>`. Use a `<picture>`
|
|
28039
|
-
marginHeight:
|
|
28039
|
+
marginHeight: Z,
|
|
28040
28040
|
// `<body>`
|
|
28041
|
-
marginWidth:
|
|
28041
|
+
marginWidth: Z,
|
|
28042
28042
|
// `<body>`
|
|
28043
28043
|
noResize: se,
|
|
28044
28044
|
// `<frame>`
|
|
@@ -28056,7 +28056,7 @@ const xA = hr({
|
|
|
28056
28056
|
// `<isindex>`
|
|
28057
28057
|
rev: null,
|
|
28058
28058
|
// `<link>`
|
|
28059
|
-
rightMargin:
|
|
28059
|
+
rightMargin: Z,
|
|
28060
28060
|
// `<body>`
|
|
28061
28061
|
rules: null,
|
|
28062
28062
|
// `<table>`
|
|
@@ -28070,7 +28070,7 @@ const xA = hr({
|
|
|
28070
28070
|
// `<table>`
|
|
28071
28071
|
text: null,
|
|
28072
28072
|
// `<body>`. Use CSS `color` instead
|
|
28073
|
-
topMargin:
|
|
28073
|
+
topMargin: Z,
|
|
28074
28074
|
// `<body>`
|
|
28075
28075
|
valueType: null,
|
|
28076
28076
|
// `<param>`
|
|
@@ -28080,7 +28080,7 @@ const xA = hr({
|
|
|
28080
28080
|
// Several. Use CSS `vertical-align` instead
|
|
28081
28081
|
vLink: null,
|
|
28082
28082
|
// `<body>`. Use CSS `a:visited {color}` instead
|
|
28083
|
-
vSpace:
|
|
28083
|
+
vSpace: Z,
|
|
28084
28084
|
// `<img>` and `<object>`
|
|
28085
28085
|
// Non-standard Properties.
|
|
28086
28086
|
allowTransparency: null,
|
|
@@ -28090,7 +28090,7 @@ const xA = hr({
|
|
|
28090
28090
|
disableRemotePlayback: se,
|
|
28091
28091
|
prefix: null,
|
|
28092
28092
|
property: null,
|
|
28093
|
-
results:
|
|
28093
|
+
results: Z,
|
|
28094
28094
|
security: null,
|
|
28095
28095
|
unselectable: null
|
|
28096
28096
|
},
|
|
@@ -28274,28 +28274,28 @@ const xA = hr({
|
|
|
28274
28274
|
},
|
|
28275
28275
|
properties: {
|
|
28276
28276
|
about: vt,
|
|
28277
|
-
accentHeight:
|
|
28277
|
+
accentHeight: Z,
|
|
28278
28278
|
accumulate: null,
|
|
28279
28279
|
additive: null,
|
|
28280
28280
|
alignmentBaseline: null,
|
|
28281
|
-
alphabetic:
|
|
28282
|
-
amplitude:
|
|
28281
|
+
alphabetic: Z,
|
|
28282
|
+
amplitude: Z,
|
|
28283
28283
|
arabicForm: null,
|
|
28284
|
-
ascent:
|
|
28284
|
+
ascent: Z,
|
|
28285
28285
|
attributeName: null,
|
|
28286
28286
|
attributeType: null,
|
|
28287
|
-
azimuth:
|
|
28287
|
+
azimuth: Z,
|
|
28288
28288
|
bandwidth: null,
|
|
28289
28289
|
baselineShift: null,
|
|
28290
28290
|
baseFrequency: null,
|
|
28291
28291
|
baseProfile: null,
|
|
28292
28292
|
bbox: null,
|
|
28293
28293
|
begin: null,
|
|
28294
|
-
bias:
|
|
28294
|
+
bias: Z,
|
|
28295
28295
|
by: null,
|
|
28296
28296
|
calcMode: null,
|
|
28297
|
-
capHeight:
|
|
28298
|
-
className:
|
|
28297
|
+
capHeight: Z,
|
|
28298
|
+
className: Ae,
|
|
28299
28299
|
clip: null,
|
|
28300
28300
|
clipPath: null,
|
|
28301
28301
|
clipPathUnits: null,
|
|
@@ -28315,26 +28315,26 @@ const xA = hr({
|
|
|
28315
28315
|
d: null,
|
|
28316
28316
|
dataType: null,
|
|
28317
28317
|
defaultAction: null,
|
|
28318
|
-
descent:
|
|
28319
|
-
diffuseConstant:
|
|
28318
|
+
descent: Z,
|
|
28319
|
+
diffuseConstant: Z,
|
|
28320
28320
|
direction: null,
|
|
28321
28321
|
display: null,
|
|
28322
28322
|
dur: null,
|
|
28323
|
-
divisor:
|
|
28323
|
+
divisor: Z,
|
|
28324
28324
|
dominantBaseline: null,
|
|
28325
28325
|
download: se,
|
|
28326
28326
|
dx: null,
|
|
28327
28327
|
dy: null,
|
|
28328
28328
|
edgeMode: null,
|
|
28329
28329
|
editable: null,
|
|
28330
|
-
elevation:
|
|
28330
|
+
elevation: Z,
|
|
28331
28331
|
enableBackground: null,
|
|
28332
28332
|
end: null,
|
|
28333
28333
|
event: null,
|
|
28334
|
-
exponent:
|
|
28334
|
+
exponent: Z,
|
|
28335
28335
|
externalResourcesRequired: null,
|
|
28336
28336
|
fill: null,
|
|
28337
|
-
fillOpacity:
|
|
28337
|
+
fillOpacity: Z,
|
|
28338
28338
|
fillRule: null,
|
|
28339
28339
|
filter: null,
|
|
28340
28340
|
filterRes: null,
|
|
@@ -28364,27 +28364,27 @@ const xA = hr({
|
|
|
28364
28364
|
gradientTransform: null,
|
|
28365
28365
|
gradientUnits: null,
|
|
28366
28366
|
handler: null,
|
|
28367
|
-
hanging:
|
|
28367
|
+
hanging: Z,
|
|
28368
28368
|
hatchContentUnits: null,
|
|
28369
28369
|
hatchUnits: null,
|
|
28370
28370
|
height: null,
|
|
28371
28371
|
href: null,
|
|
28372
28372
|
hrefLang: null,
|
|
28373
|
-
horizAdvX:
|
|
28374
|
-
horizOriginX:
|
|
28375
|
-
horizOriginY:
|
|
28373
|
+
horizAdvX: Z,
|
|
28374
|
+
horizOriginX: Z,
|
|
28375
|
+
horizOriginY: Z,
|
|
28376
28376
|
id: null,
|
|
28377
|
-
ideographic:
|
|
28377
|
+
ideographic: Z,
|
|
28378
28378
|
imageRendering: null,
|
|
28379
28379
|
initialVisibility: null,
|
|
28380
28380
|
in: null,
|
|
28381
28381
|
in2: null,
|
|
28382
|
-
intercept:
|
|
28383
|
-
k:
|
|
28384
|
-
k1:
|
|
28385
|
-
k2:
|
|
28386
|
-
k3:
|
|
28387
|
-
k4:
|
|
28382
|
+
intercept: Z,
|
|
28383
|
+
k: Z,
|
|
28384
|
+
k1: Z,
|
|
28385
|
+
k2: Z,
|
|
28386
|
+
k3: Z,
|
|
28387
|
+
k4: Z,
|
|
28388
28388
|
kernelMatrix: vt,
|
|
28389
28389
|
kernelUnitLength: null,
|
|
28390
28390
|
keyPoints: null,
|
|
@@ -28398,7 +28398,7 @@ const xA = hr({
|
|
|
28398
28398
|
lengthAdjust: null,
|
|
28399
28399
|
letterSpacing: null,
|
|
28400
28400
|
lightingColor: null,
|
|
28401
|
-
limitingConeAngle:
|
|
28401
|
+
limitingConeAngle: Z,
|
|
28402
28402
|
local: null,
|
|
28403
28403
|
markerEnd: null,
|
|
28404
28404
|
markerMid: null,
|
|
@@ -28414,7 +28414,7 @@ const xA = hr({
|
|
|
28414
28414
|
media: null,
|
|
28415
28415
|
mediaCharacterEncoding: null,
|
|
28416
28416
|
mediaContentEncodings: null,
|
|
28417
|
-
mediaSize:
|
|
28417
|
+
mediaSize: Z,
|
|
28418
28418
|
mediaTime: null,
|
|
28419
28419
|
method: null,
|
|
28420
28420
|
min: null,
|
|
@@ -28520,24 +28520,24 @@ const xA = hr({
|
|
|
28520
28520
|
origin: null,
|
|
28521
28521
|
overflow: null,
|
|
28522
28522
|
overlay: null,
|
|
28523
|
-
overlinePosition:
|
|
28524
|
-
overlineThickness:
|
|
28523
|
+
overlinePosition: Z,
|
|
28524
|
+
overlineThickness: Z,
|
|
28525
28525
|
paintOrder: null,
|
|
28526
28526
|
panose1: null,
|
|
28527
28527
|
path: null,
|
|
28528
|
-
pathLength:
|
|
28528
|
+
pathLength: Z,
|
|
28529
28529
|
patternContentUnits: null,
|
|
28530
28530
|
patternTransform: null,
|
|
28531
28531
|
patternUnits: null,
|
|
28532
28532
|
phase: null,
|
|
28533
|
-
ping:
|
|
28533
|
+
ping: Ae,
|
|
28534
28534
|
pitch: null,
|
|
28535
28535
|
playbackOrder: null,
|
|
28536
28536
|
pointerEvents: null,
|
|
28537
28537
|
points: null,
|
|
28538
|
-
pointsAtX:
|
|
28539
|
-
pointsAtY:
|
|
28540
|
-
pointsAtZ:
|
|
28538
|
+
pointsAtX: Z,
|
|
28539
|
+
pointsAtY: Z,
|
|
28540
|
+
pointsAtZ: Z,
|
|
28541
28541
|
preserveAlpha: null,
|
|
28542
28542
|
preserveAspectRatio: null,
|
|
28543
28543
|
primitiveUnits: null,
|
|
@@ -28569,8 +28569,8 @@ const xA = hr({
|
|
|
28569
28569
|
side: null,
|
|
28570
28570
|
slope: null,
|
|
28571
28571
|
snapshotTime: null,
|
|
28572
|
-
specularConstant:
|
|
28573
|
-
specularExponent:
|
|
28572
|
+
specularConstant: Z,
|
|
28573
|
+
specularExponent: Z,
|
|
28574
28574
|
spreadMethod: null,
|
|
28575
28575
|
spacing: null,
|
|
28576
28576
|
startOffset: null,
|
|
@@ -28580,30 +28580,30 @@ const xA = hr({
|
|
|
28580
28580
|
stitchTiles: null,
|
|
28581
28581
|
stopColor: null,
|
|
28582
28582
|
stopOpacity: null,
|
|
28583
|
-
strikethroughPosition:
|
|
28584
|
-
strikethroughThickness:
|
|
28583
|
+
strikethroughPosition: Z,
|
|
28584
|
+
strikethroughThickness: Z,
|
|
28585
28585
|
string: null,
|
|
28586
28586
|
stroke: null,
|
|
28587
28587
|
strokeDashArray: vt,
|
|
28588
28588
|
strokeDashOffset: null,
|
|
28589
28589
|
strokeLineCap: null,
|
|
28590
28590
|
strokeLineJoin: null,
|
|
28591
|
-
strokeMiterLimit:
|
|
28592
|
-
strokeOpacity:
|
|
28591
|
+
strokeMiterLimit: Z,
|
|
28592
|
+
strokeOpacity: Z,
|
|
28593
28593
|
strokeWidth: null,
|
|
28594
28594
|
style: null,
|
|
28595
|
-
surfaceScale:
|
|
28595
|
+
surfaceScale: Z,
|
|
28596
28596
|
syncBehavior: null,
|
|
28597
28597
|
syncBehaviorDefault: null,
|
|
28598
28598
|
syncMaster: null,
|
|
28599
28599
|
syncTolerance: null,
|
|
28600
28600
|
syncToleranceDefault: null,
|
|
28601
28601
|
systemLanguage: vt,
|
|
28602
|
-
tabIndex:
|
|
28602
|
+
tabIndex: Z,
|
|
28603
28603
|
tableValues: null,
|
|
28604
28604
|
target: null,
|
|
28605
|
-
targetX:
|
|
28606
|
-
targetY:
|
|
28605
|
+
targetX: Z,
|
|
28606
|
+
targetY: Z,
|
|
28607
28607
|
textAnchor: null,
|
|
28608
28608
|
textDecoration: null,
|
|
28609
28609
|
textRendering: null,
|
|
@@ -28618,22 +28618,22 @@ const xA = hr({
|
|
|
28618
28618
|
transformOrigin: null,
|
|
28619
28619
|
u1: null,
|
|
28620
28620
|
u2: null,
|
|
28621
|
-
underlinePosition:
|
|
28622
|
-
underlineThickness:
|
|
28621
|
+
underlinePosition: Z,
|
|
28622
|
+
underlineThickness: Z,
|
|
28623
28623
|
unicode: null,
|
|
28624
28624
|
unicodeBidi: null,
|
|
28625
28625
|
unicodeRange: null,
|
|
28626
|
-
unitsPerEm:
|
|
28626
|
+
unitsPerEm: Z,
|
|
28627
28627
|
values: null,
|
|
28628
|
-
vAlphabetic:
|
|
28629
|
-
vMathematical:
|
|
28628
|
+
vAlphabetic: Z,
|
|
28629
|
+
vMathematical: Z,
|
|
28630
28630
|
vectorEffect: null,
|
|
28631
|
-
vHanging:
|
|
28632
|
-
vIdeographic:
|
|
28631
|
+
vHanging: Z,
|
|
28632
|
+
vIdeographic: Z,
|
|
28633
28633
|
version: null,
|
|
28634
|
-
vertAdvY:
|
|
28635
|
-
vertOriginX:
|
|
28636
|
-
vertOriginY:
|
|
28634
|
+
vertAdvY: Z,
|
|
28635
|
+
vertOriginX: Z,
|
|
28636
|
+
vertOriginY: Z,
|
|
28637
28637
|
viewBox: null,
|
|
28638
28638
|
viewTarget: null,
|
|
28639
28639
|
visibility: null,
|
|
@@ -28645,7 +28645,7 @@ const xA = hr({
|
|
|
28645
28645
|
x1: null,
|
|
28646
28646
|
x2: null,
|
|
28647
28647
|
xChannelSelector: null,
|
|
28648
|
-
xHeight:
|
|
28648
|
+
xHeight: Z,
|
|
28649
28649
|
y: null,
|
|
28650
28650
|
y1: null,
|
|
28651
28651
|
y2: null,
|
|
@@ -29331,7 +29331,7 @@ function wt(e, t, r, n) {
|
|
|
29331
29331
|
for (r && e.splice(t, r); o < n.length; )
|
|
29332
29332
|
l = n.slice(o, o + 1e4), l.unshift(t, 0), e.splice(...l), o += 1e4, t += 1e4;
|
|
29333
29333
|
}
|
|
29334
|
-
function
|
|
29334
|
+
function It(e, t) {
|
|
29335
29335
|
return e.length > 0 ? (wt(e, e.length, 0, t), e) : t;
|
|
29336
29336
|
}
|
|
29337
29337
|
const Cb = {}.hasOwnProperty;
|
|
@@ -29394,7 +29394,7 @@ const DM = m1(/\d/), Iz = m1(/[\dA-Fa-f]/), Az = m1(/[!-/:-@[-`{-~]/);
|
|
|
29394
29394
|
function ee(e) {
|
|
29395
29395
|
return e !== null && e < -2;
|
|
29396
29396
|
}
|
|
29397
|
-
function
|
|
29397
|
+
function Ce(e) {
|
|
29398
29398
|
return e !== null && (e < 0 || e === 32);
|
|
29399
29399
|
}
|
|
29400
29400
|
function ye(e) {
|
|
@@ -29590,7 +29590,7 @@ function Bz(e, t, r) {
|
|
|
29590
29590
|
return de(e, e.attempt(this.parser.constructs.document, t, r), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
29591
29591
|
}
|
|
29592
29592
|
function or(e) {
|
|
29593
|
-
if (e === null ||
|
|
29593
|
+
if (e === null || Ce(e) || N0(e))
|
|
29594
29594
|
return 1;
|
|
29595
29595
|
if (Ax(e))
|
|
29596
29596
|
return 2;
|
|
@@ -29656,7 +29656,7 @@ function Pz(e, t) {
|
|
|
29656
29656
|
...l.start
|
|
29657
29657
|
}, e[r][1].start = {
|
|
29658
29658
|
...c.end
|
|
29659
|
-
}, h = [], e[n][1].end.offset - e[n][1].start.offset && (h =
|
|
29659
|
+
}, h = [], e[n][1].end.offset - e[n][1].start.offset && (h = It(h, [["enter", e[n][1], t], ["exit", e[n][1], t]])), h = It(h, [["enter", a, t], ["enter", l, t], ["exit", l, t], ["enter", o, t]]), h = It(h, zx(t.parser.constructs.insideSpan.null, e.slice(n + 1, r), t)), h = It(h, [["exit", o, t], ["enter", c, t], ["exit", c, t], ["exit", a, t]]), e[r][1].end.offset - e[r][1].start.offset ? (u = 2, h = It(h, [["enter", e[r][1], t], ["exit", e[r][1], t]])) : u = 0, wt(e, n - 1, r - n + 3, h), r = n + h.length - u - 2;
|
|
29660
29660
|
break;
|
|
29661
29661
|
}
|
|
29662
29662
|
}
|
|
@@ -30262,7 +30262,7 @@ function CS(e, t, r, n, a, o, l, c, s) {
|
|
|
30262
30262
|
return w === 60 || w === 62 || w === 92 ? (e.consume(w), k) : k(w);
|
|
30263
30263
|
}
|
|
30264
30264
|
function x(w) {
|
|
30265
|
-
return !u && (w === null || w === 41 ||
|
|
30265
|
+
return !u && (w === null || w === 41 || Ce(w)) ? (e.exit("chunkString"), e.exit(c), e.exit(l), e.exit(n), t(w)) : u < h && w === 40 ? (e.consume(w), u++, x) : w === 41 ? (e.consume(w), u--, x) : w === null || w === 32 || w === 40 || fx(w) ? r(w) : (e.consume(w), w === 92 ? C : x);
|
|
30266
30266
|
}
|
|
30267
30267
|
function C(w) {
|
|
30268
30268
|
return w === 40 || w === 41 || w === 92 ? (e.consume(w), x) : x(w);
|
|
@@ -30350,7 +30350,7 @@ function cT(e, t, r) {
|
|
|
30350
30350
|
return a = Ft(n.sliceSerialize(n.events[n.events.length - 1][1]).slice(1, -1)), k === 58 ? (e.enter("definitionMarker"), e.consume(k), e.exit("definitionMarker"), s) : r(k);
|
|
30351
30351
|
}
|
|
30352
30352
|
function s(k) {
|
|
30353
|
-
return
|
|
30353
|
+
return Ce(k) ? zr(e, h)(k) : h(k);
|
|
30354
30354
|
}
|
|
30355
30355
|
function h(k) {
|
|
30356
30356
|
return CS(
|
|
@@ -30378,7 +30378,7 @@ function cT(e, t, r) {
|
|
|
30378
30378
|
function sT(e, t, r) {
|
|
30379
30379
|
return n;
|
|
30380
30380
|
function n(c) {
|
|
30381
|
-
return
|
|
30381
|
+
return Ce(c) ? zr(e, a)(c) : r(c);
|
|
30382
30382
|
}
|
|
30383
30383
|
function a(c) {
|
|
30384
30384
|
return AS(e, o, r, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(c);
|
|
@@ -30431,7 +30431,7 @@ function yT(e, t, r) {
|
|
|
30431
30431
|
return e.enter("atxHeadingSequence"), l(u);
|
|
30432
30432
|
}
|
|
30433
30433
|
function l(u) {
|
|
30434
|
-
return u === 35 && n++ < 6 ? (e.consume(u), l) : u === null ||
|
|
30434
|
+
return u === 35 && n++ < 6 ? (e.consume(u), l) : u === null || Ce(u) ? (e.exit("atxHeadingSequence"), c(u)) : r(u);
|
|
30435
30435
|
}
|
|
30436
30436
|
function c(u) {
|
|
30437
30437
|
return u === 35 ? (e.enter("atxHeadingSequence"), s(u)) : u === null || ee(u) ? (e.exit("atxHeading"), t(u)) : ye(u) ? de(e, c, "whitespace")(u) : (e.enter("atxHeadingText"), h(u));
|
|
@@ -30440,7 +30440,7 @@ function yT(e, t, r) {
|
|
|
30440
30440
|
return u === 35 ? (e.consume(u), s) : (e.exit("atxHeadingSequence"), c(u));
|
|
30441
30441
|
}
|
|
30442
30442
|
function h(u) {
|
|
30443
|
-
return u === null || u === 35 ||
|
|
30443
|
+
return u === null || u === 35 || Ce(u) ? (e.exit("atxHeadingText"), c(u)) : (e.consume(u), h);
|
|
30444
30444
|
}
|
|
30445
30445
|
}
|
|
30446
30446
|
const kT = [
|
|
@@ -30551,7 +30551,7 @@ function xT(e, t, r) {
|
|
|
30551
30551
|
return at(A) ? (e.consume(A), l = String.fromCharCode(A), C) : r(A);
|
|
30552
30552
|
}
|
|
30553
30553
|
function C(A) {
|
|
30554
|
-
if (A === null || A === 47 || A === 62 ||
|
|
30554
|
+
if (A === null || A === 47 || A === 62 || Ce(A)) {
|
|
30555
30555
|
const je = A === 47, _e = l.toLowerCase();
|
|
30556
30556
|
return !je && !o && qb.includes(_e) ? (a = 1, n.interrupt ? t(A) : D(A)) : kT.includes(l.toLowerCase()) ? (a = 6, je ? (e.consume(A), w) : n.interrupt ? t(A) : D(A)) : (a = 7, n.interrupt && !n.parser.lazy[n.now().line] ? r(A) : o ? I(A) : q(A));
|
|
30557
30557
|
}
|
|
@@ -30579,7 +30579,7 @@ function xT(e, t, r) {
|
|
|
30579
30579
|
return A === s ? (e.consume(A), s = null, V) : A === null || ee(A) ? r(A) : (e.consume(A), F);
|
|
30580
30580
|
}
|
|
30581
30581
|
function X(A) {
|
|
30582
|
-
return A === null || A === 34 || A === 39 || A === 47 || A === 60 || A === 61 || A === 62 || A === 96 ||
|
|
30582
|
+
return A === null || A === 34 || A === 39 || A === 47 || A === 60 || A === 61 || A === 62 || A === 96 || Ce(A) ? R(A) : (e.consume(A), X);
|
|
30583
30583
|
}
|
|
30584
30584
|
function V(A) {
|
|
30585
30585
|
return A === 47 || A === 62 || ye(A) ? q(A) : r(A);
|
|
@@ -30591,10 +30591,10 @@ function xT(e, t, r) {
|
|
|
30591
30591
|
return A === null || ee(A) ? D(A) : ye(A) ? (e.consume(A), G) : r(A);
|
|
30592
30592
|
}
|
|
30593
30593
|
function D(A) {
|
|
30594
|
-
return A === 45 && a === 2 ? (e.consume(A), ue) : A === 60 && a === 1 ? (e.consume(A), me) : A === 62 && a === 4 ? (e.consume(A),
|
|
30594
|
+
return A === 45 && a === 2 ? (e.consume(A), ue) : A === 60 && a === 1 ? (e.consume(A), me) : A === 62 && a === 4 ? (e.consume(A), ve) : A === 63 && a === 3 ? (e.consume(A), L) : A === 93 && a === 5 ? (e.consume(A), De) : ee(A) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(fT, be, ie)(A)) : A === null || ee(A) ? (e.exit("htmlFlowData"), ie(A)) : (e.consume(A), D);
|
|
30595
30595
|
}
|
|
30596
30596
|
function ie(A) {
|
|
30597
|
-
return e.check(gT, te,
|
|
30597
|
+
return e.check(gT, te, be)(A);
|
|
30598
30598
|
}
|
|
30599
30599
|
function te(A) {
|
|
30600
30600
|
return e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), Y;
|
|
@@ -30606,25 +30606,25 @@ function xT(e, t, r) {
|
|
|
30606
30606
|
return A === 45 ? (e.consume(A), L) : D(A);
|
|
30607
30607
|
}
|
|
30608
30608
|
function me(A) {
|
|
30609
|
-
return A === 47 ? (e.consume(A), l = "",
|
|
30609
|
+
return A === 47 ? (e.consume(A), l = "", Le) : D(A);
|
|
30610
30610
|
}
|
|
30611
|
-
function
|
|
30611
|
+
function Le(A) {
|
|
30612
30612
|
if (A === 62) {
|
|
30613
30613
|
const je = l.toLowerCase();
|
|
30614
|
-
return qb.includes(je) ? (e.consume(A),
|
|
30614
|
+
return qb.includes(je) ? (e.consume(A), ve) : D(A);
|
|
30615
30615
|
}
|
|
30616
|
-
return at(A) && l.length < 8 ? (e.consume(A), l += String.fromCharCode(A),
|
|
30616
|
+
return at(A) && l.length < 8 ? (e.consume(A), l += String.fromCharCode(A), Le) : D(A);
|
|
30617
30617
|
}
|
|
30618
30618
|
function De(A) {
|
|
30619
30619
|
return A === 93 ? (e.consume(A), L) : D(A);
|
|
30620
30620
|
}
|
|
30621
30621
|
function L(A) {
|
|
30622
|
-
return A === 62 ? (e.consume(A),
|
|
30622
|
+
return A === 62 ? (e.consume(A), ve) : A === 45 && a === 2 ? (e.consume(A), L) : D(A);
|
|
30623
30623
|
}
|
|
30624
|
-
function
|
|
30625
|
-
return A === null || ee(A) ? (e.exit("htmlFlowData"),
|
|
30624
|
+
function ve(A) {
|
|
30625
|
+
return A === null || ee(A) ? (e.exit("htmlFlowData"), be(A)) : (e.consume(A), ve);
|
|
30626
30626
|
}
|
|
30627
|
-
function
|
|
30627
|
+
function be(A) {
|
|
30628
30628
|
return e.exit("htmlFlow"), t(A);
|
|
30629
30629
|
}
|
|
30630
30630
|
}
|
|
@@ -30674,8 +30674,8 @@ function LT(e, t, r) {
|
|
|
30674
30674
|
return L === 62 ? ue(L) : L === 45 ? m(L) : d(L);
|
|
30675
30675
|
}
|
|
30676
30676
|
function g(L) {
|
|
30677
|
-
const
|
|
30678
|
-
return L ===
|
|
30677
|
+
const ve = "CDATA[";
|
|
30678
|
+
return L === ve.charCodeAt(o++) ? (e.consume(L), o === ve.length ? x : g) : r(L);
|
|
30679
30679
|
}
|
|
30680
30680
|
function x(L) {
|
|
30681
30681
|
return L === null ? r(L) : L === 93 ? (e.consume(L), C) : ee(L) ? (l = x, me(L)) : (e.consume(L), x);
|
|
@@ -30705,7 +30705,7 @@ function LT(e, t, r) {
|
|
|
30705
30705
|
return ee(L) ? (l = F, me(L)) : ye(L) ? (e.consume(L), F) : ue(L);
|
|
30706
30706
|
}
|
|
30707
30707
|
function X(L) {
|
|
30708
|
-
return L === 45 || Ye(L) ? (e.consume(L), X) : L === 47 || L === 62 ||
|
|
30708
|
+
return L === 45 || Ye(L) ? (e.consume(L), X) : L === 47 || L === 62 || Ce(L) ? V(L) : r(L);
|
|
30709
30709
|
}
|
|
30710
30710
|
function V(L) {
|
|
30711
30711
|
return L === 47 ? (e.consume(L), ue) : L === 58 || L === 95 || at(L) ? (e.consume(L), B) : ee(L) ? (l = V, me(L)) : ye(L) ? (e.consume(L), V) : ue(L);
|
|
@@ -30723,18 +30723,18 @@ function LT(e, t, r) {
|
|
|
30723
30723
|
return L === a ? (e.consume(L), a = void 0, Y) : L === null ? r(L) : ee(L) ? (l = ie, me(L)) : (e.consume(L), ie);
|
|
30724
30724
|
}
|
|
30725
30725
|
function te(L) {
|
|
30726
|
-
return L === null || L === 34 || L === 39 || L === 60 || L === 61 || L === 96 ? r(L) : L === 47 || L === 62 ||
|
|
30726
|
+
return L === null || L === 34 || L === 39 || L === 60 || L === 61 || L === 96 ? r(L) : L === 47 || L === 62 || Ce(L) ? V(L) : (e.consume(L), te);
|
|
30727
30727
|
}
|
|
30728
30728
|
function Y(L) {
|
|
30729
|
-
return L === 47 || L === 62 ||
|
|
30729
|
+
return L === 47 || L === 62 || Ce(L) ? V(L) : r(L);
|
|
30730
30730
|
}
|
|
30731
30731
|
function ue(L) {
|
|
30732
30732
|
return L === 62 ? (e.consume(L), e.exit("htmlTextData"), e.exit("htmlText"), t) : r(L);
|
|
30733
30733
|
}
|
|
30734
30734
|
function me(L) {
|
|
30735
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(L), e.exit("lineEnding"),
|
|
30735
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(L), e.exit("lineEnding"), Le;
|
|
30736
30736
|
}
|
|
30737
|
-
function
|
|
30737
|
+
function Le(L) {
|
|
30738
30738
|
return ye(L) ? de(e, De, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(L) : De(L);
|
|
30739
30739
|
}
|
|
30740
30740
|
function De(L) {
|
|
@@ -30803,7 +30803,7 @@ function zT(e, t) {
|
|
|
30803
30803
|
...e[l - 2][1].start
|
|
30804
30804
|
}
|
|
30805
30805
|
};
|
|
30806
|
-
return c = [["enter", s, t], ["enter", h, t]], c =
|
|
30806
|
+
return c = [["enter", s, t], ["enter", h, t]], c = It(c, e.slice(o + 1, o + n + 3)), c = It(c, [["enter", u, t]]), c = It(c, zx(t.parser.constructs.insideSpan.null, e.slice(o + n + 4, l - 3), t)), c = It(c, [["exit", u, t], e[l - 2], e[l - 1], ["exit", h, t]]), c = It(c, e.slice(l + 1)), c = It(c, [["exit", s, t]]), wt(e, o, e.length, c), e;
|
|
30807
30807
|
}
|
|
30808
30808
|
function TT(e, t, r) {
|
|
30809
30809
|
const n = this;
|
|
@@ -30839,13 +30839,13 @@ function qT(e, t, r) {
|
|
|
30839
30839
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), a;
|
|
30840
30840
|
}
|
|
30841
30841
|
function a(d) {
|
|
30842
|
-
return
|
|
30842
|
+
return Ce(d) ? zr(e, o)(d) : o(d);
|
|
30843
30843
|
}
|
|
30844
30844
|
function o(d) {
|
|
30845
30845
|
return d === 41 ? u(d) : CS(e, l, c, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(d);
|
|
30846
30846
|
}
|
|
30847
30847
|
function l(d) {
|
|
30848
|
-
return
|
|
30848
|
+
return Ce(d) ? zr(e, s)(d) : u(d);
|
|
30849
30849
|
}
|
|
30850
30850
|
function c(d) {
|
|
30851
30851
|
return r(d);
|
|
@@ -30854,7 +30854,7 @@ function qT(e, t, r) {
|
|
|
30854
30854
|
return d === 34 || d === 39 || d === 40 ? AS(e, h, r, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(d) : u(d);
|
|
30855
30855
|
}
|
|
30856
30856
|
function h(d) {
|
|
30857
|
-
return
|
|
30857
|
+
return Ce(d) ? zr(e, u)(d) : u(d);
|
|
30858
30858
|
}
|
|
30859
30859
|
function u(d) {
|
|
30860
30860
|
return d === 41 ? (e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), e.exit("resource"), t) : r(d);
|
|
@@ -31295,7 +31295,7 @@ function uq(e, t, r) {
|
|
|
31295
31295
|
let u = t.tokenize.call(h, s);
|
|
31296
31296
|
return t.resolveAll && o.push(t), h;
|
|
31297
31297
|
function d(G) {
|
|
31298
|
-
return l =
|
|
31298
|
+
return l = It(l, G), C(), l[l.length - 1] !== null ? [] : (X(t, 0), h.events = zx(o, h.events, h), h.events);
|
|
31299
31299
|
}
|
|
31300
31300
|
function m(G, D) {
|
|
31301
31301
|
return pq(k(G), D);
|
|
@@ -31359,18 +31359,18 @@ function uq(e, t, r) {
|
|
|
31359
31359
|
function F(G, D) {
|
|
31360
31360
|
return ie;
|
|
31361
31361
|
function ie(te, Y, ue) {
|
|
31362
|
-
let me,
|
|
31362
|
+
let me, Le, De, L;
|
|
31363
31363
|
return Array.isArray(te) ? (
|
|
31364
31364
|
/* c8 ignore next 1 */
|
|
31365
|
-
|
|
31365
|
+
be(te)
|
|
31366
31366
|
) : "tokenize" in te ? (
|
|
31367
31367
|
// Looks like a construct.
|
|
31368
|
-
|
|
31368
|
+
be([
|
|
31369
31369
|
/** @type {Construct} */
|
|
31370
31370
|
te
|
|
31371
31371
|
])
|
|
31372
|
-
) :
|
|
31373
|
-
function
|
|
31372
|
+
) : ve(te);
|
|
31373
|
+
function ve(Te) {
|
|
31374
31374
|
return Ze;
|
|
31375
31375
|
function Ze(Pe) {
|
|
31376
31376
|
const Ge = Pe !== null && Te[Pe], We = Pe !== null && Te.null, kt = [
|
|
@@ -31379,11 +31379,11 @@ function uq(e, t, r) {
|
|
|
31379
31379
|
...Array.isArray(Ge) ? Ge : Ge ? [Ge] : [],
|
|
31380
31380
|
...Array.isArray(We) ? We : We ? [We] : []
|
|
31381
31381
|
];
|
|
31382
|
-
return
|
|
31382
|
+
return be(kt)(Pe);
|
|
31383
31383
|
}
|
|
31384
31384
|
}
|
|
31385
|
-
function
|
|
31386
|
-
return me = Te,
|
|
31385
|
+
function be(Te) {
|
|
31386
|
+
return me = Te, Le = 0, Te.length === 0 ? ue : A(Te[Le]);
|
|
31387
31387
|
}
|
|
31388
31388
|
function A(Te) {
|
|
31389
31389
|
return Ze;
|
|
@@ -31403,7 +31403,7 @@ function uq(e, t, r) {
|
|
|
31403
31403
|
return G(De, L), Y;
|
|
31404
31404
|
}
|
|
31405
31405
|
function _e(Te) {
|
|
31406
|
-
return L.restore(), ++
|
|
31406
|
+
return L.restore(), ++Le < me.length ? A(me[Le]) : ue;
|
|
31407
31407
|
}
|
|
31408
31408
|
}
|
|
31409
31409
|
}
|
|
@@ -31582,7 +31582,7 @@ function Mq(e) {
|
|
|
31582
31582
|
definitionDestinationString: l,
|
|
31583
31583
|
definitionLabelString: l,
|
|
31584
31584
|
definitionTitleString: l,
|
|
31585
|
-
emphasis: o(
|
|
31585
|
+
emphasis: o(Xt),
|
|
31586
31586
|
hardBreakEscape: o(mt),
|
|
31587
31587
|
hardBreakTrailing: o(mt),
|
|
31588
31588
|
htmlFlow: o(Qe, l),
|
|
@@ -31602,7 +31602,7 @@ function Mq(e) {
|
|
|
31602
31602
|
resourceDestinationString: l,
|
|
31603
31603
|
resourceTitleString: l,
|
|
31604
31604
|
setextHeading: o(Dt),
|
|
31605
|
-
strong: o(
|
|
31605
|
+
strong: o(St),
|
|
31606
31606
|
thematicBreak: o(W0)
|
|
31607
31607
|
},
|
|
31608
31608
|
exit: {
|
|
@@ -31639,7 +31639,7 @@ function Mq(e) {
|
|
|
31639
31639
|
htmlTextData: B,
|
|
31640
31640
|
image: s(me),
|
|
31641
31641
|
label: De,
|
|
31642
|
-
labelText:
|
|
31642
|
+
labelText: Le,
|
|
31643
31643
|
lineEnding: G,
|
|
31644
31644
|
link: s(ue),
|
|
31645
31645
|
listItem: s(),
|
|
@@ -31648,8 +31648,8 @@ function Mq(e) {
|
|
|
31648
31648
|
paragraph: s(),
|
|
31649
31649
|
referenceString: je,
|
|
31650
31650
|
resourceDestinationString: L,
|
|
31651
|
-
resourceTitleString:
|
|
31652
|
-
resource:
|
|
31651
|
+
resourceTitleString: ve,
|
|
31652
|
+
resource: be,
|
|
31653
31653
|
setextHeading: s(X),
|
|
31654
31654
|
setextHeadingLineSequence: F,
|
|
31655
31655
|
setextHeadingText: T,
|
|
@@ -31661,12 +31661,12 @@ function Mq(e) {
|
|
|
31661
31661
|
const r = {};
|
|
31662
31662
|
return n;
|
|
31663
31663
|
function n(P) {
|
|
31664
|
-
let
|
|
31664
|
+
let W = {
|
|
31665
31665
|
type: "root",
|
|
31666
31666
|
children: []
|
|
31667
31667
|
};
|
|
31668
|
-
const
|
|
31669
|
-
stack: [
|
|
31668
|
+
const oe = {
|
|
31669
|
+
stack: [W],
|
|
31670
31670
|
tokenStack: [],
|
|
31671
31671
|
config: t,
|
|
31672
31672
|
enter: c,
|
|
@@ -31675,26 +31675,26 @@ function Mq(e) {
|
|
|
31675
31675
|
resume: u,
|
|
31676
31676
|
data: r
|
|
31677
31677
|
}, pe = [];
|
|
31678
|
-
let
|
|
31679
|
-
for (; ++
|
|
31680
|
-
if (P[
|
|
31681
|
-
if (P[
|
|
31682
|
-
pe.push(
|
|
31678
|
+
let xe = -1;
|
|
31679
|
+
for (; ++xe < P.length; )
|
|
31680
|
+
if (P[xe][1].type === "listOrdered" || P[xe][1].type === "listUnordered")
|
|
31681
|
+
if (P[xe][0] === "enter")
|
|
31682
|
+
pe.push(xe);
|
|
31683
31683
|
else {
|
|
31684
31684
|
const lt = pe.pop();
|
|
31685
|
-
|
|
31685
|
+
xe = a(P, lt, xe);
|
|
31686
31686
|
}
|
|
31687
|
-
for (
|
|
31688
|
-
const lt = t[P[
|
|
31689
|
-
qS.call(lt, P[
|
|
31690
|
-
sliceSerialize: P[
|
|
31691
|
-
},
|
|
31687
|
+
for (xe = -1; ++xe < P.length; ) {
|
|
31688
|
+
const lt = t[P[xe][0]];
|
|
31689
|
+
qS.call(lt, P[xe][1].type) && lt[P[xe][1].type].call(Object.assign({
|
|
31690
|
+
sliceSerialize: P[xe][2].sliceSerialize
|
|
31691
|
+
}, oe), P[xe][1]);
|
|
31692
31692
|
}
|
|
31693
|
-
if (
|
|
31694
|
-
const lt =
|
|
31695
|
-
(lt[1] || Pb).call(
|
|
31693
|
+
if (oe.tokenStack.length > 0) {
|
|
31694
|
+
const lt = oe.tokenStack[oe.tokenStack.length - 1];
|
|
31695
|
+
(lt[1] || Pb).call(oe, void 0, lt[0]);
|
|
31696
31696
|
}
|
|
31697
|
-
for (
|
|
31697
|
+
for (W.position = {
|
|
31698
31698
|
start: c1(P.length > 0 ? P[0][1].start : {
|
|
31699
31699
|
line: 1,
|
|
31700
31700
|
column: 1,
|
|
@@ -31705,23 +31705,23 @@ function Mq(e) {
|
|
|
31705
31705
|
column: 1,
|
|
31706
31706
|
offset: 0
|
|
31707
31707
|
})
|
|
31708
|
-
},
|
|
31709
|
-
|
|
31710
|
-
return
|
|
31708
|
+
}, xe = -1; ++xe < t.transforms.length; )
|
|
31709
|
+
W = t.transforms[xe](W) || W;
|
|
31710
|
+
return W;
|
|
31711
31711
|
}
|
|
31712
|
-
function a(P,
|
|
31713
|
-
let pe =
|
|
31714
|
-
for (; ++pe <=
|
|
31712
|
+
function a(P, W, oe) {
|
|
31713
|
+
let pe = W - 1, xe = -1, lt = !1, Yt, Ht, v1, x1;
|
|
31714
|
+
for (; ++pe <= oe; ) {
|
|
31715
31715
|
const Je = P[pe];
|
|
31716
31716
|
switch (Je[1].type) {
|
|
31717
31717
|
case "listUnordered":
|
|
31718
31718
|
case "listOrdered":
|
|
31719
31719
|
case "blockQuote": {
|
|
31720
|
-
Je[0] === "enter" ?
|
|
31720
|
+
Je[0] === "enter" ? xe++ : xe--, x1 = void 0;
|
|
31721
31721
|
break;
|
|
31722
31722
|
}
|
|
31723
31723
|
case "lineEndingBlank": {
|
|
31724
|
-
Je[0] === "enter" && (Yt && !x1 && !
|
|
31724
|
+
Je[0] === "enter" && (Yt && !x1 && !xe && !v1 && (v1 = pe), x1 = void 0);
|
|
31725
31725
|
break;
|
|
31726
31726
|
}
|
|
31727
31727
|
case "linePrefix":
|
|
@@ -31733,7 +31733,7 @@ function Mq(e) {
|
|
|
31733
31733
|
default:
|
|
31734
31734
|
x1 = void 0;
|
|
31735
31735
|
}
|
|
31736
|
-
if (!
|
|
31736
|
+
if (!xe && Je[0] === "enter" && Je[1].type === "listItemPrefix" || xe === -1 && Je[0] === "exit" && (Je[1].type === "listUnordered" || Je[1].type === "listOrdered")) {
|
|
31737
31737
|
if (Yt) {
|
|
31738
31738
|
let l1 = pe;
|
|
31739
31739
|
for (Ht = void 0; l1--; ) {
|
|
@@ -31743,7 +31743,7 @@ function Mq(e) {
|
|
|
31743
31743
|
Ht && (P[Ht][1].type = "lineEndingBlank", lt = !0), Bt[1].type = "lineEnding", Ht = l1;
|
|
31744
31744
|
} else if (!(Bt[1].type === "linePrefix" || Bt[1].type === "blockQuotePrefix" || Bt[1].type === "blockQuotePrefixWhitespace" || Bt[1].type === "blockQuoteMarker" || Bt[1].type === "listItemIndent")) break;
|
|
31745
31745
|
}
|
|
31746
|
-
v1 && (!Ht || v1 < Ht) && (Yt._spread = !0), Yt.end = Object.assign({}, Ht ? P[Ht][1].start : Je[1].end), P.splice(Ht || pe, 0, ["exit", Yt, Je[2]]), pe++,
|
|
31746
|
+
v1 && (!Ht || v1 < Ht) && (Yt._spread = !0), Yt.end = Object.assign({}, Ht ? P[Ht][1].start : Je[1].end), P.splice(Ht || pe, 0, ["exit", Yt, Je[2]]), pe++, oe++;
|
|
31747
31747
|
}
|
|
31748
31748
|
if (Je[1].type === "listItemPrefix") {
|
|
31749
31749
|
const l1 = {
|
|
@@ -31753,16 +31753,16 @@ function Mq(e) {
|
|
|
31753
31753
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
31754
31754
|
end: void 0
|
|
31755
31755
|
};
|
|
31756
|
-
Yt = l1, P.splice(pe, 0, ["enter", l1, Je[2]]), pe++,
|
|
31756
|
+
Yt = l1, P.splice(pe, 0, ["enter", l1, Je[2]]), pe++, oe++, v1 = void 0, x1 = !0;
|
|
31757
31757
|
}
|
|
31758
31758
|
}
|
|
31759
31759
|
}
|
|
31760
|
-
return P[
|
|
31760
|
+
return P[W][1]._spread = lt, oe;
|
|
31761
31761
|
}
|
|
31762
|
-
function o(P,
|
|
31763
|
-
return
|
|
31764
|
-
function
|
|
31765
|
-
c.call(this, P(pe), pe),
|
|
31762
|
+
function o(P, W) {
|
|
31763
|
+
return oe;
|
|
31764
|
+
function oe(pe) {
|
|
31765
|
+
c.call(this, P(pe), pe), W && W.call(this, pe);
|
|
31766
31766
|
}
|
|
31767
31767
|
}
|
|
31768
31768
|
function l() {
|
|
@@ -31771,28 +31771,28 @@ function Mq(e) {
|
|
|
31771
31771
|
children: []
|
|
31772
31772
|
});
|
|
31773
31773
|
}
|
|
31774
|
-
function c(P,
|
|
31775
|
-
this.stack[this.stack.length - 1].children.push(P), this.stack.push(P), this.tokenStack.push([
|
|
31776
|
-
start: c1(
|
|
31774
|
+
function c(P, W, oe) {
|
|
31775
|
+
this.stack[this.stack.length - 1].children.push(P), this.stack.push(P), this.tokenStack.push([W, oe || void 0]), P.position = {
|
|
31776
|
+
start: c1(W.start),
|
|
31777
31777
|
// @ts-expect-error: `end` will be patched later.
|
|
31778
31778
|
end: void 0
|
|
31779
31779
|
};
|
|
31780
31780
|
}
|
|
31781
31781
|
function s(P) {
|
|
31782
|
-
return
|
|
31783
|
-
function
|
|
31784
|
-
P && P.call(this,
|
|
31782
|
+
return W;
|
|
31783
|
+
function W(oe) {
|
|
31784
|
+
P && P.call(this, oe), h.call(this, oe);
|
|
31785
31785
|
}
|
|
31786
31786
|
}
|
|
31787
|
-
function h(P,
|
|
31788
|
-
const
|
|
31787
|
+
function h(P, W) {
|
|
31788
|
+
const oe = this.stack.pop(), pe = this.tokenStack.pop();
|
|
31789
31789
|
if (pe)
|
|
31790
|
-
pe[0].type !== P.type && (
|
|
31790
|
+
pe[0].type !== P.type && (W ? W.call(this, P, pe[0]) : (pe[1] || Pb).call(this, P, pe[0]));
|
|
31791
31791
|
else throw new Error("Cannot close `" + P.type + "` (" + Ar({
|
|
31792
31792
|
start: P.start,
|
|
31793
31793
|
end: P.end
|
|
31794
31794
|
}) + "): it’s not open");
|
|
31795
|
-
|
|
31795
|
+
oe.position.end = c1(P.end);
|
|
31796
31796
|
}
|
|
31797
31797
|
function u() {
|
|
31798
31798
|
return hw(this.stack.pop());
|
|
@@ -31802,100 +31802,100 @@ function Mq(e) {
|
|
|
31802
31802
|
}
|
|
31803
31803
|
function m(P) {
|
|
31804
31804
|
if (this.data.expectingFirstListItemValue) {
|
|
31805
|
-
const
|
|
31806
|
-
|
|
31805
|
+
const W = this.stack[this.stack.length - 2];
|
|
31806
|
+
W.start = Number.parseInt(this.sliceSerialize(P), 10), this.data.expectingFirstListItemValue = void 0;
|
|
31807
31807
|
}
|
|
31808
31808
|
}
|
|
31809
31809
|
function k() {
|
|
31810
|
-
const P = this.resume(),
|
|
31811
|
-
|
|
31810
|
+
const P = this.resume(), W = this.stack[this.stack.length - 1];
|
|
31811
|
+
W.lang = P;
|
|
31812
31812
|
}
|
|
31813
31813
|
function g() {
|
|
31814
|
-
const P = this.resume(),
|
|
31815
|
-
|
|
31814
|
+
const P = this.resume(), W = this.stack[this.stack.length - 1];
|
|
31815
|
+
W.meta = P;
|
|
31816
31816
|
}
|
|
31817
31817
|
function x() {
|
|
31818
31818
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
31819
31819
|
}
|
|
31820
31820
|
function C() {
|
|
31821
|
-
const P = this.resume(),
|
|
31822
|
-
|
|
31821
|
+
const P = this.resume(), W = this.stack[this.stack.length - 1];
|
|
31822
|
+
W.value = P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
31823
31823
|
}
|
|
31824
31824
|
function w() {
|
|
31825
|
-
const P = this.resume(),
|
|
31826
|
-
|
|
31825
|
+
const P = this.resume(), W = this.stack[this.stack.length - 1];
|
|
31826
|
+
W.value = P.replace(/(\r?\n|\r)$/g, "");
|
|
31827
31827
|
}
|
|
31828
31828
|
function I(P) {
|
|
31829
|
-
const
|
|
31830
|
-
|
|
31829
|
+
const W = this.resume(), oe = this.stack[this.stack.length - 1];
|
|
31830
|
+
oe.label = W, oe.identifier = Ft(this.sliceSerialize(P)).toLowerCase();
|
|
31831
31831
|
}
|
|
31832
31832
|
function q() {
|
|
31833
|
-
const P = this.resume(),
|
|
31834
|
-
|
|
31833
|
+
const P = this.resume(), W = this.stack[this.stack.length - 1];
|
|
31834
|
+
W.title = P;
|
|
31835
31835
|
}
|
|
31836
31836
|
function E() {
|
|
31837
|
-
const P = this.resume(),
|
|
31838
|
-
|
|
31837
|
+
const P = this.resume(), W = this.stack[this.stack.length - 1];
|
|
31838
|
+
W.url = P;
|
|
31839
31839
|
}
|
|
31840
31840
|
function R(P) {
|
|
31841
|
-
const
|
|
31842
|
-
if (
|
|
31843
|
-
const
|
|
31844
|
-
|
|
31841
|
+
const W = this.stack[this.stack.length - 1];
|
|
31842
|
+
if (!W.depth) {
|
|
31843
|
+
const oe = this.sliceSerialize(P).length;
|
|
31844
|
+
W.depth = oe;
|
|
31845
31845
|
}
|
|
31846
31846
|
}
|
|
31847
31847
|
function T() {
|
|
31848
31848
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
31849
31849
|
}
|
|
31850
31850
|
function F(P) {
|
|
31851
|
-
const
|
|
31852
|
-
|
|
31851
|
+
const W = this.stack[this.stack.length - 1];
|
|
31852
|
+
W.depth = this.sliceSerialize(P).codePointAt(0) === 61 ? 1 : 2;
|
|
31853
31853
|
}
|
|
31854
31854
|
function X() {
|
|
31855
31855
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
31856
31856
|
}
|
|
31857
31857
|
function V(P) {
|
|
31858
|
-
const
|
|
31859
|
-
let pe =
|
|
31860
|
-
(!pe || pe.type !== "text") && (pe =
|
|
31858
|
+
const oe = this.stack[this.stack.length - 1].children;
|
|
31859
|
+
let pe = oe[oe.length - 1];
|
|
31860
|
+
(!pe || pe.type !== "text") && (pe = Et(), pe.position = {
|
|
31861
31861
|
start: c1(P.start),
|
|
31862
31862
|
// @ts-expect-error: we’ll add `end` later.
|
|
31863
31863
|
end: void 0
|
|
31864
|
-
},
|
|
31864
|
+
}, oe.push(pe)), this.stack.push(pe);
|
|
31865
31865
|
}
|
|
31866
31866
|
function B(P) {
|
|
31867
|
-
const
|
|
31868
|
-
|
|
31867
|
+
const W = this.stack.pop();
|
|
31868
|
+
W.value += this.sliceSerialize(P), W.position.end = c1(P.end);
|
|
31869
31869
|
}
|
|
31870
31870
|
function G(P) {
|
|
31871
|
-
const
|
|
31871
|
+
const W = this.stack[this.stack.length - 1];
|
|
31872
31872
|
if (this.data.atHardBreak) {
|
|
31873
|
-
const
|
|
31874
|
-
|
|
31873
|
+
const oe = W.children[W.children.length - 1];
|
|
31874
|
+
oe.position.end = c1(P.end), this.data.atHardBreak = void 0;
|
|
31875
31875
|
return;
|
|
31876
31876
|
}
|
|
31877
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(
|
|
31877
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(W.type) && (V.call(this, P), B.call(this, P));
|
|
31878
31878
|
}
|
|
31879
31879
|
function D() {
|
|
31880
31880
|
this.data.atHardBreak = !0;
|
|
31881
31881
|
}
|
|
31882
31882
|
function ie() {
|
|
31883
|
-
const P = this.resume(),
|
|
31884
|
-
|
|
31883
|
+
const P = this.resume(), W = this.stack[this.stack.length - 1];
|
|
31884
|
+
W.value = P;
|
|
31885
31885
|
}
|
|
31886
31886
|
function te() {
|
|
31887
|
-
const P = this.resume(),
|
|
31888
|
-
|
|
31887
|
+
const P = this.resume(), W = this.stack[this.stack.length - 1];
|
|
31888
|
+
W.value = P;
|
|
31889
31889
|
}
|
|
31890
31890
|
function Y() {
|
|
31891
|
-
const P = this.resume(),
|
|
31892
|
-
|
|
31891
|
+
const P = this.resume(), W = this.stack[this.stack.length - 1];
|
|
31892
|
+
W.value = P;
|
|
31893
31893
|
}
|
|
31894
31894
|
function ue() {
|
|
31895
31895
|
const P = this.stack[this.stack.length - 1];
|
|
31896
31896
|
if (this.data.inReference) {
|
|
31897
|
-
const
|
|
31898
|
-
P.type += "Reference", P.referenceType =
|
|
31897
|
+
const W = this.data.referenceType || "shortcut";
|
|
31898
|
+
P.type += "Reference", P.referenceType = W, delete P.url, delete P.title;
|
|
31899
31899
|
} else
|
|
31900
31900
|
delete P.identifier, delete P.label;
|
|
31901
31901
|
this.data.referenceType = void 0;
|
|
@@ -31903,65 +31903,65 @@ function Mq(e) {
|
|
|
31903
31903
|
function me() {
|
|
31904
31904
|
const P = this.stack[this.stack.length - 1];
|
|
31905
31905
|
if (this.data.inReference) {
|
|
31906
|
-
const
|
|
31907
|
-
P.type += "Reference", P.referenceType =
|
|
31906
|
+
const W = this.data.referenceType || "shortcut";
|
|
31907
|
+
P.type += "Reference", P.referenceType = W, delete P.url, delete P.title;
|
|
31908
31908
|
} else
|
|
31909
31909
|
delete P.identifier, delete P.label;
|
|
31910
31910
|
this.data.referenceType = void 0;
|
|
31911
31911
|
}
|
|
31912
|
-
function
|
|
31913
|
-
const
|
|
31914
|
-
|
|
31912
|
+
function Le(P) {
|
|
31913
|
+
const W = this.sliceSerialize(P), oe = this.stack[this.stack.length - 2];
|
|
31914
|
+
oe.label = gq(W), oe.identifier = Ft(W).toLowerCase();
|
|
31915
31915
|
}
|
|
31916
31916
|
function De() {
|
|
31917
|
-
const P = this.stack[this.stack.length - 1],
|
|
31918
|
-
if (this.data.inReference = !0,
|
|
31917
|
+
const P = this.stack[this.stack.length - 1], W = this.resume(), oe = this.stack[this.stack.length - 1];
|
|
31918
|
+
if (this.data.inReference = !0, oe.type === "link") {
|
|
31919
31919
|
const pe = P.children;
|
|
31920
|
-
|
|
31920
|
+
oe.children = pe;
|
|
31921
31921
|
} else
|
|
31922
|
-
|
|
31922
|
+
oe.alt = W;
|
|
31923
31923
|
}
|
|
31924
31924
|
function L() {
|
|
31925
|
-
const P = this.resume(),
|
|
31926
|
-
|
|
31925
|
+
const P = this.resume(), W = this.stack[this.stack.length - 1];
|
|
31926
|
+
W.url = P;
|
|
31927
31927
|
}
|
|
31928
|
-
function
|
|
31929
|
-
const P = this.resume(),
|
|
31930
|
-
|
|
31928
|
+
function ve() {
|
|
31929
|
+
const P = this.resume(), W = this.stack[this.stack.length - 1];
|
|
31930
|
+
W.title = P;
|
|
31931
31931
|
}
|
|
31932
|
-
function
|
|
31932
|
+
function be() {
|
|
31933
31933
|
this.data.inReference = void 0;
|
|
31934
31934
|
}
|
|
31935
31935
|
function A() {
|
|
31936
31936
|
this.data.referenceType = "collapsed";
|
|
31937
31937
|
}
|
|
31938
31938
|
function je(P) {
|
|
31939
|
-
const
|
|
31940
|
-
|
|
31939
|
+
const W = this.resume(), oe = this.stack[this.stack.length - 1];
|
|
31940
|
+
oe.label = W, oe.identifier = Ft(this.sliceSerialize(P)).toLowerCase(), this.data.referenceType = "full";
|
|
31941
31941
|
}
|
|
31942
31942
|
function _e(P) {
|
|
31943
31943
|
this.data.characterReferenceType = P.type;
|
|
31944
31944
|
}
|
|
31945
31945
|
function Te(P) {
|
|
31946
|
-
const
|
|
31946
|
+
const W = this.sliceSerialize(P), oe = this.data.characterReferenceType;
|
|
31947
31947
|
let pe;
|
|
31948
|
-
|
|
31949
|
-
const
|
|
31950
|
-
|
|
31948
|
+
oe ? (pe = MS(W, oe === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : pe = uw(W);
|
|
31949
|
+
const xe = this.stack[this.stack.length - 1];
|
|
31950
|
+
xe.value += pe;
|
|
31951
31951
|
}
|
|
31952
31952
|
function Ze(P) {
|
|
31953
|
-
const
|
|
31954
|
-
|
|
31953
|
+
const W = this.stack.pop();
|
|
31954
|
+
W.position.end = c1(P.end);
|
|
31955
31955
|
}
|
|
31956
31956
|
function Pe(P) {
|
|
31957
31957
|
B.call(this, P);
|
|
31958
|
-
const
|
|
31959
|
-
|
|
31958
|
+
const W = this.stack[this.stack.length - 1];
|
|
31959
|
+
W.url = this.sliceSerialize(P);
|
|
31960
31960
|
}
|
|
31961
31961
|
function Ge(P) {
|
|
31962
31962
|
B.call(this, P);
|
|
31963
|
-
const
|
|
31964
|
-
|
|
31963
|
+
const W = this.stack[this.stack.length - 1];
|
|
31964
|
+
W.url = "mailto:" + this.sliceSerialize(P);
|
|
31965
31965
|
}
|
|
31966
31966
|
function We() {
|
|
31967
31967
|
return {
|
|
@@ -31992,7 +31992,7 @@ function Mq(e) {
|
|
|
31992
31992
|
url: ""
|
|
31993
31993
|
};
|
|
31994
31994
|
}
|
|
31995
|
-
function
|
|
31995
|
+
function Xt() {
|
|
31996
31996
|
return {
|
|
31997
31997
|
type: "emphasis",
|
|
31998
31998
|
children: []
|
|
@@ -32056,13 +32056,13 @@ function Mq(e) {
|
|
|
32056
32056
|
children: []
|
|
32057
32057
|
};
|
|
32058
32058
|
}
|
|
32059
|
-
function
|
|
32059
|
+
function St() {
|
|
32060
32060
|
return {
|
|
32061
32061
|
type: "strong",
|
|
32062
32062
|
children: []
|
|
32063
32063
|
};
|
|
32064
32064
|
}
|
|
32065
|
-
function
|
|
32065
|
+
function Et() {
|
|
32066
32066
|
return {
|
|
32067
32067
|
type: "text",
|
|
32068
32068
|
value: ""
|
|
@@ -33086,7 +33086,7 @@ function vH(e, t) {
|
|
|
33086
33086
|
a(null, l);
|
|
33087
33087
|
}
|
|
33088
33088
|
}
|
|
33089
|
-
const
|
|
33089
|
+
const Vt = { basename: xH, dirname: MH, extname: wH, join: bH, sep: "/" };
|
|
33090
33090
|
function xH(e, t) {
|
|
33091
33091
|
if (t !== void 0 && typeof t != "string")
|
|
33092
33092
|
throw new TypeError('"ext" argument must be a string');
|
|
@@ -33292,7 +33292,7 @@ class VS {
|
|
|
33292
33292
|
* Basename.
|
|
33293
33293
|
*/
|
|
33294
33294
|
get basename() {
|
|
33295
|
-
return typeof this.path == "string" ?
|
|
33295
|
+
return typeof this.path == "string" ? Vt.basename(this.path) : void 0;
|
|
33296
33296
|
}
|
|
33297
33297
|
/**
|
|
33298
33298
|
* Set basename (including extname) (`'index.min.js'`).
|
|
@@ -33307,7 +33307,7 @@ class VS {
|
|
|
33307
33307
|
* Nothing.
|
|
33308
33308
|
*/
|
|
33309
33309
|
set basename(t) {
|
|
33310
|
-
tM(t, "basename"), eM(t, "basename"), this.path =
|
|
33310
|
+
tM(t, "basename"), eM(t, "basename"), this.path = Vt.join(this.dirname || "", t);
|
|
33311
33311
|
}
|
|
33312
33312
|
/**
|
|
33313
33313
|
* Get the parent path (example: `'~'`).
|
|
@@ -33316,7 +33316,7 @@ class VS {
|
|
|
33316
33316
|
* Dirname.
|
|
33317
33317
|
*/
|
|
33318
33318
|
get dirname() {
|
|
33319
|
-
return typeof this.path == "string" ?
|
|
33319
|
+
return typeof this.path == "string" ? Vt.dirname(this.path) : void 0;
|
|
33320
33320
|
}
|
|
33321
33321
|
/**
|
|
33322
33322
|
* Set the parent path (example: `'~'`).
|
|
@@ -33329,7 +33329,7 @@ class VS {
|
|
|
33329
33329
|
* Nothing.
|
|
33330
33330
|
*/
|
|
33331
33331
|
set dirname(t) {
|
|
33332
|
-
Yb(this.basename, "dirname"), this.path =
|
|
33332
|
+
Yb(this.basename, "dirname"), this.path = Vt.join(t || "", this.basename);
|
|
33333
33333
|
}
|
|
33334
33334
|
/**
|
|
33335
33335
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -33338,7 +33338,7 @@ class VS {
|
|
|
33338
33338
|
* Extname.
|
|
33339
33339
|
*/
|
|
33340
33340
|
get extname() {
|
|
33341
|
-
return typeof this.path == "string" ?
|
|
33341
|
+
return typeof this.path == "string" ? Vt.extname(this.path) : void 0;
|
|
33342
33342
|
}
|
|
33343
33343
|
/**
|
|
33344
33344
|
* Set the extname (including dot) (example: `'.js'`).
|
|
@@ -33359,7 +33359,7 @@ class VS {
|
|
|
33359
33359
|
if (t.includes(".", 1))
|
|
33360
33360
|
throw new Error("`extname` cannot contain multiple dots");
|
|
33361
33361
|
}
|
|
33362
|
-
this.path =
|
|
33362
|
+
this.path = Vt.join(this.dirname, this.stem + (t || ""));
|
|
33363
33363
|
}
|
|
33364
33364
|
/**
|
|
33365
33365
|
* Get the full path (example: `'~/index.min.js'`).
|
|
@@ -33392,7 +33392,7 @@ class VS {
|
|
|
33392
33392
|
* Stem.
|
|
33393
33393
|
*/
|
|
33394
33394
|
get stem() {
|
|
33395
|
-
return typeof this.path == "string" ?
|
|
33395
|
+
return typeof this.path == "string" ? Vt.basename(this.path, this.extname) : void 0;
|
|
33396
33396
|
}
|
|
33397
33397
|
/**
|
|
33398
33398
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -33407,7 +33407,7 @@ class VS {
|
|
|
33407
33407
|
* Nothing.
|
|
33408
33408
|
*/
|
|
33409
33409
|
set stem(t) {
|
|
33410
|
-
tM(t, "stem"), eM(t, "stem"), this.path =
|
|
33410
|
+
tM(t, "stem"), eM(t, "stem"), this.path = Vt.join(this.dirname || "", t + (this.extname || ""));
|
|
33411
33411
|
}
|
|
33412
33412
|
// Normal prototypal methods.
|
|
33413
33413
|
/**
|
|
@@ -33621,9 +33621,9 @@ class VS {
|
|
|
33621
33621
|
}
|
|
33622
33622
|
}
|
|
33623
33623
|
function eM(e, t) {
|
|
33624
|
-
if (e && e.includes(
|
|
33624
|
+
if (e && e.includes(Vt.sep))
|
|
33625
33625
|
throw new Error(
|
|
33626
|
-
"`" + t + "` cannot be a path: did not expect `" +
|
|
33626
|
+
"`" + t + "` cannot be a path: did not expect `" + Vt.sep + "`"
|
|
33627
33627
|
);
|
|
33628
33628
|
}
|
|
33629
33629
|
function tM(e, t) {
|
|
@@ -34228,11 +34228,11 @@ function UH(e, t) {
|
|
|
34228
34228
|
for (const u of jH)
|
|
34229
34229
|
Object.hasOwn(t, u.from) && ("" + u.from + (u.to ? "use `" + u.to + "` instead" : "remove it") + RH + u.id, void 0);
|
|
34230
34230
|
return gw(e, h), oz(e, {
|
|
34231
|
-
Fragment:
|
|
34231
|
+
Fragment: U.Fragment,
|
|
34232
34232
|
components: a,
|
|
34233
34233
|
ignoreInvalidStyle: !0,
|
|
34234
|
-
jsx:
|
|
34235
|
-
jsxs:
|
|
34234
|
+
jsx: U.jsx,
|
|
34235
|
+
jsxs: U.jsxs,
|
|
34236
34236
|
passKeys: !0,
|
|
34237
34237
|
passNode: !0
|
|
34238
34238
|
});
|
|
@@ -34555,7 +34555,7 @@ class xt {
|
|
|
34555
34555
|
return r ? !t || !t.loc || !r.loc || t.loc.lexer !== r.loc.lexer ? null : new xt(t.loc.lexer, t.loc.start, r.loc.end) : t && t.loc;
|
|
34556
34556
|
}
|
|
34557
34557
|
}
|
|
34558
|
-
class
|
|
34558
|
+
class zt {
|
|
34559
34559
|
// don't expand the token
|
|
34560
34560
|
// used in \noexpand
|
|
34561
34561
|
constructor(t, r) {
|
|
@@ -34566,10 +34566,10 @@ class At {
|
|
|
34566
34566
|
* the whole input range enclosed by these two.
|
|
34567
34567
|
*/
|
|
34568
34568
|
range(t, r) {
|
|
34569
|
-
return new
|
|
34569
|
+
return new zt(r, xt.range(this, t));
|
|
34570
34570
|
}
|
|
34571
34571
|
}
|
|
34572
|
-
class
|
|
34572
|
+
class _ {
|
|
34573
34573
|
// Error start position based on passed-in Token or ParseNode.
|
|
34574
34574
|
// Length of affected text based on passed-in Token or ParseNode.
|
|
34575
34575
|
// The underlying error message without any context added.
|
|
@@ -34585,10 +34585,10 @@ class U {
|
|
|
34585
34585
|
o + 15 < c.length ? u = c.slice(o, o + 15) + "…" : u = c.slice(o), n += h + s + u;
|
|
34586
34586
|
}
|
|
34587
34587
|
var d = new Error(n);
|
|
34588
|
-
return d.name = "ParseError", d.__proto__ =
|
|
34588
|
+
return d.name = "ParseError", d.__proto__ = _.prototype, d.position = a, a != null && o != null && (d.length = o - a), d.rawMessage = t, d;
|
|
34589
34589
|
}
|
|
34590
34590
|
}
|
|
34591
|
-
|
|
34591
|
+
_.prototype.__proto__ = Error.prototype;
|
|
34592
34592
|
var eB = function(t, r) {
|
|
34593
34593
|
return t.indexOf(r) !== -1;
|
|
34594
34594
|
}, tB = function(t, r) {
|
|
@@ -34746,7 +34746,7 @@ class xw {
|
|
|
34746
34746
|
var a = this.strict;
|
|
34747
34747
|
if (typeof a == "function" && (a = a(t, r, n)), !(!a || a === "ignore")) {
|
|
34748
34748
|
if (a === !0 || a === "error")
|
|
34749
|
-
throw new
|
|
34749
|
+
throw new _("LaTeX-incompatible input and strict mode is set to 'error': " + (r + " [" + t + "]"), n);
|
|
34750
34750
|
a === "warn" ? typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to 'warn': " + (r + " [" + t + "]")) : typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to " + ("unrecognized '" + a + "': " + r + " [" + t + "]"));
|
|
34751
34751
|
}
|
|
34752
34752
|
}
|
|
@@ -34795,40 +34795,40 @@ class s1 {
|
|
|
34795
34795
|
* Get the style of a superscript given a base in the current style.
|
|
34796
34796
|
*/
|
|
34797
34797
|
sup() {
|
|
34798
|
-
return
|
|
34798
|
+
return Nt[uB[this.id]];
|
|
34799
34799
|
}
|
|
34800
34800
|
/**
|
|
34801
34801
|
* Get the style of a subscript given a base in the current style.
|
|
34802
34802
|
*/
|
|
34803
34803
|
sub() {
|
|
34804
|
-
return
|
|
34804
|
+
return Nt[dB[this.id]];
|
|
34805
34805
|
}
|
|
34806
34806
|
/**
|
|
34807
34807
|
* Get the style of a fraction numerator given the fraction in the current
|
|
34808
34808
|
* style.
|
|
34809
34809
|
*/
|
|
34810
34810
|
fracNum() {
|
|
34811
|
-
return
|
|
34811
|
+
return Nt[pB[this.id]];
|
|
34812
34812
|
}
|
|
34813
34813
|
/**
|
|
34814
34814
|
* Get the style of a fraction denominator given the fraction in the current
|
|
34815
34815
|
* style.
|
|
34816
34816
|
*/
|
|
34817
34817
|
fracDen() {
|
|
34818
|
-
return
|
|
34818
|
+
return Nt[yB[this.id]];
|
|
34819
34819
|
}
|
|
34820
34820
|
/**
|
|
34821
34821
|
* Get the cramped version of a style (in particular, cramping a cramped style
|
|
34822
34822
|
* doesn't change the style).
|
|
34823
34823
|
*/
|
|
34824
34824
|
cramp() {
|
|
34825
|
-
return
|
|
34825
|
+
return Nt[kB[this.id]];
|
|
34826
34826
|
}
|
|
34827
34827
|
/**
|
|
34828
34828
|
* Get a text or display version of this style.
|
|
34829
34829
|
*/
|
|
34830
34830
|
text() {
|
|
34831
|
-
return
|
|
34831
|
+
return Nt[mB[this.id]];
|
|
34832
34832
|
}
|
|
34833
34833
|
/**
|
|
34834
34834
|
* Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle)
|
|
@@ -34837,11 +34837,11 @@ class s1 {
|
|
|
34837
34837
|
return this.size >= 2;
|
|
34838
34838
|
}
|
|
34839
34839
|
}
|
|
34840
|
-
var Mw = 0, xx = 1, nr = 2, Jt = 3, Pr = 4,
|
|
34841
|
-
DISPLAY:
|
|
34842
|
-
TEXT:
|
|
34843
|
-
SCRIPT:
|
|
34844
|
-
SCRIPTSCRIPT:
|
|
34840
|
+
var Mw = 0, xx = 1, nr = 2, Jt = 3, Pr = 4, At = 5, lr = 6, it = 7, Nt = [new s1(Mw, 0, !1), new s1(xx, 0, !0), new s1(nr, 1, !1), new s1(Jt, 1, !0), new s1(Pr, 2, !1), new s1(At, 2, !0), new s1(lr, 3, !1), new s1(it, 3, !0)], uB = [Pr, At, Pr, At, lr, it, lr, it], dB = [At, At, At, At, it, it, it, it], pB = [nr, Jt, Pr, At, lr, it, lr, it], yB = [Jt, Jt, At, At, it, it, it, it], kB = [xx, xx, Jt, Jt, At, At, it, it], mB = [Mw, xx, nr, Jt, nr, Jt, nr, Jt], ae = {
|
|
34841
|
+
DISPLAY: Nt[Mw],
|
|
34842
|
+
TEXT: Nt[nr],
|
|
34843
|
+
SCRIPT: Nt[Pr],
|
|
34844
|
+
SCRIPTSCRIPT: Nt[lr]
|
|
34845
34845
|
}, NM = [{
|
|
34846
34846
|
// Latin characters beyond the Latin-1 characters we have metrics for.
|
|
34847
34847
|
// Needed for Czech, Hungarian and Turkish text, for example.
|
|
@@ -35367,7 +35367,7 @@ class Vr {
|
|
|
35367
35367
|
return this.children.map(t).join("");
|
|
35368
35368
|
}
|
|
35369
35369
|
}
|
|
35370
|
-
var
|
|
35370
|
+
var Ut = {
|
|
35371
35371
|
"AMS-Regular": {
|
|
35372
35372
|
32: [0, 0, 0, 0, 0.25],
|
|
35373
35373
|
65: [0, 0.68889, 0, 0, 0.72222],
|
|
@@ -37598,13 +37598,13 @@ var Nt = {
|
|
|
37598
37598
|
я: "r"
|
|
37599
37599
|
};
|
|
37600
37600
|
function AB(e, t) {
|
|
37601
|
-
|
|
37601
|
+
Ut[e] = t;
|
|
37602
37602
|
}
|
|
37603
37603
|
function ww(e, t, r) {
|
|
37604
|
-
if (!
|
|
37604
|
+
if (!Ut[t])
|
|
37605
37605
|
throw new Error("Font metrics not found for font: " + t + ".");
|
|
37606
|
-
var n = e.charCodeAt(0), a =
|
|
37607
|
-
if (!a && e[0] in nL && (n = nL[e[0]].charCodeAt(0), a =
|
|
37606
|
+
var n = e.charCodeAt(0), a = Ut[t][n];
|
|
37607
|
+
if (!a && e[0] in nL && (n = nL[e[0]].charCodeAt(0), a = Ut[t][n]), !a && r === "text" && _S(n) && (a = Ut[t][77]), a)
|
|
37608
37608
|
return {
|
|
37609
37609
|
depth: a[0],
|
|
37610
37610
|
height: a[1],
|
|
@@ -37890,11 +37890,11 @@ var UM = {
|
|
|
37890
37890
|
else if (t.unit === "em")
|
|
37891
37891
|
n = a.fontMetrics().quad;
|
|
37892
37892
|
else
|
|
37893
|
-
throw new
|
|
37893
|
+
throw new _("Invalid unit: '" + t.unit + "'");
|
|
37894
37894
|
a !== r && (n *= a.sizeMultiplier / r.sizeMultiplier);
|
|
37895
37895
|
}
|
|
37896
37896
|
return Math.min(t.number * n, r.maxSize);
|
|
37897
|
-
},
|
|
37897
|
+
}, $ = function(t) {
|
|
37898
37898
|
return +t.toFixed(4) + "em";
|
|
37899
37899
|
}, d1 = function(t) {
|
|
37900
37900
|
return t.filter((r) => r).join(" ");
|
|
@@ -37924,7 +37924,7 @@ var UM = {
|
|
|
37924
37924
|
for (var o in this.attributes)
|
|
37925
37925
|
if (this.attributes.hasOwnProperty(o)) {
|
|
37926
37926
|
if (HB.test(o))
|
|
37927
|
-
throw new
|
|
37927
|
+
throw new _("Invalid attribute name '" + o + "'");
|
|
37928
37928
|
r += " " + o + '="' + re.escape(this.attributes[o]) + '"';
|
|
37929
37929
|
}
|
|
37930
37930
|
r += ">";
|
|
@@ -37999,7 +37999,7 @@ var PB = {
|
|
|
37999
37999
|
// 'ī': '\u0131\u0304', // enable when we add Extended Latin
|
|
38000
38000
|
ì: "ı̀"
|
|
38001
38001
|
};
|
|
38002
|
-
class
|
|
38002
|
+
class Tt {
|
|
38003
38003
|
constructor(t, r, n, a, o, l, c, s) {
|
|
38004
38004
|
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 = t, this.height = r || 0, this.depth = n || 0, this.italic = a || 0, this.skew = o || 0, this.width = l || 0, this.classes = c || [], this.style = s || {}, this.maxFontSize = 0;
|
|
38005
38005
|
var h = fB(this.text.charCodeAt(0));
|
|
@@ -38014,7 +38014,7 @@ class zt {
|
|
|
38014
38014
|
*/
|
|
38015
38015
|
toNode() {
|
|
38016
38016
|
var t = document.createTextNode(this.text), r = null;
|
|
38017
|
-
this.italic > 0 && (r = document.createElement("span"), r.style.marginRight =
|
|
38017
|
+
this.italic > 0 && (r = document.createElement("span"), r.style.marginRight = $(this.italic)), this.classes.length > 0 && (r = r || document.createElement("span"), r.className = d1(this.classes));
|
|
38018
38018
|
for (var n in this.style)
|
|
38019
38019
|
this.style.hasOwnProperty(n) && (r = r || document.createElement("span"), r.style[n] = this.style[n]);
|
|
38020
38020
|
return r ? (r.appendChild(t), r) : t;
|
|
@@ -38086,7 +38086,7 @@ class _M {
|
|
|
38086
38086
|
}
|
|
38087
38087
|
}
|
|
38088
38088
|
function oL(e) {
|
|
38089
|
-
if (e instanceof
|
|
38089
|
+
if (e instanceof Tt)
|
|
38090
38090
|
return e;
|
|
38091
38091
|
throw new Error("Expected symbolNode but got " + String(e) + ".");
|
|
38092
38092
|
}
|
|
@@ -38108,16 +38108,16 @@ var DB = {
|
|
|
38108
38108
|
"op-token": 1,
|
|
38109
38109
|
spacing: 1,
|
|
38110
38110
|
textord: 1
|
|
38111
|
-
},
|
|
38111
|
+
}, ze = {
|
|
38112
38112
|
math: {},
|
|
38113
38113
|
text: {}
|
|
38114
38114
|
};
|
|
38115
38115
|
function p(e, t, r, n, a, o) {
|
|
38116
|
-
|
|
38116
|
+
ze[e][a] = {
|
|
38117
38117
|
font: t,
|
|
38118
38118
|
group: r,
|
|
38119
38119
|
replace: n
|
|
38120
|
-
}, o && n && (
|
|
38120
|
+
}, o && n && (ze[e][n] = ze[e][a]);
|
|
38121
38121
|
}
|
|
38122
38122
|
var y = "math", j = "text", f = "main", M = "ams", qe = "accent-token", Q = "bin", ot = "close", dr = "inner", ne = "mathord", Ne = "op-token", bt = "open", Hx = "punct", b = "rel", a1 = "spacing", z = "textord";
|
|
38123
38123
|
p(y, f, b, "≡", "\\equiv", !0);
|
|
@@ -38749,17 +38749,17 @@ p(y, M, z, "Z", "ℤ");
|
|
|
38749
38749
|
p(j, M, z, "Z", "ℤ");
|
|
38750
38750
|
p(y, f, ne, "h", "ℎ");
|
|
38751
38751
|
p(j, f, ne, "h", "ℎ");
|
|
38752
|
-
var
|
|
38752
|
+
var le = "";
|
|
38753
38753
|
for (var tt = 0; tt < Mx.length; tt++) {
|
|
38754
38754
|
var Fe = Mx.charAt(tt);
|
|
38755
|
-
|
|
38755
|
+
le = String.fromCharCode(55349, 56320 + tt), p(y, f, ne, Fe, le), p(j, f, z, Fe, le), le = String.fromCharCode(55349, 56372 + tt), p(y, f, ne, Fe, le), p(j, f, z, Fe, le), le = String.fromCharCode(55349, 56424 + tt), p(y, f, ne, Fe, le), p(j, f, z, Fe, le), le = String.fromCharCode(55349, 56580 + tt), p(y, f, ne, Fe, le), p(j, f, z, Fe, le), le = String.fromCharCode(55349, 56684 + tt), p(y, f, ne, Fe, le), p(j, f, z, Fe, le), le = String.fromCharCode(55349, 56736 + tt), p(y, f, ne, Fe, le), p(j, f, z, Fe, le), le = String.fromCharCode(55349, 56788 + tt), p(y, f, ne, Fe, le), p(j, f, z, Fe, le), le = String.fromCharCode(55349, 56840 + tt), p(y, f, ne, Fe, le), p(j, f, z, Fe, le), le = String.fromCharCode(55349, 56944 + tt), p(y, f, ne, Fe, le), p(j, f, z, Fe, le), tt < 26 && (le = String.fromCharCode(55349, 56632 + tt), p(y, f, ne, Fe, le), p(j, f, z, Fe, le), le = String.fromCharCode(55349, 56476 + tt), p(y, f, ne, Fe, le), p(j, f, z, Fe, le));
|
|
38756
38756
|
}
|
|
38757
|
-
|
|
38758
|
-
p(y, f, ne, "k",
|
|
38759
|
-
p(j, f, z, "k",
|
|
38757
|
+
le = "𝕜";
|
|
38758
|
+
p(y, f, ne, "k", le);
|
|
38759
|
+
p(j, f, z, "k", le);
|
|
38760
38760
|
for (var w1 = 0; w1 < 10; w1++) {
|
|
38761
38761
|
var h1 = w1.toString();
|
|
38762
|
-
|
|
38762
|
+
le = String.fromCharCode(55349, 57294 + w1), p(y, f, ne, h1, le), p(j, f, z, h1, le), le = String.fromCharCode(55349, 57314 + w1), p(y, f, ne, h1, le), p(j, f, z, h1, le), le = String.fromCharCode(55349, 57324 + w1), p(y, f, ne, h1, le), p(j, f, z, h1, le), le = String.fromCharCode(55349, 57334 + w1), p(y, f, ne, h1, le), p(j, f, z, h1, le);
|
|
38763
38763
|
}
|
|
38764
38764
|
var ZM = "ÐÞþ";
|
|
38765
38765
|
for (var sM = 0; sM < ZM.length; sM++) {
|
|
@@ -38846,10 +38846,10 @@ var Qr = [
|
|
|
38846
38846
|
return [Qr[0][2], Qr[0][l]];
|
|
38847
38847
|
if (120486 < o && o < 120782)
|
|
38848
38848
|
return ["", ""];
|
|
38849
|
-
throw new
|
|
38849
|
+
throw new _("Unsupported character: " + t);
|
|
38850
38850
|
}
|
|
38851
38851
|
}, Bx = function(t, r, n) {
|
|
38852
|
-
return
|
|
38852
|
+
return ze[n][t] && ze[n][t].replace && (t = ze[n][t].replace), {
|
|
38853
38853
|
value: t,
|
|
38854
38854
|
metrics: ww(t, r, n)
|
|
38855
38855
|
};
|
|
@@ -38859,9 +38859,9 @@ var Qr = [
|
|
|
38859
38859
|
var s;
|
|
38860
38860
|
if (c) {
|
|
38861
38861
|
var h = c.italic;
|
|
38862
|
-
(n === "text" || a && a.font === "mathit") && (h = 0), s = new
|
|
38862
|
+
(n === "text" || a && a.font === "mathit") && (h = 0), s = new Tt(t, c.height, c.depth, h, c.skew, c.width, o);
|
|
38863
38863
|
} else
|
|
38864
|
-
typeof console < "u" && console.warn("No character metrics " + ("for '" + t + "' in style '" + r + "' and mode '" + n + "'")), s = new
|
|
38864
|
+
typeof console < "u" && console.warn("No character metrics " + ("for '" + t + "' in style '" + r + "' and mode '" + n + "'")), s = new Tt(t, 0, 0, 0, 0, 0, o);
|
|
38865
38865
|
if (a) {
|
|
38866
38866
|
s.maxFontSize = a.sizeMultiplier, a.style.isTight() && s.classes.push("mtight");
|
|
38867
38867
|
var u = a.getColor();
|
|
@@ -38869,7 +38869,7 @@ var Qr = [
|
|
|
38869
38869
|
}
|
|
38870
38870
|
return s;
|
|
38871
38871
|
}, jB = function(t, r, n, a) {
|
|
38872
|
-
return a === void 0 && (a = []), n.font === "boldsymbol" && Bx(t, "Main-Bold", r).metrics ? Pt(t, "Main-Bold", r, n, a.concat(["mathbf"])) : t === "\\" ||
|
|
38872
|
+
return a === void 0 && (a = []), n.font === "boldsymbol" && Bx(t, "Main-Bold", r).metrics ? Pt(t, "Main-Bold", r, n, a.concat(["mathbf"])) : t === "\\" || ze[r][t].font === "main" ? Pt(t, "Main-Regular", r, n, a) : Pt(t, "AMS-Regular", r, n, a.concat(["amsrm"]));
|
|
38873
38873
|
}, OB = function(t, r, n, a, o) {
|
|
38874
38874
|
return o !== "textord" && Bx(t, "Math-BoldItalic", r).metrics ? {
|
|
38875
38875
|
fontName: "Math-BoldItalic",
|
|
@@ -38899,7 +38899,7 @@ var Qr = [
|
|
|
38899
38899
|
if (n === "mathord")
|
|
38900
38900
|
return Pt(o, "Math-Italic", a, r, l.concat(["mathnormal"]));
|
|
38901
38901
|
if (n === "textord") {
|
|
38902
|
-
var C =
|
|
38902
|
+
var C = ze[a][o] && ze[a][o].font;
|
|
38903
38903
|
if (C === "ams") {
|
|
38904
38904
|
var w = Jr("amsrm", r.fontWeight, r.fontShape);
|
|
38905
38905
|
return Pt(o, w, a, r, l.concat("amsrm", r.fontWeight, r.fontShape));
|
|
@@ -38930,7 +38930,7 @@ var Qr = [
|
|
|
38930
38930
|
}, UB = (e) => {
|
|
38931
38931
|
for (var t = 0; t < e.length - 1; t++) {
|
|
38932
38932
|
var r = e[t], n = e[t + 1];
|
|
38933
|
-
r instanceof
|
|
38933
|
+
r instanceof Tt && n instanceof Tt && NB(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, e.splice(t + 1, 1), t--);
|
|
38934
38934
|
}
|
|
38935
38935
|
return e;
|
|
38936
38936
|
}, Lw = function(t) {
|
|
@@ -38944,7 +38944,7 @@ var Qr = [
|
|
|
38944
38944
|
return Lw(o), o;
|
|
38945
38945
|
}, YS = (e, t, r, n) => new Nr(e, t, r, n), _B = function(t, r, n) {
|
|
38946
38946
|
var a = ht([t], [], r);
|
|
38947
|
-
return a.height = Math.max(n || r.fontMetrics().defaultRuleThickness, r.minRuleThickness), a.style.borderBottomWidth =
|
|
38947
|
+
return a.height = Math.max(n || r.fontMetrics().defaultRuleThickness, r.minRuleThickness), a.style.borderBottomWidth = $(a.height), a.maxFontSize = 1, a;
|
|
38948
38948
|
}, ZB = function(t, r, n, a) {
|
|
38949
38949
|
var o = new bw(t, r, n, a);
|
|
38950
38950
|
return Lw(o), o;
|
|
@@ -39004,24 +39004,24 @@ var Qr = [
|
|
|
39004
39004
|
}
|
|
39005
39005
|
o += 2;
|
|
39006
39006
|
var h = ht(["pstrut"], []);
|
|
39007
|
-
h.style.height =
|
|
39007
|
+
h.style.height = $(o);
|
|
39008
39008
|
for (var u = [], d = a, m = a, k = a, g = 0; g < n.length; g++) {
|
|
39009
39009
|
var x = n[g];
|
|
39010
39010
|
if (x.type === "kern")
|
|
39011
39011
|
k += x.size;
|
|
39012
39012
|
else {
|
|
39013
39013
|
var C = x.elem, w = x.wrapperClasses || [], I = x.wrapperStyle || {}, q = ht(w, [h, C], void 0, I);
|
|
39014
|
-
q.style.top =
|
|
39014
|
+
q.style.top = $(-o - k - C.depth), x.marginLeft && (q.style.marginLeft = x.marginLeft), x.marginRight && (q.style.marginRight = x.marginRight), u.push(q), k += C.height + C.depth;
|
|
39015
39015
|
}
|
|
39016
39016
|
d = Math.min(d, k), m = Math.max(m, k);
|
|
39017
39017
|
}
|
|
39018
39018
|
var E = ht(["vlist"], u);
|
|
39019
|
-
E.style.height =
|
|
39019
|
+
E.style.height = $(m);
|
|
39020
39020
|
var R;
|
|
39021
39021
|
if (d < 0) {
|
|
39022
39022
|
var T = ht([], []), F = ht(["vlist"], [T]);
|
|
39023
|
-
F.style.height =
|
|
39024
|
-
var X = ht(["vlist-s"], [new
|
|
39023
|
+
F.style.height = $(-d);
|
|
39024
|
+
var X = ht(["vlist-s"], [new Tt("")]);
|
|
39025
39025
|
R = [ht(["vlist-r"], [E, X]), ht(["vlist-r"], [F])];
|
|
39026
39026
|
} else
|
|
39027
39027
|
R = [ht(["vlist-r"], [E])];
|
|
@@ -39029,7 +39029,7 @@ var Qr = [
|
|
|
39029
39029
|
return R.length === 2 && V.classes.push("vlist-t2"), V.height = m, V.depth = -d, V;
|
|
39030
39030
|
}, XB = (e, t) => {
|
|
39031
39031
|
var r = ht(["mspace"], [], t), n = Be(e, t);
|
|
39032
|
-
return r.style.marginRight =
|
|
39032
|
+
return r.style.marginRight = $(n), r;
|
|
39033
39033
|
}, Jr = function(t, r, n) {
|
|
39034
39034
|
var a = "";
|
|
39035
39035
|
switch (t) {
|
|
@@ -39115,14 +39115,14 @@ var Qr = [
|
|
|
39115
39115
|
oiiintSize2: ["oiiintSize2", 1.98, 0.659]
|
|
39116
39116
|
}, YB = function(t, r) {
|
|
39117
39117
|
var [n, a, o] = JS[t], l = new p1(n), c = new t1([l], {
|
|
39118
|
-
width:
|
|
39119
|
-
height:
|
|
39118
|
+
width: $(a),
|
|
39119
|
+
height: $(o),
|
|
39120
39120
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
39121
|
-
style: "width:" +
|
|
39121
|
+
style: "width:" + $(a),
|
|
39122
39122
|
viewBox: "0 0 " + 1e3 * a + " " + 1e3 * o,
|
|
39123
39123
|
preserveAspectRatio: "xMinYMin"
|
|
39124
39124
|
}), s = YS(["overlay"], [c], r);
|
|
39125
|
-
return s.height = o, s.style.height =
|
|
39125
|
+
return s.height = o, s.style.height = $(o), s.style.width = $(a), s;
|
|
39126
39126
|
}, H = {
|
|
39127
39127
|
fontMap: QS,
|
|
39128
39128
|
makeSymbol: Pt,
|
|
@@ -39356,11 +39356,11 @@ var Lx = function(t) {
|
|
|
39356
39356
|
}
|
|
39357
39357
|
return a;
|
|
39358
39358
|
} else
|
|
39359
|
-
throw new
|
|
39359
|
+
throw new _("Got group of unknown type: '" + t.type + "'");
|
|
39360
39360
|
};
|
|
39361
39361
|
function en(e, t) {
|
|
39362
39362
|
var r = r1(["base"], e, t), n = r1(["strut"]);
|
|
39363
|
-
return n.style.height =
|
|
39363
|
+
return n.style.height = $(r.height + r.depth), r.depth && (n.style.verticalAlign = $(-r.depth)), r.children.unshift(n), r;
|
|
39364
39364
|
}
|
|
39365
39365
|
function WM(e, t) {
|
|
39366
39366
|
var r = null;
|
|
@@ -39379,7 +39379,7 @@ function WM(e, t) {
|
|
|
39379
39379
|
var u = r1(["katex-html"], o);
|
|
39380
39380
|
if (u.setAttribute("aria-hidden", "true"), h) {
|
|
39381
39381
|
var d = h.children[0];
|
|
39382
|
-
d.style.height =
|
|
39382
|
+
d.style.height = $(u.height + u.depth), u.depth && (d.style.verticalAlign = $(-u.depth));
|
|
39383
39383
|
}
|
|
39384
39384
|
return u;
|
|
39385
39385
|
}
|
|
@@ -39412,10 +39412,10 @@ class Mt {
|
|
|
39412
39412
|
Object.prototype.hasOwnProperty.call(this.attributes, r) && t.setAttribute(r, this.attributes[r]);
|
|
39413
39413
|
this.classes.length > 0 && (t.className = d1(this.classes));
|
|
39414
39414
|
for (var n = 0; n < this.children.length; n++)
|
|
39415
|
-
if (this.children[n] instanceof
|
|
39416
|
-
for (var a = this.children[n].toText() + this.children[++n].toText(); this.children[n + 1] instanceof
|
|
39415
|
+
if (this.children[n] instanceof _t && this.children[n + 1] instanceof _t) {
|
|
39416
|
+
for (var a = this.children[n].toText() + this.children[++n].toText(); this.children[n + 1] instanceof _t; )
|
|
39417
39417
|
a += this.children[++n].toText();
|
|
39418
|
-
t.appendChild(new
|
|
39418
|
+
t.appendChild(new _t(a).toNode());
|
|
39419
39419
|
} else
|
|
39420
39420
|
t.appendChild(this.children[n].toNode());
|
|
39421
39421
|
return t;
|
|
@@ -39439,7 +39439,7 @@ class Mt {
|
|
|
39439
39439
|
return this.children.map((t) => t.toText()).join("");
|
|
39440
39440
|
}
|
|
39441
39441
|
}
|
|
39442
|
-
class
|
|
39442
|
+
class _t {
|
|
39443
39443
|
constructor(t) {
|
|
39444
39444
|
this.text = void 0, this.text = t;
|
|
39445
39445
|
}
|
|
@@ -39478,13 +39478,13 @@ class aP {
|
|
|
39478
39478
|
if (this.character)
|
|
39479
39479
|
return document.createTextNode(this.character);
|
|
39480
39480
|
var t = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mspace");
|
|
39481
|
-
return t.setAttribute("width",
|
|
39481
|
+
return t.setAttribute("width", $(this.width)), t;
|
|
39482
39482
|
}
|
|
39483
39483
|
/**
|
|
39484
39484
|
* Converts the math node into an HTML markup string.
|
|
39485
39485
|
*/
|
|
39486
39486
|
toMarkup() {
|
|
39487
|
-
return this.character ? "<mtext>" + this.character + "</mtext>" : '<mspace width="' +
|
|
39487
|
+
return this.character ? "<mtext>" + this.character + "</mtext>" : '<mspace width="' + $(this.width) + '"/>';
|
|
39488
39488
|
}
|
|
39489
39489
|
/**
|
|
39490
39490
|
* Converts the math node into a string, similar to innerText.
|
|
@@ -39495,11 +39495,11 @@ class aP {
|
|
|
39495
39495
|
}
|
|
39496
39496
|
var O = {
|
|
39497
39497
|
MathNode: Mt,
|
|
39498
|
-
TextNode:
|
|
39498
|
+
TextNode: _t,
|
|
39499
39499
|
SpaceNode: aP,
|
|
39500
39500
|
newDocumentFragment: rC
|
|
39501
|
-
},
|
|
39502
|
-
return
|
|
39501
|
+
}, qt = function(t, r, n) {
|
|
39502
|
+
return ze[r][t] && ze[r][t].replace && t.charCodeAt(0) !== 55349 && !(XS.hasOwnProperty(t) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (t = ze[r][t].replace), new O.TextNode(t);
|
|
39503
39503
|
}, Sw = function(t) {
|
|
39504
39504
|
return t.length === 1 ? t[0] : new O.MathNode("mrow", t);
|
|
39505
39505
|
}, Cw = function(t, r) {
|
|
@@ -39538,7 +39538,7 @@ var O = {
|
|
|
39538
39538
|
var o = t.text;
|
|
39539
39539
|
if (re.contains(["\\imath", "\\jmath"], o))
|
|
39540
39540
|
return null;
|
|
39541
|
-
|
|
39541
|
+
ze[a][o] && ze[a][o].replace && (o = ze[a][o].replace);
|
|
39542
39542
|
var l = H.fontMap[n].fontName;
|
|
39543
39543
|
return ww(o, l, a) ? H.fontMap[n].variant : null;
|
|
39544
39544
|
};
|
|
@@ -39547,20 +39547,20 @@ function hM(e) {
|
|
|
39547
39547
|
return !1;
|
|
39548
39548
|
if (e.type === "mi" && e.children.length === 1) {
|
|
39549
39549
|
var t = e.children[0];
|
|
39550
|
-
return t instanceof
|
|
39550
|
+
return t instanceof _t && t.text === ".";
|
|
39551
39551
|
} else if (e.type === "mo" && e.children.length === 1 && e.getAttribute("separator") === "true" && e.getAttribute("lspace") === "0em" && e.getAttribute("rspace") === "0em") {
|
|
39552
39552
|
var r = e.children[0];
|
|
39553
|
-
return r instanceof
|
|
39553
|
+
return r instanceof _t && r.text === ",";
|
|
39554
39554
|
} else
|
|
39555
39555
|
return !1;
|
|
39556
39556
|
}
|
|
39557
39557
|
var yt = function(t, r, n) {
|
|
39558
39558
|
if (t.length === 1) {
|
|
39559
|
-
var a =
|
|
39559
|
+
var a = Ie(t[0], r);
|
|
39560
39560
|
return n && a instanceof Mt && a.type === "mo" && (a.setAttribute("lspace", "0em"), a.setAttribute("rspace", "0em")), [a];
|
|
39561
39561
|
}
|
|
39562
39562
|
for (var o = [], l, c = 0; c < t.length; c++) {
|
|
39563
|
-
var s =
|
|
39563
|
+
var s = Ie(t[c], r);
|
|
39564
39564
|
if (s instanceof Mt && l instanceof Mt) {
|
|
39565
39565
|
if (s.type === "mtext" && l.type === "mtext" && s.getAttribute("mathvariant") === l.getAttribute("mathvariant")) {
|
|
39566
39566
|
l.children.push(...s.children);
|
|
@@ -39578,9 +39578,9 @@ var yt = function(t, r, n) {
|
|
|
39578
39578
|
h instanceof Mt && h.type === "mn" && (h.children = [...l.children, ...h.children], o.pop());
|
|
39579
39579
|
} else if (l.type === "mi" && l.children.length === 1) {
|
|
39580
39580
|
var u = l.children[0];
|
|
39581
|
-
if (u instanceof
|
|
39581
|
+
if (u instanceof _t && u.text === "̸" && (s.type === "mo" || s.type === "mi" || s.type === "mn")) {
|
|
39582
39582
|
var d = s.children[0];
|
|
39583
|
-
d instanceof
|
|
39583
|
+
d instanceof _t && d.text.length > 0 && (d.text = d.text.slice(0, 1) + "̸" + d.text.slice(1), o.pop());
|
|
39584
39584
|
}
|
|
39585
39585
|
}
|
|
39586
39586
|
}
|
|
@@ -39589,14 +39589,14 @@ var yt = function(t, r, n) {
|
|
|
39589
39589
|
return o;
|
|
39590
39590
|
}, y1 = function(t, r, n) {
|
|
39591
39591
|
return Sw(yt(t, r, n));
|
|
39592
|
-
},
|
|
39592
|
+
}, Ie = function(t, r) {
|
|
39593
39593
|
if (!t)
|
|
39594
39594
|
return new O.MathNode("mrow");
|
|
39595
39595
|
if (bx[t.type]) {
|
|
39596
39596
|
var n = bx[t.type](t, r);
|
|
39597
39597
|
return n;
|
|
39598
39598
|
} else
|
|
39599
|
-
throw new
|
|
39599
|
+
throw new _("Got group of unknown type: '" + t.type + "'");
|
|
39600
39600
|
};
|
|
39601
39601
|
function pL(e, t, r, n, a) {
|
|
39602
39602
|
var o = yt(e, r), l;
|
|
@@ -39745,7 +39745,7 @@ var nC = function(t) {
|
|
|
39745
39745
|
}
|
|
39746
39746
|
var x = new p1(m), C = new t1([x], {
|
|
39747
39747
|
width: "100%",
|
|
39748
|
-
height:
|
|
39748
|
+
height: $(k),
|
|
39749
39749
|
viewBox: "0 0 " + c + " " + d,
|
|
39750
39750
|
preserveAspectRatio: "none"
|
|
39751
39751
|
});
|
|
@@ -39769,7 +39769,7 @@ var nC = function(t) {
|
|
|
39769
39769
|
for (var G = 0; G < F; G++) {
|
|
39770
39770
|
var D = new p1(q[G]), ie = new t1([D], {
|
|
39771
39771
|
width: "400em",
|
|
39772
|
-
height:
|
|
39772
|
+
height: $(T),
|
|
39773
39773
|
viewBox: "0 0 " + c + " " + R,
|
|
39774
39774
|
preserveAspectRatio: V[G] + " slice"
|
|
39775
39775
|
}), te = H.makeSvgSpan([X[G]], [ie], r);
|
|
@@ -39779,7 +39779,7 @@ var nC = function(t) {
|
|
|
39779
39779
|
minWidth: E,
|
|
39780
39780
|
height: T
|
|
39781
39781
|
};
|
|
39782
|
-
te.style.height =
|
|
39782
|
+
te.style.height = $(T), w.push(te);
|
|
39783
39783
|
}
|
|
39784
39784
|
return {
|
|
39785
39785
|
span: H.makeSpan(["stretchy"], w, r),
|
|
@@ -39793,7 +39793,7 @@ var nC = function(t) {
|
|
|
39793
39793
|
minWidth: o,
|
|
39794
39794
|
height: l
|
|
39795
39795
|
} = n();
|
|
39796
|
-
return a.height = l, a.style.height =
|
|
39796
|
+
return a.height = l, a.style.height = $(l), o > 0 && (a.style.minWidth = $(o)), a;
|
|
39797
39797
|
}, dP = function(t, r, n, a, o) {
|
|
39798
39798
|
var l, c = t.height + t.depth + n + a;
|
|
39799
39799
|
if (/fbox|color|angl/.test(r)) {
|
|
@@ -39818,11 +39818,11 @@ var nC = function(t) {
|
|
|
39818
39818
|
}));
|
|
39819
39819
|
var u = new t1(h, {
|
|
39820
39820
|
width: "100%",
|
|
39821
|
-
height:
|
|
39821
|
+
height: $(c)
|
|
39822
39822
|
});
|
|
39823
39823
|
l = H.makeSvgSpan([], [u], o);
|
|
39824
39824
|
}
|
|
39825
|
-
return l.height = c, l.style.height =
|
|
39825
|
+
return l.height = c, l.style.height = $(c), l;
|
|
39826
39826
|
}, n1 = {
|
|
39827
39827
|
encloseSpan: dP,
|
|
39828
39828
|
mathMLnode: cP,
|
|
@@ -39862,8 +39862,8 @@ var Aw = (e, t) => {
|
|
|
39862
39862
|
elem: m,
|
|
39863
39863
|
wrapperClasses: ["svg-align"],
|
|
39864
39864
|
wrapperStyle: c > 0 ? {
|
|
39865
|
-
width: "calc(100% - " +
|
|
39866
|
-
marginLeft:
|
|
39865
|
+
width: "calc(100% - " + $(2 * c) + ")",
|
|
39866
|
+
marginLeft: $(2 * c)
|
|
39867
39867
|
} : void 0
|
|
39868
39868
|
}]
|
|
39869
39869
|
}, t);
|
|
@@ -39876,7 +39876,7 @@ var Aw = (e, t) => {
|
|
|
39876
39876
|
var x = n.label === "\\textcircled";
|
|
39877
39877
|
x && (m.classes.push("accent-full"), d = o.height);
|
|
39878
39878
|
var C = c;
|
|
39879
|
-
x || (C -= g / 2), m.style.left =
|
|
39879
|
+
x || (C -= g / 2), m.style.left = $(C), n.label === "\\textcircled" && (m.style.top = ".2em"), m = H.makeVList({
|
|
39880
39880
|
positionType: "firstBaseline",
|
|
39881
39881
|
children: [{
|
|
39882
39882
|
type: "elem",
|
|
@@ -39893,7 +39893,7 @@ var Aw = (e, t) => {
|
|
|
39893
39893
|
var w = H.makeSpan(["mord", "accent"], [m], t);
|
|
39894
39894
|
return a ? (a.children[0] = w, a.height = Math.max(w.height, a.height), a.classes[0] = "mord", a) : w;
|
|
39895
39895
|
}, iC = (e, t) => {
|
|
39896
|
-
var r = e.isStretchy ? n1.mathMLnode(e.label) : new O.MathNode("mo", [
|
|
39896
|
+
var r = e.isStretchy ? n1.mathMLnode(e.label) : new O.MathNode("mo", [qt(e.label, e.mode)]), n = new O.MathNode("mover", [Ie(e.base, t), r]);
|
|
39897
39897
|
return n.setAttribute("accent", "true"), n;
|
|
39898
39898
|
}, pP = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((e) => "\\" + e).join("|"));
|
|
39899
39899
|
K({
|
|
@@ -39977,7 +39977,7 @@ K({
|
|
|
39977
39977
|
return H.makeSpan(["mord", "accentunder"], [o], t);
|
|
39978
39978
|
},
|
|
39979
39979
|
mathmlBuilder: (e, t) => {
|
|
39980
|
-
var r = n1.mathMLnode(e.label), n = new O.MathNode("munder", [
|
|
39980
|
+
var r = n1.mathMLnode(e.label), n = new O.MathNode("munder", [Ie(e.base, t), r]);
|
|
39981
39981
|
return n.setAttribute("accentunder", "true"), n;
|
|
39982
39982
|
}
|
|
39983
39983
|
});
|
|
@@ -40082,14 +40082,14 @@ K({
|
|
|
40082
40082
|
r.setAttribute("minsize", e.label.charAt(0) === "x" ? "1.75em" : "3.0em");
|
|
40083
40083
|
var n;
|
|
40084
40084
|
if (e.body) {
|
|
40085
|
-
var a = tn(
|
|
40085
|
+
var a = tn(Ie(e.body, t));
|
|
40086
40086
|
if (e.below) {
|
|
40087
|
-
var o = tn(
|
|
40087
|
+
var o = tn(Ie(e.below, t));
|
|
40088
40088
|
n = new O.MathNode("munderover", [r, o, a]);
|
|
40089
40089
|
} else
|
|
40090
40090
|
n = new O.MathNode("mover", [r, a]);
|
|
40091
40091
|
} else if (e.below) {
|
|
40092
|
-
var l = tn(
|
|
40092
|
+
var l = tn(Ie(e.below, t));
|
|
40093
40093
|
n = new O.MathNode("munder", [r, l]);
|
|
40094
40094
|
} else
|
|
40095
40095
|
n = tn(), n = new O.MathNode("mover", [r, n]);
|
|
@@ -40281,7 +40281,7 @@ function gP(e) {
|
|
|
40281
40281
|
t[t.length - 1].length === 0 && t.pop();
|
|
40282
40282
|
break;
|
|
40283
40283
|
} else
|
|
40284
|
-
throw new
|
|
40284
|
+
throw new _("Expected \\\\ or \\cr or \\end", e.nextToken);
|
|
40285
40285
|
}
|
|
40286
40286
|
for (var n = [], a = [n], o = 0; o < t.length; o++) {
|
|
40287
40287
|
for (var l = t[o], c = yL(), s = 0; s < l.length; s++)
|
|
@@ -40306,14 +40306,14 @@ function gP(e) {
|
|
|
40306
40306
|
break;
|
|
40307
40307
|
}
|
|
40308
40308
|
if (kL(l[k]))
|
|
40309
|
-
throw new
|
|
40309
|
+
throw new _("Missing a " + h + " character to complete a CD arrow.", l[k]);
|
|
40310
40310
|
u[d].body.push(l[k]);
|
|
40311
40311
|
}
|
|
40312
40312
|
if (m)
|
|
40313
|
-
throw new
|
|
40313
|
+
throw new _("Missing a " + h + " character to complete a CD arrow.", l[s]);
|
|
40314
40314
|
}
|
|
40315
40315
|
else
|
|
40316
|
-
throw new
|
|
40316
|
+
throw new _('Expected one of "<>AV=|." after @', l[s]);
|
|
40317
40317
|
var g = fP(h, u, e), x = {
|
|
40318
40318
|
type: "styling",
|
|
40319
40319
|
body: [g],
|
|
@@ -40366,10 +40366,10 @@ K({
|
|
|
40366
40366
|
},
|
|
40367
40367
|
htmlBuilder(e, t) {
|
|
40368
40368
|
var r = t.havingStyle(t.style.sup()), n = H.wrapFragment(ge(e.label, r, t), t);
|
|
40369
|
-
return n.classes.push("cd-label-" + e.side), n.style.bottom =
|
|
40369
|
+
return n.classes.push("cd-label-" + e.side), n.style.bottom = $(0.8 - n.depth), n.height = 0, n.depth = 0, n;
|
|
40370
40370
|
},
|
|
40371
40371
|
mathmlBuilder(e, t) {
|
|
40372
|
-
var r = new O.MathNode("mrow", [
|
|
40372
|
+
var r = new O.MathNode("mrow", [Ie(e.label, t)]);
|
|
40373
40373
|
return r = new O.MathNode("mpadded", [r]), r.setAttribute("width", "0"), e.side === "left" && r.setAttribute("lspace", "-1width"), r.setAttribute("voffset", "0.7em"), r = new O.MathNode("mstyle", [r]), r.setAttribute("displaystyle", "false"), r.setAttribute("scriptlevel", "1"), r;
|
|
40374
40374
|
}
|
|
40375
40375
|
});
|
|
@@ -40394,7 +40394,7 @@ K({
|
|
|
40394
40394
|
return r.classes.push("cd-vert-arrow"), r;
|
|
40395
40395
|
},
|
|
40396
40396
|
mathmlBuilder(e, t) {
|
|
40397
|
-
return new O.MathNode("mrow", [
|
|
40397
|
+
return new O.MathNode("mrow", [Ie(e.fragment, t)]);
|
|
40398
40398
|
}
|
|
40399
40399
|
});
|
|
40400
40400
|
K({
|
|
@@ -40413,9 +40413,9 @@ K({
|
|
|
40413
40413
|
}
|
|
40414
40414
|
var s = parseInt(o), h;
|
|
40415
40415
|
if (isNaN(s))
|
|
40416
|
-
throw new
|
|
40416
|
+
throw new _("\\@char has non-numeric argument " + o);
|
|
40417
40417
|
if (s < 0 || s >= 1114111)
|
|
40418
|
-
throw new
|
|
40418
|
+
throw new _("\\@char with invalid code point " + o);
|
|
40419
40419
|
return s <= 65535 ? h = String.fromCharCode(s) : (s -= 65536, h = String.fromCharCode((s >> 10) + 55296, (s & 1023) + 56320)), {
|
|
40420
40420
|
type: "textord",
|
|
40421
40421
|
mode: r.mode,
|
|
@@ -40500,11 +40500,11 @@ K({
|
|
|
40500
40500
|
// not within tabular/array environments.
|
|
40501
40501
|
htmlBuilder(e, t) {
|
|
40502
40502
|
var r = H.makeSpan(["mspace"], [], t);
|
|
40503
|
-
return e.newLine && (r.classes.push("newline"), e.size && (r.style.marginTop =
|
|
40503
|
+
return e.newLine && (r.classes.push("newline"), e.size && (r.style.marginTop = $(Be(e.size, t)))), r;
|
|
40504
40504
|
},
|
|
40505
40505
|
mathmlBuilder(e, t) {
|
|
40506
40506
|
var r = new O.MathNode("mspace");
|
|
40507
|
-
return e.newLine && (r.setAttribute("linebreak", "newline"), e.size && r.setAttribute("height",
|
|
40507
|
+
return e.newLine && (r.setAttribute("linebreak", "newline"), e.size && r.setAttribute("height", $(Be(e.size, t)))), r;
|
|
40508
40508
|
}
|
|
40509
40509
|
});
|
|
40510
40510
|
var $M = {
|
|
@@ -40520,7 +40520,7 @@ var $M = {
|
|
|
40520
40520
|
}, hC = (e) => {
|
|
40521
40521
|
var t = e.text;
|
|
40522
40522
|
if (/^(?:[\\{}$&#^_]|EOF)$/.test(t))
|
|
40523
|
-
throw new
|
|
40523
|
+
throw new _("Expected a control sequence", e);
|
|
40524
40524
|
return t;
|
|
40525
40525
|
}, vP = (e) => {
|
|
40526
40526
|
var t = e.gullet.popToken();
|
|
@@ -40555,7 +40555,7 @@ K({
|
|
|
40555
40555
|
var n = t.fetch();
|
|
40556
40556
|
if ($M[n.text])
|
|
40557
40557
|
return (r === "\\global" || r === "\\\\globallong") && (n.text = $M[n.text]), he(t.parseFunction(), "internal");
|
|
40558
|
-
throw new
|
|
40558
|
+
throw new _("Invalid token after macro prefix", n);
|
|
40559
40559
|
}
|
|
40560
40560
|
});
|
|
40561
40561
|
K({
|
|
@@ -40572,7 +40572,7 @@ K({
|
|
|
40572
40572
|
funcName: r
|
|
40573
40573
|
} = e, n = t.gullet.popToken(), a = n.text;
|
|
40574
40574
|
if (/^(?:[\\{}$&#^_]|EOF)$/.test(a))
|
|
40575
|
-
throw new
|
|
40575
|
+
throw new _("Expected a control sequence", n);
|
|
40576
40576
|
for (var o = 0, l, c = [[]]; t.gullet.future().text !== "{"; )
|
|
40577
40577
|
if (n = t.gullet.popToken(), n.text === "#") {
|
|
40578
40578
|
if (t.gullet.future().text === "{") {
|
|
@@ -40580,13 +40580,13 @@ K({
|
|
|
40580
40580
|
break;
|
|
40581
40581
|
}
|
|
40582
40582
|
if (n = t.gullet.popToken(), !/^[1-9]$/.test(n.text))
|
|
40583
|
-
throw new
|
|
40583
|
+
throw new _('Invalid argument number "' + n.text + '"');
|
|
40584
40584
|
if (parseInt(n.text) !== o + 1)
|
|
40585
|
-
throw new
|
|
40585
|
+
throw new _('Argument number "' + n.text + '" out of order');
|
|
40586
40586
|
o++, c.push([]);
|
|
40587
40587
|
} else {
|
|
40588
40588
|
if (n.text === "EOF")
|
|
40589
|
-
throw new
|
|
40589
|
+
throw new _("Expected a macro definition");
|
|
40590
40590
|
c[o].push(n.text);
|
|
40591
40591
|
}
|
|
40592
40592
|
var {
|
|
@@ -40651,7 +40651,7 @@ K({
|
|
|
40651
40651
|
}
|
|
40652
40652
|
});
|
|
40653
40653
|
var xr = function(t, r, n) {
|
|
40654
|
-
var a =
|
|
40654
|
+
var a = ze.math[t] && ze.math[t].replace, o = ww(a || t, r, n);
|
|
40655
40655
|
if (!o)
|
|
40656
40656
|
throw new Error("Unsupported symbol " + t + " and font size " + r + ".");
|
|
40657
40657
|
return o;
|
|
@@ -40660,7 +40660,7 @@ var xr = function(t, r, n) {
|
|
|
40660
40660
|
return l.height *= c, l.depth *= c, l.maxFontSize = o.sizeMultiplier, l;
|
|
40661
40661
|
}, dC = function(t, r, n) {
|
|
40662
40662
|
var a = r.havingBaseStyle(n), o = (1 - r.sizeMultiplier / a.sizeMultiplier) * r.fontMetrics().axisHeight;
|
|
40663
|
-
t.classes.push("delimcenter"), t.style.top =
|
|
40663
|
+
t.classes.push("delimcenter"), t.style.top = $(o), t.height -= o, t.depth += o;
|
|
40664
40664
|
}, xP = function(t, r, n, a, o, l) {
|
|
40665
40665
|
var c = H.makeSymbol(t, "Main-Regular", o, a), s = zw(c, r, a, l);
|
|
40666
40666
|
return n && dC(s, a, r), s;
|
|
@@ -40678,15 +40678,15 @@ var xr = function(t, r, n) {
|
|
|
40678
40678
|
elem: o
|
|
40679
40679
|
};
|
|
40680
40680
|
}, dM = function(t, r, n) {
|
|
40681
|
-
var a =
|
|
40682
|
-
width:
|
|
40683
|
-
height:
|
|
40681
|
+
var a = Ut["Size4-Regular"][t.charCodeAt(0)] ? Ut["Size4-Regular"][t.charCodeAt(0)][4] : Ut["Size1-Regular"][t.charCodeAt(0)][4], o = new p1("inner", CB(t, Math.round(1e3 * r))), l = new t1([o], {
|
|
40682
|
+
width: $(a),
|
|
40683
|
+
height: $(r),
|
|
40684
40684
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
40685
|
-
style: "width:" +
|
|
40685
|
+
style: "width:" + $(a),
|
|
40686
40686
|
viewBox: "0 0 " + 1e3 * a + " " + Math.round(1e3 * r),
|
|
40687
40687
|
preserveAspectRatio: "xMinYMin"
|
|
40688
40688
|
}), c = H.makeSvgSpan([], [l], n);
|
|
40689
|
-
return c.height = r, c.style.height =
|
|
40689
|
+
return c.height = r, c.style.height = $(r), c.style.width = $(a), {
|
|
40690
40690
|
type: "elem",
|
|
40691
40691
|
elem: c
|
|
40692
40692
|
};
|
|
@@ -40707,22 +40707,22 @@ var xr = function(t, r, n) {
|
|
|
40707
40707
|
n && (B *= a.sizeMultiplier);
|
|
40708
40708
|
var G = V / 2 - B, D = [];
|
|
40709
40709
|
if (d.length > 0) {
|
|
40710
|
-
var ie = V - x - q, te = Math.round(V * 1e3), Y = IB(d, Math.round(ie * 1e3)), ue = new p1(d, Y), me = (m / 1e3).toFixed(3) + "em",
|
|
40710
|
+
var ie = V - x - q, te = Math.round(V * 1e3), Y = IB(d, Math.round(ie * 1e3)), ue = new p1(d, Y), me = (m / 1e3).toFixed(3) + "em", Le = (te / 1e3).toFixed(3) + "em", De = new t1([ue], {
|
|
40711
40711
|
width: me,
|
|
40712
|
-
height:
|
|
40712
|
+
height: Le,
|
|
40713
40713
|
viewBox: "0 0 " + m + " " + te
|
|
40714
40714
|
}), L = H.makeSvgSpan([], [De], a);
|
|
40715
|
-
L.height = te / 1e3, L.style.width = me, L.style.height =
|
|
40715
|
+
L.height = te / 1e3, L.style.width = me, L.style.height = Le, D.push({
|
|
40716
40716
|
type: "elem",
|
|
40717
40717
|
elem: L
|
|
40718
40718
|
});
|
|
40719
40719
|
} else {
|
|
40720
40720
|
if (D.push(uM(u, k, o)), D.push(rn), s === null) {
|
|
40721
|
-
var
|
|
40722
|
-
D.push(dM(h,
|
|
40721
|
+
var ve = V - x - q + 2 * XM;
|
|
40722
|
+
D.push(dM(h, ve, a));
|
|
40723
40723
|
} else {
|
|
40724
|
-
var
|
|
40725
|
-
D.push(dM(h,
|
|
40724
|
+
var be = (V - x - q - E) / 2 + 2 * XM;
|
|
40725
|
+
D.push(dM(h, be, a)), D.push(rn), D.push(uM(s, k, o)), D.push(rn), D.push(dM(h, be, a));
|
|
40726
40726
|
}
|
|
40727
40727
|
D.push(rn), D.push(uM(c, k, o));
|
|
40728
40728
|
}
|
|
@@ -40736,14 +40736,14 @@ var xr = function(t, r, n) {
|
|
|
40736
40736
|
var l = SB(t, a, n), c = new p1(t, l), s = new t1([c], {
|
|
40737
40737
|
// Note: 1000:1 ratio of viewBox to document em width.
|
|
40738
40738
|
width: "400em",
|
|
40739
|
-
height:
|
|
40739
|
+
height: $(r),
|
|
40740
40740
|
viewBox: "0 0 400000 " + n,
|
|
40741
40741
|
preserveAspectRatio: "xMinYMin slice"
|
|
40742
40742
|
});
|
|
40743
40743
|
return H.makeSvgSpan(["hide-tail"], [s], o);
|
|
40744
40744
|
}, LP = function(t, r) {
|
|
40745
40745
|
var n = r.havingBaseSizing(), a = gC("\\surd", t * n.sizeMultiplier, fC, n), o = n.sizeMultiplier, l = Math.max(0, r.minRuleThickness - r.fontMetrics().sqrtRuleThickness), c, s = 0, h = 0, u = 0, d;
|
|
40746
|
-
return a.type === "small" ? (u = 1e3 + 1e3 * l + pM, t < 1 ? o = 1 : t < 1.4 && (o = 0.7), s = (1 + l + yM) / o, h = (1 + l) / o, c = kM("sqrtMain", s, u, l, r), c.style.minWidth = "0.853em", d = 0.833 / o) : a.type === "large" ? (u = (1e3 + pM) * qr[a.size], h = (qr[a.size] + l) / o, s = (qr[a.size] + l + yM) / o, c = kM("sqrtSize" + a.size, s, u, l, r), c.style.minWidth = "1.02em", d = 1 / o) : (s = t + l + yM, h = t + l, u = Math.floor(1e3 * t + l) + pM, c = kM("sqrtTall", s, u, l, r), c.style.minWidth = "0.742em", d = 1.056), c.height = h, c.style.height =
|
|
40746
|
+
return a.type === "small" ? (u = 1e3 + 1e3 * l + pM, t < 1 ? o = 1 : t < 1.4 && (o = 0.7), s = (1 + l + yM) / o, h = (1 + l) / o, c = kM("sqrtMain", s, u, l, r), c.style.minWidth = "0.853em", d = 0.833 / o) : a.type === "large" ? (u = (1e3 + pM) * qr[a.size], h = (qr[a.size] + l) / o, s = (qr[a.size] + l + yM) / o, c = kM("sqrtSize" + a.size, s, u, l, r), c.style.minWidth = "1.02em", d = 1 / o) : (s = t + l + yM, h = t + l, u = Math.floor(1e3 * t + l) + pM, c = kM("sqrtTall", s, u, l, r), c.style.minWidth = "0.742em", d = 1.056), c.height = h, c.style.height = $(s), {
|
|
40747
40747
|
span: c,
|
|
40748
40748
|
advanceWidth: d,
|
|
40749
40749
|
// Calculate the actual line width.
|
|
@@ -40757,7 +40757,7 @@ var xr = function(t, r, n) {
|
|
|
40757
40757
|
return pC(t, r, !1, n, a, o);
|
|
40758
40758
|
if (re.contains(SP, t))
|
|
40759
40759
|
return yC(t, qr[r], !1, n, a, o);
|
|
40760
|
-
throw new
|
|
40760
|
+
throw new _("Illegal delimiter: '" + t + "'");
|
|
40761
40761
|
}, IP = [{
|
|
40762
40762
|
type: "small",
|
|
40763
40763
|
style: ae.SCRIPTSCRIPT
|
|
@@ -40929,7 +40929,7 @@ function Dx(e, t) {
|
|
|
40929
40929
|
var r = Px(e);
|
|
40930
40930
|
if (r && re.contains(qP, r.text))
|
|
40931
40931
|
return r;
|
|
40932
|
-
throw r ? new
|
|
40932
|
+
throw r ? new _("Invalid delimiter '" + r.text + "' after '" + t.funcName + "'", e) : new _("Invalid delimiter type '" + e.type + "'", e);
|
|
40933
40933
|
}
|
|
40934
40934
|
K({
|
|
40935
40935
|
type: "delimsizing",
|
|
@@ -40951,10 +40951,10 @@ K({
|
|
|
40951
40951
|
htmlBuilder: (e, t) => e.delim === "." ? H.makeSpan([e.mclass]) : e1.sizedDelim(e.delim, e.size, t, e.mode, [e.mclass]),
|
|
40952
40952
|
mathmlBuilder: (e) => {
|
|
40953
40953
|
var t = [];
|
|
40954
|
-
e.delim !== "." && t.push(
|
|
40954
|
+
e.delim !== "." && t.push(qt(e.delim, e.mode));
|
|
40955
40955
|
var r = new O.MathNode("mo", t);
|
|
40956
40956
|
e.mclass === "mopen" || e.mclass === "mclose" ? r.setAttribute("fence", "true") : r.setAttribute("fence", "false"), r.setAttribute("stretchy", "true");
|
|
40957
|
-
var n =
|
|
40957
|
+
var n = $(e1.sizeToMaxHeight[e.size]);
|
|
40958
40958
|
return r.setAttribute("minsize", n), r.setAttribute("maxsize", n), r;
|
|
40959
40959
|
}
|
|
40960
40960
|
});
|
|
@@ -40972,7 +40972,7 @@ K({
|
|
|
40972
40972
|
handler: (e, t) => {
|
|
40973
40973
|
var r = e.parser.gullet.macros.get("\\current@color");
|
|
40974
40974
|
if (r && typeof r != "string")
|
|
40975
|
-
throw new
|
|
40975
|
+
throw new _("\\current@color set to non-string in \\right");
|
|
40976
40976
|
return {
|
|
40977
40977
|
type: "leftright-right",
|
|
40978
40978
|
mode: e.parser.mode,
|
|
@@ -41028,11 +41028,11 @@ K({
|
|
|
41028
41028
|
fL(e);
|
|
41029
41029
|
var r = yt(e.body, t);
|
|
41030
41030
|
if (e.left !== ".") {
|
|
41031
|
-
var n = new O.MathNode("mo", [
|
|
41031
|
+
var n = new O.MathNode("mo", [qt(e.left, e.mode)]);
|
|
41032
41032
|
n.setAttribute("fence", "true"), r.unshift(n);
|
|
41033
41033
|
}
|
|
41034
41034
|
if (e.right !== ".") {
|
|
41035
|
-
var a = new O.MathNode("mo", [
|
|
41035
|
+
var a = new O.MathNode("mo", [qt(e.right, e.mode)]);
|
|
41036
41036
|
a.setAttribute("fence", "true"), e.rightColor && a.setAttribute("mathcolor", e.rightColor), r.push(a);
|
|
41037
41037
|
}
|
|
41038
41038
|
return Sw(r);
|
|
@@ -41048,7 +41048,7 @@ K({
|
|
|
41048
41048
|
handler: (e, t) => {
|
|
41049
41049
|
var r = Dx(t[0], e);
|
|
41050
41050
|
if (!e.parser.leftrightDepth)
|
|
41051
|
-
throw new
|
|
41051
|
+
throw new _("\\middle without preceding \\left", r);
|
|
41052
41052
|
return {
|
|
41053
41053
|
type: "middle",
|
|
41054
41054
|
mode: e.parser.mode,
|
|
@@ -41070,7 +41070,7 @@ K({
|
|
|
41070
41070
|
return r;
|
|
41071
41071
|
},
|
|
41072
41072
|
mathmlBuilder: (e, t) => {
|
|
41073
|
-
var r = e.delim === "\\vert" || e.delim === "|" ?
|
|
41073
|
+
var r = e.delim === "\\vert" || e.delim === "|" ? qt("|", "text") : qt(e.delim, e.mode), n = new O.MathNode("mo", [r]);
|
|
41074
41074
|
return n.setAttribute("fence", "true"), n.setAttribute("lspace", "0.05em"), n.setAttribute("rspace", "0.05em"), n;
|
|
41075
41075
|
}
|
|
41076
41076
|
});
|
|
@@ -41088,14 +41088,14 @@ var Tw = (e, t) => {
|
|
|
41088
41088
|
}, t), u = t.havingBaseSizing();
|
|
41089
41089
|
a = a / u.sizeMultiplier;
|
|
41090
41090
|
var d = r.height + r.depth + s + h;
|
|
41091
|
-
r.style.paddingLeft =
|
|
41091
|
+
r.style.paddingLeft = $(d / 2 + s);
|
|
41092
41092
|
var m = Math.floor(1e3 * d * a), k = bB(m), g = new t1([new p1("phase", k)], {
|
|
41093
41093
|
width: "400em",
|
|
41094
|
-
height:
|
|
41094
|
+
height: $(m / 1e3),
|
|
41095
41095
|
viewBox: "0 0 400000 " + m,
|
|
41096
41096
|
preserveAspectRatio: "xMinYMin slice"
|
|
41097
41097
|
});
|
|
41098
|
-
o = H.makeSvgSpan(["hide-tail"], [g], t), o.style.height =
|
|
41098
|
+
o = H.makeSvgSpan(["hide-tail"], [g], t), o.style.height = $(d), l = r.depth + s + h;
|
|
41099
41099
|
} else {
|
|
41100
41100
|
/cancel/.test(n) ? c || r.classes.push("cancel-pad") : n === "angl" ? r.classes.push("anglpad") : r.classes.push("boxpad");
|
|
41101
41101
|
var x = 0, C = 0, w = 0;
|
|
@@ -41104,7 +41104,7 @@ var Tw = (e, t) => {
|
|
|
41104
41104
|
// default
|
|
41105
41105
|
t.minRuleThickness
|
|
41106
41106
|
// User override.
|
|
41107
|
-
), x = t.fontMetrics().fboxsep + (n === "colorbox" ? 0 : w), C = x) : n === "angl" ? (w = Math.max(t.fontMetrics().defaultRuleThickness, t.minRuleThickness), x = 4 * w, C = Math.max(0, 0.25 - r.depth)) : (x = c ? 0.2 : 0, C = x), o = n1.encloseSpan(r, n, x, C, t), /fbox|boxed|fcolorbox/.test(n) ? (o.style.borderStyle = "solid", o.style.borderWidth =
|
|
41107
|
+
), x = t.fontMetrics().fboxsep + (n === "colorbox" ? 0 : w), C = x) : n === "angl" ? (w = Math.max(t.fontMetrics().defaultRuleThickness, t.minRuleThickness), x = 4 * w, C = Math.max(0, 0.25 - r.depth)) : (x = c ? 0.2 : 0, C = x), o = n1.encloseSpan(r, n, x, C, t), /fbox|boxed|fcolorbox/.test(n) ? (o.style.borderStyle = "solid", o.style.borderWidth = $(w)) : n === "angl" && w !== 0.049 && (o.style.borderTopWidth = $(w), o.style.borderRightWidth = $(w)), l = r.depth + C, e.backgroundColor && (o.style.backgroundColor = e.backgroundColor, e.borderColor && (o.style.borderColor = e.borderColor));
|
|
41108
41108
|
}
|
|
41109
41109
|
var I;
|
|
41110
41110
|
if (e.backgroundColor)
|
|
@@ -41146,7 +41146,7 @@ var Tw = (e, t) => {
|
|
|
41146
41146
|
}
|
|
41147
41147
|
return /cancel/.test(n) && (I.height = r.height, I.depth = r.depth), /cancel/.test(n) && !c ? H.makeSpan(["mord", "cancel-lap"], [I], t) : H.makeSpan(["mord"], [I], t);
|
|
41148
41148
|
}, qw = (e, t) => {
|
|
41149
|
-
var r = 0, n = new O.MathNode(e.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [
|
|
41149
|
+
var r = 0, n = new O.MathNode(e.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [Ie(e.body, t)]);
|
|
41150
41150
|
switch (e.label) {
|
|
41151
41151
|
case "\\cancel":
|
|
41152
41152
|
n.setAttribute("notation", "updiagonalstrike");
|
|
@@ -41295,7 +41295,7 @@ K({
|
|
|
41295
41295
|
}
|
|
41296
41296
|
});
|
|
41297
41297
|
var xC = {};
|
|
41298
|
-
function
|
|
41298
|
+
function Zt(e) {
|
|
41299
41299
|
for (var {
|
|
41300
41300
|
type: t,
|
|
41301
41301
|
names: r,
|
|
@@ -41328,7 +41328,7 @@ function gL(e) {
|
|
|
41328
41328
|
var Rx = (e) => {
|
|
41329
41329
|
var t = e.parser.settings;
|
|
41330
41330
|
if (!t.displayMode)
|
|
41331
|
-
throw new
|
|
41331
|
+
throw new _("{" + e.envName + "} can be used only in display mode.");
|
|
41332
41332
|
};
|
|
41333
41333
|
function Hw(e) {
|
|
41334
41334
|
if (e.indexOf("ed") === -1)
|
|
@@ -41352,7 +41352,7 @@ function f1(e, t, r) {
|
|
|
41352
41352
|
if (k == null)
|
|
41353
41353
|
l = 1;
|
|
41354
41354
|
else if (l = parseFloat(k), !l || l < 0)
|
|
41355
|
-
throw new
|
|
41355
|
+
throw new _("Invalid \\arraystretch: " + k);
|
|
41356
41356
|
}
|
|
41357
41357
|
e.gullet.beginGroup();
|
|
41358
41358
|
var g = [], x = [g], C = [], w = [], I = s != null ? [] : void 0;
|
|
@@ -41360,7 +41360,7 @@ function f1(e, t, r) {
|
|
|
41360
41360
|
s && e.gullet.macros.set("\\@eqnsw", "1", !0);
|
|
41361
41361
|
}
|
|
41362
41362
|
function E() {
|
|
41363
|
-
I && (e.gullet.macros.get("\\df@tag") ? (I.push(e.subparse([new
|
|
41363
|
+
I && (e.gullet.macros.get("\\df@tag") ? (I.push(e.subparse([new zt("\\df@tag")])), e.gullet.macros.set("\\df@tag", void 0, !0)) : I.push(!!s && e.gullet.macros.get("\\@eqnsw") === "1"));
|
|
41364
41364
|
}
|
|
41365
41365
|
for (q(), w.push(gL(e)); ; ) {
|
|
41366
41366
|
var R = e.parseExpression(!1, h ? "\\end" : "\\\\");
|
|
@@ -41378,7 +41378,7 @@ function f1(e, t, r) {
|
|
|
41378
41378
|
if (T === "&") {
|
|
41379
41379
|
if (d && g.length === d) {
|
|
41380
41380
|
if (h || c)
|
|
41381
|
-
throw new
|
|
41381
|
+
throw new _("Too many tab characters: &", e.nextToken);
|
|
41382
41382
|
e.settings.reportNonstrict("textEnv", "Too few columns specified in the {array} column argument.");
|
|
41383
41383
|
}
|
|
41384
41384
|
e.consume();
|
|
@@ -41390,7 +41390,7 @@ function f1(e, t, r) {
|
|
|
41390
41390
|
var F = void 0;
|
|
41391
41391
|
e.gullet.future().text !== " " && (F = e.parseSizeGroup(!0)), C.push(F ? F.value : null), E(), w.push(gL(e)), g = [], x.push(g), q();
|
|
41392
41392
|
} else
|
|
41393
|
-
throw new
|
|
41393
|
+
throw new _("Expected & or \\\\ or \\cr or \\end", e.nextToken);
|
|
41394
41394
|
}
|
|
41395
41395
|
return e.gullet.endGroup(), e.gullet.endGroup(), {
|
|
41396
41396
|
type: "array",
|
|
@@ -41410,7 +41410,7 @@ function f1(e, t, r) {
|
|
|
41410
41410
|
function Bw(e) {
|
|
41411
41411
|
return e.slice(0, 1) === "d" ? "display" : "text";
|
|
41412
41412
|
}
|
|
41413
|
-
var
|
|
41413
|
+
var Gt = function(t, r) {
|
|
41414
41414
|
var n, a, o = t.body.length, l = t.hLinesBeforeRow, c = 0, s = new Array(o), h = [], u = Math.max(
|
|
41415
41415
|
// From LaTeX \showthe\arrayrulewidth. Equals 0.04 em.
|
|
41416
41416
|
r.fontMetrics().arrayRuleWidth,
|
|
@@ -41446,10 +41446,10 @@ var Zt = function(t, r) {
|
|
|
41446
41446
|
var D = q / 2 + r.fontMetrics().axisHeight, ie = t.cols || [], te = [], Y, ue, me = [];
|
|
41447
41447
|
if (t.tags && t.tags.some((Lt) => Lt))
|
|
41448
41448
|
for (n = 0; n < o; ++n) {
|
|
41449
|
-
var
|
|
41450
|
-
L === !0 ?
|
|
41449
|
+
var Le = s[n], De = Le.pos - D, L = t.tags[n], ve = void 0;
|
|
41450
|
+
L === !0 ? ve = H.makeSpan(["eqn-num"], [], r) : L === !1 ? ve = H.makeSpan([], [], r) : ve = H.makeSpan([], Ue(L, r, !0), r), ve.depth = Le.depth, ve.height = Le.height, me.push({
|
|
41451
41451
|
type: "elem",
|
|
41452
|
-
elem:
|
|
41452
|
+
elem: ve,
|
|
41453
41453
|
shift: De
|
|
41454
41454
|
});
|
|
41455
41455
|
}
|
|
@@ -41460,19 +41460,19 @@ var Zt = function(t, r) {
|
|
|
41460
41460
|
a < c || ue < ie.length;
|
|
41461
41461
|
++a, ++ue
|
|
41462
41462
|
) {
|
|
41463
|
-
for (var
|
|
41464
|
-
if (A || (Y = H.makeSpan(["arraycolsep"], []), Y.style.width =
|
|
41465
|
-
var je =
|
|
41466
|
-
_e.style.height =
|
|
41463
|
+
for (var be = ie[ue] || {}, A = !0; be.type === "separator"; ) {
|
|
41464
|
+
if (A || (Y = H.makeSpan(["arraycolsep"], []), Y.style.width = $(r.fontMetrics().doubleRuleSep), te.push(Y)), be.separator === "|" || be.separator === ":") {
|
|
41465
|
+
var je = be.separator === "|" ? "solid" : "dashed", _e = H.makeSpan(["vertical-separator"], [], r);
|
|
41466
|
+
_e.style.height = $(q), _e.style.borderRightWidth = $(u), _e.style.borderRightStyle = je, _e.style.margin = "0 " + $(-u / 2);
|
|
41467
41467
|
var Te = q - D;
|
|
41468
|
-
Te && (_e.style.verticalAlign =
|
|
41468
|
+
Te && (_e.style.verticalAlign = $(-Te)), te.push(_e);
|
|
41469
41469
|
} else
|
|
41470
|
-
throw new
|
|
41471
|
-
ue++,
|
|
41470
|
+
throw new _("Invalid separator type: " + be.separator);
|
|
41471
|
+
ue++, be = ie[ue] || {}, A = !1;
|
|
41472
41472
|
}
|
|
41473
41473
|
if (!(a >= c)) {
|
|
41474
41474
|
var Ze = void 0;
|
|
41475
|
-
(a > 0 || t.hskipBeforeAndAfter) && (Ze = re.deflt(
|
|
41475
|
+
(a > 0 || t.hskipBeforeAndAfter) && (Ze = re.deflt(be.pregap, m), Ze !== 0 && (Y = H.makeSpan(["arraycolsep"], []), Y.style.width = $(Ze), te.push(Y)));
|
|
41476
41476
|
var Pe = [];
|
|
41477
41477
|
for (n = 0; n < o; ++n) {
|
|
41478
41478
|
var Ge = s[n], We = Ge[a];
|
|
@@ -41488,21 +41488,21 @@ var Zt = function(t, r) {
|
|
|
41488
41488
|
Pe = H.makeVList({
|
|
41489
41489
|
positionType: "individualShift",
|
|
41490
41490
|
children: Pe
|
|
41491
|
-
}, r), Pe = H.makeSpan(["col-align-" + (
|
|
41491
|
+
}, r), Pe = H.makeSpan(["col-align-" + (be.align || "c")], [Pe]), te.push(Pe), (a < c - 1 || t.hskipBeforeAndAfter) && (Ze = re.deflt(be.postgap, m), Ze !== 0 && (Y = H.makeSpan(["arraycolsep"], []), Y.style.width = $(Ze), te.push(Y)));
|
|
41492
41492
|
}
|
|
41493
41493
|
}
|
|
41494
41494
|
if (s = H.makeSpan(["mtable"], te), h.length > 0) {
|
|
41495
|
-
for (var g1 = H.makeLineSpan("hline", r, u), o1 = H.makeLineSpan("hdashline", r, u),
|
|
41495
|
+
for (var g1 = H.makeLineSpan("hline", r, u), o1 = H.makeLineSpan("hdashline", r, u), Xt = [{
|
|
41496
41496
|
type: "elem",
|
|
41497
41497
|
elem: s,
|
|
41498
41498
|
shift: 0
|
|
41499
41499
|
}]; h.length > 0; ) {
|
|
41500
41500
|
var Dt = h.pop(), mt = Dt.pos - D;
|
|
41501
|
-
Dt.isDashed ?
|
|
41501
|
+
Dt.isDashed ? Xt.push({
|
|
41502
41502
|
type: "elem",
|
|
41503
41503
|
elem: o1,
|
|
41504
41504
|
shift: mt
|
|
41505
|
-
}) :
|
|
41505
|
+
}) : Xt.push({
|
|
41506
41506
|
type: "elem",
|
|
41507
41507
|
elem: g1,
|
|
41508
41508
|
shift: mt
|
|
@@ -41510,7 +41510,7 @@ var Zt = function(t, r) {
|
|
|
41510
41510
|
}
|
|
41511
41511
|
s = H.makeVList({
|
|
41512
41512
|
positionType: "individualShift",
|
|
41513
|
-
children:
|
|
41513
|
+
children: Xt
|
|
41514
41514
|
}, r);
|
|
41515
41515
|
}
|
|
41516
41516
|
if (me.length === 0)
|
|
@@ -41524,14 +41524,14 @@ var Zt = function(t, r) {
|
|
|
41524
41524
|
c: "center ",
|
|
41525
41525
|
l: "left ",
|
|
41526
41526
|
r: "right "
|
|
41527
|
-
},
|
|
41527
|
+
}, Wt = function(t, r) {
|
|
41528
41528
|
for (var n = [], a = new O.MathNode("mtd", [], ["mtr-glue"]), o = new O.MathNode("mtd", [], ["mml-eqn-num"]), l = 0; l < t.body.length; l++) {
|
|
41529
41529
|
for (var c = t.body[l], s = [], h = 0; h < c.length; h++)
|
|
41530
|
-
s.push(new O.MathNode("mtd", [
|
|
41530
|
+
s.push(new O.MathNode("mtd", [Ie(c[h], r)]));
|
|
41531
41531
|
t.tags && t.tags[l] && (s.unshift(a), s.push(a), t.leqno ? s.unshift(o) : s.push(o)), n.push(new O.MathNode("mtr", s));
|
|
41532
41532
|
}
|
|
41533
41533
|
var u = new O.MathNode("mtable", n), d = t.arraystretch === 0.5 ? 0.1 : 0.16 + t.arraystretch - 1 + (t.addJot ? 0.09 : 0);
|
|
41534
|
-
u.setAttribute("rowspacing",
|
|
41534
|
+
u.setAttribute("rowspacing", $(d));
|
|
41535
41535
|
var m = "", k = "";
|
|
41536
41536
|
if (t.cols && t.cols.length > 0) {
|
|
41537
41537
|
var g = t.cols, x = "", C = !1, w = 0, I = g.length;
|
|
@@ -41583,7 +41583,7 @@ var Zt = function(t, r) {
|
|
|
41583
41583
|
else {
|
|
41584
41584
|
var R = w.length / 2;
|
|
41585
41585
|
if (c < R)
|
|
41586
|
-
throw new
|
|
41586
|
+
throw new _("Too many math in a row: " + ("expected " + c + ", but got " + R), w[0]);
|
|
41587
41587
|
}
|
|
41588
41588
|
});
|
|
41589
41589
|
for (var g = 0; g < s; ++g) {
|
|
@@ -41597,7 +41597,7 @@ var Zt = function(t, r) {
|
|
|
41597
41597
|
}
|
|
41598
41598
|
return l.colSeparationType = k ? "align" : "alignat", l;
|
|
41599
41599
|
};
|
|
41600
|
-
|
|
41600
|
+
Zt({
|
|
41601
41601
|
type: "array",
|
|
41602
41602
|
names: ["array", "darray"],
|
|
41603
41603
|
props: {
|
|
@@ -41621,7 +41621,7 @@ _t({
|
|
|
41621
41621
|
type: "separator",
|
|
41622
41622
|
separator: ":"
|
|
41623
41623
|
};
|
|
41624
|
-
throw new
|
|
41624
|
+
throw new _("Unknown column alignment: " + s, l);
|
|
41625
41625
|
}), o = {
|
|
41626
41626
|
cols: a,
|
|
41627
41627
|
hskipBeforeAndAfter: !0,
|
|
@@ -41630,10 +41630,10 @@ _t({
|
|
|
41630
41630
|
};
|
|
41631
41631
|
return f1(e.parser, o, Bw(e.envName));
|
|
41632
41632
|
},
|
|
41633
|
-
htmlBuilder:
|
|
41634
|
-
mathmlBuilder:
|
|
41633
|
+
htmlBuilder: Gt,
|
|
41634
|
+
mathmlBuilder: Wt
|
|
41635
41635
|
});
|
|
41636
|
-
|
|
41636
|
+
Zt({
|
|
41637
41637
|
type: "array",
|
|
41638
41638
|
names: ["matrix", "pmatrix", "bmatrix", "Bmatrix", "vmatrix", "Vmatrix", "matrix*", "pmatrix*", "bmatrix*", "Bmatrix*", "vmatrix*", "Vmatrix*"],
|
|
41639
41639
|
props: {
|
|
@@ -41658,7 +41658,7 @@ _t({
|
|
|
41658
41658
|
var a = e.parser;
|
|
41659
41659
|
if (a.consumeSpaces(), a.fetch().text === "[") {
|
|
41660
41660
|
if (a.consume(), a.consumeSpaces(), r = a.fetch().text, "lcr".indexOf(r) === -1)
|
|
41661
|
-
throw new
|
|
41661
|
+
throw new _("Expected l or c or r", a.nextToken);
|
|
41662
41662
|
a.consume(), a.consumeSpaces(), a.expect("]"), a.consume(), n.cols = [{
|
|
41663
41663
|
type: "align",
|
|
41664
41664
|
align: r
|
|
@@ -41679,10 +41679,10 @@ _t({
|
|
|
41679
41679
|
// \right uninfluenced by \color in array
|
|
41680
41680
|
} : o;
|
|
41681
41681
|
},
|
|
41682
|
-
htmlBuilder:
|
|
41683
|
-
mathmlBuilder:
|
|
41682
|
+
htmlBuilder: Gt,
|
|
41683
|
+
mathmlBuilder: Wt
|
|
41684
41684
|
});
|
|
41685
|
-
|
|
41685
|
+
Zt({
|
|
41686
41686
|
type: "array",
|
|
41687
41687
|
names: ["smallmatrix"],
|
|
41688
41688
|
props: {
|
|
@@ -41694,10 +41694,10 @@ _t({
|
|
|
41694
41694
|
}, r = f1(e.parser, t, "script");
|
|
41695
41695
|
return r.colSeparationType = "small", r;
|
|
41696
41696
|
},
|
|
41697
|
-
htmlBuilder:
|
|
41698
|
-
mathmlBuilder:
|
|
41697
|
+
htmlBuilder: Gt,
|
|
41698
|
+
mathmlBuilder: Wt
|
|
41699
41699
|
});
|
|
41700
|
-
|
|
41700
|
+
Zt({
|
|
41701
41701
|
type: "array",
|
|
41702
41702
|
names: ["subarray"],
|
|
41703
41703
|
props: {
|
|
@@ -41711,23 +41711,23 @@ _t({
|
|
|
41711
41711
|
type: "align",
|
|
41712
41712
|
align: s
|
|
41713
41713
|
};
|
|
41714
|
-
throw new
|
|
41714
|
+
throw new _("Unknown column alignment: " + s, l);
|
|
41715
41715
|
});
|
|
41716
41716
|
if (a.length > 1)
|
|
41717
|
-
throw new
|
|
41717
|
+
throw new _("{subarray} can contain only one column");
|
|
41718
41718
|
var o = {
|
|
41719
41719
|
cols: a,
|
|
41720
41720
|
hskipBeforeAndAfter: !1,
|
|
41721
41721
|
arraystretch: 0.5
|
|
41722
41722
|
};
|
|
41723
41723
|
if (o = f1(e.parser, o, "script"), o.body.length > 0 && o.body[0].length > 1)
|
|
41724
|
-
throw new
|
|
41724
|
+
throw new _("{subarray} can contain only one column");
|
|
41725
41725
|
return o;
|
|
41726
41726
|
},
|
|
41727
|
-
htmlBuilder:
|
|
41728
|
-
mathmlBuilder:
|
|
41727
|
+
htmlBuilder: Gt,
|
|
41728
|
+
mathmlBuilder: Wt
|
|
41729
41729
|
});
|
|
41730
|
-
|
|
41730
|
+
Zt({
|
|
41731
41731
|
type: "array",
|
|
41732
41732
|
names: ["cases", "dcases", "rcases", "drcases"],
|
|
41733
41733
|
props: {
|
|
@@ -41762,20 +41762,20 @@ _t({
|
|
|
41762
41762
|
rightColor: void 0
|
|
41763
41763
|
};
|
|
41764
41764
|
},
|
|
41765
|
-
htmlBuilder:
|
|
41766
|
-
mathmlBuilder:
|
|
41765
|
+
htmlBuilder: Gt,
|
|
41766
|
+
mathmlBuilder: Wt
|
|
41767
41767
|
});
|
|
41768
|
-
|
|
41768
|
+
Zt({
|
|
41769
41769
|
type: "array",
|
|
41770
41770
|
names: ["align", "align*", "aligned", "split"],
|
|
41771
41771
|
props: {
|
|
41772
41772
|
numArgs: 0
|
|
41773
41773
|
},
|
|
41774
41774
|
handler: wC,
|
|
41775
|
-
htmlBuilder:
|
|
41776
|
-
mathmlBuilder:
|
|
41775
|
+
htmlBuilder: Gt,
|
|
41776
|
+
mathmlBuilder: Wt
|
|
41777
41777
|
});
|
|
41778
|
-
|
|
41778
|
+
Zt({
|
|
41779
41779
|
type: "array",
|
|
41780
41780
|
names: ["gathered", "gather", "gather*"],
|
|
41781
41781
|
props: {
|
|
@@ -41796,20 +41796,20 @@ _t({
|
|
|
41796
41796
|
};
|
|
41797
41797
|
return f1(e.parser, t, "display");
|
|
41798
41798
|
},
|
|
41799
|
-
htmlBuilder:
|
|
41800
|
-
mathmlBuilder:
|
|
41799
|
+
htmlBuilder: Gt,
|
|
41800
|
+
mathmlBuilder: Wt
|
|
41801
41801
|
});
|
|
41802
|
-
|
|
41802
|
+
Zt({
|
|
41803
41803
|
type: "array",
|
|
41804
41804
|
names: ["alignat", "alignat*", "alignedat"],
|
|
41805
41805
|
props: {
|
|
41806
41806
|
numArgs: 1
|
|
41807
41807
|
},
|
|
41808
41808
|
handler: wC,
|
|
41809
|
-
htmlBuilder:
|
|
41810
|
-
mathmlBuilder:
|
|
41809
|
+
htmlBuilder: Gt,
|
|
41810
|
+
mathmlBuilder: Wt
|
|
41811
41811
|
});
|
|
41812
|
-
|
|
41812
|
+
Zt({
|
|
41813
41813
|
type: "array",
|
|
41814
41814
|
names: ["equation", "equation*"],
|
|
41815
41815
|
props: {
|
|
@@ -41826,10 +41826,10 @@ _t({
|
|
|
41826
41826
|
};
|
|
41827
41827
|
return f1(e.parser, t, "display");
|
|
41828
41828
|
},
|
|
41829
|
-
htmlBuilder:
|
|
41830
|
-
mathmlBuilder:
|
|
41829
|
+
htmlBuilder: Gt,
|
|
41830
|
+
mathmlBuilder: Wt
|
|
41831
41831
|
});
|
|
41832
|
-
|
|
41832
|
+
Zt({
|
|
41833
41833
|
type: "array",
|
|
41834
41834
|
names: ["CD"],
|
|
41835
41835
|
props: {
|
|
@@ -41838,8 +41838,8 @@ _t({
|
|
|
41838
41838
|
handler(e) {
|
|
41839
41839
|
return Rx(e), gP(e.parser);
|
|
41840
41840
|
},
|
|
41841
|
-
htmlBuilder:
|
|
41842
|
-
mathmlBuilder:
|
|
41841
|
+
htmlBuilder: Gt,
|
|
41842
|
+
mathmlBuilder: Wt
|
|
41843
41843
|
});
|
|
41844
41844
|
v("\\nonumber", "\\gdef\\@eqnsw{0}");
|
|
41845
41845
|
v("\\notag", "\\nonumber");
|
|
@@ -41853,7 +41853,7 @@ K({
|
|
|
41853
41853
|
allowedInMath: !0
|
|
41854
41854
|
},
|
|
41855
41855
|
handler(e, t) {
|
|
41856
|
-
throw new
|
|
41856
|
+
throw new _(e.funcName + " valid only within array environment");
|
|
41857
41857
|
}
|
|
41858
41858
|
});
|
|
41859
41859
|
var vL = xC;
|
|
@@ -41870,12 +41870,12 @@ K({
|
|
|
41870
41870
|
funcName: n
|
|
41871
41871
|
} = e, a = t[0];
|
|
41872
41872
|
if (a.type !== "ordgroup")
|
|
41873
|
-
throw new
|
|
41873
|
+
throw new _("Invalid environment name", a);
|
|
41874
41874
|
for (var o = "", l = 0; l < a.body.length; ++l)
|
|
41875
41875
|
o += he(a.body[l], "textord").text;
|
|
41876
41876
|
if (n === "\\begin") {
|
|
41877
41877
|
if (!vL.hasOwnProperty(o))
|
|
41878
|
-
throw new
|
|
41878
|
+
throw new _("No such environment: " + o, a);
|
|
41879
41879
|
var c = vL[o], {
|
|
41880
41880
|
args: s,
|
|
41881
41881
|
optArgs: h
|
|
@@ -41887,7 +41887,7 @@ K({
|
|
|
41887
41887
|
r.expect("\\end", !1);
|
|
41888
41888
|
var m = r.nextToken, k = he(r.parseFunction(), "environment");
|
|
41889
41889
|
if (k.name !== o)
|
|
41890
|
-
throw new
|
|
41890
|
+
throw new _("Mismatch: \\begin{" + o + "} matched by \\end{" + k.name + "}", m);
|
|
41891
41891
|
return d;
|
|
41892
41892
|
}
|
|
41893
41893
|
return {
|
|
@@ -41903,7 +41903,7 @@ var bC = (e, t) => {
|
|
|
41903
41903
|
return ge(e.body, n);
|
|
41904
41904
|
}, LC = (e, t) => {
|
|
41905
41905
|
var r = e.font, n = t.withFont(r);
|
|
41906
|
-
return
|
|
41906
|
+
return Ie(e.body, n);
|
|
41907
41907
|
}, xL = {
|
|
41908
41908
|
"\\Bbb": "\\mathbb",
|
|
41909
41909
|
"\\bold": "\\mathbf",
|
|
@@ -42061,12 +42061,12 @@ var SC = (e, t) => {
|
|
|
42061
42061
|
var R, T;
|
|
42062
42062
|
return e.leftDelim == null ? R = Fr(t, ["mopen"]) : R = e1.customSizedDelim(e.leftDelim, E, !0, t.havingStyle(r), e.mode, ["mopen"]), e.continued ? T = H.makeSpan([]) : e.rightDelim == null ? T = Fr(t, ["mclose"]) : T = e1.customSizedDelim(e.rightDelim, E, !0, t.havingStyle(r), e.mode, ["mclose"]), H.makeSpan(["mord"].concat(o.sizingClasses(t)), [R, H.makeSpan(["mfrac"], [C]), T], t);
|
|
42063
42063
|
}, Fw = (e, t) => {
|
|
42064
|
-
var r = new O.MathNode("mfrac", [
|
|
42064
|
+
var r = new O.MathNode("mfrac", [Ie(e.numer, t), Ie(e.denom, t)]);
|
|
42065
42065
|
if (!e.hasBarLine)
|
|
42066
42066
|
r.setAttribute("linethickness", "0px");
|
|
42067
42067
|
else if (e.barSize) {
|
|
42068
42068
|
var n = Be(e.barSize, t);
|
|
42069
|
-
r.setAttribute("linethickness",
|
|
42069
|
+
r.setAttribute("linethickness", $(n));
|
|
42070
42070
|
}
|
|
42071
42071
|
var a = SC(e.size, t.style);
|
|
42072
42072
|
if (a.size !== t.style.size) {
|
|
@@ -42379,7 +42379,7 @@ var CC = (e, t) => {
|
|
|
42379
42379
|
return H.makeSpan(["mord", a.isOver ? "mover" : "munder"], [c], t);
|
|
42380
42380
|
}, BP = (e, t) => {
|
|
42381
42381
|
var r = n1.mathMLnode(e.label);
|
|
42382
|
-
return new O.MathNode(e.isOver ? "mover" : "munder", [
|
|
42382
|
+
return new O.MathNode(e.isOver ? "mover" : "munder", [Ie(e.base, t), r]);
|
|
42383
42383
|
};
|
|
42384
42384
|
K({
|
|
42385
42385
|
type: "horizBrace",
|
|
@@ -42539,7 +42539,7 @@ K({
|
|
|
42539
42539
|
for (var h = o.split(","), u = 0; u < h.length; u++) {
|
|
42540
42540
|
var d = h[u].split("=");
|
|
42541
42541
|
if (d.length !== 2)
|
|
42542
|
-
throw new
|
|
42542
|
+
throw new _("Error parsing key-value for \\htmlData");
|
|
42543
42543
|
s["data-" + d[0].trim()] = d[1].trim();
|
|
42544
42544
|
}
|
|
42545
42545
|
c = {
|
|
@@ -42600,14 +42600,14 @@ var mM = function(t) {
|
|
|
42600
42600
|
};
|
|
42601
42601
|
var r = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);
|
|
42602
42602
|
if (!r)
|
|
42603
|
-
throw new
|
|
42603
|
+
throw new _("Invalid size: '" + t + "' in \\includegraphics");
|
|
42604
42604
|
var n = {
|
|
42605
42605
|
number: +(r[1] + r[2]),
|
|
42606
42606
|
// sign + magnitude, cast to number
|
|
42607
42607
|
unit: r[3]
|
|
42608
42608
|
};
|
|
42609
42609
|
if (!ZS(n))
|
|
42610
|
-
throw new
|
|
42610
|
+
throw new _("Invalid unit: '" + n.unit + "' in \\includegraphics.");
|
|
42611
42611
|
return n;
|
|
42612
42612
|
};
|
|
42613
42613
|
K({
|
|
@@ -42651,7 +42651,7 @@ K({
|
|
|
42651
42651
|
l = mM(m);
|
|
42652
42652
|
break;
|
|
42653
42653
|
default:
|
|
42654
|
-
throw new
|
|
42654
|
+
throw new _("Invalid key: '" + d[0] + "' in \\includegraphics.");
|
|
42655
42655
|
}
|
|
42656
42656
|
}
|
|
42657
42657
|
}
|
|
@@ -42675,9 +42675,9 @@ K({
|
|
|
42675
42675
|
var a = 0;
|
|
42676
42676
|
e.width.number > 0 && (a = Be(e.width, t));
|
|
42677
42677
|
var o = {
|
|
42678
|
-
height:
|
|
42678
|
+
height: $(r + n)
|
|
42679
42679
|
};
|
|
42680
|
-
a > 0 && (o.width =
|
|
42680
|
+
a > 0 && (o.width = $(a)), n > 0 && (o.verticalAlign = $(-n));
|
|
42681
42681
|
var l = new BB(e.src, e.alt, o);
|
|
42682
42682
|
return l.height = r, l.depth = n, l;
|
|
42683
42683
|
},
|
|
@@ -42685,9 +42685,9 @@ K({
|
|
|
42685
42685
|
var r = new O.MathNode("mglyph", []);
|
|
42686
42686
|
r.setAttribute("alt", e.alt);
|
|
42687
42687
|
var n = Be(e.height, t), a = 0;
|
|
42688
|
-
if (e.totalheight.number > 0 && (a = Be(e.totalheight, t) - n, r.setAttribute("valign",
|
|
42688
|
+
if (e.totalheight.number > 0 && (a = Be(e.totalheight, t) - n, r.setAttribute("valign", $(-a))), r.setAttribute("height", $(n + a)), e.width.number > 0) {
|
|
42689
42689
|
var o = Be(e.width, t);
|
|
42690
|
-
r.setAttribute("width",
|
|
42690
|
+
r.setAttribute("width", $(o));
|
|
42691
42691
|
}
|
|
42692
42692
|
return r.setAttribute("src", e.src), r;
|
|
42693
42693
|
}
|
|
@@ -42747,10 +42747,10 @@ K({
|
|
|
42747
42747
|
var r;
|
|
42748
42748
|
e.alignment === "clap" ? (r = H.makeSpan([], [ge(e.body, t)]), r = H.makeSpan(["inner"], [r], t)) : r = H.makeSpan(["inner"], [ge(e.body, t)]);
|
|
42749
42749
|
var n = H.makeSpan(["fix"], []), a = H.makeSpan([e.alignment], [r, n], t), o = H.makeSpan(["strut"]);
|
|
42750
|
-
return o.style.height =
|
|
42750
|
+
return o.style.height = $(a.height + a.depth), a.depth && (o.style.verticalAlign = $(-a.depth)), a.children.unshift(o), a = H.makeSpan(["thinbox"], [a], t), H.makeSpan(["mord", "vbox"], [a], t);
|
|
42751
42751
|
},
|
|
42752
42752
|
mathmlBuilder: (e, t) => {
|
|
42753
|
-
var r = new O.MathNode("mpadded", [
|
|
42753
|
+
var r = new O.MathNode("mpadded", [Ie(e.body, t)]);
|
|
42754
42754
|
if (e.alignment !== "rlap") {
|
|
42755
42755
|
var n = e.alignment === "llap" ? "-1" : "-0.5";
|
|
42756
42756
|
r.setAttribute("lspace", n + "width");
|
|
@@ -42791,7 +42791,7 @@ K({
|
|
|
42791
42791
|
allowedInMath: !1
|
|
42792
42792
|
},
|
|
42793
42793
|
handler(e, t) {
|
|
42794
|
-
throw new
|
|
42794
|
+
throw new _("Mismatched " + e.funcName);
|
|
42795
42795
|
}
|
|
42796
42796
|
});
|
|
42797
42797
|
var bL = (e, t) => {
|
|
@@ -42866,7 +42866,7 @@ var IC = (e, t, r, n, a, o, l) => {
|
|
|
42866
42866
|
}, {
|
|
42867
42867
|
type: "elem",
|
|
42868
42868
|
elem: s.elem,
|
|
42869
|
-
marginLeft:
|
|
42869
|
+
marginLeft: $(-o)
|
|
42870
42870
|
}, {
|
|
42871
42871
|
type: "kern",
|
|
42872
42872
|
size: s.kern
|
|
@@ -42879,7 +42879,7 @@ var IC = (e, t, r, n, a, o, l) => {
|
|
|
42879
42879
|
}, {
|
|
42880
42880
|
type: "elem",
|
|
42881
42881
|
elem: h.elem,
|
|
42882
|
-
marginLeft:
|
|
42882
|
+
marginLeft: $(o)
|
|
42883
42883
|
}, {
|
|
42884
42884
|
type: "kern",
|
|
42885
42885
|
size: n.fontMetrics().bigOpSpacing5
|
|
@@ -42896,7 +42896,7 @@ var IC = (e, t, r, n, a, o, l) => {
|
|
|
42896
42896
|
}, {
|
|
42897
42897
|
type: "elem",
|
|
42898
42898
|
elem: s.elem,
|
|
42899
|
-
marginLeft:
|
|
42899
|
+
marginLeft: $(-o)
|
|
42900
42900
|
}, {
|
|
42901
42901
|
type: "kern",
|
|
42902
42902
|
size: s.kern
|
|
@@ -42919,7 +42919,7 @@ var IC = (e, t, r, n, a, o, l) => {
|
|
|
42919
42919
|
}, {
|
|
42920
42920
|
type: "elem",
|
|
42921
42921
|
elem: h.elem,
|
|
42922
|
-
marginLeft:
|
|
42922
|
+
marginLeft: $(o)
|
|
42923
42923
|
}, {
|
|
42924
42924
|
type: "kern",
|
|
42925
42925
|
size: n.fontMetrics().bigOpSpacing5
|
|
@@ -42930,7 +42930,7 @@ var IC = (e, t, r, n, a, o, l) => {
|
|
|
42930
42930
|
var C = [m];
|
|
42931
42931
|
if (s && o !== 0 && !c) {
|
|
42932
42932
|
var w = H.makeSpan(["mspace"], [], n);
|
|
42933
|
-
w.style.marginRight =
|
|
42933
|
+
w.style.marginRight = $(o), C.unshift(w);
|
|
42934
42934
|
}
|
|
42935
42935
|
return H.makeSpan(["mop", "op-limits"], C, n);
|
|
42936
42936
|
}, AC = ["\\smallint"], pr = (e, t) => {
|
|
@@ -42958,23 +42958,23 @@ var IC = (e, t, r, n, a, o, l) => {
|
|
|
42958
42958
|
}
|
|
42959
42959
|
} else if (o.body) {
|
|
42960
42960
|
var k = Ue(o.body, t, !0);
|
|
42961
|
-
k.length === 1 && k[0] instanceof
|
|
42961
|
+
k.length === 1 && k[0] instanceof Tt ? (s = k[0], s.classes[0] = "mop") : s = H.makeSpan(["mop"], k, t);
|
|
42962
42962
|
} else {
|
|
42963
42963
|
for (var g = [], x = 1; x < o.name.length; x++)
|
|
42964
42964
|
g.push(H.mathsym(o.name[x], o.mode, t));
|
|
42965
42965
|
s = H.makeSpan(["mop"], g, t);
|
|
42966
42966
|
}
|
|
42967
42967
|
var C = 0, w = 0;
|
|
42968
|
-
return (s instanceof
|
|
42968
|
+
return (s instanceof Tt || o.name === "\\oiint" || o.name === "\\oiiint") && !o.suppressBaseShift && (C = (s.height - s.depth) / 2 - t.fontMetrics().axisHeight, w = s.italic), a ? IC(s, r, n, t, l, w, C) : (C && (s.style.position = "relative", s.style.top = $(C)), s);
|
|
42969
42969
|
}, Ur = (e, t) => {
|
|
42970
42970
|
var r;
|
|
42971
42971
|
if (e.symbol)
|
|
42972
|
-
r = new Mt("mo", [
|
|
42972
|
+
r = new Mt("mo", [qt(e.name, e.mode)]), re.contains(AC, e.name) && r.setAttribute("largeop", "false");
|
|
42973
42973
|
else if (e.body)
|
|
42974
42974
|
r = new Mt("mo", yt(e.body, t));
|
|
42975
42975
|
else {
|
|
42976
|
-
r = new Mt("mi", [new
|
|
42977
|
-
var n = new Mt("mo", [
|
|
42976
|
+
r = new Mt("mi", [new _t(e.name.slice(1))]);
|
|
42977
|
+
var n = new Mt("mo", [qt("", "text")]);
|
|
42978
42978
|
e.parentIsSupSub ? r = new Mt("mrow", [r, n]) : r = rC([r, n]);
|
|
42979
42979
|
}
|
|
42980
42980
|
return r;
|
|
@@ -43129,7 +43129,7 @@ var zC = (e, t) => {
|
|
|
43129
43129
|
} : d;
|
|
43130
43130
|
}), s = Ue(c, t.withFont("mathrm"), !0), h = 0; h < s.length; h++) {
|
|
43131
43131
|
var u = s[h];
|
|
43132
|
-
u instanceof
|
|
43132
|
+
u instanceof Tt && (u.text = u.text.replace(/\u2212/, "-").replace(/\u2217/, "*"));
|
|
43133
43133
|
}
|
|
43134
43134
|
l = H.makeSpan(["mop"], s, t);
|
|
43135
43135
|
} else
|
|
@@ -43163,7 +43163,7 @@ var zC = (e, t) => {
|
|
|
43163
43163
|
}
|
|
43164
43164
|
var s = new O.MathNode("mi", r);
|
|
43165
43165
|
s.setAttribute("mathvariant", "normal");
|
|
43166
|
-
var h = new O.MathNode("mo", [
|
|
43166
|
+
var h = new O.MathNode("mo", [qt("", "text")]);
|
|
43167
43167
|
return e.parentIsSupSub ? new O.MathNode("mrow", [s, h]) : O.newDocumentFragment([s, h]);
|
|
43168
43168
|
};
|
|
43169
43169
|
K({
|
|
@@ -43237,7 +43237,7 @@ K({
|
|
|
43237
43237
|
mathmlBuilder(e, t) {
|
|
43238
43238
|
var r = new O.MathNode("mo", [new O.TextNode("‾")]);
|
|
43239
43239
|
r.setAttribute("stretchy", "true");
|
|
43240
|
-
var n = new O.MathNode("mover", [
|
|
43240
|
+
var n = new O.MathNode("mover", [Ie(e.body, t), r]);
|
|
43241
43241
|
return n.setAttribute("accent", "true"), n;
|
|
43242
43242
|
}
|
|
43243
43243
|
});
|
|
@@ -43359,7 +43359,7 @@ K({
|
|
|
43359
43359
|
}, t);
|
|
43360
43360
|
},
|
|
43361
43361
|
mathmlBuilder(e, t) {
|
|
43362
|
-
var r = new O.MathNode("mpadded", [
|
|
43362
|
+
var r = new O.MathNode("mpadded", [Ie(e.body, t)]), n = e.dy.number + e.dy.unit;
|
|
43363
43363
|
return r.setAttribute("voffset", n), r;
|
|
43364
43364
|
}
|
|
43365
43365
|
});
|
|
@@ -43405,13 +43405,13 @@ K({
|
|
|
43405
43405
|
},
|
|
43406
43406
|
htmlBuilder(e, t) {
|
|
43407
43407
|
var r = H.makeSpan(["mord", "rule"], [], t), n = Be(e.width, t), a = Be(e.height, t), o = e.shift ? Be(e.shift, t) : 0;
|
|
43408
|
-
return r.style.borderRightWidth =
|
|
43408
|
+
return r.style.borderRightWidth = $(n), r.style.borderTopWidth = $(a), r.style.bottom = $(o), r.width = n, r.height = a + o, r.depth = -o, r.maxFontSize = a * 1.125 * t.sizeMultiplier, r;
|
|
43409
43409
|
},
|
|
43410
43410
|
mathmlBuilder(e, t) {
|
|
43411
43411
|
var r = Be(e.width, t), n = Be(e.height, t), a = e.shift ? Be(e.shift, t) : 0, o = t.color && t.getColor() || "black", l = new O.MathNode("mspace");
|
|
43412
|
-
l.setAttribute("mathbackground", o), l.setAttribute("width",
|
|
43412
|
+
l.setAttribute("mathbackground", o), l.setAttribute("width", $(r)), l.setAttribute("height", $(n));
|
|
43413
43413
|
var c = new O.MathNode("mpadded", [l]);
|
|
43414
|
-
return a >= 0 ? c.setAttribute("height",
|
|
43414
|
+
return a >= 0 ? c.setAttribute("height", $(a)) : (c.setAttribute("height", $(a)), c.setAttribute("depth", $(-a))), c.setAttribute("voffset", $(a)), c;
|
|
43415
43415
|
}
|
|
43416
43416
|
});
|
|
43417
43417
|
function TC(e, t, r) {
|
|
@@ -43449,7 +43449,7 @@ K({
|
|
|
43449
43449
|
htmlBuilder: RP,
|
|
43450
43450
|
mathmlBuilder: (e, t) => {
|
|
43451
43451
|
var r = t.havingSize(e.size), n = yt(e.body, r), a = new O.MathNode("mstyle", n);
|
|
43452
|
-
return a.setAttribute("mathsize",
|
|
43452
|
+
return a.setAttribute("mathsize", $(r.sizeMultiplier)), a;
|
|
43453
43453
|
}
|
|
43454
43454
|
});
|
|
43455
43455
|
K({
|
|
@@ -43507,7 +43507,7 @@ K({
|
|
|
43507
43507
|
return H.makeSpan(["mord"], [o], t);
|
|
43508
43508
|
},
|
|
43509
43509
|
mathmlBuilder: (e, t) => {
|
|
43510
|
-
var r = new O.MathNode("mpadded", [
|
|
43510
|
+
var r = new O.MathNode("mpadded", [Ie(e.body, t)]);
|
|
43511
43511
|
return e.smashHeight && r.setAttribute("height", "0px"), e.smashDepth && r.setAttribute("depth", "0px"), r;
|
|
43512
43512
|
}
|
|
43513
43513
|
});
|
|
@@ -43541,7 +43541,7 @@ K({
|
|
|
43541
43541
|
} = e1.sqrtImage(c, t), d = s.height - h;
|
|
43542
43542
|
d > r.height + r.depth + l && (l = (l + d - r.height - r.depth) / 2);
|
|
43543
43543
|
var m = s.height - r.height - l - h;
|
|
43544
|
-
r.style.paddingLeft =
|
|
43544
|
+
r.style.paddingLeft = $(u);
|
|
43545
43545
|
var k = H.makeVList({
|
|
43546
43546
|
positionType: "firstBaseline",
|
|
43547
43547
|
children: [{
|
|
@@ -43577,7 +43577,7 @@ K({
|
|
|
43577
43577
|
body: r,
|
|
43578
43578
|
index: n
|
|
43579
43579
|
} = e;
|
|
43580
|
-
return n ? new O.MathNode("mroot", [
|
|
43580
|
+
return n ? new O.MathNode("mroot", [Ie(r, t), Ie(n, t)]) : new O.MathNode("msqrt", [Ie(r, t)]);
|
|
43581
43581
|
}
|
|
43582
43582
|
});
|
|
43583
43583
|
var SL = {
|
|
@@ -43664,10 +43664,10 @@ _0({
|
|
|
43664
43664
|
}
|
|
43665
43665
|
var x;
|
|
43666
43666
|
t.style === ae.DISPLAY ? x = h.sup1 : t.style.cramped ? x = h.sup3 : x = h.sup2;
|
|
43667
|
-
var C = t.sizeMultiplier, w =
|
|
43667
|
+
var C = t.sizeMultiplier, w = $(0.5 / h.ptPerEm / C), I = null;
|
|
43668
43668
|
if (s) {
|
|
43669
43669
|
var q = e.base && e.base.type === "op" && e.base.name && (e.base.name === "\\oiint" || e.base.name === "\\oiiint");
|
|
43670
|
-
(l instanceof
|
|
43670
|
+
(l instanceof Tt || q) && (I = $(-l.italic));
|
|
43671
43671
|
}
|
|
43672
43672
|
var E;
|
|
43673
43673
|
if (c && s) {
|
|
@@ -43725,8 +43725,8 @@ _0({
|
|
|
43725
43725
|
mathmlBuilder(e, t) {
|
|
43726
43726
|
var r = !1, n, a;
|
|
43727
43727
|
e.base && e.base.type === "horizBrace" && (a = !!e.sup, a === e.base.isOver && (r = !0, n = e.base.isOver)), e.base && (e.base.type === "op" || e.base.type === "operatorname") && (e.base.parentIsSupSub = !0);
|
|
43728
|
-
var o = [
|
|
43729
|
-
e.sub && o.push(
|
|
43728
|
+
var o = [Ie(e.base, t)];
|
|
43729
|
+
e.sub && o.push(Ie(e.sub, t)), e.sup && o.push(Ie(e.sup, t));
|
|
43730
43730
|
var l;
|
|
43731
43731
|
if (r)
|
|
43732
43732
|
l = n ? "mover" : "munder";
|
|
@@ -43751,7 +43751,7 @@ _0({
|
|
|
43751
43751
|
return H.mathsym(e.text, e.mode, t, ["m" + e.family]);
|
|
43752
43752
|
},
|
|
43753
43753
|
mathmlBuilder(e, t) {
|
|
43754
|
-
var r = new O.MathNode("mo", [
|
|
43754
|
+
var r = new O.MathNode("mo", [qt(e.text, e.mode)]);
|
|
43755
43755
|
if (e.family === "bin") {
|
|
43756
43756
|
var n = Cw(e, t);
|
|
43757
43757
|
n === "bold-italic" && r.setAttribute("mathvariant", n);
|
|
@@ -43770,7 +43770,7 @@ _0({
|
|
|
43770
43770
|
return H.makeOrd(e, t, "mathord");
|
|
43771
43771
|
},
|
|
43772
43772
|
mathmlBuilder(e, t) {
|
|
43773
|
-
var r = new O.MathNode("mi", [
|
|
43773
|
+
var r = new O.MathNode("mi", [qt(e.text, e.mode, t)]), n = Cw(e, t) || "italic";
|
|
43774
43774
|
return n !== qC[r.type] && r.setAttribute("mathvariant", n), r;
|
|
43775
43775
|
}
|
|
43776
43776
|
});
|
|
@@ -43780,7 +43780,7 @@ _0({
|
|
|
43780
43780
|
return H.makeOrd(e, t, "textord");
|
|
43781
43781
|
},
|
|
43782
43782
|
mathmlBuilder(e, t) {
|
|
43783
|
-
var r =
|
|
43783
|
+
var r = qt(e.text, e.mode, t), n = Cw(e, t) || "normal", a;
|
|
43784
43784
|
return e.mode === "text" ? a = new O.MathNode("mtext", [r]) : /[0-9]/.test(e.text) ? a = new O.MathNode("mn", [r]) : e.text === "\\prime" ? a = new O.MathNode("mo", [r]) : a = new O.MathNode("mi", [r]), n !== qC[a.type] && a.setAttribute("mathvariant", n), a;
|
|
43785
43785
|
}
|
|
43786
43786
|
});
|
|
@@ -43811,7 +43811,7 @@ _0({
|
|
|
43811
43811
|
} else {
|
|
43812
43812
|
if (fM.hasOwnProperty(e.text))
|
|
43813
43813
|
return H.makeSpan(["mspace", fM[e.text]], [], t);
|
|
43814
|
-
throw new
|
|
43814
|
+
throw new _('Unknown type of space "' + e.text + '"');
|
|
43815
43815
|
}
|
|
43816
43816
|
},
|
|
43817
43817
|
mathmlBuilder(e, t) {
|
|
@@ -43821,7 +43821,7 @@ _0({
|
|
|
43821
43821
|
else {
|
|
43822
43822
|
if (fM.hasOwnProperty(e.text))
|
|
43823
43823
|
return new O.MathNode("mspace");
|
|
43824
|
-
throw new
|
|
43824
|
+
throw new _('Unknown type of space "' + e.text + '"');
|
|
43825
43825
|
}
|
|
43826
43826
|
return r;
|
|
43827
43827
|
}
|
|
@@ -43945,7 +43945,7 @@ K({
|
|
|
43945
43945
|
mathmlBuilder(e, t) {
|
|
43946
43946
|
var r = new O.MathNode("mo", [new O.TextNode("‾")]);
|
|
43947
43947
|
r.setAttribute("stretchy", "true");
|
|
43948
|
-
var n = new O.MathNode("munder", [
|
|
43948
|
+
var n = new O.MathNode("munder", [Ie(e.body, t), r]);
|
|
43949
43949
|
return n.setAttribute("accentunder", "true"), n;
|
|
43950
43950
|
}
|
|
43951
43951
|
});
|
|
@@ -43980,7 +43980,7 @@ K({
|
|
|
43980
43980
|
}, t);
|
|
43981
43981
|
},
|
|
43982
43982
|
mathmlBuilder(e, t) {
|
|
43983
|
-
return new O.MathNode("mpadded", [
|
|
43983
|
+
return new O.MathNode("mpadded", [Ie(e.body, t)], ["vcenter"]);
|
|
43984
43984
|
}
|
|
43985
43985
|
});
|
|
43986
43986
|
K({
|
|
@@ -43991,7 +43991,7 @@ K({
|
|
|
43991
43991
|
allowedInText: !0
|
|
43992
43992
|
},
|
|
43993
43993
|
handler(e, t, r) {
|
|
43994
|
-
throw new
|
|
43994
|
+
throw new _("\\verb ended by end of line instead of matching delimiter");
|
|
43995
43995
|
},
|
|
43996
43996
|
htmlBuilder(e, t) {
|
|
43997
43997
|
for (var r = TL(e), n = [], a = t.havingStyle(t.style.text()), o = 0; o < r.length; o++) {
|
|
@@ -44037,17 +44037,17 @@ class qL {
|
|
|
44037
44037
|
lex() {
|
|
44038
44038
|
var t = this.input, r = this.tokenRegex.lastIndex;
|
|
44039
44039
|
if (r === t.length)
|
|
44040
|
-
return new
|
|
44040
|
+
return new zt("EOF", new xt(this, r, r));
|
|
44041
44041
|
var n = this.tokenRegex.exec(t);
|
|
44042
44042
|
if (n === null || n.index !== r)
|
|
44043
|
-
throw new
|
|
44043
|
+
throw new _("Unexpected character: '" + t[r] + "'", new zt(t[r], new xt(this, r, r + 1)));
|
|
44044
44044
|
var a = n[6] || n[3] || (n[2] ? "\\ " : " ");
|
|
44045
44045
|
if (this.catcodes[a] === 14) {
|
|
44046
44046
|
var o = t.indexOf(`
|
|
44047
44047
|
`, this.tokenRegex.lastIndex);
|
|
44048
44048
|
return o === -1 ? (this.tokenRegex.lastIndex = t.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 = o + 1, this.lex();
|
|
44049
44049
|
}
|
|
44050
|
-
return new
|
|
44050
|
+
return new zt(a, new xt(this, r, this.tokenRegex.lastIndex));
|
|
44051
44051
|
}
|
|
44052
44052
|
}
|
|
44053
44053
|
class GP {
|
|
@@ -44071,7 +44071,7 @@ class GP {
|
|
|
44071
44071
|
*/
|
|
44072
44072
|
endGroup() {
|
|
44073
44073
|
if (this.undefStack.length === 0)
|
|
44074
|
-
throw new
|
|
44074
|
+
throw new _("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");
|
|
44075
44075
|
var t = this.undefStack.pop();
|
|
44076
44076
|
for (var r in t)
|
|
44077
44077
|
t.hasOwnProperty(r) && (t[r] == null ? delete this.current[r] : this.current[r] = t[r]);
|
|
@@ -44208,14 +44208,14 @@ v("\\char", function(e) {
|
|
|
44208
44208
|
n = t.text.charCodeAt(1);
|
|
44209
44209
|
else {
|
|
44210
44210
|
if (t.text === "EOF")
|
|
44211
|
-
throw new
|
|
44211
|
+
throw new _("\\char` missing argument");
|
|
44212
44212
|
n = t.text.charCodeAt(0);
|
|
44213
44213
|
}
|
|
44214
44214
|
else
|
|
44215
44215
|
r = 10;
|
|
44216
44216
|
if (r) {
|
|
44217
44217
|
if (n = HL[t.text], n == null || n >= r)
|
|
44218
|
-
throw new
|
|
44218
|
+
throw new _("Invalid base-" + r + " digit " + t.text);
|
|
44219
44219
|
for (var a; (a = HL[e.future().text]) != null && a < r; )
|
|
44220
44220
|
n *= r, n += a, e.popToken();
|
|
44221
44221
|
}
|
|
@@ -44224,18 +44224,18 @@ v("\\char", function(e) {
|
|
|
44224
44224
|
var Dw = (e, t, r, n) => {
|
|
44225
44225
|
var a = e.consumeArg().tokens;
|
|
44226
44226
|
if (a.length !== 1)
|
|
44227
|
-
throw new
|
|
44227
|
+
throw new _("\\newcommand's first argument must be a macro name");
|
|
44228
44228
|
var o = a[0].text, l = e.isDefined(o);
|
|
44229
44229
|
if (l && !t)
|
|
44230
|
-
throw new
|
|
44230
|
+
throw new _("\\newcommand{" + o + "} attempting to redefine " + (o + "; use \\renewcommand"));
|
|
44231
44231
|
if (!l && !r)
|
|
44232
|
-
throw new
|
|
44232
|
+
throw new _("\\renewcommand{" + o + "} when command " + o + " does not yet exist; use \\newcommand");
|
|
44233
44233
|
var c = 0;
|
|
44234
44234
|
if (a = e.consumeArg().tokens, a.length === 1 && a[0].text === "[") {
|
|
44235
44235
|
for (var s = "", h = e.expandNextToken(); h.text !== "]" && h.text !== "EOF"; )
|
|
44236
44236
|
s += h.text, h = e.expandNextToken();
|
|
44237
44237
|
if (!s.match(/^\s*[0-9]+\s*$/))
|
|
44238
|
-
throw new
|
|
44238
|
+
throw new _("Invalid number of arguments: " + s);
|
|
44239
44239
|
c = parseInt(s), a = e.consumeArg().tokens;
|
|
44240
44240
|
}
|
|
44241
44241
|
return l && n || e.macros.set(o, {
|
|
@@ -44256,7 +44256,7 @@ v("\\errmessage", (e) => {
|
|
|
44256
44256
|
});
|
|
44257
44257
|
v("\\show", (e) => {
|
|
44258
44258
|
var t = e.popToken(), r = t.text;
|
|
44259
|
-
return console.log(t, e.macros.get(r), u1[r],
|
|
44259
|
+
return console.log(t, e.macros.get(r), u1[r], ze.math[r], ze.text[r]), "";
|
|
44260
44260
|
});
|
|
44261
44261
|
v("\\bgroup", "{");
|
|
44262
44262
|
v("\\egroup", "}");
|
|
@@ -44391,7 +44391,7 @@ var BL = {
|
|
|
44391
44391
|
};
|
|
44392
44392
|
v("\\dots", function(e) {
|
|
44393
44393
|
var t = "\\dotso", r = e.expandAfterFuture().text;
|
|
44394
|
-
return r in BL ? t = BL[r] : (r.slice(0, 4) === "\\not" || r in
|
|
44394
|
+
return r in BL ? t = BL[r] : (r.slice(0, 4) === "\\not" || r in ze.math && re.contains(["bin", "rel"], ze.math[r].group)) && (t = "\\dotsb"), t;
|
|
44395
44395
|
});
|
|
44396
44396
|
var Rw = {
|
|
44397
44397
|
// \rightdelim@ checks for the following:
|
|
@@ -44456,7 +44456,7 @@ v("\\tag", "\\@ifstar\\tag@literal\\tag@paren");
|
|
|
44456
44456
|
v("\\tag@paren", "\\tag@literal{({#1})}");
|
|
44457
44457
|
v("\\tag@literal", (e) => {
|
|
44458
44458
|
if (e.macros.get("\\df@tag"))
|
|
44459
|
-
throw new
|
|
44459
|
+
throw new _("Multiple \\tag");
|
|
44460
44460
|
return "\\gdef\\df@tag{\\text{#1}}";
|
|
44461
44461
|
});
|
|
44462
44462
|
v("\\bmod", "\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");
|
|
@@ -44465,7 +44465,7 @@ v("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
|
|
|
44465
44465
|
v("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
|
|
44466
44466
|
v("\\newline", "\\\\\\relax");
|
|
44467
44467
|
v("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
|
|
44468
|
-
var BC =
|
|
44468
|
+
var BC = $(Ut["Main-Regular"][84][1] - 0.7 * Ut["Main-Regular"][65][1]);
|
|
44469
44469
|
v("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + BC + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
|
|
44470
44470
|
v("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + BC + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
|
|
44471
44471
|
v("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
|
|
@@ -44793,7 +44793,7 @@ class $P {
|
|
|
44793
44793
|
start: r,
|
|
44794
44794
|
end: n
|
|
44795
44795
|
} = this.consumeArg());
|
|
44796
|
-
return this.pushToken(new
|
|
44796
|
+
return this.pushToken(new zt("EOF", n.loc)), this.pushTokens(a), r.range(n, "");
|
|
44797
44797
|
}
|
|
44798
44798
|
/**
|
|
44799
44799
|
* Consume all following space tokens, without expansion.
|
|
@@ -44820,9 +44820,9 @@ class $P {
|
|
|
44820
44820
|
++l;
|
|
44821
44821
|
else if (o.text === "}") {
|
|
44822
44822
|
if (--l, l === -1)
|
|
44823
|
-
throw new
|
|
44823
|
+
throw new _("Extra }", o);
|
|
44824
44824
|
} else if (o.text === "EOF")
|
|
44825
|
-
throw new
|
|
44825
|
+
throw new _("Unexpected end of input in a macro argument, expected '" + (t && n ? t[c] : "}") + "'", o);
|
|
44826
44826
|
if (t && n)
|
|
44827
44827
|
if ((l === 0 || l === 1 && t[c] === "{") && o.text === t[c]) {
|
|
44828
44828
|
if (++c, c === t.length) {
|
|
@@ -44845,11 +44845,11 @@ class $P {
|
|
|
44845
44845
|
consumeArgs(t, r) {
|
|
44846
44846
|
if (r) {
|
|
44847
44847
|
if (r.length !== t + 1)
|
|
44848
|
-
throw new
|
|
44848
|
+
throw new _("The length of delimiters doesn't match the number of args!");
|
|
44849
44849
|
for (var n = r[0], a = 0; a < n.length; a++) {
|
|
44850
44850
|
var o = this.popToken();
|
|
44851
44851
|
if (n[a] !== o.text)
|
|
44852
|
-
throw new
|
|
44852
|
+
throw new _("Use of the macro doesn't match its definition", o);
|
|
44853
44853
|
}
|
|
44854
44854
|
}
|
|
44855
44855
|
for (var l = [], c = 0; c < t; c++)
|
|
@@ -44862,7 +44862,7 @@ class $P {
|
|
|
44862
44862
|
*/
|
|
44863
44863
|
countExpansion(t) {
|
|
44864
44864
|
if (this.expansionCount += t, this.expansionCount > this.settings.maxExpand)
|
|
44865
|
-
throw new
|
|
44865
|
+
throw new _("Too many expansions: infinite loop or need to increase maxExpand setting");
|
|
44866
44866
|
}
|
|
44867
44867
|
/**
|
|
44868
44868
|
* Expand the next token only once if possible.
|
|
@@ -44887,7 +44887,7 @@ class $P {
|
|
|
44887
44887
|
var r = this.popToken(), n = r.text, a = r.noexpand ? null : this._getExpansion(n);
|
|
44888
44888
|
if (a == null || t && a.unexpandable) {
|
|
44889
44889
|
if (t && a == null && n[0] === "\\" && !this.isDefined(n))
|
|
44890
|
-
throw new
|
|
44890
|
+
throw new _("Undefined control sequence: " + n);
|
|
44891
44891
|
return this.pushToken(r), !1;
|
|
44892
44892
|
}
|
|
44893
44893
|
this.countExpansion(1);
|
|
@@ -44898,13 +44898,13 @@ class $P {
|
|
|
44898
44898
|
var s = o[c];
|
|
44899
44899
|
if (s.text === "#") {
|
|
44900
44900
|
if (c === 0)
|
|
44901
|
-
throw new
|
|
44901
|
+
throw new _("Incomplete placeholder at end of macro body", s);
|
|
44902
44902
|
if (s = o[--c], s.text === "#")
|
|
44903
44903
|
o.splice(c + 1, 1);
|
|
44904
44904
|
else if (/^[1-9]$/.test(s.text))
|
|
44905
44905
|
o.splice(c, 2, ...l[+s.text - 1]);
|
|
44906
44906
|
else
|
|
44907
|
-
throw new
|
|
44907
|
+
throw new _("Not a valid argument number", s);
|
|
44908
44908
|
}
|
|
44909
44909
|
}
|
|
44910
44910
|
}
|
|
@@ -44935,7 +44935,7 @@ class $P {
|
|
|
44935
44935
|
* tokens, or return `undefined` if no such macro is defined.
|
|
44936
44936
|
*/
|
|
44937
44937
|
expandMacro(t) {
|
|
44938
|
-
return this.macros.has(t) ? this.expandTokens([new
|
|
44938
|
+
return this.macros.has(t) ? this.expandTokens([new zt(t)]) : void 0;
|
|
44939
44939
|
}
|
|
44940
44940
|
/**
|
|
44941
44941
|
* Fully expand the given token stream and return the resulting list of
|
|
@@ -44996,7 +44996,7 @@ class $P {
|
|
|
44996
44996
|
* `implicitCommands`.
|
|
44997
44997
|
*/
|
|
44998
44998
|
isDefined(t) {
|
|
44999
|
-
return this.macros.has(t) || u1.hasOwnProperty(t) ||
|
|
44999
|
+
return this.macros.has(t) || u1.hasOwnProperty(t) || ze.math.hasOwnProperty(t) || ze.text.hasOwnProperty(t) || FC.hasOwnProperty(t);
|
|
45000
45000
|
}
|
|
45001
45001
|
/**
|
|
45002
45002
|
* Determine whether a command is expandable.
|
|
@@ -45512,7 +45512,7 @@ class Ex {
|
|
|
45512
45512
|
*/
|
|
45513
45513
|
expect(t, r) {
|
|
45514
45514
|
if (r === void 0 && (r = !0), this.fetch().text !== t)
|
|
45515
|
-
throw new
|
|
45515
|
+
throw new _("Expected '" + t + "', got '" + this.fetch().text + "'", this.fetch());
|
|
45516
45516
|
r && this.consume();
|
|
45517
45517
|
}
|
|
45518
45518
|
/**
|
|
@@ -45553,7 +45553,7 @@ class Ex {
|
|
|
45553
45553
|
*/
|
|
45554
45554
|
subparse(t) {
|
|
45555
45555
|
var r = this.nextToken;
|
|
45556
|
-
this.consume(), this.gullet.pushToken(new
|
|
45556
|
+
this.consume(), this.gullet.pushToken(new zt("}")), this.gullet.pushTokens(t);
|
|
45557
45557
|
var n = this.parseExpression(!1);
|
|
45558
45558
|
return this.expect("}"), this.nextToken = r, n;
|
|
45559
45559
|
}
|
|
@@ -45594,7 +45594,7 @@ class Ex {
|
|
|
45594
45594
|
for (var r = -1, n, a = 0; a < t.length; a++)
|
|
45595
45595
|
if (t[a].type === "infix") {
|
|
45596
45596
|
if (r !== -1)
|
|
45597
|
-
throw new
|
|
45597
|
+
throw new _("only one infix operator per group", t[a].token);
|
|
45598
45598
|
r = a, n = t[a].replaceWith;
|
|
45599
45599
|
}
|
|
45600
45600
|
if (r !== -1 && n) {
|
|
@@ -45625,7 +45625,7 @@ class Ex {
|
|
|
45625
45625
|
a = this.parseGroup(t);
|
|
45626
45626
|
} while (((o = a) == null ? void 0 : o.type) === "internal");
|
|
45627
45627
|
if (!a)
|
|
45628
|
-
throw new
|
|
45628
|
+
throw new _("Expected group after '" + n + "'", r);
|
|
45629
45629
|
return a;
|
|
45630
45630
|
}
|
|
45631
45631
|
/**
|
|
@@ -45668,19 +45668,19 @@ class Ex {
|
|
|
45668
45668
|
} else if (r && r.type === "operatorname")
|
|
45669
45669
|
r.alwaysHandleSupSub && (r.limits = o.text === "\\limits");
|
|
45670
45670
|
else
|
|
45671
|
-
throw new
|
|
45671
|
+
throw new _("Limit controls must follow a math operator", o);
|
|
45672
45672
|
this.consume();
|
|
45673
45673
|
} else if (o.text === "^") {
|
|
45674
45674
|
if (n)
|
|
45675
|
-
throw new
|
|
45675
|
+
throw new _("Double superscript", o);
|
|
45676
45676
|
n = this.handleSupSubscript("superscript");
|
|
45677
45677
|
} else if (o.text === "_") {
|
|
45678
45678
|
if (a)
|
|
45679
|
-
throw new
|
|
45679
|
+
throw new _("Double subscript", o);
|
|
45680
45680
|
a = this.handleSupSubscript("subscript");
|
|
45681
45681
|
} else if (o.text === "'") {
|
|
45682
45682
|
if (n)
|
|
45683
|
-
throw new
|
|
45683
|
+
throw new _("Double superscript", o);
|
|
45684
45684
|
var c = {
|
|
45685
45685
|
type: "textord",
|
|
45686
45686
|
mode: this.mode,
|
|
@@ -45695,11 +45695,11 @@ class Ex {
|
|
|
45695
45695
|
};
|
|
45696
45696
|
} else if (nn[o.text]) {
|
|
45697
45697
|
var h = PL.test(o.text), u = [];
|
|
45698
|
-
for (u.push(new
|
|
45698
|
+
for (u.push(new zt(nn[o.text])), this.consume(); ; ) {
|
|
45699
45699
|
var d = this.fetch().text;
|
|
45700
45700
|
if (!nn[d] || PL.test(d) !== h)
|
|
45701
45701
|
break;
|
|
45702
|
-
u.unshift(new
|
|
45702
|
+
u.unshift(new zt(nn[d])), this.consume();
|
|
45703
45703
|
}
|
|
45704
45704
|
var m = this.subparse(u);
|
|
45705
45705
|
h ? a = {
|
|
@@ -45730,11 +45730,11 @@ class Ex {
|
|
|
45730
45730
|
if (!o)
|
|
45731
45731
|
return null;
|
|
45732
45732
|
if (this.consume(), r && r !== "atom" && !o.allowedInArgument)
|
|
45733
|
-
throw new
|
|
45733
|
+
throw new _("Got function '" + a + "' with no arguments" + (r ? " as " + r : ""), n);
|
|
45734
45734
|
if (this.mode === "text" && !o.allowedInText)
|
|
45735
|
-
throw new
|
|
45735
|
+
throw new _("Can't use function '" + a + "' in text mode", n);
|
|
45736
45736
|
if (this.mode === "math" && o.allowedInMath === !1)
|
|
45737
|
-
throw new
|
|
45737
|
+
throw new _("Can't use function '" + a + "' in math mode", n);
|
|
45738
45738
|
var {
|
|
45739
45739
|
args: l,
|
|
45740
45740
|
optArgs: c
|
|
@@ -45753,7 +45753,7 @@ class Ex {
|
|
|
45753
45753
|
}, c = u1[t];
|
|
45754
45754
|
if (c && c.handler)
|
|
45755
45755
|
return c.handler(l, r, n);
|
|
45756
|
-
throw new
|
|
45756
|
+
throw new _("No function handler for " + t);
|
|
45757
45757
|
}
|
|
45758
45758
|
/**
|
|
45759
45759
|
* Parses the arguments of a function or environment
|
|
@@ -45775,7 +45775,7 @@ class Ex {
|
|
|
45775
45775
|
else if (h != null)
|
|
45776
45776
|
a.push(h);
|
|
45777
45777
|
else
|
|
45778
|
-
throw new
|
|
45778
|
+
throw new _("Null argument, please report this as a bug");
|
|
45779
45779
|
}
|
|
45780
45780
|
return {
|
|
45781
45781
|
args: a,
|
|
@@ -45816,10 +45816,10 @@ class Ex {
|
|
|
45816
45816
|
}
|
|
45817
45817
|
case "primitive": {
|
|
45818
45818
|
if (n)
|
|
45819
|
-
throw new
|
|
45819
|
+
throw new _("A primitive argument cannot be optional");
|
|
45820
45820
|
var l = this.parseGroup(t);
|
|
45821
45821
|
if (l == null)
|
|
45822
|
-
throw new
|
|
45822
|
+
throw new _("Expected group as " + t, this.fetch());
|
|
45823
45823
|
return l;
|
|
45824
45824
|
}
|
|
45825
45825
|
case "original":
|
|
@@ -45827,7 +45827,7 @@ class Ex {
|
|
|
45827
45827
|
case void 0:
|
|
45828
45828
|
return this.parseArgumentGroup(n);
|
|
45829
45829
|
default:
|
|
45830
|
-
throw new
|
|
45830
|
+
throw new _("Unknown group type as " + t, this.fetch());
|
|
45831
45831
|
}
|
|
45832
45832
|
}
|
|
45833
45833
|
/**
|
|
@@ -45858,7 +45858,7 @@ class Ex {
|
|
|
45858
45858
|
for (var n = this.fetch(), a = n, o = "", l; (l = this.fetch()).text !== "EOF" && t.test(o + l.text); )
|
|
45859
45859
|
a = l, o += a.text, this.consume();
|
|
45860
45860
|
if (o === "")
|
|
45861
|
-
throw new
|
|
45861
|
+
throw new _("Invalid " + r + ": '" + n.text + "'", n);
|
|
45862
45862
|
return n.range(a, o);
|
|
45863
45863
|
}
|
|
45864
45864
|
/**
|
|
@@ -45870,7 +45870,7 @@ class Ex {
|
|
|
45870
45870
|
return null;
|
|
45871
45871
|
var n = /^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);
|
|
45872
45872
|
if (!n)
|
|
45873
|
-
throw new
|
|
45873
|
+
throw new _("Invalid color: '" + r.text + "'", r);
|
|
45874
45874
|
var a = n[0];
|
|
45875
45875
|
return /^[0-9a-f]{6}$/i.test(a) && (a = "#" + a), {
|
|
45876
45876
|
type: "color-token",
|
|
@@ -45888,14 +45888,14 @@ class Ex {
|
|
|
45888
45888
|
!t && r.text.length === 0 && (r.text = "0pt", n = !0);
|
|
45889
45889
|
var a = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);
|
|
45890
45890
|
if (!a)
|
|
45891
|
-
throw new
|
|
45891
|
+
throw new _("Invalid size: '" + r.text + "'", r);
|
|
45892
45892
|
var o = {
|
|
45893
45893
|
number: +(a[1] + a[2]),
|
|
45894
45894
|
// sign + magnitude, cast to number
|
|
45895
45895
|
unit: a[3]
|
|
45896
45896
|
};
|
|
45897
45897
|
if (!ZS(o))
|
|
45898
|
-
throw new
|
|
45898
|
+
throw new _("Invalid unit: '" + o.unit + "'", r);
|
|
45899
45899
|
return {
|
|
45900
45900
|
type: "size",
|
|
45901
45901
|
mode: this.mode,
|
|
@@ -45964,7 +45964,7 @@ class Ex {
|
|
|
45964
45964
|
};
|
|
45965
45965
|
} else if (o = this.parseFunction(r, t) || this.parseSymbol(), o == null && a[0] === "\\" && !FC.hasOwnProperty(a)) {
|
|
45966
45966
|
if (this.settings.throwOnError)
|
|
45967
|
-
throw new
|
|
45967
|
+
throw new _("Undefined control sequence: " + a, n);
|
|
45968
45968
|
o = this.formatUnsupportedCmd(a), this.consume();
|
|
45969
45969
|
}
|
|
45970
45970
|
return o;
|
|
@@ -46008,7 +46008,7 @@ class Ex {
|
|
|
46008
46008
|
this.consume();
|
|
46009
46009
|
var n = r.slice(5), a = n.charAt(0) === "*";
|
|
46010
46010
|
if (a && (n = n.slice(1)), n.length < 2 || n.charAt(0) !== n.slice(-1))
|
|
46011
|
-
throw new
|
|
46011
|
+
throw new _(`\\verb assertion failed --
|
|
46012
46012
|
please report what input caused this bug`);
|
|
46013
46013
|
return n = n.slice(1, -1), {
|
|
46014
46014
|
type: "verb",
|
|
@@ -46017,13 +46017,13 @@ class Ex {
|
|
|
46017
46017
|
star: a
|
|
46018
46018
|
};
|
|
46019
46019
|
}
|
|
46020
|
-
FL.hasOwnProperty(r[0]) && !
|
|
46020
|
+
FL.hasOwnProperty(r[0]) && !ze[this.mode][r[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + r[0] + '" used in math mode', t), r = FL[r[0]] + r.slice(1));
|
|
46021
46021
|
var o = _P.exec(r);
|
|
46022
46022
|
o && (r = r.substring(0, o.index), r === "i" ? r = "ı" : r === "j" && (r = "ȷ"));
|
|
46023
46023
|
var l;
|
|
46024
|
-
if (
|
|
46024
|
+
if (ze[this.mode][r]) {
|
|
46025
46025
|
this.settings.strict && this.mode === "math" && ZM.indexOf(r) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + r[0] + '" used in math mode', t);
|
|
46026
|
-
var c =
|
|
46026
|
+
var c = ze[this.mode][r].group, s = xt.range(t), h;
|
|
46027
46027
|
if (DB.hasOwnProperty(c)) {
|
|
46028
46028
|
var u = c;
|
|
46029
46029
|
h = {
|
|
@@ -46054,10 +46054,10 @@ class Ex {
|
|
|
46054
46054
|
for (var d = 0; d < o[0].length; d++) {
|
|
46055
46055
|
var m = o[0][d];
|
|
46056
46056
|
if (!vM[m])
|
|
46057
|
-
throw new
|
|
46057
|
+
throw new _("Unknown accent ' " + m + "'", t);
|
|
46058
46058
|
var k = vM[m][this.mode] || vM[m].text;
|
|
46059
46059
|
if (!k)
|
|
46060
|
-
throw new
|
|
46060
|
+
throw new _("Accent " + m + " unsupported in " + this.mode + " mode", t);
|
|
46061
46061
|
l = {
|
|
46062
46062
|
type: "accent",
|
|
46063
46063
|
mode: this.mode,
|
|
@@ -46081,12 +46081,12 @@ var Ew = function(t, r) {
|
|
|
46081
46081
|
var a = n.parse();
|
|
46082
46082
|
if (delete n.gullet.macros.current["\\current@color"], delete n.gullet.macros.current["\\color"], n.gullet.macros.get("\\df@tag")) {
|
|
46083
46083
|
if (!r.displayMode)
|
|
46084
|
-
throw new
|
|
46084
|
+
throw new _("\\tag works only in display equations");
|
|
46085
46085
|
a = [{
|
|
46086
46086
|
type: "tag",
|
|
46087
46087
|
mode: "text",
|
|
46088
46088
|
body: a,
|
|
46089
|
-
tag: n.subparse([new
|
|
46089
|
+
tag: n.subparse([new zt("\\df@tag")])
|
|
46090
46090
|
}];
|
|
46091
46091
|
}
|
|
46092
46092
|
return a;
|
|
@@ -46096,7 +46096,7 @@ var Ew = function(t, r) {
|
|
|
46096
46096
|
r.appendChild(a);
|
|
46097
46097
|
};
|
|
46098
46098
|
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."), DC = function() {
|
|
46099
|
-
throw new
|
|
46099
|
+
throw new _("KaTeX doesn't work in quirks mode.");
|
|
46100
46100
|
});
|
|
46101
46101
|
var XP = function(t, r) {
|
|
46102
46102
|
var n = jw(t, r).toMarkup();
|
|
@@ -46105,9 +46105,9 @@ var XP = function(t, r) {
|
|
|
46105
46105
|
var n = new xw(r);
|
|
46106
46106
|
return Ew(t, n);
|
|
46107
46107
|
}, RC = function(t, r, n) {
|
|
46108
|
-
if (n.throwOnError || !(t instanceof
|
|
46108
|
+
if (n.throwOnError || !(t instanceof _))
|
|
46109
46109
|
throw t;
|
|
46110
|
-
var a = H.makeSpan(["katex-error"], [new
|
|
46110
|
+
var a = H.makeSpan(["katex-error"], [new Tt(r)]);
|
|
46111
46111
|
return a.setAttribute("title", t.toString()), a.setAttribute("style", "color:" + n.errorColor), a;
|
|
46112
46112
|
}, jw = function(t, r) {
|
|
46113
46113
|
var n = new xw(r);
|
|
@@ -46128,7 +46128,7 @@ var XP = function(t, r) {
|
|
|
46128
46128
|
}, QP = "0.16.22", JP = {
|
|
46129
46129
|
Span: Nr,
|
|
46130
46130
|
Anchor: bw,
|
|
46131
|
-
SymbolNode:
|
|
46131
|
+
SymbolNode: Tt,
|
|
46132
46132
|
SvgNode: t1,
|
|
46133
46133
|
PathNode: p1,
|
|
46134
46134
|
LineNode: _M
|
|
@@ -46150,7 +46150,7 @@ var XP = function(t, r) {
|
|
|
46150
46150
|
/**
|
|
46151
46151
|
* KaTeX error, usually during parsing.
|
|
46152
46152
|
*/
|
|
46153
|
-
ParseError:
|
|
46153
|
+
ParseError: _,
|
|
46154
46154
|
/**
|
|
46155
46155
|
* The schema of Settings
|
|
46156
46156
|
*/
|
|
@@ -48060,23 +48060,23 @@ const cR = {
|
|
|
48060
48060
|
name: "emailAutolink",
|
|
48061
48061
|
tokenize: uR,
|
|
48062
48062
|
previous: pI
|
|
48063
|
-
},
|
|
48063
|
+
}, $t = {};
|
|
48064
48064
|
function hR() {
|
|
48065
48065
|
return {
|
|
48066
|
-
text:
|
|
48066
|
+
text: $t
|
|
48067
48067
|
};
|
|
48068
48068
|
}
|
|
48069
48069
|
let L1 = 48;
|
|
48070
48070
|
for (; L1 < 123; )
|
|
48071
|
-
|
|
48072
|
-
|
|
48073
|
-
|
|
48074
|
-
|
|
48075
|
-
|
|
48076
|
-
|
|
48077
|
-
|
|
48078
|
-
|
|
48079
|
-
|
|
48071
|
+
$t[L1] = i1, L1++, L1 === 58 ? L1 = 65 : L1 === 91 && (L1 = 97);
|
|
48072
|
+
$t[43] = i1;
|
|
48073
|
+
$t[45] = i1;
|
|
48074
|
+
$t[46] = i1;
|
|
48075
|
+
$t[95] = i1;
|
|
48076
|
+
$t[72] = [i1, hI];
|
|
48077
|
+
$t[104] = [i1, hI];
|
|
48078
|
+
$t[87] = [i1, sI];
|
|
48079
|
+
$t[119] = [i1, sI];
|
|
48080
48080
|
function uR(e, t, r) {
|
|
48081
48081
|
const n = this;
|
|
48082
48082
|
let a, o;
|
|
@@ -48128,7 +48128,7 @@ function pR(e, t, r) {
|
|
|
48128
48128
|
return d === 47 ? (e.consume(d), o ? h : (o = !0, s)) : r(d);
|
|
48129
48129
|
}
|
|
48130
48130
|
function h(d) {
|
|
48131
|
-
return d === null || fx(d) ||
|
|
48131
|
+
return d === null || fx(d) || Ce(d) || N0(d) || Ax(d) ? r(d) : e.attempt(oI, e.attempt(lI, u), r)(d);
|
|
48132
48132
|
}
|
|
48133
48133
|
function u(d) {
|
|
48134
48134
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(d);
|
|
@@ -48148,7 +48148,7 @@ function kR(e, t, r) {
|
|
|
48148
48148
|
let n, a, o;
|
|
48149
48149
|
return l;
|
|
48150
48150
|
function l(h) {
|
|
48151
|
-
return h === 46 || h === 95 ? e.check(cI, s, c)(h) : h === null ||
|
|
48151
|
+
return h === 46 || h === 95 ? e.check(cI, s, c)(h) : h === null || Ce(h) || N0(h) || h !== 45 && Ax(h) ? s(h) : (o = !0, e.consume(h), l);
|
|
48152
48152
|
}
|
|
48153
48153
|
function c(h) {
|
|
48154
48154
|
return h === 95 ? n = !0 : (a = n, n = void 0), e.consume(h), l;
|
|
@@ -48161,7 +48161,7 @@ function mR(e, t) {
|
|
|
48161
48161
|
let r = 0, n = 0;
|
|
48162
48162
|
return a;
|
|
48163
48163
|
function a(l) {
|
|
48164
|
-
return l === 40 ? (r++, e.consume(l), a) : l === 41 && n < r ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(cI, t, o)(l) : l === null ||
|
|
48164
|
+
return l === 40 ? (r++, e.consume(l), a) : l === 41 && n < r ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(cI, t, o)(l) : l === null || Ce(l) || N0(l) ? t(l) : (e.consume(l), a);
|
|
48165
48165
|
}
|
|
48166
48166
|
function o(l) {
|
|
48167
48167
|
return l === 41 && n++, e.consume(l), a;
|
|
@@ -48173,11 +48173,11 @@ function fR(e, t, r) {
|
|
|
48173
48173
|
return c === 33 || c === 34 || c === 39 || c === 41 || c === 42 || c === 44 || c === 46 || c === 58 || c === 59 || c === 63 || c === 95 || c === 126 ? (e.consume(c), n) : c === 38 ? (e.consume(c), o) : c === 93 ? (e.consume(c), a) : (
|
|
48174
48174
|
// `<` is an end.
|
|
48175
48175
|
c === 60 || // So is whitespace.
|
|
48176
|
-
c === null ||
|
|
48176
|
+
c === null || Ce(c) || N0(c) ? t(c) : r(c)
|
|
48177
48177
|
);
|
|
48178
48178
|
}
|
|
48179
48179
|
function a(c) {
|
|
48180
|
-
return c === null || c === 40 || c === 91 ||
|
|
48180
|
+
return c === null || c === 40 || c === 91 || Ce(c) || N0(c) ? t(c) : n(c);
|
|
48181
48181
|
}
|
|
48182
48182
|
function o(c) {
|
|
48183
48183
|
return at(c) ? l(c) : r(c);
|
|
@@ -48196,7 +48196,7 @@ function gR(e, t, r) {
|
|
|
48196
48196
|
}
|
|
48197
48197
|
}
|
|
48198
48198
|
function uI(e) {
|
|
48199
|
-
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 ||
|
|
48199
|
+
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || Ce(e);
|
|
48200
48200
|
}
|
|
48201
48201
|
function dI(e) {
|
|
48202
48202
|
return !at(e);
|
|
@@ -48343,7 +48343,7 @@ function bR(e, t, r) {
|
|
|
48343
48343
|
o > 999 || // Closing brace with nothing.
|
|
48344
48344
|
d === 93 && !l || // Space or tab is not supported by GFM for some reason.
|
|
48345
48345
|
// `\n` and `[` not being supported makes sense.
|
|
48346
|
-
d === null || d === 91 ||
|
|
48346
|
+
d === null || d === 91 || Ce(d)
|
|
48347
48347
|
)
|
|
48348
48348
|
return r(d);
|
|
48349
48349
|
if (d === 93) {
|
|
@@ -48351,7 +48351,7 @@ function bR(e, t, r) {
|
|
|
48351
48351
|
const m = e.exit("gfmFootnoteCallString");
|
|
48352
48352
|
return a.includes(Ft(n.sliceSerialize(m))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(d), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : r(d);
|
|
48353
48353
|
}
|
|
48354
|
-
return
|
|
48354
|
+
return Ce(d) || (l = !0), o++, e.consume(d), d === 92 ? u : h;
|
|
48355
48355
|
}
|
|
48356
48356
|
function u(d) {
|
|
48357
48357
|
return d === 91 || d === 92 || d === 93 ? (e.consume(d), o++, h) : h(d);
|
|
@@ -48373,7 +48373,7 @@ function LR(e, t, r) {
|
|
|
48373
48373
|
l > 999 || // Closing brace with nothing.
|
|
48374
48374
|
g === 93 && !c || // Space or tab is not supported by GFM for some reason.
|
|
48375
48375
|
// `\n` and `[` not being supported makes sense.
|
|
48376
|
-
g === null || g === 91 ||
|
|
48376
|
+
g === null || g === 91 || Ce(g)
|
|
48377
48377
|
)
|
|
48378
48378
|
return r(g);
|
|
48379
48379
|
if (g === 93) {
|
|
@@ -48381,7 +48381,7 @@ function LR(e, t, r) {
|
|
|
48381
48381
|
const x = e.exit("gfmFootnoteDefinitionLabelString");
|
|
48382
48382
|
return o = Ft(n.sliceSerialize(x)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(g), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), m;
|
|
48383
48383
|
}
|
|
48384
|
-
return
|
|
48384
|
+
return Ce(g) || (c = !0), l++, e.consume(g), g === 92 ? d : u;
|
|
48385
48385
|
}
|
|
48386
48386
|
function d(g) {
|
|
48387
48387
|
return g === 91 || g === 92 || g === 93 ? (e.consume(g), l++, u) : u(g);
|
|
@@ -48592,7 +48592,7 @@ function BR(e, t, r) {
|
|
|
48592
48592
|
return B === null ? r(B) : ee(B) ? o > 1 ? (o = 0, n.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(B), e.exit("lineEnding"), k) : r(B) : ye(B) ? de(e, u, "whitespace")(B) : (o += 1, l && (l = !1, a += 1), B === 124 ? (e.enter("tableCellDivider"), e.consume(B), e.exit("tableCellDivider"), l = !0, u) : (e.enter("data"), d(B)));
|
|
48593
48593
|
}
|
|
48594
48594
|
function d(B) {
|
|
48595
|
-
return B === null || B === 124 ||
|
|
48595
|
+
return B === null || B === 124 || Ce(B) ? (e.exit("data"), u(B)) : (e.consume(B), B === 92 ? m : d);
|
|
48596
48596
|
}
|
|
48597
48597
|
function m(B) {
|
|
48598
48598
|
return B === 92 || B === 124 ? (e.consume(B), d) : d(B);
|
|
@@ -48631,7 +48631,7 @@ function BR(e, t, r) {
|
|
|
48631
48631
|
return B === 124 ? (e.enter("tableCellDivider"), e.consume(B), e.exit("tableCellDivider"), F) : B === null || ee(B) ? (e.exit("tableRow"), t(B)) : ye(B) ? de(e, F, "whitespace")(B) : (e.enter("data"), X(B));
|
|
48632
48632
|
}
|
|
48633
48633
|
function X(B) {
|
|
48634
|
-
return B === null || B === 124 ||
|
|
48634
|
+
return B === null || B === 124 || Ce(B) ? (e.exit("data"), F(B)) : (e.consume(B), B === 92 ? V : X);
|
|
48635
48635
|
}
|
|
48636
48636
|
function V(B) {
|
|
48637
48637
|
return B === 92 || B === 124 ? (e.consume(B), X) : X(B);
|
|
@@ -48717,7 +48717,7 @@ function RR(e, t, r) {
|
|
|
48717
48717
|
);
|
|
48718
48718
|
}
|
|
48719
48719
|
function o(s) {
|
|
48720
|
-
return
|
|
48720
|
+
return Ce(s) ? (e.enter("taskListCheckValueUnchecked"), e.consume(s), e.exit("taskListCheckValueUnchecked"), l) : s === 88 || s === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(s), e.exit("taskListCheckValueChecked"), l) : r(s);
|
|
48721
48721
|
}
|
|
48722
48722
|
function l(s) {
|
|
48723
48723
|
return s === 93 ? (e.enter("taskListCheckMarker"), e.consume(s), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), c) : r(s);
|
|
@@ -48812,7 +48812,7 @@ $$${u}$$
|
|
|
48812
48812
|
const n = UR(e);
|
|
48813
48813
|
if (!n) return null;
|
|
48814
48814
|
const a = r ? [QL] : [[tF, { singleDollarTextMath: !0 }], QL], o = r ? [] : [BF];
|
|
48815
|
-
return /* @__PURE__ */
|
|
48815
|
+
return /* @__PURE__ */ U.jsx("div", { className: `markdown-content ${t}`, children: /* @__PURE__ */ U.jsx(OH, { remarkPlugins: a, rehypePlugins: o, children: n }) });
|
|
48816
48816
|
}, _R = (e) => {
|
|
48817
48817
|
if (!e) return !1;
|
|
48818
48818
|
if ((e.match(/`/g) || []).length % 2 !== 0 || (e.match(/```/g) || []).length % 2 !== 0) return !0;
|
|
@@ -48906,14 +48906,14 @@ $$${u}$$
|
|
|
48906
48906
|
if (T === 0) return;
|
|
48907
48907
|
g.current >= T ? q() : C.current || (C.current = !0, E());
|
|
48908
48908
|
}
|
|
48909
|
-
}, [h, e.length, q, E]), m && e.length === 0 ? /* @__PURE__ */
|
|
48910
|
-
/* @__PURE__ */
|
|
48911
|
-
/* @__PURE__ */
|
|
48912
|
-
/* @__PURE__ */
|
|
48913
|
-
/* @__PURE__ */
|
|
48914
|
-
/* @__PURE__ */
|
|
48909
|
+
}, [h, e.length, q, E]), m && e.length === 0 ? /* @__PURE__ */ U.jsxs("div", { className: "text-gray-500", children: [
|
|
48910
|
+
/* @__PURE__ */ U.jsx("span", { className: "font-medium", children: "Thinking" }),
|
|
48911
|
+
/* @__PURE__ */ U.jsxs("span", { className: "animate-dots ml-1", children: [
|
|
48912
|
+
/* @__PURE__ */ U.jsx("span", { className: "dot", children: "." }),
|
|
48913
|
+
/* @__PURE__ */ U.jsx("span", { className: "dot", children: "." }),
|
|
48914
|
+
/* @__PURE__ */ U.jsx("span", { className: "dot", children: "." })
|
|
48915
48915
|
] })
|
|
48916
|
-
] }) : /* @__PURE__ */
|
|
48916
|
+
] }) : /* @__PURE__ */ U.jsx(yI, { content: u });
|
|
48917
48917
|
}, GR = ({
|
|
48918
48918
|
message: e,
|
|
48919
48919
|
index: t,
|
|
@@ -48934,7 +48934,7 @@ $$${u}$$
|
|
|
48934
48934
|
lastMessageRef: C
|
|
48935
48935
|
}) => {
|
|
48936
48936
|
const w = /* @__PURE__ */ new Date();
|
|
48937
|
-
return w.setMinutes(w.getMinutes() - (s - t)), /* @__PURE__ */
|
|
48937
|
+
return w.setMinutes(w.getMinutes() - (s - t)), /* @__PURE__ */ U.jsx(
|
|
48938
48938
|
"div",
|
|
48939
48939
|
{
|
|
48940
48940
|
className: tr(
|
|
@@ -48942,7 +48942,7 @@ $$${u}$$
|
|
|
48942
48942
|
e.role === "user" ? "justify-end" : "justify-start"
|
|
48943
48943
|
),
|
|
48944
48944
|
ref: t === s - 1 ? C : null,
|
|
48945
|
-
children: /* @__PURE__ */
|
|
48945
|
+
children: /* @__PURE__ */ U.jsxs(
|
|
48946
48946
|
"div",
|
|
48947
48947
|
{
|
|
48948
48948
|
className: tr(
|
|
@@ -48959,7 +48959,7 @@ $$${u}$$
|
|
|
48959
48959
|
borderRadius: e.role === "assistant" ? "0.75rem" : void 0
|
|
48960
48960
|
},
|
|
48961
48961
|
children: [
|
|
48962
|
-
e.role === "assistant" ? e.content ? !d(e.id) && r ? /* @__PURE__ */
|
|
48962
|
+
e.role === "assistant" ? e.content ? !d(e.id) && r ? /* @__PURE__ */ U.jsx(
|
|
48963
48963
|
ZR,
|
|
48964
48964
|
{
|
|
48965
48965
|
content: e.content,
|
|
@@ -48973,26 +48973,26 @@ $$${u}$$
|
|
|
48973
48973
|
scrollToBottom: h,
|
|
48974
48974
|
isStreaming: n
|
|
48975
48975
|
}
|
|
48976
|
-
) : /* @__PURE__ */
|
|
48977
|
-
/* @__PURE__ */
|
|
48978
|
-
/* @__PURE__ */
|
|
48979
|
-
/* @__PURE__ */
|
|
48980
|
-
/* @__PURE__ */
|
|
48981
|
-
/* @__PURE__ */
|
|
48976
|
+
) : /* @__PURE__ */ U.jsx(yI, { content: e.content }) : /* @__PURE__ */ U.jsxs("div", { className: "text-gray-500", children: [
|
|
48977
|
+
/* @__PURE__ */ U.jsx("span", { className: "font-medium", children: "Thinking" }),
|
|
48978
|
+
/* @__PURE__ */ U.jsxs("span", { className: "animate-dots ml-1", children: [
|
|
48979
|
+
/* @__PURE__ */ U.jsx("span", { className: "dot", children: "." }),
|
|
48980
|
+
/* @__PURE__ */ U.jsx("span", { className: "dot", children: "." }),
|
|
48981
|
+
/* @__PURE__ */ U.jsx("span", { className: "dot", children: "." })
|
|
48982
48982
|
] })
|
|
48983
|
-
] }) : /* @__PURE__ */
|
|
48983
|
+
] }) : /* @__PURE__ */ U.jsx("p", { className: "text-base", style: {
|
|
48984
48984
|
overflowWrap: "anywhere",
|
|
48985
48985
|
wordBreak: "break-word",
|
|
48986
48986
|
whiteSpace: "pre-wrap",
|
|
48987
48987
|
width: "100%"
|
|
48988
48988
|
}, children: e.content }),
|
|
48989
|
-
/* @__PURE__ */
|
|
48989
|
+
/* @__PURE__ */ U.jsxs("div", { className: tr(
|
|
48990
48990
|
"flex text-xs mt-2",
|
|
48991
48991
|
e.role === "user" ? "justify-start text-white/70" : "justify-between text-gray-400"
|
|
48992
48992
|
), children: [
|
|
48993
|
-
/* @__PURE__ */
|
|
48994
|
-
e.role === "assistant" && !n && /* @__PURE__ */
|
|
48995
|
-
/* @__PURE__ */
|
|
48993
|
+
/* @__PURE__ */ U.jsx("span", { children: x(w) }),
|
|
48994
|
+
e.role === "assistant" && !n && /* @__PURE__ */ U.jsxs("div", { className: "relative", children: [
|
|
48995
|
+
/* @__PURE__ */ U.jsx(
|
|
48996
48996
|
"button",
|
|
48997
48997
|
{
|
|
48998
48998
|
onClick: () => l(e.content, e.id),
|
|
@@ -49017,10 +49017,10 @@ $$${u}$$
|
|
|
49017
49017
|
I.currentTarget.style.setProperty("color", a.text.primary, "important"), I.currentTarget.style.setProperty("background", "transparent", "important");
|
|
49018
49018
|
},
|
|
49019
49019
|
"aria-label": "Copy to clipboard",
|
|
49020
|
-
children: o === e.id ? /* @__PURE__ */
|
|
49020
|
+
children: o === e.id ? /* @__PURE__ */ U.jsx(Mr, { size: 16 }) : /* @__PURE__ */ U.jsx(Lr, { size: 16 })
|
|
49021
49021
|
}
|
|
49022
49022
|
),
|
|
49023
|
-
o === e.id && /* @__PURE__ */
|
|
49023
|
+
o === e.id && /* @__PURE__ */ U.jsx(
|
|
49024
49024
|
"div",
|
|
49025
49025
|
{
|
|
49026
49026
|
className: "absolute bottom-full right-0 mb-1 px-2 py-1 text-xs rounded-md shadow-sm animate-fade-in-out whitespace-nowrap",
|
|
@@ -49070,7 +49070,7 @@ $$${u}$$
|
|
|
49070
49070
|
const D = r.input.background;
|
|
49071
49071
|
return !D || D === "transparent" || D.includes("rgba") || D.includes("hsla") ? "#ffffff" : D.match(/^#[0-9A-Fa-f]{8}$/) ? D.substring(0, 7) : D;
|
|
49072
49072
|
})();
|
|
49073
|
-
return /* @__PURE__ */
|
|
49073
|
+
return /* @__PURE__ */ U.jsxs(
|
|
49074
49074
|
"div",
|
|
49075
49075
|
{
|
|
49076
49076
|
className: "flex-1 overflow-hidden relative",
|
|
@@ -49080,7 +49080,7 @@ $$${u}$$
|
|
|
49080
49080
|
isolation: "isolate"
|
|
49081
49081
|
},
|
|
49082
49082
|
children: [
|
|
49083
|
-
/* @__PURE__ */
|
|
49083
|
+
/* @__PURE__ */ U.jsx(
|
|
49084
49084
|
"div",
|
|
49085
49085
|
{
|
|
49086
49086
|
className: "absolute inset-0",
|
|
@@ -49092,7 +49092,7 @@ $$${u}$$
|
|
|
49092
49092
|
}
|
|
49093
49093
|
}
|
|
49094
49094
|
),
|
|
49095
|
-
/* @__PURE__ */
|
|
49095
|
+
/* @__PURE__ */ U.jsxs(
|
|
49096
49096
|
"div",
|
|
49097
49097
|
{
|
|
49098
49098
|
ref: c,
|
|
@@ -49114,7 +49114,7 @@ $$${u}$$
|
|
|
49114
49114
|
},
|
|
49115
49115
|
onScroll: d,
|
|
49116
49116
|
children: [
|
|
49117
|
-
a && /* @__PURE__ */
|
|
49117
|
+
a && /* @__PURE__ */ U.jsx(
|
|
49118
49118
|
"button",
|
|
49119
49119
|
{
|
|
49120
49120
|
onClick: h,
|
|
@@ -49125,10 +49125,10 @@ $$${u}$$
|
|
|
49125
49125
|
},
|
|
49126
49126
|
"aria-label": "Scroll to top",
|
|
49127
49127
|
title: "Scroll to top",
|
|
49128
|
-
children: /* @__PURE__ */
|
|
49128
|
+
children: /* @__PURE__ */ U.jsx(br, { size: we.BUTTON_SIZES.ICON_SIZES.BUTTON })
|
|
49129
49129
|
}
|
|
49130
49130
|
),
|
|
49131
|
-
o && !l && /* @__PURE__ */
|
|
49131
|
+
o && !l && /* @__PURE__ */ U.jsx(
|
|
49132
49132
|
"button",
|
|
49133
49133
|
{
|
|
49134
49134
|
onClick: () => u(),
|
|
@@ -49139,40 +49139,66 @@ $$${u}$$
|
|
|
49139
49139
|
},
|
|
49140
49140
|
"aria-label": "Scroll to bottom",
|
|
49141
49141
|
title: "Scroll to bottom",
|
|
49142
|
-
children: /* @__PURE__ */
|
|
49142
|
+
children: /* @__PURE__ */ U.jsx(wr, { size: we.BUTTON_SIZES.ICON_SIZES.BUTTON })
|
|
49143
49143
|
}
|
|
49144
49144
|
),
|
|
49145
|
-
e.length === 0 ? /* @__PURE__ */
|
|
49146
|
-
/* @__PURE__ */
|
|
49147
|
-
/* @__PURE__ */
|
|
49148
|
-
/* @__PURE__ */
|
|
49145
|
+
e.length === 0 ? /* @__PURE__ */ U.jsxs("div", { className: "py-2", children: [
|
|
49146
|
+
/* @__PURE__ */ U.jsx("div", { className: "w-full px-3 mb-6", children: /* @__PURE__ */ U.jsxs("div", { className: "max-w-lg mx-auto sm:max-w-2xl", children: [
|
|
49147
|
+
/* @__PURE__ */ U.jsx("h4", { className: "font-bold text-xl mb-2 px-1 mt-3", style: { color: r.text.primary }, children: n.welcome.title }),
|
|
49148
|
+
/* @__PURE__ */ U.jsx("p", { className: "text-lg px-1", style: { color: r.text.secondary }, children: n.welcome.description })
|
|
49149
49149
|
] }) }),
|
|
49150
|
-
/* @__PURE__ */
|
|
49151
|
-
var
|
|
49152
|
-
const te = V ??
|
|
49153
|
-
return /* @__PURE__ */
|
|
49154
|
-
"
|
|
49150
|
+
/* @__PURE__ */ U.jsx("div", { className: "w-full px-3", children: /* @__PURE__ */ U.jsx("div", { className: "flex flex-col gap-3 max-w-lg mx-auto sm:max-w-2xl", children: n.suggestedQuestions.slice(0, 5).map((D, ie) => {
|
|
49151
|
+
var Le, De;
|
|
49152
|
+
const te = V ?? we.MAX_SUGGESTED_QUESTION_QUERY_LENGTH, Y = X ?? we.MAX_SUGGESTED_QUESTION_LENGTH, ue = ((Le = D.query) == null ? void 0 : Le.length) > te ? D.query.substring(0, te) : D.query, me = ((De = D.text) == null ? void 0 : De.length) > Y ? `${D.text.substring(0, Y)}...` : D.text;
|
|
49153
|
+
return /* @__PURE__ */ U.jsx(
|
|
49154
|
+
"button",
|
|
49155
49155
|
{
|
|
49156
|
-
|
|
49156
|
+
onClick: () => {
|
|
49157
|
+
m(ue), setTimeout(() => {
|
|
49158
|
+
k();
|
|
49159
|
+
}, we.ANIMATIONS.TOGGLE_DELAY);
|
|
49160
|
+
},
|
|
49161
|
+
className: "group w-full text-left transition-all duration-300 ease-in-out transform hover:scale-[1.02] active:scale-[0.98]",
|
|
49157
49162
|
style: {
|
|
49158
|
-
minHeight: "
|
|
49163
|
+
minHeight: "48px",
|
|
49159
49164
|
background: "transparent"
|
|
49160
49165
|
},
|
|
49161
|
-
|
|
49162
|
-
|
|
49166
|
+
title: ue,
|
|
49167
|
+
children: /* @__PURE__ */ U.jsx(
|
|
49168
|
+
"div",
|
|
49163
49169
|
{
|
|
49164
|
-
|
|
49165
|
-
m(ue), setTimeout(() => {
|
|
49166
|
-
k();
|
|
49167
|
-
}, Me.ANIMATIONS.TOGGLE_DELAY);
|
|
49168
|
-
},
|
|
49169
|
-
className: "truncate hover:text-primary transition-colors duration-200 cursor-pointer w-full text-base",
|
|
49170
|
+
className: "w-full px-4 py-3 rounded-xl border transition-all duration-300 ease-in-out cursor-pointer group-hover:shadow-md group-active:shadow-sm",
|
|
49170
49171
|
style: {
|
|
49172
|
+
background: r.suggestedQuestions.background || "#ffffff",
|
|
49173
|
+
borderColor: r.suggestedQuestions.text || "#e5e7eb",
|
|
49171
49174
|
color: r.suggestedQuestions.text,
|
|
49172
|
-
fontWeight: 500
|
|
49175
|
+
fontWeight: 500,
|
|
49176
|
+
boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)"
|
|
49173
49177
|
},
|
|
49174
|
-
|
|
49175
|
-
|
|
49178
|
+
onMouseEnter: (L) => {
|
|
49179
|
+
L.currentTarget.style.background = r.suggestedQuestions.highlightedBackground || "#f8fafc", L.currentTarget.style.borderColor = r.primary, L.currentTarget.style.transform = "translateY(-1px)", L.currentTarget.style.boxShadow = "0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)";
|
|
49180
|
+
const ve = L.currentTarget.querySelector("span");
|
|
49181
|
+
ve && (ve.style.color = "#1F2937");
|
|
49182
|
+
},
|
|
49183
|
+
onMouseLeave: (L) => {
|
|
49184
|
+
L.currentTarget.style.background = r.suggestedQuestions.background || "#ffffff", L.currentTarget.style.borderColor = r.suggestedQuestions.text || "#e5e7eb", L.currentTarget.style.transform = "translateY(0)", L.currentTarget.style.boxShadow = "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)";
|
|
49185
|
+
const ve = L.currentTarget.querySelector("span");
|
|
49186
|
+
ve && (ve.style.color = r.suggestedQuestions.text || "#1F2937", ve.style.removeProperty("color"));
|
|
49187
|
+
},
|
|
49188
|
+
children: /* @__PURE__ */ U.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49189
|
+
/* @__PURE__ */ U.jsx("span", { className: "text-base leading-relaxed transition-colors duration-200", children: me }),
|
|
49190
|
+
/* @__PURE__ */ U.jsx(
|
|
49191
|
+
"div",
|
|
49192
|
+
{
|
|
49193
|
+
className: "opacity-0 group-hover:opacity-100 transition-opacity duration-200 transform translate-x-1 group-hover:translate-x-0",
|
|
49194
|
+
style: { color: r.primary },
|
|
49195
|
+
children: /* @__PURE__ */ U.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
49196
|
+
/* @__PURE__ */ U.jsx("path", { d: "M5 12h14" }),
|
|
49197
|
+
/* @__PURE__ */ U.jsx("path", { d: "m12 5 7 7-7 7" })
|
|
49198
|
+
] })
|
|
49199
|
+
}
|
|
49200
|
+
)
|
|
49201
|
+
] })
|
|
49176
49202
|
}
|
|
49177
49203
|
)
|
|
49178
49204
|
},
|
|
@@ -49181,10 +49207,10 @@ $$${u}$$
|
|
|
49181
49207
|
}) }) })
|
|
49182
49208
|
] }) : (
|
|
49183
49209
|
/* Messages List */
|
|
49184
|
-
/* @__PURE__ */
|
|
49210
|
+
/* @__PURE__ */ U.jsxs("div", { className: "space-y-3", children: [
|
|
49185
49211
|
e.map((D, ie) => {
|
|
49186
49212
|
const te = D.role === "assistant" && ie === e.length - 1, Y = te && t;
|
|
49187
|
-
return /* @__PURE__ */
|
|
49213
|
+
return /* @__PURE__ */ U.jsx(
|
|
49188
49214
|
GR,
|
|
49189
49215
|
{
|
|
49190
49216
|
message: D,
|
|
@@ -49208,15 +49234,15 @@ $$${u}$$
|
|
|
49208
49234
|
D.id
|
|
49209
49235
|
);
|
|
49210
49236
|
}),
|
|
49211
|
-
t && e.length === 0 && /* @__PURE__ */
|
|
49212
|
-
/* @__PURE__ */
|
|
49213
|
-
/* @__PURE__ */
|
|
49214
|
-
/* @__PURE__ */
|
|
49215
|
-
/* @__PURE__ */
|
|
49216
|
-
/* @__PURE__ */
|
|
49237
|
+
t && e.length === 0 && /* @__PURE__ */ U.jsx("div", { className: "flex justify-start", children: /* @__PURE__ */ U.jsx("div", { className: "bg-white border border-gray-200 rounded-xl rounded-tl-none max-w-[85%] p-4 shadow-sm", children: /* @__PURE__ */ U.jsxs("div", { className: "text-gray-500", children: [
|
|
49238
|
+
/* @__PURE__ */ U.jsx("span", { className: "font-medium text-lg", children: "Thinking" }),
|
|
49239
|
+
/* @__PURE__ */ U.jsxs("span", { className: "animate-dots ml-1", children: [
|
|
49240
|
+
/* @__PURE__ */ U.jsx("span", { className: "dot", children: "." }),
|
|
49241
|
+
/* @__PURE__ */ U.jsx("span", { className: "dot", children: "." }),
|
|
49242
|
+
/* @__PURE__ */ U.jsx("span", { className: "dot", children: "." })
|
|
49217
49243
|
] })
|
|
49218
49244
|
] }) }) }),
|
|
49219
|
-
/* @__PURE__ */
|
|
49245
|
+
/* @__PURE__ */ U.jsx("div", { ref: s })
|
|
49220
49246
|
] })
|
|
49221
49247
|
)
|
|
49222
49248
|
]
|
|
@@ -49240,7 +49266,7 @@ $$${u}$$
|
|
|
49240
49266
|
const d = n.input.background;
|
|
49241
49267
|
return !d || d === "transparent" || d.includes("rgba") || d.includes("hsla") ? "#ffffff" : d.match(/^#[0-9A-Fa-f]{8}$/) ? d.substring(0, 7) : d;
|
|
49242
49268
|
})();
|
|
49243
|
-
return /* @__PURE__ */
|
|
49269
|
+
return /* @__PURE__ */ U.jsxs(
|
|
49244
49270
|
"div",
|
|
49245
49271
|
{
|
|
49246
49272
|
className: "border-t-0 shrink-0 relative",
|
|
@@ -49260,7 +49286,7 @@ $$${u}$$
|
|
|
49260
49286
|
isolation: "isolate"
|
|
49261
49287
|
},
|
|
49262
49288
|
children: [
|
|
49263
|
-
/* @__PURE__ */
|
|
49289
|
+
/* @__PURE__ */ U.jsx(
|
|
49264
49290
|
"div",
|
|
49265
49291
|
{
|
|
49266
49292
|
className: "absolute inset-0",
|
|
@@ -49272,7 +49298,7 @@ $$${u}$$
|
|
|
49272
49298
|
}
|
|
49273
49299
|
}
|
|
49274
49300
|
),
|
|
49275
|
-
/* @__PURE__ */
|
|
49301
|
+
/* @__PURE__ */ U.jsx(
|
|
49276
49302
|
"div",
|
|
49277
49303
|
{
|
|
49278
49304
|
className: "absolute inset-0",
|
|
@@ -49284,7 +49310,7 @@ $$${u}$$
|
|
|
49284
49310
|
}
|
|
49285
49311
|
}
|
|
49286
49312
|
),
|
|
49287
|
-
/* @__PURE__ */
|
|
49313
|
+
/* @__PURE__ */ U.jsxs(
|
|
49288
49314
|
"div",
|
|
49289
49315
|
{
|
|
49290
49316
|
className: "relative rounded-2xl transition-all duration-300 overflow-hidden input-modern shadow-soft",
|
|
@@ -49301,7 +49327,7 @@ $$${u}$$
|
|
|
49301
49327
|
outlineOffset: "0px"
|
|
49302
49328
|
},
|
|
49303
49329
|
children: [
|
|
49304
|
-
/* @__PURE__ */
|
|
49330
|
+
/* @__PURE__ */ U.jsx(
|
|
49305
49331
|
"div",
|
|
49306
49332
|
{
|
|
49307
49333
|
className: "absolute inset-0 rounded-2xl",
|
|
@@ -49313,7 +49339,7 @@ $$${u}$$
|
|
|
49313
49339
|
}
|
|
49314
49340
|
}
|
|
49315
49341
|
),
|
|
49316
|
-
/* @__PURE__ */
|
|
49342
|
+
/* @__PURE__ */ U.jsx(
|
|
49317
49343
|
"textarea",
|
|
49318
49344
|
{
|
|
49319
49345
|
ref: a,
|
|
@@ -49323,7 +49349,7 @@ $$${u}$$
|
|
|
49323
49349
|
onFocus: () => s(!0),
|
|
49324
49350
|
onBlur: () => s(!1),
|
|
49325
49351
|
placeholder: "Type your message...",
|
|
49326
|
-
maxLength:
|
|
49352
|
+
maxLength: we.MAX_MESSAGE_LENGTH,
|
|
49327
49353
|
id: "chat-message-input",
|
|
49328
49354
|
name: "chat-message-input",
|
|
49329
49355
|
className: "w-full resize-none relative",
|
|
@@ -49353,21 +49379,21 @@ $$${u}$$
|
|
|
49353
49379
|
}
|
|
49354
49380
|
}
|
|
49355
49381
|
),
|
|
49356
|
-
/* @__PURE__ */
|
|
49382
|
+
/* @__PURE__ */ U.jsxs(
|
|
49357
49383
|
"button",
|
|
49358
49384
|
{
|
|
49359
49385
|
onClick: c,
|
|
49360
49386
|
disabled: !e.trim() || r,
|
|
49361
49387
|
className: tr(
|
|
49362
|
-
"absolute right-
|
|
49388
|
+
"absolute right-3 top-1/2 transform -translate-y-1/2 rounded-xl shrink-0 overflow-hidden group",
|
|
49363
49389
|
e.trim() && !r ? "hover:scale-105 transition-all duration-300" : "cursor-not-allowed opacity-50"
|
|
49364
49390
|
),
|
|
49365
49391
|
style: {
|
|
49366
49392
|
background: e.trim() && !r ? `linear-gradient(135deg, ${n.secondary}, ${n.secondary}e6)` : "linear-gradient(135deg, #e5e7eb, #f3f4f6)",
|
|
49367
49393
|
color: e.trim() && !r ? "white" : "#9ca3af",
|
|
49368
|
-
width: "
|
|
49369
|
-
height: "
|
|
49370
|
-
minHeight: "
|
|
49394
|
+
width: "44px",
|
|
49395
|
+
height: "40px",
|
|
49396
|
+
minHeight: "40px",
|
|
49371
49397
|
padding: "0",
|
|
49372
49398
|
border: "none",
|
|
49373
49399
|
boxShadow: "none",
|
|
@@ -49377,11 +49403,12 @@ $$${u}$$
|
|
|
49377
49403
|
flexShrink: 0,
|
|
49378
49404
|
position: "absolute",
|
|
49379
49405
|
zIndex: 10,
|
|
49380
|
-
transform: "translateY(-50%)"
|
|
49406
|
+
transform: "translateY(-50%)",
|
|
49407
|
+
right: "12px"
|
|
49381
49408
|
},
|
|
49382
49409
|
"aria-label": "Send message",
|
|
49383
49410
|
children: [
|
|
49384
|
-
/* @__PURE__ */
|
|
49411
|
+
/* @__PURE__ */ U.jsx(
|
|
49385
49412
|
"div",
|
|
49386
49413
|
{
|
|
49387
49414
|
className: "absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100",
|
|
@@ -49390,16 +49417,25 @@ $$${u}$$
|
|
|
49390
49417
|
}
|
|
49391
49418
|
}
|
|
49392
49419
|
),
|
|
49393
|
-
/* @__PURE__ */
|
|
49420
|
+
/* @__PURE__ */ U.jsx("div", { style: {
|
|
49421
|
+
display: "flex",
|
|
49422
|
+
alignItems: "center",
|
|
49423
|
+
justifyContent: "center",
|
|
49424
|
+
width: "100%",
|
|
49425
|
+
height: "100%",
|
|
49426
|
+
position: "relative"
|
|
49427
|
+
}, children: /* @__PURE__ */ U.jsx(
|
|
49394
49428
|
Cr,
|
|
49395
49429
|
{
|
|
49396
|
-
size:
|
|
49430
|
+
size: we.BUTTON_SIZES.ICON_SIZES.SEND,
|
|
49397
49431
|
className: "transition-transform duration-200 drop-shadow-sm",
|
|
49398
49432
|
style: {
|
|
49399
|
-
strokeWidth: 2
|
|
49433
|
+
strokeWidth: 2,
|
|
49434
|
+
position: "relative",
|
|
49435
|
+
display: "block"
|
|
49400
49436
|
}
|
|
49401
49437
|
}
|
|
49402
|
-
)
|
|
49438
|
+
) })
|
|
49403
49439
|
]
|
|
49404
49440
|
}
|
|
49405
49441
|
)
|
|
@@ -49442,18 +49478,22 @@ $$${u}$$
|
|
|
49442
49478
|
Xe(() => {
|
|
49443
49479
|
e.apiUrl && e.apiKey && e.sessionId && cr(e.apiUrl, e.apiKey, e.sessionId);
|
|
49444
49480
|
}, [e.apiUrl, e.apiKey, e.sessionId]), Xe(() => {
|
|
49445
|
-
const $e = (
|
|
49446
|
-
te((
|
|
49447
|
-
var W0, P;
|
|
49481
|
+
const $e = (St) => {
|
|
49482
|
+
te((Et) => {
|
|
49483
|
+
var W0, P, W, oe;
|
|
49448
49484
|
return {
|
|
49449
|
-
...
|
|
49450
|
-
...
|
|
49485
|
+
...Et,
|
|
49486
|
+
...St.detail,
|
|
49451
49487
|
theme: {
|
|
49452
|
-
...
|
|
49453
|
-
...
|
|
49488
|
+
...Et.theme,
|
|
49489
|
+
...St.detail.theme,
|
|
49490
|
+
suggestedQuestions: {
|
|
49491
|
+
...(W0 = Et.theme) == null ? void 0 : W0.suggestedQuestions,
|
|
49492
|
+
...(P = St.detail.theme) == null ? void 0 : P.suggestedQuestions
|
|
49493
|
+
},
|
|
49454
49494
|
chatButton: {
|
|
49455
|
-
...(
|
|
49456
|
-
...(
|
|
49495
|
+
...(W = Et.theme) == null ? void 0 : W.chatButton,
|
|
49496
|
+
...(oe = St.detail.theme) == null ? void 0 : oe.chatButton
|
|
49457
49497
|
}
|
|
49458
49498
|
}
|
|
49459
49499
|
};
|
|
@@ -49469,19 +49509,19 @@ $$${u}$$
|
|
|
49469
49509
|
}));
|
|
49470
49510
|
}, [e]), Xe(() => {
|
|
49471
49511
|
cA({
|
|
49472
|
-
MAX_SUGGESTED_QUESTION_LENGTH: e.maxSuggestedQuestionLength ??
|
|
49473
|
-
MAX_SUGGESTED_QUESTION_QUERY_LENGTH: e.maxSuggestedQuestionQueryLength ??
|
|
49512
|
+
MAX_SUGGESTED_QUESTION_LENGTH: e.maxSuggestedQuestionLength ?? we.MAX_SUGGESTED_QUESTION_LENGTH,
|
|
49513
|
+
MAX_SUGGESTED_QUESTION_QUERY_LENGTH: e.maxSuggestedQuestionQueryLength ?? we.MAX_SUGGESTED_QUESTION_QUERY_LENGTH
|
|
49474
49514
|
});
|
|
49475
49515
|
}, [e.maxSuggestedQuestionLength, e.maxSuggestedQuestionQueryLength]);
|
|
49476
49516
|
const {
|
|
49477
49517
|
messages: ue,
|
|
49478
49518
|
isLoading: me,
|
|
49479
|
-
sendMessage:
|
|
49519
|
+
sendMessage: Le,
|
|
49480
49520
|
clearMessages: De
|
|
49481
49521
|
} = tS(), {
|
|
49482
49522
|
message: L,
|
|
49483
|
-
isFocused:
|
|
49484
|
-
inputRef:
|
|
49523
|
+
isFocused: ve,
|
|
49524
|
+
inputRef: be,
|
|
49485
49525
|
handleMessageChange: A,
|
|
49486
49526
|
handleKeyDown: je,
|
|
49487
49527
|
handleSendMessage: _e,
|
|
@@ -49489,7 +49529,7 @@ $$${u}$$
|
|
|
49489
49529
|
focusInput: Ze
|
|
49490
49530
|
} = dA({
|
|
49491
49531
|
onSendMessage: ($e) => {
|
|
49492
|
-
R.current = !0,
|
|
49532
|
+
R.current = !0, Le($e), setTimeout(() => F(!0), we.ANIMATIONS.TOGGLE_DELAY);
|
|
49493
49533
|
},
|
|
49494
49534
|
isLoading: me,
|
|
49495
49535
|
isOpen: t
|
|
@@ -49498,14 +49538,14 @@ $$${u}$$
|
|
|
49498
49538
|
ue.length === 0 && x();
|
|
49499
49539
|
}, [ue.length, x]);
|
|
49500
49540
|
const Pe = () => {
|
|
49501
|
-
r(!t), t || (a(!1), setTimeout(() => F(!0),
|
|
49502
|
-
}, Ge = async ($e,
|
|
49541
|
+
r(!t), t || (a(!1), setTimeout(() => F(!0), we.ANIMATIONS.TOGGLE_DELAY));
|
|
49542
|
+
}, Ge = async ($e, St) => {
|
|
49503
49543
|
try {
|
|
49504
|
-
await navigator.clipboard.writeText($e), s(
|
|
49544
|
+
await navigator.clipboard.writeText($e), s(St), setTimeout(() => {
|
|
49505
49545
|
s(null);
|
|
49506
|
-
},
|
|
49507
|
-
} catch (
|
|
49508
|
-
console.error("Failed to copy text: ",
|
|
49546
|
+
}, we.ANIMATIONS.COPY_FEEDBACK_DURATION);
|
|
49547
|
+
} catch (Et) {
|
|
49548
|
+
console.error("Failed to copy text: ", Et);
|
|
49509
49549
|
}
|
|
49510
49550
|
}, We = ($e) => $e.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
|
|
49511
49551
|
Xe(() => {
|
|
@@ -49629,16 +49669,16 @@ $$${u}$$
|
|
|
49629
49669
|
Tablet: "Tablet",
|
|
49630
49670
|
Laptop: "Laptop",
|
|
49631
49671
|
Activity: "Activity"
|
|
49632
|
-
}, g1 = ((Dt = Y.chatButton) == null ? void 0 : Dt.iconName) || "MessageSquare", o1 = kt[g1] || "MessageSquare",
|
|
49633
|
-
return /* @__PURE__ */
|
|
49634
|
-
t && /* @__PURE__ */
|
|
49672
|
+
}, g1 = ((Dt = Y.chatButton) == null ? void 0 : Dt.iconName) || "MessageSquare", o1 = kt[g1] || "MessageSquare", Xt = DI[o1] || Sr;
|
|
49673
|
+
return /* @__PURE__ */ U.jsxs("div", { className: "fixed bottom-8 right-8 z-50 flex flex-col items-end font-sans", style: { fontFamily: lA }, children: [
|
|
49674
|
+
t && /* @__PURE__ */ U.jsxs(
|
|
49635
49675
|
"div",
|
|
49636
49676
|
{
|
|
49637
49677
|
className: "mb-4 w-full rounded-2xl shadow-elegant flex flex-col overflow-hidden border-0 transition-all duration-300 ease-in-out animate-slide-in-up backdrop-blur-lg",
|
|
49638
49678
|
style: {
|
|
49639
49679
|
background: Y.input.background,
|
|
49640
|
-
height:
|
|
49641
|
-
maxHeight:
|
|
49680
|
+
height: we.WINDOW_DIMENSIONS.HEIGHT,
|
|
49681
|
+
maxHeight: we.WINDOW_DIMENSIONS.MAX_HEIGHT,
|
|
49642
49682
|
width: iA(B),
|
|
49643
49683
|
minWidth: oA(B),
|
|
49644
49684
|
backdropFilter: "blur(20px)",
|
|
@@ -49651,7 +49691,7 @@ $$${u}$$
|
|
|
49651
49691
|
`
|
|
49652
49692
|
},
|
|
49653
49693
|
children: [
|
|
49654
|
-
/* @__PURE__ */
|
|
49694
|
+
/* @__PURE__ */ U.jsxs(
|
|
49655
49695
|
"div",
|
|
49656
49696
|
{
|
|
49657
49697
|
className: "p-2.5 flex justify-between items-center shrink-0 relative overflow-hidden",
|
|
@@ -49660,7 +49700,7 @@ $$${u}$$
|
|
|
49660
49700
|
color: Y.text.inverse
|
|
49661
49701
|
},
|
|
49662
49702
|
children: [
|
|
49663
|
-
/* @__PURE__ */
|
|
49703
|
+
/* @__PURE__ */ U.jsx(
|
|
49664
49704
|
"div",
|
|
49665
49705
|
{
|
|
49666
49706
|
className: "absolute inset-0 opacity-20",
|
|
@@ -49669,9 +49709,9 @@ $$${u}$$
|
|
|
49669
49709
|
}
|
|
49670
49710
|
}
|
|
49671
49711
|
),
|
|
49672
|
-
/* @__PURE__ */
|
|
49673
|
-
/* @__PURE__ */
|
|
49674
|
-
/* @__PURE__ */
|
|
49712
|
+
/* @__PURE__ */ U.jsx("div", { className: "flex items-center relative z-10 w-full px-3", children: /* @__PURE__ */ U.jsx("div", { className: "max-w-lg mx-auto sm:max-w-2xl w-full", children: /* @__PURE__ */ U.jsx("h3", { className: "text-xl font-semibold tracking-tight text-left px-1", children: ie.header.title }) }) }),
|
|
49713
|
+
/* @__PURE__ */ U.jsxs("div", { className: "flex items-center space-x-2 relative z-10", children: [
|
|
49714
|
+
/* @__PURE__ */ U.jsx(
|
|
49675
49715
|
"button",
|
|
49676
49716
|
{
|
|
49677
49717
|
onClick: () => {
|
|
@@ -49681,24 +49721,24 @@ $$${u}$$
|
|
|
49681
49721
|
style: { color: Y.text.inverse },
|
|
49682
49722
|
"aria-label": "Clear conversation",
|
|
49683
49723
|
title: "Clear conversation",
|
|
49684
|
-
children: /* @__PURE__ */
|
|
49724
|
+
children: /* @__PURE__ */ U.jsx(Ir, { size: we.BUTTON_SIZES.ICON_SIZES.SEND, className: "drop-shadow-sm" })
|
|
49685
49725
|
}
|
|
49686
49726
|
),
|
|
49687
|
-
/* @__PURE__ */
|
|
49727
|
+
/* @__PURE__ */ U.jsx(
|
|
49688
49728
|
"button",
|
|
49689
49729
|
{
|
|
49690
49730
|
onClick: Pe,
|
|
49691
49731
|
className: "btn-modern transition-all duration-200 p-2 rounded-xl hover:bg-white hover:bg-opacity-20 animate-button-hover",
|
|
49692
49732
|
style: { color: Y.text.inverse },
|
|
49693
49733
|
"aria-label": "Minimize chat",
|
|
49694
|
-
children: /* @__PURE__ */
|
|
49734
|
+
children: /* @__PURE__ */ U.jsx(er, { size: we.BUTTON_SIZES.ICON_SIZES.MINIMIZE, className: "text-white opacity-90 drop-shadow-sm" })
|
|
49695
49735
|
}
|
|
49696
49736
|
)
|
|
49697
49737
|
] })
|
|
49698
49738
|
]
|
|
49699
49739
|
}
|
|
49700
49740
|
),
|
|
49701
|
-
/* @__PURE__ */
|
|
49741
|
+
/* @__PURE__ */ U.jsx(
|
|
49702
49742
|
WR,
|
|
49703
49743
|
{
|
|
49704
49744
|
messages: ue,
|
|
@@ -49713,12 +49753,12 @@ $$${u}$$
|
|
|
49713
49753
|
scrollToTop: X,
|
|
49714
49754
|
scrollToBottom: F,
|
|
49715
49755
|
handleScroll: V,
|
|
49716
|
-
sendMessage:
|
|
49756
|
+
sendMessage: Le,
|
|
49717
49757
|
focusInput: Ze,
|
|
49718
49758
|
copiedMessageId: c,
|
|
49719
49759
|
onCopyToClipboard: Ge,
|
|
49720
49760
|
onMarkMessageAnimated: k,
|
|
49721
|
-
inputRef:
|
|
49761
|
+
inputRef: be,
|
|
49722
49762
|
hasBeenAnimated: g,
|
|
49723
49763
|
typingProgressRef: u,
|
|
49724
49764
|
isTypingRef: d,
|
|
@@ -49729,14 +49769,14 @@ $$${u}$$
|
|
|
49729
49769
|
maxSuggestedQuestionQueryLength: e.maxSuggestedQuestionQueryLength
|
|
49730
49770
|
}
|
|
49731
49771
|
),
|
|
49732
|
-
/* @__PURE__ */
|
|
49772
|
+
/* @__PURE__ */ U.jsx(
|
|
49733
49773
|
$R,
|
|
49734
49774
|
{
|
|
49735
49775
|
message: L,
|
|
49736
|
-
isFocused:
|
|
49776
|
+
isFocused: ve,
|
|
49737
49777
|
isLoading: me,
|
|
49738
49778
|
theme: Y,
|
|
49739
|
-
inputRef:
|
|
49779
|
+
inputRef: be,
|
|
49740
49780
|
handleMessageChange: A,
|
|
49741
49781
|
handleKeyDown: je,
|
|
49742
49782
|
handleSendMessage: _e,
|
|
@@ -49746,9 +49786,9 @@ $$${u}$$
|
|
|
49746
49786
|
]
|
|
49747
49787
|
}
|
|
49748
49788
|
),
|
|
49749
|
-
/* @__PURE__ */
|
|
49750
|
-
n && !t && /* @__PURE__ */
|
|
49751
|
-
/* @__PURE__ */
|
|
49789
|
+
/* @__PURE__ */ U.jsxs("div", { className: "relative", children: [
|
|
49790
|
+
n && !t && /* @__PURE__ */ U.jsx("span", { className: "absolute -top-2 -right-2 h-5 w-5 bg-gradient-to-r from-orange-500 to-red-500 rounded-full animate-pulse-glow z-10 shadow-lg", children: /* @__PURE__ */ U.jsx("span", { className: "absolute inset-0 rounded-full bg-white opacity-30" }) }),
|
|
49791
|
+
/* @__PURE__ */ U.jsxs(
|
|
49752
49792
|
"button",
|
|
49753
49793
|
{
|
|
49754
49794
|
onClick: Pe,
|
|
@@ -49763,14 +49803,14 @@ $$${u}$$
|
|
|
49763
49803
|
background: t ? `linear-gradient(135deg, ${Y.primary}, ${Y.primary}e6)` : o ? ((mt = Y.chatButton) == null ? void 0 : mt.hoverBackground) || ((Qe = Y.chatButton) == null ? void 0 : Qe.background) || "#ffffff" : ((Lt = Y.chatButton) == null ? void 0 : Lt.background) || "#ffffff",
|
|
49764
49804
|
color: t ? void 0 : Y.text.primary,
|
|
49765
49805
|
border: t ? "none" : `1px solid ${((ft = Y.chatButton) == null ? void 0 : ft.borderColor) || "#e5e7eb"}`,
|
|
49766
|
-
width:
|
|
49767
|
-
height:
|
|
49806
|
+
width: we.BUTTON_SIZES.CHAT_BUTTON.width,
|
|
49807
|
+
height: we.BUTTON_SIZES.CHAT_BUTTON.height,
|
|
49768
49808
|
transform: o ? "translateY(-2px) scale(1.05)" : "translateY(0) scale(1)",
|
|
49769
49809
|
boxShadow: t ? "0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04)" : "0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"
|
|
49770
49810
|
},
|
|
49771
49811
|
"aria-label": t ? "Close chat" : "Open chat",
|
|
49772
49812
|
children: [
|
|
49773
|
-
/* @__PURE__ */
|
|
49813
|
+
/* @__PURE__ */ U.jsx(
|
|
49774
49814
|
"div",
|
|
49775
49815
|
{
|
|
49776
49816
|
className: tr(
|
|
@@ -49782,14 +49822,14 @@ $$${u}$$
|
|
|
49782
49822
|
}
|
|
49783
49823
|
}
|
|
49784
49824
|
),
|
|
49785
|
-
t ? /* @__PURE__ */
|
|
49825
|
+
t ? /* @__PURE__ */ U.jsx(
|
|
49786
49826
|
er,
|
|
49787
49827
|
{
|
|
49788
|
-
size:
|
|
49828
|
+
size: we.BUTTON_SIZES.ICON_SIZES.MINIMIZE,
|
|
49789
49829
|
className: "text-white opacity-90 drop-shadow-sm relative z-10"
|
|
49790
49830
|
}
|
|
49791
|
-
) : /* @__PURE__ */
|
|
49792
|
-
|
|
49831
|
+
) : /* @__PURE__ */ U.jsx(
|
|
49832
|
+
Xt,
|
|
49793
49833
|
{
|
|
49794
49834
|
width: 48,
|
|
49795
49835
|
height: 48,
|
|
@@ -49806,7 +49846,7 @@ $$${u}$$
|
|
|
49806
49846
|
}
|
|
49807
49847
|
)
|
|
49808
49848
|
] }),
|
|
49809
|
-
/* @__PURE__ */
|
|
49849
|
+
/* @__PURE__ */ U.jsx("style", { children: aA })
|
|
49810
49850
|
] });
|
|
49811
49851
|
};
|
|
49812
49852
|
let ar = null, ir = null, rt = null;
|