@oxog/vld 2.0.2 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (450) hide show
  1. package/CHANGELOG.md +75 -1
  2. package/LICENSE +20 -20
  3. package/README.md +101 -37
  4. package/dist/chunks/errors-core-BeiFUtZM.js +81 -0
  5. package/dist/chunks/{index-CETyGkrv.js → index-0R2ntSud.js} +16 -402
  6. package/dist/chunks/index-BvH403Yy.js +88 -0
  7. package/dist/chunks/security-B0Pd_vSY.js +35 -0
  8. package/dist/chunks/string-BJRQod3t.js +530 -0
  9. package/dist/cjs/chunks/errors-core-DWxLFs2f.cjs +83 -0
  10. package/dist/cjs/chunks/index-BkI37108.cjs +538 -0
  11. package/dist/cjs/chunks/index-Cc3bjUMX.cjs +91 -0
  12. package/dist/cjs/chunks/security-Dc3Jh13T.cjs +37 -0
  13. package/dist/cjs/chunks/string-BKZrc4hs.cjs +533 -0
  14. package/dist/cjs/cli/bin.cjs +506 -0
  15. package/dist/cjs/cli/index.cjs +209 -0
  16. package/dist/cjs/codecs/index.cjs +45 -0
  17. package/dist/{chunks/date-ODue_rtq.js → cjs/coercion/index.cjs} +185 -103
  18. package/dist/cjs/compat/emitter.cjs +184 -0
  19. package/dist/cjs/compat/result.cjs +189 -0
  20. package/dist/cjs/errors.cjs +6 -213
  21. package/dist/cjs/index.cjs +1558 -9647
  22. package/dist/cjs/kernel.cjs +415 -0
  23. package/dist/cjs/locales/af.cjs +108 -0
  24. package/dist/cjs/locales/ar.cjs +108 -0
  25. package/dist/cjs/locales/bn.cjs +108 -0
  26. package/dist/cjs/locales/da.cjs +108 -0
  27. package/dist/cjs/locales/de.cjs +108 -0
  28. package/dist/cjs/locales/en.cjs +108 -0
  29. package/dist/cjs/locales/es-MX.cjs +107 -0
  30. package/dist/cjs/locales/es.cjs +96 -0
  31. package/dist/cjs/locales/fi.cjs +108 -0
  32. package/dist/cjs/locales/fr.cjs +96 -0
  33. package/dist/cjs/locales/hi.cjs +108 -0
  34. package/dist/cjs/locales/id.cjs +108 -0
  35. package/dist/cjs/locales/index.cjs +41 -2875
  36. package/dist/cjs/locales/it.cjs +108 -0
  37. package/dist/cjs/locales/ja.cjs +108 -0
  38. package/dist/cjs/locales/ko.cjs +108 -0
  39. package/dist/cjs/locales/lazy.cjs +42 -3023
  40. package/dist/cjs/locales/nl.cjs +108 -0
  41. package/dist/cjs/locales/no.cjs +108 -0
  42. package/dist/cjs/locales/pl.cjs +108 -0
  43. package/dist/cjs/locales/pt-BR.cjs +108 -0
  44. package/dist/cjs/locales/pt.cjs +108 -0
  45. package/dist/cjs/locales/ru.cjs +108 -0
  46. package/dist/cjs/locales/runtime.cjs +51 -0
  47. package/dist/cjs/locales/sv.cjs +108 -0
  48. package/dist/cjs/locales/sw.cjs +108 -0
  49. package/dist/cjs/locales/th.cjs +108 -0
  50. package/dist/cjs/locales/tr.cjs +108 -0
  51. package/dist/cjs/locales/vi.cjs +108 -0
  52. package/dist/cjs/locales/zh.cjs +108 -0
  53. package/dist/cjs/mini.cjs +121 -7208
  54. package/dist/cjs/pigment.cjs +207 -0
  55. package/dist/cjs/plugins/index.cjs +12 -0
  56. package/dist/cjs/registry.cjs +37 -0
  57. package/dist/cjs/v3/index.cjs +425 -0
  58. package/dist/cjs/v4/core/index.cjs +894 -0
  59. package/dist/cjs/v4/index.cjs +425 -0
  60. package/dist/cjs/v4/locales/index.cjs +130 -0
  61. package/dist/cjs/v4/mini/index.cjs +509 -0
  62. package/dist/cjs/v4-mini/index.cjs +532 -0
  63. package/dist/cjs/validators/any.cjs +40 -0
  64. package/dist/cjs/validators/array.cjs +283 -0
  65. package/dist/cjs/validators/base.cjs +887 -0
  66. package/dist/cjs/validators/base64.cjs +73 -0
  67. package/dist/cjs/validators/bigint.cjs +232 -0
  68. package/dist/cjs/validators/boolean.cjs +146 -0
  69. package/dist/cjs/validators/codec.cjs +205 -0
  70. package/dist/cjs/validators/custom.cjs +71 -0
  71. package/dist/cjs/validators/date.cjs +278 -0
  72. package/dist/cjs/validators/discriminated-union.cjs +130 -0
  73. package/dist/cjs/validators/enum.cjs +154 -0
  74. package/dist/cjs/validators/file.cjs +130 -0
  75. package/dist/cjs/validators/function.cjs +63 -0
  76. package/dist/cjs/validators/hex.cjs +70 -0
  77. package/dist/cjs/validators/index.cjs +123 -0
  78. package/dist/cjs/validators/intersection.cjs +120 -0
  79. package/dist/cjs/validators/json.cjs +70 -0
  80. package/dist/cjs/validators/lazy.cjs +53 -0
  81. package/dist/cjs/validators/literal.cjs +64 -0
  82. package/dist/cjs/validators/map.cjs +218 -0
  83. package/dist/cjs/validators/nan.cjs +41 -0
  84. package/dist/cjs/validators/never.cjs +36 -0
  85. package/dist/cjs/validators/null.cjs +43 -0
  86. package/dist/cjs/validators/number.cjs +427 -0
  87. package/dist/cjs/validators/object.cjs +868 -0
  88. package/dist/cjs/validators/promise.cjs +115 -0
  89. package/dist/cjs/validators/record.cjs +262 -0
  90. package/dist/cjs/validators/set.cjs +203 -0
  91. package/dist/cjs/validators/string-bool.cjs +124 -0
  92. package/dist/cjs/validators/string-formats.cjs +168 -0
  93. package/dist/cjs/validators/string.cjs +12 -0
  94. package/dist/cjs/validators/symbol.cjs +62 -0
  95. package/dist/cjs/validators/template-literal.cjs +108 -0
  96. package/dist/cjs/validators/tuple.cjs +187 -0
  97. package/dist/cjs/validators/uint8array.cjs +106 -0
  98. package/dist/cjs/validators/undefined.cjs +43 -0
  99. package/dist/cjs/validators/union.cjs +191 -0
  100. package/dist/cjs/validators/unknown.cjs +40 -0
  101. package/dist/cjs/validators/void.cjs +48 -0
  102. package/dist/cjs/validators/xor.cjs +69 -0
  103. package/dist/cli/bin.d.ts +0 -1
  104. package/dist/cli/bin.js +407 -0
  105. package/dist/cli/commands/benchmark.d.ts +1 -2
  106. package/dist/cli/commands/validate.d.ts +1 -2
  107. package/dist/cli/index.d.ts +0 -1
  108. package/dist/cli/index.js +205 -0
  109. package/dist/codecs/index.d.ts +21 -4
  110. package/dist/codecs/index.js +11 -4
  111. package/dist/coercion/bigint.d.ts +2 -3
  112. package/dist/coercion/boolean.d.ts +3 -3
  113. package/dist/coercion/date.d.ts +3 -3
  114. package/dist/coercion/index.d.ts +5 -6
  115. package/dist/coercion/index.js +473 -5
  116. package/dist/coercion/number.d.ts +2 -3
  117. package/dist/coercion/string.d.ts +2 -3
  118. package/dist/compat/emitter.d.ts +0 -1
  119. package/dist/compat/emitter.js +0 -1
  120. package/dist/compat/index.d.ts +4 -5
  121. package/dist/compat/result.d.ts +1 -2
  122. package/dist/compat/result.js +0 -1
  123. package/dist/errors-core.d.ts +39 -0
  124. package/dist/errors.d.ts +4 -54
  125. package/dist/errors.js +4 -68
  126. package/dist/events.d.ts +3 -4
  127. package/dist/index.d.ts +1195 -600
  128. package/dist/index.js +1262 -44
  129. package/dist/kernel.d.ts +2 -3
  130. package/dist/kernel.js +10 -6
  131. package/dist/locales/af.d.ts +1 -2
  132. package/dist/locales/af.js +0 -1
  133. package/dist/locales/ar.d.ts +1 -2
  134. package/dist/locales/ar.js +0 -1
  135. package/dist/locales/bn.d.ts +1 -2
  136. package/dist/locales/bn.js +0 -1
  137. package/dist/locales/da.d.ts +1 -2
  138. package/dist/locales/da.js +0 -1
  139. package/dist/locales/de.d.ts +1 -2
  140. package/dist/locales/de.js +0 -1
  141. package/dist/locales/en.d.ts +1 -2
  142. package/dist/locales/en.js +0 -1
  143. package/dist/locales/es-MX.d.ts +1 -2
  144. package/dist/locales/es-MX.js +0 -1
  145. package/dist/locales/es.d.ts +1 -2
  146. package/dist/locales/es.js +0 -1
  147. package/dist/locales/fi.d.ts +1 -2
  148. package/dist/locales/fi.js +0 -1
  149. package/dist/locales/fr.d.ts +1 -2
  150. package/dist/locales/fr.js +0 -1
  151. package/dist/locales/hi.d.ts +1 -2
  152. package/dist/locales/hi.js +0 -1
  153. package/dist/locales/id.d.ts +1 -2
  154. package/dist/locales/id.js +0 -1
  155. package/dist/locales/index.d.ts +10 -15
  156. package/dist/locales/index.js +28 -2
  157. package/dist/locales/it.d.ts +1 -2
  158. package/dist/locales/it.js +0 -1
  159. package/dist/locales/ja.d.ts +1 -2
  160. package/dist/locales/ja.js +0 -1
  161. package/dist/locales/ko.d.ts +1 -2
  162. package/dist/locales/ko.js +0 -1
  163. package/dist/locales/lazy.d.ts +4 -26
  164. package/dist/locales/lazy.js +12 -55
  165. package/dist/locales/nl.d.ts +1 -2
  166. package/dist/locales/nl.js +0 -1
  167. package/dist/locales/no.d.ts +1 -2
  168. package/dist/locales/no.js +0 -1
  169. package/dist/locales/pl.d.ts +1 -2
  170. package/dist/locales/pl.js +0 -1
  171. package/dist/locales/pt-BR.d.ts +1 -2
  172. package/dist/locales/pt-BR.js +0 -1
  173. package/dist/locales/pt.d.ts +1 -2
  174. package/dist/locales/pt.js +0 -1
  175. package/dist/locales/ru.d.ts +1 -2
  176. package/dist/locales/ru.js +0 -1
  177. package/dist/locales/runtime.d.ts +10 -0
  178. package/dist/locales/runtime.js +41 -0
  179. package/dist/locales/sv.d.ts +1 -2
  180. package/dist/locales/sv.js +0 -1
  181. package/dist/locales/sw.d.ts +1 -2
  182. package/dist/locales/sw.js +0 -1
  183. package/dist/locales/th.d.ts +1 -2
  184. package/dist/locales/th.js +0 -1
  185. package/dist/locales/tr.d.ts +1 -2
  186. package/dist/locales/tr.js +0 -1
  187. package/dist/locales/types.d.ts +0 -1
  188. package/dist/locales/vi.d.ts +1 -2
  189. package/dist/locales/vi.js +0 -1
  190. package/dist/locales/zh.d.ts +1 -2
  191. package/dist/locales/zh.js +0 -1
  192. package/dist/logger.d.ts +0 -1
  193. package/dist/mini.d.ts +64 -65
  194. package/dist/mini.js +31 -7
  195. package/dist/pigment.d.ts +0 -1
  196. package/dist/pigment.js +6 -4
  197. package/dist/plugins/index.d.ts +2 -3
  198. package/dist/plugins/index.js +1 -0
  199. package/dist/plugins/types.d.ts +4 -5
  200. package/dist/registry.d.ts +23 -0
  201. package/dist/registry.js +34 -0
  202. package/dist/utils/codec-utils.d.ts +0 -1
  203. package/dist/utils/deep-merge.d.ts +0 -1
  204. package/dist/utils/ip-validation.d.ts +0 -1
  205. package/dist/utils/json-schema.d.ts +77 -0
  206. package/dist/utils/security.d.ts +2 -6
  207. package/dist/v3/index.d.ts +2 -0
  208. package/dist/v3/index.js +46 -0
  209. package/dist/v4/core/index.d.ts +260 -0
  210. package/dist/v4/core/index.js +277 -0
  211. package/dist/v4/index.d.ts +4 -0
  212. package/dist/v4/index.js +50 -0
  213. package/dist/v4/locales/index.d.ts +53 -0
  214. package/dist/v4/locales/index.js +77 -0
  215. package/dist/v4/mini/index.d.ts +2 -0
  216. package/dist/v4/mini/index.js +47 -0
  217. package/dist/v4-mini/index.d.ts +22 -0
  218. package/dist/v4-mini/index.js +75 -0
  219. package/dist/validators/any.d.ts +7 -2
  220. package/dist/validators/any.js +37 -0
  221. package/dist/validators/array.d.ts +9 -2
  222. package/dist/validators/array.js +279 -0
  223. package/dist/validators/base.d.ts +228 -5
  224. package/dist/validators/base.js +868 -0
  225. package/dist/validators/base64.d.ts +1 -2
  226. package/dist/validators/base64.js +68 -0
  227. package/dist/validators/bigint.d.ts +21 -3
  228. package/dist/validators/bigint.js +228 -0
  229. package/dist/validators/boolean.d.ts +13 -4
  230. package/dist/validators/boolean.js +142 -0
  231. package/dist/validators/codec.d.ts +9 -2
  232. package/dist/validators/codec.js +200 -0
  233. package/dist/validators/custom.d.ts +15 -2
  234. package/dist/validators/custom.js +67 -0
  235. package/dist/validators/date.d.ts +19 -3
  236. package/dist/validators/date.js +274 -0
  237. package/dist/validators/discriminated-union.d.ts +4 -3
  238. package/dist/validators/discriminated-union.js +123 -0
  239. package/dist/validators/enum.d.ts +10 -7
  240. package/dist/validators/enum.js +150 -0
  241. package/dist/validators/file.d.ts +7 -2
  242. package/dist/validators/file.js +125 -0
  243. package/dist/validators/function.d.ts +11 -5
  244. package/dist/validators/function.js +58 -0
  245. package/dist/validators/hex.d.ts +1 -2
  246. package/dist/validators/hex.js +65 -0
  247. package/dist/validators/index.d.ts +38 -38
  248. package/dist/validators/index.js +35 -5
  249. package/dist/validators/intersection.d.ts +1 -2
  250. package/dist/validators/intersection.js +116 -0
  251. package/dist/validators/json.d.ts +1 -2
  252. package/dist/validators/json.js +66 -0
  253. package/dist/validators/lazy.d.ts +5 -9
  254. package/dist/validators/lazy.js +50 -0
  255. package/dist/validators/literal.d.ts +2 -2
  256. package/dist/validators/literal.js +60 -0
  257. package/dist/validators/map.d.ts +15 -2
  258. package/dist/validators/map.js +214 -0
  259. package/dist/validators/nan.d.ts +2 -3
  260. package/dist/validators/nan.js +38 -0
  261. package/dist/validators/never.d.ts +1 -2
  262. package/dist/validators/never.js +32 -0
  263. package/dist/validators/null.d.ts +3 -3
  264. package/dist/validators/null.js +40 -0
  265. package/dist/validators/number.d.ts +80 -21
  266. package/dist/validators/number.js +423 -0
  267. package/dist/validators/object.d.ts +30 -9
  268. package/dist/validators/object.js +864 -0
  269. package/dist/validators/promise.d.ts +58 -0
  270. package/dist/validators/promise.js +111 -0
  271. package/dist/validators/record.d.ts +11 -2
  272. package/dist/validators/record.js +258 -0
  273. package/dist/validators/set.d.ts +11 -2
  274. package/dist/validators/set.js +199 -0
  275. package/dist/validators/string-bool.d.ts +7 -10
  276. package/dist/validators/string-bool.js +120 -0
  277. package/dist/validators/string-formats.d.ts +13 -4
  278. package/dist/validators/string-formats.js +135 -0
  279. package/dist/validators/string.d.ts +39 -18
  280. package/dist/validators/string.js +4 -0
  281. package/dist/validators/symbol.d.ts +8 -3
  282. package/dist/validators/symbol.js +58 -0
  283. package/dist/validators/template-literal.d.ts +1 -2
  284. package/dist/validators/template-literal.js +103 -0
  285. package/dist/validators/tuple.d.ts +15 -2
  286. package/dist/validators/tuple.js +183 -0
  287. package/dist/validators/uint8array.d.ts +3 -4
  288. package/dist/validators/uint8array.js +101 -0
  289. package/dist/validators/undefined.d.ts +3 -3
  290. package/dist/validators/undefined.js +40 -0
  291. package/dist/validators/union.d.ts +7 -4
  292. package/dist/validators/union.js +187 -0
  293. package/dist/validators/unknown.d.ts +7 -2
  294. package/dist/{chunks/unknown-SLIH1VCf.js → validators/unknown.js} +12 -3
  295. package/dist/validators/void.d.ts +3 -2
  296. package/dist/validators/void.js +44 -0
  297. package/dist/validators/xor.d.ts +2 -3
  298. package/dist/validators/xor.js +66 -0
  299. package/package.json +116 -31
  300. package/dist/chunks/bigint-DgsCr2dC.js +0 -1709
  301. package/dist/chunks/bigint-DgsCr2dC.js.map +0 -1
  302. package/dist/chunks/date-ODue_rtq.js.map +0 -1
  303. package/dist/chunks/index-BZqWZvVe.js +0 -426
  304. package/dist/chunks/index-BZqWZvVe.js.map +0 -1
  305. package/dist/chunks/index-CETyGkrv.js.map +0 -1
  306. package/dist/chunks/json-o20GFhTh.js +0 -2021
  307. package/dist/chunks/json-o20GFhTh.js.map +0 -1
  308. package/dist/chunks/unknown-SLIH1VCf.js.map +0 -1
  309. package/dist/cjs/errors.cjs.map +0 -1
  310. package/dist/cjs/index.cjs.map +0 -1
  311. package/dist/cjs/locales/index.cjs.map +0 -1
  312. package/dist/cjs/locales/lazy.cjs.map +0 -1
  313. package/dist/cjs/mini.cjs.map +0 -1
  314. package/dist/cli/bin.d.ts.map +0 -1
  315. package/dist/cli/commands/benchmark.d.ts.map +0 -1
  316. package/dist/cli/commands/validate.d.ts.map +0 -1
  317. package/dist/cli/index.d.ts.map +0 -1
  318. package/dist/codecs/index.d.ts.map +0 -1
  319. package/dist/codecs/index.js.map +0 -1
  320. package/dist/coercion/bigint.d.ts.map +0 -1
  321. package/dist/coercion/boolean.d.ts.map +0 -1
  322. package/dist/coercion/date.d.ts.map +0 -1
  323. package/dist/coercion/index.d.ts.map +0 -1
  324. package/dist/coercion/index.js.map +0 -1
  325. package/dist/coercion/number.d.ts.map +0 -1
  326. package/dist/coercion/string.d.ts.map +0 -1
  327. package/dist/compat/emitter.d.ts.map +0 -1
  328. package/dist/compat/emitter.js.map +0 -1
  329. package/dist/compat/index.d.ts.map +0 -1
  330. package/dist/compat/result.d.ts.map +0 -1
  331. package/dist/compat/result.js.map +0 -1
  332. package/dist/errors.d.ts.map +0 -1
  333. package/dist/errors.js.map +0 -1
  334. package/dist/events.d.ts.map +0 -1
  335. package/dist/index.d.ts.map +0 -1
  336. package/dist/index.js.map +0 -1
  337. package/dist/kernel.d.ts.map +0 -1
  338. package/dist/kernel.js.map +0 -1
  339. package/dist/locales/af.d.ts.map +0 -1
  340. package/dist/locales/af.js.map +0 -1
  341. package/dist/locales/ar.d.ts.map +0 -1
  342. package/dist/locales/ar.js.map +0 -1
  343. package/dist/locales/backup-en.d.ts +0 -3
  344. package/dist/locales/backup-en.d.ts.map +0 -1
  345. package/dist/locales/bn.d.ts.map +0 -1
  346. package/dist/locales/bn.js.map +0 -1
  347. package/dist/locales/da.d.ts.map +0 -1
  348. package/dist/locales/da.js.map +0 -1
  349. package/dist/locales/de.d.ts.map +0 -1
  350. package/dist/locales/de.js.map +0 -1
  351. package/dist/locales/en.d.ts.map +0 -1
  352. package/dist/locales/en.js.map +0 -1
  353. package/dist/locales/es-MX.d.ts.map +0 -1
  354. package/dist/locales/es-MX.js.map +0 -1
  355. package/dist/locales/es.d.ts.map +0 -1
  356. package/dist/locales/es.js.map +0 -1
  357. package/dist/locales/fi.d.ts.map +0 -1
  358. package/dist/locales/fi.js.map +0 -1
  359. package/dist/locales/fr.d.ts.map +0 -1
  360. package/dist/locales/fr.js.map +0 -1
  361. package/dist/locales/hi.d.ts.map +0 -1
  362. package/dist/locales/hi.js.map +0 -1
  363. package/dist/locales/id.d.ts.map +0 -1
  364. package/dist/locales/id.js.map +0 -1
  365. package/dist/locales/index.d.ts.map +0 -1
  366. package/dist/locales/index.js.map +0 -1
  367. package/dist/locales/it.d.ts.map +0 -1
  368. package/dist/locales/it.js.map +0 -1
  369. package/dist/locales/ja.d.ts.map +0 -1
  370. package/dist/locales/ja.js.map +0 -1
  371. package/dist/locales/ko.d.ts.map +0 -1
  372. package/dist/locales/ko.js.map +0 -1
  373. package/dist/locales/lazy.d.ts.map +0 -1
  374. package/dist/locales/lazy.js.map +0 -1
  375. package/dist/locales/nl.d.ts.map +0 -1
  376. package/dist/locales/nl.js.map +0 -1
  377. package/dist/locales/no.d.ts.map +0 -1
  378. package/dist/locales/no.js.map +0 -1
  379. package/dist/locales/pl.d.ts.map +0 -1
  380. package/dist/locales/pl.js.map +0 -1
  381. package/dist/locales/pt-BR.d.ts.map +0 -1
  382. package/dist/locales/pt-BR.js.map +0 -1
  383. package/dist/locales/pt.d.ts.map +0 -1
  384. package/dist/locales/pt.js.map +0 -1
  385. package/dist/locales/ru.d.ts.map +0 -1
  386. package/dist/locales/ru.js.map +0 -1
  387. package/dist/locales/sv.d.ts.map +0 -1
  388. package/dist/locales/sv.js.map +0 -1
  389. package/dist/locales/sw.d.ts.map +0 -1
  390. package/dist/locales/sw.js.map +0 -1
  391. package/dist/locales/th.d.ts.map +0 -1
  392. package/dist/locales/th.js.map +0 -1
  393. package/dist/locales/tr.d.ts.map +0 -1
  394. package/dist/locales/tr.js.map +0 -1
  395. package/dist/locales/types.d.ts.map +0 -1
  396. package/dist/locales/vi.d.ts.map +0 -1
  397. package/dist/locales/vi.js.map +0 -1
  398. package/dist/locales/zh.d.ts.map +0 -1
  399. package/dist/locales/zh.js.map +0 -1
  400. package/dist/logger.d.ts.map +0 -1
  401. package/dist/mini.d.ts.map +0 -1
  402. package/dist/mini.js.map +0 -1
  403. package/dist/pigment.d.ts.map +0 -1
  404. package/dist/pigment.js.map +0 -1
  405. package/dist/plugins/index.d.ts.map +0 -1
  406. package/dist/plugins/types.d.ts.map +0 -1
  407. package/dist/utils/codec-utils.d.ts.map +0 -1
  408. package/dist/utils/deep-merge.d.ts.map +0 -1
  409. package/dist/utils/ip-validation.d.ts.map +0 -1
  410. package/dist/utils/security.d.ts.map +0 -1
  411. package/dist/validators/any.d.ts.map +0 -1
  412. package/dist/validators/array.d.ts.map +0 -1
  413. package/dist/validators/base.d.ts.map +0 -1
  414. package/dist/validators/base64.d.ts.map +0 -1
  415. package/dist/validators/bigint.d.ts.map +0 -1
  416. package/dist/validators/boolean.d.ts.map +0 -1
  417. package/dist/validators/codec.d.ts.map +0 -1
  418. package/dist/validators/custom.d.ts.map +0 -1
  419. package/dist/validators/date.d.ts.map +0 -1
  420. package/dist/validators/discriminated-union.d.ts.map +0 -1
  421. package/dist/validators/enum.d.ts.map +0 -1
  422. package/dist/validators/file.d.ts.map +0 -1
  423. package/dist/validators/function.d.ts.map +0 -1
  424. package/dist/validators/hex.d.ts.map +0 -1
  425. package/dist/validators/index.d.ts.map +0 -1
  426. package/dist/validators/index.js.map +0 -1
  427. package/dist/validators/intersection.d.ts.map +0 -1
  428. package/dist/validators/json.d.ts.map +0 -1
  429. package/dist/validators/lazy.d.ts.map +0 -1
  430. package/dist/validators/literal.d.ts.map +0 -1
  431. package/dist/validators/map.d.ts.map +0 -1
  432. package/dist/validators/nan.d.ts.map +0 -1
  433. package/dist/validators/never.d.ts.map +0 -1
  434. package/dist/validators/null.d.ts.map +0 -1
  435. package/dist/validators/number.d.ts.map +0 -1
  436. package/dist/validators/object.d.ts.map +0 -1
  437. package/dist/validators/record.d.ts.map +0 -1
  438. package/dist/validators/set.d.ts.map +0 -1
  439. package/dist/validators/string-bool.d.ts.map +0 -1
  440. package/dist/validators/string-formats.d.ts.map +0 -1
  441. package/dist/validators/string.d.ts.map +0 -1
  442. package/dist/validators/symbol.d.ts.map +0 -1
  443. package/dist/validators/template-literal.d.ts.map +0 -1
  444. package/dist/validators/tuple.d.ts.map +0 -1
  445. package/dist/validators/uint8array.d.ts.map +0 -1
  446. package/dist/validators/undefined.d.ts.map +0 -1
  447. package/dist/validators/union.d.ts.map +0 -1
  448. package/dist/validators/unknown.d.ts.map +0 -1
  449. package/dist/validators/void.d.ts.map +0 -1
  450. package/dist/validators/xor.d.ts.map +0 -1
