@useinsider/guido 3.26.0 → 3.27.0-beta.0dd857f

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 (124) hide show
  1. package/README.md +1 -0
  2. package/dist/@types/config/schemas.js +93 -91
  3. package/dist/@types/display-condition.js +25 -0
  4. package/dist/@types/email-be/html-validation.js +28 -0
  5. package/dist/components/Guido.vue.js +5 -5
  6. package/dist/components/Guido.vue2.js +104 -98
  7. package/dist/components/organisms/display-conditions/CodeEditorField.vue.js +17 -0
  8. package/dist/components/organisms/display-conditions/CodeEditorField.vue2.js +41 -0
  9. package/dist/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue.js +30 -0
  10. package/dist/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue2.js +81 -0
  11. package/dist/components/organisms/display-conditions/DisplayConditionListState.vue.js +17 -0
  12. package/dist/components/organisms/display-conditions/DisplayConditionListState.vue2.js +45 -0
  13. package/dist/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue.js +36 -0
  14. package/dist/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue2.js +63 -0
  15. package/dist/components/organisms/display-conditions/DisplayConditionsHost.vue.js +17 -0
  16. package/dist/components/organisms/display-conditions/DisplayConditionsHost.vue2.js +22 -0
  17. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +5 -5
  18. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +15 -15
  19. package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +6 -6
  20. package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +28 -27
  21. package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue.js +3 -3
  22. package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue2.js +42 -27
  23. package/dist/composables/useBlocksConfig.js +29 -20
  24. package/dist/composables/useCustomInterfaceAppearance.js +50 -50
  25. package/dist/composables/useDisplayConditions.js +116 -0
  26. package/dist/composables/useFullStoryBridge.js +10 -9
  27. package/dist/composables/useSave.js +19 -17
  28. package/dist/composables/useSaveValidation.js +134 -252
  29. package/dist/composables/useTranslations.js +14 -8
  30. package/dist/config/compiler/utils/itemsCompilerUtils.js +43 -42
  31. package/dist/config/compiler/utils/recommendationCompilerUtils.js +67 -64
  32. package/dist/enums/academy.js +1 -0
  33. package/dist/enums/display-condition.js +12 -0
  34. package/dist/enums/email-be.js +27 -0
  35. package/dist/enums/save-validation.js +2 -2
  36. package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +14 -14
  37. package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +52 -40
  38. package/dist/extensions/Blocks/Recommendation/controls/syncInfoMessage.js +15 -15
  39. package/dist/extensions/Blocks/Recommendation/utils/priceFormatter.js +17 -15
  40. package/dist/extensions/Blocks/common-control.js +25 -25
  41. package/dist/extensions/DisplayConditions/bridge.js +25 -0
  42. package/dist/extensions/DisplayConditions/constants.js +26 -0
  43. package/dist/extensions/DisplayConditions/control.js +215 -0
  44. package/dist/extensions/DisplayConditions/display-conditions.css.js +226 -0
  45. package/dist/extensions/DisplayConditions/extension.js +28 -0
  46. package/dist/extensions/DisplayConditions/iconsRegistry.js +20 -0
  47. package/dist/extensions/DisplayConditions/library.js +30 -0
  48. package/dist/extensions/DisplayConditions/settingsPanel.js +17 -0
  49. package/dist/extensions/DynamicContent/dynamic-content.js +15 -17
  50. package/dist/guido.css +1 -1
  51. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +93 -92
  52. package/dist/node_modules/valibot/dist/index.js +405 -291
  53. package/dist/package.json.js +2 -2
  54. package/dist/services/displayConditionApi.js +39 -0
  55. package/dist/services/emailBe/errors/ApiError.js +50 -0
  56. package/dist/services/emailBe/errors/handleApiError.js +31 -0
  57. package/dist/services/emailBe/errors/toApiError.js +71 -0
  58. package/dist/services/emailBe/html/HtmlValidationService.js +35 -0
  59. package/dist/services/emailBe/html/index.js +6 -0
  60. package/dist/services/emailBe/http/HttpManager.js +68 -0
  61. package/dist/services/emailBe/http/RetryStack.js +24 -0
  62. package/dist/services/emailBe/http/client.js +61 -0
  63. package/dist/services/emailBe/http/index.js +10 -0
  64. package/dist/services/emailBe/http/transportErrors.js +20 -0
  65. package/dist/src/@types/config/schemas.d.ts +4 -0
  66. package/dist/src/@types/display-condition.d.ts +61 -0
  67. package/dist/src/@types/email-be/html-validation.d.ts +51 -0
  68. package/dist/src/components/organisms/display-conditions/CodeEditorField.vue.d.ts +43 -0
  69. package/dist/src/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue.d.ts +2 -0
  70. package/dist/src/components/organisms/display-conditions/DisplayConditionListState.vue.d.ts +18 -0
  71. package/dist/src/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue.d.ts +2 -0
  72. package/dist/src/components/organisms/display-conditions/DisplayConditionsHost.vue.d.ts +2 -0
  73. package/dist/src/composables/useConfig.d.ts +2 -0
  74. package/dist/src/composables/useDisplayConditions.d.ts +18 -0
  75. package/dist/src/composables/useSaveValidation.d.ts +2 -2
  76. package/dist/src/enums/academy.d.ts +1 -0
  77. package/dist/src/enums/display-condition.d.ts +15 -0
  78. package/dist/src/enums/email-be.d.ts +26 -0
  79. package/dist/src/enums/save-validation.d.ts +3 -15
  80. package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +2 -0
  81. package/dist/src/extensions/Blocks/common-control.d.ts +1 -1
  82. package/dist/src/extensions/DisplayConditions/bridge.d.ts +7 -0
  83. package/dist/src/extensions/DisplayConditions/constants.d.ts +23 -0
  84. package/dist/src/extensions/DisplayConditions/control.d.ts +25 -0
  85. package/dist/src/extensions/{Blocks/_Boilerplate → DisplayConditions}/iconsRegistry.d.ts +1 -1
  86. package/dist/src/extensions/DisplayConditions/library.d.ts +8 -0
  87. package/dist/src/extensions/DisplayConditions/settingsPanel.d.ts +5 -0
  88. package/dist/src/mock/api/display-conditions.d.ts +2 -0
  89. package/dist/src/services/displayConditionApi.d.ts +8 -0
  90. package/dist/src/services/emailBe/errors/ApiError.d.ts +40 -0
  91. package/dist/src/services/emailBe/errors/handleApiError.d.ts +11 -0
  92. package/dist/src/services/emailBe/errors/toApiError.d.ts +2 -0
  93. package/dist/src/services/emailBe/html/HtmlValidationService.d.ts +8 -0
  94. package/dist/src/services/emailBe/html/index.d.ts +2 -0
  95. package/dist/src/services/emailBe/http/HttpManager.d.ts +13 -0
  96. package/dist/src/services/emailBe/http/RetryStack.d.ts +6 -0
  97. package/dist/src/services/emailBe/http/client.d.ts +3 -0
  98. package/dist/src/services/emailBe/http/index.d.ts +2 -0
  99. package/dist/src/services/emailBe/http/transportErrors.d.ts +15 -0
  100. package/dist/src/services/emailBe/http/types.d.ts +46 -0
  101. package/dist/src/stores/config.d.ts +170 -0
  102. package/dist/src/stores/display-condition.d.ts +86 -0
  103. package/dist/src/stores/onboarding.d.ts +1 -0
  104. package/dist/src/utils/displayCondition.d.ts +11 -0
  105. package/dist/src/utils/editorShadowRoot.d.ts +1 -0
  106. package/dist/src/utils/protectTableText.d.ts +2 -0
  107. package/dist/static/styles/variables.css.js +1 -0
  108. package/dist/stores/config.js +13 -6
  109. package/dist/stores/display-condition.js +29 -0
  110. package/dist/stores/onboarding.js +4 -1
  111. package/dist/utils/displayCondition.js +29 -0
  112. package/dist/utils/editorShadowRoot.js +8 -0
  113. package/dist/utils/pairProductVariables.js +29 -28
  114. package/dist/utils/protectTableText.js +22 -0
  115. package/package.json +10 -2
  116. package/dist/src/extensions/Blocks/_Boilerplate/block.d.ts +0 -11
  117. package/dist/src/extensions/Blocks/_Boilerplate/constants/controlIds.d.ts +0 -7
  118. package/dist/src/extensions/Blocks/_Boilerplate/constants/index.d.ts +0 -10
  119. package/dist/src/extensions/Blocks/_Boilerplate/constants/selectors.d.ts +0 -16
  120. package/dist/src/extensions/Blocks/_Boilerplate/control.d.ts +0 -17
  121. package/dist/src/extensions/Blocks/_Boilerplate/controls/blockBackground/index.d.ts +0 -15
  122. package/dist/src/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
  123. package/dist/src/extensions/Blocks/_Boilerplate/template.d.ts +0 -6
  124. /package/dist/src/extensions/{Blocks/_Boilerplate → DisplayConditions}/extension.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  let m;
