mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 10:33:22 +00:00
rm public
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
import re
|
||||
|
||||
def creole_to_markdown(creole_text):
|
||||
# Headings
|
||||
creole_text = re.sub(r'^\s*(=+)\s*(.*?)\s*(=+)\s*$', r'#\2', creole_text, flags=re.MULTILINE)
|
||||
|
||||
# Bold and italic text
|
||||
creole_text = re.sub(r'\*\*(.*?)\*\*', r'**\1**', creole_text) # Bold
|
||||
creole_text = re.sub(r'\'\'\'(.*?)\'\'\'', r'***\1***', creole_text) # Bold + Italic
|
||||
creole_text = re.sub(r'\'\'(.*?)\'\'', r'*\1*', creole_text) # Italic
|
||||
|
||||
# Unordered lists
|
||||
creole_text = re.sub(r'^\s*\*\s+(.*?)(?=\n\S)', r'- \1', creole_text, flags=re.MULTILINE)
|
||||
|
||||
# Ordered lists
|
||||
creole_text = re.sub(r'^\s*#\s+(.*?)(?=\n\S)', r'1. \1', creole_text, flags=re.MULTILINE)
|
||||
|
||||
# Links
|
||||
creole_text = re.sub(r'\[\[(.*?)\|?(.*?)\]\]', r'[\2](\1)', creole_text) # Internal links
|
||||
creole_text = re.sub(r'\[(.*?)\]', r'[\1]', creole_text) # External links
|
||||
|
||||
# Convert horizontal rules
|
||||
# creole_text = re.sub(r'^\s*-{4,}\s*$', r'---', creole_text, flags=re.MULTILINE)
|
||||
|
||||
return creole_text.strip()
|
||||
|
||||
# Example usage
|
||||
if __name__ == "__main__":
|
||||
input_file = 'input.creole'
|
||||
output_file = 'output.md'
|
||||
|
||||
with open(input_file, 'r') as f:
|
||||
creole_content = f.read()
|
||||
|
||||
markdown_content = creole_to_markdown(creole_content)
|
||||
|
||||
with open(output_file, 'w') as f:
|
||||
f.write(markdown_content)
|
||||
@@ -1,335 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
e,
|
||||
i,
|
||||
o = {
|
||||
62: function (t, e, i) {
|
||||
var o,
|
||||
s =
|
||||
(this && this.__extends) ||
|
||||
((o = function (t, e) {
|
||||
return (
|
||||
(o =
|
||||
Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array &&
|
||||
function (t, e) {
|
||||
t.__proto__ = e;
|
||||
}) ||
|
||||
function (t, e) {
|
||||
for (var i in e)
|
||||
Object.prototype.hasOwnProperty.call(e, i) &&
|
||||
(t[i] = e[i]);
|
||||
}),
|
||||
o(t, e)
|
||||
);
|
||||
}),
|
||||
function (t, e) {
|
||||
if ('function' != typeof e && null !== e)
|
||||
throw new TypeError(
|
||||
'Class extends value ' +
|
||||
String(e) +
|
||||
' is not a constructor or null',
|
||||
);
|
||||
function i() {
|
||||
this.constructor = t;
|
||||
}
|
||||
o(t, e),
|
||||
(t.prototype =
|
||||
null === e
|
||||
? Object.create(e)
|
||||
: ((i.prototype = e.prototype), new i()));
|
||||
}),
|
||||
n =
|
||||
(this && this.__assign) ||
|
||||
function () {
|
||||
return (
|
||||
(n =
|
||||
Object.assign ||
|
||||
function (t) {
|
||||
for (var e, i = 1, o = arguments.length; i < o; i++)
|
||||
for (var s in (e = arguments[i]))
|
||||
Object.prototype.hasOwnProperty.call(e, s) &&
|
||||
(t[s] = e[s]);
|
||||
return t;
|
||||
}),
|
||||
n.apply(this, arguments)
|
||||
);
|
||||
},
|
||||
r =
|
||||
(this && this.__read) ||
|
||||
function (t, e) {
|
||||
var i = 'function' == typeof Symbol && t[Symbol.iterator];
|
||||
if (!i) return t;
|
||||
var o,
|
||||
s,
|
||||
n = i.call(t),
|
||||
r = [];
|
||||
try {
|
||||
for (; (void 0 === e || e-- > 0) && !(o = n.next()).done; )
|
||||
r.push(o.value);
|
||||
} catch (t) {
|
||||
s = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
o && !o.done && (i = n.return) && i.call(n);
|
||||
} finally {
|
||||
if (s) throw s.error;
|
||||
}
|
||||
}
|
||||
return r;
|
||||
},
|
||||
a =
|
||||
(this && this.__spreadArray) ||
|
||||
function (t, e, i) {
|
||||
if (i || 2 === arguments.length)
|
||||
for (var o, s = 0, n = e.length; s < n; s++)
|
||||
(!o && s in e) ||
|
||||
(o || (o = Array.prototype.slice.call(e, 0, s)),
|
||||
(o[s] = e[s]));
|
||||
return t.concat(o || Array.prototype.slice.call(e));
|
||||
},
|
||||
l =
|
||||
(this && this.__values) ||
|
||||
function (t) {
|
||||
var e = 'function' == typeof Symbol && Symbol.iterator,
|
||||
i = e && t[e],
|
||||
o = 0;
|
||||
if (i) return i.call(t);
|
||||
if (t && 'number' == typeof t.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
t && o >= t.length && (t = void 0),
|
||||
{ value: t && t[o++], done: !t }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
e ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.AssistiveMmlHandler =
|
||||
e.AssistiveMmlMathDocumentMixin =
|
||||
e.AssistiveMmlMathItemMixin =
|
||||
e.LimitedMmlVisitor =
|
||||
void 0);
|
||||
var p = i(769),
|
||||
c = i(433),
|
||||
u = i(77),
|
||||
h = (function (t) {
|
||||
function e() {
|
||||
return (null !== t && t.apply(this, arguments)) || this;
|
||||
}
|
||||
return (
|
||||
s(e, t),
|
||||
(e.prototype.getAttributes = function (e) {
|
||||
return t.prototype.getAttributes
|
||||
.call(this, e)
|
||||
.replace(/ ?id=".*?"/, '');
|
||||
}),
|
||||
e
|
||||
);
|
||||
})(c.SerializedMmlVisitor);
|
||||
function m(t) {
|
||||
return (function (t) {
|
||||
function e() {
|
||||
return (null !== t && t.apply(this, arguments)) || this;
|
||||
}
|
||||
return (
|
||||
s(e, t),
|
||||
(e.prototype.assistiveMml = function (t, e) {
|
||||
if (
|
||||
(void 0 === e && (e = !1),
|
||||
!(this.state() >= p.STATE.ASSISTIVEMML))
|
||||
) {
|
||||
if (!this.isEscaped && (t.options.enableAssistiveMml || e)) {
|
||||
var i = t.adaptor,
|
||||
o = t
|
||||
.toMML(this.root)
|
||||
.replace(/\n */g, '')
|
||||
.replace(/<!--.*?-->/g, ''),
|
||||
s = i.firstChild(i.body(i.parse(o, 'text/html'))),
|
||||
n = i.node(
|
||||
'mjx-assistive-mml',
|
||||
{
|
||||
unselectable: 'on',
|
||||
display: this.display ? 'block' : 'inline',
|
||||
},
|
||||
[s],
|
||||
);
|
||||
i.setAttribute(
|
||||
i.firstChild(this.typesetRoot),
|
||||
'aria-hidden',
|
||||
'true',
|
||||
),
|
||||
i.setStyle(this.typesetRoot, 'position', 'relative'),
|
||||
i.append(this.typesetRoot, n);
|
||||
}
|
||||
this.state(p.STATE.ASSISTIVEMML);
|
||||
}
|
||||
}),
|
||||
e
|
||||
);
|
||||
})(t);
|
||||
}
|
||||
function M(t) {
|
||||
var e;
|
||||
return (
|
||||
(e = (function (t) {
|
||||
function e() {
|
||||
for (var e = [], i = 0; i < arguments.length; i++)
|
||||
e[i] = arguments[i];
|
||||
var o = t.apply(this, a([], r(e), !1)) || this,
|
||||
s = o.constructor,
|
||||
n = s.ProcessBits;
|
||||
return (
|
||||
n.has('assistive-mml') || n.allocate('assistive-mml'),
|
||||
(o.visitor = new h(o.mmlFactory)),
|
||||
(o.options.MathItem = m(o.options.MathItem)),
|
||||
'addStyles' in o && o.addStyles(s.assistiveStyles),
|
||||
o
|
||||
);
|
||||
}
|
||||
return (
|
||||
s(e, t),
|
||||
(e.prototype.toMML = function (t) {
|
||||
return this.visitor.visitTree(t);
|
||||
}),
|
||||
(e.prototype.assistiveMml = function () {
|
||||
var t, e;
|
||||
if (!this.processed.isSet('assistive-mml')) {
|
||||
try {
|
||||
for (
|
||||
var i = l(this.math), o = i.next();
|
||||
!o.done;
|
||||
o = i.next()
|
||||
) {
|
||||
o.value.assistiveMml(this);
|
||||
}
|
||||
} catch (e) {
|
||||
t = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
o && !o.done && (e = i.return) && e.call(i);
|
||||
} finally {
|
||||
if (t) throw t.error;
|
||||
}
|
||||
}
|
||||
this.processed.set('assistive-mml');
|
||||
}
|
||||
return this;
|
||||
}),
|
||||
(e.prototype.state = function (e, i) {
|
||||
return (
|
||||
void 0 === i && (i = !1),
|
||||
t.prototype.state.call(this, e, i),
|
||||
e < p.STATE.ASSISTIVEMML &&
|
||||
this.processed.clear('assistive-mml'),
|
||||
this
|
||||
);
|
||||
}),
|
||||
e
|
||||
);
|
||||
})(t)),
|
||||
(e.OPTIONS = n(n({}, t.OPTIONS), {
|
||||
enableAssistiveMml: !0,
|
||||
renderActions: (0, u.expandable)(
|
||||
n(n({}, t.OPTIONS.renderActions), {
|
||||
assistiveMml: [p.STATE.ASSISTIVEMML],
|
||||
}),
|
||||
),
|
||||
})),
|
||||
(e.assistiveStyles = {
|
||||
'mjx-assistive-mml': {
|
||||
position: 'absolute !important',
|
||||
top: '0px',
|
||||
left: '0px',
|
||||
clip: 'rect(1px, 1px, 1px, 1px)',
|
||||
padding: '1px 0px 0px 0px !important',
|
||||
border: '0px !important',
|
||||
display: 'block !important',
|
||||
width: 'auto !important',
|
||||
overflow: 'hidden !important',
|
||||
'-webkit-touch-callout': 'none',
|
||||
'-webkit-user-select': 'none',
|
||||
'-khtml-user-select': 'none',
|
||||
'-moz-user-select': 'none',
|
||||
'-ms-user-select': 'none',
|
||||
'user-select': 'none',
|
||||
},
|
||||
'mjx-assistive-mml[display="block"]': { width: '100% !important' },
|
||||
}),
|
||||
e
|
||||
);
|
||||
}
|
||||
(e.LimitedMmlVisitor = h),
|
||||
(0, p.newState)('ASSISTIVEMML', 153),
|
||||
(e.AssistiveMmlMathItemMixin = m),
|
||||
(e.AssistiveMmlMathDocumentMixin = M),
|
||||
(e.AssistiveMmlHandler = function (t) {
|
||||
return (t.documentClass = M(t.documentClass)), t;
|
||||
});
|
||||
},
|
||||
306: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
723: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
769: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.protoItem = MathJax._.core.MathItem.protoItem),
|
||||
(e.AbstractMathItem = MathJax._.core.MathItem.AbstractMathItem),
|
||||
(e.STATE = MathJax._.core.MathItem.STATE),
|
||||
(e.newState = MathJax._.core.MathItem.newState);
|
||||
},
|
||||
433: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.DATAMJX = MathJax._.core.MmlTree.SerializedMmlVisitor.DATAMJX),
|
||||
(e.toEntity = MathJax._.core.MmlTree.SerializedMmlVisitor.toEntity),
|
||||
(e.SerializedMmlVisitor =
|
||||
MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor);
|
||||
},
|
||||
77: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.isObject = MathJax._.util.Options.isObject),
|
||||
(e.APPEND = MathJax._.util.Options.APPEND),
|
||||
(e.REMOVE = MathJax._.util.Options.REMOVE),
|
||||
(e.OPTIONS = MathJax._.util.Options.OPTIONS),
|
||||
(e.Expandable = MathJax._.util.Options.Expandable),
|
||||
(e.expandable = MathJax._.util.Options.expandable),
|
||||
(e.makeArray = MathJax._.util.Options.makeArray),
|
||||
(e.keys = MathJax._.util.Options.keys),
|
||||
(e.copy = MathJax._.util.Options.copy),
|
||||
(e.insert = MathJax._.util.Options.insert),
|
||||
(e.defaultOptions = MathJax._.util.Options.defaultOptions),
|
||||
(e.userOptions = MathJax._.util.Options.userOptions),
|
||||
(e.selectOptions = MathJax._.util.Options.selectOptions),
|
||||
(e.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys),
|
||||
(e.separateOptions = MathJax._.util.Options.separateOptions),
|
||||
(e.lookup = MathJax._.util.Options.lookup);
|
||||
},
|
||||
},
|
||||
s = {};
|
||||
function n(t) {
|
||||
var e = s[t];
|
||||
if (void 0 !== e) return e.exports;
|
||||
var i = (s[t] = { exports: {} });
|
||||
return o[t].call(i.exports, i, i.exports, n), i.exports;
|
||||
}
|
||||
(t = n(723)),
|
||||
(e = n(306)),
|
||||
(i = n(62)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('a11y/assistive-mml', e.q, 'a11y'),
|
||||
(0, t.r8)({ _: { a11y: { 'assistive-mml': i } } }),
|
||||
MathJax.startup &&
|
||||
MathJax.startup.extendHandler(function (t) {
|
||||
return (0, i.AssistiveMmlHandler)(t);
|
||||
});
|
||||
})();
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,434 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t = {
|
||||
433: function (t, e, r) {
|
||||
var n,
|
||||
a =
|
||||
(this && this.__extends) ||
|
||||
((n = function (t, e) {
|
||||
return (
|
||||
(n =
|
||||
Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array &&
|
||||
function (t, e) {
|
||||
t.__proto__ = e;
|
||||
}) ||
|
||||
function (t, e) {
|
||||
for (var r in e)
|
||||
Object.prototype.hasOwnProperty.call(e, r) &&
|
||||
(t[r] = e[r]);
|
||||
}),
|
||||
n(t, e)
|
||||
);
|
||||
}),
|
||||
function (t, e) {
|
||||
if ('function' != typeof e && null !== e)
|
||||
throw new TypeError(
|
||||
'Class extends value ' +
|
||||
String(e) +
|
||||
' is not a constructor or null',
|
||||
);
|
||||
function r() {
|
||||
this.constructor = t;
|
||||
}
|
||||
n(t, e),
|
||||
(t.prototype =
|
||||
null === e
|
||||
? Object.create(e)
|
||||
: ((r.prototype = e.prototype), new r()));
|
||||
}),
|
||||
i =
|
||||
(this && this.__assign) ||
|
||||
function () {
|
||||
return (
|
||||
(i =
|
||||
Object.assign ||
|
||||
function (t) {
|
||||
for (var e, r = 1, n = arguments.length; r < n; r++)
|
||||
for (var a in (e = arguments[r]))
|
||||
Object.prototype.hasOwnProperty.call(e, a) &&
|
||||
(t[a] = e[a]);
|
||||
return t;
|
||||
}),
|
||||
i.apply(this, arguments)
|
||||
);
|
||||
},
|
||||
o =
|
||||
(this && this.__values) ||
|
||||
function (t) {
|
||||
var e = 'function' == typeof Symbol && Symbol.iterator,
|
||||
r = e && t[e],
|
||||
n = 0;
|
||||
if (r) return r.call(t);
|
||||
if (t && 'number' == typeof t.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
t && n >= t.length && (t = void 0),
|
||||
{ value: t && t[n++], done: !t }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
e ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
},
|
||||
s =
|
||||
(this && this.__read) ||
|
||||
function (t, e) {
|
||||
var r = 'function' == typeof Symbol && t[Symbol.iterator];
|
||||
if (!r) return t;
|
||||
var n,
|
||||
a,
|
||||
i = r.call(t),
|
||||
o = [];
|
||||
try {
|
||||
for (; (void 0 === e || e-- > 0) && !(n = i.next()).done; )
|
||||
o.push(n.value);
|
||||
} catch (t) {
|
||||
a = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
n && !n.done && (r = i.return) && r.call(i);
|
||||
} finally {
|
||||
if (a) throw a.error;
|
||||
}
|
||||
}
|
||||
return o;
|
||||
},
|
||||
c =
|
||||
(this && this.__spreadArray) ||
|
||||
function (t, e, r) {
|
||||
if (r || 2 === arguments.length)
|
||||
for (var n, a = 0, i = e.length; a < i; a++)
|
||||
(!n && a in e) ||
|
||||
(n || (n = Array.prototype.slice.call(e, 0, a)),
|
||||
(n[a] = e[a]));
|
||||
return t.concat(n || Array.prototype.slice.call(e));
|
||||
},
|
||||
l =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.EnrichHandler =
|
||||
e.EnrichedMathDocumentMixin =
|
||||
e.EnrichedMathItemMixin =
|
||||
void 0);
|
||||
var h = r(184),
|
||||
u = r(769),
|
||||
p = r(758),
|
||||
f = r(77),
|
||||
d = l(r(712)),
|
||||
y = 'none';
|
||||
function M(t, e, r) {
|
||||
return (function (t) {
|
||||
function n() {
|
||||
return (null !== t && t.apply(this, arguments)) || this;
|
||||
}
|
||||
return (
|
||||
a(n, t),
|
||||
(n.prototype.serializeMml = function (t) {
|
||||
if ('outerHTML' in t) return t.outerHTML;
|
||||
if (
|
||||
'undefined' != typeof Element &&
|
||||
'undefined' != typeof window &&
|
||||
t instanceof Element
|
||||
) {
|
||||
var e = window.document.createElement('div');
|
||||
return e.appendChild(t), e.innerHTML;
|
||||
}
|
||||
return t.toString();
|
||||
}),
|
||||
(n.prototype.enrich = function (t, n) {
|
||||
if (
|
||||
(void 0 === n && (n = !1), !(this.state() >= u.STATE.ENRICHED))
|
||||
) {
|
||||
if (!this.isEscaped && (t.options.enableEnrichment || n)) {
|
||||
t.options.sre.speech !== y &&
|
||||
((y = t.options.sre.speech),
|
||||
h.mathjax.retryAfter(
|
||||
d.default
|
||||
.setupEngine(t.options.sre)
|
||||
.then(function () {
|
||||
return d.default.sreReady();
|
||||
}),
|
||||
));
|
||||
var a = new t.options.MathItem('', e);
|
||||
try {
|
||||
var i = (this.inputData.originalMml = r(this.root));
|
||||
(a.math = this.serializeMml(d.default.toEnriched(i))),
|
||||
(a.display = this.display),
|
||||
a.compile(t),
|
||||
(this.root = a.root),
|
||||
(this.inputData.enrichedMml = a.math);
|
||||
} catch (e) {
|
||||
t.options.enrichError(t, this, e);
|
||||
}
|
||||
}
|
||||
this.state(u.STATE.ENRICHED);
|
||||
}
|
||||
}),
|
||||
(n.prototype.attachSpeech = function (t) {
|
||||
var e, r;
|
||||
if (!(this.state() >= u.STATE.ATTACHSPEECH)) {
|
||||
var n =
|
||||
this.root.attributes.get('aria-label') ||
|
||||
this.getSpeech(this.root);
|
||||
if (n) {
|
||||
var a = t.adaptor,
|
||||
i = this.typesetRoot;
|
||||
a.setAttribute(i, 'aria-label', n);
|
||||
try {
|
||||
for (
|
||||
var s = o(a.childNodes(i)), c = s.next();
|
||||
!c.done;
|
||||
c = s.next()
|
||||
) {
|
||||
var l = c.value;
|
||||
a.setAttribute(l, 'aria-hidden', 'true');
|
||||
}
|
||||
} catch (t) {
|
||||
e = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
c && !c.done && (r = s.return) && r.call(s);
|
||||
} finally {
|
||||
if (e) throw e.error;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.state(u.STATE.ATTACHSPEECH);
|
||||
}
|
||||
}),
|
||||
(n.prototype.getSpeech = function (t) {
|
||||
var e,
|
||||
r,
|
||||
n = t.attributes;
|
||||
if (!n) return '';
|
||||
var a = n.getExplicit('data-semantic-speech');
|
||||
if (!n.getExplicit('data-semantic-parent') && a) return a;
|
||||
try {
|
||||
for (
|
||||
var i = o(t.childNodes), s = i.next();
|
||||
!s.done;
|
||||
s = i.next()
|
||||
) {
|
||||
var c = s.value,
|
||||
l = this.getSpeech(c);
|
||||
if (null != l) return l;
|
||||
}
|
||||
} catch (t) {
|
||||
e = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
s && !s.done && (r = i.return) && r.call(i);
|
||||
} finally {
|
||||
if (e) throw e.error;
|
||||
}
|
||||
}
|
||||
return '';
|
||||
}),
|
||||
n
|
||||
);
|
||||
})(t);
|
||||
}
|
||||
function m(t, e) {
|
||||
var r;
|
||||
return (
|
||||
(r = (function (t) {
|
||||
function r() {
|
||||
for (var r = [], n = 0; n < arguments.length; n++)
|
||||
r[n] = arguments[n];
|
||||
var a = t.apply(this, c([], s(r), !1)) || this;
|
||||
e.setMmlFactory(a.mmlFactory);
|
||||
var i = a.constructor.ProcessBits;
|
||||
i.has('enriched') ||
|
||||
(i.allocate('enriched'), i.allocate('attach-speech'));
|
||||
var o = new p.SerializedMmlVisitor(a.mmlFactory),
|
||||
l = function (t) {
|
||||
return o.visitTree(t);
|
||||
};
|
||||
return (a.options.MathItem = M(a.options.MathItem, e, l)), a;
|
||||
}
|
||||
return (
|
||||
a(r, t),
|
||||
(r.prototype.attachSpeech = function () {
|
||||
var t, e;
|
||||
if (!this.processed.isSet('attach-speech')) {
|
||||
try {
|
||||
for (
|
||||
var r = o(this.math), n = r.next();
|
||||
!n.done;
|
||||
n = r.next()
|
||||
) {
|
||||
n.value.attachSpeech(this);
|
||||
}
|
||||
} catch (e) {
|
||||
t = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
n && !n.done && (e = r.return) && e.call(r);
|
||||
} finally {
|
||||
if (t) throw t.error;
|
||||
}
|
||||
}
|
||||
this.processed.set('attach-speech');
|
||||
}
|
||||
return this;
|
||||
}),
|
||||
(r.prototype.enrich = function () {
|
||||
var t, e;
|
||||
if (!this.processed.isSet('enriched')) {
|
||||
if (this.options.enableEnrichment)
|
||||
try {
|
||||
for (
|
||||
var r = o(this.math), n = r.next();
|
||||
!n.done;
|
||||
n = r.next()
|
||||
) {
|
||||
n.value.enrich(this);
|
||||
}
|
||||
} catch (e) {
|
||||
t = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
n && !n.done && (e = r.return) && e.call(r);
|
||||
} finally {
|
||||
if (t) throw t.error;
|
||||
}
|
||||
}
|
||||
this.processed.set('enriched');
|
||||
}
|
||||
return this;
|
||||
}),
|
||||
(r.prototype.enrichError = function (t, e, r) {
|
||||
console.warn('Enrichment error:', r);
|
||||
}),
|
||||
(r.prototype.state = function (e, r) {
|
||||
return (
|
||||
void 0 === r && (r = !1),
|
||||
t.prototype.state.call(this, e, r),
|
||||
e < u.STATE.ENRICHED && this.processed.clear('enriched'),
|
||||
this
|
||||
);
|
||||
}),
|
||||
r
|
||||
);
|
||||
})(t)),
|
||||
(r.OPTIONS = i(i({}, t.OPTIONS), {
|
||||
enableEnrichment: !0,
|
||||
enrichError: function (t, e, r) {
|
||||
return t.enrichError(t, e, r);
|
||||
},
|
||||
renderActions: (0, f.expandable)(
|
||||
i(i({}, t.OPTIONS.renderActions), {
|
||||
enrich: [u.STATE.ENRICHED],
|
||||
attachSpeech: [u.STATE.ATTACHSPEECH],
|
||||
}),
|
||||
),
|
||||
sre: (0, f.expandable)({
|
||||
speech: 'none',
|
||||
domain: 'mathspeak',
|
||||
style: 'default',
|
||||
locale: 'en',
|
||||
}),
|
||||
})),
|
||||
r
|
||||
);
|
||||
}
|
||||
(0, u.newState)('ENRICHED', 30),
|
||||
(0, u.newState)('ATTACHSPEECH', 155),
|
||||
(e.EnrichedMathItemMixin = M),
|
||||
(e.EnrichedMathDocumentMixin = m),
|
||||
(e.EnrichHandler = function (t, e) {
|
||||
return (
|
||||
e.setAdaptor(t.adaptor), (t.documentClass = m(t.documentClass, e)), t
|
||||
);
|
||||
});
|
||||
},
|
||||
306: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
712: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Sre = MathJax._.a11y.sre.Sre),
|
||||
(e.sreReady = MathJax._.a11y.sre.sreReady),
|
||||
(e.default = MathJax._.a11y.sre.default);
|
||||
},
|
||||
723: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
(e.PV = MathJax._.components.global.combineDefaults),
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
769: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.protoItem = MathJax._.core.MathItem.protoItem),
|
||||
(e.AbstractMathItem = MathJax._.core.MathItem.AbstractMathItem),
|
||||
(e.STATE = MathJax._.core.MathItem.STATE),
|
||||
(e.newState = MathJax._.core.MathItem.newState);
|
||||
},
|
||||
758: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.DATAMJX = MathJax._.core.MmlTree.SerializedMmlVisitor.DATAMJX),
|
||||
(e.toEntity = MathJax._.core.MmlTree.SerializedMmlVisitor.toEntity),
|
||||
(e.SerializedMmlVisitor =
|
||||
MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor);
|
||||
},
|
||||
184: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.mathjax = MathJax._.mathjax.mathjax);
|
||||
},
|
||||
77: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.isObject = MathJax._.util.Options.isObject),
|
||||
(e.APPEND = MathJax._.util.Options.APPEND),
|
||||
(e.REMOVE = MathJax._.util.Options.REMOVE),
|
||||
(e.OPTIONS = MathJax._.util.Options.OPTIONS),
|
||||
(e.Expandable = MathJax._.util.Options.Expandable),
|
||||
(e.expandable = MathJax._.util.Options.expandable),
|
||||
(e.makeArray = MathJax._.util.Options.makeArray),
|
||||
(e.keys = MathJax._.util.Options.keys),
|
||||
(e.copy = MathJax._.util.Options.copy),
|
||||
(e.insert = MathJax._.util.Options.insert),
|
||||
(e.defaultOptions = MathJax._.util.Options.defaultOptions),
|
||||
(e.userOptions = MathJax._.util.Options.userOptions),
|
||||
(e.selectOptions = MathJax._.util.Options.selectOptions),
|
||||
(e.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys),
|
||||
(e.separateOptions = MathJax._.util.Options.separateOptions),
|
||||
(e.lookup = MathJax._.util.Options.lookup);
|
||||
},
|
||||
475: function (t, e) {
|
||||
e.K = MathJax._.input.mathml_ts.MathML;
|
||||
},
|
||||
},
|
||||
e = {};
|
||||
function r(n) {
|
||||
var a = e[n];
|
||||
if (void 0 !== a) return a.exports;
|
||||
var i = (e[n] = { exports: {} });
|
||||
return t[n].call(i.exports, i, i.exports, r), i.exports;
|
||||
}
|
||||
!(function () {
|
||||
var t = r(723),
|
||||
e = r(306),
|
||||
n = r(433);
|
||||
MathJax.loader && MathJax.loader.checkVersion('a11y/semantic-enrich', e.q, 'a11y'),
|
||||
(0, t.r8)({ _: { a11y: { 'semantic-enrich': n } } });
|
||||
var a = r(712),
|
||||
i = r(475);
|
||||
MathJax.loader &&
|
||||
(0, t.PV)(MathJax.config.loader, 'a11y/semantic-enrich', {
|
||||
checkReady: function () {
|
||||
return a.default.sreReady();
|
||||
},
|
||||
}),
|
||||
MathJax.startup &&
|
||||
MathJax.startup.extendHandler(function (t) {
|
||||
return (0, n.EnrichHandler)(t, new i.K());
|
||||
});
|
||||
})();
|
||||
})();
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,823 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
e,
|
||||
r,
|
||||
a,
|
||||
o,
|
||||
i = {
|
||||
306: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
236: function (t, e, r) {
|
||||
var a,
|
||||
o =
|
||||
(this && this.__extends) ||
|
||||
((a = function (t, e) {
|
||||
return (
|
||||
(a =
|
||||
Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array &&
|
||||
function (t, e) {
|
||||
t.__proto__ = e;
|
||||
}) ||
|
||||
function (t, e) {
|
||||
for (var r in e)
|
||||
Object.prototype.hasOwnProperty.call(e, r) &&
|
||||
(t[r] = e[r]);
|
||||
}),
|
||||
a(t, e)
|
||||
);
|
||||
}),
|
||||
function (t, e) {
|
||||
if ('function' != typeof e && null !== e)
|
||||
throw new TypeError(
|
||||
'Class extends value ' +
|
||||
String(e) +
|
||||
' is not a constructor or null',
|
||||
);
|
||||
function r() {
|
||||
this.constructor = t;
|
||||
}
|
||||
a(t, e),
|
||||
(t.prototype =
|
||||
null === e
|
||||
? Object.create(e)
|
||||
: ((r.prototype = e.prototype), new r()));
|
||||
}),
|
||||
i =
|
||||
(this && this.__read) ||
|
||||
function (t, e) {
|
||||
var r = 'function' == typeof Symbol && t[Symbol.iterator];
|
||||
if (!r) return t;
|
||||
var a,
|
||||
o,
|
||||
i = r.call(t),
|
||||
n = [];
|
||||
try {
|
||||
for (; (void 0 === e || e-- > 0) && !(a = i.next()).done; )
|
||||
n.push(a.value);
|
||||
} catch (t) {
|
||||
o = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
a && !a.done && (r = i.return) && r.call(i);
|
||||
} finally {
|
||||
if (o) throw o.error;
|
||||
}
|
||||
}
|
||||
return n;
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }), (e.MathML = void 0);
|
||||
var n = r(309),
|
||||
s = r(77),
|
||||
l = r(898),
|
||||
c = r(794),
|
||||
h = r(332),
|
||||
p = (function (t) {
|
||||
function e(e) {
|
||||
void 0 === e && (e = {});
|
||||
var r = this,
|
||||
a = i(
|
||||
(0, s.separateOptions)(
|
||||
e,
|
||||
c.FindMathML.OPTIONS,
|
||||
h.MathMLCompile.OPTIONS,
|
||||
),
|
||||
3,
|
||||
),
|
||||
o = a[0],
|
||||
n = a[1],
|
||||
p = a[2];
|
||||
return (
|
||||
((r = t.call(this, o) || this).findMathML =
|
||||
r.options.FindMathML || new c.FindMathML(n)),
|
||||
(r.mathml = r.options.MathMLCompile || new h.MathMLCompile(p)),
|
||||
(r.mmlFilters = new l.FunctionList()),
|
||||
r
|
||||
);
|
||||
}
|
||||
return (
|
||||
o(e, t),
|
||||
(e.prototype.setAdaptor = function (e) {
|
||||
t.prototype.setAdaptor.call(this, e),
|
||||
(this.findMathML.adaptor = e),
|
||||
(this.mathml.adaptor = e);
|
||||
}),
|
||||
(e.prototype.setMmlFactory = function (e) {
|
||||
t.prototype.setMmlFactory.call(this, e),
|
||||
this.mathml.setMmlFactory(e);
|
||||
}),
|
||||
Object.defineProperty(e.prototype, 'processStrings', {
|
||||
get: function () {
|
||||
return !1;
|
||||
},
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
}),
|
||||
(e.prototype.compile = function (t, e) {
|
||||
var r = t.start.node;
|
||||
if (
|
||||
!r ||
|
||||
!t.end.node ||
|
||||
this.options.forceReparse ||
|
||||
'#text' === this.adaptor.kind(r)
|
||||
) {
|
||||
var a = this.executeFilters(
|
||||
this.preFilters,
|
||||
t,
|
||||
e,
|
||||
(t.math || '<math></math>').trim(),
|
||||
),
|
||||
o = this.checkForErrors(
|
||||
this.adaptor.parse(a, 'text/' + this.options.parseAs),
|
||||
),
|
||||
i = this.adaptor.body(o);
|
||||
1 !== this.adaptor.childNodes(i).length &&
|
||||
this.error('MathML must consist of a single element'),
|
||||
(r = this.adaptor.remove(this.adaptor.firstChild(i))),
|
||||
'math' !== this.adaptor.kind(r).replace(/^[a-z]+:/, '') &&
|
||||
this.error(
|
||||
'MathML must be formed by a <math> element, not <' +
|
||||
this.adaptor.kind(r) +
|
||||
'>',
|
||||
);
|
||||
}
|
||||
return (
|
||||
(r = this.executeFilters(this.mmlFilters, t, e, r)),
|
||||
this.executeFilters(
|
||||
this.postFilters,
|
||||
t,
|
||||
e,
|
||||
this.mathml.compile(r),
|
||||
)
|
||||
);
|
||||
}),
|
||||
(e.prototype.checkForErrors = function (t) {
|
||||
var e = this.adaptor.tags(this.adaptor.body(t), 'parsererror')[0];
|
||||
return (
|
||||
e &&
|
||||
('' === this.adaptor.textContent(e) &&
|
||||
this.error('Error processing MathML'),
|
||||
this.options.parseError.call(this, e)),
|
||||
t
|
||||
);
|
||||
}),
|
||||
(e.prototype.error = function (t) {
|
||||
throw new Error(t);
|
||||
}),
|
||||
(e.prototype.findMath = function (t) {
|
||||
return this.findMathML.findMath(t);
|
||||
}),
|
||||
(e.NAME = 'MathML'),
|
||||
(e.OPTIONS = (0, s.defaultOptions)(
|
||||
{
|
||||
parseAs: 'html',
|
||||
forceReparse: !1,
|
||||
FindMathML: null,
|
||||
MathMLCompile: null,
|
||||
parseError: function (t) {
|
||||
this.error(
|
||||
this.adaptor.textContent(t).replace(/\n.*/g, ''),
|
||||
);
|
||||
},
|
||||
},
|
||||
n.AbstractInputJax.OPTIONS,
|
||||
)),
|
||||
e
|
||||
);
|
||||
})(n.AbstractInputJax);
|
||||
e.MathML = p;
|
||||
},
|
||||
794: function (t, e, r) {
|
||||
var a,
|
||||
o =
|
||||
(this && this.__extends) ||
|
||||
((a = function (t, e) {
|
||||
return (
|
||||
(a =
|
||||
Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array &&
|
||||
function (t, e) {
|
||||
t.__proto__ = e;
|
||||
}) ||
|
||||
function (t, e) {
|
||||
for (var r in e)
|
||||
Object.prototype.hasOwnProperty.call(e, r) &&
|
||||
(t[r] = e[r]);
|
||||
}),
|
||||
a(t, e)
|
||||
);
|
||||
}),
|
||||
function (t, e) {
|
||||
if ('function' != typeof e && null !== e)
|
||||
throw new TypeError(
|
||||
'Class extends value ' +
|
||||
String(e) +
|
||||
' is not a constructor or null',
|
||||
);
|
||||
function r() {
|
||||
this.constructor = t;
|
||||
}
|
||||
a(t, e),
|
||||
(t.prototype =
|
||||
null === e
|
||||
? Object.create(e)
|
||||
: ((r.prototype = e.prototype), new r()));
|
||||
}),
|
||||
i =
|
||||
(this && this.__values) ||
|
||||
function (t) {
|
||||
var e = 'function' == typeof Symbol && Symbol.iterator,
|
||||
r = e && t[e],
|
||||
a = 0;
|
||||
if (r) return r.call(t);
|
||||
if (t && 'number' == typeof t.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
t && a >= t.length && (t = void 0),
|
||||
{ value: t && t[a++], done: !t }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
e ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }), (e.FindMathML = void 0);
|
||||
var n = r(649),
|
||||
s = 'http://www.w3.org/1998/Math/MathML',
|
||||
l = (function (t) {
|
||||
function e() {
|
||||
return (null !== t && t.apply(this, arguments)) || this;
|
||||
}
|
||||
return (
|
||||
o(e, t),
|
||||
(e.prototype.findMath = function (t) {
|
||||
var e = new Set();
|
||||
this.findMathNodes(t, e), this.findMathPrefixed(t, e);
|
||||
var r = this.adaptor.root(this.adaptor.document);
|
||||
return (
|
||||
'html' === this.adaptor.kind(r) &&
|
||||
0 === e.size &&
|
||||
this.findMathNS(t, e),
|
||||
this.processMath(e)
|
||||
);
|
||||
}),
|
||||
(e.prototype.findMathNodes = function (t, e) {
|
||||
var r, a;
|
||||
try {
|
||||
for (
|
||||
var o = i(this.adaptor.tags(t, 'math')), n = o.next();
|
||||
!n.done;
|
||||
n = o.next()
|
||||
) {
|
||||
var s = n.value;
|
||||
e.add(s);
|
||||
}
|
||||
} catch (t) {
|
||||
r = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
n && !n.done && (a = o.return) && a.call(o);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
}),
|
||||
(e.prototype.findMathPrefixed = function (t, e) {
|
||||
var r,
|
||||
a,
|
||||
o,
|
||||
n,
|
||||
l = this.adaptor.root(this.adaptor.document);
|
||||
try {
|
||||
for (
|
||||
var c = i(this.adaptor.allAttributes(l)), h = c.next();
|
||||
!h.done;
|
||||
h = c.next()
|
||||
) {
|
||||
var p = h.value;
|
||||
if ('xmlns:' === p.name.substr(0, 6) && p.value === s) {
|
||||
var u = p.name.substr(6);
|
||||
try {
|
||||
for (
|
||||
var d =
|
||||
((o = void 0),
|
||||
i(this.adaptor.tags(t, u + ':math'))),
|
||||
f = d.next();
|
||||
!f.done;
|
||||
f = d.next()
|
||||
) {
|
||||
var M = f.value;
|
||||
e.add(M);
|
||||
}
|
||||
} catch (t) {
|
||||
o = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
f && !f.done && (n = d.return) && n.call(d);
|
||||
} finally {
|
||||
if (o) throw o.error;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (t) {
|
||||
r = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
h && !h.done && (a = c.return) && a.call(c);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
}),
|
||||
(e.prototype.findMathNS = function (t, e) {
|
||||
var r, a;
|
||||
try {
|
||||
for (
|
||||
var o = i(this.adaptor.tags(t, 'math', s)), n = o.next();
|
||||
!n.done;
|
||||
n = o.next()
|
||||
) {
|
||||
var l = n.value;
|
||||
e.add(l);
|
||||
}
|
||||
} catch (t) {
|
||||
r = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
n && !n.done && (a = o.return) && a.call(o);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
}),
|
||||
(e.prototype.processMath = function (t) {
|
||||
var e,
|
||||
r,
|
||||
a = [];
|
||||
try {
|
||||
for (
|
||||
var o = i(Array.from(t)), n = o.next();
|
||||
!n.done;
|
||||
n = o.next()
|
||||
) {
|
||||
var s = n.value,
|
||||
l =
|
||||
'block' ===
|
||||
this.adaptor.getAttribute(s, 'display') ||
|
||||
'display' === this.adaptor.getAttribute(s, 'mode'),
|
||||
c = { node: s, n: 0, delim: '' },
|
||||
h = { node: s, n: 0, delim: '' };
|
||||
a.push({
|
||||
math: this.adaptor.outerHTML(s),
|
||||
start: c,
|
||||
end: h,
|
||||
display: l,
|
||||
});
|
||||
}
|
||||
} catch (t) {
|
||||
e = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
n && !n.done && (r = o.return) && r.call(o);
|
||||
} finally {
|
||||
if (e) throw e.error;
|
||||
}
|
||||
}
|
||||
return a;
|
||||
}),
|
||||
(e.OPTIONS = {}),
|
||||
e
|
||||
);
|
||||
})(n.AbstractFindMath);
|
||||
e.FindMathML = l;
|
||||
},
|
||||
332: function (t, e, r) {
|
||||
var a =
|
||||
(this && this.__assign) ||
|
||||
function () {
|
||||
return (
|
||||
(a =
|
||||
Object.assign ||
|
||||
function (t) {
|
||||
for (var e, r = 1, a = arguments.length; r < a; r++)
|
||||
for (var o in (e = arguments[r]))
|
||||
Object.prototype.hasOwnProperty.call(e, o) &&
|
||||
(t[o] = e[o]);
|
||||
return t;
|
||||
}),
|
||||
a.apply(this, arguments)
|
||||
);
|
||||
},
|
||||
o =
|
||||
(this && this.__createBinding) ||
|
||||
(Object.create
|
||||
? function (t, e, r, a) {
|
||||
void 0 === a && (a = r);
|
||||
var o = Object.getOwnPropertyDescriptor(e, r);
|
||||
(o &&
|
||||
!('get' in o
|
||||
? !e.__esModule
|
||||
: o.writable || o.configurable)) ||
|
||||
(o = {
|
||||
enumerable: !0,
|
||||
get: function () {
|
||||
return e[r];
|
||||
},
|
||||
}),
|
||||
Object.defineProperty(t, a, o);
|
||||
}
|
||||
: function (t, e, r, a) {
|
||||
void 0 === a && (a = r), (t[a] = e[r]);
|
||||
}),
|
||||
i =
|
||||
(this && this.__setModuleDefault) ||
|
||||
(Object.create
|
||||
? function (t, e) {
|
||||
Object.defineProperty(t, 'default', { enumerable: !0, value: e });
|
||||
}
|
||||
: function (t, e) {
|
||||
t.default = e;
|
||||
}),
|
||||
n =
|
||||
(this && this.__importStar) ||
|
||||
function (t) {
|
||||
if (t && t.__esModule) return t;
|
||||
var e = {};
|
||||
if (null != t)
|
||||
for (var r in t)
|
||||
'default' !== r &&
|
||||
Object.prototype.hasOwnProperty.call(t, r) &&
|
||||
o(e, t, r);
|
||||
return i(e, t), e;
|
||||
},
|
||||
s =
|
||||
(this && this.__values) ||
|
||||
function (t) {
|
||||
var e = 'function' == typeof Symbol && Symbol.iterator,
|
||||
r = e && t[e],
|
||||
a = 0;
|
||||
if (r) return r.call(t);
|
||||
if (t && 'number' == typeof t.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
t && a >= t.length && (t = void 0),
|
||||
{ value: t && t[a++], done: !t }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
e ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }), (e.MathMLCompile = void 0);
|
||||
var l = r(921),
|
||||
c = r(77),
|
||||
h = n(r(29)),
|
||||
p = (function () {
|
||||
function t(t) {
|
||||
void 0 === t && (t = {});
|
||||
var e = this.constructor;
|
||||
this.options = (0, c.userOptions)(
|
||||
(0, c.defaultOptions)({}, e.OPTIONS),
|
||||
t,
|
||||
);
|
||||
}
|
||||
return (
|
||||
(t.prototype.setMmlFactory = function (t) {
|
||||
this.factory = t;
|
||||
}),
|
||||
(t.prototype.compile = function (t) {
|
||||
var e = this.makeNode(t);
|
||||
return (
|
||||
e.verifyTree(this.options.verify),
|
||||
e.setInheritedAttributes({}, !1, 0, !1),
|
||||
e.walkTree(this.markMrows),
|
||||
e
|
||||
);
|
||||
}),
|
||||
(t.prototype.makeNode = function (t) {
|
||||
var e,
|
||||
r,
|
||||
a = this.adaptor,
|
||||
o = !1,
|
||||
i = a.kind(t).replace(/^.*:/, ''),
|
||||
n = a.getAttribute(t, 'data-mjx-texclass') || '';
|
||||
n && (n = this.filterAttribute('data-mjx-texclass', n) || '');
|
||||
var c = n && 'mrow' === i ? 'TeXAtom' : i;
|
||||
try {
|
||||
for (
|
||||
var h = s(this.filterClassList(a.allClasses(t))),
|
||||
p = h.next();
|
||||
!p.done;
|
||||
p = h.next()
|
||||
) {
|
||||
var u = p.value;
|
||||
u.match(/^MJX-TeXAtom-/) && 'mrow' === i
|
||||
? ((n = u.substr(12)), (c = 'TeXAtom'))
|
||||
: 'MJX-fixedlimits' === u && (o = !0);
|
||||
}
|
||||
} catch (t) {
|
||||
e = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
p && !p.done && (r = h.return) && r.call(h);
|
||||
} finally {
|
||||
if (e) throw e.error;
|
||||
}
|
||||
}
|
||||
this.factory.getNodeClass(c) ||
|
||||
this.error('Unknown node type "' + c + '"');
|
||||
var d = this.factory.create(c);
|
||||
return (
|
||||
'TeXAtom' !== c ||
|
||||
'OP' !== n ||
|
||||
o ||
|
||||
(d.setProperty('movesupsub', !0),
|
||||
d.attributes.setInherited('movablelimits', !0)),
|
||||
n &&
|
||||
((d.texClass = l.TEXCLASS[n]),
|
||||
d.setProperty('texClass', d.texClass)),
|
||||
this.addAttributes(d, t),
|
||||
this.checkClass(d, t),
|
||||
this.addChildren(d, t),
|
||||
d
|
||||
);
|
||||
}),
|
||||
(t.prototype.addAttributes = function (t, e) {
|
||||
var r,
|
||||
a,
|
||||
o = !1;
|
||||
try {
|
||||
for (
|
||||
var i = s(this.adaptor.allAttributes(e)), n = i.next();
|
||||
!n.done;
|
||||
n = i.next()
|
||||
) {
|
||||
var l = n.value,
|
||||
c = l.name,
|
||||
h = this.filterAttribute(c, l.value);
|
||||
if (null !== h && 'xmlns' !== c)
|
||||
if ('data-mjx-' === c.substr(0, 9))
|
||||
switch (c.substr(9)) {
|
||||
case 'alternate':
|
||||
t.setProperty('variantForm', !0);
|
||||
break;
|
||||
case 'variant':
|
||||
t.attributes.set('mathvariant', h),
|
||||
(o = !0);
|
||||
break;
|
||||
case 'smallmatrix':
|
||||
t.setProperty('scriptlevel', 1),
|
||||
t.setProperty('useHeight', !1);
|
||||
break;
|
||||
case 'accent':
|
||||
t.setProperty('mathaccent', 'true' === h);
|
||||
break;
|
||||
case 'auto-op':
|
||||
t.setProperty('autoOP', 'true' === h);
|
||||
break;
|
||||
case 'script-align':
|
||||
t.setProperty('scriptalign', h);
|
||||
}
|
||||
else if ('class' !== c) {
|
||||
var p = h.toLowerCase();
|
||||
'true' === p || 'false' === p
|
||||
? t.attributes.set(c, 'true' === p)
|
||||
: (o && 'mathvariant' === c) ||
|
||||
t.attributes.set(c, h);
|
||||
}
|
||||
}
|
||||
} catch (t) {
|
||||
r = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
n && !n.done && (a = i.return) && a.call(i);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
}),
|
||||
(t.prototype.filterAttribute = function (t, e) {
|
||||
return e;
|
||||
}),
|
||||
(t.prototype.filterClassList = function (t) {
|
||||
return t;
|
||||
}),
|
||||
(t.prototype.addChildren = function (t, e) {
|
||||
var r, a;
|
||||
if (0 !== t.arity) {
|
||||
var o = this.adaptor;
|
||||
try {
|
||||
for (
|
||||
var i = s(o.childNodes(e)), n = i.next();
|
||||
!n.done;
|
||||
n = i.next()
|
||||
) {
|
||||
var l = n.value,
|
||||
c = o.kind(l);
|
||||
if ('#comment' !== c)
|
||||
if ('#text' === c) this.addText(t, l);
|
||||
else if (t.isKind('annotation-xml'))
|
||||
t.appendChild(
|
||||
this.factory.create('XML').setXML(l, o),
|
||||
);
|
||||
else {
|
||||
var h = t.appendChild(this.makeNode(l));
|
||||
0 === h.arity &&
|
||||
o.childNodes(l).length &&
|
||||
(this.options.fixMisplacedChildren
|
||||
? this.addChildren(t, l)
|
||||
: h.mError(
|
||||
'There should not be children for ' +
|
||||
h.kind +
|
||||
' nodes',
|
||||
this.options.verify,
|
||||
!0,
|
||||
));
|
||||
}
|
||||
}
|
||||
} catch (t) {
|
||||
r = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
n && !n.done && (a = i.return) && a.call(i);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
}
|
||||
}),
|
||||
(t.prototype.addText = function (t, e) {
|
||||
var r = this.adaptor.value(e);
|
||||
(t.isToken || t.getProperty('isChars')) && t.arity
|
||||
? (t.isToken && ((r = h.translate(r)), (r = this.trimSpace(r))),
|
||||
t.appendChild(this.factory.create('text').setText(r)))
|
||||
: r.match(/\S/) &&
|
||||
this.error('Unexpected text node "' + r + '"');
|
||||
}),
|
||||
(t.prototype.checkClass = function (t, e) {
|
||||
var r,
|
||||
a,
|
||||
o = [];
|
||||
try {
|
||||
for (
|
||||
var i = s(this.filterClassList(this.adaptor.allClasses(e))),
|
||||
n = i.next();
|
||||
!n.done;
|
||||
n = i.next()
|
||||
) {
|
||||
var l = n.value;
|
||||
'MJX-' === l.substr(0, 4)
|
||||
? 'MJX-variant' === l
|
||||
? t.setProperty('variantForm', !0)
|
||||
: 'MJX-TeXAtom' !== l.substr(0, 11) &&
|
||||
t.attributes.set(
|
||||
'mathvariant',
|
||||
this.fixCalligraphic(l.substr(3)),
|
||||
)
|
||||
: o.push(l);
|
||||
}
|
||||
} catch (t) {
|
||||
r = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
n && !n.done && (a = i.return) && a.call(i);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
o.length && t.attributes.set('class', o.join(' '));
|
||||
}),
|
||||
(t.prototype.fixCalligraphic = function (t) {
|
||||
return t.replace(/caligraphic/, 'calligraphic');
|
||||
}),
|
||||
(t.prototype.markMrows = function (t) {
|
||||
if (t.isKind('mrow') && !t.isInferred && t.childNodes.length >= 2) {
|
||||
var e = t.childNodes[0],
|
||||
r = t.childNodes[t.childNodes.length - 1];
|
||||
e.isKind('mo') &&
|
||||
e.attributes.get('fence') &&
|
||||
e.attributes.get('stretchy') &&
|
||||
r.isKind('mo') &&
|
||||
r.attributes.get('fence') &&
|
||||
r.attributes.get('stretchy') &&
|
||||
(e.childNodes.length && t.setProperty('open', e.getText()),
|
||||
r.childNodes.length && t.setProperty('close', r.getText()));
|
||||
}
|
||||
}),
|
||||
(t.prototype.trimSpace = function (t) {
|
||||
return t
|
||||
.replace(/[\t\n\r]/g, ' ')
|
||||
.replace(/^ +/, '')
|
||||
.replace(/ +$/, '')
|
||||
.replace(/ +/g, ' ');
|
||||
}),
|
||||
(t.prototype.error = function (t) {
|
||||
throw new Error(t);
|
||||
}),
|
||||
(t.OPTIONS = {
|
||||
MmlFactory: null,
|
||||
fixMisplacedChildren: !0,
|
||||
verify: a({}, l.AbstractMmlNode.verifyDefaults),
|
||||
translateEntities: !0,
|
||||
}),
|
||||
t
|
||||
);
|
||||
})();
|
||||
e.MathMLCompile = p;
|
||||
},
|
||||
723: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
649: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.AbstractFindMath = MathJax._.core.FindMath.AbstractFindMath);
|
||||
},
|
||||
309: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.AbstractInputJax = MathJax._.core.InputJax.AbstractInputJax);
|
||||
},
|
||||
921: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.TEXCLASS = MathJax._.core.MmlTree.MmlNode.TEXCLASS),
|
||||
(e.TEXCLASSNAMES = MathJax._.core.MmlTree.MmlNode.TEXCLASSNAMES),
|
||||
(e.indentAttributes = MathJax._.core.MmlTree.MmlNode.indentAttributes),
|
||||
(e.AbstractMmlNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlNode),
|
||||
(e.AbstractMmlTokenNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlTokenNode),
|
||||
(e.AbstractMmlLayoutNode =
|
||||
MathJax._.core.MmlTree.MmlNode.AbstractMmlLayoutNode),
|
||||
(e.AbstractMmlBaseNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlBaseNode),
|
||||
(e.AbstractMmlEmptyNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlEmptyNode),
|
||||
(e.TextNode = MathJax._.core.MmlTree.MmlNode.TextNode),
|
||||
(e.XMLNode = MathJax._.core.MmlTree.MmlNode.XMLNode);
|
||||
},
|
||||
29: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.options = MathJax._.util.Entities.options),
|
||||
(e.entities = MathJax._.util.Entities.entities),
|
||||
(e.add = MathJax._.util.Entities.add),
|
||||
(e.remove = MathJax._.util.Entities.remove),
|
||||
(e.translate = MathJax._.util.Entities.translate),
|
||||
(e.numeric = MathJax._.util.Entities.numeric);
|
||||
},
|
||||
898: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.FunctionList = MathJax._.util.FunctionList.FunctionList);
|
||||
},
|
||||
77: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.isObject = MathJax._.util.Options.isObject),
|
||||
(e.APPEND = MathJax._.util.Options.APPEND),
|
||||
(e.REMOVE = MathJax._.util.Options.REMOVE),
|
||||
(e.OPTIONS = MathJax._.util.Options.OPTIONS),
|
||||
(e.Expandable = MathJax._.util.Options.Expandable),
|
||||
(e.expandable = MathJax._.util.Options.expandable),
|
||||
(e.makeArray = MathJax._.util.Options.makeArray),
|
||||
(e.keys = MathJax._.util.Options.keys),
|
||||
(e.copy = MathJax._.util.Options.copy),
|
||||
(e.insert = MathJax._.util.Options.insert),
|
||||
(e.defaultOptions = MathJax._.util.Options.defaultOptions),
|
||||
(e.userOptions = MathJax._.util.Options.userOptions),
|
||||
(e.selectOptions = MathJax._.util.Options.selectOptions),
|
||||
(e.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys),
|
||||
(e.separateOptions = MathJax._.util.Options.separateOptions),
|
||||
(e.lookup = MathJax._.util.Options.lookup);
|
||||
},
|
||||
},
|
||||
n = {};
|
||||
function s(t) {
|
||||
var e = n[t];
|
||||
if (void 0 !== e) return e.exports;
|
||||
var r = (n[t] = { exports: {} });
|
||||
return i[t].call(r.exports, r, r.exports, s), r.exports;
|
||||
}
|
||||
(t = s(723)),
|
||||
(e = s(306)),
|
||||
(r = s(236)),
|
||||
(a = s(794)),
|
||||
(o = s(332)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('input/mml', e.q, 'input'),
|
||||
(0, t.r8)({ _: { input: { mathml_ts: r, mathml: { FindMathML: a, MathMLCompile: o } } } }),
|
||||
MathJax.startup &&
|
||||
(MathJax.startup.registerConstructor('mml', r.MathML), MathJax.startup.useInput('mml')),
|
||||
MathJax.loader &&
|
||||
MathJax.loader.pathFilters.add(function (t) {
|
||||
return (
|
||||
(t.name = t.name.replace(
|
||||
/\/util\/entities\/.*?\.js/,
|
||||
'/input/mml/entities.js',
|
||||
)),
|
||||
!0
|
||||
);
|
||||
});
|
||||
})();
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,94 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
a,
|
||||
e,
|
||||
o = {
|
||||
667: function (t, a) {
|
||||
(a.q = void 0), (a.q = '3.2.2');
|
||||
},
|
||||
669: function (t, a, e) {
|
||||
var o =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.ActionConfiguration = a.ActionMethods = void 0);
|
||||
var n = e(251),
|
||||
i = o(e(193)),
|
||||
r = e(871),
|
||||
u = o(e(360));
|
||||
(a.ActionMethods = {}),
|
||||
(a.ActionMethods.Macro = u.default.Macro),
|
||||
(a.ActionMethods.Toggle = function (t, a) {
|
||||
for (var e, o = []; '\\endtoggle' !== (e = t.GetArgument(a)); )
|
||||
o.push(new i.default(e, t.stack.env, t.configuration).mml());
|
||||
t.Push(t.create('node', 'maction', o, { actiontype: 'toggle' }));
|
||||
}),
|
||||
(a.ActionMethods.Mathtip = function (t, a) {
|
||||
var e = t.ParseArg(a),
|
||||
o = t.ParseArg(a);
|
||||
t.Push(t.create('node', 'maction', [e, o], { actiontype: 'tooltip' }));
|
||||
}),
|
||||
new r.CommandMap(
|
||||
'action-macros',
|
||||
{
|
||||
toggle: 'Toggle',
|
||||
mathtip: 'Mathtip',
|
||||
texttip: ['Macro', '\\mathtip{#1}{\\text{#2}}', 2],
|
||||
},
|
||||
a.ActionMethods,
|
||||
),
|
||||
(a.ActionConfiguration = n.Configuration.create('action', {
|
||||
handler: { macro: ['action-macros'] },
|
||||
}));
|
||||
},
|
||||
955: function (t, a) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(a.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(a.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(a.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
871: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(a.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(a.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(a.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(a.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(a.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(a.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(a.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(a.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
193: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.default = MathJax._.input.tex.TexParser.default);
|
||||
},
|
||||
360: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.default = MathJax._.input.tex.base.BaseMethods.default);
|
||||
},
|
||||
},
|
||||
n = {};
|
||||
function i(t) {
|
||||
var a = n[t];
|
||||
if (void 0 !== a) return a.exports;
|
||||
var e = (n[t] = { exports: {} });
|
||||
return o[t].call(e.exports, e, e.exports, i), e.exports;
|
||||
}
|
||||
(t = i(955)),
|
||||
(a = i(667)),
|
||||
(e = i(669)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/action', a.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { action: { ActionConfiguration: e } } } } });
|
||||
})();
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,323 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var e,
|
||||
t,
|
||||
a,
|
||||
r,
|
||||
o = {
|
||||
667: function (e, t) {
|
||||
(t.q = void 0), (t.q = '3.2.2');
|
||||
},
|
||||
769: function (e, t, a) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.AmsCdConfiguration = void 0);
|
||||
var r = a(251);
|
||||
a(704),
|
||||
(t.AmsCdConfiguration = r.Configuration.create('amscd', {
|
||||
handler: {
|
||||
character: ['amscd_special'],
|
||||
macro: ['amscd_macros'],
|
||||
environment: ['amscd_environment'],
|
||||
},
|
||||
options: {
|
||||
amscd: {
|
||||
colspace: '5pt',
|
||||
rowspace: '5pt',
|
||||
harrowsize: '2.75em',
|
||||
varrowsize: '1.75em',
|
||||
hideHorizontalLabels: !1,
|
||||
},
|
||||
},
|
||||
}));
|
||||
},
|
||||
704: function (e, t, a) {
|
||||
var r =
|
||||
(this && this.__createBinding) ||
|
||||
(Object.create
|
||||
? function (e, t, a, r) {
|
||||
void 0 === r && (r = a);
|
||||
var o = Object.getOwnPropertyDescriptor(t, a);
|
||||
(o &&
|
||||
!('get' in o
|
||||
? !t.__esModule
|
||||
: o.writable || o.configurable)) ||
|
||||
(o = {
|
||||
enumerable: !0,
|
||||
get: function () {
|
||||
return t[a];
|
||||
},
|
||||
}),
|
||||
Object.defineProperty(e, r, o);
|
||||
}
|
||||
: function (e, t, a, r) {
|
||||
void 0 === r && (r = a), (e[r] = t[a]);
|
||||
}),
|
||||
o =
|
||||
(this && this.__setModuleDefault) ||
|
||||
(Object.create
|
||||
? function (e, t) {
|
||||
Object.defineProperty(e, 'default', { enumerable: !0, value: t });
|
||||
}
|
||||
: function (e, t) {
|
||||
e.default = t;
|
||||
}),
|
||||
n =
|
||||
(this && this.__importStar) ||
|
||||
function (e) {
|
||||
if (e && e.__esModule) return e;
|
||||
var t = {};
|
||||
if (null != e)
|
||||
for (var a in e)
|
||||
'default' !== a &&
|
||||
Object.prototype.hasOwnProperty.call(e, a) &&
|
||||
r(t, e, a);
|
||||
return o(t, e), t;
|
||||
},
|
||||
i =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var l = n(a(871)),
|
||||
c = i(a(945)),
|
||||
s = i(a(834));
|
||||
new l.EnvironmentMap(
|
||||
'amscd_environment',
|
||||
c.default.environment,
|
||||
{ CD: 'CD' },
|
||||
s.default,
|
||||
),
|
||||
new l.CommandMap(
|
||||
'amscd_macros',
|
||||
{
|
||||
minCDarrowwidth: 'minCDarrowwidth',
|
||||
minCDarrowheight: 'minCDarrowheight',
|
||||
},
|
||||
s.default,
|
||||
),
|
||||
new l.MacroMap('amscd_special', { '@': 'arrow' }, s.default);
|
||||
},
|
||||
834: function (e, t, a) {
|
||||
var r =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var o = r(a(193)),
|
||||
n = a(379),
|
||||
i = a(801),
|
||||
l = r(a(748)),
|
||||
c = {
|
||||
CD: function (e, t) {
|
||||
e.Push(t);
|
||||
var a = e.itemFactory.create('array'),
|
||||
r = e.configuration.options.amscd;
|
||||
return (
|
||||
a.setProperties({
|
||||
minw: e.stack.env.CD_minw || r.harrowsize,
|
||||
minh: e.stack.env.CD_minh || r.varrowsize,
|
||||
}),
|
||||
(a.arraydef = {
|
||||
columnalign: 'center',
|
||||
columnspacing: r.colspace,
|
||||
rowspacing: r.rowspace,
|
||||
displaystyle: !0,
|
||||
}),
|
||||
a
|
||||
);
|
||||
},
|
||||
arrow: function (e, t) {
|
||||
var a = e.string.charAt(e.i);
|
||||
if (!a.match(/[><VA.|=]/)) return (0, n.Other)(e, t);
|
||||
e.i++;
|
||||
var r = e.stack.Top();
|
||||
(r.isKind('array') && !r.Size()) || (c.cell(e, t), (r = e.stack.Top()));
|
||||
for (
|
||||
var s,
|
||||
u = r,
|
||||
d = u.table.length % 2 == 1,
|
||||
m = (u.row.length + (d ? 0 : 1)) % 2;
|
||||
m;
|
||||
|
||||
)
|
||||
c.cell(e, t), m--;
|
||||
var p = { minsize: u.getProperty('minw'), stretchy: !0 },
|
||||
M = {
|
||||
minsize: u.getProperty('minh'),
|
||||
stretchy: !0,
|
||||
symmetric: !0,
|
||||
lspace: 0,
|
||||
rspace: 0,
|
||||
};
|
||||
if ('.' === a);
|
||||
else if ('|' === a) s = e.create('token', 'mo', M, '\u2225');
|
||||
else if ('=' === a) s = e.create('token', 'mo', p, '=');
|
||||
else {
|
||||
var f = { '>': '\u2192', '<': '\u2190', V: '\u2193', A: '\u2191' }[
|
||||
a
|
||||
],
|
||||
h = e.GetUpTo(t + a, a),
|
||||
_ = e.GetUpTo(t + a, a);
|
||||
if ('>' === a || '<' === a) {
|
||||
if (
|
||||
((s = e.create('token', 'mo', p, f)),
|
||||
h || (h = '\\kern ' + u.getProperty('minw')),
|
||||
h || _)
|
||||
) {
|
||||
var x = { width: '+.67em', lspace: '.33em' };
|
||||
if (((s = e.create('node', 'munderover', [s])), h)) {
|
||||
var b = new o.default(
|
||||
h,
|
||||
e.stack.env,
|
||||
e.configuration,
|
||||
).mml(),
|
||||
v = e.create('node', 'mpadded', [b], x);
|
||||
l.default.setAttribute(v, 'voffset', '.1em'),
|
||||
l.default.setChild(s, s.over, v);
|
||||
}
|
||||
if (_) {
|
||||
var g = new o.default(
|
||||
_,
|
||||
e.stack.env,
|
||||
e.configuration,
|
||||
).mml();
|
||||
l.default.setChild(
|
||||
s,
|
||||
s.under,
|
||||
e.create('node', 'mpadded', [g], x),
|
||||
);
|
||||
}
|
||||
e.configuration.options.amscd.hideHorizontalLabels &&
|
||||
(s = e.create('node', 'mpadded', s, {
|
||||
depth: 0,
|
||||
height: '.67em',
|
||||
}));
|
||||
}
|
||||
} else {
|
||||
var C = e.create('token', 'mo', M, f);
|
||||
(s = C),
|
||||
(h || _) &&
|
||||
((s = e.create('node', 'mrow')),
|
||||
h &&
|
||||
l.default.appendChildren(s, [
|
||||
new o.default(
|
||||
'\\scriptstyle\\llap{' + h + '}',
|
||||
e.stack.env,
|
||||
e.configuration,
|
||||
).mml(),
|
||||
]),
|
||||
(C.texClass = i.TEXCLASS.ORD),
|
||||
l.default.appendChildren(s, [C]),
|
||||
_ &&
|
||||
l.default.appendChildren(s, [
|
||||
new o.default(
|
||||
'\\scriptstyle\\rlap{' + _ + '}',
|
||||
e.stack.env,
|
||||
e.configuration,
|
||||
).mml(),
|
||||
]));
|
||||
}
|
||||
}
|
||||
s && e.Push(s), c.cell(e, t);
|
||||
},
|
||||
cell: function (e, t) {
|
||||
var a = e.stack.Top();
|
||||
(a.table || []).length % 2 == 0 &&
|
||||
0 === (a.row || []).length &&
|
||||
e.Push(
|
||||
e.create('node', 'mpadded', [], {
|
||||
height: '8.5pt',
|
||||
depth: '2pt',
|
||||
}),
|
||||
),
|
||||
e.Push(
|
||||
e.itemFactory
|
||||
.create('cell')
|
||||
.setProperties({ isEntry: !0, name: t }),
|
||||
);
|
||||
},
|
||||
minCDarrowwidth: function (e, t) {
|
||||
e.stack.env.CD_minw = e.GetDimen(t);
|
||||
},
|
||||
minCDarrowheight: function (e, t) {
|
||||
e.stack.env.CD_minh = e.GetDimen(t);
|
||||
},
|
||||
};
|
||||
t.default = c;
|
||||
},
|
||||
955: function (e, t) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(t.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
801: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.TEXCLASS = MathJax._.core.MmlTree.MmlNode.TEXCLASS),
|
||||
(t.TEXCLASSNAMES = MathJax._.core.MmlTree.MmlNode.TEXCLASSNAMES),
|
||||
(t.indentAttributes = MathJax._.core.MmlTree.MmlNode.indentAttributes),
|
||||
(t.AbstractMmlNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlNode),
|
||||
(t.AbstractMmlTokenNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlTokenNode),
|
||||
(t.AbstractMmlLayoutNode =
|
||||
MathJax._.core.MmlTree.MmlNode.AbstractMmlLayoutNode),
|
||||
(t.AbstractMmlBaseNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlBaseNode),
|
||||
(t.AbstractMmlEmptyNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlEmptyNode),
|
||||
(t.TextNode = MathJax._.core.MmlTree.MmlNode.TextNode),
|
||||
(t.XMLNode = MathJax._.core.MmlTree.MmlNode.XMLNode);
|
||||
},
|
||||
251: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(t.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(t.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
748: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.NodeUtil.default);
|
||||
},
|
||||
945: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.ParseMethods.default);
|
||||
},
|
||||
871: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(t.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(t.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(t.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(t.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(t.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(t.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(t.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(t.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
193: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.TexParser.default);
|
||||
},
|
||||
379: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.Other = MathJax._.input.tex.base.BaseConfiguration.Other),
|
||||
(t.BaseTags = MathJax._.input.tex.base.BaseConfiguration.BaseTags),
|
||||
(t.BaseConfiguration =
|
||||
MathJax._.input.tex.base.BaseConfiguration.BaseConfiguration);
|
||||
},
|
||||
},
|
||||
n = {};
|
||||
function i(e) {
|
||||
var t = n[e];
|
||||
if (void 0 !== t) return t.exports;
|
||||
var a = (n[e] = { exports: {} });
|
||||
return o[e].call(a.exports, a, a.exports, i), a.exports;
|
||||
}
|
||||
(e = i(955)),
|
||||
(t = i(667)),
|
||||
(a = i(769)),
|
||||
(r = i(834)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/amscd', t.q, 'tex-extension'),
|
||||
(0, e.r8)({ _: { input: { tex: { amscd: { AmsCdConfiguration: a, AmsCdMethods: r } } } } });
|
||||
})();
|
||||
@@ -1,303 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
e,
|
||||
a,
|
||||
o = {
|
||||
667: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
275: function (t, e, a) {
|
||||
var o =
|
||||
(this && this.__read) ||
|
||||
function (t, e) {
|
||||
var a = 'function' == typeof Symbol && t[Symbol.iterator];
|
||||
if (!a) return t;
|
||||
var o,
|
||||
r,
|
||||
n = a.call(t),
|
||||
i = [];
|
||||
try {
|
||||
for (; (void 0 === e || e-- > 0) && !(o = n.next()).done; )
|
||||
i.push(o.value);
|
||||
} catch (t) {
|
||||
r = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
o && !o.done && (a = n.return) && a.call(n);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
return i;
|
||||
},
|
||||
r =
|
||||
(this && this.__values) ||
|
||||
function (t) {
|
||||
var e = 'function' == typeof Symbol && Symbol.iterator,
|
||||
a = e && t[e],
|
||||
o = 0;
|
||||
if (a) return a.call(t);
|
||||
if (t && 'number' == typeof t.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
t && o >= t.length && (t = void 0),
|
||||
{ value: t && t[o++], done: !t }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
e ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.AutoloadConfiguration = void 0);
|
||||
var n = a(251),
|
||||
i = a(871),
|
||||
l = a(924),
|
||||
u = a(96),
|
||||
p = a(629),
|
||||
c = a(74);
|
||||
function s(t, e, a, n) {
|
||||
var i, l, c, s;
|
||||
if (p.Package.packages.has(t.options.require.prefix + a)) {
|
||||
var d = t.options.autoload[a],
|
||||
M = o(2 === d.length && Array.isArray(d[0]) ? d : [d, []], 2),
|
||||
h = M[0],
|
||||
m = M[1];
|
||||
try {
|
||||
for (var y = r(h), b = y.next(); !b.done; b = y.next()) {
|
||||
var _ = b.value;
|
||||
x.remove(_);
|
||||
}
|
||||
} catch (t) {
|
||||
i = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
b && !b.done && (l = y.return) && l.call(y);
|
||||
} finally {
|
||||
if (i) throw i.error;
|
||||
}
|
||||
}
|
||||
try {
|
||||
for (var v = r(m), g = v.next(); !g.done; g = v.next()) {
|
||||
var O = g.value;
|
||||
f.remove(O);
|
||||
}
|
||||
} catch (t) {
|
||||
c = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
g && !g.done && (s = v.return) && s.call(v);
|
||||
} finally {
|
||||
if (c) throw c.error;
|
||||
}
|
||||
}
|
||||
(t.string =
|
||||
(n ? e + ' ' : '\\begin{' + e.slice(1) + '}') + t.string.slice(t.i)),
|
||||
(t.i = 0);
|
||||
}
|
||||
(0, u.RequireLoad)(t, a);
|
||||
}
|
||||
var x = new i.CommandMap('autoload-macros', {}, {}),
|
||||
f = new i.CommandMap('autoload-environments', {}, {});
|
||||
e.AutoloadConfiguration = n.Configuration.create('autoload', {
|
||||
handler: { macro: ['autoload-macros'], environment: ['autoload-environments'] },
|
||||
options: {
|
||||
autoload: (0, c.expandable)({
|
||||
action: ['toggle', 'mathtip', 'texttip'],
|
||||
amscd: [[], ['CD']],
|
||||
bbox: ['bbox'],
|
||||
boldsymbol: ['boldsymbol'],
|
||||
braket: [
|
||||
'bra',
|
||||
'ket',
|
||||
'braket',
|
||||
'set',
|
||||
'Bra',
|
||||
'Ket',
|
||||
'Braket',
|
||||
'Set',
|
||||
'ketbra',
|
||||
'Ketbra',
|
||||
],
|
||||
bussproofs: [[], ['prooftree']],
|
||||
cancel: ['cancel', 'bcancel', 'xcancel', 'cancelto'],
|
||||
color: ['color', 'definecolor', 'textcolor', 'colorbox', 'fcolorbox'],
|
||||
enclose: ['enclose'],
|
||||
extpfeil: [
|
||||
'xtwoheadrightarrow',
|
||||
'xtwoheadleftarrow',
|
||||
'xmapsto',
|
||||
'xlongequal',
|
||||
'xtofrom',
|
||||
'Newextarrow',
|
||||
],
|
||||
html: ['href', 'class', 'style', 'cssId'],
|
||||
mhchem: ['ce', 'pu'],
|
||||
newcommand: [
|
||||
'newcommand',
|
||||
'renewcommand',
|
||||
'newenvironment',
|
||||
'renewenvironment',
|
||||
'def',
|
||||
'let',
|
||||
],
|
||||
unicode: ['unicode'],
|
||||
verb: ['verb'],
|
||||
}),
|
||||
},
|
||||
config: function (t, e) {
|
||||
var a,
|
||||
n,
|
||||
i,
|
||||
p,
|
||||
c,
|
||||
d,
|
||||
M = e.parseOptions,
|
||||
h = M.handlers.get('macro'),
|
||||
m = M.handlers.get('environment'),
|
||||
y = M.options.autoload;
|
||||
M.packageData.set('autoload', { Autoload: s });
|
||||
try {
|
||||
for (var b = r(Object.keys(y)), _ = b.next(); !_.done; _ = b.next()) {
|
||||
var v = _.value,
|
||||
g = y[v],
|
||||
O = o(2 === g.length && Array.isArray(g[0]) ? g : [g, []], 2),
|
||||
J = O[0],
|
||||
C = O[1];
|
||||
try {
|
||||
for (
|
||||
var k = ((i = void 0), r(J)), q = k.next();
|
||||
!q.done;
|
||||
q = k.next()
|
||||
) {
|
||||
var w = q.value;
|
||||
(h.lookup(w) && 'color' !== w) ||
|
||||
x.add(w, new l.Macro(w, s, [v, !0]));
|
||||
}
|
||||
} catch (t) {
|
||||
i = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
q && !q.done && (p = k.return) && p.call(k);
|
||||
} finally {
|
||||
if (i) throw i.error;
|
||||
}
|
||||
}
|
||||
try {
|
||||
for (
|
||||
var S = ((c = void 0), r(C)), P = S.next();
|
||||
!P.done;
|
||||
P = S.next()
|
||||
) {
|
||||
var R = P.value;
|
||||
m.lookup(R) || f.add(R, new l.Macro(R, s, [v, !1]));
|
||||
}
|
||||
} catch (t) {
|
||||
c = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
P && !P.done && (d = S.return) && d.call(S);
|
||||
} finally {
|
||||
if (c) throw c.error;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (t) {
|
||||
a = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
_ && !_.done && (n = b.return) && n.call(b);
|
||||
} finally {
|
||||
if (a) throw a.error;
|
||||
}
|
||||
}
|
||||
M.packageData.get('require') || u.RequireConfiguration.config(t, e);
|
||||
},
|
||||
init: function (t) {
|
||||
t.options.require ||
|
||||
(0, c.defaultOptions)(t.options, u.RequireConfiguration.options);
|
||||
},
|
||||
priority: 10,
|
||||
});
|
||||
},
|
||||
955: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
74: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.isObject = MathJax._.util.Options.isObject),
|
||||
(e.APPEND = MathJax._.util.Options.APPEND),
|
||||
(e.REMOVE = MathJax._.util.Options.REMOVE),
|
||||
(e.OPTIONS = MathJax._.util.Options.OPTIONS),
|
||||
(e.Expandable = MathJax._.util.Options.Expandable),
|
||||
(e.expandable = MathJax._.util.Options.expandable),
|
||||
(e.makeArray = MathJax._.util.Options.makeArray),
|
||||
(e.keys = MathJax._.util.Options.keys),
|
||||
(e.copy = MathJax._.util.Options.copy),
|
||||
(e.insert = MathJax._.util.Options.insert),
|
||||
(e.defaultOptions = MathJax._.util.Options.defaultOptions),
|
||||
(e.userOptions = MathJax._.util.Options.userOptions),
|
||||
(e.selectOptions = MathJax._.util.Options.selectOptions),
|
||||
(e.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys),
|
||||
(e.separateOptions = MathJax._.util.Options.separateOptions),
|
||||
(e.lookup = MathJax._.util.Options.lookup);
|
||||
},
|
||||
251: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(e.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(e.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
924: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Symbol = MathJax._.input.tex.Symbol.Symbol),
|
||||
(e.Macro = MathJax._.input.tex.Symbol.Macro);
|
||||
},
|
||||
871: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(e.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(e.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(e.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(e.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(e.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(e.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(e.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(e.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
96: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.RequireLoad = MathJax._.input.tex.require.RequireConfiguration.RequireLoad),
|
||||
(e.RequireMethods =
|
||||
MathJax._.input.tex.require.RequireConfiguration.RequireMethods),
|
||||
(e.options = MathJax._.input.tex.require.RequireConfiguration.options),
|
||||
(e.RequireConfiguration =
|
||||
MathJax._.input.tex.require.RequireConfiguration.RequireConfiguration);
|
||||
},
|
||||
629: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.PackageError = MathJax._.components.package.PackageError),
|
||||
(e.Package = MathJax._.components.package.Package);
|
||||
},
|
||||
},
|
||||
r = {};
|
||||
function n(t) {
|
||||
var e = r[t];
|
||||
if (void 0 !== e) return e.exports;
|
||||
var a = (r[t] = { exports: {} });
|
||||
return o[t].call(a.exports, a, a.exports, n), a.exports;
|
||||
}
|
||||
(t = n(955)),
|
||||
(e = n(667)),
|
||||
(a = n(275)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/autoload', e.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { autoload: { AutoloadConfiguration: a } } } } });
|
||||
})();
|
||||
@@ -1,140 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
a,
|
||||
e,
|
||||
o = {
|
||||
667: function (t, a) {
|
||||
(a.q = void 0), (a.q = '3.2.2');
|
||||
},
|
||||
133: function (t, a, e) {
|
||||
var o =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.BboxConfiguration = a.BboxMethods = void 0);
|
||||
var n = e(251),
|
||||
i = e(871),
|
||||
r = o(e(402));
|
||||
(a.BboxMethods = {}),
|
||||
(a.BboxMethods.BBox = function (t, a) {
|
||||
for (
|
||||
var e,
|
||||
o,
|
||||
n,
|
||||
i = t.GetBrackets(a, ''),
|
||||
l = t.ParseArg(a),
|
||||
x = i.split(/,/),
|
||||
M = 0,
|
||||
s = x.length;
|
||||
M < s;
|
||||
M++
|
||||
) {
|
||||
var c = x[M].trim(),
|
||||
d = c.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/);
|
||||
if (d) {
|
||||
if (e)
|
||||
throw new r.default(
|
||||
'MultipleBBoxProperty',
|
||||
'%1 specified twice in %2',
|
||||
'Padding',
|
||||
a,
|
||||
);
|
||||
var f = u(d[1] + d[3]);
|
||||
f &&
|
||||
(e = {
|
||||
height: '+' + f,
|
||||
depth: '+' + f,
|
||||
lspace: f,
|
||||
width: '+' + 2 * parseInt(d[1], 10) + d[3],
|
||||
});
|
||||
} else if (c.match(/^([a-z0-9]+|\#[0-9a-f]{6}|\#[0-9a-f]{3})$/i)) {
|
||||
if (o)
|
||||
throw new r.default(
|
||||
'MultipleBBoxProperty',
|
||||
'%1 specified twice in %2',
|
||||
'Background',
|
||||
a,
|
||||
);
|
||||
o = c;
|
||||
} else if (c.match(/^[-a-z]+:/i)) {
|
||||
if (n)
|
||||
throw new r.default(
|
||||
'MultipleBBoxProperty',
|
||||
'%1 specified twice in %2',
|
||||
'Style',
|
||||
a,
|
||||
);
|
||||
n = p(c);
|
||||
} else if ('' !== c)
|
||||
throw new r.default(
|
||||
'InvalidBBoxProperty',
|
||||
'"%1" doesn\'t look like a color, a padding dimension, or a style',
|
||||
c,
|
||||
);
|
||||
}
|
||||
e && (l = t.create('node', 'mpadded', [l], e)),
|
||||
(o || n) &&
|
||||
((e = {}),
|
||||
o && Object.assign(e, { mathbackground: o }),
|
||||
n && Object.assign(e, { style: n }),
|
||||
(l = t.create('node', 'mstyle', [l], e))),
|
||||
t.Push(l);
|
||||
});
|
||||
var p = function (t) {
|
||||
return t;
|
||||
},
|
||||
u = function (t) {
|
||||
return t;
|
||||
};
|
||||
new i.CommandMap('bbox', { bbox: 'BBox' }, a.BboxMethods),
|
||||
(a.BboxConfiguration = n.Configuration.create('bbox', {
|
||||
handler: { macro: ['bbox'] },
|
||||
}));
|
||||
},
|
||||
955: function (t, a) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(a.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(a.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(a.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
871: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(a.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(a.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(a.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(a.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(a.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(a.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(a.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(a.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
402: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.default = MathJax._.input.tex.TexError.default);
|
||||
},
|
||||
},
|
||||
n = {};
|
||||
function i(t) {
|
||||
var a = n[t];
|
||||
if (void 0 !== a) return a.exports;
|
||||
var e = (n[t] = { exports: {} });
|
||||
return o[t].call(e.exports, e, e.exports, i), e.exports;
|
||||
}
|
||||
(t = i(955)),
|
||||
(a = i(667)),
|
||||
(e = i(133)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/bbox', a.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { bbox: { BboxConfiguration: e } } } } });
|
||||
})();
|
||||
@@ -1,168 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
a,
|
||||
o,
|
||||
e = {
|
||||
667: function (t, a) {
|
||||
(a.q = void 0), (a.q = '3.2.2');
|
||||
},
|
||||
986: function (t, a, o) {
|
||||
var e =
|
||||
(this && this.__values) ||
|
||||
function (t) {
|
||||
var a = 'function' == typeof Symbol && Symbol.iterator,
|
||||
o = a && t[a],
|
||||
e = 0;
|
||||
if (o) return o.call(t);
|
||||
if (t && 'number' == typeof t.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
t && e >= t.length && (t = void 0),
|
||||
{ value: t && t[e++], done: !t }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
a ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
},
|
||||
n =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.BoldsymbolConfiguration =
|
||||
a.rewriteBoldTokens =
|
||||
a.createBoldToken =
|
||||
a.BoldsymbolMethods =
|
||||
void 0);
|
||||
var r = o(251),
|
||||
i = n(o(748)),
|
||||
l = o(108),
|
||||
s = o(871),
|
||||
u = o(348),
|
||||
d = {};
|
||||
function x(t, a, o, e) {
|
||||
var n = u.NodeFactory.createToken(t, a, o, e);
|
||||
return (
|
||||
'mtext' !== a &&
|
||||
t.configuration.parser.stack.env.boldsymbol &&
|
||||
(i.default.setProperty(n, 'fixBold', !0),
|
||||
t.configuration.addNode('fixBold', n)),
|
||||
n
|
||||
);
|
||||
}
|
||||
function p(t) {
|
||||
var a, o;
|
||||
try {
|
||||
for (
|
||||
var n = e(t.data.getList('fixBold')), r = n.next();
|
||||
!r.done;
|
||||
r = n.next()
|
||||
) {
|
||||
var s = r.value;
|
||||
if (i.default.getProperty(s, 'fixBold')) {
|
||||
var u = i.default.getAttribute(s, 'mathvariant');
|
||||
null == u
|
||||
? i.default.setAttribute(
|
||||
s,
|
||||
'mathvariant',
|
||||
l.TexConstant.Variant.BOLD,
|
||||
)
|
||||
: i.default.setAttribute(s, 'mathvariant', d[u] || u),
|
||||
i.default.removeProperties(s, 'fixBold');
|
||||
}
|
||||
}
|
||||
} catch (t) {
|
||||
a = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
r && !r.done && (o = n.return) && o.call(n);
|
||||
} finally {
|
||||
if (a) throw a.error;
|
||||
}
|
||||
}
|
||||
}
|
||||
(d[l.TexConstant.Variant.NORMAL] = l.TexConstant.Variant.BOLD),
|
||||
(d[l.TexConstant.Variant.ITALIC] = l.TexConstant.Variant.BOLDITALIC),
|
||||
(d[l.TexConstant.Variant.FRAKTUR] = l.TexConstant.Variant.BOLDFRAKTUR),
|
||||
(d[l.TexConstant.Variant.SCRIPT] = l.TexConstant.Variant.BOLDSCRIPT),
|
||||
(d[l.TexConstant.Variant.SANSSERIF] = l.TexConstant.Variant.BOLDSANSSERIF),
|
||||
(d['-tex-calligraphic'] = '-tex-bold-calligraphic'),
|
||||
(d['-tex-oldstyle'] = '-tex-bold-oldstyle'),
|
||||
(d['-tex-mathit'] = l.TexConstant.Variant.BOLDITALIC),
|
||||
(a.BoldsymbolMethods = {}),
|
||||
(a.BoldsymbolMethods.Boldsymbol = function (t, a) {
|
||||
var o = t.stack.env.boldsymbol;
|
||||
t.stack.env.boldsymbol = !0;
|
||||
var e = t.ParseArg(a);
|
||||
(t.stack.env.boldsymbol = o), t.Push(e);
|
||||
}),
|
||||
new s.CommandMap(
|
||||
'boldsymbol',
|
||||
{ boldsymbol: 'Boldsymbol' },
|
||||
a.BoldsymbolMethods,
|
||||
),
|
||||
(a.createBoldToken = x),
|
||||
(a.rewriteBoldTokens = p),
|
||||
(a.BoldsymbolConfiguration = r.Configuration.create('boldsymbol', {
|
||||
handler: { macro: ['boldsymbol'] },
|
||||
nodes: { token: x },
|
||||
postprocessors: [p],
|
||||
}));
|
||||
},
|
||||
955: function (t, a) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(a.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(a.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(a.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
348: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.NodeFactory = MathJax._.input.tex.NodeFactory.NodeFactory);
|
||||
},
|
||||
748: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.default = MathJax._.input.tex.NodeUtil.default);
|
||||
},
|
||||
871: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(a.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(a.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(a.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(a.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(a.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(a.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(a.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(a.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
108: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.TexConstant = MathJax._.input.tex.TexConstants.TexConstant);
|
||||
},
|
||||
},
|
||||
n = {};
|
||||
function r(t) {
|
||||
var a = n[t];
|
||||
if (void 0 !== a) return a.exports;
|
||||
var o = (n[t] = { exports: {} });
|
||||
return e[t].call(o.exports, o, o.exports, r), o.exports;
|
||||
}
|
||||
(t = r(955)),
|
||||
(a = r(667)),
|
||||
(o = r(986)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/boldsymbol', a.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { boldsymbol: { BoldsymbolConfiguration: o } } } } });
|
||||
})();
|
||||
@@ -1,311 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
e,
|
||||
a,
|
||||
r,
|
||||
o,
|
||||
n = {
|
||||
667: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
243: function (t, e, a) {
|
||||
var r;
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.BraketConfiguration = void 0);
|
||||
var o = a(251),
|
||||
n = a(519);
|
||||
a(299),
|
||||
(e.BraketConfiguration = o.Configuration.create('braket', {
|
||||
handler: { character: ['Braket-characters'], macro: ['Braket-macros'] },
|
||||
items: ((r = {}), (r[n.BraketItem.prototype.kind] = n.BraketItem), r),
|
||||
}));
|
||||
},
|
||||
519: function (t, e, a) {
|
||||
var r,
|
||||
o =
|
||||
(this && this.__extends) ||
|
||||
((r = function (t, e) {
|
||||
return (
|
||||
(r =
|
||||
Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array &&
|
||||
function (t, e) {
|
||||
t.__proto__ = e;
|
||||
}) ||
|
||||
function (t, e) {
|
||||
for (var a in e)
|
||||
Object.prototype.hasOwnProperty.call(e, a) &&
|
||||
(t[a] = e[a]);
|
||||
}),
|
||||
r(t, e)
|
||||
);
|
||||
}),
|
||||
function (t, e) {
|
||||
if ('function' != typeof e && null !== e)
|
||||
throw new TypeError(
|
||||
'Class extends value ' +
|
||||
String(e) +
|
||||
' is not a constructor or null',
|
||||
);
|
||||
function a() {
|
||||
this.constructor = t;
|
||||
}
|
||||
r(t, e),
|
||||
(t.prototype =
|
||||
null === e
|
||||
? Object.create(e)
|
||||
: ((a.prototype = e.prototype), new a()));
|
||||
}),
|
||||
n =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }), (e.BraketItem = void 0);
|
||||
var i = a(76),
|
||||
l = a(801),
|
||||
c = n(a(398)),
|
||||
s = (function (t) {
|
||||
function e() {
|
||||
return (null !== t && t.apply(this, arguments)) || this;
|
||||
}
|
||||
return (
|
||||
o(e, t),
|
||||
Object.defineProperty(e.prototype, 'kind', {
|
||||
get: function () {
|
||||
return 'braket';
|
||||
},
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
}),
|
||||
Object.defineProperty(e.prototype, 'isOpen', {
|
||||
get: function () {
|
||||
return !0;
|
||||
},
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
}),
|
||||
(e.prototype.checkItem = function (e) {
|
||||
return e.isKind('close')
|
||||
? [[this.factory.create('mml', this.toMml())], !0]
|
||||
: e.isKind('mml')
|
||||
? (this.Push(e.toMml()),
|
||||
this.getProperty('single')
|
||||
? [[this.toMml()], !0]
|
||||
: i.BaseItem.fail)
|
||||
: t.prototype.checkItem.call(this, e);
|
||||
}),
|
||||
(e.prototype.toMml = function () {
|
||||
var e = t.prototype.toMml.call(this),
|
||||
a = this.getProperty('open'),
|
||||
r = this.getProperty('close');
|
||||
if (this.getProperty('stretchy'))
|
||||
return c.default.fenced(this.factory.configuration, a, e, r);
|
||||
var o = {
|
||||
fence: !0,
|
||||
stretchy: !1,
|
||||
symmetric: !0,
|
||||
texClass: l.TEXCLASS.OPEN,
|
||||
},
|
||||
n = this.create('token', 'mo', o, a);
|
||||
o.texClass = l.TEXCLASS.CLOSE;
|
||||
var i = this.create('token', 'mo', o, r);
|
||||
return this.create('node', 'mrow', [n, e, i], {
|
||||
open: a,
|
||||
close: r,
|
||||
texClass: l.TEXCLASS.INNER,
|
||||
});
|
||||
}),
|
||||
e
|
||||
);
|
||||
})(i.BaseItem);
|
||||
e.BraketItem = s;
|
||||
},
|
||||
299: function (t, e, a) {
|
||||
var r =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 });
|
||||
var o = a(871),
|
||||
n = r(a(277));
|
||||
new o.CommandMap(
|
||||
'Braket-macros',
|
||||
{
|
||||
bra: ['Macro', '{\\langle {#1} \\vert}', 1],
|
||||
ket: ['Macro', '{\\vert {#1} \\rangle}', 1],
|
||||
braket: ['Braket', '\u27e8', '\u27e9', !1, 1 / 0],
|
||||
set: ['Braket', '{', '}', !1, 1],
|
||||
Bra: ['Macro', '{\\left\\langle {#1} \\right\\vert}', 1],
|
||||
Ket: ['Macro', '{\\left\\vert {#1} \\right\\rangle}', 1],
|
||||
Braket: ['Braket', '\u27e8', '\u27e9', !0, 1 / 0],
|
||||
Set: ['Braket', '{', '}', !0, 1],
|
||||
ketbra: ['Macro', '{\\vert {#1} \\rangle\\langle {#2} \\vert}', 2],
|
||||
Ketbra: [
|
||||
'Macro',
|
||||
'{\\left\\vert {#1} \\right\\rangle\\left\\langle {#2} \\right\\vert}',
|
||||
2,
|
||||
],
|
||||
'|': 'Bar',
|
||||
},
|
||||
n.default,
|
||||
),
|
||||
new o.MacroMap('Braket-characters', { '|': 'Bar' }, n.default);
|
||||
},
|
||||
277: function (t, e, a) {
|
||||
var r =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 });
|
||||
var o = r(a(360)),
|
||||
n = a(801),
|
||||
i = r(a(402)),
|
||||
l = {};
|
||||
(l.Macro = o.default.Macro),
|
||||
(l.Braket = function (t, e, a, r, o, n) {
|
||||
var l = t.GetNext();
|
||||
if ('' === l)
|
||||
throw new i.default(
|
||||
'MissingArgFor',
|
||||
'Missing argument for %1',
|
||||
t.currentCS,
|
||||
);
|
||||
var c = !0;
|
||||
'{' === l && (t.i++, (c = !1)),
|
||||
t.Push(
|
||||
t.itemFactory.create('braket').setProperties({
|
||||
barmax: n,
|
||||
barcount: 0,
|
||||
open: a,
|
||||
close: r,
|
||||
stretchy: o,
|
||||
single: c,
|
||||
}),
|
||||
);
|
||||
}),
|
||||
(l.Bar = function (t, e) {
|
||||
var a = '|' === e ? '|' : '\u2225',
|
||||
r = t.stack.Top();
|
||||
if (
|
||||
'braket' !== r.kind ||
|
||||
r.getProperty('barcount') >= r.getProperty('barmax')
|
||||
) {
|
||||
var o = t.create(
|
||||
'token',
|
||||
'mo',
|
||||
{ texClass: n.TEXCLASS.ORD, stretchy: !1 },
|
||||
a,
|
||||
);
|
||||
t.Push(o);
|
||||
} else {
|
||||
if (
|
||||
('|' === a && '|' === t.GetNext() && (t.i++, (a = '\u2225')),
|
||||
r.getProperty('stretchy'))
|
||||
) {
|
||||
var i = t.create('node', 'TeXAtom', [], {
|
||||
texClass: n.TEXCLASS.CLOSE,
|
||||
});
|
||||
t.Push(i),
|
||||
r.setProperty('barcount', r.getProperty('barcount') + 1),
|
||||
(i = t.create(
|
||||
'token',
|
||||
'mo',
|
||||
{ stretchy: !0, braketbar: !0 },
|
||||
a,
|
||||
)),
|
||||
t.Push(i),
|
||||
(i = t.create('node', 'TeXAtom', [], {
|
||||
texClass: n.TEXCLASS.OPEN,
|
||||
})),
|
||||
t.Push(i);
|
||||
} else {
|
||||
var l = t.create('token', 'mo', { stretchy: !1, braketbar: !0 }, a);
|
||||
t.Push(l);
|
||||
}
|
||||
}
|
||||
}),
|
||||
(e.default = l);
|
||||
},
|
||||
955: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
801: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.TEXCLASS = MathJax._.core.MmlTree.MmlNode.TEXCLASS),
|
||||
(e.TEXCLASSNAMES = MathJax._.core.MmlTree.MmlNode.TEXCLASSNAMES),
|
||||
(e.indentAttributes = MathJax._.core.MmlTree.MmlNode.indentAttributes),
|
||||
(e.AbstractMmlNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlNode),
|
||||
(e.AbstractMmlTokenNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlTokenNode),
|
||||
(e.AbstractMmlLayoutNode =
|
||||
MathJax._.core.MmlTree.MmlNode.AbstractMmlLayoutNode),
|
||||
(e.AbstractMmlBaseNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlBaseNode),
|
||||
(e.AbstractMmlEmptyNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlEmptyNode),
|
||||
(e.TextNode = MathJax._.core.MmlTree.MmlNode.TextNode),
|
||||
(e.XMLNode = MathJax._.core.MmlTree.MmlNode.XMLNode);
|
||||
},
|
||||
251: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(e.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(e.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
398: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.ParseUtil.default);
|
||||
},
|
||||
76: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.MmlStack = MathJax._.input.tex.StackItem.MmlStack),
|
||||
(e.BaseItem = MathJax._.input.tex.StackItem.BaseItem);
|
||||
},
|
||||
871: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(e.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(e.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(e.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(e.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(e.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(e.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(e.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(e.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
402: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.TexError.default);
|
||||
},
|
||||
360: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.base.BaseMethods.default);
|
||||
},
|
||||
},
|
||||
i = {};
|
||||
function l(t) {
|
||||
var e = i[t];
|
||||
if (void 0 !== e) return e.exports;
|
||||
var a = (i[t] = { exports: {} });
|
||||
return n[t].call(a.exports, a, a.exports, l), a.exports;
|
||||
}
|
||||
(t = l(955)),
|
||||
(e = l(667)),
|
||||
(a = l(243)),
|
||||
(r = l(519)),
|
||||
(o = l(277)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/braket', e.q, 'tex-extension'),
|
||||
(0, t.r8)({
|
||||
_: {
|
||||
input: {
|
||||
tex: { braket: { BraketConfiguration: a, BraketItems: r, BraketMethods: o } },
|
||||
},
|
||||
},
|
||||
});
|
||||
})();
|
||||
@@ -1,906 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var e,
|
||||
t,
|
||||
r,
|
||||
o,
|
||||
n,
|
||||
a,
|
||||
i = {
|
||||
667: function (e, t) {
|
||||
(t.q = void 0), (t.q = '3.2.2');
|
||||
},
|
||||
333: function (e, t, r) {
|
||||
var o;
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.BussproofsConfiguration = void 0);
|
||||
var n = r(251),
|
||||
a = r(854),
|
||||
i = r(378);
|
||||
r(116),
|
||||
(t.BussproofsConfiguration = n.Configuration.create('bussproofs', {
|
||||
handler: {
|
||||
macro: ['Bussproofs-macros'],
|
||||
environment: ['Bussproofs-environments'],
|
||||
},
|
||||
items: ((o = {}), (o[a.ProofTreeItem.prototype.kind] = a.ProofTreeItem), o),
|
||||
preprocessors: [[i.saveDocument, 1]],
|
||||
postprocessors: [
|
||||
[i.clearDocument, 3],
|
||||
[i.makeBsprAttributes, 2],
|
||||
[i.balanceRules, 1],
|
||||
],
|
||||
}));
|
||||
},
|
||||
854: function (e, t, r) {
|
||||
var o,
|
||||
n =
|
||||
(this && this.__extends) ||
|
||||
((o = function (e, t) {
|
||||
return (
|
||||
(o =
|
||||
Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array &&
|
||||
function (e, t) {
|
||||
e.__proto__ = t;
|
||||
}) ||
|
||||
function (e, t) {
|
||||
for (var r in t)
|
||||
Object.prototype.hasOwnProperty.call(t, r) &&
|
||||
(e[r] = t[r]);
|
||||
}),
|
||||
o(e, t)
|
||||
);
|
||||
}),
|
||||
function (e, t) {
|
||||
if ('function' != typeof t && null !== t)
|
||||
throw new TypeError(
|
||||
'Class extends value ' +
|
||||
String(t) +
|
||||
' is not a constructor or null',
|
||||
);
|
||||
function r() {
|
||||
this.constructor = e;
|
||||
}
|
||||
o(e, t),
|
||||
(e.prototype =
|
||||
null === t
|
||||
? Object.create(t)
|
||||
: ((r.prototype = t.prototype), new r()));
|
||||
}),
|
||||
a =
|
||||
(this && this.__createBinding) ||
|
||||
(Object.create
|
||||
? function (e, t, r, o) {
|
||||
void 0 === o && (o = r);
|
||||
var n = Object.getOwnPropertyDescriptor(t, r);
|
||||
(n &&
|
||||
!('get' in n
|
||||
? !t.__esModule
|
||||
: n.writable || n.configurable)) ||
|
||||
(n = {
|
||||
enumerable: !0,
|
||||
get: function () {
|
||||
return t[r];
|
||||
},
|
||||
}),
|
||||
Object.defineProperty(e, o, n);
|
||||
}
|
||||
: function (e, t, r, o) {
|
||||
void 0 === o && (o = r), (e[o] = t[r]);
|
||||
}),
|
||||
i =
|
||||
(this && this.__setModuleDefault) ||
|
||||
(Object.create
|
||||
? function (e, t) {
|
||||
Object.defineProperty(e, 'default', { enumerable: !0, value: t });
|
||||
}
|
||||
: function (e, t) {
|
||||
e.default = t;
|
||||
}),
|
||||
l =
|
||||
(this && this.__importStar) ||
|
||||
function (e) {
|
||||
if (e && e.__esModule) return e;
|
||||
var t = {};
|
||||
if (null != e)
|
||||
for (var r in e)
|
||||
'default' !== r &&
|
||||
Object.prototype.hasOwnProperty.call(e, r) &&
|
||||
a(t, e, r);
|
||||
return i(t, e), t;
|
||||
},
|
||||
u =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }), (t.ProofTreeItem = void 0);
|
||||
var f = u(r(402)),
|
||||
s = r(76),
|
||||
d = u(r(935)),
|
||||
c = l(r(378)),
|
||||
p = (function (e) {
|
||||
function t() {
|
||||
var t = (null !== e && e.apply(this, arguments)) || this;
|
||||
return (
|
||||
(t.leftLabel = null),
|
||||
(t.rigthLabel = null),
|
||||
(t.innerStack = new d.default(t.factory, {}, !0)),
|
||||
t
|
||||
);
|
||||
}
|
||||
return (
|
||||
n(t, e),
|
||||
Object.defineProperty(t.prototype, 'kind', {
|
||||
get: function () {
|
||||
return 'proofTree';
|
||||
},
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
}),
|
||||
(t.prototype.checkItem = function (e) {
|
||||
if (e.isKind('end') && 'prooftree' === e.getName()) {
|
||||
var t = this.toMml();
|
||||
return (
|
||||
c.setProperty(t, 'proof', !0),
|
||||
[[this.factory.create('mml', t), e], !0]
|
||||
);
|
||||
}
|
||||
if (e.isKind('stop'))
|
||||
throw new f.default(
|
||||
'EnvMissingEnd',
|
||||
'Missing \\end{%1}',
|
||||
this.getName(),
|
||||
);
|
||||
return this.innerStack.Push(e), s.BaseItem.fail;
|
||||
}),
|
||||
(t.prototype.toMml = function () {
|
||||
var t = e.prototype.toMml.call(this),
|
||||
r = this.innerStack.Top();
|
||||
if (r.isKind('start') && !r.Size()) return t;
|
||||
this.innerStack.Push(this.factory.create('stop'));
|
||||
var o = this.innerStack.Top().toMml();
|
||||
return this.create('node', 'mrow', [o, t], {});
|
||||
}),
|
||||
t
|
||||
);
|
||||
})(s.BaseItem);
|
||||
t.ProofTreeItem = p;
|
||||
},
|
||||
116: function (e, t, r) {
|
||||
var o =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var n = o(r(827)),
|
||||
a = o(r(945)),
|
||||
i = r(871);
|
||||
new i.CommandMap(
|
||||
'Bussproofs-macros',
|
||||
{
|
||||
AxiomC: 'Axiom',
|
||||
UnaryInfC: ['Inference', 1],
|
||||
BinaryInfC: ['Inference', 2],
|
||||
TrinaryInfC: ['Inference', 3],
|
||||
QuaternaryInfC: ['Inference', 4],
|
||||
QuinaryInfC: ['Inference', 5],
|
||||
RightLabel: ['Label', 'right'],
|
||||
LeftLabel: ['Label', 'left'],
|
||||
AXC: 'Axiom',
|
||||
UIC: ['Inference', 1],
|
||||
BIC: ['Inference', 2],
|
||||
TIC: ['Inference', 3],
|
||||
RL: ['Label', 'right'],
|
||||
LL: ['Label', 'left'],
|
||||
noLine: ['SetLine', 'none', !1],
|
||||
singleLine: ['SetLine', 'solid', !1],
|
||||
solidLine: ['SetLine', 'solid', !1],
|
||||
dashedLine: ['SetLine', 'dashed', !1],
|
||||
alwaysNoLine: ['SetLine', 'none', !0],
|
||||
alwaysSingleLine: ['SetLine', 'solid', !0],
|
||||
alwaysSolidLine: ['SetLine', 'solid', !0],
|
||||
alwaysDashedLine: ['SetLine', 'dashed', !0],
|
||||
rootAtTop: ['RootAtTop', !0],
|
||||
alwaysRootAtTop: ['RootAtTop', !0],
|
||||
rootAtBottom: ['RootAtTop', !1],
|
||||
alwaysRootAtBottom: ['RootAtTop', !1],
|
||||
fCenter: 'FCenter',
|
||||
Axiom: 'AxiomF',
|
||||
UnaryInf: ['InferenceF', 1],
|
||||
BinaryInf: ['InferenceF', 2],
|
||||
TrinaryInf: ['InferenceF', 3],
|
||||
QuaternaryInf: ['InferenceF', 4],
|
||||
QuinaryInf: ['InferenceF', 5],
|
||||
},
|
||||
n.default,
|
||||
),
|
||||
new i.EnvironmentMap(
|
||||
'Bussproofs-environments',
|
||||
a.default.environment,
|
||||
{ prooftree: ['Prooftree', null, !1] },
|
||||
n.default,
|
||||
);
|
||||
},
|
||||
827: function (e, t, r) {
|
||||
var o =
|
||||
(this && this.__createBinding) ||
|
||||
(Object.create
|
||||
? function (e, t, r, o) {
|
||||
void 0 === o && (o = r);
|
||||
var n = Object.getOwnPropertyDescriptor(t, r);
|
||||
(n &&
|
||||
!('get' in n
|
||||
? !t.__esModule
|
||||
: n.writable || n.configurable)) ||
|
||||
(n = {
|
||||
enumerable: !0,
|
||||
get: function () {
|
||||
return t[r];
|
||||
},
|
||||
}),
|
||||
Object.defineProperty(e, o, n);
|
||||
}
|
||||
: function (e, t, r, o) {
|
||||
void 0 === o && (o = r), (e[o] = t[r]);
|
||||
}),
|
||||
n =
|
||||
(this && this.__setModuleDefault) ||
|
||||
(Object.create
|
||||
? function (e, t) {
|
||||
Object.defineProperty(e, 'default', { enumerable: !0, value: t });
|
||||
}
|
||||
: function (e, t) {
|
||||
e.default = t;
|
||||
}),
|
||||
a =
|
||||
(this && this.__importStar) ||
|
||||
function (e) {
|
||||
if (e && e.__esModule) return e;
|
||||
var t = {};
|
||||
if (null != e)
|
||||
for (var r in e)
|
||||
'default' !== r &&
|
||||
Object.prototype.hasOwnProperty.call(e, r) &&
|
||||
o(t, e, r);
|
||||
return n(t, e), t;
|
||||
},
|
||||
i =
|
||||
(this && this.__read) ||
|
||||
function (e, t) {
|
||||
var r = 'function' == typeof Symbol && e[Symbol.iterator];
|
||||
if (!r) return e;
|
||||
var o,
|
||||
n,
|
||||
a = r.call(e),
|
||||
i = [];
|
||||
try {
|
||||
for (; (void 0 === t || t-- > 0) && !(o = a.next()).done; )
|
||||
i.push(o.value);
|
||||
} catch (e) {
|
||||
n = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
o && !o.done && (r = a.return) && r.call(a);
|
||||
} finally {
|
||||
if (n) throw n.error;
|
||||
}
|
||||
}
|
||||
return i;
|
||||
},
|
||||
l =
|
||||
(this && this.__spreadArray) ||
|
||||
function (e, t, r) {
|
||||
if (r || 2 === arguments.length)
|
||||
for (var o, n = 0, a = t.length; n < a; n++)
|
||||
(!o && n in t) ||
|
||||
(o || (o = Array.prototype.slice.call(t, 0, n)),
|
||||
(o[n] = t[n]));
|
||||
return e.concat(o || Array.prototype.slice.call(t));
|
||||
},
|
||||
u =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var f = u(r(402)),
|
||||
s = u(r(193)),
|
||||
d = u(r(398)),
|
||||
c = a(r(378)),
|
||||
p = {
|
||||
Prooftree: function (e, t) {
|
||||
return (
|
||||
e.Push(t),
|
||||
e.itemFactory.create('proofTree').setProperties({
|
||||
name: t.getName(),
|
||||
line: 'solid',
|
||||
currentLine: 'solid',
|
||||
rootAtTop: !1,
|
||||
})
|
||||
);
|
||||
},
|
||||
Axiom: function (e, t) {
|
||||
var r = e.stack.Top();
|
||||
if ('proofTree' !== r.kind)
|
||||
throw new f.default(
|
||||
'IllegalProofCommand',
|
||||
'Proof commands only allowed in prooftree environment.',
|
||||
);
|
||||
var o = m(e, e.GetArgument(t));
|
||||
c.setProperty(o, 'axiom', !0), r.Push(o);
|
||||
},
|
||||
},
|
||||
m = function (e, t) {
|
||||
var r = d.default.internalMath(e, d.default.trimSpaces(t), 0);
|
||||
if (!r[0].childNodes[0].childNodes.length)
|
||||
return e.create('node', 'mrow', []);
|
||||
var o = e.create('node', 'mspace', [], { width: '.5ex' }),
|
||||
n = e.create('node', 'mspace', [], { width: '.5ex' });
|
||||
return e.create('node', 'mrow', l(l([o], i(r), !1), [n], !1));
|
||||
};
|
||||
function h(e, t, r, o, n, a, i) {
|
||||
var l,
|
||||
u,
|
||||
f,
|
||||
s,
|
||||
d = e.create('node', 'mtr', [e.create('node', 'mtd', [t], {})], {}),
|
||||
p = e.create('node', 'mtr', [e.create('node', 'mtd', r, {})], {}),
|
||||
m = e.create('node', 'mtable', i ? [p, d] : [d, p], {
|
||||
align: 'top 2',
|
||||
rowlines: a,
|
||||
framespacing: '0 0',
|
||||
});
|
||||
if (
|
||||
(c.setProperty(m, 'inferenceRule', i ? 'up' : 'down'),
|
||||
o &&
|
||||
((l = e.create('node', 'mpadded', [o], {
|
||||
height: '+.5em',
|
||||
width: '+.5em',
|
||||
voffset: '-.15em',
|
||||
})),
|
||||
c.setProperty(l, 'prooflabel', 'left')),
|
||||
n &&
|
||||
((u = e.create('node', 'mpadded', [n], {
|
||||
height: '+.5em',
|
||||
width: '+.5em',
|
||||
voffset: '-.15em',
|
||||
})),
|
||||
c.setProperty(u, 'prooflabel', 'right')),
|
||||
o && n)
|
||||
)
|
||||
(f = [l, m, u]), (s = 'both');
|
||||
else if (o) (f = [l, m]), (s = 'left');
|
||||
else {
|
||||
if (!n) return m;
|
||||
(f = [m, u]), (s = 'right');
|
||||
}
|
||||
return (
|
||||
(m = e.create('node', 'mrow', f)), c.setProperty(m, 'labelledRule', s), m
|
||||
);
|
||||
}
|
||||
function y(e, t) {
|
||||
if ('$' !== e.GetNext())
|
||||
throw new f.default(
|
||||
'IllegalUseOfCommand',
|
||||
"Use of %1 does not match it's definition.",
|
||||
t,
|
||||
);
|
||||
e.i++;
|
||||
var r = e.GetUpTo(t, '$');
|
||||
if (-1 === r.indexOf('\\fCenter'))
|
||||
throw new f.default('IllegalUseOfCommand', 'Missing \\fCenter in %1.', t);
|
||||
var o = i(r.split('\\fCenter'), 2),
|
||||
n = o[0],
|
||||
a = o[1],
|
||||
l = new s.default(n, e.stack.env, e.configuration).mml(),
|
||||
u = new s.default(a, e.stack.env, e.configuration).mml(),
|
||||
d = new s.default('\\fCenter', e.stack.env, e.configuration).mml(),
|
||||
p = e.create('node', 'mtd', [l], {}),
|
||||
m = e.create('node', 'mtd', [d], {}),
|
||||
h = e.create('node', 'mtd', [u], {}),
|
||||
y = e.create('node', 'mtr', [p, m, h], {}),
|
||||
v = e.create('node', 'mtable', [y], {
|
||||
columnspacing: '.5ex',
|
||||
columnalign: 'center 2',
|
||||
});
|
||||
return (
|
||||
c.setProperty(v, 'sequent', !0), e.configuration.addNode('sequent', y), v
|
||||
);
|
||||
}
|
||||
(p.Inference = function (e, t, r) {
|
||||
var o = e.stack.Top();
|
||||
if ('proofTree' !== o.kind)
|
||||
throw new f.default(
|
||||
'IllegalProofCommand',
|
||||
'Proof commands only allowed in prooftree environment.',
|
||||
);
|
||||
if (o.Size() < r)
|
||||
throw new f.default('BadProofTree', 'Proof tree badly specified.');
|
||||
var n = o.getProperty('rootAtTop'),
|
||||
a = 1 !== r || o.Peek()[0].childNodes.length ? r : 0,
|
||||
i = [];
|
||||
do {
|
||||
i.length && i.unshift(e.create('node', 'mtd', [], {})),
|
||||
i.unshift(
|
||||
e.create('node', 'mtd', [o.Pop()], {
|
||||
rowalign: n ? 'top' : 'bottom',
|
||||
}),
|
||||
),
|
||||
r--;
|
||||
} while (r > 0);
|
||||
var l = e.create('node', 'mtr', i, {}),
|
||||
u = e.create('node', 'mtable', [l], { framespacing: '0 0' }),
|
||||
s = m(e, e.GetArgument(t)),
|
||||
d = o.getProperty('currentLine');
|
||||
d !== o.getProperty('line') &&
|
||||
o.setProperty('currentLine', o.getProperty('line'));
|
||||
var p = h(e, u, [s], o.getProperty('left'), o.getProperty('right'), d, n);
|
||||
o.setProperty('left', null),
|
||||
o.setProperty('right', null),
|
||||
c.setProperty(p, 'inference', a),
|
||||
e.configuration.addNode('inference', p),
|
||||
o.Push(p);
|
||||
}),
|
||||
(p.Label = function (e, t, r) {
|
||||
var o = e.stack.Top();
|
||||
if ('proofTree' !== o.kind)
|
||||
throw new f.default(
|
||||
'IllegalProofCommand',
|
||||
'Proof commands only allowed in prooftree environment.',
|
||||
);
|
||||
var n = d.default.internalMath(e, e.GetArgument(t), 0),
|
||||
a = n.length > 1 ? e.create('node', 'mrow', n, {}) : n[0];
|
||||
o.setProperty(r, a);
|
||||
}),
|
||||
(p.SetLine = function (e, t, r, o) {
|
||||
var n = e.stack.Top();
|
||||
if ('proofTree' !== n.kind)
|
||||
throw new f.default(
|
||||
'IllegalProofCommand',
|
||||
'Proof commands only allowed in prooftree environment.',
|
||||
);
|
||||
n.setProperty('currentLine', r), o && n.setProperty('line', r);
|
||||
}),
|
||||
(p.RootAtTop = function (e, t, r) {
|
||||
var o = e.stack.Top();
|
||||
if ('proofTree' !== o.kind)
|
||||
throw new f.default(
|
||||
'IllegalProofCommand',
|
||||
'Proof commands only allowed in prooftree environment.',
|
||||
);
|
||||
o.setProperty('rootAtTop', r);
|
||||
}),
|
||||
(p.AxiomF = function (e, t) {
|
||||
var r = e.stack.Top();
|
||||
if ('proofTree' !== r.kind)
|
||||
throw new f.default(
|
||||
'IllegalProofCommand',
|
||||
'Proof commands only allowed in prooftree environment.',
|
||||
);
|
||||
var o = y(e, t);
|
||||
c.setProperty(o, 'axiom', !0), r.Push(o);
|
||||
}),
|
||||
(p.FCenter = function (e, t) {}),
|
||||
(p.InferenceF = function (e, t, r) {
|
||||
var o = e.stack.Top();
|
||||
if ('proofTree' !== o.kind)
|
||||
throw new f.default(
|
||||
'IllegalProofCommand',
|
||||
'Proof commands only allowed in prooftree environment.',
|
||||
);
|
||||
if (o.Size() < r)
|
||||
throw new f.default('BadProofTree', 'Proof tree badly specified.');
|
||||
var n = o.getProperty('rootAtTop'),
|
||||
a = 1 !== r || o.Peek()[0].childNodes.length ? r : 0,
|
||||
i = [];
|
||||
do {
|
||||
i.length && i.unshift(e.create('node', 'mtd', [], {})),
|
||||
i.unshift(
|
||||
e.create('node', 'mtd', [o.Pop()], {
|
||||
rowalign: n ? 'top' : 'bottom',
|
||||
}),
|
||||
),
|
||||
r--;
|
||||
} while (r > 0);
|
||||
var l = e.create('node', 'mtr', i, {}),
|
||||
u = e.create('node', 'mtable', [l], { framespacing: '0 0' }),
|
||||
s = y(e, t),
|
||||
d = o.getProperty('currentLine');
|
||||
d !== o.getProperty('line') &&
|
||||
o.setProperty('currentLine', o.getProperty('line'));
|
||||
var p = h(e, u, [s], o.getProperty('left'), o.getProperty('right'), d, n);
|
||||
o.setProperty('left', null),
|
||||
o.setProperty('right', null),
|
||||
c.setProperty(p, 'inference', a),
|
||||
e.configuration.addNode('inference', p),
|
||||
o.Push(p);
|
||||
}),
|
||||
(t.default = p);
|
||||
},
|
||||
378: function (e, t, r) {
|
||||
var o,
|
||||
n =
|
||||
(this && this.__read) ||
|
||||
function (e, t) {
|
||||
var r = 'function' == typeof Symbol && e[Symbol.iterator];
|
||||
if (!r) return e;
|
||||
var o,
|
||||
n,
|
||||
a = r.call(e),
|
||||
i = [];
|
||||
try {
|
||||
for (; (void 0 === t || t-- > 0) && !(o = a.next()).done; )
|
||||
i.push(o.value);
|
||||
} catch (e) {
|
||||
n = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
o && !o.done && (r = a.return) && r.call(a);
|
||||
} finally {
|
||||
if (n) throw n.error;
|
||||
}
|
||||
}
|
||||
return i;
|
||||
},
|
||||
a =
|
||||
(this && this.__values) ||
|
||||
function (e) {
|
||||
var t = 'function' == typeof Symbol && Symbol.iterator,
|
||||
r = t && e[t],
|
||||
o = 0;
|
||||
if (r) return r.call(e);
|
||||
if (e && 'number' == typeof e.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
e && o >= e.length && (e = void 0),
|
||||
{ value: e && e[o++], done: !e }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
t ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
},
|
||||
i =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.clearDocument =
|
||||
t.saveDocument =
|
||||
t.makeBsprAttributes =
|
||||
t.removeProperty =
|
||||
t.getProperty =
|
||||
t.setProperty =
|
||||
t.balanceRules =
|
||||
void 0);
|
||||
var l = i(r(748)),
|
||||
u = i(r(398)),
|
||||
f = null,
|
||||
s = null,
|
||||
d = function (e) {
|
||||
return (s.root = e), f.outputJax.getBBox(s, f).w;
|
||||
},
|
||||
c = function (e) {
|
||||
for (var t = 0; e && !l.default.isType(e, 'mtable'); ) {
|
||||
if (l.default.isType(e, 'text')) return null;
|
||||
l.default.isType(e, 'mrow')
|
||||
? ((e = e.childNodes[0]), (t = 0))
|
||||
: ((e = e.parent.childNodes[t]), t++);
|
||||
}
|
||||
return e;
|
||||
},
|
||||
p = function (e, t) {
|
||||
return e.childNodes['up' === t ? 1 : 0].childNodes[0].childNodes[0]
|
||||
.childNodes[0].childNodes[0];
|
||||
},
|
||||
m = function (e, t) {
|
||||
return e.childNodes[t].childNodes[0].childNodes[0];
|
||||
},
|
||||
h = function (e) {
|
||||
return m(e, 0);
|
||||
},
|
||||
y = function (e) {
|
||||
return m(e, e.childNodes.length - 1);
|
||||
},
|
||||
v = function (e, t) {
|
||||
return e.childNodes['up' === t ? 0 : 1].childNodes[0].childNodes[0]
|
||||
.childNodes[0];
|
||||
},
|
||||
P = function (e) {
|
||||
for (; e && !l.default.isType(e, 'mtd'); ) e = e.parent;
|
||||
return e;
|
||||
},
|
||||
g = function (e) {
|
||||
return e.parent.childNodes[e.parent.childNodes.indexOf(e) + 1];
|
||||
},
|
||||
b = function (e) {
|
||||
for (; e && null == (0, t.getProperty)(e, 'inference'); ) e = e.parent;
|
||||
return e;
|
||||
},
|
||||
_ = function (e, t, r) {
|
||||
void 0 === r && (r = !1);
|
||||
var o = 0;
|
||||
if (e === t) return o;
|
||||
if (e !== t.parent) {
|
||||
var n = e.childNodes,
|
||||
a = r ? n.length - 1 : 0;
|
||||
l.default.isType(n[a], 'mspace') && (o += d(n[a])), (e = t.parent);
|
||||
}
|
||||
if (e === t) return o;
|
||||
var i = e.childNodes,
|
||||
u = r ? i.length - 1 : 0;
|
||||
return i[u] !== t && (o += d(i[u])), o;
|
||||
},
|
||||
x = function (e, r) {
|
||||
void 0 === r && (r = !1);
|
||||
var o = c(e),
|
||||
n = v(o, (0, t.getProperty)(o, 'inferenceRule'));
|
||||
return _(e, o, r) + (d(o) - d(n)) / 2;
|
||||
},
|
||||
M = function (e, r, o, n) {
|
||||
if (
|
||||
(void 0 === n && (n = !1),
|
||||
(0, t.getProperty)(r, 'inferenceRule') ||
|
||||
(0, t.getProperty)(r, 'labelledRule'))
|
||||
) {
|
||||
var a = e.nodeFactory.create('node', 'mrow');
|
||||
r.parent.replaceChild(a, r), a.setChildren([r]), w(r, a), (r = a);
|
||||
}
|
||||
var i = n ? r.childNodes.length - 1 : 0,
|
||||
f = r.childNodes[i];
|
||||
l.default.isType(f, 'mspace')
|
||||
? l.default.setAttribute(
|
||||
f,
|
||||
'width',
|
||||
u.default.Em(
|
||||
u.default.dimen2em(l.default.getAttribute(f, 'width')) + o,
|
||||
),
|
||||
)
|
||||
: ((f = e.nodeFactory.create('node', 'mspace', [], {
|
||||
width: u.default.Em(o),
|
||||
})),
|
||||
n ? r.appendChild(f) : ((f.parent = r), r.childNodes.unshift(f)));
|
||||
},
|
||||
w = function (e, r) {
|
||||
['inference', 'proof', 'maxAdjust', 'labelledRule'].forEach(function (o) {
|
||||
var n = (0, t.getProperty)(e, o);
|
||||
null != n && ((0, t.setProperty)(r, o, n), (0, t.removeProperty)(e, o));
|
||||
});
|
||||
},
|
||||
C = function (e, r, o, n, a) {
|
||||
var i = e.nodeFactory.create('node', 'mspace', [], {
|
||||
width: u.default.Em(a),
|
||||
});
|
||||
if ('left' === n) {
|
||||
var l = r.childNodes[o].childNodes[0];
|
||||
(i.parent = l), l.childNodes.unshift(i);
|
||||
} else r.childNodes[o].appendChild(i);
|
||||
(0, t.setProperty)(r.parent, 'sequentAdjust_' + n, a);
|
||||
},
|
||||
T = function (e, r) {
|
||||
for (var o = r.pop(); r.length; ) {
|
||||
var a = r.pop(),
|
||||
i = n(I(o, a), 2),
|
||||
l = i[0],
|
||||
u = i[1];
|
||||
(0, t.getProperty)(o.parent, 'axiom') &&
|
||||
(C(e, l < 0 ? o : a, 0, 'left', Math.abs(l)),
|
||||
C(e, u < 0 ? o : a, 2, 'right', Math.abs(u))),
|
||||
(o = a);
|
||||
}
|
||||
},
|
||||
I = function (e, t) {
|
||||
var r = d(e.childNodes[2]),
|
||||
o = d(t.childNodes[2]);
|
||||
return [d(e.childNodes[0]) - d(t.childNodes[0]), r - o];
|
||||
};
|
||||
t.balanceRules = function (e) {
|
||||
var r, o;
|
||||
s = new e.document.options.MathItem('', null, e.math.display);
|
||||
var n = e.data;
|
||||
!(function (e) {
|
||||
var r = e.nodeLists.sequent;
|
||||
if (r)
|
||||
for (var o = r.length - 1, n = void 0; (n = r[o]); o--)
|
||||
if ((0, t.getProperty)(n, 'sequentProcessed'))
|
||||
(0, t.removeProperty)(n, 'sequentProcessed');
|
||||
else {
|
||||
var a = [],
|
||||
i = b(n);
|
||||
if (1 === (0, t.getProperty)(i, 'inference')) {
|
||||
for (
|
||||
a.push(n);
|
||||
1 === (0, t.getProperty)(i, 'inference');
|
||||
|
||||
) {
|
||||
i = c(i);
|
||||
var l = h(p(i, (0, t.getProperty)(i, 'inferenceRule'))),
|
||||
u = (0, t.getProperty)(l, 'inferenceRule')
|
||||
? v(l, (0, t.getProperty)(l, 'inferenceRule'))
|
||||
: l;
|
||||
(0, t.getProperty)(u, 'sequent') &&
|
||||
((n = u.childNodes[0]),
|
||||
a.push(n),
|
||||
(0, t.setProperty)(n, 'sequentProcessed', !0)),
|
||||
(i = l);
|
||||
}
|
||||
T(e, a);
|
||||
}
|
||||
}
|
||||
})(n);
|
||||
var i = n.nodeLists.inference || [];
|
||||
try {
|
||||
for (var l = a(i), u = l.next(); !u.done; u = l.next()) {
|
||||
var f = u.value,
|
||||
d = (0, t.getProperty)(f, 'proof'),
|
||||
m = c(f),
|
||||
w = p(m, (0, t.getProperty)(m, 'inferenceRule')),
|
||||
C = h(w);
|
||||
if ((0, t.getProperty)(C, 'inference')) {
|
||||
var I = x(C);
|
||||
if (I) {
|
||||
M(n, C, -I);
|
||||
var A = _(f, m, !1);
|
||||
M(n, f, I - A);
|
||||
}
|
||||
}
|
||||
var S = y(w);
|
||||
if (null != (0, t.getProperty)(S, 'inference')) {
|
||||
var N = x(S, !0);
|
||||
M(n, S, -N, !0);
|
||||
var j = _(f, m, !0),
|
||||
O = (0, t.getProperty)(f, 'maxAdjust');
|
||||
null != O && (N = Math.max(N, O));
|
||||
var L = void 0;
|
||||
if (!d && (L = P(f))) {
|
||||
var k = g(L);
|
||||
if (k) {
|
||||
var B = n.nodeFactory.create('node', 'mspace', [], {
|
||||
width: N - j + 'em',
|
||||
});
|
||||
k.appendChild(B), f.removeProperty('maxAdjust');
|
||||
} else {
|
||||
var J = b(L);
|
||||
J &&
|
||||
((N = (0, t.getProperty)(J, 'maxAdjust')
|
||||
? Math.max((0, t.getProperty)(J, 'maxAdjust'), N)
|
||||
: N),
|
||||
(0, t.setProperty)(J, 'maxAdjust', N));
|
||||
}
|
||||
} else
|
||||
M(n, (0, t.getProperty)(f, 'proof') ? f : f.parent, N - j, !0);
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
r = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
u && !u.done && (o = l.return) && o.call(l);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
};
|
||||
var A = 'bspr_',
|
||||
S = (((o = {}).bspr_maxAdjust = !0), o);
|
||||
t.setProperty = function (e, t, r) {
|
||||
l.default.setProperty(e, A + t, r);
|
||||
};
|
||||
t.getProperty = function (e, t) {
|
||||
return l.default.getProperty(e, A + t);
|
||||
};
|
||||
t.removeProperty = function (e, t) {
|
||||
e.removeProperty(A + t);
|
||||
};
|
||||
t.makeBsprAttributes = function (e) {
|
||||
e.data.root.walkTree(function (e, t) {
|
||||
var r = [];
|
||||
e.getPropertyNames().forEach(function (t) {
|
||||
!S[t] &&
|
||||
t.match(RegExp('^bspr_')) &&
|
||||
r.push(t + ':' + e.getProperty(t));
|
||||
}),
|
||||
r.length && l.default.setAttribute(e, 'semantics', r.join(';'));
|
||||
});
|
||||
};
|
||||
t.saveDocument = function (e) {
|
||||
if (!('getBBox' in (f = e.document).outputJax))
|
||||
throw Error(
|
||||
'The bussproofs extension requires an output jax with a getBBox() method',
|
||||
);
|
||||
};
|
||||
t.clearDocument = function (e) {
|
||||
f = null;
|
||||
};
|
||||
},
|
||||
955: function (e, t) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(t.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(t.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(t.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
748: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.NodeUtil.default);
|
||||
},
|
||||
945: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.ParseMethods.default);
|
||||
},
|
||||
398: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.ParseUtil.default);
|
||||
},
|
||||
935: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.Stack.default);
|
||||
},
|
||||
76: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.MmlStack = MathJax._.input.tex.StackItem.MmlStack),
|
||||
(t.BaseItem = MathJax._.input.tex.StackItem.BaseItem);
|
||||
},
|
||||
871: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(t.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(t.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(t.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(t.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(t.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(t.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(t.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(t.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
402: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.TexError.default);
|
||||
},
|
||||
193: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.TexParser.default);
|
||||
},
|
||||
},
|
||||
l = {};
|
||||
function u(e) {
|
||||
var t = l[e];
|
||||
if (void 0 !== t) return t.exports;
|
||||
var r = (l[e] = { exports: {} });
|
||||
return i[e].call(r.exports, r, r.exports, u), r.exports;
|
||||
}
|
||||
(e = u(955)),
|
||||
(t = u(667)),
|
||||
(r = u(333)),
|
||||
(o = u(854)),
|
||||
(n = u(827)),
|
||||
(a = u(378)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/bussproofs', t.q, 'tex-extension'),
|
||||
(0, e.r8)({
|
||||
_: {
|
||||
input: {
|
||||
tex: {
|
||||
bussproofs: {
|
||||
BussproofsConfiguration: r,
|
||||
BussproofsItems: o,
|
||||
BussproofsMethods: n,
|
||||
BussproofsUtil: a,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
})();
|
||||
@@ -1,124 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
e,
|
||||
a,
|
||||
n = {
|
||||
667: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
774: function (t, e, a) {
|
||||
var n =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.CancelConfiguration = e.CancelMethods = void 0);
|
||||
var o = a(251),
|
||||
i = a(108),
|
||||
r = a(871),
|
||||
c = n(a(398)),
|
||||
l = a(975);
|
||||
(e.CancelMethods = {}),
|
||||
(e.CancelMethods.Cancel = function (t, e, a) {
|
||||
var n = t.GetBrackets(e, ''),
|
||||
o = t.ParseArg(e),
|
||||
i = c.default.keyvalOptions(n, l.ENCLOSE_OPTIONS);
|
||||
(i.notation = a), t.Push(t.create('node', 'menclose', [o], i));
|
||||
}),
|
||||
(e.CancelMethods.CancelTo = function (t, e) {
|
||||
var a = t.GetBrackets(e, ''),
|
||||
n = t.ParseArg(e),
|
||||
o = t.ParseArg(e),
|
||||
r = c.default.keyvalOptions(a, l.ENCLOSE_OPTIONS);
|
||||
(r.notation = [
|
||||
i.TexConstant.Notation.UPDIAGONALSTRIKE,
|
||||
i.TexConstant.Notation.UPDIAGONALARROW,
|
||||
i.TexConstant.Notation.NORTHEASTARROW,
|
||||
].join(' ')),
|
||||
(n = t.create('node', 'mpadded', [n], {
|
||||
depth: '-.1em',
|
||||
height: '+.1em',
|
||||
voffset: '.1em',
|
||||
})),
|
||||
t.Push(
|
||||
t.create('node', 'msup', [t.create('node', 'menclose', [o], r), n]),
|
||||
);
|
||||
}),
|
||||
new r.CommandMap(
|
||||
'cancel',
|
||||
{
|
||||
cancel: ['Cancel', i.TexConstant.Notation.UPDIAGONALSTRIKE],
|
||||
bcancel: ['Cancel', i.TexConstant.Notation.DOWNDIAGONALSTRIKE],
|
||||
xcancel: [
|
||||
'Cancel',
|
||||
i.TexConstant.Notation.UPDIAGONALSTRIKE +
|
||||
' ' +
|
||||
i.TexConstant.Notation.DOWNDIAGONALSTRIKE,
|
||||
],
|
||||
cancelto: 'CancelTo',
|
||||
},
|
||||
e.CancelMethods,
|
||||
),
|
||||
(e.CancelConfiguration = o.Configuration.create('cancel', {
|
||||
handler: { macro: ['cancel'] },
|
||||
}));
|
||||
},
|
||||
955: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(e.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(e.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
398: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.ParseUtil.default);
|
||||
},
|
||||
871: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(e.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(e.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(e.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(e.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(e.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(e.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(e.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(e.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
108: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.TexConstant = MathJax._.input.tex.TexConstants.TexConstant);
|
||||
},
|
||||
975: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.ENCLOSE_OPTIONS =
|
||||
MathJax._.input.tex.enclose.EncloseConfiguration.ENCLOSE_OPTIONS),
|
||||
(e.EncloseMethods =
|
||||
MathJax._.input.tex.enclose.EncloseConfiguration.EncloseMethods),
|
||||
(e.EncloseConfiguration =
|
||||
MathJax._.input.tex.enclose.EncloseConfiguration.EncloseConfiguration);
|
||||
},
|
||||
},
|
||||
o = {};
|
||||
function i(t) {
|
||||
var e = o[t];
|
||||
if (void 0 !== e) return e.exports;
|
||||
var a = (o[t] = { exports: {} });
|
||||
return n[t].call(a.exports, a, a.exports, i), a.exports;
|
||||
}
|
||||
(t = i(955)),
|
||||
(e = i(667)),
|
||||
(a = i(774)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/cancel', e.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { cancel: { CancelConfiguration: a } } } } });
|
||||
})();
|
||||
@@ -1,301 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
e,
|
||||
a,
|
||||
n = {
|
||||
667: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
530: function (t, e, a) {
|
||||
var n,
|
||||
s,
|
||||
r =
|
||||
(this && this.__extends) ||
|
||||
((n = function (t, e) {
|
||||
return (
|
||||
(n =
|
||||
Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array &&
|
||||
function (t, e) {
|
||||
t.__proto__ = e;
|
||||
}) ||
|
||||
function (t, e) {
|
||||
for (var a in e)
|
||||
Object.prototype.hasOwnProperty.call(e, a) &&
|
||||
(t[a] = e[a]);
|
||||
}),
|
||||
n(t, e)
|
||||
);
|
||||
}),
|
||||
function (t, e) {
|
||||
if ('function' != typeof e && null !== e)
|
||||
throw new TypeError(
|
||||
'Class extends value ' +
|
||||
String(e) +
|
||||
' is not a constructor or null',
|
||||
);
|
||||
function a() {
|
||||
this.constructor = t;
|
||||
}
|
||||
n(t, e),
|
||||
(t.prototype =
|
||||
null === e
|
||||
? Object.create(e)
|
||||
: ((a.prototype = e.prototype), new a()));
|
||||
}),
|
||||
o =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.CasesConfiguration =
|
||||
e.CasesMethods =
|
||||
e.CasesTags =
|
||||
e.CasesBeginItem =
|
||||
void 0);
|
||||
var i = a(251),
|
||||
u = a(871),
|
||||
m = o(a(398)),
|
||||
p = o(a(360)),
|
||||
l = o(a(402)),
|
||||
c = a(935),
|
||||
h = a(379),
|
||||
x = a(446),
|
||||
f = (function (t) {
|
||||
function e() {
|
||||
return (null !== t && t.apply(this, arguments)) || this;
|
||||
}
|
||||
return (
|
||||
r(e, t),
|
||||
Object.defineProperty(e.prototype, 'kind', {
|
||||
get: function () {
|
||||
return 'cases-begin';
|
||||
},
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
}),
|
||||
(e.prototype.checkItem = function (e) {
|
||||
return e.isKind('end') &&
|
||||
e.getName() === this.getName() &&
|
||||
this.getProperty('end')
|
||||
? (this.setProperty('end', !1), [[], !0])
|
||||
: t.prototype.checkItem.call(this, e);
|
||||
}),
|
||||
e
|
||||
);
|
||||
})(c.BeginItem);
|
||||
e.CasesBeginItem = f;
|
||||
var M = (function (t) {
|
||||
function e() {
|
||||
var e = (null !== t && t.apply(this, arguments)) || this;
|
||||
return (e.subcounter = 0), e;
|
||||
}
|
||||
return (
|
||||
r(e, t),
|
||||
(e.prototype.start = function (e, a, n) {
|
||||
(this.subcounter = 0), t.prototype.start.call(this, e, a, n);
|
||||
}),
|
||||
(e.prototype.autoTag = function () {
|
||||
null == this.currentTag.tag &&
|
||||
('subnumcases' === this.currentTag.env
|
||||
? (0 === this.subcounter && this.counter++,
|
||||
this.subcounter++,
|
||||
this.tag(
|
||||
this.formatNumber(this.counter, this.subcounter),
|
||||
!1,
|
||||
))
|
||||
: ((0 !== this.subcounter &&
|
||||
'numcases-left' === this.currentTag.env) ||
|
||||
this.counter++,
|
||||
this.tag(this.formatNumber(this.counter), !1)));
|
||||
}),
|
||||
(e.prototype.formatNumber = function (t, e) {
|
||||
return (
|
||||
void 0 === e && (e = null),
|
||||
t.toString() + (null === e ? '' : String.fromCharCode(96 + e))
|
||||
);
|
||||
}),
|
||||
e
|
||||
);
|
||||
})(h.AmsTags);
|
||||
(e.CasesTags = M),
|
||||
(e.CasesMethods = {
|
||||
NumCases: function (t, e) {
|
||||
if (t.stack.env.closing === e.getName()) {
|
||||
delete t.stack.env.closing,
|
||||
t.Push(
|
||||
t.itemFactory
|
||||
.create('end')
|
||||
.setProperty('name', e.getName()),
|
||||
);
|
||||
var a = t.stack.Top(),
|
||||
n = a.Last,
|
||||
s = m.default.copyNode(n, t),
|
||||
r = a.getProperty('left');
|
||||
return (
|
||||
x.EmpheqUtil.left(
|
||||
n,
|
||||
s,
|
||||
r + '\\empheqlbrace\\,',
|
||||
t,
|
||||
'numcases-left',
|
||||
),
|
||||
t.Push(
|
||||
t.itemFactory
|
||||
.create('end')
|
||||
.setProperty('name', e.getName()),
|
||||
),
|
||||
null
|
||||
);
|
||||
}
|
||||
r = t.GetArgument('\\begin{' + e.getName() + '}');
|
||||
e.setProperty('left', r);
|
||||
var o = p.default.EqnArray(t, e, !0, !0, 'll');
|
||||
return (
|
||||
(o.arraydef.displaystyle = !1),
|
||||
(o.arraydef.rowspacing = '.2em'),
|
||||
o.setProperty('numCases', !0),
|
||||
t.Push(e),
|
||||
o
|
||||
);
|
||||
},
|
||||
Entry: function (t, e) {
|
||||
if (!t.stack.Top().getProperty('numCases'))
|
||||
return p.default.Entry(t, e);
|
||||
t.Push(
|
||||
t.itemFactory
|
||||
.create('cell')
|
||||
.setProperties({ isEntry: !0, name: e }),
|
||||
);
|
||||
for (var a = t.string, n = 0, s = t.i, r = a.length; s < r; ) {
|
||||
var o = a.charAt(s);
|
||||
if ('{' === o) n++, s++;
|
||||
else if ('}' === o) {
|
||||
if (0 === n) break;
|
||||
n--, s++;
|
||||
} else {
|
||||
if ('&' === o && 0 === n)
|
||||
throw new l.default(
|
||||
'ExtraCasesAlignTab',
|
||||
'Extra alignment tab in text for numcase environment',
|
||||
);
|
||||
if ('\\' === o && 0 === n) {
|
||||
var i = (a.slice(s + 1).match(/^[a-z]+|./i) || [])[0];
|
||||
if (
|
||||
'\\' === i ||
|
||||
'cr' === i ||
|
||||
'end' === i ||
|
||||
'label' === i
|
||||
)
|
||||
break;
|
||||
s += i.length;
|
||||
} else s++;
|
||||
}
|
||||
}
|
||||
var u = a.substr(t.i, s - t.i).replace(/^\s*/, '');
|
||||
t.PushAll(m.default.internalMath(t, u, 0)), (t.i = s);
|
||||
},
|
||||
}),
|
||||
new u.EnvironmentMap(
|
||||
'cases-env',
|
||||
x.EmpheqUtil.environment,
|
||||
{ numcases: ['NumCases', 'cases'], subnumcases: ['NumCases', 'cases'] },
|
||||
e.CasesMethods,
|
||||
),
|
||||
new u.MacroMap('cases-macros', { '&': 'Entry' }, e.CasesMethods),
|
||||
(e.CasesConfiguration = i.Configuration.create('cases', {
|
||||
handler: { environment: ['cases-env'], character: ['cases-macros'] },
|
||||
items: ((s = {}), (s[f.prototype.kind] = f), s),
|
||||
tags: { cases: M },
|
||||
}));
|
||||
},
|
||||
955: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(e.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(e.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
398: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.ParseUtil.default);
|
||||
},
|
||||
871: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(e.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(e.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(e.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(e.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(e.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(e.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(e.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(e.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
402: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.TexError.default);
|
||||
},
|
||||
935: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.StartItem = MathJax._.input.tex.base.BaseItems.StartItem),
|
||||
(e.StopItem = MathJax._.input.tex.base.BaseItems.StopItem),
|
||||
(e.OpenItem = MathJax._.input.tex.base.BaseItems.OpenItem),
|
||||
(e.CloseItem = MathJax._.input.tex.base.BaseItems.CloseItem),
|
||||
(e.PrimeItem = MathJax._.input.tex.base.BaseItems.PrimeItem),
|
||||
(e.SubsupItem = MathJax._.input.tex.base.BaseItems.SubsupItem),
|
||||
(e.OverItem = MathJax._.input.tex.base.BaseItems.OverItem),
|
||||
(e.LeftItem = MathJax._.input.tex.base.BaseItems.LeftItem),
|
||||
(e.Middle = MathJax._.input.tex.base.BaseItems.Middle),
|
||||
(e.RightItem = MathJax._.input.tex.base.BaseItems.RightItem),
|
||||
(e.BeginItem = MathJax._.input.tex.base.BaseItems.BeginItem),
|
||||
(e.EndItem = MathJax._.input.tex.base.BaseItems.EndItem),
|
||||
(e.StyleItem = MathJax._.input.tex.base.BaseItems.StyleItem),
|
||||
(e.PositionItem = MathJax._.input.tex.base.BaseItems.PositionItem),
|
||||
(e.CellItem = MathJax._.input.tex.base.BaseItems.CellItem),
|
||||
(e.MmlItem = MathJax._.input.tex.base.BaseItems.MmlItem),
|
||||
(e.FnItem = MathJax._.input.tex.base.BaseItems.FnItem),
|
||||
(e.NotItem = MathJax._.input.tex.base.BaseItems.NotItem),
|
||||
(e.NonscriptItem = MathJax._.input.tex.base.BaseItems.NonscriptItem),
|
||||
(e.DotsItem = MathJax._.input.tex.base.BaseItems.DotsItem),
|
||||
(e.ArrayItem = MathJax._.input.tex.base.BaseItems.ArrayItem),
|
||||
(e.EqnArrayItem = MathJax._.input.tex.base.BaseItems.EqnArrayItem),
|
||||
(e.EquationItem = MathJax._.input.tex.base.BaseItems.EquationItem);
|
||||
},
|
||||
360: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.base.BaseMethods.default);
|
||||
},
|
||||
379: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.AmsTags = MathJax._.input.tex.ams.AmsConfiguration.AmsTags),
|
||||
(e.AmsConfiguration =
|
||||
MathJax._.input.tex.ams.AmsConfiguration.AmsConfiguration);
|
||||
},
|
||||
446: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.EmpheqUtil = MathJax._.input.tex.empheq.EmpheqUtil.EmpheqUtil);
|
||||
},
|
||||
},
|
||||
s = {};
|
||||
function r(t) {
|
||||
var e = s[t];
|
||||
if (void 0 !== e) return e.exports;
|
||||
var a = (s[t] = { exports: {} });
|
||||
return n[t].call(a.exports, a, a.exports, r), a.exports;
|
||||
}
|
||||
(t = r(955)),
|
||||
(e = r(667)),
|
||||
(a = r(530)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/cases', e.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { cases: { CasesConfiguration: a } } } } });
|
||||
})();
|
||||
@@ -1,159 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var e,
|
||||
t,
|
||||
a,
|
||||
n = {
|
||||
667: function (e, t) {
|
||||
(t.q = void 0), (t.q = '3.2.2');
|
||||
},
|
||||
286: function (e, t, a) {
|
||||
var n =
|
||||
(this && this.__values) ||
|
||||
function (e) {
|
||||
var t = 'function' == typeof Symbol && Symbol.iterator,
|
||||
a = t && e[t],
|
||||
n = 0;
|
||||
if (a) return a.call(e);
|
||||
if (e && 'number' == typeof e.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
e && n >= e.length && (e = void 0),
|
||||
{ value: e && e[n++], done: !e }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
t ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
},
|
||||
r =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.CenternotConfiguration = t.filterCenterOver = void 0);
|
||||
var o = a(251),
|
||||
i = r(a(193)),
|
||||
u = r(a(748)),
|
||||
l = a(871),
|
||||
p = r(a(360));
|
||||
function c(e) {
|
||||
var t,
|
||||
a,
|
||||
r = e.data;
|
||||
try {
|
||||
for (
|
||||
var o = n(r.getList('centerOver')), i = o.next();
|
||||
!i.done;
|
||||
i = o.next()
|
||||
) {
|
||||
var l = i.value,
|
||||
p = u.default.getTexClass(l.childNodes[0].childNodes[0]);
|
||||
null !== p &&
|
||||
u.default.setProperties(
|
||||
l.parent.parent.parent.parent.parent.parent,
|
||||
{ texClass: p },
|
||||
);
|
||||
}
|
||||
} catch (e) {
|
||||
t = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
i && !i.done && (a = o.return) && a.call(o);
|
||||
} finally {
|
||||
if (t) throw t.error;
|
||||
}
|
||||
}
|
||||
}
|
||||
new l.CommandMap(
|
||||
'centernot',
|
||||
{
|
||||
centerOver: 'CenterOver',
|
||||
centernot: ['Macro', '\\centerOver{#1}{{\u29f8}}', 1],
|
||||
},
|
||||
{
|
||||
CenterOver: function (e, t) {
|
||||
var a = '{' + e.GetArgument(t) + '}',
|
||||
n = e.ParseArg(t),
|
||||
r = new i.default(a, e.stack.env, e.configuration).mml(),
|
||||
o = e.create('node', 'TeXAtom', [
|
||||
new i.default(a, e.stack.env, e.configuration).mml(),
|
||||
e.create(
|
||||
'node',
|
||||
'mpadded',
|
||||
[
|
||||
e.create('node', 'mpadded', [n], {
|
||||
width: 0,
|
||||
lspace: '-.5width',
|
||||
}),
|
||||
e.create('node', 'mphantom', [r]),
|
||||
],
|
||||
{ width: 0, lspace: '-.5width' },
|
||||
),
|
||||
]);
|
||||
e.configuration.addNode('centerOver', r), e.Push(o);
|
||||
},
|
||||
Macro: p.default.Macro,
|
||||
},
|
||||
),
|
||||
(t.filterCenterOver = c),
|
||||
(t.CenternotConfiguration = o.Configuration.create('centernot', {
|
||||
handler: { macro: ['centernot'] },
|
||||
postprocessors: [c],
|
||||
}));
|
||||
},
|
||||
955: function (e, t) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(t.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(t.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(t.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
748: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.NodeUtil.default);
|
||||
},
|
||||
871: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(t.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(t.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(t.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(t.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(t.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(t.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(t.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(t.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
193: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.TexParser.default);
|
||||
},
|
||||
360: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.base.BaseMethods.default);
|
||||
},
|
||||
},
|
||||
r = {};
|
||||
function o(e) {
|
||||
var t = r[e];
|
||||
if (void 0 !== t) return t.exports;
|
||||
var a = (r[e] = { exports: {} });
|
||||
return n[e].call(a.exports, a, a.exports, o), a.exports;
|
||||
}
|
||||
(e = o(955)),
|
||||
(t = o(667)),
|
||||
(a = o(286)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/centernot', t.q, 'tex-extension'),
|
||||
(0, e.r8)({ _: { input: { tex: { centernot: { CenternotConfiguration: a } } } } });
|
||||
})();
|
||||
@@ -1,407 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var e,
|
||||
o,
|
||||
t,
|
||||
r,
|
||||
a,
|
||||
n,
|
||||
l = {
|
||||
667: function (e, o) {
|
||||
(o.q = void 0), (o.q = '3.2.2');
|
||||
},
|
||||
224: function (e, o, t) {
|
||||
Object.defineProperty(o, '__esModule', { value: !0 }),
|
||||
(o.ColorConfiguration = void 0);
|
||||
var r = t(871),
|
||||
a = t(251),
|
||||
n = t(162),
|
||||
l = t(358);
|
||||
new r.CommandMap(
|
||||
'color',
|
||||
{
|
||||
color: 'Color',
|
||||
textcolor: 'TextColor',
|
||||
definecolor: 'DefineColor',
|
||||
colorbox: 'ColorBox',
|
||||
fcolorbox: 'FColorBox',
|
||||
},
|
||||
n.ColorMethods,
|
||||
);
|
||||
o.ColorConfiguration = a.Configuration.create('color', {
|
||||
handler: { macro: ['color'] },
|
||||
options: { color: { padding: '5px', borderWidth: '2px' } },
|
||||
config: function (e, o) {
|
||||
o.parseOptions.packageData.set('color', { model: new l.ColorModel() });
|
||||
},
|
||||
});
|
||||
},
|
||||
59: function (e, o) {
|
||||
Object.defineProperty(o, '__esModule', { value: !0 }),
|
||||
(o.COLORS = void 0),
|
||||
(o.COLORS = new Map([
|
||||
['Apricot', '#FBB982'],
|
||||
['Aquamarine', '#00B5BE'],
|
||||
['Bittersweet', '#C04F17'],
|
||||
['Black', '#221E1F'],
|
||||
['Blue', '#2D2F92'],
|
||||
['BlueGreen', '#00B3B8'],
|
||||
['BlueViolet', '#473992'],
|
||||
['BrickRed', '#B6321C'],
|
||||
['Brown', '#792500'],
|
||||
['BurntOrange', '#F7921D'],
|
||||
['CadetBlue', '#74729A'],
|
||||
['CarnationPink', '#F282B4'],
|
||||
['Cerulean', '#00A2E3'],
|
||||
['CornflowerBlue', '#41B0E4'],
|
||||
['Cyan', '#00AEEF'],
|
||||
['Dandelion', '#FDBC42'],
|
||||
['DarkOrchid', '#A4538A'],
|
||||
['Emerald', '#00A99D'],
|
||||
['ForestGreen', '#009B55'],
|
||||
['Fuchsia', '#8C368C'],
|
||||
['Goldenrod', '#FFDF42'],
|
||||
['Gray', '#949698'],
|
||||
['Green', '#00A64F'],
|
||||
['GreenYellow', '#DFE674'],
|
||||
['JungleGreen', '#00A99A'],
|
||||
['Lavender', '#F49EC4'],
|
||||
['LimeGreen', '#8DC73E'],
|
||||
['Magenta', '#EC008C'],
|
||||
['Mahogany', '#A9341F'],
|
||||
['Maroon', '#AF3235'],
|
||||
['Melon', '#F89E7B'],
|
||||
['MidnightBlue', '#006795'],
|
||||
['Mulberry', '#A93C93'],
|
||||
['NavyBlue', '#006EB8'],
|
||||
['OliveGreen', '#3C8031'],
|
||||
['Orange', '#F58137'],
|
||||
['OrangeRed', '#ED135A'],
|
||||
['Orchid', '#AF72B0'],
|
||||
['Peach', '#F7965A'],
|
||||
['Periwinkle', '#7977B8'],
|
||||
['PineGreen', '#008B72'],
|
||||
['Plum', '#92268F'],
|
||||
['ProcessBlue', '#00B0F0'],
|
||||
['Purple', '#99479B'],
|
||||
['RawSienna', '#974006'],
|
||||
['Red', '#ED1B23'],
|
||||
['RedOrange', '#F26035'],
|
||||
['RedViolet', '#A1246B'],
|
||||
['Rhodamine', '#EF559F'],
|
||||
['RoyalBlue', '#0071BC'],
|
||||
['RoyalPurple', '#613F99'],
|
||||
['RubineRed', '#ED017D'],
|
||||
['Salmon', '#F69289'],
|
||||
['SeaGreen', '#3FBC9D'],
|
||||
['Sepia', '#671800'],
|
||||
['SkyBlue', '#46C5DD'],
|
||||
['SpringGreen', '#C6DC67'],
|
||||
['Tan', '#DA9D76'],
|
||||
['TealBlue', '#00AEB3'],
|
||||
['Thistle', '#D883B7'],
|
||||
['Turquoise', '#00B4CE'],
|
||||
['Violet', '#58429B'],
|
||||
['VioletRed', '#EF58A0'],
|
||||
['White', '#FFFFFF'],
|
||||
['WildStrawberry', '#EE2967'],
|
||||
['Yellow', '#FFF200'],
|
||||
['YellowGreen', '#98CC70'],
|
||||
['YellowOrange', '#FAA21A'],
|
||||
]));
|
||||
},
|
||||
162: function (e, o, t) {
|
||||
var r =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(o, '__esModule', { value: !0 }), (o.ColorMethods = void 0);
|
||||
var a = r(t(748)),
|
||||
n = r(t(398));
|
||||
function l(e) {
|
||||
var o = '+'.concat(e),
|
||||
t = e.replace(/^.*?([a-z]*)$/, '$1'),
|
||||
r = 2 * parseFloat(o);
|
||||
return { width: '+'.concat(r).concat(t), height: o, depth: o, lspace: e };
|
||||
}
|
||||
(o.ColorMethods = {}),
|
||||
(o.ColorMethods.Color = function (e, o) {
|
||||
var t = e.GetBrackets(o, ''),
|
||||
r = e.GetArgument(o),
|
||||
a = e.configuration.packageData.get('color').model.getColor(t, r),
|
||||
n = e.itemFactory
|
||||
.create('style')
|
||||
.setProperties({ styles: { mathcolor: a } });
|
||||
(e.stack.env.color = a), e.Push(n);
|
||||
}),
|
||||
(o.ColorMethods.TextColor = function (e, o) {
|
||||
var t = e.GetBrackets(o, ''),
|
||||
r = e.GetArgument(o),
|
||||
a = e.configuration.packageData.get('color').model.getColor(t, r),
|
||||
n = e.stack.env.color;
|
||||
e.stack.env.color = a;
|
||||
var l = e.ParseArg(o);
|
||||
n ? (e.stack.env.color = n) : delete e.stack.env.color;
|
||||
var i = e.create('node', 'mstyle', [l], { mathcolor: a });
|
||||
e.Push(i);
|
||||
}),
|
||||
(o.ColorMethods.DefineColor = function (e, o) {
|
||||
var t = e.GetArgument(o),
|
||||
r = e.GetArgument(o),
|
||||
a = e.GetArgument(o);
|
||||
e.configuration.packageData.get('color').model.defineColor(r, t, a);
|
||||
}),
|
||||
(o.ColorMethods.ColorBox = function (e, o) {
|
||||
var t = e.GetArgument(o),
|
||||
r = n.default.internalMath(e, e.GetArgument(o)),
|
||||
i = e.configuration.packageData.get('color').model,
|
||||
u = e.create('node', 'mpadded', r, {
|
||||
mathbackground: i.getColor('named', t),
|
||||
});
|
||||
a.default.setProperties(u, l(e.options.color.padding)), e.Push(u);
|
||||
}),
|
||||
(o.ColorMethods.FColorBox = function (e, o) {
|
||||
var t = e.GetArgument(o),
|
||||
r = e.GetArgument(o),
|
||||
i = n.default.internalMath(e, e.GetArgument(o)),
|
||||
u = e.options.color,
|
||||
d = e.configuration.packageData.get('color').model,
|
||||
c = e.create('node', 'mpadded', i, {
|
||||
mathbackground: d.getColor('named', r),
|
||||
style: 'border: '
|
||||
.concat(u.borderWidth, ' solid ')
|
||||
.concat(d.getColor('named', t)),
|
||||
});
|
||||
a.default.setProperties(c, l(u.padding)), e.Push(c);
|
||||
});
|
||||
},
|
||||
358: function (e, o, t) {
|
||||
var r =
|
||||
(this && this.__values) ||
|
||||
function (e) {
|
||||
var o = 'function' == typeof Symbol && Symbol.iterator,
|
||||
t = o && e[o],
|
||||
r = 0;
|
||||
if (t) return t.call(e);
|
||||
if (e && 'number' == typeof e.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
e && r >= e.length && (e = void 0),
|
||||
{ value: e && e[r++], done: !e }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
o ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
},
|
||||
a =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(o, '__esModule', { value: !0 }), (o.ColorModel = void 0);
|
||||
var n = a(t(402)),
|
||||
l = t(59),
|
||||
i = new Map(),
|
||||
u = (function () {
|
||||
function e() {
|
||||
this.userColors = new Map();
|
||||
}
|
||||
return (
|
||||
(e.prototype.normalizeColor = function (e, o) {
|
||||
if (!e || 'named' === e) return o;
|
||||
if (i.has(e)) return i.get(e)(o);
|
||||
throw new n.default(
|
||||
'UndefinedColorModel',
|
||||
"Color model '%1' not defined",
|
||||
e,
|
||||
);
|
||||
}),
|
||||
(e.prototype.getColor = function (e, o) {
|
||||
return e && 'named' !== e
|
||||
? this.normalizeColor(e, o)
|
||||
: this.getColorByName(o);
|
||||
}),
|
||||
(e.prototype.getColorByName = function (e) {
|
||||
return this.userColors.has(e)
|
||||
? this.userColors.get(e)
|
||||
: l.COLORS.has(e)
|
||||
? l.COLORS.get(e)
|
||||
: e;
|
||||
}),
|
||||
(e.prototype.defineColor = function (e, o, t) {
|
||||
var r = this.normalizeColor(e, t);
|
||||
this.userColors.set(o, r);
|
||||
}),
|
||||
e
|
||||
);
|
||||
})();
|
||||
(o.ColorModel = u),
|
||||
i.set('rgb', function (e) {
|
||||
var o,
|
||||
t,
|
||||
a = e.trim().split(/\s*,\s*/),
|
||||
l = '#';
|
||||
if (3 !== a.length)
|
||||
throw new n.default(
|
||||
'ModelArg1',
|
||||
'Color values for the %1 model require 3 numbers',
|
||||
'rgb',
|
||||
);
|
||||
try {
|
||||
for (var i = r(a), u = i.next(); !u.done; u = i.next()) {
|
||||
var d = u.value;
|
||||
if (!d.match(/^(\d+(\.\d*)?|\.\d+)$/))
|
||||
throw new n.default(
|
||||
'InvalidDecimalNumber',
|
||||
'Invalid decimal number',
|
||||
);
|
||||
var c = parseFloat(d);
|
||||
if (c < 0 || c > 1)
|
||||
throw new n.default(
|
||||
'ModelArg2',
|
||||
'Color values for the %1 model must be between %2 and %3',
|
||||
'rgb',
|
||||
'0',
|
||||
'1',
|
||||
);
|
||||
var s = Math.floor(255 * c).toString(16);
|
||||
s.length < 2 && (s = '0' + s), (l += s);
|
||||
}
|
||||
} catch (e) {
|
||||
o = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
u && !u.done && (t = i.return) && t.call(i);
|
||||
} finally {
|
||||
if (o) throw o.error;
|
||||
}
|
||||
}
|
||||
return l;
|
||||
}),
|
||||
i.set('RGB', function (e) {
|
||||
var o,
|
||||
t,
|
||||
a = e.trim().split(/\s*,\s*/),
|
||||
l = '#';
|
||||
if (3 !== a.length)
|
||||
throw new n.default(
|
||||
'ModelArg1',
|
||||
'Color values for the %1 model require 3 numbers',
|
||||
'RGB',
|
||||
);
|
||||
try {
|
||||
for (var i = r(a), u = i.next(); !u.done; u = i.next()) {
|
||||
var d = u.value;
|
||||
if (!d.match(/^\d+$/))
|
||||
throw new n.default('InvalidNumber', 'Invalid number');
|
||||
var c = parseInt(d);
|
||||
if (c > 255)
|
||||
throw new n.default(
|
||||
'ModelArg2',
|
||||
'Color values for the %1 model must be between %2 and %3',
|
||||
'RGB',
|
||||
'0',
|
||||
'255',
|
||||
);
|
||||
var s = c.toString(16);
|
||||
s.length < 2 && (s = '0' + s), (l += s);
|
||||
}
|
||||
} catch (e) {
|
||||
o = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
u && !u.done && (t = i.return) && t.call(i);
|
||||
} finally {
|
||||
if (o) throw o.error;
|
||||
}
|
||||
}
|
||||
return l;
|
||||
}),
|
||||
i.set('gray', function (e) {
|
||||
if (!e.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/))
|
||||
throw new n.default('InvalidDecimalNumber', 'Invalid decimal number');
|
||||
var o = parseFloat(e);
|
||||
if (o < 0 || o > 1)
|
||||
throw new n.default(
|
||||
'ModelArg2',
|
||||
'Color values for the %1 model must be between %2 and %3',
|
||||
'gray',
|
||||
'0',
|
||||
'1',
|
||||
);
|
||||
var t = Math.floor(255 * o).toString(16);
|
||||
return t.length < 2 && (t = '0' + t), '#'.concat(t).concat(t).concat(t);
|
||||
});
|
||||
},
|
||||
955: function (e, o) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(o.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (e, o) {
|
||||
Object.defineProperty(o, '__esModule', { value: !0 }),
|
||||
(o.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(o.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(o.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
748: function (e, o) {
|
||||
Object.defineProperty(o, '__esModule', { value: !0 }),
|
||||
(o.default = MathJax._.input.tex.NodeUtil.default);
|
||||
},
|
||||
398: function (e, o) {
|
||||
Object.defineProperty(o, '__esModule', { value: !0 }),
|
||||
(o.default = MathJax._.input.tex.ParseUtil.default);
|
||||
},
|
||||
871: function (e, o) {
|
||||
Object.defineProperty(o, '__esModule', { value: !0 }),
|
||||
(o.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(o.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(o.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(o.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(o.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(o.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(o.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(o.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(o.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
402: function (e, o) {
|
||||
Object.defineProperty(o, '__esModule', { value: !0 }),
|
||||
(o.default = MathJax._.input.tex.TexError.default);
|
||||
},
|
||||
},
|
||||
i = {};
|
||||
function u(e) {
|
||||
var o = i[e];
|
||||
if (void 0 !== o) return o.exports;
|
||||
var t = (i[e] = { exports: {} });
|
||||
return l[e].call(t.exports, t, t.exports, u), t.exports;
|
||||
}
|
||||
(e = u(955)),
|
||||
(o = u(667)),
|
||||
(t = u(224)),
|
||||
(r = u(59)),
|
||||
(a = u(162)),
|
||||
(n = u(358)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/color', o.q, 'tex-extension'),
|
||||
(0, e.r8)({
|
||||
_: {
|
||||
input: {
|
||||
tex: {
|
||||
color: {
|
||||
ColorConfiguration: t,
|
||||
ColorConstants: r,
|
||||
ColorMethods: a,
|
||||
ColorUtil: n,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
})();
|
||||
@@ -1,215 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
e,
|
||||
a,
|
||||
o = {
|
||||
667: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
558: function (t, e, a) {
|
||||
var o,
|
||||
n =
|
||||
(this && this.__extends) ||
|
||||
((o = function (t, e) {
|
||||
return (
|
||||
(o =
|
||||
Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array &&
|
||||
function (t, e) {
|
||||
t.__proto__ = e;
|
||||
}) ||
|
||||
function (t, e) {
|
||||
for (var a in e)
|
||||
Object.prototype.hasOwnProperty.call(e, a) &&
|
||||
(t[a] = e[a]);
|
||||
}),
|
||||
o(t, e)
|
||||
);
|
||||
}),
|
||||
function (t, e) {
|
||||
if ('function' != typeof e && null !== e)
|
||||
throw new TypeError(
|
||||
'Class extends value ' +
|
||||
String(e) +
|
||||
' is not a constructor or null',
|
||||
);
|
||||
function a() {
|
||||
this.constructor = t;
|
||||
}
|
||||
o(t, e),
|
||||
(t.prototype =
|
||||
null === e
|
||||
? Object.create(e)
|
||||
: ((a.prototype = e.prototype), new a()));
|
||||
}),
|
||||
r =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.ColortblConfiguration = e.ColorArrayItem = void 0);
|
||||
var i = a(935),
|
||||
s = a(251),
|
||||
l = a(871),
|
||||
p = r(a(402)),
|
||||
u = (function (t) {
|
||||
function e() {
|
||||
var e = (null !== t && t.apply(this, arguments)) || this;
|
||||
return (e.color = { cell: '', row: '', col: [] }), (e.hasColor = !1), e;
|
||||
}
|
||||
return (
|
||||
n(e, t),
|
||||
(e.prototype.EndEntry = function () {
|
||||
t.prototype.EndEntry.call(this);
|
||||
var e = this.row[this.row.length - 1],
|
||||
a =
|
||||
this.color.cell ||
|
||||
this.color.row ||
|
||||
this.color.col[this.row.length - 1];
|
||||
a &&
|
||||
(e.attributes.set('mathbackground', a),
|
||||
(this.color.cell = ''),
|
||||
(this.hasColor = !0));
|
||||
}),
|
||||
(e.prototype.EndRow = function () {
|
||||
t.prototype.EndRow.call(this), (this.color.row = '');
|
||||
}),
|
||||
(e.prototype.createMml = function () {
|
||||
var e = t.prototype.createMml.call(this),
|
||||
a = e.isKind('mrow') ? e.childNodes[1] : e;
|
||||
return (
|
||||
a.isKind('menclose') && (a = a.childNodes[0].childNodes[0]),
|
||||
this.hasColor &&
|
||||
'none' === a.attributes.get('frame') &&
|
||||
a.attributes.set('frame', ''),
|
||||
e
|
||||
);
|
||||
}),
|
||||
e
|
||||
);
|
||||
})(i.ArrayItem);
|
||||
(e.ColorArrayItem = u),
|
||||
new l.CommandMap(
|
||||
'colortbl',
|
||||
{
|
||||
cellcolor: ['TableColor', 'cell'],
|
||||
rowcolor: ['TableColor', 'row'],
|
||||
columncolor: ['TableColor', 'col'],
|
||||
},
|
||||
{
|
||||
TableColor: function (t, e, a) {
|
||||
var o = t.configuration.packageData.get('color').model,
|
||||
n = t.GetBrackets(e, ''),
|
||||
r = o.getColor(n, t.GetArgument(e)),
|
||||
i = t.stack.Top();
|
||||
if (!(i instanceof u))
|
||||
throw new p.default(
|
||||
'UnsupportedTableColor',
|
||||
'Unsupported use of %1',
|
||||
t.currentCS,
|
||||
);
|
||||
if ('col' === a) {
|
||||
if (i.table.length)
|
||||
throw new p.default(
|
||||
'ColumnColorNotTop',
|
||||
'%1 must be in the top row',
|
||||
e,
|
||||
);
|
||||
(i.color.col[i.row.length] = r),
|
||||
t.GetBrackets(e, '') && t.GetBrackets(e, '');
|
||||
} else if (
|
||||
((i.color[a] = r), 'row' === a && (i.Size() || i.row.length))
|
||||
)
|
||||
throw new p.default(
|
||||
'RowColorNotFirst',
|
||||
'%1 must be at the beginning of a row',
|
||||
e,
|
||||
);
|
||||
},
|
||||
},
|
||||
);
|
||||
e.ColortblConfiguration = s.Configuration.create('colortbl', {
|
||||
handler: { macro: ['colortbl'] },
|
||||
items: { array: u },
|
||||
priority: 10,
|
||||
config: [
|
||||
function (t, e) {
|
||||
e.parseOptions.packageData.has('color') ||
|
||||
s.ConfigurationHandler.get('color').config(t, e);
|
||||
},
|
||||
10,
|
||||
],
|
||||
});
|
||||
},
|
||||
955: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(e.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(e.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
871: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(e.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(e.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(e.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(e.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(e.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(e.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(e.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(e.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
402: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.TexError.default);
|
||||
},
|
||||
935: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.StartItem = MathJax._.input.tex.base.BaseItems.StartItem),
|
||||
(e.StopItem = MathJax._.input.tex.base.BaseItems.StopItem),
|
||||
(e.OpenItem = MathJax._.input.tex.base.BaseItems.OpenItem),
|
||||
(e.CloseItem = MathJax._.input.tex.base.BaseItems.CloseItem),
|
||||
(e.PrimeItem = MathJax._.input.tex.base.BaseItems.PrimeItem),
|
||||
(e.SubsupItem = MathJax._.input.tex.base.BaseItems.SubsupItem),
|
||||
(e.OverItem = MathJax._.input.tex.base.BaseItems.OverItem),
|
||||
(e.LeftItem = MathJax._.input.tex.base.BaseItems.LeftItem),
|
||||
(e.Middle = MathJax._.input.tex.base.BaseItems.Middle),
|
||||
(e.RightItem = MathJax._.input.tex.base.BaseItems.RightItem),
|
||||
(e.BeginItem = MathJax._.input.tex.base.BaseItems.BeginItem),
|
||||
(e.EndItem = MathJax._.input.tex.base.BaseItems.EndItem),
|
||||
(e.StyleItem = MathJax._.input.tex.base.BaseItems.StyleItem),
|
||||
(e.PositionItem = MathJax._.input.tex.base.BaseItems.PositionItem),
|
||||
(e.CellItem = MathJax._.input.tex.base.BaseItems.CellItem),
|
||||
(e.MmlItem = MathJax._.input.tex.base.BaseItems.MmlItem),
|
||||
(e.FnItem = MathJax._.input.tex.base.BaseItems.FnItem),
|
||||
(e.NotItem = MathJax._.input.tex.base.BaseItems.NotItem),
|
||||
(e.NonscriptItem = MathJax._.input.tex.base.BaseItems.NonscriptItem),
|
||||
(e.DotsItem = MathJax._.input.tex.base.BaseItems.DotsItem),
|
||||
(e.ArrayItem = MathJax._.input.tex.base.BaseItems.ArrayItem),
|
||||
(e.EqnArrayItem = MathJax._.input.tex.base.BaseItems.EqnArrayItem),
|
||||
(e.EquationItem = MathJax._.input.tex.base.BaseItems.EquationItem);
|
||||
},
|
||||
},
|
||||
n = {};
|
||||
function r(t) {
|
||||
var e = n[t];
|
||||
if (void 0 !== e) return e.exports;
|
||||
var a = (n[t] = { exports: {} });
|
||||
return o[t].call(a.exports, a, a.exports, r), a.exports;
|
||||
}
|
||||
(t = r(955)),
|
||||
(e = r(667)),
|
||||
(a = r(558)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/colortbl', e.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { colortbl: { ColortblConfiguration: a } } } } });
|
||||
})();
|
||||
@@ -1,70 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var o,
|
||||
a,
|
||||
t,
|
||||
e = {
|
||||
667: function (o, a) {
|
||||
(a.q = void 0), (a.q = '3.2.2');
|
||||
},
|
||||
888: function (o, a, t) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.ColorConfiguration = a.ColorV2Methods = void 0);
|
||||
var e = t(871),
|
||||
n = t(251);
|
||||
(a.ColorV2Methods = {
|
||||
Color: function (o, a) {
|
||||
var t = o.GetArgument(a),
|
||||
e = o.stack.env.color;
|
||||
o.stack.env.color = t;
|
||||
var n = o.ParseArg(a);
|
||||
e ? (o.stack.env.color = e) : delete o.stack.env.color;
|
||||
var r = o.create('node', 'mstyle', [n], { mathcolor: t });
|
||||
o.Push(r);
|
||||
},
|
||||
}),
|
||||
new e.CommandMap('colorv2', { color: 'Color' }, a.ColorV2Methods),
|
||||
(a.ColorConfiguration = n.Configuration.create('colorv2', {
|
||||
handler: { macro: ['colorv2'] },
|
||||
}));
|
||||
},
|
||||
955: function (o, a) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(a.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (o, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(a.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(a.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
871: function (o, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(a.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(a.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(a.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(a.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(a.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(a.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(a.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(a.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
},
|
||||
n = {};
|
||||
function r(o) {
|
||||
var a = n[o];
|
||||
if (void 0 !== a) return a.exports;
|
||||
var t = (n[o] = { exports: {} });
|
||||
return e[o](t, t.exports, r), t.exports;
|
||||
}
|
||||
(o = r(955)),
|
||||
(a = r(667)),
|
||||
(t = r(888)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/colorv2', a.q, 'tex-extension'),
|
||||
(0, o.r8)({ _: { input: { tex: { colorv2: { ColorV2Configuration: t } } } } });
|
||||
})();
|
||||
@@ -1,199 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
a,
|
||||
e,
|
||||
n = {
|
||||
667: function (t, a) {
|
||||
(a.q = void 0), (a.q = '3.2.2');
|
||||
},
|
||||
359: function (t, a, e) {
|
||||
var n,
|
||||
o =
|
||||
(this && this.__values) ||
|
||||
function (t) {
|
||||
var a = 'function' == typeof Symbol && Symbol.iterator,
|
||||
e = a && t[a],
|
||||
n = 0;
|
||||
if (e) return e.call(t);
|
||||
if (t && 'number' == typeof t.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
t && n >= t.length && (t = void 0),
|
||||
{ value: t && t[n++], done: !t }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
a ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
},
|
||||
i =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.ConfigMacrosConfiguration = void 0);
|
||||
var r = e(251),
|
||||
p = e(74),
|
||||
l = e(871),
|
||||
s = i(e(945)),
|
||||
u = e(924),
|
||||
c = i(e(432)),
|
||||
M = e(975),
|
||||
x = 'configmacros-map',
|
||||
f = 'configmacros-env-map';
|
||||
a.ConfigMacrosConfiguration = r.Configuration.create('configmacros', {
|
||||
init: function (t) {
|
||||
new l.CommandMap(x, {}, {}),
|
||||
new l.EnvironmentMap(f, s.default.environment, {}, {}),
|
||||
t.append(
|
||||
r.Configuration.local({
|
||||
handler: { macro: [x], environment: [f] },
|
||||
priority: 3,
|
||||
}),
|
||||
);
|
||||
},
|
||||
config: function (t, a) {
|
||||
!(function (t) {
|
||||
var a,
|
||||
e,
|
||||
n = t.parseOptions.handlers.retrieve(x),
|
||||
i = t.parseOptions.options.macros;
|
||||
try {
|
||||
for (
|
||||
var r = o(Object.keys(i)), p = r.next();
|
||||
!p.done;
|
||||
p = r.next()
|
||||
) {
|
||||
var l = p.value,
|
||||
s = 'string' == typeof i[l] ? [i[l]] : i[l],
|
||||
M = Array.isArray(s[2])
|
||||
? new u.Macro(
|
||||
l,
|
||||
c.default.MacroWithTemplate,
|
||||
s.slice(0, 2).concat(s[2]),
|
||||
)
|
||||
: new u.Macro(l, c.default.Macro, s);
|
||||
n.add(l, M);
|
||||
}
|
||||
} catch (t) {
|
||||
a = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
p && !p.done && (e = r.return) && e.call(r);
|
||||
} finally {
|
||||
if (a) throw a.error;
|
||||
}
|
||||
}
|
||||
})(a),
|
||||
(function (t) {
|
||||
var a,
|
||||
e,
|
||||
n = t.parseOptions.handlers.retrieve(f),
|
||||
i = t.parseOptions.options.environments;
|
||||
try {
|
||||
for (
|
||||
var r = o(Object.keys(i)), p = r.next();
|
||||
!p.done;
|
||||
p = r.next()
|
||||
) {
|
||||
var l = p.value;
|
||||
n.add(
|
||||
l,
|
||||
new u.Macro(l, c.default.BeginEnv, [!0].concat(i[l])),
|
||||
);
|
||||
}
|
||||
} catch (t) {
|
||||
a = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
p && !p.done && (e = r.return) && e.call(r);
|
||||
} finally {
|
||||
if (a) throw a.error;
|
||||
}
|
||||
}
|
||||
})(a);
|
||||
},
|
||||
items: ((n = {}), (n[M.BeginEnvItem.prototype.kind] = M.BeginEnvItem), n),
|
||||
options: { macros: (0, p.expandable)({}), environments: (0, p.expandable)({}) },
|
||||
});
|
||||
},
|
||||
955: function (t, a) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(a.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
74: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.isObject = MathJax._.util.Options.isObject),
|
||||
(a.APPEND = MathJax._.util.Options.APPEND),
|
||||
(a.REMOVE = MathJax._.util.Options.REMOVE),
|
||||
(a.OPTIONS = MathJax._.util.Options.OPTIONS),
|
||||
(a.Expandable = MathJax._.util.Options.Expandable),
|
||||
(a.expandable = MathJax._.util.Options.expandable),
|
||||
(a.makeArray = MathJax._.util.Options.makeArray),
|
||||
(a.keys = MathJax._.util.Options.keys),
|
||||
(a.copy = MathJax._.util.Options.copy),
|
||||
(a.insert = MathJax._.util.Options.insert),
|
||||
(a.defaultOptions = MathJax._.util.Options.defaultOptions),
|
||||
(a.userOptions = MathJax._.util.Options.userOptions),
|
||||
(a.selectOptions = MathJax._.util.Options.selectOptions),
|
||||
(a.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys),
|
||||
(a.separateOptions = MathJax._.util.Options.separateOptions),
|
||||
(a.lookup = MathJax._.util.Options.lookup);
|
||||
},
|
||||
251: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(a.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(a.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
945: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.default = MathJax._.input.tex.ParseMethods.default);
|
||||
},
|
||||
924: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.Symbol = MathJax._.input.tex.Symbol.Symbol),
|
||||
(a.Macro = MathJax._.input.tex.Symbol.Macro);
|
||||
},
|
||||
871: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(a.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(a.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(a.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(a.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(a.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(a.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(a.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(a.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
975: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.BeginEnvItem = MathJax._.input.tex.newcommand.NewcommandItems.BeginEnvItem);
|
||||
},
|
||||
432: function (t, a) {
|
||||
Object.defineProperty(a, '__esModule', { value: !0 }),
|
||||
(a.default = MathJax._.input.tex.newcommand.NewcommandMethods.default);
|
||||
},
|
||||
},
|
||||
o = {};
|
||||
function i(t) {
|
||||
var a = o[t];
|
||||
if (void 0 !== a) return a.exports;
|
||||
var e = (o[t] = { exports: {} });
|
||||
return n[t].call(e.exports, e, e.exports, i), e.exports;
|
||||
}
|
||||
(t = i(955)),
|
||||
(a = i(667)),
|
||||
(e = i(359)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/configmacros', a.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { configmacros: { ConfigMacrosConfiguration: e } } } } });
|
||||
})();
|
||||
@@ -1,537 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var e,
|
||||
t,
|
||||
a,
|
||||
n,
|
||||
r = {
|
||||
667: function (e, t) {
|
||||
(t.q = void 0), (t.q = '3.2.2');
|
||||
},
|
||||
79: function (e, t, a) {
|
||||
var n,
|
||||
r,
|
||||
i =
|
||||
(this && this.__extends) ||
|
||||
((n = function (e, t) {
|
||||
return (
|
||||
(n =
|
||||
Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array &&
|
||||
function (e, t) {
|
||||
e.__proto__ = t;
|
||||
}) ||
|
||||
function (e, t) {
|
||||
for (var a in t)
|
||||
Object.prototype.hasOwnProperty.call(t, a) &&
|
||||
(e[a] = t[a]);
|
||||
}),
|
||||
n(e, t)
|
||||
);
|
||||
}),
|
||||
function (e, t) {
|
||||
if ('function' != typeof t && null !== t)
|
||||
throw new TypeError(
|
||||
'Class extends value ' +
|
||||
String(t) +
|
||||
' is not a constructor or null',
|
||||
);
|
||||
function a() {
|
||||
this.constructor = e;
|
||||
}
|
||||
n(e, t),
|
||||
(e.prototype =
|
||||
null === t
|
||||
? Object.create(t)
|
||||
: ((a.prototype = t.prototype), new a()));
|
||||
}),
|
||||
o =
|
||||
(this && this.__read) ||
|
||||
function (e, t) {
|
||||
var a = 'function' == typeof Symbol && e[Symbol.iterator];
|
||||
if (!a) return e;
|
||||
var n,
|
||||
r,
|
||||
i = a.call(e),
|
||||
o = [];
|
||||
try {
|
||||
for (; (void 0 === t || t-- > 0) && !(n = i.next()).done; )
|
||||
o.push(n.value);
|
||||
} catch (e) {
|
||||
r = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
n && !n.done && (a = i.return) && a.call(i);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
return o;
|
||||
},
|
||||
l =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.EmpheqConfiguration = t.EmpheqMethods = t.EmpheqBeginItem = void 0);
|
||||
var p = a(251),
|
||||
m = a(871),
|
||||
h = l(a(398)),
|
||||
s = l(a(402)),
|
||||
u = a(935),
|
||||
c = a(301),
|
||||
d = (function (e) {
|
||||
function t() {
|
||||
return (null !== e && e.apply(this, arguments)) || this;
|
||||
}
|
||||
return (
|
||||
i(t, e),
|
||||
Object.defineProperty(t.prototype, 'kind', {
|
||||
get: function () {
|
||||
return 'empheq-begin';
|
||||
},
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
}),
|
||||
(t.prototype.checkItem = function (t) {
|
||||
return (
|
||||
t.isKind('end') &&
|
||||
t.getName() === this.getName() &&
|
||||
this.setProperty('end', !1),
|
||||
e.prototype.checkItem.call(this, t)
|
||||
);
|
||||
}),
|
||||
t
|
||||
);
|
||||
})(u.BeginItem);
|
||||
(t.EmpheqBeginItem = d),
|
||||
(t.EmpheqMethods = {
|
||||
Empheq: function (e, t) {
|
||||
if (e.stack.env.closing === t.getName()) {
|
||||
delete e.stack.env.closing,
|
||||
e.Push(
|
||||
e.itemFactory
|
||||
.create('end')
|
||||
.setProperty('name', e.stack.global.empheq),
|
||||
),
|
||||
(e.stack.global.empheq = '');
|
||||
var a = e.stack.Top();
|
||||
c.EmpheqUtil.adjustTable(a, e),
|
||||
e.Push(
|
||||
e.itemFactory.create('end').setProperty('name', 'empheq'),
|
||||
);
|
||||
} else {
|
||||
h.default.checkEqnEnv(e), delete e.stack.global.eqnenv;
|
||||
var n = e.GetBrackets('\\begin{' + t.getName() + '}') || '',
|
||||
r = o(
|
||||
(e.GetArgument('\\begin{' + t.getName() + '}') || '').split(
|
||||
/=/,
|
||||
),
|
||||
2,
|
||||
),
|
||||
i = r[0],
|
||||
l = r[1];
|
||||
if (!c.EmpheqUtil.checkEnv(i))
|
||||
throw new s.default(
|
||||
'UnknownEnv',
|
||||
'Unknown environment "%1"',
|
||||
i,
|
||||
);
|
||||
n &&
|
||||
t.setProperties(
|
||||
c.EmpheqUtil.splitOptions(n, { left: 1, right: 1 }),
|
||||
),
|
||||
(e.stack.global.empheq = i),
|
||||
(e.string =
|
||||
'\\begin{' +
|
||||
i +
|
||||
'}' +
|
||||
(l ? '{' + l + '}' : '') +
|
||||
e.string.slice(e.i)),
|
||||
(e.i = 0),
|
||||
e.Push(t);
|
||||
}
|
||||
},
|
||||
EmpheqMO: function (e, t, a) {
|
||||
e.Push(e.create('token', 'mo', {}, a));
|
||||
},
|
||||
EmpheqDelim: function (e, t) {
|
||||
var a = e.GetDelimiter(t);
|
||||
e.Push(e.create('token', 'mo', { stretchy: !0, symmetric: !0 }, a));
|
||||
},
|
||||
}),
|
||||
new m.EnvironmentMap(
|
||||
'empheq-env',
|
||||
c.EmpheqUtil.environment,
|
||||
{ empheq: ['Empheq', 'empheq'] },
|
||||
t.EmpheqMethods,
|
||||
),
|
||||
new m.CommandMap(
|
||||
'empheq-macros',
|
||||
{
|
||||
empheqlbrace: ['EmpheqMO', '{'],
|
||||
empheqrbrace: ['EmpheqMO', '}'],
|
||||
empheqlbrack: ['EmpheqMO', '['],
|
||||
empheqrbrack: ['EmpheqMO', ']'],
|
||||
empheqlangle: ['EmpheqMO', '\u27e8'],
|
||||
empheqrangle: ['EmpheqMO', '\u27e9'],
|
||||
empheqlparen: ['EmpheqMO', '('],
|
||||
empheqrparen: ['EmpheqMO', ')'],
|
||||
empheqlvert: ['EmpheqMO', '|'],
|
||||
empheqrvert: ['EmpheqMO', '|'],
|
||||
empheqlVert: ['EmpheqMO', '\u2016'],
|
||||
empheqrVert: ['EmpheqMO', '\u2016'],
|
||||
empheqlfloor: ['EmpheqMO', '\u230a'],
|
||||
empheqrfloor: ['EmpheqMO', '\u230b'],
|
||||
empheqlceil: ['EmpheqMO', '\u2308'],
|
||||
empheqrceil: ['EmpheqMO', '\u2309'],
|
||||
empheqbiglbrace: ['EmpheqMO', '{'],
|
||||
empheqbigrbrace: ['EmpheqMO', '}'],
|
||||
empheqbiglbrack: ['EmpheqMO', '['],
|
||||
empheqbigrbrack: ['EmpheqMO', ']'],
|
||||
empheqbiglangle: ['EmpheqMO', '\u27e8'],
|
||||
empheqbigrangle: ['EmpheqMO', '\u27e9'],
|
||||
empheqbiglparen: ['EmpheqMO', '('],
|
||||
empheqbigrparen: ['EmpheqMO', ')'],
|
||||
empheqbiglvert: ['EmpheqMO', '|'],
|
||||
empheqbigrvert: ['EmpheqMO', '|'],
|
||||
empheqbiglVert: ['EmpheqMO', '\u2016'],
|
||||
empheqbigrVert: ['EmpheqMO', '\u2016'],
|
||||
empheqbiglfloor: ['EmpheqMO', '\u230a'],
|
||||
empheqbigrfloor: ['EmpheqMO', '\u230b'],
|
||||
empheqbiglceil: ['EmpheqMO', '\u2308'],
|
||||
empheqbigrceil: ['EmpheqMO', '\u2309'],
|
||||
empheql: 'EmpheqDelim',
|
||||
empheqr: 'EmpheqDelim',
|
||||
empheqbigl: 'EmpheqDelim',
|
||||
empheqbigr: 'EmpheqDelim',
|
||||
},
|
||||
t.EmpheqMethods,
|
||||
),
|
||||
(t.EmpheqConfiguration = p.Configuration.create('empheq', {
|
||||
handler: { macro: ['empheq-macros'], environment: ['empheq-env'] },
|
||||
items: ((r = {}), (r[d.prototype.kind] = d), r),
|
||||
}));
|
||||
},
|
||||
301: function (e, t, a) {
|
||||
var n =
|
||||
(this && this.__read) ||
|
||||
function (e, t) {
|
||||
var a = 'function' == typeof Symbol && e[Symbol.iterator];
|
||||
if (!a) return e;
|
||||
var n,
|
||||
r,
|
||||
i = a.call(e),
|
||||
o = [];
|
||||
try {
|
||||
for (; (void 0 === t || t-- > 0) && !(n = i.next()).done; )
|
||||
o.push(n.value);
|
||||
} catch (e) {
|
||||
r = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
n && !n.done && (a = i.return) && a.call(i);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
return o;
|
||||
},
|
||||
r =
|
||||
(this && this.__spreadArray) ||
|
||||
function (e, t, a) {
|
||||
if (a || 2 === arguments.length)
|
||||
for (var n, r = 0, i = t.length; r < i; r++)
|
||||
(!n && r in t) ||
|
||||
(n || (n = Array.prototype.slice.call(t, 0, r)),
|
||||
(n[r] = t[r]));
|
||||
return e.concat(n || Array.prototype.slice.call(t));
|
||||
},
|
||||
i =
|
||||
(this && this.__values) ||
|
||||
function (e) {
|
||||
var t = 'function' == typeof Symbol && Symbol.iterator,
|
||||
a = t && e[t],
|
||||
n = 0;
|
||||
if (a) return a.call(e);
|
||||
if (e && 'number' == typeof e.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
e && n >= e.length && (e = void 0),
|
||||
{ value: e && e[n++], done: !e }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
t ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
},
|
||||
o =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }), (t.EmpheqUtil = void 0);
|
||||
var l = o(a(398)),
|
||||
p = o(a(193));
|
||||
t.EmpheqUtil = {
|
||||
environment: function (e, t, a, i) {
|
||||
var o = i[0],
|
||||
l = e.itemFactory
|
||||
.create(o + '-begin')
|
||||
.setProperties({ name: t, end: o });
|
||||
e.Push(a.apply(void 0, r([e, l], n(i.slice(1)), !1)));
|
||||
},
|
||||
splitOptions: function (e, t) {
|
||||
return void 0 === t && (t = null), l.default.keyvalOptions(e, t, !0);
|
||||
},
|
||||
columnCount: function (e) {
|
||||
var t,
|
||||
a,
|
||||
n = 0;
|
||||
try {
|
||||
for (var r = i(e.childNodes), o = r.next(); !o.done; o = r.next()) {
|
||||
var l = o.value,
|
||||
p = l.childNodes.length - (l.isKind('mlabeledtr') ? 1 : 0);
|
||||
p > n && (n = p);
|
||||
}
|
||||
} catch (e) {
|
||||
t = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
o && !o.done && (a = r.return) && a.call(r);
|
||||
} finally {
|
||||
if (t) throw t.error;
|
||||
}
|
||||
}
|
||||
return n;
|
||||
},
|
||||
cellBlock: function (e, t, a, n) {
|
||||
var r,
|
||||
o,
|
||||
l = a.create('node', 'mpadded', [], {
|
||||
height: 0,
|
||||
depth: 0,
|
||||
voffset: '-1height',
|
||||
}),
|
||||
m = new p.default(e, a.stack.env, a.configuration),
|
||||
h = m.mml();
|
||||
n &&
|
||||
m.configuration.tags.label &&
|
||||
((m.configuration.tags.currentTag.env = n),
|
||||
m.configuration.tags.getTag(!0));
|
||||
try {
|
||||
for (
|
||||
var s = i(h.isInferred ? h.childNodes : [h]), u = s.next();
|
||||
!u.done;
|
||||
u = s.next()
|
||||
) {
|
||||
var c = u.value;
|
||||
l.appendChild(c);
|
||||
}
|
||||
} catch (e) {
|
||||
r = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
u && !u.done && (o = s.return) && o.call(s);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
return (
|
||||
l.appendChild(
|
||||
a.create('node', 'mphantom', [
|
||||
a.create('node', 'mpadded', [t], { width: 0 }),
|
||||
]),
|
||||
),
|
||||
l
|
||||
);
|
||||
},
|
||||
topRowTable: function (e, t) {
|
||||
var a = l.default.copyNode(e, t);
|
||||
return (
|
||||
a.setChildren(a.childNodes.slice(0, 1)),
|
||||
a.attributes.set('align', 'baseline 1'),
|
||||
e.factory.create('mphantom', {}, [
|
||||
t.create('node', 'mpadded', [a], { width: 0 }),
|
||||
])
|
||||
);
|
||||
},
|
||||
rowspanCell: function (e, t, a, n, r) {
|
||||
e.appendChild(
|
||||
n.create(
|
||||
'node',
|
||||
'mpadded',
|
||||
[
|
||||
this.cellBlock(t, l.default.copyNode(a, n), n, r),
|
||||
this.topRowTable(a, n),
|
||||
],
|
||||
{ height: 0, depth: 0, voffset: 'height' },
|
||||
),
|
||||
);
|
||||
},
|
||||
left: function (e, t, a, n, r) {
|
||||
var o, l, p;
|
||||
void 0 === r && (r = ''),
|
||||
e.attributes.set(
|
||||
'columnalign',
|
||||
'right ' + (e.attributes.get('columnalign') || ''),
|
||||
),
|
||||
e.attributes.set(
|
||||
'columnspacing',
|
||||
'0em ' + (e.attributes.get('columnspacing') || ''),
|
||||
);
|
||||
try {
|
||||
for (
|
||||
var m = i(e.childNodes.slice(0).reverse()), h = m.next();
|
||||
!h.done;
|
||||
h = m.next()
|
||||
) {
|
||||
var s = h.value;
|
||||
(p = n.create('node', 'mtd')),
|
||||
s.childNodes.unshift(p),
|
||||
(p.parent = s),
|
||||
s.isKind('mlabeledtr') &&
|
||||
((s.childNodes[0] = s.childNodes[1]),
|
||||
(s.childNodes[1] = p));
|
||||
}
|
||||
} catch (e) {
|
||||
o = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
h && !h.done && (l = m.return) && l.call(m);
|
||||
} finally {
|
||||
if (o) throw o.error;
|
||||
}
|
||||
}
|
||||
this.rowspanCell(p, a, t, n, r);
|
||||
},
|
||||
right: function (e, a, n, r, i) {
|
||||
void 0 === i && (i = ''),
|
||||
0 === e.childNodes.length && e.appendChild(r.create('node', 'mtr'));
|
||||
for (
|
||||
var o = t.EmpheqUtil.columnCount(e), l = e.childNodes[0];
|
||||
l.childNodes.length < o;
|
||||
|
||||
)
|
||||
l.appendChild(r.create('node', 'mtd'));
|
||||
var p = l.appendChild(r.create('node', 'mtd'));
|
||||
t.EmpheqUtil.rowspanCell(p, n, a, r, i),
|
||||
e.attributes.set(
|
||||
'columnalign',
|
||||
(e.attributes.get('columnalign') || '')
|
||||
.split(/ /)
|
||||
.slice(0, o)
|
||||
.join(' ') + ' left',
|
||||
),
|
||||
e.attributes.set(
|
||||
'columnspacing',
|
||||
(e.attributes.get('columnspacing') || '')
|
||||
.split(/ /)
|
||||
.slice(0, o - 1)
|
||||
.join(' ') + ' 0em',
|
||||
);
|
||||
},
|
||||
adjustTable: function (e, t) {
|
||||
var a = e.getProperty('left'),
|
||||
n = e.getProperty('right');
|
||||
if (a || n) {
|
||||
var r = e.Last,
|
||||
i = l.default.copyNode(r, t);
|
||||
a && this.left(r, i, a, t), n && this.right(r, i, n, t);
|
||||
}
|
||||
},
|
||||
allowEnv: {
|
||||
equation: !0,
|
||||
align: !0,
|
||||
gather: !0,
|
||||
flalign: !0,
|
||||
alignat: !0,
|
||||
multline: !0,
|
||||
},
|
||||
checkEnv: function (e) {
|
||||
return this.allowEnv.hasOwnProperty(e.replace(/\*$/, '')) || !1;
|
||||
},
|
||||
};
|
||||
},
|
||||
955: function (e, t) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(t.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(t.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(t.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
398: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.ParseUtil.default);
|
||||
},
|
||||
871: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(t.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(t.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(t.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(t.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(t.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(t.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(t.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(t.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
402: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.TexError.default);
|
||||
},
|
||||
193: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.TexParser.default);
|
||||
},
|
||||
935: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.StartItem = MathJax._.input.tex.base.BaseItems.StartItem),
|
||||
(t.StopItem = MathJax._.input.tex.base.BaseItems.StopItem),
|
||||
(t.OpenItem = MathJax._.input.tex.base.BaseItems.OpenItem),
|
||||
(t.CloseItem = MathJax._.input.tex.base.BaseItems.CloseItem),
|
||||
(t.PrimeItem = MathJax._.input.tex.base.BaseItems.PrimeItem),
|
||||
(t.SubsupItem = MathJax._.input.tex.base.BaseItems.SubsupItem),
|
||||
(t.OverItem = MathJax._.input.tex.base.BaseItems.OverItem),
|
||||
(t.LeftItem = MathJax._.input.tex.base.BaseItems.LeftItem),
|
||||
(t.Middle = MathJax._.input.tex.base.BaseItems.Middle),
|
||||
(t.RightItem = MathJax._.input.tex.base.BaseItems.RightItem),
|
||||
(t.BeginItem = MathJax._.input.tex.base.BaseItems.BeginItem),
|
||||
(t.EndItem = MathJax._.input.tex.base.BaseItems.EndItem),
|
||||
(t.StyleItem = MathJax._.input.tex.base.BaseItems.StyleItem),
|
||||
(t.PositionItem = MathJax._.input.tex.base.BaseItems.PositionItem),
|
||||
(t.CellItem = MathJax._.input.tex.base.BaseItems.CellItem),
|
||||
(t.MmlItem = MathJax._.input.tex.base.BaseItems.MmlItem),
|
||||
(t.FnItem = MathJax._.input.tex.base.BaseItems.FnItem),
|
||||
(t.NotItem = MathJax._.input.tex.base.BaseItems.NotItem),
|
||||
(t.NonscriptItem = MathJax._.input.tex.base.BaseItems.NonscriptItem),
|
||||
(t.DotsItem = MathJax._.input.tex.base.BaseItems.DotsItem),
|
||||
(t.ArrayItem = MathJax._.input.tex.base.BaseItems.ArrayItem),
|
||||
(t.EqnArrayItem = MathJax._.input.tex.base.BaseItems.EqnArrayItem),
|
||||
(t.EquationItem = MathJax._.input.tex.base.BaseItems.EquationItem);
|
||||
},
|
||||
},
|
||||
i = {};
|
||||
function o(e) {
|
||||
var t = i[e];
|
||||
if (void 0 !== t) return t.exports;
|
||||
var a = (i[e] = { exports: {} });
|
||||
return r[e].call(a.exports, a, a.exports, o), a.exports;
|
||||
}
|
||||
(e = o(955)),
|
||||
(t = o(667)),
|
||||
(a = o(79)),
|
||||
(n = o(301)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/empheq', t.q, 'tex-extension'),
|
||||
(0, e.r8)({ _: { input: { tex: { empheq: { EmpheqConfiguration: a, EmpheqUtil: n } } } } });
|
||||
})();
|
||||
@@ -1,86 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var a,
|
||||
t,
|
||||
e,
|
||||
o = {
|
||||
667: function (a, t) {
|
||||
(t.q = void 0), (t.q = '3.2.2');
|
||||
},
|
||||
272: function (a, t, e) {
|
||||
var o =
|
||||
(this && this.__importDefault) ||
|
||||
function (a) {
|
||||
return a && a.__esModule ? a : { default: a };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.EncloseConfiguration = t.EncloseMethods = t.ENCLOSE_OPTIONS = void 0);
|
||||
var n = e(251),
|
||||
r = e(871),
|
||||
i = o(e(398));
|
||||
(t.ENCLOSE_OPTIONS = {
|
||||
'data-arrowhead': 1,
|
||||
color: 1,
|
||||
mathcolor: 1,
|
||||
background: 1,
|
||||
mathbackground: 1,
|
||||
'data-padding': 1,
|
||||
'data-thickness': 1,
|
||||
}),
|
||||
(t.EncloseMethods = {}),
|
||||
(t.EncloseMethods.Enclose = function (a, e) {
|
||||
var o = a.GetArgument(e).replace(/,/g, ' '),
|
||||
n = a.GetBrackets(e, ''),
|
||||
r = a.ParseArg(e),
|
||||
l = i.default.keyvalOptions(n, t.ENCLOSE_OPTIONS);
|
||||
(l.notation = o), a.Push(a.create('node', 'menclose', [r], l));
|
||||
}),
|
||||
new r.CommandMap('enclose', { enclose: 'Enclose' }, t.EncloseMethods),
|
||||
(t.EncloseConfiguration = n.Configuration.create('enclose', {
|
||||
handler: { macro: ['enclose'] },
|
||||
}));
|
||||
},
|
||||
955: function (a, t) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(t.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (a, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(t.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(t.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
398: function (a, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.ParseUtil.default);
|
||||
},
|
||||
871: function (a, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(t.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(t.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(t.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(t.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(t.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(t.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(t.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(t.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
},
|
||||
n = {};
|
||||
function r(a) {
|
||||
var t = n[a];
|
||||
if (void 0 !== t) return t.exports;
|
||||
var e = (n[a] = { exports: {} });
|
||||
return o[a].call(e.exports, e, e.exports, r), e.exports;
|
||||
}
|
||||
(a = r(955)),
|
||||
(t = r(667)),
|
||||
(e = r(272)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/enclose', t.q, 'tex-extension'),
|
||||
(0, a.r8)({ _: { input: { tex: { enclose: { EncloseConfiguration: e } } } } });
|
||||
})();
|
||||
@@ -1,132 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
e,
|
||||
a,
|
||||
o = {
|
||||
667: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
646: function (t, e, a) {
|
||||
var o =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.ExtpfeilConfiguration = e.ExtpfeilMethods = void 0);
|
||||
var n = a(251),
|
||||
r = a(871),
|
||||
i = a(939),
|
||||
u = o(a(892)),
|
||||
x = a(417),
|
||||
p = o(a(402));
|
||||
(e.ExtpfeilMethods = {}),
|
||||
(e.ExtpfeilMethods.xArrow = i.AmsMethods.xArrow),
|
||||
(e.ExtpfeilMethods.NewExtArrow = function (t, a) {
|
||||
var o = t.GetArgument(a),
|
||||
n = t.GetArgument(a),
|
||||
r = t.GetArgument(a);
|
||||
if (!o.match(/^\\([a-z]+|.)$/i))
|
||||
throw new p.default(
|
||||
'NewextarrowArg1',
|
||||
'First argument to %1 must be a control sequence name',
|
||||
a,
|
||||
);
|
||||
if (!n.match(/^(\d+),(\d+)$/))
|
||||
throw new p.default(
|
||||
'NewextarrowArg2',
|
||||
'Second argument to %1 must be two integers separated by a comma',
|
||||
a,
|
||||
);
|
||||
if (!r.match(/^(\d+|0x[0-9A-F]+)$/i))
|
||||
throw new p.default(
|
||||
'NewextarrowArg3',
|
||||
'Third argument to %1 must be a unicode character number',
|
||||
a,
|
||||
);
|
||||
o = o.substr(1);
|
||||
var i = n.split(',');
|
||||
u.default.addMacro(t, o, e.ExtpfeilMethods.xArrow, [
|
||||
parseInt(r),
|
||||
parseInt(i[0]),
|
||||
parseInt(i[1]),
|
||||
]);
|
||||
}),
|
||||
new r.CommandMap(
|
||||
'extpfeil',
|
||||
{
|
||||
xtwoheadrightarrow: ['xArrow', 8608, 12, 16],
|
||||
xtwoheadleftarrow: ['xArrow', 8606, 17, 13],
|
||||
xmapsto: ['xArrow', 8614, 6, 7],
|
||||
xlongequal: ['xArrow', 61, 7, 7],
|
||||
xtofrom: ['xArrow', 8644, 12, 12],
|
||||
Newextarrow: 'NewExtArrow',
|
||||
},
|
||||
e.ExtpfeilMethods,
|
||||
);
|
||||
e.ExtpfeilConfiguration = n.Configuration.create('extpfeil', {
|
||||
handler: { macro: ['extpfeil'] },
|
||||
init: function (t) {
|
||||
x.NewcommandConfiguration.init(t);
|
||||
},
|
||||
});
|
||||
},
|
||||
955: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(e.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(e.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
871: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(e.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(e.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(e.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(e.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(e.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(e.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(e.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(e.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
402: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.TexError.default);
|
||||
},
|
||||
939: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.AmsMethods = MathJax._.input.tex.ams.AmsMethods.AmsMethods),
|
||||
(e.NEW_OPS = MathJax._.input.tex.ams.AmsMethods.NEW_OPS);
|
||||
},
|
||||
417: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.NewcommandConfiguration =
|
||||
MathJax._.input.tex.newcommand.NewcommandConfiguration.NewcommandConfiguration);
|
||||
},
|
||||
892: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.newcommand.NewcommandUtil.default);
|
||||
},
|
||||
},
|
||||
n = {};
|
||||
function r(t) {
|
||||
var e = n[t];
|
||||
if (void 0 !== e) return e.exports;
|
||||
var a = (n[t] = { exports: {} });
|
||||
return o[t].call(a.exports, a, a.exports, r), a.exports;
|
||||
}
|
||||
(t = r(955)),
|
||||
(e = r(667)),
|
||||
(a = r(646)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/extpfeil', e.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { extpfeil: { ExtpfeilConfiguration: a } } } } });
|
||||
})();
|
||||
@@ -1,78 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var a,
|
||||
t,
|
||||
n,
|
||||
e = {
|
||||
667: function (a, t) {
|
||||
(t.q = void 0), (t.q = '3.2.2');
|
||||
},
|
||||
82: function (a, t, n) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.GensymbConfiguration = void 0);
|
||||
var e = n(251),
|
||||
o = n(108);
|
||||
new (n(871).CharacterMap)(
|
||||
'gensymb-symbols',
|
||||
function (a, t) {
|
||||
var n = t.attributes || {};
|
||||
(n.mathvariant = o.TexConstant.Variant.NORMAL), (n.class = 'MathML-Unit');
|
||||
var e = a.create('token', 'mi', n, t.char);
|
||||
a.Push(e);
|
||||
},
|
||||
{
|
||||
ohm: '\u2126',
|
||||
degree: '\xb0',
|
||||
celsius: '\u2103',
|
||||
perthousand: '\u2030',
|
||||
micro: '\xb5',
|
||||
},
|
||||
),
|
||||
(t.GensymbConfiguration = e.Configuration.create('gensymb', {
|
||||
handler: { macro: ['gensymb-symbols'] },
|
||||
}));
|
||||
},
|
||||
955: function (a, t) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(t.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (a, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(t.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(t.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
871: function (a, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(t.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(t.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(t.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(t.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(t.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(t.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(t.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(t.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
108: function (a, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.TexConstant = MathJax._.input.tex.TexConstants.TexConstant);
|
||||
},
|
||||
},
|
||||
o = {};
|
||||
function i(a) {
|
||||
var t = o[a];
|
||||
if (void 0 !== t) return t.exports;
|
||||
var n = (o[a] = { exports: {} });
|
||||
return e[a](n, n.exports, i), n.exports;
|
||||
}
|
||||
(a = i(955)),
|
||||
(t = i(667)),
|
||||
(n = i(82)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/gensymb', t.q, 'tex-extension'),
|
||||
(0, a.r8)({ _: { input: { tex: { gensymb: { GensymbConfiguration: n } } } } });
|
||||
})();
|
||||
@@ -1,121 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
e,
|
||||
a,
|
||||
n,
|
||||
r = {
|
||||
667: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
738: function (t, e, a) {
|
||||
var n =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.HtmlConfiguration = void 0);
|
||||
var r = a(251),
|
||||
o = a(871),
|
||||
i = n(a(248));
|
||||
new o.CommandMap(
|
||||
'html_macros',
|
||||
{ href: 'Href', class: 'Class', style: 'Style', cssId: 'Id' },
|
||||
i.default,
|
||||
),
|
||||
(e.HtmlConfiguration = r.Configuration.create('html', {
|
||||
handler: { macro: ['html_macros'] },
|
||||
}));
|
||||
},
|
||||
248: function (t, e, a) {
|
||||
var n =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 });
|
||||
var r = n(a(748)),
|
||||
o = {
|
||||
Href: function (t, e) {
|
||||
var a = t.GetArgument(e),
|
||||
n = i(t, e);
|
||||
r.default.setAttribute(n, 'href', a), t.Push(n);
|
||||
},
|
||||
Class: function (t, e) {
|
||||
var a = t.GetArgument(e),
|
||||
n = i(t, e),
|
||||
o = r.default.getAttribute(n, 'class');
|
||||
o && (a = o + ' ' + a),
|
||||
r.default.setAttribute(n, 'class', a),
|
||||
t.Push(n);
|
||||
},
|
||||
Style: function (t, e) {
|
||||
var a = t.GetArgument(e),
|
||||
n = i(t, e),
|
||||
o = r.default.getAttribute(n, 'style');
|
||||
o && (';' !== a.charAt(a.length - 1) && (a += ';'), (a = o + ' ' + a)),
|
||||
r.default.setAttribute(n, 'style', a),
|
||||
t.Push(n);
|
||||
},
|
||||
Id: function (t, e) {
|
||||
var a = t.GetArgument(e),
|
||||
n = i(t, e);
|
||||
r.default.setAttribute(n, 'id', a), t.Push(n);
|
||||
},
|
||||
},
|
||||
i = function (t, e) {
|
||||
var a = t.ParseArg(e);
|
||||
if (!r.default.isInferred(a)) return a;
|
||||
var n = r.default.getChildren(a);
|
||||
if (1 === n.length) return n[0];
|
||||
var o = t.create('node', 'mrow');
|
||||
return r.default.copyChildren(a, o), r.default.copyAttributes(a, o), o;
|
||||
};
|
||||
e.default = o;
|
||||
},
|
||||
955: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(e.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(e.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
748: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.NodeUtil.default);
|
||||
},
|
||||
871: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(e.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(e.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(e.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(e.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(e.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(e.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(e.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(e.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
},
|
||||
o = {};
|
||||
function i(t) {
|
||||
var e = o[t];
|
||||
if (void 0 !== e) return e.exports;
|
||||
var a = (o[t] = { exports: {} });
|
||||
return r[t].call(a.exports, a, a.exports, i), a.exports;
|
||||
}
|
||||
(t = i(955)),
|
||||
(e = i(667)),
|
||||
(a = i(738)),
|
||||
(n = i(248)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/html', e.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { html: { HtmlConfiguration: a, HtmlMethods: n } } } } });
|
||||
})();
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,597 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var e,
|
||||
t,
|
||||
n,
|
||||
a,
|
||||
r,
|
||||
i,
|
||||
o = {
|
||||
667: function (e, t) {
|
||||
(t.q = void 0), (t.q = '3.2.2');
|
||||
},
|
||||
48: function (e, t, n) {
|
||||
var a,
|
||||
r =
|
||||
(this && this.__createBinding) ||
|
||||
(Object.create
|
||||
? function (e, t, n, a) {
|
||||
void 0 === a && (a = n);
|
||||
var r = Object.getOwnPropertyDescriptor(t, n);
|
||||
(r &&
|
||||
!('get' in r
|
||||
? !t.__esModule
|
||||
: r.writable || r.configurable)) ||
|
||||
(r = {
|
||||
enumerable: !0,
|
||||
get: function () {
|
||||
return t[n];
|
||||
},
|
||||
}),
|
||||
Object.defineProperty(e, a, r);
|
||||
}
|
||||
: function (e, t, n, a) {
|
||||
void 0 === a && (a = n), (e[a] = t[n]);
|
||||
}),
|
||||
i =
|
||||
(this && this.__setModuleDefault) ||
|
||||
(Object.create
|
||||
? function (e, t) {
|
||||
Object.defineProperty(e, 'default', { enumerable: !0, value: t });
|
||||
}
|
||||
: function (e, t) {
|
||||
e.default = t;
|
||||
}),
|
||||
o =
|
||||
(this && this.__importStar) ||
|
||||
function (e) {
|
||||
if (e && e.__esModule) return e;
|
||||
var t = {};
|
||||
if (null != e)
|
||||
for (var n in e)
|
||||
'default' !== n &&
|
||||
Object.prototype.hasOwnProperty.call(e, n) &&
|
||||
r(t, e, n);
|
||||
return i(t, e), t;
|
||||
},
|
||||
u =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.NewcommandConfiguration = void 0);
|
||||
var l = n(251),
|
||||
f = n(205),
|
||||
c = u(n(406));
|
||||
n(297);
|
||||
var s = u(n(945)),
|
||||
d = o(n(871));
|
||||
t.NewcommandConfiguration = l.Configuration.create('newcommand', {
|
||||
handler: { macro: ['Newcommand-macros'] },
|
||||
items: ((a = {}), (a[f.BeginEnvItem.prototype.kind] = f.BeginEnvItem), a),
|
||||
options: { maxMacros: 1e3 },
|
||||
init: function (e) {
|
||||
new d.DelimiterMap(c.default.NEW_DELIMITER, s.default.delimiter, {}),
|
||||
new d.CommandMap(c.default.NEW_COMMAND, {}, {}),
|
||||
new d.EnvironmentMap(
|
||||
c.default.NEW_ENVIRONMENT,
|
||||
s.default.environment,
|
||||
{},
|
||||
{},
|
||||
),
|
||||
e.append(
|
||||
l.Configuration.local({
|
||||
handler: {
|
||||
character: [],
|
||||
delimiter: [c.default.NEW_DELIMITER],
|
||||
macro: [c.default.NEW_DELIMITER, c.default.NEW_COMMAND],
|
||||
environment: [c.default.NEW_ENVIRONMENT],
|
||||
},
|
||||
priority: -1,
|
||||
}),
|
||||
);
|
||||
},
|
||||
});
|
||||
},
|
||||
205: function (e, t, n) {
|
||||
var a,
|
||||
r =
|
||||
(this && this.__extends) ||
|
||||
((a = function (e, t) {
|
||||
return (
|
||||
(a =
|
||||
Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array &&
|
||||
function (e, t) {
|
||||
e.__proto__ = t;
|
||||
}) ||
|
||||
function (e, t) {
|
||||
for (var n in t)
|
||||
Object.prototype.hasOwnProperty.call(t, n) &&
|
||||
(e[n] = t[n]);
|
||||
}),
|
||||
a(e, t)
|
||||
);
|
||||
}),
|
||||
function (e, t) {
|
||||
if ('function' != typeof t && null !== t)
|
||||
throw new TypeError(
|
||||
'Class extends value ' +
|
||||
String(t) +
|
||||
' is not a constructor or null',
|
||||
);
|
||||
function n() {
|
||||
this.constructor = e;
|
||||
}
|
||||
a(e, t),
|
||||
(e.prototype =
|
||||
null === t
|
||||
? Object.create(t)
|
||||
: ((n.prototype = t.prototype), new n()));
|
||||
}),
|
||||
i =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }), (t.BeginEnvItem = void 0);
|
||||
var o = i(n(402)),
|
||||
u = (function (e) {
|
||||
function t() {
|
||||
return (null !== e && e.apply(this, arguments)) || this;
|
||||
}
|
||||
return (
|
||||
r(t, e),
|
||||
Object.defineProperty(t.prototype, 'kind', {
|
||||
get: function () {
|
||||
return 'beginEnv';
|
||||
},
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
}),
|
||||
Object.defineProperty(t.prototype, 'isOpen', {
|
||||
get: function () {
|
||||
return !0;
|
||||
},
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
}),
|
||||
(t.prototype.checkItem = function (t) {
|
||||
if (t.isKind('end')) {
|
||||
if (t.getName() !== this.getName())
|
||||
throw new o.default(
|
||||
'EnvBadEnd',
|
||||
'\\begin{%1} ended with \\end{%2}',
|
||||
this.getName(),
|
||||
t.getName(),
|
||||
);
|
||||
return [[this.factory.create('mml', this.toMml())], !0];
|
||||
}
|
||||
if (t.isKind('stop'))
|
||||
throw new o.default(
|
||||
'EnvMissingEnd',
|
||||
'Missing \\end{%1}',
|
||||
this.getName(),
|
||||
);
|
||||
return e.prototype.checkItem.call(this, t);
|
||||
}),
|
||||
t
|
||||
);
|
||||
})(n(76).BaseItem);
|
||||
t.BeginEnvItem = u;
|
||||
},
|
||||
297: function (e, t, n) {
|
||||
var a =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var r = a(n(107));
|
||||
new (n(871).CommandMap)(
|
||||
'Newcommand-macros',
|
||||
{
|
||||
newcommand: 'NewCommand',
|
||||
renewcommand: 'NewCommand',
|
||||
newenvironment: 'NewEnvironment',
|
||||
renewenvironment: 'NewEnvironment',
|
||||
def: 'MacroDef',
|
||||
let: 'Let',
|
||||
},
|
||||
r.default,
|
||||
);
|
||||
},
|
||||
107: function (e, t, n) {
|
||||
var a =
|
||||
(this && this.__createBinding) ||
|
||||
(Object.create
|
||||
? function (e, t, n, a) {
|
||||
void 0 === a && (a = n);
|
||||
var r = Object.getOwnPropertyDescriptor(t, n);
|
||||
(r &&
|
||||
!('get' in r
|
||||
? !t.__esModule
|
||||
: r.writable || r.configurable)) ||
|
||||
(r = {
|
||||
enumerable: !0,
|
||||
get: function () {
|
||||
return t[n];
|
||||
},
|
||||
}),
|
||||
Object.defineProperty(e, a, r);
|
||||
}
|
||||
: function (e, t, n, a) {
|
||||
void 0 === a && (a = n), (e[a] = t[n]);
|
||||
}),
|
||||
r =
|
||||
(this && this.__setModuleDefault) ||
|
||||
(Object.create
|
||||
? function (e, t) {
|
||||
Object.defineProperty(e, 'default', { enumerable: !0, value: t });
|
||||
}
|
||||
: function (e, t) {
|
||||
e.default = t;
|
||||
}),
|
||||
i =
|
||||
(this && this.__importStar) ||
|
||||
function (e) {
|
||||
if (e && e.__esModule) return e;
|
||||
var t = {};
|
||||
if (null != e)
|
||||
for (var n in e)
|
||||
'default' !== n &&
|
||||
Object.prototype.hasOwnProperty.call(e, n) &&
|
||||
a(t, e, n);
|
||||
return r(t, e), t;
|
||||
},
|
||||
o =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var u = o(n(402)),
|
||||
l = i(n(871)),
|
||||
f = o(n(360)),
|
||||
c = o(n(398)),
|
||||
s = o(n(406)),
|
||||
d = {
|
||||
NewCommand: function (e, t) {
|
||||
var n = s.default.GetCsNameArgument(e, t),
|
||||
a = s.default.GetArgCount(e, t),
|
||||
r = e.GetBrackets(t),
|
||||
i = e.GetArgument(t);
|
||||
s.default.addMacro(e, n, d.Macro, [i, a, r]);
|
||||
},
|
||||
NewEnvironment: function (e, t) {
|
||||
var n = c.default.trimSpaces(e.GetArgument(t)),
|
||||
a = s.default.GetArgCount(e, t),
|
||||
r = e.GetBrackets(t),
|
||||
i = e.GetArgument(t),
|
||||
o = e.GetArgument(t);
|
||||
s.default.addEnvironment(e, n, d.BeginEnv, [!0, i, o, a, r]);
|
||||
},
|
||||
MacroDef: function (e, t) {
|
||||
var n = s.default.GetCSname(e, t),
|
||||
a = s.default.GetTemplate(e, t, '\\' + n),
|
||||
r = e.GetArgument(t);
|
||||
a instanceof Array
|
||||
? s.default.addMacro(e, n, d.MacroWithTemplate, [r].concat(a))
|
||||
: s.default.addMacro(e, n, d.Macro, [r, a]);
|
||||
},
|
||||
Let: function (e, t) {
|
||||
var n = s.default.GetCSname(e, t),
|
||||
a = e.GetNext();
|
||||
'=' === a && (e.i++, (a = e.GetNext()));
|
||||
var r = e.configuration.handlers;
|
||||
if ('\\' !== a) {
|
||||
e.i++;
|
||||
var i = r.get('delimiter').lookup(a);
|
||||
i
|
||||
? s.default.addDelimiter(e, '\\' + n, i.char, i.attributes)
|
||||
: s.default.addMacro(e, n, d.Macro, [a]);
|
||||
} else {
|
||||
t = s.default.GetCSname(e, t);
|
||||
var o = r.get('delimiter').lookup('\\' + t);
|
||||
if (o)
|
||||
return void s.default.addDelimiter(
|
||||
e,
|
||||
'\\' + n,
|
||||
o.char,
|
||||
o.attributes,
|
||||
);
|
||||
var u = r.get('macro').applicable(t);
|
||||
if (!u) return;
|
||||
if (u instanceof l.MacroMap) {
|
||||
var f = u.lookup(t);
|
||||
return void s.default.addMacro(e, n, f.func, f.args, f.symbol);
|
||||
}
|
||||
o = u.lookup(t);
|
||||
var c = s.default.disassembleSymbol(n, o);
|
||||
s.default.addMacro(
|
||||
e,
|
||||
n,
|
||||
function (e, t) {
|
||||
for (var n = [], a = 2; a < arguments.length; a++)
|
||||
n[a - 2] = arguments[a];
|
||||
var r = s.default.assembleSymbol(n);
|
||||
return u.parser(e, r);
|
||||
},
|
||||
c,
|
||||
);
|
||||
}
|
||||
},
|
||||
MacroWithTemplate: function (e, t, n, a) {
|
||||
for (var r = [], i = 4; i < arguments.length; i++)
|
||||
r[i - 4] = arguments[i];
|
||||
var o = parseInt(a, 10);
|
||||
if (o) {
|
||||
var l = [];
|
||||
if ((e.GetNext(), r[0] && !s.default.MatchParam(e, r[0])))
|
||||
throw new u.default(
|
||||
'MismatchUseDef',
|
||||
"Use of %1 doesn't match its definition",
|
||||
t,
|
||||
);
|
||||
for (var f = 0; f < o; f++)
|
||||
l.push(s.default.GetParameter(e, t, r[f + 1]));
|
||||
n = c.default.substituteArgs(e, l, n);
|
||||
}
|
||||
(e.string = c.default.addArgs(e, n, e.string.slice(e.i))),
|
||||
(e.i = 0),
|
||||
c.default.checkMaxMacros(e);
|
||||
},
|
||||
BeginEnv: function (e, t, n, a, r, i) {
|
||||
if (t.getProperty('end') && e.stack.env.closing === t.getName()) {
|
||||
delete e.stack.env.closing;
|
||||
var o = e.string.slice(e.i);
|
||||
return (
|
||||
(e.string = a),
|
||||
(e.i = 0),
|
||||
e.Parse(),
|
||||
(e.string = o),
|
||||
(e.i = 0),
|
||||
e.itemFactory.create('end').setProperty('name', t.getName())
|
||||
);
|
||||
}
|
||||
if (r) {
|
||||
var u = [];
|
||||
if (null != i) {
|
||||
var l = e.GetBrackets('\\begin{' + t.getName() + '}');
|
||||
u.push(null == l ? i : l);
|
||||
}
|
||||
for (var f = u.length; f < r; f++)
|
||||
u.push(e.GetArgument('\\begin{' + t.getName() + '}'));
|
||||
(n = c.default.substituteArgs(e, u, n)),
|
||||
(a = c.default.substituteArgs(e, [], a));
|
||||
}
|
||||
return (
|
||||
(e.string = c.default.addArgs(e, n, e.string.slice(e.i))),
|
||||
(e.i = 0),
|
||||
e.itemFactory.create('beginEnv').setProperty('name', t.getName())
|
||||
);
|
||||
},
|
||||
};
|
||||
(d.Macro = f.default.Macro), (t.default = d);
|
||||
},
|
||||
406: function (e, t, n) {
|
||||
var a =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var r,
|
||||
i = a(n(398)),
|
||||
o = a(n(402)),
|
||||
u = n(924);
|
||||
!(function (e) {
|
||||
function t(e, t) {
|
||||
return e.string.substr(e.i, t.length) !== t ||
|
||||
(t.match(/\\[a-z]+$/i) &&
|
||||
e.string.charAt(e.i + t.length).match(/[a-z]/i))
|
||||
? 0
|
||||
: ((e.i += t.length), 1);
|
||||
}
|
||||
(e.disassembleSymbol = function (e, t) {
|
||||
var n = [e, t.char];
|
||||
if (t.attributes)
|
||||
for (var a in t.attributes) n.push(a), n.push(t.attributes[a]);
|
||||
return n;
|
||||
}),
|
||||
(e.assembleSymbol = function (e) {
|
||||
for (var t = e[0], n = e[1], a = {}, r = 2; r < e.length; r += 2)
|
||||
a[e[r]] = e[r + 1];
|
||||
return new u.Symbol(t, n, a);
|
||||
}),
|
||||
(e.GetCSname = function (e, t) {
|
||||
if ('\\' !== e.GetNext())
|
||||
throw new o.default(
|
||||
'MissingCS',
|
||||
'%1 must be followed by a control sequence',
|
||||
t,
|
||||
);
|
||||
return i.default.trimSpaces(e.GetArgument(t)).substr(1);
|
||||
}),
|
||||
(e.GetCsNameArgument = function (e, t) {
|
||||
var n = i.default.trimSpaces(e.GetArgument(t));
|
||||
if (
|
||||
('\\' === n.charAt(0) && (n = n.substr(1)),
|
||||
!n.match(/^(.|[a-z]+)$/i))
|
||||
)
|
||||
throw new o.default(
|
||||
'IllegalControlSequenceName',
|
||||
'Illegal control sequence name for %1',
|
||||
t,
|
||||
);
|
||||
return n;
|
||||
}),
|
||||
(e.GetArgCount = function (e, t) {
|
||||
var n = e.GetBrackets(t);
|
||||
if (n && !(n = i.default.trimSpaces(n)).match(/^[0-9]+$/))
|
||||
throw new o.default(
|
||||
'IllegalParamNumber',
|
||||
'Illegal number of parameters specified in %1',
|
||||
t,
|
||||
);
|
||||
return n;
|
||||
}),
|
||||
(e.GetTemplate = function (e, t, n) {
|
||||
for (
|
||||
var a = e.GetNext(), r = [], i = 0, u = e.i;
|
||||
e.i < e.string.length;
|
||||
|
||||
) {
|
||||
if ('#' === (a = e.GetNext())) {
|
||||
if (
|
||||
(u !== e.i && (r[i] = e.string.substr(u, e.i - u)),
|
||||
!(a = e.string.charAt(++e.i)).match(/^[1-9]$/))
|
||||
)
|
||||
throw new o.default(
|
||||
'CantUseHash2',
|
||||
'Illegal use of # in template for %1',
|
||||
n,
|
||||
);
|
||||
if (parseInt(a) !== ++i)
|
||||
throw new o.default(
|
||||
'SequentialParam',
|
||||
'Parameters for %1 must be numbered sequentially',
|
||||
n,
|
||||
);
|
||||
u = e.i + 1;
|
||||
} else if ('{' === a)
|
||||
return (
|
||||
u !== e.i && (r[i] = e.string.substr(u, e.i - u)),
|
||||
r.length > 0 ? [i.toString()].concat(r) : i
|
||||
);
|
||||
e.i++;
|
||||
}
|
||||
throw new o.default(
|
||||
'MissingReplacementString',
|
||||
'Missing replacement string for definition of %1',
|
||||
t,
|
||||
);
|
||||
}),
|
||||
(e.GetParameter = function (e, n, a) {
|
||||
if (null == a) return e.GetArgument(n);
|
||||
for (var r = e.i, i = 0, u = 0; e.i < e.string.length; ) {
|
||||
var l = e.string.charAt(e.i);
|
||||
if ('{' === l)
|
||||
e.i === r && (u = 1), e.GetArgument(n), (i = e.i - r);
|
||||
else {
|
||||
if (t(e, a)) return u && (r++, (i -= 2)), e.string.substr(r, i);
|
||||
if ('\\' === l) {
|
||||
e.i++, i++, (u = 0);
|
||||
var f = e.string.substr(e.i).match(/[a-z]+|./i);
|
||||
f && ((e.i += f[0].length), (i = e.i - r));
|
||||
} else e.i++, i++, (u = 0);
|
||||
}
|
||||
}
|
||||
throw new o.default('RunawayArgument', 'Runaway argument for %1?', n);
|
||||
}),
|
||||
(e.MatchParam = t),
|
||||
(e.addDelimiter = function (t, n, a, r) {
|
||||
t.configuration.handlers
|
||||
.retrieve(e.NEW_DELIMITER)
|
||||
.add(n, new u.Symbol(n, a, r));
|
||||
}),
|
||||
(e.addMacro = function (t, n, a, r, i) {
|
||||
void 0 === i && (i = ''),
|
||||
t.configuration.handlers
|
||||
.retrieve(e.NEW_COMMAND)
|
||||
.add(n, new u.Macro(i || n, a, r));
|
||||
}),
|
||||
(e.addEnvironment = function (t, n, a, r) {
|
||||
t.configuration.handlers
|
||||
.retrieve(e.NEW_ENVIRONMENT)
|
||||
.add(n, new u.Macro(n, a, r));
|
||||
}),
|
||||
(e.NEW_DELIMITER = 'new-Delimiter'),
|
||||
(e.NEW_COMMAND = 'new-Command'),
|
||||
(e.NEW_ENVIRONMENT = 'new-Environment');
|
||||
})(r || (r = {})),
|
||||
(t.default = r);
|
||||
},
|
||||
955: function (e, t) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(t.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(t.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(t.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
945: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.ParseMethods.default);
|
||||
},
|
||||
398: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.ParseUtil.default);
|
||||
},
|
||||
76: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.MmlStack = MathJax._.input.tex.StackItem.MmlStack),
|
||||
(t.BaseItem = MathJax._.input.tex.StackItem.BaseItem);
|
||||
},
|
||||
924: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.Symbol = MathJax._.input.tex.Symbol.Symbol),
|
||||
(t.Macro = MathJax._.input.tex.Symbol.Macro);
|
||||
},
|
||||
871: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(t.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(t.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(t.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(t.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(t.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(t.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(t.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(t.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
402: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.TexError.default);
|
||||
},
|
||||
360: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.base.BaseMethods.default);
|
||||
},
|
||||
},
|
||||
u = {};
|
||||
function l(e) {
|
||||
var t = u[e];
|
||||
if (void 0 !== t) return t.exports;
|
||||
var n = (u[e] = { exports: {} });
|
||||
return o[e].call(n.exports, n, n.exports, l), n.exports;
|
||||
}
|
||||
(e = l(955)),
|
||||
(t = l(667)),
|
||||
(n = l(48)),
|
||||
(a = l(205)),
|
||||
(r = l(107)),
|
||||
(i = l(406)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/newcommand', t.q, 'tex-extension'),
|
||||
(0, e.r8)({
|
||||
_: {
|
||||
input: {
|
||||
tex: {
|
||||
newcommand: {
|
||||
NewcommandConfiguration: n,
|
||||
NewcommandItems: a,
|
||||
NewcommandMethods: r,
|
||||
NewcommandUtil: i,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
})();
|
||||
@@ -1,53 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var o,
|
||||
n,
|
||||
r,
|
||||
t = {
|
||||
667: function (o, n) {
|
||||
(n.q = void 0), (n.q = '3.2.2');
|
||||
},
|
||||
634: function (o, n, r) {
|
||||
Object.defineProperty(n, '__esModule', { value: !0 }),
|
||||
(n.NoErrorsConfiguration = void 0);
|
||||
var t = r(251);
|
||||
n.NoErrorsConfiguration = t.Configuration.create('noerrors', {
|
||||
nodes: {
|
||||
error: function (o, n, r, t) {
|
||||
var e = o.create('token', 'mtext', {}, t.replace(/\n/g, ' '));
|
||||
return o.create('node', 'merror', [e], {
|
||||
'data-mjx-error': n,
|
||||
title: n,
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
},
|
||||
955: function (o, n) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(n.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (o, n) {
|
||||
Object.defineProperty(n, '__esModule', { value: !0 }),
|
||||
(n.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(n.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(n.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
},
|
||||
e = {};
|
||||
function a(o) {
|
||||
var n = e[o];
|
||||
if (void 0 !== n) return n.exports;
|
||||
var r = (e[o] = { exports: {} });
|
||||
return t[o](r, r.exports, a), r.exports;
|
||||
}
|
||||
(o = a(955)),
|
||||
(n = a(667)),
|
||||
(r = a(634)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/noerrors', n.q, 'tex-extension'),
|
||||
(0, o.r8)({ _: { input: { tex: { noerrors: { NoErrorsConfiguration: r } } } } });
|
||||
})();
|
||||
@@ -1,94 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var n,
|
||||
o,
|
||||
e,
|
||||
t = {
|
||||
667: function (n, o) {
|
||||
(o.q = void 0), (o.q = '3.2.2');
|
||||
},
|
||||
999: function (n, o, e) {
|
||||
var t =
|
||||
(this && this.__values) ||
|
||||
function (n) {
|
||||
var o = 'function' == typeof Symbol && Symbol.iterator,
|
||||
e = o && n[o],
|
||||
t = 0;
|
||||
if (e) return e.call(n);
|
||||
if (n && 'number' == typeof n.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
n && t >= n.length && (n = void 0),
|
||||
{ value: n && n[t++], done: !n }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
o ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
};
|
||||
Object.defineProperty(o, '__esModule', { value: !0 }),
|
||||
(o.NoUndefinedConfiguration = void 0);
|
||||
var r = e(251);
|
||||
o.NoUndefinedConfiguration = r.Configuration.create('noundefined', {
|
||||
fallback: {
|
||||
macro: function (n, o) {
|
||||
var e,
|
||||
r,
|
||||
i = n.create('text', '\\' + o),
|
||||
a = n.options.noundefined || {},
|
||||
u = {};
|
||||
try {
|
||||
for (
|
||||
var f = t(['color', 'background', 'size']), l = f.next();
|
||||
!l.done;
|
||||
l = f.next()
|
||||
) {
|
||||
var c = l.value;
|
||||
a[c] && (u['math' + c] = a[c]);
|
||||
}
|
||||
} catch (n) {
|
||||
e = { error: n };
|
||||
} finally {
|
||||
try {
|
||||
l && !l.done && (r = f.return) && r.call(f);
|
||||
} finally {
|
||||
if (e) throw e.error;
|
||||
}
|
||||
}
|
||||
n.Push(n.create('node', 'mtext', [], u, i));
|
||||
},
|
||||
},
|
||||
options: { noundefined: { color: 'red', background: '', size: '' } },
|
||||
priority: 3,
|
||||
});
|
||||
},
|
||||
955: function (n, o) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(o.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (n, o) {
|
||||
Object.defineProperty(o, '__esModule', { value: !0 }),
|
||||
(o.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(o.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(o.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
},
|
||||
r = {};
|
||||
function i(n) {
|
||||
var o = r[n];
|
||||
if (void 0 !== o) return o.exports;
|
||||
var e = (r[n] = { exports: {} });
|
||||
return t[n].call(e.exports, e, e.exports, i), e.exports;
|
||||
}
|
||||
(n = i(955)),
|
||||
(o = i(667)),
|
||||
(e = i(999)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/noundefined', o.q, 'tex-extension'),
|
||||
(0, n.r8)({ _: { input: { tex: { noundefined: { NoUndefinedConfiguration: e } } } } });
|
||||
})();
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,267 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var e,
|
||||
t,
|
||||
a,
|
||||
o = {
|
||||
667: function (e, t) {
|
||||
(t.q = void 0), (t.q = '3.2.2');
|
||||
},
|
||||
778: function (e, t, a) {
|
||||
var o =
|
||||
(this && this.__values) ||
|
||||
function (e) {
|
||||
var t = 'function' == typeof Symbol && Symbol.iterator,
|
||||
a = t && e[t],
|
||||
o = 0;
|
||||
if (a) return a.call(e);
|
||||
if (e && 'number' == typeof e.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
e && o >= e.length && (e = void 0),
|
||||
{ value: e && e[o++], done: !e }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
t ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
},
|
||||
r =
|
||||
(this && this.__read) ||
|
||||
function (e, t) {
|
||||
var a = 'function' == typeof Symbol && e[Symbol.iterator];
|
||||
if (!a) return e;
|
||||
var o,
|
||||
r,
|
||||
n = a.call(e),
|
||||
i = [];
|
||||
try {
|
||||
for (; (void 0 === t || t-- > 0) && !(o = n.next()).done; )
|
||||
i.push(o.value);
|
||||
} catch (e) {
|
||||
r = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
o && !o.done && (a = n.return) && a.call(n);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
return i;
|
||||
},
|
||||
n =
|
||||
(this && this.__spreadArray) ||
|
||||
function (e, t, a) {
|
||||
if (a || 2 === arguments.length)
|
||||
for (var o, r = 0, n = t.length; r < n; r++)
|
||||
(!o && r in t) ||
|
||||
(o || (o = Array.prototype.slice.call(t, 0, r)),
|
||||
(o[r] = t[r]));
|
||||
return e.concat(o || Array.prototype.slice.call(t));
|
||||
},
|
||||
i =
|
||||
(this && this.__importDefault) ||
|
||||
function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
};
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.RequireConfiguration =
|
||||
t.options =
|
||||
t.RequireMethods =
|
||||
t.RequireLoad =
|
||||
void 0);
|
||||
var p = a(251),
|
||||
s = a(871),
|
||||
u = i(a(402)),
|
||||
l = a(955),
|
||||
c = a(629),
|
||||
x = a(282),
|
||||
h = a(149),
|
||||
f = a(74),
|
||||
M = l.MathJax.config;
|
||||
function d(e, t) {
|
||||
var a,
|
||||
r = e.parseOptions.options.require,
|
||||
n = e.parseOptions.packageData.get('require').required,
|
||||
i = t.substr(r.prefix.length);
|
||||
if (n.indexOf(i) < 0) {
|
||||
n.push(i),
|
||||
(function (e, t) {
|
||||
var a, r;
|
||||
void 0 === t && (t = []);
|
||||
var n = e.parseOptions.options.require.prefix;
|
||||
try {
|
||||
for (var i = o(t), p = i.next(); !p.done; p = i.next()) {
|
||||
var s = p.value;
|
||||
s.substr(0, n.length) === n && d(e, s);
|
||||
}
|
||||
} catch (e) {
|
||||
a = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
p && !p.done && (r = i.return) && r.call(i);
|
||||
} finally {
|
||||
if (a) throw a.error;
|
||||
}
|
||||
}
|
||||
})(e, x.CONFIG.dependencies[t]);
|
||||
var s = p.ConfigurationHandler.get(i);
|
||||
if (s) {
|
||||
var u = M[t] || {};
|
||||
s.options &&
|
||||
1 === Object.keys(s.options).length &&
|
||||
s.options[i] &&
|
||||
(((a = {})[i] = u), (u = a)),
|
||||
e.configuration.add(i, e, u);
|
||||
var l = e.parseOptions.packageData.get('require').configured;
|
||||
s.preprocessors.length &&
|
||||
!l.has(i) &&
|
||||
(l.set(i, !0), h.mathjax.retryAfter(Promise.resolve()));
|
||||
}
|
||||
}
|
||||
}
|
||||
function _(e, t) {
|
||||
var a = e.options.require,
|
||||
o = a.allow,
|
||||
r = ('[' === t.substr(0, 1) ? '' : a.prefix) + t;
|
||||
if (!(o.hasOwnProperty(r) ? o[r] : o.hasOwnProperty(t) ? o[t] : a.defaultAllow))
|
||||
throw new u.default(
|
||||
'BadRequire',
|
||||
'Extension "%1" is not allowed to be loaded',
|
||||
r,
|
||||
);
|
||||
c.Package.packages.has(r)
|
||||
? d(e.configuration.packageData.get('require').jax, r)
|
||||
: h.mathjax.retryAfter(x.Loader.load(r));
|
||||
}
|
||||
(t.RequireLoad = _),
|
||||
(t.RequireMethods = {
|
||||
Require: function (e, t) {
|
||||
var a = e.GetArgument(t);
|
||||
if (a.match(/[^_a-zA-Z0-9]/) || '' === a)
|
||||
throw new u.default(
|
||||
'BadPackageName',
|
||||
'Argument for %1 is not a valid package name',
|
||||
t,
|
||||
);
|
||||
_(e, a);
|
||||
},
|
||||
}),
|
||||
(t.options = {
|
||||
require: {
|
||||
allow: (0, f.expandable)({
|
||||
base: !1,
|
||||
'all-packages': !1,
|
||||
autoload: !1,
|
||||
configmacros: !1,
|
||||
tagformat: !1,
|
||||
setoptions: !1,
|
||||
}),
|
||||
defaultAllow: !0,
|
||||
prefix: 'tex',
|
||||
},
|
||||
}),
|
||||
new s.CommandMap('require', { require: 'Require' }, t.RequireMethods),
|
||||
(t.RequireConfiguration = p.Configuration.create('require', {
|
||||
handler: { macro: ['require'] },
|
||||
config: function (e, t) {
|
||||
t.parseOptions.packageData.set('require', {
|
||||
jax: t,
|
||||
required: n([], r(t.options.packages), !1),
|
||||
configured: new Map(),
|
||||
});
|
||||
var a = t.parseOptions.options.require,
|
||||
o = a.prefix;
|
||||
if (o.match(/[^_a-zA-Z0-9]/))
|
||||
throw Error('Illegal characters used in \\require prefix');
|
||||
x.CONFIG.paths[o] ||
|
||||
(x.CONFIG.paths[o] = '[mathjax]/input/tex/extensions'),
|
||||
(a.prefix = '[' + o + ']/');
|
||||
},
|
||||
options: t.options,
|
||||
}));
|
||||
},
|
||||
955: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.isObject = MathJax._.components.global.isObject),
|
||||
(t.combineConfig = MathJax._.components.global.combineConfig),
|
||||
(t.combineDefaults = MathJax._.components.global.combineDefaults),
|
||||
(t.combineWithMathJax = MathJax._.components.global.combineWithMathJax),
|
||||
(t.MathJax = MathJax._.components.global.MathJax);
|
||||
},
|
||||
149: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.mathjax = MathJax._.mathjax.mathjax);
|
||||
},
|
||||
74: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.isObject = MathJax._.util.Options.isObject),
|
||||
(t.APPEND = MathJax._.util.Options.APPEND),
|
||||
(t.REMOVE = MathJax._.util.Options.REMOVE),
|
||||
(t.OPTIONS = MathJax._.util.Options.OPTIONS),
|
||||
(t.Expandable = MathJax._.util.Options.Expandable),
|
||||
(t.expandable = MathJax._.util.Options.expandable),
|
||||
(t.makeArray = MathJax._.util.Options.makeArray),
|
||||
(t.keys = MathJax._.util.Options.keys),
|
||||
(t.copy = MathJax._.util.Options.copy),
|
||||
(t.insert = MathJax._.util.Options.insert),
|
||||
(t.defaultOptions = MathJax._.util.Options.defaultOptions),
|
||||
(t.userOptions = MathJax._.util.Options.userOptions),
|
||||
(t.selectOptions = MathJax._.util.Options.selectOptions),
|
||||
(t.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys),
|
||||
(t.separateOptions = MathJax._.util.Options.separateOptions),
|
||||
(t.lookup = MathJax._.util.Options.lookup);
|
||||
},
|
||||
251: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(t.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(t.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
871: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(t.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(t.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(t.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(t.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(t.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(t.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(t.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(t.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
402: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.default = MathJax._.input.tex.TexError.default);
|
||||
},
|
||||
282: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.PathFilters = MathJax._.components.loader.PathFilters),
|
||||
(t.Loader = MathJax._.components.loader.Loader),
|
||||
(t.MathJax = MathJax._.components.loader.MathJax),
|
||||
(t.CONFIG = MathJax._.components.loader.CONFIG);
|
||||
},
|
||||
629: function (e, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.PackageError = MathJax._.components.package.PackageError),
|
||||
(t.Package = MathJax._.components.package.Package);
|
||||
},
|
||||
},
|
||||
r = {};
|
||||
function n(e) {
|
||||
var t = r[e];
|
||||
if (void 0 !== t) return t.exports;
|
||||
var a = (r[e] = { exports: {} });
|
||||
return o[e].call(a.exports, a, a.exports, n), a.exports;
|
||||
}
|
||||
(e = n(955)),
|
||||
(t = n(667)),
|
||||
(a = n(778)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/require', t.q, 'tex-extension'),
|
||||
(0, e.combineWithMathJax)({
|
||||
_: { input: { tex: { require: { RequireConfiguration: a } } } },
|
||||
});
|
||||
})();
|
||||
@@ -1,243 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
e,
|
||||
a,
|
||||
o = {
|
||||
667: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
596: function (t, e, a) {
|
||||
var o =
|
||||
(this && this.__values) ||
|
||||
function (t) {
|
||||
var e = 'function' == typeof Symbol && Symbol.iterator,
|
||||
a = e && t[e],
|
||||
o = 0;
|
||||
if (a) return a.call(t);
|
||||
if (t && 'number' == typeof t.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
t && o >= t.length && (t = void 0),
|
||||
{ value: t && t[o++], done: !t }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
e ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
},
|
||||
n =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.SetOptionsConfiguration = e.SetOptionsUtil = void 0);
|
||||
var i = a(251),
|
||||
r = a(871),
|
||||
l = n(a(402)),
|
||||
p = n(a(398)),
|
||||
s = a(924),
|
||||
u = n(a(360)),
|
||||
f = a(74);
|
||||
e.SetOptionsUtil = {
|
||||
filterPackage: function (t, e) {
|
||||
if ('tex' !== e && !i.ConfigurationHandler.get(e))
|
||||
throw new l.default('NotAPackage', 'Not a defined package: %1', e);
|
||||
var a = t.options.setoptions,
|
||||
o = a.allowOptions[e];
|
||||
if ((void 0 === o && !a.allowPackageDefault) || !1 === o)
|
||||
throw new l.default(
|
||||
'PackageNotSettable',
|
||||
'Options can\'t be set for package "%1"',
|
||||
e,
|
||||
);
|
||||
return !0;
|
||||
},
|
||||
filterOption: function (t, e, a) {
|
||||
var o,
|
||||
n = t.options.setoptions,
|
||||
i = n.allowOptions[e] || {},
|
||||
r = i.hasOwnProperty(a) && !(0, f.isObject)(i[a]) ? i[a] : null;
|
||||
if (!1 === r || (null === r && !n.allowOptionsDefault))
|
||||
throw new l.default(
|
||||
'OptionNotSettable',
|
||||
'Option "%1" is not allowed to be set',
|
||||
a,
|
||||
);
|
||||
if (
|
||||
!(null === (o = 'tex' === e ? t.options : t.options[e]) || void 0 === o
|
||||
? void 0
|
||||
: o.hasOwnProperty(a))
|
||||
)
|
||||
throw 'tex' === e
|
||||
? new l.default('InvalidTexOption', 'Invalid TeX option "%1"', a)
|
||||
: new l.default(
|
||||
'InvalidOptionKey',
|
||||
'Invalid option "%1" for package "%2"',
|
||||
a,
|
||||
e,
|
||||
);
|
||||
return !0;
|
||||
},
|
||||
filterValue: function (t, e, a, o) {
|
||||
return o;
|
||||
},
|
||||
};
|
||||
var c = new r.CommandMap(
|
||||
'setoptions',
|
||||
{ setOptions: 'SetOptions' },
|
||||
{
|
||||
SetOptions: function (t, e) {
|
||||
var a,
|
||||
n,
|
||||
i = t.GetBrackets(e) || 'tex',
|
||||
r = p.default.keyvalOptions(t.GetArgument(e)),
|
||||
l = t.options.setoptions;
|
||||
if (l.filterPackage(t, i))
|
||||
try {
|
||||
for (
|
||||
var s = o(Object.keys(r)), u = s.next();
|
||||
!u.done;
|
||||
u = s.next()
|
||||
) {
|
||||
var f = u.value;
|
||||
l.filterOption(t, i, f) &&
|
||||
(('tex' === i ? t.options : t.options[i])[f] =
|
||||
l.filterValue(t, i, f, r[f]));
|
||||
}
|
||||
} catch (t) {
|
||||
a = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
u && !u.done && (n = s.return) && n.call(s);
|
||||
} finally {
|
||||
if (a) throw a.error;
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
);
|
||||
e.SetOptionsConfiguration = i.Configuration.create('setoptions', {
|
||||
handler: { macro: ['setoptions'] },
|
||||
config: function (t, e) {
|
||||
var a = e.parseOptions.handlers.get('macro').lookup('require');
|
||||
a &&
|
||||
(c.add('Require', new s.Macro('Require', a._func)),
|
||||
c.add(
|
||||
'require',
|
||||
new s.Macro('require', u.default.Macro, [
|
||||
'\\Require{#2}\\setOptions[#2]{#1}',
|
||||
2,
|
||||
'',
|
||||
]),
|
||||
));
|
||||
},
|
||||
priority: 3,
|
||||
options: {
|
||||
setoptions: {
|
||||
filterPackage: e.SetOptionsUtil.filterPackage,
|
||||
filterOption: e.SetOptionsUtil.filterOption,
|
||||
filterValue: e.SetOptionsUtil.filterValue,
|
||||
allowPackageDefault: !0,
|
||||
allowOptionsDefault: !0,
|
||||
allowOptions: (0, f.expandable)({
|
||||
tex: {
|
||||
FindTeX: !1,
|
||||
formatError: !1,
|
||||
package: !1,
|
||||
baseURL: !1,
|
||||
tags: !1,
|
||||
maxBuffer: !1,
|
||||
maxMaxros: !1,
|
||||
macros: !1,
|
||||
environments: !1,
|
||||
},
|
||||
setoptions: !1,
|
||||
autoload: !1,
|
||||
require: !1,
|
||||
configmacros: !1,
|
||||
tagformat: !1,
|
||||
}),
|
||||
},
|
||||
},
|
||||
});
|
||||
},
|
||||
955: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
74: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.isObject = MathJax._.util.Options.isObject),
|
||||
(e.APPEND = MathJax._.util.Options.APPEND),
|
||||
(e.REMOVE = MathJax._.util.Options.REMOVE),
|
||||
(e.OPTIONS = MathJax._.util.Options.OPTIONS),
|
||||
(e.Expandable = MathJax._.util.Options.Expandable),
|
||||
(e.expandable = MathJax._.util.Options.expandable),
|
||||
(e.makeArray = MathJax._.util.Options.makeArray),
|
||||
(e.keys = MathJax._.util.Options.keys),
|
||||
(e.copy = MathJax._.util.Options.copy),
|
||||
(e.insert = MathJax._.util.Options.insert),
|
||||
(e.defaultOptions = MathJax._.util.Options.defaultOptions),
|
||||
(e.userOptions = MathJax._.util.Options.userOptions),
|
||||
(e.selectOptions = MathJax._.util.Options.selectOptions),
|
||||
(e.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys),
|
||||
(e.separateOptions = MathJax._.util.Options.separateOptions),
|
||||
(e.lookup = MathJax._.util.Options.lookup);
|
||||
},
|
||||
251: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(e.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(e.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
398: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.ParseUtil.default);
|
||||
},
|
||||
924: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Symbol = MathJax._.input.tex.Symbol.Symbol),
|
||||
(e.Macro = MathJax._.input.tex.Symbol.Macro);
|
||||
},
|
||||
871: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(e.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(e.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(e.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(e.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(e.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(e.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(e.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(e.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
402: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.TexError.default);
|
||||
},
|
||||
360: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.base.BaseMethods.default);
|
||||
},
|
||||
},
|
||||
n = {};
|
||||
function i(t) {
|
||||
var e = n[t];
|
||||
if (void 0 !== e) return e.exports;
|
||||
var a = (n[t] = { exports: {} });
|
||||
return o[t].call(a.exports, a, a.exports, i), a.exports;
|
||||
}
|
||||
(t = i(955)),
|
||||
(e = i(667)),
|
||||
(a = i(596)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/setoptions', e.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { setoptions: { SetOptionsConfiguration: a } } } } });
|
||||
})();
|
||||
@@ -1,135 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
o,
|
||||
n,
|
||||
a = {
|
||||
667: function (t, o) {
|
||||
(o.q = void 0), (o.q = '3.2.2');
|
||||
},
|
||||
941: function (t, o, n) {
|
||||
var a,
|
||||
r =
|
||||
(this && this.__extends) ||
|
||||
((a = function (t, o) {
|
||||
return (
|
||||
(a =
|
||||
Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array &&
|
||||
function (t, o) {
|
||||
t.__proto__ = o;
|
||||
}) ||
|
||||
function (t, o) {
|
||||
for (var n in o)
|
||||
Object.prototype.hasOwnProperty.call(o, n) &&
|
||||
(t[n] = o[n]);
|
||||
}),
|
||||
a(t, o)
|
||||
);
|
||||
}),
|
||||
function (t, o) {
|
||||
if ('function' != typeof o && null !== o)
|
||||
throw new TypeError(
|
||||
'Class extends value ' +
|
||||
String(o) +
|
||||
' is not a constructor or null',
|
||||
);
|
||||
function n() {
|
||||
this.constructor = t;
|
||||
}
|
||||
a(t, o),
|
||||
(t.prototype =
|
||||
null === o
|
||||
? Object.create(o)
|
||||
: ((n.prototype = o.prototype), new n()));
|
||||
});
|
||||
Object.defineProperty(o, '__esModule', { value: !0 }),
|
||||
(o.TagFormatConfiguration = o.tagformatConfig = void 0);
|
||||
var e = n(251),
|
||||
i = n(680),
|
||||
s = 0;
|
||||
function u(t, o) {
|
||||
var n = o.parseOptions.options.tags;
|
||||
'base' !== n && t.tags.hasOwnProperty(n) && i.TagsFactory.add(n, t.tags[n]);
|
||||
var a = (function (t) {
|
||||
function n() {
|
||||
return (null !== t && t.apply(this, arguments)) || this;
|
||||
}
|
||||
return (
|
||||
r(n, t),
|
||||
(n.prototype.formatNumber = function (t) {
|
||||
return o.parseOptions.options.tagformat.number(t);
|
||||
}),
|
||||
(n.prototype.formatTag = function (t) {
|
||||
return o.parseOptions.options.tagformat.tag(t);
|
||||
}),
|
||||
(n.prototype.formatId = function (t) {
|
||||
return o.parseOptions.options.tagformat.id(t);
|
||||
}),
|
||||
(n.prototype.formatUrl = function (t, n) {
|
||||
return o.parseOptions.options.tagformat.url(t, n);
|
||||
}),
|
||||
n
|
||||
);
|
||||
})(i.TagsFactory.create(o.parseOptions.options.tags).constructor),
|
||||
e = 'configTags-' + ++s;
|
||||
i.TagsFactory.add(e, a), (o.parseOptions.options.tags = e);
|
||||
}
|
||||
(o.tagformatConfig = u),
|
||||
(o.TagFormatConfiguration = e.Configuration.create('tagformat', {
|
||||
config: [u, 10],
|
||||
options: {
|
||||
tagformat: {
|
||||
number: function (t) {
|
||||
return t.toString();
|
||||
},
|
||||
tag: function (t) {
|
||||
return '(' + t + ')';
|
||||
},
|
||||
id: function (t) {
|
||||
return 'mjx-eqn:' + t.replace(/\s/g, '_');
|
||||
},
|
||||
url: function (t, o) {
|
||||
return o + '#' + encodeURIComponent(t);
|
||||
},
|
||||
},
|
||||
},
|
||||
}));
|
||||
},
|
||||
955: function (t, o) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(o.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (t, o) {
|
||||
Object.defineProperty(o, '__esModule', { value: !0 }),
|
||||
(o.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(o.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(o.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
680: function (t, o) {
|
||||
Object.defineProperty(o, '__esModule', { value: !0 }),
|
||||
(o.Label = MathJax._.input.tex.Tags.Label),
|
||||
(o.TagInfo = MathJax._.input.tex.Tags.TagInfo),
|
||||
(o.AbstractTags = MathJax._.input.tex.Tags.AbstractTags),
|
||||
(o.NoTags = MathJax._.input.tex.Tags.NoTags),
|
||||
(o.AllTags = MathJax._.input.tex.Tags.AllTags),
|
||||
(o.TagsFactory = MathJax._.input.tex.Tags.TagsFactory);
|
||||
},
|
||||
},
|
||||
r = {};
|
||||
function e(t) {
|
||||
var o = r[t];
|
||||
if (void 0 !== o) return o.exports;
|
||||
var n = (r[t] = { exports: {} });
|
||||
return a[t].call(n.exports, n, n.exports, e), n.exports;
|
||||
}
|
||||
(t = e(955)),
|
||||
(o = e(667)),
|
||||
(n = e(941)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/tagformat', o.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { tagformat: { TagFormatConfiguration: n } } } } });
|
||||
})();
|
||||
@@ -1,219 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
e,
|
||||
n,
|
||||
r = {
|
||||
667: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
845: function (t, e, n) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.TextcompConfiguration = void 0);
|
||||
var r = n(251);
|
||||
n(832),
|
||||
(e.TextcompConfiguration = r.Configuration.create('textcomp', {
|
||||
handler: { macro: ['textcomp-macros'] },
|
||||
}));
|
||||
},
|
||||
832: function (t, e, n) {
|
||||
var r =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 });
|
||||
var a = n(871),
|
||||
s = n(108),
|
||||
o = n(245),
|
||||
x = r(n(398)),
|
||||
i = n(988);
|
||||
new a.CommandMap(
|
||||
'textcomp-macros',
|
||||
{
|
||||
textasciicircum: ['Insert', '^'],
|
||||
textasciitilde: ['Insert', '~'],
|
||||
textasteriskcentered: ['Insert', '*'],
|
||||
textbackslash: ['Insert', '\\'],
|
||||
textbar: ['Insert', '|'],
|
||||
textbraceleft: ['Insert', '{'],
|
||||
textbraceright: ['Insert', '}'],
|
||||
textbullet: ['Insert', '\u2022'],
|
||||
textdagger: ['Insert', '\u2020'],
|
||||
textdaggerdbl: ['Insert', '\u2021'],
|
||||
textellipsis: ['Insert', '\u2026'],
|
||||
textemdash: ['Insert', '\u2014'],
|
||||
textendash: ['Insert', '\u2013'],
|
||||
textexclamdown: ['Insert', '\xa1'],
|
||||
textgreater: ['Insert', '>'],
|
||||
textless: ['Insert', '<'],
|
||||
textordfeminine: ['Insert', '\xaa'],
|
||||
textordmasculine: ['Insert', '\xba'],
|
||||
textparagraph: ['Insert', '\xb6'],
|
||||
textperiodcentered: ['Insert', '\xb7'],
|
||||
textquestiondown: ['Insert', '\xbf'],
|
||||
textquotedblleft: ['Insert', '\u201c'],
|
||||
textquotedblright: ['Insert', '\u201d'],
|
||||
textquoteleft: ['Insert', '\u2018'],
|
||||
textquoteright: ['Insert', '\u2019'],
|
||||
textsection: ['Insert', '\xa7'],
|
||||
textunderscore: ['Insert', '_'],
|
||||
textvisiblespace: ['Insert', '\u2423'],
|
||||
textacutedbl: ['Insert', '\u02dd'],
|
||||
textasciiacute: ['Insert', '\xb4'],
|
||||
textasciibreve: ['Insert', '\u02d8'],
|
||||
textasciicaron: ['Insert', '\u02c7'],
|
||||
textasciidieresis: ['Insert', '\xa8'],
|
||||
textasciimacron: ['Insert', '\xaf'],
|
||||
textgravedbl: ['Insert', '\u02f5'],
|
||||
texttildelow: ['Insert', '\u02f7'],
|
||||
textbaht: ['Insert', '\u0e3f'],
|
||||
textcent: ['Insert', '\xa2'],
|
||||
textcolonmonetary: ['Insert', '\u20a1'],
|
||||
textcurrency: ['Insert', '\xa4'],
|
||||
textdollar: ['Insert', '$'],
|
||||
textdong: ['Insert', '\u20ab'],
|
||||
texteuro: ['Insert', '\u20ac'],
|
||||
textflorin: ['Insert', '\u0192'],
|
||||
textguarani: ['Insert', '\u20b2'],
|
||||
textlira: ['Insert', '\u20a4'],
|
||||
textnaira: ['Insert', '\u20a6'],
|
||||
textpeso: ['Insert', '\u20b1'],
|
||||
textsterling: ['Insert', '\xa3'],
|
||||
textwon: ['Insert', '\u20a9'],
|
||||
textyen: ['Insert', '\xa5'],
|
||||
textcircledP: ['Insert', '\u2117'],
|
||||
textcompwordmark: ['Insert', '\u200c'],
|
||||
textcopyleft: ['Insert', '\ud83c\udd2f'],
|
||||
textcopyright: ['Insert', '\xa9'],
|
||||
textregistered: ['Insert', '\xae'],
|
||||
textservicemark: ['Insert', '\u2120'],
|
||||
texttrademark: ['Insert', '\u2122'],
|
||||
textbardbl: ['Insert', '\u2016'],
|
||||
textbigcircle: ['Insert', '\u25ef'],
|
||||
textblank: ['Insert', '\u2422'],
|
||||
textbrokenbar: ['Insert', '\xa6'],
|
||||
textdiscount: ['Insert', '\u2052'],
|
||||
textestimated: ['Insert', '\u212e'],
|
||||
textinterrobang: ['Insert', '\u203d'],
|
||||
textinterrobangdown: ['Insert', '\u2e18'],
|
||||
textmusicalnote: ['Insert', '\u266a'],
|
||||
textnumero: ['Insert', '\u2116'],
|
||||
textopenbullet: ['Insert', '\u25e6'],
|
||||
textpertenthousand: ['Insert', '\u2031'],
|
||||
textperthousand: ['Insert', '\u2030'],
|
||||
textrecipe: ['Insert', '\u211e'],
|
||||
textreferencemark: ['Insert', '\u203b'],
|
||||
textlangle: ['Insert', '\u2329'],
|
||||
textrangle: ['Insert', '\u232a'],
|
||||
textlbrackdbl: ['Insert', '\u27e6'],
|
||||
textrbrackdbl: ['Insert', '\u27e7'],
|
||||
textlquill: ['Insert', '\u2045'],
|
||||
textrquill: ['Insert', '\u2046'],
|
||||
textcelsius: ['Insert', '\u2103'],
|
||||
textdegree: ['Insert', '\xb0'],
|
||||
textdiv: ['Insert', '\xf7'],
|
||||
textdownarrow: ['Insert', '\u2193'],
|
||||
textfractionsolidus: ['Insert', '\u2044'],
|
||||
textleftarrow: ['Insert', '\u2190'],
|
||||
textlnot: ['Insert', '\xac'],
|
||||
textmho: ['Insert', '\u2127'],
|
||||
textminus: ['Insert', '\u2212'],
|
||||
textmu: ['Insert', '\xb5'],
|
||||
textohm: ['Insert', '\u2126'],
|
||||
textonehalf: ['Insert', '\xbd'],
|
||||
textonequarter: ['Insert', '\xbc'],
|
||||
textonesuperior: ['Insert', '\xb9'],
|
||||
textpm: ['Insert', '\xb1'],
|
||||
textrightarrow: ['Insert', '\u2192'],
|
||||
textsurd: ['Insert', '\u221a'],
|
||||
textthreequarters: ['Insert', '\xbe'],
|
||||
textthreesuperior: ['Insert', '\xb3'],
|
||||
texttimes: ['Insert', '\xd7'],
|
||||
texttwosuperior: ['Insert', '\xb2'],
|
||||
textuparrow: ['Insert', '\u2191'],
|
||||
textborn: ['Insert', '*'],
|
||||
textdied: ['Insert', '\u2020'],
|
||||
textdivorced: ['Insert', '\u26ae'],
|
||||
textmarried: ['Insert', '\u26ad'],
|
||||
textcentoldstyle: ['Insert', '\xa2', s.TexConstant.Variant.OLDSTYLE],
|
||||
textdollaroldstyle: ['Insert', '$', s.TexConstant.Variant.OLDSTYLE],
|
||||
textzerooldstyle: ['Insert', '0', s.TexConstant.Variant.OLDSTYLE],
|
||||
textoneoldstyle: ['Insert', '1', s.TexConstant.Variant.OLDSTYLE],
|
||||
texttwooldstyle: ['Insert', '2', s.TexConstant.Variant.OLDSTYLE],
|
||||
textthreeoldstyle: ['Insert', '3', s.TexConstant.Variant.OLDSTYLE],
|
||||
textfouroldstyle: ['Insert', '4', s.TexConstant.Variant.OLDSTYLE],
|
||||
textfiveoldstyle: ['Insert', '5', s.TexConstant.Variant.OLDSTYLE],
|
||||
textsixoldstyle: ['Insert', '6', s.TexConstant.Variant.OLDSTYLE],
|
||||
textsevenoldstyle: ['Insert', '7', s.TexConstant.Variant.OLDSTYLE],
|
||||
texteightoldstyle: ['Insert', '8', s.TexConstant.Variant.OLDSTYLE],
|
||||
textnineoldstyle: ['Insert', '9', s.TexConstant.Variant.OLDSTYLE],
|
||||
},
|
||||
{
|
||||
Insert: function (t, e, n, r) {
|
||||
if (t instanceof i.TextParser) {
|
||||
if (!r) return void o.TextMacrosMethods.Insert(t, e, n);
|
||||
t.saveText();
|
||||
}
|
||||
t.Push(x.default.internalText(t, n, r ? { mathvariant: r } : {}));
|
||||
},
|
||||
},
|
||||
);
|
||||
},
|
||||
955: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(e.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(e.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
398: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.ParseUtil.default);
|
||||
},
|
||||
871: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(e.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(e.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(e.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(e.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(e.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(e.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(e.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(e.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
108: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.TexConstant = MathJax._.input.tex.TexConstants.TexConstant);
|
||||
},
|
||||
245: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.TextMacrosMethods =
|
||||
MathJax._.input.tex.textmacros.TextMacrosMethods.TextMacrosMethods);
|
||||
},
|
||||
988: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.TextParser = MathJax._.input.tex.textmacros.TextParser.TextParser);
|
||||
},
|
||||
},
|
||||
a = {};
|
||||
function s(t) {
|
||||
var e = a[t];
|
||||
if (void 0 !== e) return e.exports;
|
||||
var n = (a[t] = { exports: {} });
|
||||
return r[t].call(n.exports, n, n.exports, s), n.exports;
|
||||
}
|
||||
(t = s(955)),
|
||||
(e = s(667)),
|
||||
(n = s(845)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/textcomp', e.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { textcomp: { TextcompConfiguration: n } } } } });
|
||||
})();
|
||||
@@ -1,723 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
e,
|
||||
a,
|
||||
n,
|
||||
o,
|
||||
r = {
|
||||
667: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
762: function (t, e, a) {
|
||||
var n,
|
||||
o =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.TextMacrosConfiguration = e.TextBaseConfiguration = void 0);
|
||||
var r = a(251),
|
||||
s = o(a(278)),
|
||||
i = a(680),
|
||||
c = a(935),
|
||||
l = a(787),
|
||||
u = a(807);
|
||||
function p(t, e, a, n) {
|
||||
var o = t.configuration.packageData.get('textmacros');
|
||||
return (
|
||||
t instanceof l.TextParser || (o.texParser = t),
|
||||
[new l.TextParser(e, n ? { mathvariant: n } : {}, o.parseOptions, a).mml()]
|
||||
);
|
||||
}
|
||||
a(557),
|
||||
(e.TextBaseConfiguration = r.Configuration.create('text-base', {
|
||||
parser: 'text',
|
||||
handler: { character: ['command', 'text-special'], macro: ['text-macros'] },
|
||||
fallback: {
|
||||
character: function (t, e) {
|
||||
t.text += e;
|
||||
},
|
||||
macro: function (t, e) {
|
||||
var a = t.texParser,
|
||||
n = a.lookup('macro', e);
|
||||
n &&
|
||||
n._func !== u.TextMacrosMethods.Macro &&
|
||||
t.Error(
|
||||
'MathMacro',
|
||||
'%1 is only supported in math mode',
|
||||
'\\' + e,
|
||||
),
|
||||
a.parse('macro', [t, e]);
|
||||
},
|
||||
},
|
||||
items:
|
||||
((n = {}),
|
||||
(n[c.StartItem.prototype.kind] = c.StartItem),
|
||||
(n[c.StopItem.prototype.kind] = c.StopItem),
|
||||
(n[c.MmlItem.prototype.kind] = c.MmlItem),
|
||||
(n[c.StyleItem.prototype.kind] = c.StyleItem),
|
||||
n),
|
||||
})),
|
||||
(e.TextMacrosConfiguration = r.Configuration.create('textmacros', {
|
||||
config: function (t, e) {
|
||||
var a = new r.ParserConfiguration(
|
||||
e.parseOptions.options.textmacros.packages,
|
||||
['tex', 'text'],
|
||||
);
|
||||
a.init();
|
||||
var n = new s.default(a, []);
|
||||
(n.options = e.parseOptions.options),
|
||||
a.config(e),
|
||||
i.TagsFactory.addTags(a.tags),
|
||||
(n.tags = i.TagsFactory.getDefault()),
|
||||
(n.tags.configuration = n),
|
||||
(n.packageData = e.parseOptions.packageData),
|
||||
n.packageData.set('textmacros', {
|
||||
parseOptions: n,
|
||||
jax: e,
|
||||
texParser: null,
|
||||
}),
|
||||
(n.options.internalMath = p);
|
||||
},
|
||||
preprocessors: [
|
||||
function (t) {
|
||||
var e = t.data.packageData.get('textmacros');
|
||||
e.parseOptions.nodeFactory.setMmlFactory(e.jax.mmlFactory);
|
||||
},
|
||||
],
|
||||
options: { textmacros: { packages: ['text-base'] } },
|
||||
}));
|
||||
},
|
||||
557: function (t, e, a) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 });
|
||||
var n = a(871),
|
||||
o = a(108),
|
||||
r = a(807),
|
||||
s = a(230);
|
||||
new n.MacroMap(
|
||||
'text-special',
|
||||
{
|
||||
$: 'Math',
|
||||
'%': 'Comment',
|
||||
'^': 'MathModeOnly',
|
||||
_: 'MathModeOnly',
|
||||
'&': 'Misplaced',
|
||||
'#': 'Misplaced',
|
||||
'~': 'Tilde',
|
||||
' ': 'Space',
|
||||
'\t': 'Space',
|
||||
'\r': 'Space',
|
||||
'\n': 'Space',
|
||||
'\xa0': 'Tilde',
|
||||
'{': 'OpenBrace',
|
||||
'}': 'CloseBrace',
|
||||
'`': 'OpenQuote',
|
||||
"'": 'CloseQuote',
|
||||
},
|
||||
r.TextMacrosMethods,
|
||||
),
|
||||
new n.CommandMap(
|
||||
'text-macros',
|
||||
{
|
||||
'(': 'Math',
|
||||
$: 'SelfQuote',
|
||||
_: 'SelfQuote',
|
||||
'%': 'SelfQuote',
|
||||
'{': 'SelfQuote',
|
||||
'}': 'SelfQuote',
|
||||
' ': 'SelfQuote',
|
||||
'&': 'SelfQuote',
|
||||
'#': 'SelfQuote',
|
||||
'\\': 'SelfQuote',
|
||||
"'": ['Accent', '\xb4'],
|
||||
'\u2019': ['Accent', '\xb4'],
|
||||
'`': ['Accent', '`'],
|
||||
'\u2018': ['Accent', '`'],
|
||||
'^': ['Accent', '^'],
|
||||
'"': ['Accent', '\xa8'],
|
||||
'~': ['Accent', '~'],
|
||||
'=': ['Accent', '\xaf'],
|
||||
'.': ['Accent', '\u02d9'],
|
||||
u: ['Accent', '\u02d8'],
|
||||
v: ['Accent', '\u02c7'],
|
||||
emph: 'Emph',
|
||||
rm: ['SetFont', o.TexConstant.Variant.NORMAL],
|
||||
mit: ['SetFont', o.TexConstant.Variant.ITALIC],
|
||||
oldstyle: ['SetFont', o.TexConstant.Variant.OLDSTYLE],
|
||||
cal: ['SetFont', o.TexConstant.Variant.CALLIGRAPHIC],
|
||||
it: ['SetFont', '-tex-mathit'],
|
||||
bf: ['SetFont', o.TexConstant.Variant.BOLD],
|
||||
bbFont: ['SetFont', o.TexConstant.Variant.DOUBLESTRUCK],
|
||||
scr: ['SetFont', o.TexConstant.Variant.SCRIPT],
|
||||
frak: ['SetFont', o.TexConstant.Variant.FRAKTUR],
|
||||
sf: ['SetFont', o.TexConstant.Variant.SANSSERIF],
|
||||
tt: ['SetFont', o.TexConstant.Variant.MONOSPACE],
|
||||
tiny: ['SetSize', 0.5],
|
||||
Tiny: ['SetSize', 0.6],
|
||||
scriptsize: ['SetSize', 0.7],
|
||||
small: ['SetSize', 0.85],
|
||||
normalsize: ['SetSize', 1],
|
||||
large: ['SetSize', 1.2],
|
||||
Large: ['SetSize', 1.44],
|
||||
LARGE: ['SetSize', 1.73],
|
||||
huge: ['SetSize', 2.07],
|
||||
Huge: ['SetSize', 2.49],
|
||||
Bbb: ['Macro', '{\\bbFont #1}', 1],
|
||||
textnormal: ['Macro', '{\\rm #1}', 1],
|
||||
textup: ['Macro', '{\\rm #1}', 1],
|
||||
textrm: ['Macro', '{\\rm #1}', 1],
|
||||
textit: ['Macro', '{\\it #1}', 1],
|
||||
textbf: ['Macro', '{\\bf #1}', 1],
|
||||
textsf: ['Macro', '{\\sf #1}', 1],
|
||||
texttt: ['Macro', '{\\tt #1}', 1],
|
||||
dagger: ['Insert', '\u2020'],
|
||||
ddagger: ['Insert', '\u2021'],
|
||||
S: ['Insert', '\xa7'],
|
||||
',': ['Spacer', s.MATHSPACE.thinmathspace],
|
||||
':': ['Spacer', s.MATHSPACE.mediummathspace],
|
||||
'>': ['Spacer', s.MATHSPACE.mediummathspace],
|
||||
';': ['Spacer', s.MATHSPACE.thickmathspace],
|
||||
'!': ['Spacer', s.MATHSPACE.negativethinmathspace],
|
||||
enspace: ['Spacer', 0.5],
|
||||
quad: ['Spacer', 1],
|
||||
qquad: ['Spacer', 2],
|
||||
thinspace: ['Spacer', s.MATHSPACE.thinmathspace],
|
||||
negthinspace: ['Spacer', s.MATHSPACE.negativethinmathspace],
|
||||
hskip: 'Hskip',
|
||||
hspace: 'Hskip',
|
||||
kern: 'Hskip',
|
||||
mskip: 'Hskip',
|
||||
mspace: 'Hskip',
|
||||
mkern: 'Hskip',
|
||||
rule: 'rule',
|
||||
Rule: ['Rule'],
|
||||
Space: ['Rule', 'blank'],
|
||||
color: 'CheckAutoload',
|
||||
textcolor: 'CheckAutoload',
|
||||
colorbox: 'CheckAutoload',
|
||||
fcolorbox: 'CheckAutoload',
|
||||
href: 'CheckAutoload',
|
||||
style: 'CheckAutoload',
|
||||
class: 'CheckAutoload',
|
||||
cssId: 'CheckAutoload',
|
||||
unicode: 'CheckAutoload',
|
||||
ref: ['HandleRef', !1],
|
||||
eqref: ['HandleRef', !0],
|
||||
},
|
||||
r.TextMacrosMethods,
|
||||
);
|
||||
},
|
||||
807: function (t, e, a) {
|
||||
var n =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.TextMacrosMethods = void 0);
|
||||
var o = n(a(193)),
|
||||
r = a(832),
|
||||
s = n(a(360));
|
||||
e.TextMacrosMethods = {
|
||||
Comment: function (t, e) {
|
||||
for (; t.i < t.string.length && '\n' !== t.string.charAt(t.i); ) t.i++;
|
||||
t.i++;
|
||||
},
|
||||
Math: function (t, e) {
|
||||
t.saveText();
|
||||
for (var a, n, r = t.i, s = 0; (n = t.GetNext()); )
|
||||
switch (((a = t.i++), n)) {
|
||||
case '\\':
|
||||
')' === t.GetCS() && (n = '\\(');
|
||||
case '$':
|
||||
if (0 === s && e === n) {
|
||||
var i = t.texParser.configuration,
|
||||
c = new o.default(
|
||||
t.string.substr(r, a - r),
|
||||
t.stack.env,
|
||||
i,
|
||||
).mml();
|
||||
return void t.PushMath(c);
|
||||
}
|
||||
break;
|
||||
case '{':
|
||||
s++;
|
||||
break;
|
||||
case '}':
|
||||
0 === s &&
|
||||
t.Error(
|
||||
'ExtraCloseMissingOpen',
|
||||
'Extra close brace or missing open brace',
|
||||
),
|
||||
s--;
|
||||
}
|
||||
t.Error('MathNotTerminated', 'Math-mode is not properly terminated');
|
||||
},
|
||||
MathModeOnly: function (t, e) {
|
||||
t.Error('MathModeOnly', "'%1' allowed only in math mode", e);
|
||||
},
|
||||
Misplaced: function (t, e) {
|
||||
t.Error('Misplaced', "'%1' can not be used here", e);
|
||||
},
|
||||
OpenBrace: function (t, e) {
|
||||
var a = t.stack.env;
|
||||
t.envStack.push(a), (t.stack.env = Object.assign({}, a));
|
||||
},
|
||||
CloseBrace: function (t, e) {
|
||||
t.envStack.length
|
||||
? (t.saveText(), (t.stack.env = t.envStack.pop()))
|
||||
: t.Error(
|
||||
'ExtraCloseMissingOpen',
|
||||
'Extra close brace or missing open brace',
|
||||
);
|
||||
},
|
||||
OpenQuote: function (t, e) {
|
||||
t.string.charAt(t.i) === e
|
||||
? ((t.text += '\u201c'), t.i++)
|
||||
: (t.text += '\u2018');
|
||||
},
|
||||
CloseQuote: function (t, e) {
|
||||
t.string.charAt(t.i) === e
|
||||
? ((t.text += '\u201d'), t.i++)
|
||||
: (t.text += '\u2019');
|
||||
},
|
||||
Tilde: function (t, e) {
|
||||
t.text += '\xa0';
|
||||
},
|
||||
Space: function (t, e) {
|
||||
for (t.text += ' '; t.GetNext().match(/\s/); ) t.i++;
|
||||
},
|
||||
SelfQuote: function (t, e) {
|
||||
t.text += e.substr(1);
|
||||
},
|
||||
Insert: function (t, e, a) {
|
||||
t.text += a;
|
||||
},
|
||||
Accent: function (t, e, a) {
|
||||
var n = t.ParseArg(e),
|
||||
o = t.create('token', 'mo', {}, a);
|
||||
t.addAttributes(o), t.Push(t.create('node', 'mover', [n, o]));
|
||||
},
|
||||
Emph: function (t, e) {
|
||||
var a =
|
||||
'-tex-mathit' === t.stack.env.mathvariant ? 'normal' : '-tex-mathit';
|
||||
t.Push(t.ParseTextArg(e, { mathvariant: a }));
|
||||
},
|
||||
SetFont: function (t, e, a) {
|
||||
t.saveText(), (t.stack.env.mathvariant = a);
|
||||
},
|
||||
SetSize: function (t, e, a) {
|
||||
t.saveText(), (t.stack.env.mathsize = a);
|
||||
},
|
||||
CheckAutoload: function (t, e) {
|
||||
var a = t.configuration.packageData.get('autoload'),
|
||||
n = t.texParser;
|
||||
e = e.slice(1);
|
||||
var o = n.lookup('macro', e);
|
||||
if (!o || (a && o._func === a.Autoload)) {
|
||||
if ((n.parse('macro', [n, e]), !o)) return;
|
||||
(0, r.retryAfter)(Promise.resolve());
|
||||
}
|
||||
n.parse('macro', [t, e]);
|
||||
},
|
||||
Macro: s.default.Macro,
|
||||
Spacer: s.default.Spacer,
|
||||
Hskip: s.default.Hskip,
|
||||
rule: s.default.rule,
|
||||
Rule: s.default.Rule,
|
||||
HandleRef: s.default.HandleRef,
|
||||
};
|
||||
},
|
||||
787: function (t, e, a) {
|
||||
var n,
|
||||
o =
|
||||
(this && this.__extends) ||
|
||||
((n = function (t, e) {
|
||||
return (
|
||||
(n =
|
||||
Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array &&
|
||||
function (t, e) {
|
||||
t.__proto__ = e;
|
||||
}) ||
|
||||
function (t, e) {
|
||||
for (var a in e)
|
||||
Object.prototype.hasOwnProperty.call(e, a) &&
|
||||
(t[a] = e[a]);
|
||||
}),
|
||||
n(t, e)
|
||||
);
|
||||
}),
|
||||
function (t, e) {
|
||||
if ('function' != typeof e && null !== e)
|
||||
throw new TypeError(
|
||||
'Class extends value ' +
|
||||
String(e) +
|
||||
' is not a constructor or null',
|
||||
);
|
||||
function a() {
|
||||
this.constructor = t;
|
||||
}
|
||||
n(t, e),
|
||||
(t.prototype =
|
||||
null === e
|
||||
? Object.create(e)
|
||||
: ((a.prototype = e.prototype), new a()));
|
||||
}),
|
||||
r =
|
||||
(this && this.__values) ||
|
||||
function (t) {
|
||||
var e = 'function' == typeof Symbol && Symbol.iterator,
|
||||
a = e && t[e],
|
||||
n = 0;
|
||||
if (a) return a.call(t);
|
||||
if (t && 'number' == typeof t.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
t && n >= t.length && (t = void 0),
|
||||
{ value: t && t[n++], done: !t }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
e ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
},
|
||||
s =
|
||||
(this && this.__read) ||
|
||||
function (t, e) {
|
||||
var a = 'function' == typeof Symbol && t[Symbol.iterator];
|
||||
if (!a) return t;
|
||||
var n,
|
||||
o,
|
||||
r = a.call(t),
|
||||
s = [];
|
||||
try {
|
||||
for (; (void 0 === e || e-- > 0) && !(n = r.next()).done; )
|
||||
s.push(n.value);
|
||||
} catch (t) {
|
||||
o = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
n && !n.done && (a = r.return) && a.call(r);
|
||||
} finally {
|
||||
if (o) throw o.error;
|
||||
}
|
||||
}
|
||||
return s;
|
||||
},
|
||||
i =
|
||||
(this && this.__spreadArray) ||
|
||||
function (t, e, a) {
|
||||
if (a || 2 === arguments.length)
|
||||
for (var n, o = 0, r = e.length; o < r; o++)
|
||||
(!n && o in e) ||
|
||||
(n || (n = Array.prototype.slice.call(e, 0, o)),
|
||||
(n[o] = e[o]));
|
||||
return t.concat(n || Array.prototype.slice.call(e));
|
||||
},
|
||||
c =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }), (e.TextParser = void 0);
|
||||
var l = c(a(193)),
|
||||
u = c(a(402)),
|
||||
p = c(a(398)),
|
||||
m = a(801),
|
||||
h = c(a(748)),
|
||||
x = a(935),
|
||||
M = (function (t) {
|
||||
function e(e, a, n, o) {
|
||||
var r = t.call(this, e, a, n) || this;
|
||||
return (r.level = o), r;
|
||||
}
|
||||
return (
|
||||
o(e, t),
|
||||
Object.defineProperty(e.prototype, 'texParser', {
|
||||
get: function () {
|
||||
return this.configuration.packageData.get('textmacros')
|
||||
.texParser;
|
||||
},
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
}),
|
||||
Object.defineProperty(e.prototype, 'tags', {
|
||||
get: function () {
|
||||
return this.texParser.tags;
|
||||
},
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
}),
|
||||
(e.prototype.mml = function () {
|
||||
return null != this.level
|
||||
? this.create('node', 'mstyle', this.nodes, {
|
||||
displaystyle: !1,
|
||||
scriptlevel: this.level,
|
||||
})
|
||||
: 1 === this.nodes.length
|
||||
? this.nodes[0]
|
||||
: this.create('node', 'mrow', this.nodes);
|
||||
}),
|
||||
(e.prototype.Parse = function () {
|
||||
(this.text = ''),
|
||||
(this.nodes = []),
|
||||
(this.envStack = []),
|
||||
t.prototype.Parse.call(this);
|
||||
}),
|
||||
(e.prototype.saveText = function () {
|
||||
if (this.text) {
|
||||
var t = this.stack.env.mathvariant,
|
||||
e = p.default.internalText(
|
||||
this,
|
||||
this.text,
|
||||
t ? { mathvariant: t } : {},
|
||||
);
|
||||
(this.text = ''), this.Push(e);
|
||||
}
|
||||
}),
|
||||
(e.prototype.Push = function (e) {
|
||||
if ((this.text && this.saveText(), e instanceof x.StopItem))
|
||||
return t.prototype.Push.call(this, e);
|
||||
e instanceof x.StyleItem
|
||||
? (this.stack.env.mathcolor = this.stack.env.color)
|
||||
: e instanceof m.AbstractMmlNode &&
|
||||
(this.addAttributes(e), this.nodes.push(e));
|
||||
}),
|
||||
(e.prototype.PushMath = function (t) {
|
||||
var e,
|
||||
a,
|
||||
n = this.stack.env;
|
||||
t.isKind('TeXAtom') || (t = this.create('node', 'TeXAtom', [t]));
|
||||
try {
|
||||
for (
|
||||
var o = r(['mathsize', 'mathcolor']), s = o.next();
|
||||
!s.done;
|
||||
s = o.next()
|
||||
) {
|
||||
var i = s.value;
|
||||
n[i] &&
|
||||
!t.attributes.getExplicit(i) &&
|
||||
(t.isToken ||
|
||||
t.isKind('mstyle') ||
|
||||
(t = this.create('node', 'mstyle', [t])),
|
||||
h.default.setAttribute(t, i, n[i]));
|
||||
}
|
||||
} catch (t) {
|
||||
e = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
s && !s.done && (a = o.return) && a.call(o);
|
||||
} finally {
|
||||
if (e) throw e.error;
|
||||
}
|
||||
}
|
||||
t.isInferred && (t = this.create('node', 'mrow', t.childNodes)),
|
||||
this.nodes.push(t);
|
||||
}),
|
||||
(e.prototype.addAttributes = function (t) {
|
||||
var e,
|
||||
a,
|
||||
n = this.stack.env;
|
||||
if (t.isToken)
|
||||
try {
|
||||
for (
|
||||
var o = r(['mathsize', 'mathcolor', 'mathvariant']),
|
||||
s = o.next();
|
||||
!s.done;
|
||||
s = o.next()
|
||||
) {
|
||||
var i = s.value;
|
||||
n[i] &&
|
||||
!t.attributes.getExplicit(i) &&
|
||||
h.default.setAttribute(t, i, n[i]);
|
||||
}
|
||||
} catch (t) {
|
||||
e = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
s && !s.done && (a = o.return) && a.call(o);
|
||||
} finally {
|
||||
if (e) throw e.error;
|
||||
}
|
||||
}
|
||||
}),
|
||||
(e.prototype.ParseTextArg = function (t, a) {
|
||||
return new e(
|
||||
this.GetArgument(t),
|
||||
(a = Object.assign(Object.assign({}, this.stack.env), a)),
|
||||
this.configuration,
|
||||
).mml();
|
||||
}),
|
||||
(e.prototype.ParseArg = function (t) {
|
||||
return new e(
|
||||
this.GetArgument(t),
|
||||
this.stack.env,
|
||||
this.configuration,
|
||||
).mml();
|
||||
}),
|
||||
(e.prototype.Error = function (t, e) {
|
||||
for (var a = [], n = 2; n < arguments.length; n++)
|
||||
a[n - 2] = arguments[n];
|
||||
throw new (u.default.bind.apply(
|
||||
u.default,
|
||||
i([void 0, t, e], s(a), !1),
|
||||
))();
|
||||
}),
|
||||
e
|
||||
);
|
||||
})(l.default);
|
||||
e.TextParser = M;
|
||||
},
|
||||
955: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
801: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.TEXCLASS = MathJax._.core.MmlTree.MmlNode.TEXCLASS),
|
||||
(e.TEXCLASSNAMES = MathJax._.core.MmlTree.MmlNode.TEXCLASSNAMES),
|
||||
(e.indentAttributes = MathJax._.core.MmlTree.MmlNode.indentAttributes),
|
||||
(e.AbstractMmlNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlNode),
|
||||
(e.AbstractMmlTokenNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlTokenNode),
|
||||
(e.AbstractMmlLayoutNode =
|
||||
MathJax._.core.MmlTree.MmlNode.AbstractMmlLayoutNode),
|
||||
(e.AbstractMmlBaseNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlBaseNode),
|
||||
(e.AbstractMmlEmptyNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlEmptyNode),
|
||||
(e.TextNode = MathJax._.core.MmlTree.MmlNode.TextNode),
|
||||
(e.XMLNode = MathJax._.core.MmlTree.MmlNode.XMLNode);
|
||||
},
|
||||
832: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.handleRetriesFor = MathJax._.util.Retries.handleRetriesFor),
|
||||
(e.retryAfter = MathJax._.util.Retries.retryAfter);
|
||||
},
|
||||
230: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.BIGDIMEN = MathJax._.util.lengths.BIGDIMEN),
|
||||
(e.UNITS = MathJax._.util.lengths.UNITS),
|
||||
(e.RELUNITS = MathJax._.util.lengths.RELUNITS),
|
||||
(e.MATHSPACE = MathJax._.util.lengths.MATHSPACE),
|
||||
(e.length2em = MathJax._.util.lengths.length2em),
|
||||
(e.percent = MathJax._.util.lengths.percent),
|
||||
(e.em = MathJax._.util.lengths.em),
|
||||
(e.emRounded = MathJax._.util.lengths.emRounded),
|
||||
(e.px = MathJax._.util.lengths.px);
|
||||
},
|
||||
251: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(e.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(e.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
748: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.NodeUtil.default);
|
||||
},
|
||||
278: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.ParseOptions.default);
|
||||
},
|
||||
398: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.ParseUtil.default);
|
||||
},
|
||||
871: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(e.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(e.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(e.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(e.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(e.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(e.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(e.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(e.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
680: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Label = MathJax._.input.tex.Tags.Label),
|
||||
(e.TagInfo = MathJax._.input.tex.Tags.TagInfo),
|
||||
(e.AbstractTags = MathJax._.input.tex.Tags.AbstractTags),
|
||||
(e.NoTags = MathJax._.input.tex.Tags.NoTags),
|
||||
(e.AllTags = MathJax._.input.tex.Tags.AllTags),
|
||||
(e.TagsFactory = MathJax._.input.tex.Tags.TagsFactory);
|
||||
},
|
||||
108: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.TexConstant = MathJax._.input.tex.TexConstants.TexConstant);
|
||||
},
|
||||
402: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.TexError.default);
|
||||
},
|
||||
193: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.TexParser.default);
|
||||
},
|
||||
935: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.StartItem = MathJax._.input.tex.base.BaseItems.StartItem),
|
||||
(e.StopItem = MathJax._.input.tex.base.BaseItems.StopItem),
|
||||
(e.OpenItem = MathJax._.input.tex.base.BaseItems.OpenItem),
|
||||
(e.CloseItem = MathJax._.input.tex.base.BaseItems.CloseItem),
|
||||
(e.PrimeItem = MathJax._.input.tex.base.BaseItems.PrimeItem),
|
||||
(e.SubsupItem = MathJax._.input.tex.base.BaseItems.SubsupItem),
|
||||
(e.OverItem = MathJax._.input.tex.base.BaseItems.OverItem),
|
||||
(e.LeftItem = MathJax._.input.tex.base.BaseItems.LeftItem),
|
||||
(e.Middle = MathJax._.input.tex.base.BaseItems.Middle),
|
||||
(e.RightItem = MathJax._.input.tex.base.BaseItems.RightItem),
|
||||
(e.BeginItem = MathJax._.input.tex.base.BaseItems.BeginItem),
|
||||
(e.EndItem = MathJax._.input.tex.base.BaseItems.EndItem),
|
||||
(e.StyleItem = MathJax._.input.tex.base.BaseItems.StyleItem),
|
||||
(e.PositionItem = MathJax._.input.tex.base.BaseItems.PositionItem),
|
||||
(e.CellItem = MathJax._.input.tex.base.BaseItems.CellItem),
|
||||
(e.MmlItem = MathJax._.input.tex.base.BaseItems.MmlItem),
|
||||
(e.FnItem = MathJax._.input.tex.base.BaseItems.FnItem),
|
||||
(e.NotItem = MathJax._.input.tex.base.BaseItems.NotItem),
|
||||
(e.NonscriptItem = MathJax._.input.tex.base.BaseItems.NonscriptItem),
|
||||
(e.DotsItem = MathJax._.input.tex.base.BaseItems.DotsItem),
|
||||
(e.ArrayItem = MathJax._.input.tex.base.BaseItems.ArrayItem),
|
||||
(e.EqnArrayItem = MathJax._.input.tex.base.BaseItems.EqnArrayItem),
|
||||
(e.EquationItem = MathJax._.input.tex.base.BaseItems.EquationItem);
|
||||
},
|
||||
360: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.base.BaseMethods.default);
|
||||
},
|
||||
},
|
||||
s = {};
|
||||
function i(t) {
|
||||
var e = s[t];
|
||||
if (void 0 !== e) return e.exports;
|
||||
var a = (s[t] = { exports: {} });
|
||||
return r[t].call(a.exports, a, a.exports, i), a.exports;
|
||||
}
|
||||
(t = i(955)),
|
||||
(e = i(667)),
|
||||
(a = i(762)),
|
||||
(n = i(807)),
|
||||
(o = i(787)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/textmacros', e.q, 'tex-extension'),
|
||||
(0, t.r8)({
|
||||
_: {
|
||||
input: {
|
||||
tex: {
|
||||
textmacros: {
|
||||
TextMacrosConfiguration: a,
|
||||
TextMacrosMethods: n,
|
||||
TextParser: o,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
})();
|
||||
@@ -1,118 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
e,
|
||||
a,
|
||||
n = {
|
||||
667: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
376: function (t, e, a) {
|
||||
var n =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.UnicodeConfiguration = e.UnicodeMethods = void 0);
|
||||
var o = a(251),
|
||||
i = n(a(402)),
|
||||
r = a(871),
|
||||
u = n(a(398)),
|
||||
l = n(a(748)),
|
||||
c = a(992);
|
||||
e.UnicodeMethods = {};
|
||||
var p = {};
|
||||
(e.UnicodeMethods.Unicode = function (t, e) {
|
||||
var a = t.GetBrackets(e),
|
||||
n = null,
|
||||
o = null;
|
||||
a &&
|
||||
(a.replace(/ /g, '').match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)
|
||||
? ((n = a.replace(/ /g, '').split(/,/)), (o = t.GetBrackets(e)))
|
||||
: (o = a));
|
||||
var r = u.default.trimSpaces(t.GetArgument(e)).replace(/^0x/, 'x');
|
||||
if (!r.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/))
|
||||
throw new i.default('BadUnicode', 'Argument to \\unicode must be a number');
|
||||
var d = parseInt(r.match(/^x/) ? '0' + r : r);
|
||||
p[d] ? o || (o = p[d][2]) : (p[d] = [800, 200, o, d]),
|
||||
n &&
|
||||
((p[d][0] = Math.floor(1e3 * parseFloat(n[0]))),
|
||||
(p[d][1] = Math.floor(1e3 * parseFloat(n[1]))));
|
||||
var M = t.stack.env.font,
|
||||
s = {};
|
||||
o
|
||||
? ((p[d][2] = s.fontfamily = o.replace(/'/g, "'")),
|
||||
M &&
|
||||
(M.match(/bold/) && (s.fontweight = 'bold'),
|
||||
M.match(/italic|-mathit/) && (s.fontstyle = 'italic')))
|
||||
: M && (s.mathvariant = M);
|
||||
var x = t.create('token', 'mtext', s, (0, c.numeric)(r));
|
||||
l.default.setProperty(x, 'unicode', !0), t.Push(x);
|
||||
}),
|
||||
new r.CommandMap('unicode', { unicode: 'Unicode' }, e.UnicodeMethods),
|
||||
(e.UnicodeConfiguration = o.Configuration.create('unicode', {
|
||||
handler: { macro: ['unicode'] },
|
||||
}));
|
||||
},
|
||||
955: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
992: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.options = MathJax._.util.Entities.options),
|
||||
(e.entities = MathJax._.util.Entities.entities),
|
||||
(e.add = MathJax._.util.Entities.add),
|
||||
(e.remove = MathJax._.util.Entities.remove),
|
||||
(e.translate = MathJax._.util.Entities.translate),
|
||||
(e.numeric = MathJax._.util.Entities.numeric);
|
||||
},
|
||||
251: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(e.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(e.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
748: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.NodeUtil.default);
|
||||
},
|
||||
398: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.ParseUtil.default);
|
||||
},
|
||||
871: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(e.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(e.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(e.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(e.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(e.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(e.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(e.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(e.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
402: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.TexError.default);
|
||||
},
|
||||
},
|
||||
o = {};
|
||||
function i(t) {
|
||||
var e = o[t];
|
||||
if (void 0 !== e) return e.exports;
|
||||
var a = (o[t] = { exports: {} });
|
||||
return n[t].call(a.exports, a, a.exports, i), a.exports;
|
||||
}
|
||||
(t = i(955)),
|
||||
(e = i(667)),
|
||||
(a = i(376)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/unicode', e.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { unicode: { UnicodeConfiguration: a } } } } });
|
||||
})();
|
||||
@@ -1,115 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var a,
|
||||
t,
|
||||
e,
|
||||
p = {
|
||||
667: function (a, t) {
|
||||
(t.q = void 0), (t.q = '3.2.2');
|
||||
},
|
||||
927: function (a, t, e) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.UpgreekConfiguration = void 0);
|
||||
var p = e(251),
|
||||
n = e(871),
|
||||
o = e(108);
|
||||
new n.CharacterMap(
|
||||
'upgreek',
|
||||
function (a, t) {
|
||||
var e = t.attributes || {};
|
||||
e.mathvariant = o.TexConstant.Variant.NORMAL;
|
||||
var p = a.create('token', 'mi', e, t.char);
|
||||
a.Push(p);
|
||||
},
|
||||
{
|
||||
upalpha: '\u03b1',
|
||||
upbeta: '\u03b2',
|
||||
upgamma: '\u03b3',
|
||||
updelta: '\u03b4',
|
||||
upepsilon: '\u03f5',
|
||||
upzeta: '\u03b6',
|
||||
upeta: '\u03b7',
|
||||
uptheta: '\u03b8',
|
||||
upiota: '\u03b9',
|
||||
upkappa: '\u03ba',
|
||||
uplambda: '\u03bb',
|
||||
upmu: '\u03bc',
|
||||
upnu: '\u03bd',
|
||||
upxi: '\u03be',
|
||||
upomicron: '\u03bf',
|
||||
uppi: '\u03c0',
|
||||
uprho: '\u03c1',
|
||||
upsigma: '\u03c3',
|
||||
uptau: '\u03c4',
|
||||
upupsilon: '\u03c5',
|
||||
upphi: '\u03d5',
|
||||
upchi: '\u03c7',
|
||||
uppsi: '\u03c8',
|
||||
upomega: '\u03c9',
|
||||
upvarepsilon: '\u03b5',
|
||||
upvartheta: '\u03d1',
|
||||
upvarpi: '\u03d6',
|
||||
upvarrho: '\u03f1',
|
||||
upvarsigma: '\u03c2',
|
||||
upvarphi: '\u03c6',
|
||||
Upgamma: '\u0393',
|
||||
Updelta: '\u0394',
|
||||
Uptheta: '\u0398',
|
||||
Uplambda: '\u039b',
|
||||
Upxi: '\u039e',
|
||||
Uppi: '\u03a0',
|
||||
Upsigma: '\u03a3',
|
||||
Upupsilon: '\u03a5',
|
||||
Upphi: '\u03a6',
|
||||
Uppsi: '\u03a8',
|
||||
Upomega: '\u03a9',
|
||||
},
|
||||
),
|
||||
(t.UpgreekConfiguration = p.Configuration.create('upgreek', {
|
||||
handler: { macro: ['upgreek'] },
|
||||
}));
|
||||
},
|
||||
955: function (a, t) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(t.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (a, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(t.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(t.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
871: function (a, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(t.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(t.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(t.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(t.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(t.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(t.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(t.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(t.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
108: function (a, t) {
|
||||
Object.defineProperty(t, '__esModule', { value: !0 }),
|
||||
(t.TexConstant = MathJax._.input.tex.TexConstants.TexConstant);
|
||||
},
|
||||
},
|
||||
n = {};
|
||||
function o(a) {
|
||||
var t = n[a];
|
||||
if (void 0 !== t) return t.exports;
|
||||
var e = (n[a] = { exports: {} });
|
||||
return p[a](e, e.exports, o), e.exports;
|
||||
}
|
||||
(a = o(955)),
|
||||
(t = o(667)),
|
||||
(e = o(927)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/upgreek', t.q, 'tex-extension'),
|
||||
(0, a.r8)({ _: { input: { tex: { upgreek: { UpgreekConfiguration: e } } } } });
|
||||
})();
|
||||
@@ -1,98 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t,
|
||||
e,
|
||||
a,
|
||||
n = {
|
||||
667: function (t, e) {
|
||||
(e.q = void 0), (e.q = '3.2.2');
|
||||
},
|
||||
768: function (t, e, a) {
|
||||
var n =
|
||||
(this && this.__importDefault) ||
|
||||
function (t) {
|
||||
return t && t.__esModule ? t : { default: t };
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.VerbConfiguration = e.VerbMethods = void 0);
|
||||
var o = a(251),
|
||||
r = a(108),
|
||||
i = a(871),
|
||||
u = n(a(402));
|
||||
(e.VerbMethods = {}),
|
||||
(e.VerbMethods.Verb = function (t, e) {
|
||||
var a = t.GetNext(),
|
||||
n = ++t.i;
|
||||
if ('' === a)
|
||||
throw new u.default('MissingArgFor', 'Missing argument for %1', e);
|
||||
for (; t.i < t.string.length && t.string.charAt(t.i) !== a; ) t.i++;
|
||||
if (t.i === t.string.length)
|
||||
throw new u.default(
|
||||
'NoClosingDelim',
|
||||
"Can't find closing delimiter for %1",
|
||||
t.currentCS,
|
||||
);
|
||||
var o = t.string.slice(n, t.i).replace(/ /g, '\xa0');
|
||||
t.i++,
|
||||
t.Push(
|
||||
t.create(
|
||||
'token',
|
||||
'mtext',
|
||||
{ mathvariant: r.TexConstant.Variant.MONOSPACE },
|
||||
o,
|
||||
),
|
||||
);
|
||||
}),
|
||||
new i.CommandMap('verb', { verb: 'Verb' }, e.VerbMethods),
|
||||
(e.VerbConfiguration = o.Configuration.create('verb', {
|
||||
handler: { macro: ['verb'] },
|
||||
}));
|
||||
},
|
||||
955: function (t, e) {
|
||||
MathJax._.components.global.isObject,
|
||||
MathJax._.components.global.combineConfig,
|
||||
MathJax._.components.global.combineDefaults,
|
||||
(e.r8 = MathJax._.components.global.combineWithMathJax),
|
||||
MathJax._.components.global.MathJax;
|
||||
},
|
||||
251: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.Configuration = MathJax._.input.tex.Configuration.Configuration),
|
||||
(e.ConfigurationHandler =
|
||||
MathJax._.input.tex.Configuration.ConfigurationHandler),
|
||||
(e.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration);
|
||||
},
|
||||
871: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.parseResult = MathJax._.input.tex.SymbolMap.parseResult),
|
||||
(e.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
|
||||
(e.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
|
||||
(e.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
|
||||
(e.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
|
||||
(e.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
|
||||
(e.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
|
||||
(e.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
|
||||
(e.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
|
||||
},
|
||||
108: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.TexConstant = MathJax._.input.tex.TexConstants.TexConstant);
|
||||
},
|
||||
402: function (t, e) {
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }),
|
||||
(e.default = MathJax._.input.tex.TexError.default);
|
||||
},
|
||||
},
|
||||
o = {};
|
||||
function r(t) {
|
||||
var e = o[t];
|
||||
if (void 0 !== e) return e.exports;
|
||||
var a = (o[t] = { exports: {} });
|
||||
return n[t].call(a.exports, a, a.exports, r), a.exports;
|
||||
}
|
||||
(t = r(955)),
|
||||
(e = r(667)),
|
||||
(a = r(768)),
|
||||
MathJax.loader && MathJax.loader.checkVersion('[tex]/verb', e.q, 'tex-extension'),
|
||||
(0, t.r8)({ _: { input: { tex: { verb: { VerbConfiguration: a } } } } });
|
||||
})();
|
||||
@@ -1,307 +0,0 @@
|
||||
!(function () {
|
||||
'use strict';
|
||||
var t = {
|
||||
907: function (t, e) {
|
||||
var r =
|
||||
(this && this.__values) ||
|
||||
function (t) {
|
||||
var e = 'function' == typeof Symbol && Symbol.iterator,
|
||||
r = e && t[e],
|
||||
a = 0;
|
||||
if (r) return r.call(t);
|
||||
if (t && 'number' == typeof t.length)
|
||||
return {
|
||||
next: function () {
|
||||
return (
|
||||
t && a >= t.length && (t = void 0),
|
||||
{ value: t && t[a++], done: !t }
|
||||
);
|
||||
},
|
||||
};
|
||||
throw new TypeError(
|
||||
e ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
|
||||
);
|
||||
},
|
||||
a =
|
||||
(this && this.__read) ||
|
||||
function (t, e) {
|
||||
var r = 'function' == typeof Symbol && t[Symbol.iterator];
|
||||
if (!r) return t;
|
||||
var a,
|
||||
n,
|
||||
o = r.call(t),
|
||||
i = [];
|
||||
try {
|
||||
for (; (void 0 === e || e-- > 0) && !(a = o.next()).done; )
|
||||
i.push(a.value);
|
||||
} catch (t) {
|
||||
n = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
a && !a.done && (r = o.return) && r.call(o);
|
||||
} finally {
|
||||
if (n) throw n.error;
|
||||
}
|
||||
}
|
||||
return i;
|
||||
};
|
||||
Object.defineProperty(e, '__esModule', { value: !0 }), (e.loadLatest = void 0);
|
||||
var n = new Map([
|
||||
[
|
||||
'cdnjs.cloudflare.com',
|
||||
{
|
||||
api: 'https://api.cdnjs.com/libraries/mathjax?fields=version',
|
||||
key: 'version',
|
||||
base: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/',
|
||||
},
|
||||
],
|
||||
[
|
||||
'rawcdn.githack.com',
|
||||
{
|
||||
api: 'https://api.github.com/repos/mathjax/mathjax/releases/latest',
|
||||
key: 'tag_name',
|
||||
base: 'https://rawcdn.githack.com/mathjax/MathJax/',
|
||||
},
|
||||
],
|
||||
[
|
||||
'gitcdn.xyz',
|
||||
{
|
||||
api: 'https://api.github.com/repos/mathjax/mathjax/releases/latest',
|
||||
key: 'tag_name',
|
||||
base: 'https://gitcdn.xyz/mathjax/MathJax/',
|
||||
},
|
||||
],
|
||||
[
|
||||
'cdn.statically.io',
|
||||
{
|
||||
api: 'https://api.github.com/repos/mathjax/mathjax/releases/latest',
|
||||
key: 'tag_name',
|
||||
base: 'https://cdn.statically.io/gh/mathjax/MathJax/',
|
||||
},
|
||||
],
|
||||
[
|
||||
'unpkg.com',
|
||||
{
|
||||
api: 'https://api.github.com/repos/mathjax/mathjax/releases/latest',
|
||||
key: 'tag_name',
|
||||
base: 'https://unpkg.com/mathjax@',
|
||||
},
|
||||
],
|
||||
[
|
||||
'cdn.jsdelivr.net',
|
||||
{
|
||||
api: 'https://api.github.com/repos/mathjax/mathjax/releases/latest',
|
||||
key: 'tag_name',
|
||||
base: 'https://cdn.jsdelivr.net/npm/mathjax@',
|
||||
},
|
||||
],
|
||||
]),
|
||||
o = {
|
||||
api: 'https://api.github.com/repos/mathjax/mathjax/releases',
|
||||
key: 'tag_name',
|
||||
},
|
||||
i = 'mjx-latest-version',
|
||||
c = null;
|
||||
function s(t) {
|
||||
console && console.error && console.error('MathJax(latest.js): ' + t);
|
||||
}
|
||||
function l(t, e) {
|
||||
void 0 === e && (e = null), t.parentNode.removeChild(t);
|
||||
var r = t.src,
|
||||
a = r.replace(/.*?\/latest\.js(\?|$)/, '');
|
||||
'' === a && ((a = 'startup.js'), (r = r.replace(/\?$/, '') + '?' + a));
|
||||
var n = (r.match(/(\d+\.\d+\.\d+)(\/es\d+)?\/latest.js\?/) || ['', ''])[1],
|
||||
o = (r.match(/(\/es\d+)\/latest.js\?/) || ['', ''])[1] || '';
|
||||
return { tag: t, src: r, id: t.id, version: n, dir: o, file: a, cdn: e };
|
||||
}
|
||||
function u(t) {
|
||||
var e, a;
|
||||
try {
|
||||
for (var o = r(n.keys()), i = o.next(); !i.done; i = o.next()) {
|
||||
var c = i.value,
|
||||
s = n.get(c),
|
||||
u = s.base,
|
||||
d = t.src;
|
||||
if (d && d.substr(0, u.length) === u && d.match(/\/latest\.js(\?|$)/))
|
||||
return l(t, s);
|
||||
}
|
||||
} catch (t) {
|
||||
e = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
i && !i.done && (a = o.return) && a.call(o);
|
||||
} finally {
|
||||
if (e) throw e.error;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function d(t, e) {
|
||||
var r = document.createElement('script');
|
||||
(r.type = 'text/javascript'), (r.async = !0), (r.src = t), e && (r.id = e);
|
||||
var a =
|
||||
document.head || document.getElementsByTagName('head')[0] || document.body;
|
||||
a ? a.appendChild(r) : s("Can't find the document <head> element");
|
||||
}
|
||||
function h() {
|
||||
c
|
||||
? d(c.src.replace(/\/latest\.js\?/, '/'), c.id)
|
||||
: s("Can't determine the URL for loading MathJax");
|
||||
}
|
||||
function f(t) {
|
||||
c.version && c.version !== t && (c.file = 'latest.js?' + c.file),
|
||||
d(c.cdn.base + t + c.dir + '/' + c.file, c.id);
|
||||
}
|
||||
function p(t) {
|
||||
return (
|
||||
3 === parseInt(t.split(/\./)[0]) &&
|
||||
!t.match(/-(beta|rc)/) &&
|
||||
((function (t) {
|
||||
try {
|
||||
var e = t + ' ' + Date.now();
|
||||
localStorage.setItem(i, e);
|
||||
} catch (t) {}
|
||||
})(t),
|
||||
f(t),
|
||||
!0)
|
||||
);
|
||||
}
|
||||
function m(t, e, r) {
|
||||
var a = (function () {
|
||||
if (window.XMLHttpRequest) return new XMLHttpRequest();
|
||||
if (window.ActiveXObject) {
|
||||
try {
|
||||
return new window.ActiveXObject('Msxml2.XMLHTTP');
|
||||
} catch (t) {}
|
||||
try {
|
||||
return new window.ActiveXObject('Microsoft.XMLHTTP');
|
||||
} catch (t) {}
|
||||
}
|
||||
return null;
|
||||
})();
|
||||
a
|
||||
? ((a.onreadystatechange = function () {
|
||||
4 === a.readyState &&
|
||||
(200 === a.status
|
||||
? !e(JSON.parse(a.responseText)) && r()
|
||||
: (s(
|
||||
'Problem acquiring MathJax version: status = ' +
|
||||
a.status,
|
||||
),
|
||||
r()));
|
||||
}),
|
||||
a.open('GET', t.api, !0),
|
||||
a.send(null))
|
||||
: (s("Can't create XMLHttpRequest object"), r());
|
||||
}
|
||||
function y() {
|
||||
m(
|
||||
c.cdn,
|
||||
function (t) {
|
||||
return (
|
||||
t instanceof Array && (t = t[0]),
|
||||
p(t[c.cdn.key]) ||
|
||||
m(
|
||||
o,
|
||||
function (t) {
|
||||
var e, a;
|
||||
if (!(t instanceof Array)) return !1;
|
||||
try {
|
||||
for (
|
||||
var n = r(t), i = n.next();
|
||||
!i.done;
|
||||
i = n.next()
|
||||
)
|
||||
if (p(i.value[o.key])) return !0;
|
||||
} catch (t) {
|
||||
e = { error: t };
|
||||
} finally {
|
||||
try {
|
||||
i && !i.done && (a = n.return) && a.call(n);
|
||||
} finally {
|
||||
if (e) throw e.error;
|
||||
}
|
||||
}
|
||||
return !1;
|
||||
},
|
||||
h,
|
||||
),
|
||||
!0
|
||||
);
|
||||
},
|
||||
h,
|
||||
);
|
||||
}
|
||||
e.loadLatest = function () {
|
||||
if (
|
||||
(c = (function () {
|
||||
var t, e;
|
||||
if (document.currentScript) return l(document.currentScript);
|
||||
var a = document.getElementById('MathJax-script');
|
||||
if (a && 'script' === a.nodeName.toLowerCase()) return u(a);
|
||||
var n = document.getElementsByTagName('script');
|
||||
try {
|
||||
for (
|
||||
var o = r(Array.from(n)), i = o.next();
|
||||
!i.done;
|
||||
i = o.next()
|
||||
) {
|
||||
var c = u(i.value);
|
||||
if (c) return c;
|
||||
}
|
||||
} catch (e) {
|
||||
t = { error: e };
|
||||
} finally {
|
||||
try {
|
||||
i && !i.done && (e = o.return) && e.call(o);
|
||||
} finally {
|
||||
if (t) throw t.error;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
})()) &&
|
||||
c.cdn
|
||||
) {
|
||||
var t = (function () {
|
||||
try {
|
||||
var t = a(localStorage.getItem(i).split(/ /), 2),
|
||||
e = t[0],
|
||||
r = t[1];
|
||||
if (r && Date.now() - parseInt(r) < 6048e5) return e;
|
||||
} catch (t) {}
|
||||
return null;
|
||||
})();
|
||||
t ? f(t) : y();
|
||||
} else h();
|
||||
};
|
||||
},
|
||||
},
|
||||
e = {};
|
||||
function r(a) {
|
||||
var n = e[a];
|
||||
if (void 0 !== n) return n.exports;
|
||||
var o = (e[a] = { exports: {} });
|
||||
return t[a].call(o.exports, o, o.exports, r), o.exports;
|
||||
}
|
||||
(r.n = function (t) {
|
||||
var e =
|
||||
t && t.__esModule
|
||||
? function () {
|
||||
return t.default;
|
||||
}
|
||||
: function () {
|
||||
return t;
|
||||
};
|
||||
return r.d(e, { a: e }), e;
|
||||
}),
|
||||
(r.d = function (t, e) {
|
||||
for (var a in e)
|
||||
r.o(e, a) &&
|
||||
!r.o(t, a) &&
|
||||
Object.defineProperty(t, a, { enumerable: !0, get: e[a] });
|
||||
}),
|
||||
(r.o = function (t, e) {
|
||||
return Object.prototype.hasOwnProperty.call(t, e);
|
||||
}),
|
||||
(0, r(907).loadLatest)();
|
||||
})();
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user