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,57 +0,0 @@
1
- /**
2
- * Expression to test part of icon name.
3
- *
4
- * Used when loading icons from Iconify API due to project naming convension.
5
- * Ignored when using custom icon sets - convension does not apply.
6
- */
7
- const matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/;
8
- /**
9
- * Convert string icon name to IconifyIconName object.
10
- */
11
- const stringToIcon = (value, validate, allowSimpleName, provider = "") => {
12
- const colonSeparated = value.split(":");
13
- if (value.slice(0, 1) === "@") {
14
- if (colonSeparated.length < 2 || colonSeparated.length > 3) return null;
15
- provider = colonSeparated.shift().slice(1);
16
- }
17
- if (colonSeparated.length > 3 || !colonSeparated.length) return null;
18
- if (colonSeparated.length > 1) {
19
- const name = colonSeparated.pop();
20
- const prefix = colonSeparated.pop();
21
- const result = {
22
- provider: colonSeparated.length > 0 ? colonSeparated[0] : provider,
23
- prefix,
24
- name
25
- };
26
- return validate && !validateIconName(result) ? null : result;
27
- }
28
- const name = colonSeparated[0];
29
- const dashSeparated = name.split("-");
30
- if (dashSeparated.length > 1) {
31
- const result = {
32
- provider,
33
- prefix: dashSeparated.shift(),
34
- name: dashSeparated.join("-")
35
- };
36
- return validate && !validateIconName(result) ? null : result;
37
- }
38
- if (allowSimpleName && provider === "") {
39
- const result = {
40
- provider,
41
- prefix: "",
42
- name
43
- };
44
- return validate && !validateIconName(result, allowSimpleName) ? null : result;
45
- }
46
- return null;
47
- };
48
- /**
49
- * Check if icon is valid.
50
- *
51
- * This function is not part of stringToIcon because validation is not needed for most code.
52
- */
53
- const validateIconName = (icon, allowSimpleName) => {
54
- if (!icon) return false;
55
- return !!((allowSimpleName && icon.prefix === "" || !!icon.prefix) && !!icon.name);
56
- };
57
- export { matchIconName, stringToIcon, validateIconName };
@@ -1,33 +0,0 @@
1
- /**
2
- * Make icon square
3
- */
4
- function makeIconSquare(icon) {
5
- if (icon.width !== icon.height) {
6
- const max = Math.max(icon.width, icon.height);
7
- return {
8
- ...icon,
9
- width: max,
10
- height: max,
11
- left: icon.left - (max - icon.width) / 2,
12
- top: icon.top - (max - icon.height) / 2
13
- };
14
- }
15
- return icon;
16
- }
17
- /**
18
- * Make icon viewBox square
19
- */
20
- function makeViewBoxSquare(viewBox) {
21
- const [left, top, width, height] = viewBox;
22
- if (width !== height) {
23
- const max = Math.max(width, height);
24
- return [
25
- left - (max - width) / 2,
26
- top - (max - height) / 2,
27
- max,
28
- max
29
- ];
30
- }
31
- return viewBox;
32
- }
33
- export { makeIconSquare, makeViewBoxSquare };
@@ -1,12 +0,0 @@
1
- /**
2
- * Merge transformations
3
- */
4
- function mergeIconTransformations(obj1, obj2) {
5
- const result = {};
6
- if (!obj1.hFlip !== !obj2.hFlip) result.hFlip = true;
7
- if (!obj1.vFlip !== !obj2.vFlip) result.vFlip = true;
8
- const rotate = ((obj1.rotate || 0) + (obj2.rotate || 0)) % 4;
9
- if (rotate) result.rotate = rotate;
10
- return result;
11
- }
12
- export { mergeIconTransformations };
@@ -1,125 +0,0 @@
1
- const minDisplayHeight = 16;
2
- const maxDisplayHeight = 24;
3
- /**
4
- * Check if displayHeight value is valid, returns 0 on failure
5
- */
6
- function validateDisplayHeight(value) {
7
- while (value < minDisplayHeight) value *= 2;
8
- while (value > maxDisplayHeight) value /= 2;
9
- return value === Math.round(value) && value >= minDisplayHeight && value <= maxDisplayHeight ? value : 0;
10
- }
11
- /**
12
- * Convert data to valid CollectionInfo
13
- */
14
- function convertIconSetInfo(data, expectedPrefix = "") {
15
- if (typeof data !== "object" || data === null) return null;
16
- const source = data;
17
- const getSourceNestedString = (field, key, defaultValue = "") => {
18
- if (typeof source[field] !== "object") return defaultValue;
19
- const obj = source[field];
20
- return typeof obj[key] === "string" ? obj[key] : defaultValue;
21
- };
22
- let name;
23
- if (typeof source.name === "string") name = source.name;
24
- else if (typeof source.title === "string") name = source.title;
25
- else return null;
26
- if (expectedPrefix !== "" && typeof source.prefix === "string" && source.prefix !== expectedPrefix) return null;
27
- const info = { name };
28
- switch (typeof source.total) {
29
- case "number":
30
- info.total = source.total;
31
- break;
32
- case "string": {
33
- const num = parseInt(source.total);
34
- if (num > 0) info.total = num;
35
- break;
36
- }
37
- }
38
- if (typeof source.version === "string") info.version = source.version;
39
- info.author = { name: getSourceNestedString("author", "name", typeof source.author === "string" ? source.author : "") };
40
- if (typeof source.author === "object") {
41
- const sourceAuthor = source.author;
42
- if (typeof sourceAuthor.url === "string") info.author.url = sourceAuthor.url;
43
- }
44
- info.license = { title: getSourceNestedString("license", "title", typeof source.license === "string" ? source.license : "") };
45
- if (typeof source.license === "object") {
46
- const sourceLicense = source.license;
47
- if (typeof sourceLicense.spdx === "string") info.license.spdx = sourceLicense.spdx;
48
- if (typeof sourceLicense.url === "string") info.license.url = sourceLicense.url;
49
- }
50
- if (source.samples instanceof Array) {
51
- const samples = [];
52
- source.samples.forEach((item) => {
53
- if (typeof item === "string" && !samples.includes(item)) samples.push(item);
54
- });
55
- if (samples.length) info.samples = samples;
56
- }
57
- if (typeof source.height === "number" || typeof source.height === "string") {
58
- const num = parseInt(source.height);
59
- if (num > 0) info.height = num;
60
- }
61
- if (source.height instanceof Array) {
62
- source.height.forEach((item) => {
63
- const num = parseInt(item);
64
- if (num > 0) {
65
- if (!(info.height instanceof Array)) info.height = [];
66
- info.height.push(num);
67
- }
68
- });
69
- switch (info.height.length) {
70
- case 0:
71
- delete info.height;
72
- break;
73
- case 1: info.height = info.height[0];
74
- }
75
- }
76
- if (typeof info.height === "number") {
77
- const displayHeight = validateDisplayHeight(info.height);
78
- if (displayHeight && displayHeight !== info.height) info.displayHeight = displayHeight;
79
- }
80
- ["samplesHeight", "displayHeight"].forEach((prop) => {
81
- const value = source[prop];
82
- if (typeof value === "number" || typeof value === "string") {
83
- const displayHeight = validateDisplayHeight(parseInt(value));
84
- if (displayHeight) info.displayHeight = displayHeight;
85
- }
86
- });
87
- if (typeof source.category === "string") info.category = source.category;
88
- if (source.tags instanceof Array) info.tags = source.tags;
89
- switch (typeof source.palette) {
90
- case "boolean":
91
- info.palette = source.palette;
92
- break;
93
- case "string":
94
- switch (source.palette.toLowerCase()) {
95
- case "colorless":
96
- case "false":
97
- info.palette = false;
98
- break;
99
- case "colorful":
100
- case "true": info.palette = true;
101
- }
102
- break;
103
- }
104
- if (source.hidden === true) info.hidden = true;
105
- Object.keys(source).forEach((key) => {
106
- const value = source[key];
107
- if (typeof value !== "string") return;
108
- switch (key) {
109
- case "url":
110
- case "uri":
111
- info.author.url = value;
112
- break;
113
- case "licenseURL":
114
- case "licenseURI":
115
- info.license.url = value;
116
- break;
117
- case "licenseID":
118
- case "licenseSPDX":
119
- info.license.spdx = value;
120
- break;
121
- }
122
- });
123
- return info;
124
- }
125
- export { convertIconSetInfo };
@@ -1,19 +0,0 @@
1
- import { defaultIconDimensions } from "../icon/defaults.js";
2
- /**
3
- * Expand minified icon set
4
- *
5
- * Opposite of minifyIconSet() from ./minify.ts
6
- */
7
- function expandIconSet(data) {
8
- const icons = Object.keys(data.icons);
9
- Object.keys(defaultIconDimensions).forEach((prop) => {
10
- if (typeof data[prop] !== typeof defaultIconDimensions[prop]) return;
11
- const value = data[prop];
12
- icons.forEach((name) => {
13
- const item = data.icons[name];
14
- if (!(prop in item)) item[prop] = value;
15
- });
16
- delete data[prop];
17
- });
18
- }
19
- export { expandIconSet };
@@ -1,25 +0,0 @@
1
- import { mergeIconData } from "../icon/merge.js";
2
- import { getIconsTree } from "./tree.js";
3
- /**
4
- * Get icon data, using prepared aliases tree
5
- */
6
- function internalGetIconData(data, name, tree) {
7
- const icons = data.icons;
8
- const aliases = data.aliases || Object.create(null);
9
- let currentProps = {};
10
- function parse(name) {
11
- currentProps = mergeIconData(icons[name] || aliases[name], currentProps);
12
- }
13
- parse(name);
14
- tree.forEach(parse);
15
- return mergeIconData(data, currentProps);
16
- }
17
- /**
18
- * Get data for icon
19
- */
20
- function getIconData(data, name) {
21
- if (data.icons[name]) return internalGetIconData(data, name, []);
22
- const tree = getIconsTree(data, [name])[name];
23
- return tree ? internalGetIconData(data, name, tree) : null;
24
- }
25
- export { getIconData, internalGetIconData };
@@ -1,36 +0,0 @@
1
- import { defaultIconDimensions } from "../icon/defaults.js";
2
- import { getIconsTree } from "./tree.js";
3
- /**
4
- * Optional properties that must be copied when copying icon set
5
- */
6
- const propsToCopy = Object.keys(defaultIconDimensions).concat(["provider"]);
7
- /**
8
- * Extract icons from icon set
9
- */
10
- function getIcons(data, names, not_found) {
11
- const icons = Object.create(null);
12
- const aliases = Object.create(null);
13
- const result = {
14
- prefix: data.prefix,
15
- icons
16
- };
17
- const sourceIcons = data.icons;
18
- const sourceAliases = data.aliases || Object.create(null);
19
- if (data.lastModified) result.lastModified = data.lastModified;
20
- const tree = getIconsTree(data, names);
21
- let empty = true;
22
- for (const name in tree) if (!tree[name]) {
23
- if (not_found && names.indexOf(name) !== -1) (result.not_found || (result.not_found = [])).push(name);
24
- } else if (sourceIcons[name]) {
25
- icons[name] = { ...sourceIcons[name] };
26
- empty = false;
27
- } else {
28
- aliases[name] = { ...sourceAliases[name] };
29
- result.aliases = aliases;
30
- }
31
- propsToCopy.forEach((attr) => {
32
- if (attr in data) result[attr] = data[attr];
33
- });
34
- return empty && not_found !== true ? null : result;
35
- }
36
- export { getIcons, propsToCopy };
@@ -1,91 +0,0 @@
1
- import { defaultIconDimensions } from "../icon/defaults.js";
2
- /**
3
- * Minify icon set
4
- *
5
- * Function finds common values for few numeric properties, such as 'width' and 'height' (see defaultIconDimensions keys for list of properties),
6
- * removes entries from icons and sets default entry in root of icon set object.
7
- *
8
- * For example, this:
9
- * {
10
- * icons: {
11
- * foo: {
12
- * body: '<g />',
13
- * width: 24
14
- * },
15
- * bar: {
16
- * body: '<g />',
17
- * width: 24
18
- * },
19
- * baz: {
20
- * body: '<g />',
21
- * width: 16
22
- * }
23
- * }
24
- * }
25
- * is changed to this:
26
- * {
27
- * icons: {
28
- * foo: {
29
- * body: '<g />'
30
- * },
31
- * bar: {
32
- * body: '<g />'
33
- * },
34
- * baz: {
35
- * body: '<g />',
36
- * width: 16
37
- * }
38
- * },
39
- * width: 24
40
- * }
41
- */
42
- function minifyIconSet(data) {
43
- const icons = Object.keys(data.icons);
44
- Object.keys(defaultIconDimensions).forEach((prop) => {
45
- if (data[prop] === defaultIconDimensions[prop]) delete data[prop];
46
- const defaultValue = defaultIconDimensions[prop];
47
- const propType = typeof defaultValue;
48
- const hasMinifiedDefault = typeof data[prop] === propType && data[prop] !== defaultValue;
49
- let maxCount = 0;
50
- let maxValue = null;
51
- const counters = /* @__PURE__ */ new Map();
52
- for (let i = 0; i < icons.length; i++) {
53
- const item = data.icons[icons[i]];
54
- let value;
55
- if (typeof item[prop] === propType) value = item[prop];
56
- else if (hasMinifiedDefault) value = data[prop];
57
- else value = defaultIconDimensions[prop];
58
- if (i === 0) {
59
- maxCount = 1;
60
- maxValue = value;
61
- counters.set(value, 1);
62
- continue;
63
- }
64
- if (!counters.has(value)) {
65
- counters.set(value, 1);
66
- continue;
67
- }
68
- const count = counters.get(value) + 1;
69
- counters.set(value, count);
70
- if (count > maxCount) {
71
- maxCount = count;
72
- maxValue = value;
73
- }
74
- }
75
- const canMinify = maxValue !== null && maxCount > 1;
76
- const oldDefault = hasMinifiedDefault ? data[prop] : null;
77
- const newDefault = canMinify ? maxValue : oldDefault;
78
- if (newDefault === defaultValue) delete data[prop];
79
- else if (canMinify) data[prop] = newDefault;
80
- icons.forEach((key) => {
81
- const item = data.icons[key];
82
- const value = prop in item ? item[prop] : hasMinifiedDefault ? oldDefault : defaultValue;
83
- if (value === newDefault || newDefault === null && value === defaultValue) {
84
- delete item[prop];
85
- return;
86
- }
87
- if (canMinify && !(prop in item)) item[prop] = value;
88
- });
89
- });
90
- }
91
- export { minifyIconSet };
@@ -1,46 +0,0 @@
1
- import { getIconsTree } from "./tree.js";
2
- import { internalGetIconData } from "./get-icon.js";
3
- /**
4
- * Extract icons from an icon set
5
- *
6
- * Returns list of icons that were found in icon set
7
- */
8
- function parseIconSet(data, callback) {
9
- const names = [];
10
- if (typeof data !== "object" || typeof data.icons !== "object") return names;
11
- if (data.not_found instanceof Array) data.not_found.forEach((name) => {
12
- callback(name, null);
13
- names.push(name);
14
- });
15
- const tree = getIconsTree(data);
16
- for (const name in tree) {
17
- const item = tree[name];
18
- if (item) {
19
- callback(name, internalGetIconData(data, name, item));
20
- names.push(name);
21
- }
22
- }
23
- return names;
24
- }
25
- /**
26
- * Async version of parseIconSet()
27
- */
28
- async function parseIconSetAsync(data, callback) {
29
- const names = [];
30
- if (typeof data !== "object" || typeof data.icons !== "object") return names;
31
- if (data.not_found instanceof Array) for (let i = 0; i < data.not_found.length; i++) {
32
- const name = data.not_found[i];
33
- await callback(name, null);
34
- names.push(name);
35
- }
36
- const tree = getIconsTree(data);
37
- for (const name in tree) {
38
- const item = tree[name];
39
- if (item) {
40
- await callback(name, internalGetIconData(data, name, item));
41
- names.push(name);
42
- }
43
- }
44
- return names;
45
- }
46
- export { parseIconSet, parseIconSetAsync };
@@ -1,23 +0,0 @@
1
- /**
2
- * Resolve icon set icons
3
- *
4
- * Returns parent icon for each icon
5
- */
6
- function getIconsTree(data, names) {
7
- const icons = data.icons;
8
- const aliases = data.aliases || Object.create(null);
9
- const resolved = Object.create(null);
10
- function resolve(name) {
11
- if (icons[name]) return resolved[name] = [];
12
- if (!(name in resolved)) {
13
- resolved[name] = null;
14
- const parent = aliases[name] && aliases[name].parent;
15
- const value = parent && resolve(parent);
16
- if (value) resolved[name] = [parent].concat(value);
17
- }
18
- return resolved[name];
19
- }
20
- (names || Object.keys(icons).concat(Object.keys(aliases))).forEach(resolve);
21
- return resolved;
22
- }
23
- export { getIconsTree };
@@ -1,42 +0,0 @@
1
- import { defaultExtendedIconProps, defaultIconDimensions } from "../icon/defaults.js";
2
- /**
3
- * Optional properties
4
- */
5
- const optionalPropertyDefaults = {
6
- provider: "",
7
- aliases: {},
8
- not_found: {},
9
- ...defaultIconDimensions
10
- };
11
- /**
12
- * Check props
13
- */
14
- function checkOptionalProps(item, defaults) {
15
- for (const prop in defaults) if (prop in item && typeof item[prop] !== typeof defaults[prop]) return false;
16
- return true;
17
- }
18
- /**
19
- * Validate icon set, return it as IconifyJSON on success, null on failure
20
- *
21
- * Unlike validateIconSet(), this function is very basic.
22
- * It does not throw exceptions, it does not check metadata, it does not fix stuff.
23
- */
24
- function quicklyValidateIconSet(obj) {
25
- if (typeof obj !== "object" || obj === null) return null;
26
- const data = obj;
27
- if (typeof data.prefix !== "string" || !obj.icons || typeof obj.icons !== "object") return null;
28
- if (!checkOptionalProps(obj, optionalPropertyDefaults)) return null;
29
- const icons = data.icons;
30
- for (const name in icons) {
31
- const icon = icons[name];
32
- if (!name || typeof icon.body !== "string" || !checkOptionalProps(icon, defaultExtendedIconProps)) return null;
33
- }
34
- const aliases = data.aliases || Object.create(null);
35
- for (const name in aliases) {
36
- const icon = aliases[name];
37
- const parent = icon.parent;
38
- if (!name || typeof parent !== "string" || !icons[parent] && !aliases[parent] || !checkOptionalProps(icon, defaultExtendedIconProps)) return null;
39
- }
40
- return data;
41
- }
42
- export { quicklyValidateIconSet };
@@ -1,123 +0,0 @@
1
- import { defaultExtendedIconProps } from "../icon/defaults.js";
2
- import { getIconsTree } from "./tree.js";
3
- /**
4
- * Match character
5
- */
6
- const matchChar = /^[a-f0-9]+(-[a-f0-9]+)*$/;
7
- /**
8
- * Validate icon
9
- *
10
- * Returns name of property that failed validation or null on success
11
- */
12
- function validateIconProps(item, fix, checkOtherProps) {
13
- for (const key in item) {
14
- const attr = key;
15
- const type = typeof item[attr];
16
- if (type === "undefined") {
17
- delete item[attr];
18
- continue;
19
- }
20
- const expectedType = typeof defaultExtendedIconProps[attr];
21
- if (expectedType !== "undefined") {
22
- if (type !== expectedType) {
23
- if (fix) {
24
- delete item[attr];
25
- continue;
26
- }
27
- return attr;
28
- }
29
- continue;
30
- }
31
- if (checkOtherProps && type === "object") if (fix) delete item[attr];
32
- else return key;
33
- }
34
- return null;
35
- }
36
- /**
37
- * Validate icon set
38
- * @returns param obj as IconifyJSON type on success, throw error on failure
39
- */
40
- function validateIconSet(obj, options) {
41
- const fix = !!(options && options.fix);
42
- if (typeof obj !== "object" || obj === null || typeof obj.icons !== "object" || !obj.icons) throw new Error("Bad icon set");
43
- const data = obj;
44
- if (options && typeof options.prefix === "string") data.prefix = options.prefix;
45
- else if (typeof data.prefix !== "string" || !data.prefix) throw new Error("Invalid prefix");
46
- if (options && typeof options.provider === "string") data.provider = options.provider;
47
- else if (data.provider !== void 0) {
48
- if (typeof data.provider !== "string") if (fix) delete data.provider;
49
- else throw new Error("Invalid provider");
50
- }
51
- if (data.aliases !== void 0) {
52
- if (typeof data.aliases !== "object" || data.aliases === null) if (fix) delete data.aliases;
53
- else throw new Error("Invalid aliases list");
54
- }
55
- const tree = getIconsTree(data);
56
- const icons = data.icons;
57
- const aliases = data.aliases || Object.create(null);
58
- for (const name in tree) {
59
- const treeItem = tree[name];
60
- const isAlias = !icons[name];
61
- const parentObj = isAlias ? aliases : icons;
62
- if (!treeItem) {
63
- if (fix) {
64
- delete parentObj[name];
65
- continue;
66
- }
67
- throw new Error(`Invalid alias: ${name}`);
68
- }
69
- if (!name) {
70
- if (fix) {
71
- delete parentObj[name];
72
- continue;
73
- }
74
- throw new Error(`Invalid icon name: "${name}"`);
75
- }
76
- const item = parentObj[name];
77
- if (!isAlias) {
78
- if (typeof item.body !== "string") {
79
- if (fix) {
80
- delete parentObj[name];
81
- continue;
82
- }
83
- throw new Error(`Invalid icon: "${name}"`);
84
- }
85
- }
86
- const requiredProp = isAlias ? "parent" : "body";
87
- const key = typeof item[requiredProp] !== "string" ? requiredProp : validateIconProps(item, fix, true);
88
- if (key !== null) throw new Error(`Invalid property "${key}" in "${name}"`);
89
- }
90
- if (data.not_found !== void 0 && !(data.not_found instanceof Array)) if (fix) delete data.not_found;
91
- else throw new Error("Invalid not_found list");
92
- if (!Object.keys(data.icons).length && !(data.not_found && data.not_found.length)) throw new Error("Icon set is empty");
93
- if (fix && !Object.keys(aliases).length) delete data.aliases;
94
- const failedOptionalProp = validateIconProps(data, false, false);
95
- if (failedOptionalProp) throw new Error(`Invalid value type for "${failedOptionalProp}"`);
96
- if (data.chars !== void 0) {
97
- if (typeof data.chars !== "object" || data.chars === null) if (fix) delete data.chars;
98
- else throw new Error("Invalid characters map");
99
- }
100
- if (typeof data.chars === "object") {
101
- const chars = data.chars;
102
- Object.keys(chars).forEach((char) => {
103
- if (!matchChar.exec(char) || typeof chars[char] !== "string") {
104
- if (fix) {
105
- delete chars[char];
106
- return;
107
- }
108
- throw new Error(`Invalid character "${char}"`);
109
- }
110
- const target = chars[char];
111
- if (!data.icons[target] && (!data.aliases || !data.aliases[target])) {
112
- if (fix) {
113
- delete chars[char];
114
- return;
115
- }
116
- throw new Error(`Character "${char}" points to missing icon "${target}"`);
117
- }
118
- });
119
- if (fix && !Object.keys(data.chars).length) delete data.chars;
120
- }
121
- return data;
122
- }
123
- export { matchChar, validateIconSet };