@intlayer/design-system 5.5.9 → 5.5.10

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 (81) hide show
  1. package/README.md +42 -9
  2. package/dist/.vite/manifest.json +43 -27
  3. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs +1 -1
  4. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.mjs +1 -1
  5. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.cjs +1 -1
  6. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.mjs +1 -1
  7. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs +1 -1
  8. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.mjs +1 -1
  9. package/dist/components/Auth/SignInForm/useSignInSchema.cjs +1 -1
  10. package/dist/components/Auth/SignInForm/useSignInSchema.mjs +1 -1
  11. package/dist/components/Auth/SignUpForm/useSignUpSchema.cjs +1 -1
  12. package/dist/components/Auth/SignUpForm/useSignUpSchema.mjs +1 -1
  13. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.cjs +1 -1
  14. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.mjs +1 -1
  15. package/dist/components/Auth/useAuth/useCSRF.d.ts +1 -1
  16. package/dist/components/Auth/useAuth/useOAuth2.d.ts +1 -1
  17. package/dist/components/Command/index.d.ts +83 -0
  18. package/dist/components/Command/index.d.ts.map +1 -0
  19. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs +1 -1
  20. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs +1 -1
  21. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs +1 -1
  22. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs +1 -1
  23. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs +1 -1
  24. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs.map +1 -1
  25. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.d.ts +1 -1
  26. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.d.ts.map +1 -1
  27. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs +1 -1
  28. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs.map +1 -1
  29. package/dist/components/DropDown/index.cjs +1 -13
  30. package/dist/components/DropDown/index.cjs.map +1 -1
  31. package/dist/components/DropDown/index.d.ts.map +1 -1
  32. package/dist/components/DropDown/index.mjs +1 -13
  33. package/dist/components/DropDown/index.mjs.map +1 -1
  34. package/dist/components/Form/FormBase.cjs +2 -2
  35. package/dist/components/Form/FormBase.mjs +2 -2
  36. package/dist/components/Form/elements/FormElementWrapper.cjs +3 -3
  37. package/dist/components/Form/elements/FormElementWrapper.mjs +3 -3
  38. package/dist/components/IDE/FileList.cjs +1 -1
  39. package/dist/components/IDE/FileList.cjs.map +1 -1
  40. package/dist/components/IDE/FileList.d.ts +1 -1
  41. package/dist/components/IDE/FileList.d.ts.map +1 -1
  42. package/dist/components/IDE/FileList.mjs +1 -1
  43. package/dist/components/IDE/FileList.mjs.map +1 -1
  44. package/dist/components/KeyboardScreenAdapter/index.cjs +1 -1
  45. package/dist/components/KeyboardScreenAdapter/index.cjs.map +1 -1
  46. package/dist/components/KeyboardScreenAdapter/index.mjs +1 -1
  47. package/dist/components/KeyboardScreenAdapter/index.mjs.map +1 -1
  48. package/dist/components/MarkDownRender/index.cjs +1 -1
  49. package/dist/components/MarkDownRender/index.cjs.map +1 -1
  50. package/dist/components/MarkDownRender/index.mjs +1 -1
  51. package/dist/components/MarkDownRender/index.mjs.map +1 -1
  52. package/dist/components/TextArea/AutoSizeTextArea.cjs +1 -1
  53. package/dist/components/TextArea/AutoSizeTextArea.cjs.map +1 -1
  54. package/dist/components/TextArea/AutoSizeTextArea.mjs +1 -1
  55. package/dist/components/TextArea/AutoSizeTextArea.mjs.map +1 -1
  56. package/dist/hooks/intlayerAPIHooks.d.ts +54 -54
  57. package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
  58. package/dist/hooks/useIntlayerAPI.d.ts +65 -65
  59. package/dist/hooks/useIntlayerAPI.d.ts.map +1 -1
  60. package/dist/index-BCuMWKyy.js.map +1 -1
  61. package/dist/index-BYzBot7l.cjs.map +1 -1
  62. package/dist/parse-BJVwmz92.cjs +511 -0
  63. package/dist/parse-BJVwmz92.cjs.map +1 -0
  64. package/dist/parse-pnJgclyf.js +512 -0
  65. package/dist/parse-pnJgclyf.js.map +1 -0
  66. package/dist/{schemas-DJhUvjsx.cjs → schemas-DlCjM5d_.cjs} +260 -726
  67. package/dist/schemas-DlCjM5d_.cjs.map +1 -0
  68. package/dist/{schemas-7jC6hy_u.js → schemas-itjzX6bG.js} +21 -487
  69. package/dist/schemas-itjzX6bG.js.map +1 -0
  70. package/dist/tailwind.css +2 -2
  71. package/dist/zod-D4WapgbL.js +92 -0
  72. package/dist/zod-D4WapgbL.js.map +1 -0
  73. package/dist/zod-K7y5gPX4.cjs +91 -0
  74. package/dist/zod-K7y5gPX4.cjs.map +1 -0
  75. package/package.json +15 -15
  76. package/dist/schemas-7jC6hy_u.js.map +0 -1
  77. package/dist/schemas-DJhUvjsx.cjs.map +0 -1
  78. package/dist/zod-DIGMabE8.js +0 -48
  79. package/dist/zod-DIGMabE8.js.map +0 -1
  80. package/dist/zod-DpajDxlG.cjs +0 -47
  81. package/dist/zod-DpajDxlG.cjs.map +0 -1
