/*** Showdown-katex With revisions in splitAtDelimiters() by laurenwalker ***/ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.showdownKatex=e()}(this,function(){"use strict";"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=e(function(t,e){var r;"undefined"!=typeof self&&self,r=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=2)}([function(t,e,r){},,function(t,e,r){r.r(e);r(0);var n=function(){function t(t,e,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=e,this.end=r}return t.prototype.getSource=function(){return this.lexer.input.slice(this.start,this.end)},t.range=function(e,r){return r?e&&e.loc&&r.loc&&e.loc.lexer===r.loc.lexer?new t(e.loc.lexer,e.loc.start,r.loc.end):null:e&&e.loc},t}(),a=function(){function t(t,e){this.text=void 0,this.loc=void 0,this.text=t,this.loc=e}return t.prototype.range=function(e,r){return new t(r,n.range(this,e))},t}(),o=function t(e,r){this.position=void 0;var n,a="KaTeX parse error: "+e,o=r&&r.loc;if(o&&o.start<=o.end){var i=o.lexer.input;n=o.start;var s=o.end;n===i.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var l=i.slice(n,s).replace(/[^]/g,"$&̲");a+=(n>15?"…"+i.slice(n-15,n):i.slice(0,n))+l+(s+15":">","<":"<",'"':""","'":"'"},h=/[&><"']/g;var u=function t(e){return"ordgroup"===e.type?1===e.body.length?t(e.body[0]):e:"color"===e.type?1===e.body.length?t(e.body[0]):e:"font"===e.type?t(e.body):e},m=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},p={contains:function(t,e){return-1!==t.indexOf(e)},deflt:function(t,e){return void 0===t?e:t},escape:function(t){return String(t).replace(h,function(t){return l[t]})},hyphenate:function(t){return t.replace(s,"-$1").toLowerCase()},getBaseElem:u,isCharacterBox:function(t){var e=u(t);return"mathord"===e.type||"textord"===e.type||"atom"===e.type}},c=function(){function t(t){this.displayMode=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.allowedProtocols=void 0,t=t||{},this.displayMode=p.deflt(t.displayMode,!1),this.throwOnError=p.deflt(t.throwOnError,!0),this.errorColor=p.deflt(t.errorColor,"#cc0000"),this.macros=t.macros||{},this.colorIsTextColor=p.deflt(t.colorIsTextColor,!1),this.strict=p.deflt(t.strict,"warn"),this.maxSize=Math.max(0,p.deflt(t.maxSize,1/0)),this.maxExpand=Math.max(0,p.deflt(t.maxExpand,1e3)),this.allowedProtocols=p.deflt(t.allowedProtocols,["http","https","mailto","_relative"])}var e=t.prototype;return e.reportNonstrict=function(t,e,r){var n=this.strict;if("function"==typeof n&&(n=n(t,e,r)),n&&"ignore"!==n){if(!0===n||"error"===n)throw new i("LaTeX-incompatible input and strict mode is set to 'error': "+e+" ["+t+"]",r);"warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+t+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+e+" ["+t+"]")}},e.useStrictBehavior=function(t,e,r){var n=this.strict;if("function"==typeof n)try{n=n(t,e,r)}catch(t){n="error"}return!(!n||"ignore"===n)&&(!0===n||"error"===n||("warn"===n?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+t+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+e+" ["+t+"]"),!1)))},t}(),d=function(){function t(t,e,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=e,this.cramped=r}var e=t.prototype;return e.sup=function(){return f[g[this.id]]},e.sub=function(){return f[x[this.id]]},e.fracNum=function(){return f[y[this.id]]},e.fracDen=function(){return f[v[this.id]]},e.cramp=function(){return f[b[this.id]]},e.text=function(){return f[w[this.id]]},e.isTight=function(){return this.size>=2},t}(),f=[new d(0,0,!1),new d(1,0,!0),new d(2,1,!1),new d(3,1,!0),new d(4,2,!1),new d(5,2,!0),new d(6,3,!1),new d(7,3,!0)],g=[4,5,4,5,6,7,6,7],x=[5,5,5,5,7,7,7,7],y=[2,3,4,5,6,7,6,7],v=[3,3,5,5,7,7,7,7],b=[1,1,3,3,5,5,7,7],w=[0,1,2,3,2,3,2,3],k={DISPLAY:f[0],TEXT:f[2],SCRIPT:f[4],SCRIPTSCRIPT:f[6]},S=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];var T=[];function N(t){for(var e=0;e=T[e]&&t<=T[e+1])return!0;return!1}S.forEach(function(t){return t.blocks.forEach(function(t){return T.push.apply(T,t)})});var A={path:{sqrtMain:"M95,702c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,\n-10,-9.5,-14c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54c44.2,-33.3,65.8,\n-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10s173,378,173,378c0.7,0,\n35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429c69,-144,104.5,-217.7,106.5,\n-221c5.3,-9.3,12,-14,20,-14H400000v40H845.2724s-225.272,467,-225.272,467\ns-235,486,-235,486c-2.7,4.7,-9,7,-19,7c-6,0,-10,-1,-12,-3s-194,-422,-194,-422\ns-65,47,-65,47z M834 80H400000v40H845z",sqrtSize1:"M263,681c0.7,0,18,39.7,52,119c34,79.3,68.167,\n158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120c340,-704.7,510.7,-1060.3,512,-1067\nc4.7,-7.3,11,-11,19,-11H40000v40H1012.3s-271.3,567,-271.3,567c-38.7,80.7,-84,\n175,-136,283c-52,108,-89.167,185.3,-111.5,232c-22.3,46.7,-33.8,70.3,-34.5,71\nc-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1s-109,-253,-109,-253c-72.7,-168,-109.3,\n-252,-110,-252c-10.7,8,-22,16.7,-34,26c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26\ns76,-59,76,-59s76,-60,76,-60z M1001 80H40000v40H1012z",sqrtSize2:"M1001,80H400000v40H1013.1s-83.4,268,-264.1,840c-180.7,\n572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,\n-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744c-10,12,-21,25,-33,39s-32,39,-32,39\nc-6,-5.3,-15,-14,-27,-26s25,-30,25,-30c26.7,-32.7,52,-63,76,-91s52,-60,52,-60\ns208,722,208,722c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,\n-658.5c53.7,-170.3,84.5,-266.8,92.5,-289.5c4,-6.7,10,-10,18,-10z\nM1001 80H400000v40H1013z",sqrtSize3:"M424,2478c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,\n-342,-109.8,-513.3,-110.5,-514c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,\n25c-5.7,9.3,-9.8,16,-12.5,20s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,\n-13s76,-122,76,-122s77,-121,77,-121s209,968,209,968c0,-2,84.7,-361.7,254,-1079\nc169.3,-717.3,254.7,-1077.7,256,-1081c4,-6.7,10,-10,18,-10H400000v40H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M1001 80H400000v40H1014z",sqrtSize4:"M473,2793c339.3,-1799.3,509.3,-2700,510,-2702\nc3.3,-7.3,9.3,-11,18,-11H400000v40H1017.7s-90.5,478,-276.2,1466c-185.7,988,\n-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,\n-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200c0,-1.3,-5.3,8.7,-16,30c-10.7,\n21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26s76,-153,76,-153s77,-151,\n77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,606z\nM1001 80H400000v40H1017z",doubleleftarrow:"M262 157\nl10-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\n 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\n 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\nc2 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\n 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\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-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\n 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\n-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\n-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\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-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\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 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\n-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\nc-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\n 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\n 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\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 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\n 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\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 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\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-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\n-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\n-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\n 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\n-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\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 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\n-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\n 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\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-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\n-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\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.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\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-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\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 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\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.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\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 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\n-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\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.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\n60.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\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 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\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.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\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 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\n-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\n 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\n 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\n-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\n-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\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-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\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.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\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-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\n 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\n 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\n-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\n-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\n 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\n-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\n 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\nm0 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\n 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\n-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\n-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\n 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\n 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\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-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\n 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\n-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\n 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\nM399960 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\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-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\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 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\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 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\nc-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\n 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\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 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\n-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\n 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\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-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\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 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\n 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\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -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\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-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\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-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\n-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\n-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\n-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,\n-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,\n-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,\n-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,\n-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\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-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\ns-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\n121.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\ns2.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\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 241v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-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\n13.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\n-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\n-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\n-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\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,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\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM0 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\nc1.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,\n1c0,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,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 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\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"}},M=function(){function t(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=t.prototype;return e.hasClass=function(t){return p.contains(this.classes,t)},e.toNode=function(){for(var t=document.createDocumentFragment(),e=0;e"},B=function(){function t(t,e,r,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,C.call(this,t,r,n),this.children=e||[]}var e=t.prototype;return e.setAttribute=function(t,e){this.attributes[t]=e},e.hasClass=function(t){return p.contains(this.classes,t)},e.toNode=function(){return O.call(this,"span")},e.toMarkup=function(){return R.call(this,"span")},t}(),E=function(){function t(t,e,r,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,C.call(this,e,n),this.children=r||[],this.setAttribute("href",t)}var e=t.prototype;return e.setAttribute=function(t,e){this.attributes[t]=e},e.hasClass=function(t){return p.contains(this.classes,t)},e.toNode=function(){return O.call(this,"a")},e.toMarkup=function(){return R.call(this,"a")},t}(),I={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"},q=function(){function t(t,e,r,n,a,o,i,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=e||0,this.depth=r||0,this.italic=n||0,this.skew=a||0,this.width=o||0,this.classes=i||[],this.style=s||{},this.maxFontSize=0;var l=function(t){for(var e=0;e=a[0]&&t<=a[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=I[this.text])}var e=t.prototype;return e.hasClass=function(t){return p.contains(this.classes,t)},e.toNode=function(){var t=document.createTextNode(this.text),e=null;for(var r in this.italic>0&&((e=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((e=e||document.createElement("span")).className=z(this.classes)),this.style)this.style.hasOwnProperty(r)&&((e=e||document.createElement("span")).style[r]=this.style[r]);return e?(e.appendChild(t),e):t},e.toMarkup=function(){var t=!1,e="0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(r+=p.hyphenate(n)+":"+this.style[n]+";");r&&(t=!0,e+=' style="'+p.escape(r)+'"');var a=p.escape(this.text);return t?(e+=">",e+=a,e+=""):a},t}(),L=function(){function t(t,e){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=e||{}}var e=t.prototype;return e.toNode=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(var r=0;r":""},t}(),H=function(){function t(t){this.attributes=void 0,this.attributes=t||{}}var e=t.prototype;return e.toNode=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","line");for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);return t},e.toMarkup=function(){var t="",">"),$("math",j,tt,":",":"),$("math",j,tt,"≈","\\approx",!0),$("math",j,tt,"≅","\\cong",!0),$("math",j,tt,"≥","\\ge"),$("math",j,tt,"≥","\\geq",!0),$("math",j,tt,"←","\\gets"),$("math",j,tt,">","\\gt"),$("math",j,tt,"∈","\\in",!0),$("math",j,tt,"̸","\\@not"),$("math",j,tt,"⊂","\\subset",!0),$("math",j,tt,"⊃","\\supset",!0),$("math",j,tt,"⊆","\\subseteq",!0),$("math",j,tt,"⊇","\\supseteq",!0),$("math",K,tt,"⊈","\\nsubseteq",!0),$("math",K,tt,"⊉","\\nsupseteq",!0),$("math",j,tt,"⊨","\\models"),$("math",j,tt,"←","\\leftarrow",!0),$("math",j,tt,"≤","\\le"),$("math",j,tt,"≤","\\leq",!0),$("math",j,tt,"<","\\lt"),$("math",j,tt,"→","\\rightarrow",!0),$("math",j,tt,"→","\\to"),$("math",K,tt,"≱","\\ngeq",!0),$("math",K,tt,"≰","\\nleq",!0),$("math",j,et," ","\\ "),$("math",j,et," ","~"),$("math",j,et," ","\\space"),$("math",j,et," ","\\nobreakspace"),$("text",j,et," ","\\ "),$("text",j,et," ","~"),$("text",j,et," ","\\space"),$("text",j,et," ","\\nobreakspace"),$("math",j,et,null,"\\nobreak"),$("math",j,et,null,"\\allowbreak"),$("math",j,"punct",",",","),$("math",j,"punct",";",";"),$("math",K,Z,"⊼","\\barwedge",!0),$("math",K,Z,"⊻","\\veebar",!0),$("math",j,Z,"⊙","\\odot",!0),$("math",j,Z,"⊕","\\oplus",!0),$("math",j,Z,"⊗","\\otimes",!0),$("math",j,"textord","∂","\\partial",!0),$("math",j,Z,"⊘","\\oslash",!0),$("math",K,Z,"⊚","\\circledcirc",!0),$("math",K,Z,"⊡","\\boxdot",!0),$("math",j,Z,"△","\\bigtriangleup"),$("math",j,Z,"▽","\\bigtriangledown"),$("math",j,Z,"†","\\dagger"),$("math",j,Z,"⋄","\\diamond"),$("math",j,Z,"⋆","\\star"),$("math",j,Z,"◃","\\triangleleft"),$("math",j,Z,"▹","\\triangleright"),$("math",j,"open","{","\\{"),$("text",j,"textord","{","\\{"),$("text",j,"textord","{","\\textbraceleft"),$("math",j,"close","}","\\}"),$("text",j,"textord","}","\\}"),$("text",j,"textord","}","\\textbraceright"),$("math",j,"open","{","\\lbrace"),$("math",j,"close","}","\\rbrace"),$("math",j,"open","[","\\lbrack"),$("text",j,"textord","[","\\lbrack"),$("math",j,"close","]","\\rbrack"),$("text",j,"textord","]","\\rbrack"),$("math",j,"open","(","\\lparen"),$("math",j,"close",")","\\rparen"),$("text",j,"textord","<","\\textless"),$("text",j,"textord",">","\\textgreater"),$("math",j,"open","⌊","\\lfloor",!0),$("math",j,"close","⌋","\\rfloor",!0),$("math",j,"open","⌈","\\lceil",!0),$("math",j,"close","⌉","\\rceil",!0),$("math",j,"textord","\\","\\backslash"),$("math",j,"textord","∣","|"),$("math",j,"textord","∣","\\vert"),$("text",j,"textord","|","\\textbar"),$("math",j,"textord","∥","\\|"),$("math",j,"textord","∥","\\Vert"),$("text",j,"textord","∥","\\textbardbl"),$("text",j,"textord","~","\\textasciitilde"),$("math",j,tt,"↑","\\uparrow",!0),$("math",j,tt,"⇑","\\Uparrow",!0),$("math",j,tt,"↓","\\downarrow",!0),$("math",j,tt,"⇓","\\Downarrow",!0),$("math",j,tt,"↕","\\updownarrow",!0),$("math",j,tt,"⇕","\\Updownarrow",!0),$("math",j,Q,"∐","\\coprod"),$("math",j,Q,"⋁","\\bigvee"),$("math",j,Q,"⋀","\\bigwedge"),$("math",j,Q,"⨄","\\biguplus"),$("math",j,Q,"⋂","\\bigcap"),$("math",j,Q,"⋃","\\bigcup"),$("math",j,Q,"∫","\\int"),$("math",j,Q,"∫","\\intop"),$("math",j,Q,"∬","\\iint"),$("math",j,Q,"∭","\\iiint"),$("math",j,Q,"∏","\\prod"),$("math",j,Q,"∑","\\sum"),$("math",j,Q,"⨂","\\bigotimes"),$("math",j,Q,"⨁","\\bigoplus"),$("math",j,Q,"⨀","\\bigodot"),$("math",j,Q,"∮","\\oint"),$("math",j,Q,"∯","\\oiint"),$("math",j,Q,"∰","\\oiiint"),$("math",j,Q,"⨆","\\bigsqcup"),$("math",j,Q,"∫","\\smallint"),$("text",j,"inner","…","\\textellipsis"),$("math",j,"inner","…","\\mathellipsis"),$("text",j,"inner","…","\\ldots",!0),$("math",j,"inner","…","\\ldots",!0),$("math",j,"inner","⋯","\\@cdots",!0),$("math",j,"inner","⋱","\\ddots",!0),$("math",j,"textord","⋮","\\varvdots"),$("math",j,"accent-token","ˊ","\\acute"),$("math",j,"accent-token","ˋ","\\grave"),$("math",j,"accent-token","¨","\\ddot"),$("math",j,"accent-token","~","\\tilde"),$("math",j,"accent-token","ˉ","\\bar"),$("math",j,"accent-token","˘","\\breve"),$("math",j,"accent-token","ˇ","\\check"),$("math",j,"accent-token","^","\\hat"),$("math",j,"accent-token","⃗","\\vec"),$("math",j,"accent-token","˙","\\dot"),$("math",j,"accent-token","˚","\\mathring"),$("math",j,J,"ı","\\imath",!0),$("math",j,J,"ȷ","\\jmath",!0),$("text",j,"textord","ı","\\i",!0),$("text",j,"textord","ȷ","\\j",!0),$("text",j,"textord","ß","\\ss",!0),$("text",j,"textord","æ","\\ae",!0),$("text",j,"textord","æ","\\ae",!0),$("text",j,"textord","œ","\\oe",!0),$("text",j,"textord","ø","\\o",!0),$("text",j,"textord","Æ","\\AE",!0),$("text",j,"textord","Œ","\\OE",!0),$("text",j,"textord","Ø","\\O",!0),$("text",j,"accent-token","ˊ","\\'"),$("text",j,"accent-token","ˋ","\\`"),$("text",j,"accent-token","ˆ","\\^"),$("text",j,"accent-token","˜","\\~"),$("text",j,"accent-token","ˉ","\\="),$("text",j,"accent-token","˘","\\u"),$("text",j,"accent-token","˙","\\."),$("text",j,"accent-token","˚","\\r"),$("text",j,"accent-token","ˇ","\\v"),$("text",j,"accent-token","¨",'\\"'),$("text",j,"accent-token","˝","\\H"),$("text",j,"accent-token","◯","\\textcircled");var rt={"--":!0,"---":!0,"``":!0,"''":!0};$("text",j,"textord","–","--"),$("text",j,"textord","–","\\textendash"),$("text",j,"textord","—","---"),$("text",j,"textord","—","\\textemdash"),$("text",j,"textord","‘","`"),$("text",j,"textord","‘","\\textquoteleft"),$("text",j,"textord","’","'"),$("text",j,"textord","’","\\textquoteright"),$("text",j,"textord","“","``"),$("text",j,"textord","“","\\textquotedblleft"),$("text",j,"textord","”","''"),$("text",j,"textord","”","\\textquotedblright"),$("math",j,"textord","°","\\degree",!0),$("text",j,"textord","°","\\degree"),$("text",j,"textord","°","\\textdegree",!0),$("math",j,J,"£","\\pounds"),$("math",j,J,"£","\\mathsterling",!0),$("text",j,J,"£","\\pounds"),$("text",j,J,"£","\\textsterling",!0),$("math",K,"textord","✠","\\maltese"),$("text",K,"textord","✠","\\maltese"),$("text",j,et," ","\\ "),$("text",j,et," "," "),$("text",j,et," ","~");for(var nt=0;nt<'0123456789/@."'.length;nt++){var at='0123456789/@."'.charAt(nt);$("math",j,"textord",at,at)}for(var ot=0;ot<'0123456789!@*()-=+[]<>|";:?/.,'.length;ot++){var it='0123456789!@*()-=+[]<>|";:?/.,'.charAt(ot);$("text",j,"textord",it,it)}for(var st="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",lt=0;lt=5?0:t>=3?1:2]){var r=V[e]={cssEmPerMu:U.quad[e]/18};for(var n in U)U.hasOwnProperty(n)&&(r[n]=U[n][e])}return V[e]}(this.size)),this._fontMetrics},e.getColor=function(){return this.phantom?"transparent":null!=this.color&&t.colorMap.hasOwnProperty(this.color)?t.colorMap[this.color]:this.color},t}();kt.BASESIZE=6,kt.colorMap={"katex-blue":"#6495ed","katex-orange":"#ffa500","katex-pink":"#ff00af","katex-red":"#df0030","katex-green":"#28ae7b","katex-gray":"gray","katex-purple":"#9d38bd","katex-blueA":"#ccfaff","katex-blueB":"#80f6ff","katex-blueC":"#63d9ea","katex-blueD":"#11accd","katex-blueE":"#0c7f99","katex-tealA":"#94fff5","katex-tealB":"#26edd5","katex-tealC":"#01d1c1","katex-tealD":"#01a995","katex-tealE":"#208170","katex-greenA":"#b6ffb0","katex-greenB":"#8af281","katex-greenC":"#74cf70","katex-greenD":"#1fab54","katex-greenE":"#0d923f","katex-goldA":"#ffd0a9","katex-goldB":"#ffbb71","katex-goldC":"#ff9c39","katex-goldD":"#e07d10","katex-goldE":"#a75a05","katex-redA":"#fca9a9","katex-redB":"#ff8482","katex-redC":"#f9685d","katex-redD":"#e84d39","katex-redE":"#bc2612","katex-maroonA":"#ffbde0","katex-maroonB":"#ff92c6","katex-maroonC":"#ed5fa6","katex-maroonD":"#ca337c","katex-maroonE":"#9e034e","katex-purpleA":"#ddd7ff","katex-purpleB":"#c6b9fc","katex-purpleC":"#aa87ff","katex-purpleD":"#7854ab","katex-purpleE":"#543b78","katex-mintA":"#f5f9e8","katex-mintB":"#edf2df","katex-mintC":"#e0e5cc","katex-grayA":"#f6f7f7","katex-grayB":"#f0f1f2","katex-grayC":"#e3e5e6","katex-grayD":"#d6d8da","katex-grayE":"#babec2","katex-grayF":"#888d93","katex-grayG":"#626569","katex-grayH":"#3b3e40","katex-grayI":"#21242c","katex-kaBlue":"#314453","katex-kaGreen":"#71B307"};var St=kt,Tt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Nt={ex:!0,em:!0,mu:!0},At=function(t,e){var r;if(t.unit in Tt)r=Tt[t.unit]/e.fontMetrics().ptPerEm/e.sizeMultiplier;else if("mu"===t.unit)r=e.fontMetrics().cssEmPerMu;else{var n;if(n=e.style.isTight()?e.havingStyle(e.style.text()):e,"ex"===t.unit)r=n.fontMetrics().xHeight;else{if("em"!==t.unit)throw new i("Invalid unit: '"+t.unit+"'");r=n.fontMetrics().quad}n!==e&&(r*=n.sizeMultiplier/e.sizeMultiplier)}return Math.min(t.number*r,e.maxSize)},Mt=["\\imath","ı","\\jmath","ȷ","\\pounds","\\mathsterling","\\textsterling","£"],zt=function(t,e,r){return W[r][t]&&W[r][t].replace&&(t=W[r][t].replace),{value:t,metrics:Y(t,e,r)}},Ct=function(t,e,r,n,a){var o,i=zt(t,e,r),s=i.metrics;if(t=i.value,s){var l=s.italic;("text"===r||n&&"mathit"===n.font)&&(l=0),o=new q(t,s.height,s.depth,l,s.skew,s.width,a)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+t+"' in style '"+e+"'"),o=new q(t,0,0,0,0,0,a);if(n){o.maxFontSize=n.sizeMultiplier,n.style.isTight()&&o.classes.push("mtight");var h=n.getColor();h&&(o.style.color=h)}return o},Ot=function(t,e){if(z(t.classes)!==z(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;for(var r in t.style)if(t.style.hasOwnProperty(r)&&t.style[r]!==e.style[r])return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&t.style[n]!==e.style[n])return!1;return!0},Rt=function(t){for(var e=0,r=0,n=0,a=0;ae&&(e=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>n&&(n=o.maxFontSize)}t.height=e,t.depth=r,t.maxFontSize=n},Bt=function(t,e,r,n){var a=new B(t,e,r,n);return Rt(a),a},Et=function(t,e,r,n){return new B(t,e,r,n)},It=function(t){var e=new M(t);return Rt(e),e},qt=function(t,e,r){var n="";switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}return n+"-"+("textbf"===e&&"textit"===r?"BoldItalic":"textbf"===e?"Bold":"textit"===e?"Italic":"Regular")},Lt={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Dt={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ht={fontMap:Lt,makeSymbol:Ct,mathsym:function(t,e,r,n){return void 0===n&&(n=[]),r&&r.font&&"boldsymbol"===r.font&&zt(t,"Main-Bold",e).metrics?Ct(t,"Main-Bold",e,r,n.concat(["mathbf"])):"\\"===t||"main"===W[e][t].font?Ct(t,"Main-Regular",e,r,n):Ct(t,"AMS-Regular",e,r,n.concat(["amsrm"]))},makeSpan:Bt,makeSvgSpan:Et,makeLineSpan:function(t,e,r){var n=Bt([t],[],e);return n.height=r||e.fontMetrics().defaultRuleThickness,n.style.borderBottomWidth=n.height+"em",n.maxFontSize=1,n},makeAnchor:function(t,e,r,n){var a=new E(t,e,r,n);return Rt(a),a},makeFragment:It,wrapFragment:function(t,e){return t instanceof M?Bt([],[t],e):t},makeVList:function(t,e){for(var r=function(t){if("individualShift"===t.positionType){for(var e=t.children,r=[e[0]],n=-e[0].shift-e[0].elem.depth,a=n,o=1;o0&&(o.push(me(i,e)),i=[]),o.push(a[s]));i.length>0&&o.push(me(i,e)),r&&((n=me(oe(r,e,!0))).classes=["tag"],o.push(n));var h=te(["katex-html"],o);if(h.setAttribute("aria-hidden","true"),n){var u=n.children[0];u.style.height=h.height+h.depth+"em",u.style.verticalAlign=-h.depth+"em"}return h}function ce(t){return new M(t)}var de=function(){function t(t,e){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=t,this.attributes={},this.children=e||[]}var e=t.prototype;return e.setAttribute=function(t,e){this.attributes[t]=e},e.getAttribute=function(t){return this.attributes[t]},e.toNode=function(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(var r=0;r"},e.toText=function(){return this.children.map(function(t){return t.toText()}).join("")},t}(),fe=function(){function t(t,e){void 0===e&&(e=!0),this.text=void 0,this.needsEscape=void 0,this.text=t,this.needsEscape=e}var e=t.prototype;return e.toNode=function(){return document.createTextNode(this.toText())},e.toMarkup=function(){return this.toText()},e.toText=function(){return this.needsEscape?p.escape(this.text):this.text},t}(),ge={MathNode:de,TextNode:fe,SpaceNode:function(){function t(t){this.width=void 0,this.character=void 0,this.width=t,this.character=t>=.05555&&t<=.05556?" ":t>=.1666&&t<=.1667?" ":t>=.2222&&t<=.2223?" ":t>=.2777&&t<=.2778?"  ":t>=-.05556&&t<=-.05555?"​":t>=-.1667&&t<=-.1666?"​":t>=-.2223&&t<=-.2222?"​":t>=-.2778&&t<=-.2777?"​":null}var e=t.prototype;return e.toNode=function(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",this.width+"em"),t},e.toMarkup=function(){return this.character?""+this.character+"":''},e.toText=function(){return this.character?this.character:" "},t}(),newDocumentFragment:ce},xe=function(t,e,r){return!W[e][t]||!W[e][t].replace||55349===t.charCodeAt(0)||rt.hasOwnProperty(t)&&r&&(r.fontFamily&&"tt"===r.fontFamily.substr(4,2)||r.font&&"tt"===r.font.substr(4,2))||(t=W[e][t].replace),new ge.TextNode(t)},ye=function(t){return 1===t.length?t[0]:new ge.MathNode("mrow",t)},ve=function(t,e){if("texttt"===e.fontFamily)return"monospace";if("textsf"===e.fontFamily)return"textit"===e.fontShape&&"textbf"===e.fontWeight?"sans-serif-bold-italic":"textit"===e.fontShape?"sans-serif-italic":"textbf"===e.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===e.fontShape&&"textbf"===e.fontWeight)return"bold-italic";if("textit"===e.fontShape)return"italic";if("textbf"===e.fontWeight)return"bold";var r=e.font;if(!r||"mathnormal"===r)return null;var n=t.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"bold-italic";var a=t.text;return p.contains(["\\imath","\\jmath"],a)?null:(W[n][a]&&W[n][a].replace&&(a=W[n][a].replace),Y(a,Ht.fontMap[r].fontName,n)?Ht.fontMap[r].variant:null)},be=function(t,e){for(var r,n=[],a=0;a5)"widehat"===n||"widecheck"===n?(a=420,r=2364,i=.42,o=n+"4"):(a=312,r=2340,i=.34,o="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][l],a=[0,239,300,360,420][l],i=[0,.24,.3,.3,.36,.42][l],o=n+l):(r=[0,600,1033,2339,2340][l],a=[0,260,286,306,312][l],i=[0,.26,.286,.3,.306,.34][l],o="tilde"+l)}var h=new D(o),u=new L([h],{width:"100%",height:i+"em",viewBox:"0 0 "+r+" "+a,preserveAspectRatio:"none"});return{span:Ht.makeSvgSpan([],[u],e),minWidth:0,height:i}}var m,c,d=[],f=Ae[n],g=f[0],x=f[1],y=f[2],v=y/1e3,b=g.length;if(1===b)m=["hide-tail"],c=[f[3]];else if(2===b)m=["halfarrow-left","halfarrow-right"],c=["xMinYMin","xMaxYMin"];else{if(3!==b)throw new Error("Correct katexImagesData or update code here to support\n "+b+" children.");m=["brace-left","brace-center","brace-right"],c=["xMinYMin","xMidYMin","xMaxYMin"]}for(var w=0;w0&&(n.style.minWidth=a+"em"),n},Re=function(t,e){var r,n,a,o=Ut(t,"supsub");o?(r=(n=Pt(o.base,"accent")).base,o.base=r,a=function(t){if(t instanceof B)return t;throw new Error("Expected span but got "+String(t)+".")}(ue(o,e)),o.base=n):r=(n=Pt(t,"accent")).base;var i=ue(r,e.havingCrampedStyle()),s=0;if(n.isShifty&&p.isCharacterBox(r)){var l=p.getBaseElem(r);s=function(t){if(t instanceof q)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}(ue(l,e.havingCrampedStyle())).skew}var h,u=Math.min(i.height,e.fontMetrics().xHeight);if(n.isStretchy)h=Oe(n,e),h=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+2*s+"em)",marginLeft:2*s+"em"}:void 0}]},e);else{var m,c;"\\vec"===n.label?(m=Ht.staticSvg("vec",e),c=Ht.svgData.vec[1]):((m=Ht.makeSymbol(n.label,"Main-Regular",n.mode,e)).italic=0,c=m.width),h=Ht.makeSpan(["accent-body"],[m]);var d="\\textcircled"===n.label;d&&(h.classes.push("accent-full"),u=i.height);var f=s;d||(f-=c/2),h.style.left=f+"em","\\textcircled"===n.label&&(h.style.top=".2em"),h=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-u},{type:"elem",elem:h}]},e)}var g=Ht.makeSpan(["mord","accent"],[h],e);return a?(a.children[0]=g,a.height=Math.max(g.height,a.height),a.classes[0]="mord",a):g},Be=function(t,e){var r=t.isStretchy?Ce(t.label):new ge.MathNode("mo",[xe(t.label,t.mode)]),n=new ge.MathNode("mover",[ke(t.base,e),r]);return n.setAttribute("accent","true"),n},Ee=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(t){return"\\"+t}).join("|"));Zt({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(t,e){var r=e[0],n=!Ee.test(t.funcName),a=!n||"\\widehat"===t.funcName||"\\widetilde"===t.funcName||"\\widecheck"===t.funcName;return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:Re,mathmlBuilder:Be}),Zt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(t,e){var r=e[0];return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Re,mathmlBuilder:Be}),Zt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:function(t,e){var r=ue(t.base,e),n=Oe(t,e),a="\\utilde"===t.label?.12:0,o=Ht.makeVList({positionType:"bottom",positionData:n.height+a,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]},e);return Ht.makeSpan(["mord","accentunder"],[o],e)},mathmlBuilder:function(t,e){var r=Ce(t.label),n=new ge.MathNode("munder",[ke(t.base,e),r]);return n.setAttribute("accentunder","true"),n}}),Zt({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"],props:{numArgs:1,numOptionalArgs:1},handler:function(t,e,r){var n=t.parser,a=t.funcName;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:r[0]}},htmlBuilder:function(t,e){var r,n=e.style,a=e.havingStyle(n.sup()),o=Ht.wrapFragment(ue(t.body,a,e),e);o.classes.push("x-arrow-pad"),t.below&&(a=e.havingStyle(n.sub()),(r=Ht.wrapFragment(ue(t.below,a,e),e)).classes.push("x-arrow-pad"));var i,s=Oe(t,e),l=-e.fontMetrics().axisHeight+.5*s.height,h=-e.fontMetrics().axisHeight-.5*s.height-.111;if((o.depth>.25||"\\xleftequilibrium"===t.label)&&(h-=o.depth),r){var u=-e.fontMetrics().axisHeight+r.height+.5*s.height+.111;i=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:h},{type:"elem",elem:s,shift:l},{type:"elem",elem:r,shift:u}]},e)}else i=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:h},{type:"elem",elem:s,shift:l}]},e);return i.children[0].children[0].children[1].classes.push("svg-align"),Ht.makeSpan(["mrel","x-arrow"],[i],e)},mathmlBuilder:function(t,e){var r,n,a=Ce(t.label);if(t.body){var o=ke(t.body,e);t.below?(n=ke(t.below,e),r=new ge.MathNode("munderover",[a,n,o])):r=new ge.MathNode("mover",[a,o])}else t.below?(n=ke(t.below,e),r=new ge.MathNode("munder",[a,n])):r=new ge.MathNode("mover",[a]);return r}}),Zt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){for(var r=t.parser,n=Pt(e[0],"ordgroup").body,a="",o=0;o","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Xe=[0,1.2,1.8,2.4,3],We=[{type:"small",style:k.SCRIPTSCRIPT},{type:"small",style:k.SCRIPT},{type:"small",style:k.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],$e=[{type:"small",style:k.SCRIPTSCRIPT},{type:"small",style:k.SCRIPT},{type:"small",style:k.TEXT},{type:"stack"}],je=[{type:"small",style:k.SCRIPTSCRIPT},{type:"small",style:k.SCRIPT},{type:"small",style:k.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Ke=function(t){if("small"===t.type)return"Main-Regular";if("large"===t.type)return"Size"+t.size+"-Regular";if("stack"===t.type)return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},Ze=function(t,e,r,n){for(var a=Math.min(2,3-n.style.size);ae)return r[a]}return r[r.length-1]},Je=function(t,e,r,n,a,o){var i;"<"===t||"\\lt"===t||"⟨"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"⟩"!==t||(t="\\rangle"),i=p.contains(_e,t)?We:p.contains(Ve,t)?je:$e;var s=Ze(t,e,i,n);return"small"===s.type?function(t,e,r,n,a,o){var i=Ht.makeSymbol(t,"Main-Regular",a,n),s=De(i,e,n,o);return r&&He(s,n,e),s}(t,s.style,r,n,a,o):"large"===s.type?Pe(t,s.size,r,n,a,o):Fe(t,e,r,n,a,o)},Qe=function(t,e){var r,n,a=e.havingBaseSizing(),o=Ze("\\surd",t*a.sizeMultiplier,je,a),i=a.sizeMultiplier,s=0,l=0,h=0;return"small"===o.type?(t<1?i=1:t<1.4&&(i=.7),l=1/i,(r=Ye("sqrtMain",s=1.08/i,h=1080,e)).style.minWidth="0.853em",n=.833/i):"large"===o.type?(h=1080*Xe[o.size],l=Xe[o.size]/i,s=(Xe[o.size]+.08)/i,(r=Ye("sqrtSize"+o.size,s,h,e)).style.minWidth="1.02em",n=1/i):(s=t+.08,l=t,h=Math.floor(1e3*t)+80,(r=Ye("sqrtTall",s,h,e)).style.minWidth="0.742em",n=1.056),r.height=l,r.style.height=s+"em",{span:r,advanceWidth:n,ruleWidth:e.fontMetrics().sqrtRuleThickness*i}},tr=function(t,e,r,n,a){if("<"===t||"\\lt"===t||"⟨"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"⟩"!==t||(t="\\rangle"),p.contains(Ve,t)||p.contains(_e,t))return Pe(t,e,!1,r,n,a);if(p.contains(Ge,t))return Fe(t,Xe[e],!1,r,n,a);throw new i("Illegal delimiter: '"+t+"'")},er=Je,rr=function(t,e,r,n,a,o){var i=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,l=Math.max(e-i,r+i),h=Math.max(l/500*901,2*l-s);return Je(t,h,!0,n,a,o)},nr={"\\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}},ar=["(","\\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 or(t,e){var r=Yt(t);if(r&&p.contains(ar,r.text))return r;throw new i("Invalid delimiter: '"+(r?r.text:JSON.stringify(t))+"' after '"+e.funcName+"'",t)}function ir(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Zt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(t,e){var r=or(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:nr[t.funcName].size,mclass:nr[t.funcName].mclass,delim:r.text}},htmlBuilder:function(t,e){return"."===t.delim?Ht.makeSpan([t.mclass]):tr(t.delim,t.size,e,t.mode,[t.mclass])},mathmlBuilder:function(t){var e=[];"."!==t.delim&&e.push(xe(t.delim,t.mode));var r=new ge.MathNode("mo",e);return"mopen"===t.mclass||"mclose"===t.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r}}),Zt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(t,e){return{type:"leftright-right",mode:t.parser.mode,delim:or(e[0],t).text}}}),Zt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(t,e){var r=or(e[0],t),n=t.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var o=Pt(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:o.delim}},htmlBuilder:function(t,e){ir(t);for(var r,n,a=oe(t.body,e,!0,[null,"mclose"]),o=0,i=0,s=!1,l=0;l0&&(y+=.25),h.push({pos:y,isDashed:t[e]})}for(v(o[0]),r=0;r0&&(k<(A+=x)&&(k=A),A=0),t.addJot&&(k+=d),S.height=w,S.depth=k,y+=w,S.pos=y,y+=k+A,l[r]=S,v(o[r+1])}var M,z,C=y/2+e.fontMetrics().axisHeight,O=t.cols||[],R=[];for(n=0,z=0;n=s)){var L=void 0;(n>0||t.hskipBeforeAndAfter)&&0!==(L=p.deflt(B.pregap,m))&&((M=Ht.makeSpan(["arraycolsep"],[])).style.width=L+"em",R.push(M));var D=[];for(r=0;r0){for(var F=Ht.makeLineSpan("hline",e,.05),Y=Ht.makeLineSpan("hdashline",e,.05),V=[{type:"elem",elem:l,shift:0}];h.length>0;){var G=h.pop(),_=G.pos-C;G.isDashed?V.push({type:"elem",elem:Y,shift:_}):V.push({type:"elem",elem:F,shift:_})}l=Ht.makeVList({positionType:"individualShift",children:V},e)}return Ht.makeSpan(["mord"],[l],e)},fr=function(t,e){return new ge.MathNode("mtable",t.body.map(function(t){return new ge.MathNode("mtr",t.map(function(t){return new ge.MathNode("mtd",[ke(t,e)])}))}))},gr=function(t,e){var r,n=[],a=pr(t.parser,{cols:n,addJot:!0},"display"),o=0,s={type:"ordgroup",mode:t.mode,body:[]},l=Ut(e[0],"ordgroup");if(l){for(var h="",u=0;u0&&m&&(d=1),n[p]={type:"align",align:c,pregap:d,postgap:0}}return a};ur({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(t,e){var r={cols:(Yt(e[0])?[e[0]]:Pt(e[0],"ordgroup").body).map(function(t){var e=function(t){var e=Yt(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}(t).text;if(-1!=="lcr".indexOf(e))return{type:"align",align:e};if("|"===e)return{type:"separator",separator:"|"};if(":"===e)return{type:"separator",separator:":"};throw new i("Unknown column alignment: "+e,t)}),hskipBeforeAndAfter:!0};return pr(t.parser,r,cr(t.envName))},htmlBuilder:dr,mathmlBuilder:fr}),ur({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName],r=pr(t.parser,{hskipBeforeAndAfter:!1},cr(t.envName));return e?{type:"leftright",mode:t.mode,body:[r],left:e[0],right:e[1]}:r},htmlBuilder:dr,mathmlBuilder:fr}),ur({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(t){var e=pr(t.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},cr(t.envName));return{type:"leftright",mode:t.mode,body:[e],left:"\\{",right:"."}},htmlBuilder:dr,mathmlBuilder:fr}),ur({type:"array",names:["aligned"],props:{numArgs:0},handler:gr,htmlBuilder:dr,mathmlBuilder:fr}),ur({type:"array",names:["gathered"],props:{numArgs:0},handler:function(t){return pr(t.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:dr,mathmlBuilder:fr}),ur({type:"array",names:["alignedat"],props:{numArgs:1},handler:gr,htmlBuilder:dr,mathmlBuilder:fr}),Zt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(t,e){throw new i(t.funcName+" valid only within array environment")}});var xr=hr;Zt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(t,e){var r=t.parser,n=t.funcName,a=e[0];if("ordgroup"!==a.type)throw new i("Invalid environment name",a);for(var o="",s=0;s0?3*m:7*m,d=e.fontMetrics().denom1):(u>0?(p=e.fontMetrics().num2,c=m):(p=e.fontMetrics().num3,c=3*m),d=e.fontMetrics().denom2),h){var b=e.fontMetrics().axisHeight;p-i.depth-(b+.5*u)0&&(e="."===(e=t)?null:e),e};Zt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(t,e){var r=t.parser,n=e[4],a=e[5],o=Ut(e[0],"ordgroup");o=Ft(o?o.body[0]:e[0],"open");var i=zr(o.text),s=Ut(e[1],"ordgroup");s=Ft(s?s.body[0]:e[1],"close");var l,h=zr(s.text),u=Pt(e[2],"size"),m=null;l=!!u.isBlank||(m=u.value).number>0;var p="auto",c=Ut(e[3],"ordgroup");if(c){if(c.body.length>0){var d=Pt(c.body[0],"textord");p=Mr[Number(d.text)]}}else c=Pt(e[3],"textord"),p=Mr[Number(c.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:l,barSize:m,leftDelim:i,rightDelim:h,size:p}},htmlBuilder:Nr,mathmlBuilder:Ar}),Zt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(t,e){var r=t.parser,n=(t.funcName,t.token);return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Pt(e[0],"size").value,token:n}}}),Zt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(t,e){var r=t.parser,n=e[0],a=m(Pt(e[1],"infix").size),o=e[2],i=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:o,continued:!1,hasBarLine:i,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Nr,mathmlBuilder:Ar});var Cr=function(t,e){var r,n,a=e.style,o=Ut(t,"supsub");o?(r=o.sup?ue(o.sup,e.havingStyle(a.sup()),e):ue(o.sub,e.havingStyle(a.sub()),e),n=Pt(o.base,"horizBrace")):n=Pt(t,"horizBrace");var i,s=ue(n.base,e.havingBaseStyle(k.DISPLAY)),l=Oe(n,e);if(n.isOver?(i=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:l}]},e)).children[0].children[0].children[1].classes.push("svg-align"):(i=Ht.makeVList({positionType:"bottom",positionData:s.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:s}]},e)).children[0].children[0].children[0].classes.push("svg-align"),r){var h=Ht.makeSpan(["mord",n.isOver?"mover":"munder"],[i],e);i=n.isOver?Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:r}]},e):Ht.makeVList({positionType:"bottom",positionData:h.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:h}]},e)}return Ht.makeSpan(["mord",n.isOver?"mover":"munder"],[i],e)};Zt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(t,e){var r=t.parser,n=t.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:Cr,mathmlBuilder:function(t,e){var r=Ce(t.label);return new ge.MathNode(t.isOver?"mover":"munder",[ke(t.base,e),r])}}),Zt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(t,e){var r=t.parser,n=e[1],a=Pt(e[0],"url").url;return{type:"href",mode:r.mode,href:a,body:Qt(n)}},htmlBuilder:function(t,e){var r=oe(t.body,e,!1);return Ht.makeAnchor(t.href,[],r,e)},mathmlBuilder:function(t,e){var r=we(t.body,e);return r instanceof de||(r=new de("mrow",[r])),r.setAttribute("href",t.href),r}}),Zt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(t,e){for(var r=t.parser,n=Pt(e[0],"url").url,a=[],o=0;o0){var c=s.italic,d=Ht.staticSvg(m+"Size"+(h?"2":"1"),e);s=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:0},{type:"elem",elem:d,shift:h?.08:0}]},e),a.name="\\"+m,s.classes.unshift("mop"),s.italic=c}}else if(a.body){var f=oe(a.body,e,!0);1===f.length&&f[0]instanceof q?(s=f[0]).classes[0]="mop":s=Ht.makeSpan(["mop"],Ht.tryCombineChars(f),e)}else{for(var g=[],x=1;x0){for(var r=t.body.map(function(t){var e=t.text;return"string"==typeof e?{type:"textord",mode:t.mode,text:e}:t}),n=oe(r,e.withFont("mathrm"),!0),a=0;ar.height+r.depth+o&&(o=(o+m-r.height-r.depth)/2);var p=l.height-r.height-o-h;r.style.paddingLeft=u+"em";var c=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+p)},{type:"elem",elem:l},{type:"kern",size:h}]},e);if(t.index){var d=e.havingStyle(k.SCRIPTSCRIPT),f=ue(t.index,d,e),g=.6*(c.height-c.depth),x=Ht.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]},e),y=Ht.makeSpan(["root"],[x]);return Ht.makeSpan(["mord","sqrt"],[y,c],e)}return Ht.makeSpan(["mord","sqrt"],[c],e)},mathmlBuilder:function(t,e){var r=t.body,n=t.index;return n?new ge.MathNode("mroot",[ke(r,e),ke(n,e)]):new ge.MathNode("msqrt",[ke(r,e)])}});var Hr={display:k.DISPLAY,text:k.TEXT,script:k.SCRIPT,scriptscript:k.SCRIPTSCRIPT};Zt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(t,e){var r=t.breakOnTokenText,n=t.funcName,a=t.parser;a.consumeSpaces();var o=a.parseExpression(!0,r),i=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:i,body:o}},htmlBuilder:function(t,e){var r=Hr[t.style],n=e.havingStyle(r).withFont("");return qr(t.body,n,e)},mathmlBuilder:function(t,e){var r={display:k.DISPLAY,text:k.TEXT,script:k.SCRIPT,scriptscript:k.SCRIPTSCRIPT}[t.style],n=e.havingStyle(r),a=be(t.body,n),o=new ge.MathNode("mstyle",a),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[t.style];return o.setAttribute("scriptlevel",i[0]),o.setAttribute("displaystyle",i[1]),o}});Jt({type:"supsub",htmlBuilder:function(t,e){var r=function(t,e){var r=t.base;return r?"op"===r.type?r.limits&&(e.style.size===k.DISPLAY.size||r.alwaysHandleSupSub)?Rr:null:"accent"===r.type?p.isCharacterBox(r.base)?Re:null:"horizBrace"===r.type&&!t.sub===r.isOver?Cr:null:null}(t,e);if(r)return r(t,e);var n,a,o,i=t.base,s=t.sup,l=t.sub,h=ue(i,e),u=e.fontMetrics(),m=0,c=0,d=i&&p.isCharacterBox(i);if(s){var f=e.havingStyle(e.style.sup());n=ue(s,f,e),d||(m=h.height-f.fontMetrics().supDrop*f.sizeMultiplier/e.sizeMultiplier)}if(l){var g=e.havingStyle(e.style.sub());a=ue(l,g,e),d||(c=h.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}o=e.style===k.DISPLAY?u.sup1:e.style.cramped?u.sup3:u.sup2;var x,y=e.sizeMultiplier,v=.5/u.ptPerEm/y+"em",b=null;if(a){var w=t.base&&"op"===t.base.type&&t.base.name&&("\\oiint"===t.base.name||"\\oiiint"===t.base.name);(h instanceof q||w)&&(b=-h.italic+"em")}if(n&&a){m=Math.max(m,o,n.depth+.25*u.xHeight),c=Math.max(c,u.sub2);var S=4*u.defaultRuleThickness;if(m-n.depth-(a.height-c)0&&(m+=T,c-=T)}var N=[{type:"elem",elem:a,shift:c,marginRight:v,marginLeft:b},{type:"elem",elem:n,shift:-m,marginRight:v}];x=Ht.makeVList({positionType:"individualShift",children:N},e)}else if(a){c=Math.max(c,u.sub1,a.height-.8*u.xHeight);var A=[{type:"elem",elem:a,marginLeft:b,marginRight:v}];x=Ht.makeVList({positionType:"shift",positionData:c,children:A},e)}else{if(!n)throw new Error("supsub must have either sup or sub.");m=Math.max(m,o,n.depth+.25*u.xHeight),x=Ht.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:n,marginRight:v}]},e)}var M=se(h,"right")||"mord";return Ht.makeSpan([M],[h,Ht.makeSpan(["msupsub"],[x])],e)},mathmlBuilder:function(t,e){var r,n=!1,a=Ut(t.base,"horizBrace");a&&!!t.sup===a.isOver&&(n=!0,r=a.isOver);var o,i=[ke(t.base,e)];if(t.sub&&i.push(ke(t.sub,e)),t.sup&&i.push(ke(t.sup,e)),n)o=r?"mover":"munder";else if(t.sub)if(t.sup){var s=t.base;o=s&&"op"===s.type&&s.limits&&e.style===k.DISPLAY?"munderover":"msubsup"}else{var l=t.base;o=l&&"op"===l.type&&l.limits&&e.style===k.DISPLAY?"munder":"msub"}else{var h=t.base;o=h&&"op"===h.type&&h.limits&&e.style===k.DISPLAY?"mover":"msup"}return new ge.MathNode(o,i)}}),Jt({type:"atom",htmlBuilder:function(t,e){return Ht.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder:function(t,e){var r=new ge.MathNode("mo",[xe(t.text,t.mode)]);if("bin"===t.family){var n=ve(t,e);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===t.family&&r.setAttribute("separator","true");return r}});var Pr={mi:"italic",mn:"normal",mtext:"normal"};Jt({type:"mathord",htmlBuilder:function(t,e){return Ht.makeOrd(t,e,"mathord")},mathmlBuilder:function(t,e){var r=new ge.MathNode("mi",[xe(t.text,t.mode,e)]),n=ve(t,e)||"italic";return n!==Pr[r.type]&&r.setAttribute("mathvariant",n),r}}),Jt({type:"textord",htmlBuilder:function(t,e){return Ht.makeOrd(t,e,"textord")},mathmlBuilder:function(t,e){var r,n=xe(t.text,t.mode,e),a=ve(t,e)||"normal";return r="text"===t.mode?new ge.MathNode("mtext",[n]):/[0-9]/.test(t.text)?new ge.MathNode("mn",[n]):"\\prime"===t.text?new ge.MathNode("mo",[n]):new ge.MathNode("mi",[n]),a!==Pr[r.type]&&r.setAttribute("mathvariant",a),r}});var Ur={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Fr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Jt({type:"spacing",htmlBuilder:function(t,e){if(Fr.hasOwnProperty(t.text)){var r=Fr[t.text].className||"";if("text"===t.mode){var n=Ht.makeOrd(t,e,"textord");return n.classes.push(r),n}return Ht.makeSpan(["mspace",r],[Ht.mathsym(t.text,t.mode,e)],e)}if(Ur.hasOwnProperty(t.text))return Ht.makeSpan(["mspace",Ur[t.text]],[],e);throw new i('Unknown type of space "'+t.text+'"')},mathmlBuilder:function(t,e){if(!Fr.hasOwnProperty(t.text)){if(Ur.hasOwnProperty(t.text))return new ge.MathNode("mspace");throw new i('Unknown type of space "'+t.text+'"')}return new ge.MathNode("mtext",[new ge.TextNode(" ")])}}),Jt({type:"tag",mathmlBuilder:function(t,e){var r=new ge.MathNode("mtable",[new ge.MathNode("mlabeledtr",[new ge.MathNode("mtd",[we(t.tag,e)]),new ge.MathNode("mtd",[we(t.body,e)])])]);return r.setAttribute("side","right"),r}});var Yr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Vr={"\\textbf":"textbf"},Gr={"\\textit":"textit"},_r=function(t,e){var r=t.font;return r?Yr[r]?e.withTextFontFamily(Yr[r]):Vr[r]?e.withTextFontWeight(Vr[r]):e.withTextFontShape(Gr[r]):e};Zt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textit"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0,consumeMode:"text"},handler:function(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"text",mode:r.mode,body:Qt(a),font:n}},htmlBuilder:function(t,e){var r=_r(t,e),n=oe(t.body,r,!0);return Ht.makeSpan(["mord","text"],Ht.tryCombineChars(n),r)},mathmlBuilder:function(t,e){var r=_r(t,e);return we(t.body,r)}}),Zt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){return{type:"underline",mode:t.parser.mode,body:e[0]}},htmlBuilder:function(t,e){var r=ue(t.body,e),n=Ht.makeLineSpan("underline-line",e),a=Ht.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:n.height},{type:"elem",elem:n},{type:"kern",size:3*n.height},{type:"elem",elem:r}]},e);return Ht.makeSpan(["mord","underline"],[a],e)},mathmlBuilder:function(t,e){var r=new ge.MathNode("mo",[new ge.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new ge.MathNode("munder",[ke(t.body,e),r]);return n.setAttribute("accentunder","true"),n}}),Zt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(t,e,r){throw new i("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(t,e){for(var r=Xr(t),n=[],a=e.havingStyle(e.style.text()),o=0;o0&&(this.undefStack[this.undefStack.length-1][t]=e)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}this.current[t]=e},t}(),Qr={},tn=Qr;function en(t,e){Qr[t]=e}en("\\@firstoftwo",function(t){return{tokens:t.consumeArgs(2)[0],numArgs:0}}),en("\\@secondoftwo",function(t){return{tokens:t.consumeArgs(2)[1],numArgs:0}}),en("\\@ifnextchar",function(t){var e=t.consumeArgs(3),r=t.future();return 1===e[0].length&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}}),en("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),en("\\TextOrMath",function(t){var e=t.consumeArgs(2);return"text"===t.mode?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var rn={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};en("\\char",function(t){var e,r=t.popToken(),n="";if("'"===r.text)e=8,r=t.popToken();else if('"'===r.text)e=16,r=t.popToken();else if("`"===r.text)if("\\"===(r=t.popToken()).text[0])n=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new i("\\char` missing argument");n=r.text.charCodeAt(0)}else e=10;if(e){if(null==(n=rn[r.text])||n>=e)throw new i("Invalid base-"+e+" digit "+r.text);for(var a;null!=(a=rn[t.future().text])&&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"};en("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in on?e=on[r]:"\\not"===r.substr(0,4)?e="\\dotsb":r in W.math&&p.contains(["bin","rel"],W.math[r].group)&&(e="\\dotsb"),e});var sn={")":!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};en("\\dotso",function(t){return t.future().text in sn?"\\ldots\\,":"\\ldots"}),en("\\dotsc",function(t){var e=t.future().text;return e in sn&&","!==e?"\\ldots\\,":"\\ldots"}),en("\\cdots",function(t){return t.future().text in sn?"\\@cdots\\,":"\\@cdots"}),en("\\dotsb","\\cdots"),en("\\dotsm","\\cdots"),en("\\dotsi","\\!\\cdots"),en("\\dotsx","\\ldots\\,"),en("\\DOTSI","\\relax"),en("\\DOTSB","\\relax"),en("\\DOTSX","\\relax"),en("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),en("\\,","\\tmspace+{3mu}{.1667em}"),en("\\thinspace","\\,"),en("\\>","\\mskip{4mu}"),en("\\:","\\tmspace+{4mu}{.2222em}"),en("\\medspace","\\:"),en("\\;","\\tmspace+{5mu}{.2777em}"),en("\\thickspace","\\;"),en("\\!","\\tmspace-{3mu}{.1667em}"),en("\\negthinspace","\\!"),en("\\negmedspace","\\tmspace-{4mu}{.2222em}"),en("\\negthickspace","\\tmspace-{5mu}{.277em}"),en("\\enspace","\\kern.5em "),en("\\enskip","\\hskip.5em\\relax"),en("\\quad","\\hskip1em\\relax"),en("\\qquad","\\hskip2em\\relax"),en("\\tag","\\@ifstar\\tag@literal\\tag@paren"),en("\\tag@paren","\\tag@literal{({#1})}"),en("\\tag@literal",function(t){if(t.macros.get("\\df@tag"))throw new i("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),en("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),en("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),en("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),en("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),en("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\mathrlap{\\mkern0.4mu\\raisebox{0.4mu}{$#1$}}{\\mkern0.8mu#1}}}{\\mathbf{#1}}"),en("\\\\","\\newline"),en("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ln=P["Main-Regular"]["T".charCodeAt(0)][1]-.7*P["Main-Regular"]["A".charCodeAt(0)][1]+"em";en("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+ln+"}{\\scriptsize A}\\kern-.15em\\TeX}{LaTeX}}"),en("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+ln+"}{\\scriptsize A}\\kern-.15em\\TeX}{KaTeX}}"),en("\\hspace","\\@ifstar\\@hspacer\\@hspace"),en("\\@hspace","\\hskip #1\\relax"),en("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),en("\\ordinarycolon",":"),en("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),en("\\dblcolon","\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}"),en("\\coloneqq","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}"),en("\\Coloneqq","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}"),en("\\coloneq","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}"),en("\\Coloneq","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}"),en("\\eqqcolon","\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),en("\\Eqqcolon","\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}"),en("\\eqcolon","\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),en("\\Eqcolon","\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"),en("\\colonapprox","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}"),en("\\Colonapprox","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}"),en("\\colonsim","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}"),en("\\Colonsim","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}"),en("≔","\\coloneqq"),en("≕","\\eqqcolon"),en("⩴","\\Coloneqq"),en("\\ratio","\\vcentcolon"),en("\\coloncolon","\\dblcolon"),en("\\colonequals","\\coloneqq"),en("\\coloncolonequals","\\Coloneqq"),en("\\equalscolon","\\eqqcolon"),en("\\equalscoloncolon","\\Eqqcolon"),en("\\colonminus","\\coloneq"),en("\\coloncolonminus","\\Coloneq"),en("\\minuscolon","\\eqcolon"),en("\\minuscoloncolon","\\Eqcolon"),en("\\coloncolonapprox","\\Colonapprox"),en("\\coloncolonsim","\\Colonsim"),en("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),en("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),en("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),en("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),en("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),en("\\limsup","\\DOTSB\\mathop{\\operatorname{lim\\,sup}}\\limits"),en("\\liminf","\\DOTSB\\mathop{\\operatorname{lim\\,inf}}\\limits"),en("⟦","\\mathopen{[\\mkern-3.2mu[}"),en("⟧","\\mathclose{]\\mkern-3.2mu]}"),en("\\darr","\\downarrow"),en("\\dArr","\\Downarrow"),en("\\Darr","\\Downarrow"),en("\\lang","\\langle"),en("\\rang","\\rangle"),en("\\uarr","\\uparrow"),en("\\uArr","\\Uparrow"),en("\\Uarr","\\Uparrow"),en("\\N","\\mathbb{N}"),en("\\R","\\mathbb{R}"),en("\\Z","\\mathbb{Z}"),en("\\alef","\\aleph"),en("\\alefsym","\\aleph"),en("\\Alpha","\\mathrm{A}"),en("\\Beta","\\mathrm{B}"),en("\\bull","\\bullet"),en("\\Chi","\\mathrm{X}"),en("\\clubs","\\clubsuit"),en("\\cnums","\\mathbb{C}"),en("\\Complex","\\mathbb{C}"),en("\\Dagger","\\ddagger"),en("\\diamonds","\\diamondsuit"),en("\\empty","\\emptyset"),en("\\Epsilon","\\mathrm{E}"),en("\\Eta","\\mathrm{H}"),en("\\exist","\\exists"),en("\\harr","\\leftrightarrow"),en("\\hArr","\\Leftrightarrow"),en("\\Harr","\\Leftrightarrow"),en("\\hearts","\\heartsuit"),en("\\image","\\Im"),en("\\infin","\\infty"),en("\\Iota","\\mathrm{I}"),en("\\isin","\\in"),en("\\Kappa","\\mathrm{K}"),en("\\larr","\\leftarrow"),en("\\lArr","\\Leftarrow"),en("\\Larr","\\Leftarrow"),en("\\lrarr","\\leftrightarrow"),en("\\lrArr","\\Leftrightarrow"),en("\\Lrarr","\\Leftrightarrow"),en("\\Mu","\\mathrm{M}"),en("\\natnums","\\mathbb{N}"),en("\\Nu","\\mathrm{N}"),en("\\Omicron","\\mathrm{O}"),en("\\plusmn","\\pm"),en("\\rarr","\\rightarrow"),en("\\rArr","\\Rightarrow"),en("\\Rarr","\\Rightarrow"),en("\\real","\\Re"),en("\\reals","\\mathbb{R}"),en("\\Reals","\\mathbb{R}"),en("\\Rho","\\mathrm{R}"),en("\\sdot","\\cdot"),en("\\sect","\\S"),en("\\spades","\\spadesuit"),en("\\sub","\\subset"),en("\\sube","\\subseteq"),en("\\supe","\\supseteq"),en("\\Tau","\\mathrm{T}"),en("\\thetasym","\\vartheta"),en("\\weierp","\\wp"),en("\\Zeta","\\mathrm{Z}");var hn={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},un=function(){function t(t,e,r){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=e,this.expansionCount=0,this.feed(t),this.macros=new Jr(tn,e.macros),this.mode=r,this.stack=[]}var e=t.prototype;return e.feed=function(t){this.lexer=new Zr(t)},e.switchMode=function(t){this.mode=t},e.beginGroup=function(){this.macros.beginGroup()},e.endGroup=function(){this.macros.endGroup()},e.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},e.popToken=function(){return this.future(),this.stack.pop()},e.pushToken=function(t){this.stack.push(t)},e.pushTokens=function(t){var e;(e=this.stack).push.apply(e,t)},e.consumeSpaces=function(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}},e.consumeArgs=function(t){for(var e=[],r=0;rthis.settings.maxExpand)throw new i("Too many expansions: infinite loop or need to increase maxExpand setting");var n=r.tokens;if(r.numArgs)for(var a=this.consumeArgs(r.numArgs),o=(n=n.slice()).length-1;o>=0;--o){var s=n[o];if("#"===s.text){if(0===o)throw new i("Incomplete placeholder at end of macro body",s);if("#"===(s=n[--o]).text)n.splice(o+1,1);else{if(!/^[1-9]$/.test(s.text))throw new i("Not a valid argument number",s);var l;(l=n).splice.apply(l,[o,2].concat(a[+s.text-1]))}}}return this.pushTokens(n),n},e.expandAfterFuture=function(){return this.expandOnce(),this.future()},e.expandNextToken=function(){for(;;){var t=this.expandOnce();if(t instanceof a){if("\\relax"!==t.text)return this.stack.pop();this.stack.pop()}}throw new Error},e.expandMacro=function(t){if(this.macros.get(t)){var e=[],r=this.stack.length;for(this.pushToken(new a(t));this.stack.length>r;){this.expandOnce()instanceof a&&e.push(this.stack.pop())}return e}},e.expandMacroAsText=function(t){var e=this.expandMacro(t);return e?e.map(function(t){return t.text}).join(""):e},e._getExpansion=function(t){var e=this.macros.get(t);if(null==e)return e;var r="function"==typeof e?e(this):e;if("string"==typeof r){var n=0;if(-1!==r.indexOf("#"))for(var a=r.replace(/##/g,"");-1!==a.indexOf("#"+(n+1));)++n;for(var o=new Zr(r),i=[],s=o.lex();"EOF"!==s.text;)i.push(s),s=o.lex();return i.reverse(),{tokens:i,numArgs:n}}return r},e.isDefined=function(t){return this.macros.has(t)||Wr.hasOwnProperty(t)||W.math.hasOwnProperty(t)||W.text.hasOwnProperty(t)||hn.hasOwnProperty(t)},t}(),mn={"́":{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"}},pn={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","č":"č","ĉ":"ĉ","ċ":"ċ","ď":"ď","ḋ":"ḋ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ĺ":"ĺ","ľ":"ľ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ď":"Ď","Ḋ":"Ḋ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ĺ":"Ĺ","Ľ":"Ľ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ť":"Ť","Ṫ":"Ṫ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},cn=function(){function t(t,e){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 un(t,e,this.mode),this.settings=e,this.leftrightDepth=0}var e=t.prototype;return e.expect=function(t,e){if(void 0===e&&(e=!0),this.nextToken.text!==t)throw new i("Expected '"+t+"', got '"+this.nextToken.text+"'",this.nextToken);e&&this.consume()},e.consume=function(){this.nextToken=this.gullet.expandNextToken()},e.switchMode=function(t){this.mode=t,this.gullet.switchMode(t)},e.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor"),this.consume();var t=this.parseExpression(!1);return this.expect("EOF",!1),this.gullet.endGroup(),t},e.parseExpression=function(e,r){for(var n=[];;){"math"===this.mode&&this.consumeSpaces();var a=this.nextToken;if(-1!==t.endOfExpression.indexOf(a.text))break;if(r&&a.text===r)break;if(e&&Wr[a.text]&&Wr[a.text].infix)break;var o=this.parseAtom(r);if(!o)break;n.push(o)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)},e.handleInfixNodes=function(t){for(var e,r=-1,n=0;n0&&!h&&this.consumeSpaces(),0!==s||h||"math"!==this.mode||this.consumeSpaces();var u=this.nextToken,m=this.parseGroupOfType("argument to '"+t+"'",l,h,n);if(!m){if(h){o.push(null);continue}throw new i("Expected group after '"+t+"'",u)}(h?o:a).push(m)}return{args:a,optArgs:o}},e.parseGroupOfType=function(t,e,r,n){switch(e){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseGroup(t,r,n,void 0,e);case"original":case null:case void 0:return this.parseGroup(t,r,n);default:throw new i("Unknown group type as "+t,this.nextToken)}},e.consumeSpaces=function(){for(;" "===this.nextToken.text;)this.consume()},e.consumeComment=function(){for(;"EOF"!==this.nextToken.text&&this.nextToken.loc&&-1===this.nextToken.loc.getSource().indexOf("\n");)this.consume();if("EOF"===this.nextToken.text&&this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)"),"math"===this.mode)this.consumeSpaces();else if(this.nextToken.loc){var t=this.nextToken.loc.getSource();t.indexOf("\n")===t.length-1&&this.consumeSpaces()}},e.parseStringGroup=function(t,e,r){var n=e?"[":"{",a=e?"]":"}",o=this.nextToken;if(o.text!==n){if(e)return null;if(r&&"EOF"!==o.text&&/[^{}[\]]/.test(o.text))return this.consume(),o}var s=this.mode;this.mode="text",this.expect(n);for(var l="",h=this.nextToken,u=0,m=h;r&&u>0||this.nextToken.text!==a;){switch(this.nextToken.text){case"EOF":throw new i("Unexpected end of input in "+t,h.range(m,l));case"%":if(!r){this.consumeComment();continue}break;case n:u++;break;case a:u--}l+=(m=this.nextToken).text,this.consume()}return this.mode=s,this.expect(a),h.range(m,l)},e.parseRegexGroup=function(t,e){var r=this.mode;this.mode="text";for(var n=this.nextToken,a=n,o="";"EOF"!==this.nextToken.text&&(t.test(o+this.nextToken.text)||"%"===this.nextToken.text);)"%"!==this.nextToken.text?(o+=(a=this.nextToken).text,this.consume()):this.consumeComment();if(""===o)throw new i("Invalid "+e+": '"+n.text+"'",n);return this.mode=r,n.range(a,o)},e.parseColorGroup=function(t){var e=this.parseStringGroup("color",t);if(!e)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(e.text);if(!r)throw new i("Invalid color: '"+e.text+"'",e);var n=r[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}},e.parseSizeGroup=function(t){var e,r=!1;if(!(e=t||"{"===this.nextToken.text?this.parseStringGroup("size",t):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;t||0!==e.text.length||(e.text="0pt",r=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e.text);if(!n)throw new i("Invalid size: '"+e.text+"'",e);var a,o={number:+(n[1]+n[2]),unit:n[3]};if("string"!=typeof(a=o)&&(a=a.unit),!(a in Tt||a in Nt||"ex"===a))throw new i("Invalid unit: '"+o.unit+"'",e);return{type:"size",mode:this.mode,value:o,isBlank:r}},e.parseUrlGroup=function(t){var e=this.parseStringGroup("url",t,!0);if(!e)return null;var r=e.text.replace(/\\([#$%&~_^{}])/g,"$1"),n=/^\s*([^\\\/#]*?)(?::|�*58|�*3a)/i.exec(r);n=null!=n?n[1]:"_relative";var a=this.settings.allowedProtocols;if(!p.contains(a,"*")&&!p.contains(a,n))throw new i("Forbidden protocol '"+n+"'",e);return{type:"url",mode:this.mode,url:r}},e.parseGroup=function(t,e,r,a,o){var s,l=this.mode,h=this.nextToken,u=h.text;if(o&&this.switchMode(o),u===(e?"[":"{")){this.gullet.beginGroup(),this.consume();var m=this.parseExpression(!1,e?"]":"}"),p=this.nextToken;return o&&this.switchMode(l),this.gullet.endGroup(),this.expect(e?"]":"}"),{type:"ordgroup",mode:this.mode,loc:n.range(h,p),body:m}}if(e)s=null;else if(null==(s=this.parseFunction(a,t,r)||this.parseSymbol())&&"\\"===u[0]&&!hn.hasOwnProperty(u)){if(this.settings.throwOnError)throw new i("Undefined control sequence: "+u,h);s=this.handleUnsupportedCmd()}return o&&this.switchMode(l),s},e.formLigatures=function(t){for(var e=t.length-1,r=0;r=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+e[0]+'" used in math mode',t);var l,h=W[this.mode][e].group,u=n.range(t);if(G.hasOwnProperty(h)){var m=h;l={type:"atom",mode:this.mode,family:m,loc:u,text:e}}else l={type:h,mode:this.mode,loc:u,text:e};o=l}else{if(!(e.charCodeAt(0)>=128))return null;this.settings.strict&&(N(e.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+e[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+e[0]+'" ('+e.charCodeAt(0)+")",t)),o={type:"textord",mode:this.mode,loc:n.range(t),text:e}}if(this.consume(),s)for(var p=0;p<",tag:"mo",output:"⋉",tex:"ltimes",ttype:s.CONST},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",ttype:s.CONST},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",ttype:s.CONST},{input:"-:",tag:"mo",output:"÷",tex:"div",ttype:s.CONST},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:s.DEFINITION},{input:"@",tag:"mo",output:"∘",tex:"circ",ttype:s.CONST},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",ttype:s.CONST},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",ttype:s.CONST},{input:"o.",tag:"mo",output:"⊙",tex:"odot",ttype:s.CONST},{input:"sum",tag:"mo",output:"∑",tex:null,ttype:s.UNDEROVER},{input:"prod",tag:"mo",output:"∏",tex:null,ttype:s.UNDEROVER},{input:"^^",tag:"mo",output:"∧",tex:"wedge",ttype:s.CONST},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",ttype:s.UNDEROVER},{input:"vv",tag:"mo",output:"∨",tex:"vee",ttype:s.CONST},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",ttype:s.UNDEROVER},{input:"nn",tag:"mo",output:"∩",tex:"cap",ttype:s.CONST},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",ttype:s.UNDEROVER},{input:"uu",tag:"mo",output:"∪",tex:"cup",ttype:s.CONST},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",ttype:s.UNDEROVER},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:s.BINARY},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:s.BINARY},{input:"!=",tag:"mo",output:"≠",tex:"ne",ttype:s.CONST},{input:":=",tag:"mo",output:":=",tex:null,ttype:s.CONST},{input:"lt",tag:"mo",output:"<",tex:null,ttype:s.CONST},{input:"gt",tag:"mo",output:">",tex:null,ttype:s.CONST},{input:"<=",tag:"mo",output:"≤",tex:"le",ttype:s.CONST},{input:"lt=",tag:"mo",output:"≤",tex:"leq",ttype:s.CONST},{input:"gt=",tag:"mo",output:"≥",tex:"geq",ttype:s.CONST},{input:">=",tag:"mo",output:"≥",tex:"ge",ttype:s.CONST},{input:"-<",tag:"mo",output:"≺",tex:"prec",ttype:s.CONST},{input:"-lt",tag:"mo",output:"≺",tex:null,ttype:s.CONST},{input:">-",tag:"mo",output:"≻",tex:"succ",ttype:s.CONST},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",ttype:s.CONST},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",ttype:s.CONST},{input:"in",tag:"mo",output:"∈",tex:null,ttype:s.CONST},{input:"!in",tag:"mo",output:"∉",tex:"notin",ttype:s.CONST},{input:"sub",tag:"mo",output:"⊂",tex:"subset",ttype:s.CONST},{input:"sup",tag:"mo",output:"⊃",tex:"supset",ttype:s.CONST},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",ttype:s.CONST},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",ttype:s.CONST},{input:"-=",tag:"mo",output:"≡",tex:"equiv",ttype:s.CONST},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",ttype:s.CONST},{input:"cong",tag:"mo",output:"~=",tex:null,ttype:s.DEFINITION},{input:"~~",tag:"mo",output:"≈",tex:"approx",ttype:s.CONST},{input:"prop",tag:"mo",output:"∝",tex:"propto",ttype:s.CONST},{input:"and",tag:"mtext",output:"and",tex:null,ttype:s.SPACE},{input:"or",tag:"mtext",output:"or",tex:null,ttype:s.SPACE},{input:"not",tag:"mo",output:"¬",tex:"neg",ttype:s.CONST},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:s.CONST},{input:"implies",tag:"mo",output:"=>",tex:null,ttype:s.DEFINITION},{input:"if",tag:"mo",output:"if",tex:null,ttype:s.SPACE},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:s.CONST},{input:"iff",tag:"mo",output:"<=>",tex:null,ttype:s.DEFINITION},{input:"AA",tag:"mo",output:"∀",tex:"forall",ttype:s.CONST},{input:"EE",tag:"mo",output:"∃",tex:"exists",ttype:s.CONST},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",ttype:s.CONST},{input:"TT",tag:"mo",output:"⊤",tex:"top",ttype:s.CONST},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",ttype:s.CONST},{input:"|==",tag:"mo",output:"⊨",tex:"models",ttype:s.CONST},{input:"(",tag:"mo",output:"(",tex:null,ttype:s.LEFTBRACKET,val:!0},{input:")",tag:"mo",output:")",tex:null,ttype:s.RIGHTBRACKET,val:!0},{input:"[",tag:"mo",output:"[",tex:null,ttype:s.LEFTBRACKET,val:!0},{input:"]",tag:"mo",output:"]",tex:null,ttype:s.RIGHTBRACKET,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",ttype:s.LEFTBRACKET},{input:"}",tag:"mo",output:"}",tex:"rbrace",ttype:s.RIGHTBRACKET},{input:"|",tag:"mo",output:"|",tex:null,ttype:s.LEFTRIGHT,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",ttype:s.LEFTBRACKET},{input:":)",tag:"mo",output:"〉",tex:"rangle",ttype:s.RIGHTBRACKET},{input:"<<",tag:"mo",output:"〈",tex:"langle",ttype:s.LEFTBRACKET},{input:">>",tag:"mo",output:"〉",tex:"rangle",ttype:s.RIGHTBRACKET},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:s.LEFTBRACKET,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,ttype:s.RIGHTBRACKET,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,ttype:s.CONST},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:s.DEFINITION},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:s.DEFINITION},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:s.DEFINITION},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:s.DEFINITION},{input:"oint",tag:"mo",output:"∮",tex:null,ttype:s.CONST},{input:"del",tag:"mo",output:"∂",tex:"partial",ttype:s.CONST},{input:"grad",tag:"mo",output:"∇",tex:"nabla",ttype:s.CONST},{input:"+-",tag:"mo",output:"±",tex:"pm",ttype:s.CONST},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",ttype:s.CONST},{input:"oo",tag:"mo",output:"∞",tex:"infty",ttype:s.CONST},{input:"aleph",tag:"mo",output:"ℵ",tex:null,ttype:s.CONST},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:s.CONST},{input:":.",tag:"mo",output:"∴",tex:"therefore",ttype:s.CONST},{input:":'",tag:"mo",output:"∵",tex:"because",ttype:s.CONST},{input:"/_",tag:"mo",output:"∠",tex:"angle",ttype:s.CONST},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",ttype:s.CONST},{input:"\\ ",tag:"mo",output:" ",tex:null,ttype:s.CONST,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,ttype:s.CONST},{input:"%",tag:"mo",output:"%",tex:"%",ttype:s.CONST,notexcopy:!0},{input:"quad",tag:"mo",output:"  ",tex:null,ttype:s.CONST},{input:"qquad",tag:"mo",output:"    ",tex:null,ttype:s.CONST},{input:"cdots",tag:"mo",output:"⋯",tex:null,ttype:s.CONST},{input:"vdots",tag:"mo",output:"⋮",tex:null,ttype:s.CONST},{input:"ddots",tag:"mo",output:"⋱",tex:null,ttype:s.CONST},{input:"diamond",tag:"mo",output:"⋄",tex:null,ttype:s.CONST},{input:"square",tag:"mo",output:"□",tex:"boxempty",ttype:s.CONST},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",ttype:s.CONST},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",ttype:s.CONST},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",ttype:s.CONST},{input:"lceiling",tag:"mo",output:"|~",tex:null,ttype:s.DEFINITION},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",ttype:s.CONST},{input:"rceiling",tag:"mo",output:"~|",tex:null,ttype:s.DEFINITION},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",ttype:s.CONST,notexcopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",ttype:s.CONST,notexcopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",ttype:s.CONST,notexcopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",ttype:s.CONST,notexcopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",ttype:s.CONST,notexcopy:!0},{input:"f",tag:"mi",output:"f",tex:null,ttype:s.UNARY,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:s.UNARY,func:!0,val:!0},{input:"''",tag:"mo",output:"''",tex:null,val:!0},{input:"'''",tag:"mo",output:"'''",tex:null,val:!0},{input:"''''",tag:"mo",output:"''''",tex:null,val:!0},{input:"lim",tag:"mo",output:"lim",tex:null,ttype:s.UNDEROVER},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:s.UNDEROVER},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:s.UNARY,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:s.UNARY,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:s.UNARY,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:s.UNARY,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:s.UNARY,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:s.UNARY,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:s.UNARY,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:s.UNARY,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:s.UNARY,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:s.UNARY,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:s.UNARY,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:s.UNARY,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:s.UNARY,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:s.UNARY,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:s.UNARY,func:!0},{input:"log",tag:"mo",output:"log",tex:null,ttype:s.UNARY,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:s.UNARY,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:s.UNARY,notexcopy:!0,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:s.UNARY,notexcopy:!0,rewriteleftright:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:s.UNARY,notexcopy:!0,rewriteleftright:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:s.UNARY,notexcopy:!0,rewriteleftright:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"sin",tex:null,ttype:s.UNARY,func:!0},{input:"Cos",tag:"mo",output:"cos",tex:null,ttype:s.UNARY,func:!0},{input:"Tan",tag:"mo",output:"tan",tex:null,ttype:s.UNARY,func:!0},{input:"Arcsin",tag:"mo",output:"arcsin",tex:null,ttype:s.UNARY,func:!0},{input:"Arccos",tag:"mo",output:"arccos",tex:null,ttype:s.UNARY,func:!0},{input:"Arctan",tag:"mo",output:"arctan",tex:null,ttype:s.UNARY,func:!0},{input:"Sinh",tag:"mo",output:"sinh",tex:null,ttype:s.UNARY,func:!0},{input:"Sosh",tag:"mo",output:"cosh",tex:null,ttype:s.UNARY,func:!0},{input:"Tanh",tag:"mo",output:"tanh",tex:null,ttype:s.UNARY,func:!0},{input:"Cot",tag:"mo",output:"cot",tex:null,ttype:s.UNARY,func:!0},{input:"Sec",tag:"mo",output:"sec",tex:null,ttype:s.UNARY,func:!0},{input:"Csc",tag:"mo",output:"csc",tex:null,ttype:s.UNARY,func:!0},{input:"Log",tag:"mo",output:"log",tex:null,ttype:s.UNARY,func:!0},{input:"Ln",tag:"mo",output:"ln",tex:null,ttype:s.UNARY,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,ttype:s.UNARY,notexcopy:!0,rewriteleftright:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,ttype:s.UNARY,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:s.UNARY,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:s.CONST},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",ttype:s.CONST,notexcopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:s.UNARY,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",ttype:s.UNARY,func:!0,notexcopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:s.CONST},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:s.CONST},{input:"min",tag:"mo",output:"min",tex:null,ttype:s.UNDEROVER},{input:"max",tag:"mo",output:"max",tex:null,ttype:s.UNDEROVER},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",ttype:s.CONST},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",ttype:s.CONST},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",ttype:s.CONST},{input:"->",tag:"mo",output:"→",tex:"to",ttype:s.CONST},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",ttype:s.CONST},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",ttype:s.CONST},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",ttype:s.CONST},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",ttype:s.CONST},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",ttype:s.CONST},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",ttype:s.CONST},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:s.CONST},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",ttype:s.CONST},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:s.CONST},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:s.UNARY},{input:"root",tag:"mroot",output:"root",tex:null,ttype:s.BINARY},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:s.BINARY},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:s.INFIX},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:s.BINARY},{input:"_",tag:"msub",output:"_",tex:null,ttype:s.INFIX},{input:"^",tag:"msup",output:"^",tex:null,ttype:s.INFIX},{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:s.UNARY},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:s.UNARY},{input:"hat",tag:"mover",output:"^",tex:null,ttype:s.UNARY,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",ttype:s.UNARY,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,ttype:s.UNARY,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:s.UNARY,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,ttype:s.UNARY,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:s.UNARY,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",ttype:s.UNARY,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",ttype:s.UNARY,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",ttype:s.UNARY,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,ttype:s.TEXT},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:s.TEXT},l,{input:"color",tag:"mstyle",ttype:s.BINARY},{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:"mathbf",ttype:s.UNARY,notexcopy:!0},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:s.UNARY},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:"mathsf",ttype:s.UNARY,notexcopy:!0},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:s.UNARY},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:"mathbb",ttype:s.UNARY,notexcopy:!0},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:s.UNARY},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:"mathcal",ttype:s.UNARY,notexcopy:!0},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:s.UNARY},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:"mathtt",ttype:s.UNARY,notexcopy:!0},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:s.UNARY},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:"mathfrak",ttype:s.UNARY,notexcopy:!0},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:s.UNARY}],u=[];function m(t,e){var r=void 0;r="\\"===t.charAt(e)&&"\\"!==t.charAt(e+1)&&" "!==t.charAt(e+1)?t.slice(e+1):t.slice(e);for(var n=0;n>1]=u[e];if(g=x,""!==o)return x=h[r].ttype,h[r];x=s.CONST,e=1,n=t.slice(0,1);for(var m=!0;"0"<=n&&n<="9"&&e<=t.length;)n=t.slice(e,e+1),e++;if("."===n&&"0"<=(n=t.slice(e,e+1))&&n<="9")for(m=!1,e++;"0"<=n&&n<="9"&&e<=t.length;)n=t.slice(e,e+1),e++;return m&&e>1||e>2?(n=t.slice(0,e-1),a="mn"):(e=2,a=("A">(n=t.slice(0,1))||n>"Z")&&("a">n||n>"z")?"mo":"mi"),"-"===n&&g===s.INFIX?(x=s.INFIX,{input:n,tag:a,output:n,ttype:s.UNARY,func:!0,val:!0}):{input:n,tag:a,output:n,ttype:s.CONST,val:!0}}function d(t){var e=void 0;if("{"===t.charAt(0)&&"}"===t.charAt(t.length-1)){var r=0;"\\left"===(e=t.substr(1,5))?"("===(e=t.charAt(6))||"["===e||"{"===e?r=7:"\\lbrace"===(e=t.substr(6,7))&&(r=13):"("!==(e=t.charAt(1))&&"["!==e||(r=2),r>0&&("\\right)}"===(e=t.substr(t.length-8))||"\\right]}"===e||"\\right.}"===e?t=(t="{"+t.substr(r)).substr(0,t.length-8)+"}":"\\rbrace}"===e&&(t=(t="{"+t.substr(r)).substr(0,t.length-14)+"}"))}return t}var f=void 0,g=void 0,x=void 0;function y(t){var e=void 0;return e="boolean"==typeof t.val&&t.val?"":"\\",t.tex?e+t.tex:e+t.input}function v(t){var e=void 0,r=void 0,n=void 0,a=void 0,o="";if(!(e=c(t=m(t,0)))||e.ttype===s.RIGHTBRACKET&&f>0)return[null,t];switch(e.ttype===s.DEFINITION&&(e=c(t=e.output+m(t,e.input.length))),e.ttype){case s.UNDEROVER:case s.CONST:t=m(t,e.input.length);var i=y(e);return"\\"===i.charAt(0)||"mo"===e.tag?[i,t]:["{"+i+"}",t];case s.LEFTBRACKET:f++,n=w(t=m(t,e.input.length),!0),f--;var h=0;return"\\right"===n[0].substr(0,6)&&(")"===(p=n[0].charAt(6))||"]"===p||"}"===p?h=6:"."===p?h=7:"\\rbrace"===(p=n[0].substr(6,7))&&(h=13)),h>0?(n[0]=n[0].substr(h),r=e.invisible?"{"+n[0]+"}":"{"+y(e)+n[0]+"}"):r=e.invisible?"{\\left."+n[0]+"}":"{\\left"+y(e)+n[0]+"}",[r,n[1]];case s.TEXT:return e!==l&&(t=m(t,e.input.length)),-1===(a="{"===t.charAt(0)?t.indexOf("}"):"("===t.charAt(0)?t.indexOf(")"):"["===t.charAt(0)?t.indexOf("]"):e===l?t.slice(1).indexOf("'")+1:0)&&(a=t.length)," "===(p=t.slice(1,a)).charAt(0)&&(o="\\ "),o+="\\text{"+p+"}"," "===p.charAt(p.length-1)&&(o+="\\ "),[o,t=m(t,a+1)];case s.UNARY:return null===(n=v(t=m(t,e.input.length)))[0]?["{"+y(e)+"}",t]:!0===e.func?"^"===(p=t.charAt(0))||"_"===p||"/"===p||"|"===p||","===p||1===e.input.length&&e.input.match(/\w/)&&"("!==p?["{"+y(e)+"}",t]:[r="{"+y(e)+"{"+n[0]+"}}",n[1]]:(n[0]=d(n[0]),"sqrt"===e.input?["\\sqrt{"+n[0]+"}",n[1]]:"cancel"===e.input?["\\cancel{"+n[0]+"}",n[1]]:void 0!==e.rewriteleftright?["{\\left"+e.rewriteleftright[0]+n[0]+"\\right"+e.rewriteleftright[1]+"}",n[1]]:!0===e.acc?[y(e)+"{"+n[0]+"}",n[1]]:["{"+y(e)+"{"+n[0]+"}}",n[1]]);case s.BINARY:if(null===(n=v(t=m(t,e.input.length)))[0])return["{"+y(e)+"}",t];n[0]=d(n[0]);var u=v(n[1]);return null===u[0]?["{"+y(e)+"}",t]:(u[0]=d(u[0]),[o="color"===e.input?"{\\color{"+n[0].replace(/[{}]/g,"")+"}"+u[0]+"}":"root"===e.input?"{\\sqrt["+n[0]+"]{"+u[0]+"}}":"{"+y(e)+"{"+n[0]+"}{"+u[0]+"}}",u[1]]);case s.INFIX:return t=m(t,e.input.length),[e.output,t];case s.SPACE:return t=m(t,e.input.length),["{\\quad\\text{"+e.input+"}\\quad}",t];case s.LEFTRIGHT:f++,n=w(t=m(t,e.input.length),!1),f--;var p="";return"|"===(p=n[0].charAt(n[0].length-1))?[r="{\\left|"+n[0]+"}",n[1]]:[r="{\\mid}",t];default:return t=m(t,e.input.length),["{"+y(e)+"}",t]}}function b(t){var e=void 0,r=void 0,n=void 0,a=c(t=m(t,0));r=(n=v(t))[0];var o=c(t=n[1]);if(o.ttype===s.INFIX&&"/"!==o.input){if(null===(n=v(t=m(t,o.input.length)))[0]?n[0]="{}":n[0]=d(n[0]),t=n[1],"_"===o.input)if("^"===(e=c(t)).input){var i=v(t=m(t,e.input.length));i[0]=d(i[0]),t=i[1],r="{"+r,r+="_{"+n[0]+"}",r+="^{"+i[0]+"}",r+="}"}else r+="_{"+n[0]+"}";else r=r+"^{"+n[0]+"}";void 0!==a.func&&a.func&&(e=c(t)).ttype!==s.INFIX&&e.ttype!==s.RIGHTBRACKET&&(r="{"+r+(n=b(t))[0]+"}",t=n[1])}return[r,t]}function w(t,e){var r=void 0,n=void 0,a=void 0,o=void 0,i="",l=!1;do{n=(a=b(t=m(t,0)))[0],(r=c(t=a[1])).ttype===s.INFIX&&"/"===r.input?(null===(a=b(t=m(t,r.input.length)))[0]?a[0]="{}":a[0]=d(a[0]),t=a[1],n="\\frac{"+(n=d(n))+"}",i+=n+="{"+a[0]+"}",r=c(t)):n&&(i+=n)}while((r.ttype!==s.RIGHTBRACKET&&(r.ttype!==s.LEFTRIGHT||e)||0===f)&&r&&r.output);if(r.ttype===s.RIGHTBRACKET||r.ttype===s.LEFTRIGHT){var h=i.length;if(h>2&&"{"===i.charAt(0)&&i.indexOf(",")>0){var u=i.charAt(h-2);if(")"===u||"]"===u){var p=i.charAt(6);if("("===p&&")"===u&&"}"!==r.output||"["===p&&"]"===u){var g="\\matrix{",x=new Array;x.push(0);var v=!0,w=0,k=[];k[0]=[0];var S=0,T=0;for(o=1;o0&&v)for(o=0;o0&&(g+="\\\\");var A=void 0;if(0===o)if(1===k[x[o]].length)A=[i.substr(x[o]+7,x[o+1]-x[o]-15)];else{for(var M=[i.substring(x[o]+7,k[x[o]][1])],z=2;z0&&A.length!==N?v=!1:-1===N&&(N=A.length),g+=A.join("&")}g+="}",v&&(i=g)}}}t=m(t,r.input.length),"boolean"==typeof r.invisible&&r.invisible?(i+="\\right.",l=!0):(i+=n="\\right"+y(r),l=!0)}return f>0&&!l&&(i+="\\right."),[i,t]}function k(t){return f=0,(t=t.replace(/( |\u00a0| )/g,"").replace(/>/g,">").replace(/</g,"<")).match(/\S/)?w(t.replace(/^\s+/g,""),!1)[0]:""}var S=h.filter(function(t){return t.tex&&!0!==t.notexcopy}).map(function(t){return{input:t.tex,tag:t.tag,output:t.output,ttype:t.ttype,acc:t.acc||!1}});function T(t){var e=t.elements,r=t.config,a=t.isAsciimath;e.length&&e.forEach(function(t){var e=t.textContent,o=a?k(e):e,i=n.renderToString(o,r);t.parentNode.outerHTML=''+i+""})}function N(t){return t.replace(/[-[\]\/{}()*+?.\\$^|]/g,"\\$&")}h.push.apply(h,i(S)),h.sort(function(t,e){return t.input>e.input?1:-1}),u=h.map(function(t){return t.input});var A=function(t){return function(){var e=new DOMParser,r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o({displayMode:!0,throwOnError:!1,errorColor:"#ff0000"},t,{delimiters:[{left:"$$",right:"$$",display:!1},{left:"~",right:"~",display:!1,asciimath:!0}].concat(t.delimiters||[])})}(t),n=r.delimiters.filter(function(t){return t.asciimath}).map(function(t){var e=t.left,r=t.right,n="(.*?)";"$"==e&&(n="[^0-9](.*?)");return{test:new RegExp(N(e)+n+N(r),"g"),replacer:function(t,n){return""+e+k(n)+r}}});return[{type:"output",filter:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=e.parseFromString(t,"text/html").body;n.length&&o.querySelectorAll(":not(code):not(pre)").forEach(function(t){[].concat(i(t.childNodes)).filter(function(t){return"#text"===t.nodeName&&t.nodeValue.trim()}).forEach(function(t){var e=n.reduce(function(t,e){var r=e.test,n=e.replacer;return t.replace(r,n)},t.nodeValue);t.nodeValue=e})});var s=o.querySelectorAll("code.latex.language-latex"),l=o.querySelectorAll("code.asciimath.language-asciimath");return T({elements:s,config:r}),T({elements:l,config:r,isAsciimath:!0}),a(o,r),o.innerHTML}}]}};return void 0!==window.showdown&&window.showdown.extension("showdown-katex",A()),A});