renovate-log-parser 0.1.0 → 0.1.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 (299) hide show
  1. package/README.md +39 -27
  2. package/dist/commands/web.d.ts +2 -1
  3. package/dist/commands/web.js +23 -11
  4. package/dist/commands/web.js.map +1 -1
  5. package/dist/server/api.d.ts +16 -0
  6. package/dist/server/api.js +173 -0
  7. package/dist/server/api.js.map +1 -0
  8. package/dist/server/http-error.d.ts +18 -0
  9. package/dist/server/http-error.js +23 -0
  10. package/dist/server/http-error.js.map +1 -0
  11. package/dist/server/index.d.ts +34 -0
  12. package/dist/server/index.js +54 -0
  13. package/dist/server/index.js.map +1 -0
  14. package/dist/server/log-registry.d.ts +34 -0
  15. package/dist/server/log-registry.js +157 -0
  16. package/dist/server/log-registry.js.map +1 -0
  17. package/dist/server/server-main.d.ts +1 -0
  18. package/dist/server/server-main.js +31 -0
  19. package/dist/server/server-main.js.map +1 -0
  20. package/dist/server/translate-filters.d.ts +58 -0
  21. package/dist/server/translate-filters.js +119 -0
  22. package/dist/server/translate-filters.js.map +1 -0
  23. package/package.json +6 -3
  24. package/web/.output/public/200.html +1 -0
  25. package/web/.output/public/404.html +1 -0
  26. package/web/.output/public/_nuxt/{CGPWRqbc.js → B4JKWaDj.js} +1 -1
  27. package/web/.output/public/_nuxt/Bs-RnkRE.js +37 -0
  28. package/web/.output/public/_nuxt/{Sgtec1U0.js → DjtJytwR.js} +1 -1
  29. package/web/.output/public/_nuxt/{BgApMHS1.js → a71R3CFc.js} +1 -1
  30. package/web/.output/public/_nuxt/builds/latest.json +1 -1
  31. package/web/.output/public/_nuxt/builds/meta/bc129b23-5172-4e74-875d-2a24574a5dbe.json +1 -0
  32. package/web/.output/public/index.html +1 -0
  33. package/web/.output/nitro.json +0 -15
  34. package/web/.output/public/_nuxt/BWja8e3M.js +0 -37
  35. package/web/.output/public/_nuxt/builds/meta/c4723e49-0623-47af-ae79-9ab6428bdcc1.json +0 -1
  36. package/web/.output/server/chunks/_/error-500.mjs +0 -19
  37. package/web/.output/server/chunks/_/error-500.mjs.map +0 -1
  38. package/web/.output/server/chunks/_/icons.mjs +0 -6153
  39. package/web/.output/server/chunks/_/icons.mjs.map +0 -1
  40. package/web/.output/server/chunks/_/icons2.mjs +0 -11494
  41. package/web/.output/server/chunks/_/icons2.mjs.map +0 -1
  42. package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs +0 -10
  43. package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs.map +0 -1
  44. package/web/.output/server/chunks/build/client.precomputed.mjs +0 -4
  45. package/web/.output/server/chunks/build/client.precomputed.mjs.map +0 -1
  46. package/web/.output/server/chunks/build/error-404-DyaaQUIS.mjs +0 -106
  47. package/web/.output/server/chunks/build/error-404-DyaaQUIS.mjs.map +0 -1
  48. package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs +0 -8
  49. package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs.map +0 -1
  50. package/web/.output/server/chunks/build/error-500-CVSP-p02.mjs +0 -89
  51. package/web/.output/server/chunks/build/error-500-CVSP-p02.mjs.map +0 -1
  52. package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs +0 -8
  53. package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs.map +0 -1
  54. package/web/.output/server/chunks/build/index-88dXYOxO.mjs +0 -19675
  55. package/web/.output/server/chunks/build/index-88dXYOxO.mjs.map +0 -1
  56. package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs +0 -8
  57. package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs.map +0 -1
  58. package/web/.output/server/chunks/build/server.mjs +0 -7910
  59. package/web/.output/server/chunks/build/server.mjs.map +0 -1
  60. package/web/.output/server/chunks/build/styles.mjs +0 -10
  61. package/web/.output/server/chunks/build/styles.mjs.map +0 -1
  62. package/web/.output/server/chunks/nitro/nitro.mjs +0 -6944
  63. package/web/.output/server/chunks/nitro/nitro.mjs.map +0 -1
  64. package/web/.output/server/chunks/routes/api/fields.get.mjs +0 -27
  65. package/web/.output/server/chunks/routes/api/fields.get.mjs.map +0 -1
  66. package/web/.output/server/chunks/routes/api/findings.get.mjs +0 -30
  67. package/web/.output/server/chunks/routes/api/findings.get.mjs.map +0 -1
  68. package/web/.output/server/chunks/routes/api/log/contents.post.mjs +0 -29
  69. package/web/.output/server/chunks/routes/api/log/contents.post.mjs.map +0 -1
  70. package/web/.output/server/chunks/routes/api/log/path.post.mjs +0 -30
  71. package/web/.output/server/chunks/routes/api/log/path.post.mjs.map +0 -1
  72. package/web/.output/server/chunks/routes/api/repositories.get.mjs +0 -27
  73. package/web/.output/server/chunks/routes/api/repositories.get.mjs.map +0 -1
  74. package/web/.output/server/chunks/routes/api/rows.get.mjs +0 -48
  75. package/web/.output/server/chunks/routes/api/rows.get.mjs.map +0 -1
  76. package/web/.output/server/chunks/routes/renderer.mjs +0 -451
  77. package/web/.output/server/chunks/routes/renderer.mjs.map +0 -1
  78. package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs +0 -4
  79. package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +0 -1
  80. package/web/.output/server/index.mjs +0 -16
  81. package/web/.output/server/index.mjs.map +0 -1
  82. package/web/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.mjs +0 -290
  83. package/web/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +0 -49
  84. package/web/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +0 -257
  85. package/web/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +0 -53
  86. package/web/.output/server/node_modules/@babel/parser/lib/index.js +0 -14599
  87. package/web/.output/server/node_modules/@babel/parser/package.json +0 -50
  88. package/web/.output/server/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +0 -1038
  89. package/web/.output/server/node_modules/@floating-ui/core/package.json +0 -63
  90. package/web/.output/server/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +0 -789
  91. package/web/.output/server/node_modules/@floating-ui/dom/package.json +0 -72
  92. package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +0 -165
  93. package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +0 -136
  94. package/web/.output/server/node_modules/@floating-ui/utils/package.json +0 -70
  95. package/web/.output/server/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +0 -190
  96. package/web/.output/server/node_modules/@floating-ui/vue/package.json +0 -71
  97. package/web/.output/server/node_modules/@iconify/utils/lib/colors/index.js +0 -295
  98. package/web/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +0 -701
  99. package/web/.output/server/node_modules/@iconify/utils/lib/css/common.js +0 -75
  100. package/web/.output/server/node_modules/@iconify/utils/lib/css/format.js +0 -39
  101. package/web/.output/server/node_modules/@iconify/utils/lib/css/icon.js +0 -47
  102. package/web/.output/server/node_modules/@iconify/utils/lib/css/icons.js +0 -128
  103. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +0 -19
  104. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -13
  105. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +0 -17
  106. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +0 -16
  107. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +0 -30
  108. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +0 -78
  109. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +0 -100
  110. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +0 -28
  111. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +0 -58
  112. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +0 -48
  113. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +0 -203
  114. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +0 -33
  115. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +0 -132
  116. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +0 -165
  117. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +0 -79
  118. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +0 -92
  119. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +0 -26
  120. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +0 -76
  121. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +0 -66
  122. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +0 -45
  123. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +0 -103
  124. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +0 -36
  125. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +0 -92
  126. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +0 -62
  127. package/web/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +0 -25
  128. package/web/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +0 -16
  129. package/web/.output/server/node_modules/@iconify/utils/lib/icon/name.js +0 -57
  130. package/web/.output/server/node_modules/@iconify/utils/lib/icon/square.js +0 -33
  131. package/web/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +0 -12
  132. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +0 -125
  133. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +0 -19
  134. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -25
  135. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +0 -36
  136. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +0 -91
  137. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +0 -46
  138. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -23
  139. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +0 -42
  140. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +0 -123
  141. package/web/.output/server/node_modules/@iconify/utils/lib/index.js +0 -52
  142. package/web/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +0 -30
  143. package/web/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +0 -26
  144. package/web/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +0 -27
  145. package/web/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +0 -105
  146. package/web/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +0 -26
  147. package/web/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +0 -26
  148. package/web/.output/server/node_modules/@iconify/utils/lib/misc/title.js +0 -9
  149. package/web/.output/server/node_modules/@iconify/utils/lib/svg/build.js +0 -113
  150. package/web/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +0 -31
  151. package/web/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +0 -13
  152. package/web/.output/server/node_modules/@iconify/utils/lib/svg/html.js +0 -9
  153. package/web/.output/server/node_modules/@iconify/utils/lib/svg/id.js +0 -41
  154. package/web/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +0 -22
  155. package/web/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +0 -67
  156. package/web/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +0 -54
  157. package/web/.output/server/node_modules/@iconify/utils/lib/svg/size.js +0 -27
  158. package/web/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +0 -7
  159. package/web/.output/server/node_modules/@iconify/utils/lib/svg/url.js +0 -22
  160. package/web/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +0 -8
  161. package/web/.output/server/node_modules/@iconify/utils/package.json +0 -119
  162. package/web/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +0 -1896
  163. package/web/.output/server/node_modules/@iconify/vue/package.json +0 -62
  164. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -1268
  165. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +0 -34
  166. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -74
  167. package/web/.output/server/node_modules/@tanstack/virtual-core/package.json +0 -56
  168. package/web/.output/server/node_modules/@tanstack/vue-virtual/dist/esm/index.js +0 -66
  169. package/web/.output/server/node_modules/@tanstack/vue-virtual/package.json +0 -68
  170. package/web/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6759
  171. package/web/.output/server/node_modules/@vue/compiler-core/package.json +0 -58
  172. package/web/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -689
  173. package/web/.output/server/node_modules/@vue/compiler-dom/package.json +0 -57
  174. package/web/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1413
  175. package/web/.output/server/node_modules/@vue/compiler-ssr/package.json +0 -34
  176. package/web/.output/server/node_modules/@vue/devtools-api/dist/index.js +0 -2
  177. package/web/.output/server/node_modules/@vue/devtools-api/package.json +0 -34
  178. package/web/.output/server/node_modules/@vue/devtools-kit/dist/index.js +0 -5670
  179. package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/dist/index.mjs +0 -290
  180. package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/package.json +0 -49
  181. package/web/.output/server/node_modules/@vue/devtools-kit/package.json +0 -44
  182. package/web/.output/server/node_modules/@vue/devtools-shared/dist/index.js +0 -239
  183. package/web/.output/server/node_modules/@vue/devtools-shared/package.json +0 -33
  184. package/web/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1899
  185. package/web/.output/server/node_modules/@vue/reactivity/package.json +0 -55
  186. package/web/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -6940
  187. package/web/.output/server/node_modules/@vue/runtime-core/package.json +0 -52
  188. package/web/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1822
  189. package/web/.output/server/node_modules/@vue/runtime-dom/package.json +0 -60
  190. package/web/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -896
  191. package/web/.output/server/node_modules/@vue/server-renderer/package.json +0 -55
  192. package/web/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +0 -604
  193. package/web/.output/server/node_modules/@vue/shared/package.json +0 -47
  194. package/web/.output/server/node_modules/@vueuse/core/dist/index.js +0 -8464
  195. package/web/.output/server/node_modules/@vueuse/core/package.json +0 -49
  196. package/web/.output/server/node_modules/@vueuse/shared/dist/index.js +0 -2013
  197. package/web/.output/server/node_modules/@vueuse/shared/package.json +0 -42
  198. package/web/.output/server/node_modules/aria-hidden/dist/es5/index.js +0 -174
  199. package/web/.output/server/node_modules/aria-hidden/package.json +0 -71
  200. package/web/.output/server/node_modules/birpc/dist/index.mjs +0 -291
  201. package/web/.output/server/node_modules/birpc/package.json +0 -57
  202. package/web/.output/server/node_modules/consola/dist/chunks/prompt.mjs +0 -280
  203. package/web/.output/server/node_modules/consola/dist/core.mjs +0 -512
  204. package/web/.output/server/node_modules/consola/dist/index.mjs +0 -651
  205. package/web/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
  206. package/web/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
  207. package/web/.output/server/node_modules/consola/package.json +0 -136
  208. package/web/.output/server/node_modules/devalue/index.js +0 -4
  209. package/web/.output/server/node_modules/devalue/package.json +0 -40
  210. package/web/.output/server/node_modules/devalue/src/base64.js +0 -60
  211. package/web/.output/server/node_modules/devalue/src/constants.js +0 -12
  212. package/web/.output/server/node_modules/devalue/src/parse.js +0 -283
  213. package/web/.output/server/node_modules/devalue/src/stringify.js +0 -401
  214. package/web/.output/server/node_modules/devalue/src/uneval.js +0 -552
  215. package/web/.output/server/node_modules/devalue/src/utils.js +0 -160
  216. package/web/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
  217. package/web/.output/server/node_modules/entities/dist/commonjs/decode.js +0 -568
  218. package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -7
  219. package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -7
  220. package/web/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +0 -21
  221. package/web/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +0 -31
  222. package/web/.output/server/node_modules/entities/dist/commonjs/package.json +0 -3
  223. package/web/.output/server/node_modules/entities/package.json +0 -120
  224. package/web/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +0 -344
  225. package/web/.output/server/node_modules/estree-walker/package.json +0 -37
  226. package/web/.output/server/node_modules/hookable/dist/index.mjs +0 -257
  227. package/web/.output/server/node_modules/hookable/package.json +0 -53
  228. package/web/.output/server/node_modules/nostics/dist/index.mjs +0 -179
  229. package/web/.output/server/node_modules/nostics/package.json +0 -124
  230. package/web/.output/server/node_modules/perfect-debounce/dist/index.mjs +0 -89
  231. package/web/.output/server/node_modules/perfect-debounce/package.json +0 -41
  232. package/web/.output/server/node_modules/rou3/dist/index.mjs +0 -501
  233. package/web/.output/server/node_modules/rou3/package.json +0 -48
  234. package/web/.output/server/node_modules/source-map-js/lib/array-set.js +0 -121
  235. package/web/.output/server/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  236. package/web/.output/server/node_modules/source-map-js/lib/base64.js +0 -67
  237. package/web/.output/server/node_modules/source-map-js/lib/binary-search.js +0 -111
  238. package/web/.output/server/node_modules/source-map-js/lib/mapping-list.js +0 -79
  239. package/web/.output/server/node_modules/source-map-js/lib/quick-sort.js +0 -132
  240. package/web/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  241. package/web/.output/server/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  242. package/web/.output/server/node_modules/source-map-js/lib/source-node.js +0 -413
  243. package/web/.output/server/node_modules/source-map-js/lib/util.js +0 -594
  244. package/web/.output/server/node_modules/source-map-js/package.json +0 -71
  245. package/web/.output/server/node_modules/source-map-js/source-map.js +0 -8
  246. package/web/.output/server/node_modules/srvx/dist/_chunks/_body-limit.mjs +0 -39
  247. package/web/.output/server/node_modules/srvx/dist/_chunks/_plugins.mjs +0 -56
  248. package/web/.output/server/node_modules/srvx/dist/_chunks/_trust-proxy.mjs +0 -58
  249. package/web/.output/server/node_modules/srvx/dist/_chunks/_url.mjs +0 -134
  250. package/web/.output/server/node_modules/srvx/dist/_chunks/_utils.mjs +0 -15
  251. package/web/.output/server/node_modules/srvx/dist/_chunks/_utils2.mjs +0 -75
  252. package/web/.output/server/node_modules/srvx/dist/adapters/node.mjs +0 -976
  253. package/web/.output/server/node_modules/srvx/package.json +0 -102
  254. package/web/.output/server/node_modules/tailwind-merge/dist/bundle-mjs.mjs +0 -3365
  255. package/web/.output/server/node_modules/tailwind-merge/package.json +0 -93
  256. package/web/.output/server/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +0 -112
  257. package/web/.output/server/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +0 -269
  258. package/web/.output/server/node_modules/tailwind-variants/dist/index.js +0 -38
  259. package/web/.output/server/node_modules/tailwind-variants/package.json +0 -122
  260. package/web/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +0 -1
  261. package/web/.output/server/node_modules/tailwindcss/dist/colors.mjs +0 -1
  262. package/web/.output/server/node_modules/tailwindcss/package.json +0 -89
  263. package/web/.output/server/node_modules/ufo/dist/index.mjs +0 -645
  264. package/web/.output/server/node_modules/ufo/package.json +0 -48
  265. package/web/.output/server/node_modules/unhead/dist/index.mjs +0 -9
  266. package/web/.output/server/node_modules/unhead/dist/parser.mjs +0 -508
  267. package/web/.output/server/node_modules/unhead/dist/plugins.mjs +0 -101
  268. package/web/.output/server/node_modules/unhead/dist/scripts.mjs +0 -30
  269. package/web/.output/server/node_modules/unhead/dist/server.mjs +0 -180
  270. package/web/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +0 -207
  271. package/web/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +0 -43
  272. package/web/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +0 -269
  273. package/web/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +0 -182
  274. package/web/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +0 -71
  275. package/web/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +0 -236
  276. package/web/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +0 -196
  277. package/web/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +0 -44
  278. package/web/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +0 -166
  279. package/web/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +0 -38
  280. package/web/.output/server/node_modules/unhead/dist/utils.mjs +0 -5
  281. package/web/.output/server/node_modules/unhead/node_modules/hookable/dist/index.mjs +0 -257
  282. package/web/.output/server/node_modules/unhead/node_modules/hookable/package.json +0 -53
  283. package/web/.output/server/node_modules/unhead/package.json +0 -105
  284. package/web/.output/server/node_modules/vue/dist/vue.cjs.js +0 -80
  285. package/web/.output/server/node_modules/vue/dist/vue.cjs.prod.js +0 -66
  286. package/web/.output/server/node_modules/vue/index.js +0 -7
  287. package/web/.output/server/node_modules/vue/index.mjs +0 -1
  288. package/web/.output/server/node_modules/vue/package.json +0 -112
  289. package/web/.output/server/node_modules/vue/server-renderer/index.mjs +0 -1
  290. package/web/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +0 -249
  291. package/web/.output/server/node_modules/vue-bundle-renderer/package.json +0 -57
  292. package/web/.output/server/node_modules/vue-demi/lib/index.mjs +0 -34
  293. package/web/.output/server/node_modules/vue-demi/package.json +0 -47
  294. package/web/.output/server/node_modules/vue-router/dist/devtools-Bpr7ZAVB.js +0 -1056
  295. package/web/.output/server/node_modules/vue-router/dist/useApi-CROJJdhE.js +0 -436
  296. package/web/.output/server/node_modules/vue-router/dist/vue-router.js +0 -1543
  297. package/web/.output/server/node_modules/vue-router/package.json +0 -214
  298. package/web/.output/server/node_modules/vue-router/vue-router.node.mjs +0 -2
  299. package/web/.output/server/package.json +0 -51