@@ -1,109 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const en = {
4
- // String validation messages
5
- invalidString: 'Invalid string',
6
- stringMin: (min) => `String must be at least ${min} characters`,
7
- stringMax: (max) => `String must be at most ${max} characters`,
8
- stringLength: (length) => `String must be exactly ${length} characters`,
9
- stringEmail: 'Invalid email address',
10
- stringUrl: 'Invalid URL',
11
- stringUuid: 'Invalid UUID',
12
- stringRegex: 'Invalid format',
13
- stringStartsWith: (prefix) => `String must start with "${prefix}"`,
14
- stringEndsWith: (suffix) => `String must end with "${suffix}"`,
15
- stringIncludes: (substring) => `String must include "${substring}"`,
16
- stringIp: 'Invalid IP address',
17
- stringIpv4: 'Invalid IPv4 address',
18
- stringIpv6: 'Invalid IPv6 address',
19
- stringEmpty: 'String must not be empty',
20
- // Number validation messages
21
- invalidNumber: 'Invalid number',
22
- numberMin: (min) => `Number must be at least ${min}`,
23
- numberMax: (max) => `Number must be at most ${max}`,
24
- numberInt: 'Number must be an integer',
25
- numberPositive: 'Number must be positive',
26
- numberNegative: 'Number must be negative',
27
- numberNonnegative: 'Number must be non-negative',
28
- numberNonpositive: 'Number must be non-positive',
29
- numberFinite: 'Number must be finite',
30
- numberSafe: 'Number must be a safe integer',
31
- numberMultipleOf: (value) => `Number must be a multiple of ${value}`,
32
- // Boolean validation messages
33
- invalidBoolean: 'Invalid boolean',
34
- // Date validation messages
35
- invalidDate: 'Invalid date',
36
- dateMin: (date) => `Date must be after ${date.toISOString()}`,
37
- dateMax: (date) => `Date must be before ${date.toISOString()}`,
38
- // Object validation messages
39
- invalidObject: 'Invalid object',
40
- unexpectedKeys: (keys) => `Unexpected keys: ${keys.join(', ')}`,
41
- // Array validation messages
42
- invalidArray: 'Invalid array',
43
- arrayMin: (min) => `Array must have at least ${min} items`,
44
- arrayMax: (max) => `Array must have at most ${max} items`,
45
- arrayLength: (length) => `Array must have exactly ${length} items`,
46
- arrayEmpty: 'Array must not be empty',
47
- arrayItem: (index, error) => `Invalid item at index ${index}: ${error}`,
48
- // Object field validation
49
- objectField: (field, error) => `Invalid field "${field}": ${error}`,
50
- // Union validation messages
51
- unionNoMatch: (errors) => `No union member matched: ${errors.join(', ')}`,
52
- // Intersection validation messages
53
- intersectionError: (error) => `Intersection validation failed: ${error}`,
54
- // Literal validation messages
55
- literalExpected: (expected, received) => `Expected ${expected}, got ${received}`,
56
- // Enum validation messages
57
- enumExpected: (values, received) => `Expected one of [${values.join(', ')}], got ${received}`,
58
- // Special type validation messages
59
- expectedUndefined: 'Expected undefined',
60
- neverType: 'Never type cannot be parsed',
61
- // New advanced type validation messages
62
- invalidBigint: 'Invalid bigint',
63
- invalidSymbol: 'Invalid symbol',
64
- invalidTuple: 'Invalid tuple',
65
- tupleLength: (expected, received) => `Tuple must have exactly ${expected} elements, got ${received}`,
66
- invalidRecord: 'Invalid record',
67
- invalidSet: 'Invalid set',
68
- invalidMap: 'Invalid map',
69
- // Transformation and refinement messages
70
- transformError: (error) => `Transform failed: ${error}`,
71
- refinementError: (error) => `Refinement failed: ${error}`,
72
- customValidationError: (error) => `Custom validation failed: ${error}`,
73
- // Coercion messages
74
- coercionFailed: (type, value) => `Cannot coerce ${JSON.stringify(value)} to ${type}`,
75
- // Codec messages
76
- codecDecodeFailed: 'Failed to decode value',
77
- codecEncodeFailed: 'Failed to encode value',
78
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
79
- // Base64/Hex messages
80
- invalidBase64: 'Invalid base64 string',
81
- invalidHex: 'Invalid hexadecimal string',
82
- // Uint8Array messages
83
- expectedUint8Array: 'Expected Uint8Array',
84
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
85
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
86
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
87
- // Generic type error messages
88
- expectedString: 'Expected string',
89
- stringExpected: (received, expected) => `Expected ${expected}, got ${received}`,
90
- stringBoolExpected: (validValues, received) => `Invalid boolean string. Expected one of: ${validValues}, got "${received}"`,
91
- invalidJson: 'Invalid JSON',
92
- stringPatternInvalid: 'String does not match the required pattern',
93
- // File validation messages
94
- invalidFile: 'Expected a File object',
95
- fileNotSupported: 'File API not supported in this environment',
96
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
97
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
98
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(', ')}`,
99
- // Function validation messages
100
- invalidFunction: 'Expected a function',
101
- // CIDR validation messages
102
- stringCidrv4: 'Invalid IPv4 CIDR block',
103
- stringCidrv6: 'Invalid IPv6 CIDR block',
104
- // Safe extend validation messages
105
- safeExtendOverlap: (keys) => `Cannot override existing keys: ${keys.join(', ')}. Use extend() if you want to override.`
106
- };
3
+ var locales_runtime = require('./runtime.cjs');
4
+ require('./en.cjs');
107
5
 
108
6
  /**
109
7
  * VLD Lazy Locale System
@@ -123,44 +21,38 @@ const en = {
123
21
  * registerLocale('tr', tr);
124
22
  * ```
125
23
  */
126
- // ============================================
127
- // State
128
- // ============================================
129
- let currentLocale = 'en';
130
- let currentMessages = en;
131
- const loadedLocales = new Map([['en', en]]);
132
24
  const localeLoaders = {
133
25
  // Base languages
134
- tr: () => Promise.resolve().then(function () { return tr$1; }).then(m => m.tr),
135
- es: () => Promise.resolve().then(function () { return es$1; }).then(m => m.es),
136
- fr: () => Promise.resolve().then(function () { return fr$1; }).then(m => m.fr),
137
- de: () => Promise.resolve().then(function () { return de$1; }).then(m => m.de),
138
- it: () => Promise.resolve().then(function () { return it$1; }).then(m => m.it),
139
- pt: () => Promise.resolve().then(function () { return pt$1; }).then(m => m.pt),
140
- ru: () => Promise.resolve().then(function () { return ru$1; }).then(m => m.ru),
141
- ja: () => Promise.resolve().then(function () { return ja$1; }).then(m => m.ja),
142
- ko: () => Promise.resolve().then(function () { return ko$1; }).then(m => m.ko),
143
- zh: () => Promise.resolve().then(function () { return zh$1; }).then(m => m.zh),
144
- ar: () => Promise.resolve().then(function () { return ar$1; }).then(m => m.ar),
145
- hi: () => Promise.resolve().then(function () { return hi$1; }).then(m => m.hi),
146
- nl: () => Promise.resolve().then(function () { return nl$1; }).then(m => m.nl),
147
- pl: () => Promise.resolve().then(function () { return pl$1; }).then(m => m.pl),
26
+ tr: () => Promise.resolve().then(function () { return require('./tr.cjs'); }).then(m => m.tr),
27
+ es: () => Promise.resolve().then(function () { return require('./es.cjs'); }).then(m => m.es),
28
+ fr: () => Promise.resolve().then(function () { return require('./fr.cjs'); }).then(m => m.fr),
29
+ de: () => Promise.resolve().then(function () { return require('./de.cjs'); }).then(m => m.de),
30
+ it: () => Promise.resolve().then(function () { return require('./it.cjs'); }).then(m => m.it),
31
+ pt: () => Promise.resolve().then(function () { return require('./pt.cjs'); }).then(m => m.pt),
32
+ ru: () => Promise.resolve().then(function () { return require('./ru.cjs'); }).then(m => m.ru),
33
+ ja: () => Promise.resolve().then(function () { return require('./ja.cjs'); }).then(m => m.ja),
34
+ ko: () => Promise.resolve().then(function () { return require('./ko.cjs'); }).then(m => m.ko),
35
+ zh: () => Promise.resolve().then(function () { return require('./zh.cjs'); }).then(m => m.zh),
36
+ ar: () => Promise.resolve().then(function () { return require('./ar.cjs'); }).then(m => m.ar),
37
+ hi: () => Promise.resolve().then(function () { return require('./hi.cjs'); }).then(m => m.hi),
38
+ nl: () => Promise.resolve().then(function () { return require('./nl.cjs'); }).then(m => m.nl),
39
+ pl: () => Promise.resolve().then(function () { return require('./pl.cjs'); }).then(m => m.pl),
148
40
  // Major European Languages
149
- da: () => Promise.resolve().then(function () { return da$1; }).then(m => m.da),
150
- sv: () => Promise.resolve().then(function () { return sv$1; }).then(m => m.sv),
151
- no: () => Promise.resolve().then(function () { return no$1; }).then(m => m.no),
152
- fi: () => Promise.resolve().then(function () { return fi$1; }).then(m => m.fi),
41
+ da: () => Promise.resolve().then(function () { return require('./da.cjs'); }).then(m => m.da),
42
+ sv: () => Promise.resolve().then(function () { return require('./sv.cjs'); }).then(m => m.sv),
43
+ no: () => Promise.resolve().then(function () { return require('./no.cjs'); }).then(m => m.no),
44
+ fi: () => Promise.resolve().then(function () { return require('./fi.cjs'); }).then(m => m.fi),
153
45
  // Major Asian Languages
154
- th: () => Promise.resolve().then(function () { return th$1; }).then(m => m.th),
155
- vi: () => Promise.resolve().then(function () { return vi$1; }).then(m => m.vi),
156
- id: () => Promise.resolve().then(function () { return id$1; }).then(m => m.id),
157
- bn: () => Promise.resolve().then(function () { return bn$1; }).then(m => m.bn),
46
+ th: () => Promise.resolve().then(function () { return require('./th.cjs'); }).then(m => m.th),
47
+ vi: () => Promise.resolve().then(function () { return require('./vi.cjs'); }).then(m => m.vi),
48
+ id: () => Promise.resolve().then(function () { return require('./id.cjs'); }).then(m => m.id),
49
+ bn: () => Promise.resolve().then(function () { return require('./bn.cjs'); }).then(m => m.bn),
158
50
  // African Languages
159
- sw: () => Promise.resolve().then(function () { return sw$1; }).then(m => m.sw),
160
- af: () => Promise.resolve().then(function () { return af$1; }).then(m => m.af),
51
+ sw: () => Promise.resolve().then(function () { return require('./sw.cjs'); }).then(m => m.sw),
52
+ af: () => Promise.resolve().then(function () { return require('./af.cjs'); }).then(m => m.af),
161
53
  // American Languages
162
- 'pt-BR': () => Promise.resolve().then(function () { return ptBR$1; }).then(m => m.ptBR),
163
- 'es-MX': () => Promise.resolve().then(function () { return esMX$1; }).then(m => m.esMX),
54
+ 'pt-BR': () => Promise.resolve().then(function () { return require('./pt-BR.cjs'); }).then(m => m.ptBR),
55
+ 'es-MX': () => Promise.resolve().then(function () { return require('./es-MX.cjs'); }).then(m => m.esMX),
164
56
  };
165
57
  // ============================================
166
58
  // Public API
