{"version":3,"sources":["jsdelivr-header.js","/npm/tex-math-parser@2.0.5/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,IAAI,gBAAmB,MAAQ,KAAK,iBAAoB,SAAU,GAC9D,OAAQ,GAAO,EAAI,WAAc,EAAM,CAAE,QAAW,EACxD,EACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,QAAQ,YAAc,QAAQ,cAAW,EACzC,MAAM,cAAgB,gBAAgB,QAAQ,kBACxC,cAAgB,gBAAgB,QAAQ,kBAM9C,SAAS,SAAS,GACd,OAAO,cAAc,QAAQ,cAAc,QAAQ,GACvD,CAKA,SAAS,YAAY,EAAQ,GAGzB,MAAO,CAAE,UAFI,SAAS,GACC,SAAS,GACZ,QACxB,CARA,QAAQ,SAAW,SASnB,QAAQ,YAAc","file":"/npm/tex-math-parser@2.0.5/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/tex-math-parser@2.0.5/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.evaluateTex = exports.parseTex = void 0;\nconst tokenizeTex_1 = __importDefault(require(\"./tokenizeTex\"));\nconst parseTokens_1 = __importDefault(require(\"./parseTokens\"));\n/**\n * Parse a TeX math string into a MathJS expression tree.\n * @returns Returns an object containing the root node of a MathJS expression tree\n *          and variables that need to be defined.\n */\nfunction parseTex(texStr) {\n    return parseTokens_1.default(tokenizeTex_1.default(texStr));\n}\nexports.parseTex = parseTex;\n/**\n * Evaluate a TeX math string, returning the result as a MathJS MathType.\n */\nfunction evaluateTex(texStr, scope) {\n    const root = parseTex(texStr);\n    const evaluated = root.evaluate(scope);\n    return { evaluated, scope };\n}\nexports.evaluateTex = evaluateTex;\n"]}