@storm-software/config 1.14.0 → 1.15.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.
- package/package.json +16 -1
- package/presets/base.json +1 -1
- package/CHANGELOG.md +0 -587
- package/declarations.d.ts +0 -73
- package/index.cjs +0 -1
- package/index.js +0 -1
- package/meta.cjs.json +0 -1
- package/meta.esm.json +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
6
6
|
"repository": {
|
|
@@ -8,9 +8,24 @@
|
|
|
8
8
|
"url": "https://github.com/storm-software/storm-ops",
|
|
9
9
|
"directory": "packages/config"
|
|
10
10
|
},
|
|
11
|
+
"exports": {
|
|
12
|
+
"./package.json": "./package.json",
|
|
13
|
+
"./schemas/storm.schema.json": "./schemas/storm.schema.json",
|
|
14
|
+
"./presets/base.json": "./presets/base.json",
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./declarations.d.ts",
|
|
17
|
+
"import": "./index.js",
|
|
18
|
+
"require": "./index.cjs"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
11
21
|
"main": "./index.cjs",
|
|
12
22
|
"module": "./index.js",
|
|
13
23
|
"types": "declarations.d.ts",
|
|
24
|
+
"files": [
|
|
25
|
+
"presets",
|
|
26
|
+
"schema",
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
14
29
|
"dependencies": {
|
|
15
30
|
"zod": "3.23.4"
|
|
16
31
|
},
|
package/presets/base.json
CHANGED
package/CHANGELOG.md
DELETED
|
@@ -1,587 +0,0 @@
|
|
|
1
|
-
## 1.14.0 (2024-05-04)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### 🚀 Features
|
|
5
|
-
|
|
6
|
-
- **config:** Reorganized the required theme config schema values ([3ec7b029](https://github.com/storm-software/storm-ops/commit/3ec7b029))
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### ❤️ Thank You
|
|
10
|
-
|
|
11
|
-
- Patrick Sullivan
|
|
12
|
-
|
|
13
|
-
## 1.13.0 (2024-05-04)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### 🚀 Features
|
|
17
|
-
|
|
18
|
-
- **config:** Update the theme to use brand colors instead of hierarchy colors ([bcff6b80](https://github.com/storm-software/storm-ops/commit/bcff6b80))
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
### ❤️ Thank You
|
|
22
|
-
|
|
23
|
-
- Patrick Sullivan
|
|
24
|
-
|
|
25
|
-
## 1.12.3 (2024-04-29)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
### 🩹 Fixes
|
|
29
|
-
|
|
30
|
-
- **deps:** update patch prod dependencies ([c427e132](https://github.com/storm-software/storm-ops/commit/c427e132))
|
|
31
|
-
|
|
32
|
-
- **deps:** update dependencies-non-major ([#130](https://github.com/storm-software/storm-ops/pull/130))
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
### ❤️ Thank You
|
|
36
|
-
|
|
37
|
-
- Patrick Sullivan
|
|
38
|
-
|
|
39
|
-
## 1.12.2 (2024-04-26)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
### 🩹 Fixes
|
|
43
|
-
|
|
44
|
-
- **config-tools:** Improved logging and enhanced config json preset ([5dabb1ae](https://github.com/storm-software/storm-ops/commit/5dabb1ae))
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
### ❤️ Thank You
|
|
48
|
-
|
|
49
|
-
- Patrick Sullivan
|
|
50
|
-
|
|
51
|
-
## 1.12.1 (2024-04-24)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
### 🩹 Fixes
|
|
55
|
-
|
|
56
|
-
- **config-tools:** Updates to the default values applied to the Storm config ([4cc78a98](https://github.com/storm-software/storm-ops/commit/4cc78a98))
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### ❤️ Thank You
|
|
60
|
-
|
|
61
|
-
- Patrick Sullivan
|
|
62
|
-
|
|
63
|
-
## 1.12.0 (2024-04-24)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
### 🚀 Features
|
|
67
|
-
|
|
68
|
-
- **config:** Add type exports for theme color typings ([61fe73f9](https://github.com/storm-software/storm-ops/commit/61fe73f9))
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### ❤️ Thank You
|
|
72
|
-
|
|
73
|
-
- Patrick Sullivan
|
|
74
|
-
|
|
75
|
-
## 1.11.3 (2024-04-22)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
### 🩹 Fixes
|
|
79
|
-
|
|
80
|
-
- **config:** Added updates to repository logging ([2b871dc3](https://github.com/storm-software/storm-ops/commit/2b871dc3))
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
### ❤️ Thank You
|
|
84
|
-
|
|
85
|
-
- Patrick Sullivan
|
|
86
|
-
|
|
87
|
-
## 1.11.2 (2024-04-15)
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
### 🩹 Fixes
|
|
91
|
-
|
|
92
|
-
- **config-tools:** Resolved issue with missing fields in Storm configuration ([cf157d2a](https://github.com/storm-software/storm-ops/commit/cf157d2a))
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
### ❤️ Thank You
|
|
96
|
-
|
|
97
|
-
- Patrick Sullivan
|
|
98
|
-
|
|
99
|
-
## 1.11.1 (2024-04-13)
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
### 🩹 Fixes
|
|
103
|
-
|
|
104
|
-
- **config-tools:** Resolved issue with bad `project.json` tasks ([744c7eef](https://github.com/storm-software/storm-ops/commit/744c7eef))
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
### ❤️ Thank You
|
|
108
|
-
|
|
109
|
-
- Patrick Sullivan
|
|
110
|
-
|
|
111
|
-
## 1.11.0 (2024-04-13)
|
|
112
|
-
|
|
113
|
-
### 🚀 Features
|
|
114
|
-
|
|
115
|
-
- **config-tools:** Added esm support ([fd9dbda5](https://github.com/storm-software/storm-ops/commit/fd9dbda5))
|
|
116
|
-
|
|
117
|
-
### ❤️ Thank You
|
|
118
|
-
|
|
119
|
-
- Patrick Sullivan
|
|
120
|
-
|
|
121
|
-
## 1.10.0 (2024-04-13)
|
|
122
|
-
|
|
123
|
-
### 🚀 Features
|
|
124
|
-
|
|
125
|
-
- **config:** Add `light` and `dark` colors to configuration ([654cd1d0](https://github.com/storm-software/storm-ops/commit/654cd1d0))
|
|
126
|
-
|
|
127
|
-
### ❤️ Thank You
|
|
128
|
-
|
|
129
|
-
- Patrick Sullivan
|
|
130
|
-
|
|
131
|
-
## 1.9.5 (2024-04-13)
|
|
132
|
-
|
|
133
|
-
### 🩹 Fixes
|
|
134
|
-
|
|
135
|
-
- **config:** Update config to use `outputDirectory` value ([42604faf](https://github.com/storm-software/storm-ops/commit/42604faf))
|
|
136
|
-
|
|
137
|
-
### ❤️ Thank You
|
|
138
|
-
|
|
139
|
-
- Patrick Sullivan
|
|
140
|
-
|
|
141
|
-
## 1.9.4 (2024-04-08)
|
|
142
|
-
|
|
143
|
-
### 🩹 Fixes
|
|
144
|
-
|
|
145
|
-
- **build-tools:** Resolved issue with module types used in build ([50a368d3](https://github.com/storm-software/storm-ops/commit/50a368d3))
|
|
146
|
-
|
|
147
|
-
### ❤️ Thank You
|
|
148
|
-
|
|
149
|
-
- Patrick Sullivan
|
|
150
|
-
|
|
151
|
-
## 1.9.3 (2024-04-08)
|
|
152
|
-
|
|
153
|
-
### 🩹 Fixes
|
|
154
|
-
|
|
155
|
-
- **build-tools:** Resolved issue with duplicate require definition ([63aa1d16](https://github.com/storm-software/storm-ops/commit/63aa1d16))
|
|
156
|
-
|
|
157
|
-
### ❤️ Thank You
|
|
158
|
-
|
|
159
|
-
- Patrick Sullivan
|
|
160
|
-
|
|
161
|
-
## 1.9.2 (2024-04-08)
|
|
162
|
-
|
|
163
|
-
### 🩹 Fixes
|
|
164
|
-
|
|
165
|
-
- **workspace-tools:** Resolve issues with `build-tools` import ([fc040f71](https://github.com/storm-software/storm-ops/commit/fc040f71))
|
|
166
|
-
|
|
167
|
-
### ❤️ Thank You
|
|
168
|
-
|
|
169
|
-
- Patrick Sullivan
|
|
170
|
-
|
|
171
|
-
## 1.9.1 (2024-04-08)
|
|
172
|
-
|
|
173
|
-
### 🩹 Fixes
|
|
174
|
-
|
|
175
|
-
- **git-tools:** Update release tool to use local function to get configuration ([53db7520](https://github.com/storm-software/storm-ops/commit/53db7520))
|
|
176
|
-
|
|
177
|
-
### ❤️ Thank You
|
|
178
|
-
|
|
179
|
-
- Patrick Sullivan
|
|
180
|
-
|
|
181
|
-
## 1.9.0 (2024-04-07)
|
|
182
|
-
|
|
183
|
-
### 🚀 Features
|
|
184
|
-
|
|
185
|
-
- **git-tools:** Added reusable GitHub `workflows` and `actions` ([1c9a5391](https://github.com/storm-software/storm-ops/commit/1c9a5391))
|
|
186
|
-
|
|
187
|
-
- **storm-ops:** Merged in change to the main branch ([ce79c572](https://github.com/storm-software/storm-ops/commit/ce79c572))
|
|
188
|
-
|
|
189
|
-
### ❤️ Thank You
|
|
190
|
-
|
|
191
|
-
- Patrick Sullivan
|
|
192
|
-
|
|
193
|
-
## 1.8.0 (2024-04-06)
|
|
194
|
-
|
|
195
|
-
### 🚀 Features
|
|
196
|
-
|
|
197
|
-
- **build-tools:** Added support for `rolldown` builds ([46de2e63](https://github.com/storm-software/storm-ops/commit/46de2e63))
|
|
198
|
-
|
|
199
|
-
### ❤️ Thank You
|
|
200
|
-
|
|
201
|
-
- Patrick Sullivan
|
|
202
|
-
|
|
203
|
-
## 1.7.4 (2024-04-01)
|
|
204
|
-
|
|
205
|
-
### 🩹 Fixes
|
|
206
|
-
|
|
207
|
-
- **workspace-tools:** Resolve issue with bad release path in npm publish ([4f5ba3db](https://github.com/storm-software/storm-ops/commit/4f5ba3db))
|
|
208
|
-
|
|
209
|
-
### ❤️ Thank You
|
|
210
|
-
|
|
211
|
-
- Patrick Sullivan
|
|
212
|
-
|
|
213
|
-
## 1.7.3 (2024-03-29)
|
|
214
|
-
|
|
215
|
-
### 🩹 Fixes
|
|
216
|
-
|
|
217
|
-
- **workspace-tools:** Added the `nx-release-publish` target to TypeScript projects ([52b61117](https://github.com/storm-software/storm-ops/commit/52b61117))
|
|
218
|
-
|
|
219
|
-
### ❤️ Thank You
|
|
220
|
-
|
|
221
|
-
- Patrick Sullivan
|
|
222
|
-
|
|
223
|
-
## 1.7.2 (2024-03-28)
|
|
224
|
-
|
|
225
|
-
### 🩹 Fixes
|
|
226
|
-
|
|
227
|
-
- **git-tools:** Added code to add ts plugin transpilers ([ec514d57](https://github.com/storm-software/storm-ops/commit/ec514d57))
|
|
228
|
-
|
|
229
|
-
### ❤️ Thank You
|
|
230
|
-
|
|
231
|
-
- Patrick Sullivan
|
|
232
|
-
|
|
233
|
-
## 1.7.1 (2024-03-28)
|
|
234
|
-
|
|
235
|
-
### 🩹 Fixes
|
|
236
|
-
|
|
237
|
-
- **storm-ops:** Update the links in the README files to use proper repository ([decc0db3](https://github.com/storm-software/storm-ops/commit/decc0db3))
|
|
238
|
-
|
|
239
|
-
### ❤️ Thank You
|
|
240
|
-
|
|
241
|
-
- Patrick Sullivan
|
|
242
|
-
|
|
243
|
-
## 1.7.0 (2024-03-25)
|
|
244
|
-
|
|
245
|
-
### 🚀 Features
|
|
246
|
-
|
|
247
|
-
- **workspace-tools:** Added Nx plugin to apply rust and typescript targets ([5738161f](https://github.com/storm-software/storm-ops/commit/5738161f))
|
|
248
|
-
|
|
249
|
-
- **workspace-tools:** Major updates to base nx.json configuration ([06ec9a6a](https://github.com/storm-software/storm-ops/commit/06ec9a6a))
|
|
250
|
-
|
|
251
|
-
### ❤️ Thank You
|
|
252
|
-
|
|
253
|
-
- Patrick Sullivan
|
|
254
|
-
|
|
255
|
-
## 1.6.0 (2024-03-03)
|
|
256
|
-
|
|
257
|
-
### 🚀 Features
|
|
258
|
-
|
|
259
|
-
- **config:** Added the implementation for the `externalPackagePatterns` config parameter ([73762463](https://github.com/storm-software/storm-ops/commit/73762463))
|
|
260
|
-
|
|
261
|
-
### ❤️ Thank You
|
|
262
|
-
|
|
263
|
-
- Patrick Sullivan
|
|
264
|
-
|
|
265
|
-
## 1.5.5 (2024-03-01)
|
|
266
|
-
|
|
267
|
-
### 🩹 Fixes
|
|
268
|
-
|
|
269
|
-
- **workspace-tools:** Remove the storm env filter ([48259eea](https://github.com/storm-software/storm-ops/commit/48259eea))
|
|
270
|
-
|
|
271
|
-
### ❤️ Thank You
|
|
272
|
-
|
|
273
|
-
- Patrick Sullivan
|
|
274
|
-
|
|
275
|
-
## 1.5.4 (2024-03-01)
|
|
276
|
-
|
|
277
|
-
### 🩹 Fixes
|
|
278
|
-
|
|
279
|
-
- **workspace-tools:** Use tsc to build package ([05780f07](https://github.com/storm-software/storm-ops/commit/05780f07))
|
|
280
|
-
|
|
281
|
-
### ❤️ Thank You
|
|
282
|
-
|
|
283
|
-
- Patrick Sullivan
|
|
284
|
-
|
|
285
|
-
## 1.5.3 (2024-02-27)
|
|
286
|
-
|
|
287
|
-
### 🩹 Fixes
|
|
288
|
-
|
|
289
|
-
- **workspace-tools:** Resolve issue with tsconfig file resolution ([0254e50a](https://github.com/storm-software/storm-ops/commit/0254e50a))
|
|
290
|
-
|
|
291
|
-
### ❤️ Thank You
|
|
292
|
-
|
|
293
|
-
- Patrick Sullivan
|
|
294
|
-
|
|
295
|
-
## 1.5.2 (2024-02-27)
|
|
296
|
-
|
|
297
|
-
### 🩹 Fixes
|
|
298
|
-
|
|
299
|
-
- **workspace-tools:** Update module type on config packages to support imports ([a0b2bff4](https://github.com/storm-software/storm-ops/commit/a0b2bff4))
|
|
300
|
-
|
|
301
|
-
- **config-tools:** Update config packages to only use cjs ([75e4a16b](https://github.com/storm-software/storm-ops/commit/75e4a16b))
|
|
302
|
-
|
|
303
|
-
### ❤️ Thank You
|
|
304
|
-
|
|
305
|
-
- Patrick Sullivan
|
|
306
|
-
|
|
307
|
-
## 1.5.1 (2024-02-27)
|
|
308
|
-
|
|
309
|
-
### 🩹 Fixes
|
|
310
|
-
|
|
311
|
-
- **workspace-tools:** Update the build executor back to esbuild ([ff200547](https://github.com/storm-software/storm-ops/commit/ff200547))
|
|
312
|
-
|
|
313
|
-
### ❤️ Thank You
|
|
314
|
-
|
|
315
|
-
- Patrick Sullivan
|
|
316
|
-
|
|
317
|
-
## 1.5.0 (2024-02-26)
|
|
318
|
-
|
|
319
|
-
### 🚀 Features
|
|
320
|
-
|
|
321
|
-
- **tsconfig:** Added package to contain default base tsconfig files ([1b341f9a](https://github.com/storm-software/storm-ops/commit/1b341f9a))
|
|
322
|
-
|
|
323
|
-
### 🩹 Fixes
|
|
324
|
-
|
|
325
|
-
- **git-tools:** Resolved linting issues with the nx-version module ([9b5f02d0](https://github.com/storm-software/storm-ops/commit/9b5f02d0))
|
|
326
|
-
|
|
327
|
-
### ❤️ Thank You
|
|
328
|
-
|
|
329
|
-
- Patrick Sullivan
|
|
330
|
-
|
|
331
|
-
## 1.4.0 (2024-02-26)
|
|
332
|
-
|
|
333
|
-
### 🚀 Features
|
|
334
|
-
|
|
335
|
-
- **storm-ops:** Major updates to tsconfig values ([a3638fae](https://github.com/storm-software/storm-ops/commit/a3638fae))
|
|
336
|
-
|
|
337
|
-
### ❤️ Thank You
|
|
338
|
-
|
|
339
|
-
- Patrick Sullivan
|
|
340
|
-
|
|
341
|
-
## 1.3.6 (2024-02-24)
|
|
342
|
-
|
|
343
|
-
### 🩹 Fixes
|
|
344
|
-
|
|
345
|
-
- **workspace-tools:** Update build compiler parameters ([3c6cb525](https://github.com/storm-software/storm-ops/commit/3c6cb525))
|
|
346
|
-
|
|
347
|
-
### ❤️ Thank You
|
|
348
|
-
|
|
349
|
-
- Patrick Sullivan
|
|
350
|
-
|
|
351
|
-
## 1.3.5 (2024-02-20)
|
|
352
|
-
|
|
353
|
-
### 🚀 Features
|
|
354
|
-
|
|
355
|
-
- **git-tools:** Support for updated Nx Release processing ([92f99126](https://github.com/storm-software/storm-ops/commit/92f99126))
|
|
356
|
-
|
|
357
|
-
### 🩹 Fixes
|
|
358
|
-
|
|
359
|
-
- **changelog:** Resolved type issues when calling changelogRenderer ([3c84ddd5](https://github.com/storm-software/storm-ops/commit/3c84ddd5))
|
|
360
|
-
|
|
361
|
-
- **config:** Update type of package ([60f75b96](https://github.com/storm-software/storm-ops/commit/60f75b96))
|
|
362
|
-
|
|
363
|
-
- **config:** Update package to use CommonJs ([f8c863cd](https://github.com/storm-software/storm-ops/commit/f8c863cd))
|
|
364
|
-
|
|
365
|
-
- **config-tools:** Update method of importing config package ([197213a6](https://github.com/storm-software/storm-ops/commit/197213a6))
|
|
366
|
-
|
|
367
|
-
- **config:** Mark config to no longer bundle code ([2b97e77e](https://github.com/storm-software/storm-ops/commit/2b97e77e))
|
|
368
|
-
|
|
369
|
-
- **config:** Update package import handlers ([5d6e83c8](https://github.com/storm-software/storm-ops/commit/5d6e83c8))
|
|
370
|
-
|
|
371
|
-
### ❤️ Thank You
|
|
372
|
-
|
|
373
|
-
- Patrick Sullivan
|
|
374
|
-
|
|
375
|
-
## 1.3.4 (2024-02-20)
|
|
376
|
-
|
|
377
|
-
### 🚀 Features
|
|
378
|
-
|
|
379
|
-
- **git-tools:** Support for updated Nx Release processing ([92f99126](https://github.com/storm-software/storm-ops/commit/92f99126))
|
|
380
|
-
|
|
381
|
-
### 🩹 Fixes
|
|
382
|
-
|
|
383
|
-
- **changelog:** Resolved type issues when calling changelogRenderer ([3c84ddd5](https://github.com/storm-software/storm-ops/commit/3c84ddd5))
|
|
384
|
-
|
|
385
|
-
- **config:** Update type of package ([60f75b96](https://github.com/storm-software/storm-ops/commit/60f75b96))
|
|
386
|
-
|
|
387
|
-
- **config:** Update package to use CommonJs ([f8c863cd](https://github.com/storm-software/storm-ops/commit/f8c863cd))
|
|
388
|
-
|
|
389
|
-
- **config-tools:** Update method of importing config package ([197213a6](https://github.com/storm-software/storm-ops/commit/197213a6))
|
|
390
|
-
|
|
391
|
-
- **config:** Mark config to no longer bundle code ([2b97e77e](https://github.com/storm-software/storm-ops/commit/2b97e77e))
|
|
392
|
-
|
|
393
|
-
### ❤️ Thank You
|
|
394
|
-
|
|
395
|
-
- Patrick Sullivan
|
|
396
|
-
|
|
397
|
-
## 1.3.3 (2024-02-20)
|
|
398
|
-
|
|
399
|
-
### 🚀 Features
|
|
400
|
-
|
|
401
|
-
- **git-tools:** Support for updated Nx Release processing ([92f99126](https://github.com/storm-software/storm-ops/commit/92f99126))
|
|
402
|
-
|
|
403
|
-
### 🩹 Fixes
|
|
404
|
-
|
|
405
|
-
- **changelog:** Resolved type issues when calling changelogRenderer ([3c84ddd5](https://github.com/storm-software/storm-ops/commit/3c84ddd5))
|
|
406
|
-
|
|
407
|
-
- **config:** Update type of package ([60f75b96](https://github.com/storm-software/storm-ops/commit/60f75b96))
|
|
408
|
-
|
|
409
|
-
- **config:** Update package to use CommonJs ([f8c863cd](https://github.com/storm-software/storm-ops/commit/f8c863cd))
|
|
410
|
-
|
|
411
|
-
- **config-tools:** Update method of importing config package ([197213a6](https://github.com/storm-software/storm-ops/commit/197213a6))
|
|
412
|
-
|
|
413
|
-
### ❤️ Thank You
|
|
414
|
-
|
|
415
|
-
- Patrick Sullivan
|
|
416
|
-
|
|
417
|
-
## 1.3.2 (2024-02-20)
|
|
418
|
-
|
|
419
|
-
### 🚀 Features
|
|
420
|
-
|
|
421
|
-
- **git-tools:** Support for updated Nx Release processing ([92f99126](https://github.com/storm-software/storm-ops/commit/92f99126))
|
|
422
|
-
|
|
423
|
-
### 🩹 Fixes
|
|
424
|
-
|
|
425
|
-
- **changelog:** Resolved type issues when calling changelogRenderer ([3c84ddd5](https://github.com/storm-software/storm-ops/commit/3c84ddd5))
|
|
426
|
-
|
|
427
|
-
- **config:** Update type of package ([60f75b96](https://github.com/storm-software/storm-ops/commit/60f75b96))
|
|
428
|
-
|
|
429
|
-
- **config:** Update package to use CommonJs ([f8c863cd](https://github.com/storm-software/storm-ops/commit/f8c863cd))
|
|
430
|
-
|
|
431
|
-
### ❤️ Thank You
|
|
432
|
-
|
|
433
|
-
- Patrick Sullivan
|
|
434
|
-
|
|
435
|
-
## 1.3.1 (2024-02-20)
|
|
436
|
-
|
|
437
|
-
### 🚀 Features
|
|
438
|
-
|
|
439
|
-
- **git-tools:** Support for updated Nx Release processing ([92f99126](https://github.com/storm-software/storm-ops/commit/92f99126))
|
|
440
|
-
|
|
441
|
-
### 🩹 Fixes
|
|
442
|
-
|
|
443
|
-
- **changelog:** Resolved type issues when calling changelogRenderer ([3c84ddd5](https://github.com/storm-software/storm-ops/commit/3c84ddd5))
|
|
444
|
-
|
|
445
|
-
- **config:** Update type of package ([60f75b96](https://github.com/storm-software/storm-ops/commit/60f75b96))
|
|
446
|
-
|
|
447
|
-
### ❤️ Thank You
|
|
448
|
-
|
|
449
|
-
- Patrick Sullivan
|
|
450
|
-
|
|
451
|
-
## 1.3.0 (2024-02-20)
|
|
452
|
-
|
|
453
|
-
### 🚀 Features
|
|
454
|
-
|
|
455
|
-
- **git-tools:** Support for updated Nx Release processing ([92f99126](https://github.com/storm-software/storm-ops/commit/92f99126))
|
|
456
|
-
|
|
457
|
-
### 🩹 Fixes
|
|
458
|
-
|
|
459
|
-
- **changelog:** Resolved type issues when calling changelogRenderer ([3c84ddd5](https://github.com/storm-software/storm-ops/commit/3c84ddd5))
|
|
460
|
-
|
|
461
|
-
### ❤️ Thank You
|
|
462
|
-
|
|
463
|
-
- Patrick Sullivan
|
|
464
|
-
|
|
465
|
-
## 1.2.22 (2024-02-17)
|
|
466
|
-
|
|
467
|
-
### 🩹 Fixes
|
|
468
|
-
|
|
469
|
-
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
470
|
-
|
|
471
|
-
- **storm-ops:** Resolve issue with the pnpm version ([f124fd94](https://github.com/storm-software/storm-ops/commit/f124fd94))
|
|
472
|
-
|
|
473
|
-
- **config-tools:** Update package type to a module to resolve import issues ([4a9649c9](https://github.com/storm-software/storm-ops/commit/4a9649c9))
|
|
474
|
-
|
|
475
|
-
- **config:** Updated the default import method ([3556e215](https://github.com/storm-software/storm-ops/commit/3556e215))
|
|
476
|
-
|
|
477
|
-
- **workspace-tools:** Add `zod` as external depencency ([05b66136](https://github.com/storm-software/storm-ops/commit/05b66136))
|
|
478
|
-
|
|
479
|
-
- **workspace-tools:** Update method of referencing the internal packages ([b3f127c4](https://github.com/storm-software/storm-ops/commit/b3f127c4))
|
|
480
|
-
|
|
481
|
-
### ❤️ Thank You
|
|
482
|
-
|
|
483
|
-
- Patrick Sullivan
|
|
484
|
-
|
|
485
|
-
## 1.2.21 (2024-02-17)
|
|
486
|
-
|
|
487
|
-
### 🩹 Fixes
|
|
488
|
-
|
|
489
|
-
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
490
|
-
|
|
491
|
-
- **storm-ops:** Resolve issue with the pnpm version ([f124fd94](https://github.com/storm-software/storm-ops/commit/f124fd94))
|
|
492
|
-
|
|
493
|
-
- **config-tools:** Update package type to a module to resolve import issues ([4a9649c9](https://github.com/storm-software/storm-ops/commit/4a9649c9))
|
|
494
|
-
|
|
495
|
-
- **config:** Updated the default import method ([3556e215](https://github.com/storm-software/storm-ops/commit/3556e215))
|
|
496
|
-
|
|
497
|
-
- **workspace-tools:** Add `zod` as external depencency ([05b66136](https://github.com/storm-software/storm-ops/commit/05b66136))
|
|
498
|
-
|
|
499
|
-
### ❤️ Thank You
|
|
500
|
-
|
|
501
|
-
- Patrick Sullivan
|
|
502
|
-
|
|
503
|
-
## 1.2.20 (2024-02-17)
|
|
504
|
-
|
|
505
|
-
### 🩹 Fixes
|
|
506
|
-
|
|
507
|
-
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
508
|
-
|
|
509
|
-
- **storm-ops:** Resolve issue with the pnpm version ([f124fd94](https://github.com/storm-software/storm-ops/commit/f124fd94))
|
|
510
|
-
|
|
511
|
-
- **config-tools:** Update package type to a module to resolve import issues ([4a9649c9](https://github.com/storm-software/storm-ops/commit/4a9649c9))
|
|
512
|
-
|
|
513
|
-
- **config:** Updated the default import method ([3556e215](https://github.com/storm-software/storm-ops/commit/3556e215))
|
|
514
|
-
|
|
515
|
-
### ❤️ Thank You
|
|
516
|
-
|
|
517
|
-
- Patrick Sullivan
|
|
518
|
-
|
|
519
|
-
## 1.2.19 (2024-02-15)
|
|
520
|
-
|
|
521
|
-
### 🩹 Fixes
|
|
522
|
-
|
|
523
|
-
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
524
|
-
|
|
525
|
-
- **storm-ops:** Resolve issue with the pnpm version ([f124fd94](https://github.com/storm-software/storm-ops/commit/f124fd94))
|
|
526
|
-
|
|
527
|
-
- **config-tools:** Update package type to a module to resolve import issues ([4a9649c9](https://github.com/storm-software/storm-ops/commit/4a9649c9))
|
|
528
|
-
|
|
529
|
-
### ❤️ Thank You
|
|
530
|
-
|
|
531
|
-
- Patrick Sullivan
|
|
532
|
-
|
|
533
|
-
## 1.2.18 (2024-02-15)
|
|
534
|
-
|
|
535
|
-
### 🩹 Fixes
|
|
536
|
-
|
|
537
|
-
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
538
|
-
|
|
539
|
-
- **storm-ops:** Resolve issue with the pnpm version ([f124fd94](https://github.com/storm-software/storm-ops/commit/f124fd94))
|
|
540
|
-
|
|
541
|
-
### ❤️ Thank You
|
|
542
|
-
|
|
543
|
-
- Patrick Sullivan
|
|
544
|
-
|
|
545
|
-
## 1.2.17 (2024-02-15)
|
|
546
|
-
|
|
547
|
-
### 🩹 Fixes
|
|
548
|
-
|
|
549
|
-
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
550
|
-
|
|
551
|
-
### ❤️ Thank You
|
|
552
|
-
|
|
553
|
-
- Patrick Sullivan
|
|
554
|
-
|
|
555
|
-
## 1.2.16 (2024-02-15)
|
|
556
|
-
|
|
557
|
-
### 🩹 Fixes
|
|
558
|
-
|
|
559
|
-
- **storm-ops:** Update chalk dependency for all modules ([d8a55c49](https://github.com/storm-software/storm-ops/commit/d8a55c49))
|
|
560
|
-
|
|
561
|
-
- **storm-ops:** Downgrade dependencies to work with cjs task runners ([bece51de](https://github.com/storm-software/storm-ops/commit/bece51de))
|
|
562
|
-
|
|
563
|
-
### ❤️ Thank You
|
|
564
|
-
|
|
565
|
-
- Patrick Sullivan
|
|
566
|
-
|
|
567
|
-
## 1.2.15 (2024-02-15)
|
|
568
|
-
|
|
569
|
-
### 🩹 Fixes
|
|
570
|
-
|
|
571
|
-
- **storm-ops:** Update chalk dependency for all modules ([d8a55c49](https://github.com/storm-software/storm-ops/commit/d8a55c49))
|
|
572
|
-
|
|
573
|
-
### ❤️ Thank You
|
|
574
|
-
|
|
575
|
-
- Patrick Sullivan
|
|
576
|
-
|
|
577
|
-
## 1.1.0 (2024-02-07)
|
|
578
|
-
|
|
579
|
-
### 🚀 Features
|
|
580
|
-
|
|
581
|
-
- **config:** Added a base config package to allow neutral access of `StormConfig` ([164eaa5b](https://github.com/storm-software/storm-ops/commit/164eaa5b))
|
|
582
|
-
|
|
583
|
-
- **config:** Updated git hooks to generate the json-schema for `StormConfig` ([263557cb](https://github.com/storm-software/storm-ops/commit/263557cb))
|
|
584
|
-
|
|
585
|
-
### ❤️ Thank You
|
|
586
|
-
|
|
587
|
-
- Patrick Sullivan
|
package/declarations.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type * as z from "zod";
|
|
2
|
-
import {
|
|
3
|
-
ColorConfigMapSchema,
|
|
4
|
-
ColorConfigSchema,
|
|
5
|
-
DarkThemeColorConfigSchema,
|
|
6
|
-
LightThemeColorConfigSchema,
|
|
7
|
-
MultiThemeColorConfigSchema,
|
|
8
|
-
SingleThemeColorConfigSchema,
|
|
9
|
-
StormConfigSchema
|
|
10
|
-
} from "./src/schema";
|
|
11
|
-
|
|
12
|
-
export type DarkThemeColorConfig = z.infer<typeof DarkThemeColorConfigSchema>;
|
|
13
|
-
export type DarkThemeColorConfigInput = z.input<
|
|
14
|
-
typeof DarkThemeColorConfigSchema
|
|
15
|
-
>;
|
|
16
|
-
|
|
17
|
-
export type LightThemeColorConfig = z.infer<typeof LightThemeColorConfigSchema>;
|
|
18
|
-
export type LightThemeColorConfigInput = z.input<
|
|
19
|
-
typeof LightThemeColorConfigSchema
|
|
20
|
-
>;
|
|
21
|
-
|
|
22
|
-
export type MultiThemeColorConfig = z.infer<typeof MultiThemeColorConfigSchema>;
|
|
23
|
-
export type MultiThemeColorConfigInput = z.input<
|
|
24
|
-
typeof MultiThemeColorConfigSchema
|
|
25
|
-
>;
|
|
26
|
-
|
|
27
|
-
export type SingleThemeColorConfig = z.infer<
|
|
28
|
-
typeof SingleThemeColorConfigSchema
|
|
29
|
-
>;
|
|
30
|
-
export type SingleThemeColorConfigInput = z.input<
|
|
31
|
-
typeof SingleThemeColorConfigSchema
|
|
32
|
-
>;
|
|
33
|
-
|
|
34
|
-
export type ColorConfig = z.infer<typeof ColorConfigSchema>;
|
|
35
|
-
export type ColorConfigInput = z.input<typeof ColorConfigSchema>;
|
|
36
|
-
|
|
37
|
-
export type ColorConfigMap = z.infer<typeof ColorConfigMapSchema>;
|
|
38
|
-
export type ColorConfigMapInput = z.input<typeof ColorConfigMapSchema>;
|
|
39
|
-
|
|
40
|
-
type TStormConfig = z.infer<typeof StormConfigSchema>;
|
|
41
|
-
|
|
42
|
-
declare type StormConfig<
|
|
43
|
-
TExtensionName extends
|
|
44
|
-
keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"],
|
|
45
|
-
TExtensionConfig extends
|
|
46
|
-
TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]
|
|
47
|
-
> = TStormConfig & {
|
|
48
|
-
extensions:
|
|
49
|
-
| (TStormConfig["extensions"] & {
|
|
50
|
-
[extensionName in TExtensionName]: TExtensionConfig;
|
|
51
|
-
})
|
|
52
|
-
| NonNullable<Record<string, any>>;
|
|
53
|
-
};
|
|
54
|
-
export type { StormConfig };
|
|
55
|
-
|
|
56
|
-
declare type StormConfigInput = z.input<typeof StormConfigSchema>;
|
|
57
|
-
export type { StormConfigInput };
|
|
58
|
-
|
|
59
|
-
export { StormConfigSchema } from "./src/schema";
|
|
60
|
-
|
|
61
|
-
export const COLOR_KEYS = [
|
|
62
|
-
"dark",
|
|
63
|
-
"light",
|
|
64
|
-
"primary",
|
|
65
|
-
"secondary",
|
|
66
|
-
"tertiary",
|
|
67
|
-
"accent",
|
|
68
|
-
"success",
|
|
69
|
-
"info",
|
|
70
|
-
"warning",
|
|
71
|
-
"error",
|
|
72
|
-
"fatal"
|
|
73
|
-
];
|
package/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var ke=Object.defineProperty;var tt=Object.getOwnPropertyDescriptor;var rt=Object.getOwnPropertyNames;var nt=Object.prototype.hasOwnProperty;var st=(r,e)=>{for(var t in e)ke(r,t,{get:e[t],enumerable:!0})},at=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of rt(e))!nt.call(r,s)&&s!==t&&ke(r,s,{get:()=>e[s],enumerable:!(n=tt(e,s))||n.enumerable});return r};var it=r=>at(ke({},"__esModule",{value:!0}),r);var fr={};st(fr,{COLOR_KEYS:()=>ur,ColorConfigMapSchema:()=>et,ColorConfigSchema:()=>xe,DarkThemeColorConfigSchema:()=>Xe,LightThemeColorConfigSchema:()=>Ke,MultiThemeColorConfigSchema:()=>Qe,SingleThemeColorConfigSchema:()=>Fe,StormConfigSchema:()=>dr,defineConfig:()=>lr});module.exports=it(fr);var x;(function(r){r.assertEqual=s=>s;function e(s){}r.assertIs=e;function t(s){throw new Error}r.assertNever=t,r.arrayToEnum=s=>{let a={};for(let i of s)a[i]=i;return a},r.getValidEnumValues=s=>{let a=r.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),i={};for(let o of a)i[o]=s[o];return r.objectValues(i)},r.objectValues=s=>r.objectKeys(s).map(function(a){return s[a]}),r.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{let a=[];for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&a.push(i);return a},r.find=(s,a)=>{for(let i of s)if(a(i))return i},r.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function n(s,a=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}r.joinValues=n,r.jsonStringifyReplacer=(s,a)=>typeof a=="bigint"?a.toString():a})(x||(x={}));var Te;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(Te||(Te={}));var f=x.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),M=r=>{switch(typeof r){case"undefined":return f.undefined;case"string":return f.string;case"number":return isNaN(r)?f.nan:f.number;case"boolean":return f.boolean;case"function":return f.function;case"bigint":return f.bigint;case"symbol":return f.symbol;case"object":return Array.isArray(r)?f.array:r===null?f.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?f.promise:typeof Map<"u"&&r instanceof Map?f.map:typeof Set<"u"&&r instanceof Set?f.set:typeof Date<"u"&&r instanceof Date?f.date:f.object;default:return f.unknown}},c=x.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),ot=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:"),T=class r extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(a){return a.message},n={_errors:[]},s=a=>{for(let i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let o=n,l=0;for(;l<i.path.length;){let d=i.path[l];l===i.path.length-1?(o[d]=o[d]||{_errors:[]},o[d]._errors.push(t(i))):o[d]=o[d]||{_errors:[]},o=o[d],l++}}};return s(this),n}static assert(e){if(!(e instanceof r))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,x.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){let t={},n=[];for(let s of this.issues)s.path.length>0?(t[s.path[0]]=t[s.path[0]]||[],t[s.path[0]].push(e(s))):n.push(e(s));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};T.create=r=>new T(r);var re=(r,e)=>{let t;switch(r.code){case c.invalid_type:r.received===f.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case c.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,x.jsonStringifyReplacer)}`;break;case c.unrecognized_keys:t=`Unrecognized key(s) in object: ${x.joinValues(r.keys,", ")}`;break;case c.invalid_union:t="Invalid input";break;case c.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${x.joinValues(r.options)}`;break;case c.invalid_enum_value:t=`Invalid enum value. Expected ${x.joinValues(r.options)}, received '${r.received}'`;break;case c.invalid_arguments:t="Invalid function arguments";break;case c.invalid_return_type:t="Invalid function return type";break;case c.invalid_date:t="Invalid date";break;case c.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:x.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case c.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case c.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case c.custom:t="Invalid input";break;case c.invalid_intersection_types:t="Intersection results could not be merged";break;case c.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case c.not_finite:t="Number must be finite";break;default:t=e.defaultError,x.assertNever(r)}return{message:t}},De=re;function ct(r){De=r}function he(){return De}var pe=r=>{let{data:e,path:t,errorMaps:n,issueData:s}=r,a=[...t,...s.path||[]],i={...s,path:a};if(s.message!==void 0)return{...s,path:a,message:s.message};let o="",l=n.filter(d=>!!d).slice().reverse();for(let d of l)o=d(i,{data:e,defaultError:o}).message;return{...s,path:a,message:o}},dt=[];function u(r,e){let t=he(),n=pe({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===re?void 0:re].filter(s=>!!s)});r.common.issues.push(n)}var b=class r{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let s of t){if(s.status==="aborted")return m;s.status==="dirty"&&e.dirty(),n.push(s.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let s of t){let a=await s.key,i=await s.value;n.push({key:a,value:i})}return r.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let s of t){let{key:a,value:i}=s;if(a.status==="aborted"||i.status==="aborted")return m;a.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(n[a.value]=i.value)}return{status:e.value,value:n}}},m=Object.freeze({status:"aborted"}),te=r=>({status:"dirty",value:r}),k=r=>({status:"valid",value:r}),Ce=r=>r.status==="aborted",Se=r=>r.status==="dirty",ue=r=>r.status==="valid",me=r=>typeof Promise<"u"&&r instanceof Promise;function ge(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)}function Ve(r,e,t,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!s:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(r,t):s?s.value=t:e.set(r,t),t}var h;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(h||(h={}));var ce,de,E=class{constructor(e,t,n,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Le=(r,e)=>{if(ue(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new T(r.common.issues);return this._error=t,this._error}}};function v(r){if(!r)return{};let{errorMap:e,invalid_type_error:t,required_error:n,description:s}=r;if(e&&(t||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,o)=>{var l,d;let{message:y}=r;return i.code==="invalid_enum_value"?{message:y??o.defaultError}:typeof o.data>"u"?{message:(l=y??n)!==null&&l!==void 0?l:o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:(d=y??t)!==null&&d!==void 0?d:o.defaultError}},description:s}}var _=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return M(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:M(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new b,ctx:{common:e.parent.common,data:e.data,parsedType:M(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(me(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let s={common:{issues:[],async:(n=t?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:M(e)},a=this._parseSync({data:e,path:s.path,parent:s});return Le(s,a)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:M(e)},s=this._parse({data:e,path:n.path,parent:n}),a=await(me(s)?s:Promise.resolve(s));return Le(n,a)}refine(e,t){let n=s=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(s):t;return this._refinement((s,a)=>{let i=e(s),o=()=>a.addIssue({code:c.custom,...n(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,t){return this._refinement((n,s)=>e(n)?!0:(s.addIssue(typeof t=="function"?t(n,s):t),!1))}_refinement(e){return new C({schema:this,typeName:p.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return O.create(this,this._def)}nullable(){return Z.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return A.create(this,this._def)}promise(){return L.create(this,this._def)}or(e){return q.create([this,e],this._def)}and(e){return Y.create(this,e,this._def)}transform(e){return new C({...v(this._def),schema:this,typeName:p.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e=="function"?e:()=>e;return new K({...v(this._def),innerType:this,defaultValue:t,typeName:p.ZodDefault})}brand(){return new le({typeName:p.ZodBranded,type:this,...v(this._def)})}catch(e){let t=typeof e=="function"?e:()=>e;return new Q({...v(this._def),innerType:this,catchValue:t,typeName:p.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return fe.create(this,e)}readonly(){return F.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},ut=/^c[^\s-]{8,}$/i,lt=/^[0-9a-z]+$/,ft=/^[0-9A-HJKMNP-TV-Z]{26}$/,ht=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,pt=/^[a-z0-9_-]{21}$/i,mt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,gt=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,yt="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",we,vt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,_t=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,xt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Ue="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",bt=new RegExp(`^${Ue}$`);function Be(r){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return r.precision?e=`${e}\\.\\d{${r.precision}}`:r.precision==null&&(e=`${e}(\\.\\d+)?`),e}function kt(r){return new RegExp(`^${Be(r)}$`)}function We(r){let e=`${Ue}T${Be(r)}`,t=[];return t.push(r.local?"Z?":"Z"),r.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function wt(r,e){return!!((e==="v4"||!e)&&vt.test(r)||(e==="v6"||!e)&&_t.test(r))}var $=class r extends _{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==f.string){let a=this._getOrReturnCtx(e);return u(a,{code:c.invalid_type,expected:f.string,received:a.parsedType}),m}let n=new b,s;for(let a of this._def.checks)if(a.kind==="min")e.data.length<a.value&&(s=this._getOrReturnCtx(e,s),u(s,{code:c.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="max")e.data.length>a.value&&(s=this._getOrReturnCtx(e,s),u(s,{code:c.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="length"){let i=e.data.length>a.value,o=e.data.length<a.value;(i||o)&&(s=this._getOrReturnCtx(e,s),i?u(s,{code:c.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&u(s,{code:c.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),n.dirty())}else if(a.kind==="email")gt.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"email",code:c.invalid_string,message:a.message}),n.dirty());else if(a.kind==="emoji")we||(we=new RegExp(yt,"u")),we.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"emoji",code:c.invalid_string,message:a.message}),n.dirty());else if(a.kind==="uuid")ht.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"uuid",code:c.invalid_string,message:a.message}),n.dirty());else if(a.kind==="nanoid")pt.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"nanoid",code:c.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid")ut.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"cuid",code:c.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid2")lt.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"cuid2",code:c.invalid_string,message:a.message}),n.dirty());else if(a.kind==="ulid")ft.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"ulid",code:c.invalid_string,message:a.message}),n.dirty());else if(a.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),u(s,{validation:"url",code:c.invalid_string,message:a.message}),n.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"regex",code:c.invalid_string,message:a.message}),n.dirty())):a.kind==="trim"?e.data=e.data.trim():a.kind==="includes"?e.data.includes(a.value,a.position)||(s=this._getOrReturnCtx(e,s),u(s,{code:c.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),n.dirty()):a.kind==="toLowerCase"?e.data=e.data.toLowerCase():a.kind==="toUpperCase"?e.data=e.data.toUpperCase():a.kind==="startsWith"?e.data.startsWith(a.value)||(s=this._getOrReturnCtx(e,s),u(s,{code:c.invalid_string,validation:{startsWith:a.value},message:a.message}),n.dirty()):a.kind==="endsWith"?e.data.endsWith(a.value)||(s=this._getOrReturnCtx(e,s),u(s,{code:c.invalid_string,validation:{endsWith:a.value},message:a.message}),n.dirty()):a.kind==="datetime"?We(a).test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{code:c.invalid_string,validation:"datetime",message:a.message}),n.dirty()):a.kind==="date"?bt.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{code:c.invalid_string,validation:"date",message:a.message}),n.dirty()):a.kind==="time"?kt(a).test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{code:c.invalid_string,validation:"time",message:a.message}),n.dirty()):a.kind==="duration"?mt.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"duration",code:c.invalid_string,message:a.message}),n.dirty()):a.kind==="ip"?wt(e.data,a.version)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"ip",code:c.invalid_string,message:a.message}),n.dirty()):a.kind==="base64"?xt.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"base64",code:c.invalid_string,message:a.message}),n.dirty()):x.assertNever(a);return{status:n.value,value:e.data}}_regex(e,t,n){return this.refinement(s=>e.test(s),{validation:t,code:c.invalid_string,...h.errToObj(n)})}_addCheck(e){return new r({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...h.errToObj(e)})}url(e){return this._addCheck({kind:"url",...h.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...h.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...h.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...h.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...h.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...h.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...h.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...h.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...h.errToObj(e)})}datetime(e){var t,n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(t=e?.offset)!==null&&t!==void 0?t:!1,local:(n=e?.local)!==null&&n!==void 0?n:!1,...h.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...h.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...h.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...h.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...h.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...h.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...h.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...h.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...h.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...h.errToObj(t)})}nonempty(e){return this.min(1,h.errToObj(e))}trim(){return new r({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new r({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new r({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}};$.create=r=>{var e;return new $({checks:[],typeName:p.ZodString,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,...v(r)})};function Tt(r,e){let t=(r.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,s=t>n?t:n,a=parseInt(r.toFixed(s).replace(".","")),i=parseInt(e.toFixed(s).replace(".",""));return a%i/Math.pow(10,s)}var P=class r extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==f.number){let a=this._getOrReturnCtx(e);return u(a,{code:c.invalid_type,expected:f.number,received:a.parsedType}),m}let n,s=new b;for(let a of this._def.checks)a.kind==="int"?x.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{code:c.invalid_type,expected:"integer",received:"float",message:a.message}),s.dirty()):a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(n=this._getOrReturnCtx(e,n),u(n,{code:c.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(n=this._getOrReturnCtx(e,n),u(n,{code:c.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="multipleOf"?Tt(e.data,a.value)!==0&&(n=this._getOrReturnCtx(e,n),u(n,{code:c.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{code:c.not_finite,message:a.message}),s.dirty()):x.assertNever(a);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,h.toString(t))}gt(e,t){return this.setLimit("min",e,!1,h.toString(t))}lte(e,t){return this.setLimit("max",e,!0,h.toString(t))}lt(e,t){return this.setLimit("max",e,!1,h.toString(t))}setLimit(e,t,n,s){return new r({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:h.toString(s)}]})}_addCheck(e){return new r({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:h.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:h.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:h.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:h.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:h.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:h.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:h.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:h.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:h.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&x.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(t===null||n.value>t)&&(t=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}};P.create=r=>new P({checks:[],typeName:p.ZodNumber,coerce:r?.coerce||!1,...v(r)});var D=class r extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==f.bigint){let a=this._getOrReturnCtx(e);return u(a,{code:c.invalid_type,expected:f.bigint,received:a.parsedType}),m}let n,s=new b;for(let a of this._def.checks)a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(n=this._getOrReturnCtx(e,n),u(n,{code:c.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(n=this._getOrReturnCtx(e,n),u(n,{code:c.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),u(n,{code:c.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):x.assertNever(a);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,h.toString(t))}gt(e,t){return this.setLimit("min",e,!1,h.toString(t))}lte(e,t){return this.setLimit("max",e,!0,h.toString(t))}lt(e,t){return this.setLimit("max",e,!1,h.toString(t))}setLimit(e,t,n,s){return new r({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:h.toString(s)}]})}_addCheck(e){return new r({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:h.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:h.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:h.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:h.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:h.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}};D.create=r=>{var e;return new D({checks:[],typeName:p.ZodBigInt,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,...v(r)})};var V=class extends _{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==f.boolean){let n=this._getOrReturnCtx(e);return u(n,{code:c.invalid_type,expected:f.boolean,received:n.parsedType}),m}return k(e.data)}};V.create=r=>new V({typeName:p.ZodBoolean,coerce:r?.coerce||!1,...v(r)});var U=class r extends _{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==f.date){let a=this._getOrReturnCtx(e);return u(a,{code:c.invalid_type,expected:f.date,received:a.parsedType}),m}if(isNaN(e.data.getTime())){let a=this._getOrReturnCtx(e);return u(a,{code:c.invalid_date}),m}let n=new b,s;for(let a of this._def.checks)a.kind==="min"?e.data.getTime()<a.value&&(s=this._getOrReturnCtx(e,s),u(s,{code:c.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),n.dirty()):a.kind==="max"?e.data.getTime()>a.value&&(s=this._getOrReturnCtx(e,s),u(s,{code:c.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),n.dirty()):x.assertNever(a);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new r({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:h.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:h.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}};U.create=r=>new U({checks:[],coerce:r?.coerce||!1,typeName:p.ZodDate,...v(r)});var ne=class extends _{_parse(e){if(this._getType(e)!==f.symbol){let n=this._getOrReturnCtx(e);return u(n,{code:c.invalid_type,expected:f.symbol,received:n.parsedType}),m}return k(e.data)}};ne.create=r=>new ne({typeName:p.ZodSymbol,...v(r)});var B=class extends _{_parse(e){if(this._getType(e)!==f.undefined){let n=this._getOrReturnCtx(e);return u(n,{code:c.invalid_type,expected:f.undefined,received:n.parsedType}),m}return k(e.data)}};B.create=r=>new B({typeName:p.ZodUndefined,...v(r)});var W=class extends _{_parse(e){if(this._getType(e)!==f.null){let n=this._getOrReturnCtx(e);return u(n,{code:c.invalid_type,expected:f.null,received:n.parsedType}),m}return k(e.data)}};W.create=r=>new W({typeName:p.ZodNull,...v(r)});var z=class extends _{constructor(){super(...arguments),this._any=!0}_parse(e){return k(e.data)}};z.create=r=>new z({typeName:p.ZodAny,...v(r)});var I=class extends _{constructor(){super(...arguments),this._unknown=!0}_parse(e){return k(e.data)}};I.create=r=>new I({typeName:p.ZodUnknown,...v(r)});var N=class extends _{_parse(e){let t=this._getOrReturnCtx(e);return u(t,{code:c.invalid_type,expected:f.never,received:t.parsedType}),m}};N.create=r=>new N({typeName:p.ZodNever,...v(r)});var se=class extends _{_parse(e){if(this._getType(e)!==f.undefined){let n=this._getOrReturnCtx(e);return u(n,{code:c.invalid_type,expected:f.void,received:n.parsedType}),m}return k(e.data)}};se.create=r=>new se({typeName:p.ZodVoid,...v(r)});var A=class r extends _{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),s=this._def;if(t.parsedType!==f.array)return u(t,{code:c.invalid_type,expected:f.array,received:t.parsedType}),m;if(s.exactLength!==null){let i=t.data.length>s.exactLength.value,o=t.data.length<s.exactLength.value;(i||o)&&(u(t,{code:i?c.too_big:c.too_small,minimum:o?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&t.data.length<s.minLength.value&&(u(t,{code:c.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&t.data.length>s.maxLength.value&&(u(t,{code:c.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((i,o)=>s.type._parseAsync(new E(t,i,t.path,o)))).then(i=>b.mergeArray(n,i));let a=[...t.data].map((i,o)=>s.type._parseSync(new E(t,i,t.path,o)));return b.mergeArray(n,a)}get element(){return this._def.type}min(e,t){return new r({...this._def,minLength:{value:e,message:h.toString(t)}})}max(e,t){return new r({...this._def,maxLength:{value:e,message:h.toString(t)}})}length(e,t){return new r({...this._def,exactLength:{value:e,message:h.toString(t)}})}nonempty(e){return this.min(1,e)}};A.create=(r,e)=>new A({type:r,minLength:null,maxLength:null,exactLength:null,typeName:p.ZodArray,...v(e)});function ee(r){if(r instanceof w){let e={};for(let t in r.shape){let n=r.shape[t];e[t]=O.create(ee(n))}return new w({...r._def,shape:()=>e})}else return r instanceof A?new A({...r._def,type:ee(r.element)}):r instanceof O?O.create(ee(r.unwrap())):r instanceof Z?Z.create(ee(r.unwrap())):r instanceof j?j.create(r.items.map(e=>ee(e))):r}var w=class r extends _{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=x.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==f.object){let d=this._getOrReturnCtx(e);return u(d,{code:c.invalid_type,expected:f.object,received:d.parsedType}),m}let{status:n,ctx:s}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof N&&this._def.unknownKeys==="strip"))for(let d in s.data)i.includes(d)||o.push(d);let l=[];for(let d of i){let y=a[d],S=s.data[d];l.push({key:{status:"valid",value:d},value:y._parse(new E(s,S,s.path,d)),alwaysSet:d in s.data})}if(this._def.catchall instanceof N){let d=this._def.unknownKeys;if(d==="passthrough")for(let y of o)l.push({key:{status:"valid",value:y},value:{status:"valid",value:s.data[y]}});else if(d==="strict")o.length>0&&(u(s,{code:c.unrecognized_keys,keys:o}),n.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let d=this._def.catchall;for(let y of o){let S=s.data[y];l.push({key:{status:"valid",value:y},value:d._parse(new E(s,S,s.path,y)),alwaysSet:y in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let d=[];for(let y of l){let S=await y.key,ze=await y.value;d.push({key:S,value:ze,alwaysSet:y.alwaysSet})}return d}).then(d=>b.mergeObjectSync(n,d)):b.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return h.errToObj,new r({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var s,a,i,o;let l=(i=(a=(s=this._def).errorMap)===null||a===void 0?void 0:a.call(s,t,n).message)!==null&&i!==void 0?i:n.defaultError;return t.code==="unrecognized_keys"?{message:(o=h.errToObj(e).message)!==null&&o!==void 0?o:l}:{message:l}}}:{}})}strip(){return new r({...this._def,unknownKeys:"strip"})}passthrough(){return new r({...this._def,unknownKeys:"passthrough"})}extend(e){return new r({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new r({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:p.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new r({...this._def,catchall:e})}pick(e){let t={};return x.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new r({...this._def,shape:()=>t})}omit(e){let t={};return x.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new r({...this._def,shape:()=>t})}deepPartial(){return ee(this)}partial(e){let t={};return x.objectKeys(this.shape).forEach(n=>{let s=this.shape[n];e&&!e[n]?t[n]=s:t[n]=s.optional()}),new r({...this._def,shape:()=>t})}required(e){let t={};return x.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let a=this.shape[n];for(;a instanceof O;)a=a._def.innerType;t[n]=a}}),new r({...this._def,shape:()=>t})}keyof(){return qe(x.objectKeys(this.shape))}};w.create=(r,e)=>new w({shape:()=>r,unknownKeys:"strip",catchall:N.create(),typeName:p.ZodObject,...v(e)});w.strictCreate=(r,e)=>new w({shape:()=>r,unknownKeys:"strict",catchall:N.create(),typeName:p.ZodObject,...v(e)});w.lazycreate=(r,e)=>new w({shape:r,unknownKeys:"strip",catchall:N.create(),typeName:p.ZodObject,...v(e)});var q=class extends _{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function s(a){for(let o of a)if(o.result.status==="valid")return o.result;for(let o of a)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;let i=a.map(o=>new T(o.ctx.common.issues));return u(t,{code:c.invalid_union,unionErrors:i}),m}if(t.common.async)return Promise.all(n.map(async a=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await a._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(s);{let a,i=[];for(let l of n){let d={...t,common:{...t.common,issues:[]},parent:null},y=l._parseSync({data:t.data,path:t.path,parent:d});if(y.status==="valid")return y;y.status==="dirty"&&!a&&(a={result:y,ctx:d}),d.common.issues.length&&i.push(d.common.issues)}if(a)return t.common.issues.push(...a.ctx.common.issues),a.result;let o=i.map(l=>new T(l));return u(t,{code:c.invalid_union,unionErrors:o}),m}}get options(){return this._def.options}};q.create=(r,e)=>new q({options:r,typeName:p.ZodUnion,...v(e)});var R=r=>r instanceof J?R(r.schema):r instanceof C?R(r.innerType()):r instanceof H?[r.value]:r instanceof G?r.options:r instanceof X?x.objectValues(r.enum):r instanceof K?R(r._def.innerType):r instanceof B?[void 0]:r instanceof W?[null]:r instanceof O?[void 0,...R(r.unwrap())]:r instanceof Z?[null,...R(r.unwrap())]:r instanceof le||r instanceof F?R(r.unwrap()):r instanceof Q?R(r._def.innerType):[],ye=class r extends _{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.object)return u(t,{code:c.invalid_type,expected:f.object,received:t.parsedType}),m;let n=this.discriminator,s=t.data[n],a=this.optionsMap.get(s);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(u(t,{code:c.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let s=new Map;for(let a of t){let i=R(a.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of i){if(s.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);s.set(o,a)}}return new r({typeName:p.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:s,...v(n)})}};function Oe(r,e){let t=M(r),n=M(e);if(r===e)return{valid:!0,data:r};if(t===f.object&&n===f.object){let s=x.objectKeys(e),a=x.objectKeys(r).filter(o=>s.indexOf(o)!==-1),i={...r,...e};for(let o of a){let l=Oe(r[o],e[o]);if(!l.valid)return{valid:!1};i[o]=l.data}return{valid:!0,data:i}}else if(t===f.array&&n===f.array){if(r.length!==e.length)return{valid:!1};let s=[];for(let a=0;a<r.length;a++){let i=r[a],o=e[a],l=Oe(i,o);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return t===f.date&&n===f.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}var Y=class extends _{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),s=(a,i)=>{if(Ce(a)||Ce(i))return m;let o=Oe(a.value,i.value);return o.valid?((Se(a)||Se(i))&&t.dirty(),{status:t.value,value:o.data}):(u(n,{code:c.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([a,i])=>s(a,i)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Y.create=(r,e,t)=>new Y({left:r,right:e,typeName:p.ZodIntersection,...v(t)});var j=class r extends _{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.array)return u(n,{code:c.invalid_type,expected:f.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return u(n,{code:c.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&n.data.length>this._def.items.length&&(u(n,{code:c.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let a=[...n.data].map((i,o)=>{let l=this._def.items[o]||this._def.rest;return l?l._parse(new E(n,i,n.path,o)):null}).filter(i=>!!i);return n.common.async?Promise.all(a).then(i=>b.mergeArray(t,i)):b.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new r({...this._def,rest:e})}};j.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new j({items:r,typeName:p.ZodTuple,rest:null,...v(e)})};var ve=class r extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.object)return u(n,{code:c.invalid_type,expected:f.object,received:n.parsedType}),m;let s=[],a=this._def.keyType,i=this._def.valueType;for(let o in n.data)s.push({key:a._parse(new E(n,o,n.path,o)),value:i._parse(new E(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?b.mergeObjectAsync(t,s):b.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof _?new r({keyType:e,valueType:t,typeName:p.ZodRecord,...v(n)}):new r({keyType:$.create(),valueType:e,typeName:p.ZodRecord,...v(t)})}},ae=class extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.map)return u(n,{code:c.invalid_type,expected:f.map,received:n.parsedType}),m;let s=this._def.keyType,a=this._def.valueType,i=[...n.data.entries()].map(([o,l],d)=>({key:s._parse(new E(n,o,n.path,[d,"key"])),value:a._parse(new E(n,l,n.path,[d,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let l of i){let d=await l.key,y=await l.value;if(d.status==="aborted"||y.status==="aborted")return m;(d.status==="dirty"||y.status==="dirty")&&t.dirty(),o.set(d.value,y.value)}return{status:t.value,value:o}})}else{let o=new Map;for(let l of i){let d=l.key,y=l.value;if(d.status==="aborted"||y.status==="aborted")return m;(d.status==="dirty"||y.status==="dirty")&&t.dirty(),o.set(d.value,y.value)}return{status:t.value,value:o}}}};ae.create=(r,e,t)=>new ae({valueType:e,keyType:r,typeName:p.ZodMap,...v(t)});var ie=class r extends _{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.set)return u(n,{code:c.invalid_type,expected:f.set,received:n.parsedType}),m;let s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(u(n,{code:c.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),t.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(u(n,{code:c.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());let a=this._def.valueType;function i(l){let d=new Set;for(let y of l){if(y.status==="aborted")return m;y.status==="dirty"&&t.dirty(),d.add(y.value)}return{status:t.value,value:d}}let o=[...n.data.values()].map((l,d)=>a._parse(new E(n,l,n.path,d)));return n.common.async?Promise.all(o).then(l=>i(l)):i(o)}min(e,t){return new r({...this._def,minSize:{value:e,message:h.toString(t)}})}max(e,t){return new r({...this._def,maxSize:{value:e,message:h.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};ie.create=(r,e)=>new ie({valueType:r,minSize:null,maxSize:null,typeName:p.ZodSet,...v(e)});var _e=class r extends _{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.function)return u(t,{code:c.invalid_type,expected:f.function,received:t.parsedType}),m;function n(o,l){return pe({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,he(),re].filter(d=>!!d),issueData:{code:c.invalid_arguments,argumentsError:l}})}function s(o,l){return pe({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,he(),re].filter(d=>!!d),issueData:{code:c.invalid_return_type,returnTypeError:l}})}let a={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof L){let o=this;return k(async function(...l){let d=new T([]),y=await o._def.args.parseAsync(l,a).catch(be=>{throw d.addIssue(n(l,be)),d}),S=await Reflect.apply(i,this,y);return await o._def.returns._def.type.parseAsync(S,a).catch(be=>{throw d.addIssue(s(S,be)),d})})}else{let o=this;return k(function(...l){let d=o._def.args.safeParse(l,a);if(!d.success)throw new T([n(l,d.error)]);let y=Reflect.apply(i,this,d.data),S=o._def.returns.safeParse(y,a);if(!S.success)throw new T([s(y,S.error)]);return S.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new r({...this._def,args:j.create(e).rest(I.create())})}returns(e){return new r({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new r({args:e||j.create([]).rest(I.create()),returns:t||I.create(),typeName:p.ZodFunction,...v(n)})}},J=class extends _{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};J.create=(r,e)=>new J({getter:r,typeName:p.ZodLazy,...v(e)});var H=class extends _{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return u(t,{received:t.data,code:c.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}};H.create=(r,e)=>new H({value:r,typeName:p.ZodLiteral,...v(e)});function qe(r,e){return new G({values:r,typeName:p.ZodEnum,...v(e)})}var G=class r extends _{constructor(){super(...arguments),ce.set(this,void 0)}_parse(e){if(typeof e.data!="string"){let t=this._getOrReturnCtx(e),n=this._def.values;return u(t,{expected:x.joinValues(n),received:t.parsedType,code:c.invalid_type}),m}if(ge(this,ce,"f")||Ve(this,ce,new Set(this._def.values),"f"),!ge(this,ce,"f").has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return u(t,{received:t.data,code:c.invalid_enum_value,options:n}),m}return k(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return r.create(e,{...this._def,...t})}exclude(e,t=this._def){return r.create(this.options.filter(n=>!e.includes(n)),{...this._def,...t})}};ce=new WeakMap;G.create=qe;var X=class extends _{constructor(){super(...arguments),de.set(this,void 0)}_parse(e){let t=x.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==f.string&&n.parsedType!==f.number){let s=x.objectValues(t);return u(n,{expected:x.joinValues(s),received:n.parsedType,code:c.invalid_type}),m}if(ge(this,de,"f")||Ve(this,de,new Set(x.getValidEnumValues(this._def.values)),"f"),!ge(this,de,"f").has(e.data)){let s=x.objectValues(t);return u(n,{received:n.data,code:c.invalid_enum_value,options:s}),m}return k(e.data)}get enum(){return this._def.values}};de=new WeakMap;X.create=(r,e)=>new X({values:r,typeName:p.ZodNativeEnum,...v(e)});var L=class extends _{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.promise&&t.common.async===!1)return u(t,{code:c.invalid_type,expected:f.promise,received:t.parsedType}),m;let n=t.parsedType===f.promise?t.data:Promise.resolve(t.data);return k(n.then(s=>this._def.type.parseAsync(s,{path:t.path,errorMap:t.common.contextualErrorMap})))}};L.create=(r,e)=>new L({type:r,typeName:p.ZodPromise,...v(e)});var C=class extends _{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===p.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),s=this._def.effect||null,a={addIssue:i=>{u(n,i),i.fatal?t.abort():t.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),s.type==="preprocess"){let i=s.transform(n.data,a);if(n.common.async)return Promise.resolve(i).then(async o=>{if(t.value==="aborted")return m;let l=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return l.status==="aborted"?m:l.status==="dirty"||t.value==="dirty"?te(l.value):l});{if(t.value==="aborted")return m;let o=this._def.schema._parseSync({data:i,path:n.path,parent:n});return o.status==="aborted"?m:o.status==="dirty"||t.value==="dirty"?te(o.value):o}}if(s.type==="refinement"){let i=o=>{let l=s.refinement(o,a);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?m:(o.status==="dirty"&&t.dirty(),i(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?m:(o.status==="dirty"&&t.dirty(),i(o.value).then(()=>({status:t.value,value:o.value}))))}if(s.type==="transform")if(n.common.async===!1){let i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ue(i))return i;let o=s.transform(i.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>ue(i)?Promise.resolve(s.transform(i.value,a)).then(o=>({status:t.value,value:o})):i);x.assertNever(s)}};C.create=(r,e,t)=>new C({schema:r,typeName:p.ZodEffects,effect:e,...v(t)});C.createWithPreprocess=(r,e,t)=>new C({schema:e,effect:{type:"preprocess",transform:r},typeName:p.ZodEffects,...v(t)});var O=class extends _{_parse(e){return this._getType(e)===f.undefined?k(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};O.create=(r,e)=>new O({innerType:r,typeName:p.ZodOptional,...v(e)});var Z=class extends _{_parse(e){return this._getType(e)===f.null?k(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Z.create=(r,e)=>new Z({innerType:r,typeName:p.ZodNullable,...v(e)});var K=class extends _{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===f.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};K.create=(r,e)=>new K({innerType:r,typeName:p.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...v(e)});var Q=class extends _{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return me(s)?s.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new T(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new T(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Q.create=(r,e)=>new Q({innerType:r,typeName:p.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...v(e)});var oe=class extends _{_parse(e){if(this._getType(e)!==f.nan){let n=this._getOrReturnCtx(e);return u(n,{code:c.invalid_type,expected:f.nan,received:n.parsedType}),m}return{status:"valid",value:e.data}}};oe.create=r=>new oe({typeName:p.ZodNaN,...v(r)});var Ct=Symbol("zod_brand"),le=class extends _{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},fe=class r extends _{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let a=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?m:a.status==="dirty"?(t.dirty(),te(a.value)):this._def.out._parseAsync({data:a.value,path:n.path,parent:n})})();{let s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?m:s.status==="dirty"?(t.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(e,t){return new r({in:e,out:t,typeName:p.ZodPipeline})}},F=class extends _{_parse(e){let t=this._def.innerType._parse(e);return ue(t)&&(t.value=Object.freeze(t.value)),t}unwrap(){return this._def.innerType}};F.create=(r,e)=>new F({innerType:r,typeName:p.ZodReadonly,...v(e)});function Ye(r,e={},t){return r?z.create().superRefine((n,s)=>{var a,i;if(!r(n)){let o=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,l=(i=(a=o.fatal)!==null&&a!==void 0?a:t)!==null&&i!==void 0?i:!0,d=typeof o=="string"?{message:o}:o;s.addIssue({code:"custom",...d,fatal:l})}}):z.create()}var St={object:w.lazycreate},p;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(p||(p={}));var Ot=(r,e={message:`Input not instance of ${r.name}`})=>Ye(t=>t instanceof r,e),Je=$.create,He=P.create,Et=oe.create,Nt=D.create,Ge=V.create,jt=U.create,Zt=ne.create,Rt=B.create,It=W.create,At=z.create,Mt=I.create,$t=N.create,zt=se.create,Lt=A.create,Pt=w.create,Dt=w.strictCreate,Vt=q.create,Ut=ye.create,Bt=Y.create,Wt=j.create,qt=ve.create,Yt=ae.create,Jt=ie.create,Ht=_e.create,Gt=J.create,Xt=H.create,Kt=G.create,Qt=X.create,Ft=L.create,Pe=C.create,er=O.create,tr=Z.create,rr=C.createWithPreprocess,nr=fe.create,sr=()=>Je().optional(),ar=()=>He().optional(),ir=()=>Ge().optional(),or={string:r=>$.create({...r,coerce:!0}),number:r=>P.create({...r,coerce:!0}),boolean:r=>V.create({...r,coerce:!0}),bigint:r=>D.create({...r,coerce:!0}),date:r=>U.create({...r,coerce:!0})},cr=m,g=Object.freeze({__proto__:null,defaultErrorMap:re,setErrorMap:ct,getErrorMap:he,makeIssue:pe,EMPTY_PATH:dt,addIssueToContext:u,ParseStatus:b,INVALID:m,DIRTY:te,OK:k,isAborted:Ce,isDirty:Se,isValid:ue,isAsync:me,get util(){return x},get objectUtil(){return Te},ZodParsedType:f,getParsedType:M,ZodType:_,datetimeRegex:We,ZodString:$,ZodNumber:P,ZodBigInt:D,ZodBoolean:V,ZodDate:U,ZodSymbol:ne,ZodUndefined:B,ZodNull:W,ZodAny:z,ZodUnknown:I,ZodNever:N,ZodVoid:se,ZodArray:A,ZodObject:w,ZodUnion:q,ZodDiscriminatedUnion:ye,ZodIntersection:Y,ZodTuple:j,ZodRecord:ve,ZodMap:ae,ZodSet:ie,ZodFunction:_e,ZodLazy:J,ZodLiteral:H,ZodEnum:G,ZodNativeEnum:X,ZodPromise:L,ZodEffects:C,ZodTransformer:C,ZodOptional:O,ZodNullable:Z,ZodDefault:K,ZodCatch:Q,ZodNaN:oe,BRAND:Ct,ZodBranded:le,ZodPipeline:fe,ZodReadonly:F,custom:Ye,Schema:_,ZodSchema:_,late:St,get ZodFirstPartyTypeKind(){return p},coerce:or,any:At,array:Lt,bigint:Nt,boolean:Ge,date:jt,discriminatedUnion:Ut,effect:Pe,enum:Kt,function:Ht,instanceof:Ot,intersection:Bt,lazy:Gt,literal:Xt,map:Yt,nan:Et,nativeEnum:Qt,never:$t,null:It,nullable:tr,number:He,object:Pt,oboolean:ir,onumber:ar,optional:er,ostring:sr,pipeline:nr,preprocess:rr,promise:Ft,record:qt,set:Jt,strictObject:Dt,string:Je,symbol:Zt,transformer:Pe,tuple:Wt,undefined:Rt,union:Vt,unknown:Mt,void:zt,NEVER:cr,ZodIssueCode:c,quotelessJson:ot,ZodError:T});var Ee=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace"),Ne=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace"),je=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace"),Ze=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace"),Re=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace"),Ie=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace"),Ae=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace"),Me=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#a40e26").describe("The error color of the workspace"),$e=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace"),Xe=g.object({foreground:Ne,background:Ee,brand:je,accent:Ze,success:Re,info:Ie,warning:Ae,error:Me,fatal:$e}),Ke=g.object({foreground:Ee,background:Ne,brand:je,accent:Ze,success:Re,info:Ie,warning:Ae,error:Me,fatal:$e}),Qe=g.object({dark:Xe,light:Ke}),Fe=g.object({dark:Ee,light:Ne,brand:je,accent:Ze,success:Re,info:Ie,warning:Ae,error:Me,fatal:$e}),xe=Fe.or(Qe).describe("Colors used for various workspace elements"),et=g.union([g.object({base:xe}),g.record(g.string(),xe)]),dr=g.object({extends:g.string().trim().optional().describe("The path to a base JSON file to use as a configuration preset file"),name:g.string().trim().toLowerCase().optional().describe("The name of the package"),namespace:g.string().trim().toLowerCase().optional().describe("The namespace of the package"),organization:g.string().trim().default("storm-software").describe("The organization of the workspace"),repository:g.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),license:g.string().trim().default("Apache 2.0").describe("The root directory of the package"),homepage:g.string().trim().url().default("https://stormsoftware.com").describe("The homepage of the workspace"),branch:g.string().trim().default("main").describe("The branch of the workspace"),preid:g.string().optional().describe("A tag specifying the version pre-release identifier"),owner:g.string().trim().default("@storm-software/development").describe("The owner of the package"),worker:g.string().trim().default("Stormie-Bot").describe("The worker of the package (this is the bot that will be used to perform various tasks)"),env:g.enum(["development","staging","production"]).default("production").describe("The current runtime environment of the package"),ci:g.boolean().default(!0).describe("An indicator specifying if the current environment is a CI environment"),workspaceRoot:g.string().trim().optional().describe("The root directory of the workspace"),packageDirectory:g.string().trim().optional().describe("The root directory of the package"),externalPackagePatterns:g.array(g.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),skipCache:g.boolean().default(!1).describe("Should all known types of workspace caching be skipped?"),cacheDirectory:g.string().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),buildDirectory:g.string().trim().default("dist").describe("The build directory for the workspace"),outputDirectory:g.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),runtimeVersion:g.string().trim().regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).default("1.0.0").describe("The global version of the Storm runtime"),packageManager:g.enum(["npm","yarn","pnpm","bun"]).default("npm").describe("The package manager used by the repository"),timezone:g.string().trim().default("America/New_York").describe("The default timezone of the workspace"),locale:g.string().trim().default("en-US").describe("The default locale of the workspace"),logLevel:g.enum(["silent","fatal","error","warn","info","debug","trace","all"]).default("debug").describe("The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."),configFile:g.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),colors:xe.or(et).describe("Storm theme config values used for styling various package elements"),extensions:g.record(g.any()).optional().default({}).describe("Configuration of each used extension")}).describe("Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo.");var ur=["dark","light","brand","accent","success","info","warning","error","fatal"];var lr=r=>r;
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var x;(function(r){r.assertEqual=s=>s;function e(s){}r.assertIs=e;function t(s){throw new Error}r.assertNever=t,r.arrayToEnum=s=>{let a={};for(let i of s)a[i]=i;return a},r.getValidEnumValues=s=>{let a=r.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),i={};for(let o of a)i[o]=s[o];return r.objectValues(i)},r.objectValues=s=>r.objectKeys(s).map(function(a){return s[a]}),r.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{let a=[];for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&a.push(i);return a},r.find=(s,a)=>{for(let i of s)if(a(i))return i},r.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function n(s,a=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}r.joinValues=n,r.jsonStringifyReplacer=(s,a)=>typeof a=="bigint"?a.toString():a})(x||(x={}));var ke;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(ke||(ke={}));var f=x.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),M=r=>{switch(typeof r){case"undefined":return f.undefined;case"string":return f.string;case"number":return isNaN(r)?f.nan:f.number;case"boolean":return f.boolean;case"function":return f.function;case"bigint":return f.bigint;case"symbol":return f.symbol;case"object":return Array.isArray(r)?f.array:r===null?f.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?f.promise:typeof Map<"u"&&r instanceof Map?f.map:typeof Set<"u"&&r instanceof Set?f.set:typeof Date<"u"&&r instanceof Date?f.date:f.object;default:return f.unknown}},c=x.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Ge=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:"),T=class r extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(a){return a.message},n={_errors:[]},s=a=>{for(let i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let o=n,l=0;for(;l<i.path.length;){let d=i.path[l];l===i.path.length-1?(o[d]=o[d]||{_errors:[]},o[d]._errors.push(t(i))):o[d]=o[d]||{_errors:[]},o=o[d],l++}}};return s(this),n}static assert(e){if(!(e instanceof r))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,x.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){let t={},n=[];for(let s of this.issues)s.path.length>0?(t[s.path[0]]=t[s.path[0]]||[],t[s.path[0]].push(e(s))):n.push(e(s));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};T.create=r=>new T(r);var re=(r,e)=>{let t;switch(r.code){case c.invalid_type:r.received===f.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case c.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,x.jsonStringifyReplacer)}`;break;case c.unrecognized_keys:t=`Unrecognized key(s) in object: ${x.joinValues(r.keys,", ")}`;break;case c.invalid_union:t="Invalid input";break;case c.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${x.joinValues(r.options)}`;break;case c.invalid_enum_value:t=`Invalid enum value. Expected ${x.joinValues(r.options)}, received '${r.received}'`;break;case c.invalid_arguments:t="Invalid function arguments";break;case c.invalid_return_type:t="Invalid function return type";break;case c.invalid_date:t="Invalid date";break;case c.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:x.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case c.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case c.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case c.custom:t="Invalid input";break;case c.invalid_intersection_types:t="Intersection results could not be merged";break;case c.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case c.not_finite:t="Number must be finite";break;default:t=e.defaultError,x.assertNever(r)}return{message:t}},Pe=re;function Xe(r){Pe=r}function he(){return Pe}var pe=r=>{let{data:e,path:t,errorMaps:n,issueData:s}=r,a=[...t,...s.path||[]],i={...s,path:a};if(s.message!==void 0)return{...s,path:a,message:s.message};let o="",l=n.filter(d=>!!d).slice().reverse();for(let d of l)o=d(i,{data:e,defaultError:o}).message;return{...s,path:a,message:o}},Ke=[];function u(r,e){let t=he(),n=pe({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===re?void 0:re].filter(s=>!!s)});r.common.issues.push(n)}var b=class r{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let s of t){if(s.status==="aborted")return m;s.status==="dirty"&&e.dirty(),n.push(s.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let s of t){let a=await s.key,i=await s.value;n.push({key:a,value:i})}return r.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let s of t){let{key:a,value:i}=s;if(a.status==="aborted"||i.status==="aborted")return m;a.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(n[a.value]=i.value)}return{status:e.value,value:n}}},m=Object.freeze({status:"aborted"}),te=r=>({status:"dirty",value:r}),k=r=>({status:"valid",value:r}),we=r=>r.status==="aborted",Te=r=>r.status==="dirty",ue=r=>r.status==="valid",me=r=>typeof Promise<"u"&&r instanceof Promise;function ge(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)}function De(r,e,t,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!s:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(r,t):s?s.value=t:e.set(r,t),t}var h;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(h||(h={}));var ce,de,E=class{constructor(e,t,n,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},ze=(r,e)=>{if(ue(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new T(r.common.issues);return this._error=t,this._error}}};function v(r){if(!r)return{};let{errorMap:e,invalid_type_error:t,required_error:n,description:s}=r;if(e&&(t||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,o)=>{var l,d;let{message:y}=r;return i.code==="invalid_enum_value"?{message:y??o.defaultError}:typeof o.data>"u"?{message:(l=y??n)!==null&&l!==void 0?l:o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:(d=y??t)!==null&&d!==void 0?d:o.defaultError}},description:s}}var _=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return M(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:M(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new b,ctx:{common:e.parent.common,data:e.data,parsedType:M(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(me(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let s={common:{issues:[],async:(n=t?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:M(e)},a=this._parseSync({data:e,path:s.path,parent:s});return ze(s,a)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:M(e)},s=this._parse({data:e,path:n.path,parent:n}),a=await(me(s)?s:Promise.resolve(s));return ze(n,a)}refine(e,t){let n=s=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(s):t;return this._refinement((s,a)=>{let i=e(s),o=()=>a.addIssue({code:c.custom,...n(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,t){return this._refinement((n,s)=>e(n)?!0:(s.addIssue(typeof t=="function"?t(n,s):t),!1))}_refinement(e){return new C({schema:this,typeName:p.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return O.create(this,this._def)}nullable(){return Z.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return A.create(this,this._def)}promise(){return L.create(this,this._def)}or(e){return q.create([this,e],this._def)}and(e){return Y.create(this,e,this._def)}transform(e){return new C({...v(this._def),schema:this,typeName:p.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e=="function"?e:()=>e;return new K({...v(this._def),innerType:this,defaultValue:t,typeName:p.ZodDefault})}brand(){return new le({typeName:p.ZodBranded,type:this,...v(this._def)})}catch(e){let t=typeof e=="function"?e:()=>e;return new Q({...v(this._def),innerType:this,catchValue:t,typeName:p.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return fe.create(this,e)}readonly(){return F.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Qe=/^c[^\s-]{8,}$/i,Fe=/^[0-9a-z]+$/,et=/^[0-9A-HJKMNP-TV-Z]{26}$/,tt=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,rt=/^[a-z0-9_-]{21}$/i,nt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,st=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,at="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",be,it=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ot=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ct=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Ve="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",dt=new RegExp(`^${Ve}$`);function Ue(r){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return r.precision?e=`${e}\\.\\d{${r.precision}}`:r.precision==null&&(e=`${e}(\\.\\d+)?`),e}function ut(r){return new RegExp(`^${Ue(r)}$`)}function Be(r){let e=`${Ve}T${Ue(r)}`,t=[];return t.push(r.local?"Z?":"Z"),r.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function lt(r,e){return!!((e==="v4"||!e)&&it.test(r)||(e==="v6"||!e)&&ot.test(r))}var $=class r extends _{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==f.string){let a=this._getOrReturnCtx(e);return u(a,{code:c.invalid_type,expected:f.string,received:a.parsedType}),m}let n=new b,s;for(let a of this._def.checks)if(a.kind==="min")e.data.length<a.value&&(s=this._getOrReturnCtx(e,s),u(s,{code:c.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="max")e.data.length>a.value&&(s=this._getOrReturnCtx(e,s),u(s,{code:c.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="length"){let i=e.data.length>a.value,o=e.data.length<a.value;(i||o)&&(s=this._getOrReturnCtx(e,s),i?u(s,{code:c.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&u(s,{code:c.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),n.dirty())}else if(a.kind==="email")st.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"email",code:c.invalid_string,message:a.message}),n.dirty());else if(a.kind==="emoji")be||(be=new RegExp(at,"u")),be.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"emoji",code:c.invalid_string,message:a.message}),n.dirty());else if(a.kind==="uuid")tt.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"uuid",code:c.invalid_string,message:a.message}),n.dirty());else if(a.kind==="nanoid")rt.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"nanoid",code:c.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid")Qe.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"cuid",code:c.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid2")Fe.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"cuid2",code:c.invalid_string,message:a.message}),n.dirty());else if(a.kind==="ulid")et.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"ulid",code:c.invalid_string,message:a.message}),n.dirty());else if(a.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),u(s,{validation:"url",code:c.invalid_string,message:a.message}),n.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"regex",code:c.invalid_string,message:a.message}),n.dirty())):a.kind==="trim"?e.data=e.data.trim():a.kind==="includes"?e.data.includes(a.value,a.position)||(s=this._getOrReturnCtx(e,s),u(s,{code:c.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),n.dirty()):a.kind==="toLowerCase"?e.data=e.data.toLowerCase():a.kind==="toUpperCase"?e.data=e.data.toUpperCase():a.kind==="startsWith"?e.data.startsWith(a.value)||(s=this._getOrReturnCtx(e,s),u(s,{code:c.invalid_string,validation:{startsWith:a.value},message:a.message}),n.dirty()):a.kind==="endsWith"?e.data.endsWith(a.value)||(s=this._getOrReturnCtx(e,s),u(s,{code:c.invalid_string,validation:{endsWith:a.value},message:a.message}),n.dirty()):a.kind==="datetime"?Be(a).test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{code:c.invalid_string,validation:"datetime",message:a.message}),n.dirty()):a.kind==="date"?dt.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{code:c.invalid_string,validation:"date",message:a.message}),n.dirty()):a.kind==="time"?ut(a).test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{code:c.invalid_string,validation:"time",message:a.message}),n.dirty()):a.kind==="duration"?nt.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"duration",code:c.invalid_string,message:a.message}),n.dirty()):a.kind==="ip"?lt(e.data,a.version)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"ip",code:c.invalid_string,message:a.message}),n.dirty()):a.kind==="base64"?ct.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"base64",code:c.invalid_string,message:a.message}),n.dirty()):x.assertNever(a);return{status:n.value,value:e.data}}_regex(e,t,n){return this.refinement(s=>e.test(s),{validation:t,code:c.invalid_string,...h.errToObj(n)})}_addCheck(e){return new r({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...h.errToObj(e)})}url(e){return this._addCheck({kind:"url",...h.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...h.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...h.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...h.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...h.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...h.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...h.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...h.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...h.errToObj(e)})}datetime(e){var t,n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(t=e?.offset)!==null&&t!==void 0?t:!1,local:(n=e?.local)!==null&&n!==void 0?n:!1,...h.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...h.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...h.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...h.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...h.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...h.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...h.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...h.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...h.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...h.errToObj(t)})}nonempty(e){return this.min(1,h.errToObj(e))}trim(){return new r({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new r({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new r({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}};$.create=r=>{var e;return new $({checks:[],typeName:p.ZodString,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,...v(r)})};function ft(r,e){let t=(r.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,s=t>n?t:n,a=parseInt(r.toFixed(s).replace(".","")),i=parseInt(e.toFixed(s).replace(".",""));return a%i/Math.pow(10,s)}var P=class r extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==f.number){let a=this._getOrReturnCtx(e);return u(a,{code:c.invalid_type,expected:f.number,received:a.parsedType}),m}let n,s=new b;for(let a of this._def.checks)a.kind==="int"?x.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{code:c.invalid_type,expected:"integer",received:"float",message:a.message}),s.dirty()):a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(n=this._getOrReturnCtx(e,n),u(n,{code:c.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(n=this._getOrReturnCtx(e,n),u(n,{code:c.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="multipleOf"?ft(e.data,a.value)!==0&&(n=this._getOrReturnCtx(e,n),u(n,{code:c.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{code:c.not_finite,message:a.message}),s.dirty()):x.assertNever(a);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,h.toString(t))}gt(e,t){return this.setLimit("min",e,!1,h.toString(t))}lte(e,t){return this.setLimit("max",e,!0,h.toString(t))}lt(e,t){return this.setLimit("max",e,!1,h.toString(t))}setLimit(e,t,n,s){return new r({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:h.toString(s)}]})}_addCheck(e){return new r({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:h.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:h.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:h.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:h.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:h.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:h.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:h.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:h.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:h.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&x.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(t===null||n.value>t)&&(t=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}};P.create=r=>new P({checks:[],typeName:p.ZodNumber,coerce:r?.coerce||!1,...v(r)});var D=class r extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==f.bigint){let a=this._getOrReturnCtx(e);return u(a,{code:c.invalid_type,expected:f.bigint,received:a.parsedType}),m}let n,s=new b;for(let a of this._def.checks)a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(n=this._getOrReturnCtx(e,n),u(n,{code:c.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(n=this._getOrReturnCtx(e,n),u(n,{code:c.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),u(n,{code:c.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):x.assertNever(a);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,h.toString(t))}gt(e,t){return this.setLimit("min",e,!1,h.toString(t))}lte(e,t){return this.setLimit("max",e,!0,h.toString(t))}lt(e,t){return this.setLimit("max",e,!1,h.toString(t))}setLimit(e,t,n,s){return new r({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:h.toString(s)}]})}_addCheck(e){return new r({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:h.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:h.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:h.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:h.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:h.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}};D.create=r=>{var e;return new D({checks:[],typeName:p.ZodBigInt,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,...v(r)})};var V=class extends _{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==f.boolean){let n=this._getOrReturnCtx(e);return u(n,{code:c.invalid_type,expected:f.boolean,received:n.parsedType}),m}return k(e.data)}};V.create=r=>new V({typeName:p.ZodBoolean,coerce:r?.coerce||!1,...v(r)});var U=class r extends _{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==f.date){let a=this._getOrReturnCtx(e);return u(a,{code:c.invalid_type,expected:f.date,received:a.parsedType}),m}if(isNaN(e.data.getTime())){let a=this._getOrReturnCtx(e);return u(a,{code:c.invalid_date}),m}let n=new b,s;for(let a of this._def.checks)a.kind==="min"?e.data.getTime()<a.value&&(s=this._getOrReturnCtx(e,s),u(s,{code:c.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),n.dirty()):a.kind==="max"?e.data.getTime()>a.value&&(s=this._getOrReturnCtx(e,s),u(s,{code:c.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),n.dirty()):x.assertNever(a);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new r({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:h.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:h.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}};U.create=r=>new U({checks:[],coerce:r?.coerce||!1,typeName:p.ZodDate,...v(r)});var ne=class extends _{_parse(e){if(this._getType(e)!==f.symbol){let n=this._getOrReturnCtx(e);return u(n,{code:c.invalid_type,expected:f.symbol,received:n.parsedType}),m}return k(e.data)}};ne.create=r=>new ne({typeName:p.ZodSymbol,...v(r)});var B=class extends _{_parse(e){if(this._getType(e)!==f.undefined){let n=this._getOrReturnCtx(e);return u(n,{code:c.invalid_type,expected:f.undefined,received:n.parsedType}),m}return k(e.data)}};B.create=r=>new B({typeName:p.ZodUndefined,...v(r)});var W=class extends _{_parse(e){if(this._getType(e)!==f.null){let n=this._getOrReturnCtx(e);return u(n,{code:c.invalid_type,expected:f.null,received:n.parsedType}),m}return k(e.data)}};W.create=r=>new W({typeName:p.ZodNull,...v(r)});var z=class extends _{constructor(){super(...arguments),this._any=!0}_parse(e){return k(e.data)}};z.create=r=>new z({typeName:p.ZodAny,...v(r)});var I=class extends _{constructor(){super(...arguments),this._unknown=!0}_parse(e){return k(e.data)}};I.create=r=>new I({typeName:p.ZodUnknown,...v(r)});var N=class extends _{_parse(e){let t=this._getOrReturnCtx(e);return u(t,{code:c.invalid_type,expected:f.never,received:t.parsedType}),m}};N.create=r=>new N({typeName:p.ZodNever,...v(r)});var se=class extends _{_parse(e){if(this._getType(e)!==f.undefined){let n=this._getOrReturnCtx(e);return u(n,{code:c.invalid_type,expected:f.void,received:n.parsedType}),m}return k(e.data)}};se.create=r=>new se({typeName:p.ZodVoid,...v(r)});var A=class r extends _{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),s=this._def;if(t.parsedType!==f.array)return u(t,{code:c.invalid_type,expected:f.array,received:t.parsedType}),m;if(s.exactLength!==null){let i=t.data.length>s.exactLength.value,o=t.data.length<s.exactLength.value;(i||o)&&(u(t,{code:i?c.too_big:c.too_small,minimum:o?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&t.data.length<s.minLength.value&&(u(t,{code:c.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&t.data.length>s.maxLength.value&&(u(t,{code:c.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((i,o)=>s.type._parseAsync(new E(t,i,t.path,o)))).then(i=>b.mergeArray(n,i));let a=[...t.data].map((i,o)=>s.type._parseSync(new E(t,i,t.path,o)));return b.mergeArray(n,a)}get element(){return this._def.type}min(e,t){return new r({...this._def,minLength:{value:e,message:h.toString(t)}})}max(e,t){return new r({...this._def,maxLength:{value:e,message:h.toString(t)}})}length(e,t){return new r({...this._def,exactLength:{value:e,message:h.toString(t)}})}nonempty(e){return this.min(1,e)}};A.create=(r,e)=>new A({type:r,minLength:null,maxLength:null,exactLength:null,typeName:p.ZodArray,...v(e)});function ee(r){if(r instanceof w){let e={};for(let t in r.shape){let n=r.shape[t];e[t]=O.create(ee(n))}return new w({...r._def,shape:()=>e})}else return r instanceof A?new A({...r._def,type:ee(r.element)}):r instanceof O?O.create(ee(r.unwrap())):r instanceof Z?Z.create(ee(r.unwrap())):r instanceof j?j.create(r.items.map(e=>ee(e))):r}var w=class r extends _{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=x.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==f.object){let d=this._getOrReturnCtx(e);return u(d,{code:c.invalid_type,expected:f.object,received:d.parsedType}),m}let{status:n,ctx:s}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof N&&this._def.unknownKeys==="strip"))for(let d in s.data)i.includes(d)||o.push(d);let l=[];for(let d of i){let y=a[d],S=s.data[d];l.push({key:{status:"valid",value:d},value:y._parse(new E(s,S,s.path,d)),alwaysSet:d in s.data})}if(this._def.catchall instanceof N){let d=this._def.unknownKeys;if(d==="passthrough")for(let y of o)l.push({key:{status:"valid",value:y},value:{status:"valid",value:s.data[y]}});else if(d==="strict")o.length>0&&(u(s,{code:c.unrecognized_keys,keys:o}),n.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let d=this._def.catchall;for(let y of o){let S=s.data[y];l.push({key:{status:"valid",value:y},value:d._parse(new E(s,S,s.path,y)),alwaysSet:y in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let d=[];for(let y of l){let S=await y.key,$e=await y.value;d.push({key:S,value:$e,alwaysSet:y.alwaysSet})}return d}).then(d=>b.mergeObjectSync(n,d)):b.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return h.errToObj,new r({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var s,a,i,o;let l=(i=(a=(s=this._def).errorMap)===null||a===void 0?void 0:a.call(s,t,n).message)!==null&&i!==void 0?i:n.defaultError;return t.code==="unrecognized_keys"?{message:(o=h.errToObj(e).message)!==null&&o!==void 0?o:l}:{message:l}}}:{}})}strip(){return new r({...this._def,unknownKeys:"strip"})}passthrough(){return new r({...this._def,unknownKeys:"passthrough"})}extend(e){return new r({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new r({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:p.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new r({...this._def,catchall:e})}pick(e){let t={};return x.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new r({...this._def,shape:()=>t})}omit(e){let t={};return x.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new r({...this._def,shape:()=>t})}deepPartial(){return ee(this)}partial(e){let t={};return x.objectKeys(this.shape).forEach(n=>{let s=this.shape[n];e&&!e[n]?t[n]=s:t[n]=s.optional()}),new r({...this._def,shape:()=>t})}required(e){let t={};return x.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let a=this.shape[n];for(;a instanceof O;)a=a._def.innerType;t[n]=a}}),new r({...this._def,shape:()=>t})}keyof(){return We(x.objectKeys(this.shape))}};w.create=(r,e)=>new w({shape:()=>r,unknownKeys:"strip",catchall:N.create(),typeName:p.ZodObject,...v(e)});w.strictCreate=(r,e)=>new w({shape:()=>r,unknownKeys:"strict",catchall:N.create(),typeName:p.ZodObject,...v(e)});w.lazycreate=(r,e)=>new w({shape:r,unknownKeys:"strip",catchall:N.create(),typeName:p.ZodObject,...v(e)});var q=class extends _{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function s(a){for(let o of a)if(o.result.status==="valid")return o.result;for(let o of a)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;let i=a.map(o=>new T(o.ctx.common.issues));return u(t,{code:c.invalid_union,unionErrors:i}),m}if(t.common.async)return Promise.all(n.map(async a=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await a._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(s);{let a,i=[];for(let l of n){let d={...t,common:{...t.common,issues:[]},parent:null},y=l._parseSync({data:t.data,path:t.path,parent:d});if(y.status==="valid")return y;y.status==="dirty"&&!a&&(a={result:y,ctx:d}),d.common.issues.length&&i.push(d.common.issues)}if(a)return t.common.issues.push(...a.ctx.common.issues),a.result;let o=i.map(l=>new T(l));return u(t,{code:c.invalid_union,unionErrors:o}),m}}get options(){return this._def.options}};q.create=(r,e)=>new q({options:r,typeName:p.ZodUnion,...v(e)});var R=r=>r instanceof J?R(r.schema):r instanceof C?R(r.innerType()):r instanceof H?[r.value]:r instanceof G?r.options:r instanceof X?x.objectValues(r.enum):r instanceof K?R(r._def.innerType):r instanceof B?[void 0]:r instanceof W?[null]:r instanceof O?[void 0,...R(r.unwrap())]:r instanceof Z?[null,...R(r.unwrap())]:r instanceof le||r instanceof F?R(r.unwrap()):r instanceof Q?R(r._def.innerType):[],ye=class r extends _{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.object)return u(t,{code:c.invalid_type,expected:f.object,received:t.parsedType}),m;let n=this.discriminator,s=t.data[n],a=this.optionsMap.get(s);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(u(t,{code:c.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let s=new Map;for(let a of t){let i=R(a.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of i){if(s.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);s.set(o,a)}}return new r({typeName:p.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:s,...v(n)})}};function Ce(r,e){let t=M(r),n=M(e);if(r===e)return{valid:!0,data:r};if(t===f.object&&n===f.object){let s=x.objectKeys(e),a=x.objectKeys(r).filter(o=>s.indexOf(o)!==-1),i={...r,...e};for(let o of a){let l=Ce(r[o],e[o]);if(!l.valid)return{valid:!1};i[o]=l.data}return{valid:!0,data:i}}else if(t===f.array&&n===f.array){if(r.length!==e.length)return{valid:!1};let s=[];for(let a=0;a<r.length;a++){let i=r[a],o=e[a],l=Ce(i,o);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return t===f.date&&n===f.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}var Y=class extends _{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),s=(a,i)=>{if(we(a)||we(i))return m;let o=Ce(a.value,i.value);return o.valid?((Te(a)||Te(i))&&t.dirty(),{status:t.value,value:o.data}):(u(n,{code:c.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([a,i])=>s(a,i)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Y.create=(r,e,t)=>new Y({left:r,right:e,typeName:p.ZodIntersection,...v(t)});var j=class r extends _{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.array)return u(n,{code:c.invalid_type,expected:f.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return u(n,{code:c.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&n.data.length>this._def.items.length&&(u(n,{code:c.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let a=[...n.data].map((i,o)=>{let l=this._def.items[o]||this._def.rest;return l?l._parse(new E(n,i,n.path,o)):null}).filter(i=>!!i);return n.common.async?Promise.all(a).then(i=>b.mergeArray(t,i)):b.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new r({...this._def,rest:e})}};j.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new j({items:r,typeName:p.ZodTuple,rest:null,...v(e)})};var ve=class r extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.object)return u(n,{code:c.invalid_type,expected:f.object,received:n.parsedType}),m;let s=[],a=this._def.keyType,i=this._def.valueType;for(let o in n.data)s.push({key:a._parse(new E(n,o,n.path,o)),value:i._parse(new E(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?b.mergeObjectAsync(t,s):b.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof _?new r({keyType:e,valueType:t,typeName:p.ZodRecord,...v(n)}):new r({keyType:$.create(),valueType:e,typeName:p.ZodRecord,...v(t)})}},ae=class extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.map)return u(n,{code:c.invalid_type,expected:f.map,received:n.parsedType}),m;let s=this._def.keyType,a=this._def.valueType,i=[...n.data.entries()].map(([o,l],d)=>({key:s._parse(new E(n,o,n.path,[d,"key"])),value:a._parse(new E(n,l,n.path,[d,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let l of i){let d=await l.key,y=await l.value;if(d.status==="aborted"||y.status==="aborted")return m;(d.status==="dirty"||y.status==="dirty")&&t.dirty(),o.set(d.value,y.value)}return{status:t.value,value:o}})}else{let o=new Map;for(let l of i){let d=l.key,y=l.value;if(d.status==="aborted"||y.status==="aborted")return m;(d.status==="dirty"||y.status==="dirty")&&t.dirty(),o.set(d.value,y.value)}return{status:t.value,value:o}}}};ae.create=(r,e,t)=>new ae({valueType:e,keyType:r,typeName:p.ZodMap,...v(t)});var ie=class r extends _{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.set)return u(n,{code:c.invalid_type,expected:f.set,received:n.parsedType}),m;let s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(u(n,{code:c.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),t.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(u(n,{code:c.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());let a=this._def.valueType;function i(l){let d=new Set;for(let y of l){if(y.status==="aborted")return m;y.status==="dirty"&&t.dirty(),d.add(y.value)}return{status:t.value,value:d}}let o=[...n.data.values()].map((l,d)=>a._parse(new E(n,l,n.path,d)));return n.common.async?Promise.all(o).then(l=>i(l)):i(o)}min(e,t){return new r({...this._def,minSize:{value:e,message:h.toString(t)}})}max(e,t){return new r({...this._def,maxSize:{value:e,message:h.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};ie.create=(r,e)=>new ie({valueType:r,minSize:null,maxSize:null,typeName:p.ZodSet,...v(e)});var _e=class r extends _{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.function)return u(t,{code:c.invalid_type,expected:f.function,received:t.parsedType}),m;function n(o,l){return pe({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,he(),re].filter(d=>!!d),issueData:{code:c.invalid_arguments,argumentsError:l}})}function s(o,l){return pe({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,he(),re].filter(d=>!!d),issueData:{code:c.invalid_return_type,returnTypeError:l}})}let a={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof L){let o=this;return k(async function(...l){let d=new T([]),y=await o._def.args.parseAsync(l,a).catch(xe=>{throw d.addIssue(n(l,xe)),d}),S=await Reflect.apply(i,this,y);return await o._def.returns._def.type.parseAsync(S,a).catch(xe=>{throw d.addIssue(s(S,xe)),d})})}else{let o=this;return k(function(...l){let d=o._def.args.safeParse(l,a);if(!d.success)throw new T([n(l,d.error)]);let y=Reflect.apply(i,this,d.data),S=o._def.returns.safeParse(y,a);if(!S.success)throw new T([s(y,S.error)]);return S.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new r({...this._def,args:j.create(e).rest(I.create())})}returns(e){return new r({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new r({args:e||j.create([]).rest(I.create()),returns:t||I.create(),typeName:p.ZodFunction,...v(n)})}},J=class extends _{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};J.create=(r,e)=>new J({getter:r,typeName:p.ZodLazy,...v(e)});var H=class extends _{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return u(t,{received:t.data,code:c.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}};H.create=(r,e)=>new H({value:r,typeName:p.ZodLiteral,...v(e)});function We(r,e){return new G({values:r,typeName:p.ZodEnum,...v(e)})}var G=class r extends _{constructor(){super(...arguments),ce.set(this,void 0)}_parse(e){if(typeof e.data!="string"){let t=this._getOrReturnCtx(e),n=this._def.values;return u(t,{expected:x.joinValues(n),received:t.parsedType,code:c.invalid_type}),m}if(ge(this,ce,"f")||De(this,ce,new Set(this._def.values),"f"),!ge(this,ce,"f").has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return u(t,{received:t.data,code:c.invalid_enum_value,options:n}),m}return k(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return r.create(e,{...this._def,...t})}exclude(e,t=this._def){return r.create(this.options.filter(n=>!e.includes(n)),{...this._def,...t})}};ce=new WeakMap;G.create=We;var X=class extends _{constructor(){super(...arguments),de.set(this,void 0)}_parse(e){let t=x.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==f.string&&n.parsedType!==f.number){let s=x.objectValues(t);return u(n,{expected:x.joinValues(s),received:n.parsedType,code:c.invalid_type}),m}if(ge(this,de,"f")||De(this,de,new Set(x.getValidEnumValues(this._def.values)),"f"),!ge(this,de,"f").has(e.data)){let s=x.objectValues(t);return u(n,{received:n.data,code:c.invalid_enum_value,options:s}),m}return k(e.data)}get enum(){return this._def.values}};de=new WeakMap;X.create=(r,e)=>new X({values:r,typeName:p.ZodNativeEnum,...v(e)});var L=class extends _{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.promise&&t.common.async===!1)return u(t,{code:c.invalid_type,expected:f.promise,received:t.parsedType}),m;let n=t.parsedType===f.promise?t.data:Promise.resolve(t.data);return k(n.then(s=>this._def.type.parseAsync(s,{path:t.path,errorMap:t.common.contextualErrorMap})))}};L.create=(r,e)=>new L({type:r,typeName:p.ZodPromise,...v(e)});var C=class extends _{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===p.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),s=this._def.effect||null,a={addIssue:i=>{u(n,i),i.fatal?t.abort():t.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),s.type==="preprocess"){let i=s.transform(n.data,a);if(n.common.async)return Promise.resolve(i).then(async o=>{if(t.value==="aborted")return m;let l=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return l.status==="aborted"?m:l.status==="dirty"||t.value==="dirty"?te(l.value):l});{if(t.value==="aborted")return m;let o=this._def.schema._parseSync({data:i,path:n.path,parent:n});return o.status==="aborted"?m:o.status==="dirty"||t.value==="dirty"?te(o.value):o}}if(s.type==="refinement"){let i=o=>{let l=s.refinement(o,a);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?m:(o.status==="dirty"&&t.dirty(),i(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?m:(o.status==="dirty"&&t.dirty(),i(o.value).then(()=>({status:t.value,value:o.value}))))}if(s.type==="transform")if(n.common.async===!1){let i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ue(i))return i;let o=s.transform(i.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>ue(i)?Promise.resolve(s.transform(i.value,a)).then(o=>({status:t.value,value:o})):i);x.assertNever(s)}};C.create=(r,e,t)=>new C({schema:r,typeName:p.ZodEffects,effect:e,...v(t)});C.createWithPreprocess=(r,e,t)=>new C({schema:e,effect:{type:"preprocess",transform:r},typeName:p.ZodEffects,...v(t)});var O=class extends _{_parse(e){return this._getType(e)===f.undefined?k(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};O.create=(r,e)=>new O({innerType:r,typeName:p.ZodOptional,...v(e)});var Z=class extends _{_parse(e){return this._getType(e)===f.null?k(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Z.create=(r,e)=>new Z({innerType:r,typeName:p.ZodNullable,...v(e)});var K=class extends _{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===f.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};K.create=(r,e)=>new K({innerType:r,typeName:p.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...v(e)});var Q=class extends _{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return me(s)?s.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new T(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new T(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Q.create=(r,e)=>new Q({innerType:r,typeName:p.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...v(e)});var oe=class extends _{_parse(e){if(this._getType(e)!==f.nan){let n=this._getOrReturnCtx(e);return u(n,{code:c.invalid_type,expected:f.nan,received:n.parsedType}),m}return{status:"valid",value:e.data}}};oe.create=r=>new oe({typeName:p.ZodNaN,...v(r)});var ht=Symbol("zod_brand"),le=class extends _{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},fe=class r extends _{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let a=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?m:a.status==="dirty"?(t.dirty(),te(a.value)):this._def.out._parseAsync({data:a.value,path:n.path,parent:n})})();{let s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?m:s.status==="dirty"?(t.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(e,t){return new r({in:e,out:t,typeName:p.ZodPipeline})}},F=class extends _{_parse(e){let t=this._def.innerType._parse(e);return ue(t)&&(t.value=Object.freeze(t.value)),t}unwrap(){return this._def.innerType}};F.create=(r,e)=>new F({innerType:r,typeName:p.ZodReadonly,...v(e)});function qe(r,e={},t){return r?z.create().superRefine((n,s)=>{var a,i;if(!r(n)){let o=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,l=(i=(a=o.fatal)!==null&&a!==void 0?a:t)!==null&&i!==void 0?i:!0,d=typeof o=="string"?{message:o}:o;s.addIssue({code:"custom",...d,fatal:l})}}):z.create()}var pt={object:w.lazycreate},p;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(p||(p={}));var mt=(r,e={message:`Input not instance of ${r.name}`})=>qe(t=>t instanceof r,e),Ye=$.create,Je=P.create,gt=oe.create,yt=D.create,He=V.create,vt=U.create,_t=ne.create,xt=B.create,bt=W.create,kt=z.create,wt=I.create,Tt=N.create,Ct=se.create,St=A.create,Ot=w.create,Et=w.strictCreate,Nt=q.create,jt=ye.create,Zt=Y.create,Rt=j.create,It=ve.create,At=ae.create,Mt=ie.create,$t=_e.create,zt=J.create,Lt=H.create,Pt=G.create,Dt=X.create,Vt=L.create,Le=C.create,Ut=O.create,Bt=Z.create,Wt=C.createWithPreprocess,qt=fe.create,Yt=()=>Ye().optional(),Jt=()=>Je().optional(),Ht=()=>He().optional(),Gt={string:r=>$.create({...r,coerce:!0}),number:r=>P.create({...r,coerce:!0}),boolean:r=>V.create({...r,coerce:!0}),bigint:r=>D.create({...r,coerce:!0}),date:r=>U.create({...r,coerce:!0})},Xt=m,g=Object.freeze({__proto__:null,defaultErrorMap:re,setErrorMap:Xe,getErrorMap:he,makeIssue:pe,EMPTY_PATH:Ke,addIssueToContext:u,ParseStatus:b,INVALID:m,DIRTY:te,OK:k,isAborted:we,isDirty:Te,isValid:ue,isAsync:me,get util(){return x},get objectUtil(){return ke},ZodParsedType:f,getParsedType:M,ZodType:_,datetimeRegex:Be,ZodString:$,ZodNumber:P,ZodBigInt:D,ZodBoolean:V,ZodDate:U,ZodSymbol:ne,ZodUndefined:B,ZodNull:W,ZodAny:z,ZodUnknown:I,ZodNever:N,ZodVoid:se,ZodArray:A,ZodObject:w,ZodUnion:q,ZodDiscriminatedUnion:ye,ZodIntersection:Y,ZodTuple:j,ZodRecord:ve,ZodMap:ae,ZodSet:ie,ZodFunction:_e,ZodLazy:J,ZodLiteral:H,ZodEnum:G,ZodNativeEnum:X,ZodPromise:L,ZodEffects:C,ZodTransformer:C,ZodOptional:O,ZodNullable:Z,ZodDefault:K,ZodCatch:Q,ZodNaN:oe,BRAND:ht,ZodBranded:le,ZodPipeline:fe,ZodReadonly:F,custom:qe,Schema:_,ZodSchema:_,late:pt,get ZodFirstPartyTypeKind(){return p},coerce:Gt,any:kt,array:St,bigint:yt,boolean:He,date:vt,discriminatedUnion:jt,effect:Le,enum:Pt,function:$t,instanceof:mt,intersection:Zt,lazy:zt,literal:Lt,map:At,nan:gt,nativeEnum:Dt,never:Tt,null:bt,nullable:Bt,number:Je,object:Ot,oboolean:Ht,onumber:Jt,optional:Ut,ostring:Yt,pipeline:qt,preprocess:Wt,promise:Vt,record:It,set:Mt,strictObject:Et,string:Ye,symbol:_t,transformer:Le,tuple:Rt,undefined:xt,union:Nt,unknown:wt,void:Ct,NEVER:Xt,ZodIssueCode:c,quotelessJson:Ge,ZodError:T});var Oe=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace"),Ee=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace"),Ne=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace"),je=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace"),Ze=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace"),Re=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace"),Ie=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace"),Ae=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#a40e26").describe("The error color of the workspace"),Me=g.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace"),Kt=g.object({foreground:Ee,background:Oe,brand:Ne,accent:je,success:Ze,info:Re,warning:Ie,error:Ae,fatal:Me}),Qt=g.object({foreground:Oe,background:Ee,brand:Ne,accent:je,success:Ze,info:Re,warning:Ie,error:Ae,fatal:Me}),Ft=g.object({dark:Kt,light:Qt}),er=g.object({dark:Oe,light:Ee,brand:Ne,accent:je,success:Ze,info:Re,warning:Ie,error:Ae,fatal:Me}),Se=er.or(Ft).describe("Colors used for various workspace elements"),tr=g.union([g.object({base:Se}),g.record(g.string(),Se)]),sr=g.object({extends:g.string().trim().optional().describe("The path to a base JSON file to use as a configuration preset file"),name:g.string().trim().toLowerCase().optional().describe("The name of the package"),namespace:g.string().trim().toLowerCase().optional().describe("The namespace of the package"),organization:g.string().trim().default("storm-software").describe("The organization of the workspace"),repository:g.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),license:g.string().trim().default("Apache 2.0").describe("The root directory of the package"),homepage:g.string().trim().url().default("https://stormsoftware.com").describe("The homepage of the workspace"),branch:g.string().trim().default("main").describe("The branch of the workspace"),preid:g.string().optional().describe("A tag specifying the version pre-release identifier"),owner:g.string().trim().default("@storm-software/development").describe("The owner of the package"),worker:g.string().trim().default("Stormie-Bot").describe("The worker of the package (this is the bot that will be used to perform various tasks)"),env:g.enum(["development","staging","production"]).default("production").describe("The current runtime environment of the package"),ci:g.boolean().default(!0).describe("An indicator specifying if the current environment is a CI environment"),workspaceRoot:g.string().trim().optional().describe("The root directory of the workspace"),packageDirectory:g.string().trim().optional().describe("The root directory of the package"),externalPackagePatterns:g.array(g.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),skipCache:g.boolean().default(!1).describe("Should all known types of workspace caching be skipped?"),cacheDirectory:g.string().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),buildDirectory:g.string().trim().default("dist").describe("The build directory for the workspace"),outputDirectory:g.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),runtimeVersion:g.string().trim().regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).default("1.0.0").describe("The global version of the Storm runtime"),packageManager:g.enum(["npm","yarn","pnpm","bun"]).default("npm").describe("The package manager used by the repository"),timezone:g.string().trim().default("America/New_York").describe("The default timezone of the workspace"),locale:g.string().trim().default("en-US").describe("The default locale of the workspace"),logLevel:g.enum(["silent","fatal","error","warn","info","debug","trace","all"]).default("debug").describe("The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."),configFile:g.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),colors:Se.or(tr).describe("Storm theme config values used for styling various package elements"),extensions:g.record(g.any()).optional().default({}).describe("Configuration of each used extension")}).describe("Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo.");var ir=["dark","light","brand","accent","success","info","warning","error","fatal"];var cr=r=>r;export{ir as COLOR_KEYS,tr as ColorConfigMapSchema,Se as ColorConfigSchema,Kt as DarkThemeColorConfigSchema,Qt as LightThemeColorConfigSchema,Ft as MultiThemeColorConfigSchema,er as SingleThemeColorConfigSchema,sr as StormConfigSchema,cr as defineConfig};
|
package/meta.cjs.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"node_modules/.pnpm/zod@3.23.4/node_modules/zod/lib/index.mjs":{"bytes":149301,"imports":[],"format":"esm"},"packages/config/src/schema.ts":{"bytes":8244,"imports":[{"path":"node_modules/.pnpm/zod@3.23.4/node_modules/zod/lib/index.mjs","kind":"import-statement","original":"zod"}],"format":"esm"},"packages/config/src/types.ts":{"bytes":1880,"imports":[],"format":"esm"},"packages/config/src/define-config.ts":{"bytes":313,"imports":[],"format":"esm"},"packages/config/src/index.ts":{"bytes":311,"imports":[{"path":"packages/config/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/config/src/define-config.ts","kind":"import-statement","original":"./define-config"}],"format":"esm"}},"outputs":{"dist/packages/config/index.cjs":{"imports":[],"exports":[],"entryPoint":"packages/config/src/index.ts","inputs":{"packages/config/src/index.ts":{"bytesInOutput":297},"node_modules/.pnpm/zod@3.23.4/node_modules/zod/lib/index.mjs":{"bytesInOutput":56757},"packages/config/src/schema.ts":{"bytesInOutput":5510},"packages/config/src/types.ts":{"bytesInOutput":84},"packages/config/src/define-config.ts":{"bytesInOutput":12}},"bytes":63087}}}
|
package/meta.esm.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"node_modules/.pnpm/zod@3.23.4/node_modules/zod/lib/index.mjs":{"bytes":149301,"imports":[],"format":"esm"},"packages/config/src/schema.ts":{"bytes":8244,"imports":[{"path":"node_modules/.pnpm/zod@3.23.4/node_modules/zod/lib/index.mjs","kind":"import-statement","original":"zod"}],"format":"esm"},"packages/config/src/types.ts":{"bytes":1880,"imports":[],"format":"esm"},"packages/config/src/define-config.ts":{"bytes":313,"imports":[],"format":"esm"},"packages/config/src/index.ts":{"bytes":311,"imports":[{"path":"packages/config/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/config/src/define-config.ts","kind":"import-statement","original":"./define-config"}],"format":"esm"}},"outputs":{"dist/packages/config/index.js":{"imports":[],"exports":["COLOR_KEYS","ColorConfigMapSchema","ColorConfigSchema","DarkThemeColorConfigSchema","LightThemeColorConfigSchema","MultiThemeColorConfigSchema","SingleThemeColorConfigSchema","StormConfigSchema","defineConfig"],"entryPoint":"packages/config/src/index.ts","inputs":{"node_modules/.pnpm/zod@3.23.4/node_modules/zod/lib/index.mjs":{"bytesInOutput":56757},"packages/config/src/schema.ts":{"bytesInOutput":5510},"packages/config/src/index.ts":{"bytesInOutput":0},"packages/config/src/types.ts":{"bytesInOutput":84},"packages/config/src/define-config.ts":{"bytesInOutput":12}},"bytes":62619}}}
|