!function(t){function e(t,e,r,n,i){this._listener=e,this._isOnce=r,this.context=n,this._signal=t,this._priority=i||0}function r(t,e){if("function"!=typeof t)throw new Error("listener is a required param of {fn}() and should be a Function.".replace("{fn}",e))}function n(){this._bindings=[],this._prevParams=null;var t=this;this.dispatch=function(){n.prototype.dispatch.apply(t,arguments)}}e.prototype={active:!0,params:null,execute:function(t){var e,r;return this.active&&this._listener&&(r=this.params?this.params.concat(t):t,e=this._listener.apply(this.context,r),this._isOnce&&this.detach()),e},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}},n.prototype={VERSION:"1.0.0",memorize:!1,_shouldPropagate:!0,active:!0,_registerListener:function(t,r,n,i){var a,o=this._indexOfListener(t,n);if(o!==-1){if(a=this._bindings[o],a.isOnce()!==r)throw new Error("You cannot add"+(r?"":"Once")+"() then add"+(r?"Once":"")+"() the same listener without removing the relationship first.")}else a=new e(this,t,r,n,i),this._addBinding(a);return this.memorize&&this._prevParams&&a.execute(this._prevParams),a},_addBinding:function(t){var e=this._bindings.length;do--e;while(this._bindings[e]&&t._priority<=this._bindings[e]._priority);this._bindings.splice(e+1,0,t)},_indexOfListener:function(t,e){for(var r,n=this._bindings.length;n--;)if(r=this._bindings[n],r._listener===t&&r.context===e)return n;return-1},has:function(t,e){return this._indexOfListener(t,e)!==-1},add:function(t,e,n){return r(t,"add"),this._registerListener(t,!1,e,n)},addOnce:function(t,e,n){return r(t,"addOnce"),this._registerListener(t,!0,e,n)},remove:function(t,e){r(t,"remove");var n=this._indexOfListener(t,e);return n!==-1&&(this._bindings[n]._destroy(),this._bindings.splice(n,1)),t},removeAll:function(){for(var t=this._bindings.length;t--;)this._bindings[t]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(){if(this.active){var t,e=Array.prototype.slice.call(arguments),r=this._bindings.length;if(this.memorize&&(this._prevParams=e),r){t=this._bindings.slice(),this._shouldPropagate=!0;do r--;while(t[r]&&this._shouldPropagate&&t[r].execute(e)!==!1)}}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}};var i=n;i.Signal=n,"function"==typeof define&&define.amd?define(function(){return i}):"undefined"!=typeof module&&module.exports?module.exports=i:t.signals=i}(this),function(t,e,r){function n(t,e){return typeof t===e}function i(){var t,e,r,i,a,o,s;for(var l in w)if(w.hasOwnProperty(l)){if(t=[],e=w[l],e.name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(r=0;r=Q[e]&&t<=Q[e+1])return!0;return!1}function i(t,e,r){if(!dt[e])throw new Error("Font metrics not found for font: "+e+".");var i=t.charCodeAt(0);t[0]in ft&&(i=ft[t[0]].charCodeAt(0));var a=dt[e][i];if(a||"text"!==r||n(i)&&(a=dt[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}function a(t,e,r,n,i,a){xt[t][i]={font:e,group:r,replace:n},a&&n&&(xt[t][n]=xt[t][i])}function o(t,e){var r=s(t,e);if(!r)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return r}function s(t,e){return t&&t.type===e?t:null}function l(t,e){var r=function(t,e){return t&&"atom"===t.type&&t.family===e?t:null}(t,e);if(!r)throw new Error('Expected node of type "atom" and family "'+e+'", but got '+(t?"atom"===t.type?"atom of family "+t.family:"node of type "+t.type:String(t)));return r}function h(t){return t&&("atom"===t.type||yt.hasOwnProperty(t.type))?t:null}function m(t){for(var e=t.type,r=(t.nodeType,t.names),n=t.props,i=t.handler,a=t.htmlBuilder,o=t.mathmlBuilder,s={type:e,numArgs:n.numArgs,argTypes:n.argTypes,greediness:void 0===n.greediness?1:n.greediness,allowedInText:!!n.allowedInText,allowedInMath:void 0===n.allowedInMath||n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,consumeMode:n.consumeMode,handler:i},l=0;l0&&(i.push(u(a,e)),a=[]),i.push(n[o]));a.length>0&&i.push(u(a,e));var l=void 0;r&&((l=u(ze(r,e,!0))).classes=["tag"],i.push(l));var h=we(["katex-html"],i);if(h.setAttribute("aria-hidden","true"),l){var m=l.children[0];m.style.height=h.height+h.depth+"em",m.style.verticalAlign=-h.depth+"em"}return h}function p(t){return new et(t)}function f(t,e){var r=h(t);if(r&&H.contains(Sr,r.text))return r;throw new N("Invalid delimiter: '"+(r?r.text:JSON.stringify(t))+"' after '"+e.funcName+"'",t)}function g(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}function v(t,e){var r=ze(t.body,e,!0);return zr([t.mclass],r,e)}function y(t,e){var r=Fe(t.body,e);return qe.newDocumentFragment(r)}function x(t,e,r){for(var n=ze(t,e,!1),i=e.sizeMultiplier/r.sizeMultiplier,a=0;a15?"\u2026"+o.slice(i-15,i):o.slice(0,i))+l+(s+15":">","<":"<",'"':""","'":"'"},R=/[&><"']/g,_=void 0;if("undefined"!=typeof document){var P=document.createElement("span");_="textContent"in P?function(t,e){t.textContent=e}:function(t,e){t.innerText=e}}var F=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},D=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},H={contains:function(t,e){return-1!==O(t,e)},deflt:function(t,e){return void 0===t?e:t},escape:function(t){return String(t).replace(R,function(t){return q[t]})},hyphenate:function(t){return t.replace(I,"-$1").toLowerCase()},indexOf:O,setTextContent:_,clearNode:function(t){_(t,"")},getBaseElem:F,isCharacterBox:function(t){var e=F(t);return"mathord"===e.type||"textord"===e.type||"atom"===e.type}},V=function(){function t(e){T()(this,t),e=e||{},this.displayMode=H.deflt(e.displayMode,!1),this.throwOnError=H.deflt(e.throwOnError,!0),this.errorColor=H.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.colorIsTextColor=H.deflt(e.colorIsTextColor,!1),this.strict=H.deflt(e.strict,"warn"),this.maxSize=Math.max(0,H.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,H.deflt(e.maxExpand,1e3)),this.allowedProtocols=H.deflt(e.allowedProtocols,["http","https","mailto","_relative"])}return t.prototype.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 N("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+"]")}},t.prototype.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}(),j=function(){function t(e,r,n){T()(this,t),this.id=e,this.size=r,this.cramped=n}return t.prototype.sup=function(){return G[U[this.id]]},t.prototype.sub=function(){return G[W[this.id]]},t.prototype.fracNum=function(){return G[X[this.id]]},t.prototype.fracDen=function(){return G[Y[this.id]]},t.prototype.cramp=function(){return G[$[this.id]]},t.prototype.text=function(){return G[K[this.id]]},t.prototype.isTight=function(){return this.size>=2},t}(),G=[new j(0,0,!1),new j(1,0,!0),new j(2,1,!1),new j(3,1,!0),new j(4,2,!1),new j(5,2,!0),new j(6,3,!1),new j(7,3,!0)],U=[4,5,4,5,6,7,6,7],W=[5,5,5,5,7,7,7,7],X=[2,3,4,5,6,7,6,7],Y=[3,3,5,5,7,7,7,7],$=[1,1,3,3,5,5,7,7],K=[0,1,2,3,2,3,2,3],Z={DISPLAY:G[0],TEXT:G[2],SCRIPT:G[4],SCRIPTSCRIPT:G[6]},J=[{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]]}],Q=[];J.forEach(function(t){return t.blocks.forEach(function(t){return Q.push.apply(Q,t)})});var tt={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"}},et=function(){function t(e){T()(this,t),this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}return t.prototype.hasClass=function(t){return H.contains(this.classes,t)},t.prototype.tryCombine=function(){return!1},t.prototype.toNode=function(){for(var t=document.createDocumentFragment(),e=0;e"},ot=function(){function t(e,r,n,i){T()(this,t),nt.call(this,e,n,i),this.children=r||[]}return t.prototype.setAttribute=function(t,e){this.attributes[t]=e},t.prototype.hasClass=function(t){return H.contains(this.classes,t)},t.prototype.tryCombine=function(){return!1},t.prototype.toNode=function(){return it.call(this,"span")},t.prototype.toMarkup=function(){return at.call(this,"span")},t}(),st=function(){function t(e,r,n,i){T()(this,t),nt.call(this,r,i),this.children=n||[],this.setAttribute("href",e)}return t.prototype.setAttribute=function(t,e){this.attributes[t]=e},t.prototype.hasClass=function(t){return H.contains(this.classes,t)},t.prototype.tryCombine=function(){return!1},t.prototype.toNode=function(){return it.call(this,"a")},t.prototype.toMarkup=function(){return at.call(this,"a")},t}(),lt={"\xee":"\u0131\u0302","\xef":"\u0131\u0308","\xed":"\u0131\u0301","\xec":"\u0131\u0300"},ht=function(){function t(e,r,n,i,a,o,s,l){T()(this,t),this.text=e,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=a||0,this.width=o||0,this.classes=s||[],this.style=l||{},this.maxFontSize=0;var h=function(t){for(var e=0;e=i[0]&&t<=i[1])return r.name}return null}(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=lt[this.text])}return t.prototype.hasClass=function(t){return H.contains(this.classes,t)},t.prototype.tryCombine=function(e){if(!e||!(e instanceof t)||this.italic>0||rt(this.classes)!==rt(e.classes)||this.skew!==e.skew||this.maxFontSize!==e.maxFontSize)return!1;for(var r in this.style)if(this.style.hasOwnProperty(r)&&this.style[r]!==e.style[r])return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&this.style[n]!==e.style[n])return!1;return this.text+=e.text,this.height=Math.max(this.height,e.height),this.depth=Math.max(this.depth,e.depth),this.italic=e.italic,!0},t.prototype.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=rt(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},t.prototype.toMarkup=function(){var t=!1,e="0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(r+=H.hyphenate(n)+":"+this.style[n]+";");r&&(t=!0,e+=' style="'+H.escape(r)+'"');var i=H.escape(this.text);return t?(e+=">",e+=i,e+=""):i},t}(),mt=function(){function t(e,r){T()(this,t),this.children=e||[],this.attributes=r||{}}return t.prototype.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}(),ut=function(){function t(e){T()(this,t),this.attributes=e||{}}return t.prototype.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},t.prototype.toMarkup=function(){var t="",">"),a("math",wt,zt,":",":"),a("math",wt,zt,"\u2248","\\approx",!0),a("math",wt,zt,"\u2245","\\cong",!0),a("math",wt,zt,"\u2265","\\ge"),a("math",wt,zt,"\u2265","\\geq",!0),a("math",wt,zt,"\u2190","\\gets"),a("math",wt,zt,">","\\gt"),a("math",wt,zt,"\u2208","\\in",!0),a("math",wt,zt,"\u0338","\\@not"),a("math",wt,zt,"\u2282","\\subset",!0),a("math",wt,zt,"\u2283","\\supset",!0),a("math",wt,zt,"\u2286","\\subseteq",!0),a("math",wt,zt,"\u2287","\\supseteq",!0),a("math",kt,zt,"\u2288","\\nsubseteq",!0),a("math",kt,zt,"\u2289","\\nsupseteq",!0),a("math",wt,zt,"\u22a8","\\models"),a("math",wt,zt,"\u2190","\\leftarrow",!0),a("math",wt,zt,"\u2264","\\le"),a("math",wt,zt,"\u2264","\\leq",!0),a("math",wt,zt,"<","\\lt"),a("math",wt,zt,"\u2192","\\rightarrow",!0),a("math",wt,zt,"\u2192","\\to"),a("math",kt,zt,"\u2271","\\ngeq",!0),a("math",kt,zt,"\u2270","\\nleq",!0),a("math",wt,Tt,"\xa0","\\ "),a("math",wt,Tt,"\xa0","~"),a("math",wt,Tt,"\xa0","\\space"),a("math",wt,Tt,"\xa0","\\nobreakspace"),a("text",wt,Tt,"\xa0","\\ "),a("text",wt,Tt,"\xa0","~"),a("text",wt,Tt,"\xa0","\\space"),a("text",wt,Tt,"\xa0","\\nobreakspace"),a("math",wt,Tt,null,"\\nobreak"),a("math",wt,Tt,null,"\\allowbreak"),a("math",wt,"punct",",",","),a("math",wt,"punct",";",";"),a("math",kt,St,"\u22bc","\\barwedge",!0),a("math",kt,St,"\u22bb","\\veebar",!0),a("math",wt,St,"\u2299","\\odot",!0),a("math",wt,St,"\u2295","\\oplus",!0),a("math",wt,St,"\u2297","\\otimes",!0),a("math",wt,"textord","\u2202","\\partial",!0),a("math",wt,St,"\u2298","\\oslash",!0),a("math",kt,St,"\u229a","\\circledcirc",!0),a("math",kt,St,"\u22a1","\\boxdot",!0),a("math",wt,St,"\u25b3","\\bigtriangleup"),a("math",wt,St,"\u25bd","\\bigtriangledown"),a("math",wt,St,"\u2020","\\dagger"),a("math",wt,St,"\u22c4","\\diamond"),a("math",wt,St,"\u22c6","\\star"),a("math",wt,St,"\u25c3","\\triangleleft"),a("math",wt,St,"\u25b9","\\triangleright"),a("math",wt,"open","{","\\{"),a("text",wt,"textord","{","\\{"),a("text",wt,"textord","{","\\textbraceleft"),a("math",wt,"close","}","\\}"),a("text",wt,"textord","}","\\}"),a("text",wt,"textord","}","\\textbraceright"),a("math",wt,"open","{","\\lbrace"),a("math",wt,"close","}","\\rbrace"),a("math",wt,"open","[","\\lbrack"),a("text",wt,"textord","[","\\lbrack"),a("math",wt,"close","]","\\rbrack"),a("text",wt,"textord","]","\\rbrack"),a("text",wt,"textord","<","\\textless"),a("text",wt,"textord",">","\\textgreater"),a("math",wt,"open","\u230a","\\lfloor",!0),a("math",wt,"close","\u230b","\\rfloor",!0),a("math",wt,"open","\u2308","\\lceil",!0),a("math",wt,"close","\u2309","\\rceil",!0),a("math",wt,"textord","\\","\\backslash"),a("math",wt,"textord","\u2223","|"),a("math",wt,"textord","\u2223","\\vert"),a("text",wt,"textord","|","\\textbar"),a("math",wt,"textord","\u2225","\\|"),a("math",wt,"textord","\u2225","\\Vert"),a("text",wt,"textord","\u2225","\\textbardbl"),a("text",wt,"textord","~","\\textasciitilde"),a("math",wt,zt,"\u2191","\\uparrow",!0),a("math",wt,zt,"\u21d1","\\Uparrow",!0),a("math",wt,zt,"\u2193","\\downarrow",!0),a("math",wt,zt,"\u21d3","\\Downarrow",!0),a("math",wt,zt,"\u2195","\\updownarrow",!0),a("math",wt,zt,"\u21d5","\\Updownarrow",!0),a("math",wt,At,"\u2210","\\coprod"),a("math",wt,At,"\u22c1","\\bigvee"),a("math",wt,At,"\u22c0","\\bigwedge"),a("math",wt,At,"\u2a04","\\biguplus"),a("math",wt,At,"\u22c2","\\bigcap"),a("math",wt,At,"\u22c3","\\bigcup"),a("math",wt,At,"\u222b","\\int"),a("math",wt,At,"\u222b","\\intop"),a("math",wt,At,"\u222c","\\iint"),a("math",wt,At,"\u222d","\\iiint"),a("math",wt,At,"\u220f","\\prod"),a("math",wt,At,"\u2211","\\sum"),a("math",wt,At,"\u2a02","\\bigotimes"),a("math",wt,At,"\u2a01","\\bigoplus"),a("math",wt,At,"\u2a00","\\bigodot"),a("math",wt,At,"\u222e","\\oint"),a("math",wt,At,"\u222f","\\oiint"),a("math",wt,At,"\u2230","\\oiiint"),a("math",wt,At,"\u2a06","\\bigsqcup"),a("math",wt,At,"\u222b","\\smallint"),a("text",wt,"inner","\u2026","\\textellipsis"),a("math",wt,"inner","\u2026","\\mathellipsis"),a("text",wt,"inner","\u2026","\\ldots",!0),a("math",wt,"inner","\u2026","\\ldots",!0),a("math",wt,"inner","\u22ef","\\@cdots",!0),a("math",wt,"inner","\u22f1","\\ddots",!0),a("math",wt,"textord","\u22ee","\\varvdots"),a("math",wt,"accent-token","\u02ca","\\acute"),a("math",wt,"accent-token","\u02cb","\\grave"),a("math",wt,"accent-token","\xa8","\\ddot"),a("math",wt,"accent-token","~","\\tilde"),a("math",wt,"accent-token","\u02c9","\\bar"),a("math",wt,"accent-token","\u02d8","\\breve"),a("math",wt,"accent-token","\u02c7","\\check"),a("math",wt,"accent-token","^","\\hat"),a("math",wt,"accent-token","\u20d7","\\vec"),a("math",wt,"accent-token","\u02d9","\\dot"),a("math",wt,"accent-token","\u02da","\\mathring"),a("math",wt,Mt,"\u0131","\\imath",!0),a("math",wt,Mt,"\u0237","\\jmath",!0),a("text",wt,"textord","\u0131","\\i",!0),a("text",wt,"textord","\u0237","\\j",!0),a("text",wt,"textord","\xdf","\\ss",!0),a("text",wt,"textord","\xe6","\\ae",!0),a("text",wt,"textord","\xe6","\\ae",!0),a("text",wt,"textord","\u0153","\\oe",!0),a("text",wt,"textord","\xf8","\\o",!0),a("text",wt,"textord","\xc6","\\AE",!0),a("text",wt,"textord","\u0152","\\OE",!0),a("text",wt,"textord","\xd8","\\O",!0),a("text",wt,"accent-token","\u02ca","\\'"),a("text",wt,"accent-token","\u02cb","\\`"),a("text",wt,"accent-token","\u02c6","\\^"),a("text",wt,"accent-token","\u02dc","\\~"),a("text",wt,"accent-token","\u02c9","\\="),a("text",wt,"accent-token","\u02d8","\\u"),a("text",wt,"accent-token","\u02d9","\\."),a("text",wt,"accent-token","\u02da","\\r"),a("text",wt,"accent-token","\u02c7","\\v"),a("text",wt,"accent-token","\xa8",'\\"'),a("text",wt,"accent-token","\u02dd","\\H"),a("text",wt,"accent-token","\u25ef","\\textcircled");var Ct={"--":!0,"---":!0,"``":!0,"''":!0};a("text",wt,"textord","\u2013","--"),a("text",wt,"textord","\u2013","\\textendash"),a("text",wt,"textord","\u2014","---"),a("text",wt,"textord","\u2014","\\textemdash"),a("text",wt,"textord","\u2018","`"),a("text",wt,"textord","\u2018","\\textquoteleft"),a("text",wt,"textord","\u2019","'"),a("text",wt,"textord","\u2019","\\textquoteright"),a("text",wt,"textord","\u201c","``"),a("text",wt,"textord","\u201c","\\textquotedblleft"),a("text",wt,"textord","\u201d","''"),a("text",wt,"textord","\u201d","\\textquotedblright"),a("math",wt,"textord","\xb0","\\degree",!0),a("text",wt,"textord","\xb0","\\degree"),a("text",wt,"textord","\xb0","\\textdegree",!0),a("math",wt,Mt,"\xa3","\\pounds"),a("math",wt,Mt,"\xa3","\\mathsterling",!0),a("text",wt,Mt,"\xa3","\\pounds"),a("text",wt,Mt,"\xa3","\\textsterling",!0),a("math",kt,"textord","\u2720","\\maltese"),a("text",kt,"textord","\u2720","\\maltese"),a("text",wt,Tt,"\xa0","\\ "),a("text",wt,Tt,"\xa0"," "), a("text",wt,Tt,"\xa0","~");for(var Bt=0;Bt<'0123456789/@."'.length;Bt++){var Lt='0123456789/@."'.charAt(Bt);a("math",wt,"textord",Lt,Lt)}for(var Nt=0;Nt<'0123456789!@*()-=+[]<>|";:?/.,'.length;Nt++){var Et='0123456789!@*()-=+[]<>|";:?/.,'.charAt(Nt);a("text",wt,"textord",Et,Et)}for(var Ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",It=0;It=5?0:t>=3?1:2]){var r=gt[e]={cssEmPerMu:pt.quad[e]/18};for(var n in pt)pt.hasOwnProperty(n)&&(r[n]=pt[n][e])}return gt[e]}(this.size)),this._fontMetrics},t.prototype.getColor=function(){return this.phantom?"transparent":null!=this.color&&t.colorMap.hasOwnProperty(this.color)?t.colorMap[this.color]:this.color},t}();Yt.BASESIZE=6,Yt.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 $t=Yt,Kt={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},Zt={ex:!0,em:!0,mu:!0},Jt=function(t,e){var r=void 0;if(t.unit in Kt)r=Kt[t.unit]/e.fontMetrics().ptPerEm/e.sizeMultiplier;else if("mu"===t.unit)r=e.fontMetrics().cssEmPerMu;else{var n=void 0;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 N("Invalid unit: '"+t.unit+"'");r=n.fontMetrics().quad}n!==e&&(r*=n.sizeMultiplier/e.sizeMultiplier)}return Math.min(t.number*r,e.maxSize)},Qt=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xa3"],te=function(t,e,r){return bt[r][t]&&bt[r][t].replace&&(t=bt[r][t].replace),{value:t,metrics:i(t,e,r)}},ee=function(t,e,r,n,i){var a=te(t,e,r),o=a.metrics;t=a.value;var s=void 0;if(o){var l=o.italic;"text"===r&&(l=0),s=new ht(t,o.height,o.depth,l,o.skew,o.width,i)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+t+"' in style '"+e+"'"),s=new ht(t,0,0,0,0,0,i);if(n){s.maxFontSize=n.sizeMultiplier,n.style.isTight()&&s.classes.push("mtight");var h=n.getColor();h&&(s.style.color=h)}return s},re=function(t,e,r,n,i){if("mathord"===i){var a=ne(t,e,r,n);return ee(t,a.fontName,e,r,n.concat([a.fontClass]))}if("textord"===i){var o=bt[e][t]&&bt[e][t].font;if("ams"===o){var s=le("amsrm",r.fontWeight,r.fontShape);return ee(t,s,e,r,n.concat("amsrm",r.fontWeight,r.fontShape))}if("main"!==o&&o){var l=le(o,r.fontWeight,r.fontShape);return ee(t,l,e,r,n.concat(l,r.fontWeight,r.fontShape))}var h=le("textrm",r.fontWeight,r.fontShape);return ee(t,h,e,r,n.concat(r.fontWeight,r.fontShape))}throw new Error("unexpected type: "+i+" in mathDefault")},ne=function(t){return/[0-9]/.test(t.charAt(0))||H.contains(Qt,t)?{fontName:"Main-Italic",fontClass:"mainit"}:{fontName:"Math-Italic",fontClass:"mathit"}},ie=function(t){for(var e=0,r=0,n=0,i=0;ie&&(e=a.height),a.depth>r&&(r=a.depth),a.maxFontSize>n&&(n=a.maxFontSize)}t.height=e,t.depth=r,t.maxFontSize=n},ae=function(t,e,r,n){var i=new ot(t,e,r,n);return ie(i),i},oe=function(t,e,r,n){return new ot(t,e,r,n)},se=function(t){var e=new et(t);return ie(e),e},le=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")},he={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{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"}},me={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ce={fontMap:he,makeSymbol:ee,mathsym:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return r&&r.font&&"boldsymbol"===r.font&&te(t,"Main-Bold",e).metrics?ee(t,"Main-Bold",e,r,n.concat(["mathbf"])):"\\"===t||"main"===bt[e][t].font?ee(t,"Main-Regular",e,r,n):ee(t,"AMS-Regular",e,r,n.concat(["amsrm"]))},makeSpan:ae,makeSvgSpan:oe,makeLineSpan:function(t,e,r){var n=ae([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 i=new st(t,e,r,n);return ie(i),i},makeFragment:se,makeVList:function(t){for(var e=function(t){if("individualShift"===t.positionType){for(var e=t.children,r=[e[0]],n=-e[0].shift-e[0].elem.depth,i=n,a=1;a3&&void 0!==arguments[3]?arguments[3]:[null,null],i=[],a=0;a"},t.prototype.toText=function(){return this.children.map(function(t){return t.toText()}).join("")},t}(),Oe=function(){function t(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];T()(this,t),this.text=e,this.needsEscape=r}return t.prototype.toNode=function(){return document.createTextNode(this.toText())},t.prototype.toMarkup=function(){return this.toText()},t.prototype.toText=function(){return this.needsEscape?H.escape(this.text):this.text},t}(),Ie=function(){function t(e){T()(this,t),this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?"​":e>=-.1667&&e<=-.1666?"​":e>=-.2223&&e<=-.2222?"​":e>=-.2778&&e<=-.2777?"​":null}return t.prototype.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},t.prototype.toMarkup=function(){return this.character?""+this.character+"":''},t.prototype.toText=function(){return this.character?this.character:" "},t}(),qe={MathNode:Ee,TextNode:Oe,SpaceNode:Ie,newDocumentFragment:p},Re=function(t,e,r){return!bt[e][t]||!bt[e][t].replace||55349===t.charCodeAt(0)||Ct.hasOwnProperty(t)&&r&&(r.fontFamily&&"tt"===r.fontFamily.substr(4,2)||r.font&&"tt"===r.font.substr(4,2))||(t=bt[e][t].replace),new qe.TextNode(t)},_e=function(t){return 1===t.length?t[0]:new qe.MathNode("mrow",t)},Pe=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)return null;var n=t.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"bold-italic";var a=t.text;return H.contains(["\\imath","\\jmath"],a)?null:(bt[n][a]&&bt[n][a].replace&&(a=bt[n][a].replace),i(a,ce.fontMap[r].fontName,n)?ce.fontMap[r].variant:null)},Fe=function(t,e){for(var r=[],n=void 0,i=0;i5)"widehat"===n||"widecheck"===n?(a=420,r=2364,s=.42,o=n+"4"):(a=312,r=2340,s=.34,o="tilde4");else{var l=[1,1,2,2,3,3][i];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][l],a=[0,239,300,360,420][l],s=[0,.24,.3,.3,.36,.42][l],o=n+l):(r=[0,600,1033,2339,2340][l],a=[0,260,286,306,312][l],s=[0,.26,.286,.3,.306,.34][l],o="tilde"+l)}var h=new ct(o),m=new mt([h],{width:"100%",height:s+"em",viewBox:"0 0 "+r+" "+a,preserveAspectRatio:"none"});return{span:ce.makeSvgSpan([],[m],e),minWidth:0,height:s}}var c=[],u=Ue[n],d=u[0],p=u[1],f=u[2],g=f/1e3,v=d.length,y=void 0,x=void 0;if(1===v)y=["hide-tail"],x=[u[3]];else if(2===v)y=["halfarrow-left","halfarrow-right"],x=["xMinYMin","xMaxYMin"];else{if(3!==v)throw new Error("Correct katexImagesData or update code here to support\n "+v+" children.");y=["brace-left","brace-center","brace-right"],x=["xMinYMin","xMidYMin","xMaxYMin"]}for(var b=0;b0&&(n.style.minWidth=i+"em"),n},Ke=function(t,e){var r=void 0,n=void 0,i=s(t,"supsub"),a=void 0;i?(r=(n=o(i.base,"accent")).base,i.base=r,a=function(t){if(t instanceof ot)return t;throw new Error("Expected span but got "+String(t)+".")}(Ne(i,e)),i.base=n):r=(n=o(t,"accent")).base;var l=Ne(r,e.havingCrampedStyle()),h=0;if(n.isShifty&&H.isCharacterBox(r)){var m=H.getBaseElem(r);h=function(t){if(t instanceof ht)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}(Ne(m,e.havingCrampedStyle())).skew}var c=Math.min(l.height,e.fontMetrics().xHeight),u=void 0;if(n.isStretchy)u=$e(n,e),u=ce.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"elem",elem:u,wrapperClasses:["svg-align"],wrapperStyle:h>0?{width:"calc(100% - "+2*h+"em)",marginLeft:2*h+"em"}:void 0}]},e);else{var d=void 0,p=void 0;"\\vec"===n.label?(d=ce.staticSvg("vec",e),p=ce.svgData.vec[1]):((d=ce.makeSymbol(n.label,"Main-Regular",n.mode,e)).italic=0,p=d.width),u=ce.makeSpan(["accent-body"],[d]);var f="\\textcircled"===n.label;f&&(u.classes.push("accent-full"),c=l.height);var g=h;f||(g-=p/2),u.style.left=g+"em","\\textcircled"===n.label&&(u.style.top=".2em"),u=ce.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:-c},{type:"elem",elem:u}]},e)}var v=ce.makeSpan(["mord","accent"],[u],e);return a?(a.children[0]=v,a.height=Math.max(v.height,a.height),a.classes[0]="mord",a):v},Ze=function(t,e){var r=t.isStretchy?Ye(t.label):new qe.MathNode("mo",[Re(t.label,t.mode)]),n=new qe.MathNode("mover",[He(t.base,e),r]);return n.setAttribute("accent","true"),n},Je=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(t){return"\\"+t}).join("|"));m({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=!Je.test(t.funcName),i=!n||"\\widehat"===t.funcName||"\\widetilde"===t.funcName||"\\widecheck"===t.funcName;return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:Ke,mathmlBuilder:Ze}),m({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:Ke,mathmlBuilder:Ze}),m({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(t,e){var r=t.parser,n=t.funcName,i=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:function(t,e){var r=Ne(t.base,e),n=$e(t,e),i="\\utilde"===t.label?.12:0,a=ce.makeVList({positionType:"bottom",positionData:n.height+i,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]},e);return ce.makeSpan(["mord","accentunder"],[a],e)},mathmlBuilder:function(t,e){var r=Ye(t.label),n=new qe.MathNode("munder",[He(t.base,e),r]);return n.setAttribute("accentunder","true"),n}}),m({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,i=t.funcName;return{type:"xArrow",mode:n.mode,label:i,body:e[0],below:r[0]}},htmlBuilder:function(t,e){var r=e.style,n=e.havingStyle(r.sup()),i=Ne(t.body,n,e);i.classes.push("x-arrow-pad");var a=void 0;t.below&&(n=e.havingStyle(r.sub()),(a=Ne(t.below,n,e)).classes.push("x-arrow-pad"));var o=$e(t,e),s=-e.fontMetrics().axisHeight+.5*o.height,l=-e.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||"\\xleftequilibrium"===t.label)&&(l-=i.depth);var h=void 0;if(a){var m=-e.fontMetrics().axisHeight+a.height+.5*o.height+.111;h=ce.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:s},{type:"elem",elem:a,shift:m}]},e)}else h=ce.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:s}]},e);return h.children[0].children[0].children[1].classes.push("svg-align"),ce.makeSpan(["mrel","x-arrow"],[h],e)},mathmlBuilder:function(t,e){var r=Ye(t.label),n=void 0,i=void 0;if(t.body){var a=He(t.body,e);t.below?(i=He(t.below,e),n=new qe.MathNode("munderover",[r,i,a])):n=new qe.MathNode("mover",[r,a])}else t.below?(i=He(t.below,e),n=new qe.MathNode("munder",[r,i])):n=new qe.MathNode("mover",[r]);return n}}),m({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){for(var r=t.parser,n=o(e[0],"ordgroup").body,i="",a=0;a","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],cr=[0,1.2,1.8,2.4,3],ur=[{type:"small",style:Z.SCRIPTSCRIPT},{type:"small",style:Z.SCRIPT},{type:"small",style:Z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],dr=[{type:"small",style:Z.SCRIPTSCRIPT},{type:"small",style:Z.SCRIPT},{type:"small",style:Z.TEXT},{type:"stack"}],pr=[{type:"small",style:Z.SCRIPTSCRIPT},{type:"small",style:Z.SCRIPT},{type:"small",style:Z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],fr=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.")},gr=function(t,e,r,n){for(var i=Math.min(2,3-n.style.size);ie)return r[i]}return r[r.length-1]},vr=function(t,e,r,n,i,a){"<"===t||"\\lt"===t||"\u27e8"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"\u27e9"!==t||(t="\\rangle");var o=void 0;o=H.contains(mr,t)?ur:H.contains(lr,t)?pr:dr;var s=gr(t,e,o,n);return"small"===s.type?function(t,e,r,n,i,a){var o=ce.makeSymbol(t,"Main-Regular",i,n),s=rr(o,e,n,a);return r&&nr(s,n,e),s}(t,s.style,r,n,i,a):"large"===s.type?ir(t,s.size,r,n,i,a):or(t,e,r,n,i,a)},yr=function(t,e){var r=e.havingBaseSizing(),n=gr("\\surd",t*r.sizeMultiplier,pr,r),i=r.sizeMultiplier,a=void 0,o=0,s=0,l=0,h=void 0;return"small"===n.type?(l=1080,t<1?i=1:t<1.4&&(i=.7),s=1/i,(a=sr("sqrtMain",o=1.08/i,l,e)).style.minWidth="0.853em",h=.833/i):"large"===n.type?(l=1080*cr[n.size],s=cr[n.size]/i,o=(cr[n.size]+.08)/i,(a=sr("sqrtSize"+n.size,o,l,e)).style.minWidth="1.02em",h=1/i):(o=t+.08,s=t,l=Math.floor(1e3*t)+80,(a=sr("sqrtTall",o,l,e)).style.minWidth="0.742em",h=1.056),a.height=s,a.style.height=o+"em",{span:a,advanceWidth:h,ruleWidth:e.fontMetrics().sqrtRuleThickness*i}},xr=function(t,e,r,n,i){if("<"===t||"\\lt"===t||"\u27e8"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"\u27e9"!==t||(t="\\rangle"),H.contains(lr,t)||H.contains(mr,t))return ir(t,e,!1,r,n,i);if(H.contains(hr,t))return or(t,cr[e],!1,r,n,i);throw new N("Illegal delimiter: '"+t+"'")},br=vr,wr=function(t,e,r,n,i,a){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,l=Math.max(e-o,r+o),h=Math.max(l/500*901,2*l-s);return vr(t,h,!0,n,i,a)},kr={"\\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}},Sr=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];m({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=f(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:kr[t.funcName].size,mclass:kr[t.funcName].mclass,delim:r.text}},htmlBuilder:function(t,e){return"."===t.delim?ce.makeSpan([t.mclass]):xr(t.delim,t.size,e,t.mode,[t.mclass])},mathmlBuilder:function(t){var e=[];"."!==t.delim&&e.push(Re(t.delim,t.mode));var r=new qe.MathNode("mo",e);return"mopen"===t.mclass||"mclose"===t.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r}}),m({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(t,e){return{type:"leftright-right",mode:t.parser.mode,delim:f(e[0],t).text}}}),m({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(t,e){var r=f(e[0],t),n=t.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=n.parseFunction();if(!a)throw new N("failed to parse function after \\right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:o(a,"leftright-right").delim}},htmlBuilder:function(t,e){g(t);for(var r=ze(t.body,e,!0,[null,"mclose"]),n=0,i=0,a=!1,o=0;o0?3*u:7*u,f=e.fontMetrics().denom1):(c>0?(d=e.fontMetrics().num2,p=u):(d=e.fontMetrics().num3,p=3*u),f=e.fontMetrics().denom2);var g=void 0;if(m){var v=e.fontMetrics().axisHeight;d-o.depth-(v+.5*c)0&&(e="."===(e=t)?null:e),e};m({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],i=e[5],a=s(e[0],"ordgroup");a=l(a?a.body[0]:e[0],"open");var h=Ir(a.text),m=s(e[1],"ordgroup");m=l(m?m.body[0]:e[1],"close");var c=Ir(m.text),u=o(e[2],"size"),d=void 0,p=null;d=!!u.isBlank||(p=u.value).number>0;var f="auto",g=s(e[3],"ordgroup");if(g){if(g.body.length>0){var v=o(g.body[0],"textord");f=Or[Number(v.text)]}}else g=o(e[3],"textord"),f=Or[Number(g.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:d,barSize:p,leftDelim:h,rightDelim:c,size:f}},htmlBuilder:Nr,mathmlBuilder:Er}),m({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:o(e[0],"size").value,token:n}}}),m({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(t,e){var r=t.parser,n=(t.funcName,e[0]),i=D(o(e[1],"infix").size),a=e[2],s=i.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Nr,mathmlBuilder:Er});var qr=function(t,e){var r=e.style,n=void 0,i=void 0,a=s(t,"supsub");a?(n=a.sup?Ne(a.sup,e.havingStyle(r.sup()),e):Ne(a.sub,e.havingStyle(r.sub()),e),i=o(a.base,"horizBrace")):i=o(t,"horizBrace");var l=Ne(i.base,e.havingBaseStyle(Z.DISPLAY)),h=$e(i,e),m=void 0;if(i.isOver?(m=ce.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:h}]},e)).children[0].children[0].children[1].classes.push("svg-align"):(m=ce.makeVList({positionType:"bottom",positionData:l.depth+.1+h.height,children:[{type:"elem",elem:h},{type:"kern",size:.1},{type:"elem",elem:l}]},e)).children[0].children[0].children[0].classes.push("svg-align"),n){var c=ce.makeSpan(["mord",i.isOver?"mover":"munder"],[m],e);m=i.isOver?ce.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:n}]},e):ce.makeVList({positionType:"bottom",positionData:c.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:c}]},e)}return ce.makeSpan(["mord",i.isOver?"mover":"munder"],[m],e)};m({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:qr,mathmlBuilder:function(t,e){var r=Ye(t.label);return new qe.MathNode(t.isOver?"mover":"munder",[He(t.base,e),r])}}),m({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(t,e){var r=t.parser,n=e[1],i=o(e[0],"url").url;return{type:"href",mode:r.mode,href:i,body:be(n)}},htmlBuilder:function(t,e){var r=ze(t.body,e,!1);return ce.makeAnchor(t.href,[],r,e)},mathmlBuilder:function(t,e){var r=De(t.body,e);return function(t,e){if(t instanceof e)return t;var r=String(e.name||e),n=String(t.constructor.name||t);throw new Error("Expected "+r+" but got "+n+".")}(r,Ee).setAttribute("href",t.href),r}}),m({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(t,e){for(var r=t.parser,n=o(e[0],"url").url,i=[],a=0;a0){var p=c.italic,f=ce.staticSvg(d+"Size"+(m?"2":"1"),e);c=ce.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:f,shift:m?.08:0}]},e),a.name="\\"+d,c.classes.unshift("mop"),c.italic=p}}else if(a.body){var g=ze(a.body,e,!0);1===g.length&&g[0]instanceof ht?(c=g[0]).classes[0]="mop":c=ce.makeSpan(["mop"],g,e)}else{for(var v=[],y=1;y0){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=ze(r,e.withFont("mathrm"),!0),i=0;ir.height+r.depth+a&&(a=(a+c-r.height-r.depth)/2);var u=l.height-r.height-a-h;r.style.paddingLeft=m+"em";var d=ce.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+u)},{type:"elem",elem:l},{type:"kern",size:h}]},e);if(t.index){var p=e.havingStyle(Z.SCRIPTSCRIPT),f=Ne(t.index,p,e),g=.6*(d.height-d.depth),v=ce.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]},e),y=ce.makeSpan(["root"],[v]);return ce.makeSpan(["mord","sqrt"],[y,d],e)}return ce.makeSpan(["mord","sqrt"],[d],e)},mathmlBuilder:function(t,e){var r=t.body,n=t.index;return n?new qe.MathNode("mroot",[He(r,e),He(n,e)]):new qe.MathNode("msqrt",[He(r,e)])}});var jr={display:Z.DISPLAY,text:Z.TEXT,script:Z.SCRIPT,scriptscript:Z.SCRIPTSCRIPT};m({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(t){var e=t.breakOnTokenText,r=t.funcName,n=t.parser;n.consumeSpaces();var i=n.parseExpression(!0,e),a=r.slice(1,r.length-5);return{type:"styling",mode:n.mode,style:a,body:i}},htmlBuilder:function(t,e){var r=jr[t.style],n=e.havingStyle(r).withFont("");return x(t.body,n,e)},mathmlBuilder:function(t,e){var r={display:Z.DISPLAY,text:Z.TEXT,script:Z.SCRIPT,scriptscript:Z.SCRIPTSCRIPT}[t.style],n=e.havingStyle(r),i=Fe(t.body,n),a=new qe.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[t.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}}),c({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===Z.DISPLAY.size||r.alwaysHandleSupSub)?_r:null:"accent"===r.type?H.isCharacterBox(r.base)?Ke:null:"horizBrace"===r.type&&!t.sub===r.isOver?qr:null:null}(t,e);if(r)return r(t,e);var n=t.base,i=t.sup,a=t.sub,o=Ne(n,e),s=void 0,l=void 0,h=e.fontMetrics(),m=0,c=0,u=n&&H.isCharacterBox(n);if(i){var d=e.havingStyle(e.style.sup());s=Ne(i,d,e),u||(m=o.height-d.fontMetrics().supDrop*d.sizeMultiplier/e.sizeMultiplier)}if(a){var p=e.havingStyle(e.style.sub());l=Ne(a,p,e),u||(c=o.depth+p.fontMetrics().subDrop*p.sizeMultiplier/e.sizeMultiplier)}var f=void 0;f=e.style===Z.DISPLAY?h.sup1:e.style.cramped?h.sup3:h.sup2;var g=e.sizeMultiplier,v=.5/h.ptPerEm/g+"em",y=null;if(l){var x=t.base&&"op"===t.base.type&&t.base.name&&("\\oiint"===t.base.name||"\\oiiint"===t.base.name);(o instanceof ht||x)&&(y=-o.italic+"em")}var b=void 0;if(s&&l){m=Math.max(m,f,s.depth+.25*h.xHeight),c=Math.max(c,h.sub2);var w=4*h.defaultRuleThickness;if(m-s.depth-(l.height-c)0&&(m+=k,c-=k)}var S=[{type:"elem",elem:l,shift:c,marginRight:v,marginLeft:y},{type:"elem",elem:s,shift:-m,marginRight:v}];b=ce.makeVList({positionType:"individualShift",children:S},e)}else if(l){c=Math.max(c,h.sub1,l.height-.8*h.xHeight);var M=[{type:"elem",elem:l,marginLeft:y,marginRight:v}];b=ce.makeVList({positionType:"shift",positionData:c,children:M},e)}else{if(!s)throw new Error("supsub must have either sup or sub.");m=Math.max(m,f,s.depth+.25*h.xHeight),b=ce.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:s,marginRight:v}]},e)}var A=Ce(o,"right")||"mord";return ce.makeSpan([A],[o,ce.makeSpan(["msupsub"],[b])],e)},mathmlBuilder:function(t,e){var r=!1,n=void 0,i=s(t.base,"horizBrace");i&&!!t.sup===i.isOver&&(r=!0,n=i.isOver);var a=[He(t.base,e)];t.sub&&a.push(He(t.sub,e)),t.sup&&a.push(He(t.sup,e));var o=void 0;if(r)o=n?"mover":"munder";else if(t.sub)if(t.sup){var l=t.base;o=l&&"op"===l.type&&l.limits&&e.style===Z.DISPLAY?"munderover":"msubsup"}else{var h=t.base;o=h&&"op"===h.type&&h.limits&&e.style===Z.DISPLAY?"munder":"msub"}else{var m=t.base;o=m&&"op"===m.type&&m.limits&&e.style===Z.DISPLAY?"mover":"msup"}return new qe.MathNode(o,a)}}),c({type:"atom",htmlBuilder:function(t,e){return ce.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder:function(t,e){var r=new qe.MathNode("mo",[Re(t.text,t.mode)]);if("bin"===t.family){var n=Pe(t,e);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===t.family&&r.setAttribute("separator","true");return r}});var Gr={mi:"italic",mn:"normal",mtext:"normal"};c({type:"mathord",htmlBuilder:function(t,e){return ce.makeOrd(t,e,"mathord")},mathmlBuilder:function(t,e){var r=new qe.MathNode("mi",[Re(t.text,t.mode,e)]),n=Pe(t,e)||"italic";return n!==Gr[r.type]&&r.setAttribute("mathvariant",n),r}}),c({type:"textord",htmlBuilder:function(t,e){return ce.makeOrd(t,e,"textord")},mathmlBuilder:function(t,e){var r=Re(t.text,t.mode,e),n=Pe(t,e)||"normal",i=void 0;return i="text"===t.mode?new qe.MathNode("mtext",[r]):/[0-9]/.test(t.text)?new qe.MathNode("mn",[r]):"\\prime"===t.text?new qe.MathNode("mo",[r]):new qe.MathNode("mi",[r]),n!==Gr[i.type]&&i.setAttribute("mathvariant",n),i}}),c({type:"spacing",htmlBuilder:function(t,e){if(ce.regularSpace.hasOwnProperty(t.text)){var r=ce.regularSpace[t.text].className||"";if("text"===t.mode){var n=ce.makeOrd(t,e,"textord");return n.classes.push(r),n}return ce.makeSpan(["mspace",r],[ce.mathsym(t.text,t.mode,e)],e)}if(ce.cssSpace.hasOwnProperty(t.text))return ce.makeSpan(["mspace",ce.cssSpace[t.text]],[],e);throw new N('Unknown type of space "'+t.text+'"')},mathmlBuilder:function(t){if(!ce.regularSpace.hasOwnProperty(t.text)){if(ce.cssSpace.hasOwnProperty(t.text))return new qe.MathNode("mspace");throw new N('Unknown type of space "'+t.text+'"')}return new qe.MathNode("mtext",[new qe.TextNode("\xa0")])}}),c({type:"tag",mathmlBuilder:function(t,e){var r=new qe.MathNode("mtable",[new qe.MathNode("mlabeledtr",[new qe.MathNode("mtd",[De(t.tag,e)]),new qe.MathNode("mtd",[De(t.body,e)])])]);return r.setAttribute("side","right"),r}});var Ur={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Wr={"\\textbf":"textbf"},Xr={"\\textit":"textit"},Yr=function(t,e){var r=t.font;return r?Ur[r]?e.withTextFontFamily(Ur[r]):Wr[r]?e.withTextFontWeight(Wr[r]):e.withTextFontShape(Xr[r]):e};m({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,i=e[0];return{type:"text",mode:r.mode,body:be(i),font:n}},htmlBuilder:function(t,e){var r=Yr(t,e),n=ze(t.body,r,!0);return ce.tryCombineChars(n),ce.makeSpan(["mord","text"],n,r)},mathmlBuilder:function(t,e){var r=Yr(t,e);return De(t.body,r)}}),m({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=Ne(t.body,e),n=ce.makeLineSpan("underline-line",e),i=ce.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 ce.makeSpan(["mord","underline"],[i],e)},mathmlBuilder:function(t,e){var r=new qe.MathNode("mo",[new qe.TextNode("\u203e")]);r.setAttribute("stretchy","true");var n=new qe.MathNode("munder",[He(t.body,e),r]);return n.setAttribute("accentunder","true"),n}}),m({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(){throw new N("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(t,e){for(var r=ce.makeVerb(t,e),n=[],i=e.havingStyle(e.style.text()),a=0;a0&&(v+=.25),h.push({pos:v,isDashed:t[e]})}var n=void 0,i=void 0,a=t.body.length,o=t.hLinesBeforeRow,s=0,l=new Array(a),h=[],m=1/e.fontMetrics().ptPerEm,c=5*m,u=12*m,d=3*m,p=t.arraystretch*u,f=.7*p,g=.3*p,v=0;for(r(o[0]),n=0;n0&&(b<(M+=g)&&(b=M),M=0),t.addJot&&(b+=d),w.height=x,w.depth=b,v+=x,w.pos=v,v+=b+M,l[n]=w,r(o[n+1])}var A=v/2+e.fontMetrics().axisHeight,z=t.cols||[],T=[],C=void 0,B=void 0;for(i=0,B=0;i=s)){var q=void 0;(i>0||t.hskipBeforeAndAfter)&&0!==(q=H.deflt(L.pregap,c))&&((C=ce.makeSpan(["arraycolsep"],[])).style.width=q+"em",T.push(C));var R=[];for(n=0;n0){for(var D=ce.makeLineSpan("hline",e,.05),V=ce.makeLineSpan("hdashline",e,.05),j=[{type:"elem",elem:l,shift:0}];h.length>0;){var G=h.pop(),U=G.pos-A;G.isDashed?j.push({type:"elem",elem:V,shift:U}):j.push({type:"elem",elem:D,shift:U})}l=ce.makeVList({positionType:"individualShift",children:j},e)}return ce.makeSpan(["mord"],[l],e)},Jr=function(t,e){return new qe.MathNode("mtable",t.body.map(function(t){return new qe.MathNode("mtr",t.map(function(t){return new qe.MathNode("mtd",[He(t,e)])}))}))},Qr=function(t,e){var r=[],n=k(t.parser,{cols:r,addJot:!0},"display"),i=void 0,a=0,l={type:"ordgroup",mode:t.mode,body:[]},h=s(e[0],"ordgroup");if(h){for(var m="",c=0;c0&&u&&(f=1),r[d]={type:"align",align:p,pregap:f,postgap:0}}return n};b({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(t,e){var r={cols:(h(e[0])?[e[0]]:o(e[0],"ordgroup").body).map(function(t){var e=function(t){var e=h(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 N("Unknown column alignment: "+e,t)}),hskipBeforeAndAfter:!0};return k(t.parser,r,S(t.envName))},htmlBuilder:Zr,mathmlBuilder:Jr}),b({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=k(t.parser,{hskipBeforeAndAfter:!1},S(t.envName));return e?{type:"leftright",mode:t.mode,body:[r],left:e[0],right:e[1]}:r},htmlBuilder:Zr,mathmlBuilder:Jr}),b({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(t){var e=k(t.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},S(t.envName));return{type:"leftright",mode:t.mode,body:[e],left:"\\{",right:"."}},htmlBuilder:Zr,mathmlBuilder:Jr}),b({type:"array",names:["aligned"],props:{numArgs:0},handler:Qr,htmlBuilder:Zr,mathmlBuilder:Jr}),b({type:"array",names:["gathered"],props:{numArgs:0},handler:function(t){return k(t.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:Zr,mathmlBuilder:Jr}),b({type:"array",names:["alignedat"],props:{numArgs:1},handler:Qr,htmlBuilder:Zr,mathmlBuilder:Jr}),m({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(t){throw new N(t.funcName+" valid only within array environment")}});var tn=Kr,en=new RegExp("^(\\\\[a-zA-Z@]+)[ \r\n\t]*$"),rn=new RegExp("[\u0300-\u036f]+$"),nn="(\\\\href|\\\\url)(?:[ \r\n\t]*\\{((?:[^{}\\\\]|\\\\[^]|{[^{}]*})*)\\}|[ \r\n\t]+([^{}])|[ \r\n\t]*([^{}a-zA-Z]))",an="([ \r\n\t]+)|(%[^\n]*(?:\n|$)|[!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff][\u0300-\u036f]*|[\ud800-\udbff][\udc00-\udfff][\u0300-\u036f]*|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|"+nn+"|\\\\[a-zA-Z@]+[ \r\n\t]*|\\\\[^\ud800-\udfff])",on=(new RegExp("^\\\\[a-zA-Z@]+"),new RegExp("^"+nn)),sn=function(){function t(e,r){T()(this,t),this.input=e,this.settings=r,this.tokenRegex=new RegExp(an,"g")}return t.prototype.lex=function(){var t=this.input,e=this.tokenRegex.lastIndex;if(e===t.length)return new B("EOF",new C(this,e,e));var r=this.tokenRegex.exec(t);if(null===r||r.index!==e)throw new N("Unexpected character: '"+t[e]+"'",new B(t[e],new C(this,e,e+1)));var n=r[2]||" ",i=n.match(en);return i&&(n=i[1]+n.slice(i[0].length)),"%"===n[0]?("\n"!==n[n.length-1]&&this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)"),this.lex()):new B(n,new C(this,e,this.tokenRegex.lastIndex))},t}(),ln=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};T()(this,t),this.current=r,this.builtins=e,this.undefStack=[]}return t.prototype.beginGroup=function(){this.undefStack.push({})},t.prototype.endGroup=function(){if(0===this.undefStack.length)throw new N("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var e in t)t.hasOwnProperty(e)&&(void 0===t[e]?delete this.current[e]:this.current[e]=t[e])},t.prototype.has=function(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)},t.prototype.get=function(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]},t.prototype.set=function(t,e){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][t]=e)}else{var n=this.undefStack[this.undefStack.length-1];n&&!n.hasOwnProperty(t)&&(n[t]=this.current[t])}this.current[t]=e},t}(),hn={},mn=hn;M("\\@firstoftwo",function(t){return{tokens:t.consumeArgs(2)[0],numArgs:0}}),M("\\@secondoftwo",function(t){return{tokens:t.consumeArgs(2)[1],numArgs:0}}),M("\\@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}}),M("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),M("\\TextOrMath",function(t){var e=t.consumeArgs(2);return"text"===t.mode?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var cn={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};M("\\char",function(t){var e=t.popToken(),r=void 0,n="";if("'"===e.text)r=8,e=t.popToken();else if('"'===e.text)r=16,e=t.popToken();else if("`"===e.text)if("\\"===(e=t.popToken()).text[0])n=e.text.charCodeAt(1);else{if("EOF"===e.text)throw new N("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(null==(n=cn[e.text])||n>=r)throw new N("Invalid base-"+r+" digit "+e.text);for(var i=void 0;null!=(i=cn[t.future().text])&&i":"\\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"};M("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in pn?e=pn[r]:"\\not"===r.substr(0,4)?e="\\dotsb":r in bt.math&&H.contains(["bin","rel"],bt.math[r].group)&&(e="\\dotsb"),e});var fn={")":!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};M("\\dotso",function(t){return t.future().text in fn?"\\ldots\\,":"\\ldots"}),M("\\dotsc",function(t){var e=t.future().text;return e in fn&&","!==e?"\\ldots\\,":"\\ldots"}),M("\\cdots",function(t){return t.future().text in fn?"\\@cdots\\,":"\\@cdots"}),M("\\dotsb","\\cdots"),M("\\dotsm","\\cdots"),M("\\dotsi","\\!\\cdots"),M("\\dotsx","\\ldots\\,"),M("\\DOTSI","\\relax"),M("\\DOTSB","\\relax"),M("\\DOTSX","\\relax"),M("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),M("\\,","\\tmspace+{3mu}{.1667em}"),M("\\thinspace","\\,"),M("\\:","\\tmspace+{4mu}{.2222em}"),M("\\medspace","\\:"),M("\\;","\\tmspace+{5mu}{.2777em}"),M("\\thickspace","\\;"),M("\\!","\\tmspace-{3mu}{.1667em}"),M("\\negthinspace","\\!"),M("\\negmedspace","\\tmspace-{4mu}{.2222em}"),M("\\negthickspace","\\tmspace-{5mu}{.277em}"),M("\\enspace","\\kern.5em "),M("\\enskip","\\hskip.5em\\relax"),M("\\quad","\\hskip1em\\relax"),M("\\qquad","\\hskip2em\\relax"),M("\\tag","\\@ifstar\\tag@literal\\tag@paren"),M("\\tag@paren","\\tag@literal{({#1})}"),M("\\tag@literal",function(t){if(t.macros.get("\\df@tag"))throw new N("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),M("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),M("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),M("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),M("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),M("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\mathrlap{\\mkern0.4mu\\raisebox{0.4mu}{$#1$}}{\\mkern0.8mu#1}}}{\\mathbf{#1}}"),M("\\\\","\\newline"),M("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var gn=dt["Main-Regular"]["T".charCodeAt(0)][1]-.7*dt["Main-Regular"]["A".charCodeAt(0)][1]+"em";M("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+gn+"}{\\scriptsize A}\\kern-.15em\\TeX}{LaTeX}}"),M("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+gn+"}{\\scriptsize A}\\kern-.15em\\TeX}{KaTeX}}"),M("\\hspace","\\@ifstar\\@hspacer\\@hspace"),M("\\@hspace","\\hskip #1\\relax"),M("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),M("\\ordinarycolon",":"),M("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),M("\\dblcolon","\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}"),M("\\coloneqq","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}"),M("\\Coloneqq","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}"),M("\\coloneq","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}"),M("\\Coloneq","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}"),M("\\eqqcolon","\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),M("\\Eqqcolon","\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}"),M("\\eqcolon","\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),M("\\Eqcolon","\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"),M("\\colonapprox","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}"),M("\\Colonapprox","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}"),M("\\colonsim","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}"),M("\\Colonsim","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}"),M("\u2254","\\coloneqq"),M("\u2255","\\eqqcolon"),M("\u2a74","\\Coloneqq"),M("\\ratio","\\vcentcolon"),M("\\coloncolon","\\dblcolon"),M("\\colonequals","\\coloneqq"),M("\\coloncolonequals","\\Coloneqq"),M("\\equalscolon","\\eqqcolon"),M("\\equalscoloncolon","\\Eqqcolon"),M("\\colonminus","\\coloneq"),M("\\coloncolonminus","\\Coloneq"),M("\\minuscolon","\\eqcolon"),M("\\minuscoloncolon","\\Eqcolon"),M("\\coloncolonapprox","\\Colonapprox"), M("\\coloncolonsim","\\Colonsim"),M("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),M("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),M("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),M("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),M("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),M("\\limsup","\\DOTSB\\mathop{\\operatorname{lim\\,sup}}\\limits"),M("\\liminf","\\DOTSB\\mathop{\\operatorname{lim\\,inf}}\\limits"),M("\\darr","\\downarrow"),M("\\dArr","\\Downarrow"),M("\\Darr","\\Downarrow"),M("\\lang","\\langle"),M("\\rang","\\rangle"),M("\\uarr","\\uparrow"),M("\\uArr","\\Uparrow"),M("\\Uarr","\\Uparrow"),M("\\N","\\mathbb{N}"),M("\\R","\\mathbb{R}"),M("\\Z","\\mathbb{Z}"),M("\\alef","\\aleph"),M("\\alefsym","\\aleph"),M("\\Alpha","\\mathrm{A}"),M("\\Beta","\\mathrm{B}"),M("\\bull","\\bullet"),M("\\Chi","\\mathrm{X}"),M("\\clubs","\\clubsuit"),M("\\cnums","\\mathbb{C}"),M("\\Complex","\\mathbb{C}"),M("\\Dagger","\\ddagger"),M("\\diamonds","\\diamondsuit"),M("\\empty","\\emptyset"),M("\\Epsilon","\\mathrm{E}"),M("\\Eta","\\mathrm{H}"),M("\\exist","\\exists"),M("\\harr","\\leftrightarrow"),M("\\hArr","\\Leftrightarrow"),M("\\Harr","\\Leftrightarrow"),M("\\hearts","\\heartsuit"),M("\\image","\\Im"),M("\\infin","\\infty"),M("\\Iota","\\mathrm{I}"),M("\\isin","\\in"),M("\\Kappa","\\mathrm{K}"),M("\\larr","\\leftarrow"),M("\\lArr","\\Leftarrow"),M("\\Larr","\\Leftarrow"),M("\\lrarr","\\leftrightarrow"),M("\\lrArr","\\Leftrightarrow"),M("\\Lrarr","\\Leftrightarrow"),M("\\Mu","\\mathrm{M}"),M("\\natnums","\\mathbb{N}"),M("\\Nu","\\mathrm{N}"),M("\\Omicron","\\mathrm{O}"),M("\\plusmn","\\pm"),M("\\rarr","\\rightarrow"),M("\\rArr","\\Rightarrow"),M("\\Rarr","\\Rightarrow"),M("\\real","\\Re"),M("\\reals","\\mathbb{R}"),M("\\Reals","\\mathbb{R}"),M("\\Rho","\\mathrm{R}"),M("\\sdot","\\cdot"),M("\\sect","\\S"),M("\\spades","\\spadesuit"),M("\\sub","\\subset"),M("\\sube","\\subseteq"),M("\\supe","\\supseteq"),M("\\Tau","\\mathrm{T}"),M("\\thetasym","\\vartheta"),M("\\weierp","\\wp"),M("\\Zeta","\\mathrm{Z}");var vn={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},yn=function(){function t(e,r,n){T()(this,t),this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new ln(mn,r.macros),this.mode=n,this.stack=[]}return t.prototype.feed=function(t){this.lexer=new sn(t,this.settings)},t.prototype.switchMode=function(t){this.mode=t},t.prototype.beginGroup=function(){this.macros.beginGroup()},t.prototype.endGroup=function(){this.macros.endGroup()},t.prototype.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.prototype.popToken=function(){return this.future(),this.stack.pop()},t.prototype.pushToken=function(t){this.stack.push(t)},t.prototype.pushTokens=function(t){var e;(e=this.stack).push.apply(e,t)},t.prototype.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.prototype.consumeArgs=function(t){for(var e=[],r=0;rthis.settings.maxExpand)throw new N("Too many expansions: infinite loop or need to increase maxExpand setting");var n=r.tokens;if(r.numArgs)for(var i=this.consumeArgs(r.numArgs),a=(n=n.slice()).length-1;a>=0;--a){var o=n[a];if("#"===o.text){if(0===a)throw new N("Incomplete placeholder at end of macro body",o);if("#"===(o=n[--a]).text)n.splice(a+1,1);else{if(!/^[1-9]$/.test(o.text))throw new N("Not a valid argument number",o);var s;(s=n).splice.apply(s,[a,2].concat(i[+o.text-1]))}}}return this.pushTokens(n),n},t.prototype.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.prototype.expandNextToken=function(){for(;;){var t=this.expandOnce();if(t instanceof B){if("\\relax"!==t.text)return this.stack.pop();this.stack.pop()}}throw new Error},t.prototype.expandMacro=function(t){if(this.macros.get(t)){var e=[],r=this.stack.length;for(this.pushToken(new B(t));this.stack.length>r;)this.expandOnce()instanceof B&&e.push(this.stack.pop());return e}},t.prototype.expandMacroAsText=function(t){var e=this.expandMacro(t);return e?e.map(function(t){return t.text}).join(""):e},t.prototype._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 i=r.replace(/##/g,"");-1!==i.indexOf("#"+(n+1));)++n;for(var a=new sn(r,this.settings),o=[],s=a.lex();"EOF"!==s.text;)o.push(s),s=a.lex();return o.reverse(),{tokens:o,numArgs:n}}return r},t.prototype.isDefined=function(t){return this.macros.has(t)||$r.hasOwnProperty(t)||bt.math.hasOwnProperty(t)||bt.text.hasOwnProperty(t)||vn.hasOwnProperty(t)},t}(),xn={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"}},bn={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\u010f":"d\u030c","\u1e0b":"d\u0307","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u013a":"l\u0301","\u013e":"l\u030c","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\u010e":"D\u030c","\u1e0a":"D\u0307","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0139":"L\u0301","\u013d":"L\u030c","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u0164":"T\u030c","\u1e6a":"T\u0307","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"},wn=function(){function t(e,r){T()(this,t),this.mode="math",this.gullet=new yn(e,r,this.mode),this.settings=r,this.leftrightDepth=0}return t.prototype.expect=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.nextToken.text!==t)throw new N("Expected '"+t+"', got '"+this.nextToken.text+"'",this.nextToken);e&&this.consume()},t.prototype.consume=function(){this.nextToken=this.gullet.expandNextToken()},t.prototype.switchMode=function(t){this.mode=t,this.gullet.switchMode(t)},t.prototype.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},t.prototype.parseExpression=function(e,r){for(var n=[];;){"math"===this.mode&&this.consumeSpaces();var i=this.nextToken;if(-1!==t.endOfExpression.indexOf(i.text))break;if(r&&i.text===r)break;if(e&&$r[i.text]&&$r[i.text].infix)break;var a=this.parseAtom(r);if(!a){if(!this.settings.throwOnError&&"\\"===i.text[0]){var o=this.handleUnsupportedCmd();n.push(o);continue}break}n.push(a)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)},t.prototype.handleInfixNodes=function(t){for(var e=-1,r=void 0,n=0;nt.SUPSUB_GREEDINESS)return this.parseGivenFunction(i);throw new N("Got function '"+i.result+"' with no arguments as "+e,r)}return i.result},t.prototype.handleUnsupportedCmd=function(){for(var t=this.nextToken.text,e=[],r=0;r0&&!l&&this.consumeSpaces(),0!==o||l||"math"!==this.mode||this.consumeSpaces();var h=this.nextToken,m=s?this.parseGroupOfType(s,l):this.parseGroup(l);if(!m){if(l){a.push(null);continue}if(this.settings.throwOnError||"\\"!==this.nextToken.text[0])throw new N("Expected group after '"+t+"'",h);m=A(this.handleUnsupportedCmd(),h)}var c=void 0;if("fn"===m.type){if(!($r[m.result].greediness>n))throw new N("Got function '"+m.result+"' as argument to '"+t+"'",h);c=this.parseGivenFunction(m)}else c=m.result;(l?a:i).push(c)}return{args:i,optArgs:a}},t.prototype.parseGroupOfType=function(t,e){if("original"===t&&(t=this.mode),"color"===t)return this.parseColorGroup(e);if("size"===t)return this.parseSizeGroup(e);if("url"===t)throw new N("Internal bug: 'url' arguments should be handled by Lexer",this.nextToken);return this.parseGroup(e,t)},t.prototype.consumeSpaces=function(){for(;" "===this.nextToken.text;)this.consume()},t.prototype.parseStringGroup=function(t,e){if(e&&"["!==this.nextToken.text)return null;var r=this.mode;this.mode="text",this.expect(e?"[":"{");for(var n="",i=this.nextToken,a=i;this.nextToken.text!==(e?"]":"}");){if("EOF"===this.nextToken.text)throw new N("Unexpected end of input in "+t,i.range(this.nextToken,n));n+=(a=this.nextToken).text,this.consume()}return this.mode=r,this.expect(e?"]":"}"),i.range(a,n)},t.prototype.parseRegexGroup=function(t,e){var r=this.mode;this.mode="text";for(var n=this.nextToken,i=n,a="";"EOF"!==this.nextToken.text&&t.test(a+this.nextToken.text);)a+=(i=this.nextToken).text,this.consume();if(""===a)throw new N("Invalid "+e+": '"+n.text+"'",n);return this.mode=r,n.range(i,a)},t.prototype.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 N("Invalid color: '"+e.text+"'",e);return A({type:"color-token",mode:this.mode,color:r[0]},e)},t.prototype.parseSizeGroup=function(t){var e=void 0,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 N("Invalid size: '"+e.text+"'",e);var i={number:+(n[1]+n[2]),unit:n[3]};if(!function(t){return"string"!=typeof t&&(t=t.unit),t in Kt||t in Zt||"ex"===t}(i))throw new N("Invalid unit: '"+i.unit+"'",e);return A({type:"size",mode:this.mode,value:i,isBlank:r},e)},t.prototype.parseGroup=function(t,e){var r=this.mode,n=this.nextToken;if(this.nextToken.text===(t?"[":"{")){e&&this.switchMode(e),this.gullet.beginGroup(),this.consume();var i=this.parseExpression(!1,t?"]":"}"),a=this.nextToken;return e&&this.switchMode(r),this.gullet.endGroup(),this.expect(t?"]":"}"),A({type:"ordgroup",mode:this.mode,loc:C.range(n,a),body:i},n.range(a,n.text))}e&&this.switchMode(e);var o=t?null:this.parseSymbol();return e&&this.switchMode(r),o},t.prototype.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 p=bt[this.mode][e].group,f=C.range(t),g=void 0;if(vt.hasOwnProperty(p)){var v=p;g={type:"atom",mode:this.mode,family:v,loc:f,text:e}}else g={type:p,mode:this.mode,loc:f,text:e};d=g}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)),d={type:"textord",mode:this.mode,loc:C.range(t),text:e}}if(this.consume(),u)for(var y=0;yn.c||536==n.c&&11>n.g))}function w(t,e,r){return(t=t.match(e))&&t[r]?t[r]:""}function k(t){this.la=t||"-"}function S(t,e){this.M=t,this.Y=4,this.N="n";var r=(e||"n4").match(/^([nio])([1-9])$/i);r&&(this.N=r[1],this.Y=parseInt(r[2],10))}function M(t){return t.N+t.Y}function A(t){var e=4,r="n",n=null;return t&&((n=t.match(/(normal|oblique|italic)/i))&&n[1]&&(r=n[1].substr(0,1).toLowerCase()),(n=t.match(/([1-9]00|normal|bold)/i))&&n[1]&&(/bold/i.test(n[1])?e=7:/[1-9]00/.test(n[1])&&(e=parseInt(n[1].substr(0,1),10)))),r+e}function z(t,e){this.d=t,this.p=t.t.document.documentElement,this.P=e,this.j="wf",this.h=new k("-"),this.ga=!1!==e.events,this.B=!1!==e.classes}function T(t){if(t.B){var e=h(t.p,t.h.e(t.j,"active")),r=[],n=[t.h.e(t.j,"loading")];e||r.push(t.h.e(t.j,"inactive")),l(t.p,r,n)}C(t,"inactive")}function C(t,e,r){t.ga&&t.P[e]&&(r?t.P[e](r.getName(),M(r)):t.P[e]())}function B(){this.w={}}function L(t,e){this.d=t,this.G=e,this.m=this.d.createElement("span",{"aria-hidden":"true"},this.G)}function N(t){o(t.d,"body",t.m)}function E(t){var e;e=[];for(var r=t.M.split(/,\s*/),n=0;n=t.W?t.k.fa&&I(t,e,r)&&(null===t.ba||t.ba.hasOwnProperty(t.s.getName()))?_(t,t.Z):_(t,t.ja):R(t):_(t,t.Z)}function R(t){setTimeout(i(function(){q(this)},t),25)}function _(t,e){t.D.remove(),t.F.remove(),e(t.s)}function P(t,e,r,n){this.d=e,this.u=r,this.R=0,this.da=this.aa=!1,this.W=n,this.k=t.k}function F(t,e,r,n,a){if(r=r||{},0===e.length&&a)T(t.u);else for(t.R+=e.length,a&&(t.aa=a),a=0;at.c||this.c===t.c&&this.g>t.g||this.c===t.c&&this.g===t.g&&this.A>t.A?1:this.c0})},unload:function(t){t.forEach(function(t){var e=SL.fonts.FAMILIES[t];e&&(e.loaded=!1,[].slice.call(document.querySelectorAll('link[href="'+SL.fonts.FONTS_URL+e.path+'"]')).forEach(function(t){t.parentNode.removeChild(t)}))})},finishLoading:function(){clearTimeout(this.initTimeout),document.documentElement.classList.add("fonts-are-ready"),this._isReady===!1&&(this._isReady=!0,this.ready.dispatch()),this.loaded.dispatch()},getPackageIDs:function(){return Object.keys(SL.fonts.PACKAGES)},getFamilyByName:function(t){for(var e in SL.fonts.FAMILIES){var r=SL.fonts.FAMILIES[e];if(t===r.name)return r}},isPackageLoaded:function(t){var e=SL.fonts.PACKAGES[t];return!e||(0===e.length||e.every(function(t){var e=SL.fonts.FAMILIES[t];return e.active||e.inactive}))},isReady:function(){return this._isReady},onFontActive:function(t){var e=SL.fonts.getFamilyByName(t);e&&(e.active=!0),this.fontactive.dispatch(e)},onFontInactive:function(t){var e=SL.fonts.getFamilyByName(t);e&&(e.inactive=!0),this.fontinactive.dispatch(e)},onInitialFontsActive:function(){this.finishLoading()},onInitialFontsInactive:function(){this.finishLoading()}},SL("views.decks").Export=Class.extend({init:function(){SL.deck.util.injectNotes(),SL.deck.util.renderMath(),SL.deck.util.injectCodeCopyButtons(),window.Reveal&&Reveal.isReady()&&(Reveal.sync(),Reveal.layout())}}),SL("deck").Animation={init:function(){this.animationListeners=[],this.animationsEnabled=!0,this.run=this.run.bind(this),this.reset=this.reset.bind(this),this.toggle=this.toggle.bind(this),this.onSlideChanged=this.onSlideChanged.bind(this),Reveal.addEventListener("slidechanged",this.onSlideChanged),this.revealElement=document.querySelector(".reveal"),this.interactiveAnimationChanged=new signals.Signal},sync:function(){this.animationsEnabled?this.enableAnimations():this.disableAnimations()},enableAnimations:function(){this.animationsEnabled=!0,this.revealElement.classList.remove("block-animations-disabled"),this.reset(this.revealElement);var t=Reveal.getCurrentSlide();this.fastForwardAnimation(t,function(){this.run(t),this.bind(t)}.bind(this))},disableAnimations:function(){this.animationsEnabled=!1,this.revealElement.classList.add("block-animations-disabled"),this.unbind(),this.fastForwardAnimation(this.revealElement)},getAnimationTargets:function(t){return t instanceof Array?t:t.hasAttribute("data-animation-type")?[t]:[].slice.call(t.querySelectorAll("[data-animation-type]"))},getInteractiveAnimationTargets:function(t,e){var r=e?".animate":"";return[].slice.call(t.querySelectorAll(['[data-animation-trigger="click"]','[data-animation-trigger="hover"]'].join(r+",")+r))},run:function(t,e){this.getAnimationTargets(t).forEach(function(t){!e&&this.hasInteractiveAnimationTrigger(t)||t.classList.add("animate")}.bind(this))},toggle:function(t,e){this.getAnimationTargets(t).forEach(function(t){!e&&this.hasInteractiveAnimationTrigger(t)||t.classList.toggle("animate")}.bind(this))},reset:function(t){this.getAnimationTargets(t).forEach(function(t){t.classList.remove("animate")}.bind(this))},preview:function(t){this.animationsEnabled===!1&&this.revealElement.classList.remove("block-animations-disabled"),this.getAnimationTargets(t).forEach(function(t){t.classList.remove("animate"),this.fastForwardAnimation(t,function(){t.classList.add("animate"),this.animationsEnabled===!1&&this.revealElement.classList.add("block-animations-disabled")}.bind(this))}.bind(this))},bind:function(t){this.unbind(),this.getAnimationTargets(t).forEach(function(e){if(this.hasInteractiveAnimationTrigger(e)){var r=e.getAttribute("data-animation-trigger-id"),n="self"===r?e:t.querySelector('.sl-block[data-block-id="'+r+'"] .sl-block-content');if(n){var i=e.getAttribute("data-animation-trigger");"click"===i?(this.addAnimationEventListener(n,"touchstart",this.onTriggerTouchStart.bind(this,e)),this.addAnimationEventListener(n,"click",this.onTriggerClick.bind(this,e))):"hover"===i&&(this.addAnimationEventListener(n,"mouseover",this.onTriggerMouseOver.bind(this,e)),this.addAnimationEventListener(n,"mouseout",this.onTriggerMouseOut.bind(this,e)))}}}.bind(this))},addAnimationEventListener:function(t,e,r){t.addEventListener(e,r),/click|touchstart/gi.test(e)&&t.classList.add("animation-trigger"),this.animationListeners.push([t,e,r])},unbind:function(){this.animationListeners.forEach(function(t){var e=t[0],r=t[1],n=t[2];/click|touchstart/gi.test(r)&&e.classList.remove("animation-trigger"),e.removeEventListener(r,n)}),this.animationListeners.length=0},hasInteractiveAnimationTrigger:function(t){return/click|hover/gi.test(t.getAttribute("data-animation-trigger"))},fastForwardAnimation:function(t,e){t.classList.add("no-transition"),setTimeout(function(){t.classList.remove("no-transition"),"function"==typeof e&&e()},1)},getSerializedInteractiveState:function(){return this.getInteractiveAnimationTargets(Reveal.getCurrentSlide(),!0).map(function(t){var e=this.getParentBlock(t);return e?e.getAttribute("data-block-id"):null},this).filter(function(t){return"string"==typeof t}).join(",")},setSerializedInteractiveState:function(t){var e=this.getInteractiveAnimationTargets(Reveal.getCurrentSlide());if(e.length&&"string"==typeof t){t=t.split(",");var r=[],n=[];e.forEach(function(e){var i=this.getParentBlock(e),a=i?i.getAttribute("data-block-id"):null;"string"==typeof a&&t.indexOf(a)!==-1?n.push(e):r.push(e)},this),this.reset(r),this.run(n,!0)}},getParentBlock:function(t){for(var e=t.parentNode;e&&!e.hasAttribute("data-block-id");)e=e.parentNode;return e},onSlideChanged:function(t){this.animationsEnabled&&(t.previousSlide&&(this.reset(t.previousSlide),this.unbind()),t.currentSlide&&(this.run(t.currentSlide),this.bind(t.currentSlide)))},onTriggerTouchStart:function(t,e){e.preventDefault(),this.toggle(t,!0),this.interactiveAnimationChanged.dispatch()},onTriggerClick:function(t){Reveal.isAutoSliding()&&Reveal.getConfig().autoSlideStoppable&&Reveal.toggleAutoSlide(!1),this.toggle(t,!0),this.interactiveAnimationChanged.dispatch()},onTriggerMouseOver:function(t){this.run(t,!0),this.interactiveAnimationChanged.dispatch()},onTriggerMouseOut:function(t){this.reset(t),this.interactiveAnimationChanged.dispatch()}},SL("deck").Controller={MODE_VIEWING:"viewing",MODE_EDITING:"editing",MODE_PRINTING:"printing",init:function(t){this.options=t||{},this.mode=null,Reveal.isReady()?this.setup():Reveal.addEventListener("ready",this.setup.bind(this))},setup:function(){SL.deck.Animation.init(),this.setMode(this.options.mode||SL.deck.Controller.MODE_VIEWING)},setMode:function(t){this.mode=t,this.mode===SL.deck.Controller.MODE_EDITING||this.mode===SL.deck.Controller.MODE_PRINTING?SL.deck.Animation.disableAnimations():SL.deck.Animation.enableAnimations()}},SL("deck").util={renderMath:function(t){SL.deck.util.renderMathBlocks(t),SL.deck.util.renderInlineMath(t)},renderMathBlocks:function(t){t||(t=document.querySelector(".reveal .slides")),window.katex&&"function"==typeof window.katex.render&&[].slice.call(t.querySelectorAll('.sl-block[data-block-type="math"]')).forEach(function(t){var e=t.querySelector(".math-input"),r=t.querySelector(".math-output");e&&r&&katex.render(e.innerText,r)})},renderInlineMath:function(t){t||(t=document.querySelector(".reveal .slides")),"function"==typeof window.renderMathInElement&&SL.deck.util.containsInlineMath(t)&&renderMathInElement(t,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\(",right:"\\)",display:!1}]})},containsInlineMath:function(t){return!!t&&/\$\$.+\$\$|\\\[.+\\\]|\\\(.+\\\)/g.test(t.innerHTML)},injectCodeCopyButtons:function(){var t=[].slice.call(document.querySelectorAll('.sl-block[data-block-type="code"] .sl-block-content:not(.has-copy-button)'));t.length&&(this.copyButton=document.createElement("button"),this.copyButton.className="copy-code-to-clipboard",this.copyButton.textContent="Copy",this.copyButton.addEventListener("click",function(){var t=this.copyButton.parentNode;if(t){var e=t.querySelector("pre code");e&&(this.copyButton.textContent="Copied!",this.copyButton.classList.add("bounce"),SL.deck.util.copyToClipboard(e.textContent),setTimeout(function(){this.copyButton.textContent="Copy",this.copyButton.classList.remove("bounce")}.bind(this),1500))}}.bind(this)),t.forEach(function(t){t.addEventListener("mouseover",function(t){t.currentTarget.classList.add("has-copy-button"),t.currentTarget.appendChild(this.copyButton)}.bind(this))},this))},hasNotes:function(){if(SLConfig.deck&&SLConfig.deck.notes)for(var t in SLConfig.deck.notes)return!0;return document.querySelectorAll(".reveal .slides section[data-notes]").length>0},injectNotes:function(){SLConfig.deck&&SLConfig.deck.notes&&[].forEach.call(document.querySelectorAll(".reveal .slides section"),function(t){var e=SLConfig.deck.notes[t.getAttribute("data-id")];e&&"string"==typeof e&&t.setAttribute("data-notes",e)})},copyToClipboard:function(t){var e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();var r=document.execCommand("copy");return document.body.removeChild(e),r}};