diff --git a/404.html b/404.html index 86369a81b..40a194edf 100644 --- a/404.html +++ b/404.html @@ -16,7 +16,7 @@ - + diff --git a/LICENSE-text.html b/LICENSE-text.html index aeae0b408..42c91c6f2 100644 --- a/LICENSE-text.html +++ b/LICENSE-text.html @@ -1,5 +1,5 @@ -License • epidist +License • epidist Skip to contents diff --git a/LICENSE.html b/LICENSE.html index 5d157bcbb..623cb5ec6 100644 --- a/LICENSE.html +++ b/LICENSE.html @@ -1,5 +1,5 @@ -MIT License • epidist +MIT License • epidist Skip to contents diff --git a/articles/approx-inference.html b/articles/approx-inference.html index 06435f87b..3c57f6372 100644 --- a/articles/approx-inference.html +++ b/articles/approx-inference.html @@ -16,7 +16,7 @@ - + @@ -1236,19 +1236,19 @@

HMC -29.586 +28.383 Laplace -2.480 +2.448 ADVI -2.040 +2.002 Pathfinder -0.941 +0.922 diff --git a/articles/ebola.html b/articles/ebola.html index 847cbeed0..a66ed231f 100644 --- a/articles/ebola.html +++ b/articles/ebola.html @@ -16,7 +16,7 @@ - + diff --git a/articles/epidist.html b/articles/epidist.html index 4b71cec94..98639af8d 100644 --- a/articles/epidist.html +++ b/articles/epidist.html @@ -16,7 +16,7 @@ - + diff --git a/articles/faq.html b/articles/faq.html index 1ee3d1c8b..b9846baa7 100644 --- a/articles/faq.html +++ b/articles/faq.html @@ -16,7 +16,7 @@ - + Skip to contents diff --git a/articles/index.html b/articles/index.html index a4c87a8a3..acc937789 100644 --- a/articles/index.html +++ b/articles/index.html @@ -1,5 +1,5 @@ -Articles • epidist +Articles • epidist Skip to contents diff --git a/authors.html b/authors.html index 4e6cf3bd6..27a2d95f0 100644 --- a/authors.html +++ b/authors.html @@ -1,5 +1,5 @@ -Authors and Citation • epidist +Authors and Citation • epidist Skip to contents diff --git a/deps/MathJax-3.2.2/tex-chtml.min.js b/deps/MathJax-3.2.2/tex-chtml.min.js new file mode 100644 index 000000000..043aa25b7 --- /dev/null +++ b/deps/MathJax-3.2.2/tex-chtml.min.js @@ -0,0 +1,3 @@ +!function(){"use strict";var __webpack_modules__={351:function(t,e,r){var n,o,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=(Object.defineProperty(e,"__esModule",{value:!0}),e.AssistiveMmlHandler=e.AssistiveMmlMathDocumentMixin=e.AssistiveMmlMathItemMixin=e.LimitedMmlVisitor=void 0,r(4474)),i=r(9259),h=r(7233),d=(o=i.SerializedMmlVisitor,a(f,o),f.prototype.getAttributes=function(t){return o.prototype.getAttributes.call(this,t).replace(/ ?id=".*?"/,"")},f);function f(){return null!==o&&o.apply(this,arguments)||this}function m(t){return a(e,r=t),e.prototype.assistiveMml=function(t,e){void 0===e&&(e=!1),this.state()>=p.STATE.ASSISTIVEMML||(this.isEscaped||!t.options.enableAssistiveMml&&!e||(e=t.adaptor,t=t.toMML(this.root).replace(/\n */g,"").replace(//g,""),t=e.firstChild(e.body(e.parse(t,"text/html"))),t=e.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[t]),e.setAttribute(e.firstChild(this.typesetRoot),"aria-hidden","true"),e.setStyle(this.typesetRoot,"position","relative"),e.append(this.typesetRoot,t)),this.state(p.STATE.ASSISTIVEMML))},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}function y(t){var e,i;return a(r,i=t),r.prototype.toMML=function(t){return this.visitor.visitTree(t)},r.prototype.assistiveMml=function(){var t,e;if(!this.processed.isSet("assistive-mml")){try{for(var r=u(this.math),n=r.next();!n.done;n=r.next())n.value.assistiveMml(this)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.processed.set("assistive-mml")}return this},r.prototype.state=function(t,e){return i.prototype.state.call(this,t,e=void 0===e?!1:e),ts[0]&&e[1]=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLAdaptor=void 0,o=r(5009).AbstractDOMAdaptor,i(a,o),a.prototype.parse=function(t,e){return this.parser.parseFromString(t,e=void 0===e?"text/html":e)},a.prototype.create=function(t,e){return e?this.document.createElementNS(e,t):this.document.createElement(t)},a.prototype.text=function(t){return this.document.createTextNode(t)},a.prototype.head=function(t){return t.head||t},a.prototype.body=function(t){return t.body||t},a.prototype.root=function(t){return t.documentElement||t},a.prototype.doctype=function(t){return t.doctype?""):""},a.prototype.tags=function(t,e,r){r=(r=void 0===r?null:r)?t.getElementsByTagNameNS(r,e):t.getElementsByTagName(e);return Array.from(r)},a.prototype.getElements=function(t,e){var r,n,o=[];try{for(var i=l(t),a=i.next();!a.done;a=i.next()){var s=a.value;"string"==typeof s?o=o.concat(Array.from(this.document.querySelectorAll(s))):Array.isArray(s)||s instanceof this.window.NodeList||s instanceof this.window.HTMLCollection?o=o.concat(Array.from(s)):o.push(s)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},a.prototype.contains=function(t,e){return t.contains(e)},a.prototype.parent=function(t){return t.parentNode},a.prototype.append=function(t,e){return t.appendChild(e)},a.prototype.insert=function(t,e){return this.parent(e).insertBefore(t,e)},a.prototype.remove=function(t){return this.parent(t).removeChild(t)},a.prototype.replace=function(t,e){return this.parent(e).replaceChild(t,e)},a.prototype.clone=function(t){return t.cloneNode(!0)},a.prototype.split=function(t,e){return t.splitText(e)},a.prototype.next=function(t){return t.nextSibling},a.prototype.previous=function(t){return t.previousSibling},a.prototype.firstChild=function(t){return t.firstChild},a.prototype.lastChild=function(t){return t.lastChild},a.prototype.childNodes=function(t){return Array.from(t.childNodes)},a.prototype.childNode=function(t,e){return t.childNodes[e]},a.prototype.kind=function(t){var e=t.nodeType;return 1===e||3===e||8===e?t.nodeName.toLowerCase():""},a.prototype.value=function(t){return t.nodeValue||""},a.prototype.textContent=function(t){return t.textContent},a.prototype.innerHTML=function(t){return t.innerHTML},a.prototype.outerHTML=function(t){return t.outerHTML},a.prototype.serializeXML=function(t){return(new this.window.XMLSerializer).serializeToString(t)},a.prototype.setAttribute=function(t,e,r,n){return(n=void 0===n?null:n)?(e=n.replace(/.*\//,"")+":"+e.replace(/^.*:/,""),t.setAttributeNS(n,e,r)):t.setAttribute(e,r)},a.prototype.getAttribute=function(t,e){return t.getAttribute(e)},a.prototype.removeAttribute=function(t,e){return t.removeAttribute(e)},a.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},a.prototype.allAttributes=function(t){return Array.from(t.attributes).map(function(t){return{name:t.name,value:t.value}})},a.prototype.addClass=function(t,e){t.classList?t.classList.add(e):t.className=(t.className+" "+e).trim()},a.prototype.removeClass=function(t,e){t.classList?t.classList.remove(e):t.className=t.className.split(/ /).filter(function(t){return t!==e}).join(" ")},a.prototype.hasClass=function(t,e){return t.classList?t.classList.contains(e):0<=t.className.split(/ /).indexOf(e)},a.prototype.setStyle=function(t,e,r){t.style[e]=r},a.prototype.getStyle=function(t,e){return t.style[e]},a.prototype.allStyles=function(t){return t.style.cssText},a.prototype.insertRules=function(t,e){var r,n;try{for(var o=l(e.reverse()),i=o.next();!i.done;i=o.next()){var a=i.value;try{t.sheet.insertRule(a,0)}catch(t){console.warn("MathJax: can't insert css rule '".concat(a,"': ").concat(t.message))}}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},a.prototype.fontSize=function(t){t=this.window.getComputedStyle(t);return parseFloat(t.fontSize)},a.prototype.fontFamily=function(t){return this.window.getComputedStyle(t).fontFamily||""},a.prototype.nodeSize=function(t,e,r){return void 0===e&&(e=1),(r=void 0===r?!1:r)&&t.getBBox?[(r=t.getBBox()).width/e,r.height/e]:[t.offsetWidth/e,t.offsetHeight/e]},a.prototype.nodeBBox=function(t){t=t.getBoundingClientRect();return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},a);function a(t){var e=o.call(this,t.document)||this;return e.window=t,e.parser=new t.DOMParser,e}e.HTMLAdaptor=r},6191:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.browserAdaptor=void 0;var n=r(444);e.browserAdaptor=function(){return new n.HTMLAdaptor(window)}},9515:function(t,e,r){var c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=(Object.defineProperty(e,"__esModule",{value:!0}),e.MathJax=e.combineWithMathJax=e.combineDefaults=e.combineConfig=e.isObject=void 0,r(3282));function u(t){return"object"==typeof t&&null!==t}function s(t,e){var r,n;try{for(var o=c(Object.keys(e)),i=o.next();!i.done;i=o.next()){var a=i.value;"__esModule"!==a&&(!u(t[a])||!u(e[a])||e[a]instanceof Promise?null!==e[a]&&void 0!==e[a]&&(t[a]=e[a]):s(t[a],e[a]))}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return t}e.isObject=u,e.combineConfig=s,e.combineDefaults=function t(e,r,n){var o,i;e[r]||(e[r]={}),e=e[r];try{for(var a=c(Object.keys(n)),s=a.next();!s.done;s=a.next()){var l=s.value;u(e[l])&&u(n[l])?t(e,l,n[l]):null==e[l]&&null!=n[l]&&(e[l]=n[l])}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return e},e.combineWithMathJax=function(t){return s(e.MathJax,t)},void 0===r.g.MathJax&&(r.g.MathJax={}),r.g.MathJax.version||(r.g.MathJax={version:n.VERSION,_:{},config:r.g.MathJax}),e.MathJax=r.g.MathJax},235:function(t,l,e){var r,n,c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=(Object.defineProperty(l,"__esModule",{value:!0}),l.CONFIG=l.MathJax=l.Loader=l.PathFilters=l.PackageError=l.Package=void 0,e(9515)),u=e(265),i=e(265);Object.defineProperty(l,"Package",{enumerable:!0,get:function(){return i.Package}}),Object.defineProperty(l,"PackageError",{enumerable:!0,get:function(){return i.PackageError}});var a,s,p,e=e(7525);if(l.PathFilters={source:function(t){return l.CONFIG.source.hasOwnProperty(t.name)&&(t.name=l.CONFIG.source[t.name]),!0},normalize:function(t){var e=t.name;return e.match(/^(?:[a-z]+:\/)?\/|[a-z]:\\|\[/i)||(t.name="[mathjax]/"+e.replace(/^\.\//,"")),t.addExtension&&!e.match(/\.[^\/]+$/)&&(t.name+=".js"),!0},prefix:function(t){for(var e;(e=t.name.match(/^\[([^\]]*)\]/))&&l.CONFIG.paths.hasOwnProperty(e[1]);)t.name=l.CONFIG.paths[e[1]]+t.name.substr(e[0].length);return!0}},s=a=l.Loader||(l.Loader={}),p=o.MathJax.version,s.versions=new Map,s.ready=function(){for(var t,e,r=[],n=0;n=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractDOMAdaptor=void 0,n.prototype.node=function(t,e,r,n){void 0===e&&(e={}),void 0===r&&(r=[]);var o,i,a=this.create(t,n);this.setAttributes(a,e);try{for(var s=m(r),l=s.next();!l.done;l=s.next()){var c=l.value;this.append(a,c)}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a},n.prototype.setAttributes=function(t,e){var r,n,o,i,a,s;if(e.style&&"string"!=typeof e.style)try{for(var l=m(Object.keys(e.style)),c=l.next();!c.done;c=l.next()){var u=c.value;this.setStyle(t,u.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()}),e.style[u])}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(e.properties)try{for(var p=m(Object.keys(e.properties)),h=p.next();!h.done;h=p.next())t[u=h.value]=e.properties[u]}catch(t){o={error:t}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}try{for(var d=m(Object.keys(e)),f=d.next();!f.done;f=d.next())"style"===(u=f.value)&&"string"!=typeof e.style||"properties"===u||this.setAttribute(t,u,e[u])}catch(t){a={error:t}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}},n.prototype.replace=function(t,e){return this.insert(t,e),this.remove(e),e},n.prototype.childNode=function(t,e){return this.childNodes(t)[e]},n.prototype.allClasses=function(t){t=this.getAttribute(t,"class");return t?t.replace(/ +/g," ").replace(/^ /,"").replace(/ $/,"").split(/ /):[]},n);function n(t){this.document=t=void 0===t?null:t}e.AbstractDOMAdaptor=r},3494:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractFindMath=void 0;var n=r(7233);function o(t){var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t)}o.OPTIONS={},e.AbstractFindMath=o},3670:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractHandler=void 0,o=r(5722).AbstractMathDocument,i(l,o),l);function s(t,e){void 0===e&&(e=5),this.documentClass=a,this.adaptor=t,this.priority=e}function l(){return null!==o&&o.apply(this,arguments)||this}Object.defineProperty(s.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),s.prototype.handlesDocument=function(t){return!1},s.prototype.create=function(t,e){return new this.documentClass(t,this.adaptor,e)},s.NAME="generic",e.AbstractHandler=s},805:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.HandlerList=void 0,o=r(8666).PrioritizedList,i(s,o),s.prototype.register=function(t){return this.add(t,t.priority)},s.prototype.unregister=function(t){this.remove(t)},s.prototype.handlesDocument=function(t){var e,r;try{for(var n=a(this),o=n.next();!o.done;o=n.next()){var i=o.value.item;if(i.handlesDocument(t))return i}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}throw new Error("Can't find handler for document")},s.prototype.document=function(t,e){return void 0===e&&(e=null),this.handlesDocument(t).create(t,e)},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.HandlerList=r},9206:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractInputJax=void 0;var n=r(7233),o=r(7525);function i(t){void 0===t&&(t={}),this.adaptor=null,this.mmlFactory=null;var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t),this.preFilters=new o.FunctionList,this.postFilters=new o.FunctionList}Object.defineProperty(i.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),i.prototype.setAdaptor=function(t){this.adaptor=t},i.prototype.setMmlFactory=function(t){this.mmlFactory=t},i.prototype.initialize=function(){},i.prototype.reset=function(){for(var t=[],e=0;e=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=e&&a.item.renderDoc(t))return}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},g.prototype.renderMath=function(t,e,r){var n,o;void 0===r&&(r=h.STATE.UNPROCESSED);try{for(var i=f(this.items),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.priority>=r&&s.item.renderMath(t,e))return}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},g.prototype.renderConvert=function(t,e,r){var n,o;void 0===r&&(r=h.STATE.LAST);try{for(var i=f(this.items),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.priority>r)return;if(s.item.convert&&s.item.renderMath(t,e))return}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},g.prototype.findID=function(t){var e,r;try{for(var n=f(this.items),o=n.next();!o.done;o=n.next()){var i=o.value;if(i.item.id===t)return i.item}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return null},g);function g(){return null!==o&&o.apply(this,arguments)||this}r.RenderList=y,r.resetOptions={all:!1,processed:!1,inputJax:null,outputJax:null},r.resetAllOptions={all:!0,processed:!0,inputJax:[],outputJax:[]};S=s.AbstractInputJax,i(N,S),N.prototype.compile=function(t){return null};var b,v,_,S,O=N,M=(_=l.AbstractOutputJax,i(T,_),T.prototype.typeset=function(t,e){return null},T.prototype.escaped=function(t,e){return null},T),x=(v=c.AbstractMathList,i(C,v),C),e=(b=h.AbstractMathItem,i(A,b),A),s=(Object.defineProperty(E.prototype,"kind",{get:function(){return this.constructor.KIND},enumerable:!1,configurable:!0}),E.prototype.addRenderAction=function(t){for(var e=[],r=1;r=e&&this.state(e-1),t.renderActions.renderMath(this,t,e)},e.prototype.convert=function(t,e){void 0===e&&(e=i.STATE.LAST),t.renderActions.renderConvert(this,t,e)},e.prototype.compile=function(t){this.state()=i.STATE.INSERTED&&this.removeFromDocument(e),t=i.STATE.TYPESET&&(this.outputData={}),t=i.STATE.COMPILED&&(this.inputData={}),this._state=t),this._state},e.prototype.reset=function(t){this.state(i.STATE.UNPROCESSED,t=void 0===t?!1:t)},i.AbstractMathItem=e,i.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4},i.newState=function(t,e){if(t in i.STATE)throw Error("State "+t+" already exists");i.STATE[t]=e}},9e3:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMathList=void 0,o=r(103).LinkedList,i(a,o),a.prototype.isBefore=function(t,e){return t.start.i=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},e=(Object.defineProperty(r,"__esModule",{value:!0}),r.Attributes=r.INHERIT=void 0,r.INHERIT="_inherit_",n.prototype.set=function(t,e){this.attributes[t]=e},n.prototype.setList=function(t){Object.assign(this.attributes,t)},n.prototype.get=function(t){var e=this.attributes[t];return e=e===r.INHERIT?this.global[t]:e},n.prototype.getExplicit=function(t){if(this.attributes.hasOwnProperty(t))return this.attributes[t]},n.prototype.getList=function(){for(var t,e,r=[],n=0;n=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.MathMLVisitor=void 0,o=r(6325).MmlVisitor,i(a,o),a.prototype.visitTree=function(t,e){e=(this.document=e).createElement("top");return this.visitNode(t,e),this.document=null,e.firstChild},a.prototype.visitTextNode=function(t,e){e.appendChild(this.document.createTextNode(t.getText()))},a.prototype.visitXMLNode=function(t,e){e.appendChild(t.getXML().cloneNode(!0))},a.prototype.visitInferredMrowNode=function(t,e){var r,n;try{for(var o=c(t.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;this.visitNode(a,e)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},a.prototype.visitDefault=function(t,e){var r,n,o=this.document.createElement(t.kind);this.addAttributes(t,o);try{for(var i=c(t.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value;this.visitNode(s,o)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}e.appendChild(o)},a.prototype.addAttributes=function(t,e){var r,n,o=t.attributes,i=o.getExplicitNames();try{for(var a=c(i),s=a.next();!s.done;s=a.next()){var l=s.value;e.setAttribute(l,o.getExplicit(l).toString())}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}},a);function a(){var t=null!==o&&o.apply(this,arguments)||this;return t.document=null,t}e.MathMLVisitor=r},3909:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlFactory=void 0,r(7860)),r=r(6336),a=(o=a.AbstractNodeFactory,i(s,o),Object.defineProperty(s.prototype,"MML",{get:function(){return this.node},enumerable:!1,configurable:!0}),s.defaultNodes=r.MML,s);function s(){return null!==o&&o.apply(this,arguments)||this}e.MmlFactory=a},9007:function(t,s,e){var n,l,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 r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[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 r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},m=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0this.childNodes.length&&(t=1),this.attributes.set("selection",t)},s.defaults=a(a({},r.AbstractMmlNode.defaults),{actiontype:"toggle",selection:1}),s);function s(){return null!==o&&o.apply(this,arguments)||this}e.MmlMaction=i},142:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfenced=void 0,r(9007)),r=(c=p.AbstractMmlNode,o(a,c),Object.defineProperty(a.prototype,"kind",{get:function(){return"mfenced"},enumerable:!1,configurable:!0}),a.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,r=this.childNodes.length;e=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfrac=void 0,r(9007)),i=(o=r.AbstractMmlBaseNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"mfrac"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),l.prototype.setTeXclass=function(t){var e,r;this.getPrevClass(t);try{for(var n=s(this.childNodes),o=n.next();!o.done;o=n.next())o.value.setTeXclass(null)}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this},l.prototype.setChildInheritedAttributes=function(t,e,r,n){(!e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMo=void 0,r(9007)),d=r(4082),l=r(505),r=(o=s.AbstractMmlTokenNode,i(c,o),Object.defineProperty(c.prototype,"texClass",{get:function(){var t,e,r,n,o;return null===this._texClass?(t=this.getText(),o=(r=p(this.handleExplicitForm(this.getForms()),3))[0],e=r[1],r=r[2],(o=(n=this.constructor.OPTABLE)[o][t]||n[e][t]||n[r][t])?o[2]:s.TEXCLASS.REL):this._texClass},set:function(t){this._texClass=t},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"kind",{get:function(){return"mo"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isEmbellished",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"hasNewLine",{get:function(){return"newline"===this.attributes.get("linebreak")},enumerable:!1,configurable:!0}),c.prototype.coreParent=function(){for(var t=this,e=this,r=this.factory.getNodeClass("math");e&&e.isEmbellished&&e.coreMO()===this&&!(e instanceof r);)e=(t=e).parent;return t},c.prototype.coreText=function(t){if(!t)return"";if(t.isEmbellished)return t.coreMO().getText();for(;((t.isKind("mrow")||t.isKind("TeXAtom")&&t.texClass!==s.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():""},c.prototype.hasSpacingAttributes=function(){return this.attributes.isSet("lspace")||this.attributes.isSet("rspace")},Object.defineProperty(c.prototype,"isAccent",{get:function(){var t,e=!1,r=this.coreParent().parent;return e=r&&(t=r.isKind("mover")?r.childNodes[r.over].coreMO()?"accent":"":r.isKind("munder")?r.childNodes[r.under].coreMO()?"accentunder":"":r.isKind("munderover")?this===r.childNodes[r.over].coreMO()?"accent":this===r.childNodes[r.under].coreMO()?"accentunder":"":"")?void 0!==r.attributes.getExplicit(t)?e:this.attributes.get("accent"):e},enumerable:!1,configurable:!0}),c.prototype.setTeXclass=function(t){var e=this.attributes.getList("form","fence"),r=e.form,e=e.fence;return void 0===this.getProperty("texClass")&&(this.attributes.isSet("lspace")||this.attributes.isSet("rspace"))?null:(e&&this.texClass===s.TEXCLASS.REL&&("prefix"===r&&(this.texClass=s.TEXCLASS.OPEN),"postfix"===r&&(this.texClass=s.TEXCLASS.CLOSE)),this.adjustTeXclass(t))},c.prototype.adjustTeXclass=function(t){var e=this.texClass,r=this.prevClass;if(e===s.TEXCLASS.NONE)return t;if(t?(!t.getProperty("autoOP")||e!==s.TEXCLASS.BIN&&e!==s.TEXCLASS.REL||(r=t.texClass=s.TEXCLASS.ORD),r=this.prevClass=t.texClass||s.TEXCLASS.ORD,this.prevLevel=this.attributes.getInherited("scriptlevel")):r=this.prevClass=s.TEXCLASS.NONE,e!==s.TEXCLASS.BIN||r!==s.TEXCLASS.NONE&&r!==s.TEXCLASS.BIN&&r!==s.TEXCLASS.OP&&r!==s.TEXCLASS.REL&&r!==s.TEXCLASS.OPEN&&r!==s.TEXCLASS.PUNCT)if(r!==s.TEXCLASS.BIN||e!==s.TEXCLASS.REL&&e!==s.TEXCLASS.CLOSE&&e!==s.TEXCLASS.PUNCT){if(e===s.TEXCLASS.BIN){for(var n=this,o=this.parent;o&&o.parent&&o.isEmbellished&&(1===o.childNodes.length||!o.isKind("mrow")&&o.core()===n);)o=(n=o).parent;o.childNodes[o.childNodes.length-1]===n&&(this.texClass=s.TEXCLASS.ORD)}}else t.texClass=this.prevClass=s.TEXCLASS.ORD;else this.texClass=s.TEXCLASS.ORD;return this},c.prototype.setInheritedAttributes=function(t,e,r,n){o.prototype.setInheritedAttributes.call(this,t=void 0===t?{}:t,e=void 0===e?!1:e,r=void 0===r?0:r,n=void 0===n?!1:n);t=this.getText();this.checkOperatorTable(t),this.checkPseudoScripts(t),this.checkPrimes(t),this.checkMathAccent(t)},c.prototype.checkOperatorTable=function(t){var e,r,n=p(this.handleExplicitForm(this.getForms()),3),o=n[0],i=n[1],n=n[2],a=(this.attributes.setInherited("form",o),this.constructor.OPTABLE),s=a[o][t]||a[i][t]||a[n][t];if(s){void 0===this.getProperty("texClass")&&(this.texClass=s[2]);try{for(var l=h(Object.keys(s[3]||{})),c=l.next();!c.done;c=l.next()){var u=c.value;this.attributes.setInherited(u,s[3][u])}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}this.lspace=(s[0]+1)/18,this.rspace=(s[1]+1)/18}else{o=(0,d.getRange)(t);o&&(void 0===this.getProperty("texClass")&&(this.texClass=o[2]),i=this.constructor.MMLSPACING[o[2]],this.lspace=(i[0]+1)/18,this.rspace=(i[1]+1)/18)}},c.prototype.getForms=function(){for(var t=this,e=this.parent,r=this.Parent;r&&r.isEmbellished;)t=e,e=r.parent,r=r.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"]},c.prototype.handleExplicitForm=function(t){var e;return t=this.attributes.isSet("form")?[e=this.attributes.get("form")].concat(t.filter(function(t){return t!==e})):t},c.prototype.checkPseudoScripts=function(t){var e=this.constructor.pseudoScripts;t.match(e)&&(e=!(t=this.coreParent().Parent)||!(t.isKind("msubsup")&&!t.isKind("msub")),this.setProperty("pseudoscript",e),e&&(this.attributes.setInherited("lspace",0),this.attributes.setInherited("rspace",0)))},c.prototype.checkPrimes=function(t){var e,r=this.constructor.primes;t.match(r)&&(e=this.constructor.remapPrimes,r=(0,l.unicodeString)((0,l.unicodeChars)(t).map(function(t){return e[t]})),this.setProperty("primes",r))},c.prototype.checkMathAccent=function(t){var e=this.Parent;void 0===this.getProperty("mathaccent")&&e&&e.isKind("munderover")&&((e=e.childNodes[0]).isEmbellished&&e.coreMO()===this||(e=this.constructor.mathaccents,t.match(e)&&this.setProperty("mathaccent",!0)))},c.defaults=a(a({},s.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"}),c.MMLSPACING=d.MMLSPACING,c.OPTABLE=d.OPTABLE,c.pseudoScripts=new RegExp(["^[\"'*`","ª","°","²-´","¹","º","‘-‟","′-‷⁗","⁰ⁱ","⁴-ⁿ","₀-₎","]+$"].join("")),c.primes=new RegExp(["^[\"'`","‘-‟","]+$"].join("")),c.remapPrimes={34:8243,39:8242,96:8245,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},c.mathaccents=new RegExp(["^[","´́ˊ","`̀ˋ","¨̈","~̃˜","¯̄ˉ","˘̆","ˇ̌","^̂ˆ","→⃗","˙̇","˚̊","⃛","⃜","]$"].join("")),c);function c(){var t=null!==o&&o.apply(this,arguments)||this;return t._texClass=null,t.lspace=5/18,t.rspace=5/18,t}e.MmlMo=r},7238:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlInferredMrow=e.MmlMrow=void 0,r(9007)),r=(o=u.AbstractMmlNode,i(s,o),Object.defineProperty(s.prototype,"kind",{get:function(){return"mrow"},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isSpacelike",{get:function(){var t,e;try{for(var r=c(this.childNodes),n=r.next();!n.done;n=r.next())if(!n.value.isSpacelike)return!1}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return!0},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isEmbellished",{get:function(){var t,e,r=!1,n=0;try{for(var o=c(this.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;if(a)if(a.isEmbellished){if(r)return!1;r=!0,this._core=n}else if(!a.isSpacelike)return!1;n++}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return r},enumerable:!1,configurable:!0}),s.prototype.core=function(){return this.isEmbellished&&null!=this._core?this.childNodes[this._core]:this},s.prototype.coreMO=function(){return this.isEmbellished&&null!=this._core?this.childNodes[this._core].coreMO():this},s.prototype.nonSpaceLength=function(){var t,e,r=0;try{for(var n=c(this.childNodes),o=n.next();!o.done;o=n.next()){var i=o.value;i&&!i.isSpacelike&&r++}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},s.prototype.firstNonSpace=function(){var t,e;try{for(var r=c(this.childNodes),n=r.next();!n.done;n=r.next()){var o=n.value;if(o&&!o.isSpacelike)return o}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return null},s.prototype.lastNonSpace=function(){for(var t=this.childNodes.length;0<=--t;){var e=this.childNodes[t];if(e&&!e.isSpacelike)return e}return null},s.prototype.setTeXclass=function(t){var e,r,n,o;if(null!=this.getProperty("open")||null!=this.getProperty("close")){this.getPrevClass(t),t=null;try{for(var i=c(this.childNodes),a=i.next();!a.done;a=i.next())t=a.value.setTeXclass(t)}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}null==this.texClass&&(this.texClass=u.TEXCLASS.INNER)}else{try{for(var s=c(this.childNodes),l=s.next();!l.done;l=s.next())t=l.value.setTeXclass(t)}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}this.childNodes[0]&&this.updateTeXclass(this.childNodes[0])}return t},s.defaults=a({},u.AbstractMmlNode.defaults),s);function s(){var t=null!==o&&o.apply(this,arguments)||this;return t._core=null,t}e.MmlMrow=r;i(p,l=r),Object.defineProperty(p.prototype,"kind",{get:function(){return"inferredMrow"},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isInferred",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),p.prototype.toString=function(){return"["+this.childNodes.join(",")+"]"},p.defaults=r.defaults;var l,i=p;function p(){return null!==l&&l.apply(this,arguments)||this}e.MmlInferredMrow=i},7265:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtable=void 0,r(9007)),y=r(505),r=(c=u.AbstractMmlNode,o(a,c),Object.defineProperty(a.prototype,"kind",{get:function(){return"mtable"},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),a.prototype.setInheritedAttributes=function(t,e,r,n){var o,i;try{for(var a=m(u.indentAttributes),s=a.next();!s.done;s=a.next()){var l=s.value;t[l]&&this.attributes.setInherited(l,t[l][1]),void 0!==this.attributes.getExplicit(l)&&delete this.attributes.getAllAttributes()[l]}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}c.prototype.setInheritedAttributes.call(this,t,e,r,n)},a.prototype.setChildInheritedAttributes=function(t,e,r,n){var o,i,a,s;try{for(var l=m(this.childNodes),c=l.next();!c.done;c=l.next())(f=c.value).isKind("mtr")||this.replaceChild(this.factory.create("mtr"),f).appendChild(f)}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}r=this.getProperty("scriptlevel")||r,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"),p=(0,y.split)(this.attributes.get("rowalign"));try{for(var h=m(this.childNodes),d=h.next();!d.done;d=h.next()){var f=d.value;t.rowalign[1]=p.shift()||t.rowalign[1],f.setInheritedAttributes(t,e,r,!!u)}}catch(t){a={error:t}}finally{try{d&&!d.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}},a.prototype.verifyChildren=function(t){for(var e=null,r=this.factory,n=0;n=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMlabeledtr=e.MmlMtr=void 0,r(9007)),l=r(91),m=r(505),r=(a=s.AbstractMmlNode,o(c,a),Object.defineProperty(c.prototype,"kind",{get:function(){return"mtr"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),c.prototype.setChildInheritedAttributes=function(t,e,r,n){var o,i,a,s;try{for(var l=f(this.childNodes),c=l.next();!c.done;c=l.next())(d=c.value).isKind("mtd")||this.replaceChild(this.factory.create("mtd"),d).appendChild(d)}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}var u=(0,m.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 p=f(this.childNodes),h=p.next();!h.done;h=p.next()){var d=h.value;t.columnalign[1]=u.shift()||t.columnalign[1],d.setInheritedAttributes(t,e,r,n)}}catch(t){a={error:t}}finally{try{h&&!h.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}},c.prototype.verifyChildren=function(t){var e,r;if(!this.parent||this.parent.isKind("mtable")){try{for(var n=f(this.childNodes),o=n.next();!o.done;o=n.next()){var i=o.value;i.isKind("mtd")||(this.replaceChild(this.factory.create("mtd"),i).appendChild(i),t.fixMtables||i.mError("Children of "+this.kind+" must be mtd",t))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}a.prototype.verifyChildren.call(this,t)}else this.mError(this.kind+" can only be a child of an mtable",t,!0)},c.prototype.setTeXclass=function(t){var e,r;this.getPrevClass(t);try{for(var n=f(this.childNodes),o=n.next();!o.done;o=n.next())o.value.setTeXclass(null)}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this},c.defaults=i(i({},s.AbstractMmlNode.defaults),{rowalign:l.INHERIT,columnalign:l.INHERIT,groupalign:l.INHERIT}),c);function c(){return null!==a&&a.apply(this,arguments)||this}e.MmlMtr=r;o(p,u=r),Object.defineProperty(p.prototype,"kind",{get:function(){return"mlabeledtr"},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0});var u,s=p;function p(){return null!==u&&u.apply(this,arguments)||this}e.MmlMlabeledtr=s},5184:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=(Object.defineProperty(s,"__esModule",{value:!0}),s.OPTABLE=s.MMLSPACING=s.getRange=s.RANGES=s.MO=s.OPDEF=void 0,e(9007));function r(t,e,r,n){return[t,e,r=void 0===r?o.TEXCLASS.BIN:r,n=void 0===n?null:n]}s.OPDEF=r,s.MO={ORD:r(0,0,o.TEXCLASS.ORD),ORD11:r(1,1,o.TEXCLASS.ORD),ORD21:r(2,1,o.TEXCLASS.ORD),ORD02:r(0,2,o.TEXCLASS.ORD),ORD55:r(5,5,o.TEXCLASS.ORD),NONE:r(0,0,o.TEXCLASS.NONE),OP:r(1,2,o.TEXCLASS.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),OPFIXED:r(1,2,o.TEXCLASS.OP,{largeop:!0,movablelimits:!0}),INTEGRAL:r(0,1,o.TEXCLASS.OP,{largeop:!0,symmetric:!0}),INTEGRAL2:r(1,2,o.TEXCLASS.OP,{largeop:!0,symmetric:!0}),BIN3:r(3,3,o.TEXCLASS.BIN),BIN4:r(4,4,o.TEXCLASS.BIN),BIN01:r(0,1,o.TEXCLASS.BIN),BIN5:r(5,5,o.TEXCLASS.BIN),TALLBIN:r(4,4,o.TEXCLASS.BIN,{stretchy:!0}),BINOP:r(4,4,o.TEXCLASS.BIN,{largeop:!0,movablelimits:!0}),REL:r(5,5,o.TEXCLASS.REL),REL1:r(1,1,o.TEXCLASS.REL,{stretchy:!0}),REL4:r(4,4,o.TEXCLASS.REL),RELSTRETCH:r(5,5,o.TEXCLASS.REL,{stretchy:!0}),RELACCENT:r(5,5,o.TEXCLASS.REL,{accent:!0}),WIDEREL:r(5,5,o.TEXCLASS.REL,{accent:!0,stretchy:!0}),OPEN:r(0,0,o.TEXCLASS.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:r(0,0,o.TEXCLASS.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INNER:r(0,0,o.TEXCLASS.INNER),PUNCT:r(0,3,o.TEXCLASS.PUNCT),ACCENT:r(0,0,o.TEXCLASS.ORD,{accent:!0}),WIDEACCENT:r(0,0,o.TEXCLASS.ORD,{accent:!0,stretchy:!0})},s.RANGES=[[32,127,o.TEXCLASS.REL,"mo"],[160,191,o.TEXCLASS.ORD,"mo"],[192,591,o.TEXCLASS.ORD,"mi"],[688,879,o.TEXCLASS.ORD,"mo"],[880,6688,o.TEXCLASS.ORD,"mi"],[6832,6911,o.TEXCLASS.ORD,"mo"],[6912,7615,o.TEXCLASS.ORD,"mi"],[7616,7679,o.TEXCLASS.ORD,"mo"],[7680,8191,o.TEXCLASS.ORD,"mi"],[8192,8303,o.TEXCLASS.ORD,"mo"],[8304,8351,o.TEXCLASS.ORD,"mo"],[8448,8527,o.TEXCLASS.ORD,"mi"],[8528,8591,o.TEXCLASS.ORD,"mn"],[8592,8703,o.TEXCLASS.REL,"mo"],[8704,8959,o.TEXCLASS.BIN,"mo"],[8960,9215,o.TEXCLASS.ORD,"mo"],[9312,9471,o.TEXCLASS.ORD,"mn"],[9472,10223,o.TEXCLASS.ORD,"mo"],[10224,10239,o.TEXCLASS.REL,"mo"],[10240,10495,o.TEXCLASS.ORD,"mtext"],[10496,10623,o.TEXCLASS.REL,"mo"],[10624,10751,o.TEXCLASS.ORD,"mo"],[10752,11007,o.TEXCLASS.BIN,"mo"],[11008,11055,o.TEXCLASS.ORD,"mo"],[11056,11087,o.TEXCLASS.REL,"mo"],[11088,11263,o.TEXCLASS.ORD,"mo"],[11264,11744,o.TEXCLASS.ORD,"mi"],[11776,11903,o.TEXCLASS.ORD,"mo"],[11904,12255,o.TEXCLASS.ORD,"mi","normal"],[12272,12351,o.TEXCLASS.ORD,"mo"],[12352,42143,o.TEXCLASS.ORD,"mi","normal"],[42192,43055,o.TEXCLASS.ORD,"mi"],[43056,43071,o.TEXCLASS.ORD,"mn"],[43072,55295,o.TEXCLASS.ORD,"mi"],[63744,64255,o.TEXCLASS.ORD,"mi","normal"],[64256,65023,o.TEXCLASS.ORD,"mi"],[65024,65135,o.TEXCLASS.ORD,"mo"],[65136,65791,o.TEXCLASS.ORD,"mi"],[65792,65935,o.TEXCLASS.ORD,"mn"],[65936,74751,o.TEXCLASS.ORD,"mi","normal"],[74752,74879,o.TEXCLASS.ORD,"mn"],[74880,113823,o.TEXCLASS.ORD,"mi","normal"],[113824,119391,o.TEXCLASS.ORD,"mo"],[119648,119679,o.TEXCLASS.ORD,"mn"],[119808,120781,o.TEXCLASS.ORD,"mi"],[120782,120831,o.TEXCLASS.ORD,"mn"],[122624,129023,o.TEXCLASS.ORD,"mo"],[129024,129279,o.TEXCLASS.REL,"mo"],[129280,129535,o.TEXCLASS.ORD,"mo"],[131072,195103,o.TEXCLASS.ORD,"mi","normnal"]],s.getRange=function(t){var e,r,n=t.codePointAt(0);try{for(var o=l(s.RANGES),i=o.next();!i.done;i=o.next()){var a=i.value;if(n<=a[1]){if(n>=a[0])return a;break}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return null},s.MMLSPACING=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]],s.OPTABLE={prefix:{"(":s.MO.OPEN,"+":s.MO.BIN01,"-":s.MO.BIN01,"[":s.MO.OPEN,"{":s.MO.OPEN,"|":s.MO.OPEN,"||":[0,0,o.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,o.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¬":s.MO.ORD21,"±":s.MO.BIN01,"‖":[0,0,o.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"‘":[0,0,o.TEXCLASS.OPEN,{fence:!0}],"“":[0,0,o.TEXCLASS.OPEN,{fence:!0}],"ⅅ":s.MO.ORD21,"ⅆ":r(2,0,o.TEXCLASS.ORD),"∀":s.MO.ORD21,"∂":s.MO.ORD21,"∃":s.MO.ORD21,"∄":s.MO.ORD21,"∇":s.MO.ORD21,"∏":s.MO.OP,"∐":s.MO.OP,"∑":s.MO.OP,"−":s.MO.BIN01,"∓":s.MO.BIN01,"√":[1,1,o.TEXCLASS.ORD,{stretchy:!0}],"∛":s.MO.ORD11,"∜":s.MO.ORD11,"∠":s.MO.ORD,"∡":s.MO.ORD,"∢":s.MO.ORD,"∫":s.MO.INTEGRAL,"∬":s.MO.INTEGRAL,"∭":s.MO.INTEGRAL,"∮":s.MO.INTEGRAL,"∯":s.MO.INTEGRAL,"∰":s.MO.INTEGRAL,"∱":s.MO.INTEGRAL,"∲":s.MO.INTEGRAL,"∳":s.MO.INTEGRAL,"⋀":s.MO.OP,"⋁":s.MO.OP,"⋂":s.MO.OP,"⋃":s.MO.OP,"⌈":s.MO.OPEN,"⌊":s.MO.OPEN,"〈":s.MO.OPEN,"❲":s.MO.OPEN,"⟦":s.MO.OPEN,"⟨":s.MO.OPEN,"⟪":s.MO.OPEN,"⟬":s.MO.OPEN,"⟮":s.MO.OPEN,"⦀":[0,0,o.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦃":s.MO.OPEN,"⦅":s.MO.OPEN,"⦇":s.MO.OPEN,"⦉":s.MO.OPEN,"⦋":s.MO.OPEN,"⦍":s.MO.OPEN,"⦏":s.MO.OPEN,"⦑":s.MO.OPEN,"⦓":s.MO.OPEN,"⦕":s.MO.OPEN,"⦗":s.MO.OPEN,"⧼":s.MO.OPEN,"⨀":s.MO.OP,"⨁":s.MO.OP,"⨂":s.MO.OP,"⨃":s.MO.OP,"⨄":s.MO.OP,"⨅":s.MO.OP,"⨆":s.MO.OP,"⨇":s.MO.OP,"⨈":s.MO.OP,"⨉":s.MO.OP,"⨊":s.MO.OP,"⨋":s.MO.INTEGRAL2,"⨌":s.MO.INTEGRAL,"⨍":s.MO.INTEGRAL2,"⨎":s.MO.INTEGRAL2,"⨏":s.MO.INTEGRAL2,"⨐":s.MO.OP,"⨑":s.MO.OP,"⨒":s.MO.OP,"⨓":s.MO.OP,"⨔":s.MO.OP,"⨕":s.MO.INTEGRAL2,"⨖":s.MO.INTEGRAL2,"⨗":s.MO.INTEGRAL2,"⨘":s.MO.INTEGRAL2,"⨙":s.MO.INTEGRAL2,"⨚":s.MO.INTEGRAL2,"⨛":s.MO.INTEGRAL2,"⨜":s.MO.INTEGRAL2,"⫼":s.MO.OP,"⫿":s.MO.OP},postfix:{"!!":r(1,0),"!":[1,0,o.TEXCLASS.CLOSE,null],'"':s.MO.ACCENT,"&":s.MO.ORD,")":s.MO.CLOSE,"++":r(0,0),"--":r(0,0),"..":r(0,0),"...":s.MO.ORD,"'":s.MO.ACCENT,"]":s.MO.CLOSE,"^":s.MO.WIDEACCENT,_:s.MO.WIDEACCENT,"`":s.MO.ACCENT,"|":s.MO.CLOSE,"}":s.MO.CLOSE,"~":s.MO.WIDEACCENT,"||":[0,0,o.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,o.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¨":s.MO.ACCENT,"ª":s.MO.ACCENT,"¯":s.MO.WIDEACCENT,"°":s.MO.ORD,"²":s.MO.ACCENT,"³":s.MO.ACCENT,"´":s.MO.ACCENT,"¸":s.MO.ACCENT,"¹":s.MO.ACCENT,"º":s.MO.ACCENT,"ˆ":s.MO.WIDEACCENT,"ˇ":s.MO.WIDEACCENT,"ˉ":s.MO.WIDEACCENT,"ˊ":s.MO.ACCENT,"ˋ":s.MO.ACCENT,"ˍ":s.MO.WIDEACCENT,"˘":s.MO.ACCENT,"˙":s.MO.ACCENT,"˚":s.MO.ACCENT,"˜":s.MO.WIDEACCENT,"˝":s.MO.ACCENT,"˷":s.MO.WIDEACCENT,"̂":s.MO.WIDEACCENT,"̑":s.MO.ACCENT,"϶":s.MO.REL,"‖":[0,0,o.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"’":[0,0,o.TEXCLASS.CLOSE,{fence:!0}],"‚":s.MO.ACCENT,"‛":s.MO.ACCENT,"”":[0,0,o.TEXCLASS.CLOSE,{fence:!0}],"„":s.MO.ACCENT,"‟":s.MO.ACCENT,"′":s.MO.ORD,"″":s.MO.ACCENT,"‴":s.MO.ACCENT,"‵":s.MO.ACCENT,"‶":s.MO.ACCENT,"‷":s.MO.ACCENT,"‾":s.MO.WIDEACCENT,"⁗":s.MO.ACCENT,"⃛":s.MO.ACCENT,"⃜":s.MO.ACCENT,"⌉":s.MO.CLOSE,"⌋":s.MO.CLOSE,"〉":s.MO.CLOSE,"⎴":s.MO.WIDEACCENT,"⎵":s.MO.WIDEACCENT,"⏜":s.MO.WIDEACCENT,"⏝":s.MO.WIDEACCENT,"⏞":s.MO.WIDEACCENT,"⏟":s.MO.WIDEACCENT,"⏠":s.MO.WIDEACCENT,"⏡":s.MO.WIDEACCENT,"■":s.MO.BIN3,"□":s.MO.BIN3,"▪":s.MO.BIN3,"▫":s.MO.BIN3,"▭":s.MO.BIN3,"▮":s.MO.BIN3,"▯":s.MO.BIN3,"▰":s.MO.BIN3,"▱":s.MO.BIN3,"▲":s.MO.BIN4,"▴":s.MO.BIN4,"▶":s.MO.BIN4,"▷":s.MO.BIN4,"▸":s.MO.BIN4,"▼":s.MO.BIN4,"▾":s.MO.BIN4,"◀":s.MO.BIN4,"◁":s.MO.BIN4,"◂":s.MO.BIN4,"◄":s.MO.BIN4,"◅":s.MO.BIN4,"◆":s.MO.BIN4,"◇":s.MO.BIN4,"◈":s.MO.BIN4,"◉":s.MO.BIN4,"◌":s.MO.BIN4,"◍":s.MO.BIN4,"◎":s.MO.BIN4,"●":s.MO.BIN4,"◖":s.MO.BIN4,"◗":s.MO.BIN4,"◦":s.MO.BIN4,"♭":s.MO.ORD02,"♮":s.MO.ORD02,"♯":s.MO.ORD02,"❳":s.MO.CLOSE,"⟧":s.MO.CLOSE,"⟩":s.MO.CLOSE,"⟫":s.MO.CLOSE,"⟭":s.MO.CLOSE,"⟯":s.MO.CLOSE,"⦀":[0,0,o.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦄":s.MO.CLOSE,"⦆":s.MO.CLOSE,"⦈":s.MO.CLOSE,"⦊":s.MO.CLOSE,"⦌":s.MO.CLOSE,"⦎":s.MO.CLOSE,"⦐":s.MO.CLOSE,"⦒":s.MO.CLOSE,"⦔":s.MO.CLOSE,"⦖":s.MO.CLOSE,"⦘":s.MO.CLOSE,"⧽":s.MO.CLOSE},infix:{"!=":s.MO.BIN4,"#":s.MO.ORD,$:s.MO.ORD,"%":[3,3,o.TEXCLASS.ORD,null],"&&":s.MO.BIN4,"":s.MO.ORD,"*":s.MO.BIN3,"**":r(1,1),"*=":s.MO.BIN4,"+":s.MO.BIN4,"+=":s.MO.BIN4,",":[0,3,o.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"-":s.MO.BIN4,"-=":s.MO.BIN4,"->":s.MO.BIN5,".":[0,3,o.TEXCLASS.PUNCT,{separator:!0}],"/":s.MO.ORD11,"//":r(1,1),"/=":s.MO.BIN4,":":[1,2,o.TEXCLASS.REL,null],":=":s.MO.BIN4,";":[0,3,o.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"<":s.MO.REL,"<=":s.MO.BIN5,"<>":r(1,1),"=":s.MO.REL,"==":s.MO.BIN4,">":s.MO.REL,">=":s.MO.BIN5,"?":[1,1,o.TEXCLASS.CLOSE,null],"@":s.MO.ORD11,"\\":s.MO.ORD,"^":s.MO.ORD11,_:s.MO.ORD11,"|":[2,2,o.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"||":[2,2,o.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[2,2,o.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"±":s.MO.BIN4,"·":s.MO.BIN4,"×":s.MO.BIN4,"÷":s.MO.BIN4,"ʹ":s.MO.ORD,"̀":s.MO.ACCENT,"́":s.MO.ACCENT,"̃":s.MO.WIDEACCENT,"̄":s.MO.ACCENT,"̆":s.MO.ACCENT,"̇":s.MO.ACCENT,"̈":s.MO.ACCENT,"̌":s.MO.ACCENT,"̲":s.MO.WIDEACCENT,"̸":s.MO.REL4,"―":[0,0,o.TEXCLASS.ORD,{stretchy:!0}],"‗":[0,0,o.TEXCLASS.ORD,{stretchy:!0}],"†":s.MO.BIN3,"‡":s.MO.BIN3,"•":s.MO.BIN4,"…":s.MO.INNER,"⁃":s.MO.BIN4,"⁄":s.MO.TALLBIN,"⁡":s.MO.NONE,"⁢":s.MO.NONE,"⁣":[0,0,o.TEXCLASS.NONE,{linebreakstyle:"after",separator:!0}],"⁤":s.MO.NONE,"⃗":s.MO.ACCENT,"ℑ":s.MO.ORD,"ℓ":s.MO.ORD,"℘":s.MO.ORD,"ℜ":s.MO.ORD,"←":s.MO.WIDEREL,"↑":s.MO.RELSTRETCH,"→":s.MO.WIDEREL,"↓":s.MO.RELSTRETCH,"↔":s.MO.WIDEREL,"↕":s.MO.RELSTRETCH,"↖":s.MO.RELSTRETCH,"↗":s.MO.RELSTRETCH,"↘":s.MO.RELSTRETCH,"↙":s.MO.RELSTRETCH,"↚":s.MO.RELACCENT,"↛":s.MO.RELACCENT,"↜":s.MO.WIDEREL,"↝":s.MO.WIDEREL,"↞":s.MO.WIDEREL,"↟":s.MO.WIDEREL,"↠":s.MO.WIDEREL,"↡":s.MO.RELSTRETCH,"↢":s.MO.WIDEREL,"↣":s.MO.WIDEREL,"↤":s.MO.WIDEREL,"↥":s.MO.RELSTRETCH,"↦":s.MO.WIDEREL,"↧":s.MO.RELSTRETCH,"↨":s.MO.RELSTRETCH,"↩":s.MO.WIDEREL,"↪":s.MO.WIDEREL,"↫":s.MO.WIDEREL,"↬":s.MO.WIDEREL,"↭":s.MO.WIDEREL,"↮":s.MO.RELACCENT,"↯":s.MO.RELSTRETCH,"↰":s.MO.RELSTRETCH,"↱":s.MO.RELSTRETCH,"↲":s.MO.RELSTRETCH,"↳":s.MO.RELSTRETCH,"↴":s.MO.RELSTRETCH,"↵":s.MO.RELSTRETCH,"↶":s.MO.RELACCENT,"↷":s.MO.RELACCENT,"↸":s.MO.REL,"↹":s.MO.WIDEREL,"↺":s.MO.REL,"↻":s.MO.REL,"↼":s.MO.WIDEREL,"↽":s.MO.WIDEREL,"↾":s.MO.RELSTRETCH,"↿":s.MO.RELSTRETCH,"⇀":s.MO.WIDEREL,"⇁":s.MO.WIDEREL,"⇂":s.MO.RELSTRETCH,"⇃":s.MO.RELSTRETCH,"⇄":s.MO.WIDEREL,"⇅":s.MO.RELSTRETCH,"⇆":s.MO.WIDEREL,"⇇":s.MO.WIDEREL,"⇈":s.MO.RELSTRETCH,"⇉":s.MO.WIDEREL,"⇊":s.MO.RELSTRETCH,"⇋":s.MO.WIDEREL,"⇌":s.MO.WIDEREL,"⇍":s.MO.RELACCENT,"⇎":s.MO.RELACCENT,"⇏":s.MO.RELACCENT,"⇐":s.MO.WIDEREL,"⇑":s.MO.RELSTRETCH,"⇒":s.MO.WIDEREL,"⇓":s.MO.RELSTRETCH,"⇔":s.MO.WIDEREL,"⇕":s.MO.RELSTRETCH,"⇖":s.MO.RELSTRETCH,"⇗":s.MO.RELSTRETCH,"⇘":s.MO.RELSTRETCH,"⇙":s.MO.RELSTRETCH,"⇚":s.MO.WIDEREL,"⇛":s.MO.WIDEREL,"⇜":s.MO.WIDEREL,"⇝":s.MO.WIDEREL,"⇞":s.MO.REL,"⇟":s.MO.REL,"⇠":s.MO.WIDEREL,"⇡":s.MO.RELSTRETCH,"⇢":s.MO.WIDEREL,"⇣":s.MO.RELSTRETCH,"⇤":s.MO.WIDEREL,"⇥":s.MO.WIDEREL,"⇦":s.MO.WIDEREL,"⇧":s.MO.RELSTRETCH,"⇨":s.MO.WIDEREL,"⇩":s.MO.RELSTRETCH,"⇪":s.MO.RELSTRETCH,"⇫":s.MO.RELSTRETCH,"⇬":s.MO.RELSTRETCH,"⇭":s.MO.RELSTRETCH,"⇮":s.MO.RELSTRETCH,"⇯":s.MO.RELSTRETCH,"⇰":s.MO.WIDEREL,"⇱":s.MO.REL,"⇲":s.MO.REL,"⇳":s.MO.RELSTRETCH,"⇴":s.MO.RELACCENT,"⇵":s.MO.RELSTRETCH,"⇶":s.MO.WIDEREL,"⇷":s.MO.RELACCENT,"⇸":s.MO.RELACCENT,"⇹":s.MO.RELACCENT,"⇺":s.MO.RELACCENT,"⇻":s.MO.RELACCENT,"⇼":s.MO.RELACCENT,"⇽":s.MO.WIDEREL,"⇾":s.MO.WIDEREL,"⇿":s.MO.WIDEREL,"∁":r(1,2,o.TEXCLASS.ORD),"∅":s.MO.ORD,"∆":s.MO.BIN3,"∈":s.MO.REL,"∉":s.MO.REL,"∊":s.MO.REL,"∋":s.MO.REL,"∌":s.MO.REL,"∍":s.MO.REL,"∎":s.MO.BIN3,"−":s.MO.BIN4,"∓":s.MO.BIN4,"∔":s.MO.BIN4,"∕":s.MO.TALLBIN,"∖":s.MO.BIN4,"∗":s.MO.BIN4,"∘":s.MO.BIN4,"∙":s.MO.BIN4,"∝":s.MO.REL,"∞":s.MO.ORD,"∟":s.MO.REL,"∣":s.MO.REL,"∤":s.MO.REL,"∥":s.MO.REL,"∦":s.MO.REL,"∧":s.MO.BIN4,"∨":s.MO.BIN4,"∩":s.MO.BIN4,"∪":s.MO.BIN4,"∴":s.MO.REL,"∵":s.MO.REL,"∶":s.MO.REL,"∷":s.MO.REL,"∸":s.MO.BIN4,"∹":s.MO.REL,"∺":s.MO.BIN4,"∻":s.MO.REL,"∼":s.MO.REL,"∽":s.MO.REL,"∽̱":s.MO.BIN3,"∾":s.MO.REL,"∿":s.MO.BIN3,"≀":s.MO.BIN4,"≁":s.MO.REL,"≂":s.MO.REL,"≂̸":s.MO.REL,"≃":s.MO.REL,"≄":s.MO.REL,"≅":s.MO.REL,"≆":s.MO.REL,"≇":s.MO.REL,"≈":s.MO.REL,"≉":s.MO.REL,"≊":s.MO.REL,"≋":s.MO.REL,"≌":s.MO.REL,"≍":s.MO.REL,"≎":s.MO.REL,"≎̸":s.MO.REL,"≏":s.MO.REL,"≏̸":s.MO.REL,"≐":s.MO.REL,"≑":s.MO.REL,"≒":s.MO.REL,"≓":s.MO.REL,"≔":s.MO.REL,"≕":s.MO.REL,"≖":s.MO.REL,"≗":s.MO.REL,"≘":s.MO.REL,"≙":s.MO.REL,"≚":s.MO.REL,"≛":s.MO.REL,"≜":s.MO.REL,"≝":s.MO.REL,"≞":s.MO.REL,"≟":s.MO.REL,"≠":s.MO.REL,"≡":s.MO.REL,"≢":s.MO.REL,"≣":s.MO.REL,"≤":s.MO.REL,"≥":s.MO.REL,"≦":s.MO.REL,"≦̸":s.MO.REL,"≧":s.MO.REL,"≨":s.MO.REL,"≩":s.MO.REL,"≪":s.MO.REL,"≪̸":s.MO.REL,"≫":s.MO.REL,"≫̸":s.MO.REL,"≬":s.MO.REL,"≭":s.MO.REL,"≮":s.MO.REL,"≯":s.MO.REL,"≰":s.MO.REL,"≱":s.MO.REL,"≲":s.MO.REL,"≳":s.MO.REL,"≴":s.MO.REL,"≵":s.MO.REL,"≶":s.MO.REL,"≷":s.MO.REL,"≸":s.MO.REL,"≹":s.MO.REL,"≺":s.MO.REL,"≻":s.MO.REL,"≼":s.MO.REL,"≽":s.MO.REL,"≾":s.MO.REL,"≿":s.MO.REL,"≿̸":s.MO.REL,"⊀":s.MO.REL,"⊁":s.MO.REL,"⊂":s.MO.REL,"⊂⃒":s.MO.REL,"⊃":s.MO.REL,"⊃⃒":s.MO.REL,"⊄":s.MO.REL,"⊅":s.MO.REL,"⊆":s.MO.REL,"⊇":s.MO.REL,"⊈":s.MO.REL,"⊉":s.MO.REL,"⊊":s.MO.REL,"⊋":s.MO.REL,"⊌":s.MO.BIN4,"⊍":s.MO.BIN4,"⊎":s.MO.BIN4,"⊏":s.MO.REL,"⊏̸":s.MO.REL,"⊐":s.MO.REL,"⊐̸":s.MO.REL,"⊑":s.MO.REL,"⊒":s.MO.REL,"⊓":s.MO.BIN4,"⊔":s.MO.BIN4,"⊕":s.MO.BIN4,"⊖":s.MO.BIN4,"⊗":s.MO.BIN4,"⊘":s.MO.BIN4,"⊙":s.MO.BIN4,"⊚":s.MO.BIN4,"⊛":s.MO.BIN4,"⊜":s.MO.BIN4,"⊝":s.MO.BIN4,"⊞":s.MO.BIN4,"⊟":s.MO.BIN4,"⊠":s.MO.BIN4,"⊡":s.MO.BIN4,"⊢":s.MO.REL,"⊣":s.MO.REL,"⊤":s.MO.ORD55,"⊥":s.MO.REL,"⊦":s.MO.REL,"⊧":s.MO.REL,"⊨":s.MO.REL,"⊩":s.MO.REL,"⊪":s.MO.REL,"⊫":s.MO.REL,"⊬":s.MO.REL,"⊭":s.MO.REL,"⊮":s.MO.REL,"⊯":s.MO.REL,"⊰":s.MO.REL,"⊱":s.MO.REL,"⊲":s.MO.REL,"⊳":s.MO.REL,"⊴":s.MO.REL,"⊵":s.MO.REL,"⊶":s.MO.REL,"⊷":s.MO.REL,"⊸":s.MO.REL,"⊹":s.MO.REL,"⊺":s.MO.BIN4,"⊻":s.MO.BIN4,"⊼":s.MO.BIN4,"⊽":s.MO.BIN4,"⊾":s.MO.BIN3,"⊿":s.MO.BIN3,"⋄":s.MO.BIN4,"⋅":s.MO.BIN4,"⋆":s.MO.BIN4,"⋇":s.MO.BIN4,"⋈":s.MO.REL,"⋉":s.MO.BIN4,"⋊":s.MO.BIN4,"⋋":s.MO.BIN4,"⋌":s.MO.BIN4,"⋍":s.MO.REL,"⋎":s.MO.BIN4,"⋏":s.MO.BIN4,"⋐":s.MO.REL,"⋑":s.MO.REL,"⋒":s.MO.BIN4,"⋓":s.MO.BIN4,"⋔":s.MO.REL,"⋕":s.MO.REL,"⋖":s.MO.REL,"⋗":s.MO.REL,"⋘":s.MO.REL,"⋙":s.MO.REL,"⋚":s.MO.REL,"⋛":s.MO.REL,"⋜":s.MO.REL,"⋝":s.MO.REL,"⋞":s.MO.REL,"⋟":s.MO.REL,"⋠":s.MO.REL,"⋡":s.MO.REL,"⋢":s.MO.REL,"⋣":s.MO.REL,"⋤":s.MO.REL,"⋥":s.MO.REL,"⋦":s.MO.REL,"⋧":s.MO.REL,"⋨":s.MO.REL,"⋩":s.MO.REL,"⋪":s.MO.REL,"⋫":s.MO.REL,"⋬":s.MO.REL,"⋭":s.MO.REL,"⋮":s.MO.ORD55,"⋯":s.MO.INNER,"⋰":s.MO.REL,"⋱":[5,5,o.TEXCLASS.INNER,null],"⋲":s.MO.REL,"⋳":s.MO.REL,"⋴":s.MO.REL,"⋵":s.MO.REL,"⋶":s.MO.REL,"⋷":s.MO.REL,"⋸":s.MO.REL,"⋹":s.MO.REL,"⋺":s.MO.REL,"⋻":s.MO.REL,"⋼":s.MO.REL,"⋽":s.MO.REL,"⋾":s.MO.REL,"⋿":s.MO.REL,"⌅":s.MO.BIN3,"⌆":s.MO.BIN3,"⌢":s.MO.REL4,"⌣":s.MO.REL4,"〈":s.MO.OPEN,"〉":s.MO.CLOSE,"⎪":s.MO.ORD,"⎯":[0,0,o.TEXCLASS.ORD,{stretchy:!0}],"⎰":s.MO.OPEN,"⎱":s.MO.CLOSE,"─":s.MO.ORD,"△":s.MO.BIN4,"▵":s.MO.BIN4,"▹":s.MO.BIN4,"▽":s.MO.BIN4,"▿":s.MO.BIN4,"◃":s.MO.BIN4,"◯":s.MO.BIN3,"♠":s.MO.ORD,"♡":s.MO.ORD,"♢":s.MO.ORD,"♣":s.MO.ORD,"❘":s.MO.REL,"⟰":s.MO.RELSTRETCH,"⟱":s.MO.RELSTRETCH,"⟵":s.MO.WIDEREL,"⟶":s.MO.WIDEREL,"⟷":s.MO.WIDEREL,"⟸":s.MO.WIDEREL,"⟹":s.MO.WIDEREL,"⟺":s.MO.WIDEREL,"⟻":s.MO.WIDEREL,"⟼":s.MO.WIDEREL,"⟽":s.MO.WIDEREL,"⟾":s.MO.WIDEREL,"⟿":s.MO.WIDEREL,"⤀":s.MO.RELACCENT,"⤁":s.MO.RELACCENT,"⤂":s.MO.RELACCENT,"⤃":s.MO.RELACCENT,"⤄":s.MO.RELACCENT,"⤅":s.MO.RELACCENT,"⤆":s.MO.RELACCENT,"⤇":s.MO.RELACCENT,"⤈":s.MO.REL,"⤉":s.MO.REL,"⤊":s.MO.RELSTRETCH,"⤋":s.MO.RELSTRETCH,"⤌":s.MO.WIDEREL,"⤍":s.MO.WIDEREL,"⤎":s.MO.WIDEREL,"⤏":s.MO.WIDEREL,"⤐":s.MO.WIDEREL,"⤑":s.MO.RELACCENT,"⤒":s.MO.RELSTRETCH,"⤓":s.MO.RELSTRETCH,"⤔":s.MO.RELACCENT,"⤕":s.MO.RELACCENT,"⤖":s.MO.RELACCENT,"⤗":s.MO.RELACCENT,"⤘":s.MO.RELACCENT,"⤙":s.MO.RELACCENT,"⤚":s.MO.RELACCENT,"⤛":s.MO.RELACCENT,"⤜":s.MO.RELACCENT,"⤝":s.MO.RELACCENT,"⤞":s.MO.RELACCENT,"⤟":s.MO.RELACCENT,"⤠":s.MO.RELACCENT,"⤡":s.MO.RELSTRETCH,"⤢":s.MO.RELSTRETCH,"⤣":s.MO.REL,"⤤":s.MO.REL,"⤥":s.MO.REL,"⤦":s.MO.REL,"⤧":s.MO.REL,"⤨":s.MO.REL,"⤩":s.MO.REL,"⤪":s.MO.REL,"⤫":s.MO.REL,"⤬":s.MO.REL,"⤭":s.MO.REL,"⤮":s.MO.REL,"⤯":s.MO.REL,"⤰":s.MO.REL,"⤱":s.MO.REL,"⤲":s.MO.REL,"⤳":s.MO.RELACCENT,"⤴":s.MO.REL,"⤵":s.MO.REL,"⤶":s.MO.REL,"⤷":s.MO.REL,"⤸":s.MO.REL,"⤹":s.MO.REL,"⤺":s.MO.RELACCENT,"⤻":s.MO.RELACCENT,"⤼":s.MO.RELACCENT,"⤽":s.MO.RELACCENT,"⤾":s.MO.REL,"⤿":s.MO.REL,"⥀":s.MO.REL,"⥁":s.MO.REL,"⥂":s.MO.RELACCENT,"⥃":s.MO.RELACCENT,"⥄":s.MO.RELACCENT,"⥅":s.MO.RELACCENT,"⥆":s.MO.RELACCENT,"⥇":s.MO.RELACCENT,"⥈":s.MO.RELACCENT,"⥉":s.MO.REL,"⥊":s.MO.RELACCENT,"⥋":s.MO.RELACCENT,"⥌":s.MO.REL,"⥍":s.MO.REL,"⥎":s.MO.WIDEREL,"⥏":s.MO.RELSTRETCH,"⥐":s.MO.WIDEREL,"⥑":s.MO.RELSTRETCH,"⥒":s.MO.WIDEREL,"⥓":s.MO.WIDEREL,"⥔":s.MO.RELSTRETCH,"⥕":s.MO.RELSTRETCH,"⥖":s.MO.RELSTRETCH,"⥗":s.MO.RELSTRETCH,"⥘":s.MO.RELSTRETCH,"⥙":s.MO.RELSTRETCH,"⥚":s.MO.WIDEREL,"⥛":s.MO.WIDEREL,"⥜":s.MO.RELSTRETCH,"⥝":s.MO.RELSTRETCH,"⥞":s.MO.WIDEREL,"⥟":s.MO.WIDEREL,"⥠":s.MO.RELSTRETCH,"⥡":s.MO.RELSTRETCH,"⥢":s.MO.RELACCENT,"⥣":s.MO.REL,"⥤":s.MO.RELACCENT,"⥥":s.MO.REL,"⥦":s.MO.RELACCENT,"⥧":s.MO.RELACCENT,"⥨":s.MO.RELACCENT,"⥩":s.MO.RELACCENT,"⥪":s.MO.RELACCENT,"⥫":s.MO.RELACCENT,"⥬":s.MO.RELACCENT,"⥭":s.MO.RELACCENT,"⥮":s.MO.RELSTRETCH,"⥯":s.MO.RELSTRETCH,"⥰":s.MO.RELACCENT,"⥱":s.MO.RELACCENT,"⥲":s.MO.RELACCENT,"⥳":s.MO.RELACCENT,"⥴":s.MO.RELACCENT,"⥵":s.MO.RELACCENT,"⥶":s.MO.RELACCENT,"⥷":s.MO.RELACCENT,"⥸":s.MO.RELACCENT,"⥹":s.MO.RELACCENT,"⥺":s.MO.RELACCENT,"⥻":s.MO.RELACCENT,"⥼":s.MO.RELACCENT,"⥽":s.MO.RELACCENT,"⥾":s.MO.REL,"⥿":s.MO.REL,"⦁":s.MO.BIN3,"⦂":s.MO.BIN3,"⦙":s.MO.BIN3,"⦚":s.MO.BIN3,"⦛":s.MO.BIN3,"⦜":s.MO.BIN3,"⦝":s.MO.BIN3,"⦞":s.MO.BIN3,"⦟":s.MO.BIN3,"⦠":s.MO.BIN3,"⦡":s.MO.BIN3,"⦢":s.MO.BIN3,"⦣":s.MO.BIN3,"⦤":s.MO.BIN3,"⦥":s.MO.BIN3,"⦦":s.MO.BIN3,"⦧":s.MO.BIN3,"⦨":s.MO.BIN3,"⦩":s.MO.BIN3,"⦪":s.MO.BIN3,"⦫":s.MO.BIN3,"⦬":s.MO.BIN3,"⦭":s.MO.BIN3,"⦮":s.MO.BIN3,"⦯":s.MO.BIN3,"⦰":s.MO.BIN3,"⦱":s.MO.BIN3,"⦲":s.MO.BIN3,"⦳":s.MO.BIN3,"⦴":s.MO.BIN3,"⦵":s.MO.BIN3,"⦶":s.MO.BIN4,"⦷":s.MO.BIN4,"⦸":s.MO.BIN4,"⦹":s.MO.BIN4,"⦺":s.MO.BIN4,"⦻":s.MO.BIN4,"⦼":s.MO.BIN4,"⦽":s.MO.BIN4,"⦾":s.MO.BIN4,"⦿":s.MO.BIN4,"⧀":s.MO.REL,"⧁":s.MO.REL,"⧂":s.MO.BIN3,"⧃":s.MO.BIN3,"⧄":s.MO.BIN4,"⧅":s.MO.BIN4,"⧆":s.MO.BIN4,"⧇":s.MO.BIN4,"⧈":s.MO.BIN4,"⧉":s.MO.BIN3,"⧊":s.MO.BIN3,"⧋":s.MO.BIN3,"⧌":s.MO.BIN3,"⧍":s.MO.BIN3,"⧎":s.MO.REL,"⧏":s.MO.REL,"⧏̸":s.MO.REL,"⧐":s.MO.REL,"⧐̸":s.MO.REL,"⧑":s.MO.REL,"⧒":s.MO.REL,"⧓":s.MO.REL,"⧔":s.MO.REL,"⧕":s.MO.REL,"⧖":s.MO.BIN4,"⧗":s.MO.BIN4,"⧘":s.MO.BIN3,"⧙":s.MO.BIN3,"⧛":s.MO.BIN3,"⧜":s.MO.BIN3,"⧝":s.MO.BIN3,"⧞":s.MO.REL,"⧟":s.MO.BIN3,"⧠":s.MO.BIN3,"⧡":s.MO.REL,"⧢":s.MO.BIN4,"⧣":s.MO.REL,"⧤":s.MO.REL,"⧥":s.MO.REL,"⧦":s.MO.REL,"⧧":s.MO.BIN3,"⧨":s.MO.BIN3,"⧩":s.MO.BIN3,"⧪":s.MO.BIN3,"⧫":s.MO.BIN3,"⧬":s.MO.BIN3,"⧭":s.MO.BIN3,"⧮":s.MO.BIN3,"⧯":s.MO.BIN3,"⧰":s.MO.BIN3,"⧱":s.MO.BIN3,"⧲":s.MO.BIN3,"⧳":s.MO.BIN3,"⧴":s.MO.REL,"⧵":s.MO.BIN4,"⧶":s.MO.BIN4,"⧷":s.MO.BIN4,"⧸":s.MO.BIN3,"⧹":s.MO.BIN3,"⧺":s.MO.BIN3,"⧻":s.MO.BIN3,"⧾":s.MO.BIN4,"⧿":s.MO.BIN4,"⨝":s.MO.BIN3,"⨞":s.MO.BIN3,"⨟":s.MO.BIN3,"⨠":s.MO.BIN3,"⨡":s.MO.BIN3,"⨢":s.MO.BIN4,"⨣":s.MO.BIN4,"⨤":s.MO.BIN4,"⨥":s.MO.BIN4,"⨦":s.MO.BIN4,"⨧":s.MO.BIN4,"⨨":s.MO.BIN4,"⨩":s.MO.BIN4,"⨪":s.MO.BIN4,"⨫":s.MO.BIN4,"⨬":s.MO.BIN4,"⨭":s.MO.BIN4,"⨮":s.MO.BIN4,"⨯":s.MO.BIN4,"⨰":s.MO.BIN4,"⨱":s.MO.BIN4,"⨲":s.MO.BIN4,"⨳":s.MO.BIN4,"⨴":s.MO.BIN4,"⨵":s.MO.BIN4,"⨶":s.MO.BIN4,"⨷":s.MO.BIN4,"⨸":s.MO.BIN4,"⨹":s.MO.BIN4,"⨺":s.MO.BIN4,"⨻":s.MO.BIN4,"⨼":s.MO.BIN4,"⨽":s.MO.BIN4,"⨾":s.MO.BIN4,"⨿":s.MO.BIN4,"⩀":s.MO.BIN4,"⩁":s.MO.BIN4,"⩂":s.MO.BIN4,"⩃":s.MO.BIN4,"⩄":s.MO.BIN4,"⩅":s.MO.BIN4,"⩆":s.MO.BIN4,"⩇":s.MO.BIN4,"⩈":s.MO.BIN4,"⩉":s.MO.BIN4,"⩊":s.MO.BIN4,"⩋":s.MO.BIN4,"⩌":s.MO.BIN4,"⩍":s.MO.BIN4,"⩎":s.MO.BIN4,"⩏":s.MO.BIN4,"⩐":s.MO.BIN4,"⩑":s.MO.BIN4,"⩒":s.MO.BIN4,"⩓":s.MO.BIN4,"⩔":s.MO.BIN4,"⩕":s.MO.BIN4,"⩖":s.MO.BIN4,"⩗":s.MO.BIN4,"⩘":s.MO.BIN4,"⩙":s.MO.REL,"⩚":s.MO.BIN4,"⩛":s.MO.BIN4,"⩜":s.MO.BIN4,"⩝":s.MO.BIN4,"⩞":s.MO.BIN4,"⩟":s.MO.BIN4,"⩠":s.MO.BIN4,"⩡":s.MO.BIN4,"⩢":s.MO.BIN4,"⩣":s.MO.BIN4,"⩤":s.MO.BIN4,"⩥":s.MO.BIN4,"⩦":s.MO.REL,"⩧":s.MO.REL,"⩨":s.MO.REL,"⩩":s.MO.REL,"⩪":s.MO.REL,"⩫":s.MO.REL,"⩬":s.MO.REL,"⩭":s.MO.REL,"⩮":s.MO.REL,"⩯":s.MO.REL,"⩰":s.MO.REL,"⩱":s.MO.BIN4,"⩲":s.MO.BIN4,"⩳":s.MO.REL,"⩴":s.MO.REL,"⩵":s.MO.REL,"⩶":s.MO.REL,"⩷":s.MO.REL,"⩸":s.MO.REL,"⩹":s.MO.REL,"⩺":s.MO.REL,"⩻":s.MO.REL,"⩼":s.MO.REL,"⩽":s.MO.REL,"⩽̸":s.MO.REL,"⩾":s.MO.REL,"⩾̸":s.MO.REL,"⩿":s.MO.REL,"⪀":s.MO.REL,"⪁":s.MO.REL,"⪂":s.MO.REL,"⪃":s.MO.REL,"⪄":s.MO.REL,"⪅":s.MO.REL,"⪆":s.MO.REL,"⪇":s.MO.REL,"⪈":s.MO.REL,"⪉":s.MO.REL,"⪊":s.MO.REL,"⪋":s.MO.REL,"⪌":s.MO.REL,"⪍":s.MO.REL,"⪎":s.MO.REL,"⪏":s.MO.REL,"⪐":s.MO.REL,"⪑":s.MO.REL,"⪒":s.MO.REL,"⪓":s.MO.REL,"⪔":s.MO.REL,"⪕":s.MO.REL,"⪖":s.MO.REL,"⪗":s.MO.REL,"⪘":s.MO.REL,"⪙":s.MO.REL,"⪚":s.MO.REL,"⪛":s.MO.REL,"⪜":s.MO.REL,"⪝":s.MO.REL,"⪞":s.MO.REL,"⪟":s.MO.REL,"⪠":s.MO.REL,"⪡":s.MO.REL,"⪡̸":s.MO.REL,"⪢":s.MO.REL,"⪢̸":s.MO.REL,"⪣":s.MO.REL,"⪤":s.MO.REL,"⪥":s.MO.REL,"⪦":s.MO.REL,"⪧":s.MO.REL,"⪨":s.MO.REL,"⪩":s.MO.REL,"⪪":s.MO.REL,"⪫":s.MO.REL,"⪬":s.MO.REL,"⪭":s.MO.REL,"⪮":s.MO.REL,"⪯":s.MO.REL,"⪯̸":s.MO.REL,"⪰":s.MO.REL,"⪰̸":s.MO.REL,"⪱":s.MO.REL,"⪲":s.MO.REL,"⪳":s.MO.REL,"⪴":s.MO.REL,"⪵":s.MO.REL,"⪶":s.MO.REL,"⪷":s.MO.REL,"⪸":s.MO.REL,"⪹":s.MO.REL,"⪺":s.MO.REL,"⪻":s.MO.REL,"⪼":s.MO.REL,"⪽":s.MO.REL,"⪾":s.MO.REL,"⪿":s.MO.REL,"⫀":s.MO.REL,"⫁":s.MO.REL,"⫂":s.MO.REL,"⫃":s.MO.REL,"⫄":s.MO.REL,"⫅":s.MO.REL,"⫆":s.MO.REL,"⫇":s.MO.REL,"⫈":s.MO.REL,"⫉":s.MO.REL,"⫊":s.MO.REL,"⫋":s.MO.REL,"⫌":s.MO.REL,"⫍":s.MO.REL,"⫎":s.MO.REL,"⫏":s.MO.REL,"⫐":s.MO.REL,"⫑":s.MO.REL,"⫒":s.MO.REL,"⫓":s.MO.REL,"⫔":s.MO.REL,"⫕":s.MO.REL,"⫖":s.MO.REL,"⫗":s.MO.REL,"⫘":s.MO.REL,"⫙":s.MO.REL,"⫚":s.MO.REL,"⫛":s.MO.REL,"⫝":s.MO.REL,"⫝̸":s.MO.REL,"⫞":s.MO.REL,"⫟":s.MO.REL,"⫠":s.MO.REL,"⫡":s.MO.REL,"⫢":s.MO.REL,"⫣":s.MO.REL,"⫤":s.MO.REL,"⫥":s.MO.REL,"⫦":s.MO.REL,"⫧":s.MO.REL,"⫨":s.MO.REL,"⫩":s.MO.REL,"⫪":s.MO.REL,"⫫":s.MO.REL,"⫬":s.MO.REL,"⫭":s.MO.REL,"⫮":s.MO.REL,"⫯":s.MO.REL,"⫰":s.MO.REL,"⫱":s.MO.REL,"⫲":s.MO.REL,"⫳":s.MO.REL,"⫴":s.MO.BIN4,"⫵":s.MO.BIN4,"⫶":s.MO.BIN4,"⫷":s.MO.REL,"⫸":s.MO.REL,"⫹":s.MO.REL,"⫺":s.MO.REL,"⫻":s.MO.BIN4,"⫽":s.MO.BIN4,"⫾":s.MO.BIN3,"⭅":s.MO.RELSTRETCH,"⭆":s.MO.RELSTRETCH,"〈":s.MO.OPEN,"〉":s.MO.CLOSE,"︷":s.MO.WIDEACCENT,"︸":s.MO.WIDEACCENT}},s.OPTABLE.infix["^"]=s.MO.WIDEREL,s.OPTABLE.infix._=s.MO.WIDEREL,s.OPTABLE.infix["⫝̸"]=s.MO.REL},9259:function(t,n,e){var o,r,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[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 r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0"+(r.match(/\S/)?"\n"+r+e:"")+""},p.prototype.visitAnnotationNode=function(t,e){return e+""+this.childNodeMml(t,"","")+""},p.prototype.visitDefault=function(t,e){var r=t.kind,n=a(t.isToken||0===t.childNodes.length?["",""]:["\n",e],2),o=n[0],n=n[1],i=this.childNodeMml(t,e+" ",o);return e+"<"+r+this.getAttributes(t)+">"+(i.match(/\S/)?o+i+n:"")+""},p.prototype.childNodeMml=function(t,e,r){var n,o,i="";try{for(var a=u(t.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;i+=this.visitNode(l,e)+r}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},p.prototype.getAttributes=function(t){var e,r,n=[],o=this.constructor.defaultAttributes[t.kind]||{},i=Object.assign({},o,this.getDataAttributes(t),t.attributes.getAllAttributes()),o=this.constructor.variants;i.hasOwnProperty("mathvariant")&&o.hasOwnProperty(i.mathvariant)&&(i.mathvariant=o[i.mathvariant]);try{for(var a=u(Object.keys(i)),s=a.next();!s.done;s=a.next()){var l=s.value,c=String(i[l]);void 0!==c&&n.push(l+'="'+this.quoteHTML(c)+'"')}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return n.length?" "+n.join(" "):""},p.prototype.getDataAttributes=function(t){var e,r={},n=t.attributes.getExplicit("mathvariant"),o=this.constructor.variants,o=(n&&o.hasOwnProperty(n)&&this.setDataAttribute(r,"variant",n),t.getProperty("variantForm")&&this.setDataAttribute(r,"alternate","1"),t.getProperty("pseudoscript")&&this.setDataAttribute(r,"pseudoscript","true"),!1===t.getProperty("autoOP")&&this.setDataAttribute(r,"auto-op","false"),t.getProperty("scriptalign")),n=(o&&this.setDataAttribute(r,"script-align",o),t.getProperty("texClass"));return void 0!==n&&(o=!0,(o=n===l.TEXCLASS.OP&&t.isKind("mi")?!(1<(e=t.getText()).length&&e.match(c.MmlMi.operatorName)):o)&&this.setDataAttribute(r,"texclass",n<0?"NONE":l.TEXCLASSNAMES[n])),t.getProperty("scriptlevel")&&!1===t.getProperty("useHeight")&&this.setDataAttribute(r,"smallmatrix","true"),r},p.prototype.setDataAttribute=function(t,e,r){t[n.DATAMJX+e]=r},p.prototype.quoteHTML=function(t){return t.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/[\uD800-\uDBFF]./g,n.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,n.toEntity)},p.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"},p.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}},p);function p(){return null!==r&&r.apply(this,arguments)||this}n.SerializedMmlVisitor=e},2975:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractOutputJax=void 0;var n=r(7233),o=r(7525);function i(t){void 0===t&&(t={}),this.adaptor=null;var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t),this.postFilters=new o.FunctionList}Object.defineProperty(i.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),i.prototype.setAdaptor=function(t){this.adaptor=t},i.prototype.initialize=function(){},i.prototype.reset=function(){for(var t=[],e=0;e=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEmptyNode=e.AbstractNode=void 0,Object.defineProperty(i.prototype,"kind",{get:function(){return"unknown"},enumerable:!1,configurable:!0}),i.prototype.setProperty=function(t,e){this.properties[t]=e},i.prototype.getProperty=function(t){return this.properties[t]},i.prototype.getPropertyNames=function(){return Object.keys(this.properties)},i.prototype.getAllProperties=function(){return this.properties},i.prototype.removeProperty=function(){for(var t,e,r=[],n=0;n=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLDocument=void 0,r(5722)),T=r(7233),l=r(3363),c=r(3335),u=r(5138),p=r(4474),r=(i=s.AbstractMathDocument,o(h,i),h.prototype.findPosition=function(t,e,r,n){var o,i,a=this.adaptor;try{for(var s=C(n[t]),l=s.next();!l.done;l=s.next()){var c=l.value,u=A(c,2),p=u[0],h=u[1];if(e<=h&&"#text"===a.kind(p))return{node:p,n:Math.max(e,0),delim:r};e-=h}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return{node:null,n:0,delim:r}},h.prototype.mathItem=function(t,e,r){var n=t.math,o=this.findPosition(t.n,t.start.n,t.open,r),r=this.findPosition(t.n,t.end.n,t.close,r);return new this.options.MathItem(n,e,t.display,o,r)},h.prototype.findMath=function(t){var e,r,n,o,i,a,s,l,c;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 u=C(this.adaptor.getElements(t.elements,this.document)),p=u.next();!p.done;p=u.next()){var h=p.value,d=A([null,null],2),f=d[0],m=d[1];try{n=void 0;for(var y=C(this.inputJax),g=y.next();!g.done;g=y.next()){var b=g.value,v=new this.options.MathList;if(b.processStrings){null===f&&(f=(i=A(this.domStrings.find(h),2))[0],m=i[1]);try{a=void 0;for(var _=C(b.findMath(f)),S=_.next();!S.done;S=_.next()){var O=S.value;v.push(this.mathItem(O,b,m))}}catch(t){a={error:t}}finally{try{S&&!S.done&&(s=_.return)&&s.call(_)}finally{if(a)throw a.error}}}else try{l=void 0;for(var M=C(b.findMath(h)),x=M.next();!x.done;x=M.next()){var O=x.value,E=new this.options.MathItem(O.math,b,O.display,O.start,O.end);v.push(E)}}catch(t){l={error:t}}finally{try{x&&!x.done&&(c=M.return)&&c.call(M)}finally{if(l)throw l.error}}this.math.merge(v)}}catch(t){n={error:t}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{p&&!p.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}this.processed.set("findMath")}return this},h.prototype.updateDocument=function(){return this.processed.isSet("updateDocument")||(this.addPageElements(),this.addStyleSheet(),i.prototype.updateDocument.call(this),this.processed.set("updateDocument")),this},h.prototype.addPageElements=function(){var t=this.adaptor.body(this.document),e=this.documentPageElements();e&&this.adaptor.append(t,e)},h.prototype.addStyleSheet=function(){var t,e,r=this.documentStyleSheet(),n=this.adaptor;r&&!n.parent(r)&&(t=n.head(this.document),(e=this.findSheet(t,n.getAttribute(r,"id")))?n.replace(r,e):n.append(t,r))},h.prototype.findSheet=function(t,e){var r,n;if(e)try{for(var o=C(this.adaptor.tags(t,"style")),i=o.next();!i.done;i=o.next()){var a=i.value;if(this.adaptor.getAttribute(a,"id")===e)return a}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null},h.prototype.removeFromDocument=function(t){var e,r;if(void 0===t&&(t=!1),this.processed.isSet("updateDocument"))try{for(var n=C(this.math),o=n.next();!o.done;o=n.next()){var i=o.value;i.state()>=p.STATE.INSERTED&&i.state(p.STATE.TYPESET,t)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this.processed.clear("updateDocument"),this},h.prototype.documentStyleSheet=function(){return this.outputJax.styleSheet(this)},h.prototype.documentPageElements=function(){return this.outputJax.pageElements(this)},h.prototype.addStyles=function(t){this.styles.push(t)},h.prototype.getStyles=function(){return this.styles},h.KIND="HTML",h.OPTIONS=a(a({},s.AbstractMathDocument.OPTIONS),{renderActions:(0,T.expandable)(a(a({},s.AbstractMathDocument.OPTIONS.renderActions),{styles:[p.STATE.INSERTED+1,"","updateStyleSheet",!1]})),MathList:c.HTMLMathList,MathItem:l.HTMLMathItem,DomStrings:null}),h);function h(t,e,r){var n=this,r=A((0,T.separateOptions)(r,u.HTMLDomStrings.OPTIONS),2),o=r[0],r=r[1];return(n=i.call(this,t,e,o)||this).domStrings=n.options.DomStrings||new u.HTMLDomStrings(r),n.domStrings.adaptor=e,n.styles=[],n}e.HTMLDocument=r},5138:function(t,e,r){var a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=a.STATE.TYPESET&&(e=this.adaptor,r=this.start.node,n=e.text(""),t&&(t=this.start.delim+this.math+this.end.delim,n=this.inputJax.processStrings?e.text(t):(t=e.parse(t,"text/html"),e.firstChild(e.body(t)))),e.parent(r)&&e.replace(n,r),this.start.node=this.end.node=n,this.start.n=this.end.n=0)},s);function s(t,e,r,n,o){return i.call(this,t,e,r=void 0===r?!0:r,n=void 0===n?{node:null,n:0,delim:""}:n,o=void 0===o?{node:null,n:0,delim:""}:o)||this}e.HTMLMathItem=r},3335:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLMathList=void 0,o=r(9e3).AbstractMathList,i(a,o),a);function a(){return null!==o&&o.apply(this,arguments)||this}e.HTMLMathList=r},8462:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},y=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o,b=r(9007),v=n(r(1256)),n=o=o||{};function i(t,e,r){var n,o,i=[];try{for(var a=g(t.getList("m"+e+r)),s=a.next();!s.done;s=a.next()){var l,c,u=s.value,p=u.childNodes;p[u[e]]&&p[u[r]]||(l=u.parent,c=p[u[e]]?t.nodeFactory.create("node","m"+e,[p[u.base],p[u[e]]]):t.nodeFactory.create("node","m"+r,[p[u.base],p[u[r]]]),v.default.copyAttributes(u,c),l?l.replaceChild(c,u):t.root=c,i.push(u))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}t.removeFromList("m"+e+r,i)}function a(t,e,r){var n,o,i=[];try{for(var a=g(t.getList(e)),s=a.next();!s.done;s=a.next()){var l,c,u,p=s.value;p.attributes.get("displaystyle")||(c=(l=p.childNodes[p.base]).coreMO(),l.getProperty("movablelimits")&&!c.attributes.getExplicit("movablelimits")&&(u=t.nodeFactory.create("node",r,p.childNodes),v.default.copyAttributes(p,u),p.parent?p.parent.replaceChild(u,p):t.root=u,i.push(p)))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}t.removeFromList(e,i)}n.cleanStretchy=function(t){var e,r,n=t.data;try{for(var o=g(n.getList("fixStretchy")),i=o.next();!i.done;i=o.next()){var a,s,l,c=i.value;v.default.getProperty(c,"fixStretchy")&&((a=v.default.getForm(c))&&a[3]&&a[3].stretchy&&v.default.setAttribute(c,"stretchy",!1),s=c.parent,v.default.getTexClass(c)||a&&a[2]||(l=n.nodeFactory.create("node","TeXAtom",[c]),s.replaceChild(l,c),l.inheritAttributesFrom(c)),v.default.removeProperties(c,"fixStretchy"))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},n.cleanAttributes=function(t){t.data.root.walkTree(function(t,e){var r,n,o=t.attributes;if(o){var i=new Set((o.get("mjx-keep-attrs")||"").split(/ /));delete o.getAllAttributes()["mjx-keep-attrs"];try{for(var a=g(o.getExplicitNames()),s=a.next();!s.done;s=a.next()){var l=s.value;i.has(l)||o.attributes[l]!==t.attributes.getInherited(l)||delete o.attributes[l]}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}},{})},n.combineRelations=function(t){var e,r,n,o,i=[];try{for(var a=g(t.data.getList("mo")),s=a.next();!s.done;s=a.next()){var l=s.value;if(!l.getProperty("relationsCombined")&&l.parent&&(!l.parent||v.default.isType(l.parent,"mrow"))&&v.default.getTexClass(l)===b.TEXCLASS.REL){for(var c=l.parent,u=void 0,p=c.childNodes,h=p.indexOf(l)+1,d=v.default.getProperty(l,"variantForm");h=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},a=(Object.defineProperty(e,"__esModule",{value:!0}),i(r(5453))),s=r(8929),l=i(r(1256)),u=r(7233);function p(t,e){void 0===e&&(e=[]),this.options={},this.packageData=new Map,this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.handlers=t.handlers,this.nodeFactory=new s.NodeFactory,(this.nodeFactory.configuration=this).nodeFactory.setCreators(t.nodes),this.itemFactory=new a.default(t.items),this.itemFactory.configuration=this,u.defaultOptions.apply(void 0,o([this.options],n(e),!1)),(0,u.defaultOptions)(this.options,t.options)}p.prototype.pushParser=function(t){this.parsers.unshift(t)},p.prototype.popParser=function(){this.parsers.shift()},Object.defineProperty(p.prototype,"parser",{get:function(){return this.parsers[0]},enumerable:!1,configurable:!0}),p.prototype.clear=function(){this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.tags.resetTag()},p.prototype.addNode=function(t,e){var r;(this.nodeLists[t]||(this.nodeLists[t]=[])).push(e),e.kind!==t&&(r=((r=l.default.getProperty(e,"in-lists")||"")?r.split(/,/):[]).concat(t).join(","),l.default.setProperty(e,"in-lists",r))},p.prototype.getList=function(t){var e,r,n=this.nodeLists[t]||[],o=[];try{for(var i=c(n),a=i.next();!a.done;a=i.next()){var s=a.value;this.inTree(s)&&o.push(s)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return this.nodeLists[t]=o},p.prototype.removeFromList=function(t,e){var r,n,o=this.nodeLists[t]||[];try{for(var i=c(e),a=i.next();!a.done;a=i.next()){var s=a.value,l=o.indexOf(s);0<=l&&o.splice(l,1)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},p.prototype.inTree=function(t){for(;t&&t!==this.root;)t=t.parent;return!!t},e.default=p},1130:function(t,e,r){var c=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o,a,i,s,l,p=r(9007),h=n(r(1256)),d=n(r(8417)),f=n(r(3971)),m=r(5368);function y(t,e){var r,t=t.match((e=void 0===e?!1:e)?l:s);return t?(e=[t[1].replace(/,/,"."),t[4],t[0].length],e=c(e,3),t=e[0],r=e[1],e=e[2],"mu"!==r?[t,r,e]:[g(i[r](parseFloat(t||"1"))).slice(0,-2),"em",e]):[null,null,0]}function g(t){return Math.abs(t)<6e-4?"0em":t.toFixed(3).replace(/\.?0+$/,"")+"em"}function b(t,e,r){var n="{\\big"+r+" "+(e="{"!==e&&"}"!==e?e:"\\"+e)+"}";return new d.default("\\mathchoice"+("{\\bigg"+r+" "+e+"}")+n+n+n,{},t).mml()}function v(t,e,r){e=e.replace(/^\s+/,m.entities.nbsp).replace(/\s+$/,m.entities.nbsp);e=t.create("text",e);return t.create("node","mtext",[],r,e)}function _(t,e,r){if(r.match(/^[a-z]/i)&&e.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)&&(e+=" "),e.length+r.length>t.configuration.options.maxBuffer)throw new f.default("MaxBufferSize","MathJax internal buffer size exceeded; is there a recursive macro call?");return e+r}function S(t,e){for(;0e.length)throw new f.default("IllegalMacroParam","Illegal macro parameter reference");o=_(t,_(t,o,n),e[parseInt(a,10)-1]),n=""}else n+=a}return _(t,o,n)},a.addArgs=_,a.checkMaxMacros=function(t,e){if(void 0===e&&(e=!0),!(++t.macroCount<=t.configuration.options.maxMacros))throw e?new f.default("MaxMacroSub1","MathJax maximum macro substitution count exceeded; is here a recursive macro call?"):new f.default("MaxMacroSub2","MathJax maximum substitution count exceeded; is there a recursive latex environment?")},a.checkEqnEnv=function(t){if(t.stack.global.eqnenv)throw new f.default("ErroneousNestingEq","Erroneous nesting of equation structures");t.stack.global.eqnenv=!0},a.copyNode=function(t,e){var t=t.copy(),s=e.configuration;return t.walkTree(function(t){s.addNode(t.kind,t);var e,r,n=(t.getProperty("in-lists")||"").split(/,/);try{for(var o=u(n),i=o.next();!i.done;i=o.next()){var a=i.value;a&&s.addNode(a,t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}),t},a.MmlFilterAttribute=function(t,e,r){return r},a.getFontDef=function(t){t=t.stack.env.font;return t?{mathvariant:t}:{}},a.keyvalOptions=function(i,t,e){void 0===t&&(t=null),void 0===e&&(e=!1);var r,n,o=function(){for(var t,e,r,n={},o=i;o;)e=(t=c(O(o,["=",","]),3))[0],r=t[1],o=t[2],"="===r?(r=(t=c(O(o,[","]),3))[0],t[1],o=t[2],r="false"===r||"true"===r?JSON.parse(r):r,n[e]=r):e&&(n[e]=!0);return n}();if(t)try{for(var a=u(Object.keys(o)),s=a.next();!s.done;s=a.next()){var l=s.value;if(!t.hasOwnProperty(l)){if(e)throw new f.default("InvalidOption","Invalid option: %1",l);delete o[l]}}}catch(i){r={error:i}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},e.default=o},9497:function(t,e,r){var u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},c=(Object.defineProperty(e,"__esModule",{value:!0}),e.BaseItem=e.MmlStack=void 0,l(r(3971))),l=(Object.defineProperty(u.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),u.prototype.Push=function(){for(var t,e=[],r=0;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},c=(Object.defineProperty(e,"__esModule",{value:!0}),e.TagsFactory=e.AllTags=e.NoTags=e.AbstractTags=e.TagInfo=e.Label=void 0,l(r(8417))),l=(e.Label=n,e.TagInfo=o,u.prototype.start=function(t,e,r){this.currentTag&&this.stack.push(this.currentTag),this.currentTag=new o(t,e,r)},Object.defineProperty(u.prototype,"env",{get:function(){return this.currentTag.env},enumerable:!1,configurable:!0}),u.prototype.end=function(){this.history.push(this.currentTag),this.currentTag=this.stack.pop()},u.prototype.tag=function(t,e){this.currentTag.tag=t,this.currentTag.tagFormat=e?t:this.formatTag(t),this.currentTag.noTag=!1},u.prototype.notag=function(){this.tag("",!0),this.currentTag.noTag=!0},Object.defineProperty(u.prototype,"noTag",{get:function(){return this.currentTag.noTag},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"label",{get:function(){return this.currentTag.labelId},set:function(t){this.currentTag.labelId=t},enumerable:!1,configurable:!0}),u.prototype.formatUrl=function(t,e){return e+"#"+encodeURIComponent(t)},u.prototype.formatTag=function(t){return"("+t+")"},u.prototype.formatId=function(t){return"mjx-eqn:"+t.replace(/\s/g,"_")},u.prototype.formatNumber=function(t){return t.toString()},u.prototype.autoTag=function(){null==this.currentTag.tag&&(this.counter++,this.tag(this.formatNumber(this.counter),!1))},u.prototype.clearTag=function(){this.label="",this.tag(null,!0),this.currentTag.tagId=""},u.prototype.getTag=function(t){if(t=void 0===t?!1:t)return this.autoTag(),this.makeTag();t=this.currentTag;return t.taggable&&!t.noTag&&(t.defaultTags&&this.autoTag(),t.tag)?this.makeTag():null},u.prototype.resetTag=function(){this.history=[],this.redo=!1,this.refUpdate=!1,this.clearTag()},u.prototype.reset=function(t){void 0===t&&(t=0),this.resetTag(),this.counter=this.allCounter=t,this.allLabels={},this.allIds={}},u.prototype.startEquation=function(t){this.history=[],this.stack=[],this.clearTag(),this.currentTag=new o("",void 0,void 0),this.labels={},this.ids={},this.counter=this.allCounter,this.redo=!1;t=t.inputData.recompile;t&&(this.refUpdate=!0,this.counter=t.counter)},u.prototype.finishEquation=function(t){this.redo&&(t.inputData.recompile={state:t.state(),counter:this.allCounter}),this.refUpdate||(this.allCounter=this.counter),Object.assign(this.allIds,this.ids),Object.assign(this.allLabels,this.labels)},u.prototype.finalize=function(t,e){if(!e.display||this.currentTag.env||null==this.currentTag.tag)return t;e=this.makeTag();return this.enTag(t,e)},u.prototype.makeId=function(){this.currentTag.tagId=this.formatId(this.configuration.options.useLabelIds&&this.label||this.currentTag.tag)},u.prototype.makeTag=function(){this.makeId(),this.label&&(this.labels[this.label]=new n(this.currentTag.tag,this.currentTag.tagId));var t=new c.default("\\text{"+this.currentTag.tagFormat+"}",{},this.configuration).mml();return this.configuration.nodeFactory.create("node","mtd",[t],{id:this.currentTag.tagId})},u);function u(){this.counter=0,this.allCounter=0,this.configuration=null,this.ids={},this.allIds={},this.labels={},this.allLabels={},this.redo=!1,this.refUpdate=!1,this.currentTag=new o,this.history=[],this.stack=[],this.enTag=function(t,e){var r=this.configuration.nodeFactory,t=r.create("node","mtd",[t]),e=r.create("node","mlabeledtr",[e,t]);return r.create("node","mtable",[e],{side:this.configuration.options.tagSide,minlabelspacing:this.configuration.options.tagIndent,displaystyle:!0})}}e.AbstractTags=l;a(h,p=l),h.prototype.autoTag=function(){},h.prototype.getTag=function(){return this.currentTag.tag?p.prototype.getTag.call(this):null};var p,r=h;function h(){return null!==p&&p.apply(this,arguments)||this}e.NoTags=r;a(g,d=l),g.prototype.finalize=function(t,e){if(!e.display||this.history.find(function(t){return t.taggable}))return t;e=this.getTag(!0);return this.enTag(t,e)};var d,f,m,y,a=g;function g(){return null!==d&&d.apply(this,arguments)||this}e.AllTags=a,f=e.TagsFactory||(e.TagsFactory={}),m=new Map([["none",r],["all",a]]),y="none",f.OPTIONS={tags:y,tagSide:"right",tagIndent:"0.8em",useLabelIds:!0,ignoreDuplicateLabels:!1},f.add=function(t,e){m.set(t,e)},f.addTags=function(t){var e,r;try{for(var n=s(Object.keys(t)),o=n.next();!o.done;o=n.next()){var i=o.value;f.add(i,t[i])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},f.create=function(t){t=m.get(t)||m.get(y);if(t)return new t;throw Error("Unknown tags class")},f.setDefault=function(t){y=t},f.getDefault=function(){return f.create(y)}},8317:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.TexConstant=void 0,(e=e.TexConstant||(e.TexConstant={})).Variant={NORMAL:"normal",BOLD:"bold",ITALIC:"italic",BOLDITALIC:"bold-italic",DOUBLESTRUCK:"double-struck",FRAKTUR:"fraktur",BOLDFRAKTUR:"bold-fraktur",SCRIPT:"script",BOLDSCRIPT:"bold-script",SANSSERIF:"sans-serif",BOLDSANSSERIF:"bold-sans-serif",SANSSERIFITALIC:"sans-serif-italic",SANSSERIFBOLDITALIC:"sans-serif-bold-italic",MONOSPACE:"monospace",INITIAL:"inital",TAILED:"tailed",LOOPED:"looped",STRETCHED:"stretched",CALLIGRAPHIC:"-tex-calligraphic",BOLDCALLIGRAPHIC:"-tex-bold-calligraphic",OLDSTYLE:"-tex-oldstyle",BOLDOLDSTYLE:"-tex-bold-oldstyle",MATHITALIC:"-tex-mathit"},e.Form={PREFIX:"prefix",INFIX:"infix",POSTFIX:"postfix"},e.LineBreak={AUTO:"auto",NEWLINE:"newline",NOBREAK:"nobreak",GOODBREAK:"goodbreak",BADBREAK:"badbreak"},e.LineBreakStyle={BEFORE:"before",AFTER:"after",DUPLICATE:"duplicate",INFIXLINBREAKSTYLE:"infixlinebreakstyle"},e.IndentAlign={LEFT:"left",CENTER:"center",RIGHT:"right",AUTO:"auto",ID:"id",INDENTALIGN:"indentalign"},e.IndentShift={INDENTSHIFT:"indentshift"},e.LineThickness={THIN:"thin",MEDIUM:"medium",THICK:"thick"},e.Notation={LONGDIV:"longdiv",ACTUARIAL:"actuarial",PHASORANGLE:"phasorangle",RADICAL:"radical",BOX:"box",ROUNDEDBOX:"roundedbox",CIRCLE:"circle",LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom",UPDIAGONALSTRIKE:"updiagonalstrike",DOWNDIAGONALSTRIKE:"downdiagonalstrike",VERTICALSTRIKE:"verticalstrike",HORIZONTALSTRIKE:"horizontalstrike",NORTHEASTARROW:"northeastarrow",MADRUWB:"madruwb",UPDIAGONALARROW:"updiagonalarrow"},e.Align={TOP:"top",BOTTOM:"bottom",CENTER:"center",BASELINE:"baseline",AXIS:"axis",LEFT:"left",RIGHT:"right"},e.Lines={NONE:"none",SOLID:"solid",DASHED:"dashed"},e.Side={LEFT:"left",RIGHT:"right",LEFTOVERLAP:"leftoverlap",RIGHTOVERLAP:"rightoverlap"},e.Width={AUTO:"auto",FIT:"fit"},e.Actiontype={TOGGLE:"toggle",STATUSLINE:"statusline",TOOLTIP:"tooltip",INPUT:"input"},e.Overflow={LINBREAK:"linebreak",SCROLL:"scroll",ELIDE:"elide",TRUNCATE:"truncate",SCALE:"scale"},e.Unit={EM:"em",EX:"ex",PX:"px",IN:"in",CM:"cm",MM:"mm",PT:"pt",PC:"pc"}},3971:function(t,e){function a(t,e){for(var r=[],n=2;n=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0t)throw new p.default("XalignOverflow","Extra %1 in row of %2","&",this.name)},m.prototype.EndRow=function(){for(var t,e=this.row,r=this.getProperty("xalignat");e.lengththis.maxrow&&(this.maxrow=this.row.length),f.prototype.EndRow.call(this);var n,o=this.table[this.table.length-1];this.getProperty("zeroWidthLabel")&&o.isKind("mlabeledtr")&&(o=u.default.getChildren(o)[0],n=this.factory.configuration.options.tagSide,n=a({width:0},"right"===n?{lspace:"-1width"}:{}),n=this.create("node","mpadded",u.default.getChildren(o),n),o.setChildren([n]))},m.prototype.EndTable=function(){f.prototype.EndTable.call(this),this.center&&this.maxrow<=2&&(delete this.arraydef.width,delete this.global.indentalign)};var f,r=m;function m(t,e,r,n,o){t=f.call(this,t)||this;return t.name=e,t.numbered=r,t.padded=n,t.center=o,t.factory.configuration.tags.start(e,r,r),t}e.FlalignItem=r},7379:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},e=(Object.defineProperty(e,"__esModule",{value:!0}),r(4387)),i=i(r(9140)),s=r(8317),l=a(r(5450)),a=a(r(1130)),c=r(9007),r=r(6010);new i.CharacterMap("AMSmath-mathchar0mo",l.default.mathchar0mo,{iiiint:["⨌",{texClass:c.TEXCLASS.OP}]}),new i.RegExpMap("AMSmath-operatorLetter",e.AmsMethods.operatorLetter,/[-*]/i),new i.CommandMap("AMSmath-macros",{mathring:["Accent","02DA"],nobreakspace:"Tilde",negmedspace:["Spacer",r.MATHSPACE.negativemediummathspace],negthickspace:["Spacer",r.MATHSPACE.negativethickmathspace],idotsint:["MultiIntegral","\\int\\cdots\\int"],dddot:["Accent","20DB"],ddddot:["Accent","20DC"],sideset:"SideSet",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],tag:"HandleTag",notag:"HandleNoTag",eqref:["HandleRef",!0],substack:["Macro","\\begin{subarray}{c}#1\\end{subarray}",1],injlim:["NamedOp","inj lim"],projlim:["NamedOp","proj lim"],varliminf:["Macro","\\mathop{\\underline{\\mmlToken{mi}{lim}}}"],varlimsup:["Macro","\\mathop{\\overline{\\mmlToken{mi}{lim}}}"],varinjlim:["Macro","\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}"],varprojlim:["Macro","\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}"],DeclareMathOperator:"HandleDeclareOp",operatorname:"HandleOperatorName",genfrac:"Genfrac",frac:["Genfrac","","","",""],tfrac:["Genfrac","","","","1"],dfrac:["Genfrac","","","","0"],binom:["Genfrac","(",")","0",""],tbinom:["Genfrac","(",")","0","1"],dbinom:["Genfrac","(",")","0","0"],cfrac:"CFrac",shoveleft:["HandleShove",s.TexConstant.Align.LEFT],shoveright:["HandleShove",s.TexConstant.Align.RIGHT],xrightarrow:["xArrow",8594,5,10],xleftarrow:["xArrow",8592,10,5]},e.AmsMethods),new i.EnvironmentMap("AMSmath-environment",l.default.environment,{"equation*":["Equation",null,!1],"eqnarray*":["EqnArray",null,!1,!0,"rcl",a.default.cols(0,r.MATHSPACE.thickmathspace),".5em"],align:["EqnArray",null,!0,!0,"rl",a.default.cols(0,2)],"align*":["EqnArray",null,!1,!0,"rl",a.default.cols(0,2)],multline:["Multline",null,!0],"multline*":["Multline",null,!1],split:["EqnArray",null,!1,!1,"rl",a.default.cols(0)],gather:["EqnArray",null,!0,!0,"c"],"gather*":["EqnArray",null,!1,!0,"c"],alignat:["AlignAt",null,!0,!0],"alignat*":["AlignAt",null,!1,!0],alignedat:["AlignAt",null,!1,!1],aligned:["AmsEqnArray",null,null,null,"rl",a.default.cols(0,2),".5em","D"],gathered:["AmsEqnArray",null,null,null,"c",null,".5em","D"],xalignat:["XalignAt",null,!0,!0],"xalignat*":["XalignAt",null,!1,!0],xxalignat:["XalignAt",null,!1,!1],flalign:["FlalignArray",null,!0,!1,!0,"rlc","auto auto fit"],"flalign*":["FlalignArray",null,!1,!1,!0,"rlc","auto auto fit"],subarray:["Array",null,null,null,null,a.default.cols(0),"0.1em","S",1],smallmatrix:["Array",null,null,null,"c",a.default.cols(1/3),".2em","S",1],matrix:["Array",null,null,null,"c"],pmatrix:["Array",null,"(",")","c"],bmatrix:["Array",null,"[","]","c"],Bmatrix:["Array",null,"\\{","\\}","c"],vmatrix:["Array",null,"\\vert","\\vert","c"],Vmatrix:["Array",null,"\\Vert","\\Vert","c"],cases:["Array",null,"\\{",".","ll",null,".2em","T"]},e.AmsMethods),new i.DelimiterMap("AMSmath-delimiter",l.default.delimiter,{"\\lvert":["|",{texClass:c.TEXCLASS.OPEN}],"\\rvert":["|",{texClass:c.TEXCLASS.CLOSE}],"\\lVert":["‖",{texClass:c.TEXCLASS.OPEN}],"\\rVert":["‖",{texClass:c.TEXCLASS.CLOSE}]}),new i.CharacterMap("AMSsymbols-mathchar0mi",l.default.mathchar0mi,{digamma:"ϝ",varkappa:"ϰ",varGamma:["Γ",{mathvariant:s.TexConstant.Variant.ITALIC}],varDelta:["Δ",{mathvariant:s.TexConstant.Variant.ITALIC}],varTheta:["Θ",{mathvariant:s.TexConstant.Variant.ITALIC}],varLambda:["Λ",{mathvariant:s.TexConstant.Variant.ITALIC}],varXi:["Ξ",{mathvariant:s.TexConstant.Variant.ITALIC}],varPi:["Π",{mathvariant:s.TexConstant.Variant.ITALIC}],varSigma:["Σ",{mathvariant:s.TexConstant.Variant.ITALIC}],varUpsilon:["Υ",{mathvariant:s.TexConstant.Variant.ITALIC}],varPhi:["Φ",{mathvariant:s.TexConstant.Variant.ITALIC}],varPsi:["Ψ",{mathvariant:s.TexConstant.Variant.ITALIC}],varOmega:["Ω",{mathvariant:s.TexConstant.Variant.ITALIC}],beth:"ℶ",gimel:"ℷ",daleth:"ℸ",backprime:["‵",{variantForm:!0}],hslash:"ℏ",varnothing:["∅",{variantForm:!0}],blacktriangle:"▴",triangledown:["▽",{variantForm:!0}],blacktriangledown:"▾",square:"◻",Box:"◻",blacksquare:"◼",lozenge:"◊",Diamond:"◊",blacklozenge:"⧫",circledS:["Ⓢ",{mathvariant:s.TexConstant.Variant.NORMAL}],bigstar:"★",sphericalangle:"∢",measuredangle:"∡",nexists:"∄",complement:"∁",mho:"℧",eth:["ð",{mathvariant:s.TexConstant.Variant.NORMAL}],Finv:"Ⅎ",diagup:"╱",Game:"⅁",diagdown:"╲",Bbbk:["k",{mathvariant:s.TexConstant.Variant.DOUBLESTRUCK}],yen:"¥",circledR:"®",checkmark:"✓",maltese:"✠"}),new i.CharacterMap("AMSsymbols-mathchar0mo",l.default.mathchar0mo,{dotplus:"∔",ltimes:"⋉",smallsetminus:["∖",{variantForm:!0}],rtimes:"⋊",Cap:"⋒",doublecap:"⋒",leftthreetimes:"⋋",Cup:"⋓",doublecup:"⋓",rightthreetimes:"⋌",barwedge:"⊼",curlywedge:"⋏",veebar:"⊻",curlyvee:"⋎",doublebarwedge:"⩞",boxminus:"⊟",circleddash:"⊝",boxtimes:"⊠",circledast:"⊛",boxdot:"⊡",circledcirc:"⊚",boxplus:"⊞",centerdot:["⋅",{variantForm:!0}],divideontimes:"⋇",intercal:"⊺",leqq:"≦",geqq:"≧",leqslant:"⩽",geqslant:"⩾",eqslantless:"⪕",eqslantgtr:"⪖",lesssim:"≲",gtrsim:"≳",lessapprox:"⪅",gtrapprox:"⪆",approxeq:"≊",lessdot:"⋖",gtrdot:"⋗",lll:"⋘",llless:"⋘",ggg:"⋙",gggtr:"⋙",lessgtr:"≶",gtrless:"≷",lesseqgtr:"⋚",gtreqless:"⋛",lesseqqgtr:"⪋",gtreqqless:"⪌",doteqdot:"≑",Doteq:"≑",eqcirc:"≖",risingdotseq:"≓",circeq:"≗",fallingdotseq:"≒",triangleq:"≜",backsim:"∽",thicksim:["∼",{variantForm:!0}],backsimeq:"⋍",thickapprox:["≈",{variantForm:!0}],subseteqq:"⫅",supseteqq:"⫆",Subset:"⋐",Supset:"⋑",sqsubset:"⊏",sqsupset:"⊐",preccurlyeq:"≼",succcurlyeq:"≽",curlyeqprec:"⋞",curlyeqsucc:"⋟",precsim:"≾",succsim:"≿",precapprox:"⪷",succapprox:"⪸",vartriangleleft:"⊲",lhd:"⊲",vartriangleright:"⊳",rhd:"⊳",trianglelefteq:"⊴",unlhd:"⊴",trianglerighteq:"⊵",unrhd:"⊵",vDash:["⊨",{variantForm:!0}],Vdash:"⊩",Vvdash:"⊪",smallsmile:["⌣",{variantForm:!0}],shortmid:["∣",{variantForm:!0}],smallfrown:["⌢",{variantForm:!0}],shortparallel:["∥",{variantForm:!0}],bumpeq:"≏",between:"≬",Bumpeq:"≎",pitchfork:"⋔",varpropto:["∝",{variantForm:!0}],backepsilon:"∍",blacktriangleleft:"◂",blacktriangleright:"▸",therefore:"∴",because:"∵",eqsim:"≂",vartriangle:["△",{variantForm:!0}],Join:"⋈",nless:"≮",ngtr:"≯",nleq:"≰",ngeq:"≱",nleqslant:["⪇",{variantForm:!0}],ngeqslant:["⪈",{variantForm:!0}],nleqq:["≰",{variantForm:!0}],ngeqq:["≱",{variantForm:!0}],lneq:"⪇",gneq:"⪈",lneqq:"≨",gneqq:"≩",lvertneqq:["≨",{variantForm:!0}],gvertneqq:["≩",{variantForm:!0}],lnsim:"⋦",gnsim:"⋧",lnapprox:"⪉",gnapprox:"⪊",nprec:"⊀",nsucc:"⊁",npreceq:["⋠",{variantForm:!0}],nsucceq:["⋡",{variantForm:!0}],precneqq:"⪵",succneqq:"⪶",precnsim:"⋨",succnsim:"⋩",precnapprox:"⪹",succnapprox:"⪺",nsim:"≁",ncong:"≇",nshortmid:["∤",{variantForm:!0}],nshortparallel:["∦",{variantForm:!0}],nmid:"∤",nparallel:"∦",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",ntriangleleft:"⋪",ntriangleright:"⋫",ntrianglelefteq:"⋬",ntrianglerighteq:"⋭",nsubseteq:"⊈",nsupseteq:"⊉",nsubseteqq:["⊈",{variantForm:!0}],nsupseteqq:["⊉",{variantForm:!0}],subsetneq:"⊊",supsetneq:"⊋",varsubsetneq:["⊊",{variantForm:!0}],varsupsetneq:["⊋",{variantForm:!0}],subsetneqq:"⫋",supsetneqq:"⫌",varsubsetneqq:["⫋",{variantForm:!0}],varsupsetneqq:["⫌",{variantForm:!0}],leftleftarrows:"⇇",rightrightarrows:"⇉",leftrightarrows:"⇆",rightleftarrows:"⇄",Lleftarrow:"⇚",Rrightarrow:"⇛",twoheadleftarrow:"↞",twoheadrightarrow:"↠",leftarrowtail:"↢",rightarrowtail:"↣",looparrowleft:"↫",looparrowright:"↬",leftrightharpoons:"⇋",rightleftharpoons:["⇌",{variantForm:!0}],curvearrowleft:"↶",curvearrowright:"↷",circlearrowleft:"↺",circlearrowright:"↻",Lsh:"↰",Rsh:"↱",upuparrows:"⇈",downdownarrows:"⇊",upharpoonleft:"↿",upharpoonright:"↾",downharpoonleft:"⇃",restriction:"↾",multimap:"⊸",downharpoonright:"⇂",leftrightsquigarrow:"↭",rightsquigarrow:"⇝",leadsto:"⇝",dashrightarrow:"⇢",dashleftarrow:"⇠",nleftarrow:"↚",nrightarrow:"↛",nLeftarrow:"⇍",nRightarrow:"⇏",nleftrightarrow:"↮",nLeftrightarrow:"⇎"}),new i.DelimiterMap("AMSsymbols-delimiter",l.default.delimiter,{"\\ulcorner":"⌜","\\urcorner":"⌝","\\llcorner":"⌞","\\lrcorner":"⌟"}),new i.CommandMap("AMSsymbols-macros",{implies:["Macro","\\;\\Longrightarrow\\;"],impliedby:["Macro","\\;\\Longleftarrow\\;"]},e.AmsMethods)},4387:function(t,u,e){var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=(Object.defineProperty(e,"__esModule",{value:!0}),e.AutoloadConfiguration=void 0,r(9899)),o=r(9140),C=r(8803),T=r(7741),y=r(265),i=r(7233);function N(t,e,r,n){var o,i,a,s;if(y.Package.packages.has(t.options.require.prefix+r)){var l=t.options.autoload[r],l=E(2===l.length&&Array.isArray(l[0])?l:[l,[]],2),c=l[0],l=l[1];try{for(var u=A(c),p=u.next();!p.done;p=u.next()){var h=p.value;w.remove(h)}}catch(t){o={error:t}}finally{try{p&&!p.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}try{for(var d=A(l),f=d.next();!f.done;f=d.next()){var m=f.value;L.remove(m)}}catch(t){a={error:t}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}t.string=(n?e+" ":"\\begin{"+e.slice(1)+"}")+t.string.slice(t.i),t.i=0}(0,T.RequireLoad)(t,r)}var w=new o.CommandMap("autoload-macros",{},{}),L=new o.CommandMap("autoload-environments",{},{});e.AutoloadConfiguration=n.Configuration.create("autoload",{handler:{macro:["autoload-macros"],environment:["autoload-environments"]},options:{autoload:(0,i.expandable)({action:["toggle","mathtip","texttip"],amscd:[[],["CD"]],bbox:["bbox"],boldsymbol:["boldsymbol"],braket:["bra","ket","braket","set","Bra","Ket","Braket","Set","ketbra","Ketbra"],bussproofs:[[],["prooftree"]],cancel:["cancel","bcancel","xcancel","cancelto"],color:["color","definecolor","textcolor","colorbox","fcolorbox"],enclose:["enclose"],extpfeil:["xtwoheadrightarrow","xtwoheadleftarrow","xmapsto","xlongequal","xtofrom","Newextarrow"],html:["href","class","style","cssId"],mhchem:["ce","pu"],newcommand:["newcommand","renewcommand","newenvironment","renewenvironment","def","let"],unicode:["unicode"],verb:["verb"]})},config:function(t,e){var r,n,o,i,a,s,l=e.parseOptions,c=l.handlers.get("macro"),u=l.handlers.get("environment"),p=l.options.autoload;l.packageData.set("autoload",{Autoload:N});try{for(var h=A(Object.keys(p)),d=h.next();!d.done;d=h.next()){var f=d.value,m=p[f],y=E(2===m.length&&Array.isArray(m[0])?m:[m,[]],2),g=y[0],b=y[1];try{o=void 0;for(var v=A(g),_=v.next();!_.done;_=v.next()){var S=_.value;c.lookup(S)&&"color"!==S||w.add(S,new C.Macro(S,N,[f,!0]))}}catch(t){o={error:t}}finally{try{_&&!_.done&&(i=v.return)&&i.call(v)}finally{if(o)throw o.error}}try{a=void 0;for(var O=A(b),M=O.next();!M.done;M=O.next()){var x=M.value;u.lookup(x)||L.add(x,new C.Macro(x,N,[f,!1]))}}catch(t){a={error:t}}finally{try{M&&!M.done&&(s=O.return)&&s.call(O)}finally{if(a)throw a.error}}}}catch(t){r={error:t}}finally{try{d&&!d.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}l.packageData.get("require")||T.RequireConfiguration.config(t,e)},init:function(t){t.options.require||(0,i.defaultOptions)(t.options,T.RequireConfiguration.options)},priority:10})},2942:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[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 r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return a(e,t),e},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.BaseConfiguration=e.BaseTags=e.Other=void 0,r(9899)),p=r(2947),h=l(r(3971)),d=l(r(1256)),l=r(9140),s=s(r(1181)),f=r(6521),m=(r(1267),r(4082));function y(t,e){var r=t.stack.env.font?{mathvariant:t.stack.env.font}:{},n=p.MapHandler.getMap("remap").lookup(e),o=(0,m.getRange)(e),i=o?o[3]:"mo",r=t.create("token",i,r,n?n.char:e);o[4]&&r.attributes.set("mathvariant",o[4]),"mo"===i&&(d.default.setProperty(r,"fixStretchy",!0),t.configuration.addNode("fixStretchy",r)),t.Push(r)}new l.CharacterMap("remap",null,{"-":"−","*":"∗","`":"‘"}),e.Other=y;g=f.AbstractTags,o(b,g);var g,r=b;function b(){return null!==g&&g.apply(this,arguments)||this}e.BaseTags=r,e.BaseConfiguration=u.Configuration.create("base",{handler:{character:["command","special","letter","digit"],delimiter:["delimiter"],macro:["delimiter","macros","mathchar0mi","mathchar0mo","mathchar7"],environment:["environment"]},fallback:{character:y,macro:function(t,e){throw new h.default("UndefinedControlSequence","Undefined control sequence %1","\\"+e)},environment:function(t,e){throw new h.default("UnknownEnv","Unknown environment '%1'",e)}},items:((l={})[s.StartItem.prototype.kind]=s.StartItem,l[s.StopItem.prototype.kind]=s.StopItem,l[s.OpenItem.prototype.kind]=s.OpenItem,l[s.CloseItem.prototype.kind]=s.CloseItem,l[s.PrimeItem.prototype.kind]=s.PrimeItem,l[s.SubsupItem.prototype.kind]=s.SubsupItem,l[s.OverItem.prototype.kind]=s.OverItem,l[s.LeftItem.prototype.kind]=s.LeftItem,l[s.Middle.prototype.kind]=s.Middle,l[s.RightItem.prototype.kind]=s.RightItem,l[s.BeginItem.prototype.kind]=s.BeginItem,l[s.EndItem.prototype.kind]=s.EndItem,l[s.StyleItem.prototype.kind]=s.StyleItem,l[s.PositionItem.prototype.kind]=s.PositionItem,l[s.CellItem.prototype.kind]=s.CellItem,l[s.MmlItem.prototype.kind]=s.MmlItem,l[s.FnItem.prototype.kind]=s.FnItem,l[s.NotItem.prototype.kind]=s.NotItem,l[s.NonscriptItem.prototype.kind]=s.NonscriptItem,l[s.DotsItem.prototype.kind]=s.DotsItem,l[s.ArrayItem.prototype.kind]=s.ArrayItem,l[s.EqnArrayItem.prototype.kind]=s.EqnArrayItem,l[s.EquationItem.prototype.kind]=s.EquationItem,l),options:{maxMacros:1e3,baseURL:"undefined"==typeof document||0===document.getElementsByTagName("base").length?"":String(document.location).replace(/#.*$/,"")},tags:{base:r},postprocessors:[[function(t){var e,r,n=t.data;try{for(var o=c(n.getList("nonscript")),i=o.next();!i.done;i=o.next()){var a,s,l=i.value;0this.maxrow&&(this.maxrow=this.row.length);var t="mtr",e=this.factory.configuration.tags.getTag(),e=(e&&(this.row=[e].concat(this.row),t="mlabeledtr"),this.factory.configuration.tags.clearTag(),this.create("node",t,this.row));this.table.push(e),this.row=[]},R.prototype.EndTable=function(){it.prototype.EndTable.call(this),this.factory.configuration.tags.end(),this.extendArray("columnalign",this.maxrow),this.extendArray("columnwidth",this.maxrow),this.extendArray("columnspacing",this.maxrow-1)},R.prototype.extendArray=function(t,e){if(this.arraydef[t]){var r=this.arraydef[t].split(/ /),n=D([],o(r),!1);if(1",succ:"≻",prec:"≺",approx:"≈",succeq:"⪰",preceq:"⪯",supset:"⊃",subset:"⊂",supseteq:"⊇",subseteq:"⊆",in:"∈",ni:"∋",notin:"∉",owns:"∋",gg:"≫",ll:"≪",sim:"∼",simeq:"≃",perp:"⊥",equiv:"≡",asymp:"≍",smile:"⌣",frown:"⌢",ne:"≠",neq:"≠",cong:"≅",doteq:"≐",bowtie:"⋈",models:"⊨",notChar:"⧸",Leftrightarrow:"⇔",Leftarrow:"⇐",Rightarrow:"⇒",leftrightarrow:"↔",leftarrow:"←",gets:"←",rightarrow:"→",to:["→",{accent:!1}],mapsto:"↦",leftharpoonup:"↼",leftharpoondown:"↽",rightharpoonup:"⇀",rightharpoondown:"⇁",nearrow:"↗",searrow:"↘",nwarrow:"↖",swarrow:"↙",rightleftharpoons:"⇌",hookrightarrow:"↪",hookleftarrow:"↩",longleftarrow:"⟵",Longleftarrow:"⟸",longrightarrow:"⟶",Longrightarrow:"⟹",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",ldots:"…",cdots:"⋯",vdots:"⋮",ddots:"⋱",dotsc:"…",dotsb:"⋯",dotsm:"⋯",dotsi:"⋯",dotso:"…",ldotp:[".",{texClass:c.TEXCLASS.PUNCT}],cdotp:["⋅",{texClass:c.TEXCLASS.PUNCT}],colon:[":",{texClass:c.TEXCLASS.PUNCT}]}),new e.CharacterMap("mathchar7",l.default.mathchar7,{Gamma:"Γ",Delta:"Δ",Theta:"Θ",Lambda:"Λ",Xi:"Ξ",Pi:"Π",Sigma:"Σ",Upsilon:"Υ",Phi:"Φ",Psi:"Ψ",Omega:"Ω",_:"_","#":"#",$:"$","%":"%","&":"&",And:"&"}),new e.DelimiterMap("delimiter",l.default.delimiter,{"(":"(",")":")","[":"[","]":"]","<":"⟨",">":"⟩","\\lt":"⟨","\\gt":"⟩","/":"/","|":["|",{texClass:c.TEXCLASS.ORD}],".":"","\\\\":"\\","\\lmoustache":"⎰","\\rmoustache":"⎱","\\lgroup":"⟮","\\rgroup":"⟯","\\arrowvert":"⏐","\\Arrowvert":"‖","\\bracevert":"⎪","\\Vert":["‖",{texClass:c.TEXCLASS.ORD}],"\\|":["‖",{texClass:c.TEXCLASS.ORD}],"\\vert":["|",{texClass:c.TEXCLASS.ORD}],"\\uparrow":"↑","\\downarrow":"↓","\\updownarrow":"↕","\\Uparrow":"⇑","\\Downarrow":"⇓","\\Updownarrow":"⇕","\\backslash":"\\","\\rangle":"⟩","\\langle":"⟨","\\rbrace":"}","\\lbrace":"{","\\}":"}","\\{":"{","\\rceil":"⌉","\\lceil":"⌈","\\rfloor":"⌋","\\lfloor":"⌊","\\lbrack":"[","\\rbrack":"]"}),new e.CommandMap("macros",{displaystyle:["SetStyle","D",!0,0],textstyle:["SetStyle","T",!1,0],scriptstyle:["SetStyle","S",!1,1],scriptscriptstyle:["SetStyle","SS",!1,2],rm:["SetFont",i.TexConstant.Variant.NORMAL],mit:["SetFont",i.TexConstant.Variant.ITALIC],oldstyle:["SetFont",i.TexConstant.Variant.OLDSTYLE],cal:["SetFont",i.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont",i.TexConstant.Variant.MATHITALIC],bf:["SetFont",i.TexConstant.Variant.BOLD],bbFont:["SetFont",i.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",i.TexConstant.Variant.SCRIPT],frak:["SetFont",i.TexConstant.Variant.FRAKTUR],sf:["SetFont",i.TexConstant.Variant.SANSSERIF],tt:["SetFont",i.TexConstant.Variant.MONOSPACE],mathrm:["MathFont",i.TexConstant.Variant.NORMAL],mathup:["MathFont",i.TexConstant.Variant.NORMAL],mathnormal:["MathFont",""],mathbf:["MathFont",i.TexConstant.Variant.BOLD],mathbfup:["MathFont",i.TexConstant.Variant.BOLD],mathit:["MathFont",i.TexConstant.Variant.MATHITALIC],mathbfit:["MathFont",i.TexConstant.Variant.BOLDITALIC],mathbb:["MathFont",i.TexConstant.Variant.DOUBLESTRUCK],Bbb:["MathFont",i.TexConstant.Variant.DOUBLESTRUCK],mathfrak:["MathFont",i.TexConstant.Variant.FRAKTUR],mathbffrak:["MathFont",i.TexConstant.Variant.BOLDFRAKTUR],mathscr:["MathFont",i.TexConstant.Variant.SCRIPT],mathbfscr:["MathFont",i.TexConstant.Variant.BOLDSCRIPT],mathsf:["MathFont",i.TexConstant.Variant.SANSSERIF],mathsfup:["MathFont",i.TexConstant.Variant.SANSSERIF],mathbfsf:["MathFont",i.TexConstant.Variant.BOLDSANSSERIF],mathbfsfup:["MathFont",i.TexConstant.Variant.BOLDSANSSERIF],mathsfit:["MathFont",i.TexConstant.Variant.SANSSERIFITALIC],mathbfsfit:["MathFont",i.TexConstant.Variant.SANSSERIFBOLDITALIC],mathtt:["MathFont",i.TexConstant.Variant.MONOSPACE],mathcal:["MathFont",i.TexConstant.Variant.CALLIGRAPHIC],mathbfcal:["MathFont",i.TexConstant.Variant.BOLDCALLIGRAPHIC],symrm:["MathFont",i.TexConstant.Variant.NORMAL],symup:["MathFont",i.TexConstant.Variant.NORMAL],symnormal:["MathFont",""],symbf:["MathFont",i.TexConstant.Variant.BOLD],symbfup:["MathFont",i.TexConstant.Variant.BOLD],symit:["MathFont",i.TexConstant.Variant.ITALIC],symbfit:["MathFont",i.TexConstant.Variant.BOLDITALIC],symbb:["MathFont",i.TexConstant.Variant.DOUBLESTRUCK],symfrak:["MathFont",i.TexConstant.Variant.FRAKTUR],symbffrak:["MathFont",i.TexConstant.Variant.BOLDFRAKTUR],symscr:["MathFont",i.TexConstant.Variant.SCRIPT],symbfscr:["MathFont",i.TexConstant.Variant.BOLDSCRIPT],symsf:["MathFont",i.TexConstant.Variant.SANSSERIF],symsfup:["MathFont",i.TexConstant.Variant.SANSSERIF],symbfsf:["MathFont",i.TexConstant.Variant.BOLDSANSSERIF],symbfsfup:["MathFont",i.TexConstant.Variant.BOLDSANSSERIF],symsfit:["MathFont",i.TexConstant.Variant.SANSSERIFITALIC],symbfsfit:["MathFont",i.TexConstant.Variant.SANSSERIFBOLDITALIC],symtt:["MathFont",i.TexConstant.Variant.MONOSPACE],symcal:["MathFont",i.TexConstant.Variant.CALLIGRAPHIC],symbfcal:["MathFont",i.TexConstant.Variant.BOLDCALLIGRAPHIC],textrm:["HBox",null,i.TexConstant.Variant.NORMAL],textup:["HBox",null,i.TexConstant.Variant.NORMAL],textnormal:["HBox"],textit:["HBox",null,i.TexConstant.Variant.ITALIC],textbf:["HBox",null,i.TexConstant.Variant.BOLD],textsf:["HBox",null,i.TexConstant.Variant.SANSSERIF],texttt:["HBox",null,i.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],arcsin:"NamedFn",arccos:"NamedFn",arctan:"NamedFn",arg:"NamedFn",cos:"NamedFn",cosh:"NamedFn",cot:"NamedFn",coth:"NamedFn",csc:"NamedFn",deg:"NamedFn",det:"NamedOp",dim:"NamedFn",exp:"NamedFn",gcd:"NamedOp",hom:"NamedFn",inf:"NamedOp",ker:"NamedFn",lg:"NamedFn",lim:"NamedOp",liminf:["NamedOp","lim inf"],limsup:["NamedOp","lim sup"],ln:"NamedFn",log:"NamedFn",max:"NamedOp",min:"NamedOp",Pr:"NamedOp",sec:"NamedFn",sin:"NamedFn",sinh:"NamedFn",sup:"NamedOp",tan:"NamedFn",tanh:"NamedFn",limits:["Limits",1],nolimits:["Limits",0],overline:["UnderOver","2015"],underline:["UnderOver","2015"],overbrace:["UnderOver","23DE",1],underbrace:["UnderOver","23DF",1],overparen:["UnderOver","23DC"],underparen:["UnderOver","23DD"],overrightarrow:["UnderOver","2192"],underrightarrow:["UnderOver","2192"],overleftarrow:["UnderOver","2190"],underleftarrow:["UnderOver","2190"],overleftrightarrow:["UnderOver","2194"],underleftrightarrow:["UnderOver","2194"],overset:"Overset",underset:"Underset",overunderset:"Overunderset",stackrel:["Macro","\\mathrel{\\mathop{#2}\\limits^{#1}}",2],stackbin:["Macro","\\mathbin{\\mathop{#2}\\limits^{#1}}",2],over:"Over",overwithdelims:"Over",atop:"Over",atopwithdelims:"Over",above:"Over",abovewithdelims:"Over",brace:["Over","{","}"],brack:["Over","[","]"],choose:["Over","(",")"],frac:"Frac",sqrt:"Sqrt",root:"Root",uproot:["MoveRoot","upRoot"],leftroot:["MoveRoot","leftRoot"],left:"LeftRight",right:"LeftRight",middle:"LeftRight",llap:"Lap",rlap:"Lap",raise:"RaiseLower",lower:"RaiseLower",moveleft:"MoveLeftRight",moveright:"MoveLeftRight",",":["Spacer",r.MATHSPACE.thinmathspace],":":["Spacer",r.MATHSPACE.mediummathspace],">":["Spacer",r.MATHSPACE.mediummathspace],";":["Spacer",r.MATHSPACE.thickmathspace],"!":["Spacer",r.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",r.MATHSPACE.thinmathspace],negthinspace:["Spacer",r.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],nonscript:"Nonscript",big:["MakeBig",c.TEXCLASS.ORD,.85],Big:["MakeBig",c.TEXCLASS.ORD,1.15],bigg:["MakeBig",c.TEXCLASS.ORD,1.45],Bigg:["MakeBig",c.TEXCLASS.ORD,1.75],bigl:["MakeBig",c.TEXCLASS.OPEN,.85],Bigl:["MakeBig",c.TEXCLASS.OPEN,1.15],biggl:["MakeBig",c.TEXCLASS.OPEN,1.45],Biggl:["MakeBig",c.TEXCLASS.OPEN,1.75],bigr:["MakeBig",c.TEXCLASS.CLOSE,.85],Bigr:["MakeBig",c.TEXCLASS.CLOSE,1.15],biggr:["MakeBig",c.TEXCLASS.CLOSE,1.45],Biggr:["MakeBig",c.TEXCLASS.CLOSE,1.75],bigm:["MakeBig",c.TEXCLASS.REL,.85],Bigm:["MakeBig",c.TEXCLASS.REL,1.15],biggm:["MakeBig",c.TEXCLASS.REL,1.45],Biggm:["MakeBig",c.TEXCLASS.REL,1.75],mathord:["TeXAtom",c.TEXCLASS.ORD],mathop:["TeXAtom",c.TEXCLASS.OP],mathopen:["TeXAtom",c.TEXCLASS.OPEN],mathclose:["TeXAtom",c.TEXCLASS.CLOSE],mathbin:["TeXAtom",c.TEXCLASS.BIN],mathrel:["TeXAtom",c.TEXCLASS.REL],mathpunct:["TeXAtom",c.TEXCLASS.PUNCT],mathinner:["TeXAtom",c.TEXCLASS.INNER],vcenter:["TeXAtom",c.TEXCLASS.VCENTER],buildrel:"BuildRel",hbox:["HBox",0],text:"HBox",mbox:["HBox",0],fbox:"FBox",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],framebox:"FrameBox",strut:"Strut",mathstrut:["Macro","\\vphantom{(}"],phantom:"Phantom",vphantom:["Phantom",1,0],hphantom:["Phantom",0,1],smash:"Smash",acute:["Accent","00B4"],grave:["Accent","0060"],ddot:["Accent","00A8"],tilde:["Accent","007E"],bar:["Accent","00AF"],breve:["Accent","02D8"],check:["Accent","02C7"],hat:["Accent","005E"],vec:["Accent","2192"],dot:["Accent","02D9"],widetilde:["Accent","007E",1],widehat:["Accent","005E",1],matrix:"Matrix",array:"Matrix",pmatrix:["Matrix","(",")"],cases:["Matrix","{","","left left",null,".1em",null,!0],eqalign:["Matrix",null,null,"right left",(0,r.em)(r.MATHSPACE.thickmathspace),".5em","D"],displaylines:["Matrix",null,null,"center",null,".5em","D"],cr:"Cr","\\":"CrLaTeX",newline:["CrLaTeX",!0],hline:["HLine","solid"],hdashline:["HLine","dashed"],eqalignno:["Matrix",null,null,"right left",(0,r.em)(r.MATHSPACE.thickmathspace),".5em","D",null,"right"],leqalignno:["Matrix",null,null,"right left",(0,r.em)(r.MATHSPACE.thickmathspace),".5em","D",null,"left"],hfill:"HFill",hfil:"HFill",hfilll:"HFill",bmod:["Macro",'\\mmlToken{mo}[lspace="thickmathspace" rspace="thickmathspace"]{mod}'],pmod:["Macro","\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}",1],mod:["Macro","\\mathchoice{\\kern18mu}{\\kern12mu}{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1",1],pod:["Macro","\\mathchoice{\\kern18mu}{\\kern8mu}{\\kern8mu}{\\kern8mu}(#1)",1],iff:["Macro","\\;\\Longleftrightarrow\\;"],skew:["Macro","{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}",3],pmb:["Macro","\\rlap{#1}\\kern1px{#1}",1],TeX:["Macro","T\\kern-.14em\\lower.5ex{E}\\kern-.115em X"],LaTeX:["Macro","L\\kern-.325em\\raise.21em{\\scriptstyle{A}}\\kern-.17em\\TeX"]," ":["Macro","\\text{ }"],not:"Not",dots:"Dots",space:"Tilde"," ":"Tilde",begin:"BeginEnd",end:"BeginEnd",label:"HandleLabel",ref:"HandleRef",nonumber:"HandleNoTag",mathchoice:"MathChoice",mmlToken:"MmlToken"},s.default),new e.EnvironmentMap("environment",l.default.environment,{array:["AlignedArray"],equation:["Equation",null,!0],eqnarray:["EqnArray",null,!0,!0,"rcl",a.default.cols(0,r.MATHSPACE.thickmathspace),".5em"]},s.default),new e.CharacterMap("not_remap",null,{"←":"↚","→":"↛","↔":"↮","⇐":"⇍","⇒":"⇏","⇔":"⇎","∈":"∉","∋":"∌","∣":"∤","∥":"∦","∼":"≁","~":"≁","≃":"≄","≅":"≇","≈":"≉","≍":"≭","=":"≠","≡":"≢","<":"≮",">":"≯","≤":"≰","≥":"≱","≲":"≴","≳":"≵","≶":"≸","≷":"≹","≺":"⊀","≻":"⊁","⊂":"⊄","⊃":"⊅","⊆":"⊈","⊇":"⊉","⊢":"⊬","⊨":"⊭","⊩":"⊮","⊫":"⊯","≼":"⋠","≽":"⋡","⊑":"⋢","⊒":"⋣","⊲":"⋪","⊳":"⋫","⊴":"⋬","⊵":"⋭","∃":"∄"})},7693:function(t,e,r){var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigMacrosConfiguration=void 0,r(9899)),i=r(7233),a=r(9140),s=n(r(5450)),S=r(8803),O=n(r(1110)),n=r(6793),M="configmacros-map",x="configmacros-env-map";e.ConfigMacrosConfiguration=o.Configuration.create("configmacros",{init:function(t){new a.CommandMap(M,{},{}),new a.EnvironmentMap(x,s.default.environment,{},{}),t.append(o.Configuration.local({handler:{macro:[M],environment:[x]},priority:3}))},config:function(t,e){var r,n,o=e,i=o.parseOptions.handlers.retrieve(M),a=o.parseOptions.options.macros;try{for(var s=_(Object.keys(a)),l=s.next();!l.done;l=s.next()){var c=l.value,u="string"==typeof a[c]?[a[c]]:a[c],p=Array.isArray(u[2])?new S.Macro(c,O.default.MacroWithTemplate,u.slice(0,2).concat(u[2])):new S.Macro(c,O.default.Macro,u);i.add(c,p)}}catch(o){r={error:o}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}var h,d,f=e,m=f.parseOptions.handlers.retrieve(x),y=f.parseOptions.options.environments;try{for(var g=_(Object.keys(y)),b=g.next();!b.done;b=g.next()){var v=b.value;m.add(v,new S.Macro(v,O.default.BeginEnv,[!0].concat(y[v])))}}catch(f){h={error:f}}finally{try{b&&!b.done&&(d=g.return)&&d.call(g)}finally{if(h)throw h.error}}},items:((r={})[n.BeginEnvItem.prototype.kind]=n.BeginEnvItem,r),options:{macros:(0,i.expandable)({}),environments:(0,i.expandable)({})}})},1496:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.NewcommandConfiguration=void 0,r(9899)),l=r(6793),c=a(r(5579)),u=(r(5117),a(r(5450))),p=i(r(9140));e.NewcommandConfiguration=s.Configuration.create("newcommand",{handler:{macro:["Newcommand-macros"]},items:((a={})[l.BeginEnvItem.prototype.kind]=l.BeginEnvItem,a),options:{maxMacros:1e3},init:function(t){new p.DelimiterMap(c.default.NEW_DELIMITER,u.default.delimiter,{}),new p.CommandMap(c.default.NEW_COMMAND,{},{}),new p.EnvironmentMap(c.default.NEW_ENVIRONMENT,u.default.environment,{},{}),t.append(s.Configuration.local({handler:{character:[],delimiter:[c.default.NEW_DELIMITER],macro:[c.default.NEW_DELIMITER,c.default.NEW_COMMAND],environment:[c.default.NEW_ENVIRONMENT]},priority:-1}))}})},6793:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.BeginEnvItem=void 0,a(r(3971))),a=(o=r(8292).BaseItem,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"beginEnv"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),l.prototype.checkItem=function(t){if(t.isKind("end")){if(t.getName()!==this.getName())throw new s.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),t.getName());return[[this.factory.create("mml",this.toMml())],!0]}if(t.isKind("stop"))throw new s.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return o.prototype.checkItem.call(this,t)},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.BeginEnvItem=a},5117:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},e=(Object.defineProperty(e,"__esModule",{value:!0}),n(r(1110)));new(r(9140).CommandMap)("Newcommand-macros",{newcommand:"NewCommand",renewcommand:"NewCommand",newenvironment:"NewEnvironment",renewenvironment:"NewEnvironment",def:"MacroDef",let:"Let"},e.default)},1110:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},c=(Object.defineProperty(e,"__esModule",{value:!0}),a(r(3971))),s=i(r(9140)),i=a(r(7693)),u=a(r(1130)),p=a(r(5579)),l={NewCommand:function(t,e){var r=p.default.GetCsNameArgument(t,e),n=p.default.GetArgCount(t,e),o=t.GetBrackets(e),e=t.GetArgument(e);p.default.addMacro(t,r,l.Macro,[e,n,o])},NewEnvironment:function(t,e){var r=u.default.trimSpaces(t.GetArgument(e)),n=p.default.GetArgCount(t,e),o=t.GetBrackets(e),i=t.GetArgument(e),e=t.GetArgument(e);p.default.addEnvironment(t,r,l.BeginEnv,[!0,i,e,n,o])},MacroDef:function(t,e){var r=p.default.GetCSname(t,e),n=p.default.GetTemplate(t,e,"\\"+r),e=t.GetArgument(e);n instanceof Array?p.default.addMacro(t,r,l.MacroWithTemplate,[e].concat(n)):p.default.addMacro(t,r,l.Macro,[e,n])},Let:function(t,e){var r=p.default.GetCSname(t,e),n=t.GetNext(),o=("="===n&&(t.i++,n=t.GetNext()),t.configuration.handlers);if("\\"!==n){t.i++;var i=o.get("delimiter").lookup(n);i?p.default.addDelimiter(t,"\\"+r,i.char,i.attributes):p.default.addMacro(t,r,l.Macro,[n])}else if(e=p.default.GetCSname(t,e),i=o.get("delimiter").lookup("\\"+e))p.default.addDelimiter(t,"\\"+r,i.char,i.attributes);else{var a=o.get("macro").applicable(e);if(a){if(a instanceof s.MacroMap)return n=a.lookup(e),void p.default.addMacro(t,r,n.func,n.args,n.symbol);i=a.lookup(e),o=p.default.disassembleSymbol(r,i);p.default.addMacro(t,r,function(t,e){for(var r=[],n=2;n=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.NoUndefinedConfiguration=void 0,r(9899));e.NoUndefinedConfiguration=r.Configuration.create("noundefined",{fallback:{macro:function(t,e){var r,n,e=t.create("text","\\"+e),o=t.options.noundefined||{},i={};try{for(var a=c(["color","background","size"]),s=a.next();!s.done;s=a.next()){var l=s.value;o[l]&&(i["math"+l]=o[l])}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}t.Push(t.create("node","mtext",[],i,e))}},options:{noundefined:{color:"red",background:"",size:""}},priority:3})},7741:function(t,e,r){var h=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTML=void 0,r(3055)),h=r(4139),d=r(9261),f=r(6797),m=r(2760),y=c(r(6010)),g=r(505),c=(s=p.CommonOutputJax,o(b,s),b.prototype.escaped=function(t,e){return this.setDocument(e),this.html("span",{},[this.text(t.math)])},b.prototype.styleSheet=function(t){if(this.chtmlStyles)return this.options.adaptiveCSS&&(e=new h.CssStyles,this.addWrapperStyles(e),this.updateFontStyles(e),this.adaptor.insertRules(this.chtmlStyles,e.getStyleRules())),this.chtmlStyles;var e=this.chtmlStyles=s.prototype.styleSheet.call(this,t);return this.adaptor.setAttribute(e,"id",b.STYLESHEETID),this.wrapperUsage.update(),e},b.prototype.updateFontStyles=function(t){t.addStyles(this.font.updateStyles({}))},b.prototype.addWrapperStyles=function(t){var e,r;if(this.options.adaptiveCSS)try{for(var n=u(this.wrapperUsage.update()),o=n.next();!o.done;o=n.next()){var i=o.value,a=this.factory.getNodeClass(i);a&&this.addClassStyles(a,t)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}else s.prototype.addWrapperStyles.call(this,t)},b.prototype.addClassStyles=function(t,e){var r,n=t;n.autoStyle&&"unknown"!==n.kind&&e.addStyles(((r={})["mjx-"+n.kind]={display:"inline-block","text-align":"left"},r)),this.wrapperUsage.add(n.kind),s.prototype.addClassStyles.call(this,t,e)},b.prototype.processMath=function(t,e){this.factory.wrap(t).toCHTML(e)},b.prototype.clearCache=function(){this.cssStyles.clear(),this.font.clearCache(),this.wrapperUsage.clear(),this.chtmlStyles=null},b.prototype.reset=function(){this.clearCache()},b.prototype.unknownText=function(t,e,r){void 0===r&&(r=null);var n={},o=100/this.math.metrics.scale;return 100!=o&&(n["font-size"]=this.fixed(o,1)+"%",n.padding=y.em(75/o)+" 0 "+y.em(20/o)+" 0"),"-explicitFont"!==e&&(1!==(o=(0,g.unicodeChars)(t)).length||o[0]<119808||120831 *":{display:"table-cell"},"mjx-mtext":{display:"inline-block"},"mjx-mstyle":{display:"inline-block"},"mjx-merror":{display:"inline-block",color:"red","background-color":"yellow"},"mjx-mphantom":{visibility:"hidden"},"_::-webkit-full-page-media, _:future, :root mjx-container":{"will-change":"opacity"}},b.STYLESHEETID="MJX-CHTML-styles",b);function b(t){t=s.call(this,t=void 0===t?null:t,d.CHTMLWrapperFactory,m.TeXFont)||this;return t.chtmlStyles=null,t.font.adaptiveCSS(t.options.adaptiveCSS),t.wrapperUsage=new f.Usage,t}e.CHTML=c},8042:function(t,e,r){var n,c,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[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 r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},d=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0 mjx-mid"]={"margin-top":this.em(-r/2),"margin-bottom":this.em(-r/2)}),o&&(a["border-top-width"]=this.em0(o-.03)),i&&(a["border-bottom-width"]=this.em0(i-.03),t["mjx-stretchy-v"+e+" > mjx-end"]={"margin-top":this.em(-i)}),Object.keys(a).length&&(t["mjx-stretchy-v"+e+" > mjx-ext"]=a)},h.prototype.addDelimiterVPart=function(t,e,r,n,o){if(!n)return 0;var i=this.getDelimiterData(n),a=(o[2]-i[2])/2,n={content:this.charContent(n)};return"ext"!==r?n.padding=this.padding(i,a):(n.width=this.em0(o[2]),a&&(n["padding-left"]=this.em0(a))),t["mjx-stretchy-v"+e+" mjx-"+r+" mjx-c::before"]=n,i[0]+i[1]},h.prototype.addDelimiterHStyles=function(t,e,r){var n=d(r.stretch,4),o=n[0],i=n[1],a=n[2],n=n[3],r=r.HDW;this.addDelimiterHPart(t,e,"beg",o,r),this.addDelimiterHPart(t,e,"ext",i,r),this.addDelimiterHPart(t,e,"end",a,r),n&&(this.addDelimiterHPart(t,e,"mid",n,r),t["mjx-stretchy-h"+e+" > mjx-ext"]={width:"50%"})},h.prototype.addDelimiterHPart=function(t,e,r,n,o){var i;n&&((i={content:(i=this.getDelimiterData(n)[3])&&i.c?'"'+i.c+'"':this.charContent(n)}).padding=this.padding(o,0,-o[2]),t["mjx-stretchy-h"+e+" mjx-"+r+" mjx-c::before"]=i)},h.prototype.addCharStyles=function(t,e,r,n){var o=n[3],e=void 0!==o.f?o.f:e;t["mjx-c"+this.charSelector(r)+(e?".TEX-"+e:"")+"::before"]={padding:this.padding(n,0,o.ic||0),content:null!=o.c?'"'+o.c+'"':this.charContent(r)}},h.prototype.getDelimiterData=function(t){return this.getChar("-smallop",t)},h.prototype.em=function(t){return(0,p.em)(t)},h.prototype.em0=function(t){return(0,p.em)(Math.max(0,t))},h.prototype.padding=function(t,e,r){var t=d(t,3),n=t[0],o=t[1];return[n,t[2]+(r=void 0===r?0:r),o,e=void 0===e?0:e].map(this.em0).join(" ")},h.prototype.charContent=function(t){return'"'+(32<=t&&t<=126&&34!==t&&39!==t&&92!==t?String.fromCharCode(t):"\\"+t.toString(16).toUpperCase())+'"'},h.prototype.charSelector=function(t){return".mjx-c"+t.toString(16).toUpperCase()},h.OPTIONS=u(u({},l.FontData.OPTIONS),{fontURL:"js/output/chtml/fonts/tex-woff-v2"}),h.JAX="CHTML",h.defaultVariantClasses={},h.defaultVariantLetters={},h.defaultStyles={"mjx-c::before":{display:"block",width:0}},h.defaultFonts={"@font-face /* 0 */":{"font-family":"MJXZERO",src:'url("%%URL%%/MathJax_Zero.woff") format("woff")'}},h);function h(){var t=null!==c&&c.apply(this,arguments)||this;return t.charUsage=new s.Usage,t.delimUsage=new s.Usage,t}e.CHTMLFontData=a,e.AddCSS=function(t,e){var r,n;try{for(var o=v(Object.keys(e)),i=o.next();!i.done;i=o.next()){var a=i.value,s=parseInt(a);Object.assign(l.FontData.charOptions(t,s),e[s])}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return t}},8270:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLTextNode=void 0,r(9007)),s=r(5355),r=(o=(0,r(1160).CommonTextNodeMixin)(s.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){this.markUsed();var e,r,n=this.adaptor,o=this.parent.variant,i=this.node.getText();if(0!==i.length)if("-explicitFont"===o)n.append(t,this.jax.unknownText(i,o,this.getBBox().w));else{i=this.remappedText(i,o);try{for(var a=h(i),s=a.next();!s.done;s=a.next()){var l=s.value,c=this.getVariantChar(o,l)[3],u=c.f?" TEX-"+c.f:"",p=c.unknown?this.jax.unknownText(String.fromCodePoint(l),o):this.html("mjx-c",{class:this.char(l)+u});n.append(t,p),c.unknown||this.font.charUsage.add([o,l])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}}},l.kind=a.TextNode.prototype.kind,l.autoStyle=!1,l.styles={"mjx-c":{display:"inline-block"},"mjx-utext":{display:"inline-block",padding:".75em 0 .2em 0"}},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLTextNode=r},8102:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmaction=void 0,r(5355)),s=r(1956),l=r(1956),r=r(9145),s=(o=(0,s.CommonMactionMixin)(a.CHTMLWrapper),i(c,o),c.prototype.toCHTML=function(t){t=this.standardCHTMLnode(t);this.selected.toCHTML(t),this.action(this,this.data)},c.prototype.setEventHandler=function(t,e){this.chtml.addEventListener(t,e)},c.kind=r.MmlMaction.prototype.kind,c.styles={"mjx-maction":{position:"relative"},"mjx-maction > mjx-tool":{display:"none",position:"absolute",bottom:0,right:0,width:0,height:0,"z-index":500},"mjx-tool > mjx-tip":{display:"inline-block",padding:".2em",border:"1px solid #888","font-size":"70%","background-color":"#F8F8F8",color:"black","box-shadow":"2px 2px 5px #AAAAAA"},"mjx-maction[toggle]":{cursor:"pointer"},"mjx-status":{display:"block",position:"fixed",left:"1em",bottom:"1em","min-width":"25%",padding:".2em .4em",border:"1px solid #888","font-size":"90%","background-color":"#F8F8F8",color:"black"}},c.actions=new Map([["toggle",[function(t,e){t.adaptor.setAttribute(t.chtml,"toggle",t.node.attributes.get("selection"));var r=t.factory.jax.math,n=t.factory.jax.document,o=t.node;t.setEventHandler("click",function(t){r.end.node||(r.start.node=r.end.node=r.typesetRoot,r.start.n=r.end.n=0),o.nextToggleSelection(),r.rerender(n),t.stopPropagation()})},{}]],["tooltip",[function(r,n){var t,o,i,e=r.childNodes[1];e&&(e.node.isKind("mtext")?(t=e.node.getText(),r.adaptor.setAttribute(r.chtml,"title",t)):(o=r.adaptor,i=o.append(r.chtml,r.html("mjx-tool",{style:{bottom:r.em(-r.dy),right:r.em(-r.dx)}},[r.html("mjx-tip")])),e.toCHTML(o.firstChild(i)),r.setEventHandler("mouseover",function(t){n.stopTimers(r,n);var e=setTimeout(function(){return o.setStyle(i,"display","block")},n.postDelay);n.hoverTimer.set(r,e),t.stopPropagation()}),r.setEventHandler("mouseout",function(t){n.stopTimers(r,n);var e=setTimeout(function(){return o.setStyle(i,"display","")},n.clearDelay);n.clearTimer.set(r,e),t.stopPropagation()})))},l.TooltipData]],["statusline",[function(r,n){var o,i,t=r.childNodes[1];t&&t.node.isKind("mtext")&&(o=r.adaptor,i=t.node.getText(),o.setAttribute(r.chtml,"statusline",i),r.setEventHandler("mouseover",function(t){var e;null===n.status&&(e=o.body(o.document),n.status=o.append(e,r.html("mjx-status",{},[r.text(i)]))),t.stopPropagation()}),r.setEventHandler("mouseout",function(t){n.status&&(o.remove(n.status),n.status=null),t.stopPropagation()}))},{status:null}]]]),c);function c(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmaction=s},804:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0 mjx-dstrike":{display:"inline-block",left:0,top:0,position:"absolute","border-top":b.SOLID,"transform-origin":"top left"},"mjx-menclose > mjx-ustrike":{display:"inline-block",left:0,bottom:0,position:"absolute","border-top":b.SOLID,"transform-origin":"bottom left"},"mjx-menclose > mjx-hstrike":{"border-top":b.SOLID,position:"absolute",left:0,right:0,bottom:"50%",transform:"translateY("+(0,r.em)(b.THICKNESS/2)+")"},"mjx-menclose > mjx-vstrike":{"border-left":b.SOLID,position:"absolute",top:0,bottom:0,right:"50%",transform:"translateX("+(0,r.em)(b.THICKNESS/2)+")"},"mjx-menclose > mjx-rbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:b.SOLID,"border-radius":(0,r.em)(b.THICKNESS+b.PADDING)},"mjx-menclose > mjx-cbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:b.SOLID,"border-radius":"50%"},"mjx-menclose > mjx-arrow":{position:"absolute",left:0,bottom:"50%",height:0,width:0},"mjx-menclose > mjx-arrow > *":{display:"block",position:"absolute","transform-origin":"bottom","border-left":(0,r.em)(b.THICKNESS*b.ARROWX)+" solid","border-right":0,"box-sizing":"border-box"},"mjx-menclose > mjx-arrow > mjx-aline":{left:0,top:(0,r.em)(-b.THICKNESS/2),right:(0,r.em)(b.THICKNESS*(b.ARROWX-1)),height:0,"border-top":(0,r.em)(b.THICKNESS)+" solid","border-left":0},"mjx-menclose > mjx-arrow[double] > mjx-aline":{left:(0,r.em)(b.THICKNESS*(b.ARROWX-1)),height:0},"mjx-menclose > mjx-arrow > mjx-rthead":{transform:"skewX("+p+"rad)",right:0,bottom:"-1px","border-bottom":"1px solid transparent","border-top":(0,r.em)(b.THICKNESS*b.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-rbhead":{transform:"skewX(-"+p+"rad)","transform-origin":"top",right:0,top:"-1px","border-top":"1px solid transparent","border-bottom":(0,r.em)(b.THICKNESS*b.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lthead":{transform:"skewX(-"+p+"rad)",left:0,bottom:"-1px","border-left":0,"border-right":(0,r.em)(b.THICKNESS*b.ARROWX)+" solid","border-bottom":"1px solid transparent","border-top":(0,r.em)(b.THICKNESS*b.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lbhead":{transform:"skewX("+p+"rad)","transform-origin":"top",left:0,top:"-1px","border-left":0,"border-right":(0,r.em)(b.THICKNESS*b.ARROWX)+" solid","border-top":"1px solid transparent","border-bottom":(0,r.em)(b.THICKNESS*b.ARROWY)+" solid transparent"},"mjx-menclose > dbox":{position:"absolute",top:0,bottom:0,left:(0,r.em)(-1.5*b.PADDING),width:(0,r.em)(3*b.PADDING),border:(0,r.em)(b.THICKNESS)+" solid","border-radius":"50%","clip-path":"inset(0 0 0 "+(0,r.em)(1.5*b.PADDING)+")","box-sizing":"border-box"}},f.notations=new Map([b.Border("top"),b.Border("right"),b.Border("bottom"),b.Border("left"),b.Border2("actuarial","top","right"),b.Border2("madruwb","bottom","right"),b.DiagonalStrike("up",1),b.DiagonalStrike("down",-1),["horizontalstrike",{renderer:b.RenderElement("hstrike","Y"),bbox:function(t){return[0,t.padding,0,t.padding]}}],["verticalstrike",{renderer:b.RenderElement("vstrike","X"),bbox:function(t){return[t.padding,0,t.padding,0]}}],["box",{renderer:function(t,e){t.adaptor.setStyle(e,"border",t.em(t.thickness)+" solid")},bbox:b.fullBBox,border:b.fullBorder,remove:"left right top bottom"}],["roundedbox",{renderer:b.RenderElement("rbox"),bbox:b.fullBBox}],["circle",{renderer:b.RenderElement("cbox"),bbox:b.fullBBox}],["phasorangle",{renderer:function(t,e){var r=t.getBBox(),n=r.h,r=r.d,n=h(t.getArgMod(1.75*t.padding,n+r),2),r=n[0],n=n[1],o=t.thickness*Math.sin(r)*.9,e=(t.adaptor.setStyle(e,"border-bottom",t.em(t.thickness)+" solid"),t.adjustBorder(t.html("mjx-ustrike",{style:{width:t.em(n),transform:"translateX("+t.em(o)+") rotate("+t.fixed(-r)+"rad)"}})));t.adaptor.append(t.chtml,e)},bbox:function(t){var e=t.padding/2,t=t.thickness;return[2*e,e,e+t,3*e+t]},border:function(t){return[0,0,t.thickness,0]},remove:"bottom"}],b.Arrow("up"),b.Arrow("down"),b.Arrow("left"),b.Arrow("right"),b.Arrow("updown"),b.Arrow("leftright"),b.DiagonalArrow("updiagonal"),b.DiagonalArrow("northeast"),b.DiagonalArrow("southeast"),b.DiagonalArrow("northwest"),b.DiagonalArrow("southwest"),b.DiagonalArrow("northeastsouthwest"),b.DiagonalArrow("northwestsoutheast"),["longdiv",{renderer:function(t,e){var r=t.adaptor,e=(r.setStyle(e,"border-top",t.em(t.thickness)+" solid"),r.append(t.chtml,t.html("dbox"))),n=t.thickness,o=t.padding;n!==b.THICKNESS&&r.setStyle(e,"border-width",t.em(n)),o!==b.PADDING&&(r.setStyle(e,"left",t.em(-1.5*o)),r.setStyle(e,"width",t.em(3*o)),r.setStyle(e,"clip-path","inset(0 0 0 "+t.em(1.5*o)+")"))},bbox:function(t){var e=t.padding,t=t.thickness;return[e+t,e,e,2*e+t/2]}}],["radical",{renderer:function(e,t){e.msqrt.toCHTML(t);t=e.sqrtTRBL();e.adaptor.setStyle(e.msqrt.chtml,"margin",t.map(function(t){return e.em(-t)}).join(" "))},init:function(t){t.msqrt=t.createMsqrt(t.childNodes[0])},bbox:function(t){return t.sqrtTRBL()},renderChild:!0}]]),f);function f(){return null!==u&&u.apply(this,arguments)||this}e.CHTMLmenclose=c},2275:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmfenced=void 0,r(5355)),s=r(7555),r=r(5410),s=(o=(0,s.CommonMfencedMixin)(a.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){t=this.standardCHTMLnode(t);this.mrow.toCHTML(t)},l.kind=r.MmlMfenced.prototype.kind,l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmfenced=s},9063:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,r=1,n=arguments.length;r *":{"font-size":"2000%"},"mjx-dbox":{display:"block","font-size":"5%"},"mjx-num":{display:"block","text-align":"center"},"mjx-den":{display:"block","text-align":"center"},"mjx-mfrac[bevelled] > mjx-num":{display:"inline-block"},"mjx-mfrac[bevelled] > mjx-den":{display:"inline-block"},'mjx-den[align="right"], mjx-num[align="right"]':{"text-align":"right"},'mjx-den[align="left"], mjx-num[align="left"]':{"text-align":"left"},"mjx-nstrut":{display:"inline-block",height:".054em",width:0,"vertical-align":"-.054em"},'mjx-nstrut[type="d"]':{height:".217em","vertical-align":"-.217em"},"mjx-dstrut":{display:"inline-block",height:".505em",width:0},'mjx-dstrut[type="d"]':{height:".726em"},"mjx-line":{display:"block","box-sizing":"border-box","min-height":"1px",height:".06em","border-top":".06em solid",margin:".06em -.1em",overflow:"hidden"},'mjx-line[type="d"]':{margin:".18em -.1em"}},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmfrac=s},6911:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmglyph=void 0,r(5355)),s=r(5636),r=r(3985),s=(o=(0,s.CommonMglyphMixin)(a.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){var e,r,n,t=this.standardCHTMLnode(t);this.charWrapper?this.charWrapper.toCHTML(t):(n=(e=this.node.attributes.getList("src","alt")).src,e=e.alt,r={width:this.em(this.width),height:this.em(this.height)},this.valign&&(r.verticalAlign=this.em(this.valign)),n=this.html("img",{src:n,style:r,alt:e,title:e}),this.adaptor.append(t,n))},l.kind=r.MmlMglyph.prototype.kind,l.styles={"mjx-mglyph > img":{display:"inline-block",border:0,padding:0}},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmglyph=s},1653:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmi=void 0,r(5355)),s=r(5723),r=r(450),s=(o=(0,s.CommonMiMixin)(a.CHTMLWrapper),i(l,o),l.kind=r.MmlMi.prototype.kind,l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmi=s},6781:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0 mjx-row > mjx-cell":{"text-align":"right"},'[script-align="left"] > mjx-row > mjx-cell':{"text-align":"left"},'[script-align="center"] > mjx-row > mjx-cell':{"text-align":"center"},'[script-align="right"] > mjx-row > mjx-cell':{"text-align":"right"}},p);function p(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmmultiscripts=r},6460:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmn=void 0,r(5355)),s=r(5023),r=r(3050),s=(o=(0,s.CommonMnMixin)(a.CHTMLWrapper),i(l,o),l.kind=r.MmlMn.prototype.kind,l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmn=s},6287:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmo=void 0,r(5355)),l=r(7096),r=r(2756),a=(o=(0,l.CommonMoMixin)(a.CHTMLWrapper),i(s,o),s.prototype.toCHTML=function(t){var e,r,n=this.node.attributes,o=n.get("symmetric")&&2!==this.stretch.dir,i=0!==this.stretch.dir,a=(i&&null===this.size&&this.getStretchedVariant([]),this.standardCHTMLnode(t));if(i&&this.size<0)this.stretchHTML(a);else{!o&&!n.get("largeop")||"0"!==(i=this.em(this.getCenterOffset()))&&this.adaptor.setStyle(a,"verticalAlign",i),this.node.getProperty("mathaccent")&&(this.adaptor.setStyle(a,"width","0"),this.adaptor.setStyle(a,"margin-left",this.em(this.getAccentOffset())));try{for(var s=c(this.childNodes),l=s.next();!l.done;l=s.next())l.value.toCHTML(a)}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}}},s.prototype.stretchHTML=function(t){var e=this.getText().codePointAt(0),r=(this.font.delimUsage.add(e),this.childNodes[0].markUsed(),this.stretch),n=r.stretch,o=[],n=(n[0]&&o.push(this.html("mjx-beg",{},[this.html("mjx-c")])),o.push(this.html("mjx-ext",{},[this.html("mjx-c")])),4===n.length&&o.push(this.html("mjx-mid",{},[this.html("mjx-c")]),this.html("mjx-ext",{},[this.html("mjx-c")])),n[2]&&o.push(this.html("mjx-end",{},[this.html("mjx-c")])),{}),i=this.bbox,a=i.h,s=i.d,i=i.w,a=(1===r.dir?(o.push(this.html("mjx-mark")),n.height=this.em(a+s),n.verticalAlign=this.em(-s)):n.width=this.em(i),l.DirectionVH[r.dir]),s={class:this.char(r.c||e),style:n},i=this.html("mjx-stretchy-"+a,s,o);this.adaptor.append(t,i)},s.kind=r.MmlMo.prototype.kind,s.styles={"mjx-stretchy-h":{display:"inline-table",width:"100%"},"mjx-stretchy-h > *":{display:"table-cell",width:0},"mjx-stretchy-h > * > mjx-c":{display:"inline-block",transform:"scalex(1.0000001)"},"mjx-stretchy-h > * > mjx-c::before":{display:"inline-block",width:"initial"},"mjx-stretchy-h > mjx-ext":{"/* IE */ overflow":"hidden","/* others */ overflow":"clip visible",width:"100%"},"mjx-stretchy-h > mjx-ext > mjx-c::before":{transform:"scalex(500)"},"mjx-stretchy-h > mjx-ext > mjx-c":{width:0},"mjx-stretchy-h > mjx-beg > mjx-c":{"margin-right":"-.1em"},"mjx-stretchy-h > mjx-end > mjx-c":{"margin-left":"-.1em"},"mjx-stretchy-v":{display:"inline-block"},"mjx-stretchy-v > *":{display:"block"},"mjx-stretchy-v > mjx-beg":{height:0},"mjx-stretchy-v > mjx-end > mjx-c":{display:"block"},"mjx-stretchy-v > * > mjx-c":{transform:"scaley(1.0000001)","transform-origin":"left center",overflow:"hidden"},"mjx-stretchy-v > mjx-ext":{display:"block",height:"100%","box-sizing":"border-box",border:"0px solid transparent","/* IE */ overflow":"hidden","/* others */ overflow":"visible clip"},"mjx-stretchy-v > mjx-ext > mjx-c::before":{width:"initial","box-sizing":"border-box"},"mjx-stretchy-v > mjx-ext > mjx-c":{transform:"scaleY(500) translateY(.075em)",overflow:"visible"},"mjx-mark":{display:"inline-block",height:"0px"}},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmo=a},5964:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),m=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmpadded=void 0,r(5355)),s=r(6898),r=r(7238),s=(o=(0,s.CommonMpaddedMixin)(a.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){var e,r,n=this.standardCHTMLnode(t),o=[],i={},a=m(this.getDimens(),9),s=a[2],l=a[3],c=a[4],u=a[5],p=a[6],h=a[7],a=a[8];u&&(i.width=this.em(s+u)),(l||c)&&(i.margin=this.em(l)+" 0 "+this.em(c)),(p+a||h)&&(i.position="relative",s=this.html("mjx-rbox",{style:{left:this.em(p+a),top:this.em(-h),"max-width":i.width}}),p+a&&this.childNodes[0].getBBox().pwidth&&(this.adaptor.setAttribute(s,"width","full"),this.adaptor.setStyle(s,"left",this.em(p))),o.push(s)),n=this.adaptor.append(n,this.html("mjx-block",{style:i},o));try{for(var d=y(this.childNodes),f=d.next();!f.done;f=d.next())f.value.toCHTML(o[0]||n)}catch(t){e={error:t}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(e)throw e.error}}},l.kind=r.MmlMpadded.prototype.kind,l.styles={"mjx-mpadded":{display:"inline-block"},"mjx-rbox":{display:"inline-block",position:"relative"}},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmpadded=s},8776:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLinferredMrow=e.CHTMLmrow=void 0,r(5355)),s=r(8411),c=r(8411),r=r(9878),s=(o=(0,s.CommonMrowMixin)(a.CHTMLWrapper),i(u,o),u.prototype.toCHTML=function(t){var e,r,n=this.node.isInferred?this.chtml=t:this.standardCHTMLnode(t),o=!1;try{for(var i=l(this.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value;s.toCHTML(n),s.bbox.w<0&&(o=!0)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}o&&(r=this.getBBox().w)&&(this.adaptor.setStyle(n,"width",this.em(Math.max(0,r))),r<0&&this.adaptor.setStyle(n,"marginRight",this.em(r)))},u.kind=r.MmlMrow.prototype.kind,u);function u(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmrow=s;p=(0,c.CommonInferredMrowMixin)(s),i(h,p),h.kind=r.MmlInferredMrow.prototype.kind;var p,a=h;function h(){return null!==p&&p.apply(this,arguments)||this}e.CHTMLinferredMrow=a},4597:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLms=void 0,r(5355)),s=r(4126),r=r(7265),s=(o=(0,s.CommonMsMixin)(a.CHTMLWrapper),i(l,o),l.kind=r.MmlMs.prototype.kind,l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLms=s},2970:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmspace=void 0,r(5355)),s=r(258),r=r(6030),s=(o=(0,s.CommonMspaceMixin)(a.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){var t=this.standardCHTMLnode(t),e=this.getBBox(),r=e.w,n=e.h,e=e.d;r<0&&(this.adaptor.setStyle(t,"marginRight",this.em(r)),r=0),r&&this.adaptor.setStyle(t,"width",this.em(r)),(n=Math.max(0,n+e))&&this.adaptor.setStyle(t,"height",this.em(Math.max(0,n))),e&&this.adaptor.setStyle(t,"verticalAlign",this.em(-e))},l.kind=r.MmlMspace.prototype.kind,l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmspace=s},5610:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),c=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0 mjx-box":{"border-top":".07em solid"},"mjx-sqrt.mjx-tall > mjx-box":{"padding-left":".3em","margin-left":"-.3em"}},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmsqrt=s},4300:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0 mjx-spacer":{display:"block"}};var f,c=m;function m(){return null!==f&&f.apply(this,arguments)||this}e.CHTMLmsubsup=c},8002:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),g=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0 mjx-itable":{"vertical-align":"middle","text-align":"left","box-sizing":"border-box"},"mjx-labels > mjx-itable":{position:"absolute",top:0},'mjx-mtable[justify="left"]':{"text-align":"left"},'mjx-mtable[justify="right"]':{"text-align":"right"},'mjx-mtable[justify="left"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="left"][side="right"]':{"padding-left":"0 ! important"},'mjx-mtable[justify="right"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="right"][side="right"]':{"padding-left":"0 ! important"},"mjx-mtable[align]":{"vertical-align":"baseline"},'mjx-mtable[align="top"] > mjx-table':{"vertical-align":"top"},'mjx-mtable[align="bottom"] > mjx-table':{"vertical-align":"bottom"},'mjx-mtable[side="right"] mjx-labels':{"min-width":"100%"}},p);function p(t,e,r){t=o.call(this,t,e,r=void 0===r?null:r)||this;return t.itable=t.html("mjx-itable"),t.labels=t.html("mjx-itable"),t}e.CHTMLmtable=r},7056:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmtd=void 0,r(5355)),s=r(5164),r=r(4359),s=(o=(0,s.CommonMtdMixin)(a.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){o.prototype.toCHTML.call(this,t);var t=this.node.attributes.get("rowalign"),e=this.node.attributes.get("columnalign");t!==this.parent.node.attributes.get("rowalign")&&this.adaptor.setAttribute(this.chtml,"rowalign",t),"center"===e||"mlabeledtr"===this.parent.kind&&this===this.parent.childNodes[0]&&e===this.parent.parent.node.attributes.get("side")||this.adaptor.setStyle(this.chtml,"textAlign",e),this.parent.parent.node.getProperty("useHeight")&&this.adaptor.append(this.chtml,this.html("mjx-tstrut"))},l.kind=r.MmlMtd.prototype.kind,l.styles={"mjx-mtd":{display:"table-cell","text-align":"center",padding:".215em .4em"},"mjx-mtd:first-child":{"padding-left":0},"mjx-mtd:last-child":{"padding-right":0},"mjx-mtable > * > mjx-itable > *:first-child > mjx-mtd":{"padding-top":0},"mjx-mtable > * > mjx-itable > *:last-child > mjx-mtd":{"padding-bottom":0},"mjx-tstrut":{display:"inline-block",height:"1em","vertical-align":"-.25em"},'mjx-labels[align="left"] > mjx-mtr > mjx-mtd':{"text-align":"left"},'mjx-labels[align="right"] > mjx-mtr > mjx-mtd':{"text-align":"right"},"mjx-mtd[extra]":{padding:0},'mjx-mtd[rowalign="top"]':{"vertical-align":"top"},'mjx-mtd[rowalign="center"]':{"vertical-align":"middle"},'mjx-mtd[rowalign="bottom"]':{"vertical-align":"bottom"},'mjx-mtd[rowalign="baseline"]':{"vertical-align":"baseline"},'mjx-mtd[rowalign="axis"]':{"vertical-align":".25em"}},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmtd=s},1259:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmtext=void 0,r(5355)),s=r(6319),r=r(4770),s=(o=(0,s.CommonMtextMixin)(a.CHTMLWrapper),i(l,o),l.kind=r.MmlMtext.prototype.kind,l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmtext=s},3571:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmlabeledtr=e.CHTMLmtr=void 0,r(5355)),s=r(5766),l=r(5766),r=r(5022),c=(o=(0,s.CommonMtrMixin)(a.CHTMLWrapper),i(u,o),u.prototype.toCHTML=function(t){o.prototype.toCHTML.call(this,t);t=this.node.attributes.get("rowalign");"baseline"!==t&&this.adaptor.setAttribute(this.chtml,"rowalign",t)},u.kind=r.MmlMtr.prototype.kind,u.styles={"mjx-mtr":{display:"table-row"},'mjx-mtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}},u);function u(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmtr=c;p=(0,l.CommonMlabeledtrMixin)(c),i(h,p),h.prototype.toCHTML=function(t){p.prototype.toCHTML.call(this,t);var e,t=this.adaptor.firstChild(this.chtml);t&&(this.adaptor.remove(t),e=this.node.attributes.get("rowalign"),e=this.html("mjx-mtr","baseline"!==e&&"axis"!==e?{rowalign:e}:{},[t]),this.adaptor.append(this.parent.labels,e))},h.prototype.markUsed=function(){p.prototype.markUsed.call(this),this.jax.wrapperUsage.add(c.kind)},h.kind=r.MmlMlabeledtr.prototype.kind,h.styles={"mjx-mlabeledtr":{display:"table-row"},'mjx-mlabeledtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mlabeledtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mlabeledtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mlabeledtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mlabeledtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}};var p,s=h;function h(){return null!==p&&p.apply(this,arguments)||this}e.CHTMLmlabeledtr=s},6590:function(t,e,r){var n,a,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[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 r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmunderover=e.CHTMLmover=e.CHTMLmunder=void 0,r(4300)),s=r(1971),l=r(1971),c=r(1971),r=r(5184),s=(a=(0,s.CommonMunderMixin)(i.CHTMLmsub),o(u,a),u.prototype.toCHTML=function(t){if(this.hasMovableLimits())return a.prototype.toCHTML.call(this,t),void this.adaptor.setAttribute(this.chtml,"limits","false");this.chtml=this.standardCHTMLnode(t);var t=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-row")),this.html("mjx-base")),e=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-row")),this.html("mjx-under")),r=(this.baseChild.toCHTML(t),this.scriptChild.toCHTML(e),this.baseChild.getOuterBBox()),n=this.scriptChild.getOuterBBox(),o=this.getUnderKV(r,n)[0],i=this.isLineBelow?0:this.getDelta(!0);this.adaptor.setStyle(e,"paddingTop",this.em(o)),this.setDeltaW([t,e],this.getDeltaW([r,n],[0,-i])),this.adjustUnderDepth(e,n)},u.kind=r.MmlMunder.prototype.kind,u.styles={"mjx-over":{"text-align":"left"},'mjx-munder:not([limits="false"])':{display:"inline-table"},"mjx-munder > mjx-row":{"text-align":"left"},"mjx-under":{"padding-bottom":".1em"}},u);function u(){return null!==a&&a.apply(this,arguments)||this}e.CHTMLmunder=s;p=(0,l.CommonMoverMixin)(i.CHTMLmsup),o(h,p),h.prototype.toCHTML=function(t){if(this.hasMovableLimits())return p.prototype.toCHTML.call(this,t),void this.adaptor.setAttribute(this.chtml,"limits","false");this.chtml=this.standardCHTMLnode(t);var t=this.adaptor.append(this.chtml,this.html("mjx-over")),e=this.adaptor.append(this.chtml,this.html("mjx-base")),r=(this.scriptChild.toCHTML(t),this.baseChild.toCHTML(e),this.scriptChild.getOuterBBox()),n=this.baseChild.getOuterBBox(),o=(this.adjustBaseHeight(e,n),this.getOverKU(n,r)[0]),i=this.isLineAbove?0:this.getDelta();this.adaptor.setStyle(t,"paddingBottom",this.em(o)),this.setDeltaW([e,t],this.getDeltaW([n,r],[0,i])),this.adjustOverDepth(t,r)},h.kind=r.MmlMover.prototype.kind,h.styles={'mjx-mover:not([limits="false"])':{"padding-top":".1em"},'mjx-mover:not([limits="false"]) > *':{display:"block","text-align":"left"}};var p,s=h;function h(){return null!==p&&p.apply(this,arguments)||this}e.CHTMLmover=s;d=(0,c.CommonMunderoverMixin)(i.CHTMLmsubsup),o(f,d),f.prototype.toCHTML=function(t){if(this.hasMovableLimits())return d.prototype.toCHTML.call(this,t),void this.adaptor.setAttribute(this.chtml,"limits","false");this.chtml=this.standardCHTMLnode(t);var t=this.adaptor.append(this.chtml,this.html("mjx-over")),e=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-box")),this.html("mjx-munder")),r=this.adaptor.append(this.adaptor.append(e,this.html("mjx-row")),this.html("mjx-base")),e=this.adaptor.append(this.adaptor.append(e,this.html("mjx-row")),this.html("mjx-under")),n=(this.overChild.toCHTML(t),this.baseChild.toCHTML(r),this.underChild.toCHTML(e),this.overChild.getOuterBBox()),o=this.baseChild.getOuterBBox(),i=this.underChild.getOuterBBox(),a=(this.adjustBaseHeight(r,o),this.getOverKU(o,n)[0]),s=this.getUnderKV(o,i)[0],l=this.getDelta();this.adaptor.setStyle(t,"paddingBottom",this.em(a)),this.adaptor.setStyle(e,"paddingTop",this.em(s)),this.setDeltaW([r,e,t],this.getDeltaW([o,i,n],[0,this.isLineBelow?0:-l,this.isLineAbove?0:l])),this.adjustOverDepth(t,n),this.adjustUnderDepth(e,i)},f.prototype.markUsed=function(){d.prototype.markUsed.call(this),this.jax.wrapperUsage.add(i.CHTMLmsubsup.kind)},f.kind=r.MmlMunderover.prototype.kind,f.styles={'mjx-munderover:not([limits="false"])':{"padding-top":".1em"},'mjx-munderover:not([limits="false"]) > *':{display:"block"}};var d,l=f;function f(){return null!==d&&d.apply(this,arguments)||this}e.CHTMLmunderover=l},8650:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLscriptbase=void 0,r(5355)),r=(o=(0,r(167).CommonScriptbaseMixin)(s.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){this.chtml=this.standardCHTMLnode(t);var t=a(this.getOffset(),2),e=t[0],t=t[1],e=e-(this.baseRemoveIc?this.baseIc:0),t={"vertical-align":this.em(t)};e&&(t["margin-left"]=this.em(e)),this.baseChild.toCHTML(this.chtml),this.scriptChild.toCHTML(this.adaptor.append(this.chtml,this.html("mjx-script",{style:t})))},l.prototype.setDeltaW=function(t,e){for(var r=0;r\\338"},8816:{c:"\\2264\\338"},8817:{c:"\\2265\\338"},8832:{c:"\\227A\\338"},8833:{c:"\\227B\\338"},8836:{c:"\\2282\\338"},8837:{c:"\\2283\\338"},8840:{c:"\\2286\\338"},8841:{c:"\\2287\\338"},8876:{c:"\\22A2\\338"},8877:{c:"\\22A8\\338"},8930:{c:"\\2291\\338"},8931:{c:"\\2292\\338"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9653:{c:"\\25B3"},9663:{c:"\\25BD"},10072:{c:"\\2223"},10744:{c:"/",f:"BI"},10799:{c:"\\D7"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},4515:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.doubleStruck=void 0;var n=r(6001);Object.defineProperty(e,"doubleStruck",{enumerable:!0,get:function(){return n.doubleStruck}})},6555:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.frakturBold=void 0;var n=r(8042),r=r(3696);e.frakturBold=(0,n.AddCSS)(r.frakturBold,{8260:{c:"/"}})},2183:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.fraktur=void 0;var n=r(8042),r=r(9587);e.fraktur=(0,n.AddCSS)(r.fraktur,{8260:{c:"/"}})},3490:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.italic=void 0;var n=r(8042),r=r(8348);e.italic=(0,n.AddCSS)(r.italic,{47:{f:"I"},989:{c:"\\E008",f:"A"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/",f:"I"},8710:{c:"\\394",f:"I"},10744:{c:"/",f:"I"}})},9056:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.largeop=void 0;var n=r(8042),r=r(1376);e.largeop=(0,n.AddCSS)(r.largeop,{8214:{f:"S1"},8260:{c:"/"},8593:{f:"S1"},8595:{f:"S1"},8657:{f:"S1"},8659:{f:"S1"},8739:{f:"S1"},8741:{f:"S1"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9168:{f:"S1"},10072:{c:"\\2223",f:"S1"},10764:{c:"\\222C\\222C"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},3019:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.monospace=void 0;var n=r(8042),r=r(1439);e.monospace=(0,n.AddCSS)(r.monospace,{697:{c:"\\2032"},913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8215:{c:"_"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8710:{c:"\\394"}})},2713:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.normal=void 0;var n=r(8042),r=r(331);e.normal=(0,n.AddCSS)(r.normal,{163:{f:"MI"},165:{f:"A"},174:{f:"A"},183:{c:"\\22C5"},240:{f:"A"},697:{c:"\\2032"},913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8192:{c:""},8193:{c:""},8194:{c:""},8195:{c:""},8196:{c:""},8197:{c:""},8198:{c:""},8201:{c:""},8202:{c:""},8203:{c:""},8204:{c:""},8213:{c:"\\2014"},8214:{c:"\\2225"},8215:{c:"_"},8226:{c:"\\2219"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8245:{f:"A"},8246:{c:"\\2035\\2035",f:"A"},8247:{c:"\\2035\\2035\\2035",f:"A"},8254:{c:"\\2C9"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8288:{c:""},8289:{c:""},8290:{c:""},8291:{c:""},8292:{c:""},8407:{c:"\\2192",f:"V"},8450:{c:"C",f:"A"},8459:{c:"H",f:"SC"},8460:{c:"H",f:"FR"},8461:{c:"H",f:"A"},8462:{c:"h",f:"I"},8463:{f:"A"},8464:{c:"I",f:"SC"},8465:{c:"I",f:"FR"},8466:{c:"L",f:"SC"},8469:{c:"N",f:"A"},8473:{c:"P",f:"A"},8474:{c:"Q",f:"A"},8475:{c:"R",f:"SC"},8476:{c:"R",f:"FR"},8477:{c:"R",f:"A"},8484:{c:"Z",f:"A"},8486:{c:"\\3A9"},8487:{f:"A"},8488:{c:"Z",f:"FR"},8492:{c:"B",f:"SC"},8493:{c:"C",f:"FR"},8496:{c:"E",f:"SC"},8497:{c:"F",f:"SC"},8498:{f:"A"},8499:{c:"M",f:"SC"},8502:{f:"A"},8503:{f:"A"},8504:{f:"A"},8513:{f:"A"},8602:{f:"A"},8603:{f:"A"},8606:{f:"A"},8608:{f:"A"},8610:{f:"A"},8611:{f:"A"},8619:{f:"A"},8620:{f:"A"},8621:{f:"A"},8622:{f:"A"},8624:{f:"A"},8625:{f:"A"},8630:{f:"A"},8631:{f:"A"},8634:{f:"A"},8635:{f:"A"},8638:{f:"A"},8639:{f:"A"},8642:{f:"A"},8643:{f:"A"},8644:{f:"A"},8646:{f:"A"},8647:{f:"A"},8648:{f:"A"},8649:{f:"A"},8650:{f:"A"},8651:{f:"A"},8653:{f:"A"},8654:{f:"A"},8655:{f:"A"},8666:{f:"A"},8667:{f:"A"},8669:{f:"A"},8672:{f:"A"},8674:{f:"A"},8705:{f:"A"},8708:{c:"\\2203\\338"},8710:{c:"\\394"},8716:{c:"\\220B\\338"},8717:{f:"A"},8719:{f:"S1"},8720:{f:"S1"},8721:{f:"S1"},8724:{f:"A"},8737:{f:"A"},8738:{f:"A"},8740:{f:"A"},8742:{f:"A"},8748:{f:"S1"},8749:{f:"S1"},8750:{f:"S1"},8756:{f:"A"},8757:{f:"A"},8765:{f:"A"},8769:{f:"A"},8770:{f:"A"},8772:{c:"\\2243\\338"},8775:{c:"\\2246",f:"A"},8777:{c:"\\2248\\338"},8778:{f:"A"},8782:{f:"A"},8783:{f:"A"},8785:{f:"A"},8786:{f:"A"},8787:{f:"A"},8790:{f:"A"},8791:{f:"A"},8796:{f:"A"},8802:{c:"\\2261\\338"},8806:{f:"A"},8807:{f:"A"},8808:{f:"A"},8809:{f:"A"},8812:{f:"A"},8813:{c:"\\224D\\338"},8814:{f:"A"},8815:{f:"A"},8816:{f:"A"},8817:{f:"A"},8818:{f:"A"},8819:{f:"A"},8820:{c:"\\2272\\338"},8821:{c:"\\2273\\338"},8822:{f:"A"},8823:{f:"A"},8824:{c:"\\2276\\338"},8825:{c:"\\2277\\338"},8828:{f:"A"},8829:{f:"A"},8830:{f:"A"},8831:{f:"A"},8832:{f:"A"},8833:{f:"A"},8836:{c:"\\2282\\338"},8837:{c:"\\2283\\338"},8840:{f:"A"},8841:{f:"A"},8842:{f:"A"},8843:{f:"A"},8847:{f:"A"},8848:{f:"A"},8858:{f:"A"},8859:{f:"A"},8861:{f:"A"},8862:{f:"A"},8863:{f:"A"},8864:{f:"A"},8865:{f:"A"},8873:{f:"A"},8874:{f:"A"},8876:{f:"A"},8877:{f:"A"},8878:{f:"A"},8879:{f:"A"},8882:{f:"A"},8883:{f:"A"},8884:{f:"A"},8885:{f:"A"},8888:{f:"A"},8890:{f:"A"},8891:{f:"A"},8892:{f:"A"},8896:{f:"S1"},8897:{f:"S1"},8898:{f:"S1"},8899:{f:"S1"},8903:{f:"A"},8905:{f:"A"},8906:{f:"A"},8907:{f:"A"},8908:{f:"A"},8909:{f:"A"},8910:{f:"A"},8911:{f:"A"},8912:{f:"A"},8913:{f:"A"},8914:{f:"A"},8915:{f:"A"},8916:{f:"A"},8918:{f:"A"},8919:{f:"A"},8920:{f:"A"},8921:{f:"A"},8922:{f:"A"},8923:{f:"A"},8926:{f:"A"},8927:{f:"A"},8928:{f:"A"},8929:{f:"A"},8930:{c:"\\2291\\338"},8931:{c:"\\2292\\338"},8934:{f:"A"},8935:{f:"A"},8936:{f:"A"},8937:{f:"A"},8938:{f:"A"},8939:{f:"A"},8940:{f:"A"},8941:{f:"A"},8965:{c:"\\22BC",f:"A"},8966:{c:"\\2A5E",f:"A"},8988:{c:"\\250C",f:"A"},8989:{c:"\\2510",f:"A"},8990:{c:"\\2514",f:"A"},8991:{c:"\\2518",f:"A"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9168:{f:"S1"},9416:{f:"A"},9484:{f:"A"},9488:{f:"A"},9492:{f:"A"},9496:{f:"A"},9585:{f:"A"},9586:{f:"A"},9632:{f:"A"},9633:{f:"A"},9642:{c:"\\25A0",f:"A"},9650:{f:"A"},9652:{c:"\\25B2",f:"A"},9653:{c:"\\25B3"},9654:{f:"A"},9656:{c:"\\25B6",f:"A"},9660:{f:"A"},9662:{c:"\\25BC",f:"A"},9663:{c:"\\25BD"},9664:{f:"A"},9666:{c:"\\25C0",f:"A"},9674:{f:"A"},9723:{c:"\\25A1",f:"A"},9724:{c:"\\25A0",f:"A"},9733:{f:"A"},10003:{f:"A"},10016:{f:"A"},10072:{c:"\\2223"},10731:{f:"A"},10744:{c:"/",f:"I"},10752:{f:"S1"},10753:{f:"S1"},10754:{f:"S1"},10756:{f:"S1"},10758:{f:"S1"},10764:{c:"\\222C\\222C",f:"S1"},10799:{c:"\\D7"},10846:{f:"A"},10877:{f:"A"},10878:{f:"A"},10885:{f:"A"},10886:{f:"A"},10887:{f:"A"},10888:{f:"A"},10889:{f:"A"},10890:{f:"A"},10891:{f:"A"},10892:{f:"A"},10901:{f:"A"},10902:{f:"A"},10933:{f:"A"},10934:{f:"A"},10935:{f:"A"},10936:{f:"A"},10937:{f:"A"},10938:{f:"A"},10949:{f:"A"},10950:{f:"A"},10955:{f:"A"},10956:{f:"A"},12296:{c:"\\27E8"},12297:{c:"\\27E9"},57350:{f:"A"},57351:{f:"A"},57352:{f:"A"},57353:{f:"A"},57356:{f:"A"},57357:{f:"A"},57358:{f:"A"},57359:{f:"A"},57360:{f:"A"},57361:{f:"A"},57366:{f:"A"},57367:{f:"A"},57368:{f:"A"},57369:{f:"A"},57370:{f:"A"},57371:{f:"A"},119808:{c:"A",f:"B"},119809:{c:"B",f:"B"},119810:{c:"C",f:"B"},119811:{c:"D",f:"B"},119812:{c:"E",f:"B"},119813:{c:"F",f:"B"},119814:{c:"G",f:"B"},119815:{c:"H",f:"B"},119816:{c:"I",f:"B"},119817:{c:"J",f:"B"},119818:{c:"K",f:"B"},119819:{c:"L",f:"B"},119820:{c:"M",f:"B"},119821:{c:"N",f:"B"},119822:{c:"O",f:"B"},119823:{c:"P",f:"B"},119824:{c:"Q",f:"B"},119825:{c:"R",f:"B"},119826:{c:"S",f:"B"},119827:{c:"T",f:"B"},119828:{c:"U",f:"B"},119829:{c:"V",f:"B"},119830:{c:"W",f:"B"},119831:{c:"X",f:"B"},119832:{c:"Y",f:"B"},119833:{c:"Z",f:"B"},119834:{c:"a",f:"B"},119835:{c:"b",f:"B"},119836:{c:"c",f:"B"},119837:{c:"d",f:"B"},119838:{c:"e",f:"B"},119839:{c:"f",f:"B"},119840:{c:"g",f:"B"},119841:{c:"h",f:"B"},119842:{c:"i",f:"B"},119843:{c:"j",f:"B"},119844:{c:"k",f:"B"},119845:{c:"l",f:"B"},119846:{c:"m",f:"B"},119847:{c:"n",f:"B"},119848:{c:"o",f:"B"},119849:{c:"p",f:"B"},119850:{c:"q",f:"B"},119851:{c:"r",f:"B"},119852:{c:"s",f:"B"},119853:{c:"t",f:"B"},119854:{c:"u",f:"B"},119855:{c:"v",f:"B"},119856:{c:"w",f:"B"},119857:{c:"x",f:"B"},119858:{c:"y",f:"B"},119859:{c:"z",f:"B"},119860:{c:"A",f:"I"},119861:{c:"B",f:"I"},119862:{c:"C",f:"I"},119863:{c:"D",f:"I"},119864:{c:"E",f:"I"},119865:{c:"F",f:"I"},119866:{c:"G",f:"I"},119867:{c:"H",f:"I"},119868:{c:"I",f:"I"},119869:{c:"J",f:"I"},119870:{c:"K",f:"I"},119871:{c:"L",f:"I"},119872:{c:"M",f:"I"},119873:{c:"N",f:"I"},119874:{c:"O",f:"I"},119875:{c:"P",f:"I"},119876:{c:"Q",f:"I"},119877:{c:"R",f:"I"},119878:{c:"S",f:"I"},119879:{c:"T",f:"I"},119880:{c:"U",f:"I"},119881:{c:"V",f:"I"},119882:{c:"W",f:"I"},119883:{c:"X",f:"I"},119884:{c:"Y",f:"I"},119885:{c:"Z",f:"I"},119886:{c:"a",f:"I"},119887:{c:"b",f:"I"},119888:{c:"c",f:"I"},119889:{c:"d",f:"I"},119890:{c:"e",f:"I"},119891:{c:"f",f:"I"},119892:{c:"g",f:"I"},119894:{c:"i",f:"I"},119895:{c:"j",f:"I"},119896:{c:"k",f:"I"},119897:{c:"l",f:"I"},119898:{c:"m",f:"I"},119899:{c:"n",f:"I"},119900:{c:"o",f:"I"},119901:{c:"p",f:"I"},119902:{c:"q",f:"I"},119903:{c:"r",f:"I"},119904:{c:"s",f:"I"},119905:{c:"t",f:"I"},119906:{c:"u",f:"I"},119907:{c:"v",f:"I"},119908:{c:"w",f:"I"},119909:{c:"x",f:"I"},119910:{c:"y",f:"I"},119911:{c:"z",f:"I"},119912:{c:"A",f:"BI"},119913:{c:"B",f:"BI"},119914:{c:"C",f:"BI"},119915:{c:"D",f:"BI"},119916:{c:"E",f:"BI"},119917:{c:"F",f:"BI"},119918:{c:"G",f:"BI"},119919:{c:"H",f:"BI"},119920:{c:"I",f:"BI"},119921:{c:"J",f:"BI"},119922:{c:"K",f:"BI"},119923:{c:"L",f:"BI"},119924:{c:"M",f:"BI"},119925:{c:"N",f:"BI"},119926:{c:"O",f:"BI"},119927:{c:"P",f:"BI"},119928:{c:"Q",f:"BI"},119929:{c:"R",f:"BI"},119930:{c:"S",f:"BI"},119931:{c:"T",f:"BI"},119932:{c:"U",f:"BI"},119933:{c:"V",f:"BI"},119934:{c:"W",f:"BI"},119935:{c:"X",f:"BI"},119936:{c:"Y",f:"BI"},119937:{c:"Z",f:"BI"},119938:{c:"a",f:"BI"},119939:{c:"b",f:"BI"},119940:{c:"c",f:"BI"},119941:{c:"d",f:"BI"},119942:{c:"e",f:"BI"},119943:{c:"f",f:"BI"},119944:{c:"g",f:"BI"},119945:{c:"h",f:"BI"},119946:{c:"i",f:"BI"},119947:{c:"j",f:"BI"},119948:{c:"k",f:"BI"},119949:{c:"l",f:"BI"},119950:{c:"m",f:"BI"},119951:{c:"n",f:"BI"},119952:{c:"o",f:"BI"},119953:{c:"p",f:"BI"},119954:{c:"q",f:"BI"},119955:{c:"r",f:"BI"},119956:{c:"s",f:"BI"},119957:{c:"t",f:"BI"},119958:{c:"u",f:"BI"},119959:{c:"v",f:"BI"},119960:{c:"w",f:"BI"},119961:{c:"x",f:"BI"},119962:{c:"y",f:"BI"},119963:{c:"z",f:"BI"},119964:{c:"A",f:"SC"},119966:{c:"C",f:"SC"},119967:{c:"D",f:"SC"},119970:{c:"G",f:"SC"},119973:{c:"J",f:"SC"},119974:{c:"K",f:"SC"},119977:{c:"N",f:"SC"},119978:{c:"O",f:"SC"},119979:{c:"P",f:"SC"},119980:{c:"Q",f:"SC"},119982:{c:"S",f:"SC"},119983:{c:"T",f:"SC"},119984:{c:"U",f:"SC"},119985:{c:"V",f:"SC"},119986:{c:"W",f:"SC"},119987:{c:"X",f:"SC"},119988:{c:"Y",f:"SC"},119989:{c:"Z",f:"SC"},120068:{c:"A",f:"FR"},120069:{c:"B",f:"FR"},120071:{c:"D",f:"FR"},120072:{c:"E",f:"FR"},120073:{c:"F",f:"FR"},120074:{c:"G",f:"FR"},120077:{c:"J",f:"FR"},120078:{c:"K",f:"FR"},120079:{c:"L",f:"FR"},120080:{c:"M",f:"FR"},120081:{c:"N",f:"FR"},120082:{c:"O",f:"FR"},120083:{c:"P",f:"FR"},120084:{c:"Q",f:"FR"},120086:{c:"S",f:"FR"},120087:{c:"T",f:"FR"},120088:{c:"U",f:"FR"},120089:{c:"V",f:"FR"},120090:{c:"W",f:"FR"},120091:{c:"X",f:"FR"},120092:{c:"Y",f:"FR"},120094:{c:"a",f:"FR"},120095:{c:"b",f:"FR"},120096:{c:"c",f:"FR"},120097:{c:"d",f:"FR"},120098:{c:"e",f:"FR"},120099:{c:"f",f:"FR"},120100:{c:"g",f:"FR"},120101:{c:"h",f:"FR"},120102:{c:"i",f:"FR"},120103:{c:"j",f:"FR"},120104:{c:"k",f:"FR"},120105:{c:"l",f:"FR"},120106:{c:"m",f:"FR"},120107:{c:"n",f:"FR"},120108:{c:"o",f:"FR"},120109:{c:"p",f:"FR"},120110:{c:"q",f:"FR"},120111:{c:"r",f:"FR"},120112:{c:"s",f:"FR"},120113:{c:"t",f:"FR"},120114:{c:"u",f:"FR"},120115:{c:"v",f:"FR"},120116:{c:"w",f:"FR"},120117:{c:"x",f:"FR"},120118:{c:"y",f:"FR"},120119:{c:"z",f:"FR"},120120:{c:"A",f:"A"},120121:{c:"B",f:"A"},120123:{c:"D",f:"A"},120124:{c:"E",f:"A"},120125:{c:"F",f:"A"},120126:{c:"G",f:"A"},120128:{c:"I",f:"A"},120129:{c:"J",f:"A"},120130:{c:"K",f:"A"},120131:{c:"L",f:"A"},120132:{c:"M",f:"A"},120134:{c:"O",f:"A"},120138:{c:"S",f:"A"},120139:{c:"T",f:"A"},120140:{c:"U",f:"A"},120141:{c:"V",f:"A"},120142:{c:"W",f:"A"},120143:{c:"X",f:"A"},120144:{c:"Y",f:"A"},120172:{c:"A",f:"FRB"},120173:{c:"B",f:"FRB"},120174:{c:"C",f:"FRB"},120175:{c:"D",f:"FRB"},120176:{c:"E",f:"FRB"},120177:{c:"F",f:"FRB"},120178:{c:"G",f:"FRB"},120179:{c:"H",f:"FRB"},120180:{c:"I",f:"FRB"},120181:{c:"J",f:"FRB"},120182:{c:"K",f:"FRB"},120183:{c:"L",f:"FRB"},120184:{c:"M",f:"FRB"},120185:{c:"N",f:"FRB"},120186:{c:"O",f:"FRB"},120187:{c:"P",f:"FRB"},120188:{c:"Q",f:"FRB"},120189:{c:"R",f:"FRB"},120190:{c:"S",f:"FRB"},120191:{c:"T",f:"FRB"},120192:{c:"U",f:"FRB"},120193:{c:"V",f:"FRB"},120194:{c:"W",f:"FRB"},120195:{c:"X",f:"FRB"},120196:{c:"Y",f:"FRB"},120197:{c:"Z",f:"FRB"},120198:{c:"a",f:"FRB"},120199:{c:"b",f:"FRB"},120200:{c:"c",f:"FRB"},120201:{c:"d",f:"FRB"},120202:{c:"e",f:"FRB"},120203:{c:"f",f:"FRB"},120204:{c:"g",f:"FRB"},120205:{c:"h",f:"FRB"},120206:{c:"i",f:"FRB"},120207:{c:"j",f:"FRB"},120208:{c:"k",f:"FRB"},120209:{c:"l",f:"FRB"},120210:{c:"m",f:"FRB"},120211:{c:"n",f:"FRB"},120212:{c:"o",f:"FRB"},120213:{c:"p",f:"FRB"},120214:{c:"q",f:"FRB"},120215:{c:"r",f:"FRB"},120216:{c:"s",f:"FRB"},120217:{c:"t",f:"FRB"},120218:{c:"u",f:"FRB"},120219:{c:"v",f:"FRB"},120220:{c:"w",f:"FRB"},120221:{c:"x",f:"FRB"},120222:{c:"y",f:"FRB"},120223:{c:"z",f:"FRB"},120224:{c:"A",f:"SS"},120225:{c:"B",f:"SS"},120226:{c:"C",f:"SS"},120227:{c:"D",f:"SS"},120228:{c:"E",f:"SS"},120229:{c:"F",f:"SS"},120230:{c:"G",f:"SS"},120231:{c:"H",f:"SS"},120232:{c:"I",f:"SS"},120233:{c:"J",f:"SS"},120234:{c:"K",f:"SS"},120235:{c:"L",f:"SS"},120236:{c:"M",f:"SS"},120237:{c:"N",f:"SS"},120238:{c:"O",f:"SS"},120239:{c:"P",f:"SS"},120240:{c:"Q",f:"SS"},120241:{c:"R",f:"SS"},120242:{c:"S",f:"SS"},120243:{c:"T",f:"SS"},120244:{c:"U",f:"SS"},120245:{c:"V",f:"SS"},120246:{c:"W",f:"SS"},120247:{c:"X",f:"SS"},120248:{c:"Y",f:"SS"},120249:{c:"Z",f:"SS"},120250:{c:"a",f:"SS"},120251:{c:"b",f:"SS"},120252:{c:"c",f:"SS"},120253:{c:"d",f:"SS"},120254:{c:"e",f:"SS"},120255:{c:"f",f:"SS"},120256:{c:"g",f:"SS"},120257:{c:"h",f:"SS"},120258:{c:"i",f:"SS"},120259:{c:"j",f:"SS"},120260:{c:"k",f:"SS"},120261:{c:"l",f:"SS"},120262:{c:"m",f:"SS"},120263:{c:"n",f:"SS"},120264:{c:"o",f:"SS"},120265:{c:"p",f:"SS"},120266:{c:"q",f:"SS"},120267:{c:"r",f:"SS"},120268:{c:"s",f:"SS"},120269:{c:"t",f:"SS"},120270:{c:"u",f:"SS"},120271:{c:"v",f:"SS"},120272:{c:"w",f:"SS"},120273:{c:"x",f:"SS"},120274:{c:"y",f:"SS"},120275:{c:"z",f:"SS"},120276:{c:"A",f:"SSB"},120277:{c:"B",f:"SSB"},120278:{c:"C",f:"SSB"},120279:{c:"D",f:"SSB"},120280:{c:"E",f:"SSB"},120281:{c:"F",f:"SSB"},120282:{c:"G",f:"SSB"},120283:{c:"H",f:"SSB"},120284:{c:"I",f:"SSB"},120285:{c:"J",f:"SSB"},120286:{c:"K",f:"SSB"},120287:{c:"L",f:"SSB"},120288:{c:"M",f:"SSB"},120289:{c:"N",f:"SSB"},120290:{c:"O",f:"SSB"},120291:{c:"P",f:"SSB"},120292:{c:"Q",f:"SSB"},120293:{c:"R",f:"SSB"},120294:{c:"S",f:"SSB"},120295:{c:"T",f:"SSB"},120296:{c:"U",f:"SSB"},120297:{c:"V",f:"SSB"},120298:{c:"W",f:"SSB"},120299:{c:"X",f:"SSB"},120300:{c:"Y",f:"SSB"},120301:{c:"Z",f:"SSB"},120302:{c:"a",f:"SSB"},120303:{c:"b",f:"SSB"},120304:{c:"c",f:"SSB"},120305:{c:"d",f:"SSB"},120306:{c:"e",f:"SSB"},120307:{c:"f",f:"SSB"},120308:{c:"g",f:"SSB"},120309:{c:"h",f:"SSB"},120310:{c:"i",f:"SSB"},120311:{c:"j",f:"SSB"},120312:{c:"k",f:"SSB"},120313:{c:"l",f:"SSB"},120314:{c:"m",f:"SSB"},120315:{c:"n",f:"SSB"},120316:{c:"o",f:"SSB"},120317:{c:"p",f:"SSB"},120318:{c:"q",f:"SSB"},120319:{c:"r",f:"SSB"},120320:{c:"s",f:"SSB"},120321:{c:"t",f:"SSB"},120322:{c:"u",f:"SSB"},120323:{c:"v",f:"SSB"},120324:{c:"w",f:"SSB"},120325:{c:"x",f:"SSB"},120326:{c:"y",f:"SSB"},120327:{c:"z",f:"SSB"},120328:{c:"A",f:"SSI"},120329:{c:"B",f:"SSI"},120330:{c:"C",f:"SSI"},120331:{c:"D",f:"SSI"},120332:{c:"E",f:"SSI"},120333:{c:"F",f:"SSI"},120334:{c:"G",f:"SSI"},120335:{c:"H",f:"SSI"},120336:{c:"I",f:"SSI"},120337:{c:"J",f:"SSI"},120338:{c:"K",f:"SSI"},120339:{c:"L",f:"SSI"},120340:{c:"M",f:"SSI"},120341:{c:"N",f:"SSI"},120342:{c:"O",f:"SSI"},120343:{c:"P",f:"SSI"},120344:{c:"Q",f:"SSI"},120345:{c:"R",f:"SSI"},120346:{c:"S",f:"SSI"},120347:{c:"T",f:"SSI"},120348:{c:"U",f:"SSI"},120349:{c:"V",f:"SSI"},120350:{c:"W",f:"SSI"},120351:{c:"X",f:"SSI"},120352:{c:"Y",f:"SSI"},120353:{c:"Z",f:"SSI"},120354:{c:"a",f:"SSI"},120355:{c:"b",f:"SSI"},120356:{c:"c",f:"SSI"},120357:{c:"d",f:"SSI"},120358:{c:"e",f:"SSI"},120359:{c:"f",f:"SSI"},120360:{c:"g",f:"SSI"},120361:{c:"h",f:"SSI"},120362:{c:"i",f:"SSI"},120363:{c:"j",f:"SSI"},120364:{c:"k",f:"SSI"},120365:{c:"l",f:"SSI"},120366:{c:"m",f:"SSI"},120367:{c:"n",f:"SSI"},120368:{c:"o",f:"SSI"},120369:{c:"p",f:"SSI"},120370:{c:"q",f:"SSI"},120371:{c:"r",f:"SSI"},120372:{c:"s",f:"SSI"},120373:{c:"t",f:"SSI"},120374:{c:"u",f:"SSI"},120375:{c:"v",f:"SSI"},120376:{c:"w",f:"SSI"},120377:{c:"x",f:"SSI"},120378:{c:"y",f:"SSI"},120379:{c:"z",f:"SSI"},120432:{c:"A",f:"T"},120433:{c:"B",f:"T"},120434:{c:"C",f:"T"},120435:{c:"D",f:"T"},120436:{c:"E",f:"T"},120437:{c:"F",f:"T"},120438:{c:"G",f:"T"},120439:{c:"H",f:"T"},120440:{c:"I",f:"T"},120441:{c:"J",f:"T"},120442:{c:"K",f:"T"},120443:{c:"L",f:"T"},120444:{c:"M",f:"T"},120445:{c:"N",f:"T"},120446:{c:"O",f:"T"},120447:{c:"P",f:"T"},120448:{c:"Q",f:"T"},120449:{c:"R",f:"T"},120450:{c:"S",f:"T"},120451:{c:"T",f:"T"},120452:{c:"U",f:"T"},120453:{c:"V",f:"T"},120454:{c:"W",f:"T"},120455:{c:"X",f:"T"},120456:{c:"Y",f:"T"},120457:{c:"Z",f:"T"},120458:{c:"a",f:"T"},120459:{c:"b",f:"T"},120460:{c:"c",f:"T"},120461:{c:"d",f:"T"},120462:{c:"e",f:"T"},120463:{c:"f",f:"T"},120464:{c:"g",f:"T"},120465:{c:"h",f:"T"},120466:{c:"i",f:"T"},120467:{c:"j",f:"T"},120468:{c:"k",f:"T"},120469:{c:"l",f:"T"},120470:{c:"m",f:"T"},120471:{c:"n",f:"T"},120472:{c:"o",f:"T"},120473:{c:"p",f:"T"},120474:{c:"q",f:"T"},120475:{c:"r",f:"T"},120476:{c:"s",f:"T"},120477:{c:"t",f:"T"},120478:{c:"u",f:"T"},120479:{c:"v",f:"T"},120480:{c:"w",f:"T"},120481:{c:"x",f:"T"},120482:{c:"y",f:"T"},120483:{c:"z",f:"T"},120488:{c:"A",f:"B"},120489:{c:"B",f:"B"},120490:{c:"\\393",f:"B"},120491:{c:"\\394",f:"B"},120492:{c:"E",f:"B"},120493:{c:"Z",f:"B"},120494:{c:"H",f:"B"},120495:{c:"\\398",f:"B"},120496:{c:"I",f:"B"},120497:{c:"K",f:"B"},120498:{c:"\\39B",f:"B"},120499:{c:"M",f:"B"},120500:{c:"N",f:"B"},120501:{c:"\\39E",f:"B"},120502:{c:"O",f:"B"},120503:{c:"\\3A0",f:"B"},120504:{c:"P",f:"B"},120506:{c:"\\3A3",f:"B"},120507:{c:"T",f:"B"},120508:{c:"\\3A5",f:"B"},120509:{c:"\\3A6",f:"B"},120510:{c:"X",f:"B"},120511:{c:"\\3A8",f:"B"},120512:{c:"\\3A9",f:"B"},120513:{c:"\\2207",f:"B"},120546:{c:"A",f:"I"},120547:{c:"B",f:"I"},120548:{c:"\\393",f:"I"},120549:{c:"\\394",f:"I"},120550:{c:"E",f:"I"},120551:{c:"Z",f:"I"},120552:{c:"H",f:"I"},120553:{c:"\\398",f:"I"},120554:{c:"I",f:"I"},120555:{c:"K",f:"I"},120556:{c:"\\39B",f:"I"},120557:{c:"M",f:"I"},120558:{c:"N",f:"I"},120559:{c:"\\39E",f:"I"},120560:{c:"O",f:"I"},120561:{c:"\\3A0",f:"I"},120562:{c:"P",f:"I"},120564:{c:"\\3A3",f:"I"},120565:{c:"T",f:"I"},120566:{c:"\\3A5",f:"I"},120567:{c:"\\3A6",f:"I"},120568:{c:"X",f:"I"},120569:{c:"\\3A8",f:"I"},120570:{c:"\\3A9",f:"I"},120572:{c:"\\3B1",f:"I"},120573:{c:"\\3B2",f:"I"},120574:{c:"\\3B3",f:"I"},120575:{c:"\\3B4",f:"I"},120576:{c:"\\3B5",f:"I"},120577:{c:"\\3B6",f:"I"},120578:{c:"\\3B7",f:"I"},120579:{c:"\\3B8",f:"I"},120580:{c:"\\3B9",f:"I"},120581:{c:"\\3BA",f:"I"},120582:{c:"\\3BB",f:"I"},120583:{c:"\\3BC",f:"I"},120584:{c:"\\3BD",f:"I"},120585:{c:"\\3BE",f:"I"},120586:{c:"\\3BF",f:"I"},120587:{c:"\\3C0",f:"I"},120588:{c:"\\3C1",f:"I"},120589:{c:"\\3C2",f:"I"},120590:{c:"\\3C3",f:"I"},120591:{c:"\\3C4",f:"I"},120592:{c:"\\3C5",f:"I"},120593:{c:"\\3C6",f:"I"},120594:{c:"\\3C7",f:"I"},120595:{c:"\\3C8",f:"I"},120596:{c:"\\3C9",f:"I"},120597:{c:"\\2202"},120598:{c:"\\3F5",f:"I"},120599:{c:"\\3D1",f:"I"},120600:{c:"\\E009",f:"A"},120601:{c:"\\3D5",f:"I"},120602:{c:"\\3F1",f:"I"},120603:{c:"\\3D6",f:"I"},120604:{c:"A",f:"BI"},120605:{c:"B",f:"BI"},120606:{c:"\\393",f:"BI"},120607:{c:"\\394",f:"BI"},120608:{c:"E",f:"BI"},120609:{c:"Z",f:"BI"},120610:{c:"H",f:"BI"},120611:{c:"\\398",f:"BI"},120612:{c:"I",f:"BI"},120613:{c:"K",f:"BI"},120614:{c:"\\39B",f:"BI"},120615:{c:"M",f:"BI"},120616:{c:"N",f:"BI"},120617:{c:"\\39E",f:"BI"},120618:{c:"O",f:"BI"},120619:{c:"\\3A0",f:"BI"},120620:{c:"P",f:"BI"},120622:{c:"\\3A3",f:"BI"},120623:{c:"T",f:"BI"},120624:{c:"\\3A5",f:"BI"},120625:{c:"\\3A6",f:"BI"},120626:{c:"X",f:"BI"},120627:{c:"\\3A8",f:"BI"},120628:{c:"\\3A9",f:"BI"},120630:{c:"\\3B1",f:"BI"},120631:{c:"\\3B2",f:"BI"},120632:{c:"\\3B3",f:"BI"},120633:{c:"\\3B4",f:"BI"},120634:{c:"\\3B5",f:"BI"},120635:{c:"\\3B6",f:"BI"},120636:{c:"\\3B7",f:"BI"},120637:{c:"\\3B8",f:"BI"},120638:{c:"\\3B9",f:"BI"},120639:{c:"\\3BA",f:"BI"},120640:{c:"\\3BB",f:"BI"},120641:{c:"\\3BC",f:"BI"},120642:{c:"\\3BD",f:"BI"},120643:{c:"\\3BE",f:"BI"},120644:{c:"\\3BF",f:"BI"},120645:{c:"\\3C0",f:"BI"},120646:{c:"\\3C1",f:"BI"},120647:{c:"\\3C2",f:"BI"},120648:{c:"\\3C3",f:"BI"},120649:{c:"\\3C4",f:"BI"},120650:{c:"\\3C5",f:"BI"},120651:{c:"\\3C6",f:"BI"},120652:{c:"\\3C7",f:"BI"},120653:{c:"\\3C8",f:"BI"},120654:{c:"\\3C9",f:"BI"},120655:{c:"\\2202",f:"B"},120656:{c:"\\3F5",f:"BI"},120657:{c:"\\3D1",f:"BI"},120658:{c:"\\E009",f:"A"},120659:{c:"\\3D5",f:"BI"},120660:{c:"\\3F1",f:"BI"},120661:{c:"\\3D6",f:"BI"},120662:{c:"A",f:"SSB"},120663:{c:"B",f:"SSB"},120664:{c:"\\393",f:"SSB"},120665:{c:"\\394",f:"SSB"},120666:{c:"E",f:"SSB"},120667:{c:"Z",f:"SSB"},120668:{c:"H",f:"SSB"},120669:{c:"\\398",f:"SSB"},120670:{c:"I",f:"SSB"},120671:{c:"K",f:"SSB"},120672:{c:"\\39B",f:"SSB"},120673:{c:"M",f:"SSB"},120674:{c:"N",f:"SSB"},120675:{c:"\\39E",f:"SSB"},120676:{c:"O",f:"SSB"},120677:{c:"\\3A0",f:"SSB"},120678:{c:"P",f:"SSB"},120680:{c:"\\3A3",f:"SSB"},120681:{c:"T",f:"SSB"},120682:{c:"\\3A5",f:"SSB"},120683:{c:"\\3A6",f:"SSB"},120684:{c:"X",f:"SSB"},120685:{c:"\\3A8",f:"SSB"},120686:{c:"\\3A9",f:"SSB"},120782:{c:"0",f:"B"},120783:{c:"1",f:"B"},120784:{c:"2",f:"B"},120785:{c:"3",f:"B"},120786:{c:"4",f:"B"},120787:{c:"5",f:"B"},120788:{c:"6",f:"B"},120789:{c:"7",f:"B"},120790:{c:"8",f:"B"},120791:{c:"9",f:"B"},120802:{c:"0",f:"SS"},120803:{c:"1",f:"SS"},120804:{c:"2",f:"SS"},120805:{c:"3",f:"SS"},120806:{c:"4",f:"SS"},120807:{c:"5",f:"SS"},120808:{c:"6",f:"SS"},120809:{c:"7",f:"SS"},120810:{c:"8",f:"SS"},120811:{c:"9",f:"SS"},120812:{c:"0",f:"SSB"},120813:{c:"1",f:"SSB"},120814:{c:"2",f:"SSB"},120815:{c:"3",f:"SSB"},120816:{c:"4",f:"SSB"},120817:{c:"5",f:"SSB"},120818:{c:"6",f:"SSB"},120819:{c:"7",f:"SSB"},120820:{c:"8",f:"SSB"},120821:{c:"9",f:"SSB"},120822:{c:"0",f:"T"},120823:{c:"1",f:"T"},120824:{c:"2",f:"T"},120825:{c:"3",f:"T"},120826:{c:"4",f:"T"},120827:{c:"5",f:"T"},120828:{c:"6",f:"T"},120829:{c:"7",f:"T"},120830:{c:"8",f:"T"},120831:{c:"9",f:"T"}})},7517:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifBoldItalic=void 0;var n=r(8042),r=r(4886);e.sansSerifBoldItalic=(0,n.AddCSS)(r.sansSerifBoldItalic,{305:{f:"SSB"},567:{f:"SSB"}})},4182:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifBold=void 0;var n=r(8042),r=r(4471);e.sansSerifBold=(0,n.AddCSS)(r.sansSerifBold,{8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},2679:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifItalic=void 0;var n=r(8042),r=r(5181);e.sansSerifItalic=(0,n.AddCSS)(r.sansSerifItalic,{913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},5469:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerif=void 0;var n=r(8042),r=r(3526);e.sansSerif=(0,n.AddCSS)(r.sansSerif,{913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},7563:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.scriptBold=void 0;var n=r(5649);Object.defineProperty(e,"scriptBold",{enumerable:!0,get:function(){return n.scriptBold}})},9409:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.script=void 0;var n=r(7153);Object.defineProperty(e,"script",{enumerable:!0,get:function(){return n.script}})},775:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.smallop=void 0;var n=r(8042),r=r(5745);e.smallop=(0,n.AddCSS)(r.smallop,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},10072:{c:"\\2223"},10764:{c:"\\222C\\222C"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},9551:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texCalligraphicBold=void 0;var n=r(8042),r=r(1411);e.texCalligraphicBold=(0,n.AddCSS)(r.texCalligraphicBold,{305:{f:"B"},567:{f:"B"}})},7907:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texCalligraphic=void 0;var n=r(6384);Object.defineProperty(e,"texCalligraphic",{enumerable:!0,get:function(){return n.texCalligraphic}})},9659:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texMathit=void 0;var n=r(6041);Object.defineProperty(e,"texMathit",{enumerable:!0,get:function(){return n.texMathit}})},98:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyleBold=void 0;var n=r(8199);Object.defineProperty(e,"texOldstyleBold",{enumerable:!0,get:function(){return n.texOldstyleBold}})},6275:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyle=void 0;var n=r(9848);Object.defineProperty(e,"texOldstyle",{enumerable:!0,get:function(){return n.texOldstyle}})},6530:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texSize3=void 0;var n=r(8042),r=r(7906);e.texSize3=(0,n.AddCSS)(r.texSize3,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},4409:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texSize4=void 0;var n=r(8042),r=r(2644);e.texSize4=(0,n.AddCSS)(r.texSize4,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},12296:{c:"\\27E8"},12297:{c:"\\27E9"},57685:{c:"\\E153\\E152"},57686:{c:"\\E151\\E150"}})},5292:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texVariant=void 0;var n=r(8042),r=r(4926);e.texVariant=(0,n.AddCSS)(r.texVariant,{1008:{c:"\\E009"},8463:{f:""},8740:{c:"\\E006"},8742:{c:"\\E007"},8808:{c:"\\E00C"},8809:{c:"\\E00D"},8816:{c:"\\E011"},8817:{c:"\\E00E"},8840:{c:"\\E016"},8841:{c:"\\E018"},8842:{c:"\\E01A"},8843:{c:"\\E01B"},10887:{c:"\\E010"},10888:{c:"\\E00F"},10955:{c:"\\E017"},10956:{c:"\\E019"}})},5884:function(t,e,r){var h=this&&this.__assign||function(){return(h=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},f=(Object.defineProperty(e,"__esModule",{value:!0}),e.FontData=e.NOSTRETCH=e.H=e.V=void 0,r(7233)),r=(e.V=1,e.H=2,e.NOSTRETCH={dir:0},n.charOptions=function(t,e){t=t[e];return 3===t.length&&(t[3]={}),t[3]},Object.defineProperty(n.prototype,"styles",{get:function(){return this._styles},set:function(t){this._styles=t},enumerable:!1,configurable:!0}),n.prototype.createVariant=function(t,e,r){void 0===r&&(r=null);e={linked:[],chars:(e=void 0===e?null:e)?Object.create(this.variant[e].chars):{}};r&&this.variant[r]&&(Object.assign(e.chars,this.variant[r].chars),this.variant[r].linked.push(e.chars),e.chars=Object.create(e.chars)),this.remapSmpChars(e.chars,t),this.variant[t]=e},n.prototype.remapSmpChars=function(t,e){var r,n,o,i,a=this.constructor;if(a.VariantSmp[e]){var s=a.SmpRemap,l=[null,null,a.SmpRemapGreekU,a.SmpRemapGreekL];try{for(var c=S(a.SmpRanges),u=c.next();!u.done;u=c.next()){var p=_(u.value,3),h=p[0],d=p[1],f=p[2],m=a.VariantSmp[e][h];if(m){for(var y,g=d;g<=f;g++)930!==g&&(y=m+g-d,t[g]=this.smpChar(s[y]||y));if(l[h])try{o=void 0;for(var b=S(Object.keys(l[h]).map(function(t){return parseInt(t)})),v=b.next();!v.done;v=b.next())t[g=v.value]=this.smpChar(m+l[h][g])}catch(t){o={error:t}}finally{try{v&&!v.done&&(i=b.return)&&i.call(b)}finally{if(o)throw o.error}}}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}"bold"===e&&(t[988]=this.smpChar(120778),t[989]=this.smpChar(120779))},n.prototype.smpChar=function(t){return[,,,{smp:t}]},n.prototype.createVariants=function(t){var e,r;try{for(var n=S(t),o=n.next();!o.done;o=n.next()){var i=o.value;this.createVariant(i[0],i[1],i[2])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},n.prototype.defineChars=function(t,e){var r,n,o=this.variant[t];Object.assign(o.chars,e);try{for(var i=S(o.linked),a=i.next();!a.done;a=i.next()){var s=a.value;Object.assign(s,e)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},n.prototype.defineDelimiters=function(t){Object.assign(this.delimiters,t)},n.prototype.defineRemap=function(t,e){this.remapChars.hasOwnProperty(t)||(this.remapChars[t]={}),Object.assign(this.remapChars[t],e)},n.prototype.getDelimiter=function(t){return this.delimiters[t]},n.prototype.getSizeVariant=function(t,e){return this.delimiters[t].variants&&(e=this.delimiters[t].variants[e]),this.sizeVariants[e]},n.prototype.getStretchVariant=function(t,e){return this.stretchVariants[this.delimiters[t].stretchv?this.delimiters[t].stretchv[e]:0]},n.prototype.getChar=function(t,e){return this.variant[t].chars[e]},n.prototype.getVariant=function(t){return this.variant[t]},n.prototype.getCssFont=function(t){return this.cssFontMap[t]||["serif",!1,!1]},n.prototype.getFamily=function(t){return this.cssFamilyPrefix?this.cssFamilyPrefix+", "+t:t},n.prototype.getRemappedChar=function(t,e){return(this.remapChars[t]||{})[e]},n.OPTIONS={unknownFamily:"serif"},n.JAX="common",n.NAME="",n.defaultVariants=[["normal"],["bold","normal"],["italic","normal"],["bold-italic","italic","bold"],["double-struck","bold"],["fraktur","normal"],["bold-fraktur","bold","fraktur"],["script","italic"],["bold-script","bold-italic","script"],["sans-serif","normal"],["bold-sans-serif","bold","sans-serif"],["sans-serif-italic","italic","sans-serif"],["sans-serif-bold-italic","bold-italic","bold-sans-serif"],["monospace","normal"]],n.defaultCssFonts={normal:["unknown",!1,!1],bold:["unknown",!1,!0],italic:["unknown",!0,!1],"bold-italic":["unknown",!0,!0],"double-struck":["unknown",!1,!0],fraktur:["unknown",!1,!1],"bold-fraktur":["unknown",!1,!0],script:["cursive",!1,!1],"bold-script":["cursive",!1,!0],"sans-serif":["sans-serif",!1,!1],"bold-sans-serif":["sans-serif",!1,!0],"sans-serif-italic":["sans-serif",!0,!1],"sans-serif-bold-italic":["sans-serif",!0,!0],monospace:["monospace",!1,!1]},n.defaultCssFamilyPrefix="",n.VariantSmp={bold:[119808,119834,120488,120514,120782],italic:[119860,119886,120546,120572],"bold-italic":[119912,119938,120604,120630],script:[119964,119990],"bold-script":[120016,120042],fraktur:[120068,120094],"double-struck":[120120,120146,,,120792],"bold-fraktur":[120172,120198],"sans-serif":[120224,120250,,,120802],"bold-sans-serif":[120276,120302,120662,120688,120812],"sans-serif-italic":[120328,120354],"sans-serif-bold-italic":[120380,120406,120720,120746],monospace:[120432,120458,,,120822]},n.SmpRanges=[[0,65,90],[1,97,122],[2,913,937],[3,945,969],[4,48,57]],n.SmpRemap={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},n.SmpRemapGreekU={8711:25,1012:17},n.SmpRemapGreekL={977:27,981:29,982:31,1008:28,1009:30,1013:26,8706:25},n.defaultAccentMap={768:"ˋ",769:"ˊ",770:"ˆ",771:"˜",772:"ˉ",774:"˘",775:"˙",776:"¨",778:"˚",780:"ˇ",8594:"⃗",8242:"'",8243:"''",8244:"'''",8245:"`",8246:"``",8247:"```",8279:"''''",8400:"↼",8401:"⇀",8406:"←",8417:"↔",8432:"*",8411:"...",8412:"....",8428:"⇁",8429:"↽",8430:"←",8431:"→"},n.defaultMoMap={45:"−"},n.defaultMnMap={45:"−"},n.defaultParams={x_height:.442,quad:1,num1:.676,num2:.394,num3:.444,denom1:.686,denom2:.345,sup1:.413,sup2:.363,sup3:.289,sub1:.15,sub2:.247,sup_drop:.386,sub_drop:.05,delim1:2.39,delim2:1,axis_height:.25,rule_thickness:.06,big_op_spacing1:.111,big_op_spacing2:.167,big_op_spacing3:.2,big_op_spacing4:.6,big_op_spacing5:.1,surd_height:.075,scriptspace:.05,nulldelimiterspace:.12,delimiterfactor:901,delimitershortfall:.3,min_rule_thickness:1.25,separation_factor:1.75,extra_ic:.033},n.defaultDelimiters={},n.defaultChars={},n.defaultSizeVariants=[],n.defaultStretchVariants=[],n);function n(t){void 0===t&&(t=null),this.variant={},this.delimiters={},this.cssFontMap={},this.remapChars={},this.skewIcFactor=.75;var e,r,n,o,i=this.constructor;this.options=(0,f.userOptions)((0,f.defaultOptions)({},i.OPTIONS),t),this.params=h({},i.defaultParams),this.sizeVariants=d([],_(i.defaultSizeVariants),!1),this.stretchVariants=d([],_(i.defaultStretchVariants),!1),this.cssFontMap=h({},i.defaultCssFonts);try{for(var a=S(Object.keys(this.cssFontMap)),s=a.next();!s.done;s=a.next()){var l=s.value;"unknown"===this.cssFontMap[l][0]&&(this.cssFontMap[l][0]=this.options.unknownFamily)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}this.cssFamilyPrefix=i.defaultCssFamilyPrefix,this.createVariants(i.defaultVariants),this.defineDelimiters(i.defaultDelimiters);try{for(var c=S(Object.keys(i.defaultChars)),u=c.next();!u.done;u=c.next()){var p=u.value;this.defineChars(p,i.defaultChars[p])}}catch(t){n={error:t}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}this.defineRemap("accent",i.defaultAccentMap),this.defineRemap("mo",i.defaultMoMap),this.defineRemap("mn",i.defaultMnMap)}e.FontData=r},5552:function(t,c){var u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0Math.PI/2-r?t.thickness*a*Math.sin(o+r-Math.PI/2):0);return[i,e,i,e]},remove:e[3]}]}},c.CommonArrow=function(l){return function(t){var e=u(c.arrowDef[t],4),i=e[0],a=e[1],s=e[2],e=e[3];return[t+"arrow",{renderer:function(t,e){var r=t.getBBox(),n=r.w,o=r.h,r=r.d,o=u(s?[o+r,"X"]:[n,"Y"],2),r=o[0],n=o[1],o=t.getOffset(n),r=t.arrow(r,i,a,n,o);l(t,r)},bbox:c.arrowBBox[t],remove:e}]}}},3055:function(t,e,r){var n,i,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[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 r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonOutputJax=void 0,r(2975)),w=r(4474),c=r(7233),u=r(6010),p=r(8054),h=r(4139),r=(i=l.AbstractOutputJax,o(d,i),d.prototype.typeset=function(t,e){this.setDocument(e);var r=this.createNode();return this.toDOM(t,r,e),r},d.prototype.createNode=function(){var t=this.constructor.NAME;return this.html("mjx-container",{class:"MathJax",jax:t})},d.prototype.setScale=function(t){var e=this.math.metrics.scale*this.options.scale;1!=e&&this.adaptor.setStyle(t,"fontSize",(0,u.percent)(e))},d.prototype.toDOM=function(t,e,r){this.setDocument(r=void 0===r?null:r),this.math=t,this.pxPerEm=t.metrics.ex/this.font.params.x_height,t.root.setTeXclass(null),this.setScale(e),this.nodeMap=new Map,this.container=e,this.processMath(t.root,e),this.nodeMap=null,this.executeFilters(this.postFilters,t,r,e)},d.prototype.getBBox=function(t,e){this.setDocument(e),(this.math=t).root.setTeXclass(null),this.nodeMap=new Map;e=this.factory.wrap(t.root).getOuterBBox();return this.nodeMap=null,e},d.prototype.getMetrics=function(t){this.setDocument(t);var e,r,n=this.adaptor,o=this.getMetricMaps(t);try{for(var i=N(t.math),a=i.next();!a.done;a=i.next()){var s,l,c,u,p,h,d,f=a.value,m=n.parent(f.start.node);f.state()=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},y=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0t.h&&(t.h=s),l>t.d&&(t.d=l),t.ic=f.ic||0,t.sk=f.sk||0,t.dx=f.dx||0}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}1=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMencloseMixin=void 0,s(r(5552))),h=r(505);e.CommonMencloseMixin=function(t){return o(e,n=t),e.prototype.getParameters=function(){var t,e=this.node.attributes,r=e.get("data-padding"),r=(void 0!==r&&(this.padding=this.length2em(r,u.PADDING)),e.get("data-thickness")),r=(void 0!==r&&(this.thickness=this.length2em(r,u.THICKNESS)),e.get("data-arrowhead"));void 0!==r&&(r=(e=l((0,h.split)(r),3))[0],t=e[1],e=e[2],this.arrowhead={x:r?parseFloat(r):u.ARROWX,y:t?parseFloat(t):u.ARROWY,dx:e?parseFloat(e):u.ARROWDX})},e.prototype.getNotations=function(){var t,e,r=this.constructor.notations;try{for(var n=p((0,h.split)(this.node.attributes.get("notation"))),o=n.next();!o.done;o=n.next()){var i=o.value,a=r.get(i);a&&((this.notations[i]=a).renderChild&&(this.renderChild=a.renderer))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},e.prototype.removeRedundantNotations=function(){var t,e,r,n;try{for(var o=p(Object.keys(this.notations)),i=o.next();!i.done;i=o.next()){var a=i.value;if(this.notations[a]){var s=this.notations[a].remove||"";try{r=void 0;for(var l=p(s.split(/ /)),c=l.next();!c.done;c=l.next()){var u=c.value;delete this.notations[u]}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},e.prototype.initializeNotations=function(){var t,e;try{for(var r=p(Object.keys(this.notations)),n=r.next();!n.done;n=r.next()){var o=n.value,i=this.notations[o].init;i&&i(this)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=l(this.TRBL,4),n=r[0],o=r[1],i=r[2],r=r[3],a=this.childNodes[0].getBBox();t.combine(a,r,0),t.h+=n,t.d+=i,t.w+=o,this.setChildPWidths(e)},e.prototype.getBBoxExtenders=function(){var t,e,r=[0,0,0,0];try{for(var n=p(Object.keys(this.notations)),o=n.next();!o.done;o=n.next()){var i=o.value;this.maximizeEntries(r,this.notations[i].bbox(this))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},e.prototype.getPadding=function(){var t,e,r=this,n=[0,0,0,0];try{for(var o=p(Object.keys(this.notations)),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.notations[a].border;s&&this.maximizeEntries(n,s(this))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return[0,1,2,3].map(function(t){return r.TRBL[t]-n[t]})},e.prototype.maximizeEntries=function(t,e){for(var r=0;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMfencedMixin=void 0,e.CommonMfencedMixin=function(t){return r(e,n=t),e.prototype.createMrow=function(){var t=this.node.factory.create("inferredMrow");t.inheritAttributesFrom(this.node),this.mrow=this.wrap(t),this.mrow.parent=this},e.prototype.addMrowChildren=function(){var t,e,r=this.node,n=this.mrow,o=(this.addMo(r.open),this.childNodes.length&&n.childNodes.push(this.childNodes[0]),0);try{for(var i=l(this.childNodes.slice(1)),a=i.next();!a.done;a=i.next()){var s=a.value;this.addMo(r.separators[o++]),n.childNodes.push(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.addMo(r.close),n.stretchChildren()},e.prototype.addMo=function(t){t&&(t=this.wrap(t),this.mrow.childNodes.push(t),t.parent=this.mrow)},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),t.updateFrom(this.mrow.getOuterBBox()),this.setChildPWidths(e)},e;function e(){for(var t=[],e=0;e=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(s,"__esModule",{value:!0}),s.CommonMmultiscriptsMixin=s.ScriptNames=s.NextScript=void 0,e(6469));s.NextScript={base:"subList",subList:"supList",supList:"subList",psubList:"psupList",psupList:"psubList"},s.ScriptNames=["sup","sup","psup","psub"],s.CommonMmultiscriptsMixin=function(t){return r(e,i=t),e.prototype.combinePrePost=function(t,e){t=new a.BBox(t);return t.combine(e,0,0),t},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r,n=this.font.params.scriptspace,o=this.scriptData,i=this.combinePrePost(o.sub,o.psub),a=this.combinePrePost(o.sup,o.psup),i=p(this.getUVQ(i,a),2),a=i[0],i=i[1];t.empty(),o.numPrescripts&&(t.combine(o.psup,n,a),t.combine(o.psub,n,i)),t.append(o.base),o.numScripts&&(r=t.w,t.combine(o.sup,r,a),t.combine(o.sub,r,i),t.w+=n),t.clean(),this.setChildPWidths(e)},e.prototype.getScriptData=function(){var t=this.scriptData={base:null,sub:a.BBox.empty(),sup:a.BBox.empty(),psub:a.BBox.empty(),psup:a.BBox.empty(),numPrescripts:0,numScripts:0},e=this.getScriptBBoxLists();this.combineBBoxLists(t.sub,t.sup,e.subList,e.supList),this.combineBBoxLists(t.psub,t.psup,e.psubList,e.psupList),t.base=e.base[0],t.numPrescripts=e.psubList.length,t.numScripts=e.subList.length},e.prototype.getScriptBBoxLists=function(){var e,t,r={base:[],subList:[],supList:[],psubList:[],psupList:[]},n="base";try{for(var o=l(this.childNodes),i=o.next();!i.done;i=o.next())var a=i.value,n=a.node.isKind("mprescripts")?"psubList":(r[n].push(a.getOuterBBox()),s.NextScript[n])}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return this.firstPrescript=r.subList.length+r.supList.length+2,this.padLists(r.subList,r.supList),this.padLists(r.psubList,r.psupList),r},e.prototype.padLists=function(t,e){t.length>e.length&&e.push(a.BBox.empty())},e.prototype.combineBBoxLists=function(t,e,r,n){for(var o=0;ot.h&&(t.h=s),i>t.d&&(t.d=i),u>e.h&&(e.h=u),l>e.d&&(e.d=l)}},e.prototype.getScaledWHD=function(t){var e=t.w,r=t.h,n=t.d,t=t.rscale;return[e*t,r*t,n*t]},e.prototype.getUVQ=function(t,e){var r,n,o;return this.UVQ||(r=(o=p([0,0,0],3))[0],n=o[1],o=o[2],0===t.h&&0===t.d?r=this.getU():0===e.h&&0===e.d?r=-this.getV():(r=(t=p(i.prototype.getUVQ.call(this,t,e),3))[0],n=t[1],o=t[2]),this.UVQ=[r,n,o]),this.UVQ},e;function e(){for(var t=[],e=0;e=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMoMixin=e.DirectionVH=void 0,r(6469)),l=r(505),c=r(5884);e.DirectionVH=((r={})[1]="v",r[2]="h",r),e.CommonMoMixin=function(t){return o(e,n=t),e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),this.protoBBox(t),this.node.attributes.get("symmetric")&&2!==this.stretch.dir&&(e=this.getCenterOffset(t),t.h+=e,t.d-=e),this.node.getProperty("mathaccent")&&(0===this.stretch.dir||0<=this.size)&&(t.w=0)},e.prototype.protoBBox=function(t){var e=0!==this.stretch.dir;e&&null===this.size&&this.getStretchedVariant([0]),e&&this.size<0||(n.prototype.computeBBox.call(this,t),this.copySkewIC(t))},e.prototype.getAccentOffset=function(){var t=a.BBox.empty();return this.protoBBox(t),-t.w/2},e.prototype.getCenterOffset=function(t){return(t=void 0===t?null:t)||(t=a.BBox.empty(),n.prototype.computeBBox.call(this,t)),(t.h+t.d)/2+this.font.params.axis_height-t.h},e.prototype.getVariant=function(){this.node.attributes.get("largeop")?this.variant=this.node.attributes.get("displaystyle")?"-largeop":"-smallop":this.node.attributes.getExplicit("mathvariant")||!1!==this.node.getProperty("pseudoscript")?n.prototype.getVariant.call(this):this.variant="-tex-variant"},e.prototype.canStretch=function(t){if(0!==this.stretch.dir)return this.stretch.dir===t;if(!this.node.attributes.get("stretchy"))return!1;var e=this.getText();if(1!==Array.from(e).length)return!1;e=this.font.getDelimiter(e.codePointAt(0));return this.stretch=e&&e.dir===t?e:c.NOSTRETCH,0!==this.stretch.dir},e.prototype.getStretchedVariant=function(t,e){var r,n;if(void 0===e&&(e=!1),0!==this.stretch.dir){var o=this.getWH(t),i=this.getSize("minsize",0),a=this.getSize("maxsize",1/0),s=this.node.getProperty("mathaccent"),o=Math.max(i,Math.min(a,o)),a=this.font.params.delimiterfactor/1e3,l=this.font.params.delimitershortfall,c=i||e?o:s?Math.min(o/a,o+l):Math.max(o*a,o-l),u=this.stretch,p=u.c||this.getText().codePointAt(0),h=0;if(u.sizes)try{for(var d=y(u.sizes),f=d.next();!f.done;f=d.next()){if(f.value>=c)return s&&h&&h--,this.variant=this.font.getSizeVariant(p,h),this.size=h,void(u.schar&&u.schar[h]&&(this.stretch=m(m({},this.stretch),{c:u.schar[h]})));h++}}catch(t){r={error:t}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}u.stretch?(this.size=-1,this.invalidateBBox(),this.getStretchBBox(t,this.checkExtendedHeight(o,u),u)):(this.variant=this.font.getSizeVariant(p,h-1),this.size=h-1)}},e.prototype.getSize=function(t,e){var r=this.node.attributes;return e=r.isSet(t)?this.length2em(r.get(t),1,1):e},e.prototype.getWH=function(t){if(0===t.length)return 0;if(1===t.length)return t[0];var t=s(t,2),e=t[0],t=t[1],r=this.font.params.axis_height;return this.node.attributes.get("symmetric")?2*Math.max(e-r,t+r):e+t},e.prototype.getStretchBBox=function(t,e,r){r.hasOwnProperty("min")&&r.min>e&&(e=r.min);var n=s(r.HDW,3),o=n[0],i=n[1],n=n[2];1===this.stretch.dir?(o=(t=s(this.getBaseline(t,e,r),2))[0],i=t[1]):n=e,this.bbox.h=o,this.bbox.d=i,this.bbox.w=n},e.prototype.getBaseline=function(t,e,r){var n=2===t.length&&t[0]+t[1]===e,o=this.node.attributes.get("symmetric"),t=s(n?t:[e,0],2),e=t[0],t=t[1],i=s([e+t,0],2),a=i[0],i=i[1];return i=o?(o=this.font.params.axis_height,(a=n?2*Math.max(e-o,t+o):a)/2-o):n?t:(o=(e=s(r.HDW||[.75,.25],2))[0],(n=e[1])*(a/(o+n))),[a-i,i]},e.prototype.checkExtendedHeight=function(t,e){var r;return e.fullExt&&(r=(e=s(e.fullExt,2))[0],t=(e=e[1])+Math.ceil(Math.max(0,t-e)/r)*r),t},e.prototype.remapChars=function(t){var e=this.node.getProperty("primes");return e?(0,l.unicodeChars)(e):(1===t.length&&(e=this.node.coreParent().parent,e=this.isAccent&&!e.isKind("mrow")?"accent":"mo",(e=this.font.getRemappedChar(e,t[0]))&&(t=this.unicodeChars(e,this.variant))),t)},e;function e(){for(var t=[],e=0;e=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonInferredMrowMixin=e.CommonMrowMixin=void 0,r(6469));e.CommonMrowMixin=function(t){return o(e,s=t),Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.stretchChildren=function(){var t,e,r,n,o,i,a=[];try{for(var s=x(this.childNodes),l=s.next();!l.done;l=s.next())(S=l.value).canStretch(1)&&a.push(S)}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}var c=a.length,u=this.childNodes.length;if(c&&1p&&(p=g),(b*=v)>h&&(h=b))}}catch(t){r={error:t}}finally{try{m&&!m.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}try{for(var S,O=x(a),M=O.next();!M.done;M=O.next())(S=M.value).coreMO().getStretchedVariant([p,h])}catch(t){o={error:t}}finally{try{M&&!M.done&&(i=O.return)&&i.call(O)}finally{if(o)throw o.error}}}},e;function e(){for(var e,t,r=[],n=0;nthis.surdH?(t.h+t.d-(this.surdH-2*e-r/2))/2:e+r/4]},e.prototype.getRootDimens=function(t,e){return[0,0,0,0]},e;function e(){for(var t=[],e=0;e=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMtableMixin=void 0,r(6469)),l=r(505),u=r(7875);e.CommonMtableMixin=function(t){return i(e,o=t),Object.defineProperty(e.prototype,"tableRows",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),e.prototype.findContainer=function(){for(var t=this,e=t.parent;e&&(e.node.notParent||e.node.isKind("mrow"));)e=(t=e).parent;this.container=e,this.containerI=t.node.childPosition()},e.prototype.getPercentageWidth=function(){var t;this.hasLabels?this.bbox.pwidth=s.BBox.fullWidth:(t=this.node.attributes.get("width"),(0,l.isPercent)(t)&&(this.bbox.pwidth=t))},e.prototype.stretchRows=function(){for(var t=this.node.attributes.get("equalrows"),e=t?this.getEqualRowHeight():0,r=t?this.getTableData():{H:[0],D:[0]},n=r.H,o=r.D,i=this.tableRows,a=0;ao[r]&&(o[r]=c),u>i[r]&&(i[r]=u),sa[e]&&(a[e]=l),s},e.prototype.extendHD=function(t,e,r,n){n=(n-(e[t]+r[t]))/2;n<1e-5||(e[t]+=n,r[t]+=n)},e.prototype.recordPWidthCell=function(t,e){t.childNodes[0]&&t.childNodes[0].getBBox().pwidth&&this.pwidthCells.push([t,e])},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var e=this.getTableData(),r=e.H,e=e.D,r=(n=this.node.attributes.get("equalrows")?(n=this.getEqualRowHeight(),(0,u.sum)([].concat(this.rLines,this.rSpace))+n*this.numRows):(0,u.sum)(r.concat(e,this.rLines,this.rSpace)),n+=2*(this.fLine+this.fSpace[1]),this.getComputedWidths()),e=(0,u.sum)(r.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]),r=this.node.attributes.get("width"),n=("auto"!==r&&(e=Math.max(this.length2em(r,0)+2*this.fLine,e)),p(this.getBBoxHD(n),2)),o=n[0],n=n[1],o=(t.h=o,t.d=n,t.w=e,p(this.getBBoxLR(),2)),n=o[0],e=o[1];t.L=n,t.R=e,(0,l.isPercent)(r)||this.setColumnPWidths()},e.prototype.setChildPWidths=function(t,e,r){var n=this.node.attributes.get("width");if(!(0,l.isPercent)(n))return!1;this.hasLabels||(this.bbox.pwidth="",this.container.bbox.pwidth="");var o=this.bbox,i=o.w,a=o.L,o=o.R,s=this.node.attributes.get("data-width-includes-label"),n=Math.max(i,this.length2em(n,Math.max(e,a+i+o)))-(s?a+o:0),e=this.node.attributes.get("equalcolumns")?Array(this.numCols).fill(this.percent(1/Math.max(1,this.numCols))):this.getColumnAttributes("columnwidth",0),s=(this.cWidths=this.getColumnWidthsFixed(e,n),this.getComputedWidths());return this.pWidth=(0,u.sum)(s.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]),this.isTop&&(this.bbox.w=this.pWidth),this.setColumnPWidths(),this.pWidth!==i&&this.parent.invalidateBBox(),this.pWidth!==i},e.prototype.setColumnPWidths=function(){var t,e,r=this.cWidths;try{for(var n=_(this.pwidthCells),o=n.next();!o.done;o=n.next()){var i=p(o.value,2),a=i[0],s=i[1];a.setChildPWidths(!1,r[s])&&(a.invalidateBBox(),a.getBBox())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},e.prototype.getBBoxHD=function(t){var e,r=p(this.getAlignmentRow(),2),n=r[0],r=r[1];if(null===r)return{top:[0,t],center:[e=t/2,e],bottom:[t,0],baseline:[e,e],axis:[e+(o=this.font.params.axis_height),e-o]}[n]||[e,e];var o=this.getVerticalPosition(r,n);return[o,t-o]},e.prototype.getBBoxLR=function(){var t,e,r,n;return this.hasLabels?(t=(n=this.node.attributes).get("side"),e=(r=p(this.getPadAlignShift(t),2))[0],r=r[1],(n=this.hasLabels&&!!n.get("data-width-includes-label"))&&this.frame&&this.fSpace[0]&&(e-=this.fSpace[0]),"center"!==r||n?"left"===t?[e,0]:[0,e]:[e,e]):[0,0]},e.prototype.getPadAlignShift=function(t){var e=this.getTableData().L+this.length2em(this.node.attributes.get("minlabelspacing")),r=p(null==this.styles?["",""]:[this.styles.get("padding-left"),this.styles.get("padding-right")],2),n=r[0],r=r[1],n=((n||r)&&(e=Math.max(e,this.length2em(n||"0"),this.length2em(r||"0"))),p(this.getAlignShift(),2)),r=n[0],n=n[1];return[e,r,n=r===t?"left"===t?Math.max(e,n)-e:Math.min(-e,n)+e:n]},e.prototype.getAlignShift=function(){return this.isTop?o.prototype.getAlignShift.call(this):[this.container.getChildAlign(this.containerI),0]},e.prototype.getWidth=function(){return this.pWidth||this.getBBox().w},e.prototype.getEqualRowHeight=function(){var t=this.getTableData(),e=t.H,r=t.D,t=Array.from(e.keys()).map(function(t){return e[t]+r[t]});return Math.max.apply(Math,t)},e.prototype.getComputedWidths=function(){var e=this,r=this.getTableData().W,t=Array.from(r.keys()).map(function(t){return("number"==typeof e.cWidths[t]?e.cWidths:r)[t]});return t=this.node.attributes.get("equalcolumns")?Array(t.length).fill((0,u.max)(t)):t},e.prototype.getColumnWidths=function(){var t=this.node.attributes.get("width");if(this.node.attributes.get("equalcolumns"))return this.getEqualColumns(t);var e=this.getColumnAttributes("columnwidth",0);return"auto"===t?this.getColumnWidthsAuto(e):(0,l.isPercent)(t)?this.getColumnWidthsPercent(e):this.getColumnWidthsFixed(e,this.length2em(t))},e.prototype.getEqualColumns=function(t){var e,r=Math.max(1,this.numCols);return t="auto"===t?(e=this.getTableData().W,(0,u.max)(e)):(0,l.isPercent)(t)?this.percent(1/r):(e=(0,u.sum)([].concat(this.cLines,this.cSpace))+2*this.fSpace[0],Math.max(0,this.length2em(t)-e)/r),Array(this.numCols).fill(t)},e.prototype.getColumnWidthsAuto=function(t){var e=this;return t.map(function(t){return"auto"===t||"fit"===t?null:(0,l.isPercent)(t)?t:e.length2em(t)})},e.prototype.getColumnWidthsPercent=function(r){var n=this,o=0<=r.indexOf("fit"),i=(o?this.getTableData():{W:null}).W;return Array.from(r.keys()).map(function(t){var e=r[t];return"fit"===e?null:"auto"===e?o?i[t]:null:(0,l.isPercent)(e)?e:n.length2em(e)})},e.prototype.getColumnWidthsFixed=function(r,t){var n=this,e=Array.from(r.keys()),o=e.filter(function(t){return"fit"===r[t]}),i=e.filter(function(t){return"auto"===r[t]}),i=o.length||i.length,a=(i?this.getTableData():{W:null}).W,s=t-(0,u.sum)([].concat(this.cLines,this.cSpace))-2*this.fSpace[0],l=s,c=(e.forEach(function(t){var e=r[t];l-="fit"===e||"auto"===e?a[t]:n.length2em(e,s)}),i&&0this.numRows?null:t-1]},e.prototype.getColumnAttributes=function(t,e){var r=this.numCols-(e=void 0===e?1:e),n=this.getAttributeArray(t);if(0===n.length)return null;for(;n.lengthr&&n.splice(r),n},e.prototype.getRowAttributes=function(t,e){var r=this.numRows-(e=void 0===e?1:e),n=this.getAttributeArray(t);if(0===n.length)return null;for(;n.lengthr&&n.splice(r),n},e.prototype.getAttributeArray=function(t){var e=this.node.attributes.get(t);return e?(0,l.split)(e):[this.node.attributes.getDefault(t)]},e.prototype.addEm=function(t,e){var r=this;return void 0===e&&(e=1),t?t.map(function(t){return r.em(t/e)}):null},e.prototype.convertLengths=function(t){var e=this;return t?t.map(function(t){return e.length2em(t)}):null},e;function e(){for(var t=[],e=0;e=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMlabeledtrMixin=e.CommonMtrMixin=void 0,e.CommonMtrMixin=function(t){return o(e,r=t),Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numCells",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labeled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableCells",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),e.prototype.getChild=function(t){return this.childNodes[t]},e.prototype.getChildBBoxes=function(){return this.childNodes.map(function(t){return t.getBBox()})},e.prototype.stretchChildren=function(t){void 0===t&&(t=null);var e,r,n,o,i=[],a=this.labeled?this.childNodes.slice(1):this.childNodes;try{for(var s=M(a),l=s.next();!l.done;l=s.next())(_=l.value.childNodes[0]).canStretch(1)&&i.push(_)}catch(t){u={error:t}}finally{try{l&&!l.done&&(c=s.return)&&c.call(s)}finally{if(u)throw u.error}}var c=i.length,u=this.childNodes.length;if(c&&1=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonScriptbaseMixin=void 0,r(9007));e.CommonScriptbaseMixin=function(t){var o;return i(e,o=t),Object.defineProperty(e.prototype,"baseChild",{get:function(){return this.childNodes[this.node.base]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[1]},enumerable:!1,configurable:!0}),e.prototype.getBaseCore=function(){for(var t=this.getSemanticBase()||this.childNodes[0];t&&(1===t.childNodes.length&&(t.node.isKind("mrow")||t.node.isKind("TeXAtom")&&t.node.texClass!==a.TEXCLASS.VCENTER||t.node.isKind("mstyle")||t.node.isKind("mpadded")||t.node.isKind("mphantom")||t.node.isKind("semantics"))||t.node.isKind("munderover")&&t.isMathAccent);)this.setBaseAccentsFor(t),t=t.childNodes[0];return t||(this.baseHasAccentOver=this.baseHasAccentUnder=!1),t||this.childNodes[0]},e.prototype.setBaseAccentsFor=function(t){t.node.isKind("munderover")&&(null===this.baseHasAccentOver&&(this.baseHasAccentOver=!!t.node.attributes.get("accent")),null===this.baseHasAccentUnder&&(this.baseHasAccentUnder=!!t.node.attributes.get("accentunder")))},e.prototype.getSemanticBase=function(){var t=this.node.attributes.getExplicit("data-semantic-fencepointer");return this.getBaseFence(this.baseChild,t)},e.prototype.getBaseFence=function(t,e){var r,n;if(!t||!t.node.attributes||!e)return null;if(t.node.attributes.getExplicit("data-semantic-id")===e)return t;try{for(var o=O(t.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.getBaseFence(a,e);if(s)return s}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null},e.prototype.getBaseScale=function(){for(var t=this.baseCore,e=1;t&&t!==this;)e*=t.getOuterBBox().rscale,t=t.parent;return e},e.prototype.getBaseIc=function(){return this.baseCore.getOuterBBox().ic*this.baseScale},e.prototype.getAdjustedIc=function(){var t=this.baseCore.getOuterBBox();return(t.ic?1.05*t.ic+.05:0)*this.baseScale},e.prototype.isCharBase=function(){var t=this.baseCore;return(t.node.isKind("mo")&&null===t.size||t.node.isKind("mi")||t.node.isKind("mn"))&&1===t.bbox.rscale&&1===Array.from(t.getText()).length},e.prototype.checkLineAccents=function(){this.node.isKind("munderover")&&(this.node.isKind("mover")?this.isLineAbove=this.isLineAccent(this.scriptChild):this.node.isKind("munder")?this.isLineBelow=this.isLineAccent(this.scriptChild):(this.isLineAbove=this.isLineAccent(this.overChild),this.isLineBelow=this.isLineAccent(this.underChild)))},e.prototype.isLineAccent=function(t){t=t.coreMO().node;return t.isToken&&"―"===t.getText()},e.prototype.getBaseWidth=function(){var t=this.baseChild.getOuterBBox();return t.w*t.rscale-(this.baseRemoveIc?this.baseIc:0)+this.font.params.extra_ic},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=this.getBaseWidth(),n=y(this.getOffset(),2),o=n[0],n=n[1];t.append(this.baseChild.getOuterBBox()),t.combine(this.scriptChild.getOuterBBox(),r+o,n),t.w+=this.font.params.scriptspace,t.clean(),this.setChildPWidths(e)},e.prototype.getOffset=function(){return[0,0]},e.prototype.baseCharZero=function(t){var e=!!this.baseCore.node.attributes.get("largeop"),r=this.baseScale;return this.baseIsChar&&!e&&1===r?0:t},e.prototype.getV=function(){var t=this.baseCore.getOuterBBox(),e=this.scriptChild.getOuterBBox(),r=this.font.params,n=this.length2em(this.node.attributes.get("subscriptshift"),r.sub1);return Math.max(this.baseCharZero(t.d*this.baseScale+r.sub_drop*e.rscale),n,e.h*e.rscale-.8*r.x_height)},e.prototype.getU=function(){var t=this.baseCore.getOuterBBox(),e=this.scriptChild.getOuterBBox(),r=this.font.params,n=this.node.attributes.getList("displaystyle","superscriptshift"),o=this.node.getProperty("texprimestyle")?r.sup3:n.displaystyle?r.sup1:r.sup2,n=this.length2em(n.superscriptshift,o);return Math.max(this.baseCharZero(t.h*this.baseScale-r.sup_drop*e.rscale),n,e.d*e.rscale+.25*r.x_height)},e.prototype.hasMovableLimits=function(){var t=this.node.attributes.get("displaystyle"),e=this.baseChild.coreMO().node;return!t&&!!e.attributes.get("movablelimits")},e.prototype.getOverKU=function(t,e){var r=this.node.attributes.get("accent"),n=this.font.params,e=e.d*e.rscale,o=n.rule_thickness*n.separation_factor,i=this.baseHasAccentOver?o:0,o=this.isLineAbove?3*n.rule_thickness:o,r=(r?o:Math.max(n.big_op_spacing1,n.big_op_spacing3-Math.max(0,e)))-i;return[r,t.h*t.rscale+r+e]},e.prototype.getUnderKV=function(t,e){var r=this.node.attributes.get("accentunder"),n=this.font.params,e=e.h*e.rscale,o=n.rule_thickness*n.separation_factor,i=this.baseHasAccentUnder?o:0,o=this.isLineBelow?3*n.rule_thickness:o,r=(r?o:Math.max(n.big_op_spacing2,n.big_op_spacing4-e))-i;return[r,-(t.d*t.rscale+r+e)]},e.prototype.getDeltaW=function(e,t){void 0===t&&(t=[0,0,0]);var r,n,o,i,a=this.node.attributes.get("align"),s=e.map(function(t){return t.w*t.rscale}),l=(s[0]-=this.baseRemoveIc&&!this.baseCore.node.attributes.get("largeop")?this.baseIc:0,Math.max.apply(Math,g([],y(s),!1))),c=[],u=0;try{for(var p=O(s.keys()),h=p.next();!h.done;h=p.next()){var d=h.value;c[d]=("center"===a?(l-s[d])/2:"right"===a?l-s[d]:0)+t[d],c[d]=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},i=(Object.defineProperty(e,"__esModule",{value:!0}),e.Menu=void 0,r(5713)),c=r(4474),a=r(9515),s=r(7233),l=r(5865),p=r(473),h=r(4414),d=r(4922),f=r(6914),m=r(3463),y=r(7309),g=o(r(5445)),b=a.MathJax,v="undefined"!=typeof window&&window.navigator&&"Mac"===window.navigator.platform.substr(0,3);function _(t,e){void 0===e&&(e={});var r=this;this.settings=null,this.defaultSettings=null,this.menu=null,this.MmlVisitor=new p.MmlVisitor,this.jax={CHTML:null,SVG:null},this.rerenderStart=c.STATE.LAST,this.about=new d.Info('MathJax v'+i.mathjax.version,function(){var t=[];return t.push("Input Jax: "+r.document.inputJax.map(function(t){return t.name}).join(", ")),t.push("Output Jax: "+r.document.outputJax.name),t.push("Document Type: "+r.document.kind),t.join("
")},'www.mathjax.org'),this.help=new d.Info("MathJax Help",function(){return["

MathJax is a JavaScript library that allows page"," authors to include mathematics within their web pages."," As a reader, you don't need to do anything to make that happen.

","

Browsers: MathJax works with all modern browsers including"," Edge, Firefox, Chrome, Safari, Opera, and most mobile browsers.

","

Math Menu: MathJax adds a contextual menu to equations."," Right-click or CTRL-click on any mathematics to access the menu.

",'
',"

Show Math As: These options allow you to view the formula's"," source markup (as MathML or in its original format).

","

Copy to Clipboard: These options copy the formula's source markup,"," as MathML or in its original format, to the clipboard"," (in browsers that support that).

","

Math Settings: These give you control over features of MathJax,"," such the size of the mathematics, and the mechanism used"," to display equations.

","

Accessibility: MathJax can work with screen"," readers to make mathematics accessible to the visually impaired."," Turn on the explorer to enable generation of speech strings"," and the ability to investigate expressions interactively.

","

Language: This menu lets you select the language used by MathJax"," for its menus and warning messages. (Not yet implemented in version 3.)

","
","

Math Zoom: If you are having difficulty reading an"," equation, MathJax can enlarge it to help you see it better, or"," you can scall all the math on the page to make it larger."," Turn these features on in the Math Settings menu.

","

Preferences: MathJax uses your browser's localStorage database"," to save the preferences set via this menu locally in your browser. These"," are not used to track you, and are not transferred or used remotely by"," MathJax in any way.

"].join("\n")},'www.mathjax.org'),this.mathmlCode=new h.SelectableInfo("MathJax MathML Expression",function(){if(!r.menu.mathItem)return"";var t=r.toMML(r.menu.mathItem);return"
"+r.formatSource(t)+"
"},""),this.originalText=new h.SelectableInfo("MathJax Original Source",function(){if(!r.menu.mathItem)return"";var t=r.menu.mathItem.math;return'
'+r.formatSource(t)+"
"},""),this.annotationText=new h.SelectableInfo("MathJax Annotation Text",function(){if(!r.menu.mathItem)return"";var t=r.menu.annotation;return'
'+r.formatSource(t)+"
"},""),this.zoomBox=new d.Info("MathJax Zoomed Expression",function(){if(!r.menu.mathItem)return"";var t=r.menu.mathItem.typesetRoot.cloneNode(!0);return t.style.margin="0",'
'+t.outerHTML+"
"},""),this.document=t,this.options=(0,s.userOptions)((0,s.defaultOptions)({},this.constructor.OPTIONS),e),this.initSettings(),this.mergeUserSettings(),this.initMenu(),this.applySettings()}Object.defineProperty(_.prototype,"isLoading",{get:function(){return 0<_.loading},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"loadingPromise",{get:function(){return this.isLoading?_._loadingPromise=_._loadingPromise?_._loadingPromise:new Promise(function(t,e){_._loadingOK=t,_._loadingFailed=e}):Promise.resolve()},enumerable:!1,configurable:!0}),_.prototype.initSettings=function(){this.settings=this.options.settings,this.jax=this.options.jax;var t=this.document.outputJax;this.jax[t.name]=t,this.settings.renderer=t.name,b._.a11y&&b._.a11y.explorer&&Object.assign(this.settings,this.document.options.a11y),this.settings.scale=t.options.scale,this.defaultSettings=Object.assign({},this.settings)},_.prototype.initMenu=function(){var r=this,t=new f.Parser([["contextMenu",l.MJContextMenu.fromJson.bind(l.MJContextMenu)]]),t=(this.menu=t.parse({type:"contextMenu",id:"MathJax_Menu",pool:[this.variable("texHints"),this.variable("semantics"),this.variable("zoom"),this.variable("zscale"),this.variable("renderer",function(t){return r.setRenderer(t)}),this.variable("alt"),this.variable("cmd"),this.variable("ctrl"),this.variable("shift"),this.variable("scale",function(t){return r.setScale(t)}),this.variable("explorer",function(t){return r.setExplorer(t)}),this.a11yVar("highlight"),this.a11yVar("backgroundColor"),this.a11yVar("backgroundOpacity"),this.a11yVar("foregroundColor"),this.a11yVar("foregroundOpacity"),this.a11yVar("speech"),this.a11yVar("subtitles"),this.a11yVar("braille"),this.a11yVar("viewBraille"),this.a11yVar("locale",function(t){return g.default.setupEngine({locale:t})}),this.a11yVar("speechRules",function(t){var t=n(t.split("-"),2),e=t[0],t=t[1];r.document.options.sre.domain=e,r.document.options.sre.style=t}),this.a11yVar("magnification"),this.a11yVar("magnify"),this.a11yVar("treeColoring"),this.a11yVar("infoType"),this.a11yVar("infoRole"),this.a11yVar("infoPrefix"),this.variable("autocollapse"),this.variable("collapsible",function(t){return r.setCollapsible(t)}),this.variable("inTabOrder",function(t){return r.setTabOrder(t)}),this.variable("assistiveMml",function(t){return r.setAssistiveMml(t)})],items:[this.submenu("Show","Show Math As",[this.command("MathMLcode","MathML Code",function(){return r.mathmlCode.post()}),this.command("Original","Original Form",function(){return r.originalText.post()}),this.submenu("Annotation","Annotation")]),this.submenu("Copy","Copy to Clipboard",[this.command("MathMLcode","MathML Code",function(){return r.copyMathML()}),this.command("Original","Original Form",function(){return r.copyOriginal()}),this.submenu("Annotation","Annotation")]),this.rule(),this.submenu("Settings","Math Settings",[this.submenu("Renderer","Math Renderer",this.radioGroup("renderer",[["CHTML"],["SVG"]])),this.rule(),this.submenu("ZoomTrigger","Zoom Trigger",[this.command("ZoomNow","Zoom Once Now",function(){return r.zoom(null,"",r.menu.mathItem)}),this.rule(),this.radioGroup("zoom",[["Click"],["DoubleClick","Double-Click"],["NoZoom","No Zoom"]]),this.rule(),this.label("TriggerRequires","Trigger Requires:"),this.checkbox(v?"Option":"Alt",v?"Option":"Alt","alt"),this.checkbox("Command","Command","cmd",{hidden:!v}),this.checkbox("Control","Control","ctrl",{hiddne:v}),this.checkbox("Shift","Shift","shift")]),this.submenu("ZoomFactor","Zoom Factor",this.radioGroup("zscale",[["150%"],["175%"],["200%"],["250%"],["300%"],["400%"]])),this.rule(),this.command("Scale","Scale All Math...",function(){return r.scaleAllMath()}),this.rule(),this.checkbox("texHints","Add TeX hints to MathML","texHints"),this.checkbox("semantics","Add original as annotation","semantics"),this.rule(),this.command("Reset","Reset to defaults",function(){return r.resetDefaults()})]),this.submenu("Accessibility","Accessibility",[this.checkbox("Activate","Activate","explorer"),this.submenu("Speech","Speech",[this.checkbox("Speech","Speech Output","speech"),this.checkbox("Subtitles","Speech Subtitles","subtitles"),this.checkbox("Braille","Braille Output","braille"),this.checkbox("View Braille","Braille Subtitles","viewBraille"),this.rule(),this.submenu("A11yLanguage","Language"),this.rule(),this.submenu("Mathspeak","Mathspeak Rules",this.radioGroup("speechRules",[["mathspeak-default","Verbose"],["mathspeak-brief","Brief"],["mathspeak-sbrief","Superbrief"]])),this.submenu("Clearspeak","Clearspeak Rules",this.radioGroup("speechRules",[["clearspeak-default","Auto"]])),this.submenu("ChromeVox","ChromeVox Rules",this.radioGroup("speechRules",[["chromevox-default","Standard"],["chromevox-alternative","Alternative"]]))]),this.submenu("Highlight","Highlight",[this.submenu("Background","Background",this.radioGroup("backgroundColor",[["Blue"],["Red"],["Green"],["Yellow"],["Cyan"],["Magenta"],["White"],["Black"]])),{type:"slider",variable:"backgroundOpacity",content:" "},this.submenu("Foreground","Foreground",this.radioGroup("foregroundColor",[["Black"],["White"],["Magenta"],["Cyan"],["Yellow"],["Green"],["Red"],["Blue"]])),{type:"slider",variable:"foregroundOpacity",content:" "},this.rule(),this.radioGroup("highlight",[["None"],["Hover"],["Flame"]]),this.rule(),this.checkbox("TreeColoring","Tree Coloring","treeColoring")]),this.submenu("Magnification","Magnification",[this.radioGroup("magnification",[["None"],["Keyboard"],["Mouse"]]),this.rule(),this.radioGroup("magnify",[["200%"],["300%"],["400%"],["500%"]])]),this.submenu("Semantic Info","Semantic Info",[this.checkbox("Type","Type","infoType"),this.checkbox("Role","Role","infoRole"),this.checkbox("Prefix","Prefix","infoPrefix")],!0),this.rule(),this.checkbox("Collapsible","Collapsible Math","collapsible"),this.checkbox("AutoCollapse","Auto Collapse","autocollapse",{disabled:!0}),this.rule(),this.checkbox("InTabOrder","Include in Tab Order","inTabOrder"),this.checkbox("AssistiveMml","Include Hidden MathML","assistiveMml")]),this.submenu("Language","Language"),this.rule(),this.command("About","About MathJax",function(){return r.about.post()}),this.command("Help","MathJax Help",function(){return r.help.post()})]}),this.menu);this.about.attachMenu(t),this.help.attachMenu(t),this.originalText.attachMenu(t),this.annotationText.attachMenu(t),this.mathmlCode.attachMenu(t),this.zoomBox.attachMenu(t),this.checkLoadableItems(),this.enableExplorerItems(this.settings.explorer),t.showAnnotation=this.annotationText,t.copyAnnotation=this.copyAnnotation.bind(this),t.annotationTypes=this.options.annotationTypes,y.CssStyles.addInfoStyles(this.document.document),y.CssStyles.addMenuStyles(this.document.document)},_.prototype.checkLoadableItems=function(){var t,e;if(b&&b._&&b.loader&&b.startup)!this.settings.collapsible||b._.a11y&&b._.a11y.complexity||this.loadA11y("complexity"),!this.settings.explorer||b._.a11y&&b._.a11y.explorer||this.loadA11y("explorer"),!this.settings.assistiveMml||b._.a11y&&b._.a11y["assistive-mml"]||this.loadA11y("assistive-mml");else{var r=this.menu;try{for(var n=u(Object.keys(this.jax)),o=n.next();!o.done;o=n.next()){var i=o.value;this.jax[i]||r.findID("Settings","Renderer",i).disable()}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}r.findID("Accessibility","Activate").disable(),r.findID("Accessibility","AutoCollapse").disable(),r.findID("Accessibility","Collapsible").disable()}},_.prototype.enableExplorerItems=function(t){var e,r,n=this.menu.findID("Accessibility","Activate").menu;try{for(var o=u(n.items.slice(1)),i=o.next();!i.done;i=o.next()){var a=i.value;if(a instanceof m.Rule)break;t?a.enable():a.disable()}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},_.prototype.mergeUserSettings=function(){try{var t=localStorage.getItem(_.MENU_STORAGE);if(!t)return;Object.assign(this.settings,JSON.parse(t)),this.setA11y(this.settings)}catch(t){console.log("MathJax localStorage error: "+t.message)}},_.prototype.saveUserSettings=function(){var e,t,r={};try{for(var n=u(Object.keys(this.settings)),o=n.next();!o.done;o=n.next()){var i=o.value;this.settings[i]!==this.defaultSettings[i]&&(r[i]=this.settings[i])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}try{Object.keys(r).length?localStorage.setItem(_.MENU_STORAGE,JSON.stringify(r)):localStorage.removeItem(_.MENU_STORAGE)}catch(t){console.log("MathJax localStorage error: "+t.message)}},_.prototype.setA11y=function(t){b._.a11y&&b._.a11y.explorer&&b._.a11y.explorer_ts.setA11yOptions(this.document,t)},_.prototype.getA11y=function(t){if(b._.a11y&&b._.a11y.explorer)return(void 0!==this.document.options.a11y[t]?this.document.options.a11y:this.document.options.sre)[t]},_.prototype.applySettings=function(){this.setTabOrder(this.settings.inTabOrder),this.document.options.enableAssistiveMml=this.settings.assistiveMml,this.document.outputJax.options.scale=parseFloat(this.settings.scale),this.settings.renderer!==this.defaultSettings.renderer&&this.setRenderer(this.settings.renderer)},_.prototype.setScale=function(t){this.document.outputJax.options.scale=parseFloat(t),this.document.rerender()},_.prototype.setRenderer=function(e){var r,n=this;this.jax[e]?this.setOutputJax(e):(r=e.toLowerCase(),this.loadComponent("output/"+r,function(){var t=b.startup;r in t.constructors&&(t.useOutput(r,!0),t.output=t.getOutputJax(),n.jax[e]=t.output,n.setOutputJax(e))}))},_.prototype.setOutputJax=function(t){this.jax[t].setAdaptor(this.document.adaptor),this.document.outputJax=this.jax[t],this.rerender()},_.prototype.setTabOrder=function(t){this.menu.store.inTaborder(t)},_.prototype.setAssistiveMml=function(t){!(this.document.options.enableAssistiveMml=t)||b._.a11y&&b._.a11y["assistive-mml"]?this.rerender():this.loadA11y("assistive-mml")},_.prototype.setExplorer=function(t){this.enableExplorerItems(t),!(this.document.options.enableExplorer=t)||b._.a11y&&b._.a11y.explorer?this.rerender(this.settings.collapsible?c.STATE.RERENDER:c.STATE.COMPILED):this.loadA11y("explorer")},_.prototype.setCollapsible=function(t){!(this.document.options.enableComplexity=t)||b._.a11y&&b._.a11y.complexity?this.rerender(c.STATE.COMPILED):this.loadA11y("complexity")},_.prototype.scaleAllMath=function(){var t=(100*parseFloat(this.settings.scale)).toFixed(1).replace(/.0$/,""),t=prompt("Scale all mathematics (compared to surrounding text) by",t+"%");t&&(t.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)?(t=parseFloat(t)/100)?this.menu.pool.lookup("scale").setValue(String(t)):alert("The scale should not be zero"):alert("The scale should be a percentage (e.g., 120%)"))},_.prototype.resetDefaults=function(){_.loading++;var e,t,r=this.menu.pool,n=this.defaultSettings;try{for(var o=u(Object.keys(this.settings)),i=o.next();!i.done;i=o.next()){var a,s=i.value,l=r.lookup(s);l?(l.setValue(n[s]),(a=l.items[0])&&a.executeCallbacks_()):this.settings[s]=n[s]}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}_.loading--,this.rerender(c.STATE.COMPILED)},_.prototype.checkComponent=function(t){t=_.loadingPromises.get(t);t&&i.mathjax.retryAfter(t)},_.prototype.loadComponent=function(t,e){var r;_.loadingPromises.has(t)||(r=b.loader)&&(_.loading++,r=r.load(t).then(function(){_.loading--,_.loadingPromises.delete(t),e(),0===_.loading&&_._loadingPromise&&(_._loadingPromise=null,_._loadingOK())}).catch(function(t){_._loadingPromise?(_._loadingPromise=null,_._loadingFailed(t)):console.log(t)}),_.loadingPromises.set(t,r))},_.prototype.loadA11y=function(r){var n=this,o=!c.STATE.ENRICHED;this.loadComponent("a11y/"+r,function(){var t=b.startup,e=(i.mathjax.handlers.unregister(t.handler),t.handler=t.getHandler(),i.mathjax.handlers.register(t.handler),n.document);n.document=t.document=t.getDocument(),(n.document.menu=n).document.outputJax.reset(),n.transferMathList(e),n.document.processed=e.processed,_._loadingPromise||(n.document.outputJax.reset(),n.rerender("complexity"===r||o?c.STATE.COMPILED:c.STATE.TYPESET))})},_.prototype.transferMathList=function(t){var e,r,n=this.document.options.MathItem;try{for(var o=u(t.math),i=o.next();!i.done;i=o.next()){var a=i.value,s=new n;Object.assign(s,a),this.document.math.push(s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},_.prototype.formatSource=function(t){return t.trim().replace(/&/g,"&").replace(//g,">")},_.prototype.toMML=function(t){return this.MmlVisitor.visitTree(t.root,t,{texHints:this.settings.texHints,semantics:this.settings.semantics&&"MathML"!==t.inputJax.name})},_.prototype.zoom=function(t,e,r){t&&!this.isZoomEvent(t,e)||(this.menu.mathItem=r,t&&this.menu.post(t),this.zoomBox.post())},_.prototype.isZoomEvent=function(t,e){return this.settings.zoom===e&&(!this.settings.alt||t.altKey)&&(!this.settings.ctrl||t.ctrlKey)&&(!this.settings.cmd||t.metaKey)&&(!this.settings.shift||t.shiftKey)},_.prototype.rerender=function(t){void 0===t&&(t=c.STATE.TYPESET),this.rerenderStart=Math.min(t,this.rerenderStart),_.loading||(this.rerenderStart<=c.STATE.COMPILED&&this.document.reset({inputJax:[]}),this.document.rerender(this.rerenderStart),this.rerenderStart=c.STATE.LAST)},_.prototype.copyMathML=function(){this.copyToClipboard(this.toMML(this.menu.mathItem))},_.prototype.copyOriginal=function(){this.copyToClipboard(this.menu.mathItem.math.trim())},_.prototype.copyAnnotation=function(){this.copyToClipboard(this.menu.annotation.trim())},_.prototype.copyToClipboard=function(t){var e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.cssText="height: 1px; width: 1px; padding: 1px; position: absolute; left: -10px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(t){alert("Can't copy to clipboard: "+t.message)}document.body.removeChild(e)},_.prototype.addMenu=function(e){var r=this,t=e.typesetRoot;t.addEventListener("contextmenu",function(){return r.menu.mathItem=e},!0),t.addEventListener("keydown",function(){return r.menu.mathItem=e},!0),t.addEventListener("click",function(t){return r.zoom(t,"Click",e)},!0),t.addEventListener("dblclick",function(t){return r.zoom(t,"DoubleClick",e)},!0),this.menu.store.insert(t)},_.prototype.clear=function(){this.menu.store.clear()},_.prototype.variable=function(e,r){var n=this;return{name:e,getter:function(){return n.settings[e]},setter:function(t){n.settings[e]=t,r&&r(t),n.saveUserSettings()}}},_.prototype.a11yVar=function(r,n){var o=this;return{name:r,getter:function(){return o.getA11y(r)},setter:function(t){o.settings[r]=t;var e={};e[r]=t,o.setA11y(e),n&&n(t),o.saveUserSettings()}}},_.prototype.submenu=function(t,e,r,n){void 0===r&&(r=[]),void 0===n&&(n=!1);var o,i,a=[];try{for(var s=u(r),l=s.next();!l.done;l=s.next()){var c=l.value;Array.isArray(c)?a=a.concat(c):a.push(c)}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return{type:"submenu",id:t,content:e,menu:{items:a},disabled:0===a.length||n}},_.prototype.command=function(t,e,r,n){return void 0===n&&(n={}),Object.assign({type:"command",id:t,content:e,action:r},n)},_.prototype.checkbox=function(t,e,r,n){return void 0===n&&(n={}),Object.assign({type:"checkbox",id:t,content:e,variable:r},n)},_.prototype.radioGroup=function(e,t){var r=this;return t.map(function(t){return r.radio(t[0],t[1]||t[0],e)})},_.prototype.radio=function(t,e,r,n){return void 0===n&&(n={}),Object.assign({type:"radio",id:t,content:e,variable:r},n)},_.prototype.label=function(t,e){return{type:"label",id:t,content:e}},_.prototype.rule=function(){return{type:"rule"}},_.MENU_STORAGE="MathJax-Menu-Settings",_.OPTIONS={settings:{texHints:!0,semantics:!1,zoom:"NoZoom",zscale:"200%",renderer:"CHTML",alt:!1,cmd:!1,ctrl:!1,shift:!1,scale:1,autocollapse:!1,collapsible:!1,inTabOrder:!0,assistiveMml:!0,explorer:!1},jax:{CHTML:null,SVG:null},annotationTypes:(0,s.expandable)({TeX:["TeX","LaTeX","application/x-tex"],StarMath:["StarMath 5.0"],Maple:["Maple"],ContentMathML:["MathML-Content","application/mathml-content+xml"],OpenMath:["OpenMath"]})},_.loading=0,_.loadingPromises=new Map,_._loadingPromise=null,_._loadingOK=null,_._loadingFailed=null,e.Menu=_},4001:function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.MenuHandler=e.MenuMathDocumentMixin=e.MenuMathItemMixin=void 0,r(5713)),p=r(4474),h=r(7233),d=r(8310);function f(t){return i(e,r=t),e.prototype.addMenu=function(t,e){void 0===e&&(e=!1),this.state()>=p.STATE.CONTEXT_MENU||(this.isEscaped||!t.options.enableMenu&&!e||t.menu.addMenu(this),this.state(p.STATE.CONTEXT_MENU))},e.prototype.checkLoading=function(t){t.checkLoading()},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}function o(t){var e,o;return i(r,o=t),r.prototype.addMenu=function(){var t,e;if(!this.processed.isSet("context-menu")){try{for(var r=c(this.math),n=r.next();!n.done;n=r.next())n.value.addMenu(this)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.processed.set("context-menu")}return this},r.prototype.checkLoading=function(){this.menu.isLoading&&u.mathjax.retryAfter(this.menu.loadingPromise.catch(function(t){return console.log(t)}));var t=this.menu.settings;return t.collapsible&&(this.options.enableComplexity=!0,this.menu.checkComponent("a11y/complexity")),t.explorer&&(this.options.enableEnrichment=!0,this.options.enableExplorer=!0,this.menu.checkComponent("a11y/explorer")),this},r.prototype.state=function(t,e){return o.prototype.state.call(this,t,e=void 0===e?!1:e),t\n"+this.childNodeMml(t,e+" ","\n")+e+""},l.prototype.visitMathNode=function(t,e){if(!this.options.semantics||"TeX"!==this.mathItem.inputJax.name)return o.prototype.visitDefault.call(this,t,e);var r=t.childNodes.length&&1\n"+e+" \n"+(r?e+" \n":"")+this.childNodeMml(t,e+(r?" ":" "),"\n")+(r?e+" \n":"")+e+' '+this.mathItem.math+"\n"+e+" \n"+e+""},l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.options={texHints:!0,semantics:!1},t.mathItem=null,t}e.MmlVisitor=r},4414:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.SelectableInfo=void 0,r(4922)),s=r(2165),r=(o=a.Info,i(l,o),l.prototype.addEvents=function(t){var e=this;t.addEventListener("keypress",function(t){"a"===t.key&&(t.ctrlKey||t.metaKey)&&(e.selectAll(),e.stop(t))})},l.prototype.selectAll=function(){document.getSelection().selectAllChildren(this.html.querySelector("pre"))},l.prototype.copyToClipboard=function(){this.selectAll();try{document.execCommand("copy")}catch(t){alert("Can't copy to clipboard: "+t.message)}document.getSelection().removeAllRanges()},l.prototype.generateHtml=function(){var e=this,t=(o.prototype.generateHtml.call(this),this.html.querySelector("span."+s.HtmlClasses.INFOSIGNATURE).appendChild(document.createElement("input")));t.type="button",t.value="Copy to Clipboard",t.addEventListener("click",function(t){return e.copyToClipboard()})},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.SelectableInfo=r},9923:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.asyncLoad=void 0;var o=r(5713);e.asyncLoad=function(n){return o.mathjax.asyncLoad?new Promise(function(e,r){var t=o.mathjax.asyncLoad(n);t instanceof Promise?t.then(function(t){return e(t)}).catch(function(t){return r(t)}):e(t)}):Promise.reject("Can't load '".concat(n,"': No asyncLoad method specified"))}},6469:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.BBox=void 0;var n=r(6010);function o(t){void 0===t&&(t={w:0,h:-n.BIGDIMEN,d:-n.BIGDIMEN}),this.w=t.w||0,this.h="h"in t?t.h:-n.BIGDIMEN,this.d="d"in t?t.d:-n.BIGDIMEN,this.L=this.R=this.ic=this.sk=this.dx=0,this.scale=this.rscale=1,this.pwidth=""}o.zero=function(){return new o({h:0,d:0,w:0})},o.empty=function(){return new o},o.prototype.empty=function(){return this.w=0,this.h=this.d=-n.BIGDIMEN,this},o.prototype.clean=function(){this.w===-n.BIGDIMEN&&(this.w=0),this.h===-n.BIGDIMEN&&(this.h=0),this.d===-n.BIGDIMEN&&(this.d=0)},o.prototype.rescale=function(t){this.w*=t,this.h*=t,this.d*=t},o.prototype.combine=function(t,e,r){var n=t.rscale,e=(e=void 0===e?0:e)+n*(t.w+t.L+t.R),o=(r=void 0===r?0:r)+n*t.h,n=n*t.d-r;e>this.w&&(this.w=e),o>this.h&&(this.h=o),n>this.d&&(this.d=n)},o.prototype.append=function(t){var e=t.rscale;this.w+=e*(t.w+t.L+t.R),e*t.h>this.h&&(this.h=e*t.h),e*t.d>this.d&&(this.d=e*t.d)},o.prototype.updateFrom=function(t){this.h=t.h,this.d=t.d,this.w=t.w,t.pwidth&&(this.pwidth=t.pwidth)},o.fullWidth="100%",o.StyleAdjust=[["borderTopWidth","h"],["borderRightWidth","w"],["borderBottomWidth","d"],["borderLeftWidth","w",0],["paddingTop","h"],["paddingRight","w"],["paddingBottom","d"],["paddingLeft","w",0]],e.BBox=o},6751:function(t,e){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0",gtdot:"⋗",harrw:"↭",hbar:"ℏ",hellip:"…",hookleftarrow:"↩",hookrightarrow:"↪",imath:"ı",infin:"∞",intcal:"⊺",iota:"ι",jmath:"ȷ",kappa:"κ",kappav:"ϰ",lEg:"⪋",lambda:"λ",lap:"⪅",larrlp:"↫",larrtl:"↢",lbrace:"{",lbrack:"[",le:"≤",leftleftarrows:"⇇",leftthreetimes:"⋋",lessdot:"⋖",lmoust:"⎰",lnE:"≨",lnap:"⪉",lne:"⪇",lnsim:"⋦",longmapsto:"⟼",looparrowright:"↬",lowast:"∗",loz:"◊",lt:"<",ltimes:"⋉",ltri:"◃",macr:"¯",malt:"✠",mho:"℧",mu:"μ",multimap:"⊸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",natur:"♮",nearr:"↗",nharr:"↮",nlarr:"↚",not:"¬",nrarr:"↛",nu:"ν",nvDash:"⊭",nvdash:"⊬",nwarr:"↖",omega:"ω",omicron:"ο",or:"∨",osol:"⊘",period:".",phi:"φ",phiv:"ϕ",pi:"π",piv:"ϖ",prap:"⪷",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",prime:"′",psi:"ψ",quot:'"',rarrtl:"↣",rbrace:"}",rbrack:"]",rho:"ρ",rhov:"ϱ",rightrightarrows:"⇉",rightthreetimes:"⋌",ring:"˚",rmoust:"⎱",rtimes:"⋊",rtri:"▹",scap:"⪸",scnE:"⪶",scnap:"⪺",scnsim:"⋩",sdot:"⋅",searr:"↘",sect:"§",sharp:"♯",sigma:"σ",sigmav:"ς",simne:"≆",smile:"⌣",spades:"♠",sub:"⊂",subE:"⫅",subnE:"⫋",subne:"⊊",supE:"⫆",supnE:"⫌",supne:"⊋",swarr:"↙",tau:"τ",theta:"θ",thetav:"ϑ",tilde:"˜",times:"×",triangle:"▵",triangleq:"≜",upsi:"υ",upuparrows:"⇈",veebar:"⊻",vellip:"⋮",weierp:"℘",xi:"ξ",yen:"¥",zeta:"ζ",zigrarr:"⇝",nbsp:" ",rsquo:"’",lsquo:"‘"},{});function a(t,e){return"#"===e.charAt(0)?s(e.slice(1)):r.entities[e]||(r.options.loadMissingEntities&&(e=e.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:e.charAt(0).toLowerCase(),i[e]||(i[e]=!0,(0,n.retryAfter)((0,o.asyncLoad)("./util/entities/"+e+".js")))),t)}function s(t){t="x"===t.charAt(0)?parseInt(t.slice(1),16):parseInt(t);return String.fromCodePoint(t)}r.add=function(t,e){Object.assign(r.entities,t),i[e]=!0},r.remove=function(t){delete r.entities[t]},r.translate=function(t){return t.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,a)},r.numeric=s},7525:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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)}),s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0s[0]&&e[1]=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},e=(Object.defineProperty(u,"__esModule",{value:!0}),u.LinkedList=u.ListItem=u.END=void 0,u.END=Symbol(),u.ListItem=l,c.prototype.isBefore=function(t,e){return t=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0e.length}}}},n.prototype.add=function(t,e){void 0===e&&(e=n.DEFAULTPRIORITY);for(var r=this.items.length;0<=--r&&e=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.CssStyles=void 0,Object.defineProperty(n.prototype,"cssText",{get:function(){return this.getStyleString()},enumerable:!1,configurable:!0}),n.prototype.addStyles=function(t){var e,r;if(t)try{for(var n=c(Object.keys(t)),o=n.next();!o.done;o=n.next()){var i=o.value;this.styles[i]||(this.styles[i]={}),Object.assign(this.styles[i],t[i])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},n.prototype.removeStyles=function(){for(var t,e,r=[],n=0;n=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},g=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractItem=void 0,r(9329)),l=r(2556),c=r(2165),r=(o=s.AbstractEntry,i(u,o),Object.defineProperty(u.prototype,"content",{get:function(){return this._content},set:function(t){this._content=t,this.generateHtml(),this.menu&&this.menu.generateHtml()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),u.prototype.press=function(){this.disabled||(this.executeAction(),this.executeCallbacks_())},u.prototype.executeAction=function(){},u.prototype.registerCallback=function(t){-1===this.callbacks.indexOf(t)&&this.callbacks.push(t)},u.prototype.unregisterCallback=function(t){t=this.callbacks.indexOf(t);-1!==t&&this.callbacks.splice(t,1)},u.prototype.mousedown=function(t){this.press(),this.stop(t)},u.prototype.mouseover=function(t){this.focus(),this.stop(t)},u.prototype.mouseout=function(t){this.deactivate(),this.stop(t)},u.prototype.generateHtml=function(){o.prototype.generateHtml.call(this);var t=this.html;t.setAttribute("aria-disabled","false"),t.textContent=this.content},u.prototype.activate=function(){this.disabled||this.html.classList.add(c.HtmlClasses.MENUACTIVE)},u.prototype.deactivate=function(){this.html.classList.remove(c.HtmlClasses.MENUACTIVE)},u.prototype.focus=function(){this.menu.focused=this,o.prototype.focus.call(this),this.activate()},u.prototype.unfocus=function(){this.deactivate(),o.prototype.unfocus.call(this)},u.prototype.escape=function(t){l.MenuUtil.close(this)},u.prototype.up=function(t){this.menu.up(t)},u.prototype.down=function(t){this.menu.down(t)},u.prototype.left=function(t){this.menu.left(t)},u.prototype.right=function(t){this.menu.right(t)},u.prototype.space=function(t){this.press()},u.prototype.disable=function(){this.disabled=!0;var t=this.html;t.classList.add(c.HtmlClasses.MENUDISABLED),t.setAttribute("aria-disabled","true")},u.prototype.enable=function(){this.disabled=!1;var t=this.html;t.classList.remove(c.HtmlClasses.MENUDISABLED),t.removeAttribute("aria-disabled")},u.prototype.executeCallbacks_=function(){var t,e;try{for(var r=a(this.callbacks),n=r.next();!n.done;n=r.next()){var o=n.value;try{o(this)}catch(t){l.MenuUtil.error(t,"Callback for menu entry "+this.id+" failed.")}}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},u);function u(t,e,r,n){t=o.call(this,t,e)||this;return t._content=r,t.disabled=!1,t.callbacks=[],t._id=n||r,t}e.AbstractItem=r},1484:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMenu=void 0,r(8372)),l=r(1340),c=r(2165),u=r(6186),r=(o=a.AbstractPostable,i(p,o),Object.defineProperty(p.prototype,"baseMenu",{get:function(){return this._baseMenu},set:function(t){this._baseMenu=t},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"items",{get:function(){return this._items},set:function(t){this._items=t},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"pool",{get:function(){return this.variablePool},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"focused",{get:function(){return this._focused},set:function(t){var e;this._focused!==t&&(this._focused||this.unfocus(),e=this._focused,this._focused=t,e&&e.unfocus())},enumerable:!1,configurable:!0}),p.prototype.up=function(t){var e,r=this.items.filter(function(t){return t instanceof l.AbstractItem&&!t.isHidden()});0!==r.length&&(this.focused?-1!==(e=r.indexOf(this.focused))&&r[e=e?--e:r.length-1].focus():r[r.length-1].focus())},p.prototype.down=function(t){var e,r=this.items.filter(function(t){return t instanceof l.AbstractItem&&!t.isHidden()});0!==r.length&&(this.focused?-1!==(e=r.indexOf(this.focused))&&r[e=++e===r.length?0:e].focus():r[0].focus())},p.prototype.generateHtml=function(){o.prototype.generateHtml.call(this),this.generateMenu()},p.prototype.generateMenu=function(){var t,e,r=this.html;r.classList.add(c.HtmlClasses.MENU);try{for(var n=s(this.items),o=n.next();!o.done;o=n.next()){var i,a=o.value;a.isHidden()?(i=a.html).parentNode&&i.parentNode.removeChild(i):r.appendChild(a.html)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},p.prototype.post=function(t,e){this.variablePool.update(),o.prototype.post.call(this,t,e)},p.prototype.unpostSubmenus=function(){var t,e,r=this.items.filter(function(t){return t instanceof u.Submenu});try{for(var n=s(r),o=n.next();!o.done;o=n.next()){var i=o.value;i.submenu.unpost(),i!==this.focused&&i.unfocus()}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},p.prototype.unpost=function(){o.prototype.unpost.call(this),this.unpostSubmenus(),this.focused=null},p.prototype.find=function(t){var e,r;try{for(var n=s(this.items),o=n.next();!o.done;o=n.next()){var i=o.value;if("rule"!==i.type){if(i.id===t)return i;if("submenu"===i.type){var a=i.submenu.find(t);if(a)return a}}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return null},p);function p(){var t=null!==o&&o.apply(this,arguments)||this;return t.className=c.HtmlClasses.CONTEXTMENU,t.role="menu",t._items=[],t._baseMenu=null,t}e.AbstractMenu=r},2868:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractNavigatable=void 0;var n=r(3205),o=r(8853);function i(){this.bubble=!1}i.prototype.bubbleKey=function(){this.bubble=!0},i.prototype.keydown=function(t){switch(t.keyCode){case n.KEY.ESCAPE:this.escape(t);break;case n.KEY.RIGHT:this.right(t);break;case n.KEY.LEFT:this.left(t);break;case n.KEY.UP:this.up(t);break;case n.KEY.DOWN:this.down(t);break;case n.KEY.RETURN:case n.KEY.SPACE:this.space(t);break;default:return}this.bubble?this.bubble=!1:this.stop(t)},i.prototype.escape=function(t){},i.prototype.space=function(t){},i.prototype.left=function(t){},i.prototype.right=function(t){},i.prototype.up=function(t){},i.prototype.down=function(t){},i.prototype.stop=function(t){t&&(t.stopPropagation(),t.preventDefault(),t.cancelBubble=!0)},i.prototype.mousedown=function(t){return this.stop(t)},i.prototype.mouseup=function(t){return this.stop(t)},i.prototype.mouseover=function(t){return this.stop(t)},i.prototype.mouseout=function(t){return this.stop(t)},i.prototype.click=function(t){return this.stop(t)},i.prototype.addEvents=function(t){t.addEventListener(o.MOUSE.DOWN,this.mousedown.bind(this)),t.addEventListener(o.MOUSE.UP,this.mouseup.bind(this)),t.addEventListener(o.MOUSE.OVER,this.mouseover.bind(this)),t.addEventListener(o.MOUSE.OUT,this.mouseout.bind(this)),t.addEventListener(o.MOUSE.CLICK,this.click.bind(this)),t.addEventListener("keydown",this.keydown.bind(this)),t.addEventListener("dragstart",this.stop.bind(this)),t.addEventListener(o.MOUSE.SELECTSTART,this.stop.bind(this)),t.addEventListener("contextmenu",this.stop.bind(this)),t.addEventListener(o.MOUSE.DBLCLICK,this.stop.bind(this))},e.AbstractNavigatable=i},8372:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractPostable=void 0,o=r(9328).MenuElement,i(a,o),a.prototype.isPosted=function(){return this.posted},a.prototype.post=function(t,e){this.posted||(void 0!==t&&void 0!==e&&this.html.setAttribute("style","left: "+t+"px; top: "+e+"px;"),this.display(),this.posted=!0)},a.prototype.unpost=function(){var t;this.posted&&((t=this.html).parentNode&&t.parentNode.removeChild(t),this.posted=!1)},a);function a(){var t=null!==o&&o.apply(this,arguments)||this;return t.posted=!1,t}e.AbstractPostable=r},6765:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractVariableItem=void 0,o=r(1340).AbstractItem,i(a,o),a.prototype.generateHtml=function(){o.prototype.generateHtml.call(this);var t=this.html;this.span||this.generateSpan(),t.appendChild(this.span),this.update()},a.prototype.register=function(){this.variable.register(this)},a.prototype.unregister=function(){this.variable.unregister(this)},a.prototype.update=function(){this.updateAria(),this.span&&this.updateSpan()},a);function a(){return null!==o&&o.apply(this,arguments)||this}e.AbstractVariableItem=r},5179:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CloseButton=void 0,r(8372)),s=r(2165),r=(o=a.AbstractPostable,i(l,o),l.prototype.generateHtml=function(){var t=document.createElement("span"),e=(t.classList.add(this.className),t.setAttribute("role",this.role),t.setAttribute("tabindex","0"),document.createElement("span"));e.textContent="×",t.appendChild(e),this.html=t},l.prototype.display=function(){},l.prototype.unpost=function(){o.prototype.unpost.call(this),this.element.unpost()},l.prototype.keydown=function(t){this.bubbleKey(),o.prototype.keydown.call(this,t)},l.prototype.space=function(t){this.unpost(),this.stop(t)},l.prototype.mousedown=function(t){this.unpost(),this.stop(t)},l);function l(t){var e=o.call(this)||this;return e.element=t,e.className=s.HtmlClasses.MENUCLOSE,e.role="button",e}e.CloseButton=r},5073:function(t,e,r){var n,a,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.ContextMenu=void 0,r(1484)),s=r(2165),l=r(1932),c=r(2358),r=(a=i.AbstractMenu,o(u,a),u.fromJson=function(e,t){var r=t.pool,n=t.items,t=t.id,t=void 0===t?"":t,o=new this(e),i=(o.id=t,e.get("variable")),t=(r.forEach(function(t){return i(e,t,o.pool)}),e.get("items")(e,n,o));return o.items=t,o},u.prototype.generateHtml=function(){this.isPosted()&&this.unpost(),a.prototype.generateHtml.call(this),this._frame=document.createElement("div"),this._frame.classList.add(s.HtmlClasses.MENUFRAME);var t="left: 0px; top: 0px; z-index: 200; width: 100%; height: 100%; border: 0px; padding: 0px; margin: 0px;",e=(this._frame.setAttribute("style","position: absolute; "+t),document.createElement("div"));e.setAttribute("style","position: fixed; "+t),this._frame.appendChild(e),e.addEventListener("mousedown",function(t){this.unpost(),this.unpostWidgets(),this.stop(t)}.bind(this))},u.prototype.display=function(){document.body.appendChild(this.frame),this.frame.appendChild(this.html),this.focus()},u.prototype.escape=function(t){this.unpost(),this.unpostWidgets()},u.prototype.unpost=function(){var t;a.prototype.unpost.call(this),0document.body.offsetWidth-5&&(o=document.body.offsetWidth-t.offsetWidth-5),this.post(o,i)},u.prototype.registerWidget=function(t){this.widgets.push(t)},u.prototype.unregisterWidget=function(t){t=this.widgets.indexOf(t);-1=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=(Object.defineProperty(e,"__esModule",{value:!0}),e.MenuStore=void 0,r(2556)),o=r(2165),i=r(3205),r=(Object.defineProperty(a.prototype,"active",{get:function(){return this._active},set:function(t){do{if(-1!==this.store.indexOf(t)){this._active=t;break}}while(t=t.parentNode)},enumerable:!1,configurable:!0}),a.prototype.next=function(){var t=this.store.length;if(0===t)return this.active=null;var e=-1!==(e=this.store.indexOf(this.active))&&e=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__spread||function(){for(var t=[],e=0;edocument.body.offsetWidth-5&&(o=Math.max(5,o-n-e.offsetWidth+6)),a.prototype.post.call(this,o,i)}},i.prototype.display=function(){this.baseMenu.frame.appendChild(this.html)},i.prototype.setBaseMenu=function(){for(var t=this;(t=t.anchor.menu)instanceof i;);this.baseMenu=t},i.prototype.left=function(t){this.focused=null,this.anchor.focus()},i.prototype.toJson=function(){return{type:""}},i);function i(t){var e=a.call(this)||this;return e._anchor=t,e.variablePool=e.anchor.menu.pool,e.setBaseMenu(),e}e.SubMenu=r},3737:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.Variable=void 0;var n=r(2556);function o(t,e,r){this._name=t,this.getter=e,this.setter=r,this.items=[]}o.fromJson=function(t,e,r){e=new this(e.name,e.getter,e.setter);r.insert(e)},Object.defineProperty(o.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),o.prototype.getValue=function(t){try{return this.getter(t)}catch(t){return n.MenuUtil.error(t,"Command of variable "+this.name+" failed."),null}},o.prototype.setValue=function(t,e){try{this.setter(t,e)}catch(t){n.MenuUtil.error(t,"Command of variable "+this.name+" failed.")}this.update()},o.prototype.register=function(t){-1===this.items.indexOf(t)&&this.items.push(t)},o.prototype.unregister=function(t){t=this.items.indexOf(t);-1!==t&&this.items.splice(t,1)},o.prototype.update=function(){this.items.forEach(function(t){return t.update()})},o.prototype.registerCallback=function(e){this.items.forEach(function(t){return t.registerCallback(e)})},o.prototype.unregisterCallback=function(e){this.items.forEach(function(t){return t.unregisterCallback(e)})},o.prototype.toJson=function(){return{type:"variable",name:this.name,getter:this.getter.toString(),setter:this.setter.toString()}},e.Variable=o},2358:function(t,e){function r(){this.pool={}}Object.defineProperty(e,"__esModule",{value:!0}),e.VariablePool=void 0,r.prototype.insert=function(t){this.pool[t.name]=t},r.prototype.lookup=function(t){return this.pool[t]},r.prototype.remove=function(t){delete this.pool[t]},r.prototype.update=function(){for(var t in this.pool)this.pool[t].update()},e.VariablePool=r},3921:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractAudioRenderer=void 0;const n=r(5897);e.AbstractAudioRenderer=class{constructor(){this.separator_=" "}setSeparator(t){this.separator_=t}getSeparator(){return"braille"===n.default.getInstance().modality?"":this.separator_}error(t){return null}merge(r){let n="";var o=r.length-1;for(let t,e=0;t=r[e];e++)if(n+=t.speech,edelete e[t]),r.open.forEach(t=>e[t]=r[t]);var t=Object.keys(e);e.open=t},e.sortClose=function(r,n){if(r.length<=1)return r;const o=[];for(let t,e=0;t=n[e],r.length;e++)t.close&&t.close.length&&t.close.forEach(function(t){var e=r.indexOf(t);-1!==e&&(o.unshift(t),r.splice(e,1))});return o};let y={},g=[];function b(t,e){const r=t[t.length-1];if(r){if(O(e)&&O(r)){if(void 0===r.join)return r.span=r.span.concat(e.span);const t=r.span.pop(),n=e.span.shift();return r.span.push(t+r.join+n),r.span=r.span.concat(e.span),r.join=e.join}S(e)&&S(r)?r.pause=m(r.pause,e.pause):t.push(e)}else t.push(e)}function v(t,e){t.rate&&(e.rate=t.rate),t.pitch&&(e.pitch=t.pitch),t.volume&&(e.volume=t.volume)}function _(t){return"object"==typeof t&&t.open}function S(t){return"object"==typeof t&&1===Object.keys(t).length&&Object.keys(t)[0]===d.personalityProps.PAUSE}function O(t){var e=Object.keys(t);return"object"==typeof t&&(1===e.length&&"span"===e[0]||2===e.length&&("span"===e[0]&&"join"===e[1]||"span"===e[1]&&"join"===e[0]))}function M(t,r){if(!r)return t;const n={};for(const s of d.personalityPropList){const d=t[s],a=r[s];var e;!d&&!a||d&&a&&d===a||(e=d||0,_(n)||(n.open=[],n.close=[]),d||n.close.push(s),a||n.open.push(s),a&&d&&(n.close.push(s),n.open.push(s)),r[s]=e,n[s]=e,y[s]?y[s].push(e):y[s]=[e])}if(_(n)){let t=n.close.slice();for(;0"string"==typeof t?new c.Span(t,{}):t),r=m.get(n.default.getInstance().markup);return r?r.merge(e):t.join()},e.finalize=function(t){const e=m.get(n.default.getInstance().markup);return e?e.finalize(t):t},e.error=function(t){const e=m.get(n.default.getInstance().markup);return e?e.error(t):""},e.registerRenderer=function(t,e){m.set(t,e)},e.isXml=function(){return m.get(n.default.getInstance().markup)instanceof d.XmlRenderer}},8639:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.LayoutRenderer=void 0;const n=r(2057),a=r(5740),o=r(4440),i=r(3706),s=r(2456);class l extends s.XmlRenderer{finalize(t){{c="";const e=a.parseInput(`${t}`);return n.Debugger.getInstance().output(a.formatXml(e.toString())),c=d(e)}}pause(t){return""}prosodyElement(t,e){return t===o.personalityProps.LAYOUT?`<${e}>`:""}closeTag(t){return``}markup(t){const e=[];let r=[];for(const n of t)if(n.layout){e.push(this.processContent(r)),r=[];const t=n.layout;t.match(/^begin/)?e.push("<"+t.replace(/^begin/,"")+">"):t.match(/^end/)?e.push(""):console.warn("Something went wrong with layout markup: "+t)}else r.push(n);return e.push(this.processContent(r)),e.join("")}processContent(t){const r=[],n=i.personalityMarkup(t);for(let t,e=0;t=n[e];e++)t.span?r.push(this.merge(t.span)):i.isPauseElement(t);return r.join("")}}e.LayoutRenderer=l;let c="";const u={TABLE:function(t){let e=g(t);e.forEach(t=>{t.cells=t.cells.slice(1).slice(0,-1),t.width=t.width.slice(1).slice(0,-1)});var[t,r]=b(e);return _(e=v(e,r),t)},CASES:function(t){let e=g(t);e.forEach(t=>{t.cells=t.cells.slice(0,-1),t.width=t.width.slice(0,-1)});var[t,r]=b(e);return _(e=v(e,r),t)},CAYLEY:function(t){let e=g(t);e.forEach(t=>{t.cells=t.cells.slice(1).slice(0,-1),t.width=t.width.slice(1).slice(0,-1),t.sep=t.sep+t.sep});const[r,n]=b(e),o={lfence:"",rfence:"",cells:n.map(t=>"⠐"+new Array(t).join("⠒")),width:n,height:1,sep:e[0].sep};return e.splice(1,0,o),_(e=v(e,n),r)},MATRIX:function(t){var t=g(t),[e,r]=b(t);return _(v(t,r),e)},CELL:d,FENCE:d,ROW:d,FRACTION:function(t){var[t,e,,r,n]=Array.from(t.childNodes),e=p(e),r=p(r),o=m(e),i=m(r),o=Math.max(o,i),i=t+new Array(o+1).join("⠒")+n;return M(e,o=i.length)+` +${i} +`+M(r,o)},NUMERATOR:x,DENOMINATOR:x};function p(t){const e=a.tagName(t),r=u[e];return r?r(t):t.textContent}function h(t,e){if(!t||!e)return t+e;var r=f(t),n=f(e),o=r-n;t=o<0?y(t,n,m(t)):t,e=0Math.max(e.length,t),0)}function y(t,e,r){i=e-f(e=t),t=e+(0Math.max(f(e),t),0),width:i.map(m)}}(t));return r}function b(t){const e=t.reduce((t,e)=>Math.max(e.height,t),0),r=[];for(let e=0;et.width[e]).reduce((t,e)=>Math.max(t,e),0));return[e,r]}function v(e,r){const t=[];for(const n of e)if(0!==n.height){const e=[];for(let t=0;tt.lfence+t.cells.join(t.sep)+t.rfence).join("\n");const n=[];for(const r of e){const e=S(r.sep,r.height);let t=r.cells.shift();for(;r.cells.length;)t=h(t,e),t=h(t,r.cells.shift());t=h(S(r.lfence,r.height),t),t=h(t,S(r.rfence,r.height)),n.push(t),n.push(r.lfence+new Array(m(t)-3).join(r.sep)+r.rfence)}return n.slice(0,-1).join("\n")}function S(t,e){let r="";for(;e;)r+=t+"\n",e--;return r.slice(0,-1)}function O(t){return t.nodeType===a.NodeType.ELEMENT_NODE&&"FENCE"===a.tagName(t)?p(t):""}function M(t,e){const r=(e-m(t))/2,[n,o]=Math.floor(r)===r?[r,r]:[Math.floor(r),Math.ceil(r)],i=t.split(/\r\n|\r|\n/),a=[],[s,l]=[new Array(n+1).join("⠀"),new Array(o+1).join("⠀")];for(const t of i)a.push(s+t+l);return a.join("\n")}function x(t){var e=t.firstChild,t=d(t);if(e&&e.nodeType===a.NodeType.ELEMENT_NODE){if("ENGLISH"===a.tagName(e))return"⠰"+t;if("NUMBER"===a.tagName(e))return"⠼"+t}return t}},182:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.MarkupRenderer=void 0;const n=r(4440),o=r(3921);class i extends o.AbstractAudioRenderer{constructor(){super(...arguments),this.ignoreElements=[n.personalityProps.LAYOUT],this.scaleFunction=null}setScaleFunction(e,r,n,o,i=0){this.scaleFunction=t=>{t=(t-e)/(r-e);return+(Math.round(n*(1-t)+o*t+"e+"+i)+"e-"+i)}}applyScaleFunction(t){return this.scaleFunction?this.scaleFunction(t):t}ignoreElement(t){return-1!==this.ignoreElements.indexOf(t)}}e.MarkupRenderer=i},8990:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.PunctuationRenderer=void 0;const a=r(4440),n=r(3921),s=r(3706);class o extends n.AbstractAudioRenderer{markup(t){var r=s.personalityMarkup(t);let n="",o=null,i=!1;for(let t,e=0;t=r[e];e++)s.isMarkupElement(t)||(s.isPauseElement(t)?i&&(o=s.mergePause(o,t,Math.max)):(o&&(n+=this.pause(o[a.personalityProps.PAUSE]),o=null),n+=(i?this.getSeparator():"")+this.merge(t.span),i=!0));return n}pause(t){t="number"==typeof t?t<=250?"short":t<=500?"medium":"long":t;return o.PAUSE_PUNCTUATION.get(t)||""}}(e.PunctuationRenderer=o).PAUSE_PUNCTUATION=new Map([["short",","],["medium",";"],["long","."]])},6660:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SableRenderer=void 0;const n=r(4440),o=r(2456);class i extends o.XmlRenderer{finalize(t){return''+this.getSeparator()+t+this.getSeparator()+""}pause(t){return''}prosodyElement(t,e){switch(e=this.applyScaleFunction(e),t){case n.personalityProps.PITCH:return'';case n.personalityProps.RATE:return'';case n.personalityProps.VOLUME:return'';default:return"<"+t.toUpperCase()+' VALUE="'+e+'">'}}closeTag(t){return""}}e.SableRenderer=i},9536:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Span=void 0,e.Span=class{constructor(t,e){this.speech=t,this.attributes=e}}},7504:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SsmlRenderer=void 0;const n=r(5897),o=r(4440),i=r(2456);class a extends i.XmlRenderer{finalize(t){return''+this.getSeparator()+t+this.getSeparator()+""}pause(t){return''}prosodyElement(t,e){e=(e=Math.floor(this.applyScaleFunction(e)))<0?e.toString():"+"+e.toString();return"":'%">')}closeTag(t){return""}}e.SsmlRenderer=a},3757:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SsmlStepRenderer=void 0;class i extends r(7504).SsmlRenderer{markup(t){return i.MARKS={},super.markup(t)}merge(e){const r=[];for(let t=0;t'),i.MARKS[o]=!0),1===n.speech.length&&n.speech.match(/[a-zA-Z]/)?r.push(''+n.speech+""):r.push(n.speech)}return r.join(this.getSeparator())}}(e.SsmlStepRenderer=i).CHARACTER_ATTR="character",i.MARKS={}},4032:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.StringRenderer=void 0;const n=r(3921),i=r(3706);class o extends n.AbstractAudioRenderer{markup(t){let r="";const n=(0,i.personalityMarkup)(t).filter(t=>t.span);if(!n.length)return r;var o=n.length-1;for(let t,e=0;t=n[e];e++)if(t.span&&(r+=this.merge(t.span)),!(e>=o)){const n=t.join;r+=void 0===n?this.getSeparator():n}return r}}e.StringRenderer=o},2456:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.XmlRenderer=void 0;const i=r(5897),a=r(3706),n=r(182);class o extends n.MarkupRenderer{markup(t){this.setScaleFunction(-2,2,-100,100,2);const r=a.personalityMarkup(t),n=[],o=[];for(let e,t=0;e=r[t];t++)if(e.span)n.push(this.merge(e.span));else if(a.isPauseElement(e))n.push(this.pause(e));else{if(e.close.length)for(let t=0;t{n.push(this.prosodyElement(t,e[t])),o.push(t)})}return n.join(" ")}}e.XmlRenderer=o},707:function(t,e){function r(t,e){return t?e?t.filter(t=>e.indexOf(t)<0):t:[]}Object.defineProperty(e,"__esModule",{value:!0}),e.union=e.setdifference=e.interleaveLists=e.removeEmpty=void 0,e.removeEmpty=function(t){return t.filter(t=>t)},e.interleaveLists=function(t,e){const r=[];for(;t.length||e.length;)t.length&&r.push(t.shift()),e.length&&r.push(e.shift());return r},e.setdifference=r,e.union=function(t,e){return t&&e?t.concat(r(e,t)):t||e||[]}},2139:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.loadScript=e.loadMapsForIE_=e.installWGXpath_=e.loadWGXpath_=e.mapsForIE=e.detectEdge=e.detectIE=void 0;const n=r(2315),o=r(5274);function i(t){l(n.default.WGXpath),a(t)}function a(t,e){let r=e||1;"undefined"==typeof wgxpath&&r<10?setTimeout(function(){a(t,r++)},200):10<=r||(n.default.wgxpath=wgxpath,t?n.default.wgxpath.install({document:document}):n.default.wgxpath.install(),o.xpath.evaluate=document.evaluate,o.xpath.result=XPathResult,o.xpath.createNSResolver=document.createNSResolver)}function s(){l(n.default.mathmapsIePath)}function l(t){const e=n.default.document.createElement("script");e.type="text/javascript",e.src=t,(n.default.document.head||n.default.document.body).appendChild(e)}e.detectIE=function(){return"undefined"!=typeof window&&"ActiveXObject"in window&&"clipboardData"in window&&(s(),i(),!0)},e.detectEdge=function(){var t;return"undefined"!=typeof window&&"MSGestureEvent"in window&&null===(null==(t=window.chrome)?void 0:t.loadTimes)&&(i(!(document.evaluate=null)),!0)},e.mapsForIE=null,e.loadWGXpath_=i,e.installWGXpath_=a,e.loadMapsForIE_=s,e.loadScript=l},2057:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.Debugger=void 0;const n=r(2315);class o{constructor(){this.isActive_=!1,this.outputFunction_=console.info,this.stream_=null}static getInstance(){return o.instance=o.instance||new o,o.instance}init(t){t&&this.startDebugFile_(t),this.isActive_=!0}output(...t){this.isActive_&&this.output_(t)}generateOutput(t){this.isActive_&&this.output_(t.apply(t,[]))}exit(t=()=>{}){this.isActive_&&this.stream_&&this.stream_.end("","",t)}startDebugFile_(t){this.stream_=n.default.fs.createWriteStream(t),this.outputFunction_=function(...t){this.stream_.write(t.join(" ")),this.stream_.write("\n")}.bind(this),this.stream_.on("error",function(t){console.info("Invalid log file. Debug information sent to console."),this.outputFunction_=console.info}.bind(this)),this.stream_.on("finish",function(){console.info("Finalizing debug file.")})}output_(t){this.outputFunction_.apply(console.info===this.outputFunction_?console:this.outputFunction_,["Speech Rule Engine Debugger:"].concat(t))}}e.Debugger=o},5740:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeXml=e.cloneNode=e.tagName=e.querySelectorAll=e.querySelectorAllByAttrValue=e.querySelectorAllByAttr=e.formatXml=e.createTextNode=e.createElementNS=e.createElement=e.replaceNode=e.NodeType=e.parseInput=e.XML_ENTITIES=e.trimInput_=e.toArray=void 0;const o=r(5897),i=r(4440),a=r(2315),s=r(5274);function n(r){const n=[];for(let t=0,e=r.length;t[ \f\n\r\t\v\u200b]+<").trim()}e.toArray=n,e.trimInput_=l,e.XML_ENTITIES={"<":!0,">":!0,"&":!0,""":!0,"'":!0},e.parseInput=function(t){const e=new a.default.xmldom.DOMParser,r=l(t),n=!!r.match(/&(?!lt|gt|amp|quot|apos)\w+;/g);if(!r)throw new Error("Empty input!");try{const t=e.parseFromString(r,n?"text/html":"text/xml");return o.default.getInstance().mode===i.Mode.HTTP?(s.xpath.currentDocument=t,n?t.body.childNodes[0]:t.documentElement):t.documentElement}catch(t){throw new o.SREError("Illegal input: "+t.message)}},(r=e.NodeType||(e.NodeType={}))[r.ELEMENT_NODE=1]="ELEMENT_NODE",r[r.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",r[r.TEXT_NODE=3]="TEXT_NODE",r[r.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",r[r.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",r[r.ENTITY_NODE=6]="ENTITY_NODE",r[r.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",r[r.COMMENT_NODE=8]="COMMENT_NODE",r[r.DOCUMENT_NODE=9]="DOCUMENT_NODE",r[r.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",r[r.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",r[r.NOTATION_NODE=12]="NOTATION_NODE",e.replaceNode=function(t,e){t.parentNode&&(t.parentNode.insertBefore(e,t),t.parentNode.removeChild(t))},e.createElement=function(t){return a.default.document.createElement(t)},e.createElementNS=function(t,e){return a.default.document.createElementNS(t,e)},e.createTextNode=function(t){return a.default.document.createTextNode(t)},e.formatXml=function(t){let r="",e=/(>)(<)(\/*)/g,n=0,o=(t=t.replace(e,"$1\r\n$2$3")).split("\r\n");for(e=/(\.)*(<)(\/*)/g,o=o.map(t=>t.replace(e,"$1\r\n$2$3").split("\r\n")).reduce((t,e)=>t.concat(e),[]);o.length;){let e=o.shift();if(e){let t=0;if(e.match(/^<\w[^>/]*>[^>]+$/)){i=e;const r=(a=o[0])?(i=i.match(/^<([^> ]+).*>/),a=a.match(/^<\/([^>]+)>(.*)/),i&&a&&i[1]===a[1]?[!0,a[2]]:[!1,""]):[!1,""];r[0]?r[1]?(e+=o.shift().slice(0,-r[1].length),r[1].trim()&&o.unshift(r[1])):e+=o.shift():t=1}else if(e.match(/^<\/\w/))0!==n&&--n;else if(e.match(/^<\w[^>]*[^/]>.*$/))t=1;else if(e.match(/^<\w[^>]*\/>.+$/)){const r=e.indexOf(">")+1;e.slice(r).trim()&&o.unshift(),e=e.slice(0,r)}else t=0;r+=new Array(n+1).join(" ")+e+"\r\n",n+=t}}var i,a;return r},e.querySelectorAllByAttr=function(t,e){return t.querySelectorAll?n(t.querySelectorAll(`[${e}]`)):s.evalXPath(`.//*[@${e}]`,t)},e.querySelectorAllByAttrValue=function(t,e,r){return t.querySelectorAll?n(t.querySelectorAll(`[${e}="${r}"]`)):s.evalXPath(`.//*[@${e}="${r}"]`,t)},e.querySelectorAll=function(t,e){return t.querySelectorAll?n(t.querySelectorAll(e)):s.evalXPath(".//"+e,t)},e.tagName=function(t){return t.tagName.toUpperCase()},e.cloneNode=function(t){return t.cloneNode(!0)},e.serializeXml=function(t){return(new a.default.xmldom.XMLSerializer).serializeToString(t)}},5897:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.EnginePromise=e.SREError=void 0;const i=r(1676),s=r(4440),l=r(2057),n=r(1377);class o extends Error{constructor(t=""){super(),this.message=t,this.name="SRE Error"}}e.SREError=o;class a{constructor(){this.customLoader=null,this.parsers={},this.comparator=null,this.mode=s.Mode.SYNC,this.init=!0,this.delay=!1,this.comparators={},this.domain="mathspeak",this.style=i.DynamicCstr.DEFAULT_VALUES[i.Axis.STYLE],this._defaultLocale=i.DynamicCstr.DEFAULT_VALUES[i.Axis.LOCALE],this.locale=this.defaultLocale,this.subiso="",this.modality=i.DynamicCstr.DEFAULT_VALUES[i.Axis.MODALITY],this.speech=s.Speech.NONE,this.markup=s.Markup.NONE,this.walker="Table",this.structure=!1,this.ruleSets=[],this.strict=!1,this.isIE=!1,this.isEdge=!1,this.rate="100",this.pprint=!1,this.config=!1,this.rules="",this.prune="",this.evaluator=a.defaultEvaluator,this.defaultParser=new i.DynamicCstrParser(i.DynamicCstr.DEFAULT_ORDER),this.parser=this.defaultParser,this.dynamicCstr=i.DynamicCstr.defaultCstr()}set defaultLocale(t){this._defaultLocale=n.Variables.ensureLocale(t,this._defaultLocale)}get defaultLocale(){return this._defaultLocale}static getInstance(){return a.instance=a.instance||new a,a.instance}static defaultEvaluator(t,e){return t}static evaluateNode(t){return a.nodeEvaluator(t)}getRate(){var t=parseInt(this.rate,10);return isNaN(t)?100:t}setDynamicCstr(e){if(this.defaultLocale&&(i.DynamicCstr.DEFAULT_VALUES[i.Axis.LOCALE]=this.defaultLocale),e){const r=Object.keys(e);for(let t=0;t{void 0!==r[t]&&(e[t]=r[t])};return t("mode"),e.configurate(r),s.default.BINARY_FEATURES.forEach(t=>{void 0!==r[t]&&(e[t]=!!r[t])}),s.default.STRING_FEATURES.forEach(t),r.json&&(c.default.jsonPath=l.makePath(r.json)),r.xpath&&(c.default.WGXpath=r.xpath),e.setCustomLoader(r.custom),(t=e).isIE=a.detectIE(),t.isEdge=a.detectEdge(),o.setLocale(),e.setDynamicCstr(),e.init?(s.EnginePromise.promises.init=new Promise((t,e)=>{setTimeout(()=>{t("init")},10)}),e.init=!1,s.EnginePromise.get()):e.delay?(e.delay=!1,s.EnginePromise.get()):i.loadLocale()})}},8496:function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Event=e.EventType=e.Move=e.KeyCode=void 0,(r=e.KeyCode||(e.KeyCode={}))[r.ENTER=13]="ENTER",r[r.ESC=27]="ESC",r[r.SPACE=32]="SPACE",r[r.PAGE_UP=33]="PAGE_UP",r[r.PAGE_DOWN=34]="PAGE_DOWN",r[r.END=35]="END",r[r.HOME=36]="HOME",r[r.LEFT=37]="LEFT",r[r.UP=38]="UP",r[r.RIGHT=39]="RIGHT",r[r.DOWN=40]="DOWN",r[r.TAB=9]="TAB",r[r.LESS=188]="LESS",r[r.GREATER=190]="GREATER",r[r.DASH=189]="DASH",r[r.ZERO=48]="ZERO",r[r.ONE=49]="ONE",r[r.TWO=50]="TWO",r[r.THREE=51]="THREE",r[r.FOUR=52]="FOUR",r[r.FIVE=53]="FIVE",r[r.SIX=54]="SIX",r[r.SEVEN=55]="SEVEN",r[r.EIGHT=56]="EIGHT",r[r.NINE=57]="NINE",r[r.A=65]="A",r[r.B=66]="B",r[r.C=67]="C",r[r.D=68]="D",r[r.E=69]="E",r[r.F=70]="F",r[r.G=71]="G",r[r.H=72]="H",r[r.I=73]="I",r[r.J=74]="J",r[r.K=75]="K",r[r.L=76]="L",r[r.M=77]="M",r[r.N=78]="N",r[r.O=79]="O",r[r.P=80]="P",r[r.Q=81]="Q",r[r.R=82]="R",r[r.S=83]="S",r[r.T=84]="T",r[r.U=85]="U",r[r.V=86]="V",r[r.W=87]="W",r[r.X=88]="X",r[r.Y=89]="Y",r[r.Z=90]="Z",e.Move=new Map([[13,"ENTER"],[27,"ESC"],[32,"SPACE"],[33,"PAGE_UP"],[34,"PAGE_DOWN"],[35,"END"],[36,"HOME"],[37,"LEFT"],[38,"UP"],[39,"RIGHT"],[40,"DOWN"],[9,"TAB"],[188,"LESS"],[190,"GREATER"],[189,"DASH"],[48,"ZERO"],[49,"ONE"],[50,"TWO"],[51,"THREE"],[52,"FOUR"],[53,"FIVE"],[54,"SIX"],[55,"SEVEN"],[56,"EIGHT"],[57,"NINE"],[65,"A"],[66,"B"],[67,"C"],[68,"D"],[69,"E"],[70,"F"],[71,"G"],[72,"H"],[73,"I"],[74,"J"],[75,"K"],[76,"L"],[77,"M"],[78,"N"],[79,"O"],[80,"P"],[81,"Q"],[82,"R"],[83,"S"],[84,"T"],[85,"U"],[86,"V"],[87,"W"],[88,"X"],[89,"Y"],[90,"Z"]]),(r=e.EventType||(e.EventType={})).CLICK="click",r.DBLCLICK="dblclick",r.MOUSEDOWN="mousedown",r.MOUSEUP="mouseup",r.MOUSEOVER="mouseover",r.MOUSEOUT="mouseout",r.MOUSEMOVE="mousemove",r.SELECTSTART="selectstart",r.KEYPRESS="keypress",r.KEYDOWN="keydown",r.KEYUP="keyup",r.TOUCHSTART="touchstart",r.TOUCHMOVE="touchmove",r.TOUCHEND="touchend",r.TOUCHCANCEL="touchcancel",e.Event=class{constructor(t,e,r){this.src=t,this.type=e,this.callback=r}add(){this.src.addEventListener(this.type,this.callback)}remove(){this.src.removeEventListener(this.type,this.callback)}}},7248:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.localePath=e.makePath=void 0;const n=r(2315);function o(t){return t.match("/$")?t:t+"/"}e.makePath=o,e.localePath=function(t,e="json"){return o(n.default.jsonPath)+t+(e.match(/^\./)?e:"."+e)}},3769:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.KeyProcessor=e.Processor=void 0;const n=r(8496);class o{constructor(t,e){this.name=t,this.process=e.processor,this.postprocess=e.postprocessor||((t,e)=>t),this.processor=this.postprocess?function(t){return this.postprocess(this.process(t),t)}:this.process,this.print=e.print||o.stringify_,this.pprint=e.pprint||this.print}static stringify_(t){return t&&t.toString()}}(e.Processor=o).LocalState={walker:null,speechGenerator:null,highlighter:null};o;e.KeyProcessor=class i extends o{constructor(t,e){super(t,e),this.key=e.key||i.getKey_}static getKey_(t){return"string"==typeof t?n.KeyCode[t.toUpperCase()]:t}}},6499:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.keypress=e.output=e.print=e.process=e.set=void 0;const s=r(8290),n=r(5714),o=r(3090),i=r(4356),l=r(1414),a=r(9552),c=r(9543),u=r(3362),p=r(1204),h=r(5740),d=r(5897),f=r(4440),m=r(3769),y=r(5274),g=new Map;function b(t){g.set(t.name,t)}function v(t){var e=g.get(t);if(e)return e;throw new d.SREError("Unknown processor "+t)}function _(t,e){const r=v(t);try{return r.processor(e)}catch(t){throw new d.SREError("Processing error for expression "+e)}}function S(t,e){const r=v(t);return d.default.getInstance().pprint?r.pprint(e):r.print(e)}e.set=b,e.process=_,e.print=S,e.output=function(t,e){const r=v(t);try{const t=r.processor(e);return d.default.getInstance().pprint?r.pprint(t):r.print(t)}catch(t){throw new d.SREError("Processing error for expression "+e)}},e.keypress=function(t,e){const r=v(t),n=r instanceof m.KeyProcessor?r.key(e):e,o=r.processor(n);return d.default.getInstance().pprint?r.pprint(o):r.print(o)},b(new m.Processor("semantic",{processor:function(t){t=h.parseInput(t);return l.xmlTree(t)},postprocessor:function(t,e){var r=d.default.getInstance().speech;if(r===f.Speech.NONE)return t;var n=h.cloneNode(t);let o=c.computeMarkup(n);if(r===f.Speech.SHALLOW)return t.setAttribute("speech",s.finalize(o)),t;var i=y.evalXPath(".//*[@id]",t),a=y.evalXPath(".//*[@id]",n);for(let t,e,r=0;t=i[r],e=a[r];r++)o=c.computeMarkup(e),t.setAttribute("speech",s.finalize(o));return t},pprint:function(t){return h.formatXml(t.toString())}})),b(new m.Processor("speech",{processor:function(t){t=h.parseInput(t),t=l.xmlTree(t),t=c.computeSpeech(t);return s.finalize(s.markup(t))},pprint:function(t){t=t.toString();return s.isXml()?h.formatXml(t):t}})),b(new m.Processor("json",{processor:function(t){t=h.parseInput(t);return l.getTree(t).toJson()},postprocessor:function(t,e){var r=d.default.getInstance().speech;if(r===f.Speech.NONE)return t;const n=h.parseInput(e),o=l.xmlTree(n),i=c.computeMarkup(o);if(r===f.Speech.SHALLOW)return t.stree.speech=s.finalize(i),t;const a=t=>{var e=y.evalXPath(`.//*[@id=${t.id}]`,o)[0],e=c.computeMarkup(e);t.speech=s.finalize(e),t.children&&t.children.forEach(a)};return a(t.stree),t},print:function(t){return JSON.stringify(t)},pprint:function(t){return JSON.stringify(t,null,2)}})),b(new m.Processor("description",{processor:function(t){t=h.parseInput(t),t=l.xmlTree(t);return c.computeSpeech(t)},print:function(t){return JSON.stringify(t)},pprint:function(t){return JSON.stringify(t,null,2)}})),b(new m.Processor("enriched",{processor:function(t){return n.semanticMathmlSync(t)},postprocessor:function(t,e){var r=p.getSemanticRoot(t);let n;switch(d.default.getInstance().speech){case f.Speech.NONE:break;case f.Speech.SHALLOW:(n=a.generator("Adhoc")).getSpeech(r,t);break;case f.Speech.DEEP:(n=a.generator("Tree")).getSpeech(t,t)}return t},pprint:function(t){return h.formatXml(t.toString())}})),b(new m.Processor("walker",{processor:function(t){const e=a.generator("Node");(m.Processor.LocalState.speechGenerator=e).setOptions({modality:d.default.getInstance().modality,locale:d.default.getInstance().locale,domain:d.default.getInstance().domain,style:d.default.getInstance().style}),m.Processor.LocalState.highlighter=o.highlighter({color:"black"},{color:"white"},{renderer:"NativeMML"});var t=_("enriched",t),r=S("enriched",t);return m.Processor.LocalState.walker=u.walker(d.default.getInstance().walker,t,e,m.Processor.LocalState.highlighter,r),m.Processor.LocalState.walker},print:function(t){return m.Processor.LocalState.walker.speech()}})),b(new m.KeyProcessor("move",{processor:function(t){return m.Processor.LocalState.walker?!1===m.Processor.LocalState.walker.move(t)?s.error(t):m.Processor.LocalState.walker.speech():null}})),b(new m.Processor("number",{processor:function(t){t=parseInt(t,10);return isNaN(t)?"":i.LOCALE.NUMBERS.numberToWords(t)}})),b(new m.Processor("ordinal",{processor:function(t){t=parseInt(t,10);return isNaN(t)?"":i.LOCALE.NUMBERS.wordOrdinal(t)}})),b(new m.Processor("numericOrdinal",{processor:function(t){t=parseInt(t,10);return isNaN(t)?"":i.LOCALE.NUMBERS.numericOrdinal(t)}})),b(new m.Processor("vulgar",{processor:function(t){var[t,e]=t.split("/").map(t=>parseInt(t,10));return isNaN(t)||isNaN(e)?"":_("speech",`${t}${e}`)}}))},2998:function(t,e,r){var a=this&&this.__awaiter||function(t,a,s,l){return new(s=s||Promise)(function(r,e){function n(t){try{i(l.next(t))}catch(t){e(t)}}function o(t){try{i(l.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,o)}i((l=l.apply(t,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.localePath=e.exit=e.move=e.walk=e.processFile=e.file=e.vulgar=e.numericOrdinal=e.ordinal=e.number=e.toEnriched=e.toDescription=e.toJson=e.toSemantic=e.toSpeech=e.localeLoader=e.engineReady=e.engineSetup=e.setupEngine=e.version=void 0;const s=r(5897),n=r(6828),l=r(4440),o=r(7248),c=r(6499),u=r(2315),i=r(1377),p=r(6141);function h(t){return a(this,void 0,void 0,function*(){return(0,n.setup)(t)})}function d(t,e){return c.process(t,e)}function f(t,e,r){switch(s.default.getInstance().mode){case l.Mode.ASYNC:return function(e,r,n){return a(this,void 0,void 0,function*(){var t=yield u.default.fs.promises.readFile(r,{encoding:"utf8"}),t=c.output(e,t);if(n)try{u.default.fs.promises.writeFile(n,t)}catch(t){throw new s.SREError("Can not write to file: "+n)}return t})}(t,e,r);case l.Mode.SYNC:var n=t,o=r,i=function(t){let e;try{e=u.default.fs.readFileSync(t,{encoding:"utf8"})}catch(e){throw new s.SREError("Can not open file: "+t)}return e}(e),i=c.output(n,i);if(o)try{u.default.fs.writeFileSync(o,i)}catch(n){throw new s.SREError("Can not write to file: "+o)}return i;default:throw new s.SREError(`Can process files in ${s.default.getInstance().mode} mode`)}}e.version=i.Variables.VERSION,e.setupEngine=h,e.engineSetup=function(){const t=["mode"].concat(s.default.STRING_FEATURES,s.default.BINARY_FEATURES),e=s.default.getInstance(),r={};return t.forEach(function(t){r[t]=e[t]}),r.json=u.default.jsonPath,r.xpath=u.default.WGXpath,r.rules=e.ruleSets.slice(),r},e.engineReady=function(){return a(this,void 0,void 0,function*(){return h({}).then(()=>s.EnginePromise.getall())})},e.localeLoader=p.standardLoader,e.toSpeech=function(t){return d("speech",t)},e.toSemantic=function(t){return d("semantic",t)},e.toJson=function(t){return d("json",t)},e.toDescription=function(t){return d("description",t)},e.toEnriched=function(t){return d("enriched",t)},e.number=function(t){return d("number",t)},e.ordinal=function(t){return d("ordinal",t)},e.numericOrdinal=function(t){return d("numericOrdinal",t)},e.vulgar=function(t){return d("vulgar",t)},e.file={},e.file.toSpeech=function(t,e){return f("speech",t,e)},e.file.toSemantic=function(t,e){return f("semantic",t,e)},e.file.toJson=function(t,e){return f("json",t,e)},e.file.toDescription=function(t,e){return f("description",t,e)},e.file.toEnriched=function(t,e){return f("enriched",t,e)},e.processFile=f,e.walk=function(t){return c.output("walker",t)},e.move=function(t){return c.keypress("move",t)},e.exit=function(t){const e=t||0;s.EnginePromise.getall().then(()=>process.exit(e))},e.localePath=o.localePath,u.default.documentSupported?h({mode:l.Mode.HTTP}).then(()=>h({})):h({mode:l.Mode.SYNC}).then(()=>h({mode:l.Mode.ASYNC}))},2315:function(__unused_webpack_module,exports,__webpack_require__){var __dirname="/";Object.defineProperty(exports,"__esModule",{value:!0});const variables_1=__webpack_require__(1377);class SystemExternal{static extRequire(library){if("undefined"==typeof process)return null;{const nodeRequire=eval("require");return nodeRequire(library)}}}exports.default=SystemExternal,SystemExternal.windowSupported=!("undefined"==typeof window),SystemExternal.documentSupported=SystemExternal.windowSupported&&!(void 0===window.document),SystemExternal.xmldom=SystemExternal.documentSupported?window:SystemExternal.extRequire("xmldom-sre"),SystemExternal.document=SystemExternal.documentSupported?window.document:(new SystemExternal.xmldom.DOMImplementation).createDocument("","",0),SystemExternal.xpath=SystemExternal.documentSupported?document:function(){const t={document:{},XPathResult:{}};return SystemExternal.extRequire("wicked-good-xpath").install(t),t.document.XPathResult=t.XPathResult,t.document}(),SystemExternal.mathmapsIePath="https://cdn.jsdelivr.net/npm/sre-mathmaps-ie@"+variables_1.Variables.VERSION+"mathmaps_ie.js",SystemExternal.commander=SystemExternal.documentSupported?null:SystemExternal.extRequire("commander"),SystemExternal.fs=SystemExternal.documentSupported?null:SystemExternal.extRequire("fs"),SystemExternal.url=variables_1.Variables.url,SystemExternal.jsonPath=(SystemExternal.documentSupported?SystemExternal.url:process.env.SRE_JSON_PATH||__webpack_require__.g.SRE_JSON_PATH||__dirname+"/mathmaps")+"/",SystemExternal.WGXpath=variables_1.Variables.WGXpath,SystemExternal.wgxpath=null},1377:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Variables=void 0;class r{static ensureLocale(t,e){return r.LOCALES.get(t)?t:(console.error(`Locale ${t} does not exist! Using ${r.LOCALES.get(e)} instead.`),e)}}(e.Variables=r).VERSION="4.0.6",r.LOCALES=new Map([["ca","Catalan"],["da","Danish"],["de","German"],["en","English"],["es","Spanish"],["fr","French"],["hi","Hindi"],["it","Italian"],["nb","Bokmål"],["nn","Nynorsk"],["sv","Swedish"],["nemeth","Nemeth"]]),r.mathjaxVersion="3.2.1",r.url="https://cdn.jsdelivr.net/npm/speech-rule-engine@"+r.VERSION+"/lib/mathmaps",r.WGXpath="https://cdn.jsdelivr.net/npm/wicked-good-xpath@1.3.0/dist/wgxpath.install.js"},5274:function(t,o,e){Object.defineProperty(o,"__esModule",{value:!0}),o.updateEvaluator=o.evaluateString=o.evaluateBoolean=o.getLeafNodes=o.evalXPath=o.resolveNameSpace=o.xpath=void 0;const n=e(5897),i=e(4440),r=e(2315);function a(){return"undefined"!=typeof XPathResult}o.xpath={currentDocument:null,evaluate:(a()?document:r.default.xpath).evaluate,result:a()?XPathResult:r.default.xpath.XPathResult,createNSResolver:(a()?document:r.default.xpath).createNSResolver};const s={xhtml:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",mml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function l(t){return s[t]||null}o.resolveNameSpace=l;class c{constructor(){this.lookupNamespaceURI=l}}function u(t,e,r){return n.default.getInstance().mode!==i.Mode.HTTP||n.default.getInstance().isIE||n.default.getInstance().isEdge?o.xpath.evaluate(t,e,new c,r,null):o.xpath.currentDocument.evaluate(t,e,l,r,null)}function p(t,e){let r;try{r=u(t,e,o.xpath.result.ORDERED_NODE_ITERATOR_TYPE)}catch(t){return[]}const n=[];for(let t=r.iterateNext();t;t=r.iterateNext())n.push(t);return n}o.evalXPath=p,o.getLeafNodes=function(t){return p(".//*[count(*)=0]",t)},o.evaluateBoolean=function(t,e){let r;try{r=u(t,e,o.xpath.result.BOOLEAN_TYPE)}catch(t){return!1}return r.booleanValue},o.evaluateString=function(t,e){let r;try{r=u(t,e,o.xpath.result.STRING_TYPE)}catch(t){return""}return r.stringValue},o.updateEvaluator=function(e){if(n.default.getInstance().mode===i.Mode.HTTP){let t=e;for(;t&&!t.evaluate;)t=t.parentNode;t&&t.evaluate?o.xpath.currentDocument=t:e.ownerDocument&&(o.xpath.currentDocument=e.ownerDocument)}}},9268:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEnrichCase=void 0,e.AbstractEnrichCase=class{constructor(t){this.semantic=t}}},6061:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseBinomial=void 0;const n=r(5740),o=r(9268),i=r(5452),a=r(2298);class s extends o.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){return!t.mathmlTree&&"line"===t.type&&"binomial"===t.role}getMathml(){if(!this.semantic.childNodes.length)return this.mml;const t=this.semantic.childNodes[0];if(this.mml=(0,i.walkTree)(t),this.mml.hasAttribute(a.Attribute.TYPE)){const t=n.createElement("mrow");t.setAttribute(a.Attribute.ADDED,"true"),n.replaceNode(this.mml,t),t.appendChild(this.mml),this.mml=t}return(0,a.setAttributes)(this.mml,this.semantic),this.mml}}e.CaseBinomial=s},5765:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseDoubleScript=void 0;const n=r(5740),o=r(9268),s=r(5452),l=r(2298);class i extends o.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){if(!t.mathmlTree||!t.childNodes.length)return!1;var e=n.tagName(t.mathmlTree),t=t.childNodes[0].role;return"MSUBSUP"===e&&"subsup"===t||"MUNDEROVER"===e&&"underover"===t}getMathml(){const t=this.semantic.childNodes[0],e=t.childNodes[0],r=this.semantic.childNodes[1],n=t.childNodes[1],o=s.walkTree(r),i=s.walkTree(e),a=s.walkTree(n);return(0,l.setAttributes)(this.mml,this.semantic),this.mml.setAttribute(l.Attribute.CHILDREN,(0,l.makeIdList)([e,n,r])),[i,a,o].forEach(t=>s.getInnerNode(t).setAttribute(l.Attribute.PARENT,this.mml.getAttribute(l.Attribute.ID))),this.mml.setAttribute(l.Attribute.TYPE,t.role),s.addCollapsedAttribute(this.mml,[this.semantic.id,[t.id,e.id,n.id],r.id]),this.mml}}e.CaseDoubleScript=i},7251:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseEmbellished=void 0;const a=r(5740),n=r(5952),o=r(9268),s=r(5765),l=r(7014),c=r(6887),u=r(5452),p=r(2298);class h extends o.AbstractEnrichCase{constructor(t){super(t),this.fenced=null,this.fencedMml=null,this.fencedMmlNodes=[],this.ofence=null,this.ofenceMml=null,this.ofenceMap={},this.cfence=null,this.cfenceMml=null,this.cfenceMap={},this.parentCleanup=[]}static test(t){return!(!t.mathmlTree||!t.fencePointer||t.mathmlTree.getAttribute("data-semantic-type"))}static makeEmptyNode_(t){const e=a.createElement("mrow"),r=new n.SemanticNode(t);return r.type="empty",r.mathmlTree=e,r}static fencedMap_(t,e){e[t.id]=t.mathmlTree,t.embellished&&h.fencedMap_(t.childNodes[0],e)}getMathml(){return this.getFenced_(),this.fencedMml=u.walkTree(this.fenced),this.getFencesMml_(),"empty"!==this.fenced.type||this.fencedMml.parentNode||(this.fencedMml.setAttribute(p.Attribute.ADDED,"true"),this.cfenceMml.parentNode.insertBefore(this.fencedMml,this.cfenceMml)),this.getFencedMml_(),this.rewrite_()}fencedElement(t){return"fenced"===t.type||"matrix"===t.type||"vector"===t.type}getFenced_(){let t=this.semantic;for(;!this.fencedElement(t);)t=t.childNodes[0];this.fenced=t.childNodes[0],this.ofence=t.contentNodes[0],this.cfence=t.contentNodes[1],h.fencedMap_(this.ofence,this.ofenceMap),h.fencedMap_(this.cfence,this.cfenceMap)}getFencedMml_(){let t=this.ofenceMml.nextSibling;for(t=t===this.fencedMml?t:this.fencedMml;t&&t!==this.cfenceMml;)this.fencedMmlNodes.push(t),t=t.nextSibling}getFencesMml_(){let t=this.semantic;const e=Object.keys(this.ofenceMap),r=Object.keys(this.cfenceMap);for(;!(this.ofenceMml&&this.cfenceMml||t===this.fenced);)-1===e.indexOf(t.fencePointer)||this.ofenceMml||(this.ofenceMml=t.mathmlTree),-1===r.indexOf(t.fencePointer)||this.cfenceMml||(this.cfenceMml=t.mathmlTree),t=t.childNodes[0];this.ofenceMml||(this.ofenceMml=this.ofence.mathmlTree),this.cfenceMml||(this.cfenceMml=this.cfence.mathmlTree),this.ofenceMml&&(this.ofenceMml=u.ascendNewNode(this.ofenceMml)),this.cfenceMml&&(this.cfenceMml=u.ascendNewNode(this.cfenceMml))}rewrite_(){let r=this.semantic,n=null;var t=this.introduceNewLayer_();for((0,p.setAttributes)(t,this.fenced.parent);!this.fencedElement(r);){var e=r.mathmlTree,o=this.specialCase_(r,e);if(o)r=o;else{(0,p.setAttributes)(e,r);const n=[];for(let t,e=1;t=r.childNodes[e];e++)n.push(u.walkTree(t));r=r.childNodes[0]}var o=a.createElement("dummy"),i=e.childNodes[0];a.replaceNode(e,o),a.replaceNode(t,e),a.replaceNode(e.childNodes[0],t),a.replaceNode(o,i),n=n||e}return u.walkTree(this.ofence),u.walkTree(this.cfence),this.cleanupParents_(),n||t}specialCase_(t,e){var r=a.tagName(e);let n,o=null;if("MSUBSUP"===r?(o=t.childNodes[0],n=s.CaseDoubleScript):"MMULTISCRIPTS"===r&&("superscript"===t.type||"subscript"===t.type?n=l.CaseMultiscripts:"tensor"===t.type&&(n=c.CaseTensor),o=n&&t.childNodes[0]&&"subsup"===t.childNodes[0].role?t.childNodes[0]:t),!o)return null;var r=o.childNodes[0],i=h.makeEmptyNode_(r.id);return o.childNodes[0]=i,e=new n(t).getMathml(),o.childNodes[0]=r,this.parentCleanup.push(e),o.childNodes[0]}introduceNewLayer_(){const t=this.fullFence(this.ofenceMml),e=this.fullFence(this.cfenceMml);let r=a.createElement("mrow");if(a.replaceNode(this.fencedMml,r),this.fencedMmlNodes.forEach(t=>r.appendChild(t)),r.insertBefore(t,this.fencedMml),r.appendChild(e),!r.parentNode){const t=a.createElement("mrow");for(;0{for(let e,t=0;e=r[t];t++){const r=n[o];if(r&&e===parseInt(a.getInnerNode(r).getAttribute(s.Attribute.ID)))a.getInnerNode(r).setAttribute(s.Attribute.PARENT,this.semantic.id.toString()),o++;else{const n=this.semantic.querySelectorAll(t=>t.id===e);this.mml.insertBefore(l.createNone_(n[0]),r||null)}}};r(t),n[o]&&"MPRESCRIPTS"!==i.tagName(n[o])?this.mml.insertBefore(n[o],i.createElement("mprescripts")):o++,r(e)}}e.CaseMultiindex=l},7014:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseMultiscripts=void 0;const n=r(5740),i=r(5656),a=r(6839),s=r(5452),l=r(2298);class o extends a.CaseMultiindex{static test(t){return!!t.mathmlTree&&("MMULTISCRIPTS"===n.tagName(t.mathmlTree)&&("superscript"===t.type||"subscript"===t.type))}constructor(t){super(t)}getMathml(){let t,e,r;if((0,l.setAttributes)(this.mml,this.semantic),this.semantic.childNodes[0]&&"subsup"===this.semantic.childNodes[0].role){const n=this.semantic.childNodes[0],o=(t=n.childNodes[0],e=a.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]),r=a.CaseMultiindex.multiscriptIndex(n.childNodes[1]),[this.semantic.id,[n.id,t.id,r],e]);s.addCollapsedAttribute(this.mml,o),this.mml.setAttribute(l.Attribute.TYPE,n.role),this.completeMultiscript(i.SemanticSkeleton.interleaveIds(r,e),[])}else{t=this.semantic.childNodes[0],e=a.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]);const r=[this.semantic.id,t.id,e];s.addCollapsedAttribute(this.mml,r)}const n=i.SemanticSkeleton.collapsedLeafs(r||[],e),o=s.walkTree(t);return s.getInnerNode(o).setAttribute(l.Attribute.PARENT,this.semantic.id.toString()),n.unshift(t.id),this.mml.setAttribute(l.Attribute.CHILDREN,n.join(",")),this.mml}}e.CaseMultiscripts=o},3416:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseProof=void 0;const n=r(9268),o=r(5452),i=r(2298);class a extends n.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){return!!t.mathmlTree&&("inference"===t.type||"premises"===t.type)}getMathml(){return this.semantic.childNodes.length&&(this.semantic.contentNodes.forEach(function(t){o.walkTree(t),(0,i.setAttributes)(t.mathmlTree,t)}),this.semantic.childNodes.forEach(function(t){o.walkTree(t)}),(0,i.setAttributes)(this.mml,this.semantic),this.mml.getAttribute("data-semantic-id")===this.mml.getAttribute("data-semantic-parent")&&this.mml.removeAttribute("data-semantic-parent")),this.mml}}e.CaseProof=a},5699:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseTable=void 0;const o=r(5740),n=r(9268),i=r(5452),a=r(2298);class s extends n.AbstractEnrichCase{constructor(t){super(t),this.inner=[],this.mml=t.mathmlTree}static test(t){return"matrix"===t.type||"vector"===t.type||"cases"===t.type}getMathml(){const t=i.cloneContentNode(this.semantic.contentNodes[0]),e=this.semantic.contentNodes[1]?i.cloneContentNode(this.semantic.contentNodes[1]):null;if(this.inner=this.semantic.childNodes.map(i.walkTree),this.mml)if("MFENCED"===o.tagName(this.mml)){var r=this.mml.childNodes;this.mml.insertBefore(t,r[0]||null),e&&this.mml.appendChild(e),this.mml=i.rewriteMfenced(this.mml)}else{const n=[t,this.mml];e&&n.push(e),this.mml=i.introduceNewLayer(n,this.semantic)}else this.mml=i.introduceNewLayer([t].concat(this.inner,[e]),this.semantic);return(0,a.setAttributes)(this.mml,this.semantic),this.mml}}e.CaseTable=s},6887:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseTensor=void 0;const a=r(5656),s=r(6839),l=r(5452),c=r(2298);class n extends s.CaseMultiindex{static test(t){return!!t.mathmlTree&&"tensor"===t.type}constructor(t){super(t)}getMathml(){l.walkTree(this.semantic.childNodes[0]);var t=s.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]),e=s.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[2]),r=s.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[3]),n=s.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[4]),o=((0,c.setAttributes)(this.mml,this.semantic),[this.semantic.id,this.semantic.childNodes[0].id,t,e,r,n]);l.addCollapsedAttribute(this.mml,o);const i=a.SemanticSkeleton.collapsedLeafs(t,e,r,n);return i.unshift(this.semantic.childNodes[0].id),this.mml.setAttribute(c.Attribute.CHILDREN,i.join(",")),this.completeMultiscript(a.SemanticSkeleton.interleaveIds(r,n),a.SemanticSkeleton.interleaveIds(t,e)),this.mml}}e.CaseTensor=n},9236:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseText=void 0;const n=r(9268),o=r(5452),i=r(2298);class a extends n.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){return"punctuated"===t.type&&("text"===t.role||t.contentNodes.every(t=>"dummy"===t.role))}getMathml(){var t=[],e=o.collapsePunctuated(this.semantic,t);return this.mml=o.introduceNewLayer(t,this.semantic),(0,i.setAttributes)(this.mml,this.semantic),this.mml.removeAttribute(i.Attribute.CONTENT),o.addCollapsedAttribute(this.mml,e),this.mml}}e.CaseText=a},5714:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.prepareMmlString=e.testTranslation__=e.semanticMathml=e.semanticMathmlSync=e.semanticMathmlNode=void 0;const n=r(2057),o=r(5740),i=r(5897),a=r(1414),s=r(5452),l=r(2298);function c(t){var t=o.cloneNode(t),e=a.getTree(t);return s.enrich(t,e)}function u(t){return c(o.parseInput(t))}function p(t){return(t=t.match(/^"+t).match(/\/math>$/)||(t+=""),t}r(1513),e.semanticMathmlNode=c,e.semanticMathmlSync=u,e.semanticMathml=function(e,r){i.EnginePromise.getall().then(()=>{var t=o.parseInput(e);r(c(t))})},e.testTranslation__=function(t){n.Debugger.getInstance().init();t=u(p(t)).toString();return(0,l.removeAttributePrefix)(t),n.Debugger.getInstance().exit(),t},e.prepareMmlString=p},2298:function(t,o){var i,e;function a(t){return t.map(function(t){return t.id}).join(",")}function s(t,e){const r=[];"mglyph"===e.role&&r.push("image"),e.attributes.href&&r.push("link"),r.length&&t.setAttribute(i.POSTFIX,r.join(" "))}Object.defineProperty(o,"__esModule",{value:!0}),o.addPrefix=o.removeAttributePrefix=o.setPostfix=o.setAttributes=o.makeIdList=o.EnrichAttributes=o.Attribute=o.Prefix=void 0,o.Prefix="data-semantic-",(e=i=o.Attribute||(o.Attribute={})).ADDED="data-semantic-added",e.ALTERNATIVE="data-semantic-alternative",e.CHILDREN="data-semantic-children",e.COLLAPSED="data-semantic-collapsed",e.CONTENT="data-semantic-content",e.EMBELLISHED="data-semantic-embellished",e.FENCEPOINTER="data-semantic-fencepointer",e.FONT="data-semantic-font",e.ID="data-semantic-id",e.ANNOTATION="data-semantic-annotation",e.OPERATOR="data-semantic-operator",e.OWNS="data-semantic-owns",e.PARENT="data-semantic-parent",e.POSTFIX="data-semantic-postfix",e.PREFIX="data-semantic-prefix",e.ROLE="data-semantic-role",e.SPEECH="data-semantic-speech",e.STRUCTURE="data-semantic-structure",e.TYPE="data-semantic-type",o.EnrichAttributes=[i.ADDED,i.ALTERNATIVE,i.CHILDREN,i.COLLAPSED,i.CONTENT,i.EMBELLISHED,i.FENCEPOINTER,i.FONT,i.ID,i.ANNOTATION,i.OPERATOR,i.OWNS,i.PARENT,i.POSTFIX,i.PREFIX,i.ROLE,i.SPEECH,i.STRUCTURE,i.TYPE],o.makeIdList=a,o.setAttributes=function(r,t){r.setAttribute(i.TYPE,t.type);var n=t.allAttributes();for(let t,e=0;t=n[e];e++)r.setAttribute(o.Prefix+t[0].toLowerCase(),t[1]);t.childNodes.length&&r.setAttribute(i.CHILDREN,a(t.childNodes)),t.contentNodes.length&&r.setAttribute(i.CONTENT,a(t.contentNodes)),t.parent&&r.setAttribute(i.PARENT,t.parent.id.toString()),s(r,t)},o.setPostfix=s,o.removeAttributePrefix=function(t){return t.toString().replace(new RegExp(o.Prefix,"g"),"")},o.addPrefix=function(t){return o.Prefix+t}},3532:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.factory=n.getCase=void 0,n.getCase=function(r){for(let t,e=0;t=n.factory[e];e++)if(t.test(r))return t.constr(r);return null},n.factory=[]},1513:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0});const n=r(6061),o=r(5765),i=r(7251),a=r(6265),s=r(6514),l=r(7014),c=r(3416),u=r(5699),p=r(6887),h=r(9236);r(3532).factory.push({test:a.CaseLimit.test,constr:t=>new a.CaseLimit(t)},{test:i.CaseEmbellished.test,constr:t=>new i.CaseEmbellished(t)},{test:o.CaseDoubleScript.test,constr:t=>new o.CaseDoubleScript(t)},{test:p.CaseTensor.test,constr:t=>new p.CaseTensor(t)},{test:l.CaseMultiscripts.test,constr:t=>new l.CaseMultiscripts(t)},{test:s.CaseLine.test,constr:t=>new s.CaseLine(t)},{test:n.CaseBinomial.test,constr:t=>new n.CaseBinomial(t)},{test:c.CaseProof.test,constr:t=>new c.CaseProof(t)},{test:u.CaseTable.test,constr:t=>new u.CaseTable(t)},{test:h.CaseText.test,constr:t=>new h.CaseText(t)})},5452:function(j,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.printNodeList__=r.collapsePunctuated=r.formattedOutput_=r.formattedOutput=r.getInnerNode=r.setOperatorAttribute_=r.createInvisibleOperator_=r.rewriteMfenced=r.cloneContentNode=r.addCollapsedAttribute=r.parentNode_=r.isIgnorable_=r.unitChild_=r.descendNode_=r.ascendNewNode=r.validLca_=r.pathToRoot_=r.attachedElement_=r.prunePath_=r.mathmlLca_=r.lcaType=r.functionApplication_=r.isDescendant_=r.insertNewChild_=r.mergeChildren_=r.collectChildNodes_=r.collateChildNodes_=r.childrenSubset_=r.moveSemanticAttributes_=r.introduceLayerAboveLca=r.introduceNewLayer=r.walkTree=r.enrich=r.SETTINGS=void 0;const i=t(2057),l=t(5740),B=t(5897),D=t(3588),F=t(7516),a=t(5656),s=t(4795),c=t(2298),H=t(3532);function u(t){const e=(0,H.getCase)(t);let r;if(e)return A(r=e.getMathml());if(1===t.mathml.length)return i.Debugger.getInstance().output("Walktree Case 0"),r=t.mathml[0],c.setAttributes(r,t),t.childNodes.length&&(i.Debugger.getInstance().output("Walktree Case 0.1"),t.childNodes.forEach(function(t){"empty"===t.type&&r.appendChild(u(t))})),A(r);var n=t.contentNodes.map(w),o=(I(t,n),t.childNodes.map(u)),n=a.SemanticSkeleton.combineContentChildren(t,n,o);if(null===(r=t.mathmlTree))i.Debugger.getInstance().output("Walktree Case 1"),r=p(n,t);else{const t=M(n);i.Debugger.getInstance().output("Walktree Case 2"),r=t?(i.Debugger.getInstance().output("Walktree Case 2.1"),t.parentNode):(i.Debugger.getInstance().output("Walktree Case 2.2"),P(r))}return y(r=L(r),n,t),c.setAttributes(r,t),A(r)}function p(t,e){const r=S(t);let n=r.node;var o=r.type;if(o!==_.VALID||!s.hasEmptyTag(n))if(i.Debugger.getInstance().output("Walktree Case 1.1"),n=l.createElement("mrow"),o===_.PRUNED)i.Debugger.getInstance().output("Walktree Case 1.1.0"),n=h(n,r.node,t);else if(t[0]){i.Debugger.getInstance().output("Walktree Case 1.1.1");const e=M(t),r=d(e.parentNode,t);l.replaceNode(e,n),r.forEach(function(t){n.appendChild(t)})}return e.mathmlTree||(e.mathmlTree=n),n}function h(e,t,r){let n=C(t);if(s.hasMathTag(n)){i.Debugger.getInstance().output("Walktree Case 1.1.0.0"),o(n,e),l.toArray(n.childNodes).forEach(function(t){e.appendChild(t)});const t=e;e=n,n=t}t=r.indexOf(t);return r[t]=n,l.replaceNode(n,e),e.appendChild(n),r.forEach(function(t){e.appendChild(t)}),e}function o(t,e){for(const r of c.EnrichAttributes)t.hasAttribute(r)&&(e.setAttribute(r,t.getAttribute(r)),t.removeAttribute(r))}function d(t,e){const r=l.toArray(t.childNodes);let n=1/0,o=-1/0;return e.forEach(function(t){t=r.indexOf(t);-1!==t&&(n=Math.min(n,t),o=Math.max(o,t))}),r.slice(n,o+1)}function f(t,e,r){const n=[];let o=l.toArray(t.childNodes),i=!1;for(;o.length;){const t=o.shift();if(t.hasAttribute(c.Attribute.TYPE))n.push(t);else{const e=m(t);0!==e.length&&(1!==e.length?(i?t.setAttribute("AuxiliaryImplicit",!0):i=!0,o=e.concat(o)):n.push(t))}}const a=[],s=r.childNodes.map(function(t){return t.mathmlTree});for(;s.length;){const t=s.pop();if(t){if(-1!==n.indexOf(t))break;-1!==e.indexOf(t)&&a.unshift(t)}}return n.concat(a)}function m(t){const e=[];let r=l.toArray(t.childNodes);for(;r.length;){const t=r.shift();t.nodeType===l.NodeType.ELEMENT_NODE&&(t.hasAttribute(c.Attribute.TYPE)?e.push(t):r=l.toArray(t.childNodes).concat(r))}return e}function y(e,r,n){var o="implicit"===n.role&&F.flags.combine_juxtaposition?f(e,r,n):l.toArray(e.childNodes);if(o.length){let t=0;for(;r.length;){const n=r[0];o[t]===n||v(o[t],n)?(r.shift(),t++):o[t]&&-1===r.indexOf(o[t])?t++:(b(n,e)||g(e,o[t],n),r.shift())}}else r.forEach(function(t){e.appendChild(t)})}function g(r,n,o){if(n){let t=n,e=N(t);for(;e&&e.firstChild===t&&!t.hasAttribute("AuxiliaryImplicit")&&e!==r;)e=N(t=e);e&&(e.insertBefore(o,t),t.removeAttribute("AuxiliaryImplicit"))}else r.insertBefore(o,null)}function b(t,e){if(!t)return!1;do{if((t=t.parentNode)===e)return!0}while(t);return!1}function v(r,n){var t=D.functionApplication();if(r&&n&&r.textContent&&n.textContent&&r.textContent===t&&n.textContent===t&&"true"===n.getAttribute(c.Attribute.ADDED)){for(let t,e=0;t=r.attributes[e];e++)n.hasAttribute(t.nodeName)||n.setAttribute(t.nodeName,t.nodeValue);return l.replaceNode(r,n),!0}return!1}var _;function S(t){var e=M(t);if(!e)return{type:_.INVALID,node:null};var r=M(t.slice().reverse());if(e===r)return{type:_.VALID,node:e};const n=x(e),o=O(n,t),i=x(r,function(t){return-1!==o.indexOf(t)}),a=i[0],s=o.indexOf(a);return-1===s?{type:_.INVALID,node:null}:{type:o.length!==n.length?_.PRUNED:E(o[s+1],i[1])?_.VALID:_.INVALID,node:a}}function O(t,e){let r=0;for(;t[r]&&-1===e.indexOf(t[r]);)r++;return t.slice(0,r+1)}function M(t){let e=0,r=null;for(;!r&&e!1),n=[t];for(;!r(t)&&!s.hasMathTag(t)&&t.parentNode;)t=N(t),n.unshift(t);return n}function E(t,e){return!(!t||!e||t.previousSibling||e.nextSibling)}function A(t){for(;!s.hasMathTag(t)&&e(t);)t=N(t);return t}function C(t){const e=l.toArray(t.childNodes);if(!e)return t;const r=e.filter(function(t){return t.nodeType===l.NodeType.ELEMENT_NODE&&!s.hasIgnoreTag(t)});return 1===r.length&&s.hasEmptyTag(r[0])&&!r[0].hasAttribute(c.Attribute.TYPE)?C(r[0]):t}function e(e){var t=N(e);return!(!t||!s.hasEmptyTag(t))&&l.toArray(t.childNodes).every(function(t){return t===e||T(t)})}function T(t){if(t.nodeType!==l.NodeType.ELEMENT_NODE)return!0;if(!t||s.hasIgnoreTag(t))return!0;var e=l.toArray(t.childNodes);return!(!s.hasEmptyTag(t)&&e.length||s.hasDisplayTag(t)||t.hasAttribute(c.Attribute.TYPE)||s.isOrphanedGlyph(t))&&l.toArray(t.childNodes).every(T)}function N(t){return t.parentNode}function w(t){if(t.mathml.length)return u(t);var e=r.SETTINGS.implicit?n(t):l.createElement("mrow");return t.mathml=[e],e}function L(r){if("MFENCED"!==l.tagName(r))return r;const n=l.createElement("mrow");for(let t,e=0;t=r.attributes[e];e++)-1===["open","close","separators"].indexOf(t.name)&&n.setAttribute(t.name,t.value);return l.toArray(r.childNodes).forEach(function(t){n.appendChild(t)}),l.replaceNode(r,n),n}function n(t){const e=l.createElement("mo"),r=l.createTextNode(t.textContent);return e.appendChild(r),c.setAttributes(e,t),e.setAttribute(c.Attribute.ADDED,"true"),e}function I(t,e){const r=t.type+(t.textContent?","+t.textContent:"");e.forEach(function(t){P(t).setAttribute(c.Attribute.OPERATOR,r)})}function P(t){const r=l.toArray(t.childNodes);if(!r)return t;const n=r.filter(function(t){return!T(t)}),o=[];for(let t,e=0;t=n[e];e++)if(s.hasEmptyTag(t)){const r=P(t);r&&r!==t&&o.push(r)}else o.push(t);return 1===o.length?o[0]:t}function R(t,e,r,n){n=n||!1;k(t,"Original MathML",n),k(r,"Semantic Tree",n),k(e,"Semantically enriched MathML",n)}function k(t,e,r){t=l.formatXml(t.toString());r?console.info(e+":\n```html\n"+c.removeAttributePrefix(t)+"\n```\n"):console.info(t)}r.SETTINGS={collapsed:!0,implicit:!0},r.enrich=function(t,e){const r=l.cloneNode(t);return u(e.root),B.default.getInstance().structure&&t.setAttribute(c.Attribute.STRUCTURE,a.SemanticSkeleton.fromStructure(t,e).toString()),i.Debugger.getInstance().generateOutput(function(){return R(r,t,e,!0),[]}),t},r.walkTree=u,r.introduceNewLayer=p,r.introduceLayerAboveLca=h,r.moveSemanticAttributes_=o,r.childrenSubset_=d,r.collateChildNodes_=f,r.collectChildNodes_=m,r.mergeChildren_=y,r.insertNewChild_=g,r.isDescendant_=b,r.functionApplication_=v,(t=_=r.lcaType||(r.lcaType={})).VALID="valid",t.INVALID="invalid",t.PRUNED="pruned",r.mathmlLca_=S,r.prunePath_=O,r.attachedElement_=M,r.pathToRoot_=x,r.validLca_=E,r.ascendNewNode=A,r.descendNode_=C,r.unitChild_=e,r.isIgnorable_=T,r.parentNode_=N,r.addCollapsedAttribute=function(t,e){const r=new a.SemanticSkeleton(e);t.setAttribute(c.Attribute.COLLAPSED,r.toString())},r.cloneContentNode=w,r.rewriteMfenced=L,r.createInvisibleOperator_=n,r.setOperatorAttribute_=I,r.getInnerNode=P,r.formattedOutput=R,r.formattedOutput_=k,r.collapsePunctuated=function(r,t){const n=!!t,o=t||[],i=r.parent,a=r.contentNodes.map(function(t){return t.id}),s=(a.unshift("c"),[r.id,a]);for(let t,e=0;t=r.childNodes[e];e++){const r=u(t),a=(o.push(r),P(r));i&&!n&&a.setAttribute(c.Attribute.PARENT,i.id.toString()),s.push(t.id)}return s},r.printNodeList__=function(t,e){console.info(t),l.toArray(e).forEach(function(t){console.info(t.toString())}),console.info("<<<<<<<<<<<<<<<<<")}},5105:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractHighlighter=void 0;const n=r(5274),o=r(2298);class i{constructor(){this.color=null,this.mactionName="",this.currentHighlights=[]}highlight(t){this.currentHighlights.push(t.map(t=>{var e=this.highlightNode(t);return this.setHighlighted(t),e}))}highlightAll(t){var r=this.getMactionNodes(t);for(let t,e=0;t=r[e];e++)this.highlight([t])}unhighlight(){const t=this.currentHighlights.pop();t&&t.forEach(t=>{this.isHighlighted(t.node)&&(this.unhighlightNode(t),this.unsetHighlighted(t.node))})}unhighlightAll(){for(;0this.colorize(t))}uncolorizeAll(t){n.evalXPath(`.//*[@${o.Attribute.ID}]`,t).forEach(t=>this.uncolorize(t))}colorize(t){var e=(0,o.addPrefix)("foreground");t.hasAttribute(e)&&(t.setAttribute(e+"-old",t.style.color),t.style.color=t.getAttribute(e))}uncolorize(t){var e=(0,o.addPrefix)("foreground")+"-old";t.hasAttribute(e)&&(t.style.color=t.getAttribute(e))}}(e.AbstractHighlighter=i).ATTR="sre-highlight"},6937:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlHighlighter=void 0;class n extends r(933).CssHighlighter{constructor(){super()}isMactionNode(t){return t.tagName.toUpperCase()===this.mactionName.toUpperCase()}getMactionNodes(t){return Array.from(t.getElementsByTagName(this.mactionName))}}e.ChtmlHighlighter=n},8396:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContrastPicker=e.ColorPicker=void 0;const n={red:{red:255,green:0,blue:0},green:{red:0,green:255,blue:0},blue:{red:0,green:0,blue:255},yellow:{red:255,green:255,blue:0},cyan:{red:0,green:255,blue:255},magenta:{red:255,green:0,blue:255},white:{red:255,green:255,blue:255},black:{red:0,green:0,blue:0}};function r(t,e){var t=t||{color:e};let r=Object.prototype.hasOwnProperty.call(t,"color")?n[t.color]:t;return(r=r||n[e]).alpha=Object.prototype.hasOwnProperty.call(t,"alpha")?t.alpha:1,e=r,t=t=>(t=Math.max(t,0),t=Math.min(255,t),Math.round(t)),e.red=t(e.red),e.green=t(e.green),e.blue=t(e.blue),e.alpha=Math.max(e.alpha,0),e.alpha=Math.min(1,e.alpha),e}class o{constructor(t,e){this.foreground=r(e,o.DEFAULT_FOREGROUND_),this.background=r(t,o.DEFAULT_BACKGROUND_)}static toHex(t){t=t.toString(16);return 1===t.length?"0"+t:t}rgba(){function t(t){return"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")"}return{background:t(this.background),foreground:t(this.foreground)}}rgb(){function t(t){return"rgb("+t.red+","+t.green+","+t.blue+")"}return{background:t(this.background),alphaback:this.background.alpha.toString(),foreground:t(this.foreground),alphafore:this.foreground.alpha.toString()}}hex(){function t(t){return"#"+o.toHex(t.red)+o.toHex(t.green)+o.toHex(t.blue)}return{background:t(this.background),alphaback:this.background.alpha.toString(),foreground:t(this.foreground),alphafore:this.foreground.alpha.toString()}}}(e.ColorPicker=o).DEFAULT_BACKGROUND_="blue",o.DEFAULT_FOREGROUND_="black",e.ContrastPicker=class{constructor(){this.hue=10,this.sat=100,this.light=50,this.incr=50}generate(){return t=function(t,e,r){e=1 "+this.getRule().action:this.constraint}}},4508:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.Trie=void 0;const a=r(4391),i=r(9701);class s{constructor(){this.root=(0,i.getNode)(a.TrieNodeKind.ROOT,"",null)}static collectRules_(t){const e=[];let r=[t];for(;r.length;){const t=r.shift();if(t.getKind()===a.TrieNodeKind.QUERY||t.getKind()===a.TrieNodeKind.BOOLEAN){const r=t.getRule();r&&e.unshift(r)}r=r.concat(t.getChildren())}return e}static printWithDepth_(t,r,n){n+=new Array(r+2).join(r.toString())+": "+t.toString()+"\n";var o=t.getChildren();for(let t,e=0;t=o[e];e++)n=s.printWithDepth_(t,r+1,n);return n}static order_(t){const e=t.getChildren();if(!e.length)return 0;t=Math.max.apply(null,e.map(s.order_));return Math.max(e.length,t)}addRule(t){let r=this.root;var n=t.context,o=t.dynamicCstr.getValues();for(let t=0,e=o.length;t{t.getKind()===a.TrieNodeKind.DYNAMIC&&-1===e.indexOf(t.getConstraint())||n.push(t)});r=n.slice()}for(;r.length;){const t=r.shift();if(t.getRule){const e=t.getRule();e&&n.push(e)}const a=t.findChildren(e);r=r.concat(a)}return n}hasSubtrie(r){let n=this.root;for(let t=0,e=r.length;t!0),this.kind=i.TrieNodeKind.ROOT}}e.RootTrieNode=a;class s extends n.AbstractTrieNode{constructor(e){super(e,t=>t===e),this.kind=i.TrieNodeKind.DYNAMIC}}e.DynamicTrieNode=s;const _={"=":(t,e)=>t===e,"!=":(t,e)=>t!==e,"<":(t,e)=>t":(t,e)=>et<=e,">=":(t,e)=>e<=t};function l(t){if(t.match(/^self::\*$/))return t=>!0;if(t.match(/^self::\w+$/)){const e=t.slice(6).toUpperCase();return t=>t.tagName&&y.tagName(t)===e}if(t.match(/^self::\w+:\w+$/)){const r=t.split(":"),n=g.resolveNameSpace(r[2]);if(!n)return null;const y=r[3].toUpperCase();return t=>t.localName&&t.localName.toUpperCase()===y&&t.namespaceURI===n}if(t.match(/^@\w+$/)){const o=t.slice(1);return t=>t.hasAttribute&&t.hasAttribute(o)}if(t.match(/^@\w+="[\w\d ]+"$/)){const i=t.split("="),a=i[0].slice(1),y=i[1].slice(1,-1);return t=>t.hasAttribute&&t.hasAttribute(a)&&t.getAttribute(a)===y}if(t.match(/^@\w+!="[\w\d ]+"$/)){const s=t.split("!="),l=s[0].slice(1),y=s[1].slice(1,-1);return t=>!t.hasAttribute||!t.hasAttribute(l)||t.getAttribute(l)!==y}if(t.match(/^contains\(\s*@grammar\s*,\s*"[\w\d ]+"\s*\)$/)){const c=t.split('"')[1];return t=>!!b.Grammar.getInstance().getParameter(c)}if(t.match(/^not\(\s*contains\(\s*@grammar\s*,\s*"[\w\d ]+"\s*\)\s*\)$/)){const u=t.split('"')[1];return t=>!b.Grammar.getInstance().getParameter(u)}if(t.match(/^name\(\.\.\/\.\.\)="\w+"$/)){const p=t.split('"')[1].toUpperCase();return t=>{var e;return(null==(e=null==(e=t.parentNode)?void 0:e.parentNode)?void 0:e.tagName)&&y.tagName(t.parentNode.parentNode)===p}}if(t.match(/^count\(preceding-sibling::\*\)=\d+$/)){const h=t.split("="),d=parseInt(h[1],10);return t=>{var e;return(null==(e=t.parentNode)?void 0:e.childNodes[d])===t}}if(t.match(/^.+\[@category!?=".+"\]$/)){let[,r,n,o]=t.match(/^(.+)\[@category(!?=)"(.+)"\]$/);const b=o.match(/^unit:(.+)$/);let i="";return b&&(o=b[1],i=":unit"),t=>{var e=g.evalXPath(r,t)[0];if(e){const t=v.lookupCategory(e.textContent+i);return"="===n?t===o:t!==o}return!1}}if(t.match(/^string-length\(.+\)\W+\d+/)){const[,f,m,y]=t.match(/^string-length\((.+)\)(\W+)(\d+)/),b=_[m]||_["="],v=parseInt(y,10);return t=>{t=g.evalXPath(f,t)[0];return!!t&&b(Array.from(t.textContent).length,v)}}return null}e.constraintTest_=l;class c extends o.StaticTrieNode{constructor(t,e){super(t,l(t)),this.context=e,this.kind=i.TrieNodeKind.QUERY}applyTest(t){return this.test?this.test(t):this.context.applyQuery(t,this.constraint)===t}}e.QueryTrieNode=c;class u extends o.StaticTrieNode{constructor(t,e){super(t,l(t)),this.context=e,this.kind=i.TrieNodeKind.BOOLEAN}applyTest(t){return this.test?this.test(t):this.context.applyConstraint(t,this.constraint)}}e.BooleanTrieNode=u},7491:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.completeLocale=i.getLocale=i.setLocale=i.locales=void 0;const a=e(5897),r=e(1377),s=e(2105),n=e(4249),o=e(8657),l=e(173),c=e(9393),u=e(7978),p=e(5540),h=e(5218),d=e(3887),f=e(8384),m=e(7206),y=e(7734),g=e(7264),b=e(4356);function v(){var t=r.Variables.ensureLocale(a.default.getInstance().locale,a.default.getInstance().defaultLocale);return a.default.getInstance().locale=t,i.locales[t]()}i.locales={ca:n.ca,da:o.da,de:l.de,en:c.en,es:u.es,fr:p.fr,hi:h.hi,it:d.it,nb:f.nb,nn:y.nn,sv:g.sv,nemeth:m.nemeth},i.setLocale=function(){var t,e,r=v();if(t=r,e=a.default.getInstance().subiso,-1===t.SUBISO.all.indexOf(e)&&(a.default.getInstance().subiso=t.SUBISO.default),t.SUBISO.current=a.default.getInstance().subiso,r){for(const i of Object.getOwnPropertyNames(r))b.LOCALE[i]=r[i];for(var[n,o]of Object.entries(r.CORRECTIONS))s.Grammar.getInstance().setCorrection(n,o)}},i.getLocale=v,i.completeLocale=function(t){const e=i.locales[t.locale];if(e){var r=t.kind.toUpperCase(),n=t.messages;if(n){const o=e();for(const[t,i]of Object.entries(n))o[r][t]=i}}else console.error("Locale "+t.locale+" does not exist!")}},4356:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.createLocale=e.LOCALE=void 0;const n=r(7549);function o(){return{FUNCTIONS:(0,n.FUNCTIONS)(),MESSAGES:(0,n.MESSAGES)(),ALPHABETS:(0,n.ALPHABETS)(),NUMBERS:(0,n.NUMBERS)(),COMBINERS:{},CORRECTIONS:{},SUBISO:(0,n.SUBISO)()}}e.LOCALE=o(),e.createLocale=o},2536:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.localeFontCombiner=e.extractString=e.localEnclose=e.localRole=e.localFont=e.combinePostfixIndex=e.nestingToString=void 0;const n=r(4356),o=r(4977);function i(t,e){return void 0===t?e:"string"==typeof t?t:t[0]}e.nestingToString=function(t){switch(t){case 1:return n.LOCALE.MESSAGES.MS.ONCE||"";case 2:return n.LOCALE.MESSAGES.MS.TWICE;default:return t.toString()}},e.combinePostfixIndex=function(t,e){return t===n.LOCALE.MESSAGES.MS.ROOTINDEX||t===n.LOCALE.MESSAGES.MS.INDEX?t:t+" "+e},e.localFont=function(t){return i(n.LOCALE.MESSAGES.font[t],t)},e.localRole=function(t){return i(n.LOCALE.MESSAGES.role[t],t)},e.localEnclose=function(t){return i(n.LOCALE.MESSAGES.enclose[t],t)},e.extractString=i,e.localeFontCombiner=function(t){return"string"==typeof t?{font:t,combiner:n.LOCALE.ALPHABETS.combiner}:{font:t[0],combiner:n.LOCALE.COMBINERS[t[1]]||o.Combiners[t[1]]||n.LOCALE.ALPHABETS.combiner}}},4249:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.ca=void 0;function n(t,e,r){return t="sans serif "+(r?r+" "+t:t),e?t+" "+e:t}const o=r(4356),i=r(2536),a=r(614),s=r(4977);let l=null;e.ca=function(){return l=l||function(){const t=(0,o.createLocale)();return t.NUMBERS=a.default,t.COMBINERS.sansserif=n,t.FUNCTIONS.fracNestDepth=t=>!1,t.FUNCTIONS.combineRootIndex=i.combinePostfixIndex,t.FUNCTIONS.combineNestedRadical=(t,e,r)=>t+r,t.FUNCTIONS.fontRegexp=t=>RegExp("^"+t+" "),t.FUNCTIONS.plural=t=>/.*os$/.test(t)?t+"sos":/.*s$/.test(t)?t+"os":/.*ga$/.test(t)?t.slice(0,-2)+"gues":/.*\xe7a$/.test(t)?t.slice(0,-2)+"ces":/.*ca$/.test(t)?t.slice(0,-2)+"ques":/.*ja$/.test(t)?t.slice(0,-2)+"ges":/.*qua$/.test(t)?t.slice(0,-3)+"qües":/.*a$/.test(t)?t.slice(0,-1)+"es":/.*(e|i)$/.test(t)?t+"ns":/.*\xed$/.test(t)?t.slice(0,-1)+"ins":t+"s",t.FUNCTIONS.si=(t,e)=>(t=e.match(/^metre/)?t.replace(/a$/,"à").replace(/o$/,"ò").replace(/i$/,"í"):t)+e,t.ALPHABETS.combiner=s.Combiners.prefixCombiner,t}()}},8657:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.da=void 0;const n=r(4356),o=r(2536),i=r(3866),a=r(4977);let s=null;e.da=function(){return s=s||function(){const e=(0,n.createLocale)();return e.NUMBERS=i.default,e.FUNCTIONS.radicalNestDepth=o.nestingToString,e.FUNCTIONS.fontRegexp=t=>t===e.ALPHABETS.capPrefix.default?RegExp("^"+t+" "):RegExp(" "+t+"$"),e.ALPHABETS.combiner=a.Combiners.postfixCombiner,e.ALPHABETS.digitTrans.default=i.default.numberToWords,e}()}},173:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.de=void 0;function n(t,e,r){return"s"===r&&(e=e.split(" ").map(function(t){return t.replace(/s$/,"")}).join(" "),r=""),t=r?r+" "+t:t,e?e+" "+t:t}function o(t,e,r){return t=r&&"s"!==r?r+" "+t:t,e?t+" "+e:t}const i=r(2105),a=r(2536),s=r(4356),l=r(1435);let c=null;e.de=function(){return c=c||function(){const e=(0,s.createLocale)();return e.NUMBERS=l.default,e.COMBINERS.germanPostfix=o,e.ALPHABETS.combiner=n,e.FUNCTIONS.radicalNestDepth=t=>1{return t.replace("Wurzel",e?e+"wurzel":"")},e.FUNCTIONS.combineNestedRadical=(t,e,r)=>{e=(e?e+" ":"")+(t=r.match(/exponent$/)?t+"r":t);return r.match(/ /)?r.replace(/ /," "+e+" "):e+" "+r},e.FUNCTIONS.fontRegexp=function(t){return t=t.split(" ").map(function(t){return t.replace(/s$/,"(|s)")}).join(" "),new RegExp("((^"+t+" )|( "+t+"$))")},e.CORRECTIONS.correctOne=t=>t.replace(/^eins$/,"ein"),e.CORRECTIONS.localFontNumber=t=>(0,a.localFont)(t).split(" ").map(function(t){return t.replace(/s$/,"")}).join(" "),e.CORRECTIONS.lowercase=t=>t.toLowerCase(),e.CORRECTIONS.article=t=>{var e=i.Grammar.getInstance().getParameter("case"),r=i.Grammar.getInstance().getParameter("plural");return"dative"===e?{der:"dem",die:r?"den":"der",das:"dem"}[t]:t},e.CORRECTIONS.masculine=t=>"dative"===i.Grammar.getInstance().getParameter("case")?t+"n":t,e}()}},9393:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.en=void 0;const n=r(2105),o=r(4356),i=r(2536),a=r(310),s=r(4977);let l=null;e.en=function(){return l=l||function(){const t=(0,o.createLocale)();return t.NUMBERS=a.default,t.FUNCTIONS.radicalNestDepth=i.nestingToString,t.FUNCTIONS.plural=t=>/.*s$/.test(t)?t:t+"s",t.ALPHABETS.combiner=s.Combiners.prefixCombiner,t.ALPHABETS.digitTrans.default=a.default.numberToWords,t.CORRECTIONS.article=t=>n.Grammar.getInstance().getParameter("noArticle")?"":t,t}()}},7978:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.es=void 0;function n(t,e,r){return t="sans serif "+(r?r+" "+t:t),e?t+" "+e:t}const o=r(4356),i=r(2536),a=r(4634),s=r(4977);let l=null;e.es=function(){return l=l||function(){const t=(0,o.createLocale)();return t.NUMBERS=a.default,t.COMBINERS.sansserif=n,t.FUNCTIONS.fracNestDepth=t=>!1,t.FUNCTIONS.combineRootIndex=i.combinePostfixIndex,t.FUNCTIONS.combineNestedRadical=(t,e,r)=>t+r,t.FUNCTIONS.fontRegexp=t=>RegExp("^"+t+" "),t.FUNCTIONS.plural=t=>/.*(a|e|i|o|u)$/.test(t)?t+"s":/.*z$/.test(t)?t.slice(0,-1)+"ces":/.*c$/.test(t)?t.slice(0,-1)+"ques":/.*g$/.test(t)?t+"ues":/.*\u00f3n$/.test(t)?t.slice(0,-2)+"ones":t+"es",t.FUNCTIONS.si=(t,e)=>(t=e.match(/^metro/)?t.replace(/a$/,"á").replace(/o$/,"ó").replace(/i$/,"í"):t)+e,t.ALPHABETS.combiner=s.Combiners.prefixCombiner,t}()}},5540:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.fr=void 0;const n=r(2105),o=r(4356),i=r(2536),a=r(2350),s=r(4977);let l=null;e.fr=function(){return l=l||function(){const t=(0,o.createLocale)();return t.NUMBERS=a.default,t.FUNCTIONS.radicalNestDepth=i.nestingToString,t.FUNCTIONS.combineRootIndex=i.combinePostfixIndex,t.FUNCTIONS.combineNestedFraction=(t,e,r)=>r.replace(/ $/g,"")+e+t,t.FUNCTIONS.combineNestedRadical=(t,e,r)=>r+" "+t,t.FUNCTIONS.fontRegexp=t=>RegExp(" (en |)"+t+"$"),t.FUNCTIONS.plural=t=>/.*s$/.test(t)?t:t+"s",t.CORRECTIONS.article=t=>n.Grammar.getInstance().getParameter("noArticle")?"":t,t.ALPHABETS.combiner=s.Combiners.romanceCombiner,t.SUBISO={default:"fr",current:"fr",all:["fr","be","ch"]},t}()}},5218:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.hi=void 0;const n=r(4356),o=r(4438),i=r(4977),a=r(2536);let s=null;e.hi=function(){return s=s||function(){const t=(0,n.createLocale)();return t.NUMBERS=o.default,t.ALPHABETS.combiner=i.Combiners.prefixCombiner,t.FUNCTIONS.radicalNestDepth=a.nestingToString,t}()}},3887:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.it=void 0;function n(t,e,r){return t.match(/^[a-zA-Z]$/)&&(e=e.replace("cerchiato","cerchiata")),t=r?t+" "+r:t,e?t+" "+e:t}const o=r(2536),i=r(4356),a=r(8825),s=r(4977);let l=null;e.it=function(){return l=l||function(){const t=(0,i.createLocale)();return t.NUMBERS=a.default,t.COMBINERS.italianPostfix=n,t.FUNCTIONS.radicalNestDepth=o.nestingToString,t.FUNCTIONS.combineRootIndex=o.combinePostfixIndex,t.FUNCTIONS.combineNestedFraction=(t,e,r)=>r.replace(/ $/g,"")+e+t,t.FUNCTIONS.combineNestedRadical=(t,e,r)=>r+" "+t,t.FUNCTIONS.fontRegexp=t=>RegExp(" (en |)"+t+"$"),t.ALPHABETS.combiner=s.Combiners.romanceCombiner,t}()}},8384:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.nb=void 0;const n=r(4356),o=r(2536),i=r(8274),a=r(4977);let s=null;e.nb=function(){return s=s||function(){const t=(0,n.createLocale)();return t.NUMBERS=i.default,t.ALPHABETS.combiner=a.Combiners.prefixCombiner,t.ALPHABETS.digitTrans.default=i.default.numberToWords,t.FUNCTIONS.radicalNestDepth=o.nestingToString,t}()}},7206:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.nemeth=void 0;function n(t){return t.match(RegExp("^"+h.ALPHABETS.languagePrefix.english))?t.slice(1):t}function o(t,e,r){return t=n(t),e?t+e:t}function i(t,e,r){return e+n(t)}function a(t,e,r){return e+(r||"")+n(t)+"⠻"}function s(t,e,r){return e+(r||"")+n(t)+"⠻⠻"}function l(t,e,r){return e+n(t)+"⠾"}const c=r(4356),u=r(3720),p=r(4977);let h=null;e.nemeth=function(){return h=h||function(){const t=(0,c.createLocale)();return t.NUMBERS=u.default,t.COMBINERS={postfixCombiner:o,germanCombiner:i,embellishCombiner:a,doubleEmbellishCombiner:s,parensCombiner:l},t.FUNCTIONS.fracNestDepth=t=>!1,t.FUNCTIONS.fontRegexp=t=>RegExp("^"+t),t.FUNCTIONS.si=p.identityTransformer,t.ALPHABETS.combiner=(t,e,r)=>e?e+r+t:n(t),t.ALPHABETS.digitTrans={default:u.default.numberToWords},t}()}},7734:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.nn=void 0;const n=r(4356),o=r(2536),i=r(8274),a=r(4977);let s=null;e.nn=function(){return s=s||function(){const t=(0,n.createLocale)();return t.NUMBERS=i.default,t.ALPHABETS.combiner=a.Combiners.prefixCombiner,t.ALPHABETS.digitTrans.default=i.default.numberToWords,t.FUNCTIONS.radicalNestDepth=o.nestingToString,t.SUBISO={default:"",current:"",all:["","alt"]},t}()}},7264:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.sv=void 0;const n=r(4356),o=r(2536),i=r(3898),a=r(4977);let s=null;e.sv=function(){return s=s||function(){const t=(0,n.createLocale)();return t.NUMBERS=i.default,t.FUNCTIONS.radicalNestDepth=o.nestingToString,t.FUNCTIONS.fontRegexp=function(t){return new RegExp("((^"+t+" )|( "+t+"$))")},t.ALPHABETS.combiner=a.Combiners.prefixCombiner,t.ALPHABETS.digitTrans.default=i.default.numberToWords,t.CORRECTIONS.correctOne=t=>t.replace(/^ett$/,"en"),t}()}},7549:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SUBISO=e.FUNCTIONS=e.ALPHABETS=e.NUMBERS=e.MESSAGES=void 0;const n=r(4977);e.MESSAGES=function(){return{MS:{},MSroots:{},font:{},embellish:{},role:{},enclose:{},navigate:{},regexp:{},unitTimes:""}},e.NUMBERS=function(){return{zero:"zero",ones:[],tens:[],large:[],special:{},wordOrdinal:n.identityTransformer,numericOrdinal:n.identityTransformer,numberToWords:n.identityTransformer,numberToOrdinal:n.pluralCase,vulgarSep:" ",numSep:" "}},e.ALPHABETS=function(){return{latinSmall:[],latinCap:[],greekSmall:[],greekCap:[],capPrefix:{default:""},smallPrefix:{default:""},digitPrefix:{default:""},languagePrefix:{},digitTrans:{default:n.identityTransformer,mathspeak:n.identityTransformer,clearspeak:n.identityTransformer},letterTrans:{default:n.identityTransformer},combiner:(t,e,r)=>t}},e.FUNCTIONS=function(){return{fracNestDepth:t=>n.vulgarFractionSmall(t,10,100),radicalNestDepth:t=>"",combineRootIndex:function(t,e){return t},combineNestedFraction:n.Combiners.identityCombiner,combineNestedRadical:n.Combiners.identityCombiner,fontRegexp:function(t){return new RegExp("^"+t.split(/ |-/).join("( |-)")+"( |-)")},si:n.siCombiner,plural:n.identityTransformer}},e.SUBISO=function(){return{default:"",current:"",all:[]}}},614:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0});const n=r(2105);function o(t){const n=t%1e3,e=Math.floor(n/100),r=e?1===e?"cent":s.ones[e]+"-cents":"",o=function(){var t=n%100%100;if(t<20)return s.ones[t];var e=Math.floor(t/10),r=s.tens[e],t=s.ones[t%10];return r&&t?r+(2===e?"-i-":"-")+t:r||t}();return r&&o?r+s.numSep+o:r||o}function i(t){if(0===t)return s.zero;if(t>=Math.pow(10,36))return t.toString();let e=0,r="";for(;0=Math.pow(10,36))return t.toString();let r=0,n="";for(;0=Math.pow(10,36))return t.toString();let e=0,r="";for(;0=Math.pow(10,36))return t.toString();let e=0,r="";for(;0=Math.pow(10,36))return t.toString();let e=0,r="";for(;0=Math.pow(10,36))return t.toString();c.special["tens-"+o.default.getInstance().subiso]&&(c.tens=c.special["tens-"+o.default.getInstance().subiso]);let e=0,r="";for(;0=Math.pow(10,32))return r.toString();let t=0,e="";const n=function(){let t=r%1e3%1e3,e="";return e+=a.ones[Math.floor(t/100)]?a.ones[Math.floor(t/100)]+a.numSep+a.special.hundred:"",e=(t%=100)?(e+=e?a.numSep:"")+a.ones[t]:e}();if(!(r=Math.floor(r/1e3)))return n;for(;0=Math.pow(10,36))return t.toString();if(1===t&&n.Grammar.getInstance().getParameter("fraction"))return"un";let e=0,r="";for(;0=Math.pow(10,36))return t.toString();let r=0,n="";for(;0=Math.pow(10,36))return t.toString();let r=0,n="";for(;0=Math.pow(10,36))return t.toString();let r=0,n="";for(;0{t=this.parseCstr(t.toString().replace(o,""));this.addRule(new l.SpeechRule(r,t,e,n))})}else console.error("Action Error: No precondition for action "+r)}getFullPreconditions(t){var e=this.preconditions.get(t);return e||!this.inherits?e:this.inherits.getFullPreconditions(t)}definePrecondition(t,e,r,...n){const o=this.parsePrecondition(r,n),i=this.parseCstr(e);o&&i?(o.rank=this.rank++,this.preconditions.set(t,new s(i,o))):console.error(`Precondition Error: ${r}, (${e})`)}inheritRules(){if(this.inherits&&this.inherits.getSpeechRules().length){const r=new RegExp("^\\w+\\.\\w+\\."+(this.domain?"\\w+\\.":""));this.inherits.getSpeechRules().forEach(t=>{var e=this.parseCstr(t.dynamicCstr.toString().replace(r,""));this.addRule(new l.SpeechRule(t.name,e,t.precondition,t.action))})}}ignoreRules(e,...r){let n=this.findAllRules(t=>t.name===e);if(r.length){let t=[];for(const e of r){const r=this.parseCstr(e);for(const e of n)r.equal(e.dynamicCstr)?this.deleteRule(e):t.push(e);n=t,t=[]}}else n.forEach(this.deleteRule.bind(this))}parsePrecondition_(t){const e=this.context.customGenerators.lookup(t);return e?e():[t]}}e.BaseRuleStore=a;class s{constructor(t,e){this.base=t,this._conditions=[],this.constraints=[],this.allCstr={},this.constraints.push(t),this.addCondition(t,e)}get conditions(){return this._conditions}addConstraint(e){if(!this.constraints.filter(t=>t.equal(e)).length){this.constraints.push(e);const n=[];for(var[t,r]of this.conditions)this.base.equal(t)&&n.push([e,r]);this._conditions=this._conditions.concat(n)}}addBaseCondition(t){this.addCondition(this.base,t)}addFullCondition(e){this.constraints.forEach(t=>this.addCondition(t,e))}addCondition(t,e){var r=t.toString()+" "+e.toString();this.allCstr.condStr||(this.allCstr[r]=!0,this._conditions.push([t,e]))}}e.Condition=s},2469:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.BrailleStore=void 0;const n=r(7630),o=r(9935);class i extends o.MathStore{constructor(){super(...arguments),this.modality="braille",this.customTranscriptions={"⋊":"⠈⠡⠳"}}evaluateString(t){const e=[],r=Array.from(t);for(let t=0;te.push(this.getProperty(t).slice())),e}toString(){const e=[];return this.order.forEach(t=>e.push(t+": "+this.getProperty(t).toString())),e.join("\n")}}class s extends(e.DynamicProperties=a){constructor(t,e){const r={};for(const[e,n]of Object.entries(t))r[e]=[n];super(r,e),this.components=t}static createCstr(...n){const o=s.DEFAULT_ORDER,i={};for(let t=0,e=n.length,r=o.length;t{t=e.indexOf(t);return-1!==t&&e.splice(t,1)})}getComponents(){return this.components}getValue(t){return this.components[t]}getValues(){return this.order.map(t=>this.getValue(t))}allProperties(){const n=super.allProperties();for(let t,e,r=0;t=n[r],e=this.order[r];r++){const n=this.getValue(e);-1===t.indexOf(n)&&t.unshift(n)}return n}toString(){return this.getValues().join(".")}equal(r){const n=r.getAxes();if(this.order.length!==n.length)return!1;for(let t,e=0;t=n[e];e++){const n=this.getValue(t);if(!n||r.getValue(t)!==n)return!1}return!0}}(e.DynamicCstr=s).DEFAULT_ORDER=[r.LOCALE,r.MODALITY,r.DOMAIN,r.STYLE,r.TOPIC],s.BASE_LOCALE="base",s.DEFAULT_VALUE="default",s.DEFAULT_VALUES={[r.LOCALE]:"en",[r.DOMAIN]:s.DEFAULT_VALUE,[r.STYLE]:s.DEFAULT_VALUE,[r.TOPIC]:s.DEFAULT_VALUE,[r.MODALITY]:"speech"},e.DynamicCstrParser=class{constructor(t){this.order=t}parse(t){const r=t.split("."),n={};if(r.length>this.order.length)throw new Error("Invalid dynamic constraint: "+n);let o=0;for(let t,e=0;t=this.order[e],r.length;e++,o++){const o=r.shift();n[t]=o}return new s(n,this.order.slice(0,o))}},e.DefaultComparator=class{constructor(t,e=new a(t.getProperties(),t.getOrder())){this.reference=t,this.fallback=e,this.order=this.reference.getOrder()}getReference(){return this.reference}setReference(t,e){this.reference=t,this.fallback=e||new a(t.getProperties(),t.getOrder()),this.order=this.reference.getOrder()}match(r){const t=r.getAxes();return t.length===this.reference.getAxes().length&&t.every(t=>{var e=r.getValue(t);return e===this.reference.getValue(t)||-1!==this.fallback.getProperty(t).indexOf(e)})}compare(r,n){let o=!1;for(let t,e=0;t=this.order[e];e++){var i=r.getValue(t),a=n.getValue(t);if(!o){const r=this.reference.getValue(t);if(r===i&&r!==a)return-1;if(r===a&&r!==i)return 1;if(r===i&&r===a)continue;r!==i&&r!==a&&(o=!0)}const s=this.fallback.getProperty(t),l=s.indexOf(i),c=s.indexOf(a);if(l!p.equal(t.cstr))).push(r),this.rules.set(e,s),h.setReference(d)}lookupRule(t,e){let r=this.getRules(e.getValue(n.Axis.LOCALE));return 1===(r=r.filter(function(t){return o.testDynamicConstraints_(e,t)})).length?r[0]:r.length?r.sort((t,e)=>f.default.getInstance().comparator.compare(t.cstr,e.cstr))[0]:null}}e.MathSimpleStore=o},9935:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.MathStore=void 0;const a=r(707),s=r(4356),n=r(7630),o=r(4504),l=r(4650);class i extends o.BaseRuleStore{constructor(){super(),this.annotators=[],this.parseMethods.Alias=this.defineAlias,this.parseMethods.SpecializedRule=this.defineSpecializedRule,this.parseMethods.Specialized=this.defineSpecialized}initialize(){this.initialized||(this.annotations(),this.initialized=!0)}annotations(){for(let t,e=0;t=this.annotators[e];e++)(0,n.activate)(this.domain,t)}defineAlias(t,e,...r){var n=this.parsePrecondition(e,r);if(n){const o=this.preconditions.get(t);o?o.addFullCondition(n):console.error("Alias Error: No precondition by the name of "+t)}else console.error(`Precondition Error: ${e} `+r)}defineRulesAlias(e,r,...n){const t=this.findAllRules(function(t){return t.name===e});if(0===t.length)throw new l.OutputError("Rule with name "+e+" does not exist.");const o=[];t.forEach(t=>{(t=>{var r=t.dynamicCstr.toString(),n=t.action.toString();for(let t,e=0;t=o[e];e++)if(t.action===n&&t.cstr===r)return!1;return o.push({cstr:r,action:n}),!0})(t)&&this.addAlias_(t,r,n)})}defineSpecializedRule(e,t,r,n){const o=this.parseCstr(t),i=this.findRule(t=>t.name===e&&o.equal(t.dynamicCstr)),a=this.parseCstr(r);if(!i&&n)throw new l.OutputError("Rule named "+e+" with style "+t+" does not exist.");r=n?l.Action.fromString(n):i.action,t=new l.SpeechRule(i.name,a,i.precondition,r);this.addRule(t)}defineSpecialized(t,e,r){var n=this.parseCstr(r);if(n){const o=this.preconditions.get(t);o?o.addConstraint(n):console.error("Alias Error: No precondition by the name of "+t)}else console.error("Dynamic Constraint Error: "+r)}evaluateString(r){const n=[];if(r.match(/^\s+$/))return n;let o=this.matchNumber_(r);if(o&&o.length===r.length)return n.push(this.evaluateCharacter(o.number)),n;var i=a.removeEmpty(r.replace(/\s/g," ").split(" "));for(let e,t=0;e=i[t];t++)if(1===e.length)n.push(this.evaluateCharacter(e));else if(e.match(new RegExp("^["+s.LOCALE.MESSAGES.regexp.TEXT+"]+$")))n.push(this.evaluateCharacter(e));else{let t=e;for(;t;){o=this.matchNumber_(t);const r=t.match(new RegExp("^["+s.LOCALE.MESSAGES.regexp.TEXT+"]+"));if(o)n.push(this.evaluateCharacter(o.number)),t=t.substring(o.length);else if(r)n.push(this.evaluateCharacter(r[0])),t=t.substring(r[0].length);else{const r=Array.from(t),o=r[0];n.push(this.evaluateCharacter(o)),t=r.slice(1).join("")}}}return n}parse(t){super.parse(t),this.annotators=t.annotators||[]}addAlias_(t,e,r){const n=this.parsePrecondition(e,r),o=new l.SpeechRule(t.name,t.dynamicCstr,n,t.action);o.name=t.name,this.addRule(o)}matchNumber_(t){const e=t.match(new RegExp("^"+s.LOCALE.MESSAGES.regexp.NUMBER)),r=t.match(new RegExp("^"+i.regexp.NUMBER));if(!e&&!r)return null;var n=r&&r[0]===t;return e&&e[0]===t||!n?e?{number:e[0],length:e[0].length}:null:{number:r[0].replace(new RegExp(i.regexp.DIGIT_GROUP,"g"),"X").replace(new RegExp(i.regexp.DECIMAL_MARK,"g"),s.LOCALE.MESSAGES.regexp.DECIMAL_MARK).replace(/X/g,s.LOCALE.MESSAGES.regexp.DIGIT_GROUP.replace(/\\/g,"")),length:r[0].length}}}(e.MathStore=i).regexp={NUMBER:"((\\d{1,3})(?=(,| ))((,| )\\d{3})*(\\.\\d+)?)|^\\d*\\.\\d+|^\\d+",DECIMAL_MARK:"\\.",DIGIT_GROUP:","}},4650:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.OutputError=e.Precondition=e.Action=e.Component=e.ActionType=e.SpeechRule=void 0;const n=r(5897),s=r(2105);var o;e.SpeechRule=class{constructor(t,e,r,n){this.name=t,this.dynamicCstr=e,this.precondition=r,this.action=n,this.context=null}toString(){return this.name+" | "+this.dynamicCstr.toString()+" | "+this.precondition.toString()+" ==> "+this.action.toString()}},(r=o=e.ActionType||(e.ActionType={})).NODE="NODE",r.MULTI="MULTI",r.TEXT="TEXT",r.PERSONALITY="PERSONALITY";class l{constructor({type:t,content:e,attributes:r,grammar:n}){this.type=t,this.content=e,this.attributes=r,this.grammar=n}static grammarFromString(t){return s.Grammar.parseInput(t)}static fromString(t){const e={type:function(t){switch(t){case"[n]":return o.NODE;case"[m]":return o.MULTI;case"[t]":return o.TEXT;case"[p]":return o.PERSONALITY;default:throw"Parse error: "+t}}(t.substring(0,3))};let r=t.slice(3).trim();if(!r)throw new c("Missing content.");switch(e.type){case o.TEXT:if('"'===r[0]){const t=u(r,"\\(")[0].trim();if('"'!==t.slice(-1))throw new c("Invalid string syntax.");e.content=t,-1===(r=r.slice(t.length).trim()).indexOf("(")&&(r="");break}case o.NODE:case o.MULTI:{const t=r.indexOf(" (");if(-1===t){e.content=r.trim(),r="";break}e.content=r.substring(0,t).trim(),r=r.slice(t).trim()}}if(r){const t=l.attributesFromString(r);t.grammar&&(e.grammar=t.grammar,delete t.grammar),Object.keys(t).length&&(e.attributes=t)}return new l(e)}static attributesFromString(r){if("("!==r[0]||")"!==r.slice(-1))throw new c("Invalid attribute expression: "+r);const n={},o=u(r.slice(1,-1),",");for(let t=0,e=o.length;tc.Debugger.getInstance().output(t,e.context.applyConstraint(r,t)))}static debugNamedSpeechRule(r,n){var o=g.getInstance().trie.collectRules().filter(t=>t.name==r);for(let t,e=0;t=o[e];e++)c.Debugger.getInstance().output("Rule",r,"DynamicCstr:",t.dynamicCstr.toString(),"number",e),g.debugSpeechRule(t,n)}evaluateNode(t){(0,h.updateEvaluator)(t);var e=(new Date).getTime();let r=[];try{r=this.evaluateNode_(t)}catch(t){console.error("Something went wrong computing speech."),c.Debugger.getInstance().output(t)}var n=(new Date).getTime();return c.Debugger.getInstance().output("Time:",n-e),r}toString(){return this.trie.collectRules().map(t=>t.toString()).join("\n")}runInSetting(t,e){const r=u.default.getInstance(),n={};for(const e in t)n[e]=r[e],r[e]=t[e];r.setDynamicCstr();e=e();for(const t in n)r[t]=n[t];return r.setDynamicCstr(),e}addStore(t){const e=v(t);"abstract"!==e.kind&&e.getSpeechRules().forEach(t=>this.trie.addRule(t)),this.addEvaluator(e)}processGrammar(t,e,r){const n={};for(const i in r){var o=r[i];n[i]="string"==typeof o?t.constructString(e,o):o}f.Grammar.getInstance().pushState(n)}addEvaluator(t){const e=t.evaluateDefault.bind(t),r=this.evaluators_[t.locale];if(r)r[t.modality]=e;else{const n={};n[t.modality]=e,this.evaluators_[t.locale]=n}}getEvaluator(t,e){t=this.evaluators_[t]||this.evaluators_[l.DynamicCstr.DEFAULT_VALUES[l.Axis.LOCALE]];return t[e]||t[l.DynamicCstr.DEFAULT_VALUES[l.Axis.MODALITY]]}enumerate(t){return this.trie.enumerate(t)}evaluateNode_(t){return t?(this.updateConstraint_(),this.evaluateTree_(t)):[]}evaluateTree_(o){const i=u.default.getInstance();let a;c.Debugger.getInstance().output(i.mode!==p.Mode.HTTP?o.toString():o),f.Grammar.getInstance().setAttribute(o);const s=this.lookupRule(o,i.dynamicCstr);if(!s)return i.strict?[]:(a=this.getEvaluator(i.locale,i.modality)(o),o.attributes&&this.addPersonality_(a,{},!1,o),a);c.Debugger.getInstance().generateOutput(()=>["Apply Rule:",s.name,s.dynamicCstr.toString(),(i.mode,p.Mode.HTTP,o.toString())]);const l=s.context,e=s.action.components;a=[];for(let n,t=0;n=e[t];t++){let t=[];const s=n.content||"",p=n.attributes||{};let e=!1,r=(n.grammar&&this.processGrammar(l,o,n.grammar),null);if(p.engine){r=u.default.getInstance().dynamicCstr.getComponents();const o=f.Grammar.parseInput(p.engine);u.default.getInstance().setDynamicCstr(o)}switch(n.type){case m.ActionType.NODE:{const i=l.applyQuery(o,s);i&&(t=this.evaluateTree_(i))}break;case m.ActionType.MULTI:{e=!0;const i=l.applySelector(o,s);0e.map(t=>t.name+"("+t.dynamicCstr.toString()+")")).bind(this)),e[0]}}e.SpeechRuleEngine=g;const b=new Map;function v(t){var e=`${t.locale}.${t.modality}.`+t.domain;if("actions"===t.kind){const r=b.get(e);return r.parse(t),r}i.init(),t&&!t.functions&&(t.functions=o.getStore(t.locale,t.modality,t.domain));const r=new("braille"===t.modality?a.BrailleStore:s.MathStore);return b.set(e,r),t.inherits&&(r.inherits=b.get(`${t.inherits}.${t.modality}.`+t.domain)),r.parse(t),r.initialize(),r}e.storeFactory=v,u.default.nodeEvaluator=g.getInstance().evaluateNode.bind(g.getInstance())},5662:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CustomGenerators=e.ContextFunctions=e.CustomStrings=e.CustomQueries=void 0;class r{constructor(t,e){this.prefix=t,this.store=e}add(t,e){this.checkCustomFunctionSyntax_(t)&&(this.store[t]=e)}addStore(r){var n=Object.keys(r.store);for(let t,e=0;t=n[e];e++)this.add(t,r.store[t])}lookup(t){return this.store[t]}checkCustomFunctionSyntax_(t){var e=new RegExp("^"+this.prefix);return!!t.match(e)||(console.error("FunctionError: Invalid function name. Expected prefix "+this.prefix),!1)}}e.CustomQueries=class extends r{constructor(){super("CQF",{})}},e.CustomStrings=class extends r{constructor(){super("CSF",{})}},e.ContextFunctions=class extends r{constructor(){super("CTF",{})}},e.CustomGenerators=class extends r{constructor(){super("CGF",{})}}},365:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.contentIterator=e.pauseSeparator=e.nodeCounter=void 0;const i=r(7052),a=r(5274),s=r(5897);e.nodeCounter=function(t,e){const r=t.length;let n=0,o=e?e:"";return function(){return n","≁","≂","≄","≆","≇","≉","≏","≐","≠","≢","≤","≥","≦","≧","≨","≩","≪","≫","≬","≭","≮","≯","≰","≱","≲","≳","≴","≵","≶","≷","≸","≹","≺","≻","≼","≽","≾","≿","⊀","⊁","⋖","⋗","⋘","⋙","⋚","⋛","⋜","⋝","⋞","⋟","⋠","⋡","⋦","⋧","⋨","⋩","⩹","⩺","⩻","⩼","⩽","⩾","⩿","⪀","⪁","⪂","⪃","⪄","⪅","⪆","⪇","⪈","⪉","⪊","⪋","⪌","⪍","⪎","⪏","⪐","⪑","⪒","⪓","⪔","⪕","⪖","⪗","⪘","⪙","⪚","⪛","⪜","⪝","⪞","⪟","⪠","⪡","⪢","⪣","⪤","⪥","⪦","⪧","⪨","⪩","⪪","⪫","⪬","⪭","⪮","⪯","⪰","⪱","⪲","⪳","⪴","⪵","⪶","⪷","⪸","⪹","⪺","⪻","⪼","⫷","⫸","⫹","⫺","⧀","⧁","﹤","﹥","<",">"],type:"relation",role:"inequality"},{set:["⋢","⋣","⋤","⋥","⊂","⊃","⊄","⊅","⊆","⊇","⊈","⊉","⊊","⊋","⊏","⊐","⊑","⊒","⪽","⪾","⪿","⫀","⫁","⫂","⫃","⫄","⫅","⫆","⫇","⫈","⫉","⫊","⫋","⫌","⫍","⫎","⫏","⫐","⫑","⫒","⫓","⫔","⫕","⫖","⫗","⫘","⋐","⋑","⋪","⋫","⋬","⋭","⊲","⊳","⊴","⊵"],type:"relation",role:"set"},{set:["⊢","⊣","⊦","⊧","⊨","⊩","⊪","⊫","⊬","⊭","⊮","⊯","⫞","⫟","⫠","⫡","⫢","⫣","⫤","⫥","⫦","⫧","⫨","⫩","⫪","⫫","⫬","⫭"],type:"relation",role:"unknown"},{set:["←","↑","→","↓","↔","↕","↖","↗","↘","↙","↚","↛","↜","↝","↞","↟","↠","↡","↢","↣","↤","↥","↦","↧","↨","↩","↪","↫","↬","↭","↮","↯","↰","↱","↲","↳","↴","↵","↶","↷","↸","↹","↺","↻","⇄","⇅","⇆","⇇","⇈","⇉","⇊","⇍","⇎","⇏","⇐","⇑","⇒","⇓","⇔","⇕","⇖","⇗","⇘","⇙","⇚","⇛","⇜","⇝","⇞","⇟","⇠","⇡","⇢","⇣","⇤","⇥","⇦","⇧","⇨","⇩","⇪","⇫","⇬","⇭","⇮","⇯","⇰","⇱","⇲","⇳","⇴","⇵","⇶","⇷","⇸","⇹","⇺","⇻","⇼","⇽","⇾","⇿","⌁","⌃","⌄","⌤","⎋","➔","➘","➙","➚","➛","➜","➝","➞","➟","➠","➡","➢","➣","➤","➥","➦","➧","➨","➩","➪","➫","➬","➭","➮","➯","➱","➲","➳","➴","➵","➶","➷","➸","➹","➺","➻","➼","➽","➾","⟰","⟱","⟲","⟳","⟴","⟵","⟶","⟷","⟸","⟹","⟺","⟻","⟼","⟽","⟾","⟿","⤀","⤁","⤂","⤃","⤄","⤅","⤆","⤇","⤈","⤉","⤊","⤋","⤌","⤍","⤎","⤏","⤐","⤑","⤒","⤓","⤔","⤕","⤖","⤗","⤘","⤙","⤚","⤛","⤜","⤝","⤞","⤟","⤠","⤡","⤢","⤣","⤤","⤥","⤦","⤧","⤨","⤩","⤪","⤭","⤮","⤯","⤰","⤱","⤲","⤳","⤴","⤵","⤶","⤷","⤸","⤹","⤺","⤻","⤼","⤽","⤾","⤿","⥀","⥁","⥂","⥃","⥄","⥅","⥆","⥇","⥈","⥉","⥰","⥱","⥲","⥳","⥴","⥵","⥶","⥷","⥸","⥹","⥺","⥻","⦳","⦴","⦽","⧪","⧬","⧭","⨗","⬀","⬁","⬂","⬃","⬄","⬅","⬆","⬇","⬈","⬉","⬊","⬋","⬌","⬍","⬎","⬏","⬐","⬑","⬰","⬱","⬲","⬳","⬴","⬵","⬶","⬷","⬸","⬹","⬺","⬻","⬼","⬽","⬾","⬿","⭀","⭁","⭂","⭃","⭄","⭅","⭆","⭇","⭈","⭉","⭊","⭋","⭌","←","↑","→","↓","↼","↽","↾","↿","⇀","⇁","⇂","⇃","⇋","⇌","⥊","⥋","⥌","⥍","⥎","⥏","⥐","⥑","⥒","⥓","⥔","⥕","⥖","⥗","⥘","⥙","⥚","⥛","⥜","⥝","⥞","⥟","⥠","⥡","⥢","⥣","⥤","⥥","⥦","⥧","⥨","⥩","⥪","⥫","⥬","⥭","⥮","⥯","⥼","⥽","⥾","⥿"],type:"relation",role:"arrow"},{set:["∈","∊","⋲","⋳","⋴","⋵","⋶","⋷","⋸","⋹","⋿"],type:"operator",role:"element"},{set:["∉"],type:"operator",role:"nonelement"},{set:["∋","∍","⋺","⋻","⋼","⋽","⋾"],type:"operator",role:"reelement"},{set:["∌"],type:"operator",role:"renonelement"},{set:["⅀","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨃","⨄","⨅","⨆","⨇","⨈","⨉","⨊","⨋","⫼","⫿"],type:"largeop",role:"sum"},{set:["∫","∬","∭","∮","∯","∰","∱","∲","∳","⨌","⨍","⨎","⨏","⨐","⨑","⨒","⨓","⨔","⨕","⨖","⨗","⨘","⨙","⨚","⨛","⨜"],type:"largeop",role:"integral"},{set:["∟","∠","∡","∢","⊾","⊿","△","▷","▽","◁"],type:"operator",role:"geometry"},{set:["inf","lim","liminf","limsup","max","min","sup","injlim","projlim","inj lim","proj lim"],type:"function",role:"limit function"},{set:bt,type:"function",role:"prefix function"},{set:["mod","rem"],type:"operator",role:"prefix function"}],R=function(){const r={};for(let e,t=0;e=vt[t];t++)e.set.forEach(function(t){r[t]={role:e.role||"unknown",type:e.type||"unknown",font:e.font||"unknown"}});return r}(),_t=(t.equal=function(t,e){return t.type===e.type&&t.role===e.role&&t.font===e.font},t.lookupType=function(t){return(null==(t=R[t])?void 0:t.type)||"unknown"},t.lookupRole=function(t){return(null==(t=R[t])?void 0:t.role)||"unknown"},t.lookupMeaning=function(t){return R[t]||{role:"unknown",type:"unknown",font:"unknown"}},t.invisibleTimes=function(){return mt},t.invisiblePlus=function(){return dt},t.invisibleComma=function(){return e},t.functionApplication=function(){return yt},t.isMatchingFence=function(t,e){return-1!==s.indexOf(t)||-1!==l.indexOf(t)?t===e:o[t]===e||i[t]===e},t.isEmbellishedType=function(t){return"operator"===t||"relation"===t||"fence"===t||"punctuation"===t},new Map);function k(t,e,r=""){for(const n of e)_t.set(t+" "+n,r||t)}k("d",["d","ⅆ","d","𝐝","𝑑","𝒹","𝓭","𝔡","𝕕","𝖉","𝖽","𝗱","𝘥","𝚍"]),k("bar",r),k("tilde",n),t.lookupSecondary=function(t,e){return _t.get(t+" "+e)}},8158:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticMeaningCollator=e.SemanticNodeCollator=e.SemanticDefault=void 0;const n=r(3588),o=r(3882);class i{constructor(){this.map={}}static key(t,e){return e?t+":"+e:t}add(t,e){this.map[i.key(t,e.font)]=e}addNode(t){this.add(t.textContent,t.meaning())}retrieve(t,e){return this.map[i.key(t,e)]}retrieveNode(t){return this.retrieve(t.textContent,t.font)}size(){return Object.keys(this.map).length}}e.SemanticDefault=i;class a{constructor(){this.map={}}add(t,e){const r=this.map[t];r?r.push(e):this.map[t]=[e]}retrieve(t,e){return this.map[i.key(t,e)]}retrieveNode(t){return this.retrieve(t.textContent,t.font)}copy(){const t=this.copyCollator();for(const e in this.map)t.map[e]=this.map[e];return t}minimize(){for(const t in this.map)1===this.map[t].length&&delete this.map[t]}minimalCollator(){const t=this.copy();for(const e in t.map)1===t.map[e].length&&delete t.map[e];return t}isMultiValued(){for(const t in this.map)if(1!1){this.name=t,this.apply=e,this.applicable=r}}e.SemanticAbstractHeuristic=r,e.SemanticTreeHeuristic=class extends r{},e.SemanticMultiHeuristic=class extends r{}},7516:function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.lookup=o.run=o.add=o.blacklist=o.flags=o.updateFactory=o.factory=void 0,o.factory=null,o.updateFactory=function(t){o.factory=t};const r=new Map;function i(t){return r.get(t)}o.flags={combine_juxtaposition:!0,convert_juxtaposition:!0,multioperator:!0},o.blacklist={},o.add=function(t){var e=t.name;r.set(e,t),o.flags[e]||(o.flags[e]=!1)},o.run=function(t,e,r){const n=i(t);return n&&!o.blacklist[t]&&(o.flags[t]||n.applicable(e))?n.apply(e):r?r(e):e},o.lookup=i},94:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0});const c=r(2057),n=r(5897),i=r(3588),u=r(7516),o=r(9911),p=r(5609),l=r(3308),a=r(4795);function s(t,e,r){let n=null;if(!t.length)return n;const o=r[r.length-1],i=o&&o.length,a=e&&e.length,s=l.default.getInstance();if(i&&a){if("infixop"===e[0].type&&"implicit"===e[0].role)return n=t.pop(),o.push(s.postfixNode_(o.pop(),t)),n;n=t.shift();const r=s.prefixNode_(e.shift(),t);return e.unshift(r),n}return i?o.push(s.postfixNode_(o.pop(),t)):a&&e.unshift(s.prefixNode_(e.shift(),t)),n}u.add(new o.SemanticTreeHeuristic("combine_juxtaposition",function(r){for(let t,e=r.childNodes.length-1;t=r.childNodes[e];e--)p.isImplicitOp(t)&&!t.nobreaking&&(r.childNodes.splice(e,1,...t.childNodes),r.contentNodes.splice(e,0,...t.contentNodes),t.childNodes.concat(t.contentNodes).forEach(function(t){t.parent=r}),r.addMathmlNodes(t.mathml));return r})),u.add(new o.SemanticTreeHeuristic("propagateSimpleFunction",t=>("infixop"!==t.type&&"fraction"!==t.type||!t.childNodes.every(p.isSimpleFunction)||(t.role="composed function"),t),t=>"clearspeak"===n.default.getInstance().domain)),u.add(new o.SemanticTreeHeuristic("simpleNamedFunction",t=>("unit"!==t.role&&-1!==["f","g","h","F","G","H"].indexOf(t.textContent)&&(t.role="simple function"),t),t=>"clearspeak"===n.default.getInstance().domain)),u.add(new o.SemanticTreeHeuristic("propagateComposedFunction",t=>("fenced"===t.type&&"composed function"===t.childNodes[0].role&&(t.role="composed function"),t),t=>"clearspeak"===n.default.getInstance().domain)),u.add(new o.SemanticTreeHeuristic("multioperator",t=>{var e;"unknown"!==t.role||t.textContent.length<=1||(e=[...t.textContent].map(i.lookupMeaning).reduce(function(t,e){return t&&e.role&&"unknown"!==e.role&&e.role!==t?"unknown"===t?e.role:null:t},"unknown"))&&(t.role=e)})),u.add(new o.SemanticMultiHeuristic("convert_juxtaposition",n=>{let o=a.partitionNodes(n,function(t){return t.textContent===i.invisibleTimes()&&"operator"===t.type});n=(o=o.rel.length?function(t){const e=[],r=[];let n=t.comp.shift(),o=null,i=[];for(;t.comp.length;)if(i=[],n.length)o&&e.push(o),r.push(n),o=t.rel.shift(),n=t.comp.shift();else{for(o&&i.push(o);!n.length&&t.comp.length;)n=t.comp.shift(),i.push(t.rel.shift());o=s(i,n,r)}return i.length||n.length?(e.push(o),r.push(n)):(i.push(o),s(i,n,r)),{rel:e,comp:r}}(o):o).comp[0];for(let t,e,r=1;t=o.comp[r],e=o.rel[r-1];r++)n.push(e),n=n.concat(t);return(o=a.partitionNodes(n,function(t){return t.textContent===i.invisibleTimes()&&("operator"===t.type||"infixop"===t.type)})).rel.length?function t(e,r,n){if(!r.length)return e;const o=e.pop(),i=r.shift(),a=n.shift();if(p.isImplicitOp(i)){c.Debugger.getInstance().output("Juxta Heuristic Case 2");const u=(o?[o,i]:[i]).concat(a);return t(e.concat(u),r,n)}if(!o)return c.Debugger.getInstance().output("Juxta Heuristic Case 3"),t([i].concat(a),r,n);const s=a.shift();if(!s){c.Debugger.getInstance().output("Juxta Heuristic Case 9");const a=u.factory.makeBranchNode("infixop",[o,r.shift()],[i],i.textContent);return a.role="implicit",u.run("combine_juxtaposition",a),r.unshift(a),t(e,r,n)}if(p.isOperator(o)||p.isOperator(s))return c.Debugger.getInstance().output("Juxta Heuristic Case 4"),t(e.concat([o,i,s]).concat(a),r,n);let l=null;return p.isImplicitOp(o)&&p.isImplicitOp(s)?(c.Debugger.getInstance().output("Juxta Heuristic Case 5"),o.contentNodes.push(i),o.contentNodes=o.contentNodes.concat(s.contentNodes),o.childNodes.push(s),o.childNodes=o.childNodes.concat(s.childNodes),s.childNodes.forEach(t=>t.parent=o),(i.parent=o).addMathmlNodes(i.mathml),o.addMathmlNodes(s.mathml),l=o):p.isImplicitOp(o)?(c.Debugger.getInstance().output("Juxta Heuristic Case 6"),o.contentNodes.push(i),o.childNodes.push(s),s.parent=o,(i.parent=o).addMathmlNodes(i.mathml),o.addMathmlNodes(s.mathml),l=o):p.isImplicitOp(s)?(c.Debugger.getInstance().output("Juxta Heuristic Case 7"),s.contentNodes.unshift(i),s.childNodes.unshift(o),o.parent=s,(i.parent=s).addMathmlNodes(i.mathml),s.addMathmlNodes(o.mathml),l=s):(c.Debugger.getInstance().output("Juxta Heuristic Case 8"),(l=u.factory.makeBranchNode("infixop",[o,s],[i],i.textContent)).role="implicit"),e.push(l),t(e.concat(a),r,n)}(o.comp.shift(),o.rel,o.comp):n})),u.add(new o.SemanticTreeHeuristic("simple2prefix",t=>(1"braille"===n.default.getInstance().modality&&"identifier"===t.type)),u.add(new o.SemanticTreeHeuristic("detect_cycle",t=>{t.type="matrix",t.role="cycle";const e=t.childNodes[0];return e.type="row",e.role="cycle",e.textContent="",e.contentNodes=[],t},t=>"fenced"===t.type&&"infixop"===t.childNodes[0].type&&"implicit"===t.childNodes[0].role&&t.childNodes[0].childNodes.every(function(t){return"number"===t.type})&&t.childNodes[0].contentNodes.every(function(t){return"space"===t.role})))},7228:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticMathml=void 0;const c=r(5740),n=r(5250),o=r(5609),u=r(3308),p=r(4795);class i extends n.SemanticAbstractParser{constructor(){super("MathML"),this.parseMap_={SEMANTICS:this.semantics_.bind(this),MATH:this.rows_.bind(this),MROW:this.rows_.bind(this),MPADDED:this.rows_.bind(this),MSTYLE:this.rows_.bind(this),MFRAC:this.fraction_.bind(this),MSUB:this.limits_.bind(this),MSUP:this.limits_.bind(this),MSUBSUP:this.limits_.bind(this),MOVER:this.limits_.bind(this),MUNDER:this.limits_.bind(this),MUNDEROVER:this.limits_.bind(this),MROOT:this.root_.bind(this),MSQRT:this.sqrt_.bind(this),MTABLE:this.table_.bind(this),MLABELEDTR:this.tableLabeledRow_.bind(this),MTR:this.tableRow_.bind(this),MTD:this.tableCell_.bind(this),MS:this.text_.bind(this),MTEXT:this.text_.bind(this),MSPACE:this.space_.bind(this),"ANNOTATION-XML":this.text_.bind(this),MI:this.identifier_.bind(this),MN:this.number_.bind(this),MO:this.operator_.bind(this),MFENCED:this.fenced_.bind(this),MENCLOSE:this.enclosed_.bind(this),MMULTISCRIPTS:this.multiscripts_.bind(this),ANNOTATION:this.empty_.bind(this),NONE:this.empty_.bind(this),MACTION:this.action_.bind(this)};const e={type:"identifier",role:"numbersetletter",font:"double-struck"};["C","H","N","P","Q","R","Z","ℂ","ℍ","ℕ","ℙ","ℚ","ℝ","ℤ"].forEach((t=>this.getFactory().defaultMap.add(t,e)).bind(this))}static getAttribute_(t,e,r){if(!t.hasAttribute(e))return r;const n=t.getAttribute(e);return n.match(/^\s*$/)?null:n}parse(t){u.default.getInstance().setNodeFactory(this.getFactory());const e=c.toArray(t.childNodes),r=c.tagName(t),n=this.parseMap_[r],o=(n||this.dummy_.bind(this))(t,e);return p.addAttributes(o,t),-1===["MATH","MROW","MPADDED","MSTYLE","SEMANTICS"].indexOf(r)&&(o.mathml.unshift(t),o.mathmlTree=t),o}semantics_(t,e){return e.length?this.parse(e[0]):this.getFactory().makeEmptyNode()}rows_(t,e){const r=t.getAttribute("semantics");if(r&&r.match("bspr_"))return u.default.proof(t,r,this.parseList.bind(this));let n;return 1===(e=p.purgeNodes(e)).length?"empty"!==(n=this.parse(e[0])).type||n.mathmlTree||(n.mathmlTree=t):n=u.default.getInstance().row(this.parseList(e)),n.mathml.unshift(t),n}fraction_(t,e){if(!e.length)return this.getFactory().makeEmptyNode();var r=this.parse(e[0]),e=e[1]?this.parse(e[1]):this.getFactory().makeEmptyNode();return u.default.getInstance().fractionLikeNode(r,e,t.getAttribute("linethickness"),"true"===t.getAttribute("bevelled"))}limits_(t,e){return u.default.getInstance().limitNode(c.tagName(t),this.parseList(e))}root_(t,e){return e[1]?this.getFactory().makeBranchNode("root",[this.parse(e[1]),this.parse(e[0])],[]):this.sqrt_(t,e)}sqrt_(t,e){e=this.parseList(p.purgeNodes(e));return this.getFactory().makeBranchNode("sqrt",[u.default.getInstance().row(e)],[])}table_(t,e){const r=t.getAttribute("semantics");if(r&&r.match("bspr_"))return u.default.proof(t,r,this.parseList.bind(this));const n=this.getFactory().makeBranchNode("table",this.parseList(e),[]);return n.mathmlTree=t,u.default.tableToMultiline(n),n}tableRow_(t,e){const r=this.getFactory().makeBranchNode("row",this.parseList(e),[]);return r.role="table",r}tableLabeledRow_(t,e){if(!e.length)return this.tableRow_(t,e);const r=this.parse(e[0]),n=(r.role="label",this.getFactory().makeBranchNode("row",this.parseList(e.slice(1)),[r]));return n.role="table",n}tableCell_(t,e){e=this.parseList(p.purgeNodes(e)),e=e.length?1===e.length&&o.isType(e[0],"empty")?e:[u.default.getInstance().row(e)]:[];const r=this.getFactory().makeBranchNode("cell",e,[]);return r.role="table",r}space_(t,e){const r=t.getAttribute("width"),n=r&&r.match(/[a-z]*$/);if(!n)return this.empty_(t,e);var o=n[0],i=parseFloat(r.slice(0,n.index)),o={cm:.4,pc:.5,em:.5,ex:1,in:.15,pt:5,mm:5}[o];if(!o||isNaN(i)||it.parent=e),"CONTENT"===n.tagName(r)?e.contentNodes=t:e.childNodes=t}}querySelectorAll(r){let n=[];for(let t,e=0;t=this.childNodes[e];e++)n=n.concat(t.querySelectorAll(r));for(let t,e=0;t=this.contentNodes[e];e++)n=n.concat(t.querySelectorAll(r));return r(this)&&n.unshift(this),n}xml(o,i){function t(t,e){const r=e.map(function(t){return t.xml(o,i)}),n=o.createElementNS("",t);for(let t,e=0;t=r[e];e++)n.appendChild(t);return n}const e=o.createElementNS("",this.type);return i||this.xmlAttributes(e),e.textContent=this.textContent,0");return n.serializeXml(this.xml(e,t))}allAttributes(){const t=[];return t.push(["role",this.role]),"unknown"!==this.font&&t.push(["font",this.font]),Object.keys(this.annotation).length&&t.push(["annotation",this.xmlAnnotation()]),this.embellished&&t.push(["embellished",this.embellished]),this.fencePointer&&t.push(["fencepointer",this.fencePointer]),t.push(["id",this.id.toString()]),t}xmlAnnotation(){const e=[];for(const r in this.annotation)this.annotation[r].forEach(function(t){e.push(r+":"+t)});return e.join(";")}toJson(){const r={};r.type=this.type;var n=this.allAttributes();for(let t,e=0;t=n[e];e++)r[t[0]]=t[1].toString();return this.textContent&&(r.$t=this.textContent),this.childNodes.length&&(r.children=this.childNodes.map(function(t){return t.toJson()})),this.contentNodes.length&&(r.content=this.contentNodes.map(function(t){return t.toJson()})),r}updateContent(t,e){var e=e?t.replace(/^[ \f\n\r\t\v\u200b]*/,"").replace(/[ \f\n\r\t\v\u200b]*$/,""):t.trim();this.textContent!==(t=t&&!e?t:e)&&(e=(0,o.lookupMeaning)(t),this.textContent=t,this.role=e.role,this.type=e.type,this.font=e.font)}addMathmlNodes(r){for(let t,e=0;t=r[e];e++)-1===this.mathml.indexOf(t)&&this.mathml.push(t)}appendChild(t){this.childNodes.push(t),this.addMathmlNodes(t.mathml),t.parent=this}replaceChild(e,r){var t,n=this.childNodes.indexOf(e);-1!==n&&(e.parent=null,(r.parent=this).childNodes[n]=r,n=e.mathml.filter(function(t){return-1===r.mathml.indexOf(t)}),t=r.mathml.filter(function(t){return-1===e.mathml.indexOf(t)}),this.removeMathmlNodes(n),this.addMathmlNodes(t))}appendContentNode(t){t&&(this.contentNodes.push(t),this.addMathmlNodes(t.mathml),t.parent=this)}removeContentNode(t){t&&-1!==(t=this.contentNodes.indexOf(t))&&this.contentNodes.slice(t,1)}equals(n){if(!n)return!1;if(this.type!==n.type||this.role!==n.role||this.textContent!==n.textContent||this.childNodes.length!==n.childNodes.length||this.contentNodes.length!==n.contentNodes.length)return!1;for(let t,e,r=0;t=this.childNodes[r],e=n.childNodes[r];r++)if(!t.equals(e))return!1;for(let t,e,r=0;t=this.contentNodes[r],e=n.contentNodes[r];r++)if(!t.equals(e))return!1;return!0}displayTree(){console.info(this.displayTree_(0))}addAnnotation(t,e){e&&this.addAnnotation_(t,e)}getAnnotation(t){return this.annotation[t]||[]}hasAnnotation(t,e){const r=this.annotation[t];return!!r&&-1!==r.indexOf(e)}parseAnnotation(t){const r=t.split(";");for(let t=0,e=r.length;ti(t,"infixop")))return!1}return!0},n.isPrefixFunctionBoundary=function(t){return c(t)&&!s(t,"division")||i(t,"appl")||l(t)},n.isBigOpBoundary=function(t){return c(t)||l(t)},n.isIntegralDxBoundary=function(t,e){return!!e&&i(e,"identifier")&&r.lookupSecondary("d",t.textContent)},n.isIntegralDxBoundarySingle=function(t){var e;return!!i(t,"identifier")&&((e=t.textContent[0])&&t.textContent[1]&&r.lookupSecondary("d",e))},n.isGeneralFunctionBoundary=l,n.isEmbellished=function(t){return t.embellished||(r.isEmbellishedType(t.type)?t.type:null)},n.isOperator=c,n.isRelation=u,n.isPunctuation=p,n.isFence=h,n.isElligibleEmbellishedFence=function(t){return!(!t||!h(t))&&(!t.embellished||function t(e){return!e.embellished||!(i(e,"tensor")&&(!i(e.childNodes[1],"empty")||!i(e.childNodes[2],"empty"))&&(!i(e.childNodes[3],"empty")||!i(e.childNodes[4],"empty")))&&(!s(e,"close")||!i(e,"tensor"))&&(!s(e,"open")||!i(e,"subscript")&&!i(e,"superscript"))&&t(e.childNodes[0])}(t))},n.isTableOrMultiline=d,n.tableIsMatrixOrVector=function(t){return!!t&&f(t)&&d(t.childNodes[0])},n.isFencedElement=f,n.tableIsCases=function(t,e){return 0=r)){const o=n.childNodes[0].role;"unknown"!==o&&t.childNodes.every(function(t){t=t.childNodes[0];return!t||t.role===o&&(c.isType(t,"relation")||c.isType(t,"relseq"))})&&(t.role=o)}}static classifyTable(t){var e=y.computeColumns_(t);y.classifyByColumns_(t,e,"equality")||y.classifyByColumns_(t,e,"inequality",["equality"])||y.classifyByColumns_(t,e,"arrow")||y.detectCaleyTable(t)}static detectCaleyTable(t){if(!t.mathmlTree)return!1;const e=t.mathmlTree,r=e.getAttribute("columnlines"),n=e.getAttribute("rowlines");return!(!r||!n||!y.cayleySpacing(r)||!y.cayleySpacing(n)||(t.role="cayley",0))}static cayleySpacing(t){const e=t.split(" ");return("solid"===e[0]||"dashed"===e[0])&&e.slice(1).every(t=>"none"===t)}static proof(t,e,r){e=y.separateSemantics(e);return y.getInstance().proof(t,e,r)}static findSemantics(t,e,r){r=null==r?null:r,t=y.getSemantics(t);return!(!t||!t[e]||null!=r&&t[e]!==r)}static getSemantics(t){t=t.getAttribute("semantics");return t?y.separateSemantics(t):null}static removePrefix(t){const[,...e]=t.split("_");return e.join("_")}static separateSemantics(t){const r={};return t.split(";").forEach(function(t){var[t,e]=t.split(":");r[y.removePrefix(t)]=e}),r}static matchSpaces_(r,n){for(let t,e=0;t=n[e];e++){const n=r[e].mathmlTree,i=r[e+1].mathmlTree;var o;n&&i&&((o=n.nextSibling)&&o!==i&&(o=y.getSpacer_(o))&&(t.mathml.push(o),t.mathmlTree=o,t.role="space"))}}static getSpacer_(t){if("MSPACE"===m.tagName(t))return t;for(;u.hasEmptyTag(t)&&1===t.childNodes.length;)if(t=t.childNodes[0],"MSPACE"===m.tagName(t))return t;return null}static fenceToPunct_(t){var e=y.FENCE_TO_PUNCT_[t.role];if(e){for(;t.embellished;)t.embellished="punctuation",c.isRole(t,"subsup")||c.isRole(t,"underover")||(t.role=e),t=t.childNodes[0];t.type="punctuation",t.role=e}}static classifyFunction_(e,r){if("appl"===e.type||"bigop"===e.type||"integral"===e.type)return"";if(r[0]&&r[0].textContent===s.functionApplication()){y.getInstance().funcAppls[e.id]=r.shift();let t="simple function";return o.run("simple2prefix",e),"prefix function"!==e.role&&"limit function"!==e.role||(t=e.role),y.propagateFunctionRole_(e,t),"prefix"}return y.CLASSIFY_FUNCTION_[e.role]||(c.isSimpleFunctionHead(e)?"simple":"")}static propagateFunctionRole_(t,e){t&&"infixop"!==t.type&&(c.isRole(t,"subsup")||c.isRole(t,"underover")||(t.role=e),y.propagateFunctionRole_(t.childNodes[0],e))}static getFunctionOp_(r,n){if(n(r))return r;for(let t,e=0;t=r.childNodes[e];e++){const r=y.getFunctionOp_(t,n);if(r)return r}return null}static tableToMatrixOrVector_(t){const r=t.childNodes[0];c.isType(r,"multiline")?y.tableToVector_(t):y.tableToMatrix_(t),t.contentNodes.forEach(r.appendContentNode.bind(r));for(let t,e=0;t=r.childNodes[e];e++)y.assignRoleToRow_(t,y.getComponentRoles_(r));return r.parent=null,r}static tableToVector_(t){const e=t.childNodes[0];e.type="vector",1!==e.childNodes.length?y.binomialForm_(e):y.tableToSquare_(t)}static binomialForm_(t){c.isBinomial(t)&&(t.role="binomial",t.childNodes[0].role="binomial",t.childNodes[1].role="binomial")}static tableToMatrix_(t){const e=t.childNodes[0];e.type="matrix",e.childNodes&&0t.match(/[^\s]/)),r=e.map(s.lookupMeaning);if(r.every(function(t){return"number"===t.type&&"integer"===t.role||"punctuation"===t.type&&"comma"===t.role}))return t.role="integer",void("0"===e[0]&&t.addAnnotation("general","basenumber"));r.every(function(t){return"number"===t.type&&"integer"===t.role||"punctuation"===t.type})?t.role="float":t.role="othernumber"}}static exprFont_(t){var e;"unknown"===t.font&&(e=[...t.textContent].map(s.lookupMeaning).reduce(function(t,e){return t&&e.font&&"unknown"!==e.font&&e.font!==t?"unknown"===t?e.font:null:t},"unknown"))&&(t.font=e)}static purgeFences_(e){const r=e.rel,n=e.comp,o=[],i=[];for(;0y.isPureRelation_(t,r))||2===e.length&&(y.testColumns_(e,1,t=>y.isEndRelation_(t,r)||y.isPureRelation_(t,r))||y.testColumns_(e,0,t=>y.isEndRelation_(t,r,!0)||y.isPureRelation_(t,r))))&&(t.role=r,!0)}static isEndRelation_(t,e,r){r=r?t.childNodes.length-1:0;return c.isType(t,"relseq")&&c.isRole(t,e)&&c.isType(t.childNodes[r],"empty")}static isPureRelation_(t,e){return c.isType(t,"relation")&&c.isRole(t,e)}static computeColumns_(e){const n=[];for(let r,t=0;r=e.childNodes[t];t++)for(let t,e=0;t=r.childNodes[e];e++)n[e]?n[e].push(t):n[e]=[t];return n}static testColumns_(t,e,r){const n=t[e];return!!n&&n.some(function(t){return t.childNodes.length&&r(t.childNodes[0])})&&n.every(function(t){return!t.childNodes.length||r(t.childNodes[0])})}setNodeFactory(t){y.getInstance().factory_=t,o.updateFactory(y.getInstance().factory_)}getNodeFactory(){return y.getInstance().factory_}identifierNode(t,e,r){if("MathML-Unit"===r)t.type="identifier",t.role="unit";else if(!e&&1===t.textContent.length&&("integer"===t.role||"latinletter"===t.role||"greekletter"===t.role)&&"normal"===t.font)return t.font="italic",o.run("simpleNamedFunction",t);return"unknown"===t.type&&(t.type="identifier"),y.exprFont_(t),o.run("simpleNamedFunction",t)}implicitNode(t){if(t=y.getInstance().getMixedNumbers_(t),1===(t=y.getInstance().combineUnits_(t)).length)return t[0];t=y.getInstance().implicitNode_(t);return o.run("combine_juxtaposition",t)}text(t,e){return y.exprFont_(t),t.type="text","MS"===e?t.role="string":"MSPACE"!==e&&!t.textContent.match(/^\s*$/)||(t.role="space"),t}row(t){return 0===(t=t.filter(function(t){return!c.isType(t,"empty")})).length?y.getInstance().factory_.makeEmptyNode():(t=y.getInstance().getFencesInRow_(t),t=y.getInstance().tablesInRow(t),t=y.getInstance().getPunctuationInRow_(t),t=y.getInstance().getTextInRow_(t),t=y.getInstance().getFunctionsInRow_(t),y.getInstance().relationsInRow_(t))}limitNode(t,e){if(!e.length)return y.getInstance().factory_.makeEmptyNode();let r,n=e[0],o="unknown";if(!e[1])return n;if(c.isLimitBase(n)){var i=(r=y.MML_TO_LIMIT_[t]).length;if(o=r.type,e=e.slice(0,r.length+1),1===i&&c.isAccent(e[1])||2===i&&c.isAccent(e[1])&&c.isAccent(e[2]))return r=y.MML_TO_BOUNDS_[t],y.getInstance().accentNode_(n,e,r.type,r.length,r.accent);if(2===i){if(c.isAccent(e[1]))return n=y.getInstance().accentNode_(n,[n,e[1]],{MSUBSUP:"subscript",MUNDEROVER:"underscore"}[t],1,!0),e[2]?y.getInstance().makeLimitNode_(n,[n,e[2]],null,"limupper"):n;if(e[2]&&c.isAccent(e[2]))return n=y.getInstance().accentNode_(n,[n,e[2]],{MSUBSUP:"superscript",MUNDEROVER:"overscore"}[t],1,!0),y.getInstance().makeLimitNode_(n,[n,e[1]],null,"limlower");e[i]||(o="limlower")}return y.getInstance().makeLimitNode_(n,e,null,o)}return r=y.MML_TO_BOUNDS_[t],y.getInstance().accentNode_(n,e,r.type,r.length,r.accent)}tablesInRow(t){let r=u.partitionNodes(t,c.tableIsMatrixOrVector),n=[];for(let t,e=0;t=r.rel[e];e++)(n=n.concat(r.comp.shift())).push(y.tableToMatrixOrVector_(t));n=n.concat(r.comp.shift()),r=u.partitionNodes(n,c.isTableOrMultiline),n=[];for(let t,e=0;t=r.rel[e];e++){const o=r.comp.shift();c.tableIsCases(t,o)&&y.tableToCases_(t,o.pop()),(n=n.concat(o)).push(t)}return n.concat(r.comp.shift())}mfenced(e,r,t,n){if(t&&0{r.push(y.getInstance().factory_.makeContentNode(e())),r.push(t)}),n=r}return e&&r?y.getInstance().horizontalFencedNode_(y.getInstance().factory_.makeContentNode(e),y.getInstance().factory_.makeContentNode(r),n):(e&&n.unshift(y.getInstance().factory_.makeContentNode(e)),r&&n.push(y.getInstance().factory_.makeContentNode(r)),y.getInstance().row(n))}fractionLikeNode(t,e,r,n){let o;if(n||!u.isZeroLength(r))return o=y.getInstance().fractionNode_(t,e),n&&o.addAnnotation("general","bevelled"),o;{const r=y.getInstance().factory_.makeBranchNode("line",[t],[]),n=y.getInstance().factory_.makeBranchNode("line",[e],[]);return o=y.getInstance().factory_.makeBranchNode("multiline",[r,n],[]),y.binomialForm_(o),y.classifyMultiline(o),o}}tensor(t,e,r,n,o){const i=y.getInstance().factory_.makeBranchNode("tensor",[t,y.getInstance().scriptNode_(e,"leftsub"),y.getInstance().scriptNode_(r,"leftsuper"),y.getInstance().scriptNode_(n,"rightsub"),y.getInstance().scriptNode_(o,"rightsuper")],[]);return i.role=t.role,i.embellished=c.isEmbellished(t),i}pseudoTensor(t,e,r){var n=t=>!c.isType(t,"empty"),o=e.filter(n).length,n=r.filter(n).length;if(!o&&!n)return t;const i=o?n?"MSUBSUP":"MSUB":"MSUP",a=[t];return o&&a.push(y.getInstance().scriptNode_(e,"rightsub",!0)),n&&a.push(y.getInstance().scriptNode_(r,"rightsuper",!0)),y.getInstance().limitNode(i,a)}font(t){return y.MATHJAX_FONTS[t]||t}proof(t,e,r){if(e.inference||e.axiom||console.log("Noise"),e.axiom){const e=y.getInstance().cleanInference(t.childNodes),n=e.length?y.getInstance().factory_.makeBranchNode("inference",r(e),[]):y.getInstance().factory_.makeEmptyNode();return n.role="axiom",n.mathmlTree=t,n}const n=y.getInstance().inference(t,e,r);return e.proof&&(n.role="proof",n.childNodes[0].role="final"),n}inference(t,e,r){if(e.inferenceRule){const e=y.getInstance().getFormulas(t,[],r);return y.getInstance().factory_.makeBranchNode("inference",[e.conclusion,e.premises],[])}const n=e.labelledRule,o=m.toArray(t.childNodes),i=[],a=("left"!==n&&"both"!==n||i.push(y.getInstance().getLabel(t,o,r,"left")),"right"!==n&&"both"!==n||i.push(y.getInstance().getLabel(t,o,r,"right")),y.getInstance().getFormulas(t,o,r)),s=y.getInstance().factory_.makeBranchNode("inference",[a.conclusion,a.premises],i);return s.mathmlTree=t,s}getLabel(t,e,r,n){const o=y.getInstance().findNestedRow(e,"prooflabel",n),i=y.getInstance().factory_.makeBranchNode("rulelabel",r(m.toArray(o.childNodes)),[]);return i.role=n,i.mathmlTree=o,i}getFormulas(t,e,r){const n=e.length?y.getInstance().findNestedRow(e,"inferenceRule"):t,o="up"===y.getSemantics(n).inferenceRule,i=o?n.childNodes[1]:n.childNodes[0],a=o?n.childNodes[0]:n.childNodes[1],s=i.childNodes[0].childNodes[0],l=m.toArray(s.childNodes[0].childNodes),c=[];let u=1;for(const t of l)u%2&&c.push(t.childNodes[0]),u++;const p=r(c),h=r(m.toArray(a.childNodes[0].childNodes))[0],d=y.getInstance().factory_.makeBranchNode("premises",p,[]),f=(d.mathmlTree=s,y.getInstance().factory_.makeBranchNode("conclusion",[h],[]));return f.mathmlTree=a.childNodes[0].childNodes[0],{conclusion:f,premises:d}}findNestedRow(t,e,r){return y.getInstance().findNestedRow_(t,e,0,r)}cleanInference(t){return m.toArray(t).filter(function(t){return"MSPACE"!==m.tagName(t)})}operatorNode(t){return"unknown"===t.type&&(t.type="operator"),o.run("multioperator",t)}implicitNode_(t){const e=y.getInstance().factory_.makeMultipleContentNodes(t.length-1,s.invisibleTimes()),r=(y.matchSpaces_(t,e),y.getInstance().infixNode_(t,e[0]));return r.role="implicit",e.forEach(function(t){t.parent=r}),r.contentNodes=e,r}infixNode_(t,e){const r=y.getInstance().factory_.makeBranchNode("infixop",t,[e],u.getEmbellishedInner(e).textContent);return r.role=e.role,o.run("propagateSimpleFunction",r)}explicitMixed_(r){var n=u.partitionNodes(r,function(t){return t.textContent===s.invisiblePlus()});if(!n.rel.length)return r;let o=[];for(let t,e=0;t=n.rel[e];e++){const s=n.comp[e],i=n.comp[e+1],a=s.length-1;if(s[a]&&i[0]&&c.isType(s[a],"number")&&!c.isRole(s[a],"mixed")&&c.isType(i[0],"fraction")){const r=y.getInstance().factory_.makeBranchNode("number",[s[a],i[0]],[]);r.role="mixed",(o=o.concat(s.slice(0,a))).push(r),i.shift()}else(o=o.concat(s)).push(t)}return o.concat(n.comp[n.comp.length-1])}concatNode_(t,e,r){if(0===e.length)return t;const n=e.map(function(t){return u.getEmbellishedInner(t).textContent}).join(" "),o=y.getInstance().factory_.makeBranchNode(r,[t],e,n);return 1c.isRole(t,"subtraction"));let n=y.getInstance().concatNode_(t,r.comp.pop(),"prefixop");for(1===n.contentNodes.length&&"addition"===n.contentNodes[0].role&&"+"===n.contentNodes[0].textContent&&(n.role="positive");0c.isType(t,"text"));if(0===r.rel.length)return t;const n=[];let o=r.comp[0];0c.isRole(t,"open");if(0===t.length){const t=n.shift();for(;0{t=t.type;return"punctuation"===t||"text"===t||"operator"===t||"relation"===t},t=u.partitionNodes(r,function(t){if(!c.isPunctuation(t))return!1;if(c.isPunctuation(t)&&!c.isRole(t,"ellipsis"))return!0;t=r.indexOf(t);if(0===t)return!r[1]||!n(r[1]);var e=r[t-1];if(t===r.length-1)return!n(e);t=r[t+1];return!n(e)||!n(t)});if(0===t.rel.length)return r;const e=[];let o=t.comp.shift(),i=(0c.isRole(t,"dummy"))?r.role="text":t.every(t=>c.isRole(t,"space"))?r.role="space":r.role="sequence",r}dummyNode_(t){const e=y.getInstance().factory_.makeMultipleContentNodes(t.length-1,s.invisibleComma());return e.forEach(function(t){t.role="dummy"}),y.getInstance().punctuatedNode_(t,e)}accentRole_(t,e){if(!c.isAccent(t))return!1;var r=t.textContent,r=s.lookupSecondary("bar",r)||s.lookupSecondary("tilde",r)||t.role;return t.role="underscore"===e?"underaccent":"overaccent",t.addAnnotation("accent",r),!0}accentNode_(t,e,r,n,o){var i=(e=e.slice(0,n+1))[1],a=e[2];let s;if(!o&&a&&((s=y.getInstance().factory_.makeBranchNode("subscript",[t,i],[])).role="subsup",e=[s,a],r="superscript"),o){const n=y.getInstance().accentRole_(i,r);a&&(r=y.getInstance().accentRole_(a,"overscore")&&!n?(e=[s=y.getInstance().factory_.makeBranchNode("overscore",[t,a],[]),i],"underscore"):(e=[s=y.getInstance().factory_.makeBranchNode("underscore",[t,i],[]),a],"overscore"),s.role="underover")}return y.getInstance().makeLimitNode_(t,e,s,r)}makeLimitNode_(t,e,r,n){if("limupper"===n&&"limlower"===t.type)return t.childNodes.push(e[1]),(e[1].parent=t).type="limboth",t;if("limlower"===n&&"limupper"===t.type)return t.childNodes.splice(1,-1,e[1]),(e[1].parent=t).type="limboth",t;const o=y.getInstance().factory_.makeBranchNode(n,e,[]),i=c.isEmbellished(t);return r&&(r.embellished=i),o.embellished=i,o.role=t.role,o}getFunctionsInRow_(t,e){const r=e||[];if(0===t.length)return r;var e=t.shift(),n=y.classifyFunction_(e,t);if(!n)return r.push(e),y.getInstance().getFunctionsInRow_(t,r);t=y.getInstance().getFunctionsInRow_(t,[]),e=y.getInstance().getFunctionArgs_(e,t,n);return r.concat(e)}getFunctionArgs_(t,e,r){let n,o,i;switch(r){case"integral":{const r=y.getInstance().getIntegralArgs_(e);if(!r.intvar&&!r.integrand.length)return r.rest.unshift(t),r.rest;const n=y.getInstance().row(r.integrand);return i=y.getInstance().integralNode_(t,n,r.intvar),r.rest.unshift(i),r.rest}case"prefix":if(e[0]&&"fenced"===e[0].type){const r=e.shift();return c.isNeutralFence(r)||(r.role="leftright"),i=y.getInstance().functionNode_(t,r),e.unshift(i),e}if((n=u.sliceNodes(e,c.isPrefixFunctionBoundary)).head.length)o=y.getInstance().row(n.head),n.div&&n.tail.unshift(n.div);else{if(!n.div||!c.isType(n.div,"appl"))return e.unshift(t),e;o=n.div}return i=y.getInstance().functionNode_(t,o),n.tail.unshift(i),n.tail;case"bigop":return(n=u.sliceNodes(e,c.isBigOpBoundary)).head.length?(o=y.getInstance().row(n.head),i=y.getInstance().bigOpNode_(t,o),n.div&&n.tail.unshift(n.div),n.tail.unshift(i),n.tail):(e.unshift(t),e);default:{if(0===e.length)return[t];const r=e[0];return"fenced"===r.type&&!c.isNeutralFence(r)&&c.isSimpleFunctionScope(r)?(r.role="leftright",y.propagateFunctionRole_(t,"simple function"),i=y.getInstance().functionNode_(t,e.shift()),e.unshift(i)):e.unshift(t),e}}}getIntegralArgs_(t,e=[]){if(0===t.length)return{integrand:e,intvar:null,rest:t};const r=t[0];if(c.isGeneralFunctionBoundary(r))return{integrand:e,intvar:null,rest:t};if(c.isIntegralDxBoundarySingle(r))return r.role="integral",{integrand:e,intvar:r,rest:t.slice(1)};if(t[1]&&c.isIntegralDxBoundary(r,t[1])){const n=y.getInstance().prefixNode_(t[1],[r]);return n.role="integral",{integrand:e,intvar:n,rest:t.slice(2)}}return e.push(t.shift()),y.getInstance().getIntegralArgs_(t,e)}functionNode_(t,e){const r=y.getInstance().factory_.makeContentNode(s.functionApplication()),n=y.getInstance().funcAppls[t.id];n&&(r.mathmlTree=n.mathmlTree,r.mathml=n.mathml,r.annotation=n.annotation,r.attributes=n.attributes,delete y.getInstance().funcAppls[t.id]),r.type="punctuation",r.role="application";var o=y.getFunctionOp_(t,function(t){return c.isType(t,"function")||c.isType(t,"identifier")&&c.isRole(t,"simple function")});return y.getInstance().functionalNode_("appl",[t,e],o,[r])}bigOpNode_(t,e){var r=y.getFunctionOp_(t,t=>c.isType(t,"largeop"));return y.getInstance().functionalNode_("bigop",[t,e],r,[])}integralNode_(t,e,r){e=e||y.getInstance().factory_.makeEmptyNode(),r=r||y.getInstance().factory_.makeEmptyNode();var n=y.getFunctionOp_(t,t=>c.isType(t,"largeop"));return y.getInstance().functionalNode_("integral",[t,e,r],n,[])}functionalNode_(t,e,r,n){var o=e[0];let i;r&&(i=r.parent,n.push(r));const a=y.getInstance().factory_.makeBranchNode(t,e,n);return a.role=o.role,i&&(r.parent=i),a}fractionNode_(t,e){const r=y.getInstance().factory_.makeBranchNode("fraction",[t,e],[]);return r.role=r.childNodes.every(function(t){return c.isType(t,"number")&&c.isRole(t,"integer")})?"vulgar":r.childNodes.every(c.isPureUnit)?"unit":"division",o.run("propagateSimpleFunction",r)}scriptNode_(t,e,r){let n;switch(t.length){case 0:n=y.getInstance().factory_.makeEmptyNode();break;case 1:if(n=t[0],r)return n;break;default:n=y.getInstance().dummyNode_(t)}return n.role=e,n}findNestedRow_(r,n,o,i){if(3{return t.concat((t=e,l.simpleCollapseStructure(t)?[t]:l.contentCollapseStructure(t[1])?t.slice(2):t.slice(1)))},[])}static fromStructure(t,e){return new l(l.tree_(t,e.root))}static combineContentChildren(t,e,r){switch(t.type){case"relseq":case"infixop":case"multirel":return n.interleaveLists(r,e);case"prefixop":return e.concat(r);case"postfixop":return r.concat(e);case"fenced":return r.unshift(e[0]),r.push(e[1]),r;case"appl":return[r[0],e[0],r[1]];case"root":return[r[1],r[0]];case"row":case"line":return e.length&&r.unshift(e[0]),r;default:return r}}static makeSexp_(t){return l.simpleCollapseStructure(t)?t.toString():l.contentCollapseStructure(t)?"(c "+t.slice(1).map(l.makeSexp_).join(" ")+")":"("+t.map(l.makeSexp_).join(" ")+")"}static fromString_(t){let e=t.replace(/\(/g,"[");return e=(e=(e=e.replace(/\)/g,"]")).replace(/ /g,",")).replace(/c/g,'"c"'),JSON.parse(e)}static fromNode_(t){if(!t)return[];const e=t.contentNodes;let r;e.length&&(r=e.map(l.fromNode_)).unshift("c");const n=t.childNodes;if(!n.length)return e.length?[t.id,r]:t.id;const o=n.map(l.fromNode_);return e.length&&o.unshift(r),o.unshift(t.id),o}static tree_(r,t){if(!t)return[];if(!t.childNodes.length)return t.id;const e=t.id,n=[e],o=a.evalXPath(`.//self::*[@${s.Attribute.ID}=${e}]`,r)[0],i=l.combineContentChildren(t,t.contentNodes.map(function(t){return t}),t.childNodes.map(function(t){return t}));o&&l.addOwns_(o,i);for(let t,e=0;t=i[e];e++)n.push(l.tree_(r,t));return n}static addOwns_(t,e){const r=t.getAttribute(s.Attribute.COLLAPSED),n=r?l.realLeafs_(l.fromString(r).array):e.map(t=>t.id);t.setAttribute(s.Attribute.OWNS,n.join(" "))}static realLeafs_(e){if(l.simpleCollapseStructure(e))return[e];if(l.contentCollapseStructure(e))return[];let r=[];for(let t=1;tl.simpleCollapseStructure(t)?t:l.contentCollapseStructure(t)?t[1]:t[0]):[]}subtreeNodes(t){if(!this.isRoot(t))return[];const r=(t,e)=>{l.simpleCollapseStructure(t)?e.push(t):(t=l.contentCollapseStructure(t)?t.slice(1):t).forEach(t=>r(t,e))},e=this.levelsMap[t],n=[];return r(e.slice(1),n),n}}e.SemanticSkeleton=l},7075:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTree=void 0;const n=r(5740),o=r(7630),i=r(9265),a=r(7228),s=r(5952),l=r(5609);r(94);class c{constructor(t){this.mathml=t,this.parser=new a.SemanticMathml,this.root=this.parser.parse(t),this.collator=this.parser.getFactory().leafMap.collateMeaning();var e=this.collator.newDefault();e&&(this.parser=new a.SemanticMathml,this.parser.getFactory().defaultMap=e,this.root=this.parser.parse(t)),u.visit(this.root,{}),(0,o.annotate)(this.root)}static empty(){const t=n.parseInput(""),e=new c(t);return e.mathml=t,e}static fromNode(t,e){const r=c.empty();return r.root=t,e&&(r.mathml=e),r}static fromRoot(t,e){let r=t;for(;r.parent;)r=r.parent;const n=c.fromNode(r);return e&&(n.mathml=e),n}static fromXml(t){const e=c.empty();return t.childNodes[0]&&(e.root=s.SemanticNode.fromXml(t.childNodes[0])),e}xml(t){const e=n.parseInput(""),r=this.root.xml(e.ownerDocument,t);return e.appendChild(r),e}toString(t){return n.serializeXml(this.xml(t))}formatXml(t){t=this.toString(t);return n.formatXml(t)}displayTree(){this.root.displayTree()}replaceNode(t,e){const r=t.parent;r?r.replaceChild(t,e):this.root=e}toJson(){const t={};return t.stree=this.root.toJson(),t}}e.SemanticTree=c;const u=new i.SemanticVisitor("general","unit",(t,e)=>{if("infixop"===t.type&&("multiplication"===t.role||"implicit"===t.role)){const e=t.childNodes;e.length&&(l.isPureUnit(e[0])||l.isUnitCounter(e[0]))&&t.childNodes.slice(1).every(l.isPureUnit)&&(t.role="unit")}return!1})},4795:function(t,o,e){Object.defineProperty(o,"__esModule",{value:!0}),o.partitionNodes=o.sliceNodes=o.getEmbellishedInner=o.addAttributes=o.isZeroLength=o.purgeNodes=o.isOrphanedGlyph=o.hasDisplayTag=o.hasEmptyTag=o.hasIgnoreTag=o.hasLeafTag=o.hasMathTag=o.directSpeechKeys=o.DISPLAYTAGS=o.EMPTYTAGS=o.IGNORETAGS=o.LEAFTAGS=void 0;const i=e(5740);function r(t){return!!t&&-1!==o.LEAFTAGS.indexOf(i.tagName(t))}function a(r,n,o){o&&r.reverse();const i=[];for(let t,e=0;t=r[e];e++){if(n(t))return o?{head:r.slice(e+1).reverse(),div:t,tail:i.reverse()}:{head:i,div:t,tail:r.slice(e+1)};i.push(t)}return o?{head:[],div:null,tail:i.reverse()}:{head:i,div:null,tail:[]}}o.LEAFTAGS=["MO","MI","MN","MTEXT","MS","MSPACE"],o.IGNORETAGS=["MERROR","MPHANTOM","MALIGNGROUP","MALIGNMARK","MPRESCRIPTS","ANNOTATION","ANNOTATION-XML"],o.EMPTYTAGS=["MATH","MROW","MPADDED","MACTION","NONE","MSTYLE","SEMANTICS"],o.DISPLAYTAGS=["MROOT","MSQRT"],o.directSpeechKeys=["aria-label","exact-speech","alt"],o.hasMathTag=function(t){return!!t&&"MATH"===i.tagName(t)},o.hasLeafTag=r,o.hasIgnoreTag=function(t){return!!t&&-1!==o.IGNORETAGS.indexOf(i.tagName(t))},o.hasEmptyTag=function(t){return!!t&&-1!==o.EMPTYTAGS.indexOf(i.tagName(t))},o.hasDisplayTag=function(t){return!!t&&-1!==o.DISPLAYTAGS.indexOf(i.tagName(t))},o.isOrphanedGlyph=function(t){return!!t&&"MGLYPH"===i.tagName(t)&&!r(t.parentNode)},o.purgeNodes=function(r){const n=[];for(let t,e=0;t=r[e];e++)if(t.nodeType===i.NodeType.ELEMENT_NODE){const r=i.tagName(t);-1!==o.IGNORETAGS.indexOf(r)||-1!==o.EMPTYTAGS.indexOf(r)&&0===t.childNodes.length||n.push(t)}return n},o.isZeroLength=function(t){if(!t)return!1;if(-1!==["negativeveryverythinmathspace","negativeverythinmathspace","negativethinmathspace","negativemediummathspace","negativethickmathspace","negativeverythickmathspace","negativeveryverythickmathspace"].indexOf(t))return!0;t=t.match(/[0-9.]+/);return!!t&&0===parseFloat(t[0])},o.addAttributes=function(e,t){if(t.hasAttributes()){var r=t.attributes;for(let t=r.length-1;0<=t;t--){const n=r[t].name;n.match(/^ext/)&&(e.attributes[n]=r[t].value,e.nobreaking=!0),-1!==o.directSpeechKeys.indexOf(n)&&(e.attributes["ext-speech"]=r[t].value,e.nobreaking=!0),n.match(/texclass$/)&&(e.attributes.texclass=r[t].value),"href"===n&&(e.attributes.href=r[t].value,e.nobreaking=!0)}}},o.getEmbellishedInner=function t(e){return e&&e.embellished&&0n[t.id]=!0),"implicit"!==e.role&&r.push(e.contentNodes.map(t=>t.id))),e.childNodes.length){if("implicit"===e.role){const o=[];let t=[];for(const r of e.childNodes){const e=[];l.visitStree_(r,e,n),e.length<=2&&o.push(e.shift()),t=t.concat(e)}return r.push(o),void t.forEach(t=>r.push(t))}e.childNodes.forEach(t=>l.visitStree_(t,r,n))}}else n[e.id]||r.push(e.id)}getSpeech(t,e){return a.getAttribute(t,this.modality)}generateSpeech(t,e){return this.getRebuilt()||this.setRebuilt(new i.RebuildStree(t)),this.colorLeaves_(t),a.getAttribute(t,this.modality)}colorLeaves_(e){const r=[];l.visitStree_(this.getRebuilt().streeRoot,r,{});for(const t of r){const r=this.contrast.generate();(Array.isArray(t)?t.map(t=>this.colorLeave_(e,t,r)).reduce((t,e)=>t||e,!1):this.colorLeave_(e,t.toString(),r))&&this.contrast.increment()}}colorLeave_(t,e,r){const n=a.getBySemanticId(t,e);return!!n&&(n.setAttribute(this.modality,r),!0)}}e.ColorGenerator=l},6604:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.DirectSpeechGenerator=void 0;const n=r(1204),o=r(6278);class i extends o.AbstractSpeechGenerator{getSpeech(t,e){return n.getAttribute(t,this.modality)}}e.DirectSpeechGenerator=i},3123:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.DummySpeechGenerator=void 0;class n extends r(6278).AbstractSpeechGenerator{getSpeech(t,e){return""}}e.DummySpeechGenerator=n},5858:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.NodeSpeechGenerator=void 0;const n=r(1204),o=r(4598);class i extends o.TreeSpeechGenerator{getSpeech(t,e){return super.getSpeech(t,e),n.getAttribute(t,this.modality)}}e.NodeSpeechGenerator=i},9552:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.generatorMapping_=e.generator=void 0;const n=r(1452),o=r(5152),i=r(6604),a=r(3123),s=r(5858),l=r(597),c=r(4598);e.generator=function(t){return(e.generatorMapping_[t]||e.generatorMapping_.Direct)()},e.generatorMapping_={Adhoc:()=>new n.AdhocSpeechGenerator,Color:()=>new o.ColorGenerator,Direct:()=>new i.DirectSpeechGenerator,Dummy:()=>new a.DummySpeechGenerator,Node:()=>new s.NodeSpeechGenerator,Summary:()=>new l.SummarySpeechGenerator,Tree:()=>new c.TreeSpeechGenerator}},9543:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.computeSummary_=e.retrieveSummary=e.connectAllMactions=e.connectMactions=e.nodeAtPosition_=e.computePrefix_=e.retrievePrefix=e.addPrefix=e.addModality=e.addSpeech=e.recomputeMarkup=e.computeMarkup=e.recomputeSpeech=e.computeSpeech=void 0;const n=r(8290),c=r(5740),o=r(5274),u=r(2298),i=r(2362),a=r(7075),p=r(1204);function s(t){return i.SpeechRuleEngine.getInstance().evaluateNode(t)}function l(t){return s(a.SemanticTree.fromNode(t).xml())}function h(t){t=l(t);return n.markup(t)}function d(t){t=f(t);return n.markup(t)}function f(t){const e=a.SemanticTree.fromRoot(t),r=o.evalXPath('.//*[@id="'+t.id+'"]',e.xml());let n=r[0];return(n=1{const r={};return Object.keys(t).forEach(t=>r[t]=!0),Object.keys(e).forEach(t=>r[t]=!0),Object.keys(r)};u.Domains_.small=e(t.smallPrefix,t.letterTrans),u.Domains_.capital=e(t.capPrefix,t.letterTrans),u.Domains_.digit=e(t.digitPrefix,t.digitTrans)}function c([t,e],r){const n=parseInt(t,16),o=parseInt(e,16),i=[];for(let e=n;e<=o;e++){let t=3<(a=(a=e).toString(16).toUpperCase()).length?a:("000"+a).slice(-4);!1!==r[t]&&(t=r[t]||t,i.push(t))}var a;return i}function d(t){t="normal"!==t&&"fullwidth"!==t&&(p.LOCALE.MESSAGES.font[t]||p.LOCALE.MESSAGES.embellish[t])||"";return(0,r.localeFontCombiner)(t)}function f(o,i,a,t,s,l){var c=d(t);for(let t,e,r,n=0;t=o[n],e=i[n],r=a[n];n++){const o=l?p.LOCALE.ALPHABETS.capPrefix:p.LOCALE.ALPHABETS.smallPrefix,i=l?u.Domains_.capital:u.Domains_.small;y(c.combiner,t,e,r,c.font,o,s,p.LOCALE.ALPHABETS.letterTrans,i)}}function m(n,o,t,i,a){var s=d(t);for(let t,e,r=0;t=n[r],e=o[r];r++){const n=p.LOCALE.ALPHABETS.digitPrefix,o=r+a;y(s.combiner,t,e,o,s.font,n,i,p.LOCALE.ALPHABETS.digitTrans,u.Domains_.digit)}}function y(r,n,o,i,a,s,l,c,u){for(let t,e=0;t=u[e];e++){const u=t in c?c[t]:c.default,p=t in s?s[t]:s.default;h.defineRule(n.toString(),t,"default",l,o,r(u(i),a,p))}}(s=e=u.Font||(u.Font={})).BOLD="bold",s.BOLDFRAKTUR="bold-fraktur",s.BOLDITALIC="bold-italic",s.BOLDSCRIPT="bold-script",s.DOUBLESTRUCK="double-struck",s.FULLWIDTH="fullwidth",s.FRAKTUR="fraktur",s.ITALIC="italic",s.MONOSPACE="monospace",s.NORMAL="normal",s.SCRIPT="script",s.SANSSERIF="sans-serif",s.SANSSERIFITALIC="sans-serif-italic",s.SANSSERIFBOLD="sans-serif-bold",s.SANSSERIFBOLDITALIC="sans-serif-bold-italic",(a=s=u.Embellish||(u.Embellish={})).SUPER="super",a.SUB="sub",a.CIRCLED="circled",a.PARENTHESIZED="parenthesized",a.PERIOD="period",a.NEGATIVECIRCLED="negative-circled",a.DOUBLECIRCLED="double-circled",a.CIRCLEDSANSSERIF="circled-sans-serif",a.NEGATIVECIRCLEDSANSSERIF="negative-circled-sans-serif",a.COMMA="comma",a.SQUARED="squared",a.NEGATIVESQUARED="negative-squared",(n=a=u.Base||(u.Base={})).LATINCAP="latinCap",n.LATINSMALL="latinSmall",n.GREEKCAP="greekCap",n.GREEKSMALL="greekSmall",n.DIGIT="digit",u.Domains_={small:["default"],capital:["default"],digit:["default"]},u.makeDomains_=l,u.generate=function(t){const r=o.default.getInstance().locale;o.default.getInstance().locale=t,i.setLocale(),h.addSymbolRules({locale:t}),l();var n=u.INTERVALS;for(let t,e=0;t=n[e];e++){const u=c(t.interval,t.subst),r=u.map(function(t){return String.fromCodePoint(parseInt(t,16))});"offset"in t?m(u,r,t.font,t.category,t.offset||0):f(u,r,p.LOCALE.ALPHABETS[t.base],t.font,t.category,!!t.capital)}o.default.getInstance().locale=r,i.setLocale()},u.makeInterval=c,u.getFont=d,u.alphabetRules=f,u.numberRules=m,u.makeLetter=y,u.INTERVALS=[{interval:["1D400","1D419"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.BOLD},{interval:["1D41A","1D433"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.BOLD},{interval:["1D56C","1D585"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.BOLDFRAKTUR},{interval:["1D586","1D59F"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.BOLDFRAKTUR},{interval:["1D468","1D481"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.BOLDITALIC},{interval:["1D482","1D49B"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.BOLDITALIC},{interval:["1D4D0","1D4E9"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.BOLDSCRIPT},{interval:["1D4EA","1D503"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.BOLDSCRIPT},{interval:["1D538","1D551"],base:a.LATINCAP,subst:{"1D53A":"2102","1D53F":"210D","1D545":"2115","1D547":"2119","1D548":"211A","1D549":"211D","1D551":"2124"},capital:!0,category:"Lu",font:e.DOUBLESTRUCK},{interval:["1D552","1D56B"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.DOUBLESTRUCK},{interval:["1D504","1D51D"],base:a.LATINCAP,subst:{"1D506":"212D","1D50B":"210C","1D50C":"2111","1D515":"211C","1D51D":"2128"},capital:!0,category:"Lu",font:e.FRAKTUR},{interval:["1D51E","1D537"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.FRAKTUR},{interval:["FF21","FF3A"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.FULLWIDTH},{interval:["FF41","FF5A"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.FULLWIDTH},{interval:["1D434","1D44D"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.ITALIC},{interval:["1D44E","1D467"],base:a.LATINSMALL,subst:{"1D455":"210E"},capital:!1,category:"Ll",font:e.ITALIC},{interval:["1D670","1D689"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.MONOSPACE},{interval:["1D68A","1D6A3"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.MONOSPACE},{interval:["0041","005A"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.NORMAL},{interval:["0061","007A"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.NORMAL},{interval:["1D49C","1D4B5"],base:a.LATINCAP,subst:{"1D49D":"212C","1D4A0":"2130","1D4A1":"2131","1D4A3":"210B","1D4A4":"2110","1D4A7":"2112","1D4A8":"2133","1D4AD":"211B"},capital:!0,category:"Lu",font:e.SCRIPT},{interval:["1D4B6","1D4CF"],base:a.LATINSMALL,subst:{"1D4BA":"212F","1D4BC":"210A","1D4C4":"2134"},capital:!1,category:"Ll",font:e.SCRIPT},{interval:["1D5A0","1D5B9"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.SANSSERIF},{interval:["1D5BA","1D5D3"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.SANSSERIF},{interval:["1D608","1D621"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.SANSSERIFITALIC},{interval:["1D622","1D63B"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.SANSSERIFITALIC},{interval:["1D5D4","1D5ED"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.SANSSERIFBOLD},{interval:["1D5EE","1D607"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.SANSSERIFBOLD},{interval:["1D63C","1D655"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.SANSSERIFBOLDITALIC},{interval:["1D656","1D66F"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.SANSSERIFBOLDITALIC},{interval:["0391","03A9"],base:a.GREEKCAP,subst:{"03A2":"03F4"},capital:!0,category:"Lu",font:e.NORMAL},{interval:["03B0","03D0"],base:a.GREEKSMALL,subst:{"03B0":"2207","03CA":"2202","03CB":"03F5","03CC":"03D1","03CD":"03F0","03CE":"03D5","03CF":"03F1","03D0":"03D6"},capital:!1,category:"Ll",font:e.NORMAL},{interval:["1D6A8","1D6C0"],base:a.GREEKCAP,subst:{},capital:!0,category:"Lu",font:e.BOLD},{interval:["1D6C1","1D6E1"],base:a.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:e.BOLD},{interval:["1D6E2","1D6FA"],base:a.GREEKCAP,subst:{},capital:!0,category:"Lu",font:e.ITALIC},{interval:["1D6FB","1D71B"],base:a.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:e.ITALIC},{interval:["1D71C","1D734"],base:a.GREEKCAP,subst:{},capital:!0,category:"Lu",font:e.BOLDITALIC},{interval:["1D735","1D755"],base:a.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:e.BOLDITALIC},{interval:["1D756","1D76E"],base:a.GREEKCAP,subst:{},capital:!0,category:"Lu",font:e.SANSSERIFBOLD},{interval:["1D76F","1D78F"],base:a.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:e.SANSSERIFBOLD},{interval:["1D790","1D7A8"],base:a.GREEKCAP,subst:{},capital:!0,category:"Lu",font:e.SANSSERIFBOLDITALIC},{interval:["1D7A9","1D7C9"],base:a.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:e.SANSSERIFBOLDITALIC},{interval:["0030","0039"],base:a.DIGIT,subst:{},offset:0,category:"Nd",font:e.NORMAL},{interval:["2070","2079"],base:a.DIGIT,subst:{2071:"00B9",2072:"00B2",2073:"00B3"},offset:0,category:"No",font:s.SUPER},{interval:["2080","2089"],base:a.DIGIT,subst:{},offset:0,category:"No",font:s.SUB},{interval:["245F","2473"],base:a.DIGIT,subst:{"245F":"24EA"},offset:0,category:"No",font:s.CIRCLED},{interval:["3251","325F"],base:a.DIGIT,subst:{},offset:21,category:"No",font:s.CIRCLED},{interval:["32B1","32BF"],base:a.DIGIT,subst:{},offset:36,category:"No",font:s.CIRCLED},{interval:["2474","2487"],base:a.DIGIT,subst:{},offset:1,category:"No",font:s.PARENTHESIZED},{interval:["2487","249B"],base:a.DIGIT,subst:{2487:"1F100"},offset:0,category:"No",font:s.PERIOD},{interval:["2775","277F"],base:a.DIGIT,subst:{2775:"24FF"},offset:0,category:"No",font:s.NEGATIVECIRCLED},{interval:["24EB","24F4"],base:a.DIGIT,subst:{},offset:11,category:"No",font:s.NEGATIVECIRCLED},{interval:["24F5","24FE"],base:a.DIGIT,subst:{},offset:1,category:"No",font:s.DOUBLECIRCLED},{interval:["277F","2789"],base:a.DIGIT,subst:{"277F":"1F10B"},offset:0,category:"No",font:s.CIRCLEDSANSSERIF},{interval:["2789","2793"],base:a.DIGIT,subst:{2789:"1F10C"},offset:0,category:"No",font:s.NEGATIVECIRCLEDSANSSERIF},{interval:["FF10","FF19"],base:a.DIGIT,subst:{},offset:0,category:"Nd",font:e.FULLWIDTH},{interval:["1D7CE","1D7D7"],base:a.DIGIT,subst:{},offset:0,category:"Nd",font:e.BOLD},{interval:["1D7D8","1D7E1"],base:a.DIGIT,subst:{},offset:0,category:"Nd",font:e.DOUBLESTRUCK},{interval:["1D7E2","1D7EB"],base:a.DIGIT,subst:{},offset:0,category:"Nd",font:e.SANSSERIF},{interval:["1D7EC","1D7F5"],base:a.DIGIT,subst:{},offset:0,category:"Nd",font:e.SANSSERIFBOLD},{interval:["1D7F6","1D7FF"],base:a.DIGIT,subst:{},offset:0,category:"Nd",font:e.MONOSPACE},{interval:["1F101","1F10A"],base:a.DIGIT,subst:{},offset:0,category:"No",font:s.COMMA},{interval:["24B6","24CF"],base:a.LATINCAP,subst:{},capital:!0,category:"So",font:s.CIRCLED},{interval:["24D0","24E9"],base:a.LATINSMALL,subst:{},capital:!1,category:"So",font:s.CIRCLED},{interval:["1F110","1F129"],base:a.LATINCAP,subst:{},capital:!0,category:"So",font:s.PARENTHESIZED},{interval:["249C","24B5"],base:a.LATINSMALL,subst:{},capital:!1,category:"So",font:s.PARENTHESIZED},{interval:["1F130","1F149"],base:a.LATINCAP,subst:{},capital:!0,category:"So",font:s.SQUARED},{interval:["1F170","1F189"],base:a.LATINCAP,subst:{},capital:!0,category:"So",font:s.NEGATIVESQUARED},{interval:["1F150","1F169"],base:a.LATINCAP,subst:{},capital:!0,category:"So",font:s.NEGATIVECIRCLED}]},8504:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=e.Comparator=e.ClearspeakPreferences=void 0;const n=r(5897),a=r(4440),i=r(1676),s=r(1676),o=r(2780),l=r(2362);class c extends i.DynamicCstr{constructor(t,e){super(t),this.preference=e}static comparator(){return new p(n.default.getInstance().dynamicCstr,s.DynamicProperties.createProp([i.DynamicCstr.DEFAULT_VALUES[s.Axis.LOCALE]],[i.DynamicCstr.DEFAULT_VALUES[s.Axis.MODALITY]],[i.DynamicCstr.DEFAULT_VALUES[s.Axis.DOMAIN]],[i.DynamicCstr.DEFAULT_VALUES[s.Axis.STYLE]]))}static fromPreference(t){const r=t.split(":"),n={},o=u.getProperties(),i=Object.keys(o);for(let t,e=0;t=r[e];e++){const r=t.split("_");var a;-1!==i.indexOf(r[0])&&((a=r[1])&&a!==c.AUTO&&-1!==o[r[0]].indexOf(a)&&(n[r[0]]=r[1]))}return n}static toPreference(e){const r=Object.keys(e),n=[];for(let t=0;tA(t)||"identifier"===t.tagName)}function T(t){return"text"===t.type||"punctuated"===t.type&&"text"===t.role&&_(t.childNodes[0])&&N(t.childNodes.slice(1))||"identifier"===t.type&&"unit"===t.role||"infixop"===t.type&&("implicit"===t.role||"unit"===t.role)}function N(e){for(let t=0;tt(e,n++)).bind(this),300)}:b)(t))}function g(){switch(i.default.getInstance().mode){case a.Mode.ASYNC:return S;case a.Mode.HTTP:return M;default:a.Mode.SYNC;return O}}function b(r){const t=i.default.getInstance().customLoader?i.default.getInstance().customLoader:g(),e=new Promise(e=>{t(r).then(t=>{v(t),i.EnginePromise.loaded[r]=[!0,!0],e(r)},t=>{i.EnginePromise.loaded[r]=[!0,!1],console.error("Unable to load locale: "+r),i.default.getInstance().locale=i.default.getInstance().defaultLocale,e(r)})});i.EnginePromise.promises[r]=e}function v(t){_(JSON.parse(t))}function _(r,n){let o=!0;for(let t,e=0;t=Object.keys(r)[e];e++){var i=t.split("/");n&&n!==i[0]||("rules"===i[1]?p.SpeechRuleEngine.getInstance().addStore(r[t]):"messages"===i[1]?(0,h.completeLocale)(r[t]):(o&&(d.generate(i[0]),o=!1),r[t].forEach(f[i[1]])))}}function S(t){const e=s.localePath(t);return new Promise((r,n)=>{l.default.fs.readFile(e,"utf8",(t,e)=>{if(t)return n(t);r(e)})})}function O(t){const n=s.localePath(t);return new Promise((t,e)=>{let r="{}";try{r=l.default.fs.readFileSync(n,"utf8")}catch(t){return e(t)}t(r)})}function M(t){const n=s.localePath(t),o=new XMLHttpRequest;return new Promise((e,r)=>{o.onreadystatechange=function(){var t;4===o.readyState&&(0===(t=o.status)||200<=t&&t<400?e(o.responseText):r(t))},o.open("GET",n,!0),o.send()})}e.loadLocale=function(e=i.default.getInstance().locale){return n(this,void 0,void 0,function*(){return m||(y(c.DynamicCstr.BASE_LOCALE),m=!0),i.EnginePromise.promises[c.DynamicCstr.BASE_LOCALE].then(()=>n(this,void 0,void 0,function*(){var t=i.default.getInstance().defaultLocale;return t?(y(t),i.EnginePromise.promises[t].then(()=>n(this,void 0,void 0,function*(){return y(e),i.EnginePromise.promises[e]}))):(y(e),i.EnginePromise.promises[e])}))})},e.standardLoader=g,e.retrieveFiles=b,e.parseMaps=v,e.loadFile=S,e.loadFileSync=O,e.loadAjax=M},7088:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.leftSubscriptBrief=e.leftSuperscriptBrief=e.leftSubscriptVerbose=e.leftSuperscriptVerbose=e.baselineBrief=e.baselineVerbose=void 0;const n=r(1378);e.baselineVerbose=function(t){return n.baselineVerbose(t).replace(/-$/,"")},e.baselineBrief=function(t){return n.baselineBrief(t).replace(/-$/,"")},e.leftSuperscriptVerbose=function(t){return n.superscriptVerbose(t).replace(/^exposant/,"exposant gauche")},e.leftSubscriptVerbose=function(t){return n.subscriptVerbose(t).replace(/^indice/,"indice gauche")},e.leftSuperscriptBrief=function(t){return n.superscriptBrief(t).replace(/^sup/,"sup gauche")},e.leftSubscriptBrief=function(t){return n.subscriptBrief(t).replace(/^sub/,"sub gauche")}},9577:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.MathspeakRules=void 0;const n=r(1676),o=r(365),i=r(7088),a=r(1378),s=r(8437),l=r(7283),c=r(7598);e.MathspeakRules=function(){l.addStore(n.DynamicCstr.BASE_LOCALE+".speech.mathspeak","",{CQFspaceoutNumber:a.spaceoutNumber,CQFspaceoutIdentifier:a.spaceoutIdentifier,CSFspaceoutText:a.spaceoutText,CSFopenFracVerbose:a.openingFractionVerbose,CSFcloseFracVerbose:a.closingFractionVerbose,CSFoverFracVerbose:a.overFractionVerbose,CSFopenFracBrief:a.openingFractionBrief,CSFcloseFracBrief:a.closingFractionBrief,CSFopenFracSbrief:a.openingFractionSbrief,CSFcloseFracSbrief:a.closingFractionSbrief,CSFoverFracSbrief:a.overFractionSbrief,CSFvulgarFraction:s.vulgarFraction,CQFvulgarFractionSmall:a.isSmallVulgarFraction,CSFopenRadicalVerbose:a.openingRadicalVerbose,CSFcloseRadicalVerbose:a.closingRadicalVerbose,CSFindexRadicalVerbose:a.indexRadicalVerbose,CSFopenRadicalBrief:a.openingRadicalBrief,CSFcloseRadicalBrief:a.closingRadicalBrief,CSFindexRadicalBrief:a.indexRadicalBrief,CSFopenRadicalSbrief:a.openingRadicalSbrief,CSFindexRadicalSbrief:a.indexRadicalSbrief,CQFisSmallRoot:a.smallRoot,CSFsuperscriptVerbose:a.superscriptVerbose,CSFsuperscriptBrief:a.superscriptBrief,CSFsubscriptVerbose:a.subscriptVerbose,CSFsubscriptBrief:a.subscriptBrief,CSFbaselineVerbose:a.baselineVerbose,CSFbaselineBrief:a.baselineBrief,CSFleftsuperscriptVerbose:a.superscriptVerbose,CSFleftsubscriptVerbose:a.subscriptVerbose,CSFrightsuperscriptVerbose:a.superscriptVerbose,CSFrightsubscriptVerbose:a.subscriptVerbose,CSFleftsuperscriptBrief:a.superscriptBrief,CSFleftsubscriptBrief:a.subscriptBrief,CSFrightsuperscriptBrief:a.superscriptBrief,CSFrightsubscriptBrief:a.subscriptBrief,CSFunderscript:a.nestedUnderscript,CSFoverscript:a.nestedOverscript,CSFendscripts:a.endscripts,CTFordinalCounter:s.ordinalCounter,CTFwordCounter:s.wordCounter,CTFcontentIterator:o.contentIterator,CQFdetIsSimple:a.determinantIsSimple,CSFRemoveParens:a.removeParens,CQFresetNesting:a.resetNestingDepth,CGFbaselineConstraint:a.generateBaselineConstraint,CGFtensorRules:a.generateTensorRules}),l.addStore("es.speech.mathspeak",n.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CTFunitMultipliers:c.unitMultipliers,CQFoneLeft:c.oneLeft}),l.addStore("fr.speech.mathspeak",n.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CSFbaselineVerbose:i.baselineVerbose,CSFbaselineBrief:i.baselineBrief,CSFleftsuperscriptVerbose:i.leftSuperscriptVerbose,CSFleftsubscriptVerbose:i.leftSubscriptVerbose,CSFleftsuperscriptBrief:i.leftSuperscriptBrief,CSFleftsubscriptBrief:i.leftSubscriptBrief})}},1378:function(t,s,e){Object.defineProperty(s,"__esModule",{value:!0}),s.smallRoot=s.generateTensorRules=s.removeParens=s.generateBaselineConstraint=s.determinantIsSimple=s.nestedOverscript=s.endscripts=s.overscoreNestingDepth=s.nestedUnderscript=s.underscoreNestingDepth=s.indexRadicalSbrief=s.openingRadicalSbrief=s.indexRadicalBrief=s.closingRadicalBrief=s.openingRadicalBrief=s.indexRadicalVerbose=s.closingRadicalVerbose=s.openingRadicalVerbose=s.getRootIndex=s.nestedRadical=s.radicalNestingDepth=s.baselineBrief=s.baselineVerbose=s.superscriptBrief=s.superscriptVerbose=s.subscriptBrief=s.subscriptVerbose=s.nestedSubSuper=s.isSmallVulgarFraction=s.overFractionSbrief=s.closingFractionSbrief=s.openingFractionSbrief=s.closingFractionBrief=s.openingFractionBrief=s.overFractionVerbose=s.closingFractionVerbose=s.openingFractionVerbose=s.nestedFraction=s.fractionNestingDepth=s.computeNestingDepth_=s.containsAttr=s.getNestingDepth=s.resetNestingDepth=s.nestingBarriers=s.spaceoutIdentifier=s.spaceoutNumber=s.spaceoutNodes=s.spaceoutText=void 0;const l=e(707),c=e(5740),n=e(5274),a=e(4356),u=e(3308);let p={};function r(t,r){const n=Array.from(t.textContent),o=[],i=u.default.getInstance(),a=t.ownerDocument;for(let t,e=0;t=n[e];e++){const n=i.getNodeFactory().makeLeafNode(t,"unknown"),s=i.identifierNode(n,"unknown","");r(s),o.push(s.xml(a))}return o}function o(t,e,r,n,o,i){n=n||s.nestingBarriers,o=o||{},i=i||function(t){return!1};var a=c.serializeXml(e);if(p[t]||(p[t]={}),p[t][a])return p[t][a];if(i(e)||r.indexOf(e.tagName)<0)return 0;e=d(e,r,l.setdifference(n,r),o,i,0);return p[t][a]=e}function h(t,r){if(!t.attributes)return!1;var n=c.toArray(t.attributes);for(let t,e=0;t=n[e];e++)if(r[t.nodeName]===t.nodeValue)return!0;return!1}function d(t,e,r,n,o,i){if(o(t)||-1t.map(t=>"ancestor::"+t),e=t=>"not("+t+")",r=e(t(["subscript","superscript","tensor"]).join(" or ")),n=t(["relseq","multrel"]),o=t(["fraction","punctuation","fenced","sqrt","root"]);let i=[];for(let e,t=0;e=o[t];t++)i=i.concat(n.map(function(t){return e+"/"+t}));return[["ancestor::*/following-sibling::*",r,e(i.join(" | "))].join(" and ")]},s.removeParens=function(t){if(!t.childNodes.length||!t.childNodes[0].childNodes.length||!t.childNodes[0].childNodes[0].childNodes.length)return"";const e=t.childNodes[0].childNodes[0].childNodes[0].textContent;return e.match(/^\(.+\)$/)?e.slice(1,-1):e};const S=new Map([[3,"CSFleftsuperscript"],[4,"CSFleftsubscript"],[2,"CSFbaseline"],[1,"CSFrightsubscript"],[0,"CSFrightsuperscript"]]),O=new Map([[4,2],[3,3],[2,1],[1,4],[0,5]]);s.generateTensorRules=function(i,a=!0){var e=["11111","11110","11101","11100","10111","10110","10101","10100","01111","01110","01101","01100"];for(let o,t=0;o=e[t];t++){let t="tensor"+o,[e,r,n]=function(t){const e=[];let r="",n="",o=parseInt(t,2);for(let t=0;t<5;t++){var i="children/*["+O.get(t)+"]";if(1&o){const e=S.get(t%5);r="[t] "+e+"Verbose; [n] "+i+";"+r,n="[t] "+e+"Brief; [n] "+i+";"+n}else e.unshift("name("+i+')="empty"');o>>=1}return[e,r,n]}(o);i.defineRule(t,"default",r,"self::tensor",...e),a&&(i.defineRule(t,"brief",n,"self::tensor",...e),i.defineRule(t,"sbrief",n,"self::tensor",...e));var s=S.get(2),s=(r+="; [t]"+s+"Verbose",n+="; [t]"+s+"Brief",t+="-baseline","((.//*[not(*)])[last()]/@id)!=(((.//ancestor::fraction|ancestor::root|ancestor::sqrt|ancestor::cell|ancestor::line|ancestor::stree)[1]//*[not(*)])[last()]/@id)");i.defineRule(t,"default",r,"self::tensor",s,...e),a&&(i.defineRule(t,"brief",n,"self::tensor",s,...e),i.defineRule(t,"sbrief",n,"self::tensor",s,...e))}},s.smallRoot=function(t){var e=Object.keys(a.LOCALE.MESSAGES.MSroots).length;if(!e)return[];if(e++,!t.childNodes||0===t.childNodes.length||!t.childNodes[0].childNodes)return[];var r=t.childNodes[0].childNodes[0].textContent;if(!/^\d+$/.test(r))return[];r=parseInt(r,10);return 1i.generateTensorRules(t,!1),CTFrelationIterator:a.relationIterator,CTFimplicitIterator:a.implicitIterator})}},7599:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.init=e.INIT_=void 0;const n=r(5425),o=r(9577),i=r(9284);e.INIT_=!1,e.init=function(){e.INIT_||((0,o.MathspeakRules)(),(0,n.ClearspeakRules)(),(0,i.PrefixRules)(),(0,i.OtherRules)(),(0,i.BrailleRules)(),e.INIT_=!0)}},7283:function(t,o,e){Object.defineProperty(o,"__esModule",{value:!0}),o.getStore=o.addStore=o.funcStore=void 0;const n=e(1676);o.funcStore=new Map,o.addStore=function(t,e,r){var n={};if(e){const t=o.funcStore.get(e)||{};Object.assign(n,t)}o.funcStore.set(t,Object.assign(n,r))},o.getStore=function(t,e,r){return o.funcStore.get([t,e,r].join("."))||o.funcStore.get([n.DynamicCstr.DEFAULT_VALUES[n.Axis.LOCALE],e,r].join("."))||o.funcStore.get([n.DynamicCstr.BASE_LOCALE,e,r].join("."))||{}}},7598:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.oneLeft=e.leftMostUnit=e.rightMostUnit=e.unitMultipliers=void 0;const o=r(7052),n=r(5274),i=r(4356),a=(e.unitMultipliers=function(t,e){const r=t;let n=0;return function(){var t=o.AuditoryDescription.create({text:s(r[n])&&l(r[n+1])?i.LOCALE.MESSAGES.unitTimes:""},{});return n++,[t]}},["superscript","subscript","overscore","underscore"]);function s(t){for(;t;){if("unit"===t.getAttribute("role"))return!0;var e=t.tagName,r=n.evalXPath("children/*",t);t=-1!==a.indexOf(e)?r[0]:r[r.length-1]}return!1}function l(t){for(;t;){if("unit"===t.getAttribute("role"))return!0;t=n.evalXPath("children/*",t)[0]}return!1}e.rightMostUnit=s,e.leftMostUnit=l,e.oneLeft=function(t){for(;t;){if("number"===t.tagName&&"1"===t.textContent)return[t];if("infixop"!==t.tagName||"multiplication"!==t.getAttribute("role")&&"implicit"!==t.getAttribute("role"))return[];t=n.evalXPath("children/*",t)[0]}return[]}},3284:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractWalker=void 0;const o=r(7052),i=r(8290),a=r(5740),n=r(4440),s=r(6828),l=r(8496),c=r(2298),u=r(4356),p=r(2105),h=r(5656),d=r(9552),f=r(9543),m=r(8504),y=r(7730),g=r(1214),b=r(179),v=r(1204),_=r(5274);class S{constructor(t,e,r,n){this.node=t,this.generator=e,this.highlighter=r,this.modifier=!1,this.keyMapping=new Map([[l.KeyCode.UP,this.up.bind(this)],[l.KeyCode.DOWN,this.down.bind(this)],[l.KeyCode.RIGHT,this.right.bind(this)],[l.KeyCode.LEFT,this.left.bind(this)],[l.KeyCode.TAB,this.repeat.bind(this)],[l.KeyCode.DASH,this.expand.bind(this)],[l.KeyCode.SPACE,this.depth.bind(this)],[l.KeyCode.HOME,this.home.bind(this)],[l.KeyCode.X,this.summary.bind(this)],[l.KeyCode.Z,this.detail.bind(this)],[l.KeyCode.V,this.virtualize.bind(this)],[l.KeyCode.P,this.previous.bind(this)],[l.KeyCode.U,this.undo.bind(this)],[l.KeyCode.LESS,this.previousRules.bind(this)],[l.KeyCode.GREATER,this.nextRules.bind(this)]]),this.cursors=[],this.xml_=null,this.rebuilt_=null,this.focus_=null,this.active_=!1,this.node.id?this.id=this.node.id:this.node.hasAttribute(S.SRE_ID_ATTR)?this.id=this.node.getAttribute(S.SRE_ID_ATTR):(this.node.setAttribute(S.SRE_ID_ATTR,S.ID_COUNTER.toString()),this.id=S.ID_COUNTER++),this.rootNode=v.getSemanticRoot(t),this.rootId=this.rootNode.getAttribute(c.Attribute.ID),this.xmlString_=n,this.moved=b.WalkerMoves.ENTER}getXml(){return this.xml_||(this.xml_=a.parseInput(this.xmlString_)),this.xml_}getRebuilt(){return this.rebuilt_||this.rebuildStree(),this.rebuilt_}isActive(){return this.active_}activate(){this.isActive()||(this.generator.start(),this.toggleActive_())}deactivate(){this.isActive()&&(b.WalkerState.setState(this.id,this.primaryId()),this.generator.end(),this.toggleActive_())}getFocus(t=!1){return this.focus_||(this.focus_=this.singletonFocus(this.rootId)),t&&this.updateFocus(),this.focus_}setFocus(t){this.focus_=t}getDepth(){return this.levels.depth()-1}isSpeech(){return this.generator.modality===c.Attribute.SPEECH}focusDomNodes(){return this.getFocus().getDomNodes()}focusSemanticNodes(){return this.getFocus().getSemanticNodes()}speech(){var r=this.focusDomNodes();if(!r.length)return"";const n=this.specialMove();if(null!==n)return n;switch(this.moved){case b.WalkerMoves.DEPTH:return this.depth_();case b.WalkerMoves.SUMMARY:return this.summary_();case b.WalkerMoves.DETAIL:return this.detail_();default:{const n=[],a=this.focusSemanticNodes();for(let t=0,e=r.length;tt.id.toString()),this.getRebuilt(),this.node))}rebuildStree(){this.rebuilt_=new g.RebuildStree(this.getXml()),this.rootId=this.rebuilt_.stree.root.id.toString(),this.generator.setRebuilt(this.rebuilt_),this.skeleton=h.SemanticSkeleton.fromTree(this.rebuilt_.stree),this.skeleton.populate(),this.focus_=this.singletonFocus(this.rootId),this.levels=this.initLevels(),f.connectMactions(this.node,this.getXml(),this.rebuilt_.xml)}previousLevel(){var t=this.getFocus().getDomPrimary();return t?v.getAttribute(t,c.Attribute.PARENT):this.getFocus().getSemanticPrimary().parent.id.toString()}nextLevel(){var t=this.getFocus().getDomPrimary();let e,r;if(t){e=v.splitAttribute(v.getAttribute(t,c.Attribute.CHILDREN)),r=v.splitAttribute(v.getAttribute(t,c.Attribute.CONTENT));const n=v.getAttribute(t,c.Attribute.TYPE),o=v.getAttribute(t,c.Attribute.ROLE);return this.combineContentChildren(n,o,r,e)}const n=t=>t.id.toString(),o=this.getRebuilt().nodeDict[this.primaryId()];return e=o.childNodes.map(n),r=o.contentNodes.map(n),0===e.length?[]:this.combineContentChildren(o.type,o.role,r,e)}singletonFocus(t){this.getRebuilt();var e=this.retrieveVisuals(t);return this.focusFromId(t,e)}retrieveVisuals(t){if(!this.skeleton)return[t];const e=parseInt(t,10),r=this.skeleton.subtreeNodes(e);if(!r.length)return[t];r.unshift(e);const n={},o=[];_.updateEvaluator(this.getXml());for(const t of r)n[t]||(o.push(t.toString()),n[t]=!0,this.subtreeIds(t,n));return o}subtreeIds(t,e){t=_.evalXPath(`//*[@data-semantic-id="${t}"]`,this.getXml());_.evalXPath("*//@data-semantic-id",t[0]).forEach(t=>e[parseInt(t.textContent,10)]=!0)}focusFromId(t,e){return y.Focus.factory(t,e,this.getRebuilt(),this.node)}summary(){return this.moved=this.isSpeech()?b.WalkerMoves.SUMMARY:b.WalkerMoves.REPEAT,this.getFocus().clone()}detail(){return this.moved=this.isSpeech()?b.WalkerMoves.DETAIL:b.WalkerMoves.REPEAT,this.getFocus().clone()}specialMove(){return null}virtualize(t){return this.cursors.push({focus:this.getFocus(),levels:this.levels,undo:t||!this.cursors.length}),this.levels=this.levels.clone(),this.getFocus().clone()}previous(){var t=this.cursors.pop();return t?(this.levels=t.levels,t.focus):this.getFocus()}undo(){let t;for(;(t=this.cursors.pop())&&!t.undo;);return t?(this.levels=t.levels,t.focus):this.getFocus()}update(t){this.generator.setOptions(t),(0,s.setup)(t).then(()=>d.generator("Tree").getSpeech(this.node,this.getXml()))}nextRules(){const t=this.generator.getOptions();return"speech"!==t.modality?this.getFocus():(n.DOMAIN_TO_STYLES[t.domain]=t.style,t.domain="mathspeak"===t.domain?"clearspeak":"mathspeak",t.style=n.DOMAIN_TO_STYLES[t.domain],this.update(t),this.moved=b.WalkerMoves.REPEAT,this.getFocus().clone())}nextStyle(t,e){if("mathspeak"===t){const t=["default","brief","sbrief"],n=t.indexOf(e);return-1===n?e:n>=t.length-1?t[0]:t[n+1]}if("clearspeak"!==t)return e;{const t=m.ClearspeakPreferences.getLocalePreferences().en;if(!t)return"default";const o=m.ClearspeakPreferences.relevantPreferences(this.getFocus().getSemanticPrimary()),i=m.ClearspeakPreferences.findPreference(e,o),a=t[o].map(function(t){return t.split("_")[1]}),s=a.indexOf(i);if(-1===s)return e;var r=s>=a.length-1?a[0]:a[s+1];return m.ClearspeakPreferences.addPreference(e,o,r)}}previousRules(){const t=this.generator.getOptions();return"speech"!==t.modality?this.getFocus():(t.style=this.nextStyle(t.domain,t.style),this.update(t),this.moved=b.WalkerMoves.REPEAT,this.getFocus().clone())}refocus(){let t,e=this.getFocus();for(;!e.getNodes().length;){t=this.levels.peek();var r=this.up();if(!r)break;this.setFocus(r),e=this.getFocus(!0)}this.levels.push(t),this.setFocus(e)}toggleActive_(){this.active_=!this.active_}mergePrefix_(t,e=[]){var r=this.isSpeech()?this.prefix_():"",r=(r&&t.unshift(r),this.isSpeech()?this.postfix_():"");return r&&t.push(r),i.finalize(i.merge(e.concat(t)))}prefix_(){var t=this.getFocus().getDomNodes(),e=this.getFocus().getSemanticNodes();return t[0]?v.getAttribute(t[0],c.Attribute.PREFIX):f.retrievePrefix(e[0])}postfix_(){var t=this.getFocus().getDomNodes();return t[0]?v.getAttribute(t[0],c.Attribute.POSTFIX):""}depth_(){var t=p.Grammar.getInstance().getParameter("depth"),e=(p.Grammar.getInstance().setParameter("depth",!0),this.getFocus().getDomPrimary()),e=this.expandable(e)?u.LOCALE.MESSAGES.navigate.EXPANDABLE:this.collapsible(e)?u.LOCALE.MESSAGES.navigate.COLLAPSIBLE:"",r=u.LOCALE.MESSAGES.navigate.LEVEL+" "+this.getDepth(),n=this.getFocus().getSemanticNodes(),n=f.retrievePrefix(n[0]),r=[new o.AuditoryDescription({text:r,personality:{}}),new o.AuditoryDescription({text:n,personality:{}}),new o.AuditoryDescription({text:e,personality:{}})];return p.Grammar.getInstance().setParameter("depth",t),i.finalize(i.markup(r))}actionable_(t){t=null==t?void 0:t.parentNode;return t&&this.highlighter.isMactionNode(t)?t:null}summary_(){var t=this.getFocus().getSemanticPrimary().id.toString(),t=this.getRebuilt().xml.getAttribute("id")===t?this.getRebuilt().xml:a.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",t)[0],t=f.retrieveSummary(t);return this.mergePrefix_([t])}detail_(){const t=this.getFocus().getSemanticPrimary().id.toString(),e=this.getRebuilt().xml.getAttribute("id")===t?this.getRebuilt().xml:a.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",t)[0],r=e.getAttribute("alternative");e.removeAttribute("alternative");var n=f.computeMarkup(e),n=this.mergePrefix_([n]);return e.setAttribute("alternative",r),n}}(e.AbstractWalker=S).ID_COUNTER=0,S.SRE_ID_ATTR="sre-explorer-id"},162:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.DummyWalker=void 0;class n extends r(3284).AbstractWalker{up(){return null}down(){return null}left(){return null}right(){return null}repeat(){return null}depth(){return null}home(){return null}getDepth(){return 0}initLevels(){return null}combineContentChildren(t,e,r,n){return[]}findFocusOnLevel(t){return null}}e.DummyWalker=n},7730:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.Focus=void 0;const p=r(1204);class h{constructor(t,e){this.nodes=t,this.primary=e,this.domNodes=[],this.domPrimary_=null,this.allNodes=[]}static factory(t,e,r,n){const o=t=>p.getBySemanticId(n,t),i=r.nodeDict,a=o(t),s=e.map(o),l=e.map(function(t){return i[t]}),c=new h(l,i[t]);return c.domNodes=s,c.domPrimary_=a,c.allNodes=h.generateAllVisibleNodes_(e,s,i,n),c}static generateAllVisibleNodes_(r,n,o,i){var a=t=>p.getBySemanticId(i,t);let s=[];for(let t=0,e=r.length;t=e.length?null:e[t]}depth(){return this.level_.length}clone(){const t=new r;return t.level_=this.level_.slice(0),t}toString(){let r="";for(let t,e=0;t=this.level_[e];e++)r+="\n"+t.map(function(t){return t.toString()});return r}}},1214:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.RebuildStree=void 0;const n=r(5740),c=r(2298),o=r(3588),i=r(6537),a=r(3308),s=r(5656),l=r(7075),u=r(4795),p=r(1204);class h{constructor(t){this.mathml=t,this.factory=new i.SemanticNodeFactory,this.nodeDict={},this.mmlRoot=p.getSemanticRoot(t),this.streeRoot=this.assembleTree(this.mmlRoot),this.stree=l.SemanticTree.fromNode(this.streeRoot,this.mathml),this.xml=this.stree.xml(),a.default.getInstance().setNodeFactory(this.factory)}static addAttributes(t,e,r){r&&1===e.childNodes.length&&e.childNodes[0].nodeType!==n.NodeType.TEXT_NODE&&u.addAttributes(t,e.childNodes[0]),u.addAttributes(t,e)}static textContent(t,e,r){!r&&e.textContent?t.textContent=e.textContent:1<(r=p.splitAttribute(p.getAttribute(e,c.Attribute.OPERATOR))).length&&(t.textContent=r[1])}static isPunctuated(t){return!s.SemanticSkeleton.simpleCollapseStructure(t)&&t[1]&&s.SemanticSkeleton.contentCollapseStructure(t[1])}getTree(){return this.stree}assembleTree(t){const e=this.makeNode(t),r=p.splitAttribute(p.getAttribute(t,c.Attribute.CHILDREN)),n=p.splitAttribute(p.getAttribute(t,c.Attribute.CONTENT));if(h.addAttributes(e,t,!(r.length||n.length)),0===n.length&&0===r.length)return h.textContent(e,t),e;if(0this.setParent(t,e)),e.childNodes=r.map(t=>this.setParent(t,e));t=p.getAttribute(t,c.Attribute.COLLAPSED);return t?this.postProcess(e,t):e}makeNode(t){const e=p.getAttribute(t,c.Attribute.TYPE),r=p.getAttribute(t,c.Attribute.ROLE),n=p.getAttribute(t,c.Attribute.FONT),o=p.getAttribute(t,c.Attribute.ANNOTATION)||"",i=p.getAttribute(t,c.Attribute.ID),a=p.getAttribute(t,c.Attribute.EMBELLISHED),s=p.getAttribute(t,c.Attribute.FENCEPOINTER),l=this.createNode(parseInt(i,10));return l.type=e,l.role=r,l.font=n||"unknown",l.parseAnnotation(o),s&&(l.fencePointer=s),a&&(l.embellished=a),l}makePunctuation(t){const e=this.createNode(t);return e.updateContent((0,o.invisibleComma)()),e.role="dummy",e}makePunctuated(t,e,r){const n=this.createNode(e[0]),o=(n.type="punctuated",n.embellished=t.embellished,n.fencePointer=t.fencePointer,n.role=r,e.splice(1,1)[0].slice(1));n.contentNodes=o.map(this.makePunctuation.bind(this)),this.collapsedChildren_(e)}makeEmpty(t,e,r){const n=this.createNode(e);n.type="empty",n.embellished=t.embellished,n.fencePointer=t.fencePointer,n.role=r}makeIndex(t,e,r){if(h.isPunctuated(e))return this.makePunctuated(t,e,r),void e[0];s.SemanticSkeleton.simpleCollapseStructure(e)&&!this.nodeDict[e.toString()]&&this.makeEmpty(t,e,r)}postProcess(t,e){const r=s.SemanticSkeleton.fromString(e).array;if("subsup"===t.type){const e=this.createNode(r[1][0]);return e.type="subscript",e.role="subsup",t.type="superscript",e.embellished=t.embellished,e.fencePointer=t.fencePointer,this.makeIndex(t,r[1][2],"rightsub"),this.makeIndex(t,r[2],"rightsuper"),this.collapsedChildren_(r),t}if("subscript"===t.type)return this.makeIndex(t,r[2],"rightsub"),this.collapsedChildren_(r),t;if("superscript"===t.type)return this.makeIndex(t,r[2],"rightsuper"),this.collapsedChildren_(r),t;if("tensor"===t.type)return this.makeIndex(t,r[2],"leftsub"),this.makeIndex(t,r[3],"leftsuper"),this.makeIndex(t,r[4],"rightsub"),this.makeIndex(t,r[5],"rightsuper"),this.collapsedChildren_(r),t;if("punctuated"===t.type){if(h.isPunctuated(r)){const e=r.splice(1,1)[0].slice(1);t.contentNodes=e.map(this.makePunctuation.bind(this))}return t}if("underover"!==t.type)return t;{const e=this.createNode(r[1][0]);return"overaccent"===t.childNodes[1].role?(e.type="overscore",t.type="underscore"):(e.type="underscore",t.type="overscore"),e.role="underover",e.embellished=t.embellished,e.fencePointer=t.fencePointer,this.collapsedChildren_(r),t}}createNode(t){var e=this.factory.makeNode(t);return this.nodeDict[t.toString()]=e}collapsedChildren_(t){const i=r=>{const n=this.nodeDict[r[0]];n.childNodes=[];for(let t=1,e=r.length;tt.getSemanticPrimary().id===e)}}e.SemanticWalker=i},9806:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SyntaxWalker=void 0;const o=r(707),n=r(3284),i=r(9797);class a extends n.AbstractWalker{constructor(t,e,r,n){super(t,e,r,n),this.node=t,this.generator=e,this.highlighter=r,this.levels=null,this.restoreState()}initLevels(){const t=new i.Levels;return t.push([this.primaryId()]),t}up(){super.up();var t=this.previousLevel();return t?(this.levels.pop(),this.singletonFocus(t)):null}down(){super.down();var t=this.nextLevel();if(0===t.length)return null;var e=this.singletonFocus(t[0]);return e&&this.levels.push(t),e}combineContentChildren(t,e,r,n){switch(t){case"relseq":case"infixop":case"multirel":return(0,o.interleaveLists)(n,r);case"prefixop":return r.concat(n);case"postfixop":return n.concat(r);case"matrix":case"vector":case"fenced":return n.unshift(r[0]),n.push(r[1]),n;case"cases":return n.unshift(r[0]),n;case"punctuated":return"text"===e?(0,o.interleaveLists)(n,r):n;case"appl":return[n[0],r[0],n[1]];case"root":return[n[1],n[0]];default:return n}}left(){super.left();var t=this.levels.indexOf(this.primaryId());if(null===t)return null;t=this.levels.get(t-1);return t?this.singletonFocus(t):null}right(){super.right();var t=this.levels.indexOf(this.primaryId());if(null===t)return null;t=this.levels.get(t+1);return t?this.singletonFocus(t):null}findFocusOnLevel(t){return this.singletonFocus(t.toString())}focusDomNodes(){return[this.getFocus().getDomPrimary()]}focusSemanticNodes(){return[this.getFocus().getSemanticPrimary()]}}e.SyntaxWalker=a},1799:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.TableWalker=void 0;const i=r(5740),o=r(8496),n=r(9806),a=r(179);class s extends n.SyntaxWalker{constructor(t,e,r,n){super(t,e,r,n),this.node=t,this.generator=e,this.highlighter=r,this.firstJump=null,this.key_=null,this.row_=0,this.currentTable_=null,this.keyMapping.set(o.KeyCode.ZERO,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.ONE,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.TWO,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.THREE,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.FOUR,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.FIVE,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.SIX,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.SEVEN,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.EIGHT,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.NINE,this.jumpCell.bind(this))}move(t){this.key_=t;t=super.move(t);return this.modifier=!1,t}up(){return this.moved=a.WalkerMoves.UP,this.eligibleCell_()?this.verticalMove_(!1):super.up()}down(){return this.moved=a.WalkerMoves.DOWN,this.eligibleCell_()?this.verticalMove_(!0):super.down()}jumpCell(){if(!this.isInTable_()||null===this.key_)return this.getFocus();if(this.moved===a.WalkerMoves.ROW){this.moved=a.WalkerMoves.CELL;const t=this.key_-o.KeyCode.ZERO;return this.isLegalJump_(this.row_,t)?this.jumpCell_(this.row_,t):this.getFocus()}const t=this.key_-o.KeyCode.ZERO;return t>this.currentTable_.childNodes.length?this.getFocus():(this.row_=t,this.moved=a.WalkerMoves.ROW,this.getFocus().clone())}undo(){var t=super.undo();return t===this.firstJump&&(this.firstJump=null),t}eligibleCell_(){var t=this.getFocus().getSemanticPrimary();return this.modifier&&"cell"===t.type&&-1!==s.ELIGIBLE_CELL_ROLES.indexOf(t.role)}verticalMove_(t){var e=this.previousLevel();if(!e)return null;var r=this.getFocus(),n=this.levels.indexOf(this.primaryId()),o=this.levels.pop(),e=this.levels.indexOf(e),t=this.levels.get(t?e+1:e-1);if(!t)return this.levels.push(o),null;this.setFocus(this.singletonFocus(t));e=this.nextLevel();return e[n]?(this.levels.push(e),this.singletonFocus(e[n])):(this.setFocus(r),this.levels.push(o),null)}jumpCell_(t,e){this.firstJump?this.virtualize(!1):(this.firstJump=this.getFocus(),this.virtualize(!0));var r=this.currentTable_.id.toString();let n;for(;-1===(n=this.levels.pop()).indexOf(r););this.levels.push(n),this.setFocus(this.singletonFocus(r)),this.levels.push(this.nextLevel());const o=this.currentTable_.childNodes[t-1];return this.setFocus(this.singletonFocus(o.id.toString())),this.levels.push(this.nextLevel()),this.singletonFocus(o.childNodes[e-1].id.toString())}isLegalJump_(t,e){const r=i.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",this.currentTable_.id.toString())[0];if(!r||r.hasAttribute("alternative"))return!1;const n=this.currentTable_.childNodes[t-1];if(!n)return!1;const o=i.querySelectorAllByAttrValue(r,"id",n.id.toString())[0];return!(!o||o.hasAttribute("alternative")||!n||!n.childNodes[e-1])}isInTable_(){let t=this.getFocus().getSemanticPrimary();for(;t;){if(-1!==s.ELIGIBLE_TABLE_TYPES.indexOf(t.type))return this.currentTable_=t,!0;t=t.parent}return!1}}(e.TableWalker=s).ELIGIBLE_CELL_ROLES=["determinant","rowvector","binomial","squarematrix","multiline","matrix","vector","cases","table"],s.ELIGIBLE_TABLE_TYPES=["multiline","matrix","vector","cases","table"]},179:function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0}),e.WalkerState=e.WalkerMoves=void 0,(r=e.WalkerMoves||(e.WalkerMoves={})).UP="up",r.DOWN="down",r.LEFT="left",r.RIGHT="right",r.REPEAT="repeat",r.DEPTH="depth",r.ENTER="enter",r.EXPAND="expand",r.HOME="home",r.SUMMARY="summary",r.DETAIL="detail",r.ROW="row",r.CELL="cell";class n{static resetState(t){delete n.STATE[t]}static setState(t,e){n.STATE[t]=e}static getState(t){return n.STATE[t]}}(e.WalkerState=n).STATE={}},3362:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.walkerMapping_=i.walker=void 0;const o=e(162),a=e(6295),s=e(9806),l=e(1799);i.walker=function(t,e,r,n,o){return(i.walkerMapping_[t.toLowerCase()]||i.walkerMapping_.dummy)(e,r,n,o)},i.walkerMapping_={dummy:(t,e,r,n)=>new o.DummyWalker(t,e,r,n),semantic:(t,e,r,n)=>new a.SemanticWalker(t,e,r,n),syntax:(t,e,r,n)=>new s.SyntaxWalker(t,e,r,n),table:(t,e,r,n)=>new l.TableWalker(t,e,r,n)}},1204:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.getBySemanticId=e.getSemanticRoot=e.getAttribute=e.splitAttribute=void 0;const n=r(5740),o=r(2298);e.splitAttribute=function(t){return t?t.split(/,/):[]},e.getAttribute=function(t,e){return t.getAttribute(e)},e.getSemanticRoot=function(t){if(t.hasAttribute(o.Attribute.TYPE)&&!t.hasAttribute(o.Attribute.PARENT))return t;var r=n.querySelectorAllByAttr(t,o.Attribute.TYPE);for(let t,e=0;t=r[e];e++)if(!t.hasAttribute(o.Attribute.PARENT))return t;return t},e.getBySemanticId=function(t,e){return t.getAttribute(o.Attribute.ID)===e?t:n.querySelectorAllByAttrValue(t,o.Attribute.ID,e)[0]}}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;e=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(e.exports,e,e.exports,__webpack_require__),e.exports}__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();var __webpack_exports__={};!function(){var t=__webpack_require__(9515),e=__webpack_require__(3282),r=__webpack_require__(235),j=__webpack_require__(265),n=__webpack_require__(2388);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r + diff --git a/index.html b/index.html index 5f7f54dc9..601fc5446 100644 --- a/index.html +++ b/index.html @@ -16,7 +16,7 @@ - + diff --git a/pkgdown.yml b/pkgdown.yml index 860758fe6..75d37e022 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -6,7 +6,7 @@ articles: ebola: ebola.html epidist: epidist.html faq: faq.html -last_built: 2024-09-18T16:35Z +last_built: 2024-09-19T13:20Z urls: reference: https://epidist.epinowcast.org/reference article: https://epidist.epinowcast.org/articles diff --git a/reference/add_mean_sd.default.html b/reference/add_mean_sd.default.html index c35a4ec94..ceea7cee4 100644 --- a/reference/add_mean_sd.default.html +++ b/reference/add_mean_sd.default.html @@ -1,5 +1,5 @@ -Default method for add natural scale parameters — add_mean_sd.default • epidist +Default method for add natural scale parameters — add_mean_sd.default • epidist Skip to contents diff --git a/reference/add_mean_sd.gamma_samples.html b/reference/add_mean_sd.gamma_samples.html index 23bf5f60f..ff91a9078 100644 --- a/reference/add_mean_sd.gamma_samples.html +++ b/reference/add_mean_sd.gamma_samples.html @@ -1,5 +1,5 @@ -Add natural scale mean and standard deviation parameters for a latent gamma model — add_mean_sd.gamma_samples • epidist +Add natural scale mean and standard deviation parameters for a latent gamma model — add_mean_sd.gamma_samples • epidist Skip to contents diff --git a/reference/add_mean_sd.html b/reference/add_mean_sd.html index 389d64f96..073936988 100644 --- a/reference/add_mean_sd.html +++ b/reference/add_mean_sd.html @@ -1,5 +1,5 @@ -Add natural scale mean and standard deviation parameters — add_mean_sd • epidist +Add natural scale mean and standard deviation parameters — add_mean_sd • epidist Skip to contents diff --git a/reference/add_mean_sd.lognormal_samples.html b/reference/add_mean_sd.lognormal_samples.html index dee37f9b9..a1b5cd4ae 100644 --- a/reference/add_mean_sd.lognormal_samples.html +++ b/reference/add_mean_sd.lognormal_samples.html @@ -1,5 +1,5 @@ -Add natural scale mean and standard deviation parameters for a latent lognormal model — add_mean_sd.lognormal_samples • epidistAdd natural scale mean and standard deviation parameters for a latent lognormal model — add_mean_sd.lognormal_samples • epidist Skip to contents diff --git a/reference/as_latent_individual.html b/reference/as_latent_individual.html index 824cddf98..8a9a3da4f 100644 --- a/reference/as_latent_individual.html +++ b/reference/as_latent_individual.html @@ -1,5 +1,5 @@ -Prepare latent individual model — as_latent_individual • epidistPrepare latent individual model — as_latent_individual • epidistRound to the nearest multiple — .floor_mult • epidistRound to the nearest multiple — .floor_mult • epidistReplace brms prior distributions — .replace_prior • epidistReplace brms prior distributions — .replace_prior • epidistRead in an epidist Stan code chunk — .stan_chunk • epidistRead in an epidist Stan code chunk — .stan_chunk • epidist Skip to contents diff --git a/reference/dot-version_stanvar.html b/reference/dot-version_stanvar.html index 752479b76..f5c3b65bd 100644 --- a/reference/dot-version_stanvar.html +++ b/reference/dot-version_stanvar.html @@ -1,5 +1,5 @@ -Label a epidist Stan model with a version indicator — .version_stanvar • epidistLabel a epidist Stan model with a version indicator — .version_stanvar • epidistepidist: Estimate epidemiological delay distributions for infectious diseases — epidist-package • epidistepidist: Estimate epidemiological delay distributions for infectious diseases — epidist-package • epidist Skip to contents diff --git a/reference/epidist.default.html b/reference/epidist.default.html index 556ad41bb..d8fa6c89a 100644 --- a/reference/epidist.default.html +++ b/reference/epidist.default.html @@ -1,5 +1,5 @@ -Default method used for interface using brms — epidist.default • epidist +Default method used for interface using brms — epidist.default • epidist Skip to contents diff --git a/reference/epidist.html b/reference/epidist.html index 305cba220..d784bd9e3 100644 --- a/reference/epidist.html +++ b/reference/epidist.html @@ -1,5 +1,5 @@ -Fit epidemiological delay distributions using a brms interface — epidist • epidist +Fit epidemiological delay distributions using a brms interface — epidist • epidist Skip to contents diff --git a/reference/epidist_diagnostics.html b/reference/epidist_diagnostics.html index a457d70c8..7b4692016 100644 --- a/reference/epidist_diagnostics.html +++ b/reference/epidist_diagnostics.html @@ -1,5 +1,5 @@ -Diagnostics for epidist_fit models — epidist_diagnostics • epidist -Default method for defining a model specific family — epidist_family.default • epidist +Default method for defining a model specific family — epidist_family.default • epidist Skip to contents diff --git a/reference/epidist_family.epidist_latent_individual.html b/reference/epidist_family.epidist_latent_individual.html index 3de905ba1..5b4d4571e 100644 --- a/reference/epidist_family.epidist_latent_individual.html +++ b/reference/epidist_family.epidist_latent_individual.html @@ -1,5 +1,5 @@ -Check if data has the epidist_latent_individual class — epidist_family.epidist_latent_individual • epidist +Check if data has the epidist_latent_individual class — epidist_family.epidist_latent_individual • epidist Skip to contents diff --git a/reference/epidist_family.html b/reference/epidist_family.html index f012a0e6e..2f5bf7474 100644 --- a/reference/epidist_family.html +++ b/reference/epidist_family.html @@ -1,5 +1,5 @@ -Define model specific family — epidist_family • epidistDefine model specific family — epidist_family • epidistDefault family specific prior distributions — epidist_family_prior.default • epidist +Default family specific prior distributions — epidist_family_prior.default • epidist Skip to contents diff --git a/reference/epidist_family_prior.html b/reference/epidist_family_prior.html index 95738f29e..a9e537bcf 100644 --- a/reference/epidist_family_prior.html +++ b/reference/epidist_family_prior.html @@ -1,5 +1,5 @@ -Family specific prior distributions — epidist_family_prior • epidistFamily specific prior distributions — epidist_family_prior • epidist Skip to contents diff --git a/reference/epidist_family_prior.lognormal.html b/reference/epidist_family_prior.lognormal.html index 08d433c33..ecae2fcd5 100644 --- a/reference/epidist_family_prior.lognormal.html +++ b/reference/epidist_family_prior.lognormal.html @@ -1,5 +1,5 @@ -Family specific prior distributions for the lognormal family — epidist_family_prior.lognormal • epidist +Family specific prior distributions for the lognormal family — epidist_family_prior.lognormal • epidist Skip to contents diff --git a/reference/epidist_formula.default.html b/reference/epidist_formula.default.html index d5307d415..e441f0976 100644 --- a/reference/epidist_formula.default.html +++ b/reference/epidist_formula.default.html @@ -1,5 +1,5 @@ -Default method for defining a model specific formula — epidist_formula.default • epidist +Default method for defining a model specific formula — epidist_formula.default • epidist Skip to contents diff --git a/reference/epidist_formula.epidist_latent_individual.html b/reference/epidist_formula.epidist_latent_individual.html index 670a7a4f8..c81c11306 100644 --- a/reference/epidist_formula.epidist_latent_individual.html +++ b/reference/epidist_formula.epidist_latent_individual.html @@ -1,5 +1,5 @@ -Define a formula for the latent_individual model — epidist_formula.epidist_latent_individual • epidist +Define a formula for the latent_individual model — epidist_formula.epidist_latent_individual • epidist Skip to contents diff --git a/reference/epidist_formula.html b/reference/epidist_formula.html index efa059418..b700816e2 100644 --- a/reference/epidist_formula.html +++ b/reference/epidist_formula.html @@ -1,5 +1,5 @@ -Define a model specific formula — epidist_formula • epidistDefine a model specific formula — epidist_formula • epidistDefault model specific prior distributions — epidist_model_prior.default • epidist +Default model specific prior distributions — epidist_model_prior.default • epidist Skip to contents diff --git a/reference/epidist_model_prior.html b/reference/epidist_model_prior.html index f967ec451..f0b3e9ede 100644 --- a/reference/epidist_model_prior.html +++ b/reference/epidist_model_prior.html @@ -1,5 +1,5 @@ -Model specific prior distributions — epidist_model_prior • epidistModel specific prior distributions — epidist_model_prior • epidist Skip to contents diff --git a/reference/epidist_prior.html b/reference/epidist_prior.html index ff55d9e78..9d4d3b313 100644 --- a/reference/epidist_prior.html +++ b/reference/epidist_prior.html @@ -1,5 +1,5 @@ -Define prior distributions using brms defaults, model specific priors, family specific priors, and user provided priors — epidist_prior • epidistDefine prior distributions using brms defaults, model specific priors, family specific priors, and user provided priors — epidist_prior • epidistDefault method for defining model specific Stan code — epidist_stancode.default • epidist +Default method for defining model specific Stan code — epidist_stancode.default • epidist Skip to contents diff --git a/reference/epidist_stancode.html b/reference/epidist_stancode.html index c4631eed6..57ff3511a 100644 --- a/reference/epidist_stancode.html +++ b/reference/epidist_stancode.html @@ -1,5 +1,5 @@ -Define model specific Stan code — epidist_stancode • epidistDefine model specific Stan code — epidist_stancode • epidistDefault method for data validation — epidist_validate.default • epidist +Default method for data validation — epidist_validate.default • epidist Skip to contents diff --git a/reference/epidist_validate.epidist_latent_individual.html b/reference/epidist_validate.epidist_latent_individual.html index c101d2146..7b8064593 100644 --- a/reference/epidist_validate.epidist_latent_individual.html +++ b/reference/epidist_validate.epidist_latent_individual.html @@ -1,5 +1,5 @@ -Validate latent individual model data — epidist_validate.epidist_latent_individual • epidistValidate latent individual model data — epidist_validate.epidist_latent_individual • epidistValidate a data object for use with epidist() — epidist_validate • epidistValidate a data object for use with epidist() — epidist_validate • epidistFilter observations based on a observation time of secondary events — filter_obs_by_obs_time • epidist +Filter observations based on a observation time of secondary events — filter_obs_by_obs_time • epidist Skip to contents diff --git a/reference/filter_obs_by_ptime.html b/reference/filter_obs_by_ptime.html index e9c083987..3330ad62c 100644 --- a/reference/filter_obs_by_ptime.html +++ b/reference/filter_obs_by_ptime.html @@ -1,5 +1,5 @@ -Filter observations based on the observation time of primary events — filter_obs_by_ptime • epidist +Filter observations based on the observation time of primary events — filter_obs_by_ptime • epidist Skip to contents diff --git a/reference/index.html b/reference/index.html index 40c6f1b45..709899ce6 100644 --- a/reference/index.html +++ b/reference/index.html @@ -1,5 +1,5 @@ -Package index • epidist +Package index • epidist Skip to contents diff --git a/reference/is_latent_individual.html b/reference/is_latent_individual.html index b693e92f3..b9f26d9cc 100644 --- a/reference/is_latent_individual.html +++ b/reference/is_latent_individual.html @@ -1,5 +1,5 @@ -Check if data has the epidist_latent_individual class — is_latent_individual • epidist +Check if data has the epidist_latent_individual class — is_latent_individual • epidist Skip to contents diff --git a/reference/log_lik_latent_gamma.html b/reference/log_lik_latent_gamma.html index a1915c2db..de00bab5c 100644 --- a/reference/log_lik_latent_gamma.html +++ b/reference/log_lik_latent_gamma.html @@ -1,5 +1,5 @@ -Calculate the pointwise log likelihood of the latent_gamma family — log_lik_latent_gamma • epidist +Calculate the pointwise log likelihood of the latent_gamma family — log_lik_latent_gamma • epidist Skip to contents diff --git a/reference/log_lik_latent_lognormal.html b/reference/log_lik_latent_lognormal.html index a8e58ce0b..6342c8e47 100644 --- a/reference/log_lik_latent_lognormal.html +++ b/reference/log_lik_latent_lognormal.html @@ -1,5 +1,5 @@ -Calculate the pointwise log likelihood of the latent_gamma family — log_lik_latent_lognormal • epidist +Calculate the pointwise log likelihood of the latent_gamma family — log_lik_latent_lognormal • epidist Skip to contents diff --git a/reference/observe_process.html b/reference/observe_process.html index dccdf80f9..88f540e66 100644 --- a/reference/observe_process.html +++ b/reference/observe_process.html @@ -1,5 +1,5 @@ -Observation process for primary and secondary events — observe_process • epidistObservation process for primary and secondary events — observe_process • epidistDraws from the expected value of the posterior predictive distribution of the latent_gamma family — posterior_epred_latent_gamma • epidist +Draws from the expected value of the posterior predictive distribution of the latent_gamma family — posterior_epred_latent_gamma • epidist Skip to contents diff --git a/reference/posterior_epred_latent_lognormal.html b/reference/posterior_epred_latent_lognormal.html index 1287cbcf5..6f78825fb 100644 --- a/reference/posterior_epred_latent_lognormal.html +++ b/reference/posterior_epred_latent_lognormal.html @@ -1,5 +1,5 @@ -Draws from the expected value of the posterior predictive distribution of the latent_gamma family — posterior_epred_latent_lognormal • epidist +Draws from the expected value of the posterior predictive distribution of the latent_gamma family — posterior_epred_latent_lognormal • epidist Skip to contents diff --git a/reference/posterior_predict_latent_gamma.html b/reference/posterior_predict_latent_gamma.html index 6e8407c62..456a60c30 100644 --- a/reference/posterior_predict_latent_gamma.html +++ b/reference/posterior_predict_latent_gamma.html @@ -1,5 +1,5 @@ -Draws from the posterior predictive distribution of the latent_gamma family — posterior_predict_latent_gamma • epidist +Draws from the posterior predictive distribution of the latent_gamma family — posterior_predict_latent_gamma • epidist Skip to contents diff --git a/reference/posterior_predict_latent_lognormal.html b/reference/posterior_predict_latent_lognormal.html index 838288f16..1a0d65a64 100644 --- a/reference/posterior_predict_latent_lognormal.html +++ b/reference/posterior_predict_latent_lognormal.html @@ -1,5 +1,5 @@ -Draws from the posterior predictive distribution of the latent_lognormal family — posterior_predict_latent_lognormal • epidist +Draws from the posterior predictive distribution of the latent_lognormal family — posterior_predict_latent_lognormal • epidist Skip to contents diff --git a/reference/predict_delay_parameters.html b/reference/predict_delay_parameters.html index 8af0c08da..655de58d7 100644 --- a/reference/predict_delay_parameters.html +++ b/reference/predict_delay_parameters.html @@ -1,5 +1,5 @@ -Extract samples of the delay distribution parameters — predict_delay_parameters • epidist +Extract samples of the delay distribution parameters — predict_delay_parameters • epidist Skip to contents diff --git a/reference/sierra_leone_ebola_data.html b/reference/sierra_leone_ebola_data.html index 44a431676..2fe1ddf5a 100644 --- a/reference/sierra_leone_ebola_data.html +++ b/reference/sierra_leone_ebola_data.html @@ -1,5 +1,5 @@ -Ebola linelist data from Fang et al. (2016) — sierra_leone_ebola_data • epidistEbola linelist data from Fang et al. (2016) — sierra_leone_ebola_data • epidist Skip to contents diff --git a/reference/simulate_exponential_cases.html b/reference/simulate_exponential_cases.html index 9c9161104..d4f2db2a1 100644 --- a/reference/simulate_exponential_cases.html +++ b/reference/simulate_exponential_cases.html @@ -1,5 +1,5 @@ -Simulate exponential cases — simulate_exponential_cases • epidistSimulate exponential cases — simulate_exponential_cases • epidistSimulate cases from a stochastic SIR model — simulate_gillespie • epidistSimulate cases from a stochastic SIR model — simulate_gillespie • epidistSimulate secondary events based on a delay distribution — simulate_secondary • epidistSimulate secondary events based on a delay distribution — simulate_secondary • epidistSimulate cases from a uniform distribution — simulate_uniform_cases • epidistSimulate cases from a uniform distribution — simulate_uniform_cases • epidist Skip to contents