(()=>{var __webpack_modules__={288(t){t.exports.p="/"},164(t,e,s){"use strict";var i={};s.r(i),s.d(i,{LiteElement:()=>f});var r={};s.r(r),s.d(r,{LiteDocument:()=>R});var n={};s.r(n),s.d(n,{LiteComment:()=>L,LiteText:()=>x});var o={};s.r(o),s.d(o,{LiteList:()=>b});var a={};s.r(a),s.d(a,{LiteParser:()=>w,PATTERNS:()=>T});var l={};s.r(l),s.d(l,{LiteWindow:()=>A});var c={};s.r(c),s.d(c,{LiteAdaptor:()=>_,LiteBase:()=>S,liteAdaptor:()=>j});var h=s(977),d=s(516),u=s(502),p=s(6),m=s(780),E=function(t,e,s,i){return new(s||(s=Promise))(function(r,n){function o(t){try{l(i.next(t))}catch(t){n(t)}}function a(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(o,a)}l((i=i.apply(t,e||[])).next())})};const g={badCSS:!0,badSizes:!0};class f{constructor(t,e={},s=[]){this.kind=t,this.attributes=Object.assign({},e),this.children=[...s];for(const t of this.children)t.parent=this;this.styles=null}}class R{get kind(){return"#document"}constructor(t=null){this.defaultView=null,this.root=new f("html",{},[this.head=new f("head"),this.body=new f("body")]),this.type="",this.defaultView=t}}class x{get kind(){return"#text"}constructor(t=""){this.value=t}}class L extends x{get kind(){return"#comment"}}class b{constructor(t){this.nodes=[],this.nodes=[...t]}append(t){this.nodes.push(t)}[Symbol.iterator](){let t=0;return{next(){return t===this.nodes.length?{value:null,done:!0}:{value:this.nodes[t++],done:!1}}}}}var y=s(989);const N="[ \\n]+",I="[ \\n]*",O="[A-Za-z][^\0-\x1f \"'>/=\x7f-\x9f]*",v="[^\0-\x1f \"'>/=\x7f-\x9f]+",C=`${v}(?:${I}=${I}${`(?:'[^']*'|"[^"]*"|${N})`})?`,D=`(${v})(?:${I}=${I}${`(?:'([^']*)'|"([^"]*)"|(${N}))`})?`,T={tag:new RegExp(`(<(?:${O}(?:${N}${C})*${I}/?|/${O}|!--[^]*?--|![^]*?)(?:>|$))`,"u"),attr:new RegExp(C,"u"),attrsplit:new RegExp(D,"u")};class w{parseFromString(t,e="text/html",s=null){const i=s.createDocument();let r=s.body(i);const n=t.replace(/<\?.*?\?>/g,"").split(T.tag);for(;n.length;){const t=n.shift(),e=n.shift();t&&this.addText(s,r,t),e&&">"===e.charAt(e.length-1)&&("!"===e.charAt(1)?this.addComment(s,r,e):r="/"===e.charAt(1)?this.closeTag(s,r,e):this.openTag(s,r,e,n))}return this.checkDocument(s,i),i}addText(t,e,s){return s=y.translate(s),t.append(e,t.text(s))}addComment(t,e,s){return t.append(e,new L(s))}closeTag(t,e,s){const i=s.slice(2,s.length-1).toLowerCase();for(;t.parent(e)&&t.kind(e)!==i;)e=t.parent(e);return t.parent(e)}openTag(t,e,s,i){const r=this.constructor.PCDATA,n=this.constructor.SELF_CLOSING,o=s.match(/<(.*?)[\s\n>/]/)[1].toLowerCase(),a=t.node(o),l=s.replace(/^<.*?[\s\n>]/,"").split(T.attrsplit);return(l.pop().match(/>$/)||l.length<5)&&(this.addAttributes(t,a,l),t.append(e,a),n[o]||s.match(/\/>$/)||(r[o]?this.handlePCDATA(t,a,o,i):e=a)),e}addAttributes(t,e,s){for(;s.length;){const[,i,r,n,o]=s.splice(0,5),a=y.translate(r||n||o||"");t.setAttribute(e,i,a)}}handlePCDATA(t,e,s,i){const r=[],n="";let o="";for(;i.length&&o!==n;)r.push(o),r.push(i.shift()),o=i.shift();t.append(e,t.text(r.join("")))}checkDocument(t,e){const s=this.getOnlyChild(t,t.body(e));if(s){for(const i of t.childNodes(t.body(e))){if(i===s)break;i instanceof L&&i.value.match(/^t.name+'="'+this.protectAttribute(t.value,s)+'"').join(" "),o=this.serializeInner(t,e,s);return`<${r}`+(n?" "+n:"")+(s&&!o||i[r]?s?"/>":">":`>${o}`)}serializeInner(t,e,s=!1){const i=this.constructor.PCDATA;return Object.hasOwn(i,e.kind)?t.childNodes(e).map(e=>t.value(e)).join(""):t.childNodes(e).map(e=>{const i=t.kind(e);return"#text"===i?this.protectHTML(t.value(e)):"#comment"===i?e.value:this.serialize(t,e,s)}).join("")}allAttributes(t,e,s){const i=t.allAttributes(e);if(!s)return i;const r=t.kind(e),n=this.constructor.XMLNS;if(!Object.hasOwn(n,r))return i;for(const{name:t}of i)if("xmlns"===t)return i;return i.push({name:"xmlns",value:n[r]}),i}protectAttribute(t,e){return"string"!=typeof t&&(t=String(t)),t=t.replace(/&/g,"&").replace(/"/g,"""),e&&(t=t.replace(//g,">")),t}protectHTML(t){return t.replace(/&/g,"&").replace(//g,">")}}w.SELF_CLOSING={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},w.PCDATA={option:!0,textarea:!0,fieldset:!0,title:!0,style:!0,script:!0},w.XMLNS={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML",html:"http://www.w3.org/1999/xhtml"};class A{constructor(){this.DOMParser=w,this.NodeList=b,this.HTMLCollection=b,this.HTMLElement=f,this.DocumentFragment=b,this.Document=R,this.document=new R(this)}}var k=s(292),M=function(t,e,s,i){return new(s||(s=Promise))(function(r,n){function o(t){try{l(i.next(t))}catch(t){n(t)}}function a(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(o,a)}l((i=i.apply(t,e||[])).next())})};class S extends u.AbstractDOMAdaptor{constructor(){super(),this.parser=new w,this.window=new A}parse(t,e){return this.parser.parseFromString(t,e,this)}create(t,e=null){return new f(t)}text(t){return new x(t)}comment(t){return new L(t)}createDocument(){return new R}head(t=this.document){return t.head}body(t=this.document){return t.body}root(t=this.document){return t.root}doctype(t=this.document){return t.type}tags(t,e,s=null,i=null){let r=[];const n=[];if(s)return n;let o=t;for(;o;){const t=o.kind;if("#text"!==t&&"#comment"!==t){if(t===e&&(n.push(o),n.length===i))return n;o.children.length&&(r=o.children.concat(r))}o=r.shift()}return n}elementById(t,e){let s=[],i=t;for(;i;){if("#text"!==i.kind&&"#comment"!==i.kind){if(i.attributes.id===e)return i;i.children.length&&(s=i.children.concat(s))}i=s.shift()}return null}elementsByClass(t,e,s=null){let i=[];const r=[];let n=t;for(;n;){if("#text"!==n.kind&&"#comment"!==n.kind){if((n.attributes.class||"").trim().split(/ +/).includes(e)&&(r.push(n),r.length===s))return r;n.children.length&&(i=n.children.concat(i))}n=i.shift()}return r}elementsByAttribute(t,e,s,i=null){let r=[];const n=[];let o=t;for(;o;){if("#text"!==o.kind&&"#comment"!==o.kind){if(o.attributes[e]===s&&(n.push(o),n.length===i))return n;o.children.length&&(r=o.children.concat(r))}o=r.shift()}return n}getElements(t,e){let s=[];const i=this.body(e);for(const e of t)if("string"==typeof e)if("#"===e.charAt(0)){const t=this.elementById(i,e.slice(1));t&&s.push(t)}else if("."===e.charAt(0))s=s.concat(this.elementsByClass(i,e.slice(1)));else if(e.match(/^[-a-z][-a-z0-9]*$/i))s=s.concat(this.tags(i,e));else{const t=e.match(/^\[(.*?)="(.*?)"\]$/);t&&(s=s.concat(this.elementsByAttribute(i,t[1],t[2])))}else Array.isArray(e)?s=s.concat(e):e instanceof this.window.NodeList||e instanceof this.window.HTMLCollection?s=s.concat(e.nodes):s.push(e);return s}getElement(t,e=this.document){if(e instanceof R&&(e=this.body(e)),"#"===t.charAt(0))return this.elementById(e,t.slice(1));if("."===t.charAt(0))return this.elementsByClass(e,t.slice(1),1)[0];if(t.match(/^[-a-z][-a-z0-9]*$/i))return this.tags(e,t,null,1)[0];const s=t.match(/^\[(.*?)="(.*?)"\]$/);return s?this.elementsByAttribute(e,s[1],s[2],1)[0]:null}contains(t,e){for(;e&&e!==t;)e=this.parent(e);return!!e}parent(t){return t.parent}childIndex(t){return t.parent?t.parent.children.findIndex(e=>e===t):-1}append(t,e){return e.parent&&this.remove(e),t.children.push(e),e.parent=t,e}insert(t,e){if(t.parent&&this.remove(t),e&&e.parent){const s=this.childIndex(e);e.parent.children.splice(s,0,t),t.parent=e.parent}}remove(t){const e=this.childIndex(t);return e>=0&&t.parent.children.splice(e,1),t.parent=null,t}replace(t,e){const s=this.childIndex(e);return s>=0&&(e.parent.children[s]=t,t.parent=e.parent,e.parent=null),e}clone(t,e=!0){const s=new f(t.kind);return s.attributes=Object.assign({},t.attributes),s.children=e?t.children.map(t=>{if("#text"===t.kind)return new x(t.value);if("#comment"===t.kind)return new L(t.value);{const e=this.clone(t);return e.parent=s,e}}):[],s}split(t,e){const s=new x(t.value.slice(e));return t.value=t.value.slice(0,e),t.parent.children.splice(this.childIndex(t)+1,0,s),s.parent=t.parent,s}next(t){const e=t.parent;if(!e)return null;const s=this.childIndex(t)+1;return s>=0&&s=0?e.children[s]:null}firstChild(t){return t.children[0]}lastChild(t){return t.children[t.children.length-1]}childNodes(t){return[...t.children]}childNode(t,e){return t.children[e]}kind(t){return t.kind}value(t){return"#text"===t.kind?t.value:"#comment"===t.kind?t.value.replace(/^$/,"$2"):""}textContent(t){return t.children.reduce((t,e)=>t+("#text"===e.kind?e.value:"#comment"===e.kind?"":this.textContent(e)),"")}innerHTML(t){return this.parser.serializeInner(this,t)}outerHTML(t){return this.parser.serialize(this,t)}serializeXML(t){return this.parser.serialize(this,t,!0)}setAttribute(t,e,s,i=null){"string"!=typeof s&&(s=String(s)),i&&(e=i.replace(/.*\//,"")+":"+e.replace(/^.*:/,"")),t.attributes[e]=s,"style"===e&&(t.styles=null)}getAttribute(t,e){return t.attributes[e]}removeAttribute(t,e){delete t.attributes[e]}hasAttribute(t,e){return Object.hasOwn(t.attributes,e)}allAttributes(t){const e=t.attributes,s=[];for(const t of Object.keys(e))s.push({name:t,value:e[t]});return s}addClass(t,e){const s=t.attributes.class,i=(null==s?void 0:s.split(/ /))||[];i.includes(e)||(i.push(e),t.attributes.class=i.join(" "))}removeClass(t,e){const s=t.attributes.class,i=(null==s?void 0:s.split(/ /))||[],r=i.indexOf(e);r>=0&&(i.splice(r,1),t.attributes.class=i.join(" "))}hasClass(t,e){return(t.attributes.class||"").split(/ /).includes(e)}setStyle(t,e,s){t.styles||(t.styles=new k.Styles(this.getAttribute(t,"style"))),t.styles.set(e,s),t.attributes.style=t.styles.cssText}getStyle(t,e){if(!t.styles){const e=this.getAttribute(t,"style");if(!e)return"";t.styles=new k.Styles(e)}return t.styles.get(e)}allStyles(t){return this.getAttribute(t,"style")}insertRules(t,e){t.children=[this.text(this.textContent(t)+"\n\n"+e.join("\n\n"))]}fontSize(t){return 0}fontFamily(t){return""}nodeSize(t,e=1,s=null){return[0,0]}nodeBBox(t){return{left:0,right:0,top:0,bottom:0}}createWorker(){return M(this,void 0,void 0,function*(){return null})}}class _ extends(function(t,e={}){var s;return e=(0,p.userOptions)((0,p.defaultOptions)({},g),e),(s=class extends t{constructor(...t){super(t[0]),this.canMeasureNodes=!1;const e=this.constructor;this.options=(0,p.userOptions)((0,p.defaultOptions)({},e.OPTIONS),t[1])}fontSize(t){return e.badCSS?this.options.fontSize:super.fontSize(t)}fontFamily(t){return e.badCSS?this.options.fontFamily:super.fontFamily(t)}nodeSize(t,i=1,r=null){if(!e.badSizes)return super.nodeSize(t,i,r);const n=this.textContent(t),o=Array.from(n.replace(s.cjkPattern,"")).length;return[(Array.from(n).length-o)*this.options.cjkCharWidth+o*this.options.unknownCharWidth,this.options.unknownCharHeight]}nodeBBox(t){return e.badSizes?{left:0,right:0,top:0,bottom:0}:super.nodeBBox(t)}createWorker(t,e){return E(this,void 0,void 0,function*(){const{Worker:s}=yield(0,m.asyncLoad)("node:worker_threads");const{path:i,maps:r}=e,n=`${i}/${e.worker}`,o=new class{constructor(t,e={}){this.worker=new s(t,e)}addEventListener(t,e){this.worker.on(t,e)}postMessage(t){this.worker.postMessage({data:t})}terminate(){this.worker.terminate()}}(n,{type:"module",workerData:{maps:r}});return o.addEventListener("message",t),o})}}).OPTIONS=Object.assign(Object.assign({},e.badCSS?{fontSize:16,fontFamily:"Times"}:{}),e.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),s.cjkPattern=new RegExp(["[","\u1100-\u115f","\u2329\u232a","\u2e80-\u303e","\u3040-\u3247","\u3250-\u4dbf","\u4e00-\ua4c6","\ua960-\ua97c","\uac00-\ud7a3","\uf900-\ufaff","\ufe10-\ufe19","\ufe30-\ufe6b","\uff01-\uff60\uffe0-\uffe6","\u{1b000}-\u{1b001}","\u{1f200}-\u{1f251}","\u{20000}-\u{3fffd}","]"].join(""),"gu"),s}(S)){}function j(t=null){return new _(null,t)}MathJax.loader&&MathJax.loader.checkVersion("adaptors/liteDOM",d.x,"adaptors"),(0,h.combineWithMathJax)({_:{adaptors:{liteAdaptor:c,lite:{Document:r,Element:i,List:o,Parser:a,Text:n,Window:l}}}}),MathJax.startup&&(MathJax.startup.registerConstructor("liteAdaptor",j),MathJax.startup.useAdaptor("liteAdaptor",!0))},586(t,e,s){"use strict";var i={};s.r(i),s.d(i,{HTMLAdaptor:()=>yt});var r={};s.r(r),s.d(r,{browserAdaptor:()=>It});var n={};s.r(n),s.d(n,{AbstractFindMath:()=>vt});var o={};s.r(o),s.d(o,{AbstractInputJax:()=>Dt});var a={};s.r(a),s.d(a,{AbstractOutputJax:()=>Tt});var l={};s.r(l),s.d(l,{END:()=>wt,LinkedList:()=>kt,ListItem:()=>At});var c={};s.r(c),s.d(c,{AbstractMathList:()=>Mt});var h={};s.r(h),s.d(h,{AbstractMathItem:()=>_t,STATE:()=>jt,newState:()=>Pt,protoItem:()=>St});var d={};s.r(d),s.d(d,{AbstractFactory:()=>Bt});var u={};s.r(u),s.d(u,{AbstractNodeFactory:()=>Wt});var p={};s.r(p),s.d(p,{Attributes:()=>Ft,INHERIT:()=>Ht});var m={};s.r(m),s.d(m,{AbstractEmptyNode:()=>zt,AbstractNode:()=>$t});var E={};s.r(E),s.d(E,{AbstractMmlBaseNode:()=>Qt,AbstractMmlEmptyNode:()=>te,AbstractMmlLayoutNode:()=>Zt,AbstractMmlNode:()=>Vt,AbstractMmlTokenNode:()=>Yt,MATHVARIANTS:()=>Ut,TEXCLASS:()=>Jt,TEXCLASSNAMES:()=>qt,TextNode:()=>ee,XMLNode:()=>se,indentAttributes:()=>Gt});var g={};s.r(g),s.d(g,{MmlMath:()=>ie});var f={};s.r(f),s.d(f,{MmlMi:()=>re});var R={};s.r(R),s.d(R,{MmlMn:()=>ne});var x={};s.r(x),s.d(x,{MMLSPACING:()=>he,MO:()=>ae,OPDEF:()=>oe,OPTABLE:()=>de,RANGES:()=>le,getRange:()=>ce});var L={};s.r(L),s.d(L,{isPercent:()=>ge,quotePattern:()=>pe,replaceUnicode:()=>Re,sortLength:()=>ue,split:()=>fe,toEntity:()=>xe,unicodeChars:()=>me,unicodeString:()=>Ee});var b={};s.r(b),s.d(b,{MmlMo:()=>Le});var y={};s.r(y),s.d(y,{MmlMtext:()=>be});var N={};s.r(N),s.d(N,{MmlMspace:()=>ye});var I={};s.r(I),s.d(I,{MmlMs:()=>Ne});var O={};s.r(O),s.d(O,{MmlInferredMrow:()=>Oe,MmlMrow:()=>Ie});var v={};s.r(v),s.d(v,{MmlMfrac:()=>ve});var C={};s.r(C),s.d(C,{MmlMsqrt:()=>Ce});var D={};s.r(D),s.d(D,{MmlMroot:()=>De});var T={};s.r(T),s.d(T,{MmlMstyle:()=>Te});var w={};s.r(w),s.d(w,{MmlMerror:()=>we});var A={};s.r(A),s.d(A,{MmlMpadded:()=>Ae});var k={};s.r(k),s.d(k,{MmlMphantom:()=>ke});var M={};s.r(M),s.d(M,{MmlMfenced:()=>Me});var S={};s.r(S),s.d(S,{MmlMenclose:()=>Se});var _={};s.r(_),s.d(_,{MmlMaction:()=>_e});var j={};s.r(j),s.d(j,{MmlMsub:()=>Pe,MmlMsubsup:()=>je,MmlMsup:()=>Be});var P={};s.r(P),s.d(P,{MmlMover:()=>Fe,MmlMunder:()=>He,MmlMunderover:()=>We});var B={};s.r(B),s.d(B,{MmlMmultiscripts:()=>$e,MmlMprescripts:()=>ze,MmlNone:()=>Je});var W={};s.r(W),s.d(W,{MmlMtable:()=>qe});var H={};s.r(H),s.d(H,{MmlMlabeledtr:()=>Xe,MmlMtr:()=>Ke});var F={};s.r(F),s.d(F,{MmlMtd:()=>Ue});var $={};s.r($),s.d($,{MmlMaligngroup:()=>Ge});var z={};s.r(z),s.d(z,{MmlMalignmark:()=>Ve});var J={};s.r(J),s.d(J,{MmlMglyph:()=>Ye});var q={};s.r(q),s.d(q,{MmlAnnotation:()=>ts,MmlAnnotationXML:()=>Qe,MmlSemantics:()=>Ze});var K={};s.r(K),s.d(K,{TeXAtom:()=>es});var X={};s.r(X),s.d(X,{MathChoice:()=>ss});var U={};s.r(U),s.d(U,{HtmlNode:()=>is});var G={};s.r(G),s.d(G,{MML:()=>rs});var V={};s.r(V),s.d(V,{MmlFactory:()=>ns});var Y={};s.r(Y),s.d(Y,{BitField:()=>os,BitFieldClass:()=>as});var Z={};s.r(Z),s.d(Z,{AbstractMathDocument:()=>fs,RenderList:()=>ds,resetAllOptions:()=>ps,resetOptions:()=>us});var Q={};s.r(Q),s.d(Q,{AbstractHandler:()=>xs});var tt={};s.r(tt),s.d(tt,{AbstractVisitor:()=>bs});var et={};s.r(et),s.d(et,{DATAMJX:()=>ys,MmlVisitor:()=>Ns});var st={};s.r(st),s.d(st,{MathMLVisitor:()=>Is});var it={};s.r(it),s.d(it,{SerializedMmlVisitor:()=>Os});var rt={};s.r(rt),s.d(rt,{AbstractWrapper:()=>vs});var nt={};s.r(nt),s.d(nt,{AbstractWrapperFactory:()=>Cs});var ot={};s.r(ot),s.d(ot,{HTMLMathItem:()=>Ts});var at={};s.r(at),s.d(at,{HTMLMathList:()=>ws});var lt={};s.r(lt),s.d(lt,{HTMLDomStrings:()=>As});var ct={};s.r(ct),s.d(ct,{HTMLDocument:()=>ks});var ht={};s.r(ht),s.d(ht,{HTMLHandler:()=>Ms});var dt={};s.r(dt),s.d(dt,{RegisterHTMLHandler:()=>Ss});var ut={};s.r(ut),s.d(ut,{StyleJsonSheet:()=>_s});var pt={};s.r(pt),s.d(pt,{DraggableDialog:()=>Ws,isDialog:()=>Bs});var mt={};s.r(mt),s.d(mt,{InfoDialog:()=>Hs});var Et={};s.r(Et),s.d(Et,{BIGDIMEN:()=>$s,MATHSPACE:()=>qs,RELUNITS:()=>Js,UNITS:()=>zs,em:()=>Us,length2em:()=>Ks,percent:()=>Xs,px:()=>Gs});var gt={};s.r(gt),s.d(gt,{BBox:()=>Vs});var ft={};s.r(ft),s.d(ft,{max:()=>ti,sum:()=>Qs});var Rt=s(977),xt=s(516),Lt=s(502),bt=function(t,e,s,i){return new(s||(s=Promise))(function(r,n){function o(t){try{l(i.next(t))}catch(t){n(t)}}function a(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(o,a)}l((i=i.apply(t,e||[])).next())})};class yt extends Lt.AbstractDOMAdaptor{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?``:""}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)):("style"===e&&(s=s.replace(/\n/g," ")),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]=String(s).replace(/\n/g," ")}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||String(this.constructor.DEFAULT_FONT_SIZE))}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 bt(this,void 0,void 0,function*(){const{path:s,maps:i,worker:r}=e,n=`${s}/${r}`,o=`\n self.maps = '${Nt(i)}';\n importScripts('${Nt(n)}');\n `,a=URL.createObjectURL(new Blob([o],{type:"text/javascript"})),l=new Worker(a);return l.onmessage=t,URL.revokeObjectURL(a),l})}}function Nt(t){return[...t].map(t=>("\\"===t||"'"===t?t="\\"+t:(t<" "||t>"~")&&(t=`\\u{${t.codePointAt(0).toString(16)}}`),t)).join("")}function It(){return new yt(window)}yt.DEFAULT_FONT_SIZE=16;var Ot=s(6);class vt{constructor(t){const e=this.constructor;this.options=(0,Ot.userOptions)((0,Ot.defaultOptions)({},e.OPTIONS),t)}}vt.OPTIONS={};var Ct=s(174);class Dt{constructor(t={}){this.adaptor=null,this.mmlFactory=null;const e=this.constructor;this.options=(0,Ot.userOptions)((0,Ot.defaultOptions)({},e.OPTIONS),t),this.preFilters=new Ct.FunctionList(this.options.preFilters),this.postFilters=new Ct.FunctionList(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}}Dt.NAME="generic",Dt.OPTIONS={preFilters:[],postFilters:[]};class Tt{constructor(t={}){this.adaptor=null;const e=this.constructor;this.options=(0,Ot.userOptions)((0,Ot.defaultOptions)({},e.OPTIONS),t),this.preFilters=new Ct.FunctionList(this.options.preFilters),this.postFilters=new Ct.FunctionList(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}}Tt.NAME="generic",Tt.OPTIONS={preFilters:[],postFilters:[]};const wt=Symbol();class At{constructor(t=null){this.next=null,this.prev=null,this.data=t}}class kt{constructor(...t){this.list=new At(wt),this.list.next=this.list.prev=this.list,this.push(...t)}isBefore(t,e){return t1;){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!==wt&&i.data!==wt;)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!==wt&&(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 Mt extends kt{isBefore(t,e){return t.start.i=e&&this.state(e-1),t.renderActions.renderMath(this,t,e)}convert(t,e=jt.LAST){t.renderActions.renderConvert(this,t,e)}compile(t){this.state()=jt.INSERTED&&this.removeFromDocument(e),t=jt.TYPESET&&(this.outputData={}),t=jt.COMPILED&&(this.inputData={}),this._state=t),this._state}reset(t=!1){this.state(jt.UNPROCESSED,t)}clear(){}}const jt={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4};function Pt(t,e){if(t in jt)throw Error("State "+t+" already exists");jt[t]=e}class Bt{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())}}Bt.defaultNodes={};class Wt extends Bt{create(t,e={},s=[]){return this.node[t](e,s)}}const Ht="_inherit_";class Ft{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===Ht&&(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 $t{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 zt extends $t{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 Jt={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,NONE:-1},qt=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER"],Kt=["","thinmathspace","mediummathspace","thickmathspace"],Xt=[[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]],Ut=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"]),Gt=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];class Vt extends $t{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 Ft(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 isEmpty(){for(const t of this.childNodes)if(!t.isEmpty)return!1;return!0}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:Jt.NONE,e=this.texClass||Jt.ORD;if(t===Jt.NONE||e===Jt.NONE)return"";const s=Xt[t][e];return(this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&s>=0?"":Kt[Math.abs(s)]}hasSpacingAttributes(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()}setInheritedAttributes(t={},e=!1,s=0,i=!1){var r,n,o;const a=this.attributes.getAllDefaults();for(const e of Object.keys(t)){if(Object.hasOwn(a,e)||Object.hasOwn(Vt.alwaysInherit,e)){const[s,i]=t[e];(null===(n=null===(r=Vt.noInherit[s])||void 0===r?void 0:r[this.kind])||void 0===n?void 0:n[e])||this.attributes.setInherited(e,i)}(null===(o=Vt.stopInherit[this.kind])||void 0===o?void 0:o[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=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||Ut.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}}Vt.defaults={mathbackground:Ht,mathcolor:Ht,mathsize:Ht,dir:Ht},Vt.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}}},Vt.stopInherit={mtd:{columnalign:!0,rowalign:!0,groupalign:!0}},Vt.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0,infixlinebreakstyle:!0},Vt.verifyDefaults={checkArity:!0,checkAttributes:!1,checkMathvariants:!0,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0};class Yt extends Vt{get isToken(){return!0}get isEmpty(){for(const t of this.childNodes)if(!(t instanceof ee)||t.getText().length)return!1;return!0}getText(){let t="";for(const e of this.childNodes)e instanceof ee?t+=e.getText():"textContent"in e&&(t+=e.textContent());return t}setChildInheritedAttributes(t,e,s,i){for(const r of this.childNodes)r instanceof Vt&&r.setInheritedAttributes(t,e,s,i)}walkTree(t,e){t(this,e);for(const s of this.childNodes)s instanceof Vt&&s.walkTree(t,e);return e}}Yt.defaults=Object.assign(Object.assign({},Vt.defaults),{mathvariant:"normal",mathsize:Ht});class Zt extends Vt{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}}Zt.defaults=Vt.defaults;class Qt extends Vt{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=Jt.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),e.isKind("TeXAtom")&&(this.texClass=e.texClass)));for(const t of this.childNodes.slice(1))t&&t.setTeXclass(null);return s||this}}Qt.defaults=Vt.defaults;class te extends zt{get isToken(){return!1}get isEmpty(){return!0}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 Jt.NONE}get prevClass(){return Jt.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 ee extends te{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 se extends te{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 ie extends Zt{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)}}ie.defaults=Object.assign(Object.assign({},Zt.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 re extends Yt{constructor(){super(...arguments),this.texclass=Jt.ORD}get kind(){return"mi"}setInheritedAttributes(t={},e=!1,s=0,i=!1){super.setInheritedAttributes(t,e,s,i);this.getText().match(re.singleCharacter)&&!t.mathvariant&&this.attributes.setInherited("mathvariant","italic")}setTeXclass(t){this.getPrevClass(t);const e=this.getText();return e.length>1&&e.match(re.operatorName)&&"normal"===this.attributes.get("mathvariant")&&void 0===this.getProperty("autoOP")&&void 0===this.getProperty("texClass")&&(this.texClass=Jt.OP,this.setProperty("autoOP",!0)),this}}re.defaults=Object.assign({},Yt.defaults),re.operatorName=/^[a-z][a-z0-9]*$/i,re.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/;class ne extends Yt{constructor(){super(...arguments),this.texclass=Jt.ORD}get kind(){return"mn"}}function oe(t,e,s=Jt.BIN,i=null){return[t,e,s,i]}ne.defaults=Object.assign({},Yt.defaults);const ae={REL:oe(5,5,Jt.REL),WIDEREL:oe(5,5,Jt.REL,{accent:!0,stretchy:!0}),BIN4:oe(4,4,Jt.BIN),RELSTRETCH:oe(5,5,Jt.REL,{stretchy:!0}),ORD:oe(0,0,Jt.ORD),BIN3:oe(3,3,Jt.BIN),OPEN:oe(0,0,Jt.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:oe(0,0,Jt.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INTEGRAL:oe(3,3,Jt.OP,{largeop:!0,symmetric:!0}),ACCENT:oe(0,0,Jt.ORD,{accent:!0}),WIDEACCENT:oe(0,0,Jt.ORD,{accent:!0,stretchy:!0}),OP:oe(3,3,Jt.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),RELACCENT:oe(5,5,Jt.REL,{accent:!0}),BIN0:oe(0,0,Jt.BIN),BIN5:oe(5,5,Jt.BIN),FENCE:oe(0,0,Jt.ORD,{fence:!0,stretchy:!0,symmetric:!0}),INNER:oe(1,1,Jt.INNER),ORD30:oe(3,0,Jt.ORD),NONE:oe(0,0,Jt.NONE),ORDSTRETCH0:oe(0,0,Jt.ORD,{stretchy:!0}),BINSTRETCH0:oe(0,0,Jt.BIN,{stretchy:!0}),RELSTRETCH0:oe(0,0,Jt.REL,{stretchy:!0}),CLOSE0:oe(0,0,Jt.CLOSE,{fence:!0}),ORD3:oe(3,3,Jt.ORD),PUNCT03:oe(0,3,Jt.PUNCT,{linebreakstyle:"after"}),OPEN0:oe(0,0,Jt.OPEN,{fence:!0}),STRETCH4:oe(4,4,Jt.BIN,{stretchy:!0})},le=[[32,127,Jt.REL,"mo"],[160,191,Jt.ORD,"mo"],[192,591,Jt.ORD,"mi"],[688,879,Jt.ORD,"mo"],[880,6688,Jt.ORD,"mi"],[6832,6911,Jt.ORD,"mo"],[6912,7615,Jt.ORD,"mi"],[7616,7679,Jt.ORD,"mo"],[7680,8191,Jt.ORD,"mi"],[8192,8303,Jt.ORD,"mo"],[8304,8351,Jt.ORD,"mo"],[8448,8527,Jt.ORD,"mi"],[8528,8591,Jt.ORD,"mn"],[8592,8703,Jt.REL,"mo"],[8704,8959,Jt.BIN,"mo"],[8960,9215,Jt.ORD,"mo"],[9312,9471,Jt.ORD,"mn"],[9472,10223,Jt.ORD,"mo"],[10224,10239,Jt.REL,"mo"],[10240,10495,Jt.ORD,"mtext"],[10496,10623,Jt.REL,"mo"],[10624,10751,Jt.ORD,"mo"],[10752,11007,Jt.BIN,"mo"],[11008,11055,Jt.ORD,"mo"],[11056,11087,Jt.REL,"mo"],[11088,11263,Jt.ORD,"mo"],[11264,11744,Jt.ORD,"mi"],[11776,11903,Jt.ORD,"mo"],[11904,12255,Jt.ORD,"mi","normal"],[12272,12351,Jt.ORD,"mo"],[12352,42143,Jt.ORD,"mi","normal"],[42192,43055,Jt.ORD,"mi"],[43056,43071,Jt.ORD,"mn"],[43072,55295,Jt.ORD,"mi"],[63744,64255,Jt.ORD,"mi","normal"],[64256,65023,Jt.ORD,"mi"],[65024,65135,Jt.ORD,"mo"],[65136,65791,Jt.ORD,"mi"],[65792,65935,Jt.ORD,"mn"],[65936,74751,Jt.ORD,"mi","normal"],[74752,74879,Jt.ORD,"mn"],[74880,113823,Jt.ORD,"mi","normal"],[113824,119391,Jt.ORD,"mo"],[119648,119679,Jt.ORD,"mn"],[119808,120781,Jt.ORD,"mi"],[120782,120831,Jt.ORD,"mn"],[122624,129023,Jt.ORD,"mo"],[129024,129279,Jt.REL,"mo"],[129280,129535,Jt.ORD,"mo"],[131072,195103,Jt.ORD,"mi","normal"]];function ce(t){const e=de.infix[t]||de.prefix[t]||de.postfix[t];if(e)return[0,0,e[2],"mo"];const s=t.codePointAt(0);for(const t of le)if(s<=t[1]){if(s>=t[0])return t;break}return[0,0,Jt.REL,"mo"]}const he=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3],[1,1]],de={prefix:{"!":ae.ORD,"(":ae.OPEN,"+":ae.BIN0,"-":ae.BIN0,"[":ae.OPEN,"{":ae.OPEN,"|":ae.OPEN,"||":ae.BIN0,"\xac":ae.ORD,"\xb1":ae.BIN0,"\u2016":ae.FENCE,"\u2018":ae.OPEN0,"\u201c":ae.OPEN0,\u2145:ae.ORD30,\u2146:ae.ORD30,"\u2200":ae.ORD,"\u2201":ae.ORD,"\u2202":ae.ORD30,"\u2203":ae.ORD,"\u2204":ae.ORD,"\u2207":ae.ORD,"\u220f":ae.OP,"\u2210":ae.OP,"\u2211":ae.OP,"\u2212":ae.BIN0,"\u2213":ae.BIN0,"\u221a":[3,0,Jt.ORD,{stretchy:!0}],"\u221b":ae.ORD30,"\u221c":ae.ORD30,"\u221f":ae.ORD,"\u2220":ae.ORD,"\u2221":ae.ORD,"\u2222":ae.ORD,"\u222b":ae.INTEGRAL,"\u222c":ae.INTEGRAL,"\u222d":ae.INTEGRAL,"\u222e":ae.INTEGRAL,"\u222f":ae.INTEGRAL,"\u2230":ae.INTEGRAL,"\u2231":ae.INTEGRAL,"\u2232":ae.INTEGRAL,"\u2233":ae.INTEGRAL,"\u2234":ae.REL,"\u2235":ae.REL,"\u223c":[0,0,Jt.REL,{}],"\u22be":ae.ORD,"\u22bf":ae.ORD,"\u22c0":ae.OP,"\u22c1":ae.OP,"\u22c2":ae.OP,"\u22c3":ae.OP,"\u2308":ae.OPEN,"\u230a":ae.OPEN,"\u2310":ae.ORD,"\u2319":ae.ORD,"\u2772":ae.OPEN,"\u2795":ae.ORD,"\u2796":ae.ORD,"\u27c0":ae.ORD,"\u27e6":ae.OPEN,"\u27e8":ae.OPEN,"\u27ea":ae.OPEN,"\u27ec":ae.OPEN,"\u27ee":ae.OPEN,"\u2980":ae.FENCE,"\u2983":ae.OPEN,"\u2985":ae.OPEN,"\u2987":ae.OPEN,"\u2989":ae.OPEN,"\u298b":ae.OPEN,"\u298d":ae.OPEN,"\u298f":ae.OPEN,"\u2991":ae.OPEN,"\u2993":ae.OPEN,"\u2995":ae.OPEN,"\u2997":ae.OPEN,"\u2999":ae.FENCE,"\u299b":ae.ORD,"\u299c":ae.ORD,"\u299d":ae.ORD,"\u299e":ae.ORD,"\u299f":ae.ORD,"\u29a0":ae.ORD,"\u29a1":ae.ORD,"\u29a2":ae.ORD,"\u29a3":ae.ORD,"\u29a4":ae.ORD,"\u29a5":ae.ORD,"\u29a6":ae.ORD,"\u29a7":ae.ORD,"\u29a8":ae.ORD,"\u29a9":ae.ORD,"\u29aa":ae.ORD,"\u29ab":ae.ORD,"\u29ac":ae.ORD,"\u29ad":ae.ORD,"\u29ae":ae.ORD,"\u29af":ae.ORD,"\u29d8":ae.OPEN,"\u29da":ae.OPEN,"\u29fc":ae.OPEN,"\u2a00":ae.OP,"\u2a01":ae.OP,"\u2a02":ae.OP,"\u2a03":ae.OP,"\u2a04":ae.OP,"\u2a05":ae.OP,"\u2a06":ae.OP,"\u2a07":ae.OP,"\u2a08":ae.OP,"\u2a09":ae.OP,"\u2a0a":ae.OP,"\u2a0b":ae.INTEGRAL,"\u2a0c":ae.INTEGRAL,"\u2a0d":ae.INTEGRAL,"\u2a0e":ae.INTEGRAL,"\u2a0f":ae.INTEGRAL,"\u2a10":ae.INTEGRAL,"\u2a11":ae.INTEGRAL,"\u2a12":ae.INTEGRAL,"\u2a13":ae.INTEGRAL,"\u2a14":ae.INTEGRAL,"\u2a15":ae.INTEGRAL,"\u2a16":ae.INTEGRAL,"\u2a17":ae.INTEGRAL,"\u2a18":ae.INTEGRAL,"\u2a19":ae.INTEGRAL,"\u2a1a":ae.INTEGRAL,"\u2a1b":ae.INTEGRAL,"\u2a1c":ae.INTEGRAL,"\u2a1d":ae.OP,"\u2a1e":ae.OP,"\u2aec":ae.ORD,"\u2aed":ae.ORD,"\u2afc":ae.OP,"\u2aff":ae.OP,"\u3008":ae.OPEN},postfix:{"!!":ae.BIN0,"!":ae.CLOSE0,'"':ae.ORD,"%":ae.ORD,"&":ae.ORD,"'":ae.ACCENT,")":ae.CLOSE,"++":ae.BIN0,"--":ae.BIN0,"]":ae.CLOSE,"^":ae.WIDEACCENT,_:ae.WIDEACCENT,"`":ae.ACCENT,"|":ae.CLOSE,"||":ae.BIN0,"}":ae.CLOSE,"~":ae.WIDEACCENT,"\xa8":ae.ACCENT,"\xaf":ae.WIDEACCENT,"\xb0":ae.ACCENT,"\xb2":ae.ORD,"\xb3":ae.ORD,"\xb4":ae.ACCENT,"\xb8":ae.ACCENT,"\xb9":ae.ORD,\u02c6:ae.WIDEACCENT,\u02c7:ae.WIDEACCENT,\u02c9:ae.WIDEACCENT,\u02ca:ae.ACCENT,\u02cb:ae.ACCENT,\u02cd:ae.WIDEACCENT,"\u02d8":ae.ACCENT,"\u02d9":ae.ACCENT,"\u02da":ae.ACCENT,"\u02dc":ae.WIDEACCENT,"\u02dd":ae.ACCENT,"\u02f7":ae.WIDEACCENT,"\u0302":ae.WIDEACCENT,"\u0311":ae.ACCENT,"\u2016":ae.FENCE,"\u2019":ae.CLOSE0,"\u201a":ae.ORD,"\u201b":ae.ORD,"\u201d":ae.CLOSE0,"\u201e":ae.ORD,"\u201f":ae.ORD,"\u2032":ae.ORD,"\u2033":ae.ORD,"\u2034":ae.ORD,"\u2035":ae.ORD,"\u2036":ae.ORD,"\u2037":ae.ORD,"\u203e":ae.WIDEACCENT,"\u2057":ae.ORD,"\u20db":ae.ACCENT,"\u20dc":ae.ACCENT,"\u2309":ae.CLOSE,"\u230b":ae.CLOSE,"\u2322":ae.RELSTRETCH0,"\u2323":ae.RELSTRETCH0,"\u23b4":ae.WIDEACCENT,"\u23b5":ae.WIDEACCENT,"\u23cd":ae.ORD,"\u23dc":ae.WIDEACCENT,"\u23dd":ae.WIDEACCENT,"\u23de":ae.WIDEACCENT,"\u23df":ae.WIDEACCENT,"\u23e0":ae.WIDEACCENT,"\u23e1":ae.WIDEACCENT,"\u2773":ae.CLOSE,"\u27e7":ae.CLOSE,"\u27e9":ae.CLOSE,"\u27eb":ae.CLOSE,"\u27ed":ae.CLOSE,"\u27ef":ae.CLOSE,"\u2980":ae.FENCE,"\u2984":ae.CLOSE,"\u2986":ae.CLOSE,"\u2988":ae.CLOSE,"\u298a":ae.CLOSE,"\u298c":ae.CLOSE,"\u298e":ae.CLOSE,"\u2990":ae.CLOSE,"\u2992":ae.CLOSE,"\u2994":ae.CLOSE,"\u2996":ae.CLOSE,"\u2998":ae.CLOSE,"\u2999":ae.FENCE,"\u29d9":ae.CLOSE,"\u29db":ae.CLOSE,"\u29fd":ae.CLOSE,"\u3009":ae.CLOSE,"\u{1eef0}":ae.BINSTRETCH0,"\u{1eef1}":ae.BINSTRETCH0},infix:{"!":ae.ORD,"!=":ae.BIN5,"#":ae.ORD,$:ae.ORD,"%":ae.ORD3,"&&":ae.BIN4,"**":ae.BIN3,"*":ae.BIN3,"*=":ae.BIN5,"+":ae.BIN4,"+=":ae.BIN5,",":ae.PUNCT03,"":ae.ORD,"-":ae.BIN4,"-=":ae.BIN5,"->":ae.BIN5,".":ae.ORD3,"..":ae.BIN3,"...":ae.INNER,"/":[4,4,Jt.ORD,{}],"//":ae.BIN5,"/=":ae.BIN5,":":[0,3,Jt.REL,{}],":=":ae.BIN5,";":ae.PUNCT03,"<":ae.REL,"<=":ae.REL,"<>":[3,3,Jt.REL,{}],"=":ae.REL,"==":ae.REL,">":ae.REL,">=":ae.REL,"?":[3,3,Jt.CLOSE,{fence:!0}],"@":ae.ORD3,"\\":ae.ORD,"^":[3,3,Jt.ORD,{accent:!0,stretchy:!0}],_:ae.WIDEACCENT,"|":[5,5,Jt.ORD,{}],"||":ae.BIN5,"\xb1":ae.BIN4,"\xb7":ae.BIN3,"\xd7":ae.BIN3,"\xf7":ae.BIN4,\u02b9:ae.ORD,"\u0300":ae.ACCENT,"\u0301":ae.ACCENT,"\u0303":ae.WIDEACCENT,"\u0304":ae.ACCENT,"\u0306":ae.ACCENT,"\u0307":ae.ACCENT,"\u0308":ae.ACCENT,"\u030c":ae.ACCENT,"\u0332":ae.WIDEACCENT,"\u0338":ae.REL,"\u03f6":ae.REL,"\u2015":ae.ORDSTRETCH0,"\u2017":ae.ORDSTRETCH0,"\u2020":ae.BIN3,"\u2021":ae.BIN3,"\u2022":ae.BIN3,"\u2026":ae.INNER,"\u2043":ae.BIN3,"\u2044":ae.STRETCH4,"\u2061":ae.NONE,"\u2062":ae.NONE,"\u2063":[0,0,Jt.NONE,{linebreakstyle:"after"}],"\u2064":ae.NONE,"\u20d7":ae.ACCENT,\u2111:ae.ORD,\u2113:ae.ORD,\u2118:ae.ORD,\u211c:ae.ORD,"\u2190":ae.WIDEREL,"\u2191":ae.RELSTRETCH,"\u2192":ae.WIDEREL,"\u2193":ae.RELSTRETCH,"\u2194":ae.WIDEREL,"\u2195":ae.RELSTRETCH,"\u2196":ae.REL,"\u2197":ae.REL,"\u2198":ae.REL,"\u2199":ae.REL,"\u219a":ae.WIDEREL,"\u219b":ae.WIDEREL,"\u219c":ae.WIDEREL,"\u219d":ae.WIDEREL,"\u219e":ae.WIDEREL,"\u219f":ae.RELSTRETCH,"\u21a0":ae.WIDEREL,"\u21a1":ae.RELSTRETCH,"\u21a2":ae.WIDEREL,"\u21a3":ae.WIDEREL,"\u21a4":ae.WIDEREL,"\u21a5":ae.RELSTRETCH,"\u21a6":ae.WIDEREL,"\u21a7":ae.RELSTRETCH,"\u21a8":ae.RELSTRETCH,"\u21a9":ae.WIDEREL,"\u21aa":ae.WIDEREL,"\u21ab":ae.WIDEREL,"\u21ac":ae.WIDEREL,"\u21ad":ae.WIDEREL,"\u21ae":ae.WIDEREL,"\u21af":ae.REL,"\u21b0":ae.RELSTRETCH,"\u21b1":ae.RELSTRETCH,"\u21b2":ae.RELSTRETCH,"\u21b3":ae.RELSTRETCH,"\u21b4":ae.RELSTRETCH,"\u21b5":ae.RELSTRETCH,"\u21b6":ae.REL,"\u21b7":ae.REL,"\u21b8":ae.REL,"\u21b9":ae.WIDEREL,"\u21ba":ae.REL,"\u21bb":ae.REL,"\u21bc":ae.WIDEREL,"\u21bd":ae.WIDEREL,"\u21be":ae.RELSTRETCH,"\u21bf":ae.RELSTRETCH,"\u21c0":ae.WIDEREL,"\u21c1":ae.WIDEREL,"\u21c2":ae.RELSTRETCH,"\u21c3":ae.RELSTRETCH,"\u21c4":ae.WIDEREL,"\u21c5":ae.RELSTRETCH,"\u21c6":ae.WIDEREL,"\u21c7":ae.WIDEREL,"\u21c8":ae.RELSTRETCH,"\u21c9":ae.WIDEREL,"\u21ca":ae.RELSTRETCH,"\u21cb":ae.WIDEREL,"\u21cc":ae.WIDEREL,"\u21cd":ae.WIDEREL,"\u21ce":ae.WIDEREL,"\u21cf":ae.WIDEREL,"\u21d0":ae.WIDEREL,"\u21d1":ae.RELSTRETCH,"\u21d2":ae.WIDEREL,"\u21d3":ae.RELSTRETCH,"\u21d4":ae.WIDEREL,"\u21d5":ae.RELSTRETCH,"\u21d6":ae.REL,"\u21d7":ae.REL,"\u21d8":ae.REL,"\u21d9":ae.REL,"\u21da":ae.WIDEREL,"\u21db":ae.WIDEREL,"\u21dc":ae.WIDEREL,"\u21dd":ae.WIDEREL,"\u21de":ae.RELSTRETCH,"\u21df":ae.RELSTRETCH,"\u21e0":ae.WIDEREL,"\u21e1":ae.RELSTRETCH,"\u21e2":ae.WIDEREL,"\u21e3":ae.RELSTRETCH,"\u21e4":ae.WIDEREL,"\u21e5":ae.WIDEREL,"\u21e6":ae.WIDEREL,"\u21e7":ae.RELSTRETCH,"\u21e8":ae.WIDEREL,"\u21e9":ae.RELSTRETCH,"\u21ea":ae.RELSTRETCH,"\u21eb":ae.RELSTRETCH,"\u21ec":ae.RELSTRETCH,"\u21ed":ae.RELSTRETCH,"\u21ee":ae.RELSTRETCH,"\u21ef":ae.RELSTRETCH,"\u21f0":ae.WIDEREL,"\u21f1":ae.REL,"\u21f2":ae.REL,"\u21f3":ae.RELSTRETCH,"\u21f4":ae.WIDEREL,"\u21f5":ae.RELSTRETCH,"\u21f6":ae.WIDEREL,"\u21f7":ae.WIDEREL,"\u21f8":ae.WIDEREL,"\u21f9":ae.WIDEREL,"\u21fa":ae.WIDEREL,"\u21fb":ae.WIDEREL,"\u21fc":ae.WIDEREL,"\u21fd":ae.WIDEREL,"\u21fe":ae.WIDEREL,"\u21ff":ae.WIDEREL,"\u2205":ae.ORD,"\u2206":ae.ORD,"\u2208":ae.REL,"\u2209":ae.REL,"\u220a":ae.REL,"\u220b":ae.REL,"\u220c":ae.REL,"\u220d":ae.REL,"\u2212":ae.BIN4,"\u2213":ae.BIN4,"\u2214":ae.BIN4,"\u2215":ae.STRETCH4,"\u2216":ae.BIN4,"\u2217":ae.BIN3,"\u2218":ae.BIN3,"\u2219":ae.BIN3,"\u221d":ae.REL,"\u221e":ae.ORD,"\u2223":ae.REL,"\u2224":ae.REL,"\u2225":ae.REL,"\u2226":ae.REL,"\u2227":ae.BIN4,"\u2228":ae.BIN4,"\u2229":ae.BIN4,"\u222a":ae.BIN4,"\u2236":ae.BIN4,"\u2237":ae.REL,"\u2238":ae.BIN4,"\u2239":ae.REL,"\u223a":ae.REL,"\u223b":ae.REL,"\u223c":ae.REL,"\u223d":ae.REL,"\u223e":ae.REL,"\u2240":ae.BIN3,"\u2241":ae.REL,"\u2242":ae.REL,"\u2242\u0338":ae.REL,"\u2243":ae.REL,"\u2244":ae.REL,"\u2245":ae.REL,"\u2246":ae.REL,"\u2247":ae.REL,"\u2248":ae.REL,"\u2249":ae.REL,"\u224a":ae.REL,"\u224b":ae.REL,"\u224c":ae.REL,"\u224d":ae.REL,"\u224e":ae.REL,"\u224f":ae.REL,"\u2250":ae.REL,"\u2251":ae.REL,"\u2252":ae.REL,"\u2253":ae.REL,"\u2254":ae.REL,"\u2255":ae.REL,"\u2256":ae.REL,"\u2257":ae.REL,"\u2258":ae.REL,"\u2259":ae.REL,"\u225a":ae.REL,"\u225b":ae.REL,"\u225c":ae.REL,"\u225d":ae.REL,"\u225e":ae.REL,"\u225f":ae.REL,"\u2260":ae.REL,"\u2261":ae.REL,"\u2262":ae.REL,"\u2263":ae.REL,"\u2264":ae.REL,"\u2265":ae.REL,"\u2266":ae.REL,"\u2266\u0338":ae.REL,"\u2267":ae.REL,"\u2267\u0338":ae.REL,"\u2268":ae.REL,"\u2269":ae.REL,"\u226a":ae.REL,"\u226a\u0338":ae.REL,"\u226b":ae.REL,"\u226b\u0338":ae.REL,"\u226c":ae.REL,"\u226d":ae.REL,"\u226e":ae.REL,"\u226f":ae.REL,"\u2270":ae.REL,"\u2271":ae.REL,"\u2272":ae.REL,"\u2273":ae.REL,"\u2274":ae.REL,"\u2275":ae.REL,"\u2276":ae.REL,"\u2277":ae.REL,"\u2278":ae.REL,"\u2279":ae.REL,"\u227a":ae.REL,"\u227b":ae.REL,"\u227c":ae.REL,"\u227d":ae.REL,"\u227e":ae.REL,"\u227e\u0338":ae.REL,"\u227f":ae.REL,"\u227f\u0338":ae.REL,"\u2280":ae.REL,"\u2281":ae.REL,"\u2282":ae.REL,"\u2283":ae.REL,"\u2284":ae.REL,"\u2285":ae.REL,"\u2286":ae.REL,"\u2287":ae.REL,"\u2288":ae.REL,"\u2289":ae.REL,"\u228a":ae.REL,"\u228b":ae.REL,"\u228c":ae.BIN4,"\u228d":ae.BIN4,"\u228e":ae.BIN4,"\u228f":ae.REL,"\u228f\u0338":ae.REL,"\u2290":ae.REL,"\u2290\u0338":ae.REL,"\u2291":ae.REL,"\u2292":ae.REL,"\u2293":ae.BIN4,"\u2294":ae.BIN4,"\u2295":ae.BIN4,"\u2296":ae.BIN4,"\u2297":ae.BIN3,"\u2298":ae.BIN4,"\u2299":ae.BIN3,"\u229a":ae.BIN3,"\u229b":ae.BIN3,"\u229c":ae.REL,"\u229d":ae.BIN4,"\u229e":ae.BIN4,"\u229f":ae.BIN4,"\u22a0":ae.BIN3,"\u22a1":ae.BIN3,"\u22a2":ae.REL,"\u22a3":ae.REL,"\u22a4":ae.ORD,"\u22a5":ae.ORD,"\u22a6":ae.REL,"\u22a7":ae.REL,"\u22a8":ae.REL,"\u22a9":ae.REL,"\u22aa":ae.REL,"\u22ab":ae.REL,"\u22ac":ae.REL,"\u22ad":ae.REL,"\u22ae":ae.REL,"\u22af":ae.REL,"\u22b0":ae.REL,"\u22b1":ae.REL,"\u22b2":ae.REL,"\u22b3":ae.REL,"\u22b4":ae.REL,"\u22b5":ae.REL,"\u22b6":ae.REL,"\u22b7":ae.REL,"\u22b8":ae.REL,"\u22ba":ae.BIN3,"\u22bb":ae.BIN4,"\u22bc":ae.BIN4,"\u22bd":ae.BIN4,"\u22c4":ae.BIN3,"\u22c5":ae.BIN3,"\u22c6":ae.BIN3,"\u22c7":ae.BIN3,"\u22c8":ae.REL,"\u22c9":ae.BIN3,"\u22ca":ae.BIN3,"\u22cb":ae.BIN3,"\u22cc":ae.BIN3,"\u22cd":ae.REL,"\u22ce":ae.BIN4,"\u22cf":ae.BIN4,"\u22d0":ae.REL,"\u22d1":ae.REL,"\u22d2":ae.BIN4,"\u22d3":ae.BIN4,"\u22d4":ae.REL,"\u22d5":ae.REL,"\u22d6":ae.REL,"\u22d7":ae.REL,"\u22d8":ae.REL,"\u22d9":ae.REL,"\u22da":ae.REL,"\u22db":ae.REL,"\u22dc":ae.REL,"\u22dd":ae.REL,"\u22de":ae.REL,"\u22df":ae.REL,"\u22e0":ae.REL,"\u22e1":ae.REL,"\u22e2":ae.REL,"\u22e3":ae.REL,"\u22e4":ae.REL,"\u22e5":ae.REL,"\u22e6":ae.REL,"\u22e7":ae.REL,"\u22e8":ae.REL,"\u22e9":ae.REL,"\u22ea":ae.REL,"\u22eb":ae.REL,"\u22ec":ae.REL,"\u22ed":ae.REL,"\u22ee":ae.ORD,"\u22ef":ae.INNER,"\u22f0":ae.INNER,"\u22f1":ae.INNER,"\u22f2":ae.REL,"\u22f3":ae.REL,"\u22f4":ae.REL,"\u22f5":ae.REL,"\u22f6":ae.REL,"\u22f7":ae.REL,"\u22f8":ae.REL,"\u22f9":ae.REL,"\u22fa":ae.REL,"\u22fb":ae.REL,"\u22fc":ae.REL,"\u22fd":ae.REL,"\u22fe":ae.REL,"\u22ff":ae.REL,"\u2301":ae.REL,"\u2305":ae.BIN3,"\u2306":ae.BIN3,"\u2329":ae.OPEN,"\u232a":ae.CLOSE,"\u237c":ae.REL,"\u238b":ae.REL,"\u23aa":ae.ORD,"\u23af":ae.ORDSTRETCH0,"\u23b0":ae.OPEN,"\u23b1":ae.CLOSE,"\u2500":ae.ORD,"\u25b3":ae.BIN3,"\u25b5":ae.BIN3,"\u25b9":ae.BIN3,"\u25bd":ae.BIN3,"\u25bf":ae.BIN3,"\u25c3":ae.BIN3,"\u25ef":ae.BIN3,"\u2660":ae.ORD,"\u2661":ae.ORD,"\u2662":ae.ORD,"\u2663":ae.ORD,"\u266d":ae.ORD,"\u266e":ae.ORD,"\u266f":ae.ORD,"\u2758":[5,5,Jt.REL,{stretchy:!0,symmetric:!0}],"\u2794":ae.WIDEREL,"\u2795":ae.BIN4,"\u2796":ae.BIN4,"\u2797":ae.BIN4,"\u2798":ae.REL,"\u2799":ae.WIDEREL,"\u279a":ae.REL,"\u279b":ae.WIDEREL,"\u279c":ae.WIDEREL,"\u279d":ae.WIDEREL,"\u279e":ae.WIDEREL,"\u279f":ae.WIDEREL,"\u27a0":ae.WIDEREL,"\u27a1":ae.WIDEREL,"\u27a5":ae.WIDEREL,"\u27a6":ae.WIDEREL,"\u27a7":ae.RELACCENT,"\u27a8":ae.WIDEREL,"\u27a9":ae.WIDEREL,"\u27aa":ae.WIDEREL,"\u27ab":ae.WIDEREL,"\u27ac":ae.WIDEREL,"\u27ad":ae.WIDEREL,"\u27ae":ae.WIDEREL,"\u27af":ae.WIDEREL,"\u27b1":ae.WIDEREL,"\u27b2":ae.RELACCENT,"\u27b3":ae.WIDEREL,"\u27b4":ae.REL,"\u27b5":ae.WIDEREL,"\u27b6":ae.REL,"\u27b7":ae.REL,"\u27b8":ae.WIDEREL,"\u27b9":ae.REL,"\u27ba":ae.WIDEREL,"\u27bb":ae.WIDEREL,"\u27bc":ae.WIDEREL,"\u27bd":ae.WIDEREL,"\u27be":ae.WIDEREL,"\u27c2":ae.REL,"\u27c2\u0338":ae.REL,"\u27cb":ae.BIN3,"\u27cd":ae.BIN3,"\u27f0":ae.RELSTRETCH,"\u27f1":ae.RELSTRETCH,"\u27f2":ae.REL,"\u27f3":ae.REL,"\u27f4":ae.RELSTRETCH,"\u27f5":ae.WIDEREL,"\u27f6":ae.WIDEREL,"\u27f7":ae.WIDEREL,"\u27f8":ae.WIDEREL,"\u27f9":ae.WIDEREL,"\u27fa":ae.WIDEREL,"\u27fb":ae.WIDEREL,"\u27fc":ae.WIDEREL,"\u27fd":ae.WIDEREL,"\u27fe":ae.WIDEREL,"\u27ff":ae.WIDEREL,"\u2900":ae.WIDEREL,"\u2901":ae.WIDEREL,"\u2902":ae.WIDEREL,"\u2903":ae.WIDEREL,"\u2904":ae.WIDEREL,"\u2905":ae.WIDEREL,"\u2906":ae.WIDEREL,"\u2907":ae.WIDEREL,"\u2908":ae.RELSTRETCH,"\u2909":ae.RELSTRETCH,"\u290a":ae.RELSTRETCH,"\u290b":ae.RELSTRETCH,"\u290c":ae.WIDEREL,"\u290d":ae.WIDEREL,"\u290e":ae.WIDEREL,"\u290f":ae.WIDEREL,"\u2910":ae.WIDEREL,"\u2911":ae.WIDEREL,"\u2912":ae.RELSTRETCH,"\u2913":ae.RELSTRETCH,"\u2914":ae.WIDEREL,"\u2915":ae.WIDEREL,"\u2916":ae.WIDEREL,"\u2917":ae.WIDEREL,"\u2918":ae.WIDEREL,"\u2919":ae.WIDEREL,"\u291a":ae.WIDEREL,"\u291b":ae.WIDEREL,"\u291c":ae.WIDEREL,"\u291d":ae.WIDEREL,"\u291e":ae.WIDEREL,"\u291f":ae.WIDEREL,"\u2920":ae.WIDEREL,"\u2921":ae.REL,"\u2922":ae.REL,"\u2923":ae.REL,"\u2924":ae.REL,"\u2925":ae.REL,"\u2926":ae.REL,"\u2927":ae.REL,"\u2928":ae.REL,"\u2929":ae.REL,"\u292a":ae.REL,"\u292b":ae.REL,"\u292c":ae.REL,"\u292d":ae.REL,"\u292e":ae.REL,"\u292f":ae.REL,"\u2930":ae.REL,"\u2931":ae.REL,"\u2932":ae.REL,"\u2933":ae.RELACCENT,"\u2934":ae.RELSTRETCH,"\u2935":ae.RELSTRETCH,"\u2936":ae.RELSTRETCH,"\u2937":ae.RELSTRETCH,"\u2938":ae.REL,"\u2939":ae.REL,"\u293a":ae.RELACCENT,"\u293b":ae.RELACCENT,"\u293c":ae.RELACCENT,"\u293d":ae.RELACCENT,"\u293e":ae.REL,"\u293f":ae.REL,"\u2940":ae.REL,"\u2941":ae.REL,"\u2942":ae.WIDEREL,"\u2943":ae.WIDEREL,"\u2944":ae.WIDEREL,"\u2945":ae.RELSTRETCH,"\u2946":ae.RELSTRETCH,"\u2947":ae.WIDEREL,"\u2948":ae.WIDEREL,"\u2949":ae.RELSTRETCH,"\u294a":ae.WIDEREL,"\u294b":ae.WIDEREL,"\u294c":ae.RELSTRETCH,"\u294d":ae.RELSTRETCH,"\u294e":ae.WIDEREL,"\u294f":ae.RELSTRETCH,"\u2950":ae.WIDEREL,"\u2951":ae.RELSTRETCH,"\u2952":ae.WIDEREL,"\u2953":ae.WIDEREL,"\u2954":ae.RELSTRETCH,"\u2955":ae.RELSTRETCH,"\u2956":ae.WIDEREL,"\u2957":ae.WIDEREL,"\u2958":ae.RELSTRETCH,"\u2959":ae.RELSTRETCH,"\u295a":ae.WIDEREL,"\u295b":ae.WIDEREL,"\u295c":ae.RELSTRETCH,"\u295d":ae.RELSTRETCH,"\u295e":ae.WIDEREL,"\u295f":ae.WIDEREL,"\u2960":ae.RELSTRETCH,"\u2961":ae.RELSTRETCH,"\u2962":ae.WIDEREL,"\u2963":ae.RELSTRETCH,"\u2964":ae.WIDEREL,"\u2965":ae.RELSTRETCH,"\u2966":ae.WIDEREL,"\u2967":ae.WIDEREL,"\u2968":ae.WIDEREL,"\u2969":ae.WIDEREL,"\u296a":ae.WIDEREL,"\u296b":ae.WIDEREL,"\u296c":ae.WIDEREL,"\u296d":ae.WIDEREL,"\u296e":ae.RELSTRETCH,"\u296f":ae.RELSTRETCH,"\u2970":ae.WIDEREL,"\u2971":ae.WIDEREL,"\u2972":ae.WIDEREL,"\u2973":ae.WIDEREL,"\u2974":ae.WIDEREL,"\u2975":ae.WIDEREL,"\u2976":ae.RELACCENT,"\u2977":ae.RELACCENT,"\u2978":ae.RELACCENT,"\u2979":ae.RELACCENT,"\u297a":ae.RELACCENT,"\u297b":ae.RELACCENT,"\u297c":ae.WIDEREL,"\u297d":ae.WIDEREL,"\u297e":ae.RELSTRETCH,"\u297f":ae.RELSTRETCH,"\u2981":ae.REL,"\u2982":ae.REL,"\u29b6":ae.REL,"\u29b7":ae.REL,"\u29b8":ae.BIN4,"\u29b9":ae.REL,"\u29bc":ae.BIN4,"\u29c0":ae.REL,"\u29c1":ae.REL,"\u29c4":ae.BIN4,"\u29c5":ae.BIN4,"\u29c6":ae.BIN3,"\u29c7":ae.BIN3,"\u29c8":ae.BIN3,"\u29ce":ae.REL,"\u29cf":ae.REL,"\u29d0":ae.REL,"\u29d1":ae.REL,"\u29d2":ae.REL,"\u29d3":ae.REL,"\u29d4":ae.BIN3,"\u29d5":ae.BIN3,"\u29d6":ae.BIN3,"\u29d7":ae.BIN3,"\u29df":ae.REL,"\u29e1":ae.REL,"\u29e2":ae.BIN3,"\u29e3":ae.REL,"\u29e4":ae.REL,"\u29e5":ae.REL,"\u29e6":ae.REL,"\u29f4":ae.REL,"\u29f5":ae.BIN4,"\u29f6":ae.BIN4,"\u29f7":ae.BIN4,"\u29f8":ae.BIN4,"\u29f9":ae.BIN4,"\u29fa":ae.BIN4,"\u29fb":ae.BIN4,"\u2a1d":ae.BIN3,"\u2a1e":ae.BIN3,"\u2a1f":ae.BIN4,"\u2a20":ae.BIN4,"\u2a21":ae.BIN4,"\u2a22":ae.BIN4,"\u2a23":ae.BIN4,"\u2a24":ae.BIN4,"\u2a25":ae.BIN4,"\u2a26":ae.BIN4,"\u2a27":ae.BIN4,"\u2a28":ae.BIN4,"\u2a29":ae.BIN4,"\u2a2a":ae.BIN4,"\u2a2b":ae.BIN4,"\u2a2c":ae.BIN4,"\u2a2d":ae.BIN4,"\u2a2e":ae.BIN4,"\u2a2f":ae.BIN3,"\u2a30":ae.BIN3,"\u2a31":ae.BIN3,"\u2a32":ae.BIN3,"\u2a33":ae.BIN3,"\u2a34":ae.BIN3,"\u2a35":ae.BIN3,"\u2a36":ae.BIN3,"\u2a37":ae.BIN3,"\u2a38":ae.BIN4,"\u2a39":ae.BIN4,"\u2a3a":ae.BIN4,"\u2a3b":ae.BIN3,"\u2a3c":ae.BIN3,"\u2a3d":ae.BIN3,"\u2a3e":ae.BIN4,"\u2a3f":ae.BIN3,"\u2a40":ae.BIN4,"\u2a41":ae.BIN4,"\u2a42":ae.BIN4,"\u2a43":ae.BIN4,"\u2a44":ae.BIN4,"\u2a45":ae.BIN4,"\u2a46":ae.BIN4,"\u2a47":ae.BIN4,"\u2a48":ae.BIN4,"\u2a49":ae.BIN4,"\u2a4a":ae.BIN4,"\u2a4b":ae.BIN4,"\u2a4c":ae.BIN4,"\u2a4d":ae.BIN4,"\u2a4e":ae.BIN4,"\u2a4f":ae.BIN4,"\u2a50":ae.BIN3,"\u2a51":ae.BIN4,"\u2a52":ae.BIN4,"\u2a53":ae.BIN4,"\u2a54":ae.BIN4,"\u2a55":ae.BIN4,"\u2a56":ae.BIN4,"\u2a57":ae.BIN4,"\u2a58":ae.BIN4,"\u2a59":ae.BIN4,"\u2a5a":ae.BIN4,"\u2a5b":ae.BIN4,"\u2a5c":ae.BIN4,"\u2a5d":ae.BIN4,"\u2a5e":ae.BIN4,"\u2a5f":ae.BIN4,"\u2a60":ae.BIN4,"\u2a61":ae.BIN4,"\u2a62":ae.BIN4,"\u2a63":ae.BIN4,"\u2a64":ae.BIN3,"\u2a65":ae.BIN3,"\u2a66":ae.REL,"\u2a67":ae.REL,"\u2a68":ae.REL,"\u2a69":ae.REL,"\u2a6a":ae.REL,"\u2a6b":ae.REL,"\u2a6c":ae.REL,"\u2a6d":ae.REL,"\u2a6e":ae.REL,"\u2a6f":ae.REL,"\u2a70":ae.REL,"\u2a71":ae.REL,"\u2a72":ae.REL,"\u2a73":ae.REL,"\u2a74":ae.REL,"\u2a75":ae.REL,"\u2a76":ae.REL,"\u2a77":ae.REL,"\u2a78":ae.REL,"\u2a79":ae.REL,"\u2a7a":ae.REL,"\u2a7b":ae.REL,"\u2a7c":ae.REL,"\u2a7d":ae.REL,"\u2a7d\u0338":ae.REL,"\u2a7e":ae.REL,"\u2a7e\u0338":ae.REL,"\u2a7f":ae.REL,"\u2a80":ae.REL,"\u2a81":ae.REL,"\u2a82":ae.REL,"\u2a83":ae.REL,"\u2a84":ae.REL,"\u2a85":ae.REL,"\u2a86":ae.REL,"\u2a87":ae.REL,"\u2a88":ae.REL,"\u2a89":ae.REL,"\u2a8a":ae.REL,"\u2a8b":ae.REL,"\u2a8c":ae.REL,"\u2a8d":ae.REL,"\u2a8e":ae.REL,"\u2a8f":ae.REL,"\u2a90":ae.REL,"\u2a91":ae.REL,"\u2a92":ae.REL,"\u2a93":ae.REL,"\u2a94":ae.REL,"\u2a95":ae.REL,"\u2a96":ae.REL,"\u2a97":ae.REL,"\u2a98":ae.REL,"\u2a99":ae.REL,"\u2a9a":ae.REL,"\u2a9b":ae.REL,"\u2a9c":ae.REL,"\u2a9d":ae.REL,"\u2a9e":ae.REL,"\u2a9f":ae.REL,"\u2aa0":ae.REL,"\u2aa1":ae.REL,"\u2aa2":ae.REL,"\u2aa3":ae.REL,"\u2aa4":ae.REL,"\u2aa5":ae.REL,"\u2aa6":ae.REL,"\u2aa7":ae.REL,"\u2aa8":ae.REL,"\u2aa9":ae.REL,"\u2aaa":ae.REL,"\u2aab":ae.REL,"\u2aac":ae.REL,"\u2aad":ae.REL,"\u2aae":ae.REL,"\u2aaf":ae.REL,"\u2aaf\u0338":ae.REL,"\u2ab0":ae.REL,"\u2ab0\u0338":ae.REL,"\u2ab1":ae.REL,"\u2ab2":ae.REL,"\u2ab3":ae.REL,"\u2ab4":ae.REL,"\u2ab5":ae.REL,"\u2ab6":ae.REL,"\u2ab7":ae.REL,"\u2ab8":ae.REL,"\u2ab9":ae.REL,"\u2aba":ae.REL,"\u2abb":ae.REL,"\u2abc":ae.REL,"\u2abd":ae.REL,"\u2abe":ae.REL,"\u2abf":ae.REL,"\u2ac0":ae.REL,"\u2ac1":ae.REL,"\u2ac2":ae.REL,"\u2ac3":ae.REL,"\u2ac4":ae.REL,"\u2ac5":ae.REL,"\u2ac6":ae.REL,"\u2ac7":ae.REL,"\u2ac8":ae.REL,"\u2ac9":ae.REL,"\u2aca":ae.REL,"\u2acb":ae.REL,"\u2acc":ae.REL,"\u2acd":ae.REL,"\u2ace":ae.REL,"\u2acf":ae.REL,"\u2ad0":ae.REL,"\u2ad1":ae.REL,"\u2ad2":ae.REL,"\u2ad3":ae.REL,"\u2ad4":ae.REL,"\u2ad5":ae.REL,"\u2ad6":ae.REL,"\u2ad7":ae.REL,"\u2ad8":ae.REL,"\u2ad9":ae.REL,"\u2ada":ae.REL,"\u2adb":ae.BIN4,"\u2add":ae.BIN3,"\u2add\u0338":ae.REL,"\u2ade":ae.REL,"\u2adf":ae.REL,"\u2ae0":ae.REL,"\u2ae1":ae.REL,"\u2ae2":ae.REL,"\u2ae3":ae.REL,"\u2ae4":ae.REL,"\u2ae5":ae.REL,"\u2ae6":ae.REL,"\u2ae7":ae.REL,"\u2ae8":ae.REL,"\u2ae9":ae.REL,"\u2aea":ae.REL,"\u2aeb":ae.REL,"\u2aee":ae.REL,"\u2af2":ae.REL,"\u2af3":ae.REL,"\u2af4":ae.REL,"\u2af5":ae.REL,"\u2af6":ae.BIN4,"\u2af7":ae.REL,"\u2af8":ae.REL,"\u2af9":ae.REL,"\u2afa":ae.REL,"\u2afb":ae.BIN4,"\u2afd":ae.BIN4,"\u2afe":ae.BIN3,"\u2b00":ae.REL,"\u2b01":ae.REL,"\u2b02":ae.REL,"\u2b03":ae.REL,"\u2b04":ae.WIDEREL,"\u2b05":ae.WIDEREL,"\u2b06":ae.RELSTRETCH,"\u2b07":ae.RELSTRETCH,"\u2b08":ae.REL,"\u2b09":ae.REL,"\u2b0a":ae.REL,"\u2b0b":ae.REL,"\u2b0c":ae.WIDEREL,"\u2b0d":ae.RELSTRETCH,"\u2b0e":ae.RELSTRETCH,"\u2b0f":ae.RELSTRETCH,"\u2b10":ae.RELSTRETCH,"\u2b11":ae.RELSTRETCH,"\u2b30":ae.WIDEREL,"\u2b31":ae.WIDEREL,"\u2b32":ae.RELSTRETCH,"\u2b33":ae.WIDEREL,"\u2b34":ae.WIDEREL,"\u2b35":ae.WIDEREL,"\u2b36":ae.WIDEREL,"\u2b37":ae.WIDEREL,"\u2b38":ae.WIDEREL,"\u2b39":ae.WIDEREL,"\u2b3a":ae.WIDEREL,"\u2b3b":ae.WIDEREL,"\u2b3c":ae.WIDEREL,"\u2b3d":ae.WIDEREL,"\u2b3e":ae.WIDEREL,"\u2b3f":ae.RELACCENT,"\u2b40":ae.WIDEREL,"\u2b41":ae.WIDEREL,"\u2b42":ae.WIDEREL,"\u2b43":ae.WIDEREL,"\u2b44":ae.WIDEREL,"\u2b45":ae.WIDEREL,"\u2b46":ae.WIDEREL,"\u2b47":ae.WIDEREL,"\u2b48":ae.WIDEREL,"\u2b49":ae.WIDEREL,"\u2b4a":ae.WIDEREL,"\u2b4b":ae.WIDEREL,"\u2b4c":ae.WIDEREL,"\u2b4d":ae.REL,"\u2b4e":ae.REL,"\u2b4f":ae.REL,"\u2b5a":ae.REL,"\u2b5b":ae.REL,"\u2b5c":ae.REL,"\u2b5d":ae.REL,"\u2b5e":ae.REL,"\u2b5f":ae.REL,"\u2b60":ae.WIDEREL,"\u2b61":ae.RELSTRETCH,"\u2b62":ae.WIDEREL,"\u2b63":ae.RELSTRETCH,"\u2b64":ae.WIDEREL,"\u2b65":ae.RELSTRETCH,"\u2b66":ae.REL,"\u2b67":ae.REL,"\u2b68":ae.REL,"\u2b69":ae.REL,"\u2b6a":ae.WIDEREL,"\u2b6b":ae.RELSTRETCH,"\u2b6c":ae.WIDEREL,"\u2b6d":ae.RELSTRETCH,"\u2b6e":ae.REL,"\u2b6f":ae.REL,"\u2b70":ae.WIDEREL,"\u2b71":ae.RELSTRETCH,"\u2b72":ae.WIDEREL,"\u2b73":ae.RELSTRETCH,"\u2b76":ae.REL,"\u2b77":ae.REL,"\u2b78":ae.REL,"\u2b79":ae.REL,"\u2b7a":ae.WIDEREL,"\u2b7b":ae.RELSTRETCH,"\u2b7c":ae.WIDEREL,"\u2b7d":ae.RELSTRETCH,"\u2b80":ae.WIDEREL,"\u2b81":ae.RELSTRETCH,"\u2b82":ae.WIDEREL,"\u2b83":ae.RELSTRETCH,"\u2b84":ae.WIDEREL,"\u2b85":ae.RELSTRETCH,"\u2b86":ae.WIDEREL,"\u2b87":ae.RELSTRETCH,"\u2b88":ae.RELACCENT,"\u2b89":ae.REL,"\u2b8a":ae.RELACCENT,"\u2b8b":ae.REL,"\u2b8c":ae.REL,"\u2b8d":ae.REL,"\u2b8e":ae.REL,"\u2b8f":ae.REL,"\u2b94":ae.REL,"\u2b95":ae.WIDEREL,"\u2ba0":ae.RELSTRETCH,"\u2ba1":ae.RELSTRETCH,"\u2ba2":ae.RELSTRETCH,"\u2ba3":ae.RELSTRETCH,"\u2ba4":ae.RELSTRETCH,"\u2ba5":ae.RELSTRETCH,"\u2ba6":ae.RELSTRETCH,"\u2ba7":ae.RELSTRETCH,"\u2ba8":ae.WIDEREL,"\u2ba9":ae.WIDEREL,"\u2baa":ae.WIDEREL,"\u2bab":ae.WIDEREL,"\u2bac":ae.RELSTRETCH,"\u2bad":ae.RELSTRETCH,"\u2bae":ae.RELSTRETCH,"\u2baf":ae.RELSTRETCH,"\u2bb0":ae.REL,"\u2bb1":ae.REL,"\u2bb2":ae.REL,"\u2bb3":ae.REL,"\u2bb4":ae.REL,"\u2bb5":ae.REL,"\u2bb6":ae.REL,"\u2bb7":ae.REL,"\u2bb8":ae.RELSTRETCH,"\u2bd1":ae.REL,\u3adc:ae.BIN3,"\ufe37":ae.WIDEACCENT,"\ufe38":ae.WIDEACCENT}};function ue(t,e){return t.length!==e.length?e.length-t.length:t===e?0:tt.codePointAt(0))}function Ee(t){return String.fromCodePoint(...t)}function ge(t){return!!t.match(/%\s*$/)}function fe(t){return t.trim().split(/\s+/)}function Re(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 xe(t){return`&#x${t.codePointAt(0).toString(16).toUpperCase()};`}class Le extends Yt{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===Jt.REL&&("prefix"===e&&(this.texClass=Jt.OPEN),"postfix"===e&&(this.texClass=Jt.CLOSE)),this.adjustTeXclass(t))}adjustTeXclass(t){const e=this.texClass;let s=this.prevClass;if(e===Jt.NONE)return t;if(t?(!t.getProperty("autoOP")||e!==Jt.BIN&&e!==Jt.REL||(s=t.texClass=Jt.ORD),s=this.prevClass=t.texClass||Jt.ORD,this.prevLevel=this.attributes.getInherited("scriptlevel")):s=this.prevClass=Jt.NONE,e!==Jt.BIN||s!==Jt.NONE&&s!==Jt.BIN&&s!==Jt.OP&&s!==Jt.REL&&s!==Jt.OPEN&&s!==Jt.PUNCT)if(s!==Jt.BIN||e!==Jt.REL&&e!==Jt.CLOSE&&e!==Jt.PUNCT){if(e===Jt.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=Jt.ORD)}}else t.texClass=this.prevClass=Jt.ORD;else this.texClass=Jt.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,o=n[e][t]||n[s][t]||n[i][t];if(o)return o;this.setProperty("noDictDef",!0);const a=this.attributes.get("movablelimits");if((!!t.match(r.opPattern)||a)&&void 0===this.getProperty("texClass"))return oe(1,2,Jt.OP);const l=ce(t),[c,h]=r.MMLSPACING[l[2]];return oe(c,h,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]/18,this.rspace=e[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=Ee(me(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),o=!(!r||!r.isEmbellished||i.coreMO()!==this);(n||o)&&(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)}}Le.defaults=Object.assign(Object.assign({},Yt.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"}),Le.MMLSPACING=he,Le.OPTABLE=de,Le.pseudoScripts=new RegExp(["^[\"'*`","\xaa","\xb0","\xb2-\xb4","\xb9","\xba","\u2018-\u201f","\u2032-\u2037\u2057","\u2070\u2071","\u2074-\u207f","\u2080-\u208e","]+$"].join("")),Le.primes=new RegExp(["^[\"'","\u2018-\u201f","]+$"].join("")),Le.opPattern=/^[a-zA-Z]{2,}$/,Le.remapPrimes={34:8243,39:8242,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},Le.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("")),Le.mathaccentsWithWidth=new RegExp(["^[","\u2190\u2192\u2194","\u23dc\u23dd","\u23de\u23df","]$"].join(""));class be extends Yt{constructor(){super(...arguments),this.texclass=Jt.ORD}get kind(){return"mtext"}get isSpacelike(){return!!this.getText().match(/^\s*$/)&&!this.attributes.hasOneOf(be.NONSPACELIKE)}}be.NONSPACELIKE=["style","mathbackground","background"],be.defaults=Object.assign({},Yt.defaults);class ye extends Yt{constructor(){super(...arguments),this.texclass=Jt.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(ye.NONSPACELIKE)&&"-"!==String(this.attributes.get("width")).trim().charAt(0)}}ye.NONSPACELIKE=["height","depth","style","mathbackground","background"],ye.defaults=Object.assign(Object.assign({},Yt.defaults),{width:"0em",height:"0ex",depth:"0ex",linebreak:"auto",indentshift:"auto",indentalign:"auto",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"});class Ne extends Yt{constructor(){super(...arguments),this.texclass=Jt.ORD}get kind(){return"ms"}}Ne.defaults=Object.assign(Object.assign({},Yt.defaults),{lquote:'"',rquote:'"'});class Ie extends Vt{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=Jt.INNER),this}for(const e of this.childNodes)t=e.setTeXclass(t);return this.childNodes[0]&&this.updateTeXclass(this.childNodes[0]),t}}Ie.defaults=Object.assign({},Vt.defaults);class Oe extends Ie{get kind(){return"inferredMrow"}get isInferred(){return!0}get notParent(){return!0}toString(){return"["+this.childNodes.join(",")+"]"}}Oe.defaults=Ie.defaults;class ve extends Qt{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"),o=this.addInheritedAttributes(Object.assign({},t),{numalign:r,indentshift:"0",indentalignfirst:r,indentshiftfirst:"0",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),a=this.addInheritedAttributes(Object.assign({},t),{denalign:n,indentshift:"0",indentalignfirst:n,indentshiftfirst:"0",indentalignlast:"indentalign",indentshiftlast:"indentshift"});this.childNodes[0].setInheritedAttributes(o,!1,s,i),this.childNodes[1].setInheritedAttributes(a,!1,s,!0)}}ve.defaults=Object.assign(Object.assign({},Qt.defaults),{linethickness:"medium",numalign:"center",denomalign:"center",bevelled:!1});class Ce extends Vt{constructor(){super(...arguments),this.texclass=Jt.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)}}Ce.defaults=Object.assign(Object.assign({},Vt.defaults),{"data-vertical-align":"bottom"});class De extends Vt{constructor(){super(...arguments),this.texclass=Jt.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)}}De.defaults=Object.assign(Object.assign({},Vt.defaults),{"data-vertical-align":"bottom"});class Te extends Zt{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 o=this.attributes.getExplicit("data-cramped");null!=o&&(i=o),t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),this.childNodes[0].setInheritedAttributes(t,e,s,i)}}Te.defaults=Object.assign(Object.assign({},Zt.defaults),{scriptlevel:Ht,displaystyle:Ht,scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:".4em",mathbackground:Ht,mathcolor:Ht,dir:Ht,infixlinebreakstyle:"before"});class we extends Vt{constructor(){super(...arguments),this.texclass=Jt.ORD}get kind(){return"merror"}get arity(){return-1}get linebreakContainer(){return!0}}we.defaults=Object.assign({},Vt.defaults);class Ae extends Zt{get kind(){return"mpadded"}get linebreakContainer(){return!0}setTeXclass(t){return this.getProperty("vbox")?(this.getPrevClass(t),this.texClass=Jt.ORD,this.childNodes[0].setTeXclass(null),this):super.setTeXclass(t)}}Ae.defaults=Object.assign(Object.assign({},Zt.defaults),{width:"",height:"",depth:"",lspace:0,voffset:0});class ke extends Zt{constructor(){super(...arguments),this.texclass=Jt.ORD}get kind(){return"mphantom"}}ke.defaults=Object.assign({},Zt.defaults);class Me extends Vt{constructor(){super(...arguments),this.texclass=Jt.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;ethis.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)}}_e.defaults=Object.assign(Object.assign({},Vt.defaults),{actiontype:"toggle",selection:1});class je extends Qt{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)}}je.defaults=Object.assign(Object.assign({},Qt.defaults),{subscriptshift:"",superscriptshift:""});class Pe extends je{get kind(){return"msub"}get arity(){return 2}}Pe.defaults=Object.assign({},je.defaults);class Be extends je{get kind(){return"msup"}get arity(){return 2}get sup(){return 1}get sub(){return 2}}Be.defaults=Object.assign({},je.defaults);class We extends Qt{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")),o=this.constructor.ACCENTS;r[1].setInheritedAttributes(t,!1,this.getScriptlevel(o[1],n,s),i||1===this.under),this.setInheritedAccent(1,o[1],e,s,i,n),r[2]&&(r[2].setInheritedAttributes(t,!1,this.getScriptlevel(o[2],n,s),i||2===this.under),this.setInheritedAccent(2,o[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 o=this.childNodes[t];if(!this.attributes.hasExplicit(e)&&o.isEmbellished){const t=o.coreMO().attributes.get("accent");this.attributes.setInherited(e,t),t!==this.attributes.getDefault(e)&&o.setInheritedAttributes({},s,this.getScriptlevel(e,n,i),r)}}}We.defaults=Object.assign(Object.assign({},Qt.defaults),{accent:!1,accentunder:!1,align:"center"}),We.ACCENTS=["","accentunder","accent"];class He extends We{get kind(){return"munder"}get arity(){return 2}}He.defaults=Object.assign({},We.defaults);class Fe extends We{get kind(){return"mover"}get arity(){return 2}get over(){return 1}get under(){return 2}}Fe.defaults=Object.assign({},We.defaults),Fe.ACCENTS=["","accent","accentunder"];class $e extends je{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...`}verifyTree(t){!this.parent||this.parent.isToken||this.mError("HTML can only be a child of a token element",t,!0)}}const rs={[ie.prototype.kind]:ie,[re.prototype.kind]:re,[ne.prototype.kind]:ne,[Le.prototype.kind]:Le,[be.prototype.kind]:be,[ye.prototype.kind]:ye,[Ne.prototype.kind]:Ne,[Ie.prototype.kind]:Ie,[Oe.prototype.kind]:Oe,[ve.prototype.kind]:ve,[Ce.prototype.kind]:Ce,[De.prototype.kind]:De,[Te.prototype.kind]:Te,[we.prototype.kind]:we,[Ae.prototype.kind]:Ae,[ke.prototype.kind]:ke,[Me.prototype.kind]:Me,[Se.prototype.kind]:Se,[_e.prototype.kind]:_e,[Pe.prototype.kind]:Pe,[Be.prototype.kind]:Be,[je.prototype.kind]:je,[He.prototype.kind]:He,[Fe.prototype.kind]:Fe,[We.prototype.kind]:We,[$e.prototype.kind]:$e,[ze.prototype.kind]:ze,[Je.prototype.kind]:Je,[qe.prototype.kind]:qe,[Xe.prototype.kind]:Xe,[Ke.prototype.kind]:Ke,[Ue.prototype.kind]:Ue,[Ge.prototype.kind]:Ge,[Ve.prototype.kind]:Ve,[Ye.prototype.kind]:Ye,[Ze.prototype.kind]:Ze,[ts.prototype.kind]:ts,[Qe.prototype.kind]:Qe,[es.prototype.kind]:es,[ss.prototype.kind]:ss,[ee.prototype.kind]:ee,[se.prototype.kind]:se,[is.prototype.kind]:is};class ns extends Wt{get MML(){return this.node}}ns.defaultNodes=rs;class os{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===os.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 as(...t){const e=class extends os{};return e.allocate(...t),e}os.MAXBIT=1<<31,os.next=1,os.names=new Map;var ls=s(983),cs=s(462),hs=function(t,e,s,i){return new(s||(s=Promise))(function(r,n){function o(t){try{l(i.next(t))}catch(t){n(t)}}function a(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(o,a)}l((i=i.apply(t,e||[])).next())})};class ds extends ls.PrioritizedList{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=jt.UNPROCESSED){for(const s of this.items)if(s.priority>=e&&s.item.renderDoc(t))return}renderMath(t,e,s=jt.UNPROCESSED){for(const i of this.items)if(i.priority>=s&&i.item.renderMath(t,e))return}renderConvert(t,e,s=jt.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 us={all:!1,processed:!1,inputJax:null,outputJax:null},ps={all:!0,processed:!0,inputJax:[],outputJax:[]};class ms extends Dt{compile(t){return null}}class Es extends Tt{typeset(t,e=null){return null}escaped(t,e){return null}}class gs extends Mt{}class fs{constructor(t,e,s){const i=this.constructor;this.document=t,this.options=(0,Ot.userOptions)((0,Ot.defaultOptions)({},i.OPTIONS),s),this.math=new(this.options.MathList||gs),this.renderActions=ds.create(this.options.renderActions),this._actionPromises=[],this._readyPromise=Promise.resolve(),this.processed=new fs.ProcessBits,this.outputJax=this.options.OutputJax||new Es;let r=this.options.InputJax||[new ms];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 ns,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]=ds.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(()=>(0,cs.handleRetriesFor)(()=>hs(this,void 0,void 0,function*(){return this.render(),yield this.actionPromises(),this.clearPromises(),this})))}rerender(t=jt.RERENDER){return this.state(t-1),this.render(),this}rerenderPromise(t=jt.RERENDER){return this.whenReady(()=>(0,cs.handleRetriesFor)(()=>hs(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:o,containerWidth:a,scale:l,family:c}=(0,Ot.userOptions)({format:this.inputJax[0].name,display:!0,end:jt.LAST,em:16,ex:8,containerWidth:null,scale:1,family:""},e);null===a&&(a=80*n);const h=this.inputJax.reduce((t,e)=>e.name===s?e:t,null),d=new this.options.MathItem(t,h,i);return d.start.node=this.adaptor.body(this.document),d.setMetrics(o,n,a,l),c&&this.outputJax.options.mtextInheritFont&&(d.outputData.mtextFamily=c),c&&this.outputJax.options.merrorInheritFont&&(d.outputData.merrorFamily=c),this.clearPromises(),d.convert(this,r),d.typesetRoot||d.root}convertPromise(t,e={}){return this.whenReady(()=>(0,cs.handleRetriesFor)(()=>hs(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 te.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}}fs.KIND="MathDocument",fs.OPTIONS={OutputJax:null,InputJax:null,MmlFactory:null,MathList:gs,MathItem:class extends _t{},compileError:(t,e,s)=>{t.compileError(e,s)},typesetError:(t,e,s)=>{t.typesetError(e,s)},renderActions:(0,Ot.expandable)({find:[jt.FINDMATH,"findMath","",!1],compile:[jt.COMPILED],metrics:[jt.METRICS,"getMetrics","",!1],typeset:[jt.TYPESET],update:[jt.INSERTED,"updateDocument",!1]})},fs.ProcessBits=as("findMath","compile","getMetrics","typeset","updateDocument");class Rs extends fs{}class xs{constructor(t,e=5){this.documentClass=Rs,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)}}xs.NAME="generic";var Ls=s(903);class bs{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[bs.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 ys="data-mjx-";class Ns extends bs{constructor(t=null){t||(t=new ns),super(t)}visitTextNode(t,...e){}visitXMLNode(t,...e){}visitHtmlNode(t,...e){}getKind(t){const e=t.kind;return(0,Ot.lookup)(e,this.constructor.rename,e)}getAttributeList(t){const e=this.constructor,s=(0,Ot.lookup)(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 o=t.getProperty("mathaccent");void 0!==o&&(o&&!t.isMathAccent()||!o&&!t.isMathAccentWithWidth())&&this.setDataAttribute(e,"mathaccent",o.toString());const a=t.getProperty("texClass");if(void 0!==a){let s=!0;if(a===Jt.OP&&t.isKind("mi")){const e=t.getText();s=!(e.length>1&&e.match(re.operatorName))}s&&this.setDataAttribute(e,"texclass",a<0?"NONE":qt[a])}return t.getProperty("smallmatrix")&&this.setDataAttribute(e,"smallmatrix","true"),e}setDataAttribute(t,e,s){t[ys+e]=s}}Ns.rename={TeXAtom:"mrow"},Ns.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"},Ns.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}};class Is extends Ns{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 Os extends Ns{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}${s}`}visitDefault(t,e){const s=this.getKind(t),[i,r]=t.isToken||0===t.childNodes.length?["",""]:["\n",e],n=this.childNodeMml(t,e+" ",i),o=n.match(/\S/)?i+n+r:"";return`${e}<${s}${this.getAttributes(t)}>${o}`}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(/[\uD800-\uDBFF]./g,this.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,this.toEntity)}toEntity(t){return xe(t)}}class vs{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 Cs extends Bt{wrap(t,...e){return this.create(t.kind,t,...e)}}var Ds=s(850);class Ts extends _t{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()=jt.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 ws extends Mt{}class As{constructor(t=null){const e=this.constructor;this.options=(0,Ot.userOptions)((0,Ot.defaultOptions)({},e.OPTIONS),t),this.init(),this.getPatterns()}init(){this.strings=[],this.string="",this.snodes=[],this.nodes=[],this.stack=[]}getPatterns(){const t=(0,Ot.makeArray)(this.options.skipHtmlTags),e=(0,Ot.makeArray)(this.options.ignoreHtmlClass),s=(0,Ot.makeArray)(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}}As.OPTIONS={skipHtmlTags:["script","noscript","style","textarea","pre","code","math","select","option","mjx-container"],includeHtmlTags:(0,Ot.expandable)({br:"\n",wbr:"","#comment":""}),ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"},Pt("STYLES",jt.INSERTED+1);class ks extends fs{constructor(t,e,s){const[i,r]=(0,Ot.separateOptions)(s,As.OPTIONS);super(t,e,i),this.domStrings=this.options.DomStrings||new As(r),this.domStrings.adaptor=e,this.styles=[]}findPosition(t,e,s,i){const r=this.adaptor,n=1/(i[t].length||1);let o=t;for(const[a,l]of i[t]){if(e<=l&&"#text"===r.kind(a))return{i:o,node:a,n:Math.max(e,0),delim:s};e-=l,o+=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=(0,Ot.userOptions)({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()>=jt.INSERTED&&e.state(jt.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}}ks.KIND="HTML",ks.OPTIONS=Object.assign(Object.assign({},fs.OPTIONS),{renderActions:(0,Ot.expandable)(Object.assign(Object.assign({},fs.OPTIONS.renderActions),{styles:[jt.STYLES,"","updateStyleSheet",!1]})),MathList:ws,MathItem:Ts,DomStrings:null});class Ms extends xs{constructor(){super(...arguments),this.documentClass=ks}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 Ss(t){const e=new Ms(t);return Ds.mathjax.handlers.register(e),e}class _s{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(t=this.styles,e=""){const s=Object.keys(t),i=new Array(s.length);let r=0;for(const n of s){const s=t[n];i[r++]=`${e}${n} {\n${this.getStyleDefString(s,e)}\n${e}}`}return i}getStyleDefString(t,e){const s=Object.keys(t),i=new Array(s.length);let r=0;for(const n of s)i[r++]=t[n]instanceof Object?e+this.getStyleRules({[n]:t[n]},e+" ").join("\n"+e):" "+e+n+": "+t[n]+";";return i.join("\n"+e)}}var js,Ps=s(939);const Bs=!!(null===(js=Ps.context.window)||void 0===js?void 0:js.HTMLDialogElement);class Ws{constructor(t){this.minW=200,this.minH=80,this.tx=0,this.ty=0,this.dragging=!1,this.events=[["mousemove",this.MouseMove.bind(this)],["mouseup",this.MouseUp.bind(this)]],this.mode="",this.actions={down:{move:t=>{t.dialog.classList.add("mjx-moving")}},move:{move:(t,e)=>[e.x-t.x,e.y-t.y,0,0],top:(t,e)=>[0,(e.y-t.y)/2,0,t.y-e.y],bottom:(t,e)=>[0,(e.y-t.y)/2,0,e.y-t.y],left:(t,e)=>[(e.x-t.x)/2,0,t.x-e.x,0],right:(t,e)=>[(e.x-t.x)/2,0,e.x-t.x,0],topleft:(t,e)=>[(e.x-t.x)/2,(e.y-t.y)/2,t.x-e.x,t.y-e.y],topright:(t,e)=>[(e.x-t.x)/2,(e.y-t.y)/2,e.x-t.x,t.y-e.y],botleft:(t,e)=>[(e.x-t.x)/2,(e.y-t.y)/2,t.x-e.x,e.y-t.y],botright:(t,e)=>[(e.x-t.x)/2,(e.y-t.y)/2,e.x-t.x,e.y-t.y]},up:{move:t=>{t.dialog.classList.remove("mjx-moving")}},keymove:{left:()=>[-5,0,0,0],right:()=>[5,0,0,0],up:()=>[0,-5,0,0],down:()=>[0,5,0,0]},bigmove:{left:()=>[-20,0,0,0],right:()=>[20,0,0,0],up:()=>[0,-20,0,0],down:()=>[0,20,0,0]},keysize:{left:()=>[-3,0,-6,0],right:()=>[3,0,6,0],up:()=>[0,-3,0,-6],down:()=>[0,3,0,6]},bigsize:{left:()=>[-10,0,-20,0],right:()=>[10,0,20,0],up:()=>[0,-10,0,-20],down:()=>[0,10,0,20]}};const{adaptor:e,node:s=null}=t;this.init(e),this.node=s,this.background=Bs?null:e.node("mjx-dialog-background"),this.x=this.y=0,this.dragging=!1,this.action="",this.dialog=this.html(t),this.title=this.dialog.firstChild.firstChild.firstChild,this.content=this.dialog.firstChild.firstChild.nextSibling;const i=this.dialog.lastChild;i.addEventListener("click",this.closeDialog.bind(this)),i.addEventListener("keydown",this.actionKey.bind(this,this.closeDialog.bind(this)));const r=this.dialog.lastChild.previousSibling;r.addEventListener("click",this.helpDialog.bind(this,e)),r.addEventListener("keydown",this.actionKey.bind(this,this.helpDialog.bind(this,e))),this.noDrag=Array.from(this.dialog.querySelectorAll('[data-drag="none"]'))}init(t){const e=this.constructor;if(!t.document.head.querySelector("#"+e.styleId)){const s=t.node("style",{id:e.styleId});s.textContent=new _s(e.styles).cssText,t.document.head.append(s)}}html(t){const{title:e,message:s,adaptor:i,styles:r=null,extraNodes:n=[],className:o=Ws.className}=t;if(r){const t=i.node("style");t.textContent=new _s(r).cssText,n.unshift(t)}const a="mjx-dialog-label-"+Ws.id++,l=i.node("dialog",{closedby:"any",class:("mjx-dialog "+o).trim()},[i.node("mjx-dialog",{"aria-labeledby":a},[i.node("mjx-title",{},[i.node("h1",{id:a,tabIndex:0})]),i.node("div",{"data-drag":"none",tabIndex:0})]),...n,i.node("mjx-dialog-spacer",{"aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"top","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"bottom","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"left","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"right","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"topleft","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"topright","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"botleft","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"botright","aria-hidden":!0}),i.node("mjx-dialog-help",{class:"mjx-dialog-button","data-drag":"none",tabIndex:0,role:"button","aria-label":"Dialog Help"},[i.node("mjx-dialog-icon",{"aria-hidden":!0},[i.text("?")])]),i.node("mjx-dialog-close",{class:"mjx-dialog-button","data-drag":"none",tabIndex:0,role:"button","aria-label":"Close Dialog Box"},[i.node("mjx-dialog-icon",{"aria-hidden":!0},[i.text("\xd7")])])]);return l.firstChild.firstChild.firstChild.innerHTML=e,l.firstChild.childNodes[1].innerHTML=s,l}attach(){Bs?(this.dialog.addEventListener("mousedown",this.MouseDown.bind(this)),this.dialog.addEventListener("keydown",this.KeyDown.bind(this),!0),document.body.append(this.dialog),this.dialog.showModal()):(this.background.addEventListener("mousedown",this.MouseDown.bind(this)),this.background.addEventListener("keydown",this.KeyDown.bind(this),!0),this.dialog.setAttribute("tabindex","0"),this.dialog.addEventListener("click",this.stop),this.background.append(this.dialog),document.body.append(this.background)),Ps.context.window.addEventListener("visibilitychange",this.Visibility.bind(this)),this.minW=Math.min(this.minW,this.dialog.clientWidth-8),this.minH=Math.min(this.minH,this.dialog.clientHeight-this.title.offsetHeight-8),this.title.focus()}dragAction(t,e=null){e&&this.stop(e);const s=this.actions[t][this.action],i=s?s(this,e):null;if(!i)return;let[r,n,o,a]=i;if(o){const t=this.w+o;t>=this.minW?(this.x=null==e?void 0:e.x,this.w=t,this.dialog.style.maxWidth=this.dialog.style.width=t+"px"):r=0}if(a){const t=this.h+a;t>=this.minH+this.title.offsetHeight?(this.y=null==e?void 0:e.y,this.h=t,this.dialog.style.maxHeight=this.dialog.style.height=t+"px"):n=0}(r||n)&&(r&&(this.x=null==e?void 0:e.x,this.tx+=r||0),n&&(this.y=null==e?void 0:e.y,this.ty+=n||0),this.dialog.style.transform=`translate(${this.tx}px, ${this.ty}px)`)}MouseDown(t){const e=t.target;if(!(1!==t.buttons||t.shiftKey||t.metaKey||t.altKey||t.ctrlKey))if(this.inDialog(t)){for(const t of this.noDrag)if(e===t||t.contains(e))return;this.action=e.getAttribute("data-drag")||"move",this.startDrag(t),this.dragAction("down",t)}else this.closeDialog(t)}MouseMove(t){1!==t.buttons&&this.endDrag(),this.dragging&&this.dragAction("move",t)}MouseUp(t){this.dragging&&(this.dragAction("up",t),this.endDrag())}Visibility(){Ps.context.document.hidden&&this.closeDialog()}KeyDown(t){const e=this.constructor.keyActions.get(t.key);e&&e(this,t)}escKey(t){this.closeDialog(t)}aKey(t){(t.ctrlKey||t.metaKey)&&(this.selectAll(),this.stop(t))}mKey(t){this.mode="move"===this.mode?"":"move",this.stop(t)}sKey(t){this.mode="size"===this.mode?"":"size",this.stop(t)}arrowKey(t,e){t.ctrlKey||this.dragging||(this.action=e,this.getWH(),t.altKey||"move"===this.mode?(this.dragAction(t.shiftKey?"bigmove":"keymove"),this.stop(t)):(t.metaKey||"size"===this.mode)&&(this.dragAction(t.shiftKey?"bigsize":"keysize"),this.stop(t)),this.action="")}actionKey(t,e){"Enter"!==e.code&&"Space"!==e.code||t(e)}selectAll(){document.getSelection().selectAllChildren(this.content)}copyToClipboard(){this.selectAll();try{document.execCommand("copy")}catch(t){alert(`Can't copy to clipboard: ${t.message}`)}document.getSelection().removeAllRanges()}startDrag(t){this.x=t.x,this.y=t.y,this.getWH(),this.dragging=!0;const e=this.background||this.dialog;for(const[t,s]of this.events)e.addEventListener(t,s)}getWH(){this.w=this.dialog.clientWidth-8,this.h=this.dialog.clientHeight-8}endDrag(){this.action="",this.dragging=!1;const t=this.background||this.dialog;for(const[e,s]of this.events)t.removeEventListener(e,s)}closeDialog(t){var e;Bs?(this.dialog.close(),this.dialog.remove()):this.background.remove(),null===(e=this.node)||void 0===e||e.focus(),t&&this.stop(t)}helpDialog(t,e){new Ws({title:"MathJax Dialog Help",message:this.constructor.helpMessage,adaptor:t,className:"mjx-dialog-help",styles:{".mjx-dialog-help":{"max-width":"calc(min(50em, 80%))"}}}).attach(),this.stop(e)}inDialog(t){if(!this.dialog.contains(t.target))return!1;const{x:e,y:s}=t,{left:i,right:r,top:n,bottom:o}=this.dialog.getBoundingClientRect();return e>=i&&e<=r&&s>=n&&s<=o}stop(t){t.preventDefault&&t.preventDefault(),t.stopImmediatePropagation?t.stopImmediatePropagation():t.stopPropagation&&t.stopPropagation()}}Ws.keyActions=new Map([["Escape",(t,e)=>t.escKey(e)],["a",(t,e)=>t.aKey(e)],["m",(t,e)=>t.mKey(e)],["s",(t,e)=>t.sKey(e)],["ArrowRight",(t,e)=>t.arrowKey(e,"right")],["ArrowLeft",(t,e)=>t.arrowKey(e,"left")],["ArrowUp",(t,e)=>t.arrowKey(e,"up")],["ArrowDown",(t,e)=>t.arrowKey(e,"down")]]),Ws.styleId="MJX-DIALOG-styles",Ws.className="",Ws.id=0,Ws.styles={"mjx-dialog-background":{display:"flex","flex-direction":"column","justify-content":"center",position:"fixed",top:0,left:0,right:0,bottom:0,"z-index":1001},".mjx-dialog":{"max-width":"calc(min(60em, 90%))","max-height":"calc(min(50em, 85%))",border:"3px outset","border-radius":"15px",color:"black","background-color":"#DDDDDD","box-shadow":"0px 10px 20px #808080",padding:"4px 4px",cursor:"grab",overflow:"visible",display:"flex","flex-direction":"column","align-items":"center",position:"fixed",top:"-4%"},".mjx-dialog.mjx-moving":{cursor:"grabbing"},'.mjx-dialog > input[type="button"]':{width:"fit-content"},".mjx-dialog > mjx-dialog-spacer":{display:"block",height:".75em","flex-shrink":0},".mjx-dialog::backdrop":{opacity:0,cursor:"default"},"mjx-dialog":{all:"initial",cursor:"inherit",width:"100%",display:"flex","flex-direction":"column","flex-grow":1,"flex-shrink":1,overflow:"hidden"},"mjx-dialog > mjx-title":{display:"block","text-align":"center",margin:".25em 1.75em",overflow:"hidden","white-space":"nowrap","-webkit-user-select":"none","user-select":"none","flex-shrink":0},"mjx-dialog > mjx-title > h1":{"font-size":"125%",margin:0},"mjx-dialog > div":{margin:"0 1em .5em",padding:"8px 18px",overflow:"auto",border:"2px inset black","background-color":"white","text-align":"left",cursor:"default","flex-grow":1,"flex-shrink":1},"mjx-dialog > div > pre":{margin:0},".mjx-dialog-button":{position:"absolute",top:"6px",height:"17px",width:"17px",cursor:"default",display:"block",border:"2px solid #AAA","border-radius":"18px","font-family":'"Courier New", Courier',"text-align":"center",color:"#F0F0F0","-webkit-user-select":"none","user-select":"none"},".mjx-dialog-button:hover":{color:"white !important",border:"2px solid #CCC !important"},".mjx-dialog-button > mjx-dialog-icon":{display:"block","background-color":"#AAA",border:"1.5px solid","border-radius":"18px","line-height":0,padding:"8px 0 6px"},".mjx-dialog-button > mjx-dialog-icon:hover":{"background-color":"#CCC !important"},"mjx-dialog-close":{right:"6px","font-size":"20px;"},"mjx-dialog-help":{left:"6px","font-size":"14px;","font-weight":"bold"},".mjx-dialog-help mjx-dialog-help":{display:"none"},"mjx-dialog kbd":{display:"inline-block",padding:"3px 5px","font-size":"11px","line-height":"10px",color:"#444d56","vertical-align":"middle","background-color":"#fafbfc",border:"solid 1.5px #c6cbd1","border-bottom-color":"#959da5","border-radius":"3px","box-shadow":"inset -.5px -1px 0 #959da5"},'mjx-dialog-drag[data-drag="top"]':{height:"5px",position:"absolute",top:"-3px",left:"10px",right:"10px",cursor:"ns-resize"},'mjx-dialog-drag[data-drag="bottom"]':{height:"5px",position:"absolute",bottom:"-3px",left:"10px",right:"10px",cursor:"ns-resize"},'mjx-dialog-drag[data-drag="left"]':{width:"5px",position:"absolute",left:"-3px",top:"10px",bottom:"10px",cursor:"ew-resize"},'mjx-dialog-drag[data-drag="right"]':{width:"5px",position:"absolute",right:"-3px",top:"10px",bottom:"10px",cursor:"ew-resize"},'mjx-dialog-drag[data-drag="topleft"]':{width:"13px",height:"13px",position:"absolute",left:"-3px",top:"-3px",cursor:"nwse-resize"},'mjx-dialog-drag[data-drag="topright"]':{width:"13px",height:"13px",position:"absolute",right:"-3px",top:"-3px",cursor:"nesw-resize"},'mjx-dialog-drag[data-drag="botleft"]':{width:"13px",height:"13px",position:"absolute",left:"-3px",bottom:"-3px",cursor:"nesw-resize"},'mjx-dialog-drag[data-drag="botright"]':{width:"13px",height:"13px",position:"absolute",right:"-3px",bottom:"-3px",cursor:"nwse-resize"},"@media (prefers-color-scheme: dark)":{".mjx-dialog":{"background-color":"#303030","box-shadow":"0px 10px 20px #000",border:"3px outset #7C7C7C"},"mjx-dialog":{color:"#E0E0E0"},"mjx-dialog > div":{border:"2px inset #7C7C7C","background-color":"#222025"},".mjx-dialog a[href]":{color:"#86A7F5"},".mjx-dialog a[href]:visited":{color:"#DD98E2"},"mjx-dialog kbd":{color:"#F8F8F8","background-color":"#545454",border:"solid 1.5px #7A7C7E","border-bottom-color":"#707070","box-shadow":"inset -.5px -1px 0 #818589"},".mjx-dialog-button":{border:"2px solid #686868",color:"#A4A4A4"},".mjx-dialog-button:hover":{color:"#CBCBCB !important",border:"2px solid #888888 !important"},".mjx-dialog-button > mjx-dialog-icon":{"background-color":"#646464"},".mjx-dialog-button > mjx-dialog-icon:hover":{"background-color":"#888888 !important"}}},Ws.helpMessage='\n

The dialog boxes in MathJax are movable and sizeable.

\n\n

For mouse users, dragging any of the edges will enlarge or shrink\n the dialog box by moving that side. Dragging any of the corners\n changes the two sides that meet at that corner. Dragging elsewhere on\n the dialog frame will move the dialog without changing its size.

\n\n

For keyboard users, there are two ways to adjust the position\n and size of the dialog box. The first is to hold the\n Alt or Option key and press any of the arrow\n keys to move the dialog box in the given direction. Hold the\n Win or Command key and press any of the\n arrow keys to enlarge or shrink the dialog box. Left and right\n move the right-hand edge of the dialog, while up and down move the\n bottom edge of the dialog.\n

\n\n

For some users, holding two keys down at once may be difficult,\n so the second way is to press the m to start "move"\n mode, then use the arrow keys to move the dialog box in the given\n direction. Press m again to stop moving the dialog.\n Similarly, press s to start and stop "sizing" mode,\n where the arrows will change the size of the dialog box.

\n\n

Holding a shift key along with the arrow key will\n make larger changes in the size or position, for either method\n described above.

\n\n

Use Tab to move among the text, buttons, and links\n within the dialog. The Enter or Space key\n activates the focused item. The Escape key closes the\n dialog, as does clicking outside the dialog box, or clicking the\n "\xd7" icon in the upper right-hand corner of the dialog.

\n ';class Hs extends Ws{static post(t){const e=new this(t);return e.attach(),e}}var Fs=s(780);const $s=1e6,zs={px:1,in:96,cm:96/2.54,mm:96/25.4},Js={em:1,ex:.431,pt:.1,pc:1.2,mu:1/18},qs={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:$s};function Ks(t,e=0,s=1,i=16){if("string"!=typeof t&&(t=String(t)),""===t||null==t)return e;if(qs[t])return qs[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"),o=r[2];return Object.hasOwn(zs,o)?n*zs[o]/i/s:Object.hasOwn(Js,o)?n*Js[o]:"%"===o?n/100*e:n*e}function Xs(t){return(100*t).toFixed(1).replace(/\.?0+$/,"")+"%"}function Us(t){return Math.abs(t)<.001?"0":t.toFixed(3).replace(/\.?0+$/,"")+"em"}function Gs(t,e=-$s,s=16){return t*=s,e&&tthis.w&&(this.w=r),n>this.h&&(this.h=n),o>this.d&&(this.d=o)}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 Vs;return Object.assign(t,this),t}}Vs.fullWidth="100%",Vs.boxSides=[["Top",0,"h"],["Right",1,"w"],["Bottom",2,"d"],["Left",3,"w"]];var Ys=s(989),Zs=s(292);function Qs(t){return t.reduce((t,e)=>t+e,0)}function ti(t){return t.reduce((t,e)=>Math.max(t,e),0)}if(MathJax.loader&&MathJax.loader.checkVersion("core",xt.x,"core"),(0,Rt.combineWithMathJax)({_:{adaptors:{HTMLAdaptor:i,browserAdaptor:r},components:{global:Rt},core:{DOMAdaptor:Lt,FindMath:n,Handler:Q,HandlerList:Ls,InputJax:o,MathDocument:Z,MathItem:h,MathList:c,MmlTree:{Attributes:p,MML:G,MathMLVisitor:st,MmlFactory:V,MmlNode:E,MmlNodes:{HtmlNode:U,TeXAtom:K,maction:_,maligngroup:$,malignmark:z,math:g,mathchoice:X,menclose:S,merror:w,mfenced:M,mfrac:v,mglyph:J,mi:f,mmultiscripts:B,mn:R,mo:b,mpadded:A,mphantom:k,mroot:D,mrow:O,ms:I,mspace:N,msqrt:C,mstyle:T,msubsup:j,mtable:W,mtd:F,mtext:y,mtr:H,munderover:P,semantics:q},MmlVisitor:et,OperatorDictionary:x,SerializedMmlVisitor:it},OutputJax:a,Tree:{Factory:d,Node:m,NodeFactory:u,Visitor:tt,Wrapper:rt,WrapperFactory:nt}},handlers:{html_ts:dt,html:{HTMLDocument:ct,HTMLDomStrings:lt,HTMLHandler:ht,HTMLMathItem:ot,HTMLMathList:at}},mathjax:Ds,ui:{dialog:{DraggableDialog:pt,InfoDialog:mt}},util:{AsyncLoad:Fs,BBox:gt,BitField:Y,Entities:Ys,FunctionList:Ct,LinkedList:l,Options:Ot,PrioritizedList:ls,Retries:cs,StyleJson:ut,Styles:Zs,context:Ps,lengths:Et,numeric:ft,string:L}}}),MathJax.startup&&(MathJax.startup.registerConstructor("HTMLHandler",Ms),MathJax.startup.registerConstructor("browserAdaptor",It),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])}},281(t,e,s){"use strict";s.d(e,{s:()=>n});var i=s(288);const r=s(939).context.path(i.p),n={core:`${r}/core/core.js`,"adaptors/jsdom":`${r}/adaptors/jsdom/jsdom.js`,"adaptors/linkedom":`${r}/adaptors/linkedom/linkedom.js`,"adaptors/liteDOM":`${r}/adaptors/liteDOM/liteDOM.js`,"input/tex":`${r}/input/tex/tex.js`,"input/tex-base":`${r}/input/tex-base/tex-base.js`,"input/tex-full":`${r}/input/tex-full/tex-full.js`,"[tex]/action":`${r}/input/tex/extensions/action/action.js`,"[tex]/ams":`${r}/input/tex/extensions/ams/ams.js`,"[tex]/amscd":`${r}/input/tex/extensions/amscd/amscd.js`,"[tex]/autoload":`${r}/input/tex/extensions/autoload/autoload.js`,"[tex]/bbm":`${r}/input/tex/extensions/bbm/bbm.js`,"[tex]/bboldx":`${r}/input/tex/extensions/bboldx/bboldx.js`,"[tex]/bbox":`${r}/input/tex/extensions/bbox/bbox.js`,"[tex]/begingroup":`${r}/input/tex/extensions/begingroup/begingroup.js`,"[tex]/boldsymbol":`${r}/input/tex/extensions/boldsymbol/boldsymbol.js`,"[tex]/braket":`${r}/input/tex/extensions/braket/braket.js`,"[tex]/bussproofs":`${r}/input/tex/extensions/bussproofs/bussproofs.js`,"[tex]/cancel":`${r}/input/tex/extensions/cancel/cancel.js`,"[tex]/cases":`${r}/input/tex/extensions/cases/cases.js`,"[tex]/centernot":`${r}/input/tex/extensions/centernot/centernot.js`,"[tex]/color":`${r}/input/tex/extensions/color/color.js`,"[tex]/colortbl":`${r}/input/tex/extensions/colortbl/colortbl.js`,"[tex]/colorv2":`${r}/input/tex/extensions/colorv2/colorv2.js`,"[tex]/configmacros":`${r}/input/tex/extensions/configmacros/configmacros.js`,"[tex]/dsfont":`${r}/input/tex/extensions/dsfont/dsfont.js`,"[tex]/empheq":`${r}/input/tex/extensions/empheq/empheq.js`,"[tex]/enclose":`${r}/input/tex/extensions/enclose/enclose.js`,"[tex]/extpfeil":`${r}/input/tex/extensions/extpfeil/extpfeil.js`,"[tex]/gensymb":`${r}/input/tex/extensions/gensymb/gensymb.js`,"[tex]/html":`${r}/input/tex/extensions/html/html.js`,"[tex]/mathtools":`${r}/input/tex/extensions/mathtools/mathtools.js`,"[tex]/mhchem":`${r}/input/tex/extensions/mhchem/mhchem.js`,"[tex]/newcommand":`${r}/input/tex/extensions/newcommand/newcommand.js`,"[tex]/noerrors":`${r}/input/tex/extensions/noerrors/noerrors.js`,"[tex]/noundefined":`${r}/input/tex/extensions/noundefined/noundefined.js`,"[tex]/physics":`${r}/input/tex/extensions/physics/physics.js`,"[tex]/require":`${r}/input/tex/extensions/require/require.js`,"[tex]/setoptions":`${r}/input/tex/extensions/setoptions/setoptions.js`,"[tex]/tagformat":`${r}/input/tex/extensions/tagformat/tagformat.js`,"[tex]/texhtml":`${r}/input/tex/extensions/texhtml/texhtml.js`,"[tex]/textcomp":`${r}/input/tex/extensions/textcomp/textcomp.js`,"[tex]/textmacros":`${r}/input/tex/extensions/textmacros/textmacros.js`,"[tex]/unicode":`${r}/input/tex/extensions/unicode/unicode.js`,"[tex]/units":`${r}/input/tex/extensions/units/units.js`,"[tex]/upgreek":`${r}/input/tex/extensions/upgreek/upgreek.js`,"[tex]/verb":`${r}/input/tex/extensions/verb/verb.js`,"input/mml":`${r}/input/mml/mml.js`,"input/mml/entities":`${r}/input/mml/entities/entities.js`,"[mml]/mml3":`${r}/input/mml/extensions/mml3/mml3.js`,"input/asciimath":`${r}/input/asciimath/asciimath.js`,"output/chtml":`${r}/output/chtml/chtml.js`,"output/svg":`${r}/output/svg/svg.js`,"a11y/assistive-mml":`${r}/a11y/assistive-mml/assistive-mml.js`,"a11y/semantic-enrich":`${r}/a11y/semantic-enrich/semantic-enrich.js`,"a11y/speech":`${r}/a11y/speech/speech.js`,"a11y/complexity":`${r}/a11y/complexity/complexity.js`,"a11y/explorer":`${r}/a11y/explorer/explorer.js`,"a11y/sre":`${r}/a11y/sre/sre.js`,"[mathmaps]":`${r}/../../bundle/sre/mathmaps`,"ui/lazy":`${r}/ui/lazy/lazy.js`,"ui/menu":`${r}/ui/menu/menu.js`,"ui/no-dark-mode":`${r}/ui/nodarkmode/nodarkmode.js`,"ui/safe":`${r}/ui/safe/safe.js`,"mml-chtml":`${r}/mml-chtml/mml-chtml.js`,"mml-chtml-nofont":`${r}/mml-chtml-nofont/mml-chtml-nofont.js`,"mml-svg":`${r}/mml-svg/mml-svg.js`,"mml-svg-nofont":`${r}/mml-svg-nofont/mml-svg-nofont.js`,"tex-chtml":`${r}/tex-chtml/tex-chtml.js`,"tex-chtml-nofont":`${r}/tex-chtml-nofont/tex-chtml-nofont.js`,"tex-svg":`${r}/tex-svg/tex-svg.js`,"tex-svg-nofont":`${r}/tex-svg-nofont/tex-svg-nofont.js`,"tex-mml-chtml":`${r}/tex-mml-chtml/tex-mml-chtml.js`,"tex-mml-chtml-nofont":`${r}/tex-mml-chtml-nofont/tex-mml-chtml-nofont.js`,"tex-mml-svg":`${r}/tex-mml-svg/tex-mml-svg.js`,"tex-mml-svg-nofont":`${r}/tex-mml-svg-nofont/tex-mml-svg-nofont.js`,loader:`${r}/loader/loader.js`,startup:`${r}/startup/startup.js`}},61(t,e,s){"use strict";var i={};s.r(i),s.d(i,{CONFIG:()=>m,MathJax:()=>p,Startup:()=>u});var r=s(977);!Object.hasOwn&&r.MathJax.config.startup.polyfillHasOwn&&(Object.hasOwn=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)});var n=s(516),o=s(648),a=s(296),l=s(983),c=s(6),h=s(939),d=function(t,e,s,i){return new(s||(s=Promise))(function(r,n){function o(t){try{l(i.next(t))}catch(t){n(t)}}function a(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(o,a)}l((i=i.apply(t,e||[])).next())})};class u{static toMML(t){return u.visitor.visitTree(t,this.document)}static registerConstructor(t,e){u.constructors[t]=e}static useHandler(t,e=!1){m.handler&&!e||(m.handler=t)}static useAdaptor(t,e=!1){m.adaptor&&!e||(m.adaptor=t)}static useInput(t,e=!1){E&&!e||m.input.push(t)}static useOutput(t,e=!1){m.output&&!e||(m.output=t)}static extendHandler(t,e=10){u.extensions.add(t,e)}static defaultReady(){u.getComponents(),u.makeMethods(),u.pagePromise.then(()=>m.pageReady()).then(()=>u.promiseResolve()).catch(t=>u.promiseReject(t))}static defaultPageReady(){return(m.loadAllFontFiles&&u.output.font?u.output.font.loadDynamicFiles():Promise.resolve()).then(()=>{var t;return null===(t=u.document.menu)||void 0===t?void 0:t.loadingPromise}).then(m.typeset&&p.typesetPromise?()=>u.typesetPromise(m.elements):Promise.resolve()).then(()=>u.promiseResolve())}static typesetPromise(t){return this.hasTypeset=!0,u.document.whenReady(()=>d(this,void 0,void 0,function*(){u.document.options.elements=t,u.document.reset(),yield u.document.renderPromise()}))}static getComponents(){u.visitor=new p._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor,u.mathjax=p._.mathjax.mathjax,u.input=u.getInputJax(),u.output=u.getOutputJax(),u.adaptor=u.getAdaptor(),u.handler&&u.mathjax.handlers.unregister(u.handler),u.handler=u.getHandler(),u.handler&&(u.mathjax.handlers.register(u.handler),u.document=u.getDocument())}static makeMethods(){u.input&&u.output&&u.makeTypesetMethods();const t=u.output?u.output.name.toLowerCase():"";for(const e of u.input){const s=e.name.toLowerCase();u.makeMmlMethods(s,e),u.makeResetMethod(s,e),u.output&&u.makeOutputMethods(s,t,e)}p.done=()=>u.document.done(),p.whenReady=t=>u.document.whenReady(t)}static makeTypesetMethods(){p.typeset=(t=null)=>{this.hasTypeset=!0,u.document.options.elements=t,u.document.reset(),u.document.render()},p.typesetPromise=(t=null)=>u.typesetPromise(t),p.typesetClear=(t=null)=>{t?u.document.clearMathItemsWithin(t):u.document.clear()}}static makeOutputMethods(t,e,s){const i=t+"2"+e;p[i]=(t,e={})=>(e=Object.assign(Object.assign({},e),{format:s.name}),u.document.convert(t,e)),p[i+"Promise"]=(t,e={})=>(e=Object.assign(Object.assign({},e),{format:s.name}),u.document.convertPromise(t,e)),p[e+"Stylesheet"]=()=>u.output.styleSheet(u.document),"getMetricsFor"in u.output&&(p.getMetricsFor=(t,e)=>u.output.getMetricsFor(t,e))}static makeMmlMethods(t,e){const s=p._.core.MathItem.STATE;p[t+"2mml"]=(t,i={})=>(i=Object.assign(Object.assign({},i),{end:s.CONVERT,format:e.name}),u.toMML(u.document.convert(t,i))),p[t+"2mmlPromise"]=(t,...i)=>d(this,[t,...i],void 0,function*(t,i={}){i=Object.assign(Object.assign({},i),{end:s.CONVERT,format:e.name});const r=yield u.document.convertPromise(t,i);return u.toMML(r)})}static makeResetMethod(t,e){p[t+"Reset"]=(...t)=>e.reset(...t)}static getInputJax(){const t=[];for(const e of m.input){const s=u.constructors[e];if(!s)throw Error('Input Jax "'+e+'" is not defined (has it been loaded?)');t[e]=new s(p.config[e]),t.push(t[e])}return t}static getOutputJax(){const t=m.output;if(!t)return null;const e=u.constructors[t];if(!e)throw Error('Output Jax "'+t+'" is not defined (has it been loaded?)');return new e(p.config[t])}static getAdaptor(){const t=m.adaptor;if(!t||"none"===t)return null;const e=u.constructors[t];if(!e)throw Error('DOMAdaptor "'+t+'" is not defined (has it been loaded?)');return e(p.config[t])}static getHandler(){const t=m.handler;if(!t||"none"===t||!u.adaptor)return null;const e=u.constructors[t];if(!e)throw Error('Handler "'+t+'" is not defined (has it been loaded?)');let s=new e(u.adaptor,5);for(const t of u.extensions)s=t.item(s);return s}static getDocument(t=null){return u.mathjax.document(t||m.document,Object.assign(Object.assign({},p.config.options),{InputJax:u.input,OutputJax:u.output}))}}u.extensions=new l.PrioritizedList,u.constructors={},u.input=[],u.output=null,u.handler=null,u.adaptor=null,u.elements=null,u.document=null,u.promise=new Promise((t,e)=>{u.promiseResolve=t,u.promiseReject=e}),u.pagePromise=new Promise((t,e)=>{const s=r.GLOBAL.document;if(s&&s.readyState&&"complete"!==s.readyState&&"interactive"!==s.readyState){const e=()=>t();s.defaultView.addEventListener("load",e,!0),s.defaultView.addEventListener("DOMContentLoaded",e,!0)}else t()}),u.hasTypeset=!1,u.defaultOptionError=c.OPTIONS.optionError;const p=r.MathJax;void 0===p._.startup&&((0,r.combineDefaults)(p.config,"startup",{input:[],output:"",handler:null,adaptor:null,document:h.context.document||"",elements:null,typeset:!0,ready:u.defaultReady.bind(u),pageReady:u.defaultPageReady.bind(u),polyfillHasOwn:!0}),(0,r.combineWithMathJax)({startup:u,options:{}}),p.config.startup.invalidOption&&(c.OPTIONS.invalidOption=p.config.startup.invalidOption),p.config.startup.optionError&&(c.OPTIONS.optionError=p.config.startup.optionError));const m=p.config.startup,E=0!==m.input.length;MathJax.loader&&MathJax.loader.checkVersion("startup",n.x,"startup"),(0,r.combineWithMathJax)({_:{components:{loader:o,package:a,startup:i}}});o.Loader.preLoaded("loader","startup"),(0,r.combineDefaults)(MathJax.config.loader,"dependencies",{"a11y/semantic-enrich":["input/mml","a11y/sre"],"a11y/speech":["a11y/semantic-enrich"],"a11y/complexity":["a11y/semantic-enrich"],"a11y/explorer":["a11y/speech"],"[mml]/mml3":["input/mml"],"[tex]/action":["input/tex-base"],"[tex]/ams":["input/tex-base","[tex]/newcommand"],"[tex]/amscd":["input/tex-base"],"[tex]/autoload":["input/tex-base","[tex]/require"],"[tex]/bbm":["input/tex-base"],"[tex]/bboldx":["input/tex-base","[tex]/textmacros"],"[tex]/bbox":["input/tex-base"],"[tex]/begingroup":["input/tex-base","[tex]/newcommand"],"[tex]/boldsymbol":["input/tex-base"],"[tex]/braket":["input/tex-base"],"[tex]/bussproofs":["input/tex-base"],"[tex]/cancel":["input/tex-base","[tex]/enclose"],"[tex]/cases":["[tex]/empheq"],"[tex]/centernot":["input/tex-base"],"[tex]/color":["input/tex-base"],"[tex]/colortbl":["input/tex-base","[tex]/color"],"[tex]/colorv2":["input/tex-base"],"[tex]/configmacros":["input/tex-base","[tex]/newcommand"],"[tex]/dsfont":["input/tex-base"],"[tex]/empheq":["input/tex-base","[tex]/ams"],"[tex]/enclose":["input/tex-base"],"[tex]/extpfeil":["input/tex-base","[tex]/newcommand","[tex]/ams"],"[tex]/gensymb":["input/tex-base"],"[tex]/html":["input/tex-base"],"[tex]/mathtools":["input/tex-base","[tex]/newcommand","[tex]/ams","[tex]/boldsymbol"],"[tex]/mhchem":["input/tex-base","[tex]/ams"],"[tex]/newcommand":["input/tex-base"],"[tex]/noerrors":["input/tex-base"],"[tex]/noundefined":["input/tex-base"],"[tex]/physics":["input/tex-base"],"[tex]/require":["input/tex-base"],"[tex]/setoptions":["input/tex-base"],"[tex]/tagformat":["input/tex-base"],"[tex]/texhtml":["input/tex-base"],"[tex]/textcomp":["input/tex-base","[tex]/textmacros"],"[tex]/textmacros":["input/tex-base"],"[tex]/unicode":["input/tex-base"],"[tex]/units":["input/tex-base"],"[tex]/upgreek":["input/tex-base"],"[tex]/verb":["input/tex-base"],"ui/menu":["a11y/sre"]}),(0,r.combineDefaults)(MathJax.config.loader,"paths",{tex:"[mathjax]/input/tex/extensions",mml:"[mathjax]/input/mml/extensions",sre:"[mathjax]/sre",mathmaps:"[sre]/mathmaps"}),(0,r.combineDefaults)(MathJax.config.loader,"provides",{startup:["loader"],"input/tex":["input/tex-base","[tex]/ams","[tex]/newcommand","[tex]/textmacros","[tex]/noundefined","[tex]/require","[tex]/autoload","[tex]/configmacros"]}),(0,r.combineDefaults)(MathJax.config.loader,"source",{"[tex]/amsCd":"[tex]/amscd","[tex]/colorV2":"[tex]/colorv2","[tex]/configMacros":"[tex]/configmacros","[tex]/tagFormat":"[tex]/tagformat"})},977(t,e,s){"use strict";s.r(e),s.d(e,{GLOBAL:()=>n,MathJax:()=>h,combineConfig:()=>a,combineDefaults:()=>l,combineWithMathJax:()=>c,isObject:()=>o});var i=s(516);const r={},n="undefined"!=typeof window?window:void 0!==s.g?s.g:"undefined"!=typeof globalThis?globalThis:r;function o(t){return"object"==typeof t&&null!==t}function a(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]&&(o(t[r])&&o(e[r])?a(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 l(t,e,s){t[e]||(t[e]={}),t=t[e];for(const e of Object.keys(s))o(t[e])&&o(s[e])?l(t,e,s[e]):null==t[e]&&null!=s[e]&&(t[e]=s[e]);return t}function c(t){return a(h,t)}void 0!==n.MathJax&&n.MathJax.constructor==={}.constructor||(n.MathJax={}),n.MathJax.version||(n.MathJax={version:i.x,_:{},config:n.MathJax});const h=n.MathJax},648(t,e,s){"use strict";s.r(e),s.d(e,{CONFIG:()=>p,Loader:()=>d,MathJax:()=>u,PathFilters:()=>c});var i=s(977),r=s(296),n=s(174);const o=i.MathJax.config||{};var a=s(939),l=function(t,e,s,i){return new(s||(s=Promise))(function(r,n){function o(t){try{l(i.next(t))}catch(t){n(t)}}function a(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(o,a)}l((i=i.apply(t,e||[])).next())})};const c={source:t=>(Object.hasOwn(p.source,t.name)&&(t.name=p.source[t.name]),!0),normalize:t=>{const e=t.name;return e.match(/^(?:[a-z]+:\/)?\/|[a-z]:[/\\]|\[/i)||(t.name="[mathjax]/"+e.replace(/^\.\//,"")),!0},prefix:t=>{let e;for(;(e=t.name.match(/^\[([^\]]*)\]/))&&Object.hasOwn(p.paths,e[1]);)t.name=p.paths[e[1]]+t.name.substring(e[0].length);return!0},addExtension:t=>(t.addExtension&&!t.name.match(/\.[^/]+$/)&&(t.name+=".js"),!0)},h=i.MathJax.version,d={versions:new Map,nestedLoads:[],ready(...t){0===t.length&&(t=Array.from(r.Package.packages.keys()));const e=[];for(const s of t){const t=r.Package.packages.get(s)||new r.Package(s,!0);e.push(t.promise)}return Promise.all(e)},load(...t){if(0===t.length)return Promise.resolve([]);let e=[];this.nestedLoads.unshift(e);const s=Promise.resolve().then(()=>l(this,void 0,void 0,function*(){const s=[];for(const e of t){let t=r.Package.packages.get(e);t||(t=new r.Package(e),t.provides(p.provides[e])),t.checkNoLoad(),s.push(t.promise.then(()=>(p.versionWarnings&&t.isLoaded&&!d.versions.has(r.Package.resolvePath(e))&&console.warn(`No version information available for component ${e}`),t.result)))}r.Package.loadAll();const i=yield Promise.all(s);for(;e.length;){const t=Promise.all(e);e=this.nestedLoads[this.nestedLoads.indexOf(e)]=[],yield t}return this.nestedLoads.splice(this.nestedLoads.indexOf(e),1),i}));return this.nestedLoads.slice(1).forEach(t=>t.push(s)),s},preLoaded(...t){for(const e of t){let t=r.Package.packages.get(e);t||(t=new r.Package(e,!0),t.provides(p.provides[e])),t.loaded()}},addPackageData(t,e){let s=p[t];s||(s=p[t]={});for(const[t,i]of Object.entries(e))if(Array.isArray(i)){s[t]||(s[t]=[]);const e=new Set([...s[t],...i]);s[t]=[...e]}else s[t]=i},defaultReady(){void 0!==u.startup&&u.config.startup.ready()},getRoot(){if(a.context.document){const t=a.context.document.currentScript||a.context.document.getElementById("MathJax-script");if(t&&t instanceof HTMLScriptElement)return t.src.replace(/\/[^/]*$/,"")}return o?.loader?.paths?.mathjax||o?.__dirname||"/"},checkVersion(t,e,s){return this.saveVersion(t),!(!p.versionWarnings||e===h)&&(console.warn(`Component ${t} uses ${e} of MathJax; version in use is ${h}`),!0)},saveVersion(t){d.versions.set(r.Package.resolvePath(t),h)},pathFilters:new n.FunctionList};d.pathFilters.add(c.source,0),d.pathFilters.add(c.normalize,10),d.pathFilters.add(c.prefix,20),d.pathFilters.add(c.addExtension,30);const u=i.MathJax;if(void 0===u.loader){(0,i.combineDefaults)(u.config,"loader",{paths:{mathjax:d.getRoot(),fonts:a.context.window?"https://cdn.jsdelivr.net/npm/@mathjax":"@mathjax"},source:{},dependencies:{},provides:{},load:[],ready:d.defaultReady.bind(d),failed:t=>console.log(`MathJax(${t.package||"?"}): ${t.message}`),require:null,pathFilters:[],versionWarnings:!0}),(0,i.combineWithMathJax)({loader:d});for(const t of u.config.loader.pathFilters)Array.isArray(t)?d.pathFilters.add(t[0],t[1]):d.pathFilters.add(t)}const p=u.config.loader},296(t,e,s){"use strict";s.r(e),s.d(e,{Package:()=>o,PackageError:()=>n});var i=s(648),r=s(939);class n extends Error{constructor(t,e){super(t),this.package=e}}class o{get canLoad(){return 0===this.dependencyCount&&!this.noLoad&&!this.isLoading&&!this.hasFailed}static loadPromise(t){const e=i.CONFIG[t]||{},s=e.extraLoads?i.Loader.load(...e.extraLoads):Promise.resolve(),r=e.checkReady||(()=>Promise.resolve());return s.then(()=>r())}static resolvePath(t,e=!0){const s={name:t,original:t,addExtension:e};return i.Loader.pathFilters.execute(s),s.name}static loadAll(){for(const t of this.packages.values())t.canLoad&&t.load()}constructor(t,e=!1){this.isLoaded=!1,this.result={},this.isLoading=!1,this.hasFailed=!1,this.dependents=[],this.dependencies=[],this.dependencyCount=0,this.provided=[],this.name=t,this.noLoad=e,o.packages.set(t,this),this.promise=this.makePromise(this.makeDependencies())}makeDependencies(){const t=[],e=o.packages,s=this.noLoad,r=this.name,n=[];Object.hasOwn(i.CONFIG.dependencies,r)?n.push(...i.CONFIG.dependencies[r]):"core"!==r&&n.push("core");for(const i of n){const r=e.get(i)||new o(i,s);this.dependencies.includes(r)||(r.addDependent(this,s),this.dependencies.push(r),r.isLoaded||(this.dependencyCount++,t.push(r.promise)))}return t}makePromise(t){let e=new Promise((t,e)=>{this.resolve=t,this.reject=e});const s=i.CONFIG[this.name]||{};return s.ready&&(e=e.then(t=>s.ready(this.name))),t.length&&(t.push(e),e=Promise.all(t).then(t=>t.join(", "))),s.failed&&e.catch(t=>s.failed(new n(t,this.name))),e}load(){if(!this.isLoaded&&!this.isLoading&&!this.noLoad){this.isLoading=!0;const t=o.resolvePath(this.name);i.CONFIG.require?this.loadCustom(t):this.loadScript(t)}}loadCustom(t){try{const e=i.CONFIG.require(t);e instanceof Promise?e.then(t=>this.result=t).then(()=>this.checkLoad()).catch(e=>this.failed("Can't load \""+t+'"\n'+e.message.trim())):(this.result=e,this.checkLoad())}catch(t){this.failed(t.message)}}loadScript(t){const e=r.context.document.createElement("script");e.src=t,e.charset="UTF-8",e.onload=t=>this.checkLoad(),e.onerror=e=>this.failed("Can't load \""+t+'"'),r.context.document.head.appendChild(e)}loaded(){this.isLoaded=!0,this.isLoading=!1;for(const t of this.dependents)t.requirementSatisfied();for(const t of this.provided)t.loaded();this.resolve(this.name)}failed(t){this.hasFailed=!0,this.isLoading=!1,this.reject(new n(t,this.name))}checkLoad(){o.loadPromise(this.name).then(()=>this.loaded()).catch(t=>this.failed(t))}requirementSatisfied(){this.dependencyCount&&(this.dependencyCount--,this.canLoad&&this.load())}provides(t=[]){for(const e of t){let t=o.packages.get(e);t||(i.CONFIG.dependencies[e]||(i.CONFIG.dependencies[e]=[]),i.CONFIG.dependencies[e].push(e),t=new o(e,!0),t.isLoading=!0),this.provided.push(t)}}addDependent(t,e){this.dependents.push(t),e||this.checkNoLoad()}checkNoLoad(){if(this.noLoad){this.noLoad=!1;for(const t of this.dependencies)t.checkNoLoad()}}}o.packages=new Map},516(t,e,s){"use strict";s.d(e,{x:()=>i});const i="4.1.1"},502(t,e,s){"use strict";s.r(e),s.d(e,{AbstractDOMAdaptor:()=>i});class i{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):""}}},903(t,e,s){"use strict";s.r(e),s.d(e,{HandlerList:()=>r});var i=s(983);class r extends i.PrioritizedList{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)}}},850(t,e,s){"use strict";s.r(e),s.d(e,{mathjax:()=>a});var i=s(516),r=s(903),n=s(462),o=s(939);const a={version:i.x,context:o.context,handlers:new r.HandlerList,document:function(t,e){return a.handlers.document(t,e)},handleRetriesFor:n.handleRetriesFor,retryAfter:n.retryAfter,asyncLoad:null,asyncIsSynchronous:!1}},780(t,e,s){"use strict";s.r(e),s.d(e,{asyncLoad:()=>r});var i=s(850);function r(t){return i.mathjax.asyncLoad?new Promise((e,s)=>{const r=i.mathjax.asyncLoad(t);r instanceof Promise?r.then(t=>e(t)).catch(t=>s(t)):e(r)}):Promise.reject(`Can't load '${t}': No mathjax.asyncLoad method specified`)}},989(t,e,s){"use strict";s.r(e),s.d(e,{add:()=>l,entities:()=>o,numeric:()=>u,options:()=>n,remove:()=>c,translate:()=>h});var i=s(462),r=s(780);const n={loadMissingEntities:!0},o={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"},a={};function l(t,e){Object.assign(o,t),a[e]=!0}function c(t){delete o[t]}function h(t){return t.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,d)}function d(t,e){if("#"===e.charAt(0))return u(e.slice(1));if(o[e])return o[e];if(n.loadMissingEntities){const t=e.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:e.charAt(0).toLowerCase();a[t]||(a[t]=!0,(0,i.retryAfter)((0,r.asyncLoad)("./util/entities/"+t+".js")))}return t}function u(t){const e="x"===t.charAt(0)?parseInt(t.slice(1),16):parseInt(t);return String.fromCodePoint(e)}},174(t,e,s){"use strict";s.r(e),s.d(e,{FunctionList:()=>r});var i=s(983);class r extends i.PrioritizedList{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(;++er(t));if(!1===o)return void i(!1)}i(!0)}()})}}},6(t,e,s){"use strict";s.r(e),s.d(e,{APPEND:()=>n,Expandable:()=>l,OPTIONS:()=>a,REMOVE:()=>o,copy:()=>u,defaultOptions:()=>m,expandable:()=>c,insert:()=>p,isObject:()=>r,keys:()=>d,lookup:()=>x,makeArray:()=>h,selectOptions:()=>g,selectOptionsFromKeys:()=>f,separateOptions:()=>R,userOptions:()=>E});const i={}.constructor;function r(t){return"object"==typeof t&&null!==t&&(t.constructor===i||t.constructor===l)}const n="[+]",o="[-]",a={invalidOption:"warn",optionError:(t,e)=>{if("fatal"===a.invalidOption)throw new Error(t);console.warn("MathJax: "+t)}};class l{}function c(t){return Object.assign(Object.create(l.prototype),t)}function h(t){return Array.isArray(t)?t:[t]}function d(t){return t?Object.keys(t).concat(Object.getOwnPropertySymbols(t)):[]}function u(t){const e={};for(const s of d(t)){const i=Object.getOwnPropertyDescriptor(t,s),n=i.value;Array.isArray(n)?i.value=p([],n,!1):r(n)&&(i.value=u(n)),i.enumerable&&(e[s]=i)}return Object.defineProperties(t.constructor===l?c({}):{},e)}function p(t,e,s=!0){for(let i of d(e)){if(s&&void 0===t[i]&&t.constructor!==l){"symbol"==typeof i&&(i=i.toString()),a.optionError(`Invalid option "${i}" (no default value).`,i);continue}const c=e[i];let h=t[i];if(!r(c)||null===h||"object"!=typeof h&&"function"!=typeof h)Array.isArray(c)?(t[i]=[],p(t[i],c,!1)):r(c)?t[i]=u(c):t[i]=c;else{const e=d(c);Array.isArray(h)&&(1===e.length&&(e[0]===n||e[0]===o)&&Array.isArray(c[e[0]])||2===e.length&&e.sort().join(",")===n+","+o&&Array.isArray(c[n])&&Array.isArray(c[o]))?(c[o]&&(h=t[i]=h.filter(t=>c[o].indexOf(t)<0)),c[n]&&(t[i]=[...h,...c[n]])):p(h,c,s)}}return t}function m(t,...e){return e.forEach(e=>p(t,e,!1)),t}function E(t,...e){return e.forEach(e=>p(t,e,!0)),t}function g(t,...e){const s={};for(const i of e)Object.hasOwn(t,i)&&(s[i]=t[i]);return s}function f(t,e){return g(t,...Object.keys(e))}function R(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 x(t,e,s=null){return Object.hasOwn(e,t)?e[t]:s}},983(t,e,s){"use strict";s.r(e),s.d(e,{PrioritizedList:()=>i});class i{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=i.DEFAULTPRIORITY){let s=this.items.length;do{s--}while(s>=0&&e=0&&this.items[e].item!==t);return e>=0&&this.items.splice(e,1),this}}i.DEFAULTPRIORITY=5},462(t,e,s){"use strict";function i(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 r(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}s.r(e),s.d(e,{handleRetriesFor:()=>i,retryAfter:()=>r})},292(t,e,s){"use strict";s.r(e),s.d(e,{Styles:()=>g,TRBL:()=>i,WSC:()=>r});const i=["top","right","bottom","left"],r=["width","style","color"];function n(t){const e=t.split(/((?:'[^'\n]*'|"[^"\n]*"|,[\s\n]|[^\s\n])*)/g),s=[];for(;e.length>1;)e.shift(),s.push(e.shift());return s}function o(t){const e=n(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 g.connect[t].children)this.setStyle(this.childName(t,s),e.shift())}function a(t){const e=g.connect[t].children,s=[];for(const i of e){const e=this.styles[this.childName(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(" ")}function l(t){a.call(this,t),this.combineChildren(t),c.call(this,t),this.combineParent(t)}function c(t){if(!g.connect[t])return;const e=[...g.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];s&&(this.styles[t]=s)}const h=/^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,d=/^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/;function u(t){const e={width:"",style:"",color:""};for(const s of n(this.styles[t]))s.match(h)&&""===e.width?e.width=s:s.match(d)&&""===e.style?e.style=s:e.color=s;for(const s of g.connect[t].children)this.setStyle(this.childName(t,s),e[s])}function p(t){const e=[];for(const s of g.connect[t].children){const i=this.styles[this.childName(t,s)];i&&e.push(i)}e.length>1?this.styles[t]=e.join(" "):delete this.styles[t]}const m={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 E(t,e){for(const s of g.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 g{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(/.*-/,""),o=this.childName(this.parentName(r),n);!this.styles[i]||this.styles[o]||this.styles[r]&&(null===(e=null===(t=g.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){t=this.normalizeName(t),this.setStyle(t,String(e));const s=g.connect[t];if(null==s?void 0:s.subPart)s.combine.call(this,t);else if(this.combineParent(t),t.match(/-.*-/)){const e=t.replace(/-.*-/,"-");c.call(this,e)}}combineParent(t){for(var e;t.match(/-/);){const s=t;t=this.parentName(t);const i=g.connect[t];if(!g.connect[s]&&!(null===(e=null==i?void 0:i.children)||void 0===e?void 0:e.includes(s.substring(t.length+1))))break;i.combine.call(this,t)}if(!this.styles[t])return;const s=g.connect[t];for(const e of(null==s?void 0:s.parts)||[])delete this.styles[this.childName(t,e)]}get(t){return t=this.normalizeName(t),Object.hasOwn(this.styles,t)?this.styles[t]:""}setStyle(t,e){var s;this.styles[t]=this.sanitizeValue(e),(null===(s=g.connect[t])||void 0===s?void 0:s.children)&&g.connect[t].split.call(this,t),""===e&&delete this.styles[t]}combineChildren(t){const e=this.parentName(t);for(const s of g.connect[t].children){const t=this.childName(e,s);g.connect[t].combine.call(this,t)}}parentName(t){const e=t.replace(/-[^-]*$/,"");return t===e?"":e}childName(t,e){var s;return e.match(/-/)?e:((null===(s=g.connect[t])||void 0===s?void 0:s.subPart)&&(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)}}}g.pattern={sanitize:/['";]/,value:/^((:?'(?:\\.|[^'])*(?:'|$)|"(?:\\.|[^"])*(?:"|$)|\n|\\.|[^'";])*?)[\s\n]*(?:;|$).*/,style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'(?:\\.|[^'])*(?:'|$)|"(?:\\.|[^"])*(?:"|$)|\n|\\.|[^'";])*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g},g.connect={padding:{children:i,split:o,combine:a},margin:{children:i,split:o,combine:a},border:{children:i,parts:r,split:function(t){for(const e of g.connect[t].children)this.setStyle(this.childName(t,e),this.styles[t])},combine:c},"border-top":{children:r,split:u,combine:p},"border-right":{children:r,split:u,combine:p},"border-bottom":{children:r,split:u,combine:p},"border-left":{children:r,split:u,combine:p},"border-width":{children:i,split:o,combine:l,subPart:!0},"border-style":{children:i,split:o,combine:l,subPart:!0},"border-color":{children:i,split:o,combine:l,subPart:!0},font:{children:["style","variant","weight","stretch","line-height","size","family"],split:function(t){const e=n(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(m))if((Array.isArray(s[e])||""===s[e])&&t.match(m[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))}E.call(this,t,s),delete this.styles[t]},combine:function(t){}}}},939(t,e,s){"use strict";s.r(e),s.d(e,{context:()=>r,hasWindow:()=>i});const i="undefined"!=typeof window,r={window:i?window:null,document:i?window.document:null,os:(()=>{if(i&&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"}else if("undefined"!=typeof process)return{linux:"Unix",android:"Unix",aix:"Unix",freebsd:"Unix",netbsd:"Unix",openbsd:"Unix",sunos:"Unix",darwin:"MacOS",win32:"Windows",cygwin:"Windows"}[process.platform]||process.platform;return"unknown"})(),path:t=>t};"Windows"===r.os&&(r.path=t=>t.match(/^[/\\]?[a-zA-Z]:[/\\]/)?"file://"+t.replace(/\\/g,"/").replace(/^\//,""):t.replace(/^\//,"file:///"))}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var s=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t](s,s.exports,__webpack_require__),s.exports}__webpack_require__.d=(t,e)=>{for(var s in e)__webpack_require__.o(e,s)&&!__webpack_require__.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";__webpack_require__.d(__webpack_exports__,{MathJax:()=>node_main_MathJax});var _startup_init_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(61),_js_components_loader_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(648),_js_components_package_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(296),_js_components_global_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(977),_js_util_context_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(939),_core_core_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(586),_adaptors_liteDOM_liteDOM_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(164),_source_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(281);const node_main_MathJax=__webpack_require__.g.MathJax,path=eval('require("path")'),dir=_js_util_context_js__WEBPACK_IMPORTED_MODULE_4__.context.path(node_main_MathJax.config.__dirname);(0,_js_components_global_js__WEBPACK_IMPORTED_MODULE_3__.combineDefaults)(node_main_MathJax.config,"loader",{paths:{"mathjax-newcm":"@mathjax/mathjax-newcm-font"},require:eval("(file) => import(file)"),failed:t=>{throw t}}),(0,_js_components_global_js__WEBPACK_IMPORTED_MODULE_3__.combineDefaults)(node_main_MathJax.config,"output",{font:"mathjax-newcm"}),_js_components_loader_js__WEBPACK_IMPORTED_MODULE_1__.Loader.preLoaded("loader","startup","core","adaptors/liteDOM"),"node-main"===path.basename(dir)?(_js_components_loader_js__WEBPACK_IMPORTED_MODULE_1__.CONFIG.paths.esm=_js_components_loader_js__WEBPACK_IMPORTED_MODULE_1__.CONFIG.paths.mathjax,_js_components_loader_js__WEBPACK_IMPORTED_MODULE_1__.CONFIG.paths.sre="[esm]/sre",_js_components_loader_js__WEBPACK_IMPORTED_MODULE_1__.CONFIG.paths.mathjax=path.dirname(dir),(0,_js_components_global_js__WEBPACK_IMPORTED_MODULE_3__.combineDefaults)(_js_components_loader_js__WEBPACK_IMPORTED_MODULE_1__.CONFIG,"source",_source_js__WEBPACK_IMPORTED_MODULE_7__.s)):_js_components_loader_js__WEBPACK_IMPORTED_MODULE_1__.CONFIG.paths.mathjax=dir;const ROOT=path.resolve(dir,"..","..","..",path.basename(path.dirname(dir))),REQUIRE=node_main_MathJax.config.loader.require;node_main_MathJax._.mathjax.mathjax.asyncLoad=function(t){return REQUIRE("."===t.charAt(0)?path.resolve(ROOT,t):"["===t.charAt(0)?_js_components_package_js__WEBPACK_IMPORTED_MODULE_2__.Package.resolvePath(t):t)};const init=node_main_MathJax.init=(t={})=>((0,_js_components_global_js__WEBPACK_IMPORTED_MODULE_3__.combineConfig)(node_main_MathJax.config,t),_js_components_loader_js__WEBPACK_IMPORTED_MODULE_1__.Loader.load(..._js_components_loader_js__WEBPACK_IMPORTED_MODULE_1__.CONFIG.load).then(()=>_js_components_loader_js__WEBPACK_IMPORTED_MODULE_1__.CONFIG.ready()).then(()=>node_main_MathJax.startup.promise).then(()=>node_main_MathJax).catch(t=>_js_components_loader_js__WEBPACK_IMPORTED_MODULE_1__.CONFIG.failed(t)))})(),exports.MathJax=__webpack_exports__.MathJax})();