@coffer-org/web 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ChatWidget-ChCmzUA_.js → ChatWidget-nNf5Rw0a.js} +1 -1
- package/dist/assets/{DiagnosticsPage-CfhmQRfS.js → DiagnosticsPage-BWHlPR6q.js} +1 -1
- package/dist/assets/{ExtendReasonInfo-CEThi8jg.js → ExtendReasonInfo-CJ67X4F6.js} +1 -1
- package/dist/assets/Icon-BumJSRVW.js +2 -0
- package/dist/assets/NewRecordView-BdpK6Egr.js +1 -0
- package/dist/assets/{PluginSettingsPage-DswLRIeG.js → PluginSettingsPage-Cdb8beej.js} +1 -1
- package/dist/assets/{SettingsForm-C7_jnixg.js → SettingsForm-CveAr_ig.js} +1 -1
- package/dist/assets/{SettingsPage-CD55whNy.js → SettingsPage-CQKhHrWm.js} +1 -1
- package/dist/assets/{ThemeSwitcher-Ck-zk02F.js → ThemeSwitcher-CfRsyjzE.js} +1 -1
- package/dist/assets/Toolbar-BFVsURKo.js +2 -0
- package/dist/assets/{chrome-M-e4g5GQ.js → chrome-Drri9yIC.js} +1 -1
- package/dist/assets/{data-size-Cm6RXvEF.js → data-size-Byck_i1v.js} +1 -1
- package/dist/assets/{dispatch-DuNYLZpp.js → dispatch-Dn_1ZBIw.js} +1 -1
- package/dist/assets/extend-Dz66ZOVA.js +1 -0
- package/dist/assets/{field-frame-DW1S_qqc.js → field-frame-p-0aFlK2.js} +1 -1
- package/dist/assets/fields-CdNaYlSV.js +64 -0
- package/dist/assets/index-BhD27QjD.js +36 -0
- package/dist/assets/index-CbYvPAob.css +2 -0
- package/dist/assets/{shared-CjkQ_ejX.js → shared-53AEUTK1.js} +1 -1
- package/dist/assets/shelf-CYFZoY4Y.js +1 -0
- package/dist/assets/{showcase-sgMUUhuy.js → showcase-BEd8Qi9n.js} +1 -1
- package/dist/assets/{src-DUS5Avy8.js → src-6BvwolRe.js} +1 -1
- package/dist/assets/{src-D9K8eoJ7.js → src-6wNB8mAI.js} +1 -1
- package/dist/assets/src-B3EKJbtB.js +1 -0
- package/dist/assets/{src-BU8MbOZD.js → src-B5_A2mYY.js} +1 -1
- package/dist/assets/{src-BgCChqqo.js → src-BEO9VDg0.js} +2 -2
- package/dist/assets/{src-wthPlsTN.js → src-BEPkH-ct.js} +1 -1
- package/dist/assets/{src-VZVnvN5c.js → src-BGRdBpoy.js} +1 -1
- package/dist/assets/{src-BNv-2eQQ.js → src-BVH5k75w.js} +1 -1
- package/dist/assets/{src-Ced9MwqB.js → src-CCmXjawq.js} +1 -1
- package/dist/assets/{src-CR-bVbOA.js → src-COeSlgp5.js} +1 -1
- package/dist/assets/src-CfaMs77p.js +1 -0
- package/dist/assets/{src-CpK8LpKw.js → src-CtOhjDAR.js} +1 -1
- package/dist/assets/{src-VmkFyADv.js → src-CukyJanI.js} +1 -1
- package/dist/assets/{src-BQfODQei.js → src-D3d5pZiz.js} +1 -1
- package/dist/assets/src-DBlnH-G8.js +1 -0
- package/dist/assets/{src-uVXm9T4c.js → src-DGkgvDff.js} +1 -1
- package/dist/assets/{src-CIkjxdWu.js → src-DYI3zRw6.js} +1 -1
- package/dist/assets/{src-CiwywLhx.js → src-DrMNxEnS.js} +1 -1
- package/dist/assets/{src-Cf4MC4M-.js → src-SgNQDm_8.js} +1 -1
- package/dist/assets/{src-DFucwewE.js → src-a39U8IWk.js} +1 -1
- package/dist/assets/src-i9wl96A-.js +1 -0
- package/dist/assets/{src-Deraj1jG.js → src-klR9zexB.js} +1 -1
- package/dist/assets/{src-ChlV49AA.js → src-mXu3EbjH.js} +1 -1
- package/dist/assets/src-qh6HJOzS.js +1 -0
- package/dist/assets/{src-C-dbDj9-.js → src-skK-v7r6.js} +1 -1
- package/dist/assets/{ui-BkntdMpg.js → ui-CElwsbzS.js} +1 -1
- package/dist/assets/{ui-keHRtH7W.js → ui-DGTH-Sdo.js} +1 -1
- package/dist/assets/{ui-DIbg2C0K.js → ui-pNaus2uP.js} +2 -2
- package/dist/index.html +15 -15
- package/dist-vendor/web-sdk.js +685 -703
- package/package.json +1 -1
- package/dist/assets/Icon-D7aWX4d0.js +0 -2
- package/dist/assets/NewRecordView-C44pfv8p.js +0 -1
- package/dist/assets/Toolbar-Bv58yTKt.js +0 -2
- package/dist/assets/extend-BqEvWSf9.js +0 -1
- package/dist/assets/fields-GAzBSSLu.js +0 -64
- package/dist/assets/index-1EsW7cKq.js +0 -36
- package/dist/assets/index-CsOgA7tM.css +0 -2
- package/dist/assets/shelf-mGb4t3dP.js +0 -1
- package/dist/assets/src-CAwdKUrM.js +0 -1
- package/dist/assets/src-CYQ0SaOK.js +0 -1
- package/dist/assets/src-D0ywy3_0.js +0 -1
- package/dist/assets/src-DDb9P2Zn.js +0 -1
- package/dist/assets/src-eIFVJtIb.js +0 -1
package/dist-vendor/web-sdk.js
CHANGED
|
@@ -1053,11 +1053,9 @@ var fn = /*@__PURE__*/ i("$ZodJWT", (e, t) => {
|
|
|
1053
1053
|
inst: e
|
|
1054
1054
|
}), n;
|
|
1055
1055
|
};
|
|
1056
|
-
}), gn = /*@__PURE__*/ i("$
|
|
1056
|
+
}), gn = /*@__PURE__*/ i("$ZodUnknown", (e, t) => {
|
|
1057
1057
|
S.init(e, t), e._zod.parse = (e) => e;
|
|
1058
|
-
}), _n = /*@__PURE__*/ i("$
|
|
1059
|
-
S.init(e, t), e._zod.parse = (e) => e;
|
|
1060
|
-
}), vn = /*@__PURE__*/ i("$ZodNever", (e, t) => {
|
|
1058
|
+
}), _n = /*@__PURE__*/ i("$ZodNever", (e, t) => {
|
|
1061
1059
|
S.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
1062
1060
|
expected: "never",
|
|
1063
1061
|
code: "invalid_type",
|
|
@@ -1065,10 +1063,10 @@ var fn = /*@__PURE__*/ i("$ZodJWT", (e, t) => {
|
|
|
1065
1063
|
inst: e
|
|
1066
1064
|
}), t);
|
|
1067
1065
|
});
|
|
1068
|
-
function
|
|
1066
|
+
function vn(e, t, n) {
|
|
1069
1067
|
e.issues.length && t.issues.push(...xe(n, e.issues)), t.value[n] = e.value;
|
|
1070
1068
|
}
|
|
1071
|
-
var
|
|
1069
|
+
var yn = /*@__PURE__*/ i("$ZodArray", (e, t) => {
|
|
1072
1070
|
S.init(e, t), e._zod.parse = (n, r) => {
|
|
1073
1071
|
let i = n.value;
|
|
1074
1072
|
if (!Array.isArray(i)) return n.issues.push({
|
|
@@ -1084,12 +1082,12 @@ var bn = /*@__PURE__*/ i("$ZodArray", (e, t) => {
|
|
|
1084
1082
|
value: o,
|
|
1085
1083
|
issues: []
|
|
1086
1084
|
}, r);
|
|
1087
|
-
s instanceof Promise ? a.push(s.then((t) =>
|
|
1085
|
+
s instanceof Promise ? a.push(s.then((t) => vn(t, n, e))) : vn(s, n, e);
|
|
1088
1086
|
}
|
|
1089
1087
|
return a.length ? Promise.all(a).then(() => n) : n;
|
|
1090
1088
|
};
|
|
1091
1089
|
});
|
|
1092
|
-
function
|
|
1090
|
+
function bn(e, t, n, r, i, a) {
|
|
1093
1091
|
let o = n in r;
|
|
1094
1092
|
if (e.issues.length) {
|
|
1095
1093
|
if (i && a && !o) return;
|
|
@@ -1106,7 +1104,7 @@ function xn(e, t, n, r, i, a) {
|
|
|
1106
1104
|
}
|
|
1107
1105
|
e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1108
1106
|
}
|
|
1109
|
-
function
|
|
1107
|
+
function xn(e) {
|
|
1110
1108
|
let t = Object.keys(e.shape);
|
|
1111
1109
|
for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
|
|
1112
1110
|
let n = de(e.shape);
|
|
@@ -1118,7 +1116,7 @@ function Sn(e) {
|
|
|
1118
1116
|
optionalKeys: new Set(n)
|
|
1119
1117
|
};
|
|
1120
1118
|
}
|
|
1121
|
-
function
|
|
1119
|
+
function Sn(e, t, n, r, i, a) {
|
|
1122
1120
|
let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin === "optional", d = c.optout === "optional";
|
|
1123
1121
|
for (let i in t) {
|
|
1124
1122
|
if (i === "__proto__" || s.has(i)) continue;
|
|
@@ -1130,7 +1128,7 @@ function Cn(e, t, n, r, i, a) {
|
|
|
1130
1128
|
value: t[i],
|
|
1131
1129
|
issues: []
|
|
1132
1130
|
}, r);
|
|
1133
|
-
a instanceof Promise ? e.push(a.then((e) =>
|
|
1131
|
+
a instanceof Promise ? e.push(a.then((e) => bn(e, n, i, t, u, d))) : bn(a, n, i, t, u, d);
|
|
1134
1132
|
}
|
|
1135
1133
|
return o.length && n.issues.push({
|
|
1136
1134
|
code: "unrecognized_keys",
|
|
@@ -1139,7 +1137,7 @@ function Cn(e, t, n, r, i, a) {
|
|
|
1139
1137
|
inst: a
|
|
1140
1138
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1141
1139
|
}
|
|
1142
|
-
var
|
|
1140
|
+
var Cn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
|
|
1143
1141
|
if (S.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
1144
1142
|
let e = t.shape;
|
|
1145
1143
|
Object.defineProperty(t, "shape", { get: () => {
|
|
@@ -1147,7 +1145,7 @@ var wn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
|
|
|
1147
1145
|
return Object.defineProperty(t, "shape", { value: n }), n;
|
|
1148
1146
|
} });
|
|
1149
1147
|
}
|
|
1150
|
-
let n = d(() =>
|
|
1148
|
+
let n = d(() => xn(t));
|
|
1151
1149
|
m(e._zod, "propValues", () => {
|
|
1152
1150
|
let e = t.shape, n = {};
|
|
1153
1151
|
for (let t in e) {
|
|
@@ -1176,13 +1174,13 @@ var wn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
|
|
|
1176
1174
|
value: s[e],
|
|
1177
1175
|
issues: []
|
|
1178
1176
|
}, o);
|
|
1179
|
-
a instanceof Promise ? c.push(a.then((n) =>
|
|
1177
|
+
a instanceof Promise ? c.push(a.then((n) => bn(n, t, e, s, r, i))) : bn(a, t, e, s, r, i);
|
|
1180
1178
|
}
|
|
1181
|
-
return i ?
|
|
1179
|
+
return i ? Sn(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
|
|
1182
1180
|
};
|
|
1183
|
-
}),
|
|
1184
|
-
|
|
1185
|
-
let n = e._zod.parse, r = d(() =>
|
|
1181
|
+
}), wn = /*@__PURE__*/ i("$ZodObjectJIT", (e, t) => {
|
|
1182
|
+
Cn.init(e, t);
|
|
1183
|
+
let n = e._zod.parse, r = d(() => xn(t)), i = (e) => {
|
|
1186
1184
|
let t = new Lt([
|
|
1187
1185
|
"shape",
|
|
1188
1186
|
"payload",
|
|
@@ -1265,7 +1263,7 @@ var wn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
|
|
|
1265
1263
|
e._zod.parse = (s, d) => {
|
|
1266
1264
|
f ??= r.value;
|
|
1267
1265
|
let p = s.value;
|
|
1268
|
-
return o(p) ? c && l && d?.async === !1 && d.jitless !== !0 ? (a ||= i(t.shape), s = a(s, d), u ?
|
|
1266
|
+
return o(p) ? c && l && d?.async === !1 && d.jitless !== !0 ? (a ||= i(t.shape), s = a(s, d), u ? Sn([], p, s, d, f, e) : s) : n(s, d) : (s.issues.push({
|
|
1269
1267
|
expected: "object",
|
|
1270
1268
|
code: "invalid_type",
|
|
1271
1269
|
input: p,
|
|
@@ -1273,7 +1271,7 @@ var wn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
|
|
|
1273
1271
|
}), s);
|
|
1274
1272
|
};
|
|
1275
1273
|
});
|
|
1276
|
-
function
|
|
1274
|
+
function Tn(e, t, n, r) {
|
|
1277
1275
|
for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
|
|
1278
1276
|
let i = e.filter((e) => !y(e));
|
|
1279
1277
|
return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
|
|
@@ -1283,7 +1281,7 @@ function En(e, t, n, r) {
|
|
|
1283
1281
|
errors: e.map((e) => e.issues.map((e) => b(e, r, c())))
|
|
1284
1282
|
}), t);
|
|
1285
1283
|
}
|
|
1286
|
-
var
|
|
1284
|
+
var En = /*@__PURE__*/ i("$ZodUnion", (e, t) => {
|
|
1287
1285
|
S.init(e, t), m(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), m(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), m(e._zod, "values", () => {
|
|
1288
1286
|
if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
|
|
1289
1287
|
}), m(e._zod, "pattern", () => {
|
|
@@ -1307,9 +1305,9 @@ var Dn = /*@__PURE__*/ i("$ZodUnion", (e, t) => {
|
|
|
1307
1305
|
o.push(t);
|
|
1308
1306
|
}
|
|
1309
1307
|
}
|
|
1310
|
-
return a ? Promise.all(o).then((t) =>
|
|
1308
|
+
return a ? Promise.all(o).then((t) => Tn(t, r, e, i)) : Tn(o, r, e, i);
|
|
1311
1309
|
};
|
|
1312
|
-
}),
|
|
1310
|
+
}), Dn = /*@__PURE__*/ i("$ZodIntersection", (e, t) => {
|
|
1313
1311
|
S.init(e, t), e._zod.parse = (e, n) => {
|
|
1314
1312
|
let r = e.value, i = t.left._zod.run({
|
|
1315
1313
|
value: r,
|
|
@@ -1318,10 +1316,10 @@ var Dn = /*@__PURE__*/ i("$ZodUnion", (e, t) => {
|
|
|
1318
1316
|
value: r,
|
|
1319
1317
|
issues: []
|
|
1320
1318
|
}, n);
|
|
1321
|
-
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) =>
|
|
1319
|
+
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => kn(e, t, n)) : kn(e, i, a);
|
|
1322
1320
|
};
|
|
1323
1321
|
});
|
|
1324
|
-
function
|
|
1322
|
+
function On(e, t) {
|
|
1325
1323
|
if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
|
|
1326
1324
|
valid: !0,
|
|
1327
1325
|
data: e
|
|
@@ -1332,7 +1330,7 @@ function kn(e, t) {
|
|
|
1332
1330
|
...t
|
|
1333
1331
|
};
|
|
1334
1332
|
for (let n of r) {
|
|
1335
|
-
let r =
|
|
1333
|
+
let r = On(e[n], t[n]);
|
|
1336
1334
|
if (!r.valid) return {
|
|
1337
1335
|
valid: !1,
|
|
1338
1336
|
mergeErrorPath: [n, ...r.mergeErrorPath]
|
|
@@ -1351,7 +1349,7 @@ function kn(e, t) {
|
|
|
1351
1349
|
};
|
|
1352
1350
|
let n = [];
|
|
1353
1351
|
for (let r = 0; r < e.length; r++) {
|
|
1354
|
-
let i = e[r], a = t[r], o =
|
|
1352
|
+
let i = e[r], a = t[r], o = On(i, a);
|
|
1355
1353
|
if (!o.valid) return {
|
|
1356
1354
|
valid: !1,
|
|
1357
1355
|
mergeErrorPath: [r, ...o.mergeErrorPath]
|
|
@@ -1368,7 +1366,7 @@ function kn(e, t) {
|
|
|
1368
1366
|
mergeErrorPath: []
|
|
1369
1367
|
};
|
|
1370
1368
|
}
|
|
1371
|
-
function
|
|
1369
|
+
function kn(e, t, n) {
|
|
1372
1370
|
let r = /* @__PURE__ */ new Map(), i;
|
|
1373
1371
|
for (let n of t.issues) if (n.code === "unrecognized_keys") {
|
|
1374
1372
|
i ??= n;
|
|
@@ -1381,11 +1379,11 @@ function An(e, t, n) {
|
|
|
1381
1379
|
...i,
|
|
1382
1380
|
keys: a
|
|
1383
1381
|
}), y(e)) return e;
|
|
1384
|
-
let o =
|
|
1382
|
+
let o = On(t.value, n.value);
|
|
1385
1383
|
if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
|
|
1386
1384
|
return e.value = o.data, e;
|
|
1387
1385
|
}
|
|
1388
|
-
var
|
|
1386
|
+
var An = /*@__PURE__*/ i("$ZodEnum", (e, t) => {
|
|
1389
1387
|
S.init(e, t);
|
|
1390
1388
|
let n = l(t.entries), r = new Set(n);
|
|
1391
1389
|
e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => le.has(typeof e)).map((e) => typeof e == "string" ? ue(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
|
|
@@ -1397,7 +1395,7 @@ var jn = /*@__PURE__*/ i("$ZodEnum", (e, t) => {
|
|
|
1397
1395
|
inst: e
|
|
1398
1396
|
}), t;
|
|
1399
1397
|
};
|
|
1400
|
-
}),
|
|
1398
|
+
}), jn = /*@__PURE__*/ i("$ZodTransform", (e, t) => {
|
|
1401
1399
|
S.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
|
|
1402
1400
|
if (r.direction === "backward") throw new o(e.constructor.name);
|
|
1403
1401
|
let i = t.transform(n.value, n);
|
|
@@ -1406,53 +1404,53 @@ var jn = /*@__PURE__*/ i("$ZodEnum", (e, t) => {
|
|
|
1406
1404
|
return n.value = i, n.fallback = !0, n;
|
|
1407
1405
|
};
|
|
1408
1406
|
});
|
|
1409
|
-
function
|
|
1407
|
+
function Mn(e, t) {
|
|
1410
1408
|
return t === void 0 && (e.issues.length || e.fallback) ? {
|
|
1411
1409
|
issues: [],
|
|
1412
1410
|
value: void 0
|
|
1413
1411
|
} : e;
|
|
1414
1412
|
}
|
|
1415
|
-
var
|
|
1413
|
+
var Nn = /*@__PURE__*/ i("$ZodOptional", (e, t) => {
|
|
1416
1414
|
S.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", m(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), m(e._zod, "pattern", () => {
|
|
1417
1415
|
let e = t.innerType._zod.pattern;
|
|
1418
1416
|
return e ? RegExp(`^(${p(e.source)})?$`) : void 0;
|
|
1419
1417
|
}), e._zod.parse = (e, n) => {
|
|
1420
1418
|
if (t.innerType._zod.optin === "optional") {
|
|
1421
1419
|
let r = e.value, i = t.innerType._zod.run(e, n);
|
|
1422
|
-
return i instanceof Promise ? i.then((e) =>
|
|
1420
|
+
return i instanceof Promise ? i.then((e) => Mn(e, r)) : Mn(i, r);
|
|
1423
1421
|
}
|
|
1424
1422
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
1425
1423
|
};
|
|
1426
|
-
}),
|
|
1427
|
-
|
|
1428
|
-
}),
|
|
1424
|
+
}), Pn = /*@__PURE__*/ i("$ZodExactOptional", (e, t) => {
|
|
1425
|
+
Nn.init(e, t), m(e._zod, "values", () => t.innerType._zod.values), m(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
|
|
1426
|
+
}), Fn = /*@__PURE__*/ i("$ZodNullable", (e, t) => {
|
|
1429
1427
|
S.init(e, t), m(e._zod, "optin", () => t.innerType._zod.optin), m(e._zod, "optout", () => t.innerType._zod.optout), m(e._zod, "pattern", () => {
|
|
1430
1428
|
let e = t.innerType._zod.pattern;
|
|
1431
1429
|
return e ? RegExp(`^(${p(e.source)}|null)$`) : void 0;
|
|
1432
1430
|
}), m(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
|
|
1433
|
-
}),
|
|
1431
|
+
}), In = /*@__PURE__*/ i("$ZodDefault", (e, t) => {
|
|
1434
1432
|
S.init(e, t), e._zod.optin = "optional", m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1435
1433
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1436
1434
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
1437
1435
|
let r = t.innerType._zod.run(e, n);
|
|
1438
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1436
|
+
return r instanceof Promise ? r.then((e) => Ln(e, t)) : Ln(r, t);
|
|
1439
1437
|
};
|
|
1440
1438
|
});
|
|
1441
|
-
function
|
|
1439
|
+
function Ln(e, t) {
|
|
1442
1440
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1443
1441
|
}
|
|
1444
|
-
var
|
|
1442
|
+
var Rn = /*@__PURE__*/ i("$ZodPrefault", (e, t) => {
|
|
1445
1443
|
S.init(e, t), e._zod.optin = "optional", m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
|
|
1446
|
-
}),
|
|
1444
|
+
}), zn = /*@__PURE__*/ i("$ZodNonOptional", (e, t) => {
|
|
1447
1445
|
S.init(e, t), m(e._zod, "values", () => {
|
|
1448
1446
|
let e = t.innerType._zod.values;
|
|
1449
1447
|
return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
|
|
1450
1448
|
}), e._zod.parse = (n, r) => {
|
|
1451
1449
|
let i = t.innerType._zod.run(n, r);
|
|
1452
|
-
return i instanceof Promise ? i.then((t) =>
|
|
1450
|
+
return i instanceof Promise ? i.then((t) => Bn(t, e)) : Bn(i, e);
|
|
1453
1451
|
};
|
|
1454
1452
|
});
|
|
1455
|
-
function
|
|
1453
|
+
function Bn(e, t) {
|
|
1456
1454
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1457
1455
|
code: "invalid_type",
|
|
1458
1456
|
expected: "nonoptional",
|
|
@@ -1460,7 +1458,7 @@ function Vn(e, t) {
|
|
|
1460
1458
|
inst: t
|
|
1461
1459
|
}), e;
|
|
1462
1460
|
}
|
|
1463
|
-
var
|
|
1461
|
+
var Vn = /*@__PURE__*/ i("$ZodCatch", (e, t) => {
|
|
1464
1462
|
S.init(e, t), e._zod.optin = "optional", m(e._zod, "optout", () => t.innerType._zod.optout), m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1465
1463
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1466
1464
|
let r = t.innerType._zod.run(e, n);
|
|
@@ -1474,43 +1472,43 @@ var Hn = /*@__PURE__*/ i("$ZodCatch", (e, t) => {
|
|
|
1474
1472
|
input: e.value
|
|
1475
1473
|
}), e.issues = [], e.fallback = !0), e);
|
|
1476
1474
|
};
|
|
1477
|
-
}),
|
|
1475
|
+
}), Hn = /*@__PURE__*/ i("$ZodPipe", (e, t) => {
|
|
1478
1476
|
S.init(e, t), m(e._zod, "values", () => t.in._zod.values), m(e._zod, "optin", () => t.in._zod.optin), m(e._zod, "optout", () => t.out._zod.optout), m(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
1479
1477
|
if (n.direction === "backward") {
|
|
1480
1478
|
let r = t.out._zod.run(e, n);
|
|
1481
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1479
|
+
return r instanceof Promise ? r.then((e) => Un(e, t.in, n)) : Un(r, t.in, n);
|
|
1482
1480
|
}
|
|
1483
1481
|
let r = t.in._zod.run(e, n);
|
|
1484
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1482
|
+
return r instanceof Promise ? r.then((e) => Un(e, t.out, n)) : Un(r, t.out, n);
|
|
1485
1483
|
};
|
|
1486
1484
|
});
|
|
1487
|
-
function
|
|
1485
|
+
function Un(e, t, n) {
|
|
1488
1486
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
|
|
1489
1487
|
value: e.value,
|
|
1490
1488
|
issues: e.issues,
|
|
1491
1489
|
fallback: e.fallback
|
|
1492
1490
|
}, n);
|
|
1493
1491
|
}
|
|
1494
|
-
var
|
|
1495
|
-
|
|
1496
|
-
}),
|
|
1492
|
+
var Wn = /*@__PURE__*/ i("$ZodPreprocess", (e, t) => {
|
|
1493
|
+
Hn.init(e, t);
|
|
1494
|
+
}), Gn = /*@__PURE__*/ i("$ZodReadonly", (e, t) => {
|
|
1497
1495
|
S.init(e, t), m(e._zod, "propValues", () => t.innerType._zod.propValues), m(e._zod, "values", () => t.innerType._zod.values), m(e._zod, "optin", () => t.innerType?._zod?.optin), m(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
|
|
1498
1496
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1499
1497
|
let r = t.innerType._zod.run(e, n);
|
|
1500
|
-
return r instanceof Promise ? r.then(
|
|
1498
|
+
return r instanceof Promise ? r.then(Kn) : Kn(r);
|
|
1501
1499
|
};
|
|
1502
1500
|
});
|
|
1503
|
-
function
|
|
1501
|
+
function Kn(e) {
|
|
1504
1502
|
return e.value = Object.freeze(e.value), e;
|
|
1505
1503
|
}
|
|
1506
|
-
var
|
|
1504
|
+
var qn = /*@__PURE__*/ i("$ZodCustom", (e, t) => {
|
|
1507
1505
|
x.init(e, t), S.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
1508
1506
|
let r = n.value, i = t.fn(r);
|
|
1509
|
-
if (i instanceof Promise) return i.then((t) =>
|
|
1510
|
-
|
|
1507
|
+
if (i instanceof Promise) return i.then((t) => Jn(t, n, r, e));
|
|
1508
|
+
Jn(i, n, r, e);
|
|
1511
1509
|
};
|
|
1512
1510
|
});
|
|
1513
|
-
function
|
|
1511
|
+
function Jn(e, t, n, r) {
|
|
1514
1512
|
if (!e) {
|
|
1515
1513
|
let e = {
|
|
1516
1514
|
code: "custom",
|
|
@@ -1524,7 +1522,7 @@ function Yn(e, t, n, r) {
|
|
|
1524
1522
|
}
|
|
1525
1523
|
//#endregion
|
|
1526
1524
|
//#region ../../node_modules/zod/v4/core/registries.js
|
|
1527
|
-
var
|
|
1525
|
+
var Yn, Xn = class {
|
|
1528
1526
|
constructor() {
|
|
1529
1527
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1530
1528
|
}
|
|
@@ -1556,22 +1554,22 @@ var Xn, Zn = class {
|
|
|
1556
1554
|
return this._map.has(e);
|
|
1557
1555
|
}
|
|
1558
1556
|
};
|
|
1559
|
-
function
|
|
1560
|
-
return new
|
|
1557
|
+
function Zn() {
|
|
1558
|
+
return new Xn();
|
|
1561
1559
|
}
|
|
1562
|
-
(
|
|
1560
|
+
(Yn = globalThis).__zod_globalRegistry ?? (Yn.__zod_globalRegistry = Zn());
|
|
1563
1561
|
var w = globalThis.__zod_globalRegistry;
|
|
1564
1562
|
//#endregion
|
|
1565
1563
|
//#region ../../node_modules/zod/v4/core/api.js
|
|
1566
1564
|
// @__NO_SIDE_EFFECTS__
|
|
1567
|
-
function
|
|
1565
|
+
function Qn(e, t) {
|
|
1568
1566
|
return new e({
|
|
1569
1567
|
type: "string",
|
|
1570
1568
|
...v(t)
|
|
1571
1569
|
});
|
|
1572
1570
|
}
|
|
1573
1571
|
// @__NO_SIDE_EFFECTS__
|
|
1574
|
-
function
|
|
1572
|
+
function $n(e, t) {
|
|
1575
1573
|
return new e({
|
|
1576
1574
|
type: "string",
|
|
1577
1575
|
format: "email",
|
|
@@ -1581,7 +1579,7 @@ function er(e, t) {
|
|
|
1581
1579
|
});
|
|
1582
1580
|
}
|
|
1583
1581
|
// @__NO_SIDE_EFFECTS__
|
|
1584
|
-
function
|
|
1582
|
+
function er(e, t) {
|
|
1585
1583
|
return new e({
|
|
1586
1584
|
type: "string",
|
|
1587
1585
|
format: "guid",
|
|
@@ -1591,7 +1589,7 @@ function tr(e, t) {
|
|
|
1591
1589
|
});
|
|
1592
1590
|
}
|
|
1593
1591
|
// @__NO_SIDE_EFFECTS__
|
|
1594
|
-
function
|
|
1592
|
+
function tr(e, t) {
|
|
1595
1593
|
return new e({
|
|
1596
1594
|
type: "string",
|
|
1597
1595
|
format: "uuid",
|
|
@@ -1601,7 +1599,7 @@ function nr(e, t) {
|
|
|
1601
1599
|
});
|
|
1602
1600
|
}
|
|
1603
1601
|
// @__NO_SIDE_EFFECTS__
|
|
1604
|
-
function
|
|
1602
|
+
function nr(e, t) {
|
|
1605
1603
|
return new e({
|
|
1606
1604
|
type: "string",
|
|
1607
1605
|
format: "uuid",
|
|
@@ -1612,7 +1610,7 @@ function rr(e, t) {
|
|
|
1612
1610
|
});
|
|
1613
1611
|
}
|
|
1614
1612
|
// @__NO_SIDE_EFFECTS__
|
|
1615
|
-
function
|
|
1613
|
+
function rr(e, t) {
|
|
1616
1614
|
return new e({
|
|
1617
1615
|
type: "string",
|
|
1618
1616
|
format: "uuid",
|
|
@@ -1623,7 +1621,7 @@ function ir(e, t) {
|
|
|
1623
1621
|
});
|
|
1624
1622
|
}
|
|
1625
1623
|
// @__NO_SIDE_EFFECTS__
|
|
1626
|
-
function
|
|
1624
|
+
function ir(e, t) {
|
|
1627
1625
|
return new e({
|
|
1628
1626
|
type: "string",
|
|
1629
1627
|
format: "uuid",
|
|
@@ -1634,7 +1632,7 @@ function ar(e, t) {
|
|
|
1634
1632
|
});
|
|
1635
1633
|
}
|
|
1636
1634
|
// @__NO_SIDE_EFFECTS__
|
|
1637
|
-
function
|
|
1635
|
+
function ar(e, t) {
|
|
1638
1636
|
return new e({
|
|
1639
1637
|
type: "string",
|
|
1640
1638
|
format: "url",
|
|
@@ -1644,7 +1642,7 @@ function or(e, t) {
|
|
|
1644
1642
|
});
|
|
1645
1643
|
}
|
|
1646
1644
|
// @__NO_SIDE_EFFECTS__
|
|
1647
|
-
function
|
|
1645
|
+
function or(e, t) {
|
|
1648
1646
|
return new e({
|
|
1649
1647
|
type: "string",
|
|
1650
1648
|
format: "emoji",
|
|
@@ -1654,7 +1652,7 @@ function sr(e, t) {
|
|
|
1654
1652
|
});
|
|
1655
1653
|
}
|
|
1656
1654
|
// @__NO_SIDE_EFFECTS__
|
|
1657
|
-
function
|
|
1655
|
+
function sr(e, t) {
|
|
1658
1656
|
return new e({
|
|
1659
1657
|
type: "string",
|
|
1660
1658
|
format: "nanoid",
|
|
@@ -1664,7 +1662,7 @@ function cr(e, t) {
|
|
|
1664
1662
|
});
|
|
1665
1663
|
}
|
|
1666
1664
|
// @__NO_SIDE_EFFECTS__
|
|
1667
|
-
function
|
|
1665
|
+
function cr(e, t) {
|
|
1668
1666
|
return new e({
|
|
1669
1667
|
type: "string",
|
|
1670
1668
|
format: "cuid",
|
|
@@ -1674,7 +1672,7 @@ function lr(e, t) {
|
|
|
1674
1672
|
});
|
|
1675
1673
|
}
|
|
1676
1674
|
// @__NO_SIDE_EFFECTS__
|
|
1677
|
-
function
|
|
1675
|
+
function lr(e, t) {
|
|
1678
1676
|
return new e({
|
|
1679
1677
|
type: "string",
|
|
1680
1678
|
format: "cuid2",
|
|
@@ -1684,7 +1682,7 @@ function ur(e, t) {
|
|
|
1684
1682
|
});
|
|
1685
1683
|
}
|
|
1686
1684
|
// @__NO_SIDE_EFFECTS__
|
|
1687
|
-
function
|
|
1685
|
+
function ur(e, t) {
|
|
1688
1686
|
return new e({
|
|
1689
1687
|
type: "string",
|
|
1690
1688
|
format: "ulid",
|
|
@@ -1694,7 +1692,7 @@ function dr(e, t) {
|
|
|
1694
1692
|
});
|
|
1695
1693
|
}
|
|
1696
1694
|
// @__NO_SIDE_EFFECTS__
|
|
1697
|
-
function
|
|
1695
|
+
function dr(e, t) {
|
|
1698
1696
|
return new e({
|
|
1699
1697
|
type: "string",
|
|
1700
1698
|
format: "xid",
|
|
@@ -1704,7 +1702,7 @@ function fr(e, t) {
|
|
|
1704
1702
|
});
|
|
1705
1703
|
}
|
|
1706
1704
|
// @__NO_SIDE_EFFECTS__
|
|
1707
|
-
function
|
|
1705
|
+
function fr(e, t) {
|
|
1708
1706
|
return new e({
|
|
1709
1707
|
type: "string",
|
|
1710
1708
|
format: "ksuid",
|
|
@@ -1714,7 +1712,7 @@ function pr(e, t) {
|
|
|
1714
1712
|
});
|
|
1715
1713
|
}
|
|
1716
1714
|
// @__NO_SIDE_EFFECTS__
|
|
1717
|
-
function
|
|
1715
|
+
function pr(e, t) {
|
|
1718
1716
|
return new e({
|
|
1719
1717
|
type: "string",
|
|
1720
1718
|
format: "ipv4",
|
|
@@ -1724,7 +1722,7 @@ function mr(e, t) {
|
|
|
1724
1722
|
});
|
|
1725
1723
|
}
|
|
1726
1724
|
// @__NO_SIDE_EFFECTS__
|
|
1727
|
-
function
|
|
1725
|
+
function mr(e, t) {
|
|
1728
1726
|
return new e({
|
|
1729
1727
|
type: "string",
|
|
1730
1728
|
format: "ipv6",
|
|
@@ -1734,7 +1732,7 @@ function hr(e, t) {
|
|
|
1734
1732
|
});
|
|
1735
1733
|
}
|
|
1736
1734
|
// @__NO_SIDE_EFFECTS__
|
|
1737
|
-
function
|
|
1735
|
+
function hr(e, t) {
|
|
1738
1736
|
return new e({
|
|
1739
1737
|
type: "string",
|
|
1740
1738
|
format: "cidrv4",
|
|
@@ -1744,7 +1742,7 @@ function gr(e, t) {
|
|
|
1744
1742
|
});
|
|
1745
1743
|
}
|
|
1746
1744
|
// @__NO_SIDE_EFFECTS__
|
|
1747
|
-
function
|
|
1745
|
+
function gr(e, t) {
|
|
1748
1746
|
return new e({
|
|
1749
1747
|
type: "string",
|
|
1750
1748
|
format: "cidrv6",
|
|
@@ -1754,7 +1752,7 @@ function _r(e, t) {
|
|
|
1754
1752
|
});
|
|
1755
1753
|
}
|
|
1756
1754
|
// @__NO_SIDE_EFFECTS__
|
|
1757
|
-
function
|
|
1755
|
+
function _r(e, t) {
|
|
1758
1756
|
return new e({
|
|
1759
1757
|
type: "string",
|
|
1760
1758
|
format: "base64",
|
|
@@ -1764,7 +1762,7 @@ function vr(e, t) {
|
|
|
1764
1762
|
});
|
|
1765
1763
|
}
|
|
1766
1764
|
// @__NO_SIDE_EFFECTS__
|
|
1767
|
-
function
|
|
1765
|
+
function vr(e, t) {
|
|
1768
1766
|
return new e({
|
|
1769
1767
|
type: "string",
|
|
1770
1768
|
format: "base64url",
|
|
@@ -1774,7 +1772,7 @@ function yr(e, t) {
|
|
|
1774
1772
|
});
|
|
1775
1773
|
}
|
|
1776
1774
|
// @__NO_SIDE_EFFECTS__
|
|
1777
|
-
function
|
|
1775
|
+
function yr(e, t) {
|
|
1778
1776
|
return new e({
|
|
1779
1777
|
type: "string",
|
|
1780
1778
|
format: "e164",
|
|
@@ -1784,7 +1782,7 @@ function br(e, t) {
|
|
|
1784
1782
|
});
|
|
1785
1783
|
}
|
|
1786
1784
|
// @__NO_SIDE_EFFECTS__
|
|
1787
|
-
function
|
|
1785
|
+
function br(e, t) {
|
|
1788
1786
|
return new e({
|
|
1789
1787
|
type: "string",
|
|
1790
1788
|
format: "jwt",
|
|
@@ -1794,7 +1792,7 @@ function xr(e, t) {
|
|
|
1794
1792
|
});
|
|
1795
1793
|
}
|
|
1796
1794
|
// @__NO_SIDE_EFFECTS__
|
|
1797
|
-
function
|
|
1795
|
+
function xr(e, t) {
|
|
1798
1796
|
return new e({
|
|
1799
1797
|
type: "string",
|
|
1800
1798
|
format: "datetime",
|
|
@@ -1806,7 +1804,7 @@ function Sr(e, t) {
|
|
|
1806
1804
|
});
|
|
1807
1805
|
}
|
|
1808
1806
|
// @__NO_SIDE_EFFECTS__
|
|
1809
|
-
function
|
|
1807
|
+
function Sr(e, t) {
|
|
1810
1808
|
return new e({
|
|
1811
1809
|
type: "string",
|
|
1812
1810
|
format: "date",
|
|
@@ -1815,7 +1813,7 @@ function Cr(e, t) {
|
|
|
1815
1813
|
});
|
|
1816
1814
|
}
|
|
1817
1815
|
// @__NO_SIDE_EFFECTS__
|
|
1818
|
-
function
|
|
1816
|
+
function Cr(e, t) {
|
|
1819
1817
|
return new e({
|
|
1820
1818
|
type: "string",
|
|
1821
1819
|
format: "time",
|
|
@@ -1825,7 +1823,7 @@ function wr(e, t) {
|
|
|
1825
1823
|
});
|
|
1826
1824
|
}
|
|
1827
1825
|
// @__NO_SIDE_EFFECTS__
|
|
1828
|
-
function
|
|
1826
|
+
function wr(e, t) {
|
|
1829
1827
|
return new e({
|
|
1830
1828
|
type: "string",
|
|
1831
1829
|
format: "duration",
|
|
@@ -1834,7 +1832,7 @@ function Tr(e, t) {
|
|
|
1834
1832
|
});
|
|
1835
1833
|
}
|
|
1836
1834
|
// @__NO_SIDE_EFFECTS__
|
|
1837
|
-
function
|
|
1835
|
+
function Tr(e, t) {
|
|
1838
1836
|
return new e({
|
|
1839
1837
|
type: "number",
|
|
1840
1838
|
checks: [],
|
|
@@ -1842,7 +1840,7 @@ function Er(e, t) {
|
|
|
1842
1840
|
});
|
|
1843
1841
|
}
|
|
1844
1842
|
// @__NO_SIDE_EFFECTS__
|
|
1845
|
-
function
|
|
1843
|
+
function Er(e, t) {
|
|
1846
1844
|
return new e({
|
|
1847
1845
|
type: "number",
|
|
1848
1846
|
coerce: !0,
|
|
@@ -1851,7 +1849,7 @@ function Dr(e, t) {
|
|
|
1851
1849
|
});
|
|
1852
1850
|
}
|
|
1853
1851
|
// @__NO_SIDE_EFFECTS__
|
|
1854
|
-
function
|
|
1852
|
+
function Dr(e, t) {
|
|
1855
1853
|
return new e({
|
|
1856
1854
|
type: "number",
|
|
1857
1855
|
check: "number_format",
|
|
@@ -1861,29 +1859,25 @@ function Or(e, t) {
|
|
|
1861
1859
|
});
|
|
1862
1860
|
}
|
|
1863
1861
|
// @__NO_SIDE_EFFECTS__
|
|
1864
|
-
function
|
|
1862
|
+
function Or(e, t) {
|
|
1865
1863
|
return new e({
|
|
1866
1864
|
type: "boolean",
|
|
1867
1865
|
...v(t)
|
|
1868
1866
|
});
|
|
1869
1867
|
}
|
|
1870
1868
|
// @__NO_SIDE_EFFECTS__
|
|
1871
|
-
function
|
|
1872
|
-
return new e({ type: "any" });
|
|
1873
|
-
}
|
|
1874
|
-
// @__NO_SIDE_EFFECTS__
|
|
1875
|
-
function jr(e) {
|
|
1869
|
+
function kr(e) {
|
|
1876
1870
|
return new e({ type: "unknown" });
|
|
1877
1871
|
}
|
|
1878
1872
|
// @__NO_SIDE_EFFECTS__
|
|
1879
|
-
function
|
|
1873
|
+
function Ar(e, t) {
|
|
1880
1874
|
return new e({
|
|
1881
1875
|
type: "never",
|
|
1882
1876
|
...v(t)
|
|
1883
1877
|
});
|
|
1884
1878
|
}
|
|
1885
1879
|
// @__NO_SIDE_EFFECTS__
|
|
1886
|
-
function
|
|
1880
|
+
function jr(e, t) {
|
|
1887
1881
|
return new St({
|
|
1888
1882
|
check: "less_than",
|
|
1889
1883
|
...v(t),
|
|
@@ -1892,7 +1886,7 @@ function Nr(e, t) {
|
|
|
1892
1886
|
});
|
|
1893
1887
|
}
|
|
1894
1888
|
// @__NO_SIDE_EFFECTS__
|
|
1895
|
-
function
|
|
1889
|
+
function Mr(e, t) {
|
|
1896
1890
|
return new St({
|
|
1897
1891
|
check: "less_than",
|
|
1898
1892
|
...v(t),
|
|
@@ -1901,7 +1895,7 @@ function Pr(e, t) {
|
|
|
1901
1895
|
});
|
|
1902
1896
|
}
|
|
1903
1897
|
// @__NO_SIDE_EFFECTS__
|
|
1904
|
-
function
|
|
1898
|
+
function Nr(e, t) {
|
|
1905
1899
|
return new Ct({
|
|
1906
1900
|
check: "greater_than",
|
|
1907
1901
|
...v(t),
|
|
@@ -1910,7 +1904,7 @@ function Fr(e, t) {
|
|
|
1910
1904
|
});
|
|
1911
1905
|
}
|
|
1912
1906
|
// @__NO_SIDE_EFFECTS__
|
|
1913
|
-
function
|
|
1907
|
+
function Pr(e, t) {
|
|
1914
1908
|
return new Ct({
|
|
1915
1909
|
check: "greater_than",
|
|
1916
1910
|
...v(t),
|
|
@@ -1919,7 +1913,7 @@ function Ir(e, t) {
|
|
|
1919
1913
|
});
|
|
1920
1914
|
}
|
|
1921
1915
|
// @__NO_SIDE_EFFECTS__
|
|
1922
|
-
function
|
|
1916
|
+
function Fr(e, t) {
|
|
1923
1917
|
return new wt({
|
|
1924
1918
|
check: "multiple_of",
|
|
1925
1919
|
...v(t),
|
|
@@ -1927,7 +1921,7 @@ function Lr(e, t) {
|
|
|
1927
1921
|
});
|
|
1928
1922
|
}
|
|
1929
1923
|
// @__NO_SIDE_EFFECTS__
|
|
1930
|
-
function
|
|
1924
|
+
function Ir(e, t) {
|
|
1931
1925
|
return new Et({
|
|
1932
1926
|
check: "max_length",
|
|
1933
1927
|
...v(t),
|
|
@@ -1935,7 +1929,7 @@ function Rr(e, t) {
|
|
|
1935
1929
|
});
|
|
1936
1930
|
}
|
|
1937
1931
|
// @__NO_SIDE_EFFECTS__
|
|
1938
|
-
function
|
|
1932
|
+
function Lr(e, t) {
|
|
1939
1933
|
return new Dt({
|
|
1940
1934
|
check: "min_length",
|
|
1941
1935
|
...v(t),
|
|
@@ -1943,7 +1937,7 @@ function zr(e, t) {
|
|
|
1943
1937
|
});
|
|
1944
1938
|
}
|
|
1945
1939
|
// @__NO_SIDE_EFFECTS__
|
|
1946
|
-
function
|
|
1940
|
+
function Rr(e, t) {
|
|
1947
1941
|
return new Ot({
|
|
1948
1942
|
check: "length_equals",
|
|
1949
1943
|
...v(t),
|
|
@@ -1951,7 +1945,7 @@ function Br(e, t) {
|
|
|
1951
1945
|
});
|
|
1952
1946
|
}
|
|
1953
1947
|
// @__NO_SIDE_EFFECTS__
|
|
1954
|
-
function
|
|
1948
|
+
function zr(e, t) {
|
|
1955
1949
|
return new At({
|
|
1956
1950
|
check: "string_format",
|
|
1957
1951
|
format: "regex",
|
|
@@ -1960,7 +1954,7 @@ function Vr(e, t) {
|
|
|
1960
1954
|
});
|
|
1961
1955
|
}
|
|
1962
1956
|
// @__NO_SIDE_EFFECTS__
|
|
1963
|
-
function
|
|
1957
|
+
function Br(e) {
|
|
1964
1958
|
return new jt({
|
|
1965
1959
|
check: "string_format",
|
|
1966
1960
|
format: "lowercase",
|
|
@@ -1968,7 +1962,7 @@ function Hr(e) {
|
|
|
1968
1962
|
});
|
|
1969
1963
|
}
|
|
1970
1964
|
// @__NO_SIDE_EFFECTS__
|
|
1971
|
-
function
|
|
1965
|
+
function Vr(e) {
|
|
1972
1966
|
return new Mt({
|
|
1973
1967
|
check: "string_format",
|
|
1974
1968
|
format: "uppercase",
|
|
@@ -1976,7 +1970,7 @@ function Ur(e) {
|
|
|
1976
1970
|
});
|
|
1977
1971
|
}
|
|
1978
1972
|
// @__NO_SIDE_EFFECTS__
|
|
1979
|
-
function
|
|
1973
|
+
function Hr(e, t) {
|
|
1980
1974
|
return new Nt({
|
|
1981
1975
|
check: "string_format",
|
|
1982
1976
|
format: "includes",
|
|
@@ -1985,7 +1979,7 @@ function Wr(e, t) {
|
|
|
1985
1979
|
});
|
|
1986
1980
|
}
|
|
1987
1981
|
// @__NO_SIDE_EFFECTS__
|
|
1988
|
-
function
|
|
1982
|
+
function Ur(e, t) {
|
|
1989
1983
|
return new Pt({
|
|
1990
1984
|
check: "string_format",
|
|
1991
1985
|
format: "starts_with",
|
|
@@ -1994,7 +1988,7 @@ function Gr(e, t) {
|
|
|
1994
1988
|
});
|
|
1995
1989
|
}
|
|
1996
1990
|
// @__NO_SIDE_EFFECTS__
|
|
1997
|
-
function
|
|
1991
|
+
function Wr(e, t) {
|
|
1998
1992
|
return new Ft({
|
|
1999
1993
|
check: "string_format",
|
|
2000
1994
|
format: "ends_with",
|
|
@@ -2010,27 +2004,27 @@ function T(e) {
|
|
|
2010
2004
|
});
|
|
2011
2005
|
}
|
|
2012
2006
|
// @__NO_SIDE_EFFECTS__
|
|
2013
|
-
function
|
|
2007
|
+
function Gr(e) {
|
|
2014
2008
|
return /* @__PURE__ */ T((t) => t.normalize(e));
|
|
2015
2009
|
}
|
|
2016
2010
|
// @__NO_SIDE_EFFECTS__
|
|
2017
|
-
function
|
|
2011
|
+
function Kr() {
|
|
2018
2012
|
return /* @__PURE__ */ T((e) => e.trim());
|
|
2019
2013
|
}
|
|
2020
2014
|
// @__NO_SIDE_EFFECTS__
|
|
2021
|
-
function
|
|
2015
|
+
function qr() {
|
|
2022
2016
|
return /* @__PURE__ */ T((e) => e.toLowerCase());
|
|
2023
2017
|
}
|
|
2024
2018
|
// @__NO_SIDE_EFFECTS__
|
|
2025
|
-
function
|
|
2019
|
+
function Jr() {
|
|
2026
2020
|
return /* @__PURE__ */ T((e) => e.toUpperCase());
|
|
2027
2021
|
}
|
|
2028
2022
|
// @__NO_SIDE_EFFECTS__
|
|
2029
|
-
function
|
|
2023
|
+
function Yr() {
|
|
2030
2024
|
return /* @__PURE__ */ T((e) => re(e));
|
|
2031
2025
|
}
|
|
2032
2026
|
// @__NO_SIDE_EFFECTS__
|
|
2033
|
-
function
|
|
2027
|
+
function Xr(e, t, n) {
|
|
2034
2028
|
return new e({
|
|
2035
2029
|
type: "array",
|
|
2036
2030
|
element: t,
|
|
@@ -2038,7 +2032,7 @@ function Qr(e, t, n) {
|
|
|
2038
2032
|
});
|
|
2039
2033
|
}
|
|
2040
2034
|
// @__NO_SIDE_EFFECTS__
|
|
2041
|
-
function
|
|
2035
|
+
function Zr(e, t, n) {
|
|
2042
2036
|
return new e({
|
|
2043
2037
|
type: "custom",
|
|
2044
2038
|
check: "custom",
|
|
@@ -2047,8 +2041,8 @@ function $r(e, t, n) {
|
|
|
2047
2041
|
});
|
|
2048
2042
|
}
|
|
2049
2043
|
// @__NO_SIDE_EFFECTS__
|
|
2050
|
-
function
|
|
2051
|
-
let n = /* @__PURE__ */
|
|
2044
|
+
function Qr(e, t) {
|
|
2045
|
+
let n = /* @__PURE__ */ $r((t) => (t.addIssue = (e) => {
|
|
2052
2046
|
if (typeof e == "string") t.issues.push(we(e, t.value, n._zod.def));
|
|
2053
2047
|
else {
|
|
2054
2048
|
let r = e;
|
|
@@ -2058,7 +2052,7 @@ function ei(e, t) {
|
|
|
2058
2052
|
return n;
|
|
2059
2053
|
}
|
|
2060
2054
|
// @__NO_SIDE_EFFECTS__
|
|
2061
|
-
function
|
|
2055
|
+
function $r(e, t) {
|
|
2062
2056
|
let n = new x({
|
|
2063
2057
|
check: "custom",
|
|
2064
2058
|
...v(t)
|
|
@@ -2067,7 +2061,7 @@ function ti(e, t) {
|
|
|
2067
2061
|
}
|
|
2068
2062
|
//#endregion
|
|
2069
2063
|
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
2070
|
-
function
|
|
2064
|
+
function ei(e) {
|
|
2071
2065
|
let t = e?.target ?? "draft-2020-12";
|
|
2072
2066
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
2073
2067
|
processors: e.processors ?? {},
|
|
@@ -2117,7 +2111,7 @@ function E(e, t, n = {
|
|
|
2117
2111
|
let c = t.metadataRegistry.get(e);
|
|
2118
2112
|
return c && Object.assign(o.schema, c), t.io === "input" && D(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
|
|
2119
2113
|
}
|
|
2120
|
-
function
|
|
2114
|
+
function ti(e, t) {
|
|
2121
2115
|
let n = e.seen.get(t);
|
|
2122
2116
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
2123
2117
|
let r = /* @__PURE__ */ new Map();
|
|
@@ -2187,7 +2181,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
2187
2181
|
}
|
|
2188
2182
|
}
|
|
2189
2183
|
}
|
|
2190
|
-
function
|
|
2184
|
+
function ni(e, t) {
|
|
2191
2185
|
let n = e.seen.get(t);
|
|
2192
2186
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
2193
2187
|
let r = (t) => {
|
|
@@ -2234,8 +2228,8 @@ function ii(e, t) {
|
|
|
2234
2228
|
value: {
|
|
2235
2229
|
...t["~standard"],
|
|
2236
2230
|
jsonSchema: {
|
|
2237
|
-
input:
|
|
2238
|
-
output:
|
|
2231
|
+
input: ii(t, "input", e.processors),
|
|
2232
|
+
output: ii(t, "output", e.processors)
|
|
2239
2233
|
}
|
|
2240
2234
|
},
|
|
2241
2235
|
enumerable: !1,
|
|
@@ -2272,60 +2266,60 @@ function D(e, t) {
|
|
|
2272
2266
|
}
|
|
2273
2267
|
return !1;
|
|
2274
2268
|
}
|
|
2275
|
-
var
|
|
2276
|
-
let r =
|
|
2269
|
+
var ri = (e, t = {}) => (n) => {
|
|
2270
|
+
let r = ei({
|
|
2277
2271
|
...n,
|
|
2278
2272
|
processors: t
|
|
2279
2273
|
});
|
|
2280
|
-
return E(e, r),
|
|
2281
|
-
},
|
|
2282
|
-
let { libraryOptions: i, target: a } = r ?? {}, o =
|
|
2274
|
+
return E(e, r), ti(r, e), ni(r, e);
|
|
2275
|
+
}, ii = (e, t, n = {}) => (r) => {
|
|
2276
|
+
let { libraryOptions: i, target: a } = r ?? {}, o = ei({
|
|
2283
2277
|
...i ?? {},
|
|
2284
2278
|
target: a,
|
|
2285
2279
|
io: t,
|
|
2286
2280
|
processors: n
|
|
2287
2281
|
});
|
|
2288
|
-
return E(e, o),
|
|
2289
|
-
},
|
|
2282
|
+
return E(e, o), ti(o, e), ni(o, e);
|
|
2283
|
+
}, ai = {
|
|
2290
2284
|
guid: "uuid",
|
|
2291
2285
|
url: "uri",
|
|
2292
2286
|
datetime: "date-time",
|
|
2293
2287
|
json_string: "json-string",
|
|
2294
2288
|
regex: ""
|
|
2295
|
-
},
|
|
2289
|
+
}, oi = (e, t, n, r) => {
|
|
2296
2290
|
let i = n;
|
|
2297
2291
|
i.type = "string";
|
|
2298
2292
|
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
|
|
2299
|
-
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format =
|
|
2293
|
+
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = ai[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
|
|
2300
2294
|
let e = [...c];
|
|
2301
2295
|
e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
|
|
2302
2296
|
...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
|
|
2303
2297
|
pattern: e.source
|
|
2304
2298
|
}))]);
|
|
2305
2299
|
}
|
|
2306
|
-
},
|
|
2300
|
+
}, si = (e, t, n, r) => {
|
|
2307
2301
|
let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
|
|
2308
2302
|
typeof s == "string" && s.includes("int") ? i.type = "integer" : i.type = "number";
|
|
2309
2303
|
let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
|
|
2310
2304
|
d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (i.multipleOf = c);
|
|
2311
|
-
},
|
|
2305
|
+
}, ci = (e, t, n, r) => {
|
|
2312
2306
|
n.type = "boolean";
|
|
2313
|
-
},
|
|
2307
|
+
}, li = (e, t, n, r) => {
|
|
2314
2308
|
n.not = {};
|
|
2315
|
-
},
|
|
2309
|
+
}, ui = (e, t, n, r) => {
|
|
2316
2310
|
let i = e._zod.def, a = l(i.entries);
|
|
2317
2311
|
a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
|
|
2318
|
-
},
|
|
2312
|
+
}, di = (e, t, n, r) => {
|
|
2319
2313
|
if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
|
|
2320
|
-
},
|
|
2314
|
+
}, fi = (e, t, n, r) => {
|
|
2321
2315
|
if (t.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
|
|
2322
|
-
},
|
|
2316
|
+
}, pi = (e, t, n, r) => {
|
|
2323
2317
|
let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
|
|
2324
2318
|
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = E(a.element, t, {
|
|
2325
2319
|
...r,
|
|
2326
2320
|
path: [...r.path, "items"]
|
|
2327
2321
|
});
|
|
2328
|
-
},
|
|
2322
|
+
}, mi = (e, t, n, r) => {
|
|
2329
2323
|
let i = n, a = e._zod.def;
|
|
2330
2324
|
i.type = "object", i.properties = {};
|
|
2331
2325
|
let o = a.shape;
|
|
@@ -2345,7 +2339,7 @@ var ai = (e, t = {}) => (n) => {
|
|
|
2345
2339
|
...r,
|
|
2346
2340
|
path: [...r.path, "additionalProperties"]
|
|
2347
2341
|
})) : t.io === "output" && (i.additionalProperties = !1);
|
|
2348
|
-
},
|
|
2342
|
+
}, hi = (e, t, n, r) => {
|
|
2349
2343
|
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => E(e, t, {
|
|
2350
2344
|
...r,
|
|
2351
2345
|
path: [
|
|
@@ -2355,7 +2349,7 @@ var ai = (e, t = {}) => (n) => {
|
|
|
2355
2349
|
]
|
|
2356
2350
|
}));
|
|
2357
2351
|
a ? n.oneOf = o : n.anyOf = o;
|
|
2358
|
-
},
|
|
2352
|
+
}, gi = (e, t, n, r) => {
|
|
2359
2353
|
let i = e._zod.def, a = E(i.left, t, {
|
|
2360
2354
|
...r,
|
|
2361
2355
|
path: [
|
|
@@ -2372,25 +2366,25 @@ var ai = (e, t = {}) => (n) => {
|
|
|
2372
2366
|
]
|
|
2373
2367
|
}), s = (e) => "allOf" in e && Object.keys(e).length === 1;
|
|
2374
2368
|
n.allOf = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
|
|
2375
|
-
},
|
|
2369
|
+
}, _i = (e, t, n, r) => {
|
|
2376
2370
|
let i = e._zod.def, a = E(i.innerType, t, r), o = t.seen.get(e);
|
|
2377
2371
|
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
2378
|
-
},
|
|
2372
|
+
}, vi = (e, t, n, r) => {
|
|
2379
2373
|
let i = e._zod.def;
|
|
2380
2374
|
E(i.innerType, t, r);
|
|
2381
2375
|
let a = t.seen.get(e);
|
|
2382
2376
|
a.ref = i.innerType;
|
|
2383
|
-
},
|
|
2377
|
+
}, yi = (e, t, n, r) => {
|
|
2384
2378
|
let i = e._zod.def;
|
|
2385
2379
|
E(i.innerType, t, r);
|
|
2386
2380
|
let a = t.seen.get(e);
|
|
2387
2381
|
a.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
|
|
2388
|
-
},
|
|
2382
|
+
}, bi = (e, t, n, r) => {
|
|
2389
2383
|
let i = e._zod.def;
|
|
2390
2384
|
E(i.innerType, t, r);
|
|
2391
2385
|
let a = t.seen.get(e);
|
|
2392
2386
|
a.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
|
|
2393
|
-
},
|
|
2387
|
+
}, xi = (e, t, n, r) => {
|
|
2394
2388
|
let i = e._zod.def;
|
|
2395
2389
|
E(i.innerType, t, r);
|
|
2396
2390
|
let a = t.seen.get(e);
|
|
@@ -2402,45 +2396,45 @@ var ai = (e, t = {}) => (n) => {
|
|
|
2402
2396
|
throw Error("Dynamic catch values are not supported in JSON Schema");
|
|
2403
2397
|
}
|
|
2404
2398
|
n.default = o;
|
|
2405
|
-
},
|
|
2399
|
+
}, Si = (e, t, n, r) => {
|
|
2406
2400
|
let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
|
|
2407
2401
|
E(o, t, r);
|
|
2408
2402
|
let s = t.seen.get(e);
|
|
2409
2403
|
s.ref = o;
|
|
2410
|
-
},
|
|
2404
|
+
}, Ci = (e, t, n, r) => {
|
|
2411
2405
|
let i = e._zod.def;
|
|
2412
2406
|
E(i.innerType, t, r);
|
|
2413
2407
|
let a = t.seen.get(e);
|
|
2414
2408
|
a.ref = i.innerType, n.readOnly = !0;
|
|
2415
|
-
},
|
|
2409
|
+
}, wi = (e, t, n, r) => {
|
|
2416
2410
|
let i = e._zod.def;
|
|
2417
2411
|
E(i.innerType, t, r);
|
|
2418
2412
|
let a = t.seen.get(e);
|
|
2419
2413
|
a.ref = i.innerType;
|
|
2420
|
-
},
|
|
2414
|
+
}, Ti = /*@__PURE__*/ i("ZodISODateTime", (e, t) => {
|
|
2421
2415
|
Zt.init(e, t), M.init(e, t);
|
|
2422
2416
|
});
|
|
2417
|
+
function Ei(e) {
|
|
2418
|
+
return /* @__PURE__ */ xr(Ti, e);
|
|
2419
|
+
}
|
|
2420
|
+
var Di = /*@__PURE__*/ i("ZodISODate", (e, t) => {
|
|
2421
|
+
Qt.init(e, t), M.init(e, t);
|
|
2422
|
+
});
|
|
2423
2423
|
function Oi(e) {
|
|
2424
2424
|
return /* @__PURE__ */ Sr(Di, e);
|
|
2425
2425
|
}
|
|
2426
|
-
var ki = /*@__PURE__*/ i("
|
|
2427
|
-
|
|
2426
|
+
var ki = /*@__PURE__*/ i("ZodISOTime", (e, t) => {
|
|
2427
|
+
$t.init(e, t), M.init(e, t);
|
|
2428
2428
|
});
|
|
2429
2429
|
function Ai(e) {
|
|
2430
2430
|
return /* @__PURE__ */ Cr(ki, e);
|
|
2431
2431
|
}
|
|
2432
|
-
var ji = /*@__PURE__*/ i("
|
|
2433
|
-
|
|
2432
|
+
var ji = /*@__PURE__*/ i("ZodISODuration", (e, t) => {
|
|
2433
|
+
en.init(e, t), M.init(e, t);
|
|
2434
2434
|
});
|
|
2435
2435
|
function Mi(e) {
|
|
2436
2436
|
return /* @__PURE__ */ wr(ji, e);
|
|
2437
2437
|
}
|
|
2438
|
-
var Ni = /*@__PURE__*/ i("ZodISODuration", (e, t) => {
|
|
2439
|
-
en.init(e, t), M.init(e, t);
|
|
2440
|
-
});
|
|
2441
|
-
function Pi(e) {
|
|
2442
|
-
return /* @__PURE__ */ Tr(Ni, e);
|
|
2443
|
-
}
|
|
2444
2438
|
var O = /*@__PURE__*/ i("ZodError", (e, t) => {
|
|
2445
2439
|
Ee.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
2446
2440
|
format: { value: (t) => ke(e, t) },
|
|
@@ -2455,10 +2449,10 @@ var O = /*@__PURE__*/ i("ZodError", (e, t) => {
|
|
|
2455
2449
|
return e.issues.length === 0;
|
|
2456
2450
|
} }
|
|
2457
2451
|
});
|
|
2458
|
-
}, { Parent: Error }),
|
|
2452
|
+
}, { Parent: Error }), Ni = /* @__PURE__ */ Ae(O), Pi = /* @__PURE__ */ je(O), Fi = /* @__PURE__ */ Me(O), Ii = /* @__PURE__ */ Pe(O), Li = /* @__PURE__ */ Ie(O), Ri = /* @__PURE__ */ Le(O), zi = /* @__PURE__ */ Re(O), Bi = /* @__PURE__ */ ze(O), Vi = /* @__PURE__ */ Be(O), Hi = /* @__PURE__ */ Ve(O), Ui = /* @__PURE__ */ He(O), Wi = /* @__PURE__ */ Ue(O), Gi = /* @__PURE__ */ new WeakMap();
|
|
2459
2453
|
function k(e, t, n) {
|
|
2460
|
-
let r = Object.getPrototypeOf(e), i =
|
|
2461
|
-
if (i || (i = /* @__PURE__ */ new Set(),
|
|
2454
|
+
let r = Object.getPrototypeOf(e), i = Gi.get(r);
|
|
2455
|
+
if (i || (i = /* @__PURE__ */ new Set(), Gi.set(r, i)), !i.has(t)) {
|
|
2462
2456
|
i.add(t);
|
|
2463
2457
|
for (let e in n) {
|
|
2464
2458
|
let t = n[e];
|
|
@@ -2487,9 +2481,9 @@ function k(e, t, n) {
|
|
|
2487
2481
|
}
|
|
2488
2482
|
}
|
|
2489
2483
|
var A = /*@__PURE__*/ i("ZodType", (e, t) => (S.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
|
|
2490
|
-
input:
|
|
2491
|
-
output:
|
|
2492
|
-
} }), e.toJSONSchema =
|
|
2484
|
+
input: ii(e, "input"),
|
|
2485
|
+
output: ii(e, "output")
|
|
2486
|
+
} }), e.toJSONSchema = ri(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => Ni(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Fi(e, t, n), e.parseAsync = async (t, n) => Pi(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Ii(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Li(e, t, n), e.decode = (t, n) => Ri(e, t, n), e.encodeAsync = async (t, n) => zi(e, t, n), e.decodeAsync = async (t, n) => Bi(e, t, n), e.safeEncode = (t, n) => Vi(e, t, n), e.safeDecode = (t, n) => Hi(e, t, n), e.safeEncodeAsync = async (t, n) => Ui(e, t, n), e.safeDecodeAsync = async (t, n) => Wi(e, t, n), k(e, "ZodType", {
|
|
2493
2487
|
check(...e) {
|
|
2494
2488
|
let t = this.def;
|
|
2495
2489
|
return this.clone(g(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
|
|
@@ -2511,55 +2505,55 @@ var A = /*@__PURE__*/ i("ZodType", (e, t) => (S.init(e, t), Object.assign(e["~st
|
|
|
2511
2505
|
return e.add(this, t), this;
|
|
2512
2506
|
},
|
|
2513
2507
|
refine(e, t) {
|
|
2514
|
-
return this.check(
|
|
2508
|
+
return this.check(Qa(e, t));
|
|
2515
2509
|
},
|
|
2516
2510
|
superRefine(e, t) {
|
|
2517
|
-
return this.check(
|
|
2511
|
+
return this.check($a(e, t));
|
|
2518
2512
|
},
|
|
2519
2513
|
overwrite(e) {
|
|
2520
2514
|
return this.check(/* @__PURE__ */ T(e));
|
|
2521
2515
|
},
|
|
2522
2516
|
optional() {
|
|
2523
|
-
return
|
|
2517
|
+
return Na(this);
|
|
2524
2518
|
},
|
|
2525
2519
|
exactOptional() {
|
|
2526
|
-
return
|
|
2520
|
+
return Fa(this);
|
|
2527
2521
|
},
|
|
2528
2522
|
nullable() {
|
|
2529
|
-
return
|
|
2523
|
+
return La(this);
|
|
2530
2524
|
},
|
|
2531
2525
|
nullish() {
|
|
2532
|
-
return La(
|
|
2526
|
+
return Na(La(this));
|
|
2533
2527
|
},
|
|
2534
2528
|
nonoptional(e) {
|
|
2535
|
-
return
|
|
2529
|
+
return Ua(this, e);
|
|
2536
2530
|
},
|
|
2537
2531
|
array() {
|
|
2538
|
-
return
|
|
2532
|
+
return Sa(this);
|
|
2539
2533
|
},
|
|
2540
2534
|
or(e) {
|
|
2541
|
-
return
|
|
2535
|
+
return Ta([this, e]);
|
|
2542
2536
|
},
|
|
2543
2537
|
and(e) {
|
|
2544
|
-
return
|
|
2538
|
+
return Da(this, e);
|
|
2545
2539
|
},
|
|
2546
2540
|
transform(e) {
|
|
2547
|
-
return
|
|
2541
|
+
return qa(this, ja(e));
|
|
2548
2542
|
},
|
|
2549
2543
|
default(e) {
|
|
2550
|
-
return
|
|
2544
|
+
return za(this, e);
|
|
2551
2545
|
},
|
|
2552
2546
|
prefault(e) {
|
|
2553
|
-
return
|
|
2547
|
+
return Va(this, e);
|
|
2554
2548
|
},
|
|
2555
2549
|
catch(e) {
|
|
2556
|
-
return
|
|
2550
|
+
return Ga(this, e);
|
|
2557
2551
|
},
|
|
2558
2552
|
pipe(e) {
|
|
2559
|
-
return
|
|
2553
|
+
return qa(this, e);
|
|
2560
2554
|
},
|
|
2561
2555
|
readonly() {
|
|
2562
|
-
return
|
|
2556
|
+
return Xa(this);
|
|
2563
2557
|
},
|
|
2564
2558
|
describe(e) {
|
|
2565
2559
|
let t = this.clone();
|
|
@@ -2584,145 +2578,145 @@ var A = /*@__PURE__*/ i("ZodType", (e, t) => (S.init(e, t), Object.assign(e["~st
|
|
|
2584
2578
|
return w.get(e)?.description;
|
|
2585
2579
|
},
|
|
2586
2580
|
configurable: !0
|
|
2587
|
-
}), e)),
|
|
2588
|
-
zt.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) =>
|
|
2581
|
+
}), e)), Ki = /*@__PURE__*/ i("_ZodString", (e, t) => {
|
|
2582
|
+
zt.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => oi(e, t, n, r);
|
|
2589
2583
|
let n = e._zod.bag;
|
|
2590
2584
|
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, k(e, "_ZodString", {
|
|
2591
2585
|
regex(...e) {
|
|
2592
|
-
return this.check(/* @__PURE__ */
|
|
2586
|
+
return this.check(/* @__PURE__ */ zr(...e));
|
|
2593
2587
|
},
|
|
2594
2588
|
includes(...e) {
|
|
2595
|
-
return this.check(/* @__PURE__ */
|
|
2589
|
+
return this.check(/* @__PURE__ */ Hr(...e));
|
|
2596
2590
|
},
|
|
2597
2591
|
startsWith(...e) {
|
|
2598
|
-
return this.check(/* @__PURE__ */
|
|
2592
|
+
return this.check(/* @__PURE__ */ Ur(...e));
|
|
2599
2593
|
},
|
|
2600
2594
|
endsWith(...e) {
|
|
2601
|
-
return this.check(/* @__PURE__ */
|
|
2595
|
+
return this.check(/* @__PURE__ */ Wr(...e));
|
|
2602
2596
|
},
|
|
2603
2597
|
min(...e) {
|
|
2604
|
-
return this.check(/* @__PURE__ */
|
|
2598
|
+
return this.check(/* @__PURE__ */ Lr(...e));
|
|
2605
2599
|
},
|
|
2606
2600
|
max(...e) {
|
|
2607
|
-
return this.check(/* @__PURE__ */
|
|
2601
|
+
return this.check(/* @__PURE__ */ Ir(...e));
|
|
2608
2602
|
},
|
|
2609
2603
|
length(...e) {
|
|
2610
|
-
return this.check(/* @__PURE__ */
|
|
2604
|
+
return this.check(/* @__PURE__ */ Rr(...e));
|
|
2611
2605
|
},
|
|
2612
2606
|
nonempty(...e) {
|
|
2613
|
-
return this.check(/* @__PURE__ */
|
|
2607
|
+
return this.check(/* @__PURE__ */ Lr(1, ...e));
|
|
2614
2608
|
},
|
|
2615
2609
|
lowercase(e) {
|
|
2616
|
-
return this.check(/* @__PURE__ */
|
|
2610
|
+
return this.check(/* @__PURE__ */ Br(e));
|
|
2617
2611
|
},
|
|
2618
2612
|
uppercase(e) {
|
|
2619
|
-
return this.check(/* @__PURE__ */
|
|
2613
|
+
return this.check(/* @__PURE__ */ Vr(e));
|
|
2620
2614
|
},
|
|
2621
2615
|
trim() {
|
|
2622
|
-
return this.check(/* @__PURE__ */
|
|
2616
|
+
return this.check(/* @__PURE__ */ Kr());
|
|
2623
2617
|
},
|
|
2624
2618
|
normalize(...e) {
|
|
2625
|
-
return this.check(/* @__PURE__ */
|
|
2619
|
+
return this.check(/* @__PURE__ */ Gr(...e));
|
|
2626
2620
|
},
|
|
2627
2621
|
toLowerCase() {
|
|
2628
|
-
return this.check(/* @__PURE__ */
|
|
2622
|
+
return this.check(/* @__PURE__ */ qr());
|
|
2629
2623
|
},
|
|
2630
2624
|
toUpperCase() {
|
|
2631
|
-
return this.check(/* @__PURE__ */
|
|
2625
|
+
return this.check(/* @__PURE__ */ Jr());
|
|
2632
2626
|
},
|
|
2633
2627
|
slugify() {
|
|
2634
|
-
return this.check(/* @__PURE__ */
|
|
2628
|
+
return this.check(/* @__PURE__ */ Yr());
|
|
2635
2629
|
}
|
|
2636
2630
|
});
|
|
2637
|
-
}),
|
|
2638
|
-
zt.init(e, t),
|
|
2631
|
+
}), qi = /*@__PURE__*/ i("ZodString", (e, t) => {
|
|
2632
|
+
zt.init(e, t), Ki.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ $n(Ji, t)), e.url = (t) => e.check(/* @__PURE__ */ ar(Zi, t)), e.jwt = (t) => e.check(/* @__PURE__ */ br(fa, t)), e.emoji = (t) => e.check(/* @__PURE__ */ or(Qi, t)), e.guid = (t) => e.check(/* @__PURE__ */ er(Yi, t)), e.uuid = (t) => e.check(/* @__PURE__ */ tr(Xi, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ nr(Xi, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ rr(Xi, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ ir(Xi, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ sr($i, t)), e.guid = (t) => e.check(/* @__PURE__ */ er(Yi, t)), e.cuid = (t) => e.check(/* @__PURE__ */ cr(ea, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ lr(ta, t)), e.ulid = (t) => e.check(/* @__PURE__ */ ur(na, t)), e.base64 = (t) => e.check(/* @__PURE__ */ _r(la, t)), e.base64url = (t) => e.check(/* @__PURE__ */ vr(ua, t)), e.xid = (t) => e.check(/* @__PURE__ */ dr(ra, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ fr(ia, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ pr(aa, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ mr(oa, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ hr(sa, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ gr(ca, t)), e.e164 = (t) => e.check(/* @__PURE__ */ yr(da, t)), e.datetime = (t) => e.check(Ei(t)), e.date = (t) => e.check(Oi(t)), e.time = (t) => e.check(Ai(t)), e.duration = (t) => e.check(Mi(t));
|
|
2639
2633
|
});
|
|
2640
2634
|
function j(e) {
|
|
2641
|
-
return /* @__PURE__ */
|
|
2635
|
+
return /* @__PURE__ */ Qn(qi, e);
|
|
2642
2636
|
}
|
|
2643
2637
|
var M = /*@__PURE__*/ i("ZodStringFormat", (e, t) => {
|
|
2644
|
-
C.init(e, t),
|
|
2645
|
-
}),
|
|
2638
|
+
C.init(e, t), Ki.init(e, t);
|
|
2639
|
+
}), Ji = /*@__PURE__*/ i("ZodEmail", (e, t) => {
|
|
2646
2640
|
Ht.init(e, t), M.init(e, t);
|
|
2647
|
-
}),
|
|
2641
|
+
}), Yi = /*@__PURE__*/ i("ZodGUID", (e, t) => {
|
|
2648
2642
|
Bt.init(e, t), M.init(e, t);
|
|
2649
|
-
}),
|
|
2643
|
+
}), Xi = /*@__PURE__*/ i("ZodUUID", (e, t) => {
|
|
2650
2644
|
Vt.init(e, t), M.init(e, t);
|
|
2651
|
-
}),
|
|
2645
|
+
}), Zi = /*@__PURE__*/ i("ZodURL", (e, t) => {
|
|
2652
2646
|
Ut.init(e, t), M.init(e, t);
|
|
2653
|
-
}),
|
|
2647
|
+
}), Qi = /*@__PURE__*/ i("ZodEmoji", (e, t) => {
|
|
2654
2648
|
Wt.init(e, t), M.init(e, t);
|
|
2655
|
-
}),
|
|
2649
|
+
}), $i = /*@__PURE__*/ i("ZodNanoID", (e, t) => {
|
|
2656
2650
|
Gt.init(e, t), M.init(e, t);
|
|
2657
|
-
}),
|
|
2651
|
+
}), ea = /*@__PURE__*/ i("ZodCUID", (e, t) => {
|
|
2658
2652
|
Kt.init(e, t), M.init(e, t);
|
|
2659
|
-
}),
|
|
2653
|
+
}), ta = /*@__PURE__*/ i("ZodCUID2", (e, t) => {
|
|
2660
2654
|
qt.init(e, t), M.init(e, t);
|
|
2661
|
-
}),
|
|
2655
|
+
}), na = /*@__PURE__*/ i("ZodULID", (e, t) => {
|
|
2662
2656
|
Jt.init(e, t), M.init(e, t);
|
|
2663
|
-
}),
|
|
2657
|
+
}), ra = /*@__PURE__*/ i("ZodXID", (e, t) => {
|
|
2664
2658
|
Yt.init(e, t), M.init(e, t);
|
|
2665
|
-
}),
|
|
2659
|
+
}), ia = /*@__PURE__*/ i("ZodKSUID", (e, t) => {
|
|
2666
2660
|
Xt.init(e, t), M.init(e, t);
|
|
2667
|
-
}),
|
|
2661
|
+
}), aa = /*@__PURE__*/ i("ZodIPv4", (e, t) => {
|
|
2668
2662
|
tn.init(e, t), M.init(e, t);
|
|
2669
|
-
}),
|
|
2663
|
+
}), oa = /*@__PURE__*/ i("ZodIPv6", (e, t) => {
|
|
2670
2664
|
nn.init(e, t), M.init(e, t);
|
|
2671
|
-
}),
|
|
2665
|
+
}), sa = /*@__PURE__*/ i("ZodCIDRv4", (e, t) => {
|
|
2672
2666
|
rn.init(e, t), M.init(e, t);
|
|
2673
|
-
}),
|
|
2667
|
+
}), ca = /*@__PURE__*/ i("ZodCIDRv6", (e, t) => {
|
|
2674
2668
|
an.init(e, t), M.init(e, t);
|
|
2675
|
-
}),
|
|
2669
|
+
}), la = /*@__PURE__*/ i("ZodBase64", (e, t) => {
|
|
2676
2670
|
sn.init(e, t), M.init(e, t);
|
|
2677
|
-
}),
|
|
2671
|
+
}), ua = /*@__PURE__*/ i("ZodBase64URL", (e, t) => {
|
|
2678
2672
|
ln.init(e, t), M.init(e, t);
|
|
2679
|
-
}),
|
|
2673
|
+
}), da = /*@__PURE__*/ i("ZodE164", (e, t) => {
|
|
2680
2674
|
un.init(e, t), M.init(e, t);
|
|
2681
|
-
}),
|
|
2675
|
+
}), fa = /*@__PURE__*/ i("ZodJWT", (e, t) => {
|
|
2682
2676
|
fn.init(e, t), M.init(e, t);
|
|
2683
|
-
}),
|
|
2684
|
-
pn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) =>
|
|
2677
|
+
}), pa = /*@__PURE__*/ i("ZodNumber", (e, t) => {
|
|
2678
|
+
pn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => si(e, t, n, r), k(e, "ZodNumber", {
|
|
2685
2679
|
gt(e, t) {
|
|
2686
|
-
return this.check(/* @__PURE__ */
|
|
2680
|
+
return this.check(/* @__PURE__ */ Nr(e, t));
|
|
2687
2681
|
},
|
|
2688
2682
|
gte(e, t) {
|
|
2689
|
-
return this.check(/* @__PURE__ */
|
|
2683
|
+
return this.check(/* @__PURE__ */ Pr(e, t));
|
|
2690
2684
|
},
|
|
2691
2685
|
min(e, t) {
|
|
2692
|
-
return this.check(/* @__PURE__ */
|
|
2686
|
+
return this.check(/* @__PURE__ */ Pr(e, t));
|
|
2693
2687
|
},
|
|
2694
2688
|
lt(e, t) {
|
|
2695
|
-
return this.check(/* @__PURE__ */
|
|
2689
|
+
return this.check(/* @__PURE__ */ jr(e, t));
|
|
2696
2690
|
},
|
|
2697
2691
|
lte(e, t) {
|
|
2698
|
-
return this.check(/* @__PURE__ */
|
|
2692
|
+
return this.check(/* @__PURE__ */ Mr(e, t));
|
|
2699
2693
|
},
|
|
2700
2694
|
max(e, t) {
|
|
2701
|
-
return this.check(/* @__PURE__ */
|
|
2695
|
+
return this.check(/* @__PURE__ */ Mr(e, t));
|
|
2702
2696
|
},
|
|
2703
2697
|
int(e) {
|
|
2704
|
-
return this.check(
|
|
2698
|
+
return this.check(ha(e));
|
|
2705
2699
|
},
|
|
2706
2700
|
safe(e) {
|
|
2707
|
-
return this.check(
|
|
2701
|
+
return this.check(ha(e));
|
|
2708
2702
|
},
|
|
2709
2703
|
positive(e) {
|
|
2710
|
-
return this.check(/* @__PURE__ */
|
|
2704
|
+
return this.check(/* @__PURE__ */ Nr(0, e));
|
|
2711
2705
|
},
|
|
2712
2706
|
nonnegative(e) {
|
|
2713
|
-
return this.check(/* @__PURE__ */
|
|
2707
|
+
return this.check(/* @__PURE__ */ Pr(0, e));
|
|
2714
2708
|
},
|
|
2715
2709
|
negative(e) {
|
|
2716
|
-
return this.check(/* @__PURE__ */
|
|
2710
|
+
return this.check(/* @__PURE__ */ jr(0, e));
|
|
2717
2711
|
},
|
|
2718
2712
|
nonpositive(e) {
|
|
2719
|
-
return this.check(/* @__PURE__ */
|
|
2713
|
+
return this.check(/* @__PURE__ */ Mr(0, e));
|
|
2720
2714
|
},
|
|
2721
2715
|
multipleOf(e, t) {
|
|
2722
|
-
return this.check(/* @__PURE__ */
|
|
2716
|
+
return this.check(/* @__PURE__ */ Fr(e, t));
|
|
2723
2717
|
},
|
|
2724
2718
|
step(e, t) {
|
|
2725
|
-
return this.check(/* @__PURE__ */
|
|
2719
|
+
return this.check(/* @__PURE__ */ Fr(e, t));
|
|
2726
2720
|
},
|
|
2727
2721
|
finite() {
|
|
2728
2722
|
return this;
|
|
@@ -2732,64 +2726,58 @@ var M = /*@__PURE__*/ i("ZodStringFormat", (e, t) => {
|
|
|
2732
2726
|
e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
|
|
2733
2727
|
});
|
|
2734
2728
|
function N(e) {
|
|
2735
|
-
return /* @__PURE__ */
|
|
2729
|
+
return /* @__PURE__ */ Tr(pa, e);
|
|
2736
2730
|
}
|
|
2737
|
-
var
|
|
2738
|
-
mn.init(e, t),
|
|
2731
|
+
var ma = /*@__PURE__*/ i("ZodNumberFormat", (e, t) => {
|
|
2732
|
+
mn.init(e, t), pa.init(e, t);
|
|
2739
2733
|
});
|
|
2740
|
-
function
|
|
2741
|
-
return /* @__PURE__ */
|
|
2734
|
+
function ha(e) {
|
|
2735
|
+
return /* @__PURE__ */ Dr(ma, e);
|
|
2742
2736
|
}
|
|
2743
|
-
var
|
|
2744
|
-
hn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) =>
|
|
2737
|
+
var ga = /*@__PURE__*/ i("ZodBoolean", (e, t) => {
|
|
2738
|
+
hn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => ci(e, t, n, r);
|
|
2745
2739
|
});
|
|
2746
|
-
function
|
|
2747
|
-
return /* @__PURE__ */
|
|
2740
|
+
function _a(e) {
|
|
2741
|
+
return /* @__PURE__ */ Or(ga, e);
|
|
2748
2742
|
}
|
|
2749
|
-
var
|
|
2743
|
+
var va = /*@__PURE__*/ i("ZodUnknown", (e, t) => {
|
|
2750
2744
|
gn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
2751
2745
|
});
|
|
2752
|
-
function xa() {
|
|
2753
|
-
return /* @__PURE__ */ Ar(ba);
|
|
2754
|
-
}
|
|
2755
|
-
var Sa = /*@__PURE__*/ i("ZodUnknown", (e, t) => {
|
|
2756
|
-
_n.init(e, t), A.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
2757
|
-
});
|
|
2758
2746
|
function P() {
|
|
2759
|
-
return /* @__PURE__ */
|
|
2747
|
+
return /* @__PURE__ */ kr(va);
|
|
2760
2748
|
}
|
|
2761
|
-
var
|
|
2762
|
-
|
|
2749
|
+
var ya = /*@__PURE__*/ i("ZodNever", (e, t) => {
|
|
2750
|
+
_n.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => li(e, t, n, r);
|
|
2763
2751
|
});
|
|
2764
|
-
function
|
|
2765
|
-
return /* @__PURE__ */
|
|
2752
|
+
function ba(e) {
|
|
2753
|
+
return /* @__PURE__ */ Ar(ya, e);
|
|
2766
2754
|
}
|
|
2767
|
-
var
|
|
2768
|
-
|
|
2755
|
+
var xa = /*@__PURE__*/ i("ZodArray", (e, t) => {
|
|
2756
|
+
yn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => pi(e, t, n, r), e.element = t.element, k(e, "ZodArray", {
|
|
2769
2757
|
min(e, t) {
|
|
2770
|
-
return this.check(/* @__PURE__ */
|
|
2758
|
+
return this.check(/* @__PURE__ */ Lr(e, t));
|
|
2771
2759
|
},
|
|
2772
2760
|
nonempty(e) {
|
|
2773
|
-
return this.check(/* @__PURE__ */
|
|
2761
|
+
return this.check(/* @__PURE__ */ Lr(1, e));
|
|
2774
2762
|
},
|
|
2775
2763
|
max(e, t) {
|
|
2776
|
-
return this.check(/* @__PURE__ */
|
|
2764
|
+
return this.check(/* @__PURE__ */ Ir(e, t));
|
|
2777
2765
|
},
|
|
2778
2766
|
length(e, t) {
|
|
2779
|
-
return this.check(/* @__PURE__ */
|
|
2767
|
+
return this.check(/* @__PURE__ */ Rr(e, t));
|
|
2780
2768
|
},
|
|
2781
2769
|
unwrap() {
|
|
2782
2770
|
return this.element;
|
|
2783
2771
|
}
|
|
2784
2772
|
});
|
|
2785
2773
|
});
|
|
2786
|
-
function
|
|
2787
|
-
return /* @__PURE__ */
|
|
2774
|
+
function Sa(e, t) {
|
|
2775
|
+
return /* @__PURE__ */ Xr(xa, e, t);
|
|
2788
2776
|
}
|
|
2789
|
-
var
|
|
2790
|
-
|
|
2777
|
+
var Ca = /*@__PURE__*/ i("ZodObject", (e, t) => {
|
|
2778
|
+
wn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => mi(e, t, n, r), m(e, "shape", () => t.shape), k(e, "ZodObject", {
|
|
2791
2779
|
keyof() {
|
|
2792
|
-
return
|
|
2780
|
+
return ka(Object.keys(this._zod.def.shape));
|
|
2793
2781
|
},
|
|
2794
2782
|
catchall(e) {
|
|
2795
2783
|
return this.clone({
|
|
@@ -2812,7 +2800,7 @@ var Da = /*@__PURE__*/ i("ZodObject", (e, t) => {
|
|
|
2812
2800
|
strict() {
|
|
2813
2801
|
return this.clone({
|
|
2814
2802
|
...this._zod.def,
|
|
2815
|
-
catchall:
|
|
2803
|
+
catchall: ba()
|
|
2816
2804
|
});
|
|
2817
2805
|
},
|
|
2818
2806
|
strip() {
|
|
@@ -2837,48 +2825,48 @@ var Da = /*@__PURE__*/ i("ZodObject", (e, t) => {
|
|
|
2837
2825
|
return me(this, e);
|
|
2838
2826
|
},
|
|
2839
2827
|
partial(...e) {
|
|
2840
|
-
return ve(
|
|
2828
|
+
return ve(Ma, this, e[0]);
|
|
2841
2829
|
},
|
|
2842
2830
|
required(...e) {
|
|
2843
|
-
return ye(
|
|
2831
|
+
return ye(Ha, this, e[0]);
|
|
2844
2832
|
}
|
|
2845
2833
|
});
|
|
2846
2834
|
});
|
|
2847
2835
|
function F(e, t) {
|
|
2848
|
-
return new
|
|
2836
|
+
return new Ca({
|
|
2849
2837
|
type: "object",
|
|
2850
2838
|
shape: e ?? {},
|
|
2851
2839
|
...v(t)
|
|
2852
2840
|
});
|
|
2853
2841
|
}
|
|
2854
|
-
var
|
|
2855
|
-
|
|
2842
|
+
var wa = /*@__PURE__*/ i("ZodUnion", (e, t) => {
|
|
2843
|
+
En.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => hi(e, t, n, r), e.options = t.options;
|
|
2856
2844
|
});
|
|
2857
|
-
function
|
|
2858
|
-
return new
|
|
2845
|
+
function Ta(e, t) {
|
|
2846
|
+
return new wa({
|
|
2859
2847
|
type: "union",
|
|
2860
2848
|
options: e,
|
|
2861
2849
|
...v(t)
|
|
2862
2850
|
});
|
|
2863
2851
|
}
|
|
2864
|
-
var
|
|
2865
|
-
|
|
2852
|
+
var Ea = /*@__PURE__*/ i("ZodIntersection", (e, t) => {
|
|
2853
|
+
Dn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => gi(e, t, n, r);
|
|
2866
2854
|
});
|
|
2867
|
-
function
|
|
2868
|
-
return new
|
|
2855
|
+
function Da(e, t) {
|
|
2856
|
+
return new Ea({
|
|
2869
2857
|
type: "intersection",
|
|
2870
2858
|
left: e,
|
|
2871
2859
|
right: t
|
|
2872
2860
|
});
|
|
2873
2861
|
}
|
|
2874
|
-
var
|
|
2875
|
-
|
|
2862
|
+
var Oa = /*@__PURE__*/ i("ZodEnum", (e, t) => {
|
|
2863
|
+
An.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => ui(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
2876
2864
|
let n = new Set(Object.keys(t.entries));
|
|
2877
2865
|
e.extract = (e, r) => {
|
|
2878
2866
|
let i = {};
|
|
2879
2867
|
for (let r of e) if (n.has(r)) i[r] = t.entries[r];
|
|
2880
2868
|
else throw Error(`Key ${r} not found in enum`);
|
|
2881
|
-
return new
|
|
2869
|
+
return new Oa({
|
|
2882
2870
|
...t,
|
|
2883
2871
|
checks: [],
|
|
2884
2872
|
...v(r),
|
|
@@ -2888,7 +2876,7 @@ var Ma = /*@__PURE__*/ i("ZodEnum", (e, t) => {
|
|
|
2888
2876
|
let i = { ...t.entries };
|
|
2889
2877
|
for (let t of e) if (n.has(t)) delete i[t];
|
|
2890
2878
|
else throw Error(`Key ${t} not found in enum`);
|
|
2891
|
-
return new
|
|
2879
|
+
return new Oa({
|
|
2892
2880
|
...t,
|
|
2893
2881
|
checks: [],
|
|
2894
2882
|
...v(r),
|
|
@@ -2896,15 +2884,15 @@ var Ma = /*@__PURE__*/ i("ZodEnum", (e, t) => {
|
|
|
2896
2884
|
});
|
|
2897
2885
|
};
|
|
2898
2886
|
});
|
|
2899
|
-
function
|
|
2900
|
-
return new
|
|
2887
|
+
function ka(e, t) {
|
|
2888
|
+
return new Oa({
|
|
2901
2889
|
type: "enum",
|
|
2902
2890
|
entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
|
|
2903
2891
|
...v(t)
|
|
2904
2892
|
});
|
|
2905
2893
|
}
|
|
2906
|
-
var
|
|
2907
|
-
|
|
2894
|
+
var Aa = /*@__PURE__*/ i("ZodTransform", (e, t) => {
|
|
2895
|
+
jn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => fi(e, t, n, r), e._zod.parse = (n, r) => {
|
|
2908
2896
|
if (r.direction === "backward") throw new o(e.constructor.name);
|
|
2909
2897
|
n.addIssue = (r) => {
|
|
2910
2898
|
if (typeof r == "string") n.issues.push(we(r, n.value, t));
|
|
@@ -2917,44 +2905,44 @@ var Pa = /*@__PURE__*/ i("ZodTransform", (e, t) => {
|
|
|
2917
2905
|
return i instanceof Promise ? i.then((e) => (n.value = e, n.fallback = !0, n)) : (n.value = i, n.fallback = !0, n);
|
|
2918
2906
|
};
|
|
2919
2907
|
});
|
|
2920
|
-
function
|
|
2921
|
-
return new
|
|
2908
|
+
function ja(e) {
|
|
2909
|
+
return new Aa({
|
|
2922
2910
|
type: "transform",
|
|
2923
2911
|
transform: e
|
|
2924
2912
|
});
|
|
2925
2913
|
}
|
|
2926
|
-
var
|
|
2927
|
-
|
|
2914
|
+
var Ma = /*@__PURE__*/ i("ZodOptional", (e, t) => {
|
|
2915
|
+
Nn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => wi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2928
2916
|
});
|
|
2929
|
-
function
|
|
2930
|
-
return new
|
|
2917
|
+
function Na(e) {
|
|
2918
|
+
return new Ma({
|
|
2931
2919
|
type: "optional",
|
|
2932
2920
|
innerType: e
|
|
2933
2921
|
});
|
|
2934
2922
|
}
|
|
2935
|
-
var
|
|
2936
|
-
|
|
2923
|
+
var Pa = /*@__PURE__*/ i("ZodExactOptional", (e, t) => {
|
|
2924
|
+
Pn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => wi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2937
2925
|
});
|
|
2938
|
-
function
|
|
2939
|
-
return new
|
|
2926
|
+
function Fa(e) {
|
|
2927
|
+
return new Pa({
|
|
2940
2928
|
type: "optional",
|
|
2941
2929
|
innerType: e
|
|
2942
2930
|
});
|
|
2943
2931
|
}
|
|
2944
|
-
var
|
|
2945
|
-
|
|
2932
|
+
var Ia = /*@__PURE__*/ i("ZodNullable", (e, t) => {
|
|
2933
|
+
Fn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => _i(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2946
2934
|
});
|
|
2947
|
-
function
|
|
2948
|
-
return new
|
|
2935
|
+
function La(e) {
|
|
2936
|
+
return new Ia({
|
|
2949
2937
|
type: "nullable",
|
|
2950
2938
|
innerType: e
|
|
2951
2939
|
});
|
|
2952
2940
|
}
|
|
2953
|
-
var
|
|
2954
|
-
|
|
2941
|
+
var Ra = /*@__PURE__*/ i("ZodDefault", (e, t) => {
|
|
2942
|
+
In.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => yi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
2955
2943
|
});
|
|
2956
|
-
function
|
|
2957
|
-
return new
|
|
2944
|
+
function za(e, t) {
|
|
2945
|
+
return new Ra({
|
|
2958
2946
|
type: "default",
|
|
2959
2947
|
innerType: e,
|
|
2960
2948
|
get defaultValue() {
|
|
@@ -2962,11 +2950,11 @@ function Ua(e, t) {
|
|
|
2962
2950
|
}
|
|
2963
2951
|
});
|
|
2964
2952
|
}
|
|
2965
|
-
var
|
|
2966
|
-
|
|
2953
|
+
var Ba = /*@__PURE__*/ i("ZodPrefault", (e, t) => {
|
|
2954
|
+
Rn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => bi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2967
2955
|
});
|
|
2968
|
-
function
|
|
2969
|
-
return new
|
|
2956
|
+
function Va(e, t) {
|
|
2957
|
+
return new Ba({
|
|
2970
2958
|
type: "prefault",
|
|
2971
2959
|
innerType: e,
|
|
2972
2960
|
get defaultValue() {
|
|
@@ -2974,60 +2962,60 @@ function Ga(e, t) {
|
|
|
2974
2962
|
}
|
|
2975
2963
|
});
|
|
2976
2964
|
}
|
|
2977
|
-
var
|
|
2978
|
-
|
|
2965
|
+
var Ha = /*@__PURE__*/ i("ZodNonOptional", (e, t) => {
|
|
2966
|
+
zn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => vi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2979
2967
|
});
|
|
2980
|
-
function
|
|
2981
|
-
return new
|
|
2968
|
+
function Ua(e, t) {
|
|
2969
|
+
return new Ha({
|
|
2982
2970
|
type: "nonoptional",
|
|
2983
2971
|
innerType: e,
|
|
2984
2972
|
...v(t)
|
|
2985
2973
|
});
|
|
2986
2974
|
}
|
|
2987
|
-
var
|
|
2988
|
-
|
|
2975
|
+
var Wa = /*@__PURE__*/ i("ZodCatch", (e, t) => {
|
|
2976
|
+
Vn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => xi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
2989
2977
|
});
|
|
2990
|
-
function
|
|
2991
|
-
return new
|
|
2978
|
+
function Ga(e, t) {
|
|
2979
|
+
return new Wa({
|
|
2992
2980
|
type: "catch",
|
|
2993
2981
|
innerType: e,
|
|
2994
2982
|
catchValue: typeof t == "function" ? t : () => t
|
|
2995
2983
|
});
|
|
2996
2984
|
}
|
|
2997
|
-
var
|
|
2998
|
-
|
|
2985
|
+
var Ka = /*@__PURE__*/ i("ZodPipe", (e, t) => {
|
|
2986
|
+
Hn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Si(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
2999
2987
|
});
|
|
3000
|
-
function
|
|
3001
|
-
return new
|
|
2988
|
+
function qa(e, t) {
|
|
2989
|
+
return new Ka({
|
|
3002
2990
|
type: "pipe",
|
|
3003
2991
|
in: e,
|
|
3004
2992
|
out: t
|
|
3005
2993
|
});
|
|
3006
2994
|
}
|
|
3007
|
-
var
|
|
3008
|
-
|
|
3009
|
-
}),
|
|
3010
|
-
|
|
2995
|
+
var Ja = /*@__PURE__*/ i("ZodPreprocess", (e, t) => {
|
|
2996
|
+
Ka.init(e, t), Wn.init(e, t);
|
|
2997
|
+
}), Ya = /*@__PURE__*/ i("ZodReadonly", (e, t) => {
|
|
2998
|
+
Gn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ci(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3011
2999
|
});
|
|
3012
|
-
function
|
|
3013
|
-
return new
|
|
3000
|
+
function Xa(e) {
|
|
3001
|
+
return new Ya({
|
|
3014
3002
|
type: "readonly",
|
|
3015
3003
|
innerType: e
|
|
3016
3004
|
});
|
|
3017
3005
|
}
|
|
3018
|
-
var
|
|
3019
|
-
|
|
3006
|
+
var Za = /*@__PURE__*/ i("ZodCustom", (e, t) => {
|
|
3007
|
+
qn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => di(e, t, n, r);
|
|
3020
3008
|
});
|
|
3021
|
-
function
|
|
3022
|
-
return /* @__PURE__ */
|
|
3009
|
+
function Qa(e, t = {}) {
|
|
3010
|
+
return /* @__PURE__ */ Zr(Za, e, t);
|
|
3023
3011
|
}
|
|
3024
|
-
function
|
|
3025
|
-
return /* @__PURE__ */
|
|
3012
|
+
function $a(e, t) {
|
|
3013
|
+
return /* @__PURE__ */ Qr(e, t);
|
|
3026
3014
|
}
|
|
3027
|
-
function
|
|
3028
|
-
return new
|
|
3015
|
+
function eo(e, t) {
|
|
3016
|
+
return new Ja({
|
|
3029
3017
|
type: "pipe",
|
|
3030
|
-
in:
|
|
3018
|
+
in: ja(e),
|
|
3031
3019
|
out: t
|
|
3032
3020
|
});
|
|
3033
3021
|
}
|
|
@@ -3045,16 +3033,16 @@ var I = {
|
|
|
3045
3033
|
invalid_element: "invalid_element",
|
|
3046
3034
|
invalid_value: "invalid_value",
|
|
3047
3035
|
custom: "custom"
|
|
3048
|
-
},
|
|
3049
|
-
|
|
3036
|
+
}, to;
|
|
3037
|
+
to ||= {};
|
|
3050
3038
|
//#endregion
|
|
3051
3039
|
//#region ../../node_modules/zod/v4/classic/coerce.js
|
|
3052
3040
|
function L(e) {
|
|
3053
|
-
return /* @__PURE__ */
|
|
3041
|
+
return /* @__PURE__ */ Er(pa, e);
|
|
3054
3042
|
}
|
|
3055
3043
|
//#endregion
|
|
3056
3044
|
//#region ../sdk/src/units.ts
|
|
3057
|
-
var
|
|
3045
|
+
var no = [
|
|
3058
3046
|
{
|
|
3059
3047
|
value: "UAH",
|
|
3060
3048
|
label: "core.units.UAH"
|
|
@@ -3079,7 +3067,7 @@ var oo = [
|
|
|
3079
3067
|
value: "PLN",
|
|
3080
3068
|
label: "core.units.PLN"
|
|
3081
3069
|
}
|
|
3082
|
-
],
|
|
3070
|
+
], ro = [
|
|
3083
3071
|
{
|
|
3084
3072
|
value: "mg",
|
|
3085
3073
|
label: "core.units.mg"
|
|
@@ -3104,7 +3092,7 @@ var oo = [
|
|
|
3104
3092
|
value: "lb",
|
|
3105
3093
|
label: "core.units.lb"
|
|
3106
3094
|
}
|
|
3107
|
-
],
|
|
3095
|
+
], io = [
|
|
3108
3096
|
{
|
|
3109
3097
|
value: "ml",
|
|
3110
3098
|
label: "core.units.ml"
|
|
@@ -3137,13 +3125,13 @@ var oo = [
|
|
|
3137
3125
|
value: "fl_oz",
|
|
3138
3126
|
label: "core.units.fl_oz"
|
|
3139
3127
|
}
|
|
3140
|
-
],
|
|
3141
|
-
currency:
|
|
3142
|
-
weight:
|
|
3143
|
-
volume:
|
|
3128
|
+
], ao = {
|
|
3129
|
+
currency: no,
|
|
3130
|
+
weight: ro,
|
|
3131
|
+
volume: io,
|
|
3144
3132
|
cooking: [
|
|
3145
|
-
...
|
|
3146
|
-
...
|
|
3133
|
+
...ro,
|
|
3134
|
+
...io,
|
|
3147
3135
|
{
|
|
3148
3136
|
value: "pcs",
|
|
3149
3137
|
label: "core.units.pcs"
|
|
@@ -3354,12 +3342,12 @@ var oo = [
|
|
|
3354
3342
|
label: "core.units.ppm"
|
|
3355
3343
|
}]
|
|
3356
3344
|
};
|
|
3357
|
-
function
|
|
3358
|
-
return typeof e == "string" ?
|
|
3345
|
+
function oo(e) {
|
|
3346
|
+
return typeof e == "string" ? ao[e] : e;
|
|
3359
3347
|
}
|
|
3360
3348
|
//#endregion
|
|
3361
3349
|
//#region ../sdk/src/currencies.ts
|
|
3362
|
-
var
|
|
3350
|
+
var so = (() => {
|
|
3363
3351
|
try {
|
|
3364
3352
|
return Intl.supportedValuesOf("currency");
|
|
3365
3353
|
} catch {
|
|
@@ -3371,7 +3359,7 @@ var fo = (() => {
|
|
|
3371
3359
|
"PLN"
|
|
3372
3360
|
];
|
|
3373
3361
|
}
|
|
3374
|
-
})(),
|
|
3362
|
+
})(), co = new Set(so), lo = (e) => co.has(e);
|
|
3375
3363
|
//#endregion
|
|
3376
3364
|
//#region ../sdk/src/fields/validation.ts
|
|
3377
3365
|
function R(e, t) {
|
|
@@ -3383,10 +3371,10 @@ function R(e, t) {
|
|
|
3383
3371
|
function z(e = "required") {
|
|
3384
3372
|
return { error: (t) => t.input === void 0 ? R(e) : void 0 };
|
|
3385
3373
|
}
|
|
3386
|
-
function
|
|
3374
|
+
function uo(e = "invalid_type") {
|
|
3387
3375
|
return { error: (t) => t.code === "invalid_type" ? R(e) : void 0 };
|
|
3388
3376
|
}
|
|
3389
|
-
function
|
|
3377
|
+
function fo() {
|
|
3390
3378
|
return { error: (e) => e.code === "invalid_type" ? e.input === void 0 ? R("required") : R("invalid_type") : void 0 };
|
|
3391
3379
|
}
|
|
3392
3380
|
function B(e) {
|
|
@@ -3397,7 +3385,7 @@ function B(e) {
|
|
|
3397
3385
|
}
|
|
3398
3386
|
return e;
|
|
3399
3387
|
}
|
|
3400
|
-
function
|
|
3388
|
+
function po(e, t) {
|
|
3401
3389
|
return P().superRefine((n, r) => {
|
|
3402
3390
|
let i = B(n);
|
|
3403
3391
|
if (typeof n == "string" && typeof i == "string") {
|
|
@@ -3415,26 +3403,26 @@ function _o(e, t) {
|
|
|
3415
3403
|
}
|
|
3416
3404
|
function V(e, t) {
|
|
3417
3405
|
let n = t === !0, r = (e) => e === "" || e === null ? void 0 : e;
|
|
3418
|
-
return n ?
|
|
3406
|
+
return n ? eo(r, P().superRefine((e, t) => {
|
|
3419
3407
|
e === void 0 && t.addIssue({
|
|
3420
3408
|
code: I.custom,
|
|
3421
3409
|
message: R("required")
|
|
3422
3410
|
});
|
|
3423
|
-
}).pipe(e)) :
|
|
3411
|
+
}).pipe(e)) : eo(r, e.optional());
|
|
3424
3412
|
}
|
|
3425
3413
|
//#endregion
|
|
3426
3414
|
//#region ../sdk/src/parts.ts
|
|
3427
|
-
function
|
|
3415
|
+
function mo(e) {
|
|
3428
3416
|
return e.key ?? e.role;
|
|
3429
3417
|
}
|
|
3430
|
-
function
|
|
3418
|
+
function ho(e) {
|
|
3431
3419
|
let t = {};
|
|
3432
|
-
for (let n of e) t[n.role] =
|
|
3420
|
+
for (let n of e) t[n.role] = mo(n);
|
|
3433
3421
|
return t;
|
|
3434
3422
|
}
|
|
3435
|
-
var
|
|
3436
|
-
function
|
|
3437
|
-
if (
|
|
3423
|
+
var go = /^\d+$/;
|
|
3424
|
+
function _o(e) {
|
|
3425
|
+
if (es(e)) {
|
|
3438
3426
|
let t = e;
|
|
3439
3427
|
return {
|
|
3440
3428
|
key: t.key,
|
|
@@ -3442,7 +3430,7 @@ function xo(e) {
|
|
|
3442
3430
|
value: t.type.compute
|
|
3443
3431
|
};
|
|
3444
3432
|
}
|
|
3445
|
-
if (
|
|
3433
|
+
if (ts(e)) {
|
|
3446
3434
|
let t = e;
|
|
3447
3435
|
return {
|
|
3448
3436
|
key: null,
|
|
@@ -3456,24 +3444,24 @@ function xo(e) {
|
|
|
3456
3444
|
value: void 0
|
|
3457
3445
|
};
|
|
3458
3446
|
}
|
|
3459
|
-
function
|
|
3447
|
+
function vo(e, t) {
|
|
3460
3448
|
return e && t !== void 0 ? "computedStored" : e ? "stored" : typeof t == "function" ? "computed" : "pinned";
|
|
3461
3449
|
}
|
|
3462
3450
|
function H(e, t) {
|
|
3463
3451
|
let n = new Set(e.map((e) => e.role));
|
|
3464
3452
|
for (let e of Object.keys(t ?? {})) {
|
|
3465
|
-
if (
|
|
3453
|
+
if (go.test(e)) throw Error(`parts: numeric-like role name '${e}' (object iteration would reorder the parts)`);
|
|
3466
3454
|
if (!n.has(e)) throw Error(`parts: unknown role '${e}' (roles: ${[...n].join(", ")})`);
|
|
3467
3455
|
}
|
|
3468
3456
|
let r = [], i = /* @__PURE__ */ new Set();
|
|
3469
3457
|
for (let a of e) {
|
|
3470
|
-
let e = t?.[a.role], { key: o, meta: s, value: c } = e ?
|
|
3458
|
+
let e = t?.[a.role], { key: o, meta: s, value: c } = e ? _o(e) : {
|
|
3471
3459
|
key: a.role,
|
|
3472
3460
|
meta: a.fallback(),
|
|
3473
3461
|
value: void 0
|
|
3474
3462
|
};
|
|
3475
3463
|
if (!a.accepts.includes(s.prim)) throw Error(`parts: role '${a.role}' does not accept prim '${s.prim}' (accepts: ${a.accepts.join(", ")})`);
|
|
3476
|
-
let l = o ?? (c === void 0 ? a.role : null), u =
|
|
3464
|
+
let l = o ?? (c === void 0 ? a.role : null), u = vo(l, c);
|
|
3477
3465
|
if (l && l !== a.role && n.has(l)) throw Error(`parts: role '${a.role}' filling declares key '${l}', which is another role of this composite — a stored part's key must not collide with a role name (an unstored role occupies its role name in the value object).`);
|
|
3478
3466
|
if (l) {
|
|
3479
3467
|
if (i.has(l)) throw Error(`parts: duplicate storage key '${l}'`);
|
|
@@ -3495,19 +3483,24 @@ function U(e) {
|
|
|
3495
3483
|
for (let n of e) n.key && (t[n.key] = n.meta.column);
|
|
3496
3484
|
return t;
|
|
3497
3485
|
}
|
|
3498
|
-
function W(e, t) {
|
|
3499
|
-
let
|
|
3500
|
-
for (let e of t)
|
|
3501
|
-
for (let
|
|
3502
|
-
|
|
3486
|
+
function W(e, t, n = !1) {
|
|
3487
|
+
let r = { ...e };
|
|
3488
|
+
for (let e of t) mo(e) !== e.role && delete r[e.role];
|
|
3489
|
+
for (let i of t) if (!i.key) r[i.role] = P().optional();
|
|
3490
|
+
else if (i.mode === "computedStored") r[i.key] = P().optional();
|
|
3491
|
+
else {
|
|
3492
|
+
let t = i.overridden ? i.meta.zod : e[i.role] ?? P().optional();
|
|
3493
|
+
r[i.key] = n && !(i.overridden && i.meta.required === !0) ? t.nullable() : t;
|
|
3494
|
+
}
|
|
3495
|
+
return r;
|
|
3503
3496
|
}
|
|
3504
|
-
function
|
|
3497
|
+
function yo(e) {
|
|
3505
3498
|
return e.key ? e.mode === "computedStored" ? e.key : null : e.role;
|
|
3506
3499
|
}
|
|
3507
3500
|
function G(e, t) {
|
|
3508
3501
|
let n = e;
|
|
3509
3502
|
for (let r of t) {
|
|
3510
|
-
let t =
|
|
3503
|
+
let t = yo(r);
|
|
3511
3504
|
t != null && t in n && (n === e && (n = { ...e }), delete n[t]);
|
|
3512
3505
|
}
|
|
3513
3506
|
return n;
|
|
@@ -3544,7 +3537,7 @@ function K(e) {
|
|
|
3544
3537
|
}
|
|
3545
3538
|
//#endregion
|
|
3546
3539
|
//#region ../sdk/src/field-presets.ts
|
|
3547
|
-
function
|
|
3540
|
+
function bo(e) {
|
|
3548
3541
|
let t = K(e), n = t.required ?? !1, r = j().email({ message: R("email") });
|
|
3549
3542
|
return n && (r = r.min(1, { message: R("min_length", { min: 1 }) })), J(t, Y({
|
|
3550
3543
|
kind: "email",
|
|
@@ -3559,8 +3552,8 @@ function wo(e) {
|
|
|
3559
3552
|
zod: V(r, n)
|
|
3560
3553
|
}, t.multiple ?? !1));
|
|
3561
3554
|
}
|
|
3562
|
-
function
|
|
3563
|
-
let t = K(e), n = t.required ?? !1, r = j().regex(
|
|
3555
|
+
function xo(e) {
|
|
3556
|
+
let t = K(e), n = t.required ?? !1, r = j().regex(Mo, { message: R("pattern", { messageKey: "core.presets.tel" }) }), i = n ? r.min(1, { message: R("min_length", { min: 1 }) }) : r;
|
|
3564
3557
|
return J(t, Y({
|
|
3565
3558
|
kind: "tel",
|
|
3566
3559
|
label: t.label ?? "",
|
|
@@ -3574,7 +3567,7 @@ function To(e) {
|
|
|
3574
3567
|
zod: V(i, n)
|
|
3575
3568
|
}, t.multiple ?? !1));
|
|
3576
3569
|
}
|
|
3577
|
-
function
|
|
3570
|
+
function So(e) {
|
|
3578
3571
|
let t = K(e), n = t.required ?? !1, r = n ? j().min(1, { message: R("min_length", { min: 1 }) }) : j();
|
|
3579
3572
|
return J(t, {
|
|
3580
3573
|
kind: "password",
|
|
@@ -3589,7 +3582,7 @@ function Eo(e) {
|
|
|
3589
3582
|
zod: V(r, n)
|
|
3590
3583
|
});
|
|
3591
3584
|
}
|
|
3592
|
-
function
|
|
3585
|
+
function Co(e) {
|
|
3593
3586
|
return q({
|
|
3594
3587
|
key: e.key,
|
|
3595
3588
|
label: e.label ?? e.key,
|
|
@@ -3598,13 +3591,13 @@ function Do(e) {
|
|
|
3598
3591
|
view: { kind: "internalApiToken" },
|
|
3599
3592
|
fields: [
|
|
3600
3593
|
X({ key: "name" }),
|
|
3601
|
-
|
|
3594
|
+
So({ key: "token" }),
|
|
3602
3595
|
X({ key: "createdAt" }),
|
|
3603
3596
|
X({ key: "lastUsedAt" })
|
|
3604
3597
|
]
|
|
3605
3598
|
});
|
|
3606
3599
|
}
|
|
3607
|
-
function
|
|
3600
|
+
function wo(e) {
|
|
3608
3601
|
return q({
|
|
3609
3602
|
key: e.key,
|
|
3610
3603
|
label: e.label ?? e.key,
|
|
@@ -3617,9 +3610,9 @@ function Oo(e) {
|
|
|
3617
3610
|
]
|
|
3618
3611
|
});
|
|
3619
3612
|
}
|
|
3620
|
-
var
|
|
3621
|
-
function
|
|
3622
|
-
let t = K(e), n = t.required ?? !1, r = j().regex(
|
|
3613
|
+
var To = /^[a-z0-9-]+$/;
|
|
3614
|
+
function Eo(e) {
|
|
3615
|
+
let t = K(e), n = t.required ?? !1, r = j().regex(To, { message: R("pattern", { messageKey: "core.presets.slug" }) });
|
|
3623
3616
|
return J(t, Y({
|
|
3624
3617
|
kind: "slug",
|
|
3625
3618
|
label: t.label ?? "",
|
|
@@ -3630,9 +3623,9 @@ function Ao(e) {
|
|
|
3630
3623
|
zod: V(r, n)
|
|
3631
3624
|
}, t.multiple ?? !1));
|
|
3632
3625
|
}
|
|
3633
|
-
var
|
|
3634
|
-
function
|
|
3635
|
-
let t = K(e), n = t.required ?? !1, r = j().regex(
|
|
3626
|
+
var Do = /^#[0-9a-fA-F]{6}$/;
|
|
3627
|
+
function Oo(e) {
|
|
3628
|
+
let t = K(e), n = t.required ?? !1, r = j().regex(Do, { message: R("color_format") });
|
|
3636
3629
|
return J(t, Y({
|
|
3637
3630
|
kind: "color",
|
|
3638
3631
|
label: t.label ?? "",
|
|
@@ -3643,8 +3636,8 @@ function Mo(e) {
|
|
|
3643
3636
|
zod: V(r, n)
|
|
3644
3637
|
}, t.multiple ?? !1));
|
|
3645
3638
|
}
|
|
3646
|
-
function
|
|
3647
|
-
let t = K(e), n = t.required ?? !1, r = (n ? j().min(1, { message: R("min_length", { min: 1 }) }) : j()).refine((e) =>
|
|
3639
|
+
function ko(e) {
|
|
3640
|
+
let t = K(e), n = t.required ?? !1, r = (n ? j().min(1, { message: R("min_length", { min: 1 }) }) : j()).refine((e) => Po.has(e.toLowerCase()), { message: R("colorname") });
|
|
3648
3641
|
return J(t, Y({
|
|
3649
3642
|
kind: "colorname",
|
|
3650
3643
|
label: t.label ?? "",
|
|
@@ -3655,7 +3648,7 @@ function No(e) {
|
|
|
3655
3648
|
zod: V(r, n)
|
|
3656
3649
|
}, t.multiple ?? !1));
|
|
3657
3650
|
}
|
|
3658
|
-
function
|
|
3651
|
+
function Ao(e) {
|
|
3659
3652
|
let t = K(e), n = t.required ?? !1, r = n ? j().min(1, { message: R("min_length", { min: 1 }) }) : j();
|
|
3660
3653
|
return J(t, Y({
|
|
3661
3654
|
kind: "title",
|
|
@@ -3667,8 +3660,8 @@ function Po(e) {
|
|
|
3667
3660
|
zod: V(r, n)
|
|
3668
3661
|
}, t.multiple ?? !1));
|
|
3669
3662
|
}
|
|
3670
|
-
function
|
|
3671
|
-
let t = K(e), n = t.required ?? !1, r = j().regex(
|
|
3663
|
+
function jo(e) {
|
|
3664
|
+
let t = K(e), n = t.required ?? !1, r = j().regex(No, { message: R("pattern", { messageKey: "core.presets.link" }) }), i = n ? r.min(1, { message: R("min_length", { min: 1 }) }) : r;
|
|
3672
3665
|
return J(t, Y({
|
|
3673
3666
|
kind: "link",
|
|
3674
3667
|
label: t.label ?? "",
|
|
@@ -3682,8 +3675,8 @@ function Fo(e) {
|
|
|
3682
3675
|
zod: V(i, n)
|
|
3683
3676
|
}, t.multiple ?? !1));
|
|
3684
3677
|
}
|
|
3685
|
-
var
|
|
3686
|
-
function
|
|
3678
|
+
var Mo = /^\+?[\d\s()-]{4,}$/, No = /^([a-z][a-z0-9+.-]*:\/\/\S+|[\w-]+(\.[\w-]+)+(:\d+)?(\/\S*)?)$/i, Po = /* @__PURE__ */ new Set(/* @__PURE__ */ "aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkgrey.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkslategrey.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dimgrey.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.green.greenyellow.grey.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightgrey.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightslategrey.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.slategrey.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen.transparent".split("."));
|
|
3679
|
+
function Fo(e) {
|
|
3687
3680
|
let t = K(e), n = t.required ?? !1, r = j().min(1, { message: R("min_length", { min: 1 }) }), i = Array.isArray(e.options) ? e.options : [], a = typeof e.options == "string" ? e.options : null;
|
|
3688
3681
|
return J(t, Y({
|
|
3689
3682
|
kind: "tag",
|
|
@@ -3698,15 +3691,15 @@ function zo(e) {
|
|
|
3698
3691
|
zod: V(r, n)
|
|
3699
3692
|
}, t.multiple ?? !1));
|
|
3700
3693
|
}
|
|
3701
|
-
function
|
|
3702
|
-
return
|
|
3694
|
+
function Io(e) {
|
|
3695
|
+
return Fo({
|
|
3703
3696
|
...e,
|
|
3704
3697
|
multiple: !0
|
|
3705
3698
|
});
|
|
3706
3699
|
}
|
|
3707
|
-
function
|
|
3700
|
+
function Lo(e) {
|
|
3708
3701
|
return J(K(e), {
|
|
3709
|
-
...
|
|
3702
|
+
...Cs({
|
|
3710
3703
|
label: e.label,
|
|
3711
3704
|
rules: e.rules,
|
|
3712
3705
|
view: e.view
|
|
@@ -3715,8 +3708,8 @@ function Vo(e) {
|
|
|
3715
3708
|
kind: "markdown"
|
|
3716
3709
|
});
|
|
3717
3710
|
}
|
|
3718
|
-
function
|
|
3719
|
-
let t = e.rules?.language, n = K(e), r =
|
|
3711
|
+
function Ro(e) {
|
|
3712
|
+
let t = e.rules?.language, n = K(e), r = Cs({
|
|
3720
3713
|
label: e.label,
|
|
3721
3714
|
rules: e.rules,
|
|
3722
3715
|
view: e.view
|
|
@@ -3731,12 +3724,12 @@ function Ho(e) {
|
|
|
3731
3724
|
}
|
|
3732
3725
|
});
|
|
3733
3726
|
}
|
|
3734
|
-
function
|
|
3727
|
+
function zo(e) {
|
|
3735
3728
|
return e.includes("\0") || e.includes("�");
|
|
3736
3729
|
}
|
|
3737
|
-
function
|
|
3738
|
-
let t = K(e), n = t.required ?? !1, r = t.ext ?? "txt", i = t.maxBytes ?? 262144, a = j(
|
|
3739
|
-
if (
|
|
3730
|
+
function Bo(e) {
|
|
3731
|
+
let t = K(e), n = t.required ?? !1, r = t.ext ?? "txt", i = t.maxBytes ?? 262144, a = j(fo()).superRefine((e, t) => {
|
|
3732
|
+
if (zo(e)) {
|
|
3740
3733
|
t.addIssue({
|
|
3741
3734
|
code: I.custom,
|
|
3742
3735
|
message: R("source_binary")
|
|
@@ -3763,8 +3756,8 @@ function Wo(e) {
|
|
|
3763
3756
|
zod: V(a, n)
|
|
3764
3757
|
});
|
|
3765
3758
|
}
|
|
3766
|
-
function
|
|
3767
|
-
let t = K(e), n = t.required ?? !1, r = e.rules?.max ?? 5, i = L(
|
|
3759
|
+
function Vo(e) {
|
|
3760
|
+
let t = K(e), n = t.required ?? !1, r = e.rules?.max ?? 5, i = L(uo()).int({ message: R("int") }).min(1, { message: R("min", { min: 1 }) }).max(r, { message: R("max", { max: r }) });
|
|
3768
3761
|
return J(t, Y({
|
|
3769
3762
|
kind: "rating",
|
|
3770
3763
|
label: t.label ?? "",
|
|
@@ -3775,8 +3768,8 @@ function Go(e) {
|
|
|
3775
3768
|
zod: V(i, n)
|
|
3776
3769
|
}, t.multiple ?? !1));
|
|
3777
3770
|
}
|
|
3778
|
-
function
|
|
3779
|
-
let t = K(e), n = t.required ?? !1, r = e.rules?.max ?? 604800, i = e.rules?.step ?? 60, a = L(
|
|
3771
|
+
function Ho(e) {
|
|
3772
|
+
let t = K(e), n = t.required ?? !1, r = e.rules?.max ?? 604800, i = e.rules?.step ?? 60, a = L(uo()).int({ message: R("int") }).min(0, { message: R("min", { min: 0 }) }).max(r, { message: R("max", { max: r }) });
|
|
3780
3773
|
return J(t, Y({
|
|
3781
3774
|
kind: "duration",
|
|
3782
3775
|
label: t.label ?? "",
|
|
@@ -3790,8 +3783,8 @@ function Ko(e) {
|
|
|
3790
3783
|
zod: V(a, n)
|
|
3791
3784
|
}, t.multiple ?? !1));
|
|
3792
3785
|
}
|
|
3793
|
-
function
|
|
3794
|
-
let t = K(e), n =
|
|
3786
|
+
function Uo(e) {
|
|
3787
|
+
let t = K(e), n = Es({
|
|
3795
3788
|
label: e.label,
|
|
3796
3789
|
rules: e.rules,
|
|
3797
3790
|
view: e.view
|
|
@@ -3806,9 +3799,9 @@ function qo(e) {
|
|
|
3806
3799
|
}
|
|
3807
3800
|
});
|
|
3808
3801
|
}
|
|
3809
|
-
var
|
|
3810
|
-
function
|
|
3811
|
-
return
|
|
3802
|
+
var Wo = Z, Go = Q;
|
|
3803
|
+
function Ko(e) {
|
|
3804
|
+
return Wo({
|
|
3812
3805
|
...e,
|
|
3813
3806
|
rules: {
|
|
3814
3807
|
min: 0,
|
|
@@ -3817,8 +3810,8 @@ function Xo(e) {
|
|
|
3817
3810
|
}
|
|
3818
3811
|
});
|
|
3819
3812
|
}
|
|
3820
|
-
function
|
|
3821
|
-
return
|
|
3813
|
+
function qo(e) {
|
|
3814
|
+
return Go({
|
|
3822
3815
|
...e,
|
|
3823
3816
|
rules: {
|
|
3824
3817
|
min: 1900,
|
|
@@ -3827,7 +3820,7 @@ function Zo(e) {
|
|
|
3827
3820
|
}
|
|
3828
3821
|
});
|
|
3829
3822
|
}
|
|
3830
|
-
function
|
|
3823
|
+
function Jo(e) {
|
|
3831
3824
|
let t = K(e), n = Q({
|
|
3832
3825
|
label: e.label,
|
|
3833
3826
|
rules: {
|
|
@@ -3845,8 +3838,8 @@ function Qo(e) {
|
|
|
3845
3838
|
}
|
|
3846
3839
|
});
|
|
3847
3840
|
}
|
|
3848
|
-
function
|
|
3849
|
-
let t = K(e), n = t.required ?? !1, r =
|
|
3841
|
+
function Yo(e) {
|
|
3842
|
+
let t = K(e), n = t.required ?? !1, r = po(F({
|
|
3850
3843
|
w: N().int().nonnegative(),
|
|
3851
3844
|
h: N().int().nonnegative(),
|
|
3852
3845
|
d: N().int().nonnegative()
|
|
@@ -3866,37 +3859,37 @@ function $o(e) {
|
|
|
3866
3859
|
zod: V(r, n)
|
|
3867
3860
|
});
|
|
3868
3861
|
}
|
|
3869
|
-
function
|
|
3870
|
-
return
|
|
3862
|
+
function Xo(e) {
|
|
3863
|
+
return Ms({
|
|
3871
3864
|
...e,
|
|
3872
3865
|
options: "countries"
|
|
3873
3866
|
});
|
|
3874
3867
|
}
|
|
3875
|
-
var
|
|
3876
|
-
email:
|
|
3877
|
-
tel:
|
|
3878
|
-
slug:
|
|
3879
|
-
color:
|
|
3880
|
-
colorname:
|
|
3881
|
-
title:
|
|
3882
|
-
password:
|
|
3883
|
-
link:
|
|
3884
|
-
tag:
|
|
3885
|
-
tags:
|
|
3886
|
-
markdown:
|
|
3887
|
-
snippet:
|
|
3888
|
-
source:
|
|
3889
|
-
rating:
|
|
3890
|
-
duration:
|
|
3891
|
-
reminder:
|
|
3892
|
-
percent:
|
|
3893
|
-
year:
|
|
3894
|
-
weight:
|
|
3895
|
-
dimensions:
|
|
3896
|
-
country:
|
|
3897
|
-
internalApiToken:
|
|
3898
|
-
internalOauthGrants:
|
|
3899
|
-
},
|
|
3868
|
+
var Zo = {
|
|
3869
|
+
email: bo,
|
|
3870
|
+
tel: xo,
|
|
3871
|
+
slug: Eo,
|
|
3872
|
+
color: Oo,
|
|
3873
|
+
colorname: ko,
|
|
3874
|
+
title: Ao,
|
|
3875
|
+
password: So,
|
|
3876
|
+
link: jo,
|
|
3877
|
+
tag: Fo,
|
|
3878
|
+
tags: Io,
|
|
3879
|
+
markdown: Lo,
|
|
3880
|
+
snippet: Ro,
|
|
3881
|
+
source: Bo,
|
|
3882
|
+
rating: Vo,
|
|
3883
|
+
duration: Ho,
|
|
3884
|
+
reminder: Uo,
|
|
3885
|
+
percent: Ko,
|
|
3886
|
+
year: qo,
|
|
3887
|
+
weight: Jo,
|
|
3888
|
+
dimensions: Yo,
|
|
3889
|
+
country: Xo,
|
|
3890
|
+
internalApiToken: Co,
|
|
3891
|
+
internalOauthGrants: wo
|
|
3892
|
+
}, Qo = /* @__PURE__ */ t(((e, t) => {
|
|
3900
3893
|
t.exports = {
|
|
3901
3894
|
aa: {
|
|
3902
3895
|
name: "Afar",
|
|
@@ -4631,8 +4624,8 @@ var ts = {
|
|
|
4631
4624
|
nativeName: "isiZulu"
|
|
4632
4625
|
}
|
|
4633
4626
|
};
|
|
4634
|
-
})),
|
|
4635
|
-
var n =
|
|
4627
|
+
})), $o = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
4628
|
+
var n = Qo(), r = {}, i = {}, a = [], o = [], s = [];
|
|
4636
4629
|
for (let e in n) {
|
|
4637
4630
|
let { name: t, nativeName: c } = n[e];
|
|
4638
4631
|
r[e] = i[t.toLowerCase()] = i[c.toLowerCase()] = {
|
|
@@ -4672,13 +4665,13 @@ var ts = {
|
|
|
4672
4665
|
}
|
|
4673
4666
|
};
|
|
4674
4667
|
})))(), 1);
|
|
4675
|
-
|
|
4668
|
+
$o.default.getAllCodes().map((e) => ({
|
|
4676
4669
|
code: e,
|
|
4677
|
-
name:
|
|
4670
|
+
name: $o.default.getNativeName(e)
|
|
4678
4671
|
})).sort((e, t) => e.name.localeCompare(t.name));
|
|
4679
4672
|
//#endregion
|
|
4680
4673
|
//#region ../sdk/src/fields.ts
|
|
4681
|
-
var
|
|
4674
|
+
var es = (e) => "key" in e && !("el" in e), ts = (e) => "el" in e && e.el === "static", ns = (e) => "el" in e && e.el === "group", rs = (e) => "el" in e && e.el === "divider", is = (e) => "el" in e && e.el === "info", as = (e) => "el" in e && e.el === "button";
|
|
4682
4675
|
function q(e) {
|
|
4683
4676
|
let t = e.rules ?? {}, n = e.view ?? {};
|
|
4684
4677
|
if (e.key) {
|
|
@@ -4700,7 +4693,7 @@ function q(e) {
|
|
|
4700
4693
|
fields: e.fields
|
|
4701
4694
|
};
|
|
4702
4695
|
}
|
|
4703
|
-
function
|
|
4696
|
+
function os(e) {
|
|
4704
4697
|
return q({
|
|
4705
4698
|
label: e.label,
|
|
4706
4699
|
icon: e.icon,
|
|
@@ -4708,7 +4701,7 @@ function us(e) {
|
|
|
4708
4701
|
view: { display: "scroll" }
|
|
4709
4702
|
});
|
|
4710
4703
|
}
|
|
4711
|
-
function
|
|
4704
|
+
function ss(e) {
|
|
4712
4705
|
return q({
|
|
4713
4706
|
key: e.key,
|
|
4714
4707
|
label: e.label,
|
|
@@ -4720,10 +4713,10 @@ function ds(e) {
|
|
|
4720
4713
|
view: { display: "table" }
|
|
4721
4714
|
});
|
|
4722
4715
|
}
|
|
4723
|
-
function
|
|
4716
|
+
function cs(e) {
|
|
4724
4717
|
let t = [];
|
|
4725
4718
|
return e.fields.forEach((e, n) => {
|
|
4726
|
-
n > 0 && t.push(
|
|
4719
|
+
n > 0 && t.push(ms()), t.push(...e);
|
|
4727
4720
|
}), q({
|
|
4728
4721
|
label: e.label,
|
|
4729
4722
|
icon: e.icon,
|
|
@@ -4731,7 +4724,7 @@ function fs(e) {
|
|
|
4731
4724
|
view: { display: "sheet" }
|
|
4732
4725
|
});
|
|
4733
4726
|
}
|
|
4734
|
-
function
|
|
4727
|
+
function ls(e) {
|
|
4735
4728
|
return q({
|
|
4736
4729
|
key: e.key,
|
|
4737
4730
|
label: e.label ?? e.key,
|
|
@@ -4749,7 +4742,7 @@ function ps(e) {
|
|
|
4749
4742
|
]
|
|
4750
4743
|
});
|
|
4751
4744
|
}
|
|
4752
|
-
function
|
|
4745
|
+
function us(e) {
|
|
4753
4746
|
if (e.fixed && e.by.type.prim !== "select") throw Error(`[field.keyed] fixed requires by=select (enumerated), got '${e.by.type.prim}'`);
|
|
4754
4747
|
return {
|
|
4755
4748
|
...(e.container ?? q)({
|
|
@@ -4764,20 +4757,20 @@ function ms(e) {
|
|
|
4764
4757
|
fixed: e.fixed
|
|
4765
4758
|
};
|
|
4766
4759
|
}
|
|
4767
|
-
var
|
|
4768
|
-
function
|
|
4760
|
+
var ds = (e) => e.key != null && e.multiple === !0, fs = (e) => e.key != null && e.multiple !== !0;
|
|
4761
|
+
function ps() {
|
|
4769
4762
|
return { el: "divider" };
|
|
4770
4763
|
}
|
|
4771
|
-
function
|
|
4764
|
+
function ms() {
|
|
4772
4765
|
return { el: "break" };
|
|
4773
4766
|
}
|
|
4774
|
-
function
|
|
4767
|
+
function hs(e) {
|
|
4775
4768
|
return {
|
|
4776
4769
|
el: "info",
|
|
4777
4770
|
text: e
|
|
4778
4771
|
};
|
|
4779
4772
|
}
|
|
4780
|
-
function
|
|
4773
|
+
function gs(e) {
|
|
4781
4774
|
return {
|
|
4782
4775
|
el: "button",
|
|
4783
4776
|
label: e.label,
|
|
@@ -4819,7 +4812,7 @@ function J(e, t) {
|
|
|
4819
4812
|
...n,
|
|
4820
4813
|
hidden: e.hidden
|
|
4821
4814
|
}), e.derive && e.key && "value" in e && e.value !== void 0) throw Error(`[wrapKey] '${e.key}': both derive and value are set — they are two spellings of "the server computes this field"; use value, the canonical spelling`);
|
|
4822
|
-
|
|
4815
|
+
e.derive && (n = {
|
|
4823
4816
|
...n,
|
|
4824
4817
|
derive: e.derive,
|
|
4825
4818
|
derived: !0,
|
|
@@ -4827,7 +4820,11 @@ function J(e, t) {
|
|
|
4827
4820
|
...n.hints,
|
|
4828
4821
|
noEditControl: !0
|
|
4829
4822
|
}
|
|
4830
|
-
})
|
|
4823
|
+
});
|
|
4824
|
+
let r = e.key && "value" in e && e.value !== void 0;
|
|
4825
|
+
if (e.derive && e.store === !1) throw Error(`[wrapKey] '${e.key}': derive writes a column on every write, so store: false contradicts it; spell the computation as \`value\` instead.`);
|
|
4826
|
+
if (e.store === !1 && !r) throw Error(`[wrapKey] '${e.key ?? "(keyless)"}': store: false needs key + value — it drops the COLUMN of a computed field, so that the server recomputes it on every read. A field without \`value\` has nothing to recompute; a field without \`key\` already stores nothing.`);
|
|
4827
|
+
return r ? (n = {
|
|
4831
4828
|
...n,
|
|
4832
4829
|
compute: e.value,
|
|
4833
4830
|
derived: !0,
|
|
@@ -4835,7 +4832,10 @@ function J(e, t) {
|
|
|
4835
4832
|
...n.hints,
|
|
4836
4833
|
noEditControl: !0
|
|
4837
4834
|
}
|
|
4838
|
-
}, {
|
|
4835
|
+
}, e.store === !1 && (n = {
|
|
4836
|
+
...n,
|
|
4837
|
+
virtual: !0
|
|
4838
|
+
}), {
|
|
4839
4839
|
key: e.key,
|
|
4840
4840
|
type: n
|
|
4841
4841
|
}) : e.key ? {
|
|
@@ -4847,17 +4847,17 @@ function J(e, t) {
|
|
|
4847
4847
|
value: e.value
|
|
4848
4848
|
} : n;
|
|
4849
4849
|
}
|
|
4850
|
-
function
|
|
4850
|
+
function _s(e) {
|
|
4851
4851
|
return e === "today" ? (/* @__PURE__ */ new Date()).toISOString().slice(0, 10) : e;
|
|
4852
4852
|
}
|
|
4853
|
-
function
|
|
4853
|
+
function vs(e) {
|
|
4854
4854
|
try {
|
|
4855
4855
|
return JSON.parse(e);
|
|
4856
4856
|
} catch {
|
|
4857
4857
|
return;
|
|
4858
4858
|
}
|
|
4859
4859
|
}
|
|
4860
|
-
function
|
|
4860
|
+
function ys(e) {
|
|
4861
4861
|
return P().superRefine((t, n) => {
|
|
4862
4862
|
let r;
|
|
4863
4863
|
if (Array.isArray(t)) r = t;
|
|
@@ -4895,7 +4895,7 @@ function Cs(e) {
|
|
|
4895
4895
|
}
|
|
4896
4896
|
function Y(e, t) {
|
|
4897
4897
|
if (!t) return e;
|
|
4898
|
-
let n =
|
|
4898
|
+
let n = ys(e.zod);
|
|
4899
4899
|
return {
|
|
4900
4900
|
...e,
|
|
4901
4901
|
column: "text",
|
|
@@ -4908,7 +4908,7 @@ function Y(e, t) {
|
|
|
4908
4908
|
};
|
|
4909
4909
|
}
|
|
4910
4910
|
function X(e) {
|
|
4911
|
-
let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = r.min ?? +(t.required === !0), a = j(
|
|
4911
|
+
let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = r.min ?? +(t.required === !0), a = j(fo());
|
|
4912
4912
|
return i > 0 && (a = a.min(i, { message: R("min_length", { min: i }) })), r.max != null && (a = a.max(r.max, { message: R("max_length", { max: r.max }) })), r.pattern && (a = a.regex(new RegExp(r.pattern), { message: R("pattern", r.messageKey ? { messageKey: r.messageKey } : void 0) })), J(t, Y({
|
|
4913
4913
|
kind: "text",
|
|
4914
4914
|
label: t.label ?? "",
|
|
@@ -4922,8 +4922,8 @@ function X(e) {
|
|
|
4922
4922
|
zod: V(a, n)
|
|
4923
4923
|
}, t.multiple ?? !1));
|
|
4924
4924
|
}
|
|
4925
|
-
function
|
|
4926
|
-
let r = e.required ?? !1, i = j(
|
|
4925
|
+
function bs(e, t, n) {
|
|
4926
|
+
let r = e.required ?? !1, i = j(fo());
|
|
4927
4927
|
return e.required === !0 && (i = i.min(1, { message: R("min_length", { min: 1 }) })), J(e, {
|
|
4928
4928
|
kind: t,
|
|
4929
4929
|
label: e.label ?? "",
|
|
@@ -4935,14 +4935,14 @@ function ws(e, t, n) {
|
|
|
4935
4935
|
...e.default === void 0 ? {} : { default: e.default }
|
|
4936
4936
|
});
|
|
4937
4937
|
}
|
|
4938
|
-
function
|
|
4939
|
-
return
|
|
4938
|
+
function xs(e) {
|
|
4939
|
+
return bs(K(e), "localDir");
|
|
4940
4940
|
}
|
|
4941
|
-
function
|
|
4941
|
+
function Ss(e) {
|
|
4942
4942
|
let t = K(e);
|
|
4943
|
-
return
|
|
4943
|
+
return bs(t, "localFile", t.exts);
|
|
4944
4944
|
}
|
|
4945
|
-
function
|
|
4945
|
+
function Cs(e) {
|
|
4946
4946
|
return J(K(e), {
|
|
4947
4947
|
...X({
|
|
4948
4948
|
...e,
|
|
@@ -4953,9 +4953,9 @@ function Ds(e) {
|
|
|
4953
4953
|
kind: "textarea"
|
|
4954
4954
|
});
|
|
4955
4955
|
}
|
|
4956
|
-
function
|
|
4956
|
+
function ws(e) {
|
|
4957
4957
|
return J(K(e), {
|
|
4958
|
-
...
|
|
4958
|
+
...Cs({
|
|
4959
4959
|
...e,
|
|
4960
4960
|
key: void 0,
|
|
4961
4961
|
value: void 0
|
|
@@ -4963,9 +4963,9 @@ function Os(e) {
|
|
|
4963
4963
|
kind: "i18n"
|
|
4964
4964
|
});
|
|
4965
4965
|
}
|
|
4966
|
-
function
|
|
4966
|
+
function Ts(e) {
|
|
4967
4967
|
return J(K(e), {
|
|
4968
|
-
...
|
|
4968
|
+
...Cs({
|
|
4969
4969
|
...e,
|
|
4970
4970
|
key: void 0,
|
|
4971
4971
|
value: void 0
|
|
@@ -4974,7 +4974,7 @@ function ks(e) {
|
|
|
4974
4974
|
});
|
|
4975
4975
|
}
|
|
4976
4976
|
function Z(e) {
|
|
4977
|
-
let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = L(
|
|
4977
|
+
let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = L(uo());
|
|
4978
4978
|
return r.min != null && (i = i.min(r.min, { message: R("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: R("max", { max: r.max }) })), J(t, Y({
|
|
4979
4979
|
kind: "number",
|
|
4980
4980
|
label: t.label ?? "",
|
|
@@ -4990,7 +4990,7 @@ function Z(e) {
|
|
|
4990
4990
|
}, t.multiple ?? !1));
|
|
4991
4991
|
}
|
|
4992
4992
|
function Q(e) {
|
|
4993
|
-
let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = L(
|
|
4993
|
+
let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = L(uo()).int({ message: R("int") });
|
|
4994
4994
|
return r.min != null && (i = i.min(r.min, { message: R("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: R("max", { max: r.max }) })), J(t, Y({
|
|
4995
4995
|
kind: "number",
|
|
4996
4996
|
label: t.label ?? "",
|
|
@@ -5005,7 +5005,7 @@ function Q(e) {
|
|
|
5005
5005
|
zod: V(i, n)
|
|
5006
5006
|
}, t.multiple ?? !1));
|
|
5007
5007
|
}
|
|
5008
|
-
function
|
|
5008
|
+
function Es(e) {
|
|
5009
5009
|
let t = K(e), n = t.required ?? !1, r = t.config?.granularity ?? "day", i;
|
|
5010
5010
|
return i = r === "year" ? j(z()).regex(/^\d{4}$/, { message: R("date_format") }).superRefine((e, n) => {
|
|
5011
5011
|
t.min && e < t.min && n.addIssue({
|
|
@@ -5024,12 +5024,12 @@ function As(e) {
|
|
|
5024
5024
|
message: R("date_max", { max: t.max })
|
|
5025
5025
|
});
|
|
5026
5026
|
}) : j(z()).regex(/^\d{4}-\d{2}-\d{2}$/, { message: R("date_format") }).superRefine((e, n) => {
|
|
5027
|
-
t.min && e <
|
|
5027
|
+
t.min && e < _s(t.min) && n.addIssue({
|
|
5028
5028
|
code: I.custom,
|
|
5029
|
-
message: R("date_min", { min:
|
|
5030
|
-
}), t.max && e >
|
|
5029
|
+
message: R("date_min", { min: _s(t.min) })
|
|
5030
|
+
}), t.max && e > _s(t.max) && n.addIssue({
|
|
5031
5031
|
code: I.custom,
|
|
5032
|
-
message: R("date_max", { max:
|
|
5032
|
+
message: R("date_max", { max: _s(t.max) })
|
|
5033
5033
|
});
|
|
5034
5034
|
}), J(t, Y({
|
|
5035
5035
|
kind: "date",
|
|
@@ -5045,7 +5045,7 @@ function As(e) {
|
|
|
5045
5045
|
zod: V(i, n)
|
|
5046
5046
|
}, t.multiple ?? !1));
|
|
5047
5047
|
}
|
|
5048
|
-
function
|
|
5048
|
+
function Ds(e) {
|
|
5049
5049
|
let t = K(e), n = t.required ?? !1, r = t.config?.granularity ?? "second", i = j(z()).regex({
|
|
5050
5050
|
hour: /^([01]\d|2[0-3])$/,
|
|
5051
5051
|
minute: /^([01]\d|2[0-3]):[0-5]\d$/,
|
|
@@ -5061,7 +5061,7 @@ function js(e) {
|
|
|
5061
5061
|
zod: V(i, n)
|
|
5062
5062
|
}, t.multiple ?? !1));
|
|
5063
5063
|
}
|
|
5064
|
-
function
|
|
5064
|
+
function Os(e) {
|
|
5065
5065
|
let t = K(e), n = t.required ?? !1, r = t.config?.granularity ?? "minute", i = j(z()).regex({
|
|
5066
5066
|
hour: /^\d{4}-\d{2}-\d{2}T([01]\d|2[0-3])$/,
|
|
5067
5067
|
minute: /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,
|
|
@@ -5077,8 +5077,8 @@ function Ms(e) {
|
|
|
5077
5077
|
zod: V(i, n)
|
|
5078
5078
|
}, t.multiple ?? !1));
|
|
5079
5079
|
}
|
|
5080
|
-
function
|
|
5081
|
-
let t = K(e), n =
|
|
5080
|
+
function ks(e) {
|
|
5081
|
+
let t = K(e), n = eo((e) => e === "true" || e === 1 || e === "1" ? !0 : e === "false" || e === 0 || e === "0" ? !1 : e, _a().default(!1).nullable());
|
|
5082
5082
|
return J(t, {
|
|
5083
5083
|
kind: "boolean",
|
|
5084
5084
|
label: t.label ?? "",
|
|
@@ -5089,8 +5089,8 @@ function Ns(e) {
|
|
|
5089
5089
|
zod: n
|
|
5090
5090
|
});
|
|
5091
5091
|
}
|
|
5092
|
-
function
|
|
5093
|
-
let t = K(e), n = t.required ?? !1, r =
|
|
5092
|
+
function As(e) {
|
|
5093
|
+
let t = K(e), n = t.required ?? !1, r = ka([
|
|
5094
5094
|
"yes",
|
|
5095
5095
|
"no",
|
|
5096
5096
|
"unknown"
|
|
@@ -5105,14 +5105,14 @@ function Ps(e) {
|
|
|
5105
5105
|
zod: V(r, n)
|
|
5106
5106
|
});
|
|
5107
5107
|
}
|
|
5108
|
-
function
|
|
5108
|
+
function js(e) {
|
|
5109
5109
|
return typeof e == "string" ? {
|
|
5110
5110
|
value: e,
|
|
5111
5111
|
title: e
|
|
5112
5112
|
} : e;
|
|
5113
5113
|
}
|
|
5114
|
-
function
|
|
5115
|
-
let t = K(e), n = t.required ?? !1, r = typeof t.options == "string" ? t.options : null, i = Array.isArray(t.options) ? t.options.map(
|
|
5114
|
+
function Ms(e) {
|
|
5115
|
+
let t = K(e), n = t.required ?? !1, r = typeof t.options == "string" ? t.options : null, i = Array.isArray(t.options) ? t.options.map(js) : [], a = i.length > 0 ? ka(i.map((e) => e.value), { error: () => R("enum") }) : j(z());
|
|
5116
5116
|
return J(t, Y({
|
|
5117
5117
|
kind: "select",
|
|
5118
5118
|
label: t.label ?? "",
|
|
@@ -5124,15 +5124,15 @@ function Is(e) {
|
|
|
5124
5124
|
zod: V(a, n)
|
|
5125
5125
|
}, t.multiple ?? !1));
|
|
5126
5126
|
}
|
|
5127
|
-
function
|
|
5127
|
+
function Ns(e) {
|
|
5128
5128
|
for (let [t, n] of Object.entries(e)) {
|
|
5129
5129
|
if (t.startsWith("$")) throw Error(`[relation] filter key '${t}' is an operator — only flat equality is allowed here`);
|
|
5130
5130
|
if (n === void 0 || typeof n == "object" && n) throw Error(`[relation] filter key '${t}' has a non-scalar value — only flat equality is allowed here`);
|
|
5131
5131
|
}
|
|
5132
5132
|
}
|
|
5133
|
-
function
|
|
5133
|
+
function Ps(e) {
|
|
5134
5134
|
let t = K(e), n = t.required ?? !1, r = t.multiple ?? !1;
|
|
5135
|
-
e.options.filter &&
|
|
5135
|
+
e.options.filter && Ns(e.options.filter);
|
|
5136
5136
|
let i;
|
|
5137
5137
|
return i = r ? P().superRefine((e, t) => {
|
|
5138
5138
|
let n = B(e);
|
|
@@ -5159,7 +5159,7 @@ function Rs(e) {
|
|
|
5159
5159
|
zod: V(i, n)
|
|
5160
5160
|
});
|
|
5161
5161
|
}
|
|
5162
|
-
function
|
|
5162
|
+
function Fs(e) {
|
|
5163
5163
|
let t = K(e), n = t.required ?? !1, r = P().superRefine((e, t) => {
|
|
5164
5164
|
if (typeof e == "string") try {
|
|
5165
5165
|
JSON.parse(e);
|
|
@@ -5181,7 +5181,7 @@ function zs(e) {
|
|
|
5181
5181
|
zod: V(r, n)
|
|
5182
5182
|
});
|
|
5183
5183
|
}
|
|
5184
|
-
function
|
|
5184
|
+
function Is(e) {
|
|
5185
5185
|
let t = K(e), n = t.required ?? !1, r = t.multiple ?? !1, i = t.slots && t.slots.length > 0 ? t.slots : [""], a = t.fields?.length ? t.fields : [X({
|
|
5186
5186
|
key: "text",
|
|
5187
5187
|
label: "core.fields.text"
|
|
@@ -5192,7 +5192,7 @@ function Bs(e) {
|
|
|
5192
5192
|
if (!r && (e.type.virtual || e.type.columns)) throw Error(`[field.check] single content field '${e.key}' must be a scalar stored field`);
|
|
5193
5193
|
o.add(e.key);
|
|
5194
5194
|
}
|
|
5195
|
-
let s = i.map((e, t) =>
|
|
5195
|
+
let s = i.map((e, t) => ks({
|
|
5196
5196
|
key: `check${t}`,
|
|
5197
5197
|
label: e || "core.fields.check"
|
|
5198
5198
|
}));
|
|
@@ -5210,10 +5210,10 @@ function Bs(e) {
|
|
|
5210
5210
|
let c = {}, l = {};
|
|
5211
5211
|
for (let e of a) c[e.key] = e.type.zod, l[e.key] = e.type.column;
|
|
5212
5212
|
i.forEach((e, t) => {
|
|
5213
|
-
c[`check${t}`] =
|
|
5213
|
+
c[`check${t}`] = _a(), l[`check${t}`] = "boolean";
|
|
5214
5214
|
});
|
|
5215
5215
|
let u = F(c).passthrough(), d = P().superRefine((e, t) => {
|
|
5216
|
-
let n = typeof e == "string" ?
|
|
5216
|
+
let n = typeof e == "string" ? vs(e) : e;
|
|
5217
5217
|
if (n === void 0) {
|
|
5218
5218
|
t.addIssue({
|
|
5219
5219
|
code: I.custom,
|
|
@@ -5236,29 +5236,29 @@ function Bs(e) {
|
|
|
5236
5236
|
slots: i,
|
|
5237
5237
|
fields: a.map((e) => ({
|
|
5238
5238
|
key: e.key,
|
|
5239
|
-
...
|
|
5239
|
+
...yc(e.type)
|
|
5240
5240
|
}))
|
|
5241
5241
|
},
|
|
5242
5242
|
columns: l,
|
|
5243
5243
|
zod: V(d, n)
|
|
5244
5244
|
});
|
|
5245
5245
|
}
|
|
5246
|
-
var
|
|
5246
|
+
var Ls = (e) => [{
|
|
5247
5247
|
role: "value",
|
|
5248
5248
|
accepts: ["number"],
|
|
5249
5249
|
fallback: () => Z({})
|
|
5250
5250
|
}, {
|
|
5251
5251
|
role: "unit",
|
|
5252
5252
|
accepts: ["select", "relation"],
|
|
5253
|
-
fallback: () =>
|
|
5253
|
+
fallback: () => Ms({ options: e })
|
|
5254
5254
|
}];
|
|
5255
|
-
function
|
|
5256
|
-
let t = K(e), n = t.required ?? !1, i = t.config ?? {}, a =
|
|
5255
|
+
function Rs(e) {
|
|
5256
|
+
let t = K(e), n = t.required ?? !1, i = t.config ?? {}, a = oo((t.options, t.options)), o = N().finite();
|
|
5257
5257
|
i.step === 1 && (o = o.int({ message: R("int") })), i.min != null && (o = o.min(i.min)), i.max != null && (o = o.max(i.max));
|
|
5258
|
-
let s = H(
|
|
5258
|
+
let s = H(Ls(t.options), t.parts), c = F(W({
|
|
5259
5259
|
value: o,
|
|
5260
5260
|
unit: j().refine((e) => a.some((t) => t.value === e), { message: R("measured_unit") })
|
|
5261
|
-
}, s)), l = P().transform((e, t) => {
|
|
5261
|
+
}, s, n !== !0)), l = P().transform((e, t) => {
|
|
5262
5262
|
let n = B(e);
|
|
5263
5263
|
if (typeof n == "string") return t.addIssue({
|
|
5264
5264
|
code: I.custom,
|
|
@@ -5297,8 +5297,8 @@ function Hs(e) {
|
|
|
5297
5297
|
zod: V(l, n)
|
|
5298
5298
|
});
|
|
5299
5299
|
}
|
|
5300
|
-
function
|
|
5301
|
-
let t = K(e), n = t.required ?? !1, r =
|
|
5300
|
+
function zs(e) {
|
|
5301
|
+
let t = K(e), n = t.required ?? !1, r = oo(t.options), i = j(z()).refine((e) => r.some((t) => t.value === e), { message: R("measured_unit") });
|
|
5302
5302
|
return J(t, {
|
|
5303
5303
|
kind: "unit",
|
|
5304
5304
|
label: t.label ?? "",
|
|
@@ -5313,8 +5313,8 @@ function Us(e) {
|
|
|
5313
5313
|
zod: V(i, n)
|
|
5314
5314
|
});
|
|
5315
5315
|
}
|
|
5316
|
-
function
|
|
5317
|
-
let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = L(
|
|
5316
|
+
function Bs(e) {
|
|
5317
|
+
let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = L(uo());
|
|
5318
5318
|
return r.min != null && (i = i.min(r.min, { message: R("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: R("max", { max: r.max }) })), J(t, {
|
|
5319
5319
|
kind: "amount",
|
|
5320
5320
|
label: t.label ?? "",
|
|
@@ -5330,22 +5330,22 @@ function Ws(e) {
|
|
|
5330
5330
|
zod: V(i, n)
|
|
5331
5331
|
});
|
|
5332
5332
|
}
|
|
5333
|
-
var
|
|
5333
|
+
var Vs = [{
|
|
5334
5334
|
role: "value",
|
|
5335
5335
|
accepts: ["number"],
|
|
5336
5336
|
fallback: () => Z({})
|
|
5337
5337
|
}, {
|
|
5338
5338
|
role: "currency",
|
|
5339
5339
|
accepts: ["select", "relation"],
|
|
5340
|
-
fallback: () =>
|
|
5340
|
+
fallback: () => Ms({ options: so })
|
|
5341
5341
|
}];
|
|
5342
|
-
function
|
|
5342
|
+
function Hs(e) {
|
|
5343
5343
|
let t = K(e), n = t.required ?? !1, i = t.config ?? {}, a = N().finite();
|
|
5344
5344
|
i.min != null && (a = a.min(i.min)), i.max != null && (a = a.max(i.max));
|
|
5345
|
-
let o = H(
|
|
5345
|
+
let o = H(Vs, t.parts), s = F(W({
|
|
5346
5346
|
value: a,
|
|
5347
|
-
currency: j().refine(
|
|
5348
|
-
}, o)), c = P().transform((e, t) => {
|
|
5347
|
+
currency: j().refine(lo, { message: R("money_currency") })
|
|
5348
|
+
}, o, n !== !0)), c = P().transform((e, t) => {
|
|
5349
5349
|
let n = B(e);
|
|
5350
5350
|
if (typeof n == "string") return t.addIssue({
|
|
5351
5351
|
code: I.custom,
|
|
@@ -5373,7 +5373,7 @@ function Ks(e) {
|
|
|
5373
5373
|
zod: V(c, n)
|
|
5374
5374
|
});
|
|
5375
5375
|
}
|
|
5376
|
-
var
|
|
5376
|
+
var Us = [{
|
|
5377
5377
|
role: "code",
|
|
5378
5378
|
accepts: ["text"],
|
|
5379
5379
|
fallback: () => X({})
|
|
@@ -5382,11 +5382,11 @@ var qs = [{
|
|
|
5382
5382
|
accepts: ["text"],
|
|
5383
5383
|
fallback: () => X({})
|
|
5384
5384
|
}];
|
|
5385
|
-
function
|
|
5386
|
-
let t = K(e), n = t.required ?? !1, i = t.config ?? {}, a = H(
|
|
5385
|
+
function Ws(e) {
|
|
5386
|
+
let t = K(e), n = t.required ?? !1, i = t.config ?? {}, a = H(Us, t.parts), o = F(W({
|
|
5387
5387
|
code: j(),
|
|
5388
5388
|
lang: j()
|
|
5389
|
-
}, a)), s = P().transform((e, t) => {
|
|
5389
|
+
}, a, n !== !0)), s = P().transform((e, t) => {
|
|
5390
5390
|
let n = B(e);
|
|
5391
5391
|
if (typeof n == "string") return t.addIssue({
|
|
5392
5392
|
code: I.custom,
|
|
@@ -5410,7 +5410,7 @@ function Js(e) {
|
|
|
5410
5410
|
zod: V(s, n)
|
|
5411
5411
|
});
|
|
5412
5412
|
}
|
|
5413
|
-
var
|
|
5413
|
+
var Gs = [
|
|
5414
5414
|
{
|
|
5415
5415
|
role: "lat",
|
|
5416
5416
|
accepts: ["number"],
|
|
@@ -5427,12 +5427,12 @@ var Ys = [
|
|
|
5427
5427
|
fallback: () => X({})
|
|
5428
5428
|
}
|
|
5429
5429
|
];
|
|
5430
|
-
function
|
|
5431
|
-
let t = K(e), n = t.required ?? !1, i = H(
|
|
5430
|
+
function Ks(e) {
|
|
5431
|
+
let t = K(e), n = t.required ?? !1, i = H(Gs, t.parts), a = F(W({
|
|
5432
5432
|
lat: N().min(-90).max(90),
|
|
5433
5433
|
lng: N().min(-180).max(180),
|
|
5434
5434
|
label: j().nullish()
|
|
5435
|
-
}, i)), o = i.filter((e) => (e.role === "lat" || e.role === "lng") && e.mode === "stored").map(
|
|
5435
|
+
}, i, n !== !0)), o = i.filter((e) => (e.role === "lat" || e.role === "lng") && e.mode === "stored").map(mo), s = P().transform((e, t) => {
|
|
5436
5436
|
let s = B(e), c = s;
|
|
5437
5437
|
if (c == null || typeof c == "object" && o.length > 0 && o.every((e) => c[e] == null)) return n && t.addIssue({
|
|
5438
5438
|
code: I.custom,
|
|
@@ -5460,12 +5460,12 @@ function Xs(e) {
|
|
|
5460
5460
|
zod: V(s, n)
|
|
5461
5461
|
});
|
|
5462
5462
|
}
|
|
5463
|
-
function
|
|
5463
|
+
function qs(e) {
|
|
5464
5464
|
return {
|
|
5465
|
-
...
|
|
5465
|
+
...us({
|
|
5466
5466
|
key: e.key,
|
|
5467
5467
|
label: e.label,
|
|
5468
|
-
by:
|
|
5468
|
+
by: Ms({
|
|
5469
5469
|
key: "day",
|
|
5470
5470
|
label: "core.fields.weekday",
|
|
5471
5471
|
options: "weekdays"
|
|
@@ -5480,29 +5480,12 @@ function Zs(e) {
|
|
|
5480
5480
|
kind: "per-weekday"
|
|
5481
5481
|
};
|
|
5482
5482
|
}
|
|
5483
|
-
function
|
|
5484
|
-
let t = K(e);
|
|
5485
|
-
return J(t, {
|
|
5486
|
-
kind: "lookup",
|
|
5487
|
-
label: t.label ?? "",
|
|
5488
|
-
required: !1,
|
|
5489
|
-
prim: "lookup",
|
|
5490
|
-
column: "text",
|
|
5491
|
-
virtual: !0,
|
|
5492
|
-
hints: {
|
|
5493
|
-
from: t.from,
|
|
5494
|
-
pick: t.pick,
|
|
5495
|
-
compareWith: t.compareWith ?? null
|
|
5496
|
-
},
|
|
5497
|
-
zod: xa().optional()
|
|
5498
|
-
});
|
|
5499
|
-
}
|
|
5500
|
-
function $s(e, t) {
|
|
5483
|
+
function Js(e, t) {
|
|
5501
5484
|
let n = /* @__PURE__ */ new Map();
|
|
5502
5485
|
for (let t of e) t.mode === "pinned" && n.set(t.role, t.value);
|
|
5503
5486
|
return (e, r) => n.has(e) ? n.get(e) : r?.[t[e]];
|
|
5504
5487
|
}
|
|
5505
|
-
var
|
|
5488
|
+
var Ys = (e) => [{
|
|
5506
5489
|
role: "from",
|
|
5507
5490
|
accepts: ["date", "datetime"],
|
|
5508
5491
|
fallback: () => e("from", "core.period.from").type
|
|
@@ -5511,11 +5494,11 @@ var ec = (e) => [{
|
|
|
5511
5494
|
accepts: ["date", "datetime"],
|
|
5512
5495
|
fallback: () => e("until", "core.period.until").type
|
|
5513
5496
|
}];
|
|
5514
|
-
function
|
|
5515
|
-
let t = K(e), n = t.config?.granularity ?? "day", r = t.required ?? !1, i = t.multiple ?? !1, a = (e, t) => n === "datetime" ?
|
|
5497
|
+
function Xs(e) {
|
|
5498
|
+
let t = K(e), n = t.config?.granularity ?? "day", r = t.required ?? !1, i = t.multiple ?? !1, a = (e, t) => n === "datetime" ? Os({
|
|
5516
5499
|
key: e,
|
|
5517
5500
|
label: t
|
|
5518
|
-
}) :
|
|
5501
|
+
}) : Es({
|
|
5519
5502
|
key: e,
|
|
5520
5503
|
label: t,
|
|
5521
5504
|
rules: { granularity: n === "month" ? "month" : "day" }
|
|
@@ -5530,7 +5513,7 @@ function tc(e) {
|
|
|
5530
5513
|
let o = a("from", "core.period.from"), s = a("until", "core.period.until"), c = {
|
|
5531
5514
|
from: o.type,
|
|
5532
5515
|
until: s.type
|
|
5533
|
-
}, l = H(
|
|
5516
|
+
}, l = H(Ys(a), t.parts), u = Js(l, ho(l)), d = {};
|
|
5534
5517
|
for (let [e, t] of Object.entries(c)) d[e] = t.zod.optional();
|
|
5535
5518
|
let f = F(W(d, l)).passthrough();
|
|
5536
5519
|
f = f.superRefine((e, t) => {
|
|
@@ -5551,8 +5534,8 @@ function tc(e) {
|
|
|
5551
5534
|
}
|
|
5552
5535
|
}), f = f.transform((e) => typeof e == "object" && e && !Array.isArray(e) ? G(e, l) : e);
|
|
5553
5536
|
let p = l.map((e) => ({
|
|
5554
|
-
key:
|
|
5555
|
-
...
|
|
5537
|
+
key: mo(e),
|
|
5538
|
+
...yc(e.meta)
|
|
5556
5539
|
}));
|
|
5557
5540
|
return J(t, {
|
|
5558
5541
|
kind: "period",
|
|
@@ -5571,25 +5554,25 @@ function tc(e) {
|
|
|
5571
5554
|
zod: V(f, r)
|
|
5572
5555
|
});
|
|
5573
5556
|
}
|
|
5574
|
-
var
|
|
5557
|
+
var Zs = /* @__PURE__ */ new Set([
|
|
5575
5558
|
"name",
|
|
5576
5559
|
"mime",
|
|
5577
5560
|
"size"
|
|
5578
|
-
]),
|
|
5561
|
+
]), Qs = [
|
|
5579
5562
|
"url",
|
|
5580
5563
|
"src",
|
|
5581
5564
|
"href",
|
|
5582
5565
|
"link"
|
|
5583
5566
|
];
|
|
5584
|
-
function
|
|
5567
|
+
function $s(e) {
|
|
5585
5568
|
if (typeof e != "object" || !e || Array.isArray(e)) return "file_structure";
|
|
5586
5569
|
let t = e;
|
|
5587
|
-
if (
|
|
5570
|
+
if (Qs.some((e) => e in t)) return "file_remote_url";
|
|
5588
5571
|
let n = t.name;
|
|
5589
5572
|
if (typeof n != "string" || n === "") return "file_structure";
|
|
5590
5573
|
if (n.includes("://") || n.startsWith("//")) return "file_remote_url";
|
|
5591
5574
|
if (/[\\/]/.test(n) || n.includes("..")) return "file_name";
|
|
5592
|
-
for (let e of Object.keys(t)) if (!
|
|
5575
|
+
for (let e of Object.keys(t)) if (!Zs.has(e)) return "file_unknown_key";
|
|
5593
5576
|
return t.mime !== void 0 && typeof t.mime != "string" || t.size !== void 0 && typeof t.size != "number" ? "file_structure" : null;
|
|
5594
5577
|
}
|
|
5595
5578
|
function $(e, t) {
|
|
@@ -5605,7 +5588,7 @@ function $(e, t) {
|
|
|
5605
5588
|
}
|
|
5606
5589
|
let n = B(e), r = Array.isArray(n) ? n : [n];
|
|
5607
5590
|
for (let e of r) {
|
|
5608
|
-
let n =
|
|
5591
|
+
let n = $s(e);
|
|
5609
5592
|
if (n) {
|
|
5610
5593
|
t.addIssue({
|
|
5611
5594
|
code: I.custom,
|
|
@@ -5626,42 +5609,42 @@ function $(e, t) {
|
|
|
5626
5609
|
zod: V(a, r)
|
|
5627
5610
|
});
|
|
5628
5611
|
}
|
|
5629
|
-
function
|
|
5612
|
+
function ec(e) {
|
|
5630
5613
|
return $("file", e);
|
|
5631
5614
|
}
|
|
5632
|
-
function
|
|
5615
|
+
function tc(e) {
|
|
5633
5616
|
return $("document", e);
|
|
5634
5617
|
}
|
|
5635
|
-
function
|
|
5618
|
+
function nc(e) {
|
|
5636
5619
|
return $("audio", e);
|
|
5637
5620
|
}
|
|
5638
|
-
function
|
|
5621
|
+
function rc(e) {
|
|
5639
5622
|
return $("video", e);
|
|
5640
5623
|
}
|
|
5641
|
-
function
|
|
5624
|
+
function ic(e) {
|
|
5642
5625
|
return $("image", e);
|
|
5643
5626
|
}
|
|
5644
|
-
function
|
|
5627
|
+
function ac(e) {
|
|
5645
5628
|
return $("media", e);
|
|
5646
5629
|
}
|
|
5647
|
-
function
|
|
5630
|
+
function oc(e) {
|
|
5648
5631
|
return $("avatar", e);
|
|
5649
5632
|
}
|
|
5650
|
-
function
|
|
5633
|
+
function sc(e) {
|
|
5651
5634
|
return $("cover", e);
|
|
5652
5635
|
}
|
|
5653
|
-
function
|
|
5636
|
+
function cc(e) {
|
|
5654
5637
|
return $("poster", e);
|
|
5655
5638
|
}
|
|
5656
|
-
function
|
|
5639
|
+
function lc(e) {
|
|
5657
5640
|
let t = K(e), n = {
|
|
5658
5641
|
...t.option ?? X({ label: "" }),
|
|
5659
5642
|
label: t.valueLabel ?? ""
|
|
5660
5643
|
};
|
|
5661
|
-
return
|
|
5644
|
+
return us({
|
|
5662
5645
|
key: t.key,
|
|
5663
5646
|
label: t.label ?? "",
|
|
5664
|
-
container: t.container ??
|
|
5647
|
+
container: t.container ?? ss,
|
|
5665
5648
|
by: X({
|
|
5666
5649
|
key: "key",
|
|
5667
5650
|
label: t.keyLabel ?? ""
|
|
@@ -5673,7 +5656,7 @@ function mc(e) {
|
|
|
5673
5656
|
required: t.required
|
|
5674
5657
|
});
|
|
5675
5658
|
}
|
|
5676
|
-
var
|
|
5659
|
+
var uc = (e) => [{
|
|
5677
5660
|
role: "from",
|
|
5678
5661
|
accepts: ["number"],
|
|
5679
5662
|
fallback: () => e ? Q({}) : Z({})
|
|
@@ -5682,13 +5665,13 @@ var hc = (e) => [{
|
|
|
5682
5665
|
accepts: ["number"],
|
|
5683
5666
|
fallback: () => e ? Q({}) : Z({})
|
|
5684
5667
|
}];
|
|
5685
|
-
function
|
|
5668
|
+
function dc(e, t, n) {
|
|
5686
5669
|
let i = K(n), a = i.required ?? !1, o = i.config ?? {}, s = N().finite();
|
|
5687
5670
|
t && (s = s.int({ message: R("int") })), o.min != null && (s = s.min(o.min)), o.max != null && (s = s.max(o.max));
|
|
5688
|
-
let c = H(
|
|
5671
|
+
let c = H(uc(t), i.parts), l = ho(c), u = F(W({
|
|
5689
5672
|
from: s,
|
|
5690
5673
|
to: s
|
|
5691
|
-
}, c)), d =
|
|
5674
|
+
}, c, a !== !0)), d = Js(c, l), f = P().transform((e, t) => {
|
|
5692
5675
|
if (typeof e == "string") try {
|
|
5693
5676
|
JSON.parse(e);
|
|
5694
5677
|
} catch {
|
|
@@ -5724,20 +5707,20 @@ function gc(e, t, n) {
|
|
|
5724
5707
|
zod: V(f, a)
|
|
5725
5708
|
});
|
|
5726
5709
|
}
|
|
5727
|
-
function
|
|
5728
|
-
return
|
|
5710
|
+
function fc(e) {
|
|
5711
|
+
return dc("numberRange", !0, e);
|
|
5729
5712
|
}
|
|
5730
|
-
function
|
|
5731
|
-
return
|
|
5713
|
+
function pc(e) {
|
|
5714
|
+
return dc("realRange", !1, e);
|
|
5732
5715
|
}
|
|
5733
|
-
function
|
|
5716
|
+
function mc(e) {
|
|
5734
5717
|
let t = K(e), n = t.required ?? !1, r = t.multiple ?? !1, i = F({
|
|
5735
5718
|
url: j().min(1),
|
|
5736
5719
|
title: j().optional(),
|
|
5737
5720
|
description: j().optional(),
|
|
5738
5721
|
thumbnail: j().optional(),
|
|
5739
5722
|
provider: j().optional(),
|
|
5740
|
-
type:
|
|
5723
|
+
type: ka([
|
|
5741
5724
|
"video",
|
|
5742
5725
|
"rich",
|
|
5743
5726
|
"photo",
|
|
@@ -5746,7 +5729,7 @@ function yc(e) {
|
|
|
5746
5729
|
html: j().optional(),
|
|
5747
5730
|
width: N().optional(),
|
|
5748
5731
|
height: N().optional()
|
|
5749
|
-
}), a =
|
|
5732
|
+
}), a = po(r ? Sa(i) : Ta([i, Sa(i).max(1)]), "embed_structure");
|
|
5750
5733
|
return J(t, {
|
|
5751
5734
|
kind: "embed",
|
|
5752
5735
|
label: t.label ?? "",
|
|
@@ -5758,70 +5741,69 @@ function yc(e) {
|
|
|
5758
5741
|
zod: V(a, n)
|
|
5759
5742
|
});
|
|
5760
5743
|
}
|
|
5761
|
-
var
|
|
5744
|
+
var hc = {
|
|
5762
5745
|
string: X,
|
|
5763
|
-
text:
|
|
5764
|
-
i18n:
|
|
5765
|
-
smallText:
|
|
5766
|
-
localDir:
|
|
5767
|
-
localFile:
|
|
5746
|
+
text: Cs,
|
|
5747
|
+
i18n: ws,
|
|
5748
|
+
smallText: Ts,
|
|
5749
|
+
localDir: xs,
|
|
5750
|
+
localFile: Ss,
|
|
5768
5751
|
real: Z,
|
|
5769
5752
|
int: Q,
|
|
5770
|
-
date:
|
|
5771
|
-
time:
|
|
5772
|
-
datetime:
|
|
5773
|
-
boolean:
|
|
5774
|
-
triState:
|
|
5775
|
-
select:
|
|
5776
|
-
relation:
|
|
5777
|
-
json:
|
|
5778
|
-
check:
|
|
5779
|
-
measured:
|
|
5780
|
-
unit:
|
|
5781
|
-
amount:
|
|
5782
|
-
money:
|
|
5783
|
-
code:
|
|
5784
|
-
geo:
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
realRange: vc,
|
|
5753
|
+
date: Es,
|
|
5754
|
+
time: Ds,
|
|
5755
|
+
datetime: Os,
|
|
5756
|
+
boolean: ks,
|
|
5757
|
+
triState: As,
|
|
5758
|
+
select: Ms,
|
|
5759
|
+
relation: Ps,
|
|
5760
|
+
json: Fs,
|
|
5761
|
+
check: Is,
|
|
5762
|
+
measured: Rs,
|
|
5763
|
+
unit: zs,
|
|
5764
|
+
amount: Bs,
|
|
5765
|
+
money: Hs,
|
|
5766
|
+
code: Ws,
|
|
5767
|
+
geo: Ks,
|
|
5768
|
+
perWeekday: qs,
|
|
5769
|
+
period: Xs,
|
|
5770
|
+
file: ec,
|
|
5771
|
+
document: tc,
|
|
5772
|
+
audio: nc,
|
|
5773
|
+
video: rc,
|
|
5774
|
+
image: ic,
|
|
5775
|
+
media: ac,
|
|
5776
|
+
avatar: oc,
|
|
5777
|
+
cover: sc,
|
|
5778
|
+
poster: cc,
|
|
5779
|
+
embed: mc,
|
|
5780
|
+
keyValue: lc,
|
|
5781
|
+
numberRange: fc,
|
|
5782
|
+
realRange: pc,
|
|
5801
5783
|
group: q,
|
|
5802
|
-
row:
|
|
5803
|
-
table:
|
|
5804
|
-
sheet:
|
|
5805
|
-
keyed:
|
|
5806
|
-
url:
|
|
5807
|
-
divider:
|
|
5808
|
-
break:
|
|
5809
|
-
info:
|
|
5810
|
-
button:
|
|
5784
|
+
row: os,
|
|
5785
|
+
table: ss,
|
|
5786
|
+
sheet: cs,
|
|
5787
|
+
keyed: us,
|
|
5788
|
+
url: ls,
|
|
5789
|
+
divider: ps,
|
|
5790
|
+
break: ms,
|
|
5791
|
+
info: hs,
|
|
5792
|
+
button: gs
|
|
5811
5793
|
};
|
|
5812
|
-
function
|
|
5813
|
-
for (let t of Object.keys(e)) if (t in
|
|
5794
|
+
function gc(e) {
|
|
5795
|
+
for (let t of Object.keys(e)) if (t in hc) throw Error(`[f] preset '${t}' overrides a primitive`);
|
|
5814
5796
|
return {
|
|
5815
|
-
...
|
|
5797
|
+
...hc,
|
|
5816
5798
|
...e
|
|
5817
5799
|
};
|
|
5818
5800
|
}
|
|
5819
|
-
var
|
|
5801
|
+
var _c, vc = () => _c ??= gc(Zo);
|
|
5820
5802
|
new Proxy({}, {
|
|
5821
|
-
get: (e, t) =>
|
|
5822
|
-
has: (e, t) => t in
|
|
5803
|
+
get: (e, t) => vc()[t],
|
|
5804
|
+
has: (e, t) => t in vc()
|
|
5823
5805
|
});
|
|
5824
|
-
function
|
|
5806
|
+
function yc(e) {
|
|
5825
5807
|
let { kind: t, label: n, required: r, prim: i, hints: a, options: o, relation: s, virtual: c, json: l, hidden: u, derived: d, parts: f } = e;
|
|
5826
5808
|
return {
|
|
5827
5809
|
kind: t,
|
|
@@ -5845,8 +5827,8 @@ function wc(e) {
|
|
|
5845
5827
|
}
|
|
5846
5828
|
//#endregion
|
|
5847
5829
|
//#region ../web-sdk/src/registry.ts
|
|
5848
|
-
var
|
|
5849
|
-
function
|
|
5830
|
+
var bc = {};
|
|
5831
|
+
function xc(e) {
|
|
5850
5832
|
if (!e.kinds.length) throw Error("[render] renderer without kinds");
|
|
5851
5833
|
let t = {
|
|
5852
5834
|
kinds: e.kinds,
|
|
@@ -5857,90 +5839,90 @@ function Ec(e) {
|
|
|
5857
5839
|
keys: e.keys
|
|
5858
5840
|
};
|
|
5859
5841
|
for (let n of e.kinds) {
|
|
5860
|
-
if (
|
|
5861
|
-
|
|
5842
|
+
if (bc[n]) throw Error(`[render] kind '${n}' already registered`);
|
|
5843
|
+
bc[n] = t;
|
|
5862
5844
|
}
|
|
5863
5845
|
}
|
|
5864
|
-
function
|
|
5865
|
-
return
|
|
5846
|
+
function Sc(e) {
|
|
5847
|
+
return bc[e.kind];
|
|
5866
5848
|
}
|
|
5867
|
-
function
|
|
5868
|
-
if (
|
|
5869
|
-
if (
|
|
5870
|
-
if (
|
|
5871
|
-
if (
|
|
5872
|
-
if (
|
|
5849
|
+
function Cc(e) {
|
|
5850
|
+
if (es(e) || ts(e)) return e.type.kind;
|
|
5851
|
+
if (ns(e)) return e.kind ?? (ds(e) ? "collection" : fs(e) ? "embedded" : "group");
|
|
5852
|
+
if (as(e)) return "button";
|
|
5853
|
+
if (rs(e)) return "divider";
|
|
5854
|
+
if (is(e)) return "info";
|
|
5873
5855
|
throw Error("[render] unknown layout element");
|
|
5874
5856
|
}
|
|
5875
|
-
function
|
|
5876
|
-
let t =
|
|
5857
|
+
function wc(e) {
|
|
5858
|
+
let t = Sc(e)?.layout;
|
|
5877
5859
|
return typeof t == "function" ? t(e) : t ?? "scalar";
|
|
5878
5860
|
}
|
|
5879
|
-
var
|
|
5880
|
-
function
|
|
5881
|
-
if (
|
|
5882
|
-
|
|
5861
|
+
var Tc = (e) => e.hints.multi === !0 || e.hints.multiple === !0 ? "block" : "scalar", Ec = {};
|
|
5862
|
+
function Dc(e, t) {
|
|
5863
|
+
if (Ec[e]) throw Error(`[template] '${e}' already registered`);
|
|
5864
|
+
Ec[e] = t;
|
|
5883
5865
|
}
|
|
5884
|
-
function
|
|
5885
|
-
return
|
|
5866
|
+
function Oc(e) {
|
|
5867
|
+
return Ec[e];
|
|
5886
5868
|
}
|
|
5887
5869
|
//#endregion
|
|
5888
5870
|
//#region ../web-sdk/src/list-view.ts
|
|
5889
|
-
var
|
|
5890
|
-
function
|
|
5871
|
+
var kc = {};
|
|
5872
|
+
function Ac(e) {
|
|
5891
5873
|
if (!e.kind) throw Error("[list-view] view without kind");
|
|
5892
|
-
if (
|
|
5893
|
-
|
|
5874
|
+
if (kc[e.kind]) throw Error(`[list-view] kind '${e.kind}' already registered`);
|
|
5875
|
+
kc[e.kind] = e;
|
|
5894
5876
|
}
|
|
5895
|
-
function
|
|
5896
|
-
return
|
|
5877
|
+
function jc(e) {
|
|
5878
|
+
return kc[e];
|
|
5897
5879
|
}
|
|
5898
5880
|
//#endregion
|
|
5899
5881
|
//#region ../web-sdk/src/plugin-ui.ts
|
|
5900
|
-
function
|
|
5882
|
+
function Mc(e) {
|
|
5901
5883
|
return e;
|
|
5902
5884
|
}
|
|
5903
|
-
var
|
|
5904
|
-
function
|
|
5885
|
+
var Nc = /* @__PURE__ */ new Map(), Pc = /* @__PURE__ */ new Map(), Fc = /* @__PURE__ */ new Map();
|
|
5886
|
+
function Ic(e) {
|
|
5905
5887
|
for (let t of e.slots ?? []) {
|
|
5906
|
-
let e =
|
|
5907
|
-
e || (e = /* @__PURE__ */ new Map(),
|
|
5888
|
+
let e = Nc.get(t.slot);
|
|
5889
|
+
e || (e = /* @__PURE__ */ new Map(), Nc.set(t.slot, e)), e.set(t.id, t);
|
|
5908
5890
|
}
|
|
5909
|
-
for (let t of e.routes ?? [])
|
|
5910
|
-
for (let t of e.nav ?? [])
|
|
5891
|
+
for (let t of e.routes ?? []) Pc.set(t.path, t);
|
|
5892
|
+
for (let t of e.nav ?? []) Fc.set(t.to, t);
|
|
5911
5893
|
}
|
|
5912
|
-
function
|
|
5894
|
+
function Lc(e) {
|
|
5913
5895
|
return (t, n) => (t.order ?? 0) - (n.order ?? 0) || e(t).localeCompare(e(n));
|
|
5914
5896
|
}
|
|
5915
|
-
function
|
|
5916
|
-
return [...
|
|
5897
|
+
function Rc(e) {
|
|
5898
|
+
return [...Nc.get(e)?.values() ?? []].sort(Lc((e) => e.id));
|
|
5917
5899
|
}
|
|
5918
|
-
function
|
|
5919
|
-
return [...
|
|
5900
|
+
function zc() {
|
|
5901
|
+
return [...Pc.values()];
|
|
5920
5902
|
}
|
|
5921
|
-
function
|
|
5922
|
-
return [...
|
|
5903
|
+
function Bc() {
|
|
5904
|
+
return [...Fc.values()].sort(Lc((e) => e.to));
|
|
5923
5905
|
}
|
|
5924
|
-
function
|
|
5925
|
-
|
|
5906
|
+
function Vc() {
|
|
5907
|
+
Nc.clear(), Pc.clear(), Fc.clear();
|
|
5926
5908
|
}
|
|
5927
5909
|
//#endregion
|
|
5928
5910
|
//#region ../web-sdk/src/site-links.ts
|
|
5929
|
-
var
|
|
5930
|
-
function
|
|
5931
|
-
|
|
5911
|
+
var Hc = [], Uc = [];
|
|
5912
|
+
function Wc(e) {
|
|
5913
|
+
Hc = [...e];
|
|
5932
5914
|
}
|
|
5933
|
-
function
|
|
5934
|
-
return [...
|
|
5915
|
+
function Gc() {
|
|
5916
|
+
return [...Hc];
|
|
5935
5917
|
}
|
|
5936
|
-
function
|
|
5937
|
-
|
|
5918
|
+
function Kc(e) {
|
|
5919
|
+
Uc = [...e];
|
|
5938
5920
|
}
|
|
5939
|
-
function
|
|
5940
|
-
return [...
|
|
5921
|
+
function qc() {
|
|
5922
|
+
return [...Uc];
|
|
5941
5923
|
}
|
|
5942
|
-
function
|
|
5943
|
-
|
|
5924
|
+
function Jc() {
|
|
5925
|
+
Hc = [], Uc = [];
|
|
5944
5926
|
}
|
|
5945
5927
|
//#endregion
|
|
5946
|
-
export {
|
|
5928
|
+
export { Ic as applyAppUI, Mc as definePluginUI, Cc as elementKind, wc as fieldLayout, Bc as getPluginNav, zc as getPluginRoutes, Gc as getSiteLinks, qc as getSiteShelves, Rc as getSlotEntries, kc as listViewRegistry, Tc as multiBlock, Ac as registerListView, xc as registerRenderer, Wc as registerSiteLinks, Kc as registerSiteShelves, Dc as registerTemplate, bc as rendererRegistry, Vc as resetAppUI, Jc as resetSiteLinks, jc as resolveListView, Sc as resolveRenderer, Oc as resolveTemplate };
|