8 lines
975 KiB
Plaintext
8 lines
975 KiB
Plaintext
|
|
{
|
||
|
|
"version": 3,
|
||
|
|
"sources": ["../../../../../node_modules/.pnpm/katex@0.16.22/node_modules/katex/dist/katex.mjs"],
|
||
|
|
"sourcesContent": ["/**\n * Lexing or parsing positional information for error reporting.\n * This object is immutable.\n */\nclass SourceLocation {\n // The + prefix indicates that these fields aren't writeable\n // Lexer holding the input string.\n // Start offset, zero-based inclusive.\n // End offset, zero-based exclusive.\n constructor(lexer, start, end) {\n this.lexer = void 0;\n this.start = void 0;\n this.end = void 0;\n this.lexer = lexer;\n this.start = start;\n this.end = end;\n }\n /**\n * Merges two `SourceLocation`s from location providers, given they are\n * provided in order of appearance.\n * - Returns the first one's location if only the first is provided.\n * - Returns a merged range of the first and the last if both are provided\n * and their lexers match.\n * - Otherwise, returns null.\n */\n\n\n static range(first, second) {\n if (!second) {\n return first && first.loc;\n } else if (!first || !first.loc || !second.loc || first.loc.lexer !== second.loc.lexer) {\n return null;\n } else {\n return new SourceLocation(first.loc.lexer, first.loc.start, second.loc.end);\n }\n }\n\n}\n\n/**\n * Interface required to break circular dependency between Token, Lexer, and\n * ParseError.\n */\n\n/**\n * The resulting token returned from `lex`.\n *\n * It consists of the token text plus some position information.\n * The position information is essentially a range in an input string,\n * but instead of referencing the bare input string, we refer to the lexer.\n * That way it is possible to attach extra metadata to the input string,\n * like for example a file name or similar.\n *\n * The position information is optional, so it is OK to construct synthetic\n * tokens if appropriate. Not providing available position information may\n * lead to degraded error reporting, though.\n */\nclass Token {\n // don't expand the token\n // used in \\noexpand\n constructor(text, // the text of this token\n loc) {\n this.text = void 0;\n this.loc = void 0;\n this.noexpand = void 0;\n this.treatAsRelax = void 0;\n this.text = text;\n this.loc = loc;\n }\n /**\n * Given a pair of tokens (this and endToken), compute a `Token` encompassing\n * the whole input range enclosed by these two.\n */\n\n\n range(endToken, // last token of the range, inclusive\n text // the text of the newly constructed token\n ) {\n return new Token(text, SourceLocation.range(this, endToken));\n }\n\n}\n\n/**\n * This is the ParseError class, which is the main error thrown by KaTeX\n * functions when something has gone wrong. This is used to distinguish internal\n * errors from errors in the expression that the user provided.\n *\n * If possible, a caller should provide a Token or ParseNode with information\n * about where in the source string the problem occurred.\n */\nclass ParseError {\n // Error start position based on passed-in Token or ParseNode.\n // Length of affected text based on passed-in Token or ParseNode.\n // The underlying error message without any context added.\n constructor(message, // The error message\n token // An object providing position information\n ) {\n this.name = void 0;\n this.position = void 0;\n this.length = void 0;\n this.rawMessage = void 0;\n var error = \"KaTeX parse error: \" + message;\n var start;\n var end;\n var loc = token && token.loc;\n\n if (loc && loc.start <= loc.end) {\n // If we have the input and a position, make the error a bit fancier\n // Get the input\n var input = loc.lexer.input; // Prepend some information\n\n start = loc.start;\n end = loc.end;\n\n if (start === input.length) {\n error += \" at end of input: \";\n } else {\n error += \" at position \" + (start + 1) + \": \";\n } // Underline token in question using combining underscores\n\n\n var underlined = input.slice(start, end).replace(/[^]/g, \"$&\\u0332\"); // Extract some context from the input and add it to the error\n\n var left;\n\n
|
||
|
|
"mappings": "yCAIA,IAAMA,GAAN,MAAMC,CAAe,CAJrB,MAIqB,CAAAC,EAAA,uBAKnB,YAAYC,EAAOC,EAAOC,EAAK,CAC7B,KAAK,MAAQ,OACb,KAAK,MAAQ,OACb,KAAK,IAAM,OACX,KAAK,MAAQF,EACb,KAAK,MAAQC,EACb,KAAK,IAAMC,CACb,CAWA,OAAO,MAAMC,EAAOC,EAAQ,CAC1B,OAAKA,EAEM,CAACD,GAAS,CAACA,EAAM,KAAO,CAACC,EAAO,KAAOD,EAAM,IAAI,QAAUC,EAAO,IAAI,MACxE,KAEA,IAAIN,EAAeK,EAAM,IAAI,MAAOA,EAAM,IAAI,MAAOC,EAAO,IAAI,GAAG,EAJnED,GAASA,EAAM,GAM1B,CAEF,EAoBME,GAAN,MAAMC,CAAM,CAzDZ,MAyDY,CAAAP,EAAA,cAGV,YAAYQ,EACZC,EAAK,CACH,KAAK,KAAO,OACZ,KAA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,UAAWjD,EAAAkD,GAAK,KAAK,IAAI,EAAGA,CAAC,EAAlB,aACX,IAAK,uBACL,aAAclD,EAAAkD,GAAKA,IAAM,WAAa,IAAW,SAASA,CAAC,EAA7C,eAChB,EACA,YAAa,CACX,KAAM,UACN,IAAK,EACP,CACF,EAEA,SAASC,GAAgBC,EAAQ,CAC/B,GAAIA,EAAO,QACT,OAAOA,EAAO,QAGhB,IAAIC,EAAOD,EAAO,KACdE,EAAc,MAAM,QAAQD,CAAI,EAAIA,EAAK,CAAC,EAAIA,EAElD,GAAI,OAAOC,GAAgB,SACzB,OAAOA,EAAY,KAAK,CAAC,EAG3B,OAAQA,EAAa,CACnB,IAAK,UACH,MAAO,GAET,IAAK,SACH,
|
||
|
|
"names": ["SourceLocation", "_SourceLocation", "__name", "lexer", "start", "end", "first", "second", "Token", "_Token", "text", "loc", "endToken", "ParseError", "_ParseError", "message", "token", "error", "input", "underlined", "left", "right", "self", "contains", "list", "elem", "deflt", "setting", "defaultIfUndefined", "uppercase", "hyphenate", "str", "ESCAPE_LOOKUP", "ESCAPE_REGEX", "escape", "match", "getBaseElem", "group", "isCharacterBox", "baseElem", "assert", "value", "protocolFromUrl", "url", "protocol", "utils", "SETTINGS_SCHEMA", "color", "def", "defs", "t", "s", "n", "getDefaultValue", "schema", "type", "defaultType", "Settings", "options", "prop", "errorCode", "errorMsg", "strict", "context", "trust", "Style", "id", "size", "cramped", "styles", "sup", "sub", "fracNum", "fracDen", "cramp", "text$1", "D", "Dc", "T", "Tc", "S", "Sc", "SS", "SSc", "Style$1", "scriptData", "scriptFromCodepoint", "codepoint", "i", "script", "_i", "block", "allBlocks", "b", "supportedCodepoint", "hLinePad", "sqrtMain", "extraVinculum", "sqrtSize1", "sqrtSize2", "sqrtSize3", "sqrtSize4", "phasePath", "y", "x", "sqrtTall", "viewBoxHeight", "vertSegment", "sqrtPath", "path", "innerPath", "name", "height", "tallDelim", "label", "midHeight", "DocumentFragment", "children", "className", "frag", "markup", "toText", "child", "fontMetricsData", "sigmasAndXis", "extraCharacterMap", "setFontMetrics", "fontName", "metrics", "getCharacterMetrics", "character", "font", "mode", "ch", "fontMetricsBySizeIndex", "getGlobalMetrics", "sizeIndex", "key", "sizeStyleMap", "sizeMultipliers", "sizeAtStyle", "style", "Options", "_Options", "data", "extension", "wantSize", "fontFamily", "fontWeight", "fontShape", "oldOptions", "ptPerUnit", "relativeUnit", "validUnit", "unit", "calculateSize", "sizeValue", "scale", "unitOptions", "makeEm", "createClass", "classes", "cls", "initNode", "toNode", "tagName", "node", "attr", "invalidAttributeNameRegex", "toMarkup", "Span", "attribute", "Anchor", "href", "Img", "src", "alt", "iCombinations", "SymbolNode", "depth", "italic", "skew", "width", "span", "needsSpan", "escaped", "SvgNode", "attributes", "svgNS", "PathNode", "pathName", "alternate", "LineNode", "assertSymbolDomNode", "assertSpan", "ATOMS", "NON_ATOMS", "symbols", "defineSymbol", "replace", "acceptUnicodeChar", "math", "main", "ams", "accent", "bin", "close", "inner", "mathord", "op", "open", "punct", "rel", "spacing", "textord", "ligatures", "mathTextSymbols", "textSymbols", "_ch", "letters", "_i2", "_ch2", "wideChar", "_i3", "_ch3", "_i4", "_ch4", "extraLatin", "_i5", "_ch5", "wideLatinLetterData", "wideNumeralData", "wideCharacterFont", "H", "L", "codePoint", "j", "lookupSymbol", "makeSymbol", "lookup", "symbolNode", "mathsym", "boldsymbol", "makeOrd", "isFont", "fontOrFamily", "wideFontName", "wideFontClass", "fontClasses", "fontData", "fontMap", "retrieveTextFontName", "parts", "makeFragment", "_fontName", "_fontName2", "_fontName3", "canCombine", "prev", "next", "_style", "tryCombineChars", "chars", "sizeElementFromChildren", "maxFontSize", "makeSpan$2", "makeSvgSpan", "makeLineSpan", "thickness", "line", "makeAnchor", "anchor", "fragment", "wrapFragment", "getVListChildrenAndDepth", "params", "oldChildren", "_depth", "currPos", "diff", "bottom", "firstChild", "makeVList", "pstrutSize", "pstrut", "realChildren", "minPos", "maxPos", "_child", "_elem", "childWrap", "vlist", "rows", "emptySpan", "depthStrut", "topStrut", "vtable", "makeGlue", "measurement", "rule", "baseFontName", "fontStylesName", "svgData", "staticSvg", "svgNode", "buildCommon", "thinspace", "mediumspace", "thickspace", "spacings", "tightSpacings", "_functions", "_htmlGroupBuilders", "_mathmlGroupBuilders", "defineFunction", "_ref", "names", "props", "handler", "htmlBuilder", "mathmlBuilder", "defineFunctionBuilders", "_ref2", "normalizeArgument", "arg", "ordargument", "makeSpan$1", "binLeftCanceller", "binRightCanceller", "styleMap$1", "DomEnum", "buildExpression$1", "expression", "isRealGroup", "surrounding", "groups", "output", "buildGroup$1", "glueOptions", "dummyPrev", "dummyNe
|
||
|
|
}
|