@@ -0,0 +1,511 @@
1
+ "use strict";
2
+ function $constructor(name, initializer2, params) {
3
+ function init(inst, def) {
4
+ var _a;
5
+ Object.defineProperty(inst, "_zod", {
6
+ value: inst._zod ?? {},
7
+ enumerable: false
8
+ });
9
+ (_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());
10
+ inst._zod.traits.add(name);
11
+ initializer2(inst, def);
12
+ for (const k in _.prototype) {
13
+ if (!(k in inst))
14
+ Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) });
15
+ }
16
+ inst._zod.constr = _;
17
+ inst._zod.def = def;
18
+ }
19
+ const Parent = params?.Parent ?? Object;
20
+ class Definition extends Parent {
21
+ }
22
+ Object.defineProperty(Definition, "name", { value: name });
23
+ function _(def) {
24
+ var _a;
25
+ const inst = params?.Parent ? new Definition() : this;
26
+ init(inst, def);
27
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
28
+ for (const fn of inst._zod.deferred) {
29
+ fn();
30
+ }
31
+ return inst;
32
+ }
33
+ Object.defineProperty(_, "init", { value: init });
34
+ Object.defineProperty(_, Symbol.hasInstance, {
35
+ value: (inst) => {
36
+ if (params?.Parent && inst instanceof params.Parent)
37
+ return true;
38
+ return inst?._zod?.traits?.has(name);
39
+ }
40
+ });
41
+ Object.defineProperty(_, "name", { value: name });
42
+ return _;
43
+ }
44
+ class $ZodAsyncError extends Error {
45
+ constructor() {
46
+ super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
47
+ }
48
+ }
49
+ const globalConfig = {};
50
+ function config(newConfig) {
51
+ return globalConfig;
52
+ }
53
+ function getEnumValues(entries) {
54
+ const numericValues = Object.values(entries).filter((v) => typeof v === "number");
55
+ const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
56
+ return values;
57
+ }
58
+ function jsonStringifyReplacer(_, value) {
59
+ if (typeof value === "bigint")
60
+ return value.toString();
61
+ return value;
62
+ }
63
+ function cached(getter) {
64
+ return {
65
+ get value() {
66
+ {
67
+ const value = getter();
68
+ Object.defineProperty(this, "value", { value });
69
+ return value;
70
+ }
71
+ }
72
+ };
73
+ }
74
+ function nullish(input) {
75
+ return input === null || input === void 0;
76
+ }
77
+ function cleanRegex(source) {
78
+ const start = source.startsWith("^") ? 1 : 0;
79
+ const end = source.endsWith("$") ? source.length - 1 : source.length;
80
+ return source.slice(start, end);
81
+ }
82
+ function defineLazy(object, key, getter) {
83
+ Object.defineProperty(object, key, {
84
+ get() {
85
+ {
86
+ const value = getter();
87
+ object[key] = value;
88
+ return value;
89
+ }
90
+ },
91
+ set(v) {
92
+ Object.defineProperty(object, key, {
93
+ value: v
94
+ // configurable: true,
95
+ });
96
+ },
97
+ configurable: true
98
+ });
99
+ }
100
+ function assignProp(target, prop, value) {
101
+ Object.defineProperty(target, prop, {
102
+ value,
103
+ writable: true,
104
+ enumerable: true,
105
+ configurable: true
106
+ });
107
+ }
108
+ function randomString(length = 10) {
109
+ const chars = "abcdefghijklmnopqrstuvwxyz";
110
+ let str = "";
111
+ for (let i = 0; i < length; i++) {
112
+ str += chars[Math.floor(Math.random() * chars.length)];
113
+ }
114
+ return str;
115
+ }
116
+ function esc(str) {
117
+ return JSON.stringify(str);
118
+ }
119
+ const captureStackTrace = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {
120
+ };
121
+ function isObject(data) {
122
+ return typeof data === "object" && data !== null && !Array.isArray(data);
123
+ }
124
+ const allowsEval = cached(() => {
125
+ if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
126
+ return false;
127
+ }
128
+ try {
129
+ const F = Function;
130
+ new F("");
131
+ return true;
132
+ } catch (_) {
133
+ return false;
134
+ }
135
+ });
136
+ function isPlainObject(o) {
137
+ if (isObject(o) === false)
138
+ return false;
139
+ const ctor = o.constructor;
140
+ if (ctor === void 0)
141
+ return true;
142
+ const prot = ctor.prototype;
143
+ if (isObject(prot) === false)
144
+ return false;
145
+ if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) {
146
+ return false;
147
+ }
148
+ return true;
149
+ }
150
+ const propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
151
+ function escapeRegex(str) {
152
+ return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
153
+ }
154
+ function clone(inst, def, params) {
155
+ const cl = new inst._zod.constr(def ?? inst._zod.def);
156
+ if (!def || params?.parent)
157
+ cl._zod.parent = inst;
158
+ return cl;
159
+ }
160
+ function normalizeParams(_params) {
161
+ const params = _params;
162
+ if (!params)
163
+ return {};
164
+ if (typeof params === "string")
165
+ return { error: () => params };
166
+ if (params?.message !== void 0) {
167
+ if (params?.error !== void 0)
168
+ throw new Error("Cannot specify both `message` and `error` params");
169
+ params.error = params.message;
170
+ }
171
+ delete params.message;
172
+ if (typeof params.error === "string")
173
+ return { ...params, error: () => params.error };
174
+ return params;
175
+ }
176
+ function optionalKeys(shape) {
177
+ return Object.keys(shape).filter((k) => {
178
+ return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
179
+ });
180
+ }
181
+ function pick(schema, mask) {
182
+ const newShape = {};
183
+ const currDef = schema._zod.def;
184
+ for (const key in mask) {
185
+ if (!(key in currDef.shape)) {
186
+ throw new Error(`Unrecognized key: "${key}"`);
187
+ }
188
+ if (!mask[key])
189
+ continue;
190
+ newShape[key] = currDef.shape[key];
191
+ }
192
+ return clone(schema, {
193
+ ...schema._zod.def,
194
+ shape: newShape,
195
+ checks: []
196
+ });
197
+ }
198
+ function omit(schema, mask) {
199
+ const newShape = { ...schema._zod.def.shape };
200
+ const currDef = schema._zod.def;
201
+ for (const key in mask) {
202
+ if (!(key in currDef.shape)) {
203
+ throw new Error(`Unrecognized key: "${key}"`);
204
+ }
205
+ if (!mask[key])
206
+ continue;
207
+ delete newShape[key];
208
+ }
209
+ return clone(schema, {
210
+ ...schema._zod.def,
211
+ shape: newShape,
212
+ checks: []
213
+ });
214
+ }
215
+ function extend(schema, shape) {
216
+ const def = {
217
+ ...schema._zod.def,
218
+ get shape() {
219
+ const _shape = { ...schema._zod.def.shape, ...shape };
220
+ assignProp(this, "shape", _shape);
221
+ return _shape;
222
+ },
223
+ checks: []
224
+ // delete existing checks
225
+ };
226
+ return clone(schema, def);
227
+ }
228
+ function merge(a, b) {
229
+ return clone(a, {
230
+ ...a._zod.def,
231
+ get shape() {
232
+ const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
233
+ assignProp(this, "shape", _shape);
234
+ return _shape;
235
+ },
236
+ catchall: b._zod.def.catchall,
237
+ checks: []
238
+ // delete existing checks
239
+ });
240
+ }
241
+ function partial(Class, schema, mask) {
242
+ const oldShape = schema._zod.def.shape;
243
+ const shape = { ...oldShape };
244
+ if (mask) {
245
+ for (const key in mask) {
246
+ if (!(key in oldShape)) {
247
+ throw new Error(`Unrecognized key: "${key}"`);
248
+ }
249
+ if (!mask[key])
250
+ continue;
251
+ shape[key] = Class ? new Class({
252
+ type: "optional",
253
+ innerType: oldShape[key]
254
+ }) : oldShape[key];
255
+ }
256
+ } else {
257
+ for (const key in oldShape) {
258
+ shape[key] = Class ? new Class({
259
+ type: "optional",
260
+ innerType: oldShape[key]
261
+ }) : oldShape[key];
262
+ }
263
+ }
264
+ return clone(schema, {
265
+ ...schema._zod.def,
266
+ shape,
267
+ checks: []
268
+ });
269
+ }
270
+ function required(Class, schema, mask) {
271
+ const oldShape = schema._zod.def.shape;
272
+ const shape = { ...oldShape };
273
+ if (mask) {
274
+ for (const key in mask) {
275
+ if (!(key in shape)) {
276
+ throw new Error(`Unrecognized key: "${key}"`);
277
+ }
278
+ if (!mask[key])
279
+ continue;
280
+ shape[key] = new Class({
281
+ type: "nonoptional",
282
+ innerType: oldShape[key]
283
+ });
284
+ }
285
+ } else {
286
+ for (const key in oldShape) {
287
+ shape[key] = new Class({
288
+ type: "nonoptional",
289
+ innerType: oldShape[key]
290
+ });
291
+ }
292
+ }
293
+ return clone(schema, {
294
+ ...schema._zod.def,
295
+ shape,
296
+ // optional: [],
297
+ checks: []
298
+ });
299
+ }
300
+ function aborted(x, startIndex = 0) {
301
+ for (let i = startIndex; i < x.issues.length; i++) {
302
+ if (x.issues[i].continue !== true)
303
+ return true;
304
+ }
305
+ return false;
306
+ }
307
+ function prefixIssues(path, issues) {
308
+ return issues.map((iss) => {
309
+ var _a;
310
+ (_a = iss).path ?? (_a.path = []);
311
+ iss.path.unshift(path);
312
+ return iss;
313
+ });
314
+ }
315
+ function unwrapMessage(message) {
316
+ return typeof message === "string" ? message : message?.message;
317
+ }
318
+ function finalizeIssue(iss, ctx, config2) {
319
+ const full = { ...iss, path: iss.path ?? [] };
320
+ if (!iss.message) {
321
+ const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
322
+ full.message = message;
323
+ }
324
+ delete full.inst;
325
+ delete full.continue;
326
+ if (!ctx?.reportInput) {
327
+ delete full.input;
328
+ }
329
+ return full;
330
+ }
331
+ function getLengthableOrigin(input) {
332
+ if (Array.isArray(input))
333
+ return "array";
334
+ if (typeof input === "string")
335
+ return "string";
336
+ return "unknown";
337
+ }
338
+ function issue(...args) {
339
+ const [iss, input, inst] = args;
340
+ if (typeof iss === "string") {
341
+ return {
342
+ message: iss,
343
+ code: "custom",
344
+ input,
345
+ inst
346
+ };
347
+ }
348
+ return { ...iss };
349
+ }
350
+ const initializer = (inst, def) => {
351
+ inst.name = "$ZodError";
352
+ Object.defineProperty(inst, "_zod", {
353
+ value: inst._zod,
354
+ enumerable: false
355
+ });
356
+ Object.defineProperty(inst, "issues", {
357
+ value: def,
358
+ enumerable: false
359
+ });
360
+ Object.defineProperty(inst, "message", {
361
+ get() {
362
+ return JSON.stringify(def, jsonStringifyReplacer, 2);
363
+ },
364
+ enumerable: true
365
+ // configurable: false,
366
+ });
367
+ };
368
+ const $ZodError = $constructor("$ZodError", initializer);
369
+ const $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
370
+ function flattenError(error, mapper = (issue2) => issue2.message) {
371
+ const fieldErrors = {};
372
+ const formErrors = [];
373
+ for (const sub of error.issues) {
374
+ if (sub.path.length > 0) {
375
+ fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
376
+ fieldErrors[sub.path[0]].push(mapper(sub));
377
+ } else {
378
+ formErrors.push(mapper(sub));
379
+ }
380
+ }
381
+ return { formErrors, fieldErrors };
382
+ }
383
+ function formatError(error, _mapper) {
384
+ const mapper = _mapper || function(issue2) {
385
+ return issue2.message;
386
+ };
387
+ const fieldErrors = { _errors: [] };
388
+ const processError = (error2) => {
389
+ for (const issue2 of error2.issues) {
390
+ if (issue2.code === "invalid_union" && issue2.errors.length) {
391
+ issue2.errors.map((issues) => processError({ issues }));
392
+ } else if (issue2.code === "invalid_key") {
393
+ processError({ issues: issue2.issues });
394
+ } else if (issue2.code === "invalid_element") {
395
+ processError({ issues: issue2.issues });
396
+ } else if (issue2.path.length === 0) {
397
+ fieldErrors._errors.push(mapper(issue2));
398
+ } else {
399
+ let curr = fieldErrors;
400
+ let i = 0;
401
+ while (i < issue2.path.length) {
402
+ const el = issue2.path[i];
403
+ const terminal = i === issue2.path.length - 1;
404
+ if (!terminal) {
405
+ curr[el] = curr[el] || { _errors: [] };
406
+ } else {
407
+ curr[el] = curr[el] || { _errors: [] };
408
+ curr[el]._errors.push(mapper(issue2));
409
+ }
410
+ curr = curr[el];
411
+ i++;
412
+ }
413
+ }
414
+ }
415
+ };
416
+ processError(error);
417
+ return fieldErrors;
418
+ }
419
+ const _parse = (_Err) => (schema, value, _ctx, _params) => {
420
+ const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
421
+ const result = schema._zod.run({ value, issues: [] }, ctx);
422
+ if (result instanceof Promise) {
423
+ throw new $ZodAsyncError();
424
+ }
425
+ if (result.issues.length) {
426
+ const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
427
+ captureStackTrace(e, _params?.callee);
428
+ throw e;
429
+ }
430
+ return result.value;
431
+ };
432
+ const parse = /* @__PURE__ */ _parse($ZodRealError);
433
+ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
434
+ const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
435
+ let result = schema._zod.run({ value, issues: [] }, ctx);
436
+ if (result instanceof Promise)
437
+ result = await result;
438
+ if (result.issues.length) {
439
+ const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
440
+ captureStackTrace(e, params?.callee);
441
+ throw e;
442
+ }
443
+ return result.value;
444
+ };
445
+ const parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);
446
+ const _safeParse = (_Err) => (schema, value, _ctx) => {
447
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
448
+ const result = schema._zod.run({ value, issues: [] }, ctx);
449
+ if (result instanceof Promise) {
450
+ throw new $ZodAsyncError();
451
+ }
452
+ return result.issues.length ? {
453
+ success: false,
454
+ error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
455
+ } : { success: true, data: result.value };
456
+ };
457
+ const safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
458
+ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
459
+ const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
460
+ let result = schema._zod.run({ value, issues: [] }, ctx);
461
+ if (result instanceof Promise)
462
+ result = await result;
463
+ return result.issues.length ? {
464
+ success: false,
465
+ error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
466
+ } : { success: true, data: result.value };
467
+ };
468
+ const safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
469
+ exports.$ZodAsyncError = $ZodAsyncError;
470
+ exports.$ZodError = $ZodError;
471
+ exports.$constructor = $constructor;
472
+ exports._parse = _parse;
473
+ exports._parseAsync = _parseAsync;
474
+ exports._safeParse = _safeParse;
475
+ exports._safeParseAsync = _safeParseAsync;
476
+ exports.aborted = aborted;
477
+ exports.allowsEval = allowsEval;
478
+ exports.assignProp = assignProp;
479
+ exports.cached = cached;
480
+ exports.cleanRegex = cleanRegex;
481
+ exports.clone = clone;
482
+ exports.config = config;
483
+ exports.defineLazy = defineLazy;
484
+ exports.esc = esc;
485
+ exports.escapeRegex = escapeRegex;
486
+ exports.extend = extend;
487
+ exports.finalizeIssue = finalizeIssue;
488
+ exports.flattenError = flattenError;
489
+ exports.formatError = formatError;
490
+ exports.getEnumValues = getEnumValues;
491
+ exports.getLengthableOrigin = getLengthableOrigin;
492
+ exports.globalConfig = globalConfig;
493
+ exports.isObject = isObject;
494
+ exports.isPlainObject = isPlainObject;
495
+ exports.issue = issue;
496
+ exports.merge = merge;
497
+ exports.normalizeParams = normalizeParams;
498
+ exports.nullish = nullish;
499
+ exports.omit = omit;
500
+ exports.optionalKeys = optionalKeys;
501
+ exports.parse = parse;
502
+ exports.parseAsync = parseAsync;
503
+ exports.partial = partial;
504
+ exports.pick = pick;
505
+ exports.prefixIssues = prefixIssues;
506
+ exports.propertyKeyTypes = propertyKeyTypes;
507
+ exports.randomString = randomString;
508
+ exports.required = required;
509
+ exports.safeParse = safeParse;
510
+ exports.safeParseAsync = safeParseAsync;
511
+ //# sourceMappingURL=parse-BJVwmz92.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-BJVwmz92.cjs","sources":["../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/core.js","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/util.js","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/errors.js","../../../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/parse.js"],"sourcesContent":["export /*@__NO_SIDE_EFFECTS__*/ function $constructor(name, initializer, params) {\n function init(inst, def) {\n var _a;\n Object.defineProperty(inst, \"_zod\", {\n value: inst._zod ?? {},\n enumerable: false,\n });\n (_a = inst._zod).traits ?? (_a.traits = new Set());\n inst._zod.traits.add(name);\n initializer(inst, def);\n // support prototype modifications\n for (const k in _.prototype) {\n if (!(k in inst))\n Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) });\n }\n inst._zod.constr = _;\n inst._zod.def = def;\n }\n // doesn't work if Parent has a constructor with arguments\n const Parent = params?.Parent ?? Object;\n class Definition extends Parent {\n }\n Object.defineProperty(Definition, \"name\", { value: name });\n function _(def) {\n var _a;\n const inst = params?.Parent ? new Definition() : this;\n init(inst, def);\n (_a = inst._zod).deferred ?? (_a.deferred = []);\n for (const fn of inst._zod.deferred) {\n fn();\n }\n return inst;\n }\n Object.defineProperty(_, \"init\", { value: init });\n Object.defineProperty(_, Symbol.hasInstance, {\n value: (inst) => {\n if (params?.Parent && inst instanceof params.Parent)\n return true;\n return inst?._zod?.traits?.has(name);\n },\n });\n Object.defineProperty(_, \"name\", { value: name });\n return _;\n}\n////////////////////////////// UTILITIES ///////////////////////////////////////\nexport const $brand = Symbol(\"zod_brand\");\nexport class $ZodAsyncError extends Error {\n constructor() {\n super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);\n }\n}\nexport const globalConfig = {};\nexport function config(newConfig) {\n if (newConfig)\n Object.assign(globalConfig, newConfig);\n return globalConfig;\n}\n","// functions\nexport function assertEqual(val) {\n return val;\n}\nexport function assertNotEqual(val) {\n return val;\n}\nexport function assertIs(_arg) { }\nexport function assertNever(_x) {\n throw new Error();\n}\nexport function assert(_) { }\nexport function getEnumValues(entries) {\n const numericValues = Object.values(entries).filter((v) => typeof v === \"number\");\n const values = Object.entries(entries)\n .filter(([k, _]) => numericValues.indexOf(+k) === -1)\n .map(([_, v]) => v);\n return values;\n}\nexport function joinValues(array, separator = \"|\") {\n return array.map((val) => stringifyPrimitive(val)).join(separator);\n}\nexport function jsonStringifyReplacer(_, value) {\n if (typeof value === \"bigint\")\n return value.toString();\n return value;\n}\nexport function cached(getter) {\n const set = false;\n return {\n get value() {\n if (!set) {\n const value = getter();\n Object.defineProperty(this, \"value\", { value });\n return value;\n }\n throw new Error(\"cached value already set\");\n },\n };\n}\nexport function nullish(input) {\n return input === null || input === undefined;\n}\nexport function cleanRegex(source) {\n const start = source.startsWith(\"^\") ? 1 : 0;\n const end = source.endsWith(\"$\") ? source.length - 1 : source.length;\n return source.slice(start, end);\n}\nexport function floatSafeRemainder(val, step) {\n const valDecCount = (val.toString().split(\".\")[1] || \"\").length;\n const stepDecCount = (step.toString().split(\".\")[1] || \"\").length;\n const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;\n const valInt = Number.parseInt(val.toFixed(decCount).replace(\".\", \"\"));\n const stepInt = Number.parseInt(step.toFixed(decCount).replace(\".\", \"\"));\n return (valInt % stepInt) / 10 ** decCount;\n}\nexport function defineLazy(object, key, getter) {\n const set = false;\n Object.defineProperty(object, key, {\n get() {\n if (!set) {\n const value = getter();\n object[key] = value;\n return value;\n }\n throw new Error(\"cached value already set\");\n },\n set(v) {\n Object.defineProperty(object, key, {\n value: v,\n // configurable: true,\n });\n // object[key] = v;\n },\n configurable: true,\n });\n}\nexport function assignProp(target, prop, value) {\n Object.defineProperty(target, prop, {\n value,\n writable: true,\n enumerable: true,\n configurable: true,\n });\n}\nexport function getElementAtPath(obj, path) {\n if (!path)\n return obj;\n return path.reduce((acc, key) => acc?.[key], obj);\n}\nexport function promiseAllObject(promisesObj) {\n const keys = Object.keys(promisesObj);\n const promises = keys.map((key) => promisesObj[key]);\n return Promise.all(promises).then((results) => {\n const resolvedObj = {};\n for (let i = 0; i < keys.length; i++) {\n resolvedObj[keys[i]] = results[i];\n }\n return resolvedObj;\n });\n}\nexport function randomString(length = 10) {\n const chars = \"abcdefghijklmnopqrstuvwxyz\";\n let str = \"\";\n for (let i = 0; i < length; i++) {\n str += chars[Math.floor(Math.random() * chars.length)];\n }\n return str;\n}\nexport function esc(str) {\n return JSON.stringify(str);\n}\nexport const captureStackTrace = Error.captureStackTrace\n ? Error.captureStackTrace\n : (..._args) => { };\nexport function isObject(data) {\n return typeof data === \"object\" && data !== null && !Array.isArray(data);\n}\nexport const allowsEval = cached(() => {\n if (typeof navigator !== \"undefined\" && navigator?.userAgent?.includes(\"Cloudflare\")) {\n return false;\n }\n try {\n const F = Function;\n new F(\"\");\n return true;\n }\n catch (_) {\n return false;\n }\n});\nfunction _isObject(o) {\n return Object.prototype.toString.call(o) === \"[object Object]\";\n}\nexport function isPlainObject(o) {\n if (isObject(o) === false)\n return false;\n // modified constructor\n const ctor = o.constructor;\n if (ctor === undefined)\n return true;\n // modified prototype\n const prot = ctor.prototype;\n if (isObject(prot) === false)\n return false;\n // ctor doesn't have static `isPrototypeOf`\n if (Object.prototype.hasOwnProperty.call(prot, \"isPrototypeOf\") === false) {\n return false;\n }\n return true;\n}\nexport function numKeys(data) {\n let keyCount = 0;\n for (const key in data) {\n if (Object.prototype.hasOwnProperty.call(data, key)) {\n keyCount++;\n }\n }\n return keyCount;\n}\nexport const getParsedType = (data) => {\n const t = typeof data;\n switch (t) {\n case \"undefined\":\n return \"undefined\";\n case \"string\":\n return \"string\";\n case \"number\":\n return Number.isNaN(data) ? \"nan\" : \"number\";\n case \"boolean\":\n return \"boolean\";\n case \"function\":\n return \"function\";\n case \"bigint\":\n return \"bigint\";\n case \"symbol\":\n return \"symbol\";\n case \"object\":\n if (Array.isArray(data)) {\n return \"array\";\n }\n if (data === null) {\n return \"null\";\n }\n if (data.then && typeof data.then === \"function\" && data.catch && typeof data.catch === \"function\") {\n return \"promise\";\n }\n if (typeof Map !== \"undefined\" && data instanceof Map) {\n return \"map\";\n }\n if (typeof Set !== \"undefined\" && data instanceof Set) {\n return \"set\";\n }\n if (typeof Date !== \"undefined\" && data instanceof Date) {\n return \"date\";\n }\n if (typeof File !== \"undefined\" && data instanceof File) {\n return \"file\";\n }\n return \"object\";\n default:\n throw new Error(`Unknown data type: ${t}`);\n }\n};\nexport const propertyKeyTypes = new Set([\"string\", \"number\", \"symbol\"]);\nexport const primitiveTypes = new Set([\"string\", \"number\", \"bigint\", \"boolean\", \"symbol\", \"undefined\"]);\nexport function escapeRegex(str) {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n// zod-specific utils\nexport function clone(inst, def, params) {\n const cl = new inst._zod.constr(def ?? inst._zod.def);\n if (!def || params?.parent)\n cl._zod.parent = inst;\n return cl;\n}\nexport function normalizeParams(_params) {\n const params = _params;\n if (!params)\n return {};\n if (typeof params === \"string\")\n return { error: () => params };\n if (params?.message !== undefined) {\n if (params?.error !== undefined)\n throw new Error(\"Cannot specify both `message` and `error` params\");\n params.error = params.message;\n }\n delete params.message;\n if (typeof params.error === \"string\")\n return { ...params, error: () => params.error };\n return params;\n}\nexport function createTransparentProxy(getter) {\n let target;\n return new Proxy({}, {\n get(_, prop, receiver) {\n target ?? (target = getter());\n return Reflect.get(target, prop, receiver);\n },\n set(_, prop, value, receiver) {\n target ?? (target = getter());\n return Reflect.set(target, prop, value, receiver);\n },\n has(_, prop) {\n target ?? (target = getter());\n return Reflect.has(target, prop);\n },\n deleteProperty(_, prop) {\n target ?? (target = getter());\n return Reflect.deleteProperty(target, prop);\n },\n ownKeys(_) {\n target ?? (target = getter());\n return Reflect.ownKeys(target);\n },\n getOwnPropertyDescriptor(_, prop) {\n target ?? (target = getter());\n return Reflect.getOwnPropertyDescriptor(target, prop);\n },\n defineProperty(_, prop, descriptor) {\n target ?? (target = getter());\n return Reflect.defineProperty(target, prop, descriptor);\n },\n });\n}\nexport function stringifyPrimitive(value) {\n if (typeof value === \"bigint\")\n return value.toString() + \"n\";\n if (typeof value === \"string\")\n return `\"${value}\"`;\n return `${value}`;\n}\nexport function optionalKeys(shape) {\n return Object.keys(shape).filter((k) => {\n return shape[k]._zod.optin === \"optional\" && shape[k]._zod.optout === \"optional\";\n });\n}\nexport const NUMBER_FORMAT_RANGES = {\n safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],\n int32: [-2147483648, 2147483647],\n uint32: [0, 4294967295],\n float32: [-3.4028234663852886e38, 3.4028234663852886e38],\n float64: [-Number.MAX_VALUE, Number.MAX_VALUE],\n};\nexport const BIGINT_FORMAT_RANGES = {\n int64: [/* @__PURE__*/ BigInt(\"-9223372036854775808\"), /* @__PURE__*/ BigInt(\"9223372036854775807\")],\n uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt(\"18446744073709551615\")],\n};\nexport function pick(schema, mask) {\n const newShape = {};\n const currDef = schema._zod.def; //.shape;\n for (const key in mask) {\n if (!(key in currDef.shape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n // pick key\n newShape[key] = currDef.shape[key];\n }\n return clone(schema, {\n ...schema._zod.def,\n shape: newShape,\n checks: [],\n });\n}\nexport function omit(schema, mask) {\n const newShape = { ...schema._zod.def.shape };\n const currDef = schema._zod.def; //.shape;\n for (const key in mask) {\n if (!(key in currDef.shape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n delete newShape[key];\n }\n return clone(schema, {\n ...schema._zod.def,\n shape: newShape,\n checks: [],\n });\n}\nexport function extend(schema, shape) {\n const def = {\n ...schema._zod.def,\n get shape() {\n const _shape = { ...schema._zod.def.shape, ...shape };\n assignProp(this, \"shape\", _shape); // self-caching\n return _shape;\n },\n checks: [], // delete existing checks\n };\n return clone(schema, def);\n}\nexport function merge(a, b) {\n return clone(a, {\n ...a._zod.def,\n get shape() {\n const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };\n assignProp(this, \"shape\", _shape); // self-caching\n return _shape;\n },\n catchall: b._zod.def.catchall,\n checks: [], // delete existing checks\n });\n}\nexport function partial(Class, schema, mask) {\n const oldShape = schema._zod.def.shape;\n const shape = { ...oldShape };\n if (mask) {\n for (const key in mask) {\n if (!(key in oldShape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n shape[key] = Class\n ? new Class({\n type: \"optional\",\n innerType: oldShape[key],\n })\n : oldShape[key];\n }\n }\n else {\n for (const key in oldShape) {\n shape[key] = Class\n ? new Class({\n type: \"optional\",\n innerType: oldShape[key],\n })\n : oldShape[key];\n }\n }\n return clone(schema, {\n ...schema._zod.def,\n shape,\n checks: [],\n });\n}\nexport function required(Class, schema, mask) {\n const oldShape = schema._zod.def.shape;\n const shape = { ...oldShape };\n if (mask) {\n for (const key in mask) {\n if (!(key in shape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n // overwrite with non-optional\n shape[key] = new Class({\n type: \"nonoptional\",\n innerType: oldShape[key],\n });\n }\n }\n else {\n for (const key in oldShape) {\n // overwrite with non-optional\n shape[key] = new Class({\n type: \"nonoptional\",\n innerType: oldShape[key],\n });\n }\n }\n return clone(schema, {\n ...schema._zod.def,\n shape,\n // optional: [],\n checks: [],\n });\n}\nexport function aborted(x, startIndex = 0) {\n for (let i = startIndex; i < x.issues.length; i++) {\n if (x.issues[i].continue !== true)\n return true;\n }\n return false;\n}\nexport function prefixIssues(path, issues) {\n return issues.map((iss) => {\n var _a;\n (_a = iss).path ?? (_a.path = []);\n iss.path.unshift(path);\n return iss;\n });\n}\nexport function unwrapMessage(message) {\n return typeof message === \"string\" ? message : message?.message;\n}\nexport function finalizeIssue(iss, ctx, config) {\n const full = { ...iss, path: iss.path ?? [] };\n // for backwards compatibility\n if (!iss.message) {\n const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ??\n unwrapMessage(ctx?.error?.(iss)) ??\n unwrapMessage(config.customError?.(iss)) ??\n unwrapMessage(config.localeError?.(iss)) ??\n \"Invalid input\";\n full.message = message;\n }\n // delete (full as any).def;\n delete full.inst;\n delete full.continue;\n if (!ctx?.reportInput) {\n delete full.input;\n }\n return full;\n}\nexport function getSizableOrigin(input) {\n if (input instanceof Set)\n return \"set\";\n if (input instanceof Map)\n return \"map\";\n if (input instanceof File)\n return \"file\";\n return \"unknown\";\n}\nexport function getLengthableOrigin(input) {\n if (Array.isArray(input))\n return \"array\";\n if (typeof input === \"string\")\n return \"string\";\n return \"unknown\";\n}\nexport function issue(...args) {\n const [iss, input, inst] = args;\n if (typeof iss === \"string\") {\n return {\n message: iss,\n code: \"custom\",\n input,\n inst,\n };\n }\n return { ...iss };\n}\nexport function cleanEnum(obj) {\n return Object.entries(obj)\n .filter(([k, _]) => {\n // return true if NaN, meaning it's not a number, thus a string key\n return Number.isNaN(Number.parseInt(k, 10));\n })\n .map((el) => el[1]);\n}\n// instanceof\nexport class Class {\n constructor(..._args) { }\n}\n","import { $constructor } from \"./core.js\";\nimport * as util from \"./util.js\";\nconst initializer = (inst, def) => {\n inst.name = \"$ZodError\";\n Object.defineProperty(inst, \"_zod\", {\n value: inst._zod,\n enumerable: false,\n });\n Object.defineProperty(inst, \"issues\", {\n value: def,\n enumerable: false,\n });\n Object.defineProperty(inst, \"message\", {\n get() {\n return JSON.stringify(def, util.jsonStringifyReplacer, 2);\n },\n enumerable: true,\n // configurable: false,\n });\n};\nexport const $ZodError = $constructor(\"$ZodError\", initializer);\nexport const $ZodRealError = $constructor(\"$ZodError\", initializer, { Parent: Error });\nexport function flattenError(error, mapper = (issue) => issue.message) {\n const fieldErrors = {};\n const formErrors = [];\n for (const sub of error.issues) {\n if (sub.path.length > 0) {\n fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];\n fieldErrors[sub.path[0]].push(mapper(sub));\n }\n else {\n formErrors.push(mapper(sub));\n }\n }\n return { formErrors, fieldErrors };\n}\nexport function formatError(error, _mapper) {\n const mapper = _mapper ||\n function (issue) {\n return issue.message;\n };\n const fieldErrors = { _errors: [] };\n const processError = (error) => {\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\" && issue.errors.length) {\n issue.errors.map((issues) => processError({ issues }));\n }\n else if (issue.code === \"invalid_key\") {\n processError({ issues: issue.issues });\n }\n else if (issue.code === \"invalid_element\") {\n processError({ issues: issue.issues });\n }\n else if (issue.path.length === 0) {\n fieldErrors._errors.push(mapper(issue));\n }\n else {\n let curr = fieldErrors;\n let i = 0;\n while (i < issue.path.length) {\n const el = issue.path[i];\n const terminal = i === issue.path.length - 1;\n if (!terminal) {\n curr[el] = curr[el] || { _errors: [] };\n }\n else {\n curr[el] = curr[el] || { _errors: [] };\n curr[el]._errors.push(mapper(issue));\n }\n curr = curr[el];\n i++;\n }\n }\n }\n };\n processError(error);\n return fieldErrors;\n}\nexport function treeifyError(error, _mapper) {\n const mapper = _mapper ||\n function (issue) {\n return issue.message;\n };\n const result = { errors: [] };\n const processError = (error, path = []) => {\n var _a, _b;\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\" && issue.errors.length) {\n // regular union error\n issue.errors.map((issues) => processError({ issues }, issue.path));\n }\n else if (issue.code === \"invalid_key\") {\n processError({ issues: issue.issues }, issue.path);\n }\n else if (issue.code === \"invalid_element\") {\n processError({ issues: issue.issues }, issue.path);\n }\n else {\n const fullpath = [...path, ...issue.path];\n if (fullpath.length === 0) {\n result.errors.push(mapper(issue));\n continue;\n }\n let curr = result;\n let i = 0;\n while (i < fullpath.length) {\n const el = fullpath[i];\n const terminal = i === fullpath.length - 1;\n if (typeof el === \"string\") {\n curr.properties ?? (curr.properties = {});\n (_a = curr.properties)[el] ?? (_a[el] = { errors: [] });\n curr = curr.properties[el];\n }\n else {\n curr.items ?? (curr.items = []);\n (_b = curr.items)[el] ?? (_b[el] = { errors: [] });\n curr = curr.items[el];\n }\n if (terminal) {\n curr.errors.push(mapper(issue));\n }\n i++;\n }\n }\n }\n };\n processError(error);\n return result;\n}\n/** Format a ZodError as a human-readable string in the following form.\n *\n * From\n *\n * ```ts\n * ZodError {\n * issues: [\n * {\n * expected: 'string',\n * code: 'invalid_type',\n * path: [ 'username' ],\n * message: 'Invalid input: expected string'\n * },\n * {\n * expected: 'number',\n * code: 'invalid_type',\n * path: [ 'favoriteNumbers', 1 ],\n * message: 'Invalid input: expected number'\n * }\n * ];\n * }\n * ```\n *\n * to\n *\n * ```\n * username\n * ✖ Expected number, received string at \"username\n * favoriteNumbers[0]\n * ✖ Invalid input: expected number\n * ```\n */\nexport function toDotPath(path) {\n const segs = [];\n for (const seg of path) {\n if (typeof seg === \"number\")\n segs.push(`[${seg}]`);\n else if (typeof seg === \"symbol\")\n segs.push(`[${JSON.stringify(String(seg))}]`);\n else if (/[^\\w$]/.test(seg))\n segs.push(`[${JSON.stringify(seg)}]`);\n else {\n if (segs.length)\n segs.push(\".\");\n segs.push(seg);\n }\n }\n return segs.join(\"\");\n}\nexport function prettifyError(error) {\n const lines = [];\n // sort by path length\n const issues = [...error.issues].sort((a, b) => a.path.length - b.path.length);\n // Process each issue\n for (const issue of issues) {\n lines.push(`✖ ${issue.message}`);\n if (issue.path?.length)\n lines.push(` → at ${toDotPath(issue.path)}`);\n }\n // Convert Map to formatted string\n return lines.join(\"\\n\");\n}\n","import * as core from \"./core.js\";\nimport * as errors from \"./errors.js\";\nimport * as util from \"./util.js\";\nexport const _parse = (_Err) => (schema, value, _ctx, _params) => {\n const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };\n const result = schema._zod.run({ value, issues: [] }, ctx);\n if (result instanceof Promise) {\n throw new core.$ZodAsyncError();\n }\n if (result.issues.length) {\n const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())));\n util.captureStackTrace(e, _params?.callee);\n throw e;\n }\n return result.value;\n};\nexport const parse = /* @__PURE__*/ _parse(errors.$ZodRealError);\nexport const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {\n const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };\n let result = schema._zod.run({ value, issues: [] }, ctx);\n if (result instanceof Promise)\n result = await result;\n if (result.issues.length) {\n const e = new (params?.Err ?? _Err)(result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())));\n util.captureStackTrace(e, params?.callee);\n throw e;\n }\n return result.value;\n};\nexport const parseAsync = /* @__PURE__*/ _parseAsync(errors.$ZodRealError);\nexport const _safeParse = (_Err) => (schema, value, _ctx) => {\n const ctx = _ctx ? { ..._ctx, async: false } : { async: false };\n const result = schema._zod.run({ value, issues: [] }, ctx);\n if (result instanceof Promise) {\n throw new core.$ZodAsyncError();\n }\n return result.issues.length\n ? {\n success: false,\n error: new (_Err ?? errors.$ZodError)(result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),\n }\n : { success: true, data: result.value };\n};\nexport const safeParse = /* @__PURE__*/ _safeParse(errors.$ZodRealError);\nexport const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {\n const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };\n let result = schema._zod.run({ value, issues: [] }, ctx);\n if (result instanceof Promise)\n result = await result;\n return result.issues.length\n ? {\n success: false,\n error: new _Err(result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),\n }\n : { success: true, data: result.value };\n};\nexport const safeParseAsync = /* @__PURE__*/ _safeParseAsync(errors.$ZodRealError);\n"],"names":["initializer","config","util.jsonStringifyReplacer","issue","error","core.$ZodAsyncError","util.finalizeIssue","core.config","util.captureStackTrace","errors.$ZodRealError","errors.$ZodError"],"mappings":";AAAgC,SAAS,aAAa,MAAMA,cAAa,QAAQ;AAC7E,WAAS,KAAK,MAAM,KAAK;AACrB,QAAI;AACJ,WAAO,eAAe,MAAM,QAAQ;AAAA,MAChC,OAAO,KAAK,QAAQ,CAAE;AAAA,MACtB,YAAY;AAAA,IACxB,CAAS;AACD,KAAC,KAAK,KAAK,MAAM,WAAW,GAAG,SAAS,oBAAI;AAC5C,SAAK,KAAK,OAAO,IAAI,IAAI;AACzB,IAAAA,aAAY,MAAM,GAAG;AAErB,eAAW,KAAK,EAAE,WAAW;AACzB,UAAI,EAAE,KAAK;AACP,eAAO,eAAe,MAAM,GAAG,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,KAAK,IAAI,EAAC,CAAE;AAAA,IACnF;AACQ,SAAK,KAAK,SAAS;AACnB,SAAK,KAAK,MAAM;AAAA,EACxB;AAEI,QAAM,SAAS,QAAQ,UAAU;AAAA,EACjC,MAAM,mBAAmB,OAAO;AAAA,EACpC;AACI,SAAO,eAAe,YAAY,QAAQ,EAAE,OAAO,MAAM;AACzD,WAAS,EAAE,KAAK;AACZ,QAAI;AACJ,UAAM,OAAO,QAAQ,SAAS,IAAI,WAAY,IAAG;AACjD,SAAK,MAAM,G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