remark-mdat 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +1210 -50
  2. package/package.json +10 -10
  3. package/dist/.DS_Store +0 -0
package/dist/index.js CHANGED
@@ -150,8 +150,7 @@ var require_utils = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/cli-table3@
150
150
  break;
151
151
  case "center": {
152
152
  let right = Math.ceil(padlen / 2);
153
- let left = padlen - right;
154
- str = repeat(pad$1, left) + str + repeat(pad$1, right);
153
+ str = repeat(pad$1, padlen - right) + str + repeat(pad$1, right);
155
154
  break;
156
155
  }
157
156
  default:
@@ -541,8 +540,7 @@ var require_supports_colors = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/@
541
540
  return min;
542
541
  }
543
542
  function getSupportLevel(stream) {
544
- var level$1 = supportsColor(stream);
545
- return translateLevel(level$1);
543
+ return translateLevel(supportsColor(stream));
546
544
  }
547
545
  module.exports = {
548
546
  supportsColor: getSupportLevel,
@@ -1451,13 +1449,12 @@ var require_layout_manager = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/cl
1451
1449
  let yMin1 = cell1.y;
1452
1450
  let yMax1 = cell1.y - 1 + (cell1.rowSpan || 1);
1453
1451
  let yMin2 = cell2.y;
1454
- let yMax2 = cell2.y - 1 + (cell2.rowSpan || 1);
1455
- let yConflict = !(yMin1 > yMax2 || yMin2 > yMax1);
1452
+ let yConflict = !(yMin1 > cell2.y - 1 + (cell2.rowSpan || 1) || yMin2 > yMax1);
1456
1453
  let xMin1 = cell1.x;
1457
1454
  let xMax1 = cell1.x - 1 + (cell1.colSpan || 1);
1458
1455
  let xMin2 = cell2.x;
1459
- let xMax2 = cell2.x - 1 + (cell2.colSpan || 1);
1460
- return yConflict && !(xMin1 > xMax2 || xMin2 > xMax1);
1456
+ let xConflict = !(xMin1 > cell2.x - 1 + (cell2.colSpan || 1) || xMin2 > xMax1);
1457
+ return yConflict && xConflict;
1461
1458
  }
1462
1459
  function conflictExists(rows, x, y) {
1463
1460
  let i_max = Math.min(rows.length - 1, y);
@@ -1702,7 +1699,7 @@ var require_cli_table3 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/cli-ta
1702
1699
  }) });
1703
1700
 
1704
1701
  //#endregion
1705
- //#region node_modules/.pnpm/unist-util-is@6.0.0/node_modules/unist-util-is/lib/index.js
1702
+ //#region node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js
1706
1703
  /**
1707
1704
  * Generate an assertion from a test.
1708
1705
  *
@@ -1724,7 +1721,7 @@ var require_cli_table3 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/cli-ta
1724
1721
  const convert = (function(test) {
1725
1722
  if (test === null || test === void 0) return ok$1;
1726
1723
  if (typeof test === "function") return castFactory(test);
1727
- if (typeof test === "object") return Array.isArray(test) ? anyFactory(test) : propsFactory(test);
1724
+ if (typeof test === "object") return Array.isArray(test) ? anyFactory(test) : propertiesFactory(test);
1728
1725
  if (typeof test === "string") return typeFactory(test);
1729
1726
  throw new Error("Expected function, string, or object as test");
1730
1727
  });
@@ -1754,7 +1751,7 @@ function anyFactory(tests) {
1754
1751
  * @param {Props} check
1755
1752
  * @returns {Check}
1756
1753
  */
