1 line
121 KiB
JavaScript
1 line
121 KiB
JavaScript
(()=>{"use strict";var t={d:(e,s)=>{for(var i in s)t.o(s,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:s[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{GLOBAL:()=>xt,MathJax:()=>Bt,combineConfig:()=>vt,combineDefaults:()=>Dt,combineWithMathJax:()=>St,isObject:()=>At});var s={};t.r(s),t.d(s,{AbstractDOMAdaptor:()=>Mt});var i={};t.r(i),t.d(i,{HTMLAdaptor:()=>wt});var r={};t.r(r),t.d(r,{browserAdaptor:()=>jt});var n={};t.r(n),t.d(n,{APPEND:()=>Ft,Expandable:()=>Jt,OPTIONS:()=>qt,REMOVE:()=>Xt,copy:()=>Gt,defaultOptions:()=>_t,expandable:()=>zt,insert:()=>Kt,isObject:()=>Wt,keys:()=>Ut,lookup:()=>te,makeArray:()=>$t,selectOptions:()=>Yt,selectOptionsFromKeys:()=>Zt,separateOptions:()=>Qt,userOptions:()=>Vt});var a={};t.r(a),t.d(a,{AbstractFindMath:()=>ee});var o={};t.r(o),t.d(o,{PrioritizedList:()=>se});var l={};t.r(l),t.d(l,{FunctionList:()=>ie});var h={};t.r(h),t.d(h,{AbstractInputJax:()=>re});var c={};t.r(c),t.d(c,{AbstractOutputJax:()=>ne});var d={};t.r(d),t.d(d,{END:()=>ae,LinkedList:()=>le,ListItem:()=>oe});var u={};t.r(u),t.d(u,{AbstractMathList:()=>he});var p={};t.r(p),t.d(p,{AbstractMathItem:()=>de,STATE:()=>ue,newState:()=>pe,protoItem:()=>ce});var E={};t.r(E),t.d(E,{AbstractFactory:()=>Ee});var m={};t.r(m),t.d(m,{AbstractNodeFactory:()=>me});var g={};t.r(g),t.d(g,{Attributes:()=>fe,INHERIT:()=>ge});var f={};t.r(f),t.d(f,{AbstractEmptyNode:()=>Ne,AbstractNode:()=>Re});var R={};t.r(R),t.d(R,{AbstractMmlBaseNode:()=>ve,AbstractMmlEmptyNode:()=>De,AbstractMmlLayoutNode:()=>Ae,AbstractMmlNode:()=>Oe,AbstractMmlTokenNode:()=>xe,MATHVARIANTS:()=>Ie,TEXCLASS:()=>Le,TEXCLASSNAMES:()=>be,TextNode:()=>Se,XMLNode:()=>Be,indentAttributes:()=>Te});var N={};t.r(N),t.d(N,{MmlMath:()=>Me});var L={};t.r(L),t.d(L,{MmlMi:()=>ke});var b={};t.r(b),t.d(b,{MmlMn:()=>we});var y={};t.r(y),t.d(y,{MMLSPACING:()=>Fe,MO:()=>je,OPDEF:()=>Pe,OPTABLE:()=>Xe,RANGES:()=>He,getRange:()=>We});var C={};t.r(C),t.d(C,{isPercent:()=>Ue,quotePattern:()=>Je,replaceUnicode:()=>Ke,sortLength:()=>qe,split:()=>Ge,toEntity:()=>_e,unicodeChars:()=>ze,unicodeString:()=>$e});var I={};t.r(I),t.d(I,{MmlMo:()=>Ve});var T={};t.r(T),t.d(T,{MmlMtext:()=>Ye});var O={};t.r(O),t.d(O,{MmlMspace:()=>Ze});var x={};t.r(x),t.d(x,{MmlMs:()=>Qe});var A={};t.r(A),t.d(A,{MmlInferredMrow:()=>es,MmlMrow:()=>ts});var v={};t.r(v),t.d(v,{MmlMfrac:()=>ss});var D={};t.r(D),t.d(D,{MmlMsqrt:()=>is});var S={};t.r(S),t.d(S,{MmlMroot:()=>rs});var B={};t.r(B),t.d(B,{MmlMstyle:()=>ns});var M={};t.r(M),t.d(M,{MmlMerror:()=>as});var k={};t.r(k),t.d(k,{MmlMpadded:()=>os});var w={};t.r(w),t.d(w,{MmlMphantom:()=>ls});var P={};t.r(P),t.d(P,{MmlMfenced:()=>hs});var j={};t.r(j),t.d(j,{MmlMenclose:()=>cs});var H={};t.r(H),t.d(H,{MmlMaction:()=>ds});var W={};t.r(W),t.d(W,{MmlMsub:()=>ps,MmlMsubsup:()=>us,MmlMsup:()=>Es});var F={};t.r(F),t.d(F,{MmlMover:()=>fs,MmlMunder:()=>gs,MmlMunderover:()=>ms});var X={};t.r(X),t.d(X,{MmlMmultiscripts:()=>Rs,MmlMprescripts:()=>Ns,MmlNone:()=>Ls});var q={};t.r(q),t.d(q,{MmlMtable:()=>bs});var J={};t.r(J),t.d(J,{MmlMlabeledtr:()=>Cs,MmlMtr:()=>ys});var z={};t.r(z),t.d(z,{MmlMtd:()=>Is});var $={};t.r($),t.d($,{MmlMaligngroup:()=>Ts});var U={};t.r(U),t.d(U,{MmlMalignmark:()=>Os});var G={};t.r(G),t.d(G,{MmlMglyph:()=>xs});var K={};t.r(K),t.d(K,{MmlAnnotation:()=>Ds,MmlAnnotationXML:()=>vs,MmlSemantics:()=>As});var _={};t.r(_),t.d(_,{TeXAtom:()=>Ss});var V={};t.r(V),t.d(V,{MathChoice:()=>Bs});var Y={};t.r(Y),t.d(Y,{HtmlNode:()=>Ms});var Z={};t.r(Z),t.d(Z,{MML:()=>ks});var Q={};t.r(Q),t.d(Q,{MmlFactory:()=>ws});var tt={};t.r(tt),t.d(tt,{BitField:()=>Ps,BitFieldClass:()=>js});var et={};t.r(et),t.d(et,{handleRetriesFor:()=>Hs,retryAfter:()=>Ws});var st={};t.r(st),t.d(st,{AbstractMathDocument:()=>Gs,RenderList:()=>Xs,resetAllOptions:()=>Js,resetOptions:()=>qs});var it={};t.r(it),t.d(it,{AbstractHandler:()=>_s});var rt={};t.r(rt),t.d(rt,{HandlerList:()=>Vs});var nt={};t.r(nt),t.d(nt,{AbstractVisitor:()=>Ys});var at={};t.r(at),t.d(at,{DATAMJX:()=>Zs,MmlVisitor:()=>Qs});var ot={};t.r(ot),t.d(ot,{MathMLVisitor:()=>ti});var lt={};t.r(lt),t.d(lt,{SerializedMmlVisitor:()=>ei});var ht={};t.r(ht),t.d(ht,{AbstractWrapper:()=>si});var ct={};t.r(ct),t.d(ct,{AbstractWrapperFactory:()=>ii});var dt={};t.r(dt),t.d(dt,{context:()=>ni,hasWindow:()=>ri});var ut={};t.r(ut),t.d(ut,{mathjax:()=>ai});var pt={};t.r(pt),t.d(pt,{HTMLMathItem:()=>oi});var Et={};t.r(Et),t.d(Et,{HTMLMathList:()=>li});var mt={};t.r(mt),t.d(mt,{HTMLDomStrings:()=>hi});var gt={};t.r(gt),t.d(gt,{HTMLDocument:()=>ci});var ft={};t.r(ft),t.d(ft,{HTMLHandler:()=>di});var Rt={};t.r(Rt),t.d(Rt,{RegisterHTMLHandler:()=>ui});var Nt={};t.r(Nt),t.d(Nt,{asyncLoad:()=>pi});var Lt={};t.r(Lt),t.d(Lt,{BIGDIMEN:()=>Ei,MATHSPACE:()=>fi,RELUNITS:()=>gi,UNITS:()=>mi,em:()=>Li,length2em:()=>Ri,percent:()=>Ni,px:()=>bi});var bt={};t.r(bt),t.d(bt,{BBox:()=>yi});var yt={};t.r(yt),t.d(yt,{add:()=>Oi,entities:()=>Ii,numeric:()=>Di,options:()=>Ci,remove:()=>xi,translate:()=>Ai});var Ct={};t.r(Ct),t.d(Ct,{StyleJsonSheet:()=>Si});var It={};t.r(It),t.d(It,{Styles:()=>qi,TRBL:()=>Bi,WSC:()=>Mi});var Tt={};t.r(Tt),t.d(Tt,{max:()=>zi,sum:()=>Ji});const Ot="4.0.0",xt="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:{};function At(t){return"object"==typeof t&&null!==t}function vt(t,e,s=!1){var i;for(const r of Object.keys(e))"__esModule"!==r&&t[r]!==e[r]&&null!==e[r]&&void 0!==e[r]&&(At(t[r])&&At(e[r])?vt(t[r],e[r],s||"_"===r):s&&(null===(i=Object.getOwnPropertyDescriptor(t,r))||void 0===i?void 0:i.get)||(t[r]=e[r]));return t}function Dt(t,e,s){t[e]||(t[e]={}),t=t[e];for(const e of Object.keys(s))At(t[e])&&At(s[e])?Dt(t,e,s[e]):null==t[e]&&null!=s[e]&&(t[e]=s[e]);return t}function St(t){return vt(Bt,t)}void 0!==xt.MathJax&&xt.MathJax.constructor==={}.constructor||(xt.MathJax={}),xt.MathJax.version||(xt.MathJax={version:Ot,_:{},config:xt.MathJax});const Bt=xt.MathJax;class Mt{constructor(t=null){this.canMeasureNodes=!0,this.document=t}node(t,e={},s=[],i){const r=this.create(t,i);this.setAttributes(r,e);for(const t of s)this.append(r,t);return r}setProperty(t,e,s){t[e]=s}getProperty(t,e){return t[e]}setAttributes(t,e){if(e.style&&"string"!=typeof e.style)for(const s of Object.keys(e.style))this.setStyle(t,s.replace(/-([a-z])/g,((t,e)=>e.toUpperCase())),e.style[s]);if(e.properties)for(const s of Object.keys(e.properties))t[s]=e.properties[s];for(const s of Object.keys(e))"style"===s&&"string"!=typeof e.style||"properties"===s||this.setAttribute(t,s,e[s])}replace(t,e){return this.insert(t,e),this.remove(e),e}childNode(t,e){return this.childNodes(t)[e]}allClasses(t){const e=this.getAttribute(t,"class");return e?e.replace(/ +/g," ").replace(/^ /,"").replace(/ $/,"").split(/ /):[]}cssText(t){return"style"===this.kind(t)?this.textContent(t):""}}var kt=function(t,e,s,i){return new(s||(s=Promise))((function(r,n){function a(t){try{l(i.next(t))}catch(t){n(t)}}function o(t){try{l(i.throw(t))}catch(t){n(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(a,o)}l((i=i.apply(t,e||[])).next())}))};class wt extends Mt{constructor(t){super(t.document),this.canMeasureNodes=!0,this.window=t,this.parser=new t.DOMParser}parse(t,e="text/html"){return this.parser.parseFromString(t,e)}create(t,e){return e?this.document.createElementNS(e,t):this.document.createElement(t)}text(t){return this.document.createTextNode(t)}head(t=this.document){return t.head||t}body(t=this.document){return t.body||t}root(t=this.document){return t.documentElement||t}doctype(t=this.document){return t.doctype?`<!DOCTYPE ${t.doctype.name}>`:""}tags(t,e,s=null){const i=s?t.getElementsByTagNameNS(s,e):t.getElementsByTagName(e);return Array.from(i)}getElements(t,e){let s=[];for(const e of t)"string"==typeof e?s=s.concat(Array.from(this.document.querySelectorAll(e))):Array.isArray(e)||e instanceof this.window.NodeList||e instanceof this.window.HTMLCollection?s=s.concat(Array.from(e)):s.push(e);return s}getElement(t,e=this.document){return e.querySelector(t)}contains(t,e){return t.contains(e)}parent(t){return t.parentNode}append(t,e){return t.appendChild(e)}insert(t,e){return this.parent(e).insertBefore(t,e)}remove(t){return this.parent(t).removeChild(t)}replace(t,e){return this.parent(e).replaceChild(t,e)}clone(t,e=!0){return t.cloneNode(e)}split(t,e){return t.splitText(e)}next(t){return t.nextSibling}previous(t){return t.previousSibling}firstChild(t){return t.firstChild}lastChild(t){return t.lastChild}childNodes(t){return Array.from(t.childNodes)}childNode(t,e){return t.childNodes[e]}kind(t){const e=t.nodeType;return 1===e||3===e||8===e?t.nodeName.toLowerCase():""}value(t){return t.nodeValue||""}textContent(t){return t.textContent}innerHTML(t){return t.innerHTML}outerHTML(t){return t.outerHTML}serializeXML(t){return(new this.window.XMLSerializer).serializeToString(t)}setAttribute(t,e,s,i=null){return i?(e=i.replace(/.*\//,"")+":"+e.replace(/^.*:/,""),t.setAttributeNS(i,e,s)):t.setAttribute(e,s)}getAttribute(t,e){return t.getAttribute(e)}removeAttribute(t,e){return t.removeAttribute(e)}hasAttribute(t,e){return t.hasAttribute(e)}allAttributes(t){return Array.from(t.attributes).map((t=>({name:t.name,value:t.value})))}addClass(t,e){t.classList?t.classList.add(e):t.className=(t.className+" "+e).trim()}removeClass(t,e){t.classList?t.classList.remove(e):t.className=t.className.split(/ /).filter((t=>t!==e)).join(" ")}hasClass(t,e){return t.classList?t.classList.contains(e):t.className.split(/ /).includes(e)}setStyle(t,e,s){t.style[e]=s}getStyle(t,e){return t.style[e]}allStyles(t){return t.style.cssText}insertRules(t,e){for(const s of e)try{t.sheet.insertRule(s,t.sheet.cssRules.length)}catch(t){console.warn(`MathJax: can't insert css rule '${s}': ${t.message}`)}}cssText(t){return"style"!==this.kind(t)?"":Array.from(t.sheet.cssRules).map((t=>t.cssText)).join("\n")}fontSize(t){const e=this.window.getComputedStyle(t);return parseFloat(e.fontSize)}fontFamily(t){return this.window.getComputedStyle(t).fontFamily||""}nodeSize(t,e=1,s=!1){if(s&&t.getBBox){const{width:s,height:i}=t.getBBox();return[s/e,i/e]}return[t.offsetWidth/e,t.offsetHeight/e]}nodeBBox(t){const{left:e,right:s,top:i,bottom:r}=t.getBoundingClientRect();return{left:e,right:s,top:i,bottom:r}}createWorker(t,e){return kt(this,void 0,void 0,(function*(){const{path:s,maps:i,worker:r}=e,n=`${s}/${r}`,a=`\n self.maps = '${Pt(i)}';\n importScripts('${Pt(n)}');\n `,o=URL.createObjectURL(new Blob([a],{type:"text/javascript"})),l=new Worker(o);return l.onmessage=t,URL.revokeObjectURL(o),l}))}}function Pt(t){return[...t].map((t=>("\\"===t||"'"===t?t="\\"+t:(t<" "||t>"~")&&(t=`\\u{${t.codePointAt(0).toString(16)}}`),t))).join("")}function jt(){return new wt(window)}const Ht={}.constructor;function Wt(t){return"object"==typeof t&&null!==t&&(t.constructor===Ht||t.constructor===Jt)}const Ft="[+]",Xt="[-]",qt={invalidOption:"warn",optionError:(t,e)=>{if("fatal"===qt.invalidOption)throw new Error(t);console.warn("MathJax: "+t)}};class Jt{}function zt(t){return Object.assign(Object.create(Jt.prototype),t)}function $t(t){return Array.isArray(t)?t:[t]}function Ut(t){return t?Object.keys(t).concat(Object.getOwnPropertySymbols(t)):[]}function Gt(t){const e={};for(const s of Ut(t)){const i=Object.getOwnPropertyDescriptor(t,s),r=i.value;Array.isArray(r)?i.value=Kt([],r,!1):Wt(r)&&(i.value=Gt(r)),i.enumerable&&(e[s]=i)}return Object.defineProperties(t.constructor===Jt?zt({}):{},e)}function Kt(t,e,s=!0){for(let i of Ut(e)){if(s&&void 0===t[i]&&t.constructor!==Jt){"symbol"==typeof i&&(i=i.toString()),qt.optionError(`Invalid option "${i}" (no default value).`,i);continue}const r=e[i];let n=t[i];if(!Wt(r)||null===n||"object"!=typeof n&&"function"!=typeof n)Array.isArray(r)?(t[i]=[],Kt(t[i],r,!1)):Wt(r)?t[i]=Gt(r):t[i]=r;else{const e=Ut(r);Array.isArray(n)&&(1===e.length&&(e[0]===Ft||e[0]===Xt)&&Array.isArray(r[e[0]])||2===e.length&&e.sort().join(",")===Ft+","+Xt&&Array.isArray(r[Ft])&&Array.isArray(r[Xt]))?(r[Xt]&&(n=t[i]=n.filter((t=>r[Xt].indexOf(t)<0))),r[Ft]&&(t[i]=[...n,...r[Ft]])):Kt(n,r,s)}}return t}function _t(t,...e){return e.forEach((e=>Kt(t,e,!1))),t}function Vt(t,...e){return e.forEach((e=>Kt(t,e,!0))),t}function Yt(t,...e){const s={};for(const i of e)Object.hasOwn(t,i)&&(s[i]=t[i]);return s}function Zt(t,e){return Yt(t,...Object.keys(e))}function Qt(t,...e){const s=[];for(const i of e){const e={},r={};for(const s of Object.keys(t||{}))(void 0===i[s]?r:e)[s]=t[s];s.push(e),t=r}return s.unshift(t),s}function te(t,e,s=null){return Object.hasOwn(e,t)?e[t]:s}class ee{constructor(t){const e=this.constructor;this.options=Vt(_t({},e.OPTIONS),t)}}ee.OPTIONS={};class se{constructor(){this.items=[],this.items=[]}[Symbol.iterator](){let t=0;const e=this.items;return{next:()=>({value:e[t++],done:t>e.length})}}add(t,e=se.DEFAULTPRIORITY){let s=this.items.length;do{s--}while(s>=0&&e<this.items[s].priority);return this.items.splice(s+1,0,{item:t,priority:e}),t}remove(t){let e=this.items.length;do{e--}while(e>=0&&this.items[e].item!==t);return e>=0&&this.items.splice(e,1),this}}se.DEFAULTPRIORITY=5;class ie extends se{constructor(t=null){super(),t&&this.addList(t)}addList(t){for(const e of t)Array.isArray(e)?this.add(e[0],e[1]):this.add(e)}execute(...t){for(const e of this){if(!1===e.item(...t))return!1}return!0}asyncExecute(...t){let e=-1;const s=this.items;return new Promise(((i,r)=>{!function n(){for(;++e<s.length;){const a=s[e].item(...t);if(a instanceof Promise)return void a.then(n).catch((t=>r(t)));if(!1===a)return void i(!1)}i(!0)}()}))}}class re{constructor(t={}){this.adaptor=null,this.mmlFactory=null;const e=this.constructor;this.options=Vt(_t({},e.OPTIONS),t),this.preFilters=new ie(this.options.preFilters),this.postFilters=new ie(this.options.postFilters)}get name(){return this.constructor.NAME}setAdaptor(t){this.adaptor=t}setMmlFactory(t){this.mmlFactory=t}initialize(){}reset(...t){}get processStrings(){return!0}findMath(t,e){return[]}executeFilters(t,e,s,i){const r={math:e,document:s,data:i};return t.execute(r),r.data}}re.NAME="generic",re.OPTIONS={preFilters:[],postFilters:[]};class ne{constructor(t={}){this.adaptor=null;const e=this.constructor;this.options=Vt(_t({},e.OPTIONS),t),this.preFilters=new ie(this.options.preFilters),this.postFilters=new ie(this.options.postFilters)}get name(){return this.constructor.NAME}setAdaptor(t){this.adaptor=t}initialize(){}reset(...t){}getMetrics(t){}styleSheet(t){return null}pageElements(t){return null}executeFilters(t,e,s,i){const r={math:e,document:s,data:i};return t.execute(r),r.data}}ne.NAME="generic",ne.OPTIONS={preFilters:[],postFilters:[]};const ae=Symbol();class oe{constructor(t=null){this.next=null,this.prev=null,this.data=t}}class le{constructor(...t){this.list=new oe(ae),this.list.next=this.list.prev=this.list,this.push(...t)}isBefore(t,e){return t<e}push(...t){for(const e of t){const t=new oe(e);t.next=this.list,t.prev=this.list.prev,this.list.prev=t,t.prev.next=t}return this}pop(){const t=this.list.prev;return t.data===ae?null:(this.list.prev=t.prev,t.prev.next=this.list,t.next=t.prev=null,t.data)}unshift(...t){for(const e of t.slice(0).reverse()){const t=new oe(e);t.next=this.list.next,t.prev=this.list,this.list.next=t,t.next.prev=t}return this}shift(){const t=this.list.next;return t.data===ae?null:(this.list.next=t.next,t.next.prev=this.list,t.next=t.prev=null,t.data)}remove(...t){const e=new Map;for(const s of t)e.set(s,!0);let s=this.list.next;for(;s.data!==ae;){const t=s.next;e.has(s.data)&&(s.prev.next=s.next,s.next.prev=s.prev,s.next=s.prev=null),s=t}return this}clear(){return this.list.next.prev=this.list.prev.next=null,this.list.next=this.list.prev=this.list,this}*[Symbol.iterator](){let t=this.list.next;for(;t.data!==ae;)yield t.data,t=t.next}*reversed(){let t=this.list.prev;for(;t.data!==ae;)yield t.data,t=t.prev}insert(t,e=null){null===e&&(e=this.isBefore.bind(this));const s=new oe(t);let i=this.list.next;for(;i.data!==ae&&e(i.data,s.data);)i=i.next;return s.prev=i.prev,s.next=i,i.prev.next=i.prev=s,this}sort(t=null){null===t&&(t=this.isBefore.bind(this));const e=[];for(const t of this)e.push(new le(t));for(this.list.next=this.list.prev=this.list;e.length>1;){const s=e.shift(),i=e.shift();s.merge(i,t),e.push(s)}return e.length&&(this.list=e[0].list),this}merge(t,e=null){null===e&&(e=this.isBefore.bind(this));let s=this.list.next,i=t.list.next;for(;s.data!==ae&&i.data!==ae;)e(i.data,s.data)?([i.prev.next,s.prev.next]=[s,i],[i.prev,s.prev]=[s.prev,i.prev],[this.list.prev.next,t.list.prev.next]=[t.list,this.list],[this.list.prev,t.list.prev]=[t.list.prev,this.list.prev],[s,i]=[i.next,s]):s=s.next;return i.data!==ae&&(this.list.prev.next=t.list.next,t.list.next.prev=this.list.prev,t.list.prev.next=this.list,this.list.prev=t.list.prev,t.list.next=t.list.prev=t.list),this}}class he extends le{isBefore(t,e){return t.start.i<e.start.i||t.start.i===e.start.i&&t.start.n<e.start.n}}function ce(t,e,s,i,r,n,a=null){return{open:t,math:e,close:s,n:i,start:{n:r},end:{n},display:a}}class de{get isEscaped(){return null===this.display}constructor(t,e,s=!0,i={i:0,n:0,delim:""},r={i:0,n:0,delim:""}){this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={},this._state=ue.UNPROCESSED,this.math=t,this.inputJax=e,this.display=s,this.start=i,this.end=r,this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={}}render(t){t.renderActions.renderMath(this,t)}rerender(t,e=ue.RERENDER){this.state()>=e&&this.state(e-1),t.renderActions.renderMath(this,t,e)}convert(t,e=ue.LAST){t.renderActions.renderConvert(this,t,e)}compile(t){this.state()<ue.COMPILED&&(this.root=this.inputJax.compile(this,t),this.state(ue.COMPILED))}typeset(t){this.state()<ue.TYPESET&&(this.typesetRoot=t.outputJax[this.isEscaped?"escaped":"typeset"](this,t),this.state(ue.TYPESET))}updateDocument(t){}removeFromDocument(t=!1){this.clear()}setMetrics(t,e,s,i){this.metrics={em:t,ex:e,containerWidth:s,scale:i}}state(t=null,e=!1){return null!=t&&(t<ue.INSERTED&&this._state>=ue.INSERTED&&this.removeFromDocument(e),t<ue.TYPESET&&this._state>=ue.TYPESET&&(this.outputData={}),t<ue.COMPILED&&this._state>=ue.COMPILED&&(this.inputData={}),this._state=t),this._state}reset(t=!1){this.state(ue.UNPROCESSED,t)}clear(){}}const ue={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4};function pe(t,e){if(t in ue)throw Error("State "+t+" already exists");ue[t]=e}class Ee{constructor(t=null){this.defaultKind="unknown",this.nodeMap=new Map,this.node={},null===t&&(t=this.constructor.defaultNodes);for(const e of Object.keys(t))this.setNodeClass(e,t[e])}create(t,...e){return(this.node[t]||this.node[this.defaultKind])(...e)}setNodeClass(t,e){this.nodeMap.set(t,e);const s=this.nodeMap.get(t);this.node[t]=(...t)=>new s(this,...t)}getNodeClass(t){return this.nodeMap.get(t)}deleteNodeClass(t){this.nodeMap.delete(t),delete this.node[t]}nodeIsKind(t,e){return t instanceof this.getNodeClass(e)}getKinds(){return Array.from(this.nodeMap.keys())}}Ee.defaultNodes={};class me extends Ee{create(t,e={},s=[]){return this.node[t](e,s)}}const ge="_inherit_";class fe{constructor(t,e){this.global=e,this.defaults=Object.create(e),this.inherited=Object.create(this.defaults),this.attributes=Object.create(this.inherited),Object.assign(this.defaults,t)}set(t,e){this.attributes[t]=e}setList(t){Object.assign(this.attributes,t)}unset(t){delete this.attributes[t]}get(t){let e=this.attributes[t];return e===ge&&(e=this.global[t]),e}getExplicit(t){return this.hasExplicit(t)?this.attributes[t]:void 0}hasExplicit(t){return Object.hasOwn(this.attributes,t)}hasOneOf(t){for(const e of t)if(this.hasExplicit(e))return!0;return!1}getList(...t){const e={};for(const s of t)e[s]=this.get(s);return e}setInherited(t,e){this.inherited[t]=e}getInherited(t){return this.inherited[t]}getDefault(t){return this.defaults[t]}isSet(t){return Object.hasOwn(this.attributes,t)||Object.hasOwn(this.inherited,t)}hasDefault(t){return t in this.defaults}getExplicitNames(){return Object.keys(this.attributes)}getInheritedNames(){return Object.keys(this.inherited)}getDefaultNames(){return Object.keys(this.defaults)}getGlobalNames(){return Object.keys(this.global)}getAllAttributes(){return this.attributes}getAllInherited(){return this.inherited}getAllDefaults(){return this.defaults}getAllGlobals(){return this.global}}class Re{constructor(t,e={},s=[]){this.factory=t,this.parent=null,this.properties={},this.childNodes=[];for(const t of Object.keys(e))this.setProperty(t,e[t]);s.length&&this.setChildren(s)}get kind(){return"unknown"}setProperty(t,e){this.properties[t]=e}getProperty(t){return this.properties[t]}getPropertyNames(){return Object.keys(this.properties)}getAllProperties(){return this.properties}removeProperty(...t){for(const e of t)delete this.properties[e]}isKind(t){return this.factory.nodeIsKind(this,t)}setChildren(t){this.childNodes=[];for(const e of t)this.appendChild(e)}appendChild(t){return this.childNodes.push(t),t.parent=this,t}replaceChild(t,e){const s=this.childIndex(e);return null!==s&&(this.childNodes[s]=t,t.parent=this,e.parent===this&&(e.parent=null)),t}removeChild(t){const e=this.childIndex(t);return null!==e&&(this.childNodes.splice(e,1),t.parent=null),t}childIndex(t){const e=this.childNodes.indexOf(t);return-1===e?null:e}copy(){const t=this.factory.create(this.kind);t.properties=Object.assign({},this.properties);for(const e of this.childNodes||[])e&&t.appendChild(e.copy());return t}findNodes(t){const e=[];return this.walkTree((s=>{s.isKind(t)&&e.push(s)})),e}walkTree(t,e){t(this,e);for(const s of this.childNodes)s&&s.walkTree(t,e);return e}toString(){return this.kind+"("+this.childNodes.join(",")+")"}}class Ne extends Re{setChildren(t){}appendChild(t){return t}replaceChild(t,e){return e}childIndex(t){return null}walkTree(t,e){return t(this,e),e}toString(){return this.kind}}const Le={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,NONE:-1},be=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER"],ye=["","thinmathspace","mediummathspace","thickmathspace"],Ce=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]],Ie=new Set(["normal","bold","italic","bold-italic","double-struck","fraktur","bold-fraktur","script","bold-script","sans-serif","bold-sans-serif","sans-serif-italic","sans-serif-bold-italic","monospace","inital","tailed","looped","stretched"]),Te=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];class Oe extends Re{constructor(t,e={},s=[]){super(t),this.prevClass=null,this.prevLevel=null,this.texclass=null,this.arity<0&&(this.childNodes=[t.create("inferredMrow")],this.childNodes[0].parent=this),this.setChildren(s),this.attributes=new fe(t.getNodeClass(this.kind).defaults,t.getNodeClass("math").defaults),this.attributes.setList(e)}copy(t=!1){const e=this.factory.create(this.kind);if(e.properties=Object.assign({},this.properties),this.attributes){const s=this.attributes.getAllAttributes();for(const i of Object.keys(s))("id"!==i||t)&&e.attributes.set(i,s[i])}if(this.childNodes&&this.childNodes.length){let t=this.childNodes;1===t.length&&t[0].isInferred&&(t=t[0].childNodes);for(const s of t)s?e.appendChild(s.copy()):e.childNodes.push(null)}return e}get texClass(){return this.texclass}set texClass(t){this.texclass=t}get isToken(){return!1}get isEmbellished(){return!1}get isSpacelike(){return!1}get linebreakContainer(){return!1}get linebreakAlign(){return"data-align"}get arity(){return 1/0}get isInferred(){return!1}get Parent(){let t=this.parent;for(;t&&t.notParent;)t=t.Parent;return t}get notParent(){return!1}setChildren(t){return this.arity<0?this.childNodes[0].setChildren(t):super.setChildren(t)}appendChild(t){if(this.arity<0)return this.childNodes[0].appendChild(t),t;if(t.isInferred){if(this.arity===1/0)return t.childNodes.forEach((t=>super.appendChild(t))),t;const e=t;(t=this.factory.create("mrow")).setChildren(e.childNodes),t.attributes=e.attributes;for(const s of e.getPropertyNames())t.setProperty(s,e.getProperty(s))}return super.appendChild(t)}replaceChild(t,e){return this.arity<0?(this.childNodes[0].replaceChild(t,e),t):super.replaceChild(t,e)}core(){return this}coreMO(){return this}coreIndex(){return 0}childPosition(){let t=null,e=this.parent;for(;e&&e.notParent;)t=e,e=e.parent;if(t=t||this,e){let s=0;for(const i of e.childNodes){if(i===t)return s;s++}}return null}setTeXclass(t){return this.getPrevClass(t),null!=this.texClass?this:t}updateTeXclass(t){t&&(this.prevClass=t.prevClass,this.prevLevel=t.prevLevel,t.prevClass=t.prevLevel=null,this.texClass=t.texClass)}getPrevClass(t){t&&(this.prevClass=t.texClass,this.prevLevel=t.attributes.get("scriptlevel"))}texSpacing(){const t=null!=this.prevClass?this.prevClass:Le.NONE,e=this.texClass||Le.ORD;if(t===Le.NONE||e===Le.NONE)return"";const s=Ce[t][e];return(this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&s>=0?"":ye[Math.abs(s)]}hasSpacingAttributes(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()}setInheritedAttributes(t={},e=!1,s=0,i=!1){var r,n,a;const o=this.attributes.getAllDefaults();for(const e of Object.keys(t)){if(Object.hasOwn(o,e)||Object.hasOwn(Oe.alwaysInherit,e)){const[s,i]=t[e];(null===(n=null===(r=Oe.noInherit[s])||void 0===r?void 0:r[this.kind])||void 0===n?void 0:n[e])||this.attributes.setInherited(e,i)}(null===(a=Oe.stopInherit[this.kind])||void 0===a?void 0:a[e])&&delete(t=Object.assign({},t))[e]}void 0===this.attributes.getExplicit("displaystyle")&&this.attributes.setInherited("displaystyle",e);void 0===this.attributes.getExplicit("scriptlevel")&&this.attributes.setInherited("scriptlevel",s),i&&this.setProperty("texprimestyle",i);const l=this.arity;if(l>=0&&l!==1/0&&(1===l&&0===this.childNodes.length||1!==l&&this.childNodes.length!==l))if(l<this.childNodes.length)this.childNodes=this.childNodes.slice(0,l);else for(;this.childNodes.length<l;)this.appendChild(this.factory.create("mrow"));if(this.linebreakContainer&&!this.isEmbellished){const e=this.linebreakAlign;if(e){const s=this.attributes.get(e)||"left";t=this.addInheritedAttributes(t,{indentalign:s,indentshift:"0",indentalignfirst:s,indentshiftfirst:"0",indentalignlast:"indentalign",indentshiftlast:"indentshift"})}}this.setChildInheritedAttributes(t,e,s,i)}setChildInheritedAttributes(t,e,s,i){for(const r of this.childNodes)r.setInheritedAttributes(t,e,s,i)}addInheritedAttributes(t,e){const s=Object.assign({},t);for(const t of Object.keys(e))"displaystyle"!==t&&"scriptlevel"!==t&&"style"!==t&&(s[t]=[this.kind,e[t]]);return s}inheritAttributesFrom(t){const e=t.attributes,s=e.get("displaystyle"),i=e.get("scriptlevel"),r=e.isSet("mathsize")?{mathsize:["math",e.get("mathsize")]}:{},n=t.getProperty("texprimestyle")||!1;this.setInheritedAttributes(r,s,i,n)}verifyTree(t=null){if(null===t)return;this.verifyAttributes(t);const e=this.arity;t.checkArity&&e>=0&&e!==1/0&&(1===e&&0===this.childNodes.length||1!==e&&this.childNodes.length!==e)&&this.mError('Wrong number of children for "'+this.kind+'" node',t,!0),this.verifyChildren(t)}verifyAttributes(t){if(t.checkAttributes){const e=this.attributes,s=[];for(const t of e.getExplicitNames())"data-"===t.substring(0,5)||void 0!==e.getDefault(t)||t.match(/^(?:class|style|id|(?:xlink:)?href)$/)||s.push(t);s.length&&this.mError("Unknown attributes for "+this.kind+" node: "+s.join(", "),t)}if(t.checkMathvariants){const e=this.attributes.getExplicit("mathvariant");!e||Ie.has(e)||this.getProperty("ignore-variant")||this.mError(`Invalid mathvariant: ${e}`,t,!0)}}verifyChildren(t){for(const e of this.childNodes)e.verifyTree(t)}mError(t,e,s=!1){if(this.parent&&this.parent.isKind("merror"))return null;const i=this.factory.create("merror");if(i.attributes.set("data-mjx-message",t),e.fullErrors||s){const s=this.factory.create("mtext"),r=this.factory.create("text");r.setText(e.fullErrors?t:this.kind),s.appendChild(r),i.appendChild(s),this.parent.replaceChild(i,this),e.fullErrors||i.attributes.set("title",t)}else this.parent.replaceChild(i,this),i.appendChild(this);return i}}Oe.defaults={mathbackground:ge,mathcolor:ge,mathsize:ge,dir:ge},Oe.noInherit={mstyle:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},maligngroup:{mrow:{groupalign:!0},mtable:{groupalign:!0}},mtr:{msqrt:{"data-vertical-align":!0},mroot:{"data-vertical-align":!0}},mlabeledtr:{msqrt:{"data-vertical-align":!0},mroot:{"data-vertical-align":!0}}},Oe.stopInherit={mtd:{columnalign:!0,rowalign:!0,groupalign:!0}},Oe.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0,infixlinebreakstyle:!0},Oe.verifyDefaults={checkArity:!0,checkAttributes:!1,checkMathvariants:!0,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0};class xe extends Oe{get isToken(){return!0}getText(){let t="";for(const e of this.childNodes)e instanceof Se?t+=e.getText():"textContent"in e&&(t+=e.textContent());return t}setChildInheritedAttributes(t,e,s,i){for(const r of this.childNodes)r instanceof Oe&&r.setInheritedAttributes(t,e,s,i)}walkTree(t,e){t(this,e);for(const s of this.childNodes)s instanceof Oe&&s.walkTree(t,e);return e}}xe.defaults=Object.assign(Object.assign({},Oe.defaults),{mathvariant:"normal",mathsize:ge});class Ae extends Oe{get isSpacelike(){return this.childNodes[0].isSpacelike}get isEmbellished(){return this.childNodes[0].isEmbellished}get arity(){return-1}core(){return this.childNodes[0]}coreMO(){return this.childNodes[0].coreMO()}setTeXclass(t){return t=this.childNodes[0].setTeXclass(t),this.updateTeXclass(this.childNodes[0]),t}}Ae.defaults=Oe.defaults;class ve extends Oe{get isEmbellished(){return this.childNodes[0].isEmbellished}core(){return this.childNodes[0]}coreMO(){return this.childNodes[0].coreMO()}setTeXclass(t){this.getPrevClass(t),this.texClass=Le.ORD;const e=this.childNodes[0];let s=null;e&&(this.isEmbellished||e.isKind("mi")?(s=e.setTeXclass(t),this.updateTeXclass(this.core())):e.setTeXclass(null));for(const t of this.childNodes.slice(1))t&&t.setTeXclass(null);return s||this}}ve.defaults=Oe.defaults;class De extends Ne{get isToken(){return!1}get isEmbellished(){return!1}get isSpacelike(){return!1}get linebreakContainer(){return!1}get linebreakAlign(){return""}get arity(){return 0}get isInferred(){return!1}get notParent(){return!1}get Parent(){return this.parent}get texClass(){return Le.NONE}get prevClass(){return Le.NONE}get prevLevel(){return 0}hasSpacingAttributes(){return!1}get attributes(){return null}core(){return this}coreMO(){return this}coreIndex(){return 0}childPosition(){return 0}setTeXclass(t){return t}texSpacing(){return""}setInheritedAttributes(t,e,s,i){}inheritAttributesFrom(t){}verifyTree(t){}mError(t,e,s=!1){return null}}class Se extends De{constructor(){super(...arguments),this.text=""}get kind(){return"text"}getText(){return this.text}setText(t){return this.text=t,this}copy(){return this.factory.create(this.kind).setText(this.getText())}toString(){return this.text}}class Be extends De{constructor(){super(...arguments),this.xml=null,this.adaptor=null}get kind(){return"XML"}getXML(){return this.xml}setXML(t,e=null){return this.xml=t,this.adaptor=e,this}getSerializedXML(){return this.adaptor.serializeXML(this.xml)}copy(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))}toString(){return"XML data"}}class Me extends Ae{get kind(){return"math"}get linebreakContainer(){return!0}get linebreakAlign(){return""}setChildInheritedAttributes(t,e,s,i){"display"===this.attributes.get("mode")&&this.attributes.setInherited("display","block"),t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),e=!!this.attributes.get("displaystyle")||!this.attributes.get("displaystyle")&&"block"===this.attributes.get("display"),this.attributes.setInherited("displaystyle",e),s=this.attributes.get("scriptlevel")||this.constructor.defaults.scriptlevel,super.setChildInheritedAttributes(t,e,s,i)}verifyTree(t=null){super.verifyTree(t),this.parent&&this.mError("Improper nesting of math tags",t,!0)}}Me.defaults=Object.assign(Object.assign({},Ae.defaults),{mathvariant:"normal",mathsize:"normal",mathcolor:"",mathbackground:"transparent",dir:"ltr",scriptlevel:0,displaystyle:!1,display:"inline",maxwidth:"",overflow:"linebreak",altimg:"","altimg-width":"","altimg-height":"","altimg-valign":"",alttext:"",cdgroup:"",scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:".4em",infixlinebreakstyle:"before",lineleading:"100%",linebreakmultchar:"\u2062",indentshift:"auto",indentalign:"auto",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"});class ke extends xe{constructor(){super(...arguments),this.texclass=Le.ORD}get kind(){return"mi"}setInheritedAttributes(t={},e=!1,s=0,i=!1){super.setInheritedAttributes(t,e,s,i);this.getText().match(ke.singleCharacter)&&!t.mathvariant&&this.attributes.setInherited("mathvariant","italic")}setTeXclass(t){this.getPrevClass(t);const e=this.getText();return e.length>1&&e.match(ke.operatorName)&&"normal"===this.attributes.get("mathvariant")&&void 0===this.getProperty("autoOP")&&void 0===this.getProperty("texClass")&&(this.texClass=Le.OP,this.setProperty("autoOP",!0)),this}}ke.defaults=Object.assign({},xe.defaults),ke.operatorName=/^[a-z][a-z0-9]*$/i,ke.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/;class we extends xe{constructor(){super(...arguments),this.texclass=Le.ORD}get kind(){return"mn"}}function Pe(t,e,s=Le.BIN,i=null){return[t,e,s,i]}we.defaults=Object.assign({},xe.defaults);const je={ORD:Pe(0,0,Le.ORD),ORD11:Pe(1,1,Le.ORD),ORD21:Pe(2,1,Le.ORD),ORD02:Pe(0,2,Le.ORD),ORD55:Pe(5,5,Le.ORD),NONE:Pe(0,0,Le.NONE),OP:Pe(1,2,Le.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),OPFIXED:Pe(1,2,Le.OP,{largeop:!0,movablelimits:!0}),INTEGRAL:Pe(0,1,Le.OP,{largeop:!0,symmetric:!0}),INTEGRAL2:Pe(1,2,Le.OP,{largeop:!0,symmetric:!0}),BIN3:Pe(3,3,Le.BIN),BIN4:Pe(4,4,Le.BIN),BIN01:Pe(0,1,Le.BIN),BIN5:Pe(5,5,Le.BIN),TALLBIN:Pe(4,4,Le.BIN,{stretchy:!0}),BINOP:Pe(4,4,Le.BIN,{largeop:!0,movablelimits:!0}),REL:Pe(5,5,Le.REL),REL1:Pe(1,1,Le.REL,{stretchy:!0}),REL4:Pe(4,4,Le.REL),RELSTRETCH:Pe(5,5,Le.REL,{stretchy:!0}),RELACCENT:Pe(5,5,Le.REL,{accent:!0}),WIDEREL:Pe(5,5,Le.REL,{accent:!0,stretchy:!0}),OPEN:Pe(0,0,Le.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:Pe(0,0,Le.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INNER:Pe(0,0,Le.INNER),PUNCT:Pe(0,3,Le.PUNCT),ACCENT:Pe(0,0,Le.ORD,{accent:!0}),WIDEACCENT:Pe(0,0,Le.ORD,{accent:!0,stretchy:!0})},He=[[32,127,Le.REL,"mo"],[160,191,Le.ORD,"mo"],[192,591,Le.ORD,"mi"],[688,879,Le.ORD,"mo"],[880,6688,Le.ORD,"mi"],[6832,6911,Le.ORD,"mo"],[6912,7615,Le.ORD,"mi"],[7616,7679,Le.ORD,"mo"],[7680,8191,Le.ORD,"mi"],[8192,8303,Le.ORD,"mo"],[8304,8351,Le.ORD,"mo"],[8448,8527,Le.ORD,"mi"],[8528,8591,Le.ORD,"mn"],[8592,8703,Le.REL,"mo"],[8704,8959,Le.BIN,"mo"],[8960,9215,Le.ORD,"mo"],[9312,9471,Le.ORD,"mn"],[9472,10223,Le.ORD,"mo"],[10224,10239,Le.REL,"mo"],[10240,10495,Le.ORD,"mtext"],[10496,10623,Le.REL,"mo"],[10624,10751,Le.ORD,"mo"],[10752,11007,Le.BIN,"mo"],[11008,11055,Le.ORD,"mo"],[11056,11087,Le.REL,"mo"],[11088,11263,Le.ORD,"mo"],[11264,11744,Le.ORD,"mi"],[11776,11903,Le.ORD,"mo"],[11904,12255,Le.ORD,"mi","normal"],[12272,12351,Le.ORD,"mo"],[12352,42143,Le.ORD,"mi","normal"],[42192,43055,Le.ORD,"mi"],[43056,43071,Le.ORD,"mn"],[43072,55295,Le.ORD,"mi"],[63744,64255,Le.ORD,"mi","normal"],[64256,65023,Le.ORD,"mi"],[65024,65135,Le.ORD,"mo"],[65136,65791,Le.ORD,"mi"],[65792,65935,Le.ORD,"mn"],[65936,74751,Le.ORD,"mi","normal"],[74752,74879,Le.ORD,"mn"],[74880,113823,Le.ORD,"mi","normal"],[113824,119391,Le.ORD,"mo"],[119648,119679,Le.ORD,"mn"],[119808,120781,Le.ORD,"mi"],[120782,120831,Le.ORD,"mn"],[122624,129023,Le.ORD,"mo"],[129024,129279,Le.REL,"mo"],[129280,129535,Le.ORD,"mo"],[131072,195103,Le.ORD,"mi","normal"]];function We(t){const e=Xe.infix[t]||Xe.prefix[t]||Xe.postfix[t];if(e)return[0,0,e[2],"mo"];const s=t.codePointAt(0);for(const t of He)if(s<=t[1]){if(s>=t[0])return t;break}return[0,0,Le.REL,"mo"]}const Fe=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]],Xe={prefix:{"(":je.OPEN,"+":je.BIN01,"-":je.BIN01,"[":je.OPEN,"{":je.OPEN,"|":je.OPEN,"||":[0,0,Le.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,Le.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"\xac":je.ORD21,"\xb1":je.BIN01,"\u2016":[0,0,Le.ORD,{fence:!0,stretchy:!0}],"\u2018":[0,0,Le.OPEN,{fence:!0}],"\u201c":[0,0,Le.OPEN,{fence:!0}],\u2145:je.ORD21,\u2146:Pe(2,0,Le.ORD),"\u2200":je.ORD21,"\u2202":je.ORD21,"\u2203":je.ORD21,"\u2204":je.ORD21,"\u2207":je.ORD21,"\u220f":je.OP,"\u2210":je.OP,"\u2211":je.OP,"\u2212":je.BIN01,"\u2213":je.BIN01,"\u221a":[1,1,Le.ORD,{stretchy:!0}],"\u221b":je.ORD11,"\u221c":je.ORD11,"\u2220":je.ORD,"\u2221":je.ORD,"\u2222":je.ORD,"\u222b":je.INTEGRAL,"\u222c":je.INTEGRAL,"\u222d":je.INTEGRAL,"\u222e":je.INTEGRAL,"\u222f":je.INTEGRAL,"\u2230":je.INTEGRAL,"\u2231":je.INTEGRAL,"\u2232":je.INTEGRAL,"\u2233":je.INTEGRAL,"\u22c0":je.OP,"\u22c1":je.OP,"\u22c2":je.OP,"\u22c3":je.OP,"\u2308":je.OPEN,"\u230a":je.OPEN,"\u2329":je.OPEN,"\u2772":je.OPEN,"\u27e6":je.OPEN,"\u27e8":je.OPEN,"\u27ea":je.OPEN,"\u27ec":je.OPEN,"\u27ee":je.OPEN,"\u2980":[0,0,Le.ORD,{fence:!0,stretchy:!0}],"\u2983":je.OPEN,"\u2985":je.OPEN,"\u2987":je.OPEN,"\u2989":je.OPEN,"\u298b":je.OPEN,"\u298d":je.OPEN,"\u298f":je.OPEN,"\u2991":je.OPEN,"\u2993":je.OPEN,"\u2995":je.OPEN,"\u2997":je.OPEN,"\u29fc":je.OPEN,"\u2a00":je.OP,"\u2a01":je.OP,"\u2a02":je.OP,"\u2a03":je.OP,"\u2a04":je.OP,"\u2a05":je.OP,"\u2a06":je.OP,"\u2a07":je.OP,"\u2a08":je.OP,"\u2a09":je.OP,"\u2a0a":je.OP,"\u2a0b":je.INTEGRAL2,"\u2a0c":je.INTEGRAL,"\u2a0d":je.INTEGRAL2,"\u2a0e":je.INTEGRAL2,"\u2a0f":je.INTEGRAL2,"\u2a10":je.OP,"\u2a11":je.OP,"\u2a12":je.OP,"\u2a13":je.OP,"\u2a14":je.OP,"\u2a15":je.INTEGRAL2,"\u2a16":je.INTEGRAL2,"\u2a17":je.INTEGRAL2,"\u2a18":je.INTEGRAL2,"\u2a19":je.INTEGRAL2,"\u2a1a":je.INTEGRAL2,"\u2a1b":je.INTEGRAL2,"\u2a1c":je.INTEGRAL2,"\u2afc":je.OP,"\u2aff":je.OP},postfix:{"!!":Pe(1,0),"!":[1,0,Le.CLOSE,null],'"':je.ACCENT,"&":je.ORD,")":je.CLOSE,"++":Pe(0,0),"--":Pe(0,0),"..":Pe(0,0),"...":je.ORD,"'":je.ACCENT,"]":je.CLOSE,"^":je.WIDEACCENT,_:je.WIDEACCENT,"`":je.ACCENT,"|":je.CLOSE,"}":je.CLOSE,"~":je.WIDEACCENT,"||":[0,0,Le.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,Le.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"\xa8":je.ACCENT,\u00aa:je.ACCENT,"\xaf":je.WIDEACCENT,"\xb0":je.ORD,"\xb2":je.ACCENT,"\xb3":je.ACCENT,"\xb4":je.ACCENT,"\xb8":je.ACCENT,"\xb9":je.ACCENT,\u00ba:je.ACCENT,\u02c6:je.WIDEACCENT,\u02c7:je.WIDEACCENT,\u02c9:je.WIDEACCENT,\u02ca:je.ACCENT,\u02cb:je.ACCENT,\u02cd:je.WIDEACCENT,"\u02d8":je.ACCENT,"\u02d9":je.ACCENT,"\u02da":je.ACCENT,"\u02dc":je.WIDEACCENT,"\u02dd":je.ACCENT,"\u02f7":je.WIDEACCENT,"\u0302":je.WIDEACCENT,"\u0311":je.ACCENT,"\u03f6":je.REL,"\u2016":[0,0,Le.ORD,{fence:!0,stretchy:!0}],"\u2019":[0,0,Le.CLOSE,{fence:!0}],"\u201a":je.ACCENT,"\u201b":je.ACCENT,"\u201d":[0,0,Le.CLOSE,{fence:!0}],"\u201e":je.ACCENT,"\u201f":je.ACCENT,"\u2032":je.ORD,"\u2033":je.ORD,"\u2034":je.ORD,"\u2035":je.ORD,"\u2036":je.ORD,"\u2037":je.ORD,"\u203e":je.WIDEACCENT,"\u2057":je.ORD,"\u20db":je.ACCENT,"\u20dc":je.ACCENT,"\u2309":je.CLOSE,"\u230b":je.CLOSE,"\u232a":je.CLOSE,"\u23b4":je.WIDEACCENT,"\u23b5":je.WIDEACCENT,"\u23dc":je.WIDEACCENT,"\u23dd":je.WIDEACCENT,"\u23de":je.WIDEACCENT,"\u23df":je.WIDEACCENT,"\u23e0":je.WIDEACCENT,"\u23e1":je.WIDEACCENT,"\u25a0":je.BIN3,"\u25a1":je.BIN3,"\u25aa":je.BIN3,"\u25ab":je.BIN3,"\u25ad":je.BIN3,"\u25ae":je.BIN3,"\u25af":je.BIN3,"\u25b0":je.BIN3,"\u25b1":je.BIN3,"\u25b2":je.BIN4,"\u25b4":je.BIN4,"\u25b6":je.BIN4,"\u25b7":je.BIN4,"\u25b8":je.BIN4,"\u25bc":je.BIN4,"\u25be":je.BIN4,"\u25c0":je.BIN4,"\u25c1":je.BIN4,"\u25c2":je.BIN4,"\u25c4":je.BIN4,"\u25c5":je.BIN4,"\u25c6":je.BIN4,"\u25c7":je.BIN4,"\u25c8":je.BIN4,"\u25c9":je.BIN4,"\u25cc":je.BIN4,"\u25cd":je.BIN4,"\u25ce":je.BIN4,"\u25cf":je.BIN4,"\u25d6":je.BIN4,"\u25d7":je.BIN4,"\u25e6":je.BIN4,"\u266d":je.ORD02,"\u266e":je.ORD02,"\u266f":je.ORD02,"\u2773":je.CLOSE,"\u27e7":je.CLOSE,"\u27e9":je.CLOSE,"\u27eb":je.CLOSE,"\u27ed":je.CLOSE,"\u27ef":je.CLOSE,"\u2980":[0,0,Le.ORD,{fence:!0,stretchy:!0}],"\u2984":je.CLOSE,"\u2986":je.CLOSE,"\u2988":je.CLOSE,"\u298a":je.CLOSE,"\u298c":je.CLOSE,"\u298e":je.CLOSE,"\u2990":je.CLOSE,"\u2992":je.CLOSE,"\u2994":je.CLOSE,"\u2996":je.CLOSE,"\u2998":je.CLOSE,"\u29fd":je.CLOSE},infix:{"!=":je.BIN4,"#":je.ORD,$:je.ORD,"%":[3,3,Le.ORD,null],"&&":je.BIN4,"":je.ORD,"*":je.BIN3,"**":Pe(1,1),"*=":je.BIN4,"+":je.BIN4,"+=":je.BIN4,",":[0,3,Le.PUNCT,{linebreakstyle:"after",separator:!0}],"-":je.BIN4,"-=":je.BIN4,"->":je.BIN5,".":[0,3,Le.PUNCT,{linebreakstyle:"after",separator:!0}],"/":je.ORD11,"//":Pe(1,1),"/=":je.BIN4,":":[1,2,Le.REL,null],":=":je.BIN4,";":[0,3,Le.PUNCT,{linebreakstyle:"after",separator:!0}],"<":je.REL,"<=":je.BIN5,"<>":Pe(1,1),"=":je.REL,"==":je.BIN4,">":je.REL,">=":je.BIN5,"?":[1,1,Le.CLOSE,null],"@":je.ORD11,"\\":je.ORD,"^":je.ORD11,_:je.ORD11,"|":[2,2,Le.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"||":[2,2,Le.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[2,2,Le.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"\xb1":je.BIN4,"\xb7":je.BIN4,"\xd7":je.BIN4,"\xf7":je.BIN4,\u02b9:je.ORD,"\u0300":je.ACCENT,"\u0301":je.ACCENT,"\u0303":je.WIDEACCENT,"\u0304":je.ACCENT,"\u0306":je.ACCENT,"\u0307":je.ACCENT,"\u0308":je.ACCENT,"\u030c":je.ACCENT,"\u0332":je.WIDEACCENT,"\u0338":je.REL4,"\u2015":[0,0,Le.ORD,{stretchy:!0}],"\u2017":[0,0,Le.ORD,{stretchy:!0}],"\u2020":je.BIN3,"\u2021":je.BIN3,"\u2022":je.BIN4,"\u2026":je.INNER,"\u2043":je.BIN4,"\u2044":je.TALLBIN,"\u2061":je.NONE,"\u2062":je.NONE,"\u2063":[0,0,Le.NONE,{linebreakstyle:"after",separator:!0}],"\u2064":je.NONE,"\u20d7":je.ACCENT,\u2111:je.ORD,\u2113:je.ORD,\u2118:je.ORD,\u211c:je.ORD,"\u2190":je.WIDEREL,"\u2191":je.RELSTRETCH,"\u2192":je.WIDEREL,"\u2193":je.RELSTRETCH,"\u2194":je.WIDEREL,"\u2195":je.RELSTRETCH,"\u2196":je.RELSTRETCH,"\u2197":je.RELSTRETCH,"\u2198":je.RELSTRETCH,"\u2199":je.RELSTRETCH,"\u219a":je.RELACCENT,"\u219b":je.RELACCENT,"\u219c":je.WIDEREL,"\u219d":je.WIDEREL,"\u219e":je.WIDEREL,"\u219f":je.WIDEREL,"\u21a0":je.WIDEREL,"\u21a1":je.RELSTRETCH,"\u21a2":je.WIDEREL,"\u21a3":je.WIDEREL,"\u21a4":je.WIDEREL,"\u21a5":je.RELSTRETCH,"\u21a6":je.WIDEREL,"\u21a7":je.RELSTRETCH,"\u21a8":je.RELSTRETCH,"\u21a9":je.WIDEREL,"\u21aa":je.WIDEREL,"\u21ab":je.WIDEREL,"\u21ac":je.WIDEREL,"\u21ad":je.WIDEREL,"\u21ae":je.RELACCENT,"\u21af":je.RELSTRETCH,"\u21b0":je.RELSTRETCH,"\u21b1":je.RELSTRETCH,"\u21b2":je.RELSTRETCH,"\u21b3":je.RELSTRETCH,"\u21b4":je.RELSTRETCH,"\u21b5":je.RELSTRETCH,"\u21b6":je.RELACCENT,"\u21b7":je.RELACCENT,"\u21b8":je.REL,"\u21b9":je.WIDEREL,"\u21ba":je.REL,"\u21bb":je.REL,"\u21bc":je.WIDEREL,"\u21bd":je.WIDEREL,"\u21be":je.RELSTRETCH,"\u21bf":je.RELSTRETCH,"\u21c0":je.WIDEREL,"\u21c1":je.WIDEREL,"\u21c2":je.RELSTRETCH,"\u21c3":je.RELSTRETCH,"\u21c4":je.WIDEREL,"\u21c5":je.RELSTRETCH,"\u21c6":je.WIDEREL,"\u21c7":je.WIDEREL,"\u21c8":je.RELSTRETCH,"\u21c9":je.WIDEREL,"\u21ca":je.RELSTRETCH,"\u21cb":je.WIDEREL,"\u21cc":je.WIDEREL,"\u21cd":je.RELACCENT,"\u21ce":je.RELACCENT,"\u21cf":je.RELACCENT,"\u21d0":je.WIDEREL,"\u21d1":je.RELSTRETCH,"\u21d2":je.WIDEREL,"\u21d3":je.RELSTRETCH,"\u21d4":je.WIDEREL,"\u21d5":je.RELSTRETCH,"\u21d6":je.RELSTRETCH,"\u21d7":je.RELSTRETCH,"\u21d8":je.RELSTRETCH,"\u21d9":je.RELSTRETCH,"\u21da":je.WIDEREL,"\u21db":je.WIDEREL,"\u21dc":je.WIDEREL,"\u21dd":je.WIDEREL,"\u21de":je.REL,"\u21df":je.REL,"\u21e0":je.WIDEREL,"\u21e1":je.RELSTRETCH,"\u21e2":je.WIDEREL,"\u21e3":je.RELSTRETCH,"\u21e4":je.WIDEREL,"\u21e5":je.WIDEREL,"\u21e6":je.WIDEREL,"\u21e7":je.RELSTRETCH,"\u21e8":je.WIDEREL,"\u21e9":je.RELSTRETCH,"\u21ea":je.RELSTRETCH,"\u21eb":je.RELSTRETCH,"\u21ec":je.RELSTRETCH,"\u21ed":je.RELSTRETCH,"\u21ee":je.RELSTRETCH,"\u21ef":je.RELSTRETCH,"\u21f0":je.WIDEREL,"\u21f1":je.REL,"\u21f2":je.REL,"\u21f3":je.RELSTRETCH,"\u21f4":je.RELACCENT,"\u21f5":je.RELSTRETCH,"\u21f6":je.WIDEREL,"\u21f7":je.RELACCENT,"\u21f8":je.RELACCENT,"\u21f9":je.RELACCENT,"\u21fa":je.RELACCENT,"\u21fb":je.RELACCENT,"\u21fc":je.RELACCENT,"\u21fd":je.WIDEREL,"\u21fe":je.WIDEREL,"\u21ff":je.WIDEREL,"\u2201":Pe(1,2,Le.ORD),"\u2205":je.ORD,"\u2206":je.BIN3,"\u2208":je.REL,"\u2209":je.REL,"\u220a":je.REL,"\u220b":je.REL,"\u220c":je.REL,"\u220d":je.REL,"\u220e":je.BIN3,"\u2212":je.BIN4,"\u2213":je.BIN4,"\u2214":je.BIN4,"\u2215":je.TALLBIN,"\u2216":je.BIN4,"\u2217":je.BIN4,"\u2218":je.BIN4,"\u2219":je.BIN4,"\u221d":je.REL,"\u221e":je.ORD,"\u221f":je.REL,"\u2223":je.REL,"\u2224":je.REL,"\u2225":je.REL,"\u2226":je.REL,"\u2227":je.BIN4,"\u2228":je.BIN4,"\u2229":je.BIN4,"\u222a":je.BIN4,"\u2234":je.REL,"\u2235":je.REL,"\u2236":je.REL,"\u2237":je.REL,"\u2238":je.BIN4,"\u2239":je.REL,"\u223a":je.BIN4,"\u223b":je.REL,"\u223c":je.REL,"\u223d":je.REL,"\u223d\u0331":je.BIN3,"\u223e":je.REL,"\u223f":je.BIN3,"\u2240":je.BIN4,"\u2241":je.REL,"\u2242":je.REL,"\u2242\u0338":je.REL,"\u2243":je.REL,"\u2244":je.REL,"\u2245":je.REL,"\u2246":je.REL,"\u2247":je.REL,"\u2248":je.REL,"\u2249":je.REL,"\u224a":je.REL,"\u224b":je.REL,"\u224c":je.REL,"\u224d":je.REL,"\u224e":je.REL,"\u224e\u0338":je.REL,"\u224f":je.REL,"\u224f\u0338":je.REL,"\u2250":je.REL,"\u2251":je.REL,"\u2252":je.REL,"\u2253":je.REL,"\u2254":je.REL,"\u2255":je.REL,"\u2256":je.REL,"\u2257":je.REL,"\u2258":je.REL,"\u2259":je.REL,"\u225a":je.REL,"\u225b":je.REL,"\u225c":je.REL,"\u225d":je.REL,"\u225e":je.REL,"\u225f":je.REL,"\u2260":je.REL,"\u2261":je.REL,"\u2262":je.REL,"\u2263":je.REL,"\u2264":je.REL,"\u2265":je.REL,"\u2266":je.REL,"\u2266\u0338":je.REL,"\u2267":je.REL,"\u2268":je.REL,"\u2269":je.REL,"\u226a":je.REL,"\u226a\u0338":je.REL,"\u226b":je.REL,"\u226b\u0338":je.REL,"\u226c":je.REL,"\u226d":je.REL,"\u226e":je.REL,"\u226f":je.REL,"\u2270":je.REL,"\u2271":je.REL,"\u2272":je.REL,"\u2273":je.REL,"\u2274":je.REL,"\u2275":je.REL,"\u2276":je.REL,"\u2277":je.REL,"\u2278":je.REL,"\u2279":je.REL,"\u227a":je.REL,"\u227b":je.REL,"\u227c":je.REL,"\u227d":je.REL,"\u227e":je.REL,"\u227f":je.REL,"\u227f\u0338":je.REL,"\u2280":je.REL,"\u2281":je.REL,"\u2282":je.REL,"\u2282\u20d2":je.REL,"\u2283":je.REL,"\u2283\u20d2":je.REL,"\u2284":je.REL,"\u2285":je.REL,"\u2286":je.REL,"\u2287":je.REL,"\u2288":je.REL,"\u2289":je.REL,"\u228a":je.REL,"\u228b":je.REL,"\u228c":je.BIN4,"\u228d":je.BIN4,"\u228e":je.BIN4,"\u228f":je.REL,"\u228f\u0338":je.REL,"\u2290":je.REL,"\u2290\u0338":je.REL,"\u2291":je.REL,"\u2292":je.REL,"\u2293":je.BIN4,"\u2294":je.BIN4,"\u2295":je.BIN4,"\u2296":je.BIN4,"\u2297":je.BIN4,"\u2298":je.BIN4,"\u2299":je.BIN4,"\u229a":je.BIN4,"\u229b":je.BIN4,"\u229c":je.BIN4,"\u229d":je.BIN4,"\u229e":je.BIN4,"\u229f":je.BIN4,"\u22a0":je.BIN4,"\u22a1":je.BIN4,"\u22a2":je.REL,"\u22a3":je.REL,"\u22a4":je.ORD55,"\u22a5":je.REL,"\u22a6":je.REL,"\u22a7":je.REL,"\u22a8":je.REL,"\u22a9":je.REL,"\u22aa":je.REL,"\u22ab":je.REL,"\u22ac":je.REL,"\u22ad":je.REL,"\u22ae":je.REL,"\u22af":je.REL,"\u22b0":je.REL,"\u22b1":je.REL,"\u22b2":je.REL,"\u22b3":je.REL,"\u22b4":je.REL,"\u22b5":je.REL,"\u22b6":je.REL,"\u22b7":je.REL,"\u22b8":je.REL,"\u22b9":je.REL,"\u22ba":je.BIN4,"\u22bb":je.BIN4,"\u22bc":je.BIN4,"\u22bd":je.BIN4,"\u22be":je.BIN3,"\u22bf":je.BIN3,"\u22c4":je.BIN4,"\u22c5":je.BIN4,"\u22c6":je.BIN4,"\u22c7":je.BIN4,"\u22c8":je.REL,"\u22c9":je.BIN4,"\u22ca":je.BIN4,"\u22cb":je.BIN4,"\u22cc":je.BIN4,"\u22cd":je.REL,"\u22ce":je.BIN4,"\u22cf":je.BIN4,"\u22d0":je.REL,"\u22d1":je.REL,"\u22d2":je.BIN4,"\u22d3":je.BIN4,"\u22d4":je.REL,"\u22d5":je.REL,"\u22d6":je.REL,"\u22d7":je.REL,"\u22d8":je.REL,"\u22d9":je.REL,"\u22da":je.REL,"\u22db":je.REL,"\u22dc":je.REL,"\u22dd":je.REL,"\u22de":je.REL,"\u22df":je.REL,"\u22e0":je.REL,"\u22e1":je.REL,"\u22e2":je.REL,"\u22e3":je.REL,"\u22e4":je.REL,"\u22e5":je.REL,"\u22e6":je.REL,"\u22e7":je.REL,"\u22e8":je.REL,"\u22e9":je.REL,"\u22ea":je.REL,"\u22eb":je.REL,"\u22ec":je.REL,"\u22ed":je.REL,"\u22ee":je.ORD55,"\u22ef":je.INNER,"\u22f0":je.REL,"\u22f1":[5,5,Le.INNER,null],"\u22f2":je.REL,"\u22f3":je.REL,"\u22f4":je.REL,"\u22f5":je.REL,"\u22f6":je.REL,"\u22f7":je.REL,"\u22f8":je.REL,"\u22f9":je.REL,"\u22fa":je.REL,"\u22fb":je.REL,"\u22fc":je.REL,"\u22fd":je.REL,"\u22fe":je.REL,"\u22ff":je.REL,"\u2305":je.BIN3,"\u2306":je.BIN3,"\u2322":je.REL4,"\u2323":je.REL4,"\u2329":je.OPEN,"\u232a":je.CLOSE,"\u23aa":je.ORD,"\u23af":[0,0,Le.ORD,{stretchy:!0}],"\u23b0":je.OPEN,"\u23b1":je.CLOSE,"\u2500":je.ORD,"\u25b3":je.BIN4,"\u25b5":je.BIN4,"\u25b9":je.BIN4,"\u25bd":je.BIN4,"\u25bf":je.BIN4,"\u25c3":je.BIN4,"\u25ef":je.BIN3,"\u2660":je.ORD,"\u2661":je.ORD,"\u2662":je.ORD,"\u2663":je.ORD,"\u2758":je.REL,"\u27f0":je.RELSTRETCH,"\u27f1":je.RELSTRETCH,"\u27f5":je.WIDEREL,"\u27f6":je.WIDEREL,"\u27f7":je.WIDEREL,"\u27f8":je.WIDEREL,"\u27f9":je.WIDEREL,"\u27fa":je.WIDEREL,"\u27fb":je.WIDEREL,"\u27fc":je.WIDEREL,"\u27fd":je.WIDEREL,"\u27fe":je.WIDEREL,"\u27ff":je.WIDEREL,"\u2900":je.RELACCENT,"\u2901":je.RELACCENT,"\u2902":je.RELACCENT,"\u2903":je.RELACCENT,"\u2904":je.RELACCENT,"\u2905":je.RELACCENT,"\u2906":je.RELACCENT,"\u2907":je.RELACCENT,"\u2908":je.REL,"\u2909":je.REL,"\u290a":je.RELSTRETCH,"\u290b":je.RELSTRETCH,"\u290c":je.WIDEREL,"\u290d":je.WIDEREL,"\u290e":je.WIDEREL,"\u290f":je.WIDEREL,"\u2910":je.WIDEREL,"\u2911":je.RELACCENT,"\u2912":je.RELSTRETCH,"\u2913":je.RELSTRETCH,"\u2914":je.RELACCENT,"\u2915":je.RELACCENT,"\u2916":je.RELACCENT,"\u2917":je.RELACCENT,"\u2918":je.RELACCENT,"\u2919":je.RELACCENT,"\u291a":je.RELACCENT,"\u291b":je.RELACCENT,"\u291c":je.RELACCENT,"\u291d":je.RELACCENT,"\u291e":je.RELACCENT,"\u291f":je.RELACCENT,"\u2920":je.RELACCENT,"\u2921":je.RELSTRETCH,"\u2922":je.RELSTRETCH,"\u2923":je.REL,"\u2924":je.REL,"\u2925":je.REL,"\u2926":je.REL,"\u2927":je.REL,"\u2928":je.REL,"\u2929":je.REL,"\u292a":je.REL,"\u292b":je.REL,"\u292c":je.REL,"\u292d":je.REL,"\u292e":je.REL,"\u292f":je.REL,"\u2930":je.REL,"\u2931":je.REL,"\u2932":je.REL,"\u2933":je.RELACCENT,"\u2934":je.REL,"\u2935":je.REL,"\u2936":je.REL,"\u2937":je.REL,"\u2938":je.REL,"\u2939":je.REL,"\u293a":je.RELACCENT,"\u293b":je.RELACCENT,"\u293c":je.RELACCENT,"\u293d":je.RELACCENT,"\u293e":je.REL,"\u293f":je.REL,"\u2940":je.REL,"\u2941":je.REL,"\u2942":je.RELACCENT,"\u2943":je.RELACCENT,"\u2944":je.RELACCENT,"\u2945":je.RELACCENT,"\u2946":je.RELACCENT,"\u2947":je.RELACCENT,"\u2948":je.RELACCENT,"\u2949":je.REL,"\u294a":je.RELACCENT,"\u294b":je.RELACCENT,"\u294c":je.REL,"\u294d":je.REL,"\u294e":je.WIDEREL,"\u294f":je.RELSTRETCH,"\u2950":je.WIDEREL,"\u2951":je.RELSTRETCH,"\u2952":je.WIDEREL,"\u2953":je.WIDEREL,"\u2954":je.RELSTRETCH,"\u2955":je.RELSTRETCH,"\u2956":je.RELSTRETCH,"\u2957":je.RELSTRETCH,"\u2958":je.RELSTRETCH,"\u2959":je.RELSTRETCH,"\u295a":je.WIDEREL,"\u295b":je.WIDEREL,"\u295c":je.RELSTRETCH,"\u295d":je.RELSTRETCH,"\u295e":je.WIDEREL,"\u295f":je.WIDEREL,"\u2960":je.RELSTRETCH,"\u2961":je.RELSTRETCH,"\u2962":je.RELACCENT,"\u2963":je.REL,"\u2964":je.RELACCENT,"\u2965":je.REL,"\u2966":je.RELACCENT,"\u2967":je.RELACCENT,"\u2968":je.RELACCENT,"\u2969":je.RELACCENT,"\u296a":je.RELACCENT,"\u296b":je.RELACCENT,"\u296c":je.RELACCENT,"\u296d":je.RELACCENT,"\u296e":je.RELSTRETCH,"\u296f":je.RELSTRETCH,"\u2970":je.RELACCENT,"\u2971":je.RELACCENT,"\u2972":je.RELACCENT,"\u2973":je.RELACCENT,"\u2974":je.RELACCENT,"\u2975":je.RELACCENT,"\u2976":je.RELACCENT,"\u2977":je.RELACCENT,"\u2978":je.RELACCENT,"\u2979":je.RELACCENT,"\u297a":je.RELACCENT,"\u297b":je.RELACCENT,"\u297c":je.RELACCENT,"\u297d":je.RELACCENT,"\u297e":je.REL,"\u297f":je.REL,"\u2981":je.BIN3,"\u2982":je.BIN3,"\u2999":je.BIN3,"\u299a":je.BIN3,"\u299b":je.BIN3,"\u299c":je.BIN3,"\u299d":je.BIN3,"\u299e":je.BIN3,"\u299f":je.BIN3,"\u29a0":je.BIN3,"\u29a1":je.BIN3,"\u29a2":je.BIN3,"\u29a3":je.BIN3,"\u29a4":je.BIN3,"\u29a5":je.BIN3,"\u29a6":je.BIN3,"\u29a7":je.BIN3,"\u29a8":je.BIN3,"\u29a9":je.BIN3,"\u29aa":je.BIN3,"\u29ab":je.BIN3,"\u29ac":je.BIN3,"\u29ad":je.BIN3,"\u29ae":je.BIN3,"\u29af":je.BIN3,"\u29b0":je.BIN3,"\u29b1":je.BIN3,"\u29b2":je.BIN3,"\u29b3":je.BIN3,"\u29b4":je.BIN3,"\u29b5":je.BIN3,"\u29b6":je.BIN4,"\u29b7":je.BIN4,"\u29b8":je.BIN4,"\u29b9":je.BIN4,"\u29ba":je.BIN4,"\u29bb":je.BIN4,"\u29bc":je.BIN4,"\u29bd":je.BIN4,"\u29be":je.BIN4,"\u29bf":je.BIN4,"\u29c0":je.REL,"\u29c1":je.REL,"\u29c2":je.BIN3,"\u29c3":je.BIN3,"\u29c4":je.BIN4,"\u29c5":je.BIN4,"\u29c6":je.BIN4,"\u29c7":je.BIN4,"\u29c8":je.BIN4,"\u29c9":je.BIN3,"\u29ca":je.BIN3,"\u29cb":je.BIN3,"\u29cc":je.BIN3,"\u29cd":je.BIN3,"\u29ce":je.REL,"\u29cf":je.REL,"\u29cf\u0338":je.REL,"\u29d0":je.REL,"\u29d0\u0338":je.REL,"\u29d1":je.REL,"\u29d2":je.REL,"\u29d3":je.REL,"\u29d4":je.REL,"\u29d5":je.REL,"\u29d6":je.BIN4,"\u29d7":je.BIN4,"\u29d8":je.BIN3,"\u29d9":je.BIN3,"\u29db":je.BIN3,"\u29dc":je.BIN3,"\u29dd":je.BIN3,"\u29de":je.REL,"\u29df":je.BIN3,"\u29e0":je.BIN3,"\u29e1":je.REL,"\u29e2":je.BIN4,"\u29e3":je.REL,"\u29e4":je.REL,"\u29e5":je.REL,"\u29e6":je.REL,"\u29e7":je.BIN3,"\u29e8":je.BIN3,"\u29e9":je.BIN3,"\u29ea":je.BIN3,"\u29eb":je.BIN3,"\u29ec":je.BIN3,"\u29ed":je.BIN3,"\u29ee":je.BIN3,"\u29ef":je.BIN3,"\u29f0":je.BIN3,"\u29f1":je.BIN3,"\u29f2":je.BIN3,"\u29f3":je.BIN3,"\u29f4":je.REL,"\u29f5":je.BIN4,"\u29f6":je.BIN4,"\u29f7":je.BIN4,"\u29f8":je.BIN3,"\u29f9":je.BIN3,"\u29fa":je.BIN3,"\u29fb":je.BIN3,"\u29fe":je.BIN4,"\u29ff":je.BIN4,"\u2a1d":je.BIN3,"\u2a1e":je.BIN3,"\u2a1f":je.BIN3,"\u2a20":je.BIN3,"\u2a21":je.BIN3,"\u2a22":je.BIN4,"\u2a23":je.BIN4,"\u2a24":je.BIN4,"\u2a25":je.BIN4,"\u2a26":je.BIN4,"\u2a27":je.BIN4,"\u2a28":je.BIN4,"\u2a29":je.BIN4,"\u2a2a":je.BIN4,"\u2a2b":je.BIN4,"\u2a2c":je.BIN4,"\u2a2d":je.BIN4,"\u2a2e":je.BIN4,"\u2a2f":je.BIN4,"\u2a30":je.BIN4,"\u2a31":je.BIN4,"\u2a32":je.BIN4,"\u2a33":je.BIN4,"\u2a34":je.BIN4,"\u2a35":je.BIN4,"\u2a36":je.BIN4,"\u2a37":je.BIN4,"\u2a38":je.BIN4,"\u2a39":je.BIN4,"\u2a3a":je.BIN4,"\u2a3b":je.BIN4,"\u2a3c":je.BIN4,"\u2a3d":je.BIN4,"\u2a3e":je.BIN4,"\u2a3f":je.BIN4,"\u2a40":je.BIN4,"\u2a41":je.BIN4,"\u2a42":je.BIN4,"\u2a43":je.BIN4,"\u2a44":je.BIN4,"\u2a45":je.BIN4,"\u2a46":je.BIN4,"\u2a47":je.BIN4,"\u2a48":je.BIN4,"\u2a49":je.BIN4,"\u2a4a":je.BIN4,"\u2a4b":je.BIN4,"\u2a4c":je.BIN4,"\u2a4d":je.BIN4,"\u2a4e":je.BIN4,"\u2a4f":je.BIN4,"\u2a50":je.BIN4,"\u2a51":je.BIN4,"\u2a52":je.BIN4,"\u2a53":je.BIN4,"\u2a54":je.BIN4,"\u2a55":je.BIN4,"\u2a56":je.BIN4,"\u2a57":je.BIN4,"\u2a58":je.BIN4,"\u2a59":je.REL,"\u2a5a":je.BIN4,"\u2a5b":je.BIN4,"\u2a5c":je.BIN4,"\u2a5d":je.BIN4,"\u2a5e":je.BIN4,"\u2a5f":je.BIN4,"\u2a60":je.BIN4,"\u2a61":je.BIN4,"\u2a62":je.BIN4,"\u2a63":je.BIN4,"\u2a64":je.BIN4,"\u2a65":je.BIN4,"\u2a66":je.REL,"\u2a67":je.REL,"\u2a68":je.REL,"\u2a69":je.REL,"\u2a6a":je.REL,"\u2a6b":je.REL,"\u2a6c":je.REL,"\u2a6d":je.REL,"\u2a6e":je.REL,"\u2a6f":je.REL,"\u2a70":je.REL,"\u2a71":je.BIN4,"\u2a72":je.BIN4,"\u2a73":je.REL,"\u2a74":je.REL,"\u2a75":je.REL,"\u2a76":je.REL,"\u2a77":je.REL,"\u2a78":je.REL,"\u2a79":je.REL,"\u2a7a":je.REL,"\u2a7b":je.REL,"\u2a7c":je.REL,"\u2a7d":je.REL,"\u2a7d\u0338":je.REL,"\u2a7e":je.REL,"\u2a7e\u0338":je.REL,"\u2a7f":je.REL,"\u2a80":je.REL,"\u2a81":je.REL,"\u2a82":je.REL,"\u2a83":je.REL,"\u2a84":je.REL,"\u2a85":je.REL,"\u2a86":je.REL,"\u2a87":je.REL,"\u2a88":je.REL,"\u2a89":je.REL,"\u2a8a":je.REL,"\u2a8b":je.REL,"\u2a8c":je.REL,"\u2a8d":je.REL,"\u2a8e":je.REL,"\u2a8f":je.REL,"\u2a90":je.REL,"\u2a91":je.REL,"\u2a92":je.REL,"\u2a93":je.REL,"\u2a94":je.REL,"\u2a95":je.REL,"\u2a96":je.REL,"\u2a97":je.REL,"\u2a98":je.REL,"\u2a99":je.REL,"\u2a9a":je.REL,"\u2a9b":je.REL,"\u2a9c":je.REL,"\u2a9d":je.REL,"\u2a9e":je.REL,"\u2a9f":je.REL,"\u2aa0":je.REL,"\u2aa1":je.REL,"\u2aa1\u0338":je.REL,"\u2aa2":je.REL,"\u2aa2\u0338":je.REL,"\u2aa3":je.REL,"\u2aa4":je.REL,"\u2aa5":je.REL,"\u2aa6":je.REL,"\u2aa7":je.REL,"\u2aa8":je.REL,"\u2aa9":je.REL,"\u2aaa":je.REL,"\u2aab":je.REL,"\u2aac":je.REL,"\u2aad":je.REL,"\u2aae":je.REL,"\u2aaf":je.REL,"\u2aaf\u0338":je.REL,"\u2ab0":je.REL,"\u2ab0\u0338":je.REL,"\u2ab1":je.REL,"\u2ab2":je.REL,"\u2ab3":je.REL,"\u2ab4":je.REL,"\u2ab5":je.REL,"\u2ab6":je.REL,"\u2ab7":je.REL,"\u2ab8":je.REL,"\u2ab9":je.REL,"\u2aba":je.REL,"\u2abb":je.REL,"\u2abc":je.REL,"\u2abd":je.REL,"\u2abe":je.REL,"\u2abf":je.REL,"\u2ac0":je.REL,"\u2ac1":je.REL,"\u2ac2":je.REL,"\u2ac3":je.REL,"\u2ac4":je.REL,"\u2ac5":je.REL,"\u2ac6":je.REL,"\u2ac7":je.REL,"\u2ac8":je.REL,"\u2ac9":je.REL,"\u2aca":je.REL,"\u2acb":je.REL,"\u2acc":je.REL,"\u2acd":je.REL,"\u2ace":je.REL,"\u2acf":je.REL,"\u2ad0":je.REL,"\u2ad1":je.REL,"\u2ad2":je.REL,"\u2ad3":je.REL,"\u2ad4":je.REL,"\u2ad5":je.REL,"\u2ad6":je.REL,"\u2ad7":je.REL,"\u2ad8":je.REL,"\u2ad9":je.REL,"\u2ada":je.REL,"\u2adb":je.REL,"\u2add":je.REL,"\u2add\u0338":je.REL,"\u2ade":je.REL,"\u2adf":je.REL,"\u2ae0":je.REL,"\u2ae1":je.REL,"\u2ae2":je.REL,"\u2ae3":je.REL,"\u2ae4":je.REL,"\u2ae5":je.REL,"\u2ae6":je.REL,"\u2ae7":je.REL,"\u2ae8":je.REL,"\u2ae9":je.REL,"\u2aea":je.REL,"\u2aeb":je.REL,"\u2aec":je.REL,"\u2aed":je.REL,"\u2aee":je.REL,"\u2aef":je.REL,"\u2af0":je.REL,"\u2af1":je.REL,"\u2af2":je.REL,"\u2af3":je.REL,"\u2af4":je.BIN4,"\u2af5":je.BIN4,"\u2af6":je.BIN4,"\u2af7":je.REL,"\u2af8":je.REL,"\u2af9":je.REL,"\u2afa":je.REL,"\u2afb":je.BIN4,"\u2afd":je.BIN4,"\u2afe":je.BIN3,"\u2b45":je.RELSTRETCH,"\u2b46":je.RELSTRETCH,"\u3008":je.OPEN,"\u3009":je.CLOSE,"\ufe37":je.WIDEACCENT,"\ufe38":je.WIDEACCENT}};function qe(t,e){return t.length!==e.length?e.length-t.length:t===e?0:t<e?-1:1}function Je(t){return t.replace(/([\^$(){}.+*?\-|[\]:\\])/g,"\\$1")}function ze(t){return Array.from(t).map((t=>t.codePointAt(0)))}function $e(t){return String.fromCodePoint(...t)}function Ue(t){return!!t.match(/%\s*$/)}function Ge(t){return t.trim().split(/\s+/)}function Ke(t){return t.replace(/\\U(?:([0-9A-Fa-f]{4})|\{\s*([0-9A-Fa-f]{1,6})\s*\})|\\./g,((t,e,s)=>"\\\\"===t?"\\":String.fromCodePoint(parseInt(e||s,16))))}function _e(t){return`&#x${t.codePointAt(0).toString(16).toUpperCase()};`}Xe.infix["^"]=je.WIDEREL,Xe.infix._=je.WIDEREL,Xe.infix["\u2adc"]=je.REL;class Ve extends xe{constructor(){super(...arguments),this._texClass=null,this.lspace=5/18,this.rspace=5/18}get texClass(){return null===this._texClass?this.getOperatorDef(this.getText())[2]:this._texClass}set texClass(t){this._texClass=t}get kind(){return"mo"}get isEmbellished(){return!0}coreParent(){let t=null,e=this;const s=this.factory.getNodeClass("math");for(;e&&e.isEmbellished&&e.coreMO()===this&&!(e instanceof s);)t=e,e=e.parent;return t||this}coreText(t){if(!t)return"";if(t.isEmbellished)return t.coreMO().getText();for(;((t.isKind("mrow")||t.isKind("TeXAtom")||t.isKind("mstyle")||t.isKind("mphantom"))&&1===t.childNodes.length||t.isKind("munderover"))&&t.childNodes[0];)t=t.childNodes[0];return t.isToken?t.getText():""}hasSpacingAttributes(){return this.attributes.isSet("lspace")||this.attributes.isSet("rspace")}get isAccent(){let t=!1;const e=this.coreParent().parent;if(e){const s=e.isKind("mover")?e.childNodes[e.over].coreMO()?"accent":"":e.isKind("munder")?e.childNodes[e.under].coreMO()?"accentunder":"":e.isKind("munderover")?this===e.childNodes[e.over].coreMO()?"accent":this===e.childNodes[e.under].coreMO()?"accentunder":"":"";if(s){t=void 0!==e.attributes.getExplicit(s)?t:this.attributes.get("accent")}}return t}setTeXclass(t){const{form:e,fence:s}=this.attributes.getList("form","fence");return void 0===this.getProperty("texClass")&&this.hasSpacingAttributes()?null:(s&&this.texClass===Le.REL&&("prefix"===e&&(this.texClass=Le.OPEN),"postfix"===e&&(this.texClass=Le.CLOSE)),this.adjustTeXclass(t))}adjustTeXclass(t){const e=this.texClass;let s=this.prevClass;if(e===Le.NONE)return t;if(t?(!t.getProperty("autoOP")||e!==Le.BIN&&e!==Le.REL||(s=t.texClass=Le.ORD),s=this.prevClass=t.texClass||Le.ORD,this.prevLevel=this.attributes.getInherited("scriptlevel")):s=this.prevClass=Le.NONE,e!==Le.BIN||s!==Le.NONE&&s!==Le.BIN&&s!==Le.OP&&s!==Le.REL&&s!==Le.OPEN&&s!==Le.PUNCT)if(s!==Le.BIN||e!==Le.REL&&e!==Le.CLOSE&&e!==Le.PUNCT){if(e===Le.BIN){let t=null,e=this.parent;for(;e&&e.parent&&e.isEmbellished&&(1===e.childNodes.length||!e.isKind("mrow")&&e.core()===t);)t=e,e=e.parent;t=t||this,e.childNodes[e.childNodes.length-1]===t&&(this.texClass=Le.ORD)}}else t.texClass=this.prevClass=Le.ORD;else this.texClass=Le.ORD;return this}setInheritedAttributes(t={},e=!1,s=0,i=!1){super.setInheritedAttributes(t,e,s,i);const r=this.getText();this.checkOperatorTable(r),this.checkPseudoScripts(r),this.checkPrimes(r),this.checkMathAccent(r)}getOperatorDef(t){const[e,s,i]=this.handleExplicitForm(this.getForms());this.attributes.setInherited("form",e);const r=this.constructor,n=r.OPTABLE,a=n[e][t]||n[s][t]||n[i][t];if(a)return a;this.setProperty("noDictDef",!0);const o=this.attributes.get("movablelimits");if((!!t.match(r.opPattern)||o)&&void 0===this.getProperty("texClass"))return Pe(1,2,Le.OP);const l=We(t),[h,c]=r.MMLSPACING[l[2]];return Pe(h,c,l[2])}checkOperatorTable(t){const e=this.getOperatorDef(t);void 0===this.getProperty("texClass")&&(this.texClass=e[2]);for(const t of Object.keys(e[3]||{}))this.attributes.setInherited(t,e[3][t]);this.lspace=((e[0]||-1)+1)/18,this.rspace=((e[1]||-1)+1)/18}getForms(){let t=null,e=this.parent,s=this.Parent;for(;s&&s.isEmbellished;)t=e,e=s.parent,s=s.Parent;if(t=t||this,e&&e.isKind("mrow")&&1!==e.nonSpaceLength()){if(e.firstNonSpace()===t)return["prefix","infix","postfix"];if(e.lastNonSpace()===t)return["postfix","infix","prefix"]}return["infix","prefix","postfix"]}handleExplicitForm(t){if(this.attributes.isSet("form")){const e=this.attributes.get("form");t=[e].concat(t.filter((t=>t!==e)))}return t}checkPseudoScripts(t){const e=this.constructor.pseudoScripts;if(!t.match(e))return;const s=this.coreParent().Parent,i=!s||!(s.isKind("msubsup")&&!s.isKind("msub"));this.setProperty("pseudoscript",i),i&&(this.attributes.setInherited("lspace",0),this.attributes.setInherited("rspace",0))}checkPrimes(t){const e=this.constructor.primes;if(!t.match(e))return;const s=this.constructor.remapPrimes,i=$e(ze(t).map((t=>s[t])));this.setProperty("primes",i)}checkMathAccent(t){const e=this.Parent;if(void 0!==this.getProperty("mathaccent")||!e||!e.isKind("munderover"))return;const[s,i,r]=e.childNodes;if(s.isEmbellished&&s.coreMO()===this)return;const n=!(!i||!i.isEmbellished||i.coreMO()!==this),a=!(!r||!r.isEmbellished||i.coreMO()!==this);(n||a)&&(this.isMathAccent(t)?this.setProperty("mathaccent",!0):this.isMathAccentWithWidth(t)&&this.setProperty("mathaccent",!1))}isMathAccent(t=this.getText()){const e=this.constructor.mathaccents;return!!t.match(e)}isMathAccentWithWidth(t=this.getText()){const e=this.constructor.mathaccentsWithWidth;return!!t.match(e)}}Ve.defaults=Object.assign(Object.assign({},xe.defaults),{form:"infix",fence:!1,separator:!1,lspace:"thickmathspace",rspace:"thickmathspace",stretchy:!1,symmetric:!1,maxsize:"infinity",minsize:"0em",largeop:!1,movablelimits:!1,accent:!1,linebreak:"auto",lineleading:"100%",linebreakstyle:"before",indentalign:"auto",indentshift:"0",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),Ve.MMLSPACING=Fe,Ve.OPTABLE=Xe,Ve.pseudoScripts=new RegExp(["^[\"'*`","\xaa","\xb0","\xb2-\xb4","\xb9","\xba","\u2018-\u201f","\u2032-\u2037\u2057","\u2070\u2071","\u2074-\u207f","\u2080-\u208e","]+$"].join("")),Ve.primes=new RegExp(["^[\"'","\u2018-\u201f","]+$"].join("")),Ve.opPattern=/^[a-zA-Z]{2,}$/,Ve.remapPrimes={34:8243,39:8242,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},Ve.mathaccents=new RegExp(["^[","\xb4\u0301\u02ca","`\u0300\u02cb","\xa8\u0308","~\u0303\u02dc","\xaf\u0304\u02c9","\u02d8\u0306","\u02c7\u030c","^\u0302\u02c6","\u20d0\u20d1","\u20d6\u20d7\u20e1","\u02d9\u0307","\u02da\u030a","\u20db","\u20dc","]$"].join("")),Ve.mathaccentsWithWidth=new RegExp(["^[","\u2190\u2192\u2194","\u23dc\u23dd","\u23de\u23df","]$"].join(""));class Ye extends xe{constructor(){super(...arguments),this.texclass=Le.ORD}get kind(){return"mtext"}get isSpacelike(){return!!this.getText().match(/^\s*$/)&&!this.attributes.hasOneOf(Ye.NONSPACELIKE)}}Ye.NONSPACELIKE=["style","mathbackground","background"],Ye.defaults=Object.assign({},xe.defaults);class Ze extends xe{constructor(){super(...arguments),this.texclass=Le.NONE}setTeXclass(t){return t}get kind(){return"mspace"}get arity(){return 0}get isSpacelike(){return!this.attributes.hasExplicit("linebreak")&&this.canBreak}get hasNewline(){const t=this.attributes.get("linebreak");return this.canBreak&&("newline"===t||"indentingnewline"===t)}get canBreak(){return!this.attributes.hasOneOf(Ze.NONSPACELIKE)&&"-"!==String(this.attributes.get("width")).trim().charAt(0)}}Ze.NONSPACELIKE=["height","depth","style","mathbackground","background"],Ze.defaults=Object.assign(Object.assign({},xe.defaults),{width:"0em",height:"0ex",depth:"0ex",linebreak:"auto",indentshift:"auto",indentalign:"auto",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"});class Qe extends xe{constructor(){super(...arguments),this.texclass=Le.ORD}get kind(){return"ms"}}Qe.defaults=Object.assign(Object.assign({},xe.defaults),{lquote:'"',rquote:'"'});class ts extends Oe{constructor(){super(...arguments),this._core=null}get kind(){return"mrow"}get isSpacelike(){for(const t of this.childNodes)if(!t.isSpacelike)return!1;return!0}get isEmbellished(){let t=!1,e=0;for(const s of this.childNodes){if(s)if(s.isEmbellished){if(t)return!1;t=!0,this._core=e}else if(!s.isSpacelike)return!1;e++}return t}core(){return this.isEmbellished&&null!=this._core?this.childNodes[this._core]:this}coreMO(){return this.isEmbellished&&null!=this._core?this.childNodes[this._core].coreMO():this}nonSpaceLength(){let t=0;for(const e of this.childNodes)e&&!e.isSpacelike&&t++;return t}firstNonSpace(){for(const t of this.childNodes)if(t&&!t.isSpacelike)return t;return null}lastNonSpace(){let t=this.childNodes.length;for(;--t>=0;){const e=this.childNodes[t];if(e&&!e.isSpacelike)return e}return null}setTeXclass(t){if(null!=this.getProperty("open")||null!=this.getProperty("close")){this.getPrevClass(t),t=null;for(const e of this.childNodes)t=e.setTeXclass(t);return null==this.texClass&&(this.texClass=Le.INNER),this}for(const e of this.childNodes)t=e.setTeXclass(t);return this.childNodes[0]&&this.updateTeXclass(this.childNodes[0]),t}}ts.defaults=Object.assign({},Oe.defaults);class es extends ts{get kind(){return"inferredMrow"}get isInferred(){return!0}get notParent(){return!0}toString(){return"["+this.childNodes.join(",")+"]"}}es.defaults=ts.defaults;class ss extends ve{get kind(){return"mfrac"}get arity(){return 2}get linebreakContainer(){return!0}get linebreakAlign(){return""}setTeXclass(t){this.getPrevClass(t);for(const t of this.childNodes)t.setTeXclass(null);return this}setChildInheritedAttributes(t,e,s,i){(!e||s>0)&&s++;const r=this.attributes.get("numalign"),n=this.attributes.get("denomalign"),a=this.addInheritedAttributes(Object.assign({},t),{numalign:r,indentshift:"0",indentalignfirst:r,indentshiftfirst:"0",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),o=this.addInheritedAttributes(Object.assign({},t),{denalign:n,indentshift:"0",indentalignfirst:n,indentshiftfirst:"0",indentalignlast:"indentalign",indentshiftlast:"indentshift"});this.childNodes[0].setInheritedAttributes(a,!1,s,i),this.childNodes[1].setInheritedAttributes(o,!1,s,!0)}}ss.defaults=Object.assign(Object.assign({},ve.defaults),{linethickness:"medium",numalign:"center",denomalign:"center",bevelled:!1});class is extends Oe{constructor(){super(...arguments),this.texclass=Le.ORD}get kind(){return"msqrt"}get arity(){return-1}get linebreakContainer(){return!0}setTeXclass(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this}setChildInheritedAttributes(t,e,s,i){this.childNodes[0].setInheritedAttributes(t,e,s,!0)}}is.defaults=Object.assign(Object.assign({},Oe.defaults),{"data-vertical-align":"bottom"});class rs extends Oe{constructor(){super(...arguments),this.texclass=Le.ORD}get kind(){return"mroot"}get arity(){return 2}get linebreakContainer(){return!0}setTeXclass(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this.childNodes[1].setTeXclass(null),this}setChildInheritedAttributes(t,e,s,i){this.childNodes[0].setInheritedAttributes(t,e,s,!0),this.childNodes[1].setInheritedAttributes(t,!1,s+2,i)}}rs.defaults=Object.assign(Object.assign({},Oe.defaults),{"data-vertical-align":"bottom"});class ns extends Ae{get kind(){return"mstyle"}get notParent(){return this.childNodes[0]&&1===this.childNodes[0].childNodes.length}setInheritedAttributes(t={},e=!1,s=0,i=!1){this.attributes.setInherited("displaystyle",e),this.attributes.setInherited("scriptlevel",s),super.setInheritedAttributes(t,e,s,i)}setChildInheritedAttributes(t,e,s,i){let r=this.attributes.getExplicit("scriptlevel");null!=r&&(r=r.toString(),r.match(/^\s*[-+]/)?s+=parseInt(r):s=parseInt(r),i=!1);const n=this.attributes.getExplicit("displaystyle");null!=n&&(e=!0===n,i=!1);const a=this.attributes.getExplicit("data-cramped");null!=a&&(i=a),t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),this.childNodes[0].setInheritedAttributes(t,e,s,i)}}ns.defaults=Object.assign(Object.assign({},Ae.defaults),{scriptlevel:ge,displaystyle:ge,scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:".4em",mathbackground:ge,mathcolor:ge,dir:ge,infixlinebreakstyle:"before"});class as extends Oe{constructor(){super(...arguments),this.texclass=Le.ORD}get kind(){return"merror"}get arity(){return-1}get linebreakContainer(){return!0}}as.defaults=Object.assign({},Oe.defaults);class os extends Ae{get kind(){return"mpadded"}get linebreakContainer(){return!0}setTeXclass(t){return this.getProperty("vbox")?(this.getPrevClass(t),this.texClass=Le.ORD,this.childNodes[0].setTeXclass(null),this):super.setTeXclass(t)}}os.defaults=Object.assign(Object.assign({},Ae.defaults),{width:"",height:"",depth:"",lspace:0,voffset:0});class ls extends Ae{constructor(){super(...arguments),this.texclass=Le.ORD}get kind(){return"mphantom"}}ls.defaults=Object.assign({},Ae.defaults);class hs extends Oe{constructor(){super(...arguments),this.texclass=Le.INNER,this.separators=[],this.open=null,this.close=null}get kind(){return"mfenced"}setTeXclass(t){this.getPrevClass(t),this.open&&(t=this.open.setTeXclass(t)),this.childNodes[0]&&(t=this.childNodes[0].setTeXclass(t));for(let e=1,s=this.childNodes.length;e<s;e++)this.separators[e-1]&&(t=this.separators[e-1].setTeXclass(t)),this.childNodes[e]&&(t=this.childNodes[e].setTeXclass(t));return this.close&&(t=this.close.setTeXclass(t)),this.updateTeXclass(this.open),t}setChildInheritedAttributes(t,e,s,i){this.addFakeNodes();for(const r of[this.open,this.close].concat(this.separators))r&&r.setInheritedAttributes(t,e,s,i);super.setChildInheritedAttributes(t,e,s,i)}addFakeNodes(){let{open:t,close:e,separators:s}=this.attributes.getList("open","close","separators");if(t=t.replace(/[ \t\n\r]/g,""),e=e.replace(/[ \t\n\r]/g,""),s=s.replace(/[ \t\n\r]/g,""),t&&(this.open=this.fakeNode(t,{fence:!0,form:"prefix"},Le.OPEN)),s){for(;s.length<this.childNodes.length-1;)s+=s.charAt(s.length-1);let t=0;for(const e of this.childNodes.slice(1))e&&this.separators.push(this.fakeNode(s.charAt(t++)))}e&&(this.close=this.fakeNode(e,{fence:!0,form:"postfix"},Le.CLOSE))}fakeNode(t,e={},s=null){const i=this.factory.create("text").setText(t),r=this.factory.create("mo",e,[i]);return r.texClass=s,r.parent=this,r}}hs.defaults=Object.assign(Object.assign({},Oe.defaults),{open:"(",close:")",separators:","});class cs extends Oe{constructor(){super(...arguments),this.texclass=Le.ORD}get kind(){return"menclose"}get arity(){return-1}get linebreakContainer(){return!0}setTeXclass(t){return t=this.childNodes[0].setTeXclass(t),this.updateTeXclass(this.childNodes[0]),t}}cs.defaults=Object.assign(Object.assign({},Oe.defaults),{notation:"longdiv"});class ds extends Oe{get kind(){return"maction"}get arity(){return 1}get selected(){const t=this.attributes.get("selection"),e=Math.max(1,Math.min(this.childNodes.length,t))-1;return this.childNodes[e]||this.factory.create("mrow")}get isEmbellished(){return this.selected.isEmbellished}get isSpacelike(){return this.selected.isSpacelike}core(){return this.selected.core()}coreMO(){return this.selected.coreMO()}verifyAttributes(t){super.verifyAttributes(t),"toggle"!==this.attributes.get("actiontype")&&this.attributes.hasExplicit("selection")&&this.attributes.unset("selection")}setTeXclass(t){"tooltip"===this.attributes.get("actiontype")&&this.childNodes[1]&&this.childNodes[1].setTeXclass(null);const e=this.selected;return t=e.setTeXclass(t),this.updateTeXclass(e),t}nextToggleSelection(){let t=Math.max(1,parseInt(this.attributes.get("selection"))+1);t>this.childNodes.length&&(t=1),this.attributes.set("selection",t)}setChildInheritedAttributes(t,e,s,i){var r,n;"tooltip"===this.attributes.get("actiontype").toLowerCase()?(null===(r=this.childNodes[0])||void 0===r||r.setInheritedAttributes(t,e,s,i),null===(n=this.childNodes[1])||void 0===n||n.setInheritedAttributes(t,!1,1,!1)):super.setChildInheritedAttributes(t,e,s,i)}}ds.defaults=Object.assign(Object.assign({},Oe.defaults),{actiontype:"toggle",selection:1});class us extends ve{get kind(){return"msubsup"}get arity(){return 3}get base(){return 0}get sub(){return 1}get sup(){return 2}setChildInheritedAttributes(t,e,s,i){const r=this.childNodes;r[0].setInheritedAttributes(t,e,s,i),r[1].setInheritedAttributes(t,!1,s+1,i||1===this.sub),r[2]&&r[2].setInheritedAttributes(t,!1,s+1,i||2===this.sub)}}us.defaults=Object.assign(Object.assign({},ve.defaults),{subscriptshift:"",superscriptshift:""});class ps extends us{get kind(){return"msub"}get arity(){return 2}}ps.defaults=Object.assign({},us.defaults);class Es extends us{get kind(){return"msup"}get arity(){return 2}get sup(){return 1}get sub(){return 2}}Es.defaults=Object.assign({},us.defaults);class ms extends ve{get kind(){return"munderover"}get arity(){return 3}get base(){return 0}get under(){return 1}get over(){return 2}get linebreakContainer(){return!0}setChildInheritedAttributes(t,e,s,i){const r=this.childNodes;r[0].setInheritedAttributes(t,e,s,i||!!r[this.over]);const n=!(e||!r[0].coreMO().attributes.get("movablelimits")),a=this.constructor.ACCENTS;r[1].setInheritedAttributes(t,!1,this.getScriptlevel(a[1],n,s),i||1===this.under),this.setInheritedAccent(1,a[1],e,s,i,n),r[2]&&(r[2].setInheritedAttributes(t,!1,this.getScriptlevel(a[2],n,s),i||2===this.under),this.setInheritedAccent(2,a[2],e,s,i,n))}getScriptlevel(t,e,s){return!e&&this.attributes.get(t)||s++,s}setInheritedAccent(t,e,s,i,r,n){const a=this.childNodes[t];if(!this.attributes.hasExplicit(e)&&a.isEmbellished){const t=a.coreMO().attributes.get("accent");this.attributes.setInherited(e,t),t!==this.attributes.getDefault(e)&&a.setInheritedAttributes({},s,this.getScriptlevel(e,n,i),r)}}}ms.defaults=Object.assign(Object.assign({},ve.defaults),{accent:!1,accentunder:!1,align:"center"}),ms.ACCENTS=["","accentunder","accent"];class gs extends ms{get kind(){return"munder"}get arity(){return 2}}gs.defaults=Object.assign({},ms.defaults);class fs extends ms{get kind(){return"mover"}get arity(){return 2}get over(){return 1}get under(){return 2}}fs.defaults=Object.assign({},ms.defaults),fs.ACCENTS=["","accent","accentunder"];class Rs extends us{get kind(){return"mmultiscripts"}get arity(){return 1}setChildInheritedAttributes(t,e,s,i){this.childNodes[0].setInheritedAttributes(t,e,s,i);let r=!1;for(let e=1,n=0;e<this.childNodes.length;e++){const a=this.childNodes[e];if(a.isKind("mprescripts")){if(!r&&(r=!0,e%2==0)){const t=this.factory.create("none");this.childNodes.splice(e,0,t),t.parent=this,e++}}else{const e=i||n%2==0;a.setInheritedAttributes(t,!1,s+1,e),n++}}this.childNodes.length%2==(r?1:0)&&(this.appendChild(this.factory.create("none")),this.childNodes[this.childNodes.length-1].setInheritedAttributes(t,!1,s+1,i))}verifyChildren(t){let e=!1;const s=t.fixMmultiscripts;for(let i=0;i<this.childNodes.length;i++){const r=this.childNodes[i];r.isKind("mprescripts")&&(e?r.mError(r.kind+" can only appear once in "+this.kind,t,!0):(e=!0,i%2!=0||s||this.mError("There must be an equal number of prescripts of each type",t)))}this.childNodes.length%2!=(e?1:0)||s||this.mError("There must be an equal number of scripts of each type",t),super.verifyChildren(t)}}Rs.defaults=Object.assign({},us.defaults);class Ns extends Oe{get kind(){return"mprescripts"}get arity(){return 0}verifyTree(t){super.verifyTree(t),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",t,!0)}}Ns.defaults=Object.assign({},Oe.defaults);class Ls extends Oe{get kind(){return"none"}get arity(){return 0}verifyTree(t){super.verifyTree(t),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",t,!0)}}Ls.defaults=Object.assign({},Oe.defaults);class bs extends Oe{constructor(){super(...arguments),this.properties={useHeight:!0},this.texclass=Le.ORD}get kind(){return"mtable"}get linebreakContainer(){return!0}get linebreakAlign(){return""}setInheritedAttributes(t,e,s,i){for(const e of Te)t[e]&&this.attributes.setInherited(e,t[e][1]),this.attributes.hasExplicit(e)&&this.attributes.unset(e);super.setInheritedAttributes(t,e,s,i)}setChildInheritedAttributes(t,e,s,i){for(const t of this.childNodes)t.isKind("mtr")||this.replaceChild(this.factory.create("mtr"),t).appendChild(t);e=!(!this.attributes.getExplicit("displaystyle")&&!this.attributes.getDefault("displaystyle")),t=this.addInheritedAttributes(t,{columnalign:this.attributes.get("columnalign"),rowalign:"center","data-break-align":this.attributes.get("data-break-align")});const r=this.attributes.getExplicit("data-cramped"),n=Ge(this.attributes.get("rowalign"));for(const i of this.childNodes)t.rowalign[1]=n.shift()||t.rowalign[1],i.setInheritedAttributes(t,e,s,!!r)}verifyChildren(t){let e=null;const s=this.factory;for(let i=0;i<this.childNodes.length;i++){const r=this.childNodes[i];if(r.isKind("mtr"))e=null;else{const n=r.isKind("mtd");if(e?(this.removeChild(r),i--):e=this.replaceChild(s.create("mtr"),r),e.appendChild(n?r:s.create("mtd",{},[r])),!t.fixMtables){r.parent.removeChild(r),r.parent=this,n&&e.appendChild(s.create("mtd"));const i=r.mError("Children of "+this.kind+" must be mtr or mlabeledtr",t,n);e.childNodes[e.childNodes.length-1].appendChild(i)}}}super.verifyChildren(t)}setTeXclass(t){this.getPrevClass(t);for(const t of this.childNodes)t.setTeXclass(null);return this}}bs.defaults=Object.assign(Object.assign({},Oe.defaults),{align:"axis",rowalign:"baseline",columnalign:"center",groupalign:"{left}",alignmentscope:!0,columnwidth:"auto",width:"auto",rowspacing:"1ex",columnspacing:".8em",rowlines:"none",columnlines:"none",frame:"none",framespacing:"0.4em 0.5ex",equalrows:!1,equalcolumns:!1,displaystyle:!1,side:"right",minlabelspacing:"0.8em","data-break-align":"top"});class ys extends Oe{get kind(){return"mtr"}get linebreakContainer(){return!0}get linebreakAlign(){return""}setChildInheritedAttributes(t,e,s,i){for(const t of this.childNodes)t.isKind("mtd")||this.replaceChild(this.factory.create("mtd"),t).appendChild(t);const r=Ge(this.attributes.get("columnalign")),n=Ge(this.attributes.get("data-break-align"));1===this.arity&&(r.unshift(this.parent.attributes.get("side")),n.unshift("top")),t=this.addInheritedAttributes(t,{rowalign:this.attributes.get("rowalign"),columnalign:"center","data-break-align":"top"});for(const a of this.childNodes)t.columnalign[1]=r.shift()||t.columnalign[1],t["data-vertical-align"]=[this.kind,n.shift()||t["data-break-align"][1]],a.setInheritedAttributes(t,e,s,i)}verifyChildren(t){if(!this.parent||this.parent.isKind("mtable")){for(const e of this.childNodes)if(!e.isKind("mtd")){this.replaceChild(this.factory.create("mtd"),e).appendChild(e),t.fixMtables||e.mError("Children of "+this.kind+" must be mtd",t)}super.verifyChildren(t)}else this.mError(this.kind+" can only be a child of an mtable",t,!0)}setTeXclass(t){this.getPrevClass(t);for(const t of this.childNodes)t.setTeXclass(null);return this}}ys.defaults=Object.assign(Object.assign({},Oe.defaults),{rowalign:ge,columnalign:ge,groupalign:ge,"data-break-align":"top"});class Cs extends ys{get kind(){return"mlabeledtr"}get arity(){return 1}}class Is extends ve{get kind(){return"mtd"}get arity(){return-1}get linebreakContainer(){return!0}get linebreakAlign(){return"columnalign"}verifyChildren(t){!this.parent||this.parent.isKind("mtr")?super.verifyChildren(t):this.mError(this.kind+" can only be a child of an mtr or mlabeledtr",t,!0)}setTeXclass(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this}}Is.defaults=Object.assign(Object.assign({},ve.defaults),{rowspan:1,columnspan:1,rowalign:ge,columnalign:ge,groupalign:ge,"data-vertical-align":"top"});class Ts extends Ae{get kind(){return"maligngroup"}get isSpacelike(){return!0}setChildInheritedAttributes(t,e,s,i){t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),super.setChildInheritedAttributes(t,e,s,i)}}Ts.defaults=Object.assign(Object.assign({},Ae.defaults),{groupalign:ge});class Os extends Oe{get kind(){return"malignmark"}get arity(){return 0}get isSpacelike(){return!0}}Os.defaults=Object.assign(Object.assign({},Oe.defaults),{edge:"left"});class xs extends xe{constructor(){super(...arguments),this.texclass=Le.ORD}get kind(){return"mglyph"}verifyAttributes(t){const{src:e,fontfamily:s,index:i}=this.attributes.getList("src","fontfamily","index");""!==e||""!==s&&""!==i?super.verifyAttributes(t):this.mError("mglyph must have either src or fontfamily and index attributes",t,!0)}}xs.defaults=Object.assign(Object.assign({},xe.defaults),{alt:"",src:"",index:"",width:"auto",height:"auto",valign:"0em"});class As extends ve{get kind(){return"semantics"}get arity(){return 1}get notParent(){return!0}}As.defaults=Object.assign(Object.assign({},ve.defaults),{definitionUrl:null,encoding:null});class vs extends Oe{get kind(){return"annotation-xml"}setChildInheritedAttributes(){}}vs.defaults=Object.assign(Object.assign({},Oe.defaults),{definitionUrl:null,encoding:null,cd:"mathmlkeys",name:"",src:null});class Ds extends vs{constructor(){super(...arguments),this.properties={isChars:!0}}get kind(){return"annotation"}}Ds.defaults=Object.assign({},vs.defaults);class Ss extends ve{get kind(){return"TeXAtom"}get arity(){return-1}get notParent(){return!0}constructor(t,e,s){super(t,e,s),this.texclass=Le.ORD,this.setProperty("texClass",this.texClass)}setTeXclass(t){return this.childNodes[0].setTeXclass(null),this.adjustTeXclass(t)}adjustTeXclass(t){return t}}Ss.defaults=Object.assign({},ve.defaults),Ss.prototype.adjustTeXclass=Ve.prototype.adjustTeXclass;class Bs extends ve{get kind(){return"MathChoice"}get arity(){return 4}get notParent(){return!0}setInheritedAttributes(t,e,s,i){const r=e?0:Math.max(0,Math.min(s,2))+1,n=this.childNodes[r]||this.factory.create("mrow");this.parent.replaceChild(n,this),n.setInheritedAttributes(t,e,s,i)}}Bs.defaults=Object.assign({},ve.defaults);class Ms extends Be{get kind(){return"html"}getHTML(){return this.getXML()}setHTML(t,e=null){try{e.getAttribute(t,"data-mjx-hdw")}catch(s){t=e.node("span",{},[t])}return this.setXML(t,e)}getSerializedHTML(){return this.adaptor.outerHTML(this.xml)}textContent(){return this.adaptor.textContent(this.xml)}toString(){const t=this.adaptor.kind(this.xml);return`HTML=<${t}>...</${t}>`}verifyTree(t){!this.parent||this.parent.isToken||this.mError("HTML can only be a child of a token element",t,!0)}}const ks={[Me.prototype.kind]:Me,[ke.prototype.kind]:ke,[we.prototype.kind]:we,[Ve.prototype.kind]:Ve,[Ye.prototype.kind]:Ye,[Ze.prototype.kind]:Ze,[Qe.prototype.kind]:Qe,[ts.prototype.kind]:ts,[es.prototype.kind]:es,[ss.prototype.kind]:ss,[is.prototype.kind]:is,[rs.prototype.kind]:rs,[ns.prototype.kind]:ns,[as.prototype.kind]:as,[os.prototype.kind]:os,[ls.prototype.kind]:ls,[hs.prototype.kind]:hs,[cs.prototype.kind]:cs,[ds.prototype.kind]:ds,[ps.prototype.kind]:ps,[Es.prototype.kind]:Es,[us.prototype.kind]:us,[gs.prototype.kind]:gs,[fs.prototype.kind]:fs,[ms.prototype.kind]:ms,[Rs.prototype.kind]:Rs,[Ns.prototype.kind]:Ns,[Ls.prototype.kind]:Ls,[bs.prototype.kind]:bs,[Cs.prototype.kind]:Cs,[ys.prototype.kind]:ys,[Is.prototype.kind]:Is,[Ts.prototype.kind]:Ts,[Os.prototype.kind]:Os,[xs.prototype.kind]:xs,[As.prototype.kind]:As,[Ds.prototype.kind]:Ds,[vs.prototype.kind]:vs,[Ss.prototype.kind]:Ss,[Bs.prototype.kind]:Bs,[Se.prototype.kind]:Se,[Be.prototype.kind]:Be,[Ms.prototype.kind]:Ms};class ws extends me{get MML(){return this.node}}ws.defaultNodes=ks;class Ps{constructor(){this.bits=0}static allocate(...t){for(const e of t){if(this.has(e))throw new Error("Bit already allocated for "+e);if(this.next===Ps.MAXBIT)throw new Error("Maximum number of bits already allocated");this.names.set(e,this.next),this.next<<=1}}static has(t){return this.names.has(t)}set(t){this.bits|=this.getBit(t)}clear(t){this.bits&=~this.getBit(t)}isSet(t){return!!(this.bits&this.getBit(t))}reset(){this.bits=0}getBit(t){const e=this.constructor.names.get(t);if(!e)throw new Error("Unknown bit-field name: "+t);return e}}function js(...t){const e=class extends Ps{};return e.allocate(...t),e}function Hs(t){return new Promise((function e(s,i){const r=t=>{var r;t.retry instanceof Promise?t.retry.then((()=>e(s,i))).catch((t=>i(t))):(null===(r=t.restart)||void 0===r?void 0:r.isCallback)?MathJax.Callback.After((()=>e(s,i)),t.restart):i(t)};try{const e=t();e instanceof Promise?e.then((t=>s(t))).catch((t=>r(t))):s(e)}catch(t){r(t)}}))}function Ws(t){const e=new Error("MathJax retry -- an asynchronous action is required; try using one of the promise-based functions and await its resolution.");throw e.retry=t,e}Ps.MAXBIT=1<<31,Ps.next=1,Ps.names=new Map;var Fs=function(t,e,s,i){return new(s||(s=Promise))((function(r,n){function a(t){try{l(i.next(t))}catch(t){n(t)}}function o(t){try{l(i.throw(t))}catch(t){n(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(a,o)}l((i=i.apply(t,e||[])).next())}))};class Xs extends se{static create(t){const e=new this;for(const s of Object.keys(t)){const[i,r]=this.action(s,t[s]);r&&e.add(i,r)}return e}static action(t,e){let s,i,r=!0;const n=e[0];if(1===e.length||"boolean"==typeof e[1])2===e.length&&(r=e[1]),[s,i]=this.methodActions(t);else if("string"==typeof e[1])if("string"==typeof e[2]){4===e.length&&(r=e[3]);const[t,n]=e.slice(1);[s,i]=this.methodActions(t,n)}else 3===e.length&&(r=e[2]),[s,i]=this.methodActions(e[1]);else 4===e.length&&(r=e[3]),[s,i]=e.slice(1);return[{id:t,renderDoc:s,renderMath:i,convert:r},n]}static methodActions(t,e=t){return[e=>(t&&e[t](),!1),(t,s)=>(e&&t[e](s),!1)]}renderDoc(t,e=ue.UNPROCESSED){for(const s of this.items)if(s.priority>=e&&s.item.renderDoc(t))return}renderMath(t,e,s=ue.UNPROCESSED){for(const i of this.items)if(i.priority>=s&&i.item.renderMath(t,e))return}renderConvert(t,e,s=ue.LAST){for(const i of this.items){if(i.priority>s)return;if(i.item.convert&&i.item.renderMath(t,e))return}}findID(t){for(const e of this.items)if(e.item.id===t)return e.item;return null}}const qs={all:!1,processed:!1,inputJax:null,outputJax:null},Js={all:!0,processed:!0,inputJax:[],outputJax:[]};class zs extends re{compile(t){return null}}class $s extends ne{typeset(t,e=null){return null}escaped(t,e){return null}}class Us extends he{}class Gs{constructor(t,e,s){const i=this.constructor;this.document=t,this.options=Vt(_t({},i.OPTIONS),s),this.math=new(this.options.MathList||Us),this.renderActions=Xs.create(this.options.renderActions),this._actionPromises=[],this._readyPromise=Promise.resolve(),this.processed=new Gs.ProcessBits,this.outputJax=this.options.OutputJax||new $s;let r=this.options.InputJax||[new zs];Array.isArray(r)||(r=[r]),this.inputJax=r,this.adaptor=e,this.outputJax.setAdaptor(e),this.inputJax.map((t=>t.setAdaptor(e))),this.mmlFactory=this.options.MmlFactory||new ws,this.inputJax.map((t=>t.setMmlFactory(this.mmlFactory))),this.outputJax.initialize(),this.inputJax.map((t=>t.initialize()))}get kind(){return this.constructor.KIND}addRenderAction(t,...e){const[s,i]=Xs.action(t,e);this.renderActions.add(s,i)}removeRenderAction(t){const e=this.renderActions.findID(t);e&&this.renderActions.remove(e)}render(){return this.clearPromises(),this.renderActions.renderDoc(this),this}renderPromise(){return this.whenReady((()=>Hs((()=>Fs(this,void 0,void 0,(function*(){return this.render(),yield this.actionPromises(),this.clearPromises(),this}))))))}rerender(t=ue.RERENDER){return this.state(t-1),this.render(),this}rerenderPromise(t=ue.RERENDER){return this.whenReady((()=>Hs((()=>Fs(this,void 0,void 0,(function*(){return this.rerender(t),yield this.actionPromises(),this.clearPromises(),this}))))))}convert(t,e={}){let{format:s,display:i,end:r,ex:n,em:a,containerWidth:o,scale:l,family:h}=Vt({format:this.inputJax[0].name,display:!0,end:ue.LAST,em:16,ex:8,containerWidth:null,scale:1,family:""},e);null===o&&(o=80*n);const c=this.inputJax.reduce(((t,e)=>e.name===s?e:t),null),d=new this.options.MathItem(t,c,i);return d.start.node=this.adaptor.body(this.document),d.setMetrics(a,n,o,l),h&&this.outputJax.options.mtextInheritFont&&(d.outputData.mtextFamily=h),h&&this.outputJax.options.merrorInheritFont&&(d.outputData.merrorFamily=h),this.clearPromises(),d.convert(this,r),d.typesetRoot||d.root}convertPromise(t,e={}){return this.whenReady((()=>Hs((()=>Fs(this,void 0,void 0,(function*(){const s=this.convert(t,e);return yield this.actionPromises(),this.clearPromises(),s}))))))}whenReady(t){return this._readyPromise=this._readyPromise.catch((t=>{})).then((()=>{const e=this._readyPromise;this._readyPromise=Promise.resolve();const s=t(),i=this._readyPromise.then((()=>s));return this._readyPromise=e,i}))}actionPromises(){return Promise.all(this._actionPromises)}clearPromises(){this._actionPromises=[]}savePromise(t){this._actionPromises.push(t)}findMath(t=null){return this.processed.set("findMath"),this}compile(){if(!this.processed.isSet("compile")){const t=[];for(const e of this.math)this.compileMath(e),void 0!==e.inputData.recompile&&t.push(e);for(const e of t){const t=e.inputData.recompile;e.state(t.state),e.inputData.recompile=t,this.compileMath(e)}this.processed.set("compile")}return this}compileMath(t){try{t.compile(this)}catch(e){if(e.retry||e.restart)throw e;this.options.compileError(this,t,e),t.inputData.error=e}}compileError(t,e){t.root=this.mmlFactory.create("math",null,[this.mmlFactory.create("merror",{"data-mjx-error":e.message,title:e.message},[this.mmlFactory.create("mtext",null,[this.mmlFactory.create("text").setText("Math input error")])])]),t.display&&t.root.attributes.set("display","block"),t.inputData.error=e.message}typeset(){if(!this.processed.isSet("typeset")){for(const t of this.math)try{t.typeset(this)}catch(e){if(e.retry||e.restart)throw e;this.options.typesetError(this,t,e),t.outputData.error=e}this.processed.set("typeset")}return this}typesetError(t,e){t.typesetRoot=this.adaptor.node("mjx-container",{class:"MathJax mjx-output-error",jax:this.outputJax.name},[this.adaptor.node("span",{"data-mjx-error":e.message,title:e.message,style:{color:"red","background-color":"yellow","line-height":"normal"}},[this.adaptor.text("Math output error")])]),t.display&&this.adaptor.setAttributes(t.typesetRoot,{style:{display:"block",margin:"1em 0","text-align":"center"}}),t.outputData.error=e.message}getMetrics(){return this.processed.isSet("getMetrics")||(this.outputJax.getMetrics(this),this.processed.set("getMetrics")),this}updateDocument(){if(!this.processed.isSet("updateDocument")){for(const t of this.math.reversed())t.updateDocument(this);this.processed.set("updateDocument")}return this}removeFromDocument(t=!1){return this}state(t,e=!1){for(const s of this.math)s.state(t,e);return t<ue.INSERTED&&this.processed.clear("updateDocument"),t<ue.TYPESET&&(this.processed.clear("typeset"),this.processed.clear("getMetrics")),t<ue.COMPILED&&this.processed.clear("compile"),t<ue.FINDMATH&&this.processed.clear("findMath"),this}reset(t={processed:!0}){return(t=Vt(Object.assign({},qs),t)).all&&Object.assign(t,Js),t.processed&&this.processed.reset(),t.inputJax&&this.inputJax.forEach((e=>e.reset(...t.inputJax))),t.outputJax&&this.outputJax.reset(...t.outputJax),this}clear(){return this.reset(),this.math.clear(),this}done(){return Promise.resolve()}concat(t){return this.math.merge(t),this}clearMathItemsWithin(t){const e=this.getMathItemsWithin(t);for(const t of e.slice(0).reverse())t.clear();return this.math.remove(...e),e}getMathItemsWithin(t){Array.isArray(t)||(t=[t]);const e=this.adaptor,s=[],i=e.getElements(t,this.document);t:for(const t of this.math)for(const r of i)if(t.start.node&&e.contains(r,t.start.node)){s.push(t);continue t}return s}}Gs.KIND="MathDocument",Gs.OPTIONS={OutputJax:null,InputJax:null,MmlFactory:null,MathList:Us,MathItem:class extends de{},compileError:(t,e,s)=>{t.compileError(e,s)},typesetError:(t,e,s)=>{t.typesetError(e,s)},renderActions:zt({find:[ue.FINDMATH,"findMath","",!1],compile:[ue.COMPILED],metrics:[ue.METRICS,"getMetrics","",!1],typeset:[ue.TYPESET],update:[ue.INSERTED,"updateDocument",!1]})},Gs.ProcessBits=js("findMath","compile","getMetrics","typeset","updateDocument");class Ks extends Gs{}class _s{constructor(t,e=5){this.documentClass=Ks,this.adaptor=t,this.priority=e}get name(){return this.constructor.NAME}handlesDocument(t){return!1}create(t,e){return new this.documentClass(t,this.adaptor,e)}}_s.NAME="generic";class Vs extends se{register(t){return this.add(t,t.priority)}unregister(t){this.remove(t)}handlesDocument(t){for(const e of this){const s=e.item;if(s.handlesDocument(t))return s}throw new Error("Can't find handler for document")}document(t,e=null){return this.handlesDocument(t).create(t,e)}}class Ys{static methodName(t){return"visit"+(t.charAt(0).toUpperCase()+t.substring(1)).replace(/[^a-z0-9_]/gi,"_")+"Node"}constructor(t){this.nodeHandlers=new Map;for(const e of t.getKinds()){const t=this[Ys.methodName(e)];t&&this.nodeHandlers.set(e,t)}}visitTree(t,...e){return this.visitNode(t,...e)}visitNode(t,...e){return(this.nodeHandlers.get(t.kind)||this.visitDefault).call(this,t,...e)}visitDefault(t,...e){if("childNodes"in t)for(const s of t.childNodes)this.visitNode(s,...e)}setNodeHandler(t,e){this.nodeHandlers.set(t,e)}removeNodeHandler(t){this.nodeHandlers.delete(t)}}const Zs="data-mjx-";class Qs extends Ys{constructor(t=null){t||(t=new ws),super(t)}visitTextNode(t,...e){}visitXMLNode(t,...e){}visitHtmlNode(t,...e){}getKind(t){const e=t.kind;return te(e,this.constructor.rename,e)}getAttributeList(t){const e=this.constructor,s=te(t.kind,e.defaultAttributes,{}),i=Object.assign({},s,this.getDataAttributes(t),t.attributes.getAllAttributes()),r=e.variants;return Object.hasOwn(i,"mathvariant")&&(Object.hasOwn(r,i.mathvariant)?i.mathvariant=r[i.mathvariant]:t.getProperty("ignore-variant")&&delete i.mathvariant),i}getDataAttributes(t){const e={},s=t.attributes.getExplicit("mathvariant"),i=this.constructor.variants;s&&(t.getProperty("ignore-variant")||Object.hasOwn(i,s))&&this.setDataAttribute(e,"variant",s),t.getProperty("variantForm")&&this.setDataAttribute(e,"alternate","1"),t.getProperty("pseudoscript")&&this.setDataAttribute(e,"pseudoscript","true"),!1===t.getProperty("autoOP")&&this.setDataAttribute(e,"auto-op","false");const r=t.getProperty("vbox");r&&this.setDataAttribute(e,"vbox",r);const n=t.getProperty("scriptalign");n&&this.setDataAttribute(e,"script-align",n);const a=t.getProperty("mathaccent");void 0!==a&&(a&&!t.isMathAccent()||!a&&!t.isMathAccentWithWidth())&&this.setDataAttribute(e,"mathaccent",a.toString());const o=t.getProperty("texClass");if(void 0!==o){let s=!0;if(o===Le.OP&&t.isKind("mi")){const e=t.getText();s=!(e.length>1&&e.match(ke.operatorName))}s&&this.setDataAttribute(e,"texclass",o<0?"NONE":be[o])}return t.getProperty("smallmatrix")&&this.setDataAttribute(e,"smallmatrix","true"),e}setDataAttribute(t,e,s){t[Zs+e]=s}}Qs.rename={TeXAtom:"mrow"},Qs.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"},Qs.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}};class ti extends Qs{constructor(){super(...arguments),this.document=null}visitTree(t,e){this.document=e;const s=e.createElement("top");return this.visitNode(t,s),this.document=null,s.firstChild}visitTextNode(t,e){e.appendChild(this.document.createTextNode(t.getText()))}visitXMLNode(t,e){e.appendChild(t.getXML().cloneNode(!0))}visitHtmlNode(t,e){e.appendChild(t.getHTML().cloneNode(!0))}visitInferredMrowNode(t,e){for(const s of t.childNodes)this.visitNode(s,e)}visitDefault(t,e){const s=this.document.createElement(this.getKind(t));this.addAttributes(t,s);for(const e of t.childNodes)this.visitNode(e,s);e.appendChild(s)}addAttributes(t,e){const s=this.getAttributeList(t);for(const t of Object.keys(s))e.setAttribute(t,s[t].toString())}}class ei extends Qs{visitTree(t){return this.visitNode(t,"")}visitTextNode(t,e){return this.quoteHTML(t.getText())}visitXMLNode(t,e){return e+t.getSerializedXML()}visitHtmlNode(t,e){return t.getSerializedHTML()}visitInferredMrowNode(t,e){const s=[];for(const i of t.childNodes)s.push(this.visitNode(i,e));return s.join("\n")}visitAnnotationNode(t,e){const s=this.childNodeMml(t,"","");return`${e}<annotation${this.getAttributes(t)}>${s}</annotation>`}visitDefault(t,e){const s=this.getKind(t),[i,r]=t.isToken||0===t.childNodes.length?["",""]:["\n",e],n=this.childNodeMml(t,e+" ",i),a=n.match(/\S/)?i+n+r:"";return`${e}<${s}${this.getAttributes(t)}>${a}</${s}>`}childNodeMml(t,e,s){let i="";for(const r of t.childNodes)i+=this.visitNode(r,e)+s;return i}getAttributes(t){const e=[],s=this.getAttributeList(t);for(const t of Object.keys(s)){const i=String(s[t]);void 0!==i&&e.push(t+'="'+this.quoteHTML(i)+'"')}return e.length?" "+e.join(" "):""}quoteHTML(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/[\uD800-\uDBFF]./g,this.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,this.toEntity)}toEntity(t){return _e(t)}}class si{get kind(){return this.node.kind}constructor(t,e){this.factory=t,this.node=e}wrap(t){return this.factory.wrap(t)}walkTree(t,e){if(t(this,e),"childNodes"in this)for(const s of this.childNodes)s&&s.walkTree(t,e);return e}}class ii extends Ee{wrap(t,...e){return this.create(t.kind,t,...e)}}const ri="undefined"!=typeof window,ni={window:ri?window:null,document:ri?window.document:null,os:(()=>{if(ri&&window.navigator){const t=window.navigator.appVersion,e=[["Win","Windows"],["Mac","MacOS"],["X11","Unix"],["Linux","Unix"]];for(const[s,i]of e)if(t.includes(s))return i;if(window.navigator.userAgent.includes("Android"))return"Unix"}return"unknown"})()},ai={version:Ot,context:ni,handlers:new Vs,document:function(t,e){return ai.handlers.document(t,e)},handleRetriesFor:Hs,retryAfter:Ws,asyncLoad:null,asyncIsSynchronous:!1};class oi extends de{get adaptor(){return this.inputJax.adaptor}constructor(t,e,s=!0,i={node:null,n:0,delim:""},r={node:null,n:0,delim:""}){super(t,e,s,i,r)}updateDocument(t){if(this.state()<ue.INSERTED){if(this.inputJax.processStrings){let t=this.start.node;if(t===this.end.node)this.end.n&&this.end.n<this.adaptor.value(this.end.node).length&&this.adaptor.split(this.end.node,this.end.n),this.start.n&&(t=this.adaptor.split(this.start.node,this.start.n)),this.adaptor.replace(this.typesetRoot,t);else{for(this.start.n&&(t=this.adaptor.split(t,this.start.n));t!==this.end.node;){const e=this.adaptor.next(t);this.adaptor.remove(t),t=e}this.adaptor.insert(this.typesetRoot,t),this.end.n<this.adaptor.value(t).length&&this.adaptor.split(t,this.end.n),this.adaptor.remove(t)}}else this.adaptor.replace(this.typesetRoot,this.start.node);this.start.node=this.end.node=this.typesetRoot,this.start.n=this.end.n=0,this.state(ue.INSERTED)}}updateStyleSheet(t){t.addStyleSheet()}removeFromDocument(t=!1){if(super.removeFromDocument(t),this.state()>=ue.TYPESET){const e=this.adaptor,s=this.start.node;let i=e.text("");if(t){const t=this.start.delim+this.math+this.end.delim;if(this.inputJax.processStrings)i=e.text(t);else{const s=e.parse(t,"text/html");i=e.firstChild(e.body(s))}}e.parent(s)&&e.replace(i,s),this.start.node=this.end.node=i,this.start.n=this.end.n=0}}}class li extends he{}class hi{constructor(t=null){const e=this.constructor;this.options=Vt(_t({},e.OPTIONS),t),this.init(),this.getPatterns()}init(){this.strings=[],this.string="",this.snodes=[],this.nodes=[],this.stack=[]}getPatterns(){const t=$t(this.options.skipHtmlTags),e=$t(this.options.ignoreHtmlClass),s=$t(this.options.processHtmlClass);this.skipHtmlTags=new RegExp("^(?:"+t.join("|")+")$","i"),this.ignoreHtmlClass=new RegExp("(?:^| )(?:"+e.join("|")+")(?: |$)"),this.processHtmlClass=new RegExp("(?:^| )(?:"+s+")(?: |$)")}pushString(){this.string.match(/\S/)&&(this.strings.push(this.string),this.nodes.push(this.snodes)),this.string="",this.snodes=[]}extendString(t,e){this.snodes.push([t,e.length]),this.string+=e}handleText(t,e){return e||this.extendString(t,this.adaptor.value(t)),this.adaptor.next(t)}handleTag(t,e){if(!e){const e=this.options.includeHtmlTags[this.adaptor.kind(t)];e instanceof Function?this.extendString(t,e(t,this.adaptor)):this.extendString(t,e)}return this.adaptor.next(t)}handleContainer(t,e){this.pushString();const s=this.adaptor.getAttribute(t,"class")||"",i=this.adaptor.kind(t)||"",r=this.processHtmlClass.exec(s);let n=t;return!this.adaptor.firstChild(t)||this.adaptor.getAttribute(t,"data-MJX")||!r&&this.skipHtmlTags.exec(i)?n=this.adaptor.next(t):(this.adaptor.next(t)&&this.stack.push([this.adaptor.next(t),e]),n=this.adaptor.firstChild(t),e=(e||this.ignoreHtmlClass.exec(s))&&!r),[n,e]}handleOther(t,e){return this.pushString(),this.adaptor.next(t)}find(t){this.init();const e=this.adaptor.next(t);let s=!1;const i=this.options.includeHtmlTags;for(;t&&t!==e;){const e=this.adaptor.kind(t);"#text"===e?t=this.handleText(t,s):Object.hasOwn(i,e)?t=this.handleTag(t,s):e?[t,s]=this.handleContainer(t,s):t=this.handleOther(t,s),!t&&this.stack.length&&(this.pushString(),[t,s]=this.stack.pop())}this.pushString();const r=[this.strings,this.nodes];return this.init(),r}}hi.OPTIONS={skipHtmlTags:["script","noscript","style","textarea","pre","code","math","select","option","mjx-container"],includeHtmlTags:zt({br:"\n",wbr:"","#comment":""}),ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"},pe("STYLES",ue.INSERTED+1);class ci extends Gs{constructor(t,e,s){const[i,r]=Qt(s,hi.OPTIONS);super(t,e,i),this.domStrings=this.options.DomStrings||new hi(r),this.domStrings.adaptor=e,this.styles=[]}findPosition(t,e,s,i){const r=this.adaptor,n=1/(i[t].length||1);let a=t;for(const[o,l]of i[t]){if(e<=l&&"#text"===r.kind(o))return{i:a,node:o,n:Math.max(e,0),delim:s};e-=l,a+=n}return{node:null,n:0,delim:s}}mathItem(t,e,s){const i=t.math,r=this.findPosition(t.n,t.start.n,t.open,s),n=this.findPosition(t.n,t.end.n,t.close,s);return new this.options.MathItem(i,e,t.display,r,n)}findMath(t){if(!this.processed.isSet("findMath")){this.adaptor.document=this.document,t=Vt({elements:this.options.elements||[this.adaptor.body(this.document)]},t);const e=this.adaptor.getElements(t.elements,this.document);for(const t of this.inputJax){const s=t.processStrings?this.findMathFromStrings(t,e):this.findMathFromDOM(t,e);this.math.merge(s)}this.processed.set("findMath")}return this}findMathFromStrings(t,e){const s=[],i=[];for(const t of e){const[e,r]=this.domStrings.find(t);s.push(...e),i.push(...r)}const r=new this.options.MathList;for(const e of t.findMath(s))r.push(this.mathItem(e,t,i));return r}findMathFromDOM(t,e){const s=[];for(const i of e)for(const e of t.findMath(i))s.push(new this.options.MathItem(e.math,t,e.display,e.start,e.end));return new this.options.MathList(...s)}updateDocument(){return this.processed.isSet("updateDocument")||(this.addPageElements(),this.addStyleSheet(),super.updateDocument(),this.processed.set("updateDocument")),this}addPageElements(){const t=this.adaptor,e=t.body(this.document),s=this.documentPageElements();if(s){const i=t.firstChild(e);i?t.insert(s,i):t.append(e,s)}}addStyleSheet(){const t=this.documentStyleSheet(),e=this.adaptor;if(t&&!e.parent(t)){const s=e.head(this.document),i=this.findSheet(s,e.getAttribute(t,"id"));i?e.replace(t,i):e.append(s,t)}}findSheet(t,e){if(e)for(const s of this.adaptor.tags(t,"style"))if(this.adaptor.getAttribute(s,"id")===e)return s;return null}removeFromDocument(t=!1){if(this.processed.isSet("updateDocument"))for(const e of this.math)e.state()>=ue.INSERTED&&e.state(ue.TYPESET,t);return this.processed.clear("updateDocument"),this}documentStyleSheet(){return this.outputJax.styleSheet(this)}documentPageElements(){return this.outputJax.pageElements(this)}addStyles(t){this.styles.push(t),"insertStyles"in this.outputJax&&this.outputJax.insertStyles(t)}getStyles(){return this.styles}}ci.KIND="HTML",ci.OPTIONS=Object.assign(Object.assign({},Gs.OPTIONS),{renderActions:zt(Object.assign(Object.assign({},Gs.OPTIONS.renderActions),{styles:[ue.STYLES,"","updateStyleSheet",!1]})),MathList:li,MathItem:oi,DomStrings:null});class di extends _s{constructor(){super(...arguments),this.documentClass=ci}handlesDocument(t){const e=this.adaptor;if("string"==typeof t)try{t=e.parse(t,"text/html")}catch(t){}return t instanceof e.window.Document||t instanceof e.window.HTMLElement||t instanceof e.window.DocumentFragment}create(t,e){const s=this.adaptor;if("string"==typeof t)t=s.parse(t,"text/html");else if(t instanceof s.window.HTMLElement||t instanceof s.window.DocumentFragment){const e=t;t=s.parse("","text/html"),s.append(s.body(t),e)}return super.create(t,e)}}function ui(t){const e=new di(t);return ai.handlers.register(e),e}function pi(t){return ai.asyncLoad?new Promise(((e,s)=>{const i=ai.asyncLoad(t);i instanceof Promise?i.then((t=>e(t))).catch((t=>s(t))):e(i)})):Promise.reject(`Can't load '${t}': No mathjax.asyncLoad method specified`)}const Ei=1e6,mi={px:1,in:96,cm:96/2.54,mm:96/25.4},gi={em:1,ex:.431,pt:.1,pc:1.2,mu:1/18},fi={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:Ei};function Ri(t,e=0,s=1,i=16){if("string"!=typeof t&&(t=String(t)),""===t||null==t)return e;if(fi[t])return fi[t];const r=t.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!r||""===r[0])return e;const n=parseFloat(r[1]||"1"),a=r[2];return Object.hasOwn(mi,a)?n*mi[a]/i/s:Object.hasOwn(gi,a)?n*gi[a]:"%"===a?n/100*e:n*e}function Ni(t){return(100*t).toFixed(1).replace(/\.?0+$/,"")+"%"}function Li(t){return Math.abs(t)<.001?"0":t.toFixed(3).replace(/\.?0+$/,"")+"em"}function bi(t,e=-Ei,s=16){return t*=s,e&&t<e&&(t=e),Math.abs(t)<.1?"0":t.toFixed(1).replace(/\.0$/,"")+"px"}class yi{static zero(){return new yi({h:0,d:0,w:0})}static empty(){return new yi}constructor(t={w:0,h:-Ei,d:-Ei}){this.w=t.w||0,this.h="h"in t?t.h:-Ei,this.d="d"in t?t.d:-Ei,this.L=this.R=this.ic=this.oc=this.sk=this.dx=0,this.scale=this.rscale=1,this.pwidth=""}empty(){return this.w=0,this.h=this.d=-Ei,this}clean(){this.w===-Ei&&(this.w=0),this.h===-Ei&&(this.h=0),this.d===-Ei&&(this.d=0)}rescale(t){this.w*=t,this.h*=t,this.d*=t}combine(t,e=0,s=0){const i=t.rscale,r=e+i*(t.w+t.L+t.R),n=s+i*t.h,a=i*t.d-s;r>this.w&&(this.w=r),n>this.h&&(this.h=n),a>this.d&&(this.d=a)}append(t){const e=t.rscale;this.w+=e*(t.w+t.L+t.R),e*t.h>this.h&&(this.h=e*t.h),e*t.d>this.d&&(this.d=e*t.d)}updateFrom(t){this.h=t.h,this.d=t.d,this.w=t.w,t.pwidth&&(this.pwidth=t.pwidth)}copy(){const t=new yi;return Object.assign(t,this),t}}yi.fullWidth="100%",yi.boxSides=[["Top",0,"h"],["Right",1,"w"],["Bottom",2,"d"],["Left",3,"w"]];const Ci={loadMissingEntities:!0},Ii={ApplyFunction:"\u2061",Backslash:"\u2216",Because:"\u2235",Breve:"\u02d8",Cap:"\u22d2",CenterDot:"\xb7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",Congruent:"\u2261",ContourIntegral:"\u222e",Coproduct:"\u2210",Cross:"\u2a2f",Cup:"\u22d3",CupCap:"\u224d",Dagger:"\u2021",Del:"\u2207",Delta:"\u0394",Diamond:"\u22c4",DifferentialD:"\u2146",DotEqual:"\u2250",DoubleDot:"\xa8",DoubleRightTee:"\u22a8",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownLeftVector:"\u21bd",DownRightVector:"\u21c1",DownTee:"\u22a4",Downarrow:"\u21d3",Element:"\u2208",EqualTilde:"\u2242",Equilibrium:"\u21cc",Exists:"\u2203",ExponentialE:"\u2147",FilledVerySmallSquare:"\u25aa",ForAll:"\u2200",Gamma:"\u0393",Gg:"\u22d9",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Hacek:"\u02c7",Hat:"^",HumpDownHump:"\u224e",HumpEqual:"\u224f",Im:"\u2111",ImaginaryI:"\u2148",Integral:"\u222b",Intersection:"\u22c2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Lambda:"\u039b",Larr:"\u219e",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",LeftArrowRightArrow:"\u21c6",LeftCeiling:"\u2308",LeftDownVector:"\u21c3",LeftFloor:"\u230a",LeftRightArrow:"\u2194",LeftTee:"\u22a3",LeftTriangle:"\u22b2",LeftTriangleEqual:"\u22b4",LeftUpVector:"\u21bf",LeftVector:"\u21bc",Leftarrow:"\u21d0",Leftrightarrow:"\u21d4",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",Ll:"\u22d8",Lleftarrow:"\u21da",LongLeftArrow:"\u27f5",LongLeftRightArrow:"\u27f7",LongRightArrow:"\u27f6",Longleftarrow:"\u27f8",Longleftrightarrow:"\u27fa",Longrightarrow:"\u27f9",Lsh:"\u21b0",MinusPlus:"\u2213",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotLeftTriangle:"\u22ea",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotPrecedes:"\u2280",NotPrecedesSlantEqual:"\u22e0",NotRightTriangle:"\u22eb",NotRightTriangleEqual:"\u22ed",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsSlantEqual:"\u22e1",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotVerticalBar:"\u2224",Omega:"\u03a9",OverBar:"\u203e",OverBrace:"\u23de",PartialD:"\u2202",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",Product:"\u220f",Proportional:"\u221d",Psi:"\u03a8",Rarr:"\u21a0",Re:"\u211c",ReverseEquilibrium:"\u21cb",RightAngleBracket:"\u27e9",RightArrow:"\u2192",RightArrowLeftArrow:"\u21c4",RightCeiling:"\u2309",RightDownVector:"\u21c2",RightFloor:"\u230b",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTriangle:"\u22b3",RightTriangleEqual:"\u22b5",RightUpVector:"\u21be",RightVector:"\u21c0",Rightarrow:"\u21d2",Rrightarrow:"\u21db",Rsh:"\u21b1",Sigma:"\u03a3",SmallCircle:"\u2218",Sqrt:"\u221a",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Star:"\u22c6",Subset:"\u22d0",SubsetEqual:"\u2286",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",SuchThat:"\u220b",Sum:"\u2211",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22d1",Therefore:"\u2234",Theta:"\u0398",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",UnderBar:"_",UnderBrace:"\u23df",Union:"\u22c3",UnionPlus:"\u228e",UpArrow:"\u2191",UpDownArrow:"\u2195",UpTee:"\u22a5",Uparrow:"\u21d1",Updownarrow:"\u21d5",Upsilon:"\u03a5",Vdash:"\u22a9",Vee:"\u22c1",VerticalBar:"\u2223",VerticalTilde:"\u2240",Vvdash:"\u22aa",Wedge:"\u22c0",Xi:"\u039e",amp:"&",acute:"\xb4",aleph:"\u2135",alpha:"\u03b1",amalg:"\u2a3f",and:"\u2227",ang:"\u2220",angmsd:"\u2221",angsph:"\u2222",ape:"\u224a",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",beta:"\u03b2",beth:"\u2136",between:"\u226c",bigcirc:"\u25ef",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",blacklozenge:"\u29eb",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",bowtie:"\u22c8",boxdl:"\u2510",boxdr:"\u250c",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxur:"\u2514",bsol:"\\",bull:"\u2022",cap:"\u2229",check:"\u2713",chi:"\u03c7",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledR:"\xae",circledS:"\u24c8",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",clubs:"\u2663",colon:":",comp:"\u2201",ctdot:"\u22ef",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cup:"\u222a",curarr:"\u21b7",curlyvee:"\u22ce",curlywedge:"\u22cf",dagger:"\u2020",daleth:"\u2138",ddarr:"\u21ca",deg:"\xb0",delta:"\u03b4",digamma:"\u03dd",div:"\xf7",divideontimes:"\u22c7",dot:"\u02d9",doteqdot:"\u2251",dotplus:"\u2214",dotsquare:"\u22a1",dtdot:"\u22f1",ecir:"\u2256",efDot:"\u2252",egs:"\u2a96",ell:"\u2113",els:"\u2a95",empty:"\u2205",epsi:"\u03b5",epsiv:"\u03f5",erDot:"\u2253",eta:"\u03b7",eth:"\xf0",flat:"\u266d",fork:"\u22d4",frown:"\u2322",gEl:"\u2a8c",gamma:"\u03b3",gap:"\u2a86",gimel:"\u2137",gnE:"\u2269",gnap:"\u2a8a",gne:"\u2a88",gnsim:"\u22e7",gt:">",gtdot:"\u22d7",harrw:"\u21ad",hbar:"\u210f",hellip:"\u2026",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",imath:"\u0131",infin:"\u221e",intcal:"\u22ba",iota:"\u03b9",jmath:"\u0237",kappa:"\u03ba",kappav:"\u03f0",lEg:"\u2a8b",lambda:"\u03bb",lap:"\u2a85",larrlp:"\u21ab",larrtl:"\u21a2",lbrace:"{",lbrack:"[",le:"\u2264",leftleftarrows:"\u21c7",leftthreetimes:"\u22cb",lessdot:"\u22d6",lmoust:"\u23b0",lnE:"\u2268",lnap:"\u2a89",lne:"\u2a87",lnsim:"\u22e6",longmapsto:"\u27fc",looparrowright:"\u21ac",lowast:"\u2217",loz:"\u25ca",lt:"<",ltimes:"\u22c9",ltri:"\u25c3",macr:"\xaf",malt:"\u2720",mho:"\u2127",mu:"\u03bc",multimap:"\u22b8",nLeftarrow:"\u21cd",nLeftrightarrow:"\u21ce",nRightarrow:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",natur:"\u266e",nearr:"\u2197",nharr:"\u21ae",nlarr:"\u219a",not:"\xac",nrarr:"\u219b",nu:"\u03bd",nvDash:"\u22ad",nvdash:"\u22ac",nwarr:"\u2196",omega:"\u03c9",omicron:"\u03bf",or:"\u2228",osol:"\u2298",period:".",phi:"\u03c6",phiv:"\u03d5",pi:"\u03c0",piv:"\u03d6",prap:"\u2ab7",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",prime:"\u2032",psi:"\u03c8",quot:'"',rarrtl:"\u21a3",rbrace:"}",rbrack:"]",rho:"\u03c1",rhov:"\u03f1",rightrightarrows:"\u21c9",rightthreetimes:"\u22cc",ring:"\u02da",rmoust:"\u23b1",rtimes:"\u22ca",rtri:"\u25b9",scap:"\u2ab8",scnE:"\u2ab6",scnap:"\u2aba",scnsim:"\u22e9",sdot:"\u22c5",searr:"\u2198",sect:"\xa7",sharp:"\u266f",sigma:"\u03c3",sigmav:"\u03c2",simne:"\u2246",smile:"\u2323",spades:"\u2660",sub:"\u2282",subE:"\u2ac5",subnE:"\u2acb",subne:"\u228a",supE:"\u2ac6",supnE:"\u2acc",supne:"\u228b",swarr:"\u2199",tau:"\u03c4",theta:"\u03b8",thetav:"\u03d1",tilde:"\u02dc",times:"\xd7",triangle:"\u25b5",triangleq:"\u225c",upsi:"\u03c5",upuparrows:"\u21c8",veebar:"\u22bb",vellip:"\u22ee",weierp:"\u2118",xi:"\u03be",yen:"\xa5",zeta:"\u03b6",zigrarr:"\u21dd",nbsp:"\xa0",rsquo:"\u2019",lsquo:"\u2018"},Ti={};function Oi(t,e){Object.assign(Ii,t),Ti[e]=!0}function xi(t){delete Ii[t]}function Ai(t){return t.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,vi)}function vi(t,e){if("#"===e.charAt(0))return Di(e.slice(1));if(Ii[e])return Ii[e];if(Ci.loadMissingEntities){const t=e.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:e.charAt(0).toLowerCase();Ti[t]||(Ti[t]=!0,Ws(pi("./util/entities/"+t+".js")))}return t}function Di(t){const e="x"===t.charAt(0)?parseInt(t.slice(1),16):parseInt(t);return String.fromCodePoint(e)}class Si{get cssText(){return this.getStyleString()}constructor(t=null){this.styles={},this.addStyles(t)}addStyles(t){if(t)for(const e of Object.keys(t))this.styles[e]||(this.styles[e]={}),Object.assign(this.styles[e],t[e])}removeStyles(...t){for(const e of t)delete this.styles[e]}clear(){this.styles={}}getStyleString(){return this.getStyleRules().join("\n\n")}getStyleRules(){const t=Object.keys(this.styles),e=new Array(t.length);let s=0;for(const i of t)e[s++]=i+" {\n"+this.getStyleDefString(this.styles[i])+"\n}";return e}getStyleDefString(t){const e=Object.keys(t),s=new Array(e.length);let i=0;for(const r of e)s[i++]=" "+r+": "+t[r]+";";return s.join("\n")}}const Bi=["top","right","bottom","left"],Mi=["width","style","color"];function ki(t){const e=t.split(/((?:'[^']*'|"[^"]*"|,[\s\n]|[^\s\n])*)/g),s=[];for(;e.length>1;)e.shift(),s.push(e.shift());return s}function wi(t){const e=ki(this.styles[t]);0===e.length&&e.push(""),1===e.length&&e.push(e[0]),2===e.length&&e.push(e[0]),3===e.length&&e.push(e[1]);for(const s of qi.connect[t].children)this.setStyle(this.childName(t,s),e.shift())}const Pi=/^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,ji=/^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/;function Hi(t){const e={width:"",style:"",color:""};for(const s of ki(this.styles[t]))s.match(Pi)&&""===e.width?e.width=s:s.match(ji)&&""===e.style?e.style=s:e.color=s;for(const s of qi.connect[t].children)this.setStyle(this.childName(t,s),e[s])}function Wi(t){const e=[];for(const s of qi.connect[t].children){const i=this.styles[this.childName(t,s)];i&&e.push(i)}e.length?this.styles[t]=e.join(" "):delete this.styles[t]}const Fi={style:/^(?:normal|italic|oblique|inherit|initial|unset)$/,variant:new RegExp("^(?:"+["normal|none","inherit|initial|unset","common-ligatures|no-common-ligatures","discretionary-ligatures|no-discretionary-ligatures","historical-ligatures|no-historical-ligatures","contextual|no-contextual","(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)","small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","lining-nums|oldstyle-nums|proportional-nums|tabular-nums","diagonal-fractions|stacked-fractions","ordinal|slashed-zero","jis78|jis83|jis90|jis04|simplified|traditional","full-width|proportional-width","ruby"].join("|")+")$"),weight:/^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,stretch:new RegExp("^(?:"+["normal","(?:(?:ultra|extra|semi)-)?(?:condensed|expanded)","inherit|initial|unset"].join("|")+")$"),size:new RegExp("^(?:"+["xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller","[\\d.]+%|[\\d.]+[a-z]+","inherit|initial|unset"].join("|")+")(?:/(?:normal|[\\d.]+(?:%|[a-z]+)?))?$")};function Xi(t,e){for(const s of qi.connect[t].children){const i=this.childName(t,s);if(Array.isArray(e[s])){const t=e[s];t.length&&(this.styles[i]=t.join(" "))}else""!==e[s]&&(this.styles[i]=e[s])}}class qi{constructor(t=""){this.parse(t)}sanitizeValue(t){const e=this.constructor.pattern;if(!t.match(e.sanitize))return t;const s=(t=t.replace(e.value,"$1")).replace(/\\./g,"").replace(/(['"]).*?\1/g,"").replace(/[^'"]/g,"");return s.length&&(t+=s.charAt(0)),t}get cssText(){var t,e;const s=[];for(const i of Object.keys(this.styles)){const r=this.parentName(i),n=i.replace(/.*-/,"");this.styles[r]&&(null===(e=null===(t=qi.connect[r])||void 0===t?void 0:t.children)||void 0===e?void 0:e.includes(n))||s.push(`${i}: ${this.styles[i]};`)}return s.join(" ")}get styleList(){return Object.assign({},this.styles)}set(t,e){var s,i;for(t=this.normalizeName(t),this.setStyle(t,String(e)),qi.connect[t]&&!qi.connect[t].combine&&(this.combineChildren(t),delete this.styles[t]);t.match(/-/);){const e=t;if(t=this.parentName(t),!qi.connect[e]&&!(null===(i=null===(s=qi.connect[t])||void 0===s?void 0:s.children)||void 0===i?void 0:i.includes(e.substring(t.length+1))))break;qi.connect[t].combine.call(this,t)}}get(t){return t=this.normalizeName(t),Object.hasOwn(this.styles,t)?this.styles[t]:""}setStyle(t,e){this.styles[t]=this.sanitizeValue(e),qi.connect[t]&&qi.connect[t].children&&qi.connect[t].split.call(this,t),""===e&&delete this.styles[t]}combineChildren(t){const e=this.parentName(t);for(const s of qi.connect[t].children){const t=this.childName(e,s);qi.connect[t].combine.call(this,t)}}parentName(t){const e=t.replace(/-[^-]*$/,"");return t===e?"":e}childName(t,e){return e.match(/-/)?e:(qi.connect[t]&&!qi.connect[t].combine&&(e+=t.replace(/.*-/,"-"),t=this.parentName(t)),t+"-"+e)}normalizeName(t){return t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()))}parse(t=""){const e=this.constructor.pattern;this.styles={};const s=t.replace(/\n/g," ").replace(e.comment,"").split(e.style);for(;s.length>1;){const[t,e,i]=s.splice(0,3);if(t.match(/[^\s\n;]/))return;this.set(e,i)}}}function Ji(t){return t.reduce(((t,e)=>t+e),0)}function zi(t){return t.reduce(((t,e)=>Math.max(t,e)),0)}if(qi.pattern={sanitize:/['";]/,value:/^((:?'(?:\\.|[^'])*(?:'|$)|"(?:\\.|[^"])*(?:"|$)|\n|\\.|[^'";])*?)[\s\n]*(?:;|$).*/,style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'(?:\\.|[^'])*(?:'|$)|"(?:\\.|[^"])*(?:"|$)|\n|\\.|[^'";])*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g},qi.connect={padding:{children:Bi,split:wi,combine:function(t){const e=qi.connect[t].children,s=[];for(const i of e){const e=this.styles[t+"-"+i];if(!e)return void delete this.styles[t];s.push(e)}s[3]===s[1]&&(s.pop(),s[2]===s[0]&&(s.pop(),s[1]===s[0]&&s.pop())),this.styles[t]=s.join(" ")}},border:{children:Bi,split:function(t){for(const e of qi.connect[t].children)this.setStyle(this.childName(t,e),this.styles[t])},combine:function(t){const e=[...qi.connect[t].children],s=this.styles[this.childName(t,e.shift())];for(const i of e)if(this.styles[this.childName(t,i)]!==s)return void delete this.styles[t];this.styles[t]=s}},"border-top":{children:Mi,split:Hi,combine:Wi},"border-right":{children:Mi,split:Hi,combine:Wi},"border-bottom":{children:Mi,split:Hi,combine:Wi},"border-left":{children:Mi,split:Hi,combine:Wi},"border-width":{children:Bi,split:wi,combine:null},"border-style":{children:Bi,split:wi,combine:null},"border-color":{children:Bi,split:wi,combine:null},font:{children:["style","variant","weight","stretch","line-height","size","family"],split:function(t){const e=ki(this.styles[t]),s={style:"",variant:[],weight:"",stretch:"",size:"",family:"","line-height":""};for(const t of e){s.family||(s.family=t);for(const e of Object.keys(Fi))if((Array.isArray(s[e])||""===s[e])&&t.match(Fi[e]))if(s.family===t&&(s.family=""),"size"===e){const[i,r]=t.split(/\//);s[e]=i,r&&(s["line-height"]=r)}else""===s.size&&(Array.isArray(s[e])?s[e].push(t):""===s[e]&&(s[e]=t))}Xi.call(this,t,s),delete this.styles[t]},combine:function(t){}}},MathJax.loader&&MathJax.loader.checkVersion("core",Ot,"core"),St({_:{adaptors:{HTMLAdaptor:i,browserAdaptor:r},components:{global:e},core:{DOMAdaptor:s,FindMath:a,Handler:it,HandlerList:rt,InputJax:h,MathDocument:st,MathItem:p,MathList:u,MmlTree:{Attributes:g,MML:Z,MathMLVisitor:ot,MmlFactory:Q,MmlNode:R,MmlNodes:{HtmlNode:Y,TeXAtom:_,maction:H,maligngroup:$,malignmark:U,math:N,mathchoice:V,menclose:j,merror:M,mfenced:P,mfrac:v,mglyph:G,mi:L,mmultiscripts:X,mn:b,mo:I,mpadded:k,mphantom:w,mroot:S,mrow:A,ms:x,mspace:O,msqrt:D,mstyle:B,msubsup:W,mtable:q,mtd:z,mtext:T,mtr:J,munderover:F,semantics:K},MmlVisitor:at,OperatorDictionary:y,SerializedMmlVisitor:lt},OutputJax:c,Tree:{Factory:E,Node:f,NodeFactory:m,Visitor:nt,Wrapper:ht,WrapperFactory:ct}},handlers:{html_ts:Rt,html:{HTMLDocument:gt,HTMLDomStrings:mt,HTMLHandler:ft,HTMLMathItem:pt,HTMLMathList:Et}},mathjax:ut,util:{AsyncLoad:Nt,BBox:bt,BitField:tt,Entities:yt,FunctionList:l,LinkedList:d,Options:n,PrioritizedList:o,Retries:et,StyleJson:Ct,Styles:It,context:dt,lengths:Lt,numeric:Tt,string:C}}}),MathJax.startup&&(MathJax.startup.registerConstructor("HTMLHandler",di),MathJax.startup.registerConstructor("browserAdaptor",jt),MathJax.startup.useHandler("HTMLHandler"),MathJax.startup.useAdaptor("browserAdaptor")),MathJax.loader){const t=MathJax.config.loader;MathJax._.mathjax.mathjax.asyncLoad=e=>"node:"===e.substring(0,5)?t.require(e):MathJax.loader.load(e).then((t=>t[0]))}})(); |