nuxt-ai-ready 2.5.0 → 2.5.2

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 (206) hide show
  1. package/dist/chunks/agent-skills.mjs +1 -1
  2. package/dist/chunks/prerender.mjs +1 -1
  3. package/dist/cli.mjs +2 -0
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +1 -1
  6. package/dist/runtime/server/db/drizzle/queries.js +0 -1
  7. package/dist/runtime/server/db/queries.d.ts +2 -0
  8. package/dist/runtime/server/db/queries.js +11 -5
  9. package/dist/runtime/server/db/seed.d.ts +2 -2
  10. package/dist/runtime/server/routes/__ai-ready/reindex.post.js +2 -0
  11. package/dist/runtime/server/utils/batchIndex.js +4 -2
  12. package/dist/runtime/server/utils/checkStale.d.ts +1 -1
  13. package/dist/runtime/server/utils/checkStale.js +1 -1
  14. package/dist/runtime/server/utils/indexPage.d.ts +8 -1
  15. package/dist/runtime/server/utils/indexPage.js +13 -5
  16. package/dist/shared/{nuxt-ai-ready.DsokNmXc.mjs → nuxt-ai-ready.CLSWou20.mjs} +2 -0
  17. package/node_modules/@mdream/js/LICENSE.md +9 -0
  18. package/node_modules/@mdream/js/README.md +792 -0
  19. package/node_modules/@mdream/js/bin/mdream.mjs +2 -0
  20. package/node_modules/@mdream/js/dist/_chunks/const.mjs +134 -0
  21. package/node_modules/@mdream/js/dist/_chunks/index.d.mts +9 -0
  22. package/node_modules/@mdream/js/dist/_chunks/markdown-processor.mjs +1968 -0
  23. package/node_modules/@mdream/js/dist/_chunks/minimal.d.mts +6 -0
  24. package/node_modules/@mdream/js/dist/_chunks/parse.mjs +2756 -0
  25. package/node_modules/@mdream/js/dist/_chunks/plugins.mjs +725 -0
  26. package/node_modules/@mdream/js/dist/_chunks/resolve-plugins.mjs +44 -0
  27. package/node_modules/@mdream/js/dist/_chunks/stream.mjs +37 -0
  28. package/node_modules/@mdream/js/dist/_chunks/types.d.mts +473 -0
  29. package/node_modules/@mdream/js/dist/cli.d.mts +1 -0
  30. package/node_modules/@mdream/js/dist/cli.mjs +32 -0
  31. package/node_modules/@mdream/js/dist/core.d.mts +15 -0
  32. package/node_modules/@mdream/js/dist/core.mjs +28 -0
  33. package/node_modules/@mdream/js/dist/index.d.mts +4 -0
  34. package/node_modules/@mdream/js/dist/index.mjs +58 -0
  35. package/node_modules/@mdream/js/dist/llms-txt.d.mts +86 -0
  36. package/node_modules/@mdream/js/dist/llms-txt.mjs +308 -0
  37. package/node_modules/@mdream/js/dist/negotiate.d.mts +35 -0
  38. package/node_modules/@mdream/js/dist/negotiate.mjs +121 -0
  39. package/node_modules/@mdream/js/dist/parse.d.mts +90 -0
  40. package/node_modules/@mdream/js/dist/parse.mjs +2 -0
  41. package/node_modules/@mdream/js/dist/plugins.d.mts +85 -0
  42. package/node_modules/@mdream/js/dist/plugins.mjs +2 -0
  43. package/node_modules/@mdream/js/dist/preset/minimal.d.mts +2 -0
  44. package/node_modules/@mdream/js/dist/preset/minimal.mjs +33 -0
  45. package/node_modules/@mdream/js/dist/splitter.d.mts +18 -0
  46. package/node_modules/@mdream/js/dist/splitter.mjs +194 -0
  47. package/node_modules/@mdream/js/package.json +103 -0
  48. package/node_modules/cac/LICENSE +21 -0
  49. package/node_modules/cac/README.md +492 -0
  50. package/node_modules/cac/dist/index.d.ts +196 -0
  51. package/node_modules/cac/dist/index.js +638 -0
  52. package/node_modules/cac/package.json +72 -0
  53. package/node_modules/mdream/LICENSE.md +9 -0
  54. package/node_modules/mdream/README.md +1091 -0
  55. package/node_modules/mdream/bin/mdream.mjs +46 -0
  56. package/node_modules/mdream/dist/browser.d.mts +105 -0
  57. package/node_modules/mdream/dist/browser.mjs +262 -0
  58. package/node_modules/mdream/dist/edge.d.mts +100 -0
  59. package/node_modules/mdream/dist/edge.mjs +250 -0
  60. package/node_modules/mdream/dist/iife.js +605 -0
  61. package/node_modules/mdream/dist/index.d.mts +89 -0
  62. package/node_modules/mdream/dist/index.mjs +184 -0
  63. package/node_modules/mdream/dist/wasm.d.mts +100 -0
  64. package/node_modules/mdream/dist/wasm.mjs +140 -0
  65. package/node_modules/mdream/dist/worker.d.mts +101 -0
  66. package/node_modules/mdream/dist/worker.mjs +217 -0
  67. package/node_modules/mdream/napi/index.d.mts +127 -0
  68. package/node_modules/mdream/napi/index.d.ts +127 -0
  69. package/node_modules/mdream/napi/index.mjs +725 -0
  70. package/node_modules/mdream/napi/rust.android-arm-eabi.node +0 -0
  71. package/node_modules/mdream/napi/rust.android-arm64.node +0 -0
  72. package/node_modules/mdream/napi/rust.darwin-arm64.node +0 -0
  73. package/node_modules/mdream/napi/rust.darwin-x64.node +0 -0
  74. package/node_modules/mdream/napi/rust.freebsd-x64.node +0 -0
  75. package/node_modules/mdream/napi/rust.linux-arm-gnueabihf.node +0 -0
  76. package/node_modules/mdream/napi/rust.linux-arm64-gnu.node +0 -0
  77. package/node_modules/mdream/napi/rust.linux-arm64-musl.node +0 -0
  78. package/node_modules/mdream/napi/rust.linux-x64-gnu.node +0 -0
  79. package/node_modules/mdream/napi/rust.linux-x64-musl.node +0 -0
  80. package/node_modules/mdream/napi/rust.wasi.cjs +2144 -0
  81. package/node_modules/mdream/napi/rust.wasm32-wasi.wasm +0 -0
  82. package/node_modules/mdream/napi/rust.win32-arm64-msvc.node +0 -0
  83. package/node_modules/mdream/napi/rust.win32-x64-msvc.node +0 -0
  84. package/node_modules/mdream/node_modules/@emnapi/core/LICENSE +21 -0
  85. package/node_modules/mdream/node_modules/@emnapi/core/README.md +1 -0
  86. package/node_modules/mdream/node_modules/@emnapi/core/dist/emnapi-core.d.ts +392 -0
  87. package/node_modules/mdream/node_modules/@emnapi/core/dist/emnapi-core.full.d.ts +392 -0
  88. package/node_modules/mdream/node_modules/@emnapi/core/dist/emnapi-core.full.js +8351 -0
  89. package/node_modules/mdream/node_modules/@emnapi/core/dist/emnapi-core.js +7268 -0
  90. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/async-work.d.ts +5 -0
  91. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/async-work.js +843 -0
  92. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/index.d.ts +4 -0
  93. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/index.js +3 -0
  94. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/threadsafe-function.d.ts +5 -0
  95. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/threadsafe-function.js +1010 -0
  96. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/v8.d.ts +5 -0
  97. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/v8.js +1446 -0
  98. package/node_modules/mdream/node_modules/@emnapi/core/package.json +39 -0
  99. package/node_modules/mdream/node_modules/@emnapi/core/rollup.config.js +60 -0
  100. package/node_modules/mdream/node_modules/@emnapi/runtime/LICENSE +21 -0
  101. package/node_modules/mdream/node_modules/@emnapi/runtime/README.md +1 -0
  102. package/node_modules/mdream/node_modules/@emnapi/runtime/dist/emnapi.d.ts +833 -0
  103. package/node_modules/mdream/node_modules/@emnapi/runtime/dist/emnapi.js +2306 -0
  104. package/node_modules/mdream/node_modules/@emnapi/runtime/dist/emnapi.js.map +1 -0
  105. package/node_modules/mdream/node_modules/@emnapi/runtime/index.cjs +63 -0
  106. package/node_modules/mdream/node_modules/@emnapi/runtime/package.json +39 -0
  107. package/node_modules/mdream/node_modules/@emnapi/runtime/rollup.config.js +25 -0
  108. package/node_modules/mdream/node_modules/@emnapi/wasi-threads/LICENSE +21 -0
  109. package/node_modules/mdream/node_modules/@emnapi/wasi-threads/README.md +203 -0
  110. package/node_modules/mdream/node_modules/@emnapi/wasi-threads/dist/wasi-threads.d.ts +236 -0
  111. package/node_modules/mdream/node_modules/@emnapi/wasi-threads/dist/wasi-threads.js +1086 -0
  112. package/node_modules/mdream/node_modules/@emnapi/wasi-threads/package.json +35 -0
  113. package/node_modules/mdream/node_modules/@emnapi/wasi-threads/rollup.config.js +6 -0
  114. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/dist/emnapi-plugins.cjs +1472 -0
  115. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/dist/emnapi-plugins.js +1470 -0
  116. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs +237 -0
  117. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/dist/fs.js +18260 -0
  118. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/fs-proxy.js +317 -0
  119. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/package.json +67 -0
  120. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/runtime.cjs +39 -0
  121. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/runtime.js +36 -0
  122. package/node_modules/mdream/node_modules/@tybys/wasm-util/LICENSE +21 -0
  123. package/node_modules/mdream/node_modules/@tybys/wasm-util/README.md +193 -0
  124. package/node_modules/mdream/node_modules/@tybys/wasm-util/dist/tsdoc-metadata.json +11 -0
  125. package/node_modules/mdream/node_modules/@tybys/wasm-util/dist/wasm-util.d.ts +423 -0
  126. package/node_modules/mdream/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js +2932 -0
  127. package/node_modules/mdream/node_modules/@tybys/wasm-util/dist/wasm-util.esm.js +2932 -0
  128. package/node_modules/mdream/node_modules/@tybys/wasm-util/dist/wasm-util.esm.min.js +1 -0
  129. package/node_modules/mdream/node_modules/@tybys/wasm-util/dist/wasm-util.js +2954 -0
  130. package/node_modules/mdream/node_modules/@tybys/wasm-util/dist/wasm-util.min.js +1 -0
  131. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/asyncify.js +158 -0
  132. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/index.js +13 -0
  133. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/jspi.js +46 -0
  134. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/load.js +97 -0
  135. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/memory.js +35 -0
  136. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/error.js +103 -0
  137. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/fd.js +268 -0
  138. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/fs.js +3 -0
  139. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/index.js +192 -0
  140. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/path.js +316 -0
  141. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/preview1.js +1599 -0
  142. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/rights.js +141 -0
  143. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/types.js +220 -0
  144. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/util.js +128 -0
  145. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/webassembly.js +13 -0
  146. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/asyncify.mjs +153 -0
  147. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/index.mjs +9 -0
  148. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/jspi.mjs +39 -0
  149. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/load.mjs +89 -0
  150. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/memory.mjs +28 -0
  151. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/error.mjs +97 -0
  152. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/fd.mjs +256 -0
  153. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/fs.mjs +1 -0
  154. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/index.mjs +186 -0
  155. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/path.mjs +310 -0
  156. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/preview1.mjs +1593 -0
  157. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/rights.mjs +135 -0
  158. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/types.mjs +216 -0
  159. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/util.mjs +113 -0
  160. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/webassembly.mjs +9 -0
  161. package/node_modules/mdream/node_modules/@tybys/wasm-util/package.json +58 -0
  162. package/node_modules/mdream/node_modules/tslib/CopyrightNotice.txt +15 -0
  163. package/node_modules/mdream/node_modules/tslib/LICENSE.txt +12 -0
  164. package/node_modules/mdream/node_modules/tslib/README.md +164 -0
  165. package/node_modules/mdream/node_modules/tslib/SECURITY.md +41 -0
  166. package/node_modules/mdream/node_modules/tslib/modules/index.d.ts +38 -0
  167. package/node_modules/mdream/node_modules/tslib/modules/index.js +70 -0
  168. package/node_modules/mdream/node_modules/tslib/modules/package.json +3 -0
  169. package/node_modules/mdream/node_modules/tslib/package.json +47 -0
  170. package/node_modules/mdream/node_modules/tslib/tslib.d.ts +460 -0
  171. package/node_modules/mdream/node_modules/tslib/tslib.es6.html +1 -0
  172. package/node_modules/mdream/node_modules/tslib/tslib.es6.js +402 -0
  173. package/node_modules/mdream/node_modules/tslib/tslib.es6.mjs +401 -0
  174. package/node_modules/mdream/node_modules/tslib/tslib.html +1 -0
  175. package/node_modules/mdream/node_modules/tslib/tslib.js +484 -0
  176. package/node_modules/mdream/package.json +110 -0
  177. package/node_modules/mdream/skills/mdream/SKILL.md +124 -0
  178. package/node_modules/mdream/skills/mdream/references/runtimes.md +49 -0
  179. package/node_modules/mdream/wasm/mdream_edge.d.ts +90 -0
  180. package/node_modules/mdream/wasm/mdream_edge.js +517 -0
  181. package/node_modules/mdream/wasm/mdream_edge_bg.wasm +0 -0
  182. package/node_modules/mdream/wasm/mdream_edge_bg.wasm.d.ts +20 -0
  183. package/node_modules/mdream/wasm/package.json +17 -0
  184. package/node_modules/mdream/wasm-bundler/mdream_edge.d.ts +45 -0
  185. package/node_modules/mdream/wasm-bundler/mdream_edge.js +13 -0
  186. package/node_modules/mdream/wasm-bundler/mdream_edge_bg.js +413 -0
  187. package/node_modules/mdream/wasm-bundler/mdream_edge_bg.wasm +0 -0
  188. package/node_modules/mdream/wasm-bundler/mdream_edge_bg.wasm.d.ts +20 -0
  189. package/node_modules/mdream/wasm-bundler/package.json +19 -0
  190. package/node_modules/pathe/LICENSE +70 -0
  191. package/node_modules/pathe/README.md +73 -0
  192. package/node_modules/pathe/dist/index.cjs +39 -0
  193. package/node_modules/pathe/dist/index.d.cts +47 -0
  194. package/node_modules/pathe/dist/index.d.mts +47 -0
  195. package/node_modules/pathe/dist/index.d.ts +47 -0
  196. package/node_modules/pathe/dist/index.mjs +19 -0
  197. package/node_modules/pathe/dist/shared/pathe.BSlhyZSM.cjs +266 -0
  198. package/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +249 -0
  199. package/node_modules/pathe/dist/utils.cjs +82 -0
  200. package/node_modules/pathe/dist/utils.d.cts +32 -0
  201. package/node_modules/pathe/dist/utils.d.mts +32 -0
  202. package/node_modules/pathe/dist/utils.d.ts +32 -0
  203. package/node_modules/pathe/dist/utils.mjs +77 -0
  204. package/node_modules/pathe/package.json +61 -0
  205. package/node_modules/pathe/utils.d.ts +1 -0
  206. package/package.json +8 -64