1757
- function propsFactory(check) {
1754
+ function propertiesFactory(check) {
1758
1755
  const checkAsRecord = check;
1759
1756
  return castFactory(all$2);
1760
1757
  /**
@@ -1812,7 +1809,7 @@ function looksLikeANode(value) {
1812
1809
  }
1813
1810
 
1814
1811
  //#endregion
1815
- //#region node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/color.node.js
1812
+ //#region node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.node.js
1816
1813
  /**
1817
1814
  * @param {string} d
1818
1815
  * @returns {string}
@@ -1822,7 +1819,212 @@ function color(d) {
1822
1819
  }
1823
1820
 
1824
1821
  //#endregion
1825
- //#region node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/index.js
1822
+ //#region node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js
1823
+ /**
1824
+ * @import {Node as UnistNode, Parent as UnistParent} from 'unist'
1825
+ */
1826
+ /**
1827
+ * @typedef {Exclude<import('unist-util-is').Test, undefined> | undefined} Test
1828
+ * Test from `unist-util-is`.
1829
+ *
1830
+ * Note: we have remove and add `undefined`, because otherwise when generating
1831
+ * automatic `.d.ts` files, TS tries to flatten paths from a local perspective,
1832
+ * which doesn’t work when publishing on npm.
1833
+ */
1834
+ /**
1835
+ * @typedef {(
1836
+ * Fn extends (value: any) => value is infer Thing
1837
+ * ? Thing
1838
+ * : Fallback
1839
+ * )} Predicate
1840
+ * Get the value of a type guard `Fn`.
1841
+ * @template Fn
1842
+ * Value; typically function that is a type guard (such as `(x): x is Y`).
1843
+ * @template Fallback
1844
+ * Value to yield if `Fn` is not a type guard.
1845
+ */
1846
+ /**
1847
+ * @typedef {(
1848
+ * Check extends null | undefined // No test.
1849
+ * ? Value
1850
+ * : Value extends {type: Check} // String (type) test.
1851
+ * ? Value
1852
+ * : Value extends Check // Partial test.
1853
+ * ? Value
1854
+ * : Check extends Function // Function test.
1855
+ * ? Predicate<Check, Value> extends Value
1856
+ * ? Predicate<Check, Value>
1857
+ * : never
1858
+ * : never // Some other test?
1859
+ * )} MatchesOne
1860
+ * Check whether a node matches a primitive check in the type system.
1861
+ * @template Value
1862
+ * Value; typically unist `Node`.
1863
+ * @template Check
1864
+ * Value; typically `unist-util-is`-compatible test, but not arrays.
1865
+ */
1866
+ /**
1867
+ * @typedef {(
1868
+ * Check extends ReadonlyArray<infer T>
1869
+ * ? MatchesOne<Value, T>
1870
+ * : Check extends Array<infer T>
1871
+ * ? MatchesOne<Value, T>
1872
+ * : MatchesOne<Value, Check>
1873
+ * )} Matches
1874
+ * Check whether a node matches a check in the type system.
1875
+ * @template Value
1876
+ * Value; typically unist `Node`.
1877
+ * @template Check
1878
+ * Value; typically `unist-util-is`-compatible test.
1879
+ */
1880
+ /**
1881
+ * @typedef {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10} Uint
1882
+ * Number; capped reasonably.
1883
+ */
1884
+ /**
1885
+ * @typedef {I extends 0 ? 1 : I extends 1 ? 2 : I extends 2 ? 3 : I extends 3 ? 4 : I extends 4 ? 5 : I extends 5 ? 6 : I extends 6 ? 7 : I extends 7 ? 8 : I extends 8 ? 9 : 10} Increment
1886
+ * Increment a number in the type system.
1887
+ * @template {Uint} [I=0]
1888
+ * Index.
1889
+ */
1890
+ /**
1891
+ * @typedef {(
1892
+ * Node extends UnistParent
1893
+ * ? Node extends {children: Array<infer Children>}
1894
+ * ? Child extends Children ? Node : never
1895
+ * : never
1896
+ * : never
1897
+ * )} InternalParent
1898
+ * Collect nodes that can be parents of `Child`.
1899
+ * @template {UnistNode} Node
1900
+ * All node types in a tree.
1901
+ * @template {UnistNode} Child
1902
+ * Node to search for.
1903
+ */
1904
+ /**
1905
+ * @typedef {InternalParent<InclusiveDescendant<Tree>, Child>} Parent
1906
+ * Collect nodes in `Tree` that can be parents of `Child`.
1907
+ * @template {UnistNode} Tree
1908
+ * All node types in a tree.
1909
+ * @template {UnistNode} Child
1910
+ * Node to search for.
1911
+ */
1912
+ /**
1913
+ * @typedef {(
1914
+ * Depth extends Max
1915
+ * ? never
1916
+ * :
1917
+ * | InternalParent<Node, Child>
1918
+ * | InternalAncestor<Node, InternalParent<Node, Child>, Max, Increment<Depth>>
1919
+ * )} InternalAncestor
1920
+ * Collect nodes in `Tree` that can be ancestors of `Child`.
1921
+ * @template {UnistNode} Node
1922
+ * All node types in a tree.
1923
+ * @template {UnistNode} Child
1924
+ * Node to search for.
1925
+ * @template {Uint} [Max=10]
1926
+ * Max; searches up to this depth.
1927
+ * @template {Uint} [Depth=0]
1928
+ * Current depth.
1929
+ */
1930
+ /**
1931
+ * @typedef {InternalAncestor<InclusiveDescendant<Tree>, Child>} Ancestor
1932
+ * Collect nodes in `Tree` that can be ancestors of `Child`.
1933
+ * @template {UnistNode} Tree
1934
+ * All node types in a tree.
1935
+ * @template {UnistNode} Child
1936
+ * Node to search for.
1937
+ */
1938
+ /**
1939
+ * @typedef {(
1940
+ * Tree extends UnistParent
1941
+ * ? Depth extends Max
1942
+ * ? Tree
1943
+ * : Tree | InclusiveDescendant<Tree['children'][number], Max, Increment<Depth>>
1944
+ * : Tree
1945
+ * )} InclusiveDescendant
1946
+ * Collect all (inclusive) descendants of `Tree`.
1947
+ *
1948
+ * > 👉 **Note**: for performance reasons, this seems to be the fastest way to
1949
+ * > recurse without actually running into an infinite loop, which the
1950
+ * > previous version did.
1951
+ * >
1952
+ * > Practically, a max of `2` is typically enough assuming a `Root` is
1953
+ * > passed, but it doesn’t improve performance.
1954
+ * > It gets higher with `List > ListItem > Table > TableRow > TableCell`.
1955
+ * > Using up to `10` doesn’t hurt or help either.
1956
+ * @template {UnistNode} Tree
1957
+ * Tree type.
1958
+ * @template {Uint} [Max=10]
1959
+ * Max; searches up to this depth.
1960
+ * @template {Uint} [Depth=0]
1961
+ * Current depth.
1962
+ */
1963
+ /**
1964
+ * @typedef {'skip' | boolean} Action
1965
+ * Union of the action types.
1966
+ *
1967
+ * @typedef {number} Index
1968
+ * Move to the sibling at `index` next (after node itself is completely
1969
+ * traversed).
1970
+ *
1971
+ * Useful if mutating the tree, such as removing the node the visitor is
1972
+ * currently on, or any of its previous siblings.
1973
+ * Results less than 0 or greater than or equal to `children.length` stop
1974
+ * traversing the parent.
1975
+ *
1976
+ * @typedef {[(Action | null | undefined | void)?, (Index | null | undefined)?]} ActionTuple
1977
+ * List with one or two values, the first an action, the second an index.
1978
+ *
1979
+ * @typedef {Action | ActionTuple | Index | null | undefined | void} VisitorResult
1980
+ * Any value that can be returned from a visitor.
1981
+ */
1982
+ /**
1983
+ * @callback Visitor
1984
+ * Handle a node (matching `test`, if given).
1985
+ *
1986
+ * Visitors are free to transform `node`.
1987
+ * They can also transform the parent of node (the last of `ancestors`).
1988
+ *
1989
+ * Replacing `node` itself, if `SKIP` is not returned, still causes its
1990
+ * descendants to be walked (which is a bug).
1991
+ *
1992
+ * When adding or removing previous siblings of `node` (or next siblings, in
1993
+ * case of reverse), the `Visitor` should return a new `Index` to specify the
1994
+ * sibling to traverse after `node` is traversed.
1995
+ * Adding or removing next siblings of `node` (or previous siblings, in case
1996
+ * of reverse) is handled as expected without needing to return a new `Index`.
1997
+ *
1998
+ * Removing the children property of an ancestor still results in them being
1999
+ * traversed.
2000
+ * @param {Visited} node
2001
+ * Found node.
2002
+ * @param {Array<VisitedParents>} ancestors
2003
+ * Ancestors of `node`.
2004
+ * @returns {VisitorResult}
2005
+ * What to do next.
2006
+ *
2007
+ * An `Index` is treated as a tuple of `[CONTINUE, Index]`.
2008
+ * An `Action` is treated as a tuple of `[Action]`.
2009
+ *
2010
+ * Passing a tuple back only makes sense if the `Action` is `SKIP`.
2011
+ * When the `Action` is `EXIT`, that action can be returned.
2012
+ * When the `Action` is `CONTINUE`, `Index` can be returned.
2013
+ * @template {UnistNode} [Visited=UnistNode]
2014
+ * Visited node type.
2015
+ * @template {UnistParent} [VisitedParents=UnistParent]
2016
+ * Ancestor type.
2017
+ */
2018
+ /**
2019
+ * @typedef {Visitor<Matches<InclusiveDescendant<Tree>, Check>, Ancestor<Tree, Matches<InclusiveDescendant<Tree>, Check>>>} BuildVisitor
2020
+ * Build a typed `Visitor` function from a tree and a test.
2021
+ *
2022
+ * It will infer which values are passed as `node` and which as `parents`.
2023
+ * @template {UnistNode} [Tree=UnistNode]
2024
+ * Tree type.
2025
+ * @template {Test} [Check=Test]
2026
+ * Test type.
2027
+ */
1826
2028
  /** @type {Readonly<ActionTuple>} */
1827
2029
  const empty = [];
1828
2030
  /**
@@ -1953,6 +2155,216 @@ function toResult(value) {
1953
2155
  //#endregion
1954
2156
  //#region node_modules/.pnpm/unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.js
1955
2157
  /**
2158
+ * @typedef {import('unist').Node} UnistNode
2159
+ * @typedef {import('unist').Parent} UnistParent
2160
+ * @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult
2161
+ */
2162
+ /**
2163
+ * @typedef {Exclude<import('unist-util-is').Test, undefined> | undefined} Test
2164
+ * Test from `unist-util-is`.
2165
+ *
2166
+ * Note: we have remove and add `undefined`, because otherwise when generating
2167
+ * automatic `.d.ts` files, TS tries to flatten paths from a local perspective,
2168
+ * which doesn’t work when publishing on npm.
2169
+ */
2170
+ /**
2171
+ * @typedef {(
2172
+ * Fn extends (value: any) => value is infer Thing
2173
+ * ? Thing
2174
+ * : Fallback
2175
+ * )} Predicate
2176
+ * Get the value of a type guard `Fn`.
2177
+ * @template Fn
2178
+ * Value; typically function that is a type guard (such as `(x): x is Y`).
2179
+ * @template Fallback
2180
+ * Value to yield if `Fn` is not a type guard.
2181
+ */
2182
+ /**
2183
+ * @typedef {(
2184
+ * Check extends null | undefined // No test.
2185
+ * ? Value
2186
+ * : Value extends {type: Check} // String (type) test.
2187
+ * ? Value
2188
+ * : Value extends Check // Partial test.
2189
+ * ? Value
2190
+ * : Check extends Function // Function test.
2191
+ * ? Predicate<Check, Value> extends Value
2192
+ * ? Predicate<Check, Value>
2193
+ * : never
2194
+ * : never // Some other test?
2195
+ * )} MatchesOne
2196
+ * Check whether a node matches a primitive check in the type system.
2197
+ * @template Value
2198
+ * Value; typically unist `Node`.
2199
+ * @template Check
2200
+ * Value; typically `unist-util-is`-compatible test, but not arrays.
2201
+ */
2202
+ /**
2203
+ * @typedef {(
2204
+ * Check extends Array<any>
2205
+ * ? MatchesOne<Value, Check[keyof Check]>
2206
+ * : MatchesOne<Value, Check>
2207
+ * )} Matches
2208
+ * Check whether a node matches a check in the type system.
2209
+ * @template Value
2210
+ * Value; typically unist `Node`.
2211
+ * @template Check
2212
+ * Value; typically `unist-util-is`-compatible test.
2213
+ */
2214
+ /**
2215
+ * @typedef {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10} Uint
2216
+ * Number; capped reasonably.
2217
+ */
2218
+ /**
2219
+ * @typedef {I extends 0 ? 1 : I extends 1 ? 2 : I extends 2 ? 3 : I extends 3 ? 4 : I extends 4 ? 5 : I extends 5 ? 6 : I extends 6 ? 7 : I extends 7 ? 8 : I extends 8 ? 9 : 10} Increment
2220
+ * Increment a number in the type system.
2221
+ * @template {Uint} [I=0]
2222
+ * Index.
2223
+ */
2224
+ /**
2225
+ * @typedef {(
2226
+ * Node extends UnistParent
2227
+ * ? Node extends {children: Array<infer Children>}
2228
+ * ? Child extends Children ? Node : never
2229
+ * : never
2230
+ * : never
2231
+ * )} InternalParent
2232
+ * Collect nodes that can be parents of `Child`.
2233
+ * @template {UnistNode} Node
2234
+ * All node types in a tree.
2235
+ * @template {UnistNode} Child
2236
+ * Node to search for.
2237
+ */
2238
+ /**
2239
+ * @typedef {InternalParent<InclusiveDescendant<Tree>, Child>} Parent
2240
+ * Collect nodes in `Tree` that can be parents of `Child`.
2241
+ * @template {UnistNode} Tree
2242
+ * All node types in a tree.
2243
+ * @template {UnistNode} Child
2244
+ * Node to search for.
2245
+ */
2246
+ /**
2247
+ * @typedef {(
2248
+ * Depth extends Max
2249
+ * ? never
2250
+ * :
2251
+ * | InternalParent<Node, Child>
2252
+ * | InternalAncestor<Node, InternalParent<Node, Child>, Max, Increment<Depth>>
2253
+ * )} InternalAncestor
2254
+ * Collect nodes in `Tree` that can be ancestors of `Child`.
2255
+ * @template {UnistNode} Node
2256
+ * All node types in a tree.
2257
+ * @template {UnistNode} Child
2258
+ * Node to search for.
2259
+ * @template {Uint} [Max=10]
2260
+ * Max; searches up to this depth.
2261
+ * @template {Uint} [Depth=0]
2262
+ * Current depth.
2263
+ */
2264
+ /**
2265
+ * @typedef {(
2266
+ * Tree extends UnistParent
2267
+ * ? Depth extends Max
2268
+ * ? Tree
2269
+ * : Tree | InclusiveDescendant<Tree['children'][number], Max, Increment<Depth>>
2270
+ * : Tree
2271
+ * )} InclusiveDescendant
2272
+ * Collect all (inclusive) descendants of `Tree`.
2273
+ *
2274
+ * > 👉 **Note**: for performance reasons, this seems to be the fastest way to
2275
+ * > recurse without actually running into an infinite loop, which the
2276
+ * > previous version did.
2277
+ * >
2278
+ * > Practically, a max of `2` is typically enough assuming a `Root` is
2279
+ * > passed, but it doesn’t improve performance.
2280
+ * > It gets higher with `List > ListItem > Table > TableRow > TableCell`.
2281
+ * > Using up to `10` doesn’t hurt or help either.
2282
+ * @template {UnistNode} Tree
2283
+ * Tree type.
2284
+ * @template {Uint} [Max=10]
2285
+ * Max; searches up to this depth.
2286
+ * @template {Uint} [Depth=0]
2287
+ * Current depth.
2288
+ */
2289
+ /**
2290
+ * @callback Visitor
2291
+ * Handle a node (matching `test`, if given).
2292
+ *
2293
+ * Visitors are free to transform `node`.
2294
+ * They can also transform `parent`.
2295
+ *
2296
+ * Replacing `node` itself, if `SKIP` is not returned, still causes its
2297
+ * descendants to be walked (which is a bug).
2298
+ *
2299
+ * When adding or removing previous siblings of `node` (or next siblings, in
2300
+ * case of reverse), the `Visitor` should return a new `Index` to specify the
2301
+ * sibling to traverse after `node` is traversed.
2302
+ * Adding or removing next siblings of `node` (or previous siblings, in case
2303
+ * of reverse) is handled as expected without needing to return a new `Index`.
2304
+ *
2305
+ * Removing the children property of `parent` still results in them being
2306
+ * traversed.
2307
+ * @param {Visited} node
2308
+ * Found node.
2309
+ * @param {Visited extends UnistNode ? number | undefined : never} index
2310
+ * Index of `node` in `parent`.
2311
+ * @param {Ancestor extends UnistParent ? Ancestor | undefined : never} parent
2312
+ * Parent of `node`.
2313
+ * @returns {VisitorResult}
2314
+ * What to do next.
2315
+ *
2316
+ * An `Index` is treated as a tuple of `[CONTINUE, Index]`.
2317
+ * An `Action` is treated as a tuple of `[Action]`.
2318
+ *
2319
+ * Passing a tuple back only makes sense if the `Action` is `SKIP`.
2320
+ * When the `Action` is `EXIT`, that action can be returned.
2321
+ * When the `Action` is `CONTINUE`, `Index` can be returned.
2322
+ * @template {UnistNode} [Visited=UnistNode]
2323
+ * Visited node type.
2324
+ * @template {UnistParent} [Ancestor=UnistParent]
2325
+ * Ancestor type.
2326
+ */
2327
+ /**
2328
+ * @typedef {Visitor<Visited, Parent<Ancestor, Visited>>} BuildVisitorFromMatch
2329
+ * Build a typed `Visitor` function from a node and all possible parents.
2330
+ *
2331
+ * It will infer which values are passed as `node` and which as `parent`.
2332
+ * @template {UnistNode} Visited
2333
+ * Node type.
2334
+ * @template {UnistParent} Ancestor
2335
+ * Parent type.
2336
+ */
2337
+ /**
2338
+ * @typedef {(
2339
+ * BuildVisitorFromMatch<
2340
+ * Matches<Descendant, Check>,
2341
+ * Extract<Descendant, UnistParent>
2342
+ * >
2343
+ * )} BuildVisitorFromDescendants
2344
+ * Build a typed `Visitor` function from a list of descendants and a test.
2345
+ *
2346
+ * It will infer which values are passed as `node` and which as `parent`.
2347
+ * @template {UnistNode} Descendant
2348
+ * Node type.
2349
+ * @template {Test} Check
2350
+ * Test type.
2351
+ */
2352
+ /**
2353
+ * @typedef {(
2354
+ * BuildVisitorFromDescendants<
2355
+ * InclusiveDescendant<Tree>,
2356
+ * Check
2357
+ * >
2358
+ * )} BuildVisitor
2359
+ * Build a typed `Visitor` function from a tree and a test.
2360
+ *
2361
+ * It will infer which values are passed as `node` and which as `parent`.
2362
+ * @template {UnistNode} [Tree=UnistNode]
2363
+ * Node type.
2364
+ * @template {Test} [Check=Test]
2365
+ * Test type.
2366
+ */
2367
+ /**
1956
2368
  * Visit nodes.
1957
2369
  *
1958
2370
  * This algorithm performs *depth-first* *tree traversal* in *preorder*
@@ -2140,8 +2552,7 @@ function mdatMessageToLogString(sourcePath, mdatMessage) {
2140
2552
  const { column: column$1, level: level$1, line: line$1, message, source: source$1 } = mdatMessage;
2141
2553
  const resolvedSource = source$1 ? picocolors.gray(`[${source$1}] `) : "";
2142
2554
  const lineColumn = line$1 && column$1 ? `:${line$1}:${column$1}` : "";
2143
- const highlightedMessage = highlightComments(message, level$1);
2144
- return `${resolvedSource}${highlightedMessage} ${picocolors.whiteBright(sourcePath + lineColumn)}`;
2555
+ return `${resolvedSource}${highlightComments(message, level$1)} ${picocolors.whiteBright(sourcePath + lineColumn)}`;
2145
2556
  }
2146
2557
  function highlightComments(text$4, level$1) {
2147
2558
  return text$4.replaceAll(/<!--.+-->/g, (match) => level$1 === "info" ? picocolors.green(match) : level$1 === "warn" ? picocolors.yellow(match) : picocolors.red(match));
@@ -2191,7 +2602,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/json5@2.2.3
2191
2602
  let token;
2192
2603
  let key;
2193
2604
  let root$1;
2194
- module.exports = function parse$5(text$4, reviver) {
2605
+ module.exports = function parse$4(text$4, reviver) {
2195
2606
  source = String(text$4);
2196
2607
  parseState = "start";
2197
2608
  stack = [];
@@ -2930,7 +3341,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/json5@2.2.3
2930
3341
  //#region node_modules/.pnpm/json5@2.2.3/node_modules/json5/lib/stringify.js
2931
3342
  var require_stringify = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/json5@2.2.3/node_modules/json5/lib/stringify.js": ((exports, module) => {
2932
3343
  const util = require_util();
2933
- module.exports = function stringify$1(value, replacer, space) {
3344
+ module.exports = function stringify(value, replacer, space) {
2934
3345
  const stack$1 = [];
2935
3346
  let indent$1 = "";
2936
3347
  let propertyList;
@@ -3096,11 +3507,9 @@ var require_stringify = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/json5@2
3096
3507
  //#endregion
3097
3508
  //#region node_modules/.pnpm/json5@2.2.3/node_modules/json5/lib/index.js
3098
3509
  var require_lib = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/json5@2.2.3/node_modules/json5/lib/index.js": ((exports, module) => {
3099
- const parse$4 = require_parse();
3100
- const stringify = require_stringify();
3101
3510
  const JSON5 = {
3102
- parse: parse$4,
3103
- stringify
3511
+ parse: require_parse(),
3512
+ stringify: require_stringify()
3104
3513
  };
3105
3514
  module.exports = JSON5;
3106
3515
  }) });
@@ -3173,6 +3582,25 @@ function index(value) {
3173
3582
  //#endregion
3174
3583
  //#region node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/lib/index.js
3175
3584
  /**
3585
+ * @import {Node, Point, Position} from 'unist'
3586
+ */
3587
+ /**
3588
+ * @typedef {object & {type: string, position?: Position | undefined}} NodeLike
3589
+ *
3590
+ * @typedef Options
3591
+ * Configuration.
3592
+ * @property {Array<Node> | null | undefined} [ancestors]
3593
+ * Stack of (inclusive) ancestor nodes surrounding the message (optional).
3594
+ * @property {Error | null | undefined} [cause]
3595
+ * Original error cause of the message (optional).
3596
+ * @property {Point | Position | null | undefined} [place]
3597
+ * Place of message (optional).
3598
+ * @property {string | null | undefined} [ruleId]
3599
+ * Category of message (optional, example: `'my-rule'`).
3600
+ * @property {string | null | undefined} [source]
3601
+ * Namespace of who sent the message (optional, example: `'my-package'`).
3602
+ */
3603
+ /**
3176
3604
  * Message.
3177
3605
  */
3178
3606
  var VFileMessage = class extends Error {
@@ -3621,7 +4049,7 @@ function getSoleRuleKey(rules) {
3621
4049
  * that are only supposed to contain a single rule.
3622
4050
  * @param record The record to get the sole entry from
3623
4051
  * @returns The value of the sole entry in the record
3624
- * @throws If there are no entries or more than one entry
4052
+ * @throws {Error} If there are no entries or more than one entry
3625
4053
  */
3626
4054
  function getSoleRecord(record) {
3627
4055
  const recordValues = Object.values(record);
@@ -3825,9 +4253,7 @@ const emptyOptions$2 = {};
3825
4253
  */
3826
4254
  function toString(value, options) {
3827
4255
  const settings = options || emptyOptions$2;
3828
- const includeImageAlt = typeof settings.includeImageAlt === "boolean" ? settings.includeImageAlt : true;
3829
- const includeHtml = typeof settings.includeHtml === "boolean" ? settings.includeHtml : true;
3830
- return one$1(value, includeImageAlt, includeHtml);
4256
+ return one$1(value, typeof settings.includeImageAlt === "boolean" ? settings.includeImageAlt : true, typeof settings.includeHtml === "boolean" ? settings.includeHtml : true);
3831
4257
  }
3832
4258
  /**
3833
4259
  * One node or several nodes.
@@ -6107,6 +6533,14 @@ function push(list$3, items) {
6107
6533
 
6108
6534
  //#endregion
6109
6535
  //#region node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.js
6536
+ /**
6537
+ * @import {
6538
+ * Extension,
6539
+ * Handles,
6540
+ * HtmlExtension,
6541
+ * NormalizedExtension
6542
+ * } from 'micromark-util-types'
6543
+ */
6110
6544
  const hasOwnProperty = {}.hasOwnProperty;
6111
6545
  /**
6112
6546
  * Combine multiple syntax extensions into one.
@@ -6448,6 +6882,9 @@ function regexCheck(regex) {
6448
6882
  //#endregion
6449
6883
  //#region node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js
6450
6884
  /**
6885
+ * @import {Effects, State, TokenType} from 'micromark-util-types'
6886
+ */
6887
+ /**
6451
6888
  * Parse spaces and tabs.
6452
6889
  *
6453
6890
  * There is no `nok` parameter:
@@ -6504,6 +6941,15 @@ function factorySpace(effects, ok$2, type, max) {
6504
6941
 
6505
6942
  //#endregion
6506
6943
  //#region node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.js
6944
+ /**
6945
+ * @import {
6946
+ * InitialConstruct,
6947
+ * Initializer,
6948
+ * State,
6949
+ * TokenizeContext,
6950
+ * Token
6951
+ * } from 'micromark-util-types'
6952
+ */
6507
6953
  /** @type {InitialConstruct} */
6508
6954
  const content = { tokenize: initializeContent };
6509
6955
  /**
@@ -6563,6 +7009,23 @@ function initializeContent(effects) {
6563
7009
 
6564
7010
  //#endregion
6565
7011
  //#region node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.js
7012
+ /**
7013
+ * @import {
7014
+ * Construct,
7015
+ * ContainerState,
7016
+ * InitialConstruct,
7017
+ * Initializer,
7018
+ * Point,
7019
+ * State,
7020
+ * TokenizeContext,
7021
+ * Tokenizer,
7022
+ * Token
7023
+ * } from 'micromark-util-types'
7024
+ */
7025
+ /**
7026
+ * @typedef {[Construct, ContainerState]} StackItem
7027
+ * Construct and its state.
7028
+ */
6566
7029
  /** @type {InitialConstruct} */
6567
7030
  const document = { tokenize: initializeDocument };
6568
7031
  /** @type {Construct} */
@@ -6764,6 +7227,9 @@ function tokenizeContainer(effects, ok$2, nok) {
6764
7227
  //#endregion
6765
7228
  //#region node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js
6766
7229
  /**
7230
+ * @import {Code} from 'micromark-util-types'
7231
+ */
7232
+ /**
6767
7233
  * Classify whether a code represents whitespace, punctuation, or something
6768
7234
  * else.
6769
7235
  *
@@ -6815,6 +7281,19 @@ function resolveAll(constructs$1, events, context) {
6815
7281
 
6816
7282
  //#endregion
6817
7283
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.js
7284
+ /**
7285
+ * @import {
7286
+ * Code,
7287
+ * Construct,
7288
+ * Event,
7289
+ * Point,
7290
+ * Resolver,
7291
+ * State,
7292
+ * TokenizeContext,
7293
+ * Tokenizer,
7294
+ * Token
7295
+ * } from 'micromark-util-types'
7296
+ */
6818
7297
  /** @type {Construct} */
6819
7298
  const attention = {
6820
7299
  name: "attention",
@@ -7023,6 +7502,14 @@ function movePoint(point$3, offset) {
7023
7502
 
7024
7503
  //#endregion
7025
7504
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.js
7505
+ /**
7506
+ * @import {
7507
+ * Construct,
7508
+ * State,
7509
+ * TokenizeContext,
7510
+ * Tokenizer
7511
+ * } from 'micromark-util-types'
7512
+ */
7026
7513
  /** @type {Construct} */
7027
7514
  const autolink = {
7028
7515
  name: "autolink",
@@ -7227,6 +7714,14 @@ function tokenizeAutolink(effects, ok$2, nok) {
7227
7714
 
7228
7715
  //#endregion
7229
7716
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.js
7717
+ /**
7718
+ * @import {
7719
+ * Construct,
7720
+ * State,
7721
+ * TokenizeContext,
7722
+ * Tokenizer
7723
+ * } from 'micromark-util-types'
7724
+ */
7230
7725
  /** @type {Construct} */
7231
7726
  const blankLine = {
7232
7727
  partial: true,
@@ -7277,6 +7772,15 @@ function tokenizeBlankLine(effects, ok$2, nok) {
7277
7772
 
7278
7773
  //#endregion
7279
7774
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/block-quote.js
7775
+ /**
7776
+ * @import {
7777
+ * Construct,
7778
+ * Exiter,
7779
+ * State,
7780
+ * TokenizeContext,
7781
+ * Tokenizer
7782
+ * } from 'micromark-util-types'
7783
+ */
7280
7784
  /** @type {Construct} */
7281
7785
  const blockQuote = {
7282
7786
  continuation: { tokenize: tokenizeBlockQuoteContinuation },
@@ -7396,6 +7900,14 @@ function exit$1(effects) {
7396
7900
 
7397
7901
  //#endregion
7398
7902
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-escape.js
7903
+ /**
7904
+ * @import {
7905
+ * Construct,
7906
+ * State,
7907
+ * TokenizeContext,
7908
+ * Tokenizer
7909
+ * } from 'micromark-util-types'
7910
+ */
7399
7911
  /** @type {Construct} */
7400
7912
  const characterEscape = {
7401
7913
  name: "characterEscape",
@@ -7449,6 +7961,15 @@ function tokenizeCharacterEscape(effects, ok$2, nok) {
7449
7961
 
7450
7962
  //#endregion
7451
7963
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.js
7964
+ /**
7965
+ * @import {
7966
+ * Code,
7967
+ * Construct,
7968
+ * State,
7969
+ * TokenizeContext,
7970
+ * Tokenizer
7971
+ * } from 'micromark-util-types'
7972
+ */
7452
7973
  /** @type {Construct} */
7453
7974
  const characterReference = {
7454
7975
  name: "characterReference",
@@ -7579,6 +8100,15 @@ function tokenizeCharacterReference(effects, ok$2, nok) {
7579
8100
 
7580
8101
  //#endregion
7581
8102
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-fenced.js
8103
+ /**
8104
+ * @import {
8105
+ * Code,
8106
+ * Construct,
8107
+ * State,
8108
+ * TokenizeContext,
8109
+ * Tokenizer
8110
+ * } from 'micromark-util-types'
8111
+ */
7582
8112
  /** @type {Construct} */
7583
8113
  const nonLazyContinuation = {
7584
8114
  partial: true,
@@ -7986,6 +8516,14 @@ function tokenizeNonLazyContinuation(effects, ok$2, nok) {
7986
8516
 
7987
8517
  //#endregion
7988
8518
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-indented.js
8519
+ /**
8520
+ * @import {
8521
+ * Construct,
8522
+ * State,
8523
+ * TokenizeContext,
8524
+ * Tokenizer
8525
+ * } from 'micromark-util-types'
8526
+ */
7989
8527
  /** @type {Construct} */
7990
8528
  const codeIndented = {
7991
8529
  name: "codeIndented",
@@ -8123,6 +8661,17 @@ function tokenizeFurtherStart(effects, ok$2, nok) {
8123
8661
 
8124
8662
  //#endregion
8125
8663
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.js
8664
+ /**
8665
+ * @import {
8666
+ * Construct,
8667
+ * Previous,
8668
+ * Resolver,
8669
+ * State,
8670
+ * TokenizeContext,
8671
+ * Tokenizer,
8672
+ * Token
8673
+ * } from 'micromark-util-types'
8674
+ */
8126
8675
  /** @type {Construct} */
8127
8676
  const codeText = {
8128
8677
  name: "codeText",
@@ -8530,6 +9079,9 @@ function chunkedPush(list$3, right) {
8530
9079
  //#endregion
8531
9080
  //#region node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.js
8532
9081
  /**
9082
+ * @import {Chunk, Event, Token} from 'micromark-util-types'
9083
+ */
9084
+ /**
8533
9085
  * Tokenize subcontent.
8534
9086
  *
8535
9087
  * @param {Array<Event>} eventsArray
@@ -8683,6 +9235,16 @@ function subcontent(events, eventIndex) {
8683
9235
  //#endregion
8684
9236
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.js
8685
9237
  /**
9238
+ * @import {
9239
+ * Construct,
9240
+ * Resolver,
9241
+ * State,
9242
+ * TokenizeContext,
9243
+ * Tokenizer,
9244
+ * Token
9245
+ * } from 'micromark-util-types'
9246
+ */
9247
+ /**
8686
9248
  * No name because it must not be turned off.
8687
9249
  * @type {Construct}
8688
9250
  */
@@ -8807,6 +9369,9 @@ function tokenizeContinuation(effects, ok$2, nok) {
8807
9369
  //#endregion
8808
9370
  //#region node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.js
8809
9371
  /**
9372
+ * @import {Effects, State, TokenType} from 'micromark-util-types'
9373
+ */
9374
+ /**
8810
9375
  * Parse destinations.
8811
9376
  *
8812
9377
  * ###### Examples
@@ -8989,6 +9554,14 @@ function factoryDestination(effects, ok$2, nok, type, literalType, literalMarker
8989
9554
  //#endregion
8990
9555
  //#region node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.js
8991
9556
  /**
9557
+ * @import {
9558
+ * Effects,
9559
+ * State,
9560
+ * TokenizeContext,
9561
+ * TokenType
9562
+ * } from 'micromark-util-types'
9563
+ */
9564
+ /**
8992
9565
  * Parse labels.
8993
9566
  *
8994
9567
  * > 👉 **Note**: labels in markdown are capped at 999 characters in the string.
@@ -9114,6 +9687,14 @@ function factoryLabel(effects, ok$2, nok, type, markerType, stringType) {
9114
9687
  //#endregion
9115
9688
  //#region node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.js
9116
9689
  /**
9690
+ * @import {
9691
+ * Code,
9692
+ * Effects,
9693
+ * State,
9694
+ * TokenType
9695
+ * } from 'micromark-util-types'
9696
+ */
9697
+ /**
9117
9698
  * Parse titles.
9118
9699
  *
9119
9700
  * ###### Examples
@@ -9252,6 +9833,9 @@ function factoryTitle(effects, ok$2, nok, type, markerType, stringType) {
9252
9833
  //#endregion
9253
9834
  //#region node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.js
9254
9835
  /**
9836
+ * @import {Effects, State} from 'micromark-util-types'
9837
+ */
9838
+ /**
9255
9839
  * Parse spaces and tabs.
9256
9840
  *
9257
9841
  * There is no `nok` parameter:
@@ -9289,6 +9873,14 @@ function factoryWhitespace(effects, ok$2) {
9289
9873
 
9290
9874
  //#endregion
9291
9875
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.js
9876
+ /**
9877
+ * @import {
9878
+ * Construct,
9879
+ * State,
9880
+ * TokenizeContext,
9881
+ * Tokenizer
9882
+ * } from 'micromark-util-types'
9883
+ */
9292
9884
  /** @type {Construct} */
9293
9885
  const definition$1 = {
9294
9886
  name: "definition",
@@ -9497,6 +10089,14 @@ function tokenizeTitleBefore(effects, ok$2, nok) {
9497
10089
 
9498
10090
  //#endregion
9499
10091
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.js
10092
+ /**
10093
+ * @import {
10094
+ * Construct,
10095
+ * State,
10096
+ * TokenizeContext,
10097
+ * Tokenizer
10098
+ * } from 'micromark-util-types'
10099
+ */
9500
10100
  /** @type {Construct} */
9501
10101
  const hardBreakEscape = {
9502
10102
  name: "hardBreakEscape",
@@ -9547,6 +10147,16 @@ function tokenizeHardBreakEscape(effects, ok$2, nok) {
9547
10147
 
9548
10148
  //#endregion
9549
10149
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/heading-atx.js
10150
+ /**
10151
+ * @import {
10152
+ * Construct,
10153
+ * Resolver,
10154
+ * State,
10155
+ * TokenizeContext,
10156
+ * Tokenizer,
10157
+ * Token
10158
+ * } from 'micromark-util-types'
10159
+ */
9550
10160
  /** @type {Construct} */
9551
10161
  const headingAtx = {
9552
10162
  name: "headingAtx",
@@ -9823,6 +10433,16 @@ const htmlRawNames = [
9823
10433
 
9824
10434
  //#endregion
9825
10435
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-flow.js
10436
+ /**
10437
+ * @import {
10438
+ * Code,
10439
+ * Construct,
10440
+ * Resolver,
10441
+ * State,
10442
+ * TokenizeContext,
10443
+ * Tokenizer
10444
+ * } from 'micromark-util-types'
10445
+ */
9826
10446
  /** @type {Construct} */
9827
10447
  const htmlFlow = {
9828
10448
  concrete: true,
@@ -10587,6 +11207,15 @@ function tokenizeBlankLineBefore(effects, ok$2, nok) {
10587
11207
 
10588
11208
  //#endregion
10589
11209
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.js
11210
+ /**
11211
+ * @import {
11212
+ * Code,
11213
+ * Construct,
11214
+ * State,
11215
+ * TokenizeContext,
11216
+ * Tokenizer
11217
+ * } from 'micromark-util-types'
11218
+ */
10590
11219
  /** @type {Construct} */
10591
11220
  const htmlText = {
10592
11221
  name: "htmlText",
@@ -11193,6 +11822,17 @@ function tokenizeHtmlText(effects, ok$2, nok) {
11193
11822
 
11194
11823
  //#endregion
11195
11824
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-end.js
11825
+ /**
11826
+ * @import {
11827
+ * Construct,
11828
+ * Event,
11829
+ * Resolver,
11830
+ * State,
11831
+ * TokenizeContext,
11832
+ * Tokenizer,
11833
+ * Token
11834
+ * } from 'micromark-util-types'
11835
+ */
11196
11836
  /** @type {Construct} */
11197
11837
  const labelEnd = {
11198
11838
  name: "labelEnd",
@@ -11653,6 +12293,14 @@ function tokenizeReferenceCollapsed(effects, ok$2, nok) {
11653
12293
 
11654
12294
  //#endregion
11655
12295
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-image.js
12296
+ /**
12297
+ * @import {
12298
+ * Construct,
12299
+ * State,
12300
+ * TokenizeContext,
12301
+ * Tokenizer
12302
+ * } from 'micromark-util-types'
12303
+ */
11656
12304
  /** @type {Construct} */
11657
12305
  const labelStartImage = {
11658
12306
  name: "labelStartImage",
@@ -11739,6 +12387,14 @@ function tokenizeLabelStartImage(effects, ok$2, nok) {
11739
12387
 
11740
12388
  //#endregion
11741
12389
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-link.js
12390
+ /**
12391
+ * @import {
12392
+ * Construct,
12393
+ * State,
12394
+ * TokenizeContext,
12395
+ * Tokenizer
12396
+ * } from 'micromark-util-types'
12397
+ */
11742
12398
  /** @type {Construct} */
11743
12399
  const labelStartLink = {
11744
12400
  name: "labelStartLink",
@@ -11780,6 +12436,14 @@ function tokenizeLabelStartLink(effects, ok$2, nok) {
11780
12436
 
11781
12437
  //#endregion
11782
12438
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.js
12439
+ /**
12440
+ * @import {
12441
+ * Construct,
12442
+ * State,
12443
+ * TokenizeContext,
12444
+ * Tokenizer
12445
+ * } from 'micromark-util-types'
12446
+ */
11783
12447
  /** @type {Construct} */
11784
12448
  const lineEnding = {
11785
12449
  name: "lineEnding",
@@ -11803,6 +12467,15 @@ function tokenizeLineEnding(effects, ok$2) {
11803
12467
 
11804
12468
  //#endregion
11805
12469
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/thematic-break.js
12470
+ /**
12471
+ * @import {
12472
+ * Code,
12473
+ * Construct,
12474
+ * State,
12475
+ * TokenizeContext,
12476
+ * Tokenizer
12477
+ * } from 'micromark-util-types'
12478
+ */
11806
12479
  /** @type {Construct} */
11807
12480
  const thematicBreak$1 = {
11808
12481
  name: "thematicBreak",
@@ -11890,6 +12563,16 @@ function tokenizeThematicBreak(effects, ok$2, nok) {
11890
12563
 
11891
12564
  //#endregion
11892
12565
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/list.js
12566
+ /**
12567
+ * @import {
12568
+ * Code,
12569
+ * Construct,
12570
+ * Exiter,
12571
+ * State,
12572
+ * TokenizeContext,
12573
+ * Tokenizer
12574
+ * } from 'micromark-util-types'
12575
+ */
11893
12576
  /** @type {Construct} */
11894
12577
  const list$2 = {
11895
12578
  continuation: { tokenize: tokenizeListContinuation },
@@ -12053,6 +12736,16 @@ function tokenizeListItemPrefixWhitespace(effects, ok$2, nok) {
12053
12736
 
12054
12737
  //#endregion
12055
12738
  //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/setext-underline.js
12739
+ /**
12740
+ * @import {
12741
+ * Code,
12742
+ * Construct,
12743
+ * Resolver,
12744
+ * State,
12745
+ * TokenizeContext,
12746
+ * Tokenizer
12747
+ * } from 'micromark-util-types'
12748
+ */
12056
12749
  /** @type {Construct} */
12057
12750
  const setextUnderline = {
12058
12751
  name: "setextUnderline",
@@ -12196,6 +12889,14 @@ function tokenizeSetextUnderline(effects, ok$2, nok) {
12196
12889
 
12197
12890
  //#endregion
12198
12891
  //#region node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.js
12892
+ /**
12893
+ * @import {
12894
+ * InitialConstruct,
12895
+ * Initializer,
12896
+ * State,
12897
+ * TokenizeContext
12898
+ * } from 'micromark-util-types'
12899
+ */
12199
12900
  /** @type {InitialConstruct} */
12200
12901
  const flow = { tokenize: initializeFlow };
12201
12902
  /**
@@ -12414,6 +13115,9 @@ function resolveAllLineSuffixes(events, context) {
12414
13115
 
12415
13116
  //#endregion
12416
13117
  //#region node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.js
13118
+ /**
13119
+ * @import {Extension} from 'micromark-util-types'
13120
+ */
12417
13121
  var constructs_exports = /* @__PURE__ */ __export({
12418
13122
  attentionMarkers: () => attentionMarkers,
12419
13123
  contentInitial: () => contentInitial,
@@ -12491,6 +13195,43 @@ const disable = { null: [] };
12491
13195
  //#endregion
12492
13196
  //#region node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.js
12493
13197
  /**
13198
+ * @import {
13199
+ * Chunk,
13200
+ * Code,
13201
+ * ConstructRecord,
13202
+ * Construct,
13203
+ * Effects,
13204
+ * InitialConstruct,
13205
+ * ParseContext,
13206
+ * Point,
13207
+ * State,
13208
+ * TokenizeContext,
13209
+ * Token
13210
+ * } from 'micromark-util-types'
13211
+ */
13212
+ /**
13213
+ * @callback Restore
13214
+ * Restore the state.
13215
+ * @returns {undefined}
13216
+ * Nothing.
13217
+ *
13218
+ * @typedef Info
13219
+ * Info.
13220
+ * @property {Restore} restore
13221
+ * Restore.
13222
+ * @property {number} from
13223
+ * From.
13224
+ *
13225
+ * @callback ReturnHandle
13226
+ * Handle a successful run.
13227
+ * @param {Construct} construct
13228
+ * Construct.
13229
+ * @param {Info} info
13230
+ * Info.
13231
+ * @returns {undefined}
13232
+ * Nothing.
13233
+ */
13234
+ /**
12494
13235
  * Create a tokenizer.
12495
13236
  * Tokenizers deal with one type of data (e.g., containers, flow, text).
12496
13237
  * The parser is the object dealing with it all.
@@ -12739,8 +13480,7 @@ function createTokenizer(parser, initialize, from) {
12739
13480
  function start(code$2) {
12740
13481
  const left = code$2 !== null && map$4[code$2];
12741
13482
  const all$2 = code$2 !== null && map$4.null;
12742
- const list$3 = [...Array.isArray(left) ? left : left ? [left] : [], ...Array.isArray(all$2) ? all$2 : all$2 ? [all$2] : []];
12743
- return handleListOfConstructs(list$3)(code$2);
13483
+ return handleListOfConstructs([...Array.isArray(left) ? left : left ? [left] : [], ...Array.isArray(all$2) ? all$2 : all$2 ? [all$2] : []])(code$2);
12744
13484
  }
12745
13485
  }
12746
13486
  /**
@@ -12925,6 +13665,15 @@ function serializeChunks(chunks, expandTabs) {
12925
13665
  //#endregion
12926
13666
  //#region node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.js
12927
13667
  /**
13668
+ * @import {
13669
+ * Create,
13670
+ * FullNormalizedExtension,
13671
+ * InitialConstruct,
13672
+ * ParseContext,
13673
+ * ParseOptions
13674
+ * } from 'micromark-util-types'
13675
+ */
13676
+ /**
12928
13677
  * @param {ParseOptions | null | undefined} [options]
12929
13678
  * Configuration (optional).
12930
13679
  * @returns {ParseContext}
@@ -12961,6 +13710,9 @@ function parse$3(options) {
12961
13710
  //#endregion
12962
13711
  //#region node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.js
12963
13712
  /**
13713
+ * @import {Event} from 'micromark-util-types'
13714
+ */
13715
+ /**
12964
13716
  * @param {Array<Event>} events
12965
13717
  * Events.
12966
13718
  * @returns {Array<Event>}
@@ -13113,6 +13865,46 @@ function decode($0, $1, $2) {
13113
13865
 
13114
13866
  //#endregion
13115
13867
  //#region node_modules/.pnpm/mdast-util-from-markdown@2.0.2/node_modules/mdast-util-from-markdown/lib/index.js
13868
+ /**
13869
+ * @import {
13870
+ * Break,
13871
+ * Blockquote,
13872
+ * Code,
13873
+ * Definition,
13874
+ * Emphasis,
13875
+ * Heading,
13876
+ * Html,
13877
+ * Image,
13878
+ * InlineCode,
13879
+ * Link,
13880
+ * ListItem,
13881
+ * List,
13882
+ * Nodes,
13883
+ * Paragraph,
13884
+ * PhrasingContent,
13885
+ * ReferenceType,
13886
+ * Root,
13887
+ * Strong,
13888
+ * Text,
13889
+ * ThematicBreak
13890
+ * } from 'mdast'
13891
+ * @import {
13892
+ * Encoding,
13893
+ * Event,
13894
+ * Token,
13895
+ * Value
13896
+ * } from 'micromark-util-types'
13897
+ * @import {Point} from 'unist'
13898
+ * @import {
13899
+ * CompileContext,
13900
+ * CompileData,
13901
+ * Config,
13902
+ * Extension,
13903
+ * Handle,
13904
+ * OnEnterError,
13905
+ * Options
13906
+ * } from './types.js'
13907
+ */
13116
13908
  const own$3 = {}.hasOwnProperty;
13117
13909
  /**
13118
13910
  * Turn markdown into a syntax tree.
@@ -13288,10 +14080,7 @@ function compiler(options) {
13288
14080
  const listStack = [];
13289
14081
  let index$1 = -1;
13290
14082
  while (++index$1 < events.length) if (events[index$1][1].type === "listOrdered" || events[index$1][1].type === "listUnordered") if (events[index$1][0] === "enter") listStack.push(index$1);
13291
- else {
13292
- const tail = listStack.pop();
13293
- index$1 = prepareList(events, tail, index$1);
13294
- }
14083
+ else index$1 = prepareList(events, listStack.pop(), index$1);
13295
14084
  index$1 = -1;
13296
14085
  while (++index$1 < events.length) {
13297
14086
  const handler = config[events[index$1][0]];
@@ -14044,6 +14833,15 @@ function defaultOnError(left, right) {
14044
14833
  //#endregion
14045
14834
  //#region node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.js
14046
14835
  /**
14836
+ * @typedef {import('mdast').Root} Root
14837
+ * @typedef {import('mdast-util-from-markdown').Options} FromMarkdownOptions
14838
+ * @typedef {import('unified').Parser<Root>} Parser
14839
+ * @typedef {import('unified').Processor<Root>} Processor
14840
+ */
14841
+ /**
14842
+ * @typedef {Omit<FromMarkdownOptions, 'extensions' | 'mdastExtensions'>} Options
14843
+ */
14844
+ /**
14047
14845
  * Aadd support for parsing from markdown.
14048
14846
  *
14049
14847
  * @param {Readonly<Options> | null | undefined} [options]
@@ -14279,6 +15077,10 @@ function listInScope(stack$1, list$3, none) {
14279
15077
  //#endregion
14280
15078
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.js
14281
15079
  /**
15080
+ * @import {Break, Parents} from 'mdast'
15081
+ * @import {Info, State} from 'mdast-util-to-markdown'
15082
+ */
15083
+ /**
14282
15084
  * @param {Break} _
14283
15085
  * @param {Parents | undefined} _1
14284
15086
  * @param {State} state
@@ -14353,6 +15155,10 @@ function checkFence(state) {
14353
15155
  //#endregion
14354
15156
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.js
14355
15157
  /**
15158
+ * @import {Info, Map, State} from 'mdast-util-to-markdown'
15159
+ * @import {Code, Parents} from 'mdast'
15160
+ */
15161
+ /**
14356
15162
  * @param {Code} node
14357
15163
  * @param {Parents | undefined} _
14358
15164
  * @param {State} state
@@ -14423,6 +15229,10 @@ function checkQuote(state) {
14423
15229
  //#endregion
14424
15230
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.js
14425
15231
  /**
15232
+ * @import {Info, State} from 'mdast-util-to-markdown'
15233
+ * @import {Definition, Parents} from 'mdast'
15234
+ */
15235
+ /**
14426
15236
  * @param {Definition} node
14427
15237
  * @param {Parents | undefined} _
14428
15238
  * @param {State} state
@@ -14508,6 +15318,9 @@ function encodeCharacterReference(code$2) {
14508
15318
  //#endregion
14509
15319
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.js
14510
15320
  /**
15321
+ * @import {EncodeSides} from '../types.js'
15322
+ */
15323
+ /**
14511
15324
  * Check whether to encode (as a character reference) the characters
14512
15325
  * surrounding an attention run.
14513
15326
  *
@@ -14577,6 +15390,10 @@ function encodeInfo(outside, inside, marker) {
14577
15390
 
14578
15391
  //#endregion
14579
15392
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js
15393
+ /**
15394
+ * @import {Info, State} from 'mdast-util-to-markdown'
15395
+ * @import {Emphasis, Parents} from 'mdast'
15396
+ */
14580
15397
  emphasis.peek = emphasisPeek;
14581
15398
  /**
14582
15399
  * @param {Emphasis} node
@@ -14622,6 +15439,10 @@ function emphasisPeek(_, _1, state) {
14622
15439
  //#endregion
14623
15440
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
14624
15441
  /**
15442
+ * @import {State} from 'mdast-util-to-markdown'
15443
+ * @import {Heading} from 'mdast'
15444
+ */
15445
+ /**
14625
15446
  * @param {Heading} node
14626
15447
  * @param {State} state
14627
15448
  * @returns {boolean}
@@ -14640,6 +15461,10 @@ function formatHeadingAsSetext(node$1, state) {
14640
15461
  //#endregion
14641
15462
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.js
14642
15463
  /**
15464
+ * @import {Info, State} from 'mdast-util-to-markdown'
15465
+ * @import {Heading, Parents} from 'mdast'
15466
+ */
15467
+ /**
14643
15468
  * @param {Heading} node
14644
15469
  * @param {Parents | undefined} _
14645
15470
  * @param {State} state
@@ -14700,6 +15525,10 @@ function htmlPeek() {
14700
15525
 
14701
15526
  //#endregion
14702
15527
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.js
15528
+ /**
15529
+ * @import {Info, State} from 'mdast-util-to-markdown'
15530
+ * @import {Image, Parents} from 'mdast'
15531
+ */
14703
15532
  image.peek = imagePeek;
14704
15533
  /**
14705
15534
  * @param {Image} node
@@ -14855,6 +15684,10 @@ function inlineCodePeek() {
14855
15684
  //#endregion
14856
15685
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
14857
15686
  /**
15687
+ * @import {State} from 'mdast-util-to-markdown'
15688
+ * @import {Link} from 'mdast'
15689
+ */
15690
+ /**
14858
15691
  * @param {Link} node
14859
15692
  * @param {State} state
14860
15693
  * @returns {boolean}
@@ -14866,6 +15699,11 @@ function formatLinkAsAutolink(node$1, state) {
14866
15699
 
14867
15700
  //#endregion
14868
15701
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.js
15702
+ /**
15703
+ * @import {Info, State} from 'mdast-util-to-markdown'
15704
+ * @import {Link, Parents} from 'mdast'
15705
+ * @import {Exit} from '../types.js'
15706
+ */
14869
15707
  link.peek = linkPeek;
14870
15708
  /**
14871
15709
  * @param {Link} node
@@ -15018,6 +15856,9 @@ function checkBullet(state) {
15018
15856
  //#endregion
15019
15857
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js
15020
15858
  /**
15859
+ * @import {Options, State} from 'mdast-util-to-markdown'
15860
+ */
15861
+ /**
15021
15862
  * @param {State} state
15022
15863
  * @returns {Exclude<Options['bullet'], null | undefined>}
15023
15864
  */
@@ -15063,6 +15904,10 @@ function checkRule(state) {
15063
15904
  //#endregion
15064
15905
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.js
15065
15906
  /**
15907
+ * @import {Info, State} from 'mdast-util-to-markdown'
15908
+ * @import {List, Parents} from 'mdast'
15909
+ */
15910
+ /**
15066
15911
  * @param {List} node
15067
15912
  * @param {Parents | undefined} parent
15068
15913
  * @param {State} state
@@ -15118,6 +15963,10 @@ function checkListItemIndent(state) {
15118
15963
  //#endregion
15119
15964
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.js
15120
15965
  /**
15966
+ * @import {Info, Map, State} from 'mdast-util-to-markdown'
15967
+ * @import {ListItem, Parents} from 'mdast'
15968
+ */
15969
+ /**
15121
15970
  * @param {ListItem} node
15122
15971
  * @param {Parents | undefined} parent
15123
15972
  * @param {State} state
@@ -15169,6 +16018,10 @@ function paragraph(node$1, _, state, info$1) {
15169
16018
  //#endregion
15170
16019
  //#region node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.js
15171
16020
  /**
16021
+ * @typedef {import('mdast').Html} Html
16022
+ * @typedef {import('mdast').PhrasingContent} PhrasingContent
16023
+ */
16024
+ /**
15172
16025
  * Check if the given value is *phrasing content*.
15173
16026
  *
15174
16027
  * > 👉 **Note**: Excludes `html`, which can be both phrasing or flow.
@@ -15200,6 +16053,10 @@ const phrasing = convert([
15200
16053
  //#endregion
15201
16054
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.js
15202
16055
  /**
16056
+ * @import {Info, State} from 'mdast-util-to-markdown'
16057
+ * @import {Parents, Root} from 'mdast'
16058
+ */
16059
+ /**
15203
16060
  * @param {Root} node
15204
16061
  * @param {Parents | undefined} _
15205
16062
  * @param {State} state
@@ -15229,6 +16086,10 @@ function checkStrong(state) {
15229
16086
 
15230
16087
  //#endregion
15231
16088
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.js
16089
+ /**
16090
+ * @import {Info, State} from 'mdast-util-to-markdown'
16091
+ * @import {Parents, Strong} from 'mdast'
16092
+ */
15232
16093
  strong.peek = strongPeek;
15233
16094
  /**
15234
16095
  * @param {Strong} node
@@ -15306,6 +16167,10 @@ function checkRuleRepetition(state) {
15306
16167
  //#endregion
15307
16168
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js
15308
16169
  /**
16170
+ * @import {State} from 'mdast-util-to-markdown'
16171
+ * @import {Parents, ThematicBreak} from 'mdast'
16172
+ */
16173
+ /**
15309
16174
  * @param {ThematicBreak} _
15310
16175
  * @param {Parents | undefined} _1
15311
16176
  * @param {State} state
@@ -15346,6 +16211,9 @@ const handle = {
15346
16211
 
15347
16212
  //#endregion
15348
16213
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/join.js
16214
+ /**
16215
+ * @import {Join} from 'mdast-util-to-markdown'
16216
+ */
15349
16217
  /** @type {Array<Join>} */
15350
16218
  const join = [joinDefaults];
15351
16219
  /** @type {Join} */
@@ -15583,6 +16451,9 @@ const unsafe = [
15583
16451
  //#endregion
15584
16452
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/association.js
15585
16453
  /**
16454
+ * @import {AssociationId} from '../types.js'
16455
+ */
16456
+ /**
15586
16457
  * Get an identifier from an association to match it to others.
15587
16458
  *
15588
16459
  * Associations are nodes that match to something else through an ID:
@@ -15626,6 +16497,10 @@ function compilePattern(pattern) {
15626
16497
  //#endregion
15627
16498
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js
15628
16499
  /**
16500
+ * @import {Handle, Info, State} from 'mdast-util-to-markdown'
16501
+ * @import {PhrasingParents} from '../types.js'
16502
+ */
16503
+ /**
15629
16504
  * Serialize the children of a parent that contains phrasing children.
15630
16505
  *
15631
16506
  * These children will be joined flush together.
@@ -15784,6 +16659,9 @@ function indentLines(value, map$4) {
15784
16659
  //#endregion
15785
16660
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/safe.js
15786
16661
  /**
16662
+ * @import {SafeConfig, State} from 'mdast-util-to-markdown'
16663
+ */
16664
+ /**
15787
16665
  * Make a string safe for embedding in markdown constructs.
15788
16666
  *
15789
16667
  * In markdown, almost all punctuation characters can, in certain cases,
@@ -15954,6 +16832,11 @@ function track(config) {
15954
16832
  //#endregion
15955
16833
  //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/index.js
15956
16834
  /**
16835
+ * @import {Info, Join, Options, SafeConfig, State} from 'mdast-util-to-markdown'
16836
+ * @import {Nodes} from 'mdast'
16837
+ * @import {Enter, FlowParents, PhrasingParents, TrackFields} from './types.js'
16838
+ */
16839
+ /**
15957
16840
  * Turn an mdast syntax tree into markdown.
15958
16841
  *
15959
16842
  * @param {Nodes} tree
@@ -16099,6 +16982,15 @@ function safeBound(value, config) {
16099
16982
  //#endregion
16100
16983
  //#region node_modules/.pnpm/remark-stringify@11.0.0/node_modules/remark-stringify/lib/index.js
16101
16984
  /**
16985
+ * @typedef {import('mdast').Root} Root
16986
+ * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownOptions
16987
+ * @typedef {import('unified').Compiler<Root, string>} Compiler
16988
+ * @typedef {import('unified').Processor<undefined, undefined, undefined, Root, string>} Processor
16989
+ */
16990
+ /**
16991
+ * @typedef {Omit<ToMarkdownOptions, 'extensions'>} Options
16992
+ */
16993
+ /**
16102
16994
  * Add support for serializing to markdown.
16103
16995
  *
16104
16996
  * @param {Readonly<Options> | null | undefined} [options]
@@ -16168,6 +17060,61 @@ function escapeStringRegexp(string$2) {
16168
17060
  //#endregion
16169
17061
  //#region node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.js
16170
17062
  /**
17063
+ * @import {Nodes, Parents, PhrasingContent, Root, Text} from 'mdast'
17064
+ * @import {BuildVisitor, Test, VisitorResult} from 'unist-util-visit-parents'
17065
+ */
17066
+ /**
17067
+ * @typedef RegExpMatchObject
17068
+ * Info on the match.
17069
+ * @property {number} index
17070
+ * The index of the search at which the result was found.
17071
+ * @property {string} input
17072
+ * A copy of the search string in the text node.
17073
+ * @property {[...Array<Parents>, Text]} stack
17074
+ * All ancestors of the text node, where the last node is the text itself.
17075
+ *
17076
+ * @typedef {RegExp | string} Find
17077
+ * Pattern to find.
17078
+ *
17079
+ * Strings are escaped and then turned into global expressions.
17080
+ *
17081
+ * @typedef {Array<FindAndReplaceTuple>} FindAndReplaceList
17082
+ * Several find and replaces, in array form.
17083
+ *
17084
+ * @typedef {[Find, Replace?]} FindAndReplaceTuple
17085
+ * Find and replace in tuple form.
17086
+ *
17087
+ * @typedef {ReplaceFunction | string | null | undefined} Replace
17088
+ * Thing to replace with.
17089
+ *
17090
+ * @callback ReplaceFunction
17091
+ * Callback called when a search matches.
17092
+ * @param {...any} parameters
17093
+ * The parameters are the result of corresponding search expression:
17094
+ *
17095
+ * * `value` (`string`) — whole match
17096
+ * * `...capture` (`Array<string>`) — matches from regex capture groups
17097
+ * * `match` (`RegExpMatchObject`) — info on the match
17098
+ * @returns {Array<PhrasingContent> | PhrasingContent | string | false | null | undefined}
17099
+ * Thing to replace with.
17100
+ *
17101
+ * * when `null`, `undefined`, `''`, remove the match
17102
+ * * …or when `false`, do not replace at all
17103
+ * * …or when `string`, replace with a text node of that value
17104
+ * * …or when `Node` or `Array<Node>`, replace with those nodes
17105
+ *
17106
+ * @typedef {[RegExp, ReplaceFunction]} Pair
17107
+ * Normalized find and replace.
17108
+ *
17109
+ * @typedef {Array<Pair>} Pairs
17110
+ * All find and replaced.
17111
+ *
17112
+ * @typedef Options
17113
+ * Configuration.
17114
+ * @property {Test | null | undefined} [ignore]
17115
+ * Test for which nodes to ignore (optional).
17116
+ */
17117
+ /**
16171
17118
  * Find patterns in a tree and replace them.
16172
17119
  *
16173
17120
  * The algorithm searches the tree in *preorder* for complete values in `Text`
@@ -16308,6 +17255,12 @@ function toFunction(replace$1) {
16308
17255
 
16309
17256
  //#endregion
16310
17257
  //#region node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.js
17258
+ /**
17259
+ * @import {RegExpMatchObject, ReplaceFunction} from 'mdast-util-find-and-replace'
17260
+ * @import {CompileContext, Extension as FromMarkdownExtension, Handle as FromMarkdownHandle, Transform as FromMarkdownTransform} from 'mdast-util-from-markdown'
17261
+ * @import {ConstructName, Options as ToMarkdownExtension} from 'mdast-util-to-markdown'
17262
+ * @import {Link, PhrasingContent} from 'mdast'
17263
+ */
16311
17264
  /** @type {ConstructName} */
16312
17265
  const inConstruct = "phrasing";
16313
17266
  /** @type {Array<ConstructName>} */
@@ -16524,6 +17477,20 @@ function previous(match, email) {
16524
17477
 
16525
17478
  //#endregion
16526
17479
  //#region node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.js
17480
+ /**
17481
+ * @import {
17482
+ * CompileContext,
17483
+ * Extension as FromMarkdownExtension,
17484
+ * Handle as FromMarkdownHandle
17485
+ * } from 'mdast-util-from-markdown'
17486
+ * @import {ToMarkdownOptions} from 'mdast-util-gfm-footnote'
17487
+ * @import {
17488
+ * Handle as ToMarkdownHandle,
17489
+ * Map,
17490
+ * Options as ToMarkdownExtension
17491
+ * } from 'mdast-util-to-markdown'
17492
+ * @import {FootnoteDefinition, FootnoteReference} from 'mdast'
17493
+ */
16527
17494
  footnoteReference.peek = footnoteReferencePeek;
16528
17495
  /**
16529
17496
  * @this {CompileContext}
@@ -17095,6 +18062,35 @@ function toAlignment(value) {
17095
18062
  //#endregion
17096
18063
  //#region node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.js
17097
18064
  /**
18065
+ * @typedef {import('mdast').InlineCode} InlineCode
18066
+ * @typedef {import('mdast').Table} Table
18067
+ * @typedef {import('mdast').TableCell} TableCell
18068
+ * @typedef {import('mdast').TableRow} TableRow
18069
+ *
18070
+ * @typedef {import('markdown-table').Options} MarkdownTableOptions
18071
+ *
18072
+ * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
18073
+ * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
18074
+ * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
18075
+ *
18076
+ * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
18077
+ * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
18078
+ * @typedef {import('mdast-util-to-markdown').State} State
18079
+ * @typedef {import('mdast-util-to-markdown').Info} Info
18080
+ */
18081
+ /**
18082
+ * @typedef Options
18083
+ * Configuration.
18084
+ * @property {boolean | null | undefined} [tableCellPadding=true]
18085
+ * Whether to add a space of padding between delimiters and cells (default:
18086
+ * `true`).
18087
+ * @property {boolean | null | undefined} [tablePipeAlign=true]
18088
+ * Whether to align the delimiters (default: `true`).
18089
+ * @property {MarkdownTableOptions['stringLength'] | null | undefined} [stringLength]
18090
+ * Function to detect the length of table cell content, used when aligning
18091
+ * the delimiters between cells (optional).
18092
+ */
18093
+ /**
17098
18094
  * Create an extension for `mdast-util-from-markdown` to enable GFM tables in
17099
18095
  * markdown.
17100
18096
  *
@@ -17257,8 +18253,7 @@ function gfmTableToMarkdown(options) {
17257
18253
  * @param {TableRow} node
17258
18254
  */
17259
18255
  function handleTableRow(node$1, _, state, info$1) {
17260
- const row = handleTableRowAsData(node$1, state, info$1);
17261
- const value = serializeData([row]);
18256
+ const value = serializeData([handleTableRowAsData(node$1, state, info$1)]);
17262
18257
  return value.slice(0, value.indexOf("\n"));
17263
18258
  }
17264
18259
  /**
@@ -17333,6 +18328,15 @@ function gfmTableToMarkdown(options) {
17333
18328
  //#endregion
17334
18329
  //#region node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.js
17335
18330
  /**
18331
+ * @typedef {import('mdast').ListItem} ListItem
18332
+ * @typedef {import('mdast').Paragraph} Paragraph
18333
+ * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
18334
+ * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
18335
+ * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
18336
+ * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
18337
+ * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
18338
+ */
18339
+ /**
17336
18340
  * Create an extension for `mdast-util-from-markdown` to enable GFM task
17337
18341
  * list items in markdown.
17338
18342
  *
@@ -17435,6 +18439,11 @@ function listItemWithTaskListItem(node$1, parent, state, info$1) {
17435
18439
  //#endregion
17436
18440
  //#region node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.js
17437
18441
  /**
18442
+ * @import {Extension as FromMarkdownExtension} from 'mdast-util-from-markdown'
18443
+ * @import {Options} from 'mdast-util-gfm'
18444
+ * @import {Options as ToMarkdownExtension} from 'mdast-util-to-markdown'
18445
+ */
18446
+ /**
17438
18447
  * Create an extension for `mdast-util-from-markdown` to enable GFM (autolink
17439
18448
  * literals, footnotes, strikethrough, tables, tasklists).
17440
18449
  *
@@ -17473,6 +18482,9 @@ function gfmToMarkdown(options) {
17473
18482
 
17474
18483
  //#endregion
17475
18484
  //#region node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js
18485
+ /**
18486
+ * @import {Code, ConstructRecord, Event, Extension, Previous, State, TokenizeContext, Tokenizer} from 'micromark-util-types'
18487
+ */
17476
18488
  const wwwPrefix = {
17477
18489
  tokenize: tokenizeWwwPrefix,
17478
18490
  partial: true
@@ -18172,6 +19184,9 @@ function previousUnbalanced(events) {
18172
19184
 
18173
19185
  //#endregion
18174
19186
  //#region node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.js
19187
+ /**
19188
+ * @import {Event, Exiter, Extension, Resolver, State, Token, TokenizeContext, Tokenizer} from 'micromark-util-types'
19189
+ */
18175
19190
  const indent = {
18176
19191
  tokenize: tokenizeIndent,
18177
19192
  partial: true
@@ -18590,6 +19605,10 @@ function tokenizeIndent(effects, ok$2, nok) {
18590
19605
  //#endregion
18591
19606
  //#region node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js
18592
19607
  /**
19608
+ * @import {Options} from 'micromark-extension-gfm-strikethrough'
19609
+ * @import {Event, Extension, Resolver, State, Token, TokenizeContext, Tokenizer} from 'micromark-util-types'
19610
+ */
19611
+ /**
18593
19612
  * Create an extension for `micromark` to enable GFM strikethrough syntax.
18594
19613
  *
18595
19614
  * @param {Options | null | undefined} [options={}]
@@ -18860,6 +19879,16 @@ function gfmTableAlign(events, index$1) {
18860
19879
  //#endregion
18861
19880
  //#region node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.js
18862
19881
  /**
19882
+ * @import {Event, Extension, Point, Resolver, State, Token, TokenizeContext, Tokenizer} from 'micromark-util-types'
19883
+ */
19884
+ /**
19885
+ * @typedef {[number, number, number, number]} Range
19886
+ * Cell info.
19887
+ *
19888
+ * @typedef {0 | 1 | 2 | 3} RowKind
19889
+ * Where we are: `1` for head row, `2` for delimiter row, `3` for body row.
19890
+ */
19891
+ /**
18863
19892
  * Create an HTML extension for `micromark` to support GitHub tables syntax.
18864
19893
  *
18865
19894
  * @returns {Extension}
@@ -19544,6 +20573,9 @@ function getPoint(events, index$1) {
19544
20573
 
19545
20574
  //#endregion
19546
20575
  //#region node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js
20576
+ /**
20577
+ * @import {Extension, State, TokenizeContext, Tokenizer} from 'micromark-util-types'
20578
+ */
19547
20579
  const tasklistCheck = {
19548
20580
  name: "tasklistCheck",
19549
20581
  tokenize: tokenizeTasklistCheck
@@ -19662,6 +20694,12 @@ function spaceThenNonSpace(effects, ok$2, nok) {
19662
20694
  //#endregion
19663
20695
  //#region node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.js
19664
20696
  /**
20697
+ * @typedef {import('micromark-extension-gfm-footnote').HtmlOptions} HtmlOptions
20698
+ * @typedef {import('micromark-extension-gfm-strikethrough').Options} Options
20699
+ * @typedef {import('micromark-util-types').Extension} Extension
20700
+ * @typedef {import('micromark-util-types').HtmlExtension} HtmlExtension
20701
+ */
20702
+ /**
19665
20703
  * Create an extension for `micromark` to enable GFM syntax.
19666
20704
  *
19667
20705
  * @param {Options | null | undefined} [options]
@@ -19684,6 +20722,13 @@ function gfm(options) {
19684
20722
 
19685
20723
  //#endregion
19686
20724
  //#region node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js
20725
+ /**
20726
+ * @import {Root} from 'mdast'
20727
+ * @import {Options} from 'remark-gfm'
20728
+ * @import {} from 'remark-parse'
20729
+ * @import {} from 'remark-stringify'
20730
+ * @import {Processor} from 'unified'
20731
+ */
19687
20732
  /** @type {Options} */
19688
20733
  const emptyOptions$1 = {};
19689
20734
  /**
@@ -19721,7 +20766,7 @@ async function mdatExpand(tree, file, options) {
19721
20766
  keywordPrefix,
19722
20767
  metaCommentIdentifier
19723
20768
  });
19724
- if (commentMarker !== void 0 && commentMarker.type === "open" && rules[commentMarker.keyword] !== void 0) commentMarkers.push(commentMarker);
20769
+ if (commentMarker?.type === "open" && rules[commentMarker.keyword] !== void 0) commentMarkers.push(commentMarker);
19725
20770
  });
19726
20771
  commentMarkers.sort((a, b) => rules[a.keyword].applicationOrder - rules[b.keyword].applicationOrder);
19727
20772
  for (const comment of commentMarkers) {
@@ -19783,6 +20828,9 @@ Schema.prototype.space = void 0;
19783
20828
  //#endregion
19784
20829
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js
19785
20830
  /**
20831
+ * @import {Info, Space} from 'property-information'
20832
+ */
20833
+ /**
19786
20834
  * @param {ReadonlyArray<Schema>} definitions
19787
20835
  * Definitions.
19788
20836
  * @param {Space | undefined} [space]
@@ -19875,6 +20923,9 @@ function increment() {
19875
20923
 
19876
20924
  //#endregion
19877
20925
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js
20926
+ /**
20927
+ * @import {Space} from 'property-information'
20928
+ */
19878
20929
  const checks = Object.keys(types_exports);
19879
20930
  var DefinedInfo = class extends Info {
19880
20931
  /**
@@ -19920,6 +20971,33 @@ function mark(values, key$1, value) {
19920
20971
  //#endregion
19921
20972
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js
19922
20973
  /**
20974
+ * @import {Info, Space} from 'property-information'
20975
+ */
20976
+ /**
20977
+ * @typedef Definition
20978
+ * Definition of a schema.
20979
+ * @property {Record<string, string> | undefined} [attributes]
20980
+ * Normalzed names to special attribute case.
20981
+ * @property {ReadonlyArray<string> | undefined} [mustUseProperty]
20982
+ * Normalized names that must be set as properties.
20983
+ * @property {Record<string, number | null>} properties
20984
+ * Property names to their types.
20985
+ * @property {Space | undefined} [space]
20986
+ * Space.
20987
+ * @property {Transform} transform
20988
+ * Transform a property name.
20989
+ */
20990
+ /**
20991
+ * @callback Transform
20992
+ * Transform.
20993
+ * @param {Record<string, string>} attributes
20994
+ * Attributes.
20995
+ * @param {string} property
20996
+ * Property.
20997
+ * @returns {string}
20998
+ * Attribute.
20999
+ */
21000
+ /**
19923
21001
  * @param {Definition} definition
19924
21002
  * Definition.
19925
21003
  * @returns {Schema}
@@ -20945,6 +22023,9 @@ const xml = create({
20945
22023
 
20946
22024
  //#endregion
20947
22025
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.js
22026
+ /**
22027
+ * @import {Schema} from 'property-information'
22028
+ */
20948
22029
  const cap = /[A-Z]/g;
20949
22030
  const dash = /-[a-z]/g;
20950
22031
  const valid = /^data[-\w.:]+$/i;
@@ -21172,6 +22253,54 @@ function parse$2(value) {
21172
22253
  //#endregion
21173
22254
  //#region node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.js
21174
22255
  /**
22256
+ * @import {Element, Nodes, RootContent, Root} from 'hast'
22257
+ * @import {Info, Schema} from 'property-information'
22258
+ */
22259
+ /**
22260
+ * @typedef {Array<Nodes | PrimitiveChild>} ArrayChildNested
22261
+ * List of children (deep).
22262
+ */
22263
+ /**
22264
+ * @typedef {Array<ArrayChildNested | Nodes | PrimitiveChild>} ArrayChild
22265
+ * List of children.
22266
+ */
22267
+ /**
22268
+ * @typedef {Array<number | string>} ArrayValue
22269
+ * List of property values for space- or comma separated values (such as `className`).
22270
+ */
22271
+ /**
22272
+ * @typedef {ArrayChild | Nodes | PrimitiveChild} Child
22273
+ * Acceptable child value.
22274
+ */
22275
+ /**
22276
+ * @typedef {number | string | null | undefined} PrimitiveChild
22277
+ * Primitive children, either ignored (nullish), or turned into text nodes.
22278
+ */
22279
+ /**
22280
+ * @typedef {boolean | number | string | null | undefined} PrimitiveValue
22281
+ * Primitive property value.
22282
+ */
22283
+ /**
22284
+ * @typedef {Record<string, PropertyValue | Style>} Properties
22285
+ * Acceptable value for element properties.
22286
+ */
22287
+ /**
22288
+ * @typedef {ArrayValue | PrimitiveValue} PropertyValue
22289
+ * Primitive value or list value.
22290
+ */
22291
+ /**
22292
+ * @typedef {Element | Root} Result
22293
+ * Result from a `h` (or `s`) call.
22294
+ */
22295
+ /**
22296
+ * @typedef {number | string} StyleValue
22297
+ * Value for a CSS style field.
22298
+ */
22299
+ /**
22300
+ * @typedef {Record<string, StyleValue>} Style
22301
+ * Supported value of a `style` prop.
22302
+ */
22303
+ /**
21175
22304
  * @param {Schema} schema
21176
22305
  * Schema to use.
21177
22306
  * @param {string} defaultTagName
@@ -21417,6 +22546,18 @@ const svgCaseSensitiveTagNames = [
21417
22546
 
21418
22547
  //#endregion
21419
22548
  //#region node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.js
22549
+ /**
22550
+ * @typedef {import('./jsx-classic.js').Element} h.JSX.Element
22551
+ * @typedef {import('./jsx-classic.js').ElementChildrenAttribute} h.JSX.ElementChildrenAttribute
22552
+ * @typedef {import('./jsx-classic.js').IntrinsicAttributes} h.JSX.IntrinsicAttributes
22553
+ * @typedef {import('./jsx-classic.js').IntrinsicElements} h.JSX.IntrinsicElements
22554
+ */
22555
+ /**
22556
+ * @typedef {import('./jsx-classic.js').Element} s.JSX.Element
22557
+ * @typedef {import('./jsx-classic.js').ElementChildrenAttribute} s.JSX.ElementChildrenAttribute
22558
+ * @typedef {import('./jsx-classic.js').IntrinsicAttributes} s.JSX.IntrinsicAttributes
22559
+ * @typedef {import('./jsx-classic.js').IntrinsicElements} s.JSX.IntrinsicElements
22560
+ */
21420
22561
  /** @type {ReturnType<createH>} */
21421
22562
  const h = createH(html, "div");
21422
22563
  /** @type {ReturnType<createH>} */
@@ -21519,6 +22660,26 @@ const webNamespaces = {
21519
22660
 
21520
22661
  //#endregion
21521
22662
  //#region node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.js
22663
+ /**
22664
+ * @import {ElementData, Element, Nodes, RootContent, Root} from 'hast'
22665
+ * @import {DefaultTreeAdapterMap, Token} from 'parse5'
22666
+ * @import {Schema} from 'property-information'
22667
+ * @import {Point, Position} from 'unist'
22668
+ * @import {VFile} from 'vfile'
22669
+ * @import {Options} from 'hast-util-from-parse5'
22670
+ */
22671
+ /**
22672
+ * @typedef State
22673
+ * Info passed around about the current state.
22674
+ * @property {VFile | undefined} file
22675
+ * Corresponding file.
22676
+ * @property {boolean} location
22677
+ * Whether location info was found.
22678
+ * @property {Schema} schema
22679
+ * Current schema.
22680
+ * @property {boolean | undefined} verbose
22681
+ * Add extra positional info.
22682
+ */
21522
22683
  const own = {}.hasOwnProperty;
21523
22684
  /** @type {unknown} */
21524
22685
  const proto = Object.prototype;
@@ -26283,8 +27444,7 @@ var Parser = class {
26283
27444
  }
26284
27445
  if (!token$1.location) return;
26285
27446
  const siblings = this.treeAdapter.getChildNodes(parent);
26286
- const textNodeIdx = beforeElement ? siblings.lastIndexOf(beforeElement) : siblings.length;
26287
- const textNode = siblings[textNodeIdx - 1];
27447
+ const textNode = siblings[(beforeElement ? siblings.lastIndexOf(beforeElement) : siblings.length) - 1];
26288
27448
  if (this.treeAdapter.getNodeSourceCodeLocation(textNode)) {
26289
27449
  const { endLine, endCol, endOffset } = token$1.location;
26290
27450
  this.treeAdapter.updateNodeSourceCodeLocation(textNode, {
@@ -26499,8 +27659,7 @@ var Parser = class {
26499
27659
  }
26500
27660
  /** @protected */
26501
27661
  _isSpecialElement(element$1, id) {
26502
- const ns = this.treeAdapter.getNamespaceURI(element$1);
26503
- return SPECIAL_ELEMENTS[ns].has(id);
27662
+ return SPECIAL_ELEMENTS[this.treeAdapter.getNamespaceURI(element$1)].has(id);
26504
27663
  }
26505
27664
  /** @internal */
26506
27665
  onCharacter(token$1) {
@@ -26987,8 +28146,7 @@ function aaRecreateElementFromEntry(p, elementEntry) {
26987
28146
  return newElement;
26988
28147
  }
26989
28148
  function aaInsertLastNodeInCommonAncestor(p, commonAncestor, lastElement) {
26990
- const tn = p.treeAdapter.getTagName(commonAncestor);
26991
- const tid = getTagID(tn);
28149
+ const tid = getTagID(p.treeAdapter.getTagName(commonAncestor));
26992
28150
  if (p._isElementCausesFosterParenting(tid)) p._fosterParentElement(lastElement);
26993
28151
  else {
26994
28152
  const ns = p.treeAdapter.getNamespaceURI(commonAncestor);
@@ -28841,6 +29999,12 @@ const errors = {
28841
29999
 
28842
30000
  //#endregion
28843
30001
  //#region node_modules/.pnpm/hast-util-from-html@2.0.3/node_modules/hast-util-from-html/lib/index.js
30002
+ /**
30003
+ * @import {Root} from 'hast'
30004
+ * @import {ParserError} from 'parse5'
30005
+ * @import {Value} from 'vfile'
30006
+ * @import {ErrorCode, Options} from './types.js'
30007
+ */
28844
30008
  const base = "https://html.spec.whatwg.org/multipage/parsing.html#parse-error-";
28845
30009
  const dashToCamelRe = /-[a-z]/g;
28846
30010
  const formatCRe = /%c(?:([-+])(\d+))?/g;
@@ -28868,12 +30032,11 @@ function fromHtml(value, options) {
28868
30032
  const file = value instanceof VFile ? value : new VFile(value);
28869
30033
  const parseFunction = settings.fragment ? parseFragment : parse;
28870
30034
  const document$2 = String(file);
28871
- const p5Document = parseFunction(document$2, {
30035
+ return fromParse5(parseFunction(document$2, {
28872
30036
  sourceCodeLocationInfo: true,
28873
30037
  onParseError: settings.onerror ? internalOnerror : null,
28874
30038
  scriptingEnabled: false
28875
- });
28876
- return fromParse5(p5Document, {
30039
+ }), {
28877
30040
  file,
28878
30041
  space: settings.space,
28879
30042
  verbose: settings.verbose
@@ -28945,8 +30108,7 @@ function fromHtml(value, options) {
28945
30108
  */
28946
30109
  function formatC(_, $1, $2) {
28947
30110
  const offset = ($2 ? Number.parseInt($2, 10) : 0) * ($1 === "-" ? -1 : 1);
28948
- const char = document$2.charAt(error.startOffset + offset);
28949
- return visualizeCharacter(char);
30111
+ return visualizeCharacter(document$2.charAt(error.startOffset + offset));
28950
30112
  }
28951
30113
  /**
28952
30114
  * Format the character code.
@@ -29214,11 +30376,10 @@ function mergeRecords$1(values, utils$2, meta) {
29214
30376
  const propValues = [];
29215
30377
  for (const value of values) if (objectHasProperty(value, key$1)) propValues.push(value[key$1]);
29216
30378
  if (propValues.length === 0) continue;
29217
- const updatedMeta = utils$2.metaDataUpdater(meta, {
30379
+ const propertyResult = mergeUnknowns(propValues, utils$2, utils$2.metaDataUpdater(meta, {
29218
30380
  key: key$1,
29219
30381
  parents: values
29220
- });
29221
- const propertyResult = mergeUnknowns(propValues, utils$2, updatedMeta);
30382
+ }));
29222
30383
  if (propertyResult === actions.skip) continue;
29223
30384
  if (key$1 === "__proto__") Object.defineProperty(result, key$1, {
29224
30385
  value: propertyResult,
@@ -29390,8 +30551,7 @@ function stripUndefinedDeep(object) {
29390
30551
  }, {});
29391
30552
  }
29392
30553
  function deepMergeDefined(...objects) {
29393
- const stripped = objects.map((v, i) => i === 0 ? v : stripUndefinedDeep(v));
29394
- return deepmerge(...stripped);
30554
+ return deepmerge(...objects.map((v, i) => i === 0 ? v : stripUndefinedDeep(v)));
29395
30555
  }
29396
30556
 
29397
30557
  //#endregion