defuddle 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Defuddle=t():e.Defuddle=t()}("undefined"!=typeof self?self:this,(()=>(()=>{var e={354:function(e){var t;t=()=>(()=>{var e={4582:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var n=r({HTML:"text/html",isHTML:function(e){return e===n.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=r({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===a.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.find=function(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var n=0;n<e.length;n++)if(Object.prototype.hasOwnProperty.call(e,n)){var a=e[n];if(t.call(void 0,a,n,e))return a}},t.freeze=r,t.MIME_TYPE=n,t.NAMESPACE=a},5752:(e,t,r)=>{var n=r(4582),a=r(4722),o=r(6559),i=r(4466),s=a.DOMImplementation,l=n.NAMESPACE,c=i.ParseError,u=i.XMLReader;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function p(e){this.options=e||{locator:{}}}function m(){this.cdata=!1}function h(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function f(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function g(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function x(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}p.prototype.parseFromString=function(e,t){var r=this.options,n=new u,a=r.domBuilder||new m,i=r.errorHandler,s=r.locator,c=r.xmlns||{},p=/\/x?html?$/.test(t),h=p?o.HTML_ENTITIES:o.XML_ENTITIES;s&&a.setDocumentLocator(s),n.errorHandler=function(e,t,r){if(!e){if(t instanceof m)return t;e=t}var n={},a=e instanceof Function;function o(t){var o=e[t];!o&&a&&(o=2==e.length?function(r){e(t,r)}:e),n[t]=o&&function(e){o("[xmldom "+t+"]\t"+e+f(r))}||function(){}}return r=r||{},o("warning"),o("error"),o("fatalError"),n}(i,a,s),n.domBuilder=r.domBuilder||a,p&&(c[""]=l.HTML),c.xml=c.xml||l.XML;var g=r.normalizeLineEndings||d;return e&&"string"==typeof e?n.parse(g(e),c,h):n.errorHandler.error("invalid doc source"),a.doc},m.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,r,n){var a=this.doc,o=a.createElementNS(e,r||t),i=n.length;x(this,o),this.currentElement=o,this.locator&&h(this.locator,o);for(var s=0;s<i;s++){e=n.getURI(s);var l=n.getValue(s),c=(r=n.getQName(s),a.createAttributeNS(e,r));this.locator&&h(n.getLocator(s),c),c.value=c.nodeValue=l,o.setAttributeNode(c)}},endElement:function(e,t,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&h(this.locator,r),x(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=g.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&h(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,r){e=g.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&h(this.locator,n),x(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var a=n.createDocumentType(e,t,r);this.locator&&h(this.locator,a),x(this,a),this.doc.doctype=a}},warning:function(e){console.warn("[xmldom warning]\t"+e,f(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,f(this.locator))},fatalError:function(e){throw new c(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){m.prototype[e]=function(){return null}})),t.DOMParser=p},4722:(e,t,r)=>{var n=r(4582),a=n.find,o=n.NAMESPACE;function i(e){return""!==e}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function l(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(i):[]}(e);return Object.keys(t.reduce(s,{}))}function c(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function u(e,t){var r=e.prototype;if(!(r instanceof t)){function n(){}n.prototype=t.prototype,c(r,n=new n),e.prototype=r=n}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var d={},p=d.ELEMENT_NODE=1,m=d.ATTRIBUTE_NODE=2,h=d.TEXT_NODE=3,f=d.CDATA_SECTION_NODE=4,g=d.ENTITY_REFERENCE_NODE=5,x=d.ENTITY_NODE=6,b=d.PROCESSING_INSTRUCTION_NODE=7,w=d.COMMENT_NODE=8,y=d.DOCUMENT_NODE=9,v=d.DOCUMENT_TYPE_NODE=10,A=d.DOCUMENT_FRAGMENT_NODE=11,E=d.NOTATION_NODE=12,_={},C={},T=(_.INDEX_SIZE_ERR=(C[1]="Index size error",1),_.DOMSTRING_SIZE_ERR=(C[2]="DOMString size error",2),_.HIERARCHY_REQUEST_ERR=(C[3]="Hierarchy request error",3)),q=(_.WRONG_DOCUMENT_ERR=(C[4]="Wrong document",4),_.INVALID_CHARACTER_ERR=(C[5]="Invalid character",5),_.NO_DATA_ALLOWED_ERR=(C[6]="No data allowed",6),_.NO_MODIFICATION_ALLOWED_ERR=(C[7]="No modification allowed",7),_.NOT_FOUND_ERR=(C[8]="Not found",8)),k=(_.NOT_SUPPORTED_ERR=(C[9]="Not supported",9),_.INUSE_ATTRIBUTE_ERR=(C[10]="Attribute in use",10));function N(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,C[e]),this.message=C[e],Error.captureStackTrace&&Error.captureStackTrace(this,N);return r.code=e,t&&(this.message=this.message+": "+t),r}function S(){}function M(e,t){this._node=e,this._refresh=t,L(this)}function L(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(be(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var n=r.length;n in e;n++)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n];c(r,e),e._inc=t}}function O(){}function D(e,t){for(var r=e.length;r--;)if(e[r]===t)return r}function B(e,t,r,n){if(n?t[D(t,n)]=r:t[t.length++]=r,e){r.ownerElement=e;var a=e.ownerDocument;a&&(n&&z(a,e,n),function(e,t,r){e&&e._inc++,r.namespaceURI===o.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}(a,e,r))}}function F(e,t,r){var n=D(t,r);if(!(n>=0))throw new N(q,new Error(e.tagName+"@"+r));for(var a=t.length-1;n<a;)t[n]=t[++n];if(t.length=a,e){var o=e.ownerDocument;o&&(z(o,e,r),r.ownerElement=null)}}function $(){}function I(){}function P(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function R(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(R(e,t))return!0}while(e=e.nextSibling)}function j(){this.ownerDocument=this}function z(e,t,r,n){e&&e._inc++,r.namespaceURI===o.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function U(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r)n[n.length++]=r;else{for(var a=t.firstChild,o=0;a;)n[o++]=a,a=a.nextSibling;n.length=o,delete n[n.length]}}}function G(e,t){var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,U(e.ownerDocument,e),t}function H(e){return e&&e.nodeType===I.DOCUMENT_TYPE_NODE}function V(e){return e&&e.nodeType===I.ELEMENT_NODE}function W(e){return e&&e.nodeType===I.TEXT_NODE}function X(e,t){var r=e.childNodes||[];if(a(r,V)||H(t))return!1;var n=a(r,H);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function Z(e,t){var r=e.childNodes||[];if(a(r,(function(e){return V(e)&&e!==t})))return!1;var n=a(r,H);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function Y(e,t,r){var n=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===I.DOCUMENT_FRAGMENT_NODE){var i=o.filter(V);if(i.length>1||a(o,W))throw new N(T,"More than one element or text in fragment");if(1===i.length&&!X(e,r))throw new N(T,"Element in fragment can not be inserted before doctype")}if(V(t)&&!X(e,r))throw new N(T,"Only one element can be added and only after doctype");if(H(t)){if(a(n,H))throw new N(T,"Only one doctype is allowed");var s=a(n,V);if(r&&n.indexOf(s)<n.indexOf(r))throw new N(T,"Doctype can only be inserted before an element");if(!r&&s)throw new N(T,"Doctype can not be appended since element is present")}}function J(e,t,r){var n=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===I.DOCUMENT_FRAGMENT_NODE){var i=o.filter(V);if(i.length>1||a(o,W))throw new N(T,"More than one element or text in fragment");if(1===i.length&&!Z(e,r))throw new N(T,"Element in fragment can not be inserted before doctype")}if(V(t)&&!Z(e,r))throw new N(T,"Only one element can be added and only after doctype");if(H(t)){if(a(n,(function(e){return H(e)&&e!==r})))throw new N(T,"Only one doctype is allowed");var s=a(n,V);if(r&&n.indexOf(s)<n.indexOf(r))throw new N(T,"Doctype can only be inserted before an element")}}function K(e,t,r,n){(function(e,t,r){if(!function(e){return e&&(e.nodeType===I.DOCUMENT_NODE||e.nodeType===I.DOCUMENT_FRAGMENT_NODE||e.nodeType===I.ELEMENT_NODE)}(e))throw new N(T,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new N(q,"child not in parent");if(!function(e){return e&&(V(e)||W(e)||H(e)||e.nodeType===I.DOCUMENT_FRAGMENT_NODE||e.nodeType===I.COMMENT_NODE||e.nodeType===I.PROCESSING_INSTRUCTION_NODE)}(t)||H(t)&&e.nodeType!==I.DOCUMENT_NODE)throw new N(T,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)})(e,t,r),e.nodeType===I.DOCUMENT_NODE&&(n||Y)(e,t,r);var a=t.parentNode;if(a&&a.removeChild(t),t.nodeType===A){var o=t.firstChild;if(null==o)return t;var i=t.lastChild}else o=i=t;var s=r?r.previousSibling:e.lastChild;o.previousSibling=s,i.nextSibling=r,s?s.nextSibling=o:e.firstChild=o,null==r?e.lastChild=i:r.previousSibling=i;do{o.parentNode=e}while(o!==i&&(o=o.nextSibling));return U(e.ownerDocument||e,e),t.nodeType==A&&(t.firstChild=t.lastChild=null),t}function Q(){this._nsMap={}}function ee(){}function te(){}function re(){}function ne(){}function ae(){}function oe(){}function ie(){}function se(){}function le(){}function ce(){}function ue(){}function de(){}function pe(e,t){var r=[],n=9==this.nodeType&&this.documentElement||this,a=n.prefix,o=n.namespaceURI;if(o&&null==a&&null==(a=n.lookupPrefix(o)))var i=[{namespace:o,prefix:null}];return fe(this,r,e,t,i),r.join("")}function me(e,t,r){var n=e.prefix||"",a=e.namespaceURI;if(!a)return!1;if("xml"===n&&a===o.XML||a===o.XMLNS)return!1;for(var i=r.length;i--;){var s=r[i];if(s.prefix===n)return s.namespace!==a}return!0}function he(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,P),'"')}function fe(e,t,r,n,a){if(a||(a=[]),n){if(!(e=n(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case p:var i=e.attributes,s=i.length,l=e.firstChild,c=e.tagName,u=c;if(!(r=o.isHTML(e.namespaceURI)||r)&&!e.prefix&&e.namespaceURI){for(var d,x=0;x<i.length;x++)if("xmlns"===i.item(x).name){d=i.item(x).value;break}if(!d)for(var E=a.length-1;E>=0;E--)if(""===(_=a[E]).prefix&&_.namespace===e.namespaceURI){d=_.namespace;break}if(d!==e.namespaceURI)for(E=a.length-1;E>=0;E--){var _;if((_=a[E]).namespace===e.namespaceURI){_.prefix&&(u=_.prefix+":"+c);break}}}t.push("<",u);for(var C=0;C<s;C++)"xmlns"==(T=i.item(C)).prefix?a.push({prefix:T.localName,namespace:T.value}):"xmlns"==T.nodeName&&a.push({prefix:"",namespace:T.value});for(C=0;C<s;C++){var T,q,k;me(T=i.item(C),0,a)&&(he(t,(q=T.prefix||"")?"xmlns:"+q:"xmlns",k=T.namespaceURI),a.push({prefix:q,namespace:k})),fe(T,t,r,n,a)}if(c===u&&me(e,0,a)&&(he(t,(q=e.prefix||"")?"xmlns:"+q:"xmlns",k=e.namespaceURI),a.push({prefix:q,namespace:k})),l||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(t.push(">"),r&&/^script$/i.test(c))for(;l;)l.data?t.push(l.data):fe(l,t,r,n,a.slice()),l=l.nextSibling;else for(;l;)fe(l,t,r,n,a.slice()),l=l.nextSibling;t.push("</",u,">")}else t.push("/>");return;case y:case A:for(l=e.firstChild;l;)fe(l,t,r,n,a.slice()),l=l.nextSibling;return;case m:return he(t,e.name,e.value);case h:return t.push(e.data.replace(/[<&>]/g,P));case f:return t.push("<![CDATA[",e.data,"]]>");case w:return t.push("\x3c!--",e.data,"--\x3e");case v:var N=e.publicId,S=e.systemId;if(t.push("<!DOCTYPE ",e.name),N)t.push(" PUBLIC ",N),S&&"."!=S&&t.push(" ",S),t.push(">");else if(S&&"."!=S)t.push(" SYSTEM ",S,">");else{var M=e.internalSubset;M&&t.push(" [",M,"]"),t.push(">")}return;case b:return t.push("<?",e.target," ",e.data,"?>");case g:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ge(e,t,r){var n;switch(t.nodeType){case p:(n=t.cloneNode(!1)).ownerDocument=e;case A:break;case m:r=!0}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,r)for(var a=t.firstChild;a;)n.appendChild(ge(e,a,r)),a=a.nextSibling;return n}function xe(e,t,r){var n=new t.constructor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=t[a];"object"!=typeof o&&o!=n[a]&&(n[a]=o)}switch(t.childNodes&&(n.childNodes=new S),n.ownerDocument=e,n.nodeType){case p:var i=t.attributes,s=n.attributes=new O,l=i.length;s._ownerElement=n;for(var c=0;c<l;c++)n.setAttributeNode(xe(e,i.item(c),!0));break;case m:r=!0}if(r)for(var u=t.firstChild;u;)n.appendChild(xe(e,u,r)),u=u.nextSibling;return n}function be(e,t,r){e[t]=r}_.INVALID_STATE_ERR=(C[11]="Invalid state",11),_.SYNTAX_ERR=(C[12]="Syntax error",12),_.INVALID_MODIFICATION_ERR=(C[13]="Invalid modification",13),_.NAMESPACE_ERR=(C[14]="Invalid namespace",14),_.INVALID_ACCESS_ERR=(C[15]="Invalid access",15),N.prototype=Error.prototype,c(_,N),S.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var r=[],n=0;n<this.length;n++)fe(this[n],r,e,t);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},M.prototype.item=function(e){return L(this),this[e]||null},u(M,S),O.prototype={length:0,item:S.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var r=this[t];if(r.nodeName==e)return r}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new N(k);var r=this.getNamedItem(e.nodeName);return B(this._ownerElement,this,e,r),r},setNamedItemNS:function(e){var t,r=e.ownerElement;if(r&&r!=this._ownerElement)throw new N(k);return t=this.getNamedItemNS(e.namespaceURI,e.localName),B(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return F(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);return F(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){for(var r=this.length;r--;){var n=this[r];if(n.localName==t&&n.namespaceURI==e)return n}return null}},$.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var n=new j;if(n.implementation=this,n.childNodes=new S,n.doctype=r||null,r&&n.appendChild(r),t){var a=n.createElementNS(e,t);n.appendChild(a)}return n},createDocumentType:function(e,t,r){var n=new oe;return n.name=e,n.nodeName=e,n.publicId=t||"",n.systemId=r||"",n}},I.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return K(this,e,t)},replaceChild:function(e,t){K(this,e,t,J),t&&this.removeChild(t)},removeChild:function(e){return G(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return xe(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==h&&e.nodeType==h?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r)for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===e)return n;t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},c(d,I),c(d,I.prototype),j.prototype={nodeName:"#document",nodeType:y,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==A){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return K(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===p&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),G(this,e)},replaceChild:function(e,t){K(this,e,t,J),e.ownerDocument=this,t&&this.removeChild(t),V(e)&&(this.documentElement=e)},importNode:function(e,t){return ge(this,e,t)},getElementById:function(e){var t=null;return R(this.documentElement,(function(r){if(r.nodeType==p&&r.getAttribute("id")==e)return t=r,!0})),t},getElementsByClassName:function(e){var t=l(e);return new M(this,(function(r){var n=[];return t.length>0&&R(r.documentElement,(function(a){if(a!==r&&a.nodeType===p){var o=a.getAttribute("class");if(o){var i=e===o;if(!i){var s=l(o);i=t.every((c=s,function(e){return c&&-1!==c.indexOf(e)}))}i&&n.push(a)}}var c})),n}))},createElement:function(e){var t=new Q;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new S,(t.attributes=new O)._ownerElement=t,t},createDocumentFragment:function(){var e=new ce;return e.ownerDocument=this,e.childNodes=new S,e},createTextNode:function(e){var t=new re;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ne;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ae;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new ue;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new ee;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new le;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new Q,n=t.split(":"),a=r.attributes=new O;return r.childNodes=new S,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,a._ownerElement=r,r},createAttributeNS:function(e,t){var r=new ee,n=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,r}},u(j,I),Q.prototype={nodeType:p,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===A?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,U(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new M(this,(function(t){var r=[];return R(t,(function(n){n===t||n.nodeType!=p||"*"!==e&&n.tagName!=e||r.push(n)})),r}))},getElementsByTagNameNS:function(e,t){return new M(this,(function(r){var n=[];return R(r,(function(a){a===r||a.nodeType!==p||"*"!==e&&a.namespaceURI!==e||"*"!==t&&a.localName!=t||n.push(a)})),n}))}},j.prototype.getElementsByTagName=Q.prototype.getElementsByTagName,j.prototype.getElementsByTagNameNS=Q.prototype.getElementsByTagNameNS,u(Q,I),ee.prototype.nodeType=m,u(ee,I),te.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(C[T])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},u(te,I),re.prototype={nodeName:"#text",nodeType:h,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},u(re,te),ne.prototype={nodeName:"#comment",nodeType:w},u(ne,te),ae.prototype={nodeName:"#cdata-section",nodeType:f},u(ae,te),oe.prototype.nodeType=v,u(oe,I),ie.prototype.nodeType=E,u(ie,I),se.prototype.nodeType=x,u(se,I),le.prototype.nodeType=g,u(le,I),ce.prototype.nodeName="#document-fragment",ce.prototype.nodeType=A,u(ce,I),ue.prototype.nodeType=b,u(ue,I),de.prototype.serializeToString=function(e,t,r){return pe.call(e,t,r)},I.prototype.toString=pe;try{if(Object.defineProperty){function we(e){switch(e.nodeType){case p:case A:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(we(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(M.prototype,"length",{get:function(){return L(this),this.$$length}}),Object.defineProperty(I.prototype,"textContent",{get:function(){return we(this)},set:function(e){switch(this.nodeType){case p:case A:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),be=function(e,t,r){e["$$"+t]=r}}}catch(ye){}t.DocumentType=oe,t.DOMException=N,t.DOMImplementation=$,t.Element=Q,t.Node=I,t.NodeList=S,t.XMLSerializer=de},6559:(e,t,r)=>{"use strict";var n=r(4582).freeze;t.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({Aacute:"\xc1",aacute:"\xe1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"\u0410",acy:"\u0430",AElig:"\xc6",aelig:"\xe6",af:"\u2061",Afr:"\u{1d504}",afr:"\u{1d51e}",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",AMP:"&",amp:"&",And:"\u2a53",and:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1d538}",aopf:"\u{1d552}",ap:"\u2248",apacir:"\u2a6f",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",Aring:"\xc5",aring:"\xe5",Ascr:"\u{1d49c}",ascr:"\u{1d4b6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\u{1d505}",bfr:"\u{1d51f}",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\u{1d539}",bopf:"\u{1d553}",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250c",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252c",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxUL:"\u255d",boxUl:"\u255c",boxuL:"\u255b",boxul:"\u2518",boxUR:"\u255a",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256c",boxVh:"\u256b",boxvH:"\u256a",boxvh:"\u253c",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255f",boxvR:"\u255e",boxvr:"\u251c",bprime:"\u2035",Breve:"\u02d8",breve:"\u02d8",brvbar:"\xa6",Bscr:"\u212c",bscr:"\u{1d4b7}",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22d2",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"\u212d",cfr:"\u{1d520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",cir:"\u25cb",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",Conint:"\u222f",conint:"\u222e",ContourIntegral:"\u222e",Copf:"\u2102",copf:"\u{1d554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xa9",copy:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",Cross:"\u2a2f",cross:"\u2717",Cscr:"\u{1d49e}",cscr:"\u{1d4b8}",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",Cup:"\u22d3",cup:"\u222a",cupbrcap:"\u2a48",CupCap:"\u224d",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21a1",dArr:"\u21d3",darr:"\u2193",dash:"\u2010",Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21ca",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\u{1d507}",dfr:"\u{1d521}",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",Diamond:"\u22c4",diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\u{1d53b}",dopf:"\u{1d555}",Dot:"\xa8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21d3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\u{1d49f}",dscr:"\u{1d4b9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\xc9",eacute:"\xe9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",ecir:"\u2256",Ecirc:"\xca",ecirc:"\xea",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1d508}",efr:"\u{1d522}",eg:"\u2a9a",Egrave:"\xc8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1d53c}",eopf:"\u{1d556}",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212f",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\u{1d509}",ffr:"\u{1d523}",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\u{1d53d}",fopf:"\u{1d557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1d4bb}",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\u{1d50a}",gfr:"\u{1d524}",Gg:"\u22d9",gg:"\u226b",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2aa5",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gnE:"\u2269",gne:"\u2a88",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\u{1d53e}",gopf:"\u{1d558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\u{1d4a2}",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",Gt:"\u226b",GT:">",gt:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",hArr:"\u21d4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",Hfr:"\u210c",hfr:"\u{1d525}",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",Hopf:"\u210d",hopf:"\u{1d559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210b",hscr:"\u{1d4bd}",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xcd",iacute:"\xed",ic:"\u2063",Icirc:"\xce",icirc:"\xee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xa1",iff:"\u21d4",Ifr:"\u2111",ifr:"\u{1d526}",Igrave:"\xcc",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",Int:"\u222c",int:"\u222b",intcal:"\u22ba",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\u{1d540}",iopf:"\u{1d55a}",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\xbf",Iscr:"\u2110",iscr:"\u{1d4be}",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xcf",iuml:"\xef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1d50d}",jfr:"\u{1d527}",jmath:"\u0237",Jopf:"\u{1d541}",jopf:"\u{1d55b}",Jscr:"\u{1d4a5}",jscr:"\u{1d4bf}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\u{1d50e}",kfr:"\u{1d528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\u{1d542}",kopf:"\u{1d55c}",Kscr:"\u{1d4a6}",kscr:"\u{1d4c0}",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",Lang:"\u27ea",lang:"\u27e8",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",Larr:"\u219e",lArr:"\u21d0",larr:"\u2190",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",lAtail:"\u291b",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lBarr:"\u290e",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",Leftarrow:"\u21d0",leftarrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\u{1d50f}",lfr:"\u{1d529}",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22d8",ll:"\u226a",llarr:"\u21c7",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lnE:"\u2268",lne:"\u2a87",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftarrow:"\u27f5",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",longrightarrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\u{1d543}",lopf:"\u{1d55d}",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1d4c1}",Lsh:"\u21b0",lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226a",LT:"<",lt:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\u{1d510}",mfr:"\u{1d52a}",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\u{1d544}",mopf:"\u{1d55e}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1d4c2}",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21d7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1d511}",nfr:"\u{1d52b}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nhArr:"\u21ce",nharr:"\u21ae",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlArr:"\u21cd",nlarr:"\u219a",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21cd",nleftarrow:"\u219a",nLeftrightarrow:"\u21ce",nleftrightarrow:"\u21ae",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",Nopf:"\u2115",nopf:"\u{1d55f}",Not:"\u2aec",not:"\xac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrArr:"\u21cf",nrarr:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nRightarrow:"\u21cf",nrightarrow:"\u219b",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\u{1d4a9}",nscr:"\u{1d4c3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nVDash:"\u22af",nVdash:"\u22ae",nvDash:"\u22ad",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwArr:"\u21d6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xd3",oacute:"\xf3",oast:"\u229b",ocir:"\u229a",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\u{1d512}",ofr:"\u{1d52c}",ogon:"\u02db",Ograve:"\xd2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\u{1d546}",oopf:"\u{1d560}",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",Or:"\u2a54",or:"\u2228",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",Oscr:"\u{1d4aa}",oscr:"\u2134",Oslash:"\xd8",oslash:"\xf8",osol:"\u2298",Otilde:"\xd5",otilde:"\xf5",Otimes:"\u2a37",otimes:"\u2297",otimesas:"\u2a36",Ouml:"\xd6",ouml:"\xf6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",Pfr:"\u{1d513}",pfr:"\u{1d52d}",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",Popf:"\u2119",popf:"\u{1d561}",pound:"\xa3",Pr:"\u2abb",pr:"\u227a",prap:"\u2ab7",prcue:"\u227c",prE:"\u2ab3",pre:"\u2aaf",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportion:"\u2237",Proportional:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\u{1d4ab}",pscr:"\u{1d4c5}",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\u{1d514}",qfr:"\u{1d52e}",qint:"\u2a0c",Qopf:"\u211a",qopf:"\u{1d562}",qprime:"\u2057",Qscr:"\u{1d4ac}",qscr:"\u{1d4c6}",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",QUOT:'"',quot:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",Rang:"\u27eb",rang:"\u27e9",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",Rarr:"\u21a0",rArr:"\u21d2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",rAtail:"\u291c",ratail:"\u291a",ratio:"\u2236",rationals:"\u211a",RBarr:"\u2910",rBarr:"\u290f",rbarr:"\u290d",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",Re:"\u211c",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",REG:"\xae",reg:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",Rfr:"\u211c",rfr:"\u{1d52f}",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrow:"\u2192",Rightarrow:"\u21d2",rightarrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",Ropf:"\u211d",ropf:"\u{1d563}",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",Rscr:"\u211b",rscr:"\u{1d4c7}",Rsh:"\u21b1",rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",Sc:"\u2abc",sc:"\u227b",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227d",scE:"\u2ab4",sce:"\u2ab0",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",searhk:"\u2925",seArr:"\u21d8",searr:"\u2198",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1d516}",sfr:"\u{1d530}",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",Sopf:"\u{1d54a}",sopf:"\u{1d564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",Square:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",Sscr:"\u{1d4ae}",sscr:"\u{1d4c8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",Sub:"\u22d0",sub:"\u2282",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",Subset:"\u22d0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",Sum:"\u2211",sum:"\u2211",sung:"\u266a",Sup:"\u22d1",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",Supset:"\u22d1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swArr:"\u21d9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\u{1d517}",tfr:"\u{1d531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223c",THORN:"\xde",thorn:"\xfe",Tilde:"\u223c",tilde:"\u02dc",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",Topf:"\u{1d54b}",topf:"\u{1d565}",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\u{1d4af}",tscr:"\u{1d4c9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\xda",uacute:"\xfa",Uarr:"\u219f",uArr:"\u21d1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\u{1d518}",ufr:"\u{1d532}",Ugrave:"\xd9",ugrave:"\xf9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1d54c}",uopf:"\u{1d566}",UpArrow:"\u2191",Uparrow:"\u21d1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",UpDownArrow:"\u2195",Updownarrow:"\u21d5",updownarrow:"\u2195",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03d2",upsi:"\u03c5",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTee:"\u22a5",UpTeeArrow:"\u21a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\u{1d4b0}",uscr:"\u{1d4ca}",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\xdc",uuml:"\xfc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",vArr:"\u21d5",varr:"\u2195",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",Vbar:"\u2aeb",vBar:"\u2ae8",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22ab",Vdash:"\u22a9",vDash:"\u22a8",vdash:"\u22a2",Vdashl:"\u2ae6",Vee:"\u22c1",vee:"\u2228",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\u{1d519}",vfr:"\u{1d533}",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\u{1d54d}",vopf:"\u{1d567}",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\u{1d4b1}",vscr:"\u{1d4cb}",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",Wedge:"\u22c0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1d51a}",wfr:"\u{1d534}",Wopf:"\u{1d54e}",wopf:"\u{1d568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1d4b2}",wscr:"\u{1d4cc}",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\u{1d51b}",xfr:"\u{1d535}",xhArr:"\u27fa",xharr:"\u27f7",Xi:"\u039e",xi:"\u03be",xlArr:"\u27f8",xlarr:"\u27f5",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\u{1d54f}",xopf:"\u{1d569}",xoplus:"\u2a01",xotime:"\u2a02",xrArr:"\u27f9",xrarr:"\u27f6",Xscr:"\u{1d4b3}",xscr:"\u{1d4cd}",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\xdd",yacute:"\xfd",YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\xa5",Yfr:"\u{1d51c}",yfr:"\u{1d536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1d550}",yopf:"\u{1d56a}",Yscr:"\u{1d4b4}",yscr:"\u{1d4ce}",YUcy:"\u042e",yucy:"\u044e",Yuml:"\u0178",yuml:"\xff",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",Zfr:"\u2128",zfr:"\u{1d537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",Zopf:"\u2124",zopf:"\u{1d56b}",Zscr:"\u{1d4b5}",zscr:"\u{1d4cf}",zwj:"\u200d",zwnj:"\u200c"}),t.entityMap=t.HTML_ENTITIES},8978:(e,t,r)=>{var n=r(4722);t.DOMImplementation=n.DOMImplementation,t.XMLSerializer=n.XMLSerializer,t.DOMParser=r(5752).DOMParser},4466:(e,t,r)=>{var n=r(4582).NAMESPACE,a=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,o=new RegExp("[\\-\\.0-9"+a.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+a.source+o.source+"*(?::"+a.source+o.source+"*)?$");function s(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function l(){}function c(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function u(e,t,r,a,o,i){function s(e,t,n){r.attributeNames.hasOwnProperty(e)&&i.fatalError("Attribute "+e+" redefined"),r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),n)}for(var l,c=++t,u=0;;){var d=e.charAt(c);switch(d){case"=":if(1===u)l=e.slice(t,c),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(i.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,!((c=e.indexOf(d,t))>0))throw new Error("attribute value no end '"+d+"' match");s(l,p=e.slice(t,c),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');s(l,p=e.slice(t,c),t),i.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:u=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),0==u&&r.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(p=e.slice(t,c)).slice(-1)&&(r.closed=!0,p=p.slice(0,-1));case 2:2===u&&(p=l),4==u?(i.warning('attribute "'+p+'" missed quot(")!'),s(l,p,t)):(n.isHTML(a[""])&&p.match(/^(?:disabled|checked|selected)$/i)||i.warning('attribute "'+p+'" missed value!! "'+p+'" instead!!'),s(p,p,t));break;case 3:throw new Error("attribute value missed!!")}return c;case"\x80":d=" ";default:if(d<=" ")switch(u){case 0:r.setTagName(e.slice(t,c)),u=6;break;case 1:l=e.slice(t,c),u=2;break;case 4:var p=e.slice(t,c);i.warning('attribute "'+p+'" missed quot(")!!'),s(l,p,t);case 5:u=6}else switch(u){case 2:r.tagName,n.isHTML(a[""])&&l.match(/^(?:disabled|checked|selected)$/i)||i.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=c,u=1;break;case 5:i.warning('attribute space is required"'+l+'"!!');case 6:u=1,t=c;break;case 3:u=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function d(e,t,r){for(var a=e.tagName,o=null,i=e.length;i--;){var s=e[i],l=s.qName,c=s.value;if((m=l.indexOf(":"))>0)var u=s.prefix=l.slice(0,m),d=l.slice(m+1),p="xmlns"===u&&d;else d=l,u=null,p="xmlns"===l&&"";s.localName=d,!1!==p&&(null==o&&(o={},h(r,r={})),r[p]=o[p]=c,s.uri=n.XMLNS,t.startPrefixMapping(p,c))}for(i=e.length;i--;)(u=(s=e[i]).prefix)&&("xml"===u&&(s.uri=n.XML),"xmlns"!==u&&(s.uri=r[u||""]));var m;(m=a.indexOf(":"))>0?(u=e.prefix=a.slice(0,m),d=e.localName=a.slice(m+1)):(u=null,d=e.localName=a);var f=e.uri=r[u||""];if(t.startElement(f,d,a,e),!e.closed)return e.currentNSMap=r,e.localNSMap=o,!0;if(t.endElement(f,d,a),o)for(u in o)Object.prototype.hasOwnProperty.call(o,u)&&t.endPrefixMapping(u)}function p(e,t,r,n,a){if(/^(?:script|textarea)$/i.test(r)){var o=e.indexOf("</"+r+">",t),i=e.substring(t+1,o);if(/[&<]/.test(i))return/^script$/i.test(r)?(a.characters(i,0,i.length),o):(i=i.replace(/&#?\w+;/g,n),a.characters(i,0,i.length),o)}return t+1}function m(e,t,r,n){var a=n[r];return null==a&&((a=e.lastIndexOf("</"+r+">"))<t&&(a=e.lastIndexOf("</"+r)),n[r]=a),a<t}function h(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function f(e,t,r,n){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(a=e.indexOf("--\x3e",t+4))>t?(r.comment(e,t+4,a-t-4),a+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var a=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,a-t-9),r.endCDATA(),a+3}var o=function(e,t){var r,n=[],a=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(a.lastIndex=t,a.exec(e);r=a.exec(e);)if(n.push(r),r[1])return n}(e,t),i=o.length;if(i>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],l=!1,c=!1;i>3&&(/^public$/i.test(o[2][0])?(l=o[3][0],c=i>4&&o[4][0]):/^system$/i.test(o[2][0])&&(c=o[3][0]));var u=o[i-1];return r.startDTD(s,l,c),r.endDTD(),u.index+u[0].length}return-1}function g(e,t,r){var n=e.indexOf("?>",t);if(n){var a=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return a?(a[0].length,r.processingInstruction(a[1],a[2]),n+2):-1}return-1}function x(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,l.prototype={parse:function(e,t,r){var a=this.domBuilder;a.startDocument(),h(t,t={}),function(e,t,r,a,o){function i(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(r,t)?r[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function l(t){if(t>_){var r=e.substring(_,t).replace(/&#?\w+;/g,i);v&&h(_),a.characters(r,0,t-_),_=t}}function h(t,r){for(;t>=w&&(r=y.exec(e));)b=r.index,w=b+r[0].length,v.lineNumber++;v.columnNumber=t-b+1}for(var b=0,w=0,y=/.*(?:\r\n?|\n)|.*$/g,v=a.locator,A=[{currentNSMap:t}],E={},_=0;;){try{var C=e.indexOf("<",_);if(C<0){if(!e.substr(_).match(/^\s*$/)){var T=a.doc,q=T.createTextNode(e.substr(_));T.appendChild(q),a.currentElement=q}return}switch(C>_&&l(C),e.charAt(C+1)){case"/":var k=e.indexOf(">",C+3),N=e.substring(C+2,k).replace(/[ \t\n\r]+$/g,""),S=A.pop();k<0?(N=e.substring(C+2).replace(/[\s<].*/,""),o.error("end tag name: "+N+" is not complete:"+S.tagName),k=C+1+N.length):N.match(/\s</)&&(N=N.replace(/[\s<].*/,""),o.error("end tag name: "+N+" maybe not complete"),k=C+1+N.length);var M=S.localNSMap,L=S.tagName==N;if(L||S.tagName&&S.tagName.toLowerCase()==N.toLowerCase()){if(a.endElement(S.uri,S.localName,N),M)for(var O in M)Object.prototype.hasOwnProperty.call(M,O)&&a.endPrefixMapping(O);L||o.fatalError("end tag name: "+N+" is not match the current start tagName:"+S.tagName)}else A.push(S);k++;break;case"?":v&&h(C),k=g(e,C,a);break;case"!":v&&h(C),k=f(e,C,a,o);break;default:v&&h(C);var D=new x,B=A[A.length-1].currentNSMap,F=(k=u(e,C,D,B,i,o),D.length);if(!D.closed&&m(e,k,D.tagName,E)&&(D.closed=!0,r.nbsp||o.warning("unclosed xml attribute")),v&&F){for(var $=c(v,{}),I=0;I<F;I++){var P=D[I];h(P.offset),P.locator=c(v,{})}a.locator=$,d(D,a,B)&&A.push(D),a.locator=v}else d(D,a,B)&&A.push(D);n.isHTML(D.uri)&&!D.closed?k=p(e,k,D.tagName,i,a):k++}}catch(e){if(e instanceof s)throw e;o.error("element parse error: "+e),k=-1}k>_?_=k:l(Math.max(C,_)+1)}}(e,t,r,a,this.errorHandler),a.endDocument()}},x.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!i.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=l,t.ParseError=s},8917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidNumberOfChildrenError=void 0;var n=r(6200);Object.defineProperty(t,"InvalidNumberOfChildrenError",{enumerable:!0,get:function(){return n.InvalidNumberOfChildrenError}})},6200:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidNumberOfChildrenError=void 0;class r extends Error{constructor(e,t,r,n="exactly"){super(`${e} tag must have ${n} ${t} children. It's actually ${r}`),this.name="InvalidNumberOfChildrenError"}}t.InvalidNumberOfChildrenError=r},4279:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(828),t),a(r(5975),t),a(r(799),t),a(r(2424),t)},5975:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JoinWithManySeparators=void 0;class r{constructor(e){this._separators=e}static join(e,t){return new r(t)._join(e)}_join(e){return e.reduce(((e,t,r,n)=>e+t+(r===n.length-1?"":this._get(r))),"")}_get(e){return this._separators[e]?this._separators[e]:this._separators.length>0?this._separators[this._separators.length-1]:","}}t.JoinWithManySeparators=r},799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mathMLElementToLaTeXConverter=void 0;const n=r(5443);t.mathMLElementToLaTeXConverter=e=>new n.MathMLElementToLatexConverterAdapter(e).toLatexConverter()},2424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeWhiteSpaces=void 0,t.normalizeWhiteSpaces=e=>e.replace(/\s+/g," ")},7192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BracketWrapper=void 0;const n=r(1855);t.BracketWrapper=class{constructor(){this._open="{",this._close="}"}wrap(e){return new n.Wrapper(this._open,this._close).wrap(e)}}},5025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericWrapper=void 0;const n=r(1855);t.GenericWrapper=class{constructor(e,t){this._open="\\left"+e,this._close="\\right"+t}wrap(e){return new n.Wrapper(this._open,this._close).wrap(e)}}},828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericWrapper=t.ParenthesisWrapper=t.BracketWrapper=void 0;var n=r(7192);Object.defineProperty(t,"BracketWrapper",{enumerable:!0,get:function(){return n.BracketWrapper}});var a=r(1168);Object.defineProperty(t,"ParenthesisWrapper",{enumerable:!0,get:function(){return a.ParenthesisWrapper}});var o=r(5025);Object.defineProperty(t,"GenericWrapper",{enumerable:!0,get:function(){return o.GenericWrapper}})},1168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParenthesisWrapper=void 0;const n=r(1855);t.ParenthesisWrapper=class{constructor(){this._open="\\left(",this._close="\\right)"}wrap(e){return new n.Wrapper(this._open,this._close).wrap(e)}wrapIfMoreThanOneChar(e){return e.length<=1?e:this.wrap(e)}}},1855:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=void 0,t.Wrapper=class{constructor(e,t){this._open=e,this._close=t}wrap(e){return this._open+e+this._close}}},2697:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VoidMathMLElement=void 0,t.VoidMathMLElement=class{constructor(){this.name="void",this.value="",this.children=[],this.attributes={}}}},4760:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericSpacingWrapper=void 0;const n=r(4279);t.GenericSpacingWrapper=class{constructor(e){this._mathmlElement=e}convert(){return this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ")}}},9376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericUnderOver=void 0;const n=r(799),a=r(8917),o=r(472);t.GenericUnderOver=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(2!==r)throw new a.InvalidNumberOfChildrenError(e,2,r);const o=(0,n.mathMLElementToLaTeXConverter)(t[0]).convert(),i=(0,n.mathMLElementToLaTeXConverter)(t[1]).convert();return this._applyCommand(o,i)}_applyCommand(e,t){const r=this._mathmlElement.name.match(/under/)?s.Under:s.Over;return new i(r).apply(e,t)}};class i{constructor(e){this._type=e}apply(e,t){return o.latexAccents.includes(t)?`${t}{${e}}`:`${this._defaultCommand}{${t}}{${e}}`}get _defaultCommand(){return this._type===s.Under?"\\underset":"\\overset"}}var s;!function(e){e[e.Under=0]="Under",e[e.Over=1]="Over"}(s||(s={}))},6959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Void=t.GenericUnderOver=t.GenericSpacingWrapper=t.MTr=t.MTable=t.MUnderover=t.MText=t.MMultiscripts=t.MSubsup=t.MSub=t.MSup=t.MPhantom=t.MError=t.MEnclose=t.MAction=t.MRoot=t.MFrac=t.MFenced=t.MSqrt=t.MN=t.MO=t.MI=t.Math=void 0;var n=r(393);Object.defineProperty(t,"Math",{enumerable:!0,get:function(){return n.Math}});var a=r(7037);Object.defineProperty(t,"MI",{enumerable:!0,get:function(){return a.MI}});var o=r(3487);Object.defineProperty(t,"MO",{enumerable:!0,get:function(){return o.MO}});var i=r(4464);Object.defineProperty(t,"MN",{enumerable:!0,get:function(){return i.MN}});var s=r(8686);Object.defineProperty(t,"MSqrt",{enumerable:!0,get:function(){return s.MSqrt}});var l=r(9511);Object.defineProperty(t,"MFenced",{enumerable:!0,get:function(){return l.MFenced}});var c=r(6440);Object.defineProperty(t,"MFrac",{enumerable:!0,get:function(){return c.MFrac}});var u=r(6052);Object.defineProperty(t,"MRoot",{enumerable:!0,get:function(){return u.MRoot}});var d=r(1678);Object.defineProperty(t,"MAction",{enumerable:!0,get:function(){return d.MAction}});var p=r(2631);Object.defineProperty(t,"MEnclose",{enumerable:!0,get:function(){return p.MEnclose}});var m=r(1840);Object.defineProperty(t,"MError",{enumerable:!0,get:function(){return m.MError}});var h=r(7443);Object.defineProperty(t,"MPhantom",{enumerable:!0,get:function(){return h.MPhantom}});var f=r(6926);Object.defineProperty(t,"MSup",{enumerable:!0,get:function(){return f.MSup}});var g=r(2564);Object.defineProperty(t,"MSub",{enumerable:!0,get:function(){return g.MSub}});var x=r(1358);Object.defineProperty(t,"MSubsup",{enumerable:!0,get:function(){return x.MSubsup}});var b=r(8303);Object.defineProperty(t,"MMultiscripts",{enumerable:!0,get:function(){return b.MMultiscripts}});var w=r(3951);Object.defineProperty(t,"MText",{enumerable:!0,get:function(){return w.MText}});var y=r(1222);Object.defineProperty(t,"MUnderover",{enumerable:!0,get:function(){return y.MUnderover}});var v=r(2350);Object.defineProperty(t,"MTable",{enumerable:!0,get:function(){return v.MTable}});var A=r(1586);Object.defineProperty(t,"MTr",{enumerable:!0,get:function(){return A.MTr}});var E=r(4760);Object.defineProperty(t,"GenericSpacingWrapper",{enumerable:!0,get:function(){return E.GenericSpacingWrapper}});var _=r(9376);Object.defineProperty(t,"GenericUnderOver",{enumerable:!0,get:function(){return _.GenericUnderOver}});var C=r(9165);Object.defineProperty(t,"Void",{enumerable:!0,get:function(){return C.Void}})},1678:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAction=void 0;const n=r(799);t.MAction=class{constructor(e){this._mathmlElement=e}convert(){const{children:e}=this._mathmlElement;return this._isToggle()?e.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" \\Longrightarrow "):(0,n.mathMLElementToLaTeXConverter)(e[0]).convert()}_isToggle(){const{actiontype:e}=this._mathmlElement.attributes;return"toggle"===e||!e}}},393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Math=void 0;const n=r(799),a=r(2424);t.Math=class{constructor(e){this._mathmlElement=e}convert(){const e=this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ");return(0,a.normalizeWhiteSpaces)(e)}}},2631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MEnclose=void 0;const n=r(799);t.MEnclose=class{constructor(e){this._mathmlElement=e}convert(){const e=this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ");return"actuarial"===this._notation?`\\overline{\\left.${e}\\right|}`:"radical"===this._notation?`\\sqrt{${e}}`:["box","roundedbox","circle"].includes(this._notation)?`\\boxed{${e}}`:"left"===this._notation?`\\left|${e}`:"right"===this._notation?`${e}\\right|`:"top"===this._notation?`\\overline{${e}}`:"bottom"===this._notation?`\\underline{${e}}`:"updiagonalstrike"===this._notation?`\\cancel{${e}}`:"downdiagonalstrike"===this._notation?`\\bcancel{${e}}`:"updiagonalarrow"===this._notation?`\\cancelto{}{${e}}`:["verticalstrike","horizontalstrike"].includes(this._notation)?`\\hcancel{${e}}`:"madruwb"===this._notation?`\\underline{${e}\\right|}`:"phasorangle"===this._notation?`{\\angle \\underline{${e}}}`:`\\overline{\\left.\\right)${e}}`}get _notation(){return this._mathmlElement.attributes.notation||"longdiv"}}},1840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MError=void 0;const n=r(799);t.MError=class{constructor(e){this._mathmlElement=e}convert(){return`\\color{red}{${this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ")}}`}}},9511:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MFenced=void 0;const n=r(799),a=r(4279);t.MFenced=class{constructor(e){this._mathmlElement=e,this._open=this._mathmlElement.attributes.open||"",this._close=this._mathmlElement.attributes.close||"",this._separators=Array.from(this._mathmlElement.attributes.separators||"")}convert(){const e=this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert()));return this._isThereRelativeOfName(this._mathmlElement.children,"mtable")?new i(this._open,this._close).apply(e):new o(this._open,this._close,this._separators).apply(e)}_isThereRelativeOfName(e,t){return e.some((e=>e.name===t||this._isThereRelativeOfName(e.children,t)))}};class o{constructor(e,t,r){this._open=e||"(",this._close=t||")",this._separators=r}apply(e){const t=a.JoinWithManySeparators.join(e,this._separators);return new a.GenericWrapper(this._open,this._close).wrap(t)}}class i{constructor(e,t){this._genericCommand="matrix",this._separators=new s(e,t)}apply(e){const t=this._command,r=`\\begin{${t}}\n${e.join("")}\n\\end{${t}}`;return t===this._genericCommand?this._separators.wrap(r):r}get _command(){return this._separators.areParentheses()?"pmatrix":this._separators.areSquareBrackets()?"bmatrix":this._separators.areBrackets()?"Bmatrix":this._separators.areDivides()?"vmatrix":this._separators.areParallels()?"Vmatrix":this._separators.areNotEqual()?this._genericCommand:"bmatrix"}}class s{constructor(e,t){this._open=e,this._close=t}wrap(e){return new a.GenericWrapper(this._open,this._close).wrap(e)}areParentheses(){return this._compare("(",")")}areSquareBrackets(){return this._compare("[","]")}areBrackets(){return this._compare("{","}")}areDivides(){return this._compare("|","|")}areParallels(){return this._compare("||","||")}areNotEqual(){return this._open!==this._close}_compare(e,t){return this._open===e&&this._close===t}}},6440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MFrac=void 0;const n=r(8917),a=r(4279);t.MFrac=class{constructor(e){this._mathmlElement=e}convert(){const{children:e,name:t}=this._mathmlElement,r=e.length;if(2!==r)throw new n.InvalidNumberOfChildrenError(t,2,r);const o=(0,a.mathMLElementToLaTeXConverter)(e[0]).convert(),i=(0,a.mathMLElementToLaTeXConverter)(e[1]).convert();return this._isBevelled()?`${this._wrapIfMoreThanOneChar(o)}/${this._wrapIfMoreThanOneChar(i)}`:`\\frac{${o}}{${i}}`}_wrapIfMoreThanOneChar(e){return(new a.ParenthesisWrapper).wrapIfMoreThanOneChar(e)}_isBevelled(){return!!this._mathmlElement.attributes.bevelled}}},7037:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MI=void 0;const n=r(4279),a=r(5406),o=r(6122);t.MI=class{constructor(e){this.utf8Converter=new o.HashUTF8ToLtXConverter,this._mathmlElement=e}convert(){const e=(0,n.normalizeWhiteSpaces)(this._mathmlElement.value);if(" "===e)return i.apply(e);const t=e.trim(),r=i.apply(t),a=this.utf8Converter.convert(r);return a!==r?a:this.wrapInMathVariant(r,this.getMathVariant(this._mathmlElement.attributes))}getMathVariant(e){if(e&&e.mathvariant)return e.mathvariant}wrapInMathVariant(e,t){switch(t){case"bold":return`\\mathbf{${e}}`;case"italic":return`\\mathit{${e}}`;case"bold-italic":return`\\mathbf{\\mathit{${e}}}`;case"double-struck":return`\\mathbb{${e}}`;case"bold-fraktur":return`\\mathbf{\\mathfrak{${e}}}`;case"script":return`\\mathcal{${e}}`;case"bold-script":return`\\mathbf{\\mathcal{${e}}}`;case"fraktur":return`\\mathfrak{${e}}`;case"sans-serif":return`\\mathsf{${e}}`;case"bold-sans-serif":return`\\mathbf{\\mathsf{${e}}}`;case"sans-serif-italic":return`\\mathsf{\\mathit{${e}}}`;case"sans-serif-bold-italic":return`\\mathbf{\\mathsf{\\mathit{${e}}}}`;case"monospace":return`\\mathtt{${e}}`;default:return e}}};class i{constructor(e){this._value=e}static apply(e){return new i(e)._apply()}_apply(){return this._findByCharacter()||this._findByGlyph()||this._findByNumber()||(new o.HashUTF8ToLtXConverter).convert(this._value)}_findByCharacter(){return a.allMathSymbolsByChar[this._value]}_findByGlyph(){return a.allMathSymbolsByGlyph[this._value]}_findByNumber(){return a.mathNumberByGlyph[this._value]}}},8303:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MMultiscripts=void 0;const n=r(4279),a=r(8917);t.MMultiscripts=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(r<3)throw new a.InvalidNumberOfChildrenError(e,3,r,"at least");const o=(0,n.mathMLElementToLaTeXConverter)(t[0]).convert();return this._prescriptLatex()+this._wrapInParenthesisIfThereIsSpace(o)+this._postscriptLatex()}_prescriptLatex(){const{children:e}=this._mathmlElement;let t,r;if(this._isPrescripts(e[1]))t=e[2],r=e[3];else{if(!this._isPrescripts(e[3]))return"";t=e[4],r=e[5]}return`\\_{${(0,n.mathMLElementToLaTeXConverter)(t).convert()}}^{${(0,n.mathMLElementToLaTeXConverter)(r).convert()}}`}_postscriptLatex(){const{children:e}=this._mathmlElement;if(this._isPrescripts(e[1]))return"";const t=e[1],r=e[2];return`_{${(0,n.mathMLElementToLaTeXConverter)(t).convert()}}^{${(0,n.mathMLElementToLaTeXConverter)(r).convert()}}`}_wrapInParenthesisIfThereIsSpace(e){return e.match(/\s+/g)?(new n.ParenthesisWrapper).wrap(e):e}_isPrescripts(e){return"mprescripts"===(null==e?void 0:e.name)}}},4464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MN=void 0;const n=r(4279),a=r(5406);t.MN=class{constructor(e){this._mathmlElement=e}convert(){const e=(0,n.normalizeWhiteSpaces)(this._mathmlElement.value).trim();return a.mathNumberByGlyph[e]||e}}},3487:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MO=void 0;const n=r(4279),a=r(5406);t.MO=class{constructor(e){this._mathmlElement=e}convert(){const e=(0,n.normalizeWhiteSpaces)(this._mathmlElement.value).trim();return o.operate(e)}};class o{constructor(e){this._value=e}static operate(e){return new o(e)._operate()}_operate(){return this._findByCharacter()||this._findByGlyph()||this._findByNumber()||(new a.HashUTF8ToLtXConverter).convert(this._value)}_findByCharacter(){return a.allMathOperatorsByChar[this._value]}_findByGlyph(){return a.allMathOperatorsByGlyph[this._value]}_findByNumber(){return a.mathNumberByGlyph[this._value]}}},7443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MPhantom=void 0,t.MPhantom=class{constructor(e){this._mathmlElement=e}convert(){return""}}},6052:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MRoot=void 0;const n=r(4279),a=r(8917);t.MRoot=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(2!==r)throw new a.InvalidNumberOfChildrenError(e,2,r);const o=(0,n.mathMLElementToLaTeXConverter)(t[0]).convert();return`\\sqrt[${(0,n.mathMLElementToLaTeXConverter)(t[1]).convert()}]{${o}}`}}},8686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MSqrt=void 0;const n=r(4279);t.MSqrt=class{constructor(e){this._mathmlElement=e}convert(){return`\\sqrt{${this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ")}}`}}},2564:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MSub=void 0;const n=r(4279),a=r(8917);t.MSub=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(2!==r)throw new a.InvalidNumberOfChildrenError(e,2,r);const n=t[0],o=t[1];return`${this._handleBaseChild(n)}_${this._handleSubscriptChild(o)}`}_handleBaseChild(e){const t=e.children,r=(0,n.mathMLElementToLaTeXConverter)(e).convert();return t.length<=1?r:(new n.ParenthesisWrapper).wrapIfMoreThanOneChar(r)}_handleSubscriptChild(e){const t=(0,n.mathMLElementToLaTeXConverter)(e).convert();return(new n.BracketWrapper).wrap(t)}}},1358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MSubsup=void 0;const n=r(4279),a=r(8917);t.MSubsup=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(3!==r)throw new a.InvalidNumberOfChildrenError(e,3,r);const n=t[0],o=t[1],i=t[2];return`${this._handleBaseChild(n)}_${this._handleSubscriptChild(o)}^${this._handleSuperscriptChild(i)}`}_handleBaseChild(e){const t=e.children,r=(0,n.mathMLElementToLaTeXConverter)(e).convert();return t.length<=1?r:(new n.ParenthesisWrapper).wrapIfMoreThanOneChar(r)}_handleSubscriptChild(e){const t=(0,n.mathMLElementToLaTeXConverter)(e).convert();return(new n.BracketWrapper).wrap(t)}_handleSuperscriptChild(e){const t=(0,n.mathMLElementToLaTeXConverter)(e).convert();return(new n.BracketWrapper).wrap(t)}}},6926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MSup=void 0;const n=r(4279),a=r(8917);t.MSup=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(2!==r)throw new a.InvalidNumberOfChildrenError(e,2,r);const n=t[0],o=t[1];return`${this._handleBaseChild(n)}^${this._handleExponentChild(o)}`}_handleBaseChild(e){const t=e.children,r=(0,n.mathMLElementToLaTeXConverter)(e).convert();return t.length<=1?r:(new n.ParenthesisWrapper).wrapIfMoreThanOneChar(r)}_handleExponentChild(e){const t=(0,n.mathMLElementToLaTeXConverter)(e).convert();return(new n.BracketWrapper).wrap(t)}}},2350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MTable=void 0;const n=r(4279);t.MTable=class{constructor(e){this._mathmlElement=e,this._addFlagRecursiveIfName(this._mathmlElement.children,"mtable","innerTable")}convert(){const e=this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" \\\\\n");return this._hasFlag("innerTable")?this._wrap(e):e}_wrap(e){return`\\begin{matrix}${e}\\end{matrix}`}_addFlagRecursiveIfName(e,t,r){e.forEach((e=>{e.name===t&&(e.attributes[r]=r),this._addFlagRecursiveIfName(e.children,t,r)}))}_hasFlag(e){return!!this._mathmlElement.attributes[e]}}},3951:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MText=void 0;const n=r(7037);t.MText=class{constructor(e){this._mathmlElement=e}convert(){const{attributes:e,value:t}=this._mathmlElement;return[...t].map((e=>/^[a-zA-Z0-9]$/.test(e)||" "===e?{value:e,isAlphanumeric:!0}:{value:e,isAlphanumeric:!1})).reduce(((e,t)=>{if(t.isAlphanumeric){const r=e[e.length-1];if(r&&r.isAlphanumeric)return r.value+=t.value,e}return[...e,t]}),[]).map((t=>t.isAlphanumeric?new a(e.mathvariant).apply(t.value):new n.MI({name:"mi",attributes:{},children:[],value:t.value}).convert())).join("")}};class a{constructor(e){this._mathvariant=e||"normal"}apply(e){return this._commands.reduce(((t,r,n)=>0===n?`${r}{${e}}`:`${r}{${t}}`),"")}get _commands(){switch(this._mathvariant){case"bold":return["\\textbf"];case"italic":return["\\textit"];case"bold-italic":return["\\textit","\\textbf"];case"double-struck":return["\\mathbb"];case"monospace":return["\\mathtt"];case"bold-fraktur":case"fraktur":return["\\mathfrak"];default:return["\\text"]}}}},1586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MTr=void 0;const n=r(4279);t.MTr=class{constructor(e){this._mathmlElement=e}convert(){return this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" & ")}}},1222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MUnderover=void 0;const n=r(4279),a=r(8917);t.MUnderover=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(3!==r)throw new a.InvalidNumberOfChildrenError(e,3,r);return`${(0,n.mathMLElementToLaTeXConverter)(t[0]).convert()}_{${(0,n.mathMLElementToLaTeXConverter)(t[1]).convert()}}^{${(0,n.mathMLElementToLaTeXConverter)(t[2]).convert()}}`}}},9165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Void=void 0,t.Void=class{constructor(e){this._mathmlElement=e}convert(){return""}}},5443:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MathMLElementToLatexConverterAdapter=void 0;const i=o(r(6959)),s=r(2697);t.MathMLElementToLatexConverterAdapter=class{constructor(e){this._mathMLElement=null!=e?e:new s.VoidMathMLElement}toLatexConverter(){const{name:e}=this._mathMLElement;return new(l[e]||i.GenericSpacingWrapper)(this._mathMLElement)}};const l={math:i.Math,mi:i.MI,mo:i.MO,mn:i.MN,msqrt:i.MSqrt,mfenced:i.MFenced,mfrac:i.MFrac,mroot:i.MRoot,maction:i.MAction,menclose:i.MEnclose,merror:i.MError,mphantom:i.MPhantom,msup:i.MSup,msub:i.MSub,msubsup:i.MSubsup,mmultiscripts:i.MMultiscripts,mtext:i.MText,munderover:i.MUnderover,mtable:i.MTable,mtr:i.MTr,mover:i.GenericUnderOver,munder:i.GenericUnderOver,mrow:i.GenericSpacingWrapper,mpadded:i.GenericSpacingWrapper,void:i.Void}},5243:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorHandler=void 0,t.ErrorHandler=class{constructor(){this._errors=[],this.errorLocator={}}fixError(e,t){return this._isMissingAttributeValueError(t)?(this._errors.push(t),this._fixMissingAttribute(t,e)):e}isThereAnyErrors(){return this._errors.length>0}cleanErrors(){this._errors=[]}_fixMissingAttribute(e,t){const r=e.split('"')[1];if(r)return t.replace(this._matchMissingValueForAttribute(r),"");for(;this._mathGenericMissingValue().exec(t);)t=t.replace(this._mathGenericMissingValue(),"$1$3");return t}_matchMissingValueForAttribute(e){return new RegExp(`(${e}=(?!("|')))|(${e}(?!("|')))`,"gm")}_mathGenericMissingValue(){return/(\<.* )(\w+=(?!\"|\'))(.*\>)/gm}_isMissingAttributeValueError(e){return!!e.includes("attribute")&&!!e.includes("missed")||e.includes("attribute value missed")}}},9208:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(9548),t),a(r(5243),t),a(r(1101),t)},1101:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ElementsToMathMLAdapter=void 0,t.ElementsToMathMLAdapter=class{convert(e){return e.filter((e=>void 0!==e.tagName)).map((e=>this._convertElement(e)))}_convertElement(e){return{name:e.tagName,attributes:this._convertElementAttributes(e.attributes),value:this._hasElementChild(e)?"":e.textContent||"",children:this._hasElementChild(e)?this.convert(Array.from(e.childNodes)):[]}}_convertElementAttributes(e){return Array.from(e).reduce(((e,t)=>Object.assign({[t.nodeName]:t.nodeValue===t.nodeName?"":t.nodeValue},e)),{})}_hasElementChild(e){const t=e.childNodes;return!!t&&0!==t.length&&this._isThereAnyNoTextNode(t)}_isThereAnyNoTextNode(e){return Array.from(e).some((e=>"#text"!==e.nodeName))}}},9548:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.XmlToMathMLAdapter=void 0;const a=n(r(8978));t.XmlToMathMLAdapter=class{constructor(e,t){this._xml="",this._elementsConvertor=e,this._errorHandler=t,this._xmlDOM=new a.default.DOMParser({locator:this._errorHandler.errorLocator,errorHandler:this._fixError.bind(this)})}convert(e){return this._xml=this._removeLineBreaks(e),this._xml=this._removeMsWordPrefixes(this._xml),this._elementsConvertor.convert(this._mathMLElements)}_fixError(e){this._xml=this._errorHandler.fixError(this._xml,e)}_removeLineBreaks(e){return e.replace(/\n|\r\n|\r/g,"")}_removeMsWordPrefixes(e){return e.replace(/mml:/g,"")}get _mathMLElements(){let e=this._xmlDOM.parseFromString(this._xml).getElementsByTagName("math");return this._errorHandler.isThereAnyErrors()&&(this._errorHandler.cleanErrors(),e=this._xmlDOM.parseFromString(this._xml).getElementsByTagName("math")),Array.from(e)}}},7941:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(8585),t)},8585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeToMathElementsConverter=void 0;const n=r(9208);t.makeToMathElementsConverter=()=>{const e=new n.ElementsToMathMLAdapter,t=new n.ErrorHandler;return new n.XmlToMathMLAdapter(e,t)}},8672:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(3798),t)},3798:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathMLToLaTeX=void 0;const n=r(5443),a=r(7941);t.MathMLToLaTeX=class{static convert(e){return(0,a.makeToMathElementsConverter)().convert(e).map((e=>new n.MathMLElementToLatexConverterAdapter(e).toLatexConverter())).map((e=>e.convert())).join("").trim()}}},2965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allMathOperatorsByChar=void 0,t.allMathOperatorsByChar={_:"\\underline","&#x23E1;":"\\underbrace","&#x23E0;":"\\overbrace","&#x23DF;":"\\underbrace","&#x23DE;":"\\overbrace","&#x23DD;":"\\underbrace","&#x23DC;":"\\overbrace","&#x23B5;":"\\underbrace","&#x23B4;":"\\overbrace","&#x20DC;":"\\square","&#x20DB;":"\\square","&#x2064;":"","&#x2057;":"''''","&#x203E;":"\\bar","&#x2037;":"```","&#x2036;":"``","&#x2035;":"`","&#x2034;":"'''","&#x2033;":"''","&#x201F;":"``","&#x201E;":",,","&#x201B;":"`","&#x201A;":",","&#x302;":"\\hat","&#x2F7;":"\\sim","&#x2DD;":"\\sim","&#x2DC;":"\\sim","&#x2DA;":"\\circ","&#x2D9;":"\\cdot","&#x2D8;":"","&#x2CD;":"\\_","&#x2CB;":"\u02cb","&#x2CA;":"\u02ca","&#x2C9;":"\u02c9","&#x2C7;":"","&#x2C6;":"\\hat","&#xBA;":"o","&#xB9;":"1","&#xB8;":"\xb8","&#xB4;":"\xb4","&#xB3;":"3","&#xB2;":"2","&#xB0;":"\\circ","&#xAF;":"\\bar","&#xAA;":"a","&#xA8;":"\\cdot\\cdot","~":"\\sim","`":"`","^":"\\hat","--":"--","++":"++","&amp;":"\\&","&#x2061;":"","&#x221C;":"\\sqrt[4]{}","&#x221B;":"\\sqrt[3]{}","&#x221A;":"\\sqrt{}","&#x2146;":"d","&#x2145;":"\\mathbb{D}","?":"?","@":"@","//":"//","!!":"!!","!":"!","&#x266F;":"\\#","&#x266E;":"","&#x266D;":"","&#x2032;":"'","&lt;>":"<>","**":"\\star\\star","&#x2207;":"\\nabla","&#x2202;":"\\partial","&#x2299;":"\\bigodot","&#xAC;":"\\neg","&#x2222;":"\\measuredangle","&#x2221;":"\\measuredangle","&#x2220;":"\\angle","&#xF7;":"\\div","/":"/","&#x2216;":"\\backslash","\\":"\\backslash","%":"\\%","&#x2297;":"\\bigotimes","&#xB7;":"\\cdot","&#x2A3F;":"\\coprod","&#x2A2F;":"\\times","&#x22C5;":"\\cdot","&#x22A1;":"\\boxdot","&#x22A0;":"\\boxtimes","&#x2062;":"","&#x2043;":"-","&#x2022;":"\\cdot","&#xD7;":"\\times",".":".","*":"\\star","&#x222A;":"\\cup","&#x2229;":"\\cap","&#x2210;":"\\coprod","&#x220F;":"\\prod","&#x2240;":"","&#x2AFF;":"","&#x2AFC;":"\\mid\\mid\\mid","&#x2A09;":"\\times","&#x2A08;":"","&#x2A07;":"","&#x2A06;":"\\sqcup","&#x2A05;":"\\sqcap","&#x2A02;":"\\otimes","&#x2A00;":"\\odot","&#x22C2;":"\\cap","&#x22C1;":"\\vee","&#x22C0;":"\\wedge","&#x2A04;":"\\uplus","&#x2A03;":"\\cup","&#x22C3;":"\\cup","&#x2A1C;":"\\underline{\\int}","&#x2A1B;":"\\overline{\\int}","&#x2A1A;":"\\int","&#x2A19;":"\\int","&#x2A18;":"\\int","&#x2A17;":"\\int","&#x2A16;":"\\oint","&#x2A15;":"\\oint","&#x2A14;":"\\int","&#x2A13;":"\\int","&#x2A12;":"\\int","&#x2A11;":"\\int","&#x2A10;":"\\int","&#x2A0F;":"\\bcancel{\\int}","&#x2A0E;":"","&#x2A0D;":"\\hcancel{\\int}","&#x2A0C;":"\\iiiint","&#x2233;":"\\oint","&#x2232;":"\\oint","&#x2231;":"\\int","&#x2230;":"\\oiint","&#x222F;":"\\oiint","&#x222E;":"\\oint","&#x222B;":"\\int","&#x2A01;":"\\oplus","&#x2298;":"\\oslash","&#x2296;":"\\ominus","&#x2295;":"\\oplus","&#x222D;":"\\iiint","&#x222C;":"\\iint","&#x2A0B;":"","&#x2A0A;":"","&#x2211;":"\\sum","&#x229F;":"\\boxminus","&#x229E;":"\\boxplus","&#x2214;":"\\dot{+}","&#x2213;":"+-","&#x2212;":"-","&#xB1;":"\\pm","-":"-","+":"+","&#x2B46;":"\\Rrightarrow","&#x2B45;":"\\Lleftarrow","&#x29F4;":":\\rightarrow","&#x29EF;":"","&#x29DF;":"\\bullet-\\bullet","&#x299F;":"\\angle","&#x299E;":"\\measuredangle","&#x299D;":"\\measuredangle","&#x299C;":"\\perp","&#x299B;":"\\measuredangle","&#x299A;":"","&#x2999;":"\\vdots","&#x297F;":"","&#x297E;":"","&#x297D;":"\\prec","&#x297C;":"\\succ","&#x297B;":"\\underset{\\rightarrow}{\\supset}","&#x297A;":"","&#x2979;":"\\underset{\\rightarrow}{\\subset}","&#x2978;":"\\underset{\\rightarrow}{>}","&#x2977;":"","&#x2976;":"\\underset{\\leftarrow}{<}","&#x2975;":"\\underset{\\approx}{\\rightarrow}","&#x2974;":"\\underset{\\sim}{\\rightarrow}","&#x2973;":"\\underset{\\sim}{\\leftarrow}","&#x2972;":"\\overset{\\sim}{\\rightarrow}","&#x2971;":"\\overset{=}{\\rightarrow}","&#x2970;":"","&#x296F;":"","&#x296E;":"","&#x296D;":"\\overline{\\rightharpoondown}","&#x296C;":"\\underline{\\rightharpoonup}","&#x296B;":"\\overline{\\leftharpoondown}","&#x296A;":"\\underline{\\leftharpoonup}","&#x2969;":"\\rightleftharpoons","&#x2968;":"\\rightleftharpoons","&#x2967;":"\\rightleftharpoons","&#x2966;":"\\rightleftharpoons","&#x2965;":"\\Downarrow","&#x2964;":"\\Rightarrow","&#x2963;":"\\Uparrow","&#x2962;":"\\Leftarrow","&#x2961;":"\\downarrow","&#x2960;":"\\uparrow","&#x295F;":"\\rightarrow","&#x295E;":"\\leftarrow","&#x295D;":"\\downarrow","&#x295C;":"\\uparrow","&#x295B;":"\\rightarrow","&#x295A;":"\\leftarrow","&#x2959;":"\\downarrow","&#x2958;":"\\uparrow","&#x2957;":"\\rightarrow","&#x2956;":"\\leftarrow","&#x2955;":"\\downarrow","&#x2954;":"\\uparrow","&#x2953;":"\\rightarrow","&#x2952;":"\\leftarrow","&#x2951;":"\\updownarrow","&#x2950;":"\\leftrightarrow","&#x294F;":"\\updownarrow","&#x294E;":"\\leftrightarrow","&#x294D;":"\\updownarrow","&#x294C;":"\\updownarrow","&#x294B;":"\\leftrightarrow","&#x294A;":"\\leftrightarrow","&#x2949;":"","&#x2948;":"\\leftrightarrow","&#x2947;":"\\nrightarrow","&#x2946;":"","&#x2945;":"","&#x2944;":"\\rightleftarrows","&#x2943;":"\\leftrightarrows","&#x2942;":"\\rightleftarrows","&#x2941;":"\\circlearrowright","&#x2940;":"\\circlearrowleft","&#x293F;":"\\rightarrow","&#x293E;":"\\leftarrow","&#x293D;":"","&#x293C;":"","&#x293B;":"","&#x293A;":"","&#x2939;":"","&#x2938;":"","&#x2937;":"\\Rsh","&#x2936;":"\\Lsh","&#x2935;":"\\downarrow","&#x2934;":"\\uparrow","&#x2933;":"\\leadsto","&#x2932;":"","&#x2931;":"","&#x2930;":"","&#x292F;":"","&#x292E;":"","&#x292D;":"","&#x292C;":"\\times","&#x292B;":"\\times","&#x292A;":"","&#x2929;":"","&#x2928;":"","&#x2927;":"","&#x2926;":"","&#x2925;":"","&#x2924;":"","&#x2923;":"","&#x2922;":"","&#x2921;":"","&#x2920;":"\\mapsto\\cdot","&#x291F;":"\\cdot\\leftarrow","&#x291E;":"\\rightarrow\\cdot","&#x291D;":"\\leftarrow","&#x291C;":"\\rightarrow","&#x291B;":"\\leftarrow","&#x291A;":"\\rightarrow","&#x2919;":"\\leftarrow","&#x2918;":"\\rightarrow","&#x2917;":"\\rightarrow","&#x2916;":"\\rightarrow","&#x2915;":"\\rightarrow","&#x2914;":"\\rightarrow","&#x2913;":"\\downarrow","&#x2912;":"\\uparrow","&#x2911;":"\\rightarrow","&#x2910;":"\\rightarrow","&#x290F;":"\\rightarrow","&#x290E;":"\\leftarrow","&#x290D;":"\\rightarrow","&#x290C;":"\\leftarrow","&#x290B;":"\\Downarrow","&#x290A;":"\\Uparrow","&#x2909;":"\\uparrow","&#x2908;":"\\downarrow","&#x2907;":"\\Rightarrow","&#x2906;":"\\Leftarrow","&#x2905;":"\\mapsto","&#x2904;":"\\nLeftrightarrow","&#x2903;":"\\nRightarrow","&#x2902;":"\\nLeftarrow","&#x2901;":"\\rightsquigarrow","&#x2900;":"\\rightsquigarrow","&#x27FF;":"\\rightsquigarrow","&#x27FE;":"\\Rightarrow","&#x27FD;":"\\Leftarrow","&#x27FC;":"\\mapsto","&#x27FB;":"\\leftarrow","&#x27FA;":"\\Longleftrightarrow","&#x27F9;":"\\Longrightarrow","&#x27F8;":"\\Longleftarrow","&#x27F7;":"\\leftrightarrow","&#x27F6;":"\\rightarrow","&#x27F5;":"\\leftarrow","&#x27F1;":"\\Downarrow","&#x27F0;":"\\Uparrow","&#x22B8;":"\\rightarrow","&#x21FF;":"\\leftrightarrow","&#x21FE;":"\\rightarrow","&#x21FD;":"\\leftarrow","&#x21FC;":"\\nleftrightarrow","&#x21FB;":"\\nrightarrow","&#x21FA;":"\\nleftarrow","&#x21F9;":"\\nleftrightarrow","&#x21F8;":"\\nrightarrow","&#x21F7;":"\\nleftarrow","&#x21F6;":"\\Rrightarrow","&#x21F5;":"","&#x21F4;":"\\rightarrow","&#x21F3;":"\\Updownarrow","&#x21F2;":"\\searrow","&#x21F1;":"\\nwarrow","&#x21F0;":"\\Leftarrow","&#x21EF;":"\\Uparrow","&#x21EE;":"\\Uparrow","&#x21ED;":"\\Uparrow","&#x21EC;":"\\Uparrow","&#x21EB;":"\\Uparrow","&#x21EA;":"\\Uparrow","&#x21E9;":"\\Downarrow","&#x21E8;":"\\Rightarrow","&#x21E7;":"\\Uparrow","&#x21E6;":"\\Leftarrow","&#x21E5;":"\\rightarrow","&#x21E4;":"\\leftarrow","&#x21E3;":"\\downarrow","&#x21E2;":"\\rightarrow","&#x21E1;":"\\uparrow","&#x21E0;":"\\leftarrow","&#x21DF;":"\\downarrow","&#x21DE;":"\\uparrow","&#x21DD;":"\\rightsquigarrow","&#x21DC;":"\\leftarrow","&#x21DB;":"\\Rrightarrow","&#x21DA;":"\\Lleftarrow","&#x21D9;":"\\swarrow","&#x21D8;":"\\searrow","&#x21D7;":"\\nearrow","&#x21D6;":"\\nwarrow","&#x21D5;":"\\Updownarrow","&#x21D4;":"\\Leftrightarrow","&#x21D3;":"\\Downarrow","&#x21D2;":"\\Rightarrow","&#x21D1;":"\\Uparrow","&#x21D0;":"\\Leftarrow","&#x21CF;":"\\nRightarrow","&#x21CE;":"\\nLeftrightarrow","&#x21CD;":"\\nLeftarrow","&#x21CC;":"\\rightleftharpoons","&#x21CB;":"\\leftrightharpoons","&#x21CA;":"\\downdownarrows","&#x21C9;":"\\rightrightarrows","&#x21C8;":"\\upuparrows","&#x21C7;":"\\leftleftarrows","&#x21C6;":"\\leftrightarrows","&#x21C5;":"","&#x21C4;":"\\rightleftarrows","&#x21C3;":"\\downharpoonleft","&#x21C2;":"\\downharpoonright","&#x21C1;":"\\rightharpoondown","&#x21C0;":"\\rightharpoonup","&#x21BF;":"\\upharpoonleft","&#x21BE;":"\\upharpoonright","&#x21BD;":"\\leftharpoondown","&#x21BC;":"\\leftharpoonup","&#x21BB;":"\\circlearrowright","&#x21BA;":"\\circlearrowleft","&#x21B9;":"\\leftrightarrows","&#x21B8;":"\\overline{\\nwarrow}","&#x21B7;":"\\curvearrowright","&#x21B6;":"\\curvearrowleft","&#x21B5;":"\\swarrow","&#x21B4;":"\\searrow","&#x21B3;":"\\Rsh","&#x21B2;":"\\Lsh","&#x21B1;":"\\Rsh","&#x21B0;":"\\Lsh","&#x21AF;":"\\swarrow","&#x21AE;":"","&#x21AD;":"\\leftrightsquigarrow","&#x21AC;":"\\looparrowright","&#x21AB;":"\\looparrowleft","&#x21AA;":"\\hookrightarrow","&#x21A9;":"\\hookleftarrow","&#x21A8;":"\\underline{\\updownarrow}","&#x21A7;":"\\downarrow","&#x21A6;":"\\rightarrowtail","&#x21A5;":"\\uparrow","&#x21A4;":"\\leftarrowtail","&#x21A3;":"\\rightarrowtail","&#x21A2;":"\\leftarrowtail","&#x21A1;":"\\downarrow","&#x21A0;":"\\twoheadrightarrow","&#x219F;":"\\uparrow","&#x219E;":"\\twoheadleftarrow","&#x219D;":"\\nearrow","&#x219C;":"\\nwarrow","&#x219B;":"","&#x219A;":"","&#x2199;":"\\swarrow","&#x2198;":"\\searrow","&#x2197;":"\\nearrow","&#x2196;":"\\nwarrow","&#x2195;":"\\updownarrow","&#x2194;":"\\leftrightarrow","&#x2193;":"\\downarrow","&#x2192;":"\\rightarrow","&#x2191;":"\\uparrow","&#x2190;":"\\leftarrow","|||":"\\left|||\\right.","||":"\\left||\\right.","|":"\\left|\\right.","&#x2AFE;":"","&#x2AFD;":"//","&#x2AFB;":"///","&#x2AFA;":"","&#x2AF9;":"","&#x2AF8;":"","&#x2AF7;":"","&#x2AF6;":"\\vdots","&#x2AF5;":"","&#x2AF4;":"","&#x2AF3;":"","&#x2AF2;":"\\nparallel","&#x2AF1;":"","&#x2AF0;":"","&#x2AEF;":"","&#x2AEE;":"\\bcancel{\\mid}","&#x2AED;":"","&#x2AEC;":"","&#x2AEB;":"","&#x2AEA;":"","&#x2AE9;":"","&#x2AE8;":"\\underline{\\perp}","&#x2AE7;":"\\overline{\\top}","&#x2AE6;":"","&#x2AE5;":"","&#x2AE4;":"","&#x2AE3;":"","&#x2AE2;":"","&#x2AE1;":"","&#x2AE0;":"\\perp","&#x2ADF;":"\\top","&#x2ADE;":"\\dashv","&#x2ADD;&#x338;":"","&#x2ADD;":"","&#x2ADB;":"\\pitchfork","&#x2ADA;":"","&#x2AD9;":"","&#x2AD8;":"","&#x2AD7;":"","&#x2AD6;":"","&#x2AD5;":"","&#x2AD4;":"","&#x2AD3;":"","&#x2AD2;":"","&#x2AD1;":"","&#x2AD0;":"","&#x2ACF;":"","&#x2ACE;":"","&#x2ACD;":"","&#x2ACC;":"\\underset{\\neq}{\\supset}","&#x2ACB;":"\\underset{\\neq}{\\subset}","&#x2ACA;":"\\underset{\\approx}{\\supset}","&#x2AC9;":"\\underset{\\approx}{\\subset}","&#x2AC8;":"\\underset{\\sim}{\\supset}","&#x2AC7;":"\\underset{\\sim}{\\subset}","&#x2AC6;":"\\supseteqq","&#x2AC5;":"\\subseteqq","&#x2AC4;":"\\dot{\\supseteq}","&#x2AC3;":"\\dot{\\subseteq}","&#x2AC2;":"\\underset{\\times}{\\supset}","&#x2AC1;":"\\underset{\\times}{\\subset}","&#x2AC0;":"\\underset{+}{\\supset}","&#x2ABF;":"\\underset{+}{\\subset}","&#x2ABE;":"","&#x2ABD;":"","&#x2ABC;":"\\gg ","&#x2ABB;":"\\ll","&#x2ABA;":"\\underset{\\cancel{\\approx}}{\\succ}","&#x2AB9;":"\\underset{\\cancel{\\approx}}{\\prec}","&#x2AB8;":"\\underset{\\approx}{\\succ}","&#x2AB7;":"\\underset{\\approx}{\\prec}","&#x2AB6;":"\\underset{\\cancel{=}}{\\succ}","&#x2AB5;":"\\underset{\\cancel{=}}{\\prec}","&#x2AB4;":"\\underset{=}{\\succ}","&#x2AB3;":"\\underset{=}{\\prec}","&#x2AB2;":"","&#x2AB1;":"","&#x2AAE;":"","&#x2AAD;":"\\underline{\\hcancel{>}}","&#x2AAC;":"\\underline{\\hcancel{>}}","&#x2AAB;":"\\hcancel{>}","&#x2AAA;":"\\hcancel{<}","&#x2AA9;":"","&#x2AA8;":"","&#x2AA7;":"\\vartriangleright","&#x2AA6;":"\\vartriangleleft","&#x2AA5;":"><","&#x2AA4;":"><","&#x2AA3;":"\\underline{\\ll}","&#x2AA2;&#x338;":"\\cancel{\\gg}","&#x2AA2;":"\\gg","&#x2AA1;&#x338;":"\\cancel{\\ll}","&#x2AA1;":"\\ll","&#x2AA0;":"\\overset{\\sim}{\\geqq}","&#x2A9F;":"\\overset{\\sim}{\\leqq}","&#x2A9E;":"\\overset{\\sim}{>}","&#x2A9D;":"\\overset{\\sim}{<}","&#x2A9C;":"","&#x2A9B;":"","&#x2A9A;":"\\overset{=}{>}","&#x2A99;":"\\overset{=}{<}","&#x2A98;":"","&#x2A97;":"","&#x2A96;":"","&#x2A95;":"","&#x2A94;":"","&#x2A93;":"","&#x2A92;":"\\underset{=}{\\gtrless}","&#x2A91;":"\\underset{=}{\\lessgtr}","&#x2A90;":"\\underset{<}{\\gtrsim}","&#x2A8F;":"\\underset{>}{\\lesssim}","&#x2A8E;":"\\underset{\\simeq}{>}","&#x2A8D;":"\\underset{\\simeq}{<}","&#x2A8C;":"\\gtreqqless","&#x2A8B;":"\\lesseqqgtr","&#x2A8A;":"\\underset{\\cancel{\\approx}}{>}","&#x2A89;":"\\underset{\\approx}{<}","&#x2A86;":"\\underset{\\approx}{>}","&#x2A85;":"\\underset{\\approx}{<}","&#x2A84;":"","&#x2A83;":"","&#x2A82;":"","&#x2A81;":"","&#x2A80;":"","&#x2A7F;":"","&#x2A7E;&#x338;":"\\bcancel{\\geq}","&#x2A7E;":"\\geq","&#x2A7D;&#x338;":"\\bcancel{\\leq}","&#x2A7D;":"\\leq","&#x2A7C;":"","&#x2A7B;":"","&#x2A7A;":"","&#x2A79;":"","&#x2A78;":"\\overset{\\dots}{\\equiv}","&#x2A77;":"","&#x2A76;":"===","&#x2A75;":"==","&#x2A74;":"::=","&#x2A73;":"","&#x2A72;":"\\underset{=}{+}","&#x2A71;":"\\overset{=}{+}","&#x2A70;":"\\overset{\\approx}{=}","&#x2A6F;":"\\overset{\\wedge}{=}","&#x2A6E;":"\\overset{*}{=}","&#x2A6D;":"\\dot{\\approx}","&#x2A6C;":"","&#x2A6B;":"","&#x2A6A;":"\\dot{\\sim}","&#x2A69;":"","&#x2A68;":"","&#x2A67;":"\\dot{\\equiv}","&#x2A66;":"\\underset{\\cdot}{=}","&#x2A65;":"","&#x2A64;":"","&#x2A63;":"\\underset{=}{\\vee}","&#x2A62;":"\\overset{=}{\\vee}","&#x2A61;":"ul(vv)","&#x2A60;":"\\underset{=}{\\wedge}","&#x2A5F;":"\\underline{\\wedge}","&#x2A5E;":"\\overset{=}{\\wedge}","&#x2A5D;":"\\hcancel{\\vee}","&#x2A5C;":"\\hcancel{\\wedge}","&#x2A5B;":"","&#x2A5A;":"","&#x2A59;":"","&#x2A58;":"\\vee","&#x2A57;":"\\wedge","&#x2A56;":"","&#x2A55;":"","&#x2A54;":"","&#x2A53;":"","&#x2A52;":"\\dot{\\vee}","&#x2A51;":"\\dot{\\wedge}","&#x2A50;":"","&#x2A4F;":"","&#x2A4E;":"","&#x2A4D;":"\\overline{\\cap}","&#x2A4C;":"\\overline{\\cup}","&#x2A4B;":"","&#x2A4A;":"","&#x2A49;":"","&#x2A48;":"","&#x2A47;":"","&#x2A46;":"","&#x2A45;":"","&#x2A44;":"","&#x2A43;":"\\overline{\\cap}","&#x2A42;":"\\overline{\\cup}","&#x2A41;":"","&#x2A40;":"","&#x2A3E;":"","&#x2A3D;":"\\llcorner","&#x2A3C;":"\\lrcorner","&#x2A3B;":"","&#x2A3A;":"","&#x2A39;":"","&#x2A38;":"","&#x2A37;":"","&#x2A36;":"\\hat{\\otimes}","&#x2A35;":"","&#x2A34;":"","&#x2A33;":"","&#x2A32;":"\\underline{\\times}","&#x2A31;":"\\underline{\\times}","&#x2A30;":"\\dot{\\times}","&#x2A2E;":"","&#x2A2D;":"","&#x2A2C;":"","&#x2A2B;":"","&#x2A2A;":"","&#x2A29;":"","&#x2A28;":"","&#x2A27;":"","&#x2A26;":"\\underset{\\sim}{+}","&#x2A25;":"\\underset{\\circ}{+}","&#x2A24;":"\\overset{\\sim}{+}","&#x2A23;":"\\hat{+}","&#x2A22;":"\\dot{+}","&#x2A21;":"\\upharpoonright","&#x2A20;":">>","&#x2A1F;":"","&#x2A1E;":"\\triangleleft","&#x2A1D;":"\\bowtie","&#x29FF;":"","&#x29FE;":"+","&#x29FB;":"\\hcancel{|||}","&#x29FA;":"\\hcancel{||}","&#x29F9;":"\\backslash","&#x29F8;":"/","&#x29F7;":"hcancel{\backslash}","&#x29F6;":"","&#x29F5;":"\\backslash","&#x29F2;":"\\Phi","&#x29F1;":"","&#x29F0;":"","&#x29EE;":"","&#x29ED;":"","&#x29EC;":"","&#x29EB;":"\\lozenge","&#x29EA;":"","&#x29E9;":"","&#x29E8;":"","&#x29E7;":"\\ddagger","&#x29E2;":"\\sqcup\\sqcup","&#x29E1;":"","&#x29E0;":"\\square","&#x29DE;":"","&#x29DD;":"","&#x29DC;":"","&#x29DB;":"\\{\\{","&#x29D9;":"\\{","&#x29D8;":"\\}","&#x29D7;":"","&#x29D6;":"","&#x29D5;":"\\bowtie","&#x29D4;":"\\bowtie","&#x29D3;":"\\bowtie","&#x29D2;":"\\bowtie","&#x29D1;":"\\bowtie","&#x29D0;&#x338;":"| \\not\\triangleright","&#x29D0;":"| \\triangleright","&#x29CF;&#x338;":"\\not\\triangleleft |","&#x29CF;":"\\triangleleft |","&#x29CE;":"","&#x29CD;":"\\triangle","&#x29CC;":"","&#x29CB;":"\\underline{\\triangle}","&#x29CA;":"\\dot{\\triangle}","&#x29C9;":"","&#x29C8;":"\\boxed{\\circ}","&#x29C7;":"\\boxed{\\circ}","&#x29C6;":"\\boxed{\\rightarrow}","&#x29C5;":"\\bcancel{\\square}","&#x29C4;":"\\cancel{\\square}","&#x29C3;":"\\odot","&#x29C2;":"\\odot","&#x29BF;":"\\odot","&#x29BE;":"\\odot","&#x29BD;":"\\varnothing","&#x29BC;":"\\oplus","&#x29BB;":"\\otimes","&#x29BA;":"","&#x29B9;":"\\varnothing","&#x29B8;":"\\varnothing","&#x29B7;":"\\ominus","&#x29B6;":"\\ominus","&#x29B5;":"\\ominus","&#x29B4;":"\\vec{\\varnothing}","&#x29B3;":"\\vec{\\varnothing}","&#x29B2;":"\\dot{\\varnothing}","&#x29B1;":"\\overline{\\varnothing}","&#x29B0;":"\\varnothing","&#x29AF;":"","&#x29AE;":"","&#x29AD;":"","&#x29AC;":"","&#x29AB;":"","&#x29AA;":"","&#x29A9;":"","&#x29A8;":"","&#x29A7;":"","&#x29A6;":"","&#x29A5;":"","&#x29A4;":"","&#x29A3;":"","&#x29A2;":"","&#x29A1;":"\\not\\lor","&#x29A0;":"\\bcancel{>}","&#x2982;":":","&#x2981;":"\\circ","&#x2758;":"|","&#x25B2;":"\\bigtriangleup","&#x22FF;":"\\Epsilon","&#x22FE;":"\\overline{\\ni}","&#x22FD;":"\\overline{\\ni}","&#x22FC;":"\\in","&#x22FB;":"\\in","&#x22FA;":"\\in","&#x22F9;":"\\underline{\\in}","&#x22F8;":"\\underline{\\in}","&#x22F7;":"\\overline{\\in}","&#x22F6;":"\\overline{\\in}","&#x22F5;":"\\dot{\\in}","&#x22F4;":"\\in","&#x22F3;":"\\in","&#x22F2;":"\\in","&#x22F0;":"\\ddots","&#x22E9;":"\\underset{\\sim}{\\succ}","&#x22E8;":"\\underset{\\sim}{\\prec}","&#x22E7;":"\\underset{\\not\\sim}{>}","&#x22E6;":"\\underset{\\not\\sim}{<}","&#x22E5;":"\\not\\sqsupseteq","&#x22E4;":"\\not\\sqsubseteq","&#x22E3;":"\\not\\sqsupseteq","&#x22E2;":"\\not\\sqsubseteq","&#x22E1;":"\\nsucc","&#x22E0;":"\\nprec","&#x22DF;":"\\succ","&#x22DE;":"\\prec","&#x22DD;":"\\overline{>}","&#x22DC;":"\\overline{<}","&#x22DB;":"\\underset{>}{\\leq}","&#x22DA;":"\\underset{<}{\\geq}","&#x22D5;":"\\#","&#x22D3;":"\\cup","&#x22D2;":"\\cap","&#x22D1;":"\\supset","&#x22D0;":"\\subset","&#x22CF;":"\\wedge","&#x22CE;":"\\vee","&#x22CD;":"\\simeq","&#x22C8;":"\\bowtie","&#x22C7;":"\\ast","&#x22C6;":"\\star","&#x22C4;":"\\diamond","&#x22BF;":"\\triangle","&#x22BE;":"\\measuredangle","&#x22BD;":"\\overline{\\lor}","&#x22BC;":"\\overline{\\land}","&#x22BB;":"\\underline{\\lor}","&#x22BA;":"\\top","&#x22B9;":"","&#x22B7;":"\\circ\\multimap","&#x22B6;":"\\circ\\multimap","&#x22B3;":"\\triangleright","&#x22B2;":"\\triangleleft","&#x22B1;":"\\succ","&#x22B0;":"\\prec","&#x22AB;":"|\\models","&#x22AA;":"|\\models","&#x22A7;":"\\models","&#x22A6;":"\\vdash","&#x229D;":"\\ominus","&#x229C;":"\\ominus","&#x229B;":"\\odot","&#x229A;":"\\odot","&#x2294;":"\\sqcup","&#x2293;":"\\sqcap","&#x2292;":"\\sqsupseteq","&#x2291;":"\\sqsubseteq","&#x2290;&#x338;":"\\not\\sqsupset","&#x2290;":"\\sqsupset","&#x228F;&#x338;":"\\not\\sqsubset","&#x228F;":"\\sqsubset","&#x228E;":"\\cup","&#x228D;":"\\cup","&#x228C;":"\\cup","&#x227F;&#x338;":"\\not\\succsim","&#x227F;":"\\succsim","&#x227E;":"\\precsim","&#x2279;":"\\not\\overset{>}{<}","&#x2278;":"\\not\\overset{>}{<}","&#x2277;":"\\overset{>}{<}","&#x2276;":"\\overset{<}{>}","&#x2275;":"\\not\\geg","&#x2274;":"\\not\\leq","&#x2273;":"\\geg","&#x2272;":"\\leq","&#x226C;":"","&#x2267;":"\\geg","&#x2266;&#x338;":"\\not\\leq","&#x2266;":"\\leq","&#x2263;":"\\overset{=}{=} ","&#x225E;":"\\overset{m}{=} ","&#x225D;":"\\overset{def}{=}","&#x2258;":"=","&#x2256;":"=","&#x2255;":"=:","&#x2253;":"\\doteq","&#x2252;":"\\doteq","&#x2251;":"\\doteq","&#x2250;":"\\doteq","&#x224F;&#x338;":"","&#x224F;":"","&#x224E;&#x338;":"","&#x224E;":"","&#x224C;":"\\approx","&#x224B;":"\\approx","&#x224A;":"\\approx","&#x2242;&#x338;":"\\neq","&#x2242;":"=","&#x223F;":"\\sim","&#x223E;":"\\infty","&#x223D;&#x331;":"\\sim","&#x223D;":"\\sim","&#x223B;":"\\sim","&#x223A;":":-:","&#x2239;":"-:","&#x2238;":"\\bot","&#x2237;":"::","&#x2236;":":","&#x2223;":"|","&#x221F;":"\\llcorner","&#x2219;":"\\cdot","&#x2218;":"\\circ","&#x2217;":"*","&#x2215;":"/","&#x220E;":"\\square","&#x220D;":"\\ni","&#x220A;":"\\in","&#x2206;":"\\Delta","&#x2044;":"/","&#x2AB0;&#x338;":"\\nsucceq","&#x2AB0;":"\\succeq","&#x2AAF;&#x338;":"\\npreceq","&#x2AAF;":"\\preceq","&#x2A88;":"\\ngeqslant","&#x2A87;":"\\nleqslant","&#x29F3;":"\\Phi","&#x29E6;":"\\models","&#x29E5;":"\\not\\equiv","&#x29E4;":"\\approx\\neq","&#x29E3;":"\\neq","&#x29C1;":"\\circle","&#x29C0;":"\\circle","&#x25E6;":"\\circle","&#x25D7;":"\\circle","&#x25D6;":"\\circle","&#x25CF;":"\\circle","&#x25CE;":"\\circledcirc","&#x25CD;":"\\circledcirc","&#x25CC;":"\\circledcirc","&#x25C9;":"\\circledcirc","&#x25C8;":"\\diamond","&#x25C7;":"\\diamond","&#x25C6;":"\\diamond","&#x25C5;":"\\triangleleft","&#x25C4;":"\\triangleleft","&#x25C3;":"\\triangleleft","&#x25C2;":"\\triangleleft","&#x25C1;":"\\triangleleft","&#x25C0;":"\\triangleleft","&#x25BF;":"\\triangledown","&#x25BE;":"\\triangledown","&#x25BD;":"\\triangledown","&#x25BC;":"\\triangledown","&#x25B9;":"\\triangleright","&#x25B8;":"\\triangleright","&#x25B7;":"\\triangleright","&#x25B6;":"\\triangleright","&#x25B5;":"\\triangle","&#x25B4;":"\\triangle","&#x25B3;":"\\triangle","&#x25B1;":"\\square","&#x25B0;":"\\square","&#x25AF;":"\\square","&#x25AE;":"\\square","&#x25AD;":"\\square","&#x25AB;":"\\square","&#x25AA;":"\\square","&#x25A1;":"\\square","&#x25A0;":"\\square","&#x22ED;":"\\not\\triangleright","&#x22EC;":"\\not\\triangleleft","&#x22EB;":"\\not\\triangleright","&#x22EA;":"\\not\\triangleleft","&#x22D9;":"\\ggg","&#x22D8;":"\\lll","&#x22D7;":"*>","&#x22D6;":"<*","&#x22D4;":"\\pitchfork","&#x22CC;":"","&#x22CB;":"","&#x22CA;":"\\rtimes","&#x22C9;":"\\ltimes","&#x22B5;":"\\triangleright","&#x22B4;":"","&#x22A5;":"\\bot","&#x2281;":"\\nsucc","&#x2280;":"\\preceq","&#x227D;":"\\succeq","&#x227C;":"\\preceq","&#x227B;":"\\succ","&#x227A;":"\\prec","&#x2271;":"\\geq/","&#x2270;":"\\leq/","&#x226D;":"\\neq","&#x226B;&#x338;":"\\not\\gg","&#x226B;":"\\gg","&#x226A;&#x338;":"\\not\\ll","&#x226A;":"\\ll","&#x2269;":"\\ngeqslant","&#x2268;":"\\nleqslant","&#x2261;":"\\equiv","&#x225F;":"\\doteq","&#x225C;":"\\triangleq","&#x225B;":"\\doteq","&#x225A;":"\\triangleq","&#x2259;":"\\triangleq","&#x2257;":"\\doteq","&#x2254;":":=","&#x224D;":"\\asymp","&#x2247;":"\\ncong","&#x2246;":"\\ncong","&#x2245;":"\\cong","&#x2244;":"\\not\\simeq","&#x2243;":"\\simeq","&#x2241;":"\\not\\sim","&#x2226;":"\\not\\parallel","&#x2225;":"\\parallel","&#x2224;":"\\not|","&#x221D;":"\\propto","==":"==","=":"=",":=":":=","/=":"=","-=":"-=","+=":"+=","*=":"*=","!=":"!=","&#x2260;":"\\neq","&#x2262;":"\\equiv /","&#x2249;":"\\approx /","&#x223C;":"sim","&#x2248;":"\\approx","&#x226E;":"</","&lt;":"<","&#x226F;":">/",">=":">=",">":">","&#x2265;":"\\geq","&#x2264;":"\\leq","&lt;=":"<=","&#x228B;":"\\supsetneq","&#x228A;":"\\subsetneq","&#x2289;":"\\nsupseteq","&#x2288;":"\\nsubseteq","&#x2287;":"\\supseteq","&#x2286;":"\\subseteq","&#x2285;":"\\not\\supset","&#x2284;":"\\not\\subset","&#x2283;&#x20D2;":"\\supset |","&#x2283;":"\\supset","&#x2282;&#x20D2;":"\\subset |","&#x2282;":"\\subset","&#x220C;":"\\not\\in","&#x2209;":"\\notin","&#x2208;":"\\in","&#x2201;":"C","&#x2204;":"\\nexists","&#x2203;":"\\exists","&#x2200;":"\\forall","&#x2227;":"\\land","&amp;&amp;":"\\&\\&","&#x2228;":"\\lor","&#x22AF;":"\\cancel{\\vDash}","&#x22AE;":"\\cancel{\\Vdash}","&#x22AD;":"\\nvDash","&#x22AC;":"\\nvDash","&#x22A9;":"\\Vdash","&#x22A8;":"\\vDash","&#x22A4;":"\\top","&#x22A3;":"\\dashv","&#x22A2;":"\\vdash","&#x220B;":"\\ni","&#x22F1;":"\\ddots","&#x22EF;":"\\hdots","&#x22EE;":"\\vdots","&#x2026;":"\\hdots","&#x3F6;":"\\ni",":":":","...":"\\cdots","..":"..","->":"->","&#x2235;":"\\because","&#x2234;":"\\therefore ","&#x2063;":"",",":",",";":";","&#x29FD;":"\\}","&#x29FC;":"\\{","&#x2998;":"\\]","&#x2997;":"\\[","&#x2996;":"\\ll","&#x2995;":"\\gg","&#x2994;":"\\gg","&#x2993;":"\\ll","&#x2992;":"\\gg","&#x2991;":"\\ll","&#x2990;":"\\]","&#x298F;":"\\]","&#x298E;":"\\]","&#x298D;":"\\[","&#x298C;":"\\[","&#x298B;":"\\]","&#x298A;":"\\triangleright","&#x2989;":"\\triangleleft","&#x2988;":"|\\)","&#x2987;":"\\(|","&#x2986;":"|\\)","&#x2985;":"\\(\\(","&#x2984;":"|\\}","&#x2983;":"\\{|","&#x2980;":"\\||","&#x27EF;":"\\left. \\right]","&#x27EE;":"\\left[ \\right.","&#x27ED;":"\\left. \\right]]","&#x27EC;":"\\left[[ \\right.","&#x27EB;":"\\gg","&#x27EA;":"\\ll","&#x27E9;":"\\rangle","&#x27E8;":"\\langle","&#x27E7;":"\\left. \\right]]","&#x27E6;":"\\left[[ \\right.","&#x2773;":"\\left.\\right)","&#x2772;":"\\left(\\right.","&#x232A;":"\\rangle","&#x2329;":"\\langle","&#x230B;":"\\rfloor","&#x230A;":"\\lfloor","&#x2309;":"\\rceil","&#x2308;":"\\lceil","&#x2016;":"\\parallel","}":"\\left.\\right}","{":"\\left{\\right.","]":"\\left]\\right.","[":"\\left[\\right.",")":"\\left.\\right)","(":"\\left(\\right.","&#x201D;":'"',"&#x201C;":"``","&#x2019;":"'","&#x2018;":"`","%CE%B1":"\\alpha","%CE%B2":"\\beta","%CE%B3":"\\gamma","%CE%93":"\\Gamma","%CE%B4":"\\delta","%CE%94":"\\Delta","%CF%B5":"\\epsilon","%CE%B6":"\\zeta","%CE%B7":"\\eta","%CE%B8":"\\theta","%CE%98":"\\Theta","%CE%B9":"\\iota","%CE%BA":"\\kappa","%CE%BB":"\\lambda","%CE%BC":"\\mu","%CE%BD":"\\nu","%CE%BF":"\\omicron","%CF%80":"\\pi","%CE%A0":"\\Pi","%CF%81":"\\pho","%CF%83":"\\sigma","%CE%A3":"\\Sigma","%CF%84":"\\tau","%CF%85":"\\upsilon","%CE%A5":"\\Upsilon","%CF%95":"\\phi","%CE%A6":"\\Phi","%CF%87":"\\chi","%CF%88":"\\psi","%CE%A8":"\\Psi","%CF%89":"\\omega","%CE%A9":"\\Omega"}},9039:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allMathOperatorsByGlyph=void 0,t.allMathOperatorsByGlyph={_:"\\underline","\u23e1":"\\underbrace","\u23e0":"\\overbrace","\u23df":"\\underbrace","\u23de":"\\overbrace","\u23dd":"\\underbrace","\u23dc":"\\overbrace","\u23b5":"\\underbrace","\u23b4":"\\overbrace","\u20dc":"\\square","\u20db":"\\square","\u2064":"","\u2057":"''''","\u203e":"\\overline","\u2037":"```","\u2036":"``","\u2035":"`","\u2034":"'''","\u2033":"''","\u201f":"``","\u201e":",,","\u201b":"`","\u201a":",","^":"\\hat","\u02f7":"\\sim","\u02dd":"\\sim","\u02dc":"\\sim","\u02da":"\\circ","\u02d9":"\\cdot","\u02d8":" ",\u02cd:"\\_",\u02cb:"\u02cb",\u02ca:"\u02ca",\u02c9:"\u02c9",\u02c7:"",\u02c6:"\\hat",\u00ba:"o","\xb9":"1","\xb8":",","\xb4":"\xb4","\xb3":"3","\xb2":"2","\xb0":"\\circ","\xaf":"\\bar",\u00aa:"a","\u219b":"\\nrightarrow","\xa8":"\\cdot\\cdot","~":"\\sim","`":"`","--":"--","++":"++","&":"\\&","\u221c":"\\sqrt[4]{}","\u221b":"\\sqrt[3]{}","\u221a":"\\sqrt{}",\u2146:"d",\u2145:"\\mathbb{D}","?":"?","@":"@","//":"//","!!":"!!","!":"!","\u266f":"\\#","\u266e":"","\u266d":"","\u2032":"'","<>":"<>","**":"\\star\\star","\u2207":"\\nabla","\u2202":"\\partial","\u2299":"\\bigodot","\xac":"\\neg","\u2222":"\\measuredangle","\u2221":"\\measuredangle","\u2220":"\\angle","\xf7":"\\div","/":"/","\u2216":"\\backslash","\\":"\\backslash","%":"\\%","\u2297":"\\bigotimes","\xb7":"\\cdot","\u2a3f":"\\coprod","\u2a2f":"\\times","\u22c5":"\\cdot","\u22a1":"\\boxdot","\u22a0":"\\boxtimes","\u2062":"","\u2043":"-","\u2022":"\\cdot",".":".","*":"\\star","\u222a":"\\cup","\u2229":"\\cap","\u2210":"\\coprod","\u220f":"\\prod","\u2240":"","\u2aff":"","\u2afc":"\\mid\\mid\\mid","\u2a09":"\\times","\u2a08":"","\u2a07":"","\u2a06":"\\sqcup","\u2a05":"\\sqcap","\u2a02":"\\otimes","\u2a00":"\\odot","\u22c2":"\\cap","\u22c1":"\\vee","\u22c0":"\\wedge","\u2a04":"\\uplus","\u2a03":"\\cup","\u22c3":"\\cup","\u2a1c":"\\underline{\\int}","\u2a1b":"\\overline{\\int}","\u2a1a":"\\int","\u2a19":"\\int","\u2a18":"\\int","\u2a17":"\\int","\u2a16":"\\oint","\u2a15":"\\oint","\u2a14":"\\int","\u2a13":"\\int","\u2a12":"\\int","\u2a11":"\\int","\u2a10":"\\int","\u2a0f":"\\bcancel{\\int}","\u2a0e":"","\u2a0d":"\\hcancel{\\int}","\u2a0c":"\\iiiint","\u2233":"\\oint","\u2232":"\\oint","\u2231":"\\int","\u2230":"\\oiint","\u222f":"\\oiint","\u222e":"\\oint","\u222b":"\\int","\u2a01":"\\oplus","\u2298":"\\oslash","\u2296":"\\ominus","\u2295":"\\oplus","\u222d":"\\iiint","\u222c":"\\iint","\u2a0b":"","\u2a0a":"","\u2211":"\\sum","\u229f":"\\boxminus","\u229e":"\\boxplus","\u2214":"\\dot{+}","\u2213":"+-","\u2212":"-","\xb1":"\\pm","-":"-","+":"+","\u2b46":"\\Rrightarrow","\u2b45":"\\Lleftarrow","\u29f4":":\\rightarrow","\u29ef":"","\u29df":"\\bullet-\\bullet","\u299f":"\\angle","\u299e":"\\measuredangle","\u299d":"\\measuredangle","\u299c":"\\perp","\u299b":"\\measuredangle","\u299a":"","\u2999":"\\vdots","\u297f":"","\u297e":"","\u297d":"\\prec","\u297c":"\\succ","\u297b":"\\underset{\\rightarrow}{\\supset}","\u297a":"","\u2979":"\\underset{\\rightarrow}{\\subset}","\u2978":"\\underset{\\rightarrow}{>}","\u2977":"","\u2976":"\\underset{\\leftarrow}{<}","\u2975":"\\underset{\\approx}{\\rightarrow}","\u2974":"\\underset{\\sim}{\\rightarrow}","\u2973":"\\underset{\\sim}{\\leftarrow}","\u2972":"\\overset{\\sim}{\\rightarrow}","\u2971":"\\overset{=}{\\rightarrow}","\u2970":"","\u296f":"","\u296e":"","\u296d":"\\overline{\\rightharpoondown}","\u296c":"\\underline{\\rightharpoonup}","\u296b":"\\overline{\\leftharpoondown}","\u296a":"\\underline{\\leftharpoonup}","\u2969":"\\rightleftharpoons","\u2968":"\\rightleftharpoons","\u2967":"\\rightleftharpoons","\u2966":"\\rightleftharpoons","\u2965":"\\Downarrow","\u2964":"\\Rightarrow","\u2963":"\\Uparrow","\u2962":"\\Leftarrow","\u2961":"\\downarrow","\u2960":"\\uparrow","\u295f":"\\rightarrow","\u295e":"\\leftarrow","\u295d":"\\downarrow","\u295c":"\\uparrow","\u295b":"\\rightarrow","\u295a":"\\leftarrow","\u2959":"\\downarrow","\u2958":"\\uparrow","\u2957":"\\rightarrow","\u2956":"\\leftarrow","\u2955":"\\downarrow","\u2954":"\\uparrow","\u2953":"\\rightarrow","\u2952":"\\leftarrow","\u2951":"\\updownarrow","\u2950":"\\leftrightarrow","\u294f":"\\updownarrow","\u294e":"\\leftrightarrow","\u294d":"\\updownarrow","\u294c":"\\updownarrow","\u294b":"\\leftrightarrow","\u294a":"\\leftrightarrow","\u2949":"","\u2948":"\\leftrightarrow","\u2947":"\\nrightarrow","\u2946":"","\u2945":"","\u2944":"\\rightleftarrows","\u2943":"\\leftrightarrows","\u2942":"\\rightleftarrows","\u2941":"\\circlearrowright","\u2940":"\\circlearrowleft","\u293f":"\\rightarrow","\u293e":"\\leftarrow","\u293d":"\\leftarrow","\u293c":"\\rightarrow","\u293b":"\\rightarrow","\u293a":"\\leftarrow","\u2939":"\\downarrow","\u2938":"\\downarrow","\u2937":"\\Rsh","\u2936":"\\Lsh","\u2935":"\\downarrow","\u2934":"\\uparrow","\u2933":"\\rightarrow","\u2932":"\\leftarrow","\u2931":" ","\u2930":" ","\u292f":" ","\u292e":" ","\u292d":" ","\u292c":"\\times","\u292b":"\\times","\u292a":" ","\u2929":" ","\u2928":" ","\u2927":" ","\u2926":" ","\u2925":" ","\u2924":" ","\u2923":" ","\u2922":" ","\u2921":" ","\u2920":"\\mapsto\\cdot","\u291f":"\\cdot\\leftarrow","\u291e":"\\rightarrow\\cdot","\u291d":"\\leftarrow","\u291c":"\\rightarrow","\u291b":"\\leftarrow","\u291a":"\\rightarrow","\u2919":"\\leftarrow","\u2918":"\\rightarrow","\u2917":"\\rightarrow","\u2916":"\\rightarrow","\u2915":"\\rightarrow","\u2914":"\\rightarrow","\u2913":"\\downarrow","\u2912":"\\uparrow","\u2911":"\\rightarrow","\u2910":"\\rightarrow","\u290f":"\\rightarrow","\u290e":"\\leftarrow","\u290d":"\\rightarrow","\u290c":"\\leftarrow","\u290b":"\\Downarrow","\u290a":"\\Uparrow","\u2909":"\\uparrow","\u2908":"\\downarrow","\u2907":"\\Rightarrow","\u2906":"\\Leftarrow","\u2905":"\\mapsto","\u2904":"\\nLeftrightarrow","\u2903":"\\nRightarrow","\u2902":"\\nLeftarrow","\u2901":"\\rightsquigarrow","\u2900":"\\rightsquigarrow","\u27ff":"\\rightsquigarrow","\u27fe":"\\Rightarrow","\u27fd":"\\Leftarrow","\u27fc":"\\mapsto","\u27fb":"\\leftarrow","\u27fa":"\\Longleftrightarrow","\u27f9":"\\Longrightarrow","\u27f8":"\\Longleftarrow","\u27f7":"\\leftrightarrow","\u27f6":"\\rightarrow","\u27f5":"\\leftarrow","\u27f1":"\\Downarrow","\u27f0":"\\Uparrow","\u22b8":"\\rightarrow","\u21ff":"\\leftrightarrow","\u21fe":"\\rightarrow","\u21fd":"\\leftarrow","\u21fc":"\\nleftrightarrow","\u21fb":"\\nrightarrow","\u21fa":"\\nleftarrow","\u21f9":"\\nleftrightarrow","\u21f8":"\\nrightarrow","\u21f7":"\\nleftarrow","\u21f6":"\\Rrightarrow","\u21f5":"","\u21f4":"\\rightarrow","\u21f3":"\\Updownarrow","\u21f2":"\\searrow","\u21f1":"\\nwarrow","\u21f0":"\\Leftarrow","\u21ef":"\\Uparrow","\u21ee":"\\Uparrow","\u21ed":"\\Uparrow","\u21ec":"\\Uparrow","\u21eb":"\\Uparrow","\u21ea":"\\Uparrow","\u21e9":"\\Downarrow","\u21e8":"\\Rightarrow","\u21e7":"\\Uparrow","\u21e6":"\\Leftarrow","\u21e5":"\\rightarrow","\u21e4":"\\leftarrow","\u21e3":"\\downarrow","\u21e2":"\\rightarrow","\u21e1":"\\uparrow","\u21e0":"\\leftarrow","\u21df":"\\downarrow","\u21de":"\\uparrow","\u21dd":"\\rightsquigarrow","\u21dc":"\\leftarrow","\u21db":"\\Rrightarrow","\u21da":"\\Lleftarrow","\u21d9":"\\swarrow","\u21d8":"\\searrow","\u21d7":"\\nearrow","\u21d6":"\\nwarrow","\u21d5":"\\Updownarrow","\u21d4":"\\Leftrightarrow","\u21d3":"\\Downarrow","\u21d2":"\\Rightarrow","\u21d1":"\\Uparrow","\u21d0":"\\Leftarrow","\u21cf":"\\nRightarrow","\u21ce":"\\nLeftrightarrow","\u21cd":"\\nLeftarrow","\u21cc":"\\rightleftharpoons","\u21cb":"\\leftrightharpoons","\u21ca":"\\downdownarrows","\u21c9":"\\rightrightarrows","\u21c8":"\\upuparrows","\u21c7":"\\leftleftarrows","\u21c6":"\\leftrightarrows","\u21c5":"","\u21c4":"\\rightleftarrows","\u21c3":"\\downharpoonleft","\u21c2":"\\downharpoonright","\u21c1":"\\rightharpoondown","\u21c0":"\\rightharpoonup","\u21bf":"\\upharpoonleft","\u21be":"\\upharpoonright","\u21bd":"\\leftharpoondown","\u21bc":"\\leftharpoonup","\u21bb":"\\circlearrowright","\u21ba":"\\circlearrowleft","\u21b9":"\\leftrightarrows","\u21b8":"\\overline{\\nwarrow}","\u21b7":"\\curvearrowright","\u21b6":"\\curvearrowleft","\u21b5":"\\swarrow","\u21b4":"\\searrow","\u21b3":"\\Rsh","\u21b2":"\\Lsh","\u21b1":"\\Rsh","\u21b0":"\\Lsh","\u21af":"\\swarrow","\u21ae":"","\u21ad":"\\leftrightsquigarrow","\u21ac":"\\looparrowright","\u21ab":"\\looparrowleft","\u21aa":"\\hookrightarrow","\u21a9":"\\hookleftarrow","\u21a8":"\\underline{\\updownarrow}","\u21a7":"\\downarrow","\u21a6":"\\rightarrowtail","\u21a5":"\\uparrow","\u21a4":"\\leftarrowtail","\u21a3":"\\rightarrowtail","\u21a2":"\\leftarrowtail","\u21a1":"\\downarrow","\u21a0":"\\twoheadrightarrow","\u219f":"\\uparrow","\u219e":"\\twoheadleftarrow","\u219d":"\\nearrow","\u219c":"\\nwarrow","\u219a":"","\u2199":"\\swarrow","\u2198":"\\searrow","\u2197":"\\nearrow","\u2196":"\\nwarrow","\u2195":"\\updownarrow","\u2194":"\\leftrightarrow","\u2193":"\\downarrow","\u2192":"\\rightarrow","\u2191":"\\uparrow","\u2190":"\\leftarrow","|||":"\\left|||\\right.","||":"\\left||\\right.","|":"\\mid","\u2afe":"","\u2afd":"//","\u2afb":"///","\u2afa":"","\u2af9":"","\u2af8":"","\u2af7":"","\u2af6":"\\vdots","\u2af5":"","\u2af4":"","\u2af3":"","\u2af2":"\\nparallel","\u2af1":"","\u2af0":"","\u2aef":"","\u2aee":"\\bcancel{\\mid}","\u2aed":"","\u2aec":"","\u2aeb":"","\u2aea":"","\u2ae9":"","\u2ae8":"\\underline{\\perp}","\u2ae7":"\\overline{\\top}","\u2ae6":"","\u2ae5":"","\u2ae4":"","\u2ae3":"","\u2ae2":"","\u2ae1":"","\u2ae0":"\\perp","\u2adf":"\\top","\u2ade":"\\dashv","\u2add\u0338":"","\u2add":"","\u2adb":"\\pitchfork","\u2ada":"","\u2ad9":"","\u2ad8":"","\u2ad7":"","\u2ad6":"","\u2ad5":"","\u2ad4":"","\u2ad3":"","\u2ad2":"","\u2ad1":"","\u2ad0":"","\u2acf":"","\u2ace":"","\u2acd":"","\u2acc":"\\underset{\\neq}{\\supset}","\u2acb":"\\underset{\\neq}{\\subset}","\u2aca":"\\underset{\\approx}{\\supset}","\u2ac9":"\\underset{\\approx}{\\subset}","\u2ac8":"\\underset{\\sim}{\\supset}","\u2ac7":"\\underset{\\sim}{\\subset}","\u2ac6":"\\supseteqq","\u2ac5":"\\subseteqq","\u2ac4":"\\dot{\\supseteq}","\u2ac3":"\\dot{\\subseteq}","\u2ac2":"\\underset{\\times}{\\supset}","\u2ac1":"\\underset{\\times}{\\subset}","\u2ac0":"\\underset{+}{\\supset}","\u2abf":"\\underset{+}{\\subset}","\u2abe":"","\u2abd":"","\u2abc":"\\gg ","\u2abb":"\\ll","\u2aba":"\\underset{\\cancel{\\approx}}{\\succ}","\u2ab9":"\\underset{\\cancel{\\approx}}{\\prec}","\u2ab8":"\\underset{\\approx}{\\succ}","\u2ab7":"\\underset{\\approx}{\\prec}","\u2ab6":"\\underset{\\cancel{=}}{\\succ}","\u2ab5":"\\underset{\\cancel{=}}{\\prec}","\u2ab4":"\\underset{=}{\\succ}","\u2ab3":"\\underset{=}{\\prec}","\u2ab2":"","\u2ab1":"","\u2aae":"","\u2aad":"\\underline{\\hcancel{>}}","\u2aac":"\\underline{\\hcancel{>}}","\u2aab":"\\hcancel{>}","\u2aaa":"\\hcancel{<}","\u2aa9":"","\u2aa8":"","\u2aa7":"\\vartriangleright","\u2aa6":"\\vartriangleleft","\u2aa5":"><","\u2aa4":"><","\u2aa3":"\\underline{\\ll}","\u2aa2\u0338":"\\cancel{\\gg}","\u2aa2":"\\gg","\u2aa1\u0338":"\\cancel{\\ll}","\u2aa1":"\\ll","\u2aa0":"\\overset{\\sim}{\\geqq}","\u2a9f":"\\overset{\\sim}{\\leqq}","\u2a9e":"\\overset{\\sim}{>}","\u2a9d":"\\overset{\\sim}{<}","\u2a9c":"","\u2a9b":"","\u2a9a":"\\overset{=}{>}","\u2a99":"\\overset{=}{<}","\u2a98":"","\u2a97":"","\u2a96":"","\u2a95":"","\u2a94":"","\u2a93":"","\u2a92":"\\underset{=}{\\gtrless}","\u2a91":"\\underset{=}{\\lessgtr}","\u2a90":"\\underset{<}{\\gtrsim}","\u2a8f":"\\underset{>}{\\lesssim}","\u2a8e":"\\underset{\\simeq}{>}","\u2a8d":"\\underset{\\simeq}{<}","\u2a8c":"\\gtreqqless","\u2a8b":"\\lesseqqgtr","\u2a8a":"\\underset{\\cancel{\\approx}}{>}","\u2a89":"\\underset{\\approx}{<}","\u2a86":"\\underset{\\approx}{>}","\u2a85":"\\underset{\\approx}{<}","\u2a84":"","\u2a83":"","\u2a82":"","\u2a81":"","\u2a80":"","\u2a7f":"","\u2a7e\u0338":"\\bcancel{\\geq}","\u2a7e":"\\geq","\u2a7d\u0338":"\\bcancel{\\leq}","\u2a7d":"\\leq","\u2a7c":"","\u2a7b":"","\u2a7a":"","\u2a79":"","\u2a78":"\\overset{\\dots}{\\equiv}","\u2a77":"","\u2a76":"===","\u2a75":"==","\u2a74":"::=","\u2a73":"","\u2a72":"\\underset{=}{+}","\u2a71":"\\overset{=}{+}","\u2a70":"\\overset{\\approx}{=}","\u2a6f":"\\overset{\\wedge}{=}","\u2a6e":"\\overset{*}{=}","\u2a6d":"\\dot{\\approx}","\u2a6c":"","\u2a6b":"","\u2a6a":"\\dot{\\sim}","\u2a69":"","\u2a68":"","\u2a67":"\\dot{\\equiv}","\u2a66":"\\underset{\\cdot}{=}","\u2a65":"","\u2a64":"","\u2a63":"\\underset{=}{\\vee}","\u2a62":"\\overset{=}{\\vee}","\u2a61":"ul(vv)","\u2a60":"\\underset{=}{\\wedge}","\u2a5f":"\\underline{\\wedge}","\u2a5e":"\\overset{=}{\\wedge}","\u2a5d":"\\hcancel{\\vee}","\u2a5c":"\\hcancel{\\wedge}","\u2a5b":"","\u2a5a":"","\u2a59":"","\u2a58":"\\vee","\u2a57":"\\wedge","\u2a56":"","\u2a55":"","\u2a54":"","\u2a53":"","\u2a52":"\\dot{\\vee}","\u2a51":"\\dot{\\wedge}","\u2a50":"","\u2a4f":"","\u2a4e":"","\u2a4d":"\\overline{\\cap}","\u2a4c":"\\overline{\\cup}","\u2a4b":"","\u2a4a":"","\u2a49":"","\u2a48":"","\u2a47":"","\u2a46":"","\u2a45":"","\u2a44":"","\u2a43":"\\overline{\\cap}","\u2a42":"\\overline{\\cup}","\u2a41":"","\u2a40":"","\u2a3e":"","\u2a3d":"\\llcorner","\u2a3c":"\\lrcorner","\u2a3b":"","\u2a3a":"","\u2a39":"","\u2a38":"","\u2a37":"","\u2a36":"\\hat{\\otimes}","\u2a35":"","\u2a34":"","\u2a33":"","\u2a32":"\\underline{\\times}","\u2a31":"\\underline{\\times}","\u2a30":"\\dot{\\times}","\u2a2e":"\\bigodot","\u2a2d":"\\bigodot","\u2a2c":"","\u2a2b":"","\u2a2a":"","\u2a29":"","\u2a28":"","\u2a27":"","\u25fb":"\\Box","\u2a26":"\\underset{\\sim}{+}","\u2a25":"\\underset{\\circ}{+}","\u2a24":"\\overset{\\sim}{+}","\u2a23":"\\hat{+}","\u2a22":"\\dot{+}","\u2a21":"\\upharpoonright","\u2a20":">>","\u2a1f":"","\u2a1e":"\\triangleleft","\u2a1d":"\\bowtie","\u29ff":"","\u29fe":"+","\u29fb":"\\hcancel{|||}","\u29fa":"\\hcancel{||}","\u29f9":"\\backslash","\u29f8":"/","\u29f7":"hcancel{\backslash}","\u29f6":"","\u29f5":"\\backslash","\u29f2":"\\Phi","\u29f1":"","\u29f0":"","\u29ee":"","\u29ed":"","\u29ec":"","\u29eb":"\\lozenge","\u29ea":"","\u29e9":"","\u29e8":"","\u29e7":"\\ddagger","\u29e2":"\\sqcup\\sqcup","\u29e1":"","\u29e0":"\\square","\u29de":"","\u29dd":"","\u29dc":"","\u29db":"\\{\\{","\u29d9":"\\{","\u29d8":"\\}","\u29d7":"","\u29d6":"","\u29d5":"\\bowtie","\u29d4":"\\bowtie","\u29d3":"\\bowtie","\u29d2":"\\bowtie","\u29d1":"\\bowtie","\u29d0\u0338":"| \\not\\triangleright","\u29d0":"| \\triangleright","\u29cf\u0338":"\\not\\triangleleft |","\u29cf":"\\triangleleft |","\u29ce":"","\u29cd":"\\triangle","\u29cc":"","\u29cb":"\\underline{\\triangle}","\u29ca":"\\dot{\\triangle}","\u29c9":"","\u29c8":"\\boxed{\\circ}","\u29c7":"\\boxed{\\circ}","\u29c6":"\\boxed{\\rightarrow}","\u29c5":"\\bcancel{\\square}","\u29c4":"\\cancel{\\square}","\u29c3":"\\odot","\u29c2":"\\odot","\u29bf":"\\odot","\u29be":"\\odot","\u29bd":"\\varnothing","\u29bc":"\\oplus","\u29bb":"\\otimes","\u29ba":"","\u29b9":"\\varnothing","\u29b8":"\\varnothing","\u29b7":"\\ominus","\u29b6":"\\ominus","\u29b5":"\\ominus","\u29b4":"\\vec{\\varnothing}","\u29b3":"\\vec{\\varnothing}","\u29b2":"\\dot{\\varnothing}","\u29b1":"\\overline{\\varnothing}","\u29b0":"\\varnothing","\u29af":"\\measuredangle","\u29ae":"\\measuredangle","\u29ad":"\\measuredangle","\u29ac":"\\measuredangle","\u29ab":"\\measuredangle","\u29aa":"\\measuredangle","\u29a9":"\\measuredangle","\u29a8":"\\measuredangle","\u29a7":"","\u29a6":"","\u29a5":"","\u29a4":"","\u29a3":"\\ulcorner","\u29a2":"\\measuredangle","\u29a1":"\\not\\lor","\u29a0":"\\bcancel{>}","\u2982":":","\u2981":"\\cdot","\u2758":"\\mid","\u25b2":"\\bigtriangleup","\u22ff":"\\Epsilon","\u22fe":"\\overline{\\ni}","\u22fd":"\\overline{\\ni}","\u22fc":"\\in","\u22fb":"\\in","\u22fa":"\\in","\u22f9":"\\underline{\\in}","\u22f8":"\\underline{\\in}","\u22f7":"\\overline{\\in}","\u22f6":"\\overline{\\in}","\u22f5":"\\dot{\\in}","\u22f4":"\\in","\u22f3":"\\in","\u22f2":"\\in","\u22f0":"\\ddots","\u0589":":","\u22e9":"\\underset{\\sim}{\\succ}","\u22e8":"\\underset{\\sim}{\\prec}","\u22e7":"\\underset{\\not\\sim}{>}","\u22e6":"\\underset{\\not\\sim}{<}","\u22e5":"\\not\\sqsupseteq","\u22e4":"\\not\\sqsubseteq","\u22e3":"\\not\\sqsupseteq","\u22e2":"\\not\\sqsubseteq","\u22e1":"\\nsucc","\u22e0":"\\nprec","\u22df":"\\succ","\u22de":"\\prec","\u22dd":"\\overline{>}","\u22dc":"\\overline{<}","\u22db":"\\underset{>}{\\leq}","\u22da":"\\underset{<}{\\geq}","\u22d5":"\\#","\u22d3":"\\cup","\u22d2":"\\cap","\u22d1":"\\supset","\u22d0":"\\subset","\u22cf":"\\wedge","\u22ce":"\\vee","\u22cd":"\\simeq","\u22c8":"\\Join","\u22c7":"\\ast","\u22c6":"\\star","\u22c4":"\\diamond","\u22bf":"\\triangle","\u22be":"\\measuredangle","\u22bd":"\\overline{\\lor}","\u22bc":"\\overline{\\land}","\u22bb":"\\underline{\\lor}","\u22ba":"\\top",\u571f:"\\pm",\u5341:"+","\u22b9":"","\u22b7":"\\circ\\multimap","\u22b6":"\\circ\\multimap","\u22b3":"\\triangleright","\u22b2":"\\triangleleft","\u22b1":"\\succ","\u22b0":"\\prec","\u22ab":"|\\models","\u22aa":"|\\models","\u22a7":"\\models","\u22a6":"\\vdash","\u229d":"\\ominus","\u229c":"\\ominus","\u229b":"\\odot","\u229a":"\\odot","\u2294":"\\sqcup","\u2293":"\\sqcap","\u2292":"\\sqsupseteq","\u2291":"\\sqsubseteq","\u2290\u0338":"\\not\\sqsupset","\u2290":"\\sqsupset","\u228f\u0338":"\\not\\sqsubset","\u228f":"\\sqsubset","\u228e":"\\cup","\u228d":"\\cup","\u228c":"\\cup","\u227f\u0338":"\\not\\succsim","\u227f":"\\succsim","\u227e":"\\precsim","\u2279":"\\not\\overset{>}{<}","\u2278":"\\not\\overset{>}{<}","\u2277":"\\overset{>}{<}","\u2276":"\\overset{<}{>}","\u2275":"\\not\\geg","\u2274":"\\not\\leq","\u2273":"\\geg","\u2272":"\\leq","\u226c":"","\u2267":"\\geg","\u2266\u0338":"\\not\\leq","\u2266":"\\leq","\u2263":"\\overset{=}{=} ","\u225e":"\\overset{m}{=} ","\u225d":"\\overset{def}{=}","\u2258":"=","\u2256":"=","\u2255":"=:","\u2253":"\\doteq","\u2252":"\\doteq","\u2251":"\\doteq","\u2250":"\\doteq","\u224f\u0338":"","\u224f":"","\u224e\u0338":"","\u224e":"","\u224c":"\\approx","\u224b":"\\approx","\u224a":"\\approx","\u2242\u0338":"\\neq","\u2242":"=","\u223f":"\\sim","\u223e":"\\infty","\u223d\u0331":"\\sim","\u223d":"\\sim","\u223b":"\\sim","\u223a":":-:","\u2239":"-:","\u2238":"\\bot","\u2237":"::","\u2236":":","\u2223":"\\mid","\u221f":"\\llcorner","\u2218":"\\circ","\u2217":"*","\u2215":"/","\u220e":"\\square","\u220d":"\\ni","\u220a":"\\in","\u2206":"\\Delta","\u2044":"/","\u2ab0\u0338":"\\nsucceq","\u2ab0":"\\succeq","\u2aaf\u0338":"\\npreceq","\u2aaf":"\\preceq","\u2a88":"\\ngeqslant","\u2a87":"\\nleqslant","\u29f3":"\\Phi","\u29e6":"\\models","\u29e5":"\\not\\equiv","\u29e4":"\\approx\\neq","\u29e3":"\\neq","\u29c1":"\\circle","\u29c0":"\\circle","\u25e6":"\\circle","\u25d7":"\\circle","\u25d6":"\\circle","\u25cf":"\\circle","\u25ce":"\\circledcirc","\u25cd":"\\circledcirc","\u25cc":"\\circledcirc","\u25c9":"\\circledcirc","\u25c8":"\\diamond","\u25c7":"\\diamond","\u25c6":"\\diamond","\u25c5":"\\triangleleft","\u25c4":"\\triangleleft","\u25c3":"\\triangleleft","\u25c2":"\\triangleleft","\u25c1":"\\triangleleft","\u25c0":"\\triangleleft","\u25bf":"\\triangledown","\u25be":"\\triangledown","\u25bd":"\\triangledown","\u25bc":"\\triangledown","\u25b9":"\\triangleright","\u25b8":"\\triangleright","\u25b7":"\\triangleright","\u25b6":"\\triangleright","\u25b5":"\\triangle","\u25b4":"\\triangle","\u25b3":"\\triangle","\u25b1":"\\square","\u25b0":"\\blacksquare","\u25af":"\\square","\u25ae":"\\blacksquare","\u25ad":"\\square","\u25ab":"\\square","\u25aa":"\\square","\u25a1":"\\square","\u25a0":"\\blacksquare","\u22ed":"\\not\\triangleright","\u22ec":"\\not\\triangleleft","\u22eb":"\\not\\triangleright","\u22ea":"\\not\\triangleleft","\u22d9":"\\ggg","\u22d8":"\\lll","\u22d7":"*>","\u22d6":"<*","\u22d4":"\\pitchfork","\u22cc":"","\u22cb":"\\bowtie","\u22ca":"\\ltimes","\u22c9":"\\rtimes","\u22b5":"\\triangleright","\\triangleleft":"","\u22a5":"\\bot","\u2281":"\\nsucc","\u2280":"\\preceq","\u227d":"\\succeq","\u227c":"\\preceq","\u227b":"\\succ","\u227a":"\\prec","\u2271":"\\geq/","\u2270":"\\leq/","\u226d":"\\neq","\u226b\u0338":"\\not\\gg","\u226b":"\\gg","\u226a\u0338":"\\not\\ll","\u226a":"\\ll","\u2269":"\\ngeqslant","\u2268":"\\nleqslant","\u2261":"\\equiv","\u225f":"\\doteq","\u225c":"\\triangleq","\u225b":"\\doteq","\u225a":"\\triangleq","\u2259":"\\triangleq","\u2257":"\\doteq","\u2254":":=","\u224d":"\\asymp","\u2247":"\\ncong","\u2246":"\\ncong","\u2245":"\\cong","\u2244":"\\not\\simeq","\u2243":"\\simeq","\u2241":"\\not\\sim","\u2226":"\\not\\parallel","\u2225":"\\parallel","\u2224":"\\not|","\u221d":"\\propto","==":"==","=":"=",":=":":=","/=":"=","-=":"-=","+=":"+=","*=":"*=","!=":"!=","\u2260":"\\neq","\u2262":"\\equiv /","\u2249":"\\approx /","\u223c":"sim","\u2248":"\\approx","\u226e":"</","<":"<","\u226f":">/",">=":">=",">":">","\u2265":"\\geq","\u2264":"\\leq","<=":"<=","\u228b":"\\supsetneq","\u228a":"\\subsetneq","\u2289":"\\nsupseteq","\u2288":"\\nsubseteq","\u2287":"\\supseteq","\u2286":"\\subseteq","\u2285":"\\not\\supset","\u2284":"\\not\\subset","\u2283\u20d2":"\\supset |","\u2283":"\\supset","\u2282\u20d2":"\\subset |","\u2282":"\\subset","\u220c":"\\not\\in","\u2209":"\\notin","\u2208":"\\in","\u2201":"C","\u2204":"\\nexists","\u2203":"\\exists","\u2200":"\\forall","\u2227":"\\land","&&":"\\&\\&","\u2228":"\\lor","\u22af":"\\cancel{\\vDash}","\u22ae":"\\cancel{\\Vdash}","\u22ad":"\\nvDash","\u22ac":"\\nvDash","\u22a9":"\\Vdash","\u22a8":"\\vDash","\u22a4":"\\top","\u22a3":"\\dashv","\u22a2":"\\vdash","\u220b":"\\ni","\u22f1":"\\ddots","\u22ef":"\\hdots","\u22ee":"\\vdots","\u03f6":"\\ni",":":":","...":"\\cdots","..":"..","->":"->","\u2235":"\\because","\u2234":"\\therefore ","\u2063":"\\llbracket",",":",",";":";","\u29fd":"\\}","\u29fc":"\\{","\u2998":"\\]","\u2997":"\\[","\u2996":"\\ll","\u2995":"\\gg","\u2994":"\\gg","\u2993":"\\ll","\u2992":"\\gg","\u2991":"\\ll","\u2990":"\\]","\u298f":"\\]","\u298e":"\\]","\u298d":"\\[","\u298c":"\\[","\u298b":"\\]","\u298a":"\\triangleright","\u2989":"\\triangleleft","\u2988":"|\\)","\u2987":"\\(|","\u2986":"|\\)","\u2985":"\\(\\(","\u2984":"|\\}","\u2983":"\\{|","\u2980":"\\||","\u27ef":"\\left. \\right]","\u27ee":"\\left[ \\right.","\u27ed":"\\left. \\right]]","\u27ec":"\\left[[ \\right.","\u27eb":"\\gg","\u27ea":"\\ll","\u27e7":"\\)|","\u27e6":"\\(|","\u2773":"\\left.\\right)","\u2772":"\\left(\\right.","\u232a":"\\rangle","\u2329":"\\langle","\u230b":"\\rfloor","\u230a":"\\lfloor","\u2309":"\\rceil","\u2308":"\\lceil","\u2016":"\\parallel","}":"\\left.\\right}","{":"\\left{\\right.","]":"\\left]\\right.","[":"\\left[\\right.",")":"\\left.\\right)","(":"\\left(\\right.","\u201d":'\\"',"\u201c":"\\text{``}","\u2019":"'","\u2018":"`",\u03b1:"\\alpha",\u03b2:"\\beta",\u03b3:"\\gamma",\u0393:"\\Gamma",\u03b4:"\\delta",\u0394:"\\Delta",\u03f5:"\\epsilon",\u03b6:"\\zeta",\u03b7:"\\eta",\u03b8:"\\theta",\u0398:"\\Theta",\u03b9:"\\iota",\u03ba:"\\kappa",\u03bb:"\\lambda",\u03bd:"\\nu",\u03bf:"\\omicron",\u03c0:"\\pi",\u03a0:"\\Pi",\u03c1:"\\rho",\u03c3:"\\sigma",\u03a3:"\\Sigma",\u03c4:"\\tau",\u03c5:"\\upsilon",\u03a5:"\\Upsilon",\u03d5:"\\phi",\u03a6:"\\Phi",\u03c7:"\\chi",\u03c8:"\\psi",\u03a8:"\\Psi",\u03c9:"\\omega",\u03a9:"\\Omega",\u2126:"\\Omega","\u2205":"\\emptyset","\u27f2":"\\circlearrowleft","\u27f3":"\\circlearrowright","\xd7":"\\times","\xbd":"\\dfrac{1}{2}",\u03bc:"\\mu",\u04e8:"\\theta","\u2713":"\\checkmark","\u27e9":"\\rangle","\u27e8":"\\langle","\xbc":"\\dfrac{1}{4}","\u2026":"\\ldots",\u210f:"\\hbar",\u211c:"\\mathfrak{R}",\u0472:"\\theta",\u00d8:"\\emptyset",\u03f1:"\\varrho",\u0444:"\\phi",\u2107:"\\varepsilon",T:"T","\u2219":"\\cdot",\u03a1:"P","\u221e":"\\infty",\u1401:"\\nabla",\u019e:"\\eta","\u207a":"^{+}","\u207b":"^{-}","\u207c":"^{=}","\u207d":"^{(}","\u207e":"^{)}","\u3017":"\\)|","\u3016":"\\langle","\u037e":";","\u0d66":"\\circ","\u2534":"\\perp","\u2715":"\\times","\u23bb":"-","\xbb":"\\gg","\u2b06":"\\uparrow","\u2b07":"\\downarrow","\u2b05":"\\leftarrow","\u27a1":"\\rightarrow","\u23bc":"-","\u239c":"\\mid","\u23a5":"\\mid",\u0127:"\\hbar","\u2b95":"\\rightarrow","\u30fb":"\\cdot","\xa6":"\\mid","\xa3":"\\pounds","\xa5":"\\yen","\u2717":"\\times","\u2714":"\\checkmark",\u207f:"^{n}","\xab":"\\ll",\u0e40:"\\prime","\u2020":"\\dagger","\u2502":"\\mid",$:"\\$","#":"\\#","\u2103":"\\text{\\textdegree C}","\u2109":"\\text{\\textdegree F}","\u2588":"\\blacksquare","\u2127":"\\mho",\u2147:"\\text{e}",\u027c:"r","\u2021":"\\ddagger",\u1f31:"i",\u03d2:"\\Upsilon",\u{1d6ff}:"\\delta","\u02f3":"\\cdot",\u0473:"\\theta",\u{1d719}:"\\phi",\u041f:"\\prod",\u043e:"o",\u0452:"\\hbar",\u0245:"\\Lambda","\u0964":"\\mid","\u20ac":"\\euro",\u1fe1:"\\bar{u}",\u03c6:"\\varphi",\u023c:"c",\u{1d7ae}:"\\epsilon",\u03a7:"\\mathsf{X}",\u2099:"_{n}"}},8249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allMathSymbolsByChar=void 0,t.allMathSymbolsByChar={"&#xA0;":"\\textrm{ }","&#x2203;":"\\exists","&#x2200;":"\\forall","&#x21D4;":"\\iff","&#x21D2;":"=>","&#xAC;":"\\neg","&#x2124;":"\\mathbb{Z}","&#x211D;":"\\mathbb{R}","&#x211A;":"\\mathbb{Q}","&#x2115;":"\\mathbb{N}","&#x2102;":"CC","&#x25A1;":"\\square","&#x22C4;":"\\diamond","&#x25B3;":"\\triangle","&#x2322;":"\\frown","&#x2220;":"\\angle","&#x22F1;":"\\ddots","&#x22EE;":"\\vdots","&#x2235;":"\\because","&#x2234;":"\\therefore","&#x2135;":"\\aleph","&#x2205;":"\\oslash","&#xB1;":"\\pm","&#x2207;":"\\nabla","&#x2202;":"\\partial","&#x222E;":"\\oint","&#x222B;":"\\int","&#x22C3;":"\\cup","&#x222A;":"\\cup","&#x22C2;":"\\cap","&#x2229;":"\\cap","&#x22C1;":"\\vee","&#x2228;":"\\vee","&#x22C0;":"\\wedge","&#x2227;":"\\wedge","&#x220F;":"\\prod","&#x2211;":"\\sum","&#x2299;":"\\bigodot","&#x2297;":"\\bigoplus","&#x2295;":"o+","&#x2218;":"@","&#x22C8;":"\\bowtie","&#x22CA;":"\\rtimes","&#x22C9;":"\\ltimes","&#xF7;":"\\div","&#xD7;":"\\times","\\":"\\backslash","&#x22C6;":"\\star","&#x2217;":"\\star","&#x22C5;":"\\cdot","&#x3A9;":"\\Omega","&#x3C9;":"\\omega","&#x3A8;":"\\Psi","&#x3C8;":"\\psi","&#x3C7;":"\\chi","&#x3C6;":"\\varphi","&#x3A6;":"\\Phi","&#x3D5;":"\\phi","&#x3C5;":"\\upsilon","&#x3C4;":"\\tau","&#x3A3;":"\\Sigma","&#x3C3;":"\\sigma","&#x3C1;":"\\rho","&#x3A0;":"\\Pi","&#x3C0;":"\\pi","&#x39E;":"\\Xi","&#x3BE;":"\\xi","&#x3BD;":"\\nu","&#x3BC;":"\\mu","&#x39B;":"\\Lambda","&#x3BB;":"\\lambda","&#x3BA;":"\\kappa","&#x3B9;":"\\iota","&#x3D1;":"\\vartheta","&#x398;":"\\Theta","&#x3B8;":"\\theta","&#x3B7;":"\\eta","&#x3B6;":"\\zeta","&#x25B;":"\\varepsilon","&#x3B5;":"\\epsilon","&#x394;":"\\Delta","&#x3B4;":"\\delta","&#x393;":"\\Gamma","&#x3B3;":"\\gamma","&#x3B2;":"\\beta","&#x3B1;":"\\alpha","&#x221E;":"\\infty","\u202c":"\\text{\\textdir TRT}","\u200e":"\\text{\\textdir LTR}"}},8171:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allMathSymbolsByGlyph=void 0,t.allMathSymbolsByGlyph={" ":"\\textrm{ }","\u2203":"\\exists","\u2200":"\\forall","\u21d4":"\\iff","\u21d2":"\\Rightarrow","\xac":"\\neg","\u25a1":"\\square","\u22c4":"\\diamond","\u25b3":"\\triangle","\u2322":"\\frown","\u2220":"\\angle","\u22f1":"\\ddots","\u22ee":"\\vdots","\u2235":"\\because","\u2234":"\\therefore",\u2135:"\\aleph","\u2205":"\\emptyset","\xb1":"\\pm","\u2207":"\\nabla","\u2202":"\\partial","\u222e":"\\oint","\u222b":"\\int","\u22c3":"\\cup","\u222a":"\\cup","\u22c2":"\\cap","\u2229":"\\cap","\u22c1":"\\vee","\u2228":"\\vee","\u22c0":"\\wedge","\u2227":"\\wedge","\u220f":"\\prod","\u2211":"\\sum","\u2299":"\\bigodot","\u2297":"\\bigoplus","\u2295":"o+","\u2218":"@","\u22c8":"\\bowtie","\u22ca":"\\rtimes","\u22c9":"\\ltimes","\xf7":"\\div","\xd7":"\\times","\\":"\\backslash","\u22c6":"\\star","\u2217":"\\star","\u22c5":"\\cdot",\u03a9:"\\Omega",\u03c9:"\\omega",\u03a8:"\\Psi",\u03c8:"\\psi",\u03c7:"\\chi",\u03c6:"\\varphi",\u03a6:"\\Phi",\u03d5:"\\phi",\u03c5:"\\upsilon",\u03c4:"\\tau",\u03a3:"\\Sigma",\u03c3:"\\sigma",\u03c1:"\\rho",\u03a0:"\\Pi",\u03c0:"\\pi",\u039e:"\\Xi",\u03be:"\\xi",\u03bd:"\\nu",\u03bc:"\\mu",\u039b:"\\Lambda",\u03bb:"\\lambda",\u03ba:"\\kappa",\u03b9:"\\iota",\u03d1:"\\vartheta",\u0398:"\\Theta",\u03b8:"\\theta",\u03b7:"\\eta",\u03b6:"\\zeta",\u025b:"\\varepsilon",\u03b5:"\\epsilon",\u0394:"\\Delta",\u03b4:"\\delta",\u0393:"\\Gamma",\u03b3:"\\gamma",\u03b2:"\\beta",\u03b1:"\\alpha","\u221e":"\\infty",\u03f5:"\\epsilon",\u00b5:"\\mu","\xb2":"^{2}",\u0131:"\\imath","\u220e":"\\blacksquare",\u0e21:"\\mathbf{m}",\u2126:"\\Omega","\u27f2":"\\circlearrowleft","\u27f3":"\\circlearrowright",\u0924:" ","\xa5":"\\yen","\u207d":"^{(}","\u207e":"^{)}",\u00df:"\\ss",\u040b:"\\hbar","\u29b5":"\\ominus","\u22bf":"\\bigtriangleup","\u219b'":"\\nrightarrow","\u2020":"\\dagger",\u0e40:"\\prime",\u767d:" ","\u2ff1":" ",\u2138:"\\wp",\ud4f0:" ",\u207f:"^{n}","\u2714":"\\checkmark","\u2717":"\\times","\xbd":"\\dfrac{1}{2}",\u04e8:"\\theta","\u2713":"\\checkmark","\u27e9":"\\rangle","\u27e8":"\\langle","\u2329":"\\langle","\xbc":"\\dfrac{1}{4}","\u2026":"\\ldots",\u210f:"\\hbar",\u211c:"\\mathfrak{R}",\u0472:"\\theta",\u00d8:"\\emptyset",\u03f1:"\\varrho",\u0444:"\\phi",T:"T","\u2219":"\\cdot",\u03a1:"P",\u1401:"\\nabla",\u019e:"\\eta",\u0263:"\\gamma",\u045b:"\\hbar",\u0190:"\\varepsilon",\u2145:"\\_{D}",\u{1d706}:"\\lambda","\u3017":"\\rangle","\u3016":"\\langle","\u037e":";",\u{1d465}:"x",\u{1d466}:"y",\u{1d467}:"z",\u{1d456}:"i",\u{1d457}:"j",\u{1d458}:"k",\u{1d45a}:"m",\u{1d452}:"e",\u{1d45f}:"r",\u0273:"\\eta",\u{1d6fd}:"\\beta","\u2375":"\\omega",\u2118:"\\wp",\u{1d70b}:"\\pi",\u0404:"\\epsilon",\u0454:"\\epsilon",\u{1d700}:"\\epsilon",\u043f:"\\pi",\u039d:"\\nu",\u0275:"\\theta",\u{1d713}:"\\psi",\u03f4:"\\theta",\u0278:"\\phi",\u04f6:"\\Gamma",\u026d:"\\ell",\u028b:"\\upsilon",\u{1d6df}:"\\varphi","\u236c":"\\theta",\u0424:"\\Phi",\u{1d711}:"\\varphi",\u2148:"i",\u03bf:"o",\u01a1:"o",\u0192:"f","\u2374":"\\rho","\u{1f1fd}":"x",\u{1d45d}:"p",\u{1d45e}:"q",\u{1d460}:"s",\u{1d461}:"t",\u{1d462}:"u",\u{1d463}:"v",\u{1d464}:"w",\u{1d44e}:"a",\u{1d44f}:"b",\u{1d450}:"c",\u{1d451}:"d",\u{1d453}:"f",\u{1d454}:"g",\u{1d459}:"l",\u{1d45b}:"n",\u{1d45c}:"o",\u{1d500}:"w",\u{1d69f}:"v",\u1e41:"m","\u0d66":"\\circ","\u2534":"\\perp","\u2715":"\\times","\u2223":"\\mid",\u0553:"\\Phi","\u239c":"\\mid",\u0127:"\\hbar",\u1348:" ","\u29a8":"\\llbracket",\u1ebf:"\\hat{e}","\xa2":"\\cent","\u2939":"\\downarrow","\u2938":"\\downarrow","\u2937":"\\Rsh","\u2936":"\\Lsh","\u2935":"\\downarrow","\u2934":"\\uparrow","\u2933":"\\rightarrow","|":"\\mid","\u23a5":"\\mid","\u2665":"\\heartsuit",\u041e:"0",\u03a5:"Y",\u0445:"x",\u{1d4cf}:"z",\u{1d4ce}:"y",\u{1d4cd}:"x",\u0440:"p",\u0430:"a","\xa3":"\\pounds",m:"m",\u{1d6b5}:"\\Xi","\u24ea":"\\textcircled{0}","\u2460":"\\textcircled{1}","\u2461":"\\textcircled{2}","\u2462":"\\textcircled{3}","\u2463":"\\textcircled{4}","\u2464":"\\textcircled{5}","\u2465":"\\textcircled{6}","\u2466":"\\textcircled{7}","\u2467":"\\textcircled{8}","\u2468":"\\textcircled{9}","\u2469":"\\textcircled{10}","\u246a":"\\textcircled{11}","\u246b":"\\textcircled{12}","\u246c":"\\textcircled{13}","\u246d":"\\textcircled{14}","\u246e":"\\textcircled{15}","\u246f":"\\textcircled{16}","\u2470":"\\textcircled{17}","\u2471":"\\textcircled{18}","\u2472":"\\textcircled{19}","\u2473":"\\textcircled{20}","\u3251":"\\textcircled{21}","\u3252":"\\textcircled{22}","\u3253":"\\textcircled{23}","\u3254":"\\textcircled{24}","\u3255":"\\textcircled{25}","\u3256":"\\textcircled{26}","\u3257":"\\textcircled{27}","\u3258":"\\textcircled{28}","\u3259":"\\textcircled{29}","\u325a":"\\textcircled{30}","\u325b":"\\textcircled{31}","\u325c":"\\textcircled{32}","\u325d":"\\textcircled{33}","\u325e":"\\textcircled{34}","\u325f":"\\textcircled{35}","\u32b1":"\\textcircled{36}","\u32b2":"\\textcircled{37}","\u32b3":"\\textcircled{38}","\u32b4":"\\textcircled{39}","\u32b5":"\\textcircled{40}","\u32b6":"\\textcircled{41}","\u32b7":"\\textcircled{42}","\u32b8":"\\textcircled{43}","\u32b9":"\\textcircled{44}","\u32ba":"\\textcircled{45}","\u32bb":"\\textcircled{46}","\u32bc":"\\textcircled{47}","\u32bd":"\\textcircled{48}","\u32be":"\\textcircled{49}","\u32bf":"\\textcircled{50}","&":"\\&","\u2016":"\\parallel","%":"\\%","\u201c":"\\text{``}",$:"\\$","#":"\\#","\u2103":"\\text{\\textdegree C}","\u2109":"\\text{\\textdegree F}","\u2588":"\\blacksquare","\u2127":"\\mho","\u230b":"\\rfloor","\u230a":"\\lfloor","\u2309":"\\rceil","\u2308":"\\lceil",\u2107:"\\varepsilon",\u2147:"\\text{e}",\u027c:"r","\u219b":"\\nrightarrow",\u02c6:"\\hat{}","\u203e":"\\overline","\u2192":"\\rightarrow","\u2021":"\\ddagger","\u30fb":"\\cdot","\u25b1":"\\square","\u2206":"\\Delta",\u1f31:"i","\u2221":"\\angle",\u03d2:"\\Upsilon","\u2193":"\\downarrow","\u2191":"\\uparrow","\xbb":"\\gg","\u22a4":"\\top","\u29f8":"/",\u{1d6ff}:"\\delta","\u02f3":"\\cdot","\u0589":":","\u29aa":"\\measuredangle","\u29a9":"\\measuredangle","\u29ab":"\\measuredangle","\u2981":"\\cdot",\u0473:"\\theta","\u29a2":"\\measuredangle","\xb8":",","\u23bb":"\\overline","\u27e6":"\\llbracket",\u{1d719}:"\\phi",\u041f:"\\prod",\u043e:"o","\u2248":"\\approx","\u2264":"\\leq",\u0452:"\\hbar",\u0245:"\\Lambda",\u571f:"\\pm","\u23bc":"-",\u5341:"+","\u2260":"\\neq","\u2190":"\\leftarrow","\u0964":"\\mid","\u20ac":"\\euro","\u02d8":" ",\u1fe1:"\\bar{u}","\u2225":"\\parallel","\u2194":"\\leftrightarrow","\u221a":"\\sqrt{}",\u023c:"c",\u{1d7ae}:"\\epsilon","\xb7":"\\cdot","\u29ac":"\\measuredangle","\u29ae":"\\measuredangle","\u29ad":"\\measuredangle","\xab":"\\ll",\u03a7:"\\mathsf{X}","\u2502":"\\mid","\u232a":"\\rangle",\u2099:"_{n}","\u25ab":"\\square","\u25cf":"\\circle","\u201d":'\\"'}},5406:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(2965),t),a(r(9039),t),a(r(8249),t),a(r(8171),t),a(r(472),t),a(r(4320),t),a(r(6122),t)},472:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.latexAccents=void 0,t.latexAccents=["\\hat","\\bar","\\underbrace","\\overbrace"]},4320:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mathNumberByGlyph=void 0,t.mathNumberByGlyph={"\u2080":"_{0}","\u2081":"_{1}","\u2082":"_{2}","\u2083":"_{3}","\u2084":"_{4}","\u2085":"_{5}","\u2086":"_{6}","\u2087":"_{7}","\u2088":"_{8}","\u2089":"_{9}","\u2070":"^{0}","\xb9":"^{1}","\xb2":"^{2}","\xb3":"^{3}","\u2074":"^{4}","\u2075":"^{5}","\u2076":"^{6}","\u2077":"^{7}","\u2078":"^{8}","\u2079":"^{9}",\u207f:"^{n}",\u2099:"_{n}","\u24ea":"\\textcircled{0}","\u2460":"\\textcircled{1}","\u2461":"\\textcircled{2}","\u2462":"\\textcircled{3}","\u2463":"\\textcircled{4}","\u2464":"\\textcircled{5}","\u2465":"\\textcircled{6}","\u2466":"\\textcircled{7}","\u2467":"\\textcircled{8}","\u2468":"\\textcircled{9}","\u2469":"\\textcircled{10}","\u246a":"\\textcircled{11}","\u246b":"\\textcircled{12}","\u246c":"\\textcircled{13}","\u246d":"\\textcircled{14}","\u246e":"\\textcircled{15}","\u246f":"\\textcircled{16}","\u2470":"\\textcircled{17}","\u2471":"\\textcircled{18}","\u2472":"\\textcircled{19}","\u2473":"\\textcircled{20}","\u3251":"\\textcircled{21}","\u3252":"\\textcircled{22}","\u3253":"\\textcircled{23}","\u3254":"\\textcircled{24}","\u3255":"\\textcircled{25}","\u3256":"\\textcircled{26}","\u3257":"\\textcircled{27}","\u3258":"\\textcircled{28}","\u3259":"\\textcircled{29}","\u325a":"\\textcircled{30}","\u325b":"\\textcircled{31}","\u325c":"\\textcircled{32}","\u325d":"\\textcircled{33}","\u325e":"\\textcircled{34}","\u325f":"\\textcircled{35}","\u32b1":"\\textcircled{36}","\u32b2":"\\textcircled{37}","\u32b3":"\\textcircled{38}","\u32b4":"\\textcircled{39}","\u32b5":"\\textcircled{40}","\u32b6":"\\textcircled{41}","\u32b7":"\\textcircled{42}","\u32b8":"\\textcircled{43}","\u32b9":"\\textcircled{44}","\u32ba":"\\textcircled{45}","\u32bb":"\\textcircled{46}","\u32bc":"\\textcircled{47}","\u32bd":"\\textcircled{48}","\u32be":"\\textcircled{49}","\u32bf":"\\textcircled{50}","\xbd":"\\dfrac{1}{2}","\u2153":"\\dfrac{1}{3}","\u2154":"\\dfrac{2}{3}","\xbc":"\\dfrac{1}{4}","\xbe":"\\dfrac{3}{4}","\u2155":"\\dfrac{1}{5}","\u2156":"\\dfrac{2}{5}","\u2157":"\\dfrac{3}{5}","\u2158":"\\dfrac{4}{5}","\u2159":"\\dfrac{1}{6}","\u215a":"\\dfrac{5}{6}","\u2150":"\\dfrac{1}{7}","\u215b":"\\dfrac{1}{8}","\u215c":"\\dfrac{3}{8}","\u215d":"\\dfrac{5}{8}","\u215e":"\\dfrac{7}{8}","\u2151":"\\dfrac{1}{9}","\u2152":"\\dfrac{1}{10}"}},6122:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashUTF8ToLtXConverter=void 0,t.HashUTF8ToLtXConverter=class{convert(e){if(e.match(/[a-z0-9]/i))return e;const t=r[e];return t?this.convertAccentCharToLtX(t)||e:this.convertSpecialCharToLtX(e)||e}convertAccentCharToLtX(e){const{char:t,accent:r}=e,a=n[r];return a?`\\${a}{${t}}`:null}convertSpecialCharToLtX(e){const t=a[e];if(!t)return null;const{letter:r,fontCmd:n}=t;return`\\${n}{${r}}`}};const r={\u00e1:{char:"a",accent:"\xb4"},\u00e0:{char:"a",accent:"`"},\u00e2:{char:"a",accent:"^"},\u00e3:{char:"a",accent:"~"},\u00e4:{char:"a",accent:"\xa8"},\u00e5:{char:"a",accent:"\u02da"},\u0105:{char:"a",accent:"\u02d9"},\u0103:{char:"a",accent:"\u02d8"},\u01ce:{char:"a",accent:"\u02c7"},\u01df:{char:"a",accent:"\u02c6"},\u01fb:{char:"a",accent:"\u02d9"},\u01e1:{char:"a",accent:"-"},\u0101:{char:"a",accent:"-"},\u00e9:{char:"e",accent:"\xb4"},\u00e8:{char:"e",accent:"`"},\u00ea:{char:"e",accent:"^"},\u00eb:{char:"e",accent:"\xa8"},\u0119:{char:"e",accent:"\u02d9"},\u011b:{char:"e",accent:"\u02c7"},\u0207:{char:"i",accent:"^"},\u0451:{char:"e",accent:"\xa8"},\u0113:{char:"e",accent:"-"},\u00ed:{char:"i",accent:"\xb4"},\u00ec:{char:"i",accent:"`"},\u00ee:{char:"i",accent:"^"},\u00ef:{char:"i",accent:"\xa8"},\u012f:{char:"i",accent:"\u02d9"},\u01d0:{char:"i",accent:"\u02c7"},\u0209:{char:"i",accent:"`"},\u020b:{char:"i",accent:"\xa8"},\u012b:{char:"i",accent:"-"},\u00f3:{char:"o",accent:"\xb4"},\u00f2:{char:"o",accent:"`"},\u00f4:{char:"o",accent:"^"},\u00f5:{char:"o",accent:"~"},\u00f6:{char:"o",accent:"\xa8"},\u0151:{char:"o",accent:"\u02dd"},\u01d2:{char:"o",accent:"\u02c7"},\u020d:{char:"o",accent:"`"},\u020f:{char:"o",accent:"\xa8"},\u022b:{char:"o",accent:"\u02d8"},\u022d:{char:"o",accent:"\u02dd"},\u022f:{char:"o",accent:"\u02d9"},\u014d:{char:"o",accent:"-"},\u00fa:{char:"u",accent:"\xb4"},\u00f9:{char:"u",accent:"`"},\u00fb:{char:"u",accent:"^"},\u00fc:{char:"u",accent:"\xa8"},\u0171:{char:"u",accent:"\u02dd"},\u01d4:{char:"u",accent:"\u02c7"},\u01d6:{char:"u",accent:"\xa8"},\u01d8:{char:"u",accent:"\xa8"},\u01da:{char:"u",accent:"\xa8"},\u01dc:{char:"u",accent:"\xa8"},\u0215:{char:"u",accent:"`"},\u0217:{char:"u",accent:"\xa8"},\u016b:{char:"u",accent:"-"},\u00fd:{char:"y",accent:"\xb4"},\u1ef3:{char:"y",accent:"`"},\u0177:{char:"y",accent:"^"},\u00ff:{char:"y",accent:"\xa8"},\u0233:{char:"y",accent:"-"},\u00c1:{char:"A",accent:"\xb4"},\u00c0:{char:"A",accent:"`"},\u00c2:{char:"A",accent:"^"},\u00c3:{char:"A",accent:"~"},\u00c4:{char:"A",accent:"\xa8"},\u00c5:{char:"A",accent:"\u02da"},\u212b:{char:"A",accent:"\u02da"},\u0226:{char:"A",accent:"\u02d9"},\u0102:{char:"A",accent:"\u02d8"},\u01cd:{char:"A",accent:"\u02c7"},\u01de:{char:"A",accent:"\u02dd"},\u01fa:{char:"A",accent:"\u02da"},\u01e0:{char:"A",accent:"-"},\u0100:{char:"A",accent:"-"},\u00c9:{char:"E",accent:"\xb4"},\u00c8:{char:"E",accent:"`"},\u0116:{char:"E",accent:"\u02d9"},\u00ca:{char:"E",accent:"^"},\u00cb:{char:"E",accent:"\xa8"},\u011a:{char:"E",accent:"\u02c7"},\u0204:{char:"E",accent:"`"},\u0206:{char:"E",accent:"\xa8"},\u0112:{char:"E",accent:"-"},\u00cd:{char:"I",accent:"\xb4"},\u00cc:{char:"I",accent:"`"},\u00ce:{char:"I",accent:"^"},\u00cf:{char:"I",accent:"\xa8"},\u012c:{char:"I",accent:"\u02d8"},\u01cf:{char:"I",accent:"\u02c7"},\u0208:{char:"I",accent:"`"},\u020a:{char:"I",accent:"\xa8"},\u012a:{char:"I",accent:"-"},\u00d3:{char:"O",accent:"\xb4"},\u00d2:{char:"O",accent:"`"},\u00d4:{char:"O",accent:"^"},\u00d5:{char:"O",accent:"~"},\u00d6:{char:"O",accent:"\xa8"},\u0150:{char:"O",accent:"\u02dd"},\u01d1:{char:"O",accent:"\u02c7"},\u020c:{char:"O",accent:"`"},\u020e:{char:"O",accent:"\xa8"},\u022a:{char:"O",accent:"\u02d8"},\u022c:{char:"O",accent:"\u02dd"},\u022e:{char:"O",accent:"\u02d9"},\u014c:{char:"O",accent:"-"},\u00da:{char:"U",accent:"\xb4"},\u00d9:{char:"U",accent:"`"},\u00db:{char:"U",accent:"^"},\u00dc:{char:"U",accent:"\xa8"},\u0170:{char:"U",accent:"\u02dd"},\u01d3:{char:"U",accent:"\u02c7"},\u01d5:{char:"U",accent:"\xa8"},\u0214:{char:"U",accent:"`"},\u0216:{char:"U",accent:"\xa8"},\u016a:{char:"U",accent:"-"},\u00dd:{char:"Y",accent:"\xb4"},\u1ef2:{char:"Y",accent:"`"},\u0176:{char:"Y",accent:"^"},\u0178:{char:"Y",accent:"\xa8"},\u0232:{char:"Y",accent:"-"},\u00f1:{char:"n",accent:"~"},\u00d1:{char:"N",accent:"~"},\u00e7:{char:"c",accent:"\u02d9"},\u00c7:{char:"C",accent:"\u02d9"},\u1e7d:{char:"v",accent:"~"},\u1e7c:{char:"V",accent:"~"},\u0135:{char:"j",accent:"^"},\u0134:{char:"J",accent:"^"},\u017a:{char:"z",accent:"\xb4"},\u0179:{char:"Z",accent:"\xb4"},\u017b:{char:"Z",accent:"^"},\u017c:{char:"z",accent:"^"},\u017d:{char:"Z",accent:"\u02c7"},\u017e:{char:"z",accent:"\u02c7"},\u1e91:{char:"z",accent:"\u02c6"}},n={"\xb4":"grave","`":"acute","^":"hat","~":"tilde","\xa8":"ddot","\u02da":"mathring","\u02d8":"breve",\u02c7:"check","\u02dd":"ddot","\u02d9":"dot","-":"bar",\u02c6:"hat","\u02dc":"tilde"},a={\u{1d400}:{letter:"A",fontCmd:"mathbf"},\u{1d401}:{letter:"B",fontCmd:"mathbf"},\u{1d402}:{letter:"C",fontCmd:"mathbf"},\u{1d403}:{letter:"D",fontCmd:"mathbf"},\u{1d404}:{letter:"E",fontCmd:"mathbf"},\u0395:{letter:"E",fontCmd:"mathbf"},\u{1d405}:{letter:"F",fontCmd:"mathbf"},\u{1d406}:{letter:"G",fontCmd:"mathbf"},\u{1d407}:{letter:"H",fontCmd:"mathbf"},\u{1d408}:{letter:"I",fontCmd:"mathbf"},\u{1d409}:{letter:"J",fontCmd:"mathbf"},\u{1d40a}:{letter:"K",fontCmd:"mathbf"},\u{1d40b}:{letter:"L",fontCmd:"mathbf"},\u{1d40c}:{letter:"M",fontCmd:"mathbf"},\u{1d40d}:{letter:"N",fontCmd:"mathbf"},\u{1d40e}:{letter:"O",fontCmd:"mathbf"},\u{1d40f}:{letter:"P",fontCmd:"mathbf"},\u{1d410}:{letter:"Q",fontCmd:"mathbf"},\u{1d411}:{letter:"R",fontCmd:"mathbf"},\u{1d412}:{letter:"S",fontCmd:"mathbf"},\u{1d413}:{letter:"T",fontCmd:"mathbf"},\u{1d414}:{letter:"U",fontCmd:"mathbf"},\u{1d415}:{letter:"V",fontCmd:"mathbf"},\u{1d416}:{letter:"W",fontCmd:"mathbf"},\u{1d417}:{letter:"X",fontCmd:"mathbf"},\u{1d786}:{letter:"X",fontCmd:"mathbf"},\u{1d418}:{letter:"Y",fontCmd:"mathbf"},\u{1d419}:{letter:"Z",fontCmd:"mathbf"},"\u{1d7ce}":{letter:"0",fontCmd:"mathbf"},"\u{1d7cf}":{letter:"1",fontCmd:"mathbf"},"\u{1d7d0}":{letter:"2",fontCmd:"mathbf"},"\u{1d7d1}":{letter:"3",fontCmd:"mathbf"},"\u{1d7d2}":{letter:"4",fontCmd:"mathbf"},"\u{1d7d3}":{letter:"5",fontCmd:"mathbf"},"\u{1d7d4}":{letter:"6",fontCmd:"mathbf"},"\u{1d7d5}":{letter:"7",fontCmd:"mathbf"},"\u{1d7d6}":{letter:"8",fontCmd:"mathbf"},"\u{1d7d7}":{letter:"9",fontCmd:"mathbf"},\u{1d434}:{letter:"A",fontCmd:"mathit"},\u{1d435}:{letter:"B",fontCmd:"mathit"},\u{1d436}:{letter:"C",fontCmd:"mathit"},\u{1d437}:{letter:"D",fontCmd:"mathit"},\u{1d438}:{letter:"E",fontCmd:"mathit"},\u{1d439}:{letter:"F",fontCmd:"mathit"},\u{1d43a}:{letter:"G",fontCmd:"mathit"},\u{1d43b}:{letter:"H",fontCmd:"mathit"},\u{1d43c}:{letter:"I",fontCmd:"mathit"},\u0399:{letter:"I",fontCmd:"mathit"},\u{1d43d}:{letter:"J",fontCmd:"mathit"},\u{1d43e}:{letter:"K",fontCmd:"mathit"},\u{1d43f}:{letter:"L",fontCmd:"mathit"},\u{1d440}:{letter:"M",fontCmd:"mathit"},\u{1d441}:{letter:"N",fontCmd:"mathit"},\u{1d442}:{letter:"O",fontCmd:"mathit"},\u{1d443}:{letter:"P",fontCmd:"mathit"},\u{1d444}:{letter:"Q",fontCmd:"mathit"},\u{1d445}:{letter:"R",fontCmd:"mathit"},\u{1d446}:{letter:"S",fontCmd:"mathit"},\u{1d447}:{letter:"T",fontCmd:"mathit"},\u{1d448}:{letter:"U",fontCmd:"mathit"},\u{1d449}:{letter:"V",fontCmd:"mathit"},\u{1d44a}:{letter:"W",fontCmd:"mathit"},\u{1d44b}:{letter:"X",fontCmd:"mathit"},\u{1d44c}:{letter:"Y",fontCmd:"mathit"},\u{1d44d}:{letter:"Z",fontCmd:"mathit"},\u{1d538}:{letter:"A",fontCmd:"mathbb"},\u{1d539}:{letter:"B",fontCmd:"mathbb"},\u2102:{letter:"C",fontCmd:"mathbb"},\u{1d53b}:{letter:"D",fontCmd:"mathbb"},\u{1d53c}:{letter:"E",fontCmd:"mathbb"},\u{1d53d}:{letter:"F",fontCmd:"mathbb"},\u{1d53e}:{letter:"G",fontCmd:"mathbb"},\u210d:{letter:"H",fontCmd:"mathbb"},\u{1d540}:{letter:"I",fontCmd:"mathbb"},\u{1d541}:{letter:"J",fontCmd:"mathbb"},\u{1d542}:{letter:"K",fontCmd:"mathbb"},\u{1d543}:{letter:"L",fontCmd:"mathbb"},\u{1d544}:{letter:"M",fontCmd:"mathbb"},\u2115:{letter:"N",fontCmd:"mathbb"},\u{1d546}:{letter:"O",fontCmd:"mathbb"},\u2119:{letter:"P",fontCmd:"mathbb"},\u211a:{letter:"Q",fontCmd:"mathbb"},\u211d:{letter:"R",fontCmd:"mathbb"},\u{1d54a}:{letter:"S",fontCmd:"mathbb"},\u{1d54b}:{letter:"T",fontCmd:"mathbb"},\u{1d54c}:{letter:"U",fontCmd:"mathbb"},\u{1d54d}:{letter:"V",fontCmd:"mathbb"},\u{1d54e}:{letter:"W",fontCmd:"mathbb"},\u{1d54f}:{letter:"X",fontCmd:"mathbb"},\u{1d550}:{letter:"Y",fontCmd:"mathbb"},\u2124:{letter:"Z",fontCmd:"mathbb"},"\u{1d7d8}":{letter:"0",fontCmd:"mathbb"},"\u{1d7d9}":{letter:"1",fontCmd:"mathbb"},"\u{1d7da}":{letter:"2",fontCmd:"mathbb"},"\u{1d7db}":{letter:"3",fontCmd:"mathbb"},"\u{1d7dc}":{letter:"4",fontCmd:"mathbb"},"\u{1d7dd}":{letter:"5",fontCmd:"mathbb"},"\u{1d7de}":{letter:"6",fontCmd:"mathbb"},"\u{1d7df}":{letter:"7",fontCmd:"mathbb"},"\u{1d7e0}":{letter:"8",fontCmd:"mathbb"},"\u{1d7e1}":{letter:"9",fontCmd:"mathbb"},\u{1d49c}:{letter:"A",fontCmd:"mathcal"},\u{1d4d0}:{letter:"A",fontCmd:"mathcal"},\u212c:{letter:"B",fontCmd:"mathcal"},\u{1d49e}:{letter:"C",fontCmd:"mathcal"},\u{1d49f}:{letter:"D",fontCmd:"mathcal"},\u{1d4d3}:{letter:"D",fontCmd:"mathcal"},\u2130:{letter:"E",fontCmd:"mathcal"},\u2131:{letter:"F",fontCmd:"mathcal"},\u{1d4d5}:{letter:"F",fontCmd:"mathcal"},\u{1d4a2}:{letter:"G",fontCmd:"mathcal"},\u210b:{letter:"H",fontCmd:"mathcal"},\u2110:{letter:"I",fontCmd:"mathcal"},\u{1d4a5}:{letter:"J",fontCmd:"mathcal"},\u{1d4a6}:{letter:"K",fontCmd:"mathcal"},\u2112:{letter:"L",fontCmd:"mathcal"},\u{1d4db}:{letter:"L",fontCmd:"mathcal"},\u2133:{letter:"M",fontCmd:"mathcal"},\u{1d4a9}:{letter:"N",fontCmd:"mathcal"},\u{1d4aa}:{letter:"O",fontCmd:"mathcal"},\u{1d4de}:{letter:"O",fontCmd:"mathcal"},\u{1d4ab}:{letter:"P",fontCmd:"mathcal"},\u{1d4ac}:{letter:"Q",fontCmd:"mathcal"},\u211b:{letter:"R",fontCmd:"mathcal"},\u{1d57d}:{letter:"R",fontCmd:"mathcal"},"\u211f":{letter:"R",fontCmd:"mathcal"},\u{1d4ae}:{letter:"S",fontCmd:"mathcal"},\u{1d4af}:{letter:"T",fontCmd:"mathcal"},\u{1d4b0}:{letter:"U",fontCmd:"mathcal"},\u{1d4b1}:{letter:"V",fontCmd:"mathcal"},\u{1d4b2}:{letter:"W",fontCmd:"mathcal"},\u{1d4b3}:{letter:"X",fontCmd:"mathcal"},\u{1d4b4}:{letter:"Y",fontCmd:"mathcal"},\u{1d4b5}:{letter:"Z",fontCmd:"mathcal"},\u{1d504}:{letter:"A",fontCmd:"mathfrak"},\u{1d505}:{letter:"B",fontCmd:"mathfrak"},\u212d:{letter:"C",fontCmd:"mathfrak"},\u{1d507}:{letter:"D",fontCmd:"mathfrak"},\u{1d508}:{letter:"E",fontCmd:"mathfrak"},\u{1d509}:{letter:"F",fontCmd:"mathfrak"},\u{1d50a}:{letter:"G",fontCmd:"mathfrak"},\u210c:{letter:"H",fontCmd:"mathfrak"},\u2111:{letter:"I",fontCmd:"mathfrak"},\u{1d50d}:{letter:"J",fontCmd:"mathfrak"},\u{1d50e}:{letter:"K",fontCmd:"mathfrak"},\u{1d50f}:{letter:"L",fontCmd:"mathfrak"},\u{1d510}:{letter:"M",fontCmd:"mathfrak"},\u{1d511}:{letter:"N",fontCmd:"mathfrak"},\u{1d512}:{letter:"O",fontCmd:"mathfrak"},\u{1d513}:{letter:"P",fontCmd:"mathfrak"},\u{1d514}:{letter:"Q",fontCmd:"mathfrak"},\u211c:{letter:"R",fontCmd:"mathfrak"},\u{1d516}:{letter:"S",fontCmd:"mathfrak"},\u{1d517}:{letter:"T",fontCmd:"mathfrak"},\u{1d518}:{letter:"U",fontCmd:"mathfrak"},\u{1d519}:{letter:"V",fontCmd:"mathfrak"},\u{1d51a}:{letter:"W",fontCmd:"mathfrak"},\u{1d51b}:{letter:"X",fontCmd:"mathfrak"},\u{1d51c}:{letter:"Y",fontCmd:"mathfrak"},\u2128:{letter:"Z",fontCmd:"mathfrak"},\u{1d5a0}:{letter:"A",fontCmd:"mathsf"},\u0391:{letter:"A",fontCmd:"mathsf"},\u{1d5a1}:{letter:"B",fontCmd:"mathsf"},\u0392:{letter:"B",fontCmd:"mathsf"},\u{1d5a2}:{letter:"C",fontCmd:"mathsf"},\u{1d5a3}:{letter:"D",fontCmd:"mathsf"},\u{1d5a4}:{letter:"E",fontCmd:"mathsf"},\u{1d5a5}:{letter:"F",fontCmd:"mathsf"},\u{1d5a6}:{letter:"G",fontCmd:"mathsf"},\u{1d5a7}:{letter:"H",fontCmd:"mathsf"},\u{1d5a8}:{letter:"I",fontCmd:"mathsf"},\u{1d5a9}:{letter:"J",fontCmd:"mathsf"},\u0237:{letter:"J",fontCmd:"mathsf"},\u{1d5aa}:{letter:"K",fontCmd:"mathsf"},\u039a:{letter:"K",fontCmd:"mathsf"},\u{1d5ab}:{letter:"L",fontCmd:"mathsf"},\u{1d5ac}:{letter:"M",fontCmd:"mathsf"},\u{1d5ad}:{letter:"N",fontCmd:"mathsf"},\u{1d5ae}:{letter:"O",fontCmd:"mathsf"},\u{1d5af}:{letter:"P",fontCmd:"mathsf"},\u{1d5b0}:{letter:"Q",fontCmd:"mathsf"},\u{1d5b1}:{letter:"R",fontCmd:"mathsf"},\u{1d5b2}:{letter:"S",fontCmd:"mathsf"},\u{1d5b3}:{letter:"T",fontCmd:"mathsf"},\u{1d5b4}:{letter:"U",fontCmd:"mathsf"},\u{1d5b5}:{letter:"V",fontCmd:"mathsf"},\u{1d5b6}:{letter:"W",fontCmd:"mathsf"},\u{1d5b7}:{letter:"X",fontCmd:"mathsf"},\u03a7:{letter:"X",fontCmd:"mathsf"},\u{1d5b8}:{letter:"Y",fontCmd:"mathsf"},\u{1d5b9}:{letter:"Z",fontCmd:"mathsf"},\u{1d6a8}:{letter:"A",fontCmd:"mathtt"},\u{1d6a9}:{letter:"B",fontCmd:"mathtt"},\u{1d6aa}:{letter:"\\Gamma",fontCmd:"mathtt"},\u{1d6ab}:{letter:"\\Delta",fontCmd:"mathtt"},\u{1d6ac}:{letter:"E",fontCmd:"mathtt"},\u{1d6ad}:{letter:"F",fontCmd:"mathtt"},\u{1d6ae}:{letter:"G",fontCmd:"mathtt"},\u{1d6af}:{letter:"\\Theta",fontCmd:"mathtt"},\u{1d6b0}:{letter:"I",fontCmd:"mathtt"},\u{1d6b1}:{letter:"J",fontCmd:"mathtt"},\u{1d6b2}:{letter:"\\Lambda",fontCmd:"mathtt"},\u{1d6b3}:{letter:"L",fontCmd:"mathtt"},\u{1d6b4}:{letter:"M",fontCmd:"mathtt"},\u{1d6b5}:{letter:"\\Pi",fontCmd:"mathtt"},\u{1d6b6}:{letter:"O",fontCmd:"mathtt"},\u{1d6b7}:{letter:"\\Pi",fontCmd:"mathtt"},\u{1d6b8}:{letter:"Q",fontCmd:"mathtt"},\u{1d6b9}:{letter:"R",fontCmd:"mathtt"},\u{1d6ba}:{letter:"S",fontCmd:"mathtt"},\u{1d6bb}:{letter:"T",fontCmd:"mathtt"},\u{1d6bc}:{letter:"U",fontCmd:"mathtt"},\u{1d6bd}:{letter:"\\Phi",fontCmd:"mathtt"},\u{1d6be}:{letter:"W",fontCmd:"mathtt"},\u{1d6bf}:{letter:"\\Psi",fontCmd:"mathtt"},\u{1d6c0}:{letter:"\\Omega",fontCmd:"mathtt"}}}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}var n={};return(()=>{"use strict";var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.MathMLToLaTeX=void 0;var t=r(8672);Object.defineProperty(e,"MathMLToLaTeX",{enumerable:!0,get:function(){return t.MathMLToLaTeX}})})(),n})(),e.exports=t()},424:function(e,t,r){"use strict";var n,a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),i=0;i<r.length;i++)"default"!==r[i]&&a(t,e,r[i]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.mathStandardizationRules=t.createCleanMathEl=t.getLatexFromElement=void 0;const s=r(354),l=i(r(914)),c=r(648);t.getLatexFromElement=e=>{const t=(0,c.getBasicLatexFromElement)(e);if(t)return t;const r=(0,c.getMathMLFromElement)(e);if(null==r?void 0:r.mathml)try{return s.MathMLToLaTeX.convert(r.mathml)}catch(e){console.warn("Failed to convert MathML to LaTeX:",e)}return null};t.createCleanMathEl=(e,t,r)=>{const n=document.createElement("math");if(n.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n.setAttribute("display",r?"block":"inline"),n.setAttribute("data-latex",t||""),null==e?void 0:e.mathml){const t=document.createElement("div");t.innerHTML=e.mathml;const r=t.querySelector("math");r&&(n.innerHTML=r.innerHTML)}else if(t)try{const e=l.renderToString(t,{displayMode:r,throwOnError:!1}),a=document.createElement("div");a.innerHTML=e;const o=a.querySelector("math");o?n.innerHTML=o.innerHTML:n.textContent=t}catch(e){console.warn("Failed to convert LaTeX to MathML:",e),n.textContent=t}return n},t.mathStandardizationRules=[{selector:c.mathSelectors,element:"math",transform:e=>{if(!(e instanceof HTMLElement))return e;const r=(0,c.getMathMLFromElement)(e),n=(0,t.getLatexFromElement)(e),a=(0,c.isBlockDisplay)(e),o=(0,t.createCleanMathEl)(r,n,a);if(e.parentElement){e.parentElement.querySelectorAll('\n\t\t\t\t\t/* MathJax scripts and previews */\n\t\t\t\t\tscript[type^="math/"],\n\t\t\t\t\t.MathJax_Preview,\n\n\t\t\t\t\t/* External math library scripts */\n\t\t\t\t\tscript[type="text/javascript"][src*="mathjax"],\n\t\t\t\t\tscript[type="text/javascript"][src*="katex"]\n\t\t\t\t').forEach((e=>e.remove()))}return o}}]},608:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataExtractor=void 0;t.MetadataExtractor=class{static extract(e,t){var r,n;let a="",o="";try{o=(null===(r=e.location)||void 0===r?void 0:r.href)||"",o||(o=this.getMetaContent(e,"property","og:url")||this.getMetaContent(e,"property","twitter:url")||this.getSchemaProperty(e,t,"url")||this.getSchemaProperty(e,t,"mainEntityOfPage.url")||this.getSchemaProperty(e,t,"mainEntity.url")||this.getSchemaProperty(e,t,"WebSite.url")||(null===(n=e.querySelector('link[rel="canonical"]'))||void 0===n?void 0:n.getAttribute("href"))||""),o&&(a=new URL(o).hostname.replace(/^www\./,""))}catch(t){const r=e.querySelector("base[href]");if(r)try{o=r.getAttribute("href")||"",a=new URL(o).hostname.replace(/^www\./,"")}catch(e){console.warn("Failed to parse base URL:",e)}}return{title:this.getTitle(e,t),description:this.getDescription(e,t),domain:a,favicon:this.getFavicon(e,o),image:this.getImage(e,t),published:this.getPublished(e,t),author:this.getAuthor(e,t),site:this.getSite(e,t),schemaOrgData:t,wordCount:0,parseTime:0}}static getAuthor(e,t){return this.getMetaContent(e,"name","sailthru.author")||this.getSchemaProperty(e,t,"author.name")||this.getMetaContent(e,"property","author")||this.getMetaContent(e,"name","byl")||this.getMetaContent(e,"name","author")||this.getMetaContent(e,"name","authorList")||this.getMetaContent(e,"name","copyright")||this.getSchemaProperty(e,t,"copyrightHolder.name")||this.getMetaContent(e,"property","og:site_name")||this.getSchemaProperty(e,t,"publisher.name")||this.getSchemaProperty(e,t,"sourceOrganization.name")||this.getSchemaProperty(e,t,"isPartOf.name")||this.getMetaContent(e,"name","twitter:creator")||this.getMetaContent(e,"name","application-name")||""}static getSite(e,t){return this.getSchemaProperty(e,t,"publisher.name")||this.getMetaContent(e,"property","og:site_name")||this.getSchemaProperty(e,t,"WebSite.name")||this.getSchemaProperty(e,t,"sourceOrganization.name")||this.getMetaContent(e,"name","copyright")||this.getSchemaProperty(e,t,"copyrightHolder.name")||this.getSchemaProperty(e,t,"isPartOf.name")||this.getMetaContent(e,"name","application-name")||this.getAuthor(e,t)||""}static getTitle(e,t){var r,n;const a=this.getMetaContent(e,"property","og:title")||this.getMetaContent(e,"name","twitter:title")||this.getSchemaProperty(e,t,"headline")||this.getMetaContent(e,"name","title")||this.getMetaContent(e,"name","sailthru.title")||(null===(n=null===(r=e.querySelector("title"))||void 0===r?void 0:r.textContent)||void 0===n?void 0:n.trim())||"";return this.cleanTitle(a,this.getSite(e,t))}static cleanTitle(e,t){if(!e||!t)return e;const r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=[`\\s*[\\|\\-\u2013\u2014]\\s*${r}\\s*$`,`^\\s*${r}\\s*[\\|\\-\u2013\u2014]\\s*`];for(const t of n){const r=new RegExp(t,"i");if(r.test(e)){e=e.replace(r,"");break}}return e.trim()}static getDescription(e,t){return this.getMetaContent(e,"name","description")||this.getMetaContent(e,"property","description")||this.getMetaContent(e,"property","og:description")||this.getSchemaProperty(e,t,"description")||this.getMetaContent(e,"name","twitter:description")||this.getMetaContent(e,"name","sailthru.description")||""}static getImage(e,t){return this.getMetaContent(e,"property","og:image")||this.getMetaContent(e,"name","twitter:image")||this.getSchemaProperty(e,t,"image.url")||this.getMetaContent(e,"name","sailthru.image.full")||""}static getFavicon(e,t){var r,n;const a=this.getMetaContent(e,"property","og:image:favicon");if(a)return a;const o=null===(r=e.querySelector("link[rel='icon']"))||void 0===r?void 0:r.getAttribute("href");if(o)return o;const i=null===(n=e.querySelector("link[rel='shortcut icon']"))||void 0===n?void 0:n.getAttribute("href");if(i)return i;if(t)try{return new URL("/favicon.ico",t).href}catch(e){console.warn("Failed to construct favicon URL:",e)}return""}static getPublished(e,t){return this.getSchemaProperty(e,t,"datePublished")||this.getMetaContent(e,"name","publishDate")||this.getMetaContent(e,"property","article:published_time")||this.getTimeElement(e)||this.getMetaContent(e,"name","sailthru.date")||""}static getMetaContent(e,t,r){var n,a;const o=`meta[${t}]`,i=Array.from(e.querySelectorAll(o)).find((e=>{var n;return(null===(n=e.getAttribute(t))||void 0===n?void 0:n.toLowerCase())===r.toLowerCase()})),s=i&&null!==(a=null===(n=i.getAttribute("content"))||void 0===n?void 0:n.trim())&&void 0!==a?a:"";return this.decodeHTMLEntities(s,e)}static getTimeElement(e){var t,r,n,a;const o=Array.from(e.querySelectorAll("time"))[0],i=o&&null!==(a=null!==(r=null===(t=o.getAttribute("datetime"))||void 0===t?void 0:t.trim())&&void 0!==r?r:null===(n=o.textContent)||void 0===n?void 0:n.trim())&&void 0!==a?a:"";return this.decodeHTMLEntities(i,e)}static decodeHTMLEntities(e,t){const r=t.createElement("textarea");return r.innerHTML=e,r.value}static getSchemaProperty(e,t,r,n=""){if(!t)return n;const a=(e,t,r,n=!0)=>{if("string"==typeof e)return 0===t.length?[e]:[];if(!e||"object"!=typeof e)return[];if(Array.isArray(e)){const o=t[0];if(/^\[\d+\]$/.test(o)){const i=parseInt(o.slice(1,-1));return e[i]?a(e[i],t.slice(1),r,n):[]}return 0===t.length&&e.every((e=>"string"==typeof e||"number"==typeof e))?e.map(String):e.flatMap((e=>a(e,t,r,n)))}const[o,...i]=t;if(!o)return"string"==typeof e?[e]:"object"==typeof e&&e.name?[e.name]:[];if(e.hasOwnProperty(o))return a(e[o],i,r?`${r}.${o}`:o,!0);if(!n){const n=[];for(const o in e)if("object"==typeof e[o]){const i=a(e[o],t,r?`${r}.${o}`:o,!1);n.push(...i)}if(n.length>0)return n}return[]};try{let o=a(t,r.split("."),"",!0);0===o.length&&(o=a(t,r.split("."),"",!1));const i=o.length>0?o.filter(Boolean).join(", "):n;return this.decodeHTMLEntities(i,e)}catch(e){return console.error(`Error in getSchemaProperty for ${r}:`,e),n}}static extractSchemaOrgData(e){const t=e.querySelectorAll('script[type="application/ld+json"]'),r=[];return t.forEach((e=>{let t=e.textContent||"";try{t=t.replace(/\/\*[\s\S]*?\*\/|^\s*\/\/.*$/gm,"").replace(/^\s*<!\[CDATA\[([\s\S]*?)\]\]>\s*$/,"$1").replace(/^\s*(\*\/|\/\*)\s*|\s*(\*\/|\/\*)\s*$/g,"").trim();const e=JSON.parse(t);e["@graph"]&&Array.isArray(e["@graph"])?r.push(...e["@graph"]):r.push(e)}catch(e){console.error("Error parsing schema.org data:",e),console.error("Problematic JSON content:",t)}})),r}}},628:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Defuddle=void 0;const n=r(608),a=r(640),o=[...r(424).mathStandardizationRules,{selector:"pre",element:"pre",transform:e=>{if(!(e instanceof HTMLElement))return e;const t=e=>{const t=e.getAttribute("data-lang")||e.getAttribute("data-language");if(t)return t.toLowerCase();const r=[/^language-(\w+)$/,/^lang-(\w+)$/,/^(\w+)-code$/,/^code-(\w+)$/,/^syntax-(\w+)$/,/^code-snippet__(\w+)$/,/^highlight-(\w+)$/,/^(\w+)-snippet$/];if(e.className&&"string"==typeof e.className){for(const t of r){const r=e.className.toLowerCase().match(t);if(r)return r[1].toLowerCase()}if(a.SUPPORTED_LANGUAGES.has(e.className.toLowerCase()))return e.className.toLowerCase()}const n=Array.from(e.classList);for(const e of n)for(const t of r){const r=e.match(t);if(r)return r[1].toLowerCase()}for(const e of n)if(a.SUPPORTED_LANGUAGES.has(e.toLowerCase()))return e.toLowerCase();return""};let r="",n=e;for(;n&&!r;)r=t(n),!r&&n.querySelector("code")&&(r=t(n.querySelector("code"))),n=n.parentElement;const o=e=>{if(e.nodeType===Node.TEXT_NODE)return e.textContent||"";let t="";if(e instanceof HTMLElement){if("BR"===e.tagName)return"\n";if(e.matches('div[class*="line"], span[class*="line"], .ec-line, [data-line-number], [data-line]')){const t=e.querySelector('.code, .content, [class*="code-"], [class*="content-"]');if(t)return(t.textContent||"")+"\n";const r=e.querySelector('.line-number, .gutter, [class*="line-number"], [class*="gutter"]');if(r){return Array.from(e.childNodes).filter((e=>!r.contains(e))).map((e=>o(e))).join("")+"\n"}return e.textContent+"\n"}e.childNodes.forEach((e=>{t+=o(e)}))}return t};let i=o(e);i=i.replace(/^\n+/,"").replace(/\n+$/,"").replace(/\n{3,}/g,"\n\n");const s=document.createElement("pre");Array.from(e.attributes).forEach((e=>{a.ALLOWED_ATTRIBUTES.has(e.name)&&s.setAttribute(e.name,e.value)}));const l=document.createElement("code");return r&&(l.setAttribute("data-lang",r),l.setAttribute("class",`language-${r}`)),l.textContent=i,s.appendChild(l),s}},{selector:"h1, h2, h3, h4, h5, h6",element:"keep",transform:e=>{var t;const r=document.createElement(e.tagName);Array.from(e.attributes).forEach((e=>{a.ALLOWED_ATTRIBUTES.has(e.name)&&r.setAttribute(e.name,e.value)}));const n=e.cloneNode(!0);Array.from(n.querySelectorAll("*")).filter((e=>{if(e instanceof HTMLAnchorElement){const t=e.getAttribute("href");return(null==t?void 0:t.includes("#"))||(null==t?void 0:t.startsWith("#"))}return!!e.classList.contains("anchor")||(e instanceof HTMLButtonElement||!(!(e instanceof HTMLSpanElement||e instanceof HTMLDivElement)||!e.querySelector('a[href^="#"]')))})).forEach((e=>e.remove()));const o=(null===(t=n.textContent)||void 0===t?void 0:t.trim())||"";return r.textContent=o,r}},{selector:'div[data-testid^="paragraph"], div[role="paragraph"]',element:"p",transform:e=>{const t=document.createElement("p");return t.innerHTML=e.innerHTML,Array.from(e.attributes).forEach((e=>{a.ALLOWED_ATTRIBUTES.has(e.name)&&t.setAttribute(e.name,e.value)})),t}},{selector:'div[role="list"]',element:"ul",transform:e=>{var t;const r=e.querySelector('div[role="listitem"] .label'),n=((null===(t=null==r?void 0:r.textContent)||void 0===t?void 0:t.trim())||"").match(/^\d+\)/),a=document.createElement(n?"ol":"ul");return e.querySelectorAll('div[role="listitem"]').forEach((e=>{const t=document.createElement("li"),r=e.querySelector(".content");if(r){r.querySelectorAll('div[role="paragraph"]').forEach((e=>{const t=document.createElement("p");t.innerHTML=e.innerHTML,e.replaceWith(t)}));r.querySelectorAll('div[role="list"]').forEach((e=>{var t;const r=e.querySelector('div[role="listitem"] .label'),n=((null===(t=null==r?void 0:r.textContent)||void 0===t?void 0:t.trim())||"").match(/^\d+\)/),a=document.createElement(n?"ol":"ul");e.querySelectorAll('div[role="listitem"]').forEach((e=>{const t=document.createElement("li"),r=e.querySelector(".content");if(r){r.querySelectorAll('div[role="paragraph"]').forEach((e=>{const t=document.createElement("p");t.innerHTML=e.innerHTML,e.replaceWith(t)})),t.innerHTML=r.innerHTML}a.appendChild(t)})),e.replaceWith(a)})),t.innerHTML=r.innerHTML}a.appendChild(t)})),a}},{selector:'div[role="listitem"]',element:"li",transform:e=>{const t=e.querySelector(".content");if(!t)return e;return t.querySelectorAll('div[role="paragraph"]').forEach((e=>{const t=document.createElement("p");t.innerHTML=e.innerHTML,e.replaceWith(t)})),t}},{selector:'.wp-block-syntaxhighlighter-code, .syntaxhighlighter, .highlight, .highlight-source, .wp-block-code, pre[class*="language-"], pre[class*="brush:"]',element:"pre",transform:e=>{if(!(e instanceof HTMLElement))return e;const t=document.createElement("pre");let r="";const n=e.querySelector(".syntaxhighlighter");if(n){const e=Array.from(n.classList).find((e=>!["syntaxhighlighter","nogutter"].includes(e)));e&&a.SUPPORTED_LANGUAGES.has(e.toLowerCase())&&(r=e.toLowerCase())}if(!r){const t=Array.from(e.classList),n=[/(?:^|\s)(?:language|lang|brush|syntax)-(\w+)(?:\s|$)/i,/(?:^|\s)(\w+)(?:\s|$)/i];for(const e of t){for(const t of n){const n=e.match(t);if(n&&n[1]&&a.SUPPORTED_LANGUAGES.has(n[1].toLowerCase())){r=n[1].toLowerCase();break}}if(r)break}}let o="";const i=e.querySelector(".syntaxhighlighter table .code .container");if(i){o=Array.from(i.children).map((e=>{const t=Array.from(e.querySelectorAll("code")).map((e=>{let t=e.textContent||"";return e.classList.contains("spaces")&&(t=" ".repeat(t.length)),t})).join("");return t||e.textContent||""})).join("\n")}else{const t=e.querySelectorAll(".code .line");o=t.length>0?Array.from(t).map((e=>{const t=Array.from(e.querySelectorAll("code")).map((e=>e.textContent||"")).join("");return t||e.textContent||""})).join("\n"):e.textContent||""}o=o.replace(/^\s+|\s+$/g,"").replace(/\t/g," ").replace(/\n{3,}/g,"\n\n").replace(/\u00a0/g," ");const s=document.createElement("code");return r&&(s.setAttribute("data-lang",r),s.setAttribute("class",`language-${r}`)),s.textContent=o,t.appendChild(s),t}}];t.Defuddle=class{constructor(e,t={}){this.doc=e,this.options=t,this.debug=t.debug||!1}parse(){const e=performance.now(),t=n.MetadataExtractor.extractSchemaOrgData(this.doc),r=n.MetadataExtractor.extract(this.doc,t);try{const t=this._evaluateMediaQueries(this.doc),n=this.findSmallImages(this.doc),a=this.doc.cloneNode(!0);this.applyMobileStyles(a,t);const o=this.findMainContent(a);if(!o){const t=performance.now();return Object.assign(Object.assign({content:this.doc.body.innerHTML},r),{wordCount:this.countWords(this.doc.body.innerHTML),parseTime:Math.round(t-e)})}this.removeSmallImages(a,n),this.removeHiddenElements(a),this.removeClutter(a),this.cleanContent(o,r);const i=o?o.outerHTML:this.doc.body.innerHTML,s=performance.now();return Object.assign(Object.assign({content:i},r),{wordCount:this.countWords(i),parseTime:Math.round(s-e)})}catch(t){console.error("Defuddle","Error processing document:",t);const n=performance.now();return Object.assign(Object.assign({content:this.doc.body.innerHTML},r),{wordCount:this.countWords(this.doc.body.innerHTML),parseTime:Math.round(n-e)})}}countWords(e){const t=document.createElement("div");t.innerHTML=e;return(t.textContent||"").trim().replace(/\s+/g," ").split(" ").filter((e=>e.length>0)).length}_log(...e){this.debug&&console.log("Defuddle:",...e)}_evaluateMediaQueries(e){const t=[],r=/max-width[^:]*:\s*(\d+)/;try{const n=Array.from(e.styleSheets).filter((e=>{try{return e.cssRules,!0}catch(e){if(e instanceof DOMException&&"SecurityError"===e.name)return!1;throw e}}));n.flatMap((e=>{try{return Array.from(e.cssRules).filter((e=>e instanceof CSSMediaRule&&e.conditionText.includes("max-width")))}catch(e){return this.debug&&console.warn("Defuddle: Failed to process stylesheet:",e),[]}})).forEach((e=>{const n=e.conditionText.match(r);if(n){const r=parseInt(n[1]);if(a.MOBILE_WIDTH<=r){Array.from(e.cssRules).filter((e=>e instanceof CSSStyleRule)).forEach((e=>{try{t.push({selector:e.selectorText,styles:e.style.cssText})}catch(e){this.debug&&console.warn("Defuddle: Failed to process CSS rule:",e)}}))}}}))}catch(e){console.error("Defuddle: Error evaluating media queries:",e)}return t}applyMobileStyles(e,t){t.forEach((({selector:t,styles:r})=>{try{e.querySelectorAll(t).forEach((e=>{e.setAttribute("style",(e.getAttribute("style")||"")+r)}))}catch(e){console.error("Defuddle","Error applying styles for selector:",t,e)}}))}removeHiddenElements(e){let t=0;const r=new Set,n=e.querySelectorAll(a.HIDDEN_ELEMENT_SELECTORS);n.forEach((e=>r.add(e))),t+=n.length;const o=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>r.has(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),i=[];let s;for(;s=o.nextNode();)i.push(s);for(let e=0;e<i.length;e+=100){const n=i.slice(e,e+100),a=n.map((e=>window.getComputedStyle(e)));n.forEach(((e,n)=>{const o=a[n];"none"!==o.display&&"hidden"!==o.visibility&&"0"!==o.opacity||(r.add(e),t++)}))}r.forEach((e=>e.remove())),this._log("Removed hidden elements:",t)}removeClutter(e){const t=performance.now();let r=0,n=0;const o=new Set;e.querySelectorAll(a.EXACT_SELECTORS.join(",")).forEach((e=>{(null==e?void 0:e.parentNode)&&(o.add(e),r++)}));const i=a.PARTIAL_SELECTORS.join("|"),s=new RegExp(i,"i");e.querySelectorAll("[class],[id],[data-testid],[data-test-id],[data-qa],[data-cy]").forEach((e=>{if(o.has(e))return;const t=[e.className&&"string"==typeof e.className?e.className:"",e.id||"",e.getAttribute("data-testid")||"",e.getAttribute("data-test-id")||"",e.getAttribute("data-qa")||"",e.getAttribute("data-cy")||""].join(" ").toLowerCase();t.trim()&&s.test(t)&&(o.add(e),n++)})),o.forEach((e=>e.remove()));const l=performance.now();this._log("Removed clutter elements:",{exactSelectors:r,partialSelectors:n,total:o.size,processingTime:`${(l-t).toFixed(2)}ms`})}flattenDivs(e){let t=0;const r=performance.now();let n=!0;const o=e=>{const t=e.tagName.toLowerCase();if(a.PRESERVE_ELEMENTS.has(t))return!0;const r=e.getAttribute("role");if(r&&["article","main","navigation","banner","contentinfo"].includes(r))return!0;if(e.className.toLowerCase().match(/(?:article|main|content|footnote|reference|bibliography)/))return!0;if("div"===t){if(Array.from(e.children).some((e=>a.PRESERVE_ELEMENTS.has(e.tagName.toLowerCase())||"article"===e.getAttribute("role")||e.className.toLowerCase().includes("article"))))return!0}return!1},i=e=>{var t;if(!(null===(t=e.textContent)||void 0===t?void 0:t.trim()))return!0;const r=Array.from(e.children);if(0===r.length)return!0;if(r.every((e=>{const t=e.tagName.toLowerCase();return"div"===t||"p"===t||"h1"===t||"h2"===t||"h3"===t||"h4"===t||"h5"===t||"h6"===t||"ul"===t||"ol"===t||"pre"===t||"blockquote"===t||"figure"===t})))return!0;const n=e.className.toLowerCase();if(/(?:wrapper|container|layout|row|col|grid|flex|outer|inner|content-area)/i.test(n))return!0;const o=Array.from(e.childNodes).filter((e=>{var t;return e.nodeType===Node.TEXT_NODE&&(null===(t=e.textContent)||void 0===t?void 0:t.trim())}));if(0===o.length)return!0;return!(!(r.length>0)||r.some((e=>{const t=e.tagName.toLowerCase();return a.INLINE_ELEMENTS.has(t)})))},s=r=>{var n,s;if(!r.isConnected||o(r))return!1;if(!r.hasChildNodes()||!(null===(n=r.textContent)||void 0===n?void 0:n.trim()))return r.remove(),t++,!0;if(r.parentElement===e){const e=Array.from(r.children);if(e.length>0&&!e.some((e=>{const t=e.tagName.toLowerCase();return a.INLINE_ELEMENTS.has(t)}))){const e=document.createDocumentFragment();for(;r.firstChild;)e.appendChild(r.firstChild);return r.replaceWith(e),t++,!0}}if(i(r)){if(!Array.from(r.children).some((e=>{const t=e.tagName.toLowerCase();return a.INLINE_ELEMENTS.has(t)}))){const e=document.createDocumentFragment();for(;r.firstChild;)e.appendChild(r.firstChild);return r.replaceWith(e),t++,!0}const e=document.createDocumentFragment();for(;r.firstChild;)e.appendChild(r.firstChild);return r.replaceWith(e),t++,!0}if(!r.children.length&&(null===(s=r.textContent)||void 0===s?void 0:s.trim())){const e=document.createElement("p");return e.textContent=r.textContent,r.replaceWith(e),t++,!0}if(1===r.children.length){const e=r.firstElementChild,n=e.tagName.toLowerCase();if(!a.INLINE_ELEMENTS.has(n)&&!o(e))return r.replaceWith(e),t++,!0}let l=0,c=r.parentElement;for(;c;)"div"===c.tagName.toLowerCase()&&l++,c=c.parentElement;if(l>0){const e=document.createDocumentFragment();for(;r.firstChild;)e.appendChild(r.firstChild);return r.replaceWith(e),t++,!0}return!1},l=()=>{const t=Array.from(e.children).filter((e=>"div"===e.tagName.toLowerCase()));let r=!1;return t.forEach((e=>{s(e)&&(r=!0)})),r},c=()=>{const t=Array.from(e.getElementsByTagName("div")).sort(((e,t)=>{const r=e=>{let t=0,r=e.parentElement;for(;r;)"div"===r.tagName.toLowerCase()&&t++,r=r.parentElement;return t};return r(t)-r(e)}));let r=!1;return t.forEach((e=>{s(e)&&(r=!0)})),r},u=()=>{const r=Array.from(e.getElementsByTagName("div"));let n=!1;return r.forEach((e=>{if(Array.from(e.children).every((e=>"p"===e.tagName.toLowerCase()))||!o(e)&&i(e)){const r=document.createDocumentFragment();for(;e.firstChild;)r.appendChild(e.firstChild);e.replaceWith(r),t++,n=!0}})),n};do{n=!1,l()&&(n=!0),c()&&(n=!0),u()&&(n=!0)}while(n);const d=performance.now();this._log("Flattened divs:",{count:t,processingTime:`${(d-r).toFixed(2)}ms`})}cleanContent(e,t){this.removeHtmlComments(e),this.handleHeadings(e,t.title),this.standardizeFootnotes(e),this.handleLazyImages(e),this.standardizeElements(e),this.debug?(this.stripUnwantedAttributes(e),this.removeEmptyElements(e),this.removeTrailingHeadings(e),this._log("Debug mode: Skipping div flattening to preserve structure")):(this.flattenDivs(e),this.stripUnwantedAttributes(e),this.removeEmptyElements(e),this.removeTrailingHeadings(e),this.flattenDivs(e),this.removeEmptyLines(e))}removeTrailingHeadings(e){let t=0;const r=t=>{let n="",a=t.nextSibling;for(;a;)(a.nodeType===Node.TEXT_NODE||a.nodeType===Node.ELEMENT_NODE)&&(n+=a.textContent||""),a=a.nextSibling;if(n.trim())return!0;const o=t.parentElement;return!(!o||o===e)&&r(o)};Array.from(e.querySelectorAll("h1, h2, h3, h4, h5, h6")).reverse().forEach((e=>{r(e)||(e.remove(),t++)})),t>0&&this._log("Removed trailing headings:",t)}handleHeadings(e,t){const r=e=>e.replace(/\u00A0/g," ").replace(/\s+/g," ").trim().toLowerCase(),n=e.getElementsByTagName("h1");Array.from(n).forEach((e=>{var t;const r=document.createElement("h2");r.innerHTML=e.innerHTML,Array.from(e.attributes).forEach((e=>{a.ALLOWED_ATTRIBUTES.has(e.name)&&r.setAttribute(e.name,e.value)})),null===(t=e.parentNode)||void 0===t||t.replaceChild(r,e)}));const o=e.getElementsByTagName("h2");if(o.length>0){const e=o[0],n=r(e.textContent||""),a=r(t);a&&a===n&&e.remove()}}removeHtmlComments(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT,null);let n;for(;n=r.nextNode();)t.push(n);t.forEach((e=>{e.remove()})),this._log("Removed HTML comments:",t.length)}stripUnwantedAttributes(e){let t=0;const r=e=>{if(e instanceof SVGElement)return;Array.from(e.attributes).forEach((r=>{const n=r.name.toLowerCase();this.debug?a.ALLOWED_ATTRIBUTES.has(n)||a.ALLOWED_ATTRIBUTES_DEBUG.has(n)||n.startsWith("data-")||(e.removeAttribute(r.name),t++):a.ALLOWED_ATTRIBUTES.has(n)||(e.removeAttribute(r.name),t++)}))};r(e),e.querySelectorAll("*").forEach(r),this._log("Stripped attributes:",t)}removeEmptyElements(e){let t=0,r=0,n=!0;for(;n;){r++,n=!1;const o=Array.from(e.getElementsByTagName("*")).filter((e=>{if(a.ALLOWED_EMPTY_ELEMENTS.has(e.tagName.toLowerCase()))return!1;const t=e.textContent||"",r=0===t.trim().length,n=t.includes("\xa0"),o=!e.hasChildNodes()||Array.from(e.childNodes).every((e=>{if(e.nodeType===Node.TEXT_NODE){const t=e.textContent||"";return 0===t.trim().length&&!t.includes("\xa0")}return!1}));if("div"===e.tagName.toLowerCase()){const t=Array.from(e.children);if(t.length>0&&t.every((e=>{var t;if("span"!==e.tagName.toLowerCase())return!1;const r=(null===(t=e.textContent)||void 0===t?void 0:t.trim())||"";return","===r||""===r||" "===r})))return!0}return r&&!n&&o}));o.length>0&&(o.forEach((e=>{e.remove(),t++})),n=!0)}this._log("Removed empty elements:",{count:t,iterations:r})}removeEmptyLines(e){let t=0;const r=performance.now(),n=e=>{var r;if(e instanceof Element){const t=e.tagName.toLowerCase();if("pre"===t||"code"===t)return}if(Array.from(e.childNodes).forEach(n),e.nodeType===Node.TEXT_NODE){const n=e.textContent||"";if(!n||n.match(/^[\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\s]*$/))null===(r=e.parentNode)||void 0===r||r.removeChild(e),t++;else{const r=n.replace(/\n{3,}/g,"\n\n").replace(/^[\n\r\t]+/,"").replace(/[\n\r\t]+$/,"").replace(/[ \t]*\n[ \t]*/g,"\n").replace(/[ \t]{3,}/g," ").replace(/^[ ]+$/," ").replace(/\s+([,.!?:;])/g,"$1").replace(/[\u200C\u200B\u200D\u200E\u200F\uFEFF]+/g,"").replace(/(?:\xA0){2,}/g,"\xa0");r!==n&&(e.textContent=r,t+=n.length-r.length)}}},a=e=>{if(!(e instanceof Element))return;const r=e.tagName.toLowerCase();if("pre"===r||"code"===r)return;Array.from(e.children).forEach(a),e.normalize();const n="block"===getComputedStyle(e).display,o=n?/^[\n\r\t \u200C\u200B\u200D\u200E\u200F\uFEFF\xA0]*$/:/^[\n\r\t\u200C\u200B\u200D\u200E\u200F\uFEFF]*$/,i=n?/^[\n\r\t \u200C\u200B\u200D\u200E\u200F\uFEFF\xA0]*$/:/^[\n\r\t\u200C\u200B\u200D\u200E\u200F\uFEFF]*$/;for(;e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(e.firstChild.textContent||"").match(o);)e.removeChild(e.firstChild),t++;for(;e.lastChild&&e.lastChild.nodeType===Node.TEXT_NODE&&(e.lastChild.textContent||"").match(i);)e.removeChild(e.lastChild),t++;if(!n){const t=e.previousSibling,r=e.nextSibling;if(t&&t.nodeType===Node.TEXT_NODE){const r=t.textContent||"",n=e.textContent||"";r.endsWith(" ")||r.endsWith("\n")||r.endsWith("\xa0")||n.match(/^[,.!?:;]/)||(t.textContent=r+" ")}if(r&&r.nodeType===Node.TEXT_NODE){const e=r.textContent||"";e.startsWith(" ")||e.startsWith("\n")||e.startsWith("\xa0")||e.match(/^[,.!?:;]/)||(r.textContent=" "+e)}}};n(e),a(e);const o=performance.now();this._log("Removed empty lines:",{charactersRemoved:t,processingTime:`${(o-r).toFixed(2)}ms`})}createFootnoteItem(e,t,r){const n=document.createElement("li");if(n.className="footnote",n.id=`fn:${e}`,"string"==typeof t){const e=document.createElement("p");e.innerHTML=t,n.appendChild(e)}else{const e=Array.from(t.querySelectorAll("p"));if(0===e.length){const e=document.createElement("p");e.innerHTML=t.innerHTML,n.appendChild(e)}else e.forEach((e=>{const t=document.createElement("p");t.innerHTML=e.innerHTML,n.appendChild(t)}))}const a=n.querySelector("p:last-of-type")||n;return r.forEach(((e,t)=>{const n=document.createElement("a");n.href=`#${e}`,n.title="return to article",n.className="footnote-backref",n.innerHTML="\u21a9",t<r.length-1&&(n.innerHTML+=" "),a.appendChild(n)})),n}collectFootnotes(e){const t={};let r=1;const n=new Set;return e.querySelectorAll(a.FOOTNOTE_LIST_SELECTORS).forEach((e=>{if(e.matches('div.footnote[data-component-name="FootnoteToDOM"]')){const a=e.querySelector("a.footnote-number"),o=e.querySelector(".footnote-content");if(a&&o){const e=a.id.replace("footnote-","").toLowerCase();e&&!n.has(e)&&(t[r]={content:o,originalId:e,refs:[]},n.add(e),r++)}return}e.querySelectorAll('li, div[role="listitem"]').forEach((e=>{var a,o,i,s;let l="",c=null;const u=e.querySelector(".citations");if(null===(a=null==u?void 0:u.id)||void 0===a?void 0:a.toLowerCase().startsWith("r")){l=u.id.toLowerCase();const e=u.querySelector(".citation-content");e&&(c=e)}else{if(e.id.toLowerCase().startsWith("bib.bib"))l=e.id.replace("bib.bib","").toLowerCase();else if(e.id.toLowerCase().startsWith("fn:"))l=e.id.replace("fn:","").toLowerCase();else if(e.id.toLowerCase().startsWith("fn"))l=e.id.replace("fn","").toLowerCase();else if(e.hasAttribute("data-counter"))l=(null===(i=null===(o=e.getAttribute("data-counter"))||void 0===o?void 0:o.replace(/\.$/,""))||void 0===i?void 0:i.toLowerCase())||"";else{const t=null===(s=e.id.split("/").pop())||void 0===s?void 0:s.match(/cite_note-(.+)/);l=t?t[1].toLowerCase():e.id.toLowerCase()}c=e}l&&!n.has(l)&&(t[r]={content:c||e,originalId:l,refs:[]},n.add(l),r++)}))})),t}findOuterFootnoteContainer(e){let t=e,r=e.parentElement;for(;r&&("span"===r.tagName.toLowerCase()||"sup"===r.tagName.toLowerCase());)t=r,r=r.parentElement;return t}createFootnoteReference(e,t){const r=document.createElement("sup");r.id=t;const n=document.createElement("a");return n.href=`#fn:${e}`,n.textContent=e,r.appendChild(n),r}standardizeFootnotes(e){const t=this.collectFootnotes(e),r=e.querySelectorAll(a.FOOTNOTE_INLINE_REFERENCES),n=new Map;r.forEach((e=>{var r,a,o,i;if(!(e instanceof HTMLElement))return;let s="",l="";if(e.matches('a[id^="ref-link"]'))s=(null===(r=e.textContent)||void 0===r?void 0:r.trim())||"";else if(e.matches('a[role="doc-biblioref"]')){const t=e.getAttribute("data-xml-rid");if(t)s=t;else{const t=e.getAttribute("href");(null==t?void 0:t.startsWith("#core-R"))&&(s=t.replace("#core-",""))}}else if(e.matches("a.footnote-anchor, span.footnote-hovercard-target a")){const t=(null===(a=e.id)||void 0===a?void 0:a.replace("footnote-anchor-",""))||"";t&&(s=t.toLowerCase())}else if(e.matches("cite.ltx_cite")){const t=e.querySelector("a");if(t){const e=t.getAttribute("href");if(e){const t=null===(o=e.split("/").pop())||void 0===o?void 0:o.match(/bib\.bib(\d+)/);t&&(s=t[1].toLowerCase())}}}else if(e.matches("sup.reference")){const t=e.querySelectorAll("a");Array.from(t).forEach((e=>{var t;const r=e.getAttribute("href");if(r){const e=null===(t=r.split("/").pop())||void 0===t?void 0:t.match(/(?:cite_note|cite_ref)-(.+)/);e&&(s=e[1].toLowerCase())}}))}else if(e.matches('sup[id^="fnref:"]'))s=e.id.replace("fnref:","").toLowerCase();else if(e.matches('sup[id^="fnr"]'))s=e.id.replace("fnr","").toLowerCase();else if(e.matches("span.footnote-reference"))s=e.getAttribute("data-footnote-id")||"";else if(e.matches("span.footnote-link"))s=e.getAttribute("data-footnote-id")||"",l=e.getAttribute("data-footnote-content")||"";else if(e.matches("a.citation"))s=(null===(i=e.textContent)||void 0===i?void 0:i.trim())||"",l=e.getAttribute("href")||"";else if(e.matches('a[id^="fnref"]'))s=e.id.replace("fnref","").toLowerCase();else{const t=e.getAttribute("href");if(t){const e=t.replace(/^[#]/,"");s=e.toLowerCase()}}if(s){const r=Object.entries(t).find((([e,t])=>t.originalId===s.toLowerCase()));if(r){const[t,a]=r,o=a.refs.length>0?`fnref:${t}-${a.refs.length+1}`:`fnref:${t}`;a.refs.push(o);const i=this.findOuterFootnoteContainer(e);if("sup"===i.tagName.toLowerCase()){n.has(i)||n.set(i,[]);n.get(i).push(this.createFootnoteReference(t,o))}else i.replaceWith(this.createFootnoteReference(t,o))}}})),n.forEach(((e,t)=>{if(e.length>0){const r=document.createDocumentFragment();e.forEach(((e,t)=>{const n=e.querySelector("a");if(n){const t=document.createElement("sup");t.id=e.id,t.appendChild(n.cloneNode(!0)),r.appendChild(t)}})),t.replaceWith(r)}}));const o=document.createElement("footnotes");o.className="footnotes";const i=document.createElement("ol");Object.entries(t).forEach((([e,t])=>{const r=this.createFootnoteItem(parseInt(e),t.content,t.refs);i.appendChild(r)}));e.querySelectorAll(a.FOOTNOTE_LIST_SELECTORS).forEach((e=>e.remove())),i.children.length>0&&(o.appendChild(i),e.appendChild(o))}handleLazyImages(e){let t=0;e.querySelectorAll("img[data-src], img[data-srcset]").forEach((e=>{if(!(e instanceof HTMLImageElement))return;const r=e.getAttribute("data-src");r&&!e.src&&(e.src=r,t++);const n=e.getAttribute("data-srcset");n&&!e.srcset&&(e.srcset=n,t++),e.classList.remove("lazy","lazyload"),e.removeAttribute("data-ll-status"),e.removeAttribute("data-src"),e.removeAttribute("data-srcset")})),this._log("Processed lazy images:",t)}standardizeElements(e){let t=0;o.forEach((r=>{e.querySelectorAll(r.selector).forEach((e=>{if(r.transform){const n=r.transform(e);e.replaceWith(n),t++}}))}));e.querySelectorAll("lite-youtube").forEach((e=>{const r=e.getAttribute("videoid");if(!r)return;const n=document.createElement("iframe");n.width="560",n.height="315",n.src=`https://www.youtube.com/embed/${r}`,n.title=e.getAttribute("videotitle")||"YouTube video player",n.frameBorder="0",n.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",n.setAttribute("allowfullscreen",""),e.replaceWith(n),t++})),this._log("Converted embedded elements:",t)}findSmallImages(e){const t=new Set,r=/scale\(([\d.]+)\)/,n=performance.now();let a=0;const o=[...Array.from(e.getElementsByTagName("img")),...Array.from(e.getElementsByTagName("svg"))].filter((e=>{if(e instanceof HTMLImageElement){return!(e.classList.contains("lazy")||e.classList.contains("lazyload")||e.classList.contains("latex")||e.hasAttribute("decoding")||e.hasAttribute("data-src")||e.hasAttribute("data-srcset"))}return!0}));if(0===o.length)return t;const i=o.map((e=>({element:e,naturalWidth:e instanceof HTMLImageElement?e.naturalWidth:0,naturalHeight:e instanceof HTMLImageElement?e.naturalHeight:0,attrWidth:parseInt(e.getAttribute("width")||"0"),attrHeight:parseInt(e.getAttribute("height")||"0")})));for(let e=0;e<i.length;e+=50){const n=i.slice(e,e+50);try{const e=n.map((({element:e})=>window.getComputedStyle(e))),o=n.map((({element:e})=>e.getBoundingClientRect()));n.forEach(((n,i)=>{var s;try{const l=e[i],c=o[i],u=l.transform,d=u?parseFloat((null===(s=u.match(r))||void 0===s?void 0:s[1])||"1"):1,p=[n.naturalWidth,n.attrWidth,parseInt(l.width)||0,c.width*d].filter((e=>"number"==typeof e&&e>0)),m=[n.naturalHeight,n.attrHeight,parseInt(l.height)||0,c.height*d].filter((e=>"number"==typeof e&&e>0));if(p.length>0&&m.length>0){const e=Math.min(...p),r=Math.min(...m);if(e<33||r<33){const e=this.getElementIdentifier(n.element);e&&(t.add(e),a++)}}}catch(e){this.debug&&console.warn("Defuddle: Failed to process element dimensions:",e)}}))}catch(e){this.debug&&console.warn("Defuddle: Failed to process batch:",e)}}const s=performance.now();return this._log("Found small elements:",{count:a,totalElements:o.length,processingTime:`${(s-n).toFixed(2)}ms`}),t}removeSmallImages(e,t){let r=0;["img","svg"].forEach((n=>{const a=e.getElementsByTagName(n);Array.from(a).forEach((e=>{const n=this.getElementIdentifier(e);n&&t.has(n)&&(e.remove(),r++)}))})),this._log("Removed small elements:",r)}getElementIdentifier(e){if(e instanceof HTMLImageElement){const t=e.getAttribute("data-src");if(t)return`src:${t}`;const r=e.src||"",n=e.srcset||"",a=e.getAttribute("data-srcset");if(r)return`src:${r}`;if(n)return`srcset:${n}`;if(a)return`srcset:${a}`}const t=e.id||"",r=e.className||"",n=e instanceof SVGElement&&e.getAttribute("viewBox")||"";return t?`id:${t}`:n?`viewBox:${n}`:r?`class:${r}`:null}findMainContent(e){const t=[];return a.ENTRY_POINT_ELEMENTS.forEach(((r,n)=>{e.querySelectorAll(r).forEach((e=>{let r=10*(a.ENTRY_POINT_ELEMENTS.length-n);r+=this.scoreElement(e),t.push({element:e,score:r})}))})),0===t.length?this.findContentByScoring(e):(t.sort(((e,t)=>t.score-e.score)),this.debug&&this._log("Content candidates:",t.map((e=>({element:e.element.tagName,selector:this.getElementSelector(e.element),score:e.score})))),t[0].element)}findContentByScoring(e){const t=this.scoreElements(e);return t.length>0?t[0].element:null}getElementSelector(e){const t=[];let r=e;for(;r&&r!==this.doc.documentElement;){let e=r.tagName.toLowerCase();r.id?e+="#"+r.id:r.className&&"string"==typeof r.className&&(e+="."+r.className.trim().split(/\s+/).join(".")),t.unshift(e),r=r.parentElement}return t.join(" > ")}scoreElements(e){const t=[];return a.BLOCK_ELEMENTS.forEach((r=>{Array.from(e.getElementsByTagName(r)).forEach((e=>{const r=this.scoreElement(e);r>0&&t.push({score:r,element:e})}))})),t.sort(((e,t)=>t.score-e.score))}scoreElement(e){let t=0;e.className&&"string"==typeof e.className&&e.className.toLowerCase(),e.id&&e.id.toLowerCase();const r=e.textContent||"",n=r.split(/\s+/).length;t+=Math.min(Math.floor(n/100),3);const a=e.getElementsByTagName("a"),o=Array.from(a).reduce(((e,t)=>{var r;return e+((null===(r=t.textContent)||void 0===r?void 0:r.length)||0)}),0);(r.length?o/r.length:0)>.5&&(t-=10);t+=e.getElementsByTagName("p").length;const i=e.getElementsByTagName("img").length;return t+=Math.min(3*i,9),t}}},640:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_LANGUAGES=t.ALLOWED_ATTRIBUTES_DEBUG=t.ALLOWED_ATTRIBUTES=t.ALLOWED_EMPTY_ELEMENTS=t.FOOTNOTE_LIST_SELECTORS=t.FOOTNOTE_INLINE_REFERENCES=t.PARTIAL_SELECTORS=t.EXACT_SELECTORS=t.HIDDEN_ELEMENT_SELECTORS=t.INLINE_ELEMENTS=t.PRESERVE_ELEMENTS=t.BLOCK_ELEMENTS=t.MOBILE_WIDTH=t.ENTRY_POINT_ELEMENTS=void 0,t.ENTRY_POINT_ELEMENTS=["article",'[role="article"]',".post-content",".article-content","#article-content",".content-article","main",'[role="main"]',"body"],t.MOBILE_WIDTH=600,t.BLOCK_ELEMENTS=["div","section","article","main"],t.PRESERVE_ELEMENTS=new Set(["pre","code","table","thead","tbody","tr","td","th","ul","ol","li","dl","dt","dd","figure","figcaption","picture","details","summary","blockquote","form","fieldset"]),t.INLINE_ELEMENTS=new Set(["a","span","strong","em","i","b","u","code","br","small","sub","sup","mark","del","ins","q","abbr","cite","time"]),t.HIDDEN_ELEMENT_SELECTORS=["[hidden]",'[style*="visibility: hidden"]','[style*="visibility:hidden"]',".hidden",".invisible"].join(","),t.EXACT_SELECTORS=["noscript",'script:not([type^="math/"])',"style","meta","link",'.ad:not([class*="gradient"])','[class^="ad-" i]','[class$="-ad" i]','[id^="ad-" i]','[id$="-ad" i]','[role="banner" i]',".promo",".Promo","#barrier-page",'[id="comments" i]',"header",".header","#header","nav",".navigation","#navigation",'[role="navigation" i]','[role="dialog" i]','[role*="complementary" i]','[class*="pagination" i]',".menu","#menu","#siteSub",".author",".Author",".contributor",".date","[data-date]",".meta",".tags",".toc",".Toc","#toc","#title","#Title","#articleTag",'[href*="/category"]','[href*="/categories"]','[href*="/tag/"]','[href*="/tags/"]','[href*="/topics"]','[href*="author"]','[href="#top"]','[href="#Top"]','[href="#site-content"]','[src*="author"]',"footer","aside","button","canvas","dialog","fieldset","form",'input:not([type="checkbox"])',"label","option","select","textarea","time","instaread-player",'iframe:not([src*="youtube"]):not([src*="youtu.be"]):not([src*="vimeo"]):not([src*="twitter"])','[class="logo" i]',"#logo","#Logo","#newsletter","#Newsletter",".noprint",'[data-link-name*="skip" i]','[data-print-layout="hide" i]','[data-block="donotprint" i]','[class*="clickable-icon" i]','li span[class*="ltx_tag" i][class*="ltx_tag_item" i]','a[href^="#"][class*="anchor" i]','a[href^="#"][class*="ref" i]','[data-container*="most-viewed" i]',".sidebar",".Sidebar","#sidebar","#Sidebar","#sitesub",".gutter","#primaryaudio","#NYT_ABOVE_MAIN_CONTENT_REGION",'[data-testid="photoviewer-children-figure"] > span',"table.infobox",".pencraft:not(.pc-display-contents)",'[data-optimizely="related-articles-section" i]'],t.PARTIAL_SELECTORS=["access-wall","activitypub","actioncall","appendix","avatar","advert","ad-placement","_ad_","allterms","alert-box","around-the-web","article-bottom-section","article-bottom","article-citation","article__copy","article_date","article-end ","article_header","article-header","article__header","article__info","article-info","article-meta","article_meta","article__meta","article-subject","article_subject","article-snippet","article-separator","article--share","article--topics","articletags","article-tags","article_tags","article-title","article_title","articletopics","article-topics","article-type","article--lede","articlewell","associated-people","audio-card","authored-by","author-box","author-info","author-name","author-bio","author-mini-bio","back-to-top","backlinks-section","banner","bio-block","blog-pager","bookmark-","-bookmark","bottom-of-article","brand-bar","breadcrumb","button-wrapper","btn-","-btn","byline","captcha","card-text","card-media","cat_header","catlinks","chapter-list","collections","comments","commentbox","comment-count","comment-content","comment-form","comment-number","comment-respond","comment-thread","complementary","consent","content-card","content-topics","contentpromo","context-bar","context-widget","core-collateral","creative-commons_","_cta","-cta","cta-","cta_","current-issue","custom-list-number","dateline","dateheader","date-header","date_header-","disclaimer","disclosure","discussion","discuss_","disqus","donate","dropdown","eletters","emailsignup","engagement-widget","entry-author-info","entry-categories","entry-date","entry-meta","entry-title","entry-utility","eyebrow","expand-reduce","externallinkembedwrapper","extra-services","extra-title","facebook","favorite","feedback","feed-links","field-site-sections","fixed","floating-vid","follow","footer","footnote-back","footnoteback","for-you","frontmatter","further-reading","gist-meta","google","goog-","graph-view","header-logo","header-pattern","hero-list","hide-for-print","hide-print","hide-when-no-script","hidden-sidenote","hidden-accessibility","interlude","interaction","jumplink","jump-to-","kicker","labstab","-labels","language-name","latest-content","-ledes-","-license","link-box","links-grid","links-title","listing-dynamic-terms","list-tags","listinks","loading","loa-info","logo_container","ltx_role_refnum","ltx_tag_bibitem","ltx_error","marketing","media-inquiry","menu-","metadata","might-like","more-about","_modal","-modal","more-","morenews","morestories","move-helper","mw-editsection","mw-cite-backlink","mw-indicators","mw-jump-link","nav-","nav_","navbar","next-","newsgallery","news-story-title","newsletter_","newsletter-form","newsletter-signup","newslettersignup","newsletterwidget","newsletterwrapper","not-found","nomobile","noprint","originally-published","outline-view","overlay","page-title","paywall_message","-partners","plea","popular","pop-up","popover","post-bottom","post__category","postcomment","postdate","post-author","post-date","post_date","post-feeds","postinfo","post-info","post_info","post-inline-date","post-links","post-meta","postmeta","postsnippet","post_snippet","post-snippet","posttitle","post-title","post_title","post__title","posttax","post-tax","post_tax","posttag","post_tag","post-tag","prevnext","previousnext","press-inquiries","print-none","print-header","profile","promo_article","promo-box","pubdate","pub_date","pub-date","publication-date","publicationName","qr-code","qr_code","_rail","readmore","read-next","read_next","read_time","read-time","reading_time","reading-time","reading-list","recent-","recent-articles","recentpost","recent_post","recent-post","recommend","redirectedfrom","recirc","register","related","relevant","reversefootnote","screen-reader-text","share-box","sharedaddy","share-icons","sharelinks","share-section","sidebartitle","sidebar_","sidebar-content","similar-","similar_","similars-","sideitems","sidebar-author","sidebar-item","side-box","site-index","site-header","site-logo","site-name","skip-content","c-skip-link","_skip-link","slug-wrap","social","speechify-ignore","sponsor","springercitation","_stats","storyreadtime","storypublishdate","subject-label","subscribe","_tags","tags__item","tag_list","taxonomy","table-content","table-of-contents","tabs-","terminaltout","time-rubric","timestamp","tip_off","tiptout","-tout-","-toc","toggle-caption","topic-list","toolbar","tooltip","top-wrapper","tree-item","trending","trust-feat","trust-badge","twitter","u-hide","visually-hidden","welcomebox"],t.FOOTNOTE_INLINE_REFERENCES=["sup.reference","cite.ltx_cite",'sup[id^="fnr"]','sup[id^="fnref:"]',"span.footnote-link","a.citation",'a[id^="ref-link"]','a[href^="#fn"]','a[href^="#cite"]','a[href^="#reference"]','a[href^="#footnote"]','a[href^="#r"]','a[href^="#b"]','a[href*="cite_note"]','a[href*="cite_ref"]',"a.footnote-anchor","span.footnote-hovercard-target a",'a[role="doc-biblioref"]','a[id^="fnref"]','a[id^="ref-link"]'].join(","),t.FOOTNOTE_LIST_SELECTORS=["div.footnote ol","div.footnotes ol",'div[role="doc-endnotes"]','div[role="doc-footnotes"]',"ol.footnotes-list","ol.footnotes","ol.references",'ol[class*="article-references"]',"section.footnotes ol",'section[role="doc-endnotes"]','section[role="doc-footnotes"]','section[role="doc-bibliography"]',"ul.footnotes-list","ul.ltx_biblist",'div.footnote[data-component-name="FootnoteToDOM"]'].join(","),t.ALLOWED_EMPTY_ELEMENTS=new Set(["area","audio","base","br","circle","col","defs","ellipse","embed","figure","g","hr","iframe","img","input","line","link","mask","meta","object","param","path","pattern","picture","polygon","polyline","rect","source","stop","svg","td","th","track","use","video","wbr"]),t.ALLOWED_ATTRIBUTES=new Set(["alt","allow","allowfullscreen","aria-label","checked","colspan","controls","data-latex","data-src","data-srcset","data-lang","dir","display","frameborder","headers","height","href","lang","role","rowspan","src","srcset","title","type","width","accent","accentunder","align","columnalign","columnlines","columnspacing","columnspan","data-mjx-texclass","depth","displaystyle","fence","frame","framespacing","linethickness","lspace","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","rowalign","rowlines","rowspacing","rowspan","rspace","scriptlevel","separator","stretchy","symmetric","voffset","xmlns"]),t.ALLOWED_ATTRIBUTES_DEBUG=new Set(["class","id"]),t.SUPPORTED_LANGUAGES=new Set(["markup","html","xml","svg","mathml","ssml","atom","rss","javascript","js","jsx","typescript","ts","tsx","webassembly","wasm","python","java","csharp","cs","dotnet","aspnet","cpp","c++","c","objc","ruby","rb","php","golang","rust","swift","kotlin","scala","dart","bash","shell","sh","powershell","batch","json","jsonp","yaml","yml","toml","dockerfile","gitignore","sql","mysql","postgresql","graphql","mongodb","sparql","markdown","md","latex","tex","asciidoc","adoc","jsdoc","haskell","hs","elm","elixir","erlang","ocaml","fsharp","scheme","lisp","elisp","clojure","matlab","fortran","cobol","pascal","perl","lua","julia","groovy","crystal","nim","zig","regex","gradle","cmake","makefile","nix","terraform","solidity","glsl","hlsl","nasm","masm","armasm","gdscript","unrealscript","abap","actionscript","ada","agda","antlr4","applescript","arduino","coffeescript","django","erlang","fortran","haxe","idris","kotlin","livescript","matlab","nginx","pascal","prolog","puppet","scala","scheme","tcl","verilog","vhdl"])},648:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mathSelectors=t.isBlockDisplay=t.getBasicLatexFromElement=t.getMathMLFromElement=void 0;t.getMathMLFromElement=e=>{if("math"===e.tagName.toLowerCase()){const t="block"===e.getAttribute("display");return{mathml:e.outerHTML,latex:e.getAttribute("alttext")||null,isBlock:t}}const t=e.getAttribute("data-mathml");if(t){const e=document.createElement("div");e.innerHTML=t;const r=e.querySelector("math");if(r){const e="block"===r.getAttribute("display");return{mathml:r.outerHTML,latex:r.getAttribute("alttext")||null,isBlock:e}}}const r=e.querySelector(".MJX_Assistive_MathML, mjx-assistive-mml");if(r){const e=r.querySelector("math");if(e){const t=e.getAttribute("display"),n=r.getAttribute("display"),a="block"===t||"block"===n;return{mathml:e.outerHTML,latex:e.getAttribute("alttext")||null,isBlock:a}}}const n=e.querySelector(".katex-mathml math");return n?{mathml:n.outerHTML,latex:null,isBlock:!1}:null};t.getBasicLatexFromElement=e=>{var t,r,n;const a=e.getAttribute("data-latex");if(a)return a;if(e instanceof HTMLImageElement&&e.classList.contains("latex")){const t=e.getAttribute("alt");if(t)return t;const r=e.getAttribute("src");if(r){const e=r.match(/latex\.php\?latex=([^&]+)/);if(e)return decodeURIComponent(e[1]).replace(/\+/g," ").replace(/%5C/g,"\\")}}const o=e.querySelector('annotation[encoding="application/x-tex"]');if(null==o?void 0:o.textContent)return o.textContent.trim();if(e.matches(".katex")){const t=e.querySelector('.katex-mathml annotation[encoding="application/x-tex"]');if(null==t?void 0:t.textContent)return t.textContent.trim()}if(e.matches('script[type="math/tex"]')||e.matches('script[type="math/tex; mode=display"]'))return(null===(t=e.textContent)||void 0===t?void 0:t.trim())||null;if(e.parentElement){const t=e.parentElement.querySelector('script[type="math/tex"], script[type="math/tex; mode=display"]');if(t)return(null===(r=t.textContent)||void 0===r?void 0:r.trim())||null}return e.getAttribute("alt")||(null===(n=e.textContent)||void 0===n?void 0:n.trim())||null};t.isBlockDisplay=e=>{if("block"===e.getAttribute("display"))return!0;const t=e.className.toLowerCase();if(t.includes("display")||t.includes("block"))return!0;if(e.closest('.katex-display, .MathJax_Display, [data-display="block"]'))return!0;const r=e.previousElementSibling;if("p"===(null==r?void 0:r.tagName.toLowerCase()))return!0;if(e.matches(".mwe-math-fallback-image-display"))return!0;if(e.matches(".katex"))return null!==e.closest(".katex-display");if(e.hasAttribute("display"))return"true"===e.getAttribute("display");if(e.matches('script[type="math/tex; mode=display"]'))return!0;if(e.hasAttribute("display"))return"true"===e.getAttribute("display");const n=e.closest("[display]");return!!n&&"true"===n.getAttribute("display")},t.mathSelectors=['img.latex[src*="latex.php"]',"span.MathJax","mjx-container",'script[type="math/tex"]','script[type="math/tex; mode=display"]','.MathJax_Preview + script[type="math/tex"]',".MathJax_Display",".MathJax_SVG",".MathJax_MathML",".mwe-math-element",".mwe-math-fallback-image-inline",".mwe-math-fallback-image-display",".mwe-math-mathml-inline",".mwe-math-mathml-display",".katex",".katex-display",".katex-mathml",".katex-html","[data-katex]",'script[type="math/katex"]',"math","[data-math]","[data-latex]","[data-tex]",'script[type^="math/"]','annotation[encoding="application/x-tex"]'].join(",")},914:e=>{"use strict";class t{constructor(e,r){let n,a=" "+e;const o=r&&r.loc;if(o&&o.start<=o.end){const e=o.lexer.input;n=o.start;const t=o.end;n===e.length?a+=" at end of input: ":a+=" at position "+(n+1)+": \n";const r=e.slice(n,t).replace(/[^]/g,"$&\u0332");let i,s;i=n>15?"\u2026"+e.slice(n-15,n):e.slice(0,n),s=t+15<e.length?e.slice(t,t+15)+"\u2026":e.slice(t),a+=i+r+s}const i=new Error(a);return i.name="ParseError",i.__proto__=t.prototype,i.position=n,i}}t.prototype.__proto__=Error.prototype;const r=/([A-Z])/g,n={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},a=/[&><"']/g;const o=function(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?o(e.body[0]):e:"font"===e.type?o(e.body):e};var i={deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(a,(e=>n[e]))},hyphenate:function(e){return e.replace(r,"-$1").toLowerCase()},getBaseElem:o,isCharacterBox:function(e){const t=o(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){const t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"},round:function(e){return+e.toFixed(4)}};class s{constructor(e){e=e||{},this.displayMode=i.deflt(e.displayMode,!1),this.annotate=i.deflt(e.annotate,!1),this.leqno=i.deflt(e.leqno,!1),this.throwOnError=i.deflt(e.throwOnError,!1),this.errorColor=i.deflt(e.errorColor,"#b22222"),this.macros=e.macros||{},this.wrap=i.deflt(e.wrap,"tex"),this.xml=i.deflt(e.xml,!1),this.colorIsTextColor=i.deflt(e.colorIsTextColor,!1),this.strict=i.deflt(e.strict,!1),this.trust=i.deflt(e.trust,!1),this.maxSize=void 0===e.maxSize?[1/0,1/0]:Array.isArray(e.maxSize)?e.maxSize:[1/0,1/0],this.maxExpand=Math.max(0,i.deflt(e.maxExpand,1e3))}isTrusted(e){if(e.url&&!e.protocol){const t=i.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}const t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}const l={},c={};function u({type:e,names:t,props:r,handler:n,mathmlBuilder:a}){const o={type:e,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:n};for(let e=0;e<t.length;++e)l[t[e]]=o;e&&a&&(c[e]=a)}function d({type:e,mathmlBuilder:t}){u({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},mathmlBuilder:t})}const p=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},m=function(e){return"ordgroup"===e.type?e.body:[e]};class h{constructor(e){this.children=e,this.classes=[],this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){const e=document.createDocumentFragment();for(let t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){let e="";for(let t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map((e=>e.toText())).join("")}}const f=function(e){return e.filter((e=>e)).join(" ")},g=function(e,t){this.classes=e||[],this.attributes={},this.style=t||{}},x=function(e){const t=document.createElement(e);t.className=f(this.classes);for(const e in this.style)Object.prototype.hasOwnProperty.call(this.style,e)&&(t.style[e]=this.style[e]);for(const e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e<this.children.length;e++)t.appendChild(this.children[e].toNode());return t},b=function(e){let t=`<${e}`;this.classes.length&&(t+=` class="${i.escape(f(this.classes))}"`);let r="";for(const e in this.style)Object.prototype.hasOwnProperty.call(this.style,e)&&(r+=`${i.hyphenate(e)}:${this.style[e]};`);r&&(t+=` style="${r}"`);for(const e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&(t+=` ${e}="${i.escape(this.attributes[e])}"`);t+=">";for(let e=0;e<this.children.length;e++)t+=this.children[e].toMarkup();return t+=`</${e}>`,t};class w{constructor(e,t,r){g.call(this,e,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}toNode(){return x.call(this,"span")}toMarkup(){return b.call(this,"span")}}let y=class{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return i.escape(this.text)}};class v{constructor(e,t,r){this.href=e,this.classes=t,this.children=r||[]}toNode(){const e=document.createElement("a");e.setAttribute("href",this.href),this.classes.length>0&&(e.className=f(this.classes));for(let t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){let e=`<a href='${i.escape(this.href)}'`;this.classes.length>0&&(e+=` class="${i.escape(f(this.classes))}"`),e+=">";for(let t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e+="</a>",e}}class A{constructor(e,t,r){this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return this.classes.includes(e)}toNode(){const e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(const t in this.style)Object.prototype.hasOwnProperty.call(this.style,t)&&(e.style[t]=this.style[t]);return e}toMarkup(){let e=`<img src='${this.src}' alt='${this.alt}'`,t="";for(const e in this.style)Object.prototype.hasOwnProperty.call(this.style,e)&&(t+=`${i.hyphenate(e)}:${this.style[e]};`);return t&&(e+=` style="${i.escape(t)}"`),e+=">",e}}class E{constructor(e,t,r,n){this.type=e,this.attributes={},this.children=t||[],this.classes=r||[],this.style=n||{},this.label=""}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}setLabel(e){this.label=e}toNode(){const e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=f(this.classes));for(const t in this.style)Object.prototype.hasOwnProperty.call(this.style,t)&&(e.style[t]=this.style[t]);for(let t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){let e="<"+this.type;for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=i.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=` class="${i.escape(f(this.classes))}"`);let t="";for(const e in this.style)Object.prototype.hasOwnProperty.call(this.style,e)&&(t+=`${i.hyphenate(e)}:${this.style[e]};`);t&&(e+=` style="${t}"`),e+=">";for(let t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map((e=>e.toText())).join("")}}class _{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return i.escape(this.toText())}toText(){return this.text}}const C=e=>{let t;return 1===e.length&&"mrow"===e[0].type?(t=e.pop(),t.type="mstyle"):t=new E("mstyle",e),t};var T={MathNode:E,TextNode:_,newDocumentFragment:function(e){return new h(e)}};const q=e=>{let t=0;if(e.body)for(const r of e.body)t+=q(r);else if("supsub"===e.type)t+=q(e.base),e.sub&&(t+=.7*q(e.sub)),e.sup&&(t+=.7*q(e.sup));else if("mathord"===e.type||"textord"===e.type)for(const r of e.text.split("")){const e=r.codePointAt(0);t+=96<e&&e<123||944<e&&e<970?.56:47<e&&e<58?.5:.92}else t+=1;return t},k={widehat:"^",widecheck:"\u02c7",widetilde:"~",wideparen:"\u23dc",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",overgroup:"\u23e0",overparen:"\u23dc",undergroup:"\u23e1",underparen:"\u23dd",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xrightleftarrows:"\u21c4",yields:"\u2192",yieldsLeft:"\u2190",mesomerism:"\u2194",longrightharpoonup:"\u21c0",longleftharpoondown:"\u21bd",eqrightharpoonup:"\u21c0",eqleftharpoondown:"\u21bd","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},N=function(e){const t=new T.TextNode(k[e.slice(1)]),r=new T.MathNode("mo",[t]);return r.setAttribute("stretchy","true"),r},S=["\\widetilde","\\widehat","\\widecheck","\\utilde"];var M=N,L=e=>{const t=N(e.label);if(S.includes(e.label)){const r=q(e.base);1<r&&r<1.6?t.classes.push("tml-crooked-2"):1.6<=r&&r<2.5?t.classes.push("tml-crooked-3"):2.5<=r&&t.classes.push("tml-crooked-4")}return t};const O={bin:1,close:1,inner:1,open:1,punct:1,rel:1},D={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},B={math:{},text:{}};function F(e,t,r,n,a){B[e][n]={group:t,replace:r},a&&r&&(B[e][r]=B[e][n])}const $="math",I="text",P="accent-token",R="bin",j="close",z="inner",U="mathord",G="op-token",H="open",V="punct",W="rel",X="spacing",Z="textord";F($,W,"\u2261","\\equiv",!0),F($,W,"\u227a","\\prec",!0),F($,W,"\u227b","\\succ",!0),F($,W,"\u223c","\\sim",!0),F($,W,"\u27c2","\\perp",!0),F($,W,"\u2aaf","\\preceq",!0),F($,W,"\u2ab0","\\succeq",!0),F($,W,"\u2243","\\simeq",!0),F($,W,"\u224c","\\backcong",!0),F($,W,"|","\\mid",!0),F($,W,"\u226a","\\ll",!0),F($,W,"\u226b","\\gg",!0),F($,W,"\u224d","\\asymp",!0),F($,W,"\u2225","\\parallel"),F($,W,"\u2323","\\smile",!0),F($,W,"\u2291","\\sqsubseteq",!0),F($,W,"\u2292","\\sqsupseteq",!0),F($,W,"\u2250","\\doteq",!0),F($,W,"\u2322","\\frown",!0),F($,W,"\u220b","\\ni",!0),F($,W,"\u220c","\\notni",!0),F($,W,"\u221d","\\propto",!0),F($,W,"\u22a2","\\vdash",!0),F($,W,"\u22a3","\\dashv",!0),F($,W,"\u220b","\\owns"),F($,W,"\u2258","\\arceq",!0),F($,W,"\u2259","\\wedgeq",!0),F($,W,"\u225a","\\veeeq",!0),F($,W,"\u225b","\\stareq",!0),F($,W,"\u225d","\\eqdef",!0),F($,W,"\u225e","\\measeq",!0),F($,W,"\u225f","\\questeq",!0),F($,W,"\u2260","\\ne",!0),F($,W,"\u2260","\\neq"),F($,W,"\u2a75","\\eqeq",!0),F($,W,"\u2a76","\\eqeqeq",!0),F($,W,"\u2237","\\dblcolon",!0),F($,W,"\u2254","\\coloneqq",!0),F($,W,"\u2255","\\eqqcolon",!0),F($,W,"\u2239","\\eqcolon",!0),F($,W,"\u2a74","\\Coloneqq",!0),F($,V,".","\\ldotp"),F($,V,"\xb7","\\cdotp"),F($,Z,"#","\\#"),F(I,Z,"#","\\#"),F($,Z,"&","\\&"),F(I,Z,"&","\\&"),F($,Z,"\u2135","\\aleph",!0),F($,Z,"\u2200","\\forall",!0),F($,Z,"\u210f","\\hbar",!0),F($,Z,"\u2203","\\exists",!0),F($,R,"\u2207","\\nabla",!0),F($,Z,"\u266d","\\flat",!0),F($,Z,"\u2113","\\ell",!0),F($,Z,"\u266e","\\natural",!0),F($,Z,"\u212b","\\Angstrom",!0),F(I,Z,"\u212b","\\Angstrom",!0),F($,Z,"\u2663","\\clubsuit",!0),F($,Z,"\u2667","\\varclubsuit",!0),F($,Z,"\u2118","\\wp",!0),F($,Z,"\u266f","\\sharp",!0),F($,Z,"\u2662","\\diamondsuit",!0),F($,Z,"\u2666","\\vardiamondsuit",!0),F($,Z,"\u211c","\\Re",!0),F($,Z,"\u2661","\\heartsuit",!0),F($,Z,"\u2665","\\varheartsuit",!0),F($,Z,"\u2111","\\Im",!0),F($,Z,"\u2660","\\spadesuit",!0),F($,Z,"\u2664","\\varspadesuit",!0),F($,Z,"\u2640","\\female",!0),F($,Z,"\u2642","\\male",!0),F($,Z,"\xa7","\\S",!0),F(I,Z,"\xa7","\\S"),F($,Z,"\xb6","\\P",!0),F(I,Z,"\xb6","\\P"),F(I,Z,"\u263a","\\smiley",!0),F($,Z,"\u263a","\\smiley",!0),F($,Z,"\u2020","\\dag"),F(I,Z,"\u2020","\\dag"),F(I,Z,"\u2020","\\textdagger"),F($,Z,"\u2021","\\ddag"),F(I,Z,"\u2021","\\ddag"),F(I,Z,"\u2021","\\textdaggerdbl"),F($,j,"\u23b1","\\rmoustache",!0),F($,H,"\u23b0","\\lmoustache",!0),F($,j,"\u27ef","\\rgroup",!0),F($,H,"\u27ee","\\lgroup",!0),F($,R,"\u2213","\\mp",!0),F($,R,"\u2296","\\ominus",!0),F($,R,"\u228e","\\uplus",!0),F($,R,"\u2293","\\sqcap",!0),F($,R,"\u2217","\\ast"),F($,R,"\u2294","\\sqcup",!0),F($,R,"\u25ef","\\bigcirc",!0),F($,R,"\u2219","\\bullet",!0),F($,R,"\u2021","\\ddagger"),F($,R,"\u2240","\\wr",!0),F($,R,"\u2a3f","\\amalg"),F($,R,"&","\\And"),F($,R,"\u2afd","\\sslash",!0),F($,W,"\u27f5","\\longleftarrow",!0),F($,W,"\u21d0","\\Leftarrow",!0),F($,W,"\u27f8","\\Longleftarrow",!0),F($,W,"\u27f6","\\longrightarrow",!0),F($,W,"\u21d2","\\Rightarrow",!0),F($,W,"\u27f9","\\Longrightarrow",!0),F($,W,"\u2194","\\leftrightarrow",!0),F($,W,"\u27f7","\\longleftrightarrow",!0),F($,W,"\u21d4","\\Leftrightarrow",!0),F($,W,"\u27fa","\\Longleftrightarrow",!0),F($,W,"\u21a4","\\mapsfrom",!0),F($,W,"\u21a6","\\mapsto",!0),F($,W,"\u27fc","\\longmapsto",!0),F($,W,"\u2197","\\nearrow",!0),F($,W,"\u21a9","\\hookleftarrow",!0),F($,W,"\u21aa","\\hookrightarrow",!0),F($,W,"\u2198","\\searrow",!0),F($,W,"\u21bc","\\leftharpoonup",!0),F($,W,"\u21c0","\\rightharpoonup",!0),F($,W,"\u2199","\\swarrow",!0),F($,W,"\u21bd","\\leftharpoondown",!0),F($,W,"\u21c1","\\rightharpoondown",!0),F($,W,"\u2196","\\nwarrow",!0),F($,W,"\u21cc","\\rightleftharpoons",!0),F($,U,"\u21af","\\lightning",!0),F($,U,"\u220e","\\QED",!0),F($,U,"\u2030","\\permil",!0),F(I,Z,"\u2030","\\permil"),F($,U,"\u2609","\\astrosun",!0),F($,U,"\u263c","\\sun",!0),F($,U,"\u263e","\\leftmoon",!0),F($,U,"\u263d","\\rightmoon",!0),F($,U,"\u2295","\\Earth"),F($,W,"\u226e","\\nless",!0),F($,W,"\u2a87","\\lneq",!0),F($,W,"\u2268","\\lneqq",!0),F($,W,"\u2268\ufe00","\\lvertneqq"),F($,W,"\u22e6","\\lnsim",!0),F($,W,"\u2a89","\\lnapprox",!0),F($,W,"\u2280","\\nprec",!0),F($,W,"\u22e0","\\npreceq",!0),F($,W,"\u22e8","\\precnsim",!0),F($,W,"\u2ab9","\\precnapprox",!0),F($,W,"\u2241","\\nsim",!0),F($,W,"\u2224","\\nmid",!0),F($,W,"\u2224","\\nshortmid"),F($,W,"\u22ac","\\nvdash",!0),F($,W,"\u22ad","\\nvDash",!0),F($,W,"\u22ea","\\ntriangleleft"),F($,W,"\u22ec","\\ntrianglelefteq",!0),F($,W,"\u2284","\\nsubset",!0),F($,W,"\u2285","\\nsupset",!0),F($,W,"\u228a","\\subsetneq",!0),F($,W,"\u228a\ufe00","\\varsubsetneq"),F($,W,"\u2acb","\\subsetneqq",!0),F($,W,"\u2acb\ufe00","\\varsubsetneqq"),F($,W,"\u226f","\\ngtr",!0),F($,W,"\u2a88","\\gneq",!0),F($,W,"\u2269","\\gneqq",!0),F($,W,"\u2269\ufe00","\\gvertneqq"),F($,W,"\u22e7","\\gnsim",!0),F($,W,"\u2a8a","\\gnapprox",!0),F($,W,"\u2281","\\nsucc",!0),F($,W,"\u22e1","\\nsucceq",!0),F($,W,"\u22e9","\\succnsim",!0),F($,W,"\u2aba","\\succnapprox",!0),F($,W,"\u2246","\\ncong",!0),F($,W,"\u2226","\\nparallel",!0),F($,W,"\u2226","\\nshortparallel"),F($,W,"\u22af","\\nVDash",!0),F($,W,"\u22eb","\\ntriangleright"),F($,W,"\u22ed","\\ntrianglerighteq",!0),F($,W,"\u228b","\\supsetneq",!0),F($,W,"\u228b","\\varsupsetneq"),F($,W,"\u2acc","\\supsetneqq",!0),F($,W,"\u2acc\ufe00","\\varsupsetneqq"),F($,W,"\u22ae","\\nVdash",!0),F($,W,"\u2ab5","\\precneqq",!0),F($,W,"\u2ab6","\\succneqq",!0),F($,R,"\u22b4","\\unlhd"),F($,R,"\u22b5","\\unrhd"),F($,W,"\u219a","\\nleftarrow",!0),F($,W,"\u219b","\\nrightarrow",!0),F($,W,"\u21cd","\\nLeftarrow",!0),F($,W,"\u21cf","\\nRightarrow",!0),F($,W,"\u21ae","\\nleftrightarrow",!0),F($,W,"\u21ce","\\nLeftrightarrow",!0),F($,W,"\u25b3","\\vartriangle"),F($,Z,"\u210f","\\hslash"),F($,Z,"\u25bd","\\triangledown"),F($,Z,"\u25ca","\\lozenge"),F($,Z,"\u24c8","\\circledS"),F($,Z,"\xae","\\circledR",!0),F(I,Z,"\xae","\\circledR"),F(I,Z,"\xae","\\textregistered"),F($,Z,"\u2221","\\measuredangle",!0),F($,Z,"\u2204","\\nexists"),F($,Z,"\u2127","\\mho"),F($,Z,"\u2132","\\Finv",!0),F($,Z,"\u2141","\\Game",!0),F($,Z,"\u2035","\\backprime"),F($,Z,"\u2036","\\backdprime"),F($,Z,"\u2037","\\backtrprime"),F($,Z,"\u25b2","\\blacktriangle"),F($,Z,"\u25bc","\\blacktriangledown"),F($,Z,"\u25a0","\\blacksquare"),F($,Z,"\u29eb","\\blacklozenge"),F($,Z,"\u2605","\\bigstar"),F($,Z,"\u2222","\\sphericalangle",!0),F($,Z,"\u2201","\\complement",!0),F($,Z,"\xf0","\\eth",!0),F(I,Z,"\xf0","\xf0"),F($,Z,"\u2571","\\diagup"),F($,Z,"\u2572","\\diagdown"),F($,Z,"\u25a1","\\square"),F($,Z,"\u25a1","\\Box"),F($,Z,"\u25ca","\\Diamond"),F($,Z,"\xa5","\\yen",!0),F(I,Z,"\xa5","\\yen",!0),F($,Z,"\u2713","\\checkmark",!0),F(I,Z,"\u2713","\\checkmark"),F($,Z,"\u2717","\\ballotx",!0),F(I,Z,"\u2717","\\ballotx"),F(I,Z,"\u2022","\\textbullet"),F($,Z,"\u2136","\\beth",!0),F($,Z,"\u2138","\\daleth",!0),F($,Z,"\u2137","\\gimel",!0),F($,Z,"\u03dd","\\digamma",!0),F($,Z,"\u03f0","\\varkappa"),F($,H,"\u231c","\\ulcorner",!0),F($,j,"\u231d","\\urcorner",!0),F($,H,"\u231e","\\llcorner",!0),F($,j,"\u231f","\\lrcorner",!0),F($,W,"\u2266","\\leqq",!0),F($,W,"\u2a7d","\\leqslant",!0),F($,W,"\u2a95","\\eqslantless",!0),F($,W,"\u2272","\\lesssim",!0),F($,W,"\u2a85","\\lessapprox",!0),F($,W,"\u224a","\\approxeq",!0),F($,R,"\u22d6","\\lessdot"),F($,W,"\u22d8","\\lll",!0),F($,W,"\u2276","\\lessgtr",!0),F($,W,"\u22da","\\lesseqgtr",!0),F($,W,"\u2a8b","\\lesseqqgtr",!0),F($,W,"\u2251","\\doteqdot"),F($,W,"\u2253","\\risingdotseq",!0),F($,W,"\u2252","\\fallingdotseq",!0),F($,W,"\u223d","\\backsim",!0),F($,W,"\u22cd","\\backsimeq",!0),F($,W,"\u2ac5","\\subseteqq",!0),F($,W,"\u22d0","\\Subset",!0),F($,W,"\u228f","\\sqsubset",!0),F($,W,"\u227c","\\preccurlyeq",!0),F($,W,"\u22de","\\curlyeqprec",!0),F($,W,"\u227e","\\precsim",!0),F($,W,"\u2ab7","\\precapprox",!0),F($,W,"\u22b2","\\vartriangleleft"),F($,W,"\u22b4","\\trianglelefteq"),F($,W,"\u22a8","\\vDash",!0),F($,W,"\u22ab","\\VDash",!0),F($,W,"\u22aa","\\Vvdash",!0),F($,W,"\u2323","\\smallsmile"),F($,W,"\u2322","\\smallfrown"),F($,W,"\u224f","\\bumpeq",!0),F($,W,"\u224e","\\Bumpeq",!0),F($,W,"\u2267","\\geqq",!0),F($,W,"\u2a7e","\\geqslant",!0),F($,W,"\u2a96","\\eqslantgtr",!0),F($,W,"\u2273","\\gtrsim",!0),F($,W,"\u2a86","\\gtrapprox",!0),F($,R,"\u22d7","\\gtrdot"),F($,W,"\u22d9","\\ggg",!0),F($,W,"\u2277","\\gtrless",!0),F($,W,"\u22db","\\gtreqless",!0),F($,W,"\u2a8c","\\gtreqqless",!0),F($,W,"\u2256","\\eqcirc",!0),F($,W,"\u2257","\\circeq",!0),F($,W,"\u225c","\\triangleq",!0),F($,W,"\u223c","\\thicksim"),F($,W,"\u2248","\\thickapprox"),F($,W,"\u2ac6","\\supseteqq",!0),F($,W,"\u22d1","\\Supset",!0),F($,W,"\u2290","\\sqsupset",!0),F($,W,"\u227d","\\succcurlyeq",!0),F($,W,"\u22df","\\curlyeqsucc",!0),F($,W,"\u227f","\\succsim",!0),F($,W,"\u2ab8","\\succapprox",!0),F($,W,"\u22b3","\\vartriangleright"),F($,W,"\u22b5","\\trianglerighteq"),F($,W,"\u22a9","\\Vdash",!0),F($,W,"\u2223","\\shortmid"),F($,W,"\u2225","\\shortparallel"),F($,W,"\u226c","\\between",!0),F($,W,"\u22d4","\\pitchfork",!0),F($,W,"\u221d","\\varpropto"),F($,W,"\u25c0","\\blacktriangleleft"),F($,W,"\u2234","\\therefore",!0),F($,W,"\u220d","\\backepsilon"),F($,W,"\u25b6","\\blacktriangleright"),F($,W,"\u2235","\\because",!0),F($,W,"\u22d8","\\llless"),F($,W,"\u22d9","\\gggtr"),F($,R,"\u22b2","\\lhd"),F($,R,"\u22b3","\\rhd"),F($,W,"\u2242","\\eqsim",!0),F($,W,"\u2251","\\Doteq",!0),F($,W,"\u297d","\\strictif",!0),F($,W,"\u297c","\\strictfi",!0),F($,R,"\u2214","\\dotplus",!0),F($,R,"\u2216","\\smallsetminus"),F($,R,"\u22d2","\\Cap",!0),F($,R,"\u22d3","\\Cup",!0),F($,R,"\u2a5e","\\doublebarwedge",!0),F($,R,"\u229f","\\boxminus",!0),F($,R,"\u229e","\\boxplus",!0),F($,R,"\u29c4","\\boxslash",!0),F($,R,"\u22c7","\\divideontimes",!0),F($,R,"\u22c9","\\ltimes",!0),F($,R,"\u22ca","\\rtimes",!0),F($,R,"\u22cb","\\leftthreetimes",!0),F($,R,"\u22cc","\\rightthreetimes",!0),F($,R,"\u22cf","\\curlywedge",!0),F($,R,"\u22ce","\\curlyvee",!0),F($,R,"\u229d","\\circleddash",!0),F($,R,"\u229b","\\circledast",!0),F($,R,"\u22ba","\\intercal",!0),F($,R,"\u22d2","\\doublecap"),F($,R,"\u22d3","\\doublecup"),F($,R,"\u22a0","\\boxtimes",!0),F($,R,"\u22c8","\\bowtie",!0),F($,R,"\u22c8","\\Join"),F($,R,"\u27d5","\\leftouterjoin",!0),F($,R,"\u27d6","\\rightouterjoin",!0),F($,R,"\u27d7","\\fullouterjoin",!0),F($,R,"\u2238","\\dotminus",!0),F($,R,"\u27d1","\\wedgedot",!0),F($,R,"\u27c7","\\veedot",!0),F($,R,"\u2a62","\\doublebarvee",!0),F($,R,"\u2a63","\\veedoublebar",!0),F($,R,"\u2a5f","\\wedgebar",!0),F($,R,"\u2a60","\\wedgedoublebar",!0),F($,R,"\u2a54","\\Vee",!0),F($,R,"\u2a53","\\Wedge",!0),F($,R,"\u2a43","\\barcap",!0),F($,R,"\u2a42","\\barcup",!0),F($,R,"\u2a48","\\capbarcup",!0),F($,R,"\u2a40","\\capdot",!0),F($,R,"\u2a47","\\capovercup",!0),F($,R,"\u2a46","\\cupovercap",!0),F($,R,"\u2a4d","\\closedvarcap",!0),F($,R,"\u2a4c","\\closedvarcup",!0),F($,R,"\u2a2a","\\minusdot",!0),F($,R,"\u2a2b","\\minusfdots",!0),F($,R,"\u2a2c","\\minusrdots",!0),F($,R,"\u22bb","\\Xor",!0),F($,R,"\u22bc","\\Nand",!0),F($,R,"\u22bd","\\Nor",!0),F($,R,"\u22bd","\\barvee"),F($,R,"\u2af4","\\interleave",!0),F($,R,"\u29e2","\\shuffle",!0),F($,R,"\u2af6","\\threedotcolon",!0),F($,R,"\u2982","\\typecolon",!0),F($,R,"\u223e","\\invlazys",!0),F($,R,"\u2a4b","\\twocaps",!0),F($,R,"\u2a4a","\\twocups",!0),F($,R,"\u2a4e","\\Sqcap",!0),F($,R,"\u2a4f","\\Sqcup",!0),F($,R,"\u2a56","\\veeonvee",!0),F($,R,"\u2a55","\\wedgeonwedge",!0),F($,R,"\u29d7","\\blackhourglass",!0),F($,R,"\u29c6","\\boxast",!0),F($,R,"\u29c8","\\boxbox",!0),F($,R,"\u29c7","\\boxcircle",!0),F($,R,"\u229c","\\circledequal",!0),F($,R,"\u29b7","\\circledparallel",!0),F($,R,"\u29b6","\\circledvert",!0),F($,R,"\u29b5","\\circlehbar",!0),F($,R,"\u27e1","\\concavediamond",!0),F($,R,"\u27e2","\\concavediamondtickleft",!0),F($,R,"\u27e3","\\concavediamondtickright",!0),F($,R,"\u22c4","\\diamond",!0),F($,R,"\u29d6","\\hourglass",!0),F($,R,"\u27e0","\\lozengeminus",!0),F($,R,"\u233d","\\obar",!0),F($,R,"\u29b8","\\obslash",!0),F($,R,"\u2a38","\\odiv",!0),F($,R,"\u29c1","\\ogreaterthan",!0),F($,R,"\u29c0","\\olessthan",!0),F($,R,"\u29b9","\\operp",!0),F($,R,"\u2a37","\\Otimes",!0),F($,R,"\u2a36","\\otimeshat",!0),F($,R,"\u22c6","\\star",!0),F($,R,"\u25b3","\\triangle",!0),F($,R,"\u2a3a","\\triangleminus",!0),F($,R,"\u2a39","\\triangleplus",!0),F($,R,"\u2a3b","\\triangletimes",!0),F($,R,"\u27e4","\\whitesquaretickleft",!0),F($,R,"\u27e5","\\whitesquaretickright",!0),F($,R,"\u2a33","\\smashtimes",!0),F($,W,"\u21e2","\\dashrightarrow",!0),F($,W,"\u21e0","\\dashleftarrow",!0),F($,W,"\u21c7","\\leftleftarrows",!0),F($,W,"\u21c6","\\leftrightarrows",!0),F($,W,"\u21da","\\Lleftarrow",!0),F($,W,"\u219e","\\twoheadleftarrow",!0),F($,W,"\u21a2","\\leftarrowtail",!0),F($,W,"\u21ab","\\looparrowleft",!0),F($,W,"\u21cb","\\leftrightharpoons",!0),F($,W,"\u21b6","\\curvearrowleft",!0),F($,W,"\u21ba","\\circlearrowleft",!0),F($,W,"\u21b0","\\Lsh",!0),F($,W,"\u21c8","\\upuparrows",!0),F($,W,"\u21bf","\\upharpoonleft",!0),F($,W,"\u21c3","\\downharpoonleft",!0),F($,W,"\u22b6","\\origof",!0),F($,W,"\u22b7","\\imageof",!0),F($,W,"\u22b8","\\multimap",!0),F($,W,"\u21ad","\\leftrightsquigarrow",!0),F($,W,"\u21c9","\\rightrightarrows",!0),F($,W,"\u21c4","\\rightleftarrows",!0),F($,W,"\u21a0","\\twoheadrightarrow",!0),F($,W,"\u21a3","\\rightarrowtail",!0),F($,W,"\u21ac","\\looparrowright",!0),F($,W,"\u21b7","\\curvearrowright",!0),F($,W,"\u21bb","\\circlearrowright",!0),F($,W,"\u21b1","\\Rsh",!0),F($,W,"\u21ca","\\downdownarrows",!0),F($,W,"\u21be","\\upharpoonright",!0),F($,W,"\u21c2","\\downharpoonright",!0),F($,W,"\u21dd","\\rightsquigarrow",!0),F($,W,"\u21dd","\\leadsto"),F($,W,"\u21db","\\Rrightarrow",!0),F($,W,"\u21be","\\restriction"),F($,Z,"\u2018","`"),F($,Z,"$","\\$"),F(I,Z,"$","\\$"),F(I,Z,"$","\\textdollar"),F($,Z,"\xa2","\\cent"),F(I,Z,"\xa2","\\cent"),F($,Z,"%","\\%"),F(I,Z,"%","\\%"),F($,Z,"_","\\_"),F(I,Z,"_","\\_"),F(I,Z,"_","\\textunderscore"),F(I,Z,"\u2423","\\textvisiblespace",!0),F($,Z,"\u2220","\\angle",!0),F($,Z,"\u221e","\\infty",!0),F($,Z,"\u2032","\\prime"),F($,Z,"\u2033","\\dprime"),F($,Z,"\u2034","\\trprime"),F($,Z,"\u2057","\\qprime"),F($,Z,"\u25b3","\\triangle"),F(I,Z,"\u0391","\\Alpha",!0),F(I,Z,"\u0392","\\Beta",!0),F(I,Z,"\u0393","\\Gamma",!0),F(I,Z,"\u0394","\\Delta",!0),F(I,Z,"\u0395","\\Epsilon",!0),F(I,Z,"\u0396","\\Zeta",!0),F(I,Z,"\u0397","\\Eta",!0),F(I,Z,"\u0398","\\Theta",!0),F(I,Z,"\u0399","\\Iota",!0),F(I,Z,"\u039a","\\Kappa",!0),F(I,Z,"\u039b","\\Lambda",!0),F(I,Z,"\u039c","\\Mu",!0),F(I,Z,"\u039d","\\Nu",!0),F(I,Z,"\u039e","\\Xi",!0),F(I,Z,"\u039f","\\Omicron",!0),F(I,Z,"\u03a0","\\Pi",!0),F(I,Z,"\u03a1","\\Rho",!0),F(I,Z,"\u03a3","\\Sigma",!0),F(I,Z,"\u03a4","\\Tau",!0),F(I,Z,"\u03a5","\\Upsilon",!0),F(I,Z,"\u03a6","\\Phi",!0),F(I,Z,"\u03a7","\\Chi",!0),F(I,Z,"\u03a8","\\Psi",!0),F(I,Z,"\u03a9","\\Omega",!0),F($,U,"\u0391","\\Alpha",!0),F($,U,"\u0392","\\Beta",!0),F($,U,"\u0393","\\Gamma",!0),F($,U,"\u0394","\\Delta",!0),F($,U,"\u0395","\\Epsilon",!0),F($,U,"\u0396","\\Zeta",!0),F($,U,"\u0397","\\Eta",!0),F($,U,"\u0398","\\Theta",!0),F($,U,"\u0399","\\Iota",!0),F($,U,"\u039a","\\Kappa",!0),F($,U,"\u039b","\\Lambda",!0),F($,U,"\u039c","\\Mu",!0),F($,U,"\u039d","\\Nu",!0),F($,U,"\u039e","\\Xi",!0),F($,U,"\u039f","\\Omicron",!0),F($,U,"\u03a0","\\Pi",!0),F($,U,"\u03a1","\\Rho",!0),F($,U,"\u03a3","\\Sigma",!0),F($,U,"\u03a4","\\Tau",!0),F($,U,"\u03a5","\\Upsilon",!0),F($,U,"\u03a6","\\Phi",!0),F($,U,"\u03a7","\\Chi",!0),F($,U,"\u03a8","\\Psi",!0),F($,U,"\u03a9","\\Omega",!0),F($,H,"\xac","\\neg",!0),F($,H,"\xac","\\lnot"),F($,Z,"\u22a4","\\top"),F($,Z,"\u22a5","\\bot"),F($,Z,"\u2205","\\emptyset"),F($,Z,"\u2300","\\varnothing"),F($,U,"\u03b1","\\alpha",!0),F($,U,"\u03b2","\\beta",!0),F($,U,"\u03b3","\\gamma",!0),F($,U,"\u03b4","\\delta",!0),F($,U,"\u03f5","\\epsilon",!0),F($,U,"\u03b6","\\zeta",!0),F($,U,"\u03b7","\\eta",!0),F($,U,"\u03b8","\\theta",!0),F($,U,"\u03b9","\\iota",!0),F($,U,"\u03ba","\\kappa",!0),F($,U,"\u03bb","\\lambda",!0),F($,U,"\u03bc","\\mu",!0),F($,U,"\u03bd","\\nu",!0),F($,U,"\u03be","\\xi",!0),F($,U,"\u03bf","\\omicron",!0),F($,U,"\u03c0","\\pi",!0),F($,U,"\u03c1","\\rho",!0),F($,U,"\u03c3","\\sigma",!0),F($,U,"\u03c4","\\tau",!0),F($,U,"\u03c5","\\upsilon",!0),F($,U,"\u03d5","\\phi",!0),F($,U,"\u03c7","\\chi",!0),F($,U,"\u03c8","\\psi",!0),F($,U,"\u03c9","\\omega",!0),F($,U,"\u03b5","\\varepsilon",!0),F($,U,"\u03d1","\\vartheta",!0),F($,U,"\u03d6","\\varpi",!0),F($,U,"\u03f1","\\varrho",!0),F($,U,"\u03c2","\\varsigma",!0),F($,U,"\u03c6","\\varphi",!0),F($,U,"\u03d8","\\Coppa",!0),F($,U,"\u03d9","\\coppa",!0),F($,U,"\u03d9","\\varcoppa",!0),F($,U,"\u03de","\\Koppa",!0),F($,U,"\u03df","\\koppa",!0),F($,U,"\u03e0","\\Sampi",!0),F($,U,"\u03e1","\\sampi",!0),F($,U,"\u03da","\\Stigma",!0),F($,U,"\u03db","\\stigma",!0),F($,U,"\u2aeb","\\Bot"),F($,R,"\u2217","\u2217",!0),F($,R,"+","+"),F($,R,"\u2217","*"),F($,R,"\u2044","/",!0),F($,R,"\u2044","\u2044"),F($,R,"\u2212","-",!0),F($,R,"\u22c5","\\cdot",!0),F($,R,"\u2218","\\circ",!0),F($,R,"\xf7","\\div",!0),F($,R,"\xb1","\\pm",!0),F($,R,"\xd7","\\times",!0),F($,R,"\u2229","\\cap",!0),F($,R,"\u222a","\\cup",!0),F($,R,"\u2216","\\setminus",!0),F($,R,"\u2227","\\land"),F($,R,"\u2228","\\lor"),F($,R,"\u2227","\\wedge",!0),F($,R,"\u2228","\\vee",!0),F($,H,"\u27e6","\\llbracket",!0),F($,j,"\u27e7","\\rrbracket",!0),F($,H,"\u27e8","\\langle",!0),F($,H,"\u27ea","\\lAngle",!0),F($,H,"\u2989","\\llangle",!0),F($,H,"|","\\lvert"),F($,H,"\u2016","\\lVert",!0),F($,Z,"!","\\oc"),F($,Z,"?","\\wn"),F($,Z,"\u2193","\\shpos"),F($,Z,"\u2195","\\shift"),F($,Z,"\u2191","\\shneg"),F($,j,"?","?"),F($,j,"!","!"),F($,j,"\u203c","\u203c"),F($,j,"\u27e9","\\rangle",!0),F($,j,"\u27eb","\\rAngle",!0),F($,j,"\u298a","\\rrangle",!0),F($,j,"|","\\rvert"),F($,j,"\u2016","\\rVert"),F($,H,"\u2983","\\lBrace",!0),F($,j,"\u2984","\\rBrace",!0),F($,W,"=","\\equal",!0),F($,W,":",":"),F($,W,"\u2248","\\approx",!0),F($,W,"\u2245","\\cong",!0),F($,W,"\u2265","\\ge"),F($,W,"\u2265","\\geq",!0),F($,W,"\u2190","\\gets"),F($,W,">","\\gt",!0),F($,W,"\u2208","\\in",!0),F($,W,"\u2209","\\notin",!0),F($,W,"\ue020","\\@not"),F($,W,"\u2282","\\subset",!0),F($,W,"\u2283","\\supset",!0),F($,W,"\u2286","\\subseteq",!0),F($,W,"\u2287","\\supseteq",!0),F($,W,"\u2288","\\nsubseteq",!0),F($,W,"\u2288","\\nsubseteqq"),F($,W,"\u2289","\\nsupseteq",!0),F($,W,"\u2289","\\nsupseteqq"),F($,W,"\u22a8","\\models"),F($,W,"\u2190","\\leftarrow",!0),F($,W,"\u2264","\\le"),F($,W,"\u2264","\\leq",!0),F($,W,"<","\\lt",!0),F($,W,"\u2192","\\rightarrow",!0),F($,W,"\u2192","\\to"),F($,W,"\u2271","\\ngeq",!0),F($,W,"\u2271","\\ngeqq"),F($,W,"\u2271","\\ngeqslant"),F($,W,"\u2270","\\nleq",!0),F($,W,"\u2270","\\nleqq"),F($,W,"\u2270","\\nleqslant"),F($,W,"\u2aeb","\\Perp",!0),F($,X,"\xa0","\\ "),F($,X,"\xa0","\\space"),F($,X,"\xa0","\\nobreakspace"),F(I,X,"\xa0","\\ "),F(I,X,"\xa0"," "),F(I,X,"\xa0","\\space"),F(I,X,"\xa0","\\nobreakspace"),F($,X,null,"\\nobreak"),F($,X,null,"\\allowbreak"),F($,V,",",","),F(I,V,":",":"),F($,V,";",";"),F($,R,"\u22bc","\\barwedge"),F($,R,"\u22bb","\\veebar"),F($,R,"\u2299","\\odot",!0),F($,R,"\u2295\ufe0e","\\oplus"),F($,R,"\u2297","\\otimes",!0),F($,Z,"\u2202","\\partial",!0),F($,R,"\u2298","\\oslash",!0),F($,R,"\u229a","\\circledcirc",!0),F($,R,"\u22a1","\\boxdot",!0),F($,R,"\u25b3","\\bigtriangleup"),F($,R,"\u25bd","\\bigtriangledown"),F($,R,"\u2020","\\dagger"),F($,R,"\u22c4","\\diamond"),F($,R,"\u25c3","\\triangleleft"),F($,R,"\u25b9","\\triangleright"),F($,H,"{","\\{"),F(I,Z,"{","\\{"),F(I,Z,"{","\\textbraceleft"),F($,j,"}","\\}"),F(I,Z,"}","\\}"),F(I,Z,"}","\\textbraceright"),F($,H,"{","\\lbrace"),F($,j,"}","\\rbrace"),F($,H,"[","\\lbrack",!0),F(I,Z,"[","\\lbrack",!0),F($,j,"]","\\rbrack",!0),F(I,Z,"]","\\rbrack",!0),F($,H,"(","\\lparen",!0),F($,j,")","\\rparen",!0),F($,H,"\u2987","\\llparenthesis",!0),F($,j,"\u2988","\\rrparenthesis",!0),F(I,Z,"<","\\textless",!0),F(I,Z,">","\\textgreater",!0),F($,H,"\u230a","\\lfloor",!0),F($,j,"\u230b","\\rfloor",!0),F($,H,"\u2308","\\lceil",!0),F($,j,"\u2309","\\rceil",!0),F($,Z,"\\","\\backslash"),F($,Z,"|","|"),F($,Z,"|","\\vert"),F(I,Z,"|","\\textbar",!0),F($,Z,"\u2016","\\|"),F($,Z,"\u2016","\\Vert"),F(I,Z,"\u2016","\\textbardbl"),F(I,Z,"~","\\textasciitilde"),F(I,Z,"\\","\\textbackslash"),F(I,Z,"^","\\textasciicircum"),F($,W,"\u2191","\\uparrow",!0),F($,W,"\u21d1","\\Uparrow",!0),F($,W,"\u2193","\\downarrow",!0),F($,W,"\u21d3","\\Downarrow",!0),F($,W,"\u2195","\\updownarrow",!0),F($,W,"\u21d5","\\Updownarrow",!0),F($,G,"\u2210","\\coprod"),F($,G,"\u22c1","\\bigvee"),F($,G,"\u22c0","\\bigwedge"),F($,G,"\u2a04","\\biguplus"),F($,G,"\u2a04","\\bigcupplus"),F($,G,"\u2a03","\\bigcupdot"),F($,G,"\u2a07","\\bigdoublevee"),F($,G,"\u2a08","\\bigdoublewedge"),F($,G,"\u22c2","\\bigcap"),F($,G,"\u22c3","\\bigcup"),F($,G,"\u222b","\\int"),F($,G,"\u222b","\\intop"),F($,G,"\u222c","\\iint"),F($,G,"\u222d","\\iiint"),F($,G,"\u220f","\\prod"),F($,G,"\u2211","\\sum"),F($,G,"\u2a02","\\bigotimes"),F($,G,"\u2a01","\\bigoplus"),F($,G,"\u2a00","\\bigodot"),F($,G,"\u2a09","\\bigtimes"),F($,G,"\u222e","\\oint"),F($,G,"\u222f","\\oiint"),F($,G,"\u2230","\\oiiint"),F($,G,"\u2231","\\intclockwise"),F($,G,"\u2232","\\varointclockwise"),F($,G,"\u2a0c","\\iiiint"),F($,G,"\u2a0d","\\intbar"),F($,G,"\u2a0e","\\intBar"),F($,G,"\u2a0f","\\fint"),F($,G,"\u2a12","\\rppolint"),F($,G,"\u2a13","\\scpolint"),F($,G,"\u2a15","\\pointint"),F($,G,"\u2a16","\\sqint"),F($,G,"\u2a17","\\intlarhk"),F($,G,"\u2a18","\\intx"),F($,G,"\u2a19","\\intcap"),F($,G,"\u2a1a","\\intcup"),F($,G,"\u2a05","\\bigsqcap"),F($,G,"\u2a06","\\bigsqcup"),F($,G,"\u222b","\\smallint"),F(I,z,"\u2026","\\textellipsis"),F($,z,"\u2026","\\mathellipsis"),F(I,z,"\u2026","\\ldots",!0),F($,z,"\u2026","\\ldots",!0),F($,z,"\u22f0","\\iddots",!0),F($,z,"\u22ef","\\@cdots",!0),F($,z,"\u22f1","\\ddots",!0),F($,Z,"\u22ee","\\varvdots"),F(I,Z,"\u22ee","\\varvdots"),F($,P,"\u02ca","\\acute"),F($,P,"`","\\grave"),F($,P,"\xa8","\\ddot"),F($,P,"\u2026","\\dddot"),F($,P,"\u2026.","\\ddddot"),F($,P,"~","\\tilde"),F($,P,"\u203e","\\bar"),F($,P,"\u02d8","\\breve"),F($,P,"\u02c7","\\check"),F($,P,"^","\\hat"),F($,P,"\u2192","\\vec"),F($,P,"\u02d9","\\dot"),F($,P,"\u02da","\\mathring"),F($,U,"\u0131","\\imath",!0),F($,U,"\u0237","\\jmath",!0),F($,Z,"\u0131","\u0131"),F($,Z,"\u0237","\u0237"),F(I,Z,"\u0131","\\i",!0),F(I,Z,"\u0237","\\j",!0),F(I,Z,"\xdf","\\ss",!0),F(I,Z,"\xe6","\\ae",!0),F(I,Z,"\u0153","\\oe",!0),F(I,Z,"\xf8","\\o",!0),F($,U,"\xf8","\\o",!0),F(I,Z,"\xc6","\\AE",!0),F(I,Z,"\u0152","\\OE",!0),F(I,Z,"\xd8","\\O",!0),F($,U,"\xd8","\\O",!0),F(I,P,"\u02ca","\\'"),F(I,P,"\u02cb","\\`"),F(I,P,"\u02c6","\\^"),F(I,P,"\u02dc","\\~"),F(I,P,"\u02c9","\\="),F(I,P,"\u02d8","\\u"),F(I,P,"\u02d9","\\."),F(I,P,"\xb8","\\c"),F(I,P,"\u02da","\\r"),F(I,P,"\u02c7","\\v"),F(I,P,"\xa8",'\\"'),F(I,P,"\u02dd","\\H"),F($,P,"\u02ca","\\'"),F($,P,"\u02cb","\\`"),F($,P,"\u02c6","\\^"),F($,P,"\u02dc","\\~"),F($,P,"\u02c9","\\="),F($,P,"\u02d8","\\u"),F($,P,"\u02d9","\\."),F($,P,"\xb8","\\c"),F($,P,"\u02da","\\r"),F($,P,"\u02c7","\\v"),F($,P,"\xa8",'\\"'),F($,P,"\u02dd","\\H");const Y={"--":!0,"---":!0,"``":!0,"''":!0};F(I,Z,"\u2013","--",!0),F(I,Z,"\u2013","\\textendash"),F(I,Z,"\u2014","---",!0),F(I,Z,"\u2014","\\textemdash"),F(I,Z,"\u2018","`",!0),F(I,Z,"\u2018","\\textquoteleft"),F(I,Z,"\u2019","'",!0),F(I,Z,"\u2019","\\textquoteright"),F(I,Z,"\u201c","``",!0),F(I,Z,"\u201c","\\textquotedblleft"),F(I,Z,"\u201d","''",!0),F(I,Z,"\u201d","\\textquotedblright"),F($,Z,"\xb0","\\degree",!0),F(I,Z,"\xb0","\\degree"),F(I,Z,"\xb0","\\textdegree",!0),F($,Z,"\xa3","\\pounds"),F($,Z,"\xa3","\\mathsterling",!0),F(I,Z,"\xa3","\\pounds"),F(I,Z,"\xa3","\\textsterling",!0),F($,Z,"\u2720","\\maltese"),F(I,Z,"\u2720","\\maltese"),F($,Z,"\u20ac","\\euro",!0),F(I,Z,"\u20ac","\\euro",!0),F(I,Z,"\u20ac","\\texteuro"),F($,Z,"\xa9","\\copyright",!0),F(I,Z,"\xa9","\\textcopyright"),F($,Z,"\u2300","\\diameter",!0),F(I,Z,"\u2300","\\diameter"),F($,Z,"\u{1d6e4}","\\varGamma"),F($,Z,"\u{1d6e5}","\\varDelta"),F($,Z,"\u{1d6e9}","\\varTheta"),F($,Z,"\u{1d6ec}","\\varLambda"),F($,Z,"\u{1d6ef}","\\varXi"),F($,Z,"\u{1d6f1}","\\varPi"),F($,Z,"\u{1d6f4}","\\varSigma"),F($,Z,"\u{1d6f6}","\\varUpsilon"),F($,Z,"\u{1d6f7}","\\varPhi"),F($,Z,"\u{1d6f9}","\\varPsi"),F($,Z,"\u{1d6fa}","\\varOmega"),F(I,Z,"\u{1d6e4}","\\varGamma"),F(I,Z,"\u{1d6e5}","\\varDelta"),F(I,Z,"\u{1d6e9}","\\varTheta"),F(I,Z,"\u{1d6ec}","\\varLambda"),F(I,Z,"\u{1d6ef}","\\varXi"),F(I,Z,"\u{1d6f1}","\\varPi"),F(I,Z,"\u{1d6f4}","\\varSigma"),F(I,Z,"\u{1d6f6}","\\varUpsilon"),F(I,Z,"\u{1d6f7}","\\varPhi"),F(I,Z,"\u{1d6f9}","\\varPsi"),F(I,Z,"\u{1d6fa}","\\varOmega");const J='0123456789/@."';for(let e=0;e<14;e++){const t=J.charAt(e);F($,Z,t,t)}const K='0123456789!@*()-=+";:?/.,';for(let e=0;e<25;e++){const t=K.charAt(e);F(I,Z,t,t)}const Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let e=0;e<52;e++){const t=Q.charAt(e);F($,U,t,t),F(I,Z,t,t)}const ee="\xc7\xd0\xde\xe7\xfe\u2102\u210d\u2115\u2119\u211a\u211d\u2124\u210e\u210f\u210a\u210b\u210c\u2110\u2111\u2112\u2113\u2118\u211b\u211c\u212c\u2130\u2131\u2133\u212d\u2128";for(let e=0;e<30;e++){const t=ee.charAt(e);F($,U,t,t),F(I,Z,t,t)}let te="";for(let e=0;e<52;e++){te=String.fromCharCode(55349,56320+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56372+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56424+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56580+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56736+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56788+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56840+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56944+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56632+e),F($,U,te,te),F(I,Z,te,te);const t=Q.charAt(e);te=String.fromCharCode(55349,56476+e),F($,U,t,te),F(I,Z,t,te)}for(let e=0;e<10;e++)te=String.fromCharCode(55349,57294+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,57314+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,57324+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,57334+e),F($,U,te,te),F(I,Z,te,te);const re=function(e,t,r){return!B[t][e]||!B[t][e].replace||55349===e.charCodeAt(0)||Object.prototype.hasOwnProperty.call(Y,e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=B[t][e].replace),new T.TextNode(e)},ne=(e,t)=>{if(0===e.children.length||"mtext"!==e.children[e.children.length-1].type){const r=new T.MathNode("mtext",[new T.TextNode(t.children[0].text)]);e.children.push(r)}else e.children[e.children.length-1].children[0].text+=t.children[0].text},ae=e=>{if("mrow"!==e.type&&"mstyle"!==e.type)return e;if(0===e.children.length)return e;const t=new T.MathNode("mrow");for(let r=0;r<e.children.length;r++){const n=e.children[r];if("mtext"===n.type&&0===Object.keys(n.attributes).length)ne(t,n);else if("mrow"===n.type){let e=!0;for(let t=0;t<n.children.length;t++){if("mtext"!==n.children[t].type||0!==Object.keys(n.attributes).length){e=!1;break}}if(e)for(let e=0;e<n.children.length;e++){const r=n.children[e];ne(t,r)}else t.children.push(n)}else t.children.push(n)}for(let r=0;r<t.children.length;r++)if("mtext"===t.children[r].type){const n=t.children[r];" "===n.children[0].text.charAt(0)&&(n.children[0].text="\xa0"+n.children[0].text.slice(1));const a=n.children[0].text.length;a>0&&" "===n.children[0].text.charAt(a-1)&&(n.children[0].text=n.children[0].text.slice(0,-1)+"\xa0");for(const[t,r]of Object.entries(e.attributes))n.attributes[t]=r}return 1===t.children.length&&"mtext"===t.children[0].type?t.children[0]:t},oe=function(e,t=!1){if(!(1!==e.length||e[0]instanceof h))return e[0];if(!t){e[0]instanceof E&&"mo"===e[0].type&&!e[0].attributes.fence&&(e[0].attributes.lspace="0em",e[0].attributes.rspace="0em");const t=e.length-1;e[t]instanceof E&&"mo"===e[t].type&&!e[t].attributes.fence&&(e[t].attributes.lspace="0em",e[t].attributes.rspace="0em")}return new T.MathNode("mrow",e)};function ie(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){const t=e.children[0];return t instanceof _&&"."===t.text}if("mtext"===e.type&&1===e.children.length){const t=e.children[0];return t instanceof _&&"\u2008"===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){const t=e.children[0];return t instanceof _&&","===t.text}return!1}const se=(e,t)=>{const r=e[t],n=e[t+1];return"atom"===r.type&&","===r.text&&r.loc&&n.loc&&r.loc.end===n.loc.start},le=e=>"atom"===e.type&&"rel"===e.family||"mclass"===e.type&&"mrel"===e.mclass,ce=function(e,t,r=!1){if(!r&&1===e.length){const r=de(e[0],t);return r instanceof E&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}const n=[],a=[];let o;for(let r=0;r<e.length;r++)a.push(de(e[r],t));for(let t=0;t<a.length;t++){const r=a[t];if(t<e.length-1&&le(e[t])&&le(e[t+1])&&r.setAttribute("rspace","0em"),t>0&&le(e[t])&&le(e[t-1])&&r.setAttribute("lspace","0em"),"mn"===r.type&&o&&"mn"===o.type)o.children.push(...r.children);else if(ie(r)&&o&&"mn"===o.type)o.children.push(...r.children);else if(o&&"mn"===o.type&&t<a.length-1&&"mn"===a[t+1].type&&se(e,t))o.children.push(...r.children);else{if("mn"===r.type&&ie(o))r.children=[...o.children,...r.children],n.pop();else if(("msup"===r.type||"msub"===r.type)&&r.children.length>=1&&o&&("mn"===o.type||ie(o))){const e=r.children[0];e instanceof E&&"mn"===e.type&&o&&(e.children=[...o.children,...e.children],n.pop())}n.push(r),o=r}}return n},ue=function(e,t,r=!1){return oe(ce(e,t,r),r)},de=function(e,r){if(!e)return new T.MathNode("mrow");if(c[e.type]){return c[e.type](e,r)}throw new t("Got group of unknown type: '"+e.type+"'")},pe=e=>new T.MathNode("mtd",[],[],{padding:"0",width:"50%"}),me=["mrow","mtd","mtable","mtr"],he=e=>{for(const t of e.children)if(t.type&&me.includes(t.type)){if(t.classes&&"tml-label"===t.classes[0]){return t.label}{const e=he(t);if(e)return e}}else if(!t.type){const e=he(t);if(e)return e}};function fe(e,t,r,n){let a=null;1===e.length&&"tag"===e[0].type&&(a=e[0].tag,e=e[0].body);const o=ce(e,r);if(1===o.length&&o[0]instanceof v)return o[0];const i=n.displayMode||n.annotate?"none":n.wrap,s=0===o.length?null:o[0];let l=1===o.length&&null===a&&s instanceof E?o[0]:function(e,t,r){const n=[];let a=[],o=[],i=0,s=0,l=0;for(;s<e.length;){for(;e[s]instanceof h;)e.splice(s,1,...e[s].children);const r=e[s];if(r.attributes&&r.attributes.linebreak&&"newline"===r.attributes.linebreak){o.length>0&&a.push(new T.MathNode("mrow",o)),a.push(r),o=[];const e=new T.MathNode("mtd",a);e.style.textAlign="left",n.push(new T.MathNode("mtr",[e])),a=[],s+=1}else{if(o.push(r),r.type&&"mo"===r.type&&1===r.children.length&&!Object.prototype.hasOwnProperty.call(r.attributes,"movablelimits")){const n=r.children[0].text;if("([{\u230a\u2308\u27e8\u27ee\u23b0\u27e6\u2983".indexOf(n)>-1)l+=1;else if(")]}\u230b\u2309\u27e9\u27ef\u23b1\u27e6\u2984".indexOf(n)>-1)l-=1;else if(0===l&&"="===t&&"="===n){if(i+=1,i>1){o.pop();const e=new T.MathNode("mrow",o);a.push(e),o=[r]}}else if(0===l&&"tex"===t&&"\u2207"!==n){const t=s<e.length-1?e[s+1]:null;let r=!0;if(!t||"mtext"!==t.type||!t.attributes.linebreak||"nobreak"!==t.attributes.linebreak)for(let t=s+1;t<e.length;t++){const n=e[t];if(!n.type||"mspace"!==n.type||n.attributes.linebreak&&"newline"===n.attributes.linebreak)break;o.push(n),s+=1,n.attributes&&n.attributes.linebreak&&"nobreak"===n.attributes.linebreak&&(r=!1)}if(r){const e=new T.MathNode("mrow",o);a.push(e),o=[]}}}s+=1}}if(o.length>0){const e=new T.MathNode("mrow",o);a.push(e)}if(n.length>0){const e=new T.MathNode("mtd",a);e.style.textAlign="left";const t=new T.MathNode("mtr",[e]);n.push(t);const o=new T.MathNode("mtable",n);return r||(o.setAttribute("columnalign","left"),o.setAttribute("rowspacing","0em")),o}return T.newDocumentFragment(a)}(o,i,n.displayMode);if(a&&(l=((e,t,r,n)=>{t=ue(t[0].body,r),(t=ae(t)).classes.push("tml-tag");const a=he(e);e=new T.MathNode("mtd",[e]);const o=[pe(),e,pe()];o[n?0:2].classes.push(n?"tml-left":"tml-right"),o[n?0:2].children.push(t);const i=new T.MathNode("mtr",o,["tml-tageqn"]);a&&i.setAttribute("id",a);const s=new T.MathNode("mtable",[i]);return s.style.width="100%",s.setAttribute("displaystyle","true"),s})(l,a,r,n.leqno)),n.annotate){const e=new T.MathNode("annotation",[new T.TextNode(t)]);e.setAttribute("encoding","application/x-tex"),l=new T.MathNode("semantics",[l,e])}const c=new T.MathNode("math",[l]);return n.xml&&c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),l.style.width&&(c.style.width="100%"),n.displayMode&&(c.setAttribute("display","block"),c.style.display="block math",c.classes=["tml-display"]),c}const ge="aceg\u0131\u0237mnopqrsuvwxyz\u03b1\u03b3\u03b5\u03b7\u03b9\u03ba\u03bc\u03bd\u03bf\u03c0\u03c1\u03c2\u03c3\u03c4\u03c5\u03c7\u03c9\u03d5\u{1d41a}\u{1d41c}\u{1d41e}\u{1d420}\u{1d426}\u{1d427}\u{1d428}\u{1d429}\u{1d42a}\u{1d42b}\u{1d42c}\u{1d42e}\u{1d42f}\u{1d430}\u{1d431}\u{1d432}\u{1d433}",xe="ABCDEFGHIJKLMNOPQRSTUVWXYZbdfhklt\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039a\u039b\u039c\u039d\u039e\u039f\u03a0\u03a1\u03a3\u03a4\u03a5\u03a6\u03a7\u03a8\u03a9\u03b2\u03b4\u03bb\u03b6\u03c6\u03b8\u03c8\u{1d400}\u{1d401}\u{1d402}\u{1d403}\u{1d404}\u{1d405}\u{1d406}\u{1d407}\u{1d408}\u{1d409}\u{1d40a}\u{1d40b}\u{1d40c}\u{1d40d}\u{1d40e}\u{1d40f}\u{1d410}\u{1d411}\u{1d412}\u{1d413}\u{1d414}\u{1d415}\u{1d416}\u{1d417}\u{1d418}\u{1d419}\u{1d41b}\u{1d41d}\u{1d41f}\u{1d421}\u{1d424}\u{1d425}\u{1d42d}",be=new Set(["\\alpha","\\gamma","\\delta","\\epsilon","\\eta","\\iota","\\kappa","\\mu","\\nu","\\pi","\\rho","\\sigma","\\tau","\\upsilon","\\chi","\\psi","\\omega","\\imath","\\jmath"]),we=new Set(["\\Gamma","\\Delta","\\Sigma","\\Omega","\\beta","\\delta","\\lambda","\\theta","\\psi"]),ye=(e,t)=>{const r=e.isStretchy?L(e):new T.MathNode("mo",[re(e.label,e.mode)]);if("\\vec"===e.label)r.style.transform="scale(0.75) translate(10%, 30%)";else if(r.style.mathStyle="normal",r.style.mathDepth="0",Ae.has(e.label)&&i.isCharacterBox(e.base)){let t="";const n=e.base.text;(ge.indexOf(n)>-1||be.has(n))&&(t="tml-xshift"),(xe.indexOf(n)>-1||we.has(n))&&(t="tml-capshift"),t&&r.classes.push(t)}e.isStretchy||r.setAttribute("stretchy","false");return new T.MathNode("\\c"===e.label?"munder":"mover",[de(e.base,t),r])},ve=new Set(["\\acute","\\grave","\\ddot","\\dddot","\\ddddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"]),Ae=new Set(["\\acute","\\bar","\\breve","\\check","\\dot","\\ddot","\\grave","\\hat","\\mathring","\\'","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v"]),Ee={"\\`":"\u0300","\\'":"\u0301","\\^":"\u0302","\\~":"\u0303","\\=":"\u0304","\\u":"\u0306","\\.":"\u0307",'\\"':"\u0308","\\r":"\u030a","\\H":"\u030b","\\v":"\u030c"};u({type:"accent",names:["\\acute","\\grave","\\ddot","\\dddot","\\ddddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\overparen","\\widecheck","\\widehat","\\wideparen","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{const r=p(t[0]),n=!ve.has(e.funcName);return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,base:r}},mathmlBuilder:ye}),u({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\c","\\u","\\.",'\\"',"\\r","\\H","\\v"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{const r=p(t[0]),n=e.parser.mode;return"math"===n&&e.parser.settings.strict&&console.log(`Temml parse error: Command ${e.funcName} is invalid in math mode.`),"text"===n&&r.text&&1===r.text.length&&e.funcName in Ee&&ge.indexOf(r.text)>-1?{type:"textord",mode:"text",text:r.text+Ee[e.funcName]}:{type:"accent",mode:n,label:e.funcName,isStretchy:!1,base:r}},mathmlBuilder:ye}),u({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underparen","\\utilde"],props:{numArgs:1},handler:({parser:e,funcName:t},r)=>{const n=r[0];return{type:"accentUnder",mode:e.mode,label:t,base:n}},mathmlBuilder:(e,t)=>{const r=L(e);r.style["math-depth"]=0;return new T.MathNode("munder",[de(e.base,t),r])}});const _e={pt:800/803,pc:9600/803,dd:1238/1157*800/803,cc:12.792133216944668,nd:685/642*800/803,nc:1370/107*800/803,sp:1/65536*800/803,mm:25.4/72,cm:2.54/72,in:1/72,px:96/72},Ce=["em","ex","mu","pt","mm","cm","in","px","bp","pc","dd","cc","nd","nc","sp"],Te=function(e){return"string"!=typeof e&&(e=e.unit),Ce.indexOf(e)>-1},qe=e=>[1,.7,.5][Math.max(e-1,0)],ke=function(e,r){let n=e.number;if(r.maxSize[0]<0&&n>0)return{number:0,unit:"em"};const a=e.unit;switch(a){case"mm":case"cm":case"in":case"px":return n*_e[a]>r.maxSize[1]?{number:r.maxSize[1],unit:"pt"}:{number:n,unit:a};case"em":case"ex":return"ex"===a&&(n*=.431),n=Math.min(n/qe(r.level),r.maxSize[0]),{number:i.round(n),unit:"em"};case"bp":return n>r.maxSize[1]&&(n=r.maxSize[1]),{number:n,unit:"pt"};case"pt":case"pc":case"dd":case"cc":case"nd":case"nc":case"sp":return n=Math.min(n*_e[a],r.maxSize[1]),{number:i.round(n),unit:"pt"};case"mu":return n=Math.min(n/18,r.maxSize[0]),{number:i.round(n),unit:"em"};default:throw new t("Invalid unit: '"+a+"'")}},Ne=e=>{const t=new T.MathNode("mspace");return t.setAttribute("width",e+"em"),t},Se=(e,t=.3,r=0,n=!1)=>{if(null==e&&0===r)return Ne(t);const a=e?[e]:[];if(0!==t&&a.unshift(Ne(t)),r>0&&a.push(Ne(r)),n){const e=new T.MathNode("mpadded",a);return e.setAttribute("height","0"),e}return new T.MathNode("mrow",a)},Me=(e,t)=>Number(e)/qe(t),Le=(e,t,r,n)=>{const a=M(e),o="eq"===e.slice(1,3),i="x"===e.charAt(1)?"1.75":"cd"===e.slice(2,4)?"3.0":o?"1.0":"2.0";a.setAttribute("lspace","0"),a.setAttribute("rspace",o?"0.5em":"0");const s=n.withLevel(n.level<2?2:3),l=Me(i,s.level),c=Me(i,3),u=Se(null,l.toFixed(4),0),d=Se(null,c.toFixed(4),0),p=Me(o?0:.3,s.level).toFixed(4);let m,h;const f=t&&t.body&&(t.body.body||t.body.length>0);if(f){let r=de(t,s);r=Se(r,p,p,"\\\\cdrightarrow"===e||"\\\\cdleftarrow"===e),m=new T.MathNode("mover",[r,d])}const g=r&&r.body&&(r.body.body||r.body.length>0);if(g){let e=de(r,s);e=Se(e,p,p),h=new T.MathNode("munder",[e,d])}let x;return x=f||g?f&&g?new T.MathNode("munderover",[a,h,m]):f?new T.MathNode("mover",[a,m]):new T.MathNode("munder",[a,h]):new T.MathNode("mover",[a,u]),"3.0"===i&&(x.style.height="1em"),x.setAttribute("accent","false"),x};u({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\yields","\\yieldsLeft","\\mesomerism","\\longrightharpoonup","\\longleftharpoondown","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:({parser:e,funcName:t},r,n)=>({type:"xArrow",mode:e.mode,name:t,body:r[0],below:n[0]}),mathmlBuilder(e,t){const r=[Le(e.name,e.body,e.below,t)];return r.unshift(Ne(.2778)),r.push(Ne(.2778)),new T.MathNode("mrow",r)}});const Oe={"\\xtofrom":["\\xrightarrow","\\xleftarrow"],"\\xleftrightharpoons":["\\xleftharpoonup","\\xrightharpoondown"],"\\xrightleftharpoons":["\\xrightharpoonup","\\xleftharpoondown"],"\\yieldsLeftRight":["\\yields","\\yieldsLeft"],"\\equilibrium":["\\longrightharpoonup","\\longleftharpoondown"],"\\equilibriumRight":["\\longrightharpoonup","\\eqleftharpoondown"],"\\equilibriumLeft":["\\eqrightharpoonup","\\longleftharpoondown"]};u({type:"stackedArrow",names:["\\xtofrom","\\xleftrightharpoons","\\xrightleftharpoons","\\yieldsLeftRight","\\equilibrium","\\equilibriumRight","\\equilibriumLeft"],props:{numArgs:1,numOptionalArgs:1},handler({parser:e,funcName:t},r,n){const a=r[0]?{type:"hphantom",mode:e.mode,body:r[0]}:null,o=n[0]?{type:"hphantom",mode:e.mode,body:n[0]}:null;return{type:"stackedArrow",mode:e.mode,name:t,body:r[0],upperArrowBelow:o,lowerArrowBody:a,below:n[0]}},mathmlBuilder(e,t){const r=Oe[e.name][0],n=Oe[e.name][1],a=Le(r,e.body,e.upperArrowBelow,t),o=Le(n,e.lowerArrowBody,e.below,t);let i;const s=new T.MathNode("mpadded",[a]);if(s.setAttribute("voffset","0.3em"),s.setAttribute("height","+0.3em"),s.setAttribute("depth","-0.3em"),"\\equilibriumLeft"===e.name){const e=new T.MathNode("mpadded",[o]);e.setAttribute("width","0.5em"),i=new T.MathNode("mpadded",[Ne(.2778),e,s,Ne(.2778)])}else s.setAttribute("width","\\equilibriumRight"===e.name?"0.5em":"0"),i=new T.MathNode("mpadded",[Ne(.2778),s,o,Ne(.2778)]);return i.setAttribute("voffset","-0.18em"),i.setAttribute("height","-0.18em"),i.setAttribute("depth","+0.18em"),i}});const De={};function Be({type:e,names:t,props:r,handler:n,mathmlBuilder:a}){const o={type:e,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n};for(let e=0;e<t.length;++e)De[t[e]]=o;a&&(c[e]=a)}function Fe(e,t){if(!e||e.type!==t)throw new Error(`Expected node of type ${t}, but got `+(e?`node of type ${e.type}`:String(e)));return e}function $e(e){const t=Ie(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?`node of type ${e.type}`:String(e)));return t}function Ie(e){return e&&("atom"===e.type||Object.prototype.hasOwnProperty.call(D,e.type))?e:null}const Pe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Re=e=>"textord"===e.type&&"@"===e.text;function je(e,t,r){const n=Pe[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{const e={type:"atom",text:n,mode:"math",family:"rel"},a={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[e],[]),r.callFunction("\\\\cdright",[t[1]],[])],semisimple:!0};return r.callFunction("\\\\cdparent",[a],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{const e={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[e],[])}default:return{type:"textord",text:" ",mode:"math"}}}u({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:({parser:e,funcName:t},r)=>({type:"cdlabel",mode:e.mode,side:t.slice(4),label:r[0]}),mathmlBuilder(e,t){if(0===e.label.body.length)return new T.MathNode("mrow",t);const r=new T.MathNode("mtd",[de(e.label,t)]);r.style.padding="0";const n=new T.MathNode("mtr",[r]),a=new T.MathNode("mtable",[n]),o=new T.MathNode("mpadded",[a]);return o.setAttribute("width","0"),o.setAttribute("displaystyle","false"),o.setAttribute("scriptlevel","1"),"left"===e.side&&(o.style.display="flex",o.style.justifyContent="flex-end"),o}}),u({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:({parser:e},t)=>({type:"cdlabelparent",mode:e.mode,fragment:t[0]}),mathmlBuilder:(e,t)=>new T.MathNode("mrow",[de(e.fragment,t)])});const ze=e=>({type:"ordgroup",mode:"math",body:e,semisimple:!0}),Ue=(e,t)=>({type:t,mode:"math",body:ze(e)});class Ge{constructor(e,t,r){this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new Ge(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class He{constructor(e,t){this.text=e,this.loc=t}range(e,t){return new He(t,Ge.range(this,e))}}const Ve=0,We=1,Xe=2,Ze=3,Ye={};function Je(e,t){Ye[e]=t}const Ke=Ye;Je("\\noexpand",(function(e){const t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),Je("\\expandafter",(function(e){const t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),Je("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),Je("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),Je("\\@ifnextchar",(function(e){const t=e.consumeArgs(3);e.consumeSpaces();const r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),Je("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Je("\\TextOrMath",(function(e){const t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));const Qe=e=>{let t="";for(let r=e.length-1;r>-1;r--)t+=e[r].text;return t},et={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},tt=e=>{const t=e.future().text;return"EOF"===t?[null,""]:[et[t.charAt(0)],t]},rt=(e,t,r)=>{for(let n=1;n<t.length;n++){e*=r,e+=et[t.charAt(n)]}return e};function nt(e){const t=e.consumeArgs(1)[0];let r="",n=t[t.length-1].loc.start;for(let e=t.length-1;e>=0;e--){const a=t[e].loc.start;a>n&&(r+=" ",n=a),r+=t[e].text,n+=t[e].text.length}return r}Je("\\char",(function(e){let r,n=e.popToken(),a="";if("'"===n.text)r=8,n=e.popToken();else if('"'===n.text)r=16,n=e.popToken();else if("`"===n.text)if(n=e.popToken(),"\\"===n.text[0])a=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new t("\\char` missing argument");a=n.text.charCodeAt(0)}else r=10;if(r){let o,i=n.text;if(a=et[i.charAt(0)],null==a||a>=r)throw new t(`Invalid base-${r} digit ${n.text}`);for(a=rt(a,i,r),[o,i]=tt(e);null!=o&&o<r;)a*=r,a+=o,a=rt(a,i,r),e.popToken(),[o,i]=tt(e)}return`\\@char{${a}}`})),Je("\\surd","\\sqrt{\\vphantom{|}}"),Je("\u2295","\\oplus"),Je("\\long",""),Je("\\bgroup","{"),Je("\\egroup","}"),Je("~","\\nobreakspace"),Je("\\lq","`"),Je("\\rq","'"),Je("\\aa","\\r a"),Je("\\Bbbk","\\Bbb{k}"),Je("\\mathstrut","\\vphantom{(}"),Je("\\underbar","\\underline{\\text{#1}}"),Je("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),Je("\u22ee","\\vdots"),Je("\\arraystretch","1"),Je("\\arraycolsep","6pt"),Je("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Je("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Je("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Je("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");const at={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcap":"\\dotsb","\\bigsqcup":"\\dotsb","\\bigtimes":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Je("\\dots",(function(e){let t="\\dotso";const r=e.expandAfterFuture().text;return r in at?t=at[r]:("\\not"===r.slice(0,4)||r in B.math&&["bin","rel"].includes(B.math[r].group))&&(t="\\dotsb"),t}));const ot={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Je("\\dotso",(function(e){return e.future().text in ot?"\\ldots\\,":"\\ldots"})),Je("\\dotsc",(function(e){const t=e.future().text;return t in ot&&","!==t?"\\ldots\\,":"\\ldots"})),Je("\\cdots",(function(e){return e.future().text in ot?"\\@cdots\\,":"\\@cdots"})),Je("\\dotsb","\\cdots"),Je("\\dotsm","\\cdots"),Je("\\dotsi","\\!\\cdots"),Je("\\idotsint","\\dotsi"),Je("\\dotsx","\\ldots\\,"),Je("\\DOTSI","\\relax"),Je("\\DOTSB","\\relax"),Je("\\DOTSX","\\relax"),Je("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Je("\\,","{\\tmspace+{3mu}{.1667em}}"),Je("\\thinspace","\\,"),Je("\\>","\\mskip{4mu}"),Je("\\:","{\\tmspace+{4mu}{.2222em}}"),Je("\\medspace","\\:"),Je("\\;","{\\tmspace+{5mu}{.2777em}}"),Je("\\thickspace","\\;"),Je("\\!","{\\tmspace-{3mu}{.1667em}}"),Je("\\negthinspace","\\!"),Je("\\negmedspace","{\\tmspace-{4mu}{.2222em}}"),Je("\\negthickspace","{\\tmspace-{5mu}{.277em}}"),Je("\\enspace","\\kern.5em "),Je("\\enskip","\\hskip.5em\\relax"),Je("\\quad","\\hskip1em\\relax"),Je("\\qquad","\\hskip2em\\relax"),Je("\\AA","\\TextOrMath{\\Angstrom}{\\mathring{A}}\\relax"),Je("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Je("\\tag@paren","\\tag@literal{({#1})}"),Je("\\tag@literal",(e=>{if(e.macros.get("\\df@tag"))throw new t("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Je("\\notag","\\nonumber"),Je("\\nonumber","\\gdef\\@eqnsw{0}"),Je("\\bmod","\\mathbin{\\text{mod}}"),Je("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Je("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Je("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Je("\\newline","\\\\\\relax"),Je("\\TeX","\\textrm{T}\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125em\\textrm{X}"),Je("\\LaTeX","\\textrm{L}\\kern-.35em\\raisebox{0.2em}{\\scriptstyle A}\\kern-.15em\\TeX"),Je("\\Temml","\\textrm{T}\\kern-0.2em\\lower{0.2em}{\\textrm{E}}\\kern-0.08em{\\textrm{M}\\kern-0.08em\\raise{0.2em}\\textrm{M}\\kern-0.08em\\textrm{L}}"),Je("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Je("\\@hspace","\\hskip #1\\relax"),Je("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Je("\\colon",'\\mathpunct{\\char"3a}'),Je("\\prescript","\\pres@cript{_{#1}^{#2}}{}{#3}"),Je("\\ordinarycolon",'\\char"3a'),Je("\\vcentcolon","\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}}"),Je("\\coloneq",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"2212}'),Je("\\Coloneq",'\\mathrel{\\char"2237\\char"2212}'),Je("\\Eqqcolon",'\\mathrel{\\char"3d\\char"2237}'),Je("\\Eqcolon",'\\mathrel{\\char"2212\\char"2237}'),Je("\\colonapprox",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"2248}'),Je("\\Colonapprox",'\\mathrel{\\char"2237\\char"2248}'),Je("\\colonsim",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"223c}'),Je("\\Colonsim",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"223c}'),Je("\\ratio","\\vcentcolon"),Je("\\coloncolon","\\dblcolon"),Je("\\colonequals","\\coloneqq"),Je("\\coloncolonequals","\\Coloneqq"),Je("\\equalscolon","\\eqqcolon"),Je("\\equalscoloncolon","\\Eqqcolon"),Je("\\colonminus","\\coloneq"),Je("\\coloncolonminus","\\Coloneq"),Je("\\minuscolon","\\eqcolon"),Je("\\minuscoloncolon","\\Eqcolon"),Je("\\coloncolonapprox","\\Colonapprox"),Je("\\coloncolonsim","\\Colonsim"),Je("\\notni","\\mathrel{\\char`\u220c}"),Je("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Je("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Je("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Je("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Je("\\varlimsup","\\DOTSB\\operatorname*{\\overline{\\text{lim}}}"),Je("\\varliminf","\\DOTSB\\operatorname*{\\underline{\\text{lim}}}"),Je("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{\\text{lim}}}"),Je("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{\\text{lim}}}"),Je("\\centerdot","{\\medspace\\rule{0.167em}{0.189em}\\medspace}"),Je("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Je("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Je("\\plim","\\DOTSB\\operatorname*{plim}"),Je("\\leftmodels","\\mathop{\\reflectbox{$\\models$}}"),Je("\\bra","\\mathinner{\\langle{#1}|}"),Je("\\ket","\\mathinner{|{#1}\\rangle}"),Je("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Je("\\Bra","\\left\\langle#1\\right|"),Je("\\Ket","\\left|#1\\right\\rangle");const it=(e,t)=>{const r=`}\\,\\middle${"|"===t[0]?"\\vert":"\\Vert"}\\,{`;return e.slice(0,t.index)+r+e.slice(t.index+t[0].length)};Je("\\Braket",(function(e){let t=nt(e);const r=/\|\||\||\\\|/g;let n;for(;null!==(n=r.exec(t));)t=it(t,n);return"\\left\\langle{"+t+"}\\right\\rangle"})),Je("\\Set",(function(e){let t=nt(e);const r=/\|\||\||\\\|/.exec(t);return r&&(t=it(t,r)),"\\left\\{\\:{"+t+"}\\:\\right\\}"})),Je("\\set",(function(e){return"\\{{"+nt(e).replace(/\|/,"}\\mid{")+"}\\}"})),Je("\\angln","{\\angl n}"),Je("\\odv","\\@ifstar\\odv@next\\odv@numerator"),Je("\\odv@numerator","\\frac{\\mathrm{d}#1}{\\mathrm{d}#2}"),Je("\\odv@next","\\frac{\\mathrm{d}}{\\mathrm{d}#2}#1"),Je("\\pdv","\\@ifstar\\pdv@next\\pdv@numerator");const st=e=>{const t=e[0][0].text,r=Qe(e[1]).split(","),n=String(r.length),a="1"===n?"\\partial":`\\partial^${n}`;let o="";return r.map((e=>{o+="\\partial "+e.trim()+"\\,"})),[t,a,o.replace(/\\,$/,"")]};Je("\\pdv@numerator",(function(e){const[t,r,n]=st(e.consumeArgs(2));return`\\frac{${r} ${t}}{${n}}`})),Je("\\pdv@next",(function(e){const[t,r,n]=st(e.consumeArgs(2));return`\\frac{${r}}{${n}} ${t}`})),Je("\\upalpha","\\up@greek{\\alpha}"),Je("\\upbeta","\\up@greek{\\beta}"),Je("\\upgamma","\\up@greek{\\gamma}"),Je("\\updelta","\\up@greek{\\delta}"),Je("\\upepsilon","\\up@greek{\\epsilon}"),Je("\\upzeta","\\up@greek{\\zeta}"),Je("\\upeta","\\up@greek{\\eta}"),Je("\\uptheta","\\up@greek{\\theta}"),Je("\\upiota","\\up@greek{\\iota}"),Je("\\upkappa","\\up@greek{\\kappa}"),Je("\\uplambda","\\up@greek{\\lambda}"),Je("\\upmu","\\up@greek{\\mu}"),Je("\\upnu","\\up@greek{\\nu}"),Je("\\upxi","\\up@greek{\\xi}"),Je("\\upomicron","\\up@greek{\\omicron}"),Je("\\uppi","\\up@greek{\\pi}"),Je("\\upalpha","\\up@greek{\\alpha}"),Je("\\uprho","\\up@greek{\\rho}"),Je("\\upsigma","\\up@greek{\\sigma}"),Je("\\uptau","\\up@greek{\\tau}"),Je("\\upupsilon","\\up@greek{\\upsilon}"),Je("\\upphi","\\up@greek{\\phi}"),Je("\\upchi","\\up@greek{\\chi}"),Je("\\uppsi","\\up@greek{\\psi}"),Je("\\upomega","\\up@greek{\\omega}"),Je("\\invamp",'\\mathbin{\\char"214b}'),Je("\\parr",'\\mathbin{\\char"214b}'),Je("\\with",'\\mathbin{\\char"26}'),Je("\\multimapinv",'\\mathrel{\\char"27dc}'),Je("\\multimapboth",'\\mathrel{\\char"29df}'),Je("\\scoh",'{\\mkern5mu\\char"2322\\mkern5mu}'),Je("\\sincoh",'{\\mkern5mu\\char"2323\\mkern5mu}'),Je("\\coh",'{\\mkern5mu\\rule{}{0.7em}\\mathrlap{\\smash{\\raise2mu{\\char"2322}}}\n{\\smash{\\lower4mu{\\char"2323}}}\\mkern5mu}'),Je("\\incoh",'{\\mkern5mu\\rule{}{0.7em}\\mathrlap{\\smash{\\raise2mu{\\char"2323}}}\n{\\smash{\\lower4mu{\\char"2322}}}\\mkern5mu}'),Je("\\standardstate","\\text{\\tiny\\char`\u29b5}"),Je("\\ce",(function(e){return lt(e.consumeArgs(1)[0],"ce")})),Je("\\pu",(function(e){return lt(e.consumeArgs(1)[0],"pu")})),Je("\\uniDash","{\\rule{0.672em}{0.06em}}"),Je("\\triDash","{\\rule{0.15em}{0.06em}\\kern2mu\\rule{0.15em}{0.06em}\\kern2mu\\rule{0.15em}{0.06em}}"),Je("\\tripleDash","\\kern0.075em\\raise0.25em{\\triDash}\\kern0.075em"),Je("\\tripleDashOverLine","\\kern0.075em\\mathrlap{\\raise0.125em{\\uniDash}}\\raise0.34em{\\triDash}\\kern0.075em"),Je("\\tripleDashOverDoubleLine","\\kern0.075em\\mathrlap{\\mathrlap{\\raise0.48em{\\triDash}}\\raise0.27em{\\uniDash}}{\\raise0.05em{\\uniDash}}\\kern0.075em"),Je("\\tripleDashBetweenDoubleLine","\\kern0.075em\\mathrlap{\\mathrlap{\\raise0.48em{\\uniDash}}\\raise0.27em{\\triDash}}{\\raise0.05em{\\uniDash}}\\kern0.075em");var lt=function(e,t){for(var r="",n=e.length&&e[e.length-1].loc.start,a=e.length-1;a>=0;a--)e[a].loc.start>n&&(r+=" ",n=e[a].loc.start),r+=e[a].text,n+=e[a].text.length;return ut.go(ct.go(r,t))},ct={go:function(e,t){if(!e)return[];void 0===t&&(t="ce");var r,n="0",a={};a.parenthesisLevel=0,e=(e=(e=e.replace(/\n/g," ")).replace(/[\u2212\u2013\u2014\u2010]/g,"-")).replace(/[\u2026]/g,"...");for(var o=10,i=[];;){r!==e?(o=10,r=e):o--;var s=ct.stateMachines[t],l=s.transitions[n]||s.transitions["*"];e:for(var c=0;c<l.length;c++){var u=ct.patterns.match_(l[c].pattern,e);if(u){for(var d=l[c].task,p=0;p<d.action_.length;p++){var m;if(s.actions[d.action_[p].type_])m=s.actions[d.action_[p].type_](a,u.match_,d.action_[p].option);else{if(!ct.actions[d.action_[p].type_])throw["MhchemBugA","mhchem bug A. Please report. ("+d.action_[p].type_+")"];m=ct.actions[d.action_[p].type_](a,u.match_,d.action_[p].option)}ct.concatArray(i,m)}if(n=d.nextState||n,!(e.length>0))return i;if(d.revisit||(e=u.remainder),!d.toContinue)break e}}if(o<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Array.isArray(t))for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:([eE]|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return t&&t[0]?{match_:t.splice(1),remainder:e.substr(t[0].length)}:null},"(-)(9)^(-9)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return t&&t[0]?{match_:t.splice(1),remainder:e.substr(t[0].length)}:null},"state of aggregation $":function(e){var t=ct.patterns.findObserveGroups(e,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(t&&t.remainder.match(/^($|[\s,;\)\]\}])/))return t;var r=e.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return r?{match_:r[0],remainder:e.substr(r[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(e){return ct.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return ct.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return ct.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e){return ct.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return ct.patterns.findObserveGroups(e,"_{","","","}")},"_($...$)":function(e){return ct.patterns.findObserveGroups(e,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return ct.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e){return ct.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(e){return ct.patterns.findObserveGroups(e,"","{","}","")},"{(...)}":function(e){return ct.patterns.findObserveGroups(e,"{","","","}")},"$...$":function(e){return ct.patterns.findObserveGroups(e,"","$","$","")},"${(...)}$":function(e){return ct.patterns.findObserveGroups(e,"${","","","}$")},"$(...)$":function(e){return ct.patterns.findObserveGroups(e,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return ct.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return ct.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return ct.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return ct.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return ct.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return ct.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return ct.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return ct.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return ct.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return ct.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return ct.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return ct.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/))return{match_:t[0],remainder:e.substr(t[0].length)};var r=ct.patterns.findObserveGroups(e,"","$","$","");return r&&(t=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/))?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,r,n,a,o,i,s,l,c){var u=function(e,t){if("string"==typeof t)return 0!==e.indexOf(t)?null:t;var r=e.match(t);return r?r[0]:null},d=u(e,t);if(null===d)return null;if(e=e.substr(d.length),null===(d=u(e,r)))return null;var p=function(e,t,r){for(var n=0;t<e.length;){var a=e.charAt(t),o=u(e.substr(t),r);if(null!==o&&0===n)return{endMatchBegin:t,endMatchEnd:t+o.length};if("{"===a)n++;else if("}"===a){if(0===n)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];n--}t++}return null}(e,d.length,n||a);if(null===p)return null;var m=e.substring(0,n?p.endMatchEnd:p.endMatchBegin);if(o||i){var h=this.findObserveGroups(e.substr(p.endMatchEnd),o,i,s,l);if(null===h)return null;var f=[m,h.match_];return{match_:c?f.join(""):f,remainder:h.remainder}}return{match_:m,remainder:e.substr(p.endMatchEnd)}},match_:function(e,t){var r=ct.patterns.patterns[e];if(void 0===r)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if("function"==typeof r)return ct.patterns.patterns[e](t);var n=t.match(r);return n?{match_:n[2]?[n[1],n[2]]:n[1]?n[1]:n[0],remainder:t.substr(n[0].length)}:null}},actions:{"a=":function(e,t){e.a=(e.a||"")+t},"b=":function(e,t){e.b=(e.b||"")+t},"p=":function(e,t){e.p=(e.p||"")+t},"o=":function(e,t){e.o=(e.o||"")+t},"q=":function(e,t){e.q=(e.q||"")+t},"d=":function(e,t){e.d=(e.d||"")+t},"rm=":function(e,t){e.rm=(e.rm||"")+t},"text=":function(e,t){e.text_=(e.text_||"")+t},insert:function(e,t,r){return{type_:r}},"insert+p1":function(e,t,r){return{type_:r,p1:t}},"insert+p1+p2":function(e,t,r){return{type_:r,p1:t[0],p2:t[1]}},copy:function(e,t){return t},rm:function(e,t){return{type_:"rm",p1:t||""}},text:function(e,t){return ct.go(t,"text")},"{text}":function(e,t){var r=["{"];return ct.concatArray(r,ct.go(t,"text")),r.push("}"),r},"tex-math":function(e,t){return ct.go(t,"tex-math")},"tex-math tight":function(e,t){return ct.go(t,"tex-math tight")},bond:function(e,t,r){return{type_:"bond",kind_:r||t}},"color0-output":function(e,t){return{type_:"color0",color:t[0]}},ce:function(e,t){return ct.go(t)},"1/2":function(e,t){var r=[];t.match(/^[+\-]/)&&(r.push(t.substr(0,1)),t=t.substr(1));var n=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return n[1]=n[1].replace(/\$/g,""),r.push({type_:"frac",p1:n[1],p2:n[2]}),n[3]&&(n[3]=n[3].replace(/\$/g,""),r.push({type_:"tex-math",p1:n[3]})),r},"9,9":function(e,t){return ct.go(t,"9,9")}},createTransitions:function(e){var t,r,n,a,o={};for(t in e)for(r in e[t])for(n=r.split("|"),e[t][r].stateArray=n,a=0;a<n.length;a++)o[n[a]]=[];for(t in e)for(r in e[t])for(n=e[t][r].stateArray||[],a=0;a<n.length;a++){var i=e[t][r];if(i.action_){i.action_=[].concat(i.action_);for(var s=0;s<i.action_.length;s++)"string"==typeof i.action_[s]&&(i.action_[s]={type_:i.action_[s]})}else i.action_=[];for(var l=t.split("|"),c=0;c<l.length;c++)if("*"===n[a])for(var u in o)o[u].push({pattern:l[c],task:i});else o[n[a]].push({pattern:l[c],task:i})}return o},stateMachines:{}};ct.stateMachines={ce:{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var r;if((e.d||"").match(/^[0-9]+$/)){var n=e.d;e.d=void 0,r=this.output(e),e.b=n}else r=this.output(e);return ct.actions["o="](e,t),r},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var r=[];return ct.concatArray(r,this.output(e)),ct.concatArray(r,ct.actions.bond(e,t,"-")),r}e.d=t},"- after o/d":function(e,t,r){var n=ct.patterns.match_("orbital",e.o||""),a=ct.patterns.match_("one lowercase greek letter $",e.o||""),o=ct.patterns.match_("one lowercase latin letter $",e.o||""),i=ct.patterns.match_("$one lowercase latin letter$ $",e.o||""),s="-"===t&&(n&&""===n.remainder||a||o||i);!s||e.a||e.b||e.p||e.d||e.q||n||!o||(e.o="$"+e.o+"$");var l=[];return s?(ct.concatArray(l,this.output(e)),l.push({type_:"hyphen"})):(n=ct.patterns.match_("digits",e.d||""),r&&n&&""===n.remainder?(ct.concatArray(l,ct.actions["d="](e,t)),ct.concatArray(l,this.output(e))):(ct.concatArray(l,this.output(e)),ct.concatArray(l,ct.actions.bond(e,t,"-")))),l},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:ct.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,"");return r!==t&&0===e.parenthesisLevel?{type_:"comma enumeration L",p1:r}:{type_:"comma enumeration M",p1:r}},output:function(e,t,r){var n,a,o;e.r?(a="M"===e.rdt?ct.go(e.rd,"tex-math"):"T"===e.rdt?[{type_:"text",p1:e.rd||""}]:ct.go(e.rd),o="M"===e.rqt?ct.go(e.rq,"tex-math"):"T"===e.rqt?[{type_:"text",p1:e.rq||""}]:ct.go(e.rq),n={type_:"arrow",r:e.r,rd:a,rq:o}):(n=[],(e.a||e.b||e.p||e.o||e.q||e.d||r)&&(e.sb&&n.push({type_:"entitySkip"}),e.o||e.q||e.d||e.b||e.p||2===r?e.o||e.q||e.d||!e.b&&!e.p?e.o&&"kv"===e.dType&&ct.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&"kv"===e.dType&&!e.q&&(e.dType=void 0):(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):(e.o=e.a,e.a=void 0),n.push({type_:"chemfive",a:ct.go(e.a,"a"),b:ct.go(e.b,"bd"),p:ct.go(e.p,"pq"),o:ct.go(e.o,"o"),q:ct.go(e.q,"pq"),d:ct.go(e.d,"oxidation"===e.dType?"oxidation":"bd"),dType:e.dType})));for(var i in e)"parenthesisLevel"!==i&&"beginsWithBond"!==i&&delete e[i];return n},"oxidation-output":function(e,t){var r=["{"];return ct.concatArray(r,ct.go(t,"oxidation")),r.push("}"),r},"frac-output":function(e,t){return{type_:"frac-ce",p1:ct.go(t[0]),p2:ct.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:ct.go(t[0]),p2:ct.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:ct.go(t[0]),p2:ct.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:ct.go(t[0]),p2:ct.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:ct.go(t[1])}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,r){return{type_:"operator",kind_:r||t}}}},a:{transitions:ct.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:ct.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var r in e)delete e[r];return t}}}},pq:{transitions:ct.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:ct.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:ct.go(t[1],"pq")}}}},bd:{transitions:ct.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:ct.go(t[1],"bd")}}}},oxidation:{transitions:ct.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t||""}}}},"tex-math":{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"tex-math tight":{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"9,9":{transitions:ct.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var r=[];return"+-"===t[0]||"+/-"===t[0]?r.push("\\pm "):t[0]&&r.push(t[0]),t[1]&&(ct.concatArray(r,ct.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?ct.concatArray(r,ct.go(t[2],"pu-9,9")):r.push(t[2])),t[3]=t[4]||t[3],t[3]&&(t[3]=t[3].trim(),"e"===t[3]||"*"===t[3].substr(0,1)?r.push({type_:"cdot"}):r.push({type_:"times"}))),t[3]&&r.push("10^{"+t[5]+"}"),r},"number^":function(e,t){var r=[];return"+-"===t[0]||"+/-"===t[0]?r.push("\\pm "):t[0]&&r.push(t[0]),ct.concatArray(r,ct.go(t[1],"pu-9,9")),r.push("^{"+t[2]+"}"),r},operator:function(e,t,r){return{type_:"operator",kind_:r||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,r=ct.patterns.match_("{(...)}",e.d||"");r&&""===r.remainder&&(e.d=r.match_);var n=ct.patterns.match_("{(...)}",e.q||"");if(n&&""===n.remainder&&(e.q=n.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var a={d:ct.go(e.d,"pu"),q:ct.go(e.q,"pu")};"//"===e.o?t={type_:"pu-frac",p1:a.d,p2:a.q}:(t=a.d,a.d.length>1||a.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),ct.concatArray(t,a.q))}else t=ct.go(e.d,"pu-2");for(var o in e)delete e[o];return t}}},"pu-2":{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var r=ct.patterns.match_("{(...)}",e.rm||"");t=r&&""===r.remainder?ct.go(r.match_,"pu"):{type_:"rm",p1:e.rm}}for(var n in e)delete e[n];return t}}},"pu-9,9":{transitions:ct.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var r=e.text_.length%3;0===r&&(r=3);for(var n=e.text_.length-3;n>0;n-=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,r)),t.reverse()}else t.push(e.text_);for(var a in e)delete e[a];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var r=e.text_.length-3,n=0;n<r;n+=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(n))}else t.push(e.text_);for(var a in e)delete e[a];return t}}}};var ut={go:function(e,t){if(!e)return"";for(var r="",n=!1,a=0;a<e.length;a++){var o=e[a];"string"==typeof o?r+=o:(r+=ut._go2(o),"1st-level escape"===o.type_&&(n=!0))}return t||n||!r||(r="{"+r+"}"),r},_goInner:function(e){return e?ut.go(e,!0):e},_go2:function(e){var t;switch(e.type_){case"chemfive":t="";var r={a:ut._goInner(e.a),b:ut._goInner(e.b),p:ut._goInner(e.p),o:ut._goInner(e.o),q:ut._goInner(e.q),d:ut._goInner(e.d)};r.a&&(r.a.match(/^[+\-]/)&&(r.a="{"+r.a+"}"),t+=r.a+"\\,"),(r.b||r.p)&&(t+="{\\vphantom{X}}",t+="^{\\hphantom{"+(r.b||"")+"}}_{\\hphantom{"+(r.p||"")+"}}",t+="{\\vphantom{X}}",t+="^{\\vphantom{2}\\mathllap{"+(r.b||"")+"}}",t+="_{\\vphantom{2}\\mathllap{"+(r.p||"")+"}}"),r.o&&(r.o.match(/^[+\-]/)&&(r.o="{"+r.o+"}"),t+=r.o),"kv"===e.dType?((r.d||r.q)&&(t+="{\\vphantom{X}}"),r.d&&(t+="^{"+r.d+"}"),r.q&&(t+="_{"+r.q+"}")):"oxidation"===e.dType?(r.d&&(t+="{\\vphantom{X}}",t+="^{"+r.d+"}"),r.q&&(t+="{{}}",t+="_{"+r.q+"}")):(r.q&&(t+="{{}}",t+="_{"+r.q+"}"),r.d&&(t+="{{}}",t+="^{"+r.d+"}"));break;case"rm":case"roman numeral":t="\\mathrm{"+e.p1+"}";break;case"text":e.p1.match(/[\^_]/)?(e.p1=e.p1.replace(" ","~").replace("-","\\text{-}"),t="\\mathrm{"+e.p1+"}"):t="\\text{"+e.p1+"}";break;case"state of aggregation":t="\\mskip2mu "+ut._goInner(e.p1);break;case"state of aggregation subscript":t="\\mskip1mu "+ut._goInner(e.p1);break;case"bond":if(!(t=ut._getBond(e.kind_)))throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+e.kind_+")"];break;case"frac":var n="\\frac{"+e.p1+"}{"+e.p2+"}";t="\\mathchoice{\\textstyle"+n+"}{"+n+"}{"+n+"}{"+n+"}";break;case"pu-frac":var a="\\frac{"+ut._goInner(e.p1)+"}{"+ut._goInner(e.p2)+"}";t="\\mathchoice{\\textstyle"+a+"}{"+a+"}{"+a+"}{"+a+"}";break;case"tex-math":case"1st-level escape":t=e.p1+" ";break;case"frac-ce":t="\\frac{"+ut._goInner(e.p1)+"}{"+ut._goInner(e.p2)+"}";break;case"overset":t="\\overset{"+ut._goInner(e.p1)+"}{"+ut._goInner(e.p2)+"}";break;case"underset":t="\\underset{"+ut._goInner(e.p1)+"}{"+ut._goInner(e.p2)+"}";break;case"underbrace":t="\\underbrace{"+ut._goInner(e.p1)+"}_{"+ut._goInner(e.p2)+"}";break;case"color":t="{\\color{"+e.color1+"}{"+ut._goInner(e.color2)+"}}";break;case"color0":t="\\color{"+e.color+"}";break;case"arrow":var o={rd:ut._goInner(e.rd),rq:ut._goInner(e.rq)},i=ut._getArrow(e.r);o.rq&&(i+="[{\\rm "+o.rq+"}]"),t=i+=o.rd?"{\\rm "+o.rd+"}":"{}";break;case"operator":t=ut._getOperator(e.kind_);break;case"space":t=" ";break;case"entitySkip":case"pu-space-1":t="~";break;case"pu-space-2":t="\\mkern3mu ";break;case"1000 separator":t="\\mkern2mu ";break;case"commaDecimal":t="{,}";break;case"comma enumeration L":t="{"+e.p1+"}\\mkern6mu ";break;case"comma enumeration M":t="{"+e.p1+"}\\mkern3mu ";break;case"comma enumeration S":t="{"+e.p1+"}\\mkern1mu ";break;case"hyphen":t="\\text{-}";break;case"addition compound":t="\\,{\\cdot}\\,";break;case"electron dot":t="\\mkern1mu \\text{\\textbullet}\\mkern1mu ";break;case"KV x":t="{\\times}";break;case"prime":t="\\prime ";break;case"cdot":t="\\cdot ";break;case"tight cdot":t="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t="\\times ";break;case"circa":t="{\\sim}";break;case"^":t="uparrow";break;case"v":t="downarrow";break;case"ellipsis":t="\\ldots ";break;case"/":t="/";break;case" / ":t="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return t},_getArrow:function(e){switch(e){case"->":case"\u2192":case"\u27f6":return"\\yields";case"<-":return"\\yieldsLeft";case"<->":return"\\mesomerism";case"<--\x3e":return"\\yieldsLeftRight";case"<=>":case"\u21cc":return"\\equilibrium";case"<=>>":return"\\equilibriumRight";case"<<=>":return"\\equilibriumLeft";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":case"1":return"{-}";case"=":case"2":return"{=}";case"#":case"3":return"{\\equiv}";case"~":return"{\\tripleDash}";case"~-":return"{\\tripleDashOverLine}";case"~=":case"~--":return"{\\tripleDashOverDoubleLine}";case"-~-":return"{\\tripleDashBetweenDoubleLine}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":case"$\\approx$":return" {}\\approx{} ";case"v":case"(v)":return" \\downarrow{} ";case"^":case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function dt(e){const t=[];e.consumeSpaces();let r=e.fetch().text;for("\\relax"===r&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);"\\hline"===r||"\\hdashline"===r;)e.consume(),t.push("\\hdashline"===r),e.consumeSpaces(),r=e.fetch().text;return t}Je("\\darr","\\downarrow"),Je("\\dArr","\\Downarrow"),Je("\\Darr","\\Downarrow"),Je("\\lang","\\langle"),Je("\\rang","\\rangle"),Je("\\uarr","\\uparrow"),Je("\\uArr","\\Uparrow"),Je("\\Uarr","\\Uparrow"),Je("\\N","\\mathbb{N}"),Je("\\R","\\mathbb{R}"),Je("\\Z","\\mathbb{Z}"),Je("\\alef","\\aleph"),Je("\\alefsym","\\aleph"),Je("\\bull","\\bullet"),Je("\\clubs","\\clubsuit"),Je("\\cnums","\\mathbb{C}"),Je("\\Complex","\\mathbb{C}"),Je("\\Dagger","\\ddagger"),Je("\\diamonds","\\diamondsuit"),Je("\\empty","\\emptyset"),Je("\\exist","\\exists"),Je("\\harr","\\leftrightarrow"),Je("\\hArr","\\Leftrightarrow"),Je("\\Harr","\\Leftrightarrow"),Je("\\hearts","\\heartsuit"),Je("\\image","\\Im"),Je("\\infin","\\infty"),Je("\\isin","\\in"),Je("\\larr","\\leftarrow"),Je("\\lArr","\\Leftarrow"),Je("\\Larr","\\Leftarrow"),Je("\\lrarr","\\leftrightarrow"),Je("\\lrArr","\\Leftrightarrow"),Je("\\Lrarr","\\Leftrightarrow"),Je("\\natnums","\\mathbb{N}"),Je("\\plusmn","\\pm"),Je("\\rarr","\\rightarrow"),Je("\\rArr","\\Rightarrow"),Je("\\Rarr","\\Rightarrow"),Je("\\real","\\Re"),Je("\\reals","\\mathbb{R}"),Je("\\Reals","\\mathbb{R}"),Je("\\sdot","\\cdot"),Je("\\sect","\\S"),Je("\\spades","\\spadesuit"),Je("\\sub","\\subset"),Je("\\sube","\\subseteq"),Je("\\supe","\\supseteq"),Je("\\thetasym","\\vartheta"),Je("\\weierp","\\wp"),Je("\\quantity","{\\left\\{ #1 \\right\\}}"),Je("\\qty","{\\left\\{ #1 \\right\\}}"),Je("\\pqty","{\\left( #1 \\right)}"),Je("\\bqty","{\\left[ #1 \\right]}"),Je("\\vqty","{\\left\\vert #1 \\right\\vert}"),Je("\\Bqty","{\\left\\{ #1 \\right\\}}"),Je("\\absolutevalue","{\\left\\vert #1 \\right\\vert}"),Je("\\abs","{\\left\\vert #1 \\right\\vert}"),Je("\\norm","{\\left\\Vert #1 \\right\\Vert}"),Je("\\evaluated","{\\left.#1 \\right\\vert}"),Je("\\eval","{\\left.#1 \\right\\vert}"),Je("\\order","{\\mathcal{O} \\left( #1 \\right)}"),Je("\\commutator","{\\left[ #1 , #2 \\right]}"),Je("\\comm","{\\left[ #1 , #2 \\right]}"),Je("\\anticommutator","{\\left\\{ #1 , #2 \\right\\}}"),Je("\\acomm","{\\left\\{ #1 , #2 \\right\\}}"),Je("\\poissonbracket","{\\left\\{ #1 , #2 \\right\\}}"),Je("\\pb","{\\left\\{ #1 , #2 \\right\\}}"),Je("\\vectorbold","{\\boldsymbol{ #1 }}"),Je("\\vb","{\\boldsymbol{ #1 }}"),Je("\\vectorarrow","{\\vec{\\boldsymbol{ #1 }}}"),Je("\\va","{\\vec{\\boldsymbol{ #1 }}}"),Je("\\vectorunit","{{\\boldsymbol{\\hat{ #1 }}}}"),Je("\\vu","{{\\boldsymbol{\\hat{ #1 }}}}"),Je("\\dotproduct","\\mathbin{\\boldsymbol\\cdot}"),Je("\\vdot","{\\boldsymbol\\cdot}"),Je("\\crossproduct","\\mathbin{\\boldsymbol\\times}"),Je("\\cross","\\mathbin{\\boldsymbol\\times}"),Je("\\cp","\\mathbin{\\boldsymbol\\times}"),Je("\\gradient","{\\boldsymbol\\nabla}"),Je("\\grad","{\\boldsymbol\\nabla}"),Je("\\divergence","{\\grad\\vdot}"),Je("\\curl","{\\grad\\cross}"),Je("\\laplacian","\\nabla^2"),Je("\\tr","{\\operatorname{tr}}"),Je("\\Tr","{\\operatorname{Tr}}"),Je("\\rank","{\\operatorname{rank}}"),Je("\\erf","{\\operatorname{erf}}"),Je("\\Res","{\\operatorname{Res}}"),Je("\\principalvalue","{\\mathcal{P}}"),Je("\\pv","{\\mathcal{P}}"),Je("\\PV","{\\operatorname{P.V.}}"),Je("\\qqtext","{\\quad\\text{ #1 }\\quad}"),Je("\\qq","{\\quad\\text{ #1 }\\quad}"),Je("\\qcomma","{\\text{,}\\quad}"),Je("\\qc","{\\text{,}\\quad}"),Je("\\qcc","{\\quad\\text{c.c.}\\quad}"),Je("\\qif","{\\quad\\text{if}\\quad}"),Je("\\qthen","{\\quad\\text{then}\\quad}"),Je("\\qelse","{\\quad\\text{else}\\quad}"),Je("\\qotherwise","{\\quad\\text{otherwise}\\quad}"),Je("\\qunless","{\\quad\\text{unless}\\quad}"),Je("\\qgiven","{\\quad\\text{given}\\quad}"),Je("\\qusing","{\\quad\\text{using}\\quad}"),Je("\\qassume","{\\quad\\text{assume}\\quad}"),Je("\\qsince","{\\quad\\text{since}\\quad}"),Je("\\qlet","{\\quad\\text{let}\\quad}"),Je("\\qfor","{\\quad\\text{for}\\quad}"),Je("\\qall","{\\quad\\text{all}\\quad}"),Je("\\qeven","{\\quad\\text{even}\\quad}"),Je("\\qodd","{\\quad\\text{odd}\\quad}"),Je("\\qinteger","{\\quad\\text{integer}\\quad}"),Je("\\qand","{\\quad\\text{and}\\quad}"),Je("\\qor","{\\quad\\text{or}\\quad}"),Je("\\qas","{\\quad\\text{as}\\quad}"),Je("\\qin","{\\quad\\text{in}\\quad}"),Je("\\differential","{\\text{d}}"),Je("\\dd","{\\text{d}}"),Je("\\derivative","{\\frac{\\text{d}{ #1 }}{\\text{d}{ #2 }}}"),Je("\\dv","{\\frac{\\text{d}{ #1 }}{\\text{d}{ #2 }}}"),Je("\\partialderivative","{\\frac{\\partial{ #1 }}{\\partial{ #2 }}}"),Je("\\variation","{\\delta}"),Je("\\var","{\\delta}"),Je("\\functionalderivative","{\\frac{\\delta{ #1 }}{\\delta{ #2 }}}"),Je("\\fdv","{\\frac{\\delta{ #1 }}{\\delta{ #2 }}}"),Je("\\innerproduct","{\\left\\langle {#1} \\mid { #2} \\right\\rangle}"),Je("\\outerproduct","{\\left\\vert { #1 } \\right\\rangle\\left\\langle { #2} \\right\\vert}"),Je("\\dyad","{\\left\\vert { #1 } \\right\\rangle\\left\\langle { #2} \\right\\vert}"),Je("\\ketbra","{\\left\\vert { #1 } \\right\\rangle\\left\\langle { #2} \\right\\vert}"),Je("\\op","{\\left\\vert { #1 } \\right\\rangle\\left\\langle { #2} \\right\\vert}"),Je("\\expectationvalue","{\\left\\langle {#1 } \\right\\rangle}"),Je("\\expval","{\\left\\langle {#1 } \\right\\rangle}"),Je("\\ev","{\\left\\langle {#1 } \\right\\rangle}"),Je("\\matrixelement","{\\left\\langle{ #1 }\\right\\vert{ #2 }\\left\\vert{#3}\\right\\rangle}"),Je("\\matrixel","{\\left\\langle{ #1 }\\right\\vert{ #2 }\\left\\vert{#3}\\right\\rangle}"),Je("\\mel","{\\left\\langle{ #1 }\\right\\vert{ #2 }\\left\\vert{#3}\\right\\rangle}");const pt=e=>{if(!e.parser.settings.displayMode)throw new t(`{${e.envName}} can be used only in display mode.`)},mt=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/,ht=e=>{let t=e.get("\\arraystretch");"string"!=typeof t&&(t=Qe(t.tokens)),t=isNaN(t)?null:Number(t);let r=e.get("\\arraycolsep");"string"!=typeof r&&(r=Qe(r.tokens));const n=mt.exec(r);return[t,n?{number:+(n[1]+n[2]),unit:n[3]}:null]},ft=e=>{let r="";for(let n=0;n<e.length;n++)if("label"===e[n].type){if(r)throw new t("Multiple \\labels in one row");r=e[n].string}return r};function gt(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function xt(e,{cols:r,envClasses:n,autoTag:a,singleRow:o,emptySingleRow:i,maxNumCols:s,leqno:l,arraystretch:c,arraycolsep:u},d){const p=n&&n.includes("bordermatrix")?"}":"\\end";e.gullet.beginGroup(),o||e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();let m=[];const h=[m],f=[],g=[],x=[],b=null!=a?[]:void 0;function w(){a&&e.gullet.macros.set("\\@eqnsw","1",!0)}function y(){b&&(e.gullet.macros.get("\\df@tag")?(b.push(e.subparse([new He("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):b.push(Boolean(a)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(w(),x.push(dt(e));;){let r=e.parseExpression(!1,o?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),r={type:"ordgroup",mode:e.mode,body:r,semisimple:!0},m.push(r);const a=e.fetch().text;if("&"===a){if(s&&m.length===s){if(!n.includes("array"))throw new t(2===s?"The split environment accepts no more than two columns":"The equation environment accepts only one column",e.nextToken);if(e.settings.strict)throw new t("Too few columns specified in the {array} column argument.",e.nextToken)}e.consume()}else{if(a===p){y(),1===m.length&&0===r.body.length&&(h.length>1||!i)&&h.pop(),g.push(ft(r.body)),x.length<h.length+1&&x.push([]);break}if("\\\\"!==a)throw new t("Expected & or \\\\ or \\cr or "+p,e.nextToken);{let t;e.consume()," "!==e.gullet.future().text&&(t=e.parseSizeGroup(!0)),f.push(t?t.value:null),y(),g.push(ft(r.body)),x.push(dt(e)),m=[],h.push(m),w()}}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,body:h,cols:r,rowGaps:f,hLinesBeforeRow:x,envClasses:n,autoTag:a,scriptLevel:d,tags:b,labels:g,leqno:l,arraystretch:c,arraycolsep:u}}function bt(e){return"d"===e.slice(0,1)?"display":"text"}const wt={c:"center ",l:"left ",r:"right "},yt=e=>{const t=new T.MathNode("mtd",[]);return t.style={padding:"0",width:"50%"},e.envClasses.includes("multline")&&(t.style.width="7.5%"),t},vt=function(e,t){const r=[],n=e.body.length,a=e.hLinesBeforeRow;for(let o=0;o<n;o++){const i=e.body[o],s=[],l="text"===e.scriptLevel?We:"script"===e.scriptLevel?Xe:Ve;for(let r=0;r<i.length;r++){const a=new T.MathNode("mtd",[de(i[r],t.withLevel(l))]);if(e.envClasses.includes("multline")){const e=0===o?"left":o===n-1?"right":"center";a.setAttribute("columnalign",e),"center"!==e&&a.classes.push("tml-"+e)}s.push(a)}const c=e.body[0].length;for(let e=0;e<c-i.length;e++)s.push(new T.MathNode("mtd",[],t));if(e.autoTag){const r=e.tags[o];let n;!0===r?n=new T.MathNode("mtext",[new w(["tml-eqn"])]):!1===r?n=new T.MathNode("mtext",[],[]):(n=ue(r[0].body,t.withLevel(l),!0),n=ae(n),n.classes=["tml-tag"]),n&&(s.unshift(yt(e)),s.push(yt(e)),e.leqno?(s[0].children.push(n),s[0].classes.push("tml-left")):(s[s.length-1].children.push(n),s[s.length-1].classes.push("tml-right")))}const u=new T.MathNode("mtr",s,[]),d=e.labels.shift();d&&e.tags&&e.tags[o]&&(u.setAttribute("id",d),Array.isArray(e.tags[o])&&u.classes.push("tml-tageqn")),0===o&&a[0].length>0&&(2===a[0].length?u.children.forEach((e=>{e.style.borderTop="0.15em double"})):u.children.forEach((e=>{e.style.borderTop=a[0][0]?"0.06em dashed":"0.06em solid"}))),a[o+1].length>0&&(2===a[o+1].length?u.children.forEach((e=>{e.style.borderBottom="0.15em double"})):u.children.forEach((e=>{e.style.borderBottom=a[o+1][0]?"0.06em dashed":"0.06em solid"})));let p=!0;for(let e=0;e<u.children.length;e++){const t=u.children[e].children[0];if(!t||"mpadded"!==t.type||"0px"!==t.attributes.height){p=!1;break}}if(p)for(let e=0;e<u.children.length;e++)u.children[e].style.paddingTop="0",u.children[e].style.paddingBottom="0";r.push(u)}if(e.arraystretch&&1!==e.arraystretch){const t=String(1.4*e.arraystretch-.8)+"ex";for(let e=0;e<r.length;e++)for(let n=0;n<r[e].children.length;n++)r[e].children[n].style.paddingTop=t,r[e].children[n].style.paddingBottom=t}let o,i;if(e.envClasses.length>0&&(o=e.envClasses.includes("abut")||e.envClasses.includes("cases")?"0":e.envClasses.includes("small")?"0.1389":e.envClasses.includes("cd")?"0.25":"0.4",i="em"),e.arraycolsep){const r=ke(e.arraycolsep,t);o=r.number.toFixed(4),i=r.unit}if(o){const t=0===r.length?0:r[0].children.length,n=(r,n)=>0===r&&0===n||r===t-1&&1===n?"0":"align"!==e.envClasses[0]?o:1===n?"0":e.autoTag?r%2?"1":"0":r%2?"0":"1";for(let e=0;e<r.length;e++)for(let t=0;t<r[e].children.length;t++)r[e].children[t].style.paddingLeft=`${n(t,0)}${i}`,r[e].children[t].style.paddingRight=`${n(t,1)}${i}`}if(0===e.envClasses.length)for(let e=0;e<r.length;e++)r[e].children[0].style.paddingLeft="0em",r[e].children.length===r[0].children.length&&(r[e].children[r[e].children.length-1].style.paddingRight="0em");if(e.envClasses.length>0){const t=e.envClasses.includes("align")||e.envClasses.includes("alignat");for(let n=0;n<r.length;n++){const a=r[n];if(t){for(let e=0;e<a.children.length;e++)a.children[e].classes=["tml-"+(e%2?"left":"right")];if(e.autoTag){const t=e.leqno?0:a.children.length-1;a.children[t].classes=["tml-"+(e.leqno?"left":"right")]}}if(a.children.length>1&&e.envClasses.includes("cases")&&(a.children[1].style.paddingLeft="1em"),e.envClasses.includes("cases")||e.envClasses.includes("subarray"))for(const e of a.children)e.classes.push("tml-left")}}let s=new T.MathNode("mtable",r);e.envClasses.length>0&&(e.envClasses.includes("jot")?s.classes.push("tml-jot"):e.envClasses.includes("small")&&s.classes.push("tml-small")),"display"===e.scriptLevel&&s.setAttribute("displaystyle","true"),(e.autoTag||e.envClasses.includes("multline"))&&(s.style.width="100%");let l="";if(e.cols&&e.cols.length>0){const t=e.cols;let r=!1,n=0,a=t.length;for(;"separator"===t[n].type;)n+=1;for(;"separator"===t[a-1].type;)a-=1;if("separator"===t[0].type){const e="separator"===t[1].type?"0.15em double":"|"===t[0].separator?"0.06em solid ":"0.06em dashed ";for(const t of s.children)t.children[0].style.borderLeft=e}let o=e.autoTag?0:-1;for(let e=n;e<a;e++)if("align"===t[e].type){const n=wt[t[e].align];l+=n,o+=1;for(const e of s.children)"center"!==n.trim()&&o<e.children.length&&(e.children[o].classes=["tml-"+n.trim()]);r=!0}else if("separator"===t[e].type){if(r){const r="separator"===t[e+1].type?"0.15em double":"|"===t[e].separator?"0.06em solid":"0.06em dashed";for(const e of s.children)o<e.children.length&&(e.children[o].style.borderRight=r)}r=!1}if("separator"===t[t.length-1].type){const e="separator"===t[t.length-2].type?"0.15em double":"|"===t[t.length-1].separator?"0.06em solid":"0.06em dashed";for(const t of s.children)t.children[t.children.length-1].style.borderRight=e,t.children[t.children.length-1].style.paddingRight="0.4em"}}return e.autoTag&&(l="left "+(l.length>0?l:"center ")+"right "),l&&s.setAttribute("columnalign",l.trim()),e.envClasses.includes("small")&&(s=new T.MathNode("mstyle",[s]),s.setAttribute("scriptlevel","1")),s},At=function(e,r){-1===e.envName.indexOf("ed")&&pt(e);const n="split"===e.envName,a=[],o=xt(e.parser,{cols:a,emptySingleRow:!0,autoTag:n?void 0:gt(e.envName),envClasses:["abut","jot"],maxNumCols:"split"===e.envName?2:void 0,leqno:e.parser.settings.leqno},"display");let i,s=0;const l=e.envName.indexOf("at")>-1;if(r[0]&&l){let e="";for(let t=0;t<r[0].body.length;t++){e+=Fe(r[0].body[t],"textord").text}if(isNaN(e))throw new t("The alignat enviroment requires a numeric first argument.");i=Number(e),s=2*i}o.body.forEach((function(e){if(l){const r=e.length/2;if(i<r)throw new t(`Too many math in a row: expected ${i}, but got ${r}`,e[0])}else s<e.length&&(s=e.length)}));for(let e=0;e<s;++e){let t="r";e%2==1&&(t="l"),a[e]={type:"align",align:t}}return"split"===e.envName||(l?o.envClasses.push("alignat"):o.envClasses[0]="align"),o};Be({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,r){const n=(Ie(r[0])?[r[0]]:Fe(r[0],"ordgroup").body).map((function(e){const r=$e(e).text;if(-1!=="lcr".indexOf(r))return{type:"align",align:r};if("|"===r)return{type:"separator",separator:"|"};if(":"===r)return{type:"separator",separator:":"};throw new t("Unknown column alignment: "+r,e)})),[a,o]=ht(e.parser.gullet.macros),i={cols:n,envClasses:["array"],maxNumCols:n.length,arraystretch:a,arraycolsep:o};return xt(e.parser,i,bt(e.envName))},mathmlBuilder:vt}),Be({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){const r={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")];let n="c";const a={envClasses:[],cols:[]};if("*"===e.envName.charAt(e.envName.length-1)){const r=e.parser;if(r.consumeSpaces(),"["===r.fetch().text){if(r.consume(),r.consumeSpaces(),n=r.fetch().text,-1==="lcr".indexOf(n))throw new t("Expected l or c or r",r.nextToken);r.consume(),r.consumeSpaces(),r.expect("]"),r.consume(),a.cols=[]}}const o=xt(e.parser,a,"text");o.cols=new Array(o.body[0].length).fill({type:"align",align:n});const[i,s]=ht(e.parser.gullet.macros);return o.arraystretch=i,!s||6===s&&"pt"===s||(o.arraycolsep=s),r?{type:"leftright",mode:e.mode,body:[o],left:r[0],right:r[1],rightColor:void 0}:o},mathmlBuilder:vt}),Be({type:"array",names:["bordermatrix"],props:{numArgs:0},handler(e){const t=xt(e.parser,{cols:[],envClasses:["bordermatrix"]},"text");return t.cols=new Array(t.body[0].length).fill({type:"align",align:"c"}),t.envClasses=[],t.arraystretch=1,"matrix"===e.envName?t:((e,t)=>{const r=e.body;r[0].shift();const n=new Array(r.length-1).fill().map((()=>[]));for(let e=1;e<r.length;e++){n[e-1].push(r[e].shift());const t=[];for(let n=0;n<r[e].length;n++)t.push(structuredClone(r[e][n]));n[e-1].push(Ue(t,"vphantom"))}const a=new Array(r.length).fill().map((()=>[]));for(let e=0;e<r[0].length;e++)a[0].push(structuredClone(r[0][e]));for(let e=1;e<r.length;e++)for(let t=0;t<r[0].length;t++)a[e].push(Ue(structuredClone(r[e][t]).body,"hphantom"));for(let e=0;e<r[0].length;e++)r[0][e]=Ue(structuredClone(r[0][e]).body,"hphantom");const o={type:"array",mode:"math",body:n,cols:[{type:"align",align:"c"}],rowGaps:new Array(n.length-1).fill(null),hLinesBeforeRow:new Array(n.length+1).fill().map((()=>[])),envClasses:[],scriptLevel:"text",arraystretch:1,labels:new Array(n.length).fill(""),arraycolsep:{number:.04,unit:"em"}},i={type:"styling",mode:"math",scriptLevel:"text",body:[{type:"array",mode:"math",body:a,cols:new Array(a.length).fill({type:"align",align:"c"}),rowGaps:new Array(a.length-1).fill(null),hLinesBeforeRow:new Array(a.length+1).fill().map((()=>[])),envClasses:[],scriptLevel:"text",arraystretch:1,labels:new Array(a.length).fill(""),arraycolsep:null}]},s={type:"leftright",mode:"math",body:[e],left:t?t[0]:"(",right:t?t[1]:")",rightColor:void 0};return ze([o,{type:"supsub",mode:"math",base:{type:"op",mode:"math",limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!0,symbol:!1,stack:!0,suppressBaseShift:!0,body:[s]},sup:i,sub:null}])})(t,e.delimiters)},mathmlBuilder:vt}),Be({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){const t=xt(e.parser,{type:"small"},"script");return t.envClasses=["small"],t},mathmlBuilder:vt}),Be({type:"array",names:["subarray"],props:{numArgs:1},handler(e,r){const n=(Ie(r[0])?[r[0]]:Fe(r[0],"ordgroup").body).map((function(e){const r=$e(e).text;if(-1!=="lc".indexOf(r))return{type:"align",align:r};throw new t("Unknown column alignment: "+r,e)}));if(n.length>1)throw new t("{subarray} can contain only one column");let a={cols:n,envClasses:["small"]};if(a=xt(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new t("{subarray} can contain only one column");return a},mathmlBuilder:vt}),Be({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){const t=xt(e.parser,{cols:[],envClasses:["cases"]},bt(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},mathmlBuilder:vt}),Be({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:At,mathmlBuilder:vt}),Be({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:At,mathmlBuilder:vt}),Be({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){"gathered"!==e.envName&&pt(e);const t={cols:[],envClasses:["abut","jot"],autoTag:gt(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return xt(e.parser,t,"display")},mathmlBuilder:vt}),Be({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){pt(e);const t={autoTag:gt(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,envClasses:["align"],leqno:e.parser.settings.leqno};return xt(e.parser,t,"display")},mathmlBuilder:vt}),Be({type:"array",names:["multline","multline*"],props:{numArgs:0},handler(e){pt(e);const t={autoTag:"multline"===e.envName,maxNumCols:1,envClasses:["jot","multline"],leqno:e.parser.settings.leqno};return xt(e.parser,t,"display")},mathmlBuilder:vt}),Be({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(pt(e),function(e){const r=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){r.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();const n=e.fetch().text;if("&"!==n&&"\\\\"!==n){if("\\end"===n){0===r[r.length-1].length&&r.pop();break}throw new t("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}let n=[];const a=[n];for(let s=0;s<r.length;s++){const l=r[s];let c={type:"styling",body:[],mode:"math",scriptLevel:"display"};for(let r=0;r<l.length;r++)if(Re(l[r])){n.push(c),r+=1;const a=$e(l[r]).text,s=new Array(2);if(s[0]={type:"ordgroup",mode:"math",body:[]},s[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(a)>-1);else{if(!("<>AV".indexOf(a)>-1))throw new t('Expected one of "<>AV=|." after @.');for(let e=0;e<2;e++){let n=!0;for(let c=r+1;c<l.length;c++){if(i=a,("mathord"===(o=l[c]).type||"atom"===o.type)&&o.text===i){n=!1,r=c;break}if(Re(l[c]))throw new t("Missing a "+a+" character to complete a CD arrow.",l[c]);s[e].body.push(l[c])}if(n)throw new t("Missing a "+a+" character to complete a CD arrow.",l[r])}}const u=je(a,s,e);n.push(u),c={type:"styling",body:[],mode:"math",scriptLevel:"display"}}else c.body.push(l[r]);s%2==0?n.push(c):n.shift(),n=[],a.push(n)}var o,i;return a.pop(),e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:a,tags:null,labels:new Array(a.length+1).fill(""),envClasses:["jot","cd"],cols:[],hLinesBeforeRow:new Array(a.length+1).fill([])}}(e.parser)),mathmlBuilder:vt}),u({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,r){throw new t(`${e.funcName} valid only within array environment`)}});const Et=De;u({type:"bordermatrix",names:["\\bordermatrix","\\matrix"],props:{numArgs:0,numOptionalArgs:1},handler:({parser:e,funcName:t},r,n)=>{let a=["(",")"];if("\\bordermatrix"===t&&n[0]&&n[0].body){const e=n[0].body;2===e.length&&"atom"===e[0].type&&"atom"===e[1].type&&"open"===e[0].family&&"close"===e[1].family&&(a=[e[0].text,e[1].text])}e.consumeSpaces(),e.consume();const o=Et.bordermatrix,i={mode:e.mode,envName:t.slice(1),delimiters:a,parser:e},s=o.handler(i);return e.expect("}",!0),s}}),u({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler({parser:e,token:r},n){const a=Fe(n[0],"ordgroup").body;let o="";for(let e=0;e<a.length;e++){o+=Fe(a[e],"textord").text}const i=parseInt(o);if(isNaN(i))throw new t(`\\@char has non-numeric argument ${o}`,r);return{type:"textord",mode:e.mode,text:String.fromCodePoint(i)}}});const _t=/^(#[a-f0-9]{3}|#?[a-f0-9]{6})$/i,Ct=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i,Tt=/^ *\d{1,3} *(?:, *\d{1,3} *){2}$/,qt=/^ *[10](?:\.\d*)? *(?:, *[10](?:\.\d*)? *){2}$/,kt=/^[a-f0-9]{6}$/i,Nt=e=>{let t=e.toString(16);return 1===t.length&&(t="0"+t),t},St=JSON.parse('{\n "Apricot": "#ffb484",\n "Aquamarine": "#08b4bc",\n "Bittersweet": "#c84c14",\n "blue": "#0000FF",\n "Blue": "#303494",\n "BlueGreen": "#08b4bc",\n "BlueViolet": "#503c94",\n "BrickRed": "#b8341c",\n "brown": "#BF8040",\n "Brown": "#802404",\n "BurntOrange": "#f8941c",\n "CadetBlue": "#78749c",\n "CarnationPink": "#f884b4",\n "Cerulean": "#08a4e4",\n "CornflowerBlue": "#40ace4",\n "cyan": "#00FFFF",\n "Cyan": "#08acec",\n "Dandelion": "#ffbc44",\n "darkgray": "#404040",\n "DarkOrchid": "#a8548c",\n "Emerald": "#08ac9c",\n "ForestGreen": "#089c54",\n "Fuchsia": "#90348c",\n "Goldenrod": "#ffdc44",\n "gray": "#808080",\n "Gray": "#98949c",\n "green": "#00FF00",\n "Green": "#08a44c",\n "GreenYellow": "#e0e474",\n "JungleGreen": "#08ac9c",\n "Lavender": "#f89cc4",\n "lightgray": "#c0c0c0",\n "lime": "#BFFF00",\n "LimeGreen": "#90c43c",\n "magenta": "#FF00FF",\n "Magenta": "#f0048c",\n "Mahogany": "#b0341c",\n "Maroon": "#b03434",\n "Melon": "#f89c7c",\n "MidnightBlue": "#086494",\n "Mulberry": "#b03c94",\n "NavyBlue": "#086cbc",\n "olive": "#7F7F00",\n "OliveGreen": "#407c34",\n "orange": "#FF8000",\n "Orange": "#f8843c",\n "OrangeRed": "#f0145c",\n "Orchid": "#b074ac",\n "Peach": "#f8945c",\n "Periwinkle": "#8074bc",\n "PineGreen": "#088c74",\n "pink": "#ff7f7f",\n "Plum": "#98248c",\n "ProcessBlue": "#08b4ec",\n "purple": "#BF0040",\n "Purple": "#a0449c",\n "RawSienna": "#983c04",\n "red": "#ff0000",\n "Red": "#f01c24",\n "RedOrange": "#f86434",\n "RedViolet": "#a0246c",\n "Rhodamine": "#f0549c",\n "Royallue": "#0874bc",\n "RoyalPurple": "#683c9c",\n "RubineRed": "#f0047c",\n "Salmon": "#f8948c",\n "SeaGreen": "#30bc9c",\n "Sepia": "#701404",\n "SkyBlue": "#48c4dc",\n "SpringGreen": "#c8dc64",\n "Tan": "#e09c74",\n "teal": "#007F7F",\n "TealBlue": "#08acb4",\n "Thistle": "#d884b4",\n "Turquoise": "#08b4cc",\n "violet": "#800080",\n "Violet": "#60449c",\n "VioletRed": "#f054a4",\n "WildStrawberry": "#f0246c",\n "yellow": "#FFFF00",\n "Yellow": "#fff404",\n "YellowGreen": "#98cc6c",\n "YellowOrange": "#ffa41c"\n}'),Mt=(e,r)=>{let n="";if("HTML"===e){if(!_t.test(r))throw new t("Invalid HTML input.");n=r}else if("RGB"===e){if(!Tt.test(r))throw new t("Invalid RGB input.");r.split(",").map((e=>{n+=Nt(Number(e.trim()))}))}else{if(!qt.test(r))throw new t("Invalid rbg input.");r.split(",").map((e=>{const r=Number(e.trim());if(r>1)throw new t("Color rgb input must be < 1.");n+=Nt(Number((255*r).toFixed(0)))}))}return"#"!==n.charAt(0)&&(n="#"+n),n},Lt=(e,r,n)=>{const a=`\\\\color@${e}`;if(!Ct.exec(e))throw new t("Invalid color: '"+e+"'",n);return kt.test(e)?"#"+e:("#"===e.charAt(0)||(r.has(a)?e=r.get(a).tokens[0].text:St[e]&&(e=St[e])),e)},Ot=(e,t)=>{let r=ce(e.body,t.withColor(e.color));return r=r.map((t=>(t.style.color=e.color,t))),T.newDocumentFragment(r)};u({type:"color",names:["\\textcolor"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw","original"]},handler({parser:e,token:t},r,n){const a=n[0]&&Fe(n[0],"raw").string;let o="";if(a){const e=Fe(r[0],"raw").string;o=Mt(a,e)}else o=Lt(Fe(r[0],"raw").string,e.gullet.macros,t);const i=r[1];return{type:"color",mode:e.mode,color:o,isTextColor:!0,body:m(i)}},mathmlBuilder:Ot}),u({type:"color",names:["\\color"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw"]},handler({parser:e,breakOnTokenText:t,token:r},n,a){const o=a[0]&&Fe(a[0],"raw").string;let i="";if(o){const e=Fe(n[0],"raw").string;i=Mt(o,e)}else i=Lt(Fe(n[0],"raw").string,e.gullet.macros,r);const s=e.parseExpression(!0,t,!0);return{type:"color",mode:e.mode,color:i,isTextColor:!1,body:s}},mathmlBuilder:Ot}),u({type:"color",names:["\\definecolor"],props:{numArgs:3,allowedInText:!0,argTypes:["raw","raw","raw"]},handler({parser:e,funcName:r,token:n},a){const o=Fe(a[0],"raw").string;if(!/^[A-Za-z]+$/.test(o))throw new t("Color name must be latin letters.",n);const i=Fe(a[1],"raw").string;if(!["HTML","RGB","rgb"].includes(i))throw new t("Color model must be HTML, RGB, or rgb.",n);const s=Fe(a[2],"raw").string,l=Mt(i,s);return e.gullet.macros.set(`\\\\color@${o}`,{tokens:[{text:l}],numArgs:0}),{type:"internal",mode:e.mode}}}),u({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler({parser:e},t,r){const n="["===e.gullet.future().text?e.parseSizeGroup(!0):null,a=!e.settings.displayMode;return{type:"cr",mode:e.mode,newLine:a,size:n&&Fe(n,"size").value}},mathmlBuilder(e,t){const r=new T.MathNode("mo");if(e.newLine&&(r.setAttribute("linebreak","newline"),e.size)){const n=ke(e.size,t);r.setAttribute("height",n.number+n.unit)}return r}});const Dt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Bt=e=>{const r=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new t("Expected a control sequence",e);return r},Ft=(e,t,r,n)=>{let a=e.gullet.macros.get(r.text);null==a&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};u({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler({parser:e,funcName:r}){e.consumeSpaces();const n=e.fetch();if(Dt[n.text])return"\\global"!==r&&"\\\\globallong"!==r||(n.text=Dt[n.text]),Fe(e.parseFunction(),"internal");throw new t("Invalid token after macro prefix",n)}}),u({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e,funcName:r}){let n=e.gullet.popToken();const a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new t("Expected a control sequence",n);let o,i=0;const s=[[]];for(;"{"!==e.gullet.future().text;)if(n=e.gullet.popToken(),"#"===n.text){if("{"===e.gullet.future().text){o=e.gullet.future(),s[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new t(`Invalid argument number "${n.text}"`);if(parseInt(n.text)!==i+1)throw new t(`Argument number "${n.text}" out of order`);i++,s.push([])}else{if("EOF"===n.text)throw new t("Expected a macro definition");s[i].push(n.text)}let{tokens:l}=e.gullet.consumeArg();if(o&&l.unshift(o),"\\edef"===r||"\\xdef"===r){if(l=e.gullet.expandTokens(l),l.length>e.gullet.settings.maxExpand)throw new t("Too many expansions in an "+r);l.reverse()}return e.gullet.macros.set(a,{tokens:l,numArgs:i,delimiters:s},r===Dt[r]),{type:"internal",mode:e.mode}}}),u({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e,funcName:t}){const r=Bt(e.gullet.popToken());e.gullet.consumeSpaces();const n=(e=>{let t=e.gullet.popToken();return"="===t.text&&(t=e.gullet.popToken()," "===t.text&&(t=e.gullet.popToken())),t})(e);return Ft(e,r,n,"\\\\globallet"===t),{type:"internal",mode:e.mode}}}),u({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e,funcName:t}){const r=Bt(e.gullet.popToken()),n=e.gullet.popToken(),a=e.gullet.popToken();return Ft(e,r,a,"\\\\globalfuture"===t),e.gullet.pushToken(a),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}}),u({type:"internal",names:["\\newcommand","\\renewcommand","\\providecommand"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e,funcName:r}){let n="";const a=e.gullet.popToken();"{"===a.text?(n=Bt(e.gullet.popToken()),e.gullet.popToken()):n=Bt(a);const o=e.gullet.isDefined(n);if(o&&"\\newcommand"===r)throw new t(`\\newcommand{${n}} attempting to redefine ${n}; use \\renewcommand`);if(!o&&"\\renewcommand"===r)throw new t(`\\renewcommand{${n}} when command ${n} does not yet exist; use \\newcommand`);let i=0;if("["===e.gullet.future().text){let r=e.gullet.popToken();if(r=e.gullet.popToken(),!/^[0-9]$/.test(r.text))throw new t(`Invalid number of arguments: "${r.text}"`);if(i=parseInt(r.text),r=e.gullet.popToken(),"]"!==r.text)throw new t(`Invalid argument "${r.text}"`)}const{tokens:s}=e.gullet.consumeArg();return"\\providecommand"===r&&e.gullet.macros.has(n)||e.gullet.macros.set(n,{tokens:s,numArgs:i}),{type:"internal",mode:e.mode}}});const $t={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},It=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\u2987","\\llparenthesis","\u2988","\\rrparenthesis","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lAngle","\u27ea","\\rAngle","\u27eb","\\llangle","\u2989","\\rrangle","\u298a","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","\\llbracket","\\rrbracket","\u27e6","\u27e6","\\lBrace","\\rBrace","\u2983","\u2984","/","\\backslash","|","\\vert","\\|","\\Vert","\u2016","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."],Pt=["}","\\left","\\middle","\\right"],Rt=e=>e.length>0&&(It.includes(e)||$t[e]||Pt.includes(e)),jt=[0,1.2,1.8,2.4,3];function zt(e,r){const n=Ie(e);if(n&&It.includes(n.text))return["<","\\lt"].includes(n.text)&&(n.text="\u27e8"),[">","\\gt"].includes(n.text)&&(n.text="\u27e9"),n;throw new t(n?`Invalid delimiter '${n.text}' after '${r.funcName}'`:`Invalid delimiter type '${e.type}'`,e)}const Ut=["/","\\","\\backslash","\\vert","|"];u({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{const r=zt(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:$t[e.funcName].size,mclass:$t[e.funcName].mclass,delim:r.text}},mathmlBuilder:e=>{const t=[];"."===e.delim&&(e.delim=""),t.push(re(e.delim,e.mode));const r=new T.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),(Ut.includes(e.delim)||e.delim.indexOf("arrow")>-1)&&r.setAttribute("stretchy","true"),r.setAttribute("symmetric","true"),r.setAttribute("minsize",jt[e.size]+"em"),r.setAttribute("maxsize",jt[e.size]+"em"),r}}),u({type:"leftright-right",names:["\\right"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>({type:"leftright-right",mode:e.parser.mode,delim:zt(t[0],e).text})}),u({type:"leftright",names:["\\left"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,r)=>{const n=zt(r[0],e),a=e.parser;++a.leftrightDepth;let o=a.parseExpression(!1,null,!0),i=a.fetch();for(;"\\middle"===i.text;){a.consume();const e=a.fetch().text;if(!B.math[e])throw new t(`Invalid delimiter '${e}' after '\\middle'`);zt({type:"atom",mode:"math",text:e},{funcName:"\\middle"}),o.push({type:"middle",mode:"math",delim:e}),a.consume(),o=o.concat(a.parseExpression(!1,null,!0)),i=a.fetch()}--a.leftrightDepth,a.expect("\\right",!1);const s=Fe(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:o,left:n.text,right:s.delim}},mathmlBuilder:(e,t)=>{!function(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}(e);const r=ce(e.body,t);"."===e.left&&(e.left="");const n=new T.MathNode("mo",[re(e.left,e.mode)]);n.setAttribute("fence","true"),n.setAttribute("form","prefix"),("/"===e.left||"\\"===e.left||e.left.indexOf("arrow")>-1)&&n.setAttribute("stretchy","true"),r.unshift(n),"."===e.right&&(e.right="");const a=new T.MathNode("mo",[re(e.right,e.mode)]);if(a.setAttribute("fence","true"),a.setAttribute("form","postfix"),("\u2216"===e.right||e.right.indexOf("arrow")>-1)&&a.setAttribute("stretchy","true"),e.body.length>0){const t=e.body[e.body.length-1];"color"!==t.type||t.isTextColor||a.setAttribute("mathcolor",t.color)}return r.push(a),oe(r)}}),u({type:"middle",names:["\\middle"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,r)=>{const n=zt(r[0],e);if(!e.parser.leftrightDepth)throw new t("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},mathmlBuilder:(e,t)=>{const r=re(e.delim,e.mode),n=new T.MathNode("mo",[r]);return n.setAttribute("fence","true"),e.delim.indexOf("arrow")>-1&&n.setAttribute("stretchy","true"),n.setAttribute("form","prefix"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});const Gt=e=>{const t=new T.MathNode("mspace");return t.setAttribute("width","3pt"),t},Ht=(e,t)=>{let r;switch(r=e.label.indexOf("colorbox")>-1||"\\boxed"===e.label?new T.MathNode("mrow",[Gt(),de(e.body,t),Gt()]):new T.MathNode("menclose",[de(e.body,t)]),e.label){case"\\overline":r.setAttribute("notation","top"),r.classes.push("tml-overline");break;case"\\underline":r.setAttribute("notation","bottom"),r.classes.push("tml-underline");break;case"\\cancel":r.setAttribute("notation","updiagonalstrike"),r.children.push(new T.MathNode("mrow",[],["tml-cancel","upstrike"]));break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike"),r.children.push(new T.MathNode("mrow",[],["tml-cancel","downstrike"]));break;case"\\sout":r.setAttribute("notation","horizontalstrike"),r.children.push(new T.MathNode("mrow",[],["tml-cancel","sout"]));break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike"),r.classes.push("tml-xcancel");break;case"\\longdiv":r.setAttribute("notation","longdiv"),r.classes.push("longdiv-top"),r.children.push(new T.MathNode("mrow",[],["longdiv-arc"]));break;case"\\phase":r.setAttribute("notation","phasorangle"),r.classes.push("phasor-bottom"),r.children.push(new T.MathNode("mrow",[],["phasor-angle"]));break;case"\\textcircled":r.setAttribute("notation","circle"),r.classes.push("circle-pad"),r.children.push(new T.MathNode("mrow",[],["textcircle"]));break;case"\\angl":r.setAttribute("notation","actuarial"),r.classes.push("actuarial");break;case"\\boxed":r.setAttribute("notation","box"),r.classes.push("tml-box"),r.setAttribute("scriptlevel","0"),r.setAttribute("displaystyle","true");break;case"\\fbox":r.setAttribute("notation","box"),r.classes.push("tml-fbox");break;case"\\fcolorbox":case"\\colorbox":{const t={padding:"3pt 0 3pt 0"};"\\fcolorbox"===e.label&&(t.border="0.0667em solid "+String(e.borderColor)),r.style=t;break}}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};u({type:"enclose",names:["\\colorbox"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw","text"]},handler({parser:e,funcName:t},r,n){const a=n[0]&&Fe(n[0],"raw").string;let o="";if(a){const e=Fe(r[0],"raw").string;o=Mt(a,e)}else o=Lt(Fe(r[0],"raw").string,e.gullet.macros);const i=r[1];return{type:"enclose",mode:e.mode,label:t,backgroundColor:o,body:i}},mathmlBuilder:Ht}),u({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw","raw","text"]},handler({parser:e,funcName:t},r,n){const a=n[0]&&Fe(n[0],"raw").string;let o,i="";if(a){const e=Fe(r[0],"raw").string,t=Fe(r[0],"raw").string;i=Mt(a,e),o=Mt(a,t)}else i=Lt(Fe(r[0],"raw").string,e.gullet.macros),o=Lt(Fe(r[1],"raw").string,e.gullet.macros);const s=r[2];return{type:"enclose",mode:e.mode,label:t,backgroundColor:o,borderColor:i,body:s}},mathmlBuilder:Ht}),u({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:({parser:e},t)=>({type:"enclose",mode:e.mode,label:"\\fbox",body:t[0]})}),u({type:"enclose",names:["\\angl","\\cancel","\\bcancel","\\xcancel","\\sout","\\overline","\\boxed","\\longdiv","\\phase"],props:{numArgs:1},handler({parser:e,funcName:t},r){const n=r[0];return{type:"enclose",mode:e.mode,label:t,body:n}},mathmlBuilder:Ht}),u({type:"enclose",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler({parser:e,funcName:t},r){const n=r[0];return{type:"enclose",mode:e.mode,label:t,body:n}},mathmlBuilder:Ht}),u({type:"enclose",names:["\\textcircled"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler({parser:e,funcName:t},r){const n=r[0];return{type:"enclose",mode:e.mode,label:t,body:n}},mathmlBuilder:Ht}),u({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler({parser:e,funcName:r},n){const a=n[0];if("ordgroup"!==a.type)throw new t("Invalid environment name",a);let o="";for(let e=0;e<a.body.length;++e)o+=Fe(a.body[e],"textord").text;if("\\begin"===r){if(!Object.prototype.hasOwnProperty.call(Et,o))throw new t("No such environment: "+o,a);const r=Et[o],{args:n,optArgs:i}=e.parseArguments("\\begin{"+o+"}",r),s={mode:e.mode,envName:o,parser:e},l=r.handler(s,n,i);e.expect("\\end",!1);const c=e.nextToken,u=Fe(e.parseFunction(),"environment");if(u.name!==o)throw new t(`Mismatch: \\begin{${o}} matched by \\end{${u.name}}`,c);return l}return{type:"environment",mode:e.mode,name:o,nameGroup:a}}}),u({type:"envTag",names:["\\env@tag"],props:{numArgs:1,argTypes:["math"]},handler:({parser:e},t)=>({type:"envTag",mode:e.mode,body:t[0]}),mathmlBuilder:(e,t)=>new T.MathNode("mrow")}),u({type:"noTag",names:["\\env@notag"],props:{numArgs:0},handler:({parser:e})=>({type:"noTag",mode:e.mode}),mathmlBuilder:(e,t)=>new T.MathNode("mrow")});const Vt=(e,t)=>{const r=e.font,n=t.withFont(r),a=de(e.body,n);if(0===a.children.length)return a;if("boldsymbol"===r&&["mo","mpadded","mrow"].includes(a.type))return a.style.fontWeight="bold",a;if(((e,t)=>{if("mathrm"!==t||"ordgroup"!==e.body.type||1===e.body.body.length)return!1;if("mathord"!==e.body.body[0].type)return!1;for(let t=1;t<e.body.body.length;t++){const r=e.body.body[t].type;if("mathord"!==r&&("textord"!==r||isNaN(e.body.body[t].text)))return!1}return!0})(e,r)){const e=a.children[0].children[0];delete e.attributes.mathvariant;for(let t=1;t<a.children.length;t++)e.children[0].text+="mn"===a.children[t].type?a.children[t].children[0].text:a.children[t].children[0].children[0].text;const t=new T.MathNode("mtext",new T.TextNode("\u200b"));return new T.MathNode("mrow",[t,e])}let o="mo"===a.children[0].type;for(let e=1;e<a.children.length;e++){"mo"===a.children[e].type&&"boldsymbol"===r&&(a.children[e].style.fontWeight="bold"),"mi"!==a.children[e].type&&(o=!1);"normal"!==(a.children[e].attributes&&a.children[e].attributes.mathvariant||"")&&(o=!1)}if(!o)return a;const i=a.children[0];for(let e=1;e<a.children.length;e++)i.children.push(a.children[e].children[0]);if(i.attributes.mathvariant&&"normal"===i.attributes.mathvariant){const e=new T.MathNode("mtext",new T.TextNode("\u200b"));return new T.MathNode("mrow",[e,i])}return i},Wt={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};u({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\up@greek","\\boldsymbol","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathsfit","\\mathtt","\\Bbb","\\bm","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:({parser:e,funcName:t},r)=>{const n=p(r[0]);let a=t;return a in Wt&&(a=Wt[a]),{type:"font",mode:e.mode,font:a.slice(1),body:n}},mathmlBuilder:Vt}),u({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:({parser:e,funcName:t,breakOnTokenText:r},n)=>{const{mode:a}=e,o=e.parseExpression(!0,r,!0);return{type:"font",mode:a,font:`math${t.slice(1)}`,body:{type:"ordgroup",mode:e.mode,body:o}}},mathmlBuilder:Vt});const Xt=["display","text","script","scriptscript"],Zt={auto:-1,display:0,text:0,script:1,scriptscript:2},Yt=(e,t)=>{const r="auto"===e.scriptLevel?t.incrementLevel():"display"===e.scriptLevel?t.withLevel(We):"text"===e.scriptLevel?t.withLevel(Xe):t.withLevel(Ze),n=de(e.numer,r),a=de(e.denom,r);3===t.level&&(n.style.mathDepth="2",n.setAttribute("scriptlevel","2"),a.style.mathDepth="2",a.setAttribute("scriptlevel","2"));let o=new T.MathNode("mfrac",[n,a]);if(e.hasBarLine){if(e.barSize){const r=ke(e.barSize,t);o.setAttribute("linethickness",r.number+r.unit)}}else o.setAttribute("linethickness","0px");if(null!=e.leftDelim||null!=e.rightDelim){const t=[];if(null!=e.leftDelim){const r=new T.MathNode("mo",[new T.TextNode(e.leftDelim.replace("\\",""))]);r.setAttribute("fence","true"),t.push(r)}if(t.push(o),null!=e.rightDelim){const r=new T.MathNode("mo",[new T.TextNode(e.rightDelim.replace("\\",""))]);r.setAttribute("fence","true"),t.push(r)}o=oe(t)}return"auto"!==e.scriptLevel&&(o=new T.MathNode("mstyle",[o]),o.setAttribute("displaystyle",String("display"===e.scriptLevel)),o.setAttribute("scriptlevel",Zt[e.scriptLevel])),o};u({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:({parser:e,funcName:t},r)=>{const n=r[0],a=r[1];let o=!1,i=null,s=null,l="auto";switch(t){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i="(",s=")";break;case"\\\\bracefrac":i="\\{",s="\\}";break;case"\\\\brackfrac":i="[",s="]";break;default:throw new Error("Unrecognized genfrac command")}switch(t){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text"}return{type:"genfrac",mode:e.mode,continued:!1,numer:n,denom:a,hasBarLine:o,leftDelim:i,rightDelim:s,scriptLevel:l,barSize:null}},mathmlBuilder:Yt}),u({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:({parser:e,funcName:t},r)=>{const n=r[0],a=r[1];return{type:"genfrac",mode:e.mode,continued:!0,numer:n,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,scriptLevel:"display",barSize:null}}}),u({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler({parser:e,funcName:t,token:r}){let n;switch(t){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:n,token:r}}});const Jt=function(e){let t=null;return e.length>0&&(t=e,t="."===t?null:t),t};u({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler({parser:e},t){const r=t[4],n=t[5],a=p(t[0]),o="atom"===a.type&&"open"===a.family?Jt(a.text):null,i=p(t[1]),s="atom"===i.type&&"close"===i.family?Jt(i.text):null,l=Fe(t[2],"size");let c,u=null;l.isBlank?c=!0:(u=l.value,c=u.number>0);let d="auto",m=t[3];if("ordgroup"===m.type){if(m.body.length>0){const e=Fe(m.body[0],"textord");d=Xt[Number(e.text)]}}else m=Fe(m,"textord"),d=Xt[Number(m.text)];return{type:"genfrac",mode:e.mode,numer:r,denom:n,continued:!1,hasBarLine:c,barSize:u,leftDelim:o,rightDelim:s,scriptLevel:d}},mathmlBuilder:Yt}),u({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:({parser:e,funcName:t,token:r},n)=>({type:"infix",mode:e.mode,replaceWith:"\\\\abovefrac",barSize:Fe(n[0],"size").value,token:r})}),u({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:({parser:e,funcName:t},r)=>{const n=r[0],a=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Fe(r[1],"infix").barSize),o=r[2],i=a.number>0;return{type:"genfrac",mode:e.mode,numer:n,denom:o,continued:!1,hasBarLine:i,barSize:a,leftDelim:null,rightDelim:null,scriptLevel:"auto"}},mathmlBuilder:Yt}),u({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["hbox"],allowedInArgument:!0,allowedInText:!1},handler:({parser:e},t)=>({type:"hbox",mode:e.mode,body:m(t[0])}),mathmlBuilder(e,t){const r=t.withLevel(We),n=ue(e.body,r);return ae(n)}});u({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:({parser:e,funcName:t},r)=>({type:"horizBrace",mode:e.mode,label:t,isOver:/^\\over/.test(t),base:r[0]}),mathmlBuilder:(e,t)=>{const r=M(e.label);return r.style["math-depth"]=0,new T.MathNode(e.isOver?"mover":"munder",[de(e.base,t),r])}}),u({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:({parser:e,token:r},n)=>{const a=n[1],o=Fe(n[0],"url").url;if(!e.settings.isTrusted({command:"\\href",url:o}))throw new t('Function "\\href" is not trusted',r);return{type:"href",mode:e.mode,href:o,body:m(a)}},mathmlBuilder:(e,t)=>{const r=new E("math",[ue(e.body,t)]);return new v(e.href,[],[r])}}),u({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:({parser:e,token:r},n)=>{const a=Fe(n[0],"url").url;if(!e.settings.isTrusted({command:"\\url",url:a}))throw new t('Function "\\url" is not trusted',r);const o=[];for(let e=0;e<a.length;e++){let t=a[e];"~"===t&&(t="\\textasciitilde"),o.push({type:"textord",mode:"text",text:t})}const i={type:"text",mode:e.mode,font:"\\texttt",body:o};return{type:"href",mode:e.mode,href:a,body:m(i)}}}),u({type:"html",names:["\\class","\\id","\\style","\\data"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:({parser:e,funcName:r,token:n},a)=>{const o=Fe(a[0],"raw").string,i=a[1];if(e.settings.strict)throw new t(`Function "${r}" is disabled in strict mode`,n);let s;const l={};switch(r){case"\\class":l.class=o,s={command:"\\class",class:o};break;case"\\id":l.id=o,s={command:"\\id",id:o};break;case"\\style":l.style=o,s={command:"\\style",style:o};break;case"\\data":{const e=o.split(",");for(let r=0;r<e.length;r++){const n=e[r].split("=");if(2!==n.length)throw new t("Error parsing key-value for \\data");l["data-"+n[0].trim()]=n[1].trim()}s={command:"\\data",attributes:l};break}default:throw new Error("Unrecognized html command")}if(!e.settings.isTrusted(s))throw new t(`Function "${r}" is not trusted`,n);return{type:"html",mode:e.mode,attributes:l,body:m(i)}},mathmlBuilder:(e,t)=>{const r=ue(e.body,t),n=[];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/)),r.classes=n;for(const t in e.attributes)"class"!==t&&Object.prototype.hasOwnProperty.call(e.attributes,t)&&r.setAttribute(t,e.attributes[t]);return r}});const Kt=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};{const r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new t("Invalid size: '"+e+"' in \\includegraphics");const n={number:+(r[1]+r[2]),unit:r[3]};if(!Te(n))throw new t("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n}};u({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:({parser:e,token:r},n,a)=>{let o={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(a[0]){const e=Fe(a[0],"raw").string.split(",");for(let r=0;r<e.length;r++){const n=e[r].split("=");if(2===n.length){const e=n[1].trim();switch(n[0].trim()){case"alt":l=e;break;case"width":o=Kt(e);break;case"height":i=Kt(e);break;case"totalheight":s=Kt(e);break;default:throw new t("Invalid key: '"+n[0]+"' in \\includegraphics.")}}}}const c=Fe(n[0],"url").url;if(""===l&&(l=c,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),!e.settings.isTrusted({command:"\\includegraphics",url:c}))throw new t('Function "\\includegraphics" is not trusted',r);return{type:"includegraphics",mode:e.mode,alt:l,width:o,height:i,totalheight:s,src:c}},mathmlBuilder:(e,t)=>{const r=ke(e.height,t),n={number:0,unit:"em"};e.totalheight.number>0&&e.totalheight.unit===r.unit&&e.totalheight.number>r.number&&(n.number=e.totalheight.number-r.number,n.unit=r.unit);let a=0;e.width.number>0&&(a=ke(e.width,t));const o={height:r.number+n.number+"em"};a.number>0&&(o.width=a.number+a.unit),n.number>0&&(o.verticalAlign=-n.number+n.unit);const i=new A(e.src,e.alt,o);return i.height=r,i.depth=n,new T.MathNode("mtext",[i])}}),u({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler({parser:e,funcName:r,token:n},a){const o=Fe(a[0],"size");if(e.settings.strict){const a="m"===r[1],i="mu"===o.value.unit;if(a){if(!i)throw new t(`LaTeX's ${r} supports only mu units, not ${o.value.unit} units`,n);if("math"!==e.mode)throw new t(`LaTeX's ${r} works only in math mode`,n)}else if(i)throw new t(`LaTeX's ${r} doesn't support mu units`,n)}return{type:"kern",mode:e.mode,dimension:o.value}},mathmlBuilder(e,t){const r=ke(e.dimension,t),n="em"===r.unit?Qt(r.number):"";if("text"===e.mode&&n.length>0){const e=new T.TextNode(n);return new T.MathNode("mtext",[e])}{const e=new T.MathNode("mspace");return e.setAttribute("width",r.number+r.unit),r.number<0&&(e.style.marginLeft=r.number+r.unit),e}}});const Qt=function(e){return e>=.05555&&e<=.05556?"\u200a":e>=.1666&&e<=.1667?"\u2009":e>=.2222&&e<=.2223?"\u2005":e>=.2777&&e<=.2778?"\u2005\u200a":""},er=/[^A-Za-z_0-9-]/g;u({type:"label",names:["\\label"],props:{numArgs:1,argTypes:["raw"]},handler:({parser:e},t)=>({type:"label",mode:e.mode,string:t[0].string.replace(er,"")}),mathmlBuilder(e,t){const r=new T.MathNode("mrow",[],["tml-label"]);return e.string.length>0&&r.setLabel(e.string),r}});const tr=["\\clap","\\llap","\\rlap"];u({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap","\\clap","\\llap","\\rlap"],props:{numArgs:1,allowedInText:!0},handler:({parser:e,funcName:r,token:n},a)=>{if(tr.includes(r)){if(e.settings.strict&&"text"!==e.mode)throw new t(`{${r}} can be used only in text mode.\n Try \\math${r.slice(1)}`,n);r=r.slice(1)}else r=r.slice(5);const o=a[0];return{type:"lap",mode:e.mode,alignment:r,body:o}},mathmlBuilder:(e,t)=>{let r;if("llap"===e.alignment){const n=ce(m(e.body),t),a=new T.MathNode("mphantom",n);r=new T.MathNode("mpadded",[a]),r.setAttribute("width","0px")}const n=de(e.body,t);let a;if("llap"===e.alignment?(n.style.position="absolute",n.style.right="0",n.style.bottom="0",a=new T.MathNode("mpadded",[r,n])):a=new T.MathNode("mpadded",[n]),"rlap"===e.alignment)e.body.body.length>0&&"genfrac"===e.body.body[0].type&&a.setAttribute("lspace","0.16667em");else{const t="llap"===e.alignment?"-1":"-0.5";a.setAttribute("lspace",t+"width"),"llap"===e.alignment?a.style.position="relative":(a.style.display="flex",a.style.justifyContent="center")}return a.setAttribute("width","0px"),a}}),u({type:"ordgroup",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler({funcName:e,parser:t},r){const n=t.mode;t.switchMode("math");const a="\\("===e?"\\)":"$",o=t.parseExpression(!1,a);return t.expect(a),t.switchMode(n),{type:"ordgroup",mode:t.mode,body:o}}}),u({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,r){throw new t(`Mismatched ${e.funcName}`,r)}});u({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:({parser:e},t)=>({type:"mathchoice",mode:e.mode,display:m(t[0]),text:m(t[1]),script:m(t[2]),scriptscript:m(t[3])}),mathmlBuilder:(e,t)=>{const r=((e,t)=>{switch(t.level){case Ve:return e.display;case We:return e.text;case Xe:return e.script;case Ze:return e.scriptscript;default:return e.text}})(e,t);return ue(r,t)}});const rr=["text","textord","mathord","atom"];function nr(e,t){let r;const n=ce(e.body,t);if("minner"===e.mclass)r=new T.MathNode("mpadded",n);else if("mord"===e.mclass)e.isCharacterBox||"mathord"===n[0].type?(r=n[0],r.type="mi",1===r.children.length&&r.children[0].text&&"\u2207"===r.children[0].text&&r.setAttribute("mathvariant","normal")):r=new T.MathNode("mi",n);else{r=new T.MathNode("mrow",n),e.mustPromote?(r=n[0],r.type="mo",e.isCharacterBox&&e.body[0].text&&/[A-Za-z]/.test(e.body[0].text)&&r.setAttribute("mathvariant","italic")):r=new T.MathNode("mrow",n);const a=t.level<2;"mrow"===r.type?a&&("mbin"===e.mclass?(r.children.unshift(Ne(.2222)),r.children.push(Ne(.2222))):"mrel"===e.mclass?(r.children.unshift(Ne(.2778)),r.children.push(Ne(.2778))):"mpunct"===e.mclass?r.children.push(Ne(.1667)):"minner"===e.mclass&&(r.children.unshift(Ne(.0556)),r.children.push(Ne(.0556)))):"mbin"===e.mclass?(r.attributes.lspace=a?"0.2222em":"0",r.attributes.rspace=a?"0.2222em":"0"):"mrel"===e.mclass?(r.attributes.lspace=a?"0.2778em":"0",r.attributes.rspace=a?"0.2778em":"0"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace=a?"0.1667em":"0"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&a&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em"),"mopen"!==e.mclass&&"mclose"!==e.mclass&&(delete r.attributes.stretchy,delete r.attributes.form)}return r}u({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler({parser:e,funcName:t},r){const n=r[0],a=i.isCharacterBox(n);let o=!0;const s={type:"mathord",text:"",mode:e.mode},l=n.body?n.body:[n];for(const t of l){if(!rr.includes(t.type)){o=!1;break}B[e.mode][t.text]?s.text+=B[e.mode][t.text].replace:t.text?s.text+=t.text:t.body&&t.body.map((e=>{s.text+=e.text}))}return o&&"\\mathord"===t&&"mathord"===s.type&&s.text.length>1?s:{type:"mclass",mode:e.mode,mclass:"m"+t.slice(5),body:m(o?s:n),isCharacterBox:a,mustPromote:o}},mathmlBuilder:nr});const ar=e=>{const t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};u({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:({parser:e},t)=>({type:"mclass",mode:e.mode,mclass:ar(t[0]),body:m(t[1]),isCharacterBox:i.isCharacterBox(t[1])})}),u({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler({parser:e,funcName:t},r){const n=r[1],a=r[0],o={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,stack:!0,suppressBaseShift:"\\stackrel"!==t,body:m(n)};return{type:"supsub",mode:a.mode,base:o,sup:"\\underset"===t?null:a,sub:"\\underset"===t?a:null}},mathmlBuilder:nr});const or=(e,t,r)=>{if(!e)return r;const n=de(e,t);return"mrow"===n.type&&0===n.children.length?r:n};u({type:"multiscript",names:["\\sideset","\\pres@cript"],props:{numArgs:3},handler({parser:e,funcName:r,token:n},a){if(0===a[2].body.length)throw new t(r+"cannot parse an empty base.");const o=a[2].body[0];if(e.settings.strict&&"\\sideset"===r&&!o.symbol)throw new t("The base of \\sideset must be a big operator. Try \\prescript.");if(a[0].body.length>0&&"supsub"!==a[0].body[0].type||a[1].body.length>0&&"supsub"!==a[1].body[0].type)throw new t("\\sideset can parse only subscripts and superscripts in its first two arguments",n);const i=a[0].body.length>0?a[0].body[0]:null,s=a[1].body.length>0?a[1].body[0]:null;return i||s?i?{type:"multiscript",mode:e.mode,isSideset:"\\sideset"===r,prescripts:i,postscripts:s,base:o}:{type:"styling",mode:e.mode,scriptLevel:"text",body:[{type:"supsub",mode:e.mode,base:o,sup:s.sup,sub:s.sub}]}:o},mathmlBuilder(e,t){const r=de(e.base,t),n=new T.MathNode("mprescripts"),a=new T.MathNode("none");let o=[];const i=or(e.prescripts.sub,t,a),s=or(e.prescripts.sup,t,a);if(e.isSideset&&(i.setAttribute("style","text-align: left;"),s.setAttribute("style","text-align: left;")),e.postscripts){o=[r,or(e.postscripts.sub,t,a),or(e.postscripts.sup,t,a),n,i,s]}else o=[r,n,i,s];return new T.MathNode("mmultiscripts",o)}}),u({type:"not",names:["\\not"],props:{numArgs:1,primitive:!0,allowedInText:!1},handler({parser:e},t){const r=i.isCharacterBox(t[0]);let n;if(r)n=m(t[0]),"\\"===n[0].text.charAt(0)&&(n[0].text=B.math[n[0].text].replace),n[0].text=n[0].text.slice(0,1)+"\u0338"+n[0].text.slice(1);else{n=[{type:"textord",mode:"math",text:"\u0338"},{type:"kern",mode:"math",dimension:{number:-.6,unit:"em"}},t[0]]}return{type:"not",mode:e.mode,body:n,isCharacterBox:r}},mathmlBuilder(e,t){if(e.isCharacterBox){return ce(e.body,t,!0)[0]}return ue(e.body,t)}});const ir=["textord","mathord","atom"],sr=["\\smallint"],lr=["textord","mathord","ordgroup","close","leftright","font"],cr=e=>{e.attributes.lspace="0.1667em",e.attributes.rspace="0.1667em"},ur=(e,t)=>{let r;if(e.symbol)r=new E("mo",[re(e.name,e.mode)]),sr.includes(e.name)?r.setAttribute("largeop","false"):r.setAttribute("movablelimits","false"),e.fromMathOp&&cr(r);else if(e.body)r=new E("mo",ce(e.body,t)),e.fromMathOp&&cr(r);else if(r=new E("mi",[new _(e.name.slice(1))]),!e.parentIsSupSub){const t=[r,new E("mo",[re("\u2061","text")])];if(e.needsLeadingSpace){const e=new E("mspace");e.setAttribute("width","0.1667em"),t.unshift(e)}if(!e.isFollowedByDelimiter){const e=new E("mspace");e.setAttribute("width","0.1667em"),t.push(e)}r=new E("mrow",t)}return r},dr={"\u220f":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22c0":"\\bigwedge","\u22c1":"\\bigvee","\u22c2":"\\bigcap","\u22c3":"\\bigcup","\u2a00":"\\bigodot","\u2a01":"\\bigoplus","\u2a02":"\\bigotimes","\u2a04":"\\biguplus","\u2a05":"\\bigsqcap","\u2a06":"\\bigsqcup","\u2a03":"\\bigcupdot","\u2a07":"\\bigdoublevee","\u2a08":"\\bigdoublewedge","\u2a09":"\\bigtimes"};u({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcupplus","\\bigcupdot","\\bigcap","\\bigcup","\\bigdoublevee","\\bigdoublewedge","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcap","\\bigsqcup","\\bigtimes","\\smallint","\u220f","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a04","\u2a06"],props:{numArgs:0},handler:({parser:e,funcName:t},r)=>{let n=t;return 1===n.length&&(n=dr[n]),{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!0,stack:!1,name:n}},mathmlBuilder:ur}),u({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:({parser:e},t)=>{const r=t[0],n=r.body?r.body:[r],a=1===n.length&&ir.includes(n[0].type);return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:a,fromMathOp:!0,stack:!1,name:a?n[0].text:null,body:a?null:m(r)}},mathmlBuilder:ur});const pr={"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint","\u222f":"\\oiint","\u2230":"\\oiiint","\u2231":"\\intclockwise","\u2232":"\\varointclockwise","\u2a0c":"\\iiiint","\u2a0d":"\\intbar","\u2a0e":"\\intBar","\u2a0f":"\\fint","\u2a12":"\\rppolint","\u2a13":"\\scpolint","\u2a15":"\\pointint","\u2a16":"\\sqint","\u2a17":"\\intlarhk","\u2a18":"\\intx","\u2a19":"\\intcap","\u2a1a":"\\intcup"};u({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\sgn","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler({parser:e,funcName:t}){const r=e.prevAtomType,n=e.gullet.future().text;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,stack:!1,isFollowedByDelimiter:Rt(n),needsLeadingSpace:r.length>0&&lr.includes(r),name:t}},mathmlBuilder:ur}),u({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler({parser:e,funcName:t}){const r=e.prevAtomType,n=e.gullet.future().text;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,stack:!1,isFollowedByDelimiter:Rt(n),needsLeadingSpace:r.length>0&&lr.includes(r),name:t}},mathmlBuilder:ur}),u({type:"op",names:["\\int","\\iint","\\iiint","\\iiiint","\\oint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\intbar","\\intBar","\\fint","\\rppolint","\\scpolint","\\pointint","\\sqint","\\intlarhk","\\intx","\\intcap","\\intcup","\u222b","\u222c","\u222d","\u222e","\u222f","\u2230","\u2231","\u2232","\u2a0c","\u2a0d","\u2a0e","\u2a0f","\u2a12","\u2a13","\u2a15","\u2a16","\u2a17","\u2a18","\u2a19","\u2a1a"],props:{numArgs:0},handler({parser:e,funcName:t}){let r=t;return 1===r.length&&(r=pr[r]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,stack:!1,name:r}},mathmlBuilder:ur});u({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1,allowedInArgument:!0},handler:({parser:e,funcName:t},r)=>{const n=r[0],a=e.prevAtomType,o=e.gullet.future().text;return{type:"operatorname",mode:e.mode,body:m(n),alwaysHandleSupSub:"\\operatornamewithlimits"===t,limits:!1,parentIsSupSub:!1,isFollowedByDelimiter:Rt(o),needsLeadingSpace:a.length>0&&lr.includes(a)}},mathmlBuilder:(e,t)=>{let r,n=ce(e.body,t.withFont("mathrm")),a=!0;for(let e=0;e<n.length;e++){let t=n[e];if(t instanceof T.MathNode)switch(("mrow"===t.type||"mpadded"===t.type)&&1===t.children.length&&t.children[0]instanceof T.MathNode&&(t=t.children[0]),t.type){case"mi":case"mn":case"ms":case"mtext":break;case"mspace":if(t.attributes.width){const r=t.attributes.width.replace("em",""),o=Qt(Number(r));""===o?a=!1:n[e]=new T.MathNode("mtext",[new T.TextNode(o)])}break;case"mo":{const e=t.children[0];1===t.children.length&&e instanceof T.TextNode?e.text=e.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){const e=n.map((e=>e.toText())).join("");n=[new T.TextNode(e)]}else if(1===n.length&&["mover","munder"].includes(n[0].type)&&("mi"===n[0].children[0].type||"mtext"===n[0].children[0].type)){if(n[0].children[0].type="mi",e.parentIsSupSub)return new T.MathNode("mrow",n);{const e=new T.MathNode("mo",[re("\u2061","text")]);return T.newDocumentFragment([n[0],e])}}if(a?(r=new T.MathNode("mi",n),1===n[0].text.length&&r.setAttribute("mathvariant","normal")):r=new T.MathNode("mrow",n),!e.parentIsSupSub){const t=[r,new T.MathNode("mo",[re("\u2061","text")])];if(e.needsLeadingSpace){const e=new T.MathNode("mspace");e.setAttribute("width","0.1667em"),t.unshift(e)}if(!e.isFollowedByDelimiter){const e=new T.MathNode("mspace");e.setAttribute("width","0.1667em"),t.push(e)}return T.newDocumentFragment(t)}return r}}),Je("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),d({type:"ordgroup",mathmlBuilder:(e,t)=>ue(e.body,t,e.semisimple)}),u({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>{const r=t[0];return{type:"phantom",mode:e.mode,body:m(r)}},mathmlBuilder:(e,t)=>{const r=ce(e.body,t);return new T.MathNode("mphantom",r)}}),u({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>{const r=t[0];return{type:"hphantom",mode:e.mode,body:r}},mathmlBuilder:(e,t)=>{const r=ce(m(e.body),t),n=new T.MathNode("mphantom",r),a=new T.MathNode("mpadded",[n]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}}),u({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>{const r=t[0];return{type:"vphantom",mode:e.mode,body:r}},mathmlBuilder:(e,t)=>{const r=ce(m(e.body),t),n=new T.MathNode("mphantom",r),a=new T.MathNode("mpadded",[n]);return a.setAttribute("width","0px"),a}}),u({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>({type:"pmb",mode:e.mode,body:m(t[0])}),mathmlBuilder(e,t){const r=ce(e.body,t),n=C(r);return n.setAttribute("style","font-weight:bold"),n}});const mr=(e,t)=>{const r=t.withLevel(We),n=new T.MathNode("mpadded",[de(e.body,r)]),a=ke(e.dy,t);return n.setAttribute("voffset",a.number+a.unit),a.number>0?n.style.padding=a.number+a.unit+" 0 0 0":n.style.padding="0 0 "+Math.abs(a.number)+a.unit+" 0",n};u({type:"raise",names:["\\raise","\\lower"],props:{numArgs:2,argTypes:["size","primitive"],primitive:!0},handler({parser:e,funcName:t},r){const n=Fe(r[0],"size").value;"\\lower"===t&&(n.number*=-1);const a=r[1];return{type:"raise",mode:e.mode,dy:n,body:a}},mathmlBuilder:mr}),u({type:"raise",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler({parser:e,funcName:t},r){const n=Fe(r[0],"size").value,a=r[1];return{type:"raise",mode:e.mode,dy:n,body:a}},mathmlBuilder:mr}),u({type:"ref",names:["\\ref","\\eqref"],props:{numArgs:1,argTypes:["raw"]},handler:({parser:e,funcName:t},r)=>({type:"ref",mode:e.mode,funcName:t,string:r[0].string.replace(er,"")}),mathmlBuilder(e,t){const r="\\ref"===e.funcName?["tml-ref"]:["tml-ref","tml-eqref"];return new v("#"+e.string,r,null)}}),u({type:"reflect",names:["\\reflectbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:({parser:e},t)=>({type:"reflect",mode:e.mode,body:t[0]}),mathmlBuilder(e,t){const r=de(e.body,t);return r.style.transform="scaleX(-1)",r}}),u({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler:({parser:e})=>({type:"internal",mode:e.mode})}),u({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler({parser:e},t,r){const n=r[0],a=Fe(t[0],"size"),o=Fe(t[1],"size");return{type:"rule",mode:e.mode,shift:n&&Fe(n,"size").value,width:a.value,height:o.value}},mathmlBuilder(e,t){const r=ke(e.width,t),n=ke(e.height,t),a=e.shift?ke(e.shift,t):{number:0,unit:"em"},o=t.color&&t.getColor()||"black",i=new T.MathNode("mspace");if(r.number>0&&n.number>0&&i.setAttribute("mathbackground",o),i.setAttribute("width",r.number+r.unit),i.setAttribute("height",n.number+n.unit),0===a.number)return i;const s=new T.MathNode("mpadded",[i]);return a.number>=0?s.setAttribute("height","+"+a.number+a.unit):(s.setAttribute("height",a.number+a.unit),s.setAttribute("depth","+"+-a.number+a.unit)),s.setAttribute("voffset",a.number+a.unit),s}});const hr={"\\tiny":.5,"\\sixptsize":.6,"\\Tiny":.6,"\\scriptsize":.7,"\\footnotesize":.8,"\\small":.9,"\\normalsize":1,"\\large":1.2,"\\Large":1.44,"\\LARGE":1.728,"\\huge":2.074,"\\Huge":2.488};u({type:"sizing",names:["\\tiny","\\sixptsize","\\Tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],props:{numArgs:0,allowedInText:!0},handler:({breakOnTokenText:e,funcName:t,parser:r},n)=>{r.settings.strict&&"math"===r.mode&&console.log(`Temml strict-mode warning: Command ${t} is invalid in math mode.`);const a=r.parseExpression(!1,e,!0);return{type:"sizing",mode:r.mode,funcName:t,body:a}},mathmlBuilder:(e,t)=>{const r=t.withFontSize(hr[e.funcName]),n=ce(e.body,r),a=C(n),o=(hr[e.funcName]/t.fontSize).toFixed(4);return a.setAttribute("mathsize",o+"em"),a}}),u({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:({parser:e},t,r)=>{let n=!1,a=!1;const o=r[0]&&Fe(r[0],"ordgroup");if(o){let e="";for(let t=0;t<o.body.length;++t){if(e=o.body[t].text,"t"===e)n=!0;else{if("b"!==e){n=!1,a=!1;break}a=!0}}}else n=!0,a=!0;const i=t[0];return{type:"smash",mode:e.mode,body:i,smashHeight:n,smashDepth:a}},mathmlBuilder:(e,t)=>{const r=new T.MathNode("mpadded",[de(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),u({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler({parser:e},t,r){const n=r[0],a=t[0];return{type:"sqrt",mode:e.mode,body:a,index:n}},mathmlBuilder(e,t){const{body:r,index:n}=e;return n?new T.MathNode("mroot",[de(r,t),de(n,t.incrementLevel())]):new T.MathNode("msqrt",[de(r,t)])}});const fr={display:0,text:1,script:2,scriptscript:3},gr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]};u({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({breakOnTokenText:e,funcName:t,parser:r},n){const a=r.parseExpression(!0,e,!0),o=t.slice(1,t.length-5);return{type:"styling",mode:r.mode,scriptLevel:o,body:a}},mathmlBuilder(e,t){const r=t.withLevel(fr[e.scriptLevel]),n=ce(e.body,r),a=C(n),o=gr[e.scriptLevel];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});const xr=/^m(over|under|underover)$/;d({type:"supsub",mathmlBuilder(e,t){let r,n,a=!1,o=!1,i=!1,s=!1;e.base&&"horizBrace"===e.base.type&&(n=!!e.sup,n===e.base.isOver&&(a=!0,r=e.base.isOver)),!e.base||e.base.stack||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0,o=!e.base.symbol,i=o&&!e.isFollowedByDelimiter,s=e.base.needsLeadingSpace);const l=e.base&&e.base.stack?[de(e.base.body[0],t)]:[de(e.base,t)],c=t.inSubOrSup();if(e.sub){const r=de(e.sub,c);3===t.level&&r.setAttribute("scriptlevel","2"),l.push(r)}if(e.sup){const r=de(e.sup,c);3===t.level&&r.setAttribute("scriptlevel","2");const n="mrow"===r.type?r.children[0]:r;n&&"mo"===n.type&&n.classes.includes("tml-prime")&&e.base&&e.base.text&&"fF".indexOf(e.base.text)>-1&&n.classes.push("prime-pad"),l.push(r)}let u;if(a)u=r?"mover":"munder";else if(e.sub)if(e.sup){const r=e.base;u=r&&("op"===r.type&&r.limits||"multiscript"===r.type)&&(t.level===Ve||r.alwaysHandleSupSub)||r&&"operatorname"===r.type&&r.alwaysHandleSupSub&&(t.level===Ve||r.limits)?"munderover":"msubsup"}else{const r=e.base;u=r&&"op"===r.type&&r.limits&&(t.level===Ve||r.alwaysHandleSupSub)||r&&"operatorname"===r.type&&r.alwaysHandleSupSub&&(r.limits||t.level===Ve)?"munder":"msub"}else{const r=e.base;u=r&&"op"===r.type&&r.limits&&(t.level===Ve||r.alwaysHandleSupSub)||r&&"operatorname"===r.type&&r.alwaysHandleSupSub&&(r.limits||t.level===Ve)?"mover":"msup"}let d=new T.MathNode(u,l);if(o){const e=new T.MathNode("mo",[re("\u2061","text")]);if(s){const t=new T.MathNode("mspace");t.setAttribute("width","0.1667em"),d=T.newDocumentFragment([t,d,e])}else d=T.newDocumentFragment([d,e]);if(i){const e=new T.MathNode("mspace");e.setAttribute("width","0.1667em"),d.children.push(e)}}else xr.test(u)&&(d=new T.MathNode("mrow",[d]));return d}});const br=["\\shortmid","\\nshortmid","\\shortparallel","\\nshortparallel","\\smallsetminus"],wr=["\\Rsh","\\Lsh","\\restriction"];d({type:"atom",mathmlBuilder(e,t){const r=new T.MathNode("mo",[re(e.text,e.mode)]);if("punct"===e.family)r.setAttribute("separator","true");else if("open"===e.family||"close"===e.family)"open"===e.family?(r.setAttribute("form","prefix"),r.setAttribute("stretchy","false")):"close"===e.family&&(r.setAttribute("form","postfix"),r.setAttribute("stretchy","false"));else if("\\mid"===e.text)r.setAttribute("lspace","0.22em"),r.setAttribute("rspace","0.22em"),r.setAttribute("stretchy","false");else if("rel"===e.family&&(e=>{if(1===e.length){const t=e.codePointAt(0);return 8591<t&&t<8704}return e.indexOf("arrow")>-1||e.indexOf("harpoon")>-1||wr.includes(e)})(e.text))r.setAttribute("stretchy","false");else if(br.includes(e.text))r.setAttribute("mathsize","70%");else if(":"===e.text)r.attributes.lspace="0.2222em",r.attributes.rspace="0.2222em";else if(e.needsSpacing)return"bin"===e.family?new T.MathNode("mrow",[Ne(.222),r,Ne(.222)]):new T.MathNode("mrow",[Ne(.2778),r,Ne(.2778)]);return r}});const yr={mathbf:"bold",mathrm:"normal",textit:"italic",mathit:"italic",mathnormal:"italic",mathbb:"double-struck",mathcal:"script",mathfrak:"fraktur",mathscr:"script",mathsf:"sans-serif",mathtt:"monospace"},vr=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsc"===t.fontFamily)return"normal";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"sans-serif-bold":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";const r=t.font;if(!r||"mathnormal"===r)return null;const n=e.mode;switch(r){case"mathit":case"greekItalic":return"italic";case"mathrm":{const t=e.text.codePointAt(0);return 939<t&&t<975?"italic":"normal"}case"up@greek":return"normal";case"boldsymbol":case"mathboldsymbol":return"bold-italic";case"mathbf":return"bold";case"mathbb":return"double-struck";case"mathfrak":return"fraktur";case"mathscr":case"mathcal":return"script";case"mathsf":return"sans-serif";case"mathsfit":return"sans-serif-italic";case"mathtt":return"monospace"}let a=e.text;return B[n][a]&&B[n][a].replace&&(a=B[n][a].replace),Object.prototype.hasOwnProperty.call(yr,r)?yr[r]:null},Ar=Object.freeze({B:8426,E:8427,F:8427,H:8387,I:8391,L:8390,M:8422,R:8393,e:8394,g:8355,o:8389}),Er=Object.freeze({C:8426,H:8388,I:8392,R:8394,Z:8398}),_r=Object.freeze({C:8383,H:8389,N:8391,P:8393,Q:8393,R:8395,Z:8394}),Cr=Object.freeze({\u03f5:119527,\u03d1:119564,\u03f0:119534,\u03c6:119577,\u03f1:119535,\u03d6:119563}),Tr=Object.freeze({\u03f5:119643,\u03d1:119680,\u03f0:119650,\u03c6:119693,\u03f1:119651,\u03d6:119679}),qr=Object.freeze({\u03f5:119701,\u03d1:119738,\u03f0:119708,\u03c6:119751,\u03f1:119709,\u03d6:119737}),kr=Object.freeze({\u03f5:119759,\u03d1:119796,\u03f0:119766,\u03c6:119809,\u03f1:119767,\u03d6:119795}),Nr=Object.freeze({upperCaseLatin:{normal:e=>0,bold:e=>119743,italic:e=>119795,"bold-italic":e=>119847,script:e=>Ar[e]||119899,"script-bold":e=>119951,fraktur:e=>Er[e]||120003,"fraktur-bold":e=>120107,"double-struck":e=>_r[e]||120055,"sans-serif":e=>120159,"sans-serif-bold":e=>120211,"sans-serif-italic":e=>120263,"sans-serif-bold-italic":e=>120380,monospace:e=>120367},lowerCaseLatin:{normal:e=>0,bold:e=>119737,italic:e=>"h"===e?8358:119789,"bold-italic":e=>119841,script:e=>Ar[e]||119893,"script-bold":e=>119945,fraktur:e=>119997,"fraktur-bold":e=>120101,"double-struck":e=>120049,"sans-serif":e=>120153,"sans-serif-bold":e=>120205,"sans-serif-italic":e=>120257,"sans-serif-bold-italic":e=>120309,monospace:e=>120361},upperCaseGreek:{normal:e=>0,bold:e=>119575,italic:e=>119633,"bold-italic":e=>119575,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>0,"sans-serif":e=>119749,"sans-serif-bold":e=>119749,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>119807,monospace:e=>0},lowerCaseGreek:{normal:e=>0,bold:e=>119569,italic:e=>119627,"bold-italic":e=>"\u03d5"===e?119678:119685,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>0,"sans-serif":e=>119743,"sans-serif-bold":e=>119743,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>119801,monospace:e=>0},varGreek:{normal:e=>0,bold:e=>Cr[e]||-51,italic:e=>0,"bold-italic":e=>Tr[e]||58,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>0,"sans-serif":e=>qr[e]||116,"sans-serif-bold":e=>qr[e]||116,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>kr[e]||174,monospace:e=>0},numeral:{normal:e=>0,bold:e=>120734,italic:e=>0,"bold-italic":e=>0,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>120744,"sans-serif":e=>120754,"sans-serif-bold":e=>120764,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>0,monospace:e=>120774}}),Sr=(e,t)=>{const r=e.codePointAt(0),n=64<r&&r<91?"upperCaseLatin":96<r&&r<123?"lowerCaseLatin":912<r&&r<938?"upperCaseGreek":944<r&&r<970||"\u03d5"===e?"lowerCaseGreek":120545<r&&r<120572||Cr[e]?"varGreek":47<r&&r<58?"numeral":"other";return"other"===n?e:String.fromCodePoint(r+Nr[n][t](e))},Mr=Object.freeze({a:"\u1d00",b:"\u0299",c:"\u1d04",d:"\u1d05",e:"\u1d07",f:"\ua730",g:"\u0262",h:"\u029c",i:"\u026a",j:"\u1d0a",k:"\u1d0b",l:"\u029f",m:"\u1d0d",n:"\u0274",o:"\u1d0f",p:"\u1d18",q:"\u01eb",r:"\u0280",s:"s",t:"\u1d1b",u:"\u1d1c",v:"\u1d20",w:"\u1d21",x:"x",y:"\u028f",z:"\u1d22"}),Lr=/^\d(?:[\d,.]*\d)?$/,Or=/[A-Ba-z]/,Dr=new Set(["\\prime","\\dprime","\\trprime","\\qprime","\\backprime","\\backdprime","\\backtrprime"]);d({type:"mathord",mathmlBuilder(e,t){const r=re(e.text,e.mode,t),n=r.text.codePointAt(0),a=912<n&&n<938?"normal":"italic",o=vr(e,t)||a;if("script"===o)return r.text=Sr(r.text,o),new T.MathNode("mi",[r],[t.font]);"italic"!==o&&(r.text=Sr(r.text,o));let i=new T.MathNode("mi",[r]);return"normal"===o&&(i.setAttribute("mathvariant","normal"),1===r.text.length&&(i=new T.MathNode("mpadded",[i]),i.setAttribute("lspace","0"),i.setAttribute("rspace","0"))),i}}),d({type:"textord",mathmlBuilder(e,t){let r=e.text;const n=r.codePointAt(0);"textsc"===t.fontFamily&&96<n&&n<123&&(r=Mr[r]);const a=re(r,e.mode,t),o=vr(e,t)||"normal";let i;if(Lr.test(e.text)){const t="text"===e.mode?"mtext":"mn";if("italic"===o||"bold-italic"===o)return((e,t,r)=>{const n=new T.MathNode(r,[e]),a=new T.MathNode("mstyle",[n]);return a.style["font-style"]="italic",a.style["font-family"]="Cambria, 'Times New Roman', serif","bold-italic"===t&&(a.style["font-weight"]="bold"),a})(a,o,t);"normal"!==o&&(a.text=a.text.split("").map((e=>Sr(e,o))).join("")),i=new T.MathNode(t,[a])}else if("text"===e.mode)"normal"!==o&&(a.text=Sr(a.text,o)),i=new T.MathNode("mtext",[a]);else if(Dr.has(e.text))i=new T.MathNode("mo",[a]),i.classes.push("tml-prime");else{const e=a.text;"italic"!==o&&(a.text=Sr(a.text,o)),i=new T.MathNode("mi",[a]),a.text===e&&Or.test(e)&&i.setAttribute("mathvariant","italic")}return i}});const Br={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Fr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};d({type:"spacing",mathmlBuilder(e,r){let n;if(Object.prototype.hasOwnProperty.call(Fr,e.text))n=new T.MathNode("mtext",[new T.TextNode("\xa0")]);else{if(!Object.prototype.hasOwnProperty.call(Br,e.text))throw new t(`Unknown type of space "${e.text}"`);n=new T.MathNode("mo"),"\\nobreak"===e.text&&n.setAttribute("linebreak","nobreak")}return n}}),d({type:"tag"});const $r={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm","\\textsc":"textsc"},Ir={"\\textbf":"textbf","\\textmd":"textmd"},Pr={"\\textit":"textit","\\textup":"textup"};u({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textsc","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler({parser:e,funcName:t},r){const n=r[0];return{type:"text",mode:e.mode,body:m(n),font:t}},mathmlBuilder(e,t){const r=((e,t)=>{const r=e.font;return r?$r[r]?t.withTextFontFamily($r[r]):Ir[r]?t.withTextFontWeight(Ir[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(Pr[r]):t})(e,t),n=ue(e.body,r);return ae(n)}}),u({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:({parser:e},t)=>({type:"vcenter",mode:e.mode,body:t[0]}),mathmlBuilder(e,t){const r=new T.MathNode("mtd",[de(e.body,t)]);r.style.padding="0";const n=new T.MathNode("mtr",[r]);return new T.MathNode("mtable",[n])}}),u({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,r,n){throw new t("\\verb ended by end of line instead of matching delimiter")},mathmlBuilder(e,t){const r=new T.TextNode(Rr(e)),n=new T.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});const Rr=e=>e.body.replace(/ /g,e.star?"\u2423":"\xa0"),jr=l,zr="[ \r\n\t]",Ur=`(\\\\[a-zA-Z@]+)${zr}*`,Gr="[\u0300-\u036f]",Hr=new RegExp(`${Gr}+$`),Vr=`(${zr}+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff]${Gr}*|[\ud800-\udbff][\udc00-\udfff]${Gr}*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|${Ur}|\\\\[^\ud800-\udfff])`;class Wr{constructor(e,t){this.input=e,this.settings=t,this.tokenRegex=new RegExp(Vr,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){const e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new He("EOF",new Ge(this,r,r));const n=this.tokenRegex.exec(e);if(null===n||n.index!==r)throw new t(`Unexpected character: '${e[r]}'`,new He(e[r],new Ge(this,r,r+1)));const a=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[a]){const r=e.indexOf("\n",this.tokenRegex.lastIndex);if(-1===r){if(this.tokenRegex.lastIndex=e.length,this.settings.strict)throw new t("% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode")}else this.tokenRegex.lastIndex=r+1;return this.lex()}return new He(a,new Ge(this,r,this.tokenRegex.lastIndex))}}class Xr{constructor(e={},t={}){this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new t("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const e=this.undefStack.pop();for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){return Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:this.builtins[e]}set(e,t,r=!1){if(r){for(let t=0;t<this.undefStack.length;t++)delete this.undefStack[t][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{const t=this.undefStack[this.undefStack.length-1];t&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=this.current[e])}this.current[e]=t}}const Zr={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Yr{constructor(e,t,r){this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Xr(Ke,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new Wr(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){let t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:n,end:r}=this.consumeArg(["]"]))}else({tokens:n,start:t,end:r}=this.consumeArg());return this.pushToken(new He("EOF",r.loc)),this.pushTokens(n),t.range(r,"")}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){const r=[],n=e&&e.length>0;n||this.consumeSpaces();const a=this.future();let o,i=0,s=0;do{if(o=this.popToken(),r.push(o),"{"===o.text)++i;else if("}"===o.text){if(--i,-1===i)throw new t("Extra }",o)}else if("EOF"===o.text)throw new t("Unexpected end of input in a macro argument, expected '"+(e&&n?e[s]:"}")+"'",o);if(e&&n)if((0===i||1===i&&"{"===e[s])&&o.text===e[s]){if(++s,s===e.length){r.splice(-s,s);break}}else s=0}while(0!==i||n);return"{"===a.text&&"}"===r[r.length-1].text&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:o}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new t("The length of delimiters doesn't match the number of args!");const n=r[0];for(let e=0;e<n.length;e++){const r=this.popToken();if(n[e]!==r.text)throw new t("Use of the macro doesn't match its definition",r)}}const n=[];for(let t=0;t<e;t++)n.push(this.consumeArg(r&&r[t+1]).tokens);return n}expandOnce(e){const r=this.popToken(),n=r.text,a=r.noexpand?null:this._getExpansion(n);if(null==a||e&&a.unexpandable){if(e&&null==a&&"\\"===n[0]&&!this.isDefined(n))throw new t("Undefined control sequence: "+n);return this.pushToken(r),!1}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new t("Too many expansions: infinite loop or need to increase maxExpand setting");let o=a.tokens;const i=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){o=o.slice();for(let e=o.length-1;e>=0;--e){let r=o[e];if("#"===r.text){if(0===e)throw new t("Incomplete placeholder at end of macro body",r);if(r=o[--e],"#"===r.text)o.splice(e+1,1);else{if(!/^[1-9]$/.test(r.text))throw new t("Not a valid argument number",r);o.splice(e,2,...i[+r.text-1])}}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){const e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new He(e)]):void 0}expandTokens(e){const t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){const e=this.stack.pop();e.treatAsRelax&&(e.noexpand=!1,e.treatAsRelax=!1),t.push(e)}return t}expandMacroAsText(e){const t=this.expandMacro(e);return t?t.map((e=>e.text)).join(""):t}_getExpansion(e){const t=this.macros.get(e);if(null==t)return t;if(1===e.length){const t=this.lexer.catcodes[e];if(null!=t&&13!==t)return}const r="function"==typeof t?t(this):t;if("string"==typeof r){let e=0;if(-1!==r.indexOf("#")){const t=r.replace(/##/g,"");for(;-1!==t.indexOf("#"+(e+1));)++e}const t=new Wr(r,this.settings),n=[];let a=t.lex();for(;"EOF"!==a.text;)n.push(a),a=t.lex();n.reverse();return{tokens:n,numArgs:e}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(jr,e)||Object.prototype.hasOwnProperty.call(B.math,e)||Object.prototype.hasOwnProperty.call(B.text,e)||Object.prototype.hasOwnProperty.call(Zr,e)}isExpandable(e){const t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:Object.prototype.hasOwnProperty.call(jr,e)&&!jr[e].primitive}}const Jr=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,Kr=Object.freeze({"\u208a":"+","\u208b":"-","\u208c":"=","\u208d":"(","\u208e":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9",\u2090:"a",\u2091:"e",\u2095:"h",\u1d62:"i",\u2c7c:"j",\u2096:"k",\u2097:"l",\u2098:"m",\u2099:"n",\u2092:"o",\u209a:"p",\u1d63:"r",\u209b:"s",\u209c:"t",\u1d64:"u",\u1d65:"v",\u2093:"x",\u1d66:"\u03b2",\u1d67:"\u03b3",\u1d68:"\u03c1",\u1d69:"\u03d5",\u1d6a:"\u03c7","\u207a":"+","\u207b":"-","\u207c":"=","\u207d":"(","\u207e":")","\u2070":"0","\xb9":"1","\xb2":"2","\xb3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9",\u1d2c:"A",\u1d2e:"B",\u1d30:"D",\u1d31:"E",\u1d33:"G",\u1d34:"H",\u1d35:"I",\u1d36:"J",\u1d37:"K",\u1d38:"L",\u1d39:"M",\u1d3a:"N",\u1d3c:"O",\u1d3e:"P",\u1d3f:"R",\u1d40:"T",\u1d41:"U",\u2c7d:"V",\u1d42:"W",\u1d43:"a",\u1d47:"b",\u1d9c:"c",\u1d48:"d",\u1d49:"e",\u1da0:"f",\u1d4d:"g",\u02b0:"h",\u2071:"i",\u02b2:"j",\u1d4f:"k",\u02e1:"l",\u1d50:"m",\u207f:"n",\u1d52:"o",\u1d56:"p",\u02b3:"r",\u02e2:"s",\u1d57:"t",\u1d58:"u",\u1d5b:"v",\u02b7:"w",\u02e3:"x",\u02b8:"y",\u1dbb:"z",\u1d5d:"\u03b2",\u1d5e:"\u03b3",\u1d5f:"\u03b4",\u1d60:"\u03d5",\u1d61:"\u03c7",\u1dbf:"\u03b8"}),Qr=Object.freeze({\u{1d49c}:"A",\u212c:"B",\u{1d49e}:"C",\u{1d49f}:"D",\u2130:"E",\u2131:"F",\u{1d4a2}:"G",\u210b:"H",\u2110:"I",\u{1d4a5}:"J",\u{1d4a6}:"K",\u2112:"L",\u2133:"M",\u{1d4a9}:"N",\u{1d4aa}:"O",\u{1d4ab}:"P",\u{1d4ac}:"Q",\u211b:"R",\u{1d4ae}:"S",\u{1d4af}:"T",\u{1d4b0}:"U",\u{1d4b1}:"V",\u{1d4b2}:"W",\u{1d4b3}:"X",\u{1d4b4}:"Y",\u{1d4b5}:"Z"});var en={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"},"\u0327":{text:"\\c"}},tn={\u00e1:"a\u0301",\u00e0:"a\u0300",\u00e4:"a\u0308",\u01df:"a\u0308\u0304",\u00e3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1eaf:"a\u0306\u0301",\u1eb1:"a\u0306\u0300",\u1eb5:"a\u0306\u0303",\u01ce:"a\u030c",\u00e2:"a\u0302",\u1ea5:"a\u0302\u0301",\u1ea7:"a\u0302\u0300",\u1eab:"a\u0302\u0303",\u0227:"a\u0307",\u01e1:"a\u0307\u0304",\u00e5:"a\u030a",\u01fb:"a\u030a\u0301",\u1e03:"b\u0307",\u0107:"c\u0301",\u010d:"c\u030c",\u0109:"c\u0302",\u010b:"c\u0307",\u010f:"d\u030c",\u1e0b:"d\u0307",\u00e9:"e\u0301",\u00e8:"e\u0300",\u00eb:"e\u0308",\u1ebd:"e\u0303",\u0113:"e\u0304",\u1e17:"e\u0304\u0301",\u1e15:"e\u0304\u0300",\u0115:"e\u0306",\u011b:"e\u030c",\u00ea:"e\u0302",\u1ebf:"e\u0302\u0301",\u1ec1:"e\u0302\u0300",\u1ec5:"e\u0302\u0303",\u0117:"e\u0307",\u1e1f:"f\u0307",\u01f5:"g\u0301",\u1e21:"g\u0304",\u011f:"g\u0306",\u01e7:"g\u030c",\u011d:"g\u0302",\u0121:"g\u0307",\u1e27:"h\u0308",\u021f:"h\u030c",\u0125:"h\u0302",\u1e23:"h\u0307",\u00ed:"i\u0301",\u00ec:"i\u0300",\u00ef:"i\u0308",\u1e2f:"i\u0308\u0301",\u0129:"i\u0303",\u012b:"i\u0304",\u012d:"i\u0306",\u01d0:"i\u030c",\u00ee:"i\u0302",\u01f0:"j\u030c",\u0135:"j\u0302",\u1e31:"k\u0301",\u01e9:"k\u030c",\u013a:"l\u0301",\u013e:"l\u030c",\u1e3f:"m\u0301",\u1e41:"m\u0307",\u0144:"n\u0301",\u01f9:"n\u0300",\u00f1:"n\u0303",\u0148:"n\u030c",\u1e45:"n\u0307",\u00f3:"o\u0301",\u00f2:"o\u0300",\u00f6:"o\u0308",\u022b:"o\u0308\u0304",\u00f5:"o\u0303",\u1e4d:"o\u0303\u0301",\u1e4f:"o\u0303\u0308",\u022d:"o\u0303\u0304",\u014d:"o\u0304",\u1e53:"o\u0304\u0301",\u1e51:"o\u0304\u0300",\u014f:"o\u0306",\u01d2:"o\u030c",\u00f4:"o\u0302",\u1ed1:"o\u0302\u0301",\u1ed3:"o\u0302\u0300",\u1ed7:"o\u0302\u0303",\u022f:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030b",\u1e55:"p\u0301",\u1e57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030c",\u1e59:"r\u0307",\u015b:"s\u0301",\u1e65:"s\u0301\u0307",\u0161:"s\u030c",\u1e67:"s\u030c\u0307",\u015d:"s\u0302",\u1e61:"s\u0307",\u1e97:"t\u0308",\u0165:"t\u030c",\u1e6b:"t\u0307",\u00fa:"u\u0301",\u00f9:"u\u0300",\u00fc:"u\u0308",\u01d8:"u\u0308\u0301",\u01dc:"u\u0308\u0300",\u01d6:"u\u0308\u0304",\u01da:"u\u0308\u030c",\u0169:"u\u0303",\u1e79:"u\u0303\u0301",\u016b:"u\u0304",\u1e7b:"u\u0304\u0308",\u016d:"u\u0306",\u01d4:"u\u030c",\u00fb:"u\u0302",\u016f:"u\u030a",\u0171:"u\u030b",\u1e7d:"v\u0303",\u1e83:"w\u0301",\u1e81:"w\u0300",\u1e85:"w\u0308",\u0175:"w\u0302",\u1e87:"w\u0307",\u1e98:"w\u030a",\u1e8d:"x\u0308",\u1e8b:"x\u0307",\u00fd:"y\u0301",\u1ef3:"y\u0300",\u00ff:"y\u0308",\u1ef9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1e8f:"y\u0307",\u1e99:"y\u030a",\u017a:"z\u0301",\u017e:"z\u030c",\u1e91:"z\u0302",\u017c:"z\u0307",\u00c1:"A\u0301",\u00c0:"A\u0300",\u00c4:"A\u0308",\u01de:"A\u0308\u0304",\u00c3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1eae:"A\u0306\u0301",\u1eb0:"A\u0306\u0300",\u1eb4:"A\u0306\u0303",\u01cd:"A\u030c",\u00c2:"A\u0302",\u1ea4:"A\u0302\u0301",\u1ea6:"A\u0302\u0300",\u1eaa:"A\u0302\u0303",\u0226:"A\u0307",\u01e0:"A\u0307\u0304",\u00c5:"A\u030a",\u01fa:"A\u030a\u0301",\u1e02:"B\u0307",\u0106:"C\u0301",\u010c:"C\u030c",\u0108:"C\u0302",\u010a:"C\u0307",\u010e:"D\u030c",\u1e0a:"D\u0307",\u00c9:"E\u0301",\u00c8:"E\u0300",\u00cb:"E\u0308",\u1ebc:"E\u0303",\u0112:"E\u0304",\u1e16:"E\u0304\u0301",\u1e14:"E\u0304\u0300",\u0114:"E\u0306",\u011a:"E\u030c",\u00ca:"E\u0302",\u1ebe:"E\u0302\u0301",\u1ec0:"E\u0302\u0300",\u1ec4:"E\u0302\u0303",\u0116:"E\u0307",\u1e1e:"F\u0307",\u01f4:"G\u0301",\u1e20:"G\u0304",\u011e:"G\u0306",\u01e6:"G\u030c",\u011c:"G\u0302",\u0120:"G\u0307",\u1e26:"H\u0308",\u021e:"H\u030c",\u0124:"H\u0302",\u1e22:"H\u0307",\u00cd:"I\u0301",\u00cc:"I\u0300",\u00cf:"I\u0308",\u1e2e:"I\u0308\u0301",\u0128:"I\u0303",\u012a:"I\u0304",\u012c:"I\u0306",\u01cf:"I\u030c",\u00ce:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1e30:"K\u0301",\u01e8:"K\u030c",\u0139:"L\u0301",\u013d:"L\u030c",\u1e3e:"M\u0301",\u1e40:"M\u0307",\u0143:"N\u0301",\u01f8:"N\u0300",\u00d1:"N\u0303",\u0147:"N\u030c",\u1e44:"N\u0307",\u00d3:"O\u0301",\u00d2:"O\u0300",\u00d6:"O\u0308",\u022a:"O\u0308\u0304",\u00d5:"O\u0303",\u1e4c:"O\u0303\u0301",\u1e4e:"O\u0303\u0308",\u022c:"O\u0303\u0304",\u014c:"O\u0304",\u1e52:"O\u0304\u0301",\u1e50:"O\u0304\u0300",\u014e:"O\u0306",\u01d1:"O\u030c",\u00d4:"O\u0302",\u1ed0:"O\u0302\u0301",\u1ed2:"O\u0302\u0300",\u1ed6:"O\u0302\u0303",\u022e:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030b",\u1e54:"P\u0301",\u1e56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030c",\u1e58:"R\u0307",\u015a:"S\u0301",\u1e64:"S\u0301\u0307",\u0160:"S\u030c",\u1e66:"S\u030c\u0307",\u015c:"S\u0302",\u1e60:"S\u0307",\u0164:"T\u030c",\u1e6a:"T\u0307",\u00da:"U\u0301",\u00d9:"U\u0300",\u00dc:"U\u0308",\u01d7:"U\u0308\u0301",\u01db:"U\u0308\u0300",\u01d5:"U\u0308\u0304",\u01d9:"U\u0308\u030c",\u0168:"U\u0303",\u1e78:"U\u0303\u0301",\u016a:"U\u0304",\u1e7a:"U\u0304\u0308",\u016c:"U\u0306",\u01d3:"U\u030c",\u00db:"U\u0302",\u016e:"U\u030a",\u0170:"U\u030b",\u1e7c:"V\u0303",\u1e82:"W\u0301",\u1e80:"W\u0300",\u1e84:"W\u0308",\u0174:"W\u0302",\u1e86:"W\u0307",\u1e8c:"X\u0308",\u1e8a:"X\u0307",\u00dd:"Y\u0301",\u1ef2:"Y\u0300",\u0178:"Y\u0308",\u1ef8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1e8e:"Y\u0307",\u0179:"Z\u0301",\u017d:"Z\u030c",\u1e90:"Z\u0302",\u017b:"Z\u0307",\u03ac:"\u03b1\u0301",\u1f70:"\u03b1\u0300",\u1fb1:"\u03b1\u0304",\u1fb0:"\u03b1\u0306",\u03ad:"\u03b5\u0301",\u1f72:"\u03b5\u0300",\u03ae:"\u03b7\u0301",\u1f74:"\u03b7\u0300",\u03af:"\u03b9\u0301",\u1f76:"\u03b9\u0300",\u03ca:"\u03b9\u0308",\u0390:"\u03b9\u0308\u0301",\u1fd2:"\u03b9\u0308\u0300",\u1fd1:"\u03b9\u0304",\u1fd0:"\u03b9\u0306",\u03cc:"\u03bf\u0301",\u1f78:"\u03bf\u0300",\u03cd:"\u03c5\u0301",\u1f7a:"\u03c5\u0300",\u03cb:"\u03c5\u0308",\u03b0:"\u03c5\u0308\u0301",\u1fe2:"\u03c5\u0308\u0300",\u1fe1:"\u03c5\u0304",\u1fe0:"\u03c5\u0306",\u03ce:"\u03c9\u0301",\u1f7c:"\u03c9\u0300",\u038e:"\u03a5\u0301",\u1fea:"\u03a5\u0300",\u03ab:"\u03a5\u0308",\u1fe9:"\u03a5\u0304",\u1fe8:"\u03a5\u0306",\u038f:"\u03a9\u0301",\u1ffa:"\u03a9\u0300"};const rn=["bin","op","open","punct","rel"],nn=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/,an=/^ *\\text/;class on{constructor(e,t,r=!1){this.mode="math",this.gullet=new Yr(e,t,this.mode),this.settings=t,this.isPreamble=r,this.leftrightDepth=0,this.prevAtomType=""}expect(e,r=!0){if(this.fetch().text!==e)throw new t(`Expected '${e}', got '${this.fetch().text}'`,this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");const e=this.parseExpression(!1);if(this.expect("EOF"),this.isPreamble){const e=Object.create(null);return Object.entries(this.gullet.macros.current).forEach((([t,r])=>{e[t]=r})),this.gullet.endGroup(),e}const t=this.gullet.macros.get("\\df@tag");return this.gullet.endGroup(),t&&(this.gullet.macros.current["\\df@tag"]=t),e}static get endOfExpression(){return["}","\\endgroup","\\end","\\right","\\endtoggle","&"]}subparse(e){const t=this.nextToken;this.consume(),this.gullet.pushToken(new He("}")),this.gullet.pushTokens(e);const r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t,r){const n=[];for(this.prevAtomType="";;){"math"===this.mode&&this.consumeSpaces();const a=this.fetch();if(-1!==on.endOfExpression.indexOf(a.text))break;if(t&&a.text===t)break;if(r&&"\\middle"===a.text)break;if(e&&jr[a.text]&&jr[a.text].infix)break;const o=this.parseAtom(t);if(!o)break;"internal"!==o.type&&(n.push(o),this.prevAtomType="atom"===o.type?o.family:o.type)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){let r,n=-1;for(let a=0;a<e.length;a++)if("infix"===e[a].type){if(-1!==n)throw new t("only one infix operator per group",e[a].token);n=a,r=e[a].replaceWith}if(-1!==n&&r){let t,a;const o=e.slice(0,n),i=e.slice(n+1);let s;return t=1===o.length&&"ordgroup"===o[0].type?o[0]:{type:"ordgroup",mode:this.mode,body:o},a=1===i.length&&"ordgroup"===i[0].type?i[0]:{type:"ordgroup",mode:this.mode,body:i},s="\\\\abovefrac"===r?this.callFunction(r,[t,e[n],a],[]):this.callFunction(r,[t,a],[]),[s]}return e}handleSupSubscript(e){const r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();const a=this.parseGroup(e);if(!a)throw new t("Expected group after '"+n+"'",r);return a}formatUnsupportedCmd(e){const t=[];for(let r=0;r<e.length;r++)t.push({type:"textord",mode:"text",text:e[r]});const r={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){const r=this.parseGroup("atom",e);if("text"===this.mode)return r;let n,a;for(;;){this.consumeSpaces();const e=this.fetch();if("\\limits"===e.text||"\\nolimits"===e.text){if(r&&"op"===r.type){const t="\\limits"===e.text;r.limits=t,r.alwaysHandleSupSub=!0}else{if(!r||"operatorname"!==r.type)throw new t("Limit controls must follow a math operator",e);r.alwaysHandleSupSub&&(r.limits="\\limits"===e.text)}this.consume()}else if("^"===e.text){if(n)throw new t("Double superscript",e);n=this.handleSupSubscript("superscript")}else if("_"===e.text){if(a)throw new t("Double subscript",e);a=this.handleSupSubscript("subscript")}else if("'"===e.text){if(n)throw new t("Double superscript",e);const r={type:"textord",mode:this.mode,text:"\\prime"},a=[r];for(this.consume();"'"===this.fetch().text;)a.push(r),this.consume();"^"===this.fetch().text&&a.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:a}}else{if(!Kr[e.text])break;{const t=Jr.test(e.text),r=[];for(r.push(new He(Kr[e.text])),this.consume();;){const e=this.fetch().text;if(!Kr[e])break;if(Jr.test(e)!==t)break;r.unshift(new He(Kr[e])),this.consume()}const o=this.subparse(r);t?a={type:"ordgroup",mode:"math",body:o}:n={type:"ordgroup",mode:"math",body:o}}}}if(n||a){if(r&&"multiscript"===r.type&&!r.postscripts)return r.postscripts={sup:n,sub:a},r;{const e=!r||"op"!==r.type&&"operatorname"!==r.type?void 0:Rt(this.nextToken.text);return{type:"supsub",mode:this.mode,base:r,sup:n,sub:a,isFollowedByDelimiter:e}}}return r}parseFunction(e,r){const n=this.fetch(),a=n.text,o=jr[a];if(!o)return null;if(this.consume(),r&&"atom"!==r&&!o.allowedInArgument)throw new t("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if("text"===this.mode&&!o.allowedInText)throw new t("Can't use function '"+a+"' in text mode",n);if("math"===this.mode&&!1===o.allowedInMath)throw new t("Can't use function '"+a+"' in math mode",n);const i=this.prevAtomType,{args:s,optArgs:l}=this.parseArguments(a,o);return this.prevAtomType=i,this.callFunction(a,s,l,n,e)}callFunction(e,r,n,a,o){const i={funcName:e,parser:this,token:a,breakOnTokenText:o},s=jr[e];if(s&&s.handler)return s.handler(i,r,n);throw new t(`No function handler for ${e}`)}parseArguments(e,r){const n=r.numArgs+r.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};const a=[],o=[];for(let i=0;i<n;i++){let n=r.argTypes&&r.argTypes[i];const s=i<r.numOptionalArgs;(r.primitive&&null==n||"sqrt"===r.type&&1===i&&null==o[0])&&(n="primitive");const l=this.parseGroupOfType(`argument to '${e}'`,n,s);if(s)o.push(l);else{if(null==l)throw new t("Null argument, please report this as a bug");a.push(l)}}return{args:a,optArgs:o}}parseGroupOfType(e,r,n){switch(r){case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{const e=this.parseArgumentGroup(n,"text");return null!=e?{type:"styling",mode:e.mode,body:[e],scriptLevel:"text"}:null}case"raw":{const e=this.parseStringGroup("raw",n);return null!=e?{type:"raw",mode:"text",string:e.text}:null}case"primitive":{if(n)throw new t("A primitive argument cannot be optional");const r=this.parseGroup(e);if(null==r)throw new t("Expected group as "+e,this.fetch());return r}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new t("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;;){const e=this.fetch().text;if(" "!==e&&"\xa0"!==e&&"\ufe0e"!==e)break;this.consume()}}parseStringGroup(e,t){const r=this.gullet.scanArgument(t);if(null==r)return null;let n,a="";for(;"EOF"!==(n=this.fetch()).text;)a+=n.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(e,r){const n=this.fetch();let a,o=n,i="";for(;"EOF"!==(a=this.fetch()).text&&e.test(i+a.text);)o=a,i+=o.text,this.consume();if(""===i)throw new t("Invalid "+r+": '"+n.text+"'",n);return n.range(o,i)}parseSizeGroup(e){let r,n=!1;if(this.gullet.consumeSpaces(),r=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"),!r)return null;e||0!==r.text.length||(r.text="0pt",n=!0);const a=nn.exec(r.text);if(!a)throw new t("Invalid size: '"+r.text+"'",r);const o={number:+(a[1]+a[2]),unit:a[3]};if(!Te(o))throw new t("Invalid unit: '"+o.unit+"'",r);return{type:"size",mode:this.mode,value:o,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);const t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;let r=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return r=t.text.replace(/{\u2044}/g,"/"),{type:"url",mode:this.mode,url:r}}parseArgumentGroup(e,t){const r=this.gullet.scanArgument(e);if(null==r)return null;const n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();const a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();const o={type:"ordgroup",mode:this.mode,loc:r.loc,body:a};return t&&this.switchMode(n),o}parseGroup(e,t){const r=this.fetch(),n=r.text;let a;if("{"===n||"\\begingroup"===n||"\\toggle"===n){this.consume();const e="{"===n?"}":"\\begingroup"===n?"\\endgroup":"\\endtoggle";this.gullet.beginGroup();const t=this.parseExpression(!1,e),o=this.fetch();this.expect(e),this.gullet.endGroup(),a={type:"\\endtoggle"===o.text?"toggle":"ordgroup",mode:this.mode,loc:Ge.range(r,o),body:t,semisimple:"\\begingroup"===n||void 0}}else a=this.parseFunction(t,e)||this.parseSymbol(),null!=a||"\\"!==n[0]||Object.prototype.hasOwnProperty.call(Zr,n)||(a=this.formatUnsupportedCmd(n),this.consume());return a}formLigatures(e){let t=e.length-1;for(let r=0;r<t;++r){const n=e[r],a=n.text;"-"===a&&"-"===e[r+1].text&&(r+1<t&&"-"===e[r+2].text?(e.splice(r,3,{type:"textord",mode:"text",loc:Ge.range(n,e[r+2]),text:"---"}),t-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:Ge.range(n,e[r+1]),text:"--"}),t-=1)),"'"!==a&&"`"!==a||e[r+1].text!==a||(e.splice(r,2,{type:"textord",mode:"text",loc:Ge.range(n,e[r+1]),text:a+a}),t-=1)}}parseSymbol(){const e=this.fetch();let r=e.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();let e=r.slice(5);const n="*"===e.charAt(0);if(n&&(e=e.slice(1)),e.length<2||e.charAt(0)!==e.slice(-1))throw new t("\\verb assertion failed --\n please report what input caused this bug");return e=e.slice(1,-1),{type:"verb",mode:"text",body:e,star:n}}if(Object.prototype.hasOwnProperty.call(tn,r[0])&&"math"===this.mode&&!B[this.mode][r[0]]){if(this.settings.strict&&"math"===this.mode)throw new t(`Accented Unicode text character "${r[0]}" used in math mode`,e);r=tn[r[0]]+r.slice(1)}const n="math"===this.mode?Hr.exec(r):null;let a;if(n&&(r=r.substring(0,n.index),"i"===r?r="\u0131":"j"===r&&(r="\u0237")),B[this.mode][r]){let t=B[this.mode][r].group;"bin"===t&&rn.includes(this.prevAtomType)&&(t="open");const n=Ge.range(e);let o;if(Object.prototype.hasOwnProperty.call(O,t)){const e=t;o={type:"atom",mode:this.mode,family:e,loc:n,text:r},"rel"!==e&&"bin"!==e||"text"!==this.prevAtomType||an.test(n.lexer.input.slice(n.end))&&(o.needsSpacing=!0)}else{if(Qr[r]){this.consume();const e=this.fetch().text.charCodeAt(0),t=65025===e?"mathscr":"mathcal";return 65024!==e&&65025!==e||this.consume(),{type:"font",mode:"math",font:t,body:{type:"mathord",mode:"math",loc:n,text:Qr[r]}}}o={type:t,mode:this.mode,loc:n,text:r}}a=o}else{if(!(r.charCodeAt(0)>=128||Hr.exec(r)))return null;if(this.settings.strict&&"math"===this.mode)throw new t(`Unicode text character "${r[0]}" used in math mode`,e);a={type:"textord",mode:"text",loc:Ge.range(e),text:r}}if(this.consume(),n)for(let r=0;r<n[0].length;r++){const o=n[0][r];if(!en[o])throw new t(`Unknown accent ' ${o}'`,e);const i=en[o][this.mode]||en[o].text;if(!i)throw new t(`Accent ${o} unsupported in ${this.mode} mode`,e);a={type:"accent",mode:this.mode,loc:Ge.range(e),label:i,isStretchy:!1,base:a}}return a}}const sn=function(e,r){if(!("string"==typeof e||e instanceof String))throw new TypeError("Temml can only parse string typed expression");const n=new on(e,r);delete n.gullet.macros.current["\\df@tag"];let a=n.parse();if(!(a.length>0&&a[0].type&&"array"===a[0].type&&a[0].addEqnNum)&&n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new t("\\tag works only in display mode");n.gullet.feed("\\df@tag"),a=[{type:"tag",mode:"text",body:a,tag:n.parse()}]}return a},ln=[2,2,3,3];class cn{constructor(e){this.level=e.level,this.color=e.color,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontSize=e.fontSize||1,this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.maxSize=e.maxSize}extend(e){const t={level:this.level,color:this.color,font:this.font,fontFamily:this.fontFamily,fontSize:this.fontSize,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return new cn(t)}withLevel(e){return this.extend({level:e})}incrementLevel(){return this.extend({level:Math.min(this.level+1,3)})}inSubOrSup(){return this.extend({level:ln[this.level]})}withColor(e){return this.extend({color:e})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withFontSize(e){return this.extend({fontSize:e})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}getColor(){return this.color}}function un(e){const t={};let r=0;const n=document.getElementsByClassName("tml-eqn");for(let e of n)for(r+=1,e.setAttribute("id","tml-eqn-"+String(r));"mtable"!==e.tagName;){if(e.getElementsByClassName("tml-label").length>0){const n=e.attributes.id.value;t[n]=String(r);break}e=e.parentElement}const a=document.getElementsByClassName("tml-tageqn");for(const e of a){if(e.getElementsByClassName("tml-label").length>0){const r=e.getElementsByClassName("tml-tag");if(r.length>0){const n=e.attributes.id.value;t[n]=r[0].textContent}}}[...e.getElementsByClassName("tml-ref")].forEach((e=>{const r=e.getAttribute("href");let n=t[r.slice(1)];-1===e.className.indexOf("tml-eqref")?(n=n.replace(/^\(/,""),n=n.replace(/\)$/,"")):("("!==n.charAt(0)&&(n="("+n),")"!==n.slice(-1)&&(n+=")"));const a=document.createElementNS("http://www.w3.org/1998/Math/MathML","mtext");a.appendChild(document.createTextNode(n));const o=document.createElementNS("http://www.w3.org/1998/Math/MathML","math");o.appendChild(a),e.textContent="",e.appendChild(o)}))}const dn=function(e,t,r){let n=r,a=0;const o=e.length;for(;n<t.length;){const r=t[n];if(a<=0&&t.slice(n,n+o)===e)return n;"\\"===r?n++:"{"===r?a++:"}"===r&&a--,n++}return-1},pn=/^\\(?:begin|(?:eq)?ref){/,mn=[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{equation*}",right:"\\end{equation*}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{align*}",right:"\\end{align*}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{alignat*}",right:"\\end{alignat*}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{gather*}",right:"\\end{gather*}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\ref{",right:"}",display:!1},{left:"\\eqref{",right:"}",display:!1},{left:"\\[",right:"\\]",display:!0}],hn={$:[{left:"$$",right:"$$",display:!0},{left:"$`",right:"`$",display:!1},{left:"$",right:"$",display:!1}],"(":[{left:"\\[",right:"\\]",display:!0},{left:"\\(",right:"\\)",display:!1}]},fn=[{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{equation*}",right:"\\end{equation*}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{align*}",right:"\\end{align*}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{alignat*}",right:"\\end{alignat*}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{gather*}",right:"\\end{gather*}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\ref{",right:"}",display:!1},{left:"\\eqref{",right:"}",display:!1}],gn=function(e,r){const n=function(e,t){let r;const n=[],a=new RegExp("("+t.map((e=>e.left.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"))).join("|")+")");for(;r=e.search(a),-1!==r;){r>0&&(n.push({type:"text",data:e.slice(0,r)}),e=e.slice(r));const a=t.findIndex((t=>e.startsWith(t.left)));if(r=dn(t[a].right,e,t[a].left.length),-1===r)break;const o=e.slice(0,r+t[a].right.length),i=pn.test(o)?o:e.slice(t[a].left.length,r);n.push({type:"math",data:i,rawData:o,display:t[a].display}),e=e.slice(r+t[a].right.length)}return""!==e&&n.push({type:"text",data:e}),n}(e,r.delimiters);if(1===n.length&&"text"===n[0].type)return null;const a=document.createDocumentFragment();for(let e=0;e<n.length;e++)if("text"===n[e].type)a.appendChild(document.createTextNode(n[e].data));else{const o=document.createElement("span");let i=n[e].data;r.displayMode=n[e].display;try{r.preProcess&&(i=r.preProcess(i)),temml.render(i,o,r)}catch(o){if(!(o instanceof t))throw o;r.errorCallback("Temml auto-render: Failed to parse `"+n[e].data+"` with ",o),a.appendChild(document.createTextNode(n[e].rawData));continue}a.appendChild(o)}return a},xn=function(e,t){for(let r=0;r<e.childNodes.length;r++){const n=e.childNodes[r];if(3===n.nodeType){const a=gn(n.textContent,t);a&&(r+=a.childNodes.length-1,e.replaceChild(a,n))}else if(1===n.nodeType){const e=" "+n.className+" ";-1===t.ignoredTags.indexOf(n.nodeName.toLowerCase())&&t.ignoredClasses.every((t=>-1===e.indexOf(" "+t+" ")))&&xn(n,t)}}};let bn=function(e,t,r={}){t.textContent="";const n="math"===t.tagName.toLowerCase();n&&(r.wrap="none");const a=wn(e,r);n||a.children.length>1?(t.textContent="",a.children.forEach((e=>{t.appendChild(e.toNode())}))):t.appendChild(a.toNode())};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: Temml doesn't work in quirks mode. Make sure your website has a suitable doctype."),bn=function(){throw new t("Temml doesn't work in quirks mode.")});const wn=function(e,r){const n=new s(r);try{const t=sn(e,n);return fe(t,e,new cn({level:n.displayMode?Ve:We,maxSize:n.maxSize}),n)}catch(r){return function(e,r,n){if(n.throwOnError||!(e instanceof t))throw e;const a=new w(["temml-error"],[new y(r+"\n\n"+e.toString())]);return a.style.color=n.errorColor,a.style.whiteSpace="pre-line",a}(r,e,n)}};var yn={version:"0.11.02",render:bn,renderToString:function(e,t){return wn(e,t).toMarkup()},renderMathInElement:function(e,t){if(!e)throw new Error("No element provided to render");const r={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);r.fences?r.delimiters=(e=>{if("$"===e||"("===e)return hn[e];if("$+"===e||"(+"===e)return hn[e.slice(0,1)].concat(fn);return"ams"===e?fn:"all"===e?hn["("].concat(hn.$).concat(fn):mn})(r.fences):r.delimiters=r.delimiters||mn,r.ignoredTags=r.ignoredTags||["script","noscript","style","textarea","pre","code","option"],r.ignoredClasses=r.ignoredClasses||[],r.errorCallback=r.errorCallback||console.error,r.macros=r.macros||{},xn(e,r),un(e)},postProcess:un,ParseError:t,definePreamble:function(e,t){const r=new s(t);if(r.macros={},!("string"==typeof e||e instanceof String))throw new TypeError("Temml can only parse string typed expression");const n=new on(e,r,!0);delete n.gullet.macros.current["\\df@tag"];return n.parse()},__parse:function(e,t){const r=new s(t);return sn(e,r)},__renderToMathMLTree:wn,__defineSymbol:F,__defineMacro:Je};e.exports=yn}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}var n={};return(()=>{"use strict";var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.Defuddle=void 0;const t=r(628);Object.defineProperty(e,"Defuddle",{enumerable:!0,get:function(){return t.Defuddle}})})(),n})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Defuddle=t():e.Defuddle=t()}("undefined"!=typeof self?self:this,(()=>(()=>{var e={354:function(e){var t;t=()=>(()=>{var e={4582:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var n=r({HTML:"text/html",isHTML:function(e){return e===n.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=r({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===a.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.find=function(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var n=0;n<e.length;n++)if(Object.prototype.hasOwnProperty.call(e,n)){var a=e[n];if(t.call(void 0,a,n,e))return a}},t.freeze=r,t.MIME_TYPE=n,t.NAMESPACE=a},5752:(e,t,r)=>{var n=r(4582),a=r(4722),o=r(6559),i=r(4466),s=a.DOMImplementation,l=n.NAMESPACE,c=i.ParseError,u=i.XMLReader;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function p(e){this.options=e||{locator:{}}}function m(){this.cdata=!1}function h(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function f(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function g(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function x(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}p.prototype.parseFromString=function(e,t){var r=this.options,n=new u,a=r.domBuilder||new m,i=r.errorHandler,s=r.locator,c=r.xmlns||{},p=/\/x?html?$/.test(t),h=p?o.HTML_ENTITIES:o.XML_ENTITIES;s&&a.setDocumentLocator(s),n.errorHandler=function(e,t,r){if(!e){if(t instanceof m)return t;e=t}var n={},a=e instanceof Function;function o(t){var o=e[t];!o&&a&&(o=2==e.length?function(r){e(t,r)}:e),n[t]=o&&function(e){o("[xmldom "+t+"]\t"+e+f(r))}||function(){}}return r=r||{},o("warning"),o("error"),o("fatalError"),n}(i,a,s),n.domBuilder=r.domBuilder||a,p&&(c[""]=l.HTML),c.xml=c.xml||l.XML;var g=r.normalizeLineEndings||d;return e&&"string"==typeof e?n.parse(g(e),c,h):n.errorHandler.error("invalid doc source"),a.doc},m.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,r,n){var a=this.doc,o=a.createElementNS(e,r||t),i=n.length;x(this,o),this.currentElement=o,this.locator&&h(this.locator,o);for(var s=0;s<i;s++){e=n.getURI(s);var l=n.getValue(s),c=(r=n.getQName(s),a.createAttributeNS(e,r));this.locator&&h(n.getLocator(s),c),c.value=c.nodeValue=l,o.setAttributeNode(c)}},endElement:function(e,t,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&h(this.locator,r),x(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=g.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&h(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,r){e=g.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&h(this.locator,n),x(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var a=n.createDocumentType(e,t,r);this.locator&&h(this.locator,a),x(this,a),this.doc.doctype=a}},warning:function(e){console.warn("[xmldom warning]\t"+e,f(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,f(this.locator))},fatalError:function(e){throw new c(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){m.prototype[e]=function(){return null}})),t.DOMParser=p},4722:(e,t,r)=>{var n=r(4582),a=n.find,o=n.NAMESPACE;function i(e){return""!==e}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function l(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(i):[]}(e);return Object.keys(t.reduce(s,{}))}function c(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function u(e,t){var r=e.prototype;if(!(r instanceof t)){function n(){}n.prototype=t.prototype,c(r,n=new n),e.prototype=r=n}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var d={},p=d.ELEMENT_NODE=1,m=d.ATTRIBUTE_NODE=2,h=d.TEXT_NODE=3,f=d.CDATA_SECTION_NODE=4,g=d.ENTITY_REFERENCE_NODE=5,x=d.ENTITY_NODE=6,b=d.PROCESSING_INSTRUCTION_NODE=7,w=d.COMMENT_NODE=8,y=d.DOCUMENT_NODE=9,v=d.DOCUMENT_TYPE_NODE=10,A=d.DOCUMENT_FRAGMENT_NODE=11,E=d.NOTATION_NODE=12,_={},C={},T=(_.INDEX_SIZE_ERR=(C[1]="Index size error",1),_.DOMSTRING_SIZE_ERR=(C[2]="DOMString size error",2),_.HIERARCHY_REQUEST_ERR=(C[3]="Hierarchy request error",3)),q=(_.WRONG_DOCUMENT_ERR=(C[4]="Wrong document",4),_.INVALID_CHARACTER_ERR=(C[5]="Invalid character",5),_.NO_DATA_ALLOWED_ERR=(C[6]="No data allowed",6),_.NO_MODIFICATION_ALLOWED_ERR=(C[7]="No modification allowed",7),_.NOT_FOUND_ERR=(C[8]="Not found",8)),N=(_.NOT_SUPPORTED_ERR=(C[9]="Not supported",9),_.INUSE_ATTRIBUTE_ERR=(C[10]="Attribute in use",10));function k(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,C[e]),this.message=C[e],Error.captureStackTrace&&Error.captureStackTrace(this,k);return r.code=e,t&&(this.message=this.message+": "+t),r}function S(){}function M(e,t){this._node=e,this._refresh=t,L(this)}function L(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(be(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var n=r.length;n in e;n++)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n];c(r,e),e._inc=t}}function O(){}function D(e,t){for(var r=e.length;r--;)if(e[r]===t)return r}function B(e,t,r,n){if(n?t[D(t,n)]=r:t[t.length++]=r,e){r.ownerElement=e;var a=e.ownerDocument;a&&(n&&z(a,e,n),function(e,t,r){e&&e._inc++,r.namespaceURI===o.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}(a,e,r))}}function F(e,t,r){var n=D(t,r);if(!(n>=0))throw new k(q,new Error(e.tagName+"@"+r));for(var a=t.length-1;n<a;)t[n]=t[++n];if(t.length=a,e){var o=e.ownerDocument;o&&(z(o,e,r),r.ownerElement=null)}}function $(){}function I(){}function P(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function R(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(R(e,t))return!0}while(e=e.nextSibling)}function j(){this.ownerDocument=this}function z(e,t,r,n){e&&e._inc++,r.namespaceURI===o.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function U(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r)n[n.length++]=r;else{for(var a=t.firstChild,o=0;a;)n[o++]=a,a=a.nextSibling;n.length=o,delete n[n.length]}}}function G(e,t){var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,U(e.ownerDocument,e),t}function H(e){return e&&e.nodeType===I.DOCUMENT_TYPE_NODE}function V(e){return e&&e.nodeType===I.ELEMENT_NODE}function W(e){return e&&e.nodeType===I.TEXT_NODE}function X(e,t){var r=e.childNodes||[];if(a(r,V)||H(t))return!1;var n=a(r,H);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function Z(e,t){var r=e.childNodes||[];if(a(r,(function(e){return V(e)&&e!==t})))return!1;var n=a(r,H);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function Y(e,t,r){var n=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===I.DOCUMENT_FRAGMENT_NODE){var i=o.filter(V);if(i.length>1||a(o,W))throw new k(T,"More than one element or text in fragment");if(1===i.length&&!X(e,r))throw new k(T,"Element in fragment can not be inserted before doctype")}if(V(t)&&!X(e,r))throw new k(T,"Only one element can be added and only after doctype");if(H(t)){if(a(n,H))throw new k(T,"Only one doctype is allowed");var s=a(n,V);if(r&&n.indexOf(s)<n.indexOf(r))throw new k(T,"Doctype can only be inserted before an element");if(!r&&s)throw new k(T,"Doctype can not be appended since element is present")}}function J(e,t,r){var n=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===I.DOCUMENT_FRAGMENT_NODE){var i=o.filter(V);if(i.length>1||a(o,W))throw new k(T,"More than one element or text in fragment");if(1===i.length&&!Z(e,r))throw new k(T,"Element in fragment can not be inserted before doctype")}if(V(t)&&!Z(e,r))throw new k(T,"Only one element can be added and only after doctype");if(H(t)){if(a(n,(function(e){return H(e)&&e!==r})))throw new k(T,"Only one doctype is allowed");var s=a(n,V);if(r&&n.indexOf(s)<n.indexOf(r))throw new k(T,"Doctype can only be inserted before an element")}}function K(e,t,r,n){(function(e,t,r){if(!function(e){return e&&(e.nodeType===I.DOCUMENT_NODE||e.nodeType===I.DOCUMENT_FRAGMENT_NODE||e.nodeType===I.ELEMENT_NODE)}(e))throw new k(T,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new k(q,"child not in parent");if(!function(e){return e&&(V(e)||W(e)||H(e)||e.nodeType===I.DOCUMENT_FRAGMENT_NODE||e.nodeType===I.COMMENT_NODE||e.nodeType===I.PROCESSING_INSTRUCTION_NODE)}(t)||H(t)&&e.nodeType!==I.DOCUMENT_NODE)throw new k(T,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)})(e,t,r),e.nodeType===I.DOCUMENT_NODE&&(n||Y)(e,t,r);var a=t.parentNode;if(a&&a.removeChild(t),t.nodeType===A){var o=t.firstChild;if(null==o)return t;var i=t.lastChild}else o=i=t;var s=r?r.previousSibling:e.lastChild;o.previousSibling=s,i.nextSibling=r,s?s.nextSibling=o:e.firstChild=o,null==r?e.lastChild=i:r.previousSibling=i;do{o.parentNode=e}while(o!==i&&(o=o.nextSibling));return U(e.ownerDocument||e,e),t.nodeType==A&&(t.firstChild=t.lastChild=null),t}function Q(){this._nsMap={}}function ee(){}function te(){}function re(){}function ne(){}function ae(){}function oe(){}function ie(){}function se(){}function le(){}function ce(){}function ue(){}function de(){}function pe(e,t){var r=[],n=9==this.nodeType&&this.documentElement||this,a=n.prefix,o=n.namespaceURI;if(o&&null==a&&null==(a=n.lookupPrefix(o)))var i=[{namespace:o,prefix:null}];return fe(this,r,e,t,i),r.join("")}function me(e,t,r){var n=e.prefix||"",a=e.namespaceURI;if(!a)return!1;if("xml"===n&&a===o.XML||a===o.XMLNS)return!1;for(var i=r.length;i--;){var s=r[i];if(s.prefix===n)return s.namespace!==a}return!0}function he(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,P),'"')}function fe(e,t,r,n,a){if(a||(a=[]),n){if(!(e=n(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case p:var i=e.attributes,s=i.length,l=e.firstChild,c=e.tagName,u=c;if(!(r=o.isHTML(e.namespaceURI)||r)&&!e.prefix&&e.namespaceURI){for(var d,x=0;x<i.length;x++)if("xmlns"===i.item(x).name){d=i.item(x).value;break}if(!d)for(var E=a.length-1;E>=0;E--)if(""===(_=a[E]).prefix&&_.namespace===e.namespaceURI){d=_.namespace;break}if(d!==e.namespaceURI)for(E=a.length-1;E>=0;E--){var _;if((_=a[E]).namespace===e.namespaceURI){_.prefix&&(u=_.prefix+":"+c);break}}}t.push("<",u);for(var C=0;C<s;C++)"xmlns"==(T=i.item(C)).prefix?a.push({prefix:T.localName,namespace:T.value}):"xmlns"==T.nodeName&&a.push({prefix:"",namespace:T.value});for(C=0;C<s;C++){var T,q,N;me(T=i.item(C),0,a)&&(he(t,(q=T.prefix||"")?"xmlns:"+q:"xmlns",N=T.namespaceURI),a.push({prefix:q,namespace:N})),fe(T,t,r,n,a)}if(c===u&&me(e,0,a)&&(he(t,(q=e.prefix||"")?"xmlns:"+q:"xmlns",N=e.namespaceURI),a.push({prefix:q,namespace:N})),l||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(t.push(">"),r&&/^script$/i.test(c))for(;l;)l.data?t.push(l.data):fe(l,t,r,n,a.slice()),l=l.nextSibling;else for(;l;)fe(l,t,r,n,a.slice()),l=l.nextSibling;t.push("</",u,">")}else t.push("/>");return;case y:case A:for(l=e.firstChild;l;)fe(l,t,r,n,a.slice()),l=l.nextSibling;return;case m:return he(t,e.name,e.value);case h:return t.push(e.data.replace(/[<&>]/g,P));case f:return t.push("<![CDATA[",e.data,"]]>");case w:return t.push("\x3c!--",e.data,"--\x3e");case v:var k=e.publicId,S=e.systemId;if(t.push("<!DOCTYPE ",e.name),k)t.push(" PUBLIC ",k),S&&"."!=S&&t.push(" ",S),t.push(">");else if(S&&"."!=S)t.push(" SYSTEM ",S,">");else{var M=e.internalSubset;M&&t.push(" [",M,"]"),t.push(">")}return;case b:return t.push("<?",e.target," ",e.data,"?>");case g:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ge(e,t,r){var n;switch(t.nodeType){case p:(n=t.cloneNode(!1)).ownerDocument=e;case A:break;case m:r=!0}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,r)for(var a=t.firstChild;a;)n.appendChild(ge(e,a,r)),a=a.nextSibling;return n}function xe(e,t,r){var n=new t.constructor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=t[a];"object"!=typeof o&&o!=n[a]&&(n[a]=o)}switch(t.childNodes&&(n.childNodes=new S),n.ownerDocument=e,n.nodeType){case p:var i=t.attributes,s=n.attributes=new O,l=i.length;s._ownerElement=n;for(var c=0;c<l;c++)n.setAttributeNode(xe(e,i.item(c),!0));break;case m:r=!0}if(r)for(var u=t.firstChild;u;)n.appendChild(xe(e,u,r)),u=u.nextSibling;return n}function be(e,t,r){e[t]=r}_.INVALID_STATE_ERR=(C[11]="Invalid state",11),_.SYNTAX_ERR=(C[12]="Syntax error",12),_.INVALID_MODIFICATION_ERR=(C[13]="Invalid modification",13),_.NAMESPACE_ERR=(C[14]="Invalid namespace",14),_.INVALID_ACCESS_ERR=(C[15]="Invalid access",15),k.prototype=Error.prototype,c(_,k),S.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var r=[],n=0;n<this.length;n++)fe(this[n],r,e,t);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},M.prototype.item=function(e){return L(this),this[e]||null},u(M,S),O.prototype={length:0,item:S.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var r=this[t];if(r.nodeName==e)return r}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new k(N);var r=this.getNamedItem(e.nodeName);return B(this._ownerElement,this,e,r),r},setNamedItemNS:function(e){var t,r=e.ownerElement;if(r&&r!=this._ownerElement)throw new k(N);return t=this.getNamedItemNS(e.namespaceURI,e.localName),B(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return F(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);return F(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){for(var r=this.length;r--;){var n=this[r];if(n.localName==t&&n.namespaceURI==e)return n}return null}},$.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var n=new j;if(n.implementation=this,n.childNodes=new S,n.doctype=r||null,r&&n.appendChild(r),t){var a=n.createElementNS(e,t);n.appendChild(a)}return n},createDocumentType:function(e,t,r){var n=new oe;return n.name=e,n.nodeName=e,n.publicId=t||"",n.systemId=r||"",n}},I.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return K(this,e,t)},replaceChild:function(e,t){K(this,e,t,J),t&&this.removeChild(t)},removeChild:function(e){return G(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return xe(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==h&&e.nodeType==h?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r)for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===e)return n;t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},c(d,I),c(d,I.prototype),j.prototype={nodeName:"#document",nodeType:y,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==A){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return K(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===p&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),G(this,e)},replaceChild:function(e,t){K(this,e,t,J),e.ownerDocument=this,t&&this.removeChild(t),V(e)&&(this.documentElement=e)},importNode:function(e,t){return ge(this,e,t)},getElementById:function(e){var t=null;return R(this.documentElement,(function(r){if(r.nodeType==p&&r.getAttribute("id")==e)return t=r,!0})),t},getElementsByClassName:function(e){var t=l(e);return new M(this,(function(r){var n=[];return t.length>0&&R(r.documentElement,(function(a){if(a!==r&&a.nodeType===p){var o=a.getAttribute("class");if(o){var i=e===o;if(!i){var s=l(o);i=t.every((c=s,function(e){return c&&-1!==c.indexOf(e)}))}i&&n.push(a)}}var c})),n}))},createElement:function(e){var t=new Q;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new S,(t.attributes=new O)._ownerElement=t,t},createDocumentFragment:function(){var e=new ce;return e.ownerDocument=this,e.childNodes=new S,e},createTextNode:function(e){var t=new re;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ne;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ae;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new ue;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new ee;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new le;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new Q,n=t.split(":"),a=r.attributes=new O;return r.childNodes=new S,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,a._ownerElement=r,r},createAttributeNS:function(e,t){var r=new ee,n=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,r}},u(j,I),Q.prototype={nodeType:p,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===A?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,U(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new M(this,(function(t){var r=[];return R(t,(function(n){n===t||n.nodeType!=p||"*"!==e&&n.tagName!=e||r.push(n)})),r}))},getElementsByTagNameNS:function(e,t){return new M(this,(function(r){var n=[];return R(r,(function(a){a===r||a.nodeType!==p||"*"!==e&&a.namespaceURI!==e||"*"!==t&&a.localName!=t||n.push(a)})),n}))}},j.prototype.getElementsByTagName=Q.prototype.getElementsByTagName,j.prototype.getElementsByTagNameNS=Q.prototype.getElementsByTagNameNS,u(Q,I),ee.prototype.nodeType=m,u(ee,I),te.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(C[T])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},u(te,I),re.prototype={nodeName:"#text",nodeType:h,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},u(re,te),ne.prototype={nodeName:"#comment",nodeType:w},u(ne,te),ae.prototype={nodeName:"#cdata-section",nodeType:f},u(ae,te),oe.prototype.nodeType=v,u(oe,I),ie.prototype.nodeType=E,u(ie,I),se.prototype.nodeType=x,u(se,I),le.prototype.nodeType=g,u(le,I),ce.prototype.nodeName="#document-fragment",ce.prototype.nodeType=A,u(ce,I),ue.prototype.nodeType=b,u(ue,I),de.prototype.serializeToString=function(e,t,r){return pe.call(e,t,r)},I.prototype.toString=pe;try{if(Object.defineProperty){function we(e){switch(e.nodeType){case p:case A:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(we(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(M.prototype,"length",{get:function(){return L(this),this.$$length}}),Object.defineProperty(I.prototype,"textContent",{get:function(){return we(this)},set:function(e){switch(this.nodeType){case p:case A:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),be=function(e,t,r){e["$$"+t]=r}}}catch(ye){}t.DocumentType=oe,t.DOMException=k,t.DOMImplementation=$,t.Element=Q,t.Node=I,t.NodeList=S,t.XMLSerializer=de},6559:(e,t,r)=>{"use strict";var n=r(4582).freeze;t.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({Aacute:"\xc1",aacute:"\xe1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"\u0410",acy:"\u0430",AElig:"\xc6",aelig:"\xe6",af:"\u2061",Afr:"\u{1d504}",afr:"\u{1d51e}",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",AMP:"&",amp:"&",And:"\u2a53",and:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1d538}",aopf:"\u{1d552}",ap:"\u2248",apacir:"\u2a6f",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",Aring:"\xc5",aring:"\xe5",Ascr:"\u{1d49c}",ascr:"\u{1d4b6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\u{1d505}",bfr:"\u{1d51f}",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\u{1d539}",bopf:"\u{1d553}",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250c",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252c",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxUL:"\u255d",boxUl:"\u255c",boxuL:"\u255b",boxul:"\u2518",boxUR:"\u255a",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256c",boxVh:"\u256b",boxvH:"\u256a",boxvh:"\u253c",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255f",boxvR:"\u255e",boxvr:"\u251c",bprime:"\u2035",Breve:"\u02d8",breve:"\u02d8",brvbar:"\xa6",Bscr:"\u212c",bscr:"\u{1d4b7}",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22d2",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"\u212d",cfr:"\u{1d520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",cir:"\u25cb",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",Conint:"\u222f",conint:"\u222e",ContourIntegral:"\u222e",Copf:"\u2102",copf:"\u{1d554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xa9",copy:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",Cross:"\u2a2f",cross:"\u2717",Cscr:"\u{1d49e}",cscr:"\u{1d4b8}",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",Cup:"\u22d3",cup:"\u222a",cupbrcap:"\u2a48",CupCap:"\u224d",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21a1",dArr:"\u21d3",darr:"\u2193",dash:"\u2010",Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21ca",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\u{1d507}",dfr:"\u{1d521}",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",Diamond:"\u22c4",diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\u{1d53b}",dopf:"\u{1d555}",Dot:"\xa8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21d3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\u{1d49f}",dscr:"\u{1d4b9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\xc9",eacute:"\xe9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",ecir:"\u2256",Ecirc:"\xca",ecirc:"\xea",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1d508}",efr:"\u{1d522}",eg:"\u2a9a",Egrave:"\xc8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1d53c}",eopf:"\u{1d556}",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212f",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\u{1d509}",ffr:"\u{1d523}",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\u{1d53d}",fopf:"\u{1d557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1d4bb}",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\u{1d50a}",gfr:"\u{1d524}",Gg:"\u22d9",gg:"\u226b",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2aa5",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gnE:"\u2269",gne:"\u2a88",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\u{1d53e}",gopf:"\u{1d558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\u{1d4a2}",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",Gt:"\u226b",GT:">",gt:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",hArr:"\u21d4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",Hfr:"\u210c",hfr:"\u{1d525}",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",Hopf:"\u210d",hopf:"\u{1d559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210b",hscr:"\u{1d4bd}",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xcd",iacute:"\xed",ic:"\u2063",Icirc:"\xce",icirc:"\xee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xa1",iff:"\u21d4",Ifr:"\u2111",ifr:"\u{1d526}",Igrave:"\xcc",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",Int:"\u222c",int:"\u222b",intcal:"\u22ba",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\u{1d540}",iopf:"\u{1d55a}",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\xbf",Iscr:"\u2110",iscr:"\u{1d4be}",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xcf",iuml:"\xef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1d50d}",jfr:"\u{1d527}",jmath:"\u0237",Jopf:"\u{1d541}",jopf:"\u{1d55b}",Jscr:"\u{1d4a5}",jscr:"\u{1d4bf}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\u{1d50e}",kfr:"\u{1d528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\u{1d542}",kopf:"\u{1d55c}",Kscr:"\u{1d4a6}",kscr:"\u{1d4c0}",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",Lang:"\u27ea",lang:"\u27e8",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",Larr:"\u219e",lArr:"\u21d0",larr:"\u2190",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",lAtail:"\u291b",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lBarr:"\u290e",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",Leftarrow:"\u21d0",leftarrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\u{1d50f}",lfr:"\u{1d529}",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22d8",ll:"\u226a",llarr:"\u21c7",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lnE:"\u2268",lne:"\u2a87",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftarrow:"\u27f5",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",longrightarrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\u{1d543}",lopf:"\u{1d55d}",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1d4c1}",Lsh:"\u21b0",lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226a",LT:"<",lt:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\u{1d510}",mfr:"\u{1d52a}",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\u{1d544}",mopf:"\u{1d55e}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1d4c2}",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21d7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1d511}",nfr:"\u{1d52b}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nhArr:"\u21ce",nharr:"\u21ae",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlArr:"\u21cd",nlarr:"\u219a",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21cd",nleftarrow:"\u219a",nLeftrightarrow:"\u21ce",nleftrightarrow:"\u21ae",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",Nopf:"\u2115",nopf:"\u{1d55f}",Not:"\u2aec",not:"\xac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrArr:"\u21cf",nrarr:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nRightarrow:"\u21cf",nrightarrow:"\u219b",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\u{1d4a9}",nscr:"\u{1d4c3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nVDash:"\u22af",nVdash:"\u22ae",nvDash:"\u22ad",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwArr:"\u21d6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xd3",oacute:"\xf3",oast:"\u229b",ocir:"\u229a",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\u{1d512}",ofr:"\u{1d52c}",ogon:"\u02db",Ograve:"\xd2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\u{1d546}",oopf:"\u{1d560}",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",Or:"\u2a54",or:"\u2228",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",Oscr:"\u{1d4aa}",oscr:"\u2134",Oslash:"\xd8",oslash:"\xf8",osol:"\u2298",Otilde:"\xd5",otilde:"\xf5",Otimes:"\u2a37",otimes:"\u2297",otimesas:"\u2a36",Ouml:"\xd6",ouml:"\xf6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",Pfr:"\u{1d513}",pfr:"\u{1d52d}",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",Popf:"\u2119",popf:"\u{1d561}",pound:"\xa3",Pr:"\u2abb",pr:"\u227a",prap:"\u2ab7",prcue:"\u227c",prE:"\u2ab3",pre:"\u2aaf",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportion:"\u2237",Proportional:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\u{1d4ab}",pscr:"\u{1d4c5}",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\u{1d514}",qfr:"\u{1d52e}",qint:"\u2a0c",Qopf:"\u211a",qopf:"\u{1d562}",qprime:"\u2057",Qscr:"\u{1d4ac}",qscr:"\u{1d4c6}",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",QUOT:'"',quot:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",Rang:"\u27eb",rang:"\u27e9",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",Rarr:"\u21a0",rArr:"\u21d2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",rAtail:"\u291c",ratail:"\u291a",ratio:"\u2236",rationals:"\u211a",RBarr:"\u2910",rBarr:"\u290f",rbarr:"\u290d",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",Re:"\u211c",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",REG:"\xae",reg:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",Rfr:"\u211c",rfr:"\u{1d52f}",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrow:"\u2192",Rightarrow:"\u21d2",rightarrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",Ropf:"\u211d",ropf:"\u{1d563}",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",Rscr:"\u211b",rscr:"\u{1d4c7}",Rsh:"\u21b1",rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",Sc:"\u2abc",sc:"\u227b",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227d",scE:"\u2ab4",sce:"\u2ab0",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",searhk:"\u2925",seArr:"\u21d8",searr:"\u2198",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1d516}",sfr:"\u{1d530}",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",Sopf:"\u{1d54a}",sopf:"\u{1d564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",Square:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",Sscr:"\u{1d4ae}",sscr:"\u{1d4c8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",Sub:"\u22d0",sub:"\u2282",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",Subset:"\u22d0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",Sum:"\u2211",sum:"\u2211",sung:"\u266a",Sup:"\u22d1",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",Supset:"\u22d1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swArr:"\u21d9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\u{1d517}",tfr:"\u{1d531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223c",THORN:"\xde",thorn:"\xfe",Tilde:"\u223c",tilde:"\u02dc",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",Topf:"\u{1d54b}",topf:"\u{1d565}",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\u{1d4af}",tscr:"\u{1d4c9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\xda",uacute:"\xfa",Uarr:"\u219f",uArr:"\u21d1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\u{1d518}",ufr:"\u{1d532}",Ugrave:"\xd9",ugrave:"\xf9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1d54c}",uopf:"\u{1d566}",UpArrow:"\u2191",Uparrow:"\u21d1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",UpDownArrow:"\u2195",Updownarrow:"\u21d5",updownarrow:"\u2195",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03d2",upsi:"\u03c5",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTee:"\u22a5",UpTeeArrow:"\u21a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\u{1d4b0}",uscr:"\u{1d4ca}",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\xdc",uuml:"\xfc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",vArr:"\u21d5",varr:"\u2195",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",Vbar:"\u2aeb",vBar:"\u2ae8",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22ab",Vdash:"\u22a9",vDash:"\u22a8",vdash:"\u22a2",Vdashl:"\u2ae6",Vee:"\u22c1",vee:"\u2228",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\u{1d519}",vfr:"\u{1d533}",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\u{1d54d}",vopf:"\u{1d567}",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\u{1d4b1}",vscr:"\u{1d4cb}",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",Wedge:"\u22c0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1d51a}",wfr:"\u{1d534}",Wopf:"\u{1d54e}",wopf:"\u{1d568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1d4b2}",wscr:"\u{1d4cc}",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\u{1d51b}",xfr:"\u{1d535}",xhArr:"\u27fa",xharr:"\u27f7",Xi:"\u039e",xi:"\u03be",xlArr:"\u27f8",xlarr:"\u27f5",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\u{1d54f}",xopf:"\u{1d569}",xoplus:"\u2a01",xotime:"\u2a02",xrArr:"\u27f9",xrarr:"\u27f6",Xscr:"\u{1d4b3}",xscr:"\u{1d4cd}",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\xdd",yacute:"\xfd",YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\xa5",Yfr:"\u{1d51c}",yfr:"\u{1d536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1d550}",yopf:"\u{1d56a}",Yscr:"\u{1d4b4}",yscr:"\u{1d4ce}",YUcy:"\u042e",yucy:"\u044e",Yuml:"\u0178",yuml:"\xff",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",Zfr:"\u2128",zfr:"\u{1d537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",Zopf:"\u2124",zopf:"\u{1d56b}",Zscr:"\u{1d4b5}",zscr:"\u{1d4cf}",zwj:"\u200d",zwnj:"\u200c"}),t.entityMap=t.HTML_ENTITIES},8978:(e,t,r)=>{var n=r(4722);t.DOMImplementation=n.DOMImplementation,t.XMLSerializer=n.XMLSerializer,t.DOMParser=r(5752).DOMParser},4466:(e,t,r)=>{var n=r(4582).NAMESPACE,a=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,o=new RegExp("[\\-\\.0-9"+a.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+a.source+o.source+"*(?::"+a.source+o.source+"*)?$");function s(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function l(){}function c(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function u(e,t,r,a,o,i){function s(e,t,n){r.attributeNames.hasOwnProperty(e)&&i.fatalError("Attribute "+e+" redefined"),r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),n)}for(var l,c=++t,u=0;;){var d=e.charAt(c);switch(d){case"=":if(1===u)l=e.slice(t,c),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(i.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,!((c=e.indexOf(d,t))>0))throw new Error("attribute value no end '"+d+"' match");s(l,p=e.slice(t,c),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');s(l,p=e.slice(t,c),t),i.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:u=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),0==u&&r.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(p=e.slice(t,c)).slice(-1)&&(r.closed=!0,p=p.slice(0,-1));case 2:2===u&&(p=l),4==u?(i.warning('attribute "'+p+'" missed quot(")!'),s(l,p,t)):(n.isHTML(a[""])&&p.match(/^(?:disabled|checked|selected)$/i)||i.warning('attribute "'+p+'" missed value!! "'+p+'" instead!!'),s(p,p,t));break;case 3:throw new Error("attribute value missed!!")}return c;case"\x80":d=" ";default:if(d<=" ")switch(u){case 0:r.setTagName(e.slice(t,c)),u=6;break;case 1:l=e.slice(t,c),u=2;break;case 4:var p=e.slice(t,c);i.warning('attribute "'+p+'" missed quot(")!!'),s(l,p,t);case 5:u=6}else switch(u){case 2:r.tagName,n.isHTML(a[""])&&l.match(/^(?:disabled|checked|selected)$/i)||i.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=c,u=1;break;case 5:i.warning('attribute space is required"'+l+'"!!');case 6:u=1,t=c;break;case 3:u=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function d(e,t,r){for(var a=e.tagName,o=null,i=e.length;i--;){var s=e[i],l=s.qName,c=s.value;if((m=l.indexOf(":"))>0)var u=s.prefix=l.slice(0,m),d=l.slice(m+1),p="xmlns"===u&&d;else d=l,u=null,p="xmlns"===l&&"";s.localName=d,!1!==p&&(null==o&&(o={},h(r,r={})),r[p]=o[p]=c,s.uri=n.XMLNS,t.startPrefixMapping(p,c))}for(i=e.length;i--;)(u=(s=e[i]).prefix)&&("xml"===u&&(s.uri=n.XML),"xmlns"!==u&&(s.uri=r[u||""]));var m;(m=a.indexOf(":"))>0?(u=e.prefix=a.slice(0,m),d=e.localName=a.slice(m+1)):(u=null,d=e.localName=a);var f=e.uri=r[u||""];if(t.startElement(f,d,a,e),!e.closed)return e.currentNSMap=r,e.localNSMap=o,!0;if(t.endElement(f,d,a),o)for(u in o)Object.prototype.hasOwnProperty.call(o,u)&&t.endPrefixMapping(u)}function p(e,t,r,n,a){if(/^(?:script|textarea)$/i.test(r)){var o=e.indexOf("</"+r+">",t),i=e.substring(t+1,o);if(/[&<]/.test(i))return/^script$/i.test(r)?(a.characters(i,0,i.length),o):(i=i.replace(/&#?\w+;/g,n),a.characters(i,0,i.length),o)}return t+1}function m(e,t,r,n){var a=n[r];return null==a&&((a=e.lastIndexOf("</"+r+">"))<t&&(a=e.lastIndexOf("</"+r)),n[r]=a),a<t}function h(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function f(e,t,r,n){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(a=e.indexOf("--\x3e",t+4))>t?(r.comment(e,t+4,a-t-4),a+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var a=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,a-t-9),r.endCDATA(),a+3}var o=function(e,t){var r,n=[],a=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(a.lastIndex=t,a.exec(e);r=a.exec(e);)if(n.push(r),r[1])return n}(e,t),i=o.length;if(i>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],l=!1,c=!1;i>3&&(/^public$/i.test(o[2][0])?(l=o[3][0],c=i>4&&o[4][0]):/^system$/i.test(o[2][0])&&(c=o[3][0]));var u=o[i-1];return r.startDTD(s,l,c),r.endDTD(),u.index+u[0].length}return-1}function g(e,t,r){var n=e.indexOf("?>",t);if(n){var a=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return a?(a[0].length,r.processingInstruction(a[1],a[2]),n+2):-1}return-1}function x(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,l.prototype={parse:function(e,t,r){var a=this.domBuilder;a.startDocument(),h(t,t={}),function(e,t,r,a,o){function i(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(r,t)?r[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function l(t){if(t>_){var r=e.substring(_,t).replace(/&#?\w+;/g,i);v&&h(_),a.characters(r,0,t-_),_=t}}function h(t,r){for(;t>=w&&(r=y.exec(e));)b=r.index,w=b+r[0].length,v.lineNumber++;v.columnNumber=t-b+1}for(var b=0,w=0,y=/.*(?:\r\n?|\n)|.*$/g,v=a.locator,A=[{currentNSMap:t}],E={},_=0;;){try{var C=e.indexOf("<",_);if(C<0){if(!e.substr(_).match(/^\s*$/)){var T=a.doc,q=T.createTextNode(e.substr(_));T.appendChild(q),a.currentElement=q}return}switch(C>_&&l(C),e.charAt(C+1)){case"/":var N=e.indexOf(">",C+3),k=e.substring(C+2,N).replace(/[ \t\n\r]+$/g,""),S=A.pop();N<0?(k=e.substring(C+2).replace(/[\s<].*/,""),o.error("end tag name: "+k+" is not complete:"+S.tagName),N=C+1+k.length):k.match(/\s</)&&(k=k.replace(/[\s<].*/,""),o.error("end tag name: "+k+" maybe not complete"),N=C+1+k.length);var M=S.localNSMap,L=S.tagName==k;if(L||S.tagName&&S.tagName.toLowerCase()==k.toLowerCase()){if(a.endElement(S.uri,S.localName,k),M)for(var O in M)Object.prototype.hasOwnProperty.call(M,O)&&a.endPrefixMapping(O);L||o.fatalError("end tag name: "+k+" is not match the current start tagName:"+S.tagName)}else A.push(S);N++;break;case"?":v&&h(C),N=g(e,C,a);break;case"!":v&&h(C),N=f(e,C,a,o);break;default:v&&h(C);var D=new x,B=A[A.length-1].currentNSMap,F=(N=u(e,C,D,B,i,o),D.length);if(!D.closed&&m(e,N,D.tagName,E)&&(D.closed=!0,r.nbsp||o.warning("unclosed xml attribute")),v&&F){for(var $=c(v,{}),I=0;I<F;I++){var P=D[I];h(P.offset),P.locator=c(v,{})}a.locator=$,d(D,a,B)&&A.push(D),a.locator=v}else d(D,a,B)&&A.push(D);n.isHTML(D.uri)&&!D.closed?N=p(e,N,D.tagName,i,a):N++}}catch(e){if(e instanceof s)throw e;o.error("element parse error: "+e),N=-1}N>_?_=N:l(Math.max(C,_)+1)}}(e,t,r,a,this.errorHandler),a.endDocument()}},x.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!i.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=l,t.ParseError=s},8917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidNumberOfChildrenError=void 0;var n=r(6200);Object.defineProperty(t,"InvalidNumberOfChildrenError",{enumerable:!0,get:function(){return n.InvalidNumberOfChildrenError}})},6200:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidNumberOfChildrenError=void 0;class r extends Error{constructor(e,t,r,n="exactly"){super(`${e} tag must have ${n} ${t} children. It's actually ${r}`),this.name="InvalidNumberOfChildrenError"}}t.InvalidNumberOfChildrenError=r},4279:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(828),t),a(r(5975),t),a(r(799),t),a(r(2424),t)},5975:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JoinWithManySeparators=void 0;class r{constructor(e){this._separators=e}static join(e,t){return new r(t)._join(e)}_join(e){return e.reduce(((e,t,r,n)=>e+t+(r===n.length-1?"":this._get(r))),"")}_get(e){return this._separators[e]?this._separators[e]:this._separators.length>0?this._separators[this._separators.length-1]:","}}t.JoinWithManySeparators=r},799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mathMLElementToLaTeXConverter=void 0;const n=r(5443);t.mathMLElementToLaTeXConverter=e=>new n.MathMLElementToLatexConverterAdapter(e).toLatexConverter()},2424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeWhiteSpaces=void 0,t.normalizeWhiteSpaces=e=>e.replace(/\s+/g," ")},7192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BracketWrapper=void 0;const n=r(1855);t.BracketWrapper=class{constructor(){this._open="{",this._close="}"}wrap(e){return new n.Wrapper(this._open,this._close).wrap(e)}}},5025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericWrapper=void 0;const n=r(1855);t.GenericWrapper=class{constructor(e,t){this._open="\\left"+e,this._close="\\right"+t}wrap(e){return new n.Wrapper(this._open,this._close).wrap(e)}}},828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericWrapper=t.ParenthesisWrapper=t.BracketWrapper=void 0;var n=r(7192);Object.defineProperty(t,"BracketWrapper",{enumerable:!0,get:function(){return n.BracketWrapper}});var a=r(1168);Object.defineProperty(t,"ParenthesisWrapper",{enumerable:!0,get:function(){return a.ParenthesisWrapper}});var o=r(5025);Object.defineProperty(t,"GenericWrapper",{enumerable:!0,get:function(){return o.GenericWrapper}})},1168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParenthesisWrapper=void 0;const n=r(1855);t.ParenthesisWrapper=class{constructor(){this._open="\\left(",this._close="\\right)"}wrap(e){return new n.Wrapper(this._open,this._close).wrap(e)}wrapIfMoreThanOneChar(e){return e.length<=1?e:this.wrap(e)}}},1855:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=void 0,t.Wrapper=class{constructor(e,t){this._open=e,this._close=t}wrap(e){return this._open+e+this._close}}},2697:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VoidMathMLElement=void 0,t.VoidMathMLElement=class{constructor(){this.name="void",this.value="",this.children=[],this.attributes={}}}},4760:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericSpacingWrapper=void 0;const n=r(4279);t.GenericSpacingWrapper=class{constructor(e){this._mathmlElement=e}convert(){return this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ")}}},9376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericUnderOver=void 0;const n=r(799),a=r(8917),o=r(472);t.GenericUnderOver=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(2!==r)throw new a.InvalidNumberOfChildrenError(e,2,r);const o=(0,n.mathMLElementToLaTeXConverter)(t[0]).convert(),i=(0,n.mathMLElementToLaTeXConverter)(t[1]).convert();return this._applyCommand(o,i)}_applyCommand(e,t){const r=this._mathmlElement.name.match(/under/)?s.Under:s.Over;return new i(r).apply(e,t)}};class i{constructor(e){this._type=e}apply(e,t){return o.latexAccents.includes(t)?`${t}{${e}}`:`${this._defaultCommand}{${t}}{${e}}`}get _defaultCommand(){return this._type===s.Under?"\\underset":"\\overset"}}var s;!function(e){e[e.Under=0]="Under",e[e.Over=1]="Over"}(s||(s={}))},6959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Void=t.GenericUnderOver=t.GenericSpacingWrapper=t.MTr=t.MTable=t.MUnderover=t.MText=t.MMultiscripts=t.MSubsup=t.MSub=t.MSup=t.MPhantom=t.MError=t.MEnclose=t.MAction=t.MRoot=t.MFrac=t.MFenced=t.MSqrt=t.MN=t.MO=t.MI=t.Math=void 0;var n=r(393);Object.defineProperty(t,"Math",{enumerable:!0,get:function(){return n.Math}});var a=r(7037);Object.defineProperty(t,"MI",{enumerable:!0,get:function(){return a.MI}});var o=r(3487);Object.defineProperty(t,"MO",{enumerable:!0,get:function(){return o.MO}});var i=r(4464);Object.defineProperty(t,"MN",{enumerable:!0,get:function(){return i.MN}});var s=r(8686);Object.defineProperty(t,"MSqrt",{enumerable:!0,get:function(){return s.MSqrt}});var l=r(9511);Object.defineProperty(t,"MFenced",{enumerable:!0,get:function(){return l.MFenced}});var c=r(6440);Object.defineProperty(t,"MFrac",{enumerable:!0,get:function(){return c.MFrac}});var u=r(6052);Object.defineProperty(t,"MRoot",{enumerable:!0,get:function(){return u.MRoot}});var d=r(1678);Object.defineProperty(t,"MAction",{enumerable:!0,get:function(){return d.MAction}});var p=r(2631);Object.defineProperty(t,"MEnclose",{enumerable:!0,get:function(){return p.MEnclose}});var m=r(1840);Object.defineProperty(t,"MError",{enumerable:!0,get:function(){return m.MError}});var h=r(7443);Object.defineProperty(t,"MPhantom",{enumerable:!0,get:function(){return h.MPhantom}});var f=r(6926);Object.defineProperty(t,"MSup",{enumerable:!0,get:function(){return f.MSup}});var g=r(2564);Object.defineProperty(t,"MSub",{enumerable:!0,get:function(){return g.MSub}});var x=r(1358);Object.defineProperty(t,"MSubsup",{enumerable:!0,get:function(){return x.MSubsup}});var b=r(8303);Object.defineProperty(t,"MMultiscripts",{enumerable:!0,get:function(){return b.MMultiscripts}});var w=r(3951);Object.defineProperty(t,"MText",{enumerable:!0,get:function(){return w.MText}});var y=r(1222);Object.defineProperty(t,"MUnderover",{enumerable:!0,get:function(){return y.MUnderover}});var v=r(2350);Object.defineProperty(t,"MTable",{enumerable:!0,get:function(){return v.MTable}});var A=r(1586);Object.defineProperty(t,"MTr",{enumerable:!0,get:function(){return A.MTr}});var E=r(4760);Object.defineProperty(t,"GenericSpacingWrapper",{enumerable:!0,get:function(){return E.GenericSpacingWrapper}});var _=r(9376);Object.defineProperty(t,"GenericUnderOver",{enumerable:!0,get:function(){return _.GenericUnderOver}});var C=r(9165);Object.defineProperty(t,"Void",{enumerable:!0,get:function(){return C.Void}})},1678:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAction=void 0;const n=r(799);t.MAction=class{constructor(e){this._mathmlElement=e}convert(){const{children:e}=this._mathmlElement;return this._isToggle()?e.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" \\Longrightarrow "):(0,n.mathMLElementToLaTeXConverter)(e[0]).convert()}_isToggle(){const{actiontype:e}=this._mathmlElement.attributes;return"toggle"===e||!e}}},393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Math=void 0;const n=r(799),a=r(2424);t.Math=class{constructor(e){this._mathmlElement=e}convert(){const e=this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ");return(0,a.normalizeWhiteSpaces)(e)}}},2631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MEnclose=void 0;const n=r(799);t.MEnclose=class{constructor(e){this._mathmlElement=e}convert(){const e=this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ");return"actuarial"===this._notation?`\\overline{\\left.${e}\\right|}`:"radical"===this._notation?`\\sqrt{${e}}`:["box","roundedbox","circle"].includes(this._notation)?`\\boxed{${e}}`:"left"===this._notation?`\\left|${e}`:"right"===this._notation?`${e}\\right|`:"top"===this._notation?`\\overline{${e}}`:"bottom"===this._notation?`\\underline{${e}}`:"updiagonalstrike"===this._notation?`\\cancel{${e}}`:"downdiagonalstrike"===this._notation?`\\bcancel{${e}}`:"updiagonalarrow"===this._notation?`\\cancelto{}{${e}}`:["verticalstrike","horizontalstrike"].includes(this._notation)?`\\hcancel{${e}}`:"madruwb"===this._notation?`\\underline{${e}\\right|}`:"phasorangle"===this._notation?`{\\angle \\underline{${e}}}`:`\\overline{\\left.\\right)${e}}`}get _notation(){return this._mathmlElement.attributes.notation||"longdiv"}}},1840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MError=void 0;const n=r(799);t.MError=class{constructor(e){this._mathmlElement=e}convert(){return`\\color{red}{${this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ")}}`}}},9511:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MFenced=void 0;const n=r(799),a=r(4279);t.MFenced=class{constructor(e){this._mathmlElement=e,this._open=this._mathmlElement.attributes.open||"",this._close=this._mathmlElement.attributes.close||"",this._separators=Array.from(this._mathmlElement.attributes.separators||"")}convert(){const e=this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert()));return this._isThereRelativeOfName(this._mathmlElement.children,"mtable")?new i(this._open,this._close).apply(e):new o(this._open,this._close,this._separators).apply(e)}_isThereRelativeOfName(e,t){return e.some((e=>e.name===t||this._isThereRelativeOfName(e.children,t)))}};class o{constructor(e,t,r){this._open=e||"(",this._close=t||")",this._separators=r}apply(e){const t=a.JoinWithManySeparators.join(e,this._separators);return new a.GenericWrapper(this._open,this._close).wrap(t)}}class i{constructor(e,t){this._genericCommand="matrix",this._separators=new s(e,t)}apply(e){const t=this._command,r=`\\begin{${t}}\n${e.join("")}\n\\end{${t}}`;return t===this._genericCommand?this._separators.wrap(r):r}get _command(){return this._separators.areParentheses()?"pmatrix":this._separators.areSquareBrackets()?"bmatrix":this._separators.areBrackets()?"Bmatrix":this._separators.areDivides()?"vmatrix":this._separators.areParallels()?"Vmatrix":this._separators.areNotEqual()?this._genericCommand:"bmatrix"}}class s{constructor(e,t){this._open=e,this._close=t}wrap(e){return new a.GenericWrapper(this._open,this._close).wrap(e)}areParentheses(){return this._compare("(",")")}areSquareBrackets(){return this._compare("[","]")}areBrackets(){return this._compare("{","}")}areDivides(){return this._compare("|","|")}areParallels(){return this._compare("||","||")}areNotEqual(){return this._open!==this._close}_compare(e,t){return this._open===e&&this._close===t}}},6440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MFrac=void 0;const n=r(8917),a=r(4279);t.MFrac=class{constructor(e){this._mathmlElement=e}convert(){const{children:e,name:t}=this._mathmlElement,r=e.length;if(2!==r)throw new n.InvalidNumberOfChildrenError(t,2,r);const o=(0,a.mathMLElementToLaTeXConverter)(e[0]).convert(),i=(0,a.mathMLElementToLaTeXConverter)(e[1]).convert();return this._isBevelled()?`${this._wrapIfMoreThanOneChar(o)}/${this._wrapIfMoreThanOneChar(i)}`:`\\frac{${o}}{${i}}`}_wrapIfMoreThanOneChar(e){return(new a.ParenthesisWrapper).wrapIfMoreThanOneChar(e)}_isBevelled(){return!!this._mathmlElement.attributes.bevelled}}},7037:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MI=void 0;const n=r(4279),a=r(5406),o=r(6122);t.MI=class{constructor(e){this.utf8Converter=new o.HashUTF8ToLtXConverter,this._mathmlElement=e}convert(){const e=(0,n.normalizeWhiteSpaces)(this._mathmlElement.value);if(" "===e)return i.apply(e);const t=e.trim(),r=i.apply(t),a=this.utf8Converter.convert(r);return a!==r?a:this.wrapInMathVariant(r,this.getMathVariant(this._mathmlElement.attributes))}getMathVariant(e){if(e&&e.mathvariant)return e.mathvariant}wrapInMathVariant(e,t){switch(t){case"bold":return`\\mathbf{${e}}`;case"italic":return`\\mathit{${e}}`;case"bold-italic":return`\\mathbf{\\mathit{${e}}}`;case"double-struck":return`\\mathbb{${e}}`;case"bold-fraktur":return`\\mathbf{\\mathfrak{${e}}}`;case"script":return`\\mathcal{${e}}`;case"bold-script":return`\\mathbf{\\mathcal{${e}}}`;case"fraktur":return`\\mathfrak{${e}}`;case"sans-serif":return`\\mathsf{${e}}`;case"bold-sans-serif":return`\\mathbf{\\mathsf{${e}}}`;case"sans-serif-italic":return`\\mathsf{\\mathit{${e}}}`;case"sans-serif-bold-italic":return`\\mathbf{\\mathsf{\\mathit{${e}}}}`;case"monospace":return`\\mathtt{${e}}`;default:return e}}};class i{constructor(e){this._value=e}static apply(e){return new i(e)._apply()}_apply(){return this._findByCharacter()||this._findByGlyph()||this._findByNumber()||(new o.HashUTF8ToLtXConverter).convert(this._value)}_findByCharacter(){return a.allMathSymbolsByChar[this._value]}_findByGlyph(){return a.allMathSymbolsByGlyph[this._value]}_findByNumber(){return a.mathNumberByGlyph[this._value]}}},8303:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MMultiscripts=void 0;const n=r(4279),a=r(8917);t.MMultiscripts=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(r<3)throw new a.InvalidNumberOfChildrenError(e,3,r,"at least");const o=(0,n.mathMLElementToLaTeXConverter)(t[0]).convert();return this._prescriptLatex()+this._wrapInParenthesisIfThereIsSpace(o)+this._postscriptLatex()}_prescriptLatex(){const{children:e}=this._mathmlElement;let t,r;if(this._isPrescripts(e[1]))t=e[2],r=e[3];else{if(!this._isPrescripts(e[3]))return"";t=e[4],r=e[5]}return`\\_{${(0,n.mathMLElementToLaTeXConverter)(t).convert()}}^{${(0,n.mathMLElementToLaTeXConverter)(r).convert()}}`}_postscriptLatex(){const{children:e}=this._mathmlElement;if(this._isPrescripts(e[1]))return"";const t=e[1],r=e[2];return`_{${(0,n.mathMLElementToLaTeXConverter)(t).convert()}}^{${(0,n.mathMLElementToLaTeXConverter)(r).convert()}}`}_wrapInParenthesisIfThereIsSpace(e){return e.match(/\s+/g)?(new n.ParenthesisWrapper).wrap(e):e}_isPrescripts(e){return"mprescripts"===(null==e?void 0:e.name)}}},4464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MN=void 0;const n=r(4279),a=r(5406);t.MN=class{constructor(e){this._mathmlElement=e}convert(){const e=(0,n.normalizeWhiteSpaces)(this._mathmlElement.value).trim();return a.mathNumberByGlyph[e]||e}}},3487:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MO=void 0;const n=r(4279),a=r(5406);t.MO=class{constructor(e){this._mathmlElement=e}convert(){const e=(0,n.normalizeWhiteSpaces)(this._mathmlElement.value).trim();return o.operate(e)}};class o{constructor(e){this._value=e}static operate(e){return new o(e)._operate()}_operate(){return this._findByCharacter()||this._findByGlyph()||this._findByNumber()||(new a.HashUTF8ToLtXConverter).convert(this._value)}_findByCharacter(){return a.allMathOperatorsByChar[this._value]}_findByGlyph(){return a.allMathOperatorsByGlyph[this._value]}_findByNumber(){return a.mathNumberByGlyph[this._value]}}},7443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MPhantom=void 0,t.MPhantom=class{constructor(e){this._mathmlElement=e}convert(){return""}}},6052:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MRoot=void 0;const n=r(4279),a=r(8917);t.MRoot=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(2!==r)throw new a.InvalidNumberOfChildrenError(e,2,r);const o=(0,n.mathMLElementToLaTeXConverter)(t[0]).convert();return`\\sqrt[${(0,n.mathMLElementToLaTeXConverter)(t[1]).convert()}]{${o}}`}}},8686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MSqrt=void 0;const n=r(4279);t.MSqrt=class{constructor(e){this._mathmlElement=e}convert(){return`\\sqrt{${this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ")}}`}}},2564:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MSub=void 0;const n=r(4279),a=r(8917);t.MSub=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(2!==r)throw new a.InvalidNumberOfChildrenError(e,2,r);const n=t[0],o=t[1];return`${this._handleBaseChild(n)}_${this._handleSubscriptChild(o)}`}_handleBaseChild(e){const t=e.children,r=(0,n.mathMLElementToLaTeXConverter)(e).convert();return t.length<=1?r:(new n.ParenthesisWrapper).wrapIfMoreThanOneChar(r)}_handleSubscriptChild(e){const t=(0,n.mathMLElementToLaTeXConverter)(e).convert();return(new n.BracketWrapper).wrap(t)}}},1358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MSubsup=void 0;const n=r(4279),a=r(8917);t.MSubsup=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(3!==r)throw new a.InvalidNumberOfChildrenError(e,3,r);const n=t[0],o=t[1],i=t[2];return`${this._handleBaseChild(n)}_${this._handleSubscriptChild(o)}^${this._handleSuperscriptChild(i)}`}_handleBaseChild(e){const t=e.children,r=(0,n.mathMLElementToLaTeXConverter)(e).convert();return t.length<=1?r:(new n.ParenthesisWrapper).wrapIfMoreThanOneChar(r)}_handleSubscriptChild(e){const t=(0,n.mathMLElementToLaTeXConverter)(e).convert();return(new n.BracketWrapper).wrap(t)}_handleSuperscriptChild(e){const t=(0,n.mathMLElementToLaTeXConverter)(e).convert();return(new n.BracketWrapper).wrap(t)}}},6926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MSup=void 0;const n=r(4279),a=r(8917);t.MSup=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(2!==r)throw new a.InvalidNumberOfChildrenError(e,2,r);const n=t[0],o=t[1];return`${this._handleBaseChild(n)}^${this._handleExponentChild(o)}`}_handleBaseChild(e){const t=e.children,r=(0,n.mathMLElementToLaTeXConverter)(e).convert();return t.length<=1?r:(new n.ParenthesisWrapper).wrapIfMoreThanOneChar(r)}_handleExponentChild(e){const t=(0,n.mathMLElementToLaTeXConverter)(e).convert();return(new n.BracketWrapper).wrap(t)}}},2350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MTable=void 0;const n=r(4279);t.MTable=class{constructor(e){this._mathmlElement=e,this._addFlagRecursiveIfName(this._mathmlElement.children,"mtable","innerTable")}convert(){const e=this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" \\\\\n");return this._hasFlag("innerTable")?this._wrap(e):e}_wrap(e){return`\\begin{matrix}${e}\\end{matrix}`}_addFlagRecursiveIfName(e,t,r){e.forEach((e=>{e.name===t&&(e.attributes[r]=r),this._addFlagRecursiveIfName(e.children,t,r)}))}_hasFlag(e){return!!this._mathmlElement.attributes[e]}}},3951:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MText=void 0;const n=r(7037);t.MText=class{constructor(e){this._mathmlElement=e}convert(){const{attributes:e,value:t}=this._mathmlElement;return[...t].map((e=>/^[a-zA-Z0-9]$/.test(e)||" "===e?{value:e,isAlphanumeric:!0}:{value:e,isAlphanumeric:!1})).reduce(((e,t)=>{if(t.isAlphanumeric){const r=e[e.length-1];if(r&&r.isAlphanumeric)return r.value+=t.value,e}return[...e,t]}),[]).map((t=>t.isAlphanumeric?new a(e.mathvariant).apply(t.value):new n.MI({name:"mi",attributes:{},children:[],value:t.value}).convert())).join("")}};class a{constructor(e){this._mathvariant=e||"normal"}apply(e){return this._commands.reduce(((t,r,n)=>0===n?`${r}{${e}}`:`${r}{${t}}`),"")}get _commands(){switch(this._mathvariant){case"bold":return["\\textbf"];case"italic":return["\\textit"];case"bold-italic":return["\\textit","\\textbf"];case"double-struck":return["\\mathbb"];case"monospace":return["\\mathtt"];case"bold-fraktur":case"fraktur":return["\\mathfrak"];default:return["\\text"]}}}},1586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MTr=void 0;const n=r(4279);t.MTr=class{constructor(e){this._mathmlElement=e}convert(){return this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" & ")}}},1222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MUnderover=void 0;const n=r(4279),a=r(8917);t.MUnderover=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(3!==r)throw new a.InvalidNumberOfChildrenError(e,3,r);return`${(0,n.mathMLElementToLaTeXConverter)(t[0]).convert()}_{${(0,n.mathMLElementToLaTeXConverter)(t[1]).convert()}}^{${(0,n.mathMLElementToLaTeXConverter)(t[2]).convert()}}`}}},9165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Void=void 0,t.Void=class{constructor(e){this._mathmlElement=e}convert(){return""}}},5443:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MathMLElementToLatexConverterAdapter=void 0;const i=o(r(6959)),s=r(2697);t.MathMLElementToLatexConverterAdapter=class{constructor(e){this._mathMLElement=null!=e?e:new s.VoidMathMLElement}toLatexConverter(){const{name:e}=this._mathMLElement;return new(l[e]||i.GenericSpacingWrapper)(this._mathMLElement)}};const l={math:i.Math,mi:i.MI,mo:i.MO,mn:i.MN,msqrt:i.MSqrt,mfenced:i.MFenced,mfrac:i.MFrac,mroot:i.MRoot,maction:i.MAction,menclose:i.MEnclose,merror:i.MError,mphantom:i.MPhantom,msup:i.MSup,msub:i.MSub,msubsup:i.MSubsup,mmultiscripts:i.MMultiscripts,mtext:i.MText,munderover:i.MUnderover,mtable:i.MTable,mtr:i.MTr,mover:i.GenericUnderOver,munder:i.GenericUnderOver,mrow:i.GenericSpacingWrapper,mpadded:i.GenericSpacingWrapper,void:i.Void}},5243:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorHandler=void 0,t.ErrorHandler=class{constructor(){this._errors=[],this.errorLocator={}}fixError(e,t){return this._isMissingAttributeValueError(t)?(this._errors.push(t),this._fixMissingAttribute(t,e)):e}isThereAnyErrors(){return this._errors.length>0}cleanErrors(){this._errors=[]}_fixMissingAttribute(e,t){const r=e.split('"')[1];if(r)return t.replace(this._matchMissingValueForAttribute(r),"");for(;this._mathGenericMissingValue().exec(t);)t=t.replace(this._mathGenericMissingValue(),"$1$3");return t}_matchMissingValueForAttribute(e){return new RegExp(`(${e}=(?!("|')))|(${e}(?!("|')))`,"gm")}_mathGenericMissingValue(){return/(\<.* )(\w+=(?!\"|\'))(.*\>)/gm}_isMissingAttributeValueError(e){return!!e.includes("attribute")&&!!e.includes("missed")||e.includes("attribute value missed")}}},9208:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(9548),t),a(r(5243),t),a(r(1101),t)},1101:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ElementsToMathMLAdapter=void 0,t.ElementsToMathMLAdapter=class{convert(e){return e.filter((e=>void 0!==e.tagName)).map((e=>this._convertElement(e)))}_convertElement(e){return{name:e.tagName,attributes:this._convertElementAttributes(e.attributes),value:this._hasElementChild(e)?"":e.textContent||"",children:this._hasElementChild(e)?this.convert(Array.from(e.childNodes)):[]}}_convertElementAttributes(e){return Array.from(e).reduce(((e,t)=>Object.assign({[t.nodeName]:t.nodeValue===t.nodeName?"":t.nodeValue},e)),{})}_hasElementChild(e){const t=e.childNodes;return!!t&&0!==t.length&&this._isThereAnyNoTextNode(t)}_isThereAnyNoTextNode(e){return Array.from(e).some((e=>"#text"!==e.nodeName))}}},9548:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.XmlToMathMLAdapter=void 0;const a=n(r(8978));t.XmlToMathMLAdapter=class{constructor(e,t){this._xml="",this._elementsConvertor=e,this._errorHandler=t,this._xmlDOM=new a.default.DOMParser({locator:this._errorHandler.errorLocator,errorHandler:this._fixError.bind(this)})}convert(e){return this._xml=this._removeLineBreaks(e),this._xml=this._removeMsWordPrefixes(this._xml),this._elementsConvertor.convert(this._mathMLElements)}_fixError(e){this._xml=this._errorHandler.fixError(this._xml,e)}_removeLineBreaks(e){return e.replace(/\n|\r\n|\r/g,"")}_removeMsWordPrefixes(e){return e.replace(/mml:/g,"")}get _mathMLElements(){let e=this._xmlDOM.parseFromString(this._xml).getElementsByTagName("math");return this._errorHandler.isThereAnyErrors()&&(this._errorHandler.cleanErrors(),e=this._xmlDOM.parseFromString(this._xml).getElementsByTagName("math")),Array.from(e)}}},7941:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(8585),t)},8585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeToMathElementsConverter=void 0;const n=r(9208);t.makeToMathElementsConverter=()=>{const e=new n.ElementsToMathMLAdapter,t=new n.ErrorHandler;return new n.XmlToMathMLAdapter(e,t)}},8672:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(3798),t)},3798:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathMLToLaTeX=void 0;const n=r(5443),a=r(7941);t.MathMLToLaTeX=class{static convert(e){return(0,a.makeToMathElementsConverter)().convert(e).map((e=>new n.MathMLElementToLatexConverterAdapter(e).toLatexConverter())).map((e=>e.convert())).join("").trim()}}},2965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allMathOperatorsByChar=void 0,t.allMathOperatorsByChar={_:"\\underline","&#x23E1;":"\\underbrace","&#x23E0;":"\\overbrace","&#x23DF;":"\\underbrace","&#x23DE;":"\\overbrace","&#x23DD;":"\\underbrace","&#x23DC;":"\\overbrace","&#x23B5;":"\\underbrace","&#x23B4;":"\\overbrace","&#x20DC;":"\\square","&#x20DB;":"\\square","&#x2064;":"","&#x2057;":"''''","&#x203E;":"\\bar","&#x2037;":"```","&#x2036;":"``","&#x2035;":"`","&#x2034;":"'''","&#x2033;":"''","&#x201F;":"``","&#x201E;":",,","&#x201B;":"`","&#x201A;":",","&#x302;":"\\hat","&#x2F7;":"\\sim","&#x2DD;":"\\sim","&#x2DC;":"\\sim","&#x2DA;":"\\circ","&#x2D9;":"\\cdot","&#x2D8;":"","&#x2CD;":"\\_","&#x2CB;":"\u02cb","&#x2CA;":"\u02ca","&#x2C9;":"\u02c9","&#x2C7;":"","&#x2C6;":"\\hat","&#xBA;":"o","&#xB9;":"1","&#xB8;":"\xb8","&#xB4;":"\xb4","&#xB3;":"3","&#xB2;":"2","&#xB0;":"\\circ","&#xAF;":"\\bar","&#xAA;":"a","&#xA8;":"\\cdot\\cdot","~":"\\sim","`":"`","^":"\\hat","--":"--","++":"++","&amp;":"\\&","&#x2061;":"","&#x221C;":"\\sqrt[4]{}","&#x221B;":"\\sqrt[3]{}","&#x221A;":"\\sqrt{}","&#x2146;":"d","&#x2145;":"\\mathbb{D}","?":"?","@":"@","//":"//","!!":"!!","!":"!","&#x266F;":"\\#","&#x266E;":"","&#x266D;":"","&#x2032;":"'","&lt;>":"<>","**":"\\star\\star","&#x2207;":"\\nabla","&#x2202;":"\\partial","&#x2299;":"\\bigodot","&#xAC;":"\\neg","&#x2222;":"\\measuredangle","&#x2221;":"\\measuredangle","&#x2220;":"\\angle","&#xF7;":"\\div","/":"/","&#x2216;":"\\backslash","\\":"\\backslash","%":"\\%","&#x2297;":"\\bigotimes","&#xB7;":"\\cdot","&#x2A3F;":"\\coprod","&#x2A2F;":"\\times","&#x22C5;":"\\cdot","&#x22A1;":"\\boxdot","&#x22A0;":"\\boxtimes","&#x2062;":"","&#x2043;":"-","&#x2022;":"\\cdot","&#xD7;":"\\times",".":".","*":"\\star","&#x222A;":"\\cup","&#x2229;":"\\cap","&#x2210;":"\\coprod","&#x220F;":"\\prod","&#x2240;":"","&#x2AFF;":"","&#x2AFC;":"\\mid\\mid\\mid","&#x2A09;":"\\times","&#x2A08;":"","&#x2A07;":"","&#x2A06;":"\\sqcup","&#x2A05;":"\\sqcap","&#x2A02;":"\\otimes","&#x2A00;":"\\odot","&#x22C2;":"\\cap","&#x22C1;":"\\vee","&#x22C0;":"\\wedge","&#x2A04;":"\\uplus","&#x2A03;":"\\cup","&#x22C3;":"\\cup","&#x2A1C;":"\\underline{\\int}","&#x2A1B;":"\\overline{\\int}","&#x2A1A;":"\\int","&#x2A19;":"\\int","&#x2A18;":"\\int","&#x2A17;":"\\int","&#x2A16;":"\\oint","&#x2A15;":"\\oint","&#x2A14;":"\\int","&#x2A13;":"\\int","&#x2A12;":"\\int","&#x2A11;":"\\int","&#x2A10;":"\\int","&#x2A0F;":"\\bcancel{\\int}","&#x2A0E;":"","&#x2A0D;":"\\hcancel{\\int}","&#x2A0C;":"\\iiiint","&#x2233;":"\\oint","&#x2232;":"\\oint","&#x2231;":"\\int","&#x2230;":"\\oiint","&#x222F;":"\\oiint","&#x222E;":"\\oint","&#x222B;":"\\int","&#x2A01;":"\\oplus","&#x2298;":"\\oslash","&#x2296;":"\\ominus","&#x2295;":"\\oplus","&#x222D;":"\\iiint","&#x222C;":"\\iint","&#x2A0B;":"","&#x2A0A;":"","&#x2211;":"\\sum","&#x229F;":"\\boxminus","&#x229E;":"\\boxplus","&#x2214;":"\\dot{+}","&#x2213;":"+-","&#x2212;":"-","&#xB1;":"\\pm","-":"-","+":"+","&#x2B46;":"\\Rrightarrow","&#x2B45;":"\\Lleftarrow","&#x29F4;":":\\rightarrow","&#x29EF;":"","&#x29DF;":"\\bullet-\\bullet","&#x299F;":"\\angle","&#x299E;":"\\measuredangle","&#x299D;":"\\measuredangle","&#x299C;":"\\perp","&#x299B;":"\\measuredangle","&#x299A;":"","&#x2999;":"\\vdots","&#x297F;":"","&#x297E;":"","&#x297D;":"\\prec","&#x297C;":"\\succ","&#x297B;":"\\underset{\\rightarrow}{\\supset}","&#x297A;":"","&#x2979;":"\\underset{\\rightarrow}{\\subset}","&#x2978;":"\\underset{\\rightarrow}{>}","&#x2977;":"","&#x2976;":"\\underset{\\leftarrow}{<}","&#x2975;":"\\underset{\\approx}{\\rightarrow}","&#x2974;":"\\underset{\\sim}{\\rightarrow}","&#x2973;":"\\underset{\\sim}{\\leftarrow}","&#x2972;":"\\overset{\\sim}{\\rightarrow}","&#x2971;":"\\overset{=}{\\rightarrow}","&#x2970;":"","&#x296F;":"","&#x296E;":"","&#x296D;":"\\overline{\\rightharpoondown}","&#x296C;":"\\underline{\\rightharpoonup}","&#x296B;":"\\overline{\\leftharpoondown}","&#x296A;":"\\underline{\\leftharpoonup}","&#x2969;":"\\rightleftharpoons","&#x2968;":"\\rightleftharpoons","&#x2967;":"\\rightleftharpoons","&#x2966;":"\\rightleftharpoons","&#x2965;":"\\Downarrow","&#x2964;":"\\Rightarrow","&#x2963;":"\\Uparrow","&#x2962;":"\\Leftarrow","&#x2961;":"\\downarrow","&#x2960;":"\\uparrow","&#x295F;":"\\rightarrow","&#x295E;":"\\leftarrow","&#x295D;":"\\downarrow","&#x295C;":"\\uparrow","&#x295B;":"\\rightarrow","&#x295A;":"\\leftarrow","&#x2959;":"\\downarrow","&#x2958;":"\\uparrow","&#x2957;":"\\rightarrow","&#x2956;":"\\leftarrow","&#x2955;":"\\downarrow","&#x2954;":"\\uparrow","&#x2953;":"\\rightarrow","&#x2952;":"\\leftarrow","&#x2951;":"\\updownarrow","&#x2950;":"\\leftrightarrow","&#x294F;":"\\updownarrow","&#x294E;":"\\leftrightarrow","&#x294D;":"\\updownarrow","&#x294C;":"\\updownarrow","&#x294B;":"\\leftrightarrow","&#x294A;":"\\leftrightarrow","&#x2949;":"","&#x2948;":"\\leftrightarrow","&#x2947;":"\\nrightarrow","&#x2946;":"","&#x2945;":"","&#x2944;":"\\rightleftarrows","&#x2943;":"\\leftrightarrows","&#x2942;":"\\rightleftarrows","&#x2941;":"\\circlearrowright","&#x2940;":"\\circlearrowleft","&#x293F;":"\\rightarrow","&#x293E;":"\\leftarrow","&#x293D;":"","&#x293C;":"","&#x293B;":"","&#x293A;":"","&#x2939;":"","&#x2938;":"","&#x2937;":"\\Rsh","&#x2936;":"\\Lsh","&#x2935;":"\\downarrow","&#x2934;":"\\uparrow","&#x2933;":"\\leadsto","&#x2932;":"","&#x2931;":"","&#x2930;":"","&#x292F;":"","&#x292E;":"","&#x292D;":"","&#x292C;":"\\times","&#x292B;":"\\times","&#x292A;":"","&#x2929;":"","&#x2928;":"","&#x2927;":"","&#x2926;":"","&#x2925;":"","&#x2924;":"","&#x2923;":"","&#x2922;":"","&#x2921;":"","&#x2920;":"\\mapsto\\cdot","&#x291F;":"\\cdot\\leftarrow","&#x291E;":"\\rightarrow\\cdot","&#x291D;":"\\leftarrow","&#x291C;":"\\rightarrow","&#x291B;":"\\leftarrow","&#x291A;":"\\rightarrow","&#x2919;":"\\leftarrow","&#x2918;":"\\rightarrow","&#x2917;":"\\rightarrow","&#x2916;":"\\rightarrow","&#x2915;":"\\rightarrow","&#x2914;":"\\rightarrow","&#x2913;":"\\downarrow","&#x2912;":"\\uparrow","&#x2911;":"\\rightarrow","&#x2910;":"\\rightarrow","&#x290F;":"\\rightarrow","&#x290E;":"\\leftarrow","&#x290D;":"\\rightarrow","&#x290C;":"\\leftarrow","&#x290B;":"\\Downarrow","&#x290A;":"\\Uparrow","&#x2909;":"\\uparrow","&#x2908;":"\\downarrow","&#x2907;":"\\Rightarrow","&#x2906;":"\\Leftarrow","&#x2905;":"\\mapsto","&#x2904;":"\\nLeftrightarrow","&#x2903;":"\\nRightarrow","&#x2902;":"\\nLeftarrow","&#x2901;":"\\rightsquigarrow","&#x2900;":"\\rightsquigarrow","&#x27FF;":"\\rightsquigarrow","&#x27FE;":"\\Rightarrow","&#x27FD;":"\\Leftarrow","&#x27FC;":"\\mapsto","&#x27FB;":"\\leftarrow","&#x27FA;":"\\Longleftrightarrow","&#x27F9;":"\\Longrightarrow","&#x27F8;":"\\Longleftarrow","&#x27F7;":"\\leftrightarrow","&#x27F6;":"\\rightarrow","&#x27F5;":"\\leftarrow","&#x27F1;":"\\Downarrow","&#x27F0;":"\\Uparrow","&#x22B8;":"\\rightarrow","&#x21FF;":"\\leftrightarrow","&#x21FE;":"\\rightarrow","&#x21FD;":"\\leftarrow","&#x21FC;":"\\nleftrightarrow","&#x21FB;":"\\nrightarrow","&#x21FA;":"\\nleftarrow","&#x21F9;":"\\nleftrightarrow","&#x21F8;":"\\nrightarrow","&#x21F7;":"\\nleftarrow","&#x21F6;":"\\Rrightarrow","&#x21F5;":"","&#x21F4;":"\\rightarrow","&#x21F3;":"\\Updownarrow","&#x21F2;":"\\searrow","&#x21F1;":"\\nwarrow","&#x21F0;":"\\Leftarrow","&#x21EF;":"\\Uparrow","&#x21EE;":"\\Uparrow","&#x21ED;":"\\Uparrow","&#x21EC;":"\\Uparrow","&#x21EB;":"\\Uparrow","&#x21EA;":"\\Uparrow","&#x21E9;":"\\Downarrow","&#x21E8;":"\\Rightarrow","&#x21E7;":"\\Uparrow","&#x21E6;":"\\Leftarrow","&#x21E5;":"\\rightarrow","&#x21E4;":"\\leftarrow","&#x21E3;":"\\downarrow","&#x21E2;":"\\rightarrow","&#x21E1;":"\\uparrow","&#x21E0;":"\\leftarrow","&#x21DF;":"\\downarrow","&#x21DE;":"\\uparrow","&#x21DD;":"\\rightsquigarrow","&#x21DC;":"\\leftarrow","&#x21DB;":"\\Rrightarrow","&#x21DA;":"\\Lleftarrow","&#x21D9;":"\\swarrow","&#x21D8;":"\\searrow","&#x21D7;":"\\nearrow","&#x21D6;":"\\nwarrow","&#x21D5;":"\\Updownarrow","&#x21D4;":"\\Leftrightarrow","&#x21D3;":"\\Downarrow","&#x21D2;":"\\Rightarrow","&#x21D1;":"\\Uparrow","&#x21D0;":"\\Leftarrow","&#x21CF;":"\\nRightarrow","&#x21CE;":"\\nLeftrightarrow","&#x21CD;":"\\nLeftarrow","&#x21CC;":"\\rightleftharpoons","&#x21CB;":"\\leftrightharpoons","&#x21CA;":"\\downdownarrows","&#x21C9;":"\\rightrightarrows","&#x21C8;":"\\upuparrows","&#x21C7;":"\\leftleftarrows","&#x21C6;":"\\leftrightarrows","&#x21C5;":"","&#x21C4;":"\\rightleftarrows","&#x21C3;":"\\downharpoonleft","&#x21C2;":"\\downharpoonright","&#x21C1;":"\\rightharpoondown","&#x21C0;":"\\rightharpoonup","&#x21BF;":"\\upharpoonleft","&#x21BE;":"\\upharpoonright","&#x21BD;":"\\leftharpoondown","&#x21BC;":"\\leftharpoonup","&#x21BB;":"\\circlearrowright","&#x21BA;":"\\circlearrowleft","&#x21B9;":"\\leftrightarrows","&#x21B8;":"\\overline{\\nwarrow}","&#x21B7;":"\\curvearrowright","&#x21B6;":"\\curvearrowleft","&#x21B5;":"\\swarrow","&#x21B4;":"\\searrow","&#x21B3;":"\\Rsh","&#x21B2;":"\\Lsh","&#x21B1;":"\\Rsh","&#x21B0;":"\\Lsh","&#x21AF;":"\\swarrow","&#x21AE;":"","&#x21AD;":"\\leftrightsquigarrow","&#x21AC;":"\\looparrowright","&#x21AB;":"\\looparrowleft","&#x21AA;":"\\hookrightarrow","&#x21A9;":"\\hookleftarrow","&#x21A8;":"\\underline{\\updownarrow}","&#x21A7;":"\\downarrow","&#x21A6;":"\\rightarrowtail","&#x21A5;":"\\uparrow","&#x21A4;":"\\leftarrowtail","&#x21A3;":"\\rightarrowtail","&#x21A2;":"\\leftarrowtail","&#x21A1;":"\\downarrow","&#x21A0;":"\\twoheadrightarrow","&#x219F;":"\\uparrow","&#x219E;":"\\twoheadleftarrow","&#x219D;":"\\nearrow","&#x219C;":"\\nwarrow","&#x219B;":"","&#x219A;":"","&#x2199;":"\\swarrow","&#x2198;":"\\searrow","&#x2197;":"\\nearrow","&#x2196;":"\\nwarrow","&#x2195;":"\\updownarrow","&#x2194;":"\\leftrightarrow","&#x2193;":"\\downarrow","&#x2192;":"\\rightarrow","&#x2191;":"\\uparrow","&#x2190;":"\\leftarrow","|||":"\\left|||\\right.","||":"\\left||\\right.","|":"\\left|\\right.","&#x2AFE;":"","&#x2AFD;":"//","&#x2AFB;":"///","&#x2AFA;":"","&#x2AF9;":"","&#x2AF8;":"","&#x2AF7;":"","&#x2AF6;":"\\vdots","&#x2AF5;":"","&#x2AF4;":"","&#x2AF3;":"","&#x2AF2;":"\\nparallel","&#x2AF1;":"","&#x2AF0;":"","&#x2AEF;":"","&#x2AEE;":"\\bcancel{\\mid}","&#x2AED;":"","&#x2AEC;":"","&#x2AEB;":"","&#x2AEA;":"","&#x2AE9;":"","&#x2AE8;":"\\underline{\\perp}","&#x2AE7;":"\\overline{\\top}","&#x2AE6;":"","&#x2AE5;":"","&#x2AE4;":"","&#x2AE3;":"","&#x2AE2;":"","&#x2AE1;":"","&#x2AE0;":"\\perp","&#x2ADF;":"\\top","&#x2ADE;":"\\dashv","&#x2ADD;&#x338;":"","&#x2ADD;":"","&#x2ADB;":"\\pitchfork","&#x2ADA;":"","&#x2AD9;":"","&#x2AD8;":"","&#x2AD7;":"","&#x2AD6;":"","&#x2AD5;":"","&#x2AD4;":"","&#x2AD3;":"","&#x2AD2;":"","&#x2AD1;":"","&#x2AD0;":"","&#x2ACF;":"","&#x2ACE;":"","&#x2ACD;":"","&#x2ACC;":"\\underset{\\neq}{\\supset}","&#x2ACB;":"\\underset{\\neq}{\\subset}","&#x2ACA;":"\\underset{\\approx}{\\supset}","&#x2AC9;":"\\underset{\\approx}{\\subset}","&#x2AC8;":"\\underset{\\sim}{\\supset}","&#x2AC7;":"\\underset{\\sim}{\\subset}","&#x2AC6;":"\\supseteqq","&#x2AC5;":"\\subseteqq","&#x2AC4;":"\\dot{\\supseteq}","&#x2AC3;":"\\dot{\\subseteq}","&#x2AC2;":"\\underset{\\times}{\\supset}","&#x2AC1;":"\\underset{\\times}{\\subset}","&#x2AC0;":"\\underset{+}{\\supset}","&#x2ABF;":"\\underset{+}{\\subset}","&#x2ABE;":"","&#x2ABD;":"","&#x2ABC;":"\\gg ","&#x2ABB;":"\\ll","&#x2ABA;":"\\underset{\\cancel{\\approx}}{\\succ}","&#x2AB9;":"\\underset{\\cancel{\\approx}}{\\prec}","&#x2AB8;":"\\underset{\\approx}{\\succ}","&#x2AB7;":"\\underset{\\approx}{\\prec}","&#x2AB6;":"\\underset{\\cancel{=}}{\\succ}","&#x2AB5;":"\\underset{\\cancel{=}}{\\prec}","&#x2AB4;":"\\underset{=}{\\succ}","&#x2AB3;":"\\underset{=}{\\prec}","&#x2AB2;":"","&#x2AB1;":"","&#x2AAE;":"","&#x2AAD;":"\\underline{\\hcancel{>}}","&#x2AAC;":"\\underline{\\hcancel{>}}","&#x2AAB;":"\\hcancel{>}","&#x2AAA;":"\\hcancel{<}","&#x2AA9;":"","&#x2AA8;":"","&#x2AA7;":"\\vartriangleright","&#x2AA6;":"\\vartriangleleft","&#x2AA5;":"><","&#x2AA4;":"><","&#x2AA3;":"\\underline{\\ll}","&#x2AA2;&#x338;":"\\cancel{\\gg}","&#x2AA2;":"\\gg","&#x2AA1;&#x338;":"\\cancel{\\ll}","&#x2AA1;":"\\ll","&#x2AA0;":"\\overset{\\sim}{\\geqq}","&#x2A9F;":"\\overset{\\sim}{\\leqq}","&#x2A9E;":"\\overset{\\sim}{>}","&#x2A9D;":"\\overset{\\sim}{<}","&#x2A9C;":"","&#x2A9B;":"","&#x2A9A;":"\\overset{=}{>}","&#x2A99;":"\\overset{=}{<}","&#x2A98;":"","&#x2A97;":"","&#x2A96;":"","&#x2A95;":"","&#x2A94;":"","&#x2A93;":"","&#x2A92;":"\\underset{=}{\\gtrless}","&#x2A91;":"\\underset{=}{\\lessgtr}","&#x2A90;":"\\underset{<}{\\gtrsim}","&#x2A8F;":"\\underset{>}{\\lesssim}","&#x2A8E;":"\\underset{\\simeq}{>}","&#x2A8D;":"\\underset{\\simeq}{<}","&#x2A8C;":"\\gtreqqless","&#x2A8B;":"\\lesseqqgtr","&#x2A8A;":"\\underset{\\cancel{\\approx}}{>}","&#x2A89;":"\\underset{\\approx}{<}","&#x2A86;":"\\underset{\\approx}{>}","&#x2A85;":"\\underset{\\approx}{<}","&#x2A84;":"","&#x2A83;":"","&#x2A82;":"","&#x2A81;":"","&#x2A80;":"","&#x2A7F;":"","&#x2A7E;&#x338;":"\\bcancel{\\geq}","&#x2A7E;":"\\geq","&#x2A7D;&#x338;":"\\bcancel{\\leq}","&#x2A7D;":"\\leq","&#x2A7C;":"","&#x2A7B;":"","&#x2A7A;":"","&#x2A79;":"","&#x2A78;":"\\overset{\\dots}{\\equiv}","&#x2A77;":"","&#x2A76;":"===","&#x2A75;":"==","&#x2A74;":"::=","&#x2A73;":"","&#x2A72;":"\\underset{=}{+}","&#x2A71;":"\\overset{=}{+}","&#x2A70;":"\\overset{\\approx}{=}","&#x2A6F;":"\\overset{\\wedge}{=}","&#x2A6E;":"\\overset{*}{=}","&#x2A6D;":"\\dot{\\approx}","&#x2A6C;":"","&#x2A6B;":"","&#x2A6A;":"\\dot{\\sim}","&#x2A69;":"","&#x2A68;":"","&#x2A67;":"\\dot{\\equiv}","&#x2A66;":"\\underset{\\cdot}{=}","&#x2A65;":"","&#x2A64;":"","&#x2A63;":"\\underset{=}{\\vee}","&#x2A62;":"\\overset{=}{\\vee}","&#x2A61;":"ul(vv)","&#x2A60;":"\\underset{=}{\\wedge}","&#x2A5F;":"\\underline{\\wedge}","&#x2A5E;":"\\overset{=}{\\wedge}","&#x2A5D;":"\\hcancel{\\vee}","&#x2A5C;":"\\hcancel{\\wedge}","&#x2A5B;":"","&#x2A5A;":"","&#x2A59;":"","&#x2A58;":"\\vee","&#x2A57;":"\\wedge","&#x2A56;":"","&#x2A55;":"","&#x2A54;":"","&#x2A53;":"","&#x2A52;":"\\dot{\\vee}","&#x2A51;":"\\dot{\\wedge}","&#x2A50;":"","&#x2A4F;":"","&#x2A4E;":"","&#x2A4D;":"\\overline{\\cap}","&#x2A4C;":"\\overline{\\cup}","&#x2A4B;":"","&#x2A4A;":"","&#x2A49;":"","&#x2A48;":"","&#x2A47;":"","&#x2A46;":"","&#x2A45;":"","&#x2A44;":"","&#x2A43;":"\\overline{\\cap}","&#x2A42;":"\\overline{\\cup}","&#x2A41;":"","&#x2A40;":"","&#x2A3E;":"","&#x2A3D;":"\\llcorner","&#x2A3C;":"\\lrcorner","&#x2A3B;":"","&#x2A3A;":"","&#x2A39;":"","&#x2A38;":"","&#x2A37;":"","&#x2A36;":"\\hat{\\otimes}","&#x2A35;":"","&#x2A34;":"","&#x2A33;":"","&#x2A32;":"\\underline{\\times}","&#x2A31;":"\\underline{\\times}","&#x2A30;":"\\dot{\\times}","&#x2A2E;":"","&#x2A2D;":"","&#x2A2C;":"","&#x2A2B;":"","&#x2A2A;":"","&#x2A29;":"","&#x2A28;":"","&#x2A27;":"","&#x2A26;":"\\underset{\\sim}{+}","&#x2A25;":"\\underset{\\circ}{+}","&#x2A24;":"\\overset{\\sim}{+}","&#x2A23;":"\\hat{+}","&#x2A22;":"\\dot{+}","&#x2A21;":"\\upharpoonright","&#x2A20;":">>","&#x2A1F;":"","&#x2A1E;":"\\triangleleft","&#x2A1D;":"\\bowtie","&#x29FF;":"","&#x29FE;":"+","&#x29FB;":"\\hcancel{|||}","&#x29FA;":"\\hcancel{||}","&#x29F9;":"\\backslash","&#x29F8;":"/","&#x29F7;":"hcancel{\backslash}","&#x29F6;":"","&#x29F5;":"\\backslash","&#x29F2;":"\\Phi","&#x29F1;":"","&#x29F0;":"","&#x29EE;":"","&#x29ED;":"","&#x29EC;":"","&#x29EB;":"\\lozenge","&#x29EA;":"","&#x29E9;":"","&#x29E8;":"","&#x29E7;":"\\ddagger","&#x29E2;":"\\sqcup\\sqcup","&#x29E1;":"","&#x29E0;":"\\square","&#x29DE;":"","&#x29DD;":"","&#x29DC;":"","&#x29DB;":"\\{\\{","&#x29D9;":"\\{","&#x29D8;":"\\}","&#x29D7;":"","&#x29D6;":"","&#x29D5;":"\\bowtie","&#x29D4;":"\\bowtie","&#x29D3;":"\\bowtie","&#x29D2;":"\\bowtie","&#x29D1;":"\\bowtie","&#x29D0;&#x338;":"| \\not\\triangleright","&#x29D0;":"| \\triangleright","&#x29CF;&#x338;":"\\not\\triangleleft |","&#x29CF;":"\\triangleleft |","&#x29CE;":"","&#x29CD;":"\\triangle","&#x29CC;":"","&#x29CB;":"\\underline{\\triangle}","&#x29CA;":"\\dot{\\triangle}","&#x29C9;":"","&#x29C8;":"\\boxed{\\circ}","&#x29C7;":"\\boxed{\\circ}","&#x29C6;":"\\boxed{\\rightarrow}","&#x29C5;":"\\bcancel{\\square}","&#x29C4;":"\\cancel{\\square}","&#x29C3;":"\\odot","&#x29C2;":"\\odot","&#x29BF;":"\\odot","&#x29BE;":"\\odot","&#x29BD;":"\\varnothing","&#x29BC;":"\\oplus","&#x29BB;":"\\otimes","&#x29BA;":"","&#x29B9;":"\\varnothing","&#x29B8;":"\\varnothing","&#x29B7;":"\\ominus","&#x29B6;":"\\ominus","&#x29B5;":"\\ominus","&#x29B4;":"\\vec{\\varnothing}","&#x29B3;":"\\vec{\\varnothing}","&#x29B2;":"\\dot{\\varnothing}","&#x29B1;":"\\overline{\\varnothing}","&#x29B0;":"\\varnothing","&#x29AF;":"","&#x29AE;":"","&#x29AD;":"","&#x29AC;":"","&#x29AB;":"","&#x29AA;":"","&#x29A9;":"","&#x29A8;":"","&#x29A7;":"","&#x29A6;":"","&#x29A5;":"","&#x29A4;":"","&#x29A3;":"","&#x29A2;":"","&#x29A1;":"\\not\\lor","&#x29A0;":"\\bcancel{>}","&#x2982;":":","&#x2981;":"\\circ","&#x2758;":"|","&#x25B2;":"\\bigtriangleup","&#x22FF;":"\\Epsilon","&#x22FE;":"\\overline{\\ni}","&#x22FD;":"\\overline{\\ni}","&#x22FC;":"\\in","&#x22FB;":"\\in","&#x22FA;":"\\in","&#x22F9;":"\\underline{\\in}","&#x22F8;":"\\underline{\\in}","&#x22F7;":"\\overline{\\in}","&#x22F6;":"\\overline{\\in}","&#x22F5;":"\\dot{\\in}","&#x22F4;":"\\in","&#x22F3;":"\\in","&#x22F2;":"\\in","&#x22F0;":"\\ddots","&#x22E9;":"\\underset{\\sim}{\\succ}","&#x22E8;":"\\underset{\\sim}{\\prec}","&#x22E7;":"\\underset{\\not\\sim}{>}","&#x22E6;":"\\underset{\\not\\sim}{<}","&#x22E5;":"\\not\\sqsupseteq","&#x22E4;":"\\not\\sqsubseteq","&#x22E3;":"\\not\\sqsupseteq","&#x22E2;":"\\not\\sqsubseteq","&#x22E1;":"\\nsucc","&#x22E0;":"\\nprec","&#x22DF;":"\\succ","&#x22DE;":"\\prec","&#x22DD;":"\\overline{>}","&#x22DC;":"\\overline{<}","&#x22DB;":"\\underset{>}{\\leq}","&#x22DA;":"\\underset{<}{\\geq}","&#x22D5;":"\\#","&#x22D3;":"\\cup","&#x22D2;":"\\cap","&#x22D1;":"\\supset","&#x22D0;":"\\subset","&#x22CF;":"\\wedge","&#x22CE;":"\\vee","&#x22CD;":"\\simeq","&#x22C8;":"\\bowtie","&#x22C7;":"\\ast","&#x22C6;":"\\star","&#x22C4;":"\\diamond","&#x22BF;":"\\triangle","&#x22BE;":"\\measuredangle","&#x22BD;":"\\overline{\\lor}","&#x22BC;":"\\overline{\\land}","&#x22BB;":"\\underline{\\lor}","&#x22BA;":"\\top","&#x22B9;":"","&#x22B7;":"\\circ\\multimap","&#x22B6;":"\\circ\\multimap","&#x22B3;":"\\triangleright","&#x22B2;":"\\triangleleft","&#x22B1;":"\\succ","&#x22B0;":"\\prec","&#x22AB;":"|\\models","&#x22AA;":"|\\models","&#x22A7;":"\\models","&#x22A6;":"\\vdash","&#x229D;":"\\ominus","&#x229C;":"\\ominus","&#x229B;":"\\odot","&#x229A;":"\\odot","&#x2294;":"\\sqcup","&#x2293;":"\\sqcap","&#x2292;":"\\sqsupseteq","&#x2291;":"\\sqsubseteq","&#x2290;&#x338;":"\\not\\sqsupset","&#x2290;":"\\sqsupset","&#x228F;&#x338;":"\\not\\sqsubset","&#x228F;":"\\sqsubset","&#x228E;":"\\cup","&#x228D;":"\\cup","&#x228C;":"\\cup","&#x227F;&#x338;":"\\not\\succsim","&#x227F;":"\\succsim","&#x227E;":"\\precsim","&#x2279;":"\\not\\overset{>}{<}","&#x2278;":"\\not\\overset{>}{<}","&#x2277;":"\\overset{>}{<}","&#x2276;":"\\overset{<}{>}","&#x2275;":"\\not\\geg","&#x2274;":"\\not\\leq","&#x2273;":"\\geg","&#x2272;":"\\leq","&#x226C;":"","&#x2267;":"\\geg","&#x2266;&#x338;":"\\not\\leq","&#x2266;":"\\leq","&#x2263;":"\\overset{=}{=} ","&#x225E;":"\\overset{m}{=} ","&#x225D;":"\\overset{def}{=}","&#x2258;":"=","&#x2256;":"=","&#x2255;":"=:","&#x2253;":"\\doteq","&#x2252;":"\\doteq","&#x2251;":"\\doteq","&#x2250;":"\\doteq","&#x224F;&#x338;":"","&#x224F;":"","&#x224E;&#x338;":"","&#x224E;":"","&#x224C;":"\\approx","&#x224B;":"\\approx","&#x224A;":"\\approx","&#x2242;&#x338;":"\\neq","&#x2242;":"=","&#x223F;":"\\sim","&#x223E;":"\\infty","&#x223D;&#x331;":"\\sim","&#x223D;":"\\sim","&#x223B;":"\\sim","&#x223A;":":-:","&#x2239;":"-:","&#x2238;":"\\bot","&#x2237;":"::","&#x2236;":":","&#x2223;":"|","&#x221F;":"\\llcorner","&#x2219;":"\\cdot","&#x2218;":"\\circ","&#x2217;":"*","&#x2215;":"/","&#x220E;":"\\square","&#x220D;":"\\ni","&#x220A;":"\\in","&#x2206;":"\\Delta","&#x2044;":"/","&#x2AB0;&#x338;":"\\nsucceq","&#x2AB0;":"\\succeq","&#x2AAF;&#x338;":"\\npreceq","&#x2AAF;":"\\preceq","&#x2A88;":"\\ngeqslant","&#x2A87;":"\\nleqslant","&#x29F3;":"\\Phi","&#x29E6;":"\\models","&#x29E5;":"\\not\\equiv","&#x29E4;":"\\approx\\neq","&#x29E3;":"\\neq","&#x29C1;":"\\circle","&#x29C0;":"\\circle","&#x25E6;":"\\circle","&#x25D7;":"\\circle","&#x25D6;":"\\circle","&#x25CF;":"\\circle","&#x25CE;":"\\circledcirc","&#x25CD;":"\\circledcirc","&#x25CC;":"\\circledcirc","&#x25C9;":"\\circledcirc","&#x25C8;":"\\diamond","&#x25C7;":"\\diamond","&#x25C6;":"\\diamond","&#x25C5;":"\\triangleleft","&#x25C4;":"\\triangleleft","&#x25C3;":"\\triangleleft","&#x25C2;":"\\triangleleft","&#x25C1;":"\\triangleleft","&#x25C0;":"\\triangleleft","&#x25BF;":"\\triangledown","&#x25BE;":"\\triangledown","&#x25BD;":"\\triangledown","&#x25BC;":"\\triangledown","&#x25B9;":"\\triangleright","&#x25B8;":"\\triangleright","&#x25B7;":"\\triangleright","&#x25B6;":"\\triangleright","&#x25B5;":"\\triangle","&#x25B4;":"\\triangle","&#x25B3;":"\\triangle","&#x25B1;":"\\square","&#x25B0;":"\\square","&#x25AF;":"\\square","&#x25AE;":"\\square","&#x25AD;":"\\square","&#x25AB;":"\\square","&#x25AA;":"\\square","&#x25A1;":"\\square","&#x25A0;":"\\square","&#x22ED;":"\\not\\triangleright","&#x22EC;":"\\not\\triangleleft","&#x22EB;":"\\not\\triangleright","&#x22EA;":"\\not\\triangleleft","&#x22D9;":"\\ggg","&#x22D8;":"\\lll","&#x22D7;":"*>","&#x22D6;":"<*","&#x22D4;":"\\pitchfork","&#x22CC;":"","&#x22CB;":"","&#x22CA;":"\\rtimes","&#x22C9;":"\\ltimes","&#x22B5;":"\\triangleright","&#x22B4;":"","&#x22A5;":"\\bot","&#x2281;":"\\nsucc","&#x2280;":"\\preceq","&#x227D;":"\\succeq","&#x227C;":"\\preceq","&#x227B;":"\\succ","&#x227A;":"\\prec","&#x2271;":"\\geq/","&#x2270;":"\\leq/","&#x226D;":"\\neq","&#x226B;&#x338;":"\\not\\gg","&#x226B;":"\\gg","&#x226A;&#x338;":"\\not\\ll","&#x226A;":"\\ll","&#x2269;":"\\ngeqslant","&#x2268;":"\\nleqslant","&#x2261;":"\\equiv","&#x225F;":"\\doteq","&#x225C;":"\\triangleq","&#x225B;":"\\doteq","&#x225A;":"\\triangleq","&#x2259;":"\\triangleq","&#x2257;":"\\doteq","&#x2254;":":=","&#x224D;":"\\asymp","&#x2247;":"\\ncong","&#x2246;":"\\ncong","&#x2245;":"\\cong","&#x2244;":"\\not\\simeq","&#x2243;":"\\simeq","&#x2241;":"\\not\\sim","&#x2226;":"\\not\\parallel","&#x2225;":"\\parallel","&#x2224;":"\\not|","&#x221D;":"\\propto","==":"==","=":"=",":=":":=","/=":"=","-=":"-=","+=":"+=","*=":"*=","!=":"!=","&#x2260;":"\\neq","&#x2262;":"\\equiv /","&#x2249;":"\\approx /","&#x223C;":"sim","&#x2248;":"\\approx","&#x226E;":"</","&lt;":"<","&#x226F;":">/",">=":">=",">":">","&#x2265;":"\\geq","&#x2264;":"\\leq","&lt;=":"<=","&#x228B;":"\\supsetneq","&#x228A;":"\\subsetneq","&#x2289;":"\\nsupseteq","&#x2288;":"\\nsubseteq","&#x2287;":"\\supseteq","&#x2286;":"\\subseteq","&#x2285;":"\\not\\supset","&#x2284;":"\\not\\subset","&#x2283;&#x20D2;":"\\supset |","&#x2283;":"\\supset","&#x2282;&#x20D2;":"\\subset |","&#x2282;":"\\subset","&#x220C;":"\\not\\in","&#x2209;":"\\notin","&#x2208;":"\\in","&#x2201;":"C","&#x2204;":"\\nexists","&#x2203;":"\\exists","&#x2200;":"\\forall","&#x2227;":"\\land","&amp;&amp;":"\\&\\&","&#x2228;":"\\lor","&#x22AF;":"\\cancel{\\vDash}","&#x22AE;":"\\cancel{\\Vdash}","&#x22AD;":"\\nvDash","&#x22AC;":"\\nvDash","&#x22A9;":"\\Vdash","&#x22A8;":"\\vDash","&#x22A4;":"\\top","&#x22A3;":"\\dashv","&#x22A2;":"\\vdash","&#x220B;":"\\ni","&#x22F1;":"\\ddots","&#x22EF;":"\\hdots","&#x22EE;":"\\vdots","&#x2026;":"\\hdots","&#x3F6;":"\\ni",":":":","...":"\\cdots","..":"..","->":"->","&#x2235;":"\\because","&#x2234;":"\\therefore ","&#x2063;":"",",":",",";":";","&#x29FD;":"\\}","&#x29FC;":"\\{","&#x2998;":"\\]","&#x2997;":"\\[","&#x2996;":"\\ll","&#x2995;":"\\gg","&#x2994;":"\\gg","&#x2993;":"\\ll","&#x2992;":"\\gg","&#x2991;":"\\ll","&#x2990;":"\\]","&#x298F;":"\\]","&#x298E;":"\\]","&#x298D;":"\\[","&#x298C;":"\\[","&#x298B;":"\\]","&#x298A;":"\\triangleright","&#x2989;":"\\triangleleft","&#x2988;":"|\\)","&#x2987;":"\\(|","&#x2986;":"|\\)","&#x2985;":"\\(\\(","&#x2984;":"|\\}","&#x2983;":"\\{|","&#x2980;":"\\||","&#x27EF;":"\\left. \\right]","&#x27EE;":"\\left[ \\right.","&#x27ED;":"\\left. \\right]]","&#x27EC;":"\\left[[ \\right.","&#x27EB;":"\\gg","&#x27EA;":"\\ll","&#x27E9;":"\\rangle","&#x27E8;":"\\langle","&#x27E7;":"\\left. \\right]]","&#x27E6;":"\\left[[ \\right.","&#x2773;":"\\left.\\right)","&#x2772;":"\\left(\\right.","&#x232A;":"\\rangle","&#x2329;":"\\langle","&#x230B;":"\\rfloor","&#x230A;":"\\lfloor","&#x2309;":"\\rceil","&#x2308;":"\\lceil","&#x2016;":"\\parallel","}":"\\left.\\right}","{":"\\left{\\right.","]":"\\left]\\right.","[":"\\left[\\right.",")":"\\left.\\right)","(":"\\left(\\right.","&#x201D;":'"',"&#x201C;":"``","&#x2019;":"'","&#x2018;":"`","%CE%B1":"\\alpha","%CE%B2":"\\beta","%CE%B3":"\\gamma","%CE%93":"\\Gamma","%CE%B4":"\\delta","%CE%94":"\\Delta","%CF%B5":"\\epsilon","%CE%B6":"\\zeta","%CE%B7":"\\eta","%CE%B8":"\\theta","%CE%98":"\\Theta","%CE%B9":"\\iota","%CE%BA":"\\kappa","%CE%BB":"\\lambda","%CE%BC":"\\mu","%CE%BD":"\\nu","%CE%BF":"\\omicron","%CF%80":"\\pi","%CE%A0":"\\Pi","%CF%81":"\\pho","%CF%83":"\\sigma","%CE%A3":"\\Sigma","%CF%84":"\\tau","%CF%85":"\\upsilon","%CE%A5":"\\Upsilon","%CF%95":"\\phi","%CE%A6":"\\Phi","%CF%87":"\\chi","%CF%88":"\\psi","%CE%A8":"\\Psi","%CF%89":"\\omega","%CE%A9":"\\Omega"}},9039:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allMathOperatorsByGlyph=void 0,t.allMathOperatorsByGlyph={_:"\\underline","\u23e1":"\\underbrace","\u23e0":"\\overbrace","\u23df":"\\underbrace","\u23de":"\\overbrace","\u23dd":"\\underbrace","\u23dc":"\\overbrace","\u23b5":"\\underbrace","\u23b4":"\\overbrace","\u20dc":"\\square","\u20db":"\\square","\u2064":"","\u2057":"''''","\u203e":"\\overline","\u2037":"```","\u2036":"``","\u2035":"`","\u2034":"'''","\u2033":"''","\u201f":"``","\u201e":",,","\u201b":"`","\u201a":",","^":"\\hat","\u02f7":"\\sim","\u02dd":"\\sim","\u02dc":"\\sim","\u02da":"\\circ","\u02d9":"\\cdot","\u02d8":" ",\u02cd:"\\_",\u02cb:"\u02cb",\u02ca:"\u02ca",\u02c9:"\u02c9",\u02c7:"",\u02c6:"\\hat",\u00ba:"o","\xb9":"1","\xb8":",","\xb4":"\xb4","\xb3":"3","\xb2":"2","\xb0":"\\circ","\xaf":"\\bar",\u00aa:"a","\u219b":"\\nrightarrow","\xa8":"\\cdot\\cdot","~":"\\sim","`":"`","--":"--","++":"++","&":"\\&","\u221c":"\\sqrt[4]{}","\u221b":"\\sqrt[3]{}","\u221a":"\\sqrt{}",\u2146:"d",\u2145:"\\mathbb{D}","?":"?","@":"@","//":"//","!!":"!!","!":"!","\u266f":"\\#","\u266e":"","\u266d":"","\u2032":"'","<>":"<>","**":"\\star\\star","\u2207":"\\nabla","\u2202":"\\partial","\u2299":"\\bigodot","\xac":"\\neg","\u2222":"\\measuredangle","\u2221":"\\measuredangle","\u2220":"\\angle","\xf7":"\\div","/":"/","\u2216":"\\backslash","\\":"\\backslash","%":"\\%","\u2297":"\\bigotimes","\xb7":"\\cdot","\u2a3f":"\\coprod","\u2a2f":"\\times","\u22c5":"\\cdot","\u22a1":"\\boxdot","\u22a0":"\\boxtimes","\u2062":"","\u2043":"-","\u2022":"\\cdot",".":".","*":"\\star","\u222a":"\\cup","\u2229":"\\cap","\u2210":"\\coprod","\u220f":"\\prod","\u2240":"","\u2aff":"","\u2afc":"\\mid\\mid\\mid","\u2a09":"\\times","\u2a08":"","\u2a07":"","\u2a06":"\\sqcup","\u2a05":"\\sqcap","\u2a02":"\\otimes","\u2a00":"\\odot","\u22c2":"\\cap","\u22c1":"\\vee","\u22c0":"\\wedge","\u2a04":"\\uplus","\u2a03":"\\cup","\u22c3":"\\cup","\u2a1c":"\\underline{\\int}","\u2a1b":"\\overline{\\int}","\u2a1a":"\\int","\u2a19":"\\int","\u2a18":"\\int","\u2a17":"\\int","\u2a16":"\\oint","\u2a15":"\\oint","\u2a14":"\\int","\u2a13":"\\int","\u2a12":"\\int","\u2a11":"\\int","\u2a10":"\\int","\u2a0f":"\\bcancel{\\int}","\u2a0e":"","\u2a0d":"\\hcancel{\\int}","\u2a0c":"\\iiiint","\u2233":"\\oint","\u2232":"\\oint","\u2231":"\\int","\u2230":"\\oiint","\u222f":"\\oiint","\u222e":"\\oint","\u222b":"\\int","\u2a01":"\\oplus","\u2298":"\\oslash","\u2296":"\\ominus","\u2295":"\\oplus","\u222d":"\\iiint","\u222c":"\\iint","\u2a0b":"","\u2a0a":"","\u2211":"\\sum","\u229f":"\\boxminus","\u229e":"\\boxplus","\u2214":"\\dot{+}","\u2213":"+-","\u2212":"-","\xb1":"\\pm","-":"-","+":"+","\u2b46":"\\Rrightarrow","\u2b45":"\\Lleftarrow","\u29f4":":\\rightarrow","\u29ef":"","\u29df":"\\bullet-\\bullet","\u299f":"\\angle","\u299e":"\\measuredangle","\u299d":"\\measuredangle","\u299c":"\\perp","\u299b":"\\measuredangle","\u299a":"","\u2999":"\\vdots","\u297f":"","\u297e":"","\u297d":"\\prec","\u297c":"\\succ","\u297b":"\\underset{\\rightarrow}{\\supset}","\u297a":"","\u2979":"\\underset{\\rightarrow}{\\subset}","\u2978":"\\underset{\\rightarrow}{>}","\u2977":"","\u2976":"\\underset{\\leftarrow}{<}","\u2975":"\\underset{\\approx}{\\rightarrow}","\u2974":"\\underset{\\sim}{\\rightarrow}","\u2973":"\\underset{\\sim}{\\leftarrow}","\u2972":"\\overset{\\sim}{\\rightarrow}","\u2971":"\\overset{=}{\\rightarrow}","\u2970":"","\u296f":"","\u296e":"","\u296d":"\\overline{\\rightharpoondown}","\u296c":"\\underline{\\rightharpoonup}","\u296b":"\\overline{\\leftharpoondown}","\u296a":"\\underline{\\leftharpoonup}","\u2969":"\\rightleftharpoons","\u2968":"\\rightleftharpoons","\u2967":"\\rightleftharpoons","\u2966":"\\rightleftharpoons","\u2965":"\\Downarrow","\u2964":"\\Rightarrow","\u2963":"\\Uparrow","\u2962":"\\Leftarrow","\u2961":"\\downarrow","\u2960":"\\uparrow","\u295f":"\\rightarrow","\u295e":"\\leftarrow","\u295d":"\\downarrow","\u295c":"\\uparrow","\u295b":"\\rightarrow","\u295a":"\\leftarrow","\u2959":"\\downarrow","\u2958":"\\uparrow","\u2957":"\\rightarrow","\u2956":"\\leftarrow","\u2955":"\\downarrow","\u2954":"\\uparrow","\u2953":"\\rightarrow","\u2952":"\\leftarrow","\u2951":"\\updownarrow","\u2950":"\\leftrightarrow","\u294f":"\\updownarrow","\u294e":"\\leftrightarrow","\u294d":"\\updownarrow","\u294c":"\\updownarrow","\u294b":"\\leftrightarrow","\u294a":"\\leftrightarrow","\u2949":"","\u2948":"\\leftrightarrow","\u2947":"\\nrightarrow","\u2946":"","\u2945":"","\u2944":"\\rightleftarrows","\u2943":"\\leftrightarrows","\u2942":"\\rightleftarrows","\u2941":"\\circlearrowright","\u2940":"\\circlearrowleft","\u293f":"\\rightarrow","\u293e":"\\leftarrow","\u293d":"\\leftarrow","\u293c":"\\rightarrow","\u293b":"\\rightarrow","\u293a":"\\leftarrow","\u2939":"\\downarrow","\u2938":"\\downarrow","\u2937":"\\Rsh","\u2936":"\\Lsh","\u2935":"\\downarrow","\u2934":"\\uparrow","\u2933":"\\rightarrow","\u2932":"\\leftarrow","\u2931":" ","\u2930":" ","\u292f":" ","\u292e":" ","\u292d":" ","\u292c":"\\times","\u292b":"\\times","\u292a":" ","\u2929":" ","\u2928":" ","\u2927":" ","\u2926":" ","\u2925":" ","\u2924":" ","\u2923":" ","\u2922":" ","\u2921":" ","\u2920":"\\mapsto\\cdot","\u291f":"\\cdot\\leftarrow","\u291e":"\\rightarrow\\cdot","\u291d":"\\leftarrow","\u291c":"\\rightarrow","\u291b":"\\leftarrow","\u291a":"\\rightarrow","\u2919":"\\leftarrow","\u2918":"\\rightarrow","\u2917":"\\rightarrow","\u2916":"\\rightarrow","\u2915":"\\rightarrow","\u2914":"\\rightarrow","\u2913":"\\downarrow","\u2912":"\\uparrow","\u2911":"\\rightarrow","\u2910":"\\rightarrow","\u290f":"\\rightarrow","\u290e":"\\leftarrow","\u290d":"\\rightarrow","\u290c":"\\leftarrow","\u290b":"\\Downarrow","\u290a":"\\Uparrow","\u2909":"\\uparrow","\u2908":"\\downarrow","\u2907":"\\Rightarrow","\u2906":"\\Leftarrow","\u2905":"\\mapsto","\u2904":"\\nLeftrightarrow","\u2903":"\\nRightarrow","\u2902":"\\nLeftarrow","\u2901":"\\rightsquigarrow","\u2900":"\\rightsquigarrow","\u27ff":"\\rightsquigarrow","\u27fe":"\\Rightarrow","\u27fd":"\\Leftarrow","\u27fc":"\\mapsto","\u27fb":"\\leftarrow","\u27fa":"\\Longleftrightarrow","\u27f9":"\\Longrightarrow","\u27f8":"\\Longleftarrow","\u27f7":"\\leftrightarrow","\u27f6":"\\rightarrow","\u27f5":"\\leftarrow","\u27f1":"\\Downarrow","\u27f0":"\\Uparrow","\u22b8":"\\rightarrow","\u21ff":"\\leftrightarrow","\u21fe":"\\rightarrow","\u21fd":"\\leftarrow","\u21fc":"\\nleftrightarrow","\u21fb":"\\nrightarrow","\u21fa":"\\nleftarrow","\u21f9":"\\nleftrightarrow","\u21f8":"\\nrightarrow","\u21f7":"\\nleftarrow","\u21f6":"\\Rrightarrow","\u21f5":"","\u21f4":"\\rightarrow","\u21f3":"\\Updownarrow","\u21f2":"\\searrow","\u21f1":"\\nwarrow","\u21f0":"\\Leftarrow","\u21ef":"\\Uparrow","\u21ee":"\\Uparrow","\u21ed":"\\Uparrow","\u21ec":"\\Uparrow","\u21eb":"\\Uparrow","\u21ea":"\\Uparrow","\u21e9":"\\Downarrow","\u21e8":"\\Rightarrow","\u21e7":"\\Uparrow","\u21e6":"\\Leftarrow","\u21e5":"\\rightarrow","\u21e4":"\\leftarrow","\u21e3":"\\downarrow","\u21e2":"\\rightarrow","\u21e1":"\\uparrow","\u21e0":"\\leftarrow","\u21df":"\\downarrow","\u21de":"\\uparrow","\u21dd":"\\rightsquigarrow","\u21dc":"\\leftarrow","\u21db":"\\Rrightarrow","\u21da":"\\Lleftarrow","\u21d9":"\\swarrow","\u21d8":"\\searrow","\u21d7":"\\nearrow","\u21d6":"\\nwarrow","\u21d5":"\\Updownarrow","\u21d4":"\\Leftrightarrow","\u21d3":"\\Downarrow","\u21d2":"\\Rightarrow","\u21d1":"\\Uparrow","\u21d0":"\\Leftarrow","\u21cf":"\\nRightarrow","\u21ce":"\\nLeftrightarrow","\u21cd":"\\nLeftarrow","\u21cc":"\\rightleftharpoons","\u21cb":"\\leftrightharpoons","\u21ca":"\\downdownarrows","\u21c9":"\\rightrightarrows","\u21c8":"\\upuparrows","\u21c7":"\\leftleftarrows","\u21c6":"\\leftrightarrows","\u21c5":"","\u21c4":"\\rightleftarrows","\u21c3":"\\downharpoonleft","\u21c2":"\\downharpoonright","\u21c1":"\\rightharpoondown","\u21c0":"\\rightharpoonup","\u21bf":"\\upharpoonleft","\u21be":"\\upharpoonright","\u21bd":"\\leftharpoondown","\u21bc":"\\leftharpoonup","\u21bb":"\\circlearrowright","\u21ba":"\\circlearrowleft","\u21b9":"\\leftrightarrows","\u21b8":"\\overline{\\nwarrow}","\u21b7":"\\curvearrowright","\u21b6":"\\curvearrowleft","\u21b5":"\\swarrow","\u21b4":"\\searrow","\u21b3":"\\Rsh","\u21b2":"\\Lsh","\u21b1":"\\Rsh","\u21b0":"\\Lsh","\u21af":"\\swarrow","\u21ae":"","\u21ad":"\\leftrightsquigarrow","\u21ac":"\\looparrowright","\u21ab":"\\looparrowleft","\u21aa":"\\hookrightarrow","\u21a9":"\\hookleftarrow","\u21a8":"\\underline{\\updownarrow}","\u21a7":"\\downarrow","\u21a6":"\\rightarrowtail","\u21a5":"\\uparrow","\u21a4":"\\leftarrowtail","\u21a3":"\\rightarrowtail","\u21a2":"\\leftarrowtail","\u21a1":"\\downarrow","\u21a0":"\\twoheadrightarrow","\u219f":"\\uparrow","\u219e":"\\twoheadleftarrow","\u219d":"\\nearrow","\u219c":"\\nwarrow","\u219a":"","\u2199":"\\swarrow","\u2198":"\\searrow","\u2197":"\\nearrow","\u2196":"\\nwarrow","\u2195":"\\updownarrow","\u2194":"\\leftrightarrow","\u2193":"\\downarrow","\u2192":"\\rightarrow","\u2191":"\\uparrow","\u2190":"\\leftarrow","|||":"\\left|||\\right.","||":"\\left||\\right.","|":"\\mid","\u2afe":"","\u2afd":"//","\u2afb":"///","\u2afa":"","\u2af9":"","\u2af8":"","\u2af7":"","\u2af6":"\\vdots","\u2af5":"","\u2af4":"","\u2af3":"","\u2af2":"\\nparallel","\u2af1":"","\u2af0":"","\u2aef":"","\u2aee":"\\bcancel{\\mid}","\u2aed":"","\u2aec":"","\u2aeb":"","\u2aea":"","\u2ae9":"","\u2ae8":"\\underline{\\perp}","\u2ae7":"\\overline{\\top}","\u2ae6":"","\u2ae5":"","\u2ae4":"","\u2ae3":"","\u2ae2":"","\u2ae1":"","\u2ae0":"\\perp","\u2adf":"\\top","\u2ade":"\\dashv","\u2add\u0338":"","\u2add":"","\u2adb":"\\pitchfork","\u2ada":"","\u2ad9":"","\u2ad8":"","\u2ad7":"","\u2ad6":"","\u2ad5":"","\u2ad4":"","\u2ad3":"","\u2ad2":"","\u2ad1":"","\u2ad0":"","\u2acf":"","\u2ace":"","\u2acd":"","\u2acc":"\\underset{\\neq}{\\supset}","\u2acb":"\\underset{\\neq}{\\subset}","\u2aca":"\\underset{\\approx}{\\supset}","\u2ac9":"\\underset{\\approx}{\\subset}","\u2ac8":"\\underset{\\sim}{\\supset}","\u2ac7":"\\underset{\\sim}{\\subset}","\u2ac6":"\\supseteqq","\u2ac5":"\\subseteqq","\u2ac4":"\\dot{\\supseteq}","\u2ac3":"\\dot{\\subseteq}","\u2ac2":"\\underset{\\times}{\\supset}","\u2ac1":"\\underset{\\times}{\\subset}","\u2ac0":"\\underset{+}{\\supset}","\u2abf":"\\underset{+}{\\subset}","\u2abe":"","\u2abd":"","\u2abc":"\\gg ","\u2abb":"\\ll","\u2aba":"\\underset{\\cancel{\\approx}}{\\succ}","\u2ab9":"\\underset{\\cancel{\\approx}}{\\prec}","\u2ab8":"\\underset{\\approx}{\\succ}","\u2ab7":"\\underset{\\approx}{\\prec}","\u2ab6":"\\underset{\\cancel{=}}{\\succ}","\u2ab5":"\\underset{\\cancel{=}}{\\prec}","\u2ab4":"\\underset{=}{\\succ}","\u2ab3":"\\underset{=}{\\prec}","\u2ab2":"","\u2ab1":"","\u2aae":"","\u2aad":"\\underline{\\hcancel{>}}","\u2aac":"\\underline{\\hcancel{>}}","\u2aab":"\\hcancel{>}","\u2aaa":"\\hcancel{<}","\u2aa9":"","\u2aa8":"","\u2aa7":"\\vartriangleright","\u2aa6":"\\vartriangleleft","\u2aa5":"><","\u2aa4":"><","\u2aa3":"\\underline{\\ll}","\u2aa2\u0338":"\\cancel{\\gg}","\u2aa2":"\\gg","\u2aa1\u0338":"\\cancel{\\ll}","\u2aa1":"\\ll","\u2aa0":"\\overset{\\sim}{\\geqq}","\u2a9f":"\\overset{\\sim}{\\leqq}","\u2a9e":"\\overset{\\sim}{>}","\u2a9d":"\\overset{\\sim}{<}","\u2a9c":"","\u2a9b":"","\u2a9a":"\\overset{=}{>}","\u2a99":"\\overset{=}{<}","\u2a98":"","\u2a97":"","\u2a96":"","\u2a95":"","\u2a94":"","\u2a93":"","\u2a92":"\\underset{=}{\\gtrless}","\u2a91":"\\underset{=}{\\lessgtr}","\u2a90":"\\underset{<}{\\gtrsim}","\u2a8f":"\\underset{>}{\\lesssim}","\u2a8e":"\\underset{\\simeq}{>}","\u2a8d":"\\underset{\\simeq}{<}","\u2a8c":"\\gtreqqless","\u2a8b":"\\lesseqqgtr","\u2a8a":"\\underset{\\cancel{\\approx}}{>}","\u2a89":"\\underset{\\approx}{<}","\u2a86":"\\underset{\\approx}{>}","\u2a85":"\\underset{\\approx}{<}","\u2a84":"","\u2a83":"","\u2a82":"","\u2a81":"","\u2a80":"","\u2a7f":"","\u2a7e\u0338":"\\bcancel{\\geq}","\u2a7e":"\\geq","\u2a7d\u0338":"\\bcancel{\\leq}","\u2a7d":"\\leq","\u2a7c":"","\u2a7b":"","\u2a7a":"","\u2a79":"","\u2a78":"\\overset{\\dots}{\\equiv}","\u2a77":"","\u2a76":"===","\u2a75":"==","\u2a74":"::=","\u2a73":"","\u2a72":"\\underset{=}{+}","\u2a71":"\\overset{=}{+}","\u2a70":"\\overset{\\approx}{=}","\u2a6f":"\\overset{\\wedge}{=}","\u2a6e":"\\overset{*}{=}","\u2a6d":"\\dot{\\approx}","\u2a6c":"","\u2a6b":"","\u2a6a":"\\dot{\\sim}","\u2a69":"","\u2a68":"","\u2a67":"\\dot{\\equiv}","\u2a66":"\\underset{\\cdot}{=}","\u2a65":"","\u2a64":"","\u2a63":"\\underset{=}{\\vee}","\u2a62":"\\overset{=}{\\vee}","\u2a61":"ul(vv)","\u2a60":"\\underset{=}{\\wedge}","\u2a5f":"\\underline{\\wedge}","\u2a5e":"\\overset{=}{\\wedge}","\u2a5d":"\\hcancel{\\vee}","\u2a5c":"\\hcancel{\\wedge}","\u2a5b":"","\u2a5a":"","\u2a59":"","\u2a58":"\\vee","\u2a57":"\\wedge","\u2a56":"","\u2a55":"","\u2a54":"","\u2a53":"","\u2a52":"\\dot{\\vee}","\u2a51":"\\dot{\\wedge}","\u2a50":"","\u2a4f":"","\u2a4e":"","\u2a4d":"\\overline{\\cap}","\u2a4c":"\\overline{\\cup}","\u2a4b":"","\u2a4a":"","\u2a49":"","\u2a48":"","\u2a47":"","\u2a46":"","\u2a45":"","\u2a44":"","\u2a43":"\\overline{\\cap}","\u2a42":"\\overline{\\cup}","\u2a41":"","\u2a40":"","\u2a3e":"","\u2a3d":"\\llcorner","\u2a3c":"\\lrcorner","\u2a3b":"","\u2a3a":"","\u2a39":"","\u2a38":"","\u2a37":"","\u2a36":"\\hat{\\otimes}","\u2a35":"","\u2a34":"","\u2a33":"","\u2a32":"\\underline{\\times}","\u2a31":"\\underline{\\times}","\u2a30":"\\dot{\\times}","\u2a2e":"\\bigodot","\u2a2d":"\\bigodot","\u2a2c":"","\u2a2b":"","\u2a2a":"","\u2a29":"","\u2a28":"","\u2a27":"","\u25fb":"\\Box","\u2a26":"\\underset{\\sim}{+}","\u2a25":"\\underset{\\circ}{+}","\u2a24":"\\overset{\\sim}{+}","\u2a23":"\\hat{+}","\u2a22":"\\dot{+}","\u2a21":"\\upharpoonright","\u2a20":">>","\u2a1f":"","\u2a1e":"\\triangleleft","\u2a1d":"\\bowtie","\u29ff":"","\u29fe":"+","\u29fb":"\\hcancel{|||}","\u29fa":"\\hcancel{||}","\u29f9":"\\backslash","\u29f8":"/","\u29f7":"hcancel{\backslash}","\u29f6":"","\u29f5":"\\backslash","\u29f2":"\\Phi","\u29f1":"","\u29f0":"","\u29ee":"","\u29ed":"","\u29ec":"","\u29eb":"\\lozenge","\u29ea":"","\u29e9":"","\u29e8":"","\u29e7":"\\ddagger","\u29e2":"\\sqcup\\sqcup","\u29e1":"","\u29e0":"\\square","\u29de":"","\u29dd":"","\u29dc":"","\u29db":"\\{\\{","\u29d9":"\\{","\u29d8":"\\}","\u29d7":"","\u29d6":"","\u29d5":"\\bowtie","\u29d4":"\\bowtie","\u29d3":"\\bowtie","\u29d2":"\\bowtie","\u29d1":"\\bowtie","\u29d0\u0338":"| \\not\\triangleright","\u29d0":"| \\triangleright","\u29cf\u0338":"\\not\\triangleleft |","\u29cf":"\\triangleleft |","\u29ce":"","\u29cd":"\\triangle","\u29cc":"","\u29cb":"\\underline{\\triangle}","\u29ca":"\\dot{\\triangle}","\u29c9":"","\u29c8":"\\boxed{\\circ}","\u29c7":"\\boxed{\\circ}","\u29c6":"\\boxed{\\rightarrow}","\u29c5":"\\bcancel{\\square}","\u29c4":"\\cancel{\\square}","\u29c3":"\\odot","\u29c2":"\\odot","\u29bf":"\\odot","\u29be":"\\odot","\u29bd":"\\varnothing","\u29bc":"\\oplus","\u29bb":"\\otimes","\u29ba":"","\u29b9":"\\varnothing","\u29b8":"\\varnothing","\u29b7":"\\ominus","\u29b6":"\\ominus","\u29b5":"\\ominus","\u29b4":"\\vec{\\varnothing}","\u29b3":"\\vec{\\varnothing}","\u29b2":"\\dot{\\varnothing}","\u29b1":"\\overline{\\varnothing}","\u29b0":"\\varnothing","\u29af":"\\measuredangle","\u29ae":"\\measuredangle","\u29ad":"\\measuredangle","\u29ac":"\\measuredangle","\u29ab":"\\measuredangle","\u29aa":"\\measuredangle","\u29a9":"\\measuredangle","\u29a8":"\\measuredangle","\u29a7":"","\u29a6":"","\u29a5":"","\u29a4":"","\u29a3":"\\ulcorner","\u29a2":"\\measuredangle","\u29a1":"\\not\\lor","\u29a0":"\\bcancel{>}","\u2982":":","\u2981":"\\cdot","\u2758":"\\mid","\u25b2":"\\bigtriangleup","\u22ff":"\\Epsilon","\u22fe":"\\overline{\\ni}","\u22fd":"\\overline{\\ni}","\u22fc":"\\in","\u22fb":"\\in","\u22fa":"\\in","\u22f9":"\\underline{\\in}","\u22f8":"\\underline{\\in}","\u22f7":"\\overline{\\in}","\u22f6":"\\overline{\\in}","\u22f5":"\\dot{\\in}","\u22f4":"\\in","\u22f3":"\\in","\u22f2":"\\in","\u22f0":"\\ddots","\u0589":":","\u22e9":"\\underset{\\sim}{\\succ}","\u22e8":"\\underset{\\sim}{\\prec}","\u22e7":"\\underset{\\not\\sim}{>}","\u22e6":"\\underset{\\not\\sim}{<}","\u22e5":"\\not\\sqsupseteq","\u22e4":"\\not\\sqsubseteq","\u22e3":"\\not\\sqsupseteq","\u22e2":"\\not\\sqsubseteq","\u22e1":"\\nsucc","\u22e0":"\\nprec","\u22df":"\\succ","\u22de":"\\prec","\u22dd":"\\overline{>}","\u22dc":"\\overline{<}","\u22db":"\\underset{>}{\\leq}","\u22da":"\\underset{<}{\\geq}","\u22d5":"\\#","\u22d3":"\\cup","\u22d2":"\\cap","\u22d1":"\\supset","\u22d0":"\\subset","\u22cf":"\\wedge","\u22ce":"\\vee","\u22cd":"\\simeq","\u22c8":"\\Join","\u22c7":"\\ast","\u22c6":"\\star","\u22c4":"\\diamond","\u22bf":"\\triangle","\u22be":"\\measuredangle","\u22bd":"\\overline{\\lor}","\u22bc":"\\overline{\\land}","\u22bb":"\\underline{\\lor}","\u22ba":"\\top",\u571f:"\\pm",\u5341:"+","\u22b9":"","\u22b7":"\\circ\\multimap","\u22b6":"\\circ\\multimap","\u22b3":"\\triangleright","\u22b2":"\\triangleleft","\u22b1":"\\succ","\u22b0":"\\prec","\u22ab":"|\\models","\u22aa":"|\\models","\u22a7":"\\models","\u22a6":"\\vdash","\u229d":"\\ominus","\u229c":"\\ominus","\u229b":"\\odot","\u229a":"\\odot","\u2294":"\\sqcup","\u2293":"\\sqcap","\u2292":"\\sqsupseteq","\u2291":"\\sqsubseteq","\u2290\u0338":"\\not\\sqsupset","\u2290":"\\sqsupset","\u228f\u0338":"\\not\\sqsubset","\u228f":"\\sqsubset","\u228e":"\\cup","\u228d":"\\cup","\u228c":"\\cup","\u227f\u0338":"\\not\\succsim","\u227f":"\\succsim","\u227e":"\\precsim","\u2279":"\\not\\overset{>}{<}","\u2278":"\\not\\overset{>}{<}","\u2277":"\\overset{>}{<}","\u2276":"\\overset{<}{>}","\u2275":"\\not\\geg","\u2274":"\\not\\leq","\u2273":"\\geg","\u2272":"\\leq","\u226c":"","\u2267":"\\geg","\u2266\u0338":"\\not\\leq","\u2266":"\\leq","\u2263":"\\overset{=}{=} ","\u225e":"\\overset{m}{=} ","\u225d":"\\overset{def}{=}","\u2258":"=","\u2256":"=","\u2255":"=:","\u2253":"\\doteq","\u2252":"\\doteq","\u2251":"\\doteq","\u2250":"\\doteq","\u224f\u0338":"","\u224f":"","\u224e\u0338":"","\u224e":"","\u224c":"\\approx","\u224b":"\\approx","\u224a":"\\approx","\u2242\u0338":"\\neq","\u2242":"=","\u223f":"\\sim","\u223e":"\\infty","\u223d\u0331":"\\sim","\u223d":"\\sim","\u223b":"\\sim","\u223a":":-:","\u2239":"-:","\u2238":"\\bot","\u2237":"::","\u2236":":","\u2223":"\\mid","\u221f":"\\llcorner","\u2218":"\\circ","\u2217":"*","\u2215":"/","\u220e":"\\square","\u220d":"\\ni","\u220a":"\\in","\u2206":"\\Delta","\u2044":"/","\u2ab0\u0338":"\\nsucceq","\u2ab0":"\\succeq","\u2aaf\u0338":"\\npreceq","\u2aaf":"\\preceq","\u2a88":"\\ngeqslant","\u2a87":"\\nleqslant","\u29f3":"\\Phi","\u29e6":"\\models","\u29e5":"\\not\\equiv","\u29e4":"\\approx\\neq","\u29e3":"\\neq","\u29c1":"\\circle","\u29c0":"\\circle","\u25e6":"\\circle","\u25d7":"\\circle","\u25d6":"\\circle","\u25cf":"\\circle","\u25ce":"\\circledcirc","\u25cd":"\\circledcirc","\u25cc":"\\circledcirc","\u25c9":"\\circledcirc","\u25c8":"\\diamond","\u25c7":"\\diamond","\u25c6":"\\diamond","\u25c5":"\\triangleleft","\u25c4":"\\triangleleft","\u25c3":"\\triangleleft","\u25c2":"\\triangleleft","\u25c1":"\\triangleleft","\u25c0":"\\triangleleft","\u25bf":"\\triangledown","\u25be":"\\triangledown","\u25bd":"\\triangledown","\u25bc":"\\triangledown","\u25b9":"\\triangleright","\u25b8":"\\triangleright","\u25b7":"\\triangleright","\u25b6":"\\triangleright","\u25b5":"\\triangle","\u25b4":"\\triangle","\u25b3":"\\triangle","\u25b1":"\\square","\u25b0":"\\blacksquare","\u25af":"\\square","\u25ae":"\\blacksquare","\u25ad":"\\square","\u25ab":"\\square","\u25aa":"\\square","\u25a1":"\\square","\u25a0":"\\blacksquare","\u22ed":"\\not\\triangleright","\u22ec":"\\not\\triangleleft","\u22eb":"\\not\\triangleright","\u22ea":"\\not\\triangleleft","\u22d9":"\\ggg","\u22d8":"\\lll","\u22d7":"*>","\u22d6":"<*","\u22d4":"\\pitchfork","\u22cc":"","\u22cb":"\\bowtie","\u22ca":"\\ltimes","\u22c9":"\\rtimes","\u22b5":"\\triangleright","\\triangleleft":"","\u22a5":"\\bot","\u2281":"\\nsucc","\u2280":"\\preceq","\u227d":"\\succeq","\u227c":"\\preceq","\u227b":"\\succ","\u227a":"\\prec","\u2271":"\\geq/","\u2270":"\\leq/","\u226d":"\\neq","\u226b\u0338":"\\not\\gg","\u226b":"\\gg","\u226a\u0338":"\\not\\ll","\u226a":"\\ll","\u2269":"\\ngeqslant","\u2268":"\\nleqslant","\u2261":"\\equiv","\u225f":"\\doteq","\u225c":"\\triangleq","\u225b":"\\doteq","\u225a":"\\triangleq","\u2259":"\\triangleq","\u2257":"\\doteq","\u2254":":=","\u224d":"\\asymp","\u2247":"\\ncong","\u2246":"\\ncong","\u2245":"\\cong","\u2244":"\\not\\simeq","\u2243":"\\simeq","\u2241":"\\not\\sim","\u2226":"\\not\\parallel","\u2225":"\\parallel","\u2224":"\\not|","\u221d":"\\propto","==":"==","=":"=",":=":":=","/=":"=","-=":"-=","+=":"+=","*=":"*=","!=":"!=","\u2260":"\\neq","\u2262":"\\equiv /","\u2249":"\\approx /","\u223c":"sim","\u2248":"\\approx","\u226e":"</","<":"<","\u226f":">/",">=":">=",">":">","\u2265":"\\geq","\u2264":"\\leq","<=":"<=","\u228b":"\\supsetneq","\u228a":"\\subsetneq","\u2289":"\\nsupseteq","\u2288":"\\nsubseteq","\u2287":"\\supseteq","\u2286":"\\subseteq","\u2285":"\\not\\supset","\u2284":"\\not\\subset","\u2283\u20d2":"\\supset |","\u2283":"\\supset","\u2282\u20d2":"\\subset |","\u2282":"\\subset","\u220c":"\\not\\in","\u2209":"\\notin","\u2208":"\\in","\u2201":"C","\u2204":"\\nexists","\u2203":"\\exists","\u2200":"\\forall","\u2227":"\\land","&&":"\\&\\&","\u2228":"\\lor","\u22af":"\\cancel{\\vDash}","\u22ae":"\\cancel{\\Vdash}","\u22ad":"\\nvDash","\u22ac":"\\nvDash","\u22a9":"\\Vdash","\u22a8":"\\vDash","\u22a4":"\\top","\u22a3":"\\dashv","\u22a2":"\\vdash","\u220b":"\\ni","\u22f1":"\\ddots","\u22ef":"\\hdots","\u22ee":"\\vdots","\u03f6":"\\ni",":":":","...":"\\cdots","..":"..","->":"->","\u2235":"\\because","\u2234":"\\therefore ","\u2063":"\\llbracket",",":",",";":";","\u29fd":"\\}","\u29fc":"\\{","\u2998":"\\]","\u2997":"\\[","\u2996":"\\ll","\u2995":"\\gg","\u2994":"\\gg","\u2993":"\\ll","\u2992":"\\gg","\u2991":"\\ll","\u2990":"\\]","\u298f":"\\]","\u298e":"\\]","\u298d":"\\[","\u298c":"\\[","\u298b":"\\]","\u298a":"\\triangleright","\u2989":"\\triangleleft","\u2988":"|\\)","\u2987":"\\(|","\u2986":"|\\)","\u2985":"\\(\\(","\u2984":"|\\}","\u2983":"\\{|","\u2980":"\\||","\u27ef":"\\left. \\right]","\u27ee":"\\left[ \\right.","\u27ed":"\\left. \\right]]","\u27ec":"\\left[[ \\right.","\u27eb":"\\gg","\u27ea":"\\ll","\u27e7":"\\)|","\u27e6":"\\(|","\u2773":"\\left.\\right)","\u2772":"\\left(\\right.","\u232a":"\\rangle","\u2329":"\\langle","\u230b":"\\rfloor","\u230a":"\\lfloor","\u2309":"\\rceil","\u2308":"\\lceil","\u2016":"\\parallel","}":"\\left.\\right}","{":"\\left{\\right.","]":"\\left]\\right.","[":"\\left[\\right.",")":"\\left.\\right)","(":"\\left(\\right.","\u201d":'\\"',"\u201c":"\\text{``}","\u2019":"'","\u2018":"`",\u03b1:"\\alpha",\u03b2:"\\beta",\u03b3:"\\gamma",\u0393:"\\Gamma",\u03b4:"\\delta",\u0394:"\\Delta",\u03f5:"\\epsilon",\u03b6:"\\zeta",\u03b7:"\\eta",\u03b8:"\\theta",\u0398:"\\Theta",\u03b9:"\\iota",\u03ba:"\\kappa",\u03bb:"\\lambda",\u03bd:"\\nu",\u03bf:"\\omicron",\u03c0:"\\pi",\u03a0:"\\Pi",\u03c1:"\\rho",\u03c3:"\\sigma",\u03a3:"\\Sigma",\u03c4:"\\tau",\u03c5:"\\upsilon",\u03a5:"\\Upsilon",\u03d5:"\\phi",\u03a6:"\\Phi",\u03c7:"\\chi",\u03c8:"\\psi",\u03a8:"\\Psi",\u03c9:"\\omega",\u03a9:"\\Omega",\u2126:"\\Omega","\u2205":"\\emptyset","\u27f2":"\\circlearrowleft","\u27f3":"\\circlearrowright","\xd7":"\\times","\xbd":"\\dfrac{1}{2}",\u03bc:"\\mu",\u04e8:"\\theta","\u2713":"\\checkmark","\u27e9":"\\rangle","\u27e8":"\\langle","\xbc":"\\dfrac{1}{4}","\u2026":"\\ldots",\u210f:"\\hbar",\u211c:"\\mathfrak{R}",\u0472:"\\theta",\u00d8:"\\emptyset",\u03f1:"\\varrho",\u0444:"\\phi",\u2107:"\\varepsilon",T:"T","\u2219":"\\cdot",\u03a1:"P","\u221e":"\\infty",\u1401:"\\nabla",\u019e:"\\eta","\u207a":"^{+}","\u207b":"^{-}","\u207c":"^{=}","\u207d":"^{(}","\u207e":"^{)}","\u3017":"\\)|","\u3016":"\\langle","\u037e":";","\u0d66":"\\circ","\u2534":"\\perp","\u2715":"\\times","\u23bb":"-","\xbb":"\\gg","\u2b06":"\\uparrow","\u2b07":"\\downarrow","\u2b05":"\\leftarrow","\u27a1":"\\rightarrow","\u23bc":"-","\u239c":"\\mid","\u23a5":"\\mid",\u0127:"\\hbar","\u2b95":"\\rightarrow","\u30fb":"\\cdot","\xa6":"\\mid","\xa3":"\\pounds","\xa5":"\\yen","\u2717":"\\times","\u2714":"\\checkmark",\u207f:"^{n}","\xab":"\\ll",\u0e40:"\\prime","\u2020":"\\dagger","\u2502":"\\mid",$:"\\$","#":"\\#","\u2103":"\\text{\\textdegree C}","\u2109":"\\text{\\textdegree F}","\u2588":"\\blacksquare","\u2127":"\\mho",\u2147:"\\text{e}",\u027c:"r","\u2021":"\\ddagger",\u1f31:"i",\u03d2:"\\Upsilon",\u{1d6ff}:"\\delta","\u02f3":"\\cdot",\u0473:"\\theta",\u{1d719}:"\\phi",\u041f:"\\prod",\u043e:"o",\u0452:"\\hbar",\u0245:"\\Lambda","\u0964":"\\mid","\u20ac":"\\euro",\u1fe1:"\\bar{u}",\u03c6:"\\varphi",\u023c:"c",\u{1d7ae}:"\\epsilon",\u03a7:"\\mathsf{X}",\u2099:"_{n}"}},8249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allMathSymbolsByChar=void 0,t.allMathSymbolsByChar={"&#xA0;":"\\textrm{ }","&#x2203;":"\\exists","&#x2200;":"\\forall","&#x21D4;":"\\iff","&#x21D2;":"=>","&#xAC;":"\\neg","&#x2124;":"\\mathbb{Z}","&#x211D;":"\\mathbb{R}","&#x211A;":"\\mathbb{Q}","&#x2115;":"\\mathbb{N}","&#x2102;":"CC","&#x25A1;":"\\square","&#x22C4;":"\\diamond","&#x25B3;":"\\triangle","&#x2322;":"\\frown","&#x2220;":"\\angle","&#x22F1;":"\\ddots","&#x22EE;":"\\vdots","&#x2235;":"\\because","&#x2234;":"\\therefore","&#x2135;":"\\aleph","&#x2205;":"\\oslash","&#xB1;":"\\pm","&#x2207;":"\\nabla","&#x2202;":"\\partial","&#x222E;":"\\oint","&#x222B;":"\\int","&#x22C3;":"\\cup","&#x222A;":"\\cup","&#x22C2;":"\\cap","&#x2229;":"\\cap","&#x22C1;":"\\vee","&#x2228;":"\\vee","&#x22C0;":"\\wedge","&#x2227;":"\\wedge","&#x220F;":"\\prod","&#x2211;":"\\sum","&#x2299;":"\\bigodot","&#x2297;":"\\bigoplus","&#x2295;":"o+","&#x2218;":"@","&#x22C8;":"\\bowtie","&#x22CA;":"\\rtimes","&#x22C9;":"\\ltimes","&#xF7;":"\\div","&#xD7;":"\\times","\\":"\\backslash","&#x22C6;":"\\star","&#x2217;":"\\star","&#x22C5;":"\\cdot","&#x3A9;":"\\Omega","&#x3C9;":"\\omega","&#x3A8;":"\\Psi","&#x3C8;":"\\psi","&#x3C7;":"\\chi","&#x3C6;":"\\varphi","&#x3A6;":"\\Phi","&#x3D5;":"\\phi","&#x3C5;":"\\upsilon","&#x3C4;":"\\tau","&#x3A3;":"\\Sigma","&#x3C3;":"\\sigma","&#x3C1;":"\\rho","&#x3A0;":"\\Pi","&#x3C0;":"\\pi","&#x39E;":"\\Xi","&#x3BE;":"\\xi","&#x3BD;":"\\nu","&#x3BC;":"\\mu","&#x39B;":"\\Lambda","&#x3BB;":"\\lambda","&#x3BA;":"\\kappa","&#x3B9;":"\\iota","&#x3D1;":"\\vartheta","&#x398;":"\\Theta","&#x3B8;":"\\theta","&#x3B7;":"\\eta","&#x3B6;":"\\zeta","&#x25B;":"\\varepsilon","&#x3B5;":"\\epsilon","&#x394;":"\\Delta","&#x3B4;":"\\delta","&#x393;":"\\Gamma","&#x3B3;":"\\gamma","&#x3B2;":"\\beta","&#x3B1;":"\\alpha","&#x221E;":"\\infty","\u202c":"\\text{\\textdir TRT}","\u200e":"\\text{\\textdir LTR}"}},8171:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allMathSymbolsByGlyph=void 0,t.allMathSymbolsByGlyph={" ":"\\textrm{ }","\u2203":"\\exists","\u2200":"\\forall","\u21d4":"\\iff","\u21d2":"\\Rightarrow","\xac":"\\neg","\u25a1":"\\square","\u22c4":"\\diamond","\u25b3":"\\triangle","\u2322":"\\frown","\u2220":"\\angle","\u22f1":"\\ddots","\u22ee":"\\vdots","\u2235":"\\because","\u2234":"\\therefore",\u2135:"\\aleph","\u2205":"\\emptyset","\xb1":"\\pm","\u2207":"\\nabla","\u2202":"\\partial","\u222e":"\\oint","\u222b":"\\int","\u22c3":"\\cup","\u222a":"\\cup","\u22c2":"\\cap","\u2229":"\\cap","\u22c1":"\\vee","\u2228":"\\vee","\u22c0":"\\wedge","\u2227":"\\wedge","\u220f":"\\prod","\u2211":"\\sum","\u2299":"\\bigodot","\u2297":"\\bigoplus","\u2295":"o+","\u2218":"@","\u22c8":"\\bowtie","\u22ca":"\\rtimes","\u22c9":"\\ltimes","\xf7":"\\div","\xd7":"\\times","\\":"\\backslash","\u22c6":"\\star","\u2217":"\\star","\u22c5":"\\cdot",\u03a9:"\\Omega",\u03c9:"\\omega",\u03a8:"\\Psi",\u03c8:"\\psi",\u03c7:"\\chi",\u03c6:"\\varphi",\u03a6:"\\Phi",\u03d5:"\\phi",\u03c5:"\\upsilon",\u03c4:"\\tau",\u03a3:"\\Sigma",\u03c3:"\\sigma",\u03c1:"\\rho",\u03a0:"\\Pi",\u03c0:"\\pi",\u039e:"\\Xi",\u03be:"\\xi",\u03bd:"\\nu",\u03bc:"\\mu",\u039b:"\\Lambda",\u03bb:"\\lambda",\u03ba:"\\kappa",\u03b9:"\\iota",\u03d1:"\\vartheta",\u0398:"\\Theta",\u03b8:"\\theta",\u03b7:"\\eta",\u03b6:"\\zeta",\u025b:"\\varepsilon",\u03b5:"\\epsilon",\u0394:"\\Delta",\u03b4:"\\delta",\u0393:"\\Gamma",\u03b3:"\\gamma",\u03b2:"\\beta",\u03b1:"\\alpha","\u221e":"\\infty",\u03f5:"\\epsilon",\u00b5:"\\mu","\xb2":"^{2}",\u0131:"\\imath","\u220e":"\\blacksquare",\u0e21:"\\mathbf{m}",\u2126:"\\Omega","\u27f2":"\\circlearrowleft","\u27f3":"\\circlearrowright",\u0924:" ","\xa5":"\\yen","\u207d":"^{(}","\u207e":"^{)}",\u00df:"\\ss",\u040b:"\\hbar","\u29b5":"\\ominus","\u22bf":"\\bigtriangleup","\u219b'":"\\nrightarrow","\u2020":"\\dagger",\u0e40:"\\prime",\u767d:" ","\u2ff1":" ",\u2138:"\\wp",\ud4f0:" ",\u207f:"^{n}","\u2714":"\\checkmark","\u2717":"\\times","\xbd":"\\dfrac{1}{2}",\u04e8:"\\theta","\u2713":"\\checkmark","\u27e9":"\\rangle","\u27e8":"\\langle","\u2329":"\\langle","\xbc":"\\dfrac{1}{4}","\u2026":"\\ldots",\u210f:"\\hbar",\u211c:"\\mathfrak{R}",\u0472:"\\theta",\u00d8:"\\emptyset",\u03f1:"\\varrho",\u0444:"\\phi",T:"T","\u2219":"\\cdot",\u03a1:"P",\u1401:"\\nabla",\u019e:"\\eta",\u0263:"\\gamma",\u045b:"\\hbar",\u0190:"\\varepsilon",\u2145:"\\_{D}",\u{1d706}:"\\lambda","\u3017":"\\rangle","\u3016":"\\langle","\u037e":";",\u{1d465}:"x",\u{1d466}:"y",\u{1d467}:"z",\u{1d456}:"i",\u{1d457}:"j",\u{1d458}:"k",\u{1d45a}:"m",\u{1d452}:"e",\u{1d45f}:"r",\u0273:"\\eta",\u{1d6fd}:"\\beta","\u2375":"\\omega",\u2118:"\\wp",\u{1d70b}:"\\pi",\u0404:"\\epsilon",\u0454:"\\epsilon",\u{1d700}:"\\epsilon",\u043f:"\\pi",\u039d:"\\nu",\u0275:"\\theta",\u{1d713}:"\\psi",\u03f4:"\\theta",\u0278:"\\phi",\u04f6:"\\Gamma",\u026d:"\\ell",\u028b:"\\upsilon",\u{1d6df}:"\\varphi","\u236c":"\\theta",\u0424:"\\Phi",\u{1d711}:"\\varphi",\u2148:"i",\u03bf:"o",\u01a1:"o",\u0192:"f","\u2374":"\\rho","\u{1f1fd}":"x",\u{1d45d}:"p",\u{1d45e}:"q",\u{1d460}:"s",\u{1d461}:"t",\u{1d462}:"u",\u{1d463}:"v",\u{1d464}:"w",\u{1d44e}:"a",\u{1d44f}:"b",\u{1d450}:"c",\u{1d451}:"d",\u{1d453}:"f",\u{1d454}:"g",\u{1d459}:"l",\u{1d45b}:"n",\u{1d45c}:"o",\u{1d500}:"w",\u{1d69f}:"v",\u1e41:"m","\u0d66":"\\circ","\u2534":"\\perp","\u2715":"\\times","\u2223":"\\mid",\u0553:"\\Phi","\u239c":"\\mid",\u0127:"\\hbar",\u1348:" ","\u29a8":"\\llbracket",\u1ebf:"\\hat{e}","\xa2":"\\cent","\u2939":"\\downarrow","\u2938":"\\downarrow","\u2937":"\\Rsh","\u2936":"\\Lsh","\u2935":"\\downarrow","\u2934":"\\uparrow","\u2933":"\\rightarrow","|":"\\mid","\u23a5":"\\mid","\u2665":"\\heartsuit",\u041e:"0",\u03a5:"Y",\u0445:"x",\u{1d4cf}:"z",\u{1d4ce}:"y",\u{1d4cd}:"x",\u0440:"p",\u0430:"a","\xa3":"\\pounds",m:"m",\u{1d6b5}:"\\Xi","\u24ea":"\\textcircled{0}","\u2460":"\\textcircled{1}","\u2461":"\\textcircled{2}","\u2462":"\\textcircled{3}","\u2463":"\\textcircled{4}","\u2464":"\\textcircled{5}","\u2465":"\\textcircled{6}","\u2466":"\\textcircled{7}","\u2467":"\\textcircled{8}","\u2468":"\\textcircled{9}","\u2469":"\\textcircled{10}","\u246a":"\\textcircled{11}","\u246b":"\\textcircled{12}","\u246c":"\\textcircled{13}","\u246d":"\\textcircled{14}","\u246e":"\\textcircled{15}","\u246f":"\\textcircled{16}","\u2470":"\\textcircled{17}","\u2471":"\\textcircled{18}","\u2472":"\\textcircled{19}","\u2473":"\\textcircled{20}","\u3251":"\\textcircled{21}","\u3252":"\\textcircled{22}","\u3253":"\\textcircled{23}","\u3254":"\\textcircled{24}","\u3255":"\\textcircled{25}","\u3256":"\\textcircled{26}","\u3257":"\\textcircled{27}","\u3258":"\\textcircled{28}","\u3259":"\\textcircled{29}","\u325a":"\\textcircled{30}","\u325b":"\\textcircled{31}","\u325c":"\\textcircled{32}","\u325d":"\\textcircled{33}","\u325e":"\\textcircled{34}","\u325f":"\\textcircled{35}","\u32b1":"\\textcircled{36}","\u32b2":"\\textcircled{37}","\u32b3":"\\textcircled{38}","\u32b4":"\\textcircled{39}","\u32b5":"\\textcircled{40}","\u32b6":"\\textcircled{41}","\u32b7":"\\textcircled{42}","\u32b8":"\\textcircled{43}","\u32b9":"\\textcircled{44}","\u32ba":"\\textcircled{45}","\u32bb":"\\textcircled{46}","\u32bc":"\\textcircled{47}","\u32bd":"\\textcircled{48}","\u32be":"\\textcircled{49}","\u32bf":"\\textcircled{50}","&":"\\&","\u2016":"\\parallel","%":"\\%","\u201c":"\\text{``}",$:"\\$","#":"\\#","\u2103":"\\text{\\textdegree C}","\u2109":"\\text{\\textdegree F}","\u2588":"\\blacksquare","\u2127":"\\mho","\u230b":"\\rfloor","\u230a":"\\lfloor","\u2309":"\\rceil","\u2308":"\\lceil",\u2107:"\\varepsilon",\u2147:"\\text{e}",\u027c:"r","\u219b":"\\nrightarrow",\u02c6:"\\hat{}","\u203e":"\\overline","\u2192":"\\rightarrow","\u2021":"\\ddagger","\u30fb":"\\cdot","\u25b1":"\\square","\u2206":"\\Delta",\u1f31:"i","\u2221":"\\angle",\u03d2:"\\Upsilon","\u2193":"\\downarrow","\u2191":"\\uparrow","\xbb":"\\gg","\u22a4":"\\top","\u29f8":"/",\u{1d6ff}:"\\delta","\u02f3":"\\cdot","\u0589":":","\u29aa":"\\measuredangle","\u29a9":"\\measuredangle","\u29ab":"\\measuredangle","\u2981":"\\cdot",\u0473:"\\theta","\u29a2":"\\measuredangle","\xb8":",","\u23bb":"\\overline","\u27e6":"\\llbracket",\u{1d719}:"\\phi",\u041f:"\\prod",\u043e:"o","\u2248":"\\approx","\u2264":"\\leq",\u0452:"\\hbar",\u0245:"\\Lambda",\u571f:"\\pm","\u23bc":"-",\u5341:"+","\u2260":"\\neq","\u2190":"\\leftarrow","\u0964":"\\mid","\u20ac":"\\euro","\u02d8":" ",\u1fe1:"\\bar{u}","\u2225":"\\parallel","\u2194":"\\leftrightarrow","\u221a":"\\sqrt{}",\u023c:"c",\u{1d7ae}:"\\epsilon","\xb7":"\\cdot","\u29ac":"\\measuredangle","\u29ae":"\\measuredangle","\u29ad":"\\measuredangle","\xab":"\\ll",\u03a7:"\\mathsf{X}","\u2502":"\\mid","\u232a":"\\rangle",\u2099:"_{n}","\u25ab":"\\square","\u25cf":"\\circle","\u201d":'\\"'}},5406:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(2965),t),a(r(9039),t),a(r(8249),t),a(r(8171),t),a(r(472),t),a(r(4320),t),a(r(6122),t)},472:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.latexAccents=void 0,t.latexAccents=["\\hat","\\bar","\\underbrace","\\overbrace"]},4320:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mathNumberByGlyph=void 0,t.mathNumberByGlyph={"\u2080":"_{0}","\u2081":"_{1}","\u2082":"_{2}","\u2083":"_{3}","\u2084":"_{4}","\u2085":"_{5}","\u2086":"_{6}","\u2087":"_{7}","\u2088":"_{8}","\u2089":"_{9}","\u2070":"^{0}","\xb9":"^{1}","\xb2":"^{2}","\xb3":"^{3}","\u2074":"^{4}","\u2075":"^{5}","\u2076":"^{6}","\u2077":"^{7}","\u2078":"^{8}","\u2079":"^{9}",\u207f:"^{n}",\u2099:"_{n}","\u24ea":"\\textcircled{0}","\u2460":"\\textcircled{1}","\u2461":"\\textcircled{2}","\u2462":"\\textcircled{3}","\u2463":"\\textcircled{4}","\u2464":"\\textcircled{5}","\u2465":"\\textcircled{6}","\u2466":"\\textcircled{7}","\u2467":"\\textcircled{8}","\u2468":"\\textcircled{9}","\u2469":"\\textcircled{10}","\u246a":"\\textcircled{11}","\u246b":"\\textcircled{12}","\u246c":"\\textcircled{13}","\u246d":"\\textcircled{14}","\u246e":"\\textcircled{15}","\u246f":"\\textcircled{16}","\u2470":"\\textcircled{17}","\u2471":"\\textcircled{18}","\u2472":"\\textcircled{19}","\u2473":"\\textcircled{20}","\u3251":"\\textcircled{21}","\u3252":"\\textcircled{22}","\u3253":"\\textcircled{23}","\u3254":"\\textcircled{24}","\u3255":"\\textcircled{25}","\u3256":"\\textcircled{26}","\u3257":"\\textcircled{27}","\u3258":"\\textcircled{28}","\u3259":"\\textcircled{29}","\u325a":"\\textcircled{30}","\u325b":"\\textcircled{31}","\u325c":"\\textcircled{32}","\u325d":"\\textcircled{33}","\u325e":"\\textcircled{34}","\u325f":"\\textcircled{35}","\u32b1":"\\textcircled{36}","\u32b2":"\\textcircled{37}","\u32b3":"\\textcircled{38}","\u32b4":"\\textcircled{39}","\u32b5":"\\textcircled{40}","\u32b6":"\\textcircled{41}","\u32b7":"\\textcircled{42}","\u32b8":"\\textcircled{43}","\u32b9":"\\textcircled{44}","\u32ba":"\\textcircled{45}","\u32bb":"\\textcircled{46}","\u32bc":"\\textcircled{47}","\u32bd":"\\textcircled{48}","\u32be":"\\textcircled{49}","\u32bf":"\\textcircled{50}","\xbd":"\\dfrac{1}{2}","\u2153":"\\dfrac{1}{3}","\u2154":"\\dfrac{2}{3}","\xbc":"\\dfrac{1}{4}","\xbe":"\\dfrac{3}{4}","\u2155":"\\dfrac{1}{5}","\u2156":"\\dfrac{2}{5}","\u2157":"\\dfrac{3}{5}","\u2158":"\\dfrac{4}{5}","\u2159":"\\dfrac{1}{6}","\u215a":"\\dfrac{5}{6}","\u2150":"\\dfrac{1}{7}","\u215b":"\\dfrac{1}{8}","\u215c":"\\dfrac{3}{8}","\u215d":"\\dfrac{5}{8}","\u215e":"\\dfrac{7}{8}","\u2151":"\\dfrac{1}{9}","\u2152":"\\dfrac{1}{10}"}},6122:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashUTF8ToLtXConverter=void 0,t.HashUTF8ToLtXConverter=class{convert(e){if(e.match(/[a-z0-9]/i))return e;const t=r[e];return t?this.convertAccentCharToLtX(t)||e:this.convertSpecialCharToLtX(e)||e}convertAccentCharToLtX(e){const{char:t,accent:r}=e,a=n[r];return a?`\\${a}{${t}}`:null}convertSpecialCharToLtX(e){const t=a[e];if(!t)return null;const{letter:r,fontCmd:n}=t;return`\\${n}{${r}}`}};const r={\u00e1:{char:"a",accent:"\xb4"},\u00e0:{char:"a",accent:"`"},\u00e2:{char:"a",accent:"^"},\u00e3:{char:"a",accent:"~"},\u00e4:{char:"a",accent:"\xa8"},\u00e5:{char:"a",accent:"\u02da"},\u0105:{char:"a",accent:"\u02d9"},\u0103:{char:"a",accent:"\u02d8"},\u01ce:{char:"a",accent:"\u02c7"},\u01df:{char:"a",accent:"\u02c6"},\u01fb:{char:"a",accent:"\u02d9"},\u01e1:{char:"a",accent:"-"},\u0101:{char:"a",accent:"-"},\u00e9:{char:"e",accent:"\xb4"},\u00e8:{char:"e",accent:"`"},\u00ea:{char:"e",accent:"^"},\u00eb:{char:"e",accent:"\xa8"},\u0119:{char:"e",accent:"\u02d9"},\u011b:{char:"e",accent:"\u02c7"},\u0207:{char:"i",accent:"^"},\u0451:{char:"e",accent:"\xa8"},\u0113:{char:"e",accent:"-"},\u00ed:{char:"i",accent:"\xb4"},\u00ec:{char:"i",accent:"`"},\u00ee:{char:"i",accent:"^"},\u00ef:{char:"i",accent:"\xa8"},\u012f:{char:"i",accent:"\u02d9"},\u01d0:{char:"i",accent:"\u02c7"},\u0209:{char:"i",accent:"`"},\u020b:{char:"i",accent:"\xa8"},\u012b:{char:"i",accent:"-"},\u00f3:{char:"o",accent:"\xb4"},\u00f2:{char:"o",accent:"`"},\u00f4:{char:"o",accent:"^"},\u00f5:{char:"o",accent:"~"},\u00f6:{char:"o",accent:"\xa8"},\u0151:{char:"o",accent:"\u02dd"},\u01d2:{char:"o",accent:"\u02c7"},\u020d:{char:"o",accent:"`"},\u020f:{char:"o",accent:"\xa8"},\u022b:{char:"o",accent:"\u02d8"},\u022d:{char:"o",accent:"\u02dd"},\u022f:{char:"o",accent:"\u02d9"},\u014d:{char:"o",accent:"-"},\u00fa:{char:"u",accent:"\xb4"},\u00f9:{char:"u",accent:"`"},\u00fb:{char:"u",accent:"^"},\u00fc:{char:"u",accent:"\xa8"},\u0171:{char:"u",accent:"\u02dd"},\u01d4:{char:"u",accent:"\u02c7"},\u01d6:{char:"u",accent:"\xa8"},\u01d8:{char:"u",accent:"\xa8"},\u01da:{char:"u",accent:"\xa8"},\u01dc:{char:"u",accent:"\xa8"},\u0215:{char:"u",accent:"`"},\u0217:{char:"u",accent:"\xa8"},\u016b:{char:"u",accent:"-"},\u00fd:{char:"y",accent:"\xb4"},\u1ef3:{char:"y",accent:"`"},\u0177:{char:"y",accent:"^"},\u00ff:{char:"y",accent:"\xa8"},\u0233:{char:"y",accent:"-"},\u00c1:{char:"A",accent:"\xb4"},\u00c0:{char:"A",accent:"`"},\u00c2:{char:"A",accent:"^"},\u00c3:{char:"A",accent:"~"},\u00c4:{char:"A",accent:"\xa8"},\u00c5:{char:"A",accent:"\u02da"},\u212b:{char:"A",accent:"\u02da"},\u0226:{char:"A",accent:"\u02d9"},\u0102:{char:"A",accent:"\u02d8"},\u01cd:{char:"A",accent:"\u02c7"},\u01de:{char:"A",accent:"\u02dd"},\u01fa:{char:"A",accent:"\u02da"},\u01e0:{char:"A",accent:"-"},\u0100:{char:"A",accent:"-"},\u00c9:{char:"E",accent:"\xb4"},\u00c8:{char:"E",accent:"`"},\u0116:{char:"E",accent:"\u02d9"},\u00ca:{char:"E",accent:"^"},\u00cb:{char:"E",accent:"\xa8"},\u011a:{char:"E",accent:"\u02c7"},\u0204:{char:"E",accent:"`"},\u0206:{char:"E",accent:"\xa8"},\u0112:{char:"E",accent:"-"},\u00cd:{char:"I",accent:"\xb4"},\u00cc:{char:"I",accent:"`"},\u00ce:{char:"I",accent:"^"},\u00cf:{char:"I",accent:"\xa8"},\u012c:{char:"I",accent:"\u02d8"},\u01cf:{char:"I",accent:"\u02c7"},\u0208:{char:"I",accent:"`"},\u020a:{char:"I",accent:"\xa8"},\u012a:{char:"I",accent:"-"},\u00d3:{char:"O",accent:"\xb4"},\u00d2:{char:"O",accent:"`"},\u00d4:{char:"O",accent:"^"},\u00d5:{char:"O",accent:"~"},\u00d6:{char:"O",accent:"\xa8"},\u0150:{char:"O",accent:"\u02dd"},\u01d1:{char:"O",accent:"\u02c7"},\u020c:{char:"O",accent:"`"},\u020e:{char:"O",accent:"\xa8"},\u022a:{char:"O",accent:"\u02d8"},\u022c:{char:"O",accent:"\u02dd"},\u022e:{char:"O",accent:"\u02d9"},\u014c:{char:"O",accent:"-"},\u00da:{char:"U",accent:"\xb4"},\u00d9:{char:"U",accent:"`"},\u00db:{char:"U",accent:"^"},\u00dc:{char:"U",accent:"\xa8"},\u0170:{char:"U",accent:"\u02dd"},\u01d3:{char:"U",accent:"\u02c7"},\u01d5:{char:"U",accent:"\xa8"},\u0214:{char:"U",accent:"`"},\u0216:{char:"U",accent:"\xa8"},\u016a:{char:"U",accent:"-"},\u00dd:{char:"Y",accent:"\xb4"},\u1ef2:{char:"Y",accent:"`"},\u0176:{char:"Y",accent:"^"},\u0178:{char:"Y",accent:"\xa8"},\u0232:{char:"Y",accent:"-"},\u00f1:{char:"n",accent:"~"},\u00d1:{char:"N",accent:"~"},\u00e7:{char:"c",accent:"\u02d9"},\u00c7:{char:"C",accent:"\u02d9"},\u1e7d:{char:"v",accent:"~"},\u1e7c:{char:"V",accent:"~"},\u0135:{char:"j",accent:"^"},\u0134:{char:"J",accent:"^"},\u017a:{char:"z",accent:"\xb4"},\u0179:{char:"Z",accent:"\xb4"},\u017b:{char:"Z",accent:"^"},\u017c:{char:"z",accent:"^"},\u017d:{char:"Z",accent:"\u02c7"},\u017e:{char:"z",accent:"\u02c7"},\u1e91:{char:"z",accent:"\u02c6"}},n={"\xb4":"grave","`":"acute","^":"hat","~":"tilde","\xa8":"ddot","\u02da":"mathring","\u02d8":"breve",\u02c7:"check","\u02dd":"ddot","\u02d9":"dot","-":"bar",\u02c6:"hat","\u02dc":"tilde"},a={\u{1d400}:{letter:"A",fontCmd:"mathbf"},\u{1d401}:{letter:"B",fontCmd:"mathbf"},\u{1d402}:{letter:"C",fontCmd:"mathbf"},\u{1d403}:{letter:"D",fontCmd:"mathbf"},\u{1d404}:{letter:"E",fontCmd:"mathbf"},\u0395:{letter:"E",fontCmd:"mathbf"},\u{1d405}:{letter:"F",fontCmd:"mathbf"},\u{1d406}:{letter:"G",fontCmd:"mathbf"},\u{1d407}:{letter:"H",fontCmd:"mathbf"},\u{1d408}:{letter:"I",fontCmd:"mathbf"},\u{1d409}:{letter:"J",fontCmd:"mathbf"},\u{1d40a}:{letter:"K",fontCmd:"mathbf"},\u{1d40b}:{letter:"L",fontCmd:"mathbf"},\u{1d40c}:{letter:"M",fontCmd:"mathbf"},\u{1d40d}:{letter:"N",fontCmd:"mathbf"},\u{1d40e}:{letter:"O",fontCmd:"mathbf"},\u{1d40f}:{letter:"P",fontCmd:"mathbf"},\u{1d410}:{letter:"Q",fontCmd:"mathbf"},\u{1d411}:{letter:"R",fontCmd:"mathbf"},\u{1d412}:{letter:"S",fontCmd:"mathbf"},\u{1d413}:{letter:"T",fontCmd:"mathbf"},\u{1d414}:{letter:"U",fontCmd:"mathbf"},\u{1d415}:{letter:"V",fontCmd:"mathbf"},\u{1d416}:{letter:"W",fontCmd:"mathbf"},\u{1d417}:{letter:"X",fontCmd:"mathbf"},\u{1d786}:{letter:"X",fontCmd:"mathbf"},\u{1d418}:{letter:"Y",fontCmd:"mathbf"},\u{1d419}:{letter:"Z",fontCmd:"mathbf"},"\u{1d7ce}":{letter:"0",fontCmd:"mathbf"},"\u{1d7cf}":{letter:"1",fontCmd:"mathbf"},"\u{1d7d0}":{letter:"2",fontCmd:"mathbf"},"\u{1d7d1}":{letter:"3",fontCmd:"mathbf"},"\u{1d7d2}":{letter:"4",fontCmd:"mathbf"},"\u{1d7d3}":{letter:"5",fontCmd:"mathbf"},"\u{1d7d4}":{letter:"6",fontCmd:"mathbf"},"\u{1d7d5}":{letter:"7",fontCmd:"mathbf"},"\u{1d7d6}":{letter:"8",fontCmd:"mathbf"},"\u{1d7d7}":{letter:"9",fontCmd:"mathbf"},\u{1d434}:{letter:"A",fontCmd:"mathit"},\u{1d435}:{letter:"B",fontCmd:"mathit"},\u{1d436}:{letter:"C",fontCmd:"mathit"},\u{1d437}:{letter:"D",fontCmd:"mathit"},\u{1d438}:{letter:"E",fontCmd:"mathit"},\u{1d439}:{letter:"F",fontCmd:"mathit"},\u{1d43a}:{letter:"G",fontCmd:"mathit"},\u{1d43b}:{letter:"H",fontCmd:"mathit"},\u{1d43c}:{letter:"I",fontCmd:"mathit"},\u0399:{letter:"I",fontCmd:"mathit"},\u{1d43d}:{letter:"J",fontCmd:"mathit"},\u{1d43e}:{letter:"K",fontCmd:"mathit"},\u{1d43f}:{letter:"L",fontCmd:"mathit"},\u{1d440}:{letter:"M",fontCmd:"mathit"},\u{1d441}:{letter:"N",fontCmd:"mathit"},\u{1d442}:{letter:"O",fontCmd:"mathit"},\u{1d443}:{letter:"P",fontCmd:"mathit"},\u{1d444}:{letter:"Q",fontCmd:"mathit"},\u{1d445}:{letter:"R",fontCmd:"mathit"},\u{1d446}:{letter:"S",fontCmd:"mathit"},\u{1d447}:{letter:"T",fontCmd:"mathit"},\u{1d448}:{letter:"U",fontCmd:"mathit"},\u{1d449}:{letter:"V",fontCmd:"mathit"},\u{1d44a}:{letter:"W",fontCmd:"mathit"},\u{1d44b}:{letter:"X",fontCmd:"mathit"},\u{1d44c}:{letter:"Y",fontCmd:"mathit"},\u{1d44d}:{letter:"Z",fontCmd:"mathit"},\u{1d538}:{letter:"A",fontCmd:"mathbb"},\u{1d539}:{letter:"B",fontCmd:"mathbb"},\u2102:{letter:"C",fontCmd:"mathbb"},\u{1d53b}:{letter:"D",fontCmd:"mathbb"},\u{1d53c}:{letter:"E",fontCmd:"mathbb"},\u{1d53d}:{letter:"F",fontCmd:"mathbb"},\u{1d53e}:{letter:"G",fontCmd:"mathbb"},\u210d:{letter:"H",fontCmd:"mathbb"},\u{1d540}:{letter:"I",fontCmd:"mathbb"},\u{1d541}:{letter:"J",fontCmd:"mathbb"},\u{1d542}:{letter:"K",fontCmd:"mathbb"},\u{1d543}:{letter:"L",fontCmd:"mathbb"},\u{1d544}:{letter:"M",fontCmd:"mathbb"},\u2115:{letter:"N",fontCmd:"mathbb"},\u{1d546}:{letter:"O",fontCmd:"mathbb"},\u2119:{letter:"P",fontCmd:"mathbb"},\u211a:{letter:"Q",fontCmd:"mathbb"},\u211d:{letter:"R",fontCmd:"mathbb"},\u{1d54a}:{letter:"S",fontCmd:"mathbb"},\u{1d54b}:{letter:"T",fontCmd:"mathbb"},\u{1d54c}:{letter:"U",fontCmd:"mathbb"},\u{1d54d}:{letter:"V",fontCmd:"mathbb"},\u{1d54e}:{letter:"W",fontCmd:"mathbb"},\u{1d54f}:{letter:"X",fontCmd:"mathbb"},\u{1d550}:{letter:"Y",fontCmd:"mathbb"},\u2124:{letter:"Z",fontCmd:"mathbb"},"\u{1d7d8}":{letter:"0",fontCmd:"mathbb"},"\u{1d7d9}":{letter:"1",fontCmd:"mathbb"},"\u{1d7da}":{letter:"2",fontCmd:"mathbb"},"\u{1d7db}":{letter:"3",fontCmd:"mathbb"},"\u{1d7dc}":{letter:"4",fontCmd:"mathbb"},"\u{1d7dd}":{letter:"5",fontCmd:"mathbb"},"\u{1d7de}":{letter:"6",fontCmd:"mathbb"},"\u{1d7df}":{letter:"7",fontCmd:"mathbb"},"\u{1d7e0}":{letter:"8",fontCmd:"mathbb"},"\u{1d7e1}":{letter:"9",fontCmd:"mathbb"},\u{1d49c}:{letter:"A",fontCmd:"mathcal"},\u{1d4d0}:{letter:"A",fontCmd:"mathcal"},\u212c:{letter:"B",fontCmd:"mathcal"},\u{1d49e}:{letter:"C",fontCmd:"mathcal"},\u{1d49f}:{letter:"D",fontCmd:"mathcal"},\u{1d4d3}:{letter:"D",fontCmd:"mathcal"},\u2130:{letter:"E",fontCmd:"mathcal"},\u2131:{letter:"F",fontCmd:"mathcal"},\u{1d4d5}:{letter:"F",fontCmd:"mathcal"},\u{1d4a2}:{letter:"G",fontCmd:"mathcal"},\u210b:{letter:"H",fontCmd:"mathcal"},\u2110:{letter:"I",fontCmd:"mathcal"},\u{1d4a5}:{letter:"J",fontCmd:"mathcal"},\u{1d4a6}:{letter:"K",fontCmd:"mathcal"},\u2112:{letter:"L",fontCmd:"mathcal"},\u{1d4db}:{letter:"L",fontCmd:"mathcal"},\u2133:{letter:"M",fontCmd:"mathcal"},\u{1d4a9}:{letter:"N",fontCmd:"mathcal"},\u{1d4aa}:{letter:"O",fontCmd:"mathcal"},\u{1d4de}:{letter:"O",fontCmd:"mathcal"},\u{1d4ab}:{letter:"P",fontCmd:"mathcal"},\u{1d4ac}:{letter:"Q",fontCmd:"mathcal"},\u211b:{letter:"R",fontCmd:"mathcal"},\u{1d57d}:{letter:"R",fontCmd:"mathcal"},"\u211f":{letter:"R",fontCmd:"mathcal"},\u{1d4ae}:{letter:"S",fontCmd:"mathcal"},\u{1d4af}:{letter:"T",fontCmd:"mathcal"},\u{1d4b0}:{letter:"U",fontCmd:"mathcal"},\u{1d4b1}:{letter:"V",fontCmd:"mathcal"},\u{1d4b2}:{letter:"W",fontCmd:"mathcal"},\u{1d4b3}:{letter:"X",fontCmd:"mathcal"},\u{1d4b4}:{letter:"Y",fontCmd:"mathcal"},\u{1d4b5}:{letter:"Z",fontCmd:"mathcal"},\u{1d504}:{letter:"A",fontCmd:"mathfrak"},\u{1d505}:{letter:"B",fontCmd:"mathfrak"},\u212d:{letter:"C",fontCmd:"mathfrak"},\u{1d507}:{letter:"D",fontCmd:"mathfrak"},\u{1d508}:{letter:"E",fontCmd:"mathfrak"},\u{1d509}:{letter:"F",fontCmd:"mathfrak"},\u{1d50a}:{letter:"G",fontCmd:"mathfrak"},\u210c:{letter:"H",fontCmd:"mathfrak"},\u2111:{letter:"I",fontCmd:"mathfrak"},\u{1d50d}:{letter:"J",fontCmd:"mathfrak"},\u{1d50e}:{letter:"K",fontCmd:"mathfrak"},\u{1d50f}:{letter:"L",fontCmd:"mathfrak"},\u{1d510}:{letter:"M",fontCmd:"mathfrak"},\u{1d511}:{letter:"N",fontCmd:"mathfrak"},\u{1d512}:{letter:"O",fontCmd:"mathfrak"},\u{1d513}:{letter:"P",fontCmd:"mathfrak"},\u{1d514}:{letter:"Q",fontCmd:"mathfrak"},\u211c:{letter:"R",fontCmd:"mathfrak"},\u{1d516}:{letter:"S",fontCmd:"mathfrak"},\u{1d517}:{letter:"T",fontCmd:"mathfrak"},\u{1d518}:{letter:"U",fontCmd:"mathfrak"},\u{1d519}:{letter:"V",fontCmd:"mathfrak"},\u{1d51a}:{letter:"W",fontCmd:"mathfrak"},\u{1d51b}:{letter:"X",fontCmd:"mathfrak"},\u{1d51c}:{letter:"Y",fontCmd:"mathfrak"},\u2128:{letter:"Z",fontCmd:"mathfrak"},\u{1d5a0}:{letter:"A",fontCmd:"mathsf"},\u0391:{letter:"A",fontCmd:"mathsf"},\u{1d5a1}:{letter:"B",fontCmd:"mathsf"},\u0392:{letter:"B",fontCmd:"mathsf"},\u{1d5a2}:{letter:"C",fontCmd:"mathsf"},\u{1d5a3}:{letter:"D",fontCmd:"mathsf"},\u{1d5a4}:{letter:"E",fontCmd:"mathsf"},\u{1d5a5}:{letter:"F",fontCmd:"mathsf"},\u{1d5a6}:{letter:"G",fontCmd:"mathsf"},\u{1d5a7}:{letter:"H",fontCmd:"mathsf"},\u{1d5a8}:{letter:"I",fontCmd:"mathsf"},\u{1d5a9}:{letter:"J",fontCmd:"mathsf"},\u0237:{letter:"J",fontCmd:"mathsf"},\u{1d5aa}:{letter:"K",fontCmd:"mathsf"},\u039a:{letter:"K",fontCmd:"mathsf"},\u{1d5ab}:{letter:"L",fontCmd:"mathsf"},\u{1d5ac}:{letter:"M",fontCmd:"mathsf"},\u{1d5ad}:{letter:"N",fontCmd:"mathsf"},\u{1d5ae}:{letter:"O",fontCmd:"mathsf"},\u{1d5af}:{letter:"P",fontCmd:"mathsf"},\u{1d5b0}:{letter:"Q",fontCmd:"mathsf"},\u{1d5b1}:{letter:"R",fontCmd:"mathsf"},\u{1d5b2}:{letter:"S",fontCmd:"mathsf"},\u{1d5b3}:{letter:"T",fontCmd:"mathsf"},\u{1d5b4}:{letter:"U",fontCmd:"mathsf"},\u{1d5b5}:{letter:"V",fontCmd:"mathsf"},\u{1d5b6}:{letter:"W",fontCmd:"mathsf"},\u{1d5b7}:{letter:"X",fontCmd:"mathsf"},\u03a7:{letter:"X",fontCmd:"mathsf"},\u{1d5b8}:{letter:"Y",fontCmd:"mathsf"},\u{1d5b9}:{letter:"Z",fontCmd:"mathsf"},\u{1d6a8}:{letter:"A",fontCmd:"mathtt"},\u{1d6a9}:{letter:"B",fontCmd:"mathtt"},\u{1d6aa}:{letter:"\\Gamma",fontCmd:"mathtt"},\u{1d6ab}:{letter:"\\Delta",fontCmd:"mathtt"},\u{1d6ac}:{letter:"E",fontCmd:"mathtt"},\u{1d6ad}:{letter:"F",fontCmd:"mathtt"},\u{1d6ae}:{letter:"G",fontCmd:"mathtt"},\u{1d6af}:{letter:"\\Theta",fontCmd:"mathtt"},\u{1d6b0}:{letter:"I",fontCmd:"mathtt"},\u{1d6b1}:{letter:"J",fontCmd:"mathtt"},\u{1d6b2}:{letter:"\\Lambda",fontCmd:"mathtt"},\u{1d6b3}:{letter:"L",fontCmd:"mathtt"},\u{1d6b4}:{letter:"M",fontCmd:"mathtt"},\u{1d6b5}:{letter:"\\Pi",fontCmd:"mathtt"},\u{1d6b6}:{letter:"O",fontCmd:"mathtt"},\u{1d6b7}:{letter:"\\Pi",fontCmd:"mathtt"},\u{1d6b8}:{letter:"Q",fontCmd:"mathtt"},\u{1d6b9}:{letter:"R",fontCmd:"mathtt"},\u{1d6ba}:{letter:"S",fontCmd:"mathtt"},\u{1d6bb}:{letter:"T",fontCmd:"mathtt"},\u{1d6bc}:{letter:"U",fontCmd:"mathtt"},\u{1d6bd}:{letter:"\\Phi",fontCmd:"mathtt"},\u{1d6be}:{letter:"W",fontCmd:"mathtt"},\u{1d6bf}:{letter:"\\Psi",fontCmd:"mathtt"},\u{1d6c0}:{letter:"\\Omega",fontCmd:"mathtt"}}}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}var n={};return(()=>{"use strict";var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.MathMLToLaTeX=void 0;var t=r(8672);Object.defineProperty(e,"MathMLToLaTeX",{enumerable:!0,get:function(){return t.MathMLToLaTeX}})})(),n})(),e.exports=t()},424:function(e,t,r){"use strict";var n,a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),i=0;i<r.length;i++)"default"!==r[i]&&a(t,e,r[i]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.mathStandardizationRules=t.createCleanMathEl=t.getLatexFromElement=void 0;const s=r(354),l=i(r(914)),c=r(648);t.getLatexFromElement=e=>{const t=(0,c.getBasicLatexFromElement)(e);if(t)return t;const r=(0,c.getMathMLFromElement)(e);if(null==r?void 0:r.mathml)try{return s.MathMLToLaTeX.convert(r.mathml)}catch(e){console.warn("Failed to convert MathML to LaTeX:",e)}return null};t.createCleanMathEl=(e,t,r)=>{const n=document.createElement("math");if(n.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n.setAttribute("display",r?"block":"inline"),n.setAttribute("data-latex",t||""),null==e?void 0:e.mathml){const t=document.createElement("div");t.innerHTML=e.mathml;const r=t.querySelector("math");r&&(n.innerHTML=r.innerHTML)}else if(t)try{const e=l.renderToString(t,{displayMode:r,throwOnError:!1}),a=document.createElement("div");a.innerHTML=e;const o=a.querySelector("math");o?n.innerHTML=o.innerHTML:n.textContent=t}catch(e){console.warn("Failed to convert LaTeX to MathML:",e),n.textContent=t}return n},t.mathStandardizationRules=[{selector:c.mathSelectors,element:"math",transform:e=>{if(!(e instanceof HTMLElement))return e;const r=(0,c.getMathMLFromElement)(e),n=(0,t.getLatexFromElement)(e),a=(0,c.isBlockDisplay)(e),o=(0,t.createCleanMathEl)(r,n,a);if(e.parentElement){e.parentElement.querySelectorAll('\n\t\t\t\t\t/* MathJax scripts and previews */\n\t\t\t\t\tscript[type^="math/"],\n\t\t\t\t\t.MathJax_Preview,\n\n\t\t\t\t\t/* External math library scripts */\n\t\t\t\t\tscript[type="text/javascript"][src*="mathjax"],\n\t\t\t\t\tscript[type="text/javascript"][src*="katex"]\n\t\t\t\t').forEach((e=>e.remove()))}return o}}]},608:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataExtractor=void 0;t.MetadataExtractor=class{static extract(e,t){var r,n;let a="",o="";try{o=(null===(r=e.location)||void 0===r?void 0:r.href)||"",o||(o=this.getMetaContent(e,"property","og:url")||this.getMetaContent(e,"property","twitter:url")||this.getSchemaProperty(e,t,"url")||this.getSchemaProperty(e,t,"mainEntityOfPage.url")||this.getSchemaProperty(e,t,"mainEntity.url")||this.getSchemaProperty(e,t,"WebSite.url")||(null===(n=e.querySelector('link[rel="canonical"]'))||void 0===n?void 0:n.getAttribute("href"))||""),o&&(a=new URL(o).hostname.replace(/^www\./,""))}catch(t){const r=e.querySelector("base[href]");if(r)try{o=r.getAttribute("href")||"",a=new URL(o).hostname.replace(/^www\./,"")}catch(e){console.warn("Failed to parse base URL:",e)}}return{title:this.getTitle(e,t),description:this.getDescription(e,t),domain:a,favicon:this.getFavicon(e,o),image:this.getImage(e,t),published:this.getPublished(e,t),author:this.getAuthor(e,t),site:this.getSite(e,t),schemaOrgData:t,wordCount:0,parseTime:0}}static getAuthor(e,t){return this.getMetaContent(e,"name","sailthru.author")||this.getSchemaProperty(e,t,"author.name")||this.getMetaContent(e,"property","author")||this.getMetaContent(e,"name","byl")||this.getMetaContent(e,"name","author")||this.getMetaContent(e,"name","authorList")||this.getMetaContent(e,"name","copyright")||this.getSchemaProperty(e,t,"copyrightHolder.name")||this.getMetaContent(e,"property","og:site_name")||this.getSchemaProperty(e,t,"publisher.name")||this.getSchemaProperty(e,t,"sourceOrganization.name")||this.getSchemaProperty(e,t,"isPartOf.name")||this.getMetaContent(e,"name","twitter:creator")||this.getMetaContent(e,"name","application-name")||""}static getSite(e,t){return this.getSchemaProperty(e,t,"publisher.name")||this.getMetaContent(e,"property","og:site_name")||this.getSchemaProperty(e,t,"WebSite.name")||this.getSchemaProperty(e,t,"sourceOrganization.name")||this.getMetaContent(e,"name","copyright")||this.getSchemaProperty(e,t,"copyrightHolder.name")||this.getSchemaProperty(e,t,"isPartOf.name")||this.getMetaContent(e,"name","application-name")||this.getAuthor(e,t)||""}static getTitle(e,t){var r,n;const a=this.getMetaContent(e,"property","og:title")||this.getMetaContent(e,"name","twitter:title")||this.getSchemaProperty(e,t,"headline")||this.getMetaContent(e,"name","title")||this.getMetaContent(e,"name","sailthru.title")||(null===(n=null===(r=e.querySelector("title"))||void 0===r?void 0:r.textContent)||void 0===n?void 0:n.trim())||"";return this.cleanTitle(a,this.getSite(e,t))}static cleanTitle(e,t){if(!e||!t)return e;const r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=[`\\s*[\\|\\-\u2013\u2014]\\s*${r}\\s*$`,`^\\s*${r}\\s*[\\|\\-\u2013\u2014]\\s*`];for(const t of n){const r=new RegExp(t,"i");if(r.test(e)){e=e.replace(r,"");break}}return e.trim()}static getDescription(e,t){return this.getMetaContent(e,"name","description")||this.getMetaContent(e,"property","description")||this.getMetaContent(e,"property","og:description")||this.getSchemaProperty(e,t,"description")||this.getMetaContent(e,"name","twitter:description")||this.getMetaContent(e,"name","sailthru.description")||""}static getImage(e,t){return this.getMetaContent(e,"property","og:image")||this.getMetaContent(e,"name","twitter:image")||this.getSchemaProperty(e,t,"image.url")||this.getMetaContent(e,"name","sailthru.image.full")||""}static getFavicon(e,t){var r,n;const a=this.getMetaContent(e,"property","og:image:favicon");if(a)return a;const o=null===(r=e.querySelector("link[rel='icon']"))||void 0===r?void 0:r.getAttribute("href");if(o)return o;const i=null===(n=e.querySelector("link[rel='shortcut icon']"))||void 0===n?void 0:n.getAttribute("href");if(i)return i;if(t)try{return new URL("/favicon.ico",t).href}catch(e){console.warn("Failed to construct favicon URL:",e)}return""}static getPublished(e,t){return this.getSchemaProperty(e,t,"datePublished")||this.getMetaContent(e,"name","publishDate")||this.getMetaContent(e,"property","article:published_time")||this.getTimeElement(e)||this.getMetaContent(e,"name","sailthru.date")||""}static getMetaContent(e,t,r){var n,a;const o=`meta[${t}]`,i=Array.from(e.querySelectorAll(o)).find((e=>{var n;return(null===(n=e.getAttribute(t))||void 0===n?void 0:n.toLowerCase())===r.toLowerCase()})),s=i&&null!==(a=null===(n=i.getAttribute("content"))||void 0===n?void 0:n.trim())&&void 0!==a?a:"";return this.decodeHTMLEntities(s,e)}static getTimeElement(e){var t,r,n,a;const o=Array.from(e.querySelectorAll("time"))[0],i=o&&null!==(a=null!==(r=null===(t=o.getAttribute("datetime"))||void 0===t?void 0:t.trim())&&void 0!==r?r:null===(n=o.textContent)||void 0===n?void 0:n.trim())&&void 0!==a?a:"";return this.decodeHTMLEntities(i,e)}static decodeHTMLEntities(e,t){const r=t.createElement("textarea");return r.innerHTML=e,r.value}static getSchemaProperty(e,t,r,n=""){if(!t)return n;const a=(e,t,r,n=!0)=>{if("string"==typeof e)return 0===t.length?[e]:[];if(!e||"object"!=typeof e)return[];if(Array.isArray(e)){const o=t[0];if(/^\[\d+\]$/.test(o)){const i=parseInt(o.slice(1,-1));return e[i]?a(e[i],t.slice(1),r,n):[]}return 0===t.length&&e.every((e=>"string"==typeof e||"number"==typeof e))?e.map(String):e.flatMap((e=>a(e,t,r,n)))}const[o,...i]=t;if(!o)return"string"==typeof e?[e]:"object"==typeof e&&e.name?[e.name]:[];if(e.hasOwnProperty(o))return a(e[o],i,r?`${r}.${o}`:o,!0);if(!n){const n=[];for(const o in e)if("object"==typeof e[o]){const i=a(e[o],t,r?`${r}.${o}`:o,!1);n.push(...i)}if(n.length>0)return n}return[]};try{let o=a(t,r.split("."),"",!0);0===o.length&&(o=a(t,r.split("."),"",!1));const i=o.length>0?o.filter(Boolean).join(", "):n;return this.decodeHTMLEntities(i,e)}catch(e){return console.error(`Error in getSchemaProperty for ${r}:`,e),n}}static extractSchemaOrgData(e){const t=e.querySelectorAll('script[type="application/ld+json"]'),r=[];return t.forEach((e=>{let t=e.textContent||"";try{t=t.replace(/\/\*[\s\S]*?\*\/|^\s*\/\/.*$/gm,"").replace(/^\s*<!\[CDATA\[([\s\S]*?)\]\]>\s*$/,"$1").replace(/^\s*(\*\/|\/\*)\s*|\s*(\*\/|\/\*)\s*$/g,"").trim();const e=JSON.parse(t);e["@graph"]&&Array.isArray(e["@graph"])?r.push(...e["@graph"]):r.push(e)}catch(e){console.error("Error parsing schema.org data:",e),console.error("Problematic JSON content:",t)}})),r}}},628:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Defuddle=void 0;const n=r(608),a=r(640),o=[...r(424).mathStandardizationRules,{selector:"pre",element:"pre",transform:e=>{if(!(e instanceof HTMLElement))return e;const t=e=>{const t=e.getAttribute("data-lang")||e.getAttribute("data-language");if(t)return t.toLowerCase();const r=[/^language-(\w+)$/,/^lang-(\w+)$/,/^(\w+)-code$/,/^code-(\w+)$/,/^syntax-(\w+)$/,/^code-snippet__(\w+)$/,/^highlight-(\w+)$/,/^(\w+)-snippet$/];if(e.className&&"string"==typeof e.className){for(const t of r){const r=e.className.toLowerCase().match(t);if(r)return r[1].toLowerCase()}if(a.SUPPORTED_LANGUAGES.has(e.className.toLowerCase()))return e.className.toLowerCase()}const n=Array.from(e.classList);for(const e of n)for(const t of r){const r=e.match(t);if(r)return r[1].toLowerCase()}for(const e of n)if(a.SUPPORTED_LANGUAGES.has(e.toLowerCase()))return e.toLowerCase();return""};let r="",n=e;for(;n&&!r;)r=t(n),!r&&n.querySelector("code")&&(r=t(n.querySelector("code"))),n=n.parentElement;const o=e=>{if(e.nodeType===Node.TEXT_NODE)return e.textContent||"";let t="";if(e instanceof HTMLElement){if("BR"===e.tagName)return"\n";if(e.matches('div[class*="line"], span[class*="line"], .ec-line, [data-line-number], [data-line]')){const t=e.querySelector('.code, .content, [class*="code-"], [class*="content-"]');if(t)return(t.textContent||"")+"\n";const r=e.querySelector('.line-number, .gutter, [class*="line-number"], [class*="gutter"]');if(r){return Array.from(e.childNodes).filter((e=>!r.contains(e))).map((e=>o(e))).join("")+"\n"}return e.textContent+"\n"}e.childNodes.forEach((e=>{t+=o(e)}))}return t};let i=o(e);i=i.replace(/^\n+/,"").replace(/\n+$/,"").replace(/\n{3,}/g,"\n\n");const s=document.createElement("pre");Array.from(e.attributes).forEach((e=>{a.ALLOWED_ATTRIBUTES.has(e.name)&&s.setAttribute(e.name,e.value)}));const l=document.createElement("code");return r&&(l.setAttribute("data-lang",r),l.setAttribute("class",`language-${r}`)),l.textContent=i,s.appendChild(l),s}},{selector:"h1, h2, h3, h4, h5, h6",element:"keep",transform:e=>{var t;const r=document.createElement(e.tagName);Array.from(e.attributes).forEach((e=>{a.ALLOWED_ATTRIBUTES.has(e.name)&&r.setAttribute(e.name,e.value)}));const n=e.cloneNode(!0);Array.from(n.querySelectorAll("*")).filter((e=>{if(e instanceof HTMLAnchorElement){const t=e.getAttribute("href");return(null==t?void 0:t.includes("#"))||(null==t?void 0:t.startsWith("#"))}return!!e.classList.contains("anchor")||(e instanceof HTMLButtonElement||!(!(e instanceof HTMLSpanElement||e instanceof HTMLDivElement)||!e.querySelector('a[href^="#"]')))})).forEach((e=>e.remove()));const o=(null===(t=n.textContent)||void 0===t?void 0:t.trim())||"";return r.textContent=o,r}},{selector:'div[data-testid^="paragraph"], div[role="paragraph"]',element:"p",transform:e=>{const t=document.createElement("p");return t.innerHTML=e.innerHTML,Array.from(e.attributes).forEach((e=>{a.ALLOWED_ATTRIBUTES.has(e.name)&&t.setAttribute(e.name,e.value)})),t}},{selector:'div[role="list"]',element:"ul",transform:e=>{var t;const r=e.querySelector('div[role="listitem"] .label'),n=((null===(t=null==r?void 0:r.textContent)||void 0===t?void 0:t.trim())||"").match(/^\d+\)/),a=document.createElement(n?"ol":"ul");return e.querySelectorAll('div[role="listitem"]').forEach((e=>{const t=document.createElement("li"),r=e.querySelector(".content");if(r){r.querySelectorAll('div[role="paragraph"]').forEach((e=>{const t=document.createElement("p");t.innerHTML=e.innerHTML,e.replaceWith(t)}));r.querySelectorAll('div[role="list"]').forEach((e=>{var t;const r=e.querySelector('div[role="listitem"] .label'),n=((null===(t=null==r?void 0:r.textContent)||void 0===t?void 0:t.trim())||"").match(/^\d+\)/),a=document.createElement(n?"ol":"ul");e.querySelectorAll('div[role="listitem"]').forEach((e=>{const t=document.createElement("li"),r=e.querySelector(".content");if(r){r.querySelectorAll('div[role="paragraph"]').forEach((e=>{const t=document.createElement("p");t.innerHTML=e.innerHTML,e.replaceWith(t)})),t.innerHTML=r.innerHTML}a.appendChild(t)})),e.replaceWith(a)})),t.innerHTML=r.innerHTML}a.appendChild(t)})),a}},{selector:'div[role="listitem"]',element:"li",transform:e=>{const t=e.querySelector(".content");if(!t)return e;return t.querySelectorAll('div[role="paragraph"]').forEach((e=>{const t=document.createElement("p");t.innerHTML=e.innerHTML,e.replaceWith(t)})),t}},{selector:'.wp-block-syntaxhighlighter-code, .syntaxhighlighter, .highlight, .highlight-source, .wp-block-code, pre[class*="language-"], pre[class*="brush:"]',element:"pre",transform:e=>{if(!(e instanceof HTMLElement))return e;const t=document.createElement("pre");let r="";const n=e.querySelector(".syntaxhighlighter");if(n){const e=Array.from(n.classList).find((e=>!["syntaxhighlighter","nogutter"].includes(e)));e&&a.SUPPORTED_LANGUAGES.has(e.toLowerCase())&&(r=e.toLowerCase())}if(!r){const t=Array.from(e.classList),n=[/(?:^|\s)(?:language|lang|brush|syntax)-(\w+)(?:\s|$)/i,/(?:^|\s)(\w+)(?:\s|$)/i];for(const e of t){for(const t of n){const n=e.match(t);if(n&&n[1]&&a.SUPPORTED_LANGUAGES.has(n[1].toLowerCase())){r=n[1].toLowerCase();break}}if(r)break}}let o="";const i=e.querySelector(".syntaxhighlighter table .code .container");if(i){o=Array.from(i.children).map((e=>{const t=Array.from(e.querySelectorAll("code")).map((e=>{let t=e.textContent||"";return e.classList.contains("spaces")&&(t=" ".repeat(t.length)),t})).join("");return t||e.textContent||""})).join("\n")}else{const t=e.querySelectorAll(".code .line");o=t.length>0?Array.from(t).map((e=>{const t=Array.from(e.querySelectorAll("code")).map((e=>e.textContent||"")).join("");return t||e.textContent||""})).join("\n"):e.textContent||""}o=o.replace(/^\s+|\s+$/g,"").replace(/\t/g," ").replace(/\n{3,}/g,"\n\n").replace(/\u00a0/g," ");const s=document.createElement("code");return r&&(s.setAttribute("data-lang",r),s.setAttribute("class",`language-${r}`)),s.textContent=o,t.appendChild(s),t}}];t.Defuddle=class{constructor(e,t={}){this.doc=e,this.options=t,this.debug=t.debug||!1}parse(){const e=performance.now(),t=n.MetadataExtractor.extractSchemaOrgData(this.doc),r=n.MetadataExtractor.extract(this.doc,t);try{const t=this._evaluateMediaQueries(this.doc),n=this.findSmallImages(this.doc),a=this.doc.cloneNode(!0);this.applyMobileStyles(a,t);const o=this.findMainContent(a);if(!o){const t=performance.now();return Object.assign(Object.assign({content:this.doc.body.innerHTML},r),{wordCount:this.countWords(this.doc.body.innerHTML),parseTime:Math.round(t-e)})}this.removeSmallImages(a,n),this.removeHiddenElements(a),this.removeClutter(a),this.cleanContent(o,r);const i=o?o.outerHTML:this.doc.body.innerHTML,s=performance.now();return Object.assign(Object.assign({content:i},r),{wordCount:this.countWords(i),parseTime:Math.round(s-e)})}catch(t){console.error("Defuddle","Error processing document:",t);const n=performance.now();return Object.assign(Object.assign({content:this.doc.body.innerHTML},r),{wordCount:this.countWords(this.doc.body.innerHTML),parseTime:Math.round(n-e)})}}countWords(e){const t=document.createElement("div");t.innerHTML=e;return(t.textContent||"").trim().replace(/\s+/g," ").split(" ").filter((e=>e.length>0)).length}_log(...e){this.debug&&console.log("Defuddle:",...e)}_evaluateMediaQueries(e){const t=[],r=/max-width[^:]*:\s*(\d+)/;try{const n=Array.from(e.styleSheets).filter((e=>{try{return e.cssRules,!0}catch(e){if(e instanceof DOMException&&"SecurityError"===e.name)return!1;throw e}}));n.flatMap((e=>{try{return Array.from(e.cssRules).filter((e=>e instanceof CSSMediaRule&&e.conditionText.includes("max-width")))}catch(e){return this.debug&&console.warn("Defuddle: Failed to process stylesheet:",e),[]}})).forEach((e=>{const n=e.conditionText.match(r);if(n){const r=parseInt(n[1]);if(a.MOBILE_WIDTH<=r){Array.from(e.cssRules).filter((e=>e instanceof CSSStyleRule)).forEach((e=>{try{t.push({selector:e.selectorText,styles:e.style.cssText})}catch(e){this.debug&&console.warn("Defuddle: Failed to process CSS rule:",e)}}))}}}))}catch(e){console.error("Defuddle: Error evaluating media queries:",e)}return t}applyMobileStyles(e,t){t.forEach((({selector:t,styles:r})=>{try{e.querySelectorAll(t).forEach((e=>{e.setAttribute("style",(e.getAttribute("style")||"")+r)}))}catch(e){console.error("Defuddle","Error applying styles for selector:",t,e)}}))}removeHiddenElements(e){let t=0;const r=new Set,n=e.querySelectorAll(a.HIDDEN_ELEMENT_SELECTORS);n.forEach((e=>r.add(e))),t+=n.length;const o=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>r.has(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),i=[];let s;for(;s=o.nextNode();)i.push(s);for(let e=0;e<i.length;e+=100){const n=i.slice(e,e+100),a=n.map((e=>window.getComputedStyle(e)));n.forEach(((e,n)=>{const o=a[n];"none"!==o.display&&"hidden"!==o.visibility&&"0"!==o.opacity||(r.add(e),t++)}))}r.forEach((e=>e.remove())),this._log("Removed hidden elements:",t)}removeClutter(e){const t=performance.now();let r=0,n=0;const o=new Set;e.querySelectorAll(a.EXACT_SELECTORS.join(",")).forEach((e=>{(null==e?void 0:e.parentNode)&&(o.add(e),r++)}));const i=a.PARTIAL_SELECTORS.join("|"),s=new RegExp(i,"i");e.querySelectorAll("[class],[id],[data-testid],[data-test-id],[data-qa],[data-cy]").forEach((e=>{if(o.has(e))return;const t=[e.className&&"string"==typeof e.className?e.className:"",e.id||"",e.getAttribute("data-testid")||"",e.getAttribute("data-test-id")||"",e.getAttribute("data-qa")||"",e.getAttribute("data-cy")||""].join(" ").toLowerCase();t.trim()&&s.test(t)&&(o.add(e),n++)})),o.forEach((e=>e.remove()));const l=performance.now();this._log("Removed clutter elements:",{exactSelectors:r,partialSelectors:n,total:o.size,processingTime:`${(l-t).toFixed(2)}ms`})}flattenDivs(e){let t=0;const r=performance.now();let n=!0;const o=e=>{const t=e.tagName.toLowerCase();if(a.PRESERVE_ELEMENTS.has(t))return!0;const r=e.getAttribute("role");if(r&&["article","main","navigation","banner","contentinfo"].includes(r))return!0;if(e.className.toLowerCase().match(/(?:article|main|content|footnote|reference|bibliography)/))return!0;if("div"===t){if(Array.from(e.children).some((e=>a.PRESERVE_ELEMENTS.has(e.tagName.toLowerCase())||"article"===e.getAttribute("role")||e.className.toLowerCase().includes("article"))))return!0}return!1},i=e=>{var t;if(!(null===(t=e.textContent)||void 0===t?void 0:t.trim()))return!0;const r=Array.from(e.children);if(0===r.length)return!0;if(r.every((e=>{const t=e.tagName.toLowerCase();return"div"===t||"p"===t||"h1"===t||"h2"===t||"h3"===t||"h4"===t||"h5"===t||"h6"===t||"ul"===t||"ol"===t||"pre"===t||"blockquote"===t||"figure"===t})))return!0;const n=e.className.toLowerCase();if(/(?:wrapper|container|layout|row|col|grid|flex|outer|inner|content-area)/i.test(n))return!0;const o=Array.from(e.childNodes).filter((e=>{var t;return e.nodeType===Node.TEXT_NODE&&(null===(t=e.textContent)||void 0===t?void 0:t.trim())}));if(0===o.length)return!0;return!(!(r.length>0)||r.some((e=>{const t=e.tagName.toLowerCase();return a.INLINE_ELEMENTS.has(t)})))},s=r=>{var n,s;if(!r.isConnected||o(r))return!1;if(!r.hasChildNodes()||!(null===(n=r.textContent)||void 0===n?void 0:n.trim()))return r.remove(),t++,!0;if(r.parentElement===e){const e=Array.from(r.children);if(e.length>0&&!e.some((e=>{const t=e.tagName.toLowerCase();return a.INLINE_ELEMENTS.has(t)}))){const e=document.createDocumentFragment();for(;r.firstChild;)e.appendChild(r.firstChild);return r.replaceWith(e),t++,!0}}if(i(r)){if(!Array.from(r.children).some((e=>{const t=e.tagName.toLowerCase();return a.INLINE_ELEMENTS.has(t)}))){const e=document.createDocumentFragment();for(;r.firstChild;)e.appendChild(r.firstChild);return r.replaceWith(e),t++,!0}const e=document.createDocumentFragment();for(;r.firstChild;)e.appendChild(r.firstChild);return r.replaceWith(e),t++,!0}if(!r.children.length&&(null===(s=r.textContent)||void 0===s?void 0:s.trim())){const e=document.createElement("p");return e.textContent=r.textContent,r.replaceWith(e),t++,!0}if(1===r.children.length){const e=r.firstElementChild,n=e.tagName.toLowerCase();if(!a.INLINE_ELEMENTS.has(n)&&!o(e))return r.replaceWith(e),t++,!0}let l=0,c=r.parentElement;for(;c;)"div"===c.tagName.toLowerCase()&&l++,c=c.parentElement;if(l>0){const e=document.createDocumentFragment();for(;r.firstChild;)e.appendChild(r.firstChild);return r.replaceWith(e),t++,!0}return!1},l=()=>{const t=Array.from(e.children).filter((e=>"div"===e.tagName.toLowerCase()));let r=!1;return t.forEach((e=>{s(e)&&(r=!0)})),r},c=()=>{const t=Array.from(e.getElementsByTagName("div")).sort(((e,t)=>{const r=e=>{let t=0,r=e.parentElement;for(;r;)"div"===r.tagName.toLowerCase()&&t++,r=r.parentElement;return t};return r(t)-r(e)}));let r=!1;return t.forEach((e=>{s(e)&&(r=!0)})),r},u=()=>{const r=Array.from(e.getElementsByTagName("div"));let n=!1;return r.forEach((e=>{if(Array.from(e.children).every((e=>"p"===e.tagName.toLowerCase()))||!o(e)&&i(e)){const r=document.createDocumentFragment();for(;e.firstChild;)r.appendChild(e.firstChild);e.replaceWith(r),t++,n=!0}})),n};do{n=!1,l()&&(n=!0),c()&&(n=!0),u()&&(n=!0)}while(n);const d=performance.now();this._log("Flattened divs:",{count:t,processingTime:`${(d-r).toFixed(2)}ms`})}cleanContent(e,t){this.standardizeSpaces(e),this.removeHtmlComments(e),this.standardizeHeadings(e,t.title),this.standardizeFootnotes(e),this.handleLazyImages(e),this.standardizeElements(e),this.debug?(this.stripUnwantedAttributes(e),this.removeEmptyElements(e),this.removeTrailingHeadings(e),this._log("Debug mode: Skipping div flattening to preserve structure")):(this.flattenDivs(e),this.stripUnwantedAttributes(e),this.removeEmptyElements(e),this.removeTrailingHeadings(e),this.flattenDivs(e),this.removeEmptyLines(e))}standardizeSpaces(e){const t=e=>{if(e instanceof Element){const t=e.tagName.toLowerCase();if("pre"===t||"code"===t)return}if(e.nodeType===Node.TEXT_NODE){const t=e.textContent||"",r=t.replace(/\xA0+/g,(t=>{var r,n,a,o;if(1===t.length){const t=null===(n=null===(r=e.previousSibling)||void 0===r?void 0:r.textContent)||void 0===n?void 0:n.slice(-1),i=null===(o=null===(a=e.nextSibling)||void 0===a?void 0:a.textContent)||void 0===o?void 0:o.charAt(0);if((null==t?void 0:t.match(/\w/))&&(null==i?void 0:i.match(/\w/)))return"\xa0"}return" ".repeat(t.length)}));r!==t&&(e.textContent=r)}e.hasChildNodes()&&Array.from(e.childNodes).forEach(t)};t(e)}removeTrailingHeadings(e){let t=0;const r=t=>{let n="",a=t.nextSibling;for(;a;)(a.nodeType===Node.TEXT_NODE||a.nodeType===Node.ELEMENT_NODE)&&(n+=a.textContent||""),a=a.nextSibling;if(n.trim())return!0;const o=t.parentElement;return!(!o||o===e)&&r(o)};Array.from(e.querySelectorAll("h1, h2, h3, h4, h5, h6")).reverse().forEach((e=>{r(e)||(e.remove(),t++)})),t>0&&this._log("Removed trailing headings:",t)}standardizeHeadings(e,t){const r=e=>e.replace(/\u00A0/g," ").replace(/\s+/g," ").trim().toLowerCase(),n=e.getElementsByTagName("h1");Array.from(n).forEach((e=>{var t;const r=document.createElement("h2");r.innerHTML=e.innerHTML,Array.from(e.attributes).forEach((e=>{a.ALLOWED_ATTRIBUTES.has(e.name)&&r.setAttribute(e.name,e.value)})),null===(t=e.parentNode)||void 0===t||t.replaceChild(r,e)}));const o=e.getElementsByTagName("h2");if(o.length>0){const e=o[0],n=r(e.textContent||""),a=r(t);a&&a===n&&e.remove()}}removeHtmlComments(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT,null);let n;for(;n=r.nextNode();)t.push(n);t.forEach((e=>{e.remove()})),this._log("Removed HTML comments:",t.length)}stripUnwantedAttributes(e){let t=0;const r=e=>{if(e instanceof SVGElement)return;Array.from(e.attributes).forEach((r=>{const n=r.name.toLowerCase();this.debug?a.ALLOWED_ATTRIBUTES.has(n)||a.ALLOWED_ATTRIBUTES_DEBUG.has(n)||n.startsWith("data-")||(e.removeAttribute(r.name),t++):a.ALLOWED_ATTRIBUTES.has(n)||(e.removeAttribute(r.name),t++)}))};r(e),e.querySelectorAll("*").forEach(r),this._log("Stripped attributes:",t)}removeEmptyElements(e){let t=0,r=0,n=!0;for(;n;){r++,n=!1;const o=Array.from(e.getElementsByTagName("*")).filter((e=>{if(a.ALLOWED_EMPTY_ELEMENTS.has(e.tagName.toLowerCase()))return!1;const t=e.textContent||"",r=0===t.trim().length,n=t.includes("\xa0"),o=!e.hasChildNodes()||Array.from(e.childNodes).every((e=>{if(e.nodeType===Node.TEXT_NODE){const t=e.textContent||"";return 0===t.trim().length&&!t.includes("\xa0")}return!1}));if("div"===e.tagName.toLowerCase()){const t=Array.from(e.children);if(t.length>0&&t.every((e=>{var t;if("span"!==e.tagName.toLowerCase())return!1;const r=(null===(t=e.textContent)||void 0===t?void 0:t.trim())||"";return","===r||""===r||" "===r})))return!0}return r&&!n&&o}));o.length>0&&(o.forEach((e=>{e.remove(),t++})),n=!0)}this._log("Removed empty elements:",{count:t,iterations:r})}removeEmptyLines(e){let t=0;const r=performance.now(),n=e=>{var r;if(e instanceof Element){const t=e.tagName.toLowerCase();if("pre"===t||"code"===t)return}if(Array.from(e.childNodes).forEach(n),e.nodeType===Node.TEXT_NODE){const n=e.textContent||"";if(!n||n.match(/^[\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\s]*$/))null===(r=e.parentNode)||void 0===r||r.removeChild(e),t++;else{const r=n.replace(/\n{3,}/g,"\n\n").replace(/^[\n\r\t]+/,"").replace(/[\n\r\t]+$/,"").replace(/[ \t]*\n[ \t]*/g,"\n").replace(/[ \t]{3,}/g," ").replace(/^[ ]+$/," ").replace(/\s+([,.!?:;])/g,"$1").replace(/[\u200C\u200B\u200D\u200E\u200F\uFEFF]+/g,"").replace(/(?:\xA0){2,}/g,"\xa0");r!==n&&(e.textContent=r,t+=n.length-r.length)}}},a=e=>{if(!(e instanceof Element))return;const r=e.tagName.toLowerCase();if("pre"===r||"code"===r)return;Array.from(e.children).forEach(a),e.normalize();const n="block"===getComputedStyle(e).display,o=n?/^[\n\r\t \u200C\u200B\u200D\u200E\u200F\uFEFF\xA0]*$/:/^[\n\r\t\u200C\u200B\u200D\u200E\u200F\uFEFF]*$/,i=n?/^[\n\r\t \u200C\u200B\u200D\u200E\u200F\uFEFF\xA0]*$/:/^[\n\r\t\u200C\u200B\u200D\u200E\u200F\uFEFF]*$/;for(;e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(e.firstChild.textContent||"").match(o);)e.removeChild(e.firstChild),t++;for(;e.lastChild&&e.lastChild.nodeType===Node.TEXT_NODE&&(e.lastChild.textContent||"").match(i);)e.removeChild(e.lastChild),t++;if(!n){const t=Array.from(e.childNodes);for(let r=0;r<t.length-1;r++){const n=t[r],a=t[r+1];if(n instanceof Element||a instanceof Element){const t=a.textContent||"",r=n.textContent||"";if(!t.match(/^[,.!?:;]/)&&!r.match(/[,.!?:;]$/)){if(!(n.nodeType===Node.TEXT_NODE&&(n.textContent||"").endsWith(" ")||a.nodeType===Node.TEXT_NODE&&(a.textContent||"").startsWith(" "))){const t=document.createTextNode(" ");e.insertBefore(t,a)}}}}}};n(e),a(e);const o=performance.now();this._log("Removed empty lines:",{charactersRemoved:t,processingTime:`${(o-r).toFixed(2)}ms`})}createFootnoteItem(e,t,r){const n=document.createElement("li");if(n.className="footnote",n.id=`fn:${e}`,"string"==typeof t){const e=document.createElement("p");e.innerHTML=t,n.appendChild(e)}else{const e=Array.from(t.querySelectorAll("p"));if(0===e.length){const e=document.createElement("p");e.innerHTML=t.innerHTML,n.appendChild(e)}else e.forEach((e=>{const t=document.createElement("p");t.innerHTML=e.innerHTML,n.appendChild(t)}))}const a=n.querySelector("p:last-of-type")||n;return r.forEach(((e,t)=>{const n=document.createElement("a");n.href=`#${e}`,n.title="return to article",n.className="footnote-backref",n.innerHTML="\u21a9",t<r.length-1&&(n.innerHTML+=" "),a.appendChild(n)})),n}collectFootnotes(e){const t={};let r=1;const n=new Set;return e.querySelectorAll(a.FOOTNOTE_LIST_SELECTORS).forEach((e=>{if(e.matches('div.footnote[data-component-name="FootnoteToDOM"]')){const a=e.querySelector("a.footnote-number"),o=e.querySelector(".footnote-content");if(a&&o){const e=a.id.replace("footnote-","").toLowerCase();e&&!n.has(e)&&(t[r]={content:o,originalId:e,refs:[]},n.add(e),r++)}return}e.querySelectorAll('li, div[role="listitem"]').forEach((e=>{var a,o,i,s;let l="",c=null;const u=e.querySelector(".citations");if(null===(a=null==u?void 0:u.id)||void 0===a?void 0:a.toLowerCase().startsWith("r")){l=u.id.toLowerCase();const e=u.querySelector(".citation-content");e&&(c=e)}else{if(e.id.toLowerCase().startsWith("bib.bib"))l=e.id.replace("bib.bib","").toLowerCase();else if(e.id.toLowerCase().startsWith("fn:"))l=e.id.replace("fn:","").toLowerCase();else if(e.id.toLowerCase().startsWith("fn"))l=e.id.replace("fn","").toLowerCase();else if(e.hasAttribute("data-counter"))l=(null===(i=null===(o=e.getAttribute("data-counter"))||void 0===o?void 0:o.replace(/\.$/,""))||void 0===i?void 0:i.toLowerCase())||"";else{const t=null===(s=e.id.split("/").pop())||void 0===s?void 0:s.match(/cite_note-(.+)/);l=t?t[1].toLowerCase():e.id.toLowerCase()}c=e}l&&!n.has(l)&&(t[r]={content:c||e,originalId:l,refs:[]},n.add(l),r++)}))})),t}findOuterFootnoteContainer(e){let t=e,r=e.parentElement;for(;r&&("span"===r.tagName.toLowerCase()||"sup"===r.tagName.toLowerCase());)t=r,r=r.parentElement;return t}createFootnoteReference(e,t){const r=document.createElement("sup");r.id=t;const n=document.createElement("a");return n.href=`#fn:${e}`,n.textContent=e,r.appendChild(n),r}standardizeFootnotes(e){const t=this.collectFootnotes(e),r=e.querySelectorAll(a.FOOTNOTE_INLINE_REFERENCES),n=new Map;r.forEach((e=>{var r,a,o,i;if(!(e instanceof HTMLElement))return;let s="",l="";if(e.matches('a[id^="ref-link"]'))s=(null===(r=e.textContent)||void 0===r?void 0:r.trim())||"";else if(e.matches('a[role="doc-biblioref"]')){const t=e.getAttribute("data-xml-rid");if(t)s=t;else{const t=e.getAttribute("href");(null==t?void 0:t.startsWith("#core-R"))&&(s=t.replace("#core-",""))}}else if(e.matches("a.footnote-anchor, span.footnote-hovercard-target a")){const t=(null===(a=e.id)||void 0===a?void 0:a.replace("footnote-anchor-",""))||"";t&&(s=t.toLowerCase())}else if(e.matches("cite.ltx_cite")){const t=e.querySelector("a");if(t){const e=t.getAttribute("href");if(e){const t=null===(o=e.split("/").pop())||void 0===o?void 0:o.match(/bib\.bib(\d+)/);t&&(s=t[1].toLowerCase())}}}else if(e.matches("sup.reference")){const t=e.querySelectorAll("a");Array.from(t).forEach((e=>{var t;const r=e.getAttribute("href");if(r){const e=null===(t=r.split("/").pop())||void 0===t?void 0:t.match(/(?:cite_note|cite_ref)-(.+)/);e&&(s=e[1].toLowerCase())}}))}else if(e.matches('sup[id^="fnref:"]'))s=e.id.replace("fnref:","").toLowerCase();else if(e.matches('sup[id^="fnr"]'))s=e.id.replace("fnr","").toLowerCase();else if(e.matches("span.footnote-reference"))s=e.getAttribute("data-footnote-id")||"";else if(e.matches("span.footnote-link"))s=e.getAttribute("data-footnote-id")||"",l=e.getAttribute("data-footnote-content")||"";else if(e.matches("a.citation"))s=(null===(i=e.textContent)||void 0===i?void 0:i.trim())||"",l=e.getAttribute("href")||"";else if(e.matches('a[id^="fnref"]'))s=e.id.replace("fnref","").toLowerCase();else{const t=e.getAttribute("href");if(t){const e=t.replace(/^[#]/,"");s=e.toLowerCase()}}if(s){const r=Object.entries(t).find((([e,t])=>t.originalId===s.toLowerCase()));if(r){const[t,a]=r,o=a.refs.length>0?`fnref:${t}-${a.refs.length+1}`:`fnref:${t}`;a.refs.push(o);const i=this.findOuterFootnoteContainer(e);if("sup"===i.tagName.toLowerCase()){n.has(i)||n.set(i,[]);n.get(i).push(this.createFootnoteReference(t,o))}else i.replaceWith(this.createFootnoteReference(t,o))}}})),n.forEach(((e,t)=>{if(e.length>0){const r=document.createDocumentFragment();e.forEach(((e,t)=>{const n=e.querySelector("a");if(n){const t=document.createElement("sup");t.id=e.id,t.appendChild(n.cloneNode(!0)),r.appendChild(t)}})),t.replaceWith(r)}}));const o=document.createElement("footnotes");o.className="footnotes";const i=document.createElement("ol");Object.entries(t).forEach((([e,t])=>{const r=this.createFootnoteItem(parseInt(e),t.content,t.refs);i.appendChild(r)}));e.querySelectorAll(a.FOOTNOTE_LIST_SELECTORS).forEach((e=>e.remove())),i.children.length>0&&(o.appendChild(i),e.appendChild(o))}handleLazyImages(e){let t=0;e.querySelectorAll("img[data-src], img[data-srcset]").forEach((e=>{if(!(e instanceof HTMLImageElement))return;const r=e.getAttribute("data-src");r&&!e.src&&(e.src=r,t++);const n=e.getAttribute("data-srcset");n&&!e.srcset&&(e.srcset=n,t++),e.classList.remove("lazy","lazyload"),e.removeAttribute("data-ll-status"),e.removeAttribute("data-src"),e.removeAttribute("data-srcset")})),this._log("Processed lazy images:",t)}standardizeElements(e){let t=0;o.forEach((r=>{e.querySelectorAll(r.selector).forEach((e=>{if(r.transform){const n=r.transform(e);e.replaceWith(n),t++}}))}));e.querySelectorAll("lite-youtube").forEach((e=>{const r=e.getAttribute("videoid");if(!r)return;const n=document.createElement("iframe");n.width="560",n.height="315",n.src=`https://www.youtube.com/embed/${r}`,n.title=e.getAttribute("videotitle")||"YouTube video player",n.frameBorder="0",n.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",n.setAttribute("allowfullscreen",""),e.replaceWith(n),t++})),this._log("Converted embedded elements:",t)}findSmallImages(e){const t=new Set,r=/scale\(([\d.]+)\)/,n=performance.now();let a=0;const o=[...Array.from(e.getElementsByTagName("img")),...Array.from(e.getElementsByTagName("svg"))].filter((e=>{if(e instanceof HTMLImageElement){return!(e.classList.contains("lazy")||e.classList.contains("lazyload")||e.classList.contains("latex")||e.hasAttribute("decoding")||e.hasAttribute("data-src")||e.hasAttribute("data-srcset"))}return!0}));if(0===o.length)return t;const i=o.map((e=>({element:e,naturalWidth:e instanceof HTMLImageElement?e.naturalWidth:0,naturalHeight:e instanceof HTMLImageElement?e.naturalHeight:0,attrWidth:parseInt(e.getAttribute("width")||"0"),attrHeight:parseInt(e.getAttribute("height")||"0")})));for(let e=0;e<i.length;e+=50){const n=i.slice(e,e+50);try{const e=n.map((({element:e})=>window.getComputedStyle(e))),o=n.map((({element:e})=>e.getBoundingClientRect()));n.forEach(((n,i)=>{var s;try{const l=e[i],c=o[i],u=l.transform,d=u?parseFloat((null===(s=u.match(r))||void 0===s?void 0:s[1])||"1"):1,p=[n.naturalWidth,n.attrWidth,parseInt(l.width)||0,c.width*d].filter((e=>"number"==typeof e&&e>0)),m=[n.naturalHeight,n.attrHeight,parseInt(l.height)||0,c.height*d].filter((e=>"number"==typeof e&&e>0));if(p.length>0&&m.length>0){const e=Math.min(...p),r=Math.min(...m);if(e<33||r<33){const e=this.getElementIdentifier(n.element);e&&(t.add(e),a++)}}}catch(e){this.debug&&console.warn("Defuddle: Failed to process element dimensions:",e)}}))}catch(e){this.debug&&console.warn("Defuddle: Failed to process batch:",e)}}const s=performance.now();return this._log("Found small elements:",{count:a,totalElements:o.length,processingTime:`${(s-n).toFixed(2)}ms`}),t}removeSmallImages(e,t){let r=0;["img","svg"].forEach((n=>{const a=e.getElementsByTagName(n);Array.from(a).forEach((e=>{const n=this.getElementIdentifier(e);n&&t.has(n)&&(e.remove(),r++)}))})),this._log("Removed small elements:",r)}getElementIdentifier(e){if(e instanceof HTMLImageElement){const t=e.getAttribute("data-src");if(t)return`src:${t}`;const r=e.src||"",n=e.srcset||"",a=e.getAttribute("data-srcset");if(r)return`src:${r}`;if(n)return`srcset:${n}`;if(a)return`srcset:${a}`}const t=e.id||"",r=e.className||"",n=e instanceof SVGElement&&e.getAttribute("viewBox")||"";return t?`id:${t}`:n?`viewBox:${n}`:r?`class:${r}`:null}findMainContent(e){const t=[];return a.ENTRY_POINT_ELEMENTS.forEach(((r,n)=>{e.querySelectorAll(r).forEach((e=>{let r=10*(a.ENTRY_POINT_ELEMENTS.length-n);r+=this.scoreElement(e),t.push({element:e,score:r})}))})),0===t.length?this.findContentByScoring(e):(t.sort(((e,t)=>t.score-e.score)),this.debug&&this._log("Content candidates:",t.map((e=>({element:e.element.tagName,selector:this.getElementSelector(e.element),score:e.score})))),t[0].element)}findContentByScoring(e){const t=this.scoreElements(e);return t.length>0?t[0].element:null}getElementSelector(e){const t=[];let r=e;for(;r&&r!==this.doc.documentElement;){let e=r.tagName.toLowerCase();r.id?e+="#"+r.id:r.className&&"string"==typeof r.className&&(e+="."+r.className.trim().split(/\s+/).join(".")),t.unshift(e),r=r.parentElement}return t.join(" > ")}scoreElements(e){const t=[];return a.BLOCK_ELEMENTS.forEach((r=>{Array.from(e.getElementsByTagName(r)).forEach((e=>{const r=this.scoreElement(e);r>0&&t.push({score:r,element:e})}))})),t.sort(((e,t)=>t.score-e.score))}scoreElement(e){let t=0;e.className&&"string"==typeof e.className&&e.className.toLowerCase(),e.id&&e.id.toLowerCase();const r=e.textContent||"",n=r.split(/\s+/).length;t+=Math.min(Math.floor(n/100),3);const a=e.getElementsByTagName("a"),o=Array.from(a).reduce(((e,t)=>{var r;return e+((null===(r=t.textContent)||void 0===r?void 0:r.length)||0)}),0);(r.length?o/r.length:0)>.5&&(t-=10);t+=e.getElementsByTagName("p").length;const i=e.getElementsByTagName("img").length;return t+=Math.min(3*i,9),t}}},640:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_LANGUAGES=t.ALLOWED_ATTRIBUTES_DEBUG=t.ALLOWED_ATTRIBUTES=t.ALLOWED_EMPTY_ELEMENTS=t.FOOTNOTE_LIST_SELECTORS=t.FOOTNOTE_INLINE_REFERENCES=t.PARTIAL_SELECTORS=t.EXACT_SELECTORS=t.HIDDEN_ELEMENT_SELECTORS=t.INLINE_ELEMENTS=t.PRESERVE_ELEMENTS=t.BLOCK_ELEMENTS=t.MOBILE_WIDTH=t.ENTRY_POINT_ELEMENTS=void 0,t.ENTRY_POINT_ELEMENTS=["article",'[role="article"]',".post-content",".article-content","#article-content",".content-article","main",'[role="main"]',"body"],t.MOBILE_WIDTH=600,t.BLOCK_ELEMENTS=["div","section","article","main"],t.PRESERVE_ELEMENTS=new Set(["pre","code","table","thead","tbody","tr","td","th","ul","ol","li","dl","dt","dd","figure","figcaption","picture","details","summary","blockquote","form","fieldset"]),t.INLINE_ELEMENTS=new Set(["a","span","strong","em","i","b","u","code","br","small","sub","sup","mark","del","ins","q","abbr","cite","time"]),t.HIDDEN_ELEMENT_SELECTORS=["[hidden]",'[style*="visibility: hidden"]','[style*="visibility:hidden"]',".hidden",".invisible"].join(","),t.EXACT_SELECTORS=["noscript",'script:not([type^="math/"])',"style","meta","link",'.ad:not([class*="gradient"])','[class^="ad-" i]','[class$="-ad" i]','[id^="ad-" i]','[id$="-ad" i]','[role="banner" i]',".promo",".Promo","#barrier-page",'[id="comments" i]',"header",".header","#header","nav",".navigation","#navigation",'[role="navigation" i]','[role="dialog" i]','[role*="complementary" i]','[class*="pagination" i]',".menu","#menu","#siteSub",".author",".Author",".contributor",".date","[data-date]",".meta",".tags",".toc",".Toc","#toc","#title","#Title","#articleTag",'[href*="/category"]','[href*="/categories"]','[href*="/tag/"]','[href*="/tags/"]','[href*="/topics"]','[href*="author"]','[href="#top"]','[href="#Top"]','[href="#site-content"]','[src*="author"]',"footer","aside","button","canvas","dialog","fieldset","form",'input:not([type="checkbox"])',"label","option","select","textarea","time","instaread-player",'iframe:not([src*="youtube"]):not([src*="youtu.be"]):not([src*="vimeo"]):not([src*="twitter"])','[class="logo" i]',"#logo","#Logo","#newsletter","#Newsletter",".noprint",'[data-link-name*="skip" i]','[data-print-layout="hide" i]','[data-block="donotprint" i]','[class*="clickable-icon" i]','li span[class*="ltx_tag" i][class*="ltx_tag_item" i]','a[href^="#"][class*="anchor" i]','a[href^="#"][class*="ref" i]','[data-container*="most-viewed" i]',".sidebar",".Sidebar","#sidebar","#Sidebar","#sitesub",".gutter","#primaryaudio","#NYT_ABOVE_MAIN_CONTENT_REGION",'[data-testid="photoviewer-children-figure"] > span',"table.infobox",".pencraft:not(.pc-display-contents)",'[data-optimizely="related-articles-section" i]'],t.PARTIAL_SELECTORS=["access-wall","activitypub","actioncall","appendix","avatar","advert","ad-placement","_ad_","allterms","alert-box","around-the-web","article-bottom-section","article-bottom","article-citation","article__copy","article_date","article-end ","article_header","article-header","article__header","article__info","article-info","article-meta","article_meta","article__meta","article-subject","article_subject","article-snippet","article-separator","article--share","article--topics","articletags","article-tags","article_tags","article-title","article_title","articletopics","article-topics","article-type","article--lede","articlewell","associated-people","audio-card","authored-by","author-box","author-info","author-name","author-bio","author-mini-bio","back-to-top","backlinks-section","banner","bio-block","blog-pager","bookmark-","-bookmark","bottom-of-article","brand-bar","breadcrumb","button-wrapper","btn-","-btn","byline","captcha","card-text","card-media","cat_header","catlinks","chapter-list","collections","comments","commentbox","comment-count","comment-content","comment-form","comment-number","comment-respond","comment-thread","complementary","consent","content-card","content-topics","contentpromo","context-bar","context-widget","core-collateral","creative-commons_","_cta","-cta","cta-","cta_","current-issue","custom-list-number","dateline","dateheader","date-header","date_header-","disclaimer","disclosure","discussion","discuss_","disqus","donate","dropdown","eletters","emailsignup","engagement-widget","entry-author-info","entry-categories","entry-date","entry-meta","entry-title","entry-utility","eyebrow","expand-reduce","externallinkembedwrapper","extra-services","extra-title","facebook","favorite","feedback","feed-links","field-site-sections","fixed","floating-vid","follow","footer","footnote-back","footnoteback","for-you","frontmatter","further-reading","gist-meta","google","goog-","graph-view","header-logo","header-pattern","hero-list","hide-for-print","hide-print","hide-when-no-script","hidden-sidenote","hidden-accessibility","interlude","interaction","jumplink","jump-to-","kicker","labstab","-labels","language-name","latest-content","-ledes-","-license","link-box","links-grid","links-title","listing-dynamic-terms","list-tags","listinks","loading","loa-info","logo_container","ltx_role_refnum","ltx_tag_bibitem","ltx_error","marketing","media-inquiry","menu-","metadata","might-like","more-about","_modal","-modal","more-","morenews","morestories","move-helper","mw-editsection","mw-cite-backlink","mw-indicators","mw-jump-link","nav-","nav_","navbar","next-","newsgallery","news-story-title","newsletter_","newsletter-form","newsletter-signup","newslettersignup","newsletterwidget","newsletterwrapper","not-found","nomobile","noprint","originally-published","outline-view","overlay","page-title","paywall_message","-partners","plea","popular","pop-up","popover","post-bottom","post__category","postcomment","postdate","post-author","post-date","post_date","post-feeds","postinfo","post-info","post_info","post-inline-date","post-links","post-meta","postmeta","postsnippet","post_snippet","post-snippet","posttitle","post-title","post_title","post__title","posttax","post-tax","post_tax","posttag","post_tag","post-tag","prevnext","previousnext","press-inquiries","print-none","print-header","profile","promo_article","promo-box","pubdate","pub_date","pub-date","publication-date","publicationName","qr-code","qr_code","_rail","readmore","read-next","read_next","read_time","read-time","reading_time","reading-time","reading-list","recent-","recent-articles","recentpost","recent_post","recent-post","recommend","redirectedfrom","recirc","register","related","relevant","reversefootnote","screen-reader-text","share-box","sharedaddy","share-icons","sharelinks","share-section","sidebartitle","sidebar_","sidebar-content","similar-","similar_","similars-","sideitems","sidebar-author","sidebar-item","side-box","site-index","site-header","site-logo","site-name","skip-content","c-skip-link","_skip-link","slug-wrap","social","speechify-ignore","sponsor","springercitation","_stats","storyreadtime","storypublishdate","subject-label","subscribe","_tags","tags__item","tag_list","taxonomy","table-content","table-of-contents","tabs-","terminaltout","time-rubric","timestamp","tip_off","tiptout","-tout-","-toc","toggle-caption","topic-list","toolbar","tooltip","top-wrapper","tree-item","trending","trust-feat","trust-badge","twitter","u-hide","visually-hidden","welcomebox"],t.FOOTNOTE_INLINE_REFERENCES=["sup.reference","cite.ltx_cite",'sup[id^="fnr"]','sup[id^="fnref:"]',"span.footnote-link","a.citation",'a[id^="ref-link"]','a[href^="#fn"]','a[href^="#cite"]','a[href^="#reference"]','a[href^="#footnote"]','a[href^="#r"]','a[href^="#b"]','a[href*="cite_note"]','a[href*="cite_ref"]',"a.footnote-anchor","span.footnote-hovercard-target a",'a[role="doc-biblioref"]','a[id^="fnref"]','a[id^="ref-link"]'].join(","),t.FOOTNOTE_LIST_SELECTORS=["div.footnote ol","div.footnotes ol",'div[role="doc-endnotes"]','div[role="doc-footnotes"]',"ol.footnotes-list","ol.footnotes","ol.references",'ol[class*="article-references"]',"section.footnotes ol",'section[role="doc-endnotes"]','section[role="doc-footnotes"]','section[role="doc-bibliography"]',"ul.footnotes-list","ul.ltx_biblist",'div.footnote[data-component-name="FootnoteToDOM"]'].join(","),t.ALLOWED_EMPTY_ELEMENTS=new Set(["area","audio","base","br","circle","col","defs","ellipse","embed","figure","g","hr","iframe","img","input","line","link","mask","meta","object","param","path","pattern","picture","polygon","polyline","rect","source","stop","svg","td","th","track","use","video","wbr"]),t.ALLOWED_ATTRIBUTES=new Set(["alt","allow","allowfullscreen","aria-label","checked","colspan","controls","data-latex","data-src","data-srcset","data-lang","dir","display","frameborder","headers","height","href","lang","role","rowspan","src","srcset","title","type","width","accent","accentunder","align","columnalign","columnlines","columnspacing","columnspan","data-mjx-texclass","depth","displaystyle","fence","frame","framespacing","linethickness","lspace","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","rowalign","rowlines","rowspacing","rowspan","rspace","scriptlevel","separator","stretchy","symmetric","voffset","xmlns"]),t.ALLOWED_ATTRIBUTES_DEBUG=new Set(["class","id"]),t.SUPPORTED_LANGUAGES=new Set(["markup","html","xml","svg","mathml","ssml","atom","rss","javascript","js","jsx","typescript","ts","tsx","webassembly","wasm","python","java","csharp","cs","dotnet","aspnet","cpp","c++","c","objc","ruby","rb","php","golang","rust","swift","kotlin","scala","dart","bash","shell","sh","powershell","batch","json","jsonp","yaml","yml","toml","dockerfile","gitignore","sql","mysql","postgresql","graphql","mongodb","sparql","markdown","md","latex","tex","asciidoc","adoc","jsdoc","haskell","hs","elm","elixir","erlang","ocaml","fsharp","scheme","lisp","elisp","clojure","matlab","fortran","cobol","pascal","perl","lua","julia","groovy","crystal","nim","zig","regex","gradle","cmake","makefile","nix","terraform","solidity","glsl","hlsl","nasm","masm","armasm","gdscript","unrealscript","abap","actionscript","ada","agda","antlr4","applescript","arduino","coffeescript","django","erlang","fortran","haxe","idris","kotlin","livescript","matlab","nginx","pascal","prolog","puppet","scala","scheme","tcl","verilog","vhdl"])},648:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mathSelectors=t.isBlockDisplay=t.getBasicLatexFromElement=t.getMathMLFromElement=void 0;t.getMathMLFromElement=e=>{if("math"===e.tagName.toLowerCase()){const t="block"===e.getAttribute("display");return{mathml:e.outerHTML,latex:e.getAttribute("alttext")||null,isBlock:t}}const t=e.getAttribute("data-mathml");if(t){const e=document.createElement("div");e.innerHTML=t;const r=e.querySelector("math");if(r){const e="block"===r.getAttribute("display");return{mathml:r.outerHTML,latex:r.getAttribute("alttext")||null,isBlock:e}}}const r=e.querySelector(".MJX_Assistive_MathML, mjx-assistive-mml");if(r){const e=r.querySelector("math");if(e){const t=e.getAttribute("display"),n=r.getAttribute("display"),a="block"===t||"block"===n;return{mathml:e.outerHTML,latex:e.getAttribute("alttext")||null,isBlock:a}}}const n=e.querySelector(".katex-mathml math");return n?{mathml:n.outerHTML,latex:null,isBlock:!1}:null};t.getBasicLatexFromElement=e=>{var t,r,n;const a=e.getAttribute("data-latex");if(a)return a;if(e instanceof HTMLImageElement&&e.classList.contains("latex")){const t=e.getAttribute("alt");if(t)return t;const r=e.getAttribute("src");if(r){const e=r.match(/latex\.php\?latex=([^&]+)/);if(e)return decodeURIComponent(e[1]).replace(/\+/g," ").replace(/%5C/g,"\\")}}const o=e.querySelector('annotation[encoding="application/x-tex"]');if(null==o?void 0:o.textContent)return o.textContent.trim();if(e.matches(".katex")){const t=e.querySelector('.katex-mathml annotation[encoding="application/x-tex"]');if(null==t?void 0:t.textContent)return t.textContent.trim()}if(e.matches('script[type="math/tex"]')||e.matches('script[type="math/tex; mode=display"]'))return(null===(t=e.textContent)||void 0===t?void 0:t.trim())||null;if(e.parentElement){const t=e.parentElement.querySelector('script[type="math/tex"], script[type="math/tex; mode=display"]');if(t)return(null===(r=t.textContent)||void 0===r?void 0:r.trim())||null}return e.getAttribute("alt")||(null===(n=e.textContent)||void 0===n?void 0:n.trim())||null};t.isBlockDisplay=e=>{if("block"===e.getAttribute("display"))return!0;const t=e.className.toLowerCase();if(t.includes("display")||t.includes("block"))return!0;if(e.closest('.katex-display, .MathJax_Display, [data-display="block"]'))return!0;const r=e.previousElementSibling;if("p"===(null==r?void 0:r.tagName.toLowerCase()))return!0;if(e.matches(".mwe-math-fallback-image-display"))return!0;if(e.matches(".katex"))return null!==e.closest(".katex-display");if(e.hasAttribute("display"))return"true"===e.getAttribute("display");if(e.matches('script[type="math/tex; mode=display"]'))return!0;if(e.hasAttribute("display"))return"true"===e.getAttribute("display");const n=e.closest("[display]");return!!n&&"true"===n.getAttribute("display")},t.mathSelectors=['img.latex[src*="latex.php"]',"span.MathJax","mjx-container",'script[type="math/tex"]','script[type="math/tex; mode=display"]','.MathJax_Preview + script[type="math/tex"]',".MathJax_Display",".MathJax_SVG",".MathJax_MathML",".mwe-math-element",".mwe-math-fallback-image-inline",".mwe-math-fallback-image-display",".mwe-math-mathml-inline",".mwe-math-mathml-display",".katex",".katex-display",".katex-mathml",".katex-html","[data-katex]",'script[type="math/katex"]',"math","[data-math]","[data-latex]","[data-tex]",'script[type^="math/"]','annotation[encoding="application/x-tex"]'].join(",")},914:e=>{"use strict";class t{constructor(e,r){let n,a=" "+e;const o=r&&r.loc;if(o&&o.start<=o.end){const e=o.lexer.input;n=o.start;const t=o.end;n===e.length?a+=" at end of input: ":a+=" at position "+(n+1)+": \n";const r=e.slice(n,t).replace(/[^]/g,"$&\u0332");let i,s;i=n>15?"\u2026"+e.slice(n-15,n):e.slice(0,n),s=t+15<e.length?e.slice(t,t+15)+"\u2026":e.slice(t),a+=i+r+s}const i=new Error(a);return i.name="ParseError",i.__proto__=t.prototype,i.position=n,i}}t.prototype.__proto__=Error.prototype;const r=/([A-Z])/g,n={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},a=/[&><"']/g;const o=function(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?o(e.body[0]):e:"font"===e.type?o(e.body):e};var i={deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(a,(e=>n[e]))},hyphenate:function(e){return e.replace(r,"-$1").toLowerCase()},getBaseElem:o,isCharacterBox:function(e){const t=o(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){const t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"},round:function(e){return+e.toFixed(4)}};class s{constructor(e){e=e||{},this.displayMode=i.deflt(e.displayMode,!1),this.annotate=i.deflt(e.annotate,!1),this.leqno=i.deflt(e.leqno,!1),this.throwOnError=i.deflt(e.throwOnError,!1),this.errorColor=i.deflt(e.errorColor,"#b22222"),this.macros=e.macros||{},this.wrap=i.deflt(e.wrap,"tex"),this.xml=i.deflt(e.xml,!1),this.colorIsTextColor=i.deflt(e.colorIsTextColor,!1),this.strict=i.deflt(e.strict,!1),this.trust=i.deflt(e.trust,!1),this.maxSize=void 0===e.maxSize?[1/0,1/0]:Array.isArray(e.maxSize)?e.maxSize:[1/0,1/0],this.maxExpand=Math.max(0,i.deflt(e.maxExpand,1e3))}isTrusted(e){if(e.url&&!e.protocol){const t=i.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}const t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}const l={},c={};function u({type:e,names:t,props:r,handler:n,mathmlBuilder:a}){const o={type:e,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:n};for(let e=0;e<t.length;++e)l[t[e]]=o;e&&a&&(c[e]=a)}function d({type:e,mathmlBuilder:t}){u({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},mathmlBuilder:t})}const p=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},m=function(e){return"ordgroup"===e.type?e.body:[e]};class h{constructor(e){this.children=e,this.classes=[],this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){const e=document.createDocumentFragment();for(let t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){let e="";for(let t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map((e=>e.toText())).join("")}}const f=function(e){return e.filter((e=>e)).join(" ")},g=function(e,t){this.classes=e||[],this.attributes={},this.style=t||{}},x=function(e){const t=document.createElement(e);t.className=f(this.classes);for(const e in this.style)Object.prototype.hasOwnProperty.call(this.style,e)&&(t.style[e]=this.style[e]);for(const e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e<this.children.length;e++)t.appendChild(this.children[e].toNode());return t},b=function(e){let t=`<${e}`;this.classes.length&&(t+=` class="${i.escape(f(this.classes))}"`);let r="";for(const e in this.style)Object.prototype.hasOwnProperty.call(this.style,e)&&(r+=`${i.hyphenate(e)}:${this.style[e]};`);r&&(t+=` style="${r}"`);for(const e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&(t+=` ${e}="${i.escape(this.attributes[e])}"`);t+=">";for(let e=0;e<this.children.length;e++)t+=this.children[e].toMarkup();return t+=`</${e}>`,t};class w{constructor(e,t,r){g.call(this,e,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}toNode(){return x.call(this,"span")}toMarkup(){return b.call(this,"span")}}let y=class{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return i.escape(this.text)}};class v{constructor(e,t,r){this.href=e,this.classes=t,this.children=r||[]}toNode(){const e=document.createElement("a");e.setAttribute("href",this.href),this.classes.length>0&&(e.className=f(this.classes));for(let t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){let e=`<a href='${i.escape(this.href)}'`;this.classes.length>0&&(e+=` class="${i.escape(f(this.classes))}"`),e+=">";for(let t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e+="</a>",e}}class A{constructor(e,t,r){this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return this.classes.includes(e)}toNode(){const e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(const t in this.style)Object.prototype.hasOwnProperty.call(this.style,t)&&(e.style[t]=this.style[t]);return e}toMarkup(){let e=`<img src='${this.src}' alt='${this.alt}'`,t="";for(const e in this.style)Object.prototype.hasOwnProperty.call(this.style,e)&&(t+=`${i.hyphenate(e)}:${this.style[e]};`);return t&&(e+=` style="${i.escape(t)}"`),e+=">",e}}class E{constructor(e,t,r,n){this.type=e,this.attributes={},this.children=t||[],this.classes=r||[],this.style=n||{},this.label=""}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}setLabel(e){this.label=e}toNode(){const e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=f(this.classes));for(const t in this.style)Object.prototype.hasOwnProperty.call(this.style,t)&&(e.style[t]=this.style[t]);for(let t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){let e="<"+this.type;for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=i.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=` class="${i.escape(f(this.classes))}"`);let t="";for(const e in this.style)Object.prototype.hasOwnProperty.call(this.style,e)&&(t+=`${i.hyphenate(e)}:${this.style[e]};`);t&&(e+=` style="${t}"`),e+=">";for(let t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map((e=>e.toText())).join("")}}class _{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return i.escape(this.toText())}toText(){return this.text}}const C=e=>{let t;return 1===e.length&&"mrow"===e[0].type?(t=e.pop(),t.type="mstyle"):t=new E("mstyle",e),t};var T={MathNode:E,TextNode:_,newDocumentFragment:function(e){return new h(e)}};const q=e=>{let t=0;if(e.body)for(const r of e.body)t+=q(r);else if("supsub"===e.type)t+=q(e.base),e.sub&&(t+=.7*q(e.sub)),e.sup&&(t+=.7*q(e.sup));else if("mathord"===e.type||"textord"===e.type)for(const r of e.text.split("")){const e=r.codePointAt(0);t+=96<e&&e<123||944<e&&e<970?.56:47<e&&e<58?.5:.92}else t+=1;return t},N={widehat:"^",widecheck:"\u02c7",widetilde:"~",wideparen:"\u23dc",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",overgroup:"\u23e0",overparen:"\u23dc",undergroup:"\u23e1",underparen:"\u23dd",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xrightleftarrows:"\u21c4",yields:"\u2192",yieldsLeft:"\u2190",mesomerism:"\u2194",longrightharpoonup:"\u21c0",longleftharpoondown:"\u21bd",eqrightharpoonup:"\u21c0",eqleftharpoondown:"\u21bd","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},k=function(e){const t=new T.TextNode(N[e.slice(1)]),r=new T.MathNode("mo",[t]);return r.setAttribute("stretchy","true"),r},S=["\\widetilde","\\widehat","\\widecheck","\\utilde"];var M=k,L=e=>{const t=k(e.label);if(S.includes(e.label)){const r=q(e.base);1<r&&r<1.6?t.classes.push("tml-crooked-2"):1.6<=r&&r<2.5?t.classes.push("tml-crooked-3"):2.5<=r&&t.classes.push("tml-crooked-4")}return t};const O={bin:1,close:1,inner:1,open:1,punct:1,rel:1},D={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},B={math:{},text:{}};function F(e,t,r,n,a){B[e][n]={group:t,replace:r},a&&r&&(B[e][r]=B[e][n])}const $="math",I="text",P="accent-token",R="bin",j="close",z="inner",U="mathord",G="op-token",H="open",V="punct",W="rel",X="spacing",Z="textord";F($,W,"\u2261","\\equiv",!0),F($,W,"\u227a","\\prec",!0),F($,W,"\u227b","\\succ",!0),F($,W,"\u223c","\\sim",!0),F($,W,"\u27c2","\\perp",!0),F($,W,"\u2aaf","\\preceq",!0),F($,W,"\u2ab0","\\succeq",!0),F($,W,"\u2243","\\simeq",!0),F($,W,"\u224c","\\backcong",!0),F($,W,"|","\\mid",!0),F($,W,"\u226a","\\ll",!0),F($,W,"\u226b","\\gg",!0),F($,W,"\u224d","\\asymp",!0),F($,W,"\u2225","\\parallel"),F($,W,"\u2323","\\smile",!0),F($,W,"\u2291","\\sqsubseteq",!0),F($,W,"\u2292","\\sqsupseteq",!0),F($,W,"\u2250","\\doteq",!0),F($,W,"\u2322","\\frown",!0),F($,W,"\u220b","\\ni",!0),F($,W,"\u220c","\\notni",!0),F($,W,"\u221d","\\propto",!0),F($,W,"\u22a2","\\vdash",!0),F($,W,"\u22a3","\\dashv",!0),F($,W,"\u220b","\\owns"),F($,W,"\u2258","\\arceq",!0),F($,W,"\u2259","\\wedgeq",!0),F($,W,"\u225a","\\veeeq",!0),F($,W,"\u225b","\\stareq",!0),F($,W,"\u225d","\\eqdef",!0),F($,W,"\u225e","\\measeq",!0),F($,W,"\u225f","\\questeq",!0),F($,W,"\u2260","\\ne",!0),F($,W,"\u2260","\\neq"),F($,W,"\u2a75","\\eqeq",!0),F($,W,"\u2a76","\\eqeqeq",!0),F($,W,"\u2237","\\dblcolon",!0),F($,W,"\u2254","\\coloneqq",!0),F($,W,"\u2255","\\eqqcolon",!0),F($,W,"\u2239","\\eqcolon",!0),F($,W,"\u2a74","\\Coloneqq",!0),F($,V,".","\\ldotp"),F($,V,"\xb7","\\cdotp"),F($,Z,"#","\\#"),F(I,Z,"#","\\#"),F($,Z,"&","\\&"),F(I,Z,"&","\\&"),F($,Z,"\u2135","\\aleph",!0),F($,Z,"\u2200","\\forall",!0),F($,Z,"\u210f","\\hbar",!0),F($,Z,"\u2203","\\exists",!0),F($,R,"\u2207","\\nabla",!0),F($,Z,"\u266d","\\flat",!0),F($,Z,"\u2113","\\ell",!0),F($,Z,"\u266e","\\natural",!0),F($,Z,"\u212b","\\Angstrom",!0),F(I,Z,"\u212b","\\Angstrom",!0),F($,Z,"\u2663","\\clubsuit",!0),F($,Z,"\u2667","\\varclubsuit",!0),F($,Z,"\u2118","\\wp",!0),F($,Z,"\u266f","\\sharp",!0),F($,Z,"\u2662","\\diamondsuit",!0),F($,Z,"\u2666","\\vardiamondsuit",!0),F($,Z,"\u211c","\\Re",!0),F($,Z,"\u2661","\\heartsuit",!0),F($,Z,"\u2665","\\varheartsuit",!0),F($,Z,"\u2111","\\Im",!0),F($,Z,"\u2660","\\spadesuit",!0),F($,Z,"\u2664","\\varspadesuit",!0),F($,Z,"\u2640","\\female",!0),F($,Z,"\u2642","\\male",!0),F($,Z,"\xa7","\\S",!0),F(I,Z,"\xa7","\\S"),F($,Z,"\xb6","\\P",!0),F(I,Z,"\xb6","\\P"),F(I,Z,"\u263a","\\smiley",!0),F($,Z,"\u263a","\\smiley",!0),F($,Z,"\u2020","\\dag"),F(I,Z,"\u2020","\\dag"),F(I,Z,"\u2020","\\textdagger"),F($,Z,"\u2021","\\ddag"),F(I,Z,"\u2021","\\ddag"),F(I,Z,"\u2021","\\textdaggerdbl"),F($,j,"\u23b1","\\rmoustache",!0),F($,H,"\u23b0","\\lmoustache",!0),F($,j,"\u27ef","\\rgroup",!0),F($,H,"\u27ee","\\lgroup",!0),F($,R,"\u2213","\\mp",!0),F($,R,"\u2296","\\ominus",!0),F($,R,"\u228e","\\uplus",!0),F($,R,"\u2293","\\sqcap",!0),F($,R,"\u2217","\\ast"),F($,R,"\u2294","\\sqcup",!0),F($,R,"\u25ef","\\bigcirc",!0),F($,R,"\u2219","\\bullet",!0),F($,R,"\u2021","\\ddagger"),F($,R,"\u2240","\\wr",!0),F($,R,"\u2a3f","\\amalg"),F($,R,"&","\\And"),F($,R,"\u2afd","\\sslash",!0),F($,W,"\u27f5","\\longleftarrow",!0),F($,W,"\u21d0","\\Leftarrow",!0),F($,W,"\u27f8","\\Longleftarrow",!0),F($,W,"\u27f6","\\longrightarrow",!0),F($,W,"\u21d2","\\Rightarrow",!0),F($,W,"\u27f9","\\Longrightarrow",!0),F($,W,"\u2194","\\leftrightarrow",!0),F($,W,"\u27f7","\\longleftrightarrow",!0),F($,W,"\u21d4","\\Leftrightarrow",!0),F($,W,"\u27fa","\\Longleftrightarrow",!0),F($,W,"\u21a4","\\mapsfrom",!0),F($,W,"\u21a6","\\mapsto",!0),F($,W,"\u27fc","\\longmapsto",!0),F($,W,"\u2197","\\nearrow",!0),F($,W,"\u21a9","\\hookleftarrow",!0),F($,W,"\u21aa","\\hookrightarrow",!0),F($,W,"\u2198","\\searrow",!0),F($,W,"\u21bc","\\leftharpoonup",!0),F($,W,"\u21c0","\\rightharpoonup",!0),F($,W,"\u2199","\\swarrow",!0),F($,W,"\u21bd","\\leftharpoondown",!0),F($,W,"\u21c1","\\rightharpoondown",!0),F($,W,"\u2196","\\nwarrow",!0),F($,W,"\u21cc","\\rightleftharpoons",!0),F($,U,"\u21af","\\lightning",!0),F($,U,"\u220e","\\QED",!0),F($,U,"\u2030","\\permil",!0),F(I,Z,"\u2030","\\permil"),F($,U,"\u2609","\\astrosun",!0),F($,U,"\u263c","\\sun",!0),F($,U,"\u263e","\\leftmoon",!0),F($,U,"\u263d","\\rightmoon",!0),F($,U,"\u2295","\\Earth"),F($,W,"\u226e","\\nless",!0),F($,W,"\u2a87","\\lneq",!0),F($,W,"\u2268","\\lneqq",!0),F($,W,"\u2268\ufe00","\\lvertneqq"),F($,W,"\u22e6","\\lnsim",!0),F($,W,"\u2a89","\\lnapprox",!0),F($,W,"\u2280","\\nprec",!0),F($,W,"\u22e0","\\npreceq",!0),F($,W,"\u22e8","\\precnsim",!0),F($,W,"\u2ab9","\\precnapprox",!0),F($,W,"\u2241","\\nsim",!0),F($,W,"\u2224","\\nmid",!0),F($,W,"\u2224","\\nshortmid"),F($,W,"\u22ac","\\nvdash",!0),F($,W,"\u22ad","\\nvDash",!0),F($,W,"\u22ea","\\ntriangleleft"),F($,W,"\u22ec","\\ntrianglelefteq",!0),F($,W,"\u2284","\\nsubset",!0),F($,W,"\u2285","\\nsupset",!0),F($,W,"\u228a","\\subsetneq",!0),F($,W,"\u228a\ufe00","\\varsubsetneq"),F($,W,"\u2acb","\\subsetneqq",!0),F($,W,"\u2acb\ufe00","\\varsubsetneqq"),F($,W,"\u226f","\\ngtr",!0),F($,W,"\u2a88","\\gneq",!0),F($,W,"\u2269","\\gneqq",!0),F($,W,"\u2269\ufe00","\\gvertneqq"),F($,W,"\u22e7","\\gnsim",!0),F($,W,"\u2a8a","\\gnapprox",!0),F($,W,"\u2281","\\nsucc",!0),F($,W,"\u22e1","\\nsucceq",!0),F($,W,"\u22e9","\\succnsim",!0),F($,W,"\u2aba","\\succnapprox",!0),F($,W,"\u2246","\\ncong",!0),F($,W,"\u2226","\\nparallel",!0),F($,W,"\u2226","\\nshortparallel"),F($,W,"\u22af","\\nVDash",!0),F($,W,"\u22eb","\\ntriangleright"),F($,W,"\u22ed","\\ntrianglerighteq",!0),F($,W,"\u228b","\\supsetneq",!0),F($,W,"\u228b","\\varsupsetneq"),F($,W,"\u2acc","\\supsetneqq",!0),F($,W,"\u2acc\ufe00","\\varsupsetneqq"),F($,W,"\u22ae","\\nVdash",!0),F($,W,"\u2ab5","\\precneqq",!0),F($,W,"\u2ab6","\\succneqq",!0),F($,R,"\u22b4","\\unlhd"),F($,R,"\u22b5","\\unrhd"),F($,W,"\u219a","\\nleftarrow",!0),F($,W,"\u219b","\\nrightarrow",!0),F($,W,"\u21cd","\\nLeftarrow",!0),F($,W,"\u21cf","\\nRightarrow",!0),F($,W,"\u21ae","\\nleftrightarrow",!0),F($,W,"\u21ce","\\nLeftrightarrow",!0),F($,W,"\u25b3","\\vartriangle"),F($,Z,"\u210f","\\hslash"),F($,Z,"\u25bd","\\triangledown"),F($,Z,"\u25ca","\\lozenge"),F($,Z,"\u24c8","\\circledS"),F($,Z,"\xae","\\circledR",!0),F(I,Z,"\xae","\\circledR"),F(I,Z,"\xae","\\textregistered"),F($,Z,"\u2221","\\measuredangle",!0),F($,Z,"\u2204","\\nexists"),F($,Z,"\u2127","\\mho"),F($,Z,"\u2132","\\Finv",!0),F($,Z,"\u2141","\\Game",!0),F($,Z,"\u2035","\\backprime"),F($,Z,"\u2036","\\backdprime"),F($,Z,"\u2037","\\backtrprime"),F($,Z,"\u25b2","\\blacktriangle"),F($,Z,"\u25bc","\\blacktriangledown"),F($,Z,"\u25a0","\\blacksquare"),F($,Z,"\u29eb","\\blacklozenge"),F($,Z,"\u2605","\\bigstar"),F($,Z,"\u2222","\\sphericalangle",!0),F($,Z,"\u2201","\\complement",!0),F($,Z,"\xf0","\\eth",!0),F(I,Z,"\xf0","\xf0"),F($,Z,"\u2571","\\diagup"),F($,Z,"\u2572","\\diagdown"),F($,Z,"\u25a1","\\square"),F($,Z,"\u25a1","\\Box"),F($,Z,"\u25ca","\\Diamond"),F($,Z,"\xa5","\\yen",!0),F(I,Z,"\xa5","\\yen",!0),F($,Z,"\u2713","\\checkmark",!0),F(I,Z,"\u2713","\\checkmark"),F($,Z,"\u2717","\\ballotx",!0),F(I,Z,"\u2717","\\ballotx"),F(I,Z,"\u2022","\\textbullet"),F($,Z,"\u2136","\\beth",!0),F($,Z,"\u2138","\\daleth",!0),F($,Z,"\u2137","\\gimel",!0),F($,Z,"\u03dd","\\digamma",!0),F($,Z,"\u03f0","\\varkappa"),F($,H,"\u231c","\\ulcorner",!0),F($,j,"\u231d","\\urcorner",!0),F($,H,"\u231e","\\llcorner",!0),F($,j,"\u231f","\\lrcorner",!0),F($,W,"\u2266","\\leqq",!0),F($,W,"\u2a7d","\\leqslant",!0),F($,W,"\u2a95","\\eqslantless",!0),F($,W,"\u2272","\\lesssim",!0),F($,W,"\u2a85","\\lessapprox",!0),F($,W,"\u224a","\\approxeq",!0),F($,R,"\u22d6","\\lessdot"),F($,W,"\u22d8","\\lll",!0),F($,W,"\u2276","\\lessgtr",!0),F($,W,"\u22da","\\lesseqgtr",!0),F($,W,"\u2a8b","\\lesseqqgtr",!0),F($,W,"\u2251","\\doteqdot"),F($,W,"\u2253","\\risingdotseq",!0),F($,W,"\u2252","\\fallingdotseq",!0),F($,W,"\u223d","\\backsim",!0),F($,W,"\u22cd","\\backsimeq",!0),F($,W,"\u2ac5","\\subseteqq",!0),F($,W,"\u22d0","\\Subset",!0),F($,W,"\u228f","\\sqsubset",!0),F($,W,"\u227c","\\preccurlyeq",!0),F($,W,"\u22de","\\curlyeqprec",!0),F($,W,"\u227e","\\precsim",!0),F($,W,"\u2ab7","\\precapprox",!0),F($,W,"\u22b2","\\vartriangleleft"),F($,W,"\u22b4","\\trianglelefteq"),F($,W,"\u22a8","\\vDash",!0),F($,W,"\u22ab","\\VDash",!0),F($,W,"\u22aa","\\Vvdash",!0),F($,W,"\u2323","\\smallsmile"),F($,W,"\u2322","\\smallfrown"),F($,W,"\u224f","\\bumpeq",!0),F($,W,"\u224e","\\Bumpeq",!0),F($,W,"\u2267","\\geqq",!0),F($,W,"\u2a7e","\\geqslant",!0),F($,W,"\u2a96","\\eqslantgtr",!0),F($,W,"\u2273","\\gtrsim",!0),F($,W,"\u2a86","\\gtrapprox",!0),F($,R,"\u22d7","\\gtrdot"),F($,W,"\u22d9","\\ggg",!0),F($,W,"\u2277","\\gtrless",!0),F($,W,"\u22db","\\gtreqless",!0),F($,W,"\u2a8c","\\gtreqqless",!0),F($,W,"\u2256","\\eqcirc",!0),F($,W,"\u2257","\\circeq",!0),F($,W,"\u225c","\\triangleq",!0),F($,W,"\u223c","\\thicksim"),F($,W,"\u2248","\\thickapprox"),F($,W,"\u2ac6","\\supseteqq",!0),F($,W,"\u22d1","\\Supset",!0),F($,W,"\u2290","\\sqsupset",!0),F($,W,"\u227d","\\succcurlyeq",!0),F($,W,"\u22df","\\curlyeqsucc",!0),F($,W,"\u227f","\\succsim",!0),F($,W,"\u2ab8","\\succapprox",!0),F($,W,"\u22b3","\\vartriangleright"),F($,W,"\u22b5","\\trianglerighteq"),F($,W,"\u22a9","\\Vdash",!0),F($,W,"\u2223","\\shortmid"),F($,W,"\u2225","\\shortparallel"),F($,W,"\u226c","\\between",!0),F($,W,"\u22d4","\\pitchfork",!0),F($,W,"\u221d","\\varpropto"),F($,W,"\u25c0","\\blacktriangleleft"),F($,W,"\u2234","\\therefore",!0),F($,W,"\u220d","\\backepsilon"),F($,W,"\u25b6","\\blacktriangleright"),F($,W,"\u2235","\\because",!0),F($,W,"\u22d8","\\llless"),F($,W,"\u22d9","\\gggtr"),F($,R,"\u22b2","\\lhd"),F($,R,"\u22b3","\\rhd"),F($,W,"\u2242","\\eqsim",!0),F($,W,"\u2251","\\Doteq",!0),F($,W,"\u297d","\\strictif",!0),F($,W,"\u297c","\\strictfi",!0),F($,R,"\u2214","\\dotplus",!0),F($,R,"\u2216","\\smallsetminus"),F($,R,"\u22d2","\\Cap",!0),F($,R,"\u22d3","\\Cup",!0),F($,R,"\u2a5e","\\doublebarwedge",!0),F($,R,"\u229f","\\boxminus",!0),F($,R,"\u229e","\\boxplus",!0),F($,R,"\u29c4","\\boxslash",!0),F($,R,"\u22c7","\\divideontimes",!0),F($,R,"\u22c9","\\ltimes",!0),F($,R,"\u22ca","\\rtimes",!0),F($,R,"\u22cb","\\leftthreetimes",!0),F($,R,"\u22cc","\\rightthreetimes",!0),F($,R,"\u22cf","\\curlywedge",!0),F($,R,"\u22ce","\\curlyvee",!0),F($,R,"\u229d","\\circleddash",!0),F($,R,"\u229b","\\circledast",!0),F($,R,"\u22ba","\\intercal",!0),F($,R,"\u22d2","\\doublecap"),F($,R,"\u22d3","\\doublecup"),F($,R,"\u22a0","\\boxtimes",!0),F($,R,"\u22c8","\\bowtie",!0),F($,R,"\u22c8","\\Join"),F($,R,"\u27d5","\\leftouterjoin",!0),F($,R,"\u27d6","\\rightouterjoin",!0),F($,R,"\u27d7","\\fullouterjoin",!0),F($,R,"\u2238","\\dotminus",!0),F($,R,"\u27d1","\\wedgedot",!0),F($,R,"\u27c7","\\veedot",!0),F($,R,"\u2a62","\\doublebarvee",!0),F($,R,"\u2a63","\\veedoublebar",!0),F($,R,"\u2a5f","\\wedgebar",!0),F($,R,"\u2a60","\\wedgedoublebar",!0),F($,R,"\u2a54","\\Vee",!0),F($,R,"\u2a53","\\Wedge",!0),F($,R,"\u2a43","\\barcap",!0),F($,R,"\u2a42","\\barcup",!0),F($,R,"\u2a48","\\capbarcup",!0),F($,R,"\u2a40","\\capdot",!0),F($,R,"\u2a47","\\capovercup",!0),F($,R,"\u2a46","\\cupovercap",!0),F($,R,"\u2a4d","\\closedvarcap",!0),F($,R,"\u2a4c","\\closedvarcup",!0),F($,R,"\u2a2a","\\minusdot",!0),F($,R,"\u2a2b","\\minusfdots",!0),F($,R,"\u2a2c","\\minusrdots",!0),F($,R,"\u22bb","\\Xor",!0),F($,R,"\u22bc","\\Nand",!0),F($,R,"\u22bd","\\Nor",!0),F($,R,"\u22bd","\\barvee"),F($,R,"\u2af4","\\interleave",!0),F($,R,"\u29e2","\\shuffle",!0),F($,R,"\u2af6","\\threedotcolon",!0),F($,R,"\u2982","\\typecolon",!0),F($,R,"\u223e","\\invlazys",!0),F($,R,"\u2a4b","\\twocaps",!0),F($,R,"\u2a4a","\\twocups",!0),F($,R,"\u2a4e","\\Sqcap",!0),F($,R,"\u2a4f","\\Sqcup",!0),F($,R,"\u2a56","\\veeonvee",!0),F($,R,"\u2a55","\\wedgeonwedge",!0),F($,R,"\u29d7","\\blackhourglass",!0),F($,R,"\u29c6","\\boxast",!0),F($,R,"\u29c8","\\boxbox",!0),F($,R,"\u29c7","\\boxcircle",!0),F($,R,"\u229c","\\circledequal",!0),F($,R,"\u29b7","\\circledparallel",!0),F($,R,"\u29b6","\\circledvert",!0),F($,R,"\u29b5","\\circlehbar",!0),F($,R,"\u27e1","\\concavediamond",!0),F($,R,"\u27e2","\\concavediamondtickleft",!0),F($,R,"\u27e3","\\concavediamondtickright",!0),F($,R,"\u22c4","\\diamond",!0),F($,R,"\u29d6","\\hourglass",!0),F($,R,"\u27e0","\\lozengeminus",!0),F($,R,"\u233d","\\obar",!0),F($,R,"\u29b8","\\obslash",!0),F($,R,"\u2a38","\\odiv",!0),F($,R,"\u29c1","\\ogreaterthan",!0),F($,R,"\u29c0","\\olessthan",!0),F($,R,"\u29b9","\\operp",!0),F($,R,"\u2a37","\\Otimes",!0),F($,R,"\u2a36","\\otimeshat",!0),F($,R,"\u22c6","\\star",!0),F($,R,"\u25b3","\\triangle",!0),F($,R,"\u2a3a","\\triangleminus",!0),F($,R,"\u2a39","\\triangleplus",!0),F($,R,"\u2a3b","\\triangletimes",!0),F($,R,"\u27e4","\\whitesquaretickleft",!0),F($,R,"\u27e5","\\whitesquaretickright",!0),F($,R,"\u2a33","\\smashtimes",!0),F($,W,"\u21e2","\\dashrightarrow",!0),F($,W,"\u21e0","\\dashleftarrow",!0),F($,W,"\u21c7","\\leftleftarrows",!0),F($,W,"\u21c6","\\leftrightarrows",!0),F($,W,"\u21da","\\Lleftarrow",!0),F($,W,"\u219e","\\twoheadleftarrow",!0),F($,W,"\u21a2","\\leftarrowtail",!0),F($,W,"\u21ab","\\looparrowleft",!0),F($,W,"\u21cb","\\leftrightharpoons",!0),F($,W,"\u21b6","\\curvearrowleft",!0),F($,W,"\u21ba","\\circlearrowleft",!0),F($,W,"\u21b0","\\Lsh",!0),F($,W,"\u21c8","\\upuparrows",!0),F($,W,"\u21bf","\\upharpoonleft",!0),F($,W,"\u21c3","\\downharpoonleft",!0),F($,W,"\u22b6","\\origof",!0),F($,W,"\u22b7","\\imageof",!0),F($,W,"\u22b8","\\multimap",!0),F($,W,"\u21ad","\\leftrightsquigarrow",!0),F($,W,"\u21c9","\\rightrightarrows",!0),F($,W,"\u21c4","\\rightleftarrows",!0),F($,W,"\u21a0","\\twoheadrightarrow",!0),F($,W,"\u21a3","\\rightarrowtail",!0),F($,W,"\u21ac","\\looparrowright",!0),F($,W,"\u21b7","\\curvearrowright",!0),F($,W,"\u21bb","\\circlearrowright",!0),F($,W,"\u21b1","\\Rsh",!0),F($,W,"\u21ca","\\downdownarrows",!0),F($,W,"\u21be","\\upharpoonright",!0),F($,W,"\u21c2","\\downharpoonright",!0),F($,W,"\u21dd","\\rightsquigarrow",!0),F($,W,"\u21dd","\\leadsto"),F($,W,"\u21db","\\Rrightarrow",!0),F($,W,"\u21be","\\restriction"),F($,Z,"\u2018","`"),F($,Z,"$","\\$"),F(I,Z,"$","\\$"),F(I,Z,"$","\\textdollar"),F($,Z,"\xa2","\\cent"),F(I,Z,"\xa2","\\cent"),F($,Z,"%","\\%"),F(I,Z,"%","\\%"),F($,Z,"_","\\_"),F(I,Z,"_","\\_"),F(I,Z,"_","\\textunderscore"),F(I,Z,"\u2423","\\textvisiblespace",!0),F($,Z,"\u2220","\\angle",!0),F($,Z,"\u221e","\\infty",!0),F($,Z,"\u2032","\\prime"),F($,Z,"\u2033","\\dprime"),F($,Z,"\u2034","\\trprime"),F($,Z,"\u2057","\\qprime"),F($,Z,"\u25b3","\\triangle"),F(I,Z,"\u0391","\\Alpha",!0),F(I,Z,"\u0392","\\Beta",!0),F(I,Z,"\u0393","\\Gamma",!0),F(I,Z,"\u0394","\\Delta",!0),F(I,Z,"\u0395","\\Epsilon",!0),F(I,Z,"\u0396","\\Zeta",!0),F(I,Z,"\u0397","\\Eta",!0),F(I,Z,"\u0398","\\Theta",!0),F(I,Z,"\u0399","\\Iota",!0),F(I,Z,"\u039a","\\Kappa",!0),F(I,Z,"\u039b","\\Lambda",!0),F(I,Z,"\u039c","\\Mu",!0),F(I,Z,"\u039d","\\Nu",!0),F(I,Z,"\u039e","\\Xi",!0),F(I,Z,"\u039f","\\Omicron",!0),F(I,Z,"\u03a0","\\Pi",!0),F(I,Z,"\u03a1","\\Rho",!0),F(I,Z,"\u03a3","\\Sigma",!0),F(I,Z,"\u03a4","\\Tau",!0),F(I,Z,"\u03a5","\\Upsilon",!0),F(I,Z,"\u03a6","\\Phi",!0),F(I,Z,"\u03a7","\\Chi",!0),F(I,Z,"\u03a8","\\Psi",!0),F(I,Z,"\u03a9","\\Omega",!0),F($,U,"\u0391","\\Alpha",!0),F($,U,"\u0392","\\Beta",!0),F($,U,"\u0393","\\Gamma",!0),F($,U,"\u0394","\\Delta",!0),F($,U,"\u0395","\\Epsilon",!0),F($,U,"\u0396","\\Zeta",!0),F($,U,"\u0397","\\Eta",!0),F($,U,"\u0398","\\Theta",!0),F($,U,"\u0399","\\Iota",!0),F($,U,"\u039a","\\Kappa",!0),F($,U,"\u039b","\\Lambda",!0),F($,U,"\u039c","\\Mu",!0),F($,U,"\u039d","\\Nu",!0),F($,U,"\u039e","\\Xi",!0),F($,U,"\u039f","\\Omicron",!0),F($,U,"\u03a0","\\Pi",!0),F($,U,"\u03a1","\\Rho",!0),F($,U,"\u03a3","\\Sigma",!0),F($,U,"\u03a4","\\Tau",!0),F($,U,"\u03a5","\\Upsilon",!0),F($,U,"\u03a6","\\Phi",!0),F($,U,"\u03a7","\\Chi",!0),F($,U,"\u03a8","\\Psi",!0),F($,U,"\u03a9","\\Omega",!0),F($,H,"\xac","\\neg",!0),F($,H,"\xac","\\lnot"),F($,Z,"\u22a4","\\top"),F($,Z,"\u22a5","\\bot"),F($,Z,"\u2205","\\emptyset"),F($,Z,"\u2300","\\varnothing"),F($,U,"\u03b1","\\alpha",!0),F($,U,"\u03b2","\\beta",!0),F($,U,"\u03b3","\\gamma",!0),F($,U,"\u03b4","\\delta",!0),F($,U,"\u03f5","\\epsilon",!0),F($,U,"\u03b6","\\zeta",!0),F($,U,"\u03b7","\\eta",!0),F($,U,"\u03b8","\\theta",!0),F($,U,"\u03b9","\\iota",!0),F($,U,"\u03ba","\\kappa",!0),F($,U,"\u03bb","\\lambda",!0),F($,U,"\u03bc","\\mu",!0),F($,U,"\u03bd","\\nu",!0),F($,U,"\u03be","\\xi",!0),F($,U,"\u03bf","\\omicron",!0),F($,U,"\u03c0","\\pi",!0),F($,U,"\u03c1","\\rho",!0),F($,U,"\u03c3","\\sigma",!0),F($,U,"\u03c4","\\tau",!0),F($,U,"\u03c5","\\upsilon",!0),F($,U,"\u03d5","\\phi",!0),F($,U,"\u03c7","\\chi",!0),F($,U,"\u03c8","\\psi",!0),F($,U,"\u03c9","\\omega",!0),F($,U,"\u03b5","\\varepsilon",!0),F($,U,"\u03d1","\\vartheta",!0),F($,U,"\u03d6","\\varpi",!0),F($,U,"\u03f1","\\varrho",!0),F($,U,"\u03c2","\\varsigma",!0),F($,U,"\u03c6","\\varphi",!0),F($,U,"\u03d8","\\Coppa",!0),F($,U,"\u03d9","\\coppa",!0),F($,U,"\u03d9","\\varcoppa",!0),F($,U,"\u03de","\\Koppa",!0),F($,U,"\u03df","\\koppa",!0),F($,U,"\u03e0","\\Sampi",!0),F($,U,"\u03e1","\\sampi",!0),F($,U,"\u03da","\\Stigma",!0),F($,U,"\u03db","\\stigma",!0),F($,U,"\u2aeb","\\Bot"),F($,R,"\u2217","\u2217",!0),F($,R,"+","+"),F($,R,"\u2217","*"),F($,R,"\u2044","/",!0),F($,R,"\u2044","\u2044"),F($,R,"\u2212","-",!0),F($,R,"\u22c5","\\cdot",!0),F($,R,"\u2218","\\circ",!0),F($,R,"\xf7","\\div",!0),F($,R,"\xb1","\\pm",!0),F($,R,"\xd7","\\times",!0),F($,R,"\u2229","\\cap",!0),F($,R,"\u222a","\\cup",!0),F($,R,"\u2216","\\setminus",!0),F($,R,"\u2227","\\land"),F($,R,"\u2228","\\lor"),F($,R,"\u2227","\\wedge",!0),F($,R,"\u2228","\\vee",!0),F($,H,"\u27e6","\\llbracket",!0),F($,j,"\u27e7","\\rrbracket",!0),F($,H,"\u27e8","\\langle",!0),F($,H,"\u27ea","\\lAngle",!0),F($,H,"\u2989","\\llangle",!0),F($,H,"|","\\lvert"),F($,H,"\u2016","\\lVert",!0),F($,Z,"!","\\oc"),F($,Z,"?","\\wn"),F($,Z,"\u2193","\\shpos"),F($,Z,"\u2195","\\shift"),F($,Z,"\u2191","\\shneg"),F($,j,"?","?"),F($,j,"!","!"),F($,j,"\u203c","\u203c"),F($,j,"\u27e9","\\rangle",!0),F($,j,"\u27eb","\\rAngle",!0),F($,j,"\u298a","\\rrangle",!0),F($,j,"|","\\rvert"),F($,j,"\u2016","\\rVert"),F($,H,"\u2983","\\lBrace",!0),F($,j,"\u2984","\\rBrace",!0),F($,W,"=","\\equal",!0),F($,W,":",":"),F($,W,"\u2248","\\approx",!0),F($,W,"\u2245","\\cong",!0),F($,W,"\u2265","\\ge"),F($,W,"\u2265","\\geq",!0),F($,W,"\u2190","\\gets"),F($,W,">","\\gt",!0),F($,W,"\u2208","\\in",!0),F($,W,"\u2209","\\notin",!0),F($,W,"\ue020","\\@not"),F($,W,"\u2282","\\subset",!0),F($,W,"\u2283","\\supset",!0),F($,W,"\u2286","\\subseteq",!0),F($,W,"\u2287","\\supseteq",!0),F($,W,"\u2288","\\nsubseteq",!0),F($,W,"\u2288","\\nsubseteqq"),F($,W,"\u2289","\\nsupseteq",!0),F($,W,"\u2289","\\nsupseteqq"),F($,W,"\u22a8","\\models"),F($,W,"\u2190","\\leftarrow",!0),F($,W,"\u2264","\\le"),F($,W,"\u2264","\\leq",!0),F($,W,"<","\\lt",!0),F($,W,"\u2192","\\rightarrow",!0),F($,W,"\u2192","\\to"),F($,W,"\u2271","\\ngeq",!0),F($,W,"\u2271","\\ngeqq"),F($,W,"\u2271","\\ngeqslant"),F($,W,"\u2270","\\nleq",!0),F($,W,"\u2270","\\nleqq"),F($,W,"\u2270","\\nleqslant"),F($,W,"\u2aeb","\\Perp",!0),F($,X,"\xa0","\\ "),F($,X,"\xa0","\\space"),F($,X,"\xa0","\\nobreakspace"),F(I,X,"\xa0","\\ "),F(I,X,"\xa0"," "),F(I,X,"\xa0","\\space"),F(I,X,"\xa0","\\nobreakspace"),F($,X,null,"\\nobreak"),F($,X,null,"\\allowbreak"),F($,V,",",","),F(I,V,":",":"),F($,V,";",";"),F($,R,"\u22bc","\\barwedge"),F($,R,"\u22bb","\\veebar"),F($,R,"\u2299","\\odot",!0),F($,R,"\u2295\ufe0e","\\oplus"),F($,R,"\u2297","\\otimes",!0),F($,Z,"\u2202","\\partial",!0),F($,R,"\u2298","\\oslash",!0),F($,R,"\u229a","\\circledcirc",!0),F($,R,"\u22a1","\\boxdot",!0),F($,R,"\u25b3","\\bigtriangleup"),F($,R,"\u25bd","\\bigtriangledown"),F($,R,"\u2020","\\dagger"),F($,R,"\u22c4","\\diamond"),F($,R,"\u25c3","\\triangleleft"),F($,R,"\u25b9","\\triangleright"),F($,H,"{","\\{"),F(I,Z,"{","\\{"),F(I,Z,"{","\\textbraceleft"),F($,j,"}","\\}"),F(I,Z,"}","\\}"),F(I,Z,"}","\\textbraceright"),F($,H,"{","\\lbrace"),F($,j,"}","\\rbrace"),F($,H,"[","\\lbrack",!0),F(I,Z,"[","\\lbrack",!0),F($,j,"]","\\rbrack",!0),F(I,Z,"]","\\rbrack",!0),F($,H,"(","\\lparen",!0),F($,j,")","\\rparen",!0),F($,H,"\u2987","\\llparenthesis",!0),F($,j,"\u2988","\\rrparenthesis",!0),F(I,Z,"<","\\textless",!0),F(I,Z,">","\\textgreater",!0),F($,H,"\u230a","\\lfloor",!0),F($,j,"\u230b","\\rfloor",!0),F($,H,"\u2308","\\lceil",!0),F($,j,"\u2309","\\rceil",!0),F($,Z,"\\","\\backslash"),F($,Z,"|","|"),F($,Z,"|","\\vert"),F(I,Z,"|","\\textbar",!0),F($,Z,"\u2016","\\|"),F($,Z,"\u2016","\\Vert"),F(I,Z,"\u2016","\\textbardbl"),F(I,Z,"~","\\textasciitilde"),F(I,Z,"\\","\\textbackslash"),F(I,Z,"^","\\textasciicircum"),F($,W,"\u2191","\\uparrow",!0),F($,W,"\u21d1","\\Uparrow",!0),F($,W,"\u2193","\\downarrow",!0),F($,W,"\u21d3","\\Downarrow",!0),F($,W,"\u2195","\\updownarrow",!0),F($,W,"\u21d5","\\Updownarrow",!0),F($,G,"\u2210","\\coprod"),F($,G,"\u22c1","\\bigvee"),F($,G,"\u22c0","\\bigwedge"),F($,G,"\u2a04","\\biguplus"),F($,G,"\u2a04","\\bigcupplus"),F($,G,"\u2a03","\\bigcupdot"),F($,G,"\u2a07","\\bigdoublevee"),F($,G,"\u2a08","\\bigdoublewedge"),F($,G,"\u22c2","\\bigcap"),F($,G,"\u22c3","\\bigcup"),F($,G,"\u222b","\\int"),F($,G,"\u222b","\\intop"),F($,G,"\u222c","\\iint"),F($,G,"\u222d","\\iiint"),F($,G,"\u220f","\\prod"),F($,G,"\u2211","\\sum"),F($,G,"\u2a02","\\bigotimes"),F($,G,"\u2a01","\\bigoplus"),F($,G,"\u2a00","\\bigodot"),F($,G,"\u2a09","\\bigtimes"),F($,G,"\u222e","\\oint"),F($,G,"\u222f","\\oiint"),F($,G,"\u2230","\\oiiint"),F($,G,"\u2231","\\intclockwise"),F($,G,"\u2232","\\varointclockwise"),F($,G,"\u2a0c","\\iiiint"),F($,G,"\u2a0d","\\intbar"),F($,G,"\u2a0e","\\intBar"),F($,G,"\u2a0f","\\fint"),F($,G,"\u2a12","\\rppolint"),F($,G,"\u2a13","\\scpolint"),F($,G,"\u2a15","\\pointint"),F($,G,"\u2a16","\\sqint"),F($,G,"\u2a17","\\intlarhk"),F($,G,"\u2a18","\\intx"),F($,G,"\u2a19","\\intcap"),F($,G,"\u2a1a","\\intcup"),F($,G,"\u2a05","\\bigsqcap"),F($,G,"\u2a06","\\bigsqcup"),F($,G,"\u222b","\\smallint"),F(I,z,"\u2026","\\textellipsis"),F($,z,"\u2026","\\mathellipsis"),F(I,z,"\u2026","\\ldots",!0),F($,z,"\u2026","\\ldots",!0),F($,z,"\u22f0","\\iddots",!0),F($,z,"\u22ef","\\@cdots",!0),F($,z,"\u22f1","\\ddots",!0),F($,Z,"\u22ee","\\varvdots"),F(I,Z,"\u22ee","\\varvdots"),F($,P,"\u02ca","\\acute"),F($,P,"`","\\grave"),F($,P,"\xa8","\\ddot"),F($,P,"\u2026","\\dddot"),F($,P,"\u2026.","\\ddddot"),F($,P,"~","\\tilde"),F($,P,"\u203e","\\bar"),F($,P,"\u02d8","\\breve"),F($,P,"\u02c7","\\check"),F($,P,"^","\\hat"),F($,P,"\u2192","\\vec"),F($,P,"\u02d9","\\dot"),F($,P,"\u02da","\\mathring"),F($,U,"\u0131","\\imath",!0),F($,U,"\u0237","\\jmath",!0),F($,Z,"\u0131","\u0131"),F($,Z,"\u0237","\u0237"),F(I,Z,"\u0131","\\i",!0),F(I,Z,"\u0237","\\j",!0),F(I,Z,"\xdf","\\ss",!0),F(I,Z,"\xe6","\\ae",!0),F(I,Z,"\u0153","\\oe",!0),F(I,Z,"\xf8","\\o",!0),F($,U,"\xf8","\\o",!0),F(I,Z,"\xc6","\\AE",!0),F(I,Z,"\u0152","\\OE",!0),F(I,Z,"\xd8","\\O",!0),F($,U,"\xd8","\\O",!0),F(I,P,"\u02ca","\\'"),F(I,P,"\u02cb","\\`"),F(I,P,"\u02c6","\\^"),F(I,P,"\u02dc","\\~"),F(I,P,"\u02c9","\\="),F(I,P,"\u02d8","\\u"),F(I,P,"\u02d9","\\."),F(I,P,"\xb8","\\c"),F(I,P,"\u02da","\\r"),F(I,P,"\u02c7","\\v"),F(I,P,"\xa8",'\\"'),F(I,P,"\u02dd","\\H"),F($,P,"\u02ca","\\'"),F($,P,"\u02cb","\\`"),F($,P,"\u02c6","\\^"),F($,P,"\u02dc","\\~"),F($,P,"\u02c9","\\="),F($,P,"\u02d8","\\u"),F($,P,"\u02d9","\\."),F($,P,"\xb8","\\c"),F($,P,"\u02da","\\r"),F($,P,"\u02c7","\\v"),F($,P,"\xa8",'\\"'),F($,P,"\u02dd","\\H");const Y={"--":!0,"---":!0,"``":!0,"''":!0};F(I,Z,"\u2013","--",!0),F(I,Z,"\u2013","\\textendash"),F(I,Z,"\u2014","---",!0),F(I,Z,"\u2014","\\textemdash"),F(I,Z,"\u2018","`",!0),F(I,Z,"\u2018","\\textquoteleft"),F(I,Z,"\u2019","'",!0),F(I,Z,"\u2019","\\textquoteright"),F(I,Z,"\u201c","``",!0),F(I,Z,"\u201c","\\textquotedblleft"),F(I,Z,"\u201d","''",!0),F(I,Z,"\u201d","\\textquotedblright"),F($,Z,"\xb0","\\degree",!0),F(I,Z,"\xb0","\\degree"),F(I,Z,"\xb0","\\textdegree",!0),F($,Z,"\xa3","\\pounds"),F($,Z,"\xa3","\\mathsterling",!0),F(I,Z,"\xa3","\\pounds"),F(I,Z,"\xa3","\\textsterling",!0),F($,Z,"\u2720","\\maltese"),F(I,Z,"\u2720","\\maltese"),F($,Z,"\u20ac","\\euro",!0),F(I,Z,"\u20ac","\\euro",!0),F(I,Z,"\u20ac","\\texteuro"),F($,Z,"\xa9","\\copyright",!0),F(I,Z,"\xa9","\\textcopyright"),F($,Z,"\u2300","\\diameter",!0),F(I,Z,"\u2300","\\diameter"),F($,Z,"\u{1d6e4}","\\varGamma"),F($,Z,"\u{1d6e5}","\\varDelta"),F($,Z,"\u{1d6e9}","\\varTheta"),F($,Z,"\u{1d6ec}","\\varLambda"),F($,Z,"\u{1d6ef}","\\varXi"),F($,Z,"\u{1d6f1}","\\varPi"),F($,Z,"\u{1d6f4}","\\varSigma"),F($,Z,"\u{1d6f6}","\\varUpsilon"),F($,Z,"\u{1d6f7}","\\varPhi"),F($,Z,"\u{1d6f9}","\\varPsi"),F($,Z,"\u{1d6fa}","\\varOmega"),F(I,Z,"\u{1d6e4}","\\varGamma"),F(I,Z,"\u{1d6e5}","\\varDelta"),F(I,Z,"\u{1d6e9}","\\varTheta"),F(I,Z,"\u{1d6ec}","\\varLambda"),F(I,Z,"\u{1d6ef}","\\varXi"),F(I,Z,"\u{1d6f1}","\\varPi"),F(I,Z,"\u{1d6f4}","\\varSigma"),F(I,Z,"\u{1d6f6}","\\varUpsilon"),F(I,Z,"\u{1d6f7}","\\varPhi"),F(I,Z,"\u{1d6f9}","\\varPsi"),F(I,Z,"\u{1d6fa}","\\varOmega");const J='0123456789/@."';for(let e=0;e<14;e++){const t=J.charAt(e);F($,Z,t,t)}const K='0123456789!@*()-=+";:?/.,';for(let e=0;e<25;e++){const t=K.charAt(e);F(I,Z,t,t)}const Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let e=0;e<52;e++){const t=Q.charAt(e);F($,U,t,t),F(I,Z,t,t)}const ee="\xc7\xd0\xde\xe7\xfe\u2102\u210d\u2115\u2119\u211a\u211d\u2124\u210e\u210f\u210a\u210b\u210c\u2110\u2111\u2112\u2113\u2118\u211b\u211c\u212c\u2130\u2131\u2133\u212d\u2128";for(let e=0;e<30;e++){const t=ee.charAt(e);F($,U,t,t),F(I,Z,t,t)}let te="";for(let e=0;e<52;e++){te=String.fromCharCode(55349,56320+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56372+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56424+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56580+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56736+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56788+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56840+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56944+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,56632+e),F($,U,te,te),F(I,Z,te,te);const t=Q.charAt(e);te=String.fromCharCode(55349,56476+e),F($,U,t,te),F(I,Z,t,te)}for(let e=0;e<10;e++)te=String.fromCharCode(55349,57294+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,57314+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,57324+e),F($,U,te,te),F(I,Z,te,te),te=String.fromCharCode(55349,57334+e),F($,U,te,te),F(I,Z,te,te);const re=function(e,t,r){return!B[t][e]||!B[t][e].replace||55349===e.charCodeAt(0)||Object.prototype.hasOwnProperty.call(Y,e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=B[t][e].replace),new T.TextNode(e)},ne=(e,t)=>{if(0===e.children.length||"mtext"!==e.children[e.children.length-1].type){const r=new T.MathNode("mtext",[new T.TextNode(t.children[0].text)]);e.children.push(r)}else e.children[e.children.length-1].children[0].text+=t.children[0].text},ae=e=>{if("mrow"!==e.type&&"mstyle"!==e.type)return e;if(0===e.children.length)return e;const t=new T.MathNode("mrow");for(let r=0;r<e.children.length;r++){const n=e.children[r];if("mtext"===n.type&&0===Object.keys(n.attributes).length)ne(t,n);else if("mrow"===n.type){let e=!0;for(let t=0;t<n.children.length;t++){if("mtext"!==n.children[t].type||0!==Object.keys(n.attributes).length){e=!1;break}}if(e)for(let e=0;e<n.children.length;e++){const r=n.children[e];ne(t,r)}else t.children.push(n)}else t.children.push(n)}for(let r=0;r<t.children.length;r++)if("mtext"===t.children[r].type){const n=t.children[r];" "===n.children[0].text.charAt(0)&&(n.children[0].text="\xa0"+n.children[0].text.slice(1));const a=n.children[0].text.length;a>0&&" "===n.children[0].text.charAt(a-1)&&(n.children[0].text=n.children[0].text.slice(0,-1)+"\xa0");for(const[t,r]of Object.entries(e.attributes))n.attributes[t]=r}return 1===t.children.length&&"mtext"===t.children[0].type?t.children[0]:t},oe=function(e,t=!1){if(!(1!==e.length||e[0]instanceof h))return e[0];if(!t){e[0]instanceof E&&"mo"===e[0].type&&!e[0].attributes.fence&&(e[0].attributes.lspace="0em",e[0].attributes.rspace="0em");const t=e.length-1;e[t]instanceof E&&"mo"===e[t].type&&!e[t].attributes.fence&&(e[t].attributes.lspace="0em",e[t].attributes.rspace="0em")}return new T.MathNode("mrow",e)};function ie(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){const t=e.children[0];return t instanceof _&&"."===t.text}if("mtext"===e.type&&1===e.children.length){const t=e.children[0];return t instanceof _&&"\u2008"===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){const t=e.children[0];return t instanceof _&&","===t.text}return!1}const se=(e,t)=>{const r=e[t],n=e[t+1];return"atom"===r.type&&","===r.text&&r.loc&&n.loc&&r.loc.end===n.loc.start},le=e=>"atom"===e.type&&"rel"===e.family||"mclass"===e.type&&"mrel"===e.mclass,ce=function(e,t,r=!1){if(!r&&1===e.length){const r=de(e[0],t);return r instanceof E&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}const n=[],a=[];let o;for(let r=0;r<e.length;r++)a.push(de(e[r],t));for(let t=0;t<a.length;t++){const r=a[t];if(t<e.length-1&&le(e[t])&&le(e[t+1])&&r.setAttribute("rspace","0em"),t>0&&le(e[t])&&le(e[t-1])&&r.setAttribute("lspace","0em"),"mn"===r.type&&o&&"mn"===o.type)o.children.push(...r.children);else if(ie(r)&&o&&"mn"===o.type)o.children.push(...r.children);else if(o&&"mn"===o.type&&t<a.length-1&&"mn"===a[t+1].type&&se(e,t))o.children.push(...r.children);else{if("mn"===r.type&&ie(o))r.children=[...o.children,...r.children],n.pop();else if(("msup"===r.type||"msub"===r.type)&&r.children.length>=1&&o&&("mn"===o.type||ie(o))){const e=r.children[0];e instanceof E&&"mn"===e.type&&o&&(e.children=[...o.children,...e.children],n.pop())}n.push(r),o=r}}return n},ue=function(e,t,r=!1){return oe(ce(e,t,r),r)},de=function(e,r){if(!e)return new T.MathNode("mrow");if(c[e.type]){return c[e.type](e,r)}throw new t("Got group of unknown type: '"+e.type+"'")},pe=e=>new T.MathNode("mtd",[],[],{padding:"0",width:"50%"}),me=["mrow","mtd","mtable","mtr"],he=e=>{for(const t of e.children)if(t.type&&me.includes(t.type)){if(t.classes&&"tml-label"===t.classes[0]){return t.label}{const e=he(t);if(e)return e}}else if(!t.type){const e=he(t);if(e)return e}};function fe(e,t,r,n){let a=null;1===e.length&&"tag"===e[0].type&&(a=e[0].tag,e=e[0].body);const o=ce(e,r);if(1===o.length&&o[0]instanceof v)return o[0];const i=n.displayMode||n.annotate?"none":n.wrap,s=0===o.length?null:o[0];let l=1===o.length&&null===a&&s instanceof E?o[0]:function(e,t,r){const n=[];let a=[],o=[],i=0,s=0,l=0;for(;s<e.length;){for(;e[s]instanceof h;)e.splice(s,1,...e[s].children);const r=e[s];if(r.attributes&&r.attributes.linebreak&&"newline"===r.attributes.linebreak){o.length>0&&a.push(new T.MathNode("mrow",o)),a.push(r),o=[];const e=new T.MathNode("mtd",a);e.style.textAlign="left",n.push(new T.MathNode("mtr",[e])),a=[],s+=1}else{if(o.push(r),r.type&&"mo"===r.type&&1===r.children.length&&!Object.prototype.hasOwnProperty.call(r.attributes,"movablelimits")){const n=r.children[0].text;if("([{\u230a\u2308\u27e8\u27ee\u23b0\u27e6\u2983".indexOf(n)>-1)l+=1;else if(")]}\u230b\u2309\u27e9\u27ef\u23b1\u27e6\u2984".indexOf(n)>-1)l-=1;else if(0===l&&"="===t&&"="===n){if(i+=1,i>1){o.pop();const e=new T.MathNode("mrow",o);a.push(e),o=[r]}}else if(0===l&&"tex"===t&&"\u2207"!==n){const t=s<e.length-1?e[s+1]:null;let r=!0;if(!t||"mtext"!==t.type||!t.attributes.linebreak||"nobreak"!==t.attributes.linebreak)for(let t=s+1;t<e.length;t++){const n=e[t];if(!n.type||"mspace"!==n.type||n.attributes.linebreak&&"newline"===n.attributes.linebreak)break;o.push(n),s+=1,n.attributes&&n.attributes.linebreak&&"nobreak"===n.attributes.linebreak&&(r=!1)}if(r){const e=new T.MathNode("mrow",o);a.push(e),o=[]}}}s+=1}}if(o.length>0){const e=new T.MathNode("mrow",o);a.push(e)}if(n.length>0){const e=new T.MathNode("mtd",a);e.style.textAlign="left";const t=new T.MathNode("mtr",[e]);n.push(t);const o=new T.MathNode("mtable",n);return r||(o.setAttribute("columnalign","left"),o.setAttribute("rowspacing","0em")),o}return T.newDocumentFragment(a)}(o,i,n.displayMode);if(a&&(l=((e,t,r,n)=>{t=ue(t[0].body,r),(t=ae(t)).classes.push("tml-tag");const a=he(e);e=new T.MathNode("mtd",[e]);const o=[pe(),e,pe()];o[n?0:2].classes.push(n?"tml-left":"tml-right"),o[n?0:2].children.push(t);const i=new T.MathNode("mtr",o,["tml-tageqn"]);a&&i.setAttribute("id",a);const s=new T.MathNode("mtable",[i]);return s.style.width="100%",s.setAttribute("displaystyle","true"),s})(l,a,r,n.leqno)),n.annotate){const e=new T.MathNode("annotation",[new T.TextNode(t)]);e.setAttribute("encoding","application/x-tex"),l=new T.MathNode("semantics",[l,e])}const c=new T.MathNode("math",[l]);return n.xml&&c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),l.style.width&&(c.style.width="100%"),n.displayMode&&(c.setAttribute("display","block"),c.style.display="block math",c.classes=["tml-display"]),c}const ge="aceg\u0131\u0237mnopqrsuvwxyz\u03b1\u03b3\u03b5\u03b7\u03b9\u03ba\u03bc\u03bd\u03bf\u03c0\u03c1\u03c2\u03c3\u03c4\u03c5\u03c7\u03c9\u03d5\u{1d41a}\u{1d41c}\u{1d41e}\u{1d420}\u{1d426}\u{1d427}\u{1d428}\u{1d429}\u{1d42a}\u{1d42b}\u{1d42c}\u{1d42e}\u{1d42f}\u{1d430}\u{1d431}\u{1d432}\u{1d433}",xe="ABCDEFGHIJKLMNOPQRSTUVWXYZbdfhklt\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039a\u039b\u039c\u039d\u039e\u039f\u03a0\u03a1\u03a3\u03a4\u03a5\u03a6\u03a7\u03a8\u03a9\u03b2\u03b4\u03bb\u03b6\u03c6\u03b8\u03c8\u{1d400}\u{1d401}\u{1d402}\u{1d403}\u{1d404}\u{1d405}\u{1d406}\u{1d407}\u{1d408}\u{1d409}\u{1d40a}\u{1d40b}\u{1d40c}\u{1d40d}\u{1d40e}\u{1d40f}\u{1d410}\u{1d411}\u{1d412}\u{1d413}\u{1d414}\u{1d415}\u{1d416}\u{1d417}\u{1d418}\u{1d419}\u{1d41b}\u{1d41d}\u{1d41f}\u{1d421}\u{1d424}\u{1d425}\u{1d42d}",be=new Set(["\\alpha","\\gamma","\\delta","\\epsilon","\\eta","\\iota","\\kappa","\\mu","\\nu","\\pi","\\rho","\\sigma","\\tau","\\upsilon","\\chi","\\psi","\\omega","\\imath","\\jmath"]),we=new Set(["\\Gamma","\\Delta","\\Sigma","\\Omega","\\beta","\\delta","\\lambda","\\theta","\\psi"]),ye=(e,t)=>{const r=e.isStretchy?L(e):new T.MathNode("mo",[re(e.label,e.mode)]);if("\\vec"===e.label)r.style.transform="scale(0.75) translate(10%, 30%)";else if(r.style.mathStyle="normal",r.style.mathDepth="0",Ae.has(e.label)&&i.isCharacterBox(e.base)){let t="";const n=e.base.text;(ge.indexOf(n)>-1||be.has(n))&&(t="tml-xshift"),(xe.indexOf(n)>-1||we.has(n))&&(t="tml-capshift"),t&&r.classes.push(t)}e.isStretchy||r.setAttribute("stretchy","false");return new T.MathNode("\\c"===e.label?"munder":"mover",[de(e.base,t),r])},ve=new Set(["\\acute","\\grave","\\ddot","\\dddot","\\ddddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"]),Ae=new Set(["\\acute","\\bar","\\breve","\\check","\\dot","\\ddot","\\grave","\\hat","\\mathring","\\'","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v"]),Ee={"\\`":"\u0300","\\'":"\u0301","\\^":"\u0302","\\~":"\u0303","\\=":"\u0304","\\u":"\u0306","\\.":"\u0307",'\\"':"\u0308","\\r":"\u030a","\\H":"\u030b","\\v":"\u030c"};u({type:"accent",names:["\\acute","\\grave","\\ddot","\\dddot","\\ddddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\overparen","\\widecheck","\\widehat","\\wideparen","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{const r=p(t[0]),n=!ve.has(e.funcName);return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,base:r}},mathmlBuilder:ye}),u({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\c","\\u","\\.",'\\"',"\\r","\\H","\\v"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{const r=p(t[0]),n=e.parser.mode;return"math"===n&&e.parser.settings.strict&&console.log(`Temml parse error: Command ${e.funcName} is invalid in math mode.`),"text"===n&&r.text&&1===r.text.length&&e.funcName in Ee&&ge.indexOf(r.text)>-1?{type:"textord",mode:"text",text:r.text+Ee[e.funcName]}:{type:"accent",mode:n,label:e.funcName,isStretchy:!1,base:r}},mathmlBuilder:ye}),u({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underparen","\\utilde"],props:{numArgs:1},handler:({parser:e,funcName:t},r)=>{const n=r[0];return{type:"accentUnder",mode:e.mode,label:t,base:n}},mathmlBuilder:(e,t)=>{const r=L(e);r.style["math-depth"]=0;return new T.MathNode("munder",[de(e.base,t),r])}});const _e={pt:800/803,pc:9600/803,dd:1238/1157*800/803,cc:12.792133216944668,nd:685/642*800/803,nc:1370/107*800/803,sp:1/65536*800/803,mm:25.4/72,cm:2.54/72,in:1/72,px:96/72},Ce=["em","ex","mu","pt","mm","cm","in","px","bp","pc","dd","cc","nd","nc","sp"],Te=function(e){return"string"!=typeof e&&(e=e.unit),Ce.indexOf(e)>-1},qe=e=>[1,.7,.5][Math.max(e-1,0)],Ne=function(e,r){let n=e.number;if(r.maxSize[0]<0&&n>0)return{number:0,unit:"em"};const a=e.unit;switch(a){case"mm":case"cm":case"in":case"px":return n*_e[a]>r.maxSize[1]?{number:r.maxSize[1],unit:"pt"}:{number:n,unit:a};case"em":case"ex":return"ex"===a&&(n*=.431),n=Math.min(n/qe(r.level),r.maxSize[0]),{number:i.round(n),unit:"em"};case"bp":return n>r.maxSize[1]&&(n=r.maxSize[1]),{number:n,unit:"pt"};case"pt":case"pc":case"dd":case"cc":case"nd":case"nc":case"sp":return n=Math.min(n*_e[a],r.maxSize[1]),{number:i.round(n),unit:"pt"};case"mu":return n=Math.min(n/18,r.maxSize[0]),{number:i.round(n),unit:"em"};default:throw new t("Invalid unit: '"+a+"'")}},ke=e=>{const t=new T.MathNode("mspace");return t.setAttribute("width",e+"em"),t},Se=(e,t=.3,r=0,n=!1)=>{if(null==e&&0===r)return ke(t);const a=e?[e]:[];if(0!==t&&a.unshift(ke(t)),r>0&&a.push(ke(r)),n){const e=new T.MathNode("mpadded",a);return e.setAttribute("height","0"),e}return new T.MathNode("mrow",a)},Me=(e,t)=>Number(e)/qe(t),Le=(e,t,r,n)=>{const a=M(e),o="eq"===e.slice(1,3),i="x"===e.charAt(1)?"1.75":"cd"===e.slice(2,4)?"3.0":o?"1.0":"2.0";a.setAttribute("lspace","0"),a.setAttribute("rspace",o?"0.5em":"0");const s=n.withLevel(n.level<2?2:3),l=Me(i,s.level),c=Me(i,3),u=Se(null,l.toFixed(4),0),d=Se(null,c.toFixed(4),0),p=Me(o?0:.3,s.level).toFixed(4);let m,h;const f=t&&t.body&&(t.body.body||t.body.length>0);if(f){let r=de(t,s);r=Se(r,p,p,"\\\\cdrightarrow"===e||"\\\\cdleftarrow"===e),m=new T.MathNode("mover",[r,d])}const g=r&&r.body&&(r.body.body||r.body.length>0);if(g){let e=de(r,s);e=Se(e,p,p),h=new T.MathNode("munder",[e,d])}let x;return x=f||g?f&&g?new T.MathNode("munderover",[a,h,m]):f?new T.MathNode("mover",[a,m]):new T.MathNode("munder",[a,h]):new T.MathNode("mover",[a,u]),"3.0"===i&&(x.style.height="1em"),x.setAttribute("accent","false"),x};u({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\yields","\\yieldsLeft","\\mesomerism","\\longrightharpoonup","\\longleftharpoondown","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:({parser:e,funcName:t},r,n)=>({type:"xArrow",mode:e.mode,name:t,body:r[0],below:n[0]}),mathmlBuilder(e,t){const r=[Le(e.name,e.body,e.below,t)];return r.unshift(ke(.2778)),r.push(ke(.2778)),new T.MathNode("mrow",r)}});const Oe={"\\xtofrom":["\\xrightarrow","\\xleftarrow"],"\\xleftrightharpoons":["\\xleftharpoonup","\\xrightharpoondown"],"\\xrightleftharpoons":["\\xrightharpoonup","\\xleftharpoondown"],"\\yieldsLeftRight":["\\yields","\\yieldsLeft"],"\\equilibrium":["\\longrightharpoonup","\\longleftharpoondown"],"\\equilibriumRight":["\\longrightharpoonup","\\eqleftharpoondown"],"\\equilibriumLeft":["\\eqrightharpoonup","\\longleftharpoondown"]};u({type:"stackedArrow",names:["\\xtofrom","\\xleftrightharpoons","\\xrightleftharpoons","\\yieldsLeftRight","\\equilibrium","\\equilibriumRight","\\equilibriumLeft"],props:{numArgs:1,numOptionalArgs:1},handler({parser:e,funcName:t},r,n){const a=r[0]?{type:"hphantom",mode:e.mode,body:r[0]}:null,o=n[0]?{type:"hphantom",mode:e.mode,body:n[0]}:null;return{type:"stackedArrow",mode:e.mode,name:t,body:r[0],upperArrowBelow:o,lowerArrowBody:a,below:n[0]}},mathmlBuilder(e,t){const r=Oe[e.name][0],n=Oe[e.name][1],a=Le(r,e.body,e.upperArrowBelow,t),o=Le(n,e.lowerArrowBody,e.below,t);let i;const s=new T.MathNode("mpadded",[a]);if(s.setAttribute("voffset","0.3em"),s.setAttribute("height","+0.3em"),s.setAttribute("depth","-0.3em"),"\\equilibriumLeft"===e.name){const e=new T.MathNode("mpadded",[o]);e.setAttribute("width","0.5em"),i=new T.MathNode("mpadded",[ke(.2778),e,s,ke(.2778)])}else s.setAttribute("width","\\equilibriumRight"===e.name?"0.5em":"0"),i=new T.MathNode("mpadded",[ke(.2778),s,o,ke(.2778)]);return i.setAttribute("voffset","-0.18em"),i.setAttribute("height","-0.18em"),i.setAttribute("depth","+0.18em"),i}});const De={};function Be({type:e,names:t,props:r,handler:n,mathmlBuilder:a}){const o={type:e,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n};for(let e=0;e<t.length;++e)De[t[e]]=o;a&&(c[e]=a)}function Fe(e,t){if(!e||e.type!==t)throw new Error(`Expected node of type ${t}, but got `+(e?`node of type ${e.type}`:String(e)));return e}function $e(e){const t=Ie(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?`node of type ${e.type}`:String(e)));return t}function Ie(e){return e&&("atom"===e.type||Object.prototype.hasOwnProperty.call(D,e.type))?e:null}const Pe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Re=e=>"textord"===e.type&&"@"===e.text;function je(e,t,r){const n=Pe[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{const e={type:"atom",text:n,mode:"math",family:"rel"},a={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[e],[]),r.callFunction("\\\\cdright",[t[1]],[])],semisimple:!0};return r.callFunction("\\\\cdparent",[a],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{const e={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[e],[])}default:return{type:"textord",text:" ",mode:"math"}}}u({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:({parser:e,funcName:t},r)=>({type:"cdlabel",mode:e.mode,side:t.slice(4),label:r[0]}),mathmlBuilder(e,t){if(0===e.label.body.length)return new T.MathNode("mrow",t);const r=new T.MathNode("mtd",[de(e.label,t)]);r.style.padding="0";const n=new T.MathNode("mtr",[r]),a=new T.MathNode("mtable",[n]),o=new T.MathNode("mpadded",[a]);return o.setAttribute("width","0"),o.setAttribute("displaystyle","false"),o.setAttribute("scriptlevel","1"),"left"===e.side&&(o.style.display="flex",o.style.justifyContent="flex-end"),o}}),u({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:({parser:e},t)=>({type:"cdlabelparent",mode:e.mode,fragment:t[0]}),mathmlBuilder:(e,t)=>new T.MathNode("mrow",[de(e.fragment,t)])});const ze=e=>({type:"ordgroup",mode:"math",body:e,semisimple:!0}),Ue=(e,t)=>({type:t,mode:"math",body:ze(e)});class Ge{constructor(e,t,r){this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new Ge(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class He{constructor(e,t){this.text=e,this.loc=t}range(e,t){return new He(t,Ge.range(this,e))}}const Ve=0,We=1,Xe=2,Ze=3,Ye={};function Je(e,t){Ye[e]=t}const Ke=Ye;Je("\\noexpand",(function(e){const t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),Je("\\expandafter",(function(e){const t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),Je("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),Je("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),Je("\\@ifnextchar",(function(e){const t=e.consumeArgs(3);e.consumeSpaces();const r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),Je("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Je("\\TextOrMath",(function(e){const t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));const Qe=e=>{let t="";for(let r=e.length-1;r>-1;r--)t+=e[r].text;return t},et={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},tt=e=>{const t=e.future().text;return"EOF"===t?[null,""]:[et[t.charAt(0)],t]},rt=(e,t,r)=>{for(let n=1;n<t.length;n++){e*=r,e+=et[t.charAt(n)]}return e};function nt(e){const t=e.consumeArgs(1)[0];let r="",n=t[t.length-1].loc.start;for(let e=t.length-1;e>=0;e--){const a=t[e].loc.start;a>n&&(r+=" ",n=a),r+=t[e].text,n+=t[e].text.length}return r}Je("\\char",(function(e){let r,n=e.popToken(),a="";if("'"===n.text)r=8,n=e.popToken();else if('"'===n.text)r=16,n=e.popToken();else if("`"===n.text)if(n=e.popToken(),"\\"===n.text[0])a=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new t("\\char` missing argument");a=n.text.charCodeAt(0)}else r=10;if(r){let o,i=n.text;if(a=et[i.charAt(0)],null==a||a>=r)throw new t(`Invalid base-${r} digit ${n.text}`);for(a=rt(a,i,r),[o,i]=tt(e);null!=o&&o<r;)a*=r,a+=o,a=rt(a,i,r),e.popToken(),[o,i]=tt(e)}return`\\@char{${a}}`})),Je("\\surd","\\sqrt{\\vphantom{|}}"),Je("\u2295","\\oplus"),Je("\\long",""),Je("\\bgroup","{"),Je("\\egroup","}"),Je("~","\\nobreakspace"),Je("\\lq","`"),Je("\\rq","'"),Je("\\aa","\\r a"),Je("\\Bbbk","\\Bbb{k}"),Je("\\mathstrut","\\vphantom{(}"),Je("\\underbar","\\underline{\\text{#1}}"),Je("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),Je("\u22ee","\\vdots"),Je("\\arraystretch","1"),Je("\\arraycolsep","6pt"),Je("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Je("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Je("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Je("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");const at={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcap":"\\dotsb","\\bigsqcup":"\\dotsb","\\bigtimes":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Je("\\dots",(function(e){let t="\\dotso";const r=e.expandAfterFuture().text;return r in at?t=at[r]:("\\not"===r.slice(0,4)||r in B.math&&["bin","rel"].includes(B.math[r].group))&&(t="\\dotsb"),t}));const ot={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Je("\\dotso",(function(e){return e.future().text in ot?"\\ldots\\,":"\\ldots"})),Je("\\dotsc",(function(e){const t=e.future().text;return t in ot&&","!==t?"\\ldots\\,":"\\ldots"})),Je("\\cdots",(function(e){return e.future().text in ot?"\\@cdots\\,":"\\@cdots"})),Je("\\dotsb","\\cdots"),Je("\\dotsm","\\cdots"),Je("\\dotsi","\\!\\cdots"),Je("\\idotsint","\\dotsi"),Je("\\dotsx","\\ldots\\,"),Je("\\DOTSI","\\relax"),Je("\\DOTSB","\\relax"),Je("\\DOTSX","\\relax"),Je("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Je("\\,","{\\tmspace+{3mu}{.1667em}}"),Je("\\thinspace","\\,"),Je("\\>","\\mskip{4mu}"),Je("\\:","{\\tmspace+{4mu}{.2222em}}"),Je("\\medspace","\\:"),Je("\\;","{\\tmspace+{5mu}{.2777em}}"),Je("\\thickspace","\\;"),Je("\\!","{\\tmspace-{3mu}{.1667em}}"),Je("\\negthinspace","\\!"),Je("\\negmedspace","{\\tmspace-{4mu}{.2222em}}"),Je("\\negthickspace","{\\tmspace-{5mu}{.277em}}"),Je("\\enspace","\\kern.5em "),Je("\\enskip","\\hskip.5em\\relax"),Je("\\quad","\\hskip1em\\relax"),Je("\\qquad","\\hskip2em\\relax"),Je("\\AA","\\TextOrMath{\\Angstrom}{\\mathring{A}}\\relax"),Je("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Je("\\tag@paren","\\tag@literal{({#1})}"),Je("\\tag@literal",(e=>{if(e.macros.get("\\df@tag"))throw new t("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Je("\\notag","\\nonumber"),Je("\\nonumber","\\gdef\\@eqnsw{0}"),Je("\\bmod","\\mathbin{\\text{mod}}"),Je("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Je("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Je("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Je("\\newline","\\\\\\relax"),Je("\\TeX","\\textrm{T}\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125em\\textrm{X}"),Je("\\LaTeX","\\textrm{L}\\kern-.35em\\raisebox{0.2em}{\\scriptstyle A}\\kern-.15em\\TeX"),Je("\\Temml","\\textrm{T}\\kern-0.2em\\lower{0.2em}{\\textrm{E}}\\kern-0.08em{\\textrm{M}\\kern-0.08em\\raise{0.2em}\\textrm{M}\\kern-0.08em\\textrm{L}}"),Je("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Je("\\@hspace","\\hskip #1\\relax"),Je("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Je("\\colon",'\\mathpunct{\\char"3a}'),Je("\\prescript","\\pres@cript{_{#1}^{#2}}{}{#3}"),Je("\\ordinarycolon",'\\char"3a'),Je("\\vcentcolon","\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}}"),Je("\\coloneq",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"2212}'),Je("\\Coloneq",'\\mathrel{\\char"2237\\char"2212}'),Je("\\Eqqcolon",'\\mathrel{\\char"3d\\char"2237}'),Je("\\Eqcolon",'\\mathrel{\\char"2212\\char"2237}'),Je("\\colonapprox",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"2248}'),Je("\\Colonapprox",'\\mathrel{\\char"2237\\char"2248}'),Je("\\colonsim",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"223c}'),Je("\\Colonsim",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"223c}'),Je("\\ratio","\\vcentcolon"),Je("\\coloncolon","\\dblcolon"),Je("\\colonequals","\\coloneqq"),Je("\\coloncolonequals","\\Coloneqq"),Je("\\equalscolon","\\eqqcolon"),Je("\\equalscoloncolon","\\Eqqcolon"),Je("\\colonminus","\\coloneq"),Je("\\coloncolonminus","\\Coloneq"),Je("\\minuscolon","\\eqcolon"),Je("\\minuscoloncolon","\\Eqcolon"),Je("\\coloncolonapprox","\\Colonapprox"),Je("\\coloncolonsim","\\Colonsim"),Je("\\notni","\\mathrel{\\char`\u220c}"),Je("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Je("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Je("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Je("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Je("\\varlimsup","\\DOTSB\\operatorname*{\\overline{\\text{lim}}}"),Je("\\varliminf","\\DOTSB\\operatorname*{\\underline{\\text{lim}}}"),Je("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{\\text{lim}}}"),Je("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{\\text{lim}}}"),Je("\\centerdot","{\\medspace\\rule{0.167em}{0.189em}\\medspace}"),Je("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Je("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Je("\\plim","\\DOTSB\\operatorname*{plim}"),Je("\\leftmodels","\\mathop{\\reflectbox{$\\models$}}"),Je("\\bra","\\mathinner{\\langle{#1}|}"),Je("\\ket","\\mathinner{|{#1}\\rangle}"),Je("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Je("\\Bra","\\left\\langle#1\\right|"),Je("\\Ket","\\left|#1\\right\\rangle");const it=(e,t)=>{const r=`}\\,\\middle${"|"===t[0]?"\\vert":"\\Vert"}\\,{`;return e.slice(0,t.index)+r+e.slice(t.index+t[0].length)};Je("\\Braket",(function(e){let t=nt(e);const r=/\|\||\||\\\|/g;let n;for(;null!==(n=r.exec(t));)t=it(t,n);return"\\left\\langle{"+t+"}\\right\\rangle"})),Je("\\Set",(function(e){let t=nt(e);const r=/\|\||\||\\\|/.exec(t);return r&&(t=it(t,r)),"\\left\\{\\:{"+t+"}\\:\\right\\}"})),Je("\\set",(function(e){return"\\{{"+nt(e).replace(/\|/,"}\\mid{")+"}\\}"})),Je("\\angln","{\\angl n}"),Je("\\odv","\\@ifstar\\odv@next\\odv@numerator"),Je("\\odv@numerator","\\frac{\\mathrm{d}#1}{\\mathrm{d}#2}"),Je("\\odv@next","\\frac{\\mathrm{d}}{\\mathrm{d}#2}#1"),Je("\\pdv","\\@ifstar\\pdv@next\\pdv@numerator");const st=e=>{const t=e[0][0].text,r=Qe(e[1]).split(","),n=String(r.length),a="1"===n?"\\partial":`\\partial^${n}`;let o="";return r.map((e=>{o+="\\partial "+e.trim()+"\\,"})),[t,a,o.replace(/\\,$/,"")]};Je("\\pdv@numerator",(function(e){const[t,r,n]=st(e.consumeArgs(2));return`\\frac{${r} ${t}}{${n}}`})),Je("\\pdv@next",(function(e){const[t,r,n]=st(e.consumeArgs(2));return`\\frac{${r}}{${n}} ${t}`})),Je("\\upalpha","\\up@greek{\\alpha}"),Je("\\upbeta","\\up@greek{\\beta}"),Je("\\upgamma","\\up@greek{\\gamma}"),Je("\\updelta","\\up@greek{\\delta}"),Je("\\upepsilon","\\up@greek{\\epsilon}"),Je("\\upzeta","\\up@greek{\\zeta}"),Je("\\upeta","\\up@greek{\\eta}"),Je("\\uptheta","\\up@greek{\\theta}"),Je("\\upiota","\\up@greek{\\iota}"),Je("\\upkappa","\\up@greek{\\kappa}"),Je("\\uplambda","\\up@greek{\\lambda}"),Je("\\upmu","\\up@greek{\\mu}"),Je("\\upnu","\\up@greek{\\nu}"),Je("\\upxi","\\up@greek{\\xi}"),Je("\\upomicron","\\up@greek{\\omicron}"),Je("\\uppi","\\up@greek{\\pi}"),Je("\\upalpha","\\up@greek{\\alpha}"),Je("\\uprho","\\up@greek{\\rho}"),Je("\\upsigma","\\up@greek{\\sigma}"),Je("\\uptau","\\up@greek{\\tau}"),Je("\\upupsilon","\\up@greek{\\upsilon}"),Je("\\upphi","\\up@greek{\\phi}"),Je("\\upchi","\\up@greek{\\chi}"),Je("\\uppsi","\\up@greek{\\psi}"),Je("\\upomega","\\up@greek{\\omega}"),Je("\\invamp",'\\mathbin{\\char"214b}'),Je("\\parr",'\\mathbin{\\char"214b}'),Je("\\with",'\\mathbin{\\char"26}'),Je("\\multimapinv",'\\mathrel{\\char"27dc}'),Je("\\multimapboth",'\\mathrel{\\char"29df}'),Je("\\scoh",'{\\mkern5mu\\char"2322\\mkern5mu}'),Je("\\sincoh",'{\\mkern5mu\\char"2323\\mkern5mu}'),Je("\\coh",'{\\mkern5mu\\rule{}{0.7em}\\mathrlap{\\smash{\\raise2mu{\\char"2322}}}\n{\\smash{\\lower4mu{\\char"2323}}}\\mkern5mu}'),Je("\\incoh",'{\\mkern5mu\\rule{}{0.7em}\\mathrlap{\\smash{\\raise2mu{\\char"2323}}}\n{\\smash{\\lower4mu{\\char"2322}}}\\mkern5mu}'),Je("\\standardstate","\\text{\\tiny\\char`\u29b5}"),Je("\\ce",(function(e){return lt(e.consumeArgs(1)[0],"ce")})),Je("\\pu",(function(e){return lt(e.consumeArgs(1)[0],"pu")})),Je("\\uniDash","{\\rule{0.672em}{0.06em}}"),Je("\\triDash","{\\rule{0.15em}{0.06em}\\kern2mu\\rule{0.15em}{0.06em}\\kern2mu\\rule{0.15em}{0.06em}}"),Je("\\tripleDash","\\kern0.075em\\raise0.25em{\\triDash}\\kern0.075em"),Je("\\tripleDashOverLine","\\kern0.075em\\mathrlap{\\raise0.125em{\\uniDash}}\\raise0.34em{\\triDash}\\kern0.075em"),Je("\\tripleDashOverDoubleLine","\\kern0.075em\\mathrlap{\\mathrlap{\\raise0.48em{\\triDash}}\\raise0.27em{\\uniDash}}{\\raise0.05em{\\uniDash}}\\kern0.075em"),Je("\\tripleDashBetweenDoubleLine","\\kern0.075em\\mathrlap{\\mathrlap{\\raise0.48em{\\uniDash}}\\raise0.27em{\\triDash}}{\\raise0.05em{\\uniDash}}\\kern0.075em");var lt=function(e,t){for(var r="",n=e.length&&e[e.length-1].loc.start,a=e.length-1;a>=0;a--)e[a].loc.start>n&&(r+=" ",n=e[a].loc.start),r+=e[a].text,n+=e[a].text.length;return ut.go(ct.go(r,t))},ct={go:function(e,t){if(!e)return[];void 0===t&&(t="ce");var r,n="0",a={};a.parenthesisLevel=0,e=(e=(e=e.replace(/\n/g," ")).replace(/[\u2212\u2013\u2014\u2010]/g,"-")).replace(/[\u2026]/g,"...");for(var o=10,i=[];;){r!==e?(o=10,r=e):o--;var s=ct.stateMachines[t],l=s.transitions[n]||s.transitions["*"];e:for(var c=0;c<l.length;c++){var u=ct.patterns.match_(l[c].pattern,e);if(u){for(var d=l[c].task,p=0;p<d.action_.length;p++){var m;if(s.actions[d.action_[p].type_])m=s.actions[d.action_[p].type_](a,u.match_,d.action_[p].option);else{if(!ct.actions[d.action_[p].type_])throw["MhchemBugA","mhchem bug A. Please report. ("+d.action_[p].type_+")"];m=ct.actions[d.action_[p].type_](a,u.match_,d.action_[p].option)}ct.concatArray(i,m)}if(n=d.nextState||n,!(e.length>0))return i;if(d.revisit||(e=u.remainder),!d.toContinue)break e}}if(o<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Array.isArray(t))for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:([eE]|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return t&&t[0]?{match_:t.splice(1),remainder:e.substr(t[0].length)}:null},"(-)(9)^(-9)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return t&&t[0]?{match_:t.splice(1),remainder:e.substr(t[0].length)}:null},"state of aggregation $":function(e){var t=ct.patterns.findObserveGroups(e,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(t&&t.remainder.match(/^($|[\s,;\)\]\}])/))return t;var r=e.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return r?{match_:r[0],remainder:e.substr(r[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(e){return ct.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return ct.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return ct.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e){return ct.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return ct.patterns.findObserveGroups(e,"_{","","","}")},"_($...$)":function(e){return ct.patterns.findObserveGroups(e,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return ct.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e){return ct.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(e){return ct.patterns.findObserveGroups(e,"","{","}","")},"{(...)}":function(e){return ct.patterns.findObserveGroups(e,"{","","","}")},"$...$":function(e){return ct.patterns.findObserveGroups(e,"","$","$","")},"${(...)}$":function(e){return ct.patterns.findObserveGroups(e,"${","","","}$")},"$(...)$":function(e){return ct.patterns.findObserveGroups(e,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return ct.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return ct.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return ct.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return ct.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return ct.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return ct.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return ct.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return ct.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return ct.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return ct.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return ct.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return ct.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/))return{match_:t[0],remainder:e.substr(t[0].length)};var r=ct.patterns.findObserveGroups(e,"","$","$","");return r&&(t=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/))?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,r,n,a,o,i,s,l,c){var u=function(e,t){if("string"==typeof t)return 0!==e.indexOf(t)?null:t;var r=e.match(t);return r?r[0]:null},d=u(e,t);if(null===d)return null;if(e=e.substr(d.length),null===(d=u(e,r)))return null;var p=function(e,t,r){for(var n=0;t<e.length;){var a=e.charAt(t),o=u(e.substr(t),r);if(null!==o&&0===n)return{endMatchBegin:t,endMatchEnd:t+o.length};if("{"===a)n++;else if("}"===a){if(0===n)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];n--}t++}return null}(e,d.length,n||a);if(null===p)return null;var m=e.substring(0,n?p.endMatchEnd:p.endMatchBegin);if(o||i){var h=this.findObserveGroups(e.substr(p.endMatchEnd),o,i,s,l);if(null===h)return null;var f=[m,h.match_];return{match_:c?f.join(""):f,remainder:h.remainder}}return{match_:m,remainder:e.substr(p.endMatchEnd)}},match_:function(e,t){var r=ct.patterns.patterns[e];if(void 0===r)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if("function"==typeof r)return ct.patterns.patterns[e](t);var n=t.match(r);return n?{match_:n[2]?[n[1],n[2]]:n[1]?n[1]:n[0],remainder:t.substr(n[0].length)}:null}},actions:{"a=":function(e,t){e.a=(e.a||"")+t},"b=":function(e,t){e.b=(e.b||"")+t},"p=":function(e,t){e.p=(e.p||"")+t},"o=":function(e,t){e.o=(e.o||"")+t},"q=":function(e,t){e.q=(e.q||"")+t},"d=":function(e,t){e.d=(e.d||"")+t},"rm=":function(e,t){e.rm=(e.rm||"")+t},"text=":function(e,t){e.text_=(e.text_||"")+t},insert:function(e,t,r){return{type_:r}},"insert+p1":function(e,t,r){return{type_:r,p1:t}},"insert+p1+p2":function(e,t,r){return{type_:r,p1:t[0],p2:t[1]}},copy:function(e,t){return t},rm:function(e,t){return{type_:"rm",p1:t||""}},text:function(e,t){return ct.go(t,"text")},"{text}":function(e,t){var r=["{"];return ct.concatArray(r,ct.go(t,"text")),r.push("}"),r},"tex-math":function(e,t){return ct.go(t,"tex-math")},"tex-math tight":function(e,t){return ct.go(t,"tex-math tight")},bond:function(e,t,r){return{type_:"bond",kind_:r||t}},"color0-output":function(e,t){return{type_:"color0",color:t[0]}},ce:function(e,t){return ct.go(t)},"1/2":function(e,t){var r=[];t.match(/^[+\-]/)&&(r.push(t.substr(0,1)),t=t.substr(1));var n=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return n[1]=n[1].replace(/\$/g,""),r.push({type_:"frac",p1:n[1],p2:n[2]}),n[3]&&(n[3]=n[3].replace(/\$/g,""),r.push({type_:"tex-math",p1:n[3]})),r},"9,9":function(e,t){return ct.go(t,"9,9")}},createTransitions:function(e){var t,r,n,a,o={};for(t in e)for(r in e[t])for(n=r.split("|"),e[t][r].stateArray=n,a=0;a<n.length;a++)o[n[a]]=[];for(t in e)for(r in e[t])for(n=e[t][r].stateArray||[],a=0;a<n.length;a++){var i=e[t][r];if(i.action_){i.action_=[].concat(i.action_);for(var s=0;s<i.action_.length;s++)"string"==typeof i.action_[s]&&(i.action_[s]={type_:i.action_[s]})}else i.action_=[];for(var l=t.split("|"),c=0;c<l.length;c++)if("*"===n[a])for(var u in o)o[u].push({pattern:l[c],task:i});else o[n[a]].push({pattern:l[c],task:i})}return o},stateMachines:{}};ct.stateMachines={ce:{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var r;if((e.d||"").match(/^[0-9]+$/)){var n=e.d;e.d=void 0,r=this.output(e),e.b=n}else r=this.output(e);return ct.actions["o="](e,t),r},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var r=[];return ct.concatArray(r,this.output(e)),ct.concatArray(r,ct.actions.bond(e,t,"-")),r}e.d=t},"- after o/d":function(e,t,r){var n=ct.patterns.match_("orbital",e.o||""),a=ct.patterns.match_("one lowercase greek letter $",e.o||""),o=ct.patterns.match_("one lowercase latin letter $",e.o||""),i=ct.patterns.match_("$one lowercase latin letter$ $",e.o||""),s="-"===t&&(n&&""===n.remainder||a||o||i);!s||e.a||e.b||e.p||e.d||e.q||n||!o||(e.o="$"+e.o+"$");var l=[];return s?(ct.concatArray(l,this.output(e)),l.push({type_:"hyphen"})):(n=ct.patterns.match_("digits",e.d||""),r&&n&&""===n.remainder?(ct.concatArray(l,ct.actions["d="](e,t)),ct.concatArray(l,this.output(e))):(ct.concatArray(l,this.output(e)),ct.concatArray(l,ct.actions.bond(e,t,"-")))),l},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:ct.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,"");return r!==t&&0===e.parenthesisLevel?{type_:"comma enumeration L",p1:r}:{type_:"comma enumeration M",p1:r}},output:function(e,t,r){var n,a,o;e.r?(a="M"===e.rdt?ct.go(e.rd,"tex-math"):"T"===e.rdt?[{type_:"text",p1:e.rd||""}]:ct.go(e.rd),o="M"===e.rqt?ct.go(e.rq,"tex-math"):"T"===e.rqt?[{type_:"text",p1:e.rq||""}]:ct.go(e.rq),n={type_:"arrow",r:e.r,rd:a,rq:o}):(n=[],(e.a||e.b||e.p||e.o||e.q||e.d||r)&&(e.sb&&n.push({type_:"entitySkip"}),e.o||e.q||e.d||e.b||e.p||2===r?e.o||e.q||e.d||!e.b&&!e.p?e.o&&"kv"===e.dType&&ct.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&"kv"===e.dType&&!e.q&&(e.dType=void 0):(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):(e.o=e.a,e.a=void 0),n.push({type_:"chemfive",a:ct.go(e.a,"a"),b:ct.go(e.b,"bd"),p:ct.go(e.p,"pq"),o:ct.go(e.o,"o"),q:ct.go(e.q,"pq"),d:ct.go(e.d,"oxidation"===e.dType?"oxidation":"bd"),dType:e.dType})));for(var i in e)"parenthesisLevel"!==i&&"beginsWithBond"!==i&&delete e[i];return n},"oxidation-output":function(e,t){var r=["{"];return ct.concatArray(r,ct.go(t,"oxidation")),r.push("}"),r},"frac-output":function(e,t){return{type_:"frac-ce",p1:ct.go(t[0]),p2:ct.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:ct.go(t[0]),p2:ct.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:ct.go(t[0]),p2:ct.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:ct.go(t[0]),p2:ct.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:ct.go(t[1])}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,r){return{type_:"operator",kind_:r||t}}}},a:{transitions:ct.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:ct.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var r in e)delete e[r];return t}}}},pq:{transitions:ct.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:ct.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:ct.go(t[1],"pq")}}}},bd:{transitions:ct.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:ct.go(t[1],"bd")}}}},oxidation:{transitions:ct.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t||""}}}},"tex-math":{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"tex-math tight":{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"9,9":{transitions:ct.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var r=[];return"+-"===t[0]||"+/-"===t[0]?r.push("\\pm "):t[0]&&r.push(t[0]),t[1]&&(ct.concatArray(r,ct.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?ct.concatArray(r,ct.go(t[2],"pu-9,9")):r.push(t[2])),t[3]=t[4]||t[3],t[3]&&(t[3]=t[3].trim(),"e"===t[3]||"*"===t[3].substr(0,1)?r.push({type_:"cdot"}):r.push({type_:"times"}))),t[3]&&r.push("10^{"+t[5]+"}"),r},"number^":function(e,t){var r=[];return"+-"===t[0]||"+/-"===t[0]?r.push("\\pm "):t[0]&&r.push(t[0]),ct.concatArray(r,ct.go(t[1],"pu-9,9")),r.push("^{"+t[2]+"}"),r},operator:function(e,t,r){return{type_:"operator",kind_:r||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,r=ct.patterns.match_("{(...)}",e.d||"");r&&""===r.remainder&&(e.d=r.match_);var n=ct.patterns.match_("{(...)}",e.q||"");if(n&&""===n.remainder&&(e.q=n.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var a={d:ct.go(e.d,"pu"),q:ct.go(e.q,"pu")};"//"===e.o?t={type_:"pu-frac",p1:a.d,p2:a.q}:(t=a.d,a.d.length>1||a.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),ct.concatArray(t,a.q))}else t=ct.go(e.d,"pu-2");for(var o in e)delete e[o];return t}}},"pu-2":{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var r=ct.patterns.match_("{(...)}",e.rm||"");t=r&&""===r.remainder?ct.go(r.match_,"pu"):{type_:"rm",p1:e.rm}}for(var n in e)delete e[n];return t}}},"pu-9,9":{transitions:ct.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var r=e.text_.length%3;0===r&&(r=3);for(var n=e.text_.length-3;n>0;n-=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,r)),t.reverse()}else t.push(e.text_);for(var a in e)delete e[a];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var r=e.text_.length-3,n=0;n<r;n+=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(n))}else t.push(e.text_);for(var a in e)delete e[a];return t}}}};var ut={go:function(e,t){if(!e)return"";for(var r="",n=!1,a=0;a<e.length;a++){var o=e[a];"string"==typeof o?r+=o:(r+=ut._go2(o),"1st-level escape"===o.type_&&(n=!0))}return t||n||!r||(r="{"+r+"}"),r},_goInner:function(e){return e?ut.go(e,!0):e},_go2:function(e){var t;switch(e.type_){case"chemfive":t="";var r={a:ut._goInner(e.a),b:ut._goInner(e.b),p:ut._goInner(e.p),o:ut._goInner(e.o),q:ut._goInner(e.q),d:ut._goInner(e.d)};r.a&&(r.a.match(/^[+\-]/)&&(r.a="{"+r.a+"}"),t+=r.a+"\\,"),(r.b||r.p)&&(t+="{\\vphantom{X}}",t+="^{\\hphantom{"+(r.b||"")+"}}_{\\hphantom{"+(r.p||"")+"}}",t+="{\\vphantom{X}}",t+="^{\\vphantom{2}\\mathllap{"+(r.b||"")+"}}",t+="_{\\vphantom{2}\\mathllap{"+(r.p||"")+"}}"),r.o&&(r.o.match(/^[+\-]/)&&(r.o="{"+r.o+"}"),t+=r.o),"kv"===e.dType?((r.d||r.q)&&(t+="{\\vphantom{X}}"),r.d&&(t+="^{"+r.d+"}"),r.q&&(t+="_{"+r.q+"}")):"oxidation"===e.dType?(r.d&&(t+="{\\vphantom{X}}",t+="^{"+r.d+"}"),r.q&&(t+="{{}}",t+="_{"+r.q+"}")):(r.q&&(t+="{{}}",t+="_{"+r.q+"}"),r.d&&(t+="{{}}",t+="^{"+r.d+"}"));break;case"rm":case"roman numeral":t="\\mathrm{"+e.p1+"}";break;case"text":e.p1.match(/[\^_]/)?(e.p1=e.p1.replace(" ","~").replace("-","\\text{-}"),t="\\mathrm{"+e.p1+"}"):t="\\text{"+e.p1+"}";break;case"state of aggregation":t="\\mskip2mu "+ut._goInner(e.p1);break;case"state of aggregation subscript":t="\\mskip1mu "+ut._goInner(e.p1);break;case"bond":if(!(t=ut._getBond(e.kind_)))throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+e.kind_+")"];break;case"frac":var n="\\frac{"+e.p1+"}{"+e.p2+"}";t="\\mathchoice{\\textstyle"+n+"}{"+n+"}{"+n+"}{"+n+"}";break;case"pu-frac":var a="\\frac{"+ut._goInner(e.p1)+"}{"+ut._goInner(e.p2)+"}";t="\\mathchoice{\\textstyle"+a+"}{"+a+"}{"+a+"}{"+a+"}";break;case"tex-math":case"1st-level escape":t=e.p1+" ";break;case"frac-ce":t="\\frac{"+ut._goInner(e.p1)+"}{"+ut._goInner(e.p2)+"}";break;case"overset":t="\\overset{"+ut._goInner(e.p1)+"}{"+ut._goInner(e.p2)+"}";break;case"underset":t="\\underset{"+ut._goInner(e.p1)+"}{"+ut._goInner(e.p2)+"}";break;case"underbrace":t="\\underbrace{"+ut._goInner(e.p1)+"}_{"+ut._goInner(e.p2)+"}";break;case"color":t="{\\color{"+e.color1+"}{"+ut._goInner(e.color2)+"}}";break;case"color0":t="\\color{"+e.color+"}";break;case"arrow":var o={rd:ut._goInner(e.rd),rq:ut._goInner(e.rq)},i=ut._getArrow(e.r);o.rq&&(i+="[{\\rm "+o.rq+"}]"),t=i+=o.rd?"{\\rm "+o.rd+"}":"{}";break;case"operator":t=ut._getOperator(e.kind_);break;case"space":t=" ";break;case"entitySkip":case"pu-space-1":t="~";break;case"pu-space-2":t="\\mkern3mu ";break;case"1000 separator":t="\\mkern2mu ";break;case"commaDecimal":t="{,}";break;case"comma enumeration L":t="{"+e.p1+"}\\mkern6mu ";break;case"comma enumeration M":t="{"+e.p1+"}\\mkern3mu ";break;case"comma enumeration S":t="{"+e.p1+"}\\mkern1mu ";break;case"hyphen":t="\\text{-}";break;case"addition compound":t="\\,{\\cdot}\\,";break;case"electron dot":t="\\mkern1mu \\text{\\textbullet}\\mkern1mu ";break;case"KV x":t="{\\times}";break;case"prime":t="\\prime ";break;case"cdot":t="\\cdot ";break;case"tight cdot":t="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t="\\times ";break;case"circa":t="{\\sim}";break;case"^":t="uparrow";break;case"v":t="downarrow";break;case"ellipsis":t="\\ldots ";break;case"/":t="/";break;case" / ":t="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return t},_getArrow:function(e){switch(e){case"->":case"\u2192":case"\u27f6":return"\\yields";case"<-":return"\\yieldsLeft";case"<->":return"\\mesomerism";case"<--\x3e":return"\\yieldsLeftRight";case"<=>":case"\u21cc":return"\\equilibrium";case"<=>>":return"\\equilibriumRight";case"<<=>":return"\\equilibriumLeft";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":case"1":return"{-}";case"=":case"2":return"{=}";case"#":case"3":return"{\\equiv}";case"~":return"{\\tripleDash}";case"~-":return"{\\tripleDashOverLine}";case"~=":case"~--":return"{\\tripleDashOverDoubleLine}";case"-~-":return"{\\tripleDashBetweenDoubleLine}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":case"$\\approx$":return" {}\\approx{} ";case"v":case"(v)":return" \\downarrow{} ";case"^":case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function dt(e){const t=[];e.consumeSpaces();let r=e.fetch().text;for("\\relax"===r&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);"\\hline"===r||"\\hdashline"===r;)e.consume(),t.push("\\hdashline"===r),e.consumeSpaces(),r=e.fetch().text;return t}Je("\\darr","\\downarrow"),Je("\\dArr","\\Downarrow"),Je("\\Darr","\\Downarrow"),Je("\\lang","\\langle"),Je("\\rang","\\rangle"),Je("\\uarr","\\uparrow"),Je("\\uArr","\\Uparrow"),Je("\\Uarr","\\Uparrow"),Je("\\N","\\mathbb{N}"),Je("\\R","\\mathbb{R}"),Je("\\Z","\\mathbb{Z}"),Je("\\alef","\\aleph"),Je("\\alefsym","\\aleph"),Je("\\bull","\\bullet"),Je("\\clubs","\\clubsuit"),Je("\\cnums","\\mathbb{C}"),Je("\\Complex","\\mathbb{C}"),Je("\\Dagger","\\ddagger"),Je("\\diamonds","\\diamondsuit"),Je("\\empty","\\emptyset"),Je("\\exist","\\exists"),Je("\\harr","\\leftrightarrow"),Je("\\hArr","\\Leftrightarrow"),Je("\\Harr","\\Leftrightarrow"),Je("\\hearts","\\heartsuit"),Je("\\image","\\Im"),Je("\\infin","\\infty"),Je("\\isin","\\in"),Je("\\larr","\\leftarrow"),Je("\\lArr","\\Leftarrow"),Je("\\Larr","\\Leftarrow"),Je("\\lrarr","\\leftrightarrow"),Je("\\lrArr","\\Leftrightarrow"),Je("\\Lrarr","\\Leftrightarrow"),Je("\\natnums","\\mathbb{N}"),Je("\\plusmn","\\pm"),Je("\\rarr","\\rightarrow"),Je("\\rArr","\\Rightarrow"),Je("\\Rarr","\\Rightarrow"),Je("\\real","\\Re"),Je("\\reals","\\mathbb{R}"),Je("\\Reals","\\mathbb{R}"),Je("\\sdot","\\cdot"),Je("\\sect","\\S"),Je("\\spades","\\spadesuit"),Je("\\sub","\\subset"),Je("\\sube","\\subseteq"),Je("\\supe","\\supseteq"),Je("\\thetasym","\\vartheta"),Je("\\weierp","\\wp"),Je("\\quantity","{\\left\\{ #1 \\right\\}}"),Je("\\qty","{\\left\\{ #1 \\right\\}}"),Je("\\pqty","{\\left( #1 \\right)}"),Je("\\bqty","{\\left[ #1 \\right]}"),Je("\\vqty","{\\left\\vert #1 \\right\\vert}"),Je("\\Bqty","{\\left\\{ #1 \\right\\}}"),Je("\\absolutevalue","{\\left\\vert #1 \\right\\vert}"),Je("\\abs","{\\left\\vert #1 \\right\\vert}"),Je("\\norm","{\\left\\Vert #1 \\right\\Vert}"),Je("\\evaluated","{\\left.#1 \\right\\vert}"),Je("\\eval","{\\left.#1 \\right\\vert}"),Je("\\order","{\\mathcal{O} \\left( #1 \\right)}"),Je("\\commutator","{\\left[ #1 , #2 \\right]}"),Je("\\comm","{\\left[ #1 , #2 \\right]}"),Je("\\anticommutator","{\\left\\{ #1 , #2 \\right\\}}"),Je("\\acomm","{\\left\\{ #1 , #2 \\right\\}}"),Je("\\poissonbracket","{\\left\\{ #1 , #2 \\right\\}}"),Je("\\pb","{\\left\\{ #1 , #2 \\right\\}}"),Je("\\vectorbold","{\\boldsymbol{ #1 }}"),Je("\\vb","{\\boldsymbol{ #1 }}"),Je("\\vectorarrow","{\\vec{\\boldsymbol{ #1 }}}"),Je("\\va","{\\vec{\\boldsymbol{ #1 }}}"),Je("\\vectorunit","{{\\boldsymbol{\\hat{ #1 }}}}"),Je("\\vu","{{\\boldsymbol{\\hat{ #1 }}}}"),Je("\\dotproduct","\\mathbin{\\boldsymbol\\cdot}"),Je("\\vdot","{\\boldsymbol\\cdot}"),Je("\\crossproduct","\\mathbin{\\boldsymbol\\times}"),Je("\\cross","\\mathbin{\\boldsymbol\\times}"),Je("\\cp","\\mathbin{\\boldsymbol\\times}"),Je("\\gradient","{\\boldsymbol\\nabla}"),Je("\\grad","{\\boldsymbol\\nabla}"),Je("\\divergence","{\\grad\\vdot}"),Je("\\curl","{\\grad\\cross}"),Je("\\laplacian","\\nabla^2"),Je("\\tr","{\\operatorname{tr}}"),Je("\\Tr","{\\operatorname{Tr}}"),Je("\\rank","{\\operatorname{rank}}"),Je("\\erf","{\\operatorname{erf}}"),Je("\\Res","{\\operatorname{Res}}"),Je("\\principalvalue","{\\mathcal{P}}"),Je("\\pv","{\\mathcal{P}}"),Je("\\PV","{\\operatorname{P.V.}}"),Je("\\qqtext","{\\quad\\text{ #1 }\\quad}"),Je("\\qq","{\\quad\\text{ #1 }\\quad}"),Je("\\qcomma","{\\text{,}\\quad}"),Je("\\qc","{\\text{,}\\quad}"),Je("\\qcc","{\\quad\\text{c.c.}\\quad}"),Je("\\qif","{\\quad\\text{if}\\quad}"),Je("\\qthen","{\\quad\\text{then}\\quad}"),Je("\\qelse","{\\quad\\text{else}\\quad}"),Je("\\qotherwise","{\\quad\\text{otherwise}\\quad}"),Je("\\qunless","{\\quad\\text{unless}\\quad}"),Je("\\qgiven","{\\quad\\text{given}\\quad}"),Je("\\qusing","{\\quad\\text{using}\\quad}"),Je("\\qassume","{\\quad\\text{assume}\\quad}"),Je("\\qsince","{\\quad\\text{since}\\quad}"),Je("\\qlet","{\\quad\\text{let}\\quad}"),Je("\\qfor","{\\quad\\text{for}\\quad}"),Je("\\qall","{\\quad\\text{all}\\quad}"),Je("\\qeven","{\\quad\\text{even}\\quad}"),Je("\\qodd","{\\quad\\text{odd}\\quad}"),Je("\\qinteger","{\\quad\\text{integer}\\quad}"),Je("\\qand","{\\quad\\text{and}\\quad}"),Je("\\qor","{\\quad\\text{or}\\quad}"),Je("\\qas","{\\quad\\text{as}\\quad}"),Je("\\qin","{\\quad\\text{in}\\quad}"),Je("\\differential","{\\text{d}}"),Je("\\dd","{\\text{d}}"),Je("\\derivative","{\\frac{\\text{d}{ #1 }}{\\text{d}{ #2 }}}"),Je("\\dv","{\\frac{\\text{d}{ #1 }}{\\text{d}{ #2 }}}"),Je("\\partialderivative","{\\frac{\\partial{ #1 }}{\\partial{ #2 }}}"),Je("\\variation","{\\delta}"),Je("\\var","{\\delta}"),Je("\\functionalderivative","{\\frac{\\delta{ #1 }}{\\delta{ #2 }}}"),Je("\\fdv","{\\frac{\\delta{ #1 }}{\\delta{ #2 }}}"),Je("\\innerproduct","{\\left\\langle {#1} \\mid { #2} \\right\\rangle}"),Je("\\outerproduct","{\\left\\vert { #1 } \\right\\rangle\\left\\langle { #2} \\right\\vert}"),Je("\\dyad","{\\left\\vert { #1 } \\right\\rangle\\left\\langle { #2} \\right\\vert}"),Je("\\ketbra","{\\left\\vert { #1 } \\right\\rangle\\left\\langle { #2} \\right\\vert}"),Je("\\op","{\\left\\vert { #1 } \\right\\rangle\\left\\langle { #2} \\right\\vert}"),Je("\\expectationvalue","{\\left\\langle {#1 } \\right\\rangle}"),Je("\\expval","{\\left\\langle {#1 } \\right\\rangle}"),Je("\\ev","{\\left\\langle {#1 } \\right\\rangle}"),Je("\\matrixelement","{\\left\\langle{ #1 }\\right\\vert{ #2 }\\left\\vert{#3}\\right\\rangle}"),Je("\\matrixel","{\\left\\langle{ #1 }\\right\\vert{ #2 }\\left\\vert{#3}\\right\\rangle}"),Je("\\mel","{\\left\\langle{ #1 }\\right\\vert{ #2 }\\left\\vert{#3}\\right\\rangle}");const pt=e=>{if(!e.parser.settings.displayMode)throw new t(`{${e.envName}} can be used only in display mode.`)},mt=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/,ht=e=>{let t=e.get("\\arraystretch");"string"!=typeof t&&(t=Qe(t.tokens)),t=isNaN(t)?null:Number(t);let r=e.get("\\arraycolsep");"string"!=typeof r&&(r=Qe(r.tokens));const n=mt.exec(r);return[t,n?{number:+(n[1]+n[2]),unit:n[3]}:null]},ft=e=>{let r="";for(let n=0;n<e.length;n++)if("label"===e[n].type){if(r)throw new t("Multiple \\labels in one row");r=e[n].string}return r};function gt(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function xt(e,{cols:r,envClasses:n,autoTag:a,singleRow:o,emptySingleRow:i,maxNumCols:s,leqno:l,arraystretch:c,arraycolsep:u},d){const p=n&&n.includes("bordermatrix")?"}":"\\end";e.gullet.beginGroup(),o||e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();let m=[];const h=[m],f=[],g=[],x=[],b=null!=a?[]:void 0;function w(){a&&e.gullet.macros.set("\\@eqnsw","1",!0)}function y(){b&&(e.gullet.macros.get("\\df@tag")?(b.push(e.subparse([new He("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):b.push(Boolean(a)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(w(),x.push(dt(e));;){let r=e.parseExpression(!1,o?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),r={type:"ordgroup",mode:e.mode,body:r,semisimple:!0},m.push(r);const a=e.fetch().text;if("&"===a){if(s&&m.length===s){if(!n.includes("array"))throw new t(2===s?"The split environment accepts no more than two columns":"The equation environment accepts only one column",e.nextToken);if(e.settings.strict)throw new t("Too few columns specified in the {array} column argument.",e.nextToken)}e.consume()}else{if(a===p){y(),1===m.length&&0===r.body.length&&(h.length>1||!i)&&h.pop(),g.push(ft(r.body)),x.length<h.length+1&&x.push([]);break}if("\\\\"!==a)throw new t("Expected & or \\\\ or \\cr or "+p,e.nextToken);{let t;e.consume()," "!==e.gullet.future().text&&(t=e.parseSizeGroup(!0)),f.push(t?t.value:null),y(),g.push(ft(r.body)),x.push(dt(e)),m=[],h.push(m),w()}}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,body:h,cols:r,rowGaps:f,hLinesBeforeRow:x,envClasses:n,autoTag:a,scriptLevel:d,tags:b,labels:g,leqno:l,arraystretch:c,arraycolsep:u}}function bt(e){return"d"===e.slice(0,1)?"display":"text"}const wt={c:"center ",l:"left ",r:"right "},yt=e=>{const t=new T.MathNode("mtd",[]);return t.style={padding:"0",width:"50%"},e.envClasses.includes("multline")&&(t.style.width="7.5%"),t},vt=function(e,t){const r=[],n=e.body.length,a=e.hLinesBeforeRow;for(let o=0;o<n;o++){const i=e.body[o],s=[],l="text"===e.scriptLevel?We:"script"===e.scriptLevel?Xe:Ve;for(let r=0;r<i.length;r++){const a=new T.MathNode("mtd",[de(i[r],t.withLevel(l))]);if(e.envClasses.includes("multline")){const e=0===o?"left":o===n-1?"right":"center";a.setAttribute("columnalign",e),"center"!==e&&a.classes.push("tml-"+e)}s.push(a)}const c=e.body[0].length;for(let e=0;e<c-i.length;e++)s.push(new T.MathNode("mtd",[],t));if(e.autoTag){const r=e.tags[o];let n;!0===r?n=new T.MathNode("mtext",[new w(["tml-eqn"])]):!1===r?n=new T.MathNode("mtext",[],[]):(n=ue(r[0].body,t.withLevel(l),!0),n=ae(n),n.classes=["tml-tag"]),n&&(s.unshift(yt(e)),s.push(yt(e)),e.leqno?(s[0].children.push(n),s[0].classes.push("tml-left")):(s[s.length-1].children.push(n),s[s.length-1].classes.push("tml-right")))}const u=new T.MathNode("mtr",s,[]),d=e.labels.shift();d&&e.tags&&e.tags[o]&&(u.setAttribute("id",d),Array.isArray(e.tags[o])&&u.classes.push("tml-tageqn")),0===o&&a[0].length>0&&(2===a[0].length?u.children.forEach((e=>{e.style.borderTop="0.15em double"})):u.children.forEach((e=>{e.style.borderTop=a[0][0]?"0.06em dashed":"0.06em solid"}))),a[o+1].length>0&&(2===a[o+1].length?u.children.forEach((e=>{e.style.borderBottom="0.15em double"})):u.children.forEach((e=>{e.style.borderBottom=a[o+1][0]?"0.06em dashed":"0.06em solid"})));let p=!0;for(let e=0;e<u.children.length;e++){const t=u.children[e].children[0];if(!t||"mpadded"!==t.type||"0px"!==t.attributes.height){p=!1;break}}if(p)for(let e=0;e<u.children.length;e++)u.children[e].style.paddingTop="0",u.children[e].style.paddingBottom="0";r.push(u)}if(e.arraystretch&&1!==e.arraystretch){const t=String(1.4*e.arraystretch-.8)+"ex";for(let e=0;e<r.length;e++)for(let n=0;n<r[e].children.length;n++)r[e].children[n].style.paddingTop=t,r[e].children[n].style.paddingBottom=t}let o,i;if(e.envClasses.length>0&&(o=e.envClasses.includes("abut")||e.envClasses.includes("cases")?"0":e.envClasses.includes("small")?"0.1389":e.envClasses.includes("cd")?"0.25":"0.4",i="em"),e.arraycolsep){const r=Ne(e.arraycolsep,t);o=r.number.toFixed(4),i=r.unit}if(o){const t=0===r.length?0:r[0].children.length,n=(r,n)=>0===r&&0===n||r===t-1&&1===n?"0":"align"!==e.envClasses[0]?o:1===n?"0":e.autoTag?r%2?"1":"0":r%2?"0":"1";for(let e=0;e<r.length;e++)for(let t=0;t<r[e].children.length;t++)r[e].children[t].style.paddingLeft=`${n(t,0)}${i}`,r[e].children[t].style.paddingRight=`${n(t,1)}${i}`}if(0===e.envClasses.length)for(let e=0;e<r.length;e++)r[e].children[0].style.paddingLeft="0em",r[e].children.length===r[0].children.length&&(r[e].children[r[e].children.length-1].style.paddingRight="0em");if(e.envClasses.length>0){const t=e.envClasses.includes("align")||e.envClasses.includes("alignat");for(let n=0;n<r.length;n++){const a=r[n];if(t){for(let e=0;e<a.children.length;e++)a.children[e].classes=["tml-"+(e%2?"left":"right")];if(e.autoTag){const t=e.leqno?0:a.children.length-1;a.children[t].classes=["tml-"+(e.leqno?"left":"right")]}}if(a.children.length>1&&e.envClasses.includes("cases")&&(a.children[1].style.paddingLeft="1em"),e.envClasses.includes("cases")||e.envClasses.includes("subarray"))for(const e of a.children)e.classes.push("tml-left")}}let s=new T.MathNode("mtable",r);e.envClasses.length>0&&(e.envClasses.includes("jot")?s.classes.push("tml-jot"):e.envClasses.includes("small")&&s.classes.push("tml-small")),"display"===e.scriptLevel&&s.setAttribute("displaystyle","true"),(e.autoTag||e.envClasses.includes("multline"))&&(s.style.width="100%");let l="";if(e.cols&&e.cols.length>0){const t=e.cols;let r=!1,n=0,a=t.length;for(;"separator"===t[n].type;)n+=1;for(;"separator"===t[a-1].type;)a-=1;if("separator"===t[0].type){const e="separator"===t[1].type?"0.15em double":"|"===t[0].separator?"0.06em solid ":"0.06em dashed ";for(const t of s.children)t.children[0].style.borderLeft=e}let o=e.autoTag?0:-1;for(let e=n;e<a;e++)if("align"===t[e].type){const n=wt[t[e].align];l+=n,o+=1;for(const e of s.children)"center"!==n.trim()&&o<e.children.length&&(e.children[o].classes=["tml-"+n.trim()]);r=!0}else if("separator"===t[e].type){if(r){const r="separator"===t[e+1].type?"0.15em double":"|"===t[e].separator?"0.06em solid":"0.06em dashed";for(const e of s.children)o<e.children.length&&(e.children[o].style.borderRight=r)}r=!1}if("separator"===t[t.length-1].type){const e="separator"===t[t.length-2].type?"0.15em double":"|"===t[t.length-1].separator?"0.06em solid":"0.06em dashed";for(const t of s.children)t.children[t.children.length-1].style.borderRight=e,t.children[t.children.length-1].style.paddingRight="0.4em"}}return e.autoTag&&(l="left "+(l.length>0?l:"center ")+"right "),l&&s.setAttribute("columnalign",l.trim()),e.envClasses.includes("small")&&(s=new T.MathNode("mstyle",[s]),s.setAttribute("scriptlevel","1")),s},At=function(e,r){-1===e.envName.indexOf("ed")&&pt(e);const n="split"===e.envName,a=[],o=xt(e.parser,{cols:a,emptySingleRow:!0,autoTag:n?void 0:gt(e.envName),envClasses:["abut","jot"],maxNumCols:"split"===e.envName?2:void 0,leqno:e.parser.settings.leqno},"display");let i,s=0;const l=e.envName.indexOf("at")>-1;if(r[0]&&l){let e="";for(let t=0;t<r[0].body.length;t++){e+=Fe(r[0].body[t],"textord").text}if(isNaN(e))throw new t("The alignat enviroment requires a numeric first argument.");i=Number(e),s=2*i}o.body.forEach((function(e){if(l){const r=e.length/2;if(i<r)throw new t(`Too many math in a row: expected ${i}, but got ${r}`,e[0])}else s<e.length&&(s=e.length)}));for(let e=0;e<s;++e){let t="r";e%2==1&&(t="l"),a[e]={type:"align",align:t}}return"split"===e.envName||(l?o.envClasses.push("alignat"):o.envClasses[0]="align"),o};Be({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,r){const n=(Ie(r[0])?[r[0]]:Fe(r[0],"ordgroup").body).map((function(e){const r=$e(e).text;if(-1!=="lcr".indexOf(r))return{type:"align",align:r};if("|"===r)return{type:"separator",separator:"|"};if(":"===r)return{type:"separator",separator:":"};throw new t("Unknown column alignment: "+r,e)})),[a,o]=ht(e.parser.gullet.macros),i={cols:n,envClasses:["array"],maxNumCols:n.length,arraystretch:a,arraycolsep:o};return xt(e.parser,i,bt(e.envName))},mathmlBuilder:vt}),Be({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){const r={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")];let n="c";const a={envClasses:[],cols:[]};if("*"===e.envName.charAt(e.envName.length-1)){const r=e.parser;if(r.consumeSpaces(),"["===r.fetch().text){if(r.consume(),r.consumeSpaces(),n=r.fetch().text,-1==="lcr".indexOf(n))throw new t("Expected l or c or r",r.nextToken);r.consume(),r.consumeSpaces(),r.expect("]"),r.consume(),a.cols=[]}}const o=xt(e.parser,a,"text");o.cols=new Array(o.body[0].length).fill({type:"align",align:n});const[i,s]=ht(e.parser.gullet.macros);return o.arraystretch=i,!s||6===s&&"pt"===s||(o.arraycolsep=s),r?{type:"leftright",mode:e.mode,body:[o],left:r[0],right:r[1],rightColor:void 0}:o},mathmlBuilder:vt}),Be({type:"array",names:["bordermatrix"],props:{numArgs:0},handler(e){const t=xt(e.parser,{cols:[],envClasses:["bordermatrix"]},"text");return t.cols=new Array(t.body[0].length).fill({type:"align",align:"c"}),t.envClasses=[],t.arraystretch=1,"matrix"===e.envName?t:((e,t)=>{const r=e.body;r[0].shift();const n=new Array(r.length-1).fill().map((()=>[]));for(let e=1;e<r.length;e++){n[e-1].push(r[e].shift());const t=[];for(let n=0;n<r[e].length;n++)t.push(structuredClone(r[e][n]));n[e-1].push(Ue(t,"vphantom"))}const a=new Array(r.length).fill().map((()=>[]));for(let e=0;e<r[0].length;e++)a[0].push(structuredClone(r[0][e]));for(let e=1;e<r.length;e++)for(let t=0;t<r[0].length;t++)a[e].push(Ue(structuredClone(r[e][t]).body,"hphantom"));for(let e=0;e<r[0].length;e++)r[0][e]=Ue(structuredClone(r[0][e]).body,"hphantom");const o={type:"array",mode:"math",body:n,cols:[{type:"align",align:"c"}],rowGaps:new Array(n.length-1).fill(null),hLinesBeforeRow:new Array(n.length+1).fill().map((()=>[])),envClasses:[],scriptLevel:"text",arraystretch:1,labels:new Array(n.length).fill(""),arraycolsep:{number:.04,unit:"em"}},i={type:"styling",mode:"math",scriptLevel:"text",body:[{type:"array",mode:"math",body:a,cols:new Array(a.length).fill({type:"align",align:"c"}),rowGaps:new Array(a.length-1).fill(null),hLinesBeforeRow:new Array(a.length+1).fill().map((()=>[])),envClasses:[],scriptLevel:"text",arraystretch:1,labels:new Array(a.length).fill(""),arraycolsep:null}]},s={type:"leftright",mode:"math",body:[e],left:t?t[0]:"(",right:t?t[1]:")",rightColor:void 0};return ze([o,{type:"supsub",mode:"math",base:{type:"op",mode:"math",limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!0,symbol:!1,stack:!0,suppressBaseShift:!0,body:[s]},sup:i,sub:null}])})(t,e.delimiters)},mathmlBuilder:vt}),Be({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){const t=xt(e.parser,{type:"small"},"script");return t.envClasses=["small"],t},mathmlBuilder:vt}),Be({type:"array",names:["subarray"],props:{numArgs:1},handler(e,r){const n=(Ie(r[0])?[r[0]]:Fe(r[0],"ordgroup").body).map((function(e){const r=$e(e).text;if(-1!=="lc".indexOf(r))return{type:"align",align:r};throw new t("Unknown column alignment: "+r,e)}));if(n.length>1)throw new t("{subarray} can contain only one column");let a={cols:n,envClasses:["small"]};if(a=xt(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new t("{subarray} can contain only one column");return a},mathmlBuilder:vt}),Be({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){const t=xt(e.parser,{cols:[],envClasses:["cases"]},bt(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},mathmlBuilder:vt}),Be({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:At,mathmlBuilder:vt}),Be({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:At,mathmlBuilder:vt}),Be({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){"gathered"!==e.envName&&pt(e);const t={cols:[],envClasses:["abut","jot"],autoTag:gt(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return xt(e.parser,t,"display")},mathmlBuilder:vt}),Be({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){pt(e);const t={autoTag:gt(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,envClasses:["align"],leqno:e.parser.settings.leqno};return xt(e.parser,t,"display")},mathmlBuilder:vt}),Be({type:"array",names:["multline","multline*"],props:{numArgs:0},handler(e){pt(e);const t={autoTag:"multline"===e.envName,maxNumCols:1,envClasses:["jot","multline"],leqno:e.parser.settings.leqno};return xt(e.parser,t,"display")},mathmlBuilder:vt}),Be({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(pt(e),function(e){const r=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){r.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();const n=e.fetch().text;if("&"!==n&&"\\\\"!==n){if("\\end"===n){0===r[r.length-1].length&&r.pop();break}throw new t("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}let n=[];const a=[n];for(let s=0;s<r.length;s++){const l=r[s];let c={type:"styling",body:[],mode:"math",scriptLevel:"display"};for(let r=0;r<l.length;r++)if(Re(l[r])){n.push(c),r+=1;const a=$e(l[r]).text,s=new Array(2);if(s[0]={type:"ordgroup",mode:"math",body:[]},s[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(a)>-1);else{if(!("<>AV".indexOf(a)>-1))throw new t('Expected one of "<>AV=|." after @.');for(let e=0;e<2;e++){let n=!0;for(let c=r+1;c<l.length;c++){if(i=a,("mathord"===(o=l[c]).type||"atom"===o.type)&&o.text===i){n=!1,r=c;break}if(Re(l[c]))throw new t("Missing a "+a+" character to complete a CD arrow.",l[c]);s[e].body.push(l[c])}if(n)throw new t("Missing a "+a+" character to complete a CD arrow.",l[r])}}const u=je(a,s,e);n.push(u),c={type:"styling",body:[],mode:"math",scriptLevel:"display"}}else c.body.push(l[r]);s%2==0?n.push(c):n.shift(),n=[],a.push(n)}var o,i;return a.pop(),e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:a,tags:null,labels:new Array(a.length+1).fill(""),envClasses:["jot","cd"],cols:[],hLinesBeforeRow:new Array(a.length+1).fill([])}}(e.parser)),mathmlBuilder:vt}),u({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,r){throw new t(`${e.funcName} valid only within array environment`)}});const Et=De;u({type:"bordermatrix",names:["\\bordermatrix","\\matrix"],props:{numArgs:0,numOptionalArgs:1},handler:({parser:e,funcName:t},r,n)=>{let a=["(",")"];if("\\bordermatrix"===t&&n[0]&&n[0].body){const e=n[0].body;2===e.length&&"atom"===e[0].type&&"atom"===e[1].type&&"open"===e[0].family&&"close"===e[1].family&&(a=[e[0].text,e[1].text])}e.consumeSpaces(),e.consume();const o=Et.bordermatrix,i={mode:e.mode,envName:t.slice(1),delimiters:a,parser:e},s=o.handler(i);return e.expect("}",!0),s}}),u({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler({parser:e,token:r},n){const a=Fe(n[0],"ordgroup").body;let o="";for(let e=0;e<a.length;e++){o+=Fe(a[e],"textord").text}const i=parseInt(o);if(isNaN(i))throw new t(`\\@char has non-numeric argument ${o}`,r);return{type:"textord",mode:e.mode,text:String.fromCodePoint(i)}}});const _t=/^(#[a-f0-9]{3}|#?[a-f0-9]{6})$/i,Ct=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i,Tt=/^ *\d{1,3} *(?:, *\d{1,3} *){2}$/,qt=/^ *[10](?:\.\d*)? *(?:, *[10](?:\.\d*)? *){2}$/,Nt=/^[a-f0-9]{6}$/i,kt=e=>{let t=e.toString(16);return 1===t.length&&(t="0"+t),t},St=JSON.parse('{\n "Apricot": "#ffb484",\n "Aquamarine": "#08b4bc",\n "Bittersweet": "#c84c14",\n "blue": "#0000FF",\n "Blue": "#303494",\n "BlueGreen": "#08b4bc",\n "BlueViolet": "#503c94",\n "BrickRed": "#b8341c",\n "brown": "#BF8040",\n "Brown": "#802404",\n "BurntOrange": "#f8941c",\n "CadetBlue": "#78749c",\n "CarnationPink": "#f884b4",\n "Cerulean": "#08a4e4",\n "CornflowerBlue": "#40ace4",\n "cyan": "#00FFFF",\n "Cyan": "#08acec",\n "Dandelion": "#ffbc44",\n "darkgray": "#404040",\n "DarkOrchid": "#a8548c",\n "Emerald": "#08ac9c",\n "ForestGreen": "#089c54",\n "Fuchsia": "#90348c",\n "Goldenrod": "#ffdc44",\n "gray": "#808080",\n "Gray": "#98949c",\n "green": "#00FF00",\n "Green": "#08a44c",\n "GreenYellow": "#e0e474",\n "JungleGreen": "#08ac9c",\n "Lavender": "#f89cc4",\n "lightgray": "#c0c0c0",\n "lime": "#BFFF00",\n "LimeGreen": "#90c43c",\n "magenta": "#FF00FF",\n "Magenta": "#f0048c",\n "Mahogany": "#b0341c",\n "Maroon": "#b03434",\n "Melon": "#f89c7c",\n "MidnightBlue": "#086494",\n "Mulberry": "#b03c94",\n "NavyBlue": "#086cbc",\n "olive": "#7F7F00",\n "OliveGreen": "#407c34",\n "orange": "#FF8000",\n "Orange": "#f8843c",\n "OrangeRed": "#f0145c",\n "Orchid": "#b074ac",\n "Peach": "#f8945c",\n "Periwinkle": "#8074bc",\n "PineGreen": "#088c74",\n "pink": "#ff7f7f",\n "Plum": "#98248c",\n "ProcessBlue": "#08b4ec",\n "purple": "#BF0040",\n "Purple": "#a0449c",\n "RawSienna": "#983c04",\n "red": "#ff0000",\n "Red": "#f01c24",\n "RedOrange": "#f86434",\n "RedViolet": "#a0246c",\n "Rhodamine": "#f0549c",\n "Royallue": "#0874bc",\n "RoyalPurple": "#683c9c",\n "RubineRed": "#f0047c",\n "Salmon": "#f8948c",\n "SeaGreen": "#30bc9c",\n "Sepia": "#701404",\n "SkyBlue": "#48c4dc",\n "SpringGreen": "#c8dc64",\n "Tan": "#e09c74",\n "teal": "#007F7F",\n "TealBlue": "#08acb4",\n "Thistle": "#d884b4",\n "Turquoise": "#08b4cc",\n "violet": "#800080",\n "Violet": "#60449c",\n "VioletRed": "#f054a4",\n "WildStrawberry": "#f0246c",\n "yellow": "#FFFF00",\n "Yellow": "#fff404",\n "YellowGreen": "#98cc6c",\n "YellowOrange": "#ffa41c"\n}'),Mt=(e,r)=>{let n="";if("HTML"===e){if(!_t.test(r))throw new t("Invalid HTML input.");n=r}else if("RGB"===e){if(!Tt.test(r))throw new t("Invalid RGB input.");r.split(",").map((e=>{n+=kt(Number(e.trim()))}))}else{if(!qt.test(r))throw new t("Invalid rbg input.");r.split(",").map((e=>{const r=Number(e.trim());if(r>1)throw new t("Color rgb input must be < 1.");n+=kt(Number((255*r).toFixed(0)))}))}return"#"!==n.charAt(0)&&(n="#"+n),n},Lt=(e,r,n)=>{const a=`\\\\color@${e}`;if(!Ct.exec(e))throw new t("Invalid color: '"+e+"'",n);return Nt.test(e)?"#"+e:("#"===e.charAt(0)||(r.has(a)?e=r.get(a).tokens[0].text:St[e]&&(e=St[e])),e)},Ot=(e,t)=>{let r=ce(e.body,t.withColor(e.color));return r=r.map((t=>(t.style.color=e.color,t))),T.newDocumentFragment(r)};u({type:"color",names:["\\textcolor"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw","original"]},handler({parser:e,token:t},r,n){const a=n[0]&&Fe(n[0],"raw").string;let o="";if(a){const e=Fe(r[0],"raw").string;o=Mt(a,e)}else o=Lt(Fe(r[0],"raw").string,e.gullet.macros,t);const i=r[1];return{type:"color",mode:e.mode,color:o,isTextColor:!0,body:m(i)}},mathmlBuilder:Ot}),u({type:"color",names:["\\color"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw"]},handler({parser:e,breakOnTokenText:t,token:r},n,a){const o=a[0]&&Fe(a[0],"raw").string;let i="";if(o){const e=Fe(n[0],"raw").string;i=Mt(o,e)}else i=Lt(Fe(n[0],"raw").string,e.gullet.macros,r);const s=e.parseExpression(!0,t,!0);return{type:"color",mode:e.mode,color:i,isTextColor:!1,body:s}},mathmlBuilder:Ot}),u({type:"color",names:["\\definecolor"],props:{numArgs:3,allowedInText:!0,argTypes:["raw","raw","raw"]},handler({parser:e,funcName:r,token:n},a){const o=Fe(a[0],"raw").string;if(!/^[A-Za-z]+$/.test(o))throw new t("Color name must be latin letters.",n);const i=Fe(a[1],"raw").string;if(!["HTML","RGB","rgb"].includes(i))throw new t("Color model must be HTML, RGB, or rgb.",n);const s=Fe(a[2],"raw").string,l=Mt(i,s);return e.gullet.macros.set(`\\\\color@${o}`,{tokens:[{text:l}],numArgs:0}),{type:"internal",mode:e.mode}}}),u({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler({parser:e},t,r){const n="["===e.gullet.future().text?e.parseSizeGroup(!0):null,a=!e.settings.displayMode;return{type:"cr",mode:e.mode,newLine:a,size:n&&Fe(n,"size").value}},mathmlBuilder(e,t){const r=new T.MathNode("mo");if(e.newLine&&(r.setAttribute("linebreak","newline"),e.size)){const n=Ne(e.size,t);r.setAttribute("height",n.number+n.unit)}return r}});const Dt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Bt=e=>{const r=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new t("Expected a control sequence",e);return r},Ft=(e,t,r,n)=>{let a=e.gullet.macros.get(r.text);null==a&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};u({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler({parser:e,funcName:r}){e.consumeSpaces();const n=e.fetch();if(Dt[n.text])return"\\global"!==r&&"\\\\globallong"!==r||(n.text=Dt[n.text]),Fe(e.parseFunction(),"internal");throw new t("Invalid token after macro prefix",n)}}),u({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e,funcName:r}){let n=e.gullet.popToken();const a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new t("Expected a control sequence",n);let o,i=0;const s=[[]];for(;"{"!==e.gullet.future().text;)if(n=e.gullet.popToken(),"#"===n.text){if("{"===e.gullet.future().text){o=e.gullet.future(),s[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new t(`Invalid argument number "${n.text}"`);if(parseInt(n.text)!==i+1)throw new t(`Argument number "${n.text}" out of order`);i++,s.push([])}else{if("EOF"===n.text)throw new t("Expected a macro definition");s[i].push(n.text)}let{tokens:l}=e.gullet.consumeArg();if(o&&l.unshift(o),"\\edef"===r||"\\xdef"===r){if(l=e.gullet.expandTokens(l),l.length>e.gullet.settings.maxExpand)throw new t("Too many expansions in an "+r);l.reverse()}return e.gullet.macros.set(a,{tokens:l,numArgs:i,delimiters:s},r===Dt[r]),{type:"internal",mode:e.mode}}}),u({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e,funcName:t}){const r=Bt(e.gullet.popToken());e.gullet.consumeSpaces();const n=(e=>{let t=e.gullet.popToken();return"="===t.text&&(t=e.gullet.popToken()," "===t.text&&(t=e.gullet.popToken())),t})(e);return Ft(e,r,n,"\\\\globallet"===t),{type:"internal",mode:e.mode}}}),u({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e,funcName:t}){const r=Bt(e.gullet.popToken()),n=e.gullet.popToken(),a=e.gullet.popToken();return Ft(e,r,a,"\\\\globalfuture"===t),e.gullet.pushToken(a),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}}),u({type:"internal",names:["\\newcommand","\\renewcommand","\\providecommand"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e,funcName:r}){let n="";const a=e.gullet.popToken();"{"===a.text?(n=Bt(e.gullet.popToken()),e.gullet.popToken()):n=Bt(a);const o=e.gullet.isDefined(n);if(o&&"\\newcommand"===r)throw new t(`\\newcommand{${n}} attempting to redefine ${n}; use \\renewcommand`);if(!o&&"\\renewcommand"===r)throw new t(`\\renewcommand{${n}} when command ${n} does not yet exist; use \\newcommand`);let i=0;if("["===e.gullet.future().text){let r=e.gullet.popToken();if(r=e.gullet.popToken(),!/^[0-9]$/.test(r.text))throw new t(`Invalid number of arguments: "${r.text}"`);if(i=parseInt(r.text),r=e.gullet.popToken(),"]"!==r.text)throw new t(`Invalid argument "${r.text}"`)}const{tokens:s}=e.gullet.consumeArg();return"\\providecommand"===r&&e.gullet.macros.has(n)||e.gullet.macros.set(n,{tokens:s,numArgs:i}),{type:"internal",mode:e.mode}}});const $t={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},It=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\u2987","\\llparenthesis","\u2988","\\rrparenthesis","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lAngle","\u27ea","\\rAngle","\u27eb","\\llangle","\u2989","\\rrangle","\u298a","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","\\llbracket","\\rrbracket","\u27e6","\u27e6","\\lBrace","\\rBrace","\u2983","\u2984","/","\\backslash","|","\\vert","\\|","\\Vert","\u2016","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."],Pt=["}","\\left","\\middle","\\right"],Rt=e=>e.length>0&&(It.includes(e)||$t[e]||Pt.includes(e)),jt=[0,1.2,1.8,2.4,3];function zt(e,r){const n=Ie(e);if(n&&It.includes(n.text))return["<","\\lt"].includes(n.text)&&(n.text="\u27e8"),[">","\\gt"].includes(n.text)&&(n.text="\u27e9"),n;throw new t(n?`Invalid delimiter '${n.text}' after '${r.funcName}'`:`Invalid delimiter type '${e.type}'`,e)}const Ut=["/","\\","\\backslash","\\vert","|"];u({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{const r=zt(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:$t[e.funcName].size,mclass:$t[e.funcName].mclass,delim:r.text}},mathmlBuilder:e=>{const t=[];"."===e.delim&&(e.delim=""),t.push(re(e.delim,e.mode));const r=new T.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),(Ut.includes(e.delim)||e.delim.indexOf("arrow")>-1)&&r.setAttribute("stretchy","true"),r.setAttribute("symmetric","true"),r.setAttribute("minsize",jt[e.size]+"em"),r.setAttribute("maxsize",jt[e.size]+"em"),r}}),u({type:"leftright-right",names:["\\right"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>({type:"leftright-right",mode:e.parser.mode,delim:zt(t[0],e).text})}),u({type:"leftright",names:["\\left"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,r)=>{const n=zt(r[0],e),a=e.parser;++a.leftrightDepth;let o=a.parseExpression(!1,null,!0),i=a.fetch();for(;"\\middle"===i.text;){a.consume();const e=a.fetch().text;if(!B.math[e])throw new t(`Invalid delimiter '${e}' after '\\middle'`);zt({type:"atom",mode:"math",text:e},{funcName:"\\middle"}),o.push({type:"middle",mode:"math",delim:e}),a.consume(),o=o.concat(a.parseExpression(!1,null,!0)),i=a.fetch()}--a.leftrightDepth,a.expect("\\right",!1);const s=Fe(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:o,left:n.text,right:s.delim}},mathmlBuilder:(e,t)=>{!function(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}(e);const r=ce(e.body,t);"."===e.left&&(e.left="");const n=new T.MathNode("mo",[re(e.left,e.mode)]);n.setAttribute("fence","true"),n.setAttribute("form","prefix"),("/"===e.left||"\\"===e.left||e.left.indexOf("arrow")>-1)&&n.setAttribute("stretchy","true"),r.unshift(n),"."===e.right&&(e.right="");const a=new T.MathNode("mo",[re(e.right,e.mode)]);if(a.setAttribute("fence","true"),a.setAttribute("form","postfix"),("\u2216"===e.right||e.right.indexOf("arrow")>-1)&&a.setAttribute("stretchy","true"),e.body.length>0){const t=e.body[e.body.length-1];"color"!==t.type||t.isTextColor||a.setAttribute("mathcolor",t.color)}return r.push(a),oe(r)}}),u({type:"middle",names:["\\middle"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,r)=>{const n=zt(r[0],e);if(!e.parser.leftrightDepth)throw new t("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},mathmlBuilder:(e,t)=>{const r=re(e.delim,e.mode),n=new T.MathNode("mo",[r]);return n.setAttribute("fence","true"),e.delim.indexOf("arrow")>-1&&n.setAttribute("stretchy","true"),n.setAttribute("form","prefix"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});const Gt=e=>{const t=new T.MathNode("mspace");return t.setAttribute("width","3pt"),t},Ht=(e,t)=>{let r;switch(r=e.label.indexOf("colorbox")>-1||"\\boxed"===e.label?new T.MathNode("mrow",[Gt(),de(e.body,t),Gt()]):new T.MathNode("menclose",[de(e.body,t)]),e.label){case"\\overline":r.setAttribute("notation","top"),r.classes.push("tml-overline");break;case"\\underline":r.setAttribute("notation","bottom"),r.classes.push("tml-underline");break;case"\\cancel":r.setAttribute("notation","updiagonalstrike"),r.children.push(new T.MathNode("mrow",[],["tml-cancel","upstrike"]));break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike"),r.children.push(new T.MathNode("mrow",[],["tml-cancel","downstrike"]));break;case"\\sout":r.setAttribute("notation","horizontalstrike"),r.children.push(new T.MathNode("mrow",[],["tml-cancel","sout"]));break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike"),r.classes.push("tml-xcancel");break;case"\\longdiv":r.setAttribute("notation","longdiv"),r.classes.push("longdiv-top"),r.children.push(new T.MathNode("mrow",[],["longdiv-arc"]));break;case"\\phase":r.setAttribute("notation","phasorangle"),r.classes.push("phasor-bottom"),r.children.push(new T.MathNode("mrow",[],["phasor-angle"]));break;case"\\textcircled":r.setAttribute("notation","circle"),r.classes.push("circle-pad"),r.children.push(new T.MathNode("mrow",[],["textcircle"]));break;case"\\angl":r.setAttribute("notation","actuarial"),r.classes.push("actuarial");break;case"\\boxed":r.setAttribute("notation","box"),r.classes.push("tml-box"),r.setAttribute("scriptlevel","0"),r.setAttribute("displaystyle","true");break;case"\\fbox":r.setAttribute("notation","box"),r.classes.push("tml-fbox");break;case"\\fcolorbox":case"\\colorbox":{const t={padding:"3pt 0 3pt 0"};"\\fcolorbox"===e.label&&(t.border="0.0667em solid "+String(e.borderColor)),r.style=t;break}}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};u({type:"enclose",names:["\\colorbox"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw","text"]},handler({parser:e,funcName:t},r,n){const a=n[0]&&Fe(n[0],"raw").string;let o="";if(a){const e=Fe(r[0],"raw").string;o=Mt(a,e)}else o=Lt(Fe(r[0],"raw").string,e.gullet.macros);const i=r[1];return{type:"enclose",mode:e.mode,label:t,backgroundColor:o,body:i}},mathmlBuilder:Ht}),u({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw","raw","text"]},handler({parser:e,funcName:t},r,n){const a=n[0]&&Fe(n[0],"raw").string;let o,i="";if(a){const e=Fe(r[0],"raw").string,t=Fe(r[0],"raw").string;i=Mt(a,e),o=Mt(a,t)}else i=Lt(Fe(r[0],"raw").string,e.gullet.macros),o=Lt(Fe(r[1],"raw").string,e.gullet.macros);const s=r[2];return{type:"enclose",mode:e.mode,label:t,backgroundColor:o,borderColor:i,body:s}},mathmlBuilder:Ht}),u({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:({parser:e},t)=>({type:"enclose",mode:e.mode,label:"\\fbox",body:t[0]})}),u({type:"enclose",names:["\\angl","\\cancel","\\bcancel","\\xcancel","\\sout","\\overline","\\boxed","\\longdiv","\\phase"],props:{numArgs:1},handler({parser:e,funcName:t},r){const n=r[0];return{type:"enclose",mode:e.mode,label:t,body:n}},mathmlBuilder:Ht}),u({type:"enclose",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler({parser:e,funcName:t},r){const n=r[0];return{type:"enclose",mode:e.mode,label:t,body:n}},mathmlBuilder:Ht}),u({type:"enclose",names:["\\textcircled"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler({parser:e,funcName:t},r){const n=r[0];return{type:"enclose",mode:e.mode,label:t,body:n}},mathmlBuilder:Ht}),u({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler({parser:e,funcName:r},n){const a=n[0];if("ordgroup"!==a.type)throw new t("Invalid environment name",a);let o="";for(let e=0;e<a.body.length;++e)o+=Fe(a.body[e],"textord").text;if("\\begin"===r){if(!Object.prototype.hasOwnProperty.call(Et,o))throw new t("No such environment: "+o,a);const r=Et[o],{args:n,optArgs:i}=e.parseArguments("\\begin{"+o+"}",r),s={mode:e.mode,envName:o,parser:e},l=r.handler(s,n,i);e.expect("\\end",!1);const c=e.nextToken,u=Fe(e.parseFunction(),"environment");if(u.name!==o)throw new t(`Mismatch: \\begin{${o}} matched by \\end{${u.name}}`,c);return l}return{type:"environment",mode:e.mode,name:o,nameGroup:a}}}),u({type:"envTag",names:["\\env@tag"],props:{numArgs:1,argTypes:["math"]},handler:({parser:e},t)=>({type:"envTag",mode:e.mode,body:t[0]}),mathmlBuilder:(e,t)=>new T.MathNode("mrow")}),u({type:"noTag",names:["\\env@notag"],props:{numArgs:0},handler:({parser:e})=>({type:"noTag",mode:e.mode}),mathmlBuilder:(e,t)=>new T.MathNode("mrow")});const Vt=(e,t)=>{const r=e.font,n=t.withFont(r),a=de(e.body,n);if(0===a.children.length)return a;if("boldsymbol"===r&&["mo","mpadded","mrow"].includes(a.type))return a.style.fontWeight="bold",a;if(((e,t)=>{if("mathrm"!==t||"ordgroup"!==e.body.type||1===e.body.body.length)return!1;if("mathord"!==e.body.body[0].type)return!1;for(let t=1;t<e.body.body.length;t++){const r=e.body.body[t].type;if("mathord"!==r&&("textord"!==r||isNaN(e.body.body[t].text)))return!1}return!0})(e,r)){const e=a.children[0].children[0];delete e.attributes.mathvariant;for(let t=1;t<a.children.length;t++)e.children[0].text+="mn"===a.children[t].type?a.children[t].children[0].text:a.children[t].children[0].children[0].text;const t=new T.MathNode("mtext",new T.TextNode("\u200b"));return new T.MathNode("mrow",[t,e])}let o="mo"===a.children[0].type;for(let e=1;e<a.children.length;e++){"mo"===a.children[e].type&&"boldsymbol"===r&&(a.children[e].style.fontWeight="bold"),"mi"!==a.children[e].type&&(o=!1);"normal"!==(a.children[e].attributes&&a.children[e].attributes.mathvariant||"")&&(o=!1)}if(!o)return a;const i=a.children[0];for(let e=1;e<a.children.length;e++)i.children.push(a.children[e].children[0]);if(i.attributes.mathvariant&&"normal"===i.attributes.mathvariant){const e=new T.MathNode("mtext",new T.TextNode("\u200b"));return new T.MathNode("mrow",[e,i])}return i},Wt={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};u({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\up@greek","\\boldsymbol","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathsfit","\\mathtt","\\Bbb","\\bm","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:({parser:e,funcName:t},r)=>{const n=p(r[0]);let a=t;return a in Wt&&(a=Wt[a]),{type:"font",mode:e.mode,font:a.slice(1),body:n}},mathmlBuilder:Vt}),u({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:({parser:e,funcName:t,breakOnTokenText:r},n)=>{const{mode:a}=e,o=e.parseExpression(!0,r,!0);return{type:"font",mode:a,font:`math${t.slice(1)}`,body:{type:"ordgroup",mode:e.mode,body:o}}},mathmlBuilder:Vt});const Xt=["display","text","script","scriptscript"],Zt={auto:-1,display:0,text:0,script:1,scriptscript:2},Yt=(e,t)=>{const r="auto"===e.scriptLevel?t.incrementLevel():"display"===e.scriptLevel?t.withLevel(We):"text"===e.scriptLevel?t.withLevel(Xe):t.withLevel(Ze),n=de(e.numer,r),a=de(e.denom,r);3===t.level&&(n.style.mathDepth="2",n.setAttribute("scriptlevel","2"),a.style.mathDepth="2",a.setAttribute("scriptlevel","2"));let o=new T.MathNode("mfrac",[n,a]);if(e.hasBarLine){if(e.barSize){const r=Ne(e.barSize,t);o.setAttribute("linethickness",r.number+r.unit)}}else o.setAttribute("linethickness","0px");if(null!=e.leftDelim||null!=e.rightDelim){const t=[];if(null!=e.leftDelim){const r=new T.MathNode("mo",[new T.TextNode(e.leftDelim.replace("\\",""))]);r.setAttribute("fence","true"),t.push(r)}if(t.push(o),null!=e.rightDelim){const r=new T.MathNode("mo",[new T.TextNode(e.rightDelim.replace("\\",""))]);r.setAttribute("fence","true"),t.push(r)}o=oe(t)}return"auto"!==e.scriptLevel&&(o=new T.MathNode("mstyle",[o]),o.setAttribute("displaystyle",String("display"===e.scriptLevel)),o.setAttribute("scriptlevel",Zt[e.scriptLevel])),o};u({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:({parser:e,funcName:t},r)=>{const n=r[0],a=r[1];let o=!1,i=null,s=null,l="auto";switch(t){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i="(",s=")";break;case"\\\\bracefrac":i="\\{",s="\\}";break;case"\\\\brackfrac":i="[",s="]";break;default:throw new Error("Unrecognized genfrac command")}switch(t){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text"}return{type:"genfrac",mode:e.mode,continued:!1,numer:n,denom:a,hasBarLine:o,leftDelim:i,rightDelim:s,scriptLevel:l,barSize:null}},mathmlBuilder:Yt}),u({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:({parser:e,funcName:t},r)=>{const n=r[0],a=r[1];return{type:"genfrac",mode:e.mode,continued:!0,numer:n,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,scriptLevel:"display",barSize:null}}}),u({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler({parser:e,funcName:t,token:r}){let n;switch(t){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:n,token:r}}});const Jt=function(e){let t=null;return e.length>0&&(t=e,t="."===t?null:t),t};u({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler({parser:e},t){const r=t[4],n=t[5],a=p(t[0]),o="atom"===a.type&&"open"===a.family?Jt(a.text):null,i=p(t[1]),s="atom"===i.type&&"close"===i.family?Jt(i.text):null,l=Fe(t[2],"size");let c,u=null;l.isBlank?c=!0:(u=l.value,c=u.number>0);let d="auto",m=t[3];if("ordgroup"===m.type){if(m.body.length>0){const e=Fe(m.body[0],"textord");d=Xt[Number(e.text)]}}else m=Fe(m,"textord"),d=Xt[Number(m.text)];return{type:"genfrac",mode:e.mode,numer:r,denom:n,continued:!1,hasBarLine:c,barSize:u,leftDelim:o,rightDelim:s,scriptLevel:d}},mathmlBuilder:Yt}),u({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:({parser:e,funcName:t,token:r},n)=>({type:"infix",mode:e.mode,replaceWith:"\\\\abovefrac",barSize:Fe(n[0],"size").value,token:r})}),u({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:({parser:e,funcName:t},r)=>{const n=r[0],a=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Fe(r[1],"infix").barSize),o=r[2],i=a.number>0;return{type:"genfrac",mode:e.mode,numer:n,denom:o,continued:!1,hasBarLine:i,barSize:a,leftDelim:null,rightDelim:null,scriptLevel:"auto"}},mathmlBuilder:Yt}),u({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["hbox"],allowedInArgument:!0,allowedInText:!1},handler:({parser:e},t)=>({type:"hbox",mode:e.mode,body:m(t[0])}),mathmlBuilder(e,t){const r=t.withLevel(We),n=ue(e.body,r);return ae(n)}});u({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:({parser:e,funcName:t},r)=>({type:"horizBrace",mode:e.mode,label:t,isOver:/^\\over/.test(t),base:r[0]}),mathmlBuilder:(e,t)=>{const r=M(e.label);return r.style["math-depth"]=0,new T.MathNode(e.isOver?"mover":"munder",[de(e.base,t),r])}}),u({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:({parser:e,token:r},n)=>{const a=n[1],o=Fe(n[0],"url").url;if(!e.settings.isTrusted({command:"\\href",url:o}))throw new t('Function "\\href" is not trusted',r);return{type:"href",mode:e.mode,href:o,body:m(a)}},mathmlBuilder:(e,t)=>{const r=new E("math",[ue(e.body,t)]);return new v(e.href,[],[r])}}),u({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:({parser:e,token:r},n)=>{const a=Fe(n[0],"url").url;if(!e.settings.isTrusted({command:"\\url",url:a}))throw new t('Function "\\url" is not trusted',r);const o=[];for(let e=0;e<a.length;e++){let t=a[e];"~"===t&&(t="\\textasciitilde"),o.push({type:"textord",mode:"text",text:t})}const i={type:"text",mode:e.mode,font:"\\texttt",body:o};return{type:"href",mode:e.mode,href:a,body:m(i)}}}),u({type:"html",names:["\\class","\\id","\\style","\\data"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:({parser:e,funcName:r,token:n},a)=>{const o=Fe(a[0],"raw").string,i=a[1];if(e.settings.strict)throw new t(`Function "${r}" is disabled in strict mode`,n);let s;const l={};switch(r){case"\\class":l.class=o,s={command:"\\class",class:o};break;case"\\id":l.id=o,s={command:"\\id",id:o};break;case"\\style":l.style=o,s={command:"\\style",style:o};break;case"\\data":{const e=o.split(",");for(let r=0;r<e.length;r++){const n=e[r].split("=");if(2!==n.length)throw new t("Error parsing key-value for \\data");l["data-"+n[0].trim()]=n[1].trim()}s={command:"\\data",attributes:l};break}default:throw new Error("Unrecognized html command")}if(!e.settings.isTrusted(s))throw new t(`Function "${r}" is not trusted`,n);return{type:"html",mode:e.mode,attributes:l,body:m(i)}},mathmlBuilder:(e,t)=>{const r=ue(e.body,t),n=[];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/)),r.classes=n;for(const t in e.attributes)"class"!==t&&Object.prototype.hasOwnProperty.call(e.attributes,t)&&r.setAttribute(t,e.attributes[t]);return r}});const Kt=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};{const r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new t("Invalid size: '"+e+"' in \\includegraphics");const n={number:+(r[1]+r[2]),unit:r[3]};if(!Te(n))throw new t("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n}};u({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:({parser:e,token:r},n,a)=>{let o={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(a[0]){const e=Fe(a[0],"raw").string.split(",");for(let r=0;r<e.length;r++){const n=e[r].split("=");if(2===n.length){const e=n[1].trim();switch(n[0].trim()){case"alt":l=e;break;case"width":o=Kt(e);break;case"height":i=Kt(e);break;case"totalheight":s=Kt(e);break;default:throw new t("Invalid key: '"+n[0]+"' in \\includegraphics.")}}}}const c=Fe(n[0],"url").url;if(""===l&&(l=c,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),!e.settings.isTrusted({command:"\\includegraphics",url:c}))throw new t('Function "\\includegraphics" is not trusted',r);return{type:"includegraphics",mode:e.mode,alt:l,width:o,height:i,totalheight:s,src:c}},mathmlBuilder:(e,t)=>{const r=Ne(e.height,t),n={number:0,unit:"em"};e.totalheight.number>0&&e.totalheight.unit===r.unit&&e.totalheight.number>r.number&&(n.number=e.totalheight.number-r.number,n.unit=r.unit);let a=0;e.width.number>0&&(a=Ne(e.width,t));const o={height:r.number+n.number+"em"};a.number>0&&(o.width=a.number+a.unit),n.number>0&&(o.verticalAlign=-n.number+n.unit);const i=new A(e.src,e.alt,o);return i.height=r,i.depth=n,new T.MathNode("mtext",[i])}}),u({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler({parser:e,funcName:r,token:n},a){const o=Fe(a[0],"size");if(e.settings.strict){const a="m"===r[1],i="mu"===o.value.unit;if(a){if(!i)throw new t(`LaTeX's ${r} supports only mu units, not ${o.value.unit} units`,n);if("math"!==e.mode)throw new t(`LaTeX's ${r} works only in math mode`,n)}else if(i)throw new t(`LaTeX's ${r} doesn't support mu units`,n)}return{type:"kern",mode:e.mode,dimension:o.value}},mathmlBuilder(e,t){const r=Ne(e.dimension,t),n="em"===r.unit?Qt(r.number):"";if("text"===e.mode&&n.length>0){const e=new T.TextNode(n);return new T.MathNode("mtext",[e])}{const e=new T.MathNode("mspace");return e.setAttribute("width",r.number+r.unit),r.number<0&&(e.style.marginLeft=r.number+r.unit),e}}});const Qt=function(e){return e>=.05555&&e<=.05556?"\u200a":e>=.1666&&e<=.1667?"\u2009":e>=.2222&&e<=.2223?"\u2005":e>=.2777&&e<=.2778?"\u2005\u200a":""},er=/[^A-Za-z_0-9-]/g;u({type:"label",names:["\\label"],props:{numArgs:1,argTypes:["raw"]},handler:({parser:e},t)=>({type:"label",mode:e.mode,string:t[0].string.replace(er,"")}),mathmlBuilder(e,t){const r=new T.MathNode("mrow",[],["tml-label"]);return e.string.length>0&&r.setLabel(e.string),r}});const tr=["\\clap","\\llap","\\rlap"];u({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap","\\clap","\\llap","\\rlap"],props:{numArgs:1,allowedInText:!0},handler:({parser:e,funcName:r,token:n},a)=>{if(tr.includes(r)){if(e.settings.strict&&"text"!==e.mode)throw new t(`{${r}} can be used only in text mode.\n Try \\math${r.slice(1)}`,n);r=r.slice(1)}else r=r.slice(5);const o=a[0];return{type:"lap",mode:e.mode,alignment:r,body:o}},mathmlBuilder:(e,t)=>{let r;if("llap"===e.alignment){const n=ce(m(e.body),t),a=new T.MathNode("mphantom",n);r=new T.MathNode("mpadded",[a]),r.setAttribute("width","0px")}const n=de(e.body,t);let a;if("llap"===e.alignment?(n.style.position="absolute",n.style.right="0",n.style.bottom="0",a=new T.MathNode("mpadded",[r,n])):a=new T.MathNode("mpadded",[n]),"rlap"===e.alignment)e.body.body.length>0&&"genfrac"===e.body.body[0].type&&a.setAttribute("lspace","0.16667em");else{const t="llap"===e.alignment?"-1":"-0.5";a.setAttribute("lspace",t+"width"),"llap"===e.alignment?a.style.position="relative":(a.style.display="flex",a.style.justifyContent="center")}return a.setAttribute("width","0px"),a}}),u({type:"ordgroup",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler({funcName:e,parser:t},r){const n=t.mode;t.switchMode("math");const a="\\("===e?"\\)":"$",o=t.parseExpression(!1,a);return t.expect(a),t.switchMode(n),{type:"ordgroup",mode:t.mode,body:o}}}),u({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,r){throw new t(`Mismatched ${e.funcName}`,r)}});u({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:({parser:e},t)=>({type:"mathchoice",mode:e.mode,display:m(t[0]),text:m(t[1]),script:m(t[2]),scriptscript:m(t[3])}),mathmlBuilder:(e,t)=>{const r=((e,t)=>{switch(t.level){case Ve:return e.display;case We:return e.text;case Xe:return e.script;case Ze:return e.scriptscript;default:return e.text}})(e,t);return ue(r,t)}});const rr=["text","textord","mathord","atom"];function nr(e,t){let r;const n=ce(e.body,t);if("minner"===e.mclass)r=new T.MathNode("mpadded",n);else if("mord"===e.mclass)e.isCharacterBox||"mathord"===n[0].type?(r=n[0],r.type="mi",1===r.children.length&&r.children[0].text&&"\u2207"===r.children[0].text&&r.setAttribute("mathvariant","normal")):r=new T.MathNode("mi",n);else{r=new T.MathNode("mrow",n),e.mustPromote?(r=n[0],r.type="mo",e.isCharacterBox&&e.body[0].text&&/[A-Za-z]/.test(e.body[0].text)&&r.setAttribute("mathvariant","italic")):r=new T.MathNode("mrow",n);const a=t.level<2;"mrow"===r.type?a&&("mbin"===e.mclass?(r.children.unshift(ke(.2222)),r.children.push(ke(.2222))):"mrel"===e.mclass?(r.children.unshift(ke(.2778)),r.children.push(ke(.2778))):"mpunct"===e.mclass?r.children.push(ke(.1667)):"minner"===e.mclass&&(r.children.unshift(ke(.0556)),r.children.push(ke(.0556)))):"mbin"===e.mclass?(r.attributes.lspace=a?"0.2222em":"0",r.attributes.rspace=a?"0.2222em":"0"):"mrel"===e.mclass?(r.attributes.lspace=a?"0.2778em":"0",r.attributes.rspace=a?"0.2778em":"0"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace=a?"0.1667em":"0"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&a&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em"),"mopen"!==e.mclass&&"mclose"!==e.mclass&&(delete r.attributes.stretchy,delete r.attributes.form)}return r}u({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler({parser:e,funcName:t},r){const n=r[0],a=i.isCharacterBox(n);let o=!0;const s={type:"mathord",text:"",mode:e.mode},l=n.body?n.body:[n];for(const t of l){if(!rr.includes(t.type)){o=!1;break}B[e.mode][t.text]?s.text+=B[e.mode][t.text].replace:t.text?s.text+=t.text:t.body&&t.body.map((e=>{s.text+=e.text}))}return o&&"\\mathord"===t&&"mathord"===s.type&&s.text.length>1?s:{type:"mclass",mode:e.mode,mclass:"m"+t.slice(5),body:m(o?s:n),isCharacterBox:a,mustPromote:o}},mathmlBuilder:nr});const ar=e=>{const t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};u({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:({parser:e},t)=>({type:"mclass",mode:e.mode,mclass:ar(t[0]),body:m(t[1]),isCharacterBox:i.isCharacterBox(t[1])})}),u({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler({parser:e,funcName:t},r){const n=r[1],a=r[0],o={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,stack:!0,suppressBaseShift:"\\stackrel"!==t,body:m(n)};return{type:"supsub",mode:a.mode,base:o,sup:"\\underset"===t?null:a,sub:"\\underset"===t?a:null}},mathmlBuilder:nr});const or=(e,t,r)=>{if(!e)return r;const n=de(e,t);return"mrow"===n.type&&0===n.children.length?r:n};u({type:"multiscript",names:["\\sideset","\\pres@cript"],props:{numArgs:3},handler({parser:e,funcName:r,token:n},a){if(0===a[2].body.length)throw new t(r+"cannot parse an empty base.");const o=a[2].body[0];if(e.settings.strict&&"\\sideset"===r&&!o.symbol)throw new t("The base of \\sideset must be a big operator. Try \\prescript.");if(a[0].body.length>0&&"supsub"!==a[0].body[0].type||a[1].body.length>0&&"supsub"!==a[1].body[0].type)throw new t("\\sideset can parse only subscripts and superscripts in its first two arguments",n);const i=a[0].body.length>0?a[0].body[0]:null,s=a[1].body.length>0?a[1].body[0]:null;return i||s?i?{type:"multiscript",mode:e.mode,isSideset:"\\sideset"===r,prescripts:i,postscripts:s,base:o}:{type:"styling",mode:e.mode,scriptLevel:"text",body:[{type:"supsub",mode:e.mode,base:o,sup:s.sup,sub:s.sub}]}:o},mathmlBuilder(e,t){const r=de(e.base,t),n=new T.MathNode("mprescripts"),a=new T.MathNode("none");let o=[];const i=or(e.prescripts.sub,t,a),s=or(e.prescripts.sup,t,a);if(e.isSideset&&(i.setAttribute("style","text-align: left;"),s.setAttribute("style","text-align: left;")),e.postscripts){o=[r,or(e.postscripts.sub,t,a),or(e.postscripts.sup,t,a),n,i,s]}else o=[r,n,i,s];return new T.MathNode("mmultiscripts",o)}}),u({type:"not",names:["\\not"],props:{numArgs:1,primitive:!0,allowedInText:!1},handler({parser:e},t){const r=i.isCharacterBox(t[0]);let n;if(r)n=m(t[0]),"\\"===n[0].text.charAt(0)&&(n[0].text=B.math[n[0].text].replace),n[0].text=n[0].text.slice(0,1)+"\u0338"+n[0].text.slice(1);else{n=[{type:"textord",mode:"math",text:"\u0338"},{type:"kern",mode:"math",dimension:{number:-.6,unit:"em"}},t[0]]}return{type:"not",mode:e.mode,body:n,isCharacterBox:r}},mathmlBuilder(e,t){if(e.isCharacterBox){return ce(e.body,t,!0)[0]}return ue(e.body,t)}});const ir=["textord","mathord","atom"],sr=["\\smallint"],lr=["textord","mathord","ordgroup","close","leftright","font"],cr=e=>{e.attributes.lspace="0.1667em",e.attributes.rspace="0.1667em"},ur=(e,t)=>{let r;if(e.symbol)r=new E("mo",[re(e.name,e.mode)]),sr.includes(e.name)?r.setAttribute("largeop","false"):r.setAttribute("movablelimits","false"),e.fromMathOp&&cr(r);else if(e.body)r=new E("mo",ce(e.body,t)),e.fromMathOp&&cr(r);else if(r=new E("mi",[new _(e.name.slice(1))]),!e.parentIsSupSub){const t=[r,new E("mo",[re("\u2061","text")])];if(e.needsLeadingSpace){const e=new E("mspace");e.setAttribute("width","0.1667em"),t.unshift(e)}if(!e.isFollowedByDelimiter){const e=new E("mspace");e.setAttribute("width","0.1667em"),t.push(e)}r=new E("mrow",t)}return r},dr={"\u220f":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22c0":"\\bigwedge","\u22c1":"\\bigvee","\u22c2":"\\bigcap","\u22c3":"\\bigcup","\u2a00":"\\bigodot","\u2a01":"\\bigoplus","\u2a02":"\\bigotimes","\u2a04":"\\biguplus","\u2a05":"\\bigsqcap","\u2a06":"\\bigsqcup","\u2a03":"\\bigcupdot","\u2a07":"\\bigdoublevee","\u2a08":"\\bigdoublewedge","\u2a09":"\\bigtimes"};u({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcupplus","\\bigcupdot","\\bigcap","\\bigcup","\\bigdoublevee","\\bigdoublewedge","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcap","\\bigsqcup","\\bigtimes","\\smallint","\u220f","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a04","\u2a06"],props:{numArgs:0},handler:({parser:e,funcName:t},r)=>{let n=t;return 1===n.length&&(n=dr[n]),{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!0,stack:!1,name:n}},mathmlBuilder:ur}),u({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:({parser:e},t)=>{const r=t[0],n=r.body?r.body:[r],a=1===n.length&&ir.includes(n[0].type);return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:a,fromMathOp:!0,stack:!1,name:a?n[0].text:null,body:a?null:m(r)}},mathmlBuilder:ur});const pr={"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint","\u222f":"\\oiint","\u2230":"\\oiiint","\u2231":"\\intclockwise","\u2232":"\\varointclockwise","\u2a0c":"\\iiiint","\u2a0d":"\\intbar","\u2a0e":"\\intBar","\u2a0f":"\\fint","\u2a12":"\\rppolint","\u2a13":"\\scpolint","\u2a15":"\\pointint","\u2a16":"\\sqint","\u2a17":"\\intlarhk","\u2a18":"\\intx","\u2a19":"\\intcap","\u2a1a":"\\intcup"};u({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\sgn","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler({parser:e,funcName:t}){const r=e.prevAtomType,n=e.gullet.future().text;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,stack:!1,isFollowedByDelimiter:Rt(n),needsLeadingSpace:r.length>0&&lr.includes(r),name:t}},mathmlBuilder:ur}),u({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler({parser:e,funcName:t}){const r=e.prevAtomType,n=e.gullet.future().text;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,stack:!1,isFollowedByDelimiter:Rt(n),needsLeadingSpace:r.length>0&&lr.includes(r),name:t}},mathmlBuilder:ur}),u({type:"op",names:["\\int","\\iint","\\iiint","\\iiiint","\\oint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\intbar","\\intBar","\\fint","\\rppolint","\\scpolint","\\pointint","\\sqint","\\intlarhk","\\intx","\\intcap","\\intcup","\u222b","\u222c","\u222d","\u222e","\u222f","\u2230","\u2231","\u2232","\u2a0c","\u2a0d","\u2a0e","\u2a0f","\u2a12","\u2a13","\u2a15","\u2a16","\u2a17","\u2a18","\u2a19","\u2a1a"],props:{numArgs:0},handler({parser:e,funcName:t}){let r=t;return 1===r.length&&(r=pr[r]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,stack:!1,name:r}},mathmlBuilder:ur});u({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1,allowedInArgument:!0},handler:({parser:e,funcName:t},r)=>{const n=r[0],a=e.prevAtomType,o=e.gullet.future().text;return{type:"operatorname",mode:e.mode,body:m(n),alwaysHandleSupSub:"\\operatornamewithlimits"===t,limits:!1,parentIsSupSub:!1,isFollowedByDelimiter:Rt(o),needsLeadingSpace:a.length>0&&lr.includes(a)}},mathmlBuilder:(e,t)=>{let r,n=ce(e.body,t.withFont("mathrm")),a=!0;for(let e=0;e<n.length;e++){let t=n[e];if(t instanceof T.MathNode)switch(("mrow"===t.type||"mpadded"===t.type)&&1===t.children.length&&t.children[0]instanceof T.MathNode&&(t=t.children[0]),t.type){case"mi":case"mn":case"ms":case"mtext":break;case"mspace":if(t.attributes.width){const r=t.attributes.width.replace("em",""),o=Qt(Number(r));""===o?a=!1:n[e]=new T.MathNode("mtext",[new T.TextNode(o)])}break;case"mo":{const e=t.children[0];1===t.children.length&&e instanceof T.TextNode?e.text=e.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){const e=n.map((e=>e.toText())).join("");n=[new T.TextNode(e)]}else if(1===n.length&&["mover","munder"].includes(n[0].type)&&("mi"===n[0].children[0].type||"mtext"===n[0].children[0].type)){if(n[0].children[0].type="mi",e.parentIsSupSub)return new T.MathNode("mrow",n);{const e=new T.MathNode("mo",[re("\u2061","text")]);return T.newDocumentFragment([n[0],e])}}if(a?(r=new T.MathNode("mi",n),1===n[0].text.length&&r.setAttribute("mathvariant","normal")):r=new T.MathNode("mrow",n),!e.parentIsSupSub){const t=[r,new T.MathNode("mo",[re("\u2061","text")])];if(e.needsLeadingSpace){const e=new T.MathNode("mspace");e.setAttribute("width","0.1667em"),t.unshift(e)}if(!e.isFollowedByDelimiter){const e=new T.MathNode("mspace");e.setAttribute("width","0.1667em"),t.push(e)}return T.newDocumentFragment(t)}return r}}),Je("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),d({type:"ordgroup",mathmlBuilder:(e,t)=>ue(e.body,t,e.semisimple)}),u({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>{const r=t[0];return{type:"phantom",mode:e.mode,body:m(r)}},mathmlBuilder:(e,t)=>{const r=ce(e.body,t);return new T.MathNode("mphantom",r)}}),u({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>{const r=t[0];return{type:"hphantom",mode:e.mode,body:r}},mathmlBuilder:(e,t)=>{const r=ce(m(e.body),t),n=new T.MathNode("mphantom",r),a=new T.MathNode("mpadded",[n]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}}),u({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>{const r=t[0];return{type:"vphantom",mode:e.mode,body:r}},mathmlBuilder:(e,t)=>{const r=ce(m(e.body),t),n=new T.MathNode("mphantom",r),a=new T.MathNode("mpadded",[n]);return a.setAttribute("width","0px"),a}}),u({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>({type:"pmb",mode:e.mode,body:m(t[0])}),mathmlBuilder(e,t){const r=ce(e.body,t),n=C(r);return n.setAttribute("style","font-weight:bold"),n}});const mr=(e,t)=>{const r=t.withLevel(We),n=new T.MathNode("mpadded",[de(e.body,r)]),a=Ne(e.dy,t);return n.setAttribute("voffset",a.number+a.unit),a.number>0?n.style.padding=a.number+a.unit+" 0 0 0":n.style.padding="0 0 "+Math.abs(a.number)+a.unit+" 0",n};u({type:"raise",names:["\\raise","\\lower"],props:{numArgs:2,argTypes:["size","primitive"],primitive:!0},handler({parser:e,funcName:t},r){const n=Fe(r[0],"size").value;"\\lower"===t&&(n.number*=-1);const a=r[1];return{type:"raise",mode:e.mode,dy:n,body:a}},mathmlBuilder:mr}),u({type:"raise",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler({parser:e,funcName:t},r){const n=Fe(r[0],"size").value,a=r[1];return{type:"raise",mode:e.mode,dy:n,body:a}},mathmlBuilder:mr}),u({type:"ref",names:["\\ref","\\eqref"],props:{numArgs:1,argTypes:["raw"]},handler:({parser:e,funcName:t},r)=>({type:"ref",mode:e.mode,funcName:t,string:r[0].string.replace(er,"")}),mathmlBuilder(e,t){const r="\\ref"===e.funcName?["tml-ref"]:["tml-ref","tml-eqref"];return new v("#"+e.string,r,null)}}),u({type:"reflect",names:["\\reflectbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:({parser:e},t)=>({type:"reflect",mode:e.mode,body:t[0]}),mathmlBuilder(e,t){const r=de(e.body,t);return r.style.transform="scaleX(-1)",r}}),u({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler:({parser:e})=>({type:"internal",mode:e.mode})}),u({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler({parser:e},t,r){const n=r[0],a=Fe(t[0],"size"),o=Fe(t[1],"size");return{type:"rule",mode:e.mode,shift:n&&Fe(n,"size").value,width:a.value,height:o.value}},mathmlBuilder(e,t){const r=Ne(e.width,t),n=Ne(e.height,t),a=e.shift?Ne(e.shift,t):{number:0,unit:"em"},o=t.color&&t.getColor()||"black",i=new T.MathNode("mspace");if(r.number>0&&n.number>0&&i.setAttribute("mathbackground",o),i.setAttribute("width",r.number+r.unit),i.setAttribute("height",n.number+n.unit),0===a.number)return i;const s=new T.MathNode("mpadded",[i]);return a.number>=0?s.setAttribute("height","+"+a.number+a.unit):(s.setAttribute("height",a.number+a.unit),s.setAttribute("depth","+"+-a.number+a.unit)),s.setAttribute("voffset",a.number+a.unit),s}});const hr={"\\tiny":.5,"\\sixptsize":.6,"\\Tiny":.6,"\\scriptsize":.7,"\\footnotesize":.8,"\\small":.9,"\\normalsize":1,"\\large":1.2,"\\Large":1.44,"\\LARGE":1.728,"\\huge":2.074,"\\Huge":2.488};u({type:"sizing",names:["\\tiny","\\sixptsize","\\Tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],props:{numArgs:0,allowedInText:!0},handler:({breakOnTokenText:e,funcName:t,parser:r},n)=>{r.settings.strict&&"math"===r.mode&&console.log(`Temml strict-mode warning: Command ${t} is invalid in math mode.`);const a=r.parseExpression(!1,e,!0);return{type:"sizing",mode:r.mode,funcName:t,body:a}},mathmlBuilder:(e,t)=>{const r=t.withFontSize(hr[e.funcName]),n=ce(e.body,r),a=C(n),o=(hr[e.funcName]/t.fontSize).toFixed(4);return a.setAttribute("mathsize",o+"em"),a}}),u({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:({parser:e},t,r)=>{let n=!1,a=!1;const o=r[0]&&Fe(r[0],"ordgroup");if(o){let e="";for(let t=0;t<o.body.length;++t){if(e=o.body[t].text,"t"===e)n=!0;else{if("b"!==e){n=!1,a=!1;break}a=!0}}}else n=!0,a=!0;const i=t[0];return{type:"smash",mode:e.mode,body:i,smashHeight:n,smashDepth:a}},mathmlBuilder:(e,t)=>{const r=new T.MathNode("mpadded",[de(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),u({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler({parser:e},t,r){const n=r[0],a=t[0];return{type:"sqrt",mode:e.mode,body:a,index:n}},mathmlBuilder(e,t){const{body:r,index:n}=e;return n?new T.MathNode("mroot",[de(r,t),de(n,t.incrementLevel())]):new T.MathNode("msqrt",[de(r,t)])}});const fr={display:0,text:1,script:2,scriptscript:3},gr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]};u({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({breakOnTokenText:e,funcName:t,parser:r},n){const a=r.parseExpression(!0,e,!0),o=t.slice(1,t.length-5);return{type:"styling",mode:r.mode,scriptLevel:o,body:a}},mathmlBuilder(e,t){const r=t.withLevel(fr[e.scriptLevel]),n=ce(e.body,r),a=C(n),o=gr[e.scriptLevel];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});const xr=/^m(over|under|underover)$/;d({type:"supsub",mathmlBuilder(e,t){let r,n,a=!1,o=!1,i=!1,s=!1;e.base&&"horizBrace"===e.base.type&&(n=!!e.sup,n===e.base.isOver&&(a=!0,r=e.base.isOver)),!e.base||e.base.stack||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0,o=!e.base.symbol,i=o&&!e.isFollowedByDelimiter,s=e.base.needsLeadingSpace);const l=e.base&&e.base.stack?[de(e.base.body[0],t)]:[de(e.base,t)],c=t.inSubOrSup();if(e.sub){const r=de(e.sub,c);3===t.level&&r.setAttribute("scriptlevel","2"),l.push(r)}if(e.sup){const r=de(e.sup,c);3===t.level&&r.setAttribute("scriptlevel","2");const n="mrow"===r.type?r.children[0]:r;n&&"mo"===n.type&&n.classes.includes("tml-prime")&&e.base&&e.base.text&&"fF".indexOf(e.base.text)>-1&&n.classes.push("prime-pad"),l.push(r)}let u;if(a)u=r?"mover":"munder";else if(e.sub)if(e.sup){const r=e.base;u=r&&("op"===r.type&&r.limits||"multiscript"===r.type)&&(t.level===Ve||r.alwaysHandleSupSub)||r&&"operatorname"===r.type&&r.alwaysHandleSupSub&&(t.level===Ve||r.limits)?"munderover":"msubsup"}else{const r=e.base;u=r&&"op"===r.type&&r.limits&&(t.level===Ve||r.alwaysHandleSupSub)||r&&"operatorname"===r.type&&r.alwaysHandleSupSub&&(r.limits||t.level===Ve)?"munder":"msub"}else{const r=e.base;u=r&&"op"===r.type&&r.limits&&(t.level===Ve||r.alwaysHandleSupSub)||r&&"operatorname"===r.type&&r.alwaysHandleSupSub&&(r.limits||t.level===Ve)?"mover":"msup"}let d=new T.MathNode(u,l);if(o){const e=new T.MathNode("mo",[re("\u2061","text")]);if(s){const t=new T.MathNode("mspace");t.setAttribute("width","0.1667em"),d=T.newDocumentFragment([t,d,e])}else d=T.newDocumentFragment([d,e]);if(i){const e=new T.MathNode("mspace");e.setAttribute("width","0.1667em"),d.children.push(e)}}else xr.test(u)&&(d=new T.MathNode("mrow",[d]));return d}});const br=["\\shortmid","\\nshortmid","\\shortparallel","\\nshortparallel","\\smallsetminus"],wr=["\\Rsh","\\Lsh","\\restriction"];d({type:"atom",mathmlBuilder(e,t){const r=new T.MathNode("mo",[re(e.text,e.mode)]);if("punct"===e.family)r.setAttribute("separator","true");else if("open"===e.family||"close"===e.family)"open"===e.family?(r.setAttribute("form","prefix"),r.setAttribute("stretchy","false")):"close"===e.family&&(r.setAttribute("form","postfix"),r.setAttribute("stretchy","false"));else if("\\mid"===e.text)r.setAttribute("lspace","0.22em"),r.setAttribute("rspace","0.22em"),r.setAttribute("stretchy","false");else if("rel"===e.family&&(e=>{if(1===e.length){const t=e.codePointAt(0);return 8591<t&&t<8704}return e.indexOf("arrow")>-1||e.indexOf("harpoon")>-1||wr.includes(e)})(e.text))r.setAttribute("stretchy","false");else if(br.includes(e.text))r.setAttribute("mathsize","70%");else if(":"===e.text)r.attributes.lspace="0.2222em",r.attributes.rspace="0.2222em";else if(e.needsSpacing)return"bin"===e.family?new T.MathNode("mrow",[ke(.222),r,ke(.222)]):new T.MathNode("mrow",[ke(.2778),r,ke(.2778)]);return r}});const yr={mathbf:"bold",mathrm:"normal",textit:"italic",mathit:"italic",mathnormal:"italic",mathbb:"double-struck",mathcal:"script",mathfrak:"fraktur",mathscr:"script",mathsf:"sans-serif",mathtt:"monospace"},vr=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsc"===t.fontFamily)return"normal";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"sans-serif-bold":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";const r=t.font;if(!r||"mathnormal"===r)return null;const n=e.mode;switch(r){case"mathit":case"greekItalic":return"italic";case"mathrm":{const t=e.text.codePointAt(0);return 939<t&&t<975?"italic":"normal"}case"up@greek":return"normal";case"boldsymbol":case"mathboldsymbol":return"bold-italic";case"mathbf":return"bold";case"mathbb":return"double-struck";case"mathfrak":return"fraktur";case"mathscr":case"mathcal":return"script";case"mathsf":return"sans-serif";case"mathsfit":return"sans-serif-italic";case"mathtt":return"monospace"}let a=e.text;return B[n][a]&&B[n][a].replace&&(a=B[n][a].replace),Object.prototype.hasOwnProperty.call(yr,r)?yr[r]:null},Ar=Object.freeze({B:8426,E:8427,F:8427,H:8387,I:8391,L:8390,M:8422,R:8393,e:8394,g:8355,o:8389}),Er=Object.freeze({C:8426,H:8388,I:8392,R:8394,Z:8398}),_r=Object.freeze({C:8383,H:8389,N:8391,P:8393,Q:8393,R:8395,Z:8394}),Cr=Object.freeze({\u03f5:119527,\u03d1:119564,\u03f0:119534,\u03c6:119577,\u03f1:119535,\u03d6:119563}),Tr=Object.freeze({\u03f5:119643,\u03d1:119680,\u03f0:119650,\u03c6:119693,\u03f1:119651,\u03d6:119679}),qr=Object.freeze({\u03f5:119701,\u03d1:119738,\u03f0:119708,\u03c6:119751,\u03f1:119709,\u03d6:119737}),Nr=Object.freeze({\u03f5:119759,\u03d1:119796,\u03f0:119766,\u03c6:119809,\u03f1:119767,\u03d6:119795}),kr=Object.freeze({upperCaseLatin:{normal:e=>0,bold:e=>119743,italic:e=>119795,"bold-italic":e=>119847,script:e=>Ar[e]||119899,"script-bold":e=>119951,fraktur:e=>Er[e]||120003,"fraktur-bold":e=>120107,"double-struck":e=>_r[e]||120055,"sans-serif":e=>120159,"sans-serif-bold":e=>120211,"sans-serif-italic":e=>120263,"sans-serif-bold-italic":e=>120380,monospace:e=>120367},lowerCaseLatin:{normal:e=>0,bold:e=>119737,italic:e=>"h"===e?8358:119789,"bold-italic":e=>119841,script:e=>Ar[e]||119893,"script-bold":e=>119945,fraktur:e=>119997,"fraktur-bold":e=>120101,"double-struck":e=>120049,"sans-serif":e=>120153,"sans-serif-bold":e=>120205,"sans-serif-italic":e=>120257,"sans-serif-bold-italic":e=>120309,monospace:e=>120361},upperCaseGreek:{normal:e=>0,bold:e=>119575,italic:e=>119633,"bold-italic":e=>119575,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>0,"sans-serif":e=>119749,"sans-serif-bold":e=>119749,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>119807,monospace:e=>0},lowerCaseGreek:{normal:e=>0,bold:e=>119569,italic:e=>119627,"bold-italic":e=>"\u03d5"===e?119678:119685,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>0,"sans-serif":e=>119743,"sans-serif-bold":e=>119743,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>119801,monospace:e=>0},varGreek:{normal:e=>0,bold:e=>Cr[e]||-51,italic:e=>0,"bold-italic":e=>Tr[e]||58,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>0,"sans-serif":e=>qr[e]||116,"sans-serif-bold":e=>qr[e]||116,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>Nr[e]||174,monospace:e=>0},numeral:{normal:e=>0,bold:e=>120734,italic:e=>0,"bold-italic":e=>0,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>120744,"sans-serif":e=>120754,"sans-serif-bold":e=>120764,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>0,monospace:e=>120774}}),Sr=(e,t)=>{const r=e.codePointAt(0),n=64<r&&r<91?"upperCaseLatin":96<r&&r<123?"lowerCaseLatin":912<r&&r<938?"upperCaseGreek":944<r&&r<970||"\u03d5"===e?"lowerCaseGreek":120545<r&&r<120572||Cr[e]?"varGreek":47<r&&r<58?"numeral":"other";return"other"===n?e:String.fromCodePoint(r+kr[n][t](e))},Mr=Object.freeze({a:"\u1d00",b:"\u0299",c:"\u1d04",d:"\u1d05",e:"\u1d07",f:"\ua730",g:"\u0262",h:"\u029c",i:"\u026a",j:"\u1d0a",k:"\u1d0b",l:"\u029f",m:"\u1d0d",n:"\u0274",o:"\u1d0f",p:"\u1d18",q:"\u01eb",r:"\u0280",s:"s",t:"\u1d1b",u:"\u1d1c",v:"\u1d20",w:"\u1d21",x:"x",y:"\u028f",z:"\u1d22"}),Lr=/^\d(?:[\d,.]*\d)?$/,Or=/[A-Ba-z]/,Dr=new Set(["\\prime","\\dprime","\\trprime","\\qprime","\\backprime","\\backdprime","\\backtrprime"]);d({type:"mathord",mathmlBuilder(e,t){const r=re(e.text,e.mode,t),n=r.text.codePointAt(0),a=912<n&&n<938?"normal":"italic",o=vr(e,t)||a;if("script"===o)return r.text=Sr(r.text,o),new T.MathNode("mi",[r],[t.font]);"italic"!==o&&(r.text=Sr(r.text,o));let i=new T.MathNode("mi",[r]);return"normal"===o&&(i.setAttribute("mathvariant","normal"),1===r.text.length&&(i=new T.MathNode("mpadded",[i]),i.setAttribute("lspace","0"),i.setAttribute("rspace","0"))),i}}),d({type:"textord",mathmlBuilder(e,t){let r=e.text;const n=r.codePointAt(0);"textsc"===t.fontFamily&&96<n&&n<123&&(r=Mr[r]);const a=re(r,e.mode,t),o=vr(e,t)||"normal";let i;if(Lr.test(e.text)){const t="text"===e.mode?"mtext":"mn";if("italic"===o||"bold-italic"===o)return((e,t,r)=>{const n=new T.MathNode(r,[e]),a=new T.MathNode("mstyle",[n]);return a.style["font-style"]="italic",a.style["font-family"]="Cambria, 'Times New Roman', serif","bold-italic"===t&&(a.style["font-weight"]="bold"),a})(a,o,t);"normal"!==o&&(a.text=a.text.split("").map((e=>Sr(e,o))).join("")),i=new T.MathNode(t,[a])}else if("text"===e.mode)"normal"!==o&&(a.text=Sr(a.text,o)),i=new T.MathNode("mtext",[a]);else if(Dr.has(e.text))i=new T.MathNode("mo",[a]),i.classes.push("tml-prime");else{const e=a.text;"italic"!==o&&(a.text=Sr(a.text,o)),i=new T.MathNode("mi",[a]),a.text===e&&Or.test(e)&&i.setAttribute("mathvariant","italic")}return i}});const Br={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Fr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};d({type:"spacing",mathmlBuilder(e,r){let n;if(Object.prototype.hasOwnProperty.call(Fr,e.text))n=new T.MathNode("mtext",[new T.TextNode("\xa0")]);else{if(!Object.prototype.hasOwnProperty.call(Br,e.text))throw new t(`Unknown type of space "${e.text}"`);n=new T.MathNode("mo"),"\\nobreak"===e.text&&n.setAttribute("linebreak","nobreak")}return n}}),d({type:"tag"});const $r={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm","\\textsc":"textsc"},Ir={"\\textbf":"textbf","\\textmd":"textmd"},Pr={"\\textit":"textit","\\textup":"textup"};u({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textsc","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler({parser:e,funcName:t},r){const n=r[0];return{type:"text",mode:e.mode,body:m(n),font:t}},mathmlBuilder(e,t){const r=((e,t)=>{const r=e.font;return r?$r[r]?t.withTextFontFamily($r[r]):Ir[r]?t.withTextFontWeight(Ir[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(Pr[r]):t})(e,t),n=ue(e.body,r);return ae(n)}}),u({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:({parser:e},t)=>({type:"vcenter",mode:e.mode,body:t[0]}),mathmlBuilder(e,t){const r=new T.MathNode("mtd",[de(e.body,t)]);r.style.padding="0";const n=new T.MathNode("mtr",[r]);return new T.MathNode("mtable",[n])}}),u({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,r,n){throw new t("\\verb ended by end of line instead of matching delimiter")},mathmlBuilder(e,t){const r=new T.TextNode(Rr(e)),n=new T.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});const Rr=e=>e.body.replace(/ /g,e.star?"\u2423":"\xa0"),jr=l,zr="[ \r\n\t]",Ur=`(\\\\[a-zA-Z@]+)${zr}*`,Gr="[\u0300-\u036f]",Hr=new RegExp(`${Gr}+$`),Vr=`(${zr}+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff]${Gr}*|[\ud800-\udbff][\udc00-\udfff]${Gr}*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|${Ur}|\\\\[^\ud800-\udfff])`;class Wr{constructor(e,t){this.input=e,this.settings=t,this.tokenRegex=new RegExp(Vr,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){const e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new He("EOF",new Ge(this,r,r));const n=this.tokenRegex.exec(e);if(null===n||n.index!==r)throw new t(`Unexpected character: '${e[r]}'`,new He(e[r],new Ge(this,r,r+1)));const a=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[a]){const r=e.indexOf("\n",this.tokenRegex.lastIndex);if(-1===r){if(this.tokenRegex.lastIndex=e.length,this.settings.strict)throw new t("% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode")}else this.tokenRegex.lastIndex=r+1;return this.lex()}return new He(a,new Ge(this,r,this.tokenRegex.lastIndex))}}class Xr{constructor(e={},t={}){this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new t("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const e=this.undefStack.pop();for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){return Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:this.builtins[e]}set(e,t,r=!1){if(r){for(let t=0;t<this.undefStack.length;t++)delete this.undefStack[t][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{const t=this.undefStack[this.undefStack.length-1];t&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=this.current[e])}this.current[e]=t}}const Zr={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Yr{constructor(e,t,r){this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Xr(Ke,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new Wr(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){let t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:n,end:r}=this.consumeArg(["]"]))}else({tokens:n,start:t,end:r}=this.consumeArg());return this.pushToken(new He("EOF",r.loc)),this.pushTokens(n),t.range(r,"")}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){const r=[],n=e&&e.length>0;n||this.consumeSpaces();const a=this.future();let o,i=0,s=0;do{if(o=this.popToken(),r.push(o),"{"===o.text)++i;else if("}"===o.text){if(--i,-1===i)throw new t("Extra }",o)}else if("EOF"===o.text)throw new t("Unexpected end of input in a macro argument, expected '"+(e&&n?e[s]:"}")+"'",o);if(e&&n)if((0===i||1===i&&"{"===e[s])&&o.text===e[s]){if(++s,s===e.length){r.splice(-s,s);break}}else s=0}while(0!==i||n);return"{"===a.text&&"}"===r[r.length-1].text&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:o}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new t("The length of delimiters doesn't match the number of args!");const n=r[0];for(let e=0;e<n.length;e++){const r=this.popToken();if(n[e]!==r.text)throw new t("Use of the macro doesn't match its definition",r)}}const n=[];for(let t=0;t<e;t++)n.push(this.consumeArg(r&&r[t+1]).tokens);return n}expandOnce(e){const r=this.popToken(),n=r.text,a=r.noexpand?null:this._getExpansion(n);if(null==a||e&&a.unexpandable){if(e&&null==a&&"\\"===n[0]&&!this.isDefined(n))throw new t("Undefined control sequence: "+n);return this.pushToken(r),!1}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new t("Too many expansions: infinite loop or need to increase maxExpand setting");let o=a.tokens;const i=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){o=o.slice();for(let e=o.length-1;e>=0;--e){let r=o[e];if("#"===r.text){if(0===e)throw new t("Incomplete placeholder at end of macro body",r);if(r=o[--e],"#"===r.text)o.splice(e+1,1);else{if(!/^[1-9]$/.test(r.text))throw new t("Not a valid argument number",r);o.splice(e,2,...i[+r.text-1])}}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){const e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new He(e)]):void 0}expandTokens(e){const t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){const e=this.stack.pop();e.treatAsRelax&&(e.noexpand=!1,e.treatAsRelax=!1),t.push(e)}return t}expandMacroAsText(e){const t=this.expandMacro(e);return t?t.map((e=>e.text)).join(""):t}_getExpansion(e){const t=this.macros.get(e);if(null==t)return t;if(1===e.length){const t=this.lexer.catcodes[e];if(null!=t&&13!==t)return}const r="function"==typeof t?t(this):t;if("string"==typeof r){let e=0;if(-1!==r.indexOf("#")){const t=r.replace(/##/g,"");for(;-1!==t.indexOf("#"+(e+1));)++e}const t=new Wr(r,this.settings),n=[];let a=t.lex();for(;"EOF"!==a.text;)n.push(a),a=t.lex();n.reverse();return{tokens:n,numArgs:e}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(jr,e)||Object.prototype.hasOwnProperty.call(B.math,e)||Object.prototype.hasOwnProperty.call(B.text,e)||Object.prototype.hasOwnProperty.call(Zr,e)}isExpandable(e){const t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:Object.prototype.hasOwnProperty.call(jr,e)&&!jr[e].primitive}}const Jr=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,Kr=Object.freeze({"\u208a":"+","\u208b":"-","\u208c":"=","\u208d":"(","\u208e":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9",\u2090:"a",\u2091:"e",\u2095:"h",\u1d62:"i",\u2c7c:"j",\u2096:"k",\u2097:"l",\u2098:"m",\u2099:"n",\u2092:"o",\u209a:"p",\u1d63:"r",\u209b:"s",\u209c:"t",\u1d64:"u",\u1d65:"v",\u2093:"x",\u1d66:"\u03b2",\u1d67:"\u03b3",\u1d68:"\u03c1",\u1d69:"\u03d5",\u1d6a:"\u03c7","\u207a":"+","\u207b":"-","\u207c":"=","\u207d":"(","\u207e":")","\u2070":"0","\xb9":"1","\xb2":"2","\xb3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9",\u1d2c:"A",\u1d2e:"B",\u1d30:"D",\u1d31:"E",\u1d33:"G",\u1d34:"H",\u1d35:"I",\u1d36:"J",\u1d37:"K",\u1d38:"L",\u1d39:"M",\u1d3a:"N",\u1d3c:"O",\u1d3e:"P",\u1d3f:"R",\u1d40:"T",\u1d41:"U",\u2c7d:"V",\u1d42:"W",\u1d43:"a",\u1d47:"b",\u1d9c:"c",\u1d48:"d",\u1d49:"e",\u1da0:"f",\u1d4d:"g",\u02b0:"h",\u2071:"i",\u02b2:"j",\u1d4f:"k",\u02e1:"l",\u1d50:"m",\u207f:"n",\u1d52:"o",\u1d56:"p",\u02b3:"r",\u02e2:"s",\u1d57:"t",\u1d58:"u",\u1d5b:"v",\u02b7:"w",\u02e3:"x",\u02b8:"y",\u1dbb:"z",\u1d5d:"\u03b2",\u1d5e:"\u03b3",\u1d5f:"\u03b4",\u1d60:"\u03d5",\u1d61:"\u03c7",\u1dbf:"\u03b8"}),Qr=Object.freeze({\u{1d49c}:"A",\u212c:"B",\u{1d49e}:"C",\u{1d49f}:"D",\u2130:"E",\u2131:"F",\u{1d4a2}:"G",\u210b:"H",\u2110:"I",\u{1d4a5}:"J",\u{1d4a6}:"K",\u2112:"L",\u2133:"M",\u{1d4a9}:"N",\u{1d4aa}:"O",\u{1d4ab}:"P",\u{1d4ac}:"Q",\u211b:"R",\u{1d4ae}:"S",\u{1d4af}:"T",\u{1d4b0}:"U",\u{1d4b1}:"V",\u{1d4b2}:"W",\u{1d4b3}:"X",\u{1d4b4}:"Y",\u{1d4b5}:"Z"});var en={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"},"\u0327":{text:"\\c"}},tn={\u00e1:"a\u0301",\u00e0:"a\u0300",\u00e4:"a\u0308",\u01df:"a\u0308\u0304",\u00e3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1eaf:"a\u0306\u0301",\u1eb1:"a\u0306\u0300",\u1eb5:"a\u0306\u0303",\u01ce:"a\u030c",\u00e2:"a\u0302",\u1ea5:"a\u0302\u0301",\u1ea7:"a\u0302\u0300",\u1eab:"a\u0302\u0303",\u0227:"a\u0307",\u01e1:"a\u0307\u0304",\u00e5:"a\u030a",\u01fb:"a\u030a\u0301",\u1e03:"b\u0307",\u0107:"c\u0301",\u010d:"c\u030c",\u0109:"c\u0302",\u010b:"c\u0307",\u010f:"d\u030c",\u1e0b:"d\u0307",\u00e9:"e\u0301",\u00e8:"e\u0300",\u00eb:"e\u0308",\u1ebd:"e\u0303",\u0113:"e\u0304",\u1e17:"e\u0304\u0301",\u1e15:"e\u0304\u0300",\u0115:"e\u0306",\u011b:"e\u030c",\u00ea:"e\u0302",\u1ebf:"e\u0302\u0301",\u1ec1:"e\u0302\u0300",\u1ec5:"e\u0302\u0303",\u0117:"e\u0307",\u1e1f:"f\u0307",\u01f5:"g\u0301",\u1e21:"g\u0304",\u011f:"g\u0306",\u01e7:"g\u030c",\u011d:"g\u0302",\u0121:"g\u0307",\u1e27:"h\u0308",\u021f:"h\u030c",\u0125:"h\u0302",\u1e23:"h\u0307",\u00ed:"i\u0301",\u00ec:"i\u0300",\u00ef:"i\u0308",\u1e2f:"i\u0308\u0301",\u0129:"i\u0303",\u012b:"i\u0304",\u012d:"i\u0306",\u01d0:"i\u030c",\u00ee:"i\u0302",\u01f0:"j\u030c",\u0135:"j\u0302",\u1e31:"k\u0301",\u01e9:"k\u030c",\u013a:"l\u0301",\u013e:"l\u030c",\u1e3f:"m\u0301",\u1e41:"m\u0307",\u0144:"n\u0301",\u01f9:"n\u0300",\u00f1:"n\u0303",\u0148:"n\u030c",\u1e45:"n\u0307",\u00f3:"o\u0301",\u00f2:"o\u0300",\u00f6:"o\u0308",\u022b:"o\u0308\u0304",\u00f5:"o\u0303",\u1e4d:"o\u0303\u0301",\u1e4f:"o\u0303\u0308",\u022d:"o\u0303\u0304",\u014d:"o\u0304",\u1e53:"o\u0304\u0301",\u1e51:"o\u0304\u0300",\u014f:"o\u0306",\u01d2:"o\u030c",\u00f4:"o\u0302",\u1ed1:"o\u0302\u0301",\u1ed3:"o\u0302\u0300",\u1ed7:"o\u0302\u0303",\u022f:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030b",\u1e55:"p\u0301",\u1e57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030c",\u1e59:"r\u0307",\u015b:"s\u0301",\u1e65:"s\u0301\u0307",\u0161:"s\u030c",\u1e67:"s\u030c\u0307",\u015d:"s\u0302",\u1e61:"s\u0307",\u1e97:"t\u0308",\u0165:"t\u030c",\u1e6b:"t\u0307",\u00fa:"u\u0301",\u00f9:"u\u0300",\u00fc:"u\u0308",\u01d8:"u\u0308\u0301",\u01dc:"u\u0308\u0300",\u01d6:"u\u0308\u0304",\u01da:"u\u0308\u030c",\u0169:"u\u0303",\u1e79:"u\u0303\u0301",\u016b:"u\u0304",\u1e7b:"u\u0304\u0308",\u016d:"u\u0306",\u01d4:"u\u030c",\u00fb:"u\u0302",\u016f:"u\u030a",\u0171:"u\u030b",\u1e7d:"v\u0303",\u1e83:"w\u0301",\u1e81:"w\u0300",\u1e85:"w\u0308",\u0175:"w\u0302",\u1e87:"w\u0307",\u1e98:"w\u030a",\u1e8d:"x\u0308",\u1e8b:"x\u0307",\u00fd:"y\u0301",\u1ef3:"y\u0300",\u00ff:"y\u0308",\u1ef9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1e8f:"y\u0307",\u1e99:"y\u030a",\u017a:"z\u0301",\u017e:"z\u030c",\u1e91:"z\u0302",\u017c:"z\u0307",\u00c1:"A\u0301",\u00c0:"A\u0300",\u00c4:"A\u0308",\u01de:"A\u0308\u0304",\u00c3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1eae:"A\u0306\u0301",\u1eb0:"A\u0306\u0300",\u1eb4:"A\u0306\u0303",\u01cd:"A\u030c",\u00c2:"A\u0302",\u1ea4:"A\u0302\u0301",\u1ea6:"A\u0302\u0300",\u1eaa:"A\u0302\u0303",\u0226:"A\u0307",\u01e0:"A\u0307\u0304",\u00c5:"A\u030a",\u01fa:"A\u030a\u0301",\u1e02:"B\u0307",\u0106:"C\u0301",\u010c:"C\u030c",\u0108:"C\u0302",\u010a:"C\u0307",\u010e:"D\u030c",\u1e0a:"D\u0307",\u00c9:"E\u0301",\u00c8:"E\u0300",\u00cb:"E\u0308",\u1ebc:"E\u0303",\u0112:"E\u0304",\u1e16:"E\u0304\u0301",\u1e14:"E\u0304\u0300",\u0114:"E\u0306",\u011a:"E\u030c",\u00ca:"E\u0302",\u1ebe:"E\u0302\u0301",\u1ec0:"E\u0302\u0300",\u1ec4:"E\u0302\u0303",\u0116:"E\u0307",\u1e1e:"F\u0307",\u01f4:"G\u0301",\u1e20:"G\u0304",\u011e:"G\u0306",\u01e6:"G\u030c",\u011c:"G\u0302",\u0120:"G\u0307",\u1e26:"H\u0308",\u021e:"H\u030c",\u0124:"H\u0302",\u1e22:"H\u0307",\u00cd:"I\u0301",\u00cc:"I\u0300",\u00cf:"I\u0308",\u1e2e:"I\u0308\u0301",\u0128:"I\u0303",\u012a:"I\u0304",\u012c:"I\u0306",\u01cf:"I\u030c",\u00ce:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1e30:"K\u0301",\u01e8:"K\u030c",\u0139:"L\u0301",\u013d:"L\u030c",\u1e3e:"M\u0301",\u1e40:"M\u0307",\u0143:"N\u0301",\u01f8:"N\u0300",\u00d1:"N\u0303",\u0147:"N\u030c",\u1e44:"N\u0307",\u00d3:"O\u0301",\u00d2:"O\u0300",\u00d6:"O\u0308",\u022a:"O\u0308\u0304",\u00d5:"O\u0303",\u1e4c:"O\u0303\u0301",\u1e4e:"O\u0303\u0308",\u022c:"O\u0303\u0304",\u014c:"O\u0304",\u1e52:"O\u0304\u0301",\u1e50:"O\u0304\u0300",\u014e:"O\u0306",\u01d1:"O\u030c",\u00d4:"O\u0302",\u1ed0:"O\u0302\u0301",\u1ed2:"O\u0302\u0300",\u1ed6:"O\u0302\u0303",\u022e:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030b",\u1e54:"P\u0301",\u1e56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030c",\u1e58:"R\u0307",\u015a:"S\u0301",\u1e64:"S\u0301\u0307",\u0160:"S\u030c",\u1e66:"S\u030c\u0307",\u015c:"S\u0302",\u1e60:"S\u0307",\u0164:"T\u030c",\u1e6a:"T\u0307",\u00da:"U\u0301",\u00d9:"U\u0300",\u00dc:"U\u0308",\u01d7:"U\u0308\u0301",\u01db:"U\u0308\u0300",\u01d5:"U\u0308\u0304",\u01d9:"U\u0308\u030c",\u0168:"U\u0303",\u1e78:"U\u0303\u0301",\u016a:"U\u0304",\u1e7a:"U\u0304\u0308",\u016c:"U\u0306",\u01d3:"U\u030c",\u00db:"U\u0302",\u016e:"U\u030a",\u0170:"U\u030b",\u1e7c:"V\u0303",\u1e82:"W\u0301",\u1e80:"W\u0300",\u1e84:"W\u0308",\u0174:"W\u0302",\u1e86:"W\u0307",\u1e8c:"X\u0308",\u1e8a:"X\u0307",\u00dd:"Y\u0301",\u1ef2:"Y\u0300",\u0178:"Y\u0308",\u1ef8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1e8e:"Y\u0307",\u0179:"Z\u0301",\u017d:"Z\u030c",\u1e90:"Z\u0302",\u017b:"Z\u0307",\u03ac:"\u03b1\u0301",\u1f70:"\u03b1\u0300",\u1fb1:"\u03b1\u0304",\u1fb0:"\u03b1\u0306",\u03ad:"\u03b5\u0301",\u1f72:"\u03b5\u0300",\u03ae:"\u03b7\u0301",\u1f74:"\u03b7\u0300",\u03af:"\u03b9\u0301",\u1f76:"\u03b9\u0300",\u03ca:"\u03b9\u0308",\u0390:"\u03b9\u0308\u0301",\u1fd2:"\u03b9\u0308\u0300",\u1fd1:"\u03b9\u0304",\u1fd0:"\u03b9\u0306",\u03cc:"\u03bf\u0301",\u1f78:"\u03bf\u0300",\u03cd:"\u03c5\u0301",\u1f7a:"\u03c5\u0300",\u03cb:"\u03c5\u0308",\u03b0:"\u03c5\u0308\u0301",\u1fe2:"\u03c5\u0308\u0300",\u1fe1:"\u03c5\u0304",\u1fe0:"\u03c5\u0306",\u03ce:"\u03c9\u0301",\u1f7c:"\u03c9\u0300",\u038e:"\u03a5\u0301",\u1fea:"\u03a5\u0300",\u03ab:"\u03a5\u0308",\u1fe9:"\u03a5\u0304",\u1fe8:"\u03a5\u0306",\u038f:"\u03a9\u0301",\u1ffa:"\u03a9\u0300"};const rn=["bin","op","open","punct","rel"],nn=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/,an=/^ *\\text/;class on{constructor(e,t,r=!1){this.mode="math",this.gullet=new Yr(e,t,this.mode),this.settings=t,this.isPreamble=r,this.leftrightDepth=0,this.prevAtomType=""}expect(e,r=!0){if(this.fetch().text!==e)throw new t(`Expected '${e}', got '${this.fetch().text}'`,this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");const e=this.parseExpression(!1);if(this.expect("EOF"),this.isPreamble){const e=Object.create(null);return Object.entries(this.gullet.macros.current).forEach((([t,r])=>{e[t]=r})),this.gullet.endGroup(),e}const t=this.gullet.macros.get("\\df@tag");return this.gullet.endGroup(),t&&(this.gullet.macros.current["\\df@tag"]=t),e}static get endOfExpression(){return["}","\\endgroup","\\end","\\right","\\endtoggle","&"]}subparse(e){const t=this.nextToken;this.consume(),this.gullet.pushToken(new He("}")),this.gullet.pushTokens(e);const r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t,r){const n=[];for(this.prevAtomType="";;){"math"===this.mode&&this.consumeSpaces();const a=this.fetch();if(-1!==on.endOfExpression.indexOf(a.text))break;if(t&&a.text===t)break;if(r&&"\\middle"===a.text)break;if(e&&jr[a.text]&&jr[a.text].infix)break;const o=this.parseAtom(t);if(!o)break;"internal"!==o.type&&(n.push(o),this.prevAtomType="atom"===o.type?o.family:o.type)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){let r,n=-1;for(let a=0;a<e.length;a++)if("infix"===e[a].type){if(-1!==n)throw new t("only one infix operator per group",e[a].token);n=a,r=e[a].replaceWith}if(-1!==n&&r){let t,a;const o=e.slice(0,n),i=e.slice(n+1);let s;return t=1===o.length&&"ordgroup"===o[0].type?o[0]:{type:"ordgroup",mode:this.mode,body:o},a=1===i.length&&"ordgroup"===i[0].type?i[0]:{type:"ordgroup",mode:this.mode,body:i},s="\\\\abovefrac"===r?this.callFunction(r,[t,e[n],a],[]):this.callFunction(r,[t,a],[]),[s]}return e}handleSupSubscript(e){const r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();const a=this.parseGroup(e);if(!a)throw new t("Expected group after '"+n+"'",r);return a}formatUnsupportedCmd(e){const t=[];for(let r=0;r<e.length;r++)t.push({type:"textord",mode:"text",text:e[r]});const r={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){const r=this.parseGroup("atom",e);if("text"===this.mode)return r;let n,a;for(;;){this.consumeSpaces();const e=this.fetch();if("\\limits"===e.text||"\\nolimits"===e.text){if(r&&"op"===r.type){const t="\\limits"===e.text;r.limits=t,r.alwaysHandleSupSub=!0}else{if(!r||"operatorname"!==r.type)throw new t("Limit controls must follow a math operator",e);r.alwaysHandleSupSub&&(r.limits="\\limits"===e.text)}this.consume()}else if("^"===e.text){if(n)throw new t("Double superscript",e);n=this.handleSupSubscript("superscript")}else if("_"===e.text){if(a)throw new t("Double subscript",e);a=this.handleSupSubscript("subscript")}else if("'"===e.text){if(n)throw new t("Double superscript",e);const r={type:"textord",mode:this.mode,text:"\\prime"},a=[r];for(this.consume();"'"===this.fetch().text;)a.push(r),this.consume();"^"===this.fetch().text&&a.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:a}}else{if(!Kr[e.text])break;{const t=Jr.test(e.text),r=[];for(r.push(new He(Kr[e.text])),this.consume();;){const e=this.fetch().text;if(!Kr[e])break;if(Jr.test(e)!==t)break;r.unshift(new He(Kr[e])),this.consume()}const o=this.subparse(r);t?a={type:"ordgroup",mode:"math",body:o}:n={type:"ordgroup",mode:"math",body:o}}}}if(n||a){if(r&&"multiscript"===r.type&&!r.postscripts)return r.postscripts={sup:n,sub:a},r;{const e=!r||"op"!==r.type&&"operatorname"!==r.type?void 0:Rt(this.nextToken.text);return{type:"supsub",mode:this.mode,base:r,sup:n,sub:a,isFollowedByDelimiter:e}}}return r}parseFunction(e,r){const n=this.fetch(),a=n.text,o=jr[a];if(!o)return null;if(this.consume(),r&&"atom"!==r&&!o.allowedInArgument)throw new t("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if("text"===this.mode&&!o.allowedInText)throw new t("Can't use function '"+a+"' in text mode",n);if("math"===this.mode&&!1===o.allowedInMath)throw new t("Can't use function '"+a+"' in math mode",n);const i=this.prevAtomType,{args:s,optArgs:l}=this.parseArguments(a,o);return this.prevAtomType=i,this.callFunction(a,s,l,n,e)}callFunction(e,r,n,a,o){const i={funcName:e,parser:this,token:a,breakOnTokenText:o},s=jr[e];if(s&&s.handler)return s.handler(i,r,n);throw new t(`No function handler for ${e}`)}parseArguments(e,r){const n=r.numArgs+r.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};const a=[],o=[];for(let i=0;i<n;i++){let n=r.argTypes&&r.argTypes[i];const s=i<r.numOptionalArgs;(r.primitive&&null==n||"sqrt"===r.type&&1===i&&null==o[0])&&(n="primitive");const l=this.parseGroupOfType(`argument to '${e}'`,n,s);if(s)o.push(l);else{if(null==l)throw new t("Null argument, please report this as a bug");a.push(l)}}return{args:a,optArgs:o}}parseGroupOfType(e,r,n){switch(r){case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{const e=this.parseArgumentGroup(n,"text");return null!=e?{type:"styling",mode:e.mode,body:[e],scriptLevel:"text"}:null}case"raw":{const e=this.parseStringGroup("raw",n);return null!=e?{type:"raw",mode:"text",string:e.text}:null}case"primitive":{if(n)throw new t("A primitive argument cannot be optional");const r=this.parseGroup(e);if(null==r)throw new t("Expected group as "+e,this.fetch());return r}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new t("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;;){const e=this.fetch().text;if(" "!==e&&"\xa0"!==e&&"\ufe0e"!==e)break;this.consume()}}parseStringGroup(e,t){const r=this.gullet.scanArgument(t);if(null==r)return null;let n,a="";for(;"EOF"!==(n=this.fetch()).text;)a+=n.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(e,r){const n=this.fetch();let a,o=n,i="";for(;"EOF"!==(a=this.fetch()).text&&e.test(i+a.text);)o=a,i+=o.text,this.consume();if(""===i)throw new t("Invalid "+r+": '"+n.text+"'",n);return n.range(o,i)}parseSizeGroup(e){let r,n=!1;if(this.gullet.consumeSpaces(),r=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"),!r)return null;e||0!==r.text.length||(r.text="0pt",n=!0);const a=nn.exec(r.text);if(!a)throw new t("Invalid size: '"+r.text+"'",r);const o={number:+(a[1]+a[2]),unit:a[3]};if(!Te(o))throw new t("Invalid unit: '"+o.unit+"'",r);return{type:"size",mode:this.mode,value:o,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);const t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;let r=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return r=t.text.replace(/{\u2044}/g,"/"),{type:"url",mode:this.mode,url:r}}parseArgumentGroup(e,t){const r=this.gullet.scanArgument(e);if(null==r)return null;const n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();const a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();const o={type:"ordgroup",mode:this.mode,loc:r.loc,body:a};return t&&this.switchMode(n),o}parseGroup(e,t){const r=this.fetch(),n=r.text;let a;if("{"===n||"\\begingroup"===n||"\\toggle"===n){this.consume();const e="{"===n?"}":"\\begingroup"===n?"\\endgroup":"\\endtoggle";this.gullet.beginGroup();const t=this.parseExpression(!1,e),o=this.fetch();this.expect(e),this.gullet.endGroup(),a={type:"\\endtoggle"===o.text?"toggle":"ordgroup",mode:this.mode,loc:Ge.range(r,o),body:t,semisimple:"\\begingroup"===n||void 0}}else a=this.parseFunction(t,e)||this.parseSymbol(),null!=a||"\\"!==n[0]||Object.prototype.hasOwnProperty.call(Zr,n)||(a=this.formatUnsupportedCmd(n),this.consume());return a}formLigatures(e){let t=e.length-1;for(let r=0;r<t;++r){const n=e[r],a=n.text;"-"===a&&"-"===e[r+1].text&&(r+1<t&&"-"===e[r+2].text?(e.splice(r,3,{type:"textord",mode:"text",loc:Ge.range(n,e[r+2]),text:"---"}),t-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:Ge.range(n,e[r+1]),text:"--"}),t-=1)),"'"!==a&&"`"!==a||e[r+1].text!==a||(e.splice(r,2,{type:"textord",mode:"text",loc:Ge.range(n,e[r+1]),text:a+a}),t-=1)}}parseSymbol(){const e=this.fetch();let r=e.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();let e=r.slice(5);const n="*"===e.charAt(0);if(n&&(e=e.slice(1)),e.length<2||e.charAt(0)!==e.slice(-1))throw new t("\\verb assertion failed --\n please report what input caused this bug");return e=e.slice(1,-1),{type:"verb",mode:"text",body:e,star:n}}if(Object.prototype.hasOwnProperty.call(tn,r[0])&&"math"===this.mode&&!B[this.mode][r[0]]){if(this.settings.strict&&"math"===this.mode)throw new t(`Accented Unicode text character "${r[0]}" used in math mode`,e);r=tn[r[0]]+r.slice(1)}const n="math"===this.mode?Hr.exec(r):null;let a;if(n&&(r=r.substring(0,n.index),"i"===r?r="\u0131":"j"===r&&(r="\u0237")),B[this.mode][r]){let t=B[this.mode][r].group;"bin"===t&&rn.includes(this.prevAtomType)&&(t="open");const n=Ge.range(e);let o;if(Object.prototype.hasOwnProperty.call(O,t)){const e=t;o={type:"atom",mode:this.mode,family:e,loc:n,text:r},"rel"!==e&&"bin"!==e||"text"!==this.prevAtomType||an.test(n.lexer.input.slice(n.end))&&(o.needsSpacing=!0)}else{if(Qr[r]){this.consume();const e=this.fetch().text.charCodeAt(0),t=65025===e?"mathscr":"mathcal";return 65024!==e&&65025!==e||this.consume(),{type:"font",mode:"math",font:t,body:{type:"mathord",mode:"math",loc:n,text:Qr[r]}}}o={type:t,mode:this.mode,loc:n,text:r}}a=o}else{if(!(r.charCodeAt(0)>=128||Hr.exec(r)))return null;if(this.settings.strict&&"math"===this.mode)throw new t(`Unicode text character "${r[0]}" used in math mode`,e);a={type:"textord",mode:"text",loc:Ge.range(e),text:r}}if(this.consume(),n)for(let r=0;r<n[0].length;r++){const o=n[0][r];if(!en[o])throw new t(`Unknown accent ' ${o}'`,e);const i=en[o][this.mode]||en[o].text;if(!i)throw new t(`Accent ${o} unsupported in ${this.mode} mode`,e);a={type:"accent",mode:this.mode,loc:Ge.range(e),label:i,isStretchy:!1,base:a}}return a}}const sn=function(e,r){if(!("string"==typeof e||e instanceof String))throw new TypeError("Temml can only parse string typed expression");const n=new on(e,r);delete n.gullet.macros.current["\\df@tag"];let a=n.parse();if(!(a.length>0&&a[0].type&&"array"===a[0].type&&a[0].addEqnNum)&&n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new t("\\tag works only in display mode");n.gullet.feed("\\df@tag"),a=[{type:"tag",mode:"text",body:a,tag:n.parse()}]}return a},ln=[2,2,3,3];class cn{constructor(e){this.level=e.level,this.color=e.color,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontSize=e.fontSize||1,this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.maxSize=e.maxSize}extend(e){const t={level:this.level,color:this.color,font:this.font,fontFamily:this.fontFamily,fontSize:this.fontSize,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return new cn(t)}withLevel(e){return this.extend({level:e})}incrementLevel(){return this.extend({level:Math.min(this.level+1,3)})}inSubOrSup(){return this.extend({level:ln[this.level]})}withColor(e){return this.extend({color:e})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withFontSize(e){return this.extend({fontSize:e})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}getColor(){return this.color}}function un(e){const t={};let r=0;const n=document.getElementsByClassName("tml-eqn");for(let e of n)for(r+=1,e.setAttribute("id","tml-eqn-"+String(r));"mtable"!==e.tagName;){if(e.getElementsByClassName("tml-label").length>0){const n=e.attributes.id.value;t[n]=String(r);break}e=e.parentElement}const a=document.getElementsByClassName("tml-tageqn");for(const e of a){if(e.getElementsByClassName("tml-label").length>0){const r=e.getElementsByClassName("tml-tag");if(r.length>0){const n=e.attributes.id.value;t[n]=r[0].textContent}}}[...e.getElementsByClassName("tml-ref")].forEach((e=>{const r=e.getAttribute("href");let n=t[r.slice(1)];-1===e.className.indexOf("tml-eqref")?(n=n.replace(/^\(/,""),n=n.replace(/\)$/,"")):("("!==n.charAt(0)&&(n="("+n),")"!==n.slice(-1)&&(n+=")"));const a=document.createElementNS("http://www.w3.org/1998/Math/MathML","mtext");a.appendChild(document.createTextNode(n));const o=document.createElementNS("http://www.w3.org/1998/Math/MathML","math");o.appendChild(a),e.textContent="",e.appendChild(o)}))}const dn=function(e,t,r){let n=r,a=0;const o=e.length;for(;n<t.length;){const r=t[n];if(a<=0&&t.slice(n,n+o)===e)return n;"\\"===r?n++:"{"===r?a++:"}"===r&&a--,n++}return-1},pn=/^\\(?:begin|(?:eq)?ref){/,mn=[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{equation*}",right:"\\end{equation*}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{align*}",right:"\\end{align*}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{alignat*}",right:"\\end{alignat*}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{gather*}",right:"\\end{gather*}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\ref{",right:"}",display:!1},{left:"\\eqref{",right:"}",display:!1},{left:"\\[",right:"\\]",display:!0}],hn={$:[{left:"$$",right:"$$",display:!0},{left:"$`",right:"`$",display:!1},{left:"$",right:"$",display:!1}],"(":[{left:"\\[",right:"\\]",display:!0},{left:"\\(",right:"\\)",display:!1}]},fn=[{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{equation*}",right:"\\end{equation*}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{align*}",right:"\\end{align*}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{alignat*}",right:"\\end{alignat*}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{gather*}",right:"\\end{gather*}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\ref{",right:"}",display:!1},{left:"\\eqref{",right:"}",display:!1}],gn=function(e,r){const n=function(e,t){let r;const n=[],a=new RegExp("("+t.map((e=>e.left.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"))).join("|")+")");for(;r=e.search(a),-1!==r;){r>0&&(n.push({type:"text",data:e.slice(0,r)}),e=e.slice(r));const a=t.findIndex((t=>e.startsWith(t.left)));if(r=dn(t[a].right,e,t[a].left.length),-1===r)break;const o=e.slice(0,r+t[a].right.length),i=pn.test(o)?o:e.slice(t[a].left.length,r);n.push({type:"math",data:i,rawData:o,display:t[a].display}),e=e.slice(r+t[a].right.length)}return""!==e&&n.push({type:"text",data:e}),n}(e,r.delimiters);if(1===n.length&&"text"===n[0].type)return null;const a=document.createDocumentFragment();for(let e=0;e<n.length;e++)if("text"===n[e].type)a.appendChild(document.createTextNode(n[e].data));else{const o=document.createElement("span");let i=n[e].data;r.displayMode=n[e].display;try{r.preProcess&&(i=r.preProcess(i)),temml.render(i,o,r)}catch(o){if(!(o instanceof t))throw o;r.errorCallback("Temml auto-render: Failed to parse `"+n[e].data+"` with ",o),a.appendChild(document.createTextNode(n[e].rawData));continue}a.appendChild(o)}return a},xn=function(e,t){for(let r=0;r<e.childNodes.length;r++){const n=e.childNodes[r];if(3===n.nodeType){const a=gn(n.textContent,t);a&&(r+=a.childNodes.length-1,e.replaceChild(a,n))}else if(1===n.nodeType){const e=" "+n.className+" ";-1===t.ignoredTags.indexOf(n.nodeName.toLowerCase())&&t.ignoredClasses.every((t=>-1===e.indexOf(" "+t+" ")))&&xn(n,t)}}};let bn=function(e,t,r={}){t.textContent="";const n="math"===t.tagName.toLowerCase();n&&(r.wrap="none");const a=wn(e,r);n||a.children.length>1?(t.textContent="",a.children.forEach((e=>{t.appendChild(e.toNode())}))):t.appendChild(a.toNode())};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: Temml doesn't work in quirks mode. Make sure your website has a suitable doctype."),bn=function(){throw new t("Temml doesn't work in quirks mode.")});const wn=function(e,r){const n=new s(r);try{const t=sn(e,n);return fe(t,e,new cn({level:n.displayMode?Ve:We,maxSize:n.maxSize}),n)}catch(r){return function(e,r,n){if(n.throwOnError||!(e instanceof t))throw e;const a=new w(["temml-error"],[new y(r+"\n\n"+e.toString())]);return a.style.color=n.errorColor,a.style.whiteSpace="pre-line",a}(r,e,n)}};var yn={version:"0.11.02",render:bn,renderToString:function(e,t){return wn(e,t).toMarkup()},renderMathInElement:function(e,t){if(!e)throw new Error("No element provided to render");const r={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);r.fences?r.delimiters=(e=>{if("$"===e||"("===e)return hn[e];if("$+"===e||"(+"===e)return hn[e.slice(0,1)].concat(fn);return"ams"===e?fn:"all"===e?hn["("].concat(hn.$).concat(fn):mn})(r.fences):r.delimiters=r.delimiters||mn,r.ignoredTags=r.ignoredTags||["script","noscript","style","textarea","pre","code","option"],r.ignoredClasses=r.ignoredClasses||[],r.errorCallback=r.errorCallback||console.error,r.macros=r.macros||{},xn(e,r),un(e)},postProcess:un,ParseError:t,definePreamble:function(e,t){const r=new s(t);if(r.macros={},!("string"==typeof e||e instanceof String))throw new TypeError("Temml can only parse string typed expression");const n=new on(e,r,!0);delete n.gullet.macros.current["\\df@tag"];return n.parse()},__parse:function(e,t){const r=new s(t);return sn(e,r)},__renderToMathMLTree:wn,__defineSymbol:F,__defineMacro:Je};e.exports=yn}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}var n={};return(()=>{"use strict";var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.Defuddle=void 0;const t=r(628);Object.defineProperty(e,"Defuddle",{enumerable:!0,get:function(){return t.Defuddle}})})(),n})()));