renovate-log-parser 0.1.0

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 (325) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +402 -0
  3. package/dist/cli.d.ts +2 -0
  4. package/dist/cli.js +30 -0
  5. package/dist/cli.js.map +1 -0
  6. package/dist/commands/analyze.d.ts +24 -0
  7. package/dist/commands/analyze.js +114 -0
  8. package/dist/commands/analyze.js.map +1 -0
  9. package/dist/commands/detect-errors.d.ts +17 -0
  10. package/dist/commands/detect-errors.js +119 -0
  11. package/dist/commands/detect-errors.js.map +1 -0
  12. package/dist/commands/install-analyze-skill.d.ts +27 -0
  13. package/dist/commands/install-analyze-skill.js +181 -0
  14. package/dist/commands/install-analyze-skill.js.map +1 -0
  15. package/dist/commands/web.d.ts +12 -0
  16. package/dist/commands/web.js +103 -0
  17. package/dist/commands/web.js.map +1 -0
  18. package/dist/core/analyzer.d.ts +89 -0
  19. package/dist/core/analyzer.js +179 -0
  20. package/dist/core/analyzer.js.map +1 -0
  21. package/dist/core/error-detector.d.ts +56 -0
  22. package/dist/core/error-detector.js +236 -0
  23. package/dist/core/error-detector.js.map +1 -0
  24. package/dist/core/filters.d.ts +136 -0
  25. package/dist/core/filters.js +95 -0
  26. package/dist/core/filters.js.map +1 -0
  27. package/dist/core/ignore-file.d.ts +52 -0
  28. package/dist/core/ignore-file.js +104 -0
  29. package/dist/core/ignore-file.js.map +1 -0
  30. package/dist/core/levels.d.ts +33 -0
  31. package/dist/core/levels.js +35 -0
  32. package/dist/core/levels.js.map +1 -0
  33. package/dist/core/parser.d.ts +57 -0
  34. package/dist/core/parser.js +201 -0
  35. package/dist/core/parser.js.map +1 -0
  36. package/dist/core/query-builder.d.ts +47 -0
  37. package/dist/core/query-builder.js +155 -0
  38. package/dist/core/query-builder.js.map +1 -0
  39. package/dist/core/skill-template.d.ts +34 -0
  40. package/dist/core/skill-template.js +259 -0
  41. package/dist/core/skill-template.js.map +1 -0
  42. package/package.json +68 -0
  43. package/web/.output/nitro.json +15 -0
  44. package/web/.output/public/_fonts/57NSSoFy1VLVs2gqly8Ls9awBnZMFyXGrefpmqvdqmc-zJfbBtpgM4cDmcXBsqZNW79_kFnlpPd62b48glgdydA.woff2 +0 -0
  45. package/web/.output/public/_fonts/8VR2wSMN-3U4NbWAVYXlkRV6hA0jFBXP-0RtL3X7fko-x2gYI4qfmkRdxyQQUPaBZdZdgl1TeVrquF_TxHeM4lM.woff2 +0 -0
  46. package/web/.output/public/_fonts/GsKUclqeNLJ96g5AU593ug6yanivOiwjW_7zESNPChw-jHA4tBeM1bjF7LATGUpfBuSTyomIFrWBTzjF7txVYfg.woff2 +0 -0
  47. package/web/.output/public/_fonts/Ld1FnTo3yTIwDyGfTQ5-Fws9AWsCbKfMvgxduXr7JcY-W25bL8NF1fjpLRSOgJb7RoZPHqGQNwMTM7S9tHVoxx8.woff2 +0 -0
  48. package/web/.output/public/_fonts/NdzqRASp2bovDUhQT1IRE_EMqKJ2KYQdTCfFcBvL8yw-KhwZiS86o3fErOe5GGMExHUemmI_dBfaEFxjISZrBd0.woff2 +0 -0
  49. package/web/.output/public/_fonts/iTkrULNFJJkTvihIg1Vqi5IODRH_9btXCioVF5l98I8-AndUyau2HR2felA_ra8V2mutQgschhasE5FD1dXGJX8.woff2 +0 -0
  50. package/web/.output/public/_nuxt/BWja8e3M.js +37 -0
  51. package/web/.output/public/_nuxt/BgApMHS1.js +1 -0
  52. package/web/.output/public/_nuxt/CGPWRqbc.js +1 -0
  53. package/web/.output/public/_nuxt/DlAUqK2U.js +1 -0
  54. package/web/.output/public/_nuxt/Sgtec1U0.js +1 -0
  55. package/web/.output/public/_nuxt/builds/latest.json +1 -0
  56. package/web/.output/public/_nuxt/builds/meta/c4723e49-0623-47af-ae79-9ab6428bdcc1.json +1 -0
  57. package/web/.output/public/_nuxt/entry.9mB-pyEY.css +1 -0
  58. package/web/.output/public/_nuxt/error-404.B_PvSG-P.css +1 -0
  59. package/web/.output/public/_nuxt/error-500.CghkKCEr.css +1 -0
  60. package/web/.output/public/_nuxt/index.BlvAG7F6.css +1 -0
  61. package/web/.output/public/favicon.ico +0 -0
  62. package/web/.output/server/chunks/_/error-500.mjs +19 -0
  63. package/web/.output/server/chunks/_/error-500.mjs.map +1 -0
  64. package/web/.output/server/chunks/_/icons.mjs +6153 -0
  65. package/web/.output/server/chunks/_/icons.mjs.map +1 -0
  66. package/web/.output/server/chunks/_/icons2.mjs +11494 -0
  67. package/web/.output/server/chunks/_/icons2.mjs.map +1 -0
  68. package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs +10 -0
  69. package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs.map +1 -0
  70. package/web/.output/server/chunks/build/client.precomputed.mjs +4 -0
  71. package/web/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
  72. package/web/.output/server/chunks/build/error-404-DyaaQUIS.mjs +106 -0
  73. package/web/.output/server/chunks/build/error-404-DyaaQUIS.mjs.map +1 -0
  74. package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs +8 -0
  75. package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs.map +1 -0
  76. package/web/.output/server/chunks/build/error-500-CVSP-p02.mjs +89 -0
  77. package/web/.output/server/chunks/build/error-500-CVSP-p02.mjs.map +1 -0
  78. package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs +8 -0
  79. package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs.map +1 -0
  80. package/web/.output/server/chunks/build/index-88dXYOxO.mjs +19675 -0
  81. package/web/.output/server/chunks/build/index-88dXYOxO.mjs.map +1 -0
  82. package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs +8 -0
  83. package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs.map +1 -0
  84. package/web/.output/server/chunks/build/server.mjs +7910 -0
  85. package/web/.output/server/chunks/build/server.mjs.map +1 -0
  86. package/web/.output/server/chunks/build/styles.mjs +10 -0
  87. package/web/.output/server/chunks/build/styles.mjs.map +1 -0
  88. package/web/.output/server/chunks/nitro/nitro.mjs +6944 -0
  89. package/web/.output/server/chunks/nitro/nitro.mjs.map +1 -0
  90. package/web/.output/server/chunks/routes/api/fields.get.mjs +27 -0
  91. package/web/.output/server/chunks/routes/api/fields.get.mjs.map +1 -0
  92. package/web/.output/server/chunks/routes/api/findings.get.mjs +30 -0
  93. package/web/.output/server/chunks/routes/api/findings.get.mjs.map +1 -0
  94. package/web/.output/server/chunks/routes/api/log/contents.post.mjs +29 -0
  95. package/web/.output/server/chunks/routes/api/log/contents.post.mjs.map +1 -0
  96. package/web/.output/server/chunks/routes/api/log/path.post.mjs +30 -0
  97. package/web/.output/server/chunks/routes/api/log/path.post.mjs.map +1 -0
  98. package/web/.output/server/chunks/routes/api/repositories.get.mjs +27 -0
  99. package/web/.output/server/chunks/routes/api/repositories.get.mjs.map +1 -0
  100. package/web/.output/server/chunks/routes/api/rows.get.mjs +48 -0
  101. package/web/.output/server/chunks/routes/api/rows.get.mjs.map +1 -0
  102. package/web/.output/server/chunks/routes/renderer.mjs +451 -0
  103. package/web/.output/server/chunks/routes/renderer.mjs.map +1 -0
  104. package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  105. package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  106. package/web/.output/server/index.mjs +16 -0
  107. package/web/.output/server/index.mjs.map +1 -0
  108. package/web/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.mjs +290 -0
  109. package/web/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +49 -0
  110. package/web/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +257 -0
  111. package/web/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +53 -0
  112. package/web/.output/server/node_modules/@babel/parser/lib/index.js +14599 -0
  113. package/web/.output/server/node_modules/@babel/parser/package.json +50 -0
  114. package/web/.output/server/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1038 -0
  115. package/web/.output/server/node_modules/@floating-ui/core/package.json +63 -0
  116. package/web/.output/server/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +789 -0
  117. package/web/.output/server/node_modules/@floating-ui/dom/package.json +72 -0
  118. package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
  119. package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
  120. package/web/.output/server/node_modules/@floating-ui/utils/package.json +70 -0
  121. package/web/.output/server/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +190 -0
  122. package/web/.output/server/node_modules/@floating-ui/vue/package.json +71 -0
  123. package/web/.output/server/node_modules/@iconify/utils/lib/colors/index.js +295 -0
  124. package/web/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +701 -0
  125. package/web/.output/server/node_modules/@iconify/utils/lib/css/common.js +75 -0
  126. package/web/.output/server/node_modules/@iconify/utils/lib/css/format.js +39 -0
  127. package/web/.output/server/node_modules/@iconify/utils/lib/css/icon.js +47 -0
  128. package/web/.output/server/node_modules/@iconify/utils/lib/css/icons.js +128 -0
  129. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +19 -0
  130. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
  131. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +17 -0
  132. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +16 -0
  133. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +30 -0
  134. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +78 -0
  135. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +100 -0
  136. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +28 -0
  137. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +58 -0
  138. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +48 -0
  139. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +203 -0
  140. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +33 -0
  141. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +132 -0
  142. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +165 -0
  143. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +79 -0
  144. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +92 -0
  145. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +26 -0
  146. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +76 -0
  147. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +66 -0
  148. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +45 -0
  149. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +103 -0
  150. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +36 -0
  151. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +92 -0
  152. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +62 -0
  153. package/web/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
  154. package/web/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +16 -0
  155. package/web/.output/server/node_modules/@iconify/utils/lib/icon/name.js +57 -0
  156. package/web/.output/server/node_modules/@iconify/utils/lib/icon/square.js +33 -0
  157. package/web/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +12 -0
  158. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +125 -0
  159. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +19 -0
  160. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +25 -0
  161. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +36 -0
  162. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +91 -0
  163. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +46 -0
  164. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +23 -0
  165. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +42 -0
  166. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +123 -0
  167. package/web/.output/server/node_modules/@iconify/utils/lib/index.js +52 -0
  168. package/web/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +30 -0
  169. package/web/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +26 -0
  170. package/web/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +27 -0
  171. package/web/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +105 -0
  172. package/web/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +26 -0
  173. package/web/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +26 -0
  174. package/web/.output/server/node_modules/@iconify/utils/lib/misc/title.js +9 -0
  175. package/web/.output/server/node_modules/@iconify/utils/lib/svg/build.js +113 -0
  176. package/web/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +31 -0
  177. package/web/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +13 -0
  178. package/web/.output/server/node_modules/@iconify/utils/lib/svg/html.js +9 -0
  179. package/web/.output/server/node_modules/@iconify/utils/lib/svg/id.js +41 -0
  180. package/web/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +22 -0
  181. package/web/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +67 -0
  182. package/web/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +54 -0
  183. package/web/.output/server/node_modules/@iconify/utils/lib/svg/size.js +27 -0
  184. package/web/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +7 -0
  185. package/web/.output/server/node_modules/@iconify/utils/lib/svg/url.js +22 -0
  186. package/web/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +8 -0
  187. package/web/.output/server/node_modules/@iconify/utils/package.json +119 -0
  188. package/web/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +1896 -0
  189. package/web/.output/server/node_modules/@iconify/vue/package.json +62 -0
  190. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/index.js +1268 -0
  191. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +34 -0
  192. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/utils.js +74 -0
  193. package/web/.output/server/node_modules/@tanstack/virtual-core/package.json +56 -0
  194. package/web/.output/server/node_modules/@tanstack/vue-virtual/dist/esm/index.js +66 -0
  195. package/web/.output/server/node_modules/@tanstack/vue-virtual/package.json +68 -0
  196. package/web/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6759 -0
  197. package/web/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  198. package/web/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
  199. package/web/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  200. package/web/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
  201. package/web/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  202. package/web/.output/server/node_modules/@vue/devtools-api/dist/index.js +2 -0
  203. package/web/.output/server/node_modules/@vue/devtools-api/package.json +34 -0
  204. package/web/.output/server/node_modules/@vue/devtools-kit/dist/index.js +5670 -0
  205. package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/dist/index.mjs +290 -0
  206. package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/package.json +49 -0
  207. package/web/.output/server/node_modules/@vue/devtools-kit/package.json +44 -0
  208. package/web/.output/server/node_modules/@vue/devtools-shared/dist/index.js +239 -0
  209. package/web/.output/server/node_modules/@vue/devtools-shared/package.json +33 -0
  210. package/web/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1899 -0
  211. package/web/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  212. package/web/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6940 -0
  213. package/web/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  214. package/web/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1822 -0
  215. package/web/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  216. package/web/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +896 -0
  217. package/web/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
  218. package/web/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
  219. package/web/.output/server/node_modules/@vue/shared/package.json +47 -0
  220. package/web/.output/server/node_modules/@vueuse/core/dist/index.js +8464 -0
  221. package/web/.output/server/node_modules/@vueuse/core/package.json +49 -0
  222. package/web/.output/server/node_modules/@vueuse/shared/dist/index.js +2013 -0
  223. package/web/.output/server/node_modules/@vueuse/shared/package.json +42 -0
  224. package/web/.output/server/node_modules/aria-hidden/dist/es5/index.js +174 -0
  225. package/web/.output/server/node_modules/aria-hidden/package.json +71 -0
  226. package/web/.output/server/node_modules/birpc/dist/index.mjs +291 -0
  227. package/web/.output/server/node_modules/birpc/package.json +57 -0
  228. package/web/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  229. package/web/.output/server/node_modules/consola/dist/core.mjs +512 -0
  230. package/web/.output/server/node_modules/consola/dist/index.mjs +651 -0
  231. package/web/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  232. package/web/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  233. package/web/.output/server/node_modules/consola/package.json +136 -0
  234. package/web/.output/server/node_modules/devalue/index.js +4 -0
  235. package/web/.output/server/node_modules/devalue/package.json +40 -0
  236. package/web/.output/server/node_modules/devalue/src/base64.js +60 -0
  237. package/web/.output/server/node_modules/devalue/src/constants.js +12 -0
  238. package/web/.output/server/node_modules/devalue/src/parse.js +283 -0
  239. package/web/.output/server/node_modules/devalue/src/stringify.js +401 -0
  240. package/web/.output/server/node_modules/devalue/src/uneval.js +552 -0
  241. package/web/.output/server/node_modules/devalue/src/utils.js +160 -0
  242. package/web/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  243. package/web/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  244. package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  245. package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  246. package/web/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  247. package/web/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  248. package/web/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  249. package/web/.output/server/node_modules/entities/package.json +120 -0
  250. package/web/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  251. package/web/.output/server/node_modules/estree-walker/package.json +37 -0
  252. package/web/.output/server/node_modules/hookable/dist/index.mjs +257 -0
  253. package/web/.output/server/node_modules/hookable/package.json +53 -0
  254. package/web/.output/server/node_modules/nostics/dist/index.mjs +179 -0
  255. package/web/.output/server/node_modules/nostics/package.json +124 -0
  256. package/web/.output/server/node_modules/perfect-debounce/dist/index.mjs +89 -0
  257. package/web/.output/server/node_modules/perfect-debounce/package.json +41 -0
  258. package/web/.output/server/node_modules/rou3/dist/index.mjs +501 -0
  259. package/web/.output/server/node_modules/rou3/package.json +48 -0
  260. package/web/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  261. package/web/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  262. package/web/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  263. package/web/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  264. package/web/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  265. package/web/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  266. package/web/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  267. package/web/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  268. package/web/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
  269. package/web/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  270. package/web/.output/server/node_modules/source-map-js/package.json +71 -0
  271. package/web/.output/server/node_modules/source-map-js/source-map.js +8 -0
  272. package/web/.output/server/node_modules/srvx/dist/_chunks/_body-limit.mjs +39 -0
  273. package/web/.output/server/node_modules/srvx/dist/_chunks/_plugins.mjs +56 -0
  274. package/web/.output/server/node_modules/srvx/dist/_chunks/_trust-proxy.mjs +58 -0
  275. package/web/.output/server/node_modules/srvx/dist/_chunks/_url.mjs +134 -0
  276. package/web/.output/server/node_modules/srvx/dist/_chunks/_utils.mjs +15 -0
  277. package/web/.output/server/node_modules/srvx/dist/_chunks/_utils2.mjs +75 -0
  278. package/web/.output/server/node_modules/srvx/dist/adapters/node.mjs +976 -0
  279. package/web/.output/server/node_modules/srvx/package.json +102 -0
  280. package/web/.output/server/node_modules/tailwind-merge/dist/bundle-mjs.mjs +3365 -0
  281. package/web/.output/server/node_modules/tailwind-merge/package.json +93 -0
  282. package/web/.output/server/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +112 -0
  283. package/web/.output/server/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +269 -0
  284. package/web/.output/server/node_modules/tailwind-variants/dist/index.js +38 -0
  285. package/web/.output/server/node_modules/tailwind-variants/package.json +122 -0
  286. package/web/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +1 -0
  287. package/web/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
  288. package/web/.output/server/node_modules/tailwindcss/package.json +89 -0
  289. package/web/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  290. package/web/.output/server/node_modules/ufo/package.json +48 -0
  291. package/web/.output/server/node_modules/unhead/dist/index.mjs +9 -0
  292. package/web/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
  293. package/web/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
  294. package/web/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
  295. package/web/.output/server/node_modules/unhead/dist/server.mjs +180 -0
  296. package/web/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +207 -0
  297. package/web/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  298. package/web/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
  299. package/web/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +182 -0
  300. package/web/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
  301. package/web/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
  302. package/web/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
  303. package/web/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +44 -0
  304. package/web/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +166 -0
  305. package/web/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
  306. package/web/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
  307. package/web/.output/server/node_modules/unhead/node_modules/hookable/dist/index.mjs +257 -0
  308. package/web/.output/server/node_modules/unhead/node_modules/hookable/package.json +53 -0
  309. package/web/.output/server/node_modules/unhead/package.json +105 -0
  310. package/web/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  311. package/web/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  312. package/web/.output/server/node_modules/vue/index.js +7 -0
  313. package/web/.output/server/node_modules/vue/index.mjs +1 -0
  314. package/web/.output/server/node_modules/vue/package.json +112 -0
  315. package/web/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  316. package/web/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +249 -0
  317. package/web/.output/server/node_modules/vue-bundle-renderer/package.json +57 -0
  318. package/web/.output/server/node_modules/vue-demi/lib/index.mjs +34 -0
  319. package/web/.output/server/node_modules/vue-demi/package.json +47 -0
  320. package/web/.output/server/node_modules/vue-router/dist/devtools-Bpr7ZAVB.js +1056 -0
  321. package/web/.output/server/node_modules/vue-router/dist/useApi-CROJJdhE.js +436 -0
  322. package/web/.output/server/node_modules/vue-router/dist/vue-router.js +1543 -0
  323. package/web/.output/server/node_modules/vue-router/package.json +214 -0
  324. package/web/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
  325. package/web/.output/server/package.json +51 -0
