You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
"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/unist-util-find-after";
|
|
|
|
|
|
exports.ids = ["vendor-chunks/unist-util-find-after"];
|
|
|
|
|
|
exports.modules = {
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "(ssr)/./node_modules/unist-util-find-after/lib/index.js":
|
|
|
|
|
|
/*!*********************************************************!*\
|
|
|
|
|
|
!*** ./node_modules/unist-util-find-after/lib/index.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 */ findAfter: () => (/* binding */ findAfter)\n/* harmony export */ });\n/* harmony import */ var unist_util_is__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! unist-util-is */ \"(ssr)/./node_modules/unist-util-is/lib/index.js\");\n/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Parent} Parent\n * @typedef {import('unist-util-is').Test} Test\n */ \n/**\n * Find the first node in `parent` after another `node` or after an index,\n * that passes `test`.\n\n * @param parent\n * Parent node.\n * @param index\n * Child of `parent` or it’s index.\n * @param test\n * `unist-util-is`-compatible test.\n * @returns\n * Child of `parent` or `null`.\n */ const findAfter = /**\n * @type {(\n * (<T extends Node>(node: Parent, index: Node | number, test: import('unist-util-is').PredicateTest<T>) => T | null) &\n * ((node: Parent, index: Node | number, test?: Test) => Node | null)\n * )}\n */ /**\n * @param {Parent} parent\n * @param {Node | number} index\n * @param {Test} [test]\n * @returns {Node | null}\n */ function(parent, index, test) {\n const is = (0,unist_util_is__WEBPACK_IMPORTED_MODULE_0__.convert)(test);\n if (!parent || !parent.type || !parent.children) {\n throw new Error(\"Expected parent node\");\n }\n if (typeof index === \"number\") {\n if (index < 0 || index === Number.POSITIVE_INFINITY) {\n throw new Error(\"Expected positive finite number as index\");\n }\n } else {\n index = parent.children.indexOf(index);\n if (index < 0) {\n throw new Error(\"Expected child node or index\");\n }\n }\n while(++index < parent.children.length){\n if (is(parent.children[index], index, parent)) {\n return parent.children[index];\n }\n }\n return null;\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiKHNzcikvLi9ub2RlX21vZHVsZXMvdW5pc3QtdXRpbC1maW5kLWFmdGVyL2xpYi9pbmRleC5qcyIsIm1hcHBpbmdzIjoiOzs7OztBQUFBOzs7O0NBSUMsR0FFb0M7QUFFckM7Ozs7Ozs7Ozs7OztDQVlDLEdBQ00sTUFBTUMsWUFDWDs7Ozs7R0FLQyxHQUVDOzs7OztLQUtDLEdBQ0QsU0FBVUMsTUFBTSxFQUFFQyxLQUFLLEVBQUVDLElBQUk7SUFDM0IsTUFBTUMsS0FBS0wsc0RBQU9BLENBQUNJO0lBRW5CLElBQUksQ0FBQ0YsVUFBVSxDQUFDQSxPQUFPSSxJQUFJLElBQUksQ0FBQ0osT0FBT0ssUUFBUSxFQUFFO1FBQy9DLE1BQU0sSUFBSUMsTUFBTTtJQUNsQjtJQUVBLElBQUksT0FBT0wsVUFBVSxVQUFVO1FBQzdCLElBQUlBLFFBQVEsS0FBS0EsVUFBVU0sT0FBT0MsaUJBQWlCL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