|
|
|
|
|
"use strict";
|
|
|
|
|
|
/*
|
|
|
|
|
|
* ATTENTION: An "eval-source-map" devtool has been used.
|
|
|
|
|
|
* This devtool is neither made for production nor for readable output files.
|
|
|
|
|
|
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
|
|
|
|
|
|
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
|
|
|
|
* or disable the default devtool with "devtool: false".
|
|
|
|
|
|
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
|
|
|
|
*/
|
|
|
|
|
|
exports.id = "vendor-chunks/micromark-extension-gfm-table";
|
|
|
|
|
|
exports.ids = ["vendor-chunks/micromark-extension-gfm-table"];
|
|
|
|
|
|
exports.modules = {
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "(ssr)/./node_modules/micromark-extension-gfm-table/dev/lib/html.js":
|
|
|
|
|
|
/*!********************************************************************!*\
|
|
|
|
|
|
!*** ./node_modules/micromark-extension-gfm-table/dev/lib/html.js ***!
|
|
|
|
|
|
\********************************************************************/
|
|
|
|
|
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ gfmTableHtml: () => (/* binding */ gfmTableHtml)\n/* harmony export */ });\n/**\n * @typedef {import('micromark-util-types').HtmlExtension} HtmlExtension\n * @typedef {import('./syntax.js').Align} Align\n */ const alignment = {\n none: \"\",\n left: ' align=\"left\"',\n right: ' align=\"right\"',\n center: ' align=\"center\"'\n};\n/** @type {HtmlExtension} */ const gfmTableHtml = {\n enter: {\n table (token) {\n /** @type {Array<Align>} */ // @ts-expect-error Custom.\n const tableAlign = token._align;\n this.lineEndingIfNeeded();\n this.tag(\"<table>\");\n this.setData(\"tableAlign\", tableAlign);\n },\n tableBody () {\n // Clear slurping line ending from the delimiter row.\n this.setData(\"slurpOneLineEnding\");\n this.tag(\"<tbody>\");\n },\n tableData () {\n const tableAlign = /** @type {Array<Align>} */ this.getData(\"tableAlign\");\n const tableColumn = /** @type {number} */ this.getData(\"tableColumn\");\n const align = alignment[tableAlign[tableColumn]];\n if (align === undefined) {\n // Capture results to ignore them.\n this.buffer();\n } else {\n this.lineEndingIfNeeded();\n this.tag(\"<td\" + align + \">\");\n }\n },\n tableHead () {\n this.lineEndingIfNeeded();\n this.tag(\"<thead>\");\n },\n tableHeader () {\n const tableAlign = /** @type {Array<Align>} */ this.getData(\"tableAlign\");\n const tableColumn = /** @type {number} */ this.getData(\"tableColumn\");\n const align = alignment[tableAlign[tableColumn]];\n this.lineEndingIfNeeded();\n this.tag(\"<th\" + align + \">\");\n },\n tableRow () {\n this.setData(\"tableColumn\", 0);\n this.lineEndingIfNeeded();\n this.tag(\"<tr>\");\n }\n },\n exit: {\n // Overwrite the default code text data handler to unescape escaped pipes when\n // they are in tables.\n codeTextData (token) {\n let value = this.sliceSerialize(token);\n if (this.getData(\"tableAlign\")) {\n value = value.replace(/\\\\([\\\\|])/g, replace);\n }\n this.raw(this.encode(value));\n },\n table () {\n this.setData(\"tableAlign\");\n // If there was no table body, make sure the slurping from the delimiter row\n // is cleared.\n this.setData(\"slurpAllLineEndings\");\n this.lineEndingIfNeeded();\n this.tag(\"</table>\");\n },\n tableBody () {\n this.lineEndingIfNeeded();\n this.tag(\"</tbody>\");\n },\n tableData () {\n const tableAlign = /** @type {Array<Align>} */ this.getData(\"tableAlign\");\n const tableColumn = /** @type {number} */ this.getData(\"tableColumn\");\n if (tableColumn in tableAlign) {\n this.tag(\"</td>\");\n this.setData(\"tableColumn\", tableColumn + 1);\n } else {\n // Stop capturing.\n this.resume();\n }\n },\n tableHead () {\n this.lineEndingIfNeeded();\n this.tag(\"</thead>\");\n this.setData(\"slurpOneLineEnding\", true);\n // Slurp the line ending from the delimiter row.\n },\n tableHeader () {\n const tableColumn = /** @type {number} */ this.getData(\"tableColumn\");\n this.tag(\"</th>\");\n this.setData(\"tableColumn\", tableColumn + 1);\n },\n tableRow () {\n const tableAlign = /** @type {Array<Align>} */ this.getData(\"tableAlign\");\n let tableColumn = /**
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "(ssr)/./node_modules/micromark-extension-gfm-table/dev/lib/syntax.js":
|
|
|
|
|
|
/*!**********************************************************************!*\
|
|
|
|
|
|
!*** ./node_modules/micromark-extension-gfm-table/dev/lib/syntax.js ***!
|
|
|
|
|
|
\**********************************************************************/
|
|
|
|
|
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ gfmTable: () => (/* binding */ gfmTable)\n/* harmony export */ });\n/* harmony import */ var uvu_assert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! uvu/assert */ \"(ssr)/./node_modules/uvu/assert/index.mjs\");\n/* harmony import */ var micromark_factory_space__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! micromark-factory-space */ \"(ssr)/./node_modules/micromark-factory-space/dev/index.js\");\n/* harmony import */ var micromark_util_character__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! micromark-util-character */ \"(ssr)/./node_modules/micromark-util-character/dev/index.js\");\n/* harmony import */ var micromark_util_symbol_codes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! micromark-util-symbol/codes.js */ \"(ssr)/./node_modules/micromark-util-symbol/codes.js\");\n/* harmony import */ var micromark_util_symbol_constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! micromark-util-symbol/constants.js */ \"(ssr)/./node_modules/micromark-util-symbol/constants.js\");\n/* harmony import */ var micromark_util_symbol_types_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! micromark-util-symbol/types.js */ \"(ssr)/./node_modules/micromark-util-symbol/types.js\");\n/**\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n */ /**\n * @typedef {'left'|'center'|'right'|'none'} Align\n */ \n\n\n\n\n\n/** @type {Extension} */ const gfmTable = {\n flow: {\n null: {\n tokenize: tokenizeTable,\n resolve: resolveTable\n }\n }\n};\nconst nextPrefixedOrBlank = {\n tokenize: tokenizeNextPrefixedOrBlank,\n partial: true\n};\n/** @type {Resolver} */ function resolveTable(events, context) {\n let index = -1;\n /** @type {boolean|undefined} */ let inHead;\n /** @type {boolean|undefined} */ let inDelimiterRow;\n /** @type {boolean|undefined} */ let inRow;\n /** @type {number|undefined} */ let contentStart;\n /** @type {number|undefined} */ let contentEnd;\n /** @type {number|undefined} */ let cellStart;\n /** @type {boolean|undefined} */ let seenCellInRow;\n while(++index < events.length){\n const token = events[index][1];\n if (inRow) {\n if (token.type === \"temporaryTableCellContent\") {\n contentStart = contentStart || index;\n contentEnd = index;\n }\n if (// Combine separate content parts into one.\n (token.type === \"tableCellDivider\" || token.type === \"tableRow\") && contentEnd) {\n (0,uvu_assert__WEBPACK_IMPORTED_MODULE_0__.ok)(contentStart, \"expected `contentStart` to be defined if `contentEnd` is\");\n const content = {\n type: \"tableContent\",\n start: events[contentStart][1].start,\n end: events[contentEnd][1].end\n };\n /** @type {Token} */ const text = {\n type: micromark_util_symbol_types_js__WEBPACK_IMPORTED_MODULE_1__.types.chunkText,\n start: content.start,\n end: content.end,\n // @ts-expect-error It’s fine.\n contentType: micromark_util_symbol_constants_js__WEBPACK_IMPORTED_MODULE_2__.constants.contentTypeText\n };\n (0,uvu_assert__WEBPACK_IMPORTED_MODULE_0__.ok)(contentStart, \"expected `contentStart` to be defined if `contentEnd` is\");\n events.splice(contentStart, contentEnd - contentStart + 1, [\n \"enter\",\n content,\n context\n ], [\n \"enter\",\n
|
|
|
|
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
;
|