@@ -1,182 +0,0 @@
1
- import { createHooks } from 'hookable';
2
- import { n as normalizeEntryToTags, d as dedupeKey, h as hashTag, i as isMetaArrayDupeKey } from './unhead.B3VbJo7Y.mjs';
3
- import { t as tagWeight, s as sortTags } from './unhead.CbpEuj3y.mjs';
4
- import { c as UsesMergeStrategy, V as ValidHeadTags } from './unhead.yem5I2v_.mjs';
5
-
6
- function registerPlugin(head, p) {
7
- const plugin = typeof p === "function" ? p(head) : p;
8
- const key = plugin.key || String(head.plugins.size + 1);
9
- const exists = head.plugins.get(key);
10
- if (!exists) {
11
- head.plugins.set(key, plugin);
12
- head.hooks.addHooks(plugin.hooks || {});
13
- }
14
- }
15
- // @__NO_SIDE_EFFECTS__
16
- function createHeadCore(resolvedOptions = {}) {
17
- return /* @__PURE__ */ createUnhead(resolvedOptions);
18
- }
19
- // @__NO_SIDE_EFFECTS__
20
- function createUnhead(resolvedOptions = {}) {
21
- const hooks = createHooks();
22
- hooks.addHooks(resolvedOptions.hooks || {});
23
- const ssr = !resolvedOptions.document;
24
- const entries = /* @__PURE__ */ new Map();
25
- const plugins = /* @__PURE__ */ new Map();
26
- const normalizeQueue = /* @__PURE__ */ new Set();
27
- const head = {
28
- _entryCount: 1,
29
- // 0 is reserved for internal use
30
- plugins,
31
- dirty: false,
32
- resolvedOptions,
33
- hooks,
34
- ssr,
35
- entries,
36
- headEntries() {
37
- return [...entries.values()];
38
- },
39
- use: (p) => registerPlugin(head, p),
40
- push(input, _options) {
41
- const options = { ..._options || {} };
42
- delete options.head;
43
- const _i = options._index ?? head._entryCount++;
44
- const inst = { _i, input, options };
45
- const _ = {
46
- _poll(rm = false) {
47
- head.dirty = true;
48
- !rm && normalizeQueue.add(_i);
49
- hooks.callHook("entries:updated", head);
50
- },
51
- dispose() {
52
- if (entries.delete(_i)) {
53
- head.invalidate();
54
- }
55
- },
56
- // a patch is the same as creating a new entry, just a nice DX
57
- patch(input2) {
58
- if (!options.mode || options.mode === "server" && ssr || options.mode === "client" && !ssr) {
59
- inst.input = input2;
60
- entries.set(_i, inst);
61
- _._poll();
62
- }
63
- }
64
- };
65
- _.patch(input);
66
- return _;
67
- },
68
- async resolveTags() {
69
- const ctx = {
70
- tagMap: /* @__PURE__ */ new Map(),
71
- tags: [],
72
- entries: [...head.entries.values()]
73
- };
74
- await hooks.callHook("entries:resolve", ctx);
75
- while (normalizeQueue.size) {
76
- const i = normalizeQueue.values().next().value;
77
- normalizeQueue.delete(i);
78
- const e = entries.get(i);
79
- if (e) {
80
- const normalizeCtx = {
81
- tags: normalizeEntryToTags(e.input, resolvedOptions.propResolvers || []).map((t) => Object.assign(t, e.options)),
82
- entry: e
83
- };
84
- await hooks.callHook("entries:normalize", normalizeCtx);
85
- e._tags = normalizeCtx.tags.map((t, i2) => {
86
- t._w = tagWeight(head, t);
87
- t._p = (e._i << 10) + i2;
88
- t._d = dedupeKey(t);
89
- if (!t._d)
90
- t._h = hashTag(t);
91
- return t;
92
- });
93
- }
94
- }
95
- let hasFlatMeta = false;
96
- ctx.entries.flatMap((e) => (e._tags || []).map((t) => ({ ...t, props: { ...t.props } }))).sort(sortTags).reduce((acc, next) => {
97
- const k = next._d || next._h;
98
- if (!acc.has(k))
99
- return acc.set(k, next);
100
- const prev = acc.get(k);
101
- const strategy = next?.tagDuplicateStrategy || (UsesMergeStrategy.has(next.tag) ? "merge" : null) || (next.key && next.key === prev.key ? "merge" : null);
102
- if (strategy === "merge") {
103
- const newProps = { ...prev.props };
104
- Object.entries(next.props).forEach(([p, v]) => (
105
- // @ts-expect-error untyped
106
- newProps[p] = p === "style" ? new Map([...prev.props.style || /* @__PURE__ */ new Map(), ...v]) : p === "class" ? /* @__PURE__ */ new Set([...prev.props.class || /* @__PURE__ */ new Set(), ...v]) : v
107
- ));
108
- acc.set(k, { ...next, props: newProps });
109
- } else if (next._p >> 10 === prev._p >> 10 && next.tag === "meta" && isMetaArrayDupeKey(k)) {
110
- acc.set(k, Object.assign([...Array.isArray(prev) ? prev : [prev], next], next));
111
- hasFlatMeta = true;
112
- } else if (next._w === prev._w ? next._p > prev._p : next?._w < prev?._w) {
113
- acc.set(k, next);
114
- }
115
- return acc;
116
- }, ctx.tagMap);
117
- const title = ctx.tagMap.get("title");
118
- const titleTemplate = ctx.tagMap.get("titleTemplate");
119
- head._title = title?.textContent;
120
- if (titleTemplate) {
121
- const titleTemplateFn = titleTemplate?.textContent;
122
- head._titleTemplate = titleTemplateFn;
123
- if (titleTemplateFn) {
124
- let newTitle = typeof titleTemplateFn === "function" ? titleTemplateFn(title?.textContent) : titleTemplateFn;
125
- if (typeof newTitle === "string" && !head.plugins.has("template-params")) {
126
- newTitle = newTitle.replace("%s", title?.textContent || "");
127
- }
128
- if (title) {
129
- newTitle === null ? ctx.tagMap.delete("title") : ctx.tagMap.set("title", { ...title, textContent: newTitle });
130
- } else {
131
- titleTemplate.tag = "title";
132
- titleTemplate.textContent = newTitle;
133
- }
134
- }
135
- }
136
- ctx.tags = Array.from(ctx.tagMap.values());
137
- if (hasFlatMeta) {
138
- ctx.tags = ctx.tags.flat().sort(sortTags);
139
- }
140
- await hooks.callHook("tags:beforeResolve", ctx);
141
- await hooks.callHook("tags:resolve", ctx);
142
- await hooks.callHook("tags:afterResolve", ctx);
143
- const finalTags = [];
144
- for (const t of ctx.tags) {
145
- const { innerHTML, tag, props } = t;
146
- if (!ValidHeadTags.has(tag)) {
147
- continue;
148
- }
149
- if (Object.keys(props).length === 0 && !t.innerHTML && !t.textContent) {
150
- continue;
151
- }
152
- if (tag === "meta" && !props.content && !props["http-equiv"] && !props.charset) {
153
- continue;
154
- }
155
- if (tag === "script" && innerHTML) {
156
- if (String(props.type).endsWith("json")) {
157
- const v = typeof innerHTML === "string" ? innerHTML : JSON.stringify(innerHTML);
158
- t.innerHTML = v.replace(/</g, "\\u003C");
159
- } else if (typeof innerHTML === "string") {
160
- t.innerHTML = innerHTML.replace(new RegExp(`</${tag}`, "g"), `<\\/${tag}`);
161
- }
162
- t._d = dedupeKey(t);
163
- }
164
- finalTags.push(t);
165
- }
166
- return finalTags;
167
- },
168
- invalidate() {
169
- for (const entry of entries.values()) {
170
- normalizeQueue.add(entry._i);
171
- }
172
- head.dirty = true;
173
- hooks.callHook("entries:updated", head);
174
- }
175
- };
176
- (resolvedOptions?.plugins || []).forEach((p) => registerPlugin(head, p));
177
- head.hooks.callHook("init", head);
178
- resolvedOptions.init?.forEach((e) => e && head.push(e));
179
- return head;
180
- }
181
-
182
- export { createUnhead as a, createHeadCore as c };
@@ -1,71 +0,0 @@
1
- const sortTags = (a, b) => a._w === b._w ? a._p - b._p : a._w - b._w;
2
- const TAG_WEIGHTS = {
3
- base: -10,
4
- title: 10
5
- };
6
- const TAG_ALIASES = {
7
- critical: -8,
8
- high: -1,
9
- low: 2
10
- };
11
- const WEIGHT_MAP = {
12
- meta: {
13
- "content-security-policy": -30,
14
- "charset": -20,
15
- "viewport": -15
16
- },
17
- link: {
18
- "preconnect": 20,
19
- "stylesheet": 60,
20
- "preload": 70,
21
- "modulepreload": 70,
22
- "prefetch": 90,
23
- "dns-prefetch": 90,
24
- "prerender": 90
25
- },
26
- script: {
27
- async: 30,
28
- defer: 80,
29
- sync: 50
30
- },
31
- style: {
32
- imported: 40,
33
- sync: 60
34
- }
35
- };
36
- const ImportStyleRe = /@import/;
37
- const isTruthy = (val) => val === "" || val === true;
38
- function tagWeight(head, tag) {
39
- if (typeof tag.tagPriority === "number")
40
- return tag.tagPriority;
41
- let weight = 100;
42
- const offset = TAG_ALIASES[tag.tagPriority] || 0;
43
- const weightMap = head.resolvedOptions.disableCapoSorting ? {
44
- link: {},
45
- script: {},
46
- style: {}
47
- } : WEIGHT_MAP;
48
- if (tag.tag in TAG_WEIGHTS) {
49
- weight = TAG_WEIGHTS[tag.tag];
50
- } else if (tag.tag === "meta") {
51
- const metaType = tag.props["http-equiv"] === "content-security-policy" ? "content-security-policy" : tag.props.charset ? "charset" : tag.props.name === "viewport" ? "viewport" : null;
52
- if (metaType)
53
- weight = WEIGHT_MAP.meta[metaType];
54
- } else if (tag.tag === "link" && tag.props.rel) {
55
- weight = weightMap.link[tag.props.rel];
56
- } else if (tag.tag === "script") {
57
- const type = String(tag.props.type);
58
- if (isTruthy(tag.props.async)) {
59
- weight = weightMap.script.async;
60
- } else if (tag.props.src && !isTruthy(tag.props.defer) && !isTruthy(tag.props.async) && type !== "module" && !type.endsWith("json") || tag.innerHTML && !type.endsWith("json")) {
61
- weight = weightMap.script.sync;
62
- } else if (isTruthy(tag.props.defer) && tag.props.src && !isTruthy(tag.props.async) || type === "module") {
63
- weight = weightMap.script.defer;
64
- }
65
- } else if (tag.tag === "style") {
66
- weight = tag.innerHTML && ImportStyleRe.test(tag.innerHTML) ? weightMap.style.imported : weightMap.style.sync;
67
- }
68
- return (weight || 100) + offset;
69
- }
70
-
71
- export { sortTags as s, tagWeight as t };
@@ -1,236 +0,0 @@
1
- import { u as unpackMeta } from './unhead.DQc16pHI.mjs';
2
-
3
- function defineHeadPlugin(plugin) {
4
- return plugin;
5
- }
6
-
7
- const FlatMetaPlugin = /* @__PURE__ */ defineHeadPlugin({
8
- key: "flatMeta",
9
- hooks: {
10
- "entries:normalize": (ctx) => {
11
- const tagsToAdd = [];
12
- ctx.tags = ctx.tags.map((t) => {
13
- if (t.tag !== "_flatMeta") {
14
- return t;
15
- }
16
- tagsToAdd.push(unpackMeta(t.props).map((p) => ({
17
- ...t,
18
- tag: "meta",
19
- props: p
20
- })));
21
- return false;
22
- }).filter(Boolean).concat(...tagsToAdd);
23
- }
24
- }
25
- });
26
-
27
- const WhitelistAttributes = {
28
- htmlAttrs: /* @__PURE__ */ new Set(["class", "style", "lang", "dir"]),
29
- bodyAttrs: /* @__PURE__ */ new Set(["class", "style"]),
30
- meta: /* @__PURE__ */ new Set(["name", "property", "charset", "content", "media"]),
31
- noscript: /* @__PURE__ */ new Set([]),
32
- style: /* @__PURE__ */ new Set(["media", "nonce", "title", "blocking"]),
33
- script: /* @__PURE__ */ new Set(["type", "textContent", "nonce", "blocking"]),
34
- link: /* @__PURE__ */ new Set(["color", "crossorigin", "fetchpriority", "href", "hreflang", "imagesrcset", "imagesizes", "integrity", "media", "referrerpolicy", "rel", "sizes", "type"])
35
- };
36
- const BlockedLinkRels = /* @__PURE__ */ new Set(["canonical", "modulepreload", "prerender", "preload", "prefetch", "dns-prefetch", "preconnect", "manifest", "pingback"]);
37
- const SafeAttrName = /^[a-z][a-z0-9\-]*[a-z0-9]$/i;
38
- const HtmlEntityHex = /&#x([0-9a-f]+);?/gi;
39
- const HtmlEntityDec = /&#(\d+);?/g;
40
- const HtmlEntityNamed = /&(tab|newline|colon|semi|lpar|rpar|sol|bsol|comma|period|excl|num|dollar|percnt|amp|apos|ast|plus|lt|gt|equals|quest|at|lsqb|rsqb|lcub|rcub|vert|hat|grave|tilde|nbsp);?/gi;
41
- const ControlChars = /[\x00-\x20]+/g;
42
- const NamedEntityMap = {
43
- tab: " ",
44
- newline: "\n",
45
- colon: ":",
46
- semi: ";",
47
- lpar: "(",
48
- rpar: ")",
49
- sol: "/",
50
- bsol: "\\",
51
- comma: ",",
52
- period: ".",
53
- excl: "!",
54
- num: "#",
55
- dollar: "$",
56
- percnt: "%",
57
- amp: "&",
58
- apos: "'",
59
- ast: "*",
60
- plus: "+",
61
- lt: "<",
62
- gt: ">",
63
- equals: "=",
64
- quest: "?",
65
- at: "@",
66
- lsqb: "[",
67
- rsqb: "]",
68
- lcub: "{",
69
- rcub: "}",
70
- vert: "|",
71
- hat: "^",
72
- grave: "`",
73
- tilde: "~",
74
- nbsp: "\xA0"
75
- };
76
- function safeFromCodePoint(codePoint) {
77
- if (codePoint > 1114111 || codePoint < 0 || Number.isNaN(codePoint))
78
- return "";
79
- return String.fromCodePoint(codePoint);
80
- }
81
- function decodeHtmlEntities(str) {
82
- return str.replace(HtmlEntityHex, (_, hex) => safeFromCodePoint(Number.parseInt(hex, 16))).replace(HtmlEntityDec, (_, dec) => safeFromCodePoint(Number(dec))).replace(HtmlEntityNamed, (_, name) => NamedEntityMap[name.toLowerCase()] || "");
83
- }
84
- function hasDangerousProtocol(url) {
85
- const entityDecoded = decodeHtmlEntities(url);
86
- const cleaned = entityDecoded.replace(ControlChars, "");
87
- let decoded;
88
- try {
89
- decoded = decodeURIComponent(cleaned);
90
- } catch {
91
- decoded = cleaned;
92
- }
93
- const sanitized = decoded.replace(ControlChars, "");
94
- const lower = sanitized.toLowerCase();
95
- return lower.startsWith("javascript:") || lower.startsWith("data:") || lower.startsWith("vbscript:");
96
- }
97
- function stripProtoKeys(obj) {
98
- if (Array.isArray(obj))
99
- return obj.map(stripProtoKeys);
100
- if (obj && typeof obj === "object") {
101
- const clean = {};
102
- for (const key of Object.keys(obj)) {
103
- if (key === "__proto__" || key === "constructor" || key === "prototype")
104
- continue;
105
- clean[key] = stripProtoKeys(obj[key]);
106
- }
107
- return clean;
108
- }
109
- return obj;
110
- }
111
- function acceptDataAttrs(value, allowId = true) {
112
- return Object.fromEntries(
113
- Object.entries(value || {}).filter(([key]) => (allowId && key === "id" || key.startsWith("data-")) && SafeAttrName.test(key))
114
- );
115
- }
116
- function makeTagSafe(tag) {
117
- let next = {};
118
- const { tag: type, props: prev } = tag;
119
- switch (type) {
120
- // title: textContent is escaped in rendering (tagToString), no props needed
121
- case "title":
122
- break;
123
- // virtual tags, not rendered to HTML — but sanitize to prevent injection if rendered
124
- case "titleTemplate":
125
- case "templateParams":
126
- next = prev;
127
- break;
128
- case "htmlAttrs":
129
- case "bodyAttrs":
130
- WhitelistAttributes[type].forEach((attr) => {
131
- if (prev[attr]) {
132
- next[attr] = prev[attr];
133
- }
134
- });
135
- delete tag.innerHTML;
136
- delete tag.textContent;
137
- tag.props = { ...acceptDataAttrs(prev, false), ...next };
138
- return !Object.keys(tag.props).length ? false : tag;
139
- case "style":
140
- next = acceptDataAttrs(prev);
141
- WhitelistAttributes.style.forEach((key) => {
142
- if (prev[key]) {
143
- next[key] = prev[key];
144
- }
145
- });
146
- break;
147
- // meta is safe, except for http-equiv
148
- case "meta":
149
- WhitelistAttributes.meta.forEach((key) => {
150
- if (prev[key]) {
151
- next[key] = prev[key];
152
- }
153
- });
154
- break;
155
- // link tags we block preloading, prerendering, prefetching, dns-prefetch, preconnect, manifest, etc
156
- case "link":
157
- WhitelistAttributes.link.forEach((key) => {
158
- const val = prev[key];
159
- if (!val) {
160
- return;
161
- }
162
- if (key === "rel" && (typeof val !== "string" || BlockedLinkRels.has(val.toLowerCase()))) {
163
- return;
164
- }
165
- if (key === "href" || key === "imagesrcset") {
166
- if (typeof val !== "string") {
167
- return;
168
- }
169
- const urls = key === "imagesrcset" ? val.split(",").map((s) => s.trim()) : [val];
170
- if (urls.some((u) => hasDangerousProtocol(u))) {
171
- return;
172
- }
173
- next[key] = val;
174
- } else if (val) {
175
- next[key] = val;
176
- }
177
- });
178
- if (!next.href && !next.imagesrcset || !next.rel) {
179
- return false;
180
- }
181
- break;
182
- case "noscript":
183
- WhitelistAttributes.noscript.forEach((key) => {
184
- if (prev[key]) {
185
- next[key] = prev[key];
186
- }
187
- });
188
- break;
189
- // we only allow JSON in scripts
190
- case "script":
191
- if (!tag.textContent || typeof prev.type !== "string" || !prev.type.endsWith("json")) {
192
- return false;
193
- }
194
- try {
195
- const jsonVal = typeof tag.textContent === "string" ? JSON.parse(tag.textContent) : tag.textContent;
196
- tag.textContent = JSON.stringify(stripProtoKeys(jsonVal), null, 0);
197
- } catch {
198
- return false;
199
- }
200
- WhitelistAttributes.script.forEach((s) => {
201
- if (s !== "textContent" && prev[s]) {
202
- next[s] = prev[s];
203
- }
204
- });
205
- break;
206
- }
207
- delete tag.innerHTML;
208
- if (type !== "title" && type !== "script") {
209
- delete tag.textContent;
210
- }
211
- tag.props = { ...acceptDataAttrs(prev), ...next };
212
- if (!Object.keys(tag.props).length && !tag.tag.endsWith("Attrs") && !tag.textContent) {
213
- return false;
214
- }
215
- return tag;
216
- }
217
- const SafeInputPlugin = (
218
- /* @PURE */
219
- defineHeadPlugin({
220
- key: "safe",
221
- hooks: {
222
- "entries:normalize": (ctx) => {
223
- if (ctx.entry.options?._safe) {
224
- ctx.tags = ctx.tags.reduce((acc, tag) => {
225
- const safeTag = makeTagSafe(tag);
226
- if (safeTag)
227
- acc.push(safeTag);
228
- return acc;
229
- }, []);
230
- }
231
- }
232
- }
233
- })
234
- );
235
-
236
- export { FlatMetaPlugin as F, SafeInputPlugin as S, defineHeadPlugin as d };
@@ -1,196 +0,0 @@
1
- import { M as MetaTagsArrayable } from './unhead.yem5I2v_.mjs';
2
-
3
- const NAMESPACES = {
4
- META: /* @__PURE__ */ new Set(["twitter"]),
5
- OG: /* @__PURE__ */ new Set(["og", "book", "article", "profile", "fb"]),
6
- MEDIA: /* @__PURE__ */ new Set(["ogImage", "ogVideo", "ogAudio", "twitterImage"]),
7
- HTTP_EQUIV: /* @__PURE__ */ new Set(["contentType", "defaultStyle", "xUaCompatible"])
8
- };
9
- const META_ALIASES = {
10
- articleExpirationTime: "article:expiration_time",
11
- articleModifiedTime: "article:modified_time",
12
- articlePublishedTime: "article:published_time",
13
- bookReleaseDate: "book:release_date",
14
- fbAppId: "fb:app_id",
15
- ogAudioSecureUrl: "og:audio:secure_url",
16
- ogAudioUrl: "og:audio",
17
- ogImageSecureUrl: "og:image:secure_url",
18
- ogImageUrl: "og:image",
19
- ogSiteName: "og:site_name",
20
- ogVideoSecureUrl: "og:video:secure_url",
21
- ogVideoUrl: "og:video",
22
- profileFirstName: "profile:first_name",
23
- profileLastName: "profile:last_name",
24
- profileUsername: "profile:username",
25
- msapplicationConfig: "msapplication-Config",
26
- msapplicationTileColor: "msapplication-TileColor",
27
- msapplicationTileImage: "msapplication-TileImage"
28
- };
29
- const MetaPackingSchema = {
30
- appleItunesApp: {
31
- unpack: {
32
- entrySeparator: ", ",
33
- // @ts-expect-error untyped
34
- resolve: ({ key, value }) => `${fixKeyCase(key)}=${value}`
35
- }
36
- },
37
- refresh: {
38
- metaKey: "http-equiv",
39
- unpack: {
40
- entrySeparator: ";",
41
- // @ts-expect-error untyped
42
- resolve: ({ key, value }) => key === "seconds" ? `${value}` : void 0
43
- }
44
- },
45
- robots: {
46
- unpack: {
47
- entrySeparator: ", ",
48
- // @ts-expect-error untyped
49
- resolve: ({ key, value }) => typeof value === "boolean" ? fixKeyCase(key) : `${fixKeyCase(key)}:${value}`
50
- }
51
- },
52
- contentSecurityPolicy: {
53
- metaKey: "http-equiv",
54
- unpack: {
55
- entrySeparator: "; ",
56
- // @ts-expect-error untyped
57
- resolve: ({ key, value }) => `${fixKeyCase(key)} ${value}`
58
- }
59
- },
60
- charset: {}
61
- };
62
- function fixKeyCase(key) {
63
- const updated = key.replace(/([A-Z])/g, "-$1").toLowerCase();
64
- const prefixIndex = updated.indexOf("-");
65
- return prefixIndex === -1 ? updated : NAMESPACES.META.has(updated.slice(0, prefixIndex)) || NAMESPACES.OG.has(updated.slice(0, prefixIndex)) ? key.replace(/([A-Z])/g, ":$1").toLowerCase() : updated;
66
- }
67
- function sanitizeObject(input) {
68
- return Object.fromEntries(Object.entries(input).filter(([k, v]) => String(v) !== "false" && k));
69
- }
70
- function transformObject(obj) {
71
- return Array.isArray(obj) ? obj.map(transformObject) : !obj || typeof obj !== "object" ? obj : Object.fromEntries(Object.entries(obj).map(([k, v]) => [fixKeyCase(k), transformObject(v)]));
72
- }
73
- function unpackToString(value, options = {}) {
74
- const { entrySeparator = "", keyValueSeparator = "", wrapValue, resolve } = options;
75
- return Object.entries(value).map(([key, val]) => {
76
- if (resolve) {
77
- const resolved = resolve({ key, value: val });
78
- if (resolved !== void 0)
79
- return resolved;
80
- }
81
- const processedVal = typeof val === "object" ? unpackToString(val, options) : typeof val === "number" ? val.toString() : typeof val === "string" && wrapValue ? `${wrapValue}${val.replace(new RegExp(wrapValue, "g"), `\\${wrapValue}`)}${wrapValue}` : val;
82
- return `${key}${keyValueSeparator}${processedVal}`;
83
- }).join(entrySeparator);
84
- }
85
- function handleObjectEntry(key, value) {
86
- const sanitizedValue = sanitizeObject(value);
87
- const fixedKey = fixKeyCase(key);
88
- const attr = resolveMetaKeyType(fixedKey);
89
- if (!MetaTagsArrayable.has(fixedKey)) {
90
- return [{ [attr]: fixedKey, ...sanitizedValue }];
91
- }
92
- const input = Object.fromEntries(
93
- Object.entries(sanitizedValue).map(([k, v]) => [`${key}${k === "url" ? "" : `${k[0].toUpperCase()}${k.slice(1)}`}`, v])
94
- );
95
- return unpackMeta(input || {}).sort((a, b) => (a[attr]?.length || 0) - (b[attr]?.length || 0));
96
- }
97
- function resolveMetaKeyType(key) {
98
- if (MetaPackingSchema[key]?.metaKey === "http-equiv" || NAMESPACES.HTTP_EQUIV.has(key)) {
99
- return "http-equiv";
100
- }
101
- const fixed = fixKeyCase(key);
102
- const colonIndex = fixed.indexOf(":");
103
- return colonIndex === -1 ? "name" : NAMESPACES.OG.has(fixed.slice(0, colonIndex)) ? "property" : "name";
104
- }
105
- function resolveMetaKeyValue(key) {
106
- return META_ALIASES[key] || fixKeyCase(key);
107
- }
108
- function resolvePackedMetaObjectValue(value, key) {
109
- if (key === "refresh")
110
- return `${value.seconds};url=${value.url}`;
111
- return unpackToString(transformObject(value), {
112
- keyValueSeparator: "=",
113
- entrySeparator: ", ",
114
- resolve: ({ value: value2, key: key2 }) => value2 === null ? "" : typeof value2 === "boolean" ? key2 : void 0,
115
- // @ts-expect-error untyped
116
- ...MetaPackingSchema[key]?.unpack
117
- });
118
- }
119
- function unpackMeta(input) {
120
- const extras = [];
121
- const primitives = {};
122
- for (const [key, value] of Object.entries(input)) {
123
- if (Array.isArray(value)) {
124
- if (key === "themeColor") {
125
- value.forEach((v) => {
126
- if (typeof v === "object" && v !== null) {
127
- extras.push({ name: "theme-color", ...v });
128
- }
129
- });
130
- continue;
131
- }
132
- for (const v of value) {
133
- if (typeof v === "object" && v !== null) {
134
- const urlProps = [];
135
- const otherProps = [];
136
- for (const [propKey, propValue] of Object.entries(v)) {
137
- const metaKey = `${key}${propKey === "url" ? "" : `:${propKey}`}`;
138
- const meta2 = unpackMeta({ [metaKey]: propValue });
139
- (propKey === "url" ? urlProps : otherProps).push(...meta2);
140
- }
141
- extras.push(...urlProps, ...otherProps);
142
- } else {
143
- extras.push(...typeof v === "string" ? unpackMeta({ [key]: v }) : handleObjectEntry(key, v));
144
- }
145
- }
146
- continue;
147
- }
148
- if (typeof value === "object" && value) {
149
- if (NAMESPACES.MEDIA.has(key)) {
150
- const prefix = key.startsWith("twitter") ? "twitter" : "og";
151
- const type = key.replace(/^(og|twitter)/, "").toLowerCase();
152
- const metaKey = prefix === "twitter" ? "name" : "property";
153
- if (value.url) {
154
- extras.push({
155
- [metaKey]: `${prefix}:${type}`,
156
- content: value.url
157
- });
158
- }
159
- if (value.secureUrl) {
160
- extras.push({
161
- [metaKey]: `${prefix}:${type}:secure_url`,
162
- content: value.secureUrl
163
- });
164
- }
165
- for (const [propKey, propValue] of Object.entries(value)) {
166
- if (propKey !== "url" && propKey !== "secureUrl") {
167
- extras.push({
168
- [metaKey]: `${prefix}:${type}:${propKey}`,
169
- // @ts-expect-error untyped
170
- content: propValue
171
- });
172
- }
173
- }
174
- } else if (MetaTagsArrayable.has(fixKeyCase(key))) {
175
- extras.push(...handleObjectEntry(key, value));
176
- } else {
177
- primitives[key] = sanitizeObject(value);
178
- }
179
- } else {
180
- primitives[key] = value;
181
- }
182
- }
183
- const meta = Object.entries(primitives).map(([key, value]) => {
184
- if (key === "charset")
185
- return { charset: value === null ? "_null" : value };
186
- const metaKey = resolveMetaKeyType(key);
187
- const keyValue = resolveMetaKeyValue(key);
188
- const processedValue = value === null ? "_null" : typeof value === "object" ? resolvePackedMetaObjectValue(value, key) : typeof value === "number" ? value.toString() : value;
189
- return metaKey === "http-equiv" ? { "http-equiv": keyValue, "content": processedValue } : { [metaKey]: keyValue, content: processedValue };
190
- });
191
- return [...extras, ...meta].map(
192
- (m) => !("content" in m) ? m : m.content === "_null" ? { ...m, content: null } : m
193
- );
194
- }
195
-
196
- export { resolveMetaKeyValue as a, resolvePackedMetaObjectValue as b, resolveMetaKeyType as r, unpackMeta as u };