od-support-chat 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4386 @@
1
+ import q, { createElement as mn } from "react";
2
+ import "react/jsx-runtime";
3
+ var B = function() {
4
+ return B = Object.assign || function(e) {
5
+ for (var r, n = 1, s = arguments.length; n < s; n++) {
6
+ r = arguments[n];
7
+ for (var i in r)
8
+ Object.prototype.hasOwnProperty.call(r, i) && (e[i] = r[i]);
9
+ }
10
+ return e;
11
+ }, B.apply(this, arguments);
12
+ };
13
+ function xe(t, e, r) {
14
+ if (r || arguments.length === 2)
15
+ for (var n = 0, s = e.length, i; n < s; n++)
16
+ (i || !(n in e)) && (i || (i = Array.prototype.slice.call(e, 0, n)), i[n] = e[n]);
17
+ return t.concat(i || Array.prototype.slice.call(e));
18
+ }
19
+ function gn(t) {
20
+ var e = /* @__PURE__ */ Object.create(null);
21
+ return function(r) {
22
+ return e[r] === void 0 && (e[r] = t(r)), e[r];
23
+ };
24
+ }
25
+ var yn = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, vn = /* @__PURE__ */ gn(
26
+ function(t) {
27
+ return yn.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91;
28
+ }
29
+ ), xn = {
30
+ animationIterationCount: 1,
31
+ aspectRatio: 1,
32
+ borderImageOutset: 1,
33
+ borderImageSlice: 1,
34
+ borderImageWidth: 1,
35
+ boxFlex: 1,
36
+ boxFlexGroup: 1,
37
+ boxOrdinalGroup: 1,
38
+ columnCount: 1,
39
+ columns: 1,
40
+ flex: 1,
41
+ flexGrow: 1,
42
+ flexPositive: 1,
43
+ flexShrink: 1,
44
+ flexNegative: 1,
45
+ flexOrder: 1,
46
+ gridRow: 1,
47
+ gridRowEnd: 1,
48
+ gridRowSpan: 1,
49
+ gridRowStart: 1,
50
+ gridColumn: 1,
51
+ gridColumnEnd: 1,
52
+ gridColumnSpan: 1,
53
+ gridColumnStart: 1,
54
+ msGridRow: 1,
55
+ msGridRowSpan: 1,
56
+ msGridColumn: 1,
57
+ msGridColumnSpan: 1,
58
+ fontWeight: 1,
59
+ lineHeight: 1,
60
+ opacity: 1,
61
+ order: 1,
62
+ orphans: 1,
63
+ scale: 1,
64
+ tabSize: 1,
65
+ widows: 1,
66
+ zIndex: 1,
67
+ zoom: 1,
68
+ WebkitLineClamp: 1,
69
+ fillOpacity: 1,
70
+ floodOpacity: 1,
71
+ stopOpacity: 1,
72
+ strokeDasharray: 1,
73
+ strokeDashoffset: 1,
74
+ strokeMiterlimit: 1,
75
+ strokeOpacity: 1,
76
+ strokeWidth: 1
77
+ }, j = "-ms-", Ve = "-moz-", O = "-webkit-", Rr = "comm", ht = "rule", Bt = "decl", _n = "@import", bn = "@namespace", Ir = "@keyframes", wn = "@layer", jr = Math.abs, Ut = String.fromCharCode, Ot = Object.assign;
78
+ function kn(t, e) {
79
+ return F(t, 0) ^ 45 ? (((e << 2 ^ F(t, 0)) << 2 ^ F(t, 1)) << 2 ^ F(t, 2)) << 2 ^ F(t, 3) : 0;
80
+ }
81
+ function Pr(t) {
82
+ return t.trim();
83
+ }
84
+ function ne(t, e) {
85
+ return (t = e.exec(t)) ? t[0] : t;
86
+ }
87
+ function b(t, e, r) {
88
+ return t.replace(e, r);
89
+ }
90
+ function et(t, e, r) {
91
+ return t.indexOf(e, r);
92
+ }
93
+ function F(t, e) {
94
+ return t.charCodeAt(e) | 0;
95
+ }
96
+ function _e(t, e, r) {
97
+ return t.slice(e, r);
98
+ }
99
+ function K(t) {
100
+ return t.length;
101
+ }
102
+ function $r(t) {
103
+ return t.length;
104
+ }
105
+ function De(t, e) {
106
+ return e.push(t), t;
107
+ }
108
+ function Sn(t, e) {
109
+ return t.map(e).join("");
110
+ }
111
+ function Jt(t, e) {
112
+ return t.filter(function(r) {
113
+ return !ne(r, e);
114
+ });
115
+ }
116
+ var pt = 1, Ae = 1, zr = 0, G = 0, M = 0, Pe = "";
117
+ function mt(t, e, r, n, s, i, a, o) {
118
+ return { value: t, root: e, parent: r, type: n, props: s, children: i, line: pt, column: Ae, length: a, return: "", siblings: o };
119
+ }
120
+ function ce(t, e) {
121
+ return Ot(mt("", null, null, "", null, null, 0, t.siblings), t, { length: -t.length }, e);
122
+ }
123
+ function Se(t) {
124
+ for (; t.root; )
125
+ t = ce(t.root, { children: [t] });
126
+ De(t, t.siblings);
127
+ }
128
+ function Cn() {
129
+ return M;
130
+ }
131
+ function An() {
132
+ return M = G > 0 ? F(Pe, --G) : 0, Ae--, M === 10 && (Ae = 1, pt--), M;
133
+ }
134
+ function Q() {
135
+ return M = G < zr ? F(Pe, G++) : 0, Ae++, M === 10 && (Ae = 1, pt++), M;
136
+ }
137
+ function ue() {
138
+ return F(Pe, G);
139
+ }
140
+ function tt() {
141
+ return G;
142
+ }
143
+ function gt(t, e) {
144
+ return _e(Pe, t, e);
145
+ }
146
+ function Be(t) {
147
+ switch (t) {
148
+ case 0:
149
+ case 9:
150
+ case 10:
151
+ case 13:
152
+ case 32:
153
+ return 5;
154
+ case 33:
155
+ case 43:
156
+ case 44:
157
+ case 47:
158
+ case 62:
159
+ case 64:
160
+ case 126:
161
+ case 59:
162
+ case 123:
163
+ case 125:
164
+ return 4;
165
+ case 58:
166
+ return 3;
167
+ case 34:
168
+ case 39:
169
+ case 40:
170
+ case 91:
171
+ return 2;
172
+ case 41:
173
+ case 93:
174
+ return 1;
175
+ }
176
+ return 0;
177
+ }
178
+ function Nn(t) {
179
+ return pt = Ae = 1, zr = K(Pe = t), G = 0, [];
180
+ }
181
+ function Tn(t) {
182
+ return Pe = "", t;
183
+ }
184
+ function kt(t) {
185
+ return Pr(gt(G - 1, Et(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
186
+ }
187
+ function On(t) {
188
+ for (; (M = ue()) && M < 33; )
189
+ Q();
190
+ return Be(t) > 2 || Be(M) > 3 ? "" : " ";
191
+ }
192
+ function En(t, e) {
193
+ for (; --e && Q() && !(M < 48 || M > 102 || M > 57 && M < 65 || M > 70 && M < 97); )
194
+ ;
195
+ return gt(t, tt() + (e < 6 && ue() == 32 && Q() == 32));
196
+ }
197
+ function Et(t) {
198
+ for (; Q(); )
199
+ switch (M) {
200
+ case t:
201
+ return G;
202
+ case 34:
203
+ case 39:
204
+ t !== 34 && t !== 39 && Et(M);
205
+ break;
206
+ case 40:
207
+ t === 41 && Et(t);
208
+ break;
209
+ case 92:
210
+ Q();
211
+ break;
212
+ }
213
+ return G;
214
+ }
215
+ function Rn(t, e) {
216
+ for (; Q() && t + M !== 47 + 10; )
217
+ if (t + M === 42 + 42 && ue() === 47)
218
+ break;
219
+ return "/*" + gt(e, G - 1) + "*" + Ut(t === 47 ? t : Q());
220
+ }
221
+ function In(t) {
222
+ for (; !Be(ue()); )
223
+ Q();
224
+ return gt(t, G);
225
+ }
226
+ function jn(t) {
227
+ return Tn(rt("", null, null, null, [""], t = Nn(t), 0, [0], t));
228
+ }
229
+ function rt(t, e, r, n, s, i, a, o, c) {
230
+ for (var d = 0, f = 0, w = a, Z = 0, P = 0, T = 0, E = 1, L = 1, D = 1, $ = 0, I = "", g = s, C = i, _ = n, p = I; L; )
231
+ switch (T = $, $ = Q()) {
232
+ case 40:
233
+ if (T != 108 && F(p, w - 1) == 58) {
234
+ et(p += b(kt($), "&", "&\f"), "&\f", jr(d ? o[d - 1] : 0)) != -1 && (D = -1);
235
+ break;
236
+ }
237
+ case 34:
238
+ case 39:
239
+ case 91:
240
+ p += kt($);
241
+ break;
242
+ case 9:
243
+ case 10:
244
+ case 13:
245
+ case 32:
246
+ p += On(T);
247
+ break;
248
+ case 92:
249
+ p += En(tt() - 1, 7);
250
+ continue;
251
+ case 47:
252
+ switch (ue()) {
253
+ case 42:
254
+ case 47:
255
+ De(Pn(Rn(Q(), tt()), e, r, c), c), (Be(T || 1) == 5 || Be(ue() || 1) == 5) && K(p) && _e(p, -1, void 0) !== " " && (p += " ");
256
+ break;
257
+ default:
258
+ p += "/";
259
+ }
260
+ break;
261
+ case 123 * E:
262
+ o[d++] = K(p) * D;
263
+ case 125 * E:
264
+ case 59:
265
+ case 0:
266
+ switch ($) {
267
+ case 0:
268
+ case 125:
269
+ L = 0;
270
+ case 59 + f:
271
+ D == -1 && (p = b(p, /\f/g, "")), P > 0 && (K(p) - w || E === 0 && T === 47) && De(P > 32 ? Qt(p + ";", n, r, w - 1, c) : Qt(b(p, " ", "") + ";", n, r, w - 2, c), c);
272
+ break;
273
+ case 59:
274
+ p += ";";
275
+ default:
276
+ if (De(_ = Kt(p, e, r, d, f, s, o, I, g = [], C = [], w, i), i), $ === 123)
277
+ if (f === 0)
278
+ rt(p, e, _, _, g, i, w, o, C);
279
+ else {
280
+ switch (Z) {
281
+ case 99:
282
+ if (F(p, 3) === 110)
283
+ break;
284
+ case 108:
285
+ if (F(p, 2) === 97)
286
+ break;
287
+ default:
288
+ f = 0;
289
+ case 100:
290
+ case 109:
291
+ case 115:
292
+ }
293
+ f ? rt(t, _, _, n && De(Kt(t, _, _, 0, 0, s, o, I, s, g = [], w, C), C), s, C, w, o, n ? g : C) : rt(p, _, _, _, [""], C, 0, o, C);
294
+ }
295
+ }
296
+ d = f = P = 0, E = D = 1, I = p = "", w = a;
297
+ break;
298
+ case 58:
299
+ w = 1 + K(p), P = T;
300
+ default:
301
+ if (E < 1) {
302
+ if ($ == 123)
303
+ --E;
304
+ else if ($ == 125 && E++ == 0 && An() == 125)
305
+ continue;
306
+ }
307
+ switch (p += Ut($), $ * E) {
308
+ case 38:
309
+ D = f > 0 ? 1 : (p += "\f", -1);
310
+ break;
311
+ case 44:
312
+ o[d++] = (K(p) - 1) * D, D = 1;
313
+ break;
314
+ case 64:
315
+ ue() === 45 && (p += kt(Q())), Z = ue(), f = w = K(I = p += In(tt())), $++;
316
+ break;
317
+ case 45:
318
+ T === 45 && K(p) == 2 && (E = 0);
319
+ }
320
+ }
321
+ return i;
322
+ }
323
+ function Kt(t, e, r, n, s, i, a, o, c, d, f, w) {
324
+ for (var Z = s - 1, P = s === 0 ? i : [""], T = $r(P), E = 0, L = 0, D = 0; E < n; ++E)
325
+ for (var $ = 0, I = _e(t, Z + 1, Z = jr(L = a[E])), g = t; $ < T; ++$)
326
+ (g = Pr(L > 0 ? P[$] + " " + I : b(I, /&\f/g, P[$]))) && (c[D++] = g);
327
+ return mt(t, e, r, s === 0 ? ht : o, c, d, f, w);
328
+ }
329
+ function Pn(t, e, r, n) {
330
+ return mt(t, e, r, Rr, Ut(Cn()), _e(t, 2, -2), 0, n);
331
+ }
332
+ function Qt(t, e, r, n, s) {
333
+ return mt(t, e, r, Bt, _e(t, 0, n), _e(t, n + 1, -1), n, s);
334
+ }
335
+ function Zr(t, e, r) {
336
+ switch (kn(t, e)) {
337
+ case 5103:
338
+ return O + "print-" + t + t;
339
+ case 5737:
340
+ case 4201:
341
+ case 3177:
342
+ case 3433:
343
+ case 1641:
344
+ case 4457:
345
+ case 2921:
346
+ case 5572:
347
+ case 6356:
348
+ case 5844:
349
+ case 3191:
350
+ case 6645:
351
+ case 3005:
352
+ case 4215:
353
+ case 6389:
354
+ case 5109:
355
+ case 5365:
356
+ case 5621:
357
+ case 3829:
358
+ case 6391:
359
+ case 5879:
360
+ case 5623:
361
+ case 6135:
362
+ case 4599:
363
+ return O + t + t;
364
+ case 4855:
365
+ return O + t.replace("add", "source-over").replace("substract", "source-out").replace("intersect", "source-in").replace("exclude", "xor") + t;
366
+ case 4789:
367
+ return Ve + t + t;
368
+ case 5349:
369
+ case 4246:
370
+ case 4810:
371
+ case 6968:
372
+ case 2756:
373
+ return O + t + Ve + t + j + t + t;
374
+ case 5936:
375
+ switch (F(t, e + 11)) {
376
+ case 114:
377
+ return O + t + j + b(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
378
+ case 108:
379
+ return O + t + j + b(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
380
+ case 45:
381
+ return O + t + j + b(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
382
+ }
383
+ case 6828:
384
+ case 4268:
385
+ case 2903:
386
+ return O + t + j + t + t;
387
+ case 6165:
388
+ return O + t + j + "flex-" + t + t;
389
+ case 5187:
390
+ return O + t + b(t, /(\w+).+(:[^]+)/, O + "box-$1$2" + j + "flex-$1$2") + t;
391
+ case 5443:
392
+ return O + t + j + "flex-item-" + b(t, /flex-|-self/g, "") + (ne(t, /flex-|baseline/) ? "" : j + "grid-row-" + b(t, /flex-|-self/g, "")) + t;
393
+ case 4675:
394
+ return O + t + j + "flex-line-pack" + b(t, /align-content|flex-|-self/g, "") + t;
395
+ case 5548:
396
+ return O + t + j + b(t, "shrink", "negative") + t;
397
+ case 5292:
398
+ return O + t + j + b(t, "basis", "preferred-size") + t;
399
+ case 6060:
400
+ return O + "box-" + b(t, "-grow", "") + O + t + j + b(t, "grow", "positive") + t;
401
+ case 4554:
402
+ return O + b(t, /([^-])(transform)/g, "$1" + O + "$2") + t;
403
+ case 6187:
404
+ return b(b(b(t, /(zoom-|grab)/, O + "$1"), /(image-set)/, O + "$1"), t, "") + t;
405
+ case 5495:
406
+ case 3959:
407
+ return b(t, /(image-set\([^]*)/, O + "$1$`$1");
408
+ case 4968:
409
+ return b(b(t, /(.+:)(flex-)?(.*)/, O + "box-pack:$3" + j + "flex-pack:$3"), /space-between/, "justify") + O + t + t;
410
+ case 4200:
411
+ if (!ne(t, /flex-|baseline/))
412
+ return j + "grid-column-align" + _e(t, e) + t;
413
+ break;
414
+ case 2592:
415
+ case 3360:
416
+ return j + b(t, "template-", "") + t;
417
+ case 4384:
418
+ case 3616:
419
+ return r && r.some(function(n, s) {
420
+ return e = s, ne(n.props, /grid-\w+-end/);
421
+ }) ? ~et(t + (r = r[e].value), "span", 0) ? t : j + b(t, "-start", "") + t + j + "grid-row-span:" + (~et(r, "span", 0) ? ne(r, /\d+/) : +ne(r, /\d+/) - +ne(t, /\d+/)) + ";" : j + b(t, "-start", "") + t;
422
+ case 4896:
423
+ case 4128:
424
+ return r && r.some(function(n) {
425
+ return ne(n.props, /grid-\w+-start/);
426
+ }) ? t : j + b(b(t, "-end", "-span"), "span ", "") + t;
427
+ case 4095:
428
+ case 3583:
429
+ case 4068:
430
+ case 2532:
431
+ return b(t, /(.+)-inline(.+)/, O + "$1$2") + t;
432
+ case 8116:
433
+ case 7059:
434
+ case 5753:
435
+ case 5535:
436
+ case 5445:
437
+ case 5701:
438
+ case 4933:
439
+ case 4677:
440
+ case 5533:
441
+ case 5789:
442
+ case 5021:
443
+ case 4765:
444
+ if (K(t) - 1 - e > 6)
445
+ switch (F(t, e + 1)) {
446
+ case 109:
447
+ if (F(t, e + 4) !== 45)
448
+ break;
449
+ case 102:
450
+ return b(t, /(.+:)(.+)-([^]+)/, "$1" + O + "$2-$3$1" + Ve + (F(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
451
+ case 115:
452
+ return ~et(t, "stretch", 0) ? Zr(b(t, "stretch", "fill-available"), e, r) + t : t;
453
+ }
454
+ break;
455
+ case 5152:
456
+ case 5920:
457
+ return b(t, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, s, i, a, o, c, d) {
458
+ return j + s + ":" + i + d + (a ? j + s + "-span:" + (o ? c : +c - +i) + d : "") + t;
459
+ });
460
+ case 4949:
461
+ if (F(t, e + 6) === 121)
462
+ return b(t, ":", ":" + O) + t;
463
+ break;
464
+ case 6444:
465
+ switch (F(t, F(t, 14) === 45 ? 18 : 11)) {
466
+ case 120:
467
+ return b(t, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + O + (F(t, 14) === 45 ? "inline-" : "") + "box$3$1" + O + "$2$3$1" + j + "$2box$3") + t;
468
+ case 100:
469
+ return b(t, ":", ":" + j) + t;
470
+ }
471
+ break;
472
+ case 5719:
473
+ case 2647:
474
+ case 2135:
475
+ case 3927:
476
+ case 2391:
477
+ return b(t, "scroll-", "scroll-snap-") + t;
478
+ }
479
+ return t;
480
+ }
481
+ function it(t, e) {
482
+ for (var r = "", n = 0; n < t.length; n++)
483
+ r += e(t[n], n, t, e) || "";
484
+ return r;
485
+ }
486
+ function $n(t, e, r, n) {
487
+ switch (t.type) {
488
+ case wn:
489
+ if (t.children.length)
490
+ break;
491
+ case _n:
492
+ case bn:
493
+ case Bt:
494
+ return t.return = t.return || t.value;
495
+ case Rr:
496
+ return "";
497
+ case Ir:
498
+ return t.return = t.value + "{" + it(t.children, n) + "}";
499
+ case ht:
500
+ if (!K(t.value = t.props.join(",")))
501
+ return "";
502
+ }
503
+ return K(r = it(t.children, n)) ? t.return = t.value + "{" + r + "}" : "";
504
+ }
505
+ function zn(t) {
506
+ var e = $r(t);
507
+ return function(r, n, s, i) {
508
+ for (var a = "", o = 0; o < e; o++)
509
+ a += t[o](r, n, s, i) || "";
510
+ return a;
511
+ };
512
+ }
513
+ function Zn(t) {
514
+ return function(e) {
515
+ e.root || (e = e.return) && t(e);
516
+ };
517
+ }
518
+ function Dn(t, e, r, n) {
519
+ if (t.length > -1 && !t.return)
520
+ switch (t.type) {
521
+ case Bt:
522
+ t.return = Zr(t.value, t.length, r);
523
+ return;
524
+ case Ir:
525
+ return it([ce(t, { value: b(t.value, "@", "@" + O) })], n);
526
+ case ht:
527
+ if (t.length)
528
+ return Sn(r = t.props, function(s) {
529
+ switch (ne(s, n = /(::plac\w+|:read-\w+)/)) {
530
+ case ":read-only":
531
+ case ":read-write":
532
+ Se(ce(t, { props: [b(s, /:(read-\w+)/, ":" + Ve + "$1")] })), Se(ce(t, { props: [s] })), Ot(t, { props: Jt(r, n) });
533
+ break;
534
+ case "::placeholder":
535
+ Se(ce(t, { props: [b(s, /:(plac\w+)/, ":" + O + "input-$1")] })), Se(ce(t, { props: [b(s, /:(plac\w+)/, ":" + Ve + "$1")] })), Se(ce(t, { props: [b(s, /:(plac\w+)/, j + "input-$1")] })), Se(ce(t, { props: [s] })), Ot(t, { props: Jt(r, n) });
536
+ break;
537
+ }
538
+ return "";
539
+ });
540
+ }
541
+ }
542
+ var be = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Dr = "active", Mr = "data-styled-version", yt = "6.3.12", Wt = `/*!sc*/
543
+ `, Fe = typeof window < "u" && typeof document < "u", Mn = Boolean(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Ln = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
544
+
545
+ `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
546
+
547
+ - Are you trying to reuse it across renders?
548
+ - Are you accidentally calling collectStyles twice?
549
+
550
+ `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
551
+
552
+ `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
553
+
554
+ - Does this error occur on the client and is your target falsy?
555
+ - Does this error occur on the server and is the sheet falsy?
556
+
557
+ `, 5: `The clone method cannot be used on the client!
558
+
559
+ - Are you running in a client-like environment on the server?
560
+ - Are you trying to run SSR on the client?
561
+
562
+ `, 6: `Trying to insert a new style tag, but the given Node is unmounted!
563
+
564
+ - Are you using a custom target that isn't mounted?
565
+ - Does your document not have a valid head element?
566
+ - Have you accidentally removed a style tag manually?
567
+
568
+ `, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
569
+
570
+ `, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
571
+
572
+ `, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
573
+
574
+ `, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
575
+
576
+ `, 14: `ThemeProvider: "theme" prop is required.
577
+
578
+ `, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
579
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
580
+ as for instance in your render method then you may be running into this limitation.
581
+
582
+ `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
583
+ Has styled-components' style tag been unmounted or altered by another script?
584
+ `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
585
+ function Vn() {
586
+ for (var t = [], e = 0; e < arguments.length; e++)
587
+ t[e] = arguments[e];
588
+ for (var r = t[0], n = [], s = 1, i = t.length; s < i; s += 1)
589
+ n.push(t[s]);
590
+ return n.forEach(function(a) {
591
+ r = r.replace(/%[a-z]/, a);
592
+ }), r;
593
+ }
594
+ function $e(t) {
595
+ for (var e = [], r = 1; r < arguments.length; r++)
596
+ e[r - 1] = arguments[r];
597
+ return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(e.length > 0 ? " Args: ".concat(e.join(", ")) : "")) : new Error(Vn.apply(void 0, xe([Ln[t]], e, !1)).trim());
598
+ }
599
+ var Fn = 1 << 30, nt = /* @__PURE__ */ new Map(), at = /* @__PURE__ */ new Map(), st = 1, Me = function(t) {
600
+ if (nt.has(t))
601
+ return nt.get(t);
602
+ for (; at.has(st); )
603
+ st++;
604
+ var e = st++;
605
+ if (process.env.NODE_ENV !== "production" && ((0 | e) < 0 || e > Fn))
606
+ throw $e(16, "".concat(e));
607
+ return nt.set(t, e), at.set(e, t), e;
608
+ }, Bn = function(t, e) {
609
+ st = e + 1, nt.set(t, e), at.set(e, t);
610
+ }, er = /invalid hook call/i, Ke = /* @__PURE__ */ new Set(), Un = function(t, e) {
611
+ if (process.env.NODE_ENV !== "production") {
612
+ var r = e ? ' with the id of "'.concat(e, '"') : "", n = "The component ".concat(t).concat(r, ` has been created dynamically.
613
+ `) + `You may see this warning because you've called styled inside another component.
614
+ To resolve this only create new StyledComponents outside of any render method and function component.
615
+ See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
616
+ `, s = console.error;
617
+ try {
618
+ var i = !0;
619
+ console.error = function(a) {
620
+ for (var o = [], c = 1; c < arguments.length; c++)
621
+ o[c - 1] = arguments[c];
622
+ er.test(a) ? (i = !1, Ke.delete(n)) : s.apply(void 0, xe([a], o, !1));
623
+ }, typeof q.useState == "function" && q.useState(null), i && !Ke.has(n) && (console.warn(n), Ke.add(n));
624
+ } catch (a) {
625
+ er.test(a.message) && Ke.delete(n);
626
+ } finally {
627
+ console.error = s;
628
+ }
629
+ }
630
+ }, qt = Object.freeze([]), Ne = Object.freeze({});
631
+ function Wn(t, e, r) {
632
+ return r === void 0 && (r = Ne), t.theme !== r.theme && t.theme || e || r.theme;
633
+ }
634
+ var Rt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "br", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]), qn = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Gn = /(^-|-$)/g;
635
+ function tr(t) {
636
+ return t.replace(qn, "-").replace(Gn, "");
637
+ }
638
+ var Yn = /(a)(d)/gi, rr = function(t) {
639
+ return String.fromCharCode(t + (t > 25 ? 39 : 97));
640
+ };
641
+ function It(t) {
642
+ var e, r = "";
643
+ for (e = Math.abs(t); e > 52; e = e / 52 | 0)
644
+ r = rr(e % 52) + r;
645
+ return (rr(e % 52) + r).replace(Yn, "$1-$2");
646
+ }
647
+ var St, de = function(t, e) {
648
+ for (var r = e.length; r; )
649
+ t = 33 * t ^ e.charCodeAt(--r);
650
+ return t;
651
+ }, Lr = function(t) {
652
+ return de(5381, t);
653
+ };
654
+ function Vr(t) {
655
+ return It(Lr(t) >>> 0);
656
+ }
657
+ function Fr(t) {
658
+ return process.env.NODE_ENV !== "production" && typeof t == "string" && t || t.displayName || t.name || "Component";
659
+ }
660
+ function Ct(t) {
661
+ return typeof t == "string" && (process.env.NODE_ENV === "production" || t.charAt(0) === t.charAt(0).toLowerCase());
662
+ }
663
+ var Br = typeof Symbol == "function" && Symbol.for, Ur = Br ? Symbol.for("react.memo") : 60115, Hn = Br ? Symbol.for("react.forward_ref") : 60112, Xn = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Jn = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Wr = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Kn = ((St = {})[Hn] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, St[Ur] = Wr, St);
664
+ function nr(t) {
665
+ return ("type" in (e = t) && e.type.$$typeof) === Ur ? Wr : "$$typeof" in t ? Kn[t.$$typeof] : Xn;
666
+ var e;
667
+ }
668
+ var Qn = Object.defineProperty, es = Object.getOwnPropertyNames, sr = Object.getOwnPropertySymbols, ts = Object.getOwnPropertyDescriptor, rs = Object.getPrototypeOf, ir = Object.prototype;
669
+ function qr(t, e, r) {
670
+ if (typeof e != "string") {
671
+ if (ir) {
672
+ var n = rs(e);
673
+ n && n !== ir && qr(t, n, r);
674
+ }
675
+ var s = es(e);
676
+ sr && (s = s.concat(sr(e)));
677
+ for (var i = nr(t), a = nr(e), o = 0; o < s.length; ++o) {
678
+ var c = s[o];
679
+ if (!(c in Jn || r && r[c] || a && c in a || i && c in i)) {
680
+ var d = ts(e, c);
681
+ try {
682
+ Qn(t, c, d);
683
+ } catch {
684
+ }
685
+ }
686
+ }
687
+ }
688
+ return t;
689
+ }
690
+ function Te(t) {
691
+ return typeof t == "function";
692
+ }
693
+ function Gt(t) {
694
+ return typeof t == "object" && "styledComponentId" in t;
695
+ }
696
+ function ye(t, e) {
697
+ return t && e ? "".concat(t, " ").concat(e) : t || e || "";
698
+ }
699
+ function jt(t, e) {
700
+ return t.join(e || "");
701
+ }
702
+ function Oe(t) {
703
+ return t !== null && typeof t == "object" && t.constructor.name === Object.name && !("props" in t && t.$$typeof);
704
+ }
705
+ function Pt(t, e, r) {
706
+ if (r === void 0 && (r = !1), !r && !Oe(t) && !Array.isArray(t))
707
+ return e;
708
+ if (Array.isArray(e))
709
+ for (var n = 0; n < e.length; n++)
710
+ t[n] = Pt(t[n], e[n]);
711
+ else if (Oe(e))
712
+ for (var n in e)
713
+ t[n] = Pt(t[n], e[n]);
714
+ return t;
715
+ }
716
+ function Yt(t, e) {
717
+ Object.defineProperty(t, "toString", { value: e });
718
+ }
719
+ var ns = function() {
720
+ function t(e) {
721
+ this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e, this._cGroup = 0, this._cIndex = 0;
722
+ }
723
+ return t.prototype.indexOfGroup = function(e) {
724
+ if (e === this._cGroup)
725
+ return this._cIndex;
726
+ var r = this._cIndex;
727
+ if (e > this._cGroup)
728
+ for (var n = this._cGroup; n < e; n++)
729
+ r += this.groupSizes[n];
730
+ else
731
+ for (n = this._cGroup - 1; n >= e; n--)
732
+ r -= this.groupSizes[n];
733
+ return this._cGroup = e, this._cIndex = r, r;
734
+ }, t.prototype.insertRules = function(e, r) {
735
+ if (e >= this.groupSizes.length) {
736
+ for (var n = this.groupSizes, s = n.length, i = s; e >= i; )
737
+ if ((i <<= 1) < 0)
738
+ throw $e(16, "".concat(e));
739
+ this.groupSizes = new Uint32Array(i), this.groupSizes.set(n), this.length = i;
740
+ for (var a = s; a < i; a++)
741
+ this.groupSizes[a] = 0;
742
+ }
743
+ for (var o = this.indexOfGroup(e + 1), c = 0, d = (a = 0, r.length); a < d; a++)
744
+ this.tag.insertRule(o, r[a]) && (this.groupSizes[e]++, o++, c++);
745
+ c > 0 && this._cGroup > e && (this._cIndex += c);
746
+ }, t.prototype.clearGroup = function(e) {
747
+ if (e < this.length) {
748
+ var r = this.groupSizes[e], n = this.indexOfGroup(e), s = n + r;
749
+ this.groupSizes[e] = 0;
750
+ for (var i = n; i < s; i++)
751
+ this.tag.deleteRule(n);
752
+ r > 0 && this._cGroup > e && (this._cIndex -= r);
753
+ }
754
+ }, t.prototype.getGroup = function(e) {
755
+ var r = "";
756
+ if (e >= this.length || this.groupSizes[e] === 0)
757
+ return r;
758
+ for (var n = this.groupSizes[e], s = this.indexOfGroup(e), i = s + n, a = s; a < i; a++)
759
+ r += this.tag.getRule(a) + Wt;
760
+ return r;
761
+ }, t;
762
+ }(), ss = "style[".concat(be, "][").concat(Mr, '="').concat(yt, '"]'), is = new RegExp("^".concat(be, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ar = function(t) {
763
+ return typeof ShadowRoot < "u" && t instanceof ShadowRoot || "host" in t && t.nodeType === 11;
764
+ }, $t = function(t) {
765
+ if (!t)
766
+ return document;
767
+ if (ar(t))
768
+ return t;
769
+ if ("getRootNode" in t) {
770
+ var e = t.getRootNode();
771
+ if (ar(e))
772
+ return e;
773
+ }
774
+ return document;
775
+ }, as = function(t, e, r) {
776
+ for (var n, s = r.split(","), i = 0, a = s.length; i < a; i++)
777
+ (n = s[i]) && t.registerName(e, n);
778
+ }, os = function(t, e) {
779
+ for (var r, n = ((r = e.textContent) !== null && r !== void 0 ? r : "").split(Wt), s = [], i = 0, a = n.length; i < a; i++) {
780
+ var o = n[i].trim();
781
+ if (o) {
782
+ var c = o.match(is);
783
+ if (c) {
784
+ var d = 0 | parseInt(c[1], 10), f = c[2];
785
+ d !== 0 && (Bn(f, d), as(t, f, c[3]), t.getTag().insertRules(d, s)), s.length = 0;
786
+ } else
787
+ s.push(o);
788
+ }
789
+ }
790
+ }, At = function(t) {
791
+ for (var e = $t(t.options.target).querySelectorAll(ss), r = 0, n = e.length; r < n; r++) {
792
+ var s = e[r];
793
+ s && s.getAttribute(be) !== Dr && (os(t, s), s.parentNode && s.parentNode.removeChild(s));
794
+ }
795
+ };
796
+ function cs() {
797
+ return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
798
+ }
799
+ var Gr = function(t) {
800
+ var e = document.head, r = t || e, n = document.createElement("style"), s = function(o) {
801
+ var c = Array.from(o.querySelectorAll("style[".concat(be, "]")));
802
+ return c[c.length - 1];
803
+ }(r), i = s !== void 0 ? s.nextSibling : null;
804
+ n.setAttribute(be, Dr), n.setAttribute(Mr, yt);
805
+ var a = cs();
806
+ return a && n.setAttribute("nonce", a), r.insertBefore(n, i), n;
807
+ }, ds = function() {
808
+ function t(e) {
809
+ this.element = Gr(e), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
810
+ var n;
811
+ if (r.sheet)
812
+ return r.sheet;
813
+ for (var s = (n = r.getRootNode().styleSheets) !== null && n !== void 0 ? n : document.styleSheets, i = 0, a = s.length; i < a; i++) {
814
+ var o = s[i];
815
+ if (o.ownerNode === r)
816
+ return o;
817
+ }
818
+ throw $e(17);
819
+ }(this.element), this.length = 0;
820
+ }
821
+ return t.prototype.insertRule = function(e, r) {
822
+ try {
823
+ return this.sheet.insertRule(r, e), this.length++, !0;
824
+ } catch {
825
+ return !1;
826
+ }
827
+ }, t.prototype.deleteRule = function(e) {
828
+ this.sheet.deleteRule(e), this.length--;
829
+ }, t.prototype.getRule = function(e) {
830
+ var r = this.sheet.cssRules[e];
831
+ return r && r.cssText ? r.cssText : "";
832
+ }, t;
833
+ }(), ls = function() {
834
+ function t(e) {
835
+ this.element = Gr(e), this.nodes = this.element.childNodes, this.length = 0;
836
+ }
837
+ return t.prototype.insertRule = function(e, r) {
838
+ if (e <= this.length && e >= 0) {
839
+ var n = document.createTextNode(r);
840
+ return this.element.insertBefore(n, this.nodes[e] || null), this.length++, !0;
841
+ }
842
+ return !1;
843
+ }, t.prototype.deleteRule = function(e) {
844
+ this.element.removeChild(this.nodes[e]), this.length--;
845
+ }, t.prototype.getRule = function(e) {
846
+ return e < this.length ? this.nodes[e].textContent : "";
847
+ }, t;
848
+ }(), us = function() {
849
+ function t(e) {
850
+ this.rules = [], this.length = 0;
851
+ }
852
+ return t.prototype.insertRule = function(e, r) {
853
+ return e <= this.length && (e === this.length ? this.rules.push(r) : this.rules.splice(e, 0, r), this.length++, !0);
854
+ }, t.prototype.deleteRule = function(e) {
855
+ this.rules.splice(e, 1), this.length--;
856
+ }, t.prototype.getRule = function(e) {
857
+ return e < this.length ? this.rules[e] : "";
858
+ }, t;
859
+ }(), or = Fe, fs = { isServer: !Fe, useCSSOMInjection: !Mn }, Yr = function() {
860
+ function t(e, r, n) {
861
+ e === void 0 && (e = Ne), r === void 0 && (r = {});
862
+ var s = this;
863
+ this.options = B(B({}, fs), e), this.gs = r, this.names = new Map(n), this.server = !!e.isServer, !this.server && Fe && or && (or = !1, At(this)), Yt(this, function() {
864
+ return function(i) {
865
+ for (var a = i.getTag(), o = a.length, c = "", d = function(w) {
866
+ var Z = function(D) {
867
+ return at.get(D);
868
+ }(w);
869
+ if (Z === void 0)
870
+ return "continue";
871
+ var P = i.names.get(Z);
872
+ if (P === void 0 || !P.size)
873
+ return "continue";
874
+ var T = a.getGroup(w);
875
+ if (T.length === 0)
876
+ return "continue";
877
+ var E = be + ".g" + w + '[id="' + Z + '"]', L = "";
878
+ P.forEach(function(D) {
879
+ D.length > 0 && (L += D + ",");
880
+ }), c += T + E + '{content:"' + L + '"}' + Wt;
881
+ }, f = 0; f < o; f++)
882
+ d(f);
883
+ return c;
884
+ }(s);
885
+ });
886
+ }
887
+ return t.registerId = function(e) {
888
+ return Me(e);
889
+ }, t.prototype.rehydrate = function() {
890
+ !this.server && Fe && At(this);
891
+ }, t.prototype.reconstructWithOptions = function(e, r) {
892
+ r === void 0 && (r = !0);
893
+ var n = new t(B(B({}, this.options), e), this.gs, r && this.names || void 0);
894
+ return !this.server && Fe && e.target !== this.options.target && $t(this.options.target) !== $t(e.target) && At(n), n;
895
+ }, t.prototype.allocateGSInstance = function(e) {
896
+ return this.gs[e] = (this.gs[e] || 0) + 1;
897
+ }, t.prototype.getTag = function() {
898
+ return this.tag || (this.tag = (e = function(r) {
899
+ var n = r.useCSSOMInjection, s = r.target;
900
+ return r.isServer ? new us(s) : n ? new ds(s) : new ls(s);
901
+ }(this.options), new ns(e)));
902
+ var e;
903
+ }, t.prototype.hasNameForId = function(e, r) {
904
+ var n, s;
905
+ return (s = (n = this.names.get(e)) === null || n === void 0 ? void 0 : n.has(r)) !== null && s !== void 0 && s;
906
+ }, t.prototype.registerName = function(e, r) {
907
+ Me(e);
908
+ var n = this.names.get(e);
909
+ n ? n.add(r) : this.names.set(e, /* @__PURE__ */ new Set([r]));
910
+ }, t.prototype.insertRules = function(e, r, n) {
911
+ this.registerName(e, r), this.getTag().insertRules(Me(e), n);
912
+ }, t.prototype.clearNames = function(e) {
913
+ this.names.has(e) && this.names.get(e).clear();
914
+ }, t.prototype.clearRules = function(e) {
915
+ this.getTag().clearGroup(Me(e)), this.clearNames(e);
916
+ }, t.prototype.clearTag = function() {
917
+ this.tag = void 0;
918
+ }, t;
919
+ }();
920
+ function hs(t, e) {
921
+ return e == null || typeof e == "boolean" || e === "" ? "" : typeof e != "number" || e === 0 || t in xn || t.startsWith("--") ? String(e).trim() : "".concat(e, "px");
922
+ }
923
+ var ps = function(t) {
924
+ return t >= "A" && t <= "Z";
925
+ };
926
+ function cr(t) {
927
+ for (var e = "", r = 0; r < t.length; r++) {
928
+ var n = t[r];
929
+ if (r === 1 && n === "-" && t[0] === "-")
930
+ return t;
931
+ ps(n) ? e += "-" + n.toLowerCase() : e += n;
932
+ }
933
+ return e.startsWith("ms-") ? "-" + e : e;
934
+ }
935
+ var Hr = Symbol.for("sc-keyframes");
936
+ function dr(t) {
937
+ return typeof t == "object" && t !== null && Hr in t;
938
+ }
939
+ var Xr = function(t) {
940
+ return t == null || t === !1 || t === "";
941
+ }, Jr = function(t) {
942
+ var e = [];
943
+ for (var r in t) {
944
+ var n = t[r];
945
+ t.hasOwnProperty(r) && !Xr(n) && (Array.isArray(n) && n.isCss || Te(n) ? e.push("".concat(cr(r), ":"), n, ";") : Oe(n) ? e.push.apply(e, xe(xe(["".concat(r, " {")], Jr(n), !1), ["}"], !1)) : e.push("".concat(cr(r), ": ").concat(hs(r, n), ";")));
946
+ }
947
+ return e;
948
+ };
949
+ function ve(t, e, r, n, s) {
950
+ if (s === void 0 && (s = []), typeof t == "string")
951
+ return t && s.push(t), s;
952
+ if (Xr(t))
953
+ return s;
954
+ if (Gt(t))
955
+ return s.push(".".concat(t.styledComponentId)), s;
956
+ if (Te(t)) {
957
+ if (!Te(a = t) || a.prototype && a.prototype.isReactComponent || !e)
958
+ return s.push(t), s;
959
+ var i = t(e);
960
+ return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || dr(i) || Oe(i) || i === null || console.error("".concat(Fr(t), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), ve(i, e, r, n, s);
961
+ }
962
+ var a;
963
+ if (dr(t))
964
+ return r ? (t.inject(r, n), s.push(t.getName(n))) : s.push(t), s;
965
+ if (Oe(t)) {
966
+ for (var o = Jr(t), c = 0; c < o.length; c++)
967
+ s.push(o[c]);
968
+ return s;
969
+ }
970
+ if (!Array.isArray(t))
971
+ return s.push(t.toString()), s;
972
+ for (c = 0; c < t.length; c++)
973
+ ve(t[c], e, r, n, s);
974
+ return s;
975
+ }
976
+ function ms(t) {
977
+ for (var e = 0; e < t.length; e += 1) {
978
+ var r = t[e];
979
+ if (Te(r) && !Gt(r))
980
+ return !1;
981
+ }
982
+ return !0;
983
+ }
984
+ var gs = Lr(yt), ys = function() {
985
+ function t(e, r, n) {
986
+ this.rules = e, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && ms(e), this.componentId = r, this.baseHash = de(gs, r), this.baseStyle = n, Yr.registerId(r);
987
+ }
988
+ return t.prototype.generateAndInjectStyles = function(e, r, n) {
989
+ var s = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, r, n).className : "";
990
+ if (this.isStatic && !n.hash)
991
+ if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId))
992
+ s = ye(s, this.staticRulesId);
993
+ else {
994
+ var i = jt(ve(this.rules, e, r, n)), a = It(de(this.baseHash, i) >>> 0);
995
+ if (!r.hasNameForId(this.componentId, a)) {
996
+ var o = n(i, ".".concat(a), void 0, this.componentId);
997
+ r.insertRules(this.componentId, a, o);
998
+ }
999
+ s = ye(s, a), this.staticRulesId = a;
1000
+ }
1001
+ else {
1002
+ for (var c = de(this.baseHash, n.hash), d = "", f = 0; f < this.rules.length; f++) {
1003
+ var w = this.rules[f];
1004
+ if (typeof w == "string")
1005
+ d += w, process.env.NODE_ENV !== "production" && (c = de(c, w));
1006
+ else if (w) {
1007
+ var Z = jt(ve(w, e, r, n));
1008
+ c = de(de(c, String(f)), Z), d += Z;
1009
+ }
1010
+ }
1011
+ if (d) {
1012
+ var P = It(c >>> 0);
1013
+ if (!r.hasNameForId(this.componentId, P)) {
1014
+ var T = n(d, ".".concat(P), void 0, this.componentId);
1015
+ r.insertRules(this.componentId, P, T);
1016
+ }
1017
+ s = ye(s, P);
1018
+ }
1019
+ }
1020
+ return { className: s, css: typeof window > "u" ? r.getTag().getGroup(Me(this.componentId)) : "" };
1021
+ }, t;
1022
+ }(), vs = /&/g, se = 47, ge = 42;
1023
+ function lr(t) {
1024
+ if (t.indexOf("}") === -1)
1025
+ return !1;
1026
+ for (var e = t.length, r = 0, n = 0, s = !1, i = 0; i < e; i++) {
1027
+ var a = t.charCodeAt(i);
1028
+ if (n !== 0 || s || a !== se || t.charCodeAt(i + 1) !== ge)
1029
+ if (s)
1030
+ a === ge && t.charCodeAt(i + 1) === se && (s = !1, i++);
1031
+ else if (a !== 34 && a !== 39 || i !== 0 && t.charCodeAt(i - 1) === 92) {
1032
+ if (n === 0) {
1033
+ if (a === 123)
1034
+ r++;
1035
+ else if (a === 125 && --r < 0)
1036
+ return !0;
1037
+ }
1038
+ } else
1039
+ n === 0 ? n = a : n === a && (n = 0);
1040
+ else
1041
+ s = !0, i++;
1042
+ }
1043
+ return r !== 0 || n !== 0;
1044
+ }
1045
+ function Kr(t, e) {
1046
+ return t.map(function(r) {
1047
+ return r.type === "rule" && (r.value = "".concat(e, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(e, " ")), r.props = r.props.map(function(n) {
1048
+ return "".concat(e, " ").concat(n);
1049
+ })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = Kr(r.children, e)), r;
1050
+ });
1051
+ }
1052
+ function xs(t) {
1053
+ var e, r, n, s = t === void 0 ? Ne : t, i = s.options, a = i === void 0 ? Ne : i, o = s.plugins, c = o === void 0 ? qt : o, d = function(T, E, L) {
1054
+ return L.startsWith(r) && L.endsWith(r) && L.replaceAll(r, "").length > 0 ? ".".concat(e) : T;
1055
+ }, f = c.slice();
1056
+ f.push(function(T) {
1057
+ T.type === ht && T.value.includes("&") && (n || (n = new RegExp("\\".concat(r, "\\b"), "g")), T.props[0] = T.props[0].replace(vs, r).replace(n, d));
1058
+ }), a.prefix && f.push(Dn), f.push($n);
1059
+ var w = [], Z = zn(f.concat(Zn(function(T) {
1060
+ return w.push(T);
1061
+ }))), P = function(T, E, L, D) {
1062
+ E === void 0 && (E = ""), L === void 0 && (L = ""), D === void 0 && (D = "&"), e = D, r = E, n = void 0;
1063
+ var $ = function(g) {
1064
+ if (!lr(g))
1065
+ return g;
1066
+ for (var C = g.length, _ = "", p = 0, y = 0, V = 0, H = !1, R = 0; R < C; R++) {
1067
+ var X = g.charCodeAt(R);
1068
+ if (V !== 0 || H || X !== se || g.charCodeAt(R + 1) !== ge)
1069
+ if (H)
1070
+ X === ge && g.charCodeAt(R + 1) === se && (H = !1, R++);
1071
+ else if (X !== 34 && X !== 39 || R !== 0 && g.charCodeAt(R - 1) === 92) {
1072
+ if (V === 0)
1073
+ if (X === 123)
1074
+ y++;
1075
+ else if (X === 125) {
1076
+ if (--y < 0) {
1077
+ for (var J = R + 1; J < C; ) {
1078
+ var Ge = g.charCodeAt(J);
1079
+ if (Ge === 59 || Ge === 10)
1080
+ break;
1081
+ J++;
1082
+ }
1083
+ J < C && g.charCodeAt(J) === 59 && J++, y = 0, R = J - 1, p = J;
1084
+ continue;
1085
+ }
1086
+ y === 0 && (_ += g.substring(p, R + 1), p = R + 1);
1087
+ } else
1088
+ X === 59 && y === 0 && (_ += g.substring(p, R + 1), p = R + 1);
1089
+ } else
1090
+ V === 0 ? V = X : V === X && (V = 0);
1091
+ else
1092
+ H = !0, R++;
1093
+ }
1094
+ if (p < C) {
1095
+ var Ye = g.substring(p);
1096
+ lr(Ye) || (_ += Ye);
1097
+ }
1098
+ return _;
1099
+ }(function(g) {
1100
+ if (g.indexOf("//") === -1)
1101
+ return g;
1102
+ for (var C = g.length, _ = [], p = 0, y = 0, V = 0, H = 0; y < C; ) {
1103
+ var R = g.charCodeAt(y);
1104
+ if (R !== 34 && R !== 39 || y !== 0 && g.charCodeAt(y - 1) === 92)
1105
+ if (V === 0)
1106
+ if (R === se && y + 1 < C && g.charCodeAt(y + 1) === ge) {
1107
+ for (y += 2; y + 1 < C && (g.charCodeAt(y) !== ge || g.charCodeAt(y + 1) !== se); )
1108
+ y++;
1109
+ y += 2;
1110
+ } else if (R === 40 && y >= 3 && (32 | g.charCodeAt(y - 1)) == 108 && (32 | g.charCodeAt(y - 2)) == 114 && (32 | g.charCodeAt(y - 3)) == 117)
1111
+ H = 1, y++;
1112
+ else if (H > 0)
1113
+ R === 41 ? H-- : R === 40 && H++, y++;
1114
+ else if (R === ge && y + 1 < C && g.charCodeAt(y + 1) === se)
1115
+ y > p && _.push(g.substring(p, y)), p = y += 2;
1116
+ else if (R === se && y + 1 < C && g.charCodeAt(y + 1) === se) {
1117
+ for (y > p && _.push(g.substring(p, y)); y < C && g.charCodeAt(y) !== 10; )
1118
+ y++;
1119
+ p = y;
1120
+ } else
1121
+ y++;
1122
+ else
1123
+ y++;
1124
+ else
1125
+ V === 0 ? V = R : V === R && (V = 0), y++;
1126
+ }
1127
+ return p === 0 ? g : (p < C && _.push(g.substring(p)), _.join(""));
1128
+ }(T)), I = jn(L || E ? "".concat(L, " ").concat(E, " { ").concat($, " }") : $);
1129
+ return a.namespace && (I = Kr(I, a.namespace)), w = [], it(I, Z), w;
1130
+ };
1131
+ return P.hash = c.length ? c.reduce(function(T, E) {
1132
+ return E.name || $e(15), de(T, E.name);
1133
+ }, 5381).toString() : "", P;
1134
+ }
1135
+ var _s = new Yr(), zt = xs(), Qr = q.createContext({ shouldForwardProp: void 0, styleSheet: _s, stylis: zt });
1136
+ Qr.Consumer;
1137
+ q.createContext(void 0);
1138
+ function ur() {
1139
+ return q.useContext(Qr);
1140
+ }
1141
+ var en = q.createContext(void 0);
1142
+ en.Consumer;
1143
+ var Nt = {}, fr = /* @__PURE__ */ new Set();
1144
+ function bs(t, e, r) {
1145
+ var n = Gt(t), s = t, i = !Ct(t), a = e.attrs, o = a === void 0 ? qt : a, c = e.componentId, d = c === void 0 ? function(g, C) {
1146
+ var _ = typeof g != "string" ? "sc" : tr(g);
1147
+ Nt[_] = (Nt[_] || 0) + 1;
1148
+ var p = "".concat(_, "-").concat(Vr(yt + _ + Nt[_]));
1149
+ return C ? "".concat(C, "-").concat(p) : p;
1150
+ }(e.displayName, e.parentComponentId) : c, f = e.displayName, w = f === void 0 ? function(g) {
1151
+ return Ct(g) ? "styled.".concat(g) : "Styled(".concat(Fr(g), ")");
1152
+ }(t) : f, Z = e.displayName && e.componentId ? "".concat(tr(e.displayName), "-").concat(e.componentId) : e.componentId || d, P = n && s.attrs ? s.attrs.concat(o).filter(Boolean) : o, T = e.shouldForwardProp;
1153
+ if (n && s.shouldForwardProp) {
1154
+ var E = s.shouldForwardProp;
1155
+ if (e.shouldForwardProp) {
1156
+ var L = e.shouldForwardProp;
1157
+ T = function(g, C) {
1158
+ return E(g, C) && L(g, C);
1159
+ };
1160
+ } else
1161
+ T = E;
1162
+ }
1163
+ var D = new ys(r, Z, n ? s.componentStyle : void 0);
1164
+ function $(g, C) {
1165
+ return function(_, p, y) {
1166
+ var V = _.attrs, H = _.componentStyle, R = _.defaultProps, X = _.foldedComponentIds, J = _.styledComponentId, Ge = _.target, Ye = q.useContext(en), hn = ur(), xt = _.shouldForwardProp || hn.shouldForwardProp;
1167
+ process.env.NODE_ENV !== "production" && q.useDebugValue && q.useDebugValue(J);
1168
+ var Xt = Wn(p, Ye, R) || Ne, te = function(He, ae, Xe) {
1169
+ for (var ke, re = B(B({}, ae), { className: void 0, theme: Xe }), wt = 0; wt < He.length; wt += 1) {
1170
+ var Je = Te(ke = He[wt]) ? ke(re) : ke;
1171
+ for (var oe in Je)
1172
+ oe === "className" ? re.className = ye(re.className, Je[oe]) : oe === "style" ? re.style = B(B({}, re.style), Je[oe]) : oe in ae && ae[oe] === void 0 || (re[oe] = Je[oe]);
1173
+ }
1174
+ return "className" in ae && typeof ae.className == "string" && (re.className = ye(re.className, ae.className)), re;
1175
+ }(V, p, Xt), ze = te.as || Ge, Ze = {};
1176
+ for (var W in te)
1177
+ te[W] === void 0 || W[0] === "$" || W === "as" || W === "theme" && te.theme === Xt || (W === "forwardedAs" ? Ze.as = te.forwardedAs : xt && !xt(W, ze) || (Ze[W] = te[W], xt || process.env.NODE_ENV !== "development" || vn(W) || fr.has(W) || !Rt.has(ze) || (fr.add(W), console.warn('styled-components: it looks like an unknown prop "'.concat(W, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1178
+ var pn = function(He, ae) {
1179
+ var Xe = ur(), ke = He.generateAndInjectStyles(ae, Xe.styleSheet, Xe.stylis);
1180
+ return process.env.NODE_ENV !== "production" && q.useDebugValue && q.useDebugValue(ke.className), ke;
1181
+ }(H, te), _t = pn.className;
1182
+ process.env.NODE_ENV !== "production" && _.warnTooManyClasses && _.warnTooManyClasses(_t);
1183
+ var bt = ye(X, J);
1184
+ return _t && (bt += " " + _t), te.className && (bt += " " + te.className), Ze[Ct(ze) && !Rt.has(ze) ? "class" : "className"] = bt, y && (Ze.ref = y), mn(ze, Ze);
1185
+ }(I, g, C);
1186
+ }
1187
+ $.displayName = w;
1188
+ var I = q.forwardRef($);
1189
+ return I.attrs = P, I.componentStyle = D, I.displayName = w, I.shouldForwardProp = T, I.foldedComponentIds = n ? ye(s.foldedComponentIds, s.styledComponentId) : "", I.styledComponentId = Z, I.target = n ? s.target : t, Object.defineProperty(I, "defaultProps", { get: function() {
1190
+ return this._foldedDefaultProps;
1191
+ }, set: function(g) {
1192
+ this._foldedDefaultProps = n ? function(C) {
1193
+ for (var _ = [], p = 1; p < arguments.length; p++)
1194
+ _[p - 1] = arguments[p];
1195
+ for (var y = 0, V = _; y < V.length; y++)
1196
+ Pt(C, V[y], !0);
1197
+ return C;
1198
+ }({}, s.defaultProps, g) : g;
1199
+ } }), process.env.NODE_ENV !== "production" && (Un(w, Z), I.warnTooManyClasses = function(g, C) {
1200
+ var _ = {}, p = !1;
1201
+ return function(y) {
1202
+ if (!p && (_[y] = !0, Object.keys(_).length >= 200)) {
1203
+ var V = C ? ' with the id of "'.concat(C, '"') : "";
1204
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(g).concat(V, `.
1205
+ `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1206
+ Example:
1207
+ const Component = styled.div.attrs(props => ({
1208
+ style: {
1209
+ background: props.background,
1210
+ },
1211
+ }))\`width: 100%;\`
1212
+
1213
+ <Component />`), p = !0, _ = {};
1214
+ }
1215
+ };
1216
+ }(w, Z)), Yt(I, function() {
1217
+ return ".".concat(I.styledComponentId);
1218
+ }), i && qr(I, t, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), I;
1219
+ }
1220
+ function hr(t, e) {
1221
+ for (var r = [t[0]], n = 0, s = e.length; n < s; n += 1)
1222
+ r.push(e[n], t[n + 1]);
1223
+ return r;
1224
+ }
1225
+ var pr = function(t) {
1226
+ return Object.assign(t, { isCss: !0 });
1227
+ };
1228
+ function tn(t) {
1229
+ for (var e = [], r = 1; r < arguments.length; r++)
1230
+ e[r - 1] = arguments[r];
1231
+ if (Te(t) || Oe(t))
1232
+ return pr(ve(hr(qt, xe([t], e, !0))));
1233
+ var n = t;
1234
+ return e.length === 0 && n.length === 1 && typeof n[0] == "string" ? ve(n) : pr(ve(hr(n, e)));
1235
+ }
1236
+ function Zt(t, e, r) {
1237
+ if (r === void 0 && (r = Ne), !e)
1238
+ throw $e(1, e);
1239
+ var n = function(s) {
1240
+ for (var i = [], a = 1; a < arguments.length; a++)
1241
+ i[a - 1] = arguments[a];
1242
+ return t(e, r, tn.apply(void 0, xe([s], i, !1)));
1243
+ };
1244
+ return n.attrs = function(s) {
1245
+ return Zt(t, e, B(B({}, r), { attrs: Array.prototype.concat(r.attrs, s).filter(Boolean) }));
1246
+ }, n.withConfig = function(s) {
1247
+ return Zt(t, e, B(B({}, r), s));
1248
+ }, n;
1249
+ }
1250
+ var rn = function(t) {
1251
+ return Zt(bs, t);
1252
+ }, S = rn;
1253
+ Rt.forEach(function(t) {
1254
+ S[t] = rn(t);
1255
+ });
1256
+ var nn, ws = function() {
1257
+ function t(e, r) {
1258
+ var n = this;
1259
+ this[nn] = !0, this.inject = function(s, i) {
1260
+ i === void 0 && (i = zt);
1261
+ var a = n.name + i.hash;
1262
+ s.hasNameForId(n.id, a) || s.insertRules(n.id, a, i(n.rules, a, "@keyframes"));
1263
+ }, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = r, Yt(this, function() {
1264
+ throw $e(12, String(n.name));
1265
+ });
1266
+ }
1267
+ return t.prototype.getName = function(e) {
1268
+ return e === void 0 && (e = zt), this.name + e.hash;
1269
+ }, t;
1270
+ }();
1271
+ function vt(t) {
1272
+ for (var e = [], r = 1; r < arguments.length; r++)
1273
+ e[r - 1] = arguments[r];
1274
+ process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
1275
+ var n = jt(tn.apply(void 0, xe([t], e, !1))), s = Vr(n);
1276
+ return new ws(s, n);
1277
+ }
1278
+ nn = Hr;
1279
+ process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1280
+ Perhaps you're looking to import 'styled-components/native'?
1281
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);
1282
+ var Qe = "__sc-".concat(be, "__");
1283
+ process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[Qe] || (window[Qe] = 0), window[Qe] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
1284
+
1285
+ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`), window[Qe] += 1);
1286
+ var N;
1287
+ (function(t) {
1288
+ t.assertEqual = (s) => {
1289
+ };
1290
+ function e(s) {
1291
+ }
1292
+ t.assertIs = e;
1293
+ function r(s) {
1294
+ throw new Error();
1295
+ }
1296
+ t.assertNever = r, t.arrayToEnum = (s) => {
1297
+ const i = {};
1298
+ for (const a of s)
1299
+ i[a] = a;
1300
+ return i;
1301
+ }, t.getValidEnumValues = (s) => {
1302
+ const i = t.objectKeys(s).filter((o) => typeof s[s[o]] != "number"), a = {};
1303
+ for (const o of i)
1304
+ a[o] = s[o];
1305
+ return t.objectValues(a);
1306
+ }, t.objectValues = (s) => t.objectKeys(s).map(function(i) {
1307
+ return s[i];
1308
+ }), t.objectKeys = typeof Object.keys == "function" ? (s) => Object.keys(s) : (s) => {
1309
+ const i = [];
1310
+ for (const a in s)
1311
+ Object.prototype.hasOwnProperty.call(s, a) && i.push(a);
1312
+ return i;
1313
+ }, t.find = (s, i) => {
1314
+ for (const a of s)
1315
+ if (i(a))
1316
+ return a;
1317
+ }, t.isInteger = typeof Number.isInteger == "function" ? (s) => Number.isInteger(s) : (s) => typeof s == "number" && Number.isFinite(s) && Math.floor(s) === s;
1318
+ function n(s, i = " | ") {
1319
+ return s.map((a) => typeof a == "string" ? `'${a}'` : a).join(i);
1320
+ }
1321
+ t.joinValues = n, t.jsonStringifyReplacer = (s, i) => typeof i == "bigint" ? i.toString() : i;
1322
+ })(N || (N = {}));
1323
+ var mr;
1324
+ (function(t) {
1325
+ t.mergeShapes = (e, r) => ({
1326
+ ...e,
1327
+ ...r
1328
+ });
1329
+ })(mr || (mr = {}));
1330
+ const h = N.arrayToEnum([
1331
+ "string",
1332
+ "nan",
1333
+ "number",
1334
+ "integer",
1335
+ "float",
1336
+ "boolean",
1337
+ "date",
1338
+ "bigint",
1339
+ "symbol",
1340
+ "function",
1341
+ "undefined",
1342
+ "null",
1343
+ "array",
1344
+ "object",
1345
+ "unknown",
1346
+ "promise",
1347
+ "void",
1348
+ "never",
1349
+ "map",
1350
+ "set"
1351
+ ]), le = (t) => {
1352
+ switch (typeof t) {
1353
+ case "undefined":
1354
+ return h.undefined;
1355
+ case "string":
1356
+ return h.string;
1357
+ case "number":
1358
+ return Number.isNaN(t) ? h.nan : h.number;
1359
+ case "boolean":
1360
+ return h.boolean;
1361
+ case "function":
1362
+ return h.function;
1363
+ case "bigint":
1364
+ return h.bigint;
1365
+ case "symbol":
1366
+ return h.symbol;
1367
+ case "object":
1368
+ return Array.isArray(t) ? h.array : t === null ? h.null : t.then && typeof t.then == "function" && t.catch && typeof t.catch == "function" ? h.promise : typeof Map < "u" && t instanceof Map ? h.map : typeof Set < "u" && t instanceof Set ? h.set : typeof Date < "u" && t instanceof Date ? h.date : h.object;
1369
+ default:
1370
+ return h.unknown;
1371
+ }
1372
+ }, l = N.arrayToEnum([
1373
+ "invalid_type",
1374
+ "invalid_literal",
1375
+ "custom",
1376
+ "invalid_union",
1377
+ "invalid_union_discriminator",
1378
+ "invalid_enum_value",
1379
+ "unrecognized_keys",
1380
+ "invalid_arguments",
1381
+ "invalid_return_type",
1382
+ "invalid_date",
1383
+ "invalid_string",
1384
+ "too_small",
1385
+ "too_big",
1386
+ "invalid_intersection_types",
1387
+ "not_multiple_of",
1388
+ "not_finite"
1389
+ ]);
1390
+ class ie extends Error {
1391
+ get errors() {
1392
+ return this.issues;
1393
+ }
1394
+ constructor(e) {
1395
+ super(), this.issues = [], this.addIssue = (n) => {
1396
+ this.issues = [...this.issues, n];
1397
+ }, this.addIssues = (n = []) => {
1398
+ this.issues = [...this.issues, ...n];
1399
+ };
1400
+ const r = new.target.prototype;
1401
+ Object.setPrototypeOf ? Object.setPrototypeOf(this, r) : this.__proto__ = r, this.name = "ZodError", this.issues = e;
1402
+ }
1403
+ format(e) {
1404
+ const r = e || function(i) {
1405
+ return i.message;
1406
+ }, n = { _errors: [] }, s = (i) => {
1407
+ for (const a of i.issues)
1408
+ if (a.code === "invalid_union")
1409
+ a.unionErrors.map(s);
1410
+ else if (a.code === "invalid_return_type")
1411
+ s(a.returnTypeError);
1412
+ else if (a.code === "invalid_arguments")
1413
+ s(a.argumentsError);
1414
+ else if (a.path.length === 0)
1415
+ n._errors.push(r(a));
1416
+ else {
1417
+ let o = n, c = 0;
1418
+ for (; c < a.path.length; ) {
1419
+ const d = a.path[c];
1420
+ c === a.path.length - 1 ? (o[d] = o[d] || { _errors: [] }, o[d]._errors.push(r(a))) : o[d] = o[d] || { _errors: [] }, o = o[d], c++;
1421
+ }
1422
+ }
1423
+ };
1424
+ return s(this), n;
1425
+ }
1426
+ static assert(e) {
1427
+ if (!(e instanceof ie))
1428
+ throw new Error(`Not a ZodError: ${e}`);
1429
+ }
1430
+ toString() {
1431
+ return this.message;
1432
+ }
1433
+ get message() {
1434
+ return JSON.stringify(this.issues, N.jsonStringifyReplacer, 2);
1435
+ }
1436
+ get isEmpty() {
1437
+ return this.issues.length === 0;
1438
+ }
1439
+ flatten(e = (r) => r.message) {
1440
+ const r = {}, n = [];
1441
+ for (const s of this.issues)
1442
+ if (s.path.length > 0) {
1443
+ const i = s.path[0];
1444
+ r[i] = r[i] || [], r[i].push(e(s));
1445
+ } else
1446
+ n.push(e(s));
1447
+ return { formErrors: n, fieldErrors: r };
1448
+ }
1449
+ get formErrors() {
1450
+ return this.flatten();
1451
+ }
1452
+ }
1453
+ ie.create = (t) => new ie(t);
1454
+ const ks = (t, e) => {
1455
+ let r;
1456
+ switch (t.code) {
1457
+ case l.invalid_type:
1458
+ t.received === h.undefined ? r = "Required" : r = `Expected ${t.expected}, received ${t.received}`;
1459
+ break;
1460
+ case l.invalid_literal:
1461
+ r = `Invalid literal value, expected ${JSON.stringify(t.expected, N.jsonStringifyReplacer)}`;
1462
+ break;
1463
+ case l.unrecognized_keys:
1464
+ r = `Unrecognized key(s) in object: ${N.joinValues(t.keys, ", ")}`;
1465
+ break;
1466
+ case l.invalid_union:
1467
+ r = "Invalid input";
1468
+ break;
1469
+ case l.invalid_union_discriminator:
1470
+ r = `Invalid discriminator value. Expected ${N.joinValues(t.options)}`;
1471
+ break;
1472
+ case l.invalid_enum_value:
1473
+ r = `Invalid enum value. Expected ${N.joinValues(t.options)}, received '${t.received}'`;
1474
+ break;
1475
+ case l.invalid_arguments:
1476
+ r = "Invalid function arguments";
1477
+ break;
1478
+ case l.invalid_return_type:
1479
+ r = "Invalid function return type";
1480
+ break;
1481
+ case l.invalid_date:
1482
+ r = "Invalid date";
1483
+ break;
1484
+ case l.invalid_string:
1485
+ typeof t.validation == "object" ? "includes" in t.validation ? (r = `Invalid input: must include "${t.validation.includes}"`, typeof t.validation.position == "number" && (r = `${r} at one or more positions greater than or equal to ${t.validation.position}`)) : "startsWith" in t.validation ? r = `Invalid input: must start with "${t.validation.startsWith}"` : "endsWith" in t.validation ? r = `Invalid input: must end with "${t.validation.endsWith}"` : N.assertNever(t.validation) : t.validation !== "regex" ? r = `Invalid ${t.validation}` : r = "Invalid";
1486
+ break;
1487
+ case l.too_small:
1488
+ t.type === "array" ? r = `Array must contain ${t.exact ? "exactly" : t.inclusive ? "at least" : "more than"} ${t.minimum} element(s)` : t.type === "string" ? r = `String must contain ${t.exact ? "exactly" : t.inclusive ? "at least" : "over"} ${t.minimum} character(s)` : t.type === "number" ? r = `Number must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "greater than "}${t.minimum}` : t.type === "bigint" ? r = `Number must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "greater than "}${t.minimum}` : t.type === "date" ? r = `Date must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(t.minimum))}` : r = "Invalid input";
1489
+ break;
1490
+ case l.too_big:
1491
+ t.type === "array" ? r = `Array must contain ${t.exact ? "exactly" : t.inclusive ? "at most" : "less than"} ${t.maximum} element(s)` : t.type === "string" ? r = `String must contain ${t.exact ? "exactly" : t.inclusive ? "at most" : "under"} ${t.maximum} character(s)` : t.type === "number" ? r = `Number must be ${t.exact ? "exactly" : t.inclusive ? "less than or equal to" : "less than"} ${t.maximum}` : t.type === "bigint" ? r = `BigInt must be ${t.exact ? "exactly" : t.inclusive ? "less than or equal to" : "less than"} ${t.maximum}` : t.type === "date" ? r = `Date must be ${t.exact ? "exactly" : t.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(t.maximum))}` : r = "Invalid input";
1492
+ break;
1493
+ case l.custom:
1494
+ r = "Invalid input";
1495
+ break;
1496
+ case l.invalid_intersection_types:
1497
+ r = "Intersection results could not be merged";
1498
+ break;
1499
+ case l.not_multiple_of:
1500
+ r = `Number must be a multiple of ${t.multipleOf}`;
1501
+ break;
1502
+ case l.not_finite:
1503
+ r = "Number must be finite";
1504
+ break;
1505
+ default:
1506
+ r = e.defaultError, N.assertNever(t);
1507
+ }
1508
+ return { message: r };
1509
+ }, Dt = ks;
1510
+ let Ss = Dt;
1511
+ function Cs() {
1512
+ return Ss;
1513
+ }
1514
+ const As = (t) => {
1515
+ const { data: e, path: r, errorMaps: n, issueData: s } = t, i = [...r, ...s.path || []], a = {
1516
+ ...s,
1517
+ path: i
1518
+ };
1519
+ if (s.message !== void 0)
1520
+ return {
1521
+ ...s,
1522
+ path: i,
1523
+ message: s.message
1524
+ };
1525
+ let o = "";
1526
+ const c = n.filter((d) => !!d).slice().reverse();
1527
+ for (const d of c)
1528
+ o = d(a, { data: e, defaultError: o }).message;
1529
+ return {
1530
+ ...s,
1531
+ path: i,
1532
+ message: o
1533
+ };
1534
+ };
1535
+ function u(t, e) {
1536
+ const r = Cs(), n = As({
1537
+ issueData: e,
1538
+ data: t.data,
1539
+ path: t.path,
1540
+ errorMaps: [
1541
+ t.common.contextualErrorMap,
1542
+ t.schemaErrorMap,
1543
+ r,
1544
+ r === Dt ? void 0 : Dt
1545
+ ].filter((s) => !!s)
1546
+ });
1547
+ t.common.issues.push(n);
1548
+ }
1549
+ class U {
1550
+ constructor() {
1551
+ this.value = "valid";
1552
+ }
1553
+ dirty() {
1554
+ this.value === "valid" && (this.value = "dirty");
1555
+ }
1556
+ abort() {
1557
+ this.value !== "aborted" && (this.value = "aborted");
1558
+ }
1559
+ static mergeArray(e, r) {
1560
+ const n = [];
1561
+ for (const s of r) {
1562
+ if (s.status === "aborted")
1563
+ return v;
1564
+ s.status === "dirty" && e.dirty(), n.push(s.value);
1565
+ }
1566
+ return { status: e.value, value: n };
1567
+ }
1568
+ static async mergeObjectAsync(e, r) {
1569
+ const n = [];
1570
+ for (const s of r) {
1571
+ const i = await s.key, a = await s.value;
1572
+ n.push({
1573
+ key: i,
1574
+ value: a
1575
+ });
1576
+ }
1577
+ return U.mergeObjectSync(e, n);
1578
+ }
1579
+ static mergeObjectSync(e, r) {
1580
+ const n = {};
1581
+ for (const s of r) {
1582
+ const { key: i, value: a } = s;
1583
+ if (i.status === "aborted" || a.status === "aborted")
1584
+ return v;
1585
+ i.status === "dirty" && e.dirty(), a.status === "dirty" && e.dirty(), i.value !== "__proto__" && (typeof a.value < "u" || s.alwaysSet) && (n[i.value] = a.value);
1586
+ }
1587
+ return { status: e.value, value: n };
1588
+ }
1589
+ }
1590
+ const v = Object.freeze({
1591
+ status: "aborted"
1592
+ }), Le = (t) => ({ status: "dirty", value: t }), Y = (t) => ({ status: "valid", value: t }), gr = (t) => t.status === "aborted", yr = (t) => t.status === "dirty", Ee = (t) => t.status === "valid", ot = (t) => typeof Promise < "u" && t instanceof Promise;
1593
+ var m;
1594
+ (function(t) {
1595
+ t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
1596
+ })(m || (m = {}));
1597
+ class pe {
1598
+ constructor(e, r, n, s) {
1599
+ this._cachedPath = [], this.parent = e, this.data = r, this._path = n, this._key = s;
1600
+ }
1601
+ get path() {
1602
+ return this._cachedPath.length || (Array.isArray(this._key) ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
1603
+ }
1604
+ }
1605
+ const vr = (t, e) => {
1606
+ if (Ee(e))
1607
+ return { success: !0, data: e.value };
1608
+ if (!t.common.issues.length)
1609
+ throw new Error("Validation failed but no issues detected.");
1610
+ return {
1611
+ success: !1,
1612
+ get error() {
1613
+ if (this._error)
1614
+ return this._error;
1615
+ const r = new ie(t.common.issues);
1616
+ return this._error = r, this._error;
1617
+ }
1618
+ };
1619
+ };
1620
+ function k(t) {
1621
+ if (!t)
1622
+ return {};
1623
+ const { errorMap: e, invalid_type_error: r, required_error: n, description: s } = t;
1624
+ if (e && (r || n))
1625
+ throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
1626
+ return e ? { errorMap: e, description: s } : { errorMap: (a, o) => {
1627
+ var d, f;
1628
+ const { message: c } = t;
1629
+ return a.code === "invalid_enum_value" ? { message: c != null ? c : o.defaultError } : typeof o.data > "u" ? { message: (d = c != null ? c : n) != null ? d : o.defaultError } : a.code !== "invalid_type" ? { message: o.defaultError } : { message: (f = c != null ? c : r) != null ? f : o.defaultError };
1630
+ }, description: s };
1631
+ }
1632
+ class A {
1633
+ get description() {
1634
+ return this._def.description;
1635
+ }
1636
+ _getType(e) {
1637
+ return le(e.data);
1638
+ }
1639
+ _getOrReturnCtx(e, r) {
1640
+ return r || {
1641
+ common: e.parent.common,
1642
+ data: e.data,
1643
+ parsedType: le(e.data),
1644
+ schemaErrorMap: this._def.errorMap,
1645
+ path: e.path,
1646
+ parent: e.parent
1647
+ };
1648
+ }
1649
+ _processInputParams(e) {
1650
+ return {
1651
+ status: new U(),
1652
+ ctx: {
1653
+ common: e.parent.common,
1654
+ data: e.data,
1655
+ parsedType: le(e.data),
1656
+ schemaErrorMap: this._def.errorMap,
1657
+ path: e.path,
1658
+ parent: e.parent
1659
+ }
1660
+ };
1661
+ }
1662
+ _parseSync(e) {
1663
+ const r = this._parse(e);
1664
+ if (ot(r))
1665
+ throw new Error("Synchronous parse encountered promise.");
1666
+ return r;
1667
+ }
1668
+ _parseAsync(e) {
1669
+ const r = this._parse(e);
1670
+ return Promise.resolve(r);
1671
+ }
1672
+ parse(e, r) {
1673
+ const n = this.safeParse(e, r);
1674
+ if (n.success)
1675
+ return n.data;
1676
+ throw n.error;
1677
+ }
1678
+ safeParse(e, r) {
1679
+ var i;
1680
+ const n = {
1681
+ common: {
1682
+ issues: [],
1683
+ async: (i = r == null ? void 0 : r.async) != null ? i : !1,
1684
+ contextualErrorMap: r == null ? void 0 : r.errorMap
1685
+ },
1686
+ path: (r == null ? void 0 : r.path) || [],
1687
+ schemaErrorMap: this._def.errorMap,
1688
+ parent: null,
1689
+ data: e,
1690
+ parsedType: le(e)
1691
+ }, s = this._parseSync({ data: e, path: n.path, parent: n });
1692
+ return vr(n, s);
1693
+ }
1694
+ "~validate"(e) {
1695
+ var n, s;
1696
+ const r = {
1697
+ common: {
1698
+ issues: [],
1699
+ async: !!this["~standard"].async
1700
+ },
1701
+ path: [],
1702
+ schemaErrorMap: this._def.errorMap,
1703
+ parent: null,
1704
+ data: e,
1705
+ parsedType: le(e)
1706
+ };
1707
+ if (!this["~standard"].async)
1708
+ try {
1709
+ const i = this._parseSync({ data: e, path: [], parent: r });
1710
+ return Ee(i) ? {
1711
+ value: i.value
1712
+ } : {
1713
+ issues: r.common.issues
1714
+ };
1715
+ } catch (i) {
1716
+ (s = (n = i == null ? void 0 : i.message) == null ? void 0 : n.toLowerCase()) != null && s.includes("encountered") && (this["~standard"].async = !0), r.common = {
1717
+ issues: [],
1718
+ async: !0
1719
+ };
1720
+ }
1721
+ return this._parseAsync({ data: e, path: [], parent: r }).then((i) => Ee(i) ? {
1722
+ value: i.value
1723
+ } : {
1724
+ issues: r.common.issues
1725
+ });
1726
+ }
1727
+ async parseAsync(e, r) {
1728
+ const n = await this.safeParseAsync(e, r);
1729
+ if (n.success)
1730
+ return n.data;
1731
+ throw n.error;
1732
+ }
1733
+ async safeParseAsync(e, r) {
1734
+ const n = {
1735
+ common: {
1736
+ issues: [],
1737
+ contextualErrorMap: r == null ? void 0 : r.errorMap,
1738
+ async: !0
1739
+ },
1740
+ path: (r == null ? void 0 : r.path) || [],
1741
+ schemaErrorMap: this._def.errorMap,
1742
+ parent: null,
1743
+ data: e,
1744
+ parsedType: le(e)
1745
+ }, s = this._parse({ data: e, path: n.path, parent: n }), i = await (ot(s) ? s : Promise.resolve(s));
1746
+ return vr(n, i);
1747
+ }
1748
+ refine(e, r) {
1749
+ const n = (s) => typeof r == "string" || typeof r > "u" ? { message: r } : typeof r == "function" ? r(s) : r;
1750
+ return this._refinement((s, i) => {
1751
+ const a = e(s), o = () => i.addIssue({
1752
+ code: l.custom,
1753
+ ...n(s)
1754
+ });
1755
+ return typeof Promise < "u" && a instanceof Promise ? a.then((c) => c ? !0 : (o(), !1)) : a ? !0 : (o(), !1);
1756
+ });
1757
+ }
1758
+ refinement(e, r) {
1759
+ return this._refinement((n, s) => e(n) ? !0 : (s.addIssue(typeof r == "function" ? r(n, s) : r), !1));
1760
+ }
1761
+ _refinement(e) {
1762
+ return new Ie({
1763
+ schema: this,
1764
+ typeName: x.ZodEffects,
1765
+ effect: { type: "refinement", refinement: e }
1766
+ });
1767
+ }
1768
+ superRefine(e) {
1769
+ return this._refinement(e);
1770
+ }
1771
+ constructor(e) {
1772
+ this.spa = this.safeParseAsync, this._def = e, this.parse = this.parse.bind(this), this.safeParse = this.safeParse.bind(this), this.parseAsync = this.parseAsync.bind(this), this.safeParseAsync = this.safeParseAsync.bind(this), this.spa = this.spa.bind(this), this.refine = this.refine.bind(this), this.refinement = this.refinement.bind(this), this.superRefine = this.superRefine.bind(this), this.optional = this.optional.bind(this), this.nullable = this.nullable.bind(this), this.nullish = this.nullish.bind(this), this.array = this.array.bind(this), this.promise = this.promise.bind(this), this.or = this.or.bind(this), this.and = this.and.bind(this), this.transform = this.transform.bind(this), this.brand = this.brand.bind(this), this.default = this.default.bind(this), this.catch = this.catch.bind(this), this.describe = this.describe.bind(this), this.pipe = this.pipe.bind(this), this.readonly = this.readonly.bind(this), this.isNullable = this.isNullable.bind(this), this.isOptional = this.isOptional.bind(this), this["~standard"] = {
1773
+ version: 1,
1774
+ vendor: "zod",
1775
+ validate: (r) => this["~validate"](r)
1776
+ };
1777
+ }
1778
+ optional() {
1779
+ return he.create(this, this._def);
1780
+ }
1781
+ nullable() {
1782
+ return je.create(this, this._def);
1783
+ }
1784
+ nullish() {
1785
+ return this.nullable().optional();
1786
+ }
1787
+ array() {
1788
+ return ee.create(this);
1789
+ }
1790
+ promise() {
1791
+ return ut.create(this, this._def);
1792
+ }
1793
+ or(e) {
1794
+ return dt.create([this, e], this._def);
1795
+ }
1796
+ and(e) {
1797
+ return lt.create(this, e, this._def);
1798
+ }
1799
+ transform(e) {
1800
+ return new Ie({
1801
+ ...k(this._def),
1802
+ schema: this,
1803
+ typeName: x.ZodEffects,
1804
+ effect: { type: "transform", transform: e }
1805
+ });
1806
+ }
1807
+ default(e) {
1808
+ const r = typeof e == "function" ? e : () => e;
1809
+ return new Lt({
1810
+ ...k(this._def),
1811
+ innerType: this,
1812
+ defaultValue: r,
1813
+ typeName: x.ZodDefault
1814
+ });
1815
+ }
1816
+ brand() {
1817
+ return new Hs({
1818
+ typeName: x.ZodBranded,
1819
+ type: this,
1820
+ ...k(this._def)
1821
+ });
1822
+ }
1823
+ catch(e) {
1824
+ const r = typeof e == "function" ? e : () => e;
1825
+ return new Vt({
1826
+ ...k(this._def),
1827
+ innerType: this,
1828
+ catchValue: r,
1829
+ typeName: x.ZodCatch
1830
+ });
1831
+ }
1832
+ describe(e) {
1833
+ const r = this.constructor;
1834
+ return new r({
1835
+ ...this._def,
1836
+ description: e
1837
+ });
1838
+ }
1839
+ pipe(e) {
1840
+ return Ht.create(this, e);
1841
+ }
1842
+ readonly() {
1843
+ return Ft.create(this);
1844
+ }
1845
+ isOptional() {
1846
+ return this.safeParse(void 0).success;
1847
+ }
1848
+ isNullable() {
1849
+ return this.safeParse(null).success;
1850
+ }
1851
+ }
1852
+ const Ns = /^c[^\s-]{8,}$/i, Ts = /^[0-9a-z]+$/, Os = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Es = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Rs = /^[a-z0-9_-]{21}$/i, Is = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, js = /^[-+]?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)?)??$/, Ps = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, $s = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
1853
+ let Tt;
1854
+ const zs = /^(?:(?: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])$/, Zs = /^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/, Ds = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Ms = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ls = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Vs = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, sn = "((\\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])))", Fs = new RegExp(`^${sn}$`);
1855
+ function an(t) {
1856
+ let e = "[0-5]\\d";
1857
+ t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`);
1858
+ const r = t.precision ? "+" : "?";
1859
+ return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`;
1860
+ }
1861
+ function Bs(t) {
1862
+ return new RegExp(`^${an(t)}$`);
1863
+ }
1864
+ function Us(t) {
1865
+ let e = `${sn}T${an(t)}`;
1866
+ const r = [];
1867
+ return r.push(t.local ? "Z?" : "Z"), t.offset && r.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${r.join("|")})`, new RegExp(`^${e}$`);
1868
+ }
1869
+ function Ws(t, e) {
1870
+ return !!((e === "v4" || !e) && zs.test(t) || (e === "v6" || !e) && Ds.test(t));
1871
+ }
1872
+ function qs(t, e) {
1873
+ if (!Is.test(t))
1874
+ return !1;
1875
+ try {
1876
+ const [r] = t.split(".");
1877
+ if (!r)
1878
+ return !1;
1879
+ const n = r.replace(/-/g, "+").replace(/_/g, "/").padEnd(r.length + (4 - r.length % 4) % 4, "="), s = JSON.parse(atob(n));
1880
+ return !(typeof s != "object" || s === null || "typ" in s && (s == null ? void 0 : s.typ) !== "JWT" || !s.alg || e && s.alg !== e);
1881
+ } catch {
1882
+ return !1;
1883
+ }
1884
+ }
1885
+ function Gs(t, e) {
1886
+ return !!((e === "v4" || !e) && Zs.test(t) || (e === "v6" || !e) && Ms.test(t));
1887
+ }
1888
+ class fe extends A {
1889
+ _parse(e) {
1890
+ if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== h.string) {
1891
+ const i = this._getOrReturnCtx(e);
1892
+ return u(i, {
1893
+ code: l.invalid_type,
1894
+ expected: h.string,
1895
+ received: i.parsedType
1896
+ }), v;
1897
+ }
1898
+ const n = new U();
1899
+ let s;
1900
+ for (const i of this._def.checks)
1901
+ if (i.kind === "min")
1902
+ e.data.length < i.value && (s = this._getOrReturnCtx(e, s), u(s, {
1903
+ code: l.too_small,
1904
+ minimum: i.value,
1905
+ type: "string",
1906
+ inclusive: !0,
1907
+ exact: !1,
1908
+ message: i.message
1909
+ }), n.dirty());
1910
+ else if (i.kind === "max")
1911
+ e.data.length > i.value && (s = this._getOrReturnCtx(e, s), u(s, {
1912
+ code: l.too_big,
1913
+ maximum: i.value,
1914
+ type: "string",
1915
+ inclusive: !0,
1916
+ exact: !1,
1917
+ message: i.message
1918
+ }), n.dirty());
1919
+ else if (i.kind === "length") {
1920
+ const a = e.data.length > i.value, o = e.data.length < i.value;
1921
+ (a || o) && (s = this._getOrReturnCtx(e, s), a ? u(s, {
1922
+ code: l.too_big,
1923
+ maximum: i.value,
1924
+ type: "string",
1925
+ inclusive: !0,
1926
+ exact: !0,
1927
+ message: i.message
1928
+ }) : o && u(s, {
1929
+ code: l.too_small,
1930
+ minimum: i.value,
1931
+ type: "string",
1932
+ inclusive: !0,
1933
+ exact: !0,
1934
+ message: i.message
1935
+ }), n.dirty());
1936
+ } else if (i.kind === "email")
1937
+ Ps.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1938
+ validation: "email",
1939
+ code: l.invalid_string,
1940
+ message: i.message
1941
+ }), n.dirty());
1942
+ else if (i.kind === "emoji")
1943
+ Tt || (Tt = new RegExp($s, "u")), Tt.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1944
+ validation: "emoji",
1945
+ code: l.invalid_string,
1946
+ message: i.message
1947
+ }), n.dirty());
1948
+ else if (i.kind === "uuid")
1949
+ Es.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1950
+ validation: "uuid",
1951
+ code: l.invalid_string,
1952
+ message: i.message
1953
+ }), n.dirty());
1954
+ else if (i.kind === "nanoid")
1955
+ Rs.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1956
+ validation: "nanoid",
1957
+ code: l.invalid_string,
1958
+ message: i.message
1959
+ }), n.dirty());
1960
+ else if (i.kind === "cuid")
1961
+ Ns.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1962
+ validation: "cuid",
1963
+ code: l.invalid_string,
1964
+ message: i.message
1965
+ }), n.dirty());
1966
+ else if (i.kind === "cuid2")
1967
+ Ts.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1968
+ validation: "cuid2",
1969
+ code: l.invalid_string,
1970
+ message: i.message
1971
+ }), n.dirty());
1972
+ else if (i.kind === "ulid")
1973
+ Os.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1974
+ validation: "ulid",
1975
+ code: l.invalid_string,
1976
+ message: i.message
1977
+ }), n.dirty());
1978
+ else if (i.kind === "url")
1979
+ try {
1980
+ new URL(e.data);
1981
+ } catch {
1982
+ s = this._getOrReturnCtx(e, s), u(s, {
1983
+ validation: "url",
1984
+ code: l.invalid_string,
1985
+ message: i.message
1986
+ }), n.dirty();
1987
+ }
1988
+ else
1989
+ i.kind === "regex" ? (i.regex.lastIndex = 0, i.regex.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1990
+ validation: "regex",
1991
+ code: l.invalid_string,
1992
+ message: i.message
1993
+ }), n.dirty())) : i.kind === "trim" ? e.data = e.data.trim() : i.kind === "includes" ? e.data.includes(i.value, i.position) || (s = this._getOrReturnCtx(e, s), u(s, {
1994
+ code: l.invalid_string,
1995
+ validation: { includes: i.value, position: i.position },
1996
+ message: i.message
1997
+ }), n.dirty()) : i.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : i.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : i.kind === "startsWith" ? e.data.startsWith(i.value) || (s = this._getOrReturnCtx(e, s), u(s, {
1998
+ code: l.invalid_string,
1999
+ validation: { startsWith: i.value },
2000
+ message: i.message
2001
+ }), n.dirty()) : i.kind === "endsWith" ? e.data.endsWith(i.value) || (s = this._getOrReturnCtx(e, s), u(s, {
2002
+ code: l.invalid_string,
2003
+ validation: { endsWith: i.value },
2004
+ message: i.message
2005
+ }), n.dirty()) : i.kind === "datetime" ? Us(i).test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
2006
+ code: l.invalid_string,
2007
+ validation: "datetime",
2008
+ message: i.message
2009
+ }), n.dirty()) : i.kind === "date" ? Fs.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
2010
+ code: l.invalid_string,
2011
+ validation: "date",
2012
+ message: i.message
2013
+ }), n.dirty()) : i.kind === "time" ? Bs(i).test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
2014
+ code: l.invalid_string,
2015
+ validation: "time",
2016
+ message: i.message
2017
+ }), n.dirty()) : i.kind === "duration" ? js.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
2018
+ validation: "duration",
2019
+ code: l.invalid_string,
2020
+ message: i.message
2021
+ }), n.dirty()) : i.kind === "ip" ? Ws(e.data, i.version) || (s = this._getOrReturnCtx(e, s), u(s, {
2022
+ validation: "ip",
2023
+ code: l.invalid_string,
2024
+ message: i.message
2025
+ }), n.dirty()) : i.kind === "jwt" ? qs(e.data, i.alg) || (s = this._getOrReturnCtx(e, s), u(s, {
2026
+ validation: "jwt",
2027
+ code: l.invalid_string,
2028
+ message: i.message
2029
+ }), n.dirty()) : i.kind === "cidr" ? Gs(e.data, i.version) || (s = this._getOrReturnCtx(e, s), u(s, {
2030
+ validation: "cidr",
2031
+ code: l.invalid_string,
2032
+ message: i.message
2033
+ }), n.dirty()) : i.kind === "base64" ? Ls.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
2034
+ validation: "base64",
2035
+ code: l.invalid_string,
2036
+ message: i.message
2037
+ }), n.dirty()) : i.kind === "base64url" ? Vs.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
2038
+ validation: "base64url",
2039
+ code: l.invalid_string,
2040
+ message: i.message
2041
+ }), n.dirty()) : N.assertNever(i);
2042
+ return { status: n.value, value: e.data };
2043
+ }
2044
+ _regex(e, r, n) {
2045
+ return this.refinement((s) => e.test(s), {
2046
+ validation: r,
2047
+ code: l.invalid_string,
2048
+ ...m.errToObj(n)
2049
+ });
2050
+ }
2051
+ _addCheck(e) {
2052
+ return new fe({
2053
+ ...this._def,
2054
+ checks: [...this._def.checks, e]
2055
+ });
2056
+ }
2057
+ email(e) {
2058
+ return this._addCheck({ kind: "email", ...m.errToObj(e) });
2059
+ }
2060
+ url(e) {
2061
+ return this._addCheck({ kind: "url", ...m.errToObj(e) });
2062
+ }
2063
+ emoji(e) {
2064
+ return this._addCheck({ kind: "emoji", ...m.errToObj(e) });
2065
+ }
2066
+ uuid(e) {
2067
+ return this._addCheck({ kind: "uuid", ...m.errToObj(e) });
2068
+ }
2069
+ nanoid(e) {
2070
+ return this._addCheck({ kind: "nanoid", ...m.errToObj(e) });
2071
+ }
2072
+ cuid(e) {
2073
+ return this._addCheck({ kind: "cuid", ...m.errToObj(e) });
2074
+ }
2075
+ cuid2(e) {
2076
+ return this._addCheck({ kind: "cuid2", ...m.errToObj(e) });
2077
+ }
2078
+ ulid(e) {
2079
+ return this._addCheck({ kind: "ulid", ...m.errToObj(e) });
2080
+ }
2081
+ base64(e) {
2082
+ return this._addCheck({ kind: "base64", ...m.errToObj(e) });
2083
+ }
2084
+ base64url(e) {
2085
+ return this._addCheck({
2086
+ kind: "base64url",
2087
+ ...m.errToObj(e)
2088
+ });
2089
+ }
2090
+ jwt(e) {
2091
+ return this._addCheck({ kind: "jwt", ...m.errToObj(e) });
2092
+ }
2093
+ ip(e) {
2094
+ return this._addCheck({ kind: "ip", ...m.errToObj(e) });
2095
+ }
2096
+ cidr(e) {
2097
+ return this._addCheck({ kind: "cidr", ...m.errToObj(e) });
2098
+ }
2099
+ datetime(e) {
2100
+ var r, n;
2101
+ return typeof e == "string" ? this._addCheck({
2102
+ kind: "datetime",
2103
+ precision: null,
2104
+ offset: !1,
2105
+ local: !1,
2106
+ message: e
2107
+ }) : this._addCheck({
2108
+ kind: "datetime",
2109
+ precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
2110
+ offset: (r = e == null ? void 0 : e.offset) != null ? r : !1,
2111
+ local: (n = e == null ? void 0 : e.local) != null ? n : !1,
2112
+ ...m.errToObj(e == null ? void 0 : e.message)
2113
+ });
2114
+ }
2115
+ date(e) {
2116
+ return this._addCheck({ kind: "date", message: e });
2117
+ }
2118
+ time(e) {
2119
+ return typeof e == "string" ? this._addCheck({
2120
+ kind: "time",
2121
+ precision: null,
2122
+ message: e
2123
+ }) : this._addCheck({
2124
+ kind: "time",
2125
+ precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
2126
+ ...m.errToObj(e == null ? void 0 : e.message)
2127
+ });
2128
+ }
2129
+ duration(e) {
2130
+ return this._addCheck({ kind: "duration", ...m.errToObj(e) });
2131
+ }
2132
+ regex(e, r) {
2133
+ return this._addCheck({
2134
+ kind: "regex",
2135
+ regex: e,
2136
+ ...m.errToObj(r)
2137
+ });
2138
+ }
2139
+ includes(e, r) {
2140
+ return this._addCheck({
2141
+ kind: "includes",
2142
+ value: e,
2143
+ position: r == null ? void 0 : r.position,
2144
+ ...m.errToObj(r == null ? void 0 : r.message)
2145
+ });
2146
+ }
2147
+ startsWith(e, r) {
2148
+ return this._addCheck({
2149
+ kind: "startsWith",
2150
+ value: e,
2151
+ ...m.errToObj(r)
2152
+ });
2153
+ }
2154
+ endsWith(e, r) {
2155
+ return this._addCheck({
2156
+ kind: "endsWith",
2157
+ value: e,
2158
+ ...m.errToObj(r)
2159
+ });
2160
+ }
2161
+ min(e, r) {
2162
+ return this._addCheck({
2163
+ kind: "min",
2164
+ value: e,
2165
+ ...m.errToObj(r)
2166
+ });
2167
+ }
2168
+ max(e, r) {
2169
+ return this._addCheck({
2170
+ kind: "max",
2171
+ value: e,
2172
+ ...m.errToObj(r)
2173
+ });
2174
+ }
2175
+ length(e, r) {
2176
+ return this._addCheck({
2177
+ kind: "length",
2178
+ value: e,
2179
+ ...m.errToObj(r)
2180
+ });
2181
+ }
2182
+ nonempty(e) {
2183
+ return this.min(1, m.errToObj(e));
2184
+ }
2185
+ trim() {
2186
+ return new fe({
2187
+ ...this._def,
2188
+ checks: [...this._def.checks, { kind: "trim" }]
2189
+ });
2190
+ }
2191
+ toLowerCase() {
2192
+ return new fe({
2193
+ ...this._def,
2194
+ checks: [...this._def.checks, { kind: "toLowerCase" }]
2195
+ });
2196
+ }
2197
+ toUpperCase() {
2198
+ return new fe({
2199
+ ...this._def,
2200
+ checks: [...this._def.checks, { kind: "toUpperCase" }]
2201
+ });
2202
+ }
2203
+ get isDatetime() {
2204
+ return !!this._def.checks.find((e) => e.kind === "datetime");
2205
+ }
2206
+ get isDate() {
2207
+ return !!this._def.checks.find((e) => e.kind === "date");
2208
+ }
2209
+ get isTime() {
2210
+ return !!this._def.checks.find((e) => e.kind === "time");
2211
+ }
2212
+ get isDuration() {
2213
+ return !!this._def.checks.find((e) => e.kind === "duration");
2214
+ }
2215
+ get isEmail() {
2216
+ return !!this._def.checks.find((e) => e.kind === "email");
2217
+ }
2218
+ get isURL() {
2219
+ return !!this._def.checks.find((e) => e.kind === "url");
2220
+ }
2221
+ get isEmoji() {
2222
+ return !!this._def.checks.find((e) => e.kind === "emoji");
2223
+ }
2224
+ get isUUID() {
2225
+ return !!this._def.checks.find((e) => e.kind === "uuid");
2226
+ }
2227
+ get isNANOID() {
2228
+ return !!this._def.checks.find((e) => e.kind === "nanoid");
2229
+ }
2230
+ get isCUID() {
2231
+ return !!this._def.checks.find((e) => e.kind === "cuid");
2232
+ }
2233
+ get isCUID2() {
2234
+ return !!this._def.checks.find((e) => e.kind === "cuid2");
2235
+ }
2236
+ get isULID() {
2237
+ return !!this._def.checks.find((e) => e.kind === "ulid");
2238
+ }
2239
+ get isIP() {
2240
+ return !!this._def.checks.find((e) => e.kind === "ip");
2241
+ }
2242
+ get isCIDR() {
2243
+ return !!this._def.checks.find((e) => e.kind === "cidr");
2244
+ }
2245
+ get isBase64() {
2246
+ return !!this._def.checks.find((e) => e.kind === "base64");
2247
+ }
2248
+ get isBase64url() {
2249
+ return !!this._def.checks.find((e) => e.kind === "base64url");
2250
+ }
2251
+ get minLength() {
2252
+ let e = null;
2253
+ for (const r of this._def.checks)
2254
+ r.kind === "min" && (e === null || r.value > e) && (e = r.value);
2255
+ return e;
2256
+ }
2257
+ get maxLength() {
2258
+ let e = null;
2259
+ for (const r of this._def.checks)
2260
+ r.kind === "max" && (e === null || r.value < e) && (e = r.value);
2261
+ return e;
2262
+ }
2263
+ }
2264
+ fe.create = (t) => {
2265
+ var e;
2266
+ return new fe({
2267
+ checks: [],
2268
+ typeName: x.ZodString,
2269
+ coerce: (e = t == null ? void 0 : t.coerce) != null ? e : !1,
2270
+ ...k(t)
2271
+ });
2272
+ };
2273
+ function Ys(t, e) {
2274
+ const r = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, s = r > n ? r : n, i = Number.parseInt(t.toFixed(s).replace(".", "")), a = Number.parseInt(e.toFixed(s).replace(".", ""));
2275
+ return i % a / 10 ** s;
2276
+ }
2277
+ class Ue extends A {
2278
+ constructor() {
2279
+ super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
2280
+ }
2281
+ _parse(e) {
2282
+ if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== h.number) {
2283
+ const i = this._getOrReturnCtx(e);
2284
+ return u(i, {
2285
+ code: l.invalid_type,
2286
+ expected: h.number,
2287
+ received: i.parsedType
2288
+ }), v;
2289
+ }
2290
+ let n;
2291
+ const s = new U();
2292
+ for (const i of this._def.checks)
2293
+ i.kind === "int" ? N.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
2294
+ code: l.invalid_type,
2295
+ expected: "integer",
2296
+ received: "float",
2297
+ message: i.message
2298
+ }), s.dirty()) : i.kind === "min" ? (i.inclusive ? e.data < i.value : e.data <= i.value) && (n = this._getOrReturnCtx(e, n), u(n, {
2299
+ code: l.too_small,
2300
+ minimum: i.value,
2301
+ type: "number",
2302
+ inclusive: i.inclusive,
2303
+ exact: !1,
2304
+ message: i.message
2305
+ }), s.dirty()) : i.kind === "max" ? (i.inclusive ? e.data > i.value : e.data >= i.value) && (n = this._getOrReturnCtx(e, n), u(n, {
2306
+ code: l.too_big,
2307
+ maximum: i.value,
2308
+ type: "number",
2309
+ inclusive: i.inclusive,
2310
+ exact: !1,
2311
+ message: i.message
2312
+ }), s.dirty()) : i.kind === "multipleOf" ? Ys(e.data, i.value) !== 0 && (n = this._getOrReturnCtx(e, n), u(n, {
2313
+ code: l.not_multiple_of,
2314
+ multipleOf: i.value,
2315
+ message: i.message
2316
+ }), s.dirty()) : i.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
2317
+ code: l.not_finite,
2318
+ message: i.message
2319
+ }), s.dirty()) : N.assertNever(i);
2320
+ return { status: s.value, value: e.data };
2321
+ }
2322
+ gte(e, r) {
2323
+ return this.setLimit("min", e, !0, m.toString(r));
2324
+ }
2325
+ gt(e, r) {
2326
+ return this.setLimit("min", e, !1, m.toString(r));
2327
+ }
2328
+ lte(e, r) {
2329
+ return this.setLimit("max", e, !0, m.toString(r));
2330
+ }
2331
+ lt(e, r) {
2332
+ return this.setLimit("max", e, !1, m.toString(r));
2333
+ }
2334
+ setLimit(e, r, n, s) {
2335
+ return new Ue({
2336
+ ...this._def,
2337
+ checks: [
2338
+ ...this._def.checks,
2339
+ {
2340
+ kind: e,
2341
+ value: r,
2342
+ inclusive: n,
2343
+ message: m.toString(s)
2344
+ }
2345
+ ]
2346
+ });
2347
+ }
2348
+ _addCheck(e) {
2349
+ return new Ue({
2350
+ ...this._def,
2351
+ checks: [...this._def.checks, e]
2352
+ });
2353
+ }
2354
+ int(e) {
2355
+ return this._addCheck({
2356
+ kind: "int",
2357
+ message: m.toString(e)
2358
+ });
2359
+ }
2360
+ positive(e) {
2361
+ return this._addCheck({
2362
+ kind: "min",
2363
+ value: 0,
2364
+ inclusive: !1,
2365
+ message: m.toString(e)
2366
+ });
2367
+ }
2368
+ negative(e) {
2369
+ return this._addCheck({
2370
+ kind: "max",
2371
+ value: 0,
2372
+ inclusive: !1,
2373
+ message: m.toString(e)
2374
+ });
2375
+ }
2376
+ nonpositive(e) {
2377
+ return this._addCheck({
2378
+ kind: "max",
2379
+ value: 0,
2380
+ inclusive: !0,
2381
+ message: m.toString(e)
2382
+ });
2383
+ }
2384
+ nonnegative(e) {
2385
+ return this._addCheck({
2386
+ kind: "min",
2387
+ value: 0,
2388
+ inclusive: !0,
2389
+ message: m.toString(e)
2390
+ });
2391
+ }
2392
+ multipleOf(e, r) {
2393
+ return this._addCheck({
2394
+ kind: "multipleOf",
2395
+ value: e,
2396
+ message: m.toString(r)
2397
+ });
2398
+ }
2399
+ finite(e) {
2400
+ return this._addCheck({
2401
+ kind: "finite",
2402
+ message: m.toString(e)
2403
+ });
2404
+ }
2405
+ safe(e) {
2406
+ return this._addCheck({
2407
+ kind: "min",
2408
+ inclusive: !0,
2409
+ value: Number.MIN_SAFE_INTEGER,
2410
+ message: m.toString(e)
2411
+ })._addCheck({
2412
+ kind: "max",
2413
+ inclusive: !0,
2414
+ value: Number.MAX_SAFE_INTEGER,
2415
+ message: m.toString(e)
2416
+ });
2417
+ }
2418
+ get minValue() {
2419
+ let e = null;
2420
+ for (const r of this._def.checks)
2421
+ r.kind === "min" && (e === null || r.value > e) && (e = r.value);
2422
+ return e;
2423
+ }
2424
+ get maxValue() {
2425
+ let e = null;
2426
+ for (const r of this._def.checks)
2427
+ r.kind === "max" && (e === null || r.value < e) && (e = r.value);
2428
+ return e;
2429
+ }
2430
+ get isInt() {
2431
+ return !!this._def.checks.find((e) => e.kind === "int" || e.kind === "multipleOf" && N.isInteger(e.value));
2432
+ }
2433
+ get isFinite() {
2434
+ let e = null, r = null;
2435
+ for (const n of this._def.checks) {
2436
+ if (n.kind === "finite" || n.kind === "int" || n.kind === "multipleOf")
2437
+ return !0;
2438
+ n.kind === "min" ? (r === null || n.value > r) && (r = n.value) : n.kind === "max" && (e === null || n.value < e) && (e = n.value);
2439
+ }
2440
+ return Number.isFinite(r) && Number.isFinite(e);
2441
+ }
2442
+ }
2443
+ Ue.create = (t) => new Ue({
2444
+ checks: [],
2445
+ typeName: x.ZodNumber,
2446
+ coerce: (t == null ? void 0 : t.coerce) || !1,
2447
+ ...k(t)
2448
+ });
2449
+ class We extends A {
2450
+ constructor() {
2451
+ super(...arguments), this.min = this.gte, this.max = this.lte;
2452
+ }
2453
+ _parse(e) {
2454
+ if (this._def.coerce)
2455
+ try {
2456
+ e.data = BigInt(e.data);
2457
+ } catch {
2458
+ return this._getInvalidInput(e);
2459
+ }
2460
+ if (this._getType(e) !== h.bigint)
2461
+ return this._getInvalidInput(e);
2462
+ let n;
2463
+ const s = new U();
2464
+ for (const i of this._def.checks)
2465
+ i.kind === "min" ? (i.inclusive ? e.data < i.value : e.data <= i.value) && (n = this._getOrReturnCtx(e, n), u(n, {
2466
+ code: l.too_small,
2467
+ type: "bigint",
2468
+ minimum: i.value,
2469
+ inclusive: i.inclusive,
2470
+ message: i.message
2471
+ }), s.dirty()) : i.kind === "max" ? (i.inclusive ? e.data > i.value : e.data >= i.value) && (n = this._getOrReturnCtx(e, n), u(n, {
2472
+ code: l.too_big,
2473
+ type: "bigint",
2474
+ maximum: i.value,
2475
+ inclusive: i.inclusive,
2476
+ message: i.message
2477
+ }), s.dirty()) : i.kind === "multipleOf" ? e.data % i.value !== BigInt(0) && (n = this._getOrReturnCtx(e, n), u(n, {
2478
+ code: l.not_multiple_of,
2479
+ multipleOf: i.value,
2480
+ message: i.message
2481
+ }), s.dirty()) : N.assertNever(i);
2482
+ return { status: s.value, value: e.data };
2483
+ }
2484
+ _getInvalidInput(e) {
2485
+ const r = this._getOrReturnCtx(e);
2486
+ return u(r, {
2487
+ code: l.invalid_type,
2488
+ expected: h.bigint,
2489
+ received: r.parsedType
2490
+ }), v;
2491
+ }
2492
+ gte(e, r) {
2493
+ return this.setLimit("min", e, !0, m.toString(r));
2494
+ }
2495
+ gt(e, r) {
2496
+ return this.setLimit("min", e, !1, m.toString(r));
2497
+ }
2498
+ lte(e, r) {
2499
+ return this.setLimit("max", e, !0, m.toString(r));
2500
+ }
2501
+ lt(e, r) {
2502
+ return this.setLimit("max", e, !1, m.toString(r));
2503
+ }
2504
+ setLimit(e, r, n, s) {
2505
+ return new We({
2506
+ ...this._def,
2507
+ checks: [
2508
+ ...this._def.checks,
2509
+ {
2510
+ kind: e,
2511
+ value: r,
2512
+ inclusive: n,
2513
+ message: m.toString(s)
2514
+ }
2515
+ ]
2516
+ });
2517
+ }
2518
+ _addCheck(e) {
2519
+ return new We({
2520
+ ...this._def,
2521
+ checks: [...this._def.checks, e]
2522
+ });
2523
+ }
2524
+ positive(e) {
2525
+ return this._addCheck({
2526
+ kind: "min",
2527
+ value: BigInt(0),
2528
+ inclusive: !1,
2529
+ message: m.toString(e)
2530
+ });
2531
+ }
2532
+ negative(e) {
2533
+ return this._addCheck({
2534
+ kind: "max",
2535
+ value: BigInt(0),
2536
+ inclusive: !1,
2537
+ message: m.toString(e)
2538
+ });
2539
+ }
2540
+ nonpositive(e) {
2541
+ return this._addCheck({
2542
+ kind: "max",
2543
+ value: BigInt(0),
2544
+ inclusive: !0,
2545
+ message: m.toString(e)
2546
+ });
2547
+ }
2548
+ nonnegative(e) {
2549
+ return this._addCheck({
2550
+ kind: "min",
2551
+ value: BigInt(0),
2552
+ inclusive: !0,
2553
+ message: m.toString(e)
2554
+ });
2555
+ }
2556
+ multipleOf(e, r) {
2557
+ return this._addCheck({
2558
+ kind: "multipleOf",
2559
+ value: e,
2560
+ message: m.toString(r)
2561
+ });
2562
+ }
2563
+ get minValue() {
2564
+ let e = null;
2565
+ for (const r of this._def.checks)
2566
+ r.kind === "min" && (e === null || r.value > e) && (e = r.value);
2567
+ return e;
2568
+ }
2569
+ get maxValue() {
2570
+ let e = null;
2571
+ for (const r of this._def.checks)
2572
+ r.kind === "max" && (e === null || r.value < e) && (e = r.value);
2573
+ return e;
2574
+ }
2575
+ }
2576
+ We.create = (t) => {
2577
+ var e;
2578
+ return new We({
2579
+ checks: [],
2580
+ typeName: x.ZodBigInt,
2581
+ coerce: (e = t == null ? void 0 : t.coerce) != null ? e : !1,
2582
+ ...k(t)
2583
+ });
2584
+ };
2585
+ class xr extends A {
2586
+ _parse(e) {
2587
+ if (this._def.coerce && (e.data = Boolean(e.data)), this._getType(e) !== h.boolean) {
2588
+ const n = this._getOrReturnCtx(e);
2589
+ return u(n, {
2590
+ code: l.invalid_type,
2591
+ expected: h.boolean,
2592
+ received: n.parsedType
2593
+ }), v;
2594
+ }
2595
+ return Y(e.data);
2596
+ }
2597
+ }
2598
+ xr.create = (t) => new xr({
2599
+ typeName: x.ZodBoolean,
2600
+ coerce: (t == null ? void 0 : t.coerce) || !1,
2601
+ ...k(t)
2602
+ });
2603
+ class ct extends A {
2604
+ _parse(e) {
2605
+ if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== h.date) {
2606
+ const i = this._getOrReturnCtx(e);
2607
+ return u(i, {
2608
+ code: l.invalid_type,
2609
+ expected: h.date,
2610
+ received: i.parsedType
2611
+ }), v;
2612
+ }
2613
+ if (Number.isNaN(e.data.getTime())) {
2614
+ const i = this._getOrReturnCtx(e);
2615
+ return u(i, {
2616
+ code: l.invalid_date
2617
+ }), v;
2618
+ }
2619
+ const n = new U();
2620
+ let s;
2621
+ for (const i of this._def.checks)
2622
+ i.kind === "min" ? e.data.getTime() < i.value && (s = this._getOrReturnCtx(e, s), u(s, {
2623
+ code: l.too_small,
2624
+ message: i.message,
2625
+ inclusive: !0,
2626
+ exact: !1,
2627
+ minimum: i.value,
2628
+ type: "date"
2629
+ }), n.dirty()) : i.kind === "max" ? e.data.getTime() > i.value && (s = this._getOrReturnCtx(e, s), u(s, {
2630
+ code: l.too_big,
2631
+ message: i.message,
2632
+ inclusive: !0,
2633
+ exact: !1,
2634
+ maximum: i.value,
2635
+ type: "date"
2636
+ }), n.dirty()) : N.assertNever(i);
2637
+ return {
2638
+ status: n.value,
2639
+ value: new Date(e.data.getTime())
2640
+ };
2641
+ }
2642
+ _addCheck(e) {
2643
+ return new ct({
2644
+ ...this._def,
2645
+ checks: [...this._def.checks, e]
2646
+ });
2647
+ }
2648
+ min(e, r) {
2649
+ return this._addCheck({
2650
+ kind: "min",
2651
+ value: e.getTime(),
2652
+ message: m.toString(r)
2653
+ });
2654
+ }
2655
+ max(e, r) {
2656
+ return this._addCheck({
2657
+ kind: "max",
2658
+ value: e.getTime(),
2659
+ message: m.toString(r)
2660
+ });
2661
+ }
2662
+ get minDate() {
2663
+ let e = null;
2664
+ for (const r of this._def.checks)
2665
+ r.kind === "min" && (e === null || r.value > e) && (e = r.value);
2666
+ return e != null ? new Date(e) : null;
2667
+ }
2668
+ get maxDate() {
2669
+ let e = null;
2670
+ for (const r of this._def.checks)
2671
+ r.kind === "max" && (e === null || r.value < e) && (e = r.value);
2672
+ return e != null ? new Date(e) : null;
2673
+ }
2674
+ }
2675
+ ct.create = (t) => new ct({
2676
+ checks: [],
2677
+ coerce: (t == null ? void 0 : t.coerce) || !1,
2678
+ typeName: x.ZodDate,
2679
+ ...k(t)
2680
+ });
2681
+ class _r extends A {
2682
+ _parse(e) {
2683
+ if (this._getType(e) !== h.symbol) {
2684
+ const n = this._getOrReturnCtx(e);
2685
+ return u(n, {
2686
+ code: l.invalid_type,
2687
+ expected: h.symbol,
2688
+ received: n.parsedType
2689
+ }), v;
2690
+ }
2691
+ return Y(e.data);
2692
+ }
2693
+ }
2694
+ _r.create = (t) => new _r({
2695
+ typeName: x.ZodSymbol,
2696
+ ...k(t)
2697
+ });
2698
+ class br extends A {
2699
+ _parse(e) {
2700
+ if (this._getType(e) !== h.undefined) {
2701
+ const n = this._getOrReturnCtx(e);
2702
+ return u(n, {
2703
+ code: l.invalid_type,
2704
+ expected: h.undefined,
2705
+ received: n.parsedType
2706
+ }), v;
2707
+ }
2708
+ return Y(e.data);
2709
+ }
2710
+ }
2711
+ br.create = (t) => new br({
2712
+ typeName: x.ZodUndefined,
2713
+ ...k(t)
2714
+ });
2715
+ class wr extends A {
2716
+ _parse(e) {
2717
+ if (this._getType(e) !== h.null) {
2718
+ const n = this._getOrReturnCtx(e);
2719
+ return u(n, {
2720
+ code: l.invalid_type,
2721
+ expected: h.null,
2722
+ received: n.parsedType
2723
+ }), v;
2724
+ }
2725
+ return Y(e.data);
2726
+ }
2727
+ }
2728
+ wr.create = (t) => new wr({
2729
+ typeName: x.ZodNull,
2730
+ ...k(t)
2731
+ });
2732
+ class kr extends A {
2733
+ constructor() {
2734
+ super(...arguments), this._any = !0;
2735
+ }
2736
+ _parse(e) {
2737
+ return Y(e.data);
2738
+ }
2739
+ }
2740
+ kr.create = (t) => new kr({
2741
+ typeName: x.ZodAny,
2742
+ ...k(t)
2743
+ });
2744
+ class Sr extends A {
2745
+ constructor() {
2746
+ super(...arguments), this._unknown = !0;
2747
+ }
2748
+ _parse(e) {
2749
+ return Y(e.data);
2750
+ }
2751
+ }
2752
+ Sr.create = (t) => new Sr({
2753
+ typeName: x.ZodUnknown,
2754
+ ...k(t)
2755
+ });
2756
+ class me extends A {
2757
+ _parse(e) {
2758
+ const r = this._getOrReturnCtx(e);
2759
+ return u(r, {
2760
+ code: l.invalid_type,
2761
+ expected: h.never,
2762
+ received: r.parsedType
2763
+ }), v;
2764
+ }
2765
+ }
2766
+ me.create = (t) => new me({
2767
+ typeName: x.ZodNever,
2768
+ ...k(t)
2769
+ });
2770
+ class Cr extends A {
2771
+ _parse(e) {
2772
+ if (this._getType(e) !== h.undefined) {
2773
+ const n = this._getOrReturnCtx(e);
2774
+ return u(n, {
2775
+ code: l.invalid_type,
2776
+ expected: h.void,
2777
+ received: n.parsedType
2778
+ }), v;
2779
+ }
2780
+ return Y(e.data);
2781
+ }
2782
+ }
2783
+ Cr.create = (t) => new Cr({
2784
+ typeName: x.ZodVoid,
2785
+ ...k(t)
2786
+ });
2787
+ class ee extends A {
2788
+ _parse(e) {
2789
+ const { ctx: r, status: n } = this._processInputParams(e), s = this._def;
2790
+ if (r.parsedType !== h.array)
2791
+ return u(r, {
2792
+ code: l.invalid_type,
2793
+ expected: h.array,
2794
+ received: r.parsedType
2795
+ }), v;
2796
+ if (s.exactLength !== null) {
2797
+ const a = r.data.length > s.exactLength.value, o = r.data.length < s.exactLength.value;
2798
+ (a || o) && (u(r, {
2799
+ code: a ? l.too_big : l.too_small,
2800
+ minimum: o ? s.exactLength.value : void 0,
2801
+ maximum: a ? s.exactLength.value : void 0,
2802
+ type: "array",
2803
+ inclusive: !0,
2804
+ exact: !0,
2805
+ message: s.exactLength.message
2806
+ }), n.dirty());
2807
+ }
2808
+ if (s.minLength !== null && r.data.length < s.minLength.value && (u(r, {
2809
+ code: l.too_small,
2810
+ minimum: s.minLength.value,
2811
+ type: "array",
2812
+ inclusive: !0,
2813
+ exact: !1,
2814
+ message: s.minLength.message
2815
+ }), n.dirty()), s.maxLength !== null && r.data.length > s.maxLength.value && (u(r, {
2816
+ code: l.too_big,
2817
+ maximum: s.maxLength.value,
2818
+ type: "array",
2819
+ inclusive: !0,
2820
+ exact: !1,
2821
+ message: s.maxLength.message
2822
+ }), n.dirty()), r.common.async)
2823
+ return Promise.all([...r.data].map((a, o) => s.type._parseAsync(new pe(r, a, r.path, o)))).then((a) => U.mergeArray(n, a));
2824
+ const i = [...r.data].map((a, o) => s.type._parseSync(new pe(r, a, r.path, o)));
2825
+ return U.mergeArray(n, i);
2826
+ }
2827
+ get element() {
2828
+ return this._def.type;
2829
+ }
2830
+ min(e, r) {
2831
+ return new ee({
2832
+ ...this._def,
2833
+ minLength: { value: e, message: m.toString(r) }
2834
+ });
2835
+ }
2836
+ max(e, r) {
2837
+ return new ee({
2838
+ ...this._def,
2839
+ maxLength: { value: e, message: m.toString(r) }
2840
+ });
2841
+ }
2842
+ length(e, r) {
2843
+ return new ee({
2844
+ ...this._def,
2845
+ exactLength: { value: e, message: m.toString(r) }
2846
+ });
2847
+ }
2848
+ nonempty(e) {
2849
+ return this.min(1, e);
2850
+ }
2851
+ }
2852
+ ee.create = (t, e) => new ee({
2853
+ type: t,
2854
+ minLength: null,
2855
+ maxLength: null,
2856
+ exactLength: null,
2857
+ typeName: x.ZodArray,
2858
+ ...k(e)
2859
+ });
2860
+ function Ce(t) {
2861
+ if (t instanceof z) {
2862
+ const e = {};
2863
+ for (const r in t.shape) {
2864
+ const n = t.shape[r];
2865
+ e[r] = he.create(Ce(n));
2866
+ }
2867
+ return new z({
2868
+ ...t._def,
2869
+ shape: () => e
2870
+ });
2871
+ } else
2872
+ return t instanceof ee ? new ee({
2873
+ ...t._def,
2874
+ type: Ce(t.element)
2875
+ }) : t instanceof he ? he.create(Ce(t.unwrap())) : t instanceof je ? je.create(Ce(t.unwrap())) : t instanceof we ? we.create(t.items.map((e) => Ce(e))) : t;
2876
+ }
2877
+ class z extends A {
2878
+ constructor() {
2879
+ super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
2880
+ }
2881
+ _getCached() {
2882
+ if (this._cached !== null)
2883
+ return this._cached;
2884
+ const e = this._def.shape(), r = N.objectKeys(e);
2885
+ return this._cached = { shape: e, keys: r }, this._cached;
2886
+ }
2887
+ _parse(e) {
2888
+ if (this._getType(e) !== h.object) {
2889
+ const d = this._getOrReturnCtx(e);
2890
+ return u(d, {
2891
+ code: l.invalid_type,
2892
+ expected: h.object,
2893
+ received: d.parsedType
2894
+ }), v;
2895
+ }
2896
+ const { status: n, ctx: s } = this._processInputParams(e), { shape: i, keys: a } = this._getCached(), o = [];
2897
+ if (!(this._def.catchall instanceof me && this._def.unknownKeys === "strip"))
2898
+ for (const d in s.data)
2899
+ a.includes(d) || o.push(d);
2900
+ const c = [];
2901
+ for (const d of a) {
2902
+ const f = i[d], w = s.data[d];
2903
+ c.push({
2904
+ key: { status: "valid", value: d },
2905
+ value: f._parse(new pe(s, w, s.path, d)),
2906
+ alwaysSet: d in s.data
2907
+ });
2908
+ }
2909
+ if (this._def.catchall instanceof me) {
2910
+ const d = this._def.unknownKeys;
2911
+ if (d === "passthrough")
2912
+ for (const f of o)
2913
+ c.push({
2914
+ key: { status: "valid", value: f },
2915
+ value: { status: "valid", value: s.data[f] }
2916
+ });
2917
+ else if (d === "strict")
2918
+ o.length > 0 && (u(s, {
2919
+ code: l.unrecognized_keys,
2920
+ keys: o
2921
+ }), n.dirty());
2922
+ else if (d !== "strip")
2923
+ throw new Error("Internal ZodObject error: invalid unknownKeys value.");
2924
+ } else {
2925
+ const d = this._def.catchall;
2926
+ for (const f of o) {
2927
+ const w = s.data[f];
2928
+ c.push({
2929
+ key: { status: "valid", value: f },
2930
+ value: d._parse(
2931
+ new pe(s, w, s.path, f)
2932
+ ),
2933
+ alwaysSet: f in s.data
2934
+ });
2935
+ }
2936
+ }
2937
+ return s.common.async ? Promise.resolve().then(async () => {
2938
+ const d = [];
2939
+ for (const f of c) {
2940
+ const w = await f.key, Z = await f.value;
2941
+ d.push({
2942
+ key: w,
2943
+ value: Z,
2944
+ alwaysSet: f.alwaysSet
2945
+ });
2946
+ }
2947
+ return d;
2948
+ }).then((d) => U.mergeObjectSync(n, d)) : U.mergeObjectSync(n, c);
2949
+ }
2950
+ get shape() {
2951
+ return this._def.shape();
2952
+ }
2953
+ strict(e) {
2954
+ return m.errToObj, new z({
2955
+ ...this._def,
2956
+ unknownKeys: "strict",
2957
+ ...e !== void 0 ? {
2958
+ errorMap: (r, n) => {
2959
+ var i, a, o, c;
2960
+ const s = (o = (a = (i = this._def).errorMap) == null ? void 0 : a.call(i, r, n).message) != null ? o : n.defaultError;
2961
+ return r.code === "unrecognized_keys" ? {
2962
+ message: (c = m.errToObj(e).message) != null ? c : s
2963
+ } : {
2964
+ message: s
2965
+ };
2966
+ }
2967
+ } : {}
2968
+ });
2969
+ }
2970
+ strip() {
2971
+ return new z({
2972
+ ...this._def,
2973
+ unknownKeys: "strip"
2974
+ });
2975
+ }
2976
+ passthrough() {
2977
+ return new z({
2978
+ ...this._def,
2979
+ unknownKeys: "passthrough"
2980
+ });
2981
+ }
2982
+ extend(e) {
2983
+ return new z({
2984
+ ...this._def,
2985
+ shape: () => ({
2986
+ ...this._def.shape(),
2987
+ ...e
2988
+ })
2989
+ });
2990
+ }
2991
+ merge(e) {
2992
+ return new z({
2993
+ unknownKeys: e._def.unknownKeys,
2994
+ catchall: e._def.catchall,
2995
+ shape: () => ({
2996
+ ...this._def.shape(),
2997
+ ...e._def.shape()
2998
+ }),
2999
+ typeName: x.ZodObject
3000
+ });
3001
+ }
3002
+ setKey(e, r) {
3003
+ return this.augment({ [e]: r });
3004
+ }
3005
+ catchall(e) {
3006
+ return new z({
3007
+ ...this._def,
3008
+ catchall: e
3009
+ });
3010
+ }
3011
+ pick(e) {
3012
+ const r = {};
3013
+ for (const n of N.objectKeys(e))
3014
+ e[n] && this.shape[n] && (r[n] = this.shape[n]);
3015
+ return new z({
3016
+ ...this._def,
3017
+ shape: () => r
3018
+ });
3019
+ }
3020
+ omit(e) {
3021
+ const r = {};
3022
+ for (const n of N.objectKeys(this.shape))
3023
+ e[n] || (r[n] = this.shape[n]);
3024
+ return new z({
3025
+ ...this._def,
3026
+ shape: () => r
3027
+ });
3028
+ }
3029
+ deepPartial() {
3030
+ return Ce(this);
3031
+ }
3032
+ partial(e) {
3033
+ const r = {};
3034
+ for (const n of N.objectKeys(this.shape)) {
3035
+ const s = this.shape[n];
3036
+ e && !e[n] ? r[n] = s : r[n] = s.optional();
3037
+ }
3038
+ return new z({
3039
+ ...this._def,
3040
+ shape: () => r
3041
+ });
3042
+ }
3043
+ required(e) {
3044
+ const r = {};
3045
+ for (const n of N.objectKeys(this.shape))
3046
+ if (e && !e[n])
3047
+ r[n] = this.shape[n];
3048
+ else {
3049
+ let i = this.shape[n];
3050
+ for (; i instanceof he; )
3051
+ i = i._def.innerType;
3052
+ r[n] = i;
3053
+ }
3054
+ return new z({
3055
+ ...this._def,
3056
+ shape: () => r
3057
+ });
3058
+ }
3059
+ keyof() {
3060
+ return on(N.objectKeys(this.shape));
3061
+ }
3062
+ }
3063
+ z.create = (t, e) => new z({
3064
+ shape: () => t,
3065
+ unknownKeys: "strip",
3066
+ catchall: me.create(),
3067
+ typeName: x.ZodObject,
3068
+ ...k(e)
3069
+ });
3070
+ z.strictCreate = (t, e) => new z({
3071
+ shape: () => t,
3072
+ unknownKeys: "strict",
3073
+ catchall: me.create(),
3074
+ typeName: x.ZodObject,
3075
+ ...k(e)
3076
+ });
3077
+ z.lazycreate = (t, e) => new z({
3078
+ shape: t,
3079
+ unknownKeys: "strip",
3080
+ catchall: me.create(),
3081
+ typeName: x.ZodObject,
3082
+ ...k(e)
3083
+ });
3084
+ class dt extends A {
3085
+ _parse(e) {
3086
+ const { ctx: r } = this._processInputParams(e), n = this._def.options;
3087
+ function s(i) {
3088
+ for (const o of i)
3089
+ if (o.result.status === "valid")
3090
+ return o.result;
3091
+ for (const o of i)
3092
+ if (o.result.status === "dirty")
3093
+ return r.common.issues.push(...o.ctx.common.issues), o.result;
3094
+ const a = i.map((o) => new ie(o.ctx.common.issues));
3095
+ return u(r, {
3096
+ code: l.invalid_union,
3097
+ unionErrors: a
3098
+ }), v;
3099
+ }
3100
+ if (r.common.async)
3101
+ return Promise.all(n.map(async (i) => {
3102
+ const a = {
3103
+ ...r,
3104
+ common: {
3105
+ ...r.common,
3106
+ issues: []
3107
+ },
3108
+ parent: null
3109
+ };
3110
+ return {
3111
+ result: await i._parseAsync({
3112
+ data: r.data,
3113
+ path: r.path,
3114
+ parent: a
3115
+ }),
3116
+ ctx: a
3117
+ };
3118
+ })).then(s);
3119
+ {
3120
+ let i;
3121
+ const a = [];
3122
+ for (const c of n) {
3123
+ const d = {
3124
+ ...r,
3125
+ common: {
3126
+ ...r.common,
3127
+ issues: []
3128
+ },
3129
+ parent: null
3130
+ }, f = c._parseSync({
3131
+ data: r.data,
3132
+ path: r.path,
3133
+ parent: d
3134
+ });
3135
+ if (f.status === "valid")
3136
+ return f;
3137
+ f.status === "dirty" && !i && (i = { result: f, ctx: d }), d.common.issues.length && a.push(d.common.issues);
3138
+ }
3139
+ if (i)
3140
+ return r.common.issues.push(...i.ctx.common.issues), i.result;
3141
+ const o = a.map((c) => new ie(c));
3142
+ return u(r, {
3143
+ code: l.invalid_union,
3144
+ unionErrors: o
3145
+ }), v;
3146
+ }
3147
+ }
3148
+ get options() {
3149
+ return this._def.options;
3150
+ }
3151
+ }
3152
+ dt.create = (t, e) => new dt({
3153
+ options: t,
3154
+ typeName: x.ZodUnion,
3155
+ ...k(e)
3156
+ });
3157
+ function Mt(t, e) {
3158
+ const r = le(t), n = le(e);
3159
+ if (t === e)
3160
+ return { valid: !0, data: t };
3161
+ if (r === h.object && n === h.object) {
3162
+ const s = N.objectKeys(e), i = N.objectKeys(t).filter((o) => s.indexOf(o) !== -1), a = { ...t, ...e };
3163
+ for (const o of i) {
3164
+ const c = Mt(t[o], e[o]);
3165
+ if (!c.valid)
3166
+ return { valid: !1 };
3167
+ a[o] = c.data;
3168
+ }
3169
+ return { valid: !0, data: a };
3170
+ } else if (r === h.array && n === h.array) {
3171
+ if (t.length !== e.length)
3172
+ return { valid: !1 };
3173
+ const s = [];
3174
+ for (let i = 0; i < t.length; i++) {
3175
+ const a = t[i], o = e[i], c = Mt(a, o);
3176
+ if (!c.valid)
3177
+ return { valid: !1 };
3178
+ s.push(c.data);
3179
+ }
3180
+ return { valid: !0, data: s };
3181
+ } else
3182
+ return r === h.date && n === h.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
3183
+ }
3184
+ class lt extends A {
3185
+ _parse(e) {
3186
+ const { status: r, ctx: n } = this._processInputParams(e), s = (i, a) => {
3187
+ if (gr(i) || gr(a))
3188
+ return v;
3189
+ const o = Mt(i.value, a.value);
3190
+ return o.valid ? ((yr(i) || yr(a)) && r.dirty(), { status: r.value, value: o.data }) : (u(n, {
3191
+ code: l.invalid_intersection_types
3192
+ }), v);
3193
+ };
3194
+ return n.common.async ? Promise.all([
3195
+ this._def.left._parseAsync({
3196
+ data: n.data,
3197
+ path: n.path,
3198
+ parent: n
3199
+ }),
3200
+ this._def.right._parseAsync({
3201
+ data: n.data,
3202
+ path: n.path,
3203
+ parent: n
3204
+ })
3205
+ ]).then(([i, a]) => s(i, a)) : s(this._def.left._parseSync({
3206
+ data: n.data,
3207
+ path: n.path,
3208
+ parent: n
3209
+ }), this._def.right._parseSync({
3210
+ data: n.data,
3211
+ path: n.path,
3212
+ parent: n
3213
+ }));
3214
+ }
3215
+ }
3216
+ lt.create = (t, e, r) => new lt({
3217
+ left: t,
3218
+ right: e,
3219
+ typeName: x.ZodIntersection,
3220
+ ...k(r)
3221
+ });
3222
+ class we extends A {
3223
+ _parse(e) {
3224
+ const { status: r, ctx: n } = this._processInputParams(e);
3225
+ if (n.parsedType !== h.array)
3226
+ return u(n, {
3227
+ code: l.invalid_type,
3228
+ expected: h.array,
3229
+ received: n.parsedType
3230
+ }), v;
3231
+ if (n.data.length < this._def.items.length)
3232
+ return u(n, {
3233
+ code: l.too_small,
3234
+ minimum: this._def.items.length,
3235
+ inclusive: !0,
3236
+ exact: !1,
3237
+ type: "array"
3238
+ }), v;
3239
+ !this._def.rest && n.data.length > this._def.items.length && (u(n, {
3240
+ code: l.too_big,
3241
+ maximum: this._def.items.length,
3242
+ inclusive: !0,
3243
+ exact: !1,
3244
+ type: "array"
3245
+ }), r.dirty());
3246
+ const i = [...n.data].map((a, o) => {
3247
+ const c = this._def.items[o] || this._def.rest;
3248
+ return c ? c._parse(new pe(n, a, n.path, o)) : null;
3249
+ }).filter((a) => !!a);
3250
+ return n.common.async ? Promise.all(i).then((a) => U.mergeArray(r, a)) : U.mergeArray(r, i);
3251
+ }
3252
+ get items() {
3253
+ return this._def.items;
3254
+ }
3255
+ rest(e) {
3256
+ return new we({
3257
+ ...this._def,
3258
+ rest: e
3259
+ });
3260
+ }
3261
+ }
3262
+ we.create = (t, e) => {
3263
+ if (!Array.isArray(t))
3264
+ throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
3265
+ return new we({
3266
+ items: t,
3267
+ typeName: x.ZodTuple,
3268
+ rest: null,
3269
+ ...k(e)
3270
+ });
3271
+ };
3272
+ class Ar extends A {
3273
+ get keySchema() {
3274
+ return this._def.keyType;
3275
+ }
3276
+ get valueSchema() {
3277
+ return this._def.valueType;
3278
+ }
3279
+ _parse(e) {
3280
+ const { status: r, ctx: n } = this._processInputParams(e);
3281
+ if (n.parsedType !== h.map)
3282
+ return u(n, {
3283
+ code: l.invalid_type,
3284
+ expected: h.map,
3285
+ received: n.parsedType
3286
+ }), v;
3287
+ const s = this._def.keyType, i = this._def.valueType, a = [...n.data.entries()].map(([o, c], d) => ({
3288
+ key: s._parse(new pe(n, o, n.path, [d, "key"])),
3289
+ value: i._parse(new pe(n, c, n.path, [d, "value"]))
3290
+ }));
3291
+ if (n.common.async) {
3292
+ const o = /* @__PURE__ */ new Map();
3293
+ return Promise.resolve().then(async () => {
3294
+ for (const c of a) {
3295
+ const d = await c.key, f = await c.value;
3296
+ if (d.status === "aborted" || f.status === "aborted")
3297
+ return v;
3298
+ (d.status === "dirty" || f.status === "dirty") && r.dirty(), o.set(d.value, f.value);
3299
+ }
3300
+ return { status: r.value, value: o };
3301
+ });
3302
+ } else {
3303
+ const o = /* @__PURE__ */ new Map();
3304
+ for (const c of a) {
3305
+ const d = c.key, f = c.value;
3306
+ if (d.status === "aborted" || f.status === "aborted")
3307
+ return v;
3308
+ (d.status === "dirty" || f.status === "dirty") && r.dirty(), o.set(d.value, f.value);
3309
+ }
3310
+ return { status: r.value, value: o };
3311
+ }
3312
+ }
3313
+ }
3314
+ Ar.create = (t, e, r) => new Ar({
3315
+ valueType: e,
3316
+ keyType: t,
3317
+ typeName: x.ZodMap,
3318
+ ...k(r)
3319
+ });
3320
+ class qe extends A {
3321
+ _parse(e) {
3322
+ const { status: r, ctx: n } = this._processInputParams(e);
3323
+ if (n.parsedType !== h.set)
3324
+ return u(n, {
3325
+ code: l.invalid_type,
3326
+ expected: h.set,
3327
+ received: n.parsedType
3328
+ }), v;
3329
+ const s = this._def;
3330
+ s.minSize !== null && n.data.size < s.minSize.value && (u(n, {
3331
+ code: l.too_small,
3332
+ minimum: s.minSize.value,
3333
+ type: "set",
3334
+ inclusive: !0,
3335
+ exact: !1,
3336
+ message: s.minSize.message
3337
+ }), r.dirty()), s.maxSize !== null && n.data.size > s.maxSize.value && (u(n, {
3338
+ code: l.too_big,
3339
+ maximum: s.maxSize.value,
3340
+ type: "set",
3341
+ inclusive: !0,
3342
+ exact: !1,
3343
+ message: s.maxSize.message
3344
+ }), r.dirty());
3345
+ const i = this._def.valueType;
3346
+ function a(c) {
3347
+ const d = /* @__PURE__ */ new Set();
3348
+ for (const f of c) {
3349
+ if (f.status === "aborted")
3350
+ return v;
3351
+ f.status === "dirty" && r.dirty(), d.add(f.value);
3352
+ }
3353
+ return { status: r.value, value: d };
3354
+ }
3355
+ const o = [...n.data.values()].map((c, d) => i._parse(new pe(n, c, n.path, d)));
3356
+ return n.common.async ? Promise.all(o).then((c) => a(c)) : a(o);
3357
+ }
3358
+ min(e, r) {
3359
+ return new qe({
3360
+ ...this._def,
3361
+ minSize: { value: e, message: m.toString(r) }
3362
+ });
3363
+ }
3364
+ max(e, r) {
3365
+ return new qe({
3366
+ ...this._def,
3367
+ maxSize: { value: e, message: m.toString(r) }
3368
+ });
3369
+ }
3370
+ size(e, r) {
3371
+ return this.min(e, r).max(e, r);
3372
+ }
3373
+ nonempty(e) {
3374
+ return this.min(1, e);
3375
+ }
3376
+ }
3377
+ qe.create = (t, e) => new qe({
3378
+ valueType: t,
3379
+ minSize: null,
3380
+ maxSize: null,
3381
+ typeName: x.ZodSet,
3382
+ ...k(e)
3383
+ });
3384
+ class Nr extends A {
3385
+ get schema() {
3386
+ return this._def.getter();
3387
+ }
3388
+ _parse(e) {
3389
+ const { ctx: r } = this._processInputParams(e);
3390
+ return this._def.getter()._parse({ data: r.data, path: r.path, parent: r });
3391
+ }
3392
+ }
3393
+ Nr.create = (t, e) => new Nr({
3394
+ getter: t,
3395
+ typeName: x.ZodLazy,
3396
+ ...k(e)
3397
+ });
3398
+ class Tr extends A {
3399
+ _parse(e) {
3400
+ if (e.data !== this._def.value) {
3401
+ const r = this._getOrReturnCtx(e);
3402
+ return u(r, {
3403
+ received: r.data,
3404
+ code: l.invalid_literal,
3405
+ expected: this._def.value
3406
+ }), v;
3407
+ }
3408
+ return { status: "valid", value: e.data };
3409
+ }
3410
+ get value() {
3411
+ return this._def.value;
3412
+ }
3413
+ }
3414
+ Tr.create = (t, e) => new Tr({
3415
+ value: t,
3416
+ typeName: x.ZodLiteral,
3417
+ ...k(e)
3418
+ });
3419
+ function on(t, e) {
3420
+ return new Re({
3421
+ values: t,
3422
+ typeName: x.ZodEnum,
3423
+ ...k(e)
3424
+ });
3425
+ }
3426
+ class Re extends A {
3427
+ _parse(e) {
3428
+ if (typeof e.data != "string") {
3429
+ const r = this._getOrReturnCtx(e), n = this._def.values;
3430
+ return u(r, {
3431
+ expected: N.joinValues(n),
3432
+ received: r.parsedType,
3433
+ code: l.invalid_type
3434
+ }), v;
3435
+ }
3436
+ if (this._cache || (this._cache = new Set(this._def.values)), !this._cache.has(e.data)) {
3437
+ const r = this._getOrReturnCtx(e), n = this._def.values;
3438
+ return u(r, {
3439
+ received: r.data,
3440
+ code: l.invalid_enum_value,
3441
+ options: n
3442
+ }), v;
3443
+ }
3444
+ return Y(e.data);
3445
+ }
3446
+ get options() {
3447
+ return this._def.values;
3448
+ }
3449
+ get enum() {
3450
+ const e = {};
3451
+ for (const r of this._def.values)
3452
+ e[r] = r;
3453
+ return e;
3454
+ }
3455
+ get Values() {
3456
+ const e = {};
3457
+ for (const r of this._def.values)
3458
+ e[r] = r;
3459
+ return e;
3460
+ }
3461
+ get Enum() {
3462
+ const e = {};
3463
+ for (const r of this._def.values)
3464
+ e[r] = r;
3465
+ return e;
3466
+ }
3467
+ extract(e, r = this._def) {
3468
+ return Re.create(e, {
3469
+ ...this._def,
3470
+ ...r
3471
+ });
3472
+ }
3473
+ exclude(e, r = this._def) {
3474
+ return Re.create(this.options.filter((n) => !e.includes(n)), {
3475
+ ...this._def,
3476
+ ...r
3477
+ });
3478
+ }
3479
+ }
3480
+ Re.create = on;
3481
+ class Or extends A {
3482
+ _parse(e) {
3483
+ const r = N.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
3484
+ if (n.parsedType !== h.string && n.parsedType !== h.number) {
3485
+ const s = N.objectValues(r);
3486
+ return u(n, {
3487
+ expected: N.joinValues(s),
3488
+ received: n.parsedType,
3489
+ code: l.invalid_type
3490
+ }), v;
3491
+ }
3492
+ if (this._cache || (this._cache = new Set(N.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
3493
+ const s = N.objectValues(r);
3494
+ return u(n, {
3495
+ received: n.data,
3496
+ code: l.invalid_enum_value,
3497
+ options: s
3498
+ }), v;
3499
+ }
3500
+ return Y(e.data);
3501
+ }
3502
+ get enum() {
3503
+ return this._def.values;
3504
+ }
3505
+ }
3506
+ Or.create = (t, e) => new Or({
3507
+ values: t,
3508
+ typeName: x.ZodNativeEnum,
3509
+ ...k(e)
3510
+ });
3511
+ class ut extends A {
3512
+ unwrap() {
3513
+ return this._def.type;
3514
+ }
3515
+ _parse(e) {
3516
+ const { ctx: r } = this._processInputParams(e);
3517
+ if (r.parsedType !== h.promise && r.common.async === !1)
3518
+ return u(r, {
3519
+ code: l.invalid_type,
3520
+ expected: h.promise,
3521
+ received: r.parsedType
3522
+ }), v;
3523
+ const n = r.parsedType === h.promise ? r.data : Promise.resolve(r.data);
3524
+ return Y(n.then((s) => this._def.type.parseAsync(s, {
3525
+ path: r.path,
3526
+ errorMap: r.common.contextualErrorMap
3527
+ })));
3528
+ }
3529
+ }
3530
+ ut.create = (t, e) => new ut({
3531
+ type: t,
3532
+ typeName: x.ZodPromise,
3533
+ ...k(e)
3534
+ });
3535
+ class Ie extends A {
3536
+ innerType() {
3537
+ return this._def.schema;
3538
+ }
3539
+ sourceType() {
3540
+ return this._def.schema._def.typeName === x.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
3541
+ }
3542
+ _parse(e) {
3543
+ const { status: r, ctx: n } = this._processInputParams(e), s = this._def.effect || null, i = {
3544
+ addIssue: (a) => {
3545
+ u(n, a), a.fatal ? r.abort() : r.dirty();
3546
+ },
3547
+ get path() {
3548
+ return n.path;
3549
+ }
3550
+ };
3551
+ if (i.addIssue = i.addIssue.bind(i), s.type === "preprocess") {
3552
+ const a = s.transform(n.data, i);
3553
+ if (n.common.async)
3554
+ return Promise.resolve(a).then(async (o) => {
3555
+ if (r.value === "aborted")
3556
+ return v;
3557
+ const c = await this._def.schema._parseAsync({
3558
+ data: o,
3559
+ path: n.path,
3560
+ parent: n
3561
+ });
3562
+ return c.status === "aborted" ? v : c.status === "dirty" || r.value === "dirty" ? Le(c.value) : c;
3563
+ });
3564
+ {
3565
+ if (r.value === "aborted")
3566
+ return v;
3567
+ const o = this._def.schema._parseSync({
3568
+ data: a,
3569
+ path: n.path,
3570
+ parent: n
3571
+ });
3572
+ return o.status === "aborted" ? v : o.status === "dirty" || r.value === "dirty" ? Le(o.value) : o;
3573
+ }
3574
+ }
3575
+ if (s.type === "refinement") {
3576
+ const a = (o) => {
3577
+ const c = s.refinement(o, i);
3578
+ if (n.common.async)
3579
+ return Promise.resolve(c);
3580
+ if (c instanceof Promise)
3581
+ throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
3582
+ return o;
3583
+ };
3584
+ if (n.common.async === !1) {
3585
+ const o = this._def.schema._parseSync({
3586
+ data: n.data,
3587
+ path: n.path,
3588
+ parent: n
3589
+ });
3590
+ return o.status === "aborted" ? v : (o.status === "dirty" && r.dirty(), a(o.value), { status: r.value, value: o.value });
3591
+ } else
3592
+ return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((o) => o.status === "aborted" ? v : (o.status === "dirty" && r.dirty(), a(o.value).then(() => ({ status: r.value, value: o.value }))));
3593
+ }
3594
+ if (s.type === "transform")
3595
+ if (n.common.async === !1) {
3596
+ const a = this._def.schema._parseSync({
3597
+ data: n.data,
3598
+ path: n.path,
3599
+ parent: n
3600
+ });
3601
+ if (!Ee(a))
3602
+ return v;
3603
+ const o = s.transform(a.value, i);
3604
+ if (o instanceof Promise)
3605
+ throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
3606
+ return { status: r.value, value: o };
3607
+ } else
3608
+ return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((a) => Ee(a) ? Promise.resolve(s.transform(a.value, i)).then((o) => ({
3609
+ status: r.value,
3610
+ value: o
3611
+ })) : v);
3612
+ N.assertNever(s);
3613
+ }
3614
+ }
3615
+ Ie.create = (t, e, r) => new Ie({
3616
+ schema: t,
3617
+ typeName: x.ZodEffects,
3618
+ effect: e,
3619
+ ...k(r)
3620
+ });
3621
+ Ie.createWithPreprocess = (t, e, r) => new Ie({
3622
+ schema: e,
3623
+ effect: { type: "preprocess", transform: t },
3624
+ typeName: x.ZodEffects,
3625
+ ...k(r)
3626
+ });
3627
+ class he extends A {
3628
+ _parse(e) {
3629
+ return this._getType(e) === h.undefined ? Y(void 0) : this._def.innerType._parse(e);
3630
+ }
3631
+ unwrap() {
3632
+ return this._def.innerType;
3633
+ }
3634
+ }
3635
+ he.create = (t, e) => new he({
3636
+ innerType: t,
3637
+ typeName: x.ZodOptional,
3638
+ ...k(e)
3639
+ });
3640
+ class je extends A {
3641
+ _parse(e) {
3642
+ return this._getType(e) === h.null ? Y(null) : this._def.innerType._parse(e);
3643
+ }
3644
+ unwrap() {
3645
+ return this._def.innerType;
3646
+ }
3647
+ }
3648
+ je.create = (t, e) => new je({
3649
+ innerType: t,
3650
+ typeName: x.ZodNullable,
3651
+ ...k(e)
3652
+ });
3653
+ class Lt extends A {
3654
+ _parse(e) {
3655
+ const { ctx: r } = this._processInputParams(e);
3656
+ let n = r.data;
3657
+ return r.parsedType === h.undefined && (n = this._def.defaultValue()), this._def.innerType._parse({
3658
+ data: n,
3659
+ path: r.path,
3660
+ parent: r
3661
+ });
3662
+ }
3663
+ removeDefault() {
3664
+ return this._def.innerType;
3665
+ }
3666
+ }
3667
+ Lt.create = (t, e) => new Lt({
3668
+ innerType: t,
3669
+ typeName: x.ZodDefault,
3670
+ defaultValue: typeof e.default == "function" ? e.default : () => e.default,
3671
+ ...k(e)
3672
+ });
3673
+ class Vt extends A {
3674
+ _parse(e) {
3675
+ const { ctx: r } = this._processInputParams(e), n = {
3676
+ ...r,
3677
+ common: {
3678
+ ...r.common,
3679
+ issues: []
3680
+ }
3681
+ }, s = this._def.innerType._parse({
3682
+ data: n.data,
3683
+ path: n.path,
3684
+ parent: {
3685
+ ...n
3686
+ }
3687
+ });
3688
+ return ot(s) ? s.then((i) => ({
3689
+ status: "valid",
3690
+ value: i.status === "valid" ? i.value : this._def.catchValue({
3691
+ get error() {
3692
+ return new ie(n.common.issues);
3693
+ },
3694
+ input: n.data
3695
+ })
3696
+ })) : {
3697
+ status: "valid",
3698
+ value: s.status === "valid" ? s.value : this._def.catchValue({
3699
+ get error() {
3700
+ return new ie(n.common.issues);
3701
+ },
3702
+ input: n.data
3703
+ })
3704
+ };
3705
+ }
3706
+ removeCatch() {
3707
+ return this._def.innerType;
3708
+ }
3709
+ }
3710
+ Vt.create = (t, e) => new Vt({
3711
+ innerType: t,
3712
+ typeName: x.ZodCatch,
3713
+ catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
3714
+ ...k(e)
3715
+ });
3716
+ class Er extends A {
3717
+ _parse(e) {
3718
+ if (this._getType(e) !== h.nan) {
3719
+ const n = this._getOrReturnCtx(e);
3720
+ return u(n, {
3721
+ code: l.invalid_type,
3722
+ expected: h.nan,
3723
+ received: n.parsedType
3724
+ }), v;
3725
+ }
3726
+ return { status: "valid", value: e.data };
3727
+ }
3728
+ }
3729
+ Er.create = (t) => new Er({
3730
+ typeName: x.ZodNaN,
3731
+ ...k(t)
3732
+ });
3733
+ class Hs extends A {
3734
+ _parse(e) {
3735
+ const { ctx: r } = this._processInputParams(e), n = r.data;
3736
+ return this._def.type._parse({
3737
+ data: n,
3738
+ path: r.path,
3739
+ parent: r
3740
+ });
3741
+ }
3742
+ unwrap() {
3743
+ return this._def.type;
3744
+ }
3745
+ }
3746
+ class Ht extends A {
3747
+ _parse(e) {
3748
+ const { status: r, ctx: n } = this._processInputParams(e);
3749
+ if (n.common.async)
3750
+ return (async () => {
3751
+ const i = await this._def.in._parseAsync({
3752
+ data: n.data,
3753
+ path: n.path,
3754
+ parent: n
3755
+ });
3756
+ return i.status === "aborted" ? v : i.status === "dirty" ? (r.dirty(), Le(i.value)) : this._def.out._parseAsync({
3757
+ data: i.value,
3758
+ path: n.path,
3759
+ parent: n
3760
+ });
3761
+ })();
3762
+ {
3763
+ const s = this._def.in._parseSync({
3764
+ data: n.data,
3765
+ path: n.path,
3766
+ parent: n
3767
+ });
3768
+ return s.status === "aborted" ? v : s.status === "dirty" ? (r.dirty(), {
3769
+ status: "dirty",
3770
+ value: s.value
3771
+ }) : this._def.out._parseSync({
3772
+ data: s.value,
3773
+ path: n.path,
3774
+ parent: n
3775
+ });
3776
+ }
3777
+ }
3778
+ static create(e, r) {
3779
+ return new Ht({
3780
+ in: e,
3781
+ out: r,
3782
+ typeName: x.ZodPipeline
3783
+ });
3784
+ }
3785
+ }
3786
+ class Ft extends A {
3787
+ _parse(e) {
3788
+ const r = this._def.innerType._parse(e), n = (s) => (Ee(s) && (s.value = Object.freeze(s.value)), s);
3789
+ return ot(r) ? r.then((s) => n(s)) : n(r);
3790
+ }
3791
+ unwrap() {
3792
+ return this._def.innerType;
3793
+ }
3794
+ }
3795
+ Ft.create = (t, e) => new Ft({
3796
+ innerType: t,
3797
+ typeName: x.ZodReadonly,
3798
+ ...k(e)
3799
+ });
3800
+ z.lazycreate;
3801
+ var x;
3802
+ (function(t) {
3803
+ t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
3804
+ })(x || (x = {}));
3805
+ const ft = fe.create;
3806
+ me.create;
3807
+ ee.create;
3808
+ const cn = z.create;
3809
+ z.strictCreate;
3810
+ dt.create;
3811
+ lt.create;
3812
+ we.create;
3813
+ Re.create;
3814
+ ut.create;
3815
+ he.create;
3816
+ je.create;
3817
+ S.div`
3818
+ position: relative;
3819
+ text-align: center;
3820
+ align-items: center;
3821
+ top: 5px;
3822
+ margin-left: 5px;
3823
+ margin-top: 2px;
3824
+ margin-bottom: 30px;
3825
+ border: 1px solid rgb(78, 161, 211, 0.3);
3826
+ border-radius: 15px;
3827
+ width: 92%;
3828
+ font-weight: 600;
3829
+ font-size: 14px;
3830
+ color: white;
3831
+ padding: 5px;
3832
+ background-color: rgb(78, 161, 211);
3833
+ `;
3834
+ S.div`
3835
+ position: absolute;
3836
+ top: 40px;
3837
+ margin-left: 5px;
3838
+ margin-top: 5px;
3839
+ width: 100%;
3840
+ height: 100%;
3841
+ max-height: 100%;
3842
+ overflow-x: hidden;
3843
+ overflow-y: auto;
3844
+ `;
3845
+ cn({
3846
+ name: ft().min(1, "Name is required"),
3847
+ email: ft().min(1, "Email is required").email("Invalid email address")
3848
+ });
3849
+ const dn = vt`
3850
+ from {
3851
+ opacity: 0;
3852
+ transform: translateY(20px);
3853
+ }
3854
+ to {
3855
+ opacity: 1;
3856
+ transform: translateY(0);
3857
+ }
3858
+ `, ln = vt`
3859
+ from {
3860
+ opacity: 1;
3861
+ transform: translateY(0);
3862
+ }
3863
+ to {
3864
+ opacity: 0;
3865
+ transform: translateY(20px);
3866
+ }
3867
+ `;
3868
+ S.div`
3869
+ position: fixed;
3870
+ right: 0;
3871
+ top: 50%;
3872
+ height: 35%;
3873
+ width: ${(t) => t.maxWidth}%;
3874
+ display: flex;
3875
+ flex-direction: column;
3876
+ background-color: white;
3877
+ box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
3878
+ transition: all 0.5s ease;
3879
+ overflow: hidden;
3880
+ z-index: 10000;
3881
+ animation: ${({
3882
+ displayChat: t
3883
+ }) => t ? dn : ln} 0.3s ease-in-out forwards;
3884
+ `;
3885
+ S.div`
3886
+ position: fixed;
3887
+ right: 0;
3888
+ bottom: 10%;
3889
+ height: 15%;
3890
+ width: ${(t) => t.maxWidth / 2.5}%;
3891
+ display: flex;
3892
+ flex-direction: column;
3893
+ transition: all 0.5s ease;
3894
+ overflow: hidden;
3895
+ z-index: 10000;
3896
+ animation: ${({
3897
+ displayChat: t
3898
+ }) => t ? ln : dn} 0.3s ease-in-out forwards;
3899
+ `;
3900
+ S.div`
3901
+ position: absolute;
3902
+ top: 5;
3903
+ margin-left: 5px;
3904
+ margin-top: 5px;
3905
+ height: 30px;
3906
+ border: 1px solid rgb(78, 161, 211, 0.3);
3907
+ width: 96%;
3908
+
3909
+ font-weight: 600;
3910
+ font-size: 14px;
3911
+ color: rgb(78, 161, 211);
3912
+ padding: 5px;
3913
+ `;
3914
+ S.div`
3915
+ display: flex;
3916
+ flex-direction: column;
3917
+ align-items: flex-start;
3918
+ width: 100%;
3919
+ font-weight: 600;
3920
+ font-size: 12px;
3921
+ color: rgb(78, 161, 211);
3922
+ `;
3923
+ S.div`
3924
+ position: absolute;
3925
+ top: 0;
3926
+ right: 0;
3927
+ padding-top: 5px;
3928
+ width: 30px;
3929
+ font-size: calc(10px + 1vmin);
3930
+ color: white;
3931
+
3932
+ :hover {
3933
+ cursor: pointer;
3934
+ }
3935
+ `;
3936
+ S.div`
3937
+ position: absolute;
3938
+ text-align: center;
3939
+ align-items: center;
3940
+ top: 38px;
3941
+ margin-left: 5px;
3942
+ margin-top: 5px;
3943
+ border: 1px solid rgb(78, 161, 211, 0.3);
3944
+ border-radius: 15px;
3945
+ width: 96%;
3946
+
3947
+ margin-left: 5px;
3948
+ margin-top: 2px;
3949
+ font-weight: 600;
3950
+ font-size: 12px;
3951
+ color: white;
3952
+ padding: 5px;
3953
+ background-color: rgb(78, 161, 211);
3954
+ `;
3955
+ S.div`
3956
+ position: absolute;
3957
+ text-align: center;
3958
+ align-items: center;
3959
+ display: flex;
3960
+ gap: 5px;
3961
+ border: 1px solid rgb(78, 161, 211, 0.3);
3962
+ border-radius: 15px;
3963
+ width: 100%;
3964
+
3965
+ margin-left: 10px;
3966
+ margin-top: 2px;
3967
+ font-weight: 600;
3968
+ font-size: 12px;
3969
+ color: white;
3970
+ padding: 10px;
3971
+ background-color: rgb(78, 161, 211);
3972
+ `;
3973
+ S.div`
3974
+ position: absolute;
3975
+ top: 80px;
3976
+ margin-left: 5px;
3977
+ margin-top: 5px;
3978
+ width: 100%;
3979
+ height: 65%;
3980
+ max-height: 83%;
3981
+ overflow-x: hidden;
3982
+ overflow-y: auto;
3983
+ `;
3984
+ S.div`
3985
+ display: flex;
3986
+ width: 100%;
3987
+ flex-direction: column;
3988
+ padding: 15px;
3989
+ color: #454552;
3990
+ `;
3991
+ S.div`
3992
+ width: 100%;
3993
+ display: flex;
3994
+ flex-direction: column;
3995
+ align-items: flex-start;
3996
+ font-size: 12px;
3997
+ margin-top: 5px;
3998
+ margin-left: 5px;
3999
+ text-align: left;
4000
+
4001
+ > strong {
4002
+ margin-left: 3px;
4003
+ color: rgb(78, 161, 211)
4004
+ }
4005
+
4006
+ > p {
4007
+ max-width: 95%;
4008
+ width: auto;
4009
+ padding: 5px;
4010
+ margin-top: 5px;
4011
+ border: 1px solid rgb(78, 161, 211, 0.3);
4012
+ border-radius: 15px;
4013
+ color: black;
4014
+ font-size: 12px;
4015
+ text-align: left;
4016
+ }
4017
+ `;
4018
+ S.div`
4019
+ width: 100%;
4020
+ display: flex;
4021
+ flex-direction: column;
4022
+ align-items: flex-start;
4023
+ font-size: 12px;
4024
+ margin-top: 5px;
4025
+ margin-left: 5px;
4026
+ text-align: left;
4027
+
4028
+ > strong {
4029
+ margin-right: 35px;
4030
+ color: rgb(215, 61, 71)
4031
+ }
4032
+
4033
+ > p {
4034
+ max-width: 95%;
4035
+ width: auto;
4036
+ padding: 5px;
4037
+ margin-top: 5px;
4038
+ border: 1px solid rgb(78, 161, 211, 0.3);
4039
+ border-radius: 15px;
4040
+ color: black;
4041
+ font-size: 12px;
4042
+ text-align: left;
4043
+ background-color: #f5f5f5;
4044
+ }
4045
+ `;
4046
+ S.div`
4047
+ position: absolute;
4048
+ display: flex;
4049
+ bottom: 10px;
4050
+ margin-left: 5px;
4051
+ margin-top: 5px;
4052
+ flex-direction: row;
4053
+ align-items: center;
4054
+ width: 100%;
4055
+ gap: 5px;
4056
+ `;
4057
+ S.input`
4058
+ bottom: 0;
4059
+ width: 70%;
4060
+ height: 25px;
4061
+ margin-left: 5px;
4062
+ border: 2px solid rgb(69, 69, 82, 0.25);
4063
+ box-sizing: border-box;
4064
+ font-size: 14px;
4065
+ padding-left: 5px;
4066
+ opacity: 0.7;
4067
+
4068
+ :focus {
4069
+ outline: none;
4070
+ }
4071
+ `;
4072
+ S.div`
4073
+ height: 25px;
4074
+ outline: none;
4075
+ border: none;
4076
+ display: flex;
4077
+ align-items: center;
4078
+ justify-content: flex-end;
4079
+ border-radius: 10px;
4080
+ padding-left: 5px;
4081
+ padding-right: 10px;
4082
+ margin-right: 10px;
4083
+ color: black;
4084
+ background-color: #bed0f8;
4085
+ font-size: 1rem;
4086
+ font-weight: 500;
4087
+ cursor: pointer;
4088
+ `;
4089
+ S.div`
4090
+ position: absolute;
4091
+ top: 80px;
4092
+ margin-left: 25px;
4093
+ width: 100%;
4094
+ height: 65%;
4095
+ width: 83%;
4096
+ margin-bottom: 25px;
4097
+ `;
4098
+ S.i`
4099
+ width: 25px;
4100
+ font-size: calc(5px + 1vmin);
4101
+ `;
4102
+ S.div`
4103
+ position: relative;
4104
+ text-align: center;
4105
+ align-items: center;
4106
+ top: 5px;
4107
+ margin-left: 5px;
4108
+ margin-top: 2px;
4109
+ margin-bottom: 10px;
4110
+ border: 1px solid rgb(78, 161, 211, 0.3);
4111
+ border-radius: 15px;
4112
+ width: 92%;
4113
+ font-weight: 600;
4114
+ font-size: 14px;
4115
+ color: white;
4116
+ padding: 5px;
4117
+ background-color: rgb(78, 161, 211);
4118
+ `;
4119
+ S.div`
4120
+ position: absolute;
4121
+ top: 40px;
4122
+ margin-left: 5px;
4123
+ margin-top: 5px;
4124
+ width: 100%;
4125
+ height: 80%;
4126
+ font-size: 14px;
4127
+ overflow-x: hidden;
4128
+ overflow-y: auto;
4129
+ `;
4130
+ cn({
4131
+ name: ft().min(1, "Name is required"),
4132
+ email: ft().min(1, "Email is required").email("Invalid email address")
4133
+ });
4134
+ const un = vt`
4135
+ from {
4136
+ opacity: 0;
4137
+ transform: translateY(20px);
4138
+ }
4139
+ to {
4140
+ opacity: 1;
4141
+ transform: translateY(0);
4142
+ }
4143
+ `, fn = vt`
4144
+ from {
4145
+ opacity: 1;
4146
+ transform: translateY(0);
4147
+ }
4148
+ to {
4149
+ opacity: 0;
4150
+ transform: translateY(20px);
4151
+ }
4152
+ `;
4153
+ S.div`
4154
+ position: fixed;
4155
+ left: 10%;
4156
+ top: 50%;
4157
+ height: 45%;
4158
+ width: ${(t) => t.maxWidth}%;
4159
+ display: flex;
4160
+ flex-direction: column;
4161
+ background-color: white;
4162
+ box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
4163
+ transition: all 0.5s ease;
4164
+ overflow: hidden;
4165
+ z-index: 10000;
4166
+ animation: ${({
4167
+ displayChat: t
4168
+ }) => t ? un : fn} 0.3s ease-in-out forwards;
4169
+ `;
4170
+ S.div`
4171
+ position: fixed;
4172
+ right: 0;
4173
+ bottom: 2%;
4174
+ height: 15%;
4175
+ width: ${(t) => t.maxWidth / 7}%;
4176
+ display: flex;
4177
+ flex-direction: column;
4178
+ transition: all 0.5s ease;
4179
+ overflow: hidden;
4180
+ z-index: 10000;
4181
+ animation: ${({
4182
+ displayChat: t
4183
+ }) => t ? fn : un} 0.3s ease-in-out forwards;
4184
+ `;
4185
+ S.div`
4186
+ position: absolute;
4187
+ top: 5;
4188
+ margin-left: 5px;
4189
+ margin-top: 5px;
4190
+ height: 30px;
4191
+ border: 1px solid rgb(78, 161, 211, 0.3);
4192
+ width: 96%;
4193
+
4194
+ font-weight: 600;
4195
+ font-size: 14px;
4196
+ color: rgb(78, 161, 211);
4197
+ padding: 5px;
4198
+ `;
4199
+ S.div`
4200
+ display: flex;
4201
+ flex-direction: column;
4202
+ align-items: flex-start;
4203
+ width: 100%;
4204
+ font-weight: 600;
4205
+ font-size: 12px;
4206
+ color: rgb(78, 161, 211);
4207
+ `;
4208
+ S.div`
4209
+ position: absolute;
4210
+ top: 0;
4211
+ right: 0;
4212
+ padding-top: 5px;
4213
+ width: 30px;
4214
+ font-size: calc(10px + 1vmin);
4215
+ color: white;
4216
+
4217
+ :hover {
4218
+ cursor: pointer;
4219
+ }
4220
+ `;
4221
+ S.div`
4222
+ position: absolute;
4223
+ text-align: center;
4224
+ align-items: center;
4225
+ top: 38px;
4226
+ margin-left: 5px;
4227
+ margin-top: 5px;
4228
+ border: 1px solid rgb(78, 161, 211, 0.3);
4229
+ border-radius: 15px;
4230
+ width: 96%;
4231
+
4232
+ margin-left: 5px;
4233
+ margin-top: 2px;
4234
+ font-weight: 600;
4235
+ font-size: 14px;
4236
+ color: white;
4237
+ padding: 5px;
4238
+ background-color: rgb(78, 161, 211);
4239
+ `;
4240
+ S.div`
4241
+ position: absolute;
4242
+ text-align: center;
4243
+ align-items: center;
4244
+ display: flex;
4245
+ gap: 5px;
4246
+ border: 1px solid rgb(78, 161, 211, 0.3);
4247
+ border-radius: 15px;
4248
+ width: 100%;
4249
+
4250
+ margin-left: 10px;
4251
+ margin-top: 2px;
4252
+ font-weight: 600;
4253
+ font-size: 14px;
4254
+ color: white;
4255
+ padding: 10px;
4256
+ background-color: rgb(78, 161, 211);
4257
+ `;
4258
+ S.div`
4259
+ position: absolute;
4260
+ top: 80px;
4261
+ margin-left: 5px;
4262
+ margin-top: 5px;
4263
+ width: 100%;
4264
+ height: 65%;
4265
+ max-height: 83%;
4266
+ overflow-x: hidden;
4267
+ overflow-y: auto;
4268
+ `;
4269
+ S.div`
4270
+ display: flex;
4271
+ width: 100%;
4272
+ flex-direction: column;
4273
+ padding: 15px;
4274
+ color: #454552;
4275
+ `;
4276
+ S.div`
4277
+ width: 100%;
4278
+ display: flex;
4279
+ flex-direction: column;
4280
+ align-items: flex-start;
4281
+ font-size: 12px;
4282
+ margin-top: 5px;
4283
+ margin-left: 5px;
4284
+ text-align: left;
4285
+
4286
+ > strong {
4287
+ margin-left: 3px;
4288
+ color: rgb(78, 161, 211)
4289
+ }
4290
+
4291
+ > p {
4292
+ max-width: 95%;
4293
+ width: auto;
4294
+ padding: 5px;
4295
+ margin-top: 5px;
4296
+ border: 1px solid rgb(78, 161, 211, 0.3);
4297
+ border-radius: 15px;
4298
+ color: black;
4299
+ font-size: 12px;
4300
+ text-align: left;
4301
+ }
4302
+ `;
4303
+ S.div`
4304
+ width: 100%;
4305
+ display: flex;
4306
+ flex-direction: column;
4307
+ align-items: flex-start;
4308
+ font-size: 12px;
4309
+ margin-top: 5px;
4310
+ margin-left: 5px;
4311
+ text-align: left;
4312
+
4313
+ > strong {
4314
+ margin-right: 35px;
4315
+ color: rgb(215, 61, 71)
4316
+ }
4317
+
4318
+ > p {
4319
+ max-width: 95%;
4320
+ width: auto;
4321
+ padding: 5px;
4322
+ margin-top: 5px;
4323
+ border: 1px solid rgb(78, 161, 211, 0.3);
4324
+ border-radius: 15px;
4325
+ color: black;
4326
+ font-size: 12px;
4327
+ text-align: left;
4328
+ background-color: #f5f5f5;
4329
+ }
4330
+ `;
4331
+ S.div`
4332
+ position: absolute;
4333
+ display: flex;
4334
+ bottom: 10px;
4335
+ margin-left: 5px;
4336
+ margin-top: 5px;
4337
+ flex-direction: row;
4338
+ align-items: center;
4339
+ width: 100%;
4340
+ gap: 5px;
4341
+ `;
4342
+ S.input`
4343
+ bottom: 0;
4344
+ width: 70%;
4345
+ height: 25px;
4346
+ margin-left: 5px;
4347
+ border: 2px solid rgb(69, 69, 82, 0.25);
4348
+ box-sizing: border-box;
4349
+ font-size: 14px;
4350
+ padding-left: 5px;
4351
+ opacity: 0.7;
4352
+
4353
+ :focus {
4354
+ outline: none;
4355
+ }
4356
+ `;
4357
+ S.div`
4358
+ height: 25px;
4359
+ outline: none;
4360
+ border: none;
4361
+ display: flex;
4362
+ align-items: center;
4363
+ justify-content: flex-end;
4364
+ border-radius: 10px;
4365
+ padding-left: 5px;
4366
+ padding-right: 10px;
4367
+ margin-right: 10px;
4368
+ color: black;
4369
+ background-color: #bed0f8;
4370
+ font-size: 1rem;
4371
+ font-weight: 500;
4372
+ cursor: pointer;
4373
+ `;
4374
+ S.div`
4375
+ position: absolute;
4376
+ top: 80px;
4377
+ margin-left: 25px;
4378
+ width: 100%;
4379
+ height: 65%;
4380
+ width: 83%;
4381
+ margin-bottom: 25px;
4382
+ `;
4383
+ S.i`
4384
+ width: 25px;
4385
+ font-size: calc(5px + 1vmin);
4386
+ `;