@@ -0,0 +1,1056 @@
1
+ /*!
2
+ * vue-router v5.2.0
3
+ * (c) 2026 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */
6
+ import { _ as isRouteComponent, c as diagnostics, g as isESModule, h as isArray, p as assign, r as matchedRouteKey, u as createRouterError } from "./useApi-CROJJdhE.js";
7
+ import { getCurrentInstance, inject, onActivated, onDeactivated, onUnmounted, watch } from "vue";
8
+ import { setupDevtoolsPlugin } from "@vue/devtools-api";
9
+ //#region src/utils/env.ts
10
+ const isBrowser = typeof document !== "undefined";
11
+ //#endregion
12
+ //#region src/encoding.ts
13
+ /**
14
+ * Encoding Rules (␣ = Space)
15
+ * - Path: ␣ " < > # ? { }
16
+ * - Query: ␣ " < > # & =
17
+ * - Hash: ␣ " < > `
18
+ *
19
+ * On top of that, the RFC3986 (https://tools.ietf.org/html/rfc3986#section-2.2)
20
+ * defines some extra characters to be encoded. Most browsers do not encode them
21
+ * in encodeURI https://github.com/whatwg/url/issues/369, so it may be safer to
22
+ * also encode `!'()*`. Leaving un-encoded only ASCII alphanumeric(`a-zA-Z0-9`)
23
+ * plus `-._~`. This extra safety should be applied to query by patching the
24
+ * string returned by encodeURIComponent encodeURI also encodes `[\]^`. `\`
25
+ * should be encoded to avoid ambiguity. Browsers (IE, FF, C) transform a `\`
26
+ * into a `/` if directly typed in. The _backtick_ (`````) should also be
27
+ * encoded everywhere because some browsers like FF encode it when directly
28
+ * written while others don't. Safari and IE don't encode ``"<>{}``` in hash.
29
+ */
30
+ const HASH_RE = /#/g;
31
+ const AMPERSAND_RE = /&/g;
32
+ const SLASH_RE = /\//g;
33
+ const EQUAL_RE = /=/g;
34
+ const IM_RE = /\?/g;
35
+ const PLUS_RE = /\+/g;
36
+ /**
37
+ * NOTE: It's not clear to me if we should encode the + symbol in queries, it
38
+ * seems to be less flexible than not doing so and I can't find out the legacy
39
+ * systems requiring this for regular requests like text/html. In the standard,
40
+ * the encoding of the plus character is only mentioned for
41
+ * application/x-www-form-urlencoded
42
+ * (https://url.spec.whatwg.org/#urlencoded-parsing) and most browsers seems lo
43
+ * leave the plus character as is in queries. To be more flexible, we allow the
44
+ * plus character on the query, but it can also be manually encoded by the user.
45
+ *
46
+ * Resources:
47
+ * - https://url.spec.whatwg.org/#urlencoded-parsing
48
+ * - https://stackoverflow.com/questions/1634271/url-encoding-the-space-character-or-20
49
+ */
50
+ const ENC_BRACKET_OPEN_RE = /%5B/g;
51
+ const ENC_BRACKET_CLOSE_RE = /%5D/g;
52
+ const ENC_CARET_RE = /%5E/g;
53
+ const ENC_BACKTICK_RE = /%60/g;
54
+ const ENC_CURLY_OPEN_RE = /%7B/g;
55
+ const ENC_PIPE_RE = /%7C/g;
56
+ const ENC_CURLY_CLOSE_RE = /%7D/g;
57
+ const ENC_SPACE_RE = /%20/g;
58
+ /**
59
+ * Encode characters that need to be encoded on the path, search and hash
60
+ * sections of the URL.
61
+ *
62
+ * @internal
63
+ * @param text - string to encode
64
+ * @returns encoded string
65
+ */
66
+ function commonEncode(text) {
67
+ return text == null ? "" : encodeURI("" + text).replace(ENC_PIPE_RE, "|").replace(ENC_BRACKET_OPEN_RE, "[").replace(ENC_BRACKET_CLOSE_RE, "]");
68
+ }
69
+ /**
70
+ * Encode characters that need to be encoded on the hash section of the URL.
71
+ *
72
+ * @param text - string to encode
73
+ * @returns encoded string
74
+ */
75
+ function encodeHash(text) {
76
+ return commonEncode(text).replace(ENC_CURLY_OPEN_RE, "{").replace(ENC_CURLY_CLOSE_RE, "}").replace(ENC_CARET_RE, "^");
77
+ }
78
+ /**
79
+ * Encode characters that need to be encoded query values on the query
80
+ * section of the URL.
81
+ *
82
+ * @param text - string to encode
83
+ * @returns encoded string
84
+ */
85
+ function encodeQueryValue(text) {
86
+ return commonEncode(text).replace(PLUS_RE, "%2B").replace(ENC_SPACE_RE, "+").replace(HASH_RE, "%23").replace(AMPERSAND_RE, "%26").replace(ENC_BACKTICK_RE, "`").replace(ENC_CURLY_OPEN_RE, "{").replace(ENC_CURLY_CLOSE_RE, "}").replace(ENC_CARET_RE, "^");
87
+ }
88
+ /**
89
+ * Like `encodeQueryValue` but also encodes the `=` character.
90
+ *
91
+ * @param text - string to encode
92
+ */
93
+ function encodeQueryKey(text) {
94
+ return encodeQueryValue(text).replace(EQUAL_RE, "%3D");
95
+ }
96
+ /**
97
+ * Encode characters that need to be encoded on the path section of the URL.
98
+ *
99
+ * @param text - string to encode
100
+ * @returns encoded string
101
+ */
102
+ function encodePath(text) {
103
+ return commonEncode(text).replace(HASH_RE, "%23").replace(IM_RE, "%3F");
104
+ }
105
+ /**
106
+ * Encode characters that need to be encoded on the path section of the URL as a
107
+ * param. This function encodes everything {@link encodePath} does plus the
108
+ * slash (`/`) character. If `text` is `null` or `undefined`, returns an empty
109
+ * string instead.
110
+ *
111
+ * @param text - string to encode
112
+ * @returns encoded string
113
+ */
114
+ function encodeParam(text) {
115
+ return encodePath(text).replace(SLASH_RE, "%2F");
116
+ }
117
+ function decode(text) {
118
+ if (text == null) return null;
119
+ try {
120
+ return decodeURIComponent("" + text);
121
+ } catch {
122
+ process.env.NODE_ENV !== "production" && diagnostics.VUE_ROUTER_R0080({ text: "" + text });
123
+ }
124
+ return "" + text;
125
+ }
126
+ //#endregion
127
+ //#region src/location.ts
128
+ const TRAILING_SLASH_RE = /\/$/;
129
+ const removeTrailingSlash = (path) => path.replace(TRAILING_SLASH_RE, "");
130
+ /**
131
+ * Transforms a URI into a normalized history location
132
+ *
133
+ * @param parseQuery
134
+ * @param location - URI to normalize
135
+ * @param currentLocation - current absolute location. Allows resolving relative
136
+ * paths. Must start with `/`. Defaults to `/`
137
+ * @returns a normalized history location
138
+ */
139
+ function parseURL(parseQuery, location, currentLocation = "/") {
140
+ let path, query = {}, searchString = "", hash = "";
141
+ const hashPos = location.indexOf("#");
142
+ let searchPos = location.indexOf("?");
143
+ searchPos = hashPos >= 0 && searchPos > hashPos ? -1 : searchPos;
144
+ if (searchPos >= 0) {
145
+ path = location.slice(0, searchPos);
146
+ searchString = location.slice(searchPos, hashPos > 0 ? hashPos : location.length);
147
+ query = parseQuery(searchString.slice(1));
148
+ }
149
+ if (hashPos >= 0) {
150
+ path = path || location.slice(0, hashPos);
151
+ hash = location.slice(hashPos, location.length);
152
+ }
153
+ path = resolveRelativePath(path != null ? path : location, currentLocation);
154
+ return {
155
+ fullPath: path + searchString + hash,
156
+ path,
157
+ query,
158
+ hash: decode(hash)
159
+ };
160
+ }
161
+ function NEW_stringifyURL(stringifyQuery, path, query, hash = "") {
162
+ const searchText = stringifyQuery(query);
163
+ return path + (searchText && "?") + searchText + encodeHash(hash);
164
+ }
165
+ /**
166
+ * Stringifies a URL object
167
+ *
168
+ * @param stringifyQuery
169
+ * @param location
170
+ */
171
+ function stringifyURL(stringifyQuery, location) {
172
+ const query = location.query ? stringifyQuery(location.query) : "";
173
+ return location.path + (query && "?") + query + (location.hash || "");
174
+ }
175
+ /**
176
+ * Strips off the base from the beginning of a location.pathname in a non-case-sensitive way.
177
+ *
178
+ * @param pathname - location.pathname
179
+ * @param base - base to strip off
180
+ */
181
+ function stripBase(pathname, base) {
182
+ if (!base || !pathname.toLowerCase().startsWith(base.toLowerCase())) return pathname;
183
+ return pathname.slice(base.length) || "/";
184
+ }
185
+ /**
186
+ * Checks if two RouteLocation are equal. This means that both locations are
187
+ * pointing towards the same {@link RouteRecord} and that all `params`, `query`
188
+ * parameters and `hash` are the same
189
+ *
190
+ * @param stringifyQuery - A function that takes a query object of type LocationQueryRaw and returns a string representation of it.
191
+ * @param a - first {@link RouteLocation}
192
+ * @param b - second {@link RouteLocation}
193
+ */
194
+ function isSameRouteLocation(stringifyQuery, a, b) {
195
+ const aLastIndex = a.matched.length - 1;
196
+ const bLastIndex = b.matched.length - 1;
197
+ return aLastIndex > -1 && aLastIndex === bLastIndex && isSameRouteRecord(a.matched[aLastIndex], b.matched[bLastIndex]) && isSameRouteLocationParams(a.params, b.params) && stringifyQuery(a.query) === stringifyQuery(b.query) && a.hash === b.hash;
198
+ }
199
+ /**
200
+ * Check if two `RouteRecords` are equal. Takes into account aliases: they are
201
+ * considered equal to the `RouteRecord` they are aliasing.
202
+ *
203
+ * @param a - first {@link RouteRecord}
204
+ * @param b - second {@link RouteRecord}
205
+ */
206
+ function isSameRouteRecord(a, b) {
207
+ return (a.aliasOf || a) === (b.aliasOf || b);
208
+ }
209
+ function isSameRouteLocationParams(a, b) {
210
+ if (Object.keys(a).length !== Object.keys(b).length) return false;
211
+ for (var key in a) if (!isSameRouteLocationParamsValue(a[key], b[key])) return false;
212
+ return true;
213
+ }
214
+ function isSameRouteLocationParamsValue(a, b) {
215
+ return isArray(a) ? isEquivalentArray(a, b) : isArray(b) ? isEquivalentArray(b, a) : (a && a.valueOf()) === (b && b.valueOf());
216
+ }
217
+ /**
218
+ * Check if two arrays are the same or if an array with one single entry is the
219
+ * same as another primitive value. Used to check query and parameters
220
+ *
221
+ * @param a - array of values
222
+ * @param b - array of values or a single value
223
+ */
224
+ function isEquivalentArray(a, b) {
225
+ return isArray(b) ? a.length === b.length && a.every((value, i) => value === b[i]) : a.length === 1 && a[0] === b;
226
+ }
227
+ /**
228
+ * Resolves a relative path that starts with `.`.
229
+ *
230
+ * @param to - path location we are resolving
231
+ * @param from - currentLocation.path, should start with `/`
232
+ */
233
+ function resolveRelativePath(to, from) {
234
+ if (to.startsWith("/")) return to;
235
+ if (process.env.NODE_ENV !== "production" && !from.startsWith("/")) {
236
+ diagnostics.VUE_ROUTER_R0070({
237
+ to,
238
+ from
239
+ });
240
+ return to;
241
+ }
242
+ if (!to) return from;
243
+ const fromSegments = from.split("/");
244
+ const toSegments = to.split("/");
245
+ const lastToSegment = toSegments[toSegments.length - 1];
246
+ if (lastToSegment === ".." || lastToSegment === ".") toSegments.push("");
247
+ let position = fromSegments.length - 1;
248
+ let toPosition;
249
+ let segment;
250
+ for (toPosition = 0; toPosition < toSegments.length; toPosition++) {
251
+ segment = toSegments[toPosition];
252
+ if (segment === ".") continue;
253
+ if (segment === "..") {
254
+ if (position > 1) position--;
255
+ } else break;
256
+ }
257
+ return fromSegments.slice(0, position).join("/") + "/" + toSegments.slice(toPosition).join("/");
258
+ }
259
+ /**
260
+ * Initial route location where the router is. Can be used in navigation guards
261
+ * to differentiate the initial navigation.
262
+ *
263
+ * @example
264
+ * ```js
265
+ * import { START_LOCATION } from 'vue-router'
266
+ *
267
+ * router.beforeEach((to, from) => {
268
+ * if (from === START_LOCATION) {
269
+ * // initial navigation
270
+ * }
271
+ * })
272
+ * ```
273
+ */
274
+ const START_LOCATION_NORMALIZED = {
275
+ path: "/",
276
+ name: void 0,
277
+ params: {},
278
+ query: {},
279
+ hash: "",
280
+ fullPath: "/",
281
+ matched: [],
282
+ meta: {},
283
+ redirectedFrom: void 0
284
+ };
285
+ //#endregion
286
+ //#region src/history/common.ts
287
+ /**
288
+ * Normalizes a base by removing any trailing slash and reading the base tag if
289
+ * present.
290
+ *
291
+ * @param base - base to normalize
292
+ */
293
+ function normalizeBase(base) {
294
+ if (!base) if (isBrowser) {
295
+ const baseEl = document.querySelector("base");
296
+ base = baseEl && baseEl.getAttribute("href") || "/";
297
+ base = base.replace(/^\w+:\/\/[^/]+/, "");
298
+ } else base = "/";
299
+ if (base[0] !== "/" && base[0] !== "#") base = "/" + base;
300
+ return removeTrailingSlash(base);
301
+ }
302
+ const BEFORE_HASH_RE = /^[^#]+#/;
303
+ function createHref(base, location) {
304
+ return base.replace(BEFORE_HASH_RE, "#") + location;
305
+ }
306
+ //#endregion
307
+ //#region src/scrollBehavior.ts
308
+ function getElementPosition(el, offset) {
309
+ const docRect = document.documentElement.getBoundingClientRect();
310
+ const elRect = el.getBoundingClientRect();
311
+ return {
312
+ behavior: offset.behavior,
313
+ left: elRect.left - docRect.left - (offset.left || 0),
314
+ top: elRect.top - docRect.top - (offset.top || 0)
315
+ };
316
+ }
317
+ const computeScrollPosition = () => ({
318
+ left: window.scrollX,
319
+ top: window.scrollY
320
+ });
321
+ function scrollToPosition(position) {
322
+ let scrollToOptions;
323
+ if ("el" in position) {
324
+ const positionEl = position.el;
325
+ const isIdSelector = typeof positionEl === "string" && positionEl.startsWith("#");
326
+ /**
327
+ * `id`s can accept pretty much any characters, including CSS combinators
328
+ * like `>` or `~`. It's still possible to retrieve elements using
329
+ * `document.getElementById('~')` but it needs to be escaped when using
330
+ * `document.querySelector('#\\~')` for it to be valid. The only
331
+ * requirements for `id`s are them to be unique on the page and to not be
332
+ * empty (`id=""`). Because of that, when passing an id selector, it should
333
+ * be properly escaped for it to work with `querySelector`. We could check
334
+ * for the id selector to be simple (no CSS combinators `+ >~`) but that
335
+ * would make things inconsistent since they are valid characters for an
336
+ * `id` but would need to be escaped when using `querySelector`, breaking
337
+ * their usage and ending up in no selector returned. Selectors need to be
338
+ * escaped:
339
+ *
340
+ * - `#1-thing` becomes `#\31 -thing`
341
+ * - `#with~symbols` becomes `#with\\~symbols`
342
+ *
343
+ * - More information about the topic can be found at
344
+ * https://mathiasbynens.be/notes/html5-id-class.
345
+ * - Practical example: https://mathiasbynens.be/demo/html5-id
346
+ */
347
+ if (process.env.NODE_ENV !== "production" && typeof position.el === "string") {
348
+ if (!isIdSelector || !document.getElementById(position.el.slice(1))) try {
349
+ const foundEl = document.querySelector(position.el);
350
+ if (isIdSelector && foundEl) {
351
+ diagnostics.VUE_ROUTER_R0040({ el: position.el });
352
+ return;
353
+ }
354
+ } catch {
355
+ diagnostics.VUE_ROUTER_R0041({ el: position.el });
356
+ return;
357
+ }
358
+ }
359
+ const el = typeof positionEl === "string" ? isIdSelector ? document.getElementById(positionEl.slice(1)) : document.querySelector(positionEl) : positionEl;
360
+ if (!el) {
361
+ process.env.NODE_ENV !== "production" && diagnostics.VUE_ROUTER_R0042({ el: position.el });
362
+ return;
363
+ }
364
+ scrollToOptions = getElementPosition(el, position);
365
+ } else scrollToOptions = position;
366
+ if ("scrollBehavior" in document.documentElement.style) window.scrollTo(scrollToOptions);
367
+ else window.scrollTo(scrollToOptions.left != null ? scrollToOptions.left : window.scrollX, scrollToOptions.top != null ? scrollToOptions.top : window.scrollY);
368
+ }
369
+ function getScrollKey(path, delta) {
370
+ return (history.state ? history.state.position - delta : -1) + path;
371
+ }
372
+ const scrollPositions = /* @__PURE__ */ new Map();
373
+ function saveScrollPosition(key, scrollPosition) {
374
+ scrollPositions.set(key, scrollPosition);
375
+ }
376
+ function getSavedScrollPosition(key) {
377
+ const scroll = scrollPositions.get(key);
378
+ scrollPositions.delete(key);
379
+ return scroll;
380
+ }
381
+ /**
382
+ * ScrollBehavior instance used by the router to compute and restore the scroll
383
+ * position when navigating.
384
+ */
385
+ //#endregion
386
+ //#region src/types/typeGuards.ts
387
+ function isRouteLocation(route) {
388
+ return typeof route === "string" || route && typeof route === "object";
389
+ }
390
+ function isRouteName(name) {
391
+ return typeof name === "string" || typeof name === "symbol";
392
+ }
393
+ //#endregion
394
+ //#region src/query.ts
395
+ /**
396
+ * Transforms a queryString into a {@link LocationQuery} object. Accept both, a
397
+ * version with the leading `?` and without Should work as URLSearchParams
398
+
399
+ * @internal
400
+ *
401
+ * @param search - search string to parse
402
+ * @returns a query object
403
+ */
404
+ function parseQuery(search) {
405
+ const query = {};
406
+ if (search === "" || search === "?") return query;
407
+ const searchParams = (search[0] === "?" ? search.slice(1) : search).split("&");
408
+ for (let i = 0; i < searchParams.length; ++i) {
409
+ const searchParam = searchParams[i].replace(PLUS_RE, " ");
410
+ const eqPos = searchParam.indexOf("=");
411
+ const key = decode(eqPos < 0 ? searchParam : searchParam.slice(0, eqPos));
412
+ const value = eqPos < 0 ? null : decode(searchParam.slice(eqPos + 1));
413
+ if (key in query) {
414
+ let currentValue = query[key];
415
+ if (!isArray(currentValue)) currentValue = query[key] = [currentValue];
416
+ currentValue.push(value);
417
+ } else query[key] = value;
418
+ }
419
+ return query;
420
+ }
421
+ /**
422
+ * Stringifies a {@link LocationQueryRaw} object. Like `URLSearchParams`, it
423
+ * doesn't prepend a `?`
424
+ *
425
+ * @internal
426
+ *
427
+ * @param query - query object to stringify
428
+ * @returns string version of the query without the leading `?`
429
+ */
430
+ function stringifyQuery(query) {
431
+ let search = "";
432
+ for (let key in query) {
433
+ const value = query[key];
434
+ key = encodeQueryKey(key);
435
+ if (value == null) {
436
+ if (value !== void 0) search += (search.length ? "&" : "") + key;
437
+ continue;
438
+ }
439
+ (isArray(value) ? value.map((v) => v && encodeQueryValue(v)) : [value && encodeQueryValue(value)]).forEach((value) => {
440
+ if (value !== void 0) {
441
+ search += (search.length ? "&" : "") + key;
442
+ if (value != null) search += "=" + value;
443
+ }
444
+ });
445
+ }
446
+ return search;
447
+ }
448
+ /**
449
+ * Transforms a {@link LocationQueryRaw} into a {@link LocationQuery} by casting
450
+ * numbers into strings, removing keys with an undefined value and replacing
451
+ * undefined with null in arrays
452
+ *
453
+ * @param query - query object to normalize
454
+ * @returns a normalized query object
455
+ */
456
+ function normalizeQuery(query) {
457
+ const normalizedQuery = {};
458
+ for (const key in query) {
459
+ const value = query[key];
460
+ if (value !== void 0) normalizedQuery[key] = isArray(value) ? value.map((v) => v == null ? null : "" + v) : value == null ? value : "" + value;
461
+ }
462
+ return normalizedQuery;
463
+ }
464
+ //#endregion
465
+ //#region src/utils/callbacks.ts
466
+ /**
467
+ * Create a list of callbacks that can be reset. Used to create before and after navigation guards list
468
+ */
469
+ function useCallbacks() {
470
+ let handlers = [];
471
+ function add(handler) {
472
+ handlers.push(handler);
473
+ return () => {
474
+ const i = handlers.indexOf(handler);
475
+ if (i > -1) handlers.splice(i, 1);
476
+ };
477
+ }
478
+ function reset() {
479
+ handlers = [];
480
+ }
481
+ return {
482
+ add,
483
+ list: () => handlers.slice(),
484
+ reset
485
+ };
486
+ }
487
+ //#endregion
488
+ //#region src/navigationGuards.ts
489
+ function registerGuard(activeRecordRef, name, guard) {
490
+ const record = activeRecordRef.value;
491
+ if (!record) {
492
+ if (process.env.NODE_ENV !== "production") {
493
+ const fnName = name === "updateGuards" ? "onBeforeRouteUpdate" : "onBeforeRouteLeave";
494
+ diagnostics.VUE_ROUTER_R0020({ fn: fnName });
495
+ }
496
+ return;
497
+ }
498
+ let currentRecord = record;
499
+ const removeFromList = () => {
500
+ currentRecord[name].delete(guard);
501
+ };
502
+ onUnmounted(removeFromList);
503
+ onDeactivated(removeFromList);
504
+ onActivated(() => {
505
+ const newRecord = activeRecordRef.value;
506
+ if (process.env.NODE_ENV !== "production" && !newRecord) diagnostics.VUE_ROUTER_R0021();
507
+ if (newRecord) currentRecord = newRecord;
508
+ currentRecord[name].add(guard);
509
+ });
510
+ currentRecord[name].add(guard);
511
+ }
512
+ /**
513
+ * Add a navigation guard that triggers whenever the component for the current
514
+ * location is about to be left. Similar to {@link beforeRouteLeave} but can be
515
+ * used in any component. The guard is removed when the component is unmounted.
516
+ *
517
+ * @param leaveGuard - {@link NavigationGuard}
518
+ */
519
+ function onBeforeRouteLeave(leaveGuard) {
520
+ if (process.env.NODE_ENV !== "production" && !getCurrentInstance()) {
521
+ diagnostics.VUE_ROUTER_R0022({ fn: "onBeforeRouteLeave" });
522
+ return;
523
+ }
524
+ registerGuard(inject(matchedRouteKey, {}), "leaveGuards", leaveGuard);
525
+ }
526
+ /**
527
+ * Add a navigation guard that triggers whenever the current location is about
528
+ * to be updated. Similar to {@link beforeRouteUpdate} but can be used in any
529
+ * component. The guard is removed when the component is unmounted.
530
+ *
531
+ * @param updateGuard - {@link NavigationGuard}
532
+ */
533
+ function onBeforeRouteUpdate(updateGuard) {
534
+ if (process.env.NODE_ENV !== "production" && !getCurrentInstance()) {
535
+ diagnostics.VUE_ROUTER_R0022({ fn: "onBeforeRouteUpdate" });
536
+ return;
537
+ }
538
+ registerGuard(inject(matchedRouteKey, {}), "updateGuards", updateGuard);
539
+ }
540
+ function guardToPromiseFn(guard, to, from, record, name, runWithContext = (fn) => fn()) {
541
+ const enterCallbackArray = record && (record.enterCallbacks[name] = record.enterCallbacks[name] || []);
542
+ return () => new Promise((resolve, reject) => {
543
+ const next = (valid) => {
544
+ if (valid === false) reject(createRouterError(4, {
545
+ from,
546
+ to
547
+ }));
548
+ else if (valid instanceof Error) reject(valid);
549
+ else if (isRouteLocation(valid)) reject(createRouterError(2, {
550
+ from: to,
551
+ to: valid
552
+ }));
553
+ else {
554
+ if (enterCallbackArray && record.enterCallbacks[name] === enterCallbackArray && typeof valid === "function") enterCallbackArray.push(valid);
555
+ resolve();
556
+ }
557
+ };
558
+ const guardReturn = runWithContext(() => guard.call(record && record.instances[name], to, from, process.env.NODE_ENV !== "production" ? withDeprecationWarning(canOnlyBeCalledOnce(next, to, from)) : next));
559
+ let guardCall = Promise.resolve(guardReturn);
560
+ if (guard.length < 3) guardCall = guardCall.then(next);
561
+ if (process.env.NODE_ENV !== "production" && guard.length > 2) {
562
+ const guardInfo = {
563
+ name: guard.name,
564
+ guard: guard.toString()
565
+ };
566
+ if (typeof guardReturn === "object" && "then" in guardReturn) guardCall = guardCall.then((resolvedValue) => {
567
+ if (!next._called) {
568
+ diagnostics.VUE_ROUTER_R0023(guardInfo);
569
+ return Promise.reject(/* @__PURE__ */ new Error("Invalid navigation guard"));
570
+ }
571
+ return resolvedValue;
572
+ });
573
+ else if (guardReturn !== void 0) {
574
+ if (!next._called) {
575
+ diagnostics.VUE_ROUTER_R0023(guardInfo);
576
+ reject(/* @__PURE__ */ new Error("Invalid navigation guard"));
577
+ return;
578
+ }
579
+ }
580
+ }
581
+ guardCall.catch((err) => reject(err));
582
+ });
583
+ }
584
+ /**
585
+ * Wraps the next callback to warn when it is used. Dev-only: when __DEV__ is
586
+ * false (production builds), this branch is dead code and is stripped from the
587
+ * bundle.
588
+ *
589
+ * @internal
590
+ */
591
+ function withDeprecationWarning(next) {
592
+ let warned = false;
593
+ return function() {
594
+ if (!warned) {
595
+ warned = true;
596
+ diagnostics.VUE_ROUTER_R0025();
597
+ }
598
+ return next.apply(this, arguments);
599
+ };
600
+ }
601
+ function canOnlyBeCalledOnce(next, to, from) {
602
+ let called = 0;
603
+ return function() {
604
+ if (called++ === 1) diagnostics.VUE_ROUTER_R0024({
605
+ from: from.fullPath,
606
+ to: to.fullPath
607
+ });
608
+ next._called = true;
609
+ if (called === 1) next.apply(null, arguments);
610
+ };
611
+ }
612
+ function extractComponentsGuards(matched, guardType, to, from, runWithContext = (fn) => fn()) {
613
+ const guards = [];
614
+ for (const record of matched) {
615
+ if (process.env.NODE_ENV !== "production" && !record.components && record.children && !record.children.length) diagnostics.VUE_ROUTER_R0026({ path: record.path });
616
+ for (const name in record.components) {
617
+ let rawComponent = record.components[name];
618
+ if (process.env.NODE_ENV !== "production") {
619
+ if (!rawComponent || typeof rawComponent !== "object" && typeof rawComponent !== "function") {
620
+ diagnostics.VUE_ROUTER_R0027({
621
+ name,
622
+ path: record.path,
623
+ received: String(rawComponent)
624
+ });
625
+ throw new Error("Invalid route component");
626
+ } else if ("then" in rawComponent) {
627
+ diagnostics.VUE_ROUTER_R0028({
628
+ name,
629
+ path: record.path
630
+ });
631
+ const promise = rawComponent;
632
+ rawComponent = () => promise;
633
+ } else if (rawComponent.__asyncLoader && !rawComponent.__warnedDefineAsync) {
634
+ rawComponent.__warnedDefineAsync = true;
635
+ diagnostics.VUE_ROUTER_R0029({
636
+ name,
637
+ path: record.path
638
+ });
639
+ }
640
+ }
641
+ if (guardType !== "beforeRouteEnter" && !record.instances[name]) continue;
642
+ if (isRouteComponent(rawComponent)) {
643
+ const guard = (rawComponent.__vccOpts || rawComponent)[guardType];
644
+ guard && guards.push(guardToPromiseFn(guard, to, from, record, name, runWithContext));
645
+ } else {
646
+ let componentPromise = rawComponent();
647
+ if (process.env.NODE_ENV !== "production" && !("catch" in componentPromise)) {
648
+ diagnostics.VUE_ROUTER_R0030({
649
+ name,
650
+ path: record.path
651
+ });
652
+ componentPromise = Promise.resolve(componentPromise);
653
+ }
654
+ guards.push(() => componentPromise.then((resolved) => {
655
+ if (!resolved) throw new Error(`Couldn't resolve component "${name}" at "${record.path}"`);
656
+ const resolvedComponent = isESModule(resolved) ? resolved.default : resolved;
657
+ record.mods[name] = resolved;
658
+ record.components[name] = resolvedComponent;
659
+ const guard = (resolvedComponent.__vccOpts || resolvedComponent)[guardType];
660
+ return guard && guardToPromiseFn(guard, to, from, record, name, runWithContext)();
661
+ }));
662
+ }
663
+ }
664
+ }
665
+ return guards;
666
+ }
667
+ /**
668
+ * Ensures a route is loaded, so it can be passed as o prop to `<RouterView>`.
669
+ *
670
+ * @param route - resolved route to load
671
+ */
672
+ function loadRouteLocation(route) {
673
+ return route.matched.every((record) => record.redirect) ? Promise.reject(/* @__PURE__ */ new Error("Cannot load a route that redirects.")) : Promise.all(route.matched.map((record) => record.components && Promise.all(Object.keys(record.components).reduce((promises, name) => {
674
+ const rawComponent = record.components[name];
675
+ if (typeof rawComponent === "function" && !("displayName" in rawComponent)) promises.push(rawComponent().then((resolved) => {
676
+ if (!resolved) return Promise.reject(/* @__PURE__ */ new Error(`Couldn't resolve component "${name}" at "${record.path}". Ensure you passed a function that returns a promise.`));
677
+ const resolvedComponent = isESModule(resolved) ? resolved.default : resolved;
678
+ record.mods[name] = resolved;
679
+ record.components[name] = resolvedComponent;
680
+ }));
681
+ return promises;
682
+ }, [])))).then(() => route);
683
+ }
684
+ /**
685
+ * Split the leaving, updating, and entering records.
686
+ * @internal
687
+ *
688
+ * @param to - Location we are navigating to
689
+ * @param from - Location we are navigating from
690
+ */
691
+ function extractChangingRecords(to, from) {
692
+ const leavingRecords = [];
693
+ const updatingRecords = [];
694
+ const enteringRecords = [];
695
+ const len = Math.max(from.matched.length, to.matched.length);
696
+ for (let i = 0; i < len; i++) {
697
+ const recordFrom = from.matched[i];
698
+ if (recordFrom) if (to.matched.find((record) => isSameRouteRecord(record, recordFrom))) updatingRecords.push(recordFrom);
699
+ else leavingRecords.push(recordFrom);
700
+ const recordTo = to.matched[i];
701
+ if (recordTo) {
702
+ if (!from.matched.find((record) => isSameRouteRecord(record, recordTo))) enteringRecords.push(recordTo);
703
+ }
704
+ }
705
+ return [
706
+ leavingRecords,
707
+ updatingRecords,
708
+ enteringRecords
709
+ ];
710
+ }
711
+ //#endregion
712
+ //#region src/devtools.ts
713
+ /**
714
+ * Copies a route location and removes any problematic properties that cannot be shown in devtools (e.g. Vue instances).
715
+ *
716
+ * @param routeLocation - routeLocation to format
717
+ * @param tooltip - optional tooltip
718
+ * @returns a copy of the routeLocation
719
+ */
720
+ function formatRouteLocation(routeLocation, tooltip) {
721
+ const copy = assign({}, routeLocation, { matched: routeLocation.matched.map((matched) => omit(matched, [
722
+ "instances",
723
+ "children",
724
+ "aliasOf"
725
+ ])) });
726
+ return { _custom: {
727
+ type: null,
728
+ readOnly: true,
729
+ display: routeLocation.fullPath,
730
+ tooltip,
731
+ value: copy
732
+ } };
733
+ }
734
+ function formatDisplay(display) {
735
+ return { _custom: { display } };
736
+ }
737
+ let routerId = 0;
738
+ function addDevtools(app, router, matcher) {
739
+ if (router.__hasDevtools) return;
740
+ router.__hasDevtools = true;
741
+ const id = routerId++;
742
+ setupDevtoolsPlugin({
743
+ id: "org.vuejs.router" + (id ? "." + id : ""),
744
+ label: "Vue Router",
745
+ packageName: "vue-router",
746
+ homepage: "https://router.vuejs.org",
747
+ logo: "https://router.vuejs.org/logo.png",
748
+ componentStateTypes: ["Routing"],
749
+ app
750
+ }, (api) => {
751
+ api.on.inspectComponent((payload) => {
752
+ if (payload.instanceData) payload.instanceData.state.push({
753
+ type: "Routing",
754
+ key: "$route",
755
+ editable: false,
756
+ value: formatRouteLocation(router.currentRoute.value, "Current Route")
757
+ });
758
+ });
759
+ api.on.visitComponentTree(({ treeNode: node, componentInstance }) => {
760
+ if (componentInstance.__vrv_devtools) {
761
+ const info = componentInstance.__vrv_devtools;
762
+ node.tags.push({
763
+ label: (info.name ? `${info.name.toString()}: ` : "") + info.path,
764
+ textColor: 0,
765
+ tooltip: "This component is rendered by &lt;router-view&gt;",
766
+ backgroundColor: PINK_500
767
+ });
768
+ }
769
+ if (isArray(componentInstance.__vrl_devtools)) {
770
+ componentInstance.__devtoolsApi = api;
771
+ componentInstance.__vrl_devtools.forEach((devtoolsData) => {
772
+ let label = devtoolsData.route.path;
773
+ let backgroundColor = ORANGE_400;
774
+ let tooltip = "";
775
+ let textColor = 0;
776
+ if (devtoolsData.error) {
777
+ label = devtoolsData.error;
778
+ backgroundColor = RED_100;
779
+ textColor = RED_700;
780
+ } else if (devtoolsData.isExactActive) {
781
+ backgroundColor = LIME_500;
782
+ tooltip = "This is exactly active";
783
+ } else if (devtoolsData.isActive) {
784
+ backgroundColor = BLUE_600;
785
+ tooltip = "This link is active";
786
+ }
787
+ node.tags.push({
788
+ label,
789
+ textColor,
790
+ tooltip,
791
+ backgroundColor
792
+ });
793
+ });
794
+ }
795
+ });
796
+ watch(router.currentRoute, () => {
797
+ refreshRoutesView();
798
+ api.notifyComponentUpdate();
799
+ api.sendInspectorTree(routerInspectorId);
800
+ api.sendInspectorState(routerInspectorId);
801
+ });
802
+ const navigationsLayerId = "router:navigations:" + id;
803
+ api.addTimelineLayer({
804
+ id: navigationsLayerId,
805
+ label: `Router${id ? " " + id : ""} Navigations`,
806
+ color: 4237508
807
+ });
808
+ router.onError((error, to) => {
809
+ api.addTimelineEvent({
810
+ layerId: navigationsLayerId,
811
+ event: {
812
+ title: "Error during Navigation",
813
+ subtitle: to.fullPath,
814
+ logType: "error",
815
+ time: api.now(),
816
+ data: { error },
817
+ groupId: to.meta.__navigationId
818
+ }
819
+ });
820
+ });
821
+ let navigationId = 0;
822
+ router.beforeEach((to, from) => {
823
+ const data = {
824
+ guard: formatDisplay("beforeEach"),
825
+ from: formatRouteLocation(from, "Current Location during this navigation"),
826
+ to: formatRouteLocation(to, "Target location")
827
+ };
828
+ Object.defineProperty(to.meta, "__navigationId", { value: navigationId++ });
829
+ api.addTimelineEvent({
830
+ layerId: navigationsLayerId,
831
+ event: {
832
+ time: api.now(),
833
+ title: "Start of navigation",
834
+ subtitle: to.fullPath,
835
+ data,
836
+ groupId: to.meta.__navigationId
837
+ }
838
+ });
839
+ });
840
+ router.afterEach((to, from, failure) => {
841
+ const data = { guard: formatDisplay("afterEach") };
842
+ if (failure) {
843
+ data.failure = { _custom: {
844
+ type: Error,
845
+ readOnly: true,
846
+ display: failure ? failure.message : "",
847
+ tooltip: "Navigation Failure",
848
+ value: failure
849
+ } };
850
+ data.status = formatDisplay("❌");
851
+ } else data.status = formatDisplay("✅");
852
+ data.from = formatRouteLocation(from, "Current Location during this navigation");
853
+ data.to = formatRouteLocation(to, "Target location");
854
+ api.addTimelineEvent({
855
+ layerId: navigationsLayerId,
856
+ event: {
857
+ title: "End of navigation",
858
+ subtitle: to.fullPath,
859
+ time: api.now(),
860
+ data,
861
+ logType: failure ? "warning" : "default",
862
+ groupId: to.meta.__navigationId
863
+ }
864
+ });
865
+ });
866
+ /**
867
+ * Inspector of Existing routes
868
+ */
869
+ const routerInspectorId = "router-inspector:" + id;
870
+ api.addInspector({
871
+ id: routerInspectorId,
872
+ label: "Routes" + (id ? " " + id : ""),
873
+ icon: "book",
874
+ treeFilterPlaceholder: "Search routes"
875
+ });
876
+ function refreshRoutesView() {
877
+ if (!activeRoutesPayload) return;
878
+ const payload = activeRoutesPayload;
879
+ let routes = matcher.getRoutes().filter((route) => !route.parent || !route.parent.record.components);
880
+ routes.forEach(resetMatchStateOnRouteRecord);
881
+ if (payload.filter) routes = routes.filter((route) => isRouteMatching(route, payload.filter.toLowerCase()));
882
+ routes.forEach((route) => markRouteRecordActive(route, router.currentRoute.value));
883
+ payload.rootNodes = routes.map(formatRouteRecordForInspector);
884
+ }
885
+ let activeRoutesPayload;
886
+ api.on.getInspectorTree((payload) => {
887
+ activeRoutesPayload = payload;
888
+ if (payload.app === app && payload.inspectorId === routerInspectorId) refreshRoutesView();
889
+ });
890
+ /**
891
+ * Display information about the currently selected route record
892
+ */
893
+ api.on.getInspectorState((payload) => {
894
+ if (payload.app === app && payload.inspectorId === routerInspectorId) {
895
+ const route = matcher.getRoutes().find((route) => route.record.__vd_id === payload.nodeId);
896
+ if (route) payload.state = { options: formatRouteRecordMatcherForStateInspector(route) };
897
+ }
898
+ });
899
+ api.sendInspectorTree(routerInspectorId);
900
+ api.sendInspectorState(routerInspectorId);
901
+ });
902
+ }
903
+ function modifierForKey(key) {
904
+ if (key.optional) return key.repeatable ? "*" : "?";
905
+ else return key.repeatable ? "+" : "";
906
+ }
907
+ function formatRouteRecordMatcherForStateInspector(route) {
908
+ const { record } = route;
909
+ const fields = [{
910
+ editable: false,
911
+ key: "path",
912
+ value: record.path
913
+ }];
914
+ if (record.name != null) fields.push({
915
+ editable: false,
916
+ key: "name",
917
+ value: record.name
918
+ });
919
+ fields.push({
920
+ editable: false,
921
+ key: "regexp",
922
+ value: route.re
923
+ });
924
+ if (route.keys.length) fields.push({
925
+ editable: false,
926
+ key: "keys",
927
+ value: { _custom: {
928
+ type: null,
929
+ readOnly: true,
930
+ display: route.keys.map((key) => `${key.name}${modifierForKey(key)}`).join(" "),
931
+ tooltip: "Param keys",
932
+ value: route.keys
933
+ } }
934
+ });
935
+ if (record.redirect != null) fields.push({
936
+ editable: false,
937
+ key: "redirect",
938
+ value: record.redirect
939
+ });
940
+ if (route.alias.length) fields.push({
941
+ editable: false,
942
+ key: "aliases",
943
+ value: route.alias.map((alias) => alias.record.path)
944
+ });
945
+ if (Object.keys(route.record.meta).length) fields.push({
946
+ editable: false,
947
+ key: "meta",
948
+ value: route.record.meta
949
+ });
950
+ fields.push({
951
+ key: "score",
952
+ editable: false,
953
+ value: { _custom: {
954
+ type: null,
955
+ readOnly: true,
956
+ display: route.score.map((score) => score.join(", ")).join(" | "),
957
+ tooltip: "Score used to sort routes",
958
+ value: route.score
959
+ } }
960
+ });
961
+ return fields;
962
+ }
963
+ /**
964
+ * Extracted from tailwind palette
965
+ */
966
+ const PINK_500 = 15485081;
967
+ const BLUE_600 = 2450411;
968
+ const LIME_500 = 8702998;
969
+ const CYAN_400 = 2282478;
970
+ const ORANGE_400 = 16486972;
971
+ const DARK = 6710886;
972
+ const RED_100 = 16704226;
973
+ const RED_700 = 12131356;
974
+ function formatRouteRecordForInspector(route) {
975
+ const tags = [];
976
+ const { record } = route;
977
+ if (record.name != null) tags.push({
978
+ label: String(record.name),
979
+ textColor: 0,
980
+ backgroundColor: CYAN_400
981
+ });
982
+ if (record.aliasOf) tags.push({
983
+ label: "alias",
984
+ textColor: 0,
985
+ backgroundColor: ORANGE_400
986
+ });
987
+ if (route.__vd_match) tags.push({
988
+ label: "matches",
989
+ textColor: 0,
990
+ backgroundColor: PINK_500
991
+ });
992
+ if (route.__vd_exactActive) tags.push({
993
+ label: "exact",
994
+ textColor: 0,
995
+ backgroundColor: LIME_500
996
+ });
997
+ if (route.__vd_active) tags.push({
998
+ label: "active",
999
+ textColor: 0,
1000
+ backgroundColor: BLUE_600
1001
+ });
1002
+ if (record.redirect) tags.push({
1003
+ label: typeof record.redirect === "string" ? `redirect: ${record.redirect}` : "redirects",
1004
+ textColor: 16777215,
1005
+ backgroundColor: DARK
1006
+ });
1007
+ let id = record.__vd_id;
1008
+ if (id == null) {
1009
+ id = String(routeRecordId++);
1010
+ record.__vd_id = id;
1011
+ }
1012
+ return {
1013
+ id,
1014
+ label: record.path,
1015
+ tags,
1016
+ children: route.children.map(formatRouteRecordForInspector)
1017
+ };
1018
+ }
1019
+ let routeRecordId = 0;
1020
+ const EXTRACT_REGEXP_RE = /^\/(.*)\/([a-z]*)$/;
1021
+ function markRouteRecordActive(route, currentRoute) {
1022
+ const isExactActive = currentRoute.matched.length && isSameRouteRecord(currentRoute.matched[currentRoute.matched.length - 1], route.record);
1023
+ route.__vd_exactActive = route.__vd_active = isExactActive;
1024
+ if (!isExactActive) route.__vd_active = currentRoute.matched.some((match) => isSameRouteRecord(match, route.record));
1025
+ route.children.forEach((childRoute) => markRouteRecordActive(childRoute, currentRoute));
1026
+ }
1027
+ function resetMatchStateOnRouteRecord(route) {
1028
+ route.__vd_match = false;
1029
+ route.children.forEach(resetMatchStateOnRouteRecord);
1030
+ }
1031
+ function isRouteMatching(route, filter) {
1032
+ const found = String(route.re).match(EXTRACT_REGEXP_RE);
1033
+ route.__vd_match = false;
1034
+ if (!found || found.length < 3) return false;
1035
+ if (new RegExp(found[1].replace(/\$$/, ""), found[2]).test(filter)) {
1036
+ route.children.forEach((child) => isRouteMatching(child, filter));
1037
+ if (route.record.path !== "/" || filter === "/") {
1038
+ route.__vd_match = route.re.test(filter);
1039
+ return true;
1040
+ }
1041
+ return false;
1042
+ }
1043
+ const path = route.record.path.toLowerCase();
1044
+ const decodedPath = decode(path);
1045
+ if (!filter.startsWith("/") && (decodedPath.includes(filter) || path.includes(filter))) return true;
1046
+ if (decodedPath.startsWith(filter) || path.startsWith(filter)) return true;
1047
+ if (route.record.name && String(route.record.name).includes(filter)) return true;
1048
+ return route.children.some((child) => isRouteMatching(child, filter));
1049
+ }
1050
+ function omit(obj, keys) {
1051
+ const ret = {};
1052
+ for (const key in obj) if (!keys.includes(key)) ret[key] = obj[key];
1053
+ return ret;
1054
+ }
1055
+ //#endregion
1056
+ export { PLUS_RE as A, isSameRouteLocation as C, resolveRelativePath as D, parseURL as E, isBrowser as F, encodeHash as M, encodeParam as N, stringifyURL as O, encodePath as P, START_LOCATION_NORMALIZED as S, isSameRouteRecord as T, saveScrollPosition as _, loadRouteLocation as a, normalizeBase as b, useCallbacks as c, stringifyQuery as d, isRouteLocation as f, getScrollKey as g, getSavedScrollPosition as h, guardToPromiseFn as i, decode as j, stripBase as k, normalizeQuery as l, computeScrollPosition as m, extractChangingRecords as n, onBeforeRouteLeave as o, isRouteName as p, extractComponentsGuards as r, onBeforeRouteUpdate as s, addDevtools as t, parseQuery as u, scrollToPosition as v, isSameRouteLocationParams as w, NEW_stringifyURL as x, createHref as y };