businesslens 0.2.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 (354) hide show
  1. package/.output/nitro.json +15 -0
  2. package/.output/public/_nuxt/ANTr5GBv.js +1 -0
  3. package/.output/public/_nuxt/B3Z-Zt7l.js +37 -0
  4. package/.output/public/_nuxt/Bd76-HGM.js +1 -0
  5. package/.output/public/_nuxt/Bf4VrETn.js +1 -0
  6. package/.output/public/_nuxt/CR3jGlpM.js +1 -0
  7. package/.output/public/_nuxt/CntoM1kL.js +1 -0
  8. package/.output/public/_nuxt/DogqooqX.js +1 -0
  9. package/.output/public/_nuxt/Zsu92SSr.js +1 -0
  10. package/.output/public/_nuxt/builds/latest.json +1 -0
  11. package/.output/public/_nuxt/builds/meta/e74555da-0c18-4e95-b959-2bdcc538677b.json +1 -0
  12. package/.output/public/_nuxt/default.CRZmPCG_.css +1 -0
  13. package/.output/public/_nuxt/e3lOfLH3.js +1 -0
  14. package/.output/public/_nuxt/entry.SgkJh-3P.css +1 -0
  15. package/.output/public/_nuxt/error-404.CTIGkQtd.css +1 -0
  16. package/.output/public/_nuxt/error-500.CKBWIF4V.css +1 -0
  17. package/.output/public/_nuxt/fCd72uLR.js +1 -0
  18. package/.output/public/_nuxt/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
  19. package/.output/public/_nuxt/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
  20. package/.output/public/_nuxt/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
  21. package/.output/public/_nuxt/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
  22. package/.output/public/_nuxt/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
  23. package/.output/public/_nuxt/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
  24. package/.output/public/_nuxt/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
  25. package/.output/public/_nuxt/vk0fkBN0.js +1 -0
  26. package/.output/public/_nuxt/zg6VsE4d.js +39 -0
  27. package/.output/public/brand/logo/businesslens-mark.svg +20 -0
  28. package/.output/public/favicon.svg +13 -0
  29. package/.output/server/chunks/_/error-500.mjs +19 -0
  30. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  31. package/.output/server/chunks/_/icons.mjs +6150 -0
  32. package/.output/server/chunks/_/icons.mjs.map +1 -0
  33. package/.output/server/chunks/build/Card-DJ5Lo0Cn.mjs +161 -0
  34. package/.output/server/chunks/build/Card-DJ5Lo0Cn.mjs.map +1 -0
  35. package/.output/server/chunks/build/EntityInspector-fTjbuYoq.mjs +4412 -0
  36. package/.output/server/chunks/build/EntityInspector-fTjbuYoq.mjs.map +1 -0
  37. package/.output/server/chunks/build/Slideover-KOfskX1l.mjs +4226 -0
  38. package/.output/server/chunks/build/Slideover-KOfskX1l.mjs.map +1 -0
  39. package/.output/server/chunks/build/Tooltip-DkxwLaX6.mjs +1338 -0
  40. package/.output/server/chunks/build/Tooltip-DkxwLaX6.mjs.map +1 -0
  41. package/.output/server/chunks/build/client.precomputed.mjs +4 -0
  42. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
  43. package/.output/server/chunks/build/default-BJSthw3t.mjs +8999 -0
  44. package/.output/server/chunks/build/default-BJSthw3t.mjs.map +1 -0
  45. package/.output/server/chunks/build/default-styles.BYgqaNao.mjs +8 -0
  46. package/.output/server/chunks/build/default-styles.BYgqaNao.mjs.map +1 -0
  47. package/.output/server/chunks/build/error-404-BOiGLcfP.mjs +96 -0
  48. package/.output/server/chunks/build/error-404-BOiGLcfP.mjs.map +1 -0
  49. package/.output/server/chunks/build/error-404-styles.DA-UkGXW.mjs +8 -0
  50. package/.output/server/chunks/build/error-404-styles.DA-UkGXW.mjs.map +1 -0
  51. package/.output/server/chunks/build/error-500-Bwyw373t.mjs +79 -0
  52. package/.output/server/chunks/build/error-500-Bwyw373t.mjs.map +1 -0
  53. package/.output/server/chunks/build/error-500-styles.De7qbKJ2.mjs +8 -0
  54. package/.output/server/chunks/build/error-500-styles.De7qbKJ2.mjs.map +1 -0
  55. package/.output/server/chunks/build/index-BuhKSZfH.mjs +313 -0
  56. package/.output/server/chunks/build/index-BuhKSZfH.mjs.map +1 -0
  57. package/.output/server/chunks/build/journeys-DHHOyxCM.mjs +244 -0
  58. package/.output/server/chunks/build/journeys-DHHOyxCM.mjs.map +1 -0
  59. package/.output/server/chunks/build/server.mjs +14099 -0
  60. package/.output/server/chunks/build/server.mjs.map +1 -0
  61. package/.output/server/chunks/build/styles.mjs +9 -0
  62. package/.output/server/chunks/build/styles.mjs.map +1 -0
  63. package/.output/server/chunks/build/topology-BJfDB_jA.mjs +295 -0
  64. package/.output/server/chunks/build/topology-BJfDB_jA.mjs.map +1 -0
  65. package/.output/server/chunks/build/useReport-pDAk-ETG.mjs +406 -0
  66. package/.output/server/chunks/build/useReport-pDAk-ETG.mjs.map +1 -0
  67. package/.output/server/chunks/nitro/nitro.mjs +5770 -0
  68. package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
  69. package/.output/server/chunks/routes/api/report.get.mjs +617 -0
  70. package/.output/server/chunks/routes/api/report.get.mjs.map +1 -0
  71. package/.output/server/chunks/routes/renderer.mjs +451 -0
  72. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  73. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  74. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  75. package/.output/server/index.mjs +12 -0
  76. package/.output/server/index.mjs.map +1 -0
  77. package/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.mjs +290 -0
  78. package/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +49 -0
  79. package/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +257 -0
  80. package/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +53 -0
  81. package/.output/server/node_modules/@babel/parser/lib/index.js +14599 -0
  82. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  83. package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +295 -0
  84. package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +701 -0
  85. package/.output/server/node_modules/@iconify/utils/lib/css/common.js +75 -0
  86. package/.output/server/node_modules/@iconify/utils/lib/css/format.js +39 -0
  87. package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +47 -0
  88. package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +128 -0
  89. package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +19 -0
  90. package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
  91. package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +17 -0
  92. package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +16 -0
  93. package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +30 -0
  94. package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +78 -0
  95. package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +100 -0
  96. package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +28 -0
  97. package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +58 -0
  98. package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +48 -0
  99. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +203 -0
  100. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +33 -0
  101. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +132 -0
  102. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +165 -0
  103. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +79 -0
  104. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +92 -0
  105. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +26 -0
  106. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +76 -0
  107. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +66 -0
  108. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +45 -0
  109. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +103 -0
  110. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +36 -0
  111. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +92 -0
  112. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +62 -0
  113. package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
  114. package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +16 -0
  115. package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +57 -0
  116. package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +33 -0
  117. package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +12 -0
  118. package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +125 -0
  119. package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +19 -0
  120. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +25 -0
  121. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +36 -0
  122. package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +91 -0
  123. package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +46 -0
  124. package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +23 -0
  125. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +42 -0
  126. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +123 -0
  127. package/.output/server/node_modules/@iconify/utils/lib/index.js +52 -0
  128. package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +30 -0
  129. package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +26 -0
  130. package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +27 -0
  131. package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +105 -0
  132. package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +26 -0
  133. package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +26 -0
  134. package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +9 -0
  135. package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +113 -0
  136. package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +31 -0
  137. package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +13 -0
  138. package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +9 -0
  139. package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +41 -0
  140. package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +22 -0
  141. package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +67 -0
  142. package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +54 -0
  143. package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +27 -0
  144. package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +7 -0
  145. package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +22 -0
  146. package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +8 -0
  147. package/.output/server/node_modules/@iconify/utils/package.json +119 -0
  148. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6759 -0
  149. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  150. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
  151. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  152. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
  153. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  154. package/.output/server/node_modules/@vue/devtools-api/dist/index.js +2 -0
  155. package/.output/server/node_modules/@vue/devtools-api/package.json +34 -0
  156. package/.output/server/node_modules/@vue/devtools-kit/dist/index.js +5670 -0
  157. package/.output/server/node_modules/@vue/devtools-kit/package.json +44 -0
  158. package/.output/server/node_modules/@vue/devtools-shared/dist/index.js +239 -0
  159. package/.output/server/node_modules/@vue/devtools-shared/package.json +33 -0
  160. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1899 -0
  161. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  162. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6940 -0
  163. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  164. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1822 -0
  165. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  166. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +896 -0
  167. package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
  168. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
  169. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  170. package/.output/server/node_modules/@vue-flow/core/dist/vue-flow-core.mjs +10186 -0
  171. package/.output/server/node_modules/@vue-flow/core/package.json +95 -0
  172. package/.output/server/node_modules/ajv/dist/2020.js +55 -0
  173. package/.output/server/node_modules/ajv/dist/ajv.js +50 -0
  174. package/.output/server/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  175. package/.output/server/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  176. package/.output/server/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  177. package/.output/server/node_modules/ajv/dist/compile/errors.js +123 -0
  178. package/.output/server/node_modules/ajv/dist/compile/index.js +242 -0
  179. package/.output/server/node_modules/ajv/dist/compile/names.js +28 -0
  180. package/.output/server/node_modules/ajv/dist/compile/ref_error.js +12 -0
  181. package/.output/server/node_modules/ajv/dist/compile/resolve.js +155 -0
  182. package/.output/server/node_modules/ajv/dist/compile/rules.js +26 -0
  183. package/.output/server/node_modules/ajv/dist/compile/util.js +178 -0
  184. package/.output/server/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  185. package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  186. package/.output/server/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  187. package/.output/server/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  188. package/.output/server/node_modules/ajv/dist/compile/validate/index.js +520 -0
  189. package/.output/server/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  190. package/.output/server/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  191. package/.output/server/node_modules/ajv/dist/core.js +618 -0
  192. package/.output/server/node_modules/ajv/dist/refs/data.json +13 -0
  193. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  194. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  195. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  196. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  197. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  198. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  199. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  200. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  201. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  202. package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  203. package/.output/server/node_modules/ajv/dist/runtime/equal.js +7 -0
  204. package/.output/server/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  205. package/.output/server/node_modules/ajv/dist/runtime/uri.js +6 -0
  206. package/.output/server/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  207. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  208. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  209. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  210. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  211. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  212. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  213. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  214. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  215. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  216. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  217. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  218. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  219. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  220. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  221. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  222. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  223. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  224. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  225. package/.output/server/node_modules/ajv/dist/vocabularies/code.js +131 -0
  226. package/.output/server/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  227. package/.output/server/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  228. package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  229. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  230. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  231. package/.output/server/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  232. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  233. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  234. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  235. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  236. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  237. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  238. package/.output/server/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  239. package/.output/server/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  240. package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  241. package/.output/server/node_modules/ajv/dist/vocabularies/next.js +8 -0
  242. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  243. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  244. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  245. package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  246. package/.output/server/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  247. package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  248. package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  249. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  250. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  251. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  252. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  253. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  254. package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  255. package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
  256. package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  257. package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  258. package/.output/server/node_modules/ajv/package.json +126 -0
  259. package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
  260. package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
  261. package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
  262. package/.output/server/node_modules/ajv-formats/package.json +74 -0
  263. package/.output/server/node_modules/birpc/dist/index.mjs +291 -0
  264. package/.output/server/node_modules/birpc/package.json +57 -0
  265. package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  266. package/.output/server/node_modules/consola/dist/core.mjs +512 -0
  267. package/.output/server/node_modules/consola/dist/index.mjs +651 -0
  268. package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  269. package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  270. package/.output/server/node_modules/consola/package.json +136 -0
  271. package/.output/server/node_modules/devalue/index.js +4 -0
  272. package/.output/server/node_modules/devalue/package.json +40 -0
  273. package/.output/server/node_modules/devalue/src/base64.js +60 -0
  274. package/.output/server/node_modules/devalue/src/constants.js +12 -0
  275. package/.output/server/node_modules/devalue/src/parse.js +283 -0
  276. package/.output/server/node_modules/devalue/src/stringify.js +401 -0
  277. package/.output/server/node_modules/devalue/src/uneval.js +552 -0
  278. package/.output/server/node_modules/devalue/src/utils.js +160 -0
  279. package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  280. package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  281. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  282. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  283. package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  284. package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  285. package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  286. package/.output/server/node_modules/entities/package.json +120 -0
  287. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  288. package/.output/server/node_modules/estree-walker/package.json +37 -0
  289. package/.output/server/node_modules/fast-deep-equal/index.js +46 -0
  290. package/.output/server/node_modules/fast-deep-equal/package.json +61 -0
  291. package/.output/server/node_modules/fast-uri/index.js +406 -0
  292. package/.output/server/node_modules/fast-uri/lib/schemes.js +267 -0
  293. package/.output/server/node_modules/fast-uri/lib/utils.js +443 -0
  294. package/.output/server/node_modules/fast-uri/package.json +68 -0
  295. package/.output/server/node_modules/json-schema-traverse/index.js +93 -0
  296. package/.output/server/node_modules/json-schema-traverse/package.json +43 -0
  297. package/.output/server/node_modules/perfect-debounce/dist/index.mjs +89 -0
  298. package/.output/server/node_modules/perfect-debounce/package.json +41 -0
  299. package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  300. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  301. package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  302. package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  303. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  304. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  305. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  306. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  307. package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
  308. package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  309. package/.output/server/node_modules/source-map-js/package.json +71 -0
  310. package/.output/server/node_modules/source-map-js/source-map.js +8 -0
  311. package/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +1 -0
  312. package/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
  313. package/.output/server/node_modules/tailwindcss/package.json +89 -0
  314. package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  315. package/.output/server/node_modules/ufo/package.json +48 -0
  316. package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
  317. package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
  318. package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
  319. package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
  320. package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
  321. package/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +207 -0
  322. package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  323. package/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
  324. package/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +182 -0
  325. package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
  326. package/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
  327. package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
  328. package/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +44 -0
  329. package/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +166 -0
  330. package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
  331. package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
  332. package/.output/server/node_modules/unhead/package.json +105 -0
  333. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  334. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  335. package/.output/server/node_modules/vue/index.js +7 -0
  336. package/.output/server/node_modules/vue/index.mjs +1 -0
  337. package/.output/server/node_modules/vue/package.json +112 -0
  338. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  339. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +249 -0
  340. package/.output/server/node_modules/vue-bundle-renderer/package.json +57 -0
  341. package/.output/server/node_modules/vue-router/dist/devtools-DCoWQoU_.js +1034 -0
  342. package/.output/server/node_modules/vue-router/dist/useApi-s_02lHjl.js +181 -0
  343. package/.output/server/node_modules/vue-router/dist/vue-router.js +1499 -0
  344. package/.output/server/node_modules/vue-router/package.json +226 -0
  345. package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
  346. package/.output/server/package.json +41 -0
  347. package/README.md +114 -0
  348. package/THIRD_PARTY_NOTICES.md +28 -0
  349. package/bin/businesslens.mjs +181 -0
  350. package/package.json +68 -0
  351. package/packages/report-schema/schemas/report.schema.json +235 -0
  352. package/packages/report-schema/types/index.ts +1 -0
  353. package/packages/report-schema/types/report.ts +101 -0
  354. package/packages/report-schema/validate.mjs +111 -0
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const code_1 = require("../code");
4
+ const codegen_1 = require("../../compile/codegen");
5
+ const names_1 = require("../../compile/names");
6
+ const util_1 = require("../../compile/util");
7
+ const error = {
8
+ message: "must NOT have additional properties",
9
+ params: ({ params }) => (0, codegen_1._) `{additionalProperty: ${params.additionalProperty}}`,
10
+ };
11
+ const def = {
12
+ keyword: "additionalProperties",
13
+ type: ["object"],
14
+ schemaType: ["boolean", "object"],
15
+ allowUndefined: true,
16
+ trackErrors: true,
17
+ error,
18
+ code(cxt) {
19
+ const { gen, schema, parentSchema, data, errsCount, it } = cxt;
20
+ /* istanbul ignore if */
21
+ if (!errsCount)
22
+ throw new Error("ajv implementation error");
23
+ const { allErrors, opts } = it;
24
+ it.props = true;
25
+ if (opts.removeAdditional !== "all" && (0, util_1.alwaysValidSchema)(it, schema))
26
+ return;
27
+ const props = (0, code_1.allSchemaProperties)(parentSchema.properties);
28
+ const patProps = (0, code_1.allSchemaProperties)(parentSchema.patternProperties);
29
+ checkAdditionalProperties();
30
+ cxt.ok((0, codegen_1._) `${errsCount} === ${names_1.default.errors}`);
31
+ function checkAdditionalProperties() {
32
+ gen.forIn("key", data, (key) => {
33
+ if (!props.length && !patProps.length)
34
+ additionalPropertyCode(key);
35
+ else
36
+ gen.if(isAdditional(key), () => additionalPropertyCode(key));
37
+ });
38
+ }
39
+ function isAdditional(key) {
40
+ let definedProp;
41
+ if (props.length > 8) {
42
+ // TODO maybe an option instead of hard-coded 8?
43
+ const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema.properties, "properties");
44
+ definedProp = (0, code_1.isOwnProperty)(gen, propsSchema, key);
45
+ }
46
+ else if (props.length) {
47
+ definedProp = (0, codegen_1.or)(...props.map((p) => (0, codegen_1._) `${key} === ${p}`));
48
+ }
49
+ else {
50
+ definedProp = codegen_1.nil;
51
+ }
52
+ if (patProps.length) {
53
+ definedProp = (0, codegen_1.or)(definedProp, ...patProps.map((p) => (0, codegen_1._) `${(0, code_1.usePattern)(cxt, p)}.test(${key})`));
54
+ }
55
+ return (0, codegen_1.not)(definedProp);
56
+ }
57
+ function deleteAdditional(key) {
58
+ gen.code((0, codegen_1._) `delete ${data}[${key}]`);
59
+ }
60
+ function additionalPropertyCode(key) {
61
+ if (opts.removeAdditional === "all" || (opts.removeAdditional && schema === false)) {
62
+ deleteAdditional(key);
63
+ return;
64
+ }
65
+ if (schema === false) {
66
+ cxt.setParams({ additionalProperty: key });
67
+ cxt.error();
68
+ if (!allErrors)
69
+ gen.break();
70
+ return;
71
+ }
72
+ if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) {
73
+ const valid = gen.name("valid");
74
+ if (opts.removeAdditional === "failing") {
75
+ applyAdditionalSchema(key, valid, false);
76
+ gen.if((0, codegen_1.not)(valid), () => {
77
+ cxt.reset();
78
+ deleteAdditional(key);
79
+ });
80
+ }
81
+ else {
82
+ applyAdditionalSchema(key, valid);
83
+ if (!allErrors)
84
+ gen.if((0, codegen_1.not)(valid), () => gen.break());
85
+ }
86
+ }
87
+ }
88
+ function applyAdditionalSchema(key, valid, errors) {
89
+ const subschema = {
90
+ keyword: "additionalProperties",
91
+ dataProp: key,
92
+ dataPropType: util_1.Type.Str,
93
+ };
94
+ if (errors === false) {
95
+ Object.assign(subschema, {
96
+ compositeRule: true,
97
+ createErrors: false,
98
+ allErrors: false,
99
+ });
100
+ }
101
+ cxt.subschema(subschema, valid);
102
+ }
103
+ },
104
+ };
105
+ exports.default = def;
106
+ //# sourceMappingURL=additionalProperties.js.map
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const util_1 = require("../../compile/util");
4
+ const def = {
5
+ keyword: "allOf",
6
+ schemaType: "array",
7
+ code(cxt) {
8
+ const { gen, schema, it } = cxt;
9
+ /* istanbul ignore if */
10
+ if (!Array.isArray(schema))
11
+ throw new Error("ajv implementation error");
12
+ const valid = gen.name("valid");
13
+ schema.forEach((sch, i) => {
14
+ if ((0, util_1.alwaysValidSchema)(it, sch))
15
+ return;
16
+ const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i }, valid);
17
+ cxt.ok(valid);
18
+ cxt.mergeEvaluated(schCxt);
19
+ });
20
+ },
21
+ };
22
+ exports.default = def;
23
+ //# sourceMappingURL=allOf.js.map
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const code_1 = require("../code");
4
+ const def = {
5
+ keyword: "anyOf",
6
+ schemaType: "array",
7
+ trackErrors: true,
8
+ code: code_1.validateUnion,
9
+ error: { message: "must match a schema in anyOf" },
10
+ };
11
+ exports.default = def;
12
+ //# sourceMappingURL=anyOf.js.map
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const codegen_1 = require("../../compile/codegen");
4
+ const util_1 = require("../../compile/util");
5
+ const error = {
6
+ message: ({ params: { min, max } }) => max === undefined
7
+ ? (0, codegen_1.str) `must contain at least ${min} valid item(s)`
8
+ : (0, codegen_1.str) `must contain at least ${min} and no more than ${max} valid item(s)`,
9
+ params: ({ params: { min, max } }) => max === undefined ? (0, codegen_1._) `{minContains: ${min}}` : (0, codegen_1._) `{minContains: ${min}, maxContains: ${max}}`,
10
+ };
11
+ const def = {
12
+ keyword: "contains",
13
+ type: "array",
14
+ schemaType: ["object", "boolean"],
15
+ before: "uniqueItems",
16
+ trackErrors: true,
17
+ error,
18
+ code(cxt) {
19
+ const { gen, schema, parentSchema, data, it } = cxt;
20
+ let min;
21
+ let max;
22
+ const { minContains, maxContains } = parentSchema;
23
+ if (it.opts.next) {
24
+ min = minContains === undefined ? 1 : minContains;
25
+ max = maxContains;
26
+ }
27
+ else {
28
+ min = 1;
29
+ }
30
+ const len = gen.const("len", (0, codegen_1._) `${data}.length`);
31
+ cxt.setParams({ min, max });
32
+ if (max === undefined && min === 0) {
33
+ (0, util_1.checkStrictMode)(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`);
34
+ return;
35
+ }
36
+ if (max !== undefined && min > max) {
37
+ (0, util_1.checkStrictMode)(it, `"minContains" > "maxContains" is always invalid`);
38
+ cxt.fail();
39
+ return;
40
+ }
41
+ if ((0, util_1.alwaysValidSchema)(it, schema)) {
42
+ let cond = (0, codegen_1._) `${len} >= ${min}`;
43
+ if (max !== undefined)
44
+ cond = (0, codegen_1._) `${cond} && ${len} <= ${max}`;
45
+ cxt.pass(cond);
46
+ return;
47
+ }
48
+ it.items = true;
49
+ const valid = gen.name("valid");
50
+ if (max === undefined && min === 1) {
51
+ validateItems(valid, () => gen.if(valid, () => gen.break()));
52
+ }
53
+ else if (min === 0) {
54
+ gen.let(valid, true);
55
+ if (max !== undefined)
56
+ gen.if((0, codegen_1._) `${data}.length > 0`, validateItemsWithCount);
57
+ }
58
+ else {
59
+ gen.let(valid, false);
60
+ validateItemsWithCount();
61
+ }
62
+ cxt.result(valid, () => cxt.reset());
63
+ function validateItemsWithCount() {
64
+ const schValid = gen.name("_valid");
65
+ const count = gen.let("count", 0);
66
+ validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)));
67
+ }
68
+ function validateItems(_valid, block) {
69
+ gen.forRange("i", 0, len, (i) => {
70
+ cxt.subschema({
71
+ keyword: "contains",
72
+ dataProp: i,
73
+ dataPropType: util_1.Type.Num,
74
+ compositeRule: true,
75
+ }, _valid);
76
+ block();
77
+ });
78
+ }
79
+ function checkLimits(count) {
80
+ gen.code((0, codegen_1._) `${count}++`);
81
+ if (max === undefined) {
82
+ gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true).break());
83
+ }
84
+ else {
85
+ gen.if((0, codegen_1._) `${count} > ${max}`, () => gen.assign(valid, false).break());
86
+ if (min === 1)
87
+ gen.assign(valid, true);
88
+ else
89
+ gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true));
90
+ }
91
+ }
92
+ },
93
+ };
94
+ exports.default = def;
95
+ //# sourceMappingURL=contains.js.map
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
4
+ const codegen_1 = require("../../compile/codegen");
5
+ const util_1 = require("../../compile/util");
6
+ const code_1 = require("../code");
7
+ exports.error = {
8
+ message: ({ params: { property, depsCount, deps } }) => {
9
+ const property_ies = depsCount === 1 ? "property" : "properties";
10
+ return (0, codegen_1.str) `must have ${property_ies} ${deps} when property ${property} is present`;
11
+ },
12
+ params: ({ params: { property, depsCount, deps, missingProperty } }) => (0, codegen_1._) `{property: ${property},
13
+ missingProperty: ${missingProperty},
14
+ depsCount: ${depsCount},
15
+ deps: ${deps}}`, // TODO change to reference
16
+ };
17
+ const def = {
18
+ keyword: "dependencies",
19
+ type: "object",
20
+ schemaType: "object",
21
+ error: exports.error,
22
+ code(cxt) {
23
+ const [propDeps, schDeps] = splitDependencies(cxt);
24
+ validatePropertyDeps(cxt, propDeps);
25
+ validateSchemaDeps(cxt, schDeps);
26
+ },
27
+ };
28
+ function splitDependencies({ schema }) {
29
+ const propertyDeps = {};
30
+ const schemaDeps = {};
31
+ for (const key in schema) {
32
+ if (key === "__proto__")
33
+ continue;
34
+ const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps;
35
+ deps[key] = schema[key];
36
+ }
37
+ return [propertyDeps, schemaDeps];
38
+ }
39
+ function validatePropertyDeps(cxt, propertyDeps = cxt.schema) {
40
+ const { gen, data, it } = cxt;
41
+ if (Object.keys(propertyDeps).length === 0)
42
+ return;
43
+ const missing = gen.let("missing");
44
+ for (const prop in propertyDeps) {
45
+ const deps = propertyDeps[prop];
46
+ if (deps.length === 0)
47
+ continue;
48
+ const hasProperty = (0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties);
49
+ cxt.setParams({
50
+ property: prop,
51
+ depsCount: deps.length,
52
+ deps: deps.join(", "),
53
+ });
54
+ if (it.allErrors) {
55
+ gen.if(hasProperty, () => {
56
+ for (const depProp of deps) {
57
+ (0, code_1.checkReportMissingProp)(cxt, depProp);
58
+ }
59
+ });
60
+ }
61
+ else {
62
+ gen.if((0, codegen_1._) `${hasProperty} && (${(0, code_1.checkMissingProp)(cxt, deps, missing)})`);
63
+ (0, code_1.reportMissingProp)(cxt, missing);
64
+ gen.else();
65
+ }
66
+ }
67
+ }
68
+ exports.validatePropertyDeps = validatePropertyDeps;
69
+ function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
70
+ const { gen, data, keyword, it } = cxt;
71
+ const valid = gen.name("valid");
72
+ for (const prop in schemaDeps) {
73
+ if ((0, util_1.alwaysValidSchema)(it, schemaDeps[prop]))
74
+ continue;
75
+ gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => {
76
+ const schCxt = cxt.subschema({ keyword, schemaProp: prop }, valid);
77
+ cxt.mergeValidEvaluated(schCxt, valid);
78
+ }, () => gen.var(valid, true) // TODO var
79
+ );
80
+ cxt.ok(valid);
81
+ }
82
+ }
83
+ exports.validateSchemaDeps = validateSchemaDeps;
84
+ exports.default = def;
85
+ //# sourceMappingURL=dependencies.js.map
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const dependencies_1 = require("./dependencies");
4
+ const def = {
5
+ keyword: "dependentSchemas",
6
+ type: "object",
7
+ schemaType: "object",
8
+ code: (cxt) => (0, dependencies_1.validateSchemaDeps)(cxt),
9
+ };
10
+ exports.default = def;
11
+ //# sourceMappingURL=dependentSchemas.js.map
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const codegen_1 = require("../../compile/codegen");
4
+ const util_1 = require("../../compile/util");
5
+ const error = {
6
+ message: ({ params }) => (0, codegen_1.str) `must match "${params.ifClause}" schema`,
7
+ params: ({ params }) => (0, codegen_1._) `{failingKeyword: ${params.ifClause}}`,
8
+ };
9
+ const def = {
10
+ keyword: "if",
11
+ schemaType: ["object", "boolean"],
12
+ trackErrors: true,
13
+ error,
14
+ code(cxt) {
15
+ const { gen, parentSchema, it } = cxt;
16
+ if (parentSchema.then === undefined && parentSchema.else === undefined) {
17
+ (0, util_1.checkStrictMode)(it, '"if" without "then" and "else" is ignored');
18
+ }
19
+ const hasThen = hasSchema(it, "then");
20
+ const hasElse = hasSchema(it, "else");
21
+ if (!hasThen && !hasElse)
22
+ return;
23
+ const valid = gen.let("valid", true);
24
+ const schValid = gen.name("_valid");
25
+ validateIf();
26
+ cxt.reset();
27
+ if (hasThen && hasElse) {
28
+ const ifClause = gen.let("ifClause");
29
+ cxt.setParams({ ifClause });
30
+ gen.if(schValid, validateClause("then", ifClause), validateClause("else", ifClause));
31
+ }
32
+ else if (hasThen) {
33
+ gen.if(schValid, validateClause("then"));
34
+ }
35
+ else {
36
+ gen.if((0, codegen_1.not)(schValid), validateClause("else"));
37
+ }
38
+ cxt.pass(valid, () => cxt.error(true));
39
+ function validateIf() {
40
+ const schCxt = cxt.subschema({
41
+ keyword: "if",
42
+ compositeRule: true,
43
+ createErrors: false,
44
+ allErrors: false,
45
+ }, schValid);
46
+ cxt.mergeEvaluated(schCxt);
47
+ }
48
+ function validateClause(keyword, ifClause) {
49
+ return () => {
50
+ const schCxt = cxt.subschema({ keyword }, schValid);
51
+ gen.assign(valid, schValid);
52
+ cxt.mergeValidEvaluated(schCxt, valid);
53
+ if (ifClause)
54
+ gen.assign(ifClause, (0, codegen_1._) `${keyword}`);
55
+ else
56
+ cxt.setParams({ ifClause: keyword });
57
+ };
58
+ }
59
+ },
60
+ };
61
+ function hasSchema(it, keyword) {
62
+ const schema = it.schema[keyword];
63
+ return schema !== undefined && !(0, util_1.alwaysValidSchema)(it, schema);
64
+ }
65
+ exports.default = def;
66
+ //# sourceMappingURL=if.js.map
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const additionalItems_1 = require("./additionalItems");
4
+ const prefixItems_1 = require("./prefixItems");
5
+ const items_1 = require("./items");
6
+ const items2020_1 = require("./items2020");
7
+ const contains_1 = require("./contains");
8
+ const dependencies_1 = require("./dependencies");
9
+ const propertyNames_1 = require("./propertyNames");
10
+ const additionalProperties_1 = require("./additionalProperties");
11
+ const properties_1 = require("./properties");
12
+ const patternProperties_1 = require("./patternProperties");
13
+ const not_1 = require("./not");
14
+ const anyOf_1 = require("./anyOf");
15
+ const oneOf_1 = require("./oneOf");
16
+ const allOf_1 = require("./allOf");
17
+ const if_1 = require("./if");
18
+ const thenElse_1 = require("./thenElse");
19
+ function getApplicator(draft2020 = false) {
20
+ const applicator = [
21
+ // any
22
+ not_1.default,
23
+ anyOf_1.default,
24
+ oneOf_1.default,
25
+ allOf_1.default,
26
+ if_1.default,
27
+ thenElse_1.default,
28
+ // object
29
+ propertyNames_1.default,
30
+ additionalProperties_1.default,
31
+ dependencies_1.default,
32
+ properties_1.default,
33
+ patternProperties_1.default,
34
+ ];
35
+ // array
36
+ if (draft2020)
37
+ applicator.push(prefixItems_1.default, items2020_1.default);
38
+ else
39
+ applicator.push(additionalItems_1.default, items_1.default);
40
+ applicator.push(contains_1.default);
41
+ return applicator;
42
+ }
43
+ exports.default = getApplicator;
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateTuple = void 0;
4
+ const codegen_1 = require("../../compile/codegen");
5
+ const util_1 = require("../../compile/util");
6
+ const code_1 = require("../code");
7
+ const def = {
8
+ keyword: "items",
9
+ type: "array",
10
+ schemaType: ["object", "array", "boolean"],
11
+ before: "uniqueItems",
12
+ code(cxt) {
13
+ const { schema, it } = cxt;
14
+ if (Array.isArray(schema))
15
+ return validateTuple(cxt, "additionalItems", schema);
16
+ it.items = true;
17
+ if ((0, util_1.alwaysValidSchema)(it, schema))
18
+ return;
19
+ cxt.ok((0, code_1.validateArray)(cxt));
20
+ },
21
+ };
22
+ function validateTuple(cxt, extraItems, schArr = cxt.schema) {
23
+ const { gen, parentSchema, data, keyword, it } = cxt;
24
+ checkStrictTuple(parentSchema);
25
+ if (it.opts.unevaluated && schArr.length && it.items !== true) {
26
+ it.items = util_1.mergeEvaluated.items(gen, schArr.length, it.items);
27
+ }
28
+ const valid = gen.name("valid");
29
+ const len = gen.const("len", (0, codegen_1._) `${data}.length`);
30
+ schArr.forEach((sch, i) => {
31
+ if ((0, util_1.alwaysValidSchema)(it, sch))
32
+ return;
33
+ gen.if((0, codegen_1._) `${len} > ${i}`, () => cxt.subschema({
34
+ keyword,
35
+ schemaProp: i,
36
+ dataProp: i,
37
+ }, valid));
38
+ cxt.ok(valid);
39
+ });
40
+ function checkStrictTuple(sch) {
41
+ const { opts, errSchemaPath } = it;
42
+ const l = schArr.length;
43
+ const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false);
44
+ if (opts.strictTuples && !fullTuple) {
45
+ const msg = `"${keyword}" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"`;
46
+ (0, util_1.checkStrictMode)(it, msg, opts.strictTuples);
47
+ }
48
+ }
49
+ }
50
+ exports.validateTuple = validateTuple;
51
+ exports.default = def;
52
+ //# sourceMappingURL=items.js.map
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const codegen_1 = require("../../compile/codegen");
4
+ const util_1 = require("../../compile/util");
5
+ const code_1 = require("../code");
6
+ const additionalItems_1 = require("./additionalItems");
7
+ const error = {
8
+ message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`,
9
+ params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`,
10
+ };
11
+ const def = {
12
+ keyword: "items",
13
+ type: "array",
14
+ schemaType: ["object", "boolean"],
15
+ before: "uniqueItems",
16
+ error,
17
+ code(cxt) {
18
+ const { schema, parentSchema, it } = cxt;
19
+ const { prefixItems } = parentSchema;
20
+ it.items = true;
21
+ if ((0, util_1.alwaysValidSchema)(it, schema))
22
+ return;
23
+ if (prefixItems)
24
+ (0, additionalItems_1.validateAdditionalItems)(cxt, prefixItems);
25
+ else
26
+ cxt.ok((0, code_1.validateArray)(cxt));
27
+ },
28
+ };
29
+ exports.default = def;
30
+ //# sourceMappingURL=items2020.js.map
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const util_1 = require("../../compile/util");
4
+ const def = {
5
+ keyword: "not",
6
+ schemaType: ["object", "boolean"],
7
+ trackErrors: true,
8
+ code(cxt) {
9
+ const { gen, schema, it } = cxt;
10
+ if ((0, util_1.alwaysValidSchema)(it, schema)) {
11
+ cxt.fail();
12
+ return;
13
+ }
14
+ const valid = gen.name("valid");
15
+ cxt.subschema({
16
+ keyword: "not",
17
+ compositeRule: true,
18
+ createErrors: false,
19
+ allErrors: false,
20
+ }, valid);
21
+ cxt.failResult(valid, () => cxt.reset(), () => cxt.error());
22
+ },
23
+ error: { message: "must NOT be valid" },
24
+ };
25
+ exports.default = def;
26
+ //# sourceMappingURL=not.js.map
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const codegen_1 = require("../../compile/codegen");
4
+ const util_1 = require("../../compile/util");
5
+ const error = {
6
+ message: "must match exactly one schema in oneOf",
7
+ params: ({ params }) => (0, codegen_1._) `{passingSchemas: ${params.passing}}`,
8
+ };
9
+ const def = {
10
+ keyword: "oneOf",
11
+ schemaType: "array",
12
+ trackErrors: true,
13
+ error,
14
+ code(cxt) {
15
+ const { gen, schema, parentSchema, it } = cxt;
16
+ /* istanbul ignore if */
17
+ if (!Array.isArray(schema))
18
+ throw new Error("ajv implementation error");
19
+ if (it.opts.discriminator && parentSchema.discriminator)
20
+ return;
21
+ const schArr = schema;
22
+ const valid = gen.let("valid", false);
23
+ const passing = gen.let("passing", null);
24
+ const schValid = gen.name("_valid");
25
+ cxt.setParams({ passing });
26
+ // TODO possibly fail straight away (with warning or exception) if there are two empty always valid schemas
27
+ gen.block(validateOneOf);
28
+ cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
29
+ function validateOneOf() {
30
+ schArr.forEach((sch, i) => {
31
+ let schCxt;
32
+ if ((0, util_1.alwaysValidSchema)(it, sch)) {
33
+ gen.var(schValid, true);
34
+ }
35
+ else {
36
+ schCxt = cxt.subschema({
37
+ keyword: "oneOf",
38
+ schemaProp: i,
39
+ compositeRule: true,
40
+ }, schValid);
41
+ }
42
+ if (i > 0) {
43
+ gen
44
+ .if((0, codegen_1._) `${schValid} && ${valid}`)
45
+ .assign(valid, false)
46
+ .assign(passing, (0, codegen_1._) `[${passing}, ${i}]`)
47
+ .else();
48
+ }
49
+ gen.if(schValid, () => {
50
+ gen.assign(valid, true);
51
+ gen.assign(passing, i);
52
+ if (schCxt)
53
+ cxt.mergeEvaluated(schCxt, codegen_1.Name);
54
+ });
55
+ });
56
+ }
57
+ },
58
+ };
59
+ exports.default = def;
60
+ //# sourceMappingURL=oneOf.js.map