diff --git a/.npmignore b/.npmignore
index 6a516e6dd..74a3edae4 100644
--- a/.npmignore
+++ b/.npmignore
@@ -2,6 +2,7 @@
/node_modules
/examples
/tests
+/pr-specs
webpack.config.js
webpack.dev.js
.gitignore
diff --git a/README.md b/README.md
index b9de74a36..1e22940d6 100644
--- a/README.md
+++ b/README.md
@@ -268,13 +268,14 @@ class ConvertForm extends React.Component {
#### [Example of Latex to mathml/asciimath/tsv conversion](https://github.com/Mathpix/mathpix-markdown-it/tree/master/examples/react-app/use-parseMarkdownByHTML-method)
-Rendering methods have the ability to convert `Latex` representation to such formats as: `mathml`, `asciimath`, `tsv`
+Rendering methods have the ability to convert `Latex` representation to such formats as: `mathml`, `asciimath`, `typst`, `tsv`
```js
const options = {
outMath: { //You can set which formats should be included into html result
include_mathml: true,
include_asciimath: true,
+ include_typst: true,
include_latex: true,
include_svg: true, // sets in default
include_tsv: true,
@@ -291,6 +292,8 @@ For `Latex` formulas, the result will be:
...
...
+ ...
+ ...
...
..
@@ -317,6 +320,14 @@ For `Latex` formulas:
"type": "asciimath",
"value": "x^(x)"
},
+ {
+ "type": "typst",
+ "value": "x^x"
+ },
+ {
+ "type": "typst_inline",
+ "value": "x^x"
+ },
{
"type": "latex",
"value": "x^x"
@@ -420,6 +431,76 @@ const parsed = MathpixMarkdownModel.parseMarkdownByHTML(html, false);
```
+### Latex to Typst math conversion
+
+You can convert LaTeX math directly to [Typst](https://typst.app/) math notation:
+
+```js
+const { MathJax } = require('mathpix-markdown-it/lib/mathjax/index.js');
+
+const result = MathJax.TexConvertToTypstData('\\frac{a}{b}');
+// result = { typstmath: 'frac(a, b)', typstmath_inline: 'frac(a, b)' }
+// result.error is undefined (set only when LaTeX is invalid)
+```
+
+Conversion examples — note how Typst uses function-call syntax instead of LaTeX backslash commands:
+
+```js
+// Fractions: \frac{}{} → frac()
+MathJax.TexConvertToTypstData('\\frac{x+1}{x-1}');
+// { typstmath: 'frac(x + 1, x - 1)', typstmath_inline: 'frac(x + 1, x - 1)' }
+
+// Roots: \sqrt → sqrt(), \sqrt[n] → root()
+MathJax.TexConvertToTypstData('\\sqrt[3]{x}');
+// { typstmath: 'root(3, x)', typstmath_inline: 'root(3, x)' }
+
+// Matrices: \begin{pmatrix} → mat(delim: "(", ...)
+MathJax.TexConvertToTypstData('\\begin{pmatrix} a & b \\\\ c & d \\end{pmatrix}');
+// { typstmath: 'mat(delim: "(", \n a, b;\n c, d,\n)',
+// typstmath_inline: 'mat(delim: "(", \n a, b;\n c, d,\n)' }
+
+// Cases: \begin{cases} → cases()
+MathJax.TexConvertToTypstData('\\begin{cases} x & \\text{if } x > 0 \\\\ -x & \\text{otherwise} \\end{cases}');
+// { typstmath: 'cases(\n x & "if " x > 0,\n - x & "otherwise",\n)',
+// typstmath_inline: 'cases(\n x & "if " x > 0,\n - x & "otherwise",\n)' }
+
+// Delimiters: \lfloor..\rfloor → floor(), \|..\| → norm()
+MathJax.TexConvertToTypstData('\\lfloor x/2 \\rfloor + \\lceil y \\rceil');
+// { typstmath: 'floor(x\\/ 2) + ceil(y)', typstmath_inline: 'floor(x\\/ 2) + ceil(y)' }
+
+// Blackboard bold: \mathbb{Z} → ZZ
+MathJax.TexConvertToTypstData('\\mathbb{Z}');
+// { typstmath: 'ZZ', typstmath_inline: 'ZZ' }
+
+// Custom operators: \operatorname*{} → op("", limits: #true)
+MathJax.TexConvertToTypstData('\\operatorname*{argmax}_{x} f(x)');
+// { typstmath: 'op("argmax", limits: #true)_x f(x)',
+// typstmath_inline: 'op("argmax", limits: #true)_x f(x)' }
+
+// Partial derivatives
+MathJax.TexConvertToTypstData('\\frac{\\partial f}{\\partial x}');
+// { typstmath: 'frac(partial f, partial x)', typstmath_inline: 'frac(partial f, partial x)' }
+
+// Text in math: \text{} → ""
+MathJax.TexConvertToTypstData('x \\text{ and } y');
+// { typstmath: 'x " and " y', typstmath_inline: 'x " and " y' }
+```
+
+The converter returns two representations — `typstmath` (block, may include Typst code-mode wrappers like `#math.equation()`, `#box()`) and `typstmath_inline` (pure math-mode, safe for inline `$...$` contexts). They differ for `\boxed`, `\tag`, and similar constructs:
+
+```js
+// \boxed — block wraps in #box(), inline is plain math:
+MathJax.TexConvertToTypstData('\\boxed{a+b}');
+// { typstmath: '#align(center, box(stroke: 0.5pt, inset: 3pt, $a + b$))',
+// typstmath_inline: 'a + b' }
+
+// Invalid LaTeX — empty typst, error message returned:
+MathJax.TexConvertToTypstData('\\frac{');
+// { typstmath: '', typstmath_inline: '', error: 'Missing close brace' }
+```
+
+When included via `outMath` options (`include_typst: true`), Typst output is also available through the rendering pipeline alongside MathML, AsciiMath, and other formats.
+
### Example of the include_sub_math option usage for tables containing nested tables and formulas
#### parseMarkdownByHTML(html: string, include_sub_math: boolean = true)
@@ -431,6 +512,7 @@ const options = {
outMath: {
include_asciimath: true,
include_mathml: true,
+ include_typst: true,
include_latex: true,
include_svg: true,
include_tsv: true,
@@ -457,16 +539,22 @@ const parsed = MathpixMarkdownModel.parseMarkdownByHTML(html);
{ type: 'mathml', value: '' },
{ type: 'asciimath', value: 'x^(1)' },
+ { type: 'typst', value: 'x^1' },
+ { type: 'typst_inline', value: 'x^1' },
{ type: 'latex', value: 'x^1' },
{ type: 'svg', value: '' },
-
+
{ type: 'mathml', value: '' },
{ type: 'asciimath', value: 'y^(1)' },
+ { type: 'typst', value: 'y^1' },
+ { type: 'typst_inline', value: 'y^1' },
{ type: 'latex', value: 'y^1' },
{ type: 'svg', value: '' },
-
+
{ type: 'mathml', value: '' },
{ type: 'asciimath', value: 'z^(1)' },
+ { type: 'typst', value: 'z^1' },
+ { type: 'typst_inline', value: 'z^1' },
{ type: 'latex', value: 'z^1' },
{ type: 'svg', value: '' }
]
@@ -479,6 +567,7 @@ const options = {
outMath: {
include_asciimath: true,
include_mathml: true,
+ include_typst: true,
include_latex: true,
include_svg: true,
include_tsv: true,
diff --git a/doc/changelog.md b/doc/changelog.md
index cc36c30ba..dc0c5cdec 100644
--- a/doc/changelog.md
+++ b/doc/changelog.md
@@ -1,5 +1,24 @@
# March 2026
+## [2.0.39] - Add Typst math format output
+
+- New Feature:
+ - LaTeX-to-Typst math conversion via `MathJax.TexConvertToTypstData(latex)`. Returns `{ typstmath, typstmath_inline, error? }`.
+ - `typstmath` — block representation (may include `#math.equation()`, `#box()`, `#align()` wrappers).
+ - `typstmath_inline` — pure math-mode output, safe for inline `$...$` contexts.
+ - `include_typst: true` option in `outMath` to include `` and `` tags in rendered HTML.
+
+- Supported constructs:
+ - Fractions (`\frac` → `frac()`), roots (`\sqrt` → `sqrt()`, `\sqrt[n]` → `root()`), matrices (`pmatrix`/`bmatrix`/`vmatrix` → `mat()`), cases (`\begin{cases}` → `cases()`).
+ - Delimiter optimization: `\lfloor..\rfloor` → `floor()`, `\lceil..\rceil` → `ceil()`, `\|..\|` → `norm()`, `|..|` → `abs()`.
+ - Blackboard bold shorthands: `\mathbb{Z}` → `ZZ`, `\mathbb{N}` → `NN`, etc.
+ - Custom operators: `\operatorname*{argmax}` → `op("argmax", limits: #true)`.
+ - Text in math: `\text{...}` → `"..."`.
+ - Tags, labels, equation numbering, aligned environments, `\boxed`, accents, cancellations, colors, and 4200+ test cases.
+
+- Error Handling:
+ - `merror` nodes (invalid LaTeX) return `{ typstmath: '', typstmath_inline: '', error: '...' }` — errors never appear in Typst output.
+
## [2.0.38] - Fix infinite loop in `inlineMmdIcon` and `inlineDiagbox` silent mode
- Bug Fix:
diff --git a/es5/browser/auto-render.js b/es5/browser/auto-render.js
index 033e9cada..5583cf029 100644
--- a/es5/browser/auto-render.js
+++ b/es5/browser/auto-render.js
@@ -1,4 +1,4 @@
-(()=>{var __webpack_modules__={4855:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i=t.length&&(t=void 0),{value:t&&t[r++],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 T=n(4971),Q=n(4347),c=n(4981),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getAttributes=function(e){return t.prototype.getAttributes.call(this,e).replace(/ ?id=".*?"/,"")},e}(Q.SerializedMmlVisitor);function d(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.assistiveMml=function(t,e){if(void 0===e&&(e=!1),!(this.state()>=T.STATE.ASSISTIVEMML)){if(!this.isEscaped&&(t.options.enableAssistiveMml||e)){var n=t.adaptor,r=t.toMML(this.root).replace(/\n */g,"").replace(//g,""),i=n.firstChild(n.body(n.parse(r,"text/html"))),o=n.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[i]);n.setAttribute(n.firstChild(this.typesetRoot),"aria-hidden","true"),n.setStyle(this.typesetRoot,"position","relative"),n.append(this.typesetRoot,o)}this.state(T.STATE.ASSISTIVEMML)}},e}(t)}function h(t){var e;return e=function(t){function e(){for(var e=[],n=0;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLAdaptor=void 0;var a=function(t){function e(e){var n=t.call(this,e.document)||this;return n.window=e,n.parser=new e.DOMParser,n}return i(e,t),e.prototype.parse=function(t,e){return void 0===e&&(e="text/html"),this.parser.parseFromString(t,e)},e.prototype.create=function(t,e){return e?this.document.createElementNS(e,t):this.document.createElement(t)},e.prototype.text=function(t){return this.document.createTextNode(t)},e.prototype.head=function(t){return t.head||t},e.prototype.body=function(t){return t.body||t},e.prototype.root=function(t){return t.documentElement||t},e.prototype.doctype=function(t){return t.doctype?""):""},e.prototype.tags=function(t,e,n){void 0===n&&(n=null);var r=n?t.getElementsByTagNameNS(n,e):t.getElementsByTagName(e);return Array.from(r)},e.prototype.getElements=function(t,e){var n,r,i=[];try{for(var a=o(t),s=a.next();!s.done;s=a.next()){var l=s.value;"string"==typeof l?i=i.concat(Array.from(this.document.querySelectorAll(l))):Array.isArray(l)||l instanceof this.window.NodeList||l instanceof this.window.HTMLCollection?i=i.concat(Array.from(l)):i.push(l)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},e.prototype.contains=function(t,e){return t.contains(e)},e.prototype.parent=function(t){return t.parentNode},e.prototype.append=function(t,e){return t.appendChild(e)},e.prototype.insert=function(t,e){return this.parent(e).insertBefore(t,e)},e.prototype.remove=function(t){return this.parent(t).removeChild(t)},e.prototype.replace=function(t,e){return this.parent(e).replaceChild(t,e)},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.split=function(t,e){return t.splitText(e)},e.prototype.next=function(t){return t.nextSibling},e.prototype.previous=function(t){return t.previousSibling},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.lastChild=function(t){return t.lastChild},e.prototype.childNodes=function(t){return Array.from(t.childNodes)},e.prototype.childNode=function(t,e){return t.childNodes[e]},e.prototype.kind=function(t){var e=t.nodeType;return 1===e||3===e||8===e?t.nodeName.toLowerCase():""},e.prototype.value=function(t){return t.nodeValue||""},e.prototype.textContent=function(t){return t.textContent},e.prototype.innerHTML=function(t){return t.innerHTML},e.prototype.outerHTML=function(t){return t.outerHTML},e.prototype.serializeXML=function(t){return(new this.window.XMLSerializer).serializeToString(t)},e.prototype.setAttribute=function(t,e,n,r){return void 0===r&&(r=null),r?(e=r.replace(/.*\//,"")+":"+e.replace(/^.*:/,""),t.setAttributeNS(r,e,n)):t.setAttribute(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.removeAttribute=function(t,e){return t.removeAttribute(e)},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.allAttributes=function(t){return Array.from(t.attributes).map((function(t){return{name:t.name,value:t.value}}))},e.prototype.addClass=function(t,e){t.classList?t.classList.add(e):t.className=(t.className+" "+e).trim()},e.prototype.removeClass=function(t,e){t.classList?t.classList.remove(e):t.className=t.className.split(/ /).filter((function(t){return t!==e})).join(" ")},e.prototype.hasClass=function(t,e){return t.classList?t.classList.contains(e):t.className.split(/ /).indexOf(e)>=0},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.allStyles=function(t){return t.style.cssText},e.prototype.insertRules=function(t,e){var n,r;try{for(var i=o(e.reverse()),a=i.next();!a.done;a=i.next()){var s=a.value;try{t.sheet.insertRule(s,0)}catch(t){console.warn("MathJax: can't insert css rule '".concat(s,"': ").concat(t.message))}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.fontSize=function(t){var e=this.window.getComputedStyle(t);return parseFloat(e.fontSize)},e.prototype.fontFamily=function(t){return this.window.getComputedStyle(t).fontFamily||""},e.prototype.nodeSize=function(t,e,n){if(void 0===e&&(e=1),void 0===n&&(n=!1),n&&t.getBBox){var r=t.getBBox();return[r.width/e,r.height/e]}return[t.offsetWidth/e,t.offsetHeight/e]},e.prototype.nodeBBox=function(t){var e=t.getBoundingClientRect();return{left:e.left,right:e.right,top:e.top,bottom:e.bottom}},e}(n(1747).AbstractDOMAdaptor);e.HTMLAdaptor=a},7936:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.browserAdaptor=void 0;var r=n(2519);e.browserAdaptor=function(){return new r.HTMLAdaptor(window)}},4933:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LiteDocument=void 0;var r=n(5450),i=function(){function t(){this.root=new r.LiteElement("html",{},[this.head=new r.LiteElement("head"),this.body=new r.LiteElement("body")]),this.type=""}return Object.defineProperty(t.prototype,"kind",{get:function(){return"#document"},enumerable:!1,configurable:!0}),t}();e.LiteDocument=i},5450:function(t,e){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteElement=void 0;var a=function(t,e,a){var s,l;void 0===e&&(e={}),void 0===a&&(a=[]),this.kind=t,this.attributes=n({},e),this.children=i([],r(a),!1);try{for(var T=o(this.children),Q=T.next();!Q.done;Q=T.next())Q.value.parent=this}catch(t){s={error:t}}finally{try{Q&&!Q.done&&(l=T.return)&&l.call(T)}finally{if(s)throw s.error}}this.styles=null};e.LiteElement=a},3764:function(t,e){"use strict";var n=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteParser=e.PATTERNS=void 0;var l,T=o(n(8316)),Q=n(5450),c=n(8863);!function(t){t.TAGNAME="[a-z][^\\s\\n>]*",t.ATTNAME="[a-z][^\\s\\n>=]*",t.VALUE="(?:'[^']*'|\"[^\"]*\"|[^\\s\\n]+)",t.VALUESPLIT="(?:'([^']*)'|\"([^\"]*)\"|([^\\s\\n]+))",t.SPACE="(?:\\s|\\n)+",t.OPTIONALSPACE="(?:\\s|\\n)*",t.ATTRIBUTE=t.ATTNAME+"(?:"+t.OPTIONALSPACE+"="+t.OPTIONALSPACE+t.VALUE+")?",t.ATTRIBUTESPLIT="("+t.ATTNAME+")(?:"+t.OPTIONALSPACE+"="+t.OPTIONALSPACE+t.VALUESPLIT+")?",t.TAG="(<(?:"+t.TAGNAME+"(?:"+t.SPACE+t.ATTRIBUTE+")*"+t.OPTIONALSPACE+"/?|/"+t.TAGNAME+"|!--[^]*?--|![^]*?)(?:>|$))",t.tag=new RegExp(t.TAG,"i"),t.attr=new RegExp(t.ATTRIBUTE,"i"),t.attrsplit=new RegExp(t.ATTRIBUTESPLIT,"i")}(l=e.PATTERNS||(e.PATTERNS={}));var u=function(){function t(){}return t.prototype.parseFromString=function(t,e,n){void 0===e&&(e="text/html"),void 0===n&&(n=null);for(var r=n.createDocument(),i=n.body(r),o=t.replace(/<\?.*?\?>/g,"").split(l.tag);o.length;){var a=o.shift(),s=o.shift();a&&this.addText(n,i,a),s&&">"===s.charAt(s.length-1)&&("!"===s.charAt(1)?this.addComment(n,i,s):i="/"===s.charAt(1)?this.closeTag(n,i,s):this.openTag(n,i,s,o))}return this.checkDocument(n,r),r},t.prototype.addText=function(t,e,n){return n=T.translate(n),t.append(e,t.text(n))},t.prototype.addComment=function(t,e,n){return t.append(e,new c.LiteComment(n))},t.prototype.closeTag=function(t,e,n){for(var r=n.slice(2,n.length-1).toLowerCase();t.parent(e)&&t.kind(e)!==r;)e=t.parent(e);return t.parent(e)},t.prototype.openTag=function(t,e,n,r){var i=this.constructor.PCDATA,o=this.constructor.SELF_CLOSING,a=n.match(/<(.*?)[\s\n>\/]/)[1].toLowerCase(),s=t.node(a),T=n.replace(/^<.*?[\s\n>]/,"").split(l.attrsplit);return(T.pop().match(/>$/)||T.length<5)&&(this.addAttributes(t,s,T),t.append(e,s),o[a]||n.match(/\/>$/)||(i[a]?this.handlePCDATA(t,s,a,r):e=s)),e},t.prototype.addAttributes=function(t,e,n){for(var r=this.constructor.CDATA_ATTR;n.length;){var i=a(n.splice(0,5),5),o=i[1],s=i[2],l=i[3],Q=i[4],c=s||l||Q||"";r[o]||(c=T.translate(c)),t.setAttribute(e,o,c)}},t.prototype.handlePCDATA=function(t,e,n,r){for(var i=[],o=""+n+">",a="";r.length&&a!==o;)i.push(a),i.push(r.shift()),a=r.shift();t.append(e,t.text(i.join("")))},t.prototype.checkDocument=function(t,e){var n,r,i,o,a=this.getOnlyChild(t,t.body(e));if(a){try{for(var l=s(t.childNodes(t.body(e))),T=l.next();!T.done;T=l.next()){if((d=T.value)===a)break;d instanceof c.LiteComment&&d.value.match(/^":">":">".concat(l,"").concat(a,">"))},t.prototype.serializeInner=function(t,e,n){var r=this;return void 0===n&&(n=!1),this.constructor.PCDATA.hasOwnProperty(e.kind)?t.childNodes(e).map((function(e){return t.value(e)})).join(""):t.childNodes(e).map((function(e){var i=t.kind(e);return"#text"===i?r.protectHTML(t.value(e)):"#comment"===i?e.value:r.serialize(t,e,n)})).join("")},t.prototype.protectAttribute=function(t){return"string"!=typeof t&&(t=String(t)),t.replace(/"/g,""")},t.prototype.protectHTML=function(t){return t.replace(/&/g,"&").replace(//g,">")},t.SELF_CLOSING={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},t.PCDATA={option:!0,textarea:!0,fieldset:!0,title:!0,style:!0,script:!0},t.CDATA_ATTR={style:!0,datafld:!0,datasrc:!0,href:!0,src:!0,longdesc:!0,usemap:!0,cite:!0,datetime:!0,action:!0,axis:!0,profile:!0,content:!0,scheme:!0},t}();e.LiteParser=u},8863:function(t,e){"use strict";var n,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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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)});Object.defineProperty(e,"__esModule",{value:!0}),e.LiteComment=e.LiteText=void 0;var i=function(){function t(t){void 0===t&&(t=""),this.value=t}return Object.defineProperty(t.prototype,"kind",{get:function(){return"#text"},enumerable:!1,configurable:!0}),t}();e.LiteText=i;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"#comment"},enumerable:!1,configurable:!0}),e}(i);e.LiteComment=o},7191:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LiteWindow=void 0;var r=n(5450),i=n(4933),o=n(3764),a=n(4263),s=function(){this.DOMParser=a.LiteParser,this.NodeList=o.LiteList,this.HTMLCollection=o.LiteList,this.HTMLElement=r.LiteElement,this.DocumentFragment=o.LiteList,this.Document=i.LiteDocument,this.document=new i.LiteDocument};e.LiteWindow=s},984:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},l=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i=0&&t.parent.children.splice(e,1),t.parent=null,t},e.prototype.replace=function(t,e){var n=this.childIndex(e);return n>=0&&(e.parent.children[n]=t,t.parent=e.parent,e.parent=null),e},e.prototype.clone=function(t){var e=this,n=new u.LiteElement(t.kind);return n.attributes=o({},t.attributes),n.children=t.children.map((function(t){if("#text"===t.kind)return new d.LiteText(t.value);if("#comment"===t.kind)return new d.LiteComment(t.value);var r=e.clone(t);return r.parent=n,r})),n},e.prototype.split=function(t,e){var n=new d.LiteText(t.value.slice(e));return t.value=t.value.slice(0,e),t.parent.children.splice(this.childIndex(t)+1,0,n),n.parent=t.parent,n},e.prototype.next=function(t){var e=t.parent;if(!e)return null;var n=this.childIndex(t)+1;return n>=0&&n=0?e.children[n]:null},e.prototype.firstChild=function(t){return t.children[0]},e.prototype.lastChild=function(t){return t.children[t.children.length-1]},e.prototype.childNodes=function(t){return l([],s(t.children),!1)},e.prototype.childNode=function(t,e){return t.children[e]},e.prototype.kind=function(t){return t.kind},e.prototype.value=function(t){return"#text"===t.kind?t.value:"#comment"===t.kind?t.value.replace(/^$/,"$2"):""},e.prototype.textContent=function(t){var e=this;return t.children.reduce((function(t,n){return t+("#text"===n.kind?n.value:"#comment"===n.kind?"":e.textContent(n))}),"")},e.prototype.innerHTML=function(t){return this.parser.serializeInner(this,t)},e.prototype.outerHTML=function(t){return this.parser.serialize(this,t)},e.prototype.serializeXML=function(t){return this.parser.serialize(this,t,!0)},e.prototype.setAttribute=function(t,e,n,r){void 0===r&&(r=null),"string"!=typeof n&&(n=String(n)),r&&(e=r.replace(/.*\//,"")+":"+e.replace(/^.*:/,"")),t.attributes[e]=n,"style"===e&&(t.styles=null)},e.prototype.getAttribute=function(t,e){return t.attributes[e]},e.prototype.removeAttribute=function(t,e){delete t.attributes[e]},e.prototype.hasAttribute=function(t,e){return t.attributes.hasOwnProperty(e)},e.prototype.allAttributes=function(t){var e,n,r=t.attributes,i=[];try{for(var o=a(Object.keys(r)),s=o.next();!s.done;s=o.next()){var l=s.value;i.push({name:l,value:r[l]})}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i},e.prototype.addClass=function(t,e){var n=(t.attributes.class||"").split(/ /);n.find((function(t){return t===e}))||(n.push(e),t.attributes.class=n.join(" "))},e.prototype.removeClass=function(t,e){var n=(t.attributes.class||"").split(/ /),r=n.findIndex((function(t){return t===e}));r>=0&&(n.splice(r,1),t.attributes.class=n.join(" "))},e.prototype.hasClass=function(t,e){return!!(t.attributes.class||"").split(/ /).find((function(t){return t===e}))},e.prototype.setStyle=function(t,e,n){t.styles||(t.styles=new m.Styles(this.getAttribute(t,"style"))),t.styles.set(e,n),t.attributes.style=t.styles.cssText},e.prototype.getStyle=function(t,e){if(!t.styles){var n=this.getAttribute(t,"style");if(!n)return"";t.styles=new m.Styles(n)}return t.styles.get(e)},e.prototype.allStyles=function(t){return this.getAttribute(t,"style")},e.prototype.insertRules=function(t,e){t.children=[this.text(e.join("\n\n")+"\n\n"+this.textContent(t))]},e.prototype.fontSize=function(t){return 0},e.prototype.fontFamily=function(t){return""},e.prototype.nodeSize=function(t,e,n){return void 0===e&&(e=1),void 0===n&&(n=null),[0,0]},e.prototype.nodeBBox=function(t){return{left:0,right:0,top:0,bottom:0}},e}(T.AbstractDOMAdaptor);e.LiteBase=f;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}((0,Q.NodeMixin)(f));e.LiteAdaptor=y,e.liteAdaptor=function(t){return void 0===t&&(t=null),new y(null,t)}},1471:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="3.2.2"},1747:function(t,e){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractDOMAdaptor=void 0;var r=function(){function t(t){void 0===t&&(t=null),this.document=t}return t.prototype.node=function(t,e,r,i){var o,a;void 0===e&&(e={}),void 0===r&&(r=[]);var s=this.create(t,i);this.setAttributes(s,e);try{for(var l=n(r),T=l.next();!T.done;T=l.next()){var Q=T.value;this.append(s,Q)}}catch(t){o={error:t}}finally{try{T&&!T.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}return s},t.prototype.setAttributes=function(t,e){var r,i,o,a,s,l;if(e.style&&"string"!=typeof e.style)try{for(var T=n(Object.keys(e.style)),Q=T.next();!Q.done;Q=T.next()){var c=Q.value;this.setStyle(t,c.replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()})),e.style[c])}}catch(t){r={error:t}}finally{try{Q&&!Q.done&&(i=T.return)&&i.call(T)}finally{if(r)throw r.error}}if(e.properties)try{for(var u=n(Object.keys(e.properties)),d=u.next();!d.done;d=u.next()){t[c=d.value]=e.properties[c]}}catch(t){o={error:t}}finally{try{d&&!d.done&&(a=u.return)&&a.call(u)}finally{if(o)throw o.error}}try{for(var h=n(Object.keys(e)),p=h.next();!p.done;p=h.next()){"style"===(c=p.value)&&"string"!=typeof e.style||"properties"===c||this.setAttribute(t,c,e[c])}}catch(t){s={error:t}}finally{try{p&&!p.done&&(l=h.return)&&l.call(h)}finally{if(s)throw s.error}}},t.prototype.replace=function(t,e){return this.insert(t,e),this.remove(e),e},t.prototype.childNode=function(t,e){return this.childNodes(t)[e]},t.prototype.allClasses=function(t){var e=this.getAttribute(t,"class");return e?e.replace(/ +/g," ").replace(/^ /,"").replace(/ $/,"").split(/ /):[]},t}();e.AbstractDOMAdaptor=r},8499:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractFindMath=void 0;var r=n(4981),i=function(){function t(t){var e=this.constructor;this.options=(0,r.userOptions)((0,r.defaultOptions)({},e.OPTIONS),t)}return t.OPTIONS={},t}();e.AbstractFindMath=i},780:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractHandler=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(n(2878).AbstractMathDocument),a=function(){function t(t,e){void 0===e&&(e=5),this.documentClass=o,this.adaptor=t,this.priority=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),t.prototype.handlesDocument=function(t){return!1},t.prototype.create=function(t,e){return new this.documentClass(t,this.adaptor,e)},t.NAME="generic",t}();e.AbstractHandler=a},9796:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.HandlerList=void 0;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.register=function(t){return this.add(t,t.priority)},e.prototype.unregister=function(t){this.remove(t)},e.prototype.handlesDocument=function(t){var e,n;try{for(var r=o(this),i=r.next();!i.done;i=r.next()){var a=i.value.item;if(a.handlesDocument(t))return a}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}throw new Error("Can't find handler for document")},e.prototype.document=function(t,e){return void 0===e&&(e=null),this.handlesDocument(t).create(t,e)},e}(n(2776).PrioritizedList);e.HandlerList=a},7137:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractInputJax=void 0;var r=n(4981),i=n(3899),o=function(){function t(t){void 0===t&&(t={}),this.adaptor=null,this.mmlFactory=null;var e=this.constructor;this.options=(0,r.userOptions)((0,r.defaultOptions)({},e.OPTIONS),t),this.preFilters=new i.FunctionList,this.postFilters=new i.FunctionList}return Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),t.prototype.setAdaptor=function(t){this.adaptor=t},t.prototype.setMmlFactory=function(t){this.mmlFactory=t},t.prototype.initialize=function(){},t.prototype.reset=function(){for(var t=[],e=0;e=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i=e&&s.item.renderDoc(t))return}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.renderMath=function(t,e,n){var r,i;void 0===n&&(n=u.STATE.UNPROCESSED);try{for(var a=o(this.items),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.priority>=n&&l.item.renderMath(t,e))return}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},e.prototype.renderConvert=function(t,e,n){var r,i;void 0===n&&(n=u.STATE.LAST);try{for(var a=o(this.items),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.priority>n)return;if(l.item.convert&&l.item.renderMath(t,e))return}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},e.prototype.findID=function(t){var e,n;try{for(var r=o(this.items),i=r.next();!i.done;i=r.next()){var a=i.value;if(a.item.id===t)return a.item}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},e}(n(2776).PrioritizedList);e.RenderList=p,e.resetOptions={all:!1,processed:!1,inputJax:null,outputJax:null},e.resetAllOptions={all:!0,processed:!0,inputJax:[],outputJax:[]};var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.compile=function(t){return null},e}(T.AbstractInputJax),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.typeset=function(t,e){return void 0===e&&(e=null),null},e.prototype.escaped=function(t,e){return null},e}(Q.AbstractOutputJax),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(c.AbstractMathList),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(u.AbstractMathItem),L=function(){function t(e,n,r){var i=this,o=this.constructor;this.document=e,this.options=(0,l.userOptions)((0,l.defaultOptions)({},o.OPTIONS),r),this.math=new(this.options.MathList||y),this.renderActions=p.create(this.options.renderActions),this.processed=new t.ProcessBits,this.outputJax=this.options.OutputJax||new f;var a=this.options.InputJax||[new m];Array.isArray(a)||(a=[a]),this.inputJax=a,this.adaptor=n,this.outputJax.setAdaptor(n),this.inputJax.map((function(t){return t.setAdaptor(n)})),this.mmlFactory=this.options.MmlFactory||new d.MmlFactory,this.inputJax.map((function(t){return t.setMmlFactory(i.mmlFactory)})),this.outputJax.initialize(),this.inputJax.map((function(t){return t.initialize()}))}return Object.defineProperty(t.prototype,"kind",{get:function(){return this.constructor.KIND},enumerable:!1,configurable:!0}),t.prototype.addRenderAction=function(t){for(var e=[],n=1;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.newState=e.STATE=e.AbstractMathItem=e.protoItem=void 0,e.protoItem=function(t,e,n,r,i,o,a){return void 0===a&&(a=null),{open:t,math:e,close:n,n:r,start:{n:i},end:{n:o},display:a}};var n=function(){function t(t,n,r,i,o){void 0===r&&(r=!0),void 0===i&&(i={i:0,n:0,delim:""}),void 0===o&&(o={i:0,n:0,delim:""}),this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={},this._state=e.STATE.UNPROCESSED,this.math=t,this.inputJax=n,this.display=r,this.start=i,this.end=o,this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={}}return Object.defineProperty(t.prototype,"isEscaped",{get:function(){return null===this.display},enumerable:!1,configurable:!0}),t.prototype.render=function(t){t.renderActions.renderMath(this,t)},t.prototype.rerender=function(t,n){void 0===n&&(n=e.STATE.RERENDER),this.state()>=n&&this.state(n-1),t.renderActions.renderMath(this,t,n)},t.prototype.convert=function(t,n){void 0===n&&(n=e.STATE.LAST),t.renderActions.renderConvert(this,t,n)},t.prototype.compile=function(t){this.state()=e.STATE.INSERTED&&this.removeFromDocument(n),t=e.STATE.TYPESET&&(this.outputData={}),t=e.STATE.COMPILED&&(this.inputData={}),this._state=t),this._state},t.prototype.reset=function(t){void 0===t&&(t=!1),this.state(e.STATE.UNPROCESSED,t)},t}();e.AbstractMathItem=n,e.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4},e.newState=function(t,n){if(t in e.STATE)throw Error("State "+t+" already exists");e.STATE[t]=n}},6808:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMathList=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isBefore=function(t,e){return t.start.i=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Attributes=e.INHERIT=void 0,e.INHERIT="_inherit_";var r=function(){function t(t,e){this.global=e,this.defaults=Object.create(e),this.inherited=Object.create(this.defaults),this.attributes=Object.create(this.inherited),Object.assign(this.defaults,t)}return t.prototype.set=function(t,e){this.attributes[t]=e},t.prototype.setList=function(t){Object.assign(this.attributes,t)},t.prototype.get=function(t){var n=this.attributes[t];return n===e.INHERIT&&(n=this.global[t]),n},t.prototype.getExplicit=function(t){if(this.attributes.hasOwnProperty(t))return this.attributes[t]},t.prototype.getList=function(){for(var t,e,r=[],i=0;i{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.MML=void 0;var i=n(747),o=n(1859),a=n(2175),s=n(4318),l=n(8669),T=n(8765),Q=n(4394),c=n(8313),u=n(1364),d=n(4502),h=n(4208),p=n(6778),m=n(3941),f=n(7422),y=n(900),g=n(5385),L=n(4453),b=n(8085),v=n(6528),x=n(2560),_=n(6072),H=n(93),w=n(7840),O=n(9516),M=n(4826),S=n(8878),E=n(9254),A=n(4906),C=n(7828),V=n(4517),N=n(4020);e.MML=((r={})[o.MmlMath.prototype.kind]=o.MmlMath,r[a.MmlMi.prototype.kind]=a.MmlMi,r[s.MmlMn.prototype.kind]=s.MmlMn,r[l.MmlMo.prototype.kind]=l.MmlMo,r[T.MmlMtext.prototype.kind]=T.MmlMtext,r[Q.MmlMspace.prototype.kind]=Q.MmlMspace,r[c.MmlMs.prototype.kind]=c.MmlMs,r[u.MmlMrow.prototype.kind]=u.MmlMrow,r[u.MmlInferredMrow.prototype.kind]=u.MmlInferredMrow,r[d.MmlMfrac.prototype.kind]=d.MmlMfrac,r[h.MmlMsqrt.prototype.kind]=h.MmlMsqrt,r[p.MmlMroot.prototype.kind]=p.MmlMroot,r[m.MmlMstyle.prototype.kind]=m.MmlMstyle,r[f.MmlMerror.prototype.kind]=f.MmlMerror,r[y.MmlMpadded.prototype.kind]=y.MmlMpadded,r[g.MmlMphantom.prototype.kind]=g.MmlMphantom,r[L.MmlMfenced.prototype.kind]=L.MmlMfenced,r[b.MmlMenclose.prototype.kind]=b.MmlMenclose,r[v.MmlMaction.prototype.kind]=v.MmlMaction,r[x.MmlMsub.prototype.kind]=x.MmlMsub,r[x.MmlMsup.prototype.kind]=x.MmlMsup,r[x.MmlMsubsup.prototype.kind]=x.MmlMsubsup,r[_.MmlMunder.prototype.kind]=_.MmlMunder,r[_.MmlMover.prototype.kind]=_.MmlMover,r[_.MmlMunderover.prototype.kind]=_.MmlMunderover,r[H.MmlMmultiscripts.prototype.kind]=H.MmlMmultiscripts,r[H.MmlMprescripts.prototype.kind]=H.MmlMprescripts,r[H.MmlNone.prototype.kind]=H.MmlNone,r[w.MmlMtable.prototype.kind]=w.MmlMtable,r[O.MmlMlabeledtr.prototype.kind]=O.MmlMlabeledtr,r[O.MmlMtr.prototype.kind]=O.MmlMtr,r[M.MmlMtd.prototype.kind]=M.MmlMtd,r[S.MmlMaligngroup.prototype.kind]=S.MmlMaligngroup,r[E.MmlMalignmark.prototype.kind]=E.MmlMalignmark,r[A.MmlMglyph.prototype.kind]=A.MmlMglyph,r[C.MmlSemantics.prototype.kind]=C.MmlSemantics,r[C.MmlAnnotation.prototype.kind]=C.MmlAnnotation,r[C.MmlAnnotationXML.prototype.kind]=C.MmlAnnotationXML,r[V.TeXAtom.prototype.kind]=V.TeXAtom,r[N.MathChoice.prototype.kind]=N.MathChoice,r[i.TextNode.prototype.kind]=i.TextNode,r[i.XMLNode.prototype.kind]=i.XMLNode,r)},4001:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MmlFactory=void 0;var o=n(3495),a=n(2167),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"MML",{get:function(){return this.node},enumerable:!1,configurable:!0}),e.defaultNodes=a.MML,e}(o.AbstractNodeFactory);e.MmlFactory=s},747:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.XMLNode=e.TextNode=e.AbstractMmlEmptyNode=e.AbstractMmlBaseNode=e.AbstractMmlLayoutNode=e.AbstractMmlTokenNode=e.AbstractMmlNode=e.indentAttributes=e.TEXCLASSNAMES=e.TEXCLASS=void 0;var l=n(8128),T=n(4465);e.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1},e.TEXCLASSNAMES=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER","VCENTER"];var Q=["","thinmathspace","mediummathspace","thickmathspace"],c=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]];e.indentAttributes=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];var u=function(t){function n(e,n,r){void 0===n&&(n={}),void 0===r&&(r=[]);var i=t.call(this,e)||this;return i.prevClass=null,i.prevLevel=null,i.texclass=null,i.arity<0&&(i.childNodes=[e.create("inferredMrow")],i.childNodes[0].parent=i),i.setChildren(r),i.attributes=new l.Attributes(e.getNodeClass(i.kind).defaults,e.getNodeClass("math").defaults),i.attributes.setList(n),i}return i(n,t),n.prototype.copy=function(t){var e,n,r,i;void 0===t&&(t=!1);var s=this.factory.create(this.kind);if(s.properties=o({},this.properties),this.attributes){var l=this.attributes.getAllAttributes();try{for(var T=a(Object.keys(l)),Q=T.next();!Q.done;Q=T.next()){var c=Q.value;("id"!==c||t)&&s.attributes.set(c,l[c])}}catch(t){e={error:t}}finally{try{Q&&!Q.done&&(n=T.return)&&n.call(T)}finally{if(e)throw e.error}}}if(this.childNodes&&this.childNodes.length){var u=this.childNodes;1===u.length&&u[0].isInferred&&(u=u[0].childNodes);try{for(var d=a(u),h=d.next();!h.done;h=d.next()){var p=h.value;p?s.appendChild(p.copy()):s.childNodes.push(null)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}return s},Object.defineProperty(n.prototype,"texClass",{get:function(){return this.texclass},set:function(t){this.texclass=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"arity",{get:function(){return 1/0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Parent",{get:function(){for(var t=this.parent;t&&t.notParent;)t=t.Parent;return t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.setChildren=function(e){return this.arity<0?this.childNodes[0].setChildren(e):t.prototype.setChildren.call(this,e)},n.prototype.appendChild=function(e){var n,r,i=this;if(this.arity<0)return this.childNodes[0].appendChild(e),e;if(e.isInferred){if(this.arity===1/0)return e.childNodes.forEach((function(e){return t.prototype.appendChild.call(i,e)})),e;var o=e;(e=this.factory.create("mrow")).setChildren(o.childNodes),e.attributes=o.attributes;try{for(var s=a(o.getPropertyNames()),l=s.next();!l.done;l=s.next()){var T=l.value;e.setProperty(T,o.getProperty(T))}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}return t.prototype.appendChild.call(this,e)},n.prototype.replaceChild=function(e,n){return this.arity<0?(this.childNodes[0].replaceChild(e,n),e):t.prototype.replaceChild.call(this,e,n)},n.prototype.core=function(){return this},n.prototype.coreMO=function(){return this},n.prototype.coreIndex=function(){return 0},n.prototype.childPosition=function(){for(var t,e,n=this,r=n.parent;r&&r.notParent;)n=r,r=r.parent;if(r){var i=0;try{for(var o=a(r.childNodes),s=o.next();!s.done;s=o.next()){if(s.value===n)return i;i++}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}}return null},n.prototype.setTeXclass=function(t){return this.getPrevClass(t),null!=this.texClass?this:t},n.prototype.updateTeXclass=function(t){t&&(this.prevClass=t.prevClass,this.prevLevel=t.prevLevel,t.prevClass=t.prevLevel=null,this.texClass=t.texClass)},n.prototype.getPrevClass=function(t){t&&(this.prevClass=t.texClass,this.prevLevel=t.attributes.get("scriptlevel"))},n.prototype.texSpacing=function(){var t=null!=this.prevClass?this.prevClass:e.TEXCLASS.NONE,n=this.texClass||e.TEXCLASS.ORD;if(t===e.TEXCLASS.NONE||n===e.TEXCLASS.NONE)return"";t===e.TEXCLASS.VCENTER&&(t=e.TEXCLASS.ORD),n===e.TEXCLASS.VCENTER&&(n=e.TEXCLASS.ORD);var r=c[t][n];return(this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&r>=0?"":Q[Math.abs(r)]},n.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()},n.prototype.setInheritedAttributes=function(t,e,r,i){var o,l;void 0===t&&(t={}),void 0===e&&(e=!1),void 0===r&&(r=0),void 0===i&&(i=!1);var T=this.attributes.getAllDefaults();try{for(var Q=a(Object.keys(t)),c=Q.next();!c.done;c=Q.next()){var u=c.value;if(T.hasOwnProperty(u)||n.alwaysInherit.hasOwnProperty(u)){var d=s(t[u],2),h=d[0],p=d[1];((n.noInherit[h]||{})[this.kind]||{})[u]||this.attributes.setInherited(u,p)}}}catch(t){o={error:t}}finally{try{c&&!c.done&&(l=Q.return)&&l.call(Q)}finally{if(o)throw o.error}}void 0===this.attributes.getExplicit("displaystyle")&&this.attributes.setInherited("displaystyle",e),void 0===this.attributes.getExplicit("scriptlevel")&&this.attributes.setInherited("scriptlevel",r),i&&this.setProperty("texprimestyle",i);var m=this.arity;if(m>=0&&m!==1/0&&(1===m&&0===this.childNodes.length||1!==m&&this.childNodes.length!==m))if(m=0&&e!==1/0&&(1===e&&0===this.childNodes.length||1!==e&&this.childNodes.length!==e)&&this.mError('Wrong number of children for "'+this.kind+'" node',t,!0),this.verifyChildren(t)}},n.prototype.verifyAttributes=function(t){var e,n;if(t.checkAttributes){var r=this.attributes,i=[];try{for(var o=a(r.getExplicitNames()),s=o.next();!s.done;s=o.next()){var l=s.value;"data-"===l.substr(0,5)||void 0!==r.getDefault(l)||l.match(/^(?:class|style|id|(?:xlink:)?href)$/)||i.push(l)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}i.length&&this.mError("Unknown attributes for "+this.kind+" node: "+i.join(", "),t)}},n.prototype.verifyChildren=function(t){var e,n;try{for(var r=a(this.childNodes),i=r.next();!i.done;i=r.next()){i.value.verifyTree(t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},n.prototype.mError=function(t,e,n){if(void 0===n&&(n=!1),this.parent&&this.parent.isKind("merror"))return null;var r=this.factory.create("merror");if(r.attributes.set("data-mjx-message",t),e.fullErrors||n){var i=this.factory.create("mtext"),o=this.factory.create("text");o.setText(e.fullErrors?t:this.kind),i.appendChild(o),r.appendChild(i),this.parent.replaceChild(r,this)}else this.parent.replaceChild(r,this),r.appendChild(this);return r},n.defaults={mathbackground:l.INHERIT,mathcolor:l.INHERIT,mathsize:l.INHERIT,dir:l.INHERIT},n.noInherit={mstyle:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},maligngroup:{mrow:{groupalign:!0},mtable:{groupalign:!0}}},n.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0},n.verifyDefaults={checkArity:!0,checkAttributes:!1,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0},n}(T.AbstractNode);e.AbstractMmlNode=u;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"isToken",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.getText=function(){var t,e,n="";try{for(var r=a(this.childNodes),i=r.next();!i.done;i=r.next()){var o=i.value;o instanceof f&&(n+=o.getText())}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return n},e.prototype.setChildInheritedAttributes=function(t,e,n,r){var i,o;try{for(var s=a(this.childNodes),l=s.next();!l.done;l=s.next()){var T=l.value;T instanceof u&&T.setInheritedAttributes(t,e,n,r)}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}},e.prototype.walkTree=function(t,e){var n,r;t(this,e);try{for(var i=a(this.childNodes),o=i.next();!o.done;o=i.next()){var s=o.value;s instanceof u&&s.walkTree(t,e)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e},e.defaults=o(o({},u.defaults),{mathvariant:"normal",mathsize:l.INHERIT}),e}(u);e.AbstractMmlTokenNode=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"isSpacelike",{get:function(){return this.childNodes[0].isSpacelike},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),e.prototype.core=function(){return this.childNodes[0]},e.prototype.coreMO=function(){return this.childNodes[0].coreMO()},e.prototype.setTeXclass=function(t){return t=this.childNodes[0].setTeXclass(t),this.updateTeXclass(this.childNodes[0]),t},e.defaults=u.defaults,e}(u);e.AbstractMmlLayoutNode=h;var p=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),Object.defineProperty(n.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),n.prototype.core=function(){return this.childNodes[0]},n.prototype.coreMO=function(){return this.childNodes[0].coreMO()},n.prototype.setTeXclass=function(t){var n,r;this.getPrevClass(t),this.texClass=e.TEXCLASS.ORD;var i=this.childNodes[0];i?this.isEmbellished||i.isKind("mi")?(t=i.setTeXclass(t),this.updateTeXclass(this.core())):(i.setTeXclass(null),t=this):t=this;try{for(var o=a(this.childNodes.slice(1)),s=o.next();!s.done;s=o.next()){var l=s.value;l&&l.setTeXclass(null)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return t},n.defaults=u.defaults,n}(u);e.AbstractMmlBaseNode=p;var m=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),Object.defineProperty(n.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"texClass",{get:function(){return e.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"prevClass",{get:function(){return e.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"prevLevel",{get:function(){return 0},enumerable:!1,configurable:!0}),n.prototype.hasSpacingAttributes=function(){return!1},Object.defineProperty(n.prototype,"attributes",{get:function(){return null},enumerable:!1,configurable:!0}),n.prototype.core=function(){return this},n.prototype.coreMO=function(){return this},n.prototype.coreIndex=function(){return 0},n.prototype.childPosition=function(){return 0},n.prototype.setTeXclass=function(t){return t},n.prototype.texSpacing=function(){return""},n.prototype.setInheritedAttributes=function(t,e,n,r){},n.prototype.inheritAttributesFrom=function(t){},n.prototype.verifyTree=function(t){},n.prototype.mError=function(t,e,n){return void 0===n&&(n=!1),null},n}(T.AbstractEmptyNode);e.AbstractMmlEmptyNode=m;var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.text="",e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"text"},enumerable:!1,configurable:!0}),e.prototype.getText=function(){return this.text},e.prototype.setText=function(t){return this.text=t,this},e.prototype.copy=function(){return this.factory.create(this.kind).setText(this.getText())},e.prototype.toString=function(){return this.text},e}(m);e.TextNode=f;var y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.xml=null,e.adaptor=null,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"XML"},enumerable:!1,configurable:!0}),e.prototype.getXML=function(){return this.xml},e.prototype.setXML=function(t,e){return void 0===e&&(e=null),this.xml=t,this.adaptor=e,this},e.prototype.getSerializedXML=function(){return this.adaptor.serializeXML(this.xml)},e.prototype.copy=function(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))},e.prototype.toString=function(){return"XML data"},e}(m);e.XMLNode=y},4517:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;nthis.childNodes.length&&(t=1),this.attributes.set("selection",t)},e.defaults=o(o({},a.AbstractMmlNode.defaults),{actiontype:"toggle",selection:1}),e}(a.AbstractMmlNode);e.MmlMaction=s},8878:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfenced=void 0;var s=n(747),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.texclass=s.TEXCLASS.INNER,e.separators=[],e.open=null,e.close=null,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mfenced"},enumerable:!1,configurable:!0}),e.prototype.setTeXclass=function(t){this.getPrevClass(t),this.open&&(t=this.open.setTeXclass(t)),this.childNodes[0]&&(t=this.childNodes[0].setTeXclass(t));for(var e=1,n=this.childNodes.length;e=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfrac=void 0;var s=n(747),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mfrac"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.setTeXclass=function(t){var e,n;this.getPrevClass(t);try{for(var r=a(this.childNodes),i=r.next();!i.done;i=r.next()){i.value.setTeXclass(null)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return this},e.prototype.setChildInheritedAttributes=function(t,e,n,r){(!e||n>0)&&n++,this.childNodes[0].setInheritedAttributes(t,!1,n,r),this.childNodes[1].setInheritedAttributes(t,!1,n,!0)},e.defaults=o(o({},s.AbstractMmlBaseNode.defaults),{linethickness:"medium",numalign:"center",denomalign:"center",bevelled:!1}),e}(s.AbstractMmlBaseNode);e.MmlMfrac=l},4906:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n1&&n.match(e.operatorName)&&"normal"===this.attributes.get("mathvariant")&&void 0===this.getProperty("autoOP")&&void 0===this.getProperty("texClass")&&(this.texClass=a.TEXCLASS.OP,this.setProperty("autoOP",!0)),this},e.defaults=o({},a.AbstractMmlTokenNode.defaults),e.operatorName=/^[a-z][a-z0-9]*$/i,e.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/,e}(a.AbstractMmlTokenNode);e.MmlMi=s},93:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMo=void 0;var l=n(747),T=n(6893),Q=n(1278),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._texClass=null,e.lspace=5/18,e.rspace=5/18,e}return i(e,t),Object.defineProperty(e.prototype,"texClass",{get:function(){if(null===this._texClass){var t=this.getText(),e=a(this.handleExplicitForm(this.getForms()),3),n=e[0],r=e[1],i=e[2],o=this.constructor.OPTABLE,s=o[n][t]||o[r][t]||o[i][t];return s?s[2]:l.TEXCLASS.REL}return this._texClass},set:function(t){this._texClass=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"kind",{get:function(){return"mo"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasNewLine",{get:function(){return"newline"===this.attributes.get("linebreak")},enumerable:!1,configurable:!0}),e.prototype.coreParent=function(){for(var t=this,e=this,n=this.factory.getNodeClass("math");e&&e.isEmbellished&&e.coreMO()===this&&!(e instanceof n);)t=e,e=e.parent;return t},e.prototype.coreText=function(t){if(!t)return"";if(t.isEmbellished)return t.coreMO().getText();for(;((t.isKind("mrow")||t.isKind("TeXAtom")&&t.texClass!==l.TEXCLASS.VCENTER||t.isKind("mstyle")||t.isKind("mphantom"))&&1===t.childNodes.length||t.isKind("munderover"))&&t.childNodes[0];)t=t.childNodes[0];return t.isToken?t.getText():""},e.prototype.hasSpacingAttributes=function(){return this.attributes.isSet("lspace")||this.attributes.isSet("rspace")},Object.defineProperty(e.prototype,"isAccent",{get:function(){var t=!1,e=this.coreParent().parent;if(e){var n=e.isKind("mover")?e.childNodes[e.over].coreMO()?"accent":"":e.isKind("munder")?e.childNodes[e.under].coreMO()?"accentunder":"":e.isKind("munderover")?this===e.childNodes[e.over].coreMO()?"accent":this===e.childNodes[e.under].coreMO()?"accentunder":"":"";if(n)t=void 0!==e.attributes.getExplicit(n)?t:this.attributes.get("accent")}return t},enumerable:!1,configurable:!0}),e.prototype.setTeXclass=function(t){var e=this.attributes.getList("form","fence"),n=e.form,r=e.fence;return void 0===this.getProperty("texClass")&&(this.attributes.isSet("lspace")||this.attributes.isSet("rspace"))?null:(r&&this.texClass===l.TEXCLASS.REL&&("prefix"===n&&(this.texClass=l.TEXCLASS.OPEN),"postfix"===n&&(this.texClass=l.TEXCLASS.CLOSE)),this.adjustTeXclass(t))},e.prototype.adjustTeXclass=function(t){var e=this.texClass,n=this.prevClass;if(e===l.TEXCLASS.NONE)return t;if(t?(!t.getProperty("autoOP")||e!==l.TEXCLASS.BIN&&e!==l.TEXCLASS.REL||(n=t.texClass=l.TEXCLASS.ORD),n=this.prevClass=t.texClass||l.TEXCLASS.ORD,this.prevLevel=this.attributes.getInherited("scriptlevel")):n=this.prevClass=l.TEXCLASS.NONE,e!==l.TEXCLASS.BIN||n!==l.TEXCLASS.NONE&&n!==l.TEXCLASS.BIN&&n!==l.TEXCLASS.OP&&n!==l.TEXCLASS.REL&&n!==l.TEXCLASS.OPEN&&n!==l.TEXCLASS.PUNCT)if(n!==l.TEXCLASS.BIN||e!==l.TEXCLASS.REL&&e!==l.TEXCLASS.CLOSE&&e!==l.TEXCLASS.PUNCT){if(e===l.TEXCLASS.BIN){for(var r=this,i=this.parent;i&&i.parent&&i.isEmbellished&&(1===i.childNodes.length||!i.isKind("mrow")&&i.core()===r);)r=i,i=i.parent;i.childNodes[i.childNodes.length-1]===r&&(this.texClass=l.TEXCLASS.ORD)}}else t.texClass=this.prevClass=l.TEXCLASS.ORD;else this.texClass=l.TEXCLASS.ORD;return this},e.prototype.setInheritedAttributes=function(e,n,r,i){void 0===e&&(e={}),void 0===n&&(n=!1),void 0===r&&(r=0),void 0===i&&(i=!1),t.prototype.setInheritedAttributes.call(this,e,n,r,i);var o=this.getText();this.checkOperatorTable(o),this.checkPseudoScripts(o),this.checkPrimes(o),this.checkMathAccent(o)},e.prototype.checkOperatorTable=function(t){var e,n,r=a(this.handleExplicitForm(this.getForms()),3),i=r[0],o=r[1],l=r[2];this.attributes.setInherited("form",i);var Q=this.constructor.OPTABLE,c=Q[i][t]||Q[o][t]||Q[l][t];if(c){void 0===this.getProperty("texClass")&&(this.texClass=c[2]);try{for(var u=s(Object.keys(c[3]||{})),d=u.next();!d.done;d=u.next()){var h=d.value;this.attributes.setInherited(h,c[3][h])}}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}this.lspace=(c[0]+1)/18,this.rspace=(c[1]+1)/18}else{var p=(0,T.getRange)(t);if(p){void 0===this.getProperty("texClass")&&(this.texClass=p[2]);var m=this.constructor.MMLSPACING[p[2]];this.lspace=(m[0]+1)/18,this.rspace=(m[1]+1)/18}}},e.prototype.getForms=function(){for(var t=this,e=this.parent,n=this.Parent;n&&n.isEmbellished;)t=e,e=n.parent,n=n.Parent;if(e&&e.isKind("mrow")&&1!==e.nonSpaceLength()){if(e.firstNonSpace()===t)return["prefix","infix","postfix"];if(e.lastNonSpace()===t)return["postfix","infix","prefix"]}return["infix","prefix","postfix"]},e.prototype.handleExplicitForm=function(t){if(this.attributes.isSet("form")){var e=this.attributes.get("form");t=[e].concat(t.filter((function(t){return t!==e})))}return t},e.prototype.checkPseudoScripts=function(t){var e=this.constructor.pseudoScripts;if(t.match(e)){var n=this.coreParent().Parent,r=!n||!(n.isKind("msubsup")&&!n.isKind("msub"));this.setProperty("pseudoscript",r),r&&(this.attributes.setInherited("lspace",0),this.attributes.setInherited("rspace",0))}},e.prototype.checkPrimes=function(t){var e=this.constructor.primes;if(t.match(e)){var n=this.constructor.remapPrimes,r=(0,Q.unicodeString)((0,Q.unicodeChars)(t).map((function(t){return n[t]})));this.setProperty("primes",r)}},e.prototype.checkMathAccent=function(t){var e=this.Parent;if(void 0===this.getProperty("mathaccent")&&e&&e.isKind("munderover")){var n=e.childNodes[0];if(!n.isEmbellished||n.coreMO()!==this){var r=this.constructor.mathaccents;t.match(r)&&this.setProperty("mathaccent",!0)}}},e.defaults=o(o({},l.AbstractMmlTokenNode.defaults),{form:"infix",fence:!1,separator:!1,lspace:"thickmathspace",rspace:"thickmathspace",stretchy:!1,symmetric:!1,maxsize:"infinity",minsize:"0em",largeop:!1,movablelimits:!1,accent:!1,linebreak:"auto",lineleading:"1ex",linebreakstyle:"before",indentalign:"auto",indentshift:"0",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),e.MMLSPACING=T.MMLSPACING,e.OPTABLE=T.OPTABLE,e.pseudoScripts=new RegExp(["^[\"'*`","ª","°","²-´","¹","º","‘-‟","′-‷⁗","⁰ⁱ","⁴-ⁿ","₀-₎","]+$"].join("")),e.primes=new RegExp(["^[\"'`","‘-‟","]+$"].join("")),e.remapPrimes={34:8243,39:8242,96:8245,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},e.mathaccents=new RegExp(["^[","´́ˊ","`̀ˋ","¨̈","~̃˜","¯̄ˉ","˘̆","ˇ̌","^̂ˆ","→⃗","˙̇","˚̊","⃛","⃜","]$"].join("")),e}(l.AbstractMmlTokenNode);e.MmlMo=c},900:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlInferredMrow=e.MmlMrow=void 0;var s=n(747),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._core=null,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mrow"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSpacelike",{get:function(){var t,e;try{for(var n=a(this.childNodes),r=n.next();!r.done;r=n.next()){if(!r.value.isSpacelike)return!1}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmbellished",{get:function(){var t,e,n=!1,r=0;try{for(var i=a(this.childNodes),o=i.next();!o.done;o=i.next()){var s=o.value;if(s)if(s.isEmbellished){if(n)return!1;n=!0,this._core=r}else if(!s.isSpacelike)return!1;r++}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return n},enumerable:!1,configurable:!0}),e.prototype.core=function(){return this.isEmbellished&&null!=this._core?this.childNodes[this._core]:this},e.prototype.coreMO=function(){return this.isEmbellished&&null!=this._core?this.childNodes[this._core].coreMO():this},e.prototype.nonSpaceLength=function(){var t,e,n=0;try{for(var r=a(this.childNodes),i=r.next();!i.done;i=r.next()){var o=i.value;o&&!o.isSpacelike&&n++}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return n},e.prototype.firstNonSpace=function(){var t,e;try{for(var n=a(this.childNodes),r=n.next();!r.done;r=n.next()){var i=r.value;if(i&&!i.isSpacelike)return i}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return null},e.prototype.lastNonSpace=function(){for(var t=this.childNodes.length;--t>=0;){var e=this.childNodes[t];if(e&&!e.isSpacelike)return e}return null},e.prototype.setTeXclass=function(t){var e,n,r,i;if(null!=this.getProperty("open")||null!=this.getProperty("close")){this.getPrevClass(t),t=null;try{for(var o=a(this.childNodes),l=o.next();!l.done;l=o.next()){t=l.value.setTeXclass(t)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}null==this.texClass&&(this.texClass=s.TEXCLASS.INNER)}else{try{for(var T=a(this.childNodes),Q=T.next();!Q.done;Q=T.next()){t=Q.value.setTeXclass(t)}}catch(t){r={error:t}}finally{try{Q&&!Q.done&&(i=T.return)&&i.call(T)}finally{if(r)throw r.error}}this.childNodes[0]&&this.updateTeXclass(this.childNodes[0])}return t},e.defaults=o({},s.AbstractMmlNode.defaults),e}(s.AbstractMmlNode);e.MmlMrow=l;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"inferredMrow"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInferred",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"["+this.childNodes.join(",")+"]"},e.defaults=l.defaults,e}(l);e.MmlInferredMrow=T},8313:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtable=void 0;var s=n(747),l=n(1278),T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.properties={useHeight:!0},e.texclass=s.TEXCLASS.ORD,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mtable"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.setInheritedAttributes=function(e,n,r,i){var o,l;try{for(var T=a(s.indentAttributes),Q=T.next();!Q.done;Q=T.next()){var c=Q.value;e[c]&&this.attributes.setInherited(c,e[c][1]),void 0!==this.attributes.getExplicit(c)&&delete this.attributes.getAllAttributes()[c]}}catch(t){o={error:t}}finally{try{Q&&!Q.done&&(l=T.return)&&l.call(T)}finally{if(o)throw o.error}}t.prototype.setInheritedAttributes.call(this,e,n,r,i)},e.prototype.setChildInheritedAttributes=function(t,e,n,r){var i,o,s,T;try{for(var Q=a(this.childNodes),c=Q.next();!c.done;c=Q.next()){(m=c.value).isKind("mtr")||this.replaceChild(this.factory.create("mtr"),m).appendChild(m)}}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=Q.return)&&o.call(Q)}finally{if(i)throw i.error}}n=this.getProperty("scriptlevel")||n,e=!(!this.attributes.getExplicit("displaystyle")&&!this.attributes.getDefault("displaystyle")),t=this.addInheritedAttributes(t,{columnalign:this.attributes.get("columnalign"),rowalign:"center"});var u=this.attributes.getExplicit("data-cramped"),d=(0,l.split)(this.attributes.get("rowalign"));try{for(var h=a(this.childNodes),p=h.next();!p.done;p=h.next()){var m=p.value;t.rowalign[1]=d.shift()||t.rowalign[1],m.setInheritedAttributes(t,e,n,!!u)}}catch(t){s={error:t}}finally{try{p&&!p.done&&(T=h.return)&&T.call(h)}finally{if(s)throw s.error}}},e.prototype.verifyChildren=function(e){for(var n=null,r=this.factory,i=0;i=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMlabeledtr=e.MmlMtr=void 0;var s=n(747),l=n(8128),T=n(1278),Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mtr"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.setChildInheritedAttributes=function(t,e,n,r){var i,o,s,l;try{for(var Q=a(this.childNodes),c=Q.next();!c.done;c=Q.next()){(p=c.value).isKind("mtd")||this.replaceChild(this.factory.create("mtd"),p).appendChild(p)}}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=Q.return)&&o.call(Q)}finally{if(i)throw i.error}}var u=(0,T.split)(this.attributes.get("columnalign"));1===this.arity&&u.unshift(this.parent.attributes.get("side")),t=this.addInheritedAttributes(t,{rowalign:this.attributes.get("rowalign"),columnalign:"center"});try{for(var d=a(this.childNodes),h=d.next();!h.done;h=d.next()){var p=h.value;t.columnalign[1]=u.shift()||t.columnalign[1],p.setInheritedAttributes(t,e,n,r)}}catch(t){s={error:t}}finally{try{h&&!h.done&&(l=d.return)&&l.call(d)}finally{if(s)throw s.error}}},e.prototype.verifyChildren=function(e){var n,r;if(!this.parent||this.parent.isKind("mtable")){try{for(var i=a(this.childNodes),o=i.next();!o.done;o=i.next()){var s=o.value;if(!s.isKind("mtd"))this.replaceChild(this.factory.create("mtd"),s).appendChild(s),e.fixMtables||s.mError("Children of "+this.kind+" must be mtd",e)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.prototype.verifyChildren.call(this,e)}else this.mError(this.kind+" can only be a child of an mtable",e,!0)},e.prototype.setTeXclass=function(t){var e,n;this.getPrevClass(t);try{for(var r=a(this.childNodes),i=r.next();!i.done;i=r.next()){i.value.setTeXclass(null)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return this},e.defaults=o(o({},s.AbstractMmlNode.defaults),{rowalign:l.INHERIT,columnalign:l.INHERIT,groupalign:l.INHERIT}),e}(s.AbstractMmlNode);e.MmlMtr=Q;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mlabeledtr"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(Q);e.MmlMlabeledtr=c},6072:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.OPTABLE=e.MMLSPACING=e.getRange=e.RANGES=e.MO=e.OPDEF=void 0;var i=n(747);function o(t,e,n,r){return void 0===n&&(n=i.TEXCLASS.BIN),void 0===r&&(r=null),[t,e,n,r]}e.OPDEF=o,e.MO={ORD:o(0,0,i.TEXCLASS.ORD),ORD11:o(1,1,i.TEXCLASS.ORD),ORD21:o(2,1,i.TEXCLASS.ORD),ORD02:o(0,2,i.TEXCLASS.ORD),ORD55:o(5,5,i.TEXCLASS.ORD),NONE:o(0,0,i.TEXCLASS.NONE),OP:o(1,2,i.TEXCLASS.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),OPFIXED:o(1,2,i.TEXCLASS.OP,{largeop:!0,movablelimits:!0}),INTEGRAL:o(0,1,i.TEXCLASS.OP,{largeop:!0,symmetric:!0}),INTEGRAL2:o(1,2,i.TEXCLASS.OP,{largeop:!0,symmetric:!0}),BIN3:o(3,3,i.TEXCLASS.BIN),BIN4:o(4,4,i.TEXCLASS.BIN),BIN01:o(0,1,i.TEXCLASS.BIN),BIN5:o(5,5,i.TEXCLASS.BIN),TALLBIN:o(4,4,i.TEXCLASS.BIN,{stretchy:!0}),BINOP:o(4,4,i.TEXCLASS.BIN,{largeop:!0,movablelimits:!0}),REL:o(5,5,i.TEXCLASS.REL),REL1:o(1,1,i.TEXCLASS.REL,{stretchy:!0}),REL4:o(4,4,i.TEXCLASS.REL),RELSTRETCH:o(5,5,i.TEXCLASS.REL,{stretchy:!0}),RELACCENT:o(5,5,i.TEXCLASS.REL,{accent:!0}),WIDEREL:o(5,5,i.TEXCLASS.REL,{accent:!0,stretchy:!0}),OPEN:o(0,0,i.TEXCLASS.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:o(0,0,i.TEXCLASS.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INNER:o(0,0,i.TEXCLASS.INNER),PUNCT:o(0,3,i.TEXCLASS.PUNCT),ACCENT:o(0,0,i.TEXCLASS.ORD,{accent:!0}),WIDEACCENT:o(0,0,i.TEXCLASS.ORD,{accent:!0,stretchy:!0})},e.RANGES=[[32,127,i.TEXCLASS.REL,"mo"],[160,191,i.TEXCLASS.ORD,"mo"],[192,591,i.TEXCLASS.ORD,"mi"],[688,879,i.TEXCLASS.ORD,"mo"],[880,6688,i.TEXCLASS.ORD,"mi"],[6832,6911,i.TEXCLASS.ORD,"mo"],[6912,7615,i.TEXCLASS.ORD,"mi"],[7616,7679,i.TEXCLASS.ORD,"mo"],[7680,8191,i.TEXCLASS.ORD,"mi"],[8192,8303,i.TEXCLASS.ORD,"mo"],[8304,8351,i.TEXCLASS.ORD,"mo"],[8448,8527,i.TEXCLASS.ORD,"mi"],[8528,8591,i.TEXCLASS.ORD,"mn"],[8592,8703,i.TEXCLASS.REL,"mo"],[8704,8959,i.TEXCLASS.BIN,"mo"],[8960,9215,i.TEXCLASS.ORD,"mo"],[9312,9471,i.TEXCLASS.ORD,"mn"],[9472,10223,i.TEXCLASS.ORD,"mo"],[10224,10239,i.TEXCLASS.REL,"mo"],[10240,10495,i.TEXCLASS.ORD,"mtext"],[10496,10623,i.TEXCLASS.REL,"mo"],[10624,10751,i.TEXCLASS.ORD,"mo"],[10752,11007,i.TEXCLASS.BIN,"mo"],[11008,11055,i.TEXCLASS.ORD,"mo"],[11056,11087,i.TEXCLASS.REL,"mo"],[11088,11263,i.TEXCLASS.ORD,"mo"],[11264,11744,i.TEXCLASS.ORD,"mi"],[11776,11903,i.TEXCLASS.ORD,"mo"],[11904,12255,i.TEXCLASS.ORD,"mi","normal"],[12272,12351,i.TEXCLASS.ORD,"mo"],[12352,42143,i.TEXCLASS.ORD,"mi","normal"],[42192,43055,i.TEXCLASS.ORD,"mi"],[43056,43071,i.TEXCLASS.ORD,"mn"],[43072,55295,i.TEXCLASS.ORD,"mi"],[63744,64255,i.TEXCLASS.ORD,"mi","normal"],[64256,65023,i.TEXCLASS.ORD,"mi"],[65024,65135,i.TEXCLASS.ORD,"mo"],[65136,65791,i.TEXCLASS.ORD,"mi"],[65792,65935,i.TEXCLASS.ORD,"mn"],[65936,74751,i.TEXCLASS.ORD,"mi","normal"],[74752,74879,i.TEXCLASS.ORD,"mn"],[74880,113823,i.TEXCLASS.ORD,"mi","normal"],[113824,119391,i.TEXCLASS.ORD,"mo"],[119648,119679,i.TEXCLASS.ORD,"mn"],[119808,120781,i.TEXCLASS.ORD,"mi"],[120782,120831,i.TEXCLASS.ORD,"mn"],[122624,129023,i.TEXCLASS.ORD,"mo"],[129024,129279,i.TEXCLASS.REL,"mo"],[129280,129535,i.TEXCLASS.ORD,"mo"],[131072,195103,i.TEXCLASS.ORD,"mi","normnal"]],e.getRange=function(t){var n,i,o=t.codePointAt(0);try{for(var a=r(e.RANGES),s=a.next();!s.done;s=a.next()){var l=s.value;if(o<=l[1]){if(o>=l[0])return l;break}}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return null},e.MMLSPACING=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]],e.OPTABLE={prefix:{"(":e.MO.OPEN,"+":e.MO.BIN01,"-":e.MO.BIN01,"[":e.MO.OPEN,"{":e.MO.OPEN,"|":e.MO.OPEN,"||":[0,0,i.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,i.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¬":e.MO.ORD21,"±":e.MO.BIN01,"‖":[0,0,i.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"‘":[0,0,i.TEXCLASS.OPEN,{fence:!0}],"“":[0,0,i.TEXCLASS.OPEN,{fence:!0}],ⅅ:e.MO.ORD21,ⅆ:o(2,0,i.TEXCLASS.ORD),"∀":e.MO.ORD21,"∂":e.MO.ORD21,"∃":e.MO.ORD21,"∄":e.MO.ORD21,"∇":e.MO.ORD21,"∏":e.MO.OP,"∐":e.MO.OP,"∑":e.MO.OP,"−":e.MO.BIN01,"∓":e.MO.BIN01,"√":[1,1,i.TEXCLASS.ORD,{stretchy:!0}],"∛":e.MO.ORD11,"∜":e.MO.ORD11,"∠":e.MO.ORD,"∡":e.MO.ORD,"∢":e.MO.ORD,"∫":e.MO.INTEGRAL,"∬":e.MO.INTEGRAL,"∭":e.MO.INTEGRAL,"∮":e.MO.INTEGRAL,"∯":e.MO.INTEGRAL,"∰":e.MO.INTEGRAL,"∱":e.MO.INTEGRAL,"∲":e.MO.INTEGRAL,"∳":e.MO.INTEGRAL,"⋀":e.MO.OP,"⋁":e.MO.OP,"⋂":e.MO.OP,"⋃":e.MO.OP,"⌈":e.MO.OPEN,"⌊":e.MO.OPEN,"〈":e.MO.OPEN,"❲":e.MO.OPEN,"⟦":e.MO.OPEN,"⟨":e.MO.OPEN,"⟪":e.MO.OPEN,"⟬":e.MO.OPEN,"⟮":e.MO.OPEN,"⦀":[0,0,i.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦃":e.MO.OPEN,"⦅":e.MO.OPEN,"⦇":e.MO.OPEN,"⦉":e.MO.OPEN,"⦋":e.MO.OPEN,"⦍":e.MO.OPEN,"⦏":e.MO.OPEN,"⦑":e.MO.OPEN,"⦓":e.MO.OPEN,"⦕":e.MO.OPEN,"⦗":e.MO.OPEN,"⧼":e.MO.OPEN,"⨀":e.MO.OP,"⨁":e.MO.OP,"⨂":e.MO.OP,"⨃":e.MO.OP,"⨄":e.MO.OP,"⨅":e.MO.OP,"⨆":e.MO.OP,"⨇":e.MO.OP,"⨈":e.MO.OP,"⨉":e.MO.OP,"⨊":e.MO.OP,"⨋":e.MO.INTEGRAL2,"⨌":e.MO.INTEGRAL,"⨍":e.MO.INTEGRAL2,"⨎":e.MO.INTEGRAL2,"⨏":e.MO.INTEGRAL2,"⨐":e.MO.OP,"⨑":e.MO.OP,"⨒":e.MO.OP,"⨓":e.MO.OP,"⨔":e.MO.OP,"⨕":e.MO.INTEGRAL2,"⨖":e.MO.INTEGRAL2,"⨗":e.MO.INTEGRAL2,"⨘":e.MO.INTEGRAL2,"⨙":e.MO.INTEGRAL2,"⨚":e.MO.INTEGRAL2,"⨛":e.MO.INTEGRAL2,"⨜":e.MO.INTEGRAL2,"⫼":e.MO.OP,"⫿":e.MO.OP},postfix:{"!!":o(1,0),"!":[1,0,i.TEXCLASS.CLOSE,null],'"':e.MO.ACCENT,"&":e.MO.ORD,")":e.MO.CLOSE,"++":o(0,0),"--":o(0,0),"..":o(0,0),"...":e.MO.ORD,"'":e.MO.ACCENT,"]":e.MO.CLOSE,"^":e.MO.WIDEACCENT,_:e.MO.WIDEACCENT,"`":e.MO.ACCENT,"|":e.MO.CLOSE,"}":e.MO.CLOSE,"~":e.MO.WIDEACCENT,"||":[0,0,i.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,i.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¨":e.MO.ACCENT,ª:e.MO.ACCENT,"¯":e.MO.WIDEACCENT,"°":e.MO.ORD,"²":e.MO.ACCENT,"³":e.MO.ACCENT,"´":e.MO.ACCENT,"¸":e.MO.ACCENT,"¹":e.MO.ACCENT,º:e.MO.ACCENT,ˆ:e.MO.WIDEACCENT,ˇ:e.MO.WIDEACCENT,ˉ:e.MO.WIDEACCENT,ˊ:e.MO.ACCENT,ˋ:e.MO.ACCENT,ˍ:e.MO.WIDEACCENT,"˘":e.MO.ACCENT,"˙":e.MO.ACCENT,"˚":e.MO.ACCENT,"˜":e.MO.WIDEACCENT,"˝":e.MO.ACCENT,"˷":e.MO.WIDEACCENT,"̂":e.MO.WIDEACCENT,"̑":e.MO.ACCENT,"϶":e.MO.REL,"‖":[0,0,i.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"’":[0,0,i.TEXCLASS.CLOSE,{fence:!0}],"‚":e.MO.ACCENT,"‛":e.MO.ACCENT,"”":[0,0,i.TEXCLASS.CLOSE,{fence:!0}],"„":e.MO.ACCENT,"‟":e.MO.ACCENT,"′":e.MO.ORD,"″":e.MO.ACCENT,"‴":e.MO.ACCENT,"‵":e.MO.ACCENT,"‶":e.MO.ACCENT,"‷":e.MO.ACCENT,"‾":e.MO.WIDEACCENT,"⁗":e.MO.ACCENT,"⃛":e.MO.ACCENT,"⃜":e.MO.ACCENT,"⌉":e.MO.CLOSE,"⌋":e.MO.CLOSE,"〉":e.MO.CLOSE,"⎴":e.MO.WIDEACCENT,"⎵":e.MO.WIDEACCENT,"⏜":e.MO.WIDEACCENT,"⏝":e.MO.WIDEACCENT,"⏞":e.MO.WIDEACCENT,"⏟":e.MO.WIDEACCENT,"⏠":e.MO.WIDEACCENT,"⏡":e.MO.WIDEACCENT,"■":e.MO.BIN3,"□":e.MO.BIN3,"▪":e.MO.BIN3,"▫":e.MO.BIN3,"▭":e.MO.BIN3,"▮":e.MO.BIN3,"▯":e.MO.BIN3,"▰":e.MO.BIN3,"▱":e.MO.BIN3,"▲":e.MO.BIN4,"▴":e.MO.BIN4,"▶":e.MO.BIN4,"▷":e.MO.BIN4,"▸":e.MO.BIN4,"▼":e.MO.BIN4,"▾":e.MO.BIN4,"◀":e.MO.BIN4,"◁":e.MO.BIN4,"◂":e.MO.BIN4,"◄":e.MO.BIN4,"◅":e.MO.BIN4,"◆":e.MO.BIN4,"◇":e.MO.BIN4,"◈":e.MO.BIN4,"◉":e.MO.BIN4,"◌":e.MO.BIN4,"◍":e.MO.BIN4,"◎":e.MO.BIN4,"●":e.MO.BIN4,"◖":e.MO.BIN4,"◗":e.MO.BIN4,"◦":e.MO.BIN4,"♭":e.MO.ORD02,"♮":e.MO.ORD02,"♯":e.MO.ORD02,"❳":e.MO.CLOSE,"⟧":e.MO.CLOSE,"⟩":e.MO.CLOSE,"⟫":e.MO.CLOSE,"⟭":e.MO.CLOSE,"⟯":e.MO.CLOSE,"⦀":[0,0,i.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦄":e.MO.CLOSE,"⦆":e.MO.CLOSE,"⦈":e.MO.CLOSE,"⦊":e.MO.CLOSE,"⦌":e.MO.CLOSE,"⦎":e.MO.CLOSE,"⦐":e.MO.CLOSE,"⦒":e.MO.CLOSE,"⦔":e.MO.CLOSE,"⦖":e.MO.CLOSE,"⦘":e.MO.CLOSE,"⧽":e.MO.CLOSE},infix:{"!=":e.MO.BIN4,"#":e.MO.ORD,$:e.MO.ORD,"%":[3,3,i.TEXCLASS.ORD,null],"&&":e.MO.BIN4,"":e.MO.ORD,"*":e.MO.BIN3,"**":o(1,1),"*=":e.MO.BIN4,"+":e.MO.BIN4,"+=":e.MO.BIN4,",":[0,3,i.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"-":e.MO.BIN4,"-=":e.MO.BIN4,"->":e.MO.BIN5,".":[0,3,i.TEXCLASS.PUNCT,{separator:!0}],"/":e.MO.ORD11,"//":o(1,1),"/=":e.MO.BIN4,":":[1,2,i.TEXCLASS.REL,null],":=":e.MO.BIN4,";":[0,3,i.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"<":e.MO.REL,"<=":e.MO.BIN5,"<>":o(1,1),"=":e.MO.REL,"==":e.MO.BIN4,">":e.MO.REL,">=":e.MO.BIN5,"?":[1,1,i.TEXCLASS.CLOSE,null],"@":e.MO.ORD11,"\\":e.MO.ORD,"^":e.MO.ORD11,_:e.MO.ORD11,"|":[2,2,i.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"||":[2,2,i.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[2,2,i.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"±":e.MO.BIN4,"·":e.MO.BIN4,"×":e.MO.BIN4,"÷":e.MO.BIN4,ʹ:e.MO.ORD,"̀":e.MO.ACCENT,"́":e.MO.ACCENT,"̃":e.MO.WIDEACCENT,"̄":e.MO.ACCENT,"̆":e.MO.ACCENT,"̇":e.MO.ACCENT,"̈":e.MO.ACCENT,"̌":e.MO.ACCENT,"̲":e.MO.WIDEACCENT,"̸":e.MO.REL4,"―":[0,0,i.TEXCLASS.ORD,{stretchy:!0}],"‗":[0,0,i.TEXCLASS.ORD,{stretchy:!0}],"†":e.MO.BIN3,"‡":e.MO.BIN3,"•":e.MO.BIN4,"…":e.MO.INNER,"⁃":e.MO.BIN4,"⁄":e.MO.TALLBIN,"":e.MO.NONE,"":e.MO.NONE,"":[0,0,i.TEXCLASS.NONE,{linebreakstyle:"after",separator:!0}],"":e.MO.NONE,"⃗":e.MO.ACCENT,ℑ:e.MO.ORD,ℓ:e.MO.ORD,℘:e.MO.ORD,ℜ:e.MO.ORD,"←":e.MO.WIDEREL,"↑":e.MO.RELSTRETCH,"→":e.MO.WIDEREL,"↓":e.MO.RELSTRETCH,"↔":e.MO.WIDEREL,"↕":e.MO.RELSTRETCH,"↖":e.MO.RELSTRETCH,"↗":e.MO.RELSTRETCH,"↘":e.MO.RELSTRETCH,"↙":e.MO.RELSTRETCH,"↚":e.MO.RELACCENT,"↛":e.MO.RELACCENT,"↜":e.MO.WIDEREL,"↝":e.MO.WIDEREL,"↞":e.MO.WIDEREL,"↟":e.MO.WIDEREL,"↠":e.MO.WIDEREL,"↡":e.MO.RELSTRETCH,"↢":e.MO.WIDEREL,"↣":e.MO.WIDEREL,"↤":e.MO.WIDEREL,"↥":e.MO.RELSTRETCH,"↦":e.MO.WIDEREL,"↧":e.MO.RELSTRETCH,"↨":e.MO.RELSTRETCH,"↩":e.MO.WIDEREL,"↪":e.MO.WIDEREL,"↫":e.MO.WIDEREL,"↬":e.MO.WIDEREL,"↭":e.MO.WIDEREL,"↮":e.MO.RELACCENT,"↯":e.MO.RELSTRETCH,"↰":e.MO.RELSTRETCH,"↱":e.MO.RELSTRETCH,"↲":e.MO.RELSTRETCH,"↳":e.MO.RELSTRETCH,"↴":e.MO.RELSTRETCH,"↵":e.MO.RELSTRETCH,"↶":e.MO.RELACCENT,"↷":e.MO.RELACCENT,"↸":e.MO.REL,"↹":e.MO.WIDEREL,"↺":e.MO.REL,"↻":e.MO.REL,"↼":e.MO.WIDEREL,"↽":e.MO.WIDEREL,"↾":e.MO.RELSTRETCH,"↿":e.MO.RELSTRETCH,"⇀":e.MO.WIDEREL,"⇁":e.MO.WIDEREL,"⇂":e.MO.RELSTRETCH,"⇃":e.MO.RELSTRETCH,"⇄":e.MO.WIDEREL,"⇅":e.MO.RELSTRETCH,"⇆":e.MO.WIDEREL,"⇇":e.MO.WIDEREL,"⇈":e.MO.RELSTRETCH,"⇉":e.MO.WIDEREL,"⇊":e.MO.RELSTRETCH,"⇋":e.MO.WIDEREL,"⇌":e.MO.WIDEREL,"⇍":e.MO.RELACCENT,"⇎":e.MO.RELACCENT,"⇏":e.MO.RELACCENT,"⇐":e.MO.WIDEREL,"⇑":e.MO.RELSTRETCH,"⇒":e.MO.WIDEREL,"⇓":e.MO.RELSTRETCH,"⇔":e.MO.WIDEREL,"⇕":e.MO.RELSTRETCH,"⇖":e.MO.RELSTRETCH,"⇗":e.MO.RELSTRETCH,"⇘":e.MO.RELSTRETCH,"⇙":e.MO.RELSTRETCH,"⇚":e.MO.WIDEREL,"⇛":e.MO.WIDEREL,"⇜":e.MO.WIDEREL,"⇝":e.MO.WIDEREL,"⇞":e.MO.REL,"⇟":e.MO.REL,"⇠":e.MO.WIDEREL,"⇡":e.MO.RELSTRETCH,"⇢":e.MO.WIDEREL,"⇣":e.MO.RELSTRETCH,"⇤":e.MO.WIDEREL,"⇥":e.MO.WIDEREL,"⇦":e.MO.WIDEREL,"⇧":e.MO.RELSTRETCH,"⇨":e.MO.WIDEREL,"⇩":e.MO.RELSTRETCH,"⇪":e.MO.RELSTRETCH,"⇫":e.MO.RELSTRETCH,"⇬":e.MO.RELSTRETCH,"⇭":e.MO.RELSTRETCH,"⇮":e.MO.RELSTRETCH,"⇯":e.MO.RELSTRETCH,"⇰":e.MO.WIDEREL,"⇱":e.MO.REL,"⇲":e.MO.REL,"⇳":e.MO.RELSTRETCH,"⇴":e.MO.RELACCENT,"⇵":e.MO.RELSTRETCH,"⇶":e.MO.WIDEREL,"⇷":e.MO.RELACCENT,"⇸":e.MO.RELACCENT,"⇹":e.MO.RELACCENT,"⇺":e.MO.RELACCENT,"⇻":e.MO.RELACCENT,"⇼":e.MO.RELACCENT,"⇽":e.MO.WIDEREL,"⇾":e.MO.WIDEREL,"⇿":e.MO.WIDEREL,"∁":o(1,2,i.TEXCLASS.ORD),"∅":e.MO.ORD,"∆":e.MO.BIN3,"∈":e.MO.REL,"∉":e.MO.REL,"∊":e.MO.REL,"∋":e.MO.REL,"∌":e.MO.REL,"∍":e.MO.REL,"∎":e.MO.BIN3,"−":e.MO.BIN4,"∓":e.MO.BIN4,"∔":e.MO.BIN4,"∕":e.MO.TALLBIN,"∖":e.MO.BIN4,"∗":e.MO.BIN4,"∘":e.MO.BIN4,"∙":e.MO.BIN4,"∝":e.MO.REL,"∞":e.MO.ORD,"∟":e.MO.REL,"∣":e.MO.REL,"∤":e.MO.REL,"∥":e.MO.REL,"∦":e.MO.REL,"∧":e.MO.BIN4,"∨":e.MO.BIN4,"∩":e.MO.BIN4,"∪":e.MO.BIN4,"∴":e.MO.REL,"∵":e.MO.REL,"∶":e.MO.REL,"∷":e.MO.REL,"∸":e.MO.BIN4,"∹":e.MO.REL,"∺":e.MO.BIN4,"∻":e.MO.REL,"∼":e.MO.REL,"∽":e.MO.REL,"∽̱":e.MO.BIN3,"∾":e.MO.REL,"∿":e.MO.BIN3,"≀":e.MO.BIN4,"≁":e.MO.REL,"≂":e.MO.REL,"≂̸":e.MO.REL,"≃":e.MO.REL,"≄":e.MO.REL,"≅":e.MO.REL,"≆":e.MO.REL,"≇":e.MO.REL,"≈":e.MO.REL,"≉":e.MO.REL,"≊":e.MO.REL,"≋":e.MO.REL,"≌":e.MO.REL,"≍":e.MO.REL,"≎":e.MO.REL,"≎̸":e.MO.REL,"≏":e.MO.REL,"≏̸":e.MO.REL,"≐":e.MO.REL,"≑":e.MO.REL,"≒":e.MO.REL,"≓":e.MO.REL,"≔":e.MO.REL,"≕":e.MO.REL,"≖":e.MO.REL,"≗":e.MO.REL,"≘":e.MO.REL,"≙":e.MO.REL,"≚":e.MO.REL,"≛":e.MO.REL,"≜":e.MO.REL,"≝":e.MO.REL,"≞":e.MO.REL,"≟":e.MO.REL,"≠":e.MO.REL,"≡":e.MO.REL,"≢":e.MO.REL,"≣":e.MO.REL,"≤":e.MO.REL,"≥":e.MO.REL,"≦":e.MO.REL,"≦̸":e.MO.REL,"≧":e.MO.REL,"≨":e.MO.REL,"≩":e.MO.REL,"≪":e.MO.REL,"≪̸":e.MO.REL,"≫":e.MO.REL,"≫̸":e.MO.REL,"≬":e.MO.REL,"≭":e.MO.REL,"≮":e.MO.REL,"≯":e.MO.REL,"≰":e.MO.REL,"≱":e.MO.REL,"≲":e.MO.REL,"≳":e.MO.REL,"≴":e.MO.REL,"≵":e.MO.REL,"≶":e.MO.REL,"≷":e.MO.REL,"≸":e.MO.REL,"≹":e.MO.REL,"≺":e.MO.REL,"≻":e.MO.REL,"≼":e.MO.REL,"≽":e.MO.REL,"≾":e.MO.REL,"≿":e.MO.REL,"≿̸":e.MO.REL,"⊀":e.MO.REL,"⊁":e.MO.REL,"⊂":e.MO.REL,"⊂⃒":e.MO.REL,"⊃":e.MO.REL,"⊃⃒":e.MO.REL,"⊄":e.MO.REL,"⊅":e.MO.REL,"⊆":e.MO.REL,"⊇":e.MO.REL,"⊈":e.MO.REL,"⊉":e.MO.REL,"⊊":e.MO.REL,"⊋":e.MO.REL,"⊌":e.MO.BIN4,"⊍":e.MO.BIN4,"⊎":e.MO.BIN4,"⊏":e.MO.REL,"⊏̸":e.MO.REL,"⊐":e.MO.REL,"⊐̸":e.MO.REL,"⊑":e.MO.REL,"⊒":e.MO.REL,"⊓":e.MO.BIN4,"⊔":e.MO.BIN4,"⊕":e.MO.BIN4,"⊖":e.MO.BIN4,"⊗":e.MO.BIN4,"⊘":e.MO.BIN4,"⊙":e.MO.BIN4,"⊚":e.MO.BIN4,"⊛":e.MO.BIN4,"⊜":e.MO.BIN4,"⊝":e.MO.BIN4,"⊞":e.MO.BIN4,"⊟":e.MO.BIN4,"⊠":e.MO.BIN4,"⊡":e.MO.BIN4,"⊢":e.MO.REL,"⊣":e.MO.REL,"⊤":e.MO.ORD55,"⊥":e.MO.REL,"⊦":e.MO.REL,"⊧":e.MO.REL,"⊨":e.MO.REL,"⊩":e.MO.REL,"⊪":e.MO.REL,"⊫":e.MO.REL,"⊬":e.MO.REL,"⊭":e.MO.REL,"⊮":e.MO.REL,"⊯":e.MO.REL,"⊰":e.MO.REL,"⊱":e.MO.REL,"⊲":e.MO.REL,"⊳":e.MO.REL,"⊴":e.MO.REL,"⊵":e.MO.REL,"⊶":e.MO.REL,"⊷":e.MO.REL,"⊸":e.MO.REL,"⊹":e.MO.REL,"⊺":e.MO.BIN4,"⊻":e.MO.BIN4,"⊼":e.MO.BIN4,"⊽":e.MO.BIN4,"⊾":e.MO.BIN3,"⊿":e.MO.BIN3,"⋄":e.MO.BIN4,"⋅":e.MO.BIN4,"⋆":e.MO.BIN4,"⋇":e.MO.BIN4,"⋈":e.MO.REL,"⋉":e.MO.BIN4,"⋊":e.MO.BIN4,"⋋":e.MO.BIN4,"⋌":e.MO.BIN4,"⋍":e.MO.REL,"⋎":e.MO.BIN4,"⋏":e.MO.BIN4,"⋐":e.MO.REL,"⋑":e.MO.REL,"⋒":e.MO.BIN4,"⋓":e.MO.BIN4,"⋔":e.MO.REL,"⋕":e.MO.REL,"⋖":e.MO.REL,"⋗":e.MO.REL,"⋘":e.MO.REL,"⋙":e.MO.REL,"⋚":e.MO.REL,"⋛":e.MO.REL,"⋜":e.MO.REL,"⋝":e.MO.REL,"⋞":e.MO.REL,"⋟":e.MO.REL,"⋠":e.MO.REL,"⋡":e.MO.REL,"⋢":e.MO.REL,"⋣":e.MO.REL,"⋤":e.MO.REL,"⋥":e.MO.REL,"⋦":e.MO.REL,"⋧":e.MO.REL,"⋨":e.MO.REL,"⋩":e.MO.REL,"⋪":e.MO.REL,"⋫":e.MO.REL,"⋬":e.MO.REL,"⋭":e.MO.REL,"⋮":e.MO.ORD55,"⋯":e.MO.INNER,"⋰":e.MO.REL,"⋱":[5,5,i.TEXCLASS.INNER,null],"⋲":e.MO.REL,"⋳":e.MO.REL,"⋴":e.MO.REL,"⋵":e.MO.REL,"⋶":e.MO.REL,"⋷":e.MO.REL,"⋸":e.MO.REL,"⋹":e.MO.REL,"⋺":e.MO.REL,"⋻":e.MO.REL,"⋼":e.MO.REL,"⋽":e.MO.REL,"⋾":e.MO.REL,"⋿":e.MO.REL,"⌅":e.MO.BIN3,"⌆":e.MO.BIN3,"⌢":e.MO.REL4,"⌣":e.MO.REL4,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"⎪":e.MO.ORD,"⎯":[0,0,i.TEXCLASS.ORD,{stretchy:!0}],"⎰":e.MO.OPEN,"⎱":e.MO.CLOSE,"─":e.MO.ORD,"△":e.MO.BIN4,"▵":e.MO.BIN4,"▹":e.MO.BIN4,"▽":e.MO.BIN4,"▿":e.MO.BIN4,"◃":e.MO.BIN4,"◯":e.MO.BIN3,"♠":e.MO.ORD,"♡":e.MO.ORD,"♢":e.MO.ORD,"♣":e.MO.ORD,"❘":e.MO.REL,"⟰":e.MO.RELSTRETCH,"⟱":e.MO.RELSTRETCH,"⟵":e.MO.WIDEREL,"⟶":e.MO.WIDEREL,"⟷":e.MO.WIDEREL,"⟸":e.MO.WIDEREL,"⟹":e.MO.WIDEREL,"⟺":e.MO.WIDEREL,"⟻":e.MO.WIDEREL,"⟼":e.MO.WIDEREL,"⟽":e.MO.WIDEREL,"⟾":e.MO.WIDEREL,"⟿":e.MO.WIDEREL,"⤀":e.MO.RELACCENT,"⤁":e.MO.RELACCENT,"⤂":e.MO.RELACCENT,"⤃":e.MO.RELACCENT,"⤄":e.MO.RELACCENT,"⤅":e.MO.RELACCENT,"⤆":e.MO.RELACCENT,"⤇":e.MO.RELACCENT,"⤈":e.MO.REL,"⤉":e.MO.REL,"⤊":e.MO.RELSTRETCH,"⤋":e.MO.RELSTRETCH,"⤌":e.MO.WIDEREL,"⤍":e.MO.WIDEREL,"⤎":e.MO.WIDEREL,"⤏":e.MO.WIDEREL,"⤐":e.MO.WIDEREL,"⤑":e.MO.RELACCENT,"⤒":e.MO.RELSTRETCH,"⤓":e.MO.RELSTRETCH,"⤔":e.MO.RELACCENT,"⤕":e.MO.RELACCENT,"⤖":e.MO.RELACCENT,"⤗":e.MO.RELACCENT,"⤘":e.MO.RELACCENT,"⤙":e.MO.RELACCENT,"⤚":e.MO.RELACCENT,"⤛":e.MO.RELACCENT,"⤜":e.MO.RELACCENT,"⤝":e.MO.RELACCENT,"⤞":e.MO.RELACCENT,"⤟":e.MO.RELACCENT,"⤠":e.MO.RELACCENT,"⤡":e.MO.RELSTRETCH,"⤢":e.MO.RELSTRETCH,"⤣":e.MO.REL,"⤤":e.MO.REL,"⤥":e.MO.REL,"⤦":e.MO.REL,"⤧":e.MO.REL,"⤨":e.MO.REL,"⤩":e.MO.REL,"⤪":e.MO.REL,"⤫":e.MO.REL,"⤬":e.MO.REL,"⤭":e.MO.REL,"⤮":e.MO.REL,"⤯":e.MO.REL,"⤰":e.MO.REL,"⤱":e.MO.REL,"⤲":e.MO.REL,"⤳":e.MO.RELACCENT,"⤴":e.MO.REL,"⤵":e.MO.REL,"⤶":e.MO.REL,"⤷":e.MO.REL,"⤸":e.MO.REL,"⤹":e.MO.REL,"⤺":e.MO.RELACCENT,"⤻":e.MO.RELACCENT,"⤼":e.MO.RELACCENT,"⤽":e.MO.RELACCENT,"⤾":e.MO.REL,"⤿":e.MO.REL,"⥀":e.MO.REL,"⥁":e.MO.REL,"⥂":e.MO.RELACCENT,"⥃":e.MO.RELACCENT,"⥄":e.MO.RELACCENT,"⥅":e.MO.RELACCENT,"⥆":e.MO.RELACCENT,"⥇":e.MO.RELACCENT,"⥈":e.MO.RELACCENT,"⥉":e.MO.REL,"⥊":e.MO.RELACCENT,"⥋":e.MO.RELACCENT,"⥌":e.MO.REL,"⥍":e.MO.REL,"⥎":e.MO.WIDEREL,"⥏":e.MO.RELSTRETCH,"⥐":e.MO.WIDEREL,"⥑":e.MO.RELSTRETCH,"⥒":e.MO.WIDEREL,"⥓":e.MO.WIDEREL,"⥔":e.MO.RELSTRETCH,"⥕":e.MO.RELSTRETCH,"⥖":e.MO.RELSTRETCH,"⥗":e.MO.RELSTRETCH,"⥘":e.MO.RELSTRETCH,"⥙":e.MO.RELSTRETCH,"⥚":e.MO.WIDEREL,"⥛":e.MO.WIDEREL,"⥜":e.MO.RELSTRETCH,"⥝":e.MO.RELSTRETCH,"⥞":e.MO.WIDEREL,"⥟":e.MO.WIDEREL,"⥠":e.MO.RELSTRETCH,"⥡":e.MO.RELSTRETCH,"⥢":e.MO.RELACCENT,"⥣":e.MO.REL,"⥤":e.MO.RELACCENT,"⥥":e.MO.REL,"⥦":e.MO.RELACCENT,"⥧":e.MO.RELACCENT,"⥨":e.MO.RELACCENT,"⥩":e.MO.RELACCENT,"⥪":e.MO.RELACCENT,"⥫":e.MO.RELACCENT,"⥬":e.MO.RELACCENT,"⥭":e.MO.RELACCENT,"⥮":e.MO.RELSTRETCH,"⥯":e.MO.RELSTRETCH,"⥰":e.MO.RELACCENT,"⥱":e.MO.RELACCENT,"⥲":e.MO.RELACCENT,"⥳":e.MO.RELACCENT,"⥴":e.MO.RELACCENT,"⥵":e.MO.RELACCENT,"⥶":e.MO.RELACCENT,"⥷":e.MO.RELACCENT,"⥸":e.MO.RELACCENT,"⥹":e.MO.RELACCENT,"⥺":e.MO.RELACCENT,"⥻":e.MO.RELACCENT,"⥼":e.MO.RELACCENT,"⥽":e.MO.RELACCENT,"⥾":e.MO.REL,"⥿":e.MO.REL,"⦁":e.MO.BIN3,"⦂":e.MO.BIN3,"⦙":e.MO.BIN3,"⦚":e.MO.BIN3,"⦛":e.MO.BIN3,"⦜":e.MO.BIN3,"⦝":e.MO.BIN3,"⦞":e.MO.BIN3,"⦟":e.MO.BIN3,"⦠":e.MO.BIN3,"⦡":e.MO.BIN3,"⦢":e.MO.BIN3,"⦣":e.MO.BIN3,"⦤":e.MO.BIN3,"⦥":e.MO.BIN3,"⦦":e.MO.BIN3,"⦧":e.MO.BIN3,"⦨":e.MO.BIN3,"⦩":e.MO.BIN3,"⦪":e.MO.BIN3,"⦫":e.MO.BIN3,"⦬":e.MO.BIN3,"⦭":e.MO.BIN3,"⦮":e.MO.BIN3,"⦯":e.MO.BIN3,"⦰":e.MO.BIN3,"⦱":e.MO.BIN3,"⦲":e.MO.BIN3,"⦳":e.MO.BIN3,"⦴":e.MO.BIN3,"⦵":e.MO.BIN3,"⦶":e.MO.BIN4,"⦷":e.MO.BIN4,"⦸":e.MO.BIN4,"⦹":e.MO.BIN4,"⦺":e.MO.BIN4,"⦻":e.MO.BIN4,"⦼":e.MO.BIN4,"⦽":e.MO.BIN4,"⦾":e.MO.BIN4,"⦿":e.MO.BIN4,"⧀":e.MO.REL,"⧁":e.MO.REL,"⧂":e.MO.BIN3,"⧃":e.MO.BIN3,"⧄":e.MO.BIN4,"⧅":e.MO.BIN4,"⧆":e.MO.BIN4,"⧇":e.MO.BIN4,"⧈":e.MO.BIN4,"⧉":e.MO.BIN3,"⧊":e.MO.BIN3,"⧋":e.MO.BIN3,"⧌":e.MO.BIN3,"⧍":e.MO.BIN3,"⧎":e.MO.REL,"⧏":e.MO.REL,"⧏̸":e.MO.REL,"⧐":e.MO.REL,"⧐̸":e.MO.REL,"⧑":e.MO.REL,"⧒":e.MO.REL,"⧓":e.MO.REL,"⧔":e.MO.REL,"⧕":e.MO.REL,"⧖":e.MO.BIN4,"⧗":e.MO.BIN4,"⧘":e.MO.BIN3,"⧙":e.MO.BIN3,"⧛":e.MO.BIN3,"⧜":e.MO.BIN3,"⧝":e.MO.BIN3,"⧞":e.MO.REL,"⧟":e.MO.BIN3,"⧠":e.MO.BIN3,"⧡":e.MO.REL,"⧢":e.MO.BIN4,"⧣":e.MO.REL,"⧤":e.MO.REL,"⧥":e.MO.REL,"⧦":e.MO.REL,"⧧":e.MO.BIN3,"⧨":e.MO.BIN3,"⧩":e.MO.BIN3,"⧪":e.MO.BIN3,"⧫":e.MO.BIN3,"⧬":e.MO.BIN3,"⧭":e.MO.BIN3,"⧮":e.MO.BIN3,"⧯":e.MO.BIN3,"⧰":e.MO.BIN3,"⧱":e.MO.BIN3,"⧲":e.MO.BIN3,"⧳":e.MO.BIN3,"⧴":e.MO.REL,"⧵":e.MO.BIN4,"⧶":e.MO.BIN4,"⧷":e.MO.BIN4,"⧸":e.MO.BIN3,"⧹":e.MO.BIN3,"⧺":e.MO.BIN3,"⧻":e.MO.BIN3,"⧾":e.MO.BIN4,"⧿":e.MO.BIN4,"⨝":e.MO.BIN3,"⨞":e.MO.BIN3,"⨟":e.MO.BIN3,"⨠":e.MO.BIN3,"⨡":e.MO.BIN3,"⨢":e.MO.BIN4,"⨣":e.MO.BIN4,"⨤":e.MO.BIN4,"⨥":e.MO.BIN4,"⨦":e.MO.BIN4,"⨧":e.MO.BIN4,"⨨":e.MO.BIN4,"⨩":e.MO.BIN4,"⨪":e.MO.BIN4,"⨫":e.MO.BIN4,"⨬":e.MO.BIN4,"⨭":e.MO.BIN4,"⨮":e.MO.BIN4,"⨯":e.MO.BIN4,"⨰":e.MO.BIN4,"⨱":e.MO.BIN4,"⨲":e.MO.BIN4,"⨳":e.MO.BIN4,"⨴":e.MO.BIN4,"⨵":e.MO.BIN4,"⨶":e.MO.BIN4,"⨷":e.MO.BIN4,"⨸":e.MO.BIN4,"⨹":e.MO.BIN4,"⨺":e.MO.BIN4,"⨻":e.MO.BIN4,"⨼":e.MO.BIN4,"⨽":e.MO.BIN4,"⨾":e.MO.BIN4,"⨿":e.MO.BIN4,"⩀":e.MO.BIN4,"⩁":e.MO.BIN4,"⩂":e.MO.BIN4,"⩃":e.MO.BIN4,"⩄":e.MO.BIN4,"⩅":e.MO.BIN4,"⩆":e.MO.BIN4,"⩇":e.MO.BIN4,"⩈":e.MO.BIN4,"⩉":e.MO.BIN4,"⩊":e.MO.BIN4,"⩋":e.MO.BIN4,"⩌":e.MO.BIN4,"⩍":e.MO.BIN4,"⩎":e.MO.BIN4,"⩏":e.MO.BIN4,"⩐":e.MO.BIN4,"⩑":e.MO.BIN4,"⩒":e.MO.BIN4,"⩓":e.MO.BIN4,"⩔":e.MO.BIN4,"⩕":e.MO.BIN4,"⩖":e.MO.BIN4,"⩗":e.MO.BIN4,"⩘":e.MO.BIN4,"⩙":e.MO.REL,"⩚":e.MO.BIN4,"⩛":e.MO.BIN4,"⩜":e.MO.BIN4,"⩝":e.MO.BIN4,"⩞":e.MO.BIN4,"⩟":e.MO.BIN4,"⩠":e.MO.BIN4,"⩡":e.MO.BIN4,"⩢":e.MO.BIN4,"⩣":e.MO.BIN4,"⩤":e.MO.BIN4,"⩥":e.MO.BIN4,"⩦":e.MO.REL,"⩧":e.MO.REL,"⩨":e.MO.REL,"⩩":e.MO.REL,"⩪":e.MO.REL,"⩫":e.MO.REL,"⩬":e.MO.REL,"⩭":e.MO.REL,"⩮":e.MO.REL,"⩯":e.MO.REL,"⩰":e.MO.REL,"⩱":e.MO.BIN4,"⩲":e.MO.BIN4,"⩳":e.MO.REL,"⩴":e.MO.REL,"⩵":e.MO.REL,"⩶":e.MO.REL,"⩷":e.MO.REL,"⩸":e.MO.REL,"⩹":e.MO.REL,"⩺":e.MO.REL,"⩻":e.MO.REL,"⩼":e.MO.REL,"⩽":e.MO.REL,"⩽̸":e.MO.REL,"⩾":e.MO.REL,"⩾̸":e.MO.REL,"⩿":e.MO.REL,"⪀":e.MO.REL,"⪁":e.MO.REL,"⪂":e.MO.REL,"⪃":e.MO.REL,"⪄":e.MO.REL,"⪅":e.MO.REL,"⪆":e.MO.REL,"⪇":e.MO.REL,"⪈":e.MO.REL,"⪉":e.MO.REL,"⪊":e.MO.REL,"⪋":e.MO.REL,"⪌":e.MO.REL,"⪍":e.MO.REL,"⪎":e.MO.REL,"⪏":e.MO.REL,"⪐":e.MO.REL,"⪑":e.MO.REL,"⪒":e.MO.REL,"⪓":e.MO.REL,"⪔":e.MO.REL,"⪕":e.MO.REL,"⪖":e.MO.REL,"⪗":e.MO.REL,"⪘":e.MO.REL,"⪙":e.MO.REL,"⪚":e.MO.REL,"⪛":e.MO.REL,"⪜":e.MO.REL,"⪝":e.MO.REL,"⪞":e.MO.REL,"⪟":e.MO.REL,"⪠":e.MO.REL,"⪡":e.MO.REL,"⪡̸":e.MO.REL,"⪢":e.MO.REL,"⪢̸":e.MO.REL,"⪣":e.MO.REL,"⪤":e.MO.REL,"⪥":e.MO.REL,"⪦":e.MO.REL,"⪧":e.MO.REL,"⪨":e.MO.REL,"⪩":e.MO.REL,"⪪":e.MO.REL,"⪫":e.MO.REL,"⪬":e.MO.REL,"⪭":e.MO.REL,"⪮":e.MO.REL,"⪯":e.MO.REL,"⪯̸":e.MO.REL,"⪰":e.MO.REL,"⪰̸":e.MO.REL,"⪱":e.MO.REL,"⪲":e.MO.REL,"⪳":e.MO.REL,"⪴":e.MO.REL,"⪵":e.MO.REL,"⪶":e.MO.REL,"⪷":e.MO.REL,"⪸":e.MO.REL,"⪹":e.MO.REL,"⪺":e.MO.REL,"⪻":e.MO.REL,"⪼":e.MO.REL,"⪽":e.MO.REL,"⪾":e.MO.REL,"⪿":e.MO.REL,"⫀":e.MO.REL,"⫁":e.MO.REL,"⫂":e.MO.REL,"⫃":e.MO.REL,"⫄":e.MO.REL,"⫅":e.MO.REL,"⫆":e.MO.REL,"⫇":e.MO.REL,"⫈":e.MO.REL,"⫉":e.MO.REL,"⫊":e.MO.REL,"⫋":e.MO.REL,"⫌":e.MO.REL,"⫍":e.MO.REL,"⫎":e.MO.REL,"⫏":e.MO.REL,"⫐":e.MO.REL,"⫑":e.MO.REL,"⫒":e.MO.REL,"⫓":e.MO.REL,"⫔":e.MO.REL,"⫕":e.MO.REL,"⫖":e.MO.REL,"⫗":e.MO.REL,"⫘":e.MO.REL,"⫙":e.MO.REL,"⫚":e.MO.REL,"⫛":e.MO.REL,"⫝":e.MO.REL,"⫝̸":e.MO.REL,"⫞":e.MO.REL,"⫟":e.MO.REL,"⫠":e.MO.REL,"⫡":e.MO.REL,"⫢":e.MO.REL,"⫣":e.MO.REL,"⫤":e.MO.REL,"⫥":e.MO.REL,"⫦":e.MO.REL,"⫧":e.MO.REL,"⫨":e.MO.REL,"⫩":e.MO.REL,"⫪":e.MO.REL,"⫫":e.MO.REL,"⫬":e.MO.REL,"⫭":e.MO.REL,"⫮":e.MO.REL,"⫯":e.MO.REL,"⫰":e.MO.REL,"⫱":e.MO.REL,"⫲":e.MO.REL,"⫳":e.MO.REL,"⫴":e.MO.BIN4,"⫵":e.MO.BIN4,"⫶":e.MO.BIN4,"⫷":e.MO.REL,"⫸":e.MO.REL,"⫹":e.MO.REL,"⫺":e.MO.REL,"⫻":e.MO.BIN4,"⫽":e.MO.BIN4,"⫾":e.MO.BIN3,"⭅":e.MO.RELSTRETCH,"⭆":e.MO.RELSTRETCH,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"︷":e.MO.WIDEACCENT,"︸":e.MO.WIDEACCENT}},e.OPTABLE.infix["^"]=e.MO.WIDEREL,e.OPTABLE.infix._=e.MO.WIDEREL,e.OPTABLE.infix["⫝̸"]=e.MO.REL},4347:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.SerializedMmlVisitor=e.toEntity=e.DATAMJX=void 0;var s=n(6677),l=n(747),T=n(2175);e.DATAMJX="data-mjx-";e.toEntity=function(t){return""+t.codePointAt(0).toString(16).toUpperCase()+";"};var Q=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.visitTree=function(t){return this.visitNode(t,"")},n.prototype.visitTextNode=function(t,e){return this.quoteHTML(t.getText())},n.prototype.visitXMLNode=function(t,e){return e+t.getSerializedXML()},n.prototype.visitInferredMrowNode=function(t,e){var n,r,i=[];try{for(var a=o(t.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;i.push(this.visitNode(l,e))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i.join("\n")},n.prototype.visitTeXAtomNode=function(t,e){var n=this.childNodeMml(t,e+" ","\n");return e+""+(n.match(/\S/)?"\n"+n+e:"")+""},n.prototype.visitAnnotationNode=function(t,e){return e+""+this.childNodeMml(t,"","")+""},n.prototype.visitDefault=function(t,e){var n=t.kind,r=a(t.isToken||0===t.childNodes.length?["",""]:["\n",e],2),i=r[0],o=r[1],s=this.childNodeMml(t,e+" ",i);return e+"<"+n+this.getAttributes(t)+">"+(s.match(/\S/)?i+s+o:"")+""+n+">"},n.prototype.childNodeMml=function(t,e,n){var r,i,a="";try{for(var s=o(t.childNodes),l=s.next();!l.done;l=s.next()){var T=l.value;a+=this.visitNode(T,e)+n}}catch(t){r={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a},n.prototype.getAttributes=function(t){var e,n,r=[],i=this.constructor.defaultAttributes[t.kind]||{},a=Object.assign({},i,this.getDataAttributes(t),t.attributes.getAllAttributes()),s=this.constructor.variants;a.hasOwnProperty("mathvariant")&&s.hasOwnProperty(a.mathvariant)&&(a.mathvariant=s[a.mathvariant]);try{for(var l=o(Object.keys(a)),T=l.next();!T.done;T=l.next()){var Q=T.value,c=String(a[Q]);void 0!==c&&r.push(Q+'="'+this.quoteHTML(c)+'"')}}catch(t){e={error:t}}finally{try{T&&!T.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}return r.length?" "+r.join(" "):""},n.prototype.getDataAttributes=function(t){var e={},n=t.attributes.getExplicit("mathvariant"),r=this.constructor.variants;n&&r.hasOwnProperty(n)&&this.setDataAttribute(e,"variant",n),t.getProperty("variantForm")&&this.setDataAttribute(e,"alternate","1"),t.getProperty("pseudoscript")&&this.setDataAttribute(e,"pseudoscript","true"),!1===t.getProperty("autoOP")&&this.setDataAttribute(e,"auto-op","false");var i=t.getProperty("scriptalign");i&&this.setDataAttribute(e,"script-align",i);var o=t.getProperty("texClass");if(void 0!==o){var a=!0;if(o===l.TEXCLASS.OP&&t.isKind("mi")){var s=t.getText();a=!(s.length>1&&s.match(T.MmlMi.operatorName))}a&&this.setDataAttribute(e,"texclass",o<0?"NONE":l.TEXCLASSNAMES[o])}return t.getProperty("scriptlevel")&&!1===t.getProperty("useHeight")&&this.setDataAttribute(e,"smallmatrix","true"),e},n.prototype.setDataAttribute=function(t,n,r){t[e.DATAMJX+n]=r},n.prototype.quoteHTML=function(t){return t.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/[\uD800-\uDBFF]./g,e.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,e.toEntity)},n.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"},n.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}},n}(s.MmlVisitor);e.SerializedMmlVisitor=Q},3380:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractOutputJax=void 0;var r=n(4981),i=n(3899),o=function(){function t(t){void 0===t&&(t={}),this.adaptor=null;var e=this.constructor;this.options=(0,r.userOptions)((0,r.defaultOptions)({},e.OPTIONS),t),this.postFilters=new i.FunctionList}return Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),t.prototype.setAdaptor=function(t){this.adaptor=t},t.prototype.initialize=function(){},t.prototype.reset=function(){for(var t=[],e=0;e=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEmptyNode=e.AbstractNode=void 0;var a=function(){function t(t,e,n){var r,i;void 0===e&&(e={}),void 0===n&&(n=[]),this.factory=t,this.parent=null,this.properties={},this.childNodes=[];try{for(var a=o(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value;this.setProperty(l,e[l])}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}n.length&&this.setChildren(n)}return Object.defineProperty(t.prototype,"kind",{get:function(){return"unknown"},enumerable:!1,configurable:!0}),t.prototype.setProperty=function(t,e){this.properties[t]=e},t.prototype.getProperty=function(t){return this.properties[t]},t.prototype.getPropertyNames=function(){return Object.keys(this.properties)},t.prototype.getAllProperties=function(){return this.properties},t.prototype.removeProperty=function(){for(var t,e,n=[],r=0;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractWrapper=void 0;var n=function(){function t(t,e){this.factory=t,this.node=e}return Object.defineProperty(t.prototype,"kind",{get:function(){return this.node.kind},enumerable:!1,configurable:!0}),t.prototype.wrap=function(t){return this.factory.wrap(t)},t}();e.AbstractWrapper=n},9294:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterHTMLHandler=void 0;var r=n(1039),i=n(1969);e.RegisterHTMLHandler=function(t){var e=new i.HTMLHandler(t);return r.mathjax.handlers.register(e),e}},8608:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLDocument=void 0;var l=n(2878),T=n(4981),Q=n(2680),c=n(6499),u=n(5391),d=n(4971),h=function(t){function e(e,n,r){var i=this,o=a((0,T.separateOptions)(r,u.HTMLDomStrings.OPTIONS),2),s=o[0],l=o[1];return(i=t.call(this,e,n,s)||this).domStrings=i.options.DomStrings||new u.HTMLDomStrings(l),i.domStrings.adaptor=n,i.styles=[],i}return i(e,t),e.prototype.findPosition=function(t,e,n,r){var i,o,l=this.adaptor;try{for(var T=s(r[t]),Q=T.next();!Q.done;Q=T.next()){var c=Q.value,u=a(c,2),d=u[0],h=u[1];if(e<=h&&"#text"===l.kind(d))return{node:d,n:Math.max(e,0),delim:n};e-=h}}catch(t){i={error:t}}finally{try{Q&&!Q.done&&(o=T.return)&&o.call(T)}finally{if(i)throw i.error}}return{node:null,n:0,delim:n}},e.prototype.mathItem=function(t,e,n){var r=t.math,i=this.findPosition(t.n,t.start.n,t.open,n),o=this.findPosition(t.n,t.end.n,t.close,n);return new this.options.MathItem(r,e,t.display,i,o)},e.prototype.findMath=function(t){var e,n,r,i,o,l,Q,c,u;if(!this.processed.isSet("findMath")){this.adaptor.document=this.document,t=(0,T.userOptions)({elements:this.options.elements||[this.adaptor.body(this.document)]},t);try{for(var d=s(this.adaptor.getElements(t.elements,this.document)),h=d.next();!h.done;h=d.next()){var p=h.value,m=a([null,null],2),f=m[0],y=m[1];try{for(var g=(r=void 0,s(this.inputJax)),L=g.next();!L.done;L=g.next()){var b=L.value,v=new this.options.MathList;if(b.processStrings){null===f&&(f=(o=a(this.domStrings.find(p),2))[0],y=o[1]);try{for(var x=(l=void 0,s(b.findMath(f))),_=x.next();!_.done;_=x.next()){var H=_.value;v.push(this.mathItem(H,b,y))}}catch(t){l={error:t}}finally{try{_&&!_.done&&(Q=x.return)&&Q.call(x)}finally{if(l)throw l.error}}}else try{for(var w=(c=void 0,s(b.findMath(p))),O=w.next();!O.done;O=w.next()){H=O.value;var M=new this.options.MathItem(H.math,b,H.display,H.start,H.end);v.push(M)}}catch(t){c={error:t}}finally{try{O&&!O.done&&(u=w.return)&&u.call(w)}finally{if(c)throw c.error}}this.math.merge(v)}}catch(t){r={error:t}}finally{try{L&&!L.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}this.processed.set("findMath")}return this},e.prototype.updateDocument=function(){return this.processed.isSet("updateDocument")||(this.addPageElements(),this.addStyleSheet(),t.prototype.updateDocument.call(this),this.processed.set("updateDocument")),this},e.prototype.addPageElements=function(){var t=this.adaptor.body(this.document),e=this.documentPageElements();e&&this.adaptor.append(t,e)},e.prototype.addStyleSheet=function(){var t=this.documentStyleSheet(),e=this.adaptor;if(t&&!e.parent(t)){var n=e.head(this.document),r=this.findSheet(n,e.getAttribute(t,"id"));r?e.replace(t,r):e.append(n,t)}},e.prototype.findSheet=function(t,e){var n,r;if(e)try{for(var i=s(this.adaptor.tags(t,"style")),o=i.next();!o.done;o=i.next()){var a=o.value;if(this.adaptor.getAttribute(a,"id")===e)return a}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},e.prototype.removeFromDocument=function(t){var e,n;if(void 0===t&&(t=!1),this.processed.isSet("updateDocument"))try{for(var r=s(this.math),i=r.next();!i.done;i=r.next()){var o=i.value;o.state()>=d.STATE.INSERTED&&o.state(d.STATE.TYPESET,t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return this.processed.clear("updateDocument"),this},e.prototype.documentStyleSheet=function(){return this.outputJax.styleSheet(this)},e.prototype.documentPageElements=function(){return this.outputJax.pageElements(this)},e.prototype.addStyles=function(t){this.styles.push(t)},e.prototype.getStyles=function(){return this.styles},e.KIND="HTML",e.OPTIONS=o(o({},l.AbstractMathDocument.OPTIONS),{renderActions:(0,T.expandable)(o(o({},l.AbstractMathDocument.OPTIONS.renderActions),{styles:[d.STATE.INSERTED+1,"","updateStyleSheet",!1]})),MathList:c.HTMLMathList,MathItem:Q.HTMLMathItem,DomStrings:null}),e}(l.AbstractMathDocument);e.HTMLDocument=h},5391:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLDomStrings=void 0;var i=n(4981),o=function(){function t(t){void 0===t&&(t=null);var e=this.constructor;this.options=(0,i.userOptions)((0,i.defaultOptions)({},e.OPTIONS),t),this.init(),this.getPatterns()}return t.prototype.init=function(){this.strings=[],this.string="",this.snodes=[],this.nodes=[],this.stack=[]},t.prototype.getPatterns=function(){var t=(0,i.makeArray)(this.options.skipHtmlTags),e=(0,i.makeArray)(this.options.ignoreHtmlClass),n=(0,i.makeArray)(this.options.processHtmlClass);this.skipHtmlTags=new RegExp("^(?:"+t.join("|")+")$","i"),this.ignoreHtmlClass=new RegExp("(?:^| )(?:"+e.join("|")+")(?: |$)"),this.processHtmlClass=new RegExp("(?:^| )(?:"+n+")(?: |$)")},t.prototype.pushString=function(){this.string.match(/\S/)&&(this.strings.push(this.string),this.nodes.push(this.snodes)),this.string="",this.snodes=[]},t.prototype.extendString=function(t,e){this.snodes.push([t,e.length]),this.string+=e},t.prototype.handleText=function(t,e){return e||this.extendString(t,this.adaptor.value(t)),this.adaptor.next(t)},t.prototype.handleTag=function(t,e){if(!e){var n=this.options.includeHtmlTags[this.adaptor.kind(t)];this.extendString(t,n)}return this.adaptor.next(t)},t.prototype.handleContainer=function(t,e){this.pushString();var n=this.adaptor.getAttribute(t,"class")||"",r=this.adaptor.kind(t)||"",i=this.processHtmlClass.exec(n),o=t;return!this.adaptor.firstChild(t)||this.adaptor.getAttribute(t,"data-MJX")||!i&&this.skipHtmlTags.exec(r)?o=this.adaptor.next(t):(this.adaptor.next(t)&&this.stack.push([this.adaptor.next(t),e]),o=this.adaptor.firstChild(t),e=(e||this.ignoreHtmlClass.exec(n))&&!i),[o,e]},t.prototype.handleOther=function(t,e){return this.pushString(),this.adaptor.next(t)},t.prototype.find=function(t){var e,n;this.init();for(var i=this.adaptor.next(t),o=!1,a=this.options.includeHtmlTags;t&&t!==i;){var s=this.adaptor.kind(t);"#text"===s?t=this.handleText(t,o):a.hasOwnProperty(s)?t=this.handleTag(t,o):s?(t=(e=r(this.handleContainer(t,o),2))[0],o=e[1]):t=this.handleOther(t,o),!t&&this.stack.length&&(this.pushString(),t=(n=r(this.stack.pop(),2))[0],o=n[1])}this.pushString();var l=[this.strings,this.nodes];return this.init(),l},t.OPTIONS={skipHtmlTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],includeHtmlTags:{br:"\n",wbr:"","#comment":""},ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"},t}();e.HTMLDomStrings=o},1969:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLHandler=void 0;var o=n(780),a=n(8608),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.documentClass=a.HTMLDocument,e}return i(e,t),e.prototype.handlesDocument=function(t){var e=this.adaptor;if("string"==typeof t)try{t=e.parse(t,"text/html")}catch(t){}return t instanceof e.window.Document||t instanceof e.window.HTMLElement||t instanceof e.window.DocumentFragment},e.prototype.create=function(e,n){var r=this.adaptor;if("string"==typeof e)e=r.parse(e,"text/html");else if(e instanceof r.window.HTMLElement||e instanceof r.window.DocumentFragment){var i=e;e=r.parse("","text/html"),r.append(r.body(e),i)}return t.prototype.create.call(this,e,n)},e}(o.AbstractHandler);e.HTMLHandler=s},2680:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLMathItem=void 0;var o=n(4971),a=function(t){function e(e,n,r,i,o){return void 0===r&&(r=!0),void 0===i&&(i={node:null,n:0,delim:""}),void 0===o&&(o={node:null,n:0,delim:""}),t.call(this,e,n,r,i,o)||this}return i(e,t),Object.defineProperty(e.prototype,"adaptor",{get:function(){return this.inputJax.adaptor},enumerable:!1,configurable:!0}),e.prototype.updateDocument=function(t){if(this.state()=o.STATE.TYPESET){var e=this.adaptor,n=this.start.node,r=e.text("");if(t){var i=this.start.delim+this.math+this.end.delim;if(this.inputJax.processStrings)r=e.text(i);else{var a=e.parse(i,"text/html");r=e.firstChild(e.body(a))}}e.parent(n)&&e.replace(r,n),this.start.node=this.end.node=r,this.start.n=this.end.n=0}},e}(o.AbstractMathItem);e.HTMLMathItem=a},6499:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLMathList=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(n(6808).AbstractMathList);e.HTMLMathList=o},8244:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.AsciiMath=void 0;var s=n(7137),l=n(8587),T=n(4981),Q=n(6463),c=function(t){function e(n){var r=this,i=a((0,T.separateOptions)(n,Q.FindAsciiMath.OPTIONS,e.OPTIONS),3),o=i[1],s=i[2];return(r=t.call(this,s)||this).findAsciiMath=r.options.FindAsciiMath||new Q.FindAsciiMath(o),r}return i(e,t),e.prototype.compile=function(t,e){return l.LegacyAsciiMath.Compile(t.math,t.display)},e.prototype.findMath=function(t){return this.findAsciiMath.findMath(t)},e.NAME="AsciiMath",e.OPTIONS=o(o({},s.AbstractInputJax.OPTIONS),{FindAsciiMath:null}),e}(s.AbstractInputJax);e.AsciiMath=c},6463:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.FindAsciiMath=void 0;var a=n(8499),s=n(1278),l=n(4971),T=function(t){function e(e){var n=t.call(this,e)||this;return n.getPatterns(),n}return i(e,t),e.prototype.getPatterns=function(){var t=this,e=this.options,n=[];this.end={},e.delimiters.forEach((function(e){return t.addPattern(n,e,!1)})),this.start=new RegExp(n.join("|"),"g"),this.hasPatterns=n.length>0},e.prototype.addPattern=function(t,e,n){var r=o(e,2),i=r[0],a=r[1];t.push((0,s.quotePattern)(i)),this.end[i]=[a,n,new RegExp((0,s.quotePattern)(a),"g")]},e.prototype.findEnd=function(t,e,n,r){var i=o(r,3),a=i[1],s=i[2],T=s.lastIndex=n.index+n[0].length,Q=s.exec(t);return Q?(0,l.protoItem)(n[0],t.substr(T,Q.index-T),Q[0],e,n.index,Q.index+Q[0].length,a):null},e.prototype.findMathInString=function(t,e,n){var r,i;for(this.start.lastIndex=0;r=this.start.exec(n);)(i=this.findEnd(n,e,r,this.end[r[0]]))&&(t.push(i),this.start.lastIndex=i.end.n)},e.prototype.findMath=function(t){var e=[];if(this.hasPatterns)for(var n=0,r=t.length;n{MathJax=Object.assign(n.g.MathJax||{},n(9704).E),MathJax.config&&MathJax.config.asciimath&&MathJax.Hub.Config({AsciiMath:MathJax.config.asciimath}),MathJax.Ajax.Preloading("[MathJax]/jax/input/AsciiMath/config.js","[MathJax]/jax/input/AsciiMath/jax.js","[MathJax]/jax/element/mml/jax.js"),n(184),n(8408),n(671),n(5320);var r=new(0,n(4001).MmlFactory);e.LegacyAsciiMath={Compile:function(t,e){var n={type:"math/asciimath",innerText:t,MathJax:{}},i=MathJax.InputJax.AsciiMath.Translate(n).root.toMmlNode(r);return i.setInheritedAttributes({},e,0,!1),i},Translate:function(t,e){return this.Compile(t,e)}}},9704:(t,e)=>{var n,r,i,o,a,s,l,T={debug:!0},Q={MathJax:T},c={},u=null;e.E=T,function(t){var e=Q[t];e||(e=Q[t]={});var n=[],r=function(t){var e=t.constructor;for(var n in e||(e=function(){}),t)"constructor"!==n&&t.hasOwnProperty(n)&&(e[n]=t[n]);return e};e.Object=r({constructor:function(){return arguments.callee.Init.call(this,arguments)},Subclass:function(t,e){var r=function(){return arguments.callee.Init.call(this,arguments)};return r.SUPER=this,r.Init=this.Init,r.Subclass=this.Subclass,r.Augment=this.Augment,r.protoFunction=this.protoFunction,r.can=this.can,r.has=this.has,r.isa=this.isa,r.prototype=new this(n),r.prototype.constructor=r,r.Augment(t,e),r},Init:function(t){var e=this;return 1===t.length&&t[0]===n?e:(e instanceof t.callee||(e=new t.callee(n)),e.Init.apply(e,t)||e)},Augment:function(t,e){var n;if(null!=t){for(n in t)t.hasOwnProperty(n)&&this.protoFunction(n,t[n]);t.toString!==this.prototype.toString&&t.toString!=={}.toString&&this.protoFunction("toString",t.toString)}if(null!=e)for(n in e)e.hasOwnProperty(n)&&(this[n]=e[n]);return this},protoFunction:function(t,e){this.prototype[t]=e,"function"==typeof e&&(e.SUPER=this.SUPER.prototype)},prototype:{Init:function(){},SUPER:function(t){return t.callee.SUPER},can:function(t){return"function"==typeof this[t]},has:function(t){return void 0!==this[t]},isa:function(t){return t instanceof Object&&this instanceof t}},can:function(t){return this.prototype.can.call(this,t)},has:function(t){return this.prototype.has.call(this,t)},isa:function(t){for(var e=this;e;){if(e===t)return!0;e=e.SUPER}return!1},SimpleSUPER:r({constructor:function(t){return this.SimpleSUPER.define(t)},define:function(t){var e={};if(null!=t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=this.wrap(n,t[n]));t.toString!==this.prototype.toString&&t.toString!=={}.toString&&(e.toString=this.wrap("toString",t.toString))}return e},wrap:function(t,e){if("function"!=typeof e||!e.toString().match(/\.\s*SUPER\s*\(/))return e;var n=function(){this.SUPER=n.SUPER[t];try{var r=e.apply(this,arguments)}catch(t){throw delete this.SUPER,t}return delete this.SUPER,r};return n.toString=function(){return e.toString.apply(e,arguments)},n}})}),e.Object.isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},e.Object.Array=Array}("MathJax"),function(t){var e=Q[t];e||(e=Q[t]={});var n=function(t){var e=function(){return arguments.callee.execute.apply(arguments.callee,arguments)};for(var r in n.prototype)n.prototype.hasOwnProperty(r)&&(e[r]=void 0!==t[r]?t[r]:n.prototype[r]);return e.toString=n.prototype.toString,e};n.prototype={isCallback:!0,hook:function(){},data:[],object:Q,execute:function(){if(!this.called||this.autoReset)return this.called=!this.autoReset,this.hook.apply(this.object,this.data.concat([].slice.call(arguments,0)))},reset:function(){delete this.called},toString:function(){return this.hook.toString.apply(this.hook,arguments)}};var r=function(t){return"function"==typeof t&&t.isCallback},i=function(t){return eval.call(Q,t)},o=function(){if(i("var __TeSt_VaR__ = 1"),Q.__TeSt_VaR__)try{delete Q.__TeSt_VaR__}catch(t){Q.__TeSt_VaR__=null}else i=Q.execScript?function(n){e.__code=n,n="try {"+t+".__result = eval("+t+".__code)} catch(err) {"+t+".__result = err}",Q.execScript(n);var r=e.__result;if(delete e.__result,delete e.__code,r instanceof Error)throw r;return r}:function(n){e.__code=n,n="try {"+t+".__result = eval("+t+".__code)} catch(err) {"+t+".__result = err}";var r=u.getElementsByTagName("head")[0];r||(r=u.body);var i=u.createElement("script");i.appendChild(u.createTextNode(n)),r.appendChild(i),r.removeChild(i);var o=e.__result;if(delete e.__result,delete e.__code,o instanceof Error)throw o;return o};o=null},a=function(t,e){if(arguments.length>1&&(t=2===arguments.length&&"function"!=typeof arguments[0]&&arguments[0]instanceof Object&&"number"==typeof arguments[1]?[].slice.call(t,e):[].slice.call(arguments,0)),t instanceof Array&&1===t.length&&(t=t[0]),"function"==typeof t)return t.execute===n.prototype.execute?t:n({hook:t});if(t instanceof Array){if("string"==typeof t[0]&&t[1]instanceof Object&&"function"==typeof t[1][t[0]])return n({hook:t[1][t[0]],object:t[1],data:t.slice(2)});if("function"==typeof t[0])return n({hook:t[0],data:t.slice(1)});if("function"==typeof t[1])return n({hook:t[1],object:t[0],data:t.slice(2)})}else{if("string"==typeof t)return o&&o(),n({hook:i,data:[t]});if(t instanceof Object)return n(t);if(void 0===t)return n({})}throw Error("Can't make callback from given data")},s=function(t,e){(t=a(t)).called||(c(t,e),e.pending++)},l=function(){var t=this.signal;delete this.signal,this.execute=this.oldExecute,delete this.oldExecute;var e=this.execute.apply(this,arguments);if(r(e)&&!e.called)c(e,t);else for(var n=0,i=t.length;n0&&e=0;t--)this.hooks.splice(t,1);this.remove=[]}}),p=e.Object.Subclass({Init:function(){this.pending=this.running=0,this.queue=[],this.Push.apply(this,arguments)},Push:function(){for(var t,e=0,n=arguments.length;e=this.timeout?(t(this.STATUS.ERROR),1):0},file:function(t,n){n<0?e.Ajax.loadTimeout(t):e.Ajax.loadComplete(t)},execute:function(){this.hook.call(this.object,this,this.data[0],this.data[1])},checkSafari2:function(t,e,n){t.time(n)||(u.styleSheets.length>e&&u.styleSheets[e].cssRules&&u.styleSheets[e].cssRules.length?n(t.STATUS.OK):setTimeout(t,t.delay))},checkLength:function(t,n,r){if(!t.time(r)){var i=0,o=n.sheet||n.styleSheet;try{(o.cssRules||o.rules||[]).length>0&&(i=1)}catch(t){(t.message.match(/protected variable|restricted URI/)||t.message.match(/Security error/))&&(i=1)}i?setTimeout(e.Callback([r,t.STATUS.OK]),0):setTimeout(t,t.delay)}}},loadComplete:function(t){t=this.fileURL(t);var n=this.loading[t];return n&&!n.preloaded?(e.Message.Clear(n.message),n.timeout&&clearTimeout(n.timeout),n.script&&(0===i.length&&setTimeout(o,0),i.push(n.script)),this.loaded[t]=n.status,delete this.loading[t],this.addHook(t,n.callback)):(n&&delete this.loading[t],this.loaded[t]=this.STATUS.OK,n={status:this.STATUS.OK}),this.loadHooks[t]?this.loadHooks[t].Execute(n.status):null},loadTimeout:function(t){this.loading[t].timeout&&clearTimeout(this.loading[t].timeout),this.loading[t].status=this.STATUS.ERROR,this.loadError(t),this.loadComplete(t)},loadError:function(t){e.Message.Set(["LoadFailed","File failed to load: %1",t],null,2e3),e.Hub.signal.Post(["file load error",t])},Styles:function(t,n){var r=this.StyleString(t);if(""===r)(n=e.Callback(n))();else{var i=u.createElement("style");i.type="text/css",this.head=(this.head,null),this.head.appendChild(i),i.styleSheet&&void 0!==i.styleSheet.cssText?i.styleSheet.cssText=r:i.appendChild(u.createTextNode(r)),n=this.timer.create.call(this,n,i)}return n},StyleString:function(t){if("string"==typeof t)return t;var e,n,r="";for(e in t)if(t.hasOwnProperty(e))if("string"==typeof t[e])r+=e+" {"+t[e]+"}\n";else if(t[e]instanceof Array)for(var i=0;i="0"&&a<="9")o[r]=e[o[r]-1],"number"==typeof o[r]&&(o[r]=this.number(o[r]));else if("{"===a)if((a=o[r].substr(1))>="0"&&a<="9")o[r]=e[o[r].substr(1,o[r].length-2)-1],"number"==typeof o[r]&&(o[r]=this.number(o[r]));else{var s=o[r].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/);if(s)if("plural"===s[1]){var l=e[s[2]-1];if(void 0===l)o[r]="???";else{l=this.plural(l)-1;var T=s[3].replace(/(^|[^%])(%%)*%\|/g,"$1$2%").split(/\|/);l>=0&&l=3?n.push([o[0],o[1],this.processSnippet(t,o[2])]):n.push(e[r])}else n.push(e[r]);return n},markdownPattern:/(%.)|(\*{1,3})((?:%.|.)+?)\2|(`+)((?:%.|.)+?)\4|\[((?:%.|.)+?)\]\(([^\s\)]+)\)/,processMarkdown:function(t,e,n){for(var r,i=[],o=t.split(this.markdownPattern),a=o[0],s=1,l=o.length;s{var t,e,n;t=MathJax.ElementJax.mml,e=["texWithDelims","movesupsub","subsupOK","primes","movablelimits","scriptlevel","open","close","isError","multiline","variantForm","autoOP","fnOP"],n={texWithDelims:"withDelims"},t.mbase.Augment({toMmlNode:function(t){var e=this.type;"texatom"===e&&(e="TeXAtom");var n=this.nodeMake(t,e);return"texClass"in this&&(n.texClass=this.texClass),n},nodeMake:function(t,e){for(var n=t.MML["TeXmathchoice"===e?"mathchoice":e](),r=this.data[0]&&this.data[0].inferred&&this.inferRow?this.data[0].data:this.data,i=0,o=r.length;i{MathJax.ElementJax.mml=MathJax.ElementJax({mimeType:"jax/mml"},{id:"mml",version:"2.7.2",directory:MathJax.ElementJax.directory+"/mml",extensionDir:MathJax.ElementJax.extensionDir+"/mml",optableDir:MathJax.ElementJax.directory+"/mml/optable"}),MathJax.ElementJax.mml.Augment({Init:function(){if(1===arguments.length&&"math"===arguments[0].type?this.root=arguments[0]:this.root=MathJax.ElementJax.mml.math.apply(this,arguments),this.root.attr&&this.root.attr.mode){this.root.display||"display"!==this.root.attr.mode||(this.root.display="block",this.root.attrNames.push("display")),delete this.root.attr.mode;for(var t=0,e=this.root.attrNames.length;t0||this.Get("scriptlevel")>0)&&r>=0?"":this.TEXSPACELENGTH[Math.abs(r)]},TEXSPACELENGTH:["",t.LENGTH.THINMATHSPACE,t.LENGTH.MEDIUMMATHSPACE,t.LENGTH.THICKMATHSPACE],TEXSPACE:[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]],autoDefault:function(t){return""},isSpacelike:function(){return!1},isEmbellished:function(){return!1},Core:function(){return this},CoreMO:function(){return this},childIndex:function(t){if(null!=t)for(var e=0,n=this.data.length;e=55296&&n.charCodeAt(0)<56320?t.VARIANT.ITALIC:t.VARIANT.NORMAL}return""},setTeXclass:function(e){this.getPrevClass(e);var n=this.data.join("");return n.length>1&&n.match(/^[a-z][a-z0-9]*$/i)&&this.texClass===t.TEXCLASS.ORD&&(this.texClass=t.TEXCLASS.OP,this.autoOP=!0),this}}),t.mn=t.mbase.Subclass({type:"mn",isToken:!0,texClass:t.TEXCLASS.ORD,defaults:{mathvariant:t.INHERIT,mathsize:t.INHERIT,mathbackground:t.INHERIT,mathcolor:t.INHERIT,dir:t.INHERIT}}),t.mo=t.mbase.Subclass({type:"mo",isToken:!0,defaults:{mathvariant:t.INHERIT,mathsize:t.INHERIT,mathbackground:t.INHERIT,mathcolor:t.INHERIT,dir:t.INHERIT,form:t.AUTO,fence:t.AUTO,separator:t.AUTO,lspace:t.AUTO,rspace:t.AUTO,stretchy:t.AUTO,symmetric:t.AUTO,maxsize:t.AUTO,minsize:t.AUTO,largeop:t.AUTO,movablelimits:t.AUTO,accent:t.AUTO,linebreak:t.LINEBREAK.AUTO,lineleading:t.INHERIT,linebreakstyle:t.AUTO,linebreakmultchar:t.INHERIT,indentalign:t.INHERIT,indentshift:t.INHERIT,indenttarget:t.INHERIT,indentalignfirst:t.INHERIT,indentshiftfirst:t.INHERIT,indentalignlast:t.INHERIT,indentshiftlast:t.INHERIT,texClass:t.AUTO},defaultDef:{form:t.FORM.INFIX,fence:!1,separator:!1,lspace:t.LENGTH.THICKMATHSPACE,rspace:t.LENGTH.THICKMATHSPACE,stretchy:!1,symmetric:!1,maxsize:t.SIZE.INFINITY,minsize:"0em",largeop:!1,movablelimits:!1,accent:!1,linebreak:t.LINEBREAK.AUTO,lineleading:"1ex",linebreakstyle:"before",indentalign:t.INDENTALIGN.AUTO,indentshift:"0",indenttarget:"",indentalignfirst:t.INDENTALIGN.INDENTALIGN,indentshiftfirst:t.INDENTSHIFT.INDENTSHIFT,indentalignlast:t.INDENTALIGN.INDENTALIGN,indentshiftlast:t.INDENTSHIFT.INDENTSHIFT,texClass:t.TEXCLASS.REL},SPACE_ATTR:{lspace:1,rspace:2,form:4},useMMLspacing:7,autoDefault:function(e,n){var r=this.def;if(!r){if("form"===e)return this.useMMLspacing&=~this.SPACE_ATTR.form,this.getForm();for(var i=this.data.join(""),o=[this.Get("form"),t.FORM.INFIX,t.FORM.POSTFIX,t.FORM.PREFIX],a=0,s=o.length;a=55296&&n<56320&&(n=(n-55296<<10)+(e.charCodeAt(1)-56320)+65536);for(var r=0,i=this.RANGES.length;r=0;t--)if(this.data[0]&&!this.data[t].isSpacelike())return this.data[t];return null},Core:function(){return this.isEmbellished()&&void 0!==this.core?this.data[this.core]:this},CoreMO:function(){return this.isEmbellished()&&void 0!==this.core?this.data[this.core].CoreMO():this},toString:function(){return this.inferred?"["+this.data.join(",")+"]":this.SUPER(arguments).toString.call(this)},setTeXclass:function(e){var n,r=this.data.length;if(!this.open&&!this.close||e&&e.fnOP){for(n=0;n0)&&e++,e},adjustChild_texprimestyle:function(t){return t==this.den||this.Get("texprimestyle")},setTeXclass:t.mbase.setSeparateTeXclasses}),t.msqrt=t.mbase.Subclass({type:"msqrt",inferRow:!0,linebreakContainer:!0,texClass:t.TEXCLASS.ORD,setTeXclass:t.mbase.setSeparateTeXclasses,adjustChild_texprimestyle:function(t){return!0}}),t.mroot=t.mbase.Subclass({type:"mroot",linebreakContainer:!0,texClass:t.TEXCLASS.ORD,adjustChild_displaystyle:function(t){return 1!==t&&this.Get("displaystyle")},adjustChild_scriptlevel:function(t){var e=this.Get("scriptlevel");return 1===t&&(e+=2),e},adjustChild_texprimestyle:function(t){return 0===t||this.Get("texprimestyle")},setTeXclass:t.mbase.setSeparateTeXclasses}),t.mstyle=t.mbase.Subclass({type:"mstyle",isSpacelike:t.mbase.childrenSpacelike,isEmbellished:t.mbase.childEmbellished,Core:t.mbase.childCore,CoreMO:t.mbase.childCoreMO,inferRow:!0,defaults:{scriptlevel:t.INHERIT,displaystyle:t.INHERIT,scriptsizemultiplier:Math.sqrt(.5),scriptminsize:"8pt",mathbackground:t.INHERIT,mathcolor:t.INHERIT,dir:t.INHERIT,infixlinebreakstyle:t.LINEBREAKSTYLE.BEFORE,decimalseparator:"."},adjustChild_scriptlevel:function(t){var e=this.scriptlevel;if(null==e)e=this.Get("scriptlevel");else if(String(e).match(/^ *[-+]/)){e=this.Get("scriptlevel",null,!0)+parseInt(e)}return e},inheritFromMe:!0,noInherit:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},getRemoved:{fontfamily:"fontFamily",fontweight:"fontWeight",fontstyle:"fontStyle",fontsize:"fontSize"},setTeXclass:t.mbase.setChildTeXclass}),t.merror=t.mbase.Subclass({type:"merror",inferRow:!0,linebreakContainer:!0,texClass:t.TEXCLASS.ORD}),t.mpadded=t.mbase.Subclass({type:"mpadded",inferRow:!0,isSpacelike:t.mbase.childrenSpacelike,isEmbellished:t.mbase.childEmbellished,Core:t.mbase.childCore,CoreMO:t.mbase.childCoreMO,defaults:{mathbackground:t.INHERIT,mathcolor:t.INHERIT,width:"",height:"",depth:"",lspace:0,voffset:0},setTeXclass:t.mbase.setChildTeXclass}),t.mphantom=t.mbase.Subclass({type:"mphantom",texClass:t.TEXCLASS.ORD,inferRow:!0,isSpacelike:t.mbase.childrenSpacelike,isEmbellished:t.mbase.childEmbellished,Core:t.mbase.childCore,CoreMO:t.mbase.childCoreMO,setTeXclass:t.mbase.setChildTeXclass}),t.mfenced=t.mbase.Subclass({type:"mfenced",defaults:{mathbackground:t.INHERIT,mathcolor:t.INHERIT,open:"(",close:")",separators:","},addFakeNodes:function(){var e=this.getValues("open","close","separators");if(e.open=e.open.replace(/[ \t\n\r]/g,""),e.close=e.close.replace(/[ \t\n\r]/g,""),e.separators=e.separators.replace(/[ \t\n\r]/g,""),""!==e.open&&(this.SetData("open",t.mo(e.open).With({fence:!0,form:t.FORM.PREFIX,texClass:t.TEXCLASS.OPEN})),this.data.open.useMMLspacing=0),""!==e.separators){for(;e.separators.length0)&&this.Get("displaystyle")},adjustChild_scriptlevel:function(t){var e=this.Get("scriptlevel");return t>0&&e++,e},adjustChild_texprimestyle:function(t){return t===this.sub||this.Get("texprimestyle")},setTeXclass:t.mbase.setBaseTeXclasses}),t.msub=t.msubsup.Subclass({type:"msub"}),t.msup=t.msubsup.Subclass({type:"msup",sub:2,sup:1}),t.mmultiscripts=t.msubsup.Subclass({type:"mmultiscripts",adjustChild_texprimestyle:function(t){return t%2==1||this.Get("texprimestyle")}}),t.mprescripts=t.mbase.Subclass({type:"mprescripts"}),t.none=t.mbase.Subclass({type:"none"}),t.munderover=t.mbase.Subclass({type:"munderover",base:0,under:1,over:2,sub:1,sup:2,ACCENTS:["","accentunder","accent"],linebreakContainer:!0,isEmbellished:t.mbase.childEmbellished,Core:t.mbase.childCore,CoreMO:t.mbase.childCoreMO,defaults:{mathbackground:t.INHERIT,mathcolor:t.INHERIT,accent:t.AUTO,accentunder:t.AUTO,align:t.ALIGN.CENTER,texClass:t.AUTO,subscriptshift:"",superscriptshift:""},autoDefault:function(e){return"texClass"===e?this.isEmbellished()?this.CoreMO().Get(e):t.TEXCLASS.ORD:"accent"===e&&this.data[this.over]?this.data[this.over].CoreMO().Get("accent"):!("accentunder"!==e||!this.data[this.under])&&this.data[this.under].CoreMO().Get("accent")},adjustChild_displaystyle:function(t){return!(t>0)&&this.Get("displaystyle")},adjustChild_scriptlevel:function(t){var e=this.Get("scriptlevel"),n=this.data[this.base]&&!this.Get("displaystyle")&&this.data[this.base].CoreMO().Get("movablelimits");return t!=this.under||!n&&this.Get("accentunder")||e++,t!=this.over||!n&&this.Get("accent")||e++,e},adjustChild_texprimestyle:function(t){return!(t!==this.base||!this.data[this.over])||this.Get("texprimestyle")},setTeXclass:t.mbase.setBaseTeXclasses}),t.munder=t.munderover.Subclass({type:"munder"}),t.mover=t.munderover.Subclass({type:"mover",over:1,under:2,sup:1,sub:2,ACCENTS:["","accent","accentunder"]}),t.mtable=t.mbase.Subclass({type:"mtable",defaults:{mathbackground:t.INHERIT,mathcolor:t.INHERIT,align:t.ALIGN.AXIS,rowalign:t.ALIGN.BASELINE,columnalign:t.ALIGN.CENTER,groupalign:"{left}",alignmentscope:!0,columnwidth:t.WIDTH.AUTO,width:t.WIDTH.AUTO,rowspacing:"1ex",columnspacing:".8em",rowlines:t.LINES.NONE,columnlines:t.LINES.NONE,frame:t.LINES.NONE,framespacing:"0.4em 0.5ex",equalrows:!1,equalcolumns:!1,displaystyle:!1,side:t.SIDE.RIGHT,minlabelspacing:"0.8em",texClass:t.TEXCLASS.ORD,useHeight:1},adjustChild_displaystyle:function(){return null!=this.displaystyle?this.displaystyle:this.defaults.displaystyle},inheritFromMe:!0,noInherit:{mover:{align:!0},munder:{align:!0},munderover:{align:!0},mtable:{align:!0,rowalign:!0,columnalign:!0,groupalign:!0,alignmentscope:!0,columnwidth:!0,width:!0,rowspacing:!0,columnspacing:!0,rowlines:!0,columnlines:!0,frame:!0,framespacing:!0,equalrows:!0,equalcolumns:!0,displaystyle:!0,side:!0,minlabelspacing:!0,texClass:!0,useHeight:1}},linebreakContainer:!0,Append:function(){for(var e=0,n=arguments.length;e>10),56320+(1023&t)))}}),t.xml=t.mbase.Subclass({type:"xml",Init:function(){return this.div=document.createElement("div"),this.SUPER(arguments).Init.apply(this,arguments)},Append:function(){for(var t=0,e=arguments.length;t":n.REL,"?":[1,1,e.CLOSE],"\\":n.ORD,"^":n.ORD11,_:n.ORD11,"|":[2,2,e.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"#":n.ORD,$:n.ORD,".":[0,3,e.PUNCT,{separator:!0}],ʹ:n.ORD,"̀":n.ACCENT,"́":n.ACCENT,"̃":n.WIDEACCENT,"̄":n.ACCENT,"̆":n.ACCENT,"̇":n.ACCENT,"̈":n.ACCENT,"̌":n.ACCENT,"̲":n.WIDEACCENT,"̸":n.REL4,"―":[0,0,e.ORD,{stretchy:!0}],"‗":[0,0,e.ORD,{stretchy:!0}],"†":n.BIN3,"‡":n.BIN3,"⃗":n.ACCENT,ℑ:n.ORD,ℓ:n.ORD,℘:n.ORD,ℜ:n.ORD,"∅":n.ORD,"∞":n.ORD,"⌅":n.BIN3,"⌆":n.BIN3,"⌢":n.REL4,"⌣":n.REL4,"〈":n.OPEN,"〉":n.CLOSE,"⎪":n.ORD,"⎯":[0,0,e.ORD,{stretchy:!0}],"⎰":n.OPEN,"⎱":n.CLOSE,"─":n.ORD,"◯":n.BIN3,"♠":n.ORD,"♡":n.ORD,"♢":n.ORD,"♣":n.ORD,"〈":n.OPEN,"〉":n.CLOSE,"︷":n.WIDEACCENT,"︸":n.WIDEACCENT}}},{OPTYPES:n});var r=t.mo.prototype.OPTABLE;r.infix["^"]=n.WIDEREL,r.infix._=n.WIDEREL,r.prefix["∣"]=n.OPEN,r.prefix["∥"]=n.OPEN,r.postfix["∣"]=n.CLOSE,r.postfix["∥"]=n.CLOSE}(MathJax.ElementJax.mml),MathJax.ElementJax.mml.loadComplete("jax.js")},8408:()=>{MathJax.InputJax.AsciiMath=MathJax.InputJax({id:"AsciiMath",version:"2.7.2",directory:MathJax.InputJax.directory+"/AsciiMath",extensionDir:MathJax.InputJax.extensionDir+"/AsciiMath",config:{fixphi:!0,useMathMLspacing:!0,displaystyle:!0,decimalsign:"."}}),MathJax.InputJax.AsciiMath.Register("math/asciimath"),MathJax.InputJax.AsciiMath.loadComplete("config.js")},671:()=>{var t,e;!function(t){var e,n=MathJax.Object.Subclass({firstChild:null,lastChild:null,Init:function(){this.childNodes=[]},appendChild:function(t){return t.parent&&t.parent.removeChild(t),this.lastChild&&(this.lastChild.nextSibling=t),this.firstChild||(this.firstChild=t),this.childNodes.push(t),t.parent=this,this.lastChild=t,t},removeChild:function(t){for(var e=0,n=this.childNodes.length;e=r-1&&(this.lastChild=t),this.childNodes[n]=t,t.nextSibling=e.nextSibling,e.nextSibling=e.parent=null,e},hasChildNodes:function(t){return this.childNodes.length>0},toString:function(){return"{"+this.childNodes.join("")+"}"}}),r={getElementById:!0,createElementNS:function(n,r){var i=e[r]();return"mo"===r&&t.config.useMathMLspacing&&(i.useMMLspacing=128),i},createTextNode:function(t){return e.chars(t).With({nodeValue:t})},createDocumentFragment:function(){return n()}},i={appName:"MathJax"},o="blue",a=!0,s=!0,l=".",T="Microsoft"==i.appName.slice(0,9);function Q(t){return T?r.createElement(t):r.createElementNS("http://www.w3.org/1999/xhtml",t)}var c="http://www.w3.org/1998/Math/MathML";function u(t){return T?r.createElement("m:"+t):r.createElementNS(c,t)}function d(t,e){var n;return n=T?r.createElement("m:"+t):r.createElementNS(c,t),e&&n.appendChild(e),n}var h=["𝒜","ℬ","𝒞","𝒟","ℰ","ℱ","𝒢","ℋ","ℐ","𝒥","𝒦","ℒ","ℳ","𝒩","𝒪","𝒫","𝒬","ℛ","𝒮","𝒯","𝒰","𝒱","𝒲","𝒳","𝒴","𝒵","𝒶","𝒷","𝒸","𝒹","ℯ","𝒻","ℊ","𝒽","𝒾","𝒿","𝓀","𝓁","𝓂","𝓃","ℴ","𝓅","𝓆","𝓇","𝓈","𝓉","𝓊","𝓋","𝓌","𝓍","𝓎","𝓏"],p=["𝔄","𝔅","ℭ","𝔇","𝔈","𝔉","𝔊","ℌ","ℑ","𝔍","𝔎","𝔏","𝔐","𝔑","𝔒","𝔓","𝔔","ℜ","𝔖","𝔗","𝔘","𝔙","𝔚","𝔛","𝔜","ℨ","𝔞","𝔟","𝔠","𝔡","𝔢","𝔣","𝔤","𝔥","𝔦","𝔧","𝔨","𝔩","𝔪","𝔫","𝔬","𝔭","𝔮","𝔯","𝔰","𝔱","𝔲","𝔳","𝔴","𝔵","𝔶","𝔷"],m=["𝔸","𝔹","ℂ","𝔻","𝔼","𝔽","𝔾","ℍ","𝕀","𝕁","𝕂","𝕃","𝕄","ℕ","𝕆","ℙ","ℚ","ℝ","𝕊","𝕋","𝕌","𝕍","𝕎","𝕏","𝕐","ℤ","𝕒","𝕓","𝕔","𝕕","𝕖","𝕗","𝕘","𝕙","𝕚","𝕛","𝕜","𝕝","𝕞","𝕟","𝕠","𝕡","𝕢","𝕣","𝕤","𝕥","𝕦","𝕧","𝕨","𝕩","𝕪","𝕫"],f=0,y=1,g=2,L=3,b=4,v=5,x=6,_=7,H=8,w=9,O=10,M=15,S={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:O},E=[{input:"alpha",tag:"mi",output:"α",tex:null,ttype:f},{input:"beta",tag:"mi",output:"β",tex:null,ttype:f},{input:"chi",tag:"mi",output:"χ",tex:null,ttype:f},{input:"delta",tag:"mi",output:"δ",tex:null,ttype:f},{input:"Delta",tag:"mo",output:"Δ",tex:null,ttype:f},{input:"epsi",tag:"mi",output:"ε",tex:"epsilon",ttype:f},{input:"varepsilon",tag:"mi",output:"ɛ",tex:null,ttype:f},{input:"eta",tag:"mi",output:"η",tex:null,ttype:f},{input:"gamma",tag:"mi",output:"γ",tex:null,ttype:f},{input:"Gamma",tag:"mo",output:"Γ",tex:null,ttype:f},{input:"iota",tag:"mi",output:"ι",tex:null,ttype:f},{input:"kappa",tag:"mi",output:"κ",tex:null,ttype:f},{input:"lambda",tag:"mi",output:"λ",tex:null,ttype:f},{input:"Lambda",tag:"mo",output:"Λ",tex:null,ttype:f},{input:"lamda",tag:"mi",output:"λ",tex:null,ttype:f},{input:"Lamda",tag:"mo",output:"Λ",tex:null,ttype:f},{input:"mu",tag:"mi",output:"μ",tex:null,ttype:f},{input:"nu",tag:"mi",output:"ν",tex:null,ttype:f},{input:"omega",tag:"mi",output:"ω",tex:null,ttype:f},{input:"Omega",tag:"mo",output:"Ω",tex:null,ttype:f},{input:"phi",tag:"mi",output:"ϕ",tex:null,ttype:f},{input:"varphi",tag:"mi",output:"φ",tex:null,ttype:f},{input:"Phi",tag:"mo",output:"Φ",tex:null,ttype:f},{input:"pi",tag:"mi",output:"π",tex:null,ttype:f},{input:"Pi",tag:"mo",output:"Π",tex:null,ttype:f},{input:"psi",tag:"mi",output:"ψ",tex:null,ttype:f},{input:"Psi",tag:"mi",output:"Ψ",tex:null,ttype:f},{input:"rho",tag:"mi",output:"ρ",tex:null,ttype:f},{input:"sigma",tag:"mi",output:"σ",tex:null,ttype:f},{input:"Sigma",tag:"mo",output:"Σ",tex:null,ttype:f},{input:"tau",tag:"mi",output:"τ",tex:null,ttype:f},{input:"theta",tag:"mi",output:"θ",tex:null,ttype:f},{input:"vartheta",tag:"mi",output:"ϑ",tex:null,ttype:f},{input:"Theta",tag:"mo",output:"Θ",tex:null,ttype:f},{input:"upsilon",tag:"mi",output:"υ",tex:null,ttype:f},{input:"xi",tag:"mi",output:"ξ",tex:null,ttype:f},{input:"Xi",tag:"mo",output:"Ξ",tex:null,ttype:f},{input:"zeta",tag:"mi",output:"ζ",tex:null,ttype:f},{input:"*",tag:"mo",output:"⋅",tex:"cdot",ttype:f},{input:"**",tag:"mo",output:"∗",tex:"ast",ttype:f},{input:"***",tag:"mo",output:"⋆",tex:"star",ttype:f},{input:"//",tag:"mo",output:"/",tex:null,ttype:f},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:f},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:f},{input:"xx",tag:"mo",output:"×",tex:"times",ttype:f},{input:"|><",tag:"mo",output:"⋉",tex:"ltimes",ttype:f},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",ttype:f},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",ttype:f},{input:"-:",tag:"mo",output:"÷",tex:"div",ttype:f},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:H},{input:"@",tag:"mo",output:"∘",tex:"circ",ttype:f},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",ttype:f},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",ttype:f},{input:"o.",tag:"mo",output:"⊙",tex:"odot",ttype:f},{input:"sum",tag:"mo",output:"∑",tex:null,ttype:_},{input:"prod",tag:"mo",output:"∏",tex:null,ttype:_},{input:"^^",tag:"mo",output:"∧",tex:"wedge",ttype:f},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",ttype:_},{input:"vv",tag:"mo",output:"∨",tex:"vee",ttype:f},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",ttype:_},{input:"nn",tag:"mo",output:"∩",tex:"cap",ttype:f},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",ttype:_},{input:"uu",tag:"mo",output:"∪",tex:"cup",ttype:f},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",ttype:_},{input:"!=",tag:"mo",output:"≠",tex:"ne",ttype:f},{input:":=",tag:"mo",output:":=",tex:null,ttype:f},{input:"lt",tag:"mo",output:"<",tex:null,ttype:f},{input:"<=",tag:"mo",output:"≤",tex:"le",ttype:f},{input:"lt=",tag:"mo",output:"≤",tex:"leq",ttype:f},{input:"gt",tag:"mo",output:">",tex:null,ttype:f},{input:">=",tag:"mo",output:"≥",tex:"ge",ttype:f},{input:"gt=",tag:"mo",output:"≥",tex:"geq",ttype:f},{input:"-<",tag:"mo",output:"≺",tex:"prec",ttype:f},{input:"-lt",tag:"mo",output:"≺",tex:null,ttype:f},{input:">-",tag:"mo",output:"≻",tex:"succ",ttype:f},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",ttype:f},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",ttype:f},{input:"in",tag:"mo",output:"∈",tex:null,ttype:f},{input:"!in",tag:"mo",output:"∉",tex:"notin",ttype:f},{input:"sub",tag:"mo",output:"⊂",tex:"subset",ttype:f},{input:"sup",tag:"mo",output:"⊃",tex:"supset",ttype:f},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",ttype:f},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",ttype:f},{input:"-=",tag:"mo",output:"≡",tex:"equiv",ttype:f},{input:"~=",tag:"mo",output:"≅",tex:"cong",ttype:f},{input:"~~",tag:"mo",output:"≈",tex:"approx",ttype:f},{input:"~",tag:"mo",output:"∼",tex:"sim",ttype:f},{input:"prop",tag:"mo",output:"∝",tex:"propto",ttype:f},{input:"and",tag:"mtext",output:"and",tex:null,ttype:x},{input:"or",tag:"mtext",output:"or",tex:null,ttype:x},{input:"not",tag:"mo",output:"¬",tex:"neg",ttype:f},{input:"=>",tag:"mo",output:"⇒",tex:"implies",ttype:f},{input:"if",tag:"mo",output:"if",tex:null,ttype:x},{input:"<=>",tag:"mo",output:"⇔",tex:"iff",ttype:f},{input:"AA",tag:"mo",output:"∀",tex:"forall",ttype:f},{input:"EE",tag:"mo",output:"∃",tex:"exists",ttype:f},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",ttype:f},{input:"TT",tag:"mo",output:"⊤",tex:"top",ttype:f},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",ttype:f},{input:"|==",tag:"mo",output:"⊨",tex:"models",ttype:f},{input:"(",tag:"mo",output:"(",tex:"left(",ttype:b},{input:")",tag:"mo",output:")",tex:"right)",ttype:v},{input:"[",tag:"mo",output:"[",tex:"left[",ttype:b},{input:"]",tag:"mo",output:"]",tex:"right]",ttype:v},{input:"{",tag:"mo",output:"{",tex:null,ttype:b},{input:"}",tag:"mo",output:"}",tex:null,ttype:v},{input:"|",tag:"mo",output:"|",tex:null,ttype:w},{input:":|:",tag:"mo",output:"|",tex:null,ttype:f},{input:"|:",tag:"mo",output:"|",tex:null,ttype:b},{input:":|",tag:"mo",output:"|",tex:null,ttype:v},{input:"(:",tag:"mo",output:"〈",tex:"langle",ttype:b},{input:":)",tag:"mo",output:"〉",tex:"rangle",ttype:v},{input:"<<",tag:"mo",output:"〈",tex:null,ttype:b},{input:">>",tag:"mo",output:"〉",tex:null,ttype:v},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:b,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,ttype:v,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,ttype:f},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:H},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:H},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:H},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:H},{input:"oint",tag:"mo",output:"∮",tex:null,ttype:f},{input:"del",tag:"mo",output:"∂",tex:"partial",ttype:f},{input:"grad",tag:"mo",output:"∇",tex:"nabla",ttype:f},{input:"+-",tag:"mo",output:"±",tex:"pm",ttype:f},{input:"-+",tag:"mo",output:"∓",tex:"mp",ttype:f},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",ttype:f},{input:"oo",tag:"mo",output:"∞",tex:"infty",ttype:f},{input:"aleph",tag:"mo",output:"ℵ",tex:null,ttype:f},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:f},{input:":.",tag:"mo",output:"∴",tex:"therefore",ttype:f},{input:":'",tag:"mo",output:"∵",tex:"because",ttype:f},{input:"/_",tag:"mo",output:"∠",tex:"angle",ttype:f},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",ttype:f},{input:"'",tag:"mo",output:"′",tex:"prime",ttype:f},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:y,acc:!0},{input:"\\ ",tag:"mo",output:" ",tex:null,ttype:f},{input:"frown",tag:"mo",output:"⌢",tex:null,ttype:f},{input:"quad",tag:"mo",output:" ",tex:null,ttype:f},{input:"qquad",tag:"mo",output:" ",tex:null,ttype:f},{input:"cdots",tag:"mo",output:"⋯",tex:null,ttype:f},{input:"vdots",tag:"mo",output:"⋮",tex:null,ttype:f},{input:"ddots",tag:"mo",output:"⋱",tex:null,ttype:f},{input:"diamond",tag:"mo",output:"⋄",tex:null,ttype:f},{input:"square",tag:"mo",output:"□",tex:null,ttype:f},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",ttype:f},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",ttype:f},{input:"|~",tag:"mo",output:"⌈",tex:"lceiling",ttype:f},{input:"~|",tag:"mo",output:"⌉",tex:"rceiling",ttype:f},{input:"CC",tag:"mo",output:"ℂ",tex:null,ttype:f},{input:"NN",tag:"mo",output:"ℕ",tex:null,ttype:f},{input:"QQ",tag:"mo",output:"ℚ",tex:null,ttype:f},{input:"RR",tag:"mo",output:"ℝ",tex:null,ttype:f},{input:"ZZ",tag:"mo",output:"ℤ",tex:null,ttype:f},{input:"f",tag:"mi",output:"f",tex:null,ttype:y,func:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:y,func:!0},{input:"lim",tag:"mo",output:"lim",tex:null,ttype:_},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:_},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:y,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:y,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:y,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:y,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:y,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:y,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:y,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:y,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:y,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:y,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:y,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:y,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:y,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:y,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:y,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:y,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:y,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:y,rewriteleftright:["∥","∥"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:y,rewriteleftright:["⌊","⌋"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:y,rewriteleftright:["⌈","⌉"]},{input:"log",tag:"mo",output:"log",tex:null,ttype:y,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:y,func:!0},{input:"det",tag:"mo",output:"det",tex:null,ttype:y,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:f},{input:"mod",tag:"mo",output:"mod",tex:null,ttype:f},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:y,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:null,ttype:y,func:!0},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:f},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:f},{input:"min",tag:"mo",output:"min",tex:null,ttype:_},{input:"max",tag:"mo",output:"max",tex:null,ttype:_},{input:"Sin",tag:"mo",output:"Sin",tex:null,ttype:y,func:!0},{input:"Cos",tag:"mo",output:"Cos",tex:null,ttype:y,func:!0},{input:"Tan",tag:"mo",output:"Tan",tex:null,ttype:y,func:!0},{input:"Arcsin",tag:"mo",output:"Arcsin",tex:null,ttype:y,func:!0},{input:"Arccos",tag:"mo",output:"Arccos",tex:null,ttype:y,func:!0},{input:"Arctan",tag:"mo",output:"Arctan",tex:null,ttype:y,func:!0},{input:"Sinh",tag:"mo",output:"Sinh",tex:null,ttype:y,func:!0},{input:"Cosh",tag:"mo",output:"Cosh",tex:null,ttype:y,func:!0},{input:"Tanh",tag:"mo",output:"Tanh",tex:null,ttype:y,func:!0},{input:"Cot",tag:"mo",output:"Cot",tex:null,ttype:y,func:!0},{input:"Sec",tag:"mo",output:"Sec",tex:null,ttype:y,func:!0},{input:"Csc",tag:"mo",output:"Csc",tex:null,ttype:y,func:!0},{input:"Log",tag:"mo",output:"Log",tex:null,ttype:y,func:!0},{input:"Ln",tag:"mo",output:"Ln",tex:null,ttype:y,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,ttype:y,notexcopy:!0,rewriteleftright:["|","|"]},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",ttype:f},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",ttype:f},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",ttype:f},{input:"->",tag:"mo",output:"→",tex:"to",ttype:f},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",ttype:f},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",ttype:f},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",ttype:f},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",ttype:f},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",ttype:f},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",ttype:f},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:f},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",ttype:f},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:f},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:y},{input:"root",tag:"mroot",output:"root",tex:null,ttype:g},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:g},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:L},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:g},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:g},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:g},{input:"_",tag:"msub",output:"_",tex:null,ttype:L},{input:"^",tag:"msup",output:"^",tex:null,ttype:L},{input:"hat",tag:"mover",output:"^",tex:null,ttype:y,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",ttype:y,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,ttype:y,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,ttype:y,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:y,acc:!0},{input:"overarc",tag:"mover",output:"⏜",tex:"overparen",ttype:y,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",ttype:y,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",ttype:M,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",ttype:M,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,ttype:O},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:O},{input:"color",tag:"mstyle",ttype:g},{input:"id",tag:"mrow",ttype:g},{input:"class",tag:"mrow",ttype:g},{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:y},S,{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:null,ttype:y},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:y},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:null,ttype:y},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:y},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:null,ttype:y,codes:m},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:y,codes:m},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:null,ttype:y,codes:h},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:y,codes:h},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:null,ttype:y},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:y},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:null,ttype:y,codes:p},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:y,codes:p}];function A(t,e){return t.input>e.input?1:-1}var C,V,N,I=[];function P(){var t,e=E.length;for(t=0;t>1]=I[i];if(V=N,""!=o)return N=E[e].ttype,E[e];N=f,i=1,n=t.slice(0,1);for(var T=!0;"0"<=n&&n<="9"&&i<=t.length;)n=t.slice(i,i+1),i++;if(n==l&&"0"<=(n=t.slice(i,i+1))&&n<="9")for(T=!1,i++;"0"<=n&&n<="9"&&i<=t.length;)n=t.slice(i,i+1),i++;return T&&i>1||i>2?(n=t.slice(0,i-1),r="mn"):(i=2,r=("A">(n=t.slice(0,1))||n>"Z")&&("a">n||n>"z")?"mo":"mi"),"-"==n&&" "!==t.charAt(1)&&V==L?(N=L,{input:n,tag:r,output:n,ttype:y,func:!0}):{input:n,tag:r,output:n,ttype:f}}function j(t){var e;t.hasChildNodes()&&(!t.firstChild.hasChildNodes()||"mrow"!=t.nodeName&&"M:MROW"!=t.nodeName||"("!=(e=t.firstChild.firstChild.nodeValue)&&"["!=e&&"{"!=e||t.removeChild(t.firstChild),!t.lastChild.hasChildNodes()||"mrow"!=t.nodeName&&"M:MROW"!=t.nodeName||")"!=(e=t.lastChild.firstChild.nodeValue)&&"]"!=e&&"}"!=e||t.removeChild(t.lastChild))}function F(t){var e,n,i,o,a,s=r.createDocumentFragment();if(null==(e=B(t=k(t,0)))||e.ttype==v&&C>0)return[null,t];switch(e.ttype==H&&(e=B(t=e.output+k(t,e.input.length))),e.ttype){case _:case f:return t=k(t,e.input.length),[d(e.tag,r.createTextNode(e.output)),t];case b:return C++,i=q(t=k(t,e.input.length),!0),C--,"boolean"==typeof e.invisible&&e.invisible?n=d("mrow",i[0]):(n=d("mo",r.createTextNode(e.output)),(n=d("mrow",n)).appendChild(i[0])),[n,i[1]];case O:return e!=S&&(t=k(t,e.input.length)),-1==(o="{"==t.charAt(0)?t.indexOf("}"):"("==t.charAt(0)?t.indexOf(")"):"["==t.charAt(0)?t.indexOf("]"):e==S?t.slice(1).indexOf('"')+1:0)&&(o=t.length)," "==(a=t.slice(1,o)).charAt(0)&&((n=d("mspace")).setAttribute("width","1ex"),s.appendChild(n)),s.appendChild(d(e.tag,r.createTextNode(a)))," "==a.charAt(a.length-1)&&((n=d("mspace")).setAttribute("width","1ex"),s.appendChild(n)),t=k(t,o+1),[d("mrow",s),t];case M:case y:if(null==(i=F(t=k(t,e.input.length)))[0])return[d(e.tag,r.createTextNode(e.output)),t];if("boolean"==typeof e.func&&e.func)return"^"==(a=t.charAt(0))||"_"==a||"/"==a||"|"==a||","==a||1==e.input.length&&e.input.match(/\w/)&&"("!=a?[d(e.tag,r.createTextNode(e.output)),t]:((n=d("mrow",d(e.tag,r.createTextNode(e.output)))).appendChild(i[0]),[n,i[1]]);if(j(i[0]),"sqrt"==e.input)return[d(e.tag,i[0]),i[1]];if(void 0!==e.rewriteleftright)return(n=d("mrow",d("mo",r.createTextNode(e.rewriteleftright[0])))).appendChild(i[0]),n.appendChild(d("mo",r.createTextNode(e.rewriteleftright[1]))),[n,i[1]];if("cancel"==e.input)return(n=d(e.tag,i[0])).setAttribute("notation","updiagonalstrike"),[n,i[1]];if("boolean"==typeof e.acc&&e.acc){n=d(e.tag,i[0]);var l=d("mo",r.createTextNode(e.output));return"vec"==e.input&&("mrow"==i[0].nodeName&&1==i[0].childNodes.length&&null!==i[0].firstChild.firstChild.nodeValue&&1==i[0].firstChild.firstChild.nodeValue.length||null!==i[0].firstChild.nodeValue&&1==i[0].firstChild.nodeValue.length)&&l.setAttribute("stretchy",!1),n.appendChild(l),[n,i[1]]}if(!T&&void 0!==e.codes)for(o=0;o64&&a.charCodeAt(c)<91?Q+=e.codes[a.charCodeAt(c)-65]:a.charCodeAt(c)>96&&a.charCodeAt(c)<123?Q+=e.codes[a.charCodeAt(c)-71]:Q+=a.charAt(c);"mi"==i[0].nodeName?i[0]=d("mo").appendChild(r.createTextNode(Q)):i[0].replaceChild(d("mo").appendChild(r.createTextNode(Q)),i[0].childNodes[o])}return(n=d(e.tag,i[0])).setAttribute(e.atname,e.atval),[n,i[1]];case g:if(null==(i=F(t=k(t,e.input.length)))[0])return[d("mo",r.createTextNode(e.input)),t];j(i[0]);var u=F(i[1]);return null==u[0]?[d("mo",r.createTextNode(e.input)),t]:(j(u[0]),["color","class","id"].indexOf(e.input)>=0?("{"==t.charAt(0)?o=t.indexOf("}"):"("==t.charAt(0)?o=t.indexOf(")"):"["==t.charAt(0)&&(o=t.indexOf("]")),a=t.slice(1,o),n=d(e.tag,u[0]),"color"===e.input?n.setAttribute("mathcolor",a):"class"===e.input?n.setAttribute("class",a):"id"===e.input&&n.setAttribute("id",a),[n,u[1]]):("root"!=e.input&&"stackrel"!=e.output||s.appendChild(u[0]),s.appendChild(i[0]),"frac"==e.input&&s.appendChild(u[0]),[d(e.tag,s),u[1]]));case L:return t=k(t,e.input.length),[d("mo",r.createTextNode(e.output)),t];case x:return t=k(t,e.input.length),(n=d("mspace")).setAttribute("width","1ex"),s.appendChild(n),s.appendChild(d(e.tag,r.createTextNode(e.output))),(n=d("mspace")).setAttribute("width","1ex"),s.appendChild(n),[d("mrow",s),t];case w:return C++,i=q(t=k(t,e.input.length),!1),C--,a="",null!=i[0].lastChild&&(a=i[0].lastChild.firstChild.nodeValue),"|"==a&&","!==t.charAt(0)?(n=d("mo",r.createTextNode(e.output)),(n=d("mrow",n)).appendChild(i[0]),[n,i[1]]):(n=d("mo",r.createTextNode("∣")),[n=d("mrow",n),t]);default:return t=k(t,e.input.length),[d(e.tag,r.createTextNode(e.output)),t]}}function G(t){var e,n,i,o,a,s;if(n=B(t=k(t,0)),o=(a=F(t))[0],(e=B(t=a[1])).ttype==L&&"/"!=e.input){if(null==(a=F(t=k(t,e.input.length)))[0]?a[0]=d("mo",r.createTextNode("□")):j(a[0]),t=a[1],s=n.ttype==_||n.ttype==M,"_"==e.input)if("^"==(i=B(t)).input){var l=F(t=k(t,i.input.length));j(l[0]),t=l[1],(o=d(s?"munderover":"msubsup",o)).appendChild(a[0]),o.appendChild(l[0]),o=d("mrow",o)}else(o=d(s?"munder":"msub",o)).appendChild(a[0]);else"^"==e.input&&s?(o=d("mover",o)).appendChild(a[0]):(o=d(e.tag,o)).appendChild(a[0]);void 0!==n.func&&n.func&&(i=B(t)).ttype!=L&&i.ttype!=v&&(n.input.length>1||i.ttype==b)&&(a=G(t),(o=d("mrow",o)).appendChild(a[0]),t=a[1])}return[o,t]}function q(t,e){var n,i,o,a,s=r.createDocumentFragment();do{i=(o=G(t=k(t,0)))[0],(n=B(t=o[1])).ttype==L&&"/"==n.input?(null==(o=G(t=k(t,n.input.length)))[0]?o[0]=d("mo",r.createTextNode("□")):j(o[0]),t=o[1],j(i),(i=d(n.tag,i)).appendChild(o[0]),s.appendChild(i),n=B(t)):null!=i&&s.appendChild(i)}while((n.ttype!=v&&(n.ttype!=w||e)||0==C)&&null!=n&&""!=n.output);if(n.ttype==v||n.ttype==w){var l=s.childNodes.length;if(l>0&&"mrow"==s.childNodes[l-1].nodeName&&s.childNodes[l-1].lastChild&&s.childNodes[l-1].lastChild.firstChild){var T=s.childNodes[l-1].lastChild.firstChild.nodeValue;if(")"==T||"]"==T){var Q=s.childNodes[l-1].firstChild.firstChild.nodeValue;if("("==Q&&")"==T&&"}"!=n.output||"["==Q&&"]"==T){var c=[],u=!0,h=s.childNodes.length;for(a=0;u&&a1&&(u=c[a].length==c[a-2].length)}var m=[];if(u=u&&(c.length>1||c[0].length>0)){var f,y,g,b,x=r.createDocumentFragment();for(a=0;a2&&(s.removeChild(s.firstChild),s.removeChild(s.firstChild)),x.appendChild(d("mtr",f))}(i=d("mtable",x)).setAttribute("columnlines",m.join(" ")),"boolean"==typeof n.invisible&&n.invisible&&i.setAttribute("columnalign","left"),s.replaceChild(i,s.firstChild)}}}}t=k(t,n.input.length),"boolean"==typeof n.invisible&&n.invisible||(i=d("mo",r.createTextNode(n.output)),s.appendChild(i))}return[s,t]}function U(t,e){var n;return C=0,n=d("mstyle",q((t=(t=(t=t.replace(/ /g,"")).replace(/>/g,">")).replace(/</g,"<")).replace(/^\s+/g,""),!1)[0]),""!=o&&n.setAttribute("mathcolor",o),""!=z&&(n.setAttribute("fontsize",z),n.setAttribute("mathsize",z)),""!=Z&&(n.setAttribute("fontfamily",Z),n.setAttribute("mathvariant",Z)),a&&n.setAttribute("displaystyle","true"),n=d("math",n),s&&n.setAttribute("title",t.replace(/\s+/g," ")),n}s=!1;var Z="",z=(o="","");!function(){for(var t=0,e=E.length;t=r-1&&(this.lastChild=t),this.SetData(n,t),t.nextSibling=e.nextSibling,e.nextSibling=e.parent=null,e},hasChildNodes:function(t){return this.childNodes.length>0},setAttribute:function(t,e){this[t]=e}}),P()},Augment:function(t){for(var e in t)if(t.hasOwnProperty(e)){switch(e){case"displaystyle":a=t[e];break;case"decimal":decimal=t[e];break;case"parseMath":U=t[e];break;case"parseExpr":q=t[e];break;case"parseIexpr":G=t[e];break;case"parseSexpr":F=t[e];break;case"removeBrackets":j=t[e];break;case"getSymbol":B=t[e];break;case"position":D=t[e];break;case"removeCharsAndBlanks":k=t[e];break;case"createMmlNode":d=t[e];break;case"createElementMathML":u=t[e];break;case"createElementXHTML":Q=t[e];break;case"initSymbols":P=t[e];break;case"refreshSymbols":R=t[e];break;case"compareNames":A=t[e]}this[e]=t[e]}},parseMath:U,parseExpr:q,parseIexpr:G,parseSexr:F,removeBrackets:j,getSymbol:B,position:D,removeCharsAndBlanks:k,createMmlNode:d,createElementMathML:u,createElementXHTML:Q,initSymbols:P,refreshSymbols:R,compareNames:A,createDocumentFragment:n,document:r,define:function(t,e){E.push({input:t,tag:"mo",output:e,tex:null,ttype:H}),R()},newcommand:function(t,e){E.push({input:t,tag:"mo",output:e,tex:null,ttype:H}),R()},newsymbol:function(t){E.push(t),R()},symbols:E,names:I,TOKEN:{CONST:f,UNARY:y,BINARY:g,INFIX:L,LEFTBRACKET:b,RIGHTBRACKET:v,SPACE:x,UNDEROVER:_,DEFINITION:H,LEFTRIGHT:w,TEXT:O,UNARYUNDEROVER:M}}})}(MathJax.InputJax.AsciiMath),(t=MathJax.InputJax.AsciiMath).Augment({sourceMenuTitle:["AsciiMathInput","AsciiMath Input"],annotationEncoding:"text/x-asciimath",prefilterHooks:MathJax.Callback.Hooks(!0),postfilterHooks:MathJax.Callback.Hooks(!0),Translate:function(t){var n,r=MathJax.HTML.getScript(t),i={math:r,script:t},o=this.prefilterHooks.Execute(i);if(o)return o;r=i.math;try{n=this.AM.parseMath(r)}catch(t){if(!t.asciimathError)throw t;n=this.formatError(t,r)}return i.math=e(n),this.postfilterHooks.Execute(i),this.postfilterHooks.Execute(i)||i.math},formatError:function(t,n,r){var i=t.message.replace(/\n.*/,"");return MathJax.Hub.signal.Post(["AsciiMath Jax - parse error",i,n,r]),e.Error(i)},Error:function(t){throw MathJax.Hub.Insert(Error(t),{asciimathError:!0})},Startup:function(){e=MathJax.ElementJax.mml,this.AM.Init()}}),t.loadComplete("jax.js")},3710:function(t,e,n){"use strict";var r,i=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.MathML=void 0;var a=n(7137),s=n(4981),l=n(3899),T=n(6565),Q=n(9001),c=function(t){function e(e){void 0===e&&(e={});var n=this,r=o((0,s.separateOptions)(e,T.FindMathML.OPTIONS,Q.MathMLCompile.OPTIONS),3),i=r[0],a=r[1],c=r[2];return(n=t.call(this,i)||this).findMathML=n.options.FindMathML||new T.FindMathML(a),n.mathml=n.options.MathMLCompile||new Q.MathMLCompile(c),n.mmlFilters=new l.FunctionList,n}return i(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 n=t.start.node;if(!n||!t.end.node||this.options.forceReparse||"#text"===this.adaptor.kind(n)){var r=this.executeFilters(this.preFilters,t,e,(t.math||"").trim()),i=this.checkForErrors(this.adaptor.parse(r,"text/"+this.options.parseAs)),o=this.adaptor.body(i);1!==this.adaptor.childNodes(o).length&&this.error("MathML must consist of a single element"),n=this.adaptor.remove(this.adaptor.firstChild(o)),"math"!==this.adaptor.kind(n).replace(/^[a-z]+:/,"")&&this.error("MathML must be formed by a