@@ -0,0 +1,47 @@
1
+ import * as path from 'node:path';
2
+ import path__default from 'node:path';
3
+
4
+ /**
5
+ * Constant for path separator.
6
+ *
7
+ * Always equals to `"/"`.
8
+ */
9
+ declare const sep = "/";
10
+ declare const normalize: typeof path__default.normalize;
11
+ declare const join: typeof path__default.join;
12
+ declare const resolve: typeof path__default.resolve;
13
+ /**
14
+ * Resolves a string path, resolving '.' and '.' segments and allowing paths above the root.
15
+ *
16
+ * @param path - The path to normalise.
17
+ * @param allowAboveRoot - Whether to allow the resulting path to be above the root directory.
18
+ * @returns the normalised path string.
19
+ */
20
+ declare function normalizeString(path: string, allowAboveRoot: boolean): string;
21
+ declare const isAbsolute: typeof path__default.isAbsolute;
22
+ declare const toNamespacedPath: typeof path__default.toNamespacedPath;
23
+ declare const extname: typeof path__default.extname;
24
+ declare const relative: typeof path__default.relative;
25
+ declare const dirname: typeof path__default.dirname;
26
+ declare const format: typeof path__default.format;
27
+ declare const basename: typeof path__default.basename;
28
+ declare const parse: typeof path__default.parse;
29
+ /**
30
+ * The `path.matchesGlob()` method determines if `path` matches the `pattern`.
31
+ * @param path The path to glob-match against.
32
+ * @param pattern The glob to check the path against.
33
+ */
34
+ declare const matchesGlob: (path: string, pattern: string | string[]) => boolean;
35
+
36
+ type NodePath = typeof path;
37
+ /**
38
+ * The platform-specific file delimiter.
39
+ *
40
+ * Equals to `";"` in windows and `":"` in all other platforms.
41
+ */
42
+ declare const delimiter: ";" | ":";
43
+ declare const posix: NodePath["posix"];
44
+ declare const win32: NodePath["win32"];
45
+ declare const _default: NodePath;
46
+
47
+ export { basename, _default as default, delimiter, dirname, extname, format, isAbsolute, join, matchesGlob, normalize, normalizeString, parse, posix, relative, resolve, sep, toNamespacedPath, win32 };
@@ -0,0 +1,47 @@
1
+ import * as path from 'node:path';
2
+ import path__default from 'node:path';
3
+
4
+ /**
5
+ * Constant for path separator.
6
+ *
7
+ * Always equals to `"/"`.
8
+ */
9
+ declare const sep = "/";
10
+ declare const normalize: typeof path__default.normalize;
11
+ declare const join: typeof path__default.join;
12
+ declare const resolve: typeof path__default.resolve;
13
+ /**
14
+ * Resolves a string path, resolving '.' and '.' segments and allowing paths above the root.
15
+ *
16
+ * @param path - The path to normalise.
17
+ * @param allowAboveRoot - Whether to allow the resulting path to be above the root directory.
18
+ * @returns the normalised path string.
19
+ */
20
+ declare function normalizeString(path: string, allowAboveRoot: boolean): string;
21
+ declare const isAbsolute: typeof path__default.isAbsolute;
22
+ declare const toNamespacedPath: typeof path__default.toNamespacedPath;
23
+ declare const extname: typeof path__default.extname;
24
+ declare const relative: typeof path__default.relative;
25
+ declare const dirname: typeof path__default.dirname;
26
+ declare const format: typeof path__default.format;
27
+ declare const basename: typeof path__default.basename;
28
+ declare const parse: typeof path__default.parse;
29
+ /**
30
+ * The `path.matchesGlob()` method determines if `path` matches the `pattern`.
31
+ * @param path The path to glob-match against.
32
+ * @param pattern The glob to check the path against.
33
+ */
34
+ declare const matchesGlob: (path: string, pattern: string | string[]) => boolean;
35
+
36
+ type NodePath = typeof path;
37
+ /**
38
+ * The platform-specific file delimiter.
39
+ *
40
+ * Equals to `";"` in windows and `":"` in all other platforms.
41
+ */
42
+ declare const delimiter: ";" | ":";
43
+ declare const posix: NodePath["posix"];
44
+ declare const win32: NodePath["win32"];
45
+ declare const _default: NodePath;
46
+
47
+ export { basename, _default as default, delimiter, dirname, extname, format, isAbsolute, join, matchesGlob, normalize, normalizeString, parse, posix, relative, resolve, sep, toNamespacedPath, win32 };
@@ -0,0 +1,19 @@
1
+ import { _ as _path } from './shared/pathe.M-eThtNZ.mjs';
2
+ export { c as basename, d as dirname, e as extname, f as format, i as isAbsolute, j as join, m as matchesGlob, n as normalize, a as normalizeString, p as parse, b as relative, r as resolve, s as sep, t as toNamespacedPath } from './shared/pathe.M-eThtNZ.mjs';
3
+
4
+ const delimiter = /* @__PURE__ */ (() => globalThis.process?.platform === "win32" ? ";" : ":")();
5
+ const _platforms = { posix: void 0, win32: void 0 };
6
+ const mix = (del = delimiter) => {
7
+ return new Proxy(_path, {
8
+ get(_, prop) {
9
+ if (prop === "delimiter") return del;
10
+ if (prop === "posix") return posix;
11
+ if (prop === "win32") return win32;
12
+ return _platforms[prop] || _path[prop];
13
+ }
14
+ });
15
+ };
16
+ const posix = /* @__PURE__ */ mix(":");
17
+ const win32 = /* @__PURE__ */ mix(";");
18
+
19
+ export { posix as default, delimiter, posix, win32 };
@@ -0,0 +1,266 @@
1
+ 'use strict';
2
+
3
+ let _lazyMatch = () => { var __lib__=(()=>{var m=Object.defineProperty,V=Object.getOwnPropertyDescriptor,G=Object.getOwnPropertyNames,T=Object.prototype.hasOwnProperty,q=(r,e)=>{for(var n in e)m(r,n,{get:e[n],enumerable:true});},H=(r,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of G(e))!T.call(r,t)&&t!==n&&m(r,t,{get:()=>e[t],enumerable:!(a=V(e,t))||a.enumerable});return r},J=r=>H(m({},"__esModule",{value:true}),r),w={};q(w,{default:()=>re});var A=r=>Array.isArray(r),d=r=>typeof r=="function",Q=r=>r.length===0,W=r=>typeof r=="number",K=r=>typeof r=="object"&&r!==null,X=r=>r instanceof RegExp,b=r=>typeof r=="string",h=r=>r===void 0,Y=r=>{const e=new Map;return n=>{const a=e.get(n);if(a)return a;const t=r(n);return e.set(n,t),t}},rr=(r,e,n={})=>{const a={cache:{},input:r,index:0,indexMax:0,options:n,output:[]};if(v(e)(a)&&a.index===r.length)return a.output;throw new Error(`Failed to parse at index ${a.indexMax}`)},i=(r,e)=>A(r)?er(r,e):b(r)?ar(r,e):nr(r,e),er=(r,e)=>{const n={};for(const a of r){if(a.length!==1)throw new Error(`Invalid character: "${a}"`);const t=a.charCodeAt(0);n[t]=true;}return a=>{const t=a.index,o=a.input;for(;a.index<o.length&&o.charCodeAt(a.index)in n;)a.index+=1;const u=a.index;if(u>t){if(!h(e)&&!a.options.silent){const s=a.input.slice(t,u),c=d(e)?e(s,o,String(t)):e;h(c)||a.output.push(c);}a.indexMax=Math.max(a.indexMax,a.index);}return true}},nr=(r,e)=>{const n=r.source,a=r.flags.replace(/y|$/,"y"),t=new RegExp(n,a);return g(o=>{t.lastIndex=o.index;const u=t.exec(o.input);if(u){if(!h(e)&&!o.options.silent){const s=d(e)?e(...u,o.input,String(o.index)):e;h(s)||o.output.push(s);}return o.index+=u[0].length,o.indexMax=Math.max(o.indexMax,o.index),true}else return false})},ar=(r,e)=>n=>{if(n.input.startsWith(r,n.index)){if(!h(e)&&!n.options.silent){const t=d(e)?e(r,n.input,String(n.index)):e;h(t)||n.output.push(t);}return n.index+=r.length,n.indexMax=Math.max(n.indexMax,n.index),true}else return false},C=(r,e,n,a)=>{const t=v(r);return g(_(M(o=>{let u=0;for(;u<n;){const s=o.index;if(!t(o)||(u+=1,o.index===s))break}return u>=e})))},tr=(r,e)=>C(r,0,1),f=(r,e)=>C(r,0,1/0),x=(r,e)=>{const n=r.map(v);return g(_(M(a=>{for(let t=0,o=n.length;t<o;t++)if(!n[t](a))return false;return true})))},l=(r,e)=>{const n=r.map(v);return g(_(a=>{for(let t=0,o=n.length;t<o;t++)if(n[t](a))return true;return false}))},M=(r,e=false)=>{const n=v(r);return a=>{const t=a.index,o=a.output.length,u=n(a);return (!u||e)&&(a.index=t,a.output.length!==o&&(a.output.length=o)),u}},_=(r,e)=>{const n=v(r);return n},g=(()=>{let r=0;return e=>{const n=v(e),a=r+=1;return t=>{var o;if(t.options.memoization===false)return n(t);const u=t.index,s=(o=t.cache)[a]||(o[a]=new Map),c=s.get(u);if(c===false)return false;if(W(c))return t.index=c,true;if(c)return t.index=c.index,c.output?.length&&t.output.push(...c.output),true;{const Z=t.output.length;if(n(t)){const D=t.index,U=t.output.length;if(U>Z){const ee=t.output.slice(Z,U);s.set(u,{index:D,output:ee});}else s.set(u,D);return true}else return s.set(u,false),false}}}})(),E=r=>{let e;return n=>(e||(e=v(r())),e(n))},v=Y(r=>{if(d(r))return Q(r)?E(r):r;if(b(r)||X(r))return i(r);if(A(r))return x(r);if(K(r))return l(Object.values(r));throw new Error("Invalid rule")}),P="abcdefghijklmnopqrstuvwxyz",ir=r=>{let e="";for(;r>0;){const n=(r-1)%26;e=P[n]+e,r=Math.floor((r-1)/26);}return e},O=r=>{let e=0;for(let n=0,a=r.length;n<a;n++)e=e*26+P.indexOf(r[n])+1;return e},S=(r,e)=>{if(e<r)return S(e,r);const n=[];for(;r<=e;)n.push(r++);return n},or=(r,e,n)=>S(r,e).map(a=>String(a).padStart(n,"0")),R=(r,e)=>S(O(r),O(e)).map(ir),p=r=>r,z=r=>ur(e=>rr(e,r,{memoization:false}).join("")),ur=r=>{const e={};return n=>e[n]??(e[n]=r(n))},sr=i(/^\*\*\/\*$/,".*"),cr=i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(r,e,n)=>`.*${e?"":"(?:^|/)"}${n.replaceAll(".","\\.")}`),lr=i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(r,e,n,a)=>`.*${e?"":"(?:^|/)"}${n.replaceAll(".","\\.")}(?:${a.replaceAll(",","|").replaceAll(".","\\.")})`),y=i(/\\./,p),pr=i(/[$.*+?^(){}[\]\|]/,r=>`\\${r}`),vr=i(/./,p),hr=i(/^(?:!!)*!(.*)$/,(r,e)=>`(?!^${L(e)}$).*?`),dr=i(/^(!!)+/,""),fr=l([hr,dr]),xr=i(/\/(\*\*\/)+/,"(?:/.+/|/)"),gr=i(/^(\*\*\/)+/,"(?:^|.*/)"),mr=i(/\/(\*\*)$/,"(?:/.*|$)"),_r=i(/\*\*/,".*"),j=l([xr,gr,mr,_r]),Sr=i(/\*\/(?!\*\*\/)/,"[^/]*/"),yr=i(/\*/,"[^/]*"),N=l([Sr,yr]),k=i("?","[^/]"),$r=i("[",p),wr=i("]",p),Ar=i(/[!^]/,"^/"),br=i(/[a-z]-[a-z]|[0-9]-[0-9]/i,p),Cr=i(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Mr=i(/[^\]]/,p),Er=l([y,Cr,br,Mr]),B=x([$r,tr(Ar),f(Er),wr]),Pr=i("{","(?:"),Or=i("}",")"),Rr=i(/(\d+)\.\.(\d+)/,(r,e,n)=>or(+e,+n,Math.min(e.length,n.length)).join("|")),zr=i(/([a-z]+)\.\.([a-z]+)/,(r,e,n)=>R(e,n).join("|")),jr=i(/([A-Z]+)\.\.([A-Z]+)/,(r,e,n)=>R(e.toLowerCase(),n.toLowerCase()).join("|").toUpperCase()),Nr=l([Rr,zr,jr]),I=x([Pr,Nr,Or]),kr=i("{","(?:"),Br=i("}",")"),Ir=i(",","|"),Fr=i(/[$.*+?^(){[\]\|]/,r=>`\\${r}`),Lr=i(/[^}]/,p),Zr=E(()=>F),Dr=l([j,N,k,B,I,Zr,y,Fr,Ir,Lr]),F=x([kr,f(Dr),Br]),Ur=f(l([sr,cr,lr,fr,j,N,k,B,I,F,y,pr,vr])),Vr=Ur,Gr=z(Vr),L=Gr,Tr=i(/\\./,p),qr=i(/./,p),Hr=i(/\*\*\*+/,"*"),Jr=i(/([^/{[(!])\*\*/,(r,e)=>`${e}*`),Qr=i(/(^|.)\*\*(?=[^*/)\]}])/,(r,e)=>`${e}*`),Wr=f(l([Tr,Hr,Jr,Qr,qr])),Kr=Wr,Xr=z(Kr),Yr=Xr,$=(r,e)=>{const n=Array.isArray(r)?r:[r];if(!n.length)return false;const a=n.map($.compile),t=n.every(s=>/(\/(?:\*\*)?|\[\/\])$/.test(s)),o=e.replace(/[\\\/]+/g,"/").replace(/\/$/,t?"/":"");return a.some(s=>s.test(o))};$.compile=r=>new RegExp(`^${L(Yr(r))}$`,"s");var re=$;return J(w)})();
4
+ return __lib__.default || __lib__; };
5
+ let _match;
6
+ const zeptomatch = (path, pattern) => {
7
+ if (!_match) {
8
+ _match = _lazyMatch();
9
+ _lazyMatch = null;
10
+ }
11
+ return _match(path, pattern);
12
+ };
13
+
14
+ const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
15
+ function normalizeWindowsPath(input = "") {
16
+ if (!input) {
17
+ return input;
18
+ }
19
+ return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
20
+ }
21
+
22
+ const _UNC_REGEX = /^[/\\]{2}/;
23
+ const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
24
+ const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
25
+ const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
26
+ const _EXTNAME_RE = /.(\.[^./]+|\.)$/;
27
+ const _PATH_ROOT_RE = /^[/\\]|^[a-zA-Z]:[/\\]/;
28
+ const sep = "/";
29
+ const normalize = function(path) {
30
+ if (path.length === 0) {
31
+ return ".";
32
+ }
33
+ path = normalizeWindowsPath(path);
34
+ const isUNCPath = path.match(_UNC_REGEX);
35
+ const isPathAbsolute = isAbsolute(path);
36
+ const trailingSeparator = path[path.length - 1] === "/";
37
+ path = normalizeString(path, !isPathAbsolute);
38
+ if (path.length === 0) {
39
+ if (isPathAbsolute) {
40
+ return "/";
41
+ }
42
+ return trailingSeparator ? "./" : ".";
43
+ }
44
+ if (trailingSeparator) {
45
+ path += "/";
46
+ }
47
+ if (_DRIVE_LETTER_RE.test(path)) {
48
+ path += "/";
49
+ }
50
+ if (isUNCPath) {
51
+ if (!isPathAbsolute) {
52
+ return `//./${path}`;
53
+ }
54
+ return `//${path}`;
55
+ }
56
+ return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
57
+ };
58
+ const join = function(...segments) {
59
+ let path = "";
60
+ for (const seg of segments) {
61
+ if (!seg) {
62
+ continue;
63
+ }
64
+ if (path.length > 0) {
65
+ const pathTrailing = path[path.length - 1] === "/";
66
+ const segLeading = seg[0] === "/";
67
+ const both = pathTrailing && segLeading;
68
+ if (both) {
69
+ path += seg.slice(1);
70
+ } else {
71
+ path += pathTrailing || segLeading ? seg : `/${seg}`;
72
+ }
73
+ } else {
74
+ path += seg;
75
+ }
76
+ }
77
+ return normalize(path);
78
+ };
79
+ function cwd() {
80
+ if (typeof process !== "undefined" && typeof process.cwd === "function") {
81
+ return process.cwd().replace(/\\/g, "/");
82
+ }
83
+ return "/";
84
+ }
85
+ const resolve = function(...arguments_) {
86
+ arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
87
+ let resolvedPath = "";
88
+ let resolvedAbsolute = false;
89
+ for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
90
+ const path = index >= 0 ? arguments_[index] : cwd();
91
+ if (!path || path.length === 0) {
92
+ continue;
93
+ }
94
+ resolvedPath = `${path}/${resolvedPath}`;
95
+ resolvedAbsolute = isAbsolute(path);
96
+ }
97
+ resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
98
+ if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
99
+ return `/${resolvedPath}`;
100
+ }
101
+ return resolvedPath.length > 0 ? resolvedPath : ".";
102
+ };
103
+ function normalizeString(path, allowAboveRoot) {
104
+ let res = "";
105
+ let lastSegmentLength = 0;
106
+ let lastSlash = -1;
107
+ let dots = 0;
108
+ let char = null;
109
+ for (let index = 0; index <= path.length; ++index) {
110
+ if (index < path.length) {
111
+ char = path[index];
112
+ } else if (char === "/") {
113
+ break;
114
+ } else {
115
+ char = "/";
116
+ }
117
+ if (char === "/") {
118
+ if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {
119
+ if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
120
+ if (res.length > 2) {
121
+ const lastSlashIndex = res.lastIndexOf("/");
122
+ if (lastSlashIndex === -1) {
123
+ res = "";
124
+ lastSegmentLength = 0;
125
+ } else {
126
+ res = res.slice(0, lastSlashIndex);
127
+ lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
128
+ }
129
+ lastSlash = index;
130
+ dots = 0;
131
+ continue;
132
+ } else if (res.length > 0) {
133
+ res = "";
134
+ lastSegmentLength = 0;
135
+ lastSlash = index;
136
+ dots = 0;
137
+ continue;
138
+ }
139
+ }
140
+ if (allowAboveRoot) {
141
+ res += res.length > 0 ? "/.." : "..";
142
+ lastSegmentLength = 2;
143
+ }
144
+ } else {
145
+ if (res.length > 0) {
146
+ res += `/${path.slice(lastSlash + 1, index)}`;
147
+ } else {
148
+ res = path.slice(lastSlash + 1, index);
149
+ }
150
+ lastSegmentLength = index - lastSlash - 1;
151
+ }
152
+ lastSlash = index;
153
+ dots = 0;
154
+ } else if (char === "." && dots !== -1) {
155
+ ++dots;
156
+ } else {
157
+ dots = -1;
158
+ }
159
+ }
160
+ return res;
161
+ }
162
+ const isAbsolute = function(p) {
163
+ return _IS_ABSOLUTE_RE.test(p);
164
+ };
165
+ const toNamespacedPath = function(p) {
166
+ return normalizeWindowsPath(p);
167
+ };
168
+ const extname = function(p) {
169
+ if (p === "..") return "";
170
+ const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
171
+ return match && match[1] || "";
172
+ };
173
+ const relative = function(from, to) {
174
+ const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
175
+ const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
176
+ if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
177
+ return _to.join("/");
178
+ }
179
+ const _fromCopy = [..._from];
180
+ for (const segment of _fromCopy) {
181
+ if (_to[0] !== segment) {
182
+ break;
183
+ }
184
+ _from.shift();
185
+ _to.shift();
186
+ }
187
+ return [..._from.map(() => ".."), ..._to].join("/");
188
+ };
189
+ const dirname = function(p) {
190
+ const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
191
+ if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
192
+ segments[0] += "/";
193
+ }
194
+ return segments.join("/") || (isAbsolute(p) ? "/" : ".");
195
+ };
196
+ const format = function(p) {
197
+ const ext = p.ext ? p.ext.startsWith(".") ? p.ext : `.${p.ext}` : "";
198
+ const segments = [p.root, p.dir, p.base ?? (p.name ?? "") + ext].filter(
199
+ Boolean
200
+ );
201
+ return normalizeWindowsPath(
202
+ p.root ? resolve(...segments) : segments.join("/")
203
+ );
204
+ };
205
+ const basename = function(p, extension) {
206
+ const segments = normalizeWindowsPath(p).split("/");
207
+ let lastSegment = "";
208
+ for (let i = segments.length - 1; i >= 0; i--) {
209
+ const val = segments[i];
210
+ if (val) {
211
+ lastSegment = val;
212
+ break;
213
+ }
214
+ }
215
+ return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
216
+ };
217
+ const parse = function(p) {
218
+ const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\/g, "/") || "";
219
+ const base = basename(p);
220
+ const extension = extname(base);
221
+ return {
222
+ root,
223
+ dir: dirname(p),
224
+ base,
225
+ ext: extension,
226
+ name: base.slice(0, base.length - extension.length)
227
+ };
228
+ };
229
+ const matchesGlob = (path, pattern) => {
230
+ return zeptomatch(pattern, normalize(path));
231
+ };
232
+
233
+ const _path = {
234
+ __proto__: null,
235
+ basename: basename,
236
+ dirname: dirname,
237
+ extname: extname,
238
+ format: format,
239
+ isAbsolute: isAbsolute,
240
+ join: join,
241
+ matchesGlob: matchesGlob,
242
+ normalize: normalize,
243
+ normalizeString: normalizeString,
244
+ parse: parse,
245
+ relative: relative,
246
+ resolve: resolve,
247
+ sep: sep,
248
+ toNamespacedPath: toNamespacedPath
249
+ };
250
+
251
+ exports._path = _path;
252
+ exports.basename = basename;
253
+ exports.dirname = dirname;
254
+ exports.extname = extname;
255
+ exports.format = format;
256
+ exports.isAbsolute = isAbsolute;
257
+ exports.join = join;
258
+ exports.matchesGlob = matchesGlob;
259
+ exports.normalize = normalize;
260
+ exports.normalizeString = normalizeString;
261
+ exports.normalizeWindowsPath = normalizeWindowsPath;
262
+ exports.parse = parse;
263
+ exports.relative = relative;
264
+ exports.resolve = resolve;
265
+ exports.sep = sep;
266
+ exports.toNamespacedPath = toNamespacedPath;
@@ -0,0 +1,249 @@
1
+ let _lazyMatch = () => { var __lib__=(()=>{var m=Object.defineProperty,V=Object.getOwnPropertyDescriptor,G=Object.getOwnPropertyNames,T=Object.prototype.hasOwnProperty,q=(r,e)=>{for(var n in e)m(r,n,{get:e[n],enumerable:true});},H=(r,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of G(e))!T.call(r,t)&&t!==n&&m(r,t,{get:()=>e[t],enumerable:!(a=V(e,t))||a.enumerable});return r},J=r=>H(m({},"__esModule",{value:true}),r),w={};q(w,{default:()=>re});var A=r=>Array.isArray(r),d=r=>typeof r=="function",Q=r=>r.length===0,W=r=>typeof r=="number",K=r=>typeof r=="object"&&r!==null,X=r=>r instanceof RegExp,b=r=>typeof r=="string",h=r=>r===void 0,Y=r=>{const e=new Map;return n=>{const a=e.get(n);if(a)return a;const t=r(n);return e.set(n,t),t}},rr=(r,e,n={})=>{const a={cache:{},input:r,index:0,indexMax:0,options:n,output:[]};if(v(e)(a)&&a.index===r.length)return a.output;throw new Error(`Failed to parse at index ${a.indexMax}`)},i=(r,e)=>A(r)?er(r,e):b(r)?ar(r,e):nr(r,e),er=(r,e)=>{const n={};for(const a of r){if(a.length!==1)throw new Error(`Invalid character: "${a}"`);const t=a.charCodeAt(0);n[t]=true;}return a=>{const t=a.index,o=a.input;for(;a.index<o.length&&o.charCodeAt(a.index)in n;)a.index+=1;const u=a.index;if(u>t){if(!h(e)&&!a.options.silent){const s=a.input.slice(t,u),c=d(e)?e(s,o,String(t)):e;h(c)||a.output.push(c);}a.indexMax=Math.max(a.indexMax,a.index);}return true}},nr=(r,e)=>{const n=r.source,a=r.flags.replace(/y|$/,"y"),t=new RegExp(n,a);return g(o=>{t.lastIndex=o.index;const u=t.exec(o.input);if(u){if(!h(e)&&!o.options.silent){const s=d(e)?e(...u,o.input,String(o.index)):e;h(s)||o.output.push(s);}return o.index+=u[0].length,o.indexMax=Math.max(o.indexMax,o.index),true}else return false})},ar=(r,e)=>n=>{if(n.input.startsWith(r,n.index)){if(!h(e)&&!n.options.silent){const t=d(e)?e(r,n.input,String(n.index)):e;h(t)||n.output.push(t);}return n.index+=r.length,n.indexMax=Math.max(n.indexMax,n.index),true}else return false},C=(r,e,n,a)=>{const t=v(r);return g(_(M(o=>{let u=0;for(;u<n;){const s=o.index;if(!t(o)||(u+=1,o.index===s))break}return u>=e})))},tr=(r,e)=>C(r,0,1),f=(r,e)=>C(r,0,1/0),x=(r,e)=>{const n=r.map(v);return g(_(M(a=>{for(let t=0,o=n.length;t<o;t++)if(!n[t](a))return false;return true})))},l=(r,e)=>{const n=r.map(v);return g(_(a=>{for(let t=0,o=n.length;t<o;t++)if(n[t](a))return true;return false}))},M=(r,e=false)=>{const n=v(r);return a=>{const t=a.index,o=a.output.length,u=n(a);return (!u||e)&&(a.index=t,a.output.length!==o&&(a.output.length=o)),u}},_=(r,e)=>{const n=v(r);return n},g=(()=>{let r=0;return e=>{const n=v(e),a=r+=1;return t=>{var o;if(t.options.memoization===false)return n(t);const u=t.index,s=(o=t.cache)[a]||(o[a]=new Map),c=s.get(u);if(c===false)return false;if(W(c))return t.index=c,true;if(c)return t.index=c.index,c.output?.length&&t.output.push(...c.output),true;{const Z=t.output.length;if(n(t)){const D=t.index,U=t.output.length;if(U>Z){const ee=t.output.slice(Z,U);s.set(u,{index:D,output:ee});}else s.set(u,D);return true}else return s.set(u,false),false}}}})(),E=r=>{let e;return n=>(e||(e=v(r())),e(n))},v=Y(r=>{if(d(r))return Q(r)?E(r):r;if(b(r)||X(r))return i(r);if(A(r))return x(r);if(K(r))return l(Object.values(r));throw new Error("Invalid rule")}),P="abcdefghijklmnopqrstuvwxyz",ir=r=>{let e="";for(;r>0;){const n=(r-1)%26;e=P[n]+e,r=Math.floor((r-1)/26);}return e},O=r=>{let e=0;for(let n=0,a=r.length;n<a;n++)e=e*26+P.indexOf(r[n])+1;return e},S=(r,e)=>{if(e<r)return S(e,r);const n=[];for(;r<=e;)n.push(r++);return n},or=(r,e,n)=>S(r,e).map(a=>String(a).padStart(n,"0")),R=(r,e)=>S(O(r),O(e)).map(ir),p=r=>r,z=r=>ur(e=>rr(e,r,{memoization:false}).join("")),ur=r=>{const e={};return n=>e[n]??(e[n]=r(n))},sr=i(/^\*\*\/\*$/,".*"),cr=i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(r,e,n)=>`.*${e?"":"(?:^|/)"}${n.replaceAll(".","\\.")}`),lr=i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(r,e,n,a)=>`.*${e?"":"(?:^|/)"}${n.replaceAll(".","\\.")}(?:${a.replaceAll(",","|").replaceAll(".","\\.")})`),y=i(/\\./,p),pr=i(/[$.*+?^(){}[\]\|]/,r=>`\\${r}`),vr=i(/./,p),hr=i(/^(?:!!)*!(.*)$/,(r,e)=>`(?!^${L(e)}$).*?`),dr=i(/^(!!)+/,""),fr=l([hr,dr]),xr=i(/\/(\*\*\/)+/,"(?:/.+/|/)"),gr=i(/^(\*\*\/)+/,"(?:^|.*/)"),mr=i(/\/(\*\*)$/,"(?:/.*|$)"),_r=i(/\*\*/,".*"),j=l([xr,gr,mr,_r]),Sr=i(/\*\/(?!\*\*\/)/,"[^/]*/"),yr=i(/\*/,"[^/]*"),N=l([Sr,yr]),k=i("?","[^/]"),$r=i("[",p),wr=i("]",p),Ar=i(/[!^]/,"^/"),br=i(/[a-z]-[a-z]|[0-9]-[0-9]/i,p),Cr=i(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Mr=i(/[^\]]/,p),Er=l([y,Cr,br,Mr]),B=x([$r,tr(Ar),f(Er),wr]),Pr=i("{","(?:"),Or=i("}",")"),Rr=i(/(\d+)\.\.(\d+)/,(r,e,n)=>or(+e,+n,Math.min(e.length,n.length)).join("|")),zr=i(/([a-z]+)\.\.([a-z]+)/,(r,e,n)=>R(e,n).join("|")),jr=i(/([A-Z]+)\.\.([A-Z]+)/,(r,e,n)=>R(e.toLowerCase(),n.toLowerCase()).join("|").toUpperCase()),Nr=l([Rr,zr,jr]),I=x([Pr,Nr,Or]),kr=i("{","(?:"),Br=i("}",")"),Ir=i(",","|"),Fr=i(/[$.*+?^(){[\]\|]/,r=>`\\${r}`),Lr=i(/[^}]/,p),Zr=E(()=>F),Dr=l([j,N,k,B,I,Zr,y,Fr,Ir,Lr]),F=x([kr,f(Dr),Br]),Ur=f(l([sr,cr,lr,fr,j,N,k,B,I,F,y,pr,vr])),Vr=Ur,Gr=z(Vr),L=Gr,Tr=i(/\\./,p),qr=i(/./,p),Hr=i(/\*\*\*+/,"*"),Jr=i(/([^/{[(!])\*\*/,(r,e)=>`${e}*`),Qr=i(/(^|.)\*\*(?=[^*/)\]}])/,(r,e)=>`${e}*`),Wr=f(l([Tr,Hr,Jr,Qr,qr])),Kr=Wr,Xr=z(Kr),Yr=Xr,$=(r,e)=>{const n=Array.isArray(r)?r:[r];if(!n.length)return false;const a=n.map($.compile),t=n.every(s=>/(\/(?:\*\*)?|\[\/\])$/.test(s)),o=e.replace(/[\\\/]+/g,"/").replace(/\/$/,t?"/":"");return a.some(s=>s.test(o))};$.compile=r=>new RegExp(`^${L(Yr(r))}$`,"s");var re=$;return J(w)})();
2
+ return __lib__.default || __lib__; };
3
+ let _match;
4
+ const zeptomatch = (path, pattern) => {
5
+ if (!_match) {
6
+ _match = _lazyMatch();
7
+ _lazyMatch = null;
8
+ }
9
+ return _match(path, pattern);
10
+ };
11
+
12
+ const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
13
+ function normalizeWindowsPath(input = "") {
14
+ if (!input) {
15
+ return input;
16
+ }
17
+ return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
18
+ }
19
+
20
+ const _UNC_REGEX = /^[/\\]{2}/;
21
+ const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
22
+ const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
23
+ const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
24
+ const _EXTNAME_RE = /.(\.[^./]+|\.)$/;
25
+ const _PATH_ROOT_RE = /^[/\\]|^[a-zA-Z]:[/\\]/;
26
+ const sep = "/";
27
+ const normalize = function(path) {
28
+ if (path.length === 0) {
29
+ return ".";
30
+ }
31
+ path = normalizeWindowsPath(path);
32
+ const isUNCPath = path.match(_UNC_REGEX);
33
+ const isPathAbsolute = isAbsolute(path);
34
+ const trailingSeparator = path[path.length - 1] === "/";
35
+ path = normalizeString(path, !isPathAbsolute);
36
+ if (path.length === 0) {
37
+ if (isPathAbsolute) {
38
+ return "/";
39
+ }
40
+ return trailingSeparator ? "./" : ".";
41
+ }
42
+ if (trailingSeparator) {
43
+ path += "/";
44
+ }
45
+ if (_DRIVE_LETTER_RE.test(path)) {
46
+ path += "/";
47
+ }
48
+ if (isUNCPath) {
49
+ if (!isPathAbsolute) {
50
+ return `//./${path}`;
51
+ }
52
+ return `//${path}`;
53
+ }
54
+ return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
55
+ };
56
+ const join = function(...segments) {
57
+ let path = "";
58
+ for (const seg of segments) {
59
+ if (!seg) {
60
+ continue;
61
+ }
62
+ if (path.length > 0) {
63
+ const pathTrailing = path[path.length - 1] === "/";
64
+ const segLeading = seg[0] === "/";
65
+ const both = pathTrailing && segLeading;
66
+ if (both) {
67
+ path += seg.slice(1);
68
+ } else {
69
+ path += pathTrailing || segLeading ? seg : `/${seg}`;
70
+ }
71
+ } else {
72
+ path += seg;
73
+ }
74
+ }
75
+ return normalize(path);
76
+ };
77
+ function cwd() {
78
+ if (typeof process !== "undefined" && typeof process.cwd === "function") {
79
+ return process.cwd().replace(/\\/g, "/");
80
+ }
81
+ return "/";
82
+ }
83
+ const resolve = function(...arguments_) {
84
+ arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
85
+ let resolvedPath = "";
86
+ let resolvedAbsolute = false;
87
+ for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
88
+ const path = index >= 0 ? arguments_[index] : cwd();
89
+ if (!path || path.length === 0) {
90
+ continue;
91
+ }
92
+ resolvedPath = `${path}/${resolvedPath}`;
93
+ resolvedAbsolute = isAbsolute(path);
94
+ }
95
+ resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
96
+ if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
97
+ return `/${resolvedPath}`;
98
+ }
99
+ return resolvedPath.length > 0 ? resolvedPath : ".";
100
+ };
101
+ function normalizeString(path, allowAboveRoot) {
102
+ let res = "";
103
+ let lastSegmentLength = 0;
104
+ let lastSlash = -1;
105
+ let dots = 0;
106
+ let char = null;
107
+ for (let index = 0; index <= path.length; ++index) {
108
+ if (index < path.length) {
109
+ char = path[index];
110
+ } else if (char === "/") {
111
+ break;
112
+ } else {
113
+ char = "/";
114
+ }
115
+ if (char === "/") {
116
+ if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {
117
+ if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
118
+ if (res.length > 2) {
119
+ const lastSlashIndex = res.lastIndexOf("/");
120
+ if (lastSlashIndex === -1) {
121
+ res = "";
122
+ lastSegmentLength = 0;
123
+ } else {
124
+ res = res.slice(0, lastSlashIndex);
125
+ lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
126
+ }
127
+ lastSlash = index;
128
+ dots = 0;
129
+ continue;
130
+ } else if (res.length > 0) {
131
+ res = "";
132
+ lastSegmentLength = 0;
133
+ lastSlash = index;
134
+ dots = 0;
135
+ continue;
136
+ }
137
+ }
138
+ if (allowAboveRoot) {
139
+ res += res.length > 0 ? "/.." : "..";
140
+ lastSegmentLength = 2;
141
+ }
142
+ } else {
143
+ if (res.length > 0) {
144
+ res += `/${path.slice(lastSlash + 1, index)}`;
145
+ } else {
146
+ res = path.slice(lastSlash + 1, index);
147
+ }
148
+ lastSegmentLength = index - lastSlash - 1;
149
+ }
150
+ lastSlash = index;
151
+ dots = 0;
152
+ } else if (char === "." && dots !== -1) {
153
+ ++dots;
154
+ } else {
155
+ dots = -1;
156
+ }
157
+ }
158
+ return res;
159
+ }
160
+ const isAbsolute = function(p) {
161
+ return _IS_ABSOLUTE_RE.test(p);
162
+ };
163
+ const toNamespacedPath = function(p) {
164
+ return normalizeWindowsPath(p);
165
+ };
166
+ const extname = function(p) {
167
+ if (p === "..") return "";
168
+ const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
169
+ return match && match[1] || "";
170
+ };
171
+ const relative = function(from, to) {
172
+ const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
173
+ const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
174
+ if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
175
+ return _to.join("/");
176
+ }
177
+ const _fromCopy = [..._from];
178
+ for (const segment of _fromCopy) {
179
+ if (_to[0] !== segment) {
180
+ break;
181
+ }
182
+ _from.shift();
183
+ _to.shift();
184
+ }
185
+ return [..._from.map(() => ".."), ..._to].join("/");
186
+ };
187
+ const dirname = function(p) {
188
+ const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
189
+ if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
190
+ segments[0] += "/";
191
+ }
192
+ return segments.join("/") || (isAbsolute(p) ? "/" : ".");
193
+ };
194
+ const format = function(p) {
195
+ const ext = p.ext ? p.ext.startsWith(".") ? p.ext : `.${p.ext}` : "";
196
+ const segments = [p.root, p.dir, p.base ?? (p.name ?? "") + ext].filter(
197
+ Boolean
198
+ );
199
+ return normalizeWindowsPath(
200
+ p.root ? resolve(...segments) : segments.join("/")
201
+ );
202
+ };
203
+ const basename = function(p, extension) {
204
+ const segments = normalizeWindowsPath(p).split("/");
205
+ let lastSegment = "";
206
+ for (let i = segments.length - 1; i >= 0; i--) {
207
+ const val = segments[i];
208
+ if (val) {
209
+ lastSegment = val;
210
+ break;
211
+ }
212
+ }
213
+ return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
214
+ };
215
+ const parse = function(p) {
216
+ const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\/g, "/") || "";
217
+ const base = basename(p);
218
+ const extension = extname(base);
219
+ return {
220
+ root,
221
+ dir: dirname(p),
222
+ base,
223
+ ext: extension,
224
+ name: base.slice(0, base.length - extension.length)
225
+ };
226
+ };
227
+ const matchesGlob = (path, pattern) => {
228
+ return zeptomatch(pattern, normalize(path));
229
+ };
230
+
231
+ const _path = {
232
+ __proto__: null,
233
+ basename: basename,
234
+ dirname: dirname,
235
+ extname: extname,
236
+ format: format,
237
+ isAbsolute: isAbsolute,
238
+ join: join,
239
+ matchesGlob: matchesGlob,
240
+ normalize: normalize,
241
+ normalizeString: normalizeString,
242
+ parse: parse,
243
+ relative: relative,
244
+ resolve: resolve,
245
+ sep: sep,
246
+ toNamespacedPath: toNamespacedPath
247
+ };
248
+
249
+ export { _path as _, normalizeString as a, relative as b, basename as c, dirname as d, extname as e, format as f, normalizeWindowsPath as g, isAbsolute as i, join as j, matchesGlob as m, normalize as n, parse as p, resolve as r, sep as s, toNamespacedPath as t };