import{bL as Mn}from"./index-ff703318.js";var Ft={exports:{}},pa;function Tn(){return pa||(pa=1,function(va,Bn){(function(ae,fe){va.exports=fe()})(typeof self<"u"?self:Mn,function(){return function(){var X0={};(function(){X0.d=function(l,e){for(var t in e)X0.o(e,t)&&!X0.o(l,t)&&Object.defineProperty(l,t,{enumerable:!0,get:e[t]})}})(),function(){X0.o=function(l,e){return Object.prototype.hasOwnProperty.call(l,e)}}();var ae={};X0.d(ae,{default:function(){return wn}});var fe=function l(e,t){this.position=void 0;var r="KaTeX parse error: "+e,a,n=t&&t.loc;if(n&&n.start<=n.end){var s=n.lexer.input;a=n.start;var u=n.end;a===s.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var m=s.slice(a,u).replace(/[^]/g,"$&̲"),d;a>15?d="…"+s.slice(a-15,a):d=s.slice(0,a);var v;u+15":">","<":"<",'"':""","'":"'"},ka=/[&><"']/g;function Sa(l){return String(l).replace(ka,function(e){return wa[e]})}var Rt=function l(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?l(e.body[0]):e:e.type==="font"?l(e.body):e},Aa=function(e){var t=Rt(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},Ma=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},Ba=function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return t!=null?t[1]:"_relative"},I={contains:ga,deflt:ba,escape:Sa,hyphenate:xa,getBaseElem:Rt,isCharacterBox:Aa,protocolFromUrl:Ba},pe={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:function(e){return"#"+e}},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:function(e,t){return t.push(e),t}},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:function(e){return Math.max(0,e)},cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:function(e){return Math.max(0,e)},cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:function(e){return Math.max(0,e)},cli:"-e, --max-expand ",cliProcessor:function(e){return e==="Infinity"?1/0:parseInt(e)}},globalGroup:{type:"boolean",cli:!1}};function za(l){if(l.default)return l.default;var e=l.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var Ge=function(){function l(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in pe)if(pe.hasOwnProperty(r)){var a=pe[r];this[r]=t[r]!==void 0?a.processor?a.processor(t[r]):t[r]:za(a)}}var e=l.prototype;return e.reportNonstrict=function(r,a,n){var s=this.strict;if(typeof s=="function"&&(s=s(r,a,n)),!(!s||s==="ignore")){if(s===!0||s==="error")throw new M("LaTeX-incompatible input and strict mode is set to 'error': "+(a+" ["+r+"]"),n);s==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+r+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+a+" ["+r+"]"))}},e.useStrictBehavior=function(r,a,n){var s=this.strict;if(typeof s=="function")try{s=s(r,a,n)}catch{s="error"}return!s||s==="ignore"?!1:s===!0||s==="error"?!0:s==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+r+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+a+" ["+r+"]")),!1)},e.isTrusted=function(r){r.url&&!r.protocol&&(r.protocol=I.protocolFromUrl(r.url));var a=typeof this.trust=="function"?this.trust(r):this.trust;return!!a},l}(),N0=function(){function l(t,r,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=a}var e=l.prototype;return e.sup=function(){return y0[Ta[this.id]]},e.sub=function(){return y0[Ca[this.id]]},e.fracNum=function(){return y0[Da[this.id]]},e.fracDen=function(){return y0[Na[this.id]]},e.cramp=function(){return y0[Ea[this.id]]},e.text=function(){return y0[qa[this.id]]},e.isTight=function(){return this.size>=2},l}(),Ve=0,ve=1,j0=2,A0=3,ne=4,m0=5,$0=6,a0=7,y0=[new N0(Ve,0,!1),new N0(ve,0,!0),new N0(j0,1,!1),new N0(A0,1,!0),new N0(ne,2,!1),new N0(m0,2,!0),new N0($0,3,!1),new N0(a0,3,!0)],Ta=[ne,m0,ne,m0,$0,a0,$0,a0],Ca=[m0,m0,m0,m0,a0,a0,a0,a0],Da=[j0,A0,ne,m0,$0,a0,$0,a0],Na=[A0,A0,m0,m0,a0,a0,a0,a0],Ea=[ve,ve,A0,A0,m0,m0,a0,a0],qa=[Ve,ve,j0,A0,j0,A0,j0,A0],F={DISPLAY:y0[Ve],TEXT:y0[j0],SCRIPT:y0[ne],SCRIPTSCRIPT:y0[$0]},Ue=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Fa(l){for(var e=0;e=a[0]&&l<=a[1])return t.name}return null}var ie=[];Ue.forEach(function(l){return l.blocks.forEach(function(e){return ie.push.apply(ie,e)})});function It(l){for(var e=0;e=ie[e]&&l<=ie[e+1])return!0;return!1}var Z0=80,Ra=function(e,t){return"M95,"+(622+e+t)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 c69,-144,104.5,-217.7,106.5,-221 l`+e/2.075+" -"+e+` c5.3,-9.3,12,-14,20,-14 H400000v`+(40+e)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Ia=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+e/2.084+" -"+e+` c4.7,-7.3,11,-11,19,-11 H40000v`+(40+e)+`H1012.3 s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Oa=function(e,t){return"M983 "+(10+e+t)+` l`+e/3.13+" -"+e+` c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},La=function(e,t){return"M424,"+(2398+e+t)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000 v`+(40+e)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+` h400000v`+(40+e)+"h-400000z"},Ha=function(e,t){return"M473,"+(2713+e+t)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},Pa=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},Ga=function(e,t,r){var a=r-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+` H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},Va=function(e,t,r){t=1e3*t;var a="";switch(e){case"sqrtMain":a=Ra(t,Z0);break;case"sqrtSize1":a=Ia(t,Z0);break;case"sqrtSize2":a=Oa(t,Z0);break;case"sqrtSize3":a=La(t,Z0);break;case"sqrtSize4":a=Ha(t,Z0);break;case"sqrtTall":a=Ga(t,Z0,r)}return a},Ua=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z");case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},Ot={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 435 0h399565z`,leftgroupunder:`M400000 262 H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Wa=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z M347 1759 V0 h-84 V1759 v`+t+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, -36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+` c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},le=function(){function l(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var e=l.prototype;return e.hasClass=function(r){return I.contains(this.classes,r)},e.toNode=function(){for(var r=document.createDocumentFragment(),a=0;a=5?e=0:l>=3?e=1:e=2,!Ye[e]){var t=Ye[e]={cssEmPerMu:ge.quad[e]/18};for(var r in ge)ge.hasOwnProperty(r)&&(t[r]=ge[r][e])}return Ye[e]}var ja=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ht=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Pt=function(e,t){return t.size<2?e:ja[e-1][t.size-1]},Gt=function(){function l(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||l.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Ht[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var e=l.prototype;return e.extend=function(r){var a={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in r)r.hasOwnProperty(n)&&(a[n]=r[n]);return new l(a)},e.havingStyle=function(r){return this.style===r?this:this.extend({style:r,size:Pt(this.textSize,r)})},e.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},e.havingSize=function(r){return this.size===r&&this.textSize===r?this:this.extend({style:this.style.text(),size:r,textSize:r,sizeMultiplier:Ht[r-1]})},e.havingBaseStyle=function(r){r=r||this.style.text();var a=Pt(l.BASESIZE,r);return this.size===a&&this.textSize===l.BASESIZE&&this.style===r?this:this.extend({style:r,size:a})},e.havingBaseSizing=function(){var r;switch(this.style.id){case 4:case 5:r=3;break;case 6:case 7:r=1;break;default:r=6}return this.extend({style:this.style.text(),size:r})},e.withColor=function(r){return this.extend({color:r})},e.withPhantom=function(){return this.extend({phantom:!0})},e.withFont=function(r){return this.extend({font:r})},e.withTextFontFamily=function(r){return this.extend({fontFamily:r,font:""})},e.withTextFontWeight=function(r){return this.extend({fontWeight:r,font:""})},e.withTextFontShape=function(r){return this.extend({fontShape:r,font:""})},e.sizingClasses=function(r){return r.size!==this.size?["sizing","reset-size"+r.size,"size"+this.size]:[]},e.baseSizingClasses=function(){return this.size!==l.BASESIZE?["sizing","reset-size"+this.size,"size"+l.BASESIZE]:[]},e.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Xa(this.size)),this._fontMetrics},e.getColor=function(){return this.phantom?"transparent":this.color},l}();Gt.BASESIZE=6;var $a=Gt,Xe={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Za={ex:!0,em:!0,mu:!0},Vt=function(e){return typeof e!="string"&&(e=e.unit),e in Xe||e in Za||e==="ex"},$=function(e,t){var r;if(e.unit in Xe)r=Xe[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")r=t.fontMetrics().cssEmPerMu;else{var a;if(t.style.isTight()?a=t.havingStyle(t.style.text()):a=t,e.unit==="ex")r=a.fontMetrics().xHeight;else if(e.unit==="em")r=a.fontMetrics().quad;else throw new M("Invalid unit: '"+e.unit+"'");a!==t&&(r*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},z=function(e){return+e.toFixed(4)+"em"},E0=function(e){return e.filter(function(t){return t}).join(" ")},Ut=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var a=t.getColor();a&&(this.style.color=a)}},Wt=function(e){var t=document.createElement(e);t.className=E0(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n",t},se=function(){function l(t,r,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Ut.call(this,t,a,n),this.children=r||[]}var e=l.prototype;return e.setAttribute=function(r,a){this.attributes[r]=a},e.hasClass=function(r){return I.contains(this.classes,r)},e.toNode=function(){return Wt.call(this,"span")},e.toMarkup=function(){return Yt.call(this,"span")},l}(),je=function(){function l(t,r,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Ut.call(this,r,n),this.children=a||[],this.setAttribute("href",t)}var e=l.prototype;return e.setAttribute=function(r,a){this.attributes[r]=a},e.hasClass=function(r){return I.contains(this.classes,r)},e.toNode=function(){return Wt.call(this,"a")},e.toMarkup=function(){return Yt.call(this,"a")},l}(),Ka=function(){function l(t,r,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=a}var e=l.prototype;return e.hasClass=function(r){return I.contains(this.classes,r)},e.toNode=function(){var r=document.createElement("img");r.src=this.src,r.alt=this.alt,r.className="mord";for(var a in this.style)this.style.hasOwnProperty(a)&&(r.style[a]=this.style[a]);return r},e.toMarkup=function(){var r=""+this.alt+"0&&(a=document.createElement("span"),a.style.marginRight=z(this.italic)),this.classes.length>0&&(a=a||document.createElement("span"),a.className=E0(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(a=a||document.createElement("span"),a.style[n]=this.style[n]);return a?(a.appendChild(r),a):r},e.toMarkup=function(){var r=!1,a="0&&(n+="margin-right:"+this.italic+"em;");for(var s in this.style)this.style.hasOwnProperty(s)&&(n+=I.hyphenate(s)+":"+this.style[s]+";");n&&(r=!0,a+=' style="'+I.escape(n)+'"');var u=I.escape(this.text);return r?(a+=">",a+=u,a+="",a):u},l}(),M0=function(){function l(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}var e=l.prototype;return e.toNode=function(){var r="http://www.w3.org/2000/svg",a=document.createElementNS(r,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&a.setAttribute(n,this.attributes[n]);for(var s=0;s":""},l}(),$e=function(){function l(t){this.attributes=void 0,this.attributes=t||{}}var e=l.prototype;return e.toNode=function(){var r="http://www.w3.org/2000/svg",a=document.createElementNS(r,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&a.setAttribute(n,this.attributes[n]);return a},e.toMarkup=function(){var r=" but got "+String(l)+".")}var _a={bin:1,close:1,inner:1,open:1,punct:1,rel:1},e1={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},be={math:{},text:{}},Z=be;function i(l,e,t,r,a,n){be[l][a]={font:e,group:t,replace:r},n&&r&&(be[l][r]=be[l][a])}var o="math",S="text",h="main",f="ams",j="accent-token",D="bin",n0="close",K0="inner",R="mathord",_="op-token",u0="open",ye="punct",p="rel",B0="spacing",g="textord";i(o,h,p,"≡","\\equiv",!0),i(o,h,p,"≺","\\prec",!0),i(o,h,p,"≻","\\succ",!0),i(o,h,p,"∼","\\sim",!0),i(o,h,p,"⊥","\\perp"),i(o,h,p,"⪯","\\preceq",!0),i(o,h,p,"⪰","\\succeq",!0),i(o,h,p,"≃","\\simeq",!0),i(o,h,p,"∣","\\mid",!0),i(o,h,p,"≪","\\ll",!0),i(o,h,p,"≫","\\gg",!0),i(o,h,p,"≍","\\asymp",!0),i(o,h,p,"∥","\\parallel"),i(o,h,p,"⋈","\\bowtie",!0),i(o,h,p,"⌣","\\smile",!0),i(o,h,p,"⊑","\\sqsubseteq",!0),i(o,h,p,"⊒","\\sqsupseteq",!0),i(o,h,p,"≐","\\doteq",!0),i(o,h,p,"⌢","\\frown",!0),i(o,h,p,"∋","\\ni",!0),i(o,h,p,"∝","\\propto",!0),i(o,h,p,"⊢","\\vdash",!0),i(o,h,p,"⊣","\\dashv",!0),i(o,h,p,"∋","\\owns"),i(o,h,ye,".","\\ldotp"),i(o,h,ye,"⋅","\\cdotp"),i(o,h,g,"#","\\#"),i(S,h,g,"#","\\#"),i(o,h,g,"&","\\&"),i(S,h,g,"&","\\&"),i(o,h,g,"ℵ","\\aleph",!0),i(o,h,g,"∀","\\forall",!0),i(o,h,g,"ℏ","\\hbar",!0),i(o,h,g,"∃","\\exists",!0),i(o,h,g,"∇","\\nabla",!0),i(o,h,g,"♭","\\flat",!0),i(o,h,g,"ℓ","\\ell",!0),i(o,h,g,"♮","\\natural",!0),i(o,h,g,"♣","\\clubsuit",!0),i(o,h,g,"℘","\\wp",!0),i(o,h,g,"♯","\\sharp",!0),i(o,h,g,"♢","\\diamondsuit",!0),i(o,h,g,"ℜ","\\Re",!0),i(o,h,g,"♡","\\heartsuit",!0),i(o,h,g,"ℑ","\\Im",!0),i(o,h,g,"♠","\\spadesuit",!0),i(o,h,g,"§","\\S",!0),i(S,h,g,"§","\\S"),i(o,h,g,"¶","\\P",!0),i(S,h,g,"¶","\\P"),i(o,h,g,"†","\\dag"),i(S,h,g,"†","\\dag"),i(S,h,g,"†","\\textdagger"),i(o,h,g,"‡","\\ddag"),i(S,h,g,"‡","\\ddag"),i(S,h,g,"‡","\\textdaggerdbl"),i(o,h,n0,"⎱","\\rmoustache",!0),i(o,h,u0,"⎰","\\lmoustache",!0),i(o,h,n0,"⟯","\\rgroup",!0),i(o,h,u0,"⟮","\\lgroup",!0),i(o,h,D,"∓","\\mp",!0),i(o,h,D,"⊖","\\ominus",!0),i(o,h,D,"⊎","\\uplus",!0),i(o,h,D,"⊓","\\sqcap",!0),i(o,h,D,"∗","\\ast"),i(o,h,D,"⊔","\\sqcup",!0),i(o,h,D,"◯","\\bigcirc",!0),i(o,h,D,"∙","\\bullet",!0),i(o,h,D,"‡","\\ddagger"),i(o,h,D,"≀","\\wr",!0),i(o,h,D,"⨿","\\amalg"),i(o,h,D,"&","\\And"),i(o,h,p,"⟵","\\longleftarrow",!0),i(o,h,p,"⇐","\\Leftarrow",!0),i(o,h,p,"⟸","\\Longleftarrow",!0),i(o,h,p,"⟶","\\longrightarrow",!0),i(o,h,p,"⇒","\\Rightarrow",!0),i(o,h,p,"⟹","\\Longrightarrow",!0),i(o,h,p,"↔","\\leftrightarrow",!0),i(o,h,p,"⟷","\\longleftrightarrow",!0),i(o,h,p,"⇔","\\Leftrightarrow",!0),i(o,h,p,"⟺","\\Longleftrightarrow",!0),i(o,h,p,"↦","\\mapsto",!0),i(o,h,p,"⟼","\\longmapsto",!0),i(o,h,p,"↗","\\nearrow",!0),i(o,h,p,"↩","\\hookleftarrow",!0),i(o,h,p,"↪","\\hookrightarrow",!0),i(o,h,p,"↘","\\searrow",!0),i(o,h,p,"↼","\\leftharpoonup",!0),i(o,h,p,"⇀","\\rightharpoonup",!0),i(o,h,p,"↙","\\swarrow",!0),i(o,h,p,"↽","\\leftharpoondown",!0),i(o,h,p,"⇁","\\rightharpoondown",!0),i(o,h,p,"↖","\\nwarrow",!0),i(o,h,p,"⇌","\\rightleftharpoons",!0),i(o,f,p,"≮","\\nless",!0),i(o,f,p,"","\\@nleqslant"),i(o,f,p,"","\\@nleqq"),i(o,f,p,"⪇","\\lneq",!0),i(o,f,p,"≨","\\lneqq",!0),i(o,f,p,"","\\@lvertneqq"),i(o,f,p,"⋦","\\lnsim",!0),i(o,f,p,"⪉","\\lnapprox",!0),i(o,f,p,"⊀","\\nprec",!0),i(o,f,p,"⋠","\\npreceq",!0),i(o,f,p,"⋨","\\precnsim",!0),i(o,f,p,"⪹","\\precnapprox",!0),i(o,f,p,"≁","\\nsim",!0),i(o,f,p,"","\\@nshortmid"),i(o,f,p,"∤","\\nmid",!0),i(o,f,p,"⊬","\\nvdash",!0),i(o,f,p,"⊭","\\nvDash",!0),i(o,f,p,"⋪","\\ntriangleleft"),i(o,f,p,"⋬","\\ntrianglelefteq",!0),i(o,f,p,"⊊","\\subsetneq",!0),i(o,f,p,"","\\@varsubsetneq"),i(o,f,p,"⫋","\\subsetneqq",!0),i(o,f,p,"","\\@varsubsetneqq"),i(o,f,p,"≯","\\ngtr",!0),i(o,f,p,"","\\@ngeqslant"),i(o,f,p,"","\\@ngeqq"),i(o,f,p,"⪈","\\gneq",!0),i(o,f,p,"≩","\\gneqq",!0),i(o,f,p,"","\\@gvertneqq"),i(o,f,p,"⋧","\\gnsim",!0),i(o,f,p,"⪊","\\gnapprox",!0),i(o,f,p,"⊁","\\nsucc",!0),i(o,f,p,"⋡","\\nsucceq",!0),i(o,f,p,"⋩","\\succnsim",!0),i(o,f,p,"⪺","\\succnapprox",!0),i(o,f,p,"≆","\\ncong",!0),i(o,f,p,"","\\@nshortparallel"),i(o,f,p,"∦","\\nparallel",!0),i(o,f,p,"⊯","\\nVDash",!0),i(o,f,p,"⋫","\\ntriangleright"),i(o,f,p,"⋭","\\ntrianglerighteq",!0),i(o,f,p,"","\\@nsupseteqq"),i(o,f,p,"⊋","\\supsetneq",!0),i(o,f,p,"","\\@varsupsetneq"),i(o,f,p,"⫌","\\supsetneqq",!0),i(o,f,p,"","\\@varsupsetneqq"),i(o,f,p,"⊮","\\nVdash",!0),i(o,f,p,"⪵","\\precneqq",!0),i(o,f,p,"⪶","\\succneqq",!0),i(o,f,p,"","\\@nsubseteqq"),i(o,f,D,"⊴","\\unlhd"),i(o,f,D,"⊵","\\unrhd"),i(o,f,p,"↚","\\nleftarrow",!0),i(o,f,p,"↛","\\nrightarrow",!0),i(o,f,p,"⇍","\\nLeftarrow",!0),i(o,f,p,"⇏","\\nRightarrow",!0),i(o,f,p,"↮","\\nleftrightarrow",!0),i(o,f,p,"⇎","\\nLeftrightarrow",!0),i(o,f,p,"△","\\vartriangle"),i(o,f,g,"ℏ","\\hslash"),i(o,f,g,"▽","\\triangledown"),i(o,f,g,"◊","\\lozenge"),i(o,f,g,"Ⓢ","\\circledS"),i(o,f,g,"®","\\circledR"),i(S,f,g,"®","\\circledR"),i(o,f,g,"∡","\\measuredangle",!0),i(o,f,g,"∄","\\nexists"),i(o,f,g,"℧","\\mho"),i(o,f,g,"Ⅎ","\\Finv",!0),i(o,f,g,"⅁","\\Game",!0),i(o,f,g,"‵","\\backprime"),i(o,f,g,"▲","\\blacktriangle"),i(o,f,g,"▼","\\blacktriangledown"),i(o,f,g,"■","\\blacksquare"),i(o,f,g,"⧫","\\blacklozenge"),i(o,f,g,"★","\\bigstar"),i(o,f,g,"∢","\\sphericalangle",!0),i(o,f,g,"∁","\\complement",!0),i(o,f,g,"ð","\\eth",!0),i(S,h,g,"ð","ð"),i(o,f,g,"╱","\\diagup"),i(o,f,g,"╲","\\diagdown"),i(o,f,g,"□","\\square"),i(o,f,g,"□","\\Box"),i(o,f,g,"◊","\\Diamond"),i(o,f,g,"¥","\\yen",!0),i(S,f,g,"¥","\\yen",!0),i(o,f,g,"✓","\\checkmark",!0),i(S,f,g,"✓","\\checkmark"),i(o,f,g,"ℶ","\\beth",!0),i(o,f,g,"ℸ","\\daleth",!0),i(o,f,g,"ℷ","\\gimel",!0),i(o,f,g,"ϝ","\\digamma",!0),i(o,f,g,"ϰ","\\varkappa"),i(o,f,u0,"┌","\\@ulcorner",!0),i(o,f,n0,"┐","\\@urcorner",!0),i(o,f,u0,"└","\\@llcorner",!0),i(o,f,n0,"┘","\\@lrcorner",!0),i(o,f,p,"≦","\\leqq",!0),i(o,f,p,"⩽","\\leqslant",!0),i(o,f,p,"⪕","\\eqslantless",!0),i(o,f,p,"≲","\\lesssim",!0),i(o,f,p,"⪅","\\lessapprox",!0),i(o,f,p,"≊","\\approxeq",!0),i(o,f,D,"⋖","\\lessdot"),i(o,f,p,"⋘","\\lll",!0),i(o,f,p,"≶","\\lessgtr",!0),i(o,f,p,"⋚","\\lesseqgtr",!0),i(o,f,p,"⪋","\\lesseqqgtr",!0),i(o,f,p,"≑","\\doteqdot"),i(o,f,p,"≓","\\risingdotseq",!0),i(o,f,p,"≒","\\fallingdotseq",!0),i(o,f,p,"∽","\\backsim",!0),i(o,f,p,"⋍","\\backsimeq",!0),i(o,f,p,"⫅","\\subseteqq",!0),i(o,f,p,"⋐","\\Subset",!0),i(o,f,p,"⊏","\\sqsubset",!0),i(o,f,p,"≼","\\preccurlyeq",!0),i(o,f,p,"⋞","\\curlyeqprec",!0),i(o,f,p,"≾","\\precsim",!0),i(o,f,p,"⪷","\\precapprox",!0),i(o,f,p,"⊲","\\vartriangleleft"),i(o,f,p,"⊴","\\trianglelefteq"),i(o,f,p,"⊨","\\vDash",!0),i(o,f,p,"⊪","\\Vvdash",!0),i(o,f,p,"⌣","\\smallsmile"),i(o,f,p,"⌢","\\smallfrown"),i(o,f,p,"≏","\\bumpeq",!0),i(o,f,p,"≎","\\Bumpeq",!0),i(o,f,p,"≧","\\geqq",!0),i(o,f,p,"⩾","\\geqslant",!0),i(o,f,p,"⪖","\\eqslantgtr",!0),i(o,f,p,"≳","\\gtrsim",!0),i(o,f,p,"⪆","\\gtrapprox",!0),i(o,f,D,"⋗","\\gtrdot"),i(o,f,p,"⋙","\\ggg",!0),i(o,f,p,"≷","\\gtrless",!0),i(o,f,p,"⋛","\\gtreqless",!0),i(o,f,p,"⪌","\\gtreqqless",!0),i(o,f,p,"≖","\\eqcirc",!0),i(o,f,p,"≗","\\circeq",!0),i(o,f,p,"≜","\\triangleq",!0),i(o,f,p,"∼","\\thicksim"),i(o,f,p,"≈","\\thickapprox"),i(o,f,p,"⫆","\\supseteqq",!0),i(o,f,p,"⋑","\\Supset",!0),i(o,f,p,"⊐","\\sqsupset",!0),i(o,f,p,"≽","\\succcurlyeq",!0),i(o,f,p,"⋟","\\curlyeqsucc",!0),i(o,f,p,"≿","\\succsim",!0),i(o,f,p,"⪸","\\succapprox",!0),i(o,f,p,"⊳","\\vartriangleright"),i(o,f,p,"⊵","\\trianglerighteq"),i(o,f,p,"⊩","\\Vdash",!0),i(o,f,p,"∣","\\shortmid"),i(o,f,p,"∥","\\shortparallel"),i(o,f,p,"≬","\\between",!0),i(o,f,p,"⋔","\\pitchfork",!0),i(o,f,p,"∝","\\varpropto"),i(o,f,p,"◀","\\blacktriangleleft"),i(o,f,p,"∴","\\therefore",!0),i(o,f,p,"∍","\\backepsilon"),i(o,f,p,"▶","\\blacktriangleright"),i(o,f,p,"∵","\\because",!0),i(o,f,p,"⋘","\\llless"),i(o,f,p,"⋙","\\gggtr"),i(o,f,D,"⊲","\\lhd"),i(o,f,D,"⊳","\\rhd"),i(o,f,p,"≂","\\eqsim",!0),i(o,h,p,"⋈","\\Join"),i(o,f,p,"≑","\\Doteq",!0),i(o,f,D,"∔","\\dotplus",!0),i(o,f,D,"∖","\\smallsetminus"),i(o,f,D,"⋒","\\Cap",!0),i(o,f,D,"⋓","\\Cup",!0),i(o,f,D,"⩞","\\doublebarwedge",!0),i(o,f,D,"⊟","\\boxminus",!0),i(o,f,D,"⊞","\\boxplus",!0),i(o,f,D,"⋇","\\divideontimes",!0),i(o,f,D,"⋉","\\ltimes",!0),i(o,f,D,"⋊","\\rtimes",!0),i(o,f,D,"⋋","\\leftthreetimes",!0),i(o,f,D,"⋌","\\rightthreetimes",!0),i(o,f,D,"⋏","\\curlywedge",!0),i(o,f,D,"⋎","\\curlyvee",!0),i(o,f,D,"⊝","\\circleddash",!0),i(o,f,D,"⊛","\\circledast",!0),i(o,f,D,"⋅","\\centerdot"),i(o,f,D,"⊺","\\intercal",!0),i(o,f,D,"⋒","\\doublecap"),i(o,f,D,"⋓","\\doublecup"),i(o,f,D,"⊠","\\boxtimes",!0),i(o,f,p,"⇢","\\dashrightarrow",!0),i(o,f,p,"⇠","\\dashleftarrow",!0),i(o,f,p,"⇇","\\leftleftarrows",!0),i(o,f,p,"⇆","\\leftrightarrows",!0),i(o,f,p,"⇚","\\Lleftarrow",!0),i(o,f,p,"↞","\\twoheadleftarrow",!0),i(o,f,p,"↢","\\leftarrowtail",!0),i(o,f,p,"↫","\\looparrowleft",!0),i(o,f,p,"⇋","\\leftrightharpoons",!0),i(o,f,p,"↶","\\curvearrowleft",!0),i(o,f,p,"↺","\\circlearrowleft",!0),i(o,f,p,"↰","\\Lsh",!0),i(o,f,p,"⇈","\\upuparrows",!0),i(o,f,p,"↿","\\upharpoonleft",!0),i(o,f,p,"⇃","\\downharpoonleft",!0),i(o,h,p,"⊶","\\origof",!0),i(o,h,p,"⊷","\\imageof",!0),i(o,f,p,"⊸","\\multimap",!0),i(o,f,p,"↭","\\leftrightsquigarrow",!0),i(o,f,p,"⇉","\\rightrightarrows",!0),i(o,f,p,"⇄","\\rightleftarrows",!0),i(o,f,p,"↠","\\twoheadrightarrow",!0),i(o,f,p,"↣","\\rightarrowtail",!0),i(o,f,p,"↬","\\looparrowright",!0),i(o,f,p,"↷","\\curvearrowright",!0),i(o,f,p,"↻","\\circlearrowright",!0),i(o,f,p,"↱","\\Rsh",!0),i(o,f,p,"⇊","\\downdownarrows",!0),i(o,f,p,"↾","\\upharpoonright",!0),i(o,f,p,"⇂","\\downharpoonright",!0),i(o,f,p,"⇝","\\rightsquigarrow",!0),i(o,f,p,"⇝","\\leadsto"),i(o,f,p,"⇛","\\Rrightarrow",!0),i(o,f,p,"↾","\\restriction"),i(o,h,g,"‘","`"),i(o,h,g,"$","\\$"),i(S,h,g,"$","\\$"),i(S,h,g,"$","\\textdollar"),i(o,h,g,"%","\\%"),i(S,h,g,"%","\\%"),i(o,h,g,"_","\\_"),i(S,h,g,"_","\\_"),i(S,h,g,"_","\\textunderscore"),i(o,h,g,"∠","\\angle",!0),i(o,h,g,"∞","\\infty",!0),i(o,h,g,"′","\\prime"),i(o,h,g,"△","\\triangle"),i(o,h,g,"Γ","\\Gamma",!0),i(o,h,g,"Δ","\\Delta",!0),i(o,h,g,"Θ","\\Theta",!0),i(o,h,g,"Λ","\\Lambda",!0),i(o,h,g,"Ξ","\\Xi",!0),i(o,h,g,"Π","\\Pi",!0),i(o,h,g,"Σ","\\Sigma",!0),i(o,h,g,"Υ","\\Upsilon",!0),i(o,h,g,"Φ","\\Phi",!0),i(o,h,g,"Ψ","\\Psi",!0),i(o,h,g,"Ω","\\Omega",!0),i(o,h,g,"A","Α"),i(o,h,g,"B","Β"),i(o,h,g,"E","Ε"),i(o,h,g,"Z","Ζ"),i(o,h,g,"H","Η"),i(o,h,g,"I","Ι"),i(o,h,g,"K","Κ"),i(o,h,g,"M","Μ"),i(o,h,g,"N","Ν"),i(o,h,g,"O","Ο"),i(o,h,g,"P","Ρ"),i(o,h,g,"T","Τ"),i(o,h,g,"X","Χ"),i(o,h,g,"¬","\\neg",!0),i(o,h,g,"¬","\\lnot"),i(o,h,g,"⊤","\\top"),i(o,h,g,"⊥","\\bot"),i(o,h,g,"∅","\\emptyset"),i(o,f,g,"∅","\\varnothing"),i(o,h,R,"α","\\alpha",!0),i(o,h,R,"β","\\beta",!0),i(o,h,R,"γ","\\gamma",!0),i(o,h,R,"δ","\\delta",!0),i(o,h,R,"ϵ","\\epsilon",!0),i(o,h,R,"ζ","\\zeta",!0),i(o,h,R,"η","\\eta",!0),i(o,h,R,"θ","\\theta",!0),i(o,h,R,"ι","\\iota",!0),i(o,h,R,"κ","\\kappa",!0),i(o,h,R,"λ","\\lambda",!0),i(o,h,R,"μ","\\mu",!0),i(o,h,R,"ν","\\nu",!0),i(o,h,R,"ξ","\\xi",!0),i(o,h,R,"ο","\\omicron",!0),i(o,h,R,"π","\\pi",!0),i(o,h,R,"ρ","\\rho",!0),i(o,h,R,"σ","\\sigma",!0),i(o,h,R,"τ","\\tau",!0),i(o,h,R,"υ","\\upsilon",!0),i(o,h,R,"ϕ","\\phi",!0),i(o,h,R,"χ","\\chi",!0),i(o,h,R,"ψ","\\psi",!0),i(o,h,R,"ω","\\omega",!0),i(o,h,R,"ε","\\varepsilon",!0),i(o,h,R,"ϑ","\\vartheta",!0),i(o,h,R,"ϖ","\\varpi",!0),i(o,h,R,"ϱ","\\varrho",!0),i(o,h,R,"ς","\\varsigma",!0),i(o,h,R,"φ","\\varphi",!0),i(o,h,D,"∗","*",!0),i(o,h,D,"+","+"),i(o,h,D,"−","-",!0),i(o,h,D,"⋅","\\cdot",!0),i(o,h,D,"∘","\\circ",!0),i(o,h,D,"÷","\\div",!0),i(o,h,D,"±","\\pm",!0),i(o,h,D,"×","\\times",!0),i(o,h,D,"∩","\\cap",!0),i(o,h,D,"∪","\\cup",!0),i(o,h,D,"∖","\\setminus",!0),i(o,h,D,"∧","\\land"),i(o,h,D,"∨","\\lor"),i(o,h,D,"∧","\\wedge",!0),i(o,h,D,"∨","\\vee",!0),i(o,h,g,"√","\\surd"),i(o,h,u0,"⟨","\\langle",!0),i(o,h,u0,"∣","\\lvert"),i(o,h,u0,"∥","\\lVert"),i(o,h,n0,"?","?"),i(o,h,n0,"!","!"),i(o,h,n0,"⟩","\\rangle",!0),i(o,h,n0,"∣","\\rvert"),i(o,h,n0,"∥","\\rVert"),i(o,h,p,"=","="),i(o,h,p,":",":"),i(o,h,p,"≈","\\approx",!0),i(o,h,p,"≅","\\cong",!0),i(o,h,p,"≥","\\ge"),i(o,h,p,"≥","\\geq",!0),i(o,h,p,"←","\\gets"),i(o,h,p,">","\\gt",!0),i(o,h,p,"∈","\\in",!0),i(o,h,p,"","\\@not"),i(o,h,p,"⊂","\\subset",!0),i(o,h,p,"⊃","\\supset",!0),i(o,h,p,"⊆","\\subseteq",!0),i(o,h,p,"⊇","\\supseteq",!0),i(o,f,p,"⊈","\\nsubseteq",!0),i(o,f,p,"⊉","\\nsupseteq",!0),i(o,h,p,"⊨","\\models"),i(o,h,p,"←","\\leftarrow",!0),i(o,h,p,"≤","\\le"),i(o,h,p,"≤","\\leq",!0),i(o,h,p,"<","\\lt",!0),i(o,h,p,"→","\\rightarrow",!0),i(o,h,p,"→","\\to"),i(o,f,p,"≱","\\ngeq",!0),i(o,f,p,"≰","\\nleq",!0),i(o,h,B0," ","\\ "),i(o,h,B0," ","\\space"),i(o,h,B0," ","\\nobreakspace"),i(S,h,B0," ","\\ "),i(S,h,B0," "," "),i(S,h,B0," ","\\space"),i(S,h,B0," ","\\nobreakspace"),i(o,h,B0,null,"\\nobreak"),i(o,h,B0,null,"\\allowbreak"),i(o,h,ye,",",","),i(o,h,ye,";",";"),i(o,f,D,"⊼","\\barwedge",!0),i(o,f,D,"⊻","\\veebar",!0),i(o,h,D,"⊙","\\odot",!0),i(o,h,D,"⊕","\\oplus",!0),i(o,h,D,"⊗","\\otimes",!0),i(o,h,g,"∂","\\partial",!0),i(o,h,D,"⊘","\\oslash",!0),i(o,f,D,"⊚","\\circledcirc",!0),i(o,f,D,"⊡","\\boxdot",!0),i(o,h,D,"△","\\bigtriangleup"),i(o,h,D,"▽","\\bigtriangledown"),i(o,h,D,"†","\\dagger"),i(o,h,D,"⋄","\\diamond"),i(o,h,D,"⋆","\\star"),i(o,h,D,"◃","\\triangleleft"),i(o,h,D,"▹","\\triangleright"),i(o,h,u0,"{","\\{"),i(S,h,g,"{","\\{"),i(S,h,g,"{","\\textbraceleft"),i(o,h,n0,"}","\\}"),i(S,h,g,"}","\\}"),i(S,h,g,"}","\\textbraceright"),i(o,h,u0,"{","\\lbrace"),i(o,h,n0,"}","\\rbrace"),i(o,h,u0,"[","\\lbrack",!0),i(S,h,g,"[","\\lbrack",!0),i(o,h,n0,"]","\\rbrack",!0),i(S,h,g,"]","\\rbrack",!0),i(o,h,u0,"(","\\lparen",!0),i(o,h,n0,")","\\rparen",!0),i(S,h,g,"<","\\textless",!0),i(S,h,g,">","\\textgreater",!0),i(o,h,u0,"⌊","\\lfloor",!0),i(o,h,n0,"⌋","\\rfloor",!0),i(o,h,u0,"⌈","\\lceil",!0),i(o,h,n0,"⌉","\\rceil",!0),i(o,h,g,"\\","\\backslash"),i(o,h,g,"∣","|"),i(o,h,g,"∣","\\vert"),i(S,h,g,"|","\\textbar",!0),i(o,h,g,"∥","\\|"),i(o,h,g,"∥","\\Vert"),i(S,h,g,"∥","\\textbardbl"),i(S,h,g,"~","\\textasciitilde"),i(S,h,g,"\\","\\textbackslash"),i(S,h,g,"^","\\textasciicircum"),i(o,h,p,"↑","\\uparrow",!0),i(o,h,p,"⇑","\\Uparrow",!0),i(o,h,p,"↓","\\downarrow",!0),i(o,h,p,"⇓","\\Downarrow",!0),i(o,h,p,"↕","\\updownarrow",!0),i(o,h,p,"⇕","\\Updownarrow",!0),i(o,h,_,"∐","\\coprod"),i(o,h,_,"⋁","\\bigvee"),i(o,h,_,"⋀","\\bigwedge"),i(o,h,_,"⨄","\\biguplus"),i(o,h,_,"⋂","\\bigcap"),i(o,h,_,"⋃","\\bigcup"),i(o,h,_,"∫","\\int"),i(o,h,_,"∫","\\intop"),i(o,h,_,"∬","\\iint"),i(o,h,_,"∭","\\iiint"),i(o,h,_,"∏","\\prod"),i(o,h,_,"∑","\\sum"),i(o,h,_,"⨂","\\bigotimes"),i(o,h,_,"⨁","\\bigoplus"),i(o,h,_,"⨀","\\bigodot"),i(o,h,_,"∮","\\oint"),i(o,h,_,"∯","\\oiint"),i(o,h,_,"∰","\\oiiint"),i(o,h,_,"⨆","\\bigsqcup"),i(o,h,_,"∫","\\smallint"),i(S,h,K0,"…","\\textellipsis"),i(o,h,K0,"…","\\mathellipsis"),i(S,h,K0,"…","\\ldots",!0),i(o,h,K0,"…","\\ldots",!0),i(o,h,K0,"⋯","\\@cdots",!0),i(o,h,K0,"⋱","\\ddots",!0),i(o,h,g,"⋮","\\varvdots"),i(o,h,j,"ˊ","\\acute"),i(o,h,j,"ˋ","\\grave"),i(o,h,j,"¨","\\ddot"),i(o,h,j,"~","\\tilde"),i(o,h,j,"ˉ","\\bar"),i(o,h,j,"˘","\\breve"),i(o,h,j,"ˇ","\\check"),i(o,h,j,"^","\\hat"),i(o,h,j,"⃗","\\vec"),i(o,h,j,"˙","\\dot"),i(o,h,j,"˚","\\mathring"),i(o,h,R,"","\\@imath"),i(o,h,R,"","\\@jmath"),i(o,h,g,"ı","ı"),i(o,h,g,"ȷ","ȷ"),i(S,h,g,"ı","\\i",!0),i(S,h,g,"ȷ","\\j",!0),i(S,h,g,"ß","\\ss",!0),i(S,h,g,"æ","\\ae",!0),i(S,h,g,"œ","\\oe",!0),i(S,h,g,"ø","\\o",!0),i(S,h,g,"Æ","\\AE",!0),i(S,h,g,"Œ","\\OE",!0),i(S,h,g,"Ø","\\O",!0),i(S,h,j,"ˊ","\\'"),i(S,h,j,"ˋ","\\`"),i(S,h,j,"ˆ","\\^"),i(S,h,j,"˜","\\~"),i(S,h,j,"ˉ","\\="),i(S,h,j,"˘","\\u"),i(S,h,j,"˙","\\."),i(S,h,j,"¸","\\c"),i(S,h,j,"˚","\\r"),i(S,h,j,"ˇ","\\v"),i(S,h,j,"¨",'\\"'),i(S,h,j,"˝","\\H"),i(S,h,j,"◯","\\textcircled");var jt={"--":!0,"---":!0,"``":!0,"''":!0};i(S,h,g,"–","--",!0),i(S,h,g,"–","\\textendash"),i(S,h,g,"—","---",!0),i(S,h,g,"—","\\textemdash"),i(S,h,g,"‘","`",!0),i(S,h,g,"‘","\\textquoteleft"),i(S,h,g,"’","'",!0),i(S,h,g,"’","\\textquoteright"),i(S,h,g,"“","``",!0),i(S,h,g,"“","\\textquotedblleft"),i(S,h,g,"”","''",!0),i(S,h,g,"”","\\textquotedblright"),i(o,h,g,"°","\\degree",!0),i(S,h,g,"°","\\degree"),i(S,h,g,"°","\\textdegree",!0),i(o,h,g,"£","\\pounds"),i(o,h,g,"£","\\mathsterling",!0),i(S,h,g,"£","\\pounds"),i(S,h,g,"£","\\textsterling",!0),i(o,f,g,"✠","\\maltese"),i(S,f,g,"✠","\\maltese");for(var $t='0123456789/@."',Ze=0;Ze<$t.length;Ze++){var Zt=$t.charAt(Ze);i(o,h,g,Zt,Zt)}for(var Kt='0123456789!@*()-=+";:?/.,',Ke=0;Ket&&(t=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=a},s0=function(e,t,r,a){var n=new se(e,t,r,a);return et(n),n},_t=function(e,t,r,a){return new se(e,t,r,a)},s1=function(e,t,r){var a=s0([e],[],t);return a.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),a.style.borderBottomWidth=z(a.height),a.maxFontSize=1,a},o1=function(e,t,r,a){var n=new je(e,t,r,a);return et(n),n},er=function(e){var t=new le(e);return et(t),t},u1=function(e,t){return e instanceof le?s0([],[e],t):e},h1=function(e){if(e.positionType==="individualShift"){for(var t=e.children,r=[t[0]],a=-t[0].shift-t[0].elem.depth,n=a,s=1;s0&&(n.push(Ce(s,e)),s=[]),n.push(r[u]));s.length>0&&n.push(Ce(s,e));var d;t?(d=Ce(t0(t,e,!0)),d.classes=["tag"],n.push(d)):a&&n.push(a);var v=T0(["katex-html"],n);if(v.setAttribute("aria-hidden","true"),d){var y=d.children[0];y.style.height=z(v.height+v.depth),v.depth&&(y.style.verticalAlign=z(-v.depth))}return v}function lr(l){return new le(l)}var d0=function(){function l(t,r,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=a||[]}var e=l.prototype;return e.setAttribute=function(r,a){this.attributes[r]=a},e.getAttribute=function(r){return this.attributes[r]},e.toNode=function(){var r=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&r.setAttribute(a,this.attributes[a]);this.classes.length>0&&(r.className=E0(this.classes));for(var n=0;n0&&(r+=' class ="'+I.escape(E0(this.classes))+'"'),r+=">";for(var n=0;n",r},e.toText=function(){return this.children.map(function(r){return r.toText()}).join("")},l}(),ue=function(){function l(t){this.text=void 0,this.text=t}var e=l.prototype;return e.toNode=function(){return document.createTextNode(this.text)},e.toMarkup=function(){return I.escape(this.toText())},e.toText=function(){return this.text},l}(),w1=function(){function l(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}var e=l.prototype;return e.toNode=function(){if(this.character)return document.createTextNode(this.character);var r=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return r.setAttribute("width",z(this.width)),r},e.toMarkup=function(){return this.character?""+this.character+"":''},e.toText=function(){return this.character?this.character:" "},l}(),A={MathNode:d0,TextNode:ue,SpaceNode:w1,newDocumentFragment:lr},f0=function(e,t,r){return Z[t][e]&&Z[t][e].replace&&e.charCodeAt(0)!==55349&&!(jt.hasOwnProperty(e)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(e=Z[t][e].replace),new A.TextNode(e)},at=function(e){return e.length===1?e[0]:new A.MathNode("mrow",e)},nt=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var r=t.font;if(!r||r==="mathnormal")return null;var a=e.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var n=e.text;if(I.contains(["\\imath","\\jmath"],n))return null;Z[a][n]&&Z[a][n].replace&&(n=Z[a][n].replace);var s=b.fontMap[r].fontName;return We(n,s,a)?b.fontMap[r].variant:null},o0=function(e,t,r){if(e.length===1){var a=Y(e[0],t);return r&&a instanceof d0&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var n=[],s,u=0;u0&&(k.text=k.text.slice(0,1)+"̸"+k.text.slice(1),n.pop())}}}n.push(m),s=m}return n},R0=function(e,t,r){return at(o0(e,t,r))},Y=function(e,t){if(!e)return new A.MathNode("mrow");if(ze[e.type]){var r=ze[e.type](e,t);return r}else throw new M("Got group of unknown type: '"+e.type+"'")};function sr(l,e,t,r,a){var n=o0(l,t),s;n.length===1&&n[0]instanceof d0&&I.contains(["mrow","mtable"],n[0].type)?s=n[0]:s=new A.MathNode("mrow",n);var u=new A.MathNode("annotation",[new A.TextNode(e)]);u.setAttribute("encoding","application/x-tex");var m=new A.MathNode("semantics",[s,u]),d=new A.MathNode("math",[m]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&d.setAttribute("display","block");var v=a?"katex":"katex-mathml";return b.makeSpan([v],[d])}var or=function(e){return new $a({style:e.displayMode?F.DISPLAY:F.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},ur=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=b.makeSpan(r,[e])}return e},k1=function(e,t,r){var a=or(r),n;if(r.output==="mathml")return sr(e,t,a,r.displayMode,!0);if(r.output==="html"){var s=rt(e,a);n=b.makeSpan(["katex"],[s])}else{var u=sr(e,t,a,r.displayMode,!1),m=rt(e,a);n=b.makeSpan(["katex"],[u,m])}return ur(n,r)},S1=function(e,t,r){var a=or(r),n=rt(e,a),s=b.makeSpan(["katex"],[n]);return ur(s,r)},A1={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},M1=function(e){var t=new A.MathNode("mo",[new A.TextNode(A1[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},B1={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},z1=function(e){return e.type==="ordgroup"?e.body.length:1},T1=function(e,t){function r(){var m=4e5,d=e.label.slice(1);if(I.contains(["widehat","widecheck","widetilde","utilde"],d)){var v=e,y=z1(v.base),w,x,k;if(y>5)d==="widehat"||d==="widecheck"?(w=420,m=2364,k=.42,x=d+"4"):(w=312,m=2340,k=.34,x="tilde4");else{var B=[1,1,2,2,3,3][y];d==="widehat"||d==="widecheck"?(m=[0,1062,2364,2364,2364][B],w=[0,239,300,360,420][B],k=[0,.24,.3,.3,.36,.42][B],x=d+B):(m=[0,600,1033,2339,2340][B],w=[0,260,286,306,312][B],k=[0,.26,.286,.3,.306,.34][B],x="tilde"+B)}var T=new q0(x),N=new M0([T],{width:"100%",height:z(k),viewBox:"0 0 "+m+" "+w,preserveAspectRatio:"none"});return{span:b.makeSvgSpan([],[N],t),minWidth:0,height:k}}else{var E=[],q=B1[d],V=q[0],H=q[1],U=q[2],G=U/1e3,W=V.length,X,r0;if(W===1){var h0=q[3];X=["hide-tail"],r0=[h0]}else if(W===2)X=["halfarrow-left","halfarrow-right"],r0=["xMinYMin","xMaxYMin"];else if(W===3)X=["brace-left","brace-center","brace-right"],r0=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support `+W+" children.");for(var J=0;J0&&(n.style.minWidth=z(s)),n},C1=function(e,t,r,a,n){var s,u=e.height+e.depth+r+a;if(/fbox|color|angl/.test(t)){if(s=b.makeSpan(["stretchy",t],[],n),t==="fbox"){var m=n.color&&n.getColor();m&&(s.style.borderColor=m)}}else{var d=[];/^[bx]cancel$/.test(t)&&d.push(new $e({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&d.push(new $e({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var v=new M0(d,{width:"100%",height:z(u)});s=b.makeSvgSpan([],[v],n)}return s.height=u,s.style.height=z(u),s},C0={encloseSpan:C1,mathMLnode:M1,svgSpan:T1};function L(l,e){if(!l||l.type!==e)throw new Error("Expected node of type "+e+", but got "+(l?"node of type "+l.type:String(l)));return l}function it(l){var e=De(l);if(!e)throw new Error("Expected node of symbol group type, but got "+(l?"node of type "+l.type:String(l)));return e}function De(l){return l&&(l.type==="atom"||e1.hasOwnProperty(l.type))?l:null}var lt=function(e,t){var r,a,n;e&&e.type==="supsub"?(a=L(e.base,"accent"),r=a.base,e.base=r,n=Qa(P(e,t)),e.base=a):(a=L(e,"accent"),r=a.base);var s=P(r,t.havingCrampedStyle()),u=a.isShifty&&I.isCharacterBox(r),m=0;if(u){var d=I.getBaseElem(r),v=P(d,t.havingCrampedStyle());m=Xt(v).skew}var y=a.label==="\\c",w=y?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),x;if(a.isStretchy)x=C0.svgSpan(a,t),x=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:x,wrapperClasses:["svg-align"],wrapperStyle:m>0?{width:"calc(100% - "+z(2*m)+")",marginLeft:z(2*m)}:void 0}]},t);else{var k,B;a.label==="\\vec"?(k=b.staticSvg("vec",t),B=b.svgData.vec[1]):(k=b.makeOrd({mode:a.mode,text:a.label},t,"textord"),k=Xt(k),k.italic=0,B=k.width,y&&(w+=k.depth)),x=b.makeSpan(["accent-body"],[k]);var T=a.label==="\\textcircled";T&&(x.classes.push("accent-full"),w=s.height);var N=m;T||(N-=B/2),x.style.left=z(N),a.label==="\\textcircled"&&(x.style.top=".2em"),x=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-w},{type:"elem",elem:x}]},t)}var E=b.makeSpan(["mord","accent"],[x],t);return n?(n.children[0]=E,n.height=Math.max(E.height,n.height),n.classes[0]="mord",n):E},hr=function(e,t){var r=e.isStretchy?C0.mathMLnode(e.label):new A.MathNode("mo",[f0(e.label,e.mode)]),a=new A.MathNode("mover",[Y(e.base,t),r]);return a.setAttribute("accent","true"),a},D1=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(l){return"\\"+l}).join("|"));C({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var r=Te(t[0]),a=!D1.test(e.funcName),n=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:n,base:r}},htmlBuilder:lt,mathmlBuilder:hr}),C({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(e,t){var r=t[0],a=e.parser.mode;return a==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:lt,mathmlBuilder:hr}),C({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var r=e.parser,a=e.funcName,n=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:n}},htmlBuilder:function(e,t){var r=P(e.base,t),a=C0.svgSpan(e,t),n=e.label==="\\utilde"?.12:0,s=b.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]},t);return b.makeSpan(["mord","accentunder"],[s],t)},mathmlBuilder:function(e,t){var r=C0.mathMLnode(e.label),a=new A.MathNode("munder",[Y(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var Ne=function(e){var t=new A.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};C({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,r){var a=e.parser,n=e.funcName;return{type:"xArrow",mode:a.mode,label:n,body:t[0],below:r[0]}},htmlBuilder:function(e,t){var r=t.style,a=t.havingStyle(r.sup()),n=b.wrapFragment(P(e.body,a,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(s+"-arrow-pad");var u;e.below&&(a=t.havingStyle(r.sub()),u=b.wrapFragment(P(e.below,a,t),t),u.classes.push(s+"-arrow-pad"));var m=C0.svgSpan(e,t),d=-t.fontMetrics().axisHeight+.5*m.height,v=-t.fontMetrics().axisHeight-.5*m.height-.111;(n.depth>.25||e.label==="\\xleftequilibrium")&&(v-=n.depth);var y;if(u){var w=-t.fontMetrics().axisHeight+u.height+.5*m.height+.111;y=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:v},{type:"elem",elem:m,shift:d},{type:"elem",elem:u,shift:w}]},t)}else y=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:v},{type:"elem",elem:m,shift:d}]},t);return y.children[0].children[0].children[1].classes.push("svg-align"),b.makeSpan(["mrel","x-arrow"],[y],t)},mathmlBuilder:function(e,t){var r=C0.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var n=Ne(Y(e.body,t));if(e.below){var s=Ne(Y(e.below,t));a=new A.MathNode("munderover",[r,s,n])}else a=new A.MathNode("mover",[r,n])}else if(e.below){var u=Ne(Y(e.below,t));a=new A.MathNode("munder",[r,u])}else a=Ne(),a=new A.MathNode("mover",[r,a]);return a}});var N1=b.makeSpan;function mr(l,e){var t=t0(l.body,e,!0);return N1([l.mclass],t,e)}function cr(l,e){var t,r=o0(l.body,e);return l.mclass==="minner"?t=new A.MathNode("mpadded",r):l.mclass==="mord"?l.isCharacterBox?(t=r[0],t.type="mi"):t=new A.MathNode("mi",r):(l.isCharacterBox?(t=r[0],t.type="mo"):t=new A.MathNode("mo",r),l.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):l.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):l.mclass==="mopen"||l.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):l.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}C({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=e.parser,a=e.funcName,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:Q(n),isCharacterBox:I.isCharacterBox(n)}},htmlBuilder:mr,mathmlBuilder:cr});var Ee=function(e){var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};C({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){var r=e.parser;return{type:"mclass",mode:r.mode,mclass:Ee(t[0]),body:Q(t[1]),isCharacterBox:I.isCharacterBox(t[1])}}}),C({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var r=e.parser,a=e.funcName,n=t[1],s=t[0],u;a!=="\\stackrel"?u=Ee(n):u="mrel";var m={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:Q(n)},d={type:"supsub",mode:s.mode,base:m,sup:a==="\\underset"?null:s,sub:a==="\\underset"?s:null};return{type:"mclass",mode:r.mode,mclass:u,body:[d],isCharacterBox:I.isCharacterBox(d)}},htmlBuilder:mr,mathmlBuilder:cr}),C({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser;return{type:"pmb",mode:r.mode,mclass:Ee(t[0]),body:Q(t[0])}},htmlBuilder:function(e,t){var r=t0(e.body,t,!0),a=b.makeSpan([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder:function(e,t){var r=o0(e.body,t),a=new A.MathNode("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var E1={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},dr=function(){return{type:"styling",body:[],mode:"math",style:"display"}},fr=function(e){return e.type==="textord"&&e.text==="@"},q1=function(e,t){return(e.type==="mathord"||e.type==="atom")&&e.text===t};function F1(l,e,t){var r=E1[l];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(r,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=t.callFunction("\\\\cdleft",[e[0]],[]),n={type:"atom",text:r,mode:"math",family:"rel"},s=t.callFunction("\\Big",[n],[]),u=t.callFunction("\\\\cdright",[e[1]],[]),m={type:"ordgroup",mode:"math",body:[a,s,u]};return t.callFunction("\\\\cdparent",[m],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function R1(l){var e=[];for(l.gullet.beginGroup(),l.gullet.macros.set("\\cr","\\\\\\relax"),l.gullet.beginGroup();;){e.push(l.parseExpression(!1,"\\\\")),l.gullet.endGroup(),l.gullet.beginGroup();var t=l.fetch().text;if(t==="&"||t==="\\\\")l.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new M("Expected \\\\ or \\cr or \\end",l.nextToken)}for(var r=[],a=[r],n=0;n-1))if("<>AV".indexOf(d)>-1)for(var y=0;y<2;y++){for(var w=!0,x=m+1;xAV=|." after @',s[m]);var k=F1(d,v,l),B={type:"styling",body:[k],mode:"math",style:"display"};r.push(B),u=dr()}n%2===0?r.push(u):r.shift(),r=[],a.push(r)}l.gullet.endGroup(),l.gullet.endGroup();var T=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:T,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}C({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(e,t){var r=e.parser,a=e.funcName;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder:function(e,t){var r=t.havingStyle(t.style.sup()),a=b.wrapFragment(P(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=z(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder:function(e,t){var r=new A.MathNode("mrow",[Y(e.label,t)]);return r=new A.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new A.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),C({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(e,t){var r=e.parser;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder:function(e,t){var r=b.wrapFragment(P(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:function(e,t){return new A.MathNode("mrow",[Y(e.fragment,t)])}}),C({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var r=e.parser,a=L(t[0],"ordgroup"),n=a.body,s="",u=0;u=1114111)throw new M("\\@char with invalid code point "+s);return d<=65535?v=String.fromCharCode(d):(d-=65536,v=String.fromCharCode((d>>10)+55296,(d&1023)+56320)),{type:"textord",mode:r.mode,text:v}}});var pr=function(e,t){var r=t0(e.body,t.withColor(e.color),!1);return b.makeFragment(r)},vr=function(e,t){var r=o0(e.body,t.withColor(e.color)),a=new A.MathNode("mstyle",r);return a.setAttribute("mathcolor",e.color),a};C({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(e,t){var r=e.parser,a=L(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:a,body:Q(n)}},htmlBuilder:pr,mathmlBuilder:vr}),C({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(e,t){var r=e.parser,a=e.breakOnTokenText,n=L(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var s=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:n,body:s}},htmlBuilder:pr,mathmlBuilder:vr}),C({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler:function(e,t,r){var a=e.parser,n=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,s=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:s,size:n&&L(n,"size").value}},htmlBuilder:function(e,t){var r=b.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=z($(e.size,t)))),r},mathmlBuilder:function(e,t){var r=new A.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",z($(e.size,t)))),r}});var st={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},gr=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new M("Expected a control sequence",e);return t},I1=function(e){var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},br=function(e,t,r,a){var n=e.gullet.macros.get(r.text);n==null&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,a)};C({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,r=e.funcName;t.consumeSpaces();var a=t.fetch();if(st[a.text])return(r==="\\global"||r==="\\\\globallong")&&(a.text=st[a.text]),L(t.parseFunction(),"internal");throw new M("Invalid token after macro prefix",a)}}),C({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,a=t.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new M("Expected a control sequence",a);for(var s=0,u,m=[[]];t.gullet.future().text!=="{";)if(a=t.gullet.popToken(),a.text==="#"){if(t.gullet.future().text==="{"){u=t.gullet.future(),m[s].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new M('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new M('Argument number "'+a.text+'" out of order');s++,m.push([])}else{if(a.text==="EOF")throw new M("Expected a macro definition");m[s].push(a.text)}var d=t.gullet.consumeArg(),v=d.tokens;return u&&v.unshift(u),(r==="\\edef"||r==="\\xdef")&&(v=t.gullet.expandTokens(v),v.reverse()),t.gullet.macros.set(n,{tokens:v,numArgs:s,delimiters:m},r===st[r]),{type:"internal",mode:t.mode}}}),C({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,a=gr(t.gullet.popToken());t.gullet.consumeSpaces();var n=I1(t);return br(t,a,n,r==="\\\\globallet"),{type:"internal",mode:t.mode}}}),C({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,a=gr(t.gullet.popToken()),n=t.gullet.popToken(),s=t.gullet.popToken();return br(t,a,s,r==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var he=function(e,t,r){var a=Z.math[e]&&Z.math[e].replace,n=We(a||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},ot=function(e,t,r,a){var n=r.havingBaseStyle(t),s=b.makeSpan(a.concat(n.sizingClasses(r)),[e],r),u=n.sizeMultiplier/r.sizeMultiplier;return s.height*=u,s.depth*=u,s.maxFontSize=n.sizeMultiplier,s},yr=function(e,t,r){var a=t.havingBaseStyle(r),n=(1-t.sizeMultiplier/a.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=z(n),e.height-=n,e.depth+=n},O1=function(e,t,r,a,n,s){var u=b.makeSymbol(e,"Main-Regular",n,a),m=ot(u,t,a,s);return r&&yr(m,a,t),m},L1=function(e,t,r,a){return b.makeSymbol(e,"Size"+t+"-Regular",r,a)},xr=function(e,t,r,a,n,s){var u=L1(e,t,n,a),m=ot(b.makeSpan(["delimsizing","size"+t],[u],a),F.TEXT,a,s);return r&&yr(m,a,F.TEXT),m},ut=function(e,t,r){var a;t==="Size1-Regular"?a="delim-size1":a="delim-size4";var n=b.makeSpan(["delimsizinginner",a],[b.makeSpan([],[b.makeSymbol(e,t,r)])]);return{type:"elem",elem:n}},ht=function(e,t,r){var a=x0["Size4-Regular"][e.charCodeAt(0)]?x0["Size4-Regular"][e.charCodeAt(0)][4]:x0["Size1-Regular"][e.charCodeAt(0)][4],n=new q0("inner",Ua(e,Math.round(1e3*t))),s=new M0([n],{width:z(a),height:z(t),style:"width:"+z(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),u=b.makeSvgSpan([],[s],r);return u.height=t,u.style.height=z(t),u.style.width=z(a),{type:"elem",elem:u}},mt=.008,qe={type:"kern",size:-1*mt},H1=["|","\\lvert","\\rvert","\\vert"],P1=["\\|","\\lVert","\\rVert","\\Vert"],wr=function(e,t,r,a,n,s){var u,m,d,v,y="",w=0;u=d=v=e,m=null;var x="Size1-Regular";e==="\\uparrow"?d=v="⏐":e==="\\Uparrow"?d=v="‖":e==="\\downarrow"?u=d="⏐":e==="\\Downarrow"?u=d="‖":e==="\\updownarrow"?(u="\\uparrow",d="⏐",v="\\downarrow"):e==="\\Updownarrow"?(u="\\Uparrow",d="‖",v="\\Downarrow"):I.contains(H1,e)?(d="∣",y="vert",w=333):I.contains(P1,e)?(d="∥",y="doublevert",w=556):e==="["||e==="\\lbrack"?(u="⎡",d="⎢",v="⎣",x="Size4-Regular",y="lbrack",w=667):e==="]"||e==="\\rbrack"?(u="⎤",d="⎥",v="⎦",x="Size4-Regular",y="rbrack",w=667):e==="\\lfloor"||e==="⌊"?(d=u="⎢",v="⎣",x="Size4-Regular",y="lfloor",w=667):e==="\\lceil"||e==="⌈"?(u="⎡",d=v="⎢",x="Size4-Regular",y="lceil",w=667):e==="\\rfloor"||e==="⌋"?(d=u="⎥",v="⎦",x="Size4-Regular",y="rfloor",w=667):e==="\\rceil"||e==="⌉"?(u="⎤",d=v="⎥",x="Size4-Regular",y="rceil",w=667):e==="("||e==="\\lparen"?(u="⎛",d="⎜",v="⎝",x="Size4-Regular",y="lparen",w=875):e===")"||e==="\\rparen"?(u="⎞",d="⎟",v="⎠",x="Size4-Regular",y="rparen",w=875):e==="\\{"||e==="\\lbrace"?(u="⎧",m="⎨",v="⎩",d="⎪",x="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(u="⎫",m="⎬",v="⎭",d="⎪",x="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(u="⎧",v="⎩",d="⎪",x="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(u="⎫",v="⎭",d="⎪",x="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(u="⎧",v="⎭",d="⎪",x="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(u="⎫",v="⎩",d="⎪",x="Size4-Regular");var k=he(u,x,n),B=k.height+k.depth,T=he(d,x,n),N=T.height+T.depth,E=he(v,x,n),q=E.height+E.depth,V=0,H=1;if(m!==null){var U=he(m,x,n);V=U.height+U.depth,H=2}var G=B+q+V,W=Math.max(0,Math.ceil((t-G)/(H*N))),X=G+W*H*N,r0=a.fontMetrics().axisHeight;r&&(r0*=a.sizeMultiplier);var h0=X/2-r0,J=[];if(y.length>0){var Y0=X-B-q,p0=Math.round(X*1e3),i0=Wa(y,Math.round(Y0*1e3)),H0=new q0(y,i0),Q0=(w/1e3).toFixed(3)+"em",_0=(p0/1e3).toFixed(3)+"em",Dt=new M0([H0],{width:Q0,height:_0,viewBox:"0 0 "+w+" "+p0}),P0=b.makeSvgSpan([],[Dt],a);P0.height=p0/1e3,P0.style.width=Q0,P0.style.height=_0,J.push({type:"elem",elem:P0})}else{if(J.push(ut(v,x,n)),J.push(qe),m===null){var G0=X-B-q+2*mt;J.push(ht(d,G0,a))}else{var v0=(X-B-q-V)/2+2*mt;J.push(ht(d,v0,a)),J.push(qe),J.push(ut(m,x,n)),J.push(qe),J.push(ht(d,v0,a))}J.push(qe),J.push(ut(u,x,n))}var de=a.havingBaseStyle(F.TEXT),Nt=b.makeVList({positionType:"bottom",positionData:h0,children:J},de);return ot(b.makeSpan(["delimsizing","mult"],[Nt],de),F.TEXT,a,s)},ct=80,dt=.08,ft=function(e,t,r,a,n){var s=Va(e,a,r),u=new q0(e,s),m=new M0([u],{width:"400em",height:z(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return b.makeSvgSpan(["hide-tail"],[m],n)},G1=function(e,t){var r=t.havingBaseSizing(),a=Mr("\\surd",e*r.sizeMultiplier,Ar,r),n=r.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),u,m=0,d=0,v=0,y;return a.type==="small"?(v=1e3+1e3*s+ct,e<1?n=1:e<1.4&&(n=.7),m=(1+s+dt)/n,d=(1+s)/n,u=ft("sqrtMain",m,v,s,t),u.style.minWidth="0.853em",y=.833/n):a.type==="large"?(v=(1e3+ct)*me[a.size],d=(me[a.size]+s)/n,m=(me[a.size]+s+dt)/n,u=ft("sqrtSize"+a.size,m,v,s,t),u.style.minWidth="1.02em",y=1/n):(m=e+s+dt,d=e+s,v=Math.floor(1e3*e+s)+ct,u=ft("sqrtTall",m,v,s,t),u.style.minWidth="0.742em",y=1.056),u.height=d,u.style.height=z(m),{span:u,advanceWidth:y,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*n}},kr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],V1=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Sr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],me=[0,1.2,1.8,2.4,3],U1=function(e,t,r,a,n){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),I.contains(kr,e)||I.contains(Sr,e))return xr(e,t,!1,r,a,n);if(I.contains(V1,e))return wr(e,me[t],!1,r,a,n);throw new M("Illegal delimiter: '"+e+"'")},W1=[{type:"small",style:F.SCRIPTSCRIPT},{type:"small",style:F.SCRIPT},{type:"small",style:F.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Y1=[{type:"small",style:F.SCRIPTSCRIPT},{type:"small",style:F.SCRIPT},{type:"small",style:F.TEXT},{type:"stack"}],Ar=[{type:"small",style:F.SCRIPTSCRIPT},{type:"small",style:F.SCRIPT},{type:"small",style:F.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],X1=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Mr=function(e,t,r,a){for(var n=Math.min(2,3-a.style.size),s=n;st)return r[s]}return r[r.length-1]},Br=function(e,t,r,a,n,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var u;I.contains(Sr,e)?u=W1:I.contains(kr,e)?u=Ar:u=Y1;var m=Mr(e,t,u,a);return m.type==="small"?O1(e,m.style,r,a,n,s):m.type==="large"?xr(e,m.size,r,a,n,s):wr(e,t,r,a,n,s)},j1=function(e,t,r,a,n,s){var u=a.fontMetrics().axisHeight*a.sizeMultiplier,m=901,d=5/a.fontMetrics().ptPerEm,v=Math.max(t-u,r+u),y=Math.max(v/500*m,2*v-d);return Br(e,y,!0,a,n,s)},D0={sqrtImage:G1,sizedDelim:U1,sizeToMaxHeight:me,customSizedDelim:Br,leftRightDelim:j1},zr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},$1=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Fe(l,e){var t=De(l);if(t&&I.contains($1,t.text))return t;throw t?new M("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",l):new M("Invalid delimiter type '"+l.type+"'",l)}C({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(e,t){var r=Fe(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:zr[e.funcName].size,mclass:zr[e.funcName].mclass,delim:r.text}},htmlBuilder:function(e,t){return e.delim==="."?b.makeSpan([e.mclass]):D0.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];e.delim!=="."&&t.push(f0(e.delim,e.mode));var r=new A.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=z(D0.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}});function Tr(l){if(!l.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}C({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new M("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Fe(t[0],e).text,color:r}}}),C({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=Fe(t[0],e),a=e.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var s=L(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:r.text,right:s.delim,rightColor:s.color}},htmlBuilder:function(e,t){Tr(e);for(var r=t0(e.body,t,!0,["mopen","mclose"]),a=0,n=0,s=!1,u=0;u-1?"mpadded":"menclose",[Y(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};C({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(e,t,r){var a=e.parser,n=e.funcName,s=L(t[0],"color-token").color,u=t[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:s,body:u}},htmlBuilder:pt,mathmlBuilder:vt}),C({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(e,t,r){var a=e.parser,n=e.funcName,s=L(t[0],"color-token").color,u=L(t[1],"color-token").color,m=t[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:u,borderColor:s,body:m}},htmlBuilder:pt,mathmlBuilder:vt}),C({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){var r=e.parser;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),C({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(e,t){var r=e.parser,a=e.funcName,n=t[0];return{type:"enclose",mode:r.mode,label:a,body:n}},htmlBuilder:pt,mathmlBuilder:vt}),C({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(e,t){var r=e.parser;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Cr={};function w0(l){for(var e=l.type,t=l.names,r=l.props,a=l.handler,n=l.htmlBuilder,s=l.mathmlBuilder,u={type:e,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},m=0;m1||!v)&&B.pop(),N.length0&&(q+=.25),d.push({pos:q,isDashed:He[Pe]})}for(V(s[0]),r=0;r0&&(h0+=E,G=u)){var te=void 0;(a>0||e.hskipBeforeAndAfter)&&(te=I.deflt(v0.pregap,w),te!==0&&(i0=b.makeSpan(["arraycolsep"],[]),i0.style.width=z(te),p0.push(i0)));var re=[];for(r=0;r0){for(var Sn=b.makeLineSpan("hline",t,v),An=b.makeLineSpan("hdashline",t,v),Et=[{type:"elem",elem:m,shift:0}];d.length>0;){var da=d.pop(),fa=da.pos-J;da.isDashed?Et.push({type:"elem",elem:An,shift:fa}):Et.push({type:"elem",elem:Sn,shift:fa})}m=b.makeVList({positionType:"individualShift",children:Et},t)}if(Q0.length===0)return b.makeSpan(["mord"],[m],t);var qt=b.makeVList({positionType:"individualShift",children:Q0},t);return qt=b.makeSpan(["tag"],[qt],t),b.makeFragment([m,qt])},Z1={c:"center ",l:"left ",r:"right "},S0=function(e,t){for(var r=[],a=new A.MathNode("mtd",[],["mtr-glue"]),n=new A.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var k=e.cols,B="",T=!1,N=0,E=k.length;k[0].type==="separator"&&(w+="top ",N=1),k[k.length-1].type==="separator"&&(w+="bottom ",E-=1);for(var q=N;q0?"left ":"",w+=W[W.length-1].length>0?"right ":"";for(var X=1;X-1?"alignat":"align",n=e.envName==="split",s=O0(e.parser,{cols:r,addJot:!0,autoTag:n?void 0:gt(e.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:n?2:void 0,leqno:e.parser.settings.leqno},"display"),u,m=0,d={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var v="",y=0;y0&&x&&(T=1),r[k]={type:"align",align:B,pregap:T,postgap:0}}return s.colSeparationType=x?"align":"alignat",s};w0({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var r=De(t[0]),a=r?[t[0]]:L(t[0],"ordgroup").body,n=a.map(function(u){var m=it(u),d=m.text;if("lcr".indexOf(d)!==-1)return{type:"align",align:d};if(d==="|")return{type:"separator",separator:"|"};if(d===":")return{type:"separator",separator:":"};throw new M("Unknown column alignment: "+d,u)}),s={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return O0(e.parser,s,bt(e.envName))},htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var n=e.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),r=n.fetch().text,"lcr".indexOf(r)===-1)throw new M("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:r}]}}var s=O0(e.parser,a,bt(e.envName)),u=Math.max.apply(Math,[0].concat(s.body.map(function(m){return m.length})));return s.cols=new Array(u).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t={arraystretch:.5},r=O0(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var r=De(t[0]),a=r?[t[0]]:L(t[0],"ordgroup").body,n=a.map(function(u){var m=it(u),d=m.text;if("lc".indexOf(d)!==-1)return{type:"align",align:d};throw new M("Unknown column alignment: "+d,u)});if(n.length>1)throw new M("{subarray} can contain only one column");var s={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=O0(e.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new M("{subarray} can contain only one column");return s},htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=O0(e.parser,t,bt(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Er,htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(e){I.contains(["gather","gather*"],e.envName)&&Re(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:gt(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return O0(e.parser,t,"display")},htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Er,htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(e){Re(e);var t={autoTag:gt(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return O0(e.parser,t,"display")},htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["CD"],props:{numArgs:0},handler:function(e){return Re(e),R1(e.parser)},htmlBuilder:k0,mathmlBuilder:S0}),c("\\nonumber","\\gdef\\@eqnsw{0}"),c("\\notag","\\nonumber"),C({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new M(e.funcName+" valid only within array environment")}});var K1=Cr,qr=K1;C({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var r=e.parser,a=e.funcName,n=t[0];if(n.type!=="ordgroup")throw new M("Invalid environment name",n);for(var s="",u=0;u=F.SCRIPT.id?r.text():F.DISPLAY:e==="text"&&r.size===F.DISPLAY.size?r=F.TEXT:e==="script"?r=F.SCRIPT:e==="scriptscript"&&(r=F.SCRIPTSCRIPT),r},yt=function(e,t){var r=Or(e.size,t.style),a=r.fracNum(),n=r.fracDen(),s;s=t.havingStyle(a);var u=P(e.numer,s,t);if(e.continued){var m=8.5/t.fontMetrics().ptPerEm,d=3.5/t.fontMetrics().ptPerEm;u.height=u.height0?B=3*x:B=7*x,T=t.fontMetrics().denom1):(w>0?(k=t.fontMetrics().num2,B=x):(k=t.fontMetrics().num3,B=3*x),T=t.fontMetrics().denom2);var N;if(y){var q=t.fontMetrics().axisHeight;k-u.depth-(q+.5*w)0&&(t=e,t=t==="."?null:t),t};C({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var r=e.parser,a=t[4],n=t[5],s=Te(t[0]),u=s.type==="atom"&&s.family==="open"?Hr(s.text):null,m=Te(t[1]),d=m.type==="atom"&&m.family==="close"?Hr(m.text):null,v=L(t[2],"size"),y,w=null;v.isBlank?y=!0:(w=v.value,y=w.number>0);var x="auto",k=t[3];if(k.type==="ordgroup"){if(k.body.length>0){var B=L(k.body[0],"textord");x=Lr[Number(B.text)]}}else k=L(k,"textord"),x=Lr[Number(k.text)];return{type:"genfrac",mode:r.mode,numer:a,denom:n,continued:!1,hasBarLine:y,barSize:w,leftDelim:u,rightDelim:d,size:x}},htmlBuilder:yt,mathmlBuilder:xt}),C({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var r=e.parser;e.funcName;var a=e.token;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:L(t[0],"size").value,token:a}}}),C({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var r=e.parser;e.funcName;var a=t[0],n=Ma(L(t[1],"infix").size),s=t[2],u=n.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:u,barSize:n,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:yt,mathmlBuilder:xt});var Pr=function(e,t){var r=t.style,a,n;e.type==="supsub"?(a=e.sup?P(e.sup,t.havingStyle(r.sup()),t):P(e.sub,t.havingStyle(r.sub()),t),n=L(e.base,"horizBrace")):n=L(e,"horizBrace");var s=P(n.base,t.havingBaseStyle(F.DISPLAY)),u=C0.svgSpan(n,t),m;if(n.isOver?(m=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:u}]},t),m.children[0].children[0].children[1].classes.push("svg-align")):(m=b.makeVList({positionType:"bottom",positionData:s.depth+.1+u.height,children:[{type:"elem",elem:u},{type:"kern",size:.1},{type:"elem",elem:s}]},t),m.children[0].children[0].children[0].classes.push("svg-align")),a){var d=b.makeSpan(["mord",n.isOver?"mover":"munder"],[m],t);n.isOver?m=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d},{type:"kern",size:.2},{type:"elem",elem:a}]},t):m=b.makeVList({positionType:"bottom",positionData:d.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:d}]},t)}return b.makeSpan(["mord",n.isOver?"mover":"munder"],[m],t)},J1=function(e,t){var r=C0.mathMLnode(e.label);return new A.MathNode(e.isOver?"mover":"munder",[Y(e.base,t),r])};C({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var r=e.parser,a=e.funcName;return{type:"horizBrace",mode:r.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:Pr,mathmlBuilder:J1}),C({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var r=e.parser,a=t[1],n=L(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:Q(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var r=t0(e.body,t,!1);return b.makeAnchor(e.href,[],r,t)},mathmlBuilder:function(e,t){var r=R0(e.body,t);return r instanceof d0||(r=new d0("mrow",[r])),r.setAttribute("href",e.href),r}}),C({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var r=e.parser,a=L(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var n=[],s=0;s0&&(a=$(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=$(e.width,t));var s={height:z(r+a)};n>0&&(s.width=z(n)),a>0&&(s.verticalAlign=z(-a));var u=new Ka(e.src,e.alt,s);return u.height=r,u.depth=a,u},mathmlBuilder:function(e,t){var r=new A.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var a=$(e.height,t),n=0;if(e.totalheight.number>0&&(n=$(e.totalheight,t)-a,r.setAttribute("valign",z(-n))),r.setAttribute("height",z(a+n)),e.width.number>0){var s=$(e.width,t);r.setAttribute("width",z(s))}return r.setAttribute("src",e.src),r}}),C({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(e,t){var r=e.parser,a=e.funcName,n=L(t[0],"size");if(r.settings.strict){var s=a[1]==="m",u=n.value.unit==="mu";s?(u||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+n.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):u&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder:function(e,t){return b.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var r=$(e.dimension,t);return new A.SpaceNode(r)}}),C({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser,a=e.funcName,n=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:n}},htmlBuilder:function(e,t){var r;e.alignment==="clap"?(r=b.makeSpan([],[P(e.body,t)]),r=b.makeSpan(["inner"],[r],t)):r=b.makeSpan(["inner"],[P(e.body,t)]);var a=b.makeSpan(["fix"],[]),n=b.makeSpan([e.alignment],[r,a],t),s=b.makeSpan(["strut"]);return s.style.height=z(n.height+n.depth),n.depth&&(s.style.verticalAlign=z(-n.depth)),n.children.unshift(s),n=b.makeSpan(["thinbox"],[n],t),b.makeSpan(["mord","vbox"],[n],t)},mathmlBuilder:function(e,t){var r=new A.MathNode("mpadded",[Y(e.body,t)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}}),C({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var r=e.funcName,a=e.parser,n=a.mode;a.switchMode("math");var s=r==="\\("?"\\)":"$",u=a.parseExpression(!1,s);return a.expect(s),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:u}}}),C({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new M("Mismatched "+e.funcName)}});var Gr=function(e,t){switch(t.style.size){case F.DISPLAY.size:return e.display;case F.TEXT.size:return e.text;case F.SCRIPT.size:return e.script;case F.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};C({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(e,t){var r=e.parser;return{type:"mathchoice",mode:r.mode,display:Q(t[0]),text:Q(t[1]),script:Q(t[2]),scriptscript:Q(t[3])}},htmlBuilder:function(e,t){var r=Gr(e,t),a=t0(r,t,!1);return b.makeFragment(a)},mathmlBuilder:function(e,t){var r=Gr(e,t);return R0(r,t)}});var Vr=function(e,t,r,a,n,s,u){e=b.makeSpan([],[e]);var m=r&&I.isCharacterBox(r),d,v;if(t){var y=P(t,a.havingStyle(n.sup()),a);v={elem:y,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-y.depth)}}if(r){var w=P(r,a.havingStyle(n.sub()),a);d={elem:w,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-w.height)}}var x;if(v&&d){var k=a.fontMetrics().bigOpSpacing5+d.elem.height+d.elem.depth+d.kern+e.depth+u;x=b.makeVList({positionType:"bottom",positionData:k,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:z(-s)},{type:"kern",size:d.kern},{type:"elem",elem:e},{type:"kern",size:v.kern},{type:"elem",elem:v.elem,marginLeft:z(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(d){var B=e.height-u;x=b.makeVList({positionType:"top",positionData:B,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:z(-s)},{type:"kern",size:d.kern},{type:"elem",elem:e}]},a)}else if(v){var T=e.depth+u;x=b.makeVList({positionType:"bottom",positionData:T,children:[{type:"elem",elem:e},{type:"kern",size:v.kern},{type:"elem",elem:v.elem,marginLeft:z(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return e;var N=[x];if(d&&s!==0&&!m){var E=b.makeSpan(["mspace"],[],a);E.style.marginRight=z(s),N.unshift(E)}return b.makeSpan(["mop","op-limits"],N,a)},Ur=["\\smallint"],J0=function(e,t){var r,a,n=!1,s;e.type==="supsub"?(r=e.sup,a=e.sub,s=L(e.base,"op"),n=!0):s=L(e,"op");var u=t.style,m=!1;u.size===F.DISPLAY.size&&s.symbol&&!I.contains(Ur,s.name)&&(m=!0);var d;if(s.symbol){var v=m?"Size2-Regular":"Size1-Regular",y="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(y=s.name.slice(1),s.name=y==="oiint"?"\\iint":"\\iiint"),d=b.makeSymbol(s.name,v,"math",t,["mop","op-symbol",m?"large-op":"small-op"]),y.length>0){var w=d.italic,x=b.staticSvg(y+"Size"+(m?"2":"1"),t);d=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:0},{type:"elem",elem:x,shift:m?.08:0}]},t),s.name="\\"+y,d.classes.unshift("mop"),d.italic=w}}else if(s.body){var k=t0(s.body,t,!0);k.length===1&&k[0]instanceof c0?(d=k[0],d.classes[0]="mop"):d=b.makeSpan(["mop"],k,t)}else{for(var B=[],T=1;T0){for(var m=s.body.map(function(w){var x=w.text;return typeof x=="string"?{type:"textord",mode:w.mode,text:x}:w}),d=t0(m,t.withFont("mathrm"),!0),v=0;v=0?m.setAttribute("height",z(n)):(m.setAttribute("height",z(n)),m.setAttribute("depth",z(-n))),m.setAttribute("voffset",z(n)),m}});function Yr(l,e,t){for(var r=t0(l,e,!1),a=e.sizeMultiplier/t.sizeMultiplier,n=0;nr.height+r.depth+u&&(u=(u+x-r.height-r.depth)/2);var k=v.height-r.height-u-y;r.style.paddingLeft=z(w);var B=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+k)},{type:"elem",elem:v},{type:"kern",size:y}]},t);if(e.index){var T=t.havingStyle(F.SCRIPTSCRIPT),N=P(e.index,T,t),E=.6*(B.height-B.depth),q=b.makeVList({positionType:"shift",positionData:-E,children:[{type:"elem",elem:N}]},t),V=b.makeSpan(["root"],[q]);return b.makeSpan(["mord","sqrt"],[V,B],t)}else return b.makeSpan(["mord","sqrt"],[B],t)},mathmlBuilder:function(e,t){var r=e.body,a=e.index;return a?new A.MathNode("mroot",[Y(r,t),Y(a,t)]):new A.MathNode("msqrt",[Y(r,t)])}});var jr={display:F.DISPLAY,text:F.TEXT,script:F.SCRIPT,scriptscript:F.SCRIPTSCRIPT};C({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e,t){var r=e.breakOnTokenText,a=e.funcName,n=e.parser,s=n.parseExpression(!0,r),u=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:u,body:s}},htmlBuilder:function(e,t){var r=jr[e.style],a=t.havingStyle(r).withFont("");return Yr(e.body,a,t)},mathmlBuilder:function(e,t){var r=jr[e.style],a=t.havingStyle(r),n=o0(e.body,a),s=new A.MathNode("mstyle",n),u={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},m=u[e.style];return s.setAttribute("scriptlevel",m[0]),s.setAttribute("displaystyle",m[1]),s}});var rn=function(e,t){var r=e.base;if(r)if(r.type==="op"){var a=r.limits&&(t.style.size===F.DISPLAY.size||r.alwaysHandleSupSub);return a?J0:null}else if(r.type==="operatorname"){var n=r.alwaysHandleSupSub&&(t.style.size===F.DISPLAY.size||r.limits);return n?Wr:null}else{if(r.type==="accent")return I.isCharacterBox(r.base)?lt:null;if(r.type==="horizBrace"){var s=!e.sub;return s===r.isOver?Pr:null}else return null}else return null};W0({type:"supsub",htmlBuilder:function(e,t){var r=rn(e,t);if(r)return r(e,t);var a=e.base,n=e.sup,s=e.sub,u=P(a,t),m,d,v=t.fontMetrics(),y=0,w=0,x=a&&I.isCharacterBox(a);if(n){var k=t.havingStyle(t.style.sup());m=P(n,k,t),x||(y=u.height-k.fontMetrics().supDrop*k.sizeMultiplier/t.sizeMultiplier)}if(s){var B=t.havingStyle(t.style.sub());d=P(s,B,t),x||(w=u.depth+B.fontMetrics().subDrop*B.sizeMultiplier/t.sizeMultiplier)}var T;t.style===F.DISPLAY?T=v.sup1:t.style.cramped?T=v.sup3:T=v.sup2;var N=t.sizeMultiplier,E=z(.5/v.ptPerEm/N),q=null;if(d){var V=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(u instanceof c0||V)&&(q=z(-u.italic))}var H;if(m&&d){y=Math.max(y,T,m.depth+.25*v.xHeight),w=Math.max(w,v.sub2);var U=v.defaultRuleThickness,G=4*U;if(y-m.depth-(d.height-w)0&&(y+=W,w-=W)}var X=[{type:"elem",elem:d,shift:w,marginRight:E,marginLeft:q},{type:"elem",elem:m,shift:-y,marginRight:E}];H=b.makeVList({positionType:"individualShift",children:X},t)}else if(d){w=Math.max(w,v.sub1,d.height-.8*v.xHeight);var r0=[{type:"elem",elem:d,marginLeft:q,marginRight:E}];H=b.makeVList({positionType:"shift",positionData:w,children:r0},t)}else if(m)y=Math.max(y,T,m.depth+.25*v.xHeight),H=b.makeVList({positionType:"shift",positionData:-y,children:[{type:"elem",elem:m,marginRight:E}]},t);else throw new Error("supsub must have either sup or sub.");var h0=tt(u,"right")||"mord";return b.makeSpan([h0],[u,b.makeSpan(["msupsub"],[H])],t)},mathmlBuilder:function(e,t){var r=!1,a,n;e.base&&e.base.type==="horizBrace"&&(n=!!e.sup,n===e.base.isOver&&(r=!0,a=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[Y(e.base,t)];e.sub&&s.push(Y(e.sub,t)),e.sup&&s.push(Y(e.sup,t));var u;if(r)u=a?"mover":"munder";else if(e.sub)if(e.sup){var v=e.base;v&&v.type==="op"&&v.limits&&t.style===F.DISPLAY||v&&v.type==="operatorname"&&v.alwaysHandleSupSub&&(t.style===F.DISPLAY||v.limits)?u="munderover":u="msubsup"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===F.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===F.DISPLAY)?u="munder":u="msub"}else{var m=e.base;m&&m.type==="op"&&m.limits&&(t.style===F.DISPLAY||m.alwaysHandleSupSub)||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(m.limits||t.style===F.DISPLAY)?u="mover":u="msup"}return new A.MathNode(u,s)}}),W0({type:"atom",htmlBuilder:function(e,t){return b.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var r=new A.MathNode("mo",[f0(e.text,e.mode)]);if(e.family==="bin"){var a=nt(e,t);a==="bold-italic"&&r.setAttribute("mathvariant",a)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var $r={mi:"italic",mn:"normal",mtext:"normal"};W0({type:"mathord",htmlBuilder:function(e,t){return b.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var r=new A.MathNode("mi",[f0(e.text,e.mode,t)]),a=nt(e,t)||"italic";return a!==$r[r.type]&&r.setAttribute("mathvariant",a),r}}),W0({type:"textord",htmlBuilder:function(e,t){return b.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var r=f0(e.text,e.mode,t),a=nt(e,t)||"normal",n;return e.mode==="text"?n=new A.MathNode("mtext",[r]):/[0-9]/.test(e.text)?n=new A.MathNode("mn",[r]):e.text==="\\prime"?n=new A.MathNode("mo",[r]):n=new A.MathNode("mi",[r]),a!==$r[n.type]&&n.setAttribute("mathvariant",a),n}});var kt={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},St={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};W0({type:"spacing",htmlBuilder:function(e,t){if(St.hasOwnProperty(e.text)){var r=St[e.text].className||"";if(e.mode==="text"){var a=b.makeOrd(e,t,"textord");return a.classes.push(r),a}else return b.makeSpan(["mspace",r],[b.mathsym(e.text,e.mode,t)],t)}else{if(kt.hasOwnProperty(e.text))return b.makeSpan(["mspace",kt[e.text]],[],t);throw new M('Unknown type of space "'+e.text+'"')}},mathmlBuilder:function(e,t){var r;if(St.hasOwnProperty(e.text))r=new A.MathNode("mtext",[new A.TextNode(" ")]);else{if(kt.hasOwnProperty(e.text))return new A.MathNode("mspace");throw new M('Unknown type of space "'+e.text+'"')}return r}});var Zr=function(){var e=new A.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};W0({type:"tag",mathmlBuilder:function(e,t){var r=new A.MathNode("mtable",[new A.MathNode("mtr",[Zr(),new A.MathNode("mtd",[R0(e.body,t)]),Zr(),new A.MathNode("mtd",[R0(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Kr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Jr={"\\textbf":"textbf","\\textmd":"textmd"},an={"\\textit":"textit","\\textup":"textup"},Qr=function(e,t){var r=e.font;return r?Kr[r]?t.withTextFontFamily(Kr[r]):Jr[r]?t.withTextFontWeight(Jr[r]):t.withTextFontShape(an[r]):t};C({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(e,t){var r=e.parser,a=e.funcName,n=t[0];return{type:"text",mode:r.mode,body:Q(n),font:a}},htmlBuilder:function(e,t){var r=Qr(e,t),a=t0(e.body,r,!0);return b.makeSpan(["mord","text"],a,r)},mathmlBuilder:function(e,t){var r=Qr(e,t);return R0(e.body,r)}}),C({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder:function(e,t){var r=P(e.body,t),a=b.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,s=b.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:r}]},t);return b.makeSpan(["mord","underline"],[s],t)},mathmlBuilder:function(e,t){var r=new A.MathNode("mo",[new A.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new A.MathNode("munder",[Y(e.body,t),r]);return a.setAttribute("accentunder","true"),a}}),C({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(e,t){var r=e.parser;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder:function(e,t){var r=P(e.body,t),a=t.fontMetrics().axisHeight,n=.5*(r.height-a-(r.depth+a));return b.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:function(e,t){return new A.MathNode("mpadded",[Y(e.body,t)],["vcenter"])}}),C({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,r){throw new M("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var r=_r(e),a=[],n=t.havingStyle(t.style.text()),s=0;s0;)this.endGroup()},e.has=function(r){return this.current.hasOwnProperty(r)||this.builtins.hasOwnProperty(r)},e.get=function(r){return this.current.hasOwnProperty(r)?this.current[r]:this.builtins[r]},e.set=function(r,a,n){if(n===void 0&&(n=!1),n){for(var s=0;s0&&(this.undefStack[this.undefStack.length-1][r]=a)}else{var u=this.undefStack[this.undefStack.length-1];u&&!u.hasOwnProperty(r)&&(u[r]=this.current[r])}a==null?delete this.current[r]:this.current[r]=a},l}(),dn=Dr,fn=dn;c("\\noexpand",function(l){var e=l.popToken();return l.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}}),c("\\expandafter",function(l){var e=l.popToken();return l.expandOnce(!0),{tokens:[e],numArgs:0}}),c("\\@firstoftwo",function(l){var e=l.consumeArgs(2);return{tokens:e[0],numArgs:0}}),c("\\@secondoftwo",function(l){var e=l.consumeArgs(2);return{tokens:e[1],numArgs:0}}),c("\\@ifnextchar",function(l){var e=l.consumeArgs(3);l.consumeSpaces();var t=l.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}}),c("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),c("\\TextOrMath",function(l){var e=l.consumeArgs(2);return l.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var ra={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};c("\\char",function(l){var e=l.popToken(),t,r="";if(e.text==="'")t=8,e=l.popToken();else if(e.text==='"')t=16,e=l.popToken();else if(e.text==="`")if(e=l.popToken(),e.text[0]==="\\")r=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new M("\\char` missing argument");r=e.text.charCodeAt(0)}else t=10;if(t){if(r=ra[e.text],r==null||r>=t)throw new M("Invalid base-"+t+" digit "+e.text);for(var a;(a=ra[l.future().text])!=null&&a":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};c("\\dots",function(l){var e="\\dotso",t=l.expandAfterFuture().text;return t in aa?e=aa[t]:(t.slice(0,4)==="\\not"||t in Z.math&&I.contains(["bin","rel"],Z.math[t].group))&&(e="\\dotsb"),e});var Bt={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};c("\\dotso",function(l){var e=l.future().text;return e in Bt?"\\ldots\\,":"\\ldots"}),c("\\dotsc",function(l){var e=l.future().text;return e in Bt&&e!==","?"\\ldots\\,":"\\ldots"}),c("\\cdots",function(l){var e=l.future().text;return e in Bt?"\\@cdots\\,":"\\@cdots"}),c("\\dotsb","\\cdots"),c("\\dotsm","\\cdots"),c("\\dotsi","\\!\\cdots"),c("\\dotsx","\\ldots\\,"),c("\\DOTSI","\\relax"),c("\\DOTSB","\\relax"),c("\\DOTSX","\\relax"),c("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),c("\\,","\\tmspace+{3mu}{.1667em}"),c("\\thinspace","\\,"),c("\\>","\\mskip{4mu}"),c("\\:","\\tmspace+{4mu}{.2222em}"),c("\\medspace","\\:"),c("\\;","\\tmspace+{5mu}{.2777em}"),c("\\thickspace","\\;"),c("\\!","\\tmspace-{3mu}{.1667em}"),c("\\negthinspace","\\!"),c("\\negmedspace","\\tmspace-{4mu}{.2222em}"),c("\\negthickspace","\\tmspace-{5mu}{.277em}"),c("\\enspace","\\kern.5em "),c("\\enskip","\\hskip.5em\\relax"),c("\\quad","\\hskip1em\\relax"),c("\\qquad","\\hskip2em\\relax"),c("\\tag","\\@ifstar\\tag@literal\\tag@paren"),c("\\tag@paren","\\tag@literal{({#1})}"),c("\\tag@literal",function(l){if(l.macros.get("\\df@tag"))throw new M("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),c("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),c("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),c("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),c("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),c("\\newline","\\\\\\relax"),c("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var na=z(x0["Main-Regular"]["T".charCodeAt(0)][1]-.7*x0["Main-Regular"]["A".charCodeAt(0)][1]);c("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+na+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),c("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+na+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),c("\\hspace","\\@ifstar\\@hspacer\\@hspace"),c("\\@hspace","\\hskip #1\\relax"),c("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),c("\\ordinarycolon",":"),c("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),c("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),c("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),c("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),c("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),c("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),c("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),c("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),c("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),c("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),c("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),c("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),c("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),c("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),c("∷","\\dblcolon"),c("∹","\\eqcolon"),c("≔","\\coloneqq"),c("≕","\\eqqcolon"),c("⩴","\\Coloneqq"),c("\\ratio","\\vcentcolon"),c("\\coloncolon","\\dblcolon"),c("\\colonequals","\\coloneqq"),c("\\coloncolonequals","\\Coloneqq"),c("\\equalscolon","\\eqqcolon"),c("\\equalscoloncolon","\\Eqqcolon"),c("\\colonminus","\\coloneq"),c("\\coloncolonminus","\\Coloneq"),c("\\minuscolon","\\eqcolon"),c("\\minuscoloncolon","\\Eqcolon"),c("\\coloncolonapprox","\\Colonapprox"),c("\\coloncolonsim","\\Colonsim"),c("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),c("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),c("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),c("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),c("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),c("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),c("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),c("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),c("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),c("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),c("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),c("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),c("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),c("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),c("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),c("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),c("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),c("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),c("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),c("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),c("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),c("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),c("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),c("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),c("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),c("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),c("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),c("\\imath","\\html@mathml{\\@imath}{ı}"),c("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),c("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),c("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),c("⟦","\\llbracket"),c("⟧","\\rrbracket"),c("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),c("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),c("⦃","\\lBrace"),c("⦄","\\rBrace"),c("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),c("⦵","\\minuso"),c("\\darr","\\downarrow"),c("\\dArr","\\Downarrow"),c("\\Darr","\\Downarrow"),c("\\lang","\\langle"),c("\\rang","\\rangle"),c("\\uarr","\\uparrow"),c("\\uArr","\\Uparrow"),c("\\Uarr","\\Uparrow"),c("\\N","\\mathbb{N}"),c("\\R","\\mathbb{R}"),c("\\Z","\\mathbb{Z}"),c("\\alef","\\aleph"),c("\\alefsym","\\aleph"),c("\\Alpha","\\mathrm{A}"),c("\\Beta","\\mathrm{B}"),c("\\bull","\\bullet"),c("\\Chi","\\mathrm{X}"),c("\\clubs","\\clubsuit"),c("\\cnums","\\mathbb{C}"),c("\\Complex","\\mathbb{C}"),c("\\Dagger","\\ddagger"),c("\\diamonds","\\diamondsuit"),c("\\empty","\\emptyset"),c("\\Epsilon","\\mathrm{E}"),c("\\Eta","\\mathrm{H}"),c("\\exist","\\exists"),c("\\harr","\\leftrightarrow"),c("\\hArr","\\Leftrightarrow"),c("\\Harr","\\Leftrightarrow"),c("\\hearts","\\heartsuit"),c("\\image","\\Im"),c("\\infin","\\infty"),c("\\Iota","\\mathrm{I}"),c("\\isin","\\in"),c("\\Kappa","\\mathrm{K}"),c("\\larr","\\leftarrow"),c("\\lArr","\\Leftarrow"),c("\\Larr","\\Leftarrow"),c("\\lrarr","\\leftrightarrow"),c("\\lrArr","\\Leftrightarrow"),c("\\Lrarr","\\Leftrightarrow"),c("\\Mu","\\mathrm{M}"),c("\\natnums","\\mathbb{N}"),c("\\Nu","\\mathrm{N}"),c("\\Omicron","\\mathrm{O}"),c("\\plusmn","\\pm"),c("\\rarr","\\rightarrow"),c("\\rArr","\\Rightarrow"),c("\\Rarr","\\Rightarrow"),c("\\real","\\Re"),c("\\reals","\\mathbb{R}"),c("\\Reals","\\mathbb{R}"),c("\\Rho","\\mathrm{P}"),c("\\sdot","\\cdot"),c("\\sect","\\S"),c("\\spades","\\spadesuit"),c("\\sub","\\subset"),c("\\sube","\\subseteq"),c("\\supe","\\supseteq"),c("\\Tau","\\mathrm{T}"),c("\\thetasym","\\vartheta"),c("\\weierp","\\wp"),c("\\Zeta","\\mathrm{Z}"),c("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),c("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),c("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),c("\\bra","\\mathinner{\\langle{#1}|}"),c("\\ket","\\mathinner{|{#1}\\rangle}"),c("\\braket","\\mathinner{\\langle{#1}\\rangle}"),c("\\Bra","\\left\\langle#1\\right|"),c("\\Ket","\\left|#1\\right\\rangle");var ia=function(e){return function(t){var r=t.consumeArg().tokens,a=t.consumeArg().tokens,n=t.consumeArg().tokens,s=t.consumeArg().tokens,u=t.macros.get("|"),m=t.macros.get("\\|");t.macros.beginGroup();var d=function(x){return function(k){e&&(k.macros.set("|",u),n.length&&k.macros.set("\\|",m));var B=x;if(!x&&n.length){var T=k.future();T.text==="|"&&(k.popToken(),B=!0)}return{tokens:B?n:a,numArgs:0}}};t.macros.set("|",d(!1)),n.length&&t.macros.set("\\|",d(!0));var v=t.consumeArg().tokens,y=t.expandTokens([].concat(s,v,r));return t.macros.endGroup(),{tokens:y.reverse(),numArgs:0}}};c("\\bra@ket",ia(!1)),c("\\bra@set",ia(!0)),c("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),c("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),c("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),c("\\angln","{\\angl n}"),c("\\blue","\\textcolor{##6495ed}{#1}"),c("\\orange","\\textcolor{##ffa500}{#1}"),c("\\pink","\\textcolor{##ff00af}{#1}"),c("\\red","\\textcolor{##df0030}{#1}"),c("\\green","\\textcolor{##28ae7b}{#1}"),c("\\gray","\\textcolor{gray}{#1}"),c("\\purple","\\textcolor{##9d38bd}{#1}"),c("\\blueA","\\textcolor{##ccfaff}{#1}"),c("\\blueB","\\textcolor{##80f6ff}{#1}"),c("\\blueC","\\textcolor{##63d9ea}{#1}"),c("\\blueD","\\textcolor{##11accd}{#1}"),c("\\blueE","\\textcolor{##0c7f99}{#1}"),c("\\tealA","\\textcolor{##94fff5}{#1}"),c("\\tealB","\\textcolor{##26edd5}{#1}"),c("\\tealC","\\textcolor{##01d1c1}{#1}"),c("\\tealD","\\textcolor{##01a995}{#1}"),c("\\tealE","\\textcolor{##208170}{#1}"),c("\\greenA","\\textcolor{##b6ffb0}{#1}"),c("\\greenB","\\textcolor{##8af281}{#1}"),c("\\greenC","\\textcolor{##74cf70}{#1}"),c("\\greenD","\\textcolor{##1fab54}{#1}"),c("\\greenE","\\textcolor{##0d923f}{#1}"),c("\\goldA","\\textcolor{##ffd0a9}{#1}"),c("\\goldB","\\textcolor{##ffbb71}{#1}"),c("\\goldC","\\textcolor{##ff9c39}{#1}"),c("\\goldD","\\textcolor{##e07d10}{#1}"),c("\\goldE","\\textcolor{##a75a05}{#1}"),c("\\redA","\\textcolor{##fca9a9}{#1}"),c("\\redB","\\textcolor{##ff8482}{#1}"),c("\\redC","\\textcolor{##f9685d}{#1}"),c("\\redD","\\textcolor{##e84d39}{#1}"),c("\\redE","\\textcolor{##bc2612}{#1}"),c("\\maroonA","\\textcolor{##ffbde0}{#1}"),c("\\maroonB","\\textcolor{##ff92c6}{#1}"),c("\\maroonC","\\textcolor{##ed5fa6}{#1}"),c("\\maroonD","\\textcolor{##ca337c}{#1}"),c("\\maroonE","\\textcolor{##9e034e}{#1}"),c("\\purpleA","\\textcolor{##ddd7ff}{#1}"),c("\\purpleB","\\textcolor{##c6b9fc}{#1}"),c("\\purpleC","\\textcolor{##aa87ff}{#1}"),c("\\purpleD","\\textcolor{##7854ab}{#1}"),c("\\purpleE","\\textcolor{##543b78}{#1}"),c("\\mintA","\\textcolor{##f5f9e8}{#1}"),c("\\mintB","\\textcolor{##edf2df}{#1}"),c("\\mintC","\\textcolor{##e0e5cc}{#1}"),c("\\grayA","\\textcolor{##f6f7f7}{#1}"),c("\\grayB","\\textcolor{##f0f1f2}{#1}"),c("\\grayC","\\textcolor{##e3e5e6}{#1}"),c("\\grayD","\\textcolor{##d6d8da}{#1}"),c("\\grayE","\\textcolor{##babec2}{#1}"),c("\\grayF","\\textcolor{##888d93}{#1}"),c("\\grayG","\\textcolor{##626569}{#1}"),c("\\grayH","\\textcolor{##3b3e40}{#1}"),c("\\grayI","\\textcolor{##21242c}{#1}"),c("\\kaBlue","\\textcolor{##314453}{#1}"),c("\\kaGreen","\\textcolor{##71B307}{#1}");var la={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},pn=function(){function l(t,r,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new cn(fn,r.macros),this.mode=a,this.stack=[]}var e=l.prototype;return e.feed=function(r){this.lexer=new ta(r,this.settings)},e.switchMode=function(r){this.mode=r},e.beginGroup=function(){this.macros.beginGroup()},e.endGroup=function(){this.macros.endGroup()},e.endGroups=function(){this.macros.endGroups()},e.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},e.popToken=function(){return this.future(),this.stack.pop()},e.pushToken=function(r){this.stack.push(r)},e.pushTokens=function(r){var a;(a=this.stack).push.apply(a,r)},e.scanArgument=function(r){var a,n,s;if(r){if(this.consumeSpaces(),this.future().text!=="[")return null;a=this.popToken();var u=this.consumeArg(["]"]);s=u.tokens,n=u.end}else{var m=this.consumeArg();s=m.tokens,a=m.start,n=m.end}return this.pushToken(new I0("EOF",n.loc)),this.pushTokens(s),a.range(n,"")},e.consumeSpaces=function(){for(;;){var r=this.future();if(r.text===" ")this.stack.pop();else break}},e.consumeArg=function(r){var a=[],n=r&&r.length>0;n||this.consumeSpaces();var s=this.future(),u,m=0,d=0;do{if(u=this.popToken(),a.push(u),u.text==="{")++m;else if(u.text==="}"){if(--m,m===-1)throw new M("Extra }",u)}else if(u.text==="EOF")throw new M("Unexpected end of input in a macro argument, expected '"+(r&&n?r[d]:"}")+"'",u);if(r&&n)if((m===0||m===1&&r[d]==="{")&&u.text===r[d]){if(++d,d===r.length){a.splice(-d,d);break}}else d=0}while(m!==0||n);return s.text==="{"&&a[a.length-1].text==="}"&&(a.pop(),a.shift()),a.reverse(),{tokens:a,start:s,end:u}},e.consumeArgs=function(r,a){if(a){if(a.length!==r+1)throw new M("The length of delimiters doesn't match the number of args!");for(var n=a[0],s=0;sthis.settings.maxExpand)throw new M("Too many expansions: infinite loop or need to increase maxExpand setting");var u=s.tokens,m=this.consumeArgs(s.numArgs,s.delimiters);if(s.numArgs){u=u.slice();for(var d=u.length-1;d>=0;--d){var v=u[d];if(v.text==="#"){if(d===0)throw new M("Incomplete placeholder at end of macro body",v);if(v=u[--d],v.text==="#")u.splice(d+1,1);else if(/^[1-9]$/.test(v.text)){var y;(y=u).splice.apply(y,[d,2].concat(m[+v.text-1]))}else throw new M("Not a valid argument number",v)}}}return this.pushTokens(u),u.length},e.expandAfterFuture=function(){return this.expandOnce(),this.future()},e.expandNextToken=function(){for(;;)if(this.expandOnce()===!1){var r=this.stack.pop();return r.treatAsRelax&&(r.text="\\relax"),r}throw new Error},e.expandMacro=function(r){return this.macros.has(r)?this.expandTokens([new I0(r)]):void 0},e.expandTokens=function(r){var a=[],n=this.stack.length;for(this.pushTokens(r);this.stack.length>n;)if(this.expandOnce(!0)===!1){var s=this.stack.pop();s.treatAsRelax&&(s.noexpand=!1,s.treatAsRelax=!1),a.push(s)}return a},e.expandMacroAsText=function(r){var a=this.expandMacro(r);return a&&a.map(function(n){return n.text}).join("")},e._getExpansion=function(r){var a=this.macros.get(r);if(a==null)return a;if(r.length===1){var n=this.lexer.catcodes[r];if(n!=null&&n!==13)return}var s=typeof a=="function"?a(this):a;if(typeof s=="string"){var u=0;if(s.indexOf("#")!==-1)for(var m=s.replace(/##/g,"");m.indexOf("#"+(u+1))!==-1;)++u;for(var d=new ta(s,this.settings),v=[],y=d.lex();y.text!=="EOF";)v.push(y),y=d.lex();v.reverse();var w={tokens:v,numArgs:u};return w}return s},e.isDefined=function(r){return this.macros.has(r)||L0.hasOwnProperty(r)||Z.math.hasOwnProperty(r)||Z.text.hasOwnProperty(r)||la.hasOwnProperty(r)},e.isExpandable=function(r){var a=this.macros.get(r);return a!=null?typeof a=="string"||typeof a=="function"||!a.unexpandable:L0.hasOwnProperty(r)&&!L0[r].primitive},l}(),sa=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ie=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),zt={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},oa={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},ua=function(){function l(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new pn(t,r,this.mode),this.settings=r,this.leftrightDepth=0}var e=l.prototype;return e.expect=function(r,a){if(a===void 0&&(a=!0),this.fetch().text!==r)throw new M("Expected '"+r+"', got '"+this.fetch().text+"'",this.fetch());a&&this.consume()},e.consume=function(){this.nextToken=null},e.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},e.switchMode=function(r){this.mode=r,this.gullet.switchMode(r)},e.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var r=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),r}finally{this.gullet.endGroups()}},e.subparse=function(r){var a=this.nextToken;this.consume(),this.gullet.pushToken(new I0("}")),this.gullet.pushTokens(r);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=a,n},e.parseExpression=function(r,a){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var s=this.fetch();if(l.endOfExpression.indexOf(s.text)!==-1||a&&s.text===a||r&&L0[s.text]&&L0[s.text].infix)break;var u=this.parseAtom(a);if(u){if(u.type==="internal")continue}else break;n.push(u)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)},e.handleInfixNodes=function(r){for(var a=-1,n,s=0;s=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+a[0]+'" used in math mode',r);var d=Z[this.mode][a].group,v=b0.range(r),y;if(_a.hasOwnProperty(d)){var w=d;y={type:"atom",mode:this.mode,family:w,loc:v,text:a}}else y={type:d,mode:this.mode,loc:v,text:a};m=y}else if(a.charCodeAt(0)>=128)this.settings.strict&&(It(a.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+a[0]+'" used in math mode',r):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+a[0]+'"'+(" ("+a.charCodeAt(0)+")"),r)),m={type:"textord",mode:"text",loc:b0.range(r),text:a};else return null;if(this.consume(),u)for(var x=0;x