@nullplatform/mcp 0.1.3 → 0.1.5
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/dist/i18n.js +26 -0
- package/dist/np/journey.js +28 -2
- package/dist/tool-names.js +2 -0
- package/dist/tools/approvals.js +1 -0
- package/dist/tools/builds.js +5 -2
- package/dist/tools/create-release.js +10 -4
- package/dist/tools/create-scope.js +20 -6
- package/dist/tools/deployments.js +95 -0
- package/dist/tools/index.js +4 -0
- package/dist/tools/logs.js +5 -0
- package/dist/tools/overview.js +3 -0
- package/dist/tools/params.js +9 -4
- package/dist/tools/playbook.js +1 -0
- package/dist/tools/releases.js +59 -0
- package/dist/tools/services.js +4 -1
- package/dist/tools/set-params.js +9 -2
- package/dist/tools/shared.js +13 -0
- package/dist/tools/status.js +15 -13
- package/dist/ui.js +7 -0
- package/package.json +2 -1
- package/widgets-dist/approvals.html +910 -0
- package/widgets-dist/builds.html +910 -0
- package/widgets-dist/create-app.html +100 -19
- package/widgets-dist/deployments.html +912 -0
- package/widgets-dist/find-apps.html +108 -27
- package/widgets-dist/logs.html +102 -21
- package/widgets-dist/manifest.json +13 -6
- package/widgets-dist/metrics.html +101 -20
- package/widgets-dist/np-panel.html +103 -22
- package/widgets-dist/overview.html +912 -0
- package/widgets-dist/params.html +101 -20
- package/widgets-dist/playbook.html +914 -0
- package/widgets-dist/releases.html +912 -0
- package/widgets-dist/services.html +910 -0
|
@@ -0,0 +1,910 @@
|
|
|
1
|
+
<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><!--np-widget:approvals@react--><style>/* Design tokens: derived from the HOST's design system (MCP Apps style variables),
|
|
2
|
+
falling back to our palette on hosts that send none. */
|
|
3
|
+
:root {
|
|
4
|
+
--bg: var(--color-background-primary, #ffffff);
|
|
5
|
+
--card: var(--color-background-secondary, #fafaf9);
|
|
6
|
+
--fg: var(--color-text-primary, #1c1917);
|
|
7
|
+
--muted: var(--color-text-secondary, #78716c);
|
|
8
|
+
--line: var(--color-border-primary, #e7e5e4);
|
|
9
|
+
/* Accent: hosts name this differently — adopt whichever they send so the primary
|
|
10
|
+
actions match the host's brand color (e.g. Claude's clay), not our indigo fallback. */
|
|
11
|
+
--accent: var(--color-accent-primary, var(--color-ring-primary, var(--color-accent, #6366f1)));
|
|
12
|
+
--accent-fg: var(--color-text-inverse, #ffffff);
|
|
13
|
+
--ok: var(--color-text-success, #16a34a);
|
|
14
|
+
--bad: var(--color-text-danger, #dc2626);
|
|
15
|
+
--warn: var(--color-text-warning, #d97706);
|
|
16
|
+
--radius: var(--border-radius-lg, 12px);
|
|
17
|
+
--term-bg: #1c1917;
|
|
18
|
+
--term-fg: #d6d3d1;
|
|
19
|
+
}
|
|
20
|
+
@media (prefers-color-scheme: dark) {
|
|
21
|
+
:root:not(.light) {
|
|
22
|
+
--bg: var(--color-background-primary, transparent);
|
|
23
|
+
--card: var(--color-background-secondary, rgba(255, 255, 255, 0.04));
|
|
24
|
+
--fg: var(--color-text-primary, #e7e5e4);
|
|
25
|
+
--muted: var(--color-text-secondary, #a8a29e);
|
|
26
|
+
--line: var(--color-border-primary, #3f3f46);
|
|
27
|
+
--accent: var(--color-accent-primary, var(--color-ring-primary, var(--color-accent, #818cf8)));
|
|
28
|
+
--accent-fg: var(--color-text-inverse, #1e1b4b);
|
|
29
|
+
--ok: var(--color-text-success, #4ade80);
|
|
30
|
+
--bad: var(--color-text-danger, #f87171);
|
|
31
|
+
--warn: var(--color-text-warning, #fbbf24);
|
|
32
|
+
--term-bg: rgba(0, 0, 0, 0.45);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
html.dark {
|
|
36
|
+
--bg: var(--color-background-primary, transparent);
|
|
37
|
+
--card: var(--color-background-secondary, rgba(255, 255, 255, 0.04));
|
|
38
|
+
--fg: var(--color-text-primary, #e7e5e4);
|
|
39
|
+
--muted: var(--color-text-secondary, #a8a29e);
|
|
40
|
+
--line: var(--color-border-primary, #3f3f46);
|
|
41
|
+
--accent: var(--color-accent-primary, var(--color-ring-primary, var(--color-accent, #818cf8)));
|
|
42
|
+
--accent-fg: var(--color-text-inverse, #1e1b4b);
|
|
43
|
+
--ok: var(--color-text-success, #4ade80);
|
|
44
|
+
--bad: var(--color-text-danger, #f87171);
|
|
45
|
+
--warn: var(--color-text-warning, #fbbf24);
|
|
46
|
+
--term-bg: rgba(0, 0, 0, 0.45);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
* {
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
}
|
|
52
|
+
html,
|
|
53
|
+
body {
|
|
54
|
+
margin: 0;
|
|
55
|
+
padding: 0;
|
|
56
|
+
background: var(--bg);
|
|
57
|
+
}
|
|
58
|
+
body {
|
|
59
|
+
font: 14px / 1.45 var(--font-sans, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
|
|
60
|
+
color: var(--fg);
|
|
61
|
+
/* The only gutter — enough breathing room off the host's container edge, but small
|
|
62
|
+
enough not to fight a host that already pads the iframe. */
|
|
63
|
+
padding: 12px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* layout */
|
|
67
|
+
.card {
|
|
68
|
+
/* No self-chrome: hosts embed the widget in their own card/container, so a border +
|
|
69
|
+
background here would double-frame it. Inner cards (scopes, metrics) and the row
|
|
70
|
+
separators carry the grouping instead; the body's small padding is the only gutter,
|
|
71
|
+
so it also reads cleanly on a host that embeds the iframe bare. */
|
|
72
|
+
width: 100%;
|
|
73
|
+
}
|
|
74
|
+
.row {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
gap: 10px;
|
|
78
|
+
flex-wrap: wrap;
|
|
79
|
+
}
|
|
80
|
+
.grow {
|
|
81
|
+
flex: 1;
|
|
82
|
+
min-width: 0;
|
|
83
|
+
}
|
|
84
|
+
.section {
|
|
85
|
+
margin-top: 18px;
|
|
86
|
+
}
|
|
87
|
+
.section + .section {
|
|
88
|
+
padding-top: 4px;
|
|
89
|
+
}
|
|
90
|
+
.label {
|
|
91
|
+
font-size: 11px;
|
|
92
|
+
text-transform: uppercase;
|
|
93
|
+
letter-spacing: 0.08em;
|
|
94
|
+
color: var(--muted);
|
|
95
|
+
margin-bottom: 6px;
|
|
96
|
+
}
|
|
97
|
+
.grid {
|
|
98
|
+
display: grid;
|
|
99
|
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
100
|
+
gap: 10px;
|
|
101
|
+
margin-top: 12px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* text */
|
|
105
|
+
.title {
|
|
106
|
+
font-weight: 650;
|
|
107
|
+
font-size: 15px;
|
|
108
|
+
}
|
|
109
|
+
.sub {
|
|
110
|
+
color: var(--muted);
|
|
111
|
+
font-size: 12.5px;
|
|
112
|
+
word-break: break-word;
|
|
113
|
+
}
|
|
114
|
+
.note {
|
|
115
|
+
font-size: 12.5px;
|
|
116
|
+
color: var(--muted);
|
|
117
|
+
margin-top: 8px;
|
|
118
|
+
min-height: 16px;
|
|
119
|
+
white-space: pre-wrap;
|
|
120
|
+
}
|
|
121
|
+
.note.ok {
|
|
122
|
+
color: var(--ok);
|
|
123
|
+
}
|
|
124
|
+
.note.bad {
|
|
125
|
+
color: var(--bad);
|
|
126
|
+
}
|
|
127
|
+
.hint {
|
|
128
|
+
font-size: 12.5px;
|
|
129
|
+
border-left: 3px solid var(--accent);
|
|
130
|
+
padding: 6px 10px;
|
|
131
|
+
margin-top: 12px;
|
|
132
|
+
color: var(--muted);
|
|
133
|
+
}
|
|
134
|
+
a {
|
|
135
|
+
color: var(--accent);
|
|
136
|
+
text-decoration: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* pill */
|
|
140
|
+
.pill {
|
|
141
|
+
font-size: 12px;
|
|
142
|
+
font-weight: 600;
|
|
143
|
+
padding: 3px 10px;
|
|
144
|
+
border-radius: 999px;
|
|
145
|
+
border: 1px solid var(--line);
|
|
146
|
+
white-space: nowrap;
|
|
147
|
+
}
|
|
148
|
+
.pill.ok {
|
|
149
|
+
color: var(--ok);
|
|
150
|
+
border-color: var(--ok);
|
|
151
|
+
}
|
|
152
|
+
.pill.bad {
|
|
153
|
+
color: var(--bad);
|
|
154
|
+
border-color: var(--bad);
|
|
155
|
+
}
|
|
156
|
+
.pill.run {
|
|
157
|
+
color: var(--accent);
|
|
158
|
+
border-color: var(--accent);
|
|
159
|
+
}
|
|
160
|
+
.pill.wait {
|
|
161
|
+
color: var(--warn);
|
|
162
|
+
border-color: var(--warn);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* controls */
|
|
166
|
+
button {
|
|
167
|
+
font: inherit;
|
|
168
|
+
font-size: 13px;
|
|
169
|
+
font-weight: 600;
|
|
170
|
+
border-radius: 9px;
|
|
171
|
+
padding: 7px 14px;
|
|
172
|
+
cursor: pointer;
|
|
173
|
+
border: 1px solid var(--line);
|
|
174
|
+
background: transparent;
|
|
175
|
+
color: var(--fg);
|
|
176
|
+
}
|
|
177
|
+
button.primary {
|
|
178
|
+
background: var(--accent);
|
|
179
|
+
border-color: var(--accent);
|
|
180
|
+
color: var(--accent-fg);
|
|
181
|
+
}
|
|
182
|
+
button.danger {
|
|
183
|
+
color: var(--bad);
|
|
184
|
+
border-color: var(--bad);
|
|
185
|
+
}
|
|
186
|
+
button.small {
|
|
187
|
+
font-size: 12px;
|
|
188
|
+
padding: 4px 10px;
|
|
189
|
+
border-radius: 7px;
|
|
190
|
+
}
|
|
191
|
+
button.chipbtn {
|
|
192
|
+
padding: 1px 8px;
|
|
193
|
+
font-size: 11.5px;
|
|
194
|
+
border-radius: 999px;
|
|
195
|
+
}
|
|
196
|
+
button.on {
|
|
197
|
+
border-color: var(--accent);
|
|
198
|
+
color: var(--accent);
|
|
199
|
+
}
|
|
200
|
+
button.linklike {
|
|
201
|
+
border: none;
|
|
202
|
+
background: none;
|
|
203
|
+
color: var(--accent);
|
|
204
|
+
padding: 0;
|
|
205
|
+
font-size: 12px;
|
|
206
|
+
}
|
|
207
|
+
button:disabled {
|
|
208
|
+
opacity: 0.45;
|
|
209
|
+
cursor: default;
|
|
210
|
+
}
|
|
211
|
+
/* inline SVG icons (see ui/icons.tsx) — sit on the text baseline, never shrink in flex rows */
|
|
212
|
+
.icon {
|
|
213
|
+
flex: none;
|
|
214
|
+
vertical-align: -0.15em;
|
|
215
|
+
}
|
|
216
|
+
/* buttons that pair an icon with a label (or are icon-only): center + even gap */
|
|
217
|
+
button.hasicon {
|
|
218
|
+
display: inline-flex;
|
|
219
|
+
align-items: center;
|
|
220
|
+
justify-content: center;
|
|
221
|
+
gap: 6px;
|
|
222
|
+
}
|
|
223
|
+
button.hasicon .icon {
|
|
224
|
+
vertical-align: 0;
|
|
225
|
+
}
|
|
226
|
+
/* the time-range button's dropdown caret sits a touch dimmer than the clock + label */
|
|
227
|
+
.tr-caret {
|
|
228
|
+
opacity: 0.6;
|
|
229
|
+
}
|
|
230
|
+
/* the lock marking a secret parameter — muted, it's an annotation not an action */
|
|
231
|
+
.muted-icon {
|
|
232
|
+
color: var(--muted);
|
|
233
|
+
vertical-align: -0.15em;
|
|
234
|
+
}
|
|
235
|
+
input[type="text"],
|
|
236
|
+
input[type="datetime-local"],
|
|
237
|
+
select {
|
|
238
|
+
font: inherit;
|
|
239
|
+
font-size: 13px;
|
|
240
|
+
color: var(--fg);
|
|
241
|
+
background: transparent;
|
|
242
|
+
border: 1px solid var(--line);
|
|
243
|
+
border-radius: 8px;
|
|
244
|
+
padding: 6px 10px;
|
|
245
|
+
}
|
|
246
|
+
select {
|
|
247
|
+
/* Native chevron overlaps the border in some hosts — draw our own and reserve room. */
|
|
248
|
+
appearance: none;
|
|
249
|
+
-webkit-appearance: none;
|
|
250
|
+
background-color: var(--card);
|
|
251
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12' fill='none' stroke='%23999' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
|
|
252
|
+
background-repeat: no-repeat;
|
|
253
|
+
background-position: right 10px center;
|
|
254
|
+
padding-right: 30px;
|
|
255
|
+
}
|
|
256
|
+
input[type="datetime-local"] {
|
|
257
|
+
padding-right: 8px;
|
|
258
|
+
}
|
|
259
|
+
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
|
|
260
|
+
cursor: pointer;
|
|
261
|
+
}
|
|
262
|
+
html.dark input[type="datetime-local"]::-webkit-calendar-picker-indicator {
|
|
263
|
+
filter: invert(0.85);
|
|
264
|
+
}
|
|
265
|
+
@media (prefers-color-scheme: dark) {
|
|
266
|
+
:root:not(.light) input[type="datetime-local"]::-webkit-calendar-picker-indicator {
|
|
267
|
+
filter: invert(0.85);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
input[type="range"] {
|
|
271
|
+
width: 100%;
|
|
272
|
+
accent-color: var(--accent);
|
|
273
|
+
margin: 10px 0 2px;
|
|
274
|
+
}
|
|
275
|
+
.field {
|
|
276
|
+
margin-bottom: 10px;
|
|
277
|
+
}
|
|
278
|
+
.field input,
|
|
279
|
+
.field select {
|
|
280
|
+
width: 100%;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* create-app: repository mode toggle, generated-URL row, monorepo checkbox */
|
|
284
|
+
.segmented {
|
|
285
|
+
display: flex;
|
|
286
|
+
gap: 6px;
|
|
287
|
+
}
|
|
288
|
+
.segmented .seg {
|
|
289
|
+
flex: 1;
|
|
290
|
+
justify-content: center;
|
|
291
|
+
}
|
|
292
|
+
.repo-url {
|
|
293
|
+
display: flex;
|
|
294
|
+
align-items: center;
|
|
295
|
+
gap: 0;
|
|
296
|
+
border: 1px solid var(--line);
|
|
297
|
+
border-radius: 8px;
|
|
298
|
+
padding: 0 4px 0 10px;
|
|
299
|
+
background: var(--card);
|
|
300
|
+
}
|
|
301
|
+
.repo-url .repo-base {
|
|
302
|
+
flex: none;
|
|
303
|
+
color: var(--muted);
|
|
304
|
+
font-family: var(--font-mono, ui-monospace, Menlo, monospace);
|
|
305
|
+
font-size: 12.5px;
|
|
306
|
+
white-space: nowrap;
|
|
307
|
+
max-width: 45%;
|
|
308
|
+
overflow: hidden;
|
|
309
|
+
text-overflow: ellipsis;
|
|
310
|
+
}
|
|
311
|
+
.repo-url input {
|
|
312
|
+
border: none;
|
|
313
|
+
background: transparent;
|
|
314
|
+
padding: 7px 4px;
|
|
315
|
+
border-radius: 0;
|
|
316
|
+
}
|
|
317
|
+
.repo-url input:disabled {
|
|
318
|
+
opacity: 1;
|
|
319
|
+
color: var(--fg);
|
|
320
|
+
}
|
|
321
|
+
.check-row {
|
|
322
|
+
display: flex;
|
|
323
|
+
align-items: center;
|
|
324
|
+
gap: 8px;
|
|
325
|
+
font-size: 13px;
|
|
326
|
+
margin-bottom: 10px;
|
|
327
|
+
cursor: pointer;
|
|
328
|
+
}
|
|
329
|
+
.check-row input {
|
|
330
|
+
width: auto;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/* table */
|
|
334
|
+
table {
|
|
335
|
+
width: 100%;
|
|
336
|
+
border-collapse: collapse;
|
|
337
|
+
font-size: 13px;
|
|
338
|
+
}
|
|
339
|
+
th {
|
|
340
|
+
text-align: left;
|
|
341
|
+
font-size: 11px;
|
|
342
|
+
text-transform: uppercase;
|
|
343
|
+
letter-spacing: 0.06em;
|
|
344
|
+
color: var(--muted);
|
|
345
|
+
padding: 4px 8px 6px 0;
|
|
346
|
+
}
|
|
347
|
+
td {
|
|
348
|
+
padding: 4px 8px 4px 0;
|
|
349
|
+
border-top: 1px solid var(--line);
|
|
350
|
+
}
|
|
351
|
+
.mono {
|
|
352
|
+
font-family: var(--font-mono, ui-monospace, Menlo, monospace);
|
|
353
|
+
font-size: 12.5px;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* terminal pane */
|
|
357
|
+
.term {
|
|
358
|
+
background: var(--term-bg);
|
|
359
|
+
color: var(--term-fg);
|
|
360
|
+
border-radius: 10px;
|
|
361
|
+
padding: 6px 12px;
|
|
362
|
+
font: 12px / 1.55 var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
|
|
363
|
+
max-height: 320px;
|
|
364
|
+
overflow-y: auto;
|
|
365
|
+
}
|
|
366
|
+
.term.nowrap {
|
|
367
|
+
overflow-x: auto;
|
|
368
|
+
}
|
|
369
|
+
.logline {
|
|
370
|
+
display: flex;
|
|
371
|
+
align-items: flex-start;
|
|
372
|
+
gap: 10px;
|
|
373
|
+
padding: 3px 0;
|
|
374
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
|
375
|
+
}
|
|
376
|
+
.logline:last-child {
|
|
377
|
+
border-bottom: none;
|
|
378
|
+
}
|
|
379
|
+
.logline .t {
|
|
380
|
+
opacity: 0.5;
|
|
381
|
+
flex: none;
|
|
382
|
+
white-space: nowrap;
|
|
383
|
+
}
|
|
384
|
+
.logline .msg {
|
|
385
|
+
flex: 1;
|
|
386
|
+
min-width: 0;
|
|
387
|
+
white-space: pre-wrap;
|
|
388
|
+
word-break: break-word;
|
|
389
|
+
}
|
|
390
|
+
.term.nowrap .msg {
|
|
391
|
+
white-space: pre;
|
|
392
|
+
}
|
|
393
|
+
.logline .copyline {
|
|
394
|
+
flex: none;
|
|
395
|
+
display: inline-flex;
|
|
396
|
+
align-items: center;
|
|
397
|
+
/* Match one text line and pin to the row's top so the icon sits on the first line,
|
|
398
|
+
centered against the timestamp/message — not floated by baseline alignment. */
|
|
399
|
+
align-self: flex-start;
|
|
400
|
+
height: 1.55em;
|
|
401
|
+
opacity: 0;
|
|
402
|
+
border: none;
|
|
403
|
+
background: transparent;
|
|
404
|
+
color: var(--term-fg);
|
|
405
|
+
cursor: pointer;
|
|
406
|
+
padding: 0 2px;
|
|
407
|
+
font-size: 12px;
|
|
408
|
+
transition: opacity 0.12s ease;
|
|
409
|
+
}
|
|
410
|
+
.logline:hover .copyline {
|
|
411
|
+
opacity: 0.55;
|
|
412
|
+
}
|
|
413
|
+
.logline .copyline:hover {
|
|
414
|
+
opacity: 1;
|
|
415
|
+
}
|
|
416
|
+
.term .warn {
|
|
417
|
+
color: var(--warn);
|
|
418
|
+
}
|
|
419
|
+
.term .err {
|
|
420
|
+
color: var(--bad);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/* live tail indicator + log toolbar */
|
|
424
|
+
.live {
|
|
425
|
+
display: inline-flex;
|
|
426
|
+
align-items: center;
|
|
427
|
+
gap: 6px;
|
|
428
|
+
font-size: 12px;
|
|
429
|
+
color: var(--muted);
|
|
430
|
+
white-space: nowrap;
|
|
431
|
+
}
|
|
432
|
+
.live-dot {
|
|
433
|
+
width: 7px;
|
|
434
|
+
height: 7px;
|
|
435
|
+
border-radius: 999px;
|
|
436
|
+
background: var(--ok);
|
|
437
|
+
animation: live-pulse 1.6s ease-in-out infinite;
|
|
438
|
+
}
|
|
439
|
+
@media (prefers-reduced-motion: reduce) {
|
|
440
|
+
.live-dot {
|
|
441
|
+
animation: none;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
@keyframes live-pulse {
|
|
445
|
+
0%,
|
|
446
|
+
100% {
|
|
447
|
+
opacity: 1;
|
|
448
|
+
}
|
|
449
|
+
50% {
|
|
450
|
+
opacity: 0.35;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/* spinner inside a status pill — mid-flight states (build in_progress, deploy creating/…) */
|
|
455
|
+
.spin {
|
|
456
|
+
display: inline-block;
|
|
457
|
+
width: 9px;
|
|
458
|
+
height: 9px;
|
|
459
|
+
margin-right: 5px;
|
|
460
|
+
vertical-align: -1px;
|
|
461
|
+
border: 1.5px solid currentColor;
|
|
462
|
+
border-right-color: transparent;
|
|
463
|
+
border-radius: 999px;
|
|
464
|
+
animation: spin 0.7s linear infinite;
|
|
465
|
+
}
|
|
466
|
+
@media (prefers-reduced-motion: reduce) {
|
|
467
|
+
.spin {
|
|
468
|
+
animation: none;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
@keyframes spin {
|
|
472
|
+
to {
|
|
473
|
+
transform: rotate(360deg);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
.toolbar {
|
|
477
|
+
display: flex;
|
|
478
|
+
align-items: center;
|
|
479
|
+
flex-wrap: wrap;
|
|
480
|
+
gap: 8px;
|
|
481
|
+
margin-top: 10px;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/* unified time-range picker — one button opens a panel of presets + a custom from/to */
|
|
485
|
+
.timerange {
|
|
486
|
+
position: relative;
|
|
487
|
+
}
|
|
488
|
+
/* Keep the toolbar's controls a single, shared height — the small time-range button would
|
|
489
|
+
otherwise sit shorter than the scope select and the filter input beside it. (Declared
|
|
490
|
+
after `.timerange` so specificity ascends.) */
|
|
491
|
+
.toolbar > select,
|
|
492
|
+
.toolbar > input,
|
|
493
|
+
.toolbar .timerange,
|
|
494
|
+
.toolbar .timerange > button {
|
|
495
|
+
height: 34px;
|
|
496
|
+
box-sizing: border-box;
|
|
497
|
+
}
|
|
498
|
+
.tr-panel {
|
|
499
|
+
position: absolute;
|
|
500
|
+
top: calc(100% + 6px);
|
|
501
|
+
left: 0;
|
|
502
|
+
z-index: 30;
|
|
503
|
+
min-width: 280px;
|
|
504
|
+
background: var(--card);
|
|
505
|
+
border: 1px solid var(--line);
|
|
506
|
+
border-radius: 10px;
|
|
507
|
+
padding: 10px;
|
|
508
|
+
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
|
|
509
|
+
}
|
|
510
|
+
.tr-closed {
|
|
511
|
+
display: none;
|
|
512
|
+
}
|
|
513
|
+
.tr-presets {
|
|
514
|
+
display: grid;
|
|
515
|
+
grid-template-columns: 1fr 1fr;
|
|
516
|
+
gap: 4px;
|
|
517
|
+
}
|
|
518
|
+
.tr-preset {
|
|
519
|
+
text-align: left;
|
|
520
|
+
border: 1px solid transparent;
|
|
521
|
+
background: transparent;
|
|
522
|
+
color: var(--fg);
|
|
523
|
+
border-radius: 7px;
|
|
524
|
+
padding: 6px 9px;
|
|
525
|
+
font-size: 13px;
|
|
526
|
+
cursor: pointer;
|
|
527
|
+
}
|
|
528
|
+
.tr-preset:hover {
|
|
529
|
+
background: rgba(127, 127, 127, 0.1);
|
|
530
|
+
}
|
|
531
|
+
.tr-preset.on {
|
|
532
|
+
border-color: var(--accent);
|
|
533
|
+
color: var(--accent);
|
|
534
|
+
}
|
|
535
|
+
.tr-custom {
|
|
536
|
+
margin-top: 10px;
|
|
537
|
+
border-top: 1px solid var(--line);
|
|
538
|
+
padding-top: 10px;
|
|
539
|
+
}
|
|
540
|
+
.tr-field {
|
|
541
|
+
display: flex;
|
|
542
|
+
align-items: center;
|
|
543
|
+
gap: 8px;
|
|
544
|
+
margin-bottom: 6px;
|
|
545
|
+
}
|
|
546
|
+
.tr-field .sub {
|
|
547
|
+
width: 38px;
|
|
548
|
+
}
|
|
549
|
+
.tr-field input {
|
|
550
|
+
flex: 1;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* domain-specific */
|
|
554
|
+
.scope-card {
|
|
555
|
+
border: 1px solid var(--line);
|
|
556
|
+
border-radius: 10px;
|
|
557
|
+
padding: 12px 14px;
|
|
558
|
+
margin-bottom: 10px;
|
|
559
|
+
}
|
|
560
|
+
.scope-card .row + .row {
|
|
561
|
+
margin-top: 8px;
|
|
562
|
+
}
|
|
563
|
+
.chip {
|
|
564
|
+
display: inline-flex;
|
|
565
|
+
align-items: center;
|
|
566
|
+
gap: 6px;
|
|
567
|
+
border: 1px solid var(--line);
|
|
568
|
+
border-radius: 999px;
|
|
569
|
+
padding: 3px 10px;
|
|
570
|
+
font-size: 12.5px;
|
|
571
|
+
}
|
|
572
|
+
.chip .live {
|
|
573
|
+
color: var(--ok);
|
|
574
|
+
font-weight: 600;
|
|
575
|
+
}
|
|
576
|
+
.chips {
|
|
577
|
+
display: flex;
|
|
578
|
+
gap: 6px;
|
|
579
|
+
flex-wrap: wrap;
|
|
580
|
+
}
|
|
581
|
+
.bar {
|
|
582
|
+
height: 8px;
|
|
583
|
+
border-radius: 6px;
|
|
584
|
+
background: var(--line);
|
|
585
|
+
overflow: hidden;
|
|
586
|
+
position: relative;
|
|
587
|
+
}
|
|
588
|
+
.bar .fill {
|
|
589
|
+
height: 100%;
|
|
590
|
+
background: var(--accent);
|
|
591
|
+
border-radius: 6px;
|
|
592
|
+
transition: width 0.6s ease;
|
|
593
|
+
}
|
|
594
|
+
.bar .ghost {
|
|
595
|
+
position: absolute;
|
|
596
|
+
inset: 0 auto 0 0;
|
|
597
|
+
height: 100%;
|
|
598
|
+
background: var(--accent);
|
|
599
|
+
opacity: 0.3;
|
|
600
|
+
border-radius: 6px;
|
|
601
|
+
transition: width 0.3s ease;
|
|
602
|
+
}
|
|
603
|
+
.traffic-nums {
|
|
604
|
+
display: flex;
|
|
605
|
+
justify-content: space-between;
|
|
606
|
+
font-size: 12px;
|
|
607
|
+
color: var(--muted);
|
|
608
|
+
margin-top: 5px;
|
|
609
|
+
}
|
|
610
|
+
.metric-card {
|
|
611
|
+
border: 1px solid var(--line);
|
|
612
|
+
border-radius: 10px;
|
|
613
|
+
padding: 10px 12px;
|
|
614
|
+
}
|
|
615
|
+
.metric-card .val {
|
|
616
|
+
font-size: 20px;
|
|
617
|
+
font-weight: 700;
|
|
618
|
+
margin: 2px 0 6px;
|
|
619
|
+
}
|
|
620
|
+
.metric-card .val small {
|
|
621
|
+
font-size: 12px;
|
|
622
|
+
font-weight: 500;
|
|
623
|
+
color: var(--muted);
|
|
624
|
+
}
|
|
625
|
+
.metric-card canvas {
|
|
626
|
+
width: 100%;
|
|
627
|
+
height: 44px;
|
|
628
|
+
display: block;
|
|
629
|
+
}
|
|
630
|
+
.list-row {
|
|
631
|
+
display: flex;
|
|
632
|
+
align-items: center;
|
|
633
|
+
gap: 12px;
|
|
634
|
+
width: 100%;
|
|
635
|
+
text-align: left;
|
|
636
|
+
padding: 11px 12px;
|
|
637
|
+
position: relative;
|
|
638
|
+
border: 1px solid transparent;
|
|
639
|
+
cursor: pointer;
|
|
640
|
+
border-radius: 8px;
|
|
641
|
+
transition: background 0.12s ease;
|
|
642
|
+
}
|
|
643
|
+
/* Separator between rows: a straight, inset hairline drawn as a positioned child, so the
|
|
644
|
+
row's corner radius can't bend it into hooks the way a single-sided border did. */
|
|
645
|
+
.list-row:not(:last-child)::after {
|
|
646
|
+
content: "";
|
|
647
|
+
position: absolute;
|
|
648
|
+
left: 12px;
|
|
649
|
+
right: 12px;
|
|
650
|
+
bottom: 0;
|
|
651
|
+
height: 1px;
|
|
652
|
+
background: var(--line);
|
|
653
|
+
}
|
|
654
|
+
.list-row:hover {
|
|
655
|
+
background: rgba(127, 127, 127, 0.1);
|
|
656
|
+
}
|
|
657
|
+
/* A hovered row reads as one solid rounded block: drop its own bottom divider AND the one above
|
|
658
|
+
it (`:has` targets the row immediately before the hovered one) so no hairline cuts the corners. */
|
|
659
|
+
.list-row:hover::after,
|
|
660
|
+
.list-row:has(+ .list-row:hover)::after {
|
|
661
|
+
opacity: 0;
|
|
662
|
+
}
|
|
663
|
+
.list-row .app-name {
|
|
664
|
+
font-weight: 600;
|
|
665
|
+
}
|
|
666
|
+
.list-row .app-repo {
|
|
667
|
+
margin-left: auto;
|
|
668
|
+
font-size: 12px;
|
|
669
|
+
color: var(--muted);
|
|
670
|
+
font-family: var(--font-mono, ui-monospace, Menlo, monospace);
|
|
671
|
+
white-space: nowrap;
|
|
672
|
+
overflow: hidden;
|
|
673
|
+
text-overflow: ellipsis;
|
|
674
|
+
max-width: 42%;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
/* status dot — compact, colored by lifecycle, for dense lists */
|
|
678
|
+
.sdot {
|
|
679
|
+
width: 8px;
|
|
680
|
+
height: 8px;
|
|
681
|
+
border-radius: 999px;
|
|
682
|
+
flex: none;
|
|
683
|
+
background: var(--muted);
|
|
684
|
+
}
|
|
685
|
+
.sdot.ok {
|
|
686
|
+
background: var(--ok);
|
|
687
|
+
}
|
|
688
|
+
.sdot.bad {
|
|
689
|
+
background: var(--bad);
|
|
690
|
+
}
|
|
691
|
+
.sdot.run {
|
|
692
|
+
background: var(--accent);
|
|
693
|
+
}
|
|
694
|
+
.sdot.wait {
|
|
695
|
+
background: var(--warn);
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
/* grouped list header (e.g. apps by namespace) */
|
|
699
|
+
.group-head {
|
|
700
|
+
display: flex;
|
|
701
|
+
align-items: baseline;
|
|
702
|
+
gap: 8px;
|
|
703
|
+
margin: 18px 2px 6px;
|
|
704
|
+
}
|
|
705
|
+
.group-head:first-child {
|
|
706
|
+
margin-top: 8px;
|
|
707
|
+
}
|
|
708
|
+
.group-head .gname {
|
|
709
|
+
font-weight: 650;
|
|
710
|
+
font-size: 12.5px;
|
|
711
|
+
}
|
|
712
|
+
.group-head .gcount {
|
|
713
|
+
color: var(--muted);
|
|
714
|
+
font-size: 11.5px;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/* list pagination */
|
|
718
|
+
.pager {
|
|
719
|
+
display: flex;
|
|
720
|
+
align-items: center;
|
|
721
|
+
justify-content: center;
|
|
722
|
+
gap: 14px;
|
|
723
|
+
margin-top: 14px;
|
|
724
|
+
}
|
|
725
|
+
.pager .sub {
|
|
726
|
+
min-width: 96px;
|
|
727
|
+
text-align: center;
|
|
728
|
+
}
|
|
729
|
+
.auto {
|
|
730
|
+
display: inline-flex;
|
|
731
|
+
align-items: center;
|
|
732
|
+
gap: 6px;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
/* dimension chips (an execution environment's where: env, country, …) */
|
|
736
|
+
.dims {
|
|
737
|
+
display: inline-flex;
|
|
738
|
+
flex-wrap: wrap;
|
|
739
|
+
gap: 5px;
|
|
740
|
+
}
|
|
741
|
+
.dim {
|
|
742
|
+
font-size: 11.5px;
|
|
743
|
+
color: var(--muted);
|
|
744
|
+
border: 1px solid var(--line);
|
|
745
|
+
border-radius: 6px;
|
|
746
|
+
padding: 1px 7px;
|
|
747
|
+
white-space: nowrap;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/* skeleton loading — shimmer placeholders shown until the first tool result lands */
|
|
751
|
+
@keyframes skel-shimmer {
|
|
752
|
+
0% {
|
|
753
|
+
background-position: 100% 0;
|
|
754
|
+
}
|
|
755
|
+
100% {
|
|
756
|
+
background-position: 0 0;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
.skel {
|
|
760
|
+
background: linear-gradient(90deg, var(--line) 25%, rgba(127, 127, 127, 0.22) 37%, var(--line) 63%);
|
|
761
|
+
background-size: 400% 100%;
|
|
762
|
+
animation: skel-shimmer 1.4s ease-in-out infinite;
|
|
763
|
+
border-radius: 6px;
|
|
764
|
+
flex: none;
|
|
765
|
+
}
|
|
766
|
+
@media (prefers-reduced-motion: reduce) {
|
|
767
|
+
.skel {
|
|
768
|
+
animation: none;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
.skel-rows {
|
|
772
|
+
display: flex;
|
|
773
|
+
flex-direction: column;
|
|
774
|
+
gap: 12px;
|
|
775
|
+
margin-top: 16px;
|
|
776
|
+
}
|
|
777
|
+
.skel-row {
|
|
778
|
+
display: flex;
|
|
779
|
+
align-items: center;
|
|
780
|
+
gap: 12px;
|
|
781
|
+
}
|
|
782
|
+
.skel-grid {
|
|
783
|
+
display: grid;
|
|
784
|
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
785
|
+
gap: 10px;
|
|
786
|
+
margin-top: 14px;
|
|
787
|
+
}
|
|
788
|
+
.skel-card {
|
|
789
|
+
border: 1px solid var(--line);
|
|
790
|
+
border-radius: 10px;
|
|
791
|
+
padding: 12px 14px;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
[hidden] {
|
|
795
|
+
display: none;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
/* playbook reader — the playbook widget's MiniMarkdown output */
|
|
799
|
+
.pb-body {
|
|
800
|
+
font-size: 13.5px;
|
|
801
|
+
line-height: 1.55;
|
|
802
|
+
}
|
|
803
|
+
.pb-body p {
|
|
804
|
+
margin: 8px 0;
|
|
805
|
+
}
|
|
806
|
+
.pb-h {
|
|
807
|
+
font-weight: 650;
|
|
808
|
+
margin: 16px 0 6px;
|
|
809
|
+
}
|
|
810
|
+
.pb-h1 {
|
|
811
|
+
font-size: 16px;
|
|
812
|
+
}
|
|
813
|
+
.pb-h2 {
|
|
814
|
+
font-size: 14.5px;
|
|
815
|
+
}
|
|
816
|
+
.pb-h3,
|
|
817
|
+
.pb-h4 {
|
|
818
|
+
font-size: 13.5px;
|
|
819
|
+
opacity: 0.85;
|
|
820
|
+
}
|
|
821
|
+
.pb-li {
|
|
822
|
+
margin: 4px 0 4px 6px;
|
|
823
|
+
padding-left: 14px;
|
|
824
|
+
position: relative;
|
|
825
|
+
}
|
|
826
|
+
.pb-li::before {
|
|
827
|
+
content: "•";
|
|
828
|
+
position: absolute;
|
|
829
|
+
left: 0;
|
|
830
|
+
opacity: 0.5;
|
|
831
|
+
}
|
|
832
|
+
.pb-code {
|
|
833
|
+
background: rgba(127, 127, 127, 0.1);
|
|
834
|
+
border-radius: 8px;
|
|
835
|
+
padding: 10px 12px;
|
|
836
|
+
margin: 8px 0;
|
|
837
|
+
overflow-x: auto;
|
|
838
|
+
font-size: 12.5px;
|
|
839
|
+
white-space: pre;
|
|
840
|
+
}
|
|
841
|
+
</style></head><body><div id="root"></div><script>"use strict";(()=>{var Nl=Object.defineProperty;var pf=(e,r,n)=>r in e?Nl(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n;var Fe=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,n)=>(typeof require<"u"?require:r)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var I=(e,r)=>()=>(e&&(r=e(e=0)),r);var Oe=(e,r)=>{for(var n in r)Nl(e,n,{get:r[n],enumerable:!0})};var L=(e,r,n)=>pf(e,typeof r!="symbol"?r+"":r,n);function d(e,r,n){function i(s,p){var u;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(u=s._zod).traits??(u.traits=new Set),s._zod.traits.add(e),r(s,p);for(let m in a.prototype)m in s||Object.defineProperty(s,m,{value:a.prototype[m].bind(s)});s._zod.constr=a,s._zod.def=p}let t=n?.Parent??Object;class o extends t{}Object.defineProperty(o,"name",{value:e});function a(s){var p;let u=n?.Parent?new o:this;i(u,s),(p=u._zod).deferred??(p.deferred=[]);for(let m of u._zod.deferred)m();return u}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}function Q(e){return e&&Object.assign(Vt,e),Vt}var en,tn,$e,Vt,ot=I(()=>{en=Object.freeze({status:"aborted"});tn=Symbol("zod_brand"),$e=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Vt={}});var S={};Oe(S,{BIGINT_FORMAT_RANGES:()=>wi,Class:()=>_i,NUMBER_FORMAT_RANGES:()=>Si,aborted:()=>He,allowsEval:()=>$i,assert:()=>Af,assertEqual:()=>Rf,assertIs:()=>Ef,assertNever:()=>Df,assertNotEqual:()=>Uf,assignProp:()=>xi,cached:()=>Kt,captureStackTrace:()=>rn,cleanEnum:()=>Gf,cleanRegex:()=>Gt,clone:()=>le,createTransparentProxy:()=>qf,defineLazy:()=>Z,esc:()=>qe,escapeRegex:()=>je,extend:()=>Vf,finalizeIssue:()=>me,floatSafeRemainder:()=>yi,getElementAtPath:()=>Cf,getEnumValues:()=>Jt,getLengthableOrigin:()=>Xt,getParsedType:()=>Ff,getSizableOrigin:()=>Yt,isObject:()=>it,isPlainObject:()=>at,issue:()=>Ii,joinValues:()=>v,jsonStringifyReplacer:()=>bi,merge:()=>Bf,normalizeParams:()=>x,nullish:()=>Ue,numKeys:()=>Mf,omit:()=>Wf,optionalKeys:()=>zi,partial:()=>Jf,pick:()=>Hf,prefixIssues:()=>ue,primitiveTypes:()=>ki,promiseAllObject:()=>Zf,propertyKeyTypes:()=>Qt,randomString:()=>Lf,required:()=>Kf,stringifyPrimitive:()=>z,unwrapMessage:()=>Bt});function Rf(e){return e}function Uf(e){return e}function Ef(e){}function Df(e){throw new Error}function Af(e){}function Jt(e){let r=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,t])=>r.indexOf(+i)===-1).map(([i,t])=>t)}function v(e,r="|"){return e.map(n=>z(n)).join(r)}function bi(e,r){return typeof r=="bigint"?r.toString():r}function Kt(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function Ue(e){return e==null}function Gt(e){let r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}function yi(e,r){let n=(e.toString().split(".")[1]||"").length,i=(r.toString().split(".")[1]||"").length,t=n>i?n:i,o=Number.parseInt(e.toFixed(t).replace(".","")),a=Number.parseInt(r.toFixed(t).replace(".",""));return o%a/10**t}function Z(e,r,n){Object.defineProperty(e,r,{get(){{let t=n();return e[r]=t,t}throw new Error("cached value already set")},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function xi(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Cf(e,r){return r?r.reduce((n,i)=>n?.[i],e):e}function Zf(e){let r=Object.keys(e),n=r.map(i=>e[i]);return Promise.all(n).then(i=>{let t={};for(let o=0;o<r.length;o++)t[r[o]]=i[o];return t})}function Lf(e=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=r[Math.floor(Math.random()*r.length)];return n}function qe(e){return JSON.stringify(e)}function it(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function at(e){if(it(e)===!1)return!1;let r=e.constructor;if(r===void 0)return!0;let n=r.prototype;return!(it(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Mf(e){let r=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&r++;return r}function je(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function le(e,r,n){let i=new e._zod.constr(r??e._zod.def);return(!r||n?.parent)&&(i._zod.parent=e),i}function x(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function qf(e){let r;return new Proxy({},{get(n,i,t){return r??(r=e()),Reflect.get(r,i,t)},set(n,i,t,o){return r??(r=e()),Reflect.set(r,i,t,o)},has(n,i){return r??(r=e()),Reflect.has(r,i)},deleteProperty(n,i){return r??(r=e()),Reflect.deleteProperty(r,i)},ownKeys(n){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,i){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,i)},defineProperty(n,i,t){return r??(r=e()),Reflect.defineProperty(r,i,t)}})}function z(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function zi(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}function Hf(e,r){let n={},i=e._zod.def;for(let t in r){if(!(t in i.shape))throw new Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=i.shape[t])}return le(e,{...e._zod.def,shape:n,checks:[]})}function Wf(e,r){let n={...e._zod.def.shape},i=e._zod.def;for(let t in r){if(!(t in i.shape))throw new Error(`Unrecognized key: "${t}"`);r[t]&&delete n[t]}return le(e,{...e._zod.def,shape:n,checks:[]})}function Vf(e,r){if(!at(r))throw new Error("Invalid input to extend: expected a plain object");let n={...e._zod.def,get shape(){let i={...e._zod.def.shape,...r};return xi(this,"shape",i),i},checks:[]};return le(e,n)}function Bf(e,r){return le(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...r._zod.def.shape};return xi(this,"shape",n),n},catchall:r._zod.def.catchall,checks:[]})}function Jf(e,r,n){let i=r._zod.def.shape,t={...i};if(n)for(let o in n){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(t[o]=e?new e({type:"optional",innerType:i[o]}):i[o])}else for(let o in i)t[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return le(r,{...r._zod.def,shape:t,checks:[]})}function Kf(e,r,n){let i=r._zod.def.shape,t={...i};if(n)for(let o in n){if(!(o in t))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(t[o]=new e({type:"nonoptional",innerType:i[o]}))}else for(let o in i)t[o]=new e({type:"nonoptional",innerType:i[o]});return le(r,{...r._zod.def,shape:t,checks:[]})}function He(e,r=0){for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ue(e,r){return r.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Bt(e){return typeof e=="string"?e:e?.message}function me(e,r,n){let i={...e,path:e.path??[]};if(!e.message){let t=Bt(e.inst?._zod.def?.error?.(e))??Bt(r?.error?.(e))??Bt(n.customError?.(e))??Bt(n.localeError?.(e))??"Invalid input";i.message=t}return delete i.inst,delete i.continue,r?.reportInput||delete i.input,i}function Yt(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Xt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ii(...e){let[r,n,i]=e;return typeof r=="string"?{message:r,code:"custom",input:n,inst:i}:{...r}}function Gf(e){return Object.entries(e).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}var rn,$i,Ff,Qt,ki,Si,wi,_i,T=I(()=>{rn=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};$i=Kt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});Ff=e=>{let r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Qt=new Set(["string","number","symbol"]),ki=new Set(["string","number","bigint","boolean","symbol","undefined"]);Si={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},wi={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};_i=class{constructor(...r){}}});function ct(e,r=n=>n.message){let n={},i=[];for(let t of e.issues)t.path.length>0?(n[t.path[0]]=n[t.path[0]]||[],n[t.path[0]].push(r(t))):i.push(r(t));return{formErrors:i,fieldErrors:n}}function lt(e,r){let n=r||function(o){return o.message},i={_errors:[]},t=o=>{for(let a of o.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>t({issues:s}));else if(a.code==="invalid_key")t({issues:a.issues});else if(a.code==="invalid_element")t({issues:a.issues});else if(a.path.length===0)i._errors.push(n(a));else{let s=i,p=0;for(;p<a.path.length;){let u=a.path[p];p===a.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(a))):s[u]=s[u]||{_errors:[]},s=s[u],p++}}};return t(e),i}function nn(e,r){let n=r||function(o){return o.message},i={errors:[]},t=(o,a=[])=>{var s,p;for(let u of o.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(m=>t({issues:m},u.path));else if(u.code==="invalid_key")t({issues:u.issues},u.path);else if(u.code==="invalid_element")t({issues:u.issues},u.path);else{let m=[...a,...u.path];if(m.length===0){i.errors.push(n(u));continue}let l=i,_=0;for(;_<m.length;){let h=m[_],f=_===m.length-1;typeof h=="string"?(l.properties??(l.properties={}),(s=l.properties)[h]??(s[h]={errors:[]}),l=l.properties[h]):(l.items??(l.items=[]),(p=l.items)[h]??(p[h]={errors:[]}),l=l.items[h]),f&&l.errors.push(n(u)),_++}}};return t(e),i}function Su(e){let r=[];for(let n of e)typeof n=="number"?r.push(`[${n}]`):typeof n=="symbol"?r.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?r.push(`[${JSON.stringify(n)}]`):(r.length&&r.push("."),r.push(n));return r.join("")}function on(e){let r=[],n=[...e.issues].sort((i,t)=>i.path.length-t.path.length);for(let i of n)r.push(`\u2716 ${i.message}`),i.path?.length&&r.push(` \u2192 at ${Su(i.path)}`);return r.join(`
|
|
842
|
+
`)}var zu,er,st,Pi=I(()=>{ot();T();zu=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(r,bi,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},er=d("$ZodError",zu),st=d("$ZodError",zu,{Parent:Error})});var an,tr,sn,rr,cn,ut,ln,nr,un=I(()=>{ot();Pi();T();an=e=>(r,n,i,t)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},a=r._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new $e;if(a.issues.length){let s=new(t?.Err??e)(a.issues.map(p=>me(p,o,Q())));throw rn(s,t?.callee),s}return a.value},tr=an(st),sn=e=>async(r,n,i,t)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},a=r._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(t?.Err??e)(a.issues.map(p=>me(p,o,Q())));throw rn(s,t?.callee),s}return a.value},rr=sn(st),cn=e=>(r,n,i)=>{let t=i?{...i,async:!1}:{async:!1},o=r._zod.run({value:n,issues:[]},t);if(o instanceof Promise)throw new $e;return o.issues.length?{success:!1,error:new(e??er)(o.issues.map(a=>me(a,t,Q())))}:{success:!0,data:o.value}},ut=cn(st),ln=e=>async(r,n,i)=>{let t=i?Object.assign(i,{async:!0}):{async:!0},o=r._zod.run({value:n,issues:[]},t);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>me(a,t,Q())))}:{success:!0,data:o.value}},nr=ln(st)});var Ee={};Oe(Ee,{_emoji:()=>wu,base64:()=>qi,base64url:()=>pn,bigint:()=>Gi,boolean:()=>Xi,browserEmail:()=>ig,cidrv4:()=>Mi,cidrv6:()=>Fi,cuid:()=>ji,cuid2:()=>Ni,date:()=>Vi,datetime:()=>Ji,domain:()=>ag,duration:()=>Ei,e164:()=>Wi,email:()=>Ai,emoji:()=>Ci,extendedDuration:()=>Yf,guid:()=>Di,hostname:()=>Hi,html5Email:()=>rg,integer:()=>Qi,ipv4:()=>Zi,ipv6:()=>Li,ksuid:()=>Ri,lowercase:()=>ra,nanoid:()=>Ui,null:()=>ea,number:()=>Yi,rfc5322Email:()=>ng,string:()=>Ki,time:()=>Bi,ulid:()=>Ti,undefined:()=>ta,unicodeEmail:()=>og,uppercase:()=>na,uuid:()=>We,uuid4:()=>Xf,uuid6:()=>eg,uuid7:()=>tg,xid:()=>Oi});function Ci(){return new RegExp(wu,"u")}function Pu(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Bi(e){return new RegExp(`^${Pu(e)}$`)}function Ji(e){let r=Pu({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");let i=`${r}(?:${n.join("|")})`;return new RegExp(`^${Iu}T(?:${i})$`)}var ji,Ni,Ti,Oi,Ri,Ui,Ei,Yf,Di,We,Xf,eg,tg,Ai,rg,ng,og,ig,wu,Zi,Li,Mi,Fi,qi,pn,Hi,ag,Wi,Iu,Vi,Ki,Gi,Qi,Yi,Xi,ea,ta,ra,na,dn=I(()=>{ji=/^[cC][^\s-]{8,}$/,Ni=/^[0-9a-z]+$/,Ti=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Oi=/^[0-9a-vA-V]{20}$/,Ri=/^[A-Za-z0-9]{27}$/,Ui=/^[a-zA-Z0-9_-]{21}$/,Ei=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Yf=/^[-+]?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)?)??$/,Di=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,We=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,Xf=We(4),eg=We(6),tg=We(7),Ai=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,rg=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ng=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,og=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,ig=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,wu="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";Zi=/^(?:(?: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])$/,Li=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,Mi=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,Fi=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,qi=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,pn=/^[A-Za-z0-9_-]*$/,Hi=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,ag=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Wi=/^\+(?:[0-9]){6,14}[0-9]$/,Iu="(?:(?:\\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])))",Vi=new RegExp(`^${Iu}$`);Ki=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},Gi=/^\d+n?$/,Qi=/^\d+$/,Yi=/^-?\d+(?:\.\d+)?/i,Xi=/true|false/i,ea=/null/i,ta=/undefined/i,ra=/^[^A-Z]*$/,na=/^[^a-z]*$/});function ju(e,r,n){e.issues.length&&r.issues.push(...ue(n,e.issues))}var K,Nu,mn,fn,oa,ia,aa,sa,ca,la,ua,pa,da,pt,ma,fa,ga,ha,va,_a,ba,ya,xa,gn=I(()=>{ot();dn();T();K=d("$ZodCheck",(e,r)=>{var n;e._zod??(e._zod={}),e._zod.def=r,(n=e._zod).onattach??(n.onattach=[])}),Nu={number:"number",bigint:"bigint",object:"date"},mn=d("$ZodCheckLessThan",(e,r)=>{K.init(e,r);let n=Nu[typeof r.value];e._zod.onattach.push(i=>{let t=i._zod.bag,o=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<o&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=i=>{(r.inclusive?i.value<=r.value:i.value<r.value)||i.issues.push({origin:n,code:"too_big",maximum:r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),fn=d("$ZodCheckGreaterThan",(e,r)=>{K.init(e,r);let n=Nu[typeof r.value];e._zod.onattach.push(i=>{let t=i._zod.bag,o=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>o&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=i=>{(r.inclusive?i.value>=r.value:i.value>r.value)||i.issues.push({origin:n,code:"too_small",minimum:r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),oa=d("$ZodCheckMultipleOf",(e,r)=>{K.init(e,r),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=r.value)}),e._zod.check=n=>{if(typeof n.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%r.value===BigInt(0):yi(n.value,r.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:e,continue:!r.abort})}}),ia=d("$ZodCheckNumberFormat",(e,r)=>{K.init(e,r),r.format=r.format||"float64";let n=r.format?.includes("int"),i=n?"int":"number",[t,o]=Si[r.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=r.format,s.minimum=t,s.maximum=o,n&&(s.pattern=Qi)}),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:i,format:r.format,code:"invalid_type",input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!r.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!r.abort});return}}s<t&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inst:e})}}),aa=d("$ZodCheckBigIntFormat",(e,r)=>{K.init(e,r);let[n,i]=wi[r.format];e._zod.onattach.push(t=>{let o=t._zod.bag;o.format=r.format,o.minimum=n,o.maximum=i}),e._zod.check=t=>{let o=t.value;o<n&&t.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!r.abort}),o>i&&t.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inst:e})}}),sa=d("$ZodCheckMaxSize",(e,r)=>{var n;K.init(e,r),(n=e._zod.def).when??(n.when=i=>{let t=i.value;return!Ue(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(i._zod.bag.maximum=r.maximum)}),e._zod.check=i=>{let t=i.value;t.size<=r.maximum||i.issues.push({origin:Yt(t),code:"too_big",maximum:r.maximum,input:t,inst:e,continue:!r.abort})}}),ca=d("$ZodCheckMinSize",(e,r)=>{var n;K.init(e,r),(n=e._zod.def).when??(n.when=i=>{let t=i.value;return!Ue(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(i._zod.bag.minimum=r.minimum)}),e._zod.check=i=>{let t=i.value;t.size>=r.minimum||i.issues.push({origin:Yt(t),code:"too_small",minimum:r.minimum,input:t,inst:e,continue:!r.abort})}}),la=d("$ZodCheckSizeEquals",(e,r)=>{var n;K.init(e,r),(n=e._zod.def).when??(n.when=i=>{let t=i.value;return!Ue(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=i=>{let t=i.value,o=t.size;if(o===r.size)return;let a=o>r.size;i.issues.push({origin:Yt(t),...a?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!r.abort})}}),ua=d("$ZodCheckMaxLength",(e,r)=>{var n;K.init(e,r),(n=e._zod.def).when??(n.when=i=>{let t=i.value;return!Ue(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(i._zod.bag.maximum=r.maximum)}),e._zod.check=i=>{let t=i.value;if(t.length<=r.maximum)return;let a=Xt(t);i.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),pa=d("$ZodCheckMinLength",(e,r)=>{var n;K.init(e,r),(n=e._zod.def).when??(n.when=i=>{let t=i.value;return!Ue(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(i._zod.bag.minimum=r.minimum)}),e._zod.check=i=>{let t=i.value;if(t.length>=r.minimum)return;let a=Xt(t);i.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),da=d("$ZodCheckLengthEquals",(e,r)=>{var n;K.init(e,r),(n=e._zod.def).when??(n.when=i=>{let t=i.value;return!Ue(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=i=>{let t=i.value,o=t.length;if(o===r.length)return;let a=Xt(t),s=o>r.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!r.abort})}}),pt=d("$ZodCheckStringFormat",(e,r)=>{var n,i;K.init(e,r),e._zod.onattach.push(t=>{let o=t._zod.bag;o.format=r.format,r.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(r.pattern))}),r.pattern?(n=e._zod).check??(n.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(i=e._zod).check??(i.check=()=>{})}),ma=d("$ZodCheckRegex",(e,r)=>{pt.init(e,r),e._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),fa=d("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=ra),pt.init(e,r)}),ga=d("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=na),pt.init(e,r)}),ha=d("$ZodCheckIncludes",(e,r)=>{K.init(e,r);let n=je(r.includes),i=new RegExp(typeof r.position=="number"?`^.{${r.position}}${n}`:n);r.pattern=i,e._zod.onattach.push(t=>{let o=t._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),va=d("$ZodCheckStartsWith",(e,r)=>{K.init(e,r);let n=new RegExp(`^${je(r.prefix)}.*`);r.pattern??(r.pattern=n),e._zod.onattach.push(i=>{let t=i._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(r.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:i.value,inst:e,continue:!r.abort})}}),_a=d("$ZodCheckEndsWith",(e,r)=>{K.init(e,r);let n=new RegExp(`.*${je(r.suffix)}$`);r.pattern??(r.pattern=n),e._zod.onattach.push(i=>{let t=i._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(r.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:i.value,inst:e,continue:!r.abort})}});ba=d("$ZodCheckProperty",(e,r)=>{K.init(e,r),e._zod.check=n=>{let i=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(i instanceof Promise)return i.then(t=>ju(t,n,r.property));ju(i,n,r.property)}}),ya=d("$ZodCheckMimeType",(e,r)=>{K.init(e,r);let n=new Set(r.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=r.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:r.mime,input:i.value.type,inst:e})}}),xa=d("$ZodCheckOverwrite",(e,r)=>{K.init(e,r),e._zod.check=n=>{n.value=r.tx(n.value)}})});var or,$a=I(()=>{or=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let i=r.split(`
|
|
843
|
+
`).filter(a=>a),t=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(t)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let r=Function,n=this?.args,t=[...(this?.content??[""]).map(o=>` ${o}`)];return new r(...n,t.join(`
|
|
844
|
+
`))}}});var ka,za=I(()=>{ka={major:4,minor:0,patch:0}});function Wa(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}function qu(e){if(!pn.test(e))return!1;let r=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return Wa(n)}function Hu(e,r=null){try{let n=e.split(".");if(n.length!==3)return!1;let[i]=n;if(!i)return!1;let t=JSON.parse(atob(i));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}function Ou(e,r,n){e.issues.length&&r.issues.push(...ue(n,e.issues)),r.value[n]=e.value}function hn(e,r,n){e.issues.length&&r.issues.push(...ue(n,e.issues)),r.value[n]=e.value}function Ru(e,r,n,i){e.issues.length?i[n]===void 0?n in i?r.value[n]=void 0:r.value[n]=e.value:r.issues.push(...ue(n,e.issues)):e.value===void 0?n in i&&(r.value[n]=void 0):r.value[n]=e.value}function Uu(e,r,n,i){for(let t of e)if(t.issues.length===0)return r.value=t.value,r;return r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(t=>t.issues.map(o=>me(o,i,Q())))}),r}function Sa(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(at(e)&&at(r)){let n=Object.keys(r),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),t={...e,...r};for(let o of i){let a=Sa(e[o],r[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};t[o]=a.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let t=e[i],o=r[i],a=Sa(t,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Eu(e,r,n){if(r.issues.length&&e.issues.push(...r.issues),n.issues.length&&e.issues.push(...n.issues),He(e))return e;let i=Sa(r.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}function vn(e,r,n){e.issues.length&&r.issues.push(...ue(n,e.issues)),r.value[n]=e.value}function Du(e,r,n,i,t,o,a){e.issues.length&&(Qt.has(typeof i)?n.issues.push(...ue(i,e.issues)):n.issues.push({origin:"map",code:"invalid_key",input:t,inst:o,issues:e.issues.map(s=>me(s,a,Q()))})),r.issues.length&&(Qt.has(typeof i)?n.issues.push(...ue(i,r.issues)):n.issues.push({origin:"map",code:"invalid_element",input:t,inst:o,key:i,issues:r.issues.map(s=>me(s,a,Q()))})),n.value.set(e.value,r.value)}function Au(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}function Cu(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}function Zu(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}function Lu(e,r,n){return He(e)?e:r.out._zod.run({value:e.value,issues:e.issues},n)}function Mu(e){return e.value=Object.freeze(e.value),e}function Fu(e,r,n,i){if(!e){let t={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(t.params=i._zod.def.params),r.issues.push(Ii(t))}}var O,Ve,H,wa,Ia,Pa,ja,Na,Ta,Oa,Ra,Ua,Ea,Da,Aa,Ca,Za,La,Ma,Fa,qa,Ha,Va,Ba,Ja,Ka,Ga,_n,Qa,ir,bn,Ya,Xa,es,ts,rs,dt,ns,os,is,ar,as,yn,ss,cs,Be,ls,us,ps,ds,ms,fs,sr,gs,hs,vs,_s,bs,ys,xs,$s,cr,ks,zs,Ss,ws,Is,lr=I(()=>{gn();ot();$a();un();dn();T();za();T();O=d("$ZodType",(e,r)=>{var n;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=ka;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let t of i)for(let o of t._zod.onattach)o(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(o,a,s)=>{let p=He(o),u;for(let m of a){if(m._zod.def.when){if(!m._zod.def.when(o))continue}else if(p)continue;let l=o.issues.length,_=m._zod.check(o);if(_ instanceof Promise&&s?.async===!1)throw new $e;if(u||_ instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await _,o.issues.length!==l&&(p||(p=He(o,l)))});else{if(o.issues.length===l)continue;p||(p=He(o,l))}}return u?u.then(()=>o):o};e._zod.run=(o,a)=>{let s=e._zod.parse(o,a);if(s instanceof Promise){if(a.async===!1)throw new $e;return s.then(p=>t(p,i,a))}return t(s,i,a)}}e["~standard"]={validate:t=>{try{let o=ut(e,t);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return nr(e,t).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Ve=d("$ZodString",(e,r)=>{O.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ki(e._zod.bag),e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),H=d("$ZodStringFormat",(e,r)=>{pt.init(e,r),Ve.init(e,r)}),wa=d("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Di),H.init(e,r)}),Ia=d("$ZodUUID",(e,r)=>{if(r.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(i===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=We(i))}else r.pattern??(r.pattern=We());H.init(e,r)}),Pa=d("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Ai),H.init(e,r)}),ja=d("$ZodURL",(e,r)=>{H.init(e,r),e._zod.check=n=>{try{let i=n.value,t=new URL(i),o=t.href;r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Hi.source,input:n.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:e,continue:!r.abort})),!i.endsWith("/")&&o.endsWith("/")?n.value=o.slice(0,-1):n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!r.abort})}}}),Na=d("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Ci()),H.init(e,r)}),Ta=d("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Ui),H.init(e,r)}),Oa=d("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=ji),H.init(e,r)}),Ra=d("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Ni),H.init(e,r)}),Ua=d("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Ti),H.init(e,r)}),Ea=d("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Oi),H.init(e,r)}),Da=d("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=Ri),H.init(e,r)}),Aa=d("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=Ji(r)),H.init(e,r)}),Ca=d("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Vi),H.init(e,r)}),Za=d("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Bi(r)),H.init(e,r)}),La=d("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Ei),H.init(e,r)}),Ma=d("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Zi),H.init(e,r),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format="ipv4"})}),Fa=d("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Li),H.init(e,r),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!r.abort})}}}),qa=d("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Mi),H.init(e,r)}),Ha=d("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Fi),H.init(e,r),e._zod.check=n=>{let[i,t]=n.value.split("/");try{if(!t)throw new Error;let o=Number(t);if(`${o}`!==t)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!r.abort})}}});Va=d("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=qi),H.init(e,r),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{Wa(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!r.abort})}});Ba=d("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=pn),H.init(e,r),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{qu(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!r.abort})}}),Ja=d("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Wi),H.init(e,r)});Ka=d("$ZodJWT",(e,r)=>{H.init(e,r),e._zod.check=n=>{Hu(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!r.abort})}}),Ga=d("$ZodCustomStringFormat",(e,r)=>{H.init(e,r),e._zod.check=n=>{r.fn(n.value)||n.issues.push({code:"invalid_format",format:r.format,input:n.value,inst:e,continue:!r.abort})}}),_n=d("$ZodNumber",(e,r)=>{O.init(e,r),e._zod.pattern=e._zod.bag.pattern??Yi,e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=Number(n.value)}catch{}let t=n.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return n;let o=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...o?{received:o}:{}}),n}}),Qa=d("$ZodNumber",(e,r)=>{ia.init(e,r),_n.init(e,r)}),ir=d("$ZodBoolean",(e,r)=>{O.init(e,r),e._zod.pattern=Xi,e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=!!n.value}catch{}let t=n.value;return typeof t=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),n}}),bn=d("$ZodBigInt",(e,r)=>{O.init(e,r),e._zod.pattern=Gi,e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Ya=d("$ZodBigInt",(e,r)=>{aa.init(e,r),bn.init(e,r)}),Xa=d("$ZodSymbol",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;return typeof t=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),n}}),es=d("$ZodUndefined",(e,r)=>{O.init(e,r),e._zod.pattern=ta,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),n}}),ts=d("$ZodNull",(e,r)=>{O.init(e,r),e._zod.pattern=ea,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let t=n.value;return t===null||n.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),n}}),rs=d("$ZodAny",(e,r)=>{O.init(e,r),e._zod.parse=n=>n}),dt=d("$ZodUnknown",(e,r)=>{O.init(e,r),e._zod.parse=n=>n}),ns=d("$ZodNever",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),os=d("$ZodVoid",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),n}}),is=d("$ZodDate",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=new Date(n.value)}catch{}let t=n.value,o=t instanceof Date;return o&&!Number.isNaN(t.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:t,...o?{received:"Invalid Date"}:{},inst:e}),n}});ar=d("$ZodArray",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!Array.isArray(t))return n.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),n;n.value=Array(t.length);let o=[];for(let a=0;a<t.length;a++){let s=t[a],p=r.element._zod.run({value:s,issues:[]},i);p instanceof Promise?o.push(p.then(u=>Ou(u,n,a))):Ou(p,n,a)}return o.length?Promise.all(o).then(()=>n):n}});as=d("$ZodObject",(e,r)=>{O.init(e,r);let n=Kt(()=>{let l=Object.keys(r.shape);for(let h of l)if(!(r.shape[h]instanceof O))throw new Error(`Invalid element at key "${h}": expected a Zod schema`);let _=zi(r.shape);return{shape:r.shape,keys:l,keySet:new Set(l),numKeys:l.length,optionalKeys:new Set(_)}});Z(e._zod,"propValues",()=>{let l=r.shape,_={};for(let h in l){let f=l[h]._zod;if(f.values){_[h]??(_[h]=new Set);for(let b of f.values)_[h].add(b)}}return _});let i=l=>{let _=new or(["shape","payload","ctx"]),h=n.value,f=y=>{let P=qe(y);return`shape[${P}]._zod.run({ value: input[${P}], issues: [] }, ctx)`};_.write("const input = payload.value;");let b=Object.create(null),$=0;for(let y of h.keys)b[y]=`key_${$++}`;_.write("const newResult = {}");for(let y of h.keys)if(h.optionalKeys.has(y)){let P=b[y];_.write(`const ${P} = ${f(y)};`);let U=qe(y);_.write(`
|
|
845
|
+
if (${P}.issues.length) {
|
|
846
|
+
if (input[${U}] === undefined) {
|
|
847
|
+
if (${U} in input) {
|
|
848
|
+
newResult[${U}] = undefined;
|
|
849
|
+
}
|
|
850
|
+
} else {
|
|
851
|
+
payload.issues = payload.issues.concat(
|
|
852
|
+
${P}.issues.map((iss) => ({
|
|
853
|
+
...iss,
|
|
854
|
+
path: iss.path ? [${U}, ...iss.path] : [${U}],
|
|
855
|
+
}))
|
|
856
|
+
);
|
|
857
|
+
}
|
|
858
|
+
} else if (${P}.value === undefined) {
|
|
859
|
+
if (${U} in input) newResult[${U}] = undefined;
|
|
860
|
+
} else {
|
|
861
|
+
newResult[${U}] = ${P}.value;
|
|
862
|
+
}
|
|
863
|
+
`)}else{let P=b[y];_.write(`const ${P} = ${f(y)};`),_.write(`
|
|
864
|
+
if (${P}.issues.length) payload.issues = payload.issues.concat(${P}.issues.map(iss => ({
|
|
865
|
+
...iss,
|
|
866
|
+
path: iss.path ? [${qe(y)}, ...iss.path] : [${qe(y)}]
|
|
867
|
+
})));`),_.write(`newResult[${qe(y)}] = ${P}.value`)}_.write("payload.value = newResult;"),_.write("return payload;");let N=_.compile();return(y,P)=>N(l,y,P)},t,o=it,a=!Vt.jitless,p=a&&$i.value,u=r.catchall,m;e._zod.parse=(l,_)=>{m??(m=n.value);let h=l.value;if(!o(h))return l.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),l;let f=[];if(a&&p&&_?.async===!1&&_.jitless!==!0)t||(t=i(r.shape)),l=t(l,_);else{l.value={};let P=m.shape;for(let U of m.keys){let de=P[U],Le=de._zod.run({value:h[U],issues:[]},_),Me=de._zod.optin==="optional"&&de._zod.optout==="optional";Le instanceof Promise?f.push(Le.then(et=>Me?Ru(et,l,U,h):hn(et,l,U))):Me?Ru(Le,l,U,h):hn(Le,l,U)}}if(!u)return f.length?Promise.all(f).then(()=>l):l;let b=[],$=m.keySet,N=u._zod,y=N.def.type;for(let P of Object.keys(h)){if($.has(P))continue;if(y==="never"){b.push(P);continue}let U=N.run({value:h[P],issues:[]},_);U instanceof Promise?f.push(U.then(de=>hn(de,l,P))):hn(U,l,P)}return b.length&&l.issues.push({code:"unrecognized_keys",keys:b,input:h,inst:e}),f.length?Promise.all(f).then(()=>l):l}});yn=d("$ZodUnion",(e,r)=>{O.init(e,r),Z(e._zod,"optin",()=>r.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Z(e._zod,"optout",()=>r.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Z(e._zod,"values",()=>{if(r.options.every(n=>n._zod.values))return new Set(r.options.flatMap(n=>Array.from(n._zod.values)))}),Z(e._zod,"pattern",()=>{if(r.options.every(n=>n._zod.pattern)){let n=r.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>Gt(i.source)).join("|")})$`)}}),e._zod.parse=(n,i)=>{let t=!1,o=[];for(let a of r.options){let s=a._zod.run({value:n.value,issues:[]},i);if(s instanceof Promise)o.push(s),t=!0;else{if(s.issues.length===0)return s;o.push(s)}}return t?Promise.all(o).then(a=>Uu(a,n,e,i)):Uu(o,n,e,i)}}),ss=d("$ZodDiscriminatedUnion",(e,r)=>{yn.init(e,r);let n=e._zod.parse;Z(e._zod,"propValues",()=>{let t={};for(let o of r.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(o)}"`);for(let[s,p]of Object.entries(a)){t[s]||(t[s]=new Set);for(let u of p)t[s].add(u)}}return t});let i=Kt(()=>{let t=r.options,o=new Map;for(let a of t){let s=a._zod.propValues[r.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(let p of s){if(o.has(p))throw new Error(`Duplicate discriminator value "${String(p)}"`);o.set(p,a)}}return o});e._zod.parse=(t,o)=>{let a=t.value;if(!it(a))return t.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),t;let s=i.value.get(a?.[r.discriminator]);return s?s._zod.run(t,o):r.unionFallback?n(t,o):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[r.discriminator],inst:e}),t)}}),cs=d("$ZodIntersection",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value,o=r.left._zod.run({value:t,issues:[]},i),a=r.right._zod.run({value:t,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([p,u])=>Eu(n,p,u)):Eu(n,o,a)}});Be=d("$ZodTuple",(e,r)=>{O.init(e,r);let n=r.items,i=n.length-[...n].reverse().findIndex(t=>t._zod.optin!=="optional");e._zod.parse=(t,o)=>{let a=t.value;if(!Array.isArray(a))return t.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),t;t.value=[];let s=[];if(!r.rest){let u=a.length>n.length,m=a.length<i-1;if(u||m)return t.issues.push({input:a,inst:e,origin:"array",...u?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length}}),t}let p=-1;for(let u of n){if(p++,p>=a.length&&p>=i)continue;let m=u._zod.run({value:a[p],issues:[]},o);m instanceof Promise?s.push(m.then(l=>vn(l,t,p))):vn(m,t,p)}if(r.rest){let u=a.slice(n.length);for(let m of u){p++;let l=r.rest._zod.run({value:m,issues:[]},o);l instanceof Promise?s.push(l.then(_=>vn(_,t,p))):vn(l,t,p)}}return s.length?Promise.all(s).then(()=>t):t}});ls=d("$ZodRecord",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!at(t))return n.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),n;let o=[];if(r.keyType._zod.values){let a=r.keyType._zod.values;n.value={};for(let p of a)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){let u=r.valueType._zod.run({value:t[p],issues:[]},i);u instanceof Promise?o.push(u.then(m=>{m.issues.length&&n.issues.push(...ue(p,m.issues)),n.value[p]=m.value})):(u.issues.length&&n.issues.push(...ue(p,u.issues)),n.value[p]=u.value)}let s;for(let p in t)a.has(p)||(s=s??[],s.push(p));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:s})}else{n.value={};for(let a of Reflect.ownKeys(t)){if(a==="__proto__")continue;let s=r.keyType._zod.run({value:a,issues:[]},i);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:s.issues.map(u=>me(u,i,Q())),input:a,path:[a],inst:e}),n.value[s.value]=s.value;continue}let p=r.valueType._zod.run({value:t[a],issues:[]},i);p instanceof Promise?o.push(p.then(u=>{u.issues.length&&n.issues.push(...ue(a,u.issues)),n.value[s.value]=u.value})):(p.issues.length&&n.issues.push(...ue(a,p.issues)),n.value[s.value]=p.value)}}return o.length?Promise.all(o).then(()=>n):n}}),us=d("$ZodMap",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!(t instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),n;let o=[];n.value=new Map;for(let[a,s]of t){let p=r.keyType._zod.run({value:a,issues:[]},i),u=r.valueType._zod.run({value:s,issues:[]},i);p instanceof Promise||u instanceof Promise?o.push(Promise.all([p,u]).then(([m,l])=>{Du(m,l,n,a,t,e,i)})):Du(p,u,n,a,t,e,i)}return o.length?Promise.all(o).then(()=>n):n}});ps=d("$ZodSet",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!(t instanceof Set))return n.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of t){let s=r.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(p=>Au(p,n))):Au(s,n)}return o.length?Promise.all(o).then(()=>n):n}});ds=d("$ZodEnum",(e,r)=>{O.init(e,r);let n=Jt(r.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(i=>Qt.has(typeof i)).map(i=>typeof i=="string"?je(i):i.toString()).join("|")})$`),e._zod.parse=(i,t)=>{let o=i.value;return e._zod.values.has(o)||i.issues.push({code:"invalid_value",values:n,input:o,inst:e}),i}}),ms=d("$ZodLiteral",(e,r)=>{O.init(e,r),e._zod.values=new Set(r.values),e._zod.pattern=new RegExp(`^(${r.values.map(n=>typeof n=="string"?je(n):n?n.toString():String(n)).join("|")})$`),e._zod.parse=(n,i)=>{let t=n.value;return e._zod.values.has(t)||n.issues.push({code:"invalid_value",values:r.values,input:t,inst:e}),n}}),fs=d("$ZodFile",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;return t instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),n}}),sr=d("$ZodTransform",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=r.transform(n.value,n);if(i.async)return(t instanceof Promise?t:Promise.resolve(t)).then(a=>(n.value=a,n));if(t instanceof Promise)throw new $e;return n.value=t,n}}),gs=d("$ZodOptional",(e,r)=>{O.init(e,r),e._zod.optin="optional",e._zod.optout="optional",Z(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),Z(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Gt(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>r.innerType._zod.optin==="optional"?r.innerType._zod.run(n,i):n.value===void 0?n:r.innerType._zod.run(n,i)}),hs=d("$ZodNullable",(e,r)=>{O.init(e,r),Z(e._zod,"optin",()=>r.innerType._zod.optin),Z(e._zod,"optout",()=>r.innerType._zod.optout),Z(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Gt(n.source)}|null)$`):void 0}),Z(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:r.innerType._zod.run(n,i)}),vs=d("$ZodDefault",(e,r)=>{O.init(e,r),e._zod.optin="optional",Z(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,i)=>{if(n.value===void 0)return n.value=r.defaultValue,n;let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>Cu(o,r)):Cu(t,r)}});_s=d("$ZodPrefault",(e,r)=>{O.init(e,r),e._zod.optin="optional",Z(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,i)=>(n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,i))}),bs=d("$ZodNonOptional",(e,r)=>{O.init(e,r),Z(e._zod,"values",()=>{let n=r.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>Zu(o,e)):Zu(t,e)}});ys=d("$ZodSuccess",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>(n.value=o.issues.length===0,n)):(n.value=t.issues.length===0,n)}}),xs=d("$ZodCatch",(e,r)=>{O.init(e,r),e._zod.optin="optional",Z(e._zod,"optout",()=>r.innerType._zod.optout),Z(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,i)=>{let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>(n.value=o.value,o.issues.length&&(n.value=r.catchValue({...n,error:{issues:o.issues.map(a=>me(a,i,Q()))},input:n.value}),n.issues=[]),n)):(n.value=t.value,t.issues.length&&(n.value=r.catchValue({...n,error:{issues:t.issues.map(o=>me(o,i,Q()))},input:n.value}),n.issues=[]),n)}}),$s=d("$ZodNaN",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),cr=d("$ZodPipe",(e,r)=>{O.init(e,r),Z(e._zod,"values",()=>r.in._zod.values),Z(e._zod,"optin",()=>r.in._zod.optin),Z(e._zod,"optout",()=>r.out._zod.optout),e._zod.parse=(n,i)=>{let t=r.in._zod.run(n,i);return t instanceof Promise?t.then(o=>Lu(o,r,i)):Lu(t,r,i)}});ks=d("$ZodReadonly",(e,r)=>{O.init(e,r),Z(e._zod,"propValues",()=>r.innerType._zod.propValues),Z(e._zod,"values",()=>r.innerType._zod.values),Z(e._zod,"optin",()=>r.innerType._zod.optin),Z(e._zod,"optout",()=>r.innerType._zod.optout),e._zod.parse=(n,i)=>{let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(Mu):Mu(t)}});zs=d("$ZodTemplateLiteral",(e,r)=>{O.init(e,r);let n=[];for(let i of r.parts)if(i instanceof O){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let t=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=t.startsWith("^")?1:0,a=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(o,a))}else if(i===null||ki.has(typeof i))n.push(je(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,t)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:"template_literal",pattern:e._zod.pattern.source}),i)}),Ss=d("$ZodPromise",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(t=>r.innerType._zod.run({value:t,issues:[]},i))}),ws=d("$ZodLazy",(e,r)=>{O.init(e,r),Z(e._zod,"innerType",()=>r.getter()),Z(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),Z(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),Z(e._zod,"optin",()=>e._zod.innerType._zod.optin),Z(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),Is=d("$ZodCustom",(e,r)=>{K.init(e,r),O.init(e,r),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,t=r.fn(i);if(t instanceof Promise)return t.then(o=>Fu(o,n,i,e));Fu(t,n,i,e)}})});function Vu(){return{localeError:sg()}}var sg,Bu=I(()=>{T();sg=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"};return t=>{switch(t.code){case"invalid_type":return`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${t.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${n(t.input)}`;case"invalid_value":return t.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${z(t.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${t.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${t.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${t.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${i[o.format]??t.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${t.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${t.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${t.keys.length>1?"\u0629":""}: ${v(t.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}}});function Ju(){return{localeError:cg()}}var cg,Ku=I(()=>{T();cg=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${t.expected}, daxil olan ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${z(t.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${o}${t.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${o}${t.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${i[o.format]??t.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${t.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${t.keys.length>1?"lar":""}: ${v(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${t.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}}});function Gu(e,r,n,i){let t=Math.abs(e),o=t%10,a=t%100;return a>=11&&a<=19?i:o===1?r:o>=2&&o<=4?n:i}function Qu(){return{localeError:lg()}}var lg,Yu=I(()=>{T();lg=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(t))return"\u043C\u0430\u0441\u0456\u045E";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"};return t=>{switch(t.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${t.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${n(t.input)}`;case"invalid_value":return t.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${z(t.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);if(a){let s=Number(t.maximum),p=Gu(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${t.maximum.toString()} ${p}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);if(a){let s=Number(t.minimum),p=Gu(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${t.minimum.toString()} ${p}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${i[o.format]??t.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${t.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${v(t.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${t.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}}});function Xu(){return{localeError:ug()}}var ug,ep=I(()=>{T();ug=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${t.expected}, s'ha rebut ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Valor inv\xE0lid: s'esperava ${z(t.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${v(t.values," o ")}`;case"too_big":{let o=t.inclusive?"com a m\xE0xim":"menys de",a=r(t.origin);return a?`Massa gran: s'esperava que ${t.origin??"el valor"} contingu\xE9s ${o} ${t.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?"com a m\xEDnim":"m\xE9s de",a=r(t.origin);return a?`Massa petit: s'esperava que ${t.origin} contingu\xE9s ${o} ${t.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${i[o.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${t.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${t.origin}`;default:return"Entrada inv\xE0lida"}}}});function tp(){return{localeError:pg()}}var pg,rp=I(()=>{T();pg=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(t))return"pole";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return t=>{switch(t.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${t.expected}, obdr\u017Eeno ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${z(t.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${o}${t.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${o}${t.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${i[o.format]??t.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${t.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${v(t.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${t.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${t.origin}`;default:return"Neplatn\xFD vstup"}}}});function np(){return{localeError:dg()}}var dg,op=I(()=>{T();dg=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"Zahl";case"object":{if(Array.isArray(t))return"Array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return t=>{switch(t.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${t.expected}, erhalten ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Ung\xFCltige Eingabe: erwartet ${z(t.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${o}${t.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${o}${t.maximum.toString()} ist`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Zu klein: erwartet, dass ${t.origin} ${o}${t.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${o}${t.minimum.toString()} ist`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${i[o.format]??t.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${v(t.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${t.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${t.origin}`;default:return"Ung\xFCltige Eingabe"}}}});function xn(){return{localeError:fg()}}var mg,fg,Ps=I(()=>{T();mg=e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},fg=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function r(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Invalid input: expected ${i.expected}, received ${mg(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${z(i.values[0])}`:`Invalid option: expected one of ${v(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",o=r(i.origin);return o?`Too big: expected ${i.origin??"value"} to have ${t}${i.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",o=r(i.origin);return o?`Too small: expected ${i.origin} to have ${t}${i.minimum.toString()} ${o.unit}`:`Too small: expected ${i.origin} to be ${t}${i.minimum.toString()}`}case"invalid_format":{let t=i;return t.format==="starts_with"?`Invalid string: must start with "${t.prefix}"`:t.format==="ends_with"?`Invalid string: must end with "${t.suffix}"`:t.format==="includes"?`Invalid string: must include "${t.includes}"`:t.format==="regex"?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${v(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}}});function ip(){return{localeError:hg()}}var gg,hg,ap=I(()=>{T();gg=e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},hg=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(i){return e[i]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return i=>{switch(i.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${i.expected}, ricevi\u011Dis ${gg(i.input)}`;case"invalid_value":return i.values.length===1?`Nevalida enigo: atendi\u011Dis ${z(i.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${v(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",o=r(i.origin);return o?`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${t}${i.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",o=r(i.origin);return o?`Tro malgranda: atendi\u011Dis ke ${i.origin} havu ${t}${i.minimum.toString()} ${o.unit}`:`Tro malgranda: atendi\u011Dis ke ${i.origin} estu ${t}${i.minimum.toString()}`}case"invalid_format":{let t=i;return t.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${t.prefix}"`:t.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${t.suffix}"`:t.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} \u015Dlosilo${i.keys.length>1?"j":""}: ${v(i.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}}});function sp(){return{localeError:vg()}}var vg,cp=I(()=>{T();vg=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(t))return"arreglo";if(t===null)return"nulo";if(Object.getPrototypeOf(t)!==Object.prototype)return t.constructor.name}}return o},i={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${t.expected}, recibido ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: se esperaba ${z(t.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Demasiado grande: se esperaba que ${t.origin??"valor"} tuviera ${o}${t.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${t.origin??"valor"} fuera ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Demasiado peque\xF1o: se esperaba que ${t.origin} tuviera ${o}${t.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${t.origin} fuera ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${i[o.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${t.origin}`;default:return"Entrada inv\xE1lida"}}}});function lp(){return{localeError:_g()}}var _g,up=I(()=>{T();_g=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(t))return"\u0622\u0631\u0627\u06CC\u0647";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"};return t=>{switch(t.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${t.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${n(t.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return t.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${z(t.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${v(t.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${i[o.format]??t.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${t.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${t.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${v(t.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${t.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${t.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}}});function pp(){return{localeError:bg()}}var bg,dp=I(()=>{T();bg=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return t=>{switch(t.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${t.expected}, oli ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${z(t.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${t.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${t.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${i[o.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${v(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}}});function mp(){return{localeError:yg()}}var yg,fp=I(()=>{T();yg=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"nombre";case"object":{if(Array.isArray(t))return"tableau";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return t=>{switch(t.code){case"invalid_type":return`Entr\xE9e invalide : ${t.expected} attendu, ${n(t.input)} re\xE7u`;case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : ${z(t.values[0])} attendu`:`Option invalide : une valeur parmi ${v(t.values,"|")} attendue`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Trop grand : ${t.origin??"valeur"} doit ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${t.origin??"valeur"} doit \xEAtre ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Trop petit : ${t.origin} doit ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Trop petit : ${t.origin} doit \xEAtre ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${i[o.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${v(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}}});function gp(){return{localeError:xg()}}var xg,hp=I(()=>{T();xg=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return t=>{switch(t.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${t.expected}, re\xE7u ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : attendu ${z(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"\u2264":"<",a=r(t.origin);return a?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${o}${t.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?"\u2265":">",a=r(t.origin);return a?`Trop petit : attendu que ${t.origin} ait ${o}${t.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${t.origin} soit ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${i[o.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${v(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}}});function vp(){return{localeError:$g()}}var $g,_p=I(()=>{T();$g=()=>{let e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return t=>{switch(t.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${t.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${n(t.input)}`;case"invalid_value":return t.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${z(t.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${t.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${t.maximum.toString()} ${a.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${t.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${t.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${t.minimum.toString()} ${a.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${t.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${o.prefix}"`:o.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${o.suffix}"`:o.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${o.includes}"`:o.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${o.pattern}`:`${i[o.format]??t.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${t.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${t.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${t.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${v(t.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${t.origin}`;case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${t.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}}});function bp(){return{localeError:kg()}}var kg,yp=I(()=>{T();kg=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(t))return"t\xF6mb";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"};return t=>{switch(t.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${t.expected}, a kapott \xE9rt\xE9k ${n(t.input)}`;case"invalid_value":return t.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${z(t.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`T\xFAl nagy: ${t.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${t.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${t.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} m\xE9rete t\xFAl kicsi ${o}${t.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} t\xFAl kicsi ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${i[o.format]??t.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${t.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${t.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${t.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}}});function xp(){return{localeError:zg()}}var zg,$p=I(()=>{T();zg=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input tidak valid: diharapkan ${t.expected}, diterima ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${z(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${o}${t.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Terlalu kecil: diharapkan ${t.origin} memiliki ${o}${t.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${i[o.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}}});function kp(){return{localeError:Sg()}}var Sg,zp=I(()=>{T();Sg=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"numero";case"object":{if(Array.isArray(t))return"vettore";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input non valido: atteso ${t.expected}, ricevuto ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Input non valido: atteso ${z(t.values[0])}`:`Opzione non valida: atteso uno tra ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Troppo grande: ${t.origin??"valore"} deve avere ${o}${t.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Troppo piccolo: ${t.origin} deve avere ${o}${t.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${t.origin} deve essere ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${i[o.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${v(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}}});function Sp(){return{localeError:wg()}}var wg,wp=I(()=>{T();wg=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(t))return"\u914D\u5217";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"};return t=>{switch(t.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${t.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${n(t.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return t.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${z(t.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${v(t.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=t.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=r(t.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=t.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=r(t.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${i[o.format]??t.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${t.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${t.keys.length>1?"\u7FA4":""}: ${v(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}}});function Ip(){return{localeError:Ig()}}var Ig,Pp=I(()=>{T();Ig=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(t))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(t===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"};return t=>{switch(t.code){case"invalid_type":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${n(t.input)}`;case"invalid_value":return t.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${z(t.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${t.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${o} ${t.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${i[o.format]??t.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${t.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${v(t.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}}});function jp(){return{localeError:Pg()}}var Pg,Np=I(()=>{T();Pg=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"};return t=>{switch(t.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${t.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${n(t.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return t.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${z(t.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${v(t.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=t.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=r(t.origin),p=s?.unit??"\uC694\uC18C";return s?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()}${p} ${o}${a}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()} ${o}${a}`}case"too_small":{let o=t.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=r(t.origin),p=s?.unit??"\uC694\uC18C";return s?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()}${p} ${o}${a}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${i[o.format]??t.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${t.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${v(t.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${t.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${t.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}}});function Tp(){return{localeError:jg()}}var jg,Op=I(()=>{T();jg=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(t))return"\u043D\u0438\u0437\u0430";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"};return t=>{switch(t.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Invalid input: expected ${z(t.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${t.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${t.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${i[o.format]??t.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${v(t.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${t.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${t.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}}});function Rp(){return{localeError:Ng()}}var Ng,Up=I(()=>{T();Ng=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"nombor";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input tidak sah: dijangka ${t.expected}, diterima ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${z(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Terlalu besar: dijangka ${t.origin??"nilai"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Terlalu kecil: dijangka ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${i[o.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${v(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}}});function Ep(){return{localeError:Tg()}}var Tg,Dp=I(()=>{T();Tg=()=>{let e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"getal";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return t=>{switch(t.code){case"invalid_type":return`Ongeldige invoer: verwacht ${t.expected}, ontving ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${z(t.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Te lang: verwacht dat ${t.origin??"waarde"} ${o}${t.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${t.origin??"waarde"} ${o}${t.maximum.toString()} is`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Te kort: verwacht dat ${t.origin} ${o}${t.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${t.origin} ${o}${t.minimum.toString()} is`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${i[o.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}}});function Ap(){return{localeError:Og()}}var Og,Cp=I(()=>{T();Og=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"tall";case"object":{if(Array.isArray(t))return"liste";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Ugyldig input: forventet ${t.expected}, fikk ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${z(t.values[0])}`:`Ugyldig valg: forventet en av ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${o}${t.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`For lite(n): forventet ${t.origin} til \xE5 ha ${o}${t.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${t.origin} til \xE5 ha ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${i[o.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${v(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}}});function Zp(){return{localeError:Rg()}}var Rg,Lp=I(()=>{T();Rg=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"numara";case"object":{if(Array.isArray(t))return"saf";if(t===null)return"gayb";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"};return t=>{switch(t.code){case"invalid_type":return`F\xE2sit giren: umulan ${t.expected}, al\u0131nan ${n(t.input)}`;case"invalid_value":return t.values.length===1?`F\xE2sit giren: umulan ${z(t.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${o}${t.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${o}${t.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${o}${t.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${o}${t.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=t;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${i[o.format]??t.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${t.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${t.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}}});function Mp(){return{localeError:Ug()}}var Ug,Fp=I(()=>{T();Ug=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(t))return"\u0627\u0631\u06D0";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"};return t=>{switch(t.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${t.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${n(t.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return t.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${z(t.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${v(t.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} \u0648\u064A`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${i[o.format]??t.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${t.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${t.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${v(t.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${t.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${t.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}}});function qp(){return{localeError:Eg()}}var Eg,Hp=I(()=>{T();Eg=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"liczba";case"object":{if(Array.isArray(t))return"tablica";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"};return t=>{switch(t.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${t.expected}, otrzymano ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${z(t.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${t.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${t.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${i[o.format]??t.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${t.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${t.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}}});function Wp(){return{localeError:Dg()}}var Dg,Vp=I(()=>{T();Dg=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(t))return"array";if(t===null)return"nulo";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${t.expected}, recebido ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: esperado ${z(t.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${o}${t.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Muito pequeno: esperado que ${t.origin} tivesse ${o}${t.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${i[o.format]??t.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${t.origin}`;default:return"Campo inv\xE1lido"}}}});function Bp(e,r,n,i){let t=Math.abs(e),o=t%10,a=t%100;return a>=11&&a<=19?i:o===1?r:o>=2&&o<=4?n:i}function Jp(){return{localeError:Ag()}}var Ag,Kp=I(()=>{T();Ag=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(t))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"};return t=>{switch(t.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${n(t.input)}`;case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${z(t.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);if(a){let s=Number(t.maximum),p=Bp(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${t.maximum.toString()} ${p}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);if(a){let s=Number(t.minimum),p=Bp(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${t.minimum.toString()} ${p}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${i[o.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${t.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0438":""}: ${v(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}}});function Gp(){return{localeError:Cg()}}var Cg,Qp=I(()=>{T();Cg=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(t))return"tabela";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"};return t=>{switch(t.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${t.expected}, prejeto ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${z(t.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} imelo ${o}${t.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${t.origin} imelo ${o}${t.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${i[o.format]??t.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${v(t.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}}});function Yp(){return{localeError:Zg()}}var Zg,Xp=I(()=>{T();Zg=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"antal";case"object":{if(Array.isArray(t))return"lista";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return t=>{switch(t.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${t.expected}, fick ${n(t.input)}`;case"invalid_value":return t.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${z(t.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${o}${t.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${t.origin??"v\xE4rdet"} att ha ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${o}${t.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${i[o.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${v(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${t.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}}});function ed(){return{localeError:Lg()}}var Lg,td=I(()=>{T();Lg=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(t))return"\u0B85\u0BA3\u0BBF";if(t===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n(t.input)}`;case"invalid_value":return t.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${z(t.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${v(t.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${t.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${t.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${o}${t.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${o}${t.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${i[o.format]??t.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${t.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${t.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${v(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}}});function rd(){return{localeError:Mg()}}var Mg,nd=I(()=>{T();Mg=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(t))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(t===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"};return t=>{switch(t.code){case"invalid_type":return`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${t.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${n(t.input)}`;case"invalid_value":return t.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${z(t.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=r(t.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=r(t.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${i[o.format]??t.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${t.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${v(t.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}}});function od(){return{localeError:qg()}}var Fg,qg,id=I(()=>{T();Fg=e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},qg=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(i){return e[i]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return i=>{switch(i.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${i.expected}, al\u0131nan ${Fg(i.input)}`;case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${z(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${v(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",o=r(i.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${t}${i.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",o=r(i.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${t}${i.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${t}${i.minimum.toString()}`}case"invalid_format":{let t=i;return t.format==="starts_with"?`Ge\xE7ersiz metin: "${t.prefix}" ile ba\u015Flamal\u0131`:t.format==="ends_with"?`Ge\xE7ersiz metin: "${t.suffix}" ile bitmeli`:t.format==="includes"?`Ge\xE7ersiz metin: "${t.includes}" i\xE7ermeli`:t.format==="regex"?`Ge\xE7ersiz metin: ${t.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[t.format]??i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${v(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}}});function ad(){return{localeError:Hg()}}var Hg,sd=I(()=>{T();Hg=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(t))return"\u043C\u0430\u0441\u0438\u0432";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"};return t=>{switch(t.code){case"invalid_type":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${t.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${n(t.input)}`;case"invalid_value":return t.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${z(t.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} \u0431\u0443\u0434\u0435 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${i[o.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0456":""}: ${v(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${t.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}}});function cd(){return{localeError:Wg()}}var Wg,ld=I(()=>{T();Wg=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(t))return"\u0622\u0631\u06D2";if(t===null)return"\u0646\u0644";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"};return t=>{switch(t.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${t.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${n(t.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return t.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${z(t.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${v(t.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${t.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${t.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u06D2 ${o}${t.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u0627 ${o}${t.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${i[o.format]??t.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${t.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${t.keys.length>1?"\u0632":""}: ${v(t.keys,"\u060C ")}`;case"invalid_key":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}}});function ud(){return{localeError:Vg()}}var Vg,pd=I(()=>{T();Vg=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(t))return"m\u1EA3ng";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"};return t=>{switch(t.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${t.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${n(t.input)}`;case"invalid_value":return t.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${z(t.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${i[o.format]??t.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${t.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${v(t.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}}});function dd(){return{localeError:Bg()}}var Bg,md=I(()=>{T();Bg=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(t))return"\u6570\u7EC4";if(t===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"};return t=>{switch(t.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${t.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${n(t.input)}`;case"invalid_value":return t.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${z(t.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${o}${t.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${o}${t.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${i[o.format]??t.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${t.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${v(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${t.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}}});function fd(){return{localeError:Jg()}}var Jg,gd=I(()=>{T();Jg=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(t){return e[t]??null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"};return t=>{switch(t.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${t.expected}\uFF0C\u4F46\u6536\u5230 ${n(t.input)}`;case"invalid_value":return t.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${z(t.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${v(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${o}${t.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${o}${t.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${i[o.format]??t.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${t.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${t.keys.length>1?"\u5011":""}\uFF1A${v(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}}});var mt={};Oe(mt,{ar:()=>Vu,az:()=>Ju,be:()=>Qu,ca:()=>Xu,cs:()=>tp,de:()=>np,en:()=>xn,eo:()=>ip,es:()=>sp,fa:()=>lp,fi:()=>pp,fr:()=>mp,frCA:()=>gp,he:()=>vp,hu:()=>bp,id:()=>xp,it:()=>kp,ja:()=>Sp,kh:()=>Ip,ko:()=>jp,mk:()=>Tp,ms:()=>Rp,nl:()=>Ep,no:()=>Ap,ota:()=>Zp,pl:()=>qp,ps:()=>Mp,pt:()=>Wp,ru:()=>Jp,sl:()=>Gp,sv:()=>Yp,ta:()=>ed,th:()=>rd,tr:()=>od,ua:()=>ad,ur:()=>cd,vi:()=>ud,zhCN:()=>dd,zhTW:()=>fd});var js=I(()=>{Bu();Ku();Yu();ep();rp();op();Ps();ap();cp();up();dp();fp();hp();_p();yp();$p();zp();wp();Pp();Np();Op();Up();Dp();Cp();Lp();Fp();Hp();Vp();Kp();Qp();Xp();td();nd();id();sd();ld();pd();md();gd()});function ur(){return new ft}var $n,kn,ft,be,Ns=I(()=>{$n=Symbol("ZodOutput"),kn=Symbol("ZodInput"),ft=class{constructor(){this._map=new Map,this._idmap=new Map}add(r,...n){let i=n[0];if(this._map.set(r,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,r)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(r){let n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){let n=r._zod.parent;if(n){let i={...this.get(n)??{}};return delete i.id,{...i,...this._map.get(r)}}return this._map.get(r)}has(r){return this._map.has(r)}};be=ur()});function Ts(e,r){return new e({type:"string",...x(r)})}function Os(e,r){return new e({type:"string",coerce:!0,...x(r)})}function zn(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...x(r)})}function pr(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...x(r)})}function Sn(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...x(r)})}function wn(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...x(r)})}function In(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...x(r)})}function Pn(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...x(r)})}function jn(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...x(r)})}function Nn(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...x(r)})}function Tn(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...x(r)})}function On(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...x(r)})}function Rn(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...x(r)})}function Un(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...x(r)})}function En(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...x(r)})}function Dn(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...x(r)})}function An(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...x(r)})}function Cn(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...x(r)})}function Zn(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...x(r)})}function Ln(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...x(r)})}function Mn(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...x(r)})}function Fn(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...x(r)})}function qn(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...x(r)})}function Hn(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...x(r)})}function Rs(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...x(r)})}function Us(e,r){return new e({type:"string",format:"date",check:"string_format",...x(r)})}function Es(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...x(r)})}function Ds(e,r){return new e({type:"string",format:"duration",check:"string_format",...x(r)})}function As(e,r){return new e({type:"number",checks:[],...x(r)})}function Cs(e,r){return new e({type:"number",coerce:!0,checks:[],...x(r)})}function Zs(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...x(r)})}function Ls(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...x(r)})}function Ms(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...x(r)})}function Fs(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...x(r)})}function qs(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...x(r)})}function Hs(e,r){return new e({type:"boolean",...x(r)})}function Ws(e,r){return new e({type:"boolean",coerce:!0,...x(r)})}function Vs(e,r){return new e({type:"bigint",...x(r)})}function Bs(e,r){return new e({type:"bigint",coerce:!0,...x(r)})}function Js(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...x(r)})}function Ks(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...x(r)})}function Gs(e,r){return new e({type:"symbol",...x(r)})}function Qs(e,r){return new e({type:"undefined",...x(r)})}function Ys(e,r){return new e({type:"null",...x(r)})}function Xs(e){return new e({type:"any"})}function gt(e){return new e({type:"unknown"})}function ec(e,r){return new e({type:"never",...x(r)})}function tc(e,r){return new e({type:"void",...x(r)})}function rc(e,r){return new e({type:"date",...x(r)})}function nc(e,r){return new e({type:"date",coerce:!0,...x(r)})}function oc(e,r){return new e({type:"nan",...x(r)})}function ke(e,r){return new mn({check:"less_than",...x(r),value:e,inclusive:!1})}function fe(e,r){return new mn({check:"less_than",...x(r),value:e,inclusive:!0})}function ze(e,r){return new fn({check:"greater_than",...x(r),value:e,inclusive:!1})}function ce(e,r){return new fn({check:"greater_than",...x(r),value:e,inclusive:!0})}function Vn(e){return ze(0,e)}function Bn(e){return ke(0,e)}function Jn(e){return fe(0,e)}function Kn(e){return ce(0,e)}function De(e,r){return new oa({check:"multiple_of",...x(r),value:e})}function Je(e,r){return new sa({check:"max_size",...x(r),maximum:e})}function Ae(e,r){return new ca({check:"min_size",...x(r),minimum:e})}function ht(e,r){return new la({check:"size_equals",...x(r),size:e})}function Ke(e,r){return new ua({check:"max_length",...x(r),maximum:e})}function Ne(e,r){return new pa({check:"min_length",...x(r),minimum:e})}function Ge(e,r){return new da({check:"length_equals",...x(r),length:e})}function vt(e,r){return new ma({check:"string_format",format:"regex",...x(r),pattern:e})}function _t(e){return new fa({check:"string_format",format:"lowercase",...x(e)})}function bt(e){return new ga({check:"string_format",format:"uppercase",...x(e)})}function yt(e,r){return new ha({check:"string_format",format:"includes",...x(r),includes:e})}function xt(e,r){return new va({check:"string_format",format:"starts_with",...x(r),prefix:e})}function $t(e,r){return new _a({check:"string_format",format:"ends_with",...x(r),suffix:e})}function Gn(e,r,n){return new ba({check:"property",property:e,schema:r,...x(n)})}function kt(e,r){return new ya({check:"mime_type",mime:e,...x(r)})}function Se(e){return new xa({check:"overwrite",tx:e})}function zt(e){return Se(r=>r.normalize(e))}function St(){return Se(e=>e.trim())}function wt(){return Se(e=>e.toLowerCase())}function It(){return Se(e=>e.toUpperCase())}function dr(e,r,n){return new e({type:"array",element:r,...x(n)})}function Kg(e,r,n){return new e({type:"union",options:r,...x(n)})}function Gg(e,r,n,i){return new e({type:"union",options:n,discriminator:r,...x(i)})}function Qg(e,r,n){return new e({type:"intersection",left:r,right:n})}function ic(e,r,n,i){let t=n instanceof O,o=t?i:n,a=t?n:null;return new e({type:"tuple",items:r,rest:a,...x(o)})}function Yg(e,r,n,i){return new e({type:"record",keyType:r,valueType:n,...x(i)})}function Xg(e,r,n,i){return new e({type:"map",keyType:r,valueType:n,...x(i)})}function eh(e,r,n){return new e({type:"set",valueType:r,...x(n)})}function th(e,r,n){let i=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:i,...x(n)})}function rh(e,r,n){return new e({type:"enum",entries:r,...x(n)})}function nh(e,r,n){return new e({type:"literal",values:Array.isArray(r)?r:[r],...x(n)})}function ac(e,r){return new e({type:"file",...x(r)})}function oh(e,r){return new e({type:"transform",transform:r})}function ih(e,r){return new e({type:"optional",innerType:r})}function ah(e,r){return new e({type:"nullable",innerType:r})}function sh(e,r,n){return new e({type:"default",innerType:r,get defaultValue(){return typeof n=="function"?n():n}})}function ch(e,r,n){return new e({type:"nonoptional",innerType:r,...x(n)})}function lh(e,r){return new e({type:"success",innerType:r})}function uh(e,r,n){return new e({type:"catch",innerType:r,catchValue:typeof n=="function"?n:()=>n})}function ph(e,r,n){return new e({type:"pipe",in:r,out:n})}function dh(e,r){return new e({type:"readonly",innerType:r})}function mh(e,r,n){return new e({type:"template_literal",parts:r,...x(n)})}function fh(e,r){return new e({type:"lazy",getter:r})}function gh(e,r){return new e({type:"promise",innerType:r})}function sc(e,r,n){let i=x(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:r,...i})}function cc(e,r,n){return new e({type:"custom",check:"custom",fn:r,...x(n)})}function lc(e,r){let n=x(r),i=n.truthy??["true","1","yes","on","y","enabled"],t=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(f=>typeof f=="string"?f.toLowerCase():f),t=t.map(f=>typeof f=="string"?f.toLowerCase():f));let o=new Set(i),a=new Set(t),s=e.Pipe??cr,p=e.Boolean??ir,u=e.String??Ve,m=e.Transform??sr,l=new m({type:"transform",transform:(f,b)=>{let $=f;return n.case!=="sensitive"&&($=$.toLowerCase()),o.has($)?!0:a.has($)?!1:(b.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:b.value,inst:l}),{})},error:n.error}),_=new s({type:"pipe",in:new u({type:"string",error:n.error}),out:l,error:n.error});return new s({type:"pipe",in:_,out:new p({type:"boolean",error:n.error}),error:n.error})}function uc(e,r,n,i={}){let t=x(i),o={...x(i),check:"string_format",type:"string",format:r,fn:typeof n=="function"?n:s=>n.test(s),...t};return n instanceof RegExp&&(o.pattern=n),new e(o)}var Wn,pc=I(()=>{gn();lr();T();Wn={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function Yn(e){return new Qn({type:"function",input:Array.isArray(e?.input)?ic(Be,e?.input):e?.input??dr(ar,gt(dt)),output:e?.output??gt(dt)})}var Qn,hd=I(()=>{pc();un();lr();lr();Qn=class{constructor(r){this._def=r,this.def=r}implement(r){if(typeof r!="function")throw new Error("implement() must be called with a function");let n=((...i)=>{let t=this._def.input?tr(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(t))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=r(...t);return this._def.output?tr(this._def.output,o,void 0,{callee:n}):o});return n}implementAsync(r){if(typeof r!="function")throw new Error("implement() must be called with a function");let n=(async(...i)=>{let t=this._def.input?await rr(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(t))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=await r(...t);return this._def.output?rr(this._def.output,o,void 0,{callee:n}):o});return n}input(...r){let n=this.constructor;return Array.isArray(r[0])?new n({type:"function",input:new Be({type:"tuple",items:r[0],rest:r[1]}),output:this._def.output}):new n({type:"function",input:r[0],output:this._def.output})}output(r){let n=this.constructor;return new n({type:"function",input:this._def.input,output:r})}}});function Xn(e,r){if(e instanceof ft){let i=new mr(r),t={};for(let s of e._idmap.entries()){let[p,u]=s;i.process(u)}let o={},a={registry:e,uri:r?.uri,defs:t};for(let s of e._idmap.entries()){let[p,u]=s;o[p]=i.emit(u,{...r,external:a})}if(Object.keys(t).length>0){let s=i.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[s]:t}}return{schemas:o}}let n=new mr(r);return n.process(e),n.emit(e,r)}function ee(e,r){let n=r??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let t=e._zod.def;switch(t.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return ee(t.element,n);case"object":{for(let o in t.shape)if(ee(t.shape[o],n))return!0;return!1}case"union":{for(let o of t.options)if(ee(o,n))return!0;return!1}case"intersection":return ee(t.left,n)||ee(t.right,n);case"tuple":{for(let o of t.items)if(ee(o,n))return!0;return!!(t.rest&&ee(t.rest,n))}case"record":return ee(t.keyType,n)||ee(t.valueType,n);case"map":return ee(t.keyType,n)||ee(t.valueType,n);case"set":return ee(t.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return ee(t.innerType,n);case"lazy":return ee(t.getter(),n);case"default":return ee(t.innerType,n);case"prefault":return ee(t.innerType,n);case"custom":return!1;case"transform":return!0;case"pipe":return ee(t.in,n)||ee(t.out,n);case"success":return!1;case"catch":return!1;default:}throw new Error(`Unknown schema type: ${t.type}`)}var mr,vd=I(()=>{Ns();T();mr=class{constructor(r){this.counter=0,this.metadataRegistry=r?.metadata??be,this.target=r?.target??"draft-2020-12",this.unrepresentable=r?.unrepresentable??"throw",this.override=r?.override??(()=>{}),this.io=r?.io??"output",this.seen=new Map}process(r,n={path:[],schemaPath:[]}){var i;let t=r._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=this.seen.get(r);if(a)return a.count++,n.schemaPath.includes(r)&&(a.cycle=n.path),a.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(r,s);let p=r._zod.toJSONSchema?.();if(p)s.schema=p;else{let l={...n,schemaPath:[...n.schemaPath,r],path:n.path},_=r._zod.parent;if(_)s.ref=_,this.process(_,l),this.seen.get(_).isParent=!0;else{let h=s.schema;switch(t.type){case"string":{let f=h;f.type="string";let{minimum:b,maximum:$,format:N,patterns:y,contentEncoding:P}=r._zod.bag;if(typeof b=="number"&&(f.minLength=b),typeof $=="number"&&(f.maxLength=$),N&&(f.format=o[N]??N,f.format===""&&delete f.format),P&&(f.contentEncoding=P),y&&y.size>0){let U=[...y];U.length===1?f.pattern=U[0].source:U.length>1&&(s.schema.allOf=[...U.map(de=>({...this.target==="draft-7"?{type:"string"}:{},pattern:de.source}))])}break}case"number":{let f=h,{minimum:b,maximum:$,format:N,multipleOf:y,exclusiveMaximum:P,exclusiveMinimum:U}=r._zod.bag;typeof N=="string"&&N.includes("int")?f.type="integer":f.type="number",typeof U=="number"&&(f.exclusiveMinimum=U),typeof b=="number"&&(f.minimum=b,typeof U=="number"&&(U>=b?delete f.minimum:delete f.exclusiveMinimum)),typeof P=="number"&&(f.exclusiveMaximum=P),typeof $=="number"&&(f.maximum=$,typeof P=="number"&&(P<=$?delete f.maximum:delete f.exclusiveMaximum)),typeof y=="number"&&(f.multipleOf=y);break}case"boolean":{let f=h;f.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{h.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{h.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let f=h,{minimum:b,maximum:$}=r._zod.bag;typeof b=="number"&&(f.minItems=b),typeof $=="number"&&(f.maxItems=$),f.type="array",f.items=this.process(t.element,{...l,path:[...l.path,"items"]});break}case"object":{let f=h;f.type="object",f.properties={};let b=t.shape;for(let y in b)f.properties[y]=this.process(b[y],{...l,path:[...l.path,"properties",y]});let $=new Set(Object.keys(b)),N=new Set([...$].filter(y=>{let P=t.shape[y]._zod;return this.io==="input"?P.optin===void 0:P.optout===void 0}));N.size>0&&(f.required=Array.from(N)),t.catchall?._zod.def.type==="never"?f.additionalProperties=!1:t.catchall?t.catchall&&(f.additionalProperties=this.process(t.catchall,{...l,path:[...l.path,"additionalProperties"]})):this.io==="output"&&(f.additionalProperties=!1);break}case"union":{let f=h;f.anyOf=t.options.map((b,$)=>this.process(b,{...l,path:[...l.path,"anyOf",$]}));break}case"intersection":{let f=h,b=this.process(t.left,{...l,path:[...l.path,"allOf",0]}),$=this.process(t.right,{...l,path:[...l.path,"allOf",1]}),N=P=>"allOf"in P&&Object.keys(P).length===1,y=[...N(b)?b.allOf:[b],...N($)?$.allOf:[$]];f.allOf=y;break}case"tuple":{let f=h;f.type="array";let b=t.items.map((y,P)=>this.process(y,{...l,path:[...l.path,"prefixItems",P]}));if(this.target==="draft-2020-12"?f.prefixItems=b:f.items=b,t.rest){let y=this.process(t.rest,{...l,path:[...l.path,"items"]});this.target==="draft-2020-12"?f.items=y:f.additionalItems=y}t.rest&&(f.items=this.process(t.rest,{...l,path:[...l.path,"items"]}));let{minimum:$,maximum:N}=r._zod.bag;typeof $=="number"&&(f.minItems=$),typeof N=="number"&&(f.maxItems=N);break}case"record":{let f=h;f.type="object",f.propertyNames=this.process(t.keyType,{...l,path:[...l.path,"propertyNames"]}),f.additionalProperties=this.process(t.valueType,{...l,path:[...l.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let f=h,b=Jt(t.entries);b.every($=>typeof $=="number")&&(f.type="number"),b.every($=>typeof $=="string")&&(f.type="string"),f.enum=b;break}case"literal":{let f=h,b=[];for(let $ of t.values)if($===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof $=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");b.push(Number($))}else b.push($);if(b.length!==0)if(b.length===1){let $=b[0];f.type=$===null?"null":typeof $,f.const=$}else b.every($=>typeof $=="number")&&(f.type="number"),b.every($=>typeof $=="string")&&(f.type="string"),b.every($=>typeof $=="boolean")&&(f.type="string"),b.every($=>$===null)&&(f.type="null"),f.enum=b;break}case"file":{let f=h,b={type:"string",format:"binary",contentEncoding:"binary"},{minimum:$,maximum:N,mime:y}=r._zod.bag;$!==void 0&&(b.minLength=$),N!==void 0&&(b.maxLength=N),y?y.length===1?(b.contentMediaType=y[0],Object.assign(f,b)):f.anyOf=y.map(P=>({...b,contentMediaType:P})):Object.assign(f,b);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let f=this.process(t.innerType,l);h.anyOf=[f,{type:"null"}];break}case"nonoptional":{this.process(t.innerType,l),s.ref=t.innerType;break}case"success":{let f=h;f.type="boolean";break}case"default":{this.process(t.innerType,l),s.ref=t.innerType,h.default=JSON.parse(JSON.stringify(t.defaultValue));break}case"prefault":{this.process(t.innerType,l),s.ref=t.innerType,this.io==="input"&&(h._prefault=JSON.parse(JSON.stringify(t.defaultValue)));break}case"catch":{this.process(t.innerType,l),s.ref=t.innerType;let f;try{f=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}h.default=f;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let f=h,b=r._zod.pattern;if(!b)throw new Error("Pattern not found in template literal");f.type="string",f.pattern=b.source;break}case"pipe":{let f=this.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;this.process(f,l),s.ref=f;break}case"readonly":{this.process(t.innerType,l),s.ref=t.innerType,h.readOnly=!0;break}case"promise":{this.process(t.innerType,l),s.ref=t.innerType;break}case"optional":{this.process(t.innerType,l),s.ref=t.innerType;break}case"lazy":{let f=r._zod.innerType;this.process(f,l),s.ref=f;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}default:}}}let u=this.metadataRegistry.get(r);return u&&Object.assign(s.schema,u),this.io==="input"&&ee(r)&&(delete s.schema.examples,delete s.schema.default),this.io==="input"&&s.schema._prefault&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,this.seen.get(r).schema}emit(r,n){let i={cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0},t=this.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=m=>{let l=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){let b=i.external.registry.get(m[0])?.id,$=i.external.uri??(y=>y);if(b)return{ref:$(b)};let N=m[1].defId??m[1].schema.id??`schema${this.counter++}`;return m[1].defId=N,{defId:N,ref:`${$("__shared")}#/${l}/${N}`}}if(m[1]===t)return{ref:"#"};let h=`#/${l}/`,f=m[1].schema.id??`__schema${this.counter++}`;return{defId:f,ref:h+f}},a=m=>{if(m[1].schema.$ref)return;let l=m[1],{ref:_,defId:h}=o(m);l.def={...l.schema},h&&(l.defId=h);let f=l.schema;for(let b in f)delete f[b];f.$ref=_};if(i.cycles==="throw")for(let m of this.seen.entries()){let l=m[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
|
|
868
|
+
|
|
869
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let m of this.seen.entries()){let l=m[1];if(r===m[0]){a(m);continue}if(i.external){let h=i.external.registry.get(m[0])?.id;if(r!==m[0]&&h){a(m);continue}}if(this.metadataRegistry.get(m[0])?.id){a(m);continue}if(l.cycle){a(m);continue}if(l.count>1&&i.reused==="ref"){a(m);continue}}let s=(m,l)=>{let _=this.seen.get(m),h=_.def??_.schema,f={...h};if(_.ref===null)return;let b=_.ref;if(_.ref=null,b){s(b,l);let $=this.seen.get(b).schema;$.$ref&&l.target==="draft-7"?(h.allOf=h.allOf??[],h.allOf.push($)):(Object.assign(h,$),Object.assign(h,f))}_.isParent||this.override({zodSchema:m,jsonSchema:h,path:_.path??[]})};for(let m of[...this.seen.entries()].reverse())s(m[0],{target:this.target});let p={};if(this.target==="draft-2020-12"?p.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?p.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),i.external?.uri){let m=i.external.registry.get(r)?.id;if(!m)throw new Error("Schema is missing an `id` property");p.$id=i.external.uri(m)}Object.assign(p,t.def);let u=i.external?.defs??{};for(let m of this.seen.entries()){let l=m[1];l.def&&l.defId&&(u[l.defId]=l.def)}i.external||Object.keys(u).length>0&&(this.target==="draft-2020-12"?p.$defs=u:p.definitions=u);try{return JSON.parse(JSON.stringify(p))}catch{throw new Error("Error converting schema to JSON.")}}}});var _d={};var bd=I(()=>{});var we={};Oe(we,{$ZodAny:()=>rs,$ZodArray:()=>ar,$ZodAsyncError:()=>$e,$ZodBase64:()=>Va,$ZodBase64URL:()=>Ba,$ZodBigInt:()=>bn,$ZodBigIntFormat:()=>Ya,$ZodBoolean:()=>ir,$ZodCIDRv4:()=>qa,$ZodCIDRv6:()=>Ha,$ZodCUID:()=>Oa,$ZodCUID2:()=>Ra,$ZodCatch:()=>xs,$ZodCheck:()=>K,$ZodCheckBigIntFormat:()=>aa,$ZodCheckEndsWith:()=>_a,$ZodCheckGreaterThan:()=>fn,$ZodCheckIncludes:()=>ha,$ZodCheckLengthEquals:()=>da,$ZodCheckLessThan:()=>mn,$ZodCheckLowerCase:()=>fa,$ZodCheckMaxLength:()=>ua,$ZodCheckMaxSize:()=>sa,$ZodCheckMimeType:()=>ya,$ZodCheckMinLength:()=>pa,$ZodCheckMinSize:()=>ca,$ZodCheckMultipleOf:()=>oa,$ZodCheckNumberFormat:()=>ia,$ZodCheckOverwrite:()=>xa,$ZodCheckProperty:()=>ba,$ZodCheckRegex:()=>ma,$ZodCheckSizeEquals:()=>la,$ZodCheckStartsWith:()=>va,$ZodCheckStringFormat:()=>pt,$ZodCheckUpperCase:()=>ga,$ZodCustom:()=>Is,$ZodCustomStringFormat:()=>Ga,$ZodDate:()=>is,$ZodDefault:()=>vs,$ZodDiscriminatedUnion:()=>ss,$ZodE164:()=>Ja,$ZodEmail:()=>Pa,$ZodEmoji:()=>Na,$ZodEnum:()=>ds,$ZodError:()=>er,$ZodFile:()=>fs,$ZodFunction:()=>Qn,$ZodGUID:()=>wa,$ZodIPv4:()=>Ma,$ZodIPv6:()=>Fa,$ZodISODate:()=>Ca,$ZodISODateTime:()=>Aa,$ZodISODuration:()=>La,$ZodISOTime:()=>Za,$ZodIntersection:()=>cs,$ZodJWT:()=>Ka,$ZodKSUID:()=>Da,$ZodLazy:()=>ws,$ZodLiteral:()=>ms,$ZodMap:()=>us,$ZodNaN:()=>$s,$ZodNanoID:()=>Ta,$ZodNever:()=>ns,$ZodNonOptional:()=>bs,$ZodNull:()=>ts,$ZodNullable:()=>hs,$ZodNumber:()=>_n,$ZodNumberFormat:()=>Qa,$ZodObject:()=>as,$ZodOptional:()=>gs,$ZodPipe:()=>cr,$ZodPrefault:()=>_s,$ZodPromise:()=>Ss,$ZodReadonly:()=>ks,$ZodRealError:()=>st,$ZodRecord:()=>ls,$ZodRegistry:()=>ft,$ZodSet:()=>ps,$ZodString:()=>Ve,$ZodStringFormat:()=>H,$ZodSuccess:()=>ys,$ZodSymbol:()=>Xa,$ZodTemplateLiteral:()=>zs,$ZodTransform:()=>sr,$ZodTuple:()=>Be,$ZodType:()=>O,$ZodULID:()=>Ua,$ZodURL:()=>ja,$ZodUUID:()=>Ia,$ZodUndefined:()=>es,$ZodUnion:()=>yn,$ZodUnknown:()=>dt,$ZodVoid:()=>os,$ZodXID:()=>Ea,$brand:()=>tn,$constructor:()=>d,$input:()=>kn,$output:()=>$n,Doc:()=>or,JSONSchema:()=>_d,JSONSchemaGenerator:()=>mr,NEVER:()=>en,TimePrecision:()=>Wn,_any:()=>Xs,_array:()=>dr,_base64:()=>Mn,_base64url:()=>Fn,_bigint:()=>Vs,_boolean:()=>Hs,_catch:()=>uh,_cidrv4:()=>Zn,_cidrv6:()=>Ln,_coercedBigint:()=>Bs,_coercedBoolean:()=>Ws,_coercedDate:()=>nc,_coercedNumber:()=>Cs,_coercedString:()=>Os,_cuid:()=>On,_cuid2:()=>Rn,_custom:()=>sc,_date:()=>rc,_default:()=>sh,_discriminatedUnion:()=>Gg,_e164:()=>qn,_email:()=>zn,_emoji:()=>Nn,_endsWith:()=>$t,_enum:()=>th,_file:()=>ac,_float32:()=>Ls,_float64:()=>Ms,_gt:()=>ze,_gte:()=>ce,_guid:()=>pr,_includes:()=>yt,_int:()=>Zs,_int32:()=>Fs,_int64:()=>Js,_intersection:()=>Qg,_ipv4:()=>An,_ipv6:()=>Cn,_isoDate:()=>Us,_isoDateTime:()=>Rs,_isoDuration:()=>Ds,_isoTime:()=>Es,_jwt:()=>Hn,_ksuid:()=>Dn,_lazy:()=>fh,_length:()=>Ge,_literal:()=>nh,_lowercase:()=>_t,_lt:()=>ke,_lte:()=>fe,_map:()=>Xg,_max:()=>fe,_maxLength:()=>Ke,_maxSize:()=>Je,_mime:()=>kt,_min:()=>ce,_minLength:()=>Ne,_minSize:()=>Ae,_multipleOf:()=>De,_nan:()=>oc,_nanoid:()=>Tn,_nativeEnum:()=>rh,_negative:()=>Bn,_never:()=>ec,_nonnegative:()=>Kn,_nonoptional:()=>ch,_nonpositive:()=>Jn,_normalize:()=>zt,_null:()=>Ys,_nullable:()=>ah,_number:()=>As,_optional:()=>ih,_overwrite:()=>Se,_parse:()=>an,_parseAsync:()=>sn,_pipe:()=>ph,_positive:()=>Vn,_promise:()=>gh,_property:()=>Gn,_readonly:()=>dh,_record:()=>Yg,_refine:()=>cc,_regex:()=>vt,_safeParse:()=>cn,_safeParseAsync:()=>ln,_set:()=>eh,_size:()=>ht,_startsWith:()=>xt,_string:()=>Ts,_stringFormat:()=>uc,_stringbool:()=>lc,_success:()=>lh,_symbol:()=>Gs,_templateLiteral:()=>mh,_toLowerCase:()=>wt,_toUpperCase:()=>It,_transform:()=>oh,_trim:()=>St,_tuple:()=>ic,_uint32:()=>qs,_uint64:()=>Ks,_ulid:()=>Un,_undefined:()=>Qs,_union:()=>Kg,_unknown:()=>gt,_uppercase:()=>bt,_url:()=>jn,_uuid:()=>Sn,_uuidv4:()=>wn,_uuidv6:()=>In,_uuidv7:()=>Pn,_void:()=>tc,_xid:()=>En,clone:()=>le,config:()=>Q,flattenError:()=>ct,formatError:()=>lt,function:()=>Yn,globalConfig:()=>Vt,globalRegistry:()=>be,isValidBase64:()=>Wa,isValidBase64URL:()=>qu,isValidJWT:()=>Hu,locales:()=>mt,parse:()=>tr,parseAsync:()=>rr,prettifyError:()=>on,regexes:()=>Ee,registry:()=>ur,safeParse:()=>ut,safeParseAsync:()=>nr,toDotPath:()=>Su,toJSONSchema:()=>Xn,treeifyError:()=>nn,util:()=>S,version:()=>ka});var pe=I(()=>{ot();un();Pi();lr();gn();za();T();dn();js();Ns();$a();hd();pc();vd();bd()});var dc=I(()=>{pe()});var Qe={};Oe(Qe,{ZodISODate:()=>gr,ZodISODateTime:()=>fr,ZodISODuration:()=>vr,ZodISOTime:()=>hr,date:()=>fc,datetime:()=>mc,duration:()=>hc,time:()=>gc});function mc(e){return Rs(fr,e)}function fc(e){return Us(gr,e)}function gc(e){return Es(hr,e)}function hc(e){return Ds(vr,e)}var fr,gr,hr,vr,ro=I(()=>{pe();no();fr=d("ZodISODateTime",(e,r)=>{Aa.init(e,r),W.init(e,r)});gr=d("ZodISODate",(e,r)=>{Ca.init(e,r),W.init(e,r)});hr=d("ZodISOTime",(e,r)=>{Za.init(e,r),W.init(e,r)});vr=d("ZodISODuration",(e,r)=>{La.init(e,r),W.init(e,r)})});var kd,zd,Ye,vc=I(()=>{pe();pe();kd=(e,r)=>{er.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>lt(e,n)},flatten:{value:n=>ct(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},zd=d("ZodError",kd),Ye=d("ZodError",kd,{Parent:Error})});var oo,io,ao,so,_c=I(()=>{pe();vc();oo=an(Ye),io=sn(Ye),ao=cn(Ye),so=ln(Ye)});function g(e){return Ts(jt,e)}function Sd(e){return zn(uo,e)}function wd(e){return pr(_r,e)}function Id(e){return Sn(Ie,e)}function Pd(e){return wn(Ie,e)}function jd(e){return In(Ie,e)}function Nd(e){return Pn(Ie,e)}function Td(e){return jn(po,e)}function Od(e){return Nn(mo,e)}function Rd(e){return Tn(fo,e)}function Ud(e){return On(go,e)}function Ed(e){return Rn(ho,e)}function Dd(e){return Un(vo,e)}function Ad(e){return En(_o,e)}function Cd(e){return Dn(bo,e)}function Zd(e){return An(yo,e)}function Ld(e){return Cn(xo,e)}function Md(e){return Zn($o,e)}function Fd(e){return Ln(ko,e)}function qd(e){return Mn(zo,e)}function Hd(e){return Fn(So,e)}function Wd(e){return qn(wo,e)}function Vd(e){return Hn(Io,e)}function Bd(e,r,n={}){return uc(bc,e,r,n)}function C(e){return As(Nt,e)}function co(e){return Zs(Xe,e)}function Jd(e){return Ls(Xe,e)}function Kd(e){return Ms(Xe,e)}function Gd(e){return Fs(Xe,e)}function Qd(e){return qs(Xe,e)}function Y(e){return Hs(Tt,e)}function Yd(e){return Vs(Ot,e)}function Xd(e){return Js(Po,e)}function em(e){return Ks(Po,e)}function tm(e){return Gs(yc,e)}function rm(e){return Qs(xc,e)}function xr(e){return Ys($c,e)}function nm(){return Xs(kc)}function B(){return gt(zc)}function $r(e){return ec(Sc,e)}function om(e){return tc(wc,e)}function im(e){return rc(kr,e)}function D(e,r){return dr(Ic,e,r)}function am(e){let r=e._zod.def.shape;return j(Object.keys(r))}function w(e,r){let n={type:"object",get shape(){return S.assignProp(this,"shape",{...e}),this.shape},...S.normalizeParams(r)};return new zr(n)}function sm(e,r){return new zr({type:"object",get shape(){return S.assignProp(this,"shape",{...e}),this.shape},catchall:$r(),...S.normalizeParams(r)})}function ne(e,r){return new zr({type:"object",get shape(){return S.assignProp(this,"shape",{...e}),this.shape},catchall:B(),...S.normalizeParams(r)})}function F(e,r){return new jo({type:"union",options:e,...S.normalizeParams(r)})}function Sr(e,r,n){return new Pc({type:"union",options:r,discriminator:e,...S.normalizeParams(n)})}function Rt(e,r){return new jc({type:"intersection",left:e,right:r})}function cm(e,r,n){let i=r instanceof O,t=i?n:r,o=i?r:null;return new Nc({type:"tuple",items:e,rest:o,...S.normalizeParams(t)})}function q(e,r,n){return new No({type:"record",keyType:e,valueType:r,...S.normalizeParams(n)})}function lm(e,r,n){return new No({type:"record",keyType:F([e,$r()]),valueType:r,...S.normalizeParams(n)})}function um(e,r,n){return new Tc({type:"map",keyType:e,valueType:r,...S.normalizeParams(n)})}function pm(e,r){return new Oc({type:"set",valueType:e,...S.normalizeParams(r)})}function se(e,r){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Pt({type:"enum",entries:n,...S.normalizeParams(r)})}function dm(e,r){return new Pt({type:"enum",entries:e,...S.normalizeParams(r)})}function j(e,r){return new Rc({type:"literal",values:Array.isArray(e)?e:[e],...S.normalizeParams(r)})}function mm(e){return ac(Uc,e)}function Oo(e){return new To({type:"transform",transform:e})}function V(e){return new Ro({type:"optional",innerType:e})}function br(e){return new Ec({type:"nullable",innerType:e})}function fm(e){return V(br(e))}function Ac(e,r){return new Dc({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():r}})}function Zc(e,r){return new Cc({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():r}})}function Lc(e,r){return new Uo({type:"nonoptional",innerType:e,...S.normalizeParams(r)})}function gm(e){return new Mc({type:"success",innerType:e})}function qc(e,r){return new Fc({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}function hm(e){return oc(Hc,e)}function yr(e,r){return new Eo({type:"pipe",in:e,out:r})}function Vc(e){return new Wc({type:"readonly",innerType:e})}function vm(e,r){return new Bc({type:"template_literal",parts:e,...S.normalizeParams(r)})}function Kc(e){return new Jc({type:"lazy",getter:e})}function _m(e){return new Gc({type:"promise",innerType:e})}function Qc(e){let r=new K({check:"custom"});return r._zod.check=e,r}function Do(e,r){return sc(wr,e??(()=>!0),r)}function Yc(e,r={}){return cc(wr,e,r)}function Xc(e){let r=Qc(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(S.issue(i,n.value,r._zod.def));else{let t=i;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=n.value),t.inst??(t.inst=r),t.continue??(t.continue=!r._zod.def.abort),n.issues.push(S.issue(t))}},e(n.value,n)));return r}function bm(e,r={error:`Input not instance of ${e.name}`}){let n=new wr({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...S.normalizeParams(r)});return n._zod.bag.Class=e,n}function xm(e){let r=Kc(()=>F([g(e),C(),Y(),xr(),D(r),q(g(),r)]));return r}function Ir(e,r){return yr(Oo(e),r)}var E,lo,jt,W,uo,_r,Ie,po,mo,fo,go,ho,vo,_o,bo,yo,xo,$o,ko,zo,So,wo,Io,bc,Nt,Xe,Tt,Ot,Po,yc,xc,$c,kc,zc,Sc,wc,kr,Ic,zr,jo,Pc,jc,Nc,No,Tc,Oc,Pt,Rc,Uc,To,Ro,Ec,Dc,Cc,Uo,Mc,Fc,Hc,Eo,Wc,Bc,Jc,Gc,wr,ym,no=I(()=>{pe();pe();dc();ro();_c();E=d("ZodType",(e,r)=>(O.init(e,r),e.def=r,Object.defineProperty(e,"_def",{value:r}),e.check=(...n)=>e.clone({...r,checks:[...r.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),e.clone=(n,i)=>le(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>oo(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>ao(e,n,i),e.parseAsync=async(n,i)=>io(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>so(e,n,i),e.spa=e.safeParseAsync,e.refine=(n,i)=>e.check(Yc(n,i)),e.superRefine=n=>e.check(Xc(n)),e.overwrite=n=>e.check(Se(n)),e.optional=()=>V(e),e.nullable=()=>br(e),e.nullish=()=>V(br(e)),e.nonoptional=n=>Lc(e,n),e.array=()=>D(e),e.or=n=>F([e,n]),e.and=n=>Rt(e,n),e.transform=n=>yr(e,Oo(n)),e.default=n=>Ac(e,n),e.prefault=n=>Zc(e,n),e.catch=n=>qc(e,n),e.pipe=n=>yr(e,n),e.readonly=()=>Vc(e),e.describe=n=>{let i=e.clone();return be.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return be.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return be.get(e);let i=e.clone();return be.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),lo=d("_ZodString",(e,r)=>{Ve.init(e,r),E.init(e,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(vt(...i)),e.includes=(...i)=>e.check(yt(...i)),e.startsWith=(...i)=>e.check(xt(...i)),e.endsWith=(...i)=>e.check($t(...i)),e.min=(...i)=>e.check(Ne(...i)),e.max=(...i)=>e.check(Ke(...i)),e.length=(...i)=>e.check(Ge(...i)),e.nonempty=(...i)=>e.check(Ne(1,...i)),e.lowercase=i=>e.check(_t(i)),e.uppercase=i=>e.check(bt(i)),e.trim=()=>e.check(St()),e.normalize=(...i)=>e.check(zt(...i)),e.toLowerCase=()=>e.check(wt()),e.toUpperCase=()=>e.check(It())}),jt=d("ZodString",(e,r)=>{Ve.init(e,r),lo.init(e,r),e.email=n=>e.check(zn(uo,n)),e.url=n=>e.check(jn(po,n)),e.jwt=n=>e.check(Hn(Io,n)),e.emoji=n=>e.check(Nn(mo,n)),e.guid=n=>e.check(pr(_r,n)),e.uuid=n=>e.check(Sn(Ie,n)),e.uuidv4=n=>e.check(wn(Ie,n)),e.uuidv6=n=>e.check(In(Ie,n)),e.uuidv7=n=>e.check(Pn(Ie,n)),e.nanoid=n=>e.check(Tn(fo,n)),e.guid=n=>e.check(pr(_r,n)),e.cuid=n=>e.check(On(go,n)),e.cuid2=n=>e.check(Rn(ho,n)),e.ulid=n=>e.check(Un(vo,n)),e.base64=n=>e.check(Mn(zo,n)),e.base64url=n=>e.check(Fn(So,n)),e.xid=n=>e.check(En(_o,n)),e.ksuid=n=>e.check(Dn(bo,n)),e.ipv4=n=>e.check(An(yo,n)),e.ipv6=n=>e.check(Cn(xo,n)),e.cidrv4=n=>e.check(Zn($o,n)),e.cidrv6=n=>e.check(Ln(ko,n)),e.e164=n=>e.check(qn(wo,n)),e.datetime=n=>e.check(mc(n)),e.date=n=>e.check(fc(n)),e.time=n=>e.check(gc(n)),e.duration=n=>e.check(hc(n))});W=d("ZodStringFormat",(e,r)=>{H.init(e,r),lo.init(e,r)}),uo=d("ZodEmail",(e,r)=>{Pa.init(e,r),W.init(e,r)});_r=d("ZodGUID",(e,r)=>{wa.init(e,r),W.init(e,r)});Ie=d("ZodUUID",(e,r)=>{Ia.init(e,r),W.init(e,r)});po=d("ZodURL",(e,r)=>{ja.init(e,r),W.init(e,r)});mo=d("ZodEmoji",(e,r)=>{Na.init(e,r),W.init(e,r)});fo=d("ZodNanoID",(e,r)=>{Ta.init(e,r),W.init(e,r)});go=d("ZodCUID",(e,r)=>{Oa.init(e,r),W.init(e,r)});ho=d("ZodCUID2",(e,r)=>{Ra.init(e,r),W.init(e,r)});vo=d("ZodULID",(e,r)=>{Ua.init(e,r),W.init(e,r)});_o=d("ZodXID",(e,r)=>{Ea.init(e,r),W.init(e,r)});bo=d("ZodKSUID",(e,r)=>{Da.init(e,r),W.init(e,r)});yo=d("ZodIPv4",(e,r)=>{Ma.init(e,r),W.init(e,r)});xo=d("ZodIPv6",(e,r)=>{Fa.init(e,r),W.init(e,r)});$o=d("ZodCIDRv4",(e,r)=>{qa.init(e,r),W.init(e,r)});ko=d("ZodCIDRv6",(e,r)=>{Ha.init(e,r),W.init(e,r)});zo=d("ZodBase64",(e,r)=>{Va.init(e,r),W.init(e,r)});So=d("ZodBase64URL",(e,r)=>{Ba.init(e,r),W.init(e,r)});wo=d("ZodE164",(e,r)=>{Ja.init(e,r),W.init(e,r)});Io=d("ZodJWT",(e,r)=>{Ka.init(e,r),W.init(e,r)});bc=d("ZodCustomStringFormat",(e,r)=>{Ga.init(e,r),W.init(e,r)});Nt=d("ZodNumber",(e,r)=>{_n.init(e,r),E.init(e,r),e.gt=(i,t)=>e.check(ze(i,t)),e.gte=(i,t)=>e.check(ce(i,t)),e.min=(i,t)=>e.check(ce(i,t)),e.lt=(i,t)=>e.check(ke(i,t)),e.lte=(i,t)=>e.check(fe(i,t)),e.max=(i,t)=>e.check(fe(i,t)),e.int=i=>e.check(co(i)),e.safe=i=>e.check(co(i)),e.positive=i=>e.check(ze(0,i)),e.nonnegative=i=>e.check(ce(0,i)),e.negative=i=>e.check(ke(0,i)),e.nonpositive=i=>e.check(fe(0,i)),e.multipleOf=(i,t)=>e.check(De(i,t)),e.step=(i,t)=>e.check(De(i,t)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});Xe=d("ZodNumberFormat",(e,r)=>{Qa.init(e,r),Nt.init(e,r)});Tt=d("ZodBoolean",(e,r)=>{ir.init(e,r),E.init(e,r)});Ot=d("ZodBigInt",(e,r)=>{bn.init(e,r),E.init(e,r),e.gte=(i,t)=>e.check(ce(i,t)),e.min=(i,t)=>e.check(ce(i,t)),e.gt=(i,t)=>e.check(ze(i,t)),e.gte=(i,t)=>e.check(ce(i,t)),e.min=(i,t)=>e.check(ce(i,t)),e.lt=(i,t)=>e.check(ke(i,t)),e.lte=(i,t)=>e.check(fe(i,t)),e.max=(i,t)=>e.check(fe(i,t)),e.positive=i=>e.check(ze(BigInt(0),i)),e.negative=i=>e.check(ke(BigInt(0),i)),e.nonpositive=i=>e.check(fe(BigInt(0),i)),e.nonnegative=i=>e.check(ce(BigInt(0),i)),e.multipleOf=(i,t)=>e.check(De(i,t));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});Po=d("ZodBigIntFormat",(e,r)=>{Ya.init(e,r),Ot.init(e,r)});yc=d("ZodSymbol",(e,r)=>{Xa.init(e,r),E.init(e,r)});xc=d("ZodUndefined",(e,r)=>{es.init(e,r),E.init(e,r)});$c=d("ZodNull",(e,r)=>{ts.init(e,r),E.init(e,r)});kc=d("ZodAny",(e,r)=>{rs.init(e,r),E.init(e,r)});zc=d("ZodUnknown",(e,r)=>{dt.init(e,r),E.init(e,r)});Sc=d("ZodNever",(e,r)=>{ns.init(e,r),E.init(e,r)});wc=d("ZodVoid",(e,r)=>{os.init(e,r),E.init(e,r)});kr=d("ZodDate",(e,r)=>{is.init(e,r),E.init(e,r),e.min=(i,t)=>e.check(ce(i,t)),e.max=(i,t)=>e.check(fe(i,t));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});Ic=d("ZodArray",(e,r)=>{ar.init(e,r),E.init(e,r),e.element=r.element,e.min=(n,i)=>e.check(Ne(n,i)),e.nonempty=n=>e.check(Ne(1,n)),e.max=(n,i)=>e.check(Ke(n,i)),e.length=(n,i)=>e.check(Ge(n,i)),e.unwrap=()=>e.element});zr=d("ZodObject",(e,r)=>{as.init(e,r),E.init(e,r),S.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>se(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:B()}),e.loose=()=>e.clone({...e._zod.def,catchall:B()}),e.strict=()=>e.clone({...e._zod.def,catchall:$r()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>S.extend(e,n),e.merge=n=>S.merge(e,n),e.pick=n=>S.pick(e,n),e.omit=n=>S.omit(e,n),e.partial=(...n)=>S.partial(Ro,e,n[0]),e.required=(...n)=>S.required(Uo,e,n[0])});jo=d("ZodUnion",(e,r)=>{yn.init(e,r),E.init(e,r),e.options=r.options});Pc=d("ZodDiscriminatedUnion",(e,r)=>{jo.init(e,r),ss.init(e,r)});jc=d("ZodIntersection",(e,r)=>{cs.init(e,r),E.init(e,r)});Nc=d("ZodTuple",(e,r)=>{Be.init(e,r),E.init(e,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});No=d("ZodRecord",(e,r)=>{ls.init(e,r),E.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});Tc=d("ZodMap",(e,r)=>{us.init(e,r),E.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});Oc=d("ZodSet",(e,r)=>{ps.init(e,r),E.init(e,r),e.min=(...n)=>e.check(Ae(...n)),e.nonempty=n=>e.check(Ae(1,n)),e.max=(...n)=>e.check(Je(...n)),e.size=(...n)=>e.check(ht(...n))});Pt=d("ZodEnum",(e,r)=>{ds.init(e,r),E.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);let n=new Set(Object.keys(r.entries));e.extract=(i,t)=>{let o={};for(let a of i)if(n.has(a))o[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Pt({...r,checks:[],...S.normalizeParams(t),entries:o})},e.exclude=(i,t)=>{let o={...r.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Pt({...r,checks:[],...S.normalizeParams(t),entries:o})}});Rc=d("ZodLiteral",(e,r)=>{ms.init(e,r),E.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});Uc=d("ZodFile",(e,r)=>{fs.init(e,r),E.init(e,r),e.min=(n,i)=>e.check(Ae(n,i)),e.max=(n,i)=>e.check(Je(n,i)),e.mime=(n,i)=>e.check(kt(Array.isArray(n)?n:[n],i))});To=d("ZodTransform",(e,r)=>{sr.init(e,r),E.init(e,r),e._zod.parse=(n,i)=>{n.addIssue=o=>{if(typeof o=="string")n.issues.push(S.issue(o,n.value,r));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),a.continue??(a.continue=!0),n.issues.push(S.issue(a))}};let t=r.transform(n.value,n);return t instanceof Promise?t.then(o=>(n.value=o,n)):(n.value=t,n)}});Ro=d("ZodOptional",(e,r)=>{gs.init(e,r),E.init(e,r),e.unwrap=()=>e._zod.def.innerType});Ec=d("ZodNullable",(e,r)=>{hs.init(e,r),E.init(e,r),e.unwrap=()=>e._zod.def.innerType});Dc=d("ZodDefault",(e,r)=>{vs.init(e,r),E.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});Cc=d("ZodPrefault",(e,r)=>{_s.init(e,r),E.init(e,r),e.unwrap=()=>e._zod.def.innerType});Uo=d("ZodNonOptional",(e,r)=>{bs.init(e,r),E.init(e,r),e.unwrap=()=>e._zod.def.innerType});Mc=d("ZodSuccess",(e,r)=>{ys.init(e,r),E.init(e,r),e.unwrap=()=>e._zod.def.innerType});Fc=d("ZodCatch",(e,r)=>{xs.init(e,r),E.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});Hc=d("ZodNaN",(e,r)=>{$s.init(e,r),E.init(e,r)});Eo=d("ZodPipe",(e,r)=>{cr.init(e,r),E.init(e,r),e.in=r.in,e.out=r.out});Wc=d("ZodReadonly",(e,r)=>{ks.init(e,r),E.init(e,r)});Bc=d("ZodTemplateLiteral",(e,r)=>{zs.init(e,r),E.init(e,r)});Jc=d("ZodLazy",(e,r)=>{ws.init(e,r),E.init(e,r),e.unwrap=()=>e._zod.def.getter()});Gc=d("ZodPromise",(e,r)=>{Ss.init(e,r),E.init(e,r),e.unwrap=()=>e._zod.def.innerType});wr=d("ZodCustom",(e,r)=>{Is.init(e,r),E.init(e,r)});ym=(...e)=>lc({Pipe:Eo,Boolean:Tt,String:jt,Transform:To},...e)});function km(e){Q({customError:e})}function zm(){return Q().customError}var $m,Sm=I(()=>{pe();$m={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"}});var Ao={};Oe(Ao,{bigint:()=>xh,boolean:()=>yh,date:()=>$h,number:()=>bh,string:()=>_h});function _h(e){return Os(jt,e)}function bh(e){return Cs(Nt,e)}function yh(e){return Ws(Tt,e)}function xh(e){return Bs(Ot,e)}function $h(e){return nc(kr,e)}var wm=I(()=>{pe();no()});var c={};Oe(c,{$brand:()=>tn,$input:()=>kn,$output:()=>$n,NEVER:()=>en,TimePrecision:()=>Wn,ZodAny:()=>kc,ZodArray:()=>Ic,ZodBase64:()=>zo,ZodBase64URL:()=>So,ZodBigInt:()=>Ot,ZodBigIntFormat:()=>Po,ZodBoolean:()=>Tt,ZodCIDRv4:()=>$o,ZodCIDRv6:()=>ko,ZodCUID:()=>go,ZodCUID2:()=>ho,ZodCatch:()=>Fc,ZodCustom:()=>wr,ZodCustomStringFormat:()=>bc,ZodDate:()=>kr,ZodDefault:()=>Dc,ZodDiscriminatedUnion:()=>Pc,ZodE164:()=>wo,ZodEmail:()=>uo,ZodEmoji:()=>mo,ZodEnum:()=>Pt,ZodError:()=>zd,ZodFile:()=>Uc,ZodGUID:()=>_r,ZodIPv4:()=>yo,ZodIPv6:()=>xo,ZodISODate:()=>gr,ZodISODateTime:()=>fr,ZodISODuration:()=>vr,ZodISOTime:()=>hr,ZodIntersection:()=>jc,ZodIssueCode:()=>$m,ZodJWT:()=>Io,ZodKSUID:()=>bo,ZodLazy:()=>Jc,ZodLiteral:()=>Rc,ZodMap:()=>Tc,ZodNaN:()=>Hc,ZodNanoID:()=>fo,ZodNever:()=>Sc,ZodNonOptional:()=>Uo,ZodNull:()=>$c,ZodNullable:()=>Ec,ZodNumber:()=>Nt,ZodNumberFormat:()=>Xe,ZodObject:()=>zr,ZodOptional:()=>Ro,ZodPipe:()=>Eo,ZodPrefault:()=>Cc,ZodPromise:()=>Gc,ZodReadonly:()=>Wc,ZodRealError:()=>Ye,ZodRecord:()=>No,ZodSet:()=>Oc,ZodString:()=>jt,ZodStringFormat:()=>W,ZodSuccess:()=>Mc,ZodSymbol:()=>yc,ZodTemplateLiteral:()=>Bc,ZodTransform:()=>To,ZodTuple:()=>Nc,ZodType:()=>E,ZodULID:()=>vo,ZodURL:()=>po,ZodUUID:()=>Ie,ZodUndefined:()=>xc,ZodUnion:()=>jo,ZodUnknown:()=>zc,ZodVoid:()=>wc,ZodXID:()=>_o,_ZodString:()=>lo,_default:()=>Ac,any:()=>nm,array:()=>D,base64:()=>qd,base64url:()=>Hd,bigint:()=>Yd,boolean:()=>Y,catch:()=>qc,check:()=>Qc,cidrv4:()=>Md,cidrv6:()=>Fd,clone:()=>le,coerce:()=>Ao,config:()=>Q,core:()=>we,cuid:()=>Ud,cuid2:()=>Ed,custom:()=>Do,date:()=>im,discriminatedUnion:()=>Sr,e164:()=>Wd,email:()=>Sd,emoji:()=>Od,endsWith:()=>$t,enum:()=>se,file:()=>mm,flattenError:()=>ct,float32:()=>Jd,float64:()=>Kd,formatError:()=>lt,function:()=>Yn,getErrorMap:()=>zm,globalRegistry:()=>be,gt:()=>ze,gte:()=>ce,guid:()=>wd,includes:()=>yt,instanceof:()=>bm,int:()=>co,int32:()=>Gd,int64:()=>Xd,intersection:()=>Rt,ipv4:()=>Zd,ipv6:()=>Ld,iso:()=>Qe,json:()=>xm,jwt:()=>Vd,keyof:()=>am,ksuid:()=>Cd,lazy:()=>Kc,length:()=>Ge,literal:()=>j,locales:()=>mt,looseObject:()=>ne,lowercase:()=>_t,lt:()=>ke,lte:()=>fe,map:()=>um,maxLength:()=>Ke,maxSize:()=>Je,mime:()=>kt,minLength:()=>Ne,minSize:()=>Ae,multipleOf:()=>De,nan:()=>hm,nanoid:()=>Rd,nativeEnum:()=>dm,negative:()=>Bn,never:()=>$r,nonnegative:()=>Kn,nonoptional:()=>Lc,nonpositive:()=>Jn,normalize:()=>zt,null:()=>xr,nullable:()=>br,nullish:()=>fm,number:()=>C,object:()=>w,optional:()=>V,overwrite:()=>Se,parse:()=>oo,parseAsync:()=>io,partialRecord:()=>lm,pipe:()=>yr,positive:()=>Vn,prefault:()=>Zc,preprocess:()=>Ir,prettifyError:()=>on,promise:()=>_m,property:()=>Gn,readonly:()=>Vc,record:()=>q,refine:()=>Yc,regex:()=>vt,regexes:()=>Ee,registry:()=>ur,safeParse:()=>ao,safeParseAsync:()=>so,set:()=>pm,setErrorMap:()=>km,size:()=>ht,startsWith:()=>xt,strictObject:()=>sm,string:()=>g,stringFormat:()=>Bd,stringbool:()=>ym,success:()=>gm,superRefine:()=>Xc,symbol:()=>tm,templateLiteral:()=>vm,toJSONSchema:()=>Xn,toLowerCase:()=>wt,toUpperCase:()=>It,transform:()=>Oo,treeifyError:()=>nn,trim:()=>St,tuple:()=>cm,uint32:()=>Qd,uint64:()=>em,ulid:()=>Dd,undefined:()=>rm,union:()=>F,unknown:()=>B,uppercase:()=>bt,url:()=>Td,uuid:()=>Id,uuidv4:()=>Pd,uuidv6:()=>jd,uuidv7:()=>Nd,void:()=>om,xid:()=>Ad});var el=I(()=>{pe();no();dc();vc();_c();Sm();pe();Ps();pe();js();ro();ro();wm();Q(xn())});var Im,tl=I(()=>{el();el();Im=c});var rl={};Oe(rl,{$brand:()=>tn,$input:()=>kn,$output:()=>$n,NEVER:()=>en,TimePrecision:()=>Wn,ZodAny:()=>kc,ZodArray:()=>Ic,ZodBase64:()=>zo,ZodBase64URL:()=>So,ZodBigInt:()=>Ot,ZodBigIntFormat:()=>Po,ZodBoolean:()=>Tt,ZodCIDRv4:()=>$o,ZodCIDRv6:()=>ko,ZodCUID:()=>go,ZodCUID2:()=>ho,ZodCatch:()=>Fc,ZodCustom:()=>wr,ZodCustomStringFormat:()=>bc,ZodDate:()=>kr,ZodDefault:()=>Dc,ZodDiscriminatedUnion:()=>Pc,ZodE164:()=>wo,ZodEmail:()=>uo,ZodEmoji:()=>mo,ZodEnum:()=>Pt,ZodError:()=>zd,ZodFile:()=>Uc,ZodGUID:()=>_r,ZodIPv4:()=>yo,ZodIPv6:()=>xo,ZodISODate:()=>gr,ZodISODateTime:()=>fr,ZodISODuration:()=>vr,ZodISOTime:()=>hr,ZodIntersection:()=>jc,ZodIssueCode:()=>$m,ZodJWT:()=>Io,ZodKSUID:()=>bo,ZodLazy:()=>Jc,ZodLiteral:()=>Rc,ZodMap:()=>Tc,ZodNaN:()=>Hc,ZodNanoID:()=>fo,ZodNever:()=>Sc,ZodNonOptional:()=>Uo,ZodNull:()=>$c,ZodNullable:()=>Ec,ZodNumber:()=>Nt,ZodNumberFormat:()=>Xe,ZodObject:()=>zr,ZodOptional:()=>Ro,ZodPipe:()=>Eo,ZodPrefault:()=>Cc,ZodPromise:()=>Gc,ZodReadonly:()=>Wc,ZodRealError:()=>Ye,ZodRecord:()=>No,ZodSet:()=>Oc,ZodString:()=>jt,ZodStringFormat:()=>W,ZodSuccess:()=>Mc,ZodSymbol:()=>yc,ZodTemplateLiteral:()=>Bc,ZodTransform:()=>To,ZodTuple:()=>Nc,ZodType:()=>E,ZodULID:()=>vo,ZodURL:()=>po,ZodUUID:()=>Ie,ZodUndefined:()=>xc,ZodUnion:()=>jo,ZodUnknown:()=>zc,ZodVoid:()=>wc,ZodXID:()=>_o,_ZodString:()=>lo,_default:()=>Ac,any:()=>nm,array:()=>D,base64:()=>qd,base64url:()=>Hd,bigint:()=>Yd,boolean:()=>Y,catch:()=>qc,check:()=>Qc,cidrv4:()=>Md,cidrv6:()=>Fd,clone:()=>le,coerce:()=>Ao,config:()=>Q,core:()=>we,cuid:()=>Ud,cuid2:()=>Ed,custom:()=>Do,date:()=>im,default:()=>kh,discriminatedUnion:()=>Sr,e164:()=>Wd,email:()=>Sd,emoji:()=>Od,endsWith:()=>$t,enum:()=>se,file:()=>mm,flattenError:()=>ct,float32:()=>Jd,float64:()=>Kd,formatError:()=>lt,function:()=>Yn,getErrorMap:()=>zm,globalRegistry:()=>be,gt:()=>ze,gte:()=>ce,guid:()=>wd,includes:()=>yt,instanceof:()=>bm,int:()=>co,int32:()=>Gd,int64:()=>Xd,intersection:()=>Rt,ipv4:()=>Zd,ipv6:()=>Ld,iso:()=>Qe,json:()=>xm,jwt:()=>Vd,keyof:()=>am,ksuid:()=>Cd,lazy:()=>Kc,length:()=>Ge,literal:()=>j,locales:()=>mt,looseObject:()=>ne,lowercase:()=>_t,lt:()=>ke,lte:()=>fe,map:()=>um,maxLength:()=>Ke,maxSize:()=>Je,mime:()=>kt,minLength:()=>Ne,minSize:()=>Ae,multipleOf:()=>De,nan:()=>hm,nanoid:()=>Rd,nativeEnum:()=>dm,negative:()=>Bn,never:()=>$r,nonnegative:()=>Kn,nonoptional:()=>Lc,nonpositive:()=>Jn,normalize:()=>zt,null:()=>xr,nullable:()=>br,nullish:()=>fm,number:()=>C,object:()=>w,optional:()=>V,overwrite:()=>Se,parse:()=>oo,parseAsync:()=>io,partialRecord:()=>lm,pipe:()=>yr,positive:()=>Vn,prefault:()=>Zc,preprocess:()=>Ir,prettifyError:()=>on,promise:()=>_m,property:()=>Gn,readonly:()=>Vc,record:()=>q,refine:()=>Yc,regex:()=>vt,regexes:()=>Ee,registry:()=>ur,safeParse:()=>ao,safeParseAsync:()=>so,set:()=>pm,setErrorMap:()=>km,size:()=>ht,startsWith:()=>xt,strictObject:()=>sm,string:()=>g,stringFormat:()=>Bd,stringbool:()=>ym,success:()=>gm,superRefine:()=>Xc,symbol:()=>tm,templateLiteral:()=>vm,toJSONSchema:()=>Xn,toLowerCase:()=>wt,toUpperCase:()=>It,transform:()=>Oo,treeifyError:()=>nn,trim:()=>St,tuple:()=>cm,uint32:()=>Qd,uint64:()=>em,ulid:()=>Dd,undefined:()=>rm,union:()=>F,unknown:()=>B,uppercase:()=>bt,url:()=>Td,uuid:()=>Id,uuidv4:()=>Pd,uuidv6:()=>jd,uuidv7:()=>Nd,void:()=>om,xid:()=>Ad,z:()=>c});var kh,Pr=I(()=>{tl();tl();kh=Im});var Br,R,Ul,df,Re,Tl,El,Dl,ei,Fr,Lt,Al,ii,ti,ri,Cl,Hr={},Wr=[],mf=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Mt=Array.isArray;function Pe(e,r){for(var n in r)e[n]=r[n];return e}function ai(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ft(e,r,n){var i,t,o,a={};for(o in r)o=="key"?i=r[o]:o=="ref"?t=r[o]:a[o]=r[o];if(arguments.length>2&&(a.children=arguments.length>3?Br.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return qr(e,a,i,t,null)}function qr(e,r,n,i,t){var o={type:e,props:r,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:t??++Ul,__i:-1,__u:0};return t==null&&R.vnode!=null&&R.vnode(o),o}function re(e){return e.children}function _e(e,r){this.props=e,this.context=r}function rt(e,r){if(r==null)return e.__?rt(e.__,e.__i+1):null;for(var n;r<e.__k.length;r++)if((n=e.__k[r])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?rt(e):null}function ff(e){if(e.__P&&e.__d){var r=e.__v,n=r.__e,i=[],t=[],o=Pe({},r);o.__v=r.__v+1,R.vnode&&R.vnode(o),si(e.__P,o,r,e.__n,e.__P.namespaceURI,32&r.__u?[n]:null,i,n??rt(r),!!(32&r.__u),t),o.__v=r.__v,o.__.__k[o.__i]=o,Fl(i,o,t),r.__e=r.__=null,o.__e!=n&&Zl(o)}}function Zl(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(r){if(r!=null&&r.__e!=null)return e.__e=e.__c.base=r.__e}),Zl(e)}function ni(e){(!e.__d&&(e.__d=!0)&&Re.push(e)&&!Vr.__r++||Tl!=R.debounceRendering)&&((Tl=R.debounceRendering)||El)(Vr)}function Vr(){try{for(var e,r=1;Re.length;)Re.length>r&&Re.sort(Dl),e=Re.shift(),r=Re.length,ff(e)}finally{Re.length=Vr.__r=0}}function Ll(e,r,n,i,t,o,a,s,p,u,m){var l,_,h,f,b,$,N,y=i&&i.__k||Wr,P=r.length;for(p=gf(n,r,y,p,P),l=0;l<P;l++)(h=n.__k[l])!=null&&(_=h.__i!=-1&&y[h.__i]||Hr,h.__i=l,$=si(e,h,_,t,o,a,s,p,u,m),f=h.__e,h.ref&&_.ref!=h.ref&&(_.ref&&ci(_.ref,null,h),m.push(h.ref,h.__c||f,h)),b==null&&f!=null&&(b=f),(N=!!(4&h.__u))||_.__k===h.__k?(p=Ml(h,p,e,N),N&&_.__e&&(_.__e=null)):typeof h.type=="function"&&$!==void 0?p=$:f&&(p=f.nextSibling),h.__u&=-7);return n.__e=b,p}function gf(e,r,n,i,t){var o,a,s,p,u,m=n.length,l=m,_=0;for(e.__k=new Array(t),o=0;o<t;o++)(a=r[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?a=e.__k[o]=qr(null,a,null,null,null):Mt(a)?a=e.__k[o]=qr(re,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?a=e.__k[o]=qr(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[o]=a,p=o+_,a.__=e,a.__b=e.__b+1,s=null,(u=a.__i=hf(a,n,p,l))!=-1&&(l--,(s=n[u])&&(s.__u|=2)),s==null||s.__v==null?(u==-1&&(t>m?_--:t<m&&_++),typeof a.type!="function"&&(a.__u|=4)):u!=p&&(u==p-1?_--:u==p+1?_++:(u>p?_--:_++,a.__u|=4))):e.__k[o]=null;if(l)for(o=0;o<m;o++)(s=n[o])!=null&&(2&s.__u)==0&&(s.__e==i&&(i=rt(s)),Hl(s,s));return i}function Ml(e,r,n,i){var t,o;if(typeof e.type=="function"){for(t=e.__k,o=0;t&&o<t.length;o++)t[o]&&(t[o].__=e,r=Ml(t[o],r,n,i));return r}e.__e!=r&&(i&&(r&&e.type&&!r.parentNode&&(r=rt(e)),n.insertBefore(e.__e,r||null)),r=e.__e);do r=r&&r.nextSibling;while(r!=null&&r.nodeType==8);return r}function qt(e,r){return r=r||[],e==null||typeof e=="boolean"||(Mt(e)?e.some(function(n){qt(n,r)}):r.push(e)),r}function hf(e,r,n,i){var t,o,a,s=e.key,p=e.type,u=r[n],m=u!=null&&(2&u.__u)==0;if(u===null&&s==null||m&&s==u.key&&p==u.type)return n;if(i>(m?1:0)){for(t=n-1,o=n+1;t>=0||o<r.length;)if((u=r[a=t>=0?t--:o++])!=null&&(2&u.__u)==0&&s==u.key&&p==u.type)return a}return-1}function Ol(e,r,n){r[0]=="-"?e.setProperty(r,n??""):e[r]=n==null?"":typeof n!="number"||mf.test(r)?n:n+"px"}function Mr(e,r,n,i,t){var o,a;e:if(r=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(r in i)n&&r in n||Ol(e.style,r,"");if(n)for(r in n)i&&n[r]==i[r]||Ol(e.style,r,n[r])}else if(r[0]=="o"&&r[1]=="n")o=r!=(r=r.replace(Al,"$1")),a=r.toLowerCase(),r=a in e||r=="onFocusOut"||r=="onFocusIn"?a.slice(2):r.slice(2),e.l||(e.l={}),e.l[r+o]=n,n?i?n[Lt]=i[Lt]:(n[Lt]=ii,e.addEventListener(r,o?ri:ti,o)):e.removeEventListener(r,o?ri:ti,o);else{if(t=="http://www.w3.org/2000/svg")r=r.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(r!="width"&&r!="height"&&r!="href"&&r!="list"&&r!="form"&&r!="tabIndex"&&r!="download"&&r!="rowSpan"&&r!="colSpan"&&r!="role"&&r!="popover"&&r in e)try{e[r]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&r[4]!="-"?e.removeAttribute(r):e.setAttribute(r,r=="popover"&&n==1?"":n))}}function Rl(e){return function(r){if(this.l){var n=this.l[r.type+e];if(r[Fr]==null)r[Fr]=ii++;else if(r[Fr]<n[Lt])return;return n(R.event?R.event(r):r)}}}function si(e,r,n,i,t,o,a,s,p,u){var m,l,_,h,f,b,$,N,y,P,U,de,Le,Me,et,ye=r.type;if(r.constructor!==void 0)return null;128&n.__u&&(p=!!(32&n.__u),o=[s=r.__e=n.__e]),(m=R.__b)&&m(r);e:if(typeof ye=="function")try{if(N=r.props,y=ye.prototype&&ye.prototype.render,P=(m=ye.contextType)&&i[m.__c],U=m?P?P.props.value:m.__:i,n.__c?$=(l=r.__c=n.__c).__=l.__E:(y?r.__c=l=new ye(N,U):(r.__c=l=new _e(N,U),l.constructor=ye,l.render=_f),P&&P.sub(l),l.state||(l.state={}),l.__n=i,_=l.__d=!0,l.__h=[],l._sb=[]),y&&l.__s==null&&(l.__s=l.state),y&&ye.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Pe({},l.__s)),Pe(l.__s,ye.getDerivedStateFromProps(N,l.__s))),h=l.props,f=l.state,l.__v=r,_)y&&ye.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),y&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(y&&ye.getDerivedStateFromProps==null&&N!==h&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(N,U),r.__v==n.__v||!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(N,l.__s,U)===!1){r.__v!=n.__v&&(l.props=N,l.state=l.__s,l.__d=!1),r.__e=n.__e,r.__k=n.__k,r.__k.some(function(tt){tt&&(tt.__=r)}),Wr.push.apply(l.__h,l._sb),l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(N,l.__s,U),y&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(h,f,b)})}if(l.context=U,l.props=N,l.__P=e,l.__e=!1,de=R.__r,Le=0,y)l.state=l.__s,l.__d=!1,de&&de(r),m=l.render(l.props,l.state,l.context),Wr.push.apply(l.__h,l._sb),l._sb=[];else do l.__d=!1,de&&de(r),m=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++Le<25);l.state=l.__s,l.getChildContext!=null&&(i=Pe(Pe({},i),l.getChildContext())),y&&!_&&l.getSnapshotBeforeUpdate!=null&&(b=l.getSnapshotBeforeUpdate(h,f)),Me=m!=null&&m.type===re&&m.key==null?ql(m.props.children):m,s=Ll(e,Mt(Me)?Me:[Me],r,n,i,t,o,a,s,p,u),l.base=r.__e,r.__u&=-161,l.__h.length&&a.push(l),$&&(l.__E=l.__=null)}catch(tt){if(r.__v=null,p||o!=null)if(tt.then){for(r.__u|=p?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,r.__e=s}else{for(et=o.length;et--;)ai(o[et]);oi(r)}else r.__e=n.__e,r.__k=n.__k,tt.then||oi(r);R.__e(tt,r,n)}else o==null&&r.__v==n.__v?(r.__k=n.__k,r.__e=n.__e):s=r.__e=vf(n.__e,r,n,i,t,o,a,p,u);return(m=R.diffed)&&m(r),128&r.__u?void 0:s}function oi(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(oi))}function Fl(e,r,n){for(var i=0;i<n.length;i++)ci(n[i],n[++i],n[++i]);R.__c&&R.__c(r,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(o){o.call(t)})}catch(o){R.__e(o,t.__v)}})}function ql(e){return typeof e!="object"||e==null||e.__b>0?e:Mt(e)?e.map(ql):e.constructor!==void 0?null:Pe({},e)}function vf(e,r,n,i,t,o,a,s,p){var u,m,l,_,h,f,b,$=n.props||Hr,N=r.props,y=r.type;if(y=="svg"?t="http://www.w3.org/2000/svg":y=="math"?t="http://www.w3.org/1998/Math/MathML":t||(t="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((h=o[u])&&"setAttribute"in h==!!y&&(y?h.localName==y:h.nodeType==3)){e=h,o[u]=null;break}}if(e==null){if(y==null)return document.createTextNode(N);e=document.createElementNS(t,y,N.is&&N),s&&(R.__m&&R.__m(r,o),s=!1),o=null}if(y==null)$===N||s&&e.data==N||(e.data=N);else{if(o=y=="textarea"&&N.defaultValue!=null?null:o&&Br.call(e.childNodes),!s&&o!=null)for($={},u=0;u<e.attributes.length;u++)$[(h=e.attributes[u]).name]=h.value;for(u in $)h=$[u],u=="dangerouslySetInnerHTML"?l=h:u=="children"||u in N||u=="value"&&"defaultValue"in N||u=="checked"&&"defaultChecked"in N||Mr(e,u,null,h,t);for(u in N)h=N[u],u=="children"?_=h:u=="dangerouslySetInnerHTML"?m=h:u=="value"?f=h:u=="checked"?b=h:s&&typeof h!="function"||$[u]===h||Mr(e,u,h,$[u],t);if(m)s||l&&(m.__html==l.__html||m.__html==e.innerHTML)||(e.innerHTML=m.__html),r.__k=[];else if(l&&(e.innerHTML=""),Ll(r.type=="template"?e.content:e,Mt(_)?_:[_],r,n,i,y=="foreignObject"?"http://www.w3.org/1999/xhtml":t,o,a,o?o[0]:n.__k&&rt(n,0),s,p),o!=null)for(u=o.length;u--;)ai(o[u]);s&&y!="textarea"||(u="value",y=="progress"&&f==null?e.removeAttribute("value"):f!=null&&(f!==e[u]||y=="progress"&&!f||y=="option"&&f!=$[u])&&Mr(e,u,f,$[u],t),u="checked",b!=null&&b!=e[u]&&Mr(e,u,b,$[u],t))}return e}function ci(e,r,n){try{if(typeof e=="function"){var i=typeof e.__u=="function";i&&e.__u(),i&&r==null||(e.__u=e(r))}else e.current=r}catch(t){R.__e(t,n)}}function Hl(e,r,n){var i,t;if(R.unmount&&R.unmount(e),(i=e.ref)&&(i.current&&i.current!=e.__e||ci(i,null,r)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(o){R.__e(o,r)}i.base=i.__P=null}if(i=e.__k)for(t=0;t<i.length;t++)i[t]&&Hl(i[t],r,n||typeof e.type!="function");n||ai(e.__e),e.__c=e.__=e.__e=void 0}function _f(e,r,n){return this.constructor(e,n)}function li(e,r,n){var i,t,o,a;r==document&&(r=document.documentElement),R.__&&R.__(e,r),t=(i=typeof n=="function")?null:n&&n.__k||r.__k,o=[],a=[],si(r,e=(!i&&n||r).__k=Ft(re,null,[e]),t||Hr,Hr,r.namespaceURI,!i&&n?[n]:t?null:r.firstChild?Br.call(r.childNodes):null,o,!i&&n?n:t?t.__e:r.firstChild,i,a),Fl(o,e,a)}function Jr(e){function r(n){var i,t;return this.getChildContext||(i=new Set,(t={})[r.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&i.forEach(function(a){a.__e=!0,ni(a)})},this.sub=function(o){i.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){i&&i.delete(o),a&&a.call(o)}}),n.children}return r.__c="__cC"+Cl++,r.__=e,r.Provider=r.__l=(r.Consumer=function(n,i){return n.children(i)}).contextType=r,r}Br=Wr.slice,R={__e:function(e,r,n,i){for(var t,o,a;r=r.__;)if((t=r.__c)&&!t.__)try{if((o=t.constructor)&&o.getDerivedStateFromError!=null&&(t.setState(o.getDerivedStateFromError(e)),a=t.__d),t.componentDidCatch!=null&&(t.componentDidCatch(e,i||{}),a=t.__d),a)return t.__E=t}catch(s){e=s}throw e}},Ul=0,df=function(e){return e!=null&&e.constructor===void 0},_e.prototype.setState=function(e,r){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Pe({},this.state),typeof e=="function"&&(e=e(Pe({},n),this.props)),e&&Pe(n,e),e!=null&&this.__v&&(r&&this._sb.push(r),ni(this))},_e.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ni(this))},_e.prototype.render=re,Re=[],El=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Dl=function(e,r){return e.__v.__b-r.__v.__b},Vr.__r=0,ei=Math.random().toString(8),Fr="__d"+ei,Lt="__a"+ei,Al=/(PointerCapture)$|Capture$/i,ii=0,ti=Rl(!1),ri=Rl(!0),Cl=0;var nt,J,ui,Wl,Ht=0,Xl=[],X=R,Vl=X.__b,Bl=X.__r,Jl=X.diffed,Kl=X.__c,Gl=X.unmount,Ql=X.__;function Gr(e,r){X.__h&&X.__h(J,e,Ht||r),Ht=0;var n=J.__H||(J.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function xe(e){return Ht=1,eu(ru,e)}function eu(e,r,n){var i=Gr(nt++,2);if(i.t=e,!i.__c&&(i.__=[n?n(r):ru(void 0,r),function(s){var p=i.__N?i.__N[0]:i.__[0],u=i.t(p,s);p!==u&&(i.__N=[u,i.__[1]],i.__c.setState({}))}],i.__c=J,!J.__f)){var t=function(s,p,u){if(!i.__c.__H)return!0;var m=i.__c.__H.__.filter(function(_){return _.__c});if(m.every(function(_){return!_.__N}))return!o||o.call(this,s,p,u);var l=i.__c.props!==s;return m.some(function(_){if(_.__N){var h=_.__[0];_.__=_.__N,_.__N=void 0,h!==_.__[0]&&(l=!0)}}),o&&o.call(this,s,p,u)||l};J.__f=!0;var o=J.shouldComponentUpdate,a=J.componentWillUpdate;J.componentWillUpdate=function(s,p,u){if(this.__e){var m=o;o=void 0,t(s,p,u),o=m}a&&a.call(this,s,p,u)},J.shouldComponentUpdate=t}return i.__N||i.__}function Qr(e,r){var n=Gr(nt++,3);!X.__s&&tu(n.__H,r)&&(n.__=e,n.u=r,J.__H.__h.push(n))}function Yr(e){return Ht=5,di(function(){return{current:e}},[])}function di(e,r){var n=Gr(nt++,7);return tu(n.__H,r)&&(n.__=e(),n.__H=r,n.__h=e),n.__}function Wt(e,r){return Ht=8,di(function(){return e},r)}function mi(e){var r=J.context[e.__c],n=Gr(nt++,9);return n.c=e,r?(n.__==null&&(n.__=!0,r.sub(J)),r.props.value):e.__}function bf(){for(var e;e=Xl.shift();){var r=e.__H;if(e.__P&&r)try{r.__h.some(Kr),r.__h.some(pi),r.__h=[]}catch(n){r.__h=[],X.__e(n,e.__v)}}}X.__b=function(e){J=null,Vl&&Vl(e)},X.__=function(e,r){e&&r.__k&&r.__k.__m&&(e.__m=r.__k.__m),Ql&&Ql(e,r)},X.__r=function(e){Bl&&Bl(e),nt=0;var r=(J=e.__c).__H;r&&(ui===J?(r.__h=[],J.__h=[],r.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(r.__h.some(Kr),r.__h.some(pi),r.__h=[],nt=0)),ui=J},X.diffed=function(e){Jl&&Jl(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(Xl.push(r)!==1&&Wl===X.requestAnimationFrame||((Wl=X.requestAnimationFrame)||yf)(bf)),r.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),ui=J=null},X.__c=function(e,r){r.some(function(n){try{n.__h.some(Kr),n.__h=n.__h.filter(function(i){return!i.__||pi(i)})}catch(i){r.some(function(t){t.__h&&(t.__h=[])}),r=[],X.__e(i,n.__v)}}),Kl&&Kl(e,r)},X.unmount=function(e){Gl&&Gl(e);var r,n=e.__c;n&&n.__H&&(n.__H.__.some(function(i){try{Kr(i)}catch(t){r=t}}),n.__H=void 0,r&&X.__e(r,n.__v))};var Yl=typeof requestAnimationFrame=="function";function yf(e){var r,n=function(){clearTimeout(i),Yl&&cancelAnimationFrame(r),setTimeout(e)},i=setTimeout(n,35);Yl&&(r=requestAnimationFrame(n))}function Kr(e){var r=J,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),J=r}function pi(e){var r=J;e.__c=e.__(),J=r}function tu(e,r){return!e||e.length!==r.length||r.some(function(n,i){return n!==e[i]})}function ru(e,r){return typeof r=="function"?r(e):r}function $f(e,r){for(var n in r)e[n]=r[n];return e}function nu(e,r){for(var n in e)if(n!=="__source"&&!(n in r))return!0;for(var i in r)if(i!=="__source"&&e[i]!==r[i])return!0;return!1}function ou(e,r){this.props=e,this.context=r}(ou.prototype=new _e).isPureReactComponent=!0,ou.prototype.shouldComponentUpdate=function(e,r){return nu(this.props,e)||nu(this.state,r)};var iu=R.__b;R.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),iu&&iu(e)};var G_=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var kf=R.__e;R.__e=function(e,r,n,i){if(e.then){for(var t,o=r;o=o.__;)if((t=o.__c)&&t.__c)return r.__e==null&&(r.__e=n.__e,r.__k=n.__k),t.__c(e,r)}kf(e,r,n,i)};var au=R.unmount;function du(e,r,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(i){typeof i.__c=="function"&&i.__c()}),e.__c.__H=null),(e=$f({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=r),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(i){return du(i,r,n)})),e}function mu(e,r,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(i){return mu(i,r,n)}),e.__c&&e.__c.__P===r&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function fi(){this.__u=0,this.o=null,this.__b=null}function fu(e){var r=e.__&&e.__.__c;return r&&r.__a&&r.__a(e)}function Xr(){this.i=null,this.l=null}R.unmount=function(e){var r=e.__c;r&&(r.__z=!0),r&&r.__R&&r.__R(),r&&32&e.__u&&(e.type=null),au&&au(e)},(fi.prototype=new _e).__c=function(e,r){var n=r.__c,i=this;i.o==null&&(i.o=[]),i.o.push(n);var t=fu(i.__v),o=!1,a=function(){o||i.__z||(o=!0,n.__R=null,t?t(p):p())};n.__R=a;var s=n.__P;n.__P=null;var p=function(){if(!--i.__u){if(i.state.__a){var u=i.state.__a;i.__v.__k[0]=mu(u,u.__c.__P,u.__c.__O)}var m;for(i.setState({__a:i.__b=null});m=i.o.pop();)m.__P=s,m.forceUpdate()}};i.__u++||32&r.__u||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(a,a)},fi.prototype.componentWillUnmount=function(){this.o=[]},fi.prototype.render=function(e,r){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=du(this.__b,n,i.__O=i.__P)}this.__b=null}var t=r.__a&&Ft(re,null,e.fallback);return t&&(t.__u&=-33),[Ft(re,null,r.__a?null:e.children),t]};var su=function(e,r,n){if(++n[1]===n[0]&&e.l.delete(r),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};(Xr.prototype=new _e).__a=function(e){var r=this,n=fu(r.__v),i=r.l.get(e);return i[0]++,function(t){var o=function(){r.props.revealOrder?(i.push(t),su(r,e,i)):t()};n?n(o):o()}},Xr.prototype.render=function(e){this.i=null,this.l=new Map;var r=qt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&r.reverse();for(var n=r.length;n--;)this.l.set(r[n],this.i=[1,0,this.i]);return e.children},Xr.prototype.componentDidUpdate=Xr.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(r,n){su(e,n,r)})};var zf=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Sf=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,wf=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,If=/[A-Z0-9]/g,Pf=typeof document<"u",jf=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function gu(e,r,n){return r.__k==null&&(r.textContent=""),li(e,r),typeof n=="function"&&n(),e?e.__c:null}_e.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(_e.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(r){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:r})}})});var cu=R.event;R.event=function(e){return cu&&(e=cu(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var hu,Nf={configurable:!0,get:function(){return this.class}},lu=R.vnode;R.vnode=function(e){typeof e.type=="string"&&(function(r){var n=r.props,i=r.type,t={},o=i.indexOf("-")==-1;for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||Pf&&a==="children"&&i==="noscript"||a==="class"||a==="className")){var p=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":p==="translate"&&s==="no"?s=!1:p[0]==="o"&&p[1]==="n"?p==="ondoubleclick"?a="ondblclick":p!=="onchange"||i!=="input"&&i!=="textarea"||jf(n.type)?p==="onfocus"?a="onfocusin":p==="onblur"?a="onfocusout":wf.test(a)&&(a=p):p=a="oninput":o&&Sf.test(a)?a=a.replace(If,"-$&").toLowerCase():s===null&&(s=void 0),p==="oninput"&&t[a=p]&&(a="oninputCapture"),t[a]=s}}i=="select"&&(t.multiple&&Array.isArray(t.value)&&(t.value=qt(n.children).forEach(function(u){u.props.selected=t.value.indexOf(u.props.value)!=-1})),t.defaultValue!=null&&(t.value=qt(n.children).forEach(function(u){u.props.selected=t.multiple?t.defaultValue.indexOf(u.props.value)!=-1:t.defaultValue==u.props.value}))),n.class&&!n.className?(t.class=n.class,Object.defineProperty(t,"className",Nf)):n.className&&(t.class=t.className=n.className),r.props=t})(e),e.$$typeof=zf,lu&&lu(e)};var uu=R.__r;R.__r=function(e){uu&&uu(e),hu=e.__c};var pu=R.diffed;R.diffed=function(e){pu&&pu(e);var r=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in r&&r.value!==n.value&&(n.value=r.value==null?"":r.value),hu=null};function vu(e){return!!e.__k&&(li(null,e),!0)}var gi={applicationCreate:"application_create",applicationList:"application_list",applicationGet:"application_get",applicationLogList:"application_log_list",applicationMetricList:"application_metric_list",applicationBuildList:"application_build_list",applicationReleaseList:"application_release_list",applicationDeploymentList:"application_deployment_list",applicationParameterList:"application_parameter_list",applicationParameterCreate:"application_parameter_create",applicationDeploymentCreate:"application_deployment_create",applicationDeploymentUpdate:"application_deployment_update",applicationReleaseCreate:"application_release_create",applicationScopeCreate:"application_scope_create",applicationServiceList:"application_service_list",applicationApprovalList:"application_approval_list",organizationGet:"organization_get",playbookGet:"playbook_get"};var Tf=new Set(["finalized","cancelled","rolled_back","failed","deleted","creating_approval_denied"]);var _u=e=>(e??"").replace(/_/g," "),bu=new Set(["running","switching_traffic","creating","waiting_for_instances","finalizing","in_progress","building","updating"]),yu=new Set(["cancelling","rolling_back","deleting"]);function xu(e){return e?yu.has(e)?"bad":Tf.has(e)?e==="finalized"?"ok":"bad":e==="active"||e==="successful"?"ok":bu.has(e)?"run":"wait":"wait"}var Of=new Set([...bu,...yu,"pending","creating_approval"]),$u=e=>!!e&&Of.has(e);function ku(e){return e instanceof Error?e.message:String(e)}function hi(e){if(!e)return"";let r=new Date(e).getTime();if(Number.isNaN(r))return"";let n=Math.max(0,Math.round((Date.now()-r)/1e3));if(n<60)return`${n}s`;let i=Math.round(n/60);if(i<60)return`${i}m`;let t=Math.round(i/60);return t<24?`${t}h`:`${Math.round(t/24)}d`}pe();function eo(e){return!!e._zod}function to(e,r){return eo(e)?ut(e,r):e.safeParse(r)}function yd(e){if(!e)return;let r;if(eo(e)?r=e._zod?.def?.shape:r=e.shape,!!r){if(typeof r=="function")try{return r()}catch{return}return r}}function xd(e){if(eo(e)){let o=e._zod?.def;if(o){if(o.value!==void 0)return o.value;if(Array.isArray(o.values)&&o.values.length>0)return o.values[0]}}let n=e._def;if(n){if(n.value!==void 0)return n.value;if(Array.isArray(n.values)&&n.values.length>0)return n.values[0]}let i=e.value;if(i!==void 0)return i}Pr();var Ce="io.modelcontextprotocol/related-task",Zo="2.0",te=Do(e=>e!==null&&(typeof e=="object"||typeof e=="function")),Pm=F([g(),C().int()]),jm=g(),zx=ne({ttl:C().optional(),pollInterval:C().optional()}),zh=w({ttl:C().optional()}),Sh=w({taskId:g()}),ol=ne({progressToken:Pm.optional(),[Ce]:Sh.optional()}),ge=w({_meta:ol.optional()}),jr=ge.extend({task:zh.optional()}),Nm=e=>jr.safeParse(e).success,oe=w({method:g(),params:ge.loose().optional()}),he=w({_meta:ol.optional()}),ve=w({method:g(),params:he.loose().optional()}),ie=ne({_meta:ol.optional()}),Et=F([g(),C().int()]),Tm=w({jsonrpc:j(Zo),id:Et,...oe.shape}).strict(),il=e=>Tm.safeParse(e).success,Om=w({jsonrpc:j(Zo),...ve.shape}).strict(),Rm=e=>Om.safeParse(e).success,al=w({jsonrpc:j(Zo),id:Et,result:ie}).strict(),Nr=e=>al.safeParse(e).success;var M;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(M||(M={}));var sl=w({jsonrpc:j(Zo),id:Et.optional(),error:w({code:C().int(),message:g(),data:B().optional()})}).strict();var Um=e=>sl.safeParse(e).success;var Em=F([Tm,Om,al,sl]),Sx=F([al,sl]),Lo=ie.strict(),wh=he.extend({requestId:Et.optional(),reason:g().optional()}),Mo=ve.extend({method:j("notifications/cancelled"),params:wh}),Ih=w({src:g(),mimeType:g().optional(),sizes:D(g()).optional(),theme:se(["light","dark"]).optional()}),Tr=w({icons:D(Ih).optional()}),Ut=w({name:g(),title:g().optional()}),Or=Ut.extend({...Ut.shape,...Tr.shape,version:g(),websiteUrl:g().optional(),description:g().optional()}),Ph=Rt(w({applyDefaults:Y().optional()}),q(g(),B())),jh=Ir(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Rt(w({form:Ph.optional(),url:te.optional()}),q(g(),B()).optional())),Nh=ne({list:te.optional(),cancel:te.optional(),requests:ne({sampling:ne({createMessage:te.optional()}).optional(),elicitation:ne({create:te.optional()}).optional()}).optional()}),Th=ne({list:te.optional(),cancel:te.optional(),requests:ne({tools:ne({call:te.optional()}).optional()}).optional()}),Oh=w({experimental:q(g(),te).optional(),sampling:w({context:te.optional(),tools:te.optional()}).optional(),elicitation:jh.optional(),roots:w({listChanged:Y().optional()}).optional(),tasks:Nh.optional(),extensions:q(g(),te).optional()}),Rh=ge.extend({protocolVersion:g(),capabilities:Oh,clientInfo:Or}),Uh=oe.extend({method:j("initialize"),params:Rh});var Eh=w({experimental:q(g(),te).optional(),logging:te.optional(),completions:te.optional(),prompts:w({listChanged:Y().optional()}).optional(),resources:w({subscribe:Y().optional(),listChanged:Y().optional()}).optional(),tools:w({listChanged:Y().optional()}).optional(),tasks:Th.optional(),extensions:q(g(),te).optional()}),Dh=ie.extend({protocolVersion:g(),capabilities:Eh,serverInfo:Or,instructions:g().optional()}),Ah=ve.extend({method:j("notifications/initialized"),params:he.optional()});var Dt=oe.extend({method:j("ping"),params:ge.optional()}),Ch=w({progress:C(),total:V(C()),message:V(g())}),Zh=w({...he.shape,...Ch.shape,progressToken:Pm}),Fo=ve.extend({method:j("notifications/progress"),params:Zh}),Lh=ge.extend({cursor:jm.optional()}),Rr=oe.extend({params:Lh.optional()}),Ur=ie.extend({nextCursor:jm.optional()}),Mh=se(["working","input_required","completed","failed","cancelled"]),Er=w({taskId:g(),status:Mh,ttl:F([C(),xr()]),createdAt:g(),lastUpdatedAt:g(),pollInterval:V(C()),statusMessage:V(g())}),qo=ie.extend({task:Er}),Fh=he.merge(Er),Dr=ve.extend({method:j("notifications/tasks/status"),params:Fh}),Ho=oe.extend({method:j("tasks/get"),params:ge.extend({taskId:g()})}),Wo=ie.merge(Er),Vo=oe.extend({method:j("tasks/result"),params:ge.extend({taskId:g()})}),wx=ie.loose(),Bo=Rr.extend({method:j("tasks/list")}),Jo=Ur.extend({tasks:D(Er)}),Ko=oe.extend({method:j("tasks/cancel"),params:ge.extend({taskId:g()})}),Dm=ie.merge(Er),Am=w({uri:g(),mimeType:V(g()),_meta:q(g(),B()).optional()}),Cm=Am.extend({text:g()}),cl=g().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),Zm=Am.extend({blob:cl}),Ar=se(["user","assistant"]),At=w({audience:D(Ar).optional(),priority:C().min(0).max(1).optional(),lastModified:Qe.datetime({offset:!0}).optional()}),Lm=w({...Ut.shape,...Tr.shape,uri:g(),description:V(g()),mimeType:V(g()),size:V(C()),annotations:At.optional(),_meta:V(ne({}))}),qh=w({...Ut.shape,...Tr.shape,uriTemplate:g(),description:V(g()),mimeType:V(g()),annotations:At.optional(),_meta:V(ne({}))}),Hh=Rr.extend({method:j("resources/list")}),ll=Ur.extend({resources:D(Lm)}),Wh=Rr.extend({method:j("resources/templates/list")}),Vh=Ur.extend({resourceTemplates:D(qh)}),ul=ge.extend({uri:g()}),Bh=ul,Jh=oe.extend({method:j("resources/read"),params:Bh}),pl=ie.extend({contents:D(F([Cm,Zm]))}),Kh=ve.extend({method:j("notifications/resources/list_changed"),params:he.optional()}),Gh=ul,Qh=oe.extend({method:j("resources/subscribe"),params:Gh}),Yh=ul,Xh=oe.extend({method:j("resources/unsubscribe"),params:Yh}),ev=he.extend({uri:g()}),tv=ve.extend({method:j("notifications/resources/updated"),params:ev}),rv=w({name:g(),description:V(g()),required:V(Y())}),nv=w({...Ut.shape,...Tr.shape,description:V(g()),arguments:V(D(rv)),_meta:V(ne({}))}),ov=Rr.extend({method:j("prompts/list")}),iv=Ur.extend({prompts:D(nv)}),av=ge.extend({name:g(),arguments:q(g(),g()).optional()}),sv=oe.extend({method:j("prompts/get"),params:av}),dl=w({type:j("text"),text:g(),annotations:At.optional(),_meta:q(g(),B()).optional()}),ml=w({type:j("image"),data:cl,mimeType:g(),annotations:At.optional(),_meta:q(g(),B()).optional()}),fl=w({type:j("audio"),data:cl,mimeType:g(),annotations:At.optional(),_meta:q(g(),B()).optional()}),cv=w({type:j("tool_use"),name:g(),id:g(),input:q(g(),B()),_meta:q(g(),B()).optional()}),gl=w({type:j("resource"),resource:F([Cm,Zm]),annotations:At.optional(),_meta:q(g(),B()).optional()}),hl=Lm.extend({type:j("resource_link")}),Ct=F([dl,ml,fl,hl,gl]),lv=w({role:Ar,content:Ct}),uv=ie.extend({description:g().optional(),messages:D(lv)}),pv=ve.extend({method:j("notifications/prompts/list_changed"),params:he.optional()}),dv=w({title:g().optional(),readOnlyHint:Y().optional(),destructiveHint:Y().optional(),idempotentHint:Y().optional(),openWorldHint:Y().optional()}),mv=w({taskSupport:se(["required","optional","forbidden"]).optional()}),Go=w({...Ut.shape,...Tr.shape,description:g().optional(),inputSchema:w({type:j("object"),properties:q(g(),te).optional(),required:D(g()).optional()}).catchall(B()),outputSchema:w({type:j("object"),properties:q(g(),te).optional(),required:D(g()).optional()}).catchall(B()).optional(),annotations:dv.optional(),execution:mv.optional(),_meta:q(g(),B()).optional()}),vl=Rr.extend({method:j("tools/list")}),fv=Ur.extend({tools:D(Go)}),Zt=ie.extend({content:D(Ct).default([]),structuredContent:q(g(),B()).optional(),isError:Y().optional()}),Ix=Zt.or(ie.extend({toolResult:B()})),gv=jr.extend({name:g(),arguments:q(g(),B()).optional()}),_l=oe.extend({method:j("tools/call"),params:gv}),hv=ve.extend({method:j("notifications/tools/list_changed"),params:he.optional()}),Px=w({autoRefresh:Y().default(!0),debounceMs:C().int().nonnegative().default(300)}),Mm=se(["debug","info","notice","warning","error","critical","alert","emergency"]),vv=ge.extend({level:Mm}),_v=oe.extend({method:j("logging/setLevel"),params:vv}),bv=he.extend({level:Mm,logger:g().optional(),data:B()}),yv=ve.extend({method:j("notifications/message"),params:bv}),xv=w({name:g().optional()}),$v=w({hints:D(xv).optional(),costPriority:C().min(0).max(1).optional(),speedPriority:C().min(0).max(1).optional(),intelligencePriority:C().min(0).max(1).optional()}),kv=w({mode:se(["auto","required","none"]).optional()}),zv=w({type:j("tool_result"),toolUseId:g().describe("The unique identifier for the corresponding tool call."),content:D(Ct).default([]),structuredContent:w({}).loose().optional(),isError:Y().optional(),_meta:q(g(),B()).optional()}),Sv=Sr("type",[dl,ml,fl]),Co=Sr("type",[dl,ml,fl,cv,zv]),wv=w({role:Ar,content:F([Co,D(Co)]),_meta:q(g(),B()).optional()}),Iv=jr.extend({messages:D(wv),modelPreferences:$v.optional(),systemPrompt:g().optional(),includeContext:se(["none","thisServer","allServers"]).optional(),temperature:C().optional(),maxTokens:C().int(),stopSequences:D(g()).optional(),metadata:te.optional(),tools:D(Go).optional(),toolChoice:kv.optional()}),Pv=oe.extend({method:j("sampling/createMessage"),params:Iv}),bl=ie.extend({model:g(),stopReason:V(se(["endTurn","stopSequence","maxTokens"]).or(g())),role:Ar,content:Sv}),yl=ie.extend({model:g(),stopReason:V(se(["endTurn","stopSequence","maxTokens","toolUse"]).or(g())),role:Ar,content:F([Co,D(Co)])}),jv=w({type:j("boolean"),title:g().optional(),description:g().optional(),default:Y().optional()}),Nv=w({type:j("string"),title:g().optional(),description:g().optional(),minLength:C().optional(),maxLength:C().optional(),format:se(["email","uri","date","date-time"]).optional(),default:g().optional()}),Tv=w({type:se(["number","integer"]),title:g().optional(),description:g().optional(),minimum:C().optional(),maximum:C().optional(),default:C().optional()}),Ov=w({type:j("string"),title:g().optional(),description:g().optional(),enum:D(g()),default:g().optional()}),Rv=w({type:j("string"),title:g().optional(),description:g().optional(),oneOf:D(w({const:g(),title:g()})),default:g().optional()}),Uv=w({type:j("string"),title:g().optional(),description:g().optional(),enum:D(g()),enumNames:D(g()).optional(),default:g().optional()}),Ev=F([Ov,Rv]),Dv=w({type:j("array"),title:g().optional(),description:g().optional(),minItems:C().optional(),maxItems:C().optional(),items:w({type:j("string"),enum:D(g())}),default:D(g()).optional()}),Av=w({type:j("array"),title:g().optional(),description:g().optional(),minItems:C().optional(),maxItems:C().optional(),items:w({anyOf:D(w({const:g(),title:g()}))}),default:D(g()).optional()}),Cv=F([Dv,Av]),Zv=F([Uv,Ev,Cv]),Lv=F([Zv,jv,Nv,Tv]),Mv=jr.extend({mode:j("form").optional(),message:g(),requestedSchema:w({type:j("object"),properties:q(g(),Lv),required:D(g()).optional()})}),Fv=jr.extend({mode:j("url"),message:g(),elicitationId:g(),url:g().url()}),qv=F([Mv,Fv]),Hv=oe.extend({method:j("elicitation/create"),params:qv}),Wv=he.extend({elicitationId:g()}),Vv=ve.extend({method:j("notifications/elicitation/complete"),params:Wv}),Bv=ie.extend({action:se(["accept","decline","cancel"]),content:Ir(e=>e===null?void 0:e,q(g(),F([g(),C(),Y(),D(g())])).optional())}),Jv=w({type:j("ref/resource"),uri:g()});var Kv=w({type:j("ref/prompt"),name:g()}),Gv=ge.extend({ref:F([Kv,Jv]),argument:w({name:g(),value:g()}),context:w({arguments:q(g(),g()).optional()}).optional()}),Qv=oe.extend({method:j("completion/complete"),params:Gv});var Yv=ie.extend({completion:ne({values:D(g()).max(100),total:V(C().int()),hasMore:V(Y())})}),Xv=w({uri:g().startsWith("file://"),name:g().optional(),_meta:q(g(),B()).optional()}),e_=oe.extend({method:j("roots/list"),params:ge.optional()}),t_=ie.extend({roots:D(Xv)}),r_=ve.extend({method:j("notifications/roots/list_changed"),params:he.optional()}),jx=F([Dt,Uh,Qv,_v,sv,ov,Hh,Wh,Jh,Qh,Xh,_l,vl,Ho,Vo,Bo,Ko]),Nx=F([Mo,Fo,Ah,r_,Dr]),Tx=F([Lo,bl,yl,Bv,t_,Wo,Jo,qo]),Ox=F([Dt,Pv,Hv,e_,Ho,Vo,Bo,Ko]),Rx=F([Mo,Fo,yv,tv,Kh,hv,pv,Dr,Vv]),Ux=F([Lo,Dh,Yv,uv,iv,ll,Vh,pl,Zt,fv,Wo,Jo,qo]),A=class e extends Error{constructor(r,n,i){super(`MCP error ${r}: ${n}`),this.code=r,this.data=i,this.name="McpError"}static fromError(r,n,i){if(r===M.UrlElicitationRequired&&i){let t=i;if(t.elicitations)return new nl(t.elicitations,n)}return new e(r,n,i)}},nl=class extends A{constructor(r,n=`URL elicitation${r.length>1?"s":""} required`){super(M.UrlElicitationRequired,n,{elicitations:r})}get elicitations(){return this.data?.elicitations??[]}};function Ze(e){return e==="completed"||e==="failed"||e==="cancelled"}var m$=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function xl(e){let n=yd(e)?.method;if(!n)throw new Error("Schema is missing a method literal");let i=xd(n);if(typeof i!="string")throw new Error("Schema method literal must be a string");return i}function $l(e,r){let n=to(e,r);if(!n.success)throw n.error;return n.data}var c_=6e4,Qo=class{constructor(r){this._options=r,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Mo,n=>{this._oncancel(n)}),this.setNotificationHandler(Fo,n=>{this._onprogress(n)}),this.setRequestHandler(Dt,n=>({})),this._taskStore=r?.taskStore,this._taskMessageQueue=r?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Ho,async(n,i)=>{let t=await this._taskStore.getTask(n.params.taskId,i.sessionId);if(!t)throw new A(M.InvalidParams,"Failed to retrieve task: Task not found");return{...t}}),this.setRequestHandler(Vo,async(n,i)=>{let t=async()=>{let o=n.params.taskId;if(this._taskMessageQueue){let s;for(;s=await this._taskMessageQueue.dequeue(o,i.sessionId);){if(s.type==="response"||s.type==="error"){let p=s.message,u=p.id,m=this._requestResolvers.get(u);if(m)if(this._requestResolvers.delete(u),s.type==="response")m(p);else{let l=p,_=new A(l.error.code,l.error.message,l.error.data);m(_)}else{let l=s.type==="response"?"Response":"Error";this._onerror(new Error(`${l} handler missing for request ${u}`))}continue}await this._transport?.send(s.message,{relatedRequestId:i.requestId})}}let a=await this._taskStore.getTask(o,i.sessionId);if(!a)throw new A(M.InvalidParams,`Task not found: ${o}`);if(!Ze(a.status))return await this._waitForTaskUpdate(o,i.signal),await t();if(Ze(a.status)){let s=await this._taskStore.getTaskResult(o,i.sessionId);return this._clearTaskQueue(o),{...s,_meta:{...s._meta,[Ce]:{taskId:o}}}}return await t()};return await t()}),this.setRequestHandler(Bo,async(n,i)=>{try{let{tasks:t,nextCursor:o}=await this._taskStore.listTasks(n.params?.cursor,i.sessionId);return{tasks:t,nextCursor:o,_meta:{}}}catch(t){throw new A(M.InvalidParams,`Failed to list tasks: ${t instanceof Error?t.message:String(t)}`)}}),this.setRequestHandler(Ko,async(n,i)=>{try{let t=await this._taskStore.getTask(n.params.taskId,i.sessionId);if(!t)throw new A(M.InvalidParams,`Task not found: ${n.params.taskId}`);if(Ze(t.status))throw new A(M.InvalidParams,`Cannot cancel task in terminal status: ${t.status}`);await this._taskStore.updateTaskStatus(n.params.taskId,"cancelled","Client cancelled task execution.",i.sessionId),this._clearTaskQueue(n.params.taskId);let o=await this._taskStore.getTask(n.params.taskId,i.sessionId);if(!o)throw new A(M.InvalidParams,`Task not found after cancellation: ${n.params.taskId}`);return{_meta:{},...o}}catch(t){throw t instanceof A?t:new A(M.InvalidRequest,`Failed to cancel task: ${t instanceof Error?t.message:String(t)}`)}}))}async _oncancel(r){if(!r.params.requestId)return;this._requestHandlerAbortControllers.get(r.params.requestId)?.abort(r.params.reason)}_setupTimeout(r,n,i,t,o=!1){this._timeoutInfo.set(r,{timeoutId:setTimeout(t,n),startTime:Date.now(),timeout:n,maxTotalTimeout:i,resetTimeoutOnProgress:o,onTimeout:t})}_resetTimeout(r){let n=this._timeoutInfo.get(r);if(!n)return!1;let i=Date.now()-n.startTime;if(n.maxTotalTimeout&&i>=n.maxTotalTimeout)throw this._timeoutInfo.delete(r),A.fromError(M.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:n.maxTotalTimeout,totalElapsed:i});return clearTimeout(n.timeoutId),n.timeoutId=setTimeout(n.onTimeout,n.timeout),!0}_cleanupTimeout(r){let n=this._timeoutInfo.get(r);n&&(clearTimeout(n.timeoutId),this._timeoutInfo.delete(r))}async connect(r){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=r;let n=this.transport?.onclose;this._transport.onclose=()=>{n?.(),this._onclose()};let i=this.transport?.onerror;this._transport.onerror=o=>{i?.(o),this._onerror(o)};let t=this._transport?.onmessage;this._transport.onmessage=(o,a)=>{t?.(o,a),Nr(o)||Um(o)?this._onresponse(o):il(o)?this._onrequest(o,a):Rm(o)?this._onnotification(o):this._onerror(new Error(`Unknown message type: ${JSON.stringify(o)}`))},await this._transport.start()}_onclose(){let r=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let i of this._timeoutInfo.values())clearTimeout(i.timeoutId);this._timeoutInfo.clear();for(let i of this._requestHandlerAbortControllers.values())i.abort();this._requestHandlerAbortControllers.clear();let n=A.fromError(M.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let i of r.values())i(n)}_onerror(r){this.onerror?.(r)}_onnotification(r){let n=this._notificationHandlers.get(r.method)??this.fallbackNotificationHandler;n!==void 0&&Promise.resolve().then(()=>n(r)).catch(i=>this._onerror(new Error(`Uncaught error in notification handler: ${i}`)))}_onrequest(r,n){let i=this._requestHandlers.get(r.method)??this.fallbackRequestHandler,t=this._transport,o=r.params?._meta?.[Ce]?.taskId;if(i===void 0){let m={jsonrpc:"2.0",id:r.id,error:{code:M.MethodNotFound,message:"Method not found"}};o&&this._taskMessageQueue?this._enqueueTaskMessage(o,{type:"error",message:m,timestamp:Date.now()},t?.sessionId).catch(l=>this._onerror(new Error(`Failed to enqueue error response: ${l}`))):t?.send(m).catch(l=>this._onerror(new Error(`Failed to send an error response: ${l}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(r.id,a);let s=Nm(r.params)?r.params.task:void 0,p=this._taskStore?this.requestTaskStore(r,t?.sessionId):void 0,u={signal:a.signal,sessionId:t?.sessionId,_meta:r.params?._meta,sendNotification:async m=>{if(a.signal.aborted)return;let l={relatedRequestId:r.id};o&&(l.relatedTask={taskId:o}),await this.notification(m,l)},sendRequest:async(m,l,_)=>{if(a.signal.aborted)throw new A(M.ConnectionClosed,"Request was cancelled");let h={..._,relatedRequestId:r.id};o&&!h.relatedTask&&(h.relatedTask={taskId:o});let f=h.relatedTask?.taskId??o;return f&&p&&await p.updateTaskStatus(f,"input_required"),await this.request(m,l,h)},authInfo:n?.authInfo,requestId:r.id,requestInfo:n?.requestInfo,taskId:o,taskStore:p,taskRequestedTtl:s?.ttl,closeSSEStream:n?.closeSSEStream,closeStandaloneSSEStream:n?.closeStandaloneSSEStream};Promise.resolve().then(()=>{s&&this.assertTaskHandlerCapability(r.method)}).then(()=>i(r,u)).then(async m=>{if(a.signal.aborted)return;let l={result:m,jsonrpc:"2.0",id:r.id};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"response",message:l,timestamp:Date.now()},t?.sessionId):await t?.send(l)},async m=>{if(a.signal.aborted)return;let l={jsonrpc:"2.0",id:r.id,error:{code:Number.isSafeInteger(m.code)?m.code:M.InternalError,message:m.message??"Internal error",...m.data!==void 0&&{data:m.data}}};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"error",message:l,timestamp:Date.now()},t?.sessionId):await t?.send(l)}).catch(m=>this._onerror(new Error(`Failed to send response: ${m}`))).finally(()=>{this._requestHandlerAbortControllers.get(r.id)===a&&this._requestHandlerAbortControllers.delete(r.id)})}_onprogress(r){let{progressToken:n,...i}=r.params,t=Number(n),o=this._progressHandlers.get(t);if(!o){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(r)}`));return}let a=this._responseHandlers.get(t),s=this._timeoutInfo.get(t);if(s&&a&&s.resetTimeoutOnProgress)try{this._resetTimeout(t)}catch(p){this._responseHandlers.delete(t),this._progressHandlers.delete(t),this._cleanupTimeout(t),a(p);return}o(i)}_onresponse(r){let n=Number(r.id),i=this._requestResolvers.get(n);if(i){if(this._requestResolvers.delete(n),Nr(r))i(r);else{let a=new A(r.error.code,r.error.message,r.error.data);i(a)}return}let t=this._responseHandlers.get(n);if(t===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(r)}`));return}this._responseHandlers.delete(n),this._cleanupTimeout(n);let o=!1;if(Nr(r)&&r.result&&typeof r.result=="object"){let a=r.result;if(a.task&&typeof a.task=="object"){let s=a.task;typeof s.taskId=="string"&&(o=!0,this._taskProgressTokens.set(s.taskId,n))}}if(o||this._progressHandlers.delete(n),Nr(r))t(r);else{let a=A.fromError(r.error.code,r.error.message,r.error.data);t(a)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(r,n,i){let{task:t}=i??{};if(!t){try{yield{type:"result",result:await this.request(r,n,i)}}catch(a){yield{type:"error",error:a instanceof A?a:new A(M.InternalError,String(a))}}return}let o;try{let a=await this.request(r,qo,i);if(a.task)o=a.task.taskId,yield{type:"taskCreated",task:a.task};else throw new A(M.InternalError,"Task creation did not return a task");for(;;){let s=await this.getTask({taskId:o},i);if(yield{type:"taskStatus",task:s},Ze(s.status)){s.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:o},n,i)}:s.status==="failed"?yield{type:"error",error:new A(M.InternalError,`Task ${o} failed`)}:s.status==="cancelled"&&(yield{type:"error",error:new A(M.InternalError,`Task ${o} was cancelled`)});return}if(s.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:o},n,i)};return}let p=s.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(u=>setTimeout(u,p)),i?.signal?.throwIfAborted()}}catch(a){yield{type:"error",error:a instanceof A?a:new A(M.InternalError,String(a))}}}request(r,n,i){let{relatedRequestId:t,resumptionToken:o,onresumptiontoken:a,task:s,relatedTask:p}=i??{};return new Promise((u,m)=>{let l=y=>{m(y)};if(!this._transport){l(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(r.method),s&&this.assertTaskCapability(r.method)}catch(y){l(y);return}i?.signal?.throwIfAborted();let _=this._requestMessageId++,h={...r,jsonrpc:"2.0",id:_};i?.onprogress&&(this._progressHandlers.set(_,i.onprogress),h.params={...r.params,_meta:{...r.params?._meta||{},progressToken:_}}),s&&(h.params={...h.params,task:s}),p&&(h.params={...h.params,_meta:{...h.params?._meta||{},[Ce]:p}});let f=y=>{this._responseHandlers.delete(_),this._progressHandlers.delete(_),this._cleanupTimeout(_),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:_,reason:String(y)}},{relatedRequestId:t,resumptionToken:o,onresumptiontoken:a}).catch(U=>this._onerror(new Error(`Failed to send cancellation: ${U}`)));let P=y instanceof A?y:new A(M.RequestTimeout,String(y));m(P)};this._responseHandlers.set(_,y=>{if(!i?.signal?.aborted){if(y instanceof Error)return m(y);try{let P=to(n,y.result);P.success?u(P.data):m(P.error)}catch(P){m(P)}}}),i?.signal?.addEventListener("abort",()=>{f(i?.signal?.reason)});let b=i?.timeout??c_,$=()=>f(A.fromError(M.RequestTimeout,"Request timed out",{timeout:b}));this._setupTimeout(_,b,i?.maxTotalTimeout,$,i?.resetTimeoutOnProgress??!1);let N=p?.taskId;if(N){let y=P=>{let U=this._responseHandlers.get(_);U?U(P):this._onerror(new Error(`Response handler missing for side-channeled request ${_}`))};this._requestResolvers.set(_,y),this._enqueueTaskMessage(N,{type:"request",message:h,timestamp:Date.now()}).catch(P=>{this._cleanupTimeout(_),m(P)})}else this._transport.send(h,{relatedRequestId:t,resumptionToken:o,onresumptiontoken:a}).catch(y=>{this._cleanupTimeout(_),m(y)})})}async getTask(r,n){return this.request({method:"tasks/get",params:r},Wo,n)}async getTaskResult(r,n,i){return this.request({method:"tasks/result",params:r},n,i)}async listTasks(r,n){return this.request({method:"tasks/list",params:r},Jo,n)}async cancelTask(r,n){return this.request({method:"tasks/cancel",params:r},Dm,n)}async notification(r,n){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(r.method);let i=n?.relatedTask?.taskId;if(i){let s={...r,jsonrpc:"2.0",params:{...r.params,_meta:{...r.params?._meta||{},[Ce]:n.relatedTask}}};await this._enqueueTaskMessage(i,{type:"notification",message:s,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(r.method)&&!r.params&&!n?.relatedRequestId&&!n?.relatedTask){if(this._pendingDebouncedNotifications.has(r.method))return;this._pendingDebouncedNotifications.add(r.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(r.method),!this._transport)return;let s={...r,jsonrpc:"2.0"};n?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[Ce]:n.relatedTask}}}),this._transport?.send(s,n).catch(p=>this._onerror(p))});return}let a={...r,jsonrpc:"2.0"};n?.relatedTask&&(a={...a,params:{...a.params,_meta:{...a.params?._meta||{},[Ce]:n.relatedTask}}}),await this._transport.send(a,n)}setRequestHandler(r,n){let i=xl(r);this.assertRequestHandlerCapability(i),this._requestHandlers.set(i,(t,o)=>{let a=$l(r,t);return Promise.resolve(n(a,o))})}removeRequestHandler(r){this._requestHandlers.delete(r)}assertCanSetRequestHandler(r){if(this._requestHandlers.has(r))throw new Error(`A request handler for ${r} already exists, which would be overridden`)}setNotificationHandler(r,n){let i=xl(r);this._notificationHandlers.set(i,t=>{let o=$l(r,t);return Promise.resolve(n(o))})}removeNotificationHandler(r){this._notificationHandlers.delete(r)}_cleanupTaskProgressHandler(r){let n=this._taskProgressTokens.get(r);n!==void 0&&(this._progressHandlers.delete(n),this._taskProgressTokens.delete(r))}async _enqueueTaskMessage(r,n,i){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let t=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(r,n,i,t)}async _clearTaskQueue(r,n){if(this._taskMessageQueue){let i=await this._taskMessageQueue.dequeueAll(r,n);for(let t of i)if(t.type==="request"&&il(t.message)){let o=t.message.id,a=this._requestResolvers.get(o);a?(a(new A(M.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(o)):this._onerror(new Error(`Resolver missing for request ${o} during task ${r} cleanup`))}}}async _waitForTaskUpdate(r,n){let i=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(r);t?.pollInterval&&(i=t.pollInterval)}catch{}return new Promise((t,o)=>{if(n.aborted){o(new A(M.InvalidRequest,"Request cancelled"));return}let a=setTimeout(t,i);n.addEventListener("abort",()=>{clearTimeout(a),o(new A(M.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(r,n){let i=this._taskStore;if(!i)throw new Error("No task store configured");return{createTask:async t=>{if(!r)throw new Error("No request provided");return await i.createTask(t,r.id,{method:r.method,params:r.params},n)},getTask:async t=>{let o=await i.getTask(t,n);if(!o)throw new A(M.InvalidParams,"Failed to retrieve task: Task not found");return o},storeTaskResult:async(t,o,a)=>{await i.storeTaskResult(t,o,a,n);let s=await i.getTask(t,n);if(s){let p=Dr.parse({method:"notifications/tasks/status",params:s});await this.notification(p),Ze(s.status)&&this._cleanupTaskProgressHandler(t)}},getTaskResult:t=>i.getTaskResult(t,n),updateTaskStatus:async(t,o,a)=>{let s=await i.getTask(t,n);if(!s)throw new A(M.InvalidParams,`Task "${t}" not found - it may have been cleaned up`);if(Ze(s.status))throw new A(M.InvalidParams,`Cannot update task "${t}" from terminal status "${s.status}" to "${o}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await i.updateTaskStatus(t,o,a,n);let p=await i.getTask(t,n);if(p){let u=Dr.parse({method:"notifications/tasks/status",params:p});await this.notification(u),Ze(p.status)&&this._cleanupTaskProgressHandler(t)}},listTasks:t=>i.listTasks(t,n)}}};function Fm(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function qm(e,r){let n={...e};for(let i in r){let t=i,o=r[t];if(o===void 0)continue;let a=n[t];Fm(a)&&Fm(o)?n[t]={...a,...o}:n[t]=o}return n}Pr();Pr();var dS=(e=>typeof Fe<"u"?Fe:typeof Proxy<"u"?new Proxy(e,{get:(r,n)=>(typeof Fe<"u"?Fe:r)[n]}):e)(function(e){if(typeof Fe<"u")return Fe.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),kl=class extends Qo{constructor(){super(...arguments);L(this,"_registeredMethods",new Set);L(this,"_eventSlots",new Map);L(this,"setRequestHandler",(n,i)=>{this._assertMethodNotRegistered(n,"setRequestHandler"),super.setRequestHandler(n,i)});L(this,"setNotificationHandler",(n,i)=>{this._assertMethodNotRegistered(n,"setNotificationHandler"),super.setNotificationHandler(n,i)});L(this,"replaceRequestHandler",(n,i)=>{let t=n.shape.method.value;this._registeredMethods.add(t),super.setRequestHandler(n,i)})}onEventDispatch(n,i){}_ensureEventSlot(n){let i=this._eventSlots.get(n);if(!i){let t=this.eventSchemas[n];if(!t)throw Error(`Unknown event: ${String(n)}`);i={listeners:[]},this._eventSlots.set(n,i);let o=t.shape.method.value;this._registeredMethods.add(o);let a=i;super.setNotificationHandler(t,s=>{let p=s.params;this.onEventDispatch(n,p),a.onHandler?.(p);for(let u of[...a.listeners])u(p)})}return i}setEventHandler(n,i){let t=this._ensureEventSlot(n);t.onHandler&&i&&console.warn(`[MCP Apps] on${String(n)} handler replaced. Use addEventListener("${String(n)}", \u2026) to add multiple listeners without replacing.`),t.onHandler=i}getEventHandler(n){return this._eventSlots.get(n)?.onHandler}addEventListener(n,i){this._ensureEventSlot(n).listeners.push(i)}removeEventListener(n,i){let t=this._eventSlots.get(n);if(!t)return;let o=t.listeners.indexOf(i);o!==-1&&t.listeners.splice(o,1)}warnIfRequestHandlerReplaced(n,i,t){i&&t&&console.warn(`[MCP Apps] ${n} handler replaced. Previous handler will no longer be called.`)}_assertMethodNotRegistered(n,i){let t=n.shape.method.value;if(this._registeredMethods.has(t))throw Error(`Handler for "${t}" already registered (via ${i}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(t)}},l_="2026-01-26";var u_="ui/notifications/tool-input-partial";var zl=class{constructor(r=window.parent,n){L(this,"eventTarget");L(this,"eventSource");L(this,"messageListener");L(this,"onclose");L(this,"onerror");L(this,"onmessage");L(this,"sessionId");L(this,"setProtocolVersion");this.eventTarget=r,this.eventSource=n,this.messageListener=i=>{if(n&&i.source!==this.eventSource){console.debug("Ignoring message from unknown source",i);return}let t=Em.safeParse(i.data);t.success?(console.debug("Parsed message",t.data),this.onmessage?.(t.data)):i.data?.jsonrpc!=="2.0"?console.debug("Ignoring non-JSON-RPC message",t.error.message,i):(console.error("Failed to parse message",t.error.message,i),this.onerror?.(Error("Invalid JSON-RPC message received: "+t.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(r,n){r.method!==u_&&console.debug("Sending message",r),this.eventTarget.postMessage(r,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}},p_=c.union([c.literal("light"),c.literal("dark")]).describe("Color theme preference for the host environment."),Zr=c.union([c.literal("inline"),c.literal("fullscreen"),c.literal("pip")]).describe("Display mode for UI presentation."),d_=c.union([c.literal("--color-background-primary"),c.literal("--color-background-secondary"),c.literal("--color-background-tertiary"),c.literal("--color-background-inverse"),c.literal("--color-background-ghost"),c.literal("--color-background-info"),c.literal("--color-background-danger"),c.literal("--color-background-success"),c.literal("--color-background-warning"),c.literal("--color-background-disabled"),c.literal("--color-text-primary"),c.literal("--color-text-secondary"),c.literal("--color-text-tertiary"),c.literal("--color-text-inverse"),c.literal("--color-text-ghost"),c.literal("--color-text-info"),c.literal("--color-text-danger"),c.literal("--color-text-success"),c.literal("--color-text-warning"),c.literal("--color-text-disabled"),c.literal("--color-border-primary"),c.literal("--color-border-secondary"),c.literal("--color-border-tertiary"),c.literal("--color-border-inverse"),c.literal("--color-border-ghost"),c.literal("--color-border-info"),c.literal("--color-border-danger"),c.literal("--color-border-success"),c.literal("--color-border-warning"),c.literal("--color-border-disabled"),c.literal("--color-ring-primary"),c.literal("--color-ring-secondary"),c.literal("--color-ring-inverse"),c.literal("--color-ring-info"),c.literal("--color-ring-danger"),c.literal("--color-ring-success"),c.literal("--color-ring-warning"),c.literal("--font-sans"),c.literal("--font-mono"),c.literal("--font-weight-normal"),c.literal("--font-weight-medium"),c.literal("--font-weight-semibold"),c.literal("--font-weight-bold"),c.literal("--font-text-xs-size"),c.literal("--font-text-sm-size"),c.literal("--font-text-md-size"),c.literal("--font-text-lg-size"),c.literal("--font-heading-xs-size"),c.literal("--font-heading-sm-size"),c.literal("--font-heading-md-size"),c.literal("--font-heading-lg-size"),c.literal("--font-heading-xl-size"),c.literal("--font-heading-2xl-size"),c.literal("--font-heading-3xl-size"),c.literal("--font-text-xs-line-height"),c.literal("--font-text-sm-line-height"),c.literal("--font-text-md-line-height"),c.literal("--font-text-lg-line-height"),c.literal("--font-heading-xs-line-height"),c.literal("--font-heading-sm-line-height"),c.literal("--font-heading-md-line-height"),c.literal("--font-heading-lg-line-height"),c.literal("--font-heading-xl-line-height"),c.literal("--font-heading-2xl-line-height"),c.literal("--font-heading-3xl-line-height"),c.literal("--border-radius-xs"),c.literal("--border-radius-sm"),c.literal("--border-radius-md"),c.literal("--border-radius-lg"),c.literal("--border-radius-xl"),c.literal("--border-radius-full"),c.literal("--border-width-regular"),c.literal("--shadow-hairline"),c.literal("--shadow-sm"),c.literal("--shadow-md"),c.literal("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),m_=c.record(d_.describe(`Style variables for theming MCP apps.
|
|
870
|
+
|
|
871
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
872
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
873
|
+
|
|
874
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
875
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),c.union([c.string(),c.undefined()]).describe(`Style variables for theming MCP apps.
|
|
876
|
+
|
|
877
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
878
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
879
|
+
|
|
880
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
881
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.
|
|
882
|
+
|
|
883
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
884
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
885
|
+
|
|
886
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
887
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),bS=c.object({method:c.literal("ui/open-link"),params:c.object({url:c.string().describe("URL to open in the host's browser")})}),f_=c.object({isError:c.boolean().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),g_=c.object({isError:c.boolean().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),h_=c.object({isError:c.boolean().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough(),yS=c.object({method:c.literal("ui/notifications/sandbox-proxy-ready"),params:c.object({})}),Sl=c.object({connectDomains:c.array(c.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
|
|
888
|
+
|
|
889
|
+
- Maps to CSP \`connect-src\` directive
|
|
890
|
+
- Empty or omitted \u2192 no network connections (secure default)`),resourceDomains:c.array(c.string()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted \u2192 no network resources (secure default)"),frameDomains:c.array(c.string()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted \u2192 no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:c.array(c.string()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted \u2192 only same origin allowed (`base-uri 'self'`)")}),wl=c.object({camera:c.object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:c.object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:c.object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:c.object({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")}),xS=c.object({method:c.literal("ui/notifications/size-changed"),params:c.object({width:c.number().optional().describe("New width in pixels."),height:c.number().optional().describe("New height in pixels.")})}),v_=c.object({method:c.literal("ui/notifications/tool-input"),params:c.object({arguments:c.record(c.string(),c.unknown().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),__=c.object({method:c.literal("ui/notifications/tool-input-partial"),params:c.object({arguments:c.record(c.string(),c.unknown().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),b_=c.object({method:c.literal("ui/notifications/tool-cancelled"),params:c.object({reason:c.string().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),y_=c.object({fonts:c.string().optional()}),x_=c.object({variables:m_.optional().describe("CSS variables for theming the app."),css:y_.optional().describe("CSS blocks that apps can inject.")}),$_=c.object({method:c.literal("ui/resource-teardown"),params:c.object({})}),$S=c.record(c.string(),c.unknown()),Hm=c.object({text:c.object({}).optional().describe("Host supports text content blocks."),image:c.object({}).optional().describe("Host supports image content blocks."),audio:c.object({}).optional().describe("Host supports audio content blocks."),resource:c.object({}).optional().describe("Host supports resource content blocks."),resourceLink:c.object({}).optional().describe("Host supports resource link content blocks."),structuredContent:c.object({}).optional().describe("Host supports structured content.")}),kS=c.object({method:c.literal("ui/notifications/request-teardown"),params:c.object({}).optional()}),k_=c.object({experimental:c.object({}).optional().describe("Experimental features (structure TBD)."),openLinks:c.object({}).optional().describe("Host supports opening external URLs."),downloadFile:c.object({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:c.object({listChanged:c.boolean().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:c.object({listChanged:c.boolean().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:c.object({}).optional().describe("Host accepts log messages."),sandbox:c.object({permissions:wl.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:Sl.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:Hm.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:Hm.optional().describe("Host supports receiving content messages (ui/message) from the view."),sampling:c.object({tools:c.object({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),z_=c.object({experimental:c.object({}).optional().describe("Experimental features (structure TBD)."),tools:c.object({listChanged:c.boolean().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:c.array(Zr).optional().describe("Display modes the app supports.")}),zS=c.object({method:c.literal("ui/notifications/initialized"),params:c.object({}).optional()}),SS=c.object({csp:Sl.optional().describe("Content Security Policy configuration for UI resources."),permissions:wl.optional().describe("Sandbox permissions requested by the UI resource."),domain:c.string().optional().describe(`Dedicated origin for view sandbox.
|
|
891
|
+
|
|
892
|
+
Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
|
|
893
|
+
|
|
894
|
+
**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:
|
|
895
|
+
- Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
|
|
896
|
+
- URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
|
|
897
|
+
|
|
898
|
+
If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:c.boolean().optional().describe(`Visual boundary preference - true if view prefers a visible border.
|
|
899
|
+
|
|
900
|
+
Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
|
|
901
|
+
|
|
902
|
+
- \`true\`: request visible border + background
|
|
903
|
+
- \`false\`: request no visible border + background
|
|
904
|
+
- omitted: host decides border`)}),wS=c.object({method:c.literal("ui/request-display-mode"),params:c.object({mode:Zr.describe("The display mode being requested.")})}),S_=c.object({mode:Zr.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),w_=c.union([c.literal("model"),c.literal("app")]).describe("Tool visibility scope - who can access the tool."),IS=c.object({resourceUri:c.string().optional(),visibility:c.array(w_).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
905
|
+
- "model": Tool visible to and callable by the agent
|
|
906
|
+
- "app": Tool callable by the app from this server only`),csp:c.never().optional(),permissions:c.never().optional()}),PS=c.object({mimeTypes:c.array(c.string()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),jS=c.object({method:c.literal("ui/download-file"),params:c.object({contents:c.array(c.union([gl,hl])).describe("Resource contents to download \u2014 embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),NS=c.object({method:c.literal("ui/message"),params:c.object({role:c.literal("user").describe('Message role, currently only "user" is supported.'),content:c.array(Ct).describe("Message content blocks (text, image, etc.).")})}),TS=c.object({method:c.literal("ui/notifications/sandbox-resource-ready"),params:c.object({html:c.string().describe("HTML content to load into the inner iframe."),sandbox:c.string().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:Sl.optional().describe("CSP configuration from resource metadata."),permissions:wl.optional().describe("Sandbox permissions from resource metadata.")})}),I_=c.object({method:c.literal("ui/notifications/tool-result"),params:Zt.describe("Standard MCP tool execution result.")}),Bm=c.object({toolInfo:c.object({id:Et.optional().describe("JSON-RPC id of the tools/call request."),tool:Go.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:p_.optional().describe("Current color theme preference."),styles:x_.optional().describe("Style configuration for theming the app."),displayMode:Zr.optional().describe("How the UI is currently displayed."),availableDisplayModes:c.array(Zr).optional().describe("Display modes the host supports."),containerDimensions:c.union([c.object({height:c.number().describe("Fixed container height in pixels.")}),c.object({maxHeight:c.union([c.number(),c.undefined()]).optional().describe("Maximum container height in pixels.")})]).and(c.union([c.object({width:c.number().describe("Fixed container width in pixels.")}),c.object({maxWidth:c.union([c.number(),c.undefined()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
907
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:c.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:c.string().optional().describe("User's timezone in IANA format."),userAgent:c.string().optional().describe("Host application identifier."),platform:c.union([c.literal("web"),c.literal("desktop"),c.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:c.object({touch:c.boolean().optional().describe("Whether the device supports touch input."),hover:c.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:c.object({top:c.number().describe("Top safe area inset in pixels."),right:c.number().describe("Right safe area inset in pixels."),bottom:c.number().describe("Bottom safe area inset in pixels."),left:c.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),P_=c.object({method:c.literal("ui/notifications/host-context-changed"),params:Bm.describe("Partial context update containing only changed fields.")}),OS=c.object({method:c.literal("ui/update-model-context"),params:c.object({content:c.array(Ct).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:c.record(c.string(),c.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),RS=c.object({method:c.literal("ui/initialize"),params:c.object({appInfo:Or.describe("App identification (name and version)."),appCapabilities:z_.describe("Features and capabilities this app provides."),protocolVersion:c.string().describe("Protocol version this app supports.")})}),j_=c.object({protocolVersion:c.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:Or.describe("Host application identification and version."),hostCapabilities:k_.describe("Features and capabilities provided by the host."),hostContext:Bm.describe("Rich context about the host environment.")}).passthrough(),N_={target:"draft-2020-12"};async function Wm(e,r){let n=e["~standard"];if(n.jsonSchema)return n.jsonSchema[r](N_);if(n.vendor==="zod"){let{z:i}=await Promise.resolve().then(()=>(Pr(),rl));return i.toJSONSchema(e,{io:r})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function Vm(e,r,n=""){let i=await e["~standard"].validate(r);if(i.issues){let t=i.issues.map(o=>{let a=o.path?.map(s=>typeof s=="object"?s.key:s).join(".");return a?`${a}: ${o.message}`:o.message}).join("; ");throw Error(n+t)}return i.value}function Jm(e,r=document.documentElement){for(let[n,i]of Object.entries(e))i!==void 0&&r.style.setProperty(n,i)}function Km(e){if(document.getElementById("__mcp-host-fonts"))return;let r=document.createElement("style");r.id="__mcp-host-fonts",r.textContent=e,document.head.appendChild(r)}var Xo=class Xo extends kl{constructor(n,i={},t={autoResize:!0}){super(t);L(this,"_appInfo");L(this,"_capabilities");L(this,"options");L(this,"_hostCapabilities");L(this,"_hostInfo");L(this,"_hostContext");L(this,"_registeredTools",{});L(this,"_initializedSent",!1);L(this,"eventSchemas",{toolinput:v_,toolinputpartial:__,toolresult:I_,toolcancelled:b_,hostcontextchanged:P_});L(this,"_everHadListener",new Set);L(this,"_toolHandlersInitialized",!1);L(this,"_onteardown");L(this,"_oncalltool");L(this,"_onlisttools");L(this,"sendOpenLink",this.openLink);this._appInfo=n,this._capabilities=i,this.options=t,t.allowUnsafeEval||c.config({jitless:!0}),this.setRequestHandler(Dt,o=>(console.log("Received ping:",o.params),{})),this.setEventHandler("hostcontextchanged",void 0)}_assertInitialized(n){if(this._initializedSent)return;let i=`[ext-apps] App.${n}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(i);console.warn(`${i}. This will throw in a future release.`)}_assertHandlerTiming(n){if(!Xo.ONE_SHOT_EVENTS.has(n)||this._everHadListener.has(n)||(this._everHadListener.add(n),!this._initializedSent))return;let i=`[ext-apps] "${String(n)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(i);console.warn(i)}setEventHandler(n,i){i&&this._assertHandlerTiming(n),super.setEventHandler(n,i)}addEventListener(n,i){this._assertHandlerTiming(n),super.addEventListener(n,i)}onEventDispatch(n,i){n==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...i})}registerCapabilities(n){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=qm(this._capabilities,n)}registerTool(n,i,t){if(this._registeredTools[n])throw Error(`Tool ${n} is already registered`);let o=this,a=()=>{o._initializedSent&&o._capabilities.tools?.listChanged&&o.sendToolListChanged()},s=i.inputSchema!==void 0,p={title:i.title,description:i.description,inputSchema:i.inputSchema,outputSchema:i.outputSchema,annotations:i.annotations,_meta:i._meta,enabled:!0,enable(){this.enabled=!0,a()},disable(){this.enabled=!1,a()},update(u){Object.assign(this,u),a()},remove(){o._registeredTools[n]===p&&(delete o._registeredTools[n],a())},handler:async(u,m)=>{if(!p.enabled)throw Error(`Tool ${n} is disabled`);let l;if(s){let _=p.inputSchema,h=_?await Vm(_,u??{},`Invalid input for tool ${n}: `):u??{};l=await t(h,m)}else l=await t(m);return p.outputSchema&&!l.isError&&(l.structuredContent=await Vm(p.outputSchema,l.structuredContent,`Invalid output for tool ${n}: `)),l}};return this._registeredTools[n]=p,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),a(),p}ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(n,i)=>{let t=this._registeredTools[n.name];if(!t)throw Error(`Tool ${n.name} not found`);return t.handler(n.arguments,i)},this.onlisttools=async(n,i)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([t,o])=>o.enabled).map(async([t,o])=>{let a={name:t,title:o.title,description:o.description,inputSchema:o.inputSchema?await Wm(o.inputSchema,"input"):{type:"object",properties:{}}};return o.outputSchema&&(a.outputSchema=await Wm(o.outputSchema,"output")),o.annotations&&(a.annotations=o.annotations),o._meta&&(a._meta=o._meta),a}))}))}async sendToolListChanged(n={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:n})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(n){this.setEventHandler("toolinput",n)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(n){this.setEventHandler("toolinputpartial",n)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(n){this.setEventHandler("toolresult",n)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(n){this.setEventHandler("toolcancelled",n)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(n){this.setEventHandler("hostcontextchanged",n)}get onteardown(){return this._onteardown}set onteardown(n){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,n),this._onteardown=n,this.replaceRequestHandler($_,(i,t)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(i.params,t)})}get oncalltool(){return this._oncalltool}set oncalltool(n){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,n),this._oncalltool=n,this.replaceRequestHandler(_l,(i,t)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(i.params,t)})}get onlisttools(){return this._onlisttools}set onlisttools(n){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,n),this._onlisttools=n,this.replaceRequestHandler(vl,(i,t)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(i.params,t)})}assertCapabilityForMethod(n){switch(n){case"sampling/createMessage":if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${n})`);break}}assertRequestHandlerCapability(n){switch(n){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${n})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${n} registered`)}}assertNotificationCapability(n){}assertTaskCapability(n){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(n){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(n,i){if(this._assertInitialized("callServerTool"),typeof n=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${n}"). Did you mean: callServerTool({ name: "${n}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:n},Zt,{onprogress:()=>{},resetTimeoutOnProgress:!0,...i})}async readServerResource(n,i){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:n},pl,i)}async listServerResources(n,i){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:n},ll,i)}async createSamplingMessage(n,i){this._assertInitialized("createSamplingMessage");let t=n.tools?yl:bl;return await this.request({method:"sampling/createMessage",params:n},t,i)}sendMessage(n,i){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:n},h_,i)}sendLog(n){return this.notification({method:"notifications/message",params:n})}updateModelContext(n,i){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:n},Lo,i)}openLink(n,i){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:n},f_,i)}downloadFile(n,i){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:n},g_,i)}requestTeardown(n={}){return this.notification({method:"ui/notifications/request-teardown",params:n})}requestDisplayMode(n,i){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:n},S_,i)}sendSizeChanged(n){return this.notification({method:"ui/notifications/size-changed",params:n})}setupSizeChangedNotifications(){let n=!1,i=0,t=0,o=()=>{n||(n=!0,requestAnimationFrame(()=>{n=!1;let s=document.documentElement,p=s.style.height;s.style.height="max-content";let u=Math.ceil(s.getBoundingClientRect().height);s.style.height=p;let m=Math.ceil(window.innerWidth);(m!==i||u!==t)&&(i=m,t=u,this.sendSizeChanged({width:m,height:u}))}))};o();let a=new ResizeObserver(o);return a.observe(document.documentElement),a.observe(document.body),()=>a.disconnect()}async connect(n=new zl(window.parent,window.parent),i){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(n);try{let t=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:l_}},j_,i);if(t===void 0)throw Error(`Server sent invalid initialize result: ${t}`);this._hostCapabilities=t.hostCapabilities,this._hostInfo=t.hostInfo,this._hostContext=t.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(t){throw this.close(),t}}};L(Xo,"ONE_SHOT_EVENTS",new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]));var Yo=Xo;function T_(e){if(!e)return;let r=e.trim().toLowerCase(),n,i,t,o=/^#([0-9a-f]{3}|[0-9a-f]{6})$/.exec(r)?.[1];if(o){let a=o.length===3?o.split("").map(s=>s+s).join(""):o;n=parseInt(a.slice(0,2),16),i=parseInt(a.slice(2,4),16),t=parseInt(a.slice(4,6),16)}else{let a=/^rgba?\(\s*([\d.]+)[ ,]+([\d.]+)[ ,]+([\d.]+)/.exec(r);a&&([n,i,t]=[Number(a[1]),Number(a[2]),Number(a[3])]);let s=/^hsla?\(\s*[\d.]+[ ,]+[\d.]+%?[ ,]+([\d.]+)%/.exec(r);if(s)return Number(s[1])/100}if(!(n===void 0||i===void 0||t===void 0))return(.2126*n+.7152*i+.0722*t)/255}function Gm(e){if(!e)return;let r=document.documentElement,n=e.theme==="dark"||e.theme==="light"?e.theme:void 0,i=e.styles?.variables;if(!n&&i){let t=T_(i["--color-background-primary"]??i["--color-background-secondary"]);t!==void 0&&(n=t<.5?"dark":"light")}n&&(r.classList.toggle("dark",n==="dark"),r.classList.toggle("light",n==="light"),r.style.colorScheme=n);try{i&&Jm(i),e.styles?.css?.fonts&&Km(e.styles.css.fonts)}catch{}console.debug("[np-widget] theme:",e.theme,"->",n??"os-fallback","| tokens:",!!i,"| fonts:",!!e.styles?.css?.fonts)}function Qm(e){let[r,n]=xe(null),[i,t]=xe(!1),o=Yr(null);Qr(()=>{let u=new Yo({name:e,version:"0.3.0"},{},{autoResize:!0});o.current=u,u.ontoolresult=m=>n(m),u.onhostcontextchanged=m=>Gm(m),u.connect().then(()=>{Gm(u.getHostContext()),t(!0)}).catch(()=>t(!1))},[e]);let a=Wt(async(u,m)=>{if(!o.current)throw new Error("not connected");return await o.current.callServerTool({name:u,arguments:m})},[]),s=Wt(u=>{o.current?.sendMessage({role:"user",content:[{type:"text",text:u}]}).catch(()=>{})},[]),p=Wt(u=>{try{o.current?.updateModelContext({content:[{type:"text",text:u}]}).catch(()=>{})}catch{}},[]);return{result:r,call:a,send:s,brief:p,connected:i}}var O_={"confirm.yes":"Yes, do it","confirm.no":"Cancel","chooser.pick":"pick a scope:","term.empty":"no output yet\u2026","term.copyLine":"copy line",hint:"Next:",loadMore:"Load more","panel.scopes":"Scopes","panel.releases":"Releases","panel.latestBuild":"Latest build","panel.noScopes":"No scopes yet \u2014 create one to have somewhere to deploy.","panel.scopePlaceholder":"scope name, e.g. dev","panel.typePlaceholder":"type\u2026","panel.createScope":"Create scope","panel.ship":"ship","panel.live":"live","panel.openRollout":"Open rollout","panel.nothingDeployed":"nothing deployed","panel.noReleases":"none yet","panel.noBuild":"none \u2014 push a commit so CI builds","panel.deployLatest":"Deploy latest","panel.logs":"Logs","panel.metrics":"Metrics","panel.pickType":"Pick a scope type and create again.","panel.waitingData":"waiting for data\u2026","panel.backToList":"apps","rollout.deployingTo":"Deploying to {scope}","rollout.release":"release","rollout.backToApp":"app","rollout.trafficLabel":"Traffic on new version","rollout.live":"{pct}% live","rollout.movingTo":"moving to {pct}%","rollout.move":"Move traffic","rollout.finalize":"Finalize","rollout.rollback":"Rollback","rollout.confirmFinalize":"Finalize and retire the old version?","rollout.confirmRollback":"Return ALL traffic to the previous version?","rollout.log":"Deployment log","rollout.waiting":"waiting for activity\u2026","rollout.failed":"Failed: {message}","rollout.deployment":"Deployment #{id}","rollout.busyMove":"Moving traffic\u2026","rollout.busyFinalize":"Finalizing\u2026","rollout.busyRollback":"Rolling back\u2026","rollout.autoDone":"Done \u2014 the release is fully live.","rollout.autoRolledBack":"Rolled back \u2014 previous version is serving traffic.","rollout.autoFailed":"Deployment failed \u2014 previous version keeps serving.","rollout.autoWaiting":"Waiting for instances \u2014 controls unlock when the rollout is running.","rollout.autoFull":"All traffic on the new version \u2014 finalize to retire the old one.","rollout.autoLabel":"Auto-advance","rollout.autoOff":"off","rollout.trafficHelp":"Drag to move traffic now; auto-advance ramps it to 100%.","rollout.appLogs":"Application logs","rollout.appLogsEmpty":"no application logs yet\u2026","logs.title":"{app} \xB7 logs","logs.heading":"Logs","logs.filter":"filter\u2026","logs.live":"live","logs.refresh":"Refresh","logs.updated":"updated {time}","logs.wrap":"Wrap","logs.copyAll":"Copy all","logs.copied":"Copied","logs.rangeLive":"Live","logs.range15m":"Last 15m","logs.range1h":"Last 1h","logs.range6h":"Last 6h","logs.range24h":"Last 24h","logs.rangeCustom":"Custom\u2026","logs.apply":"Apply","logs.from":"From","logs.to":"To","logs.empty":"no log lines yet\u2026","logs.noMatch":"nothing matches the filter","logs.count":"{count} line(s){scope}","logs.scopeSuffix":" \xB7 scope {scope}","logs.refreshFailed":"refresh failed: {message}","metrics.title":"{app} \xB7 {scope} metrics","metrics.heading":"Metrics","metrics.live":"live","metrics.loading":"loading {window}\u2026","metrics.refreshFailed":"refresh failed: {message}","metrics.noData":"no datapoints in this window","metrics.avgMax":"avg {avg} \xB7 max {max}","params.title":"{app} \xB7 parameters","params.heading":"Parameters","params.name":"Name","params.value":"Value","params.secret":"Secret","params.add":"+ Add","params.save":"Save changes","params.applyNote":"Changed values apply on the next deploy.","params.unavailable":"Existing values can't be listed here \u2014 new ones can still be added below.","params.saving":"Saving {count} parameter(s)\u2026","params.saved":"Saved \u2014 values apply on the next deploy.","params.saveFailed":"Save failed: {message}","createApp.title":"Create application","createApp.name":"Name","createApp.namespace":"Namespace","createApp.repository":"Repository","createApp.newRepo":"New repository","createApp.importRepo":"Import existing","createApp.template":"Template","createApp.noTemplates":"No templates available","createApp.repoUrl":"Repository URL","createApp.editName":"Customize the repository name","createApp.lockName":"Reset to the generated name","createApp.importUrl":"Existing repository URL","createApp.monorepo":"This repository is a monorepo","createApp.appPath":"Application path inside the repository","createApp.submit":"Create application","createApp.needName":"Name is required.","createApp.needNamespace":"Pick a namespace.","createApp.needTemplate":"Pick a template for the new repository.","createApp.needImportUrl":"Enter the repository URL to import.","createApp.noBaseUrl":"This account has no git provider configured \u2014 use \u201CImport existing\u201D.","createApp.creating":"Creating {name}\u2026 (links the repo, wires CI \u2014 takes a few seconds)","createApp.failed":"Failed: {message}","createApp.created":`{name} created (#{id}, {status}).
|
|
908
|
+
Push a commit to trigger the first build, then deploy.`,"findApps.count":"{count} application(s)","findApps.filter":"filter\u2026","findApps.across":"across {ns} namespace(s)","findApps.noMatch":"Nothing matches the filter.","findApps.loadMore":"Load {more} more","findApps.hint":"Click an application to open its panel.","buildsW.title":"{app} \xB7 {count} build(s)","buildsW.none":"No builds yet \u2014 push a commit so CI produces one.","buildsW.buildTitle":"Build #{id}","buildsW.back":"Builds","buildsW.loadingAssets":"Loading assets\u2026","buildsW.noAssets":"No assets \u2014 the build may still be running.","buildsW.asset":"Asset","buildsW.assetType":"Type","buildsW.newRelease":"New release","buildsW.confirmRelease":"Cut a release from this build?","buildsW.creatingRelease":"Creating a release from build #{id}\u2026","buildsW.releaseDone":"Release {semver} created.","releasesW.title":"{app} \xB7 {count} release(s)","releasesW.none":"No releases yet.","releasesW.deploy":"Deploy","deploymentsW.title":"{app} \xB7 {count} deployment(s)","deploymentsW.none":"No deployments yet.","deploymentsW.group":"{count} scopes","approvalsW.title":"{app} \xB7 {count} approval(s)","approvalsW.none":"No pending approvals.","approvalsW.approve":"Approve","approvalsW.cancel":"Cancel","approvalsW.confirmApprove":"Let this gated action proceed?","approvalsW.confirmCancel":"Cancel this approval request?","approvalsW.by":"by {who}","approvalsW.approved":"Approved {id}.","approvalsW.cancelled":"Cancelled {id}.","overviewW.title":"Org health \xB7 {count} app(s) scanned","overviewW.truncated":"showing the first apps \u2014 narrow with a query for the rest","overviewW.active":"Mid-rollout ({count})","overviewW.noActive":"Nothing deploying right now.","overviewW.trouble":"Needs attention ({count})","overviewW.noTrouble":"No failed or rolled-back scopes.","servicesW.title":"{app} \xB7 {count} dependency(ies)","servicesW.none":"No dependencies attached.","servicesW.catalog":"Available to provision","servicesW.dashboard":"Open in dashboard","servicesW.provisionHint":"Provisioning a dependency is a guided flow \u2014 open the dashboard to add one.","playbookW.title":"Operating playbooks","playbookW.catalogHint":"Pick a playbook to read.","playbookW.back":"Playbooks","playbookW.empty":"No playbooks available."},R_={"confirm.yes":"S\xED, hacelo","confirm.no":"Cancelar","chooser.pick":"eleg\xED un scope:","term.empty":"sin salida todav\xEDa\u2026","term.copyLine":"copiar l\xEDnea",hint:"Siguiente:",loadMore:"Cargar m\xE1s","panel.scopes":"Scopes","panel.releases":"Releases","panel.latestBuild":"\xDAltimo build","panel.noScopes":"Sin scopes todav\xEDa \u2014 cre\xE1 uno para tener d\xF3nde deployar.","panel.scopePlaceholder":"nombre del scope, p. ej. dev","panel.typePlaceholder":"tipo\u2026","panel.createScope":"Crear scope","panel.ship":"publicar","panel.live":"en vivo","panel.openRollout":"Abrir rollout","panel.nothingDeployed":"nada deployado","panel.noReleases":"ninguna todav\xEDa","panel.noBuild":"ninguno \u2014 pushe\xE1 un commit para que CI compile","panel.deployLatest":"Deployar lo \xFAltimo","panel.logs":"Logs","panel.metrics":"M\xE9tricas","panel.pickType":"Eleg\xED un tipo de scope y cre\xE1 de nuevo.","panel.waitingData":"esperando datos\u2026","panel.backToList":"apps","rollout.deployingTo":"Deployando a {scope}","rollout.release":"release","rollout.backToApp":"app","rollout.trafficLabel":"Tr\xE1fico en la versi\xF3n nueva","rollout.live":"{pct}% en vivo","rollout.movingTo":"yendo a {pct}%","rollout.move":"Mover tr\xE1fico","rollout.finalize":"Finalizar","rollout.rollback":"Revertir","rollout.confirmFinalize":"\xBFFinalizar y retirar la versi\xF3n anterior?","rollout.confirmRollback":"\xBFDevolver TODO el tr\xE1fico a la versi\xF3n anterior?","rollout.log":"Log del deployment","rollout.waiting":"esperando actividad\u2026","rollout.failed":"Fall\xF3: {message}","rollout.deployment":"Deployment #{id}","rollout.busyMove":"Moviendo tr\xE1fico\u2026","rollout.busyFinalize":"Finalizando\u2026","rollout.busyRollback":"Revirtiendo\u2026","rollout.autoDone":"Listo \u2014 la release est\xE1 completamente en vivo.","rollout.autoRolledBack":"Revertido \u2014 la versi\xF3n anterior est\xE1 sirviendo tr\xE1fico.","rollout.autoFailed":"El deployment fall\xF3 \u2014 la versi\xF3n anterior sigue sirviendo.","rollout.autoWaiting":"Esperando instancias \u2014 los controles se habilitan cuando el rollout est\xE1 corriendo.","rollout.autoFull":"Todo el tr\xE1fico en la versi\xF3n nueva \u2014 finaliz\xE1 para retirar la anterior.","rollout.autoLabel":"Auto-avance","rollout.autoOff":"off","rollout.trafficHelp":"Arrastr\xE1 para mover el tr\xE1fico ahora; el auto-avance sube hasta 100%.","rollout.appLogs":"Logs de la aplicaci\xF3n","rollout.appLogsEmpty":"sin logs de la aplicaci\xF3n todav\xEDa\u2026","logs.title":"{app} \xB7 logs","logs.heading":"Logs","logs.filter":"filtrar\u2026","logs.live":"vivo","logs.refresh":"Refrescar","logs.updated":"actualizado {time}","logs.wrap":"Ajustar","logs.copyAll":"Copiar todo","logs.copied":"Copiado","logs.rangeLive":"En vivo","logs.range15m":"\xDAltimos 15m","logs.range1h":"\xDAltima 1h","logs.range6h":"\xDAltimas 6h","logs.range24h":"\xDAltimas 24h","logs.rangeCustom":"Personalizado\u2026","logs.apply":"Aplicar","logs.from":"Desde","logs.to":"Hasta","logs.empty":"sin l\xEDneas de log todav\xEDa\u2026","logs.noMatch":"nada coincide con el filtro","logs.count":"{count} l\xEDnea(s){scope}","logs.scopeSuffix":" \xB7 scope {scope}","logs.refreshFailed":"fall\xF3 el refresh: {message}","metrics.title":"{app} \xB7 m\xE9tricas de {scope}","metrics.heading":"M\xE9tricas","metrics.live":"vivo","metrics.loading":"cargando {window}\u2026","metrics.refreshFailed":"fall\xF3 el refresh: {message}","metrics.noData":"sin datapoints en esta ventana","metrics.avgMax":"prom {avg} \xB7 m\xE1x {max}","params.title":"{app} \xB7 par\xE1metros","params.heading":"Par\xE1metros","params.name":"Nombre","params.value":"Valor","params.secret":"Secreto","params.add":"+ Agregar","params.save":"Guardar cambios","params.applyNote":"Los valores cambiados aplican en el pr\xF3ximo deploy.","params.unavailable":"Los valores existentes no se pueden listar ac\xE1 \u2014 igual pod\xE9s agregar nuevos abajo.","params.saving":"Guardando {count} par\xE1metro(s)\u2026","params.saved":"Guardado \u2014 los valores aplican en el pr\xF3ximo deploy.","params.saveFailed":"Fall\xF3 el guardado: {message}","createApp.title":"Crear aplicaci\xF3n","createApp.name":"Nombre","createApp.namespace":"Namespace","createApp.repository":"Repositorio","createApp.newRepo":"Nuevo repositorio","createApp.importRepo":"Importar existente","createApp.template":"Template","createApp.noTemplates":"Sin templates disponibles","createApp.repoUrl":"URL del repositorio","createApp.editName":"Personalizar el nombre del repositorio","createApp.lockName":"Volver al nombre generado","createApp.importUrl":"URL del repositorio existente","createApp.monorepo":"Este repositorio es un monorepo","createApp.appPath":"Ruta de la aplicaci\xF3n dentro del repositorio","createApp.submit":"Crear aplicaci\xF3n","createApp.needName":"El nombre es obligatorio.","createApp.needNamespace":"Eleg\xED un namespace.","createApp.needTemplate":"Eleg\xED un template para el nuevo repositorio.","createApp.needImportUrl":"Ingres\xE1 la URL del repositorio a importar.","createApp.noBaseUrl":"Esta cuenta no tiene proveedor de git configurado \u2014 us\xE1 \u201CImportar existente\u201D.","createApp.creating":"Creando {name}\u2026 (vincula el repo, conecta CI \u2014 tarda unos segundos)","createApp.failed":"Fall\xF3: {message}","createApp.created":`{name} creada (#{id}, {status}).
|
|
909
|
+
Pushe\xE1 un commit para disparar el primer build y despu\xE9s deploy\xE1.`,"findApps.count":"{count} aplicaci\xF3n(es)","findApps.filter":"filtrar\u2026","findApps.across":"en {ns} namespace(s)","findApps.noMatch":"Nada coincide con el filtro.","findApps.loadMore":"Cargar {more} m\xE1s","findApps.hint":"Hac\xE9 clic en una aplicaci\xF3n para abrir su panel.","buildsW.title":"{app} \xB7 {count} build(s)","buildsW.none":"Todav\xEDa no hay builds \u2014 pushe\xE1 un commit para que CI genere uno.","buildsW.buildTitle":"Build #{id}","buildsW.back":"Builds","buildsW.loadingAssets":"Cargando assets\u2026","buildsW.noAssets":"Sin assets \u2014 el build puede estar compilando todav\xEDa.","buildsW.asset":"Asset","buildsW.assetType":"Tipo","buildsW.newRelease":"Nuevo release","buildsW.confirmRelease":"\xBFCortar un release desde este build?","buildsW.creatingRelease":"Creando un release desde el build #{id}\u2026","buildsW.releaseDone":"Release {semver} creado.","releasesW.title":"{app} \xB7 {count} release(s)","releasesW.none":"Todav\xEDa no hay releases.","releasesW.deploy":"Deployar","deploymentsW.title":"{app} \xB7 {count} deployment(s)","deploymentsW.none":"Todav\xEDa no hay deployments.","deploymentsW.group":"{count} scopes","approvalsW.title":"{app} \xB7 {count} aprobaci\xF3n(es)","approvalsW.none":"No hay aprobaciones pendientes.","approvalsW.approve":"Aprobar","approvalsW.cancel":"Cancelar","approvalsW.confirmApprove":"\xBFDejar que la acci\xF3n bloqueada contin\xFAe?","approvalsW.confirmCancel":"\xBFCancelar esta solicitud de aprobaci\xF3n?","approvalsW.by":"por {who}","approvalsW.approved":"Aprobada {id}.","approvalsW.cancelled":"Cancelada {id}.","overviewW.title":"Salud del org \xB7 {count} app(s) escaneadas","overviewW.truncated":"mostrando las primeras apps \u2014 filtr\xE1 con una b\xFAsqueda para el resto","overviewW.active":"En despliegue ({count})","overviewW.noActive":"Nada despleg\xE1ndose ahora.","overviewW.trouble":"Requiere atenci\xF3n ({count})","overviewW.noTrouble":"Ning\xFAn scope fall\xF3 ni se revirti\xF3.","servicesW.title":"{app} \xB7 {count} dependencia(s)","servicesW.none":"No hay dependencias adjuntas.","servicesW.catalog":"Disponibles para aprovisionar","servicesW.dashboard":"Abrir en el dashboard","servicesW.provisionHint":"Aprovisionar una dependencia es un flujo guiado \u2014 abr\xED el dashboard para agregar una.","playbookW.title":"Playbooks operativos","playbookW.catalogHint":"Eleg\xED un playbook para leer.","playbookW.back":"Playbooks","playbookW.empty":"No hay playbooks disponibles."},U_={en:O_,es:R_};function Ym(e){return e?.structuredContent?._locale==="es"?"es":"en"}function Xm(e){let r=U_[e];return(n,i)=>r[n].replace(/\{(\w+)\}/g,(t,o)=>i?.[o]!==void 0?String(i[o]):t)}var ef=Jr(Xm("en")),tf=ef.Provider,rf=()=>mi(ef),nf=e=>Xm(e);function of(e){return{render:function(r){gu(r,e)},unmount:function(){vu(e)}}}function af(e){let r=document.getElementById("root");r&&of(r).render(e)}var E_=0;function k(e,r,n,i,t,o){r||(r={});var a,s,p=r;if("ref"in p)for(s in p={},r)s=="ref"?a=r[s]:p[s]=r[s];var u={type:e,props:p,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--E_,__i:-1,__u:0,__source:t,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)p[s]===void 0&&(p[s]=a[s]);return R.vnode&&R.vnode(u),u}var Il=({children:e})=>k("div",{className:"card",children:e}),sf=({children:e})=>k("div",{className:"row",children:e}),cf=({title:e,sub:r,right:n})=>k(sf,{children:[k("div",{className:"grow",children:[k("div",{className:"title",children:e}),r?k("div",{className:"sub",children:r}):null]}),n]});var lf=({status:e})=>k("span",{className:`pill ${xu(e)}`,children:[$u(e)?k("span",{className:"spin","aria-hidden":!0}):null,_u(e)||"\u2026"]}),Pl=({tone:e,children:r})=>k("div",{className:`note${e?` ${e}`:""}`,children:r});var Lr=({variant:e,on:r,className:n,...i})=>k("button",{className:[e,r?"on":"",n].filter(Boolean).join(" "),...i});var jl=({text:e,onYes:r,children:n})=>{let i=rf(),[t,o]=xe(!1);return t?k("span",{className:"row",style:{gap:8},children:[k("span",{style:{fontSize:13},children:e}),k(Lr,{variant:"danger",onClick:()=>{o(!1),r()},children:i("confirm.yes")}),k(Lr,{onClick:()=>o(!1),children:i("confirm.no")})]}):k("span",{onClickCapture:a=>{a.stopPropagation(),o(!0)},children:n})},G=({w:e="100%",h:r=12,r:n=6})=>k("div",{className:"skel",style:{width:e,height:r,borderRadius:n}}),uf=({variant:e})=>k(Il,{children:[k(sf,{children:[k(G,{w:170,h:16}),e!=="form"&&k(re,{children:[k("div",{className:"grow"}),k(G,{w:110,h:28,r:8})]})]}),e==="list"&&k("div",{className:"skel-rows",children:[0,1,2,3,4,5].map(r=>k("div",{className:"skel-row",children:[k(G,{w:8,h:8,r:999}),k(G,{w:140,h:13}),k("div",{className:"grow"}),k(G,{w:90,h:11})]},r))}),e==="panel"&&k(re,{children:[k("div",{className:"section",children:[k(G,{w:64,h:10}),k("div",{style:{marginTop:10,display:"flex",flexDirection:"column",gap:10},children:[0,1].map(r=>k("div",{className:"skel-card",children:[k(G,{w:r?"45%":"55%",h:14}),k("div",{style:{height:8}}),k(G,{w:r?"70%":"85%",h:11})]},r))})]}),k("div",{className:"section",children:[k(G,{w:64,h:10}),k("div",{style:{marginTop:10,display:"flex",gap:8},children:[0,1,2].map(r=>k(G,{w:72,h:24,r:999},r))})]}),k("div",{className:"section",style:{display:"flex",gap:8},children:[k(G,{w:132,h:34,r:9}),k(G,{w:80,h:34,r:9})]})]}),e==="table"&&k("div",{className:"skel-rows",children:[0,1,2,3].map(r=>k("div",{className:"skel-row",children:[k(G,{w:"30%",h:13}),k("div",{className:"grow"}),k(G,{w:"42%",h:13}),k(G,{w:18,h:13})]},r))}),e==="grid"&&k("div",{className:"skel-grid",children:[0,1,2,3].map(r=>k("div",{className:"skel-card",children:[k(G,{w:"50%",h:10}),k("div",{style:{height:8}}),k(G,{w:"35%",h:20}),k("div",{style:{height:8}}),k(G,{w:"100%",h:40,r:8})]},r))}),e==="logs"&&k("div",{style:{marginTop:14},children:k(G,{w:"100%",h:150,r:10})}),e==="form"&&k("div",{className:"skel-rows",children:[[0,1,2].map(r=>k("div",{children:[k(G,{w:88,h:10}),k("div",{style:{height:7}}),k(G,{w:"100%",h:32,r:8})]},r)),k(G,{w:150,h:34,r:9})]})]});var D_=new Set(["pending","creating_approval","requested"]);function A_(){let{result:e,call:r,brief:n}=Qm("np-approvals"),i=nf(Ym(e)),t=e?.structuredContent??{},o=t.app??null,[a,s]=xe(null),[p,u]=xe(""),[m,l]=xe({text:""});if(!e)return k(uf,{variant:"list"});let _=a??t.approvals??[],h=()=>{r(gi.applicationApprovalList,{app:o}).then(b=>s(b.structuredContent?.approvals??[])).catch(()=>{})},f=(b,$)=>{u(b.id),l({text:""}),r(gi.applicationApprovalList,{app:o,action:$,approval_id:b.id}).then(()=>{n($==="approve"?`[approvals] user approved approval ${b.id} in the widget \u2014 the gated action is unblocked; re-check the deployment with application_get.`:`[approvals] user cancelled approval ${b.id} in the widget \u2014 the gated action will not proceed.`),l({tone:"ok",text:i($==="approve"?"approvalsW.approved":"approvalsW.cancelled",{id:b.id})}),h()}).catch(N=>l({tone:"bad",text:ku(N)})).finally(()=>u(""))};return k(tf,{value:i,children:k(Il,{children:[k(cf,{title:i("approvalsW.title",{app:t.app_name??"",count:_.length})}),_.length===0?k(Pl,{children:i("approvalsW.none")}):_.map(b=>{let $=[b.action,b.requestedBy?i("approvalsW.by",{who:b.requestedBy}):"",hi(b.created_at)].filter(Boolean).join(" \xB7 ");return k("div",{className:"list-row",style:{cursor:"default"},children:[k(lf,{status:b.status}),k("div",{className:"grow",style:{minWidth:0},children:[k("div",{className:"app-name",children:b.entity??b.id}),$?k("div",{className:"sub",children:$}):null]}),D_.has(b.status)?k(re,{children:[k(jl,{text:i("approvalsW.confirmApprove"),onYes:()=>f(b,"approve"),children:k(Lr,{variant:"small",disabled:p!=="",children:i("approvalsW.approve")})}),k(jl,{text:i("approvalsW.confirmCancel"),onYes:()=>f(b,"cancel"),children:k(Lr,{variant:"danger",disabled:p!=="",children:i("approvalsW.cancel")})})]}):null]},b.id)}),k(Pl,{tone:m.tone,children:m.text})]})})}af(k(A_,{}));})();
|
|
910
|
+
</script></body></html>
|