@8wave/ai-elements 0.97.0 → 0.98.0-beta.2
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/README.md +20 -18
- package/dist/_chunks/{Document-njJL_3oo.js → Document-CjCQXPDF.js} +54 -54
- package/dist/_chunks/{Document-njJL_3oo.js.map → Document-CjCQXPDF.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-Bns7j3b7.js → PkStreamingMarkdown-Djw604Ny.js} +43 -43
- package/dist/_chunks/PkStreamingMarkdown-Djw604Ny.js.map +1 -0
- package/dist/_chunks/{PkToolShowArtifact-BHGuiacA.js → PkToolShowArtifact-BaGEr7O9.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-BHGuiacA.js.map → PkToolShowArtifact-BaGEr7O9.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Cp6fDIOT.js → PkToolShowContactForm-DEQBTzf4.js} +4 -4
- package/dist/_chunks/{PkToolShowContactForm-Cp6fDIOT.js.map → PkToolShowContactForm-DEQBTzf4.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-BqUkMxMK.js → PkToolShowForm-AZwrmmM9.js} +2 -2
- package/dist/_chunks/{PkToolShowForm-BqUkMxMK.js.map → PkToolShowForm-AZwrmmM9.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-Bg0QAcmF.js → PkToolShowSources-FnMkkdm6.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-Bg0QAcmF.js.map → PkToolShowSources-FnMkkdm6.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-If2fZZst.js → VvCheckbox.es-D5d8k9yP.js} +2 -2
- package/dist/_chunks/{VvCheckbox.es-If2fZZst.js.map → VvCheckbox.es-D5d8k9yP.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-A-IjEdQh.js → VvCheckboxGroup.es-DVnsOjX0.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-A-IjEdQh.js.map → VvCheckboxGroup.es-DVnsOjX0.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-DLRkNj0w.js → VvCombobox.es-CFA-K-cQ.js} +2 -2
- package/dist/_chunks/{VvCombobox.es-DLRkNj0w.js.map → VvCombobox.es-CFA-K-cQ.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-DV6kHrYx.js → VvInputText.es-csEQ-bSG.js} +2 -2
- package/dist/_chunks/{VvInputText.es-DV6kHrYx.js.map → VvInputText.es-csEQ-bSG.js.map} +1 -1
- package/dist/_chunks/{VvRadio.es-C_L52PYW.js → VvRadio.es-BpymhC73.js} +2 -2
- package/dist/_chunks/{VvRadio.es-C_L52PYW.js.map → VvRadio.es-BpymhC73.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-B64sR46T.js → VvRadioGroup.es-CSNzOJKx.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-B64sR46T.js.map → VvRadioGroup.es-CSNzOJKx.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-D_WR7HcC.js → VvSelect.es-CjKMd0nH.js} +2 -2
- package/dist/_chunks/{VvSelect.es-D_WR7HcC.js.map → VvSelect.es-CjKMd0nH.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-DpF-slnp.js → VvTextarea.es-eEyRRpuT.js} +2 -2
- package/dist/_chunks/{VvTextarea.es-DpF-slnp.js.map → VvTextarea.es-eEyRRpuT.js.map} +1 -1
- package/dist/_chunks/index.es-BYny0uhz.js.map +1 -1
- package/dist/_chunks/{index.es-DN8D4nRq.js → index.es-eLFDkB2Y.js} +11 -11
- package/dist/_chunks/{index.es-DN8D4nRq.js.map → index.es-eLFDkB2Y.js.map} +1 -1
- package/dist/_chunks/{schemas-BsOP_5an.js → schemas-DnUKIqgi.js} +503 -503
- package/dist/_chunks/{schemas-BsOP_5an.js.map → schemas-DnUKIqgi.js.map} +1 -1
- package/dist/ai-elements.es.js +3836 -3743
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Document-q67u4D3u.js → Document-B8gv0e2O.js} +15 -15
- package/dist-vue/_chunks/{Document-q67u4D3u.js.map → Document-B8gv0e2O.js.map} +1 -1
- package/dist-vue/_chunks/{Media-BmW9F_3T.js → Media-B_7Yj-ml.js} +26 -26
- package/dist-vue/_chunks/{Media-BmW9F_3T.js.map → Media-B_7Yj-ml.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-A1jKttsQ.js → PkChatbot-CneS8fVC.js} +7 -7
- package/dist-vue/_chunks/{PkChatbot-A1jKttsQ.js.map → PkChatbot-CneS8fVC.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-C0ATmt-9.js → PkChatbotAuth-C_L2xWuD.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotAuth-C0ATmt-9.js.map → PkChatbotAuth-C_L2xWuD.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-BGTSWFSS.js → PkChatbotEmptyState-BGOC6vxr.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-BGTSWFSS.js.map → PkChatbotEmptyState-BGOC6vxr.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-Dhsa1c06.js → PkChatbotFeedbackForm-BSe40qlc.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-Dhsa1c06.js.map → PkChatbotFeedbackForm-BSe40qlc.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-Be3J_Fgz.js → PkChatbotInput-DTazYlPd.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-Be3J_Fgz.js.map → PkChatbotInput-DTazYlPd.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-Cbn8okze.js → PkChatbotMessages-DEzcxcqc.js} +9 -9
- package/dist-vue/_chunks/{PkChatbotMessages-Cbn8okze.js.map → PkChatbotMessages-DEzcxcqc.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-BhqYCNWy.js → PkChatbotSteps-BpqdFhsG.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotSteps-BhqYCNWy.js.map → PkChatbotSteps-BpqdFhsG.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-Cc8bZfAr.js → PkChatbotViewChat-C7Xv2Oer.js} +6 -6
- package/dist-vue/_chunks/{PkChatbotViewChat-Cc8bZfAr.js.map → PkChatbotViewChat-C7Xv2Oer.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-BsfA4A7O.js → PkChatbotViewConversations-YbHHc8oD.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-BsfA4A7O.js.map → PkChatbotViewConversations-YbHHc8oD.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-C6aouWQh.js → PkChatbotViewFiles-BPE0g2Jk.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-C6aouWQh.js.map → PkChatbotViewFiles-BPE0g2Jk.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-B_ZAXIrC.js → PkChatbotViewProfile-B_gWPgVY.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-B_ZAXIrC.js.map → PkChatbotViewProfile-B_gWPgVY.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-CNLdk20r.js → PkStreamingMarkdown-DEhbK-3c.js} +43 -43
- package/dist-vue/_chunks/PkStreamingMarkdown-DEhbK-3c.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowArtifact-B2ilUNT0.js → PkToolShowArtifact-CTBwt4DN.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-B2ilUNT0.js.map → PkToolShowArtifact-CTBwt4DN.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-C3CXe6sh.js → PkToolShowContactForm-B6-MsExL.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowContactForm-C3CXe6sh.js.map → PkToolShowContactForm-B6-MsExL.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-DnzUxm2o.js → PkToolShowForm-C-mWyeka.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowForm-DnzUxm2o.js.map → PkToolShowForm-C-mWyeka.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-BF2-VGSg.js → PkToolShowSources-rGZz65c2.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-BF2-VGSg.js.map → PkToolShowSources-rGZz65c2.js.map} +1 -1
- package/dist-vue/_chunks/{constants-DtnBK4PW.js → constants-BSe0uxSf.js} +4 -4
- package/dist-vue/_chunks/{constants-DtnBK4PW.js.map → constants-BSe0uxSf.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-BHfNaVk8.js → createChatbotApiClient-Bf5DbqVH.js} +125 -113
- package/dist-vue/_chunks/createChatbotApiClient-Bf5DbqVH.js.map +1 -0
- package/dist-vue/_chunks/{index.es-BODtrBxv.js → index.es-XfWQ82pb.js} +3 -3
- package/dist-vue/_chunks/{index.es-BODtrBxv.js.map → index.es-XfWQ82pb.js.map} +1 -1
- package/dist-vue/_chunks/{schemas-BsOP_5an.js → schemas-DnUKIqgi.js} +503 -503
- package/dist-vue/_chunks/{schemas-BsOP_5an.js.map → schemas-DnUKIqgi.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-bbenzuMe.js → useChatbotStore-Cfx-qlC4.js} +778 -761
- package/dist-vue/_chunks/useChatbotStore-Cfx-qlC4.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +6 -0
- package/dist-vue/apps/web-component/src/components/FloatingChatWidget.ce.d.ts +6 -0
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -0
- package/dist-vue/apps/web-component/src/lib.d.ts +2 -0
- package/dist-vue/composables.js +5 -3
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +23 -23
- package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +134 -3
- package/dist-vue/packages/components/src/chat/PkMessageParts.d.ts +134 -3
- package/dist-vue/packages/composable/src/chatbot/api/index.d.ts +1 -0
- package/dist-vue/packages/composable/src/chatbot/api/resolveShortUrls.d.ts +16 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +24 -24
- package/dist-vue/packages/models/src/schema/McpServer.d.ts +4 -0
- package/package.json +3 -3
- package/dist/_chunks/PkStreamingMarkdown-Bns7j3b7.js.map +0 -1
- package/dist-vue/_chunks/PkStreamingMarkdown-CNLdk20r.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-BHfNaVk8.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-bbenzuMe.js.map +0 -1
|
@@ -822,7 +822,7 @@ var at = (e) => {
|
|
|
822
822
|
vendor: "zod",
|
|
823
823
|
version: 1
|
|
824
824
|
}));
|
|
825
|
-
}),
|
|
825
|
+
}), kt = /*@__PURE__*/ t("$ZodString", (e, t) => {
|
|
826
826
|
A.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? at(e._zod.bag), e._zod.parse = (n, r) => {
|
|
827
827
|
if (t.coerce) try {
|
|
828
828
|
n.value = String(n.value);
|
|
@@ -834,11 +834,11 @@ var at = (e) => {
|
|
|
834
834
|
inst: e
|
|
835
835
|
}), n;
|
|
836
836
|
};
|
|
837
|
-
}),
|
|
838
|
-
k.init(e, t),
|
|
839
|
-
}),
|
|
840
|
-
t.pattern ??= Ve,
|
|
841
|
-
}),
|
|
837
|
+
}), j = /*@__PURE__*/ t("$ZodStringFormat", (e, t) => {
|
|
838
|
+
k.init(e, t), kt.init(e, t);
|
|
839
|
+
}), At = /*@__PURE__*/ t("$ZodGUID", (e, t) => {
|
|
840
|
+
t.pattern ??= Ve, j.init(e, t);
|
|
841
|
+
}), jt = /*@__PURE__*/ t("$ZodUUID", (e, t) => {
|
|
842
842
|
if (t.version) {
|
|
843
843
|
let e = {
|
|
844
844
|
v1: 1,
|
|
@@ -853,11 +853,11 @@ var at = (e) => {
|
|
|
853
853
|
if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
|
|
854
854
|
t.pattern ??= He(e);
|
|
855
855
|
} else t.pattern ??= He();
|
|
856
|
-
|
|
857
|
-
}),
|
|
858
|
-
t.pattern ??= Ue,
|
|
859
|
-
}),
|
|
860
|
-
|
|
856
|
+
j.init(e, t);
|
|
857
|
+
}), Mt = /*@__PURE__*/ t("$ZodEmail", (e, t) => {
|
|
858
|
+
t.pattern ??= Ue, j.init(e, t);
|
|
859
|
+
}), Nt = /*@__PURE__*/ t("$ZodURL", (e, t) => {
|
|
860
|
+
j.init(e, t), e._zod.check = (n) => {
|
|
861
861
|
try {
|
|
862
862
|
let r = n.value.trim();
|
|
863
863
|
if (!t.normalize && t.protocol?.source === Qe.source && !/^https?:\/\//i.test(r)) {
|
|
@@ -900,32 +900,32 @@ var at = (e) => {
|
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
902
|
};
|
|
903
|
-
}),
|
|
904
|
-
t.pattern ??= Ge(),
|
|
905
|
-
}),
|
|
906
|
-
t.pattern ??= ze,
|
|
907
|
-
}),
|
|
908
|
-
t.pattern ??= Pe,
|
|
909
|
-
}),
|
|
910
|
-
t.pattern ??= Fe,
|
|
911
|
-
}),
|
|
912
|
-
t.pattern ??= Ie,
|
|
913
|
-
}),
|
|
914
|
-
t.pattern ??= Le,
|
|
915
|
-
}),
|
|
916
|
-
t.pattern ??= Re,
|
|
917
|
-
}),
|
|
918
|
-
t.pattern ??= it(t),
|
|
919
|
-
}),
|
|
920
|
-
t.pattern ??= tt,
|
|
921
|
-
}),
|
|
922
|
-
t.pattern ??= rt(t),
|
|
923
|
-
}),
|
|
924
|
-
t.pattern ??= Be,
|
|
925
|
-
}),
|
|
926
|
-
t.pattern ??= Ke,
|
|
927
|
-
}),
|
|
928
|
-
t.pattern ??= qe,
|
|
903
|
+
}), Pt = /*@__PURE__*/ t("$ZodEmoji", (e, t) => {
|
|
904
|
+
t.pattern ??= Ge(), j.init(e, t);
|
|
905
|
+
}), Ft = /*@__PURE__*/ t("$ZodNanoID", (e, t) => {
|
|
906
|
+
t.pattern ??= ze, j.init(e, t);
|
|
907
|
+
}), It = /*@__PURE__*/ t("$ZodCUID", (e, t) => {
|
|
908
|
+
t.pattern ??= Pe, j.init(e, t);
|
|
909
|
+
}), Lt = /*@__PURE__*/ t("$ZodCUID2", (e, t) => {
|
|
910
|
+
t.pattern ??= Fe, j.init(e, t);
|
|
911
|
+
}), Rt = /*@__PURE__*/ t("$ZodULID", (e, t) => {
|
|
912
|
+
t.pattern ??= Ie, j.init(e, t);
|
|
913
|
+
}), zt = /*@__PURE__*/ t("$ZodXID", (e, t) => {
|
|
914
|
+
t.pattern ??= Le, j.init(e, t);
|
|
915
|
+
}), Bt = /*@__PURE__*/ t("$ZodKSUID", (e, t) => {
|
|
916
|
+
t.pattern ??= Re, j.init(e, t);
|
|
917
|
+
}), Vt = /*@__PURE__*/ t("$ZodISODateTime", (e, t) => {
|
|
918
|
+
t.pattern ??= it(t), j.init(e, t);
|
|
919
|
+
}), Ht = /*@__PURE__*/ t("$ZodISODate", (e, t) => {
|
|
920
|
+
t.pattern ??= tt, j.init(e, t);
|
|
921
|
+
}), Ut = /*@__PURE__*/ t("$ZodISOTime", (e, t) => {
|
|
922
|
+
t.pattern ??= rt(t), j.init(e, t);
|
|
923
|
+
}), Wt = /*@__PURE__*/ t("$ZodISODuration", (e, t) => {
|
|
924
|
+
t.pattern ??= Be, j.init(e, t);
|
|
925
|
+
}), Gt = /*@__PURE__*/ t("$ZodIPv4", (e, t) => {
|
|
926
|
+
t.pattern ??= Ke, j.init(e, t), e._zod.bag.format = "ipv4";
|
|
927
|
+
}), Kt = /*@__PURE__*/ t("$ZodIPv6", (e, t) => {
|
|
928
|
+
t.pattern ??= qe, j.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
929
929
|
try {
|
|
930
930
|
new URL(`http://[${n.value}]`);
|
|
931
931
|
} catch {
|
|
@@ -938,10 +938,10 @@ var at = (e) => {
|
|
|
938
938
|
});
|
|
939
939
|
}
|
|
940
940
|
};
|
|
941
|
-
}),
|
|
942
|
-
t.pattern ??= Je,
|
|
943
|
-
}),
|
|
944
|
-
t.pattern ??= Ye,
|
|
941
|
+
}), qt = /*@__PURE__*/ t("$ZodCIDRv4", (e, t) => {
|
|
942
|
+
t.pattern ??= Je, j.init(e, t);
|
|
943
|
+
}), Jt = /*@__PURE__*/ t("$ZodCIDRv6", (e, t) => {
|
|
944
|
+
t.pattern ??= Ye, j.init(e, t), e._zod.check = (n) => {
|
|
945
945
|
let r = n.value.split("/");
|
|
946
946
|
try {
|
|
947
947
|
if (r.length !== 2) throw Error();
|
|
@@ -961,7 +961,7 @@ var at = (e) => {
|
|
|
961
961
|
}
|
|
962
962
|
};
|
|
963
963
|
});
|
|
964
|
-
function
|
|
964
|
+
function Yt(e) {
|
|
965
965
|
if (e === "") return !0;
|
|
966
966
|
if (/\s/.test(e) || e.length % 4 != 0) return !1;
|
|
967
967
|
try {
|
|
@@ -970,9 +970,9 @@ function Jt(e) {
|
|
|
970
970
|
return !1;
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
|
-
var
|
|
974
|
-
t.pattern ??= Xe,
|
|
975
|
-
|
|
973
|
+
var Xt = /*@__PURE__*/ t("$ZodBase64", (e, t) => {
|
|
974
|
+
t.pattern ??= Xe, j.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
|
|
975
|
+
Yt(n.value) || n.issues.push({
|
|
976
976
|
code: "invalid_format",
|
|
977
977
|
format: "base64",
|
|
978
978
|
input: n.value,
|
|
@@ -981,14 +981,14 @@ var Yt = /*@__PURE__*/ t("$ZodBase64", (e, t) => {
|
|
|
981
981
|
});
|
|
982
982
|
};
|
|
983
983
|
});
|
|
984
|
-
function
|
|
984
|
+
function Zt(e) {
|
|
985
985
|
if (!Ze.test(e)) return !1;
|
|
986
986
|
let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
|
|
987
|
-
return
|
|
987
|
+
return Yt(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
|
|
988
988
|
}
|
|
989
|
-
var
|
|
990
|
-
t.pattern ??= Ze,
|
|
991
|
-
|
|
989
|
+
var Qt = /*@__PURE__*/ t("$ZodBase64URL", (e, t) => {
|
|
990
|
+
t.pattern ??= Ze, j.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
|
|
991
|
+
Zt(n.value) || n.issues.push({
|
|
992
992
|
code: "invalid_format",
|
|
993
993
|
format: "base64url",
|
|
994
994
|
input: n.value,
|
|
@@ -996,10 +996,10 @@ var Zt = /*@__PURE__*/ t("$ZodBase64URL", (e, t) => {
|
|
|
996
996
|
continue: !t.abort
|
|
997
997
|
});
|
|
998
998
|
};
|
|
999
|
-
}),
|
|
1000
|
-
t.pattern ??= $e,
|
|
999
|
+
}), $t = /*@__PURE__*/ t("$ZodE164", (e, t) => {
|
|
1000
|
+
t.pattern ??= $e, j.init(e, t);
|
|
1001
1001
|
});
|
|
1002
|
-
function
|
|
1002
|
+
function en(e, t = null) {
|
|
1003
1003
|
try {
|
|
1004
1004
|
let n = e.split(".");
|
|
1005
1005
|
if (n.length !== 3) return !1;
|
|
@@ -1011,9 +1011,9 @@ function $t(e, t = null) {
|
|
|
1011
1011
|
return !1;
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
|
-
var
|
|
1015
|
-
|
|
1016
|
-
|
|
1014
|
+
var tn = /*@__PURE__*/ t("$ZodJWT", (e, t) => {
|
|
1015
|
+
j.init(e, t), e._zod.check = (n) => {
|
|
1016
|
+
en(n.value, t.alg) || n.issues.push({
|
|
1017
1017
|
code: "invalid_format",
|
|
1018
1018
|
format: "jwt",
|
|
1019
1019
|
input: n.value,
|
|
@@ -1021,7 +1021,7 @@ var en = /*@__PURE__*/ t("$ZodJWT", (e, t) => {
|
|
|
1021
1021
|
continue: !t.abort
|
|
1022
1022
|
});
|
|
1023
1023
|
};
|
|
1024
|
-
}),
|
|
1024
|
+
}), nn = /*@__PURE__*/ t("$ZodNumber", (e, t) => {
|
|
1025
1025
|
A.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? st, e._zod.parse = (n, r) => {
|
|
1026
1026
|
if (t.coerce) try {
|
|
1027
1027
|
n.value = Number(n.value);
|
|
@@ -1037,9 +1037,9 @@ var en = /*@__PURE__*/ t("$ZodJWT", (e, t) => {
|
|
|
1037
1037
|
...a ? { received: a } : {}
|
|
1038
1038
|
}), n;
|
|
1039
1039
|
};
|
|
1040
|
-
}),
|
|
1041
|
-
gt.init(e, t),
|
|
1042
|
-
}),
|
|
1040
|
+
}), rn = /*@__PURE__*/ t("$ZodNumberFormat", (e, t) => {
|
|
1041
|
+
gt.init(e, t), nn.init(e, t);
|
|
1042
|
+
}), an = /*@__PURE__*/ t("$ZodBoolean", (e, t) => {
|
|
1043
1043
|
A.init(e, t), e._zod.pattern = ct, e._zod.parse = (n, r) => {
|
|
1044
1044
|
if (t.coerce) try {
|
|
1045
1045
|
n.value = !!n.value;
|
|
@@ -1052,7 +1052,7 @@ var en = /*@__PURE__*/ t("$ZodJWT", (e, t) => {
|
|
|
1052
1052
|
inst: e
|
|
1053
1053
|
}), n;
|
|
1054
1054
|
};
|
|
1055
|
-
}),
|
|
1055
|
+
}), on = /*@__PURE__*/ t("$ZodNull", (e, t) => {
|
|
1056
1056
|
A.init(e, t), e._zod.pattern = lt, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
|
|
1057
1057
|
let r = t.value;
|
|
1058
1058
|
return r === null || t.issues.push({
|
|
@@ -1062,16 +1062,16 @@ var en = /*@__PURE__*/ t("$ZodJWT", (e, t) => {
|
|
|
1062
1062
|
inst: e
|
|
1063
1063
|
}), t;
|
|
1064
1064
|
};
|
|
1065
|
-
}),
|
|
1065
|
+
}), sn = /*@__PURE__*/ t("$ZodUnknown", (e, t) => {
|
|
1066
1066
|
A.init(e, t), e._zod.parse = (e) => e;
|
|
1067
|
-
}),
|
|
1067
|
+
}), cn = /*@__PURE__*/ t("$ZodNever", (e, t) => {
|
|
1068
1068
|
A.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
1069
1069
|
expected: "never",
|
|
1070
1070
|
code: "invalid_type",
|
|
1071
1071
|
input: t.value,
|
|
1072
1072
|
inst: e
|
|
1073
1073
|
}), t);
|
|
1074
|
-
}),
|
|
1074
|
+
}), ln = /*@__PURE__*/ t("$ZodDate", (e, t) => {
|
|
1075
1075
|
A.init(e, t), e._zod.parse = (n, r) => {
|
|
1076
1076
|
if (t.coerce) try {
|
|
1077
1077
|
n.value = new Date(n.value);
|
|
@@ -1086,10 +1086,10 @@ var en = /*@__PURE__*/ t("$ZodJWT", (e, t) => {
|
|
|
1086
1086
|
}), n;
|
|
1087
1087
|
};
|
|
1088
1088
|
});
|
|
1089
|
-
function
|
|
1089
|
+
function un(e, t, n) {
|
|
1090
1090
|
e.issues.length && t.issues.push(...S(n, e.issues)), t.value[n] = e.value;
|
|
1091
1091
|
}
|
|
1092
|
-
var
|
|
1092
|
+
var dn = /*@__PURE__*/ t("$ZodArray", (e, t) => {
|
|
1093
1093
|
A.init(e, t), e._zod.parse = (n, r) => {
|
|
1094
1094
|
let i = n.value;
|
|
1095
1095
|
if (!Array.isArray(i)) return n.issues.push({
|
|
@@ -1105,12 +1105,12 @@ var un = /*@__PURE__*/ t("$ZodArray", (e, t) => {
|
|
|
1105
1105
|
value: o,
|
|
1106
1106
|
issues: []
|
|
1107
1107
|
}, r);
|
|
1108
|
-
s instanceof Promise ? a.push(s.then((t) =>
|
|
1108
|
+
s instanceof Promise ? a.push(s.then((t) => un(t, n, e))) : un(s, n, e);
|
|
1109
1109
|
}
|
|
1110
1110
|
return a.length ? Promise.all(a).then(() => n) : n;
|
|
1111
1111
|
};
|
|
1112
1112
|
});
|
|
1113
|
-
function
|
|
1113
|
+
function M(e, t, n, r, i, a) {
|
|
1114
1114
|
let o = n in r;
|
|
1115
1115
|
if (e.issues.length) {
|
|
1116
1116
|
if (i && a && !o) return;
|
|
@@ -1127,7 +1127,7 @@ function N(e, t, n, r, i, a) {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function fn(e) {
|
|
1131
1131
|
let t = Object.keys(e.shape);
|
|
1132
1132
|
for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
|
|
1133
1133
|
let n = oe(e.shape);
|
|
@@ -1139,7 +1139,7 @@ function dn(e) {
|
|
|
1139
1139
|
optionalKeys: new Set(n)
|
|
1140
1140
|
};
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function pn(e, t, n, r, i, a) {
|
|
1143
1143
|
let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin === "optional", d = c.optout === "optional";
|
|
1144
1144
|
for (let i in t) {
|
|
1145
1145
|
if (i === "__proto__" || s.has(i)) continue;
|
|
@@ -1151,7 +1151,7 @@ function fn(e, t, n, r, i, a) {
|
|
|
1151
1151
|
value: t[i],
|
|
1152
1152
|
issues: []
|
|
1153
1153
|
}, r);
|
|
1154
|
-
a instanceof Promise ? e.push(a.then((e) =>
|
|
1154
|
+
a instanceof Promise ? e.push(a.then((e) => M(e, n, i, t, u, d))) : M(a, n, i, t, u, d);
|
|
1155
1155
|
}
|
|
1156
1156
|
return o.length && n.issues.push({
|
|
1157
1157
|
code: "unrecognized_keys",
|
|
@@ -1160,7 +1160,7 @@ function fn(e, t, n, r, i, a) {
|
|
|
1160
1160
|
inst: a
|
|
1161
1161
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1162
1162
|
}
|
|
1163
|
-
var
|
|
1163
|
+
var mn = /*@__PURE__*/ t("$ZodObject", (e, t) => {
|
|
1164
1164
|
if (A.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
1165
1165
|
let e = t.shape;
|
|
1166
1166
|
Object.defineProperty(t, "shape", { get: () => {
|
|
@@ -1168,7 +1168,7 @@ var pn = /*@__PURE__*/ t("$ZodObject", (e, t) => {
|
|
|
1168
1168
|
return Object.defineProperty(t, "shape", { value: n }), n;
|
|
1169
1169
|
} });
|
|
1170
1170
|
}
|
|
1171
|
-
let n = c(() =>
|
|
1171
|
+
let n = c(() => fn(t));
|
|
1172
1172
|
p(e._zod, "propValues", () => {
|
|
1173
1173
|
let e = t.shape, n = {};
|
|
1174
1174
|
for (let t in e) {
|
|
@@ -1197,13 +1197,13 @@ var pn = /*@__PURE__*/ t("$ZodObject", (e, t) => {
|
|
|
1197
1197
|
value: s[e],
|
|
1198
1198
|
issues: []
|
|
1199
1199
|
}, o);
|
|
1200
|
-
a instanceof Promise ? c.push(a.then((n) =>
|
|
1200
|
+
a instanceof Promise ? c.push(a.then((n) => M(n, t, e, s, r, i))) : M(a, t, e, s, r, i);
|
|
1201
1201
|
}
|
|
1202
|
-
return i ?
|
|
1202
|
+
return i ? pn(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
|
|
1203
1203
|
};
|
|
1204
|
-
}),
|
|
1205
|
-
|
|
1206
|
-
let n = e._zod.parse, r = c(() =>
|
|
1204
|
+
}), hn = /*@__PURE__*/ t("$ZodObjectJIT", (e, t) => {
|
|
1205
|
+
mn.init(e, t);
|
|
1206
|
+
let n = e._zod.parse, r = c(() => fn(t)), a = (e) => {
|
|
1207
1207
|
let t = new Dt([
|
|
1208
1208
|
"shape",
|
|
1209
1209
|
"payload",
|
|
@@ -1286,7 +1286,7 @@ var pn = /*@__PURE__*/ t("$ZodObject", (e, t) => {
|
|
|
1286
1286
|
e._zod.parse = (i, c) => {
|
|
1287
1287
|
f ??= r.value;
|
|
1288
1288
|
let p = i.value;
|
|
1289
|
-
return s(p) ? l && u && c?.async === !1 && c.jitless !== !0 ? (o ||= a(t.shape), i = o(i, c), d ?
|
|
1289
|
+
return s(p) ? l && u && c?.async === !1 && c.jitless !== !0 ? (o ||= a(t.shape), i = o(i, c), d ? pn([], p, i, c, f, e) : i) : n(i, c) : (i.issues.push({
|
|
1290
1290
|
expected: "object",
|
|
1291
1291
|
code: "invalid_type",
|
|
1292
1292
|
input: p,
|
|
@@ -1294,7 +1294,7 @@ var pn = /*@__PURE__*/ t("$ZodObject", (e, t) => {
|
|
|
1294
1294
|
}), i);
|
|
1295
1295
|
};
|
|
1296
1296
|
});
|
|
1297
|
-
function
|
|
1297
|
+
function gn(e, t, n, r) {
|
|
1298
1298
|
for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
|
|
1299
1299
|
let i = e.filter((e) => !x(e));
|
|
1300
1300
|
return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
|
|
@@ -1304,7 +1304,7 @@ function hn(e, t, n, r) {
|
|
|
1304
1304
|
errors: e.map((e) => e.issues.map((e) => w(e, r, a())))
|
|
1305
1305
|
}), t);
|
|
1306
1306
|
}
|
|
1307
|
-
var
|
|
1307
|
+
var _n = /*@__PURE__*/ t("$ZodUnion", (e, t) => {
|
|
1308
1308
|
A.init(e, t), p(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), p(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), p(e._zod, "values", () => {
|
|
1309
1309
|
if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
|
|
1310
1310
|
}), p(e._zod, "pattern", () => {
|
|
@@ -1328,10 +1328,10 @@ var gn = /*@__PURE__*/ t("$ZodUnion", (e, t) => {
|
|
|
1328
1328
|
o.push(t);
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
|
-
return a ? Promise.all(o).then((t) =>
|
|
1331
|
+
return a ? Promise.all(o).then((t) => gn(t, r, e, i)) : gn(o, r, e, i);
|
|
1332
1332
|
};
|
|
1333
|
-
}),
|
|
1334
|
-
t.inclusive = !1,
|
|
1333
|
+
}), vn = /*@__PURE__*/ t("$ZodDiscriminatedUnion", (e, t) => {
|
|
1334
|
+
t.inclusive = !1, _n.init(e, t);
|
|
1335
1335
|
let n = e._zod.parse;
|
|
1336
1336
|
p(e._zod, "propValues", () => {
|
|
1337
1337
|
let e = {};
|
|
@@ -1377,7 +1377,7 @@ var gn = /*@__PURE__*/ t("$ZodUnion", (e, t) => {
|
|
|
1377
1377
|
inst: e
|
|
1378
1378
|
}), i);
|
|
1379
1379
|
};
|
|
1380
|
-
}),
|
|
1380
|
+
}), yn = /*@__PURE__*/ t("$ZodIntersection", (e, t) => {
|
|
1381
1381
|
A.init(e, t), e._zod.parse = (e, n) => {
|
|
1382
1382
|
let r = e.value, i = t.left._zod.run({
|
|
1383
1383
|
value: r,
|
|
@@ -1386,10 +1386,10 @@ var gn = /*@__PURE__*/ t("$ZodUnion", (e, t) => {
|
|
|
1386
1386
|
value: r,
|
|
1387
1387
|
issues: []
|
|
1388
1388
|
}, n);
|
|
1389
|
-
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) =>
|
|
1389
|
+
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => xn(e, t, n)) : xn(e, i, a);
|
|
1390
1390
|
};
|
|
1391
1391
|
});
|
|
1392
|
-
function
|
|
1392
|
+
function bn(e, t) {
|
|
1393
1393
|
if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
|
|
1394
1394
|
valid: !0,
|
|
1395
1395
|
data: e
|
|
@@ -1400,7 +1400,7 @@ function yn(e, t) {
|
|
|
1400
1400
|
...t
|
|
1401
1401
|
};
|
|
1402
1402
|
for (let n of r) {
|
|
1403
|
-
let r =
|
|
1403
|
+
let r = bn(e[n], t[n]);
|
|
1404
1404
|
if (!r.valid) return {
|
|
1405
1405
|
valid: !1,
|
|
1406
1406
|
mergeErrorPath: [n, ...r.mergeErrorPath]
|
|
@@ -1419,7 +1419,7 @@ function yn(e, t) {
|
|
|
1419
1419
|
};
|
|
1420
1420
|
let n = [];
|
|
1421
1421
|
for (let r = 0; r < e.length; r++) {
|
|
1422
|
-
let i = e[r], a = t[r], o =
|
|
1422
|
+
let i = e[r], a = t[r], o = bn(i, a);
|
|
1423
1423
|
if (!o.valid) return {
|
|
1424
1424
|
valid: !1,
|
|
1425
1425
|
mergeErrorPath: [r, ...o.mergeErrorPath]
|
|
@@ -1436,7 +1436,7 @@ function yn(e, t) {
|
|
|
1436
1436
|
mergeErrorPath: []
|
|
1437
1437
|
};
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function xn(e, t, n) {
|
|
1440
1440
|
let r = /* @__PURE__ */ new Map(), i;
|
|
1441
1441
|
for (let n of t.issues) if (n.code === "unrecognized_keys") {
|
|
1442
1442
|
i ??= n;
|
|
@@ -1449,11 +1449,11 @@ function bn(e, t, n) {
|
|
|
1449
1449
|
...i,
|
|
1450
1450
|
keys: a
|
|
1451
1451
|
}), x(e)) return e;
|
|
1452
|
-
let o =
|
|
1452
|
+
let o = bn(t.value, n.value);
|
|
1453
1453
|
if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
|
|
1454
1454
|
return e.value = o.data, e;
|
|
1455
1455
|
}
|
|
1456
|
-
var
|
|
1456
|
+
var Sn = /*@__PURE__*/ t("$ZodRecord", (e, t) => {
|
|
1457
1457
|
A.init(e, t), e._zod.parse = (n, r) => {
|
|
1458
1458
|
let i = n.value;
|
|
1459
1459
|
if (!_(i)) return n.issues.push({
|
|
@@ -1539,7 +1539,7 @@ var xn = /*@__PURE__*/ t("$ZodRecord", (e, t) => {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
return o.length ? Promise.all(o).then(() => n) : n;
|
|
1541
1541
|
};
|
|
1542
|
-
}),
|
|
1542
|
+
}), Cn = /*@__PURE__*/ t("$ZodEnum", (e, t) => {
|
|
1543
1543
|
A.init(e, t);
|
|
1544
1544
|
let n = o(t.entries), r = new Set(n);
|
|
1545
1545
|
e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => ae.has(typeof e)).map((e) => typeof e == "string" ? v(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
|
|
@@ -1551,7 +1551,7 @@ var xn = /*@__PURE__*/ t("$ZodRecord", (e, t) => {
|
|
|
1551
1551
|
inst: e
|
|
1552
1552
|
}), t;
|
|
1553
1553
|
};
|
|
1554
|
-
}),
|
|
1554
|
+
}), wn = /*@__PURE__*/ t("$ZodLiteral", (e, t) => {
|
|
1555
1555
|
if (A.init(e, t), t.values.length === 0) throw Error("Cannot create literal schema with no valid values");
|
|
1556
1556
|
let n = new Set(t.values);
|
|
1557
1557
|
e._zod.values = n, e._zod.pattern = RegExp(`^(${t.values.map((e) => typeof e == "string" ? v(e) : e ? v(e.toString()) : String(e)).join("|")})$`), e._zod.parse = (r, i) => {
|
|
@@ -1563,7 +1563,7 @@ var xn = /*@__PURE__*/ t("$ZodRecord", (e, t) => {
|
|
|
1563
1563
|
inst: e
|
|
1564
1564
|
}), r;
|
|
1565
1565
|
};
|
|
1566
|
-
}),
|
|
1566
|
+
}), Tn = /*@__PURE__*/ t("$ZodTransform", (e, t) => {
|
|
1567
1567
|
A.init(e, t), e._zod.optin = "optional", e._zod.parse = (i, a) => {
|
|
1568
1568
|
if (a.direction === "backward") throw new r(e.constructor.name);
|
|
1569
1569
|
let o = t.transform(i.value, i);
|
|
@@ -1572,53 +1572,53 @@ var xn = /*@__PURE__*/ t("$ZodRecord", (e, t) => {
|
|
|
1572
1572
|
return i.value = o, i.fallback = !0, i;
|
|
1573
1573
|
};
|
|
1574
1574
|
});
|
|
1575
|
-
function
|
|
1575
|
+
function En(e, t) {
|
|
1576
1576
|
return t === void 0 && (e.issues.length || e.fallback) ? {
|
|
1577
1577
|
issues: [],
|
|
1578
1578
|
value: void 0
|
|
1579
1579
|
} : e;
|
|
1580
1580
|
}
|
|
1581
|
-
var
|
|
1581
|
+
var Dn = /*@__PURE__*/ t("$ZodOptional", (e, t) => {
|
|
1582
1582
|
A.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", p(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), p(e._zod, "pattern", () => {
|
|
1583
1583
|
let e = t.innerType._zod.pattern;
|
|
1584
1584
|
return e ? RegExp(`^(${u(e.source)})?$`) : void 0;
|
|
1585
1585
|
}), e._zod.parse = (e, n) => {
|
|
1586
1586
|
if (t.innerType._zod.optin === "optional") {
|
|
1587
1587
|
let r = e.value, i = t.innerType._zod.run(e, n);
|
|
1588
|
-
return i instanceof Promise ? i.then((e) =>
|
|
1588
|
+
return i instanceof Promise ? i.then((e) => En(e, r)) : En(i, r);
|
|
1589
1589
|
}
|
|
1590
1590
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
1591
1591
|
};
|
|
1592
|
-
}),
|
|
1593
|
-
|
|
1594
|
-
}),
|
|
1592
|
+
}), On = /*@__PURE__*/ t("$ZodExactOptional", (e, t) => {
|
|
1593
|
+
Dn.init(e, t), p(e._zod, "values", () => t.innerType._zod.values), p(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
|
|
1594
|
+
}), kn = /*@__PURE__*/ t("$ZodNullable", (e, t) => {
|
|
1595
1595
|
A.init(e, t), p(e._zod, "optin", () => t.innerType._zod.optin), p(e._zod, "optout", () => t.innerType._zod.optout), p(e._zod, "pattern", () => {
|
|
1596
1596
|
let e = t.innerType._zod.pattern;
|
|
1597
1597
|
return e ? RegExp(`^(${u(e.source)}|null)$`) : void 0;
|
|
1598
1598
|
}), p(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);
|
|
1599
|
-
}),
|
|
1599
|
+
}), An = /*@__PURE__*/ t("$ZodDefault", (e, t) => {
|
|
1600
1600
|
A.init(e, t), e._zod.optin = "optional", p(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1601
1601
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1602
1602
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
1603
1603
|
let r = t.innerType._zod.run(e, n);
|
|
1604
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1604
|
+
return r instanceof Promise ? r.then((e) => jn(e, t)) : jn(r, t);
|
|
1605
1605
|
};
|
|
1606
1606
|
});
|
|
1607
|
-
function
|
|
1607
|
+
function jn(e, t) {
|
|
1608
1608
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1609
1609
|
}
|
|
1610
|
-
var
|
|
1610
|
+
var Mn = /*@__PURE__*/ t("$ZodPrefault", (e, t) => {
|
|
1611
1611
|
A.init(e, t), e._zod.optin = "optional", p(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));
|
|
1612
|
-
}),
|
|
1612
|
+
}), Nn = /*@__PURE__*/ t("$ZodNonOptional", (e, t) => {
|
|
1613
1613
|
A.init(e, t), p(e._zod, "values", () => {
|
|
1614
1614
|
let e = t.innerType._zod.values;
|
|
1615
1615
|
return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
|
|
1616
1616
|
}), e._zod.parse = (n, r) => {
|
|
1617
1617
|
let i = t.innerType._zod.run(n, r);
|
|
1618
|
-
return i instanceof Promise ? i.then((t) =>
|
|
1618
|
+
return i instanceof Promise ? i.then((t) => Pn(t, e)) : Pn(i, e);
|
|
1619
1619
|
};
|
|
1620
1620
|
});
|
|
1621
|
-
function
|
|
1621
|
+
function Pn(e, t) {
|
|
1622
1622
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1623
1623
|
code: "invalid_type",
|
|
1624
1624
|
expected: "nonoptional",
|
|
@@ -1626,7 +1626,7 @@ function Nn(e, t) {
|
|
|
1626
1626
|
inst: t
|
|
1627
1627
|
}), e;
|
|
1628
1628
|
}
|
|
1629
|
-
var
|
|
1629
|
+
var Fn = /*@__PURE__*/ t("$ZodCatch", (e, t) => {
|
|
1630
1630
|
A.init(e, t), e._zod.optin = "optional", p(e._zod, "optout", () => t.innerType._zod.optout), p(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1631
1631
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1632
1632
|
let r = t.innerType._zod.run(e, n);
|
|
@@ -1640,73 +1640,73 @@ var Pn = /*@__PURE__*/ t("$ZodCatch", (e, t) => {
|
|
|
1640
1640
|
input: e.value
|
|
1641
1641
|
}), e.issues = [], e.fallback = !0), e);
|
|
1642
1642
|
};
|
|
1643
|
-
}),
|
|
1643
|
+
}), In = /*@__PURE__*/ t("$ZodPipe", (e, t) => {
|
|
1644
1644
|
A.init(e, t), p(e._zod, "values", () => t.in._zod.values), p(e._zod, "optin", () => t.in._zod.optin), p(e._zod, "optout", () => t.out._zod.optout), p(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
1645
1645
|
if (n.direction === "backward") {
|
|
1646
1646
|
let r = t.out._zod.run(e, n);
|
|
1647
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1647
|
+
return r instanceof Promise ? r.then((e) => N(e, t.in, n)) : N(r, t.in, n);
|
|
1648
1648
|
}
|
|
1649
1649
|
let r = t.in._zod.run(e, n);
|
|
1650
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1650
|
+
return r instanceof Promise ? r.then((e) => N(e, t.out, n)) : N(r, t.out, n);
|
|
1651
1651
|
};
|
|
1652
1652
|
});
|
|
1653
|
-
function
|
|
1653
|
+
function N(e, t, n) {
|
|
1654
1654
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
|
|
1655
1655
|
value: e.value,
|
|
1656
1656
|
issues: e.issues,
|
|
1657
1657
|
fallback: e.fallback
|
|
1658
1658
|
}, n);
|
|
1659
1659
|
}
|
|
1660
|
-
var
|
|
1660
|
+
var Ln = /*@__PURE__*/ t("$ZodCodec", (e, t) => {
|
|
1661
1661
|
A.init(e, t), p(e._zod, "values", () => t.in._zod.values), p(e._zod, "optin", () => t.in._zod.optin), p(e._zod, "optout", () => t.out._zod.optout), p(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
1662
1662
|
if ((n.direction || "forward") === "forward") {
|
|
1663
1663
|
let r = t.in._zod.run(e, n);
|
|
1664
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1664
|
+
return r instanceof Promise ? r.then((e) => P(e, t, n)) : P(r, t, n);
|
|
1665
1665
|
} else {
|
|
1666
1666
|
let r = t.out._zod.run(e, n);
|
|
1667
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1667
|
+
return r instanceof Promise ? r.then((e) => P(e, t, n)) : P(r, t, n);
|
|
1668
1668
|
}
|
|
1669
1669
|
};
|
|
1670
1670
|
});
|
|
1671
|
-
function
|
|
1671
|
+
function P(e, t, n) {
|
|
1672
1672
|
if (e.issues.length) return e.aborted = !0, e;
|
|
1673
1673
|
if ((n.direction || "forward") === "forward") {
|
|
1674
1674
|
let r = t.transform(e.value, e);
|
|
1675
|
-
return r instanceof Promise ? r.then((r) =>
|
|
1675
|
+
return r instanceof Promise ? r.then((r) => F(e, r, t.out, n)) : F(e, r, t.out, n);
|
|
1676
1676
|
} else {
|
|
1677
1677
|
let r = t.reverseTransform(e.value, e);
|
|
1678
|
-
return r instanceof Promise ? r.then((r) =>
|
|
1678
|
+
return r instanceof Promise ? r.then((r) => F(e, r, t.in, n)) : F(e, r, t.in, n);
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function F(e, t, n, r) {
|
|
1682
1682
|
return e.issues.length ? (e.aborted = !0, e) : n._zod.run({
|
|
1683
1683
|
value: t,
|
|
1684
1684
|
issues: e.issues
|
|
1685
1685
|
}, r);
|
|
1686
1686
|
}
|
|
1687
|
-
var
|
|
1687
|
+
var Rn = /*@__PURE__*/ t("$ZodReadonly", (e, t) => {
|
|
1688
1688
|
A.init(e, t), p(e._zod, "propValues", () => t.innerType._zod.propValues), p(e._zod, "values", () => t.innerType._zod.values), p(e._zod, "optin", () => t.innerType?._zod?.optin), p(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
|
|
1689
1689
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1690
1690
|
let r = t.innerType._zod.run(e, n);
|
|
1691
|
-
return r instanceof Promise ? r.then(
|
|
1691
|
+
return r instanceof Promise ? r.then(zn) : zn(r);
|
|
1692
1692
|
};
|
|
1693
1693
|
});
|
|
1694
|
-
function
|
|
1694
|
+
function zn(e) {
|
|
1695
1695
|
return e.value = Object.freeze(e.value), e;
|
|
1696
1696
|
}
|
|
1697
|
-
var
|
|
1697
|
+
var Bn = /*@__PURE__*/ t("$ZodLazy", (e, t) => {
|
|
1698
1698
|
A.init(e, t), p(e._zod, "innerType", () => {
|
|
1699
1699
|
let e = t;
|
|
1700
1700
|
return e._cachedInner ||= t.getter(), e._cachedInner;
|
|
1701
1701
|
}), p(e._zod, "pattern", () => e._zod.innerType?._zod?.pattern), p(e._zod, "propValues", () => e._zod.innerType?._zod?.propValues), p(e._zod, "optin", () => e._zod.innerType?._zod?.optin ?? void 0), p(e._zod, "optout", () => e._zod.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
|
|
1702
|
-
}),
|
|
1702
|
+
}), Vn = /*@__PURE__*/ t("$ZodCustom", (e, t) => {
|
|
1703
1703
|
O.init(e, t), A.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
1704
1704
|
let r = n.value, i = t.fn(r);
|
|
1705
|
-
if (i instanceof Promise) return i.then((t) =>
|
|
1706
|
-
|
|
1705
|
+
if (i instanceof Promise) return i.then((t) => Hn(t, n, r, e));
|
|
1706
|
+
Hn(i, n, r, e);
|
|
1707
1707
|
};
|
|
1708
1708
|
});
|
|
1709
|
-
function
|
|
1709
|
+
function Hn(e, t, n, r) {
|
|
1710
1710
|
if (!e) {
|
|
1711
1711
|
let e = {
|
|
1712
1712
|
code: "custom",
|
|
@@ -1720,7 +1720,7 @@ function Vn(e, t, n, r) {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
//#endregion
|
|
1722
1722
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
1723
|
-
var
|
|
1723
|
+
var Un, Wn = class {
|
|
1724
1724
|
constructor() {
|
|
1725
1725
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1726
1726
|
}
|
|
@@ -1752,22 +1752,22 @@ var Hn, Un = class {
|
|
|
1752
1752
|
return this._map.has(e);
|
|
1753
1753
|
}
|
|
1754
1754
|
};
|
|
1755
|
-
function
|
|
1756
|
-
return new
|
|
1755
|
+
function Gn() {
|
|
1756
|
+
return new Wn();
|
|
1757
1757
|
}
|
|
1758
|
-
(
|
|
1759
|
-
var
|
|
1758
|
+
(Un = globalThis).__zod_globalRegistry ?? (Un.__zod_globalRegistry = Gn());
|
|
1759
|
+
var I = globalThis.__zod_globalRegistry;
|
|
1760
1760
|
//#endregion
|
|
1761
1761
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
1762
1762
|
// @__NO_SIDE_EFFECTS__
|
|
1763
|
-
function
|
|
1763
|
+
function Kn(e, t) {
|
|
1764
1764
|
return new e({
|
|
1765
1765
|
type: "string",
|
|
1766
1766
|
...b(t)
|
|
1767
1767
|
});
|
|
1768
1768
|
}
|
|
1769
1769
|
// @__NO_SIDE_EFFECTS__
|
|
1770
|
-
function
|
|
1770
|
+
function qn(e, t) {
|
|
1771
1771
|
return new e({
|
|
1772
1772
|
type: "string",
|
|
1773
1773
|
format: "email",
|
|
@@ -1777,7 +1777,7 @@ function Kn(e, t) {
|
|
|
1777
1777
|
});
|
|
1778
1778
|
}
|
|
1779
1779
|
// @__NO_SIDE_EFFECTS__
|
|
1780
|
-
function
|
|
1780
|
+
function Jn(e, t) {
|
|
1781
1781
|
return new e({
|
|
1782
1782
|
type: "string",
|
|
1783
1783
|
format: "guid",
|
|
@@ -1787,7 +1787,7 @@ function qn(e, t) {
|
|
|
1787
1787
|
});
|
|
1788
1788
|
}
|
|
1789
1789
|
// @__NO_SIDE_EFFECTS__
|
|
1790
|
-
function
|
|
1790
|
+
function Yn(e, t) {
|
|
1791
1791
|
return new e({
|
|
1792
1792
|
type: "string",
|
|
1793
1793
|
format: "uuid",
|
|
@@ -1797,7 +1797,7 @@ function Jn(e, t) {
|
|
|
1797
1797
|
});
|
|
1798
1798
|
}
|
|
1799
1799
|
// @__NO_SIDE_EFFECTS__
|
|
1800
|
-
function
|
|
1800
|
+
function Xn(e, t) {
|
|
1801
1801
|
return new e({
|
|
1802
1802
|
type: "string",
|
|
1803
1803
|
format: "uuid",
|
|
@@ -1808,7 +1808,7 @@ function Yn(e, t) {
|
|
|
1808
1808
|
});
|
|
1809
1809
|
}
|
|
1810
1810
|
// @__NO_SIDE_EFFECTS__
|
|
1811
|
-
function
|
|
1811
|
+
function Zn(e, t) {
|
|
1812
1812
|
return new e({
|
|
1813
1813
|
type: "string",
|
|
1814
1814
|
format: "uuid",
|
|
@@ -1819,7 +1819,7 @@ function Xn(e, t) {
|
|
|
1819
1819
|
});
|
|
1820
1820
|
}
|
|
1821
1821
|
// @__NO_SIDE_EFFECTS__
|
|
1822
|
-
function
|
|
1822
|
+
function Qn(e, t) {
|
|
1823
1823
|
return new e({
|
|
1824
1824
|
type: "string",
|
|
1825
1825
|
format: "uuid",
|
|
@@ -1830,7 +1830,7 @@ function Zn(e, t) {
|
|
|
1830
1830
|
});
|
|
1831
1831
|
}
|
|
1832
1832
|
// @__NO_SIDE_EFFECTS__
|
|
1833
|
-
function
|
|
1833
|
+
function $n(e, t) {
|
|
1834
1834
|
return new e({
|
|
1835
1835
|
type: "string",
|
|
1836
1836
|
format: "url",
|
|
@@ -1840,7 +1840,7 @@ function Qn(e, t) {
|
|
|
1840
1840
|
});
|
|
1841
1841
|
}
|
|
1842
1842
|
// @__NO_SIDE_EFFECTS__
|
|
1843
|
-
function
|
|
1843
|
+
function er(e, t) {
|
|
1844
1844
|
return new e({
|
|
1845
1845
|
type: "string",
|
|
1846
1846
|
format: "emoji",
|
|
@@ -1850,7 +1850,7 @@ function $n(e, t) {
|
|
|
1850
1850
|
});
|
|
1851
1851
|
}
|
|
1852
1852
|
// @__NO_SIDE_EFFECTS__
|
|
1853
|
-
function
|
|
1853
|
+
function tr(e, t) {
|
|
1854
1854
|
return new e({
|
|
1855
1855
|
type: "string",
|
|
1856
1856
|
format: "nanoid",
|
|
@@ -1860,7 +1860,7 @@ function er(e, t) {
|
|
|
1860
1860
|
});
|
|
1861
1861
|
}
|
|
1862
1862
|
// @__NO_SIDE_EFFECTS__
|
|
1863
|
-
function
|
|
1863
|
+
function nr(e, t) {
|
|
1864
1864
|
return new e({
|
|
1865
1865
|
type: "string",
|
|
1866
1866
|
format: "cuid",
|
|
@@ -1870,7 +1870,7 @@ function tr(e, t) {
|
|
|
1870
1870
|
});
|
|
1871
1871
|
}
|
|
1872
1872
|
// @__NO_SIDE_EFFECTS__
|
|
1873
|
-
function
|
|
1873
|
+
function rr(e, t) {
|
|
1874
1874
|
return new e({
|
|
1875
1875
|
type: "string",
|
|
1876
1876
|
format: "cuid2",
|
|
@@ -1880,7 +1880,7 @@ function nr(e, t) {
|
|
|
1880
1880
|
});
|
|
1881
1881
|
}
|
|
1882
1882
|
// @__NO_SIDE_EFFECTS__
|
|
1883
|
-
function
|
|
1883
|
+
function ir(e, t) {
|
|
1884
1884
|
return new e({
|
|
1885
1885
|
type: "string",
|
|
1886
1886
|
format: "ulid",
|
|
@@ -1890,7 +1890,7 @@ function rr(e, t) {
|
|
|
1890
1890
|
});
|
|
1891
1891
|
}
|
|
1892
1892
|
// @__NO_SIDE_EFFECTS__
|
|
1893
|
-
function
|
|
1893
|
+
function ar(e, t) {
|
|
1894
1894
|
return new e({
|
|
1895
1895
|
type: "string",
|
|
1896
1896
|
format: "xid",
|
|
@@ -1900,7 +1900,7 @@ function ir(e, t) {
|
|
|
1900
1900
|
});
|
|
1901
1901
|
}
|
|
1902
1902
|
// @__NO_SIDE_EFFECTS__
|
|
1903
|
-
function
|
|
1903
|
+
function or(e, t) {
|
|
1904
1904
|
return new e({
|
|
1905
1905
|
type: "string",
|
|
1906
1906
|
format: "ksuid",
|
|
@@ -1910,7 +1910,7 @@ function ar(e, t) {
|
|
|
1910
1910
|
});
|
|
1911
1911
|
}
|
|
1912
1912
|
// @__NO_SIDE_EFFECTS__
|
|
1913
|
-
function
|
|
1913
|
+
function sr(e, t) {
|
|
1914
1914
|
return new e({
|
|
1915
1915
|
type: "string",
|
|
1916
1916
|
format: "ipv4",
|
|
@@ -1920,7 +1920,7 @@ function or(e, t) {
|
|
|
1920
1920
|
});
|
|
1921
1921
|
}
|
|
1922
1922
|
// @__NO_SIDE_EFFECTS__
|
|
1923
|
-
function
|
|
1923
|
+
function cr(e, t) {
|
|
1924
1924
|
return new e({
|
|
1925
1925
|
type: "string",
|
|
1926
1926
|
format: "ipv6",
|
|
@@ -1930,7 +1930,7 @@ function sr(e, t) {
|
|
|
1930
1930
|
});
|
|
1931
1931
|
}
|
|
1932
1932
|
// @__NO_SIDE_EFFECTS__
|
|
1933
|
-
function
|
|
1933
|
+
function lr(e, t) {
|
|
1934
1934
|
return new e({
|
|
1935
1935
|
type: "string",
|
|
1936
1936
|
format: "cidrv4",
|
|
@@ -1940,7 +1940,7 @@ function cr(e, t) {
|
|
|
1940
1940
|
});
|
|
1941
1941
|
}
|
|
1942
1942
|
// @__NO_SIDE_EFFECTS__
|
|
1943
|
-
function
|
|
1943
|
+
function ur(e, t) {
|
|
1944
1944
|
return new e({
|
|
1945
1945
|
type: "string",
|
|
1946
1946
|
format: "cidrv6",
|
|
@@ -1950,7 +1950,7 @@ function lr(e, t) {
|
|
|
1950
1950
|
});
|
|
1951
1951
|
}
|
|
1952
1952
|
// @__NO_SIDE_EFFECTS__
|
|
1953
|
-
function
|
|
1953
|
+
function dr(e, t) {
|
|
1954
1954
|
return new e({
|
|
1955
1955
|
type: "string",
|
|
1956
1956
|
format: "base64",
|
|
@@ -1960,7 +1960,7 @@ function ur(e, t) {
|
|
|
1960
1960
|
});
|
|
1961
1961
|
}
|
|
1962
1962
|
// @__NO_SIDE_EFFECTS__
|
|
1963
|
-
function
|
|
1963
|
+
function fr(e, t) {
|
|
1964
1964
|
return new e({
|
|
1965
1965
|
type: "string",
|
|
1966
1966
|
format: "base64url",
|
|
@@ -1970,7 +1970,7 @@ function dr(e, t) {
|
|
|
1970
1970
|
});
|
|
1971
1971
|
}
|
|
1972
1972
|
// @__NO_SIDE_EFFECTS__
|
|
1973
|
-
function
|
|
1973
|
+
function pr(e, t) {
|
|
1974
1974
|
return new e({
|
|
1975
1975
|
type: "string",
|
|
1976
1976
|
format: "e164",
|
|
@@ -1980,7 +1980,7 @@ function fr(e, t) {
|
|
|
1980
1980
|
});
|
|
1981
1981
|
}
|
|
1982
1982
|
// @__NO_SIDE_EFFECTS__
|
|
1983
|
-
function
|
|
1983
|
+
function mr(e, t) {
|
|
1984
1984
|
return new e({
|
|
1985
1985
|
type: "string",
|
|
1986
1986
|
format: "jwt",
|
|
@@ -1990,7 +1990,7 @@ function pr(e, t) {
|
|
|
1990
1990
|
});
|
|
1991
1991
|
}
|
|
1992
1992
|
// @__NO_SIDE_EFFECTS__
|
|
1993
|
-
function
|
|
1993
|
+
function hr(e, t) {
|
|
1994
1994
|
return new e({
|
|
1995
1995
|
type: "string",
|
|
1996
1996
|
format: "datetime",
|
|
@@ -2002,7 +2002,7 @@ function mr(e, t) {
|
|
|
2002
2002
|
});
|
|
2003
2003
|
}
|
|
2004
2004
|
// @__NO_SIDE_EFFECTS__
|
|
2005
|
-
function
|
|
2005
|
+
function gr(e, t) {
|
|
2006
2006
|
return new e({
|
|
2007
2007
|
type: "string",
|
|
2008
2008
|
format: "date",
|
|
@@ -2011,7 +2011,7 @@ function hr(e, t) {
|
|
|
2011
2011
|
});
|
|
2012
2012
|
}
|
|
2013
2013
|
// @__NO_SIDE_EFFECTS__
|
|
2014
|
-
function
|
|
2014
|
+
function _r(e, t) {
|
|
2015
2015
|
return new e({
|
|
2016
2016
|
type: "string",
|
|
2017
2017
|
format: "time",
|
|
@@ -2021,7 +2021,7 @@ function gr(e, t) {
|
|
|
2021
2021
|
});
|
|
2022
2022
|
}
|
|
2023
2023
|
// @__NO_SIDE_EFFECTS__
|
|
2024
|
-
function
|
|
2024
|
+
function vr(e, t) {
|
|
2025
2025
|
return new e({
|
|
2026
2026
|
type: "string",
|
|
2027
2027
|
format: "duration",
|
|
@@ -2030,7 +2030,7 @@ function _r(e, t) {
|
|
|
2030
2030
|
});
|
|
2031
2031
|
}
|
|
2032
2032
|
// @__NO_SIDE_EFFECTS__
|
|
2033
|
-
function
|
|
2033
|
+
function yr(e, t) {
|
|
2034
2034
|
return new e({
|
|
2035
2035
|
type: "number",
|
|
2036
2036
|
checks: [],
|
|
@@ -2038,7 +2038,7 @@ function vr(e, t) {
|
|
|
2038
2038
|
});
|
|
2039
2039
|
}
|
|
2040
2040
|
// @__NO_SIDE_EFFECTS__
|
|
2041
|
-
function
|
|
2041
|
+
function br(e, t) {
|
|
2042
2042
|
return new e({
|
|
2043
2043
|
type: "number",
|
|
2044
2044
|
check: "number_format",
|
|
@@ -2048,32 +2048,32 @@ function yr(e, t) {
|
|
|
2048
2048
|
});
|
|
2049
2049
|
}
|
|
2050
2050
|
// @__NO_SIDE_EFFECTS__
|
|
2051
|
-
function
|
|
2051
|
+
function xr(e, t) {
|
|
2052
2052
|
return new e({
|
|
2053
2053
|
type: "boolean",
|
|
2054
2054
|
...b(t)
|
|
2055
2055
|
});
|
|
2056
2056
|
}
|
|
2057
2057
|
// @__NO_SIDE_EFFECTS__
|
|
2058
|
-
function
|
|
2058
|
+
function Sr(e, t) {
|
|
2059
2059
|
return new e({
|
|
2060
2060
|
type: "null",
|
|
2061
2061
|
...b(t)
|
|
2062
2062
|
});
|
|
2063
2063
|
}
|
|
2064
2064
|
// @__NO_SIDE_EFFECTS__
|
|
2065
|
-
function
|
|
2065
|
+
function Cr(e) {
|
|
2066
2066
|
return new e({ type: "unknown" });
|
|
2067
2067
|
}
|
|
2068
2068
|
// @__NO_SIDE_EFFECTS__
|
|
2069
|
-
function
|
|
2069
|
+
function wr(e, t) {
|
|
2070
2070
|
return new e({
|
|
2071
2071
|
type: "never",
|
|
2072
2072
|
...b(t)
|
|
2073
2073
|
});
|
|
2074
2074
|
}
|
|
2075
2075
|
// @__NO_SIDE_EFFECTS__
|
|
2076
|
-
function
|
|
2076
|
+
function Tr(e, t) {
|
|
2077
2077
|
return new e({
|
|
2078
2078
|
type: "date",
|
|
2079
2079
|
coerce: !0,
|
|
@@ -2081,7 +2081,7 @@ function wr(e, t) {
|
|
|
2081
2081
|
});
|
|
2082
2082
|
}
|
|
2083
2083
|
// @__NO_SIDE_EFFECTS__
|
|
2084
|
-
function
|
|
2084
|
+
function Er(e, t) {
|
|
2085
2085
|
return new pt({
|
|
2086
2086
|
check: "less_than",
|
|
2087
2087
|
...b(t),
|
|
@@ -2090,7 +2090,7 @@ function Tr(e, t) {
|
|
|
2090
2090
|
});
|
|
2091
2091
|
}
|
|
2092
2092
|
// @__NO_SIDE_EFFECTS__
|
|
2093
|
-
function
|
|
2093
|
+
function L(e, t) {
|
|
2094
2094
|
return new pt({
|
|
2095
2095
|
check: "less_than",
|
|
2096
2096
|
...b(t),
|
|
@@ -2099,7 +2099,7 @@ function R(e, t) {
|
|
|
2099
2099
|
});
|
|
2100
2100
|
}
|
|
2101
2101
|
// @__NO_SIDE_EFFECTS__
|
|
2102
|
-
function
|
|
2102
|
+
function Dr(e, t) {
|
|
2103
2103
|
return new mt({
|
|
2104
2104
|
check: "greater_than",
|
|
2105
2105
|
...b(t),
|
|
@@ -2108,7 +2108,7 @@ function Er(e, t) {
|
|
|
2108
2108
|
});
|
|
2109
2109
|
}
|
|
2110
2110
|
// @__NO_SIDE_EFFECTS__
|
|
2111
|
-
function
|
|
2111
|
+
function R(e, t) {
|
|
2112
2112
|
return new mt({
|
|
2113
2113
|
check: "greater_than",
|
|
2114
2114
|
...b(t),
|
|
@@ -2117,7 +2117,7 @@ function z(e, t) {
|
|
|
2117
2117
|
});
|
|
2118
2118
|
}
|
|
2119
2119
|
// @__NO_SIDE_EFFECTS__
|
|
2120
|
-
function
|
|
2120
|
+
function Or(e, t) {
|
|
2121
2121
|
return new ht({
|
|
2122
2122
|
check: "multiple_of",
|
|
2123
2123
|
...b(t),
|
|
@@ -2125,7 +2125,7 @@ function Dr(e, t) {
|
|
|
2125
2125
|
});
|
|
2126
2126
|
}
|
|
2127
2127
|
// @__NO_SIDE_EFFECTS__
|
|
2128
|
-
function
|
|
2128
|
+
function kr(e, t) {
|
|
2129
2129
|
return new _t({
|
|
2130
2130
|
check: "max_length",
|
|
2131
2131
|
...b(t),
|
|
@@ -2133,7 +2133,7 @@ function Or(e, t) {
|
|
|
2133
2133
|
});
|
|
2134
2134
|
}
|
|
2135
2135
|
// @__NO_SIDE_EFFECTS__
|
|
2136
|
-
function
|
|
2136
|
+
function z(e, t) {
|
|
2137
2137
|
return new vt({
|
|
2138
2138
|
check: "min_length",
|
|
2139
2139
|
...b(t),
|
|
@@ -2141,7 +2141,7 @@ function B(e, t) {
|
|
|
2141
2141
|
});
|
|
2142
2142
|
}
|
|
2143
2143
|
// @__NO_SIDE_EFFECTS__
|
|
2144
|
-
function
|
|
2144
|
+
function Ar(e, t) {
|
|
2145
2145
|
return new yt({
|
|
2146
2146
|
check: "length_equals",
|
|
2147
2147
|
...b(t),
|
|
@@ -2149,7 +2149,7 @@ function kr(e, t) {
|
|
|
2149
2149
|
});
|
|
2150
2150
|
}
|
|
2151
2151
|
// @__NO_SIDE_EFFECTS__
|
|
2152
|
-
function
|
|
2152
|
+
function jr(e, t) {
|
|
2153
2153
|
return new bt({
|
|
2154
2154
|
check: "string_format",
|
|
2155
2155
|
format: "regex",
|
|
@@ -2158,7 +2158,7 @@ function Ar(e, t) {
|
|
|
2158
2158
|
});
|
|
2159
2159
|
}
|
|
2160
2160
|
// @__NO_SIDE_EFFECTS__
|
|
2161
|
-
function
|
|
2161
|
+
function Mr(e) {
|
|
2162
2162
|
return new xt({
|
|
2163
2163
|
check: "string_format",
|
|
2164
2164
|
format: "lowercase",
|
|
@@ -2166,7 +2166,7 @@ function jr(e) {
|
|
|
2166
2166
|
});
|
|
2167
2167
|
}
|
|
2168
2168
|
// @__NO_SIDE_EFFECTS__
|
|
2169
|
-
function
|
|
2169
|
+
function Nr(e) {
|
|
2170
2170
|
return new St({
|
|
2171
2171
|
check: "string_format",
|
|
2172
2172
|
format: "uppercase",
|
|
@@ -2174,7 +2174,7 @@ function Mr(e) {
|
|
|
2174
2174
|
});
|
|
2175
2175
|
}
|
|
2176
2176
|
// @__NO_SIDE_EFFECTS__
|
|
2177
|
-
function
|
|
2177
|
+
function Pr(e, t) {
|
|
2178
2178
|
return new Ct({
|
|
2179
2179
|
check: "string_format",
|
|
2180
2180
|
format: "includes",
|
|
@@ -2183,7 +2183,7 @@ function Nr(e, t) {
|
|
|
2183
2183
|
});
|
|
2184
2184
|
}
|
|
2185
2185
|
// @__NO_SIDE_EFFECTS__
|
|
2186
|
-
function
|
|
2186
|
+
function Fr(e, t) {
|
|
2187
2187
|
return new wt({
|
|
2188
2188
|
check: "string_format",
|
|
2189
2189
|
format: "starts_with",
|
|
@@ -2192,7 +2192,7 @@ function Pr(e, t) {
|
|
|
2192
2192
|
});
|
|
2193
2193
|
}
|
|
2194
2194
|
// @__NO_SIDE_EFFECTS__
|
|
2195
|
-
function
|
|
2195
|
+
function Ir(e, t) {
|
|
2196
2196
|
return new Tt({
|
|
2197
2197
|
check: "string_format",
|
|
2198
2198
|
format: "ends_with",
|
|
@@ -2201,34 +2201,34 @@ function Fr(e, t) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
// @__NO_SIDE_EFFECTS__
|
|
2204
|
-
function
|
|
2204
|
+
function B(e) {
|
|
2205
2205
|
return new Et({
|
|
2206
2206
|
check: "overwrite",
|
|
2207
2207
|
tx: e
|
|
2208
2208
|
});
|
|
2209
2209
|
}
|
|
2210
2210
|
// @__NO_SIDE_EFFECTS__
|
|
2211
|
-
function
|
|
2212
|
-
return /* @__PURE__ */
|
|
2213
|
-
}
|
|
2214
|
-
// @__NO_SIDE_EFFECTS__
|
|
2215
|
-
function Lr() {
|
|
2216
|
-
return /* @__PURE__ */ V((e) => e.trim());
|
|
2211
|
+
function Lr(e) {
|
|
2212
|
+
return /* @__PURE__ */ B((t) => t.normalize(e));
|
|
2217
2213
|
}
|
|
2218
2214
|
// @__NO_SIDE_EFFECTS__
|
|
2219
2215
|
function Rr() {
|
|
2220
|
-
return /* @__PURE__ */
|
|
2216
|
+
return /* @__PURE__ */ B((e) => e.trim());
|
|
2221
2217
|
}
|
|
2222
2218
|
// @__NO_SIDE_EFFECTS__
|
|
2223
2219
|
function zr() {
|
|
2224
|
-
return /* @__PURE__ */
|
|
2220
|
+
return /* @__PURE__ */ B((e) => e.toLowerCase());
|
|
2225
2221
|
}
|
|
2226
2222
|
// @__NO_SIDE_EFFECTS__
|
|
2227
2223
|
function Br() {
|
|
2228
|
-
return /* @__PURE__ */
|
|
2224
|
+
return /* @__PURE__ */ B((e) => e.toUpperCase());
|
|
2229
2225
|
}
|
|
2230
2226
|
// @__NO_SIDE_EFFECTS__
|
|
2231
|
-
function Vr(
|
|
2227
|
+
function Vr() {
|
|
2228
|
+
return /* @__PURE__ */ B((e) => te(e));
|
|
2229
|
+
}
|
|
2230
|
+
// @__NO_SIDE_EFFECTS__
|
|
2231
|
+
function Hr(e, t, n) {
|
|
2232
2232
|
return new e({
|
|
2233
2233
|
type: "array",
|
|
2234
2234
|
element: t,
|
|
@@ -2236,7 +2236,7 @@ function Vr(e, t, n) {
|
|
|
2236
2236
|
});
|
|
2237
2237
|
}
|
|
2238
2238
|
// @__NO_SIDE_EFFECTS__
|
|
2239
|
-
function
|
|
2239
|
+
function Ur(e, t, n) {
|
|
2240
2240
|
let r = b(n);
|
|
2241
2241
|
return r.abort ??= !0, new e({
|
|
2242
2242
|
type: "custom",
|
|
@@ -2246,7 +2246,7 @@ function Hr(e, t, n) {
|
|
|
2246
2246
|
});
|
|
2247
2247
|
}
|
|
2248
2248
|
// @__NO_SIDE_EFFECTS__
|
|
2249
|
-
function
|
|
2249
|
+
function Wr(e, t, n) {
|
|
2250
2250
|
return new e({
|
|
2251
2251
|
type: "custom",
|
|
2252
2252
|
check: "custom",
|
|
@@ -2255,8 +2255,8 @@ function Ur(e, t, n) {
|
|
|
2255
2255
|
});
|
|
2256
2256
|
}
|
|
2257
2257
|
// @__NO_SIDE_EFFECTS__
|
|
2258
|
-
function
|
|
2259
|
-
let n = /* @__PURE__ */
|
|
2258
|
+
function Gr(e, t) {
|
|
2259
|
+
let n = /* @__PURE__ */ Kr((t) => (t.addIssue = (e) => {
|
|
2260
2260
|
if (typeof e == "string") t.issues.push(T(e, t.value, n._zod.def));
|
|
2261
2261
|
else {
|
|
2262
2262
|
let r = e;
|
|
@@ -2266,7 +2266,7 @@ function Wr(e, t) {
|
|
|
2266
2266
|
return n;
|
|
2267
2267
|
}
|
|
2268
2268
|
// @__NO_SIDE_EFFECTS__
|
|
2269
|
-
function
|
|
2269
|
+
function Kr(e, t) {
|
|
2270
2270
|
let n = new O({
|
|
2271
2271
|
check: "custom",
|
|
2272
2272
|
...b(t)
|
|
@@ -2275,11 +2275,11 @@ function Gr(e, t) {
|
|
|
2275
2275
|
}
|
|
2276
2276
|
//#endregion
|
|
2277
2277
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
2278
|
-
function
|
|
2278
|
+
function V(e) {
|
|
2279
2279
|
let t = e?.target ?? "draft-2020-12";
|
|
2280
2280
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
2281
2281
|
processors: e.processors ?? {},
|
|
2282
|
-
metadataRegistry: e?.metadata ??
|
|
2282
|
+
metadataRegistry: e?.metadata ?? I,
|
|
2283
2283
|
target: t,
|
|
2284
2284
|
unrepresentable: e?.unrepresentable ?? "throw",
|
|
2285
2285
|
override: e?.override ?? (() => {}),
|
|
@@ -2291,7 +2291,7 @@ function H(e) {
|
|
|
2291
2291
|
external: e?.external ?? void 0
|
|
2292
2292
|
};
|
|
2293
2293
|
}
|
|
2294
|
-
function
|
|
2294
|
+
function H(e, t, n = {
|
|
2295
2295
|
path: [],
|
|
2296
2296
|
schemaPath: []
|
|
2297
2297
|
}) {
|
|
@@ -2320,12 +2320,12 @@ function U(e, t, n = {
|
|
|
2320
2320
|
a(e, t, n, r);
|
|
2321
2321
|
}
|
|
2322
2322
|
let a = e._zod.parent;
|
|
2323
|
-
a && (o.ref ||= a,
|
|
2323
|
+
a && (o.ref ||= a, H(a, t, r), t.seen.get(a).isParent = !0);
|
|
2324
2324
|
}
|
|
2325
2325
|
let c = t.metadataRegistry.get(e);
|
|
2326
|
-
return c && Object.assign(o.schema, c), t.io === "input" &&
|
|
2326
|
+
return c && Object.assign(o.schema, c), t.io === "input" && G(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;
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2328
|
+
function U(e, t) {
|
|
2329
2329
|
let n = e.seen.get(t);
|
|
2330
2330
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
2331
2331
|
let r = /* @__PURE__ */ new Map();
|
|
@@ -2395,7 +2395,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
2395
2395
|
}
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2398
|
+
function W(e, t) {
|
|
2399
2399
|
let n = e.seen.get(t);
|
|
2400
2400
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
2401
2401
|
let r = (t) => {
|
|
@@ -2442,8 +2442,8 @@ function G(e, t) {
|
|
|
2442
2442
|
value: {
|
|
2443
2443
|
...t["~standard"],
|
|
2444
2444
|
jsonSchema: {
|
|
2445
|
-
input:
|
|
2446
|
-
output:
|
|
2445
|
+
input: K(t, "input", e.processors),
|
|
2446
|
+
output: K(t, "output", e.processors)
|
|
2447
2447
|
}
|
|
2448
2448
|
},
|
|
2449
2449
|
enumerable: !1,
|
|
@@ -2453,89 +2453,89 @@ function G(e, t) {
|
|
|
2453
2453
|
throw Error("Error converting schema to JSON.");
|
|
2454
2454
|
}
|
|
2455
2455
|
}
|
|
2456
|
-
function
|
|
2456
|
+
function G(e, t) {
|
|
2457
2457
|
let n = t ?? { seen: /* @__PURE__ */ new Set() };
|
|
2458
2458
|
if (n.seen.has(e)) return !1;
|
|
2459
2459
|
n.seen.add(e);
|
|
2460
2460
|
let r = e._zod.def;
|
|
2461
2461
|
if (r.type === "transform") return !0;
|
|
2462
|
-
if (r.type === "array") return
|
|
2463
|
-
if (r.type === "set") return
|
|
2464
|
-
if (r.type === "lazy") return
|
|
2465
|
-
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return
|
|
2466
|
-
if (r.type === "intersection") return
|
|
2467
|
-
if (r.type === "record" || r.type === "map") return
|
|
2468
|
-
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 :
|
|
2462
|
+
if (r.type === "array") return G(r.element, n);
|
|
2463
|
+
if (r.type === "set") return G(r.valueType, n);
|
|
2464
|
+
if (r.type === "lazy") return G(r.getter(), n);
|
|
2465
|
+
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return G(r.innerType, n);
|
|
2466
|
+
if (r.type === "intersection") return G(r.left, n) || G(r.right, n);
|
|
2467
|
+
if (r.type === "record" || r.type === "map") return G(r.keyType, n) || G(r.valueType, n);
|
|
2468
|
+
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : G(r.in, n) || G(r.out, n);
|
|
2469
2469
|
if (r.type === "object") {
|
|
2470
|
-
for (let e in r.shape) if (
|
|
2470
|
+
for (let e in r.shape) if (G(r.shape[e], n)) return !0;
|
|
2471
2471
|
return !1;
|
|
2472
2472
|
}
|
|
2473
2473
|
if (r.type === "union") {
|
|
2474
|
-
for (let e of r.options) if (
|
|
2474
|
+
for (let e of r.options) if (G(e, n)) return !0;
|
|
2475
2475
|
return !1;
|
|
2476
2476
|
}
|
|
2477
2477
|
if (r.type === "tuple") {
|
|
2478
|
-
for (let e of r.items) if (
|
|
2479
|
-
return !!(r.rest &&
|
|
2478
|
+
for (let e of r.items) if (G(e, n)) return !0;
|
|
2479
|
+
return !!(r.rest && G(r.rest, n));
|
|
2480
2480
|
}
|
|
2481
2481
|
return !1;
|
|
2482
2482
|
}
|
|
2483
|
-
var
|
|
2484
|
-
let r =
|
|
2483
|
+
var qr = (e, t = {}) => (n) => {
|
|
2484
|
+
let r = V({
|
|
2485
2485
|
...n,
|
|
2486
2486
|
processors: t
|
|
2487
2487
|
});
|
|
2488
|
-
return
|
|
2489
|
-
},
|
|
2490
|
-
let { libraryOptions: i, target: a } = r ?? {}, o =
|
|
2488
|
+
return H(e, r), U(r, e), W(r, e);
|
|
2489
|
+
}, K = (e, t, n = {}) => (r) => {
|
|
2490
|
+
let { libraryOptions: i, target: a } = r ?? {}, o = V({
|
|
2491
2491
|
...i ?? {},
|
|
2492
2492
|
target: a,
|
|
2493
2493
|
io: t,
|
|
2494
2494
|
processors: n
|
|
2495
2495
|
});
|
|
2496
|
-
return
|
|
2497
|
-
},
|
|
2496
|
+
return H(e, o), U(o, e), W(o, e);
|
|
2497
|
+
}, Jr = {
|
|
2498
2498
|
guid: "uuid",
|
|
2499
2499
|
url: "uri",
|
|
2500
2500
|
datetime: "date-time",
|
|
2501
2501
|
json_string: "json-string",
|
|
2502
2502
|
regex: ""
|
|
2503
|
-
},
|
|
2503
|
+
}, Yr = (e, t, n, r) => {
|
|
2504
2504
|
let i = n;
|
|
2505
2505
|
i.type = "string";
|
|
2506
2506
|
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
|
|
2507
|
-
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format =
|
|
2507
|
+
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Jr[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
|
|
2508
2508
|
let e = [...c];
|
|
2509
2509
|
e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
|
|
2510
2510
|
...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
|
|
2511
2511
|
pattern: e.source
|
|
2512
2512
|
}))]);
|
|
2513
2513
|
}
|
|
2514
|
-
},
|
|
2514
|
+
}, Xr = (e, t, n, r) => {
|
|
2515
2515
|
let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
|
|
2516
2516
|
typeof s == "string" && s.includes("int") ? i.type = "integer" : i.type = "number";
|
|
2517
2517
|
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";
|
|
2518
2518
|
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);
|
|
2519
|
-
}, Xr = (e, t, n, r) => {
|
|
2520
|
-
n.type = "boolean";
|
|
2521
2519
|
}, Zr = (e, t, n, r) => {
|
|
2522
|
-
|
|
2520
|
+
n.type = "boolean";
|
|
2523
2521
|
}, Qr = (e, t, n, r) => {
|
|
2524
|
-
if (t.unrepresentable === "throw") throw Error("
|
|
2522
|
+
if (t.unrepresentable === "throw") throw Error("BigInt cannot be represented in JSON Schema");
|
|
2525
2523
|
}, $r = (e, t, n, r) => {
|
|
2526
|
-
t.
|
|
2524
|
+
if (t.unrepresentable === "throw") throw Error("Symbols cannot be represented in JSON Schema");
|
|
2527
2525
|
}, ei = (e, t, n, r) => {
|
|
2528
|
-
|
|
2526
|
+
t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
|
|
2529
2527
|
}, ti = (e, t, n, r) => {
|
|
2530
|
-
if (t.unrepresentable === "throw") throw Error("
|
|
2528
|
+
if (t.unrepresentable === "throw") throw Error("Undefined cannot be represented in JSON Schema");
|
|
2531
2529
|
}, ni = (e, t, n, r) => {
|
|
2530
|
+
if (t.unrepresentable === "throw") throw Error("Void cannot be represented in JSON Schema");
|
|
2531
|
+
}, ri = (e, t, n, r) => {
|
|
2532
2532
|
n.not = {};
|
|
2533
|
-
},
|
|
2533
|
+
}, ii = (e, t, n, r) => {}, ai = (e, t, n, r) => {}, oi = (e, t, n, r) => {
|
|
2534
2534
|
if (t.unrepresentable === "throw") throw Error("Date cannot be represented in JSON Schema");
|
|
2535
|
-
},
|
|
2535
|
+
}, si = (e, t, n, r) => {
|
|
2536
2536
|
let i = e._zod.def, a = o(i.entries);
|
|
2537
2537
|
a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
|
|
2538
|
-
},
|
|
2538
|
+
}, ci = (e, t, n, r) => {
|
|
2539
2539
|
let i = e._zod.def, a = [];
|
|
2540
2540
|
for (let e of i.values) if (e === void 0) {
|
|
2541
2541
|
if (t.unrepresentable === "throw") throw Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
@@ -2547,42 +2547,42 @@ var Kr = (e, t = {}) => (n) => {
|
|
|
2547
2547
|
let e = a[0];
|
|
2548
2548
|
n.type = e === null ? "null" : typeof e, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [e] : n.const = e;
|
|
2549
2549
|
} else a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), a.every((e) => typeof e == "boolean") && (n.type = "boolean"), a.every((e) => e === null) && (n.type = "null"), n.enum = a;
|
|
2550
|
-
}, ci = (e, t, n, r) => {
|
|
2551
|
-
if (t.unrepresentable === "throw") throw Error("NaN cannot be represented in JSON Schema");
|
|
2552
2550
|
}, li = (e, t, n, r) => {
|
|
2551
|
+
if (t.unrepresentable === "throw") throw Error("NaN cannot be represented in JSON Schema");
|
|
2552
|
+
}, ui = (e, t, n, r) => {
|
|
2553
2553
|
let i = n, a = e._zod.pattern;
|
|
2554
2554
|
if (!a) throw Error("Pattern not found in template literal");
|
|
2555
2555
|
i.type = "string", i.pattern = a.source;
|
|
2556
|
-
},
|
|
2556
|
+
}, di = (e, t, n, r) => {
|
|
2557
2557
|
let i = n, a = {
|
|
2558
2558
|
type: "string",
|
|
2559
2559
|
format: "binary",
|
|
2560
2560
|
contentEncoding: "binary"
|
|
2561
2561
|
}, { minimum: o, maximum: s, mime: c } = e._zod.bag;
|
|
2562
2562
|
o !== void 0 && (a.minLength = o), s !== void 0 && (a.maxLength = s), c ? c.length === 1 ? (a.contentMediaType = c[0], Object.assign(i, a)) : (Object.assign(i, a), i.anyOf = c.map((e) => ({ contentMediaType: e }))) : Object.assign(i, a);
|
|
2563
|
-
}, di = (e, t, n, r) => {
|
|
2564
|
-
n.type = "boolean";
|
|
2565
2563
|
}, fi = (e, t, n, r) => {
|
|
2566
|
-
|
|
2564
|
+
n.type = "boolean";
|
|
2567
2565
|
}, pi = (e, t, n, r) => {
|
|
2568
|
-
if (t.unrepresentable === "throw") throw Error("
|
|
2566
|
+
if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
|
|
2569
2567
|
}, mi = (e, t, n, r) => {
|
|
2570
|
-
if (t.unrepresentable === "throw") throw Error("
|
|
2568
|
+
if (t.unrepresentable === "throw") throw Error("Function types cannot be represented in JSON Schema");
|
|
2571
2569
|
}, hi = (e, t, n, r) => {
|
|
2572
|
-
if (t.unrepresentable === "throw") throw Error("
|
|
2570
|
+
if (t.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
|
|
2573
2571
|
}, gi = (e, t, n, r) => {
|
|
2574
|
-
if (t.unrepresentable === "throw") throw Error("
|
|
2572
|
+
if (t.unrepresentable === "throw") throw Error("Map cannot be represented in JSON Schema");
|
|
2575
2573
|
}, _i = (e, t, n, r) => {
|
|
2574
|
+
if (t.unrepresentable === "throw") throw Error("Set cannot be represented in JSON Schema");
|
|
2575
|
+
}, vi = (e, t, n, r) => {
|
|
2576
2576
|
let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
|
|
2577
|
-
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items =
|
|
2577
|
+
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = H(a.element, t, {
|
|
2578
2578
|
...r,
|
|
2579
2579
|
path: [...r.path, "items"]
|
|
2580
2580
|
});
|
|
2581
|
-
},
|
|
2581
|
+
}, yi = (e, t, n, r) => {
|
|
2582
2582
|
let i = n, a = e._zod.def;
|
|
2583
2583
|
i.type = "object", i.properties = {};
|
|
2584
2584
|
let o = a.shape;
|
|
2585
|
-
for (let e in o) i.properties[e] =
|
|
2585
|
+
for (let e in o) i.properties[e] = H(o[e], t, {
|
|
2586
2586
|
...r,
|
|
2587
2587
|
path: [
|
|
2588
2588
|
...r.path,
|
|
@@ -2594,12 +2594,12 @@ var Kr = (e, t = {}) => (n) => {
|
|
|
2594
2594
|
let n = a.shape[e]._zod;
|
|
2595
2595
|
return t.io === "input" ? n.optin === void 0 : n.optout === void 0;
|
|
2596
2596
|
}));
|
|
2597
|
-
c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties =
|
|
2597
|
+
c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = H(a.catchall, t, {
|
|
2598
2598
|
...r,
|
|
2599
2599
|
path: [...r.path, "additionalProperties"]
|
|
2600
2600
|
})) : t.io === "output" && (i.additionalProperties = !1);
|
|
2601
|
-
},
|
|
2602
|
-
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) =>
|
|
2601
|
+
}, bi = (e, t, n, r) => {
|
|
2602
|
+
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => H(e, t, {
|
|
2603
2603
|
...r,
|
|
2604
2604
|
path: [
|
|
2605
2605
|
...r.path,
|
|
@@ -2608,15 +2608,15 @@ var Kr = (e, t = {}) => (n) => {
|
|
|
2608
2608
|
]
|
|
2609
2609
|
}));
|
|
2610
2610
|
a ? n.oneOf = o : n.anyOf = o;
|
|
2611
|
-
},
|
|
2612
|
-
let i = e._zod.def, a =
|
|
2611
|
+
}, xi = (e, t, n, r) => {
|
|
2612
|
+
let i = e._zod.def, a = H(i.left, t, {
|
|
2613
2613
|
...r,
|
|
2614
2614
|
path: [
|
|
2615
2615
|
...r.path,
|
|
2616
2616
|
"allOf",
|
|
2617
2617
|
0
|
|
2618
2618
|
]
|
|
2619
|
-
}), o =
|
|
2619
|
+
}), o = H(i.right, t, {
|
|
2620
2620
|
...r,
|
|
2621
2621
|
path: [
|
|
2622
2622
|
...r.path,
|
|
@@ -2625,17 +2625,17 @@ var Kr = (e, t = {}) => (n) => {
|
|
|
2625
2625
|
]
|
|
2626
2626
|
}), s = (e) => "allOf" in e && Object.keys(e).length === 1;
|
|
2627
2627
|
n.allOf = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
|
|
2628
|
-
},
|
|
2628
|
+
}, Si = (e, t, n, r) => {
|
|
2629
2629
|
let i = n, a = e._zod.def;
|
|
2630
2630
|
i.type = "array";
|
|
2631
|
-
let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) =>
|
|
2631
|
+
let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) => H(e, t, {
|
|
2632
2632
|
...r,
|
|
2633
2633
|
path: [
|
|
2634
2634
|
...r.path,
|
|
2635
2635
|
o,
|
|
2636
2636
|
n
|
|
2637
2637
|
]
|
|
2638
|
-
})), l = a.rest ?
|
|
2638
|
+
})), l = a.rest ? H(a.rest, t, {
|
|
2639
2639
|
...r,
|
|
2640
2640
|
path: [
|
|
2641
2641
|
...r.path,
|
|
@@ -2646,12 +2646,12 @@ var Kr = (e, t = {}) => (n) => {
|
|
|
2646
2646
|
t.target === "draft-2020-12" ? (i.prefixItems = c, l && (i.items = l)) : t.target === "openapi-3.0" ? (i.items = { anyOf: c }, l && i.items.anyOf.push(l), i.minItems = c.length, l || (i.maxItems = c.length)) : (i.items = c, l && (i.additionalItems = l));
|
|
2647
2647
|
let { minimum: u, maximum: d } = e._zod.bag;
|
|
2648
2648
|
typeof u == "number" && (i.minItems = u), typeof d == "number" && (i.maxItems = d);
|
|
2649
|
-
},
|
|
2649
|
+
}, Ci = (e, t, n, r) => {
|
|
2650
2650
|
let i = n, a = e._zod.def;
|
|
2651
2651
|
i.type = "object";
|
|
2652
2652
|
let o = a.keyType, s = o._zod.bag?.patterns;
|
|
2653
2653
|
if (a.mode === "loose" && s && s.size > 0) {
|
|
2654
|
-
let e =
|
|
2654
|
+
let e = H(a.valueType, t, {
|
|
2655
2655
|
...r,
|
|
2656
2656
|
path: [
|
|
2657
2657
|
...r.path,
|
|
@@ -2661,10 +2661,10 @@ var Kr = (e, t = {}) => (n) => {
|
|
|
2661
2661
|
});
|
|
2662
2662
|
i.patternProperties = {};
|
|
2663
2663
|
for (let t of s) i.patternProperties[t.source] = e;
|
|
2664
|
-
} else (t.target === "draft-07" || t.target === "draft-2020-12") && (i.propertyNames =
|
|
2664
|
+
} else (t.target === "draft-07" || t.target === "draft-2020-12") && (i.propertyNames = H(a.keyType, t, {
|
|
2665
2665
|
...r,
|
|
2666
2666
|
path: [...r.path, "propertyNames"]
|
|
2667
|
-
})), i.additionalProperties =
|
|
2667
|
+
})), i.additionalProperties = H(a.valueType, t, {
|
|
2668
2668
|
...r,
|
|
2669
2669
|
path: [...r.path, "additionalProperties"]
|
|
2670
2670
|
});
|
|
@@ -2673,27 +2673,27 @@ var Kr = (e, t = {}) => (n) => {
|
|
|
2673
2673
|
let e = [...c].filter((e) => typeof e == "string" || typeof e == "number");
|
|
2674
2674
|
e.length > 0 && (i.required = e);
|
|
2675
2675
|
}
|
|
2676
|
-
}, Ci = (e, t, n, r) => {
|
|
2677
|
-
let i = e._zod.def, a = U(i.innerType, t, r), o = t.seen.get(e);
|
|
2678
|
-
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
2679
2676
|
}, wi = (e, t, n, r) => {
|
|
2677
|
+
let i = e._zod.def, a = H(i.innerType, t, r), o = t.seen.get(e);
|
|
2678
|
+
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
2679
|
+
}, Ti = (e, t, n, r) => {
|
|
2680
2680
|
let i = e._zod.def;
|
|
2681
|
-
|
|
2681
|
+
H(i.innerType, t, r);
|
|
2682
2682
|
let a = t.seen.get(e);
|
|
2683
2683
|
a.ref = i.innerType;
|
|
2684
|
-
},
|
|
2684
|
+
}, Ei = (e, t, n, r) => {
|
|
2685
2685
|
let i = e._zod.def;
|
|
2686
|
-
|
|
2686
|
+
H(i.innerType, t, r);
|
|
2687
2687
|
let a = t.seen.get(e);
|
|
2688
2688
|
a.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
|
|
2689
|
-
},
|
|
2689
|
+
}, Di = (e, t, n, r) => {
|
|
2690
2690
|
let i = e._zod.def;
|
|
2691
|
-
|
|
2691
|
+
H(i.innerType, t, r);
|
|
2692
2692
|
let a = t.seen.get(e);
|
|
2693
2693
|
a.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
|
|
2694
|
-
},
|
|
2694
|
+
}, Oi = (e, t, n, r) => {
|
|
2695
2695
|
let i = e._zod.def;
|
|
2696
|
-
|
|
2696
|
+
H(i.innerType, t, r);
|
|
2697
2697
|
let a = t.seen.get(e);
|
|
2698
2698
|
a.ref = i.innerType;
|
|
2699
2699
|
let o;
|
|
@@ -2703,81 +2703,81 @@ var Kr = (e, t = {}) => (n) => {
|
|
|
2703
2703
|
throw Error("Dynamic catch values are not supported in JSON Schema");
|
|
2704
2704
|
}
|
|
2705
2705
|
n.default = o;
|
|
2706
|
-
},
|
|
2706
|
+
}, ki = (e, t, n, r) => {
|
|
2707
2707
|
let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
|
|
2708
|
-
|
|
2708
|
+
H(o, t, r);
|
|
2709
2709
|
let s = t.seen.get(e);
|
|
2710
2710
|
s.ref = o;
|
|
2711
|
-
},
|
|
2711
|
+
}, Ai = (e, t, n, r) => {
|
|
2712
2712
|
let i = e._zod.def;
|
|
2713
|
-
|
|
2713
|
+
H(i.innerType, t, r);
|
|
2714
2714
|
let a = t.seen.get(e);
|
|
2715
2715
|
a.ref = i.innerType, n.readOnly = !0;
|
|
2716
|
-
},
|
|
2716
|
+
}, ji = (e, t, n, r) => {
|
|
2717
2717
|
let i = e._zod.def;
|
|
2718
|
-
|
|
2718
|
+
H(i.innerType, t, r);
|
|
2719
2719
|
let a = t.seen.get(e);
|
|
2720
2720
|
a.ref = i.innerType;
|
|
2721
|
-
},
|
|
2721
|
+
}, Mi = (e, t, n, r) => {
|
|
2722
2722
|
let i = e._zod.def;
|
|
2723
|
-
|
|
2723
|
+
H(i.innerType, t, r);
|
|
2724
2724
|
let a = t.seen.get(e);
|
|
2725
2725
|
a.ref = i.innerType;
|
|
2726
|
-
},
|
|
2726
|
+
}, Ni = (e, t, n, r) => {
|
|
2727
2727
|
let i = e._zod.innerType;
|
|
2728
|
-
|
|
2728
|
+
H(i, t, r);
|
|
2729
2729
|
let a = t.seen.get(e);
|
|
2730
2730
|
a.ref = i;
|
|
2731
|
-
},
|
|
2732
|
-
string:
|
|
2733
|
-
number:
|
|
2734
|
-
boolean:
|
|
2735
|
-
bigint:
|
|
2736
|
-
symbol:
|
|
2737
|
-
null:
|
|
2738
|
-
undefined:
|
|
2739
|
-
void:
|
|
2740
|
-
never:
|
|
2741
|
-
any:
|
|
2742
|
-
unknown:
|
|
2743
|
-
date:
|
|
2744
|
-
enum:
|
|
2745
|
-
literal:
|
|
2746
|
-
nan:
|
|
2747
|
-
template_literal:
|
|
2748
|
-
file:
|
|
2749
|
-
success:
|
|
2750
|
-
custom:
|
|
2751
|
-
function:
|
|
2752
|
-
transform:
|
|
2753
|
-
map:
|
|
2754
|
-
set:
|
|
2755
|
-
array:
|
|
2756
|
-
object:
|
|
2757
|
-
union:
|
|
2758
|
-
intersection:
|
|
2759
|
-
tuple:
|
|
2760
|
-
record:
|
|
2761
|
-
nullable:
|
|
2762
|
-
nonoptional:
|
|
2763
|
-
default:
|
|
2764
|
-
prefault:
|
|
2765
|
-
catch:
|
|
2766
|
-
pipe:
|
|
2767
|
-
readonly:
|
|
2768
|
-
promise:
|
|
2769
|
-
optional:
|
|
2770
|
-
lazy:
|
|
2731
|
+
}, Pi = {
|
|
2732
|
+
string: Yr,
|
|
2733
|
+
number: Xr,
|
|
2734
|
+
boolean: Zr,
|
|
2735
|
+
bigint: Qr,
|
|
2736
|
+
symbol: $r,
|
|
2737
|
+
null: ei,
|
|
2738
|
+
undefined: ti,
|
|
2739
|
+
void: ni,
|
|
2740
|
+
never: ri,
|
|
2741
|
+
any: ii,
|
|
2742
|
+
unknown: ai,
|
|
2743
|
+
date: oi,
|
|
2744
|
+
enum: si,
|
|
2745
|
+
literal: ci,
|
|
2746
|
+
nan: li,
|
|
2747
|
+
template_literal: ui,
|
|
2748
|
+
file: di,
|
|
2749
|
+
success: fi,
|
|
2750
|
+
custom: pi,
|
|
2751
|
+
function: mi,
|
|
2752
|
+
transform: hi,
|
|
2753
|
+
map: gi,
|
|
2754
|
+
set: _i,
|
|
2755
|
+
array: vi,
|
|
2756
|
+
object: yi,
|
|
2757
|
+
union: bi,
|
|
2758
|
+
intersection: xi,
|
|
2759
|
+
tuple: Si,
|
|
2760
|
+
record: Ci,
|
|
2761
|
+
nullable: wi,
|
|
2762
|
+
nonoptional: Ti,
|
|
2763
|
+
default: Ei,
|
|
2764
|
+
prefault: Di,
|
|
2765
|
+
catch: Oi,
|
|
2766
|
+
pipe: ki,
|
|
2767
|
+
readonly: Ai,
|
|
2768
|
+
promise: ji,
|
|
2769
|
+
optional: Mi,
|
|
2770
|
+
lazy: Ni
|
|
2771
2771
|
};
|
|
2772
|
-
function
|
|
2772
|
+
function Fi(e, t) {
|
|
2773
2773
|
if ("_idmap" in e) {
|
|
2774
|
-
let n = e, r =
|
|
2774
|
+
let n = e, r = V({
|
|
2775
2775
|
...t,
|
|
2776
|
-
processors:
|
|
2776
|
+
processors: Pi
|
|
2777
2777
|
}), i = {};
|
|
2778
2778
|
for (let e of n._idmap.entries()) {
|
|
2779
2779
|
let [t, n] = e;
|
|
2780
|
-
|
|
2780
|
+
H(n, r);
|
|
2781
2781
|
}
|
|
2782
2782
|
let a = {};
|
|
2783
2783
|
r.external = {
|
|
@@ -2787,43 +2787,43 @@ function Pi(e, t) {
|
|
|
2787
2787
|
};
|
|
2788
2788
|
for (let e of n._idmap.entries()) {
|
|
2789
2789
|
let [t, n] = e;
|
|
2790
|
-
|
|
2790
|
+
U(r, n), a[t] = W(r, n);
|
|
2791
2791
|
}
|
|
2792
2792
|
return Object.keys(i).length > 0 && (a.__shared = { [r.target === "draft-2020-12" ? "$defs" : "definitions"]: i }), { schemas: a };
|
|
2793
2793
|
}
|
|
2794
|
-
let n =
|
|
2794
|
+
let n = V({
|
|
2795
2795
|
...t,
|
|
2796
|
-
processors:
|
|
2796
|
+
processors: Pi
|
|
2797
2797
|
});
|
|
2798
|
-
return
|
|
2798
|
+
return H(e, n), U(n, e), W(n, e);
|
|
2799
2799
|
}
|
|
2800
2800
|
//#endregion
|
|
2801
2801
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
2802
|
-
var
|
|
2803
|
-
|
|
2802
|
+
var Ii = /*@__PURE__*/ t("ZodISODateTime", (e, t) => {
|
|
2803
|
+
Vt.init(e, t), X.init(e, t);
|
|
2804
2804
|
});
|
|
2805
|
-
function
|
|
2806
|
-
return /* @__PURE__ */
|
|
2805
|
+
function Li(e) {
|
|
2806
|
+
return /* @__PURE__ */ hr(Ii, e);
|
|
2807
2807
|
}
|
|
2808
|
-
var
|
|
2809
|
-
|
|
2808
|
+
var Ri = /*@__PURE__*/ t("ZodISODate", (e, t) => {
|
|
2809
|
+
Ht.init(e, t), X.init(e, t);
|
|
2810
2810
|
});
|
|
2811
|
-
function
|
|
2812
|
-
return /* @__PURE__ */
|
|
2811
|
+
function zi(e) {
|
|
2812
|
+
return /* @__PURE__ */ gr(Ri, e);
|
|
2813
2813
|
}
|
|
2814
|
-
var
|
|
2815
|
-
|
|
2814
|
+
var Bi = /*@__PURE__*/ t("ZodISOTime", (e, t) => {
|
|
2815
|
+
Ut.init(e, t), X.init(e, t);
|
|
2816
2816
|
});
|
|
2817
|
-
function
|
|
2818
|
-
return /* @__PURE__ */
|
|
2817
|
+
function Vi(e) {
|
|
2818
|
+
return /* @__PURE__ */ _r(Bi, e);
|
|
2819
2819
|
}
|
|
2820
|
-
var
|
|
2821
|
-
|
|
2820
|
+
var Hi = /*@__PURE__*/ t("ZodISODuration", (e, t) => {
|
|
2821
|
+
Wt.init(e, t), X.init(e, t);
|
|
2822
2822
|
});
|
|
2823
|
-
function
|
|
2824
|
-
return /* @__PURE__ */
|
|
2823
|
+
function Ui(e) {
|
|
2824
|
+
return /* @__PURE__ */ vr(Hi, e);
|
|
2825
2825
|
}
|
|
2826
|
-
var
|
|
2826
|
+
var q = /*@__PURE__*/ t("ZodError", (e, t) => {
|
|
2827
2827
|
ve.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
2828
2828
|
format: { value: (t) => xe(e, t) },
|
|
2829
2829
|
flatten: { value: (t) => be(e, t) },
|
|
@@ -2837,10 +2837,10 @@ var J = /*@__PURE__*/ t("ZodError", (e, t) => {
|
|
|
2837
2837
|
return e.issues.length === 0;
|
|
2838
2838
|
} }
|
|
2839
2839
|
});
|
|
2840
|
-
}, { Parent: Error }),
|
|
2841
|
-
function
|
|
2842
|
-
let r = Object.getPrototypeOf(e), i =
|
|
2843
|
-
if (i || (i = /* @__PURE__ */ new Set(),
|
|
2840
|
+
}, { Parent: Error }), Wi = /* @__PURE__ */ Se(q), Gi = /* @__PURE__ */ Ce(q), Ki = /* @__PURE__ */ E(q), qi = /* @__PURE__ */ D(q), Ji = /* @__PURE__ */ Ee(q), Yi = /* @__PURE__ */ De(q), Xi = /* @__PURE__ */ Oe(q), Zi = /* @__PURE__ */ ke(q), Qi = /* @__PURE__ */ Ae(q), $i = /* @__PURE__ */ je(q), ea = /* @__PURE__ */ Me(q), ta = /* @__PURE__ */ Ne(q), na = /* @__PURE__ */ new WeakMap();
|
|
2841
|
+
function J(e, t, n) {
|
|
2842
|
+
let r = Object.getPrototypeOf(e), i = na.get(r);
|
|
2843
|
+
if (i || (i = /* @__PURE__ */ new Set(), na.set(r, i)), !i.has(t)) {
|
|
2844
2844
|
i.add(t);
|
|
2845
2845
|
for (let e in n) {
|
|
2846
2846
|
let t = n[e];
|
|
@@ -2868,10 +2868,10 @@ function Y(e, t, n) {
|
|
|
2868
2868
|
}
|
|
2869
2869
|
}
|
|
2870
2870
|
}
|
|
2871
|
-
var
|
|
2872
|
-
input:
|
|
2873
|
-
output:
|
|
2874
|
-
} }), e.toJSONSchema =
|
|
2871
|
+
var Y = /*@__PURE__*/ t("ZodType", (e, t) => (A.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
|
|
2872
|
+
input: K(e, "input"),
|
|
2873
|
+
output: K(e, "output")
|
|
2874
|
+
} }), e.toJSONSchema = qr(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => Wi(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Ki(e, t, n), e.parseAsync = async (t, n) => Gi(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => qi(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Ji(e, t, n), e.decode = (t, n) => Yi(e, t, n), e.encodeAsync = async (t, n) => Xi(e, t, n), e.decodeAsync = async (t, n) => Zi(e, t, n), e.safeEncode = (t, n) => Qi(e, t, n), e.safeDecode = (t, n) => $i(e, t, n), e.safeEncodeAsync = async (t, n) => ea(e, t, n), e.safeDecodeAsync = async (t, n) => ta(e, t, n), J(e, "ZodType", {
|
|
2875
2875
|
check(...e) {
|
|
2876
2876
|
let t = this.def;
|
|
2877
2877
|
return this.clone(h(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
|
|
@@ -2899,7 +2899,7 @@ var X = /*@__PURE__*/ t("ZodType", (e, t) => (A.init(e, t), Object.assign(e["~st
|
|
|
2899
2899
|
return this.check(ko(e, t));
|
|
2900
2900
|
},
|
|
2901
2901
|
overwrite(e) {
|
|
2902
|
-
return this.check(/* @__PURE__ */
|
|
2902
|
+
return this.check(/* @__PURE__ */ B(e));
|
|
2903
2903
|
},
|
|
2904
2904
|
optional() {
|
|
2905
2905
|
return ao(this);
|
|
@@ -2945,12 +2945,12 @@ var X = /*@__PURE__*/ t("ZodType", (e, t) => (A.init(e, t), Object.assign(e["~st
|
|
|
2945
2945
|
},
|
|
2946
2946
|
describe(e) {
|
|
2947
2947
|
let t = this.clone();
|
|
2948
|
-
return
|
|
2948
|
+
return I.add(t, { description: e }), t;
|
|
2949
2949
|
},
|
|
2950
2950
|
meta(...e) {
|
|
2951
|
-
if (e.length === 0) return
|
|
2951
|
+
if (e.length === 0) return I.get(this);
|
|
2952
2952
|
let t = this.clone();
|
|
2953
|
-
return
|
|
2953
|
+
return I.add(t, e[0]), t;
|
|
2954
2954
|
},
|
|
2955
2955
|
isOptional() {
|
|
2956
2956
|
return this.safeParse(void 0).success;
|
|
@@ -2963,160 +2963,160 @@ var X = /*@__PURE__*/ t("ZodType", (e, t) => (A.init(e, t), Object.assign(e["~st
|
|
|
2963
2963
|
}
|
|
2964
2964
|
}), Object.defineProperty(e, "description", {
|
|
2965
2965
|
get() {
|
|
2966
|
-
return
|
|
2966
|
+
return I.get(e)?.description;
|
|
2967
2967
|
},
|
|
2968
2968
|
configurable: !0
|
|
2969
|
-
}), e)),
|
|
2970
|
-
|
|
2969
|
+
}), e)), ra = /*@__PURE__*/ t("_ZodString", (e, t) => {
|
|
2970
|
+
kt.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Yr(e, t, n, r);
|
|
2971
2971
|
let n = e._zod.bag;
|
|
2972
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null,
|
|
2972
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, J(e, "_ZodString", {
|
|
2973
2973
|
regex(...e) {
|
|
2974
|
-
return this.check(/* @__PURE__ */
|
|
2974
|
+
return this.check(/* @__PURE__ */ jr(...e));
|
|
2975
2975
|
},
|
|
2976
2976
|
includes(...e) {
|
|
2977
|
-
return this.check(/* @__PURE__ */
|
|
2977
|
+
return this.check(/* @__PURE__ */ Pr(...e));
|
|
2978
2978
|
},
|
|
2979
2979
|
startsWith(...e) {
|
|
2980
|
-
return this.check(/* @__PURE__ */
|
|
2980
|
+
return this.check(/* @__PURE__ */ Fr(...e));
|
|
2981
2981
|
},
|
|
2982
2982
|
endsWith(...e) {
|
|
2983
|
-
return this.check(/* @__PURE__ */
|
|
2983
|
+
return this.check(/* @__PURE__ */ Ir(...e));
|
|
2984
2984
|
},
|
|
2985
2985
|
min(...e) {
|
|
2986
|
-
return this.check(/* @__PURE__ */
|
|
2986
|
+
return this.check(/* @__PURE__ */ z(...e));
|
|
2987
2987
|
},
|
|
2988
2988
|
max(...e) {
|
|
2989
|
-
return this.check(/* @__PURE__ */
|
|
2989
|
+
return this.check(/* @__PURE__ */ kr(...e));
|
|
2990
2990
|
},
|
|
2991
2991
|
length(...e) {
|
|
2992
|
-
return this.check(/* @__PURE__ */
|
|
2992
|
+
return this.check(/* @__PURE__ */ Ar(...e));
|
|
2993
2993
|
},
|
|
2994
2994
|
nonempty(...e) {
|
|
2995
|
-
return this.check(/* @__PURE__ */
|
|
2995
|
+
return this.check(/* @__PURE__ */ z(1, ...e));
|
|
2996
2996
|
},
|
|
2997
2997
|
lowercase(e) {
|
|
2998
|
-
return this.check(/* @__PURE__ */
|
|
2998
|
+
return this.check(/* @__PURE__ */ Mr(e));
|
|
2999
2999
|
},
|
|
3000
3000
|
uppercase(e) {
|
|
3001
|
-
return this.check(/* @__PURE__ */
|
|
3001
|
+
return this.check(/* @__PURE__ */ Nr(e));
|
|
3002
3002
|
},
|
|
3003
3003
|
trim() {
|
|
3004
|
-
return this.check(/* @__PURE__ */
|
|
3004
|
+
return this.check(/* @__PURE__ */ Rr());
|
|
3005
3005
|
},
|
|
3006
3006
|
normalize(...e) {
|
|
3007
|
-
return this.check(/* @__PURE__ */
|
|
3007
|
+
return this.check(/* @__PURE__ */ Lr(...e));
|
|
3008
3008
|
},
|
|
3009
3009
|
toLowerCase() {
|
|
3010
|
-
return this.check(/* @__PURE__ */
|
|
3010
|
+
return this.check(/* @__PURE__ */ zr());
|
|
3011
3011
|
},
|
|
3012
3012
|
toUpperCase() {
|
|
3013
|
-
return this.check(/* @__PURE__ */
|
|
3013
|
+
return this.check(/* @__PURE__ */ Br());
|
|
3014
3014
|
},
|
|
3015
3015
|
slugify() {
|
|
3016
|
-
return this.check(/* @__PURE__ */
|
|
3016
|
+
return this.check(/* @__PURE__ */ Vr());
|
|
3017
3017
|
}
|
|
3018
3018
|
});
|
|
3019
|
-
}),
|
|
3020
|
-
|
|
3019
|
+
}), ia = /*@__PURE__*/ t("ZodString", (e, t) => {
|
|
3020
|
+
kt.init(e, t), ra.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ qn(oa, t)), e.url = (t) => e.check(/* @__PURE__ */ $n(ua, t)), e.jwt = (t) => e.check(/* @__PURE__ */ mr(Ea, t)), e.emoji = (t) => e.check(/* @__PURE__ */ er(fa, t)), e.guid = (t) => e.check(/* @__PURE__ */ Jn(ca, t)), e.uuid = (t) => e.check(/* @__PURE__ */ Yn(Z, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Xn(Z, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ Zn(Z, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ Qn(Z, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ tr(pa, t)), e.guid = (t) => e.check(/* @__PURE__ */ Jn(ca, t)), e.cuid = (t) => e.check(/* @__PURE__ */ nr(ma, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ rr(ha, t)), e.ulid = (t) => e.check(/* @__PURE__ */ ir(ga, t)), e.base64 = (t) => e.check(/* @__PURE__ */ dr(Ca, t)), e.base64url = (t) => e.check(/* @__PURE__ */ fr(wa, t)), e.xid = (t) => e.check(/* @__PURE__ */ ar(_a, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ or(va, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ sr(ya, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ cr(ba, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ lr(xa, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ ur(Sa, t)), e.e164 = (t) => e.check(/* @__PURE__ */ pr(Ta, t)), e.datetime = (t) => e.check(Li(t)), e.date = (t) => e.check(zi(t)), e.time = (t) => e.check(Vi(t)), e.duration = (t) => e.check(Ui(t));
|
|
3021
3021
|
});
|
|
3022
|
-
function
|
|
3023
|
-
return /* @__PURE__ */
|
|
3022
|
+
function aa(e) {
|
|
3023
|
+
return /* @__PURE__ */ Kn(ia, e);
|
|
3024
3024
|
}
|
|
3025
|
-
var
|
|
3026
|
-
|
|
3027
|
-
}),
|
|
3028
|
-
|
|
3025
|
+
var X = /*@__PURE__*/ t("ZodStringFormat", (e, t) => {
|
|
3026
|
+
j.init(e, t), ra.init(e, t);
|
|
3027
|
+
}), oa = /*@__PURE__*/ t("ZodEmail", (e, t) => {
|
|
3028
|
+
Mt.init(e, t), X.init(e, t);
|
|
3029
3029
|
});
|
|
3030
|
-
function
|
|
3031
|
-
return /* @__PURE__ */
|
|
3030
|
+
function sa(e) {
|
|
3031
|
+
return /* @__PURE__ */ qn(oa, e);
|
|
3032
3032
|
}
|
|
3033
|
-
var
|
|
3034
|
-
|
|
3035
|
-
}),
|
|
3036
|
-
|
|
3033
|
+
var ca = /*@__PURE__*/ t("ZodGUID", (e, t) => {
|
|
3034
|
+
At.init(e, t), X.init(e, t);
|
|
3035
|
+
}), Z = /*@__PURE__*/ t("ZodUUID", (e, t) => {
|
|
3036
|
+
jt.init(e, t), X.init(e, t);
|
|
3037
3037
|
});
|
|
3038
|
-
function
|
|
3039
|
-
return /* @__PURE__ */
|
|
3038
|
+
function la(e) {
|
|
3039
|
+
return /* @__PURE__ */ Yn(Z, e);
|
|
3040
3040
|
}
|
|
3041
|
-
var
|
|
3042
|
-
|
|
3041
|
+
var ua = /*@__PURE__*/ t("ZodURL", (e, t) => {
|
|
3042
|
+
Nt.init(e, t), X.init(e, t);
|
|
3043
3043
|
});
|
|
3044
|
-
function
|
|
3045
|
-
return /* @__PURE__ */
|
|
3046
|
-
}
|
|
3047
|
-
var
|
|
3048
|
-
|
|
3049
|
-
}),
|
|
3050
|
-
|
|
3051
|
-
}),
|
|
3052
|
-
|
|
3053
|
-
}),
|
|
3054
|
-
|
|
3055
|
-
}),
|
|
3056
|
-
|
|
3057
|
-
}),
|
|
3058
|
-
|
|
3059
|
-
}),
|
|
3060
|
-
|
|
3061
|
-
}),
|
|
3062
|
-
|
|
3063
|
-
}),
|
|
3064
|
-
|
|
3065
|
-
}),
|
|
3066
|
-
|
|
3067
|
-
}),
|
|
3068
|
-
|
|
3069
|
-
}),
|
|
3070
|
-
|
|
3071
|
-
}),
|
|
3072
|
-
|
|
3073
|
-
}),
|
|
3074
|
-
|
|
3075
|
-
}),
|
|
3076
|
-
|
|
3077
|
-
}),
|
|
3078
|
-
|
|
3044
|
+
function da(e) {
|
|
3045
|
+
return /* @__PURE__ */ $n(ua, e);
|
|
3046
|
+
}
|
|
3047
|
+
var fa = /*@__PURE__*/ t("ZodEmoji", (e, t) => {
|
|
3048
|
+
Pt.init(e, t), X.init(e, t);
|
|
3049
|
+
}), pa = /*@__PURE__*/ t("ZodNanoID", (e, t) => {
|
|
3050
|
+
Ft.init(e, t), X.init(e, t);
|
|
3051
|
+
}), ma = /*@__PURE__*/ t("ZodCUID", (e, t) => {
|
|
3052
|
+
It.init(e, t), X.init(e, t);
|
|
3053
|
+
}), ha = /*@__PURE__*/ t("ZodCUID2", (e, t) => {
|
|
3054
|
+
Lt.init(e, t), X.init(e, t);
|
|
3055
|
+
}), ga = /*@__PURE__*/ t("ZodULID", (e, t) => {
|
|
3056
|
+
Rt.init(e, t), X.init(e, t);
|
|
3057
|
+
}), _a = /*@__PURE__*/ t("ZodXID", (e, t) => {
|
|
3058
|
+
zt.init(e, t), X.init(e, t);
|
|
3059
|
+
}), va = /*@__PURE__*/ t("ZodKSUID", (e, t) => {
|
|
3060
|
+
Bt.init(e, t), X.init(e, t);
|
|
3061
|
+
}), ya = /*@__PURE__*/ t("ZodIPv4", (e, t) => {
|
|
3062
|
+
Gt.init(e, t), X.init(e, t);
|
|
3063
|
+
}), ba = /*@__PURE__*/ t("ZodIPv6", (e, t) => {
|
|
3064
|
+
Kt.init(e, t), X.init(e, t);
|
|
3065
|
+
}), xa = /*@__PURE__*/ t("ZodCIDRv4", (e, t) => {
|
|
3066
|
+
qt.init(e, t), X.init(e, t);
|
|
3067
|
+
}), Sa = /*@__PURE__*/ t("ZodCIDRv6", (e, t) => {
|
|
3068
|
+
Jt.init(e, t), X.init(e, t);
|
|
3069
|
+
}), Ca = /*@__PURE__*/ t("ZodBase64", (e, t) => {
|
|
3070
|
+
Xt.init(e, t), X.init(e, t);
|
|
3071
|
+
}), wa = /*@__PURE__*/ t("ZodBase64URL", (e, t) => {
|
|
3072
|
+
Qt.init(e, t), X.init(e, t);
|
|
3073
|
+
}), Ta = /*@__PURE__*/ t("ZodE164", (e, t) => {
|
|
3074
|
+
$t.init(e, t), X.init(e, t);
|
|
3075
|
+
}), Ea = /*@__PURE__*/ t("ZodJWT", (e, t) => {
|
|
3076
|
+
tn.init(e, t), X.init(e, t);
|
|
3077
|
+
}), Da = /*@__PURE__*/ t("ZodNumber", (e, t) => {
|
|
3078
|
+
nn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xr(e, t, n, r), J(e, "ZodNumber", {
|
|
3079
3079
|
gt(e, t) {
|
|
3080
|
-
return this.check(/* @__PURE__ */
|
|
3080
|
+
return this.check(/* @__PURE__ */ Dr(e, t));
|
|
3081
3081
|
},
|
|
3082
3082
|
gte(e, t) {
|
|
3083
|
-
return this.check(/* @__PURE__ */
|
|
3083
|
+
return this.check(/* @__PURE__ */ R(e, t));
|
|
3084
3084
|
},
|
|
3085
3085
|
min(e, t) {
|
|
3086
|
-
return this.check(/* @__PURE__ */
|
|
3086
|
+
return this.check(/* @__PURE__ */ R(e, t));
|
|
3087
3087
|
},
|
|
3088
3088
|
lt(e, t) {
|
|
3089
|
-
return this.check(/* @__PURE__ */
|
|
3089
|
+
return this.check(/* @__PURE__ */ Er(e, t));
|
|
3090
3090
|
},
|
|
3091
3091
|
lte(e, t) {
|
|
3092
|
-
return this.check(/* @__PURE__ */
|
|
3092
|
+
return this.check(/* @__PURE__ */ L(e, t));
|
|
3093
3093
|
},
|
|
3094
3094
|
max(e, t) {
|
|
3095
|
-
return this.check(/* @__PURE__ */
|
|
3095
|
+
return this.check(/* @__PURE__ */ L(e, t));
|
|
3096
3096
|
},
|
|
3097
3097
|
int(e) {
|
|
3098
|
-
return this.check(
|
|
3098
|
+
return this.check(Aa(e));
|
|
3099
3099
|
},
|
|
3100
3100
|
safe(e) {
|
|
3101
|
-
return this.check(
|
|
3101
|
+
return this.check(Aa(e));
|
|
3102
3102
|
},
|
|
3103
3103
|
positive(e) {
|
|
3104
|
-
return this.check(/* @__PURE__ */
|
|
3104
|
+
return this.check(/* @__PURE__ */ Dr(0, e));
|
|
3105
3105
|
},
|
|
3106
3106
|
nonnegative(e) {
|
|
3107
|
-
return this.check(/* @__PURE__ */
|
|
3107
|
+
return this.check(/* @__PURE__ */ R(0, e));
|
|
3108
3108
|
},
|
|
3109
3109
|
negative(e) {
|
|
3110
|
-
return this.check(/* @__PURE__ */
|
|
3110
|
+
return this.check(/* @__PURE__ */ Er(0, e));
|
|
3111
3111
|
},
|
|
3112
3112
|
nonpositive(e) {
|
|
3113
|
-
return this.check(/* @__PURE__ */
|
|
3113
|
+
return this.check(/* @__PURE__ */ L(0, e));
|
|
3114
3114
|
},
|
|
3115
3115
|
multipleOf(e, t) {
|
|
3116
|
-
return this.check(/* @__PURE__ */
|
|
3116
|
+
return this.check(/* @__PURE__ */ Or(e, t));
|
|
3117
3117
|
},
|
|
3118
3118
|
step(e, t) {
|
|
3119
|
-
return this.check(/* @__PURE__ */
|
|
3119
|
+
return this.check(/* @__PURE__ */ Or(e, t));
|
|
3120
3120
|
},
|
|
3121
3121
|
finite() {
|
|
3122
3122
|
return this;
|
|
@@ -3125,56 +3125,56 @@ var da = /*@__PURE__*/ t("ZodEmoji", (e, t) => {
|
|
|
3125
3125
|
let n = e._zod.bag;
|
|
3126
3126
|
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;
|
|
3127
3127
|
});
|
|
3128
|
-
function
|
|
3129
|
-
return /* @__PURE__ */
|
|
3128
|
+
function Oa(e) {
|
|
3129
|
+
return /* @__PURE__ */ yr(Da, e);
|
|
3130
3130
|
}
|
|
3131
|
-
var
|
|
3132
|
-
|
|
3131
|
+
var ka = /*@__PURE__*/ t("ZodNumberFormat", (e, t) => {
|
|
3132
|
+
rn.init(e, t), Da.init(e, t);
|
|
3133
3133
|
});
|
|
3134
|
-
function
|
|
3135
|
-
return /* @__PURE__ */
|
|
3134
|
+
function Aa(e) {
|
|
3135
|
+
return /* @__PURE__ */ br(ka, e);
|
|
3136
3136
|
}
|
|
3137
|
-
var
|
|
3138
|
-
|
|
3137
|
+
var ja = /*@__PURE__*/ t("ZodBoolean", (e, t) => {
|
|
3138
|
+
an.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Zr(e, t, n, r);
|
|
3139
3139
|
});
|
|
3140
|
-
function
|
|
3141
|
-
return /* @__PURE__ */
|
|
3140
|
+
function Ma(e) {
|
|
3141
|
+
return /* @__PURE__ */ xr(ja, e);
|
|
3142
3142
|
}
|
|
3143
|
-
var
|
|
3144
|
-
|
|
3143
|
+
var Na = /*@__PURE__*/ t("ZodNull", (e, t) => {
|
|
3144
|
+
on.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => ei(e, t, n, r);
|
|
3145
3145
|
});
|
|
3146
|
-
function
|
|
3147
|
-
return /* @__PURE__ */
|
|
3146
|
+
function Pa(e) {
|
|
3147
|
+
return /* @__PURE__ */ Sr(Na, e);
|
|
3148
3148
|
}
|
|
3149
|
-
var
|
|
3150
|
-
|
|
3149
|
+
var Fa = /*@__PURE__*/ t("ZodUnknown", (e, t) => {
|
|
3150
|
+
sn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
3151
3151
|
});
|
|
3152
|
-
function
|
|
3153
|
-
return /* @__PURE__ */
|
|
3152
|
+
function Q() {
|
|
3153
|
+
return /* @__PURE__ */ Cr(Fa);
|
|
3154
3154
|
}
|
|
3155
3155
|
var Ia = /*@__PURE__*/ t("ZodNever", (e, t) => {
|
|
3156
|
-
|
|
3156
|
+
cn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => ri(e, t, n, r);
|
|
3157
3157
|
});
|
|
3158
3158
|
function La(e) {
|
|
3159
|
-
return /* @__PURE__ */
|
|
3159
|
+
return /* @__PURE__ */ wr(Ia, e);
|
|
3160
3160
|
}
|
|
3161
3161
|
var Ra = /*@__PURE__*/ t("ZodDate", (e, t) => {
|
|
3162
|
-
|
|
3162
|
+
ln.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => oi(e, t, n, r), e.min = (t, n) => e.check(/* @__PURE__ */ R(t, n)), e.max = (t, n) => e.check(/* @__PURE__ */ L(t, n));
|
|
3163
3163
|
let n = e._zod.bag;
|
|
3164
3164
|
e.minDate = n.minimum ? new Date(n.minimum) : null, e.maxDate = n.maximum ? new Date(n.maximum) : null;
|
|
3165
3165
|
}), za = /*@__PURE__*/ t("ZodArray", (e, t) => {
|
|
3166
|
-
|
|
3166
|
+
dn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => vi(e, t, n, r), e.element = t.element, J(e, "ZodArray", {
|
|
3167
3167
|
min(e, t) {
|
|
3168
|
-
return this.check(/* @__PURE__ */
|
|
3168
|
+
return this.check(/* @__PURE__ */ z(e, t));
|
|
3169
3169
|
},
|
|
3170
3170
|
nonempty(e) {
|
|
3171
|
-
return this.check(/* @__PURE__ */
|
|
3171
|
+
return this.check(/* @__PURE__ */ z(1, e));
|
|
3172
3172
|
},
|
|
3173
3173
|
max(e, t) {
|
|
3174
|
-
return this.check(/* @__PURE__ */
|
|
3174
|
+
return this.check(/* @__PURE__ */ kr(e, t));
|
|
3175
3175
|
},
|
|
3176
3176
|
length(e, t) {
|
|
3177
|
-
return this.check(/* @__PURE__ */
|
|
3177
|
+
return this.check(/* @__PURE__ */ Ar(e, t));
|
|
3178
3178
|
},
|
|
3179
3179
|
unwrap() {
|
|
3180
3180
|
return this.element;
|
|
@@ -3182,10 +3182,10 @@ var Ra = /*@__PURE__*/ t("ZodDate", (e, t) => {
|
|
|
3182
3182
|
});
|
|
3183
3183
|
});
|
|
3184
3184
|
function Ba(e, t) {
|
|
3185
|
-
return /* @__PURE__ */
|
|
3185
|
+
return /* @__PURE__ */ Hr(za, e, t);
|
|
3186
3186
|
}
|
|
3187
3187
|
var Va = /*@__PURE__*/ t("ZodObject", (e, t) => {
|
|
3188
|
-
|
|
3188
|
+
hn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => yi(e, t, n, r), p(e, "shape", () => t.shape), J(e, "ZodObject", {
|
|
3189
3189
|
keyof() {
|
|
3190
3190
|
return $a(Object.keys(this._zod.def.shape));
|
|
3191
3191
|
},
|
|
@@ -3198,13 +3198,13 @@ var Va = /*@__PURE__*/ t("ZodObject", (e, t) => {
|
|
|
3198
3198
|
passthrough() {
|
|
3199
3199
|
return this.clone({
|
|
3200
3200
|
...this._zod.def,
|
|
3201
|
-
catchall:
|
|
3201
|
+
catchall: Q()
|
|
3202
3202
|
});
|
|
3203
3203
|
},
|
|
3204
3204
|
loose() {
|
|
3205
3205
|
return this.clone({
|
|
3206
3206
|
...this._zod.def,
|
|
3207
|
-
catchall:
|
|
3207
|
+
catchall: Q()
|
|
3208
3208
|
});
|
|
3209
3209
|
},
|
|
3210
3210
|
strict() {
|
|
@@ -3253,12 +3253,12 @@ function Ua(e, t) {
|
|
|
3253
3253
|
return new Va({
|
|
3254
3254
|
type: "object",
|
|
3255
3255
|
shape: e,
|
|
3256
|
-
catchall:
|
|
3256
|
+
catchall: Q(),
|
|
3257
3257
|
...b(t)
|
|
3258
3258
|
});
|
|
3259
3259
|
}
|
|
3260
3260
|
var Wa = /*@__PURE__*/ t("ZodUnion", (e, t) => {
|
|
3261
|
-
|
|
3261
|
+
_n.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => bi(e, t, n, r), e.options = t.options;
|
|
3262
3262
|
});
|
|
3263
3263
|
function Ga(e, t) {
|
|
3264
3264
|
return new Wa({
|
|
@@ -3268,7 +3268,7 @@ function Ga(e, t) {
|
|
|
3268
3268
|
});
|
|
3269
3269
|
}
|
|
3270
3270
|
var Ka = /*@__PURE__*/ t("ZodDiscriminatedUnion", (e, t) => {
|
|
3271
|
-
Wa.init(e, t),
|
|
3271
|
+
Wa.init(e, t), vn.init(e, t);
|
|
3272
3272
|
});
|
|
3273
3273
|
function qa(e, t, n) {
|
|
3274
3274
|
return new Ka({
|
|
@@ -3279,7 +3279,7 @@ function qa(e, t, n) {
|
|
|
3279
3279
|
});
|
|
3280
3280
|
}
|
|
3281
3281
|
var Ja = /*@__PURE__*/ t("ZodIntersection", (e, t) => {
|
|
3282
|
-
|
|
3282
|
+
yn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => xi(e, t, n, r);
|
|
3283
3283
|
});
|
|
3284
3284
|
function Ya(e, t) {
|
|
3285
3285
|
return new Ja({
|
|
@@ -3289,12 +3289,12 @@ function Ya(e, t) {
|
|
|
3289
3289
|
});
|
|
3290
3290
|
}
|
|
3291
3291
|
var Xa = /*@__PURE__*/ t("ZodRecord", (e, t) => {
|
|
3292
|
-
|
|
3292
|
+
Sn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ci(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
|
|
3293
3293
|
});
|
|
3294
3294
|
function Za(e, t, n) {
|
|
3295
3295
|
return !t || !t._zod ? new Xa({
|
|
3296
3296
|
type: "record",
|
|
3297
|
-
keyType:
|
|
3297
|
+
keyType: aa(),
|
|
3298
3298
|
valueType: e,
|
|
3299
3299
|
...b(t)
|
|
3300
3300
|
}) : new Xa({
|
|
@@ -3305,7 +3305,7 @@ function Za(e, t, n) {
|
|
|
3305
3305
|
});
|
|
3306
3306
|
}
|
|
3307
3307
|
var Qa = /*@__PURE__*/ t("ZodEnum", (e, t) => {
|
|
3308
|
-
|
|
3308
|
+
Cn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => si(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
3309
3309
|
let n = new Set(Object.keys(t.entries));
|
|
3310
3310
|
e.extract = (e, r) => {
|
|
3311
3311
|
let i = {};
|
|
@@ -3337,7 +3337,7 @@ function $a(e, t) {
|
|
|
3337
3337
|
});
|
|
3338
3338
|
}
|
|
3339
3339
|
var eo = /*@__PURE__*/ t("ZodLiteral", (e, t) => {
|
|
3340
|
-
|
|
3340
|
+
wn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => ci(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
|
|
3341
3341
|
if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
3342
3342
|
return t.values[0];
|
|
3343
3343
|
} });
|
|
@@ -3350,7 +3350,7 @@ function to(e, t) {
|
|
|
3350
3350
|
});
|
|
3351
3351
|
}
|
|
3352
3352
|
var no = /*@__PURE__*/ t("ZodTransform", (e, t) => {
|
|
3353
|
-
|
|
3353
|
+
Tn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => hi(e, t, n, r), e._zod.parse = (n, i) => {
|
|
3354
3354
|
if (i.direction === "backward") throw new r(e.constructor.name);
|
|
3355
3355
|
n.addIssue = (r) => {
|
|
3356
3356
|
if (typeof r == "string") n.issues.push(T(r, n.value, t));
|
|
@@ -3370,7 +3370,7 @@ function ro(e) {
|
|
|
3370
3370
|
});
|
|
3371
3371
|
}
|
|
3372
3372
|
var io = /*@__PURE__*/ t("ZodOptional", (e, t) => {
|
|
3373
|
-
|
|
3373
|
+
Dn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Mi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3374
3374
|
});
|
|
3375
3375
|
function ao(e) {
|
|
3376
3376
|
return new io({
|
|
@@ -3379,7 +3379,7 @@ function ao(e) {
|
|
|
3379
3379
|
});
|
|
3380
3380
|
}
|
|
3381
3381
|
var oo = /*@__PURE__*/ t("ZodExactOptional", (e, t) => {
|
|
3382
|
-
|
|
3382
|
+
On.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Mi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3383
3383
|
});
|
|
3384
3384
|
function so(e) {
|
|
3385
3385
|
return new oo({
|
|
@@ -3388,7 +3388,7 @@ function so(e) {
|
|
|
3388
3388
|
});
|
|
3389
3389
|
}
|
|
3390
3390
|
var co = /*@__PURE__*/ t("ZodNullable", (e, t) => {
|
|
3391
|
-
|
|
3391
|
+
kn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => wi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3392
3392
|
});
|
|
3393
3393
|
function lo(e) {
|
|
3394
3394
|
return new co({
|
|
@@ -3397,7 +3397,7 @@ function lo(e) {
|
|
|
3397
3397
|
});
|
|
3398
3398
|
}
|
|
3399
3399
|
var uo = /*@__PURE__*/ t("ZodDefault", (e, t) => {
|
|
3400
|
-
|
|
3400
|
+
An.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ei(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
3401
3401
|
});
|
|
3402
3402
|
function fo(e, t) {
|
|
3403
3403
|
return new uo({
|
|
@@ -3409,7 +3409,7 @@ function fo(e, t) {
|
|
|
3409
3409
|
});
|
|
3410
3410
|
}
|
|
3411
3411
|
var po = /*@__PURE__*/ t("ZodPrefault", (e, t) => {
|
|
3412
|
-
|
|
3412
|
+
Mn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Di(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3413
3413
|
});
|
|
3414
3414
|
function mo(e, t) {
|
|
3415
3415
|
return new po({
|
|
@@ -3421,7 +3421,7 @@ function mo(e, t) {
|
|
|
3421
3421
|
});
|
|
3422
3422
|
}
|
|
3423
3423
|
var ho = /*@__PURE__*/ t("ZodNonOptional", (e, t) => {
|
|
3424
|
-
|
|
3424
|
+
Nn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ti(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3425
3425
|
});
|
|
3426
3426
|
function go(e, t) {
|
|
3427
3427
|
return new ho({
|
|
@@ -3431,7 +3431,7 @@ function go(e, t) {
|
|
|
3431
3431
|
});
|
|
3432
3432
|
}
|
|
3433
3433
|
var _o = /*@__PURE__*/ t("ZodCatch", (e, t) => {
|
|
3434
|
-
|
|
3434
|
+
Fn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Oi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
3435
3435
|
});
|
|
3436
3436
|
function vo(e, t) {
|
|
3437
3437
|
return new _o({
|
|
@@ -3441,7 +3441,7 @@ function vo(e, t) {
|
|
|
3441
3441
|
});
|
|
3442
3442
|
}
|
|
3443
3443
|
var yo = /*@__PURE__*/ t("ZodPipe", (e, t) => {
|
|
3444
|
-
|
|
3444
|
+
In.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => ki(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
3445
3445
|
});
|
|
3446
3446
|
function bo(e, t) {
|
|
3447
3447
|
return new yo({
|
|
@@ -3451,7 +3451,7 @@ function bo(e, t) {
|
|
|
3451
3451
|
});
|
|
3452
3452
|
}
|
|
3453
3453
|
var xo = /*@__PURE__*/ t("ZodCodec", (e, t) => {
|
|
3454
|
-
yo.init(e, t),
|
|
3454
|
+
yo.init(e, t), Ln.init(e, t);
|
|
3455
3455
|
});
|
|
3456
3456
|
function So(e, t, n) {
|
|
3457
3457
|
return new xo({
|
|
@@ -3463,7 +3463,7 @@ function So(e, t, n) {
|
|
|
3463
3463
|
});
|
|
3464
3464
|
}
|
|
3465
3465
|
var Co = /*@__PURE__*/ t("ZodReadonly", (e, t) => {
|
|
3466
|
-
|
|
3466
|
+
Rn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ai(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3467
3467
|
});
|
|
3468
3468
|
function wo(e) {
|
|
3469
3469
|
return new Co({
|
|
@@ -3472,7 +3472,7 @@ function wo(e) {
|
|
|
3472
3472
|
});
|
|
3473
3473
|
}
|
|
3474
3474
|
var To = /*@__PURE__*/ t("ZodLazy", (e, t) => {
|
|
3475
|
-
|
|
3475
|
+
Bn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ni(e, t, n, r), e.unwrap = () => e._zod.def.getter();
|
|
3476
3476
|
});
|
|
3477
3477
|
function Eo(e) {
|
|
3478
3478
|
return new To({
|
|
@@ -3481,16 +3481,16 @@ function Eo(e) {
|
|
|
3481
3481
|
});
|
|
3482
3482
|
}
|
|
3483
3483
|
var $ = /*@__PURE__*/ t("ZodCustom", (e, t) => {
|
|
3484
|
-
|
|
3484
|
+
Vn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => pi(e, t, n, r);
|
|
3485
3485
|
});
|
|
3486
3486
|
function Do(e, t) {
|
|
3487
|
-
return /* @__PURE__ */
|
|
3487
|
+
return /* @__PURE__ */ Ur($, e ?? (() => !0), t);
|
|
3488
3488
|
}
|
|
3489
3489
|
function Oo(e, t = {}) {
|
|
3490
|
-
return /* @__PURE__ */
|
|
3490
|
+
return /* @__PURE__ */ Wr($, e, t);
|
|
3491
3491
|
}
|
|
3492
3492
|
function ko(e, t) {
|
|
3493
|
-
return /* @__PURE__ */
|
|
3493
|
+
return /* @__PURE__ */ Gr(e, t);
|
|
3494
3494
|
}
|
|
3495
3495
|
function Ao(e, t = {}) {
|
|
3496
3496
|
let n = new $({
|
|
@@ -3511,6 +3511,6 @@ function Ao(e, t = {}) {
|
|
|
3511
3511
|
}, n;
|
|
3512
3512
|
}
|
|
3513
3513
|
//#endregion
|
|
3514
|
-
export {
|
|
3514
|
+
export { qi as C, Te as D, we as E, ve as O, la as S, Tr as T, Za as _, Ba as a, Q as b, Do as c, Eo as d, to as f, Ha as g, Oa as h, Pa as i, xe as k, qa as l, La as m, $a as n, Ma as o, Ua as p, Ao as r, So as s, Ra as t, sa as u, aa as v, Fi as w, da as x, Ga as y };
|
|
3515
3515
|
|
|
3516
|
-
//# sourceMappingURL=schemas-
|
|
3516
|
+
//# sourceMappingURL=schemas-DnUKIqgi.js.map
|