2
2
  // @__NO_SIDE_EFFECTS__
3
- function j(n) {
3
+ function x(n) {
4
4
  return {
5
5
  lang: (n == null ? void 0 : n.lang) ?? (m == null ? void 0 : m.lang),
6
6
  message: n == null ? void 0 : n.message,
@@ -8,142 +8,167 @@ function j(n) {
8
8
  abortPipeEarly: (n == null ? void 0 : n.abortPipeEarly) ?? (m == null ? void 0 : m.abortPipeEarly)
9
9
  };
10
10
  }
11
- let g;
11
+ let E;
12
12
  // @__NO_SIDE_EFFECTS__
13
- function A(n) {
14
- return g == null ? void 0 : g.get(n);
13
+ function I(n) {
14
+ return E == null ? void 0 : E.get(n);
15
15
  }
16
- let x;
16
+ let j;
17
17
  // @__NO_SIDE_EFFECTS__
18
- function q(n) {
19
- return x == null ? void 0 : x.get(n);
18
+ function V(n) {
19
+ return j == null ? void 0 : j.get(n);
20
20
  }
21
- let E;
21
+ let _;
22
22
  // @__NO_SIDE_EFFECTS__
23
- function K(n, s) {
23
+ function q(n, r) {
24
24
  var e;
25
- return (e = E == null ? void 0 : E.get(n)) == null ? void 0 : e.get(s);
25
+ return (e = _ == null ? void 0 : _.get(n)) == null ? void 0 : e.get(r);
26
26
  }
27
27
  // @__NO_SIDE_EFFECTS__
28
- function _(n) {
29
- var e, r;
30
- const s = typeof n;
31
- return s === "string" ? `"${n}"` : s === "number" || s === "bigint" || s === "boolean" ? `${n}` : s === "object" || s === "function" ? (n && ((r = (e = Object.getPrototypeOf(n)) == null ? void 0 : e.constructor) == null ? void 0 : r.name)) ?? "null" : s;
28
+ function D(n) {
29
+ var e, s;
30
+ const r = typeof n;
31
+ return r === "string" ? `"${n}"` : r === "number" || r === "bigint" || r === "boolean" ? `${n}` : r === "object" || r === "function" ? (n && ((s = (e = Object.getPrototypeOf(n)) == null ? void 0 : e.constructor) == null ? void 0 : s.name)) ?? "null" : r;
32
32
  }
33
- function f(n, s, e, r, t) {
34
- const l = t && "input" in t ? t.input : e.value, i = (t == null ? void 0 : t.expected) ?? n.expects ?? null, a = (t == null ? void 0 : t.received) ?? /* @__PURE__ */ _(l), u = {
33
+ function f(n, r, e, s, t) {
34
+ const l = t && "input" in t ? t.input : e.value, u = (t == null ? void 0 : t.expected) ?? n.expects ?? null, p = (t == null ? void 0 : t.received) ?? /* @__PURE__ */ D(l), i = {
35
35
  kind: n.kind,
36
36
  type: n.type,
37
37
  input: l,
38
- expected: i,
39
- received: a,
40
- message: `Invalid ${s}: ${i ? `Expected ${i} but r` : "R"}eceived ${a}`,
38
+ expected: u,
39
+ received: p,
40
+ message: `Invalid ${r}: ${u ? `Expected ${u} but r` : "R"}eceived ${p}`,
41
41
  requirement: n.requirement,
42
42
  path: t == null ? void 0 : t.path,
43
43
  issues: t == null ? void 0 : t.issues,
44
- lang: r.lang,
45
- abortEarly: r.abortEarly,
46
- abortPipeEarly: r.abortPipeEarly
47
- }, p = n.kind === "schema", c = (t == null ? void 0 : t.message) ?? n.message ?? /* @__PURE__ */ K(n.reference, u.lang) ?? (p ? /* @__PURE__ */ q(u.lang) : null) ?? r.message ?? /* @__PURE__ */ A(u.lang);
48
- c !== void 0 && (u.message = typeof c == "function" ? c(u) : c), p && (e.typed = !1), e.issues ? e.issues.push(u) : e.issues = [u];
44
+ lang: s.lang,
45
+ abortEarly: s.abortEarly,
46
+ abortPipeEarly: s.abortPipeEarly
47
+ }, c = n.kind === "schema", a = (t == null ? void 0 : t.message) ?? n.message ?? /* @__PURE__ */ q(n.reference, i.lang) ?? (c ? /* @__PURE__ */ V(i.lang) : null) ?? s.message ?? /* @__PURE__ */ I(i.lang);
48
+ a !== void 0 && (i.message = typeof a == "function" ? a(i) : a), c && (e.typed = !1), e.issues ? e.issues.push(i) : e.issues = [i];
49
49
  }
50
50
  // @__NO_SIDE_EFFECTS__
51
51
  function o(n) {
52
52
  return {
53
53
  version: 1,
54
54
  vendor: "valibot",
55
- validate(s) {
56
- return n["~run"]({ value: s }, /* @__PURE__ */ j());
55
+ validate(r) {
56
+ return n["~run"]({ value: r }, /* @__PURE__ */ x());
57
57
  }
58
58
  };
59
59
  }
60
60
  // @__NO_SIDE_EFFECTS__
61
- function I(n, s) {
62
- return Object.hasOwn(n, s) && s !== "__proto__" && s !== "prototype" && s !== "constructor";
61
+ function S(n, r) {
62
+ return Object.hasOwn(n, r) && r !== "__proto__" && r !== "prototype" && r !== "constructor";
63
63
  }
64
64
  // @__NO_SIDE_EFFECTS__
65
- function D(n, s) {
65
+ function w(n, r) {
66
66
  const e = [...new Set(n)];
67
- return e.length > 1 ? `(${e.join(` ${s} `)})` : e[0] ?? "never";
68
- }
67
+ return e.length > 1 ? `(${e.join(` ${r} `)})` : e[0] ?? "never";
68
+ }
69
+ var K = class extends Error {
70
+ /**
71
+ * Creates a Valibot error with useful information.
72
+ *
73
+ * @param issues The error issues.
74
+ */
75
+ constructor(n) {
76
+ super(n[0].message), this.name = "ValiError", this.issues = n;
77
+ }
78
+ };
69
79
  // @__NO_SIDE_EFFECTS__
70
- function M(n, s) {
80
+ function M(n, r) {
71
81
  return {
72
82
  kind: "validation",
73
83
  type: "check",
74
84
  reference: M,
85
+ async: !1,
86
+ expects: null,
87
+ requirement: n,
88
+ message: r,
89
+ "~run"(e, s) {
90
+ return e.typed && !this.requirement(e.value) && f(this, "input", e, s), e;
91
+ }
92
+ };
93
+ }
94
+ // @__NO_SIDE_EFFECTS__
95
+ function z(n, r) {
96
+ return {
97
+ kind: "validation",
98
+ type: "check",
99
+ reference: z,
75
100
  async: !0,
76
101
  expects: null,
77
102
  requirement: n,
78
- message: s,
79
- async "~run"(e, r) {
80
- return e.typed && !await this.requirement(e.value) && f(this, "input", e, r), e;
103
+ message: r,
104
+ async "~run"(e, s) {
105
+ return e.typed && !await this.requirement(e.value) && f(this, "input", e, s), e;
81
106
  }
82
107
  };
83
108
  }
84
109
  // @__NO_SIDE_EFFECTS__
85
- function V(n, s) {
110
+ function G(n, r) {
86
111
  return {
87
112
  kind: "validation",
88
113
  type: "max_length",
89
- reference: V,
114
+ reference: G,
90
115
  async: !1,
91
116
  expects: `<=${n}`,
92
117
  requirement: n,
93
- message: s,
94
- "~run"(e, r) {
95
- return e.typed && e.value.length > this.requirement && f(this, "length", e, r, { received: `${e.value.length}` }), e;
118
+ message: r,
119
+ "~run"(e, s) {
120
+ return e.typed && e.value.length > this.requirement && f(this, "length", e, s, { received: `${e.value.length}` }), e;
96
121
  }
97
122
  };
98
123
  }
99
124
  // @__NO_SIDE_EFFECTS__
100
- function z(n, s) {
125
+ function L(n, r) {
101
126
  return {
102
127
  kind: "validation",
103
128
  type: "min_length",
104
- reference: z,
129
+ reference: L,
105
130
  async: !1,
106
131
  expects: `>=${n}`,
107
132
  requirement: n,
108
- message: s,
109
- "~run"(e, r) {
110
- return e.typed && e.value.length < this.requirement && f(this, "length", e, r, { received: `${e.value.length}` }), e;
133
+ message: r,
134
+ "~run"(e, s) {
135
+ return e.typed && e.value.length < this.requirement && f(this, "length", e, s, { received: `${e.value.length}` }), e;
111
136
  }
112
137
  };
113
138
  }
114
139
  // @__NO_SIDE_EFFECTS__
115
- function G(n) {
140
+ function N(n) {
116
141
  return {
117
142
  kind: "validation",
118
143
  type: "non_empty",
119
- reference: G,
144
+ reference: N,
120
145
  async: !1,
121
146
  expects: "!0",
122
147
  message: n,
123
- "~run"(s, e) {
124
- return s.typed && s.value.length === 0 && f(this, "length", s, e, { received: "0" }), s;
148
+ "~run"(r, e) {
149
+ return r.typed && r.value.length === 0 && f(this, "length", r, e, { received: "0" }), r;
125
150
  }
126
151
  };
127
152
  }
128
153
  // @__NO_SIDE_EFFECTS__
129
- function L(n) {
154
+ function C(n) {
130
155
  return {
131
156
  kind: "transformation",
132
157
  type: "transform",
133
- reference: L,
158
+ reference: C,
134
159
  async: !1,
135
160
  operation: n,
136
- "~run"(s) {
137
- return s.value = this.operation(s.value), s;
161
+ "~run"(r) {
162
+ return r.value = this.operation(r.value), r;
138
163
  }
139
164
  };
140
165
  }
141
166
  // @__NO_SIDE_EFFECTS__
142
- function N() {
167
+ function F() {
143
168
  return {
144
169
  kind: "transformation",
145
170
  type: "trim",
146
- reference: N,
171
+ reference: F,
147
172
  async: !1,
148
173
  "~run"(n) {
149
174
  return n.value = n.value.trim(), n;
@@ -151,435 +176,513 @@ function N() {
151
176
  };
152
177
  }
153
178
  // @__NO_SIDE_EFFECTS__
154
- function P(n, s, e) {
155
- return typeof n.fallback == "function" ? n.fallback(s, e) : n.fallback;
179
+ function P(n, r, e) {
180
+ return typeof n.fallback == "function" ? n.fallback(r, e) : n.fallback;
156
181
  }
157
182
  // @__NO_SIDE_EFFECTS__
158
- function ne(n, s) {
183
+ function ie(n, r) {
159
184
  return {
160
185
  ...n,
161
- fallback: s,
186
+ fallback: r,
162
187
  get "~standard"() {
163
188
  return /* @__PURE__ */ o(this);
164
189
  },
165
- "~run"(e, r) {
166
- const t = n["~run"](e, r);
190
+ "~run"(e, s) {
191
+ const t = n["~run"](e, s);
167
192
  return t.issues ? {
168
193
  typed: !0,
169
- value: /* @__PURE__ */ P(this, t, r)
194
+ value: /* @__PURE__ */ P(this, t, s)
170
195
  } : t;
171
196
  }
172
197
  };
173
198
  }
174
199
  // @__NO_SIDE_EFFECTS__
175
- function w(n, s, e) {
176
- return typeof n.default == "function" ? n.default(s, e) : n.default;
200
+ function k(n, r, e) {
201
+ return typeof n.default == "function" ? n.default(r, e) : n.default;
177
202
  }
178
203
  // @__NO_SIDE_EFFECTS__
179
- function C(n, s) {
204
+ function R(n, r) {
180
205
  return {
181
206
  kind: "schema",
182
207
  type: "array",
183
- reference: C,
208
+ reference: R,
184
209
  expects: "Array",
185
210
  async: !1,
186
211
  item: n,
187
- message: s,
212
+ message: r,
188
213
  get "~standard"() {
189
214
  return /* @__PURE__ */ o(this);
190
215
  },
191
- "~run"(e, r) {
216
+ "~run"(e, s) {
192
217
  var l;
193
218
  const t = e.value;
194
219
  if (Array.isArray(t)) {
195
220
  e.typed = !0, e.value = [];
196
- for (let i = 0; i < t.length; i++) {
197
- const a = t[i], u = this.item["~run"]({ value: a }, r);
198
- if (u.issues) {
199
- const p = {
221
+ for (let u = 0; u < t.length; u++) {
222
+ const p = t[u], i = this.item["~run"]({ value: p }, s);
223
+ if (i.issues) {
224
+ const c = {
200
225
  type: "array",
201
226
  origin: "value",
202
227
  input: t,
203
- key: i,
204
- value: a
228
+ key: u,
229
+ value: p
205
230
  };
206
- for (const c of u.issues)
207
- c.path ? c.path.unshift(p) : c.path = [p], (l = e.issues) == null || l.push(c);
208
- if (e.issues || (e.issues = u.issues), r.abortEarly) {
231
+ for (const a of i.issues)
232
+ a.path ? a.path.unshift(c) : a.path = [c], (l = e.issues) == null || l.push(a);
233
+ if (e.issues || (e.issues = i.issues), s.abortEarly) {
209
234
  e.typed = !1;
210
235
  break;
211
236
  }
212
237
  }
213
- u.typed || (e.typed = !1), e.value.push(u.value);
238
+ i.typed || (e.typed = !1), e.value.push(i.value);
214
239
  }
215
- } else f(this, "type", e, r);
240
+ } else f(this, "type", e, s);
216
241
  return e;
217
242
  }
218
243
  };
219
244
  }
220
245
  // @__NO_SIDE_EFFECTS__
221
- function F(n) {
246
+ function B(n) {
222
247
  return {
223
248
  kind: "schema",
224
249
  type: "boolean",
225
- reference: F,
250
+ reference: B,
226
251
  expects: "boolean",
227
252
  async: !1,
228
253
  message: n,
229
254
  get "~standard"() {
230
255
  return /* @__PURE__ */ o(this);
231
256
  },
232
- "~run"(s, e) {
233
- return typeof s.value == "boolean" ? s.typed = !0 : f(this, "type", s, e), s;
257
+ "~run"(r, e) {
258
+ return typeof r.value == "boolean" ? r.typed = !0 : f(this, "type", r, e), r;
234
259
  }
235
260
  };
236
261
  }
237
262
  // @__NO_SIDE_EFFECTS__
238
- function R(n, s) {
263
+ function H(n, r) {
239
264
  return {
240
265
  kind: "schema",
241
266
  type: "custom",
242
- reference: R,
267
+ reference: H,
243
268
  expects: "unknown",
244
269
  async: !1,
245
270
  check: n,
246
- message: s,
271
+ message: r,
247
272
  get "~standard"() {
248
273
  return /* @__PURE__ */ o(this);
249
274
  },
250
- "~run"(e, r) {
251
- return this.check(e.value) ? e.typed = !0 : f(this, "type", e, r), e;
275
+ "~run"(e, s) {
276
+ return this.check(e.value) ? e.typed = !0 : f(this, "type", e, s), e;
252
277
  }
253
278
  };
254
279
  }
255
280
  // @__NO_SIDE_EFFECTS__
256
- function B(n) {
281
+ function J(n) {
257
282
  return {
258
283
  kind: "schema",
259
284
  type: "lazy",
260
- reference: B,
285
+ reference: J,
261
286
  expects: "unknown",
262
287
  async: !1,
263
288
  getter: n,
264
289
  get "~standard"() {
265
290
  return /* @__PURE__ */ o(this);
266
291
  },
267
- "~run"(s, e) {
268
- return this.getter(s.value)["~run"](s, e);
292
+ "~run"(r, e) {
293
+ return this.getter(r.value)["~run"](r, e);
269
294
  }
270
295
  };
271
296
  }
272
297
  // @__NO_SIDE_EFFECTS__
273
- function H(n, s) {
298
+ function Q(n, r) {
274
299
  return {
275
300
  kind: "schema",
276
301
  type: "literal",
277
- reference: H,
278
- expects: /* @__PURE__ */ _(n),
302
+ reference: Q,
303
+ expects: /* @__PURE__ */ D(n),
279
304
  async: !1,
280
305
  literal: n,
281
- message: s,
306
+ message: r,
282
307
  get "~standard"() {
283
308
  return /* @__PURE__ */ o(this);
284
309
  },
285
- "~run"(e, r) {
286
- return e.value === this.literal ? e.typed = !0 : f(this, "type", e, r), e;
310
+ "~run"(e, s) {
311
+ return e.value === this.literal ? e.typed = !0 : f(this, "type", e, s), e;
287
312
  }
288
313
  };
289
314
  }
290
315
  // @__NO_SIDE_EFFECTS__
291
- function J(n, s) {
316
+ function T(n, r) {
292
317
  return {
293
318
  kind: "schema",
294
319
  type: "loose_object",
295
- reference: J,
320
+ reference: T,
296
321
  expects: "Object",
297
322
  async: !1,
298
323
  entries: n,
299
- message: s,
324
+ message: r,
300
325
  get "~standard"() {
301
326
  return /* @__PURE__ */ o(this);
302
327
  },
303
- "~run"(e, r) {
328
+ "~run"(e, s) {
304
329
  var l;
305
330
  const t = e.value;
306
331
  if (t && typeof t == "object") {
307
332
  e.typed = !0, e.value = {};
308
- for (const i in this.entries) {
309
- const a = this.entries[i];
310
- if (i in t || (a.type === "exact_optional" || a.type === "optional" || a.type === "nullish") && a.default !== void 0) {
311
- const u = i in t ? t[i] : /* @__PURE__ */ w(a), p = a["~run"]({ value: u }, r);
312
- if (p.issues) {
313
- const c = {
333
+ for (const u in this.entries) {
334
+ const p = this.entries[u];
335
+ if (u in t || (p.type === "exact_optional" || p.type === "optional" || p.type === "nullish") && p.default !== void 0) {
336
+ const i = u in t ? t[u] : /* @__PURE__ */ k(p), c = p["~run"]({ value: i }, s);
337
+ if (c.issues) {
338
+ const a = {
314
339
  type: "object",
315
340
  origin: "value",
316
341
  input: t,
317
- key: i,
318
- value: u
342
+ key: u,
343
+ value: i
319
344
  };
320
- for (const y of p.issues)
321
- y.path ? y.path.unshift(c) : y.path = [c], (l = e.issues) == null || l.push(y);
322
- if (e.issues || (e.issues = p.issues), r.abortEarly) {
345
+ for (const y of c.issues)
346
+ y.path ? y.path.unshift(a) : y.path = [a], (l = e.issues) == null || l.push(y);
347
+ if (e.issues || (e.issues = c.issues), s.abortEarly) {
323
348
  e.typed = !1;
324
349
  break;
325
350
  }
326
351
  }
327
- p.typed || (e.typed = !1), e.value[i] = p.value;
328
- } else if (a.fallback !== void 0) e.value[i] = /* @__PURE__ */ P(a);
329
- else if (a.type !== "exact_optional" && a.type !== "optional" && a.type !== "nullish" && (f(this, "key", e, r, {
352
+ c.typed || (e.typed = !1), e.value[u] = c.value;
353
+ } else if (p.fallback !== void 0) e.value[u] = /* @__PURE__ */ P(p);
354
+ else if (p.type !== "exact_optional" && p.type !== "optional" && p.type !== "nullish" && (f(this, "key", e, s, {
330
355
  input: void 0,
331
- expected: `"${i}"`,
356
+ expected: `"${u}"`,
332
357
  path: [{
333
358
  type: "object",
334
359
  origin: "key",
335
360
  input: t,
336
- key: i,
337
- value: t[i]
361
+ key: u,
362
+ value: t[u]
338
363
  }]
339
- }), r.abortEarly))
364
+ }), s.abortEarly))
340
365
  break;
341
366
  }
342
- if (!e.issues || !r.abortEarly)
343
- for (const i in t) /* @__PURE__ */ I(t, i) && !(i in this.entries) && (e.value[i] = t[i]);
344
- } else f(this, "type", e, r);
367
+ if (!e.issues || !s.abortEarly)
368
+ for (const u in t) /* @__PURE__ */ S(t, u) && !(u in this.entries) && (e.value[u] = t[u]);
369
+ } else f(this, "type", e, s);
345
370
  return e;
346
371
  }
347
372
  };
348
373
  }
349
374
  // @__NO_SIDE_EFFECTS__
350
- function Q(n) {
375
+ function U(n, r) {
376
+ return {
377
+ kind: "schema",
378
+ type: "nullable",
379
+ reference: U,
380
+ expects: `(${n.expects} | null)`,
381
+ async: !1,
382
+ wrapped: n,
383
+ default: r,
384
+ get "~standard"() {
385
+ return /* @__PURE__ */ o(this);
386
+ },
387
+ "~run"(e, s) {
388
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ k(this, e, s)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
389
+ }
390
+ };
391
+ }
392
+ // @__NO_SIDE_EFFECTS__
393
+ function W(n, r) {
394
+ return {
395
+ kind: "schema",
396
+ type: "nullish",
397
+ reference: W,
398
+ expects: `(${n.expects} | null | undefined)`,
399
+ async: !1,
400
+ wrapped: n,
401
+ default: r,
402
+ get "~standard"() {
403
+ return /* @__PURE__ */ o(this);
404
+ },
405
+ "~run"(e, s) {
406
+ return (e.value === null || e.value === void 0) && (this.default !== void 0 && (e.value = /* @__PURE__ */ k(this, e, s)), e.value === null || e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
407
+ }
408
+ };
409
+ }
410
+ // @__NO_SIDE_EFFECTS__
411
+ function X(n) {
351
412
  return {
352
413
  kind: "schema",
353
414
  type: "number",
354
- reference: Q,
415
+ reference: X,
355
416
  expects: "number",
356
417
  async: !1,
357
418
  message: n,
358
419
  get "~standard"() {
359
420
  return /* @__PURE__ */ o(this);
360
421
  },
361
- "~run"(s, e) {
362
- return typeof s.value == "number" && !isNaN(s.value) ? s.typed = !0 : f(this, "type", s, e), s;
422
+ "~run"(r, e) {
423
+ return typeof r.value == "number" && !isNaN(r.value) ? r.typed = !0 : f(this, "type", r, e), r;
363
424
  }
364
425
  };
365
426
  }
366
427
  // @__NO_SIDE_EFFECTS__
367
- function T(n, s) {
428
+ function Y(n, r) {
368
429
  return {
369
430
  kind: "schema",
370
431
  type: "object",
371
- reference: T,
432
+ reference: Y,
372
433
  expects: "Object",
373
434
  async: !1,
374
435
  entries: n,
375
- message: s,
436
+ message: r,
376
437
  get "~standard"() {
377
438
  return /* @__PURE__ */ o(this);
378
439
  },
379
- "~run"(e, r) {
440
+ "~run"(e, s) {
380
441
  var l;
381
442
  const t = e.value;
382
443
  if (t && typeof t == "object") {
383
444
  e.typed = !0, e.value = {};
384
- for (const i in this.entries) {
385
- const a = this.entries[i];
386
- if (i in t || (a.type === "exact_optional" || a.type === "optional" || a.type === "nullish") && a.default !== void 0) {
387
- const u = i in t ? t[i] : /* @__PURE__ */ w(a), p = a["~run"]({ value: u }, r);
388
- if (p.issues) {
389
- const c = {
445
+ for (const u in this.entries) {
446
+ const p = this.entries[u];
447
+ if (u in t || (p.type === "exact_optional" || p.type === "optional" || p.type === "nullish") && p.default !== void 0) {
448
+ const i = u in t ? t[u] : /* @__PURE__ */ k(p), c = p["~run"]({ value: i }, s);
449
+ if (c.issues) {
450
+ const a = {
390
451
  type: "object",
391
452
  origin: "value",
392
453
  input: t,
393
- key: i,
394
- value: u
454
+ key: u,
455
+ value: i
395
456
  };
396
- for (const y of p.issues)
397
- y.path ? y.path.unshift(c) : y.path = [c], (l = e.issues) == null || l.push(y);
398
- if (e.issues || (e.issues = p.issues), r.abortEarly) {
457
+ for (const y of c.issues)
458
+ y.path ? y.path.unshift(a) : y.path = [a], (l = e.issues) == null || l.push(y);
459
+ if (e.issues || (e.issues = c.issues), s.abortEarly) {
399
460
  e.typed = !1;
400
461
  break;
401
462
  }
402
463
  }
403
- p.typed || (e.typed = !1), e.value[i] = p.value;
404
- } else if (a.fallback !== void 0) e.value[i] = /* @__PURE__ */ P(a);
405
- else if (a.type !== "exact_optional" && a.type !== "optional" && a.type !== "nullish" && (f(this, "key", e, r, {
464
+ c.typed || (e.typed = !1), e.value[u] = c.value;
465
+ } else if (p.fallback !== void 0) e.value[u] = /* @__PURE__ */ P(p);
466
+ else if (p.type !== "exact_optional" && p.type !== "optional" && p.type !== "nullish" && (f(this, "key", e, s, {
406
467
  input: void 0,
407
- expected: `"${i}"`,
468
+ expected: `"${u}"`,
408
469
  path: [{
409
470
  type: "object",
410
471
  origin: "key",
411
472
  input: t,
412
- key: i,
413
- value: t[i]
473
+ key: u,
474
+ value: t[u]
414
475
  }]
415
- }), r.abortEarly))
476
+ }), s.abortEarly))
416
477
  break;
417
478
  }
418
- } else f(this, "type", e, r);
479
+ } else f(this, "type", e, s);
419
480
  return e;
420
481
  }
421
482
  };
422
483
  }
423
484
  // @__NO_SIDE_EFFECTS__
424
- function U(n, s) {
485
+ function Z(n, r) {
425
486
  return {
426
487
  kind: "schema",
427
488
  type: "optional",
428
- reference: U,
489
+ reference: Z,
429
490
  expects: `(${n.expects} | undefined)`,
430
491
  async: !1,
431
492
  wrapped: n,
432
- default: s,
493
+ default: r,
433
494
  get "~standard"() {
434
495
  return /* @__PURE__ */ o(this);
435
496
  },
436
- "~run"(e, r) {
437
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ w(this, e, r)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, r);
497
+ "~run"(e, s) {
498
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ k(this, e, s)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
438
499
  }
439
500
  };
440
501
  }
441
502
  // @__NO_SIDE_EFFECTS__
442
- function W(n, s) {
503
+ function $(n, r) {
443
504
  return {
444
505
  kind: "schema",
445
506
  type: "picklist",
446
- reference: W,
447
- expects: /* @__PURE__ */ D(n.map(_), "|"),
507
+ reference: $,
508
+ expects: /* @__PURE__ */ w(n.map(D), "|"),
448
509
  async: !1,
449
510
  options: n,
450
- message: s,
511
+ message: r,
451
512
  get "~standard"() {
452
513
  return /* @__PURE__ */ o(this);
453
514
  },
454
- "~run"(e, r) {
455
- return this.options.includes(e.value) ? e.typed = !0 : f(this, "type", e, r), e;
515
+ "~run"(e, s) {
516
+ return this.options.includes(e.value) ? e.typed = !0 : f(this, "type", e, s), e;
456
517
  }
457
518
  };
458
519
  }
459
520
  // @__NO_SIDE_EFFECTS__
460
- function X(n, s, e) {
521
+ function ee(n, r, e) {
461
522
  return {
462
523
  kind: "schema",
463
524
  type: "record",
464
- reference: X,
525
+ reference: ee,
465
526
  expects: "Object",
466
527
  async: !1,
467
528
  key: n,
468
- value: s,
529
+ value: r,
469
530
  message: e,
470
531
  get "~standard"() {
471
532
  return /* @__PURE__ */ o(this);
472
533
  },
473
- "~run"(r, t) {
474
- var i, a;
475
- const l = r.value;
534
+ "~run"(s, t) {
535
+ var u, p;
536
+ const l = s.value;
476
537
  if (l && typeof l == "object") {
477
- r.typed = !0, r.value = {};
478
- for (const u in l) if (/* @__PURE__ */ I(l, u)) {
479
- const p = l[u], c = this.key["~run"]({ value: u }, t);
480
- if (c.issues) {
538
+ s.typed = !0, s.value = {};
539
+ for (const i in l) if (/* @__PURE__ */ S(l, i)) {
540
+ const c = l[i], a = this.key["~run"]({ value: i }, t);
541
+ if (a.issues) {
481
542
  const b = {
482
543
  type: "object",
483
544
  origin: "key",
484
545
  input: l,
485
- key: u,
486
- value: p
546
+ key: i,
547
+ value: c
487
548
  };
488
- for (const h of c.issues)
489
- h.path = [b], (i = r.issues) == null || i.push(h);
490
- if (r.issues || (r.issues = c.issues), t.abortEarly) {
491
- r.typed = !1;
549
+ for (const h of a.issues)
550
+ h.path = [b], (u = s.issues) == null || u.push(h);
551
+ if (s.issues || (s.issues = a.issues), t.abortEarly) {
552
+ s.typed = !1;
492
553
  break;
493
554
  }
494
555
  }
495
- const y = this.value["~run"]({ value: p }, t);
556
+ const y = this.value["~run"]({ value: c }, t);
496
557
  if (y.issues) {
497
558
  const b = {
498
559
  type: "object",
499
560
  origin: "value",
500
561
  input: l,
501
- key: u,
502
- value: p
562
+ key: i,
563
+ value: c
503
564
  };
504
565
  for (const h of y.issues)
505
- h.path ? h.path.unshift(b) : h.path = [b], (a = r.issues) == null || a.push(h);
506
- if (r.issues || (r.issues = y.issues), t.abortEarly) {
507
- r.typed = !1;
566
+ h.path ? h.path.unshift(b) : h.path = [b], (p = s.issues) == null || p.push(h);
567
+ if (s.issues || (s.issues = y.issues), t.abortEarly) {
568
+ s.typed = !1;
508
569
  break;
509
570
  }
510
571
  }
511
- (!c.typed || !y.typed) && (r.typed = !1), c.typed && (r.value[c.value] = y.value);
572
+ (!a.typed || !y.typed) && (s.typed = !1), a.typed && (s.value[a.value] = y.value);
512
573
  }
513
- } else f(this, "type", r, t);
514
- return r;
574
+ } else f(this, "type", s, t);
575
+ return s;
515
576
  }
516
577
  };
517
578
  }
518
579
  // @__NO_SIDE_EFFECTS__
519
- function Y(n) {
580
+ function ne(n) {
520
581
  return {
521
582
  kind: "schema",
522
583
  type: "string",
523
- reference: Y,
584
+ reference: ne,
524
585
  expects: "string",
525
586
  async: !1,
526
587
  message: n,
527
588
  get "~standard"() {
528
589
  return /* @__PURE__ */ o(this);
529
590
  },
530
- "~run"(s, e) {
531
- return typeof s.value == "string" ? s.typed = !0 : f(this, "type", s, e), s;
591
+ "~run"(r, e) {
592
+ return typeof r.value == "string" ? r.typed = !0 : f(this, "type", r, e), r;
532
593
  }
533
594
  };
534
595
  }
535
596
  // @__NO_SIDE_EFFECTS__
536
- function S(n) {
537
- let s;
538
- if (n) for (const e of n) s ? s.push(...e.issues) : s = e.issues;
539
- return s;
597
+ function re(n, r) {
598
+ return {
599
+ kind: "schema",
600
+ type: "tuple",
601
+ reference: re,
602
+ expects: "Array",
603
+ async: !1,
604
+ items: n,
605
+ message: r,
606
+ get "~standard"() {
607
+ return /* @__PURE__ */ o(this);
608
+ },
609
+ "~run"(e, s) {
610
+ var l;
611
+ const t = e.value;
612
+ if (Array.isArray(t)) {
613
+ e.typed = !0, e.value = [];
614
+ for (let u = 0; u < this.items.length; u++) {
615
+ const p = t[u], i = this.items[u]["~run"]({ value: p }, s);
616
+ if (i.issues) {
617
+ const c = {
618
+ type: "array",
619
+ origin: "value",
620
+ input: t,
621
+ key: u,
622
+ value: p
623
+ };
624
+ for (const a of i.issues)
625
+ a.path ? a.path.unshift(c) : a.path = [c], (l = e.issues) == null || l.push(a);
626
+ if (e.issues || (e.issues = i.issues), s.abortEarly) {
627
+ e.typed = !1;
628
+ break;
629
+ }
630
+ }
631
+ i.typed || (e.typed = !1), e.value.push(i.value);
632
+ }
633
+ } else f(this, "type", e, s);
634
+ return e;
635
+ }
636
+ };
637
+ }
638
+ // @__NO_SIDE_EFFECTS__
639
+ function A(n) {
640
+ let r;
641
+ if (n) for (const e of n) r ? r.push(...e.issues) : r = e.issues;
642
+ return r;
540
643
  }
541
644
  // @__NO_SIDE_EFFECTS__
542
- function Z(n, s) {
645
+ function se(n, r) {
543
646
  return {
544
647
  kind: "schema",
545
648
  type: "union",
546
- reference: Z,
547
- expects: /* @__PURE__ */ D(n.map((e) => e.expects), "|"),
649
+ reference: se,
650
+ expects: /* @__PURE__ */ w(n.map((e) => e.expects), "|"),
548
651
  async: !1,
549
652
  options: n,
550
- message: s,
653
+ message: r,
551
654
  get "~standard"() {
552
655
  return /* @__PURE__ */ o(this);
553
656
  },
554
- "~run"(e, r) {
555
- let t, l, i;
556
- for (const a of this.options) {
557
- const u = a["~run"]({ value: e.value }, r);
558
- if (u.typed) if (u.issues) l ? l.push(u) : l = [u];
657
+ "~run"(e, s) {
658
+ let t, l, u;
659
+ for (const p of this.options) {
660
+ const i = p["~run"]({ value: e.value }, s);
661
+ if (i.typed) if (i.issues) l ? l.push(i) : l = [i];
559
662
  else {
560
- t = u;
663
+ t = i;
561
664
  break;
562
665
  }
563
- else i ? i.push(u) : i = [u];
666
+ else u ? u.push(i) : u = [i];
564
667
  }
565
668
  if (t) return t;
566
669
  if (l) {
567
670
  if (l.length === 1) return l[0];
568
- f(this, "type", e, r, { issues: /* @__PURE__ */ S(l) }), e.typed = !0;
671
+ f(this, "type", e, s, { issues: /* @__PURE__ */ A(l) }), e.typed = !0;
569
672
  } else {
570
- if ((i == null ? void 0 : i.length) === 1) return i[0];
571
- f(this, "type", e, r, { issues: /* @__PURE__ */ S(i) });
673
+ if ((u == null ? void 0 : u.length) === 1) return u[0];
674
+ f(this, "type", e, s, { issues: /* @__PURE__ */ A(u) });
572
675
  }
573
676
  return e;
574
677
  }
575
678
  };
576
679
  }
577
680
  // @__NO_SIDE_EFFECTS__
578
- function $() {
681
+ function te() {
579
682
  return {
580
683
  kind: "schema",
581
684
  type: "unknown",
582
- reference: $,
685
+ reference: te,
583
686
  expects: "unknown",
584
687
  async: !1,
585
688
  get "~standard"() {
@@ -591,86 +694,91 @@ function $() {
591
694
  };
592
695
  }
593
696
  // @__NO_SIDE_EFFECTS__
594
- function ee(n, s, e) {
697
+ function ue(n, r, e) {
595
698
  return {
596
699
  kind: "schema",
597
700
  type: "variant",
598
- reference: ee,
701
+ reference: ue,
599
702
  expects: "Object",
600
703
  async: !1,
601
704
  key: n,
602
- options: s,
705
+ options: r,
603
706
  message: e,
604
707
  get "~standard"() {
605
708
  return /* @__PURE__ */ o(this);
606
709
  },
607
- "~run"(r, t) {
608
- const l = r.value;
710
+ "~run"(s, t) {
711
+ const l = s.value;
609
712
  if (l && typeof l == "object") {
610
- let i, a = 0, u = this.key, p = [];
611
- const c = (y, b) => {
713
+ let u, p = 0, i = this.key, c = [];
714
+ const a = (y, b) => {
612
715
  for (const h of y.options) {
613
- if (h.type === "variant") c(h, new Set(b).add(h.key));
716
+ if (h.type === "variant") a(h, new Set(b).add(h.key));
614
717
  else {
615
- let O = !0, k = 0;
718
+ let O = !0, g = 0;
616
719
  for (const v of b) {
617
720
  const d = h.entries[v];
618
721
  if (v in l ? d["~run"]({
619
722
  typed: !1,
620
723
  value: l[v]
621
724
  }, { abortEarly: !0 }).issues : d.type !== "exact_optional" && d.type !== "optional" && d.type !== "nullish") {
622
- O = !1, u !== v && (a < k || a === k && v in l && !(u in l)) && (a = k, u = v, p = []), u === v && p.push(h.entries[v].expects);
725
+ O = !1, i !== v && (p < g || p === g && v in l && !(i in l)) && (p = g, i = v, c = []), i === v && c.push(h.entries[v].expects);
623
726
  break;
624
727
  }
625
- k++;
728
+ g++;
626
729
  }
627
730
  if (O) {
628
731
  const v = h["~run"]({ value: l }, t);
629
- (!i || !i.typed && v.typed) && (i = v);
732
+ (!u || !u.typed && v.typed) && (u = v);
630
733
  }
631
734
  }
632
- if (i && !i.issues) break;
735
+ if (u && !u.issues) break;
633
736
  }
634
737
  };
635
- if (c(this, /* @__PURE__ */ new Set([this.key])), i) return i;
636
- f(this, "type", r, t, {
637
- input: l[u],
638
- expected: /* @__PURE__ */ D(p, "|"),
738
+ if (a(this, /* @__PURE__ */ new Set([this.key])), u) return u;
739
+ f(this, "type", s, t, {
740
+ input: l[i],
741
+ expected: /* @__PURE__ */ w(c, "|"),
639
742
  path: [{
640
743
  type: "object",
641
744
  origin: "value",
642
745
  input: l,
643
- key: u,
644
- value: l[u]
746
+ key: i,
747
+ value: l[i]
645
748
  }]
646
749
  });
647
- } else f(this, "type", r, t);
648
- return r;
750
+ } else f(this, "type", s, t);
751
+ return s;
649
752
  }
650
753
  };
651
754
  }
755
+ function le(n, r, e) {
756
+ const s = n["~run"]({ value: r }, /* @__PURE__ */ x(e));
757
+ if (s.issues) throw new K(s.issues);
758
+ return s.value;
759
+ }
652
760
  // @__NO_SIDE_EFFECTS__
653
- function se(...n) {
761
+ function pe(...n) {
654
762
  return {
655
763
  ...n[0],
656
764
  pipe: n,
657
765
  get "~standard"() {
658
766
  return /* @__PURE__ */ o(this);
659
767
  },
660
- "~run"(s, e) {
661
- for (const r of n) if (r.kind !== "metadata") {
662
- if (s.issues && (r.kind === "schema" || r.kind === "transformation")) {
663
- s.typed = !1;
768
+ "~run"(r, e) {
769
+ for (const s of n) if (s.kind !== "metadata") {
770
+ if (r.issues && (s.kind === "schema" || s.kind === "transformation")) {
771
+ r.typed = !1;
664
772
  break;
665
773
  }
666
- (!s.issues || !e.abortEarly && !e.abortPipeEarly) && (s = r["~run"](s, e));
774
+ (!r.issues || !e.abortEarly && !e.abortPipeEarly) && (r = s["~run"](r, e));
667
775
  }
668
- return s;
776
+ return r;
669
777
  }
670
778
  };
671
779
  }
672
780
  // @__NO_SIDE_EFFECTS__
673
- function re(...n) {
781
+ function ae(...n) {
674
782
  return {
675
783
  ...n[0],
676
784
  pipe: n,
@@ -678,74 +786,80 @@ function re(...n) {
678
786
  get "~standard"() {
679
787
  return /* @__PURE__ */ o(this);
680
788
  },
681
- async "~run"(s, e) {
682
- for (const r of n) if (r.kind !== "metadata") {
683
- if (s.issues && (r.kind === "schema" || r.kind === "transformation")) {
684
- s.typed = !1;
789
+ async "~run"(r, e) {
790
+ for (const s of n) if (s.kind !== "metadata") {
791
+ if (r.issues && (s.kind === "schema" || s.kind === "transformation")) {
792
+ r.typed = !1;
685
793
  break;
686
794
  }
687
- (!s.issues || !e.abortEarly && !e.abortPipeEarly) && (s = await r["~run"](s, e));
795
+ (!r.issues || !e.abortEarly && !e.abortPipeEarly) && (r = await s["~run"](r, e));
688
796
  }
689
- return s;
797
+ return r;
690
798
  }
691
799
  };
692
800
  }
693
801
  // @__NO_SIDE_EFFECTS__
694
- function te(n, s, e) {
695
- const r = n["~run"]({ value: s }, /* @__PURE__ */ j(e));
802
+ function ce(n, r, e) {
803
+ const s = n["~run"]({ value: r }, /* @__PURE__ */ x(e));
696
804
  return {
697
- typed: r.typed,
698
- success: !r.issues,
699
- output: r.value,
700
- issues: r.issues
805
+ typed: s.typed,
806
+ success: !s.issues,
807
+ output: s.value,
808
+ issues: s.issues
701
809
  };
702
810
  }
703
811
  // @__NO_SIDE_EFFECTS__
704
- async function ie(n, s, e) {
705
- const r = await n["~run"]({ value: s }, /* @__PURE__ */ j(e));
812
+ async function fe(n, r, e) {
813
+ const s = await n["~run"]({ value: r }, /* @__PURE__ */ x(e));
706
814
  return {
707
- typed: r.typed,
708
- success: !r.issues,
709
- output: r.value,
710
- issues: r.issues
815
+ typed: s.typed,
816
+ success: !s.issues,
817
+ output: s.value,
818
+ issues: s.issues
711
819
  };
712
820
  }
713
821
  export {
822
+ K as ValiError,
714
823
  f as _addIssue,
715
824
  o as _getStandardProps,
716
- I as _isValidObjectKey,
717
- D as _joinExpects,
718
- _ as _stringify,
719
- C as array,
720
- F as boolean,
721
- M as checkAsync,
722
- R as custom,
723
- ne as fallback,
724
- w as getDefault,
825
+ S as _isValidObjectKey,
826
+ w as _joinExpects,
827
+ D as _stringify,
828
+ R as array,
829
+ B as boolean,
830
+ M as check,
831
+ z as checkAsync,
832
+ H as custom,
833
+ ie as fallback,
834
+ k as getDefault,
725
835
  P as getFallback,
726
- j as getGlobalConfig,
727
- A as getGlobalMessage,
728
- q as getSchemaMessage,
729
- K as getSpecificMessage,
730
- B as lazy,
731
- H as literal,
732
- J as looseObject,
733
- V as maxLength,
734
- z as minLength,
735
- G as nonEmpty,
736
- Q as number,
737
- T as object,
738
- U as optional,
739
- W as picklist,
740
- se as pipe,
741
- re as pipeAsync,
742
- X as record,
743
- te as safeParse,
744
- ie as safeParseAsync,
745
- Y as string,
746
- L as transform,
747
- N as trim,
748
- Z as union,
749
- $ as unknown,
750
- ee as variant
836
+ x as getGlobalConfig,
837
+ I as getGlobalMessage,
838
+ V as getSchemaMessage,
839
+ q as getSpecificMessage,
840
+ J as lazy,
841
+ Q as literal,
842
+ T as looseObject,
843
+ G as maxLength,
844
+ L as minLength,
845
+ N as nonEmpty,
846
+ U as nullable,
847
+ W as nullish,
848
+ X as number,
849
+ Y as object,
850
+ Z as optional,
851
+ le as parse,
852
+ $ as picklist,
853
+ pe as pipe,
854
+ ae as pipeAsync,
855
+ ee as record,
856
+ ce as safeParse,
857
+ fe as safeParseAsync,
858
+ ne as string,
859
+ C as transform,
860
+ F as trim,
861
+ re as tuple,
862
+ se as union,
863
+ te as unknown,
864
+ ue as variant
751
865
  };