1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
|
!function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=14)}([function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=a(5),i=a(1),o=a(10);!function(e){function t(e,t){return e.string.substr(e.i,t.length)!==t||t.match(/\\[a-z]+$/i)&&e.string.charAt(e.i+t.length).match(/[a-z]/i)?0:(e.i+=t.length,1)}e.disassembleSymbol=function(e,t){var a=[e,t.char];if(t.attributes)for(var n in t.attributes)a.push(n),a.push(t.attributes[n]);return a},e.assembleSymbol=function(e){for(var t=e[0],a=e[1],n={},r=2;r<e.length;r+=2)n[e[r]]=e[r+1];return new o.Symbol(t,a,n)},e.GetCSname=function(e,t){if("\\"!==e.GetNext())throw new i.default("MissingCS","%1 must be followed by a control sequence",t);return r.default.trimSpaces(e.GetArgument(t)).substr(1)},e.GetTemplate=function(e,t,a){for(var n=e.GetNext(),r=[],o=0,u=e.i;e.i<e.string.length;){if("#"===(n=e.GetNext())){if(u!==e.i&&(r[o]=e.string.substr(u,e.i-u)),!(n=e.string.charAt(++e.i)).match(/^[1-9]$/))throw new i.default("CantUseHash2","Illegal use of # in template for %1",a);if(parseInt(n)!==++o)throw new i.default("SequentialParam","Parameters for %1 must be numbered sequentially",a);u=e.i+1}else if("{"===n)return u!==e.i&&(r[o]=e.string.substr(u,e.i-u)),r.length>0?[o.toString()].concat(r):o;e.i++}throw new i.default("MissingReplacementString","Missing replacement string for definition of %1",t)},e.GetParameter=function(e,a,n){if(null==n)return e.GetArgument(a);for(var r=e.i,o=0,u=0;e.i<e.string.length;){var l=e.string.charAt(e.i);if("{"===l)e.i===r&&(u=1),e.GetArgument(a),o=e.i-r;else{if(t(e,n))return u&&(r++,o-=2),e.string.substr(r,o);if("\\"===l){e.i++,o++,u=0;var c=e.string.substr(e.i).match(/[a-z]+|./i);c&&(e.i+=c[0].length,o=e.i-r)}else e.i++,o++,u=0}}throw new i.default("RunawayArgument","Runaway argument for %1?",a)},e.MatchParam=t,e.addDelimiter=function(t,a,n,r){t.configuration.handlers.retrieve(e.NEW_DELIMITER).add(a,new o.Symbol(a,n,r))},e.addMacro=function(t,a,n,r,i){void 0===i&&(i=""),t.configuration.handlers.retrieve(e.NEW_COMMAND).add(a,new o.Macro(i||a,n,r))},e.addEnvironment=function(t,a,n,r){t.configuration.handlers.retrieve(e.NEW_ENVIRONMENT).add(a,new o.Macro(a,n,r))},e.NEW_DELIMITER="new-Delimiter",e.NEW_COMMAND="new-Command",e.NEW_ENVIRONMENT="new-Environment"}(n||(n={})),t.default=n},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=MathJax._.input.tex.TexError.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,t.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,t.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,t.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,t.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,t.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,t.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,t.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap},function(e,t,a){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])})(e,t)},function(e,t){function a(
|