import { defineComponent as fe, createBlock as _e, openBlock as D, mergeProps as It, withCtx as Se, renderSlot as gt, computed as R, ref as ee, resolveComponent as he, createVNode as ie, createTextVNode as hn, createElementVNode as N, createCommentVNode as be, toDisplayString as ue, h as Or, watch as Ge, createElementBlock as Z, withDirectives as Ur, withKeys as Mf, vModelText as Ff, Fragment as ze, renderList as Ae, normalizeStyle as jr, resolveDynamicComponent as zt, normalizeClass as at, withModifiers as Pe, Teleport as Lf, createSlots as Rf, vModelSelect as Mo, onMounted as Bf, onBeforeUnmount as Jf } from "vue"; import { VBtn as qf } from "vuetify/components/VBtn"; import { VBadge as Vf } from "vuetify/components/VBadge"; import { VTextField as Cr } from "vuetify/components/VTextField"; import { VCard as za, VCardTitle as xa, VCardText as Da, VCardActions as Oa } from "vuetify/components/VCard"; import { VContainer as Yf } from "vuetify/components/VGrid"; const Kf = fe({ name: "EliBotao", inheritAttrs: !1, props: { color: { type: String, default: "primary" }, variant: { type: String, default: "elevated" }, size: { type: String, default: "default" }, disabled: { type: Boolean, default: !1 }, loading: { type: Boolean, default: !1 } } }), me = (e, n) => { const r = e.__vccOpts || e; for (const [o, t] of n) r[o] = t; return r; }; function Gf(e, n, r, o, t, i) { return D(), _e(qf, It({ color: e.color, variant: e.variant, size: e.size, disabled: e.disabled, loading: e.loading }, e.$attrs, { class: "eli-botao text-none pt-1" }), { default: Se(() => [ gt(e.$slots, "default") ]), _: 3 }, 16, ["color", "variant", "size", "disabled", "loading"]); } const Ua = /* @__PURE__ */ me(Kf, [["render", Gf]]), Fo = { suave: "4px", pill: "10px" }, Wf = fe({ name: "EliBadge", inheritAttrs: !1, props: { color: { type: String, default: "primary" }, location: { type: String, default: "top right" }, offsetX: { type: String, default: "0" }, offsetY: { type: String, default: "0" }, dot: { type: Boolean, default: !1 }, visible: { type: Boolean, default: !0 }, badge: { type: [String, Number], default: void 0 }, /** 🔥 NOVO: controla só o radius */ radius: { type: String, default: "suave" } }, setup(e) { const n = R(() => e.radius in Fo ? Fo[e.radius] : e.radius), r = R(() => e.dot || e.badge !== void 0 ? e.visible : !1), o = R(() => ({ "--eli-badge-radius": n.value })); return { showBadge: r, badgeStyle: o }; } }); function Hf(e, n, r, o, t, i) { return e.showBadge ? (D(), _e(Vf, It({ key: 0, color: e.color }, e.$attrs, { location: e.location, "offset-x": e.offsetX, "offset-y": e.offsetY, dot: e.dot, content: e.badge, style: e.badgeStyle, class: "eli-badge" }), { default: Se(() => [ gt(e.$slots, "default", {}, void 0, !0) ]), _: 3 }, 16, ["color", "location", "offset-x", "offset-y", "dot", "content", "style"])) : gt(e.$slots, "default", { key: 1 }, void 0, !0); } const Mr = /* @__PURE__ */ me(Wf, [["render", Hf], ["__scopeId", "data-v-371c8db4"]]); function Xf(e) { return e.replace(/\D+/g, ""); } function Qf(e) { const n = Xf(e); return n.length <= 11 ? n.replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2").slice(0, 14) : n.replace(/^(\d{2})(\d)/, "$1.$2").replace(/^(\d{2})\.(\d{3})(\d)/, "$1.$2.$3").replace(/\.(\d{3})(\d)/, ".$1/$2").replace(/(\d{4})(\d)/, "$1-$2").slice(0, 18); } function em(e) { return e.replace(/\D+/g, ""); } function tm(e) { const n = em(e); return n ? n.length <= 10 ? n.replace(/^(\d{2})(\d)/, "($1) $2").replace(/(\d{4})(\d)/, "$1-$2").slice(0, 14) : n.replace(/^(\d{2})(\d)/, "($1) $2").replace(/(\d{5})(\d)/, "$1-$2").slice(0, 15) : ""; } function nm(e) { return e.replace(/\D+/g, ""); } function rm(e) { const n = nm(e); return n ? n.replace(/^(\d{5})(\d)/, "$1-$2").slice(0, 9) : ""; } const im = fe({ name: "EliEntradaTexto", inheritAttrs: !1, props: { /** Interface padrão (EliEntrada): value + opcoes. */ value: { type: [String, null], default: void 0 }, opcoes: { type: Object, required: !0 } }, emits: { "update:value": (e) => !0, /** Compat Vue2 (v-model padrão: value + input) */ input: (e) => !0, change: (e) => !0, focus: () => !0, blur: () => !0 }, setup(e, { attrs: n, emit: r }) { const o = R(() => { var l; return ((l = e.opcoes) == null ? void 0 : l.formato) ?? "texto"; }), t = R({ get: () => e.value, set: (l) => { r("update:value", l), r("input", l), r("change", l); } }), i = R(() => o.value === "email" ? "email" : o.value === "url" ? "url" : "text"), a = R(() => { if (o.value === "telefone") return "tel"; if (o.value === "cpfCnpj" || o.value === "cep") return "numeric"; }); function u(l) { switch (o.value) { case "telefone": return tm(l); case "cpfCnpj": return Qf(l); case "cep": return rm(l); default: return l; } } function c(l) { const d = l.target, s = u(d.value); d.value = s, t.value = s; } return { attrs: n, emit: r, localValue: t, inputHtmlType: i, inputMode: a, onInput: c }; } }); function om(e, n, r, o, t, i) { var a, u, c, l; return D(), _e(Cr, It({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (d) => e.localValue = d), type: e.inputHtmlType, inputmode: e.inputMode, label: (a = e.opcoes) == null ? void 0 : a.rotulo, placeholder: (u = e.opcoes) == null ? void 0 : u.placeholder, counter: (c = e.opcoes) == null ? void 0 : c.limiteCaracteres, maxlength: (l = e.opcoes) == null ? void 0 : l.limiteCaracteres }, e.attrs, { onFocus: n[1] || (n[1] = () => e.emit("focus")), onBlur: n[2] || (n[2] = () => e.emit("blur")), onInput: e.onInput }), null, 16, ["modelValue", "type", "inputmode", "label", "placeholder", "counter", "maxlength", "onInput"]); } const Fr = /* @__PURE__ */ me(im, [["render", om]]), am = fe({ name: "EliOlaMundo", components: { EliBotao: Ua, EliBadge: Mr, EliEntradaTexto: Fr }, setup() { const e = ee(""), n = ee(""), r = ee(""), o = ee(""), t = ee(""); return { nome: e, email: o, documento: t, telefone: r, cep: n }; } }), um = { class: "grid-example" }; function lm(e, n, r, o, t, i) { const a = he("EliBadge"), u = he("EliEntradaTexto"), c = he("EliBotao"); return D(), _e(Yf, null, { default: Se(() => [ ie(za, { class: "mx-auto", max_width: "400" }, { default: Se(() => [ ie(xa, null, { default: Se(() => [ ie(a, { badge: "Novo", "offset-x": "-15", location: "right center" }, { default: Se(() => [...n[5] || (n[5] = [ hn(" Olá Mundo! ", -1) ])]), _: 1 }) ]), _: 1 }), ie(Da, null, { default: Se(() => [ n[6] || (n[6] = hn(" Este é um componente de exemplo integrado com Vuetify. ", -1)), N("div", um, [ ie(u, { value: e.nome, "onUpdate:value": n[0] || (n[0] = (l) => e.nome = l), opcoes: { rotulo: "Nome", placeholder: "Digite o nome" }, density: "compact" }, null, 8, ["value"]), ie(u, { value: e.telefone, "onUpdate:value": n[1] || (n[1] = (l) => e.telefone = l), opcoes: { rotulo: "Telefone", formato: "telefone" } }, null, 8, ["value"]), ie(u, { value: e.cep, "onUpdate:value": n[2] || (n[2] = (l) => e.cep = l), opcoes: { rotulo: "CEP", placeholder: "00000-000", formato: "cep" } }, null, 8, ["value"]), ie(u, { value: e.documento, "onUpdate:value": n[3] || (n[3] = (l) => e.documento = l), opcoes: { rotulo: "CPF / CNPJ", formato: "cpfCnpj" } }, null, 8, ["value"]), ie(u, { value: e.email, "onUpdate:value": n[4] || (n[4] = (l) => e.email = l), opcoes: { rotulo: "Email", placeholder: "email@exemplo.com", formato: "email" } }, null, 8, ["value"]) ]) ]), _: 1 }), ie(Oa, null, { default: Se(() => [ ie(c, { color: "primary", variant: "elevated", block: "" }, { default: Se(() => [...n[7] || (n[7] = [ hn(" Botão Vuetify ", -1) ])]), _: 1 }) ]), _: 1 }) ]), _: 1 }) ]), _: 1 }); } const cm = /* @__PURE__ */ me(am, [["render", lm]]), sm = fe({ name: "EliCartao", components: { EliBadge: Mr }, inheritAttrs: !1, props: { /** Título de fallback caso o slot `titulo` não seja usado. */ titulo: { type: String, default: "" }, /** * Status semântico do cartão. * Usado para cor/label e para permitir filtros por status. */ status: { type: String, required: !0 }, /** Variante visual do v-card (Vuetify). */ variant: { type: String, default: "outlined" } }, emits: { /** Emit opcional para padronizar clique no cartão. */ clicar: (e) => !0 }, setup(e, { emit: n }) { const r = R(() => e.status), o = R(() => { switch (e.status) { case "novo": return "primary"; case "rascunho": return "secondary"; case "vendido": return "success"; case "cancelado": return "error"; } }), t = R(() => `eli-cartao--${e.status}`); function i() { n("clicar", e.status); } return { rotuloStatus: r, corStatus: o, classeStatus: t, onClick: i }; } }), dm = { class: "eli-cartao__titulo-texto" }, fm = { class: "eli-cartao__status" }; function mm(e, n, r, o, t, i) { const a = he("EliBadge"); return D(), _e(za, It({ class: ["eli-cartao", e.classeStatus], variant: e.variant }, e.$attrs), { default: Se(() => [ ie(xa, { class: "eli-cartao__titulo" }, { default: Se(() => [ N("div", dm, [ gt(e.$slots, "titulo", {}, () => [ hn(ue(e.titulo), 1) ], !0) ]), N("div", fm, [ ie(a, { badge: e.rotuloStatus, radius: "pill", color: e.corStatus }, { default: Se(() => [...n[0] || (n[0] = [ N("span", null, null, -1) ])]), _: 1 }, 8, ["badge", "color"]) ]) ]), _: 3 }), ie(Da, { class: "eli-cartao__conteudo" }, { default: Se(() => [ gt(e.$slots, "default", {}, void 0, !0) ]), _: 3 }), e.$slots.acoes ? (D(), _e(Oa, { key: 0, class: "eli-cartao__acoes" }, { default: Se(() => [ gt(e.$slots, "acoes", {}, void 0, !0) ]), _: 3 })) : be("", !0) ]), _: 3 }, 16, ["variant", "class"]); } const vm = /* @__PURE__ */ me(sm, [["render", mm], ["__scopeId", "data-v-6c492bd9"]]); var ja = ((e) => (e[e.sucesso = 200] = "sucesso", e[e.erroConhecido = 400] = "erroConhecido", e[e.erroPermissao = 401] = "erroPermissao", e[e.erroNaoEncontrado = 404] = "erroNaoEncontrado", e[e.erroDesconhecido = 500] = "erroDesconhecido", e[e.tempoEsgotado = 504] = "tempoEsgotado", e))(ja || {}); /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const pm = (e) => { for (const n in e) if (n.startsWith("aria-") || n === "role" || n === "title") return !0; return !1; }; /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Lo = (e) => e === ""; /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const gm = (...e) => e.filter((n, r, o) => !!n && n.trim() !== "" && o.indexOf(n) === r).join(" ").trim(); /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Ro = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(); /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const hm = (e) => e.replace( /^([A-Z])|[\s-_]+(\w)/g, (n, r, o) => o ? o.toUpperCase() : r.toLowerCase() ); /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const $m = (e) => { const n = hm(e); return n.charAt(0).toUpperCase() + n.slice(1); }; /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ var jt = { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": 2, "stroke-linecap": "round", "stroke-linejoin": "round" }; /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const bm = ({ name: e, iconNode: n, absoluteStrokeWidth: r, "absolute-stroke-width": o, strokeWidth: t, "stroke-width": i, size: a = jt.width, color: u = jt.stroke, ...c }, { slots: l }) => Or( "svg", { ...jt, ...c, width: a, height: a, stroke: u, "stroke-width": Lo(r) || Lo(o) || r === !0 || o === !0 ? Number(t || i || jt["stroke-width"]) * 24 / Number(a) : t || i || jt["stroke-width"], class: gm( "lucide", c.class, ...e ? [`lucide-${Ro($m(e))}-icon`, `lucide-${Ro(e)}`] : ["lucide-icon"] ), ...!l.default && !pm(c) && { "aria-hidden": "true" } }, [...n.map((d) => Or(...d)), ...l.default ? [l.default()] : []] ); /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const xt = (e, n) => (r, { slots: o, attrs: t }) => Or( bm, { ...t, ...r, iconNode: n, name: e }, o ); /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Bo = xt("arrow-down", [ ["path", { d: "M12 5v14", key: "s699le" }], ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }] ]); /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Jo = xt("arrow-up", [ ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }], ["path", { d: "M12 19V5", key: "x0mq9r" }] ]); /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const qo = xt("chevron-down", [ ["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }] ]); /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Vo = xt("chevron-right", [ ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }] ]); /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const _m = xt("ellipsis-vertical", [ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }], ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }], ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }] ]); /** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const ym = xt("search", [ ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }], ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }] ]), km = fe({ name: "EliTabelaCaixaDeBusca", components: { Search: ym }, props: { modelo: { type: String, required: !1, default: "" } }, emits: { buscar(e) { return typeof e == "string"; } }, setup(e, { emit: n }) { const r = ee(e.modelo ?? ""); Ge( () => e.modelo, (t) => { t !== void 0 && t !== r.value && (r.value = t); } ); function o() { n("buscar", r.value.trim()); } return { texto: r, emitirBusca: o }; } }), Sm = { class: "eli-tabela__busca" }, wm = { class: "eli-tabela__busca-input-wrapper" }; function Im(e, n, r, o, t, i) { const a = he("Search"); return D(), Z("div", Sm, [ N("div", wm, [ Ur(N("input", { id: "eli-tabela-busca", "onUpdate:modelValue": n[0] || (n[0] = (u) => e.texto = u), type: "search", class: "eli-tabela__busca-input", placeholder: "Digite termos para filtrar", onKeyup: n[1] || (n[1] = Mf((...u) => e.emitirBusca && e.emitirBusca(...u), ["enter"])) }, null, 544), [ [Ff, e.texto] ]), N("button", { type: "button", class: "eli-tabela__busca-botao", "aria-label": "Buscar", title: "Buscar", onClick: n[2] || (n[2] = (...u) => e.emitirBusca && e.emitirBusca(...u)) }, [ ie(a, { class: "eli-tabela__busca-botao-icone", size: 16, "stroke-width": 2, "aria-hidden": "true" }) ]) ]) ]); } const zm = /* @__PURE__ */ me(km, [["render", Im], ["__scopeId", "data-v-341415d1"]]), xm = fe({ name: "EliTabelaCabecalho", components: { EliTabelaCaixaDeBusca: zm }, props: { exibirBusca: { type: Boolean, required: !0 }, exibirBotaoColunas: { type: Boolean, required: !1, default: !0 }, exibirBotaoFiltroAvancado: { type: Boolean, required: !1, default: !1 }, valorBusca: { type: String, required: !0 }, acoesCabecalho: { type: Array, required: !0 } }, emits: { buscar(e) { return typeof e == "string"; }, colunas() { return !0; }, filtroAvancado() { return !0; } }, setup(e, { emit: n }) { const r = R(() => e.acoesCabecalho.length > 0); function o(a) { n("buscar", a); } function t() { n("colunas"); } function i() { n("filtroAvancado"); } return { temAcoesCabecalho: r, emitBuscar: o, emitColunas: t, emitFiltroAvancado: i }; } }), Dm = { class: "eli-tabela__cabecalho" }, Om = { key: 0, class: "eli-tabela__busca-grupo" }, Um = { key: 1, class: "eli-tabela__acoes-cabecalho" }, jm = ["onClick"], Tm = { class: "eli-tabela__acoes-cabecalho-rotulo" }; function Em(e, n, r, o, t, i) { const a = he("EliTabelaCaixaDeBusca"); return D(), Z("div", Dm, [ e.exibirBusca ? (D(), Z("div", Om, [ e.exibirBotaoColunas ? (D(), Z("button", { key: 0, type: "button", class: "eli-tabela__acoes-cabecalho-botao eli-tabela__acoes-cabecalho-botao--colunas", onClick: n[0] || (n[0] = (...u) => e.emitColunas && e.emitColunas(...u)) }, " Colunas ")) : be("", !0), e.exibirBotaoFiltroAvancado ? (D(), Z("button", { key: 1, type: "button", class: "eli-tabela__acoes-cabecalho-botao eli-tabela__acoes-cabecalho-botao--filtro", onClick: n[1] || (n[1] = (...u) => e.emitFiltroAvancado && e.emitFiltroAvancado(...u)) }, " Filtro ")) : be("", !0), ie(a, { modelo: e.valorBusca, onBuscar: e.emitBuscar }, null, 8, ["modelo", "onBuscar"]) ])) : be("", !0), e.temAcoesCabecalho ? (D(), Z("div", Um, [ (D(!0), Z(ze, null, Ae(e.acoesCabecalho, (u, c) => (D(), Z("button", { key: `${u.rotulo}-${c}`, type: "button", class: "eli-tabela__acoes-cabecalho-botao", style: jr(u.cor ? { backgroundColor: u.cor, color: "#fff" } : void 0), onClick: u.acao }, [ u.icone ? (D(), _e(zt(u.icone), { key: 0, class: "eli-tabela__acoes-cabecalho-icone", size: 16, "stroke-width": 2 })) : be("", !0), N("span", Tm, ue(u.rotulo), 1) ], 12, jm))), 128)) ])) : be("", !0) ]); } const Pm = /* @__PURE__ */ me(xm, [["render", Em], ["__scopeId", "data-v-17166105"]]), Nm = fe({ name: "EliTabelaEstados", props: { carregando: { type: Boolean, required: !0 }, erro: { type: String, required: !0 }, mensagemVazio: { type: String, required: !1, default: void 0 } } }), Am = { key: 0, class: "eli-tabela eli-tabela--carregando", "aria-busy": "true" }, Zm = { key: 1, class: "eli-tabela eli-tabela--erro", role: "alert" }, Cm = { class: "eli-tabela__erro-mensagem" }, Mm = { key: 2, class: "eli-tabela eli-tabela--vazio" }; function Fm(e, n, r, o, t, i) { return e.carregando ? (D(), Z("div", Am, " Carregando... ")) : e.erro ? (D(), Z("div", Zm, [ n[0] || (n[0] = N("div", { class: "eli-tabela__erro-titulo" }, "Erro", -1)), N("div", Cm, ue(e.erro), 1) ])) : (D(), Z("div", Mm, ue(e.mensagemVazio ?? "Nenhum registro encontrado."), 1)); } const Lm = /* @__PURE__ */ me(Nm, [["render", Fm]]), Rm = fe({ name: "EliTabelaDebug", props: { isDev: { type: Boolean, required: !0 }, menuAberto: { type: Number, required: !0 }, menuPopupPos: { type: Object, required: !0 } } }), Bm = { key: 0, style: { position: "fixed", left: "8px", bottom: "8px", "z-index": "999999", background: "rgba(185,28,28,0.9)", color: "#fff", padding: "6px 10px", "border-radius": "8px", "font-size": "12px", "max-width": "500px" } }; function Jm(e, n, r, o, t, i) { return e.isDev ? (D(), Z("div", Bm, [ n[0] || (n[0] = N("div", null, [ N("b", null, "EliTabela debug") ], -1)), N("div", null, "menuAberto: " + ue(e.menuAberto), 1), N("div", null, "menuPos: top=" + ue(e.menuPopupPos.top) + ", left=" + ue(e.menuPopupPos.left), 1) ])) : be("", !0); } const qm = /* @__PURE__ */ me(Rm, [["render", Jm]]), Vm = fe({ name: "EliTabelaHead", components: { ArrowUp: Jo, ArrowDown: Bo }, props: { colunas: { type: Array, required: !0 }, temAcoes: { type: Boolean, required: !0 }, temColunasInvisiveis: { type: Boolean, required: !0 }, colunaOrdenacao: { type: String, required: !0 }, direcaoOrdenacao: { type: String, required: !0 } }, emits: { alternarOrdenacao(e) { return typeof e == "string" && e.length > 0; } }, setup(e, { emit: n }) { function r(t) { return (t == null ? void 0 : t.coluna_ordem) !== void 0 && (t == null ? void 0 : t.coluna_ordem) !== null; } function o(t) { n("alternarOrdenacao", t); } return { ArrowUp: Jo, ArrowDown: Bo, isOrdenavel: r, emitAlternarOrdenacao: o }; } }), Ym = { class: "eli-tabela__thead" }, Km = { class: "eli-tabela__tr eli-tabela__tr--header" }, Gm = { key: 0, class: "eli-tabela__th eli-tabela__th--expander", scope: "col" }, Wm = ["onClick"], Hm = { class: "eli-tabela__th-texto" }, Xm = { key: 1, class: "eli-tabela__th-label" }, Qm = { key: 1, class: "eli-tabela__th eli-tabela__th--acoes", scope: "col" }; function ev(e, n, r, o, t, i) { const a = he("ArrowUp"); return D(), Z("thead", Ym, [ N("tr", Km, [ e.temColunasInvisiveis ? (D(), Z("th", Gm)) : be("", !0), (D(!0), Z(ze, null, Ae(e.colunas, (u, c) => (D(), Z("th", { key: `th-${c}`, class: at(["eli-tabela__th", [e.isOrdenavel(u) ? "eli-tabela__th--ordenavel" : void 0]]), scope: "col" }, [ e.isOrdenavel(u) ? (D(), Z("button", { key: 0, type: "button", class: at(["eli-tabela__th-botao", [ e.colunaOrdenacao === String(u.coluna_ordem) ? "eli-tabela__th-botao--ativo" : void 0 ]]), onClick: (l) => e.emitAlternarOrdenacao(String(u.coluna_ordem)) }, [ N("span", Hm, ue(u.rotulo), 1), e.colunaOrdenacao === String(u.coluna_ordem) ? (D(), _e(zt(e.direcaoOrdenacao === "asc" ? e.ArrowUp : e.ArrowDown), { key: 0, class: "eli-tabela__th-icone", size: 16, "stroke-width": 2, "aria-hidden": "true" })) : (D(), _e(a, { key: 1, class: "eli-tabela__th-icone eli-tabela__th-icone--oculto", size: 16, "stroke-width": 2, "aria-hidden": "true" })) ], 10, Wm)) : (D(), Z("span", Xm, ue(u.rotulo), 1)) ], 2))), 128)), e.temAcoes ? (D(), Z("th", Qm, " Ações ")) : be("", !0) ]) ]); } const tv = /* @__PURE__ */ me(Vm, [["render", ev]]), nv = fe({ name: "EliTabelaCelulaTextoSimples", components: {}, props: { dados: { type: Object } }, data() { return {}; }, methods: {}, setup({ dados: e }) { return { dados: e }; } }), rv = { key: 1 }; function iv(e, n, r, o, t, i) { var a, u, c; return (a = e.dados) != null && a.acao ? (D(), Z("button", { key: 0, type: "button", class: "eli-tabela__celula-link", onClick: n[0] || (n[0] = Pe((l) => e.dados.acao(), ["stop", "prevent"])) }, ue((u = e.dados) == null ? void 0 : u.texto), 1)) : (D(), Z("span", rv, ue((c = e.dados) == null ? void 0 : c.texto), 1)); } const ov = /* @__PURE__ */ me(nv, [["render", iv], ["__scopeId", "data-v-7a629ffa"]]), av = fe({ name: "EliTabelaCelulaTextoTruncado", props: { dados: { type: Object } }, setup({ dados: e }) { return { dados: e }; } }), uv = ["title"], lv = ["title"]; function cv(e, n, r, o, t, i) { var a, u, c, l, d; return (a = e.dados) != null && a.acao ? (D(), Z("button", { key: 0, type: "button", class: "eli-tabela__texto-truncado eli-tabela__celula-link", title: (u = e.dados) == null ? void 0 : u.texto, onClick: n[0] || (n[0] = Pe((s) => e.dados.acao(), ["stop", "prevent"])) }, ue((c = e.dados) == null ? void 0 : c.texto), 9, uv)) : (D(), Z("span", { key: 1, class: "eli-tabela__texto-truncado", title: (l = e.dados) == null ? void 0 : l.texto }, ue((d = e.dados) == null ? void 0 : d.texto), 9, lv)); } const sv = /* @__PURE__ */ me(av, [["render", cv], ["__scopeId", "data-v-74854889"]]), dv = fe({ name: "EliTabelaCelulaNumero", components: {}, props: { dados: { type: Object } }, data() { return {}; }, methods: {}, setup({ dados: e }) { return { dados: e }; } }), fv = { key: 1 }; function mv(e, n, r, o, t, i) { var a, u, c; return (a = e.dados) != null && a.acao ? (D(), Z("button", { key: 0, type: "button", class: "eli-tabela__celula-link", onClick: n[0] || (n[0] = Pe((l) => e.dados.acao(), ["stop", "prevent"])) }, ue(String((u = e.dados) == null ? void 0 : u.numero).replace(".", ",")), 1)) : (D(), Z("span", fv, ue(String((c = e.dados) == null ? void 0 : c.numero).replace(".", ",")), 1)); } const vv = /* @__PURE__ */ me(dv, [["render", mv], ["__scopeId", "data-v-e7bac7ff"]]), pv = { textoSimples: ov, textoTruncado: sv, numero: vv }, gv = fe({ name: "EliTabelaCelula", props: { celula: { // `ComponenteCelula` é uma tupla `readonly [tipo, dados]`. type: Array, required: !0 } }, setup(e) { const n = R(() => e.celula[0]), r = R(() => e.celula[1]), o = R(() => pv[n.value]), t = R(() => r.value); return { Componente: o, dadosParaComponente: t }; } }); function hv(e, n, r, o, t, i) { return D(), _e(zt(e.Componente), { dados: e.dadosParaComponente }, null, 8, ["dados"]); } const Ta = /* @__PURE__ */ me(gv, [["render", hv]]), $v = fe({ name: "EliTabelaDetalhesLinha", components: { EliTabelaCelula: Ta }, props: { linha: { type: null, required: !0 }, colunasInvisiveis: { type: Array, required: !0 } } }), bv = { class: "eli-tabela__detalhes" }, _v = { class: "eli-tabela__detalhe-rotulo" }, yv = { class: "eli-tabela__detalhe-valor" }; function kv(e, n, r, o, t, i) { const a = he("EliTabelaCelula"); return D(), Z("div", bv, [ (D(!0), Z(ze, null, Ae(e.colunasInvisiveis, (u, c) => (D(), Z("div", { key: `det-${c}-${u.rotulo}`, class: "eli-tabela__detalhe" }, [ N("div", _v, ue(u.rotulo), 1), N("div", yv, [ ie(a, { celula: u.celula(e.linha) }, null, 8, ["celula"]) ]) ]))), 128)) ]); } const Sv = /* @__PURE__ */ me($v, [["render", kv], ["__scopeId", "data-v-f1ee8d20"]]), wv = fe({ name: "EliTabelaBody", components: { EliTabelaCelula: Ta, EliTabelaDetalhesLinha: Sv, MoreVertical: _m, ChevronRight: Vo, ChevronDown: qo }, props: { colunas: { type: Array, required: !0 }, colunasInvisiveis: { type: Array, required: !0 }, temColunasInvisiveis: { type: Boolean, required: !0 }, linhasExpandidas: { type: Object, required: !0 }, linhas: { type: Array, required: !0 }, temAcoes: { type: Boolean, required: !0 }, menuAberto: { type: Number, required: !0 }, possuiAcoes: { type: Function, required: !0 }, toggleMenu: { type: Function, required: !0 }, alternarLinhaExpandida: { type: Function, required: !0 } }, setup() { return { ChevronRight: Vo, ChevronDown: qo }; } }), Iv = { class: "eli-tabela__tbody" }, zv = ["aria-expanded", "aria-label", "title", "onClick"], xv = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label", "title", "onClick"], Dv = ["colspan"]; function Ov(e, n, r, o, t, i) { const a = he("EliTabelaCelula"), u = he("MoreVertical"), c = he("EliTabelaDetalhesLinha"); return D(), Z("tbody", Iv, [ (D(!0), Z(ze, null, Ae(e.linhas, (l, d) => { var s, p, $, g, m, y; return D(), Z(ze, { key: `grp-${d}` }, [ N("tr", { class: at(["eli-tabela__tr", [d % 2 === 1 ? "eli-tabela__tr--zebra" : void 0]]) }, [ e.temColunasInvisiveis ? (D(), Z("td", { class: "eli-tabela__td eli-tabela__td--expander", key: `td-${d}-exp` }, [ N("button", { type: "button", class: at(["eli-tabela__expander-botao", [(s = e.linhasExpandidas) != null && s[d] ? "eli-tabela__expander-botao--ativo" : void 0]]), "aria-expanded": (p = e.linhasExpandidas) != null && p[d] ? "true" : "false", "aria-label": ($ = e.linhasExpandidas) != null && $[d] ? "Ocultar colunas ocultas" : "Mostrar colunas ocultas", title: (g = e.linhasExpandidas) != null && g[d] ? "Ocultar detalhes" : "Mostrar detalhes", onClick: Pe((b) => e.alternarLinhaExpandida(d), ["stop"]) }, [ (D(), _e(zt((m = e.linhasExpandidas) != null && m[d] ? e.ChevronDown : e.ChevronRight), { class: "eli-tabela__expander-icone", size: 16, "stroke-width": 2, "aria-hidden": "true" })) ], 10, zv) ])) : be("", !0), (D(!0), Z(ze, null, Ae(e.colunas, (b, z) => (D(), Z("td", { key: `td-${d}-${z}`, class: "eli-tabela__td" }, [ ie(a, { celula: b.celula(l) }, null, 8, ["celula"]) ]))), 128)), e.temAcoes ? (D(), Z("td", { class: "eli-tabela__td eli-tabela__td--acoes", key: `td-${d}-acoes` }, [ N("div", { class: at(["eli-tabela__acoes-container", [e.menuAberto === d ? "eli-tabela__acoes-container--aberto" : void 0]]) }, [ N("button", { class: "eli-tabela__acoes-toggle", type: "button", id: `eli-tabela-acoes-toggle-${d}`, disabled: !e.possuiAcoes(d), "aria-haspopup": "menu", "aria-expanded": e.menuAberto === d ? "true" : "false", "aria-controls": e.possuiAcoes(d) ? `eli-tabela-acoes-menu-${d}` : void 0, "aria-label": e.possuiAcoes(d) ? "Ações da linha" : "Nenhuma ação disponível", title: e.possuiAcoes(d) ? "Ações" : "Nenhuma ação disponível", onClick: Pe((b) => e.toggleMenu(d, b), ["stop"]) }, [ ie(u, { class: "eli-tabela__acoes-toggle-icone", size: 18, "stroke-width": 2 }) ], 8, xv) ], 2) ])) : be("", !0) ], 2), e.temColunasInvisiveis && ((y = e.linhasExpandidas) != null && y[d]) ? (D(), Z("tr", { key: 0, class: at(["eli-tabela__tr eli-tabela__tr--detalhes", [d % 2 === 1 ? "eli-tabela__tr--zebra" : void 0]]) }, [ N("td", { class: "eli-tabela__td eli-tabela__td--detalhes", colspan: (e.temColunasInvisiveis ? 1 : 0) + e.colunas.length + (e.temAcoes ? 1 : 0) }, [ ie(c, { linha: l, colunasInvisiveis: e.colunasInvisiveis }, null, 8, ["linha", "colunasInvisiveis"]) ], 8, Dv) ], 2)) : be("", !0) ], 64); }), 128)) ]); } const Uv = /* @__PURE__ */ me(wv, [["render", Ov]]), jv = fe({ name: "EliTabelaMenuAcoes", props: { menuAberto: { type: Number, required: !0 }, posicao: { type: Object, required: !0 }, acoes: { type: Array, required: !0 }, linha: { // Aceita qualquer tipo de linha (objeto, string, etc.) sem validação runtime. type: null, required: !0 } }, emits: { executar(e) { return e !== null && typeof e == "object"; } }, setup(e, { emit: n, expose: r }) { const o = ee(null); r({ menuEl: o }); const t = R(() => e.acoes.length > 0); function i(a) { e.linha && n("executar", { acao: a.acao, linha: e.linha }); } return { menuEl: o, possuiAcoes: t, emitExecutar: i }; } }), Tv = ["id", "aria-labelledby"], Ev = ["aria-label", "title", "onClick"], Pv = { class: "eli-tabela__acoes-item-texto" }; function Nv(e, n, r, o, t, i) { return D(), _e(Lf, { to: "body" }, [ e.menuAberto !== null && e.possuiAcoes ? (D(), Z("ul", { key: 0, id: `eli-tabela-acoes-menu-${e.menuAberto}`, ref: "menuEl", class: "eli-tabela__acoes-menu", role: "menu", "aria-labelledby": `eli-tabela-acoes-toggle-${e.menuAberto}`, style: jr({ position: "fixed", top: `${e.posicao.top}px`, left: `${e.posicao.left}px`, zIndex: 999999 }) }, [ (D(!0), Z(ze, null, Ae(e.acoes, (a) => (D(), Z("li", { key: `acao-${e.menuAberto}-${a.indice}`, class: "eli-tabela__acoes-item", role: "none" }, [ N("button", { type: "button", class: "eli-tabela__acoes-item-botao", style: jr({ color: a.acao.cor }), role: "menuitem", "aria-label": a.acao.rotulo, title: a.acao.rotulo, onClick: Pe((u) => e.emitExecutar(a), ["stop"]) }, [ (D(), _e(zt(a.acao.icone), { class: "eli-tabela__acoes-item-icone", size: 16, "stroke-width": 2 })), N("span", Pv, ue(a.acao.rotulo), 1) ], 12, Ev) ]))), 128)) ], 12, Tv)) : be("", !0) ]); } const Av = /* @__PURE__ */ me(jv, [["render", Nv]]), Zv = fe({ name: "EliTabelaPaginacao", props: { pagina: { type: Number, required: !0 }, totalPaginas: { type: Number, required: !0 }, maximoBotoes: { type: Number, required: !1 } }, emits: { alterar(e) { return Number.isFinite(e); } }, setup(e, { emit: n }) { const r = R(() => { const l = e.maximoBotoes; return typeof l == "number" && l >= 5 ? Math.floor(l) : 7; }), o = R(() => { const l = e.totalPaginas, d = e.pagina, s = r.value, p = [], $ = (z) => { p.push({ label: String(z), pagina: z, ativo: z === d }); }, g = () => { p.push({ label: "…", ehEllipsis: !0 }); }; if (l <= s) { for (let z = 1; z <= l; z += 1) $(z); return p; } const m = Math.max(3, s - 2); let y = Math.max(2, d - Math.floor(m / 2)), b = y + m - 1; b >= l && (b = l - 1, y = b - m + 1), $(1), y > 2 && g(); for (let z = y; z <= b; z += 1) $(z); return b < l - 1 && g(), $(l), p; }); function t(l) { if (!l) return; const d = Math.min(Math.max(1, l), e.totalPaginas); d !== e.pagina && n("alterar", d); } const i = R(() => e.pagina <= 1), a = R(() => e.pagina >= e.totalPaginas), u = R(() => e.pagina), c = R(() => e.totalPaginas); return { botoes: o, irParaPagina: t, anteriorDesabilitado: i, proximaDesabilitada: a, paginaAtual: u, totalPaginasExibidas: c }; } }), Cv = { key: 0, class: "eli-tabela__paginacao", role: "navigation", "aria-label": "Paginação de resultados" }, Mv = ["disabled"], Fv = { key: 0, class: "eli-tabela__pagina-ellipsis", "aria-hidden": "true" }, Lv = ["disabled", "aria-current", "aria-label", "onClick"], Rv = ["disabled"]; function Bv(e, n, r, o, t, i) { return e.totalPaginasExibidas > 1 ? (D(), Z("nav", Cv, [ N("button", { type: "button", class: "eli-tabela__pagina-botao", disabled: e.anteriorDesabilitado, "aria-label": "Página anterior", onClick: n[0] || (n[0] = (a) => e.irParaPagina(e.paginaAtual - 1)) }, " << ", 8, Mv), (D(!0), Z(ze, null, Ae(e.botoes, (a, u) => (D(), Z(ze, { key: `${a.label}-${u}` }, [ a.ehEllipsis ? (D(), Z("span", Fv, ue(a.label), 1)) : (D(), Z("button", { key: 1, type: "button", class: at(["eli-tabela__pagina-botao", a.ativo ? "eli-tabela__pagina-botao--ativo" : void 0]), disabled: a.ativo, "aria-current": a.ativo ? "page" : void 0, "aria-label": `Ir para página ${a.label}`, onClick: (c) => e.irParaPagina(a.pagina) }, ue(a.label), 11, Lv)) ], 64))), 128)), N("button", { type: "button", class: "eli-tabela__pagina-botao", disabled: e.proximaDesabilitada, "aria-label": "Próxima página", onClick: n[1] || (n[1] = (a) => e.irParaPagina(e.paginaAtual + 1)) }, " >> ", 8, Rv) ])) : be("", !0); } const Jv = /* @__PURE__ */ me(Zv, [["render", Bv], ["__scopeId", "data-v-5ca7a362"]]), Yo = "application/x-eli-tabela-coluna", qv = fe({ name: "EliTabelaModalColunas", props: { aberto: { type: Boolean, required: !0 }, rotulosColunas: { type: Array, required: !0 }, configInicial: { type: Object, required: !0 }, colunas: { type: Array, required: !0 } }, emits: { fechar() { return !0; }, salvar(e) { return !0; } }, setup(e, { emit: n }) { const r = ee([]), o = ee([]); function t() { var T, O; const g = e.rotulosColunas, m = (((T = e.configInicial.visiveis) == null ? void 0 : T.length) ?? 0) > 0 || (((O = e.configInicial.invisiveis) == null ? void 0 : O.length) ?? 0) > 0, y = new Set( e.colunas.filter((S) => S.visivel === !1).map((S) => S.rotulo) ), b = m ? new Set(e.configInicial.invisiveis ?? []) : y, z = g.filter((S) => !b.has(S)), q = e.configInicial.visiveis ?? [], Y = new Set(z), C = []; for (const S of q) Y.has(S) && C.push(S); for (const S of z) C.includes(S) || C.push(S); r.value = C, o.value = g.filter((S) => b.has(S)); } Ge( () => [e.aberto, e.rotulosColunas, e.configInicial, e.colunas], () => { e.aberto && t(); }, { deep: !0, immediate: !0 } ); function i() { n("fechar"); } function a() { n("salvar", { visiveis: [...r.value], invisiveis: [...o.value] }); } function u(g, m) { var y, b; try { (y = g.dataTransfer) == null || y.setData(Yo, JSON.stringify(m)), (b = g.dataTransfer) == null || b.setData("text/plain", m.rotulo), g.dataTransfer.effectAllowed = "move"; } catch { } } function c(g) { var m; try { const y = (m = g.dataTransfer) == null ? void 0 : m.getData(Yo); if (!y) return null; const b = JSON.parse(y); return !b || typeof b.rotulo != "string" || b.origem !== "visiveis" && b.origem !== "invisiveis" ? null : b; } catch { return null; } } function l(g) { const m = g.origem === "visiveis" ? r.value : o.value, y = m.indexOf(g.rotulo); y >= 0 && m.splice(y, 1); } function d(g, m, y) { const b = g === "visiveis" ? r.value : o.value, z = b.indexOf(m); z >= 0 && b.splice(z, 1), y === null || y < 0 || y > b.length ? b.push(m) : b.splice(y, 0, m); } function s(g, m, y, b) { u(g, { rotulo: m, origem: y, index: b }); } function p(g, m, y) { const b = c(g); if (b) if (l(b), d(m, b.rotulo, y), m === "visiveis") { const z = o.value.indexOf(b.rotulo); z >= 0 && o.value.splice(z, 1); } else { const z = r.value.indexOf(b.rotulo); z >= 0 && r.value.splice(z, 1); } } function $(g, m, y) { const b = c(g); if (b) if (l(b), d(m, b.rotulo, null), m === "visiveis") { const z = o.value.indexOf(b.rotulo); z >= 0 && o.value.splice(z, 1); } else { const z = r.value.indexOf(b.rotulo); z >= 0 && r.value.splice(z, 1); } } return { visiveisLocal: r, invisiveisLocal: o, emitFechar: i, emitSalvar: a, onDragStart: s, onDropItem: p, onDropLista: $ }; } }), Vv = { class: "eli-tabela-modal-colunas__modal", role: "dialog", "aria-modal": "true", "aria-label": "Configurar colunas" }, Yv = { class: "eli-tabela-modal-colunas__header" }, Kv = { class: "eli-tabela-modal-colunas__conteudo" }, Gv = { class: "eli-tabela-modal-colunas__coluna" }, Wv = ["onDragstart", "onDrop"], Hv = { class: "eli-tabela-modal-colunas__item-texto" }, Xv = { class: "eli-tabela-modal-colunas__coluna" }, Qv = ["onDragstart", "onDrop"], ep = { class: "eli-tabela-modal-colunas__item-texto" }, tp = { class: "eli-tabela-modal-colunas__footer" }; function np(e, n, r, o, t, i) { return e.aberto ? (D(), Z("div", { key: 0, class: "eli-tabela-modal-colunas__overlay", role: "presentation", onClick: n[9] || (n[9] = Pe((...a) => e.emitFechar && e.emitFechar(...a), ["self"])) }, [ N("div", Vv, [ N("header", Yv, [ n[10] || (n[10] = N("h3", { class: "eli-tabela-modal-colunas__titulo" }, "Colunas", -1)), N("button", { type: "button", class: "eli-tabela-modal-colunas__fechar", "aria-label": "Fechar", onClick: n[0] || (n[0] = (...a) => e.emitFechar && e.emitFechar(...a)) }, " × ") ]), N("div", Kv, [ N("div", Gv, [ n[12] || (n[12] = N("div", { class: "eli-tabela-modal-colunas__coluna-titulo" }, "Visíveis", -1)), N("div", { class: "eli-tabela-modal-colunas__lista", onDragover: n[2] || (n[2] = Pe(() => { }, ["prevent"])), onDrop: n[3] || (n[3] = (a) => e.onDropLista(a, "visiveis", null)) }, [ (D(!0), Z(ze, null, Ae(e.visiveisLocal, (a, u) => (D(), Z("div", { key: `vis-${a}`, class: "eli-tabela-modal-colunas__item", draggable: "true", onDragstart: (c) => e.onDragStart(c, a, "visiveis", u), onDragover: n[1] || (n[1] = Pe(() => { }, ["prevent"])), onDrop: (c) => e.onDropItem(c, "visiveis", u) }, [ n[11] || (n[11] = N("span", { class: "eli-tabela-modal-colunas__item-handle", "aria-hidden": "true" }, "⋮⋮", -1)), N("span", Hv, ue(a), 1) ], 40, Wv))), 128)) ], 32) ]), N("div", Xv, [ n[14] || (n[14] = N("div", { class: "eli-tabela-modal-colunas__coluna-titulo" }, "Invisíveis", -1)), N("div", { class: "eli-tabela-modal-colunas__lista", onDragover: n[5] || (n[5] = Pe(() => { }, ["prevent"])), onDrop: n[6] || (n[6] = (a) => e.onDropLista(a, "invisiveis", null)) }, [ (D(!0), Z(ze, null, Ae(e.invisiveisLocal, (a, u) => (D(), Z("div", { key: `inv-${a}`, class: "eli-tabela-modal-colunas__item", draggable: "true", onDragstart: (c) => e.onDragStart(c, a, "invisiveis", u), onDragover: n[4] || (n[4] = Pe(() => { }, ["prevent"])), onDrop: (c) => e.onDropItem(c, "invisiveis", u) }, [ n[13] || (n[13] = N("span", { class: "eli-tabela-modal-colunas__item-handle", "aria-hidden": "true" }, "⋮⋮", -1)), N("span", ep, ue(a), 1) ], 40, Qv))), 128)) ], 32) ]) ]), N("footer", tp, [ N("button", { type: "button", class: "eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--sec", onClick: n[7] || (n[7] = (...a) => e.emitFechar && e.emitFechar(...a)) }, " Cancelar "), N("button", { type: "button", class: "eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--prim", onClick: n[8] || (n[8] = (...a) => e.emitSalvar && e.emitSalvar(...a)) }, " Salvar ") ]) ]) ])) : be("", !0); } const rp = /* @__PURE__ */ me(qv, [["render", np], ["__scopeId", "data-v-b8f693ef"]]), Ea = Object.freeze({ status: "aborted" }); function v(e, n, r) { function o(u, c) { if (u._zod || Object.defineProperty(u, "_zod", { value: { def: c, constr: a, traits: /* @__PURE__ */ new Set() }, enumerable: !1 }), u._zod.traits.has(e)) return; u._zod.traits.add(e), n(u, c); const l = a.prototype, d = Object.keys(l); for (let s = 0; s < d.length; s++) { const p = d[s]; p in u || (u[p] = l[p].bind(u)); } } const t = (r == null ? void 0 : r.Parent) ?? Object; class i extends t { } Object.defineProperty(i, "name", { value: e }); function a(u) { var c; const l = r != null && r.Parent ? new i() : this; o(l, u), (c = l._zod).deferred ?? (c.deferred = []); for (const d of l._zod.deferred) d(); return l; } return Object.defineProperty(a, "init", { value: o }), Object.defineProperty(a, Symbol.hasInstance, { value: (u) => { var c, l; return r != null && r.Parent && u instanceof r.Parent ? !0 : (l = (c = u == null ? void 0 : u._zod) == null ? void 0 : c.traits) == null ? void 0 : l.has(e); } }), Object.defineProperty(a, "name", { value: e }), a; } const Pa = Symbol("zod_brand"); class lt extends Error { constructor() { super("Encountered Promise during synchronous parse. Use .parseAsync() instead."); } } class An extends Error { constructor(n) { super(`Encountered unidirectional transform during encode: ${n}`), this.name = "ZodEncodeError"; } } const Dn = {}; function we(e) { return e && Object.assign(Dn, e), Dn; } function ip(e) { return e; } function op(e) { return e; } function ap(e) { } function up(e) { throw new Error("Unexpected value in exhaustive check"); } function lp(e) { } function Lr(e) { const n = Object.values(e).filter((o) => typeof o == "number"); return Object.entries(e).filter(([o, t]) => n.indexOf(+o) === -1).map(([o, t]) => t); } function I(e, n = "|") { return e.map((r) => L(r)).join(n); } function On(e, n) { return typeof n == "bigint" ? n.toString() : n; } function Ft(e) { return { get value() { { const n = e(); return Object.defineProperty(this, "value", { value: n }), n; } } }; } function ft(e) { return e == null; } function Zn(e) { const n = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length; return e.slice(n, r); } function Na(e, n) { const r = (e.toString().split(".")[1] || "").length, o = n.toString(); let t = (o.split(".")[1] || "").length; if (t === 0 && /\d?e-\d?/.test(o)) { const c = o.match(/\d?e-(\d?)/); c != null && c[1] && (t = Number.parseInt(c[1])); } const i = r > t ? r : t, a = Number.parseInt(e.toFixed(i).replace(".", "")), u = Number.parseInt(n.toFixed(i).replace(".", "")); return a % u / 10 ** i; } const Ko = Symbol("evaluating"); function G(e, n, r) { let o; Object.defineProperty(e, n, { get() { if (o !== Ko) return o === void 0 && (o = Ko, o = r()), o; }, set(t) { Object.defineProperty(e, n, { value: t // configurable: true, }); }, configurable: !0 }); } function cp(e) { return Object.create(Object.getPrototypeOf(e), Object.getOwnPropertyDescriptors(e)); } function rt(e, n, r) { Object.defineProperty(e, n, { value: r, writable: !0, enumerable: !0, configurable: !0 }); } function qe(...e) { const n = {}; for (const r of e) { const o = Object.getOwnPropertyDescriptors(r); Object.assign(n, o); } return Object.defineProperties({}, n); } function sp(e) { return qe(e._zod.def); } function dp(e, n) { return n ? n.reduce((r, o) => r == null ? void 0 : r[o], e) : e; } function fp(e) { const n = Object.keys(e), r = n.map((o) => e[o]); return Promise.all(r).then((o) => { const t = {}; for (let i = 0; i < n.length; i++) t[n[i]] = o[i]; return t; }); } function mp(e = 10) { const n = "abcdefghijklmnopqrstuvwxyz"; let r = ""; for (let o = 0; o < e; o++) r += n[Math.floor(Math.random() * n.length)]; return r; } function Tr(e) { return JSON.stringify(e); } function Aa(e) { return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, ""); } const Rr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => { }; function ht(e) { return typeof e == "object" && e !== null && !Array.isArray(e); } const Za = Ft(() => { var e; if (typeof navigator < "u" && ((e = navigator == null ? void 0 : navigator.userAgent) != null && e.includes("Cloudflare"))) return !1; try { const n = Function; return new n(""), !0; } catch { return !1; } }); function ct(e) { if (ht(e) === !1) return !1; const n = e.constructor; if (n === void 0 || typeof n != "function") return !0; const r = n.prototype; return !(ht(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1); } function Cn(e) { return ct(e) ? { ...e } : Array.isArray(e) ? [...e] : e; } function vp(e) { let n = 0; for (const r in e) Object.prototype.hasOwnProperty.call(e, r) && n++; return n; } const pp = (e) => { const n = typeof e; switch (n) { case "undefined": return "undefined"; case "string": return "string"; case "number": return Number.isNaN(e) ? "nan" : "number"; case "boolean": return "boolean"; case "function": return "function"; case "bigint": return "bigint"; case "symbol": return "symbol"; case "object": return Array.isArray(e) ? "array" : e === null ? "null" : e.then && typeof e.then == "function" && e.catch && typeof e.catch == "function" ? "promise" : typeof Map < "u" && e instanceof Map ? "map" : typeof Set < "u" && e instanceof Set ? "set" : typeof Date < "u" && e instanceof Date ? "date" : typeof File < "u" && e instanceof File ? "file" : "object"; default: throw new Error(`Unknown data type: ${n}`); } }, Un = /* @__PURE__ */ new Set(["string", "number", "symbol"]), Ca = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]); function We(e) { return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } function Me(e, n, r) { const o = new e._zod.constr(n ?? e._zod.def); return (!n || r != null && r.parent) && (o._zod.parent = e), o; } function _(e) { const n = e; if (!n) return {}; if (typeof n == "string") return { error: () => n }; if ((n == null ? void 0 : n.message) !== void 0) { if ((n == null ? void 0 : n.error) !== void 0) throw new Error("Cannot specify both `message` and `error` params"); n.error = n.message; } return delete n.message, typeof n.error == "string" ? { ...n, error: () => n.error } : n; } function gp(e) { let n; return new Proxy({}, { get(r, o, t) { return n ?? (n = e()), Reflect.get(n, o, t); }, set(r, o, t, i) { return n ?? (n = e()), Reflect.set(n, o, t, i); }, has(r, o) { return n ?? (n = e()), Reflect.has(n, o); }, deleteProperty(r, o) { return n ?? (n = e()), Reflect.deleteProperty(n, o); }, ownKeys(r) { return n ?? (n = e()), Reflect.ownKeys(n); }, getOwnPropertyDescriptor(r, o) { return n ?? (n = e()), Reflect.getOwnPropertyDescriptor(n, o); }, defineProperty(r, o, t) { return n ?? (n = e()), Reflect.defineProperty(n, o, t); } }); } function L(e) { return typeof e == "bigint" ? e.toString() + "n" : typeof e == "string" ? `"${e}"` : `${e}`; } function Ma(e) { return Object.keys(e).filter((n) => e[n]._zod.optin === "optional" && e[n]._zod.optout === "optional"); } const Fa = { safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER], int32: [-2147483648, 2147483647], uint32: [0, 4294967295], float32: [-34028234663852886e22, 34028234663852886e22], float64: [-Number.MAX_VALUE, Number.MAX_VALUE] }, La = { int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")], uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")] }; function Ra(e, n) { const r = e._zod.def, o = r.checks; if (o && o.length > 0) throw new Error(".pick() cannot be used on object schemas containing refinements"); const i = qe(e._zod.def, { get shape() { const a = {}; for (const u in n) { if (!(u in r.shape)) throw new Error(`Unrecognized key: "${u}"`); n[u] && (a[u] = r.shape[u]); } return rt(this, "shape", a), a; }, checks: [] }); return Me(e, i); } function Ba(e, n) { const r = e._zod.def, o = r.checks; if (o && o.length > 0) throw new Error(".omit() cannot be used on object schemas containing refinements"); const i = qe(e._zod.def, { get shape() { const a = { ...e._zod.def.shape }; for (const u in n) { if (!(u in r.shape)) throw new Error(`Unrecognized key: "${u}"`); n[u] && delete a[u]; } return rt(this, "shape", a), a; }, checks: [] }); return Me(e, i); } function Ja(e, n) { if (!ct(n)) throw new Error("Invalid input to extend: expected a plain object"); const r = e._zod.def.checks; if (r && r.length > 0) { const i = e._zod.def.shape; for (const a in n) if (Object.getOwnPropertyDescriptor(i, a) !== void 0) throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead."); } const t = qe(e._zod.def, { get shape() { const i = { ...e._zod.def.shape, ...n }; return rt(this, "shape", i), i; } }); return Me(e, t); } function qa(e, n) { if (!ct(n)) throw new Error("Invalid input to safeExtend: expected a plain object"); const r = qe(e._zod.def, { get shape() { const o = { ...e._zod.def.shape, ...n }; return rt(this, "shape", o), o; } }); return Me(e, r); } function Va(e, n) { const r = qe(e._zod.def, { get shape() { const o = { ...e._zod.def.shape, ...n._zod.def.shape }; return rt(this, "shape", o), o; }, get catchall() { return n._zod.def.catchall; }, checks: [] // delete existing checks }); return Me(e, r); } function Ya(e, n, r) { const t = n._zod.def.checks; if (t && t.length > 0) throw new Error(".partial() cannot be used on object schemas containing refinements"); const a = qe(n._zod.def, { get shape() { const u = n._zod.def.shape, c = { ...u }; if (r) for (const l in r) { if (!(l in u)) throw new Error(`Unrecognized key: "${l}"`); r[l] && (c[l] = e ? new e({ type: "optional", innerType: u[l] }) : u[l]); } else for (const l in u) c[l] = e ? new e({ type: "optional", innerType: u[l] }) : u[l]; return rt(this, "shape", c), c; }, checks: [] }); return Me(n, a); } function Ka(e, n, r) { const o = qe(n._zod.def, { get shape() { const t = n._zod.def.shape, i = { ...t }; if (r) for (const a in r) { if (!(a in i)) throw new Error(`Unrecognized key: "${a}"`); r[a] && (i[a] = new e({ type: "nonoptional", innerType: t[a] })); } else for (const a in t) i[a] = new e({ type: "nonoptional", innerType: t[a] }); return rt(this, "shape", i), i; } }); return Me(n, o); } function ut(e, n = 0) { var r; if (e.aborted === !0) return !0; for (let o = n; o < e.issues.length; o++) if (((r = e.issues[o]) == null ? void 0 : r.continue) !== !0) return !0; return !1; } function Re(e, n) { return n.map((r) => { var o; return (o = r).path ?? (o.path = []), r.path.unshift(e), r; }); } function Et(e) { return typeof e == "string" ? e : e == null ? void 0 : e.message; } function Ce(e, n, r) { var t, i, a, u, c, l; const o = { ...e, path: e.path ?? [] }; if (!e.message) { const d = Et((a = (i = (t = e.inst) == null ? void 0 : t._zod.def) == null ? void 0 : i.error) == null ? void 0 : a.call(i, e)) ?? Et((u = n == null ? void 0 : n.error) == null ? void 0 : u.call(n, e)) ?? Et((c = r.customError) == null ? void 0 : c.call(r, e)) ?? Et((l = r.localeError) == null ? void 0 : l.call(r, e)) ?? "Invalid input"; o.message = d; } return delete o.inst, delete o.continue, n != null && n.reportInput || delete o.input, o; } function Mn(e) { return e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof File ? "file" : "unknown"; } function Fn(e) { return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown"; } function B(e) { const n = typeof e; switch (n) { case "number": return Number.isNaN(e) ? "nan" : "number"; case "object": { if (e === null) return "null"; if (Array.isArray(e)) return "array"; const r = e; if (r && Object.getPrototypeOf(r) !== Object.prototype && "constructor" in r && r.constructor) return r.constructor.name; } } return n; } function $t(...e) { const [n, r, o] = e; return typeof n == "string" ? { message: n, code: "custom", input: r, inst: o } : { ...n }; } function hp(e) { return Object.entries(e).filter(([n, r]) => Number.isNaN(Number.parseInt(n, 10))).map((n) => n[1]); } function Ga(e) { const n = atob(e), r = new Uint8Array(n.length); for (let o = 0; o < n.length; o++) r[o] = n.charCodeAt(o); return r; } function Wa(e) { let n = ""; for (let r = 0; r < e.length; r++) n += String.fromCharCode(e[r]); return btoa(n); } function $p(e) { const n = e.replace(/-/g, "+").replace(/_/g, "/"), r = "=".repeat((4 - n.length % 4) % 4); return Ga(n + r); } function bp(e) { return Wa(e).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); } function _p(e) { const n = e.replace(/^0x/, ""); if (n.length % 2 !== 0) throw new Error("Invalid hex string length"); const r = new Uint8Array(n.length / 2); for (let o = 0; o < n.length; o += 2) r[o / 2] = Number.parseInt(n.slice(o, o + 2), 16); return r; } function yp(e) { return Array.from(e).map((n) => n.toString(16).padStart(2, "0")).join(""); } class kp { constructor(...n) { } } const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, BIGINT_FORMAT_RANGES: La, Class: kp, NUMBER_FORMAT_RANGES: Fa, aborted: ut, allowsEval: Za, assert: lp, assertEqual: ip, assertIs: ap, assertNever: up, assertNotEqual: op, assignProp: rt, base64ToUint8Array: Ga, base64urlToUint8Array: $p, cached: Ft, captureStackTrace: Rr, cleanEnum: hp, cleanRegex: Zn, clone: Me, cloneDef: sp, createTransparentProxy: gp, defineLazy: G, esc: Tr, escapeRegex: We, extend: Ja, finalizeIssue: Ce, floatSafeRemainder: Na, getElementAtPath: dp, getEnumValues: Lr, getLengthableOrigin: Fn, getParsedType: pp, getSizableOrigin: Mn, hexToUint8Array: _p, isObject: ht, isPlainObject: ct, issue: $t, joinValues: I, jsonStringifyReplacer: On, merge: Va, mergeDefs: qe, normalizeParams: _, nullish: ft, numKeys: vp, objectClone: cp, omit: Ba, optionalKeys: Ma, parsedType: B, partial: Ya, pick: Ra, prefixIssues: Re, primitiveTypes: Ca, promiseAllObject: fp, propertyKeyTypes: Un, randomString: mp, required: Ka, safeExtend: qa, shallowClone: Cn, slugify: Aa, stringifyPrimitive: L, uint8ArrayToBase64: Wa, uint8ArrayToBase64url: bp, uint8ArrayToHex: yp, unwrapMessage: Et }, Symbol.toStringTag, { value: "Module" })), Xa = (e, n) => { e.name = "$ZodError", Object.defineProperty(e, "_zod", { value: e._zod, enumerable: !1 }), Object.defineProperty(e, "issues", { value: n, enumerable: !1 }), e.message = JSON.stringify(n, On, 2), Object.defineProperty(e, "toString", { value: () => e.message, enumerable: !1 }); }, Br = v("$ZodError", Xa), Ue = v("$ZodError", Xa, { Parent: Error }); function Jr(e, n = (r) => r.message) { const r = {}, o = []; for (const t of e.issues) t.path.length > 0 ? (r[t.path[0]] = r[t.path[0]] || [], r[t.path[0]].push(n(t))) : o.push(n(t)); return { formErrors: o, fieldErrors: r }; } function qr(e, n = (r) => r.message) { const r = { _errors: [] }, o = (t) => { for (const i of t.issues) if (i.code === "invalid_union" && i.errors.length) i.errors.map((a) => o({ issues: a })); else if (i.code === "invalid_key") o({ issues: i.issues }); else if (i.code === "invalid_element") o({ issues: i.issues }); else if (i.path.length === 0) r._errors.push(n(i)); else { let a = r, u = 0; for (; u < i.path.length; ) { const c = i.path[u]; u === i.path.length - 1 ? (a[c] = a[c] || { _errors: [] }, a[c]._errors.push(n(i))) : a[c] = a[c] || { _errors: [] }, a = a[c], u++; } } }; return o(e), r; } function Qa(e, n = (r) => r.message) { const r = { errors: [] }, o = (t, i = []) => { var a, u; for (const c of t.issues) if (c.code === "invalid_union" && c.errors.length) c.errors.map((l) => o({ issues: l }, c.path)); else if (c.code === "invalid_key") o({ issues: c.issues }, c.path); else if (c.code === "invalid_element") o({ issues: c.issues }, c.path); else { const l = [...i, ...c.path]; if (l.length === 0) { r.errors.push(n(c)); continue; } let d = r, s = 0; for (; s < l.length; ) { const p = l[s], $ = s === l.length - 1; typeof p == "string" ? (d.properties ?? (d.properties = {}), (a = d.properties)[p] ?? (a[p] = { errors: [] }), d = d.properties[p]) : (d.items ?? (d.items = []), (u = d.items)[p] ?? (u[p] = { errors: [] }), d = d.items[p]), $ && d.errors.push(n(c)), s++; } } }; return o(e), r; } function eu(e) { const n = [], r = e.map((o) => typeof o == "object" ? o.key : o); for (const o of r) typeof o == "number" ? n.push(`[${o}]`) : typeof o == "symbol" ? n.push(`[${JSON.stringify(String(o))}]`) : /[^\w$]/.test(o) ? n.push(`[${JSON.stringify(o)}]`) : (n.length && n.push("."), n.push(o)); return n.join(""); } function tu(e) { var o; const n = [], r = [...e.issues].sort((t, i) => (t.path ?? []).length - (i.path ?? []).length); for (const t of r) n.push(`✖ ${t.message}`), (o = t.path) != null && o.length && n.push(` → at ${eu(t.path)}`); return n.join(` `); } const Lt = (e) => (n, r, o, t) => { const i = o ? Object.assign(o, { async: !1 }) : { async: !1 }, a = n._zod.run({ value: r, issues: [] }, i); if (a instanceof Promise) throw new lt(); if (a.issues.length) { const u = new ((t == null ? void 0 : t.Err) ?? e)(a.issues.map((c) => Ce(c, i, we()))); throw Rr(u, t == null ? void 0 : t.callee), u; } return a.value; }, Er = /* @__PURE__ */ Lt(Ue), Rt = (e) => async (n, r, o, t) => { const i = o ? Object.assign(o, { async: !0 }) : { async: !0 }; let a = n._zod.run({ value: r, issues: [] }, i); if (a instanceof Promise && (a = await a), a.issues.length) { const u = new ((t == null ? void 0 : t.Err) ?? e)(a.issues.map((c) => Ce(c, i, we()))); throw Rr(u, t == null ? void 0 : t.callee), u; } return a.value; }, Pr = /* @__PURE__ */ Rt(Ue), Bt = (e) => (n, r, o) => { const t = o ? { ...o, async: !1 } : { async: !1 }, i = n._zod.run({ value: r, issues: [] }, t); if (i instanceof Promise) throw new lt(); return i.issues.length ? { success: !1, error: new (e ?? Br)(i.issues.map((a) => Ce(a, t, we()))) } : { success: !0, data: i.value }; }, nu = /* @__PURE__ */ Bt(Ue), Jt = (e) => async (n, r, o) => { const t = o ? Object.assign(o, { async: !0 }) : { async: !0 }; let i = n._zod.run({ value: r, issues: [] }, t); return i instanceof Promise && (i = await i), i.issues.length ? { success: !1, error: new e(i.issues.map((a) => Ce(a, t, we()))) } : { success: !0, data: i.value }; }, ru = /* @__PURE__ */ Jt(Ue), Vr = (e) => (n, r, o) => { const t = o ? Object.assign(o, { direction: "backward" }) : { direction: "backward" }; return Lt(e)(n, r, t); }, Sp = /* @__PURE__ */ Vr(Ue), Yr = (e) => (n, r, o) => Lt(e)(n, r, o), wp = /* @__PURE__ */ Yr(Ue), Kr = (e) => async (n, r, o) => { const t = o ? Object.assign(o, { direction: "backward" }) : { direction: "backward" }; return Rt(e)(n, r, t); }, Ip = /* @__PURE__ */ Kr(Ue), Gr = (e) => async (n, r, o) => Rt(e)(n, r, o), zp = /* @__PURE__ */ Gr(Ue), Wr = (e) => (n, r, o) => { const t = o ? Object.assign(o, { direction: "backward" }) : { direction: "backward" }; return Bt(e)(n, r, t); }, xp = /* @__PURE__ */ Wr(Ue), Hr = (e) => (n, r, o) => Bt(e)(n, r, o), Dp = /* @__PURE__ */ Hr(Ue), Xr = (e) => async (n, r, o) => { const t = o ? Object.assign(o, { direction: "backward" }) : { direction: "backward" }; return Jt(e)(n, r, t); }, Op = /* @__PURE__ */ Xr(Ue), Qr = (e) => async (n, r, o) => Jt(e)(n, r, o), Up = /* @__PURE__ */ Qr(Ue), iu = /^[cC][^\s-]{8,}$/, ou = /^[0-9a-z]+$/, au = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, uu = /^[0-9a-vA-V]{20}$/, lu = /^[A-Za-z0-9]{27}$/, cu = /^[a-zA-Z0-9_-]{21}$/, su = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, jp = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, du = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, bt = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Tp = /* @__PURE__ */ bt(4), Ep = /* @__PURE__ */ bt(6), Pp = /* @__PURE__ */ bt(7), fu = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Np = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, Ap = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, mu = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u, Zp = mu, Cp = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, Mp = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"; function vu() { return new RegExp(Mp, "u"); } const pu = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, gu = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, hu = (e) => { const n = We(e ?? ":"); return new RegExp(`^(?:[0-9A-F]{2}${n}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${n}){5}[0-9a-f]{2}$`); }, $u = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, bu = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, _u = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, ei = /^[A-Za-z0-9_-]*$/, yu = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, ku = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/, Su = /^\+[1-9]\d{6,14}$/, wu = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Iu = /* @__PURE__ */ new RegExp(`^${wu}$`); function zu(e) { const n = "(?:[01]\\d|2[0-3]):[0-5]\\d"; return typeof e.precision == "number" ? e.precision === -1 ? `${n}` : e.precision === 0 ? `${n}:[0-5]\\d` : `${n}:[0-5]\\d\\.\\d{${e.precision}}` : `${n}(?::[0-5]\\d(?:\\.\\d+)?)?`; } function xu(e) { return new RegExp(`^${zu(e)}$`); } function Du(e) { const n = zu({ precision: e.precision }), r = ["Z"]; e.local && r.push(""), e.offset && r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)"); const o = `${n}(?:${r.join("|")})`; return new RegExp(`^${wu}T(?:${o})$`); } const Ou = (e) => { const n = e ? `[\\s\\S]{${(e == null ? void 0 : e.minimum) ?? 0},${(e == null ? void 0 : e.maximum) ?? ""}}` : "[\\s\\S]*"; return new RegExp(`^${n}$`); }, Uu = /^-?\d+n?$/, ju = /^-?\d+$/, ti = /^-?\d+(?:\.\d+)?$/, Tu = /^(?:true|false)$/i, Eu = /^null$/i, Pu = /^undefined$/i, Nu = /^[^A-Z]*$/, Au = /^[^a-z]*$/, Zu = /^[0-9a-fA-F]*$/; function qt(e, n) { return new RegExp(`^[A-Za-z0-9+/]{${e}}${n}$`); } function Vt(e) { return new RegExp(`^[A-Za-z0-9_-]{${e}}$`); } const Fp = /^[0-9a-fA-F]{32}$/, Lp = /* @__PURE__ */ qt(22, "=="), Rp = /* @__PURE__ */ Vt(22), Bp = /^[0-9a-fA-F]{40}$/, Jp = /* @__PURE__ */ qt(27, "="), qp = /* @__PURE__ */ Vt(27), Vp = /^[0-9a-fA-F]{64}$/, Yp = /* @__PURE__ */ qt(43, "="), Kp = /* @__PURE__ */ Vt(43), Gp = /^[0-9a-fA-F]{96}$/, Wp = /* @__PURE__ */ qt(64, ""), Hp = /* @__PURE__ */ Vt(64), Xp = /^[0-9a-fA-F]{128}$/, Qp = /* @__PURE__ */ qt(86, "=="), eg = /* @__PURE__ */ Vt(86), ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, base64: _u, base64url: ei, bigint: Uu, boolean: Tu, browserEmail: Cp, cidrv4: $u, cidrv6: bu, cuid: iu, cuid2: ou, date: Iu, datetime: Du, domain: ku, duration: su, e164: Su, email: fu, emoji: vu, extendedDuration: jp, guid: du, hex: Zu, hostname: yu, html5Email: Np, idnEmail: Zp, integer: ju, ipv4: pu, ipv6: gu, ksuid: lu, lowercase: Nu, mac: hu, md5_base64: Lp, md5_base64url: Rp, md5_hex: Fp, nanoid: cu, null: Eu, number: ti, rfc5322Email: Ap, sha1_base64: Jp, sha1_base64url: qp, sha1_hex: Bp, sha256_base64: Yp, sha256_base64url: Kp, sha256_hex: Vp, sha384_base64: Wp, sha384_base64url: Hp, sha384_hex: Gp, sha512_base64: Qp, sha512_base64url: eg, sha512_hex: Xp, string: Ou, time: xu, ulid: au, undefined: Pu, unicodeEmail: mu, uppercase: Au, uuid: bt, uuid4: Tp, uuid6: Ep, uuid7: Pp, xid: uu }, Symbol.toStringTag, { value: "Module" })), se = /* @__PURE__ */ v("$ZodCheck", (e, n) => { var r; e._zod ?? (e._zod = {}), e._zod.def = n, (r = e._zod).onattach ?? (r.onattach = []); }), Cu = { number: "number", bigint: "bigint", object: "date" }, ri = /* @__PURE__ */ v("$ZodCheckLessThan", (e, n) => { se.init(e, n); const r = Cu[typeof n.value]; e._zod.onattach.push((o) => { const t = o._zod.bag, i = (n.inclusive ? t.maximum : t.exclusiveMaximum) ?? Number.POSITIVE_INFINITY; n.value < i && (n.inclusive ? t.maximum = n.value : t.exclusiveMaximum = n.value); }), e._zod.check = (o) => { (n.inclusive ? o.value <= n.value : o.value < n.value) || o.issues.push({ origin: r, code: "too_big", maximum: typeof n.value == "object" ? n.value.getTime() : n.value, input: o.value, inclusive: n.inclusive, inst: e, continue: !n.abort }); }; }), ii = /* @__PURE__ */ v("$ZodCheckGreaterThan", (e, n) => { se.init(e, n); const r = Cu[typeof n.value]; e._zod.onattach.push((o) => { const t = o._zod.bag, i = (n.inclusive ? t.minimum : t.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY; n.value > i && (n.inclusive ? t.minimum = n.value : t.exclusiveMinimum = n.value); }), e._zod.check = (o) => { (n.inclusive ? o.value >= n.value : o.value > n.value) || o.issues.push({ origin: r, code: "too_small", minimum: typeof n.value == "object" ? n.value.getTime() : n.value, input: o.value, inclusive: n.inclusive, inst: e, continue: !n.abort }); }; }), Mu = /* @__PURE__ */ v("$ZodCheckMultipleOf", (e, n) => { se.init(e, n), e._zod.onattach.push((r) => { var o; (o = r._zod.bag).multipleOf ?? (o.multipleOf = n.value); }), e._zod.check = (r) => { if (typeof r.value != typeof n.value) throw new Error("Cannot mix number and bigint in multiple_of check."); (typeof r.value == "bigint" ? r.value % n.value === BigInt(0) : Na(r.value, n.value) === 0) || r.issues.push({ origin: typeof r.value, code: "not_multiple_of", divisor: n.value, input: r.value, inst: e, continue: !n.abort }); }; }), Fu = /* @__PURE__ */ v("$ZodCheckNumberFormat", (e, n) => { var a; se.init(e, n), n.format = n.format || "float64"; const r = (a = n.format) == null ? void 0 : a.includes("int"), o = r ? "int" : "number", [t, i] = Fa[n.format]; e._zod.onattach.push((u) => { const c = u._zod.bag; c.format = n.format, c.minimum = t, c.maximum = i, r && (c.pattern = ju); }), e._zod.check = (u) => { const c = u.value; if (r) { if (!Number.isInteger(c)) { u.issues.push({ expected: o, format: n.format, code: "invalid_type", continue: !1, input: c, inst: e }); return; } if (!Number.isSafeInteger(c)) { c > 0 ? u.issues.push({ input: c, code: "too_big", maximum: Number.MAX_SAFE_INTEGER, note: "Integers must be within the safe integer range.", inst: e, origin: o, inclusive: !0, continue: !n.abort }) : u.issues.push({ input: c, code: "too_small", minimum: Number.MIN_SAFE_INTEGER, note: "Integers must be within the safe integer range.", inst: e, origin: o, inclusive: !0, continue: !n.abort }); return; } } c < t && u.issues.push({ origin: "number", input: c, code: "too_small", minimum: t, inclusive: !0, inst: e, continue: !n.abort }), c > i && u.issues.push({ origin: "number", input: c, code: "too_big", maximum: i, inclusive: !0, inst: e, continue: !n.abort }); }; }), Lu = /* @__PURE__ */ v("$ZodCheckBigIntFormat", (e, n) => { se.init(e, n); const [r, o] = La[n.format]; e._zod.onattach.push((t) => { const i = t._zod.bag; i.format = n.format, i.minimum = r, i.maximum = o; }), e._zod.check = (t) => { const i = t.value; i < r && t.issues.push({ origin: "bigint", input: i, code: "too_small", minimum: r, inclusive: !0, inst: e, continue: !n.abort }), i > o && t.issues.push({ origin: "bigint", input: i, code: "too_big", maximum: o, inclusive: !0, inst: e, continue: !n.abort }); }; }), Ru = /* @__PURE__ */ v("$ZodCheckMaxSize", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !ft(t) && t.size !== void 0; }), e._zod.onattach.push((o) => { const t = o._zod.bag.maximum ?? Number.POSITIVE_INFINITY; n.maximum < t && (o._zod.bag.maximum = n.maximum); }), e._zod.check = (o) => { const t = o.value; t.size <= n.maximum || o.issues.push({ origin: Mn(t), code: "too_big", maximum: n.maximum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), Bu = /* @__PURE__ */ v("$ZodCheckMinSize", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !ft(t) && t.size !== void 0; }), e._zod.onattach.push((o) => { const t = o._zod.bag.minimum ?? Number.NEGATIVE_INFINITY; n.minimum > t && (o._zod.bag.minimum = n.minimum); }), e._zod.check = (o) => { const t = o.value; t.size >= n.minimum || o.issues.push({ origin: Mn(t), code: "too_small", minimum: n.minimum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), Ju = /* @__PURE__ */ v("$ZodCheckSizeEquals", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !ft(t) && t.size !== void 0; }), e._zod.onattach.push((o) => { const t = o._zod.bag; t.minimum = n.size, t.maximum = n.size, t.size = n.size; }), e._zod.check = (o) => { const t = o.value, i = t.size; if (i === n.size) return; const a = i > n.size; o.issues.push({ origin: Mn(t), ...a ? { code: "too_big", maximum: n.size } : { code: "too_small", minimum: n.size }, inclusive: !0, exact: !0, input: o.value, inst: e, continue: !n.abort }); }; }), qu = /* @__PURE__ */ v("$ZodCheckMaxLength", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !ft(t) && t.length !== void 0; }), e._zod.onattach.push((o) => { const t = o._zod.bag.maximum ?? Number.POSITIVE_INFINITY; n.maximum < t && (o._zod.bag.maximum = n.maximum); }), e._zod.check = (o) => { const t = o.value; if (t.length <= n.maximum) return; const a = Fn(t); o.issues.push({ origin: a, code: "too_big", maximum: n.maximum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), Vu = /* @__PURE__ */ v("$ZodCheckMinLength", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !ft(t) && t.length !== void 0; }), e._zod.onattach.push((o) => { const t = o._zod.bag.minimum ?? Number.NEGATIVE_INFINITY; n.minimum > t && (o._zod.bag.minimum = n.minimum); }), e._zod.check = (o) => { const t = o.value; if (t.length >= n.minimum) return; const a = Fn(t); o.issues.push({ origin: a, code: "too_small", minimum: n.minimum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), Yu = /* @__PURE__ */ v("$ZodCheckLengthEquals", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !ft(t) && t.length !== void 0; }), e._zod.onattach.push((o) => { const t = o._zod.bag; t.minimum = n.length, t.maximum = n.length, t.length = n.length; }), e._zod.check = (o) => { const t = o.value, i = t.length; if (i === n.length) return; const a = Fn(t), u = i > n.length; o.issues.push({ origin: a, ...u ? { code: "too_big", maximum: n.length } : { code: "too_small", minimum: n.length }, inclusive: !0, exact: !0, input: o.value, inst: e, continue: !n.abort }); }; }), Yt = /* @__PURE__ */ v("$ZodCheckStringFormat", (e, n) => { var r, o; se.init(e, n), e._zod.onattach.push((t) => { const i = t._zod.bag; i.format = n.format, n.pattern && (i.patterns ?? (i.patterns = /* @__PURE__ */ new Set()), i.patterns.add(n.pattern)); }), n.pattern ? (r = e._zod).check ?? (r.check = (t) => { n.pattern.lastIndex = 0, !n.pattern.test(t.value) && t.issues.push({ origin: "string", code: "invalid_format", format: n.format, input: t.value, ...n.pattern ? { pattern: n.pattern.toString() } : {}, inst: e, continue: !n.abort }); }) : (o = e._zod).check ?? (o.check = () => { }); }), Ku = /* @__PURE__ */ v("$ZodCheckRegex", (e, n) => { Yt.init(e, n), e._zod.check = (r) => { n.pattern.lastIndex = 0, !n.pattern.test(r.value) && r.issues.push({ origin: "string", code: "invalid_format", format: "regex", input: r.value, pattern: n.pattern.toString(), inst: e, continue: !n.abort }); }; }), Gu = /* @__PURE__ */ v("$ZodCheckLowerCase", (e, n) => { n.pattern ?? (n.pattern = Nu), Yt.init(e, n); }), Wu = /* @__PURE__ */ v("$ZodCheckUpperCase", (e, n) => { n.pattern ?? (n.pattern = Au), Yt.init(e, n); }), Hu = /* @__PURE__ */ v("$ZodCheckIncludes", (e, n) => { se.init(e, n); const r = We(n.includes), o = new RegExp(typeof n.position == "number" ? `^.{${n.position}}${r}` : r); n.pattern = o, e._zod.onattach.push((t) => { const i = t._zod.bag; i.patterns ?? (i.patterns = /* @__PURE__ */ new Set()), i.patterns.add(o); }), e._zod.check = (t) => { t.value.includes(n.includes, n.position) || t.issues.push({ origin: "string", code: "invalid_format", format: "includes", includes: n.includes, input: t.value, inst: e, continue: !n.abort }); }; }), Xu = /* @__PURE__ */ v("$ZodCheckStartsWith", (e, n) => { se.init(e, n); const r = new RegExp(`^${We(n.prefix)}.*`); n.pattern ?? (n.pattern = r), e._zod.onattach.push((o) => { const t = o._zod.bag; t.patterns ?? (t.patterns = /* @__PURE__ */ new Set()), t.patterns.add(r); }), e._zod.check = (o) => { o.value.startsWith(n.prefix) || o.issues.push({ origin: "string", code: "invalid_format", format: "starts_with", prefix: n.prefix, input: o.value, inst: e, continue: !n.abort }); }; }), Qu = /* @__PURE__ */ v("$ZodCheckEndsWith", (e, n) => { se.init(e, n); const r = new RegExp(`.*${We(n.suffix)}$`); n.pattern ?? (n.pattern = r), e._zod.onattach.push((o) => { const t = o._zod.bag; t.patterns ?? (t.patterns = /* @__PURE__ */ new Set()), t.patterns.add(r); }), e._zod.check = (o) => { o.value.endsWith(n.suffix) || o.issues.push({ origin: "string", code: "invalid_format", format: "ends_with", suffix: n.suffix, input: o.value, inst: e, continue: !n.abort }); }; }); function Go(e, n, r) { e.issues.length && n.issues.push(...Re(r, e.issues)); } const el = /* @__PURE__ */ v("$ZodCheckProperty", (e, n) => { se.init(e, n), e._zod.check = (r) => { const o = n.schema._zod.run({ value: r.value[n.property], issues: [] }, {}); if (o instanceof Promise) return o.then((t) => Go(t, r, n.property)); Go(o, r, n.property); }; }), tl = /* @__PURE__ */ v("$ZodCheckMimeType", (e, n) => { se.init(e, n); const r = new Set(n.mime); e._zod.onattach.push((o) => { o._zod.bag.mime = n.mime; }), e._zod.check = (o) => { r.has(o.value.type) || o.issues.push({ code: "invalid_value", values: n.mime, input: o.value.type, inst: e, continue: !n.abort }); }; }), nl = /* @__PURE__ */ v("$ZodCheckOverwrite", (e, n) => { se.init(e, n), e._zod.check = (r) => { r.value = n.tx(r.value); }; }); class rl { constructor(n = []) { this.content = [], this.indent = 0, this && (this.args = n); } indented(n) { this.indent += 1, n(this), this.indent -= 1; } write(n) { if (typeof n == "function") { n(this, { execution: "sync" }), n(this, { execution: "async" }); return; } const o = n.split(` `).filter((a) => a), t = Math.min(...o.map((a) => a.length - a.trimStart().length)), i = o.map((a) => a.slice(t)).map((a) => " ".repeat(this.indent * 2) + a); for (const a of i) this.content.push(a); } compile() { const n = Function, r = this == null ? void 0 : this.args, t = [...((this == null ? void 0 : this.content) ?? [""]).map((i) => ` ${i}`)]; return new n(...r, t.join(` `)); } } const il = { major: 4, minor: 3, patch: 6 }, V = /* @__PURE__ */ v("$ZodType", (e, n) => { var t; var r; e ?? (e = {}), e._zod.def = n, e._zod.bag = e._zod.bag || {}, e._zod.version = il; const o = [...e._zod.def.checks ?? []]; e._zod.traits.has("$ZodCheck") && o.unshift(e); for (const i of o) for (const a of i._zod.onattach) a(e); if (o.length === 0) (r = e._zod).deferred ?? (r.deferred = []), (t = e._zod.deferred) == null || t.push(() => { e._zod.run = e._zod.parse; }); else { const i = (u, c, l) => { let d = ut(u), s; for (const p of c) { if (p._zod.def.when) { if (!p._zod.def.when(u)) continue; } else if (d) continue; const $ = u.issues.length, g = p._zod.check(u); if (g instanceof Promise && (l == null ? void 0 : l.async) === !1) throw new lt(); if (s || g instanceof Promise) s = (s ?? Promise.resolve()).then(async () => { await g, u.issues.length !== $ && (d || (d = ut(u, $))); }); else { if (u.issues.length === $) continue; d || (d = ut(u, $)); } } return s ? s.then(() => u) : u; }, a = (u, c, l) => { if (ut(u)) return u.aborted = !0, u; const d = i(c, o, l); if (d instanceof Promise) { if (l.async === !1) throw new lt(); return d.then((s) => e._zod.parse(s, l)); } return e._zod.parse(d, l); }; e._zod.run = (u, c) => { if (c.skipChecks) return e._zod.parse(u, c); if (c.direction === "backward") { const d = e._zod.parse({ value: u.value, issues: [] }, { ...c, skipChecks: !0 }); return d instanceof Promise ? d.then((s) => a(s, u, c)) : a(d, u, c); } const l = e._zod.parse(u, c); if (l instanceof Promise) { if (c.async === !1) throw new lt(); return l.then((d) => i(d, o, c)); } return i(l, o, c); }; } G(e, "~standard", () => ({ validate: (i) => { var a; try { const u = nu(e, i); return u.success ? { value: u.data } : { issues: (a = u.error) == null ? void 0 : a.issues }; } catch { return ru(e, i).then((c) => { var l; return c.success ? { value: c.data } : { issues: (l = c.error) == null ? void 0 : l.issues }; }); } }, vendor: "zod", version: 1 })); }), Kt = /* @__PURE__ */ v("$ZodString", (e, n) => { var r; V.init(e, n), e._zod.pattern = [...((r = e == null ? void 0 : e._zod.bag) == null ? void 0 : r.patterns) ?? []].pop() ?? Ou(e._zod.bag), e._zod.parse = (o, t) => { if (n.coerce) try { o.value = String(o.value); } catch { } return typeof o.value == "string" || o.issues.push({ expected: "string", code: "invalid_type", input: o.value, inst: e }), o; }; }), oe = /* @__PURE__ */ v("$ZodStringFormat", (e, n) => { Yt.init(e, n), Kt.init(e, n); }), ol = /* @__PURE__ */ v("$ZodGUID", (e, n) => { n.pattern ?? (n.pattern = du), oe.init(e, n); }), al = /* @__PURE__ */ v("$ZodUUID", (e, n) => { if (n.version) { const o = { v1: 1, v2: 2, v3: 3, v4: 4, v5: 5, v6: 6, v7: 7, v8: 8 }[n.version]; if (o === void 0) throw new Error(`Invalid UUID version: "${n.version}"`); n.pattern ?? (n.pattern = bt(o)); } else n.pattern ?? (n.pattern = bt()); oe.init(e, n); }), ul = /* @__PURE__ */ v("$ZodEmail", (e, n) => { n.pattern ?? (n.pattern = fu), oe.init(e, n); }), ll = /* @__PURE__ */ v("$ZodURL", (e, n) => { oe.init(e, n), e._zod.check = (r) => { try { const o = r.value.trim(), t = new URL(o); n.hostname && (n.hostname.lastIndex = 0, n.hostname.test(t.hostname) || r.issues.push({ code: "invalid_format", format: "url", note: "Invalid hostname", pattern: n.hostname.source, input: r.value, inst: e, continue: !n.abort })), n.protocol && (n.protocol.lastIndex = 0, n.protocol.test(t.protocol.endsWith(":") ? t.protocol.slice(0, -1) : t.protocol) || r.issues.push({ code: "invalid_format", format: "url", note: "Invalid protocol", pattern: n.protocol.source, input: r.value, inst: e, continue: !n.abort })), n.normalize ? r.value = t.href : r.value = o; return; } catch { r.issues.push({ code: "invalid_format", format: "url", input: r.value, inst: e, continue: !n.abort }); } }; }), cl = /* @__PURE__ */ v("$ZodEmoji", (e, n) => { n.pattern ?? (n.pattern = vu()), oe.init(e, n); }), sl = /* @__PURE__ */ v("$ZodNanoID", (e, n) => { n.pattern ?? (n.pattern = cu), oe.init(e, n); }), dl = /* @__PURE__ */ v("$ZodCUID", (e, n) => { n.pattern ?? (n.pattern = iu), oe.init(e, n); }), fl = /* @__PURE__ */ v("$ZodCUID2", (e, n) => { n.pattern ?? (n.pattern = ou), oe.init(e, n); }), ml = /* @__PURE__ */ v("$ZodULID", (e, n) => { n.pattern ?? (n.pattern = au), oe.init(e, n); }), vl = /* @__PURE__ */ v("$ZodXID", (e, n) => { n.pattern ?? (n.pattern = uu), oe.init(e, n); }), pl = /* @__PURE__ */ v("$ZodKSUID", (e, n) => { n.pattern ?? (n.pattern = lu), oe.init(e, n); }), gl = /* @__PURE__ */ v("$ZodISODateTime", (e, n) => { n.pattern ?? (n.pattern = Du(n)), oe.init(e, n); }), hl = /* @__PURE__ */ v("$ZodISODate", (e, n) => { n.pattern ?? (n.pattern = Iu), oe.init(e, n); }), $l = /* @__PURE__ */ v("$ZodISOTime", (e, n) => { n.pattern ?? (n.pattern = xu(n)), oe.init(e, n); }), bl = /* @__PURE__ */ v("$ZodISODuration", (e, n) => { n.pattern ?? (n.pattern = su), oe.init(e, n); }), _l = /* @__PURE__ */ v("$ZodIPv4", (e, n) => { n.pattern ?? (n.pattern = pu), oe.init(e, n), e._zod.bag.format = "ipv4"; }), yl = /* @__PURE__ */ v("$ZodIPv6", (e, n) => { n.pattern ?? (n.pattern = gu), oe.init(e, n), e._zod.bag.format = "ipv6", e._zod.check = (r) => { try { new URL(`http://[${r.value}]`); } catch { r.issues.push({ code: "invalid_format", format: "ipv6", input: r.value, inst: e, continue: !n.abort }); } }; }), kl = /* @__PURE__ */ v("$ZodMAC", (e, n) => { n.pattern ?? (n.pattern = hu(n.delimiter)), oe.init(e, n), e._zod.bag.format = "mac"; }), Sl = /* @__PURE__ */ v("$ZodCIDRv4", (e, n) => { n.pattern ?? (n.pattern = $u), oe.init(e, n); }), wl = /* @__PURE__ */ v("$ZodCIDRv6", (e, n) => { n.pattern ?? (n.pattern = bu), oe.init(e, n), e._zod.check = (r) => { const o = r.value.split("/"); try { if (o.length !== 2) throw new Error(); const [t, i] = o; if (!i) throw new Error(); const a = Number(i); if (`${a}` !== i) throw new Error(); if (a < 0 || a > 128) throw new Error(); new URL(`http://[${t}]`); } catch { r.issues.push({ code: "invalid_format", format: "cidrv6", input: r.value, inst: e, continue: !n.abort }); } }; }); function oi(e) { if (e === "") return !0; if (e.length % 4 !== 0) return !1; try { return atob(e), !0; } catch { return !1; } } const Il = /* @__PURE__ */ v("$ZodBase64", (e, n) => { n.pattern ?? (n.pattern = _u), oe.init(e, n), e._zod.bag.contentEncoding = "base64", e._zod.check = (r) => { oi(r.value) || r.issues.push({ code: "invalid_format", format: "base64", input: r.value, inst: e, continue: !n.abort }); }; }); function zl(e) { if (!ei.test(e)) return !1; const n = e.replace(/[-_]/g, (o) => o === "-" ? "+" : "/"), r = n.padEnd(Math.ceil(n.length / 4) * 4, "="); return oi(r); } const xl = /* @__PURE__ */ v("$ZodBase64URL", (e, n) => { n.pattern ?? (n.pattern = ei), oe.init(e, n), e._zod.bag.contentEncoding = "base64url", e._zod.check = (r) => { zl(r.value) || r.issues.push({ code: "invalid_format", format: "base64url", input: r.value, inst: e, continue: !n.abort }); }; }), Dl = /* @__PURE__ */ v("$ZodE164", (e, n) => { n.pattern ?? (n.pattern = Su), oe.init(e, n); }); function Ol(e, n = null) { try { const r = e.split("."); if (r.length !== 3) return !1; const [o] = r; if (!o) return !1; const t = JSON.parse(atob(o)); return !("typ" in t && (t == null ? void 0 : t.typ) !== "JWT" || !t.alg || n && (!("alg" in t) || t.alg !== n)); } catch { return !1; } } const Ul = /* @__PURE__ */ v("$ZodJWT", (e, n) => { oe.init(e, n), e._zod.check = (r) => { Ol(r.value, n.alg) || r.issues.push({ code: "invalid_format", format: "jwt", input: r.value, inst: e, continue: !n.abort }); }; }), jl = /* @__PURE__ */ v("$ZodCustomStringFormat", (e, n) => { oe.init(e, n), e._zod.check = (r) => { n.fn(r.value) || r.issues.push({ code: "invalid_format", format: n.format, input: r.value, inst: e, continue: !n.abort }); }; }), ai = /* @__PURE__ */ v("$ZodNumber", (e, n) => { V.init(e, n), e._zod.pattern = e._zod.bag.pattern ?? ti, e._zod.parse = (r, o) => { if (n.coerce) try { r.value = Number(r.value); } catch { } const t = r.value; if (typeof t == "number" && !Number.isNaN(t) && Number.isFinite(t)) return r; const i = typeof t == "number" ? Number.isNaN(t) ? "NaN" : Number.isFinite(t) ? void 0 : "Infinity" : void 0; return r.issues.push({ expected: "number", code: "invalid_type", input: t, inst: e, ...i ? { received: i } : {} }), r; }; }), Tl = /* @__PURE__ */ v("$ZodNumberFormat", (e, n) => { Fu.init(e, n), ai.init(e, n); }), ui = /* @__PURE__ */ v("$ZodBoolean", (e, n) => { V.init(e, n), e._zod.pattern = Tu, e._zod.parse = (r, o) => { if (n.coerce) try { r.value = !!r.value; } catch { } const t = r.value; return typeof t == "boolean" || r.issues.push({ expected: "boolean", code: "invalid_type", input: t, inst: e }), r; }; }), li = /* @__PURE__ */ v("$ZodBigInt", (e, n) => { V.init(e, n), e._zod.pattern = Uu, e._zod.parse = (r, o) => { if (n.coerce) try { r.value = BigInt(r.value); } catch { } return typeof r.value == "bigint" || r.issues.push({ expected: "bigint", code: "invalid_type", input: r.value, inst: e }), r; }; }), El = /* @__PURE__ */ v("$ZodBigIntFormat", (e, n) => { Lu.init(e, n), li.init(e, n); }), Pl = /* @__PURE__ */ v("$ZodSymbol", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => { const t = r.value; return typeof t == "symbol" || r.issues.push({ expected: "symbol", code: "invalid_type", input: t, inst: e }), r; }; }), Nl = /* @__PURE__ */ v("$ZodUndefined", (e, n) => { V.init(e, n), e._zod.pattern = Pu, e._zod.values = /* @__PURE__ */ new Set([void 0]), e._zod.optin = "optional", e._zod.optout = "optional", e._zod.parse = (r, o) => { const t = r.value; return typeof t > "u" || r.issues.push({ expected: "undefined", code: "invalid_type", input: t, inst: e }), r; }; }), Al = /* @__PURE__ */ v("$ZodNull", (e, n) => { V.init(e, n), e._zod.pattern = Eu, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, o) => { const t = r.value; return t === null || r.issues.push({ expected: "null", code: "invalid_type", input: t, inst: e }), r; }; }), Zl = /* @__PURE__ */ v("$ZodAny", (e, n) => { V.init(e, n), e._zod.parse = (r) => r; }), Cl = /* @__PURE__ */ v("$ZodUnknown", (e, n) => { V.init(e, n), e._zod.parse = (r) => r; }), Ml = /* @__PURE__ */ v("$ZodNever", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => (r.issues.push({ expected: "never", code: "invalid_type", input: r.value, inst: e }), r); }), Fl = /* @__PURE__ */ v("$ZodVoid", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => { const t = r.value; return typeof t > "u" || r.issues.push({ expected: "void", code: "invalid_type", input: t, inst: e }), r; }; }), Ll = /* @__PURE__ */ v("$ZodDate", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => { if (n.coerce) try { r.value = new Date(r.value); } catch { } const t = r.value, i = t instanceof Date; return i && !Number.isNaN(t.getTime()) || r.issues.push({ expected: "date", code: "invalid_type", input: t, ...i ? { received: "Invalid Date" } : {}, inst: e }), r; }; }); function Wo(e, n, r) { e.issues.length && n.issues.push(...Re(r, e.issues)), n.value[r] = e.value; } const Rl = /* @__PURE__ */ v("$ZodArray", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => { const t = r.value; if (!Array.isArray(t)) return r.issues.push({ expected: "array", code: "invalid_type", input: t, inst: e }), r; r.value = Array(t.length); const i = []; for (let a = 0; a < t.length; a++) { const u = t[a], c = n.element._zod.run({ value: u, issues: [] }, o); c instanceof Promise ? i.push(c.then((l) => Wo(l, r, a))) : Wo(c, r, a); } return i.length ? Promise.all(i).then(() => r) : r; }; }); function jn(e, n, r, o, t) { if (e.issues.length) { if (t && !(r in o)) return; n.issues.push(...Re(r, e.issues)); } e.value === void 0 ? r in o && (n.value[r] = void 0) : n.value[r] = e.value; } function Bl(e) { var o, t, i, a; const n = Object.keys(e.shape); for (const u of n) if (!((a = (i = (t = (o = e.shape) == null ? void 0 : o[u]) == null ? void 0 : t._zod) == null ? void 0 : i.traits) != null && a.has("$ZodType"))) throw new Error(`Invalid element at key "${u}": expected a Zod schema`); const r = Ma(e.shape); return { ...e, keys: n, keySet: new Set(n), numKeys: n.length, optionalKeys: new Set(r) }; } function Jl(e, n, r, o, t, i) { const a = [], u = t.keySet, c = t.catchall._zod, l = c.def.type, d = c.optout === "optional"; for (const s in n) { if (u.has(s)) continue; if (l === "never") { a.push(s); continue; } const p = c.run({ value: n[s], issues: [] }, o); p instanceof Promise ? e.push(p.then(($) => jn($, r, s, n, d))) : jn(p, r, s, n, d); } return a.length && r.issues.push({ code: "unrecognized_keys", keys: a, input: n, inst: i }), e.length ? Promise.all(e).then(() => r) : r; } const ql = /* @__PURE__ */ v("$ZodObject", (e, n) => { V.init(e, n); const r = Object.getOwnPropertyDescriptor(n, "shape"); if (!(r != null && r.get)) { const u = n.shape; Object.defineProperty(n, "shape", { get: () => { const c = { ...u }; return Object.defineProperty(n, "shape", { value: c }), c; } }); } const o = Ft(() => Bl(n)); G(e._zod, "propValues", () => { const u = n.shape, c = {}; for (const l in u) { const d = u[l]._zod; if (d.values) { c[l] ?? (c[l] = /* @__PURE__ */ new Set()); for (const s of d.values) c[l].add(s); } } return c; }); const t = ht, i = n.catchall; let a; e._zod.parse = (u, c) => { a ?? (a = o.value); const l = u.value; if (!t(l)) return u.issues.push({ expected: "object", code: "invalid_type", input: l, inst: e }), u; u.value = {}; const d = [], s = a.shape; for (const p of a.keys) { const $ = s[p], g = $._zod.optout === "optional", m = $._zod.run({ value: l[p], issues: [] }, c); m instanceof Promise ? d.push(m.then((y) => jn(y, u, p, l, g))) : jn(m, u, p, l, g); } return i ? Jl(d, l, u, c, o.value, e) : d.length ? Promise.all(d).then(() => u) : u; }; }), Vl = /* @__PURE__ */ v("$ZodObjectJIT", (e, n) => { ql.init(e, n); const r = e._zod.parse, o = Ft(() => Bl(n)), t = (p) => { var q; const $ = new rl(["shape", "payload", "ctx"]), g = o.value, m = (Y) => { const C = Tr(Y); return `shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`; }; $.write("const input = payload.value;"); const y = /* @__PURE__ */ Object.create(null); let b = 0; for (const Y of g.keys) y[Y] = `key_${b++}`; $.write("const newResult = {};"); for (const Y of g.keys) { const C = y[Y], T = Tr(Y), O = p[Y], S = ((q = O == null ? void 0 : O._zod) == null ? void 0 : q.optout) === "optional"; $.write(`const ${C} = ${m(Y)};`), S ? $.write(` if (${C}.issues.length) { if (${T} in input) { payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ ...iss, path: iss.path ? [${T}, ...iss.path] : [${T}] }))); } } if (${C}.value === undefined) { if (${T} in input) { newResult[${T}] = undefined; } } else { newResult[${T}] = ${C}.value; } `) : $.write(` if (${C}.issues.length) { payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ ...iss, path: iss.path ? [${T}, ...iss.path] : [${T}] }))); } if (${C}.value === undefined) { if (${T} in input) { newResult[${T}] = undefined; } } else { newResult[${T}] = ${C}.value; } `); } $.write("payload.value = newResult;"), $.write("return payload;"); const z = $.compile(); return (Y, C) => z(p, Y, C); }; let i; const a = ht, u = !Dn.jitless, l = u && Za.value, d = n.catchall; let s; e._zod.parse = (p, $) => { s ?? (s = o.value); const g = p.value; return a(g) ? u && l && ($ == null ? void 0 : $.async) === !1 && $.jitless !== !0 ? (i || (i = t(n.shape)), p = i(p, $), d ? Jl([], g, p, $, s, e) : p) : r(p, $) : (p.issues.push({ expected: "object", code: "invalid_type", input: g, inst: e }), p); }; }); function Ho(e, n, r, o) { for (const i of e) if (i.issues.length === 0) return n.value = i.value, n; const t = e.filter((i) => !ut(i)); return t.length === 1 ? (n.value = t[0].value, t[0]) : (n.issues.push({ code: "invalid_union", input: n.value, inst: r, errors: e.map((i) => i.issues.map((a) => Ce(a, o, we()))) }), n); } const Ln = /* @__PURE__ */ v("$ZodUnion", (e, n) => { V.init(e, n), G(e._zod, "optin", () => n.options.some((t) => t._zod.optin === "optional") ? "optional" : void 0), G(e._zod, "optout", () => n.options.some((t) => t._zod.optout === "optional") ? "optional" : void 0), G(e._zod, "values", () => { if (n.options.every((t) => t._zod.values)) return new Set(n.options.flatMap((t) => Array.from(t._zod.values))); }), G(e._zod, "pattern", () => { if (n.options.every((t) => t._zod.pattern)) { const t = n.options.map((i) => i._zod.pattern); return new RegExp(`^(${t.map((i) => Zn(i.source)).join("|")})$`); } }); const r = n.options.length === 1, o = n.options[0]._zod.run; e._zod.parse = (t, i) => { if (r) return o(t, i); let a = !1; const u = []; for (const c of n.options) { const l = c._zod.run({ value: t.value, issues: [] }, i); if (l instanceof Promise) u.push(l), a = !0; else { if (l.issues.length === 0) return l; u.push(l); } } return a ? Promise.all(u).then((c) => Ho(c, t, e, i)) : Ho(u, t, e, i); }; }); function Xo(e, n, r, o) { const t = e.filter((i) => i.issues.length === 0); return t.length === 1 ? (n.value = t[0].value, n) : (t.length === 0 ? n.issues.push({ code: "invalid_union", input: n.value, inst: r, errors: e.map((i) => i.issues.map((a) => Ce(a, o, we()))) }) : n.issues.push({ code: "invalid_union", input: n.value, inst: r, errors: [], inclusive: !1 }), n); } const Yl = /* @__PURE__ */ v("$ZodXor", (e, n) => { Ln.init(e, n), n.inclusive = !1; const r = n.options.length === 1, o = n.options[0]._zod.run; e._zod.parse = (t, i) => { if (r) return o(t, i); let a = !1; const u = []; for (const c of n.options) { const l = c._zod.run({ value: t.value, issues: [] }, i); l instanceof Promise ? (u.push(l), a = !0) : u.push(l); } return a ? Promise.all(u).then((c) => Xo(c, t, e, i)) : Xo(u, t, e, i); }; }), Kl = /* @__PURE__ */ v("$ZodDiscriminatedUnion", (e, n) => { n.inclusive = !1, Ln.init(e, n); const r = e._zod.parse; G(e._zod, "propValues", () => { const t = {}; for (const i of n.options) { const a = i._zod.propValues; if (!a || Object.keys(a).length === 0) throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(i)}"`); for (const [u, c] of Object.entries(a)) { t[u] || (t[u] = /* @__PURE__ */ new Set()); for (const l of c) t[u].add(l); } } return t; }); const o = Ft(() => { var a; const t = n.options, i = /* @__PURE__ */ new Map(); for (const u of t) { const c = (a = u._zod.propValues) == null ? void 0 : a[n.discriminator]; if (!c || c.size === 0) throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(u)}"`); for (const l of c) { if (i.has(l)) throw new Error(`Duplicate discriminator value "${String(l)}"`); i.set(l, u); } } return i; }); e._zod.parse = (t, i) => { const a = t.value; if (!ht(a)) return t.issues.push({ code: "invalid_type", expected: "object", input: a, inst: e }), t; const u = o.value.get(a == null ? void 0 : a[n.discriminator]); return u ? u._zod.run(t, i) : n.unionFallback ? r(t, i) : (t.issues.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: n.discriminator, input: a, path: [n.discriminator], inst: e }), t); }; }), Gl = /* @__PURE__ */ v("$ZodIntersection", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => { const t = r.value, i = n.left._zod.run({ value: t, issues: [] }, o), a = n.right._zod.run({ value: t, issues: [] }, o); return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([c, l]) => Qo(r, c, l)) : Qo(r, i, a); }; }); function Nr(e, n) { if (e === n) return { valid: !0, data: e }; if (e instanceof Date && n instanceof Date && +e == +n) return { valid: !0, data: e }; if (ct(e) && ct(n)) { const r = Object.keys(n), o = Object.keys(e).filter((i) => r.indexOf(i) !== -1), t = { ...e, ...n }; for (const i of o) { const a = Nr(e[i], n[i]); if (!a.valid) return { valid: !1, mergeErrorPath: [i, ...a.mergeErrorPath] }; t[i] = a.data; } return { valid: !0, data: t }; } if (Array.isArray(e) && Array.isArray(n)) { if (e.length !== n.length) return { valid: !1, mergeErrorPath: [] }; const r = []; for (let o = 0; o < e.length; o++) { const t = e[o], i = n[o], a = Nr(t, i); if (!a.valid) return { valid: !1, mergeErrorPath: [o, ...a.mergeErrorPath] }; r.push(a.data); } return { valid: !0, data: r }; } return { valid: !1, mergeErrorPath: [] }; } function Qo(e, n, r) { const o = /* @__PURE__ */ new Map(); let t; for (const u of n.issues) if (u.code === "unrecognized_keys") { t ?? (t = u); for (const c of u.keys) o.has(c) || o.set(c, {}), o.get(c).l = !0; } else e.issues.push(u); for (const u of r.issues) if (u.code === "unrecognized_keys") for (const c of u.keys) o.has(c) || o.set(c, {}), o.get(c).r = !0; else e.issues.push(u); const i = [...o].filter(([, u]) => u.l && u.r).map(([u]) => u); if (i.length && t && e.issues.push({ ...t, keys: i }), ut(e)) return e; const a = Nr(n.value, r.value); if (!a.valid) throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`); return e.value = a.data, e; } const ci = /* @__PURE__ */ v("$ZodTuple", (e, n) => { V.init(e, n); const r = n.items; e._zod.parse = (o, t) => { const i = o.value; if (!Array.isArray(i)) return o.issues.push({ input: i, inst: e, expected: "tuple", code: "invalid_type" }), o; o.value = []; const a = [], u = [...r].reverse().findIndex((d) => d._zod.optin !== "optional"), c = u === -1 ? 0 : r.length - u; if (!n.rest) { const d = i.length > r.length, s = i.length < c - 1; if (d || s) return o.issues.push({ ...d ? { code: "too_big", maximum: r.length, inclusive: !0 } : { code: "too_small", minimum: r.length }, input: i, inst: e, origin: "array" }), o; } let l = -1; for (const d of r) { if (l++, l >= i.length && l >= c) continue; const s = d._zod.run({ value: i[l], issues: [] }, t); s instanceof Promise ? a.push(s.then((p) => dn(p, o, l))) : dn(s, o, l); } if (n.rest) { const d = i.slice(r.length); for (const s of d) { l++; const p = n.rest._zod.run({ value: s, issues: [] }, t); p instanceof Promise ? a.push(p.then(($) => dn($, o, l))) : dn(p, o, l); } } return a.length ? Promise.all(a).then(() => o) : o; }; }); function dn(e, n, r) { e.issues.length && n.issues.push(...Re(r, e.issues)), n.value[r] = e.value; } const Wl = /* @__PURE__ */ v("$ZodRecord", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => { const t = r.value; if (!ct(t)) return r.issues.push({ expected: "record", code: "invalid_type", input: t, inst: e }), r; const i = [], a = n.keyType._zod.values; if (a) { r.value = {}; const u = /* @__PURE__ */ new Set(); for (const l of a) if (typeof l == "string" || typeof l == "number" || typeof l == "symbol") { u.add(typeof l == "number" ? l.toString() : l); const d = n.valueType._zod.run({ value: t[l], issues: [] }, o); d instanceof Promise ? i.push(d.then((s) => { s.issues.length && r.issues.push(...Re(l, s.issues)), r.value[l] = s.value; })) : (d.issues.length && r.issues.push(...Re(l, d.issues)), r.value[l] = d.value); } let c; for (const l in t) u.has(l) || (c = c ?? [], c.push(l)); c && c.length > 0 && r.issues.push({ code: "unrecognized_keys", input: t, inst: e, keys: c }); } else { r.value = {}; for (const u of Reflect.ownKeys(t)) { if (u === "__proto__") continue; let c = n.keyType._zod.run({ value: u, issues: [] }, o); if (c instanceof Promise) throw new Error("Async schemas not supported in object keys currently"); if (typeof u == "string" && ti.test(u) && c.issues.length) { const s = n.keyType._zod.run({ value: Number(u), issues: [] }, o); if (s instanceof Promise) throw new Error("Async schemas not supported in object keys currently"); s.issues.length === 0 && (c = s); } if (c.issues.length) { n.mode === "loose" ? r.value[u] = t[u] : r.issues.push({ code: "invalid_key", origin: "record", issues: c.issues.map((s) => Ce(s, o, we())), input: u, path: [u], inst: e }); continue; } const d = n.valueType._zod.run({ value: t[u], issues: [] }, o); d instanceof Promise ? i.push(d.then((s) => { s.issues.length && r.issues.push(...Re(u, s.issues)), r.value[c.value] = s.value; })) : (d.issues.length && r.issues.push(...Re(u, d.issues)), r.value[c.value] = d.value); } } return i.length ? Promise.all(i).then(() => r) : r; }; }), Hl = /* @__PURE__ */ v("$ZodMap", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => { const t = r.value; if (!(t instanceof Map)) return r.issues.push({ expected: "map", code: "invalid_type", input: t, inst: e }), r; const i = []; r.value = /* @__PURE__ */ new Map(); for (const [a, u] of t) { const c = n.keyType._zod.run({ value: a, issues: [] }, o), l = n.valueType._zod.run({ value: u, issues: [] }, o); c instanceof Promise || l instanceof Promise ? i.push(Promise.all([c, l]).then(([d, s]) => { ea(d, s, r, a, t, e, o); })) : ea(c, l, r, a, t, e, o); } return i.length ? Promise.all(i).then(() => r) : r; }; }); function ea(e, n, r, o, t, i, a) { e.issues.length && (Un.has(typeof o) ? r.issues.push(...Re(o, e.issues)) : r.issues.push({ code: "invalid_key", origin: "map", input: t, inst: i, issues: e.issues.map((u) => Ce(u, a, we())) })), n.issues.length && (Un.has(typeof o) ? r.issues.push(...Re(o, n.issues)) : r.issues.push({ origin: "map", code: "invalid_element", input: t, inst: i, key: o, issues: n.issues.map((u) => Ce(u, a, we())) })), r.value.set(e.value, n.value); } const Xl = /* @__PURE__ */ v("$ZodSet", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => { const t = r.value; if (!(t instanceof Set)) return r.issues.push({ input: t, inst: e, expected: "set", code: "invalid_type" }), r; const i = []; r.value = /* @__PURE__ */ new Set(); for (const a of t) { const u = n.valueType._zod.run({ value: a, issues: [] }, o); u instanceof Promise ? i.push(u.then((c) => ta(c, r))) : ta(u, r); } return i.length ? Promise.all(i).then(() => r) : r; }; }); function ta(e, n) { e.issues.length && n.issues.push(...e.issues), n.value.add(e.value); } const Ql = /* @__PURE__ */ v("$ZodEnum", (e, n) => { V.init(e, n); const r = Lr(n.entries), o = new Set(r); e._zod.values = o, e._zod.pattern = new RegExp(`^(${r.filter((t) => Un.has(typeof t)).map((t) => typeof t == "string" ? We(t) : t.toString()).join("|")})$`), e._zod.parse = (t, i) => { const a = t.value; return o.has(a) || t.issues.push({ code: "invalid_value", values: r, input: a, inst: e }), t; }; }), ec = /* @__PURE__ */ v("$ZodLiteral", (e, n) => { if (V.init(e, n), n.values.length === 0) throw new Error("Cannot create literal schema with no valid values"); const r = new Set(n.values); e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.values.map((o) => typeof o == "string" ? We(o) : o ? We(o.toString()) : String(o)).join("|")})$`), e._zod.parse = (o, t) => { const i = o.value; return r.has(i) || o.issues.push({ code: "invalid_value", values: n.values, input: i, inst: e }), o; }; }), tc = /* @__PURE__ */ v("$ZodFile", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => { const t = r.value; return t instanceof File || r.issues.push({ expected: "file", code: "invalid_type", input: t, inst: e }), r; }; }), nc = /* @__PURE__ */ v("$ZodTransform", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => { if (o.direction === "backward") throw new An(e.constructor.name); const t = n.transform(r.value, r); if (o.async) return (t instanceof Promise ? t : Promise.resolve(t)).then((a) => (r.value = a, r)); if (t instanceof Promise) throw new lt(); return r.value = t, r; }; }); function na(e, n) { return e.issues.length && n === void 0 ? { issues: [], value: void 0 } : e; } const si = /* @__PURE__ */ v("$ZodOptional", (e, n) => { V.init(e, n), e._zod.optin = "optional", e._zod.optout = "optional", G(e._zod, "values", () => n.innerType._zod.values ? /* @__PURE__ */ new Set([...n.innerType._zod.values, void 0]) : void 0), G(e._zod, "pattern", () => { const r = n.innerType._zod.pattern; return r ? new RegExp(`^(${Zn(r.source)})?$`) : void 0; }), e._zod.parse = (r, o) => { if (n.innerType._zod.optin === "optional") { const t = n.innerType._zod.run(r, o); return t instanceof Promise ? t.then((i) => na(i, r.value)) : na(t, r.value); } return r.value === void 0 ? r : n.innerType._zod.run(r, o); }; }), rc = /* @__PURE__ */ v("$ZodExactOptional", (e, n) => { si.init(e, n), G(e._zod, "values", () => n.innerType._zod.values), G(e._zod, "pattern", () => n.innerType._zod.pattern), e._zod.parse = (r, o) => n.innerType._zod.run(r, o); }), ic = /* @__PURE__ */ v("$ZodNullable", (e, n) => { V.init(e, n), G(e._zod, "optin", () => n.innerType._zod.optin), G(e._zod, "optout", () => n.innerType._zod.optout), G(e._zod, "pattern", () => { const r = n.innerType._zod.pattern; return r ? new RegExp(`^(${Zn(r.source)}|null)$`) : void 0; }), G(e._zod, "values", () => n.innerType._zod.values ? /* @__PURE__ */ new Set([...n.innerType._zod.values, null]) : void 0), e._zod.parse = (r, o) => r.value === null ? r : n.innerType._zod.run(r, o); }), oc = /* @__PURE__ */ v("$ZodDefault", (e, n) => { V.init(e, n), e._zod.optin = "optional", G(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => { if (o.direction === "backward") return n.innerType._zod.run(r, o); if (r.value === void 0) return r.value = n.defaultValue, r; const t = n.innerType._zod.run(r, o); return t instanceof Promise ? t.then((i) => ra(i, n)) : ra(t, n); }; }); function ra(e, n) { return e.value === void 0 && (e.value = n.defaultValue), e; } const ac = /* @__PURE__ */ v("$ZodPrefault", (e, n) => { V.init(e, n), e._zod.optin = "optional", G(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => (o.direction === "backward" || r.value === void 0 && (r.value = n.defaultValue), n.innerType._zod.run(r, o)); }), uc = /* @__PURE__ */ v("$ZodNonOptional", (e, n) => { V.init(e, n), G(e._zod, "values", () => { const r = n.innerType._zod.values; return r ? new Set([...r].filter((o) => o !== void 0)) : void 0; }), e._zod.parse = (r, o) => { const t = n.innerType._zod.run(r, o); return t instanceof Promise ? t.then((i) => ia(i, e)) : ia(t, e); }; }); function ia(e, n) { return !e.issues.length && e.value === void 0 && e.issues.push({ code: "invalid_type", expected: "nonoptional", input: e.value, inst: n }), e; } const lc = /* @__PURE__ */ v("$ZodSuccess", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => { if (o.direction === "backward") throw new An("ZodSuccess"); const t = n.innerType._zod.run(r, o); return t instanceof Promise ? t.then((i) => (r.value = i.issues.length === 0, r)) : (r.value = t.issues.length === 0, r); }; }), cc = /* @__PURE__ */ v("$ZodCatch", (e, n) => { V.init(e, n), G(e._zod, "optin", () => n.innerType._zod.optin), G(e._zod, "optout", () => n.innerType._zod.optout), G(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => { if (o.direction === "backward") return n.innerType._zod.run(r, o); const t = n.innerType._zod.run(r, o); return t instanceof Promise ? t.then((i) => (r.value = i.value, i.issues.length && (r.value = n.catchValue({ ...r, error: { issues: i.issues.map((a) => Ce(a, o, we())) }, input: r.value }), r.issues = []), r)) : (r.value = t.value, t.issues.length && (r.value = n.catchValue({ ...r, error: { issues: t.issues.map((i) => Ce(i, o, we())) }, input: r.value }), r.issues = []), r); }; }), sc = /* @__PURE__ */ v("$ZodNaN", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => ((typeof r.value != "number" || !Number.isNaN(r.value)) && r.issues.push({ input: r.value, inst: e, expected: "nan", code: "invalid_type" }), r); }), dc = /* @__PURE__ */ v("$ZodPipe", (e, n) => { V.init(e, n), G(e._zod, "values", () => n.in._zod.values), G(e._zod, "optin", () => n.in._zod.optin), G(e._zod, "optout", () => n.out._zod.optout), G(e._zod, "propValues", () => n.in._zod.propValues), e._zod.parse = (r, o) => { if (o.direction === "backward") { const i = n.out._zod.run(r, o); return i instanceof Promise ? i.then((a) => fn(a, n.in, o)) : fn(i, n.in, o); } const t = n.in._zod.run(r, o); return t instanceof Promise ? t.then((i) => fn(i, n.out, o)) : fn(t, n.out, o); }; }); function fn(e, n, r) { return e.issues.length ? (e.aborted = !0, e) : n._zod.run({ value: e.value, issues: e.issues }, r); } const di = /* @__PURE__ */ v("$ZodCodec", (e, n) => { V.init(e, n), G(e._zod, "values", () => n.in._zod.values), G(e._zod, "optin", () => n.in._zod.optin), G(e._zod, "optout", () => n.out._zod.optout), G(e._zod, "propValues", () => n.in._zod.propValues), e._zod.parse = (r, o) => { if ((o.direction || "forward") === "forward") { const i = n.in._zod.run(r, o); return i instanceof Promise ? i.then((a) => mn(a, n, o)) : mn(i, n, o); } else { const i = n.out._zod.run(r, o); return i instanceof Promise ? i.then((a) => mn(a, n, o)) : mn(i, n, o); } }; }); function mn(e, n, r) { if (e.issues.length) return e.aborted = !0, e; if ((r.direction || "forward") === "forward") { const t = n.transform(e.value, e); return t instanceof Promise ? t.then((i) => vn(e, i, n.out, r)) : vn(e, t, n.out, r); } else { const t = n.reverseTransform(e.value, e); return t instanceof Promise ? t.then((i) => vn(e, i, n.in, r)) : vn(e, t, n.in, r); } } function vn(e, n, r, o) { return e.issues.length ? (e.aborted = !0, e) : r._zod.run({ value: n, issues: e.issues }, o); } const fc = /* @__PURE__ */ v("$ZodReadonly", (e, n) => { V.init(e, n), G(e._zod, "propValues", () => n.innerType._zod.propValues), G(e._zod, "values", () => n.innerType._zod.values), G(e._zod, "optin", () => { var r, o; return (o = (r = n.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optin; }), G(e._zod, "optout", () => { var r, o; return (o = (r = n.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optout; }), e._zod.parse = (r, o) => { if (o.direction === "backward") return n.innerType._zod.run(r, o); const t = n.innerType._zod.run(r, o); return t instanceof Promise ? t.then(oa) : oa(t); }; }); function oa(e) { return e.value = Object.freeze(e.value), e; } const mc = /* @__PURE__ */ v("$ZodTemplateLiteral", (e, n) => { V.init(e, n); const r = []; for (const o of n.parts) if (typeof o == "object" && o !== null) { if (!o._zod.pattern) throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`); const t = o._zod.pattern instanceof RegExp ? o._zod.pattern.source : o._zod.pattern; if (!t) throw new Error(`Invalid template literal part: ${o._zod.traits}`); const i = t.startsWith("^") ? 1 : 0, a = t.endsWith("$") ? t.length - 1 : t.length; r.push(t.slice(i, a)); } else if (o === null || Ca.has(typeof o)) r.push(We(`${o}`)); else throw new Error(`Invalid template literal part: ${o}`); e._zod.pattern = new RegExp(`^${r.join("")}$`), e._zod.parse = (o, t) => typeof o.value != "string" ? (o.issues.push({ input: o.value, inst: e, expected: "string", code: "invalid_type" }), o) : (e._zod.pattern.lastIndex = 0, e._zod.pattern.test(o.value) || o.issues.push({ input: o.value, inst: e, code: "invalid_format", format: n.format ?? "template_literal", pattern: e._zod.pattern.source }), o); }), vc = /* @__PURE__ */ v("$ZodFunction", (e, n) => (V.init(e, n), e._def = n, e._zod.def = n, e.implement = (r) => { if (typeof r != "function") throw new Error("implement() must be called with a function"); return function(...o) { const t = e._def.input ? Er(e._def.input, o) : o, i = Reflect.apply(r, this, t); return e._def.output ? Er(e._def.output, i) : i; }; }, e.implementAsync = (r) => { if (typeof r != "function") throw new Error("implementAsync() must be called with a function"); return async function(...o) { const t = e._def.input ? await Pr(e._def.input, o) : o, i = await Reflect.apply(r, this, t); return e._def.output ? await Pr(e._def.output, i) : i; }; }, e._zod.parse = (r, o) => typeof r.value != "function" ? (r.issues.push({ code: "invalid_type", expected: "function", input: r.value, inst: e }), r) : (e._def.output && e._def.output._zod.def.type === "promise" ? r.value = e.implementAsync(r.value) : r.value = e.implement(r.value), r), e.input = (...r) => { const o = e.constructor; return Array.isArray(r[0]) ? new o({ type: "function", input: new ci({ type: "tuple", items: r[0], rest: r[1] }), output: e._def.output }) : new o({ type: "function", input: r[0], output: e._def.output }); }, e.output = (r) => { const o = e.constructor; return new o({ type: "function", input: e._def.input, output: r }); }, e)), pc = /* @__PURE__ */ v("$ZodPromise", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => Promise.resolve(r.value).then((t) => n.innerType._zod.run({ value: t, issues: [] }, o)); }), gc = /* @__PURE__ */ v("$ZodLazy", (e, n) => { V.init(e, n), G(e._zod, "innerType", () => n.getter()), G(e._zod, "pattern", () => { var r, o; return (o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.pattern; }), G(e._zod, "propValues", () => { var r, o; return (o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.propValues; }), G(e._zod, "optin", () => { var r, o; return ((o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optin) ?? void 0; }), G(e._zod, "optout", () => { var r, o; return ((o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optout) ?? void 0; }), e._zod.parse = (r, o) => e._zod.innerType._zod.run(r, o); }), hc = /* @__PURE__ */ v("$ZodCustom", (e, n) => { se.init(e, n), V.init(e, n), e._zod.parse = (r, o) => r, e._zod.check = (r) => { const o = r.value, t = n.fn(o); if (t instanceof Promise) return t.then((i) => aa(i, r, o, e)); aa(t, r, o, e); }; }); function aa(e, n, r, o) { if (!e) { const t = { code: "custom", input: r, inst: o, // incorporates params.error into issue reporting path: [...o._zod.def.path ?? []], // incorporates params.error into issue reporting continue: !o._zod.def.abort // params: inst._zod.def.params, }; o._zod.def.params && (t.params = o._zod.def.params), n.issues.push($t(t)); } } const tg = () => { const e = { string: { unit: "حرف", verb: "أن يحوي" }, file: { unit: "بايت", verb: "أن يحوي" }, array: { unit: "عنصر", verb: "أن يحوي" }, set: { unit: "عنصر", verb: "أن يحوي" } }; function n(t) { return e[t] ?? null; } const r = { regex: "مدخل", email: "بريد إلكتروني", url: "رابط", emoji: "إيموجي", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "تاريخ ووقت بمعيار ISO", date: "تاريخ بمعيار ISO", time: "وقت بمعيار ISO", duration: "مدة بمعيار ISO", ipv4: "عنوان IPv4", ipv6: "عنوان IPv6", cidrv4: "مدى عناوين بصيغة IPv4", cidrv6: "مدى عناوين بصيغة IPv6", base64: "نَص بترميز base64-encoded", base64url: "نَص بترميز base64url-encoded", json_string: "نَص على هيئة JSON", e164: "رقم هاتف بمعيار E.164", jwt: "JWT", template_literal: "مدخل" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `مدخلات غير مقبولة: يفترض إدخال instanceof ${t.expected}، ولكن تم إدخال ${u}` : `مدخلات غير مقبولة: يفترض إدخال ${i}، ولكن تم إدخال ${u}`; } case "invalid_value": return t.values.length === 1 ? `مدخلات غير مقبولة: يفترض إدخال ${L(t.values[0])}` : `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? ` أكبر من اللازم: يفترض أن تكون ${t.origin ?? "القيمة"} ${i} ${t.maximum.toString()} ${a.unit ?? "عنصر"}` : `أكبر من اللازم: يفترض أن تكون ${t.origin ?? "القيمة"} ${i} ${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${i} ${t.minimum.toString()} ${a.unit}` : `أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${i} ${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `نَص غير مقبول: يجب أن يبدأ بـ "${t.prefix}"` : i.format === "ends_with" ? `نَص غير مقبول: يجب أن ينتهي بـ "${i.suffix}"` : i.format === "includes" ? `نَص غير مقبول: يجب أن يتضمَّن "${i.includes}"` : i.format === "regex" ? `نَص غير مقبول: يجب أن يطابق النمط ${i.pattern}` : `${r[i.format] ?? t.format} غير مقبول`; } case "not_multiple_of": return `رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`; case "unrecognized_keys": return `معرف${t.keys.length > 1 ? "ات" : ""} غريب${t.keys.length > 1 ? "ة" : ""}: ${I(t.keys, "، ")}`; case "invalid_key": return `معرف غير مقبول في ${t.origin}`; case "invalid_union": return "مدخل غير مقبول"; case "invalid_element": return `مدخل غير مقبول في ${t.origin}`; default: return "مدخل غير مقبول"; } }; }; function ng() { return { localeError: tg() }; } const rg = () => { const e = { string: { unit: "simvol", verb: "olmalıdır" }, file: { unit: "bayt", verb: "olmalıdır" }, array: { unit: "element", verb: "olmalıdır" }, set: { unit: "element", verb: "olmalıdır" } }; function n(t) { return e[t] ?? null; } const r = { regex: "input", email: "email address", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO datetime", date: "ISO date", time: "ISO time", duration: "ISO duration", ipv4: "IPv4 address", ipv6: "IPv6 address", cidrv4: "IPv4 range", cidrv6: "IPv6 range", base64: "base64-encoded string", base64url: "base64url-encoded string", json_string: "JSON string", e164: "E.164 number", jwt: "JWT", template_literal: "input" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Yanlış dəyər: gözlənilən instanceof ${t.expected}, daxil olan ${u}` : `Yanlış dəyər: gözlənilən ${i}, daxil olan ${u}`; } case "invalid_value": return t.values.length === 1 ? `Yanlış dəyər: gözlənilən ${L(t.values[0])}` : `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Çox böyük: gözlənilən ${t.origin ?? "dəyər"} ${i}${t.maximum.toString()} ${a.unit ?? "element"}` : `Çox böyük: gözlənilən ${t.origin ?? "dəyər"} ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Çox kiçik: gözlənilən ${t.origin} ${i}${t.minimum.toString()} ${a.unit}` : `Çox kiçik: gözlənilən ${t.origin} ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Yanlış mətn: "${i.prefix}" ilə başlamalıdır` : i.format === "ends_with" ? `Yanlış mətn: "${i.suffix}" ilə bitməlidir` : i.format === "includes" ? `Yanlış mətn: "${i.includes}" daxil olmalıdır` : i.format === "regex" ? `Yanlış mətn: ${i.pattern} şablonuna uyğun olmalıdır` : `Yanlış ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`; case "unrecognized_keys": return `Tanınmayan açar${t.keys.length > 1 ? "lar" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `${t.origin} daxilində yanlış açar`; case "invalid_union": return "Yanlış dəyər"; case "invalid_element": return `${t.origin} daxilində yanlış dəyər`; default: return "Yanlış dəyər"; } }; }; function ig() { return { localeError: rg() }; } function ua(e, n, r, o) { const t = Math.abs(e), i = t % 10, a = t % 100; return a >= 11 && a <= 19 ? o : i === 1 ? n : i >= 2 && i <= 4 ? r : o; } const og = () => { const e = { string: { unit: { one: "сімвал", few: "сімвалы", many: "сімвалаў" }, verb: "мець" }, array: { unit: { one: "элемент", few: "элементы", many: "элементаў" }, verb: "мець" }, set: { unit: { one: "элемент", few: "элементы", many: "элементаў" }, verb: "мець" }, file: { unit: { one: "байт", few: "байты", many: "байтаў" }, verb: "мець" } }; function n(t) { return e[t] ?? null; } const r = { regex: "увод", email: "email адрас", url: "URL", emoji: "эмодзі", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO дата і час", date: "ISO дата", time: "ISO час", duration: "ISO працягласць", ipv4: "IPv4 адрас", ipv6: "IPv6 адрас", cidrv4: "IPv4 дыяпазон", cidrv6: "IPv6 дыяпазон", base64: "радок у фармаце base64", base64url: "радок у фармаце base64url", json_string: "JSON радок", e164: "нумар E.164", jwt: "JWT", template_literal: "увод" }, o = { nan: "NaN", number: "лік", array: "масіў" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Няправільны ўвод: чакаўся instanceof ${t.expected}, атрымана ${u}` : `Няправільны ўвод: чакаўся ${i}, атрымана ${u}`; } case "invalid_value": return t.values.length === 1 ? `Няправільны ўвод: чакалася ${L(t.values[0])}` : `Няправільны варыянт: чакаўся адзін з ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { const u = Number(t.maximum), c = ua(u, a.unit.one, a.unit.few, a.unit.many); return `Занадта вялікі: чакалася, што ${t.origin ?? "значэнне"} павінна ${a.verb} ${i}${t.maximum.toString()} ${c}`; } return `Занадта вялікі: чакалася, што ${t.origin ?? "значэнне"} павінна быць ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); if (a) { const u = Number(t.minimum), c = ua(u, a.unit.one, a.unit.few, a.unit.many); return `Занадта малы: чакалася, што ${t.origin} павінна ${a.verb} ${i}${t.minimum.toString()} ${c}`; } return `Занадта малы: чакалася, што ${t.origin} павінна быць ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Няправільны радок: павінен пачынацца з "${i.prefix}"` : i.format === "ends_with" ? `Няправільны радок: павінен заканчвацца на "${i.suffix}"` : i.format === "includes" ? `Няправільны радок: павінен змяшчаць "${i.includes}"` : i.format === "regex" ? `Няправільны радок: павінен адпавядаць шаблону ${i.pattern}` : `Няправільны ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Няправільны лік: павінен быць кратным ${t.divisor}`; case "unrecognized_keys": return `Нераспазнаны ${t.keys.length > 1 ? "ключы" : "ключ"}: ${I(t.keys, ", ")}`; case "invalid_key": return `Няправільны ключ у ${t.origin}`; case "invalid_union": return "Няправільны ўвод"; case "invalid_element": return `Няправільнае значэнне ў ${t.origin}`; default: return "Няправільны ўвод"; } }; }; function ag() { return { localeError: og() }; } const ug = () => { const e = { string: { unit: "символа", verb: "да съдържа" }, file: { unit: "байта", verb: "да съдържа" }, array: { unit: "елемента", verb: "да съдържа" }, set: { unit: "елемента", verb: "да съдържа" } }; function n(t) { return e[t] ?? null; } const r = { regex: "вход", email: "имейл адрес", url: "URL", emoji: "емоджи", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO време", date: "ISO дата", time: "ISO време", duration: "ISO продължителност", ipv4: "IPv4 адрес", ipv6: "IPv6 адрес", cidrv4: "IPv4 диапазон", cidrv6: "IPv6 диапазон", base64: "base64-кодиран низ", base64url: "base64url-кодиран низ", json_string: "JSON низ", e164: "E.164 номер", jwt: "JWT", template_literal: "вход" }, o = { nan: "NaN", number: "число", array: "масив" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Невалиден вход: очакван instanceof ${t.expected}, получен ${u}` : `Невалиден вход: очакван ${i}, получен ${u}`; } case "invalid_value": return t.values.length === 1 ? `Невалиден вход: очакван ${L(t.values[0])}` : `Невалидна опция: очаквано едно от ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Твърде голямо: очаква се ${t.origin ?? "стойност"} да съдържа ${i}${t.maximum.toString()} ${a.unit ?? "елемента"}` : `Твърде голямо: очаква се ${t.origin ?? "стойност"} да бъде ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Твърде малко: очаква се ${t.origin} да съдържа ${i}${t.minimum.toString()} ${a.unit}` : `Твърде малко: очаква се ${t.origin} да бъде ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; if (i.format === "starts_with") return `Невалиден низ: трябва да започва с "${i.prefix}"`; if (i.format === "ends_with") return `Невалиден низ: трябва да завършва с "${i.suffix}"`; if (i.format === "includes") return `Невалиден низ: трябва да включва "${i.includes}"`; if (i.format === "regex") return `Невалиден низ: трябва да съвпада с ${i.pattern}`; let a = "Невалиден"; return i.format === "emoji" && (a = "Невалидно"), i.format === "datetime" && (a = "Невалидно"), i.format === "date" && (a = "Невалидна"), i.format === "time" && (a = "Невалидно"), i.format === "duration" && (a = "Невалидна"), `${a} ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Невалидно число: трябва да бъде кратно на ${t.divisor}`; case "unrecognized_keys": return `Неразпознат${t.keys.length > 1 ? "и" : ""} ключ${t.keys.length > 1 ? "ове" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `Невалиден ключ в ${t.origin}`; case "invalid_union": return "Невалиден вход"; case "invalid_element": return `Невалидна стойност в ${t.origin}`; default: return "Невалиден вход"; } }; }; function lg() { return { localeError: ug() }; } const cg = () => { const e = { string: { unit: "caràcters", verb: "contenir" }, file: { unit: "bytes", verb: "contenir" }, array: { unit: "elements", verb: "contenir" }, set: { unit: "elements", verb: "contenir" } }; function n(t) { return e[t] ?? null; } const r = { regex: "entrada", email: "adreça electrònica", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "data i hora ISO", date: "data ISO", time: "hora ISO", duration: "durada ISO", ipv4: "adreça IPv4", ipv6: "adreça IPv6", cidrv4: "rang IPv4", cidrv6: "rang IPv6", base64: "cadena codificada en base64", base64url: "cadena codificada en base64url", json_string: "cadena JSON", e164: "número E.164", jwt: "JWT", template_literal: "entrada" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Tipus invàlid: s'esperava instanceof ${t.expected}, s'ha rebut ${u}` : `Tipus invàlid: s'esperava ${i}, s'ha rebut ${u}`; } case "invalid_value": return t.values.length === 1 ? `Valor invàlid: s'esperava ${L(t.values[0])}` : `Opció invàlida: s'esperava una de ${I(t.values, " o ")}`; case "too_big": { const i = t.inclusive ? "com a màxim" : "menys de", a = n(t.origin); return a ? `Massa gran: s'esperava que ${t.origin ?? "el valor"} contingués ${i} ${t.maximum.toString()} ${a.unit ?? "elements"}` : `Massa gran: s'esperava que ${t.origin ?? "el valor"} fos ${i} ${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? "com a mínim" : "més de", a = n(t.origin); return a ? `Massa petit: s'esperava que ${t.origin} contingués ${i} ${t.minimum.toString()} ${a.unit}` : `Massa petit: s'esperava que ${t.origin} fos ${i} ${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Format invàlid: ha de començar amb "${i.prefix}"` : i.format === "ends_with" ? `Format invàlid: ha d'acabar amb "${i.suffix}"` : i.format === "includes" ? `Format invàlid: ha d'incloure "${i.includes}"` : i.format === "regex" ? `Format invàlid: ha de coincidir amb el patró ${i.pattern}` : `Format invàlid per a ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Número invàlid: ha de ser múltiple de ${t.divisor}`; case "unrecognized_keys": return `Clau${t.keys.length > 1 ? "s" : ""} no reconeguda${t.keys.length > 1 ? "s" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `Clau invàlida a ${t.origin}`; case "invalid_union": return "Entrada invàlida"; // Could also be "Tipus d'unió invàlid" but "Entrada invàlida" is more general case "invalid_element": return `Element invàlid a ${t.origin}`; default: return "Entrada invàlida"; } }; }; function sg() { return { localeError: cg() }; } const dg = () => { const e = { string: { unit: "znaků", verb: "mít" }, file: { unit: "bajtů", verb: "mít" }, array: { unit: "prvků", verb: "mít" }, set: { unit: "prvků", verb: "mít" } }; function n(t) { return e[t] ?? null; } const r = { regex: "regulární výraz", email: "e-mailová adresa", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "datum a čas ve formátu ISO", date: "datum ve formátu ISO", time: "čas ve formátu ISO", duration: "doba trvání ISO", ipv4: "IPv4 adresa", ipv6: "IPv6 adresa", cidrv4: "rozsah IPv4", cidrv6: "rozsah IPv6", base64: "řetězec zakódovaný ve formátu base64", base64url: "řetězec zakódovaný ve formátu base64url", json_string: "řetězec ve formátu JSON", e164: "číslo E.164", jwt: "JWT", template_literal: "vstup" }, o = { nan: "NaN", number: "číslo", string: "řetězec", function: "funkce", array: "pole" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Neplatný vstup: očekáváno instanceof ${t.expected}, obdrženo ${u}` : `Neplatný vstup: očekáváno ${i}, obdrženo ${u}`; } case "invalid_value": return t.values.length === 1 ? `Neplatný vstup: očekáváno ${L(t.values[0])}` : `Neplatná možnost: očekávána jedna z hodnot ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Hodnota je příliš velká: ${t.origin ?? "hodnota"} musí mít ${i}${t.maximum.toString()} ${a.unit ?? "prvků"}` : `Hodnota je příliš velká: ${t.origin ?? "hodnota"} musí být ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Hodnota je příliš malá: ${t.origin ?? "hodnota"} musí mít ${i}${t.minimum.toString()} ${a.unit ?? "prvků"}` : `Hodnota je příliš malá: ${t.origin ?? "hodnota"} musí být ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Neplatný řetězec: musí začínat na "${i.prefix}"` : i.format === "ends_with" ? `Neplatný řetězec: musí končit na "${i.suffix}"` : i.format === "includes" ? `Neplatný řetězec: musí obsahovat "${i.includes}"` : i.format === "regex" ? `Neplatný řetězec: musí odpovídat vzoru ${i.pattern}` : `Neplatný formát ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Neplatné číslo: musí být násobkem ${t.divisor}`; case "unrecognized_keys": return `Neznámé klíče: ${I(t.keys, ", ")}`; case "invalid_key": return `Neplatný klíč v ${t.origin}`; case "invalid_union": return "Neplatný vstup"; case "invalid_element": return `Neplatná hodnota v ${t.origin}`; default: return "Neplatný vstup"; } }; }; function fg() { return { localeError: dg() }; } const mg = () => { const e = { string: { unit: "tegn", verb: "havde" }, file: { unit: "bytes", verb: "havde" }, array: { unit: "elementer", verb: "indeholdt" }, set: { unit: "elementer", verb: "indeholdt" } }; function n(t) { return e[t] ?? null; } const r = { regex: "input", email: "e-mailadresse", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO dato- og klokkeslæt", date: "ISO-dato", time: "ISO-klokkeslæt", duration: "ISO-varighed", ipv4: "IPv4-område", ipv6: "IPv6-område", cidrv4: "IPv4-spektrum", cidrv6: "IPv6-spektrum", base64: "base64-kodet streng", base64url: "base64url-kodet streng", json_string: "JSON-streng", e164: "E.164-nummer", jwt: "JWT", template_literal: "input" }, o = { nan: "NaN", string: "streng", number: "tal", boolean: "boolean", array: "liste", object: "objekt", set: "sæt", file: "fil" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ugyldigt input: forventede instanceof ${t.expected}, fik ${u}` : `Ugyldigt input: forventede ${i}, fik ${u}`; } case "invalid_value": return t.values.length === 1 ? `Ugyldig værdi: forventede ${L(t.values[0])}` : `Ugyldigt valg: forventede en af følgende ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), u = o[t.origin] ?? t.origin; return a ? `For stor: forventede ${u ?? "value"} ${a.verb} ${i} ${t.maximum.toString()} ${a.unit ?? "elementer"}` : `For stor: forventede ${u ?? "value"} havde ${i} ${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin), u = o[t.origin] ?? t.origin; return a ? `For lille: forventede ${u} ${a.verb} ${i} ${t.minimum.toString()} ${a.unit}` : `For lille: forventede ${u} havde ${i} ${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Ugyldig streng: skal starte med "${i.prefix}"` : i.format === "ends_with" ? `Ugyldig streng: skal ende med "${i.suffix}"` : i.format === "includes" ? `Ugyldig streng: skal indeholde "${i.includes}"` : i.format === "regex" ? `Ugyldig streng: skal matche mønsteret ${i.pattern}` : `Ugyldig ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Ugyldigt tal: skal være deleligt med ${t.divisor}`; case "unrecognized_keys": return `${t.keys.length > 1 ? "Ukendte nøgler" : "Ukendt nøgle"}: ${I(t.keys, ", ")}`; case "invalid_key": return `Ugyldig nøgle i ${t.origin}`; case "invalid_union": return "Ugyldigt input: matcher ingen af de tilladte typer"; case "invalid_element": return `Ugyldig værdi i ${t.origin}`; default: return "Ugyldigt input"; } }; }; function vg() { return { localeError: mg() }; } const pg = () => { const e = { string: { unit: "Zeichen", verb: "zu haben" }, file: { unit: "Bytes", verb: "zu haben" }, array: { unit: "Elemente", verb: "zu haben" }, set: { unit: "Elemente", verb: "zu haben" } }; function n(t) { return e[t] ?? null; } const r = { regex: "Eingabe", email: "E-Mail-Adresse", url: "URL", emoji: "Emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO-Datum und -Uhrzeit", date: "ISO-Datum", time: "ISO-Uhrzeit", duration: "ISO-Dauer", ipv4: "IPv4-Adresse", ipv6: "IPv6-Adresse", cidrv4: "IPv4-Bereich", cidrv6: "IPv6-Bereich", base64: "Base64-codierter String", base64url: "Base64-URL-codierter String", json_string: "JSON-String", e164: "E.164-Nummer", jwt: "JWT", template_literal: "Eingabe" }, o = { nan: "NaN", number: "Zahl", array: "Array" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ungültige Eingabe: erwartet instanceof ${t.expected}, erhalten ${u}` : `Ungültige Eingabe: erwartet ${i}, erhalten ${u}`; } case "invalid_value": return t.values.length === 1 ? `Ungültige Eingabe: erwartet ${L(t.values[0])}` : `Ungültige Option: erwartet eine von ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Zu groß: erwartet, dass ${t.origin ?? "Wert"} ${i}${t.maximum.toString()} ${a.unit ?? "Elemente"} hat` : `Zu groß: erwartet, dass ${t.origin ?? "Wert"} ${i}${t.maximum.toString()} ist`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ${a.unit} hat` : `Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ist`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Ungültiger String: muss mit "${i.prefix}" beginnen` : i.format === "ends_with" ? `Ungültiger String: muss mit "${i.suffix}" enden` : i.format === "includes" ? `Ungültiger String: muss "${i.includes}" enthalten` : i.format === "regex" ? `Ungültiger String: muss dem Muster ${i.pattern} entsprechen` : `Ungültig: ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`; case "unrecognized_keys": return `${t.keys.length > 1 ? "Unbekannte Schlüssel" : "Unbekannter Schlüssel"}: ${I(t.keys, ", ")}`; case "invalid_key": return `Ungültiger Schlüssel in ${t.origin}`; case "invalid_union": return "Ungültige Eingabe"; case "invalid_element": return `Ungültiger Wert in ${t.origin}`; default: return "Ungültige Eingabe"; } }; }; function gg() { return { localeError: pg() }; } const hg = () => { const e = { string: { unit: "characters", verb: "to have" }, file: { unit: "bytes", verb: "to have" }, array: { unit: "items", verb: "to have" }, set: { unit: "items", verb: "to have" }, map: { unit: "entries", verb: "to have" } }; function n(t) { return e[t] ?? null; } const r = { regex: "input", email: "email address", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO datetime", date: "ISO date", time: "ISO time", duration: "ISO duration", ipv4: "IPv4 address", ipv6: "IPv6 address", mac: "MAC address", cidrv4: "IPv4 range", cidrv6: "IPv6 range", base64: "base64-encoded string", base64url: "base64url-encoded string", json_string: "JSON string", e164: "E.164 number", jwt: "JWT", template_literal: "input" }, o = { // Compatibility: "nan" -> "NaN" for display nan: "NaN" // All other type names omitted - they fall back to raw values via ?? operator }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return `Invalid input: expected ${i}, received ${u}`; } case "invalid_value": return t.values.length === 1 ? `Invalid input: expected ${L(t.values[0])}` : `Invalid option: expected one of ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Too big: expected ${t.origin ?? "value"} to have ${i}${t.maximum.toString()} ${a.unit ?? "elements"}` : `Too big: expected ${t.origin ?? "value"} to be ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Too small: expected ${t.origin} to have ${i}${t.minimum.toString()} ${a.unit}` : `Too small: expected ${t.origin} to be ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Invalid string: must start with "${i.prefix}"` : i.format === "ends_with" ? `Invalid string: must end with "${i.suffix}"` : i.format === "includes" ? `Invalid string: must include "${i.includes}"` : i.format === "regex" ? `Invalid string: must match pattern ${i.pattern}` : `Invalid ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Invalid number: must be a multiple of ${t.divisor}`; case "unrecognized_keys": return `Unrecognized key${t.keys.length > 1 ? "s" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `Invalid key in ${t.origin}`; case "invalid_union": return "Invalid input"; case "invalid_element": return `Invalid value in ${t.origin}`; default: return "Invalid input"; } }; }; function $c() { return { localeError: hg() }; } const $g = () => { const e = { string: { unit: "karaktrojn", verb: "havi" }, file: { unit: "bajtojn", verb: "havi" }, array: { unit: "elementojn", verb: "havi" }, set: { unit: "elementojn", verb: "havi" } }; function n(t) { return e[t] ?? null; } const r = { regex: "enigo", email: "retadreso", url: "URL", emoji: "emoĝio", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO-datotempo", date: "ISO-dato", time: "ISO-tempo", duration: "ISO-daŭro", ipv4: "IPv4-adreso", ipv6: "IPv6-adreso", cidrv4: "IPv4-rango", cidrv6: "IPv6-rango", base64: "64-ume kodita karaktraro", base64url: "URL-64-ume kodita karaktraro", json_string: "JSON-karaktraro", e164: "E.164-nombro", jwt: "JWT", template_literal: "enigo" }, o = { nan: "NaN", number: "nombro", array: "tabelo", null: "senvalora" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Nevalida enigo: atendiĝis instanceof ${t.expected}, riceviĝis ${u}` : `Nevalida enigo: atendiĝis ${i}, riceviĝis ${u}`; } case "invalid_value": return t.values.length === 1 ? `Nevalida enigo: atendiĝis ${L(t.values[0])}` : `Nevalida opcio: atendiĝis unu el ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Tro granda: atendiĝis ke ${t.origin ?? "valoro"} havu ${i}${t.maximum.toString()} ${a.unit ?? "elementojn"}` : `Tro granda: atendiĝis ke ${t.origin ?? "valoro"} havu ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Tro malgranda: atendiĝis ke ${t.origin} havu ${i}${t.minimum.toString()} ${a.unit}` : `Tro malgranda: atendiĝis ke ${t.origin} estu ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Nevalida karaktraro: devas komenciĝi per "${i.prefix}"` : i.format === "ends_with" ? `Nevalida karaktraro: devas finiĝi per "${i.suffix}"` : i.format === "includes" ? `Nevalida karaktraro: devas inkluzivi "${i.includes}"` : i.format === "regex" ? `Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}` : `Nevalida ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${t.divisor}`; case "unrecognized_keys": return `Nekonata${t.keys.length > 1 ? "j" : ""} ŝlosilo${t.keys.length > 1 ? "j" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `Nevalida ŝlosilo en ${t.origin}`; case "invalid_union": return "Nevalida enigo"; case "invalid_element": return `Nevalida valoro en ${t.origin}`; default: return "Nevalida enigo"; } }; }; function bg() { return { localeError: $g() }; } const _g = () => { const e = { string: { unit: "caracteres", verb: "tener" }, file: { unit: "bytes", verb: "tener" }, array: { unit: "elementos", verb: "tener" }, set: { unit: "elementos", verb: "tener" } }; function n(t) { return e[t] ?? null; } const r = { regex: "entrada", email: "dirección de correo electrónico", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "fecha y hora ISO", date: "fecha ISO", time: "hora ISO", duration: "duración ISO", ipv4: "dirección IPv4", ipv6: "dirección IPv6", cidrv4: "rango IPv4", cidrv6: "rango IPv6", base64: "cadena codificada en base64", base64url: "URL codificada en base64", json_string: "cadena JSON", e164: "número E.164", jwt: "JWT", template_literal: "entrada" }, o = { nan: "NaN", string: "texto", number: "número", boolean: "booleano", array: "arreglo", object: "objeto", set: "conjunto", file: "archivo", date: "fecha", bigint: "número grande", symbol: "símbolo", undefined: "indefinido", null: "nulo", function: "función", map: "mapa", record: "registro", tuple: "tupla", enum: "enumeración", union: "unión", literal: "literal", promise: "promesa", void: "vacío", never: "nunca", unknown: "desconocido", any: "cualquiera" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Entrada inválida: se esperaba instanceof ${t.expected}, recibido ${u}` : `Entrada inválida: se esperaba ${i}, recibido ${u}`; } case "invalid_value": return t.values.length === 1 ? `Entrada inválida: se esperaba ${L(t.values[0])}` : `Opción inválida: se esperaba una de ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), u = o[t.origin] ?? t.origin; return a ? `Demasiado grande: se esperaba que ${u ?? "valor"} tuviera ${i}${t.maximum.toString()} ${a.unit ?? "elementos"}` : `Demasiado grande: se esperaba que ${u ?? "valor"} fuera ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin), u = o[t.origin] ?? t.origin; return a ? `Demasiado pequeño: se esperaba que ${u} tuviera ${i}${t.minimum.toString()} ${a.unit}` : `Demasiado pequeño: se esperaba que ${u} fuera ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Cadena inválida: debe comenzar con "${i.prefix}"` : i.format === "ends_with" ? `Cadena inválida: debe terminar en "${i.suffix}"` : i.format === "includes" ? `Cadena inválida: debe incluir "${i.includes}"` : i.format === "regex" ? `Cadena inválida: debe coincidir con el patrón ${i.pattern}` : `Inválido ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Número inválido: debe ser múltiplo de ${t.divisor}`; case "unrecognized_keys": return `Llave${t.keys.length > 1 ? "s" : ""} desconocida${t.keys.length > 1 ? "s" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `Llave inválida en ${o[t.origin] ?? t.origin}`; case "invalid_union": return "Entrada inválida"; case "invalid_element": return `Valor inválido en ${o[t.origin] ?? t.origin}`; default: return "Entrada inválida"; } }; }; function yg() { return { localeError: _g() }; } const kg = () => { const e = { string: { unit: "کاراکتر", verb: "داشته باشد" }, file: { unit: "بایت", verb: "داشته باشد" }, array: { unit: "آیتم", verb: "داشته باشد" }, set: { unit: "آیتم", verb: "داشته باشد" } }; function n(t) { return e[t] ?? null; } const r = { regex: "ورودی", email: "آدرس ایمیل", url: "URL", emoji: "ایموجی", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "تاریخ و زمان ایزو", date: "تاریخ ایزو", time: "زمان ایزو", duration: "مدت زمان ایزو", ipv4: "IPv4 آدرس", ipv6: "IPv6 آدرس", cidrv4: "IPv4 دامنه", cidrv6: "IPv6 دامنه", base64: "base64-encoded رشته", base64url: "base64url-encoded رشته", json_string: "JSON رشته", e164: "E.164 عدد", jwt: "JWT", template_literal: "ورودی" }, o = { nan: "NaN", number: "عدد", array: "آرایه" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ورودی نامعتبر: می‌بایست instanceof ${t.expected} می‌بود، ${u} دریافت شد` : `ورودی نامعتبر: می‌بایست ${i} می‌بود، ${u} دریافت شد`; } case "invalid_value": return t.values.length === 1 ? `ورودی نامعتبر: می‌بایست ${L(t.values[0])} می‌بود` : `گزینه نامعتبر: می‌بایست یکی از ${I(t.values, "|")} می‌بود`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `خیلی بزرگ: ${t.origin ?? "مقدار"} باید ${i}${t.maximum.toString()} ${a.unit ?? "عنصر"} باشد` : `خیلی بزرگ: ${t.origin ?? "مقدار"} باید ${i}${t.maximum.toString()} باشد`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `خیلی کوچک: ${t.origin} باید ${i}${t.minimum.toString()} ${a.unit} باشد` : `خیلی کوچک: ${t.origin} باید ${i}${t.minimum.toString()} باشد`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `رشته نامعتبر: باید با "${i.prefix}" شروع شود` : i.format === "ends_with" ? `رشته نامعتبر: باید با "${i.suffix}" تمام شود` : i.format === "includes" ? `رشته نامعتبر: باید شامل "${i.includes}" باشد` : i.format === "regex" ? `رشته نامعتبر: باید با الگوی ${i.pattern} مطابقت داشته باشد` : `${r[i.format] ?? t.format} نامعتبر`; } case "not_multiple_of": return `عدد نامعتبر: باید مضرب ${t.divisor} باشد`; case "unrecognized_keys": return `کلید${t.keys.length > 1 ? "های" : ""} ناشناس: ${I(t.keys, ", ")}`; case "invalid_key": return `کلید ناشناس در ${t.origin}`; case "invalid_union": return "ورودی نامعتبر"; case "invalid_element": return `مقدار نامعتبر در ${t.origin}`; default: return "ورودی نامعتبر"; } }; }; function Sg() { return { localeError: kg() }; } const wg = () => { const e = { string: { unit: "merkkiä", subject: "merkkijonon" }, file: { unit: "tavua", subject: "tiedoston" }, array: { unit: "alkiota", subject: "listan" }, set: { unit: "alkiota", subject: "joukon" }, number: { unit: "", subject: "luvun" }, bigint: { unit: "", subject: "suuren kokonaisluvun" }, int: { unit: "", subject: "kokonaisluvun" }, date: { unit: "", subject: "päivämäärän" } }; function n(t) { return e[t] ?? null; } const r = { regex: "säännöllinen lauseke", email: "sähköpostiosoite", url: "URL-osoite", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO-aikaleima", date: "ISO-päivämäärä", time: "ISO-aika", duration: "ISO-kesto", ipv4: "IPv4-osoite", ipv6: "IPv6-osoite", cidrv4: "IPv4-alue", cidrv6: "IPv6-alue", base64: "base64-koodattu merkkijono", base64url: "base64url-koodattu merkkijono", json_string: "JSON-merkkijono", e164: "E.164-luku", jwt: "JWT", template_literal: "templaattimerkkijono" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${u}` : `Virheellinen tyyppi: odotettiin ${i}, oli ${u}`; } case "invalid_value": return t.values.length === 1 ? `Virheellinen syöte: täytyy olla ${L(t.values[0])}` : `Virheellinen valinta: täytyy olla yksi seuraavista: ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Liian suuri: ${a.subject} täytyy olla ${i}${t.maximum.toString()} ${a.unit}`.trim() : `Liian suuri: arvon täytyy olla ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Liian pieni: ${a.subject} täytyy olla ${i}${t.minimum.toString()} ${a.unit}`.trim() : `Liian pieni: arvon täytyy olla ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Virheellinen syöte: täytyy alkaa "${i.prefix}"` : i.format === "ends_with" ? `Virheellinen syöte: täytyy loppua "${i.suffix}"` : i.format === "includes" ? `Virheellinen syöte: täytyy sisältää "${i.includes}"` : i.format === "regex" ? `Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${i.pattern}` : `Virheellinen ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`; case "unrecognized_keys": return `${t.keys.length > 1 ? "Tuntemattomat avaimet" : "Tuntematon avain"}: ${I(t.keys, ", ")}`; case "invalid_key": return "Virheellinen avain tietueessa"; case "invalid_union": return "Virheellinen unioni"; case "invalid_element": return "Virheellinen arvo joukossa"; default: return "Virheellinen syöte"; } }; }; function Ig() { return { localeError: wg() }; } const zg = () => { const e = { string: { unit: "caractères", verb: "avoir" }, file: { unit: "octets", verb: "avoir" }, array: { unit: "éléments", verb: "avoir" }, set: { unit: "éléments", verb: "avoir" } }; function n(t) { return e[t] ?? null; } const r = { regex: "entrée", email: "adresse e-mail", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "date et heure ISO", date: "date ISO", time: "heure ISO", duration: "durée ISO", ipv4: "adresse IPv4", ipv6: "adresse IPv6", cidrv4: "plage IPv4", cidrv6: "plage IPv6", base64: "chaîne encodée en base64", base64url: "chaîne encodée en base64url", json_string: "chaîne JSON", e164: "numéro E.164", jwt: "JWT", template_literal: "entrée" }, o = { nan: "NaN", number: "nombre", array: "tableau" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Entrée invalide : instanceof ${t.expected} attendu, ${u} reçu` : `Entrée invalide : ${i} attendu, ${u} reçu`; } case "invalid_value": return t.values.length === 1 ? `Entrée invalide : ${L(t.values[0])} attendu` : `Option invalide : une valeur parmi ${I(t.values, "|")} attendue`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Trop grand : ${t.origin ?? "valeur"} doit ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "élément(s)"}` : `Trop grand : ${t.origin ?? "valeur"} doit être ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Trop petit : ${t.origin} doit ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Trop petit : ${t.origin} doit être ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Chaîne invalide : doit commencer par "${i.prefix}"` : i.format === "ends_with" ? `Chaîne invalide : doit se terminer par "${i.suffix}"` : i.format === "includes" ? `Chaîne invalide : doit inclure "${i.includes}"` : i.format === "regex" ? `Chaîne invalide : doit correspondre au modèle ${i.pattern}` : `${r[i.format] ?? t.format} invalide`; } case "not_multiple_of": return `Nombre invalide : doit être un multiple de ${t.divisor}`; case "unrecognized_keys": return `Clé${t.keys.length > 1 ? "s" : ""} non reconnue${t.keys.length > 1 ? "s" : ""} : ${I(t.keys, ", ")}`; case "invalid_key": return `Clé invalide dans ${t.origin}`; case "invalid_union": return "Entrée invalide"; case "invalid_element": return `Valeur invalide dans ${t.origin}`; default: return "Entrée invalide"; } }; }; function xg() { return { localeError: zg() }; } const Dg = () => { const e = { string: { unit: "caractères", verb: "avoir" }, file: { unit: "octets", verb: "avoir" }, array: { unit: "éléments", verb: "avoir" }, set: { unit: "éléments", verb: "avoir" } }; function n(t) { return e[t] ?? null; } const r = { regex: "entrée", email: "adresse courriel", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "date-heure ISO", date: "date ISO", time: "heure ISO", duration: "durée ISO", ipv4: "adresse IPv4", ipv6: "adresse IPv6", cidrv4: "plage IPv4", cidrv6: "plage IPv6", base64: "chaîne encodée en base64", base64url: "chaîne encodée en base64url", json_string: "chaîne JSON", e164: "numéro E.164", jwt: "JWT", template_literal: "entrée" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Entrée invalide : attendu instanceof ${t.expected}, reçu ${u}` : `Entrée invalide : attendu ${i}, reçu ${u}`; } case "invalid_value": return t.values.length === 1 ? `Entrée invalide : attendu ${L(t.values[0])}` : `Option invalide : attendu l'une des valeurs suivantes ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "≤" : "<", a = n(t.origin); return a ? `Trop grand : attendu que ${t.origin ?? "la valeur"} ait ${i}${t.maximum.toString()} ${a.unit}` : `Trop grand : attendu que ${t.origin ?? "la valeur"} soit ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? "≥" : ">", a = n(t.origin); return a ? `Trop petit : attendu que ${t.origin} ait ${i}${t.minimum.toString()} ${a.unit}` : `Trop petit : attendu que ${t.origin} soit ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Chaîne invalide : doit commencer par "${i.prefix}"` : i.format === "ends_with" ? `Chaîne invalide : doit se terminer par "${i.suffix}"` : i.format === "includes" ? `Chaîne invalide : doit inclure "${i.includes}"` : i.format === "regex" ? `Chaîne invalide : doit correspondre au motif ${i.pattern}` : `${r[i.format] ?? t.format} invalide`; } case "not_multiple_of": return `Nombre invalide : doit être un multiple de ${t.divisor}`; case "unrecognized_keys": return `Clé${t.keys.length > 1 ? "s" : ""} non reconnue${t.keys.length > 1 ? "s" : ""} : ${I(t.keys, ", ")}`; case "invalid_key": return `Clé invalide dans ${t.origin}`; case "invalid_union": return "Entrée invalide"; case "invalid_element": return `Valeur invalide dans ${t.origin}`; default: return "Entrée invalide"; } }; }; function Og() { return { localeError: Dg() }; } const Ug = () => { const e = { string: { label: "מחרוזת", gender: "f" }, number: { label: "מספר", gender: "m" }, boolean: { label: "ערך בוליאני", gender: "m" }, bigint: { label: "BigInt", gender: "m" }, date: { label: "תאריך", gender: "m" }, array: { label: "מערך", gender: "m" }, object: { label: "אובייקט", gender: "m" }, null: { label: "ערך ריק (null)", gender: "m" }, undefined: { label: "ערך לא מוגדר (undefined)", gender: "m" }, symbol: { label: "סימבול (Symbol)", gender: "m" }, function: { label: "פונקציה", gender: "f" }, map: { label: "מפה (Map)", gender: "f" }, set: { label: "קבוצה (Set)", gender: "f" }, file: { label: "קובץ", gender: "m" }, promise: { label: "Promise", gender: "m" }, NaN: { label: "NaN", gender: "m" }, unknown: { label: "ערך לא ידוע", gender: "m" }, value: { label: "ערך", gender: "m" } }, n = { string: { unit: "תווים", shortLabel: "קצר", longLabel: "ארוך" }, file: { unit: "בייטים", shortLabel: "קטן", longLabel: "גדול" }, array: { unit: "פריטים", shortLabel: "קטן", longLabel: "גדול" }, set: { unit: "פריטים", shortLabel: "קטן", longLabel: "גדול" }, number: { unit: "", shortLabel: "קטן", longLabel: "גדול" } // no unit }, r = (l) => l ? e[l] : void 0, o = (l) => { const d = r(l); return d ? d.label : l ?? e.unknown.label; }, t = (l) => `ה${o(l)}`, i = (l) => { const d = r(l); return ((d == null ? void 0 : d.gender) ?? "m") === "f" ? "צריכה להיות" : "צריך להיות"; }, a = (l) => l ? n[l] ?? null : null, u = { regex: { label: "קלט", gender: "m" }, email: { label: "כתובת אימייל", gender: "f" }, url: { label: "כתובת רשת", gender: "f" }, emoji: { label: "אימוג'י", gender: "m" }, uuid: { label: "UUID", gender: "m" }, nanoid: { label: "nanoid", gender: "m" }, guid: { label: "GUID", gender: "m" }, cuid: { label: "cuid", gender: "m" }, cuid2: { label: "cuid2", gender: "m" }, ulid: { label: "ULID", gender: "m" }, xid: { label: "XID", gender: "m" }, ksuid: { label: "KSUID", gender: "m" }, datetime: { label: "תאריך וזמן ISO", gender: "m" }, date: { label: "תאריך ISO", gender: "m" }, time: { label: "זמן ISO", gender: "m" }, duration: { label: "משך זמן ISO", gender: "m" }, ipv4: { label: "כתובת IPv4", gender: "f" }, ipv6: { label: "כתובת IPv6", gender: "f" }, cidrv4: { label: "טווח IPv4", gender: "m" }, cidrv6: { label: "טווח IPv6", gender: "m" }, base64: { label: "מחרוזת בבסיס 64", gender: "f" }, base64url: { label: "מחרוזת בבסיס 64 לכתובות רשת", gender: "f" }, json_string: { label: "מחרוזת JSON", gender: "f" }, e164: { label: "מספר E.164", gender: "m" }, jwt: { label: "JWT", gender: "m" }, ends_with: { label: "קלט", gender: "m" }, includes: { label: "קלט", gender: "m" }, lowercase: { label: "קלט", gender: "m" }, starts_with: { label: "קלט", gender: "m" }, uppercase: { label: "קלט", gender: "m" } }, c = { nan: "NaN" }; return (l) => { var d; switch (l.code) { case "invalid_type": { const s = l.expected, p = c[s ?? ""] ?? o(s), $ = B(l.input), g = c[$] ?? ((d = e[$]) == null ? void 0 : d.label) ?? $; return /^[A-Z]/.test(l.expected) ? `קלט לא תקין: צריך להיות instanceof ${l.expected}, התקבל ${g}` : `קלט לא תקין: צריך להיות ${p}, התקבל ${g}`; } case "invalid_value": { if (l.values.length === 1) return `ערך לא תקין: הערך חייב להיות ${L(l.values[0])}`; const s = l.values.map((g) => L(g)); if (l.values.length === 2) return `ערך לא תקין: האפשרויות המתאימות הן ${s[0]} או ${s[1]}`; const p = s[s.length - 1]; return `ערך לא תקין: האפשרויות המתאימות הן ${s.slice(0, -1).join(", ")} או ${p}`; } case "too_big": { const s = a(l.origin), p = t(l.origin ?? "value"); if (l.origin === "string") return `${(s == null ? void 0 : s.longLabel) ?? "ארוך"} מדי: ${p} צריכה להכיל ${l.maximum.toString()} ${(s == null ? void 0 : s.unit) ?? ""} ${l.inclusive ? "או פחות" : "לכל היותר"}`.trim(); if (l.origin === "number") { const m = l.inclusive ? `קטן או שווה ל-${l.maximum}` : `קטן מ-${l.maximum}`; return `גדול מדי: ${p} צריך להיות ${m}`; } if (l.origin === "array" || l.origin === "set") { const m = l.origin === "set" ? "צריכה" : "צריך", y = l.inclusive ? `${l.maximum} ${(s == null ? void 0 : s.unit) ?? ""} או פחות` : `פחות מ-${l.maximum} ${(s == null ? void 0 : s.unit) ?? ""}`; return `גדול מדי: ${p} ${m} להכיל ${y}`.trim(); } const $ = l.inclusive ? "<=" : "<", g = i(l.origin ?? "value"); return s != null && s.unit ? `${s.longLabel} מדי: ${p} ${g} ${$}${l.maximum.toString()} ${s.unit}` : `${(s == null ? void 0 : s.longLabel) ?? "גדול"} מדי: ${p} ${g} ${$}${l.maximum.toString()}`; } case "too_small": { const s = a(l.origin), p = t(l.origin ?? "value"); if (l.origin === "string") return `${(s == null ? void 0 : s.shortLabel) ?? "קצר"} מדי: ${p} צריכה להכיל ${l.minimum.toString()} ${(s == null ? void 0 : s.unit) ?? ""} ${l.inclusive ? "או יותר" : "לפחות"}`.trim(); if (l.origin === "number") { const m = l.inclusive ? `גדול או שווה ל-${l.minimum}` : `גדול מ-${l.minimum}`; return `קטן מדי: ${p} צריך להיות ${m}`; } if (l.origin === "array" || l.origin === "set") { const m = l.origin === "set" ? "צריכה" : "צריך"; if (l.minimum === 1 && l.inclusive) { const b = (l.origin === "set", "לפחות פריט אחד"); return `קטן מדי: ${p} ${m} להכיל ${b}`; } const y = l.inclusive ? `${l.minimum} ${(s == null ? void 0 : s.unit) ?? ""} או יותר` : `יותר מ-${l.minimum} ${(s == null ? void 0 : s.unit) ?? ""}`; return `קטן מדי: ${p} ${m} להכיל ${y}`.trim(); } const $ = l.inclusive ? ">=" : ">", g = i(l.origin ?? "value"); return s != null && s.unit ? `${s.shortLabel} מדי: ${p} ${g} ${$}${l.minimum.toString()} ${s.unit}` : `${(s == null ? void 0 : s.shortLabel) ?? "קטן"} מדי: ${p} ${g} ${$}${l.minimum.toString()}`; } case "invalid_format": { const s = l; if (s.format === "starts_with") return `המחרוזת חייבת להתחיל ב "${s.prefix}"`; if (s.format === "ends_with") return `המחרוזת חייבת להסתיים ב "${s.suffix}"`; if (s.format === "includes") return `המחרוזת חייבת לכלול "${s.includes}"`; if (s.format === "regex") return `המחרוזת חייבת להתאים לתבנית ${s.pattern}`; const p = u[s.format], $ = (p == null ? void 0 : p.label) ?? s.format, m = ((p == null ? void 0 : p.gender) ?? "m") === "f" ? "תקינה" : "תקין"; return `${$} לא ${m}`; } case "not_multiple_of": return `מספר לא תקין: חייב להיות מכפלה של ${l.divisor}`; case "unrecognized_keys": return `מפתח${l.keys.length > 1 ? "ות" : ""} לא מזוה${l.keys.length > 1 ? "ים" : "ה"}: ${I(l.keys, ", ")}`; case "invalid_key": return "שדה לא תקין באובייקט"; case "invalid_union": return "קלט לא תקין"; case "invalid_element": return `ערך לא תקין ב${t(l.origin ?? "array")}`; default: return "קלט לא תקין"; } }; }; function jg() { return { localeError: Ug() }; } const Tg = () => { const e = { string: { unit: "karakter", verb: "legyen" }, file: { unit: "byte", verb: "legyen" }, array: { unit: "elem", verb: "legyen" }, set: { unit: "elem", verb: "legyen" } }; function n(t) { return e[t] ?? null; } const r = { regex: "bemenet", email: "email cím", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO időbélyeg", date: "ISO dátum", time: "ISO idő", duration: "ISO időintervallum", ipv4: "IPv4 cím", ipv6: "IPv6 cím", cidrv4: "IPv4 tartomány", cidrv6: "IPv6 tartomány", base64: "base64-kódolt string", base64url: "base64url-kódolt string", json_string: "JSON string", e164: "E.164 szám", jwt: "JWT", template_literal: "bemenet" }, o = { nan: "NaN", number: "szám", array: "tömb" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Érvénytelen bemenet: a várt érték instanceof ${t.expected}, a kapott érték ${u}` : `Érvénytelen bemenet: a várt érték ${i}, a kapott érték ${u}`; } case "invalid_value": return t.values.length === 1 ? `Érvénytelen bemenet: a várt érték ${L(t.values[0])}` : `Érvénytelen opció: valamelyik érték várt ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Túl nagy: ${t.origin ?? "érték"} mérete túl nagy ${i}${t.maximum.toString()} ${a.unit ?? "elem"}` : `Túl nagy: a bemeneti érték ${t.origin ?? "érték"} túl nagy: ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Túl kicsi: a bemeneti érték ${t.origin} mérete túl kicsi ${i}${t.minimum.toString()} ${a.unit}` : `Túl kicsi: a bemeneti érték ${t.origin} túl kicsi ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Érvénytelen string: "${i.prefix}" értékkel kell kezdődnie` : i.format === "ends_with" ? `Érvénytelen string: "${i.suffix}" értékkel kell végződnie` : i.format === "includes" ? `Érvénytelen string: "${i.includes}" értéket kell tartalmaznia` : i.format === "regex" ? `Érvénytelen string: ${i.pattern} mintának kell megfelelnie` : `Érvénytelen ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Érvénytelen szám: ${t.divisor} többszörösének kell lennie`; case "unrecognized_keys": return `Ismeretlen kulcs${t.keys.length > 1 ? "s" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `Érvénytelen kulcs ${t.origin}`; case "invalid_union": return "Érvénytelen bemenet"; case "invalid_element": return `Érvénytelen érték: ${t.origin}`; default: return "Érvénytelen bemenet"; } }; }; function Eg() { return { localeError: Tg() }; } function la(e, n, r) { return Math.abs(e) === 1 ? n : r; } function pt(e) { if (!e) return ""; const n = ["ա", "ե", "ը", "ի", "ո", "ու", "օ"], r = e[e.length - 1]; return e + (n.includes(r) ? "ն" : "ը"); } const Pg = () => { const e = { string: { unit: { one: "նշան", many: "նշաններ" }, verb: "ունենալ" }, file: { unit: { one: "բայթ", many: "բայթեր" }, verb: "ունենալ" }, array: { unit: { one: "տարր", many: "տարրեր" }, verb: "ունենալ" }, set: { unit: { one: "տարր", many: "տարրեր" }, verb: "ունենալ" } }; function n(t) { return e[t] ?? null; } const r = { regex: "մուտք", email: "էլ. հասցե", url: "URL", emoji: "էմոջի", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO ամսաթիվ և ժամ", date: "ISO ամսաթիվ", time: "ISO ժամ", duration: "ISO տևողություն", ipv4: "IPv4 հասցե", ipv6: "IPv6 հասցե", cidrv4: "IPv4 միջակայք", cidrv6: "IPv6 միջակայք", base64: "base64 ձևաչափով տող", base64url: "base64url ձևաչափով տող", json_string: "JSON տող", e164: "E.164 համար", jwt: "JWT", template_literal: "մուտք" }, o = { nan: "NaN", number: "թիվ", array: "զանգված" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Սխալ մուտքագրում․ սպասվում էր instanceof ${t.expected}, ստացվել է ${u}` : `Սխալ մուտքագրում․ սպասվում էր ${i}, ստացվել է ${u}`; } case "invalid_value": return t.values.length === 1 ? `Սխալ մուտքագրում․ սպասվում էր ${L(t.values[1])}` : `Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { const u = Number(t.maximum), c = la(u, a.unit.one, a.unit.many); return `Չափազանց մեծ արժեք․ սպասվում է, որ ${pt(t.origin ?? "արժեք")} կունենա ${i}${t.maximum.toString()} ${c}`; } return `Չափազանց մեծ արժեք․ սպասվում է, որ ${pt(t.origin ?? "արժեք")} լինի ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); if (a) { const u = Number(t.minimum), c = la(u, a.unit.one, a.unit.many); return `Չափազանց փոքր արժեք․ սպասվում է, որ ${pt(t.origin)} կունենա ${i}${t.minimum.toString()} ${c}`; } return `Չափազանց փոքր արժեք․ սպասվում է, որ ${pt(t.origin)} լինի ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Սխալ տող․ պետք է սկսվի "${i.prefix}"-ով` : i.format === "ends_with" ? `Սխալ տող․ պետք է ավարտվի "${i.suffix}"-ով` : i.format === "includes" ? `Սխալ տող․ պետք է պարունակի "${i.includes}"` : i.format === "regex" ? `Սխալ տող․ պետք է համապատասխանի ${i.pattern} ձևաչափին` : `Սխալ ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Սխալ թիվ․ պետք է բազմապատիկ լինի ${t.divisor}-ի`; case "unrecognized_keys": return `Չճանաչված բանալի${t.keys.length > 1 ? "ներ" : ""}. ${I(t.keys, ", ")}`; case "invalid_key": return `Սխալ բանալի ${pt(t.origin)}-ում`; case "invalid_union": return "Սխալ մուտքագրում"; case "invalid_element": return `Սխալ արժեք ${pt(t.origin)}-ում`; default: return "Սխալ մուտքագրում"; } }; }; function Ng() { return { localeError: Pg() }; } const Ag = () => { const e = { string: { unit: "karakter", verb: "memiliki" }, file: { unit: "byte", verb: "memiliki" }, array: { unit: "item", verb: "memiliki" }, set: { unit: "item", verb: "memiliki" } }; function n(t) { return e[t] ?? null; } const r = { regex: "input", email: "alamat email", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "tanggal dan waktu format ISO", date: "tanggal format ISO", time: "jam format ISO", duration: "durasi format ISO", ipv4: "alamat IPv4", ipv6: "alamat IPv6", cidrv4: "rentang alamat IPv4", cidrv6: "rentang alamat IPv6", base64: "string dengan enkode base64", base64url: "string dengan enkode base64url", json_string: "string JSON", e164: "angka E.164", jwt: "JWT", template_literal: "input" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${u}` : `Input tidak valid: diharapkan ${i}, diterima ${u}`; } case "invalid_value": return t.values.length === 1 ? `Input tidak valid: diharapkan ${L(t.values[0])}` : `Pilihan tidak valid: diharapkan salah satu dari ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Terlalu besar: diharapkan ${t.origin ?? "value"} memiliki ${i}${t.maximum.toString()} ${a.unit ?? "elemen"}` : `Terlalu besar: diharapkan ${t.origin ?? "value"} menjadi ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Terlalu kecil: diharapkan ${t.origin} memiliki ${i}${t.minimum.toString()} ${a.unit}` : `Terlalu kecil: diharapkan ${t.origin} menjadi ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `String tidak valid: harus dimulai dengan "${i.prefix}"` : i.format === "ends_with" ? `String tidak valid: harus berakhir dengan "${i.suffix}"` : i.format === "includes" ? `String tidak valid: harus menyertakan "${i.includes}"` : i.format === "regex" ? `String tidak valid: harus sesuai pola ${i.pattern}` : `${r[i.format] ?? t.format} tidak valid`; } case "not_multiple_of": return `Angka tidak valid: harus kelipatan dari ${t.divisor}`; case "unrecognized_keys": return `Kunci tidak dikenali ${t.keys.length > 1 ? "s" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `Kunci tidak valid di ${t.origin}`; case "invalid_union": return "Input tidak valid"; case "invalid_element": return `Nilai tidak valid di ${t.origin}`; default: return "Input tidak valid"; } }; }; function Zg() { return { localeError: Ag() }; } const Cg = () => { const e = { string: { unit: "stafi", verb: "að hafa" }, file: { unit: "bæti", verb: "að hafa" }, array: { unit: "hluti", verb: "að hafa" }, set: { unit: "hluti", verb: "að hafa" } }; function n(t) { return e[t] ?? null; } const r = { regex: "gildi", email: "netfang", url: "vefslóð", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO dagsetning og tími", date: "ISO dagsetning", time: "ISO tími", duration: "ISO tímalengd", ipv4: "IPv4 address", ipv6: "IPv6 address", cidrv4: "IPv4 range", cidrv6: "IPv6 range", base64: "base64-encoded strengur", base64url: "base64url-encoded strengur", json_string: "JSON strengur", e164: "E.164 tölugildi", jwt: "JWT", template_literal: "gildi" }, o = { nan: "NaN", number: "númer", array: "fylki" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Rangt gildi: Þú slóst inn ${u} þar sem á að vera instanceof ${t.expected}` : `Rangt gildi: Þú slóst inn ${u} þar sem á að vera ${i}`; } case "invalid_value": return t.values.length === 1 ? `Rangt gildi: gert ráð fyrir ${L(t.values[0])}` : `Ógilt val: má vera eitt af eftirfarandi ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Of stórt: gert er ráð fyrir að ${t.origin ?? "gildi"} hafi ${i}${t.maximum.toString()} ${a.unit ?? "hluti"}` : `Of stórt: gert er ráð fyrir að ${t.origin ?? "gildi"} sé ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Of lítið: gert er ráð fyrir að ${t.origin} hafi ${i}${t.minimum.toString()} ${a.unit}` : `Of lítið: gert er ráð fyrir að ${t.origin} sé ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Ógildur strengur: verður að byrja á "${i.prefix}"` : i.format === "ends_with" ? `Ógildur strengur: verður að enda á "${i.suffix}"` : i.format === "includes" ? `Ógildur strengur: verður að innihalda "${i.includes}"` : i.format === "regex" ? `Ógildur strengur: verður að fylgja mynstri ${i.pattern}` : `Rangt ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Röng tala: verður að vera margfeldi af ${t.divisor}`; case "unrecognized_keys": return `Óþekkt ${t.keys.length > 1 ? "ir lyklar" : "ur lykill"}: ${I(t.keys, ", ")}`; case "invalid_key": return `Rangur lykill í ${t.origin}`; case "invalid_union": return "Rangt gildi"; case "invalid_element": return `Rangt gildi í ${t.origin}`; default: return "Rangt gildi"; } }; }; function Mg() { return { localeError: Cg() }; } const Fg = () => { const e = { string: { unit: "caratteri", verb: "avere" }, file: { unit: "byte", verb: "avere" }, array: { unit: "elementi", verb: "avere" }, set: { unit: "elementi", verb: "avere" } }; function n(t) { return e[t] ?? null; } const r = { regex: "input", email: "indirizzo email", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "data e ora ISO", date: "data ISO", time: "ora ISO", duration: "durata ISO", ipv4: "indirizzo IPv4", ipv6: "indirizzo IPv6", cidrv4: "intervallo IPv4", cidrv6: "intervallo IPv6", base64: "stringa codificata in base64", base64url: "URL codificata in base64", json_string: "stringa JSON", e164: "numero E.164", jwt: "JWT", template_literal: "input" }, o = { nan: "NaN", number: "numero", array: "vettore" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Input non valido: atteso instanceof ${t.expected}, ricevuto ${u}` : `Input non valido: atteso ${i}, ricevuto ${u}`; } case "invalid_value": return t.values.length === 1 ? `Input non valido: atteso ${L(t.values[0])}` : `Opzione non valida: atteso uno tra ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Troppo grande: ${t.origin ?? "valore"} deve avere ${i}${t.maximum.toString()} ${a.unit ?? "elementi"}` : `Troppo grande: ${t.origin ?? "valore"} deve essere ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Troppo piccolo: ${t.origin} deve avere ${i}${t.minimum.toString()} ${a.unit}` : `Troppo piccolo: ${t.origin} deve essere ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Stringa non valida: deve iniziare con "${i.prefix}"` : i.format === "ends_with" ? `Stringa non valida: deve terminare con "${i.suffix}"` : i.format === "includes" ? `Stringa non valida: deve includere "${i.includes}"` : i.format === "regex" ? `Stringa non valida: deve corrispondere al pattern ${i.pattern}` : `Invalid ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Numero non valido: deve essere un multiplo di ${t.divisor}`; case "unrecognized_keys": return `Chiav${t.keys.length > 1 ? "i" : "e"} non riconosciut${t.keys.length > 1 ? "e" : "a"}: ${I(t.keys, ", ")}`; case "invalid_key": return `Chiave non valida in ${t.origin}`; case "invalid_union": return "Input non valido"; case "invalid_element": return `Valore non valido in ${t.origin}`; default: return "Input non valido"; } }; }; function Lg() { return { localeError: Fg() }; } const Rg = () => { const e = { string: { unit: "文字", verb: "である" }, file: { unit: "バイト", verb: "である" }, array: { unit: "要素", verb: "である" }, set: { unit: "要素", verb: "である" } }; function n(t) { return e[t] ?? null; } const r = { regex: "入力値", email: "メールアドレス", url: "URL", emoji: "絵文字", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO日時", date: "ISO日付", time: "ISO時刻", duration: "ISO期間", ipv4: "IPv4アドレス", ipv6: "IPv6アドレス", cidrv4: "IPv4範囲", cidrv6: "IPv6範囲", base64: "base64エンコード文字列", base64url: "base64urlエンコード文字列", json_string: "JSON文字列", e164: "E.164番号", jwt: "JWT", template_literal: "入力値" }, o = { nan: "NaN", number: "数値", array: "配列" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `無効な入力: instanceof ${t.expected}が期待されましたが、${u}が入力されました` : `無効な入力: ${i}が期待されましたが、${u}が入力されました`; } case "invalid_value": return t.values.length === 1 ? `無効な入力: ${L(t.values[0])}が期待されました` : `無効な選択: ${I(t.values, "、")}のいずれかである必要があります`; case "too_big": { const i = t.inclusive ? "以下である" : "より小さい", a = n(t.origin); return a ? `大きすぎる値: ${t.origin ?? "値"}は${t.maximum.toString()}${a.unit ?? "要素"}${i}必要があります` : `大きすぎる値: ${t.origin ?? "値"}は${t.maximum.toString()}${i}必要があります`; } case "too_small": { const i = t.inclusive ? "以上である" : "より大きい", a = n(t.origin); return a ? `小さすぎる値: ${t.origin}は${t.minimum.toString()}${a.unit}${i}必要があります` : `小さすぎる値: ${t.origin}は${t.minimum.toString()}${i}必要があります`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `無効な文字列: "${i.prefix}"で始まる必要があります` : i.format === "ends_with" ? `無効な文字列: "${i.suffix}"で終わる必要があります` : i.format === "includes" ? `無効な文字列: "${i.includes}"を含む必要があります` : i.format === "regex" ? `無効な文字列: パターン${i.pattern}に一致する必要があります` : `無効な${r[i.format] ?? t.format}`; } case "not_multiple_of": return `無効な数値: ${t.divisor}の倍数である必要があります`; case "unrecognized_keys": return `認識されていないキー${t.keys.length > 1 ? "群" : ""}: ${I(t.keys, "、")}`; case "invalid_key": return `${t.origin}内の無効なキー`; case "invalid_union": return "無効な入力"; case "invalid_element": return `${t.origin}内の無効な値`; default: return "無効な入力"; } }; }; function Bg() { return { localeError: Rg() }; } const Jg = () => { const e = { string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" }, file: { unit: "ბაიტი", verb: "უნდა შეიცავდეს" }, array: { unit: "ელემენტი", verb: "უნდა შეიცავდეს" }, set: { unit: "ელემენტი", verb: "უნდა შეიცავდეს" } }; function n(t) { return e[t] ?? null; } const r = { regex: "შეყვანა", email: "ელ-ფოსტის მისამართი", url: "URL", emoji: "ემოჯი", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "თარიღი-დრო", date: "თარიღი", time: "დრო", duration: "ხანგრძლივობა", ipv4: "IPv4 მისამართი", ipv6: "IPv6 მისამართი", cidrv4: "IPv4 დიაპაზონი", cidrv6: "IPv6 დიაპაზონი", base64: "base64-კოდირებული სტრინგი", base64url: "base64url-კოდირებული სტრინგი", json_string: "JSON სტრინგი", e164: "E.164 ნომერი", jwt: "JWT", template_literal: "შეყვანა" }, o = { nan: "NaN", number: "რიცხვი", string: "სტრინგი", boolean: "ბულეანი", function: "ფუნქცია", array: "მასივი" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `არასწორი შეყვანა: მოსალოდნელი instanceof ${t.expected}, მიღებული ${u}` : `არასწორი შეყვანა: მოსალოდნელი ${i}, მიღებული ${u}`; } case "invalid_value": return t.values.length === 1 ? `არასწორი შეყვანა: მოსალოდნელი ${L(t.values[0])}` : `არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${I(t.values, "|")}-დან`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `ზედმეტად დიდი: მოსალოდნელი ${t.origin ?? "მნიშვნელობა"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit}` : `ზედმეტად დიდი: მოსალოდნელი ${t.origin ?? "მნიშვნელობა"} იყოს ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `ზედმეტად პატარა: მოსალოდნელი ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `ზედმეტად პატარა: მოსალოდნელი ${t.origin} იყოს ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `არასწორი სტრინგი: უნდა იწყებოდეს "${i.prefix}"-ით` : i.format === "ends_with" ? `არასწორი სტრინგი: უნდა მთავრდებოდეს "${i.suffix}"-ით` : i.format === "includes" ? `არასწორი სტრინგი: უნდა შეიცავდეს "${i.includes}"-ს` : i.format === "regex" ? `არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${i.pattern}` : `არასწორი ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `არასწორი რიცხვი: უნდა იყოს ${t.divisor}-ის ჯერადი`; case "unrecognized_keys": return `უცნობი გასაღებ${t.keys.length > 1 ? "ები" : "ი"}: ${I(t.keys, ", ")}`; case "invalid_key": return `არასწორი გასაღები ${t.origin}-ში`; case "invalid_union": return "არასწორი შეყვანა"; case "invalid_element": return `არასწორი მნიშვნელობა ${t.origin}-ში`; default: return "არასწორი შეყვანა"; } }; }; function qg() { return { localeError: Jg() }; } const Vg = () => { const e = { string: { unit: "តួអក្សរ", verb: "គួរមាន" }, file: { unit: "បៃ", verb: "គួរមាន" }, array: { unit: "ធាតុ", verb: "គួរមាន" }, set: { unit: "ធាតុ", verb: "គួរមាន" } }; function n(t) { return e[t] ?? null; } const r = { regex: "ទិន្នន័យបញ្ចូល", email: "អាសយដ្ឋានអ៊ីមែល", url: "URL", emoji: "សញ្ញាអារម្មណ៍", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "កាលបរិច្ឆេទ និងម៉ោង ISO", date: "កាលបរិច្ឆេទ ISO", time: "ម៉ោង ISO", duration: "រយៈពេល ISO", ipv4: "អាសយដ្ឋាន IPv4", ipv6: "អាសយដ្ឋាន IPv6", cidrv4: "ដែនអាសយដ្ឋាន IPv4", cidrv6: "ដែនអាសយដ្ឋាន IPv6", base64: "ខ្សែអក្សរអ៊ិកូដ base64", base64url: "ខ្សែអក្សរអ៊ិកូដ base64url", json_string: "ខ្សែអក្សរ JSON", e164: "លេខ E.164", jwt: "JWT", template_literal: "ទិន្នន័យបញ្ចូល" }, o = { nan: "NaN", number: "លេខ", array: "អារេ (Array)", null: "គ្មានតម្លៃ (null)" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${t.expected} ប៉ុន្តែទទួលបាន ${u}` : `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${i} ប៉ុន្តែទទួលបាន ${u}`; } case "invalid_value": return t.values.length === 1 ? `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${L(t.values[0])}` : `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `ធំពេក៖ ត្រូវការ ${t.origin ?? "តម្លៃ"} ${i} ${t.maximum.toString()} ${a.unit ?? "ធាតុ"}` : `ធំពេក៖ ត្រូវការ ${t.origin ?? "តម្លៃ"} ${i} ${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `តូចពេក៖ ត្រូវការ ${t.origin} ${i} ${t.minimum.toString()} ${a.unit}` : `តូចពេក៖ ត្រូវការ ${t.origin} ${i} ${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${i.prefix}"` : i.format === "ends_with" ? `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${i.suffix}"` : i.format === "includes" ? `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${i.includes}"` : i.format === "regex" ? `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${i.pattern}` : `មិនត្រឹមត្រូវ៖ ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`; case "unrecognized_keys": return `រកឃើញសោមិនស្គាល់៖ ${I(t.keys, ", ")}`; case "invalid_key": return `សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`; case "invalid_union": return "ទិន្នន័យមិនត្រឹមត្រូវ"; case "invalid_element": return `ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`; default: return "ទិន្នន័យមិនត្រឹមត្រូវ"; } }; }; function bc() { return { localeError: Vg() }; } function Yg() { return bc(); } const Kg = () => { const e = { string: { unit: "문자", verb: "to have" }, file: { unit: "바이트", verb: "to have" }, array: { unit: "개", verb: "to have" }, set: { unit: "개", verb: "to have" } }; function n(t) { return e[t] ?? null; } const r = { regex: "입력", email: "이메일 주소", url: "URL", emoji: "이모지", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO 날짜시간", date: "ISO 날짜", time: "ISO 시간", duration: "ISO 기간", ipv4: "IPv4 주소", ipv6: "IPv6 주소", cidrv4: "IPv4 범위", cidrv6: "IPv6 범위", base64: "base64 인코딩 문자열", base64url: "base64url 인코딩 문자열", json_string: "JSON 문자열", e164: "E.164 번호", jwt: "JWT", template_literal: "입력" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `잘못된 입력: 예상 타입은 instanceof ${t.expected}, 받은 타입은 ${u}입니다` : `잘못된 입력: 예상 타입은 ${i}, 받은 타입은 ${u}입니다`; } case "invalid_value": return t.values.length === 1 ? `잘못된 입력: 값은 ${L(t.values[0])} 이어야 합니다` : `잘못된 옵션: ${I(t.values, "또는 ")} 중 하나여야 합니다`; case "too_big": { const i = t.inclusive ? "이하" : "미만", a = i === "미만" ? "이어야 합니다" : "여야 합니다", u = n(t.origin), c = (u == null ? void 0 : u.unit) ?? "요소"; return u ? `${t.origin ?? "값"}이 너무 큽니다: ${t.maximum.toString()}${c} ${i}${a}` : `${t.origin ?? "값"}이 너무 큽니다: ${t.maximum.toString()} ${i}${a}`; } case "too_small": { const i = t.inclusive ? "이상" : "초과", a = i === "이상" ? "이어야 합니다" : "여야 합니다", u = n(t.origin), c = (u == null ? void 0 : u.unit) ?? "요소"; return u ? `${t.origin ?? "값"}이 너무 작습니다: ${t.minimum.toString()}${c} ${i}${a}` : `${t.origin ?? "값"}이 너무 작습니다: ${t.minimum.toString()} ${i}${a}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `잘못된 문자열: "${i.prefix}"(으)로 시작해야 합니다` : i.format === "ends_with" ? `잘못된 문자열: "${i.suffix}"(으)로 끝나야 합니다` : i.format === "includes" ? `잘못된 문자열: "${i.includes}"을(를) 포함해야 합니다` : i.format === "regex" ? `잘못된 문자열: 정규식 ${i.pattern} 패턴과 일치해야 합니다` : `잘못된 ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `잘못된 숫자: ${t.divisor}의 배수여야 합니다`; case "unrecognized_keys": return `인식할 수 없는 키: ${I(t.keys, ", ")}`; case "invalid_key": return `잘못된 키: ${t.origin}`; case "invalid_union": return "잘못된 입력"; case "invalid_element": return `잘못된 값: ${t.origin}`; default: return "잘못된 입력"; } }; }; function Gg() { return { localeError: Kg() }; } const Tt = (e) => e.charAt(0).toUpperCase() + e.slice(1); function ca(e) { const n = Math.abs(e), r = n % 10, o = n % 100; return o >= 11 && o <= 19 || r === 0 ? "many" : r === 1 ? "one" : "few"; } const Wg = () => { const e = { string: { unit: { one: "simbolis", few: "simboliai", many: "simbolių" }, verb: { smaller: { inclusive: "turi būti ne ilgesnė kaip", notInclusive: "turi būti trumpesnė kaip" }, bigger: { inclusive: "turi būti ne trumpesnė kaip", notInclusive: "turi būti ilgesnė kaip" } } }, file: { unit: { one: "baitas", few: "baitai", many: "baitų" }, verb: { smaller: { inclusive: "turi būti ne didesnis kaip", notInclusive: "turi būti mažesnis kaip" }, bigger: { inclusive: "turi būti ne mažesnis kaip", notInclusive: "turi būti didesnis kaip" } } }, array: { unit: { one: "elementą", few: "elementus", many: "elementų" }, verb: { smaller: { inclusive: "turi turėti ne daugiau kaip", notInclusive: "turi turėti mažiau kaip" }, bigger: { inclusive: "turi turėti ne mažiau kaip", notInclusive: "turi turėti daugiau kaip" } } }, set: { unit: { one: "elementą", few: "elementus", many: "elementų" }, verb: { smaller: { inclusive: "turi turėti ne daugiau kaip", notInclusive: "turi turėti mažiau kaip" }, bigger: { inclusive: "turi turėti ne mažiau kaip", notInclusive: "turi turėti daugiau kaip" } } } }; function n(t, i, a, u) { const c = e[t] ?? null; return c === null ? c : { unit: c.unit[i], verb: c.verb[u][a ? "inclusive" : "notInclusive"] }; } const r = { regex: "įvestis", email: "el. pašto adresas", url: "URL", emoji: "jaustukas", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO data ir laikas", date: "ISO data", time: "ISO laikas", duration: "ISO trukmė", ipv4: "IPv4 adresas", ipv6: "IPv6 adresas", cidrv4: "IPv4 tinklo prefiksas (CIDR)", cidrv6: "IPv6 tinklo prefiksas (CIDR)", base64: "base64 užkoduota eilutė", base64url: "base64url užkoduota eilutė", json_string: "JSON eilutė", e164: "E.164 numeris", jwt: "JWT", template_literal: "įvestis" }, o = { nan: "NaN", number: "skaičius", bigint: "sveikasis skaičius", string: "eilutė", boolean: "loginė reikšmė", undefined: "neapibrėžta reikšmė", function: "funkcija", symbol: "simbolis", array: "masyvas", object: "objektas", null: "nulinė reikšmė" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Gautas tipas ${u}, o tikėtasi - instanceof ${t.expected}` : `Gautas tipas ${u}, o tikėtasi - ${i}`; } case "invalid_value": return t.values.length === 1 ? `Privalo būti ${L(t.values[0])}` : `Privalo būti vienas iš ${I(t.values, "|")} pasirinkimų`; case "too_big": { const i = o[t.origin] ?? t.origin, a = n(t.origin, ca(Number(t.maximum)), t.inclusive ?? !1, "smaller"); if (a != null && a.verb) return `${Tt(i ?? t.origin ?? "reikšmė")} ${a.verb} ${t.maximum.toString()} ${a.unit ?? "elementų"}`; const u = t.inclusive ? "ne didesnis kaip" : "mažesnis kaip"; return `${Tt(i ?? t.origin ?? "reikšmė")} turi būti ${u} ${t.maximum.toString()} ${a == null ? void 0 : a.unit}`; } case "too_small": { const i = o[t.origin] ?? t.origin, a = n(t.origin, ca(Number(t.minimum)), t.inclusive ?? !1, "bigger"); if (a != null && a.verb) return `${Tt(i ?? t.origin ?? "reikšmė")} ${a.verb} ${t.minimum.toString()} ${a.unit ?? "elementų"}`; const u = t.inclusive ? "ne mažesnis kaip" : "didesnis kaip"; return `${Tt(i ?? t.origin ?? "reikšmė")} turi būti ${u} ${t.minimum.toString()} ${a == null ? void 0 : a.unit}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Eilutė privalo prasidėti "${i.prefix}"` : i.format === "ends_with" ? `Eilutė privalo pasibaigti "${i.suffix}"` : i.format === "includes" ? `Eilutė privalo įtraukti "${i.includes}"` : i.format === "regex" ? `Eilutė privalo atitikti ${i.pattern}` : `Neteisingas ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Skaičius privalo būti ${t.divisor} kartotinis.`; case "unrecognized_keys": return `Neatpažint${t.keys.length > 1 ? "i" : "as"} rakt${t.keys.length > 1 ? "ai" : "as"}: ${I(t.keys, ", ")}`; case "invalid_key": return "Rastas klaidingas raktas"; case "invalid_union": return "Klaidinga įvestis"; case "invalid_element": { const i = o[t.origin] ?? t.origin; return `${Tt(i ?? t.origin ?? "reikšmė")} turi klaidingą įvestį`; } default: return "Klaidinga įvestis"; } }; }; function Hg() { return { localeError: Wg() }; } const Xg = () => { const e = { string: { unit: "знаци", verb: "да имаат" }, file: { unit: "бајти", verb: "да имаат" }, array: { unit: "ставки", verb: "да имаат" }, set: { unit: "ставки", verb: "да имаат" } }; function n(t) { return e[t] ?? null; } const r = { regex: "внес", email: "адреса на е-пошта", url: "URL", emoji: "емоџи", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO датум и време", date: "ISO датум", time: "ISO време", duration: "ISO времетраење", ipv4: "IPv4 адреса", ipv6: "IPv6 адреса", cidrv4: "IPv4 опсег", cidrv6: "IPv6 опсег", base64: "base64-енкодирана низа", base64url: "base64url-енкодирана низа", json_string: "JSON низа", e164: "E.164 број", jwt: "JWT", template_literal: "внес" }, o = { nan: "NaN", number: "број", array: "низа" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Грешен внес: се очекува instanceof ${t.expected}, примено ${u}` : `Грешен внес: се очекува ${i}, примено ${u}`; } case "invalid_value": return t.values.length === 1 ? `Invalid input: expected ${L(t.values[0])}` : `Грешана опција: се очекува една ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Премногу голем: се очекува ${t.origin ?? "вредноста"} да има ${i}${t.maximum.toString()} ${a.unit ?? "елементи"}` : `Премногу голем: се очекува ${t.origin ?? "вредноста"} да биде ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Премногу мал: се очекува ${t.origin} да има ${i}${t.minimum.toString()} ${a.unit}` : `Премногу мал: се очекува ${t.origin} да биде ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Неважечка низа: мора да започнува со "${i.prefix}"` : i.format === "ends_with" ? `Неважечка низа: мора да завршува со "${i.suffix}"` : i.format === "includes" ? `Неважечка низа: мора да вклучува "${i.includes}"` : i.format === "regex" ? `Неважечка низа: мора да одгоара на патернот ${i.pattern}` : `Invalid ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Грешен број: мора да биде делив со ${t.divisor}`; case "unrecognized_keys": return `${t.keys.length > 1 ? "Непрепознаени клучеви" : "Непрепознаен клуч"}: ${I(t.keys, ", ")}`; case "invalid_key": return `Грешен клуч во ${t.origin}`; case "invalid_union": return "Грешен внес"; case "invalid_element": return `Грешна вредност во ${t.origin}`; default: return "Грешен внес"; } }; }; function Qg() { return { localeError: Xg() }; } const eh = () => { const e = { string: { unit: "aksara", verb: "mempunyai" }, file: { unit: "bait", verb: "mempunyai" }, array: { unit: "elemen", verb: "mempunyai" }, set: { unit: "elemen", verb: "mempunyai" } }; function n(t) { return e[t] ?? null; } const r = { regex: "input", email: "alamat e-mel", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "tarikh masa ISO", date: "tarikh ISO", time: "masa ISO", duration: "tempoh ISO", ipv4: "alamat IPv4", ipv6: "alamat IPv6", cidrv4: "julat IPv4", cidrv6: "julat IPv6", base64: "string dikodkan base64", base64url: "string dikodkan base64url", json_string: "string JSON", e164: "nombor E.164", jwt: "JWT", template_literal: "input" }, o = { nan: "NaN", number: "nombor" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Input tidak sah: dijangka instanceof ${t.expected}, diterima ${u}` : `Input tidak sah: dijangka ${i}, diterima ${u}`; } case "invalid_value": return t.values.length === 1 ? `Input tidak sah: dijangka ${L(t.values[0])}` : `Pilihan tidak sah: dijangka salah satu daripada ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Terlalu besar: dijangka ${t.origin ?? "nilai"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "elemen"}` : `Terlalu besar: dijangka ${t.origin ?? "nilai"} adalah ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Terlalu kecil: dijangka ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Terlalu kecil: dijangka ${t.origin} adalah ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `String tidak sah: mesti bermula dengan "${i.prefix}"` : i.format === "ends_with" ? `String tidak sah: mesti berakhir dengan "${i.suffix}"` : i.format === "includes" ? `String tidak sah: mesti mengandungi "${i.includes}"` : i.format === "regex" ? `String tidak sah: mesti sepadan dengan corak ${i.pattern}` : `${r[i.format] ?? t.format} tidak sah`; } case "not_multiple_of": return `Nombor tidak sah: perlu gandaan ${t.divisor}`; case "unrecognized_keys": return `Kunci tidak dikenali: ${I(t.keys, ", ")}`; case "invalid_key": return `Kunci tidak sah dalam ${t.origin}`; case "invalid_union": return "Input tidak sah"; case "invalid_element": return `Nilai tidak sah dalam ${t.origin}`; default: return "Input tidak sah"; } }; }; function th() { return { localeError: eh() }; } const nh = () => { const e = { string: { unit: "tekens", verb: "heeft" }, file: { unit: "bytes", verb: "heeft" }, array: { unit: "elementen", verb: "heeft" }, set: { unit: "elementen", verb: "heeft" } }; function n(t) { return e[t] ?? null; } const r = { regex: "invoer", email: "emailadres", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO datum en tijd", date: "ISO datum", time: "ISO tijd", duration: "ISO duur", ipv4: "IPv4-adres", ipv6: "IPv6-adres", cidrv4: "IPv4-bereik", cidrv6: "IPv6-bereik", base64: "base64-gecodeerde tekst", base64url: "base64 URL-gecodeerde tekst", json_string: "JSON string", e164: "E.164-nummer", jwt: "JWT", template_literal: "invoer" }, o = { nan: "NaN", number: "getal" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${u}` : `Ongeldige invoer: verwacht ${i}, ontving ${u}`; } case "invalid_value": return t.values.length === 1 ? `Ongeldige invoer: verwacht ${L(t.values[0])}` : `Ongeldige optie: verwacht één van ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), u = t.origin === "date" ? "laat" : t.origin === "string" ? "lang" : "groot"; return a ? `Te ${u}: verwacht dat ${t.origin ?? "waarde"} ${i}${t.maximum.toString()} ${a.unit ?? "elementen"} ${a.verb}` : `Te ${u}: verwacht dat ${t.origin ?? "waarde"} ${i}${t.maximum.toString()} is`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin), u = t.origin === "date" ? "vroeg" : t.origin === "string" ? "kort" : "klein"; return a ? `Te ${u}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ${a.verb}` : `Te ${u}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} is`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Ongeldige tekst: moet met "${i.prefix}" beginnen` : i.format === "ends_with" ? `Ongeldige tekst: moet op "${i.suffix}" eindigen` : i.format === "includes" ? `Ongeldige tekst: moet "${i.includes}" bevatten` : i.format === "regex" ? `Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}` : `Ongeldig: ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`; case "unrecognized_keys": return `Onbekende key${t.keys.length > 1 ? "s" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `Ongeldige key in ${t.origin}`; case "invalid_union": return "Ongeldige invoer"; case "invalid_element": return `Ongeldige waarde in ${t.origin}`; default: return "Ongeldige invoer"; } }; }; function rh() { return { localeError: nh() }; } const ih = () => { const e = { string: { unit: "tegn", verb: "å ha" }, file: { unit: "bytes", verb: "å ha" }, array: { unit: "elementer", verb: "å inneholde" }, set: { unit: "elementer", verb: "å inneholde" } }; function n(t) { return e[t] ?? null; } const r = { regex: "input", email: "e-postadresse", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO dato- og klokkeslett", date: "ISO-dato", time: "ISO-klokkeslett", duration: "ISO-varighet", ipv4: "IPv4-område", ipv6: "IPv6-område", cidrv4: "IPv4-spekter", cidrv6: "IPv6-spekter", base64: "base64-enkodet streng", base64url: "base64url-enkodet streng", json_string: "JSON-streng", e164: "E.164-nummer", jwt: "JWT", template_literal: "input" }, o = { nan: "NaN", number: "tall", array: "liste" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ugyldig input: forventet instanceof ${t.expected}, fikk ${u}` : `Ugyldig input: forventet ${i}, fikk ${u}`; } case "invalid_value": return t.values.length === 1 ? `Ugyldig verdi: forventet ${L(t.values[0])}` : `Ugyldig valg: forventet en av ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `For stor(t): forventet ${t.origin ?? "value"} til å ha ${i}${t.maximum.toString()} ${a.unit ?? "elementer"}` : `For stor(t): forventet ${t.origin ?? "value"} til å ha ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `For lite(n): forventet ${t.origin} til å ha ${i}${t.minimum.toString()} ${a.unit}` : `For lite(n): forventet ${t.origin} til å ha ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Ugyldig streng: må starte med "${i.prefix}"` : i.format === "ends_with" ? `Ugyldig streng: må ende med "${i.suffix}"` : i.format === "includes" ? `Ugyldig streng: må inneholde "${i.includes}"` : i.format === "regex" ? `Ugyldig streng: må matche mønsteret ${i.pattern}` : `Ugyldig ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Ugyldig tall: må være et multiplum av ${t.divisor}`; case "unrecognized_keys": return `${t.keys.length > 1 ? "Ukjente nøkler" : "Ukjent nøkkel"}: ${I(t.keys, ", ")}`; case "invalid_key": return `Ugyldig nøkkel i ${t.origin}`; case "invalid_union": return "Ugyldig input"; case "invalid_element": return `Ugyldig verdi i ${t.origin}`; default: return "Ugyldig input"; } }; }; function oh() { return { localeError: ih() }; } const ah = () => { const e = { string: { unit: "harf", verb: "olmalıdır" }, file: { unit: "bayt", verb: "olmalıdır" }, array: { unit: "unsur", verb: "olmalıdır" }, set: { unit: "unsur", verb: "olmalıdır" } }; function n(t) { return e[t] ?? null; } const r = { regex: "giren", email: "epostagâh", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO hengâmı", date: "ISO tarihi", time: "ISO zamanı", duration: "ISO müddeti", ipv4: "IPv4 nişânı", ipv6: "IPv6 nişânı", cidrv4: "IPv4 menzili", cidrv6: "IPv6 menzili", base64: "base64-şifreli metin", base64url: "base64url-şifreli metin", json_string: "JSON metin", e164: "E.164 sayısı", jwt: "JWT", template_literal: "giren" }, o = { nan: "NaN", number: "numara", array: "saf", null: "gayb" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Fâsit giren: umulan instanceof ${t.expected}, alınan ${u}` : `Fâsit giren: umulan ${i}, alınan ${u}`; } case "invalid_value": return t.values.length === 1 ? `Fâsit giren: umulan ${L(t.values[0])}` : `Fâsit tercih: mûteberler ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Fazla büyük: ${t.origin ?? "value"}, ${i}${t.maximum.toString()} ${a.unit ?? "elements"} sahip olmalıydı.` : `Fazla büyük: ${t.origin ?? "value"}, ${i}${t.maximum.toString()} olmalıydı.`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Fazla küçük: ${t.origin}, ${i}${t.minimum.toString()} ${a.unit} sahip olmalıydı.` : `Fazla küçük: ${t.origin}, ${i}${t.minimum.toString()} olmalıydı.`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Fâsit metin: "${i.prefix}" ile başlamalı.` : i.format === "ends_with" ? `Fâsit metin: "${i.suffix}" ile bitmeli.` : i.format === "includes" ? `Fâsit metin: "${i.includes}" ihtivâ etmeli.` : i.format === "regex" ? `Fâsit metin: ${i.pattern} nakşına uymalı.` : `Fâsit ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Fâsit sayı: ${t.divisor} katı olmalıydı.`; case "unrecognized_keys": return `Tanınmayan anahtar ${t.keys.length > 1 ? "s" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `${t.origin} için tanınmayan anahtar var.`; case "invalid_union": return "Giren tanınamadı."; case "invalid_element": return `${t.origin} için tanınmayan kıymet var.`; default: return "Kıymet tanınamadı."; } }; }; function uh() { return { localeError: ah() }; } const lh = () => { const e = { string: { unit: "توکي", verb: "ولري" }, file: { unit: "بایټس", verb: "ولري" }, array: { unit: "توکي", verb: "ولري" }, set: { unit: "توکي", verb: "ولري" } }; function n(t) { return e[t] ?? null; } const r = { regex: "ورودي", email: "بریښنالیک", url: "یو آر ال", emoji: "ایموجي", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "نیټه او وخت", date: "نېټه", time: "وخت", duration: "موده", ipv4: "د IPv4 پته", ipv6: "د IPv6 پته", cidrv4: "د IPv4 ساحه", cidrv6: "د IPv6 ساحه", base64: "base64-encoded متن", base64url: "base64url-encoded متن", json_string: "JSON متن", e164: "د E.164 شمېره", jwt: "JWT", template_literal: "ورودي" }, o = { nan: "NaN", number: "عدد", array: "ارې" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ناسم ورودي: باید instanceof ${t.expected} وای, مګر ${u} ترلاسه شو` : `ناسم ورودي: باید ${i} وای, مګر ${u} ترلاسه شو`; } case "invalid_value": return t.values.length === 1 ? `ناسم ورودي: باید ${L(t.values[0])} وای` : `ناسم انتخاب: باید یو له ${I(t.values, "|")} څخه وای`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `ډیر لوی: ${t.origin ?? "ارزښت"} باید ${i}${t.maximum.toString()} ${a.unit ?? "عنصرونه"} ولري` : `ډیر لوی: ${t.origin ?? "ارزښت"} باید ${i}${t.maximum.toString()} وي`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `ډیر کوچنی: ${t.origin} باید ${i}${t.minimum.toString()} ${a.unit} ولري` : `ډیر کوچنی: ${t.origin} باید ${i}${t.minimum.toString()} وي`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `ناسم متن: باید د "${i.prefix}" سره پیل شي` : i.format === "ends_with" ? `ناسم متن: باید د "${i.suffix}" سره پای ته ورسيږي` : i.format === "includes" ? `ناسم متن: باید "${i.includes}" ولري` : i.format === "regex" ? `ناسم متن: باید د ${i.pattern} سره مطابقت ولري` : `${r[i.format] ?? t.format} ناسم دی`; } case "not_multiple_of": return `ناسم عدد: باید د ${t.divisor} مضرب وي`; case "unrecognized_keys": return `ناسم ${t.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${I(t.keys, ", ")}`; case "invalid_key": return `ناسم کلیډ په ${t.origin} کې`; case "invalid_union": return "ناسمه ورودي"; case "invalid_element": return `ناسم عنصر په ${t.origin} کې`; default: return "ناسمه ورودي"; } }; }; function ch() { return { localeError: lh() }; } const sh = () => { const e = { string: { unit: "znaków", verb: "mieć" }, file: { unit: "bajtów", verb: "mieć" }, array: { unit: "elementów", verb: "mieć" }, set: { unit: "elementów", verb: "mieć" } }; function n(t) { return e[t] ?? null; } const r = { regex: "wyrażenie", email: "adres email", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "data i godzina w formacie ISO", date: "data w formacie ISO", time: "godzina w formacie ISO", duration: "czas trwania ISO", ipv4: "adres IPv4", ipv6: "adres IPv6", cidrv4: "zakres IPv4", cidrv6: "zakres IPv6", base64: "ciąg znaków zakodowany w formacie base64", base64url: "ciąg znaków zakodowany w formacie base64url", json_string: "ciąg znaków w formacie JSON", e164: "liczba E.164", jwt: "JWT", template_literal: "wejście" }, o = { nan: "NaN", number: "liczba", array: "tablica" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Nieprawidłowe dane wejściowe: oczekiwano instanceof ${t.expected}, otrzymano ${u}` : `Nieprawidłowe dane wejściowe: oczekiwano ${i}, otrzymano ${u}`; } case "invalid_value": return t.values.length === 1 ? `Nieprawidłowe dane wejściowe: oczekiwano ${L(t.values[0])}` : `Nieprawidłowa opcja: oczekiwano jednej z wartości ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Za duża wartość: oczekiwano, że ${t.origin ?? "wartość"} będzie mieć ${i}${t.maximum.toString()} ${a.unit ?? "elementów"}` : `Zbyt duż(y/a/e): oczekiwano, że ${t.origin ?? "wartość"} będzie wynosić ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Za mała wartość: oczekiwano, że ${t.origin ?? "wartość"} będzie mieć ${i}${t.minimum.toString()} ${a.unit ?? "elementów"}` : `Zbyt mał(y/a/e): oczekiwano, że ${t.origin ?? "wartość"} będzie wynosić ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Nieprawidłowy ciąg znaków: musi zaczynać się od "${i.prefix}"` : i.format === "ends_with" ? `Nieprawidłowy ciąg znaków: musi kończyć się na "${i.suffix}"` : i.format === "includes" ? `Nieprawidłowy ciąg znaków: musi zawierać "${i.includes}"` : i.format === "regex" ? `Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${i.pattern}` : `Nieprawidłow(y/a/e) ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`; case "unrecognized_keys": return `Nierozpoznane klucze${t.keys.length > 1 ? "s" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `Nieprawidłowy klucz w ${t.origin}`; case "invalid_union": return "Nieprawidłowe dane wejściowe"; case "invalid_element": return `Nieprawidłowa wartość w ${t.origin}`; default: return "Nieprawidłowe dane wejściowe"; } }; }; function dh() { return { localeError: sh() }; } const fh = () => { const e = { string: { unit: "caracteres", verb: "ter" }, file: { unit: "bytes", verb: "ter" }, array: { unit: "itens", verb: "ter" }, set: { unit: "itens", verb: "ter" } }; function n(t) { return e[t] ?? null; } const r = { regex: "padrão", email: "endereço de e-mail", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "data e hora ISO", date: "data ISO", time: "hora ISO", duration: "duração ISO", ipv4: "endereço IPv4", ipv6: "endereço IPv6", cidrv4: "faixa de IPv4", cidrv6: "faixa de IPv6", base64: "texto codificado em base64", base64url: "URL codificada em base64", json_string: "texto JSON", e164: "número E.164", jwt: "JWT", template_literal: "entrada" }, o = { nan: "NaN", number: "número", null: "nulo" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Tipo inválido: esperado instanceof ${t.expected}, recebido ${u}` : `Tipo inválido: esperado ${i}, recebido ${u}`; } case "invalid_value": return t.values.length === 1 ? `Entrada inválida: esperado ${L(t.values[0])}` : `Opção inválida: esperada uma das ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Muito grande: esperado que ${t.origin ?? "valor"} tivesse ${i}${t.maximum.toString()} ${a.unit ?? "elementos"}` : `Muito grande: esperado que ${t.origin ?? "valor"} fosse ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Muito pequeno: esperado que ${t.origin} tivesse ${i}${t.minimum.toString()} ${a.unit}` : `Muito pequeno: esperado que ${t.origin} fosse ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Texto inválido: deve começar com "${i.prefix}"` : i.format === "ends_with" ? `Texto inválido: deve terminar com "${i.suffix}"` : i.format === "includes" ? `Texto inválido: deve incluir "${i.includes}"` : i.format === "regex" ? `Texto inválido: deve corresponder ao padrão ${i.pattern}` : `${r[i.format] ?? t.format} inválido`; } case "not_multiple_of": return `Número inválido: deve ser múltiplo de ${t.divisor}`; case "unrecognized_keys": return `Chave${t.keys.length > 1 ? "s" : ""} desconhecida${t.keys.length > 1 ? "s" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `Chave inválida em ${t.origin}`; case "invalid_union": return "Entrada inválida"; case "invalid_element": return `Valor inválido em ${t.origin}`; default: return "Campo inválido"; } }; }; function mh() { return { localeError: fh() }; } function sa(e, n, r, o) { const t = Math.abs(e), i = t % 10, a = t % 100; return a >= 11 && a <= 19 ? o : i === 1 ? n : i >= 2 && i <= 4 ? r : o; } const vh = () => { const e = { string: { unit: { one: "символ", few: "символа", many: "символов" }, verb: "иметь" }, file: { unit: { one: "байт", few: "байта", many: "байт" }, verb: "иметь" }, array: { unit: { one: "элемент", few: "элемента", many: "элементов" }, verb: "иметь" }, set: { unit: { one: "элемент", few: "элемента", many: "элементов" }, verb: "иметь" } }; function n(t) { return e[t] ?? null; } const r = { regex: "ввод", email: "email адрес", url: "URL", emoji: "эмодзи", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO дата и время", date: "ISO дата", time: "ISO время", duration: "ISO длительность", ipv4: "IPv4 адрес", ipv6: "IPv6 адрес", cidrv4: "IPv4 диапазон", cidrv6: "IPv6 диапазон", base64: "строка в формате base64", base64url: "строка в формате base64url", json_string: "JSON строка", e164: "номер E.164", jwt: "JWT", template_literal: "ввод" }, o = { nan: "NaN", number: "число", array: "массив" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Неверный ввод: ожидалось instanceof ${t.expected}, получено ${u}` : `Неверный ввод: ожидалось ${i}, получено ${u}`; } case "invalid_value": return t.values.length === 1 ? `Неверный ввод: ожидалось ${L(t.values[0])}` : `Неверный вариант: ожидалось одно из ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { const u = Number(t.maximum), c = sa(u, a.unit.one, a.unit.few, a.unit.many); return `Слишком большое значение: ожидалось, что ${t.origin ?? "значение"} будет иметь ${i}${t.maximum.toString()} ${c}`; } return `Слишком большое значение: ожидалось, что ${t.origin ?? "значение"} будет ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); if (a) { const u = Number(t.minimum), c = sa(u, a.unit.one, a.unit.few, a.unit.many); return `Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${i}${t.minimum.toString()} ${c}`; } return `Слишком маленькое значение: ожидалось, что ${t.origin} будет ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Неверная строка: должна начинаться с "${i.prefix}"` : i.format === "ends_with" ? `Неверная строка: должна заканчиваться на "${i.suffix}"` : i.format === "includes" ? `Неверная строка: должна содержать "${i.includes}"` : i.format === "regex" ? `Неверная строка: должна соответствовать шаблону ${i.pattern}` : `Неверный ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Неверное число: должно быть кратным ${t.divisor}`; case "unrecognized_keys": return `Нераспознанн${t.keys.length > 1 ? "ые" : "ый"} ключ${t.keys.length > 1 ? "и" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `Неверный ключ в ${t.origin}`; case "invalid_union": return "Неверные входные данные"; case "invalid_element": return `Неверное значение в ${t.origin}`; default: return "Неверные входные данные"; } }; }; function ph() { return { localeError: vh() }; } const gh = () => { const e = { string: { unit: "znakov", verb: "imeti" }, file: { unit: "bajtov", verb: "imeti" }, array: { unit: "elementov", verb: "imeti" }, set: { unit: "elementov", verb: "imeti" } }; function n(t) { return e[t] ?? null; } const r = { regex: "vnos", email: "e-poštni naslov", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO datum in čas", date: "ISO datum", time: "ISO čas", duration: "ISO trajanje", ipv4: "IPv4 naslov", ipv6: "IPv6 naslov", cidrv4: "obseg IPv4", cidrv6: "obseg IPv6", base64: "base64 kodiran niz", base64url: "base64url kodiran niz", json_string: "JSON niz", e164: "E.164 številka", jwt: "JWT", template_literal: "vnos" }, o = { nan: "NaN", number: "število", array: "tabela" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Neveljaven vnos: pričakovano instanceof ${t.expected}, prejeto ${u}` : `Neveljaven vnos: pričakovano ${i}, prejeto ${u}`; } case "invalid_value": return t.values.length === 1 ? `Neveljaven vnos: pričakovano ${L(t.values[0])}` : `Neveljavna možnost: pričakovano eno izmed ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Preveliko: pričakovano, da bo ${t.origin ?? "vrednost"} imelo ${i}${t.maximum.toString()} ${a.unit ?? "elementov"}` : `Preveliko: pričakovano, da bo ${t.origin ?? "vrednost"} ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Premajhno: pričakovano, da bo ${t.origin} imelo ${i}${t.minimum.toString()} ${a.unit}` : `Premajhno: pričakovano, da bo ${t.origin} ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Neveljaven niz: mora se začeti z "${i.prefix}"` : i.format === "ends_with" ? `Neveljaven niz: mora se končati z "${i.suffix}"` : i.format === "includes" ? `Neveljaven niz: mora vsebovati "${i.includes}"` : i.format === "regex" ? `Neveljaven niz: mora ustrezati vzorcu ${i.pattern}` : `Neveljaven ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Neveljavno število: mora biti večkratnik ${t.divisor}`; case "unrecognized_keys": return `Neprepoznan${t.keys.length > 1 ? "i ključi" : " ključ"}: ${I(t.keys, ", ")}`; case "invalid_key": return `Neveljaven ključ v ${t.origin}`; case "invalid_union": return "Neveljaven vnos"; case "invalid_element": return `Neveljavna vrednost v ${t.origin}`; default: return "Neveljaven vnos"; } }; }; function hh() { return { localeError: gh() }; } const $h = () => { const e = { string: { unit: "tecken", verb: "att ha" }, file: { unit: "bytes", verb: "att ha" }, array: { unit: "objekt", verb: "att innehålla" }, set: { unit: "objekt", verb: "att innehålla" } }; function n(t) { return e[t] ?? null; } const r = { regex: "reguljärt uttryck", email: "e-postadress", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO-datum och tid", date: "ISO-datum", time: "ISO-tid", duration: "ISO-varaktighet", ipv4: "IPv4-intervall", ipv6: "IPv6-intervall", cidrv4: "IPv4-spektrum", cidrv6: "IPv6-spektrum", base64: "base64-kodad sträng", base64url: "base64url-kodad sträng", json_string: "JSON-sträng", e164: "E.164-nummer", jwt: "JWT", template_literal: "mall-literal" }, o = { nan: "NaN", number: "antal", array: "lista" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ogiltig inmatning: förväntat instanceof ${t.expected}, fick ${u}` : `Ogiltig inmatning: förväntat ${i}, fick ${u}`; } case "invalid_value": return t.values.length === 1 ? `Ogiltig inmatning: förväntat ${L(t.values[0])}` : `Ogiltigt val: förväntade en av ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `För stor(t): förväntade ${t.origin ?? "värdet"} att ha ${i}${t.maximum.toString()} ${a.unit ?? "element"}` : `För stor(t): förväntat ${t.origin ?? "värdet"} att ha ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `För lite(t): förväntade ${t.origin ?? "värdet"} att ha ${i}${t.minimum.toString()} ${a.unit}` : `För lite(t): förväntade ${t.origin ?? "värdet"} att ha ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Ogiltig sträng: måste börja med "${i.prefix}"` : i.format === "ends_with" ? `Ogiltig sträng: måste sluta med "${i.suffix}"` : i.format === "includes" ? `Ogiltig sträng: måste innehålla "${i.includes}"` : i.format === "regex" ? `Ogiltig sträng: måste matcha mönstret "${i.pattern}"` : `Ogiltig(t) ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Ogiltigt tal: måste vara en multipel av ${t.divisor}`; case "unrecognized_keys": return `${t.keys.length > 1 ? "Okända nycklar" : "Okänd nyckel"}: ${I(t.keys, ", ")}`; case "invalid_key": return `Ogiltig nyckel i ${t.origin ?? "värdet"}`; case "invalid_union": return "Ogiltig input"; case "invalid_element": return `Ogiltigt värde i ${t.origin ?? "värdet"}`; default: return "Ogiltig input"; } }; }; function bh() { return { localeError: $h() }; } const _h = () => { const e = { string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" }, file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" }, array: { unit: "உறுப்புகள்", verb: "கொண்டிருக்க வேண்டும்" }, set: { unit: "உறுப்புகள்", verb: "கொண்டிருக்க வேண்டும்" } }; function n(t) { return e[t] ?? null; } const r = { regex: "உள்ளீடு", email: "மின்னஞ்சல் முகவரி", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO தேதி நேரம்", date: "ISO தேதி", time: "ISO நேரம்", duration: "ISO கால அளவு", ipv4: "IPv4 முகவரி", ipv6: "IPv6 முகவரி", cidrv4: "IPv4 வரம்பு", cidrv6: "IPv6 வரம்பு", base64: "base64-encoded சரம்", base64url: "base64url-encoded சரம்", json_string: "JSON சரம்", e164: "E.164 எண்", jwt: "JWT", template_literal: "input" }, o = { nan: "NaN", number: "எண்", array: "அணி", null: "வெறுமை" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${t.expected}, பெறப்பட்டது ${u}` : `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${i}, பெறப்பட்டது ${u}`; } case "invalid_value": return t.values.length === 1 ? `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${L(t.values[0])}` : `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${I(t.values, "|")} இல் ஒன்று`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin ?? "மதிப்பு"} ${i}${t.maximum.toString()} ${a.unit ?? "உறுப்புகள்"} ஆக இருக்க வேண்டும்` : `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin ?? "மதிப்பு"} ${i}${t.maximum.toString()} ஆக இருக்க வேண்டும்`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்` : `மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${i}${t.minimum.toString()} ஆக இருக்க வேண்டும்`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `தவறான சரம்: "${i.prefix}" இல் தொடங்க வேண்டும்` : i.format === "ends_with" ? `தவறான சரம்: "${i.suffix}" இல் முடிவடைய வேண்டும்` : i.format === "includes" ? `தவறான சரம்: "${i.includes}" ஐ உள்ளடக்க வேண்டும்` : i.format === "regex" ? `தவறான சரம்: ${i.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்` : `தவறான ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`; case "unrecognized_keys": return `அடையாளம் தெரியாத விசை${t.keys.length > 1 ? "கள்" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `${t.origin} இல் தவறான விசை`; case "invalid_union": return "தவறான உள்ளீடு"; case "invalid_element": return `${t.origin} இல் தவறான மதிப்பு`; default: return "தவறான உள்ளீடு"; } }; }; function yh() { return { localeError: _h() }; } const kh = () => { const e = { string: { unit: "ตัวอักษร", verb: "ควรมี" }, file: { unit: "ไบต์", verb: "ควรมี" }, array: { unit: "รายการ", verb: "ควรมี" }, set: { unit: "รายการ", verb: "ควรมี" } }; function n(t) { return e[t] ?? null; } const r = { regex: "ข้อมูลที่ป้อน", email: "ที่อยู่อีเมล", url: "URL", emoji: "อิโมจิ", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "วันที่เวลาแบบ ISO", date: "วันที่แบบ ISO", time: "เวลาแบบ ISO", duration: "ช่วงเวลาแบบ ISO", ipv4: "ที่อยู่ IPv4", ipv6: "ที่อยู่ IPv6", cidrv4: "ช่วง IP แบบ IPv4", cidrv6: "ช่วง IP แบบ IPv6", base64: "ข้อความแบบ Base64", base64url: "ข้อความแบบ Base64 สำหรับ URL", json_string: "ข้อความแบบ JSON", e164: "เบอร์โทรศัพท์ระหว่างประเทศ (E.164)", jwt: "โทเคน JWT", template_literal: "ข้อมูลที่ป้อน" }, o = { nan: "NaN", number: "ตัวเลข", array: "อาร์เรย์ (Array)", null: "ไม่มีค่า (null)" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${t.expected} แต่ได้รับ ${u}` : `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${i} แต่ได้รับ ${u}`; } case "invalid_value": return t.values.length === 1 ? `ค่าไม่ถูกต้อง: ควรเป็น ${L(t.values[0])}` : `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "ไม่เกิน" : "น้อยกว่า", a = n(t.origin); return a ? `เกินกำหนด: ${t.origin ?? "ค่า"} ควรมี${i} ${t.maximum.toString()} ${a.unit ?? "รายการ"}` : `เกินกำหนด: ${t.origin ?? "ค่า"} ควรมี${i} ${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? "อย่างน้อย" : "มากกว่า", a = n(t.origin); return a ? `น้อยกว่ากำหนด: ${t.origin} ควรมี${i} ${t.minimum.toString()} ${a.unit}` : `น้อยกว่ากำหนด: ${t.origin} ควรมี${i} ${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${i.prefix}"` : i.format === "ends_with" ? `รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${i.suffix}"` : i.format === "includes" ? `รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${i.includes}" อยู่ในข้อความ` : i.format === "regex" ? `รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${i.pattern}` : `รูปแบบไม่ถูกต้อง: ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`; case "unrecognized_keys": return `พบคีย์ที่ไม่รู้จัก: ${I(t.keys, ", ")}`; case "invalid_key": return `คีย์ไม่ถูกต้องใน ${t.origin}`; case "invalid_union": return "ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้"; case "invalid_element": return `ข้อมูลไม่ถูกต้องใน ${t.origin}`; default: return "ข้อมูลไม่ถูกต้อง"; } }; }; function Sh() { return { localeError: kh() }; } const wh = () => { const e = { string: { unit: "karakter", verb: "olmalı" }, file: { unit: "bayt", verb: "olmalı" }, array: { unit: "öğe", verb: "olmalı" }, set: { unit: "öğe", verb: "olmalı" } }; function n(t) { return e[t] ?? null; } const r = { regex: "girdi", email: "e-posta adresi", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO tarih ve saat", date: "ISO tarih", time: "ISO saat", duration: "ISO süre", ipv4: "IPv4 adresi", ipv6: "IPv6 adresi", cidrv4: "IPv4 aralığı", cidrv6: "IPv6 aralığı", base64: "base64 ile şifrelenmiş metin", base64url: "base64url ile şifrelenmiş metin", json_string: "JSON dizesi", e164: "E.164 sayısı", jwt: "JWT", template_literal: "Şablon dizesi" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Geçersiz değer: beklenen instanceof ${t.expected}, alınan ${u}` : `Geçersiz değer: beklenen ${i}, alınan ${u}`; } case "invalid_value": return t.values.length === 1 ? `Geçersiz değer: beklenen ${L(t.values[0])}` : `Geçersiz seçenek: aşağıdakilerden biri olmalı: ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Çok büyük: beklenen ${t.origin ?? "değer"} ${i}${t.maximum.toString()} ${a.unit ?? "öğe"}` : `Çok büyük: beklenen ${t.origin ?? "değer"} ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Çok küçük: beklenen ${t.origin} ${i}${t.minimum.toString()} ${a.unit}` : `Çok küçük: beklenen ${t.origin} ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Geçersiz metin: "${i.prefix}" ile başlamalı` : i.format === "ends_with" ? `Geçersiz metin: "${i.suffix}" ile bitmeli` : i.format === "includes" ? `Geçersiz metin: "${i.includes}" içermeli` : i.format === "regex" ? `Geçersiz metin: ${i.pattern} desenine uymalı` : `Geçersiz ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Geçersiz sayı: ${t.divisor} ile tam bölünebilmeli`; case "unrecognized_keys": return `Tanınmayan anahtar${t.keys.length > 1 ? "lar" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `${t.origin} içinde geçersiz anahtar`; case "invalid_union": return "Geçersiz değer"; case "invalid_element": return `${t.origin} içinde geçersiz değer`; default: return "Geçersiz değer"; } }; }; function Ih() { return { localeError: wh() }; } const zh = () => { const e = { string: { unit: "символів", verb: "матиме" }, file: { unit: "байтів", verb: "матиме" }, array: { unit: "елементів", verb: "матиме" }, set: { unit: "елементів", verb: "матиме" } }; function n(t) { return e[t] ?? null; } const r = { regex: "вхідні дані", email: "адреса електронної пошти", url: "URL", emoji: "емодзі", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "дата та час ISO", date: "дата ISO", time: "час ISO", duration: "тривалість ISO", ipv4: "адреса IPv4", ipv6: "адреса IPv6", cidrv4: "діапазон IPv4", cidrv6: "діапазон IPv6", base64: "рядок у кодуванні base64", base64url: "рядок у кодуванні base64url", json_string: "рядок JSON", e164: "номер E.164", jwt: "JWT", template_literal: "вхідні дані" }, o = { nan: "NaN", number: "число", array: "масив" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Неправильні вхідні дані: очікується instanceof ${t.expected}, отримано ${u}` : `Неправильні вхідні дані: очікується ${i}, отримано ${u}`; } case "invalid_value": return t.values.length === 1 ? `Неправильні вхідні дані: очікується ${L(t.values[0])}` : `Неправильна опція: очікується одне з ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Занадто велике: очікується, що ${t.origin ?? "значення"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "елементів"}` : `Занадто велике: очікується, що ${t.origin ?? "значення"} буде ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Занадто мале: очікується, що ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Занадто мале: очікується, що ${t.origin} буде ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Неправильний рядок: повинен починатися з "${i.prefix}"` : i.format === "ends_with" ? `Неправильний рядок: повинен закінчуватися на "${i.suffix}"` : i.format === "includes" ? `Неправильний рядок: повинен містити "${i.includes}"` : i.format === "regex" ? `Неправильний рядок: повинен відповідати шаблону ${i.pattern}` : `Неправильний ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Неправильне число: повинно бути кратним ${t.divisor}`; case "unrecognized_keys": return `Нерозпізнаний ключ${t.keys.length > 1 ? "і" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `Неправильний ключ у ${t.origin}`; case "invalid_union": return "Неправильні вхідні дані"; case "invalid_element": return `Неправильне значення у ${t.origin}`; default: return "Неправильні вхідні дані"; } }; }; function _c() { return { localeError: zh() }; } function xh() { return _c(); } const Dh = () => { const e = { string: { unit: "حروف", verb: "ہونا" }, file: { unit: "بائٹس", verb: "ہونا" }, array: { unit: "آئٹمز", verb: "ہونا" }, set: { unit: "آئٹمز", verb: "ہونا" } }; function n(t) { return e[t] ?? null; } const r = { regex: "ان پٹ", email: "ای میل ایڈریس", url: "یو آر ایل", emoji: "ایموجی", uuid: "یو یو آئی ڈی", uuidv4: "یو یو آئی ڈی وی 4", uuidv6: "یو یو آئی ڈی وی 6", nanoid: "نینو آئی ڈی", guid: "جی یو آئی ڈی", cuid: "سی یو آئی ڈی", cuid2: "سی یو آئی ڈی 2", ulid: "یو ایل آئی ڈی", xid: "ایکس آئی ڈی", ksuid: "کے ایس یو آئی ڈی", datetime: "آئی ایس او ڈیٹ ٹائم", date: "آئی ایس او تاریخ", time: "آئی ایس او وقت", duration: "آئی ایس او مدت", ipv4: "آئی پی وی 4 ایڈریس", ipv6: "آئی پی وی 6 ایڈریس", cidrv4: "آئی پی وی 4 رینج", cidrv6: "آئی پی وی 6 رینج", base64: "بیس 64 ان کوڈڈ سٹرنگ", base64url: "بیس 64 یو آر ایل ان کوڈڈ سٹرنگ", json_string: "جے ایس او این سٹرنگ", e164: "ای 164 نمبر", jwt: "جے ڈبلیو ٹی", template_literal: "ان پٹ" }, o = { nan: "NaN", number: "نمبر", array: "آرے", null: "نل" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `غلط ان پٹ: instanceof ${t.expected} متوقع تھا، ${u} موصول ہوا` : `غلط ان پٹ: ${i} متوقع تھا، ${u} موصول ہوا`; } case "invalid_value": return t.values.length === 1 ? `غلط ان پٹ: ${L(t.values[0])} متوقع تھا` : `غلط آپشن: ${I(t.values, "|")} میں سے ایک متوقع تھا`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `بہت بڑا: ${t.origin ?? "ویلیو"} کے ${i}${t.maximum.toString()} ${a.unit ?? "عناصر"} ہونے متوقع تھے` : `بہت بڑا: ${t.origin ?? "ویلیو"} کا ${i}${t.maximum.toString()} ہونا متوقع تھا`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `بہت چھوٹا: ${t.origin} کے ${i}${t.minimum.toString()} ${a.unit} ہونے متوقع تھے` : `بہت چھوٹا: ${t.origin} کا ${i}${t.minimum.toString()} ہونا متوقع تھا`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `غلط سٹرنگ: "${i.prefix}" سے شروع ہونا چاہیے` : i.format === "ends_with" ? `غلط سٹرنگ: "${i.suffix}" پر ختم ہونا چاہیے` : i.format === "includes" ? `غلط سٹرنگ: "${i.includes}" شامل ہونا چاہیے` : i.format === "regex" ? `غلط سٹرنگ: پیٹرن ${i.pattern} سے میچ ہونا چاہیے` : `غلط ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`; case "unrecognized_keys": return `غیر تسلیم شدہ کی${t.keys.length > 1 ? "ز" : ""}: ${I(t.keys, "، ")}`; case "invalid_key": return `${t.origin} میں غلط کی`; case "invalid_union": return "غلط ان پٹ"; case "invalid_element": return `${t.origin} میں غلط ویلیو`; default: return "غلط ان پٹ"; } }; }; function Oh() { return { localeError: Dh() }; } const Uh = () => { const e = { string: { unit: "belgi", verb: "bo‘lishi kerak" }, file: { unit: "bayt", verb: "bo‘lishi kerak" }, array: { unit: "element", verb: "bo‘lishi kerak" }, set: { unit: "element", verb: "bo‘lishi kerak" } }; function n(t) { return e[t] ?? null; } const r = { regex: "kirish", email: "elektron pochta manzili", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO sana va vaqti", date: "ISO sana", time: "ISO vaqt", duration: "ISO davomiylik", ipv4: "IPv4 manzil", ipv6: "IPv6 manzil", mac: "MAC manzil", cidrv4: "IPv4 diapazon", cidrv6: "IPv6 diapazon", base64: "base64 kodlangan satr", base64url: "base64url kodlangan satr", json_string: "JSON satr", e164: "E.164 raqam", jwt: "JWT", template_literal: "kirish" }, o = { nan: "NaN", number: "raqam", array: "massiv" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Noto‘g‘ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${u}` : `Noto‘g‘ri kirish: kutilgan ${i}, qabul qilingan ${u}`; } case "invalid_value": return t.values.length === 1 ? `Noto‘g‘ri kirish: kutilgan ${L(t.values[0])}` : `Noto‘g‘ri variant: quyidagilardan biri kutilgan ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Juda katta: kutilgan ${t.origin ?? "qiymat"} ${i}${t.maximum.toString()} ${a.unit} ${a.verb}` : `Juda katta: kutilgan ${t.origin ?? "qiymat"} ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ${a.verb}` : `Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Noto‘g‘ri satr: "${i.prefix}" bilan boshlanishi kerak` : i.format === "ends_with" ? `Noto‘g‘ri satr: "${i.suffix}" bilan tugashi kerak` : i.format === "includes" ? `Noto‘g‘ri satr: "${i.includes}" ni o‘z ichiga olishi kerak` : i.format === "regex" ? `Noto‘g‘ri satr: ${i.pattern} shabloniga mos kelishi kerak` : `Noto‘g‘ri ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Noto‘g‘ri raqam: ${t.divisor} ning karralisi bo‘lishi kerak`; case "unrecognized_keys": return `Noma’lum kalit${t.keys.length > 1 ? "lar" : ""}: ${I(t.keys, ", ")}`; case "invalid_key": return `${t.origin} dagi kalit noto‘g‘ri`; case "invalid_union": return "Noto‘g‘ri kirish"; case "invalid_element": return `${t.origin} da noto‘g‘ri qiymat`; default: return "Noto‘g‘ri kirish"; } }; }; function jh() { return { localeError: Uh() }; } const Th = () => { const e = { string: { unit: "ký tự", verb: "có" }, file: { unit: "byte", verb: "có" }, array: { unit: "phần tử", verb: "có" }, set: { unit: "phần tử", verb: "có" } }; function n(t) { return e[t] ?? null; } const r = { regex: "đầu vào", email: "địa chỉ email", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ngày giờ ISO", date: "ngày ISO", time: "giờ ISO", duration: "khoảng thời gian ISO", ipv4: "địa chỉ IPv4", ipv6: "địa chỉ IPv6", cidrv4: "dải IPv4", cidrv6: "dải IPv6", base64: "chuỗi mã hóa base64", base64url: "chuỗi mã hóa base64url", json_string: "chuỗi JSON", e164: "số E.164", jwt: "JWT", template_literal: "đầu vào" }, o = { nan: "NaN", number: "số", array: "mảng" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Đầu vào không hợp lệ: mong đợi instanceof ${t.expected}, nhận được ${u}` : `Đầu vào không hợp lệ: mong đợi ${i}, nhận được ${u}`; } case "invalid_value": return t.values.length === 1 ? `Đầu vào không hợp lệ: mong đợi ${L(t.values[0])}` : `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Quá lớn: mong đợi ${t.origin ?? "giá trị"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "phần tử"}` : `Quá lớn: mong đợi ${t.origin ?? "giá trị"} ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Quá nhỏ: mong đợi ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Quá nhỏ: mong đợi ${t.origin} ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Chuỗi không hợp lệ: phải bắt đầu bằng "${i.prefix}"` : i.format === "ends_with" ? `Chuỗi không hợp lệ: phải kết thúc bằng "${i.suffix}"` : i.format === "includes" ? `Chuỗi không hợp lệ: phải bao gồm "${i.includes}"` : i.format === "regex" ? `Chuỗi không hợp lệ: phải khớp với mẫu ${i.pattern}` : `${r[i.format] ?? t.format} không hợp lệ`; } case "not_multiple_of": return `Số không hợp lệ: phải là bội số của ${t.divisor}`; case "unrecognized_keys": return `Khóa không được nhận dạng: ${I(t.keys, ", ")}`; case "invalid_key": return `Khóa không hợp lệ trong ${t.origin}`; case "invalid_union": return "Đầu vào không hợp lệ"; case "invalid_element": return `Giá trị không hợp lệ trong ${t.origin}`; default: return "Đầu vào không hợp lệ"; } }; }; function Eh() { return { localeError: Th() }; } const Ph = () => { const e = { string: { unit: "字符", verb: "包含" }, file: { unit: "字节", verb: "包含" }, array: { unit: "项", verb: "包含" }, set: { unit: "项", verb: "包含" } }; function n(t) { return e[t] ?? null; } const r = { regex: "输入", email: "电子邮件", url: "URL", emoji: "表情符号", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO日期时间", date: "ISO日期", time: "ISO时间", duration: "ISO时长", ipv4: "IPv4地址", ipv6: "IPv6地址", cidrv4: "IPv4网段", cidrv6: "IPv6网段", base64: "base64编码字符串", base64url: "base64url编码字符串", json_string: "JSON字符串", e164: "E.164号码", jwt: "JWT", template_literal: "输入" }, o = { nan: "NaN", number: "数字", array: "数组", null: "空值(null)" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `无效输入:期望 instanceof ${t.expected},实际接收 ${u}` : `无效输入:期望 ${i},实际接收 ${u}`; } case "invalid_value": return t.values.length === 1 ? `无效输入:期望 ${L(t.values[0])}` : `无效选项:期望以下之一 ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `数值过大:期望 ${t.origin ?? "值"} ${i}${t.maximum.toString()} ${a.unit ?? "个元素"}` : `数值过大:期望 ${t.origin ?? "值"} ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `数值过小:期望 ${t.origin} ${i}${t.minimum.toString()} ${a.unit}` : `数值过小:期望 ${t.origin} ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `无效字符串:必须以 "${i.prefix}" 开头` : i.format === "ends_with" ? `无效字符串:必须以 "${i.suffix}" 结尾` : i.format === "includes" ? `无效字符串:必须包含 "${i.includes}"` : i.format === "regex" ? `无效字符串:必须满足正则表达式 ${i.pattern}` : `无效${r[i.format] ?? t.format}`; } case "not_multiple_of": return `无效数字:必须是 ${t.divisor} 的倍数`; case "unrecognized_keys": return `出现未知的键(key): ${I(t.keys, ", ")}`; case "invalid_key": return `${t.origin} 中的键(key)无效`; case "invalid_union": return "无效输入"; case "invalid_element": return `${t.origin} 中包含无效值(value)`; default: return "无效输入"; } }; }; function Nh() { return { localeError: Ph() }; } const Ah = () => { const e = { string: { unit: "字元", verb: "擁有" }, file: { unit: "位元組", verb: "擁有" }, array: { unit: "項目", verb: "擁有" }, set: { unit: "項目", verb: "擁有" } }; function n(t) { return e[t] ?? null; } const r = { regex: "輸入", email: "郵件地址", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO 日期時間", date: "ISO 日期", time: "ISO 時間", duration: "ISO 期間", ipv4: "IPv4 位址", ipv6: "IPv6 位址", cidrv4: "IPv4 範圍", cidrv6: "IPv6 範圍", base64: "base64 編碼字串", base64url: "base64url 編碼字串", json_string: "JSON 字串", e164: "E.164 數值", jwt: "JWT", template_literal: "輸入" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `無效的輸入值:預期為 instanceof ${t.expected},但收到 ${u}` : `無效的輸入值:預期為 ${i},但收到 ${u}`; } case "invalid_value": return t.values.length === 1 ? `無效的輸入值:預期為 ${L(t.values[0])}` : `無效的選項:預期為以下其中之一 ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `數值過大:預期 ${t.origin ?? "值"} 應為 ${i}${t.maximum.toString()} ${a.unit ?? "個元素"}` : `數值過大:預期 ${t.origin ?? "值"} 應為 ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `數值過小:預期 ${t.origin} 應為 ${i}${t.minimum.toString()} ${a.unit}` : `數值過小:預期 ${t.origin} 應為 ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `無效的字串:必須以 "${i.prefix}" 開頭` : i.format === "ends_with" ? `無效的字串:必須以 "${i.suffix}" 結尾` : i.format === "includes" ? `無效的字串:必須包含 "${i.includes}"` : i.format === "regex" ? `無效的字串:必須符合格式 ${i.pattern}` : `無效的 ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `無效的數字:必須為 ${t.divisor} 的倍數`; case "unrecognized_keys": return `無法識別的鍵值${t.keys.length > 1 ? "們" : ""}:${I(t.keys, "、")}`; case "invalid_key": return `${t.origin} 中有無效的鍵值`; case "invalid_union": return "無效的輸入值"; case "invalid_element": return `${t.origin} 中有無效的值`; default: return "無效的輸入值"; } }; }; function Zh() { return { localeError: Ah() }; } const Ch = () => { const e = { string: { unit: "àmi", verb: "ní" }, file: { unit: "bytes", verb: "ní" }, array: { unit: "nkan", verb: "ní" }, set: { unit: "nkan", verb: "ní" } }; function n(t) { return e[t] ?? null; } const r = { regex: "ẹ̀rọ ìbáwọlé", email: "àdírẹ́sì ìmẹ́lì", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "àkókò ISO", date: "ọjọ́ ISO", time: "àkókò ISO", duration: "àkókò tó pé ISO", ipv4: "àdírẹ́sì IPv4", ipv6: "àdírẹ́sì IPv6", cidrv4: "àgbègbè IPv4", cidrv6: "àgbègbè IPv6", base64: "ọ̀rọ̀ tí a kọ́ ní base64", base64url: "ọ̀rọ̀ base64url", json_string: "ọ̀rọ̀ JSON", e164: "nọ́mbà E.164", jwt: "JWT", template_literal: "ẹ̀rọ ìbáwọlé" }, o = { nan: "NaN", number: "nọ́mbà", array: "akopọ" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = B(t.input), u = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${t.expected}, àmọ̀ a rí ${u}` : `Ìbáwọlé aṣìṣe: a ní láti fi ${i}, àmọ̀ a rí ${u}`; } case "invalid_value": return t.values.length === 1 ? `Ìbáwọlé aṣìṣe: a ní láti fi ${L(t.values[0])}` : `Àṣàyàn aṣìṣe: yan ọ̀kan lára ${I(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Tó pọ̀ jù: a ní láti jẹ́ pé ${t.origin ?? "iye"} ${a.verb} ${i}${t.maximum} ${a.unit}` : `Tó pọ̀ jù: a ní láti jẹ́ ${i}${t.maximum}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Kéré ju: a ní láti jẹ́ pé ${t.origin} ${a.verb} ${i}${t.minimum} ${a.unit}` : `Kéré ju: a ní láti jẹ́ ${i}${t.minimum}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${i.prefix}"` : i.format === "ends_with" ? `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${i.suffix}"` : i.format === "includes" ? `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${i.includes}"` : i.format === "regex" ? `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${i.pattern}` : `Aṣìṣe: ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${t.divisor}`; case "unrecognized_keys": return `Bọtìnì àìmọ̀: ${I(t.keys, ", ")}`; case "invalid_key": return `Bọtìnì aṣìṣe nínú ${t.origin}`; case "invalid_union": return "Ìbáwọlé aṣìṣe"; case "invalid_element": return `Iye aṣìṣe nínú ${t.origin}`; default: return "Ìbáwọlé aṣìṣe"; } }; }; function Mh() { return { localeError: Ch() }; } const yc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ar: ng, az: ig, be: ag, bg: lg, ca: sg, cs: fg, da: vg, de: gg, en: $c, eo: bg, es: yg, fa: Sg, fi: Ig, fr: xg, frCA: Og, he: jg, hu: Eg, hy: Ng, id: Zg, is: Mg, it: Lg, ja: Bg, ka: qg, kh: Yg, km: bc, ko: Gg, lt: Hg, mk: Qg, ms: th, nl: rh, no: oh, ota: uh, pl: dh, ps: ch, pt: mh, ru: ph, sl: hh, sv: bh, ta: yh, th: Sh, tr: Ih, ua: xh, uk: _c, ur: Oh, uz: jh, vi: Eh, yo: Mh, zhCN: Nh, zhTW: Zh }, Symbol.toStringTag, { value: "Module" })); var da; const kc = Symbol("ZodOutput"), Sc = Symbol("ZodInput"); class wc { constructor() { this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(); } add(n, ...r) { const o = r[0]; return this._map.set(n, o), o && typeof o == "object" && "id" in o && this._idmap.set(o.id, n), this; } clear() { return this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(), this; } remove(n) { const r = this._map.get(n); return r && typeof r == "object" && "id" in r && this._idmap.delete(r.id), this._map.delete(n), this; } get(n) { const r = n._zod.parent; if (r) { const o = { ...this.get(r) ?? {} }; delete o.id; const t = { ...o, ...this._map.get(n) }; return Object.keys(t).length ? t : void 0; } return this._map.get(n); } has(n) { return this._map.has(n); } } function fi() { return new wc(); } (da = globalThis).__zod_globalRegistry ?? (da.__zod_globalRegistry = fi()); const Ne = globalThis.__zod_globalRegistry; // @__NO_SIDE_EFFECTS__ function Ic(e, n) { return new e({ type: "string", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function zc(e, n) { return new e({ type: "string", coerce: !0, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function mi(e, n) { return new e({ type: "string", format: "email", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Tn(e, n) { return new e({ type: "string", format: "guid", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function vi(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function pi(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, version: "v4", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function gi(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, version: "v6", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function hi(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, version: "v7", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Rn(e, n) { return new e({ type: "string", format: "url", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function $i(e, n) { return new e({ type: "string", format: "emoji", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function bi(e, n) { return new e({ type: "string", format: "nanoid", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function _i(e, n) { return new e({ type: "string", format: "cuid", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function yi(e, n) { return new e({ type: "string", format: "cuid2", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ki(e, n) { return new e({ type: "string", format: "ulid", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Si(e, n) { return new e({ type: "string", format: "xid", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function wi(e, n) { return new e({ type: "string", format: "ksuid", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Ii(e, n) { return new e({ type: "string", format: "ipv4", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function zi(e, n) { return new e({ type: "string", format: "ipv6", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function xc(e, n) { return new e({ type: "string", format: "mac", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function xi(e, n) { return new e({ type: "string", format: "cidrv4", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Di(e, n) { return new e({ type: "string", format: "cidrv6", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Oi(e, n) { return new e({ type: "string", format: "base64", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Ui(e, n) { return new e({ type: "string", format: "base64url", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ji(e, n) { return new e({ type: "string", format: "e164", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Ti(e, n) { return new e({ type: "string", format: "jwt", check: "string_format", abort: !1, ..._(n) }); } const Dc = { Any: null, Minute: -1, Second: 0, Millisecond: 3, Microsecond: 6 }; // @__NO_SIDE_EFFECTS__ function Oc(e, n) { return new e({ type: "string", format: "datetime", check: "string_format", offset: !1, local: !1, precision: null, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Uc(e, n) { return new e({ type: "string", format: "date", check: "string_format", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function jc(e, n) { return new e({ type: "string", format: "time", check: "string_format", precision: null, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Tc(e, n) { return new e({ type: "string", format: "duration", check: "string_format", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Ec(e, n) { return new e({ type: "number", checks: [], ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Pc(e, n) { return new e({ type: "number", coerce: !0, checks: [], ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Nc(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "safeint", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Ac(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "float32", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Zc(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "float64", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Cc(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "int32", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Mc(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "uint32", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Fc(e, n) { return new e({ type: "boolean", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Lc(e, n) { return new e({ type: "boolean", coerce: !0, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Rc(e, n) { return new e({ type: "bigint", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Bc(e, n) { return new e({ type: "bigint", coerce: !0, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Jc(e, n) { return new e({ type: "bigint", check: "bigint_format", abort: !1, format: "int64", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function qc(e, n) { return new e({ type: "bigint", check: "bigint_format", abort: !1, format: "uint64", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Vc(e, n) { return new e({ type: "symbol", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Yc(e, n) { return new e({ type: "undefined", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Kc(e, n) { return new e({ type: "null", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Gc(e) { return new e({ type: "any" }); } // @__NO_SIDE_EFFECTS__ function Wc(e) { return new e({ type: "unknown" }); } // @__NO_SIDE_EFFECTS__ function Hc(e, n) { return new e({ type: "never", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Xc(e, n) { return new e({ type: "void", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Qc(e, n) { return new e({ type: "date", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function es(e, n) { return new e({ type: "date", coerce: !0, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ts(e, n) { return new e({ type: "nan", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function et(e, n) { return new ri({ check: "less_than", ..._(n), value: e, inclusive: !1 }); } // @__NO_SIDE_EFFECTS__ function Ze(e, n) { return new ri({ check: "less_than", ..._(n), value: e, inclusive: !0 }); } // @__NO_SIDE_EFFECTS__ function tt(e, n) { return new ii({ check: "greater_than", ..._(n), value: e, inclusive: !1 }); } // @__NO_SIDE_EFFECTS__ function De(e, n) { return new ii({ check: "greater_than", ..._(n), value: e, inclusive: !0 }); } // @__NO_SIDE_EFFECTS__ function Ei(e) { return /* @__PURE__ */ tt(0, e); } // @__NO_SIDE_EFFECTS__ function Pi(e) { return /* @__PURE__ */ et(0, e); } // @__NO_SIDE_EFFECTS__ function Ni(e) { return /* @__PURE__ */ Ze(0, e); } // @__NO_SIDE_EFFECTS__ function Ai(e) { return /* @__PURE__ */ De(0, e); } // @__NO_SIDE_EFFECTS__ function _t(e, n) { return new Mu({ check: "multiple_of", ..._(n), value: e }); } // @__NO_SIDE_EFFECTS__ function Dt(e, n) { return new Ru({ check: "max_size", ..._(n), maximum: e }); } // @__NO_SIDE_EFFECTS__ function nt(e, n) { return new Bu({ check: "min_size", ..._(n), minimum: e }); } // @__NO_SIDE_EFFECTS__ function Gt(e, n) { return new Ju({ check: "size_equals", ..._(n), size: e }); } // @__NO_SIDE_EFFECTS__ function Wt(e, n) { return new qu({ check: "max_length", ..._(n), maximum: e }); } // @__NO_SIDE_EFFECTS__ function st(e, n) { return new Vu({ check: "min_length", ..._(n), minimum: e }); } // @__NO_SIDE_EFFECTS__ function Ht(e, n) { return new Yu({ check: "length_equals", ..._(n), length: e }); } // @__NO_SIDE_EFFECTS__ function Bn(e, n) { return new Ku({ check: "string_format", format: "regex", ..._(n), pattern: e }); } // @__NO_SIDE_EFFECTS__ function Jn(e) { return new Gu({ check: "string_format", format: "lowercase", ..._(e) }); } // @__NO_SIDE_EFFECTS__ function qn(e) { return new Wu({ check: "string_format", format: "uppercase", ..._(e) }); } // @__NO_SIDE_EFFECTS__ function Vn(e, n) { return new Hu({ check: "string_format", format: "includes", ..._(n), includes: e }); } // @__NO_SIDE_EFFECTS__ function Yn(e, n) { return new Xu({ check: "string_format", format: "starts_with", ..._(n), prefix: e }); } // @__NO_SIDE_EFFECTS__ function Kn(e, n) { return new Qu({ check: "string_format", format: "ends_with", ..._(n), suffix: e }); } // @__NO_SIDE_EFFECTS__ function Zi(e, n, r) { return new el({ check: "property", property: e, schema: n, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function Gn(e, n) { return new tl({ check: "mime_type", mime: e, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function He(e) { return new nl({ check: "overwrite", tx: e }); } // @__NO_SIDE_EFFECTS__ function Wn(e) { return /* @__PURE__ */ He((n) => n.normalize(e)); } // @__NO_SIDE_EFFECTS__ function Hn() { return /* @__PURE__ */ He((e) => e.trim()); } // @__NO_SIDE_EFFECTS__ function Xn() { return /* @__PURE__ */ He((e) => e.toLowerCase()); } // @__NO_SIDE_EFFECTS__ function Qn() { return /* @__PURE__ */ He((e) => e.toUpperCase()); } // @__NO_SIDE_EFFECTS__ function er() { return /* @__PURE__ */ He((e) => Aa(e)); } // @__NO_SIDE_EFFECTS__ function ns(e, n, r) { return new e({ type: "array", element: n, // get element() { // return element; // }, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function Fh(e, n, r) { return new e({ type: "union", options: n, ..._(r) }); } function Lh(e, n, r) { return new e({ type: "union", options: n, inclusive: !1, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function Rh(e, n, r, o) { return new e({ type: "union", options: r, discriminator: n, ..._(o) }); } // @__NO_SIDE_EFFECTS__ function Bh(e, n, r) { return new e({ type: "intersection", left: n, right: r }); } // @__NO_SIDE_EFFECTS__ function Jh(e, n, r, o) { const t = r instanceof V, i = t ? o : r, a = t ? r : null; return new e({ type: "tuple", items: n, rest: a, ..._(i) }); } // @__NO_SIDE_EFFECTS__ function qh(e, n, r, o) { return new e({ type: "record", keyType: n, valueType: r, ..._(o) }); } // @__NO_SIDE_EFFECTS__ function Vh(e, n, r, o) { return new e({ type: "map", keyType: n, valueType: r, ..._(o) }); } // @__NO_SIDE_EFFECTS__ function Yh(e, n, r) { return new e({ type: "set", valueType: n, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function Kh(e, n, r) { const o = Array.isArray(n) ? Object.fromEntries(n.map((t) => [t, t])) : n; return new e({ type: "enum", entries: o, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function Gh(e, n, r) { return new e({ type: "enum", entries: n, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function Wh(e, n, r) { return new e({ type: "literal", values: Array.isArray(n) ? n : [n], ..._(r) }); } // @__NO_SIDE_EFFECTS__ function rs(e, n) { return new e({ type: "file", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Hh(e, n) { return new e({ type: "transform", transform: n }); } // @__NO_SIDE_EFFECTS__ function Xh(e, n) { return new e({ type: "optional", innerType: n }); } // @__NO_SIDE_EFFECTS__ function Qh(e, n) { return new e({ type: "nullable", innerType: n }); } // @__NO_SIDE_EFFECTS__ function e$(e, n, r) { return new e({ type: "default", innerType: n, get defaultValue() { return typeof r == "function" ? r() : Cn(r); } }); } // @__NO_SIDE_EFFECTS__ function t$(e, n, r) { return new e({ type: "nonoptional", innerType: n, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function n$(e, n) { return new e({ type: "success", innerType: n }); } // @__NO_SIDE_EFFECTS__ function r$(e, n, r) { return new e({ type: "catch", innerType: n, catchValue: typeof r == "function" ? r : () => r }); } // @__NO_SIDE_EFFECTS__ function i$(e, n, r) { return new e({ type: "pipe", in: n, out: r }); } // @__NO_SIDE_EFFECTS__ function o$(e, n) { return new e({ type: "readonly", innerType: n }); } // @__NO_SIDE_EFFECTS__ function a$(e, n, r) { return new e({ type: "template_literal", parts: n, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function u$(e, n) { return new e({ type: "lazy", getter: n }); } // @__NO_SIDE_EFFECTS__ function l$(e, n) { return new e({ type: "promise", innerType: n }); } // @__NO_SIDE_EFFECTS__ function is(e, n, r) { const o = _(r); return o.abort ?? (o.abort = !0), new e({ type: "custom", check: "custom", fn: n, ...o }); } // @__NO_SIDE_EFFECTS__ function os(e, n, r) { return new e({ type: "custom", check: "custom", fn: n, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function as(e) { const n = /* @__PURE__ */ us((r) => (r.addIssue = (o) => { if (typeof o == "string") r.issues.push($t(o, r.value, n._zod.def)); else { const t = o; t.fatal && (t.continue = !1), t.code ?? (t.code = "custom"), t.input ?? (t.input = r.value), t.inst ?? (t.inst = n), t.continue ?? (t.continue = !n._zod.def.abort), r.issues.push($t(t)); } }, e(r.value, r))); return n; } // @__NO_SIDE_EFFECTS__ function us(e, n) { const r = new se({ check: "custom", ..._(n) }); return r._zod.check = e, r; } // @__NO_SIDE_EFFECTS__ function ls(e) { const n = new se({ check: "describe" }); return n._zod.onattach = [ (r) => { const o = Ne.get(r) ?? {}; Ne.add(r, { ...o, description: e }); } ], n._zod.check = () => { }, n; } // @__NO_SIDE_EFFECTS__ function cs(e) { const n = new se({ check: "meta" }); return n._zod.onattach = [ (r) => { const o = Ne.get(r) ?? {}; Ne.add(r, { ...o, ...e }); } ], n._zod.check = () => { }, n; } // @__NO_SIDE_EFFECTS__ function ss(e, n) { const r = _(n); let o = r.truthy ?? ["true", "1", "yes", "on", "y", "enabled"], t = r.falsy ?? ["false", "0", "no", "off", "n", "disabled"]; r.case !== "sensitive" && (o = o.map(($) => typeof $ == "string" ? $.toLowerCase() : $), t = t.map(($) => typeof $ == "string" ? $.toLowerCase() : $)); const i = new Set(o), a = new Set(t), u = e.Codec ?? di, c = e.Boolean ?? ui, l = e.String ?? Kt, d = new l({ type: "string", error: r.error }), s = new c({ type: "boolean", error: r.error }), p = new u({ type: "pipe", in: d, out: s, transform: (($, g) => { let m = $; return r.case !== "sensitive" && (m = m.toLowerCase()), i.has(m) ? !0 : a.has(m) ? !1 : (g.issues.push({ code: "invalid_value", expected: "stringbool", values: [...i, ...a], input: g.value, inst: p, continue: !1 }), {}); }), reverseTransform: (($, g) => $ === !0 ? o[0] || "true" : t[0] || "false"), error: r.error }); return p; } // @__NO_SIDE_EFFECTS__ function Xt(e, n, r, o = {}) { const t = _(o), i = { ..._(o), check: "string_format", type: "string", format: n, fn: typeof r == "function" ? r : (u) => r.test(u), ...t }; return r instanceof RegExp && (i.pattern = r), new e(i); } function yt(e) { let n = (e == null ? void 0 : e.target) ?? "draft-2020-12"; return n === "draft-4" && (n = "draft-04"), n === "draft-7" && (n = "draft-07"), { processors: e.processors ?? {}, metadataRegistry: (e == null ? void 0 : e.metadata) ?? Ne, target: n, unrepresentable: (e == null ? void 0 : e.unrepresentable) ?? "throw", override: (e == null ? void 0 : e.override) ?? (() => { }), io: (e == null ? void 0 : e.io) ?? "output", counter: 0, seen: /* @__PURE__ */ new Map(), cycles: (e == null ? void 0 : e.cycles) ?? "ref", reused: (e == null ? void 0 : e.reused) ?? "inline", external: (e == null ? void 0 : e.external) ?? void 0 }; } function ne(e, n, r = { path: [], schemaPath: [] }) { var d, s; var o; const t = e._zod.def, i = n.seen.get(e); if (i) return i.count++, r.schemaPath.includes(e) && (i.cycle = r.path), i.schema; const a = { schema: {}, count: 1, cycle: void 0, path: r.path }; n.seen.set(e, a); const u = (s = (d = e._zod).toJSONSchema) == null ? void 0 : s.call(d); if (u) a.schema = u; else { const p = { ...r, schemaPath: [...r.schemaPath, e], path: r.path }; if (e._zod.processJSONSchema) e._zod.processJSONSchema(n, a.schema, p); else { const g = a.schema, m = n.processors[t.type]; if (!m) throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`); m(e, n, g, p); } const $ = e._zod.parent; $ && (a.ref || (a.ref = $), ne($, n, p), n.seen.get($).isParent = !0); } const c = n.metadataRegistry.get(e); return c && Object.assign(a.schema, c), n.io === "input" && Ie(e) && (delete a.schema.examples, delete a.schema.default), n.io === "input" && a.schema._prefault && ((o = a.schema).default ?? (o.default = a.schema._prefault)), delete a.schema._prefault, n.seen.get(e).schema; } function kt(e, n) { var a, u, c, l; const r = e.seen.get(n); if (!r) throw new Error("Unprocessed schema. This is a bug in Zod."); const o = /* @__PURE__ */ new Map(); for (const d of e.seen.entries()) { const s = (a = e.metadataRegistry.get(d[0])) == null ? void 0 : a.id; if (s) { const p = o.get(s); if (p && p !== d[0]) throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`); o.set(s, d[0]); } } const t = (d) => { var m; const s = e.target === "draft-2020-12" ? "$defs" : "definitions"; if (e.external) { const y = (m = e.external.registry.get(d[0])) == null ? void 0 : m.id, b = e.external.uri ?? ((q) => q); if (y) return { ref: b(y) }; const z = d[1].defId ?? d[1].schema.id ?? `schema${e.counter++}`; return d[1].defId = z, { defId: z, ref: `${b("__shared")}#/${s}/${z}` }; } if (d[1] === r) return { ref: "#" }; const $ = `#/${s}/`, g = d[1].schema.id ?? `__schema${e.counter++}`; return { defId: g, ref: $ + g }; }, i = (d) => { if (d[1].schema.$ref) return; const s = d[1], { ref: p, defId: $ } = t(d); s.def = { ...s.schema }, $ && (s.defId = $); const g = s.schema; for (const m in g) delete g[m]; g.$ref = p; }; if (e.cycles === "throw") for (const d of e.seen.entries()) { const s = d[1]; if (s.cycle) throw new Error(`Cycle detected: #/${(u = s.cycle) == null ? void 0 : u.join("/")}/ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`); } for (const d of e.seen.entries()) { const s = d[1]; if (n === d[0]) { i(d); continue; } if (e.external) { const $ = (c = e.external.registry.get(d[0])) == null ? void 0 : c.id; if (n !== d[0] && $) { i(d); continue; } } if ((l = e.metadataRegistry.get(d[0])) == null ? void 0 : l.id) { i(d); continue; } if (s.cycle) { i(d); continue; } if (s.count > 1 && e.reused === "ref") { i(d); continue; } } } function St(e, n) { var a, u, c; const r = e.seen.get(n); if (!r) throw new Error("Unprocessed schema. This is a bug in Zod."); const o = (l) => { const d = e.seen.get(l); if (d.ref === null) return; const s = d.def ?? d.schema, p = { ...s }, $ = d.ref; if (d.ref = null, $) { o($); const m = e.seen.get($), y = m.schema; if (y.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (s.allOf = s.allOf ?? [], s.allOf.push(y)) : Object.assign(s, y), Object.assign(s, p), l._zod.parent === $) for (const z in s) z === "$ref" || z === "allOf" || z in p || delete s[z]; if (y.$ref && m.def) for (const z in s) z === "$ref" || z === "allOf" || z in m.def && JSON.stringify(s[z]) === JSON.stringify(m.def[z]) && delete s[z]; } const g = l._zod.parent; if (g && g !== $) { o(g); const m = e.seen.get(g); if (m != null && m.schema.$ref && (s.$ref = m.schema.$ref, m.def)) for (const y in s) y === "$ref" || y === "allOf" || y in m.def && JSON.stringify(s[y]) === JSON.stringify(m.def[y]) && delete s[y]; } e.override({ zodSchema: l, jsonSchema: s, path: d.path ?? [] }); }; for (const l of [...e.seen.entries()].reverse()) o(l[0]); const t = {}; if (e.target === "draft-2020-12" ? t.$schema = "https://json-schema.org/draft/2020-12/schema" : e.target === "draft-07" ? t.$schema = "http://json-schema.org/draft-07/schema#" : e.target === "draft-04" ? t.$schema = "http://json-schema.org/draft-04/schema#" : e.target, (a = e.external) != null && a.uri) { const l = (u = e.external.registry.get(n)) == null ? void 0 : u.id; if (!l) throw new Error("Schema is missing an `id` property"); t.$id = e.external.uri(l); } Object.assign(t, r.def ?? r.schema); const i = ((c = e.external) == null ? void 0 : c.defs) ?? {}; for (const l of e.seen.entries()) { const d = l[1]; d.def && d.defId && (i[d.defId] = d.def); } e.external || Object.keys(i).length > 0 && (e.target === "draft-2020-12" ? t.$defs = i : t.definitions = i); try { const l = JSON.parse(JSON.stringify(t)); return Object.defineProperty(l, "~standard", { value: { ...n["~standard"], jsonSchema: { input: Nt(n, "input", e.processors), output: Nt(n, "output", e.processors) } }, enumerable: !1, writable: !1 }), l; } catch { throw new Error("Error converting schema to JSON."); } } function Ie(e, n) { const r = n ?? { seen: /* @__PURE__ */ new Set() }; if (r.seen.has(e)) return !1; r.seen.add(e); const o = e._zod.def; if (o.type === "transform") return !0; if (o.type === "array") return Ie(o.element, r); if (o.type === "set") return Ie(o.valueType, r); if (o.type === "lazy") return Ie(o.getter(), r); if (o.type === "promise" || o.type === "optional" || o.type === "nonoptional" || o.type === "nullable" || o.type === "readonly" || o.type === "default" || o.type === "prefault") return Ie(o.innerType, r); if (o.type === "intersection") return Ie(o.left, r) || Ie(o.right, r); if (o.type === "record" || o.type === "map") return Ie(o.keyType, r) || Ie(o.valueType, r); if (o.type === "pipe") return Ie(o.in, r) || Ie(o.out, r); if (o.type === "object") { for (const t in o.shape) if (Ie(o.shape[t], r)) return !0; return !1; } if (o.type === "union") { for (const t of o.options) if (Ie(t, r)) return !0; return !1; } if (o.type === "tuple") { for (const t of o.items) if (Ie(t, r)) return !0; return !!(o.rest && Ie(o.rest, r)); } return !1; } const ds = (e, n = {}) => (r) => { const o = yt({ ...r, processors: n }); return ne(e, o), kt(o, e), St(o, e); }, Nt = (e, n, r = {}) => (o) => { const { libraryOptions: t, target: i } = o ?? {}, a = yt({ ...t ?? {}, target: i, io: n, processors: r }); return ne(e, a), kt(a, e), St(a, e); }, c$ = { guid: "uuid", url: "uri", datetime: "date-time", json_string: "json-string", regex: "" // do not set }, fs = (e, n, r, o) => { const t = r; t.type = "string"; const { minimum: i, maximum: a, format: u, patterns: c, contentEncoding: l } = e._zod.bag; if (typeof i == "number" && (t.minLength = i), typeof a == "number" && (t.maxLength = a), u && (t.format = c$[u] ?? u, t.format === "" && delete t.format, u === "time" && delete t.format), l && (t.contentEncoding = l), c && c.size > 0) { const d = [...c]; d.length === 1 ? t.pattern = d[0].source : d.length > 1 && (t.allOf = [ ...d.map((s) => ({ ...n.target === "draft-07" || n.target === "draft-04" || n.target === "openapi-3.0" ? { type: "string" } : {}, pattern: s.source })) ]); } }, ms = (e, n, r, o) => { const t = r, { minimum: i, maximum: a, format: u, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: d } = e._zod.bag; typeof u == "string" && u.includes("int") ? t.type = "integer" : t.type = "number", typeof d == "number" && (n.target === "draft-04" || n.target === "openapi-3.0" ? (t.minimum = d, t.exclusiveMinimum = !0) : t.exclusiveMinimum = d), typeof i == "number" && (t.minimum = i, typeof d == "number" && n.target !== "draft-04" && (d >= i ? delete t.minimum : delete t.exclusiveMinimum)), typeof l == "number" && (n.target === "draft-04" || n.target === "openapi-3.0" ? (t.maximum = l, t.exclusiveMaximum = !0) : t.exclusiveMaximum = l), typeof a == "number" && (t.maximum = a, typeof l == "number" && n.target !== "draft-04" && (l <= a ? delete t.maximum : delete t.exclusiveMaximum)), typeof c == "number" && (t.multipleOf = c); }, vs = (e, n, r, o) => { r.type = "boolean"; }, ps = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("BigInt cannot be represented in JSON Schema"); }, gs = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Symbols cannot be represented in JSON Schema"); }, hs = (e, n, r, o) => { n.target === "openapi-3.0" ? (r.type = "string", r.nullable = !0, r.enum = [null]) : r.type = "null"; }, $s = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Undefined cannot be represented in JSON Schema"); }, bs = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Void cannot be represented in JSON Schema"); }, _s = (e, n, r, o) => { r.not = {}; }, ys = (e, n, r, o) => { }, ks = (e, n, r, o) => { }, Ss = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Date cannot be represented in JSON Schema"); }, ws = (e, n, r, o) => { const t = e._zod.def, i = Lr(t.entries); i.every((a) => typeof a == "number") && (r.type = "number"), i.every((a) => typeof a == "string") && (r.type = "string"), r.enum = i; }, Is = (e, n, r, o) => { const t = e._zod.def, i = []; for (const a of t.values) if (a === void 0) { if (n.unrepresentable === "throw") throw new Error("Literal `undefined` cannot be represented in JSON Schema"); } else if (typeof a == "bigint") { if (n.unrepresentable === "throw") throw new Error("BigInt literals cannot be represented in JSON Schema"); i.push(Number(a)); } else i.push(a); if (i.length !== 0) if (i.length === 1) { const a = i[0]; r.type = a === null ? "null" : typeof a, n.target === "draft-04" || n.target === "openapi-3.0" ? r.enum = [a] : r.const = a; } else i.every((a) => typeof a == "number") && (r.type = "number"), i.every((a) => typeof a == "string") && (r.type = "string"), i.every((a) => typeof a == "boolean") && (r.type = "boolean"), i.every((a) => a === null) && (r.type = "null"), r.enum = i; }, zs = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("NaN cannot be represented in JSON Schema"); }, xs = (e, n, r, o) => { const t = r, i = e._zod.pattern; if (!i) throw new Error("Pattern not found in template literal"); t.type = "string", t.pattern = i.source; }, Ds = (e, n, r, o) => { const t = r, i = { type: "string", format: "binary", contentEncoding: "binary" }, { minimum: a, maximum: u, mime: c } = e._zod.bag; a !== void 0 && (i.minLength = a), u !== void 0 && (i.maxLength = u), c ? c.length === 1 ? (i.contentMediaType = c[0], Object.assign(t, i)) : (Object.assign(t, i), t.anyOf = c.map((l) => ({ contentMediaType: l }))) : Object.assign(t, i); }, Os = (e, n, r, o) => { r.type = "boolean"; }, Us = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Custom types cannot be represented in JSON Schema"); }, js = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Function types cannot be represented in JSON Schema"); }, Ts = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Transforms cannot be represented in JSON Schema"); }, Es = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Map cannot be represented in JSON Schema"); }, Ps = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Set cannot be represented in JSON Schema"); }, Ns = (e, n, r, o) => { const t = r, i = e._zod.def, { minimum: a, maximum: u } = e._zod.bag; typeof a == "number" && (t.minItems = a), typeof u == "number" && (t.maxItems = u), t.type = "array", t.items = ne(i.element, n, { ...o, path: [...o.path, "items"] }); }, As = (e, n, r, o) => { var l; const t = r, i = e._zod.def; t.type = "object", t.properties = {}; const a = i.shape; for (const d in a) t.properties[d] = ne(a[d], n, { ...o, path: [...o.path, "properties", d] }); const u = new Set(Object.keys(a)), c = new Set([...u].filter((d) => { const s = i.shape[d]._zod; return n.io === "input" ? s.optin === void 0 : s.optout === void 0; })); c.size > 0 && (t.required = Array.from(c)), ((l = i.catchall) == null ? void 0 : l._zod.def.type) === "never" ? t.additionalProperties = !1 : i.catchall ? i.catchall && (t.additionalProperties = ne(i.catchall, n, { ...o, path: [...o.path, "additionalProperties"] })) : n.io === "output" && (t.additionalProperties = !1); }, Ci = (e, n, r, o) => { const t = e._zod.def, i = t.inclusive === !1, a = t.options.map((u, c) => ne(u, n, { ...o, path: [...o.path, i ? "oneOf" : "anyOf", c] })); i ? r.oneOf = a : r.anyOf = a; }, Zs = (e, n, r, o) => { const t = e._zod.def, i = ne(t.left, n, { ...o, path: [...o.path, "allOf", 0] }), a = ne(t.right, n, { ...o, path: [...o.path, "allOf", 1] }), u = (l) => "allOf" in l && Object.keys(l).length === 1, c = [ ...u(i) ? i.allOf : [i], ...u(a) ? a.allOf : [a] ]; r.allOf = c; }, Cs = (e, n, r, o) => { const t = r, i = e._zod.def; t.type = "array"; const a = n.target === "draft-2020-12" ? "prefixItems" : "items", u = n.target === "draft-2020-12" || n.target === "openapi-3.0" ? "items" : "additionalItems", c = i.items.map((p, $) => ne(p, n, { ...o, path: [...o.path, a, $] })), l = i.rest ? ne(i.rest, n, { ...o, path: [...o.path, u, ...n.target === "openapi-3.0" ? [i.items.length] : []] }) : null; n.target === "draft-2020-12" ? (t.prefixItems = c, l && (t.items = l)) : n.target === "openapi-3.0" ? (t.items = { anyOf: c }, l && t.items.anyOf.push(l), t.minItems = c.length, l || (t.maxItems = c.length)) : (t.items = c, l && (t.additionalItems = l)); const { minimum: d, maximum: s } = e._zod.bag; typeof d == "number" && (t.minItems = d), typeof s == "number" && (t.maxItems = s); }, Ms = (e, n, r, o) => { const t = r, i = e._zod.def; t.type = "object"; const a = i.keyType, u = a._zod.bag, c = u == null ? void 0 : u.patterns; if (i.mode === "loose" && c && c.size > 0) { const d = ne(i.valueType, n, { ...o, path: [...o.path, "patternProperties", "*"] }); t.patternProperties = {}; for (const s of c) t.patternProperties[s.source] = d; } else (n.target === "draft-07" || n.target === "draft-2020-12") && (t.propertyNames = ne(i.keyType, n, { ...o, path: [...o.path, "propertyNames"] })), t.additionalProperties = ne(i.valueType, n, { ...o, path: [...o.path, "additionalProperties"] }); const l = a._zod.values; if (l) { const d = [...l].filter((s) => typeof s == "string" || typeof s == "number"); d.length > 0 && (t.required = d); } }, Fs = (e, n, r, o) => { const t = e._zod.def, i = ne(t.innerType, n, o), a = n.seen.get(e); n.target === "openapi-3.0" ? (a.ref = t.innerType, r.nullable = !0) : r.anyOf = [i, { type: "null" }]; }, Ls = (e, n, r, o) => { const t = e._zod.def; ne(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType; }, Rs = (e, n, r, o) => { const t = e._zod.def; ne(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType, r.default = JSON.parse(JSON.stringify(t.defaultValue)); }, Bs = (e, n, r, o) => { const t = e._zod.def; ne(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType, n.io === "input" && (r._prefault = JSON.parse(JSON.stringify(t.defaultValue))); }, Js = (e, n, r, o) => { const t = e._zod.def; ne(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType; let a; try { a = t.catchValue(void 0); } catch { throw new Error("Dynamic catch values are not supported in JSON Schema"); } r.default = a; }, qs = (e, n, r, o) => { const t = e._zod.def, i = n.io === "input" ? t.in._zod.def.type === "transform" ? t.out : t.in : t.out; ne(i, n, o); const a = n.seen.get(e); a.ref = i; }, Vs = (e, n, r, o) => { const t = e._zod.def; ne(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType, r.readOnly = !0; }, Ys = (e, n, r, o) => { const t = e._zod.def; ne(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType; }, Mi = (e, n, r, o) => { const t = e._zod.def; ne(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType; }, Ks = (e, n, r, o) => { const t = e._zod.innerType; ne(t, n, o); const i = n.seen.get(e); i.ref = t; }, Ar = { string: fs, number: ms, boolean: vs, bigint: ps, symbol: gs, null: hs, undefined: $s, void: bs, never: _s, any: ys, unknown: ks, date: Ss, enum: ws, literal: Is, nan: zs, template_literal: xs, file: Ds, success: Os, custom: Us, function: js, transform: Ts, map: Es, set: Ps, array: Ns, object: As, union: Ci, intersection: Zs, tuple: Cs, record: Ms, nullable: Fs, nonoptional: Ls, default: Rs, prefault: Bs, catch: Js, pipe: qs, readonly: Vs, promise: Ys, optional: Mi, lazy: Ks }; function Gs(e, n) { if ("_idmap" in e) { const o = e, t = yt({ ...n, processors: Ar }), i = {}; for (const c of o._idmap.entries()) { const [l, d] = c; ne(d, t); } const a = {}, u = { registry: o, uri: n == null ? void 0 : n.uri, defs: i }; t.external = u; for (const c of o._idmap.entries()) { const [l, d] = c; kt(t, d), a[l] = St(t, d); } if (Object.keys(i).length > 0) { const c = t.target === "draft-2020-12" ? "$defs" : "definitions"; a.__shared = { [c]: i }; } return { schemas: a }; } const r = yt({ ...n, processors: Ar }); return ne(e, r), kt(r, e), St(r, e); } class s$ { /** @deprecated Access via ctx instead */ get metadataRegistry() { return this.ctx.metadataRegistry; } /** @deprecated Access via ctx instead */ get target() { return this.ctx.target; } /** @deprecated Access via ctx instead */ get unrepresentable() { return this.ctx.unrepresentable; } /** @deprecated Access via ctx instead */ get override() { return this.ctx.override; } /** @deprecated Access via ctx instead */ get io() { return this.ctx.io; } /** @deprecated Access via ctx instead */ get counter() { return this.ctx.counter; } set counter(n) { this.ctx.counter = n; } /** @deprecated Access via ctx instead */ get seen() { return this.ctx.seen; } constructor(n) { let r = (n == null ? void 0 : n.target) ?? "draft-2020-12"; r === "draft-4" && (r = "draft-04"), r === "draft-7" && (r = "draft-07"), this.ctx = yt({ processors: Ar, target: r, ...(n == null ? void 0 : n.metadata) && { metadata: n.metadata }, ...(n == null ? void 0 : n.unrepresentable) && { unrepresentable: n.unrepresentable }, ...(n == null ? void 0 : n.override) && { override: n.override }, ...(n == null ? void 0 : n.io) && { io: n.io } }); } /** * Process a schema to prepare it for JSON Schema generation. * This must be called before emit(). */ process(n, r = { path: [], schemaPath: [] }) { return ne(n, this.ctx, r); } /** * Emit the final JSON Schema after processing. * Must call process() first. */ emit(n, r) { r && (r.cycles && (this.ctx.cycles = r.cycles), r.reused && (this.ctx.reused = r.reused), r.external && (this.ctx.external = r.external)), kt(this.ctx, n); const o = St(this.ctx, n), { "~standard": t, ...i } = o; return i; } } const d$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), f$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, $ZodAny: Zl, $ZodArray: Rl, $ZodAsyncError: lt, $ZodBase64: Il, $ZodBase64URL: xl, $ZodBigInt: li, $ZodBigIntFormat: El, $ZodBoolean: ui, $ZodCIDRv4: Sl, $ZodCIDRv6: wl, $ZodCUID: dl, $ZodCUID2: fl, $ZodCatch: cc, $ZodCheck: se, $ZodCheckBigIntFormat: Lu, $ZodCheckEndsWith: Qu, $ZodCheckGreaterThan: ii, $ZodCheckIncludes: Hu, $ZodCheckLengthEquals: Yu, $ZodCheckLessThan: ri, $ZodCheckLowerCase: Gu, $ZodCheckMaxLength: qu, $ZodCheckMaxSize: Ru, $ZodCheckMimeType: tl, $ZodCheckMinLength: Vu, $ZodCheckMinSize: Bu, $ZodCheckMultipleOf: Mu, $ZodCheckNumberFormat: Fu, $ZodCheckOverwrite: nl, $ZodCheckProperty: el, $ZodCheckRegex: Ku, $ZodCheckSizeEquals: Ju, $ZodCheckStartsWith: Xu, $ZodCheckStringFormat: Yt, $ZodCheckUpperCase: Wu, $ZodCodec: di, $ZodCustom: hc, $ZodCustomStringFormat: jl, $ZodDate: Ll, $ZodDefault: oc, $ZodDiscriminatedUnion: Kl, $ZodE164: Dl, $ZodEmail: ul, $ZodEmoji: cl, $ZodEncodeError: An, $ZodEnum: Ql, $ZodError: Br, $ZodExactOptional: rc, $ZodFile: tc, $ZodFunction: vc, $ZodGUID: ol, $ZodIPv4: _l, $ZodIPv6: yl, $ZodISODate: hl, $ZodISODateTime: gl, $ZodISODuration: bl, $ZodISOTime: $l, $ZodIntersection: Gl, $ZodJWT: Ul, $ZodKSUID: pl, $ZodLazy: gc, $ZodLiteral: ec, $ZodMAC: kl, $ZodMap: Hl, $ZodNaN: sc, $ZodNanoID: sl, $ZodNever: Ml, $ZodNonOptional: uc, $ZodNull: Al, $ZodNullable: ic, $ZodNumber: ai, $ZodNumberFormat: Tl, $ZodObject: ql, $ZodObjectJIT: Vl, $ZodOptional: si, $ZodPipe: dc, $ZodPrefault: ac, $ZodPromise: pc, $ZodReadonly: fc, $ZodRealError: Ue, $ZodRecord: Wl, $ZodRegistry: wc, $ZodSet: Xl, $ZodString: Kt, $ZodStringFormat: oe, $ZodSuccess: lc, $ZodSymbol: Pl, $ZodTemplateLiteral: mc, $ZodTransform: nc, $ZodTuple: ci, $ZodType: V, $ZodULID: ml, $ZodURL: ll, $ZodUUID: al, $ZodUndefined: Nl, $ZodUnion: Ln, $ZodUnknown: Cl, $ZodVoid: Fl, $ZodXID: vl, $ZodXor: Yl, $brand: Pa, $constructor: v, $input: Sc, $output: kc, Doc: rl, JSONSchema: d$, JSONSchemaGenerator: s$, NEVER: Ea, TimePrecision: Dc, _any: Gc, _array: ns, _base64: Oi, _base64url: Ui, _bigint: Rc, _boolean: Fc, _catch: r$, _check: us, _cidrv4: xi, _cidrv6: Di, _coercedBigint: Bc, _coercedBoolean: Lc, _coercedDate: es, _coercedNumber: Pc, _coercedString: zc, _cuid: _i, _cuid2: yi, _custom: is, _date: Qc, _decode: Yr, _decodeAsync: Gr, _default: e$, _discriminatedUnion: Rh, _e164: ji, _email: mi, _emoji: $i, _encode: Vr, _encodeAsync: Kr, _endsWith: Kn, _enum: Kh, _file: rs, _float32: Ac, _float64: Zc, _gt: tt, _gte: De, _guid: Tn, _includes: Vn, _int: Nc, _int32: Cc, _int64: Jc, _intersection: Bh, _ipv4: Ii, _ipv6: zi, _isoDate: Uc, _isoDateTime: Oc, _isoDuration: Tc, _isoTime: jc, _jwt: Ti, _ksuid: wi, _lazy: u$, _length: Ht, _literal: Wh, _lowercase: Jn, _lt: et, _lte: Ze, _mac: xc, _map: Vh, _max: Ze, _maxLength: Wt, _maxSize: Dt, _mime: Gn, _min: De, _minLength: st, _minSize: nt, _multipleOf: _t, _nan: ts, _nanoid: bi, _nativeEnum: Gh, _negative: Pi, _never: Hc, _nonnegative: Ai, _nonoptional: t$, _nonpositive: Ni, _normalize: Wn, _null: Kc, _nullable: Qh, _number: Ec, _optional: Xh, _overwrite: He, _parse: Lt, _parseAsync: Rt, _pipe: i$, _positive: Ei, _promise: l$, _property: Zi, _readonly: o$, _record: qh, _refine: os, _regex: Bn, _safeDecode: Hr, _safeDecodeAsync: Qr, _safeEncode: Wr, _safeEncodeAsync: Xr, _safeParse: Bt, _safeParseAsync: Jt, _set: Yh, _size: Gt, _slugify: er, _startsWith: Yn, _string: Ic, _stringFormat: Xt, _stringbool: ss, _success: n$, _superRefine: as, _symbol: Vc, _templateLiteral: a$, _toLowerCase: Xn, _toUpperCase: Qn, _transform: Hh, _trim: Hn, _tuple: Jh, _uint32: Mc, _uint64: qc, _ulid: ki, _undefined: Yc, _union: Fh, _unknown: Wc, _uppercase: qn, _url: Rn, _uuid: vi, _uuidv4: pi, _uuidv6: gi, _uuidv7: hi, _void: Xc, _xid: Si, _xor: Lh, clone: Me, config: we, createStandardJSONSchemaMethod: Nt, createToJSONSchemaMethod: ds, decode: wp, decodeAsync: zp, describe: ls, encode: Sp, encodeAsync: Ip, extractDefs: kt, finalize: St, flattenError: Jr, formatError: qr, globalConfig: Dn, globalRegistry: Ne, initializeContext: yt, isValidBase64: oi, isValidBase64URL: zl, isValidJWT: Ol, locales: yc, meta: cs, parse: Er, parseAsync: Pr, prettifyError: tu, process: ne, regexes: ni, registry: fi, safeDecode: Dp, safeDecodeAsync: Up, safeEncode: xp, safeEncodeAsync: Op, safeParse: nu, safeParseAsync: ru, toDotPath: eu, toJSONSchema: Gs, treeifyError: Qa, util: Ha, version: il }, Symbol.toStringTag, { value: "Module" })), m$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, endsWith: Kn, gt: tt, gte: De, includes: Vn, length: Ht, lowercase: Jn, lt: et, lte: Ze, maxLength: Wt, maxSize: Dt, mime: Gn, minLength: st, minSize: nt, multipleOf: _t, negative: Pi, nonnegative: Ai, nonpositive: Ni, normalize: Wn, overwrite: He, positive: Ei, property: Zi, regex: Bn, size: Gt, slugify: er, startsWith: Yn, toLowerCase: Xn, toUpperCase: Qn, trim: Hn, uppercase: qn }, Symbol.toStringTag, { value: "Module" })), Fi = /* @__PURE__ */ v("ZodISODateTime", (e, n) => { gl.init(e, n), ae.init(e, n); }); function Ws(e) { return /* @__PURE__ */ Oc(Fi, e); } const Li = /* @__PURE__ */ v("ZodISODate", (e, n) => { hl.init(e, n), ae.init(e, n); }); function Hs(e) { return /* @__PURE__ */ Uc(Li, e); } const Ri = /* @__PURE__ */ v("ZodISOTime", (e, n) => { $l.init(e, n), ae.init(e, n); }); function Xs(e) { return /* @__PURE__ */ jc(Ri, e); } const Bi = /* @__PURE__ */ v("ZodISODuration", (e, n) => { bl.init(e, n), ae.init(e, n); }); function Qs(e) { return /* @__PURE__ */ Tc(Bi, e); } const ed = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ZodISODate: Li, ZodISODateTime: Fi, ZodISODuration: Bi, ZodISOTime: Ri, date: Hs, datetime: Ws, duration: Qs, time: Xs }, Symbol.toStringTag, { value: "Module" })), td = (e, n) => { Br.init(e, n), e.name = "ZodError", Object.defineProperties(e, { format: { value: (r) => qr(e, r) // enumerable: false, }, flatten: { value: (r) => Jr(e, r) // enumerable: false, }, addIssue: { value: (r) => { e.issues.push(r), e.message = JSON.stringify(e.issues, On, 2); } // enumerable: false, }, addIssues: { value: (r) => { e.issues.push(...r), e.message = JSON.stringify(e.issues, On, 2); } // enumerable: false, }, isEmpty: { get() { return e.issues.length === 0; } // enumerable: false, } }); }, v$ = v("ZodError", td), je = v("ZodError", td, { Parent: Error }), nd = /* @__PURE__ */ Lt(je), rd = /* @__PURE__ */ Rt(je), id = /* @__PURE__ */ Bt(je), od = /* @__PURE__ */ Jt(je), ad = /* @__PURE__ */ Vr(je), ud = /* @__PURE__ */ Yr(je), ld = /* @__PURE__ */ Kr(je), cd = /* @__PURE__ */ Gr(je), sd = /* @__PURE__ */ Wr(je), dd = /* @__PURE__ */ Hr(je), fd = /* @__PURE__ */ Xr(je), md = /* @__PURE__ */ Qr(je), K = /* @__PURE__ */ v("ZodType", (e, n) => (V.init(e, n), Object.assign(e["~standard"], { jsonSchema: { input: Nt(e, "input"), output: Nt(e, "output") } }), e.toJSONSchema = ds(e, {}), e.def = n, e.type = n.type, Object.defineProperty(e, "_def", { value: n }), e.check = (...r) => e.clone(qe(n, { checks: [ ...n.checks ?? [], ...r.map((o) => typeof o == "function" ? { _zod: { check: o, def: { check: "custom" }, onattach: [] } } : o) ] }), { parent: !0 }), e.with = e.check, e.clone = (r, o) => Me(e, r, o), e.brand = () => e, e.register = ((r, o) => (r.add(e, o), e)), e.parse = (r, o) => nd(e, r, o, { callee: e.parse }), e.safeParse = (r, o) => id(e, r, o), e.parseAsync = async (r, o) => rd(e, r, o, { callee: e.parseAsync }), e.safeParseAsync = async (r, o) => od(e, r, o), e.spa = e.safeParseAsync, e.encode = (r, o) => ad(e, r, o), e.decode = (r, o) => ud(e, r, o), e.encodeAsync = async (r, o) => ld(e, r, o), e.decodeAsync = async (r, o) => cd(e, r, o), e.safeEncode = (r, o) => sd(e, r, o), e.safeDecode = (r, o) => dd(e, r, o), e.safeEncodeAsync = async (r, o) => fd(e, r, o), e.safeDecodeAsync = async (r, o) => md(e, r, o), e.refine = (r, o) => e.check(Po(r, o)), e.superRefine = (r) => e.check(No(r)), e.overwrite = (r) => e.check(/* @__PURE__ */ He(r)), e.optional = () => Zt(e), e.exactOptional = () => go(e), e.nullable = () => Ct(e), e.nullish = () => Zt(Ct(e)), e.nonoptional = (r) => ko(e, r), e.array = () => on(e), e.or = (r) => yr([e, r]), e.and = (r) => oo(e, r), e.transform = (r) => Mt(e, Sr(r)), e.default = (r) => bo(e, r), e.prefault = (r) => yo(e, r), e.catch = (r) => Io(e, r), e.pipe = (r) => Mt(e, r), e.readonly = () => Do(e), e.describe = (r) => { const o = e.clone(); return Ne.add(o, { description: r }), o; }, Object.defineProperty(e, "description", { get() { var r; return (r = Ne.get(e)) == null ? void 0 : r.description; }, configurable: !0 }), e.meta = (...r) => { if (r.length === 0) return Ne.get(e); const o = e.clone(); return Ne.add(o, r[0]), o; }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (r) => r(e), e)), tr = /* @__PURE__ */ v("_ZodString", (e, n) => { Kt.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => fs(e, o, t); const r = e._zod.bag; e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...o) => e.check(/* @__PURE__ */ Bn(...o)), e.includes = (...o) => e.check(/* @__PURE__ */ Vn(...o)), e.startsWith = (...o) => e.check(/* @__PURE__ */ Yn(...o)), e.endsWith = (...o) => e.check(/* @__PURE__ */ Kn(...o)), e.min = (...o) => e.check(/* @__PURE__ */ st(...o)), e.max = (...o) => e.check(/* @__PURE__ */ Wt(...o)), e.length = (...o) => e.check(/* @__PURE__ */ Ht(...o)), e.nonempty = (...o) => e.check(/* @__PURE__ */ st(1, ...o)), e.lowercase = (o) => e.check(/* @__PURE__ */ Jn(o)), e.uppercase = (o) => e.check(/* @__PURE__ */ qn(o)), e.trim = () => e.check(/* @__PURE__ */ Hn()), e.normalize = (...o) => e.check(/* @__PURE__ */ Wn(...o)), e.toLowerCase = () => e.check(/* @__PURE__ */ Xn()), e.toUpperCase = () => e.check(/* @__PURE__ */ Qn()), e.slugify = () => e.check(/* @__PURE__ */ er()); }), Qt = /* @__PURE__ */ v("ZodString", (e, n) => { Kt.init(e, n), tr.init(e, n), e.email = (r) => e.check(/* @__PURE__ */ mi(nr, r)), e.url = (r) => e.check(/* @__PURE__ */ Rn(en, r)), e.jwt = (r) => e.check(/* @__PURE__ */ Ti(hr, r)), e.emoji = (r) => e.check(/* @__PURE__ */ $i(rr, r)), e.guid = (r) => e.check(/* @__PURE__ */ Tn(At, r)), e.uuid = (r) => e.check(/* @__PURE__ */ vi(Je, r)), e.uuidv4 = (r) => e.check(/* @__PURE__ */ pi(Je, r)), e.uuidv6 = (r) => e.check(/* @__PURE__ */ gi(Je, r)), e.uuidv7 = (r) => e.check(/* @__PURE__ */ hi(Je, r)), e.nanoid = (r) => e.check(/* @__PURE__ */ bi(ir, r)), e.guid = (r) => e.check(/* @__PURE__ */ Tn(At, r)), e.cuid = (r) => e.check(/* @__PURE__ */ _i(or, r)), e.cuid2 = (r) => e.check(/* @__PURE__ */ yi(ar, r)), e.ulid = (r) => e.check(/* @__PURE__ */ ki(ur, r)), e.base64 = (r) => e.check(/* @__PURE__ */ Oi(vr, r)), e.base64url = (r) => e.check(/* @__PURE__ */ Ui(pr, r)), e.xid = (r) => e.check(/* @__PURE__ */ Si(lr, r)), e.ksuid = (r) => e.check(/* @__PURE__ */ wi(cr, r)), e.ipv4 = (r) => e.check(/* @__PURE__ */ Ii(sr, r)), e.ipv6 = (r) => e.check(/* @__PURE__ */ zi(dr, r)), e.cidrv4 = (r) => e.check(/* @__PURE__ */ xi(fr, r)), e.cidrv6 = (r) => e.check(/* @__PURE__ */ Di(mr, r)), e.e164 = (r) => e.check(/* @__PURE__ */ ji(gr, r)), e.datetime = (r) => e.check(Ws(r)), e.date = (r) => e.check(Hs(r)), e.time = (r) => e.check(Xs(r)), e.duration = (r) => e.check(Qs(r)); }); function En(e) { return /* @__PURE__ */ Ic(Qt, e); } const ae = /* @__PURE__ */ v("ZodStringFormat", (e, n) => { oe.init(e, n), tr.init(e, n); }), nr = /* @__PURE__ */ v("ZodEmail", (e, n) => { ul.init(e, n), ae.init(e, n); }); function vd(e) { return /* @__PURE__ */ mi(nr, e); } const At = /* @__PURE__ */ v("ZodGUID", (e, n) => { ol.init(e, n), ae.init(e, n); }); function pd(e) { return /* @__PURE__ */ Tn(At, e); } const Je = /* @__PURE__ */ v("ZodUUID", (e, n) => { al.init(e, n), ae.init(e, n); }); function gd(e) { return /* @__PURE__ */ vi(Je, e); } function hd(e) { return /* @__PURE__ */ pi(Je, e); } function $d(e) { return /* @__PURE__ */ gi(Je, e); } function bd(e) { return /* @__PURE__ */ hi(Je, e); } const en = /* @__PURE__ */ v("ZodURL", (e, n) => { ll.init(e, n), ae.init(e, n); }); function _d(e) { return /* @__PURE__ */ Rn(en, e); } function yd(e) { return /* @__PURE__ */ Rn(en, { protocol: /^https?$/, hostname: ku, ..._(e) }); } const rr = /* @__PURE__ */ v("ZodEmoji", (e, n) => { cl.init(e, n), ae.init(e, n); }); function kd(e) { return /* @__PURE__ */ $i(rr, e); } const ir = /* @__PURE__ */ v("ZodNanoID", (e, n) => { sl.init(e, n), ae.init(e, n); }); function Sd(e) { return /* @__PURE__ */ bi(ir, e); } const or = /* @__PURE__ */ v("ZodCUID", (e, n) => { dl.init(e, n), ae.init(e, n); }); function wd(e) { return /* @__PURE__ */ _i(or, e); } const ar = /* @__PURE__ */ v("ZodCUID2", (e, n) => { fl.init(e, n), ae.init(e, n); }); function Id(e) { return /* @__PURE__ */ yi(ar, e); } const ur = /* @__PURE__ */ v("ZodULID", (e, n) => { ml.init(e, n), ae.init(e, n); }); function zd(e) { return /* @__PURE__ */ ki(ur, e); } const lr = /* @__PURE__ */ v("ZodXID", (e, n) => { vl.init(e, n), ae.init(e, n); }); function xd(e) { return /* @__PURE__ */ Si(lr, e); } const cr = /* @__PURE__ */ v("ZodKSUID", (e, n) => { pl.init(e, n), ae.init(e, n); }); function Dd(e) { return /* @__PURE__ */ wi(cr, e); } const sr = /* @__PURE__ */ v("ZodIPv4", (e, n) => { _l.init(e, n), ae.init(e, n); }); function Od(e) { return /* @__PURE__ */ Ii(sr, e); } const Ji = /* @__PURE__ */ v("ZodMAC", (e, n) => { kl.init(e, n), ae.init(e, n); }); function Ud(e) { return /* @__PURE__ */ xc(Ji, e); } const dr = /* @__PURE__ */ v("ZodIPv6", (e, n) => { yl.init(e, n), ae.init(e, n); }); function jd(e) { return /* @__PURE__ */ zi(dr, e); } const fr = /* @__PURE__ */ v("ZodCIDRv4", (e, n) => { Sl.init(e, n), ae.init(e, n); }); function Td(e) { return /* @__PURE__ */ xi(fr, e); } const mr = /* @__PURE__ */ v("ZodCIDRv6", (e, n) => { wl.init(e, n), ae.init(e, n); }); function Ed(e) { return /* @__PURE__ */ Di(mr, e); } const vr = /* @__PURE__ */ v("ZodBase64", (e, n) => { Il.init(e, n), ae.init(e, n); }); function Pd(e) { return /* @__PURE__ */ Oi(vr, e); } const pr = /* @__PURE__ */ v("ZodBase64URL", (e, n) => { xl.init(e, n), ae.init(e, n); }); function Nd(e) { return /* @__PURE__ */ Ui(pr, e); } const gr = /* @__PURE__ */ v("ZodE164", (e, n) => { Dl.init(e, n), ae.init(e, n); }); function Ad(e) { return /* @__PURE__ */ ji(gr, e); } const hr = /* @__PURE__ */ v("ZodJWT", (e, n) => { Ul.init(e, n), ae.init(e, n); }); function Zd(e) { return /* @__PURE__ */ Ti(hr, e); } const Ot = /* @__PURE__ */ v("ZodCustomStringFormat", (e, n) => { jl.init(e, n), ae.init(e, n); }); function Cd(e, n, r = {}) { return /* @__PURE__ */ Xt(Ot, e, n, r); } function Md(e) { return /* @__PURE__ */ Xt(Ot, "hostname", yu, e); } function Fd(e) { return /* @__PURE__ */ Xt(Ot, "hex", Zu, e); } function Ld(e, n) { const r = (n == null ? void 0 : n.enc) ?? "hex", o = `${e}_${r}`, t = ni[o]; if (!t) throw new Error(`Unrecognized hash format: ${o}`); return /* @__PURE__ */ Xt(Ot, o, t, n); } const tn = /* @__PURE__ */ v("ZodNumber", (e, n) => { ai.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => ms(e, o, t), e.gt = (o, t) => e.check(/* @__PURE__ */ tt(o, t)), e.gte = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.min = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.lt = (o, t) => e.check(/* @__PURE__ */ et(o, t)), e.lte = (o, t) => e.check(/* @__PURE__ */ Ze(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Ze(o, t)), e.int = (o) => e.check(Pn(o)), e.safe = (o) => e.check(Pn(o)), e.positive = (o) => e.check(/* @__PURE__ */ tt(0, o)), e.nonnegative = (o) => e.check(/* @__PURE__ */ De(0, o)), e.negative = (o) => e.check(/* @__PURE__ */ et(0, o)), e.nonpositive = (o) => e.check(/* @__PURE__ */ Ze(0, o)), e.multipleOf = (o, t) => e.check(/* @__PURE__ */ _t(o, t)), e.step = (o, t) => e.check(/* @__PURE__ */ _t(o, t)), e.finite = () => e; const r = e._zod.bag; e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null; }); function qi(e) { return /* @__PURE__ */ Ec(tn, e); } const mt = /* @__PURE__ */ v("ZodNumberFormat", (e, n) => { Tl.init(e, n), tn.init(e, n); }); function Pn(e) { return /* @__PURE__ */ Nc(mt, e); } function Rd(e) { return /* @__PURE__ */ Ac(mt, e); } function Bd(e) { return /* @__PURE__ */ Zc(mt, e); } function Jd(e) { return /* @__PURE__ */ Cc(mt, e); } function qd(e) { return /* @__PURE__ */ Mc(mt, e); } const nn = /* @__PURE__ */ v("ZodBoolean", (e, n) => { ui.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => vs(e, r, o); }); function Vi(e) { return /* @__PURE__ */ Fc(nn, e); } const rn = /* @__PURE__ */ v("ZodBigInt", (e, n) => { li.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => ps(e, o), e.gte = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.min = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.gt = (o, t) => e.check(/* @__PURE__ */ tt(o, t)), e.gte = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.min = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.lt = (o, t) => e.check(/* @__PURE__ */ et(o, t)), e.lte = (o, t) => e.check(/* @__PURE__ */ Ze(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Ze(o, t)), e.positive = (o) => e.check(/* @__PURE__ */ tt(BigInt(0), o)), e.negative = (o) => e.check(/* @__PURE__ */ et(BigInt(0), o)), e.nonpositive = (o) => e.check(/* @__PURE__ */ Ze(BigInt(0), o)), e.nonnegative = (o) => e.check(/* @__PURE__ */ De(BigInt(0), o)), e.multipleOf = (o, t) => e.check(/* @__PURE__ */ _t(o, t)); const r = e._zod.bag; e.minValue = r.minimum ?? null, e.maxValue = r.maximum ?? null, e.format = r.format ?? null; }); function Vd(e) { return /* @__PURE__ */ Rc(rn, e); } const $r = /* @__PURE__ */ v("ZodBigIntFormat", (e, n) => { El.init(e, n), rn.init(e, n); }); function Yd(e) { return /* @__PURE__ */ Jc($r, e); } function Kd(e) { return /* @__PURE__ */ qc($r, e); } const Yi = /* @__PURE__ */ v("ZodSymbol", (e, n) => { Pl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => gs(e, r); }); function Gd(e) { return /* @__PURE__ */ Vc(Yi, e); } const Ki = /* @__PURE__ */ v("ZodUndefined", (e, n) => { Nl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => $s(e, r); }); function Wd(e) { return /* @__PURE__ */ Yc(Ki, e); } const Gi = /* @__PURE__ */ v("ZodNull", (e, n) => { Al.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => hs(e, r, o); }); function Wi(e) { return /* @__PURE__ */ Kc(Gi, e); } const Hi = /* @__PURE__ */ v("ZodAny", (e, n) => { Zl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => ys(); }); function Hd() { return /* @__PURE__ */ Gc(Hi); } const Xi = /* @__PURE__ */ v("ZodUnknown", (e, n) => { Cl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => ks(); }); function dt() { return /* @__PURE__ */ Wc(Xi); } const Qi = /* @__PURE__ */ v("ZodNever", (e, n) => { Ml.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => _s(e, r, o); }); function br(e) { return /* @__PURE__ */ Hc(Qi, e); } const eo = /* @__PURE__ */ v("ZodVoid", (e, n) => { Fl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => bs(e, r); }); function Xd(e) { return /* @__PURE__ */ Xc(eo, e); } const _r = /* @__PURE__ */ v("ZodDate", (e, n) => { Ll.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => Ss(e, o), e.min = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Ze(o, t)); const r = e._zod.bag; e.minDate = r.minimum ? new Date(r.minimum) : null, e.maxDate = r.maximum ? new Date(r.maximum) : null; }); function Qd(e) { return /* @__PURE__ */ Qc(_r, e); } const to = /* @__PURE__ */ v("ZodArray", (e, n) => { Rl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ns(e, r, o, t), e.element = n.element, e.min = (r, o) => e.check(/* @__PURE__ */ st(r, o)), e.nonempty = (r) => e.check(/* @__PURE__ */ st(1, r)), e.max = (r, o) => e.check(/* @__PURE__ */ Wt(r, o)), e.length = (r, o) => e.check(/* @__PURE__ */ Ht(r, o)), e.unwrap = () => e.element; }); function on(e, n) { return /* @__PURE__ */ ns(to, e, n); } function ef(e) { const n = e._zod.def.shape; return kr(Object.keys(n)); } const an = /* @__PURE__ */ v("ZodObject", (e, n) => { Vl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => As(e, r, o, t), G(e, "shape", () => n.shape), e.keyof = () => kr(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: dt() }), e.loose = () => e.clone({ ...e._zod.def, catchall: dt() }), e.strict = () => e.clone({ ...e._zod.def, catchall: br() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Ja(e, r), e.safeExtend = (r) => qa(e, r), e.merge = (r) => Va(e, r), e.pick = (r) => Ra(e, r), e.omit = (r) => Ba(e, r), e.partial = (...r) => Ya(wr, e, r[0]), e.required = (...r) => Ka(Ir, e, r[0]); }); function tf(e, n) { const r = { type: "object", shape: e ?? {}, ..._(n) }; return new an(r); } function nf(e, n) { return new an({ type: "object", shape: e, catchall: br(), ..._(n) }); } function rf(e, n) { return new an({ type: "object", shape: e, catchall: dt(), ..._(n) }); } const un = /* @__PURE__ */ v("ZodUnion", (e, n) => { Ln.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ci(e, r, o, t), e.options = n.options; }); function yr(e, n) { return new un({ type: "union", options: e, ..._(n) }); } const no = /* @__PURE__ */ v("ZodXor", (e, n) => { un.init(e, n), Yl.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ci(e, r, o, t), e.options = n.options; }); function of(e, n) { return new no({ type: "union", options: e, inclusive: !1, ..._(n) }); } const ro = /* @__PURE__ */ v("ZodDiscriminatedUnion", (e, n) => { un.init(e, n), Kl.init(e, n); }); function af(e, n, r) { return new ro({ type: "union", options: n, discriminator: e, ..._(r) }); } const io = /* @__PURE__ */ v("ZodIntersection", (e, n) => { Gl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Zs(e, r, o, t); }); function oo(e, n) { return new io({ type: "intersection", left: e, right: n }); } const ao = /* @__PURE__ */ v("ZodTuple", (e, n) => { ci.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Cs(e, r, o, t), e.rest = (r) => e.clone({ ...e._zod.def, rest: r }); }); function uo(e, n, r) { const o = n instanceof V, t = o ? r : n, i = o ? n : null; return new ao({ type: "tuple", items: e, rest: i, ..._(t) }); } const ln = /* @__PURE__ */ v("ZodRecord", (e, n) => { Wl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ms(e, r, o, t), e.keyType = n.keyType, e.valueType = n.valueType; }); function lo(e, n, r) { return new ln({ type: "record", keyType: e, valueType: n, ..._(r) }); } function uf(e, n, r) { const o = Me(e); return o._zod.values = void 0, new ln({ type: "record", keyType: o, valueType: n, ..._(r) }); } function lf(e, n, r) { return new ln({ type: "record", keyType: e, valueType: n, mode: "loose", ..._(r) }); } const co = /* @__PURE__ */ v("ZodMap", (e, n) => { Hl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Es(e, r), e.keyType = n.keyType, e.valueType = n.valueType, e.min = (...r) => e.check(/* @__PURE__ */ nt(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ nt(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ Dt(...r)), e.size = (...r) => e.check(/* @__PURE__ */ Gt(...r)); }); function cf(e, n, r) { return new co({ type: "map", keyType: e, valueType: n, ..._(r) }); } const so = /* @__PURE__ */ v("ZodSet", (e, n) => { Xl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ps(e, r), e.min = (...r) => e.check(/* @__PURE__ */ nt(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ nt(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ Dt(...r)), e.size = (...r) => e.check(/* @__PURE__ */ Gt(...r)); }); function sf(e, n) { return new so({ type: "set", valueType: e, ..._(n) }); } const wt = /* @__PURE__ */ v("ZodEnum", (e, n) => { Ql.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => ws(e, o, t), e.enum = n.entries, e.options = Object.values(n.entries); const r = new Set(Object.keys(n.entries)); e.extract = (o, t) => { const i = {}; for (const a of o) if (r.has(a)) i[a] = n.entries[a]; else throw new Error(`Key ${a} not found in enum`); return new wt({ ...n, checks: [], ..._(t), entries: i }); }, e.exclude = (o, t) => { const i = { ...n.entries }; for (const a of o) if (r.has(a)) delete i[a]; else throw new Error(`Key ${a} not found in enum`); return new wt({ ...n, checks: [], ..._(t), entries: i }); }; }); function kr(e, n) { const r = Array.isArray(e) ? Object.fromEntries(e.map((o) => [o, o])) : e; return new wt({ type: "enum", entries: r, ..._(n) }); } function df(e, n) { return new wt({ type: "enum", entries: e, ..._(n) }); } const fo = /* @__PURE__ */ v("ZodLiteral", (e, n) => { ec.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Is(e, r, o), e.values = new Set(n.values), Object.defineProperty(e, "value", { get() { if (n.values.length > 1) throw new Error("This schema contains multiple valid literal values. Use `.values` instead."); return n.values[0]; } }); }); function ff(e, n) { return new fo({ type: "literal", values: Array.isArray(e) ? e : [e], ..._(n) }); } const mo = /* @__PURE__ */ v("ZodFile", (e, n) => { tc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ds(e, r, o), e.min = (r, o) => e.check(/* @__PURE__ */ nt(r, o)), e.max = (r, o) => e.check(/* @__PURE__ */ Dt(r, o)), e.mime = (r, o) => e.check(/* @__PURE__ */ Gn(Array.isArray(r) ? r : [r], o)); }); function mf(e) { return /* @__PURE__ */ rs(mo, e); } const vo = /* @__PURE__ */ v("ZodTransform", (e, n) => { nc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ts(e, r), e._zod.parse = (r, o) => { if (o.direction === "backward") throw new An(e.constructor.name); r.addIssue = (i) => { if (typeof i == "string") r.issues.push($t(i, r.value, n)); else { const a = i; a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = r.value), a.inst ?? (a.inst = e), r.issues.push($t(a)); } }; const t = n.transform(r.value, r); return t instanceof Promise ? t.then((i) => (r.value = i, r)) : (r.value = t, r); }; }); function Sr(e) { return new vo({ type: "transform", transform: e }); } const wr = /* @__PURE__ */ v("ZodOptional", (e, n) => { si.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Mi(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function Zt(e) { return new wr({ type: "optional", innerType: e }); } const po = /* @__PURE__ */ v("ZodExactOptional", (e, n) => { rc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Mi(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function go(e) { return new po({ type: "optional", innerType: e }); } const ho = /* @__PURE__ */ v("ZodNullable", (e, n) => { ic.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Fs(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function Ct(e) { return new ho({ type: "nullable", innerType: e }); } function vf(e) { return Zt(Ct(e)); } const $o = /* @__PURE__ */ v("ZodDefault", (e, n) => { oc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Rs(e, r, o, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap; }); function bo(e, n) { return new $o({ type: "default", innerType: e, get defaultValue() { return typeof n == "function" ? n() : Cn(n); } }); } const _o = /* @__PURE__ */ v("ZodPrefault", (e, n) => { ac.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Bs(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function yo(e, n) { return new _o({ type: "prefault", innerType: e, get defaultValue() { return typeof n == "function" ? n() : Cn(n); } }); } const Ir = /* @__PURE__ */ v("ZodNonOptional", (e, n) => { uc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ls(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function ko(e, n) { return new Ir({ type: "nonoptional", innerType: e, ..._(n) }); } const So = /* @__PURE__ */ v("ZodSuccess", (e, n) => { lc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Os(e, r, o), e.unwrap = () => e._zod.def.innerType; }); function pf(e) { return new So({ type: "success", innerType: e }); } const wo = /* @__PURE__ */ v("ZodCatch", (e, n) => { cc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Js(e, r, o, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap; }); function Io(e, n) { return new wo({ type: "catch", innerType: e, catchValue: typeof n == "function" ? n : () => n }); } const zo = /* @__PURE__ */ v("ZodNaN", (e, n) => { sc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => zs(e, r); }); function gf(e) { return /* @__PURE__ */ ts(zo, e); } const zr = /* @__PURE__ */ v("ZodPipe", (e, n) => { dc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => qs(e, r, o, t), e.in = n.in, e.out = n.out; }); function Mt(e, n) { return new zr({ type: "pipe", in: e, out: n // ...util.normalizeParams(params), }); } const xr = /* @__PURE__ */ v("ZodCodec", (e, n) => { zr.init(e, n), di.init(e, n); }); function hf(e, n, r) { return new xr({ type: "pipe", in: e, out: n, transform: r.decode, reverseTransform: r.encode }); } const xo = /* @__PURE__ */ v("ZodReadonly", (e, n) => { fc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Vs(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function Do(e) { return new xo({ type: "readonly", innerType: e }); } const Oo = /* @__PURE__ */ v("ZodTemplateLiteral", (e, n) => { mc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => xs(e, r, o); }); function $f(e, n) { return new Oo({ type: "template_literal", parts: e, ..._(n) }); } const Uo = /* @__PURE__ */ v("ZodLazy", (e, n) => { gc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ks(e, r, o, t), e.unwrap = () => e._zod.def.getter(); }); function jo(e) { return new Uo({ type: "lazy", getter: e }); } const To = /* @__PURE__ */ v("ZodPromise", (e, n) => { pc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ys(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function bf(e) { return new To({ type: "promise", innerType: e }); } const Eo = /* @__PURE__ */ v("ZodFunction", (e, n) => { vc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => js(e, r); }); function Nn(e) { return new Eo({ type: "function", input: Array.isArray(e == null ? void 0 : e.input) ? uo(e == null ? void 0 : e.input) : (e == null ? void 0 : e.input) ?? on(dt()), output: (e == null ? void 0 : e.output) ?? dt() }); } const cn = /* @__PURE__ */ v("ZodCustom", (e, n) => { hc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Us(e, r); }); function _f(e) { const n = new se({ check: "custom" // ...util.normalizeParams(params), }); return n._zod.check = e, n; } function yf(e, n) { return /* @__PURE__ */ is(cn, e ?? (() => !0), n); } function Po(e, n = {}) { return /* @__PURE__ */ os(cn, e, n); } function No(e) { return /* @__PURE__ */ as(e); } const kf = ls, Sf = cs; function wf(e, n = {}) { const r = new cn({ type: "custom", check: "custom", fn: (o) => o instanceof e, abort: !0, ..._(n) }); return r._zod.bag.Class = e, r._zod.check = (o) => { o.value instanceof e || o.issues.push({ code: "invalid_type", expected: e.name, input: o.value, inst: r, path: [...r._zod.def.path ?? []] }); }, r; } const If = (...e) => /* @__PURE__ */ ss({ Codec: xr, Boolean: nn, String: Qt }, ...e); function zf(e) { const n = jo(() => yr([En(e), qi(), Vi(), Wi(), on(n), lo(En(), n)])); return n; } function xf(e, n) { return Mt(Sr(e), n); } const p$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ZodAny: Hi, ZodArray: to, ZodBase64: vr, ZodBase64URL: pr, ZodBigInt: rn, ZodBigIntFormat: $r, ZodBoolean: nn, ZodCIDRv4: fr, ZodCIDRv6: mr, ZodCUID: or, ZodCUID2: ar, ZodCatch: wo, ZodCodec: xr, ZodCustom: cn, ZodCustomStringFormat: Ot, ZodDate: _r, ZodDefault: $o, ZodDiscriminatedUnion: ro, ZodE164: gr, ZodEmail: nr, ZodEmoji: rr, ZodEnum: wt, ZodExactOptional: po, ZodFile: mo, ZodFunction: Eo, ZodGUID: At, ZodIPv4: sr, ZodIPv6: dr, ZodIntersection: io, ZodJWT: hr, ZodKSUID: cr, ZodLazy: Uo, ZodLiteral: fo, ZodMAC: Ji, ZodMap: co, ZodNaN: zo, ZodNanoID: ir, ZodNever: Qi, ZodNonOptional: Ir, ZodNull: Gi, ZodNullable: ho, ZodNumber: tn, ZodNumberFormat: mt, ZodObject: an, ZodOptional: wr, ZodPipe: zr, ZodPrefault: _o, ZodPromise: To, ZodReadonly: xo, ZodRecord: ln, ZodSet: so, ZodString: Qt, ZodStringFormat: ae, ZodSuccess: So, ZodSymbol: Yi, ZodTemplateLiteral: Oo, ZodTransform: vo, ZodTuple: ao, ZodType: K, ZodULID: ur, ZodURL: en, ZodUUID: Je, ZodUndefined: Ki, ZodUnion: un, ZodUnknown: Xi, ZodVoid: eo, ZodXID: lr, ZodXor: no, _ZodString: tr, _default: bo, _function: Nn, any: Hd, array: on, base64: Pd, base64url: Nd, bigint: Vd, boolean: Vi, catch: Io, check: _f, cidrv4: Td, cidrv6: Ed, codec: hf, cuid: wd, cuid2: Id, custom: yf, date: Qd, describe: kf, discriminatedUnion: af, e164: Ad, email: vd, emoji: kd, enum: kr, exactOptional: go, file: mf, float32: Rd, float64: Bd, function: Nn, guid: pd, hash: Ld, hex: Fd, hostname: Md, httpUrl: yd, instanceof: wf, int: Pn, int32: Jd, int64: Yd, intersection: oo, ipv4: Od, ipv6: jd, json: zf, jwt: Zd, keyof: ef, ksuid: Dd, lazy: jo, literal: ff, looseObject: rf, looseRecord: lf, mac: Ud, map: cf, meta: Sf, nan: gf, nanoid: Sd, nativeEnum: df, never: br, nonoptional: ko, null: Wi, nullable: Ct, nullish: vf, number: qi, object: tf, optional: Zt, partialRecord: uf, pipe: Mt, prefault: yo, preprocess: xf, promise: bf, readonly: Do, record: lo, refine: Po, set: sf, strictObject: nf, string: En, stringFormat: Cd, stringbool: If, success: pf, superRefine: No, symbol: Gd, templateLiteral: $f, transform: Sr, tuple: uo, uint32: qd, uint64: Kd, ulid: zd, undefined: Wd, union: yr, unknown: dt, url: _d, uuid: gd, uuidv4: hd, uuidv6: $d, uuidv7: bd, void: Xd, xid: xd, xor: of }, Symbol.toStringTag, { value: "Module" })), g$ = { invalid_type: "invalid_type", too_big: "too_big", too_small: "too_small", invalid_format: "invalid_format", not_multiple_of: "not_multiple_of", unrecognized_keys: "unrecognized_keys", invalid_union: "invalid_union", invalid_key: "invalid_key", invalid_element: "invalid_element", invalid_value: "invalid_value", custom: "custom" }; function h$(e) { we({ customError: e }); } function $$() { return we().customError; } var Zr; Zr || (Zr = {}); const U = { ...p$, ...m$, iso: ed }, b$ = /* @__PURE__ */ new Set([ // Schema identification "$schema", "$ref", "$defs", "definitions", // Core schema keywords "$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor", // Type "type", "enum", "const", // Composition "anyOf", "oneOf", "allOf", "not", // Object "properties", "required", "additionalProperties", "patternProperties", "propertyNames", "minProperties", "maxProperties", // Array "items", "prefixItems", "additionalItems", "minItems", "maxItems", "uniqueItems", "contains", "minContains", "maxContains", // String "minLength", "maxLength", "pattern", "format", // Number "minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum", "multipleOf", // Already handled metadata "description", "default", // Content "contentEncoding", "contentMediaType", "contentSchema", // Unsupported (error-throwing) "unevaluatedItems", "unevaluatedProperties", "if", "then", "else", "dependentSchemas", "dependentRequired", // OpenAPI "nullable", "readOnly" ]); function _$(e, n) { const r = e.$schema; return r === "https://json-schema.org/draft/2020-12/schema" ? "draft-2020-12" : r === "http://json-schema.org/draft-07/schema#" ? "draft-7" : r === "http://json-schema.org/draft-04/schema#" ? "draft-4" : n ?? "draft-2020-12"; } function y$(e, n) { if (!e.startsWith("#")) throw new Error("External $ref is not supported, only local refs (#/...) are allowed"); const r = e.slice(1).split("/").filter(Boolean); if (r.length === 0) return n.rootSchema; const o = n.version === "draft-2020-12" ? "$defs" : "definitions"; if (r[0] === o) { const t = r[1]; if (!t || !n.defs[t]) throw new Error(`Reference not found: ${e}`); return n.defs[t]; } throw new Error(`Reference not found: ${e}`); } function Df(e, n) { if (e.not !== void 0) { if (typeof e.not == "object" && Object.keys(e.not).length === 0) return U.never(); throw new Error("not is not supported in Zod (except { not: {} } for never)"); } if (e.unevaluatedItems !== void 0) throw new Error("unevaluatedItems is not supported"); if (e.unevaluatedProperties !== void 0) throw new Error("unevaluatedProperties is not supported"); if (e.if !== void 0 || e.then !== void 0 || e.else !== void 0) throw new Error("Conditional schemas (if/then/else) are not supported"); if (e.dependentSchemas !== void 0 || e.dependentRequired !== void 0) throw new Error("dependentSchemas and dependentRequired are not supported"); if (e.$ref) { const t = e.$ref; if (n.refs.has(t)) return n.refs.get(t); if (n.processing.has(t)) return U.lazy(() => { if (!n.refs.has(t)) throw new Error(`Circular reference not resolved: ${t}`); return n.refs.get(t); }); n.processing.add(t); const i = y$(t, n), a = ke(i, n); return n.refs.set(t, a), n.processing.delete(t), a; } if (e.enum !== void 0) { const t = e.enum; if (n.version === "openapi-3.0" && e.nullable === !0 && t.length === 1 && t[0] === null) return U.null(); if (t.length === 0) return U.never(); if (t.length === 1) return U.literal(t[0]); if (t.every((a) => typeof a == "string")) return U.enum(t); const i = t.map((a) => U.literal(a)); return i.length < 2 ? i[0] : U.union([i[0], i[1], ...i.slice(2)]); } if (e.const !== void 0) return U.literal(e.const); const r = e.type; if (Array.isArray(r)) { const t = r.map((i) => { const a = { ...e, type: i }; return Df(a, n); }); return t.length === 0 ? U.never() : t.length === 1 ? t[0] : U.union(t); } if (!r) return U.any(); let o; switch (r) { case "string": { let t = U.string(); if (e.format) { const i = e.format; i === "email" ? t = t.check(U.email()) : i === "uri" || i === "uri-reference" ? t = t.check(U.url()) : i === "uuid" || i === "guid" ? t = t.check(U.uuid()) : i === "date-time" ? t = t.check(U.iso.datetime()) : i === "date" ? t = t.check(U.iso.date()) : i === "time" ? t = t.check(U.iso.time()) : i === "duration" ? t = t.check(U.iso.duration()) : i === "ipv4" ? t = t.check(U.ipv4()) : i === "ipv6" ? t = t.check(U.ipv6()) : i === "mac" ? t = t.check(U.mac()) : i === "cidr" ? t = t.check(U.cidrv4()) : i === "cidr-v6" ? t = t.check(U.cidrv6()) : i === "base64" ? t = t.check(U.base64()) : i === "base64url" ? t = t.check(U.base64url()) : i === "e164" ? t = t.check(U.e164()) : i === "jwt" ? t = t.check(U.jwt()) : i === "emoji" ? t = t.check(U.emoji()) : i === "nanoid" ? t = t.check(U.nanoid()) : i === "cuid" ? t = t.check(U.cuid()) : i === "cuid2" ? t = t.check(U.cuid2()) : i === "ulid" ? t = t.check(U.ulid()) : i === "xid" ? t = t.check(U.xid()) : i === "ksuid" && (t = t.check(U.ksuid())); } typeof e.minLength == "number" && (t = t.min(e.minLength)), typeof e.maxLength == "number" && (t = t.max(e.maxLength)), e.pattern && (t = t.regex(new RegExp(e.pattern))), o = t; break; } case "number": case "integer": { let t = r === "integer" ? U.number().int() : U.number(); typeof e.minimum == "number" && (t = t.min(e.minimum)), typeof e.maximum == "number" && (t = t.max(e.maximum)), typeof e.exclusiveMinimum == "number" ? t = t.gt(e.exclusiveMinimum) : e.exclusiveMinimum === !0 && typeof e.minimum == "number" && (t = t.gt(e.minimum)), typeof e.exclusiveMaximum == "number" ? t = t.lt(e.exclusiveMaximum) : e.exclusiveMaximum === !0 && typeof e.maximum == "number" && (t = t.lt(e.maximum)), typeof e.multipleOf == "number" && (t = t.multipleOf(e.multipleOf)), o = t; break; } case "boolean": { o = U.boolean(); break; } case "null": { o = U.null(); break; } case "object": { const t = {}, i = e.properties || {}, a = new Set(e.required || []); for (const [c, l] of Object.entries(i)) { const d = ke(l, n); t[c] = a.has(c) ? d : d.optional(); } if (e.propertyNames) { const c = ke(e.propertyNames, n), l = e.additionalProperties && typeof e.additionalProperties == "object" ? ke(e.additionalProperties, n) : U.any(); if (Object.keys(t).length === 0) { o = U.record(c, l); break; } const d = U.object(t).passthrough(), s = U.looseRecord(c, l); o = U.intersection(d, s); break; } if (e.patternProperties) { const c = e.patternProperties, l = Object.keys(c), d = []; for (const p of l) { const $ = ke(c[p], n), g = U.string().regex(new RegExp(p)); d.push(U.looseRecord(g, $)); } const s = []; if (Object.keys(t).length > 0 && s.push(U.object(t).passthrough()), s.push(...d), s.length === 0) o = U.object({}).passthrough(); else if (s.length === 1) o = s[0]; else { let p = U.intersection(s[0], s[1]); for (let $ = 2; $ < s.length; $++) p = U.intersection(p, s[$]); o = p; } break; } const u = U.object(t); e.additionalProperties === !1 ? o = u.strict() : typeof e.additionalProperties == "object" ? o = u.catchall(ke(e.additionalProperties, n)) : o = u.passthrough(); break; } case "array": { const t = e.prefixItems, i = e.items; if (t && Array.isArray(t)) { const a = t.map((c) => ke(c, n)), u = i && typeof i == "object" && !Array.isArray(i) ? ke(i, n) : void 0; u ? o = U.tuple(a).rest(u) : o = U.tuple(a), typeof e.minItems == "number" && (o = o.check(U.minLength(e.minItems))), typeof e.maxItems == "number" && (o = o.check(U.maxLength(e.maxItems))); } else if (Array.isArray(i)) { const a = i.map((c) => ke(c, n)), u = e.additionalItems && typeof e.additionalItems == "object" ? ke(e.additionalItems, n) : void 0; u ? o = U.tuple(a).rest(u) : o = U.tuple(a), typeof e.minItems == "number" && (o = o.check(U.minLength(e.minItems))), typeof e.maxItems == "number" && (o = o.check(U.maxLength(e.maxItems))); } else if (i !== void 0) { const a = ke(i, n); let u = U.array(a); typeof e.minItems == "number" && (u = u.min(e.minItems)), typeof e.maxItems == "number" && (u = u.max(e.maxItems)), o = u; } else o = U.array(U.any()); break; } default: throw new Error(`Unsupported type: ${r}`); } return e.description && (o = o.describe(e.description)), e.default !== void 0 && (o = o.default(e.default)), o; } function ke(e, n) { if (typeof e == "boolean") return e ? U.any() : U.never(); let r = Df(e, n); const o = e.type || e.enum !== void 0 || e.const !== void 0; if (e.anyOf && Array.isArray(e.anyOf)) { const u = e.anyOf.map((l) => ke(l, n)), c = U.union(u); r = o ? U.intersection(r, c) : c; } if (e.oneOf && Array.isArray(e.oneOf)) { const u = e.oneOf.map((l) => ke(l, n)), c = U.xor(u); r = o ? U.intersection(r, c) : c; } if (e.allOf && Array.isArray(e.allOf)) if (e.allOf.length === 0) r = o ? r : U.any(); else { let u = o ? r : ke(e.allOf[0], n); const c = o ? 0 : 1; for (let l = c; l < e.allOf.length; l++) u = U.intersection(u, ke(e.allOf[l], n)); r = u; } e.nullable === !0 && n.version === "openapi-3.0" && (r = U.nullable(r)), e.readOnly === !0 && (r = U.readonly(r)); const t = {}, i = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"]; for (const u of i) u in e && (t[u] = e[u]); const a = ["contentEncoding", "contentMediaType", "contentSchema"]; for (const u of a) u in e && (t[u] = e[u]); for (const u of Object.keys(e)) b$.has(u) || (t[u] = e[u]); return Object.keys(t).length > 0 && n.registry.add(r, t), r; } function k$(e, n) { if (typeof e == "boolean") return e ? U.any() : U.never(); const r = _$(e, n == null ? void 0 : n.defaultTarget), o = e.$defs || e.definitions || {}, t = { version: r, defs: o, refs: /* @__PURE__ */ new Map(), processing: /* @__PURE__ */ new Set(), rootSchema: e, registry: (n == null ? void 0 : n.registry) ?? Ne }; return ke(e, t); } function S$(e) { return /* @__PURE__ */ zc(Qt, e); } function w$(e) { return /* @__PURE__ */ Pc(tn, e); } function I$(e) { return /* @__PURE__ */ Lc(nn, e); } function z$(e) { return /* @__PURE__ */ Bc(rn, e); } function x$(e) { return /* @__PURE__ */ es(_r, e); } const D$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, bigint: z$, boolean: I$, date: x$, number: w$, string: S$ }, Symbol.toStringTag, { value: "Module" })); we($c()); const Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, $brand: Pa, $input: Sc, $output: kc, NEVER: Ea, TimePrecision: Dc, ZodAny: Hi, ZodArray: to, ZodBase64: vr, ZodBase64URL: pr, ZodBigInt: rn, ZodBigIntFormat: $r, ZodBoolean: nn, ZodCIDRv4: fr, ZodCIDRv6: mr, ZodCUID: or, ZodCUID2: ar, ZodCatch: wo, ZodCodec: xr, ZodCustom: cn, ZodCustomStringFormat: Ot, ZodDate: _r, ZodDefault: $o, ZodDiscriminatedUnion: ro, ZodE164: gr, ZodEmail: nr, ZodEmoji: rr, ZodEnum: wt, ZodError: v$, ZodExactOptional: po, ZodFile: mo, get ZodFirstPartyTypeKind() { return Zr; }, ZodFunction: Eo, ZodGUID: At, ZodIPv4: sr, ZodIPv6: dr, ZodISODate: Li, ZodISODateTime: Fi, ZodISODuration: Bi, ZodISOTime: Ri, ZodIntersection: io, ZodIssueCode: g$, ZodJWT: hr, ZodKSUID: cr, ZodLazy: Uo, ZodLiteral: fo, ZodMAC: Ji, ZodMap: co, ZodNaN: zo, ZodNanoID: ir, ZodNever: Qi, ZodNonOptional: Ir, ZodNull: Gi, ZodNullable: ho, ZodNumber: tn, ZodNumberFormat: mt, ZodObject: an, ZodOptional: wr, ZodPipe: zr, ZodPrefault: _o, ZodPromise: To, ZodReadonly: xo, ZodRealError: je, ZodRecord: ln, ZodSet: so, ZodString: Qt, ZodStringFormat: ae, ZodSuccess: So, ZodSymbol: Yi, ZodTemplateLiteral: Oo, ZodTransform: vo, ZodTuple: ao, ZodType: K, ZodULID: ur, ZodURL: en, ZodUUID: Je, ZodUndefined: Ki, ZodUnion: un, ZodUnknown: Xi, ZodVoid: eo, ZodXID: lr, ZodXor: no, _ZodString: tr, _default: bo, _function: Nn, any: Hd, array: on, base64: Pd, base64url: Nd, bigint: Vd, boolean: Vi, catch: Io, check: _f, cidrv4: Td, cidrv6: Ed, clone: Me, codec: hf, coerce: D$, config: we, core: f$, cuid: wd, cuid2: Id, custom: yf, date: Qd, decode: ud, decodeAsync: cd, describe: kf, discriminatedUnion: af, e164: Ad, email: vd, emoji: kd, encode: ad, encodeAsync: ld, endsWith: Kn, enum: kr, exactOptional: go, file: mf, flattenError: Jr, float32: Rd, float64: Bd, formatError: qr, fromJSONSchema: k$, function: Nn, getErrorMap: $$, globalRegistry: Ne, gt: tt, gte: De, guid: pd, hash: Ld, hex: Fd, hostname: Md, httpUrl: yd, includes: Vn, instanceof: wf, int: Pn, int32: Jd, int64: Yd, intersection: oo, ipv4: Od, ipv6: jd, iso: ed, json: zf, jwt: Zd, keyof: ef, ksuid: Dd, lazy: jo, length: Ht, literal: ff, locales: yc, looseObject: rf, looseRecord: lf, lowercase: Jn, lt: et, lte: Ze, mac: Ud, map: cf, maxLength: Wt, maxSize: Dt, meta: Sf, mime: Gn, minLength: st, minSize: nt, multipleOf: _t, nan: gf, nanoid: Sd, nativeEnum: df, negative: Pi, never: br, nonnegative: Ai, nonoptional: ko, nonpositive: Ni, normalize: Wn, null: Wi, nullable: Ct, nullish: vf, number: qi, object: tf, optional: Zt, overwrite: He, parse: nd, parseAsync: rd, partialRecord: uf, pipe: Mt, positive: Ei, prefault: yo, preprocess: xf, prettifyError: tu, promise: bf, property: Zi, readonly: Do, record: lo, refine: Po, regex: Bn, regexes: ni, registry: fi, safeDecode: dd, safeDecodeAsync: md, safeEncode: sd, safeEncodeAsync: fd, safeParse: id, safeParseAsync: od, set: sf, setErrorMap: h$, size: Gt, slugify: er, startsWith: Yn, strictObject: nf, string: En, stringFormat: Cd, stringbool: If, success: pf, superRefine: No, symbol: Gd, templateLiteral: $f, toJSONSchema: Gs, toLowerCase: Xn, toUpperCase: Qn, transform: Sr, treeifyError: Qa, trim: Hn, tuple: uo, uint32: qd, uint64: Kd, ulid: zd, undefined: Wd, union: yr, unknown: dt, uppercase: qn, url: _d, util: Ha, uuid: gd, uuidv4: hd, uuidv6: $d, uuidv7: bd, void: Xd, xid: xd, xor: of }, Symbol.toStringTag, { value: "Module" })); var pn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function Xe(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var $n = { exports: {} }, O$ = $n.exports, fa; function Of() { return fa || (fa = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(O$, (function() { var r = 1e3, o = 6e4, t = 36e5, i = "millisecond", a = "second", u = "minute", c = "hour", l = "day", d = "week", s = "month", p = "quarter", $ = "year", g = "date", m = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, z = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(A) { var f = ["th", "st", "nd", "rd"], h = A % 100; return "[" + A + (f[(h - 20) % 10] || f[h] || f[0]) + "]"; } }, q = function(A, f, h) { var w = String(A); return !w || w.length >= f ? A : "" + Array(f + 1 - w.length).join(h) + A; }, Y = { s: q, z: function(A) { var f = -A.utcOffset(), h = Math.abs(f), w = Math.floor(h / 60), k = h % 60; return (f <= 0 ? "+" : "-") + q(w, 2, "0") + ":" + q(k, 2, "0"); }, m: function A(f, h) { if (f.date() < h.date()) return -A(h, f); var w = 12 * (h.year() - f.year()) + (h.month() - f.month()), k = f.clone().add(w, s), E = h - k < 0, x = f.clone().add(w + (E ? -1 : 1), s); return +(-(w + (h - k) / (E ? k - x : x - k)) || 0); }, a: function(A) { return A < 0 ? Math.ceil(A) || 0 : Math.floor(A); }, p: function(A) { return { M: s, y: $, w: d, d: l, D: g, h: c, m: u, s: a, ms: i, Q: p }[A] || String(A || "").toLowerCase().replace(/s$/, ""); }, u: function(A) { return A === void 0; } }, C = "en", T = {}; T[C] = z; var O = "$isDayjsObject", S = function(A) { return A instanceof X || !(!A || !A[O]); }, F = function A(f, h, w) { var k; if (!f) return C; if (typeof f == "string") { var E = f.toLowerCase(); T[E] && (k = E), h && (T[E] = h, k = E); var x = f.split("-"); if (!k && x.length > 1) return A(x[0]); } else { var Q = f.name; T[Q] = f, k = Q; } return !w && k && (C = k), k || !w && C; }, M = function(A, f) { if (S(A)) return A.clone(); var h = typeof f == "object" ? f : {}; return h.date = A, h.args = arguments, new X(h); }, P = Y; P.l = F, P.i = S, P.w = function(A, f) { return M(A, { locale: f.$L, utc: f.$u, x: f.$x, $offset: f.$offset }); }; var X = (function() { function A(h) { this.$L = F(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[O] = !0; } var f = A.prototype; return f.parse = function(h) { this.$d = (function(w) { var k = w.date, E = w.utc; if (k === null) return /* @__PURE__ */ new Date(NaN); if (P.u(k)) return /* @__PURE__ */ new Date(); if (k instanceof Date) return new Date(k); if (typeof k == "string" && !/Z$/i.test(k)) { var x = k.match(y); if (x) { var Q = x[2] - 1 || 0, re = (x[7] || "0").substring(0, 3); return E ? new Date(Date.UTC(x[1], Q, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, re)) : new Date(x[1], Q, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, re); } } return new Date(k); })(h), this.init(); }, f.init = function() { var h = this.$d; this.$y = h.getFullYear(), this.$M = h.getMonth(), this.$D = h.getDate(), this.$W = h.getDay(), this.$H = h.getHours(), this.$m = h.getMinutes(), this.$s = h.getSeconds(), this.$ms = h.getMilliseconds(); }, f.$utils = function() { return P; }, f.isValid = function() { return this.$d.toString() !== m; }, f.isSame = function(h, w) { var k = M(h); return this.startOf(w) <= k && k <= this.endOf(w); }, f.isAfter = function(h, w) { return M(h) < this.startOf(w); }, f.isBefore = function(h, w) { return this.endOf(w) < M(h); }, f.$g = function(h, w, k) { return P.u(h) ? this[w] : this.set(k, h); }, f.unix = function() { return Math.floor(this.valueOf() / 1e3); }, f.valueOf = function() { return this.$d.getTime(); }, f.startOf = function(h, w) { var k = this, E = !!P.u(w) || w, x = P.p(h), Q = function(Ke, ge) { var Fe = P.w(k.$u ? Date.UTC(k.$y, ge, Ke) : new Date(k.$y, ge, Ke), k); return E ? Fe : Fe.endOf(l); }, re = function(Ke, ge) { return P.w(k.toDate()[Ke].apply(k.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ge)), k); }, de = this.$W, H = this.$M, le = this.$D, Ve = "set" + (this.$u ? "UTC" : ""); switch (x) { case $: return E ? Q(1, 0) : Q(31, 11); case s: return E ? Q(1, H) : Q(0, H + 1); case d: var Ye = this.$locale().weekStart || 0, it = (de < Ye ? de + 7 : de) - Ye; return Q(E ? le - it : le + (6 - it), H); case l: case g: return re(Ve + "Hours", 0); case c: return re(Ve + "Minutes", 1); case u: return re(Ve + "Seconds", 2); case a: return re(Ve + "Milliseconds", 3); default: return this.clone(); } }, f.endOf = function(h) { return this.startOf(h, !1); }, f.$set = function(h, w) { var k, E = P.p(h), x = "set" + (this.$u ? "UTC" : ""), Q = (k = {}, k[l] = x + "Date", k[g] = x + "Date", k[s] = x + "Month", k[$] = x + "FullYear", k[c] = x + "Hours", k[u] = x + "Minutes", k[a] = x + "Seconds", k[i] = x + "Milliseconds", k)[E], re = E === l ? this.$D + (w - this.$W) : w; if (E === s || E === $) { var de = this.clone().set(g, 1); de.$d[Q](re), de.init(), this.$d = de.set(g, Math.min(this.$D, de.daysInMonth())).$d; } else Q && this.$d[Q](re); return this.init(), this; }, f.set = function(h, w) { return this.clone().$set(h, w); }, f.get = function(h) { return this[P.p(h)](); }, f.add = function(h, w) { var k, E = this; h = Number(h); var x = P.p(w), Q = function(H) { var le = M(E); return P.w(le.date(le.date() + Math.round(H * h)), E); }; if (x === s) return this.set(s, this.$M + h); if (x === $) return this.set($, this.$y + h); if (x === l) return Q(1); if (x === d) return Q(7); var re = (k = {}, k[u] = o, k[c] = t, k[a] = r, k)[x] || 1, de = this.$d.getTime() + h * re; return P.w(de, this); }, f.subtract = function(h, w) { return this.add(-1 * h, w); }, f.format = function(h) { var w = this, k = this.$locale(); if (!this.isValid()) return k.invalidDate || m; var E = h || "YYYY-MM-DDTHH:mm:ssZ", x = P.z(this), Q = this.$H, re = this.$m, de = this.$M, H = k.weekdays, le = k.months, Ve = k.meridiem, Ye = function(ge, Fe, Qe, vt) { return ge && (ge[Fe] || ge(w, E)) || Qe[Fe].slice(0, vt); }, it = function(ge) { return P.s(Q % 12 || 12, ge, "0"); }, Ke = Ve || function(ge, Fe, Qe) { var vt = ge < 12 ? "AM" : "PM"; return Qe ? vt.toLowerCase() : vt; }; return E.replace(b, (function(ge, Fe) { return Fe || (function(Qe) { switch (Qe) { case "YY": return String(w.$y).slice(-2); case "YYYY": return P.s(w.$y, 4, "0"); case "M": return de + 1; case "MM": return P.s(de + 1, 2, "0"); case "MMM": return Ye(k.monthsShort, de, le, 3); case "MMMM": return Ye(le, de); case "D": return w.$D; case "DD": return P.s(w.$D, 2, "0"); case "d": return String(w.$W); case "dd": return Ye(k.weekdaysMin, w.$W, H, 2); case "ddd": return Ye(k.weekdaysShort, w.$W, H, 3); case "dddd": return H[w.$W]; case "H": return String(Q); case "HH": return P.s(Q, 2, "0"); case "h": return it(1); case "hh": return it(2); case "a": return Ke(Q, re, !0); case "A": return Ke(Q, re, !1); case "m": return String(re); case "mm": return P.s(re, 2, "0"); case "s": return String(w.$s); case "ss": return P.s(w.$s, 2, "0"); case "SSS": return P.s(w.$ms, 3, "0"); case "Z": return x; } return null; })(ge) || x.replace(":", ""); })); }, f.utcOffset = function() { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); }, f.diff = function(h, w, k) { var E, x = this, Q = P.p(w), re = M(h), de = (re.utcOffset() - this.utcOffset()) * o, H = this - re, le = function() { return P.m(x, re); }; switch (Q) { case $: E = le() / 12; break; case s: E = le(); break; case p: E = le() / 3; break; case d: E = (H - de) / 6048e5; break; case l: E = (H - de) / 864e5; break; case c: E = H / t; break; case u: E = H / o; break; case a: E = H / r; break; default: E = H; } return k ? E : P.a(E); }, f.daysInMonth = function() { return this.endOf(s).$D; }, f.$locale = function() { return T[this.$L]; }, f.locale = function(h, w) { if (!h) return this.$L; var k = this.clone(), E = F(h, w, !0); return E && (k.$L = E), k; }, f.clone = function() { return P.w(this.$d, this); }, f.toDate = function() { return new Date(this.valueOf()); }, f.toJSON = function() { return this.isValid() ? this.toISOString() : null; }, f.toISOString = function() { return this.$d.toISOString(); }, f.toString = function() { return this.$d.toUTCString(); }, A; })(), pe = X.prototype; return M.prototype = pe, [["$ms", i], ["$s", a], ["$m", u], ["$H", c], ["$W", l], ["$M", s], ["$y", $], ["$D", g]].forEach((function(A) { pe[A[1]] = function(f) { return this.$g(f, A[0], A[1]); }; })), M.extend = function(A, f) { return A.$i || (A(f, X, M), A.$i = !0), M; }, M.locale = F, M.isDayjs = S, M.unix = function(A) { return M(1e3 * A); }, M.en = T[C], M.Ls = T, M.p = {}, M; })); })($n)), $n.exports; } var U$ = Of(); const Oe = /* @__PURE__ */ Xe(U$); var bn = { exports: {} }, j$ = bn.exports, ma; function T$() { return ma || (ma = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(j$, (function() { var r, o, t = 1e3, i = 6e4, a = 36e5, u = 864e5, c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, l = 31536e6, d = 2628e6, s = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, p = { years: l, months: d, days: u, hours: a, minutes: i, seconds: t, milliseconds: 1, weeks: 6048e5 }, $ = function(T) { return T instanceof Y; }, g = function(T, O, S) { return new Y(T, S, O.$l); }, m = function(T) { return o.p(T) + "s"; }, y = function(T) { return T < 0; }, b = function(T) { return y(T) ? Math.ceil(T) : Math.floor(T); }, z = function(T) { return Math.abs(T); }, q = function(T, O) { return T ? y(T) ? { negative: !0, format: "" + z(T) + O } : { negative: !1, format: "" + T + O } : { negative: !1, format: "" }; }, Y = (function() { function T(S, F, M) { var P = this; if (this.$d = {}, this.$l = M, S === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), F) return g(S * p[m(F)], this); if (typeof S == "number") return this.$ms = S, this.parseFromMilliseconds(), this; if (typeof S == "object") return Object.keys(S).forEach((function(A) { P.$d[m(A)] = S[A]; })), this.calMilliseconds(), this; if (typeof S == "string") { var X = S.match(s); if (X) { var pe = X.slice(2).map((function(A) { return A != null ? Number(A) : 0; })); return this.$d.years = pe[0], this.$d.months = pe[1], this.$d.weeks = pe[2], this.$d.days = pe[3], this.$d.hours = pe[4], this.$d.minutes = pe[5], this.$d.seconds = pe[6], this.calMilliseconds(), this; } } return this; } var O = T.prototype; return O.calMilliseconds = function() { var S = this; this.$ms = Object.keys(this.$d).reduce((function(F, M) { return F + (S.$d[M] || 0) * p[M]; }), 0); }, O.parseFromMilliseconds = function() { var S = this.$ms; this.$d.years = b(S / l), S %= l, this.$d.months = b(S / d), S %= d, this.$d.days = b(S / u), S %= u, this.$d.hours = b(S / a), S %= a, this.$d.minutes = b(S / i), S %= i, this.$d.seconds = b(S / t), S %= t, this.$d.milliseconds = S; }, O.toISOString = function() { var S = q(this.$d.years, "Y"), F = q(this.$d.months, "M"), M = +this.$d.days || 0; this.$d.weeks && (M += 7 * this.$d.weeks); var P = q(M, "D"), X = q(this.$d.hours, "H"), pe = q(this.$d.minutes, "M"), A = this.$d.seconds || 0; this.$d.milliseconds && (A += this.$d.milliseconds / 1e3, A = Math.round(1e3 * A) / 1e3); var f = q(A, "S"), h = S.negative || F.negative || P.negative || X.negative || pe.negative || f.negative, w = X.format || pe.format || f.format ? "T" : "", k = (h ? "-" : "") + "P" + S.format + F.format + P.format + w + X.format + pe.format + f.format; return k === "P" || k === "-P" ? "P0D" : k; }, O.toJSON = function() { return this.toISOString(); }, O.format = function(S) { var F = S || "YYYY-MM-DDTHH:mm:ss", M = { Y: this.$d.years, YY: o.s(this.$d.years, 2, "0"), YYYY: o.s(this.$d.years, 4, "0"), M: this.$d.months, MM: o.s(this.$d.months, 2, "0"), D: this.$d.days, DD: o.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: o.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: o.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: o.s(this.$d.seconds, 2, "0"), SSS: o.s(this.$d.milliseconds, 3, "0") }; return F.replace(c, (function(P, X) { return X || String(M[P]); })); }, O.as = function(S) { return this.$ms / p[m(S)]; }, O.get = function(S) { var F = this.$ms, M = m(S); return M === "milliseconds" ? F %= 1e3 : F = M === "weeks" ? b(F / p[M]) : this.$d[M], F || 0; }, O.add = function(S, F, M) { var P; return P = F ? S * p[m(F)] : $(S) ? S.$ms : g(S, this).$ms, g(this.$ms + P * (M ? -1 : 1), this); }, O.subtract = function(S, F) { return this.add(S, F, !0); }, O.locale = function(S) { var F = this.clone(); return F.$l = S, F; }, O.clone = function() { return g(this.$ms, this); }, O.humanize = function(S) { return r().add(this.$ms, "ms").locale(this.$l).fromNow(!S); }, O.valueOf = function() { return this.asMilliseconds(); }, O.milliseconds = function() { return this.get("milliseconds"); }, O.asMilliseconds = function() { return this.as("milliseconds"); }, O.seconds = function() { return this.get("seconds"); }, O.asSeconds = function() { return this.as("seconds"); }, O.minutes = function() { return this.get("minutes"); }, O.asMinutes = function() { return this.as("minutes"); }, O.hours = function() { return this.get("hours"); }, O.asHours = function() { return this.as("hours"); }, O.days = function() { return this.get("days"); }, O.asDays = function() { return this.as("days"); }, O.weeks = function() { return this.get("weeks"); }, O.asWeeks = function() { return this.as("weeks"); }, O.months = function() { return this.get("months"); }, O.asMonths = function() { return this.as("months"); }, O.years = function() { return this.get("years"); }, O.asYears = function() { return this.as("years"); }, T; })(), C = function(T, O, S) { return T.add(O.years() * S, "y").add(O.months() * S, "M").add(O.days() * S, "d").add(O.hours() * S, "h").add(O.minutes() * S, "m").add(O.seconds() * S, "s").add(O.milliseconds() * S, "ms"); }; return function(T, O, S) { r = S, o = S().$utils(), S.duration = function(P, X) { var pe = S.locale(); return g(P, { $l: pe }, X); }, S.isDuration = $; var F = O.prototype.add, M = O.prototype.subtract; O.prototype.add = function(P, X) { return $(P) ? C(this, P, 1) : F.bind(this)(P, X); }, O.prototype.subtract = function(P, X) { return $(P) ? C(this, P, -1) : M.bind(this)(P, X); }; }; })); })(bn)), bn.exports; } var E$ = T$(); const P$ = /* @__PURE__ */ Xe(E$); var _n = { exports: {} }, N$ = _n.exports, va; function A$() { return va || (va = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(N$, (function() { return function(r, o) { o.prototype.isSameOrAfter = function(t, i) { return this.isSame(t, i) || this.isAfter(t, i); }; }; })); })(_n)), _n.exports; } var Z$ = A$(); const C$ = /* @__PURE__ */ Xe(Z$); var yn = { exports: {} }, M$ = yn.exports, pa; function F$() { return pa || (pa = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(M$, (function() { return function(r, o) { o.prototype.isSameOrBefore = function(t, i) { return this.isSame(t, i) || this.isBefore(t, i); }; }; })); })(yn)), yn.exports; } var L$ = F$(); const R$ = /* @__PURE__ */ Xe(L$); var kn = { exports: {} }, B$ = kn.exports, ga; function J$() { return ga || (ga = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(B$, (function() { return function(r, o, t) { var i = function(a, u) { if (!u || !u.length || u.length === 1 && !u[0] || u.length === 1 && Array.isArray(u[0]) && !u[0].length) return null; var c; u.length === 1 && u[0].length > 0 && (u = u[0]), c = (u = u.filter((function(d) { return d; })))[0]; for (var l = 1; l < u.length; l += 1) u[l].isValid() && !u[l][a](c) || (c = u[l]); return c; }; t.max = function() { var a = [].slice.call(arguments, 0); return i("isAfter", a); }, t.min = function() { var a = [].slice.call(arguments, 0); return i("isBefore", a); }; }; })); })(kn)), kn.exports; } var q$ = J$(); const V$ = /* @__PURE__ */ Xe(q$); var Sn = { exports: {} }, Y$ = Sn.exports, ha; function K$() { return ha || (ha = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(Y$, (function() { return function(r, o, t) { r = r || {}; var i = o.prototype, a = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" }; function u(l, d, s, p) { return i.fromToBase(l, d, s, p); } t.en.relativeTime = a, i.fromToBase = function(l, d, s, p, $) { for (var g, m, y, b = s.$locale().relativeTime || a, z = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], q = z.length, Y = 0; Y < q; Y += 1) { var C = z[Y]; C.d && (g = p ? t(l).diff(s, C.d, !0) : s.diff(l, C.d, !0)); var T = (r.rounding || Math.round)(Math.abs(g)); if (y = g > 0, T <= C.r || !C.r) { T <= 1 && Y > 0 && (C = z[Y - 1]); var O = b[C.l]; $ && (T = $("" + T)), m = typeof O == "string" ? O.replace("%d", T) : O(T, d, C.l, y); break; } } if (d) return m; var S = y ? b.future : b.past; return typeof S == "function" ? S(m) : S.replace("%s", m); }, i.to = function(l, d) { return u(l, d, this, !0); }, i.from = function(l, d) { return u(l, d, this); }; var c = function(l) { return l.$u ? t.utc() : t(); }; i.toNow = function(l) { return this.to(c(this), l); }, i.fromNow = function(l) { return this.from(c(this), l); }; }; })); })(Sn)), Sn.exports; } var G$ = K$(); const W$ = /* @__PURE__ */ Xe(G$); var wn = { exports: {} }, H$ = wn.exports, $a; function X$() { return $a || ($a = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(H$, (function() { var r = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {}; return function(t, i, a) { var u, c = function(p, $, g) { g === void 0 && (g = {}); var m = new Date(p), y = (function(b, z) { z === void 0 && (z = {}); var q = z.timeZoneName || "short", Y = b + "|" + q, C = o[Y]; return C || (C = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: b, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: q }), o[Y] = C), C; })($, g); return y.formatToParts(m); }, l = function(p, $) { for (var g = c(p, $), m = [], y = 0; y < g.length; y += 1) { var b = g[y], z = b.type, q = b.value, Y = r[z]; Y >= 0 && (m[Y] = parseInt(q, 10)); } var C = m[3], T = C === 24 ? 0 : C, O = m[0] + "-" + m[1] + "-" + m[2] + " " + T + ":" + m[4] + ":" + m[5] + ":000", S = +p; return (a.utc(O).valueOf() - (S -= S % 1e3)) / 6e4; }, d = i.prototype; d.tz = function(p, $) { p === void 0 && (p = u); var g, m = this.utcOffset(), y = this.toDate(), b = y.toLocaleString("en-US", { timeZone: p }), z = Math.round((y - new Date(b)) / 1e3 / 60), q = 15 * -Math.round(y.getTimezoneOffset() / 15) - z; if (!Number(q)) g = this.utcOffset(0, $); else if (g = a(b, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(q, !0), $) { var Y = g.utcOffset(); g = g.add(m - Y, "minute"); } return g.$x.$timezone = p, g; }, d.offsetName = function(p) { var $ = this.$x.$timezone || a.tz.guess(), g = c(this.valueOf(), $, { timeZoneName: p }).find((function(m) { return m.type.toLowerCase() === "timezonename"; })); return g && g.value; }; var s = d.startOf; d.startOf = function(p, $) { if (!this.$x || !this.$x.$timezone) return s.call(this, p, $); var g = a(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L }); return s.call(g, p, $).tz(this.$x.$timezone, !0); }, a.tz = function(p, $, g) { var m = g && $, y = g || $ || u, b = l(+a(), y); if (typeof p != "string") return a(p).tz(y); var z = (function(T, O, S) { var F = T - 60 * O * 1e3, M = l(F, S); if (O === M) return [F, O]; var P = l(F -= 60 * (M - O) * 1e3, S); return M === P ? [F, M] : [T - 60 * Math.min(M, P) * 1e3, Math.max(M, P)]; })(a.utc(p, m).valueOf(), b, y), q = z[0], Y = z[1], C = a(q).utcOffset(Y); return C.$x.$timezone = y, C; }, a.tz.guess = function() { return Intl.DateTimeFormat().resolvedOptions().timeZone; }, a.tz.setDefault = function(p) { u = p; }; }; })); })(wn)), wn.exports; } var Q$ = X$(); const eb = /* @__PURE__ */ Xe(Q$); var In = { exports: {} }, tb = In.exports, ba; function nb() { return ba || (ba = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(tb, (function() { var r = "minute", o = /[+-]\d\d(?::?\d\d)?/g, t = /([+-]|\d\d)/g; return function(i, a, u) { var c = a.prototype; u.utc = function(m) { var y = { date: m, utc: !0, args: arguments }; return new a(y); }, c.utc = function(m) { var y = u(this.toDate(), { locale: this.$L, utc: !0 }); return m ? y.add(this.utcOffset(), r) : y; }, c.local = function() { return u(this.toDate(), { locale: this.$L, utc: !1 }); }; var l = c.parse; c.parse = function(m) { m.utc && (this.$u = !0), this.$utils().u(m.$offset) || (this.$offset = m.$offset), l.call(this, m); }; var d = c.init; c.init = function() { if (this.$u) { var m = this.$d; this.$y = m.getUTCFullYear(), this.$M = m.getUTCMonth(), this.$D = m.getUTCDate(), this.$W = m.getUTCDay(), this.$H = m.getUTCHours(), this.$m = m.getUTCMinutes(), this.$s = m.getUTCSeconds(), this.$ms = m.getUTCMilliseconds(); } else d.call(this); }; var s = c.utcOffset; c.utcOffset = function(m, y) { var b = this.$utils().u; if (b(m)) return this.$u ? 0 : b(this.$offset) ? s.call(this) : this.$offset; if (typeof m == "string" && (m = (function(C) { C === void 0 && (C = ""); var T = C.match(o); if (!T) return null; var O = ("" + T[0]).match(t) || ["-", 0, 0], S = O[0], F = 60 * +O[1] + +O[2]; return F === 0 ? 0 : S === "+" ? F : -F; })(m), m === null)) return this; var z = Math.abs(m) <= 16 ? 60 * m : m; if (z === 0) return this.utc(y); var q = this.clone(); if (y) return q.$offset = z, q.$u = !1, q; var Y = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset(); return (q = this.local().add(z + Y, r)).$offset = z, q.$x.$localOffset = Y, q; }; var p = c.format; c.format = function(m) { var y = m || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : ""); return p.call(this, y); }, c.valueOf = function() { var m = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset()); return this.$d.valueOf() - 6e4 * m; }, c.isUTC = function() { return !!this.$u; }, c.toISOString = function() { return this.toDate().toISOString(); }, c.toString = function() { return this.toDate().toUTCString(); }; var $ = c.toDate; c.toDate = function(m) { return m === "s" && this.$offset ? u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : $.call(this); }; var g = c.diff; c.diff = function(m, y, b) { if (m && this.$u === m.$u) return g.call(this, m, y, b); var z = this.local(), q = u(m).local(); return g.call(z, q, y, b); }; }; })); })(In)), In.exports; } var rb = nb(); const ib = /* @__PURE__ */ Xe(rb); var zn = { exports: {} }, ob = zn.exports, _a; function ab() { return _a || (_a = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(ob, (function() { var r = "week", o = "year"; return function(t, i, a) { var u = i.prototype; u.week = function(c) { if (c === void 0 && (c = null), c !== null) return this.add(7 * (c - this.week()), "day"); var l = this.$locale().yearStart || 1; if (this.month() === 11 && this.date() > 25) { var d = a(this).startOf(o).add(1, o).date(l), s = a(this).endOf(r); if (d.isBefore(s)) return 1; } var p = a(this).startOf(o).date(l).startOf(r).subtract(1, "millisecond"), $ = this.diff(p, r, !0); return $ < 0 ? a(this).startOf("week").week() : Math.ceil($); }, u.weeks = function(c) { return c === void 0 && (c = null), this.week(c); }; }; })); })(zn)), zn.exports; } var ub = ab(); const lb = /* @__PURE__ */ Xe(ub); var xn = { exports: {} }, cb = xn.exports, ya; function sb() { return ya || (ya = 1, (function(e, n) { (function(r, o) { e.exports = o(Of()); })(cb, (function(r) { function o(a) { return a && typeof a == "object" && "default" in a ? a : { default: a }; } var t = o(r), i = { name: "pt-br", weekdays: "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"), weekdaysShort: "dom_seg_ter_qua_qui_sex_sáb".split("_"), weekdaysMin: "Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"), months: "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"), monthsShort: "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"), ordinal: function(a) { return a + "º"; }, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY [às] HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm" }, relativeTime: { future: "em %s", past: "há %s", s: "poucos segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um mês", MM: "%d meses", y: "um ano", yy: "%d anos" } }; return t.default.locale(i, null, !0), i; })); })(xn)), xn.exports; } sb(); var gn = { exports: {} }, ka; function db() { return ka || (ka = 1, (function(e, n) { var r = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof pn < "u" && pn, o = (function() { function i() { this.fetch = !1, this.DOMException = r.DOMException; } return i.prototype = r, new i(); })(); (function(i) { (function(a) { var u = typeof i < "u" && i || typeof self < "u" && self || // eslint-disable-next-line no-undef typeof pn < "u" && pn || {}, c = { searchParams: "URLSearchParams" in u, iterable: "Symbol" in u && "iterator" in Symbol, blob: "FileReader" in u && "Blob" in u && (function() { try { return new Blob(), !0; } catch { return !1; } })(), formData: "FormData" in u, arrayBuffer: "ArrayBuffer" in u }; function l(f) { return f && DataView.prototype.isPrototypeOf(f); } if (c.arrayBuffer) var d = [ "[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]" ], s = ArrayBuffer.isView || function(f) { return f && d.indexOf(Object.prototype.toString.call(f)) > -1; }; function p(f) { if (typeof f != "string" && (f = String(f)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(f) || f === "") throw new TypeError('Invalid character in header field name: "' + f + '"'); return f.toLowerCase(); } function $(f) { return typeof f != "string" && (f = String(f)), f; } function g(f) { var h = { next: function() { var w = f.shift(); return { done: w === void 0, value: w }; } }; return c.iterable && (h[Symbol.iterator] = function() { return h; }), h; } function m(f) { this.map = {}, f instanceof m ? f.forEach(function(h, w) { this.append(w, h); }, this) : Array.isArray(f) ? f.forEach(function(h) { if (h.length != 2) throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + h.length); this.append(h[0], h[1]); }, this) : f && Object.getOwnPropertyNames(f).forEach(function(h) { this.append(h, f[h]); }, this); } m.prototype.append = function(f, h) { f = p(f), h = $(h); var w = this.map[f]; this.map[f] = w ? w + ", " + h : h; }, m.prototype.delete = function(f) { delete this.map[p(f)]; }, m.prototype.get = function(f) { return f = p(f), this.has(f) ? this.map[f] : null; }, m.prototype.has = function(f) { return this.map.hasOwnProperty(p(f)); }, m.prototype.set = function(f, h) { this.map[p(f)] = $(h); }, m.prototype.forEach = function(f, h) { for (var w in this.map) this.map.hasOwnProperty(w) && f.call(h, this.map[w], w, this); }, m.prototype.keys = function() { var f = []; return this.forEach(function(h, w) { f.push(w); }), g(f); }, m.prototype.values = function() { var f = []; return this.forEach(function(h) { f.push(h); }), g(f); }, m.prototype.entries = function() { var f = []; return this.forEach(function(h, w) { f.push([w, h]); }), g(f); }, c.iterable && (m.prototype[Symbol.iterator] = m.prototype.entries); function y(f) { if (!f._noBody) { if (f.bodyUsed) return Promise.reject(new TypeError("Already read")); f.bodyUsed = !0; } } function b(f) { return new Promise(function(h, w) { f.onload = function() { h(f.result); }, f.onerror = function() { w(f.error); }; }); } function z(f) { var h = new FileReader(), w = b(h); return h.readAsArrayBuffer(f), w; } function q(f) { var h = new FileReader(), w = b(h), k = /charset=([A-Za-z0-9_-]+)/.exec(f.type), E = k ? k[1] : "utf-8"; return h.readAsText(f, E), w; } function Y(f) { for (var h = new Uint8Array(f), w = new Array(h.length), k = 0; k < h.length; k++) w[k] = String.fromCharCode(h[k]); return w.join(""); } function C(f) { if (f.slice) return f.slice(0); var h = new Uint8Array(f.byteLength); return h.set(new Uint8Array(f)), h.buffer; } function T() { return this.bodyUsed = !1, this._initBody = function(f) { this.bodyUsed = this.bodyUsed, this._bodyInit = f, f ? typeof f == "string" ? this._bodyText = f : c.blob && Blob.prototype.isPrototypeOf(f) ? this._bodyBlob = f : c.formData && FormData.prototype.isPrototypeOf(f) ? this._bodyFormData = f : c.searchParams && URLSearchParams.prototype.isPrototypeOf(f) ? this._bodyText = f.toString() : c.arrayBuffer && c.blob && l(f) ? (this._bodyArrayBuffer = C(f.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : c.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(f) || s(f)) ? this._bodyArrayBuffer = C(f) : this._bodyText = f = Object.prototype.toString.call(f) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof f == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : c.searchParams && URLSearchParams.prototype.isPrototypeOf(f) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8")); }, c.blob && (this.blob = function() { var f = y(this); if (f) return f; if (this._bodyBlob) return Promise.resolve(this._bodyBlob); if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer])); if (this._bodyFormData) throw new Error("could not read FormData body as blob"); return Promise.resolve(new Blob([this._bodyText])); }), this.arrayBuffer = function() { if (this._bodyArrayBuffer) { var f = y(this); return f || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve( this._bodyArrayBuffer.buffer.slice( this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength ) ) : Promise.resolve(this._bodyArrayBuffer)); } else { if (c.blob) return this.blob().then(z); throw new Error("could not read as ArrayBuffer"); } }, this.text = function() { var f = y(this); if (f) return f; if (this._bodyBlob) return q(this._bodyBlob); if (this._bodyArrayBuffer) return Promise.resolve(Y(this._bodyArrayBuffer)); if (this._bodyFormData) throw new Error("could not read FormData body as text"); return Promise.resolve(this._bodyText); }, c.formData && (this.formData = function() { return this.text().then(M); }), this.json = function() { return this.text().then(JSON.parse); }, this; } var O = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"]; function S(f) { var h = f.toUpperCase(); return O.indexOf(h) > -1 ? h : f; } function F(f, h) { if (!(this instanceof F)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); h = h || {}; var w = h.body; if (f instanceof F) { if (f.bodyUsed) throw new TypeError("Already read"); this.url = f.url, this.credentials = f.credentials, h.headers || (this.headers = new m(f.headers)), this.method = f.method, this.mode = f.mode, this.signal = f.signal, !w && f._bodyInit != null && (w = f._bodyInit, f.bodyUsed = !0); } else this.url = String(f); if (this.credentials = h.credentials || this.credentials || "same-origin", (h.headers || !this.headers) && (this.headers = new m(h.headers)), this.method = S(h.method || this.method || "GET"), this.mode = h.mode || this.mode || null, this.signal = h.signal || this.signal || (function() { if ("AbortController" in u) { var x = new AbortController(); return x.signal; } })(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && w) throw new TypeError("Body not allowed for GET or HEAD requests"); if (this._initBody(w), (this.method === "GET" || this.method === "HEAD") && (h.cache === "no-store" || h.cache === "no-cache")) { var k = /([?&])_=[^&]*/; if (k.test(this.url)) this.url = this.url.replace(k, "$1_=" + (/* @__PURE__ */ new Date()).getTime()); else { var E = /\?/; this.url += (E.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime(); } } } F.prototype.clone = function() { return new F(this, { body: this._bodyInit }); }; function M(f) { var h = new FormData(); return f.trim().split("&").forEach(function(w) { if (w) { var k = w.split("="), E = k.shift().replace(/\+/g, " "), x = k.join("=").replace(/\+/g, " "); h.append(decodeURIComponent(E), decodeURIComponent(x)); } }), h; } function P(f) { var h = new m(), w = f.replace(/\r?\n[\t ]+/g, " "); return w.split("\r").map(function(k) { return k.indexOf(` `) === 0 ? k.substr(1, k.length) : k; }).forEach(function(k) { var E = k.split(":"), x = E.shift().trim(); if (x) { var Q = E.join(":").trim(); try { h.append(x, Q); } catch (re) { console.warn("Response " + re.message); } } }), h; } T.call(F.prototype); function X(f, h) { if (!(this instanceof X)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); if (h || (h = {}), this.type = "default", this.status = h.status === void 0 ? 200 : h.status, this.status < 200 || this.status > 599) throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599]."); this.ok = this.status >= 200 && this.status < 300, this.statusText = h.statusText === void 0 ? "" : "" + h.statusText, this.headers = new m(h.headers), this.url = h.url || "", this._initBody(f); } T.call(X.prototype), X.prototype.clone = function() { return new X(this._bodyInit, { status: this.status, statusText: this.statusText, headers: new m(this.headers), url: this.url }); }, X.error = function() { var f = new X(null, { status: 200, statusText: "" }); return f.ok = !1, f.status = 0, f.type = "error", f; }; var pe = [301, 302, 303, 307, 308]; X.redirect = function(f, h) { if (pe.indexOf(h) === -1) throw new RangeError("Invalid status code"); return new X(null, { status: h, headers: { location: f } }); }, a.DOMException = u.DOMException; try { new a.DOMException(); } catch { a.DOMException = function(h, w) { this.message = h, this.name = w; var k = Error(h); this.stack = k.stack; }, a.DOMException.prototype = Object.create(Error.prototype), a.DOMException.prototype.constructor = a.DOMException; } function A(f, h) { return new Promise(function(w, k) { var E = new F(f, h); if (E.signal && E.signal.aborted) return k(new a.DOMException("Aborted", "AbortError")); var x = new XMLHttpRequest(); function Q() { x.abort(); } x.onload = function() { var H = { statusText: x.statusText, headers: P(x.getAllResponseHeaders() || "") }; E.url.indexOf("file://") === 0 && (x.status < 200 || x.status > 599) ? H.status = 200 : H.status = x.status, H.url = "responseURL" in x ? x.responseURL : H.headers.get("X-Request-URL"); var le = "response" in x ? x.response : x.responseText; setTimeout(function() { w(new X(le, H)); }, 0); }, x.onerror = function() { setTimeout(function() { k(new TypeError("Network request failed")); }, 0); }, x.ontimeout = function() { setTimeout(function() { k(new TypeError("Network request timed out")); }, 0); }, x.onabort = function() { setTimeout(function() { k(new a.DOMException("Aborted", "AbortError")); }, 0); }; function re(H) { try { return H === "" && u.location.href ? u.location.href : H; } catch { return H; } } if (x.open(E.method, re(E.url), !0), E.credentials === "include" ? x.withCredentials = !0 : E.credentials === "omit" && (x.withCredentials = !1), "responseType" in x && (c.blob ? x.responseType = "blob" : c.arrayBuffer && (x.responseType = "arraybuffer")), h && typeof h.headers == "object" && !(h.headers instanceof m || u.Headers && h.headers instanceof u.Headers)) { var de = []; Object.getOwnPropertyNames(h.headers).forEach(function(H) { de.push(p(H)), x.setRequestHeader(H, $(h.headers[H])); }), E.headers.forEach(function(H, le) { de.indexOf(le) === -1 && x.setRequestHeader(le, H); }); } else E.headers.forEach(function(H, le) { x.setRequestHeader(le, H); }); E.signal && (E.signal.addEventListener("abort", Q), x.onreadystatechange = function() { x.readyState === 4 && E.signal.removeEventListener("abort", Q); }), x.send(typeof E._bodyInit > "u" ? null : E._bodyInit); }); } return A.polyfill = !0, u.fetch || (u.fetch = A, u.Headers = m, u.Request = F, u.Response = X), a.Headers = m, a.Request = F, a.Response = X, a.fetch = A, a; })({}); })(o), o.fetch.ponyfill = !0, delete o.fetch.polyfill; var t = r.fetch ? r : o; n = t.fetch, n.default = t.fetch, n.fetch = t.fetch, n.Headers = t.Headers, n.Request = t.Request, n.Response = t.Response, e.exports = n; })(gn, gn.exports)), gn.exports; } db(); var fb = {}; globalThis.cacheMemoria_cache = fb; var mb = ((e) => (e.codigo = "codigo", e.excluido = "excluido", e.data_hora_criacao = "data_hora_criacao", e.data_hora_atualizacao = "data_hora_atualizacao", e.codigo_usuario_criacao = "codigo_usuario_criacao", e.codigo_usuario_atualizacao = "codigo_usuario_atualizacao", e.versao = "versao", e))(mb || {}), vb = ((e) => (e.token = "token", e))(vb || {}), pb = ((e) => (e.Usuario = "usuario", e.Fornecedor = "fornecedor", e))(pb || {}), Uf = ((e) => (e["="] = "=", e["!="] = "!=", e[">"] = ">", e[">="] = ">=", e["<"] = "<", e["<="] = "<=", e.like = "like", e.in = "in", e.isNull = "isNull", e))(Uf || {}), gb = Pt.enum(["=", "!=", ">", ">=", "<", "<=", "like", "in", "isNull"]); Pt.object({ coluna: Pt.string(), valor: Pt.any(), operador: gb, ou: Pt.boolean().optional() }); Oe.locale("pt-br"); Oe.extend(ib); Oe.extend(eb); Oe.extend(lb); Oe.extend(R$); Oe.extend(C$); Oe.extend(V$); Oe.extend(W$); Oe.extend(P$); var hb = ((e) => (e["e-licencie"] = "e-licencie", e["gov.e-licencie"] = "gov.e-licencie", e))(hb || {}), $b = ((e) => (e.modelo = "000_modelo", e.vencida = "100_vencida", e.expirado = "200_expirado", e.alerta = "300_alerta", e.protocoladafora = "350_protocoladafora", e.protocolada = "400_protocolada", e.protocoladaApenas = "430_protocolada", e.protocolada_alteracao = "450_protocolada", e.prazo = "500_prazo", e.emitida = "515_emitida", e.valida = "518_valida", e.novo = "520_novo", e.recebido = "521_recebido", e.em_andamento = "530_em_andamento", e.aguardando = "530_aguardando", e.aguardandoresposta = "540_aguardandoresposta", e.suspensaotemporaria = "540_suspensaotemporaria", e.cancelada = "550_cancelada", e.execucao = "560_execucao", e.pendente = "570_pendente", e.executadafora = "600_executadafora", e.executada = "700_executada", e.naoexecutada = "701_naoexecutada", e.concluida = "730_concluida", e.respondido_negado = "740_respondido_negado", e.respondido_aceito = "741_respondido_aceito", e.atendidoparcial = "742_atendidoparcial", e.naoatendido = "743_naoatendido", e.atendido = "744_atendido", e.renovada = "760_renovada", e.finalizada = "800_finalizada", e.emitirnota = "101_emitirnota", e.faturaatrasada = "301_faturaatrasada", e.pagarfatura = "302_pagarfatura", e.aguardandoconfirmacao = "531_aguardandoconfirmacao", e.agendado = "701_agendado", e.faturapaga = "801_faturapaga", e.excluida = "999_excluida", e.requerida = "401_requerida", e.vigente = "516_vigente", e.emrenovacao = "402_emrenovacao", e.arquivada = "801_arquivada", e.aguardando_sincronizacao = "999_aguardando_sincronizacao", e.nao_conforme = "710_nao_conforme", e.conforme = "720_conforme", e.nao_aplicavel = "730_nao_aplicavel", e.parcial = "715_parcial", e))($b || {}), bb = ((e) => (e.UN = "UN", e.KG = "KG", e.TON = "TON", e.g = "g", e["M³"] = "M³", e.Lt = "Lt", e))(bb || {}); function _b(e) { if (!Number.isFinite(e) || e <= 0 || e >= 1) return 0; const n = e.toString(); if (n.includes("e-")) { const [, t] = n.split("e-"), i = Number(t); return Number.isFinite(i) ? i : 0; } const r = n.indexOf("."); return r === -1 ? 0 : n.slice(r + 1).replace(/0+$/, "").length; } function yb(e) { const n = (e ?? "").trim().replace(/,/g, "."); if (!n) return null; const r = Number(n); return Number.isNaN(r) ? null : r; } function Dr(e, n) { return e == null ? "" : n === null ? String(e) : Number(e).toFixed(Math.max(0, n)).replace(/\./g, ","); } function Sa(e) { return (e ?? "").replace(/\D+/g, ""); } function kb(e) { const n = (e ?? "").replace(/[^0-9.,]+/g, ""), r = n.match(/[.,]/); if (!r) return n; const o = r[0], t = n.indexOf(o), i = n.slice(0, t).replace(/[.,]/g, ""), a = n.slice(t + 1).replace(/[.,]/g, ""); return `${i.length ? i : "0"}${o}${a}`; } function Sb(e, n) { if (n === null) return e; if (n <= 0) return e.replace(/[.,]/g, ""); const r = e.match(/[.,]/); if (!r) return e; const o = r[0], t = e.indexOf(o), i = e.slice(0, t), a = e.slice(t + 1); return `${i}${o}${a.slice(0, n)}`; } function wb(e) { const n = e.match(/^(\d+)[.,]$/); if (!n) return null; const r = Number(n[1]); return Number.isNaN(r) ? null : r; } const Ib = fe({ name: "EliEntradaNumero", inheritAttrs: !1, props: { /** Interface padrão (EliEntrada): value + opcoes. */ value: { type: [Number, null], default: void 0 }, opcoes: { type: Object, required: !0 } }, emits: { "update:value": (e) => !0, /** Compat Vue2 (v-model padrão: value + input) */ input: (e) => !0, change: (e) => !0, focus: () => !0, blur: () => !0 }, setup(e, { attrs: n, emit: r }) { const o = R(() => { var d; const l = (d = e.opcoes) == null ? void 0 : d.precisao; return l == null ? null : _b(l); }), t = R(() => o.value === 0), i = R(() => { const l = o.value; return l !== null && l > 0; }), a = ee(""), u = ee(void 0); Ge( () => e.value, (l) => { l !== u.value && (a.value = Dr(l, o.value), u.value = l); }, { immediate: !0 } ); function c(l) { if (i.value) { const $ = o.value ?? 0, g = Sa(l), m = g ? Number(g) : 0, y = Math.pow(10, $), b = g ? m / y : null, z = b === null ? null : b; u.value = z, r("update:value", z), r("input", z), r("change", z), a.value = Dr(z, $); return; } const d = t.value ? Sa(l) : kb(l), s = t.value ? d : Sb(d, o.value); let p = null; if (s) { const g = (t.value ? null : wb(s)) ?? yb(s); p = g === null ? null : g; } u.value = p, r("update:value", p), r("input", p), r("change", p), a.value = Dr(p, o.value); } return { attrs: n, emit: r, displayValue: a, isInteiro: t, onUpdateModelValue: c }; } }), zb = { class: "eli-entrada__prefixo" }, xb = { class: "eli-entrada__sufixo" }; function Db(e, n, r, o, t, i) { var a, u, c, l; return D(), _e(Cr, It({ "model-value": e.displayValue, label: (a = e.opcoes) == null ? void 0 : a.rotulo, placeholder: (u = e.opcoes) == null ? void 0 : u.placeholder, type: e.isInteiro ? "number" : "text", inputmode: e.isInteiro ? "numeric" : "decimal", pattern: e.isInteiro ? "[0-9]*" : "[0-9.,]*" }, e.attrs, { "onUpdate:modelValue": e.onUpdateModelValue, onFocus: n[0] || (n[0] = () => e.emit("focus")), onBlur: n[1] || (n[1] = () => e.emit("blur")) }), Rf({ _: 2 }, [ (c = e.opcoes) != null && c.prefixo ? { name: "prepend-inner", fn: Se(() => [ N("span", zb, ue(e.opcoes.prefixo), 1) ]), key: "0" } : void 0, (l = e.opcoes) != null && l.sufixo ? { name: "append-inner", fn: Se(() => [ N("span", xb, ue(e.opcoes.sufixo), 1) ]), key: "1" } : void 0 ]), 1040, ["model-value", "label", "placeholder", "type", "inputmode", "pattern", "onUpdate:modelValue"]); } const jf = /* @__PURE__ */ me(Ib, [["render", Db], ["__scopeId", "data-v-77cbf216"]]), Ob = fe({ name: "EliEntradaDataHora", inheritAttrs: !1, props: { // --- Novo padrão EliEntrada --- value: { type: String, default: void 0 }, opcoes: { type: Object, required: !1, default: void 0 }, // --- Compatibilidade com componente antigo EliDataHora --- modelValue: { type: String, default: null }, modo: { type: String, default: void 0 }, rotulo: { type: String, default: void 0 }, placeholder: { type: String, default: void 0 }, desabilitado: { type: Boolean, default: void 0 }, limpavel: { type: Boolean, default: void 0 }, erro: { type: Boolean, default: void 0 }, mensagensErro: { type: [String, Array], default: void 0 }, dica: { type: String, default: void 0 }, dicaPersistente: { type: Boolean, default: void 0 }, densidade: { type: String, default: void 0 }, variante: { type: String, default: void 0 }, min: { type: String, default: void 0 }, max: { type: String, default: void 0 } }, emits: { // Novo padrão "update:value": (e) => !0, input: (e) => !0, // compat Vue2 change: (e) => !0, // Compat antigo "update:modelValue": (e) => !0, alterar: (e) => !0, foco: () => !0, desfoco: () => !0, focus: () => !0, blur: () => !0 }, setup(e, { emit: n, attrs: r }) { const o = R(() => e.opcoes ? e.opcoes : { rotulo: e.rotulo ?? "Data e hora", placeholder: e.placeholder ?? "", modo: e.modo ?? "dataHora", limpavel: e.limpavel, erro: e.erro, mensagensErro: e.mensagensErro, dica: e.dica, dicaPersistente: e.dicaPersistente, densidade: e.densidade, variante: e.variante, min: e.min, max: e.max }), t = R( () => o.value.modo ?? "dataHora" ), i = R(() => !!e.desabilitado), a = R( () => t.value === "data" ? "date" : "datetime-local" ); function u(m) { return t.value === "data" ? Oe(m).format("YYYY-MM-DD") : Oe(m).format("YYYY-MM-DDTHH:mm"); } function c(m) { return t.value === "data" ? Oe(`${m}T00:00`).format() : Oe(m).format(); } const l = R(() => e.value !== void 0 ? e.value ?? null : e.modelValue), d = R({ get: () => l.value ? u(l.value) : "", set: (m) => { const y = m && m.length > 0 ? m : null; if (!y) { n("update:value", null), n("input", null), n("change", null), n("update:modelValue", null), n("alterar", null); return; } const b = c(y); n("update:value", b), n("input", b), n("change", b), n("update:modelValue", b), n("alterar", b); } }), s = R(() => { const m = o.value.min; if (m) return u(m); }), p = R(() => { const m = o.value.max; if (m) return u(m); }); function $() { n("foco"), n("focus"); } function g() { n("desfoco"), n("blur"); } return { attrs: r, valor: d, tipoInput: a, minLocal: s, maxLocal: p, opcoesEfetivas: o, desabilitadoEfetivo: i, emitCompatFocus: $, emitCompatBlur: g }; } }), Ub = { class: "eli-data-hora" }; function jb(e, n, r, o, t, i) { return D(), Z("div", Ub, [ ie(Cr, It({ modelValue: e.valor, "onUpdate:modelValue": n[0] || (n[0] = (a) => e.valor = a), type: e.tipoInput, label: e.opcoesEfetivas.rotulo, placeholder: e.opcoesEfetivas.placeholder, disabled: e.desabilitadoEfetivo, clearable: !!e.opcoesEfetivas.limpavel, error: !!e.opcoesEfetivas.erro, "error-messages": e.opcoesEfetivas.mensagensErro, hint: e.opcoesEfetivas.dica, "persistent-hint": !!e.opcoesEfetivas.dicaPersistente, density: e.opcoesEfetivas.densidade ?? "comfortable", variant: e.opcoesEfetivas.variante ?? "outlined", min: e.minLocal, max: e.maxLocal }, e.attrs, { onFocus: e.emitCompatFocus, onBlur: e.emitCompatBlur }), null, 16, ["modelValue", "type", "label", "placeholder", "disabled", "clearable", "error", "error-messages", "hint", "persistent-hint", "density", "variant", "min", "max", "onFocus", "onBlur"]) ]); } const Tf = /* @__PURE__ */ me(Ob, [["render", jb], ["__scopeId", "data-v-1bfd1be8"]]); function Tb(e) { return e === "texto" || e === "numero" || e === "dataHora"; } const Eb = fe({ name: "EliTabelaModalFiltroAvancado", props: { aberto: { type: Boolean, required: !0 }, filtrosBase: { type: Array, required: !0 }, modelo: { type: Array, required: !0 } }, emits: { fechar: () => !0, limpar: () => !0, salvar: (e) => !0 }, setup(e, { emit: n }) { const r = ee([]), o = Object.keys(Uf), t = ee([]); function i(g) { const m = g == null ? void 0 : g[0]; return m === "numero" ? jf : m === "dataHora" ? Tf : Fr; } function a(g) { const m = g == null ? void 0 : g[1]; return m && typeof m == "object" && !m.rotulo ? { ...m, rotulo: "Valor" } : m ?? { rotulo: "Valor" }; } function u(g) { return (g == null ? void 0 : g[0]) === "numero" ? null : ""; } function c() { var y; const g = e.filtrosBase ?? []; t.value = g.map((b) => String(b.coluna)); const m = Array.isArray(e.modelo) ? e.modelo : []; if (r.value = m.map((b) => { const z = b.entrada, q = b.coluna, Y = b.operador ?? "=", C = b.valor ?? u(z); return { coluna: q, operador: Y, entrada: z, valor: C }; }), !r.value.length && g.length) { const b = g[0]; r.value = [ { coluna: b.coluna, operador: b.operador ?? "=", entrada: b.entrada, valor: u(b.entrada) } ]; } for (const b of r.value) t.value.includes(String(b.coluna)) || (b.coluna = ((y = g[0]) == null ? void 0 : y.coluna) ?? b.coluna), o.includes(b.operador) || (b.operador = "="), b.entrada && !Tb(b.entrada[0]) && (b.entrada = ["texto", { rotulo: "Valor" }]); } Ge( () => [e.aberto, e.filtrosBase, e.modelo], () => { e.aberto && c(); }, { deep: !0, immediate: !0 } ); function l() { if (!e.filtrosBase.length) return; const g = e.filtrosBase[0]; r.value.push({ coluna: g.coluna, operador: g.operador ?? "=", entrada: g.entrada, valor: u(g.entrada) }); } function d(g) { r.value.splice(g, 1); } function s() { n("fechar"); } function p() { n("limpar"); } function $() { n( "salvar", r.value.map((g) => ({ coluna: g.coluna, operador: g.operador, entrada: g.entrada, valor: g.valor })) ); } return { linhas: r, operadoresDisponiveis: o, colunasDisponiveis: t, componenteEntrada: i, opcoesEntrada: a, adicionar: l, remover: d, emitFechar: s, emitSalvar: $, emitLimpar: p }; } }), Pb = { class: "eli-tabela-modal-filtro__modal", role: "dialog", "aria-modal": "true", "aria-label": "Filtro avançado" }, Nb = { class: "eli-tabela-modal-filtro__header" }, Ab = { class: "eli-tabela-modal-filtro__conteudo" }, Zb = { key: 0, class: "eli-tabela-modal-filtro__vazio" }, Cb = { key: 1, class: "eli-tabela-modal-filtro__lista" }, Mb = ["onUpdate:modelValue"], Fb = ["value"], Lb = ["onUpdate:modelValue"], Rb = ["value"], Bb = { class: "eli-tabela-modal-filtro__entrada" }, Jb = ["onClick"], qb = { class: "eli-tabela-modal-filtro__acoes" }, Vb = ["disabled"], Yb = { class: "eli-tabela-modal-filtro__footer" }; function Kb(e, n, r, o, t, i) { return e.aberto ? (D(), Z("div", { key: 0, class: "eli-tabela-modal-filtro__overlay", role: "presentation", onClick: n[5] || (n[5] = Pe((...a) => e.emitFechar && e.emitFechar(...a), ["self"])) }, [ N("div", Pb, [ N("header", Nb, [ n[6] || (n[6] = N("h3", { class: "eli-tabela-modal-filtro__titulo" }, "Filtro avançado", -1)), N("button", { type: "button", class: "eli-tabela-modal-filtro__fechar", "aria-label": "Fechar", onClick: n[0] || (n[0] = (...a) => e.emitFechar && e.emitFechar(...a)) }, " × ") ]), N("div", Ab, [ e.filtrosBase.length ? (D(), Z("div", Cb, [ (D(!0), Z(ze, null, Ae(e.linhas, (a, u) => (D(), Z("div", { key: u, class: "eli-tabela-modal-filtro__linha" }, [ Ur(N("select", { "onUpdate:modelValue": (c) => a.coluna = c, class: "eli-tabela-modal-filtro__select" }, [ (D(!0), Z(ze, null, Ae(e.colunasDisponiveis, (c) => (D(), Z("option", { key: String(c), value: c }, ue(String(c)), 9, Fb))), 128)) ], 8, Mb), [ [Mo, a.coluna] ]), Ur(N("select", { "onUpdate:modelValue": (c) => a.operador = c, class: "eli-tabela-modal-filtro__select" }, [ (D(!0), Z(ze, null, Ae(e.operadoresDisponiveis, (c) => (D(), Z("option", { key: c, value: c }, ue(c), 9, Rb))), 128)) ], 8, Lb), [ [Mo, a.operador] ]), N("div", Bb, [ (D(), _e(zt(e.componenteEntrada(a.entrada)), { value: a.valor, "onUpdate:value": (c) => a.valor = c, opcoes: e.opcoesEntrada(a.entrada), density: "compact" }, null, 40, ["value", "onUpdate:value", "opcoes"])) ]), N("button", { type: "button", class: "eli-tabela-modal-filtro__remover", title: "Remover", "aria-label": "Remover", onClick: (c) => e.remover(u) }, " × ", 8, Jb) ]))), 128)) ])) : (D(), Z("div", Zb, " Nenhum filtro configurado na tabela. ")), N("div", qb, [ N("button", { type: "button", class: "eli-tabela-modal-filtro__botao", onClick: n[1] || (n[1] = (...a) => e.adicionar && e.adicionar(...a)), disabled: !e.filtrosBase.length }, " Adicionar filtro ", 8, Vb) ]) ]), N("footer", Yb, [ N("button", { type: "button", class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--sec", onClick: n[2] || (n[2] = (...a) => e.emitLimpar && e.emitLimpar(...a)) }, " Limpar "), N("button", { type: "button", class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--sec", onClick: n[3] || (n[3] = (...a) => e.emitFechar && e.emitFechar(...a)) }, " Cancelar "), N("button", { type: "button", class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--prim", onClick: n[4] || (n[4] = (...a) => e.emitSalvar && e.emitSalvar(...a)) }, " Aplicar ") ]) ]) ])) : be("", !0); } const Gb = /* @__PURE__ */ me(Eb, [["render", Kb], ["__scopeId", "data-v-5f50438e"]]), Wb = "eli:tabela"; function Ef(e) { return `${Wb}:${e}:colunas`; } function Pf(e) { if (!e || typeof e != "object") return { visiveis: [], invisiveis: [] }; const n = e, r = Array.isArray(n.visiveis) ? n.visiveis.filter((t) => typeof t == "string") : [], o = Array.isArray(n.invisiveis) ? n.invisiveis.filter((t) => typeof t == "string") : []; return { visiveis: r, invisiveis: o }; } function wa(e) { try { const n = window.localStorage.getItem(Ef(e)); return n ? Pf(JSON.parse(n)) : { visiveis: [], invisiveis: [] }; } catch { return { visiveis: [], invisiveis: [] }; } } function Hb(e, n) { try { window.localStorage.setItem(Ef(e), JSON.stringify(Pf(n))); } catch { } } function Ao(e) { return `eli_tabela:${e}:filtro_avancado`; } function Ia(e) { try { const n = localStorage.getItem(Ao(e)); if (!n) return []; const r = JSON.parse(n); return Array.isArray(r) ? r : []; } catch { return []; } } function Xb(e, n) { try { localStorage.setItem(Ao(e), JSON.stringify(n ?? [])); } catch { } } function Qb(e) { try { localStorage.removeItem(Ao(e)); } catch { } } const e_ = fe({ name: "EliTabela", inheritAttrs: !1, components: { EliTabelaCabecalho: Pm, EliTabelaEstados: Lm, EliTabelaDebug: qm, EliTabelaHead: tv, EliTabelaBody: Uv, EliTabelaMenuAcoes: Av, EliTabelaPaginacao: Jv, EliTabelaModalColunas: rp, EliTabelaModalFiltroAvancado: Gb }, props: { /** Configuração principal da tabela (colunas, consulta e ações) */ tabela: { type: Object, required: !0 } }, setup(e) { const r = ee(!1), o = ee(null), t = ee([]), i = ee(0), a = ee([]), u = ee(null), c = ee(null), l = ee({ top: 0, left: 0 }), d = ee(""), s = ee(1), p = ee(null), $ = ee("asc"), g = ee(!1), m = ee( Ia(e.tabela.nome) ); function y() { g.value = !0; } function b() { g.value = !1; } function z() { m.value = [], Qb(e.tabela.nome), g.value = !1, s.value !== 1 && (s.value = 1); } function q(j) { m.value = j ?? [], Xb(e.tabela.nome, j ?? []), g.value = !1, s.value !== 1 && (s.value = 1); } const Y = R(() => (m.value ?? []).filter((j) => j && j.coluna && j.operador).map((j) => ({ coluna: String(j.coluna), operador: j.operador, valor: j.valor // sem OR no primeiro momento }))), C = R(() => e.tabela), T = R(() => !!e.tabela.mostrarCaixaDeBusca), O = R(() => e.tabela.acoesTabela ?? []), S = R(() => O.value.length > 0), F = ee(!1), M = ee( wa(e.tabela.nome) ), P = ee({}), X = R(() => e.tabela.colunas.map((j) => j.rotulo)), pe = R(() => { var Te, Ee; const j = e.tabela.colunas, W = (((Te = M.value.visiveis) == null ? void 0 : Te.length) ?? 0) > 0 || (((Ee = M.value.invisiveis) == null ? void 0 : Ee.length) ?? 0) > 0 ? M.value.invisiveis ?? [] : j.filter((ce) => ce.visivel === !1).map((ce) => ce.rotulo), te = new Set(W), $e = j.filter((ce) => te.has(ce.rotulo)), ye = W, Le = /* @__PURE__ */ new Map(); for (const ce of $e) Le.has(ce.rotulo) || Le.set(ce.rotulo, ce); const xe = []; for (const ce of ye) { const Be = Le.get(ce); Be && xe.push(Be); } for (const ce of $e) xe.includes(ce) || xe.push(ce); return xe; }), A = R(() => pe.value.length > 0), f = R(() => { var ce, Be; const j = e.tabela.colunas, J = X.value, W = (((ce = M.value.visiveis) == null ? void 0 : ce.length) ?? 0) > 0 || (((Be = M.value.invisiveis) == null ? void 0 : Be.length) ?? 0) > 0, te = W ? M.value.invisiveis ?? [] : e.tabela.colunas.filter((ve) => ve.visivel === !1).map((ve) => ve.rotulo), $e = new Set(te), ye = J.filter((ve) => !$e.has(ve)), Le = new Set(ye), xe = W ? M.value.visiveis ?? [] : [], Te = []; for (const ve of xe) Le.has(ve) && Te.push(ve); for (const ve of ye) Te.includes(ve) || Te.push(ve); const Ee = /* @__PURE__ */ new Map(); for (const ve of j) Ee.has(ve.rotulo) || Ee.set(ve.rotulo, ve); return Te.map((ve) => Ee.get(ve)).filter(Boolean); }); function h() { F.value = !0; } function w() { F.value = !1; } function k(j) { M.value = j, Hb(e.tabela.nome, j), F.value = !1, P.value = {}; } function E(j) { const J = !!P.value[j]; P.value = { ...P.value, [j]: !J }; } const x = R(() => { const j = e.tabela.registros_por_consulta; return typeof j == "number" && j > 0 ? Math.floor(j) : 10; }); function Q(j) { const J = (d.value ?? "").trim().toLowerCase(); return J ? j.filter((W) => JSON.stringify(W).toLowerCase().includes(J)) : j; } function re(j, J, W) { switch (j) { case "=": return J == W; case "!=": return J != W; case ">": return Number(J) > Number(W); case ">=": return Number(J) >= Number(W); case "<": return Number(J) < Number(W); case "<=": return Number(J) <= Number(W); case "like": { const te = String(J ?? "").toLowerCase(), $e = String(W ?? "").toLowerCase(); return te.includes($e); } case "in": return (Array.isArray(W) ? W : String(W ?? "").split(",").map(($e) => $e.trim()).filter(Boolean)).includes(String(J)); case "isNull": return J == null || J === ""; default: return !0; } } function de(j) { const J = Y.value; return J.length ? j.filter((W) => J.every((te) => { const $e = W == null ? void 0 : W[te.coluna]; return re(String(te.operador), $e, te.valor); })) : j; } const H = R(() => { const j = t.value ?? []; return de(Q(j)); }), le = R(() => H.value.length), Ve = R(() => { const j = x.value; if (!j || j <= 0) return 1; const J = le.value; return J ? Math.max(1, Math.ceil(J / j)) : 1; }), Ye = R(() => { const j = Math.max(1, x.value), J = (s.value - 1) * j; return H.value.slice(J, J + j); }), it = R(() => (e.tabela.acoesLinha ?? []).length > 0), Ke = R(() => (e.tabela.filtroAvancado ?? []).length > 0); let ge = 0; function Fe(j) { var xe, Te, Ee, ce, Be, ve; const J = j.getBoundingClientRect(), W = 8, te = ((Ee = (Te = (xe = c.value) == null ? void 0 : xe.menuEl) == null ? void 0 : Te.value) == null ? void 0 : Ee.offsetHeight) ?? 0, $e = ((ve = (Be = (ce = c.value) == null ? void 0 : ce.menuEl) == null ? void 0 : Be.value) == null ? void 0 : ve.offsetWidth) ?? 180; let ye = J.bottom + W; const Le = J.right - $e; te && ye + te > window.innerHeight - W && (ye = J.top - W - te), l.value = { top: Math.max(W, Math.round(ye)), left: Math.max(W, Math.round(Le)) }; } function Qe(j) { var W, te; if (u.value === null) return; const J = j.target; (te = (W = c.value) == null ? void 0 : W.menuEl) != null && te.value && c.value.menuEl.value.contains(J) || (u.value = null); } function vt(j) { if (j) { if (p.value === j) { $.value = $.value === "asc" ? "desc" : "asc", ot(); return; } p.value = j, $.value = "asc", s.value !== 1 ? s.value = 1 : ot(); } } function Nf(j) { d.value !== j && (d.value = j, s.value !== 1 ? s.value = 1 : ot()); } function Af(j) { const J = Math.min(Math.max(1, j), Ve.value); J !== s.value && (s.value = J); } function Zo(j) { const J = e.tabela.acoesLinha ?? [], W = a.value[j] ?? []; return J.map((te, $e) => { const ye = te.exibir === void 0 ? !0 : typeof te.exibir == "boolean" ? te.exibir : !1; return { acao: te, indice: $e, visivel: W[$e] ?? ye }; }).filter((te) => te.visivel); } function Co(j) { return Zo(j).length > 0; } function Zf(j, J) { if (!Co(j)) return; if (u.value === j) { u.value = null; return; } u.value = j; const W = (J == null ? void 0 : J.currentTarget) ?? null; W && (Fe(W), requestAnimationFrame(() => Fe(W))); } async function ot() { var $e; const j = ++ge; r.value = !0, o.value = null, a.value = [], u.value = null, P.value = {}; const J = Math.max(1, x.value), te = { offSet: 0, limit: 999999 }; p.value && (te.coluna_ordem = p.value, te.direcao_ordem = $.value); try { const ye = e.tabela, Le = await ye.consulta(te); if (j !== ge) return; if (Le.cod !== ja.sucesso) { t.value = [], i.value = 0, o.value = Le.mensagem; return; } const xe = (($e = Le.valor) == null ? void 0 : $e.valores) ?? [], Te = xe.length; t.value = xe, i.value = Te; const Ee = Math.max(1, Math.ceil((le.value || 0) / J)); if (s.value > Ee) { s.value = Ee; return; } const ce = ye.acoesLinha ?? []; if (!ce.length) { a.value = []; return; } const Be = xe.map( () => ce.map((Ut) => Ut.exibir === void 0 ? !0 : typeof Ut.exibir == "boolean" ? Ut.exibir : !1) ); a.value = Be; const ve = await Promise.all( xe.map( async (Ut) => Promise.all( ce.map(async (sn) => { if (sn.exibir === void 0) return !0; if (typeof sn.exibir == "boolean") return sn.exibir; try { const Cf = sn.exibir(Ut); return !!await Promise.resolve(Cf); } catch { return !1; } }) ) ) ); j === ge && (a.value = ve); } catch (ye) { if (j !== ge) return; t.value = [], i.value = 0, o.value = ye instanceof Error ? ye.message : "Erro ao carregar dados."; } finally { j === ge && (r.value = !1); } } return Bf(() => { document.addEventListener("click", Qe), ot(); }), Jf(() => { document.removeEventListener("click", Qe); }), Ge( () => e.tabela.mostrarCaixaDeBusca, (j) => { !j && d.value && (d.value = "", s.value !== 1 ? s.value = 1 : ot()); } ), Ge(s, (j, J) => { }), Ge( () => e.tabela, () => { u.value = null, p.value = null, $.value = "asc", d.value = "", F.value = !1, g.value = !1, M.value = wa(e.tabela.nome), m.value = Ia(e.tabela.nome), P.value = {}, s.value !== 1 ? s.value = 1 : ot(); } ), Ge( () => e.tabela.registros_por_consulta, () => { s.value !== 1 ? s.value = 1 : ot(); } ), Ge(t, () => { u.value = null, P.value = {}; }), { // state isDev: !1, tabela: C, carregando: r, erro: o, linhas: t, linhasPaginadas: Ye, quantidadeFiltrada: le, quantidade: i, menuAberto: u, valorBusca: d, paginaAtual: s, colunaOrdenacao: p, direcaoOrdenacao: $, totalPaginas: Ve, // computed exibirBusca: T, exibirFiltroAvancado: Ke, acoesCabecalho: O, temAcoesCabecalho: S, temAcoes: it, colunasEfetivas: f, rotulosColunas: X, modalColunasAberto: F, configColunas: M, temColunasInvisiveis: A, colunasInvisiveisEfetivas: pe, linhasExpandidas: P, abrirModalColunas: h, abrirModalFiltro: y, fecharModalColunas: w, salvarModalColunas: k, modalFiltroAberto: g, filtrosUi: m, salvarFiltrosAvancados: q, limparFiltrosAvancados: z, fecharModalFiltro: b, alternarLinhaExpandida: E, // actions alternarOrdenacao: vt, atualizarBusca: Nf, irParaPagina: Af, acoesDisponiveisPorLinha: Zo, possuiAcoes: Co, toggleMenu: Zf, // popup menuPopup: c, menuPopupPos: l }; } }), t_ = { class: "eli-tabela" }, n_ = { class: "eli-tabela__table" }; function r_(e, n, r, o, t, i) { const a = he("EliTabelaDebug"), u = he("EliTabelaEstados"), c = he("EliTabelaCabecalho"), l = he("EliTabelaModalColunas"), d = he("EliTabelaModalFiltroAvancado"), s = he("EliTabelaHead"), p = he("EliTabelaBody"), $ = he("EliTabelaMenuAcoes"), g = he("EliTabelaPaginacao"); return D(), Z("div", t_, [ ie(a, { isDev: e.isDev, menuAberto: e.menuAberto, menuPopupPos: e.menuPopupPos }, null, 8, ["isDev", "menuAberto", "menuPopupPos"]), e.carregando || e.erro || !e.linhas.length ? (D(), _e(u, { key: 0, carregando: e.carregando, erro: e.erro, mensagemVazio: e.tabela.mensagemVazio }, null, 8, ["carregando", "erro", "mensagemVazio"])) : (D(), Z(ze, { key: 1 }, [ e.exibirBusca || e.temAcoesCabecalho ? (D(), _e(c, { key: 0, exibirBusca: e.exibirBusca, exibirBotaoFiltroAvancado: e.exibirFiltroAvancado, valorBusca: e.valorBusca, acoesCabecalho: e.acoesCabecalho, onBuscar: e.atualizarBusca, onColunas: e.abrirModalColunas, onFiltroAvancado: e.abrirModalFiltro }, null, 8, ["exibirBusca", "exibirBotaoFiltroAvancado", "valorBusca", "acoesCabecalho", "onBuscar", "onColunas", "onFiltroAvancado"])) : be("", !0), ie(l, { aberto: e.modalColunasAberto, rotulosColunas: e.rotulosColunas, configInicial: e.configColunas, colunas: e.tabela.colunas, onFechar: e.fecharModalColunas, onSalvar: e.salvarModalColunas }, null, 8, ["aberto", "rotulosColunas", "configInicial", "colunas", "onFechar", "onSalvar"]), ie(d, { aberto: e.modalFiltroAberto, filtrosBase: e.tabela.filtroAvancado ?? [], modelo: e.filtrosUi, onFechar: e.fecharModalFiltro, onLimpar: e.limparFiltrosAvancados, onSalvar: e.salvarFiltrosAvancados }, null, 8, ["aberto", "filtrosBase", "modelo", "onFechar", "onLimpar", "onSalvar"]), N("table", n_, [ ie(s, { colunas: e.colunasEfetivas, temAcoes: e.temAcoes, temColunasInvisiveis: e.temColunasInvisiveis, colunaOrdenacao: e.colunaOrdenacao, direcaoOrdenacao: e.direcaoOrdenacao, onAlternarOrdenacao: e.alternarOrdenacao }, null, 8, ["colunas", "temAcoes", "temColunasInvisiveis", "colunaOrdenacao", "direcaoOrdenacao", "onAlternarOrdenacao"]), ie(p, { colunas: e.colunasEfetivas, colunasInvisiveis: e.colunasInvisiveisEfetivas, temColunasInvisiveis: e.temColunasInvisiveis, linhasExpandidas: e.linhasExpandidas, linhas: e.linhasPaginadas, temAcoes: e.temAcoes, menuAberto: e.menuAberto, possuiAcoes: e.possuiAcoes, toggleMenu: e.toggleMenu, alternarLinhaExpandida: e.alternarLinhaExpandida }, null, 8, ["colunas", "colunasInvisiveis", "temColunasInvisiveis", "linhasExpandidas", "linhas", "temAcoes", "menuAberto", "possuiAcoes", "toggleMenu", "alternarLinhaExpandida"]) ]), ie($, { ref: "menuPopup", menuAberto: e.menuAberto, posicao: e.menuPopupPos, acoes: e.menuAberto === null ? [] : e.acoesDisponiveisPorLinha(e.menuAberto), linha: e.menuAberto === null ? null : e.linhasPaginadas[e.menuAberto], onExecutar: n[0] || (n[0] = ({ acao: m, linha: y }) => { e.menuAberto = null, m.acao(y); }) }, null, 8, ["menuAberto", "posicao", "acoes", "linha"]), e.totalPaginas > 1 && e.quantidadeFiltrada > 0 ? (D(), _e(g, { key: 1, pagina: e.paginaAtual, totalPaginas: e.totalPaginas, maximoBotoes: e.tabela.maximo_botoes_paginacao, onAlterar: e.irParaPagina }, null, 8, ["pagina", "totalPaginas", "maximoBotoes", "onAlterar"])) : be("", !0) ], 64)) ]); } const i_ = /* @__PURE__ */ me(e_, [["render", r_]]), d_ = { install(e) { e.component("EliOlaMundo", cm), e.component("EliBotao", Ua), e.component("EliBadge", Mr), e.component("EliCartao", vm), e.component("EliTabela", i_), e.component("EliEntradaTexto", Fr), e.component("EliEntradaNumero", jf), e.component("EliEntradaDataHora", Tf); } }; export { Mr as EliBadge, Ua as EliBotao, vm as EliCartao, Tf as EliEntradaDataHora, jf as EliEntradaNumero, Fr as EliEntradaTexto, cm as EliOlaMundo, i_ as EliTabela, d_ as default };