@@ -180,15 +72,13 @@ const localeLoaders = {
180
72
  */
181
73
  async function setLocaleAsync(locale) {
182
74
  // If already loaded, just switch
183
- if (loadedLocales.has(locale)) {
184
- currentLocale = locale;
185
- currentMessages = loadedLocales.get(locale);
75
+ if (locales_runtime.isLocaleLoaded(locale)) {
76
+ locales_runtime.setLocale(locale);
186
77
  return;
187
78
  }
188
79
  // If English, it's already bundled
189
80
  if (locale === 'en') {
190
- currentLocale = 'en';
191
- currentMessages = en;
81
+ locales_runtime.setLocale('en');
192
82
  return;
193
83
  }
194
84
  // Try to load dynamically
@@ -199,9 +89,8 @@ async function setLocaleAsync(locale) {
199
89
  }
200
90
  try {
201
91
  const messages = await loader();
202
- loadedLocales.set(locale, messages);
203
- currentLocale = locale;
204
- currentMessages = messages;
92
+ locales_runtime.registerLocale(locale, messages);
93
+ locales_runtime.setLocale(locale);
205
94
  }
206
95
  catch (error) {
207
96
  console.warn(`Failed to load locale "${locale}". Falling back to English.`, error);
@@ -223,9 +112,8 @@ async function setLocaleAsync(locale) {
223
112
  * ```
224
113
  */
225
114
  function setLocale(locale) {
226
- if (loadedLocales.has(locale)) {
227
- currentLocale = locale;
228
- currentMessages = loadedLocales.get(locale);
115
+ if (locales_runtime.isLocaleLoaded(locale)) {
116
+ locales_runtime.setLocale(locale);
229
117
  return;
230
118
  }
231
119
  throw new Error(`Locale "${locale}" not preloaded. Use setLocaleAsync() for lazy loading ` +
@@ -245,39 +133,6 @@ function setLocale(locale) {
245
133
  * registerLocale('tr', tr);
246
134
  * ```
247
135
  */
248
- function registerLocale(locale, messages) {
249
- loadedLocales.set(locale, messages);
250
- }
251
- /**
252
- * Get the current locale code
253
- */
254
- function getLocale() {
255
- return currentLocale;
256
- }
257
- /**
258
- * Get messages for the current locale
259
- * This is used internally by validators to get error messages.
260
- */
261
- function getMessages() {
262
- return currentMessages;
263
- }
264
- /**
265
- * Get messages for a specific locale
266
- * Returns English fallback if locale is not loaded.
267
- *
268
- * @param locale - The locale to get messages for
269
- */
270
- function getMessagesForLocale(locale) {
271
- return loadedLocales.get(locale) || en;
272
- }
273
- /**
274
- * Check if a locale is loaded and available for synchronous use
275
- *
276
- * @param locale - The locale to check
277
- */
278
- function isLocaleLoaded(locale) {
279
- return loadedLocales.has(locale);
280
- }
281
136
  /**
282
137
  * Check if a locale is supported (can be lazy loaded)
283
138
  *
@@ -306,12 +161,12 @@ function getSupportedLocales() {
306
161
  */
307
162
  async function preloadLocales(locales) {
308
163
  await Promise.all(locales.map(async (locale) => {
309
- if (!loadedLocales.has(locale) && locale !== 'en') {
164
+ if (!locales_runtime.isLocaleLoaded(locale) && locale !== 'en') {
310
165
  const loader = localeLoaders[locale];
311
166
  if (loader) {
312
167
  try {
313
168
  const messages = await loader();
314
- loadedLocales.set(locale, messages);
169
+ locales_runtime.registerLocale(locale, messages);
315
170
  }
316
171
  catch {
317
172
  // Silently ignore preload failures
@@ -321,2849 +176,13 @@ async function preloadLocales(locales) {
321
176
  }));
322
177
  }
323
178
 
324
- const tr = {
325
- // String validation messages
326
- invalidString: 'Geçersiz metin',
327
- stringMin: (min) => `Metin en az ${min} karakter olmalı`,
328
- stringMax: (max) => `Metin en fazla ${max} karakter olmalı`,
329
- stringLength: (length) => `Metin tam olarak ${length} karakter olmalı`,
330
- stringEmail: 'Geçersiz e-posta adresi',
331
- stringUrl: 'Geçersiz URL',
332
- stringUuid: 'Geçersiz UUID',
333
- stringRegex: 'Geçersiz format',
334
- stringStartsWith: (prefix) => `Metin "${prefix}" ile başlamalı`,
335
- stringEndsWith: (suffix) => `Metin "${suffix}" ile bitmeli`,
336
- stringIncludes: (substring) => `Metin "${substring}" içermeli`,
337
- stringIp: 'Geçersiz IP adresi',
338
- stringIpv4: 'Geçersiz IPv4 adresi',
339
- stringIpv6: 'Geçersiz IPv6 adresi',
340
- stringEmpty: 'Metin boş olmamalı',
341
- // Number validation messages
342
- invalidNumber: 'Geçersiz sayı',
343
- numberMin: (min) => `Sayı en az ${min} olmalı`,
344
- numberMax: (max) => `Sayı en fazla ${max} olmalı`,
345
- numberInt: 'Sayı tam sayı olmalı',
346
- numberPositive: 'Sayı pozitif olmalı',
347
- numberNegative: 'Sayı negatif olmalı',
348
- numberNonnegative: 'Sayı negatif olmamalı',
349
- numberNonpositive: 'Sayı pozitif olmamalı',
350
- numberFinite: 'Sayı sonlu olmalı',
351
- numberSafe: 'Sayı güvenli tam sayı olmalı',
352
- numberMultipleOf: (value) => `Sayı ${value}'nin katı olmalı`,
353
- // Boolean validation messages
354
- invalidBoolean: 'Geçersiz boolean',
355
- // Date validation messages
356
- invalidDate: 'Geçersiz tarih',
357
- dateMin: (date) => `Tarih ${date.toISOString()} sonrasında olmalı`,
358
- dateMax: (date) => `Tarih ${date.toISOString()} öncesinde olmalı`,
359
- // Object validation messages
360
- invalidObject: 'Geçersiz nesne',
361
- unexpectedKeys: (keys) => `Beklenmeyen anahtarlar: ${keys.join(', ')}`,
362
- // Array validation messages
363
- invalidArray: 'Geçersiz dizi',
364
- arrayMin: (min) => `Dizi en az ${min} eleman içermeli`,
365
- arrayMax: (max) => `Dizi en fazla ${max} eleman içermeli`,
366
- arrayLength: (length) => `Dizi tam olarak ${length} eleman içermeli`,
367
- arrayEmpty: 'Dizi boş olmamalı',
368
- arrayItem: (index, error) => `${index} indeksindeki eleman geçersiz: ${error}`,
369
- // Object field validation
370
- objectField: (field, error) => `"${field}" alanı geçersiz: ${error}`,
371
- // Union validation messages
372
- unionNoMatch: (errors) => `Hiçbir union üyesi eşleşmedi: ${errors.join(', ')}`,
373
- // Intersection validation messages
374
- intersectionError: (error) => `Intersection doğrulaması başarısız: ${error}`,
375
- // Literal validation messages
376
- literalExpected: (expected, received) => `${expected} beklendi, ${received} alındı`,
377
- // Enum validation messages
378
- enumExpected: (values, received) => `[${values.join(', ')}] değerlerinden biri beklendi, ${received} alındı`,
379
- // Special type validation messages
380
- expectedUndefined: 'Undefined beklendi',
381
- neverType: 'Never tipi parse edilemez',
382
- // New advanced type validation messages
383
- invalidBigint: 'Geçersiz bigint',
384
- invalidSymbol: 'Geçersiz symbol',
385
- invalidTuple: 'Geçersiz tuple',
386
- tupleLength: (expected, received) => `Tuple tam olarak ${expected} elemana sahip olmalı, ${received} aldı`,
387
- invalidRecord: 'Geçersiz record',
388
- invalidSet: 'Geçersiz set',
389
- invalidMap: 'Geçersiz map',
390
- // Transformation and refinement messages
391
- transformError: (error) => `Dönüştürme başarısız: ${error}`,
392
- refinementError: (error) => `Doğrulama başarısız: ${error}`,
393
- customValidationError: (error) => `Özel doğrulama başarısız: ${error}`,
394
- // Coercion messages
395
- coercionFailed: (type, value) => `${JSON.stringify(value)} değeri ${type} tipine dönüştürülemez`,
396
- // Codec messages
397
- codecDecodeFailed: 'Failed to decode value',
398
- codecEncodeFailed: 'Failed to encode value',
399
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
400
- // Base64/Hex messages
401
- invalidBase64: 'Invalid base64 string',
402
- invalidHex: 'Invalid hexadecimal string',
403
- // Uint8Array messages
404
- expectedUint8Array: 'Expected Uint8Array',
405
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
406
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
407
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
408
- // Generic type error messages
409
- expectedString: 'Expected string',
410
- stringExpected: (received, expected) => `Beklenen: ${expected}, alınan: ${received}`,
411
- stringBoolExpected: (validValues, received) => `Geçersiz boolean string. Şunlardan biri olmalı: ${validValues}, alınan: "${received}"`,
412
- invalidJson: 'Geçersiz JSON',
413
- stringPatternInvalid: 'Dize gerekli kalıpla eşleşmiyor',
414
- // File validation messages
415
- invalidFile: 'Expected a File object',
416
- fileNotSupported: 'File API not supported in this environment',
417
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
418
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
419
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
420
- // Function validation messages
421
- invalidFunction: 'Bir fonksiyon bekleniyor',
422
- // CIDR validation messages
423
- stringCidrv4: 'Geçersiz IPv4 CIDR bloğu',
424
- stringCidrv6: 'Geçersiz IPv6 CIDR bloğu',
425
- // Safe extend validation messages
426
- safeExtendOverlap: (keys) => `Mevcut anahtarlar üzerine yazılamaz: ${keys.join(', ')}. Üzerine yazmak istiyorsanız extend() kullanın.`
427
- };
428
-
429
- var tr$1 = /*#__PURE__*/Object.freeze({
430
- __proto__: null,
431
- tr: tr
432
- });
433
-
434
- const es = {
435
- invalidString: 'Cadena inválida',
436
- stringMin: (min) => `La cadena debe tener al menos ${min} caracteres`,
437
- stringMax: (max) => `La cadena debe tener como máximo ${max} caracteres`,
438
- stringLength: (length) => `La cadena debe tener exactamente ${length} caracteres`,
439
- stringEmail: 'Dirección de correo inválida',
440
- stringUrl: 'URL inválida',
441
- stringUuid: 'UUID inválido',
442
- stringRegex: 'Formato inválido',
443
- stringStartsWith: (prefix) => `La cadena debe comenzar con "${prefix}"`,
444
- stringEndsWith: (suffix) => `La cadena debe terminar con "${suffix}"`,
445
- stringIncludes: (substring) => `La cadena debe incluir "${substring}"`,
446
- stringIp: 'Dirección IP inválida',
447
- stringIpv4: 'Dirección IPv4 inválida',
448
- stringIpv6: 'Dirección IPv6 inválida',
449
- stringEmpty: 'La cadena no debe estar vacía',
450
- invalidNumber: 'Número inválido',
451
- numberMin: (min) => `El número debe ser al menos ${min}`,
452
- numberMax: (max) => `El número debe ser como máximo ${max}`,
453
- numberInt: 'El número debe ser un entero',
454
- numberPositive: 'El número debe ser positivo',
455
- numberNegative: 'El número debe ser negativo',
456
- numberNonnegative: 'El número debe ser no negativo',
457
- numberNonpositive: 'El número debe ser no positivo',
458
- numberFinite: 'El número debe ser finito',
459
- numberSafe: 'El número debe ser un entero seguro',
460
- numberMultipleOf: (value) => `El número debe ser múltiplo de ${value}`,
461
- invalidBoolean: 'Boolean inválido',
462
- invalidDate: 'Fecha inválida',
463
- dateMin: (date) => `La fecha debe ser posterior a ${date.toISOString()}`,
464
- dateMax: (date) => `La fecha debe ser anterior a ${date.toISOString()}`,
465
- invalidObject: 'Objeto inválido',
466
- unexpectedKeys: (keys) => `Claves inesperadas: ${keys.join(', ')}`,
467
- invalidArray: 'Array inválido',
468
- arrayMin: (min) => `El array debe tener al menos ${min} elementos`,
469
- arrayMax: (max) => `El array debe tener como máximo ${max} elementos`,
470
- arrayLength: (length) => `El array debe tener exactamente ${length} elementos`,
471
- arrayEmpty: 'El array no debe estar vacío',
472
- arrayItem: (index, error) => `Elemento inválido en índice ${index}: ${error}`,
473
- objectField: (field, error) => `Campo inválido "${field}": ${error}`,
474
- unionNoMatch: (errors) => `Ningún miembro de la unión coincidió: ${errors.join(', ')}`,
475
- intersectionError: (error) => `Error de validación de intersección: ${error}`,
476
- literalExpected: (expected, received) => `Se esperaba ${expected}, se recibió ${received}`,
477
- enumExpected: (values, received) => `Se esperaba uno de [${values.join(', ')}], se recibió ${received}`,
478
- expectedUndefined: 'Se esperaba undefined',
479
- neverType: 'El tipo never no puede ser parseado',
480
- // New advanced type validation messages
481
- invalidBigint: 'Bigint inválido',
482
- invalidSymbol: 'Símbolo inválido',
483
- invalidTuple: 'Tupla inválida',
484
- tupleLength: (expected, received) => `La tupla debe tener exactamente ${expected} elementos, se recibieron ${received}`,
485
- invalidRecord: 'Registro inválido',
486
- invalidSet: 'Set inválido',
487
- invalidMap: 'Map inválido',
488
- // Transformation and refinement messages
489
- transformError: (error) => `Transformación fallida: ${error}`,
490
- refinementError: (error) => `Refinamiento fallido: ${error}`,
491
- customValidationError: (error) => `Validación personalizada falló: ${error}`,
492
- // Coercion messages
493
- coercionFailed: (type, value) => `No se puede coaccionar ${JSON.stringify(value)} a ${type}`,
494
- // Codec messages
495
- codecDecodeFailed: 'Failed to decode value',
496
- codecEncodeFailed: 'Failed to encode value',
497
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
498
- // Base64/Hex messages
499
- invalidBase64: 'Invalid base64 string',
500
- invalidHex: 'Invalid hexadecimal string',
501
- // Uint8Array messages
502
- expectedUint8Array: 'Expected Uint8Array',
503
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
504
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
505
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
506
- // Generic type error messages
507
- expectedString: 'Expected string',
508
- stringExpected: (received, expected) => `Se esperaba ${expected}, se obtuvo ${received}`,
509
- stringBoolExpected: (validValues, received) => `Cadena booleana no válida. Se esperaba uno de: ${validValues}, se obtuvo "${received}"`,
510
- invalidJson: 'JSON no válido',
511
- stringPatternInvalid: 'La cadena no coincide con el patrón requerido',
512
- // File validation messages
513
- invalidFile: 'Expected a File object',
514
- fileNotSupported: 'File API not supported in this environment',
515
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
516
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
517
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
518
- // Function validation messages
519
- invalidFunction: 'Se esperaba una función',
520
- // CIDR validation messages
521
- stringCidrv4: 'Bloque CIDR IPv4 inválido',
522
- stringCidrv6: 'Bloque CIDR IPv6 inválido',
523
- // Safe extend validation messages
524
- safeExtendOverlap: (keys) => `No se pueden sobrescribir las claves existentes: ${keys.join(', ')}. Use extend() si desea sobrescribir.`
525
- };
526
-
527
- var es$1 = /*#__PURE__*/Object.freeze({
528
- __proto__: null,
529
- es: es
530
- });
531
-
532
- const fr = {
533
- invalidString: 'Chaîne invalide',
534
- stringMin: (min) => `La chaîne doit contenir au moins ${min} caractères`,
535
- stringMax: (max) => `La chaîne doit contenir au maximum ${max} caractères`,
536
- stringLength: (length) => `La chaîne doit contenir exactement ${length} caractères`,
537
- stringEmail: 'Adresse e-mail invalide',
538
- stringUrl: 'URL invalide',
539
- stringUuid: 'UUID invalide',
540
- stringRegex: 'Format invalide',
541
- stringStartsWith: (prefix) => `La chaîne doit commencer par "${prefix}"`,
542
- stringEndsWith: (suffix) => `La chaîne doit se terminer par "${suffix}"`,
543
- stringIncludes: (substring) => `La chaîne doit contenir "${substring}"`,
544
- stringIp: 'Adresse IP invalide',
545
- stringIpv4: 'Adresse IPv4 invalide',
546
- stringIpv6: 'Adresse IPv6 invalide',
547
- stringEmpty: 'La chaîne ne doit pas être vide',
548
- invalidNumber: 'Nombre invalide',
549
- numberMin: (min) => `Le nombre doit être d'au moins ${min}`,
550
- numberMax: (max) => `Le nombre doit être d'au maximum ${max}`,
551
- numberInt: 'Le nombre doit être un entier',
552
- numberPositive: 'Le nombre doit être positif',
553
- numberNegative: 'Le nombre doit être négatif',
554
- numberNonnegative: 'Le nombre ne doit pas être négatif',
555
- numberNonpositive: 'Le nombre ne doit pas être positif',
556
- numberFinite: 'Le nombre doit être fini',
557
- numberSafe: 'Le nombre doit être un entier sûr',
558
- numberMultipleOf: (value) => `Le nombre doit être un multiple de ${value}`,
559
- invalidBoolean: 'Boolean invalide',
560
- invalidDate: 'Date invalide',
561
- dateMin: (date) => `La date doit être postérieure à ${date.toISOString()}`,
562
- dateMax: (date) => `La date doit être antérieure à ${date.toISOString()}`,
563
- invalidObject: 'Objet invalide',
564
- unexpectedKeys: (keys) => `Clés inattendues: ${keys.join(', ')}`,
565
- invalidArray: 'Tableau invalide',
566
- arrayMin: (min) => `Le tableau doit contenir au moins ${min} éléments`,
567
- arrayMax: (max) => `Le tableau doit contenir au maximum ${max} éléments`,
568
- arrayLength: (length) => `Le tableau doit contenir exactement ${length} éléments`,
569
- arrayEmpty: 'Le tableau ne doit pas être vide',
570
- arrayItem: (index, error) => `Élément invalide à l'index ${index}: ${error}`,
571
- objectField: (field, error) => `Champ invalide "${field}": ${error}`,
572
- unionNoMatch: (errors) => `Aucun membre de l'union n'a correspondu: ${errors.join(', ')}`,
573
- intersectionError: (error) => `Échec de validation d'intersection: ${error}`,
574
- literalExpected: (expected, received) => `Attendu ${expected}, reçu ${received}`,
575
- enumExpected: (values, received) => `Attendu un de [${values.join(', ')}], reçu ${received}`,
576
- expectedUndefined: 'Undefined attendu',
577
- neverType: 'Le type never ne peut pas être analysé',
578
- // New advanced type validation messages
579
- invalidBigint: 'Bigint invalide',
580
- invalidSymbol: 'Symbole invalide',
581
- invalidTuple: 'Tuple invalide',
582
- tupleLength: (expected, received) => `Le tuple doit contenir exactement ${expected} éléments, ${received} reçus`,
583
- invalidRecord: 'Enregistrement invalide',
584
- invalidSet: 'Set invalide',
585
- invalidMap: 'Map invalide',
586
- // Transformation and refinement messages
587
- transformError: (error) => `Transformation échouée : ${error}`,
588
- refinementError: (error) => `Raffinement échoué : ${error}`,
589
- customValidationError: (error) => `Validation personnalisée échouée : ${error}`,
590
- // Coercion messages
591
- coercionFailed: (type, value) => `Impossible de convertir ${JSON.stringify(value)} en ${type}`,
592
- // Codec messages
593
- codecDecodeFailed: 'Failed to decode value',
594
- codecEncodeFailed: 'Failed to encode value',
595
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
596
- // Base64/Hex messages
597
- invalidBase64: 'Invalid base64 string',
598
- invalidHex: 'Invalid hexadecimal string',
599
- // Uint8Array messages
600
- expectedUint8Array: 'Expected Uint8Array',
601
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
602
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
603
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
604
- // Generic type error messages
605
- expectedString: 'Expected string',
606
- stringExpected: (received, expected) => `Attendu: ${expected}, reçu: ${received}`,
607
- stringBoolExpected: (validValues, received) => `Chaîne booléenne invalide. Attendu: l'un de ${validValues}, reçu: "${received}"`,
608
- invalidJson: 'JSON invalide',
609
- stringPatternInvalid: 'La chaîne ne correspond pas au modèle requis',
610
- // File validation messages
611
- invalidFile: 'Expected a File object',
612
- fileNotSupported: 'File API not supported in this environment',
613
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
614
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
615
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
616
- // Function validation messages
617
- invalidFunction: 'Une fonction est attendue',
618
- // CIDR validation messages
619
- stringCidrv4: 'Bloc CIDR IPv4 invalide',
620
- stringCidrv6: 'Bloc CIDR IPv6 invalide',
621
- // Safe extend validation messages
622
- safeExtendOverlap: (keys) => `Impossible de remplacer les clés existantes: ${keys.join(', ')}. Utilisez extend() pour remplacer.`
623
- };
624
-
625
- var fr$1 = /*#__PURE__*/Object.freeze({
626
- __proto__: null,
627
- fr: fr
628
- });
629
-
630
- const de = {
631
- // String validation messages
632
- invalidString: 'Ungültiger String',
633
- stringMin: (min) => `String muss mindestens ${min} Zeichen lang sein`,
634
- stringMax: (max) => `String darf höchstens ${max} Zeichen lang sein`,
635
- stringLength: (length) => `String muss genau ${length} Zeichen lang sein`,
636
- stringEmail: 'Ungültige E-Mail-Adresse',
637
- stringUrl: 'Ungültige URL',
638
- stringUuid: 'Ungültige UUID',
639
- stringRegex: 'Ungültiges Format',
640
- stringStartsWith: (prefix) => `String muss mit "${prefix}" beginnen`,
641
- stringEndsWith: (suffix) => `String muss mit "${suffix}" enden`,
642
- stringIncludes: (substring) => `String muss "${substring}" enthalten`,
643
- stringIp: 'Ungültige IP-Adresse',
644
- stringIpv4: 'Ungültige IPv4-Adresse',
645
- stringIpv6: 'Ungültige IPv6-Adresse',
646
- stringEmpty: 'String darf nicht leer sein',
647
- // Number validation messages
648
- invalidNumber: 'Ungültige Nummer',
649
- numberMin: (min) => `Nummer muss mindestens ${min} betragen`,
650
- numberMax: (max) => `Nummer darf höchstens ${max} betragen`,
651
- numberInt: 'Nummer muss eine ganze Zahl sein',
652
- numberPositive: 'Nummer muss positiv sein',
653
- numberNegative: 'Nummer muss negativ sein',
654
- numberNonnegative: 'Nummer darf nicht negativ sein',
655
- numberNonpositive: 'Nummer darf nicht positiv sein',
656
- numberFinite: 'Nummer muss endlich sein',
657
- numberSafe: 'Nummer muss eine sichere ganze Zahl sein',
658
- numberMultipleOf: (value) => `Nummer muss ein Vielfaches von ${value} sein`,
659
- // Boolean validation messages
660
- invalidBoolean: 'Ungültiger Boolean-Wert',
661
- // Date validation messages
662
- invalidDate: 'Ungültiges Datum',
663
- dateMin: (date) => `Datum muss nach ${date.toISOString()} liegen`,
664
- dateMax: (date) => `Datum muss vor ${date.toISOString()} liegen`,
665
- // Object validation messages
666
- invalidObject: 'Ungültiges Objekt',
667
- unexpectedKeys: (keys) => `Unerwartete Schlüssel: ${keys.join(', ')}`,
668
- // Array validation messages
669
- invalidArray: 'Ungültiges Array',
670
- arrayMin: (min) => `Array muss mindestens ${min} Elemente haben`,
671
- arrayMax: (max) => `Array darf höchstens ${max} Elemente haben`,
672
- arrayLength: (length) => `Array muss genau ${length} Elemente haben`,
673
- arrayEmpty: 'Array darf nicht leer sein',
674
- arrayItem: (index, error) => `Ungültiges Element bei Index ${index}: ${error}`,
675
- // Object field validation
676
- objectField: (field, error) => `Ungültiges Feld "${field}": ${error}`,
677
- // Union validation messages
678
- unionNoMatch: (errors) => `Kein Union-Mitglied passte: ${errors.join(', ')}`,
679
- // Intersection validation messages
680
- intersectionError: (error) => `Intersection-Validierung fehlgeschlagen: ${error}`,
681
- // Literal validation messages
682
- literalExpected: (expected, received) => `Erwartet ${expected}, erhalten ${received}`,
683
- // Enum validation messages
684
- enumExpected: (values, received) => `Erwartet einer von [${values.join(', ')}], erhalten ${received}`,
685
- // Special type validation messages
686
- expectedUndefined: 'Undefined erwartet',
687
- neverType: 'Never-Typ kann nicht geparst werden',
688
- // New advanced type validation messages
689
- invalidBigint: 'Ungültiger Bigint',
690
- invalidSymbol: 'Ungültiges Symbol',
691
- invalidTuple: 'Ungültiges Tupel',
692
- tupleLength: (expected, received) => `Tupel muss genau ${expected} Elemente haben, ${received} erhalten`,
693
- invalidRecord: 'Ungültiger Datensatz',
694
- invalidSet: 'Ungültiges Set',
695
- invalidMap: 'Ungültige Map',
696
- // Transformation and refinement messages
697
- transformError: (error) => `Transformation fehlgeschlagen: ${error}`,
698
- refinementError: (error) => `Verfeinerung fehlgeschlagen: ${error}`,
699
- customValidationError: (error) => `Benutzerdefinierte Validierung fehlgeschlagen: ${error}`,
700
- // Coercion messages
701
- coercionFailed: (type, value) => `Kann ${JSON.stringify(value)} nicht zu ${type} konvertieren`,
702
- // Codec messages
703
- codecDecodeFailed: 'Failed to decode value',
704
- codecEncodeFailed: 'Failed to encode value',
705
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
706
- // Base64/Hex messages
707
- invalidBase64: 'Invalid base64 string',
708
- invalidHex: 'Invalid hexadecimal string',
709
- // Uint8Array messages
710
- expectedUint8Array: 'Expected Uint8Array',
711
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
712
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
713
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
714
- // Generic type error messages
715
- expectedString: 'Expected string',
716
- stringExpected: (received, expected) => `${expected} erwartet, ${received} erhalten`,
717
- stringBoolExpected: (validValues, received) => `Ungültige Boolean-Zeichenkette. Eines von erwartet: ${validValues}, erhalten: "${received}"`,
718
- invalidJson: 'Ungültiges JSON',
719
- stringPatternInvalid: 'Zeichenfolge entspricht nicht dem erforderlichen Muster',
720
- // File validation messages
721
- invalidFile: 'Expected a File object',
722
- fileNotSupported: 'File API not supported in this environment',
723
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
724
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
725
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
726
- // Function validation messages
727
- invalidFunction: 'Eine Funktion erwartet',
728
- // CIDR validation messages
729
- stringCidrv4: 'Ungültiger IPv4 CIDR-Block',
730
- stringCidrv6: 'Ungültiger IPv6 CIDR-Block',
731
- // Safe extend validation messages
732
- safeExtendOverlap: (keys) => `Bestehende Schlüssel können nicht überschrieben werden: ${keys.join(', ')}. Verwenden Sie extend() zum Überschreiben.`
733
- };
734
-
735
- var de$1 = /*#__PURE__*/Object.freeze({
736
- __proto__: null,
737
- de: de
738
- });
739
-
740
- const it = {
741
- // String validation messages
742
- invalidString: 'Stringa non valida',
743
- stringMin: (min) => `La stringa deve avere almeno ${min} caratteri`,
744
- stringMax: (max) => `La stringa non può avere più di ${max} caratteri`,
745
- stringLength: (length) => `La stringa deve avere esattamente ${length} caratteri`,
746
- stringEmail: 'Indirizzo email non valido',
747
- stringUrl: 'URL non valido',
748
- stringUuid: 'UUID non valido',
749
- stringRegex: 'Formato non valido',
750
- stringStartsWith: (prefix) => `La stringa deve iniziare con "${prefix}"`,
751
- stringEndsWith: (suffix) => `La stringa deve finire con "${suffix}"`,
752
- stringIncludes: (substring) => `La stringa deve contenere "${substring}"`,
753
- stringIp: 'Indirizzo IP non valido',
754
- stringIpv4: 'Indirizzo IPv4 non valido',
755
- stringIpv6: 'Indirizzo IPv6 non valido',
756
- stringEmpty: 'La stringa non può essere vuota',
757
- // Number validation messages
758
- invalidNumber: 'Numero non valido',
759
- numberMin: (min) => `Il numero deve essere almeno ${min}`,
760
- numberMax: (max) => `Il numero non può essere maggiore di ${max}`,
761
- numberInt: 'Il numero deve essere intero',
762
- numberPositive: 'Il numero deve essere positivo',
763
- numberNegative: 'Il numero deve essere negativo',
764
- numberNonnegative: 'Il numero non può essere negativo',
765
- numberNonpositive: 'Il numero non può essere positivo',
766
- numberFinite: 'Il numero deve essere finito',
767
- numberSafe: 'Il numero deve essere un intero sicuro',
768
- numberMultipleOf: (value) => `Il numero deve essere multiplo di ${value}`,
769
- // Boolean validation messages
770
- invalidBoolean: 'Valore booleano non valido',
771
- // Date validation messages
772
- invalidDate: 'Data non valida',
773
- dateMin: (date) => `La data deve essere dopo ${date.toISOString()}`,
774
- dateMax: (date) => `La data deve essere prima di ${date.toISOString()}`,
775
- // Object validation messages
776
- invalidObject: 'Oggetto non valido',
777
- unexpectedKeys: (keys) => `Chiavi impreviste: ${keys.join(', ')}`,
778
- // Array validation messages
779
- invalidArray: 'Array non valido',
780
- arrayMin: (min) => `L'array deve avere almeno ${min} elementi`,
781
- arrayMax: (max) => `L'array non può avere più di ${max} elementi`,
782
- arrayLength: (length) => `L'array deve avere esattamente ${length} elementi`,
783
- arrayEmpty: 'L\'array non può essere vuoto',
784
- arrayItem: (index, error) => `Elemento non valido all'indice ${index}: ${error}`,
785
- // Object field validation
786
- objectField: (field, error) => `Campo non valido "${field}": ${error}`,
787
- // Union validation messages
788
- unionNoMatch: (errors) => `Nessun membro dell'unione corrisponde: ${errors.join(', ')}`,
789
- // Intersection validation messages
790
- intersectionError: (error) => `Validazione intersezione fallita: ${error}`,
791
- // Literal validation messages
792
- literalExpected: (expected, received) => `Previsto ${expected}, ricevuto ${received}`,
793
- // Enum validation messages
794
- enumExpected: (values, received) => `Previsto uno di [${values.join(', ')}], ricevuto ${received}`,
795
- // Special type validation messages
796
- expectedUndefined: 'Previsto undefined',
797
- neverType: 'Il tipo never non può essere analizzato',
798
- // New advanced type validation messages
799
- invalidBigint: 'Bigint non valido',
800
- invalidSymbol: 'Simbolo non valido',
801
- invalidTuple: 'Tupla non valida',
802
- tupleLength: (expected, received) => `La tupla deve avere esattamente ${expected} elementi, ricevuti ${received}`,
803
- invalidRecord: 'Record non valido',
804
- invalidSet: 'Set non valido',
805
- invalidMap: 'Map non valida',
806
- // Transformation and refinement messages
807
- transformError: (error) => `Trasformazione fallita: ${error}`,
808
- refinementError: (error) => `Raffinamento fallito: ${error}`,
809
- customValidationError: (error) => `Validazione personalizzata fallita: ${error}`,
810
- // Coercion messages
811
- coercionFailed: (type, value) => `Impossibile convertire ${JSON.stringify(value)} in ${type}`,
812
- // Codec messages
813
- codecDecodeFailed: 'Failed to decode value',
814
- codecEncodeFailed: 'Failed to encode value',
815
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
816
- // Base64/Hex messages
817
- invalidBase64: 'Invalid base64 string',
818
- invalidHex: 'Invalid hexadecimal string',
819
- // Uint8Array messages
820
- expectedUint8Array: 'Expected Uint8Array',
821
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
822
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
823
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
824
- // Generic type error messages
825
- expectedString: 'Expected string',
826
- stringExpected: (received, expected) => `Previsto ${expected}, ricevuto ${received}`,
827
- stringBoolExpected: (validValues, received) => `Stringa booleana non valida. Previsto uno di: ${validValues}, ricevuto: "${received}"`,
828
- invalidJson: 'JSON non valido',
829
- stringPatternInvalid: 'La stringa non corrisponde al pattern richiesto',
830
- // File validation messages
831
- invalidFile: 'Expected a File object',
832
- fileNotSupported: 'File API not supported in this environment',
833
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
834
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
835
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
836
- // Function validation messages
837
- invalidFunction: 'È prevista una funzione',
838
- // CIDR validation messages
839
- stringCidrv4: 'Blocco CIDR IPv4 non valido',
840
- stringCidrv6: 'Blocco CIDR IPv6 non valido',
841
- // Safe extend validation messages
842
- safeExtendOverlap: (keys) => `Impossibile sovrascrivere chiavi esistenti: ${keys.join(', ')}. Usa extend() per sovrascrivere.`
843
- };
844
-
845
- var it$1 = /*#__PURE__*/Object.freeze({
846
- __proto__: null,
847
- it: it
848
- });
849
-
850
- const pt = {
851
- // String validation messages
852
- invalidString: 'String inválida',
853
- stringMin: (min) => `String deve ter pelo menos ${min} caracteres`,
854
- stringMax: (max) => `String não pode ter mais que ${max} caracteres`,
855
- stringLength: (length) => `String deve ter exactamente ${length} caracteres`,
856
- stringEmail: 'Endereço de email inválido',
857
- stringUrl: 'URL inválido',
858
- stringUuid: 'UUID inválido',
859
- stringRegex: 'Formato inválido',
860
- stringStartsWith: (prefix) => `String deve começar com "${prefix}"`,
861
- stringEndsWith: (suffix) => `String deve terminar com "${suffix}"`,
862
- stringIncludes: (substring) => `String deve conter "${substring}"`,
863
- stringIp: 'Endereço IP inválido',
864
- stringIpv4: 'Endereço IPv4 inválido',
865
- stringIpv6: 'Endereço IPv6 inválido',
866
- stringEmpty: 'String não pode estar vazia',
867
- // Number validation messages
868
- invalidNumber: 'Número inválido',
869
- numberMin: (min) => `Número deve ser pelo menos ${min}`,
870
- numberMax: (max) => `Número não pode ser maior que ${max}`,
871
- numberInt: 'Número deve ser inteiro',
872
- numberPositive: 'Número deve ser positivo',
873
- numberNegative: 'Número deve ser negativo',
874
- numberNonnegative: 'Número não pode ser negativo',
875
- numberNonpositive: 'Número não pode ser positivo',
876
- numberFinite: 'Número deve ser finito',
877
- numberSafe: 'Número deve ser um inteiro seguro',
878
- numberMultipleOf: (value) => `Número deve ser múltiplo de ${value}`,
879
- // Boolean validation messages
880
- invalidBoolean: 'Valor booleano inválido',
881
- // Date validation messages
882
- invalidDate: 'Data inválida',
883
- dateMin: (date) => `Data deve ser após ${date.toISOString()}`,
884
- dateMax: (date) => `Data deve ser antes de ${date.toISOString()}`,
885
- // Object validation messages
886
- invalidObject: 'Objecto inválido',
887
- unexpectedKeys: (keys) => `Chaves inesperadas: ${keys.join(', ')}`,
888
- // Array validation messages
889
- invalidArray: 'Array inválido',
890
- arrayMin: (min) => `Array deve ter pelo menos ${min} elementos`,
891
- arrayMax: (max) => `Array não pode ter mais que ${max} elementos`,
892
- arrayLength: (length) => `Array deve ter exactamente ${length} elementos`,
893
- arrayEmpty: 'Array não pode estar vazio',
894
- arrayItem: (index, error) => `Item inválido no índice ${index}: ${error}`,
895
- // Object field validation
896
- objectField: (field, error) => `Campo inválido "${field}": ${error}`,
897
- // Union validation messages
898
- unionNoMatch: (errors) => `Nenhum membro da união correspondeu: ${errors.join(', ')}`,
899
- // Intersection validation messages
900
- intersectionError: (error) => `Validação de intersecção falhou: ${error}`,
901
- // Literal validation messages
902
- literalExpected: (expected, received) => `Esperado ${expected}, recebido ${received}`,
903
- // Enum validation messages
904
- enumExpected: (values, received) => `Esperado um de [${values.join(', ')}], recebido ${received}`,
905
- // Special type validation messages
906
- expectedUndefined: 'Esperado undefined',
907
- neverType: 'Tipo never não pode ser analisado',
908
- // New advanced type validation messages
909
- invalidBigint: 'Bigint inválido',
910
- invalidSymbol: 'Símbolo inválido',
911
- invalidTuple: 'Tupla inválida',
912
- tupleLength: (expected, received) => `Tupla deve ter exactamente ${expected} elementos, recebidos ${received}`,
913
- invalidRecord: 'Registo inválido',
914
- invalidSet: 'Set inválido',
915
- invalidMap: 'Map inválido',
916
- // Transformation and refinement messages
917
- transformError: (error) => `Transformação falhou: ${error}`,
918
- refinementError: (error) => `Refinamento falhou: ${error}`,
919
- customValidationError: (error) => `Validação personalizada falhou: ${error}`,
920
- // Coercion messages
921
- coercionFailed: (type, value) => `Não é possível converter ${JSON.stringify(value)} para ${type}`,
922
- // Codec messages
923
- codecDecodeFailed: 'Failed to decode value',
924
- codecEncodeFailed: 'Failed to encode value',
925
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
926
- // Base64/Hex messages
927
- invalidBase64: 'Invalid base64 string',
928
- invalidHex: 'Invalid hexadecimal string',
929
- // Uint8Array messages
930
- expectedUint8Array: 'Expected Uint8Array',
931
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
932
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
933
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
934
- // Generic type error messages
935
- expectedString: 'Expected string',
936
- stringExpected: (received, expected) => `Esperado ${expected}, recebido ${received}`,
937
- stringBoolExpected: (validValues, received) => `String boolean inválida. Esperado um de: ${validValues}, recebido: "${received}"`,
938
- invalidJson: 'JSON inválido',
939
- stringPatternInvalid: 'A string não corresponde ao padrão necessário',
940
- // File validation messages
941
- invalidFile: 'Expected a File object',
942
- fileNotSupported: 'File API not supported in this environment',
943
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
944
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
945
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
946
- // Function validation messages
947
- invalidFunction: 'Uma função é esperada',
948
- // CIDR validation messages
949
- stringCidrv4: 'Bloco CIDR IPv4 inválido',
950
- stringCidrv6: 'Bloco CIDR IPv6 inválido',
951
- // Safe extend validation messages
952
- safeExtendOverlap: (keys) => `Não é possível substituir chaves existentes: ${keys.join(', ')}. Use extend() se quiser substituir.`
953
- };
954
-
955
- var pt$1 = /*#__PURE__*/Object.freeze({
956
- __proto__: null,
957
- pt: pt
958
- });
959
-
960
- const ru = {
961
- // String validation messages
962
- invalidString: 'Некорректная строка',
963
- stringMin: (min) => `Строка должна содержать не менее ${min} символов`,
964
- stringMax: (max) => `Строка не может содержать более ${max} символов`,
965
- stringLength: (length) => `Строка должна содержать ровно ${length} символов`,
966
- stringEmail: 'Некорректный email адрес',
967
- stringUrl: 'Некорректный URL',
968
- stringUuid: 'Некорректный UUID',
969
- stringRegex: 'Некорректный формат',
970
- stringStartsWith: (prefix) => `Строка должна начинаться с "${prefix}"`,
971
- stringEndsWith: (suffix) => `Строка должна заканчиваться на "${suffix}"`,
972
- stringIncludes: (substring) => `Строка должна содержать "${substring}"`,
973
- stringIp: 'Некорректный IP адрес',
974
- stringIpv4: 'Некорректный IPv4 адрес',
975
- stringIpv6: 'Некорректный IPv6 адрес',
976
- stringEmpty: 'Строка не может быть пустой',
977
- // Number validation messages
978
- invalidNumber: 'Некорректное число',
979
- numberMin: (min) => `Число должно быть не менее ${min}`,
980
- numberMax: (max) => `Число не может быть больше ${max}`,
981
- numberInt: 'Число должно быть целым',
982
- numberPositive: 'Число должно быть положительным',
983
- numberNegative: 'Число должно быть отрицательным',
984
- numberNonnegative: 'Число не может быть отрицательным',
985
- numberNonpositive: 'Число не может быть положительным',
986
- numberFinite: 'Число должно быть конечным',
987
- numberSafe: 'Число должно быть безопасным целым',
988
- numberMultipleOf: (value) => `Число должно быть кратно ${value}`,
989
- // Boolean validation messages
990
- invalidBoolean: 'Некорректный boolean',
991
- // Date validation messages
992
- invalidDate: 'Некорректная дата',
993
- dateMin: (date) => `Дата должна быть после ${date.toISOString()}`,
994
- dateMax: (date) => `Дата должна быть до ${date.toISOString()}`,
995
- // Object validation messages
996
- invalidObject: 'Некорректный объект',
997
- unexpectedKeys: (keys) => `Неожиданные ключи: ${keys.join(', ')}`,
998
- // Array validation messages
999
- invalidArray: 'Некорректный массив',
1000
- arrayMin: (min) => `Массив должен содержать не менее ${min} элементов`,
1001
- arrayMax: (max) => `Массив не может содержать более ${max} элементов`,
1002
- arrayLength: (length) => `Массив должен содержать ровно ${length} элементов`,
1003
- arrayEmpty: 'Массив не может быть пустым',
1004
- arrayItem: (index, error) => `Некорректный элемент по индексу ${index}: ${error}`,
1005
- // Object field validation
1006
- objectField: (field, error) => `Некорректное поле "${field}": ${error}`,
1007
- // Union validation messages
1008
- unionNoMatch: (errors) => `Ни один член объединения не подошёл: ${errors.join(', ')}`,
1009
- // Intersection validation messages
1010
- intersectionError: (error) => `Не удалось выполнить валидацию пересечения: ${error}`,
1011
- // Literal validation messages
1012
- literalExpected: (expected, received) => `Ожидалось ${expected}, получено ${received}`,
1013
- // Enum validation messages
1014
- enumExpected: (values, received) => `Ожидалось одно из [${values.join(', ')}], получено ${received}`,
1015
- // Special type validation messages
1016
- expectedUndefined: 'Ожидалось undefined',
1017
- neverType: 'Тип never не может быть разобран',
1018
- // New advanced type validation messages
1019
- invalidBigint: 'Некорректный bigint',
1020
- invalidSymbol: 'Некорректный символ',
1021
- invalidTuple: 'Некорректный кортеж',
1022
- tupleLength: (expected, received) => `Кортеж должен содержать ровно ${expected} элементов, получено ${received}`,
1023
- invalidRecord: 'Некорректная запись',
1024
- invalidSet: 'Некорректный set',
1025
- invalidMap: 'Некорректная map',
1026
- // Transformation and refinement messages
1027
- transformError: (error) => `Преобразование не удалось: ${error}`,
1028
- refinementError: (error) => `Уточнение не удалось: ${error}`,
1029
- customValidationError: (error) => `Пользовательская проверка не удалась: ${error}`,
1030
- // Coercion messages
1031
- coercionFailed: (type, value) => `Невозможно привести ${JSON.stringify(value)} к типу ${type}`,
1032
- // Codec messages
1033
- codecDecodeFailed: 'Failed to decode value',
1034
- codecEncodeFailed: 'Failed to encode value',
1035
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
1036
- // Base64/Hex messages
1037
- invalidBase64: 'Invalid base64 string',
1038
- invalidHex: 'Invalid hexadecimal string',
1039
- // Uint8Array messages
1040
- expectedUint8Array: 'Expected Uint8Array',
1041
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
1042
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
1043
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
1044
- // Generic type error messages
1045
- expectedString: 'Expected string',
1046
- stringExpected: (received, expected) => `Ожидалось ${expected}, получено ${received}`,
1047
- stringBoolExpected: (validValues, received) => `Некорректная boolean строка. Ожидалось одно из: ${validValues}, получено: "${received}"`,
1048
- invalidJson: 'Недопустимый JSON',
1049
- stringPatternInvalid: 'Строка не соответствует требуемому шаблону',
1050
- // File validation messages
1051
- invalidFile: 'Expected a File object',
1052
- fileNotSupported: 'File API not supported in this environment',
1053
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
1054
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
1055
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
1056
- // Function validation messages
1057
- invalidFunction: 'Ожидалась функция',
1058
- // CIDR validation messages
1059
- stringCidrv4: 'Некорректный IPv4 CIDR блок',
1060
- stringCidrv6: 'Некорректный IPv6 CIDR блок',
1061
- // Safe extend validation messages
1062
- safeExtendOverlap: (keys) => `Невозможно переопределить существующие ключи: ${keys.join(', ')}. Используйте extend() для переопределения.`
1063
- };
1064
-
1065
- var ru$1 = /*#__PURE__*/Object.freeze({
1066
- __proto__: null,
1067
- ru: ru
1068
- });
1069
-
1070
- const ja = {
1071
- // String validation messages
1072
- invalidString: '無効な文字列',
1073
- stringMin: (min) => `文字列は${min}文字以上である必要があります`,
1074
- stringMax: (max) => `文字列は${max}文字以下である必要があります`,
1075
- stringLength: (length) => `文字列はちょうど${length}文字である必要があります`,
1076
- stringEmail: '無効なメールアドレス',
1077
- stringUrl: '無効なURL',
1078
- stringUuid: '無効なUUID',
1079
- stringRegex: '無効なフォーマット',
1080
- stringStartsWith: (prefix) => `文字列は「${prefix}」で始まる必要があります`,
1081
- stringEndsWith: (suffix) => `文字列は「${suffix}」で終わる必要があります`,
1082
- stringIncludes: (substring) => `文字列は「${substring}」を含む必要があります`,
1083
- stringIp: '無効なIPアドレス',
1084
- stringIpv4: '無効なIPv4アドレス',
1085
- stringIpv6: '無効なIPv6アドレス',
1086
- stringEmpty: '文字列は空にできません',
1087
- // Number validation messages
1088
- invalidNumber: '無効な数値',
1089
- numberMin: (min) => `数値は${min}以上である必要があります`,
1090
- numberMax: (max) => `数値は${max}以下である必要があります`,
1091
- numberInt: '数値は整数である必要があります',
1092
- numberPositive: '数値は正の値である必要があります',
1093
- numberNegative: '数値は負の値である必要があります',
1094
- numberNonnegative: '数値は負の値にできません',
1095
- numberNonpositive: '数値は正の値にできません',
1096
- numberFinite: '数値は有限である必要があります',
1097
- numberSafe: '数値は安全な整数である必要があります',
1098
- numberMultipleOf: (value) => `数値は${value}の倍数である必要があります`,
1099
- // Boolean validation messages
1100
- invalidBoolean: '無効なブール値',
1101
- // Date validation messages
1102
- invalidDate: '無効な日付',
1103
- dateMin: (date) => `日付は${date.toISOString()}より後である必要があります`,
1104
- dateMax: (date) => `日付は${date.toISOString()}より前である必要があります`,
1105
- // Object validation messages
1106
- invalidObject: '無効なオブジェクト',
1107
- unexpectedKeys: (keys) => `予期しないキー: ${keys.join(', ')}`,
1108
- // Array validation messages
1109
- invalidArray: '無効な配列',
1110
- arrayMin: (min) => `配列は${min}個以上の要素が必要です`,
1111
- arrayMax: (max) => `配列は${max}個以下の要素でなければなりません`,
1112
- arrayLength: (length) => `配列はちょうど${length}個の要素が必要です`,
1113
- arrayEmpty: '配列は空にできません',
1114
- arrayItem: (index, error) => `インデックス${index}の無効な要素: ${error}`,
1115
- // Object field validation
1116
- objectField: (field, error) => `無効なフィールド「${field}」: ${error}`,
1117
- // Union validation messages
1118
- unionNoMatch: (errors) => `どのユニオンメンバーもマッチしませんでした: ${errors.join(', ')}`,
1119
- // Intersection validation messages
1120
- intersectionError: (error) => `交差検証に失敗しました: ${error}`,
1121
- // Literal validation messages
1122
- literalExpected: (expected, received) => `${expected}が期待されましたが、${received}を受け取りました`,
1123
- // Enum validation messages
1124
- enumExpected: (values, received) => `[${values.join(', ')}]のいずれかが期待されましたが、${received}を受け取りました`,
1125
- // Special type validation messages
1126
- expectedUndefined: 'undefinedが期待されました',
1127
- neverType: 'neverタイプは解析できません',
1128
- // New advanced type validation messages
1129
- invalidBigint: '無効なbigint',
1130
- invalidSymbol: '無効なシンボル',
1131
- invalidTuple: '無効なタプル',
1132
- tupleLength: (expected, received) => `タプルはちょうど${expected}個の要素が必要ですが、${received}個を受け取りました`,
1133
- invalidRecord: '無効なレコード',
1134
- invalidSet: '無効なSet',
1135
- invalidMap: '無効なMap',
1136
- // Transformation and refinement messages
1137
- transformError: (error) => `変換に失敗しました: ${error}`,
1138
- refinementError: (error) => `リファインメントに失敗しました: ${error}`,
1139
- customValidationError: (error) => `カスタム検証が失敗しました: ${error}`,
1140
- // Coercion messages
1141
- coercionFailed: (type, value) => `${JSON.stringify(value)}を${type}に変換できません`,
1142
- // Codec messages
1143
- codecDecodeFailed: 'Failed to decode value',
1144
- codecEncodeFailed: 'Failed to encode value',
1145
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
1146
- // Base64/Hex messages
1147
- invalidBase64: 'Invalid base64 string',
1148
- invalidHex: 'Invalid hexadecimal string',
1149
- // Uint8Array messages
1150
- expectedUint8Array: 'Expected Uint8Array',
1151
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
1152
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
1153
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
1154
- // Generic type error messages
1155
- expectedString: 'Expected string',
1156
- stringExpected: (received, expected) => `${expected}が期待されましたが、${received}を受け取りました`,
1157
- stringBoolExpected: (validValues, received) => `無効なブール文字列です。次のいずれかである必要があります: ${validValues}、受け取りました: "${received}"`,
1158
- invalidJson: '無効なJSON',
1159
- stringPatternInvalid: '文字列が必要なパターンと一致しません',
1160
- // File validation messages
1161
- invalidFile: 'Expected a File object',
1162
- fileNotSupported: 'File API not supported in this environment',
1163
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
1164
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
1165
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
1166
- // Function validation messages
1167
- invalidFunction: '関数が期待されました',
1168
- // CIDR validation messages
1169
- stringCidrv4: '無効なIPv4 CIDRブロック',
1170
- stringCidrv6: '無効なIPv6 CIDRブロック',
1171
- // Safe extend validation messages
1172
- safeExtendOverlap: (keys) => `既存のキーを上書きできません: ${keys.join(', ')}。上書きしたい場合はextend()を使用してください。`
1173
- };
1174
-
1175
- var ja$1 = /*#__PURE__*/Object.freeze({
1176
- __proto__: null,
1177
- ja: ja
1178
- });
1179
-
1180
- const ko = {
1181
- // String validation messages
1182
- invalidString: '유효하지 않은 문자열',
1183
- stringMin: (min) => `문자열은 최소 ${min}자여야 합니다`,
1184
- stringMax: (max) => `문자열은 최대 ${max}자여야 합니다`,
1185
- stringLength: (length) => `문자열은 정확히 ${length}자여야 합니다`,
1186
- stringEmail: '유효하지 않은 이메일 주소',
1187
- stringUrl: '유효하지 않은 URL',
1188
- stringUuid: '유효하지 않은 UUID',
1189
- stringRegex: '유효하지 않은 형식',
1190
- stringStartsWith: (prefix) => `문자열은 "${prefix}"로 시작해야 합니다`,
1191
- stringEndsWith: (suffix) => `문자열은 "${suffix}"로 끝나야 합니다`,
1192
- stringIncludes: (substring) => `문자열은 "${substring}"을 포함해야 합니다`,
1193
- stringIp: '유효하지 않은 IP 주소',
1194
- stringIpv4: '유효하지 않은 IPv4 주소',
1195
- stringIpv6: '유효하지 않은 IPv6 주소',
1196
- stringEmpty: '문자열은 비어있을 수 없습니다',
1197
- // Number validation messages
1198
- invalidNumber: '유효하지 않은 숫자',
1199
- numberMin: (min) => `숫자는 최소 ${min}이어야 합니다`,
1200
- numberMax: (max) => `숫자는 최대 ${max}이어야 합니다`,
1201
- numberInt: '숫자는 정수여야 합니다',
1202
- numberPositive: '숫자는 양수여야 합니다',
1203
- numberNegative: '숫자는 음수여야 합니다',
1204
- numberNonnegative: '숫자는 음수일 수 없습니다',
1205
- numberNonpositive: '숫자는 양수일 수 없습니다',
1206
- numberFinite: '숫자는 유한해야 합니다',
1207
- numberSafe: '숫자는 안전한 정수여야 합니다',
1208
- numberMultipleOf: (value) => `숫자는 ${value}의 배수여야 합니다`,
1209
- // Boolean validation messages
1210
- invalidBoolean: '유효하지 않은 불린 값',
1211
- // Date validation messages
1212
- invalidDate: '유효하지 않은 날짜',
1213
- dateMin: (date) => `날짜는 ${date.toISOString()} 이후여야 합니다`,
1214
- dateMax: (date) => `날짜는 ${date.toISOString()} 이전이어야 합니다`,
1215
- // Object validation messages
1216
- invalidObject: '유효하지 않은 객체',
1217
- unexpectedKeys: (keys) => `예상치 못한 키: ${keys.join(', ')}`,
1218
- // Array validation messages
1219
- invalidArray: '유효하지 않은 배열',
1220
- arrayMin: (min) => `배열은 최소 ${min}개의 요소가 있어야 합니다`,
1221
- arrayMax: (max) => `배열은 최대 ${max}개의 요소가 있어야 합니다`,
1222
- arrayLength: (length) => `배열은 정확히 ${length}개의 요소가 있어야 합니다`,
1223
- arrayEmpty: '배열은 비어있을 수 없습니다',
1224
- arrayItem: (index, error) => `인덱스 ${index}의 유효하지 않은 요소: ${error}`,
1225
- // Object field validation
1226
- objectField: (field, error) => `유효하지 않은 필드 "${field}": ${error}`,
1227
- // Union validation messages
1228
- unionNoMatch: (errors) => `어떤 유니온 멤버도 일치하지 않았습니다: ${errors.join(', ')}`,
1229
- // Intersection validation messages
1230
- intersectionError: (error) => `교집합 검증에 실패했습니다: ${error}`,
1231
- // Literal validation messages
1232
- literalExpected: (expected, received) => `${expected}가 예상되었지만 ${received}를 받았습니다`,
1233
- // Enum validation messages
1234
- enumExpected: (values, received) => `[${values.join(', ')}] 중 하나가 예상되었지만 ${received}를 받았습니다`,
1235
- // Special type validation messages
1236
- expectedUndefined: 'undefined가 예상되었습니다',
1237
- neverType: 'never 타입은 파싱할 수 없습니다',
1238
- // New advanced type validation messages
1239
- invalidBigint: '유효하지 않은 bigint',
1240
- invalidSymbol: '유효하지 않은 심볼',
1241
- invalidTuple: '유효하지 않은 튜플',
1242
- tupleLength: (expected, received) => `튜플은 정확히 ${expected}개의 요소가 있어야 하지만 ${received}개를 받았습니다`,
1243
- invalidRecord: '유효하지 않은 레코드',
1244
- invalidSet: '유효하지 않은 Set',
1245
- invalidMap: '유효하지 않은 Map',
1246
- // Transformation and refinement messages
1247
- transformError: (error) => `변환 실패: ${error}`,
1248
- refinementError: (error) => `정제 실패: ${error}`,
1249
- customValidationError: (error) => `사용자 정의 유효성 검사 실패: ${error}`,
1250
- // Coercion messages
1251
- coercionFailed: (type, value) => `${JSON.stringify(value)}를 ${type}로 강제 변환할 수 없습니다`,
1252
- // Codec messages
1253
- codecDecodeFailed: 'Failed to decode value',
1254
- codecEncodeFailed: 'Failed to encode value',
1255
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
1256
- // Base64/Hex messages
1257
- invalidBase64: 'Invalid base64 string',
1258
- invalidHex: 'Invalid hexadecimal string',
1259
- // Uint8Array messages
1260
- expectedUint8Array: 'Expected Uint8Array',
1261
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
1262
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
1263
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
1264
- // Generic type error messages
1265
- expectedString: 'Expected string',
1266
- stringExpected: (received, expected) => `${expected}가 예상되었지만 ${received}를 받았습니다`,
1267
- stringBoolExpected: (validValues, received) => `잘못된 불린 문자열입니다. 다음 중 하나여야 합니다: ${validValues}, 받은 값: "${received}"`,
1268
- invalidJson: '잘못된 JSON',
1269
- stringPatternInvalid: '문자열이 필요한 패턴과 일치하지 않습니다',
1270
- // File validation messages
1271
- invalidFile: 'Expected a File object',
1272
- fileNotSupported: 'File API not supported in this environment',
1273
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
1274
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
1275
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
1276
- // Function validation messages
1277
- invalidFunction: '함수가 예상되었습니다',
1278
- // CIDR validation messages
1279
- stringCidrv4: '유효하지 않은 IPv4 CIDR 블록',
1280
- stringCidrv6: '유효하지 않은 IPv6 CIDR 블록',
1281
- // Safe extend validation messages
1282
- safeExtendOverlap: (keys) => `기존 키를 덮어쓸 수 없습니다: ${keys.join(', ')}. 덮어쓰려면 extend()를 사용하세요.`
1283
- };
1284
-
1285
- var ko$1 = /*#__PURE__*/Object.freeze({
1286
- __proto__: null,
1287
- ko: ko
1288
- });
1289
-
1290
- const zh = {
1291
- // String validation messages
1292
- invalidString: '无效字符串',
1293
- stringMin: (min) => `字符串必须至少${min}个字符`,
1294
- stringMax: (max) => `字符串不能超过${max}个字符`,
1295
- stringLength: (length) => `字符串必须正好${length}个字符`,
1296
- stringEmail: '无效邮箱地址',
1297
- stringUrl: '无效URL',
1298
- stringUuid: '无效UUID',
1299
- stringRegex: '无效格式',
1300
- stringStartsWith: (prefix) => `字符串必须以"${prefix}"开头`,
1301
- stringEndsWith: (suffix) => `字符串必须以"${suffix}"结尾`,
1302
- stringIncludes: (substring) => `字符串必须包含"${substring}"`,
1303
- stringIp: '无效IP地址',
1304
- stringIpv4: '无效IPv4地址',
1305
- stringIpv6: '无效IPv6地址',
1306
- stringEmpty: '字符串不能为空',
1307
- // Number validation messages
1308
- invalidNumber: '无效数字',
1309
- numberMin: (min) => `数字必须至少为${min}`,
1310
- numberMax: (max) => `数字不能大于${max}`,
1311
- numberInt: '数字必须是整数',
1312
- numberPositive: '数字必须是正数',
1313
- numberNegative: '数字必须是负数',
1314
- numberNonnegative: '数字不能是负数',
1315
- numberNonpositive: '数字不能是正数',
1316
- numberFinite: '数字必须是有限的',
1317
- numberSafe: '数字必须是安全整数',
1318
- numberMultipleOf: (value) => `数字必须是${value}的倍数`,
1319
- // Boolean validation messages
1320
- invalidBoolean: '无效布尔值',
1321
- // Date validation messages
1322
- invalidDate: '无效日期',
1323
- dateMin: (date) => `日期必须在${date.toISOString()}之后`,
1324
- dateMax: (date) => `日期必须在${date.toISOString()}之前`,
1325
- // Object validation messages
1326
- invalidObject: '无效对象',
1327
- unexpectedKeys: (keys) => `意外的键: ${keys.join(', ')}`,
1328
- // Array validation messages
1329
- invalidArray: '无效数组',
1330
- arrayMin: (min) => `数组必须至少有${min}个元素`,
1331
- arrayMax: (max) => `数组不能超过${max}个元素`,
1332
- arrayLength: (length) => `数组必须正好有${length}个元素`,
1333
- arrayEmpty: '数组不能为空',
1334
- arrayItem: (index, error) => `索引${index}处的无效元素: ${error}`,
1335
- // Object field validation
1336
- objectField: (field, error) => `无效字段"${field}": ${error}`,
1337
- // Union validation messages
1338
- unionNoMatch: (errors) => `没有匹配的联合成员: ${errors.join(', ')}`,
1339
- // Intersection validation messages
1340
- intersectionError: (error) => `交集验证失败: ${error}`,
1341
- // Literal validation messages
1342
- literalExpected: (expected, received) => `期望${expected},得到${received}`,
1343
- // Enum validation messages
1344
- enumExpected: (values, received) => `期望[${values.join(', ')}]中的一个,得到${received}`,
1345
- // Special type validation messages
1346
- expectedUndefined: '期望undefined',
1347
- neverType: 'never类型无法解析',
1348
- // New advanced type validation messages
1349
- invalidBigint: '无效bigint',
1350
- invalidSymbol: '无效符号',
1351
- invalidTuple: '无效元组',
1352
- tupleLength: (expected, received) => `元组必须正好有${expected}个元素,得到${received}个`,
1353
- invalidRecord: '无效记录',
1354
- invalidSet: '无效Set',
1355
- invalidMap: '无效Map',
1356
- // Transformation and refinement messages
1357
- transformError: (error) => `转换失败: ${error}`,
1358
- refinementError: (error) => `细化失败: ${error}`,
1359
- customValidationError: (error) => `自定义验证失败: ${error}`,
1360
- // Coercion messages
1361
- coercionFailed: (type, value) => `无法将${JSON.stringify(value)}强制转换为${type}`,
1362
- // Codec messages
1363
- codecDecodeFailed: 'Failed to decode value',
1364
- codecEncodeFailed: 'Failed to encode value',
1365
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
1366
- // Base64/Hex messages
1367
- invalidBase64: 'Invalid base64 string',
1368
- invalidHex: 'Invalid hexadecimal string',
1369
- // Uint8Array messages
1370
- expectedUint8Array: 'Expected Uint8Array',
1371
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
1372
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
1373
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
1374
- // Generic type error messages
1375
- expectedString: 'Expected string',
1376
- stringExpected: (received, expected) => `期望${expected},得到${received}`,
1377
- stringBoolExpected: (validValues, received) => `无效的布尔字符串。期望以下之一: ${validValues},得到: "${received}"`,
1378
- invalidJson: '无效的JSON',
1379
- stringPatternInvalid: '字符串与所需模式不匹配',
1380
- // File validation messages
1381
- invalidFile: 'Expected a File object',
1382
- fileNotSupported: 'File API not supported in this environment',
1383
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
1384
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
1385
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
1386
- // Function validation messages
1387
- invalidFunction: '期望一个函数',
1388
- // CIDR validation messages
1389
- stringCidrv4: '无效的IPv4 CIDR块',
1390
- stringCidrv6: '无效的IPv6 CIDR块',
1391
- // Safe extend validation messages
1392
- safeExtendOverlap: (keys) => `无法覆盖现有键: ${keys.join(', ')}。如果要覆盖请使用extend()。`
1393
- };
1394
-
1395
- var zh$1 = /*#__PURE__*/Object.freeze({
1396
- __proto__: null,
1397
- zh: zh
1398
- });
1399
-
1400
- const ar = {
1401
- // String validation messages
1402
- invalidString: 'نص غير صحيح',
1403
- stringMin: (min) => `يجب أن يحتوي النص على ${min} حرف على الأقل`,
1404
- stringMax: (max) => `لا يمكن أن يحتوي النص على أكثر من ${max} حرف`,
1405
- stringLength: (length) => `يجب أن يحتوي النص على ${length} حرف بالضبط`,
1406
- stringEmail: 'عنوان بريد إلكتروني غير صحيح',
1407
- stringUrl: 'رابط غير صحيح',
1408
- stringUuid: 'UUID غير صحيح',
1409
- stringRegex: 'تنسيق غير صحيح',
1410
- stringStartsWith: (prefix) => `يجب أن يبدأ النص بـ "${prefix}"`,
1411
- stringEndsWith: (suffix) => `يجب أن ينتهي النص بـ "${suffix}"`,
1412
- stringIncludes: (substring) => `يجب أن يحتوي النص على "${substring}"`,
1413
- stringIp: 'عنوان IP غير صحيح',
1414
- stringIpv4: 'عنوان IPv4 غير صحيح',
1415
- stringIpv6: 'عنوان IPv6 غير صحيح',
1416
- stringEmpty: 'لا يمكن أن يكون النص فارغاً',
1417
- // Number validation messages
1418
- invalidNumber: 'رقم غير صحيح',
1419
- numberMin: (min) => `يجب أن يكون الرقم ${min} على الأقل`,
1420
- numberMax: (max) => `لا يمكن أن يكون الرقم أكبر من ${max}`,
1421
- numberInt: 'يجب أن يكون الرقم صحيحاً',
1422
- numberPositive: 'يجب أن يكون الرقم موجباً',
1423
- numberNegative: 'يجب أن يكون الرقم سالباً',
1424
- numberNonnegative: 'لا يمكن أن يكون الرقم سالباً',
1425
- numberNonpositive: 'لا يمكن أن يكون الرقم موجباً',
1426
- numberFinite: 'يجب أن يكون الرقم محدوداً',
1427
- numberSafe: 'يجب أن يكون الرقم صحيحاً آمناً',
1428
- numberMultipleOf: (value) => `يجب أن يكون الرقم مضاعفاً لـ ${value}`,
1429
- // Boolean validation messages
1430
- invalidBoolean: 'قيمة منطقية غير صحيحة',
1431
- // Date validation messages
1432
- invalidDate: 'تاريخ غير صحيح',
1433
- dateMin: (date) => `يجب أن يكون التاريخ بعد ${date.toISOString()}`,
1434
- dateMax: (date) => `يجب أن يكون التاريخ قبل ${date.toISOString()}`,
1435
- // Object validation messages
1436
- invalidObject: 'كائن غير صحيح',
1437
- unexpectedKeys: (keys) => `مفاتيح غير متوقعة: ${keys.join(', ')}`,
1438
- // Array validation messages
1439
- invalidArray: 'مصفوفة غير صحيحة',
1440
- arrayMin: (min) => `يجب أن تحتوي المصفوفة على ${min} عنصر على الأقل`,
1441
- arrayMax: (max) => `لا يمكن أن تحتوي المصفوفة على أكثر من ${max} عنصر`,
1442
- arrayLength: (length) => `يجب أن تحتوي المصفوفة على ${length} عنصر بالضبط`,
1443
- arrayEmpty: 'لا يمكن أن تكون المصفوفة فارغة',
1444
- arrayItem: (index, error) => `عنصر غير صحيح في الفهرس ${index}: ${error}`,
1445
- // Object field validation
1446
- objectField: (field, error) => `حقل غير صحيح "${field}": ${error}`,
1447
- // Union validation messages
1448
- unionNoMatch: (errors) => `لا يوجد عضو اتحاد مطابق: ${errors.join(', ')}`,
1449
- // Intersection validation messages
1450
- intersectionError: (error) => `فشل في التحقق من التقاطع: ${error}`,
1451
- // Literal validation messages
1452
- literalExpected: (expected, received) => `متوقع ${expected}، تم استلام ${received}`,
1453
- // Enum validation messages
1454
- enumExpected: (values, received) => `متوقع واحد من [${values.join(', ')}]، تم استلام ${received}`,
1455
- // Special type validation messages
1456
- expectedUndefined: 'متوقع undefined',
1457
- neverType: 'لا يمكن تحليل نوع never',
1458
- // New advanced type validation messages
1459
- invalidBigint: 'bigint غير صحيح',
1460
- invalidSymbol: 'رمز غير صحيح',
1461
- invalidTuple: 'صف غير صحيح',
1462
- tupleLength: (expected, received) => `يجب أن يحتوي الصف على ${expected} عنصر بالضبط، تم استلام ${received}`,
1463
- invalidRecord: 'سجل غير صحيح',
1464
- invalidSet: 'Set غير صحيح',
1465
- invalidMap: 'Map غير صحيح',
1466
- // Transformation and refinement messages
1467
- transformError: (error) => `فشل التحويل: ${error}`,
1468
- refinementError: (error) => `فشل التنقيح: ${error}`,
1469
- customValidationError: (error) => `فشل في التحقق المخصص: ${error}`,
1470
- // Coercion messages
1471
- coercionFailed: (type, value) => `لا يمكن إكراه ${JSON.stringify(value)} إلى ${type}`,
1472
- // Codec messages
1473
- codecDecodeFailed: 'Failed to decode value',
1474
- codecEncodeFailed: 'Failed to encode value',
1475
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
1476
- // Base64/Hex messages
1477
- invalidBase64: 'Invalid base64 string',
1478
- invalidHex: 'Invalid hexadecimal string',
1479
- // Uint8Array messages
1480
- expectedUint8Array: 'Expected Uint8Array',
1481
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
1482
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
1483
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
1484
- // Generic type error messages
1485
- expectedString: 'Expected string',
1486
- stringExpected: (received, expected) => `متوقع ${expected}، تم استلام ${received}`,
1487
- stringBoolExpected: (validValues, received) => `سلسلة منطقية غير صحيحة. متوقع واحد من: ${validValues}، تم استلام: "${received}"`,
1488
- invalidJson: 'JSON غير صالح',
1489
- stringPatternInvalid: 'السلسلة لا تطابق النمط المطلوب',
1490
- // File validation messages
1491
- invalidFile: 'Expected a File object',
1492
- fileNotSupported: 'File API not supported in this environment',
1493
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
1494
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
1495
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
1496
- // Function validation messages
1497
- invalidFunction: 'دالة متوقعة',
1498
- // CIDR validation messages
1499
- stringCidrv4: 'كتلة CIDR IPv4 غير صالحة',
1500
- stringCidrv6: 'كتلة CIDR IPv6 غير صالحة',
1501
- // Safe extend validation messages
1502
- safeExtendOverlap: (keys) => `لا يمكن استبدال المفاتيح الموجودة: ${keys.join(', ')}. استخدم extend() للاستبدال.`
1503
- };
1504
-
1505
- var ar$1 = /*#__PURE__*/Object.freeze({
1506
- __proto__: null,
1507
- ar: ar
1508
- });
1509
-
1510
- const hi = {
1511
- // String validation messages
1512
- invalidString: 'अमान्य स्ट्रिंग',
1513
- stringMin: (min) => `स्ट्रिंग में कम से कम ${min} अक्षर होने चाहिए`,
1514
- stringMax: (max) => `स्ट्रिंग में ${max} से अधिक अक्षर नहीं हो सकते`,
1515
- stringLength: (length) => `स्ट्रिंग में ठीक ${length} अक्षर होने चाहिए`,
1516
- stringEmail: 'अमान्य ईमेल पता',
1517
- stringUrl: 'अमान्य URL',
1518
- stringUuid: 'अमान्य UUID',
1519
- stringRegex: 'अमान्य प्रारूप',
1520
- stringStartsWith: (prefix) => `स्ट्रिंग "${prefix}" से शुरू होनी चाहिए`,
1521
- stringEndsWith: (suffix) => `स्ट्रिंग "${suffix}" से समाप्त होनी चाहिए`,
1522
- stringIncludes: (substring) => `स्ट्रिंग में "${substring}" होना चाहिए`,
1523
- stringIp: 'अमान्य IP पता',
1524
- stringIpv4: 'अमान्य IPv4 पता',
1525
- stringIpv6: 'अमान्य IPv6 पता',
1526
- stringEmpty: 'स्ट्रिंग खाली नहीं हो सकती',
1527
- // Number validation messages
1528
- invalidNumber: 'अमान्य संख्या',
1529
- numberMin: (min) => `संख्या कम से कम ${min} होनी चाहिए`,
1530
- numberMax: (max) => `संख्या ${max} से अधिक नहीं हो सकती`,
1531
- numberInt: 'संख्या पूर्णांक होनी चाहिए',
1532
- numberPositive: 'संख्या सकारात्मक होनी चाहिए',
1533
- numberNegative: 'संख्या नकारात्मक होनी चाहिए',
1534
- numberNonnegative: 'संख्या नकारात्मक नहीं हो सकती',
1535
- numberNonpositive: 'संख्या सकारात्मक नहीं हो सकती',
1536
- numberFinite: 'संख्या परिमित होनी चाहिए',
1537
- numberSafe: 'संख्या सुरक्षित पूर्णांक होनी चाहिए',
1538
- numberMultipleOf: (value) => `संख्या ${value} का गुणज होनी चाहिए`,
1539
- // Boolean validation messages
1540
- invalidBoolean: 'अमान्य बूलियन मान',
1541
- // Date validation messages
1542
- invalidDate: 'अमान्य तिथि',
1543
- dateMin: (date) => `तिथि ${date.toISOString()} के बाद होनी चाहिए`,
1544
- dateMax: (date) => `तिथि ${date.toISOString()} से पहले होनी चाहिए`,
1545
- // Object validation messages
1546
- invalidObject: 'अमान्य ऑब्जेक्ट',
1547
- unexpectedKeys: (keys) => `अनपेक्षित कुंजियां: ${keys.join(', ')}`,
1548
- // Array validation messages
1549
- invalidArray: 'अमान्य सरणी',
1550
- arrayMin: (min) => `सरणी में कम से कम ${min} तत्व होने चाहिए`,
1551
- arrayMax: (max) => `सरणी में ${max} से अधिक तत्व नहीं हो सकते`,
1552
- arrayLength: (length) => `सरणी में ठीक ${length} तत्व होने चाहिए`,
1553
- arrayEmpty: 'सरणी खाली नहीं हो सकती',
1554
- arrayItem: (index, error) => `सूचकांक ${index} पर अमान्य तत्व: ${error}`,
1555
- // Object field validation
1556
- objectField: (field, error) => `अमान्य फ़ील्ड "${field}": ${error}`,
1557
- // Union validation messages
1558
- unionNoMatch: (errors) => `कोई यूनियन सदस्य मेल नहीं खाया: ${errors.join(', ')}`,
1559
- // Intersection validation messages
1560
- intersectionError: (error) => `प्रतिच्छेदन सत्यापन विफल: ${error}`,
1561
- // Literal validation messages
1562
- literalExpected: (expected, received) => `अपेक्षित ${expected}, प्राप्त ${received}`,
1563
- // Enum validation messages
1564
- enumExpected: (values, received) => `[${values.join(', ')}] में से एक अपेक्षित, प्राप्त ${received}`,
1565
- // Special type validation messages
1566
- expectedUndefined: 'undefined अपेक्षित',
1567
- neverType: 'never प्रकार का विश्लेषण नहीं किया जा सकता',
1568
- // New advanced type validation messages
1569
- invalidBigint: 'अमान्य bigint',
1570
- invalidSymbol: 'अमान्य प्रतीक',
1571
- invalidTuple: 'अमान्य ट्यूपल',
1572
- tupleLength: (expected, received) => `ट्यूपल में ठीक ${expected} तत्व होने चाहिए, ${received} प्राप्त हुए`,
1573
- invalidRecord: 'अमान्य रिकॉर्ड',
1574
- invalidSet: 'अमान्य Set',
1575
- invalidMap: 'अमान्य Map',
1576
- // Transformation and refinement messages
1577
- transformError: (error) => `रूपांतरण विफल: ${error}`,
1578
- refinementError: (error) => `शुद्धीकरण विफल: ${error}`,
1579
- customValidationError: (error) => `कस्टम सत्यापन विफल: ${error}`,
1580
- // Coercion messages
1581
- coercionFailed: (type, value) => `${JSON.stringify(value)} को ${type} में परिवर्तित नहीं किया जा सकता`,
1582
- // Codec messages
1583
- codecDecodeFailed: 'Failed to decode value',
1584
- codecEncodeFailed: 'Failed to encode value',
1585
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
1586
- // Base64/Hex messages
1587
- invalidBase64: 'Invalid base64 string',
1588
- invalidHex: 'Invalid hexadecimal string',
1589
- // Uint8Array messages
1590
- expectedUint8Array: 'Expected Uint8Array',
1591
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
1592
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
1593
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
1594
- // Generic type error messages
1595
- expectedString: 'Expected string',
1596
- stringExpected: (received, expected) => `अपेक्षित ${expected}, प्राप्त ${received}`,
1597
- stringBoolExpected: (validValues, received) => `अमान्य बूलियन स्ट्रिंग। निम्नलिखित में से एक अपेक्षित: ${validValues}, प्राप्त: "${received}"`,
1598
- invalidJson: 'अमान्य JSON',
1599
- stringPatternInvalid: 'स्ट्रिंग आवश्यक पैटर्न से मेल नहीं खाती',
1600
- // File validation messages
1601
- invalidFile: 'Expected a File object',
1602
- fileNotSupported: 'File API not supported in this environment',
1603
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
1604
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
1605
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
1606
- // Function validation messages
1607
- invalidFunction: 'एक फ़ंक्शन अपेक्षित है',
1608
- // CIDR validation messages
1609
- stringCidrv4: 'अमान्य IPv4 CIDR ब्लॉक',
1610
- stringCidrv6: 'अमान्य IPv6 CIDR ब्लॉक',
1611
- // Safe extend validation messages
1612
- safeExtendOverlap: (keys) => `मौजूदा कुंजियों को ओवरराइड नहीं कर सकते: ${keys.join(', ')}। ओवरराइड करने के लिए extend() का उपयोग करें।`
1613
- };
1614
-
1615
- var hi$1 = /*#__PURE__*/Object.freeze({
1616
- __proto__: null,
1617
- hi: hi
1618
- });
1619
-
1620
- const nl = {
1621
- // String validation messages
1622
- invalidString: 'Ongeldige string',
1623
- stringMin: (min) => `String moet ten minste ${min} tekens lang zijn`,
1624
- stringMax: (max) => `String mag niet meer dan ${max} tekens lang zijn`,
1625
- stringLength: (length) => `String moet precies ${length} tekens lang zijn`,
1626
- stringEmail: 'Ongeldig e-mailadres',
1627
- stringUrl: 'Ongeldige URL',
1628
- stringUuid: 'Ongeldige UUID',
1629
- stringRegex: 'Ongeldig formaat',
1630
- stringStartsWith: (prefix) => `String moet beginnen met "${prefix}"`,
1631
- stringEndsWith: (suffix) => `String moet eindigen met "${suffix}"`,
1632
- stringIncludes: (substring) => `String moet "${substring}" bevatten`,
1633
- stringIp: 'Ongeldig IP-adres',
1634
- stringIpv4: 'Ongeldig IPv4-adres',
1635
- stringIpv6: 'Ongeldig IPv6-adres',
1636
- stringEmpty: 'String mag niet leeg zijn',
1637
- // Number validation messages
1638
- invalidNumber: 'Ongeldig getal',
1639
- numberMin: (min) => `Getal moet ten minste ${min} zijn`,
1640
- numberMax: (max) => `Getal mag niet meer dan ${max} zijn`,
1641
- numberInt: 'Getal moet een geheel getal zijn',
1642
- numberPositive: 'Getal moet positief zijn',
1643
- numberNegative: 'Getal moet negatief zijn',
1644
- numberNonnegative: 'Getal mag niet negatief zijn',
1645
- numberNonpositive: 'Getal mag niet positief zijn',
1646
- numberFinite: 'Getal moet eindig zijn',
1647
- numberSafe: 'Getal moet een veilig geheel getal zijn',
1648
- numberMultipleOf: (value) => `Getal moet een veelvoud van ${value} zijn`,
1649
- // Boolean validation messages
1650
- invalidBoolean: 'Ongeldige boolean waarde',
1651
- // Date validation messages
1652
- invalidDate: 'Ongeldige datum',
1653
- dateMin: (date) => `Datum moet na ${date.toISOString()} zijn`,
1654
- dateMax: (date) => `Datum moet voor ${date.toISOString()} zijn`,
1655
- // Object validation messages
1656
- invalidObject: 'Ongeldig object',
1657
- unexpectedKeys: (keys) => `Onverwachte sleutels: ${keys.join(', ')}`,
1658
- // Array validation messages
1659
- invalidArray: 'Ongeldige array',
1660
- arrayMin: (min) => `Array moet ten minste ${min} elementen hebben`,
1661
- arrayMax: (max) => `Array mag niet meer dan ${max} elementen hebben`,
1662
- arrayLength: (length) => `Array moet precies ${length} elementen hebben`,
1663
- arrayEmpty: 'Array mag niet leeg zijn',
1664
- arrayItem: (index, error) => `Ongeldig element op index ${index}: ${error}`,
1665
- // Object field validation
1666
- objectField: (field, error) => `Ongeldig veld "${field}": ${error}`,
1667
- // Union validation messages
1668
- unionNoMatch: (errors) => `Geen union lid kwam overeen: ${errors.join(', ')}`,
1669
- // Intersection validation messages
1670
- intersectionError: (error) => `Intersection validatie mislukt: ${error}`,
1671
- // Literal validation messages
1672
- literalExpected: (expected, received) => `Verwacht ${expected}, ontvangen ${received}`,
1673
- // Enum validation messages
1674
- enumExpected: (values, received) => `Verwacht een van [${values.join(', ')}], ontvangen ${received}`,
1675
- // Special type validation messages
1676
- expectedUndefined: 'Verwacht undefined',
1677
- neverType: 'Never type kan niet worden geparseerd',
1678
- // New advanced type validation messages
1679
- invalidBigint: 'Ongeldige bigint',
1680
- invalidSymbol: 'Ongeldig symbool',
1681
- invalidTuple: 'Ongeldige tuple',
1682
- tupleLength: (expected, received) => `Tuple moet precies ${expected} elementen hebben, ontvangen ${received}`,
1683
- invalidRecord: 'Ongeldig record',
1684
- invalidSet: 'Ongeldige set',
1685
- invalidMap: 'Ongeldige map',
1686
- // Transformation and refinement messages
1687
- transformError: (error) => `Transformatie mislukt: ${error}`,
1688
- refinementError: (error) => `Verfijning mislukt: ${error}`,
1689
- customValidationError: (error) => `Aangepaste validatie mislukt: ${error}`,
1690
- // Coercion messages
1691
- coercionFailed: (type, value) => `Kan ${JSON.stringify(value)} niet omzetten naar ${type}`,
1692
- // Codec messages
1693
- codecDecodeFailed: 'Failed to decode value',
1694
- codecEncodeFailed: 'Failed to encode value',
1695
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
1696
- // Base64/Hex messages
1697
- invalidBase64: 'Invalid base64 string',
1698
- invalidHex: 'Invalid hexadecimal string',
1699
- // Uint8Array messages
1700
- expectedUint8Array: 'Expected Uint8Array',
1701
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
1702
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
1703
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
1704
- // Generic type error messages
1705
- expectedString: 'Expected string',
1706
- stringExpected: (received, expected) => `Verwacht ${expected}, ontvangen ${received}`,
1707
- stringBoolExpected: (validValues, received) => `Ongeldige boolean string. Een van de volgende verwacht: ${validValues}, ontvangen: "${received}"`,
1708
- invalidJson: 'Ongeldige JSON',
1709
- stringPatternInvalid: 'Tekenreeks komt niet overeen met het vereiste patroon',
1710
- // File validation messages
1711
- invalidFile: 'Expected a File object',
1712
- fileNotSupported: 'File API not supported in this environment',
1713
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
1714
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
1715
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
1716
- // Function validation messages
1717
- invalidFunction: 'Een functie verwacht',
1718
- // CIDR validation messages
1719
- stringCidrv4: 'Ongeldig IPv4 CIDR-blok',
1720
- stringCidrv6: 'Ongeldig IPv6 CIDR-blok',
1721
- // Safe extend validation messages
1722
- safeExtendOverlap: (keys) => `Kan bestaande sleutels niet overschrijven: ${keys.join(', ')}. Gebruik extend() als je wilt overschrijven.`
1723
- };
1724
-
1725
- var nl$1 = /*#__PURE__*/Object.freeze({
1726
- __proto__: null,
1727
- nl: nl
1728
- });
1729
-
1730
- const pl = {
1731
- // String validation messages
1732
- invalidString: 'Nieprawidłowy ciąg znaków',
1733
- stringMin: (min) => `Ciąg znaków musi mieć co najmniej ${min} znaków`,
1734
- stringMax: (max) => `Ciąg znaków nie może mieć więcej niż ${max} znaków`,
1735
- stringLength: (length) => `Ciąg znaków musi mieć dokładnie ${length} znaków`,
1736
- stringEmail: 'Nieprawidłowy adres email',
1737
- stringUrl: 'Nieprawidłowy URL',
1738
- stringUuid: 'Nieprawidłowy UUID',
1739
- stringRegex: 'Nieprawidłowy format',
1740
- stringStartsWith: (prefix) => `Ciąg znaków musi zaczynać się od "${prefix}"`,
1741
- stringEndsWith: (suffix) => `Ciąg znaków musi kończyć się na "${suffix}"`,
1742
- stringIncludes: (substring) => `Ciąg znaków musi zawierać "${substring}"`,
1743
- stringIp: 'Nieprawidłowy adres IP',
1744
- stringIpv4: 'Nieprawidłowy adres IPv4',
1745
- stringIpv6: 'Nieprawidłowy adres IPv6',
1746
- stringEmpty: 'Ciąg znaków nie może być pusty',
1747
- // Number validation messages
1748
- invalidNumber: 'Nieprawidłowa liczba',
1749
- numberMin: (min) => `Liczba musi być co najmniej ${min}`,
1750
- numberMax: (max) => `Liczba nie może być większa niż ${max}`,
1751
- numberInt: 'Liczba musi być liczbą całkowitą',
1752
- numberPositive: 'Liczba musi być dodatnia',
1753
- numberNegative: 'Liczba musi być ujemna',
1754
- numberNonnegative: 'Liczba nie może być ujemna',
1755
- numberNonpositive: 'Liczba nie może być dodatnia',
1756
- numberFinite: 'Liczba musi być skończona',
1757
- numberSafe: 'Liczba musi być bezpieczną liczbą całkowitą',
1758
- numberMultipleOf: (value) => `Liczba musi być wielokrotnością ${value}`,
1759
- // Boolean validation messages
1760
- invalidBoolean: 'Nieprawidłowa wartość boolean',
1761
- // Date validation messages
1762
- invalidDate: 'Nieprawidłowa data',
1763
- dateMin: (date) => `Data musi być po ${date.toISOString()}`,
1764
- dateMax: (date) => `Data musi być przed ${date.toISOString()}`,
1765
- // Object validation messages
1766
- invalidObject: 'Nieprawidłowy obiekt',
1767
- unexpectedKeys: (keys) => `Nieoczekiwane klucze: ${keys.join(', ')}`,
1768
- // Array validation messages
1769
- invalidArray: 'Nieprawidłowa tablica',
1770
- arrayMin: (min) => `Tablica musi mieć co najmniej ${min} elementów`,
1771
- arrayMax: (max) => `Tablica nie może mieć więcej niż ${max} elementów`,
1772
- arrayLength: (length) => `Tablica musi mieć dokładnie ${length} elementów`,
1773
- arrayEmpty: 'Tablica nie może być pusta',
1774
- arrayItem: (index, error) => `Nieprawidłowy element na indeksie ${index}: ${error}`,
1775
- // Object field validation
1776
- objectField: (field, error) => `Nieprawidłowe pole "${field}": ${error}`,
1777
- // Union validation messages
1778
- unionNoMatch: (errors) => `Żaden członek unii nie pasował: ${errors.join(', ')}`,
1779
- // Intersection validation messages
1780
- intersectionError: (error) => `Walidacja przecięcia nie powiodła się: ${error}`,
1781
- // Literal validation messages
1782
- literalExpected: (expected, received) => `Oczekiwano ${expected}, otrzymano ${received}`,
1783
- // Enum validation messages
1784
- enumExpected: (values, received) => `Oczekiwano jednego z [${values.join(', ')}], otrzymano ${received}`,
1785
- // Special type validation messages
1786
- expectedUndefined: 'Oczekiwano undefined',
1787
- neverType: 'Typ never nie może być przeanalizowany',
1788
- // New advanced type validation messages
1789
- invalidBigint: 'Nieprawidłowy bigint',
1790
- invalidSymbol: 'Nieprawidłowy symbol',
1791
- invalidTuple: 'Nieprawidłowa krotka',
1792
- tupleLength: (expected, received) => `Krotka musi mieć dokładnie ${expected} elementów, otrzymano ${received}`,
1793
- invalidRecord: 'Nieprawidłowy rekord',
1794
- invalidSet: 'Nieprawidłowy Set',
1795
- invalidMap: 'Nieprawidłowa Map',
1796
- // Transformation and refinement messages
1797
- transformError: (error) => `Transformacja nie powiodła się: ${error}`,
1798
- refinementError: (error) => `Rafinacja nie powiodła się: ${error}`,
1799
- customValidationError: (error) => `Niestandardowa walidacja nie powiodła się: ${error}`,
1800
- // Coercion messages
1801
- coercionFailed: (type, value) => `Nie można przekształcić ${JSON.stringify(value)} na ${type}`,
1802
- // Codec messages
1803
- codecDecodeFailed: 'Failed to decode value',
1804
- codecEncodeFailed: 'Failed to encode value',
1805
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
1806
- // Base64/Hex messages
1807
- invalidBase64: 'Invalid base64 string',
1808
- invalidHex: 'Invalid hexadecimal string',
1809
- // Uint8Array messages
1810
- expectedUint8Array: 'Expected Uint8Array',
1811
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
1812
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
1813
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
1814
- // Generic type error messages
1815
- expectedString: 'Expected string',
1816
- stringExpected: (received, expected) => `Oczekiwano ${expected}, otrzymano ${received}`,
1817
- stringBoolExpected: (validValues, received) => `Nieprawidłowy ciąg znaków boolean. Oczekiwano jednego z: ${validValues}, otrzymano: "${received}"`,
1818
- invalidJson: 'Nieprawidłowy JSON',
1819
- stringPatternInvalid: 'Ciąg znaków nie pasuje do wymaganego wzorca',
1820
- // File validation messages
1821
- invalidFile: 'Expected a File object',
1822
- fileNotSupported: 'File API not supported in this environment',
1823
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
1824
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
1825
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
1826
- // Function validation messages
1827
- invalidFunction: 'Oczekiwano funkcji',
1828
- // CIDR validation messages
1829
- stringCidrv4: 'Nieprawidłowy blok CIDR IPv4',
1830
- stringCidrv6: 'Nieprawidłowy blok CIDR IPv6',
1831
- // Safe extend validation messages
1832
- safeExtendOverlap: (keys) => `Nie można nadpisać istniejących kluczy: ${keys.join(', ')}. Użyj extend() aby nadpisać.`
1833
- };
1834
-
1835
- var pl$1 = /*#__PURE__*/Object.freeze({
1836
- __proto__: null,
1837
- pl: pl
1838
- });
1839
-
1840
- const da = {
1841
- // String validation messages
1842
- invalidString: 'Ugyldig streng',
1843
- stringMin: (min) => `Streng skal være mindst ${min} tegn lang`,
1844
- stringMax: (max) => `Streng må højst være ${max} tegn lang`,
1845
- stringLength: (length) => `Streng skal være præcis ${length} tegn lang`,
1846
- stringEmail: 'Ugyldig e-mailadresse',
1847
- stringUrl: 'Ugyldig URL',
1848
- stringUuid: 'Ugyldig UUID',
1849
- stringRegex: 'Ugyldigt format',
1850
- stringStartsWith: (prefix) => `Streng skal starte med "${prefix}"`,
1851
- stringEndsWith: (suffix) => `Streng skal slutte med "${suffix}"`,
1852
- stringIncludes: (substring) => `Streng skal indeholde "${substring}"`,
1853
- stringIp: 'Ugyldig IP-adresse',
1854
- stringIpv4: 'Ugyldig IPv4-adresse',
1855
- stringIpv6: 'Ugyldig IPv6-adresse',
1856
- stringEmpty: 'Streng må ikke være tom',
1857
- // Number validation messages
1858
- invalidNumber: 'Ugyldigt tal',
1859
- numberMin: (min) => `Tal skal være mindst ${min}`,
1860
- numberMax: (max) => `Tal må højst være ${max}`,
1861
- numberInt: 'Tal skal være et heltal',
1862
- numberPositive: 'Tal skal være positivt',
1863
- numberNegative: 'Tal skal være negativt',
1864
- numberNonnegative: 'Tal må ikke være negativt',
1865
- numberNonpositive: 'Tal må ikke være positivt',
1866
- numberFinite: 'Tal skal være endeligt',
1867
- numberSafe: 'Tal skal være et sikkert heltal',
1868
- numberMultipleOf: (value) => `Tal skal være et multiplum af ${value}`,
1869
- // Boolean validation messages
1870
- invalidBoolean: 'Ugyldig boolean-værdi',
1871
- // Date validation messages
1872
- invalidDate: 'Ugyldig dato',
1873
- dateMin: (date) => `Dato skal være efter ${date.toISOString()}`,
1874
- dateMax: (date) => `Dato skal være før ${date.toISOString()}`,
1875
- // Object validation messages
1876
- invalidObject: 'Ugyldigt objekt',
1877
- unexpectedKeys: (keys) => `Uventede nøgler: ${keys.join(', ')}`,
1878
- // Array validation messages
1879
- invalidArray: 'Ugyldigt array',
1880
- arrayMin: (min) => `Array skal have mindst ${min} elementer`,
1881
- arrayMax: (max) => `Array må højst have ${max} elementer`,
1882
- arrayLength: (length) => `Array skal have præcis ${length} elementer`,
1883
- arrayEmpty: 'Array må ikke være tomt',
1884
- arrayItem: (index, error) => `Ugyldigt element ved indeks ${index}: ${error}`,
1885
- // Object field validation
1886
- objectField: (field, error) => `Ugyldigt felt "${field}": ${error}`,
1887
- // Union validation messages
1888
- unionNoMatch: (errors) => `Intet union-medlem matchede: ${errors.join(', ')}`,
1889
- // Intersection validation messages
1890
- intersectionError: (error) => `Intersection validering fejlede: ${error}`,
1891
- // Literal validation messages
1892
- literalExpected: (expected, received) => `Forventede ${expected}, fik ${received}`,
1893
- // Enum validation messages
1894
- enumExpected: (values, received) => `Forventede en af [${values.join(', ')}], fik ${received}`,
1895
- // Special type validation messages
1896
- expectedUndefined: 'Forventede undefined',
1897
- neverType: 'Never-type kan ikke parses',
1898
- // New advanced type validation messages
1899
- invalidBigint: 'Ugyldig bigint',
1900
- invalidSymbol: 'Ugyldigt symbol',
1901
- invalidTuple: 'Ugyldig tupel',
1902
- tupleLength: (expected, received) => `Tupel skal have præcis ${expected} elementer, fik ${received}`,
1903
- invalidRecord: 'Ugyldig post',
1904
- invalidSet: 'Ugyldigt Set',
1905
- invalidMap: 'Ugyldig Map',
1906
- // Transformation and refinement messages
1907
- transformError: (error) => `Transformation fejlede: ${error}`,
1908
- refinementError: (error) => `Forfinelse fejlede: ${error}`,
1909
- customValidationError: (error) => `Brugerdefineret validering mislykkedes: ${error}`,
1910
- // Coercion messages
1911
- coercionFailed: (type, value) => `Kan ikke konvertere ${JSON.stringify(value)} til ${type}`,
1912
- // Codec messages
1913
- codecDecodeFailed: 'Failed to decode value',
1914
- codecEncodeFailed: 'Failed to encode value',
1915
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
1916
- // Base64/Hex messages
1917
- invalidBase64: 'Invalid base64 string',
1918
- invalidHex: 'Invalid hexadecimal string',
1919
- // Uint8Array messages
1920
- expectedUint8Array: 'Expected Uint8Array',
1921
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
1922
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
1923
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
1924
- // Generic type error messages
1925
- expectedString: 'Expected string',
1926
- stringExpected: (received, expected) => `Forventede ${expected}, fik ${received}`,
1927
- stringBoolExpected: (validValues, received) => `Ugyldig boolean streng. En af følgende forventet: ${validValues}, fik: "${received}"`,
1928
- invalidJson: 'Ugyldig JSON',
1929
- stringPatternInvalid: 'Streng matcher ikke det krævede mønster',
1930
- // File validation messages
1931
- invalidFile: 'Expected a File object',
1932
- fileNotSupported: 'File API not supported in this environment',
1933
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
1934
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
1935
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
1936
- // Function validation messages
1937
- invalidFunction: 'En funktion forventes',
1938
- // CIDR validation messages
1939
- stringCidrv4: 'Ugyldig IPv4 CIDR-blok',
1940
- stringCidrv6: 'Ugyldig IPv6 CIDR-blok',
1941
- // Safe extend validation messages
1942
- safeExtendOverlap: (keys) => `Kan ikke overskrive eksisterende nøgler: ${keys.join(', ')}. Brug extend() for at overskrive.`
1943
- };
1944
-
1945
- var da$1 = /*#__PURE__*/Object.freeze({
1946
- __proto__: null,
1947
- da: da
1948
- });
1949
-
1950
- const sv = {
1951
- // String validation messages
1952
- invalidString: 'Ogiltig sträng',
1953
- stringMin: (min) => `Sträng måste vara minst ${min} tecken lång`,
1954
- stringMax: (max) => `Sträng får vara högst ${max} tecken lång`,
1955
- stringLength: (length) => `Sträng måste vara exakt ${length} tecken lång`,
1956
- stringEmail: 'Ogiltig e-postadress',
1957
- stringUrl: 'Ogiltig URL',
1958
- stringUuid: 'Ogiltig UUID',
1959
- stringRegex: 'Ogiltigt format',
1960
- stringStartsWith: (prefix) => `Sträng måste börja med "${prefix}"`,
1961
- stringEndsWith: (suffix) => `Sträng måste sluta med "${suffix}"`,
1962
- stringIncludes: (substring) => `Sträng måste innehålla "${substring}"`,
1963
- stringIp: 'Ogiltig IP-adress',
1964
- stringIpv4: 'Ogiltig IPv4-adress',
1965
- stringIpv6: 'Ogiltig IPv6-adress',
1966
- stringEmpty: 'Sträng får inte vara tom',
1967
- // Number validation messages
1968
- invalidNumber: 'Ogiltigt nummer',
1969
- numberMin: (min) => `Nummer måste vara minst ${min}`,
1970
- numberMax: (max) => `Nummer får vara högst ${max}`,
1971
- numberInt: 'Nummer måste vara ett heltal',
1972
- numberPositive: 'Nummer måste vara positivt',
1973
- numberNegative: 'Nummer måste vara negativt',
1974
- numberNonnegative: 'Nummer får inte vara negativt',
1975
- numberNonpositive: 'Nummer får inte vara positivt',
1976
- numberFinite: 'Nummer måste vara ändligt',
1977
- numberSafe: 'Nummer måste vara ett säkert heltal',
1978
- numberMultipleOf: (value) => `Nummer måste vara en multipel av ${value}`,
1979
- // Boolean validation messages
1980
- invalidBoolean: 'Ogiltigt boolean-värde',
1981
- // Date validation messages
1982
- invalidDate: 'Ogiltigt datum',
1983
- dateMin: (date) => `Datum måste vara efter ${date.toISOString()}`,
1984
- dateMax: (date) => `Datum måste vara före ${date.toISOString()}`,
1985
- // Object validation messages
1986
- invalidObject: 'Ogiltigt objekt',
1987
- unexpectedKeys: (keys) => `Oväntade nycklar: ${keys.join(', ')}`,
1988
- // Array validation messages
1989
- invalidArray: 'Ogiltig array',
1990
- arrayMin: (min) => `Array måste ha minst ${min} element`,
1991
- arrayMax: (max) => `Array får ha högst ${max} element`,
1992
- arrayLength: (length) => `Array måste ha exakt ${length} element`,
1993
- arrayEmpty: 'Array får inte vara tom',
1994
- arrayItem: (index, error) => `Ogiltigt element vid index ${index}: ${error}`,
1995
- // Object field validation
1996
- objectField: (field, error) => `Ogiltigt fält "${field}": ${error}`,
1997
- // Union validation messages
1998
- unionNoMatch: (errors) => `Ingen union-medlem matchade: ${errors.join(', ')}`,
1999
- // Intersection validation messages
2000
- intersectionError: (error) => `Intersection validering misslyckades: ${error}`,
2001
- // Literal validation messages
2002
- literalExpected: (expected, received) => `Förväntade ${expected}, fick ${received}`,
2003
- // Enum validation messages
2004
- enumExpected: (values, received) => `Förväntade en av [${values.join(', ')}], fick ${received}`,
2005
- // Special type validation messages
2006
- expectedUndefined: 'Förväntade undefined',
2007
- neverType: 'Never-typ kan inte parsas',
2008
- // New advanced type validation messages
2009
- invalidBigint: 'Ogiltig bigint',
2010
- invalidSymbol: 'Ogiltig symbol',
2011
- invalidTuple: 'Ogiltig tupel',
2012
- tupleLength: (expected, received) => `Tupel måste ha exakt ${expected} element, fick ${received}`,
2013
- invalidRecord: 'Ogiltig post',
2014
- invalidSet: 'Ogiltig Set',
2015
- invalidMap: 'Ogiltig Map',
2016
- // Transformation and refinement messages
2017
- transformError: (error) => `Transformation misslyckades: ${error}`,
2018
- refinementError: (error) => `Förfining misslyckades: ${error}`,
2019
- customValidationError: (error) => `Anpassad validering misslyckades: ${error}`,
2020
- // Coercion messages
2021
- coercionFailed: (type, value) => `Kan inte konvertera ${JSON.stringify(value)} till ${type}`,
2022
- // Codec messages
2023
- codecDecodeFailed: 'Failed to decode value',
2024
- codecEncodeFailed: 'Failed to encode value',
2025
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
2026
- // Base64/Hex messages
2027
- invalidBase64: 'Invalid base64 string',
2028
- invalidHex: 'Invalid hexadecimal string',
2029
- // Uint8Array messages
2030
- expectedUint8Array: 'Expected Uint8Array',
2031
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
2032
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
2033
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
2034
- // Generic type error messages
2035
- expectedString: 'Expected string',
2036
- stringExpected: (received, expected) => `Förväntade ${expected}, fick ${received}`,
2037
- stringBoolExpected: (validValues, received) => `Ogiltig boolean sträng. En av följande förväntad: ${validValues}, fick: "${received}"`,
2038
- invalidJson: 'Ogiltig JSON',
2039
- stringPatternInvalid: 'Strängen matchar inte det krävda mönstret',
2040
- // File validation messages
2041
- invalidFile: 'Expected a File object',
2042
- fileNotSupported: 'File API not supported in this environment',
2043
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
2044
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
2045
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
2046
- // Function validation messages
2047
- invalidFunction: 'En funktion förväntas',
2048
- // CIDR validation messages
2049
- stringCidrv4: 'Ogiltigt IPv4 CIDR-block',
2050
- stringCidrv6: 'Ogiltigt IPv6 CIDR-block',
2051
- // Safe extend validation messages
2052
- safeExtendOverlap: (keys) => `Kan inte skriva över befintliga nycklar: ${keys.join(', ')}. Använd extend() för att skriva över.`
2053
- };
2054
-
2055
- var sv$1 = /*#__PURE__*/Object.freeze({
2056
- __proto__: null,
2057
- sv: sv
2058
- });
2059
-
2060
- const no = {
2061
- // String validation messages
2062
- invalidString: 'Ugyldig streng',
2063
- stringMin: (min) => `Streng må være minst ${min} tegn lang`,
2064
- stringMax: (max) => `Streng kan være maks ${max} tegn lang`,
2065
- stringLength: (length) => `Streng må være nøyaktig ${length} tegn lang`,
2066
- stringEmail: 'Ugyldig e-postadresse',
2067
- stringUrl: 'Ugyldig URL',
2068
- stringUuid: 'Ugyldig UUID',
2069
- stringRegex: 'Ugyldig format',
2070
- stringStartsWith: (prefix) => `Streng må starte med "${prefix}"`,
2071
- stringEndsWith: (suffix) => `Streng må slutte med "${suffix}"`,
2072
- stringIncludes: (substring) => `Streng må inneholde "${substring}"`,
2073
- stringIp: 'Ugyldig IP-adresse',
2074
- stringIpv4: 'Ugyldig IPv4-adresse',
2075
- stringIpv6: 'Ugyldig IPv6-adresse',
2076
- stringEmpty: 'Streng kan ikke være tom',
2077
- // Number validation messages
2078
- invalidNumber: 'Ugyldig tall',
2079
- numberMin: (min) => `Tall må være minst ${min}`,
2080
- numberMax: (max) => `Tall kan være maks ${max}`,
2081
- numberInt: 'Tall må være et heltall',
2082
- numberPositive: 'Tall må være positivt',
2083
- numberNegative: 'Tall må være negativt',
2084
- numberNonnegative: 'Tall kan ikke være negativt',
2085
- numberNonpositive: 'Tall kan ikke være positivt',
2086
- numberFinite: 'Tall må være endelig',
2087
- numberSafe: 'Tall må være et trygt heltall',
2088
- numberMultipleOf: (value) => `Tall må være et multiplum av ${value}`,
2089
- // Boolean validation messages
2090
- invalidBoolean: 'Ugyldig boolean-verdi',
2091
- // Date validation messages
2092
- invalidDate: 'Ugyldig dato',
2093
- dateMin: (date) => `Dato må være etter ${date.toISOString()}`,
2094
- dateMax: (date) => `Dato må være før ${date.toISOString()}`,
2095
- // Object validation messages
2096
- invalidObject: 'Ugyldig objekt',
2097
- unexpectedKeys: (keys) => `Uventede nøkler: ${keys.join(', ')}`,
2098
- // Array validation messages
2099
- invalidArray: 'Ugyldig array',
2100
- arrayMin: (min) => `Array må ha minst ${min} elementer`,
2101
- arrayMax: (max) => `Array kan ha maks ${max} elementer`,
2102
- arrayLength: (length) => `Array må ha nøyaktig ${length} elementer`,
2103
- arrayEmpty: 'Array kan ikke være tom',
2104
- arrayItem: (index, error) => `Ugyldig element ved indeks ${index}: ${error}`,
2105
- // Object field validation
2106
- objectField: (field, error) => `Ugyldig felt "${field}": ${error}`,
2107
- // Union validation messages
2108
- unionNoMatch: (errors) => `Ingen union-medlem passet: ${errors.join(', ')}`,
2109
- // Intersection validation messages
2110
- intersectionError: (error) => `Intersection validering feilet: ${error}`,
2111
- // Literal validation messages
2112
- literalExpected: (expected, received) => `Forventet ${expected}, fikk ${received}`,
2113
- // Enum validation messages
2114
- enumExpected: (values, received) => `Forventet en av [${values.join(', ')}], fikk ${received}`,
2115
- // Special type validation messages
2116
- expectedUndefined: 'Forventet undefined',
2117
- neverType: 'Never-type kan ikke parses',
2118
- // New advanced type validation messages
2119
- invalidBigint: 'Ugyldig bigint',
2120
- invalidSymbol: 'Ugyldig symbol',
2121
- invalidTuple: 'Ugyldig tuppel',
2122
- tupleLength: (expected, received) => `Tuppel må ha nøyaktig ${expected} elementer, fikk ${received}`,
2123
- invalidRecord: 'Ugyldig post',
2124
- invalidSet: 'Ugyldig Set',
2125
- invalidMap: 'Ugyldig Map',
2126
- // Transformation and refinement messages
2127
- transformError: (error) => `Transformasjon mislyktes: ${error}`,
2128
- refinementError: (error) => `Foredling mislyktes: ${error}`,
2129
- customValidationError: (error) => `Tilpasset validering mislyktes: ${error}`,
2130
- // Coercion messages
2131
- coercionFailed: (type, value) => `Kan ikke konvertere ${JSON.stringify(value)} til ${type}`,
2132
- // Codec messages
2133
- codecDecodeFailed: 'Failed to decode value',
2134
- codecEncodeFailed: 'Failed to encode value',
2135
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
2136
- // Base64/Hex messages
2137
- invalidBase64: 'Invalid base64 string',
2138
- invalidHex: 'Invalid hexadecimal string',
2139
- // Uint8Array messages
2140
- expectedUint8Array: 'Expected Uint8Array',
2141
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
2142
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
2143
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
2144
- // Generic type error messages
2145
- expectedString: 'Expected string',
2146
- stringExpected: (received, expected) => `Forventet ${expected}, fikk ${received}`,
2147
- stringBoolExpected: (validValues, received) => `Ugyldig boolean streng. En av følgende forventet: ${validValues}, fikk: "${received}"`,
2148
- invalidJson: 'Ugyldig JSON',
2149
- stringPatternInvalid: 'Strengen samsvarer ikke med det nødvendige mønsteret',
2150
- // File validation messages
2151
- invalidFile: 'Expected a File object',
2152
- fileNotSupported: 'File API not supported in this environment',
2153
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
2154
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
2155
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
2156
- // Function validation messages
2157
- invalidFunction: 'En funksjon forventes',
2158
- // CIDR validation messages
2159
- stringCidrv4: 'Ugyldig IPv4 CIDR-blokk',
2160
- stringCidrv6: 'Ugyldig IPv6 CIDR-blokk',
2161
- // Safe extend validation messages
2162
- safeExtendOverlap: (keys) => `Kan ikke overskrive eksisterende nøkler: ${keys.join(', ')}. Bruk extend() for å overskrive.`
2163
- };
2164
-
2165
- var no$1 = /*#__PURE__*/Object.freeze({
2166
- __proto__: null,
2167
- no: no
2168
- });
2169
-
2170
- const fi = {
2171
- // String validation messages
2172
- invalidString: 'Virheellinen merkkijono',
2173
- stringMin: (min) => `Merkkijonon tulee olla vähintään ${min} merkkiä pitkä`,
2174
- stringMax: (max) => `Merkkijono saa olla enintään ${max} merkkiä pitkä`,
2175
- stringLength: (length) => `Merkkijonon tulee olla täsmälleen ${length} merkkiä pitkä`,
2176
- stringEmail: 'Virheellinen sähköpostiosoite',
2177
- stringUrl: 'Virheellinen URL',
2178
- stringUuid: 'Virheellinen UUID',
2179
- stringRegex: 'Virheellinen muoto',
2180
- stringStartsWith: (prefix) => `Merkkijonon tulee alkaa merkeillä "${prefix}"`,
2181
- stringEndsWith: (suffix) => `Merkkijonon tulee päättyä merkkeihin "${suffix}"`,
2182
- stringIncludes: (substring) => `Merkkijonon tulee sisältää "${substring}"`,
2183
- stringIp: 'Virheellinen IP-osoite',
2184
- stringIpv4: 'Virheellinen IPv4-osoite',
2185
- stringIpv6: 'Virheellinen IPv6-osoite',
2186
- stringEmpty: 'Merkkijono ei saa olla tyhjä',
2187
- // Number validation messages
2188
- invalidNumber: 'Virheellinen luku',
2189
- numberMin: (min) => `Luvun tulee olla vähintään ${min}`,
2190
- numberMax: (max) => `Luku saa olla enintään ${max}`,
2191
- numberInt: 'Luvun tulee olla kokonaisluku',
2192
- numberPositive: 'Luvun tulee olla positiivinen',
2193
- numberNegative: 'Luvun tulee olla negatiivinen',
2194
- numberNonnegative: 'Luku ei saa olla negatiivinen',
2195
- numberNonpositive: 'Luku ei saa olla positiivinen',
2196
- numberFinite: 'Luvun tulee olla äärellinen',
2197
- numberSafe: 'Luvun tulee olla turvallinen kokonaisluku',
2198
- numberMultipleOf: (value) => `Luvun tulee olla ${value}:n kerrannainen`,
2199
- // Boolean validation messages
2200
- invalidBoolean: 'Virheellinen totuusarvo',
2201
- // Date validation messages
2202
- invalidDate: 'Virheellinen päivämäärä',
2203
- dateMin: (date) => `Päivämäärän tulee olla ${date.toISOString()} jälkeen`,
2204
- dateMax: (date) => `Päivämäärän tulee olla ennen ${date.toISOString()}`,
2205
- // Object validation messages
2206
- invalidObject: 'Virheellinen objekti',
2207
- unexpectedKeys: (keys) => `Odottamattomat avaimet: ${keys.join(', ')}`,
2208
- // Array validation messages
2209
- invalidArray: 'Virheellinen taulukko',
2210
- arrayMin: (min) => `Taulukossa tulee olla vähintään ${min} alkiota`,
2211
- arrayMax: (max) => `Taulukossa saa olla enintään ${max} alkiota`,
2212
- arrayLength: (length) => `Taulukossa tulee olla täsmälleen ${length} alkiota`,
2213
- arrayEmpty: 'Taulukko ei saa olla tyhjä',
2214
- arrayItem: (index, error) => `Virheellinen alkio indeksissä ${index}: ${error}`,
2215
- // Object field validation
2216
- objectField: (field, error) => `Virheellinen kenttä "${field}": ${error}`,
2217
- // Union validation messages
2218
- unionNoMatch: (errors) => `Mikään union-jäsen ei täsmännyt: ${errors.join(', ')}`,
2219
- // Intersection validation messages
2220
- intersectionError: (error) => `Intersection validointi epäonnistui: ${error}`,
2221
- // Literal validation messages
2222
- literalExpected: (expected, received) => `Odotettiin ${expected}, saatiin ${received}`,
2223
- // Enum validation messages
2224
- enumExpected: (values, received) => `Odotettiin yhtä arvoista [${values.join(', ')}], saatiin ${received}`,
2225
- // Special type validation messages
2226
- expectedUndefined: 'Odotettiin undefined',
2227
- neverType: 'Never-tyyppiä ei voida jäsentää',
2228
- // New advanced type validation messages
2229
- invalidBigint: 'Virheellinen bigint',
2230
- invalidSymbol: 'Virheellinen symboli',
2231
- invalidTuple: 'Virheellinen monikko',
2232
- tupleLength: (expected, received) => `Monikossa tulee olla täsmälleen ${expected} alkiota, saatiin ${received}`,
2233
- invalidRecord: 'Virheellinen tietue',
2234
- invalidSet: 'Virheellinen Set',
2235
- invalidMap: 'Virheellinen Map',
2236
- // Transformation and refinement messages
2237
- transformError: (error) => `Muunnos epäonnistui: ${error}`,
2238
- refinementError: (error) => `Hiominen epäonnistui: ${error}`,
2239
- customValidationError: (error) => `Mukautettu validointi epäonnistui: ${error}`,
2240
- // Coercion messages
2241
- coercionFailed: (type, value) => `Arvoa ${JSON.stringify(value)} ei voida pakottaa tyyppiin ${type}`,
2242
- // Codec messages
2243
- codecDecodeFailed: 'Failed to decode value',
2244
- codecEncodeFailed: 'Failed to encode value',
2245
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
2246
- // Base64/Hex messages
2247
- invalidBase64: 'Invalid base64 string',
2248
- invalidHex: 'Invalid hexadecimal string',
2249
- // Uint8Array messages
2250
- expectedUint8Array: 'Expected Uint8Array',
2251
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
2252
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
2253
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
2254
- // Generic type error messages
2255
- expectedString: 'Expected string',
2256
- stringExpected: (received, expected) => `Odotettiin ${expected}, saatiin ${received}`,
2257
- stringBoolExpected: (validValues, received) => `Virheellinen boolean-merkkijono. Yksi seuraavista odotettu: ${validValues}, saatiin: "${received}"`,
2258
- invalidJson: 'Virheellinen JSON',
2259
- stringPatternInvalid: 'Merkkijono ei vastaa vaadittua kuviota',
2260
- // File validation messages
2261
- invalidFile: 'Expected a File object',
2262
- fileNotSupported: 'File API not supported in this environment',
2263
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
2264
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
2265
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
2266
- // Function validation messages
2267
- invalidFunction: 'Funktiota odotetaan',
2268
- // CIDR validation messages
2269
- stringCidrv4: 'Virheellinen IPv4 CIDR-lohko',
2270
- stringCidrv6: 'Virheellinen IPv6 CIDR-lohko',
2271
- // Safe extend validation messages
2272
- safeExtendOverlap: (keys) => `Olemassa olevia avaimia ei voi ylikirjoittaa: ${keys.join(', ')}. Käytä extend() ylikirjoittamiseen.`
2273
- };
2274
-
2275
- var fi$1 = /*#__PURE__*/Object.freeze({
2276
- __proto__: null,
2277
- fi: fi
2278
- });
2279
-
2280
- const th = {
2281
- // String validation messages
2282
- invalidString: 'ข้อความไม่ถูกต้อง',
2283
- stringMin: (min) => `ข้อความต้องมีความยาวอย่างน้อย ${min} ตัวอักษร`,
2284
- stringMax: (max) => `ข้อความต้องมีความยาวไม่เกิน ${max} ตัวอักษร`,
2285
- stringLength: (length) => `ข้อความต้องมีความยาวเท่ากับ ${length} ตัวอักษร`,
2286
- stringEmail: 'อีเมลไม่ถูกต้อง',
2287
- stringUrl: 'URL ไม่ถูกต้อง',
2288
- stringUuid: 'UUID ไม่ถูกต้อง',
2289
- stringRegex: 'รูปแบบไม่ถูกต้อง',
2290
- stringStartsWith: (prefix) => `ข้อความต้องเริ่มต้นด้วย "${prefix}"`,
2291
- stringEndsWith: (suffix) => `ข้อความต้องลงท้ายด้วย "${suffix}"`,
2292
- stringIncludes: (substring) => `ข้อความต้องมี "${substring}"`,
2293
- stringIp: 'IP address ไม่ถูกต้อง',
2294
- stringIpv4: 'IPv4 address ไม่ถูกต้อง',
2295
- stringIpv6: 'IPv6 address ไม่ถูกต้อง',
2296
- stringEmpty: 'ข้อความไม่สามารถเป็นค่าว่างได้',
2297
- // Number validation messages
2298
- invalidNumber: 'ตัวเลขไม่ถูกต้อง',
2299
- numberMin: (min) => `ตัวเลขต้องมีค่าอย่างน้อย ${min}`,
2300
- numberMax: (max) => `ตัวเลขต้องมีค่าไม่เกิน ${max}`,
2301
- numberInt: 'ตัวเลขต้องเป็นจำนวนเต็ม',
2302
- numberPositive: 'ตัวเลขต้องเป็นค่าบวก',
2303
- numberNegative: 'ตัวเลขต้องเป็นค่าลบ',
2304
- numberNonnegative: 'ตัวเลขไม่สามารถเป็นค่าลบได้',
2305
- numberNonpositive: 'ตัวเลขไม่สามารถเป็นค่าบวกได้',
2306
- numberFinite: 'ตัวเลขต้องเป็นค่าจำกัด',
2307
- numberSafe: 'ตัวเลขต้องเป็นจำนวนเต็มที่ปลอดภัย',
2308
- numberMultipleOf: (value) => `ตัวเลขต้องเป็นหลายเท่าของ ${value}`,
2309
- // Boolean validation messages
2310
- invalidBoolean: 'ค่า Boolean ไม่ถูกต้อง',
2311
- // Date validation messages
2312
- invalidDate: 'วันที่ไม่ถูกต้อง',
2313
- dateMin: (date) => `วันที่ต้องหลังจาก ${date.toISOString()}`,
2314
- dateMax: (date) => `วันที่ต้องก่อน ${date.toISOString()}`,
2315
- // Object validation messages
2316
- invalidObject: 'Object ไม่ถูกต้อง',
2317
- unexpectedKeys: (keys) => `Key ที่ไม่คาดหวัง: ${keys.join(', ')}`,
2318
- // Array validation messages
2319
- invalidArray: 'Array ไม่ถูกต้อง',
2320
- arrayMin: (min) => `Array ต้องมีสมาชิกอย่างน้อย ${min} ตัว`,
2321
- arrayMax: (max) => `Array ต้องมีสมาชิกไม่เกิน ${max} ตัว`,
2322
- arrayLength: (length) => `Array ต้องมีสมาชิกเท่ากับ ${length} ตัว`,
2323
- arrayEmpty: 'Array ไม่สามารถเป็นค่าว่างได้',
2324
- arrayItem: (index, error) => `สมาชิกที่ตำแหน่ง ${index} ไม่ถูกต้อง: ${error}`,
2325
- // Object field validation
2326
- objectField: (field, error) => `ฟิลด์ "${field}" ไม่ถูกต้อง: ${error}`,
2327
- // Union validation messages
2328
- unionNoMatch: (errors) => `ไม่มี union member ที่ตรงกัน: ${errors.join(', ')}`,
2329
- // Intersection validation messages
2330
- intersectionError: (error) => `การตรวจสอบ intersection ล้มเหลว: ${error}`,
2331
- // Literal validation messages
2332
- literalExpected: (expected, received) => `คาดหวัง ${expected}, ได้รับ ${received}`,
2333
- // Enum validation messages
2334
- enumExpected: (values, received) => `คาดหวังค่าใดค่าหนึ่งจาก [${values.join(', ')}], ได้รับ ${received}`,
2335
- // Special type validation messages
2336
- expectedUndefined: 'คาดหวัง undefined',
2337
- neverType: 'ไม่สามารถ parse ประเภท never ได้',
2338
- // New advanced type validation messages
2339
- invalidBigint: 'bigint ไม่ถูกต้อง',
2340
- invalidSymbol: 'symbol ไม่ถูกต้อง',
2341
- invalidTuple: 'tuple ไม่ถูกต้อง',
2342
- tupleLength: (expected, received) => `tuple ต้องมีสมาชิกเท่ากับ ${expected} ตัว, ได้รับ ${received} ตัว`,
2343
- invalidRecord: 'record ไม่ถูกต้อง',
2344
- invalidSet: 'Set ไม่ถูกต้อง',
2345
- invalidMap: 'Map ไม่ถูกต้อง',
2346
- // Transformation and refinement messages
2347
- transformError: (error) => `การแปลงล้มเหลว: ${error}`,
2348
- refinementError: (error) => `การปรับแต่งล้มเหลว: ${error}`,
2349
- customValidationError: (error) => `การตรวจสอบแบบกำหนดเองล้มเหลว: ${error}`,
2350
- // Coercion messages
2351
- coercionFailed: (type, value) => `ไม่สามารถแปลง ${JSON.stringify(value)} เป็น ${type} ได้`,
2352
- // Codec messages
2353
- codecDecodeFailed: 'Failed to decode value',
2354
- codecEncodeFailed: 'Failed to encode value',
2355
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
2356
- // Base64/Hex messages
2357
- invalidBase64: 'Invalid base64 string',
2358
- invalidHex: 'Invalid hexadecimal string',
2359
- // Uint8Array messages
2360
- expectedUint8Array: 'Expected Uint8Array',
2361
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
2362
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
2363
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
2364
- // Generic type error messages
2365
- expectedString: 'Expected string',
2366
- stringExpected: (received, expected) => `คาดหวัง ${expected}, ได้รับ ${received}`,
2367
- stringBoolExpected: (validValues, received) => `สตริงบูลีนไม่ถูกต้อง คาดว่าจะเป็นหนึ่งในนั้น: ${validValues}, ได้รับ: "${received}"`,
2368
- invalidJson: 'JSON ไม่ถูกต้อง',
2369
- stringPatternInvalid: 'สตริงไม่ตรงกับรูปแบบที่จำเป็น',
2370
- // File validation messages
2371
- invalidFile: 'Expected a File object',
2372
- fileNotSupported: 'File API not supported in this environment',
2373
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
2374
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
2375
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
2376
- // Function validation messages
2377
- invalidFunction: 'คาดหวังฟังก์ชัน',
2378
- // CIDR validation messages
2379
- stringCidrv4: 'บล็อก CIDR IPv4 ไม่ถูกต้อง',
2380
- stringCidrv6: 'บล็อก CIDR IPv6 ไม่ถูกต้อง',
2381
- // Safe extend validation messages
2382
- safeExtendOverlap: (keys) => `ไม่สามารถเขียนทับคีย์ที่มีอยู่: ${keys.join(', ')}. ใช้ extend() เพื่อเขียนทับ`
2383
- };
2384
-
2385
- var th$1 = /*#__PURE__*/Object.freeze({
2386
- __proto__: null,
2387
- th: th
2388
- });
2389
-
2390
- const vi = {
2391
- // String validation messages
2392
- invalidString: 'Chuỗi không hợp lệ',
2393
- stringMin: (min) => `Chuỗi phải có ít nhất ${min} ký tự`,
2394
- stringMax: (max) => `Chuỗi không được quá ${max} ký tự`,
2395
- stringLength: (length) => `Chuỗi phải có chính xác ${length} ký tự`,
2396
- stringEmail: 'Địa chỉ email không hợp lệ',
2397
- stringUrl: 'URL không hợp lệ',
2398
- stringUuid: 'UUID không hợp lệ',
2399
- stringRegex: 'Định dạng không hợp lệ',
2400
- stringStartsWith: (prefix) => `Chuỗi phải bắt đầu bằng "${prefix}"`,
2401
- stringEndsWith: (suffix) => `Chuỗi phải kết thúc bằng "${suffix}"`,
2402
- stringIncludes: (substring) => `Chuỗi phải chứa "${substring}"`,
2403
- stringIp: 'Địa chỉ IP không hợp lệ',
2404
- stringIpv4: 'Địa chỉ IPv4 không hợp lệ',
2405
- stringIpv6: 'Địa chỉ IPv6 không hợp lệ',
2406
- stringEmpty: 'Chuỗi không được để trống',
2407
- // Number validation messages
2408
- invalidNumber: 'Số không hợp lệ',
2409
- numberMin: (min) => `Số phải ít nhất là ${min}`,
2410
- numberMax: (max) => `Số không được vượt quá ${max}`,
2411
- numberInt: 'Số phải là số nguyên',
2412
- numberPositive: 'Số phải là số dương',
2413
- numberNegative: 'Số phải là số âm',
2414
- numberNonnegative: 'Số không được là số âm',
2415
- numberNonpositive: 'Số không được là số dương',
2416
- numberFinite: 'Số phải là số hữu hạn',
2417
- numberSafe: 'Số phải là số nguyên an toàn',
2418
- numberMultipleOf: (value) => `Số phải là bội số của ${value}`,
2419
- // Boolean validation messages
2420
- invalidBoolean: 'Giá trị boolean không hợp lệ',
2421
- // Date validation messages
2422
- invalidDate: 'Ngày không hợp lệ',
2423
- dateMin: (date) => `Ngày phải sau ${date.toISOString()}`,
2424
- dateMax: (date) => `Ngày phải trước ${date.toISOString()}`,
2425
- // Object validation messages
2426
- invalidObject: 'Đối tượng không hợp lệ',
2427
- unexpectedKeys: (keys) => `Khóa không mong muốn: ${keys.join(', ')}`,
2428
- // Array validation messages
2429
- invalidArray: 'Mảng không hợp lệ',
2430
- arrayMin: (min) => `Mảng phải có ít nhất ${min} phần tử`,
2431
- arrayMax: (max) => `Mảng không được quá ${max} phần tử`,
2432
- arrayLength: (length) => `Mảng phải có chính xác ${length} phần tử`,
2433
- arrayEmpty: 'Mảng không được để trống',
2434
- arrayItem: (index, error) => `Phần tử không hợp lệ tại vị trí ${index}: ${error}`,
2435
- // Object field validation
2436
- objectField: (field, error) => `Trường "${field}" không hợp lệ: ${error}`,
2437
- // Union validation messages
2438
- unionNoMatch: (errors) => `Không có thành viên union nào khớp: ${errors.join(', ')}`,
2439
- // Intersection validation messages
2440
- intersectionError: (error) => `Xác thực intersection thất bại: ${error}`,
2441
- // Literal validation messages
2442
- literalExpected: (expected, received) => `Mong đợi ${expected}, nhận được ${received}`,
2443
- // Enum validation messages
2444
- enumExpected: (values, received) => `Mong đợi một trong [${values.join(', ')}], nhận được ${received}`,
2445
- // Special type validation messages
2446
- expectedUndefined: 'Mong đợi undefined',
2447
- neverType: 'Không thể phân tích kiểu never',
2448
- // New advanced type validation messages
2449
- invalidBigint: 'Bigint không hợp lệ',
2450
- invalidSymbol: 'Ký hiệu không hợp lệ',
2451
- invalidTuple: 'Tuple không hợp lệ',
2452
- tupleLength: (expected, received) => `Tuple phải có chính xác ${expected} phần tử, nhận được ${received}`,
2453
- invalidRecord: 'Record không hợp lệ',
2454
- invalidSet: 'Set không hợp lệ',
2455
- invalidMap: 'Map không hợp lệ',
2456
- // Transformation and refinement messages
2457
- transformError: (error) => `Biến đổi thất bại: ${error}`,
2458
- refinementError: (error) => `Tinh chế thất bại: ${error}`,
2459
- customValidationError: (error) => `Xác thực tùy chỉnh thất bại: ${error}`,
2460
- // Coercion messages
2461
- coercionFailed: (type, value) => `Không thể ép kiểu ${JSON.stringify(value)} thành ${type}`,
2462
- // Codec messages
2463
- codecDecodeFailed: 'Failed to decode value',
2464
- codecEncodeFailed: 'Failed to encode value',
2465
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
2466
- // Base64/Hex messages
2467
- invalidBase64: 'Invalid base64 string',
2468
- invalidHex: 'Invalid hexadecimal string',
2469
- // Uint8Array messages
2470
- expectedUint8Array: 'Expected Uint8Array',
2471
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
2472
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
2473
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
2474
- // Generic type error messages
2475
- expectedString: 'Expected string',
2476
- stringExpected: (received, expected) => `Mong đợi ${expected}, nhận được ${received}`,
2477
- stringBoolExpected: (validValues, received) => `Chuỗi boolean không hợp lệ. Mong đợi một trong các: ${validValues}, nhận được: "${received}"`,
2478
- invalidJson: 'JSON không hợp lệ',
2479
- stringPatternInvalid: 'Chuỗi không khớp với mẫu bắt buộc',
2480
- // File validation messages
2481
- invalidFile: 'Expected a File object',
2482
- fileNotSupported: 'File API not supported in this environment',
2483
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
2484
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
2485
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
2486
- // Function validation messages
2487
- invalidFunction: 'Mong đợi một hàm',
2488
- // CIDR validation messages
2489
- stringCidrv4: 'Khối CIDR IPv4 không hợp lệ',
2490
- stringCidrv6: 'Khối CIDR IPv6 không hợp lệ',
2491
- // Safe extend validation messages
2492
- safeExtendOverlap: (keys) => `Không thể ghi đè các khóa hiện có: ${keys.join(', ')}. Sử dụng extend() để ghi đè.`
2493
- };
2494
-
2495
- var vi$1 = /*#__PURE__*/Object.freeze({
2496
- __proto__: null,
2497
- vi: vi
2498
- });
2499
-
2500
- const id = {
2501
- // String validation messages
2502
- invalidString: 'String tidak valid',
2503
- stringMin: (min) => `String harus memiliki minimal ${min} karakter`,
2504
- stringMax: (max) => `String tidak boleh lebih dari ${max} karakter`,
2505
- stringLength: (length) => `String harus memiliki tepat ${length} karakter`,
2506
- stringEmail: 'Alamat email tidak valid',
2507
- stringUrl: 'URL tidak valid',
2508
- stringUuid: 'UUID tidak valid',
2509
- stringRegex: 'Format tidak valid',
2510
- stringStartsWith: (prefix) => `String harus diawali dengan "${prefix}"`,
2511
- stringEndsWith: (suffix) => `String harus diakhiri dengan "${suffix}"`,
2512
- stringIncludes: (substring) => `String harus mengandung "${substring}"`,
2513
- stringIp: 'Alamat IP tidak valid',
2514
- stringIpv4: 'Alamat IPv4 tidak valid',
2515
- stringIpv6: 'Alamat IPv6 tidak valid',
2516
- stringEmpty: 'String tidak boleh kosong',
2517
- // Number validation messages
2518
- invalidNumber: 'Angka tidak valid',
2519
- numberMin: (min) => `Angka harus minimal ${min}`,
2520
- numberMax: (max) => `Angka tidak boleh lebih dari ${max}`,
2521
- numberInt: 'Angka harus berupa bilangan bulat',
2522
- numberPositive: 'Angka harus positif',
2523
- numberNegative: 'Angka harus negatif',
2524
- numberNonnegative: 'Angka tidak boleh negatif',
2525
- numberNonpositive: 'Angka tidak boleh positif',
2526
- numberFinite: 'Angka harus terhingga',
2527
- numberSafe: 'Angka harus berupa bilangan bulat yang aman',
2528
- numberMultipleOf: (value) => `Angka harus kelipatan dari ${value}`,
2529
- // Boolean validation messages
2530
- invalidBoolean: 'Nilai boolean tidak valid',
2531
- // Date validation messages
2532
- invalidDate: 'Tanggal tidak valid',
2533
- dateMin: (date) => `Tanggal harus setelah ${date.toISOString()}`,
2534
- dateMax: (date) => `Tanggal harus sebelum ${date.toISOString()}`,
2535
- // Object validation messages
2536
- invalidObject: 'Object tidak valid',
2537
- unexpectedKeys: (keys) => `Kunci yang tidak diharapkan: ${keys.join(', ')}`,
2538
- // Array validation messages
2539
- invalidArray: 'Array tidak valid',
2540
- arrayMin: (min) => `Array harus memiliki minimal ${min} elemen`,
2541
- arrayMax: (max) => `Array tidak boleh lebih dari ${max} elemen`,
2542
- arrayLength: (length) => `Array harus memiliki tepat ${length} elemen`,
2543
- arrayEmpty: 'Array tidak boleh kosong',
2544
- arrayItem: (index, error) => `Elemen tidak valid pada indeks ${index}: ${error}`,
2545
- // Object field validation
2546
- objectField: (field, error) => `Field "${field}" tidak valid: ${error}`,
2547
- // Union validation messages
2548
- unionNoMatch: (errors) => `Tidak ada anggota union yang cocok: ${errors.join(', ')}`,
2549
- // Intersection validation messages
2550
- intersectionError: (error) => `Validasi intersection gagal: ${error}`,
2551
- // Literal validation messages
2552
- literalExpected: (expected, received) => `Diharapkan ${expected}, diterima ${received}`,
2553
- // Enum validation messages
2554
- enumExpected: (values, received) => `Diharapkan salah satu dari [${values.join(', ')}], diterima ${received}`,
2555
- // Special type validation messages
2556
- expectedUndefined: 'Diharapkan undefined',
2557
- neverType: 'Tipe never tidak dapat diparse',
2558
- // New advanced type validation messages
2559
- invalidBigint: 'Bigint tidak valid',
2560
- invalidSymbol: 'Simbol tidak valid',
2561
- invalidTuple: 'Tuple tidak valid',
2562
- tupleLength: (expected, received) => `Tuple harus memiliki tepat ${expected} elemen, diterima ${received}`,
2563
- invalidRecord: 'Record tidak valid',
2564
- invalidSet: 'Set tidak valid',
2565
- invalidMap: 'Map tidak valid',
2566
- // Transformation and refinement messages
2567
- transformError: (error) => `Transformasi gagal: ${error}`,
2568
- refinementError: (error) => `Penyempurnaan gagal: ${error}`,
2569
- customValidationError: (error) => `Validasi kustom gagal: ${error}`,
2570
- // Coercion messages
2571
- coercionFailed: (type, value) => `Tidak dapat memaksa ${JSON.stringify(value)} menjadi ${type}`,
2572
- // Codec messages
2573
- codecDecodeFailed: 'Failed to decode value',
2574
- codecEncodeFailed: 'Failed to encode value',
2575
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
2576
- // Base64/Hex messages
2577
- invalidBase64: 'Invalid base64 string',
2578
- invalidHex: 'Invalid hexadecimal string',
2579
- // Uint8Array messages
2580
- expectedUint8Array: 'Expected Uint8Array',
2581
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
2582
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
2583
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
2584
- // Generic type error messages
2585
- expectedString: 'Expected string',
2586
- stringExpected: (received, expected) => `Diharapkan ${expected}, diterima ${received}`,
2587
- stringBoolExpected: (validValues, received) => `String boolean tidak valid. Salah satu dari berikut diharapkan: ${validValues}, diterima: "${received}"`,
2588
- invalidJson: 'JSON tidak valid',
2589
- stringPatternInvalid: 'String tidak cocok dengan pola yang diperlukan',
2590
- // File validation messages
2591
- invalidFile: 'Expected a File object',
2592
- fileNotSupported: 'File API not supported in this environment',
2593
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
2594
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
2595
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
2596
- // Function validation messages
2597
- invalidFunction: 'Fungsi diharapkan',
2598
- // CIDR validation messages
2599
- stringCidrv4: 'Blok CIDR IPv4 tidak valid',
2600
- stringCidrv6: 'Blok CIDR IPv6 tidak valid',
2601
- // Safe extend validation messages
2602
- safeExtendOverlap: (keys) => `Tidak dapat menimpa kunci yang sudah ada: ${keys.join(', ')}. Gunakan extend() untuk menimpa.`
2603
- };
2604
-
2605
- var id$1 = /*#__PURE__*/Object.freeze({
2606
- __proto__: null,
2607
- id: id
2608
- });
2609
-
2610
- const bn = {
2611
- // String validation messages
2612
- invalidString: 'অবৈধ স্ট্রিং',
2613
- stringMin: (min) => `স্ট্রিং কমপক্ষে ${min} অক্ষরের হতে হবে`,
2614
- stringMax: (max) => `স্ট্রিং সর্বোচ্চ ${max} অক্ষরের হতে পারে`,
2615
- stringLength: (length) => `স্ট্রিং ঠিক ${length} অক্ষরের হতে হবে`,
2616
- stringEmail: 'অবৈধ ইমেইল ঠিকানা',
2617
- stringUrl: 'অবৈধ URL',
2618
- stringUuid: 'অবৈধ UUID',
2619
- stringRegex: 'অবৈধ ফরম্যাট',
2620
- stringStartsWith: (prefix) => `স্ট্রিং "${prefix}" দিয়ে শুরু হতে হবে`,
2621
- stringEndsWith: (suffix) => `স্ট্রিং "${suffix}" দিয়ে শেষ হতে হবে`,
2622
- stringIncludes: (substring) => `স্ট্রিং-এ "${substring}" থাকতে হবে`,
2623
- stringIp: 'অবৈধ IP ঠিকানা',
2624
- stringIpv4: 'অবৈধ IPv4 ঠিকানা',
2625
- stringIpv6: 'অবৈধ IPv6 ঠিকানা',
2626
- stringEmpty: 'স্ট্রিং খালি হতে পারবে না',
2627
- // Number validation messages
2628
- invalidNumber: 'অবৈধ সংখ্যা',
2629
- numberMin: (min) => `সংখ্যা কমপক্ষে ${min} হতে হবে`,
2630
- numberMax: (max) => `সংখ্যা সর্বোচ্চ ${max} হতে পারে`,
2631
- numberInt: 'সংখ্যাটি একটি পূর্ণসংখ্যা হতে হবে',
2632
- numberPositive: 'সংখ্যাটি ধনাত্মক হতে হবে',
2633
- numberNegative: 'সংখ্যাটি ঋণাত্মক হতে হবে',
2634
- numberNonnegative: 'সংখ্যাটি ঋণাত্মক হতে পারবে না',
2635
- numberNonpositive: 'সংখ্যাটি ধনাত্মক হতে পারবে না',
2636
- numberFinite: 'সংখ্যাটি সসীম হতে হবে',
2637
- numberSafe: 'সংখ্যাটি একটি নিরাপদ পূর্ণসংখ্যা হতে হবে',
2638
- numberMultipleOf: (value) => `সংখ্যাটি ${value} এর গুণিতক হতে হবে`,
2639
- // Boolean validation messages
2640
- invalidBoolean: 'অবৈধ বুলিয়ান মান',
2641
- // Date validation messages
2642
- invalidDate: 'অবৈধ তারিখ',
2643
- dateMin: (date) => `তারিখ ${date.toISOString()} এর পরে হতে হবে`,
2644
- dateMax: (date) => `তারিখ ${date.toISOString()} এর আগে হতে হবে`,
2645
- // Object validation messages
2646
- invalidObject: 'অবৈধ অবজেক্ট',
2647
- unexpectedKeys: (keys) => `অপ্রত্যাশিত কী: ${keys.join(', ')}`,
2648
- // Array validation messages
2649
- invalidArray: 'অবৈধ অ্যারে',
2650
- arrayMin: (min) => `অ্যারে-তে কমপক্ষে ${min}টি উপাদান থাকতে হবে`,
2651
- arrayMax: (max) => `অ্যারে-তে সর্বোচ্চ ${max}টি উপাদান থাকতে পারে`,
2652
- arrayLength: (length) => `অ্যারে-তে ঠিক ${length}টি উপাদান থাকতে হবে`,
2653
- arrayEmpty: 'অ্যারে খালি হতে পারবে না',
2654
- arrayItem: (index, error) => `${index} ইনডেক্সে অবৈধ উপাদান: ${error}`,
2655
- // Object field validation
2656
- objectField: (field, error) => `অবৈধ ফিল্ড "${field}": ${error}`,
2657
- // Union validation messages
2658
- unionNoMatch: (errors) => `কোন ইউনিয়ন সদস্য মিলেনি: ${errors.join(', ')}`,
2659
- // Intersection validation messages
2660
- intersectionError: (error) => `ইন্টারসেকশন যাচাই ব্যর্থ: ${error}`,
2661
- // Literal validation messages
2662
- literalExpected: (expected, received) => `প্রত্যাশিত ${expected}, পেয়েছি ${received}`,
2663
- // Enum validation messages
2664
- enumExpected: (values, received) => `[${values.join(', ')}] এর মধ্যে একটি প্রত্যাশিত, পেয়েছি ${received}`,
2665
- // Special type validation messages
2666
- expectedUndefined: 'undefined প্রত্যাশিত',
2667
- neverType: 'Never টাইপ পার্স করা যায় না',
2668
- // New advanced type validation messages
2669
- invalidBigint: 'অবৈধ bigint',
2670
- invalidSymbol: 'অবৈধ সিম্বল',
2671
- invalidTuple: 'অবৈধ টুপল',
2672
- tupleLength: (expected, received) => `টুপলে ঠিক ${expected}টি উপাদান থাকতে হবে, পেয়েছি ${received}`,
2673
- invalidRecord: 'অবৈধ রেকর্ড',
2674
- invalidSet: 'অবৈধ Set',
2675
- invalidMap: 'অবৈধ Map',
2676
- // Transformation and refinement messages
2677
- transformError: (error) => `রূপান্তর ব্যর্থ: ${error}`,
2678
- refinementError: (error) => `পরিমার্জনা ব্যর্থ: ${error}`,
2679
- customValidationError: (error) => `কাস্টম যাচাইকরণ ব্যর্থ: ${error}`,
2680
- // Coercion messages
2681
- coercionFailed: (type, value) => `${JSON.stringify(value)} কে ${type} এ রূপান্তর করা যায়নি`,
2682
- // Codec messages
2683
- codecDecodeFailed: 'Failed to decode value',
2684
- codecEncodeFailed: 'Failed to encode value',
2685
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
2686
- // Base64/Hex messages
2687
- invalidBase64: 'Invalid base64 string',
2688
- invalidHex: 'Invalid hexadecimal string',
2689
- // Uint8Array messages
2690
- expectedUint8Array: 'Expected Uint8Array',
2691
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
2692
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
2693
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
2694
- // Generic type error messages
2695
- expectedString: 'Expected string',
2696
- stringExpected: (received, expected) => `প্রত্যাশিত ${expected}, পেয়েছি ${received}`,
2697
- stringBoolExpected: (validValues, received) => `অবৈধ বুলিয়ান স্ট্রিং। নিম্নলিখিতগুলির একটি প্রত্যাশিত: ${validValues}, পেয়েছি: "${received}"`,
2698
- invalidJson: 'অবৈধ JSON',
2699
- stringPatternInvalid: 'স্ট্রিংটি প্রয়োজনীয় প্যাটার্নের সাথে মেলে না',
2700
- // File validation messages
2701
- invalidFile: 'Expected a File object',
2702
- fileNotSupported: 'File API not supported in this environment',
2703
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
2704
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
2705
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
2706
- // Function validation messages
2707
- invalidFunction: 'একটি ফাংশন প্রত্যাশিত',
2708
- // CIDR validation messages
2709
- stringCidrv4: 'অবৈধ IPv4 CIDR ব্লক',
2710
- stringCidrv6: 'অবৈধ IPv6 CIDR ব্লক',
2711
- // Safe extend validation messages
2712
- safeExtendOverlap: (keys) => `বিদ্যমান কীগুলি ওভাররাইড করা যায় না: ${keys.join(', ')}। ওভাররাইড করতে extend() ব্যবহার করুন।`
2713
- };
2714
-
2715
- var bn$1 = /*#__PURE__*/Object.freeze({
2716
- __proto__: null,
2717
- bn: bn
2718
- });
2719
-
2720
- const sw = {
2721
- // String validation messages
2722
- invalidString: 'Mfuatano usio sahihi',
2723
- stringMin: (min) => `Mfuatano lazima uwe na angalau vibambo ${min}`,
2724
- stringMax: (max) => `Mfuatano hauwezi kuwa na zaidi ya vibambo ${max}`,
2725
- stringLength: (length) => `Mfuatano lazima uwe na vibambo ${length} haswa`,
2726
- stringEmail: 'Anwani ya barua pepe si sahihi',
2727
- stringUrl: 'URL si sahihi',
2728
- stringUuid: 'UUID si sahihi',
2729
- stringRegex: 'Muundo usio sahihi',
2730
- stringStartsWith: (prefix) => `Mfuatano lazima uanze na "${prefix}"`,
2731
- stringEndsWith: (suffix) => `Mfuatano lazima umalize na "${suffix}"`,
2732
- stringIncludes: (substring) => `Mfuatano lazima ujumuishe "${substring}"`,
2733
- stringIp: 'Anwani ya IP si sahihi',
2734
- stringIpv4: 'Anwani ya IPv4 si sahihi',
2735
- stringIpv6: 'Anwani ya IPv6 si sahihi',
2736
- stringEmpty: 'Mfuatano hauwezi kuwa tupu',
2737
- // Number validation messages
2738
- invalidNumber: 'Nambari si sahihi',
2739
- numberMin: (min) => `Nambari lazima iwe angalau ${min}`,
2740
- numberMax: (max) => `Nambari haiwezi kuwa zaidi ya ${max}`,
2741
- numberInt: 'Nambari lazima iwe nzima',
2742
- numberPositive: 'Nambari lazima iwe chanya',
2743
- numberNegative: 'Nambari lazima iwe hasi',
2744
- numberNonnegative: 'Nambari haiwezi kuwa hasi',
2745
- numberNonpositive: 'Nambari haiwezi kuwa chanya',
2746
- numberFinite: 'Nambari lazima iwe ya mwisho',
2747
- numberSafe: 'Nambari lazima iwe nzima salama',
2748
- numberMultipleOf: (value) => `Nambari lazima iwe mzidadi wa ${value}`,
2749
- // Boolean validation messages
2750
- invalidBoolean: 'Thamani ya boolean si sahihi',
2751
- // Date validation messages
2752
- invalidDate: 'Tarehe si sahihi',
2753
- dateMin: (date) => `Tarehe lazima iwe baada ya ${date.toISOString()}`,
2754
- dateMax: (date) => `Tarehe lazima iwe kabla ya ${date.toISOString()}`,
2755
- // Object validation messages
2756
- invalidObject: 'Kitu si sahihi',
2757
- unexpectedKeys: (keys) => `Funguo zisizotarajiwa: ${keys.join(', ')}`,
2758
- // Array validation messages
2759
- invalidArray: 'Safu si sahihi',
2760
- arrayMin: (min) => `Safu lazima iwe na angalau vipengele ${min}`,
2761
- arrayMax: (max) => `Safu haiwezi kuwa na zaidi ya vipengele ${max}`,
2762
- arrayLength: (length) => `Safu lazima iwe na vipengele ${length} haswa`,
2763
- arrayEmpty: 'Safu haiwezi kuwa tupu',
2764
- arrayItem: (index, error) => `Kipengele kisicho sahihi kwenye uhurizo ${index}: ${error}`,
2765
- // Object field validation
2766
- objectField: (field, error) => `Uwanda "${field}" usio sahihi: ${error}`,
2767
- // Union validation messages
2768
- unionNoMatch: (errors) => `Hakuna mwanachama wa umoja aliyelingana: ${errors.join(', ')}`,
2769
- // Intersection validation messages
2770
- intersectionError: (error) => `Uthibitisho wa intersection umeshindwa: ${error}`,
2771
- // Literal validation messages
2772
- literalExpected: (expected, received) => `Ilitegemewa ${expected}, ilipokewa ${received}`,
2773
- // Enum validation messages
2774
- enumExpected: (values, received) => `Ilitegemewa moja ya [${values.join(', ')}], ilipokewa ${received}`,
2775
- // Special type validation messages
2776
- expectedUndefined: 'Ilitegemewa undefined',
2777
- neverType: 'Aina ya never haiwezi kuchakatwa',
2778
- // New advanced type validation messages
2779
- invalidBigint: 'Bigint si sahihi',
2780
- invalidSymbol: 'Ishara si sahihi',
2781
- invalidTuple: 'Jozi si sahihi',
2782
- tupleLength: (expected, received) => `Jozi lazima iwe na vipengele ${expected} haswa, ilipokewa ${received}`,
2783
- invalidRecord: 'Rekodi si sahihi',
2784
- invalidSet: 'Set si sahihi',
2785
- invalidMap: 'Ramani si sahihi',
2786
- // Transformation and refinement messages
2787
- transformError: (error) => `Mageuzi yameshindwa: ${error}`,
2788
- refinementError: (error) => `Uboresha umeshindwa: ${error}`,
2789
- customValidationError: (error) => `Uthibitisho wa kawaida umeshindwa: ${error}`,
2790
- // Coercion messages
2791
- coercionFailed: (type, value) => `Haiwezi kulazimisha ${JSON.stringify(value)} kuwa ${type}`,
2792
- // Codec messages
2793
- codecDecodeFailed: 'Failed to decode value',
2794
- codecEncodeFailed: 'Failed to encode value',
2795
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
2796
- // Base64/Hex messages
2797
- invalidBase64: 'Invalid base64 string',
2798
- invalidHex: 'Invalid hexadecimal string',
2799
- // Uint8Array messages
2800
- expectedUint8Array: 'Expected Uint8Array',
2801
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
2802
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
2803
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
2804
- // Generic type error messages
2805
- expectedString: 'Expected string',
2806
- stringExpected: (received, expected) => `Ilitegemewa ${expected}, ilipokewa ${received}`,
2807
- stringBoolExpected: (validValues, received) => `Mfuatano wa boolean usio sahihi. Moja ya zifuatazo ilitegemewa: ${validValues}, ilipokewa: "${received}"`,
2808
- invalidJson: 'JSON si sahihi',
2809
- stringPatternInvalid: 'Mfuatano haufanani na mfano uliohitajika',
2810
- // File validation messages
2811
- invalidFile: 'Expected a File object',
2812
- fileNotSupported: 'File API not supported in this environment',
2813
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
2814
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
2815
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
2816
- // Function validation messages
2817
- invalidFunction: 'Kazi inatarajiwa',
2818
- // CIDR validation messages
2819
- stringCidrv4: 'Kizuizi cha CIDR IPv4 si sahihi',
2820
- stringCidrv6: 'Kizuizi cha CIDR IPv6 si sahihi',
2821
- // Safe extend validation messages
2822
- safeExtendOverlap: (keys) => `Haiwezi kuandika juu ya funguo zilizo tayari: ${keys.join(', ')}. Tumia extend() kuandika juu.`
2823
- };
2824
-
2825
- var sw$1 = /*#__PURE__*/Object.freeze({
2826
- __proto__: null,
2827
- sw: sw
2828
- });
2829
-
2830
- const af = {
2831
- // String validation messages
2832
- invalidString: 'Ongeldige string',
2833
- stringMin: (min) => `String moet ten minste ${min} karakters lank wees`,
2834
- stringMax: (max) => `String mag hoogstens ${max} karakters lank wees`,
2835
- stringLength: (length) => `String moet presies ${length} karakters lank wees`,
2836
- stringEmail: 'Ongeldige e-pos adres',
2837
- stringUrl: 'Ongeldige URL',
2838
- stringUuid: 'Ongeldige UUID',
2839
- stringRegex: 'Ongeldige formaat',
2840
- stringStartsWith: (prefix) => `String moet begin met "${prefix}"`,
2841
- stringEndsWith: (suffix) => `String moet eindig met "${suffix}"`,
2842
- stringIncludes: (substring) => `String moet "${substring}" bevat`,
2843
- stringIp: 'Ongeldige IP adres',
2844
- stringIpv4: 'Ongeldige IPv4 adres',
2845
- stringIpv6: 'Ongeldige IPv6 adres',
2846
- stringEmpty: 'String mag nie leeg wees nie',
2847
- // Number validation messages
2848
- invalidNumber: 'Ongeldige getal',
2849
- numberMin: (min) => `Getal moet ten minste ${min} wees`,
2850
- numberMax: (max) => `Getal mag hoogstens ${max} wees`,
2851
- numberInt: "Getal moet 'n heelgetal wees",
2852
- numberPositive: 'Getal moet positief wees',
2853
- numberNegative: 'Getal moet negatief wees',
2854
- numberNonnegative: 'Getal mag nie negatief wees nie',
2855
- numberNonpositive: 'Getal mag nie positief wees nie',
2856
- numberFinite: 'Getal moet eindig wees',
2857
- numberSafe: "Getal moet 'n veilige heelgetal wees",
2858
- numberMultipleOf: (value) => `Getal moet 'n veelvoud van ${value} wees`,
2859
- // Boolean validation messages
2860
- invalidBoolean: 'Ongeldige boolean waarde',
2861
- // Date validation messages
2862
- invalidDate: 'Ongeldige datum',
2863
- dateMin: (date) => `Datum moet na ${date.toISOString()} wees`,
2864
- dateMax: (date) => `Datum moet voor ${date.toISOString()} wees`,
2865
- // Object validation messages
2866
- invalidObject: 'Ongeldige objek',
2867
- unexpectedKeys: (keys) => `Onverwagte sleutels: ${keys.join(', ')}`,
2868
- // Array validation messages
2869
- invalidArray: 'Ongeldige skikking',
2870
- arrayMin: (min) => `Skikking moet ten minste ${min} elemente hê`,
2871
- arrayMax: (max) => `Skikking mag hoogstens ${max} elemente hê`,
2872
- arrayLength: (length) => `Skikking moet presies ${length} elemente hê`,
2873
- arrayEmpty: 'Skikking mag nie leeg wees nie',
2874
- arrayItem: (index, error) => `Ongeldige element by indeks ${index}: ${error}`,
2875
- // Object field validation
2876
- objectField: (field, error) => `Ongeldige veld "${field}": ${error}`,
2877
- // Union validation messages
2878
- unionNoMatch: (errors) => `Geen union lid het gepas nie: ${errors.join(', ')}`,
2879
- // Intersection validation messages
2880
- intersectionError: (error) => `Intersection validasie het gefaal: ${error}`,
2881
- // Literal validation messages
2882
- literalExpected: (expected, received) => `Verwag ${expected}, ontvang ${received}`,
2883
- // Enum validation messages
2884
- enumExpected: (values, received) => `Verwag een van [${values.join(', ')}], ontvang ${received}`,
2885
- // Special type validation messages
2886
- expectedUndefined: 'Verwag undefined',
2887
- neverType: 'Never tipe kan nie geparseer word nie',
2888
- // New advanced type validation messages
2889
- invalidBigint: 'Ongeldige bigint',
2890
- invalidSymbol: 'Ongeldige simbool',
2891
- invalidTuple: 'Ongeldige tupel',
2892
- tupleLength: (expected, received) => `Tupel moet presies ${expected} elemente hê, ontvang ${received}`,
2893
- invalidRecord: 'Ongeldige rekord',
2894
- invalidSet: 'Ongeldige Set',
2895
- invalidMap: 'Ongeldige Map',
2896
- // Transformation and refinement messages
2897
- transformError: (error) => `Transformasie het gefaal: ${error}`,
2898
- refinementError: (error) => `Verfyning het gefaal: ${error}`,
2899
- customValidationError: (error) => `Pasgemaakte validasie het misluk: ${error}`,
2900
- // Coercion messages
2901
- coercionFailed: (type, value) => `Kan nie ${JSON.stringify(value)} na ${type} dwing nie`,
2902
- // Codec messages
2903
- codecDecodeFailed: 'Failed to decode value',
2904
- codecEncodeFailed: 'Failed to encode value',
2905
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
2906
- // Base64/Hex messages
2907
- invalidBase64: 'Invalid base64 string',
2908
- invalidHex: 'Invalid hexadecimal string',
2909
- // Uint8Array messages
2910
- expectedUint8Array: 'Expected Uint8Array',
2911
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
2912
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
2913
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
2914
- // Generic type error messages
2915
- expectedString: 'Expected string',
2916
- stringExpected: (received, expected) => `Verwag ${expected}, ontvang ${received}`,
2917
- stringBoolExpected: (validValues, received) => `Ongeldige boolean string. Een van die volgende verwag: ${validValues}, ontvang: "${received}"`,
2918
- invalidJson: 'Ongeldige JSON',
2919
- stringPatternInvalid: 'String stem nie ooreen met die vereiste patroon nie',
2920
- // File validation messages
2921
- invalidFile: 'Expected a File object',
2922
- fileNotSupported: 'File API not supported in this environment',
2923
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
2924
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
2925
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(', ')}`,
2926
- // Function validation messages
2927
- invalidFunction: "'n Funksie word verwag",
2928
- // CIDR validation messages
2929
- stringCidrv4: 'Ongeldige IPv4 CIDR-blok',
2930
- stringCidrv6: 'Ongeldige IPv6 CIDR-blok',
2931
- // Safe extend validation messages
2932
- safeExtendOverlap: (keys) => `Kan nie bestaande sleutels oorskryf nie: ${keys.join(', ')}. Gebruik extend() om te oorskryf.`
2933
- };
2934
-
2935
- var af$1 = /*#__PURE__*/Object.freeze({
2936
- __proto__: null,
2937
- af: af
2938
- });
2939
-
2940
- const ptBR = {
2941
- // String validation messages
2942
- invalidString: 'String inválida',
2943
- stringMin: (min) => `String deve ter pelo menos ${min} caracteres`,
2944
- stringMax: (max) => `String não pode ter mais que ${max} caracteres`,
2945
- stringLength: (length) => `String deve ter exatamente ${length} caracteres`,
2946
- stringEmail: 'Endereço de e-mail inválido',
2947
- stringUrl: 'URL inválida',
2948
- stringUuid: 'UUID inválido',
2949
- stringRegex: 'Formato inválido',
2950
- stringStartsWith: (prefix) => `String deve começar com "${prefix}"`,
2951
- stringEndsWith: (suffix) => `String deve terminar com "${suffix}"`,
2952
- stringIncludes: (substring) => `String deve conter "${substring}"`,
2953
- stringIp: 'Endereço IP inválido',
2954
- stringIpv4: 'Endereço IPv4 inválido',
2955
- stringIpv6: 'Endereço IPv6 inválido',
2956
- stringEmpty: 'String não pode estar vazia',
2957
- // Number validation messages
2958
- invalidNumber: 'Número inválido',
2959
- numberMin: (min) => `Número deve ser pelo menos ${min}`,
2960
- numberMax: (max) => `Número não pode ser maior que ${max}`,
2961
- numberInt: 'Número deve ser um inteiro',
2962
- numberPositive: 'Número deve ser positivo',
2963
- numberNegative: 'Número deve ser negativo',
2964
- numberNonnegative: 'Número não pode ser negativo',
2965
- numberNonpositive: 'Número não pode ser positivo',
2966
- numberFinite: 'Número deve ser finito',
2967
- numberSafe: 'Número deve ser um inteiro seguro',
2968
- numberMultipleOf: (value) => `Número deve ser múltiplo de ${value}`,
2969
- // Boolean validation messages
2970
- invalidBoolean: 'Valor booleano inválido',
2971
- // Date validation messages
2972
- invalidDate: 'Data inválida',
2973
- dateMin: (date) => `Data deve ser após ${date.toISOString()}`,
2974
- dateMax: (date) => `Data deve ser antes de ${date.toISOString()}`,
2975
- // Object validation messages
2976
- invalidObject: 'Objeto inválido',
2977
- unexpectedKeys: (keys) => `Chaves inesperadas: ${keys.join(', ')}`,
2978
- // Array validation messages
2979
- invalidArray: 'Array inválido',
2980
- arrayMin: (min) => `Array deve ter pelo menos ${min} elementos`,
2981
- arrayMax: (max) => `Array não pode ter mais que ${max} elementos`,
2982
- arrayLength: (length) => `Array deve ter exatamente ${length} elementos`,
2983
- arrayEmpty: 'Array não pode estar vazio',
2984
- arrayItem: (index, error) => `Item inválido no índice ${index}: ${error}`,
2985
- // Object field validation
2986
- objectField: (field, error) => `Campo inválido "${field}": ${error}`,
2987
- // Union validation messages
2988
- unionNoMatch: (errors) => `Nenhum membro da união correspondeu: ${errors.join(', ')}`,
2989
- // Intersection validation messages
2990
- intersectionError: (error) => `Validação de intersecção falhou: ${error}`,
2991
- // Literal validation messages
2992
- literalExpected: (expected, received) => `Esperado ${expected}, recebido ${received}`,
2993
- // Enum validation messages
2994
- enumExpected: (values, received) => `Esperado um de [${values.join(', ')}], recebido ${received}`,
2995
- // Special type validation messages
2996
- expectedUndefined: 'Esperado undefined',
2997
- neverType: 'Tipo never não pode ser analisado',
2998
- // New advanced type validation messages
2999
- invalidBigint: 'Bigint inválido',
3000
- invalidSymbol: 'Símbolo inválido',
3001
- invalidTuple: 'Tupla inválida',
3002
- tupleLength: (expected, received) => `Tupla deve ter exatamente ${expected} elementos, recebido ${received}`,
3003
- invalidRecord: 'Registro inválido',
3004
- invalidSet: 'Set inválido',
3005
- invalidMap: 'Map inválido',
3006
- // Transformation and refinement messages
3007
- transformError: (error) => `Transformação falhou: ${error}`,
3008
- refinementError: (error) => `Refinamento falhou: ${error}`,
3009
- customValidationError: (error) => `Validação personalizada falhou: ${error}`,
3010
- // Coercion messages
3011
- coercionFailed: (type, value) => `Não é possível converter ${JSON.stringify(value)} para ${type}`,
3012
- // Codec messages
3013
- codecDecodeFailed: 'Failed to decode value',
3014
- codecEncodeFailed: 'Failed to encode value',
3015
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
3016
- // Base64/Hex messages
3017
- invalidBase64: 'Invalid base64 string',
3018
- invalidHex: 'Invalid hexadecimal string',
3019
- // Uint8Array messages
3020
- expectedUint8Array: 'Expected Uint8Array',
3021
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
3022
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
3023
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
3024
- // Generic type error messages
3025
- expectedString: 'Expected string',
3026
- stringExpected: (received, expected) => `Esperado ${expected}, recebido ${received}`,
3027
- stringBoolExpected: (validValues, received) => `String boolean inválida. Esperado um de: ${validValues}, recebido: "${received}"`,
3028
- invalidJson: 'JSON inválido',
3029
- stringPatternInvalid: 'A string não corresponde ao padrão necessário',
3030
- // File validation messages
3031
- invalidFile: 'Expected a File object',
3032
- fileNotSupported: 'File API not supported in this environment',
3033
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
3034
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
3035
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
3036
- // Function validation messages
3037
- invalidFunction: 'Uma função é esperada',
3038
- // CIDR validation messages
3039
- stringCidrv4: 'Bloco CIDR IPv4 inválido',
3040
- stringCidrv6: 'Bloco CIDR IPv6 inválido',
3041
- // Safe extend validation messages
3042
- safeExtendOverlap: (keys) => `Não é possível substituir chaves existentes: ${keys.join(', ')}. Use extend() se quiser substituir.`
3043
- };
3044
-
3045
- var ptBR$1 = /*#__PURE__*/Object.freeze({
3046
- __proto__: null,
3047
- ptBR: ptBR
3048
- });
3049
-
3050
- const esMX = {
3051
- // String validation messages
3052
- invalidString: 'Cadena inválida',
3053
- stringMin: (min) => `La cadena debe tener al menos ${min} caracteres`,
3054
- stringMax: (max) => `La cadena no puede tener más de ${max} caracteres`,
3055
- stringLength: (length) => `La cadena debe tener exactamente ${length} caracteres`,
3056
- stringEmail: 'Dirección de correo inválida',
3057
- stringUrl: 'URL inválida',
3058
- stringUuid: 'UUID inválido',
3059
- stringRegex: 'Formato inválido',
3060
- stringStartsWith: (prefix) => `La cadena debe empezar con "${prefix}"`,
3061
- stringEndsWith: (suffix) => `La cadena debe terminar con "${suffix}"`,
3062
- stringIncludes: (substring) => `La cadena debe incluir "${substring}"`,
3063
- stringIp: 'Dirección IP inválida',
3064
- stringIpv4: 'Dirección IPv4 inválida',
3065
- stringIpv6: 'Dirección IPv6 inválida',
3066
- stringEmpty: 'La cadena no puede estar vacía',
3067
- // Number validation messages
3068
- invalidNumber: 'Número inválido',
3069
- numberMin: (min) => `El número debe ser al menos ${min}`,
3070
- numberMax: (max) => `El número no puede ser mayor a ${max}`,
3071
- numberInt: 'El número debe ser entero',
3072
- numberPositive: 'El número debe ser positivo',
3073
- numberNegative: 'El número debe ser negativo',
3074
- numberNonnegative: 'El número no puede ser negativo',
3075
- numberNonpositive: 'El número no puede ser positivo',
3076
- numberFinite: 'El número debe ser finito',
3077
- numberSafe: 'El número debe ser un entero seguro',
3078
- numberMultipleOf: (value) => `El número debe ser múltiplo de ${value}`,
3079
- // Boolean validation messages
3080
- invalidBoolean: 'Valor booleano inválido',
3081
- // Date validation messages
3082
- invalidDate: 'Fecha inválida',
3083
- dateMin: (date) => `La fecha debe ser después de ${date.toISOString()}`,
3084
- dateMax: (date) => `La fecha debe ser antes de ${date.toISOString()}`,
3085
- // Object validation messages
3086
- invalidObject: 'Objeto inválido',
3087
- unexpectedKeys: (keys) => `Claves inesperadas: ${keys.join(', ')}`,
3088
- // Array validation messages
3089
- invalidArray: 'Array inválido',
3090
- arrayMin: (min) => `El array debe tener al menos ${min} elementos`,
3091
- arrayMax: (max) => `El array no puede tener más de ${max} elementos`,
3092
- arrayLength: (length) => `El array debe tener exactamente ${length} elementos`,
3093
- arrayEmpty: 'El array no puede estar vacío',
3094
- arrayItem: (index, error) => `Elemento inválido en índice ${index}: ${error}`,
3095
- // Object field validation
3096
- objectField: (field, error) => `Campo inválido "${field}": ${error}`,
3097
- // Union validation messages
3098
- unionNoMatch: (errors) => `Ningún miembro de la unión coincidió: ${errors.join(', ')}`,
3099
- // Intersection validation messages
3100
- intersectionError: (error) => `Error de validación de intersección: ${error}`,
3101
- // Literal validation messages
3102
- literalExpected: (expected, received) => `Se esperaba ${expected}, se recibió ${received}`,
3103
- // Enum validation messages
3104
- enumExpected: (values, received) => `Se esperaba uno de [${values.join(', ')}], se recibió ${received}`,
3105
- // Special type validation messages
3106
- expectedUndefined: 'Se esperaba undefined',
3107
- neverType: 'El tipo never no se puede analizar',
3108
- // New advanced type validation messages
3109
- invalidBigint: 'Bigint inválido',
3110
- invalidSymbol: 'Símbolo inválido',
3111
- invalidTuple: 'Tupla inválida',
3112
- tupleLength: (expected, received) => `La tupla debe tener exactamente ${expected} elementos, se recibieron ${received}`,
3113
- invalidRecord: 'Registro inválido',
3114
- invalidSet: 'Set inválido',
3115
- invalidMap: 'Map inválido',
3116
- // Transformation and refinement messages
3117
- transformError: (error) => `Transformación falló: ${error}`,
3118
- refinementError: (error) => `Refinamiento falló: ${error}`,
3119
- customValidationError: (error) => `Validación personalizada falló: ${error}`,
3120
- // Coercion messages
3121
- coercionFailed: (type, value) => `No se puede coaccionar ${JSON.stringify(value)} a ${type}`,
3122
- // Codec messages
3123
- codecDecodeFailed: 'Failed to decode value',
3124
- codecEncodeFailed: 'Failed to encode value',
3125
- codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
3126
- // Base64/Hex messages
3127
- invalidBase64: 'Invalid base64 string',
3128
- invalidHex: 'Invalid hexadecimal string',
3129
- // Uint8Array messages
3130
- expectedUint8Array: 'Expected Uint8Array',
3131
- uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
3132
- uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
3133
- uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
3134
- // Generic type error messages
3135
- expectedString: 'Expected string',
3136
- stringExpected: (received, expected) => `Se esperaba ${expected}, se recibió ${received}`,
3137
- stringBoolExpected: (validValues, received) => `Cadena booleana no válida. Se esperaba uno de: ${validValues}, se recibió: "${received}"`,
3138
- invalidJson: 'JSON no válido',
3139
- stringPatternInvalid: 'La cadena no coincide con el patrón requerido',
3140
- // File validation messages
3141
- invalidFile: 'Expected a File object',
3142
- fileNotSupported: 'File API not supported in this environment',
3143
- fileMinSize: (min) => `File size must be at least ${min} bytes`,
3144
- fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
3145
- fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(', ')}`,
3146
- invalidFunction: 'Se esperaba una función',
3147
- // CIDR validation messages
3148
- stringCidrv4: 'Bloque CIDR IPv4 inválido',
3149
- stringCidrv6: 'Bloque CIDR IPv6 inválido',
3150
- // Safe extend validation messages
3151
- safeExtendOverlap: (keys) => `No se pueden sobrescribir las claves existentes: ${keys.join(', ')}. Use extend() si desea sobrescribir.`
3152
- };
3153
-
3154
- var esMX$1 = /*#__PURE__*/Object.freeze({
3155
- __proto__: null,
3156
- esMX: esMX
3157
- });
3158
-
3159
- exports.getLocale = getLocale;
3160
- exports.getMessages = getMessages;
3161
- exports.getMessagesForLocale = getMessagesForLocale;
179
+ exports.getLocale = locales_runtime.getLocale;
180
+ exports.getMessages = locales_runtime.getMessages;
181
+ exports.getMessagesForLocale = locales_runtime.getMessagesForLocale;
182
+ exports.isLocaleLoaded = locales_runtime.isLocaleLoaded;
183
+ exports.registerLocale = locales_runtime.registerLocale;
3162
184
  exports.getSupportedLocales = getSupportedLocales;
3163
- exports.isLocaleLoaded = isLocaleLoaded;
3164
185
  exports.isLocaleSupported = isLocaleSupported;
3165
186
  exports.preloadLocales = preloadLocales;
3166
- exports.registerLocale = registerLocale;
3167
187
  exports.setLocale = setLocale;
3168
188
  exports.setLocaleAsync = setLocaleAsync;
3169
- //# sourceMappingURL=lazy.cjs.map