renovate-log-parser 0.1.1 → 0.2.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 (343) hide show
  1. package/README.md +119 -34
  2. package/dist/commands/install-analyze-skill.d.ts +0 -1
  3. package/dist/commands/install-analyze-skill.js +15 -12
  4. package/dist/commands/install-analyze-skill.js.map +1 -1
  5. package/dist/commands/web.d.ts +2 -1
  6. package/dist/commands/web.js +23 -11
  7. package/dist/commands/web.js.map +1 -1
  8. package/dist/core/skill-template.js +17 -3
  9. package/dist/core/skill-template.js.map +1 -1
  10. package/dist/server/api.d.ts +16 -0
  11. package/dist/server/api.js +173 -0
  12. package/dist/server/api.js.map +1 -0
  13. package/dist/server/http-error.d.ts +18 -0
  14. package/dist/server/http-error.js +23 -0
  15. package/dist/server/http-error.js.map +1 -0
  16. package/dist/server/index.d.ts +34 -0
  17. package/dist/server/index.js +54 -0
  18. package/dist/server/index.js.map +1 -0
  19. package/dist/server/log-registry.d.ts +34 -0
  20. package/dist/server/log-registry.js +157 -0
  21. package/dist/server/log-registry.js.map +1 -0
  22. package/dist/server/server-main.d.ts +1 -0
  23. package/dist/server/server-main.js +31 -0
  24. package/dist/server/server-main.js.map +1 -0
  25. package/dist/server/translate-filters.d.ts +58 -0
  26. package/dist/server/translate-filters.js +119 -0
  27. package/dist/server/translate-filters.js.map +1 -0
  28. package/package.json +13 -5
  29. package/web/.output/public/200.html +1 -0
  30. package/web/.output/public/404.html +1 -0
  31. package/web/.output/public/_nuxt/BDNMzG2s.js +1 -0
  32. package/web/.output/public/_nuxt/BjDV6v2h.js +1 -0
  33. package/web/.output/public/_nuxt/CVlqYHPc.js +6 -0
  34. package/web/.output/public/_nuxt/CuOsDQlp.js +1 -0
  35. package/web/.output/public/_nuxt/CztOM3Aq.js +28 -0
  36. package/web/.output/public/_nuxt/D3wuHpM_.js +3 -0
  37. package/web/.output/public/_nuxt/DK3Fl9T5.js +1 -0
  38. package/web/.output/public/_nuxt/DUXEQ2Eh.js +3 -0
  39. package/web/.output/public/_nuxt/DVWtRbHb.js +1 -0
  40. package/web/.output/public/_nuxt/DeS15jQo.js +1 -0
  41. package/web/.output/public/_nuxt/XP9RigIT.js +1 -0
  42. package/web/.output/public/_nuxt/builds/latest.json +1 -1
  43. package/web/.output/public/_nuxt/builds/meta/f68582c9-55a9-4352-b85a-d7f8de6f7202.json +1 -0
  44. package/web/.output/public/_nuxt/entry.BlZrUrUl.css +2 -0
  45. package/web/.output/public/_nuxt/error-404.zKZBzOko.css +1 -0
  46. package/web/.output/public/_nuxt/error-500.DwXcJPfY.css +1 -0
  47. package/web/.output/public/_nuxt/lGYp6_9X.js +1 -0
  48. package/web/.output/public/_nuxt/pages.BDcbBSnU.css +1 -0
  49. package/web/.output/public/_nuxt/public-sans-latin-400-italic.B1appi_f.woff2 +0 -0
  50. package/web/.output/public/_nuxt/public-sans-latin-400-italic.DsCWG5h0.woff +0 -0
  51. package/web/.output/public/_nuxt/public-sans-latin-400-normal.8Rpg0ruU.woff2 +0 -0
  52. package/web/.output/public/_nuxt/public-sans-latin-400-normal.SBbinRkI.woff +0 -0
  53. package/web/.output/public/_nuxt/public-sans-latin-500-normal.NlrCPXnF.woff2 +0 -0
  54. package/web/.output/public/_nuxt/public-sans-latin-500-normal.vCxiVFAq.woff +0 -0
  55. package/web/.output/public/_nuxt/public-sans-latin-600-normal.BR59oU-I.woff +0 -0
  56. package/web/.output/public/_nuxt/public-sans-latin-600-normal.Fru-LXNs.woff2 +0 -0
  57. package/web/.output/public/_nuxt/public-sans-latin-700-normal.BqJmxWdE.woff2 +0 -0
  58. package/web/.output/public/_nuxt/public-sans-latin-700-normal.Dm-oTPSL.woff +0 -0
  59. package/web/.output/public/favicon-dark.svg +32 -0
  60. package/web/.output/public/favicon-light.svg +32 -0
  61. package/web/.output/public/index.html +1 -0
  62. package/web/.output/nitro.json +0 -15
  63. package/web/.output/public/_fonts/57NSSoFy1VLVs2gqly8Ls9awBnZMFyXGrefpmqvdqmc-zJfbBtpgM4cDmcXBsqZNW79_kFnlpPd62b48glgdydA.woff2 +0 -0
  64. package/web/.output/public/_fonts/8VR2wSMN-3U4NbWAVYXlkRV6hA0jFBXP-0RtL3X7fko-x2gYI4qfmkRdxyQQUPaBZdZdgl1TeVrquF_TxHeM4lM.woff2 +0 -0
  65. package/web/.output/public/_fonts/GsKUclqeNLJ96g5AU593ug6yanivOiwjW_7zESNPChw-jHA4tBeM1bjF7LATGUpfBuSTyomIFrWBTzjF7txVYfg.woff2 +0 -0
  66. package/web/.output/public/_fonts/Ld1FnTo3yTIwDyGfTQ5-Fws9AWsCbKfMvgxduXr7JcY-W25bL8NF1fjpLRSOgJb7RoZPHqGQNwMTM7S9tHVoxx8.woff2 +0 -0
  67. package/web/.output/public/_fonts/NdzqRASp2bovDUhQT1IRE_EMqKJ2KYQdTCfFcBvL8yw-KhwZiS86o3fErOe5GGMExHUemmI_dBfaEFxjISZrBd0.woff2 +0 -0
  68. package/web/.output/public/_fonts/iTkrULNFJJkTvihIg1Vqi5IODRH_9btXCioVF5l98I8-AndUyau2HR2felA_ra8V2mutQgschhasE5FD1dXGJX8.woff2 +0 -0
  69. package/web/.output/public/_nuxt/BWja8e3M.js +0 -37
  70. package/web/.output/public/_nuxt/BgApMHS1.js +0 -1
  71. package/web/.output/public/_nuxt/CGPWRqbc.js +0 -1
  72. package/web/.output/public/_nuxt/DlAUqK2U.js +0 -1
  73. package/web/.output/public/_nuxt/Sgtec1U0.js +0 -1
  74. package/web/.output/public/_nuxt/builds/meta/785e7885-8d38-4aac-a7f6-735f68d27e63.json +0 -1
  75. package/web/.output/public/_nuxt/entry.9mB-pyEY.css +0 -1
  76. package/web/.output/public/_nuxt/error-404.B_PvSG-P.css +0 -1
  77. package/web/.output/public/_nuxt/error-500.CghkKCEr.css +0 -1
  78. package/web/.output/public/_nuxt/index.BlvAG7F6.css +0 -1
  79. package/web/.output/public/favicon.ico +0 -0
  80. package/web/.output/server/chunks/_/error-500.mjs +0 -19
  81. package/web/.output/server/chunks/_/error-500.mjs.map +0 -1
  82. package/web/.output/server/chunks/_/icons.mjs +0 -6153
  83. package/web/.output/server/chunks/_/icons.mjs.map +0 -1
  84. package/web/.output/server/chunks/_/icons2.mjs +0 -11494
  85. package/web/.output/server/chunks/_/icons2.mjs.map +0 -1
  86. package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs +0 -10
  87. package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs.map +0 -1
  88. package/web/.output/server/chunks/build/client.precomputed.mjs +0 -4
  89. package/web/.output/server/chunks/build/client.precomputed.mjs.map +0 -1
  90. package/web/.output/server/chunks/build/error-404-DOK13euR.mjs +0 -106
  91. package/web/.output/server/chunks/build/error-404-DOK13euR.mjs.map +0 -1
  92. package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs +0 -8
  93. package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs.map +0 -1
  94. package/web/.output/server/chunks/build/error-500-DKHEaocY.mjs +0 -89
  95. package/web/.output/server/chunks/build/error-500-DKHEaocY.mjs.map +0 -1
  96. package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs +0 -8
  97. package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs.map +0 -1
  98. package/web/.output/server/chunks/build/index-D_lNB6LA.mjs +0 -19675
  99. package/web/.output/server/chunks/build/index-D_lNB6LA.mjs.map +0 -1
  100. package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs +0 -8
  101. package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs.map +0 -1
  102. package/web/.output/server/chunks/build/server.mjs +0 -7910
  103. package/web/.output/server/chunks/build/server.mjs.map +0 -1
  104. package/web/.output/server/chunks/build/styles.mjs +0 -10
  105. package/web/.output/server/chunks/build/styles.mjs.map +0 -1
  106. package/web/.output/server/chunks/nitro/nitro.mjs +0 -6944
  107. package/web/.output/server/chunks/nitro/nitro.mjs.map +0 -1
  108. package/web/.output/server/chunks/routes/api/fields.get.mjs +0 -27
  109. package/web/.output/server/chunks/routes/api/fields.get.mjs.map +0 -1
  110. package/web/.output/server/chunks/routes/api/findings.get.mjs +0 -30
  111. package/web/.output/server/chunks/routes/api/findings.get.mjs.map +0 -1
  112. package/web/.output/server/chunks/routes/api/log/contents.post.mjs +0 -29
  113. package/web/.output/server/chunks/routes/api/log/contents.post.mjs.map +0 -1
  114. package/web/.output/server/chunks/routes/api/log/path.post.mjs +0 -30
  115. package/web/.output/server/chunks/routes/api/log/path.post.mjs.map +0 -1
  116. package/web/.output/server/chunks/routes/api/repositories.get.mjs +0 -27
  117. package/web/.output/server/chunks/routes/api/repositories.get.mjs.map +0 -1
  118. package/web/.output/server/chunks/routes/api/rows.get.mjs +0 -48
  119. package/web/.output/server/chunks/routes/api/rows.get.mjs.map +0 -1
  120. package/web/.output/server/chunks/routes/renderer.mjs +0 -451
  121. package/web/.output/server/chunks/routes/renderer.mjs.map +0 -1
  122. package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs +0 -4
  123. package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +0 -1
  124. package/web/.output/server/index.mjs +0 -16
  125. package/web/.output/server/index.mjs.map +0 -1
  126. package/web/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.mjs +0 -290
  127. package/web/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +0 -49
  128. package/web/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +0 -257
  129. package/web/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +0 -53
  130. package/web/.output/server/node_modules/@babel/parser/lib/index.js +0 -14599
  131. package/web/.output/server/node_modules/@babel/parser/package.json +0 -50
  132. package/web/.output/server/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +0 -1038
  133. package/web/.output/server/node_modules/@floating-ui/core/package.json +0 -63
  134. package/web/.output/server/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +0 -789
  135. package/web/.output/server/node_modules/@floating-ui/dom/package.json +0 -72
  136. package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +0 -165
  137. package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +0 -136
  138. package/web/.output/server/node_modules/@floating-ui/utils/package.json +0 -70
  139. package/web/.output/server/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +0 -190
  140. package/web/.output/server/node_modules/@floating-ui/vue/package.json +0 -71
  141. package/web/.output/server/node_modules/@iconify/utils/lib/colors/index.js +0 -295
  142. package/web/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +0 -701
  143. package/web/.output/server/node_modules/@iconify/utils/lib/css/common.js +0 -75
  144. package/web/.output/server/node_modules/@iconify/utils/lib/css/format.js +0 -39
  145. package/web/.output/server/node_modules/@iconify/utils/lib/css/icon.js +0 -47
  146. package/web/.output/server/node_modules/@iconify/utils/lib/css/icons.js +0 -128
  147. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +0 -19
  148. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -13
  149. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +0 -17
  150. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +0 -16
  151. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +0 -30
  152. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +0 -78
  153. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +0 -100
  154. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +0 -28
  155. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +0 -58
  156. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +0 -48
  157. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +0 -203
  158. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +0 -33
  159. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +0 -132
  160. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +0 -165
  161. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +0 -79
  162. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +0 -92
  163. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +0 -26
  164. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +0 -76
  165. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +0 -66
  166. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +0 -45
  167. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +0 -103
  168. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +0 -36
  169. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +0 -92
  170. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +0 -62
  171. package/web/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +0 -25
  172. package/web/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +0 -16
  173. package/web/.output/server/node_modules/@iconify/utils/lib/icon/name.js +0 -57
  174. package/web/.output/server/node_modules/@iconify/utils/lib/icon/square.js +0 -33
  175. package/web/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +0 -12
  176. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +0 -125
  177. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +0 -19
  178. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -25
  179. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +0 -36
  180. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +0 -91
  181. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +0 -46
  182. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -23
  183. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +0 -42
  184. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +0 -123
  185. package/web/.output/server/node_modules/@iconify/utils/lib/index.js +0 -52
  186. package/web/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +0 -30
  187. package/web/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +0 -26
  188. package/web/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +0 -27
  189. package/web/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +0 -105
  190. package/web/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +0 -26
  191. package/web/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +0 -26
  192. package/web/.output/server/node_modules/@iconify/utils/lib/misc/title.js +0 -9
  193. package/web/.output/server/node_modules/@iconify/utils/lib/svg/build.js +0 -113
  194. package/web/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +0 -31
  195. package/web/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +0 -13
  196. package/web/.output/server/node_modules/@iconify/utils/lib/svg/html.js +0 -9
  197. package/web/.output/server/node_modules/@iconify/utils/lib/svg/id.js +0 -41
  198. package/web/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +0 -22
  199. package/web/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +0 -67
  200. package/web/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +0 -54
  201. package/web/.output/server/node_modules/@iconify/utils/lib/svg/size.js +0 -27
  202. package/web/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +0 -7
  203. package/web/.output/server/node_modules/@iconify/utils/lib/svg/url.js +0 -22
  204. package/web/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +0 -8
  205. package/web/.output/server/node_modules/@iconify/utils/package.json +0 -119
  206. package/web/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +0 -1896
  207. package/web/.output/server/node_modules/@iconify/vue/package.json +0 -62
  208. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -1268
  209. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +0 -34
  210. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -74
  211. package/web/.output/server/node_modules/@tanstack/virtual-core/package.json +0 -56
  212. package/web/.output/server/node_modules/@tanstack/vue-virtual/dist/esm/index.js +0 -66
  213. package/web/.output/server/node_modules/@tanstack/vue-virtual/package.json +0 -68
  214. package/web/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6759
  215. package/web/.output/server/node_modules/@vue/compiler-core/package.json +0 -58
  216. package/web/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -689
  217. package/web/.output/server/node_modules/@vue/compiler-dom/package.json +0 -57
  218. package/web/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1413
  219. package/web/.output/server/node_modules/@vue/compiler-ssr/package.json +0 -34
  220. package/web/.output/server/node_modules/@vue/devtools-api/dist/index.js +0 -2
  221. package/web/.output/server/node_modules/@vue/devtools-api/package.json +0 -34
  222. package/web/.output/server/node_modules/@vue/devtools-kit/dist/index.js +0 -5670
  223. package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/dist/index.mjs +0 -290
  224. package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/package.json +0 -49
  225. package/web/.output/server/node_modules/@vue/devtools-kit/package.json +0 -44
  226. package/web/.output/server/node_modules/@vue/devtools-shared/dist/index.js +0 -239
  227. package/web/.output/server/node_modules/@vue/devtools-shared/package.json +0 -33
  228. package/web/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1899
  229. package/web/.output/server/node_modules/@vue/reactivity/package.json +0 -55
  230. package/web/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -6940
  231. package/web/.output/server/node_modules/@vue/runtime-core/package.json +0 -52
  232. package/web/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1822
  233. package/web/.output/server/node_modules/@vue/runtime-dom/package.json +0 -60
  234. package/web/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -896
  235. package/web/.output/server/node_modules/@vue/server-renderer/package.json +0 -55
  236. package/web/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +0 -604
  237. package/web/.output/server/node_modules/@vue/shared/package.json +0 -47
  238. package/web/.output/server/node_modules/@vueuse/core/dist/index.js +0 -8464
  239. package/web/.output/server/node_modules/@vueuse/core/package.json +0 -49
  240. package/web/.output/server/node_modules/@vueuse/shared/dist/index.js +0 -2013
  241. package/web/.output/server/node_modules/@vueuse/shared/package.json +0 -42
  242. package/web/.output/server/node_modules/aria-hidden/dist/es5/index.js +0 -174
  243. package/web/.output/server/node_modules/aria-hidden/package.json +0 -71
  244. package/web/.output/server/node_modules/birpc/dist/index.mjs +0 -291
  245. package/web/.output/server/node_modules/birpc/package.json +0 -57
  246. package/web/.output/server/node_modules/consola/dist/chunks/prompt.mjs +0 -280
  247. package/web/.output/server/node_modules/consola/dist/core.mjs +0 -512
  248. package/web/.output/server/node_modules/consola/dist/index.mjs +0 -651
  249. package/web/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
  250. package/web/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
  251. package/web/.output/server/node_modules/consola/package.json +0 -136
  252. package/web/.output/server/node_modules/devalue/index.js +0 -4
  253. package/web/.output/server/node_modules/devalue/package.json +0 -40
  254. package/web/.output/server/node_modules/devalue/src/base64.js +0 -60
  255. package/web/.output/server/node_modules/devalue/src/constants.js +0 -12
  256. package/web/.output/server/node_modules/devalue/src/parse.js +0 -283
  257. package/web/.output/server/node_modules/devalue/src/stringify.js +0 -401
  258. package/web/.output/server/node_modules/devalue/src/uneval.js +0 -552
  259. package/web/.output/server/node_modules/devalue/src/utils.js +0 -160
  260. package/web/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
  261. package/web/.output/server/node_modules/entities/dist/commonjs/decode.js +0 -568
  262. package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -7
  263. package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -7
  264. package/web/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +0 -21
  265. package/web/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +0 -31
  266. package/web/.output/server/node_modules/entities/dist/commonjs/package.json +0 -3
  267. package/web/.output/server/node_modules/entities/package.json +0 -120
  268. package/web/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +0 -344
  269. package/web/.output/server/node_modules/estree-walker/package.json +0 -37
  270. package/web/.output/server/node_modules/hookable/dist/index.mjs +0 -257
  271. package/web/.output/server/node_modules/hookable/package.json +0 -53
  272. package/web/.output/server/node_modules/nostics/dist/index.mjs +0 -179
  273. package/web/.output/server/node_modules/nostics/package.json +0 -124
  274. package/web/.output/server/node_modules/perfect-debounce/dist/index.mjs +0 -89
  275. package/web/.output/server/node_modules/perfect-debounce/package.json +0 -41
  276. package/web/.output/server/node_modules/rou3/dist/index.mjs +0 -501
  277. package/web/.output/server/node_modules/rou3/package.json +0 -48
  278. package/web/.output/server/node_modules/source-map-js/lib/array-set.js +0 -121
  279. package/web/.output/server/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  280. package/web/.output/server/node_modules/source-map-js/lib/base64.js +0 -67
  281. package/web/.output/server/node_modules/source-map-js/lib/binary-search.js +0 -111
  282. package/web/.output/server/node_modules/source-map-js/lib/mapping-list.js +0 -79
  283. package/web/.output/server/node_modules/source-map-js/lib/quick-sort.js +0 -132
  284. package/web/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  285. package/web/.output/server/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  286. package/web/.output/server/node_modules/source-map-js/lib/source-node.js +0 -413
  287. package/web/.output/server/node_modules/source-map-js/lib/util.js +0 -594
  288. package/web/.output/server/node_modules/source-map-js/package.json +0 -71
  289. package/web/.output/server/node_modules/source-map-js/source-map.js +0 -8
  290. package/web/.output/server/node_modules/srvx/dist/_chunks/_body-limit.mjs +0 -39
  291. package/web/.output/server/node_modules/srvx/dist/_chunks/_plugins.mjs +0 -56
  292. package/web/.output/server/node_modules/srvx/dist/_chunks/_trust-proxy.mjs +0 -58
  293. package/web/.output/server/node_modules/srvx/dist/_chunks/_url.mjs +0 -134
  294. package/web/.output/server/node_modules/srvx/dist/_chunks/_utils.mjs +0 -15
  295. package/web/.output/server/node_modules/srvx/dist/_chunks/_utils2.mjs +0 -75
  296. package/web/.output/server/node_modules/srvx/dist/adapters/node.mjs +0 -976
  297. package/web/.output/server/node_modules/srvx/package.json +0 -102
  298. package/web/.output/server/node_modules/tailwind-merge/dist/bundle-mjs.mjs +0 -3365
  299. package/web/.output/server/node_modules/tailwind-merge/package.json +0 -93
  300. package/web/.output/server/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +0 -112
  301. package/web/.output/server/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +0 -269
  302. package/web/.output/server/node_modules/tailwind-variants/dist/index.js +0 -38
  303. package/web/.output/server/node_modules/tailwind-variants/package.json +0 -122
  304. package/web/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +0 -1
  305. package/web/.output/server/node_modules/tailwindcss/dist/colors.mjs +0 -1
  306. package/web/.output/server/node_modules/tailwindcss/package.json +0 -89
  307. package/web/.output/server/node_modules/ufo/dist/index.mjs +0 -645
  308. package/web/.output/server/node_modules/ufo/package.json +0 -48
  309. package/web/.output/server/node_modules/unhead/dist/index.mjs +0 -9
  310. package/web/.output/server/node_modules/unhead/dist/parser.mjs +0 -508
  311. package/web/.output/server/node_modules/unhead/dist/plugins.mjs +0 -101
  312. package/web/.output/server/node_modules/unhead/dist/scripts.mjs +0 -30
  313. package/web/.output/server/node_modules/unhead/dist/server.mjs +0 -180
  314. package/web/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +0 -207
  315. package/web/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +0 -43
  316. package/web/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +0 -269
  317. package/web/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +0 -182
  318. package/web/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +0 -71
  319. package/web/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +0 -236
  320. package/web/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +0 -196
  321. package/web/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +0 -44
  322. package/web/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +0 -166
  323. package/web/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +0 -38
  324. package/web/.output/server/node_modules/unhead/dist/utils.mjs +0 -5
  325. package/web/.output/server/node_modules/unhead/node_modules/hookable/dist/index.mjs +0 -257
  326. package/web/.output/server/node_modules/unhead/node_modules/hookable/package.json +0 -53
  327. package/web/.output/server/node_modules/unhead/package.json +0 -105
  328. package/web/.output/server/node_modules/vue/dist/vue.cjs.js +0 -80
  329. package/web/.output/server/node_modules/vue/dist/vue.cjs.prod.js +0 -66
  330. package/web/.output/server/node_modules/vue/index.js +0 -7
  331. package/web/.output/server/node_modules/vue/index.mjs +0 -1
  332. package/web/.output/server/node_modules/vue/package.json +0 -112
  333. package/web/.output/server/node_modules/vue/server-renderer/index.mjs +0 -1
  334. package/web/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +0 -249
  335. package/web/.output/server/node_modules/vue-bundle-renderer/package.json +0 -57
  336. package/web/.output/server/node_modules/vue-demi/lib/index.mjs +0 -34
  337. package/web/.output/server/node_modules/vue-demi/package.json +0 -47
  338. package/web/.output/server/node_modules/vue-router/dist/devtools-Bpr7ZAVB.js +0 -1056
  339. package/web/.output/server/node_modules/vue-router/dist/useApi-CROJJdhE.js +0 -436
  340. package/web/.output/server/node_modules/vue-router/dist/vue-router.js +0 -1543
  341. package/web/.output/server/node_modules/vue-router/package.json +0 -214
  342. package/web/.output/server/node_modules/vue-router/vue-router.node.mjs +0 -2
  343. 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 };