(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@font-face{font-family:Google Sans;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://paiol.idz.one/estaticos/GoogleSans/GoogleSans-VariableFont_GRAD,opsz,wght.ttf) format("truetype")}@font-face{font-family:Google Sans;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://paiol.idz.one/estaticos/GoogleSans/GoogleSans-Italic-VariableFont_GRAD,opsz,wght.ttf) format("truetype")}:root{--eli-font-family: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;--v-font-family: var(--eli-font-family)}html,body{font-family:var(--eli-font-family)}:where([class^=eli-],[class*=" eli-"]){font-family:var(--eli-font-family);--v-font-family: var(--eli-font-family)}button,input,select,textarea{font-family:inherit}:root{--cor-eli-primaria-bg: #EEF3D0;--cor-eli-primaria-zebra: #F6F9E8;--cor-eli-primaria-suave: #BFC99C;--cor-eli-primaria-header: #ADCC44;--cor-eli-primaria-clara: #D4E290;--cor-eli-primaria-media: #ADCC44;--cor-eli-primaria-acao: #8AAF00;--cor-eli-primaria: #688C00;--cor-eli-primaria-escura: #4A6500;--cor-eli-primaria-texto: #2E3F00;--cor-eli-alerta-bg: #FAF3DF;--cor-eli-alerta-clara: #F5DC8A;--cor-eli-alerta: #DDB847;--cor-eli-alerta-forte: #8C6A00;--cor-eli-fundo: #F2F3EE;--cor-eli-borda: #D5D8CC;--cor-eli-borda-forte: #B5BAA8;--cor-eli-neutro: #5E6553;--cor-eli-neutro-escuro: #3E4436;--cor-eli-superficie: #FFFFFF;--cor-eli-sucesso: #2E7D32;--cor-eli-sucesso-bg: #E8F5E9;--cor-eli-erro: #C62828;--cor-eli-erro-bg: #FFEBEE;--cor-eli-info: #1565C0;--cor-eli-info-bg: #E3F2FD}.eli-badge .v-badge__badge,.eli-badge .v-badge__content{border-radius:var(--eli-badge-radius)!important}.eli-cartao{border-radius:12px}.eli-cartao__titulo{display:flex;align-items:center;justify-content:space-between;gap:12px}.eli-cartao__titulo-texto{min-width:0}.eli-cartao__conteudo{padding-top:8px}.eli-cartao__acoes{padding-top:0}.eli-cartao--cancelado{opacity:.85}.eli-data-hora{width:100%}.eli-entrada__prefixo,.eli-entrada__sufixo{opacity:.75;font-size:.9em;white-space:nowrap}.eli-entrada__prefixo{margin-right:6px}.eli-entrada__sufixo{margin-left:6px}.eli-tabela__acoes-cabecalho{display:inline-flex;gap:8px;flex-wrap:wrap}.eli-tabela__acoes-cabecalho-botao{display:inline-flex;align-items:center;gap:6px;height:var(--eli-tabela-cabecalho-controle-altura);padding:0 14px;border-radius:var(--eli-tabela-cabecalho-controle-radius);border:none;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria-escura);font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acoes-cabecalho-botao:hover,.eli-tabela__acoes-cabecalho-botao:focus-visible{background:var(--cor-eli-primaria-clara)}.eli-tabela__acoes-cabecalho-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__acoes-cabecalho-icone{display:inline-block}.eli-tabela__acoes-cabecalho-rotulo{line-height:1}.eli-tabela__acoes-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9999px;border:none;background:transparent;color:#0f172ab8;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acoes-toggle-icone{display:block}.eli-tabela__acoes-toggle:hover,.eli-tabela__acoes-toggle:focus-visible{background-color:#0f172a14;color:#0f172af2}.eli-tabela__acoes-toggle:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__acoes-toggle:disabled{cursor:default;color:#94a3b8cc;background:transparent}.eli-tabela__acoes-menu{min-width:180px;padding:6px 0;margin:0;list-style:none;background:var(--cor-eli-superficie);border:1px solid rgba(15,23,42,.08);border-radius:10px;box-shadow:0 12px 30px #0f172a2e;z-index:1000}.eli-tabela__acoes-item{margin:0}.eli-tabela__acoes-item-botao{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;border:none;background:transparent;font-size:.9rem;cursor:pointer;transition:background-color .2s ease}.eli-tabela__acoes-item-botao:hover,.eli-tabela__acoes-item-botao:focus-visible{background-color:#0f172a0f}.eli-tabela__acoes-item-botao:focus-visible{outline:2px solid currentColor;outline-offset:-2px}.eli-tabela__acoes-item-icone{flex-shrink:0}.eli-tabela__acoes-item-texto{flex:1;text-align:left}.eli-tabela__th--expander,.eli-tabela__td--expander{width:42px;padding:6px 8px;text-align:center;vertical-align:middle}.eli-tabela__expander-botao{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9999px;border:none;background:transparent;color:#0f172ab8;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__expander-botao:hover,.eli-tabela__expander-botao:focus-visible{background-color:#0f172a14;color:#0f172af2}.eli-tabela__expander-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__expander-botao--ativo{background-color:#0f172a0f;color:#0f172af2}.eli-tabela__td--detalhes{padding:12px}.eli-tabela__tr--detalhes .eli-tabela__td{border-bottom:1px solid rgba(0,0,0,.08)}.eli-tabela__detalhes{display:grid;gap:10px;padding-left:4px}.eli-tabela__detalhe{display:grid;grid-template-columns:180px 1fr;gap:10px;align-items:start}.eli-tabela__detalhe-rotulo{font-weight:600;color:#0f172ad9}.eli-tabela__detalhe-valor{min-width:0}@media(max-width:720px){.eli-tabela__detalhe{grid-template-columns:1fr}}.eli-tabela__th--selecao,.eli-tabela__td--selecao{width:48px;min-width:48px;max-width:48px;text-align:center;padding:0 8px;vertical-align:middle}.eli-tabela__checkbox{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:15px;height:15px;cursor:pointer;border:2px solid rgba(0,0,0,.54);border-radius:2px;margin:0;vertical-align:middle;position:relative;transition:all .2s ease-in-out;background-color:transparent;outline:none}.eli-tabela__checkbox:hover{border-color:#000000de}.eli-tabela__checkbox:checked,.eli-tabela__checkbox:indeterminate{background-color:var(--cor-eli-primaria);border-color:var(--cor-eli-primaria)}.eli-tabela__checkbox:checked:after{content:"";position:absolute;top:0;left:4px;width:4px;height:9px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.eli-tabela__checkbox:indeterminate:after{content:"";position:absolute;top:5px;left:2px;width:8px;height:2px;background-color:#fff;border-radius:1px}.eli-tabela__checkbox:focus-visible{box-shadow:0 0 0 2px var(--cor-eli-primaria-clara)}.eli-tabela{width:100%}.eli-tabela__table-wrapper{width:100%;overflow-x:auto}.eli-tabela__td--estados{padding:0}.eli-tabela__estados-inline{border:none;border-radius:0}.eli-tabela__table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid rgba(0,0,0,.12);border-radius:12px;overflow:visible}.eli-tabela__table thead tr:first-child th:first-child{border-top-left-radius:11px}.eli-tabela__table thead tr:first-child th:last-child{border-top-right-radius:11px}.eli-tabela__table tbody tr:last-child td:first-child{border-bottom-left-radius:11px}.eli-tabela__table tbody tr:last-child td:last-child{border-bottom-right-radius:11px}.eli-tabela__tbody{overflow:visible}.eli-tabela__tbody .eli-tabela__tr .eli-tabela__td{background:var(--cor-eli-superficie, #ffffff)}.eli-tabela__tbody .eli-tabela__tr--zebra .eli-tabela__td{background:var(--cor-eli-primaria-zebra, #F6F9E8)}.eli-tabela__th,.eli-tabela__td{padding:10px 12px;border-bottom:1px solid var(--cor-eli-borda);vertical-align:top}.eli-tabela__th{text-align:left;font-weight:600;font-size:.82rem;letter-spacing:.02em;text-transform:uppercase;color:var(--cor-eli-neutro-escuro, #3E4436);background:var(--cor-eli-primaria-suave, #BFC99C);border-bottom:2px solid var(--cor-eli-primaria-bg, #EEF3D0)}.eli-tabela__th--ordenavel{padding:0}.eli-tabela__th--ordenavel .eli-tabela__th-botao{padding:10px 12px}.eli-tabela__th-botao{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;background:transparent;border:none;font:inherit;color:inherit;cursor:pointer;text-align:left;transition:color .2s ease}.eli-tabela__th-botao:hover,.eli-tabela__th-botao:focus-visible{color:var(--cor-eli-primaria-texto, #2E3F00)}.eli-tabela__th-botao:focus-visible{outline:2px solid var(--cor-eli-primaria, #688C00);outline-offset:2px}.eli-tabela__th-botao--ativo{color:var(--cor-eli-primaria-texto, #2E3F00)}.eli-tabela__th-texto{flex:1;min-width:0;white-space:nowrap}.eli-tabela__th-icone{flex-shrink:0}.eli-tabela__th-icone--oculto{opacity:0}.eli-tabela__tr:last-child .eli-tabela__td{border-bottom:none}.eli-tabela__td--clicavel{cursor:pointer}.eli-tabela__td--clicavel:hover{background:#00000008}.eli-tabela--erro{display:flex;align-items:flex-start;gap:10px;border:1px solid rgba(220,53,69,.35);border-radius:12px;padding:12px}.eli-tabela--carregando{display:flex;align-items:center;gap:10px;border:1px dashed rgba(0,0,0,.25);border-radius:12px;padding:12px;opacity:.8}.eli-tabela__erro-titulo{font-weight:700;margin-bottom:4px}.eli-tabela__erro-mensagem{opacity:.9}.eli-tabela--vazio{display:flex;align-items:center;gap:10px;border:1px dashed rgba(0,0,0,.25);border-radius:12px;padding:12px;opacity:.8}.eli-tabela__estado-icone{flex-shrink:0;color:#0f172a73}.eli-tabela__estado-icone--erro{color:var(--cor-eli-erro)}.eli-tabela__estado-icone--spin{animation:eli-tabela-spin 1s linear infinite}@keyframes eli-tabela-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.eli-tabela__th--acoes{text-align:right;white-space:nowrap}.eli-tabela__td--acoes{white-space:nowrap;overflow:visible}.eli-tabela__acoes-container{display:flex;justify-content:flex-end;position:relative;z-index:1}.eli-tabela__acoes-container--aberto{z-index:200}.eli-tabela__rodape{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}.eli-tabela__paginacao{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:0;flex-wrap:wrap}.eli-tabela__acoes-inferiores{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}.eli-tabela__cabecalho{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:12px;flex-wrap:wrap;--eli-tabela-cabecalho-controle-altura: 34px;--eli-tabela-cabecalho-controle-radius: 8px}.eli-tabela__celula-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.eli-tabela__celula-tag{cursor:default}.eli-tabela__celula-tag-icone{margin-right:6px}.eli-tabela__texto-truncado{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top}.eli-tabela__celula-link{all:unset;display:inline;color:#2563eb;cursor:pointer;text-decoration:underline;text-decoration-color:var(--cor-eli-primaria-clara);text-underline-offset:2px}.eli-tabela__celula-link:hover{color:#1d4ed8;text-decoration-color:#1d4ed8bf}.eli-tabela__celula-link:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px;border-radius:4px}.eli-tabela__busca{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.eli-tabela__busca-input-wrapper{display:inline-flex;align-items:stretch;border-radius:var(--eli-tabela-cabecalho-controle-radius, 8px);border:1px solid rgba(15,23,42,.15);overflow:hidden;background:var(--cor-eli-superficie);height:var(--eli-tabela-cabecalho-controle-altura, 34px)}.eli-tabela__busca-input{height:100%;padding:0 12px;border:none;outline:none;font-size:.875rem;color:#0f172ad9}.eli-tabela__busca-input::-webkit-search-cancel-button,.eli-tabela__busca-input::-webkit-search-decoration{-webkit-appearance:none}.eli-tabela__busca-input::placeholder{color:var(--cor-eli-neutro)}.eli-tabela__busca-botao{display:inline-flex;align-items:center;justify-content:center;border:none;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria-escura);height:100%;padding:0 12px;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__busca-botao-icone{display:block}.eli-tabela__busca-botao:hover,.eli-tabela__busca-botao:focus-visible{background:var(--cor-eli-primaria-clara);color:var(--cor-eli-primaria-escura)}.eli-tabela__busca-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__busca-grupo{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.eli-tabela__filtro-icone-container{position:relative;display:inline-flex;align-items:center}.eli-tabela__filtro-badge{position:absolute;top:-7px;right:-9px;min-width:16px;height:16px;padding:0 4px;border-radius:9999px;background:var(--cor-eli-erro, #dc3545);color:#fff;font-size:.65rem;font-weight:700;line-height:16px;text-align:center;pointer-events:none;box-shadow:0 1px 3px #0003}.eli-tabela-modal-colunas__item{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:8px;border:1px solid var(--cor-eli-borda);background:var(--cor-eli-superficie);cursor:grab;-webkit-user-select:none;user-select:none;transition:box-shadow .15s ease,opacity .15s ease,border-color .15s ease}.eli-tabela-modal-colunas__item+.eli-tabela-modal-colunas__item{margin-top:6px}.eli-tabela-modal-colunas__item:hover{border-color:var(--cor-eli-borda-forte);box-shadow:0 2px 8px #0f172a14}.eli-tabela-modal-colunas__item:active{cursor:grabbing}.eli-tabela-modal-colunas__item--invisivel{opacity:.72}.eli-tabela-modal-colunas__item--arrastando{opacity:.15;border-style:dashed;border-color:var(--cor-eli-primaria-media)}.eli-tabela-modal-colunas__item-handle{color:var(--cor-eli-borda-forte);flex-shrink:0;transition:color .15s ease}.eli-tabela-modal-colunas__item:hover .eli-tabela-modal-colunas__item-handle{color:var(--cor-eli-neutro)}.eli-tabela-modal-colunas__item-texto{flex:1;min-width:0;font-size:.875rem;color:var(--cor-eli-neutro-escuro);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eli-tabela-modal-colunas__item-badge-icone{flex-shrink:0}.eli-tabela-modal-colunas__item-badge-icone--visivel{color:var(--cor-eli-primaria-acao)}.eli-tabela-modal-colunas__item-badge-icone--invisivel{color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__vazio{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 12px;text-align:center;font-size:.8rem;color:var(--cor-eli-neutro);line-height:1.5}.eli-tabela-modal-colunas__vazio-icone{color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__vazio-icone--ok{color:var(--cor-eli-primaria-acao)}.list-move,.list-enter-active,.list-leave-active{transition:all .25s cubic-bezier(.4,0,.2,1)}.list-enter-from,.list-leave-to{opacity:0;transform:scale(.95)}.list-leave-active{position:absolute;width:calc(100% - 16px)}.eli-tabela-modal-colunas__footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--cor-eli-borda);background:var(--cor-eli-fundo)}.eli-tabela-modal-colunas__botao{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 16px;border-radius:8px;border:1px solid var(--cor-eli-borda);background:var(--cor-eli-superficie);cursor:pointer;font-size:.875rem;font-weight:500;transition:background .2s ease,border-color .2s ease,color .2s ease}.eli-tabela-modal-colunas__botao--sec{color:var(--cor-eli-neutro-escuro)}.eli-tabela-modal-colunas__botao--sec:hover,.eli-tabela-modal-colunas__botao--sec:focus-visible{background:var(--cor-eli-fundo);border-color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__botao--sec:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela-modal-colunas__botao--prim{border:none;background:var(--cor-eli-primaria);color:#fff}.eli-tabela-modal-colunas__botao--prim:hover,.eli-tabela-modal-colunas__botao--prim:focus-visible{background:var(--cor-eli-primaria-escura)}.eli-tabela-modal-colunas__botao--prim:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}@media(max-width:720px){.eli-tabela-modal-colunas__conteudo{grid-template-columns:1fr}.eli-tabela-modal-colunas__coluna+.eli-tabela-modal-colunas__coluna{border-left:none;border-top:1px solid var(--cor-eli-borda)}}.eli-tabela-modal-colunas__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px}.eli-tabela-modal-colunas__modal{width:min(820px,100%);background:var(--cor-eli-superficie);border-radius:16px;border:1px solid var(--cor-eli-borda);box-shadow:0 24px 64px #0f172a38;overflow:hidden;display:flex;flex-direction:column}.eli-tabela-modal-colunas__header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--cor-eli-borda);background:var(--cor-eli-primaria-header, #ADCC44)}.eli-tabela-modal-colunas__header-info{display:flex;align-items:center;gap:8px}.eli-tabela-modal-colunas__header-icone{color:var(--cor-eli-primaria-escura);flex-shrink:0}.eli-tabela-modal-colunas__titulo{font-size:.95rem;font-weight:600;color:var(--cor-eli-primaria-texto);margin:0}.eli-tabela-modal-colunas__fechar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:none;background:transparent;cursor:pointer;color:var(--cor-eli-primaria-escura);transition:background .2s ease}.eli-tabela-modal-colunas__fechar:hover,.eli-tabela-modal-colunas__fechar:focus-visible{background:#0f172a1a}.eli-tabela-modal-colunas__fechar:focus-visible{outline:2px solid var(--cor-eli-primaria);outline-offset:2px}.eli-tabela-modal-colunas__instrucao{display:flex;align-items:center;gap:6px;padding:8px 16px;background:var(--cor-eli-fundo);border-bottom:1px solid var(--cor-eli-borda);font-size:.78rem;color:var(--cor-eli-neutro);line-height:1.4}.eli-tabela-modal-colunas__instrucao-icone{flex-shrink:0;color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__conteudo{display:grid;grid-template-columns:1fr 1fr;gap:0;flex:1}.eli-tabela-modal-colunas__coluna{display:flex;flex-direction:column;padding:12px}.eli-tabela-modal-colunas__coluna+.eli-tabela-modal-colunas__coluna{border-left:1px solid var(--cor-eli-borda)}.eli-tabela-modal-colunas__coluna-cabecalho{display:flex;align-items:center;gap:6px;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:6px 10px;border-radius:8px;margin-bottom:8px}.eli-tabela-modal-colunas__coluna-cabecalho--visiveis{color:var(--cor-eli-primaria-escura);background:var(--cor-eli-primaria-bg)}.eli-tabela-modal-colunas__coluna-cabecalho--invisiveis{color:var(--cor-eli-neutro-escuro);background:var(--cor-eli-fundo)}.eli-tabela-modal-colunas__coluna-contador{margin-left:auto;font-size:.72rem;font-weight:700;padding:1px 7px;border-radius:9999px;background:#0f172a14;color:inherit}.eli-tabela-modal-colunas__lista{flex:1;min-height:220px;border:1.5px dashed var(--cor-eli-borda);border-radius:10px;padding:8px;position:relative;overflow:hidden;transition:border-color .2s ease,background .2s ease}.eli-tabela-modal-colunas__lista--visiveis{background:#688c0005}.eli-tabela-modal-colunas__lista--invisiveis{background:var(--cor-eli-fundo)}.eli-tabela-modal-filtro__formula-container{display:flex;flex-direction:row;align-items:center;gap:8px;margin-left:auto}.eli-tabela-modal-filtro__formula-label{font-size:.82rem;font-weight:500;color:#0f172a8c;white-space:nowrap;flex-shrink:0}.eli-tabela-modal-filtro__formula-ajuda{position:relative;display:inline-flex;align-items:center;color:#0f172a59;cursor:help;transition:color .15s}.eli-tabela-modal-filtro__formula-ajuda:hover,.eli-tabela-modal-filtro__formula-ajuda:focus-visible{color:var(--cor-eli-primaria);outline:none}.eli-tabela-modal-filtro__formula-ajuda:hover .eli-tabela-modal-filtro__formula-tooltip,.eli-tabela-modal-filtro__formula-ajuda:focus-visible .eli-tabela-modal-filtro__formula-tooltip{opacity:1;pointer-events:auto;transform:translateY(0)}.eli-tabela-modal-filtro__formula-tooltip{position:absolute;bottom:calc(100% + 10px);right:0;width:280px;background:#0f172a;color:#e2e8f0;border-radius:10px;padding:14px 16px;font-size:.8rem;line-height:1.55;z-index:100;opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease;box-shadow:0 8px 30px #00000059}.eli-tabela-modal-filtro__formula-tooltip:after{content:"";position:absolute;top:100%;right:6px;border:6px solid transparent;border-top-color:#0f172a}.eli-tabela-modal-filtro__formula-tooltip strong{font-size:.82rem;color:var(--cor-eli-fundo);display:block;margin-bottom:6px}.eli-tabela-modal-filtro__formula-tooltip p{margin:6px 0 4px;color:#94a3b8}.eli-tabela-modal-filtro__formula-tooltip ul{margin:4px 0 8px 14px;padding:0}.eli-tabela-modal-filtro__formula-tooltip li{margin-bottom:3px;color:#cbd5e1}.eli-tabela-modal-filtro__formula-tooltip code{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;color:#7dd3fc;font-size:.78rem;background:#ffffff12;border-radius:4px;padding:1px 4px}.eli-tabela-modal-filtro__formula-input{width:220px;height:36px;border-radius:10px;border:1px solid rgba(15,23,42,.12);padding:0 10px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.85rem;background:var(--cor-eli-fundo);transition:border-color .15s,background .15s;box-sizing:border-box}.eli-tabela-modal-filtro__formula-input:focus{outline:none;border-color:var(--cor-eli-primaria);background:#fff}.eli-tabela-modal-filtro__formula-tooltip-nota{margin-top:8px;opacity:.75}.eli-tabela-modal-filtro__footer{display:flex;align-items:center;gap:8px;padding:14px 20px;border-top:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-filtro__footer-spacer{flex:1}.eli-tabela-modal-filtro__botao{display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 16px;border-radius:10px;border:1px solid rgba(15,23,42,.12);background:#fff;cursor:pointer;font-size:.875rem;font-weight:500;transition:background .15s,color .15s,border-color .15s}.eli-tabela-modal-filtro__botao:disabled{opacity:.45;cursor:not-allowed}.eli-tabela-modal-filtro__botao--sec:hover:not(:disabled),.eli-tabela-modal-filtro__botao--sec:focus-visible{background:#0f172a0d}.eli-tabela-modal-filtro__botao--prim{border:none;background:var(--cor-eli-primaria);color:#fff}.eli-tabela-modal-filtro__botao--prim:hover:not(:disabled),.eli-tabela-modal-filtro__botao--prim:focus-visible{background:var(--cor-eli-primaria-escura)}.eli-tabela-modal-filtro__botao--perigo{color:#dc2626d9;border-color:#dc26262e;background:#fff}.eli-tabela-modal-filtro__botao--perigo:hover:not(:disabled),.eli-tabela-modal-filtro__botao--perigo:focus-visible{background:#ef44440f;border-color:#dc26264d;color:#dc2626}@media(max-width:600px){.eli-tabela-modal-filtro__lista{grid-template-columns:1fr}.eli-tabela-modal-filtro__rodape-filtros{flex-direction:column;align-items:stretch}.eli-tabela-modal-filtro__acoes{flex-wrap:wrap}}.eli-tabela-modal-filtro-enter-active,.eli-tabela-modal-filtro-leave-active{transition:opacity .2s ease}.eli-tabela-modal-filtro-enter-active .eli-tabela-modal-filtro__modal,.eli-tabela-modal-filtro-leave-active .eli-tabela-modal-filtro__modal{transition:transform .2s ease,opacity .2s ease}.eli-tabela-modal-filtro-enter-from,.eli-tabela-modal-filtro-leave-to{opacity:0}.eli-tabela-modal-filtro-enter-from .eli-tabela-modal-filtro__modal,.eli-tabela-modal-filtro-leave-to .eli-tabela-modal-filtro__modal{transform:scale(.96);opacity:0}.eli-tabela-modal-filtro__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px}.eli-tabela-modal-filtro__modal{width:min(980px,100%);background:#fff;border-radius:14px;border:1px solid rgba(15,23,42,.1);box-shadow:0 18px 60px #0f172a40;overflow:hidden}.eli-tabela-modal-filtro__header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-filtro__header-titulo{display:flex;align-items:center;gap:10px}.eli-tabela-modal-filtro__titulo{font-size:1rem;font-weight:600;margin:0;color:#0f172ae6}.eli-tabela-modal-filtro__header-icone{color:var(--cor-eli-primaria);flex-shrink:0}.eli-tabela-modal-filtro__contador{font-size:.75rem;font-weight:500;color:var(--cor-eli-primaria);background:var(--cor-eli-primaria-bg);padding:2px 8px;border-radius:10px;letter-spacing:.01em}.eli-tabela-modal-filtro__fechar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;border:none;background:transparent;cursor:pointer;color:#0f172a8c;transition:background .15s,color .15s}.eli-tabela-modal-filtro__fechar:hover,.eli-tabela-modal-filtro__fechar:focus-visible{background:#0f172a0f;color:#0f172ae6}.eli-tabela-modal-filtro__conteudo{padding:20px}.eli-tabela-modal-filtro__vazio{opacity:.65;font-size:.85rem;padding:12px 0 4px}.eli-tabela-modal-filtro__estado-vazio{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 16px;color:#0f172a59;border:1px dashed rgba(15,23,42,.12);border-radius:10px;background:#0f172a04}.eli-tabela-modal-filtro__estado-vazio span{font-size:.85rem;font-weight:500}.eli-tabela-modal-filtro__lista{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.eli-tabela-modal-filtro__linha{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid rgba(15,23,42,.08);border-radius:10px;background:#0f172a04;transition:border-color .15s}.eli-tabela-modal-filtro__linha:hover{border-color:var(--cor-eli-primaria-clara)}.eli-tabela-modal-filtro__linha-header{display:flex;align-items:center;gap:8px}.eli-tabela-modal-filtro__rotulo-filtro{font-size:.82rem;font-weight:500;color:#0f172aa6;flex:1;min-width:0}.eli-tabela-modal-filtro__id-badge{display:inline-flex;align-items:center;justify-content:center;width:32px;height:24px;border-radius:6px;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.72rem;font-weight:600;letter-spacing:.01em;cursor:default;-webkit-user-select:none;user-select:none;flex-shrink:0}.eli-tabela-modal-filtro__entrada{min-width:0}.eli-tabela-modal-filtro__remover{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;border:none;background:transparent;cursor:pointer;color:#0f172a59;transition:background .15s,color .15s;margin-left:auto;flex-shrink:0}.eli-tabela-modal-filtro__remover:hover,.eli-tabela-modal-filtro__remover:focus-visible{background:#ef444414;color:#dc2626e6;border-color:#ef444433}.eli-tabela-modal-filtro__rodape-filtros{margin-top:14px;padding-top:14px;border-top:1px solid rgba(15,23,42,.07);display:flex;gap:12px;align-items:flex-end}.eli-tabela-modal-filtro__acoes{display:flex;gap:8px;align-items:center;flex-shrink:0}.eli-tabela-modal-filtro__select{height:36px;border-radius:10px;border:1px solid rgba(15,23,42,.12);padding:0 10px;background:#fff;font-size:.875rem;color:#0f172ad9;transition:border-color .15s}.eli-tabela-modal-filtro__select:focus{outline:none;border-color:var(--cor-eli-primaria)}.eli-tabela__paginacao{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}.eli-tabela__pagina-botao{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 14px;border-radius:9999px;border:1px solid rgba(15,23,42,.12);background:var(--cor-eli-superficie);font-size:.875rem;font-weight:500;color:#0f172ad1;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.eli-tabela__pagina-botao:hover,.eli-tabela__pagina-botao:focus-visible{background-color:var(--cor-eli-primaria-bg);border-color:var(--cor-eli-primaria-clara);color:var(--cor-eli-primaria-escura)}.eli-tabela__pagina-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__pagina-botao:disabled{cursor:default;opacity:.5;background:#94a3b814;border-color:#94a3b82e;color:#475569bf}.eli-tabela__pagina-botao--ativo{background:var(--cor-eli-primaria-bg);border-color:var(--cor-eli-primaria);color:var(--cor-eli-primaria-escura)}.eli-tabela__pagina-ellipsis{display:inline-flex;align-items:center;justify-content:center;width:32px;color:var(--cor-eli-neutro);font-size:.9rem}.eli-tabela__acao-inferior{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:8px;border:1px solid var(--cor-eli-primaria);background:var(--cor-eli-superficie);color:var(--cor-eli-primaria);font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acao-inferior:hover,.eli-tabela__acao-inferior:focus-visible{background-color:var(--cor-eli-primaria-bg)}.eli-tabela__acao-inferior:focus-visible{outline:2px solid var(--cor-eli-primaria);outline-offset:2px}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})(); import { defineComponent as Q, openBlock as _, createBlock as re, mergeProps as Ee, withCtx as ce, renderSlot as Xe, computed as D, resolveComponent as Y, createVNode as C, createElementVNode as g, createTextVNode as ue, toDisplayString as q, createCommentVNode as te, createElementBlock as j, ref as W, watch as Se, createSlots as hm, onMounted as zt, inject as $m, h as or, withModifiers as fe, Fragment as _e, renderList as Ie, resolveDynamicComponent as qe, normalizeClass as Ze, withDirectives as ar, withKeys as bm, vModelText as Yo, normalizeStyle as an, onUnmounted as _m, Teleport as Ho, TransitionGroup as po, Transition as ym, vModelSelect as km, onBeforeUnmount as Sm, nextTick as Im } from "vue"; import { VBtn as wm } from "vuetify/components/VBtn"; import { VBadge as zm } from "vuetify/components/VBadge"; import { VCard as Qo, VCardTitle as ea, VCardText as ta, VCardActions as na } from "vuetify/components/VCard"; import { VSwitch as xm, VTextarea as Dm, VSelect as ra, VChip as jm } from "vuetify/components"; import { VSwitch as Om } from "vuetify/components/VSwitch"; import { VTextField as fr } from "vuetify/components/VTextField"; import { VTextarea as Um } from "vuetify/components/VTextarea"; import { VSelect as ia } from "vuetify/components/VSelect"; import { VChip as Em } from "vuetify/components/VChip"; import { VContainer as Tm } from "vuetify/components/VGrid"; const Nm = Q({ 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 } } }), ee = (e, n) => { const r = e.__vccOpts || e; for (const [o, t] of n) r[o] = t; return r; }; function Pm(e, n, r, o, t, i) { return _(), re(wm, Ee({ 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: ce(() => [ Xe(e.$slots, "default") ]), _: 3 }, 16, ["color", "variant", "size", "disabled", "loading"]); } const oa = /* @__PURE__ */ ee(Nm, [["render", Pm]]), go = { suave: "4px", pill: "10px" }, Am = Q({ 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 = D(() => e.radius in go ? go[e.radius] : e.radius), r = D(() => e.dot || e.badge !== void 0 ? e.visible : !1), o = D(() => ({ "--eli-badge-radius": n.value })); return { showBadge: r, badgeStyle: o }; } }); function Zm(e, n, r, o, t, i) { return e.showBadge ? (_(), re(zm, Ee({ 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: ce(() => [ Xe(e.$slots, "default") ]), _: 3 }, 16, ["color", "location", "offset-x", "offset-y", "dot", "content", "style"])) : Xe(e.$slots, "default", { key: 1 }); } const vr = /* @__PURE__ */ ee(Am, [["render", Zm]]), Cm = Q({ name: "EliCartao", components: { EliBadge: vr }, 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 = D(() => e.status), o = D(() => { switch (e.status) { case "novo": return "primary"; case "rascunho": return "secondary"; case "vendido": return "success"; case "cancelado": return "error"; } }), t = D(() => `eli-cartao--${e.status}`); function i() { n("clicar", e.status); } return { rotuloStatus: r, corStatus: o, classeStatus: t, onClick: i }; } }), Mm = { class: "eli-cartao__titulo-texto" }, Fm = { class: "eli-cartao__status" }; function Lm(e, n, r, o, t, i) { const a = Y("EliBadge"); return _(), re(Qo, Ee({ class: ["eli-cartao", e.classeStatus], variant: e.variant }, e.$attrs), { default: ce(() => [ C(ea, { class: "eli-cartao__titulo" }, { default: ce(() => [ g("div", Mm, [ Xe(e.$slots, "titulo", {}, () => [ ue(q(e.titulo), 1) ]) ]), g("div", Fm, [ C(a, { badge: e.rotuloStatus, radius: "pill", color: e.corStatus }, { default: ce(() => [...n[0] || (n[0] = [ g("span", null, null, -1) ])]), _: 1 }, 8, ["badge", "color"]) ]) ]), _: 3 }), C(ta, { class: "eli-cartao__conteudo" }, { default: ce(() => [ Xe(e.$slots, "default") ]), _: 3 }), e.$slots.acoes ? (_(), re(na, { key: 0, class: "eli-cartao__acoes" }, { default: ce(() => [ Xe(e.$slots, "acoes") ]), _: 3 })) : te("", !0) ]), _: 3 }, 16, ["variant", "class"]); } const Rm = /* @__PURE__ */ ee(Cm, [["render", Lm]]), Jm = Q({ name: "EliEntradaConfirmacao", components: { VSwitch: xm }, inheritAttrs: !1, props: { value: { type: Boolean, default: !1 }, opcoes: { type: Object, required: !0 } }, emits: { "update:value": (e) => !0, input: (e) => !0, change: (e) => !0, focus: () => !0, blur: () => !0 }, setup(e, { attrs: n, emit: r }) { const o = D({ get: () => e.value, set: (i) => { r("update:value", i), r("input", i), r("change", i); } }), t = D(() => { var i, a, l; return o.value && ((i = e.opcoes) != null && i.rotuloAtivo) ? e.opcoes.rotuloAtivo : !o.value && ((a = e.opcoes) != null && a.rotuloInativo) ? e.opcoes.rotuloInativo : ((l = e.opcoes) == null ? void 0 : l.rotulo) ?? ""; }); return { attrs: n, emit: r, localValue: o, rotuloExibido: t }; } }); function Bm(e, n, r, o, t, i) { var a, l, c; return _(), re(Om, Ee({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (u) => e.localValue = u), label: e.rotuloExibido, color: ((a = e.opcoes) == null ? void 0 : a.cor) ?? "primary", disabled: !!((l = e.opcoes) != null && l.desabilitado), density: ((c = e.opcoes) == null ? void 0 : c.densidade) ?? "comfortable", "hide-details": "" }, e.attrs, { onFocus: n[1] || (n[1] = () => e.emit("focus")), onBlur: n[2] || (n[2] = () => e.emit("blur")) }), null, 16, ["modelValue", "label", "color", "disabled", "density"]); } const Vm = /* @__PURE__ */ ee(Jm, [["render", Bm]]); function aa(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var nn = { exports: {} }, qm = nn.exports, ho; function la() { return ho || (ho = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(qm, (function() { var r = 1e3, o = 6e4, t = 36e5, i = "millisecond", a = "second", l = "minute", c = "hour", u = "day", d = "week", s = "month", m = "quarter", f = "year", p = "date", h = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, S = /\[([^\]]+)]|YYYY|YY|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, w = { 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(z) { var x = ["th", "st", "nd", "rd"], I = z % 100; return "[" + z + (x[(I - 20) % 10] || x[I] || x[0]) + "]"; } }, L = function(z, x, I) { var N = String(z); return !N || N.length >= x ? z : "" + Array(x + 1 - N.length).join(I) + z; }, A = { s: L, z: function(z) { var x = -z.utcOffset(), I = Math.abs(x), N = Math.floor(I / 60), U = I % 60; return (x <= 0 ? "+" : "-") + L(N, 2, "0") + ":" + L(U, 2, "0"); }, m: function z(x, I) { if (x.date() < I.date()) return -z(I, x); var N = 12 * (I.year() - x.year()) + (I.month() - x.month()), U = x.clone().add(N, s), R = I - U < 0, J = x.clone().add(N + (R ? -1 : 1), s); return +(-(N + (I - U) / (R ? U - J : J - U)) || 0); }, a: function(z) { return z < 0 ? Math.ceil(z) || 0 : Math.floor(z); }, p: function(z) { return { M: s, y: f, w: d, d: u, D: p, h: c, m: l, s: a, ms: i, Q: m }[z] || String(z || "").toLowerCase().replace(/s$/, ""); }, u: function(z) { return z === void 0; } }, Z = "en", k = {}; k[Z] = w; var b = "$isDayjsObject", T = function(z) { return z instanceof Ae || !(!z || !z[b]); }, G = function z(x, I, N) { var U; if (!x) return Z; if (typeof x == "string") { var R = x.toLowerCase(); k[R] && (U = R), I && (k[R] = I, U = R); var J = x.split("-"); if (!U && J.length > 1) return z(J[0]); } else { var H = x.name; k[H] = x, U = H; } return !N && U && (Z = U), U || !N && Z; }, P = function(z, x) { if (T(z)) return z.clone(); var I = typeof x == "object" ? x : {}; return I.date = z, I.args = arguments, new Ae(I); }, X = A; X.l = G, X.i = T, X.w = function(z, x) { return P(z, { locale: x.$L, utc: x.$u, x: x.$x, $offset: x.$offset }); }; var Ae = (function() { function z(I) { this.$L = G(I.locale, null, !0), this.parse(I), this.$x = this.$x || I.x || {}, this[b] = !0; } var x = z.prototype; return x.parse = function(I) { this.$d = (function(N) { var U = N.date, R = N.utc; if (U === null) return /* @__PURE__ */ new Date(NaN); if (X.u(U)) return /* @__PURE__ */ new Date(); if (U instanceof Date) return new Date(U); if (typeof U == "string" && !/Z$/i.test(U)) { var J = U.match(E); if (J) { var H = J[2] - 1 || 0, ae = (J[7] || "0").substring(0, 3); return R ? new Date(Date.UTC(J[1], H, J[3] || 1, J[4] || 0, J[5] || 0, J[6] || 0, ae)) : new Date(J[1], H, J[3] || 1, J[4] || 0, J[5] || 0, J[6] || 0, ae); } } return new Date(U); })(I), this.init(); }, x.init = function() { var I = this.$d; this.$y = I.getFullYear(), this.$M = I.getMonth(), this.$D = I.getDate(), this.$W = I.getDay(), this.$H = I.getHours(), this.$m = I.getMinutes(), this.$s = I.getSeconds(), this.$ms = I.getMilliseconds(); }, x.$utils = function() { return X; }, x.isValid = function() { return this.$d.toString() !== h; }, x.isSame = function(I, N) { var U = P(I); return this.startOf(N) <= U && U <= this.endOf(N); }, x.isAfter = function(I, N) { return P(I) < this.startOf(N); }, x.isBefore = function(I, N) { return this.endOf(N) < P(I); }, x.$g = function(I, N, U) { return X.u(I) ? this[N] : this.set(U, I); }, x.unix = function() { return Math.floor(this.valueOf() / 1e3); }, x.valueOf = function() { return this.$d.getTime(); }, x.startOf = function(I, N) { var U = this, R = !!X.u(N) || N, J = X.p(I), H = function(We, ye) { var Re = X.w(U.$u ? Date.UTC(U.$y, ye, We) : new Date(U.$y, ye, We), U); return R ? Re : Re.endOf(u); }, ae = function(We, ye) { return X.w(U.toDate()[We].apply(U.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ye)), U); }, se = this.$W, me = this.$M, pe = this.$D, Le = "set" + (this.$u ? "UTC" : ""); switch (J) { case f: return R ? H(1, 0) : H(31, 11); case s: return R ? H(1, me) : H(0, me + 1); case d: var ge = this.$locale().weekStart || 0, Te = (se < ge ? se + 7 : se) - ge; return H(R ? pe - Te : pe + (6 - Te), me); case u: case p: return ae(Le + "Hours", 0); case c: return ae(Le + "Minutes", 1); case l: return ae(Le + "Seconds", 2); case a: return ae(Le + "Milliseconds", 3); default: return this.clone(); } }, x.endOf = function(I) { return this.startOf(I, !1); }, x.$set = function(I, N) { var U, R = X.p(I), J = "set" + (this.$u ? "UTC" : ""), H = (U = {}, U[u] = J + "Date", U[p] = J + "Date", U[s] = J + "Month", U[f] = J + "FullYear", U[c] = J + "Hours", U[l] = J + "Minutes", U[a] = J + "Seconds", U[i] = J + "Milliseconds", U)[R], ae = R === u ? this.$D + (N - this.$W) : N; if (R === s || R === f) { var se = this.clone().set(p, 1); se.$d[H](ae), se.init(), this.$d = se.set(p, Math.min(this.$D, se.daysInMonth())).$d; } else H && this.$d[H](ae); return this.init(), this; }, x.set = function(I, N) { return this.clone().$set(I, N); }, x.get = function(I) { return this[X.p(I)](); }, x.add = function(I, N) { var U, R = this; I = Number(I); var J = X.p(N), H = function(me) { var pe = P(R); return X.w(pe.date(pe.date() + Math.round(me * I)), R); }; if (J === s) return this.set(s, this.$M + I); if (J === f) return this.set(f, this.$y + I); if (J === u) return H(1); if (J === d) return H(7); var ae = (U = {}, U[l] = o, U[c] = t, U[a] = r, U)[J] || 1, se = this.$d.getTime() + I * ae; return X.w(se, this); }, x.subtract = function(I, N) { return this.add(-1 * I, N); }, x.format = function(I) { var N = this, U = this.$locale(); if (!this.isValid()) return U.invalidDate || h; var R = I || "YYYY-MM-DDTHH:mm:ssZ", J = X.z(this), H = this.$H, ae = this.$m, se = this.$M, me = U.weekdays, pe = U.months, Le = U.meridiem, ge = function(ye, Re, ht, Ht) { return ye && (ye[Re] || ye(N, R)) || ht[Re].slice(0, Ht); }, Te = function(ye) { return X.s(H % 12 || 12, ye, "0"); }, We = Le || function(ye, Re, ht) { var Ht = ye < 12 ? "AM" : "PM"; return ht ? Ht.toLowerCase() : Ht; }; return R.replace(S, (function(ye, Re) { return Re || (function(ht) { switch (ht) { case "YY": return String(N.$y).slice(-2); case "YYYY": return X.s(N.$y, 4, "0"); case "M": return se + 1; case "MM": return X.s(se + 1, 2, "0"); case "MMM": return ge(U.monthsShort, se, pe, 3); case "MMMM": return ge(pe, se); case "D": return N.$D; case "DD": return X.s(N.$D, 2, "0"); case "d": return String(N.$W); case "dd": return ge(U.weekdaysMin, N.$W, me, 2); case "ddd": return ge(U.weekdaysShort, N.$W, me, 3); case "dddd": return me[N.$W]; case "H": return String(H); case "HH": return X.s(H, 2, "0"); case "h": return Te(1); case "hh": return Te(2); case "a": return We(H, ae, !0); case "A": return We(H, ae, !1); case "m": return String(ae); case "mm": return X.s(ae, 2, "0"); case "s": return String(N.$s); case "ss": return X.s(N.$s, 2, "0"); case "SSS": return X.s(N.$ms, 3, "0"); case "Z": return J; } return null; })(ye) || J.replace(":", ""); })); }, x.utcOffset = function() { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); }, x.diff = function(I, N, U) { var R, J = this, H = X.p(N), ae = P(I), se = (ae.utcOffset() - this.utcOffset()) * o, me = this - ae, pe = function() { return X.m(J, ae); }; switch (H) { case f: R = pe() / 12; break; case s: R = pe(); break; case m: R = pe() / 3; break; case d: R = (me - se) / 6048e5; break; case u: R = (me - se) / 864e5; break; case c: R = me / t; break; case l: R = me / o; break; case a: R = me / r; break; default: R = me; } return U ? R : X.a(R); }, x.daysInMonth = function() { return this.endOf(s).$D; }, x.$locale = function() { return k[this.$L]; }, x.locale = function(I, N) { if (!I) return this.$L; var U = this.clone(), R = G(I, N, !0); return R && (U.$L = R), U; }, x.clone = function() { return X.w(this.$d, this); }, x.toDate = function() { return new Date(this.valueOf()); }, x.toJSON = function() { return this.isValid() ? this.toISOString() : null; }, x.toISOString = function() { return this.$d.toISOString(); }, x.toString = function() { return this.$d.toUTCString(); }, z; })(), rt = Ae.prototype; return P.prototype = rt, [["$ms", i], ["$s", a], ["$m", l], ["$H", c], ["$W", u], ["$M", s], ["$y", f], ["$D", p]].forEach((function(z) { rt[z[1]] = function(x) { return this.$g(x, z[0], z[1]); }; })), P.extend = function(z, x) { return z.$i || (z(x, Ae, P), z.$i = !0), P; }, P.locale = G, P.isDayjs = T, P.unix = function(z) { return P(1e3 * z); }, P.en = k[Z], P.Ls = k, P.p = {}, P; })); })(nn)), nn.exports; } var Km = la(); const Ce = /* @__PURE__ */ aa(Km), Wm = Q({ 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 = D(() => 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 = D(() => o.value.modo ?? "dataHora"), i = D(() => !!e.desabilitado), a = D( () => t.value === "data" ? "date" : "datetime-local" ); function l(h) { return t.value === "data" ? Ce(h).format("YYYY-MM-DD") : Ce(h).format("YYYY-MM-DDTHH:mm"); } function c(h) { return t.value === "data" ? Ce(`${h}T00:00`).format() : Ce(h).format(); } const u = D(() => e.value !== void 0 ? e.value ?? null : e.modelValue), d = D({ get: () => u.value ? l(u.value) : "", set: (h) => { const E = h && h.length > 0 ? h : null; if (!E) { n("update:value", null), n("input", null), n("change", null), n("update:modelValue", null), n("alterar", null); return; } const S = c(E); n("update:value", S), n("input", S), n("change", S), n("update:modelValue", S), n("alterar", S); } }), s = D(() => { const h = o.value.min; if (h) return l(h); }), m = D(() => { const h = o.value.max; if (h) return l(h); }); function f() { n("foco"), n("focus"); } function p() { n("desfoco"), n("blur"); } return { attrs: r, valor: d, tipoInput: a, minLocal: s, maxLocal: m, opcoesEfetivas: o, desabilitadoEfetivo: i, emitCompatFocus: f, emitCompatBlur: p }; } }), Gm = { class: "eli-data-hora" }; function Xm(e, n, r, o, t, i) { return _(), j("div", Gm, [ C(fr, Ee({ 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 ua = /* @__PURE__ */ ee(Wm, [["render", Xm]]); function Ym(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 Hm(e) { const n = (e ?? "").trim().replace(/,/g, "."); if (!n) return null; const r = Number(n); return Number.isNaN(r) ? null : r; } function ir(e, n) { return e == null ? "" : n === null ? String(e).replace(/\./g, ",") : Number(e).toFixed(Math.max(0, n)).replace(/\./g, ","); } function $o(e) { return (e ?? "").replace(/\D+/g, ""); } function Qm(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 ef(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 tf(e) { const n = e.match(/^(\d+)[.,]$/); if (!n) return null; const r = Number(n[1]); return Number.isNaN(r) ? null : r; } const nf = Q({ 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 = D(() => { var d; const u = (d = e.opcoes) == null ? void 0 : d.precisao; return u == null ? null : Ym(u); }), t = D(() => o.value === 0), i = D(() => { const u = o.value; return u !== null && u > 0; }), a = W(""), l = W(void 0); Se( () => e.value, (u) => { u !== l.value && (a.value = ir(u, o.value), l.value = u); }, { immediate: !0 } ); function c(u) { if (i.value) { const f = o.value ?? 0, p = $o(u), h = p ? Number(p) : 0, E = 10 ** f, S = p ? h / E : null, w = S === null ? null : S; l.value = w, r("update:value", w), r("input", w), r("change", w), a.value = ir(w, f); return; } const d = t.value ? $o(u) : Qm(u), s = t.value ? d : ef(d, o.value); let m = null; if (s) { const p = (t.value ? null : tf(s)) ?? Hm(s); m = p === null ? null : p; } l.value = m, r("update:value", m), r("input", m), r("change", m), o.value === null && s ? a.value = s.replace(/\./g, ",") : a.value = ir(m, o.value); } return { attrs: n, emit: r, displayValue: a, isInteiro: t, onUpdateModelValue: c }; } }), rf = { class: "eli-entrada__prefixo" }, of = { class: "eli-entrada__sufixo" }; function af(e, n, r, o, t, i) { var a, l, c, u; return _(), re(fr, Ee({ "model-value": e.displayValue, label: (a = e.opcoes) == null ? void 0 : a.rotulo, placeholder: (l = e.opcoes) == null ? void 0 : l.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")) }), hm({ _: 2 }, [ (c = e.opcoes) != null && c.prefixo ? { name: "prepend-inner", fn: ce(() => [ g("span", rf, q(e.opcoes.prefixo), 1) ]), key: "0" } : void 0, (u = e.opcoes) != null && u.sufixo ? { name: "append-inner", fn: ce(() => [ g("span", of, q(e.opcoes.sufixo), 1) ]), key: "1" } : void 0 ]), 1040, ["model-value", "label", "placeholder", "type", "inputmode", "pattern", "onUpdate:modelValue"]); } const ca = /* @__PURE__ */ ee(nf, [["render", af]]), lf = Q({ name: "EliEntradaParagrafo", components: { VTextarea: Dm }, inheritAttrs: !1, props: { value: { type: [String, null], default: void 0 }, opcoes: { type: Object, required: !0 } }, emits: { "update:value": (e) => !0, input: (e) => !0, change: (e) => !0, focus: () => !0, blur: () => !0 }, setup(e, { attrs: n, emit: r }) { const o = D({ get: () => e.value, set: (t) => { r("update:value", t), r("input", t), r("change", t); } }); return { attrs: n, emit: r, localValue: o }; } }); function uf(e, n, r, o, t, i) { var a, l, c, u, d, s, m, f, p, h, E, S; return _(), re(Um, Ee({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (w) => e.localValue = w), label: (a = e.opcoes) == null ? void 0 : a.rotulo, placeholder: (l = e.opcoes) == null ? void 0 : l.placeholder, rows: ((c = e.opcoes) == null ? void 0 : c.linhas) ?? 4, counter: (u = e.opcoes) == null ? void 0 : u.limiteCaracteres, maxlength: (d = e.opcoes) == null ? void 0 : d.limiteCaracteres, clearable: !!((s = e.opcoes) != null && s.limpavel), error: !!((m = e.opcoes) != null && m.erro), "error-messages": (f = e.opcoes) == null ? void 0 : f.mensagensErro, hint: (p = e.opcoes) == null ? void 0 : p.dica, "persistent-hint": !!((h = e.opcoes) != null && h.dicaPersistente), density: ((E = e.opcoes) == null ? void 0 : E.densidade) ?? "comfortable", variant: ((S = e.opcoes) == null ? void 0 : S.variante) ?? "outlined", "auto-grow": "" }, e.attrs, { onFocus: n[1] || (n[1] = () => e.emit("focus")), onBlur: n[2] || (n[2] = () => e.emit("blur")) }), null, 16, ["modelValue", "label", "placeholder", "rows", "counter", "maxlength", "clearable", "error", "error-messages", "hint", "persistent-hint", "density", "variant"]); } const sa = /* @__PURE__ */ ee(lf, [["render", uf]]), cf = Q({ name: "EliEntradaSelecao", components: { VSelect: ra }, inheritAttrs: !1, props: { value: { type: [String, null], default: void 0 }, opcoes: { type: Object, required: !0 } }, emits: { "update:value": (e) => !0, input: (e) => !0, change: (e) => !0, focus: () => !0, blur: () => !0 }, setup(e, { attrs: n, emit: r }) { const o = W([]), t = W(!1), i = D({ get: () => e.value, set: (l) => { r("update:value", l), r("input", l), r("change", l); } }); async function a() { t.value = !0; try { const l = await e.opcoes.itens(), c = Array.isArray(l) ? l : []; o.value = [...c]; } finally { t.value = !1; } } return Se( () => e.opcoes.itens, () => { a(); } ), zt(() => { a(); }), Se( o, (l) => { console.debug("[EliEntradaSelecao] itens:", l); }, { deep: !0 } ), { attrs: n, emit: r, localValue: i, itens: o, carregando: t }; } }); function sf(e, n, r, o, t, i) { var a, l, c, u, d, s, m, f, p; return _(), re(ia, Ee({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (h) => e.localValue = h), label: (a = e.opcoes) == null ? void 0 : a.rotulo, placeholder: (l = e.opcoes) == null ? void 0 : l.placeholder, items: e.itens, "item-title": "rotulo", "item-value": "chave", loading: e.carregando, disabled: e.carregando, "menu-props": { maxHeight: 320, zIndex: 99999 }, clearable: !!((c = e.opcoes) != null && c.limpavel), error: !!((u = e.opcoes) != null && u.erro), "error-messages": (d = e.opcoes) == null ? void 0 : d.mensagensErro, hint: (s = e.opcoes) == null ? void 0 : s.dica, "persistent-hint": !!((m = e.opcoes) != null && m.dicaPersistente), density: ((f = e.opcoes) == null ? void 0 : f.densidade) ?? "comfortable", variant: ((p = e.opcoes) == null ? void 0 : p.variante) ?? "outlined" }, e.attrs, { onFocus: n[1] || (n[1] = () => e.emit("focus")), onBlur: n[2] || (n[2] = () => e.emit("blur")) }), null, 16, ["modelValue", "label", "placeholder", "items", "loading", "disabled", "clearable", "error", "error-messages", "hint", "persistent-hint", "density", "variant"]); } const da = /* @__PURE__ */ ee(cf, [["render", sf]]), df = Q({ name: "EliEntradaSelecaoMultipla", components: { VSelect: ra }, inheritAttrs: !1, props: { value: { type: [Array, null], default: () => [] }, opcoes: { type: Object, required: !0 } }, emits: { "update:value": (e) => !0, input: (e) => !0, change: (e) => !0, focus: () => !0, blur: () => !0 }, setup(e, { attrs: n, emit: r }) { const o = W([]), t = W(!1), i = D({ get: () => e.value ?? [], set: (l) => { const c = Array.isArray(l) ? l : []; r("update:value", c), r("input", c), r("change", c); } }); async function a() { t.value = !0; try { const l = await e.opcoes.itens(); o.value = [...Array.isArray(l) ? l : []]; } finally { t.value = !1; } } return Se( () => e.opcoes.itens, () => { a(); } ), zt(() => { a(); }), { attrs: n, emit: r, localValue: i, itens: o, carregando: t }; } }); function mf(e, n, r, o, t, i) { var a, l, c, u, d, s, m, f, p; return _(), re(ia, Ee({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (h) => e.localValue = h), label: (a = e.opcoes) == null ? void 0 : a.rotulo, placeholder: (l = e.opcoes) == null ? void 0 : l.placeholder, items: e.itens, "item-title": "rotulo", "item-value": "chave", loading: e.carregando, disabled: e.carregando, "menu-props": { maxHeight: 320, zIndex: 99999 }, clearable: !!((c = e.opcoes) != null && c.limpavel), error: !!((u = e.opcoes) != null && u.erro), "error-messages": (d = e.opcoes) == null ? void 0 : d.mensagensErro, hint: (s = e.opcoes) == null ? void 0 : s.dica, "persistent-hint": !!((m = e.opcoes) != null && m.dicaPersistente), density: ((f = e.opcoes) == null ? void 0 : f.densidade) ?? "comfortable", variant: ((p = e.opcoes) == null ? void 0 : p.variante) ?? "outlined", multiple: "", chips: "", "closable-chips": "" }, e.attrs, { onFocus: n[1] || (n[1] = () => e.emit("focus")), onBlur: n[2] || (n[2] = () => e.emit("blur")) }), null, 16, ["modelValue", "label", "placeholder", "items", "loading", "disabled", "clearable", "error", "error-messages", "hint", "persistent-hint", "density", "variant"]); } const ff = /* @__PURE__ */ ee(df, [["render", mf]]); function vf(e) { return e.replace(/\D+/g, ""); } function pf(e) { const n = vf(e); return n ? n.replace(/^(\d{5})(\d)/, "$1-$2").slice(0, 9) : ""; } function gf(e) { return e.replace(/\D+/g, ""); } function hf(e) { const n = gf(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 $f(e) { return e.replace(/\D+/g, ""); } function bf(e) { const n = $f(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) : ""; } const _f = Q({ 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 = D(() => { var u; return ((u = e.opcoes) == null ? void 0 : u.formato) ?? "texto"; }), t = D({ get: () => e.value, set: (u) => { r("update:value", u), r("input", u), r("change", u); } }), i = D(() => o.value === "email" ? "email" : o.value === "url" ? "url" : "text"), a = D(() => { if (o.value === "telefone") return "tel"; if (o.value === "cpfCnpj" || o.value === "cep") return "numeric"; }); function l(u) { switch (o.value) { case "telefone": return bf(u); case "cpfCnpj": return hf(u); case "cep": return pf(u); default: return u; } } function c(u) { const d = u.target, s = l(d.value); d.value = s, t.value = s; } return { attrs: n, emit: r, localValue: t, inputHtmlType: i, inputMode: a, onInput: c }; } }); function yf(e, n, r, o, t, i) { var a, l, c, u; return _(), re(fr, Ee({ 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: (l = e.opcoes) == null ? void 0 : l.placeholder, counter: (c = e.opcoes) == null ? void 0 : c.limiteCaracteres, maxlength: (u = e.opcoes) == null ? void 0 : u.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 pr = /* @__PURE__ */ ee(_f, [["render", yf]]); /** * @license @lucide/vue v1.17.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 = (e) => e === ""; /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const kf = (...e) => e.filter((n, r, o) => !!n && n.trim() !== "" && o.indexOf(n) === r).join(" ").trim(); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const _o = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Sf = (e) => e.replace( /^([A-Z])|[\s-_]+(\w)/g, (n, r, o) => o ? o.toUpperCase() : r.toLowerCase() ); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const If = (e) => { const n = Sf(e); return n.charAt(0).toUpperCase() + n.slice(1); }; /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ var it = { 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 v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const wf = Symbol("lucide-icons"); function zf() { return $m(wf, {}); } /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const xf = ({ name: e, iconNode: n, absoluteStrokeWidth: r, "absolute-stroke-width": o, strokeWidth: t, "stroke-width": i, size: a, color: l, ...c }, { slots: u }) => { const { size: d, color: s, strokeWidth: m = 2, absoluteStrokeWidth: f = !1, class: p = "" } = zf(), h = D(() => { const E = bo(r) || bo(o) || r === !0 || o === !0 || f === !0, S = t || i || m || it["stroke-width"]; return E ? Number(S) * 24 / Number(a ?? d ?? it.width) : S; }); return or( "svg", { ...it, ...c, width: a ?? d ?? it.width, height: a ?? d ?? it.height, stroke: l ?? s ?? it.stroke, "stroke-width": h.value, class: kf( "lucide", p, ...e ? [`lucide-${_o(If(e))}-icon`, `lucide-${_o(e)}`] : ["lucide-icon"] ) }, [...n.map((E) => or(...E)), ...u.default ? [u.default()] : []] ); }; /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const de = (e, n) => (r, { slots: o, attrs: t }) => or( xf, { ...t, ...r, iconNode: n, name: e }, o.default ? { default: o.default } : void 0 ); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Df = [ ["path", { d: "M12 5v14", key: "s699le" }], ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }] ], yo = de("arrow-down", Df); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const jf = [ ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }], ["path", { d: "M12 19V5", key: "x0mq9r" }] ], ko = de("arrow-up", jf); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Of = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Uf = de("check", Of); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Ef = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], So = de("chevron-down", Ef); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Tf = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Io = de("chevron-right", Tf); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Nf = [ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }], ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }] ], Pf = de("circle-alert", Nf); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Af = [ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }], ["path", { d: "M12 17h.01", key: "p32p05" }] ], Zf = de("circle-question-mark", Af); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Cf = [ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }], ["path", { d: "M12 3v18", key: "108xh3" }] ], Mf = de("columns-2", Cf); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Ff = [ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }], ["path", { d: "M9 3v18", key: "fh3hqa" }], ["path", { d: "M15 3v18", key: "14nvp0" }] ], Lf = de("columns-3", Ff); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Rf = [ ["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" }] ], Jf = de("ellipsis-vertical", Rf); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Bf = [ [ "path", { d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49", key: "ct8e1f" } ], ["path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242", key: "151rxh" }], [ "path", { d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143", key: "13bj9a" } ], ["path", { d: "m2 2 20 20", key: "1ooewy" }] ], Vf = de("eye-off", Bf); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const qf = [ [ "path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0", key: "1nclc0" } ], ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }] ], Kf = de("eye", qf); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Wf = [ [ "path", { d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z", key: "sc7q7i" } ] ], ma = de("funnel", Wf); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Gf = [ ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }], ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }], ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }], ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }], ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }], ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }] ], Xf = de("grip-vertical", Gf); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Yf = [ ["polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12", key: "o97t9d" }], [ "path", { d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z", key: "oot6mr" } ] ], Hf = de("inbox", Yf); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Qf = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ev = de("loader-circle", Qf); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const tv = [ ["path", { d: "M5 12h14", key: "1ays0h" }], ["path", { d: "M12 5v14", key: "s699le" }] ], nv = de("plus", tv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const rv = [ ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }], ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }] ], iv = de("search", rv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const ov = [ ["path", { d: "M10 11v6", key: "nco0om" }], ["path", { d: "M14 11v6", key: "outv1u" }], ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }], ["path", { d: "M3 6h18", key: "d0wm0j" }], ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }] ], av = de("trash-2", ov); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const lv = [ ["path", { d: "M18 6 6 18", key: "1bl5f8" }], ["path", { d: "m6 6 12 12", key: "d8bk6v" }] ], fa = de("x", lv); var rn = { exports: {} }, uv = rn.exports, wo; function cv() { return wo || (wo = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(uv, (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 l(u, d, s, m) { return i.fromToBase(u, d, s, m); } t.en.relativeTime = a, i.fromToBase = function(u, d, s, m, f) { for (var p, h, E, S = s.$locale().relativeTime || a, w = 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" }], L = w.length, A = 0; A < L; A += 1) { var Z = w[A]; Z.d && (p = m ? t(u).diff(s, Z.d, !0) : s.diff(u, Z.d, !0)); var k = (r.rounding || Math.round)(Math.abs(p)); if (E = p > 0, k <= Z.r || !Z.r) { k <= 1 && A > 0 && (Z = w[A - 1]); var b = S[Z.l]; f && (k = f("" + k)), h = typeof b == "string" ? b.replace("%d", k) : b(k, d, Z.l, E); break; } } if (d) return h; var T = E ? S.future : S.past; return typeof T == "function" ? T(h) : T.replace("%s", h); }, i.to = function(u, d) { return l(u, d, this, !0); }, i.from = function(u, d) { return l(u, d, this); }; var c = function(u) { return u.$u ? t.utc() : t(); }; i.toNow = function(u) { return this.to(c(this), u); }, i.fromNow = function(u) { return this.from(c(this), u); }; }; })); })(rn)), rn.exports; } var sv = cv(); const dv = /* @__PURE__ */ aa(sv); var on = { exports: {} }, mv = on.exports, zo; function fv() { return zo || (zo = 1, (function(e, n) { (function(r, o) { e.exports = o(la()); })(mv, (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; })); })(on)), on.exports; } fv(); Ce.extend(dv); Ce.locale("pt-br"); const vv = Q({ name: "EliTabelaCelulaData", props: { dados: { type: Object, required: !1 } }, setup(e) { return { textoData: D(() => { var t, i; const r = (t = e.dados) == null ? void 0 : t.valor; if (!r) return ""; const o = ((i = e.dados) == null ? void 0 : i.formato) ?? "data"; return o === "relativo" ? Ce(r).fromNow() : o === "data_hora" ? Ce(r).format("DD/MM/YYYY HH:mm") : Ce(r).format("DD/MM/YYYY"); }) }; } }), pv = { key: 1 }; function gv(e, n, r, o, t, i) { var a; return (a = e.dados) != null && a.acao ? (_(), j("button", { key: 0, type: "button", class: "eli-tabela__celula-link", onClick: n[0] || (n[0] = fe((l) => e.dados.acao(), ["stop", "prevent"])) }, q(e.textoData), 1)) : (_(), j("span", pv, q(e.textoData), 1)); } const hv = /* @__PURE__ */ ee(vv, [["render", gv]]), $v = Q({ name: "EliTabelaCelulaNumero", components: {}, props: { dados: { type: Object } }, setup(e) { return { textoNumero: D(() => { var l, c, u, d, s; const r = String((l = e.dados) == null ? void 0 : l.numero).replace(".", ","), o = (u = (c = e.dados) == null ? void 0 : c.prefixo) == null ? void 0 : u.trim(), t = (s = (d = e.dados) == null ? void 0 : d.sufixo) == null ? void 0 : s.trim(), i = o ? `${o} ` : "", a = t ? ` ${t}` : ""; return `${i}${r}${a}`; }) }; } }), bv = { key: 1 }; function _v(e, n, r, o, t, i) { var a; return (a = e.dados) != null && a.acao ? (_(), j("button", { key: 0, type: "button", class: "eli-tabela__celula-link", onClick: n[0] || (n[0] = fe((l) => e.dados.acao(), ["stop", "prevent"])) }, q(e.textoNumero), 1)) : (_(), j("span", bv, q(e.textoNumero), 1)); } const yv = /* @__PURE__ */ ee($v, [["render", _v]]), kv = Q({ name: "EliTabelaCelulaTags", components: { VChip: jm }, props: { dados: { type: Object, required: !1 } } }), Sv = { class: "eli-tabela__celula-tags" }; function Iv(e, n, r, o, t, i) { var a; return _(), j("div", Sv, [ (_(!0), j(_e, null, Ie(((a = e.dados) == null ? void 0 : a.opcoes) ?? [], (l, c) => (_(), re(Em, { key: c, class: "eli-tabela__celula-tag", size: "small", variant: "tonal", color: l.cor, clickable: !!l.acao, onClick: fe((u) => { var d; return (d = l.acao) == null ? void 0 : d.call(l); }, ["stop", "prevent"]) }, { default: ce(() => [ l.icone ? (_(), re(qe(l.icone), { key: 0, class: "eli-tabela__celula-tag-icone", size: 14 })) : te("", !0), g("span", null, q(l.rotulo), 1) ]), _: 2 }, 1032, ["color", "clickable", "onClick"]))), 128)) ]); } const wv = /* @__PURE__ */ ee(kv, [["render", Iv]]), zv = Q({ name: "EliTabelaCelulaTextoSimples", components: {}, props: { dados: { type: Object } }, data() { return {}; }, methods: {} }), xv = { key: 1 }; function Dv(e, n, r, o, t, i) { var a, l, c; return (a = e.dados) != null && a.acao ? (_(), j("button", { key: 0, type: "button", class: "eli-tabela__celula-link", onClick: n[0] || (n[0] = fe((u) => e.dados.acao(), ["stop", "prevent"])) }, q((l = e.dados) == null ? void 0 : l.texto), 1)) : (_(), j("span", xv, q((c = e.dados) == null ? void 0 : c.texto), 1)); } const jv = /* @__PURE__ */ ee(zv, [["render", Dv]]), Ov = Q({ name: "EliTabelaCelulaTextoTruncado", props: { dados: { type: Object } } }), Uv = ["title"], Ev = ["title"]; function Tv(e, n, r, o, t, i) { var a, l, c, u, d; return (a = e.dados) != null && a.acao ? (_(), j("button", { key: 0, type: "button", class: "eli-tabela__texto-truncado eli-tabela__celula-link", title: (l = e.dados) == null ? void 0 : l.texto, onClick: n[0] || (n[0] = fe((s) => { var m, f; return (f = (m = e.dados) == null ? void 0 : m.acao) == null ? void 0 : f.call(m); }, ["stop", "prevent"])) }, q((c = e.dados) == null ? void 0 : c.texto), 9, Uv)) : (_(), j("span", { key: 1, class: "eli-tabela__texto-truncado", title: (u = e.dados) == null ? void 0 : u.texto }, q((d = e.dados) == null ? void 0 : d.texto), 9, Ev)); } const Nv = /* @__PURE__ */ ee(Ov, [["render", Tv]]), Pv = { textoSimples: jv, textoTruncado: Nv, numero: yv, tags: wv, data: hv }, Av = Q({ name: "EliTabelaCelula", props: { celula: { // `ComponenteCelula` é uma tupla `readonly [tipo, dados]`. type: Array, required: !0 } }, setup(e) { const n = D(() => e.celula[0]), r = D(() => e.celula[1]), o = D(() => Pv[n.value]), t = D(() => r.value); return { Componente: o, dadosParaComponente: t }; } }); function Zv(e, n, r, o, t, i) { return _(), re(qe(e.Componente), { dados: e.dadosParaComponente }, null, 8, ["dados"]); } const va = /* @__PURE__ */ ee(Av, [["render", Zv]]), Cv = Q({ name: "EliTabelaDetalhesLinha", components: { EliTabelaCelula: va }, props: { linha: { type: [Object, String, Number, Array], required: !0 }, colunasInvisiveis: { // biome-ignore lint/suspicious/noExplicitAny: dynamic column type: Array, required: !0 } } }), Mv = { class: "eli-tabela__detalhes" }, Fv = { class: "eli-tabela__detalhe-rotulo" }, Lv = { class: "eli-tabela__detalhe-valor" }; function Rv(e, n, r, o, t, i) { const a = Y("EliTabelaCelula"); return _(), j("div", Mv, [ (_(!0), j(_e, null, Ie(e.colunasInvisiveis, (l, c) => (_(), j("div", { key: `det-${c}-${l.rotulo}`, class: "eli-tabela__detalhe" }, [ g("div", Fv, q(l.rotulo), 1), g("div", Lv, [ C(a, { celula: l.celula(e.linha) }, null, 8, ["celula"]) ]) ]))), 128)) ]); } const Jv = /* @__PURE__ */ ee(Cv, [["render", Rv]]), Bv = Q({ name: "EliTabelaBody", components: { EliTabelaCelula: va, EliTabelaDetalhesLinha: Jv, MoreVertical: Jf, ChevronRight: Io, ChevronDown: So }, props: { colunas: { // biome-ignore lint/suspicious/noExplicitAny: dynamic column type: Array, required: !0 }, colunasInvisiveis: { // biome-ignore lint/suspicious/noExplicitAny: dynamic column 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 }, mostrarSelecao: { type: Boolean, default: !1 }, isSelecionado: { type: Function, required: !0 }, alternarSelecao: { type: Function, required: !0 } }, setup() { return { ChevronRight: Io, ChevronDown: So }; } }), Vv = { class: "eli-tabela__tbody" }, qv = ["aria-expanded", "aria-label", "title", "onClick"], Kv = ["checked", "onChange"], Wv = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label", "title", "onClick"], Gv = ["colspan"]; function Xv(e, n, r, o, t, i) { const a = Y("EliTabelaCelula"), l = Y("MoreVertical"), c = Y("EliTabelaDetalhesLinha"); return _(), j("tbody", Vv, [ (_(!0), j(_e, null, Ie(e.linhas, (u, d) => { var s, m, f, p, h, E; return _(), j(_e, { key: `grp-${d}` }, [ g("tr", { class: Ze(["eli-tabela__tr", [d % 2 === 1 ? "eli-tabela__tr--zebra" : void 0]]) }, [ e.temColunasInvisiveis ? (_(), j("td", { class: "eli-tabela__td eli-tabela__td--expander", key: `td-${d}-exp` }, [ g("button", { type: "button", class: Ze(["eli-tabela__expander-botao", [(s = e.linhasExpandidas) != null && s[d] ? "eli-tabela__expander-botao--ativo" : void 0]]), "aria-expanded": (m = e.linhasExpandidas) != null && m[d] ? "true" : "false", "aria-label": (f = e.linhasExpandidas) != null && f[d] ? "Ocultar colunas ocultas" : "Mostrar colunas ocultas", title: (p = e.linhasExpandidas) != null && p[d] ? "Ocultar detalhes" : "Mostrar detalhes", onClick: fe((S) => e.alternarLinhaExpandida(d), ["stop"]) }, [ (_(), re(qe((h = e.linhasExpandidas) != null && h[d] ? e.ChevronDown : e.ChevronRight), { class: "eli-tabela__expander-icone", size: 16, "stroke-width": 2, "aria-hidden": "true" })) ], 10, qv) ])) : te("", !0), e.mostrarSelecao ? (_(), j("td", { class: "eli-tabela__td eli-tabela__td--selecao", key: `td-${d}-selecao` }, [ g("input", { type: "checkbox", class: "eli-tabela__checkbox", checked: e.isSelecionado(u), onChange: (S) => e.alternarSelecao(u), onClick: n[0] || (n[0] = fe(() => { }, ["stop"])), "aria-label": "Selecionar linha" }, null, 40, Kv) ])) : te("", !0), (_(!0), j(_e, null, Ie(e.colunas, (S, w) => (_(), j("td", { key: `td-${d}-${w}`, class: "eli-tabela__td" }, [ C(a, { celula: S.celula(u) }, null, 8, ["celula"]) ]))), 128)), e.temAcoes ? (_(), j("td", { class: "eli-tabela__td eli-tabela__td--acoes", key: `td-${d}-acoes` }, [ g("div", { class: Ze(["eli-tabela__acoes-container", [e.menuAberto === d ? "eli-tabela__acoes-container--aberto" : void 0]]) }, [ g("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: fe((S) => e.toggleMenu(d, S), ["stop"]) }, [ C(l, { class: "eli-tabela__acoes-toggle-icone", size: 18, "stroke-width": 2 }) ], 8, Wv) ], 2) ])) : te("", !0) ], 2), e.temColunasInvisiveis && ((E = e.linhasExpandidas) != null && E[d]) ? (_(), j("tr", { key: 0, class: Ze(["eli-tabela__tr eli-tabela__tr--detalhes", [d % 2 === 1 ? "eli-tabela__tr--zebra" : void 0]]) }, [ g("td", { class: "eli-tabela__td eli-tabela__td--detalhes", colspan: (e.temColunasInvisiveis ? 1 : 0) + (e.mostrarSelecao ? 1 : 0) + e.colunas.length + (e.temAcoes ? 1 : 0) }, [ C(c, { linha: u, colunasInvisiveis: e.colunasInvisiveis }, null, 8, ["linha", "colunasInvisiveis"]) ], 8, Gv) ], 2)) : te("", !0) ], 64); }), 128)) ]); } const Yv = /* @__PURE__ */ ee(Bv, [["render", Xv]]), Hv = Q({ name: "EliTabelaCaixaDeBusca", components: { Search: iv }, props: { modelo: { type: String, required: !1, default: "" } }, emits: { buscar(e) { return typeof e == "string"; } }, setup(e, { emit: n }) { const r = W(e.modelo ?? ""); Se( () => e.modelo, (t) => { t !== void 0 && t !== r.value && (r.value = t); } ); function o() { n("buscar", r.value.trim()); } return { texto: r, emitirBusca: o }; } }), Qv = { class: "eli-tabela__busca" }, ep = { class: "eli-tabela__busca-input-wrapper" }; function tp(e, n, r, o, t, i) { const a = Y("Search"); return _(), j("div", Qv, [ g("div", ep, [ ar(g("input", { id: "eli-tabela-busca", "onUpdate:modelValue": n[0] || (n[0] = (l) => e.texto = l), type: "search", class: "eli-tabela__busca-input", placeholder: "Digite termos para filtrar", onKeyup: n[1] || (n[1] = bm((...l) => e.emitirBusca && e.emitirBusca(...l), ["enter"])) }, null, 544), [ [Yo, e.texto] ]), g("button", { type: "button", class: "eli-tabela__busca-botao", "aria-label": "Buscar", title: "Buscar", onClick: n[2] || (n[2] = (...l) => e.emitirBusca && e.emitirBusca(...l)) }, [ C(a, { class: "eli-tabela__busca-botao-icone", size: 16, "stroke-width": 2, "aria-hidden": "true" }) ]) ]) ]); } const np = /* @__PURE__ */ ee(Hv, [["render", tp]]), rp = Q({ name: "EliTabelaCabecalho", components: { Columns3: Lf, EliTabelaCaixaDeBusca: np, Filter: ma }, props: { exibirBusca: { type: Boolean, required: !0 }, exibirBotaoColunas: { type: Boolean, required: !1, default: !0 }, exibirBotaoFiltroAvancado: { type: Boolean, required: !1, default: !1 }, filtrosAtivosResumo: { type: Object, required: !1, default: () => ({ quantidade: 0, rotulos: [] }) }, valorBusca: { type: String, required: !0 }, parametrosConsulta: { // biome-ignore lint/suspicious/noExplicitAny: dynamic params type: Object, required: !1 }, acoesCabecalho: { type: Array, required: !0 } }, emits: { buscar(e) { return typeof e == "string"; }, colunas() { return !0; }, filtroAvancado() { return !0; } }, setup(e, { emit: n }) { const r = D(() => e.acoesCabecalho.length > 0), o = D(() => { const { quantidade: l, rotulos: c } = e.filtrosAtivosResumo; return l === 0 ? "Filtro avançado" : `Filtros ativos (${l}): ${c.map((u) => `• ${u}`).join(` `)}`; }); function t(l) { n("buscar", l); } function i() { n("colunas"); } function a() { n("filtroAvancado"); } return { temAcoesCabecalho: r, tooltipFiltro: o, emitBuscar: t, emitColunas: i, emitFiltroAvancado: a }; } }), ip = { class: "eli-tabela__cabecalho" }, op = { key: 0, class: "eli-tabela__busca-grupo" }, ap = ["title"], lp = { class: "eli-tabela__filtro-icone-container" }, up = { key: 0, class: "eli-tabela__filtro-badge" }, cp = { key: 1, class: "eli-tabela__acoes-cabecalho" }, sp = ["onClick"], dp = { class: "eli-tabela__acoes-cabecalho-rotulo" }; function mp(e, n, r, o, t, i) { const a = Y("Columns3"), l = Y("Filter"), c = Y("EliTabelaCaixaDeBusca"); return _(), j("div", ip, [ e.exibirBusca ? (_(), j("div", op, [ e.exibirBotaoColunas ? (_(), j("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)) }, [ C(a, { size: 15, "stroke-width": 2 }), n[2] || (n[2] = ue(" Colunas ", -1)) ])) : te("", !0), e.exibirBotaoFiltroAvancado ? (_(), j("button", { key: 1, type: "button", class: "eli-tabela__acoes-cabecalho-botao eli-tabela__acoes-cabecalho-botao--filtro", title: e.tooltipFiltro, onClick: n[1] || (n[1] = (...u) => e.emitFiltroAvancado && e.emitFiltroAvancado(...u)) }, [ g("span", lp, [ C(l, { size: 15, "stroke-width": 2 }), e.filtrosAtivosResumo.quantidade > 0 ? (_(), j("span", up, q(e.filtrosAtivosResumo.quantidade), 1)) : te("", !0) ]), n[3] || (n[3] = ue(" Filtro ", -1)) ], 8, ap)) : te("", !0), C(c, { modelo: e.valorBusca, onBuscar: e.emitBuscar }, null, 8, ["modelo", "onBuscar"]) ])) : te("", !0), e.temAcoesCabecalho ? (_(), j("div", cp, [ (_(!0), j(_e, null, Ie(e.acoesCabecalho, (u, d) => (_(), j("button", { key: `${u.rotulo}-${d}`, type: "button", class: "eli-tabela__acoes-cabecalho-botao", style: an(u.cor ? { backgroundColor: u.cor, color: "#fff" } : void 0), onClick: (s) => u.acao(e.parametrosConsulta) }, [ u.icone ? (_(), re(qe(u.icone), { key: 0, class: "eli-tabela__acoes-cabecalho-icone", size: 16, "stroke-width": 2 })) : te("", !0), g("span", dp, q(u.rotulo), 1) ], 12, sp))), 128)) ])) : te("", !0) ]); } const fp = /* @__PURE__ */ ee(rp, [["render", mp]]), vp = Q({ name: "EliTabelaDebug", props: { isDev: { type: Boolean, required: !0 }, menuAberto: { type: [Number, Object], default: null }, menuPopupPos: { type: Object, required: !0 } }, setup(e) { const n = () => { let r = document.getElementById("eli-tabela-debug-style"); e.isDev ? r || (r = document.createElement("style"), r.id = "eli-tabela-debug-style", r.textContent = ` html, body { overflow-x: auto !important; } #app, .v-application__wrap, .v-application { padding-right: 360px !important; box-sizing: border-box !important; } .v-container, .stack { overflow-x: auto !important; max-width: 100% !important; } `, document.head.appendChild(r)) : r && r.remove(); }; Se(() => e.isDev, n), zt(n), _m(() => { const r = document.getElementById("eli-tabela-debug-style"); r && r.remove(); }); } }), pp = { key: 0, style: { position: "fixed", right: "0", top: "0", bottom: "0", width: "360px", "z-index": "999999", background: "rgba(20, 20, 20, 0.95)", color: "#32CD32", padding: "20px 16px", "font-family": "'Courier New', Courier, monospace", "font-size": "12px", "overflow-y": "auto", "border-left": "1px solid #333", display: "flex", "flex-direction": "column", gap: "6px" } }, gp = { style: { color: "#bbb" } }, hp = { style: { color: "#fff" } }, $p = { style: { color: "#bbb" } }, bp = { style: { color: "#fff" } }, _p = { style: { color: "#fff" } }, yp = { style: { "margin-top": "8px", "white-space": "pre-wrap", "word-break": "break-all" } }; function kp(e, n, r, o, t, i) { return e.isDev ? (_(), j("div", pp, [ n[3] || (n[3] = g("div", { style: { "font-weight": "bold", color: "#fff", "margin-bottom": "8px", "text-transform": "uppercase", "letter-spacing": "1px", "border-bottom": "1px solid #333", "padding-bottom": "8px" } }, " EliTabela // Log Terminal ", -1)), g("div", gp, [ n[0] || (n[0] = ue("menuAberto: ", -1)), g("span", hp, q(e.menuAberto), 1) ]), g("div", $p, [ n[1] || (n[1] = ue("menuPos: top=", -1)), g("span", bp, q(e.menuPopupPos.top), 1), n[2] || (n[2] = ue(", left=", -1)), g("span", _p, q(e.menuPopupPos.left), 1) ]), g("div", yp, [ Xe(e.$slots, "default") ]) ])) : te("", !0); } const Sp = /* @__PURE__ */ ee(vp, [["render", kp]]), Ip = Q({ name: "EliTabelaEstados", components: { AlertCircle: Pf, Inbox: Hf, LoaderCircle: ev }, props: { carregando: { type: Boolean, required: !0 }, erro: { type: [String, Object], default: null }, mensagemVazio: { type: String, required: !1, default: void 0 } } }), wp = { key: 0, class: "eli-tabela eli-tabela--carregando", "aria-busy": "true" }, zp = { key: 1, class: "eli-tabela eli-tabela--erro", role: "alert" }, xp = { class: "eli-tabela__erro-mensagem" }, Dp = { key: 2, class: "eli-tabela eli-tabela--vazio" }; function jp(e, n, r, o, t, i) { const a = Y("LoaderCircle"), l = Y("AlertCircle"), c = Y("Inbox"); return e.carregando ? (_(), j("div", wp, [ C(a, { class: "eli-tabela__estado-icone eli-tabela__estado-icone--spin", size: 22, "stroke-width": 2 }), n[0] || (n[0] = g("span", null, "Carregando…", -1)) ])) : e.erro ? (_(), j("div", zp, [ C(l, { class: "eli-tabela__estado-icone eli-tabela__estado-icone--erro", size: 18, "stroke-width": 2 }), g("div", null, [ n[1] || (n[1] = g("div", { class: "eli-tabela__erro-titulo" }, "Erro", -1)), g("div", xp, q(e.erro), 1) ]) ])) : (_(), j("div", Dp, [ C(c, { class: "eli-tabela__estado-icone", size: 22, "stroke-width": 1.5 }), g("span", null, q(e.mensagemVazio ?? "Nenhum registro encontrado."), 1) ])); } const Op = /* @__PURE__ */ ee(Ip, [["render", jp]]), Up = Q({ name: "EliTabelaHead", components: { ArrowUp: ko, ArrowDown: yo }, props: { colunas: { // biome-ignore lint/suspicious/noExplicitAny: dynamic column type: Array, required: !0 }, temAcoes: { type: Boolean, required: !0 }, temColunasInvisiveis: { type: Boolean, required: !0 }, colunaOrdenacao: { type: [String, Object], default: null }, direcaoOrdenacao: { type: String, required: !0 }, mostrarSelecao: { type: Boolean, default: !1 }, todosSelecionados: { type: Boolean, default: !1 }, algunsSelecionados: { type: Boolean, default: !1 } }, emits: { alternarOrdenacao(e) { return typeof e == "string" && e.length > 0; }, "alternar-selecao-todos": () => !0 }, setup(e, { emit: n }) { function r(t) { return t.coluna_ordem !== void 0 && t.coluna_ordem !== null; } function o(t) { n("alternarOrdenacao", t); } return { ArrowUp: ko, ArrowDown: yo, isOrdenavel: r, emitAlternarOrdenacao: o }; } }), Ep = { class: "eli-tabela__thead" }, Tp = { class: "eli-tabela__tr eli-tabela__tr--header" }, Np = { key: 0, class: "eli-tabela__th eli-tabela__th--expander", scope: "col" }, Pp = { key: 1, class: "eli-tabela__th eli-tabela__th--selecao", scope: "col" }, Ap = ["checked", "indeterminate"], Zp = ["onClick"], Cp = { class: "eli-tabela__th-texto" }, Mp = { key: 1, class: "eli-tabela__th-label" }, Fp = { key: 2, class: "eli-tabela__th eli-tabela__th--acoes", scope: "col" }; function Lp(e, n, r, o, t, i) { const a = Y("ArrowUp"); return _(), j("thead", Ep, [ g("tr", Tp, [ e.temColunasInvisiveis ? (_(), j("th", Np)) : te("", !0), e.mostrarSelecao ? (_(), j("th", Pp, [ g("input", { type: "checkbox", class: "eli-tabela__checkbox", checked: e.todosSelecionados, indeterminate: e.algunsSelecionados, onChange: n[0] || (n[0] = (l) => e.$emit("alternar-selecao-todos")), "aria-label": "Selecionar todos os itens da página" }, null, 40, Ap) ])) : te("", !0), (_(!0), j(_e, null, Ie(e.colunas, (l, c) => (_(), j("th", { key: `th-${c}`, class: Ze(["eli-tabela__th", [e.isOrdenavel(l) ? "eli-tabela__th--ordenavel" : void 0]]), scope: "col" }, [ e.isOrdenavel(l) ? (_(), j("button", { key: 0, type: "button", class: Ze(["eli-tabela__th-botao", [ e.colunaOrdenacao === String(l.coluna_ordem) ? "eli-tabela__th-botao--ativo" : void 0 ]]), onClick: (u) => e.emitAlternarOrdenacao(String(l.coluna_ordem)) }, [ g("span", Cp, q(l.rotulo), 1), e.colunaOrdenacao === String(l.coluna_ordem) ? (_(), re(qe(e.direcaoOrdenacao === "asc" ? e.ArrowUp : e.ArrowDown), { key: 0, class: "eli-tabela__th-icone", size: 16, "stroke-width": 2, "aria-hidden": "true" })) : (_(), re(a, { key: 1, class: "eli-tabela__th-icone eli-tabela__th-icone--oculto", size: 16, "stroke-width": 2, "aria-hidden": "true" })) ], 10, Zp)) : (_(), j("span", Mp, q(l.rotulo), 1)) ], 2))), 128)), e.temAcoes ? (_(), j("th", Fp, " Ações ")) : te("", !0) ]) ]); } const Rp = /* @__PURE__ */ ee(Up, [["render", Lp]]), Jp = Q({ name: "EliTabelaMenuAcoes", props: { menuAberto: { type: [Number, Object], default: null }, posicao: { type: Object, required: !0 }, acoes: { // biome-ignore lint/suspicious/noExplicitAny: dynamic typing needed type: Array, required: !0 }, linha: { // Aceita qualquer tipo de linha (objeto, string, etc.) sem validação runtime. type: [Object, String, Number, Array], default: null } }, emits: { // biome-ignore lint/suspicious/noExplicitAny: dynamic typing needed executar(e) { return e !== null && typeof e == "object"; } }, setup(e, { emit: n }) { const r = W(null), o = D(() => e.acoes.length > 0); function t(i) { e.linha && n("executar", { acao: i.acao, linha: e.linha }); } return { menuEl: r, possuiAcoes: o, emitExecutar: t }; } }), Bp = { class: "eli-teleport-container" }, Vp = ["id", "aria-labelledby"], qp = ["aria-label", "title", "onClick"], Kp = { class: "eli-tabela__acoes-item-texto" }; function Wp(e, n, r, o, t, i) { return _(), j("div", Bp, [ (_(), re(Ho, { to: "body" }, [ e.menuAberto !== null && e.possuiAcoes ? (_(), j("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: an({ position: "fixed", top: `${e.posicao.top}px`, left: `${e.posicao.left}px`, zIndex: 999999 }) }, [ (_(!0), j(_e, null, Ie(e.acoes, (a) => (_(), j("li", { key: `acao-${e.menuAberto}-${a.indice}`, class: "eli-tabela__acoes-item", role: "none" }, [ g("button", { type: "button", class: "eli-tabela__acoes-item-botao", style: an({ color: a.acao.cor }), role: "menuitem", "aria-label": a.acao.rotulo, title: a.acao.rotulo, onClick: fe((l) => e.emitExecutar(a), ["stop"]) }, [ (_(), re(qe(a.acao.icone), { class: "eli-tabela__acoes-item-icone", size: 16, "stroke-width": 2 })), g("span", Kp, q(a.acao.rotulo), 1) ], 12, qp) ]))), 128)) ], 12, Vp)) : te("", !0) ])) ]); } const Gp = /* @__PURE__ */ ee(Jp, [["render", Wp]]); function Xp({ aberto: e, rotulosColunas: n, configInicial: r, colunas: o }) { const t = W([]), i = W([]), a = W(null); function l() { var A, Z; const m = n.value, f = (((A = r.value.visiveis) == null ? void 0 : A.length) ?? 0) > 0 || (((Z = r.value.invisiveis) == null ? void 0 : Z.length) ?? 0) > 0, p = new Set( o.value.filter((k) => k.visivel === !1).map((k) => k.rotulo) ), h = f ? new Set(r.value.invisiveis ?? []) : p, E = m.filter((k) => !h.has(k)), S = r.value.visiveis ?? [], w = new Set(E), L = []; for (const k of S) w.has(k) && L.push(k); for (const k of E) L.includes(k) || L.push(k); t.value = L, i.value = m.filter((k) => h.has(k)); } Se( () => [e.value, n.value, r.value, o.value], () => { e.value && l(); }, { deep: !0, immediate: !0 } ); function c(m, f) { a.value = f, m.dataTransfer && (m.dataTransfer.setData("text/plain", f), m.dataTransfer.effectAllowed = "move"); } function u() { a.value = null; } function d(m, f) { const p = a.value; if (!p || p === m) return; const h = t.value.indexOf(p), E = i.value.indexOf(p), S = h >= 0 ? "visiveis" : E >= 0 ? "invisiveis" : null; if (!S) return; const w = S === "visiveis" ? t.value : i.value, L = f === "visiveis" ? t.value : i.value, A = w.indexOf(p), Z = L.indexOf(m); w.splice(A, 1), L.splice(Z, 0, p); } function s(m) { const f = a.value; if (!f) return; const p = m === "visiveis" ? t.value : i.value; if (p[p.length - 1] === f) return; const h = t.value.indexOf(f), E = i.value.indexOf(f); h >= 0 && t.value.splice(h, 1), E >= 0 && i.value.splice(E, 1), p.push(f); } return { visiveisLocal: t, invisiveisLocal: i, itemSendoArrastado: a, onDragStart: c, onDragEnd: u, onDragOverItem: d, onDragOverLista: s }; } const Yp = Q({ name: "EliTabelaModalColunas", components: { Columns2: Mf, Eye: Kf, EyeOff: Vf, GripVertical: Xf, X: fa, Check: Uf }, props: { aberto: { type: Boolean, required: !0 }, rotulosColunas: { type: Array, required: !0 }, configInicial: { type: Object, required: !0 }, colunas: { // biome-ignore lint/suspicious/noExplicitAny: dynamic typing needed type: Array, required: !0 } }, emits: { fechar() { return !0; }, salvar(e) { return !0; } }, setup(e, { emit: n }) { const r = Xp({ aberto: D(() => e.aberto), rotulosColunas: D(() => e.rotulosColunas), configInicial: D(() => e.configInicial), colunas: D(() => e.colunas) }); function o() { n("fechar"); } function t() { n("salvar", { visiveis: [...r.visiveisLocal.value], invisiveis: [...r.invisiveisLocal.value] }); } return { ...r, emitFechar: o, emitSalvar: t }; } }), Hp = { class: "eli-tabela-modal-colunas__modal", role: "dialog", "aria-modal": "true", "aria-labelledby": "eli-modal-colunas-titulo" }, Qp = { class: "eli-tabela-modal-colunas__header" }, eg = { class: "eli-tabela-modal-colunas__header-info" }, tg = { class: "eli-tabela-modal-colunas__instrucao" }, ng = { class: "eli-tabela-modal-colunas__conteudo" }, rg = { class: "eli-tabela-modal-colunas__coluna" }, ig = { class: "eli-tabela-modal-colunas__coluna-cabecalho eli-tabela-modal-colunas__coluna-cabecalho--visiveis" }, og = { class: "eli-tabela-modal-colunas__coluna-contador" }, ag = ["title", "onDragstart", "onDragover"], lg = { class: "eli-tabela-modal-colunas__item-texto" }, ug = { key: "vazio-visiveis", class: "eli-tabela-modal-colunas__vazio" }, cg = { class: "eli-tabela-modal-colunas__coluna" }, sg = { class: "eli-tabela-modal-colunas__coluna-cabecalho eli-tabela-modal-colunas__coluna-cabecalho--invisiveis" }, dg = { class: "eli-tabela-modal-colunas__coluna-contador" }, mg = ["title", "onDragstart", "onDragover"], fg = { class: "eli-tabela-modal-colunas__item-texto" }, vg = { key: "vazio-invisiveis", class: "eli-tabela-modal-colunas__vazio" }, pg = { class: "eli-tabela-modal-colunas__footer" }; function gg(e, n, r, o, t, i) { const a = Y("Columns2"), l = Y("X"), c = Y("GripVertical"), u = Y("Eye"), d = Y("EyeOff"), s = Y("Check"); return _(), re(Ho, { to: "body" }, [ e.aberto ? (_(), j("div", { key: 0, class: "eli-tabela-modal-colunas__overlay", role: "presentation", onClick: n[9] || (n[9] = fe((...m) => e.emitFechar && e.emitFechar(...m), ["self"])) }, [ g("div", Hp, [ g("header", Qp, [ g("div", eg, [ C(a, { size: 18, "stroke-width": 2, class: "eli-tabela-modal-colunas__header-icone" }), n[10] || (n[10] = g("h3", { id: "eli-modal-colunas-titulo", class: "eli-tabela-modal-colunas__titulo" }, "Configurar colunas", -1)) ]), g("button", { type: "button", class: "eli-tabela-modal-colunas__fechar", "aria-label": "Fechar modal de colunas", onClick: n[0] || (n[0] = (...m) => e.emitFechar && e.emitFechar(...m)) }, [ C(l, { size: 16, "stroke-width": 2.5 }) ]) ]), g("div", tg, [ C(c, { size: 14, "stroke-width": 2, class: "eli-tabela-modal-colunas__instrucao-icone" }), n[11] || (n[11] = ue(" Arraste para reordenar ou mover entre as listas ", -1)) ]), g("div", ng, [ g("div", rg, [ g("div", ig, [ C(u, { size: 14, "stroke-width": 2 }), n[12] || (n[12] = g("span", null, "Visíveis", -1)), g("span", og, q(e.visiveisLocal.length), 1) ]), C(po, { name: "list", tag: "div", class: "eli-tabela-modal-colunas__lista eli-tabela-modal-colunas__lista--visiveis", onDragover: n[3] || (n[3] = fe((m) => e.onDragOverLista("visiveis"), ["prevent"])), onDrop: e.onDragEnd }, { default: ce(() => [ (_(!0), j(_e, null, Ie(e.visiveisLocal, (m) => (_(), j("div", { key: `vis-${m}`, class: Ze(["eli-tabela-modal-colunas__item eli-tabela-modal-colunas__item--visivel", { "eli-tabela-modal-colunas__item--arrastando": e.itemSendoArrastado === m }]), draggable: "true", title: `Arraste para mover '${m}'`, onDragstart: (f) => e.onDragStart(f, m), onDragend: n[1] || (n[1] = (...f) => e.onDragEnd && e.onDragEnd(...f)), onDragover: fe((f) => e.onDragOverItem(m, "visiveis"), ["stop", "prevent"]), onDrop: n[2] || (n[2] = fe((...f) => e.onDragEnd && e.onDragEnd(...f), ["stop", "prevent"])) }, [ C(c, { size: 15, "stroke-width": 2, class: "eli-tabela-modal-colunas__item-handle", "aria-hidden": "true" }), g("span", lg, q(m), 1), C(u, { size: 13, "stroke-width": 2, class: "eli-tabela-modal-colunas__item-badge-icone eli-tabela-modal-colunas__item-badge-icone--visivel", "aria-hidden": "true" }) ], 42, ag))), 128)), e.visiveisLocal.length === 0 ? (_(), j("div", ug, [ C(d, { size: 28, "stroke-width": 1.5, class: "eli-tabela-modal-colunas__vazio-icone" }), n[13] || (n[13] = g("span", null, [ ue("Nenhuma coluna visível."), g("br"), ue("Arraste itens da lista ao lado.") ], -1)) ])) : te("", !0) ]), _: 1 }, 8, ["onDrop"]) ]), g("div", cg, [ g("div", sg, [ C(d, { size: 14, "stroke-width": 2 }), n[14] || (n[14] = g("span", null, "Ocultas", -1)), g("span", dg, q(e.invisiveisLocal.length), 1) ]), C(po, { name: "list", tag: "div", class: "eli-tabela-modal-colunas__lista eli-tabela-modal-colunas__lista--invisiveis", onDragover: n[6] || (n[6] = fe((m) => e.onDragOverLista("invisiveis"), ["prevent"])), onDrop: e.onDragEnd }, { default: ce(() => [ (_(!0), j(_e, null, Ie(e.invisiveisLocal, (m) => (_(), j("div", { key: `inv-${m}`, class: Ze(["eli-tabela-modal-colunas__item eli-tabela-modal-colunas__item--invisivel", { "eli-tabela-modal-colunas__item--arrastando": e.itemSendoArrastado === m }]), draggable: "true", title: `Arraste para mover '${m}'`, onDragstart: (f) => e.onDragStart(f, m), onDragend: n[4] || (n[4] = (...f) => e.onDragEnd && e.onDragEnd(...f)), onDragover: fe((f) => e.onDragOverItem(m, "invisiveis"), ["stop", "prevent"]), onDrop: n[5] || (n[5] = fe((...f) => e.onDragEnd && e.onDragEnd(...f), ["stop", "prevent"])) }, [ C(c, { size: 15, "stroke-width": 2, class: "eli-tabela-modal-colunas__item-handle", "aria-hidden": "true" }), g("span", fg, q(m), 1), C(d, { size: 13, "stroke-width": 2, class: "eli-tabela-modal-colunas__item-badge-icone eli-tabela-modal-colunas__item-badge-icone--invisivel", "aria-hidden": "true" }) ], 42, mg))), 128)), e.invisiveisLocal.length === 0 ? (_(), j("div", vg, [ C(u, { size: 28, "stroke-width": 1.5, class: "eli-tabela-modal-colunas__vazio-icone eli-tabela-modal-colunas__vazio-icone--ok" }), n[15] || (n[15] = g("span", null, "Todas as colunas estão visíveis.", -1)) ])) : te("", !0) ]), _: 1 }, 8, ["onDrop"]) ]) ]), g("footer", pg, [ g("button", { type: "button", class: "eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--sec", onClick: n[7] || (n[7] = (...m) => e.emitFechar && e.emitFechar(...m)) }, [ C(l, { size: 14, "stroke-width": 2.5 }), n[16] || (n[16] = ue(" Cancelar ", -1)) ]), g("button", { type: "button", class: "eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--prim", onClick: n[8] || (n[8] = (...m) => e.emitSalvar && e.emitSalvar(...m)) }, [ C(s, { size: 14, "stroke-width": 2.5 }), n[17] || (n[17] = ue(" Salvar ", -1)) ]) ]) ]) ])) : te("", !0) ]); } const hg = /* @__PURE__ */ ee(Yp, [["render", gg]]); function xo(e) { return e.rotulo; } function $g({ aberto: e, filtrosBase: n, modelo: r, modeloFormula: o, emit: t }) { const i = W([]), a = W(""), l = W(""), c = D(() => i.value.map((b, T) => `{c${T + 1}}`).join(" E ")); function u(b) { let T = b; return i.value.forEach((G, P) => { T = T.replace(new RegExp(`\\{${G.chave}\\}`, "g"), `{c${P + 1}}`); }), T; } function d(b) { var G; let T = b; for (let P = i.value.length; P >= 1; P--) { const X = (G = i.value[P - 1]) == null ? void 0 : G.chave; X && (T = T.replace(new RegExp(`\\{c${P}\\}`, "g"), `{${X}}`)); } return T; } const s = D(() => (n.value ?? []).map((b) => String(b.chave))), m = D(() => { const b = new Set(i.value.map((T) => String(T.chave))); return (n.value ?? []).filter((T) => !b.has(String(T.chave))); }); function f(b) { const T = b == null ? void 0 : b[0]; return T === "numero" ? ca : T === "dataHora" ? ua : T === "selecao" ? da : T === "selecaoMultipla" ? ff : T === "paragrafo" ? sa : T === "confirmacao" ? Vm : pr; } function p(b) { return { ...typeof (b == null ? void 0 : b[1]) == "object" && b[1] !== null ? { ...b[1] } : {}, rotulo: "" }; } function h(b) { return (b == null ? void 0 : b[0]) === "numero" || (b == null ? void 0 : b[0]) === "selecao" ? null : (b == null ? void 0 : b[0]) === "selecaoMultipla" ? [] : (b == null ? void 0 : b[0]) === "confirmacao" ? !1 : ""; } function E() { const b = n.value ?? [], T = Array.isArray(r.value) ? r.value : []; i.value = T.map((G) => { if (!G || typeof G != "object") return null; const P = G, X = b.find((x) => String(x.chave) === String(P.chave)) ?? b[0]; if (!X) return null; const Ae = X.entrada ?? P.entrada, rt = String(X.chave ?? P.chave), z = P.valor ?? h(Ae); return { chave: rt, entrada: Ae, valor: z }; }).filter(Boolean), i.value = i.value.filter((G) => s.value.includes(String(G.chave))), o.value ? l.value = u(o.value) : l.value = c.value; } Se( () => [e.value, n.value, r.value], () => { e.value && E(); }, { deep: !0, immediate: !0 } ); function S() { if (!a.value) return; const b = (n.value ?? []).find( (T) => String(T.chave) === String(a.value) ); b && (i.value.some((T) => String(T.chave) === String(b.chave)) || (i.value.push({ chave: String(b.chave), entrada: b.entrada, valor: h(b.entrada) }), l.value = c.value, a.value = "")); } function w(b) { i.value.splice(b, 1), l.value = c.value; } function L() { t("fechar"); } function A() { t("limpar"); } function Z() { const b = d(l.value); t( "salvar", i.value.map((T) => ({ chave: T.chave, valor: T.valor })), b ); } function k(b) { const T = (n.value ?? []).find((G) => String(G.chave) === b); return T ? xo(T) : b; } return { linhas: i, opcoesParaAdicionar: m, chaveParaAdicionar: a, formulaCustomizada: l, formulaGerada: c, componenteEntrada: f, opcoesEntrada: p, adicionar: S, remover: w, emitFechar: L, emitSalvar: Z, emitLimpar: A, rotuloDoFiltro: xo, rotuloDoFiltroAtivo: k }; } const bg = Q({ name: "EliTabelaModalFiltroAvancado", components: { CircleHelp: Zf, Filter: ma, Plus: nv, Trash2: av, X: fa }, props: { aberto: { type: Boolean, required: !0 }, filtrosBase: { type: Array, required: !0 }, modelo: { /** Linhas persistidas do pai — normalizadas internamente via normalizarModelo() */ type: Array, required: !0 }, modeloFormula: { type: String, default: "" } }, emits: { fechar: () => !0, limpar: () => !0, /** Dado serializável emitido pelo botão Aplicar */ salvar: (e, n) => !0 }, setup(e, { emit: n }) { return $g({ aberto: D(() => e.aberto), filtrosBase: D(() => e.filtrosBase), modelo: D(() => e.modelo), modeloFormula: D(() => e.modeloFormula), emit: n }); } }), _g = { class: "eli-tabela-modal-filtro__modal", role: "dialog", "aria-modal": "true", "aria-label": "Filtro avançado" }, yg = { class: "eli-tabela-modal-filtro__header" }, kg = { class: "eli-tabela-modal-filtro__header-titulo" }, Sg = { key: 0, class: "eli-tabela-modal-filtro__contador" }, Ig = { class: "eli-tabela-modal-filtro__conteudo" }, wg = { key: 0, class: "eli-tabela-modal-filtro__vazio" }, zg = { key: 1 }, xg = { key: 0, class: "eli-tabela-modal-filtro__lista" }, Dg = { class: "eli-tabela-modal-filtro__linha-header" }, jg = ["title"], Og = { class: "eli-tabela-modal-filtro__rotulo-filtro" }, Ug = ["onClick"], Eg = { class: "eli-tabela-modal-filtro__entrada" }, Tg = { key: 1, class: "eli-tabela-modal-filtro__estado-vazio" }, Ng = { class: "eli-tabela-modal-filtro__rodape-filtros" }, Pg = { class: "eli-tabela-modal-filtro__acoes" }, Ag = ["disabled"], Zg = ["value"], Cg = ["disabled"], Mg = { key: 0, class: "eli-tabela-modal-filtro__formula-container" }, Fg = ["placeholder"], Lg = { class: "eli-tabela-modal-filtro__formula-ajuda", tabindex: "0", "aria-label": "Ajuda sobre fórmulas" }, Rg = { class: "eli-tabela-modal-filtro__footer" }, Jg = ["disabled"]; function Bg(e, n, r, o, t, i) { const a = Y("Filter"), l = Y("X"), c = Y("Trash2"), u = Y("Plus"), d = Y("CircleHelp"); return _(), re(ym, { name: "eli-tabela-modal-filtro" }, { default: ce(() => [ e.aberto ? (_(), j("div", { key: 0, class: "eli-tabela-modal-filtro__overlay", role: "presentation", onClick: n[7] || (n[7] = fe((...s) => e.emitFechar && e.emitFechar(...s), ["self"])) }, [ g("div", _g, [ g("header", yg, [ g("div", kg, [ C(a, { class: "eli-tabela-modal-filtro__header-icone", size: 18, "stroke-width": 2 }), n[8] || (n[8] = g("h3", { class: "eli-tabela-modal-filtro__titulo" }, "Filtro avançado", -1)), e.linhas.length ? (_(), j("span", Sg, q(e.linhas.length) + " " + q(e.linhas.length === 1 ? "filtro" : "filtros"), 1)) : te("", !0) ]), g("button", { type: "button", class: "eli-tabela-modal-filtro__fechar", "aria-label": "Fechar", onClick: n[0] || (n[0] = (...s) => e.emitFechar && e.emitFechar(...s)) }, [ C(l, { size: 18, "stroke-width": 2 }) ]) ]), g("div", Ig, [ e.filtrosBase.length ? (_(), j("div", zg, [ e.linhas.length ? (_(), j("div", xg, [ (_(!0), j(_e, null, Ie(e.linhas, (s, m) => (_(), j("div", { key: String(s.chave), class: "eli-tabela-modal-filtro__linha" }, [ g("div", Dg, [ g("span", { class: "eli-tabela-modal-filtro__id-badge", title: `Identificador na fórmula: {c${m + 1}}` }, " c" + q(m + 1), 9, jg), g("span", Og, q(e.rotuloDoFiltroAtivo(s.chave)), 1), g("button", { type: "button", class: "eli-tabela-modal-filtro__remover", title: "Remover filtro", "aria-label": "Remover filtro", onClick: (f) => e.remover(m) }, [ C(c, { size: 14, "stroke-width": 2 }) ], 8, Ug) ]), g("div", Eg, [ (_(), re(qe(e.componenteEntrada(s.entrada)), Ee({ ref_for: !0 }, { value: s.valor, opcoes: e.opcoesEntrada(s.entrada), density: "compact" }, { "onUpdate:value": (f) => s.valor = f, onInput: (f) => s.valor = f }), null, 16, ["onUpdate:value", "onInput"])) ]) ]))), 128)) ])) : (_(), j("div", Tg, [ C(a, { size: 32, "stroke-width": 1.5 }), n[9] || (n[9] = g("span", null, "Selecione um filtro abaixo para começar", -1)) ])), g("div", Ng, [ g("div", Pg, [ ar(g("select", { "onUpdate:modelValue": n[1] || (n[1] = (s) => e.chaveParaAdicionar = s), class: "eli-tabela-modal-filtro__select", disabled: !e.opcoesParaAdicionar.length }, [ n[10] || (n[10] = g("option", { disabled: "", value: "" }, "Selecione um filtro…", -1)), (_(!0), j(_e, null, Ie(e.opcoesParaAdicionar, (s) => (_(), j("option", { key: String(s.chave), value: String(s.chave) }, q(e.rotuloDoFiltro(s)), 9, Zg))), 128)) ], 8, Ag), [ [km, e.chaveParaAdicionar] ]), g("button", { type: "button", class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--prim", onClick: n[2] || (n[2] = (...s) => e.adicionar && e.adicionar(...s)), disabled: !e.chaveParaAdicionar }, [ C(u, { size: 15, "stroke-width": 2.5 }), n[11] || (n[11] = ue(" Adicionar ", -1)) ], 8, Cg) ]), e.linhas.length >= 2 ? (_(), j("div", Mg, [ n[13] || (n[13] = g("label", { class: "eli-tabela-modal-filtro__formula-label" }, "Fórmula", -1)), ar(g("input", { "onUpdate:modelValue": n[3] || (n[3] = (s) => e.formulaCustomizada = s), type: "text", class: "eli-tabela-modal-filtro__formula-input", placeholder: "Ex: " + e.formulaGerada }, null, 8, Fg), [ [Yo, e.formulaCustomizada] ]), g("span", Lg, [ C(d, { size: 15, "stroke-width": 2 }), n[12] || (n[12] = g("div", { class: "eli-tabela-modal-filtro__formula-tooltip", role: "tooltip" }, [ g("strong", null, "Como usar a fórmula"), g("p", null, [ ue("Use os identificadores "), g("code", null, "{c1}"), ue(", "), g("code", null, "{c2}"), ue(", "), g("code", null, "{c3}"), ue("… correspondentes a cada filtro acima:") ]), g("ul", null, [ g("li", null, [ g("code", null, "E"), ue(" — ambos devem ser verdadeiros") ]), g("li", null, [ g("code", null, "OU"), ue(" — pelo menos um deve ser verdadeiro") ]), g("li", null, [ g("code", null, "NAO"), ue(" — negação de uma condição") ]), g("li", null, [ g("code", null, "( )"), ue(" — agrupa condições") ]) ]), g("p", null, [ g("strong", null, "Exemplo:") ]), g("code", null, "{c1} OU ({c2} E NAO {c3})"), g("p", { class: "eli-tabela-modal-filtro__formula-tooltip-nota" }, "Deixe em branco para combinar todos com E.") ], -1)) ]) ])) : te("", !0) ]) ])) : (_(), j("div", wg, " Nenhum filtro configurado na tabela. ")) ]), g("footer", Rg, [ g("button", { type: "button", class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--perigo", disabled: !e.linhas.length, onClick: n[4] || (n[4] = (...s) => e.emitLimpar && e.emitLimpar(...s)) }, " Limpar ", 8, Jg), n[14] || (n[14] = g("div", { class: "eli-tabela-modal-filtro__footer-spacer" }, null, -1)), g("button", { type: "button", class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--sec", onClick: n[5] || (n[5] = (...s) => e.emitFechar && e.emitFechar(...s)) }, " Cancelar "), g("button", { type: "button", class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--prim", onClick: n[6] || (n[6] = (...s) => e.emitSalvar && e.emitSalvar(...s)) }, " Aplicar ") ]) ]) ])) : te("", !0) ]), _: 1 }); } const Vg = /* @__PURE__ */ ee(bg, [["render", Bg]]), qg = Q({ name: "EliTabelaPaginacao", props: { pagina: { type: Number, required: !0 }, totalPaginas: { type: Number, required: !0 }, maximoBotoes: { type: Number, required: !1 }, acoes: { type: Array, required: !1, default: () => [] }, parametrosConsulta: { // biome-ignore lint/suspicious/noExplicitAny: dynamic params type: Object, required: !1 } }, emits: { alterar(e) { return Number.isFinite(e); } }, setup(e, { emit: n }) { const r = D(() => { const u = e.maximoBotoes; return typeof u == "number" && u >= 5 ? Math.floor(u) : 7; }), o = D(() => { const u = e.totalPaginas, d = e.pagina, s = r.value, m = [], f = (w) => { m.push({ label: String(w), pagina: w, ativo: w === d }); }, p = () => { m.push({ label: "…", ehEllipsis: !0 }); }; if (u <= s) { for (let w = 1; w <= u; w += 1) f(w); return m; } const h = Math.max(3, s - 2); let E = Math.max(2, d - Math.floor(h / 2)), S = E + h - 1; S >= u && (S = u - 1, E = S - h + 1), f(1), E > 2 && p(); for (let w = E; w <= S; w += 1) f(w); return S < u - 1 && p(), f(u), m; }); function t(u) { if (!u) return; const d = Math.min(Math.max(1, u), e.totalPaginas); d !== e.pagina && n("alterar", d); } const i = D(() => e.pagina <= 1), a = D(() => e.pagina >= e.totalPaginas), l = D(() => e.pagina), c = D(() => e.totalPaginas); return { botoes: o, irParaPagina: t, anteriorDesabilitado: i, proximaDesabilitada: a, paginaAtual: l, totalPaginasExibidas: c }; } }), Kg = { class: "eli-tabela__rodape" }, Wg = { key: 0, class: "eli-tabela__acoes-inferiores", style: { "margin-right": "auto" } }, Gg = ["onClick"], Xg = { class: "eli-tabela__acoes-cabecalho-rotulo" }, Yg = { key: 1, class: "eli-tabela__paginacao", role: "navigation", "aria-label": "Paginação de resultados" }, Hg = ["disabled"], Qg = { key: 0, class: "eli-tabela__pagina-ellipsis", "aria-hidden": "true" }, eh = ["disabled", "aria-current", "aria-label", "onClick"], th = ["disabled"]; function nh(e, n, r, o, t, i) { return _(), j("div", Kg, [ e.acoes.length > 0 ? (_(), j("div", Wg, [ (_(!0), j(_e, null, Ie(e.acoes, (a, l) => (_(), j("button", { key: `${a.rotulo}-${l}`, type: "button", class: "eli-tabela__acao-inferior", style: an(a.cor ? { borderColor: a.cor, color: a.cor } : void 0), onClick: (c) => a.acao(e.parametrosConsulta) }, [ a.icone ? (_(), re(qe(a.icone), { key: 0, class: "eli-tabela__acoes-cabecalho-icone", size: 16, "stroke-width": 2 })) : te("", !0), g("span", Xg, q(a.rotulo), 1) ], 12, Gg))), 128)) ])) : te("", !0), e.totalPaginasExibidas > 1 ? (_(), j("nav", Yg, [ g("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, Hg), (_(!0), j(_e, null, Ie(e.botoes, (a, l) => (_(), j(_e, { key: `${a.label}-${l}` }, [ a.ehEllipsis ? (_(), j("span", Qg, q(a.label), 1)) : (_(), j("button", { key: 1, type: "button", class: Ze(["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) }, q(a.label), 11, eh)) ], 64))), 128)), g("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, th) ])) : te("", !0) ]); } const rh = /* @__PURE__ */ ee(qg, [["render", nh]]), ih = "eli:tabela"; function pa(e) { return `${ih}:${e}:colunas`; } function ga(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 ha(e) { try { const n = window.localStorage.getItem(pa(e)); return n ? ga(JSON.parse(n)) : { visiveis: [], invisiveis: [] }; } catch { return { visiveis: [], invisiveis: [] }; } } function oh(e, n) { try { window.localStorage.setItem( pa(e), JSON.stringify(ga(n)) ); } catch { } } function gr(e) { return `eli_tabela:${e}:filtro_avancado`; } function $a(e) { const n = { linhas: [], formula: "" }; try { const r = localStorage.getItem(gr(e)); if (!r) return n; const o = JSON.parse(r); return Array.isArray(o) ? { linhas: o, formula: "" } : o && typeof o == "object" ? { linhas: Array.isArray(o.linhas) ? o.linhas : [], formula: typeof o.formula == "string" ? o.formula : "" } : n; } catch { return n; } } function ah(e, n) { try { localStorage.setItem(gr(e), JSON.stringify(n ?? { linhas: [] })); } catch { } } function lh(e) { try { localStorage.removeItem(gr(e)); } catch { } } function uh(e, n) { const r = W(!1), o = W(ha(e.tabela.nome)), t = W({}), i = D(() => e.tabela.colunas.map((p) => p.rotulo)), a = D(() => { var Z, k; const p = e.tabela.colunas, E = (((Z = o.value.visiveis) == null ? void 0 : Z.length) ?? 0) > 0 || (((k = o.value.invisiveis) == null ? void 0 : k.length) ?? 0) > 0 ? o.value.invisiveis ?? [] : p.filter((b) => b.visivel === !1).map((b) => b.rotulo), S = new Set(E), w = p.filter((b) => S.has(b.rotulo)), L = /* @__PURE__ */ new Map(); for (const b of w) L.has(b.rotulo) || L.set(b.rotulo, b); const A = []; for (const b of E) { const T = L.get(b); T && A.push(T); } for (const b of w) A.includes(b) || A.push(b); return A; }), l = D(() => a.value.length > 0), c = D(() => { var T, G; const p = e.tabela.colunas, h = i.value, E = (((T = o.value.visiveis) == null ? void 0 : T.length) ?? 0) > 0 || (((G = o.value.invisiveis) == null ? void 0 : G.length) ?? 0) > 0, S = E ? o.value.invisiveis ?? [] : ( // biome-ignore lint/suspicious/noExplicitAny: dynamic column e.tabela.colunas.filter((P) => P.visivel === !1).map((P) => P.rotulo) ), w = new Set(S), L = h.filter((P) => !w.has(P)), A = new Set(L), Z = E ? o.value.visiveis ?? [] : [], k = []; for (const P of Z) A.has(P) && k.push(P); for (const P of L) k.includes(P) || k.push(P); const b = /* @__PURE__ */ new Map(); for (const P of p) b.has(P.rotulo) || b.set(P.rotulo, P); return k.map((P) => b.get(P)).filter(Boolean); }), u = D( () => c.value.length + (n.value ? 1 : 0) + (l.value ? 1 : 0) ); function d() { r.value = !0; } function s() { r.value = !1; } function m(p) { o.value = p, oh(e.tabela.nome, p), r.value = !1, t.value = {}; } function f(p) { const h = !!t.value[p]; t.value = { ...t.value, [p]: !h }; } return { modalColunasAberto: r, configColunas: o, linhasExpandidas: t, rotulosColunas: i, colunasEfetivas: c, colunasInvisiveisEfetivas: a, temColunasInvisiveis: l, totalColunas: u, abrirModalColunas: d, fecharModalColunas: s, salvarModalColunas: m, alternarLinhaExpandida: f }; } var ba = ((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))(ba || {}); function ch(e, n, r, o, t) { const a = W(!1), l = W(null), c = W([]), u = W(0), d = W([]), s = W(null), m = W("asc"), f = D(() => e.tabela), p = D(() => { const z = e.tabela.registros_por_consulta; return typeof z == "number" && z > 0 ? Math.floor(z) : 10; }), h = D(() => { const z = p.value; if (!z || z <= 0) return 1; const x = u.value ?? 0; return x ? Math.max(1, Math.ceil(x / z)) : 1; }), E = D(() => c.value ?? []), S = D(() => u.value ?? 0), w = D(() => (e.tabela.acoesLinha ?? []).length > 0), L = D(() => !!e.tabela.mostrarCaixaDeBusca), A = D( () => (e.tabela.acoesTabela ?? []).filter((z) => z.posicao === "superior") ), Z = D( () => (e.tabela.acoesTabela ?? []).filter((z) => z.posicao === "inferior") ), k = D(() => A.value.length > 0), b = D(() => Z.value.length > 0), T = D(() => { const z = Math.max(1, p.value), I = { offSet: (r.value - 1) * z, limit: z }, N = (o.value ?? "").trim(); if (N) I.texto_busca = N; else { const U = n.value; U.length && (I.filtros = U); } return s.value && (I.coluna_ordem = s.value, I.direcao_ordem = m.value), { ...I, atualizarConsulta: async () => { await P(); }, // biome-ignore lint/suspicious/noExplicitAny: dynamic list update editarLista: async (U) => (c.value = U, U) }; }); let G = 0; async function P() { var x, I; const z = ++G; a.value = !0, l.value = null; try { d.value = [], t.value = {}; const N = Math.max(1, p.value), R = { offSet: (r.value - 1) * N, limit: N }, J = (o.value ?? "").trim(); if (J) R.texto_busca = J; else { const ge = n.value; ge.length && (R.filtros = ge); } s.value && (R.coluna_ordem = s.value, R.direcao_ordem = m.value); const H = await e.tabela.consulta(R); if (z !== G) return; if (H.cod !== ba.sucesso) { c.value = [], u.value = 0, l.value = H.mensagem; return; } const ae = ((x = H.valor) == null ? void 0 : x.valores) ?? [], se = ((I = H.valor) == null ? void 0 : I.quantidade) ?? ae.length; c.value = ae, u.value = Number(se) || 0; const me = Math.max(1, Math.ceil((u.value || 0) / N)); r.value > me && (r.value = me); const pe = e.tabela.acoesLinha ?? []; if (!pe.length) { d.value = []; return; } d.value = ae.map( () => pe.map( (ge) => ge.exibir === void 0 ? !0 : typeof ge.exibir == "boolean" ? ge.exibir : !1 ) ); const Le = await Promise.all( ae.map( (ge) => Promise.all( pe.map(async (Te) => { if (Te.exibir === void 0) return !0; if (typeof Te.exibir == "boolean") return Te.exibir; try { return !!await Promise.resolve(Te.exibir(ge)); } catch { return !1; } }) ) ) ); z === G && (d.value = Le); } catch (N) { if (console.error("[EliTabela] Erro capturado em carregar():", N), z !== G) return; c.value = [], u.value = 0, l.value = N instanceof Error ? N.message : "Erro ao carregar dados."; } finally { z === G && (a.value = !1); } } function X(z) { if (z) { if (s.value === z) { m.value = m.value === "asc" ? "desc" : "asc", P(); return; } s.value = z, m.value = "asc", r.value !== 1 ? r.value = 1 : P(); } } function Ae(z) { o.value !== z && (o.value = z, r.value !== 1 ? r.value = 1 : P()); } function rt(z) { const x = Math.min(Math.max(1, z), h.value); x !== r.value && (r.value = x); } return Se(r, (z, x) => { z !== x && P(); }), Se(c, () => { t.value = {}; }), Se( () => e.tabela.mostrarCaixaDeBusca, (z) => { !z && o.value && (o.value = "", r.value !== 1 ? r.value = 1 : P()); } ), Se( () => e.tabela.registros_por_consulta, () => { r.value !== 1 ? r.value = 1 : P(); } ), { isDev: !1, tabela: f, carregando: a, erro: l, linhas: c, linhasPaginadas: E, quantidade: u, quantidadeFiltrada: S, acoesVisiveis: d, colunaOrdenacao: s, direcaoOrdenacao: m, registrosPorConsulta: p, totalPaginas: h, temAcoes: w, exibirBusca: L, acoesSuperiores: A, acoesInferiores: Z, temAcoesSuperiores: k, temAcoesInferiores: b, parametrosConsultaAtuais: T, carregar: P, alternarOrdenacao: X, atualizarBusca: Ae, irParaPagina: rt }; } function sh(e, n, r, o) { const t = $a(e.tabela.nome), i = W(t.linhas), a = W(t.formula ?? ""), l = W(!1), c = D(() => (e.tabela.filtroAvancado ?? []).length > 0), u = D(() => { const S = e.tabela.filtroAvancado ?? [], w = (i.value ?? []).filter((k) => k && k.chave !== void 0); if (w.length === 0) return []; const L = w.map((k) => { const b = S.find((G) => String(G.chave) === String(k.chave)); if (!b) return null; const T = b.filtro(k.valor); return T ? { chave: k.chave, condicao: T } : null; }).filter((k) => k !== null); if (L.length === 0) return []; if (a.value && L.length > 1) { const k = []; let b = a.value; return L.forEach(({ chave: T }, G) => { b = b.replace(new RegExp(`\\{${T}\\}`, "g"), `{c${G + 1}}`); }), L.forEach(({ condicao: T }, G) => { const P = `{c${G + 1}}`; k.push({ ...T, id: P }); }), [{ condicoes: k, formula: b }]; } const A = L.map( ({ condicao: k }, b) => ({ ...k, id: `{c${b + 1}}` }) ), Z = A.map((k) => k.id).join(" E "); return [{ condicoes: A, formula: Z }]; }); function d() { l.value = !0; } function s() { l.value = !1; } function m() { i.value = [], a.value = "", lh(e.tabela.nome), l.value = !1, r.value = "", n.value !== 1 ? n.value = 1 : o(); } function f(S, w) { i.value = S ?? [], a.value = w ?? "", ah(e.tabela.nome, { linhas: i.value, formula: a.value }), l.value = !1, r.value = "", n.value !== 1 ? n.value = 1 : o(); } const p = { "=": "igual a", "!=": "diferente de", ">": "maior que", "<": "menor que", ">=": "maior ou igual a", "<=": "menor ou igual a", like: "contém", in: "em", "∩": "possui" }; function h(S, w) { const [L, A] = Array.isArray(S) ? S : [S, {}]; if (L === "confirmacao") { const Z = A || {}; return w === !0 ? Z.rotuloAtivo || "Sim" : w === !1 ? Z.rotuloInativo || "Não" : String(w); } if ((L === "selecao" || L === "selecaoMultipla") && typeof (A == null ? void 0 : A.itens) == "function") try { const Z = A.itens(); if (Array.isArray(Z)) { const k = (b) => { const T = Z.find( (G) => String(G.chave) === String(b) ); return T ? T.rotulo : b; }; return Array.isArray(w) ? w.map((b) => k(String(b))).join(", ") : k(String(w)); } } catch { } return Array.isArray(w) ? w.map(String).join(", ") : String(w); } const E = D(() => { const S = e.tabela.filtroAvancado ?? [], w = (i.value ?? []).filter((A) => A && A.chave !== void 0), L = []; for (const A of w) { const Z = S.find((k) => String(k.chave) === String(A.chave)); if (Z) { const k = Z.filtro(A.valor); if (k) { const b = p[k.operador] || k.operador, T = h(Z.entrada, k.valor); L.push(`${Z.rotulo} ${b} "${T}"`); } } } return { quantidade: L.length, rotulos: L }; }); return { filtrosUi: i, filtrosFormula: a, modalFiltroAberto: l, exibirFiltroAvancado: c, filtrosAvancadosAtivos: u, filtrosAtivosResumo: E, abrirModalFiltro: d, fecharModalFiltro: s, limparFiltrosAvancados: m, salvarFiltrosAvancados: f }; } function dh(e, n) { const r = W(null), o = W(null), t = W({ top: 0, left: 0 }); function i(d) { var S, w, L, A; const s = d.getBoundingClientRect(), m = 8, f = ((w = (S = o.value) == null ? void 0 : S.menuEl) == null ? void 0 : w.offsetHeight) ?? 0, p = ((A = (L = o.value) == null ? void 0 : L.menuEl) == null ? void 0 : A.offsetWidth) ?? 180; let h = s.bottom + m; const E = s.right - p; f && h + f > window.innerHeight - m && (h = s.top - m - f), t.value = { top: Math.max(m, Math.round(h)), left: Math.max(m, Math.round(E)) }; } function a(d) { var m, f; if (r.value === null) return; const s = d.target; (f = (m = o.value) == null ? void 0 : m.menuEl) != null && f.contains(s) || (r.value = null); } function l(d) { const s = e.tabela.acoesLinha ?? [], m = n.value[d] ?? []; return s.map((f, p) => { const h = f.exibir === void 0 ? !0 : typeof f.exibir == "boolean" ? f.exibir : !1; return { acao: f, indice: p, visivel: m[p] ?? h }; }).filter((f) => f.visivel); } function c(d) { return l(d).length > 0; } function u(d, s) { if (!c(d)) return; if (r.value === d) { r.value = null; return; } r.value = d; const m = (s == null ? void 0 : s.currentTarget) ?? null; m && (i(m), Im(() => { r.value !== null && i(m); })); } return zt(() => document.addEventListener("click", a)), Sm(() => document.removeEventListener("click", a)), { menuAberto: r, menuPopup: o, menuPopupPos: t, possuiAcoes: c, toggleMenu: u, acoesDisponiveisPorLinha: l }; } function mh(e, n, r) { const o = D(() => !!e.tabela.mostrar_selecao), t = D(() => e.tabela.chave_selecao); function i(s) { return t.value && s && typeof s == "object" ? s[t.value] : s; } function a(s) { const m = i(s); return t.value ? e.selecionados.some((f) => i(f) === m) : e.selecionados.includes(s); } function l(s) { const m = [...e.selecionados], f = i(s); let p = -1; t.value ? p = m.findIndex((h) => i(h) === f) : p = m.indexOf(s), p === -1 ? m.push(s) : m.splice(p, 1), n("update:selecionados", m); } const c = D(() => r.value.length === 0 ? !1 : r.value.every((s) => a(s))), u = D(() => r.value.length === 0 ? !1 : r.value.some((s) => a(s)) && !c.value); function d(s) { const m = s ?? !c.value; let f = [...e.selecionados]; if (m) for (const p of r.value) a(p) || f.push(p); else { const p = r.value.map(i); t.value ? f = f.filter((h) => !p.includes(i(h))) : f = f.filter((h) => !p.includes(h)); } n("update:selecionados", f); } return { mostrarSelecao: o, isSelecionado: a, alternarSelecao: l, todosSelecionados: c, algunsSelecionados: u, alternarSelecaoTodos: d }; } function fh(e, n) { const r = W(1), o = W(""); let t = async () => { }; const a = sh(e, r, o, () => t()), l = W(!1), c = uh(e, l), u = ch( e, a.filtrosAvancadosAtivos, r, o, c.linhasExpandidas ); t = u.carregar, l.value = u.temAcoes.value, Se(u.temAcoes, (m) => { l.value = m; }); const d = mh(e, n, u.linhasPaginadas), s = dh(e, u.acoesVisiveis); return Se( () => e.tabela, () => { s.menuAberto.value = null, u.colunaOrdenacao.value = null, u.direcaoOrdenacao.value = "asc", o.value = "", c.modalColunasAberto.value = !1, a.modalFiltroAberto.value = !1, c.configColunas.value = ha(e.tabela.nome); const m = $a(e.tabela.nome); a.filtrosUi.value = m.linhas, c.linhasExpandidas.value = {}, r.value !== 1 ? r.value = 1 : u.carregar(); } ), zt(() => void u.carregar()), { ...u, ...a, ...d, ...c, menuAberto: s.menuAberto, menuPopup: s.menuPopup, menuPopupPos: s.menuPopupPos, possuiAcoes: s.possuiAcoes, toggleMenu: s.toggleMenu, acoesDisponiveisPorLinha: s.acoesDisponiveisPorLinha, paginaAtual: r, valorBusca: o }; } const vh = Q({ name: "EliTabela", inheritAttrs: !1, components: { EliTabelaCabecalho: fp, EliTabelaEstados: Op, EliTabelaDebug: Sp, EliTabelaHead: Rp, EliTabelaBody: Yv, EliTabelaMenuAcoes: Gp, EliTabelaPaginacao: rh, EliTabelaModalColunas: hg, EliTabelaModalFiltroAvancado: Vg }, props: { /** Configuração principal da tabela (colunas, consulta e ações) */ tabela: { // biome-ignore lint/suspicious/noExplicitAny: dynamic table type: Object, required: !0 }, /** Array de itens selecionados (v-model:selecionados) */ selecionados: { type: Array, default: () => [] }, /** Ocultar painel de debug lateral (EliTabelaDebug) */ esconderDebug: { type: Boolean, default: !1 } }, emits: ["update:selecionados"], setup(e, { emit: n }) { return fh(e, n); } }), ph = { class: "eli-tabela" }, gh = { class: "eli-tabela__table-wrapper" }, hh = { class: "eli-tabela__table" }, $h = { key: 0 }, bh = ["colspan"]; function _h(e, n, r, o, t, i) { const a = Y("EliTabelaDebug"), l = Y("EliTabelaCabecalho"), c = Y("EliTabelaModalColunas"), u = Y("EliTabelaModalFiltroAvancado"), d = Y("EliTabelaHead"), s = Y("EliTabelaEstados"), m = Y("EliTabelaBody"), f = Y("EliTabelaMenuAcoes"), p = Y("EliTabelaPaginacao"); return _(), j("div", ph, [ C(a, { isDev: e.isDev, menuAberto: e.menuAberto, menuPopupPos: e.menuPopupPos }, { default: ce(() => [ g("div", null, "paginaAtual: " + q(e.paginaAtual), 1), g("div", null, "limit: " + q(e.registrosPorConsulta), 1), g("div", null, "texto_busca: " + q((e.valorBusca || "").trim()), 1), g("div", null, "filtrosAvancadosAtivos: " + q(JSON.stringify(e.filtrosAvancadosAtivos)), 1), g("div", null, "quantidadeTotal: " + q(e.quantidade), 1) ]), _: 1 }, 8, ["isDev", "menuAberto", "menuPopupPos"]), e.exibirBusca || e.temAcoesSuperiores ? (_(), re(l, { key: 0, exibirBusca: e.exibirBusca, exibirBotaoFiltroAvancado: e.exibirFiltroAvancado, filtrosAtivosResumo: e.filtrosAtivosResumo, valorBusca: e.valorBusca, acoesCabecalho: e.acoesSuperiores, parametrosConsulta: e.parametrosConsultaAtuais, onBuscar: e.atualizarBusca, onColunas: e.abrirModalColunas, onFiltroAvancado: e.abrirModalFiltro }, null, 8, ["exibirBusca", "exibirBotaoFiltroAvancado", "filtrosAtivosResumo", "valorBusca", "acoesCabecalho", "parametrosConsulta", "onBuscar", "onColunas", "onFiltroAvancado"])) : te("", !0), C(c, { 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"]), C(u, { aberto: e.modalFiltroAberto, filtrosBase: e.tabela.filtroAvancado ?? [], modelo: e.filtrosUi, modeloFormula: e.filtrosFormula, onFechar: e.fecharModalFiltro, onLimpar: e.limparFiltrosAvancados, onSalvar: e.salvarFiltrosAvancados }, null, 8, ["aberto", "filtrosBase", "modelo", "modeloFormula", "onFechar", "onLimpar", "onSalvar"]), g("div", gh, [ g("table", hh, [ C(d, { colunas: e.colunasEfetivas, temAcoes: e.temAcoes, temColunasInvisiveis: e.temColunasInvisiveis, colunaOrdenacao: e.colunaOrdenacao, direcaoOrdenacao: e.direcaoOrdenacao, mostrarSelecao: e.mostrarSelecao, todosSelecionados: e.todosSelecionados, algunsSelecionados: e.algunsSelecionados, onAlternarOrdenacao: e.alternarOrdenacao, onAlternarSelecaoTodos: e.alternarSelecaoTodos }, null, 8, ["colunas", "temAcoes", "temColunasInvisiveis", "colunaOrdenacao", "direcaoOrdenacao", "mostrarSelecao", "todosSelecionados", "algunsSelecionados", "onAlternarOrdenacao", "onAlternarSelecaoTodos"]), e.carregando || e.erro || !e.linhas.length ? (_(), j("tbody", $h, [ g("tr", null, [ g("td", { colspan: e.totalColunas, class: "eli-tabela__td--estados" }, [ C(s, { carregando: e.carregando, erro: e.erro, mensagemVazio: e.tabela.mensagemVazio, class: "eli-tabela__estados-inline" }, null, 8, ["carregando", "erro", "mensagemVazio"]) ], 8, bh) ]) ])) : (_(), re(m, { key: 1, 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, mostrarSelecao: e.mostrarSelecao, isSelecionado: e.isSelecionado, alternarSelecao: e.alternarSelecao }, null, 8, ["colunas", "colunasInvisiveis", "temColunasInvisiveis", "linhasExpandidas", "linhas", "temAcoes", "menuAberto", "possuiAcoes", "toggleMenu", "alternarLinhaExpandida", "mostrarSelecao", "isSelecionado", "alternarSelecao"])) ]) ]), C(f, { 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: h, linha: E }) => { e.menuAberto = null, h.acao(E); }) }, null, 8, ["menuAberto", "posicao", "acoes", "linha"]), e.totalPaginas > 1 && e.quantidadeFiltrada > 0 || e.temAcoesInferiores ? (_(), re(p, { key: 1, pagina: e.paginaAtual, totalPaginas: e.totalPaginas, maximoBotoes: e.tabela.maximo_botoes_paginacao, acoes: e.acoesInferiores, parametrosConsulta: e.parametrosConsultaAtuais, onAlterar: e.irParaPagina }, null, 8, ["pagina", "totalPaginas", "maximoBotoes", "acoes", "parametrosConsulta", "onAlterar"])) : te("", !0) ]); } const yh = /* @__PURE__ */ ee(vh, [["render", _h]]), Ay = (e, n) => [e, n], kh = Q({ name: "EliOlaMundo", components: { EliBotao: oa, EliBadge: vr, EliEntradaTexto: pr }, setup() { const e = W(""), n = W(""), r = W(""), o = W(""), t = W(""); return { nome: e, email: o, documento: t, telefone: r, cep: n }; } }), Sh = { class: "grid-example" }; function Ih(e, n, r, o, t, i) { const a = Y("EliBadge"), l = Y("EliEntradaTexto"), c = Y("EliBotao"); return _(), re(Tm, null, { default: ce(() => [ C(Qo, { class: "mx-auto", max_width: "400" }, { default: ce(() => [ C(ea, null, { default: ce(() => [ C(a, { badge: "Novo", "offset-x": "-15", location: "right center" }, { default: ce(() => [...n[5] || (n[5] = [ ue(" Olá Mundo! ", -1) ])]), _: 1 }) ]), _: 1 }), C(ta, null, { default: ce(() => [ n[6] || (n[6] = ue(" Este é um componente de exemplo integrado com Vuetify. ", -1)), g("div", Sh, [ C(l, { value: e.nome, "onUpdate:value": n[0] || (n[0] = (u) => e.nome = u), opcoes: { rotulo: "Nome", placeholder: "Digite o nome" }, density: "compact" }, null, 8, ["value"]), C(l, { value: e.telefone, "onUpdate:value": n[1] || (n[1] = (u) => e.telefone = u), opcoes: { rotulo: "Telefone", formato: "telefone" } }, null, 8, ["value"]), C(l, { value: e.cep, "onUpdate:value": n[2] || (n[2] = (u) => e.cep = u), opcoes: { rotulo: "CEP", placeholder: "00000-000", formato: "cep" } }, null, 8, ["value"]), C(l, { value: e.documento, "onUpdate:value": n[3] || (n[3] = (u) => e.documento = u), opcoes: { rotulo: "CPF / CNPJ", formato: "cpfCnpj" } }, null, 8, ["value"]), C(l, { value: e.email, "onUpdate:value": n[4] || (n[4] = (u) => e.email = u), opcoes: { rotulo: "Email", placeholder: "email@exemplo.com", formato: "email" } }, null, 8, ["value"]) ]) ]), _: 1 }), C(na, null, { default: ce(() => [ C(c, { color: "primary", variant: "elevated", block: "" }, { default: ce(() => [...n[7] || (n[7] = [ ue(" Botão Vuetify ", -1) ])]), _: 1 }) ]), _: 1 }) ]), _: 1 }) ]), _: 1 }); } const wh = /* @__PURE__ */ ee(kh, [["render", Ih]]); var Do; const _a = /* @__PURE__ */ Object.freeze({ status: "aborted" }); function v(e, n, r) { function o(l, c) { if (l._zod || Object.defineProperty(l, "_zod", { value: { def: c, constr: a, traits: /* @__PURE__ */ new Set() }, enumerable: !1 }), l._zod.traits.has(e)) return; l._zod.traits.add(e), n(l, c); const u = a.prototype, d = Object.keys(u); for (let s = 0; s < d.length; s++) { const m = d[s]; m in l || (l[m] = u[m].bind(l)); } } const t = (r == null ? void 0 : r.Parent) ?? Object; class i extends t { } Object.defineProperty(i, "name", { value: e }); function a(l) { var c; const u = r != null && r.Parent ? new i() : this; o(u, l), (c = u._zod).deferred ?? (c.deferred = []); for (const d of u._zod.deferred) d(); return u; } return Object.defineProperty(a, "init", { value: o }), Object.defineProperty(a, Symbol.hasInstance, { value: (l) => { var c, u; return r != null && r.Parent && l instanceof r.Parent ? !0 : (u = (c = l == null ? void 0 : l._zod) == null ? void 0 : c.traits) == null ? void 0 : u.has(e); } }), Object.defineProperty(a, "name", { value: e }), a; } const ya = Symbol("zod_brand"); class Ye extends Error { constructor() { super("Encountered Promise during synchronous parse. Use .parseAsync() instead."); } } class vn extends Error { constructor(n) { super(`Encountered unidirectional transform during encode: ${n}`), this.name = "ZodEncodeError"; } } (Do = globalThis).__zod_globalConfig ?? (Do.__zod_globalConfig = {}); const _t = globalThis.__zod_globalConfig; function ve(e) { return e && Object.assign(_t, e), _t; } function zh(e) { return e; } function xh(e) { return e; } function Dh(e) { } function jh(e) { throw new Error("Unexpected value in exhaustive check"); } function Oh(e) { } function hr(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 y(e, n = "|") { return e.map((r) => M(r)).join(n); } function ln(e, n) { return typeof n == "bigint" ? n.toString() : n; } function xt(e) { return { get value() { { const n = e(); return Object.defineProperty(this, "value", { value: n }), n; } } }; } function tt(e) { return e == null; } function pn(e) { const n = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length; return e.slice(n, r); } function ka(e, n) { const r = e / n, o = Math.round(r), t = Number.EPSILON * Math.max(Math.abs(r), 1); return Math.abs(r - o) < t ? 0 : r - o; } const jo = /* @__PURE__ */ Symbol("evaluating"); function K(e, n, r) { let o; Object.defineProperty(e, n, { get() { if (o !== jo) return o === void 0 && (o = jo, o = r()), o; }, set(t) { Object.defineProperty(e, n, { value: t // configurable: true, }); }, configurable: !0 }); } function Uh(e) { return Object.create(Object.getPrototypeOf(e), Object.getOwnPropertyDescriptors(e)); } function Ke(e, n, r) { Object.defineProperty(e, n, { value: r, writable: !0, enumerable: !0, configurable: !0 }); } function Pe(...e) { const n = {}; for (const r of e) { const o = Object.getOwnPropertyDescriptors(r); Object.assign(n, o); } return Object.defineProperties({}, n); } function Eh(e) { return Pe(e._zod.def); } function Th(e, n) { return n ? n.reduce((r, o) => r == null ? void 0 : r[o], e) : e; } function Nh(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 Ph(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 lr(e) { return JSON.stringify(e); } function Sa(e) { return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, ""); } const $r = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => { }; function at(e) { return typeof e == "object" && e !== null && !Array.isArray(e); } const Ia = /* @__PURE__ */ xt(() => { var e; if (_t.jitless || 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 He(e) { if (at(e) === !1) return !1; const n = e.constructor; if (n === void 0 || typeof n != "function") return !0; const r = n.prototype; return !(at(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1); } function gn(e) { return He(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e; } function Ah(e) { let n = 0; for (const r in e) Object.prototype.hasOwnProperty.call(e, r) && n++; return n; } const Zh = (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"]), wa = /* @__PURE__ */ new Set([ "string", "number", "bigint", "boolean", "symbol", "undefined" ]); function Me(e) { return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } function Ue(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 Ch(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 M(e) { return typeof e == "bigint" ? e.toString() + "n" : typeof e == "string" ? `"${e}"` : `${e}`; } function za(e) { return Object.keys(e).filter((n) => e[n]._zod.optin === "optional" && e[n]._zod.optout === "optional"); } const xa = { 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] }, Da = { int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")], uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")] }; function ja(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 = Pe(e._zod.def, { get shape() { const a = {}; for (const l in n) { if (!(l in r.shape)) throw new Error(`Unrecognized key: "${l}"`); n[l] && (a[l] = r.shape[l]); } return Ke(this, "shape", a), a; }, checks: [] }); return Ue(e, i); } function Oa(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 = Pe(e._zod.def, { get shape() { const a = { ...e._zod.def.shape }; for (const l in n) { if (!(l in r.shape)) throw new Error(`Unrecognized key: "${l}"`); n[l] && delete a[l]; } return Ke(this, "shape", a), a; }, checks: [] }); return Ue(e, i); } function Ua(e, n) { if (!He(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 = Pe(e._zod.def, { get shape() { const i = { ...e._zod.def.shape, ...n }; return Ke(this, "shape", i), i; } }); return Ue(e, t); } function Ea(e, n) { if (!He(n)) throw new Error("Invalid input to safeExtend: expected a plain object"); const r = Pe(e._zod.def, { get shape() { const o = { ...e._zod.def.shape, ...n }; return Ke(this, "shape", o), o; } }); return Ue(e, r); } function Ta(e, n) { var o; if ((o = e._zod.def.checks) != null && o.length) throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead."); const r = Pe(e._zod.def, { get shape() { const t = { ...e._zod.def.shape, ...n._zod.def.shape }; return Ke(this, "shape", t), t; }, get catchall() { return n._zod.def.catchall; }, checks: n._zod.def.checks ?? [] }); return Ue(e, r); } function Na(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 = Pe(n._zod.def, { get shape() { const l = n._zod.def.shape, c = { ...l }; if (r) for (const u in r) { if (!(u in l)) throw new Error(`Unrecognized key: "${u}"`); r[u] && (c[u] = e ? new e({ type: "optional", innerType: l[u] }) : l[u]); } else for (const u in l) c[u] = e ? new e({ type: "optional", innerType: l[u] }) : l[u]; return Ke(this, "shape", c), c; }, checks: [] }); return Ue(n, a); } function Pa(e, n, r) { const o = Pe(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 Ke(this, "shape", i), i; } }); return Ue(n, o); } function Ge(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 Aa(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) === !1) return !0; return !1; } function De(e, n) { return n.map((r) => { var o; return (o = r).path ?? (o.path = []), r.path.unshift(e), r; }); } function bt(e) { return typeof e == "string" ? e : e == null ? void 0 : e.message; } function we(e, n, r) { var c, u, d, s, m, f; const o = e.message ? e.message : bt((d = (u = (c = e.inst) == null ? void 0 : c._zod.def) == null ? void 0 : u.error) == null ? void 0 : d.call(u, e)) ?? bt((s = n == null ? void 0 : n.error) == null ? void 0 : s.call(n, e)) ?? bt((m = r.customError) == null ? void 0 : m.call(r, e)) ?? bt((f = r.localeError) == null ? void 0 : f.call(r, e)) ?? "Invalid input", { inst: t, continue: i, input: a, ...l } = e; return l.path ?? (l.path = []), l.message = o, n != null && n.reportInput && (l.input = a), l; } function hn(e) { return e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof File ? "file" : "unknown"; } function $n(e) { return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown"; } function F(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 lt(...e) { const [n, r, o] = e; return typeof n == "string" ? { message: n, code: "custom", input: r, inst: o } : { ...n }; } function Mh(e) { return Object.entries(e).filter(([n, r]) => Number.isNaN(Number.parseInt(n, 10))).map((n) => n[1]); } function Za(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 Ca(e) { let n = ""; for (let r = 0; r < e.length; r++) n += String.fromCharCode(e[r]); return btoa(n); } function Fh(e) { const n = e.replace(/-/g, "+").replace(/_/g, "/"), r = "=".repeat((4 - n.length % 4) % 4); return Za(n + r); } function Lh(e) { return Ca(e).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); } function Rh(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 Jh(e) { return Array.from(e).map((n) => n.toString(16).padStart(2, "0")).join(""); } class Bh { constructor(...n) { } } const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, BIGINT_FORMAT_RANGES: Da, Class: Bh, NUMBER_FORMAT_RANGES: xa, aborted: Ge, allowsEval: Ia, assert: Oh, assertEqual: zh, assertIs: Dh, assertNever: jh, assertNotEqual: xh, assignProp: Ke, base64ToUint8Array: Za, base64urlToUint8Array: Fh, cached: xt, captureStackTrace: $r, cleanEnum: Mh, cleanRegex: pn, clone: Ue, cloneDef: Eh, createTransparentProxy: Ch, defineLazy: K, esc: lr, escapeRegex: Me, explicitlyAborted: Aa, extend: Ua, finalizeIssue: we, floatSafeRemainder: ka, getElementAtPath: Th, getEnumValues: hr, getLengthableOrigin: $n, getParsedType: Zh, getSizableOrigin: hn, hexToUint8Array: Rh, isObject: at, isPlainObject: He, issue: lt, joinValues: y, jsonStringifyReplacer: ln, merge: Ta, mergeDefs: Pe, normalizeParams: $, nullish: tt, numKeys: Ah, objectClone: Uh, omit: Oa, optionalKeys: za, parsedType: F, partial: Na, pick: ja, prefixIssues: De, primitiveTypes: wa, promiseAllObject: Nh, propertyKeyTypes: un, randomString: Ph, required: Pa, safeExtend: Ea, shallowClone: gn, slugify: Sa, stringifyPrimitive: M, uint8ArrayToBase64: Ca, uint8ArrayToBase64url: Lh, uint8ArrayToHex: Jh, unwrapMessage: bt }, Symbol.toStringTag, { value: "Module" })), Fa = (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, ln, 2), Object.defineProperty(e, "toString", { value: () => e.message, enumerable: !1 }); }, br = v("$ZodError", Fa), ze = v("$ZodError", Fa, { Parent: Error }); function _r(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 yr(e, n = (r) => r.message) { const r = { _errors: [] }, o = (t, i = []) => { for (const a of t.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((l) => o({ issues: l }, [...i, ...a.path])); else if (a.code === "invalid_key") o({ issues: a.issues }, [...i, ...a.path]); else if (a.code === "invalid_element") o({ issues: a.issues }, [...i, ...a.path]); else { const l = [...i, ...a.path]; if (l.length === 0) r._errors.push(n(a)); else { let c = r, u = 0; for (; u < l.length; ) { const d = l[u]; u === l.length - 1 ? (c[d] = c[d] || { _errors: [] }, c[d]._errors.push(n(a))) : c[d] = c[d] || { _errors: [] }, c = c[d], u++; } } } }; return o(e), r; } function La(e, n = (r) => r.message) { const r = { errors: [] }, o = (t, i = []) => { var a, l; for (const c of t.issues) if (c.code === "invalid_union" && c.errors.length) c.errors.map((u) => o({ issues: u }, [...i, ...c.path])); else if (c.code === "invalid_key") o({ issues: c.issues }, [...i, ...c.path]); else if (c.code === "invalid_element") o({ issues: c.issues }, [...i, ...c.path]); else { const u = [...i, ...c.path]; if (u.length === 0) { r.errors.push(n(c)); continue; } let d = r, s = 0; for (; s < u.length; ) { const m = u[s], f = s === u.length - 1; typeof m == "string" ? (d.properties ?? (d.properties = {}), (a = d.properties)[m] ?? (a[m] = { errors: [] }), d = d.properties[m]) : (d.items ?? (d.items = []), (l = d.items)[m] ?? (l[m] = { errors: [] }), d = d.items[m]), f && d.errors.push(n(c)), s++; } } }; return o(e), r; } function Ra(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 Ja(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 ${Ra(t.path)}`); return n.join(` `); } const Dt = (e) => (n, r, o, t) => { const i = o ? { ...o, async: !1 } : { async: !1 }, a = n._zod.run({ value: r, issues: [] }, i); if (a instanceof Promise) throw new Ye(); if (a.issues.length) { const l = new ((t == null ? void 0 : t.Err) ?? e)(a.issues.map((c) => we(c, i, ve()))); throw $r(l, t == null ? void 0 : t.callee), l; } return a.value; }, ur = /* @__PURE__ */ Dt(ze), jt = (e) => async (n, r, o, t) => { const i = o ? { ...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 l = new ((t == null ? void 0 : t.Err) ?? e)(a.issues.map((c) => we(c, i, ve()))); throw $r(l, t == null ? void 0 : t.callee), l; } return a.value; }, cr = /* @__PURE__ */ jt(ze), Ot = (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 Ye(); return i.issues.length ? { success: !1, error: new (e ?? br)(i.issues.map((a) => we(a, t, ve()))) } : { success: !0, data: i.value }; }, Ba = /* @__PURE__ */ Ot(ze), Ut = (e) => async (n, r, o) => { const t = o ? { ...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) => we(a, t, ve()))) } : { success: !0, data: i.value }; }, Va = /* @__PURE__ */ Ut(ze), kr = (e) => (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return Dt(e)(n, r, t); }, Vh = /* @__PURE__ */ kr(ze), Sr = (e) => (n, r, o) => Dt(e)(n, r, o), qh = /* @__PURE__ */ Sr(ze), Ir = (e) => async (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return jt(e)(n, r, t); }, Kh = /* @__PURE__ */ Ir(ze), wr = (e) => async (n, r, o) => jt(e)(n, r, o), Wh = /* @__PURE__ */ wr(ze), zr = (e) => (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return Ot(e)(n, r, t); }, Gh = /* @__PURE__ */ zr(ze), xr = (e) => (n, r, o) => Ot(e)(n, r, o), Xh = /* @__PURE__ */ xr(ze), Dr = (e) => async (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return Ut(e)(n, r, t); }, Yh = /* @__PURE__ */ Dr(ze), jr = (e) => async (n, r, o) => Ut(e)(n, r, o), Hh = /* @__PURE__ */ jr(ze), qa = /^[cC][0-9a-z]{6,}$/, Ka = /^[0-9a-z]+$/, Wa = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ga = /^[0-9a-vA-V]{20}$/, Xa = /^[A-Za-z0-9]{27}$/, Ya = /^[a-zA-Z0-9_-]{21}$/, Ha = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Qh = /^[-+]?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)?)??$/, Qa = /^([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})$/, ut = (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)$/, e$ = /* @__PURE__ */ ut(4), t$ = /* @__PURE__ */ ut(6), n$ = /* @__PURE__ */ ut(7), el = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, r$ = /^[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])?)*$/, i$ = /^(([^<>()\[\]\\.,;:\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,}))$/, tl = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u, o$ = tl, a$ = /^[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])?)*$/, l$ = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"; function nl() { return new RegExp(l$, "u"); } const rl = /^(?:(?: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])$/, il = /^(([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}|:))$/, ol = (e) => { const n = Me(e ?? ":"); return new RegExp(`^(?:[0-9A-F]{2}${n}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${n}){5}[0-9a-f]{2}$`); }, al = /^((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])$/, ll = /^(([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])$/, ul = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Or = /^[A-Za-z0-9_-]*$/, cl = /^(?=.{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])?)*\.?$/, sl = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/, Ur = /^https?$/, dl = /^\+[1-9]\d{6,14}$/, ml = "(?:(?:\\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])))", fl = /* @__PURE__ */ new RegExp(`^${ml}$`); function vl(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 pl(e) { return new RegExp(`^${vl(e)}$`); } function gl(e) { const n = vl({ 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(`^${ml}T(?:${o})$`); } const hl = (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}$`); }, $l = /^-?\d+n?$/, bl = /^-?\d+$/, Er = /^-?\d+(?:\.\d+)?$/, _l = /^(?:true|false)$/i, yl = /^null$/i, kl = /^undefined$/i, Sl = /^[^A-Z]*$/, Il = /^[^a-z]*$/, wl = /^[0-9a-fA-F]*$/; function Et(e, n) { return new RegExp(`^[A-Za-z0-9+/]{${e}}${n}$`); } function Tt(e) { return new RegExp(`^[A-Za-z0-9_-]{${e}}$`); } const u$ = /^[0-9a-fA-F]{32}$/, c$ = /* @__PURE__ */ Et(22, "=="), s$ = /* @__PURE__ */ Tt(22), d$ = /^[0-9a-fA-F]{40}$/, m$ = /* @__PURE__ */ Et(27, "="), f$ = /* @__PURE__ */ Tt(27), v$ = /^[0-9a-fA-F]{64}$/, p$ = /* @__PURE__ */ Et(43, "="), g$ = /* @__PURE__ */ Tt(43), h$ = /^[0-9a-fA-F]{96}$/, $$ = /* @__PURE__ */ Et(64, ""), b$ = /* @__PURE__ */ Tt(64), _$ = /^[0-9a-fA-F]{128}$/, y$ = /* @__PURE__ */ Et(86, "=="), k$ = /* @__PURE__ */ Tt(86), Tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, base64: ul, base64url: Or, bigint: $l, boolean: _l, browserEmail: a$, cidrv4: al, cidrv6: ll, cuid: qa, cuid2: Ka, date: fl, datetime: gl, domain: sl, duration: Ha, e164: dl, email: el, emoji: nl, extendedDuration: Qh, guid: Qa, hex: wl, hostname: cl, html5Email: r$, httpProtocol: Ur, idnEmail: o$, integer: bl, ipv4: rl, ipv6: il, ksuid: Xa, lowercase: Sl, mac: ol, md5_base64: c$, md5_base64url: s$, md5_hex: u$, nanoid: Ya, null: yl, number: Er, rfc5322Email: i$, sha1_base64: m$, sha1_base64url: f$, sha1_hex: d$, sha256_base64: p$, sha256_base64url: g$, sha256_hex: v$, sha384_base64: $$, sha384_base64url: b$, sha384_hex: h$, sha512_base64: y$, sha512_base64url: k$, sha512_hex: _$, string: hl, time: pl, ulid: Wa, undefined: kl, unicodeEmail: tl, uppercase: Il, uuid: ut, uuid4: e$, uuid6: t$, uuid7: n$, xid: Ga }, Symbol.toStringTag, { value: "Module" })), le = /* @__PURE__ */ v("$ZodCheck", (e, n) => { var r; e._zod ?? (e._zod = {}), e._zod.def = n, (r = e._zod).onattach ?? (r.onattach = []); }), zl = { number: "number", bigint: "bigint", object: "date" }, Nr = /* @__PURE__ */ v("$ZodCheckLessThan", (e, n) => { le.init(e, n); const r = zl[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 }); }; }), Pr = /* @__PURE__ */ v("$ZodCheckGreaterThan", (e, n) => { le.init(e, n); const r = zl[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 }); }; }), xl = /* @__PURE__ */ v("$ZodCheckMultipleOf", (e, n) => { le.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) : ka(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 }); }; }), Dl = /* @__PURE__ */ v("$ZodCheckNumberFormat", (e, n) => { var a; le.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] = xa[n.format]; e._zod.onattach.push((l) => { const c = l._zod.bag; c.format = n.format, c.minimum = t, c.maximum = i, r && (c.pattern = bl); }), e._zod.check = (l) => { const c = l.value; if (r) { if (!Number.isInteger(c)) { l.issues.push({ expected: o, format: n.format, code: "invalid_type", continue: !1, input: c, inst: e }); return; } if (!Number.isSafeInteger(c)) { c > 0 ? l.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 }) : l.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 && l.issues.push({ origin: "number", input: c, code: "too_small", minimum: t, inclusive: !0, inst: e, continue: !n.abort }), c > i && l.issues.push({ origin: "number", input: c, code: "too_big", maximum: i, inclusive: !0, inst: e, continue: !n.abort }); }; }), jl = /* @__PURE__ */ v("$ZodCheckBigIntFormat", (e, n) => { le.init(e, n); const [r, o] = Da[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 }); }; }), Ol = /* @__PURE__ */ v("$ZodCheckMaxSize", (e, n) => { var r; le.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !tt(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: hn(t), code: "too_big", maximum: n.maximum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), Ul = /* @__PURE__ */ v("$ZodCheckMinSize", (e, n) => { var r; le.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !tt(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: hn(t), code: "too_small", minimum: n.minimum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), El = /* @__PURE__ */ v("$ZodCheckSizeEquals", (e, n) => { var r; le.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !tt(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: hn(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 }); }; }), Tl = /* @__PURE__ */ v("$ZodCheckMaxLength", (e, n) => { var r; le.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !tt(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 = $n(t); o.issues.push({ origin: a, code: "too_big", maximum: n.maximum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), Nl = /* @__PURE__ */ v("$ZodCheckMinLength", (e, n) => { var r; le.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !tt(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 = $n(t); o.issues.push({ origin: a, code: "too_small", minimum: n.minimum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), Pl = /* @__PURE__ */ v("$ZodCheckLengthEquals", (e, n) => { var r; le.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !tt(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 = $n(t), l = i > n.length; o.issues.push({ origin: a, ...l ? { code: "too_big", maximum: n.length } : { code: "too_small", minimum: n.length }, inclusive: !0, exact: !0, input: o.value, inst: e, continue: !n.abort }); }; }), Nt = /* @__PURE__ */ v("$ZodCheckStringFormat", (e, n) => { var r, o; le.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 = () => { }); }), Al = /* @__PURE__ */ v("$ZodCheckRegex", (e, n) => { Nt.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 }); }; }), Zl = /* @__PURE__ */ v("$ZodCheckLowerCase", (e, n) => { n.pattern ?? (n.pattern = Sl), Nt.init(e, n); }), Cl = /* @__PURE__ */ v("$ZodCheckUpperCase", (e, n) => { n.pattern ?? (n.pattern = Il), Nt.init(e, n); }), Ml = /* @__PURE__ */ v("$ZodCheckIncludes", (e, n) => { le.init(e, n); const r = Me(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 }); }; }), Fl = /* @__PURE__ */ v("$ZodCheckStartsWith", (e, n) => { le.init(e, n); const r = new RegExp(`^${Me(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 }); }; }), Ll = /* @__PURE__ */ v("$ZodCheckEndsWith", (e, n) => { le.init(e, n); const r = new RegExp(`.*${Me(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 Oo(e, n, r) { e.issues.length && n.issues.push(...De(r, e.issues)); } const Rl = /* @__PURE__ */ v("$ZodCheckProperty", (e, n) => { le.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) => Oo(t, r, n.property)); Oo(o, r, n.property); }; }), Jl = /* @__PURE__ */ v("$ZodCheckMimeType", (e, n) => { le.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 }); }; }), Bl = /* @__PURE__ */ v("$ZodCheckOverwrite", (e, n) => { le.init(e, n), e._zod.check = (r) => { r.value = n.tx(r.value); }; }); class Vl { 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 ql = { major: 4, minor: 4, patch: 3 }, B = /* @__PURE__ */ v("$ZodType", (e, n) => { var t; var r; e ?? (e = {}), e._zod.def = n, e._zod.bag = e._zod.bag || {}, e._zod.version = ql; 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 = (l, c, u) => { let d = Ge(l), s; for (const m of c) { if (m._zod.def.when) { if (Aa(l) || !m._zod.def.when(l)) continue; } else if (d) continue; const f = l.issues.length, p = m._zod.check(l); if (p instanceof Promise && (u == null ? void 0 : u.async) === !1) throw new Ye(); if (s || p instanceof Promise) s = (s ?? Promise.resolve()).then(async () => { await p, l.issues.length !== f && (d || (d = Ge(l, f))); }); else { if (l.issues.length === f) continue; d || (d = Ge(l, f)); } } return s ? s.then(() => l) : l; }, a = (l, c, u) => { if (Ge(l)) return l.aborted = !0, l; const d = i(c, o, u); if (d instanceof Promise) { if (u.async === !1) throw new Ye(); return d.then((s) => e._zod.parse(s, u)); } return e._zod.parse(d, u); }; e._zod.run = (l, c) => { if (c.skipChecks) return e._zod.parse(l, c); if (c.direction === "backward") { const d = e._zod.parse({ value: l.value, issues: [] }, { ...c, skipChecks: !0 }); return d instanceof Promise ? d.then((s) => a(s, l, c)) : a(d, l, c); } const u = e._zod.parse(l, c); if (u instanceof Promise) { if (c.async === !1) throw new Ye(); return u.then((d) => i(d, o, c)); } return i(u, o, c); }; } K(e, "~standard", () => ({ validate: (i) => { var a; try { const l = Ba(e, i); return l.success ? { value: l.data } : { issues: (a = l.error) == null ? void 0 : a.issues }; } catch { return Va(e, i).then((c) => { var u; return c.success ? { value: c.data } : { issues: (u = c.error) == null ? void 0 : u.issues }; }); } }, vendor: "zod", version: 1 })); }), Pt = /* @__PURE__ */ v("$ZodString", (e, n) => { var r; B.init(e, n), e._zod.pattern = [...((r = e == null ? void 0 : e._zod.bag) == null ? void 0 : r.patterns) ?? []].pop() ?? hl(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; }; }), ie = /* @__PURE__ */ v("$ZodStringFormat", (e, n) => { Nt.init(e, n), Pt.init(e, n); }), Kl = /* @__PURE__ */ v("$ZodGUID", (e, n) => { n.pattern ?? (n.pattern = Qa), ie.init(e, n); }), Wl = /* @__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 = ut(o)); } else n.pattern ?? (n.pattern = ut()); ie.init(e, n); }), Gl = /* @__PURE__ */ v("$ZodEmail", (e, n) => { n.pattern ?? (n.pattern = el), ie.init(e, n); }), Xl = /* @__PURE__ */ v("$ZodURL", (e, n) => { ie.init(e, n), e._zod.check = (r) => { var o; try { const t = r.value.trim(); if (!n.normalize && ((o = n.protocol) == null ? void 0 : o.source) === Ur.source && !/^https?:\/\//i.test(t)) { r.issues.push({ code: "invalid_format", format: "url", note: "Invalid URL format", input: r.value, inst: e, continue: !n.abort }); return; } const i = new URL(t); n.hostname && (n.hostname.lastIndex = 0, n.hostname.test(i.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(i.protocol.endsWith(":") ? i.protocol.slice(0, -1) : i.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 = i.href : r.value = t; return; } catch { r.issues.push({ code: "invalid_format", format: "url", input: r.value, inst: e, continue: !n.abort }); } }; }), Yl = /* @__PURE__ */ v("$ZodEmoji", (e, n) => { n.pattern ?? (n.pattern = nl()), ie.init(e, n); }), Hl = /* @__PURE__ */ v("$ZodNanoID", (e, n) => { n.pattern ?? (n.pattern = Ya), ie.init(e, n); }), Ql = /* @__PURE__ */ v("$ZodCUID", (e, n) => { n.pattern ?? (n.pattern = qa), ie.init(e, n); }), eu = /* @__PURE__ */ v("$ZodCUID2", (e, n) => { n.pattern ?? (n.pattern = Ka), ie.init(e, n); }), tu = /* @__PURE__ */ v("$ZodULID", (e, n) => { n.pattern ?? (n.pattern = Wa), ie.init(e, n); }), nu = /* @__PURE__ */ v("$ZodXID", (e, n) => { n.pattern ?? (n.pattern = Ga), ie.init(e, n); }), ru = /* @__PURE__ */ v("$ZodKSUID", (e, n) => { n.pattern ?? (n.pattern = Xa), ie.init(e, n); }), iu = /* @__PURE__ */ v("$ZodISODateTime", (e, n) => { n.pattern ?? (n.pattern = gl(n)), ie.init(e, n); }), ou = /* @__PURE__ */ v("$ZodISODate", (e, n) => { n.pattern ?? (n.pattern = fl), ie.init(e, n); }), au = /* @__PURE__ */ v("$ZodISOTime", (e, n) => { n.pattern ?? (n.pattern = pl(n)), ie.init(e, n); }), lu = /* @__PURE__ */ v("$ZodISODuration", (e, n) => { n.pattern ?? (n.pattern = Ha), ie.init(e, n); }), uu = /* @__PURE__ */ v("$ZodIPv4", (e, n) => { n.pattern ?? (n.pattern = rl), ie.init(e, n), e._zod.bag.format = "ipv4"; }), cu = /* @__PURE__ */ v("$ZodIPv6", (e, n) => { n.pattern ?? (n.pattern = il), ie.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 }); } }; }), su = /* @__PURE__ */ v("$ZodMAC", (e, n) => { n.pattern ?? (n.pattern = ol(n.delimiter)), ie.init(e, n), e._zod.bag.format = "mac"; }), du = /* @__PURE__ */ v("$ZodCIDRv4", (e, n) => { n.pattern ?? (n.pattern = al), ie.init(e, n); }), mu = /* @__PURE__ */ v("$ZodCIDRv6", (e, n) => { n.pattern ?? (n.pattern = ll), ie.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 Ar(e) { if (e === "") return !0; if (/\s/.test(e) || e.length % 4 !== 0) return !1; try { return atob(e), !0; } catch { return !1; } } const fu = /* @__PURE__ */ v("$ZodBase64", (e, n) => { n.pattern ?? (n.pattern = ul), ie.init(e, n), e._zod.bag.contentEncoding = "base64", e._zod.check = (r) => { Ar(r.value) || r.issues.push({ code: "invalid_format", format: "base64", input: r.value, inst: e, continue: !n.abort }); }; }); function vu(e) { if (!Or.test(e)) return !1; const n = e.replace(/[-_]/g, (o) => o === "-" ? "+" : "/"), r = n.padEnd(Math.ceil(n.length / 4) * 4, "="); return Ar(r); } const pu = /* @__PURE__ */ v("$ZodBase64URL", (e, n) => { n.pattern ?? (n.pattern = Or), ie.init(e, n), e._zod.bag.contentEncoding = "base64url", e._zod.check = (r) => { vu(r.value) || r.issues.push({ code: "invalid_format", format: "base64url", input: r.value, inst: e, continue: !n.abort }); }; }), gu = /* @__PURE__ */ v("$ZodE164", (e, n) => { n.pattern ?? (n.pattern = dl), ie.init(e, n); }); function hu(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 $u = /* @__PURE__ */ v("$ZodJWT", (e, n) => { ie.init(e, n), e._zod.check = (r) => { hu(r.value, n.alg) || r.issues.push({ code: "invalid_format", format: "jwt", input: r.value, inst: e, continue: !n.abort }); }; }), bu = /* @__PURE__ */ v("$ZodCustomStringFormat", (e, n) => { ie.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 }); }; }), Zr = /* @__PURE__ */ v("$ZodNumber", (e, n) => { B.init(e, n), e._zod.pattern = e._zod.bag.pattern ?? Er, 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; }; }), _u = /* @__PURE__ */ v("$ZodNumberFormat", (e, n) => { Dl.init(e, n), Zr.init(e, n); }), Cr = /* @__PURE__ */ v("$ZodBoolean", (e, n) => { B.init(e, n), e._zod.pattern = _l, 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; }; }), Mr = /* @__PURE__ */ v("$ZodBigInt", (e, n) => { B.init(e, n), e._zod.pattern = $l, 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; }; }), yu = /* @__PURE__ */ v("$ZodBigIntFormat", (e, n) => { jl.init(e, n), Mr.init(e, n); }), ku = /* @__PURE__ */ v("$ZodSymbol", (e, n) => { B.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; }; }), Su = /* @__PURE__ */ v("$ZodUndefined", (e, n) => { B.init(e, n), e._zod.pattern = kl, e._zod.values = /* @__PURE__ */ new Set([void 0]), 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; }; }), Iu = /* @__PURE__ */ v("$ZodNull", (e, n) => { B.init(e, n), e._zod.pattern = yl, 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; }; }), wu = /* @__PURE__ */ v("$ZodAny", (e, n) => { B.init(e, n), e._zod.parse = (r) => r; }), zu = /* @__PURE__ */ v("$ZodUnknown", (e, n) => { B.init(e, n), e._zod.parse = (r) => r; }), xu = /* @__PURE__ */ v("$ZodNever", (e, n) => { B.init(e, n), e._zod.parse = (r, o) => (r.issues.push({ expected: "never", code: "invalid_type", input: r.value, inst: e }), r); }), Du = /* @__PURE__ */ v("$ZodVoid", (e, n) => { B.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; }; }), ju = /* @__PURE__ */ v("$ZodDate", (e, n) => { B.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 Uo(e, n, r) { e.issues.length && n.issues.push(...De(r, e.issues)), n.value[r] = e.value; } const Ou = /* @__PURE__ */ v("$ZodArray", (e, n) => { B.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 l = t[a], c = n.element._zod.run({ value: l, issues: [] }, o); c instanceof Promise ? i.push(c.then((u) => Uo(u, r, a))) : Uo(c, r, a); } return i.length ? Promise.all(i).then(() => r) : r; }; }); function cn(e, n, r, o, t, i) { const a = r in o; if (e.issues.length) { if (t && i && !a) return; n.issues.push(...De(r, e.issues)); } if (!a && !t) { e.issues.length || n.issues.push({ code: "invalid_type", expected: "nonoptional", input: void 0, path: [r] }); return; } e.value === void 0 ? a && (n.value[r] = void 0) : n.value[r] = e.value; } function Uu(e) { var o, t, i, a; const n = Object.keys(e.shape); for (const l of n) if (!((a = (i = (t = (o = e.shape) == null ? void 0 : o[l]) == null ? void 0 : t._zod) == null ? void 0 : i.traits) != null && a.has("$ZodType"))) throw new Error(`Invalid element at key "${l}": expected a Zod schema`); const r = za(e.shape); return { ...e, keys: n, keySet: new Set(n), numKeys: n.length, optionalKeys: new Set(r) }; } function Eu(e, n, r, o, t, i) { const a = [], l = t.keySet, c = t.catchall._zod, u = c.def.type, d = c.optin === "optional", s = c.optout === "optional"; for (const m in n) { if (m === "__proto__" || l.has(m)) continue; if (u === "never") { a.push(m); continue; } const f = c.run({ value: n[m], issues: [] }, o); f instanceof Promise ? e.push(f.then((p) => cn(p, r, m, n, d, s))) : cn(f, r, m, n, d, s); } return a.length && r.issues.push({ code: "unrecognized_keys", keys: a, input: n, inst: i }), e.length ? Promise.all(e).then(() => r) : r; } const Tu = /* @__PURE__ */ v("$ZodObject", (e, n) => { B.init(e, n); const r = Object.getOwnPropertyDescriptor(n, "shape"); if (!(r != null && r.get)) { const l = n.shape; Object.defineProperty(n, "shape", { get: () => { const c = { ...l }; return Object.defineProperty(n, "shape", { value: c }), c; } }); } const o = xt(() => Uu(n)); K(e._zod, "propValues", () => { const l = n.shape, c = {}; for (const u in l) { const d = l[u]._zod; if (d.values) { c[u] ?? (c[u] = /* @__PURE__ */ new Set()); for (const s of d.values) c[u].add(s); } } return c; }); const t = at, i = n.catchall; let a; e._zod.parse = (l, c) => { a ?? (a = o.value); const u = l.value; if (!t(u)) return l.issues.push({ expected: "object", code: "invalid_type", input: u, inst: e }), l; l.value = {}; const d = [], s = a.shape; for (const m of a.keys) { const f = s[m], p = f._zod.optin === "optional", h = f._zod.optout === "optional", E = f._zod.run({ value: u[m], issues: [] }, c); E instanceof Promise ? d.push(E.then((S) => cn(S, l, m, u, p, h))) : cn(E, l, m, u, p, h); } return i ? Eu(d, u, l, c, o.value, e) : d.length ? Promise.all(d).then(() => l) : l; }; }), Nu = /* @__PURE__ */ v("$ZodObjectJIT", (e, n) => { Tu.init(e, n); const r = e._zod.parse, o = xt(() => Uu(n)), t = (m) => { var L, A; const f = new Vl(["shape", "payload", "ctx"]), p = o.value, h = (Z) => { const k = lr(Z); return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`; }; f.write("const input = payload.value;"); const E = /* @__PURE__ */ Object.create(null); let S = 0; for (const Z of p.keys) E[Z] = `key_${S++}`; f.write("const newResult = {};"); for (const Z of p.keys) { const k = E[Z], b = lr(Z), T = m[Z], G = ((L = T == null ? void 0 : T._zod) == null ? void 0 : L.optin) === "optional", P = ((A = T == null ? void 0 : T._zod) == null ? void 0 : A.optout) === "optional"; f.write(`const ${k} = ${h(Z)};`), G && P ? f.write(` if (${k}.issues.length) { if (${b} in input) { payload.issues = payload.issues.concat(${k}.issues.map(iss => ({ ...iss, path: iss.path ? [${b}, ...iss.path] : [${b}] }))); } } if (${k}.value === undefined) { if (${b} in input) { newResult[${b}] = undefined; } } else { newResult[${b}] = ${k}.value; } `) : G ? f.write(` if (${k}.issues.length) { payload.issues = payload.issues.concat(${k}.issues.map(iss => ({ ...iss, path: iss.path ? [${b}, ...iss.path] : [${b}] }))); } if (${k}.value === undefined) { if (${b} in input) { newResult[${b}] = undefined; } } else { newResult[${b}] = ${k}.value; } `) : f.write(` const ${k}_present = ${b} in input; if (${k}.issues.length) { payload.issues = payload.issues.concat(${k}.issues.map(iss => ({ ...iss, path: iss.path ? [${b}, ...iss.path] : [${b}] }))); } if (!${k}_present && !${k}.issues.length) { payload.issues.push({ code: "invalid_type", expected: "nonoptional", input: undefined, path: [${b}] }); } if (${k}_present) { if (${k}.value === undefined) { newResult[${b}] = undefined; } else { newResult[${b}] = ${k}.value; } } `); } f.write("payload.value = newResult;"), f.write("return payload;"); const w = f.compile(); return (Z, k) => w(m, Z, k); }; let i; const a = at, l = !_t.jitless, u = l && Ia.value, d = n.catchall; let s; e._zod.parse = (m, f) => { s ?? (s = o.value); const p = m.value; return a(p) ? l && u && (f == null ? void 0 : f.async) === !1 && f.jitless !== !0 ? (i || (i = t(n.shape)), m = i(m, f), d ? Eu([], p, m, f, s, e) : m) : r(m, f) : (m.issues.push({ expected: "object", code: "invalid_type", input: p, inst: e }), m); }; }); function Eo(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) => !Ge(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) => we(a, o, ve()))) }), n); } const bn = /* @__PURE__ */ v("$ZodUnion", (e, n) => { B.init(e, n), K(e._zod, "optin", () => n.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), K(e._zod, "optout", () => n.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), K(e._zod, "values", () => { if (n.options.every((o) => o._zod.values)) return new Set(n.options.flatMap((o) => Array.from(o._zod.values))); }), K(e._zod, "pattern", () => { if (n.options.every((o) => o._zod.pattern)) { const o = n.options.map((t) => t._zod.pattern); return new RegExp(`^(${o.map((t) => pn(t.source)).join("|")})$`); } }); const r = n.options.length === 1 ? n.options[0]._zod.run : null; e._zod.parse = (o, t) => { if (r) return r(o, t); let i = !1; const a = []; for (const l of n.options) { const c = l._zod.run({ value: o.value, issues: [] }, t); if (c instanceof Promise) a.push(c), i = !0; else { if (c.issues.length === 0) return c; a.push(c); } } return i ? Promise.all(a).then((l) => Eo(l, o, e, t)) : Eo(a, o, e, t); }; }); function To(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) => we(a, o, ve()))) }) : n.issues.push({ code: "invalid_union", input: n.value, inst: r, errors: [], inclusive: !1 }), n); } const Pu = /* @__PURE__ */ v("$ZodXor", (e, n) => { bn.init(e, n), n.inclusive = !1; const r = n.options.length === 1 ? n.options[0]._zod.run : null; e._zod.parse = (o, t) => { if (r) return r(o, t); let i = !1; const a = []; for (const l of n.options) { const c = l._zod.run({ value: o.value, issues: [] }, t); c instanceof Promise ? (a.push(c), i = !0) : a.push(c); } return i ? Promise.all(a).then((l) => To(l, o, e, t)) : To(a, o, e, t); }; }), Au = /* @__PURE__ */ v("$ZodDiscriminatedUnion", (e, n) => { n.inclusive = !1, bn.init(e, n); const r = e._zod.parse; K(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 [l, c] of Object.entries(a)) { t[l] || (t[l] = /* @__PURE__ */ new Set()); for (const u of c) t[l].add(u); } } return t; }); const o = xt(() => { var a; const t = n.options, i = /* @__PURE__ */ new Map(); for (const l of t) { const c = (a = l._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(l)}"`); for (const u of c) { if (i.has(u)) throw new Error(`Duplicate discriminator value "${String(u)}"`); i.set(u, l); } } return i; }); e._zod.parse = (t, i) => { const a = t.value; if (!at(a)) return t.issues.push({ code: "invalid_type", expected: "object", input: a, inst: e }), t; const l = o.value.get(a == null ? void 0 : a[n.discriminator]); return l ? l._zod.run(t, i) : n.unionFallback || i.direction === "backward" ? r(t, i) : (t.issues.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: n.discriminator, options: Array.from(o.value.keys()), input: a, path: [n.discriminator], inst: e }), t); }; }), Zu = /* @__PURE__ */ v("$ZodIntersection", (e, n) => { B.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, u]) => No(r, c, u)) : No(r, i, a); }; }); function sr(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 (He(e) && He(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 = sr(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 = sr(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 No(e, n, r) { const o = /* @__PURE__ */ new Map(); let t; for (const l of n.issues) if (l.code === "unrecognized_keys") { t ?? (t = l); for (const c of l.keys) o.has(c) || o.set(c, {}), o.get(c).l = !0; } else e.issues.push(l); for (const l of r.issues) if (l.code === "unrecognized_keys") for (const c of l.keys) o.has(c) || o.set(c, {}), o.get(c).r = !0; else e.issues.push(l); const i = [...o].filter(([, l]) => l.l && l.r).map(([l]) => l); if (i.length && t && e.issues.push({ ...t, keys: i }), Ge(e)) return e; const a = sr(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 Fr = /* @__PURE__ */ v("$ZodTuple", (e, n) => { B.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 = [], l = Po(r, "optin"), c = Po(r, "optout"); if (!n.rest) { if (i.length < l) return o.issues.push({ code: "too_small", minimum: l, inclusive: !0, input: i, inst: e, origin: "array" }), o; i.length > r.length && o.issues.push({ code: "too_big", maximum: r.length, inclusive: !0, input: i, inst: e, origin: "array" }); } const u = new Array(r.length); for (let d = 0; d < r.length; d++) { const s = r[d]._zod.run({ value: i[d], issues: [] }, t); s instanceof Promise ? a.push(s.then((m) => { u[d] = m; })) : u[d] = s; } if (n.rest) { let d = r.length - 1; const s = i.slice(r.length); for (const m of s) { d++; const f = n.rest._zod.run({ value: m, issues: [] }, t); f instanceof Promise ? a.push(f.then((p) => Ao(p, o, d))) : Ao(f, o, d); } } return a.length ? Promise.all(a).then(() => Zo(u, o, r, i, c)) : Zo(u, o, r, i, c); }; }); function Po(e, n) { for (let r = e.length - 1; r >= 0; r--) if (e[r]._zod[n] !== "optional") return r + 1; return 0; } function Ao(e, n, r) { e.issues.length && n.issues.push(...De(r, e.issues)), n.value[r] = e.value; } function Zo(e, n, r, o, t) { for (let i = 0; i < r.length; i++) { const a = e[i], l = i < o.length; if (a.issues.length) { if (!l && i >= t) { n.value.length = i; break; } n.issues.push(...De(i, a.issues)); } n.value[i] = a.value; } for (let i = n.value.length - 1; i >= o.length && (r[i]._zod.optout === "optional" && n.value[i] === void 0); i--) n.value.length = i; return n; } const Cu = /* @__PURE__ */ v("$ZodRecord", (e, n) => { B.init(e, n), e._zod.parse = (r, o) => { const t = r.value; if (!He(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 l = /* @__PURE__ */ new Set(); for (const u of a) if (typeof u == "string" || typeof u == "number" || typeof u == "symbol") { l.add(typeof u == "number" ? u.toString() : u); const d = n.keyType._zod.run({ value: u, issues: [] }, o); if (d instanceof Promise) throw new Error("Async schemas not supported in object keys currently"); if (d.issues.length) { r.issues.push({ code: "invalid_key", origin: "record", issues: d.issues.map((f) => we(f, o, ve())), input: u, path: [u], inst: e }); continue; } const s = d.value, m = n.valueType._zod.run({ value: t[u], issues: [] }, o); m instanceof Promise ? i.push(m.then((f) => { f.issues.length && r.issues.push(...De(u, f.issues)), r.value[s] = f.value; })) : (m.issues.length && r.issues.push(...De(u, m.issues)), r.value[s] = m.value); } let c; for (const u in t) l.has(u) || (c = c ?? [], c.push(u)); c && c.length > 0 && r.issues.push({ code: "unrecognized_keys", input: t, inst: e, keys: c }); } else { r.value = {}; for (const l of Reflect.ownKeys(t)) { if (l === "__proto__" || !Object.prototype.propertyIsEnumerable.call(t, l)) continue; let c = n.keyType._zod.run({ value: l, issues: [] }, o); if (c instanceof Promise) throw new Error("Async schemas not supported in object keys currently"); if (typeof l == "string" && Er.test(l) && c.issues.length) { const s = n.keyType._zod.run({ value: Number(l), 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[l] = t[l] : r.issues.push({ code: "invalid_key", origin: "record", issues: c.issues.map((s) => we(s, o, ve())), input: l, path: [l], inst: e }); continue; } 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(...De(l, s.issues)), r.value[c.value] = s.value; })) : (d.issues.length && r.issues.push(...De(l, d.issues)), r.value[c.value] = d.value); } } return i.length ? Promise.all(i).then(() => r) : r; }; }), Mu = /* @__PURE__ */ v("$ZodMap", (e, n) => { B.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, l] of t) { const c = n.keyType._zod.run({ value: a, issues: [] }, o), u = n.valueType._zod.run({ value: l, issues: [] }, o); c instanceof Promise || u instanceof Promise ? i.push(Promise.all([c, u]).then(([d, s]) => { Co(d, s, r, a, t, e, o); })) : Co(c, u, r, a, t, e, o); } return i.length ? Promise.all(i).then(() => r) : r; }; }); function Co(e, n, r, o, t, i, a) { e.issues.length && (un.has(typeof o) ? r.issues.push(...De(o, e.issues)) : r.issues.push({ code: "invalid_key", origin: "map", input: t, inst: i, issues: e.issues.map((l) => we(l, a, ve())) })), n.issues.length && (un.has(typeof o) ? r.issues.push(...De(o, n.issues)) : r.issues.push({ origin: "map", code: "invalid_element", input: t, inst: i, key: o, issues: n.issues.map((l) => we(l, a, ve())) })), r.value.set(e.value, n.value); } const Fu = /* @__PURE__ */ v("$ZodSet", (e, n) => { B.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 l = n.valueType._zod.run({ value: a, issues: [] }, o); l instanceof Promise ? i.push(l.then((c) => Mo(c, r))) : Mo(l, r); } return i.length ? Promise.all(i).then(() => r) : r; }; }); function Mo(e, n) { e.issues.length && n.issues.push(...e.issues), n.value.add(e.value); } const Lu = /* @__PURE__ */ v("$ZodEnum", (e, n) => { B.init(e, n); const r = hr(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" ? Me(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; }; }), Ru = /* @__PURE__ */ v("$ZodLiteral", (e, n) => { if (B.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" ? Me(o) : o ? Me(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; }; }), Ju = /* @__PURE__ */ v("$ZodFile", (e, n) => { B.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; }; }), Bu = /* @__PURE__ */ v("$ZodTransform", (e, n) => { B.init(e, n), e._zod.optin = "optional", e._zod.parse = (r, o) => { if (o.direction === "backward") throw new vn(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.fallback = !0, r)); if (t instanceof Promise) throw new Ye(); return r.value = t, r.fallback = !0, r; }; }); function Fo(e, n) { return n === void 0 && (e.issues.length || e.fallback) ? { issues: [], value: void 0 } : e; } const Lr = /* @__PURE__ */ v("$ZodOptional", (e, n) => { B.init(e, n), e._zod.optin = "optional", e._zod.optout = "optional", K(e._zod, "values", () => n.innerType._zod.values ? /* @__PURE__ */ new Set([...n.innerType._zod.values, void 0]) : void 0), K(e._zod, "pattern", () => { const r = n.innerType._zod.pattern; return r ? new RegExp(`^(${pn(r.source)})?$`) : void 0; }), e._zod.parse = (r, o) => { if (n.innerType._zod.optin === "optional") { const t = r.value, i = n.innerType._zod.run(r, o); return i instanceof Promise ? i.then((a) => Fo(a, t)) : Fo(i, t); } return r.value === void 0 ? r : n.innerType._zod.run(r, o); }; }), Vu = /* @__PURE__ */ v("$ZodExactOptional", (e, n) => { Lr.init(e, n), K(e._zod, "values", () => n.innerType._zod.values), K(e._zod, "pattern", () => n.innerType._zod.pattern), e._zod.parse = (r, o) => n.innerType._zod.run(r, o); }), qu = /* @__PURE__ */ v("$ZodNullable", (e, n) => { B.init(e, n), K(e._zod, "optin", () => n.innerType._zod.optin), K(e._zod, "optout", () => n.innerType._zod.optout), K(e._zod, "pattern", () => { const r = n.innerType._zod.pattern; return r ? new RegExp(`^(${pn(r.source)}|null)$`) : void 0; }), K(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); }), Ku = /* @__PURE__ */ v("$ZodDefault", (e, n) => { B.init(e, n), e._zod.optin = "optional", K(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) => Lo(i, n)) : Lo(t, n); }; }); function Lo(e, n) { return e.value === void 0 && (e.value = n.defaultValue), e; } const Wu = /* @__PURE__ */ v("$ZodPrefault", (e, n) => { B.init(e, n), e._zod.optin = "optional", K(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)); }), Gu = /* @__PURE__ */ v("$ZodNonOptional", (e, n) => { B.init(e, n), K(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) => Ro(i, e)) : Ro(t, e); }; }); function Ro(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 Xu = /* @__PURE__ */ v("$ZodSuccess", (e, n) => { B.init(e, n), e._zod.parse = (r, o) => { if (o.direction === "backward") throw new vn("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); }; }), Yu = /* @__PURE__ */ v("$ZodCatch", (e, n) => { B.init(e, n), e._zod.optin = "optional", K(e._zod, "optout", () => n.innerType._zod.optout), K(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) => we(a, o, ve())) }, input: r.value }), r.issues = [], r.fallback = !0), r)) : (r.value = t.value, t.issues.length && (r.value = n.catchValue({ ...r, error: { issues: t.issues.map((i) => we(i, o, ve())) }, input: r.value }), r.issues = [], r.fallback = !0), r); }; }), Hu = /* @__PURE__ */ v("$ZodNaN", (e, n) => { B.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); }), Rr = /* @__PURE__ */ v("$ZodPipe", (e, n) => { B.init(e, n), K(e._zod, "values", () => n.in._zod.values), K(e._zod, "optin", () => n.in._zod.optin), K(e._zod, "optout", () => n.out._zod.optout), K(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) => Qt(a, n.in, o)) : Qt(i, n.in, o); } const t = n.in._zod.run(r, o); return t instanceof Promise ? t.then((i) => Qt(i, n.out, o)) : Qt(t, n.out, o); }; }); function Qt(e, n, r) { return e.issues.length ? (e.aborted = !0, e) : n._zod.run({ value: e.value, issues: e.issues, fallback: e.fallback }, r); } const Jr = /* @__PURE__ */ v("$ZodCodec", (e, n) => { B.init(e, n), K(e._zod, "values", () => n.in._zod.values), K(e._zod, "optin", () => n.in._zod.optin), K(e._zod, "optout", () => n.out._zod.optout), K(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) => en(a, n, o)) : en(i, n, o); } else { const i = n.out._zod.run(r, o); return i instanceof Promise ? i.then((a) => en(a, n, o)) : en(i, n, o); } }; }); function en(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) => tn(e, i, n.out, r)) : tn(e, t, n.out, r); } else { const t = n.reverseTransform(e.value, e); return t instanceof Promise ? t.then((i) => tn(e, i, n.in, r)) : tn(e, t, n.in, r); } } function tn(e, n, r, o) { return e.issues.length ? (e.aborted = !0, e) : r._zod.run({ value: n, issues: e.issues }, o); } const Qu = /* @__PURE__ */ v("$ZodPreprocess", (e, n) => { Rr.init(e, n); }), ec = /* @__PURE__ */ v("$ZodReadonly", (e, n) => { B.init(e, n), K(e._zod, "propValues", () => n.innerType._zod.propValues), K(e._zod, "values", () => n.innerType._zod.values), K(e._zod, "optin", () => { var r, o; return (o = (r = n.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optin; }), K(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(Jo) : Jo(t); }; }); function Jo(e) { return e.value = Object.freeze(e.value), e; } const tc = /* @__PURE__ */ v("$ZodTemplateLiteral", (e, n) => { B.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 || wa.has(typeof o)) r.push(Me(`${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); }), nc = /* @__PURE__ */ v("$ZodFunction", (e, n) => (B.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 ? ur(e._def.input, o) : o, i = Reflect.apply(r, this, t); return e._def.output ? ur(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 cr(e._def.input, o) : o, i = await Reflect.apply(r, this, t); return e._def.output ? await cr(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 Fr({ 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)), rc = /* @__PURE__ */ v("$ZodPromise", (e, n) => { B.init(e, n), e._zod.parse = (r, o) => Promise.resolve(r.value).then((t) => n.innerType._zod.run({ value: t, issues: [] }, o)); }), ic = /* @__PURE__ */ v("$ZodLazy", (e, n) => { B.init(e, n), K(e._zod, "innerType", () => { const r = n; return r._cachedInner || (r._cachedInner = n.getter()), r._cachedInner; }), K(e._zod, "pattern", () => { var r, o; return (o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.pattern; }), K(e._zod, "propValues", () => { var r, o; return (o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.propValues; }), K(e._zod, "optin", () => { var r, o; return ((o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optin) ?? void 0; }), K(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); }), oc = /* @__PURE__ */ v("$ZodCustom", (e, n) => { le.init(e, n), B.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) => Bo(i, r, o, e)); Bo(t, r, o, e); }; }); function Bo(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(lt(t)); } } const S$ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `مدخلات غير مقبولة: يفترض إدخال instanceof ${t.expected}، ولكن تم إدخال ${l}` : `مدخلات غير مقبولة: يفترض إدخال ${i}، ولكن تم إدخال ${l}`; } case "invalid_value": return t.values.length === 1 ? `مدخلات غير مقبولة: يفترض إدخال ${M(t.values[0])}` : `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${y(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 ? "ة" : ""}: ${y(t.keys, "، ")}`; case "invalid_key": return `معرف غير مقبول في ${t.origin}`; case "invalid_union": return "مدخل غير مقبول"; case "invalid_element": return `مدخل غير مقبول في ${t.origin}`; default: return "مدخل غير مقبول"; } }; }; function I$() { return { localeError: S$() }; } const w$ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Yanlış dəyər: gözlənilən instanceof ${t.expected}, daxil olan ${l}` : `Yanlış dəyər: gözlənilən ${i}, daxil olan ${l}`; } case "invalid_value": return t.values.length === 1 ? `Yanlış dəyər: gözlənilən ${M(t.values[0])}` : `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${y(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" : ""}: ${y(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 z$() { return { localeError: w$() }; } function Vo(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 x$ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Няправільны ўвод: чакаўся instanceof ${t.expected}, атрымана ${l}` : `Няправільны ўвод: чакаўся ${i}, атрымана ${l}`; } case "invalid_value": return t.values.length === 1 ? `Няправільны ўвод: чакалася ${M(t.values[0])}` : `Няправільны варыянт: чакаўся адзін з ${y(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { const l = Number(t.maximum), c = Vo(l, 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 l = Number(t.minimum), c = Vo(l, 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 ? "ключы" : "ключ"}: ${y(t.keys, ", ")}`; case "invalid_key": return `Няправільны ключ у ${t.origin}`; case "invalid_union": return "Няправільны ўвод"; case "invalid_element": return `Няправільнае значэнне ў ${t.origin}`; default: return "Няправільны ўвод"; } }; }; function D$() { return { localeError: x$() }; } const j$ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Невалиден вход: очакван instanceof ${t.expected}, получен ${l}` : `Невалиден вход: очакван ${i}, получен ${l}`; } case "invalid_value": return t.values.length === 1 ? `Невалиден вход: очакван ${M(t.values[0])}` : `Невалидна опция: очаквано едно от ${y(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 ? "ове" : ""}: ${y(t.keys, ", ")}`; case "invalid_key": return `Невалиден ключ в ${t.origin}`; case "invalid_union": return "Невалиден вход"; case "invalid_element": return `Невалидна стойност в ${t.origin}`; default: return "Невалиден вход"; } }; }; function O$() { return { localeError: j$() }; } const U$ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Tipus invàlid: s'esperava instanceof ${t.expected}, s'ha rebut ${l}` : `Tipus invàlid: s'esperava ${i}, s'ha rebut ${l}`; } case "invalid_value": return t.values.length === 1 ? `Valor invàlid: s'esperava ${M(t.values[0])}` : `Opció invàlida: s'esperava una de ${y(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" : ""}: ${y(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 E$() { return { localeError: U$() }; } const T$ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Neplatný vstup: očekáváno instanceof ${t.expected}, obdrženo ${l}` : `Neplatný vstup: očekáváno ${i}, obdrženo ${l}`; } case "invalid_value": return t.values.length === 1 ? `Neplatný vstup: očekáváno ${M(t.values[0])}` : `Neplatná možnost: očekávána jedna z hodnot ${y(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: ${y(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 N$() { return { localeError: T$() }; } const P$ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ugyldigt input: forventede instanceof ${t.expected}, fik ${l}` : `Ugyldigt input: forventede ${i}, fik ${l}`; } case "invalid_value": return t.values.length === 1 ? `Ugyldig værdi: forventede ${M(t.values[0])}` : `Ugyldigt valg: forventede en af følgende ${y(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `For stor: forventede ${l ?? "value"} ${a.verb} ${i} ${t.maximum.toString()} ${a.unit ?? "elementer"}` : `For stor: forventede ${l ?? "value"} havde ${i} ${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `For lille: forventede ${l} ${a.verb} ${i} ${t.minimum.toString()} ${a.unit}` : `For lille: forventede ${l} 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"}: ${y(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 A$() { return { localeError: P$() }; } const Z$ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ungültige Eingabe: erwartet instanceof ${t.expected}, erhalten ${l}` : `Ungültige Eingabe: erwartet ${i}, erhalten ${l}`; } case "invalid_value": return t.values.length === 1 ? `Ungültige Eingabe: erwartet ${M(t.values[0])}` : `Ungültige Option: erwartet eine von ${y(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"}: ${y(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 C$() { return { localeError: Z$() }; } const M$ = () => { const e = { string: { unit: "χαρακτήρες", verb: "να έχει" }, file: { unit: "bytes", verb: "να έχει" }, array: { unit: "στοιχεία", verb: "να έχει" }, set: { unit: "στοιχεία", verb: "να έχει" }, map: { unit: "καταχωρήσεις", verb: "να έχει" } }; function n(t) { return e[t] ?? null; } const r = { regex: "είσοδος", email: "διεύθυνση 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", mac: "διεύθυνση MAC", 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 = F(t.input), l = o[a] ?? a; return typeof t.expected == "string" && /^[A-Z]/.test(t.expected) ? `Μη έγκυρη είσοδος: αναμενόταν instanceof ${t.expected}, λήφθηκε ${l}` : `Μη έγκυρη είσοδος: αναμενόταν ${i}, λήφθηκε ${l}`; } case "invalid_value": return t.values.length === 1 ? `Μη έγκυρη είσοδος: αναμενόταν ${M(t.values[0])}` : `Μη έγκυρη επιλογή: αναμενόταν ένα από ${y(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 ? "α" : "ο"} κλειδ${t.keys.length > 1 ? "ιά" : "ί"}: ${y(t.keys, ", ")}`; case "invalid_key": return `Μη έγκυρο κλειδί στο ${t.origin}`; case "invalid_union": return "Μη έγκυρη είσοδος"; case "invalid_element": return `Μη έγκυρη τιμή στο ${t.origin}`; default: return "Μη έγκυρη είσοδος"; } }; }; function F$() { return { localeError: M$() }; } const L$ = () => { 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 = F(t.input), l = o[a] ?? a; return `Invalid input: expected ${i}, received ${l}`; } case "invalid_value": return t.values.length === 1 ? `Invalid input: expected ${M(t.values[0])}` : `Invalid option: expected one of ${y(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" : ""}: ${y(t.keys, ", ")}`; case "invalid_key": return `Invalid key in ${t.origin}`; case "invalid_union": return t.options && Array.isArray(t.options) && t.options.length > 0 ? `Invalid discriminator value. Expected ${t.options.map((a) => `'${a}'`).join(" | ")}` : "Invalid input"; case "invalid_element": return `Invalid value in ${t.origin}`; default: return "Invalid input"; } }; }; function ac() { return { localeError: L$() }; } const R$ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Nevalida enigo: atendiĝis instanceof ${t.expected}, riceviĝis ${l}` : `Nevalida enigo: atendiĝis ${i}, riceviĝis ${l}`; } case "invalid_value": return t.values.length === 1 ? `Nevalida enigo: atendiĝis ${M(t.values[0])}` : `Nevalida opcio: atendiĝis unu el ${y(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" : ""}: ${y(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 J$() { return { localeError: R$() }; } const B$ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Entrada inválida: se esperaba instanceof ${t.expected}, recibido ${l}` : `Entrada inválida: se esperaba ${i}, recibido ${l}`; } case "invalid_value": return t.values.length === 1 ? `Entrada inválida: se esperaba ${M(t.values[0])}` : `Opción inválida: se esperaba una de ${y(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `Demasiado grande: se esperaba que ${l ?? "valor"} tuviera ${i}${t.maximum.toString()} ${a.unit ?? "elementos"}` : `Demasiado grande: se esperaba que ${l ?? "valor"} fuera ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `Demasiado pequeño: se esperaba que ${l} tuviera ${i}${t.minimum.toString()} ${a.unit}` : `Demasiado pequeño: se esperaba que ${l} 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" : ""}: ${y(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 V$() { return { localeError: B$() }; } const q$ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ورودی نامعتبر: می‌بایست instanceof ${t.expected} می‌بود، ${l} دریافت شد` : `ورودی نامعتبر: می‌بایست ${i} می‌بود، ${l} دریافت شد`; } case "invalid_value": return t.values.length === 1 ? `ورودی نامعتبر: می‌بایست ${M(t.values[0])} می‌بود` : `گزینه نامعتبر: می‌بایست یکی از ${y(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 ? "های" : ""} ناشناس: ${y(t.keys, ", ")}`; case "invalid_key": return `کلید ناشناس در ${t.origin}`; case "invalid_union": return "ورودی نامعتبر"; case "invalid_element": return `مقدار نامعتبر در ${t.origin}`; default: return "ورودی نامعتبر"; } }; }; function K$() { return { localeError: q$() }; } const W$ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${l}` : `Virheellinen tyyppi: odotettiin ${i}, oli ${l}`; } case "invalid_value": return t.values.length === 1 ? `Virheellinen syöte: täytyy olla ${M(t.values[0])}` : `Virheellinen valinta: täytyy olla yksi seuraavista: ${y(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"}: ${y(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 G$() { return { localeError: W$() }; } const X$ = () => { 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 = { string: "chaîne", number: "nombre", int: "entier", boolean: "booléen", bigint: "grand entier", symbol: "symbole", undefined: "indéfini", null: "null", never: "jamais", void: "vide", date: "date", array: "tableau", object: "objet", tuple: "tuple", record: "enregistrement", map: "carte", set: "ensemble", file: "fichier", nonoptional: "non-optionnel", nan: "NaN", function: "fonction" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Entrée invalide : instanceof ${t.expected} attendu, ${l} reçu` : `Entrée invalide : ${i} attendu, ${l} reçu`; } case "invalid_value": return t.values.length === 1 ? `Entrée invalide : ${M(t.values[0])} attendu` : `Option invalide : une valeur parmi ${y(t.values, "|")} attendue`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Trop grand : ${o[t.origin] ?? "valeur"} doit ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "élément(s)"}` : `Trop grand : ${o[t.origin] ?? "valeur"} doit être ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Trop petit : ${o[t.origin] ?? "valeur"} doit ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Trop petit : ${o[t.origin] ?? "valeur"} 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" : ""} : ${y(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 Y$() { return { localeError: X$() }; } const H$ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Entrée invalide : attendu instanceof ${t.expected}, reçu ${l}` : `Entrée invalide : attendu ${i}, reçu ${l}`; } case "invalid_value": return t.values.length === 1 ? `Entrée invalide : attendu ${M(t.values[0])}` : `Option invalide : attendu l'une des valeurs suivantes ${y(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" : ""} : ${y(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 Q$() { return { localeError: H$() }; } const eb = () => { 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 = (u) => u ? e[u] : void 0, o = (u) => { const d = r(u); return d ? d.label : u ?? e.unknown.label; }, t = (u) => `ה${o(u)}`, i = (u) => { const d = r(u); return ((d == null ? void 0 : d.gender) ?? "m") === "f" ? "צריכה להיות" : "צריך להיות"; }, a = (u) => u ? n[u] ?? null : null, l = { 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 (u) => { var d; switch (u.code) { case "invalid_type": { const s = u.expected, m = c[s ?? ""] ?? o(s), f = F(u.input), p = c[f] ?? ((d = e[f]) == null ? void 0 : d.label) ?? f; return /^[A-Z]/.test(u.expected) ? `קלט לא תקין: צריך להיות instanceof ${u.expected}, התקבל ${p}` : `קלט לא תקין: צריך להיות ${m}, התקבל ${p}`; } case "invalid_value": { if (u.values.length === 1) return `ערך לא תקין: הערך חייב להיות ${M(u.values[0])}`; const s = u.values.map((p) => M(p)); if (u.values.length === 2) return `ערך לא תקין: האפשרויות המתאימות הן ${s[0]} או ${s[1]}`; const m = s[s.length - 1]; return `ערך לא תקין: האפשרויות המתאימות הן ${s.slice(0, -1).join(", ")} או ${m}`; } case "too_big": { const s = a(u.origin), m = t(u.origin ?? "value"); if (u.origin === "string") return `${(s == null ? void 0 : s.longLabel) ?? "ארוך"} מדי: ${m} צריכה להכיל ${u.maximum.toString()} ${(s == null ? void 0 : s.unit) ?? ""} ${u.inclusive ? "או פחות" : "לכל היותר"}`.trim(); if (u.origin === "number") { const h = u.inclusive ? `קטן או שווה ל-${u.maximum}` : `קטן מ-${u.maximum}`; return `גדול מדי: ${m} צריך להיות ${h}`; } if (u.origin === "array" || u.origin === "set") { const h = u.origin === "set" ? "צריכה" : "צריך", E = u.inclusive ? `${u.maximum} ${(s == null ? void 0 : s.unit) ?? ""} או פחות` : `פחות מ-${u.maximum} ${(s == null ? void 0 : s.unit) ?? ""}`; return `גדול מדי: ${m} ${h} להכיל ${E}`.trim(); } const f = u.inclusive ? "<=" : "<", p = i(u.origin ?? "value"); return s != null && s.unit ? `${s.longLabel} מדי: ${m} ${p} ${f}${u.maximum.toString()} ${s.unit}` : `${(s == null ? void 0 : s.longLabel) ?? "גדול"} מדי: ${m} ${p} ${f}${u.maximum.toString()}`; } case "too_small": { const s = a(u.origin), m = t(u.origin ?? "value"); if (u.origin === "string") return `${(s == null ? void 0 : s.shortLabel) ?? "קצר"} מדי: ${m} צריכה להכיל ${u.minimum.toString()} ${(s == null ? void 0 : s.unit) ?? ""} ${u.inclusive ? "או יותר" : "לפחות"}`.trim(); if (u.origin === "number") { const h = u.inclusive ? `גדול או שווה ל-${u.minimum}` : `גדול מ-${u.minimum}`; return `קטן מדי: ${m} צריך להיות ${h}`; } if (u.origin === "array" || u.origin === "set") { const h = u.origin === "set" ? "צריכה" : "צריך"; if (u.minimum === 1 && u.inclusive) { const S = (u.origin === "set", "לפחות פריט אחד"); return `קטן מדי: ${m} ${h} להכיל ${S}`; } const E = u.inclusive ? `${u.minimum} ${(s == null ? void 0 : s.unit) ?? ""} או יותר` : `יותר מ-${u.minimum} ${(s == null ? void 0 : s.unit) ?? ""}`; return `קטן מדי: ${m} ${h} להכיל ${E}`.trim(); } const f = u.inclusive ? ">=" : ">", p = i(u.origin ?? "value"); return s != null && s.unit ? `${s.shortLabel} מדי: ${m} ${p} ${f}${u.minimum.toString()} ${s.unit}` : `${(s == null ? void 0 : s.shortLabel) ?? "קטן"} מדי: ${m} ${p} ${f}${u.minimum.toString()}`; } case "invalid_format": { const s = u; 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 m = l[s.format], f = (m == null ? void 0 : m.label) ?? s.format, h = ((m == null ? void 0 : m.gender) ?? "m") === "f" ? "תקינה" : "תקין"; return `${f} לא ${h}`; } case "not_multiple_of": return `מספר לא תקין: חייב להיות מכפלה של ${u.divisor}`; case "unrecognized_keys": return `מפתח${u.keys.length > 1 ? "ות" : ""} לא מזוה${u.keys.length > 1 ? "ים" : "ה"}: ${y(u.keys, ", ")}`; case "invalid_key": return "שדה לא תקין באובייקט"; case "invalid_union": return "קלט לא תקין"; case "invalid_element": return `ערך לא תקין ב${t(u.origin ?? "array")}`; default: return "קלט לא תקין"; } }; }; function tb() { return { localeError: eb() }; } const nb = () => { const e = { string: { unit: "znakova", verb: "imati" }, file: { unit: "bajtova", verb: "imati" }, array: { unit: "stavki", verb: "imati" }, set: { unit: "stavki", verb: "imati" } }; function n(t) { return e[t] ?? null; } const r = { regex: "unos", email: "email 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: "ISO datum i vrijeme", date: "ISO datum", time: "ISO vrijeme", duration: "ISO trajanje", ipv4: "IPv4 adresa", ipv6: "IPv6 adresa", cidrv4: "IPv4 raspon", cidrv6: "IPv6 raspon", base64: "base64 kodirani tekst", base64url: "base64url kodirani tekst", json_string: "JSON tekst", e164: "E.164 broj", jwt: "JWT", template_literal: "unos" }, o = { nan: "NaN", string: "tekst", number: "broj", boolean: "boolean", array: "niz", object: "objekt", set: "skup", file: "datoteka", date: "datum", bigint: "bigint", symbol: "simbol", undefined: "undefined", null: "null", function: "funkcija", map: "mapa" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Neispravan unos: očekuje se instanceof ${t.expected}, a primljeno je ${l}` : `Neispravan unos: očekuje se ${i}, a primljeno je ${l}`; } case "invalid_value": return t.values.length === 1 ? `Neispravna vrijednost: očekivano ${M(t.values[0])}` : `Neispravna opcija: očekivano jedno od ${y(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `Preveliko: očekivano da ${l ?? "vrijednost"} ima ${i}${t.maximum.toString()} ${a.unit ?? "elemenata"}` : `Preveliko: očekivano da ${l ?? "vrijednost"} bude ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `Premalo: očekivano da ${l} ima ${i}${t.minimum.toString()} ${a.unit}` : `Premalo: očekivano da ${l} bude ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Neispravan tekst: mora započinjati s "${i.prefix}"` : i.format === "ends_with" ? `Neispravan tekst: mora završavati s "${i.suffix}"` : i.format === "includes" ? `Neispravan tekst: mora sadržavati "${i.includes}"` : i.format === "regex" ? `Neispravan tekst: mora odgovarati uzorku ${i.pattern}` : `Neispravna ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Neispravan broj: mora biti višekratnik od ${t.divisor}`; case "unrecognized_keys": return `Neprepoznat${t.keys.length > 1 ? "i ključevi" : " ključ"}: ${y(t.keys, ", ")}`; case "invalid_key": return `Neispravan ključ u ${o[t.origin] ?? t.origin}`; case "invalid_union": return "Neispravan unos"; case "invalid_element": return `Neispravna vrijednost u ${o[t.origin] ?? t.origin}`; default: return "Neispravan unos"; } }; }; function rb() { return { localeError: nb() }; } const ib = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Érvénytelen bemenet: a várt érték instanceof ${t.expected}, a kapott érték ${l}` : `Érvénytelen bemenet: a várt érték ${i}, a kapott érték ${l}`; } case "invalid_value": return t.values.length === 1 ? `Érvénytelen bemenet: a várt érték ${M(t.values[0])}` : `Érvénytelen opció: valamelyik érték várt ${y(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" : ""}: ${y(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 ob() { return { localeError: ib() }; } function qo(e, n, r) { return Math.abs(e) === 1 ? n : r; } function ot(e) { if (!e) return ""; const n = ["ա", "ե", "ը", "ի", "ո", "ու", "օ"], r = e[e.length - 1]; return e + (n.includes(r) ? "ն" : "ը"); } const ab = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Սխալ մուտքագրում․ սպասվում էր instanceof ${t.expected}, ստացվել է ${l}` : `Սխալ մուտքագրում․ սպասվում էր ${i}, ստացվել է ${l}`; } case "invalid_value": return t.values.length === 1 ? `Սխալ մուտքագրում․ սպասվում էր ${M(t.values[1])}` : `Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${y(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { const l = Number(t.maximum), c = qo(l, a.unit.one, a.unit.many); return `Չափազանց մեծ արժեք․ սպասվում է, որ ${ot(t.origin ?? "արժեք")} կունենա ${i}${t.maximum.toString()} ${c}`; } return `Չափազանց մեծ արժեք․ սպասվում է, որ ${ot(t.origin ?? "արժեք")} լինի ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); if (a) { const l = Number(t.minimum), c = qo(l, a.unit.one, a.unit.many); return `Չափազանց փոքր արժեք․ սպասվում է, որ ${ot(t.origin)} կունենա ${i}${t.minimum.toString()} ${c}`; } return `Չափազանց փոքր արժեք․ սպասվում է, որ ${ot(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 ? "ներ" : ""}. ${y(t.keys, ", ")}`; case "invalid_key": return `Սխալ բանալի ${ot(t.origin)}-ում`; case "invalid_union": return "Սխալ մուտքագրում"; case "invalid_element": return `Սխալ արժեք ${ot(t.origin)}-ում`; default: return "Սխալ մուտքագրում"; } }; }; function lb() { return { localeError: ab() }; } const ub = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${l}` : `Input tidak valid: diharapkan ${i}, diterima ${l}`; } case "invalid_value": return t.values.length === 1 ? `Input tidak valid: diharapkan ${M(t.values[0])}` : `Pilihan tidak valid: diharapkan salah satu dari ${y(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" : ""}: ${y(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 cb() { return { localeError: ub() }; } const sb = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Rangt gildi: Þú slóst inn ${l} þar sem á að vera instanceof ${t.expected}` : `Rangt gildi: Þú slóst inn ${l} þar sem á að vera ${i}`; } case "invalid_value": return t.values.length === 1 ? `Rangt gildi: gert ráð fyrir ${M(t.values[0])}` : `Ógilt val: má vera eitt af eftirfarandi ${y(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"}: ${y(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 db() { return { localeError: sb() }; } const mb = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Input non valido: atteso instanceof ${t.expected}, ricevuto ${l}` : `Input non valido: atteso ${i}, ricevuto ${l}`; } case "invalid_value": return t.values.length === 1 ? `Input non valido: atteso ${M(t.values[0])}` : `Opzione non valida: atteso uno tra ${y(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}` : `Input non valido: ${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"}: ${y(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 fb() { return { localeError: mb() }; } const vb = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `無効な入力: instanceof ${t.expected}が期待されましたが、${l}が入力されました` : `無効な入力: ${i}が期待されましたが、${l}が入力されました`; } case "invalid_value": return t.values.length === 1 ? `無効な入力: ${M(t.values[0])}が期待されました` : `無効な選択: ${y(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 ? "群" : ""}: ${y(t.keys, "、")}`; case "invalid_key": return `${t.origin}内の無効なキー`; case "invalid_union": return "無効な入力"; case "invalid_element": return `${t.origin}内の無効な値`; default: return "無効な入力"; } }; }; function pb() { return { localeError: vb() }; } const gb = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `არასწორი შეყვანა: მოსალოდნელი instanceof ${t.expected}, მიღებული ${l}` : `არასწორი შეყვანა: მოსალოდნელი ${i}, მიღებული ${l}`; } case "invalid_value": return t.values.length === 1 ? `არასწორი შეყვანა: მოსალოდნელი ${M(t.values[0])}` : `არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${y(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 ? "ები" : "ი"}: ${y(t.keys, ", ")}`; case "invalid_key": return `არასწორი გასაღები ${t.origin}-ში`; case "invalid_union": return "არასწორი შეყვანა"; case "invalid_element": return `არასწორი მნიშვნელობა ${t.origin}-ში`; default: return "არასწორი შეყვანა"; } }; }; function hb() { return { localeError: gb() }; } const $b = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${t.expected} ប៉ុន្តែទទួលបាន ${l}` : `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${i} ប៉ុន្តែទទួលបាន ${l}`; } case "invalid_value": return t.values.length === 1 ? `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${M(t.values[0])}` : `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${y(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 `រកឃើញសោមិនស្គាល់៖ ${y(t.keys, ", ")}`; case "invalid_key": return `សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`; case "invalid_union": return "ទិន្នន័យមិនត្រឹមត្រូវ"; case "invalid_element": return `ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`; default: return "ទិន្នន័យមិនត្រឹមត្រូវ"; } }; }; function lc() { return { localeError: $b() }; } function bb() { return lc(); } const _b = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `잘못된 입력: 예상 타입은 instanceof ${t.expected}, 받은 타입은 ${l}입니다` : `잘못된 입력: 예상 타입은 ${i}, 받은 타입은 ${l}입니다`; } case "invalid_value": return t.values.length === 1 ? `잘못된 입력: 값은 ${M(t.values[0])} 이어야 합니다` : `잘못된 옵션: ${y(t.values, "또는 ")} 중 하나여야 합니다`; case "too_big": { const i = t.inclusive ? "이하" : "미만", a = i === "미만" ? "이어야 합니다" : "여야 합니다", l = n(t.origin), c = (l == null ? void 0 : l.unit) ?? "요소"; return l ? `${t.origin ?? "값"}이 너무 큽니다: ${t.maximum.toString()}${c} ${i}${a}` : `${t.origin ?? "값"}이 너무 큽니다: ${t.maximum.toString()} ${i}${a}`; } case "too_small": { const i = t.inclusive ? "이상" : "초과", a = i === "이상" ? "이어야 합니다" : "여야 합니다", l = n(t.origin), c = (l == null ? void 0 : l.unit) ?? "요소"; return l ? `${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 `인식할 수 없는 키: ${y(t.keys, ", ")}`; case "invalid_key": return `잘못된 키: ${t.origin}`; case "invalid_union": return "잘못된 입력"; case "invalid_element": return `잘못된 값: ${t.origin}`; default: return "잘못된 입력"; } }; }; function yb() { return { localeError: _b() }; } const $t = (e) => e.charAt(0).toUpperCase() + e.slice(1); function Ko(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 kb = () => { 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, l) { const c = e[t] ?? null; return c === null ? c : { unit: c.unit[i], verb: c.verb[l][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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Gautas tipas ${l}, o tikėtasi - instanceof ${t.expected}` : `Gautas tipas ${l}, o tikėtasi - ${i}`; } case "invalid_value": return t.values.length === 1 ? `Privalo būti ${M(t.values[0])}` : `Privalo būti vienas iš ${y(t.values, "|")} pasirinkimų`; case "too_big": { const i = o[t.origin] ?? t.origin, a = n(t.origin, Ko(Number(t.maximum)), t.inclusive ?? !1, "smaller"); if (a != null && a.verb) return `${$t(i ?? t.origin ?? "reikšmė")} ${a.verb} ${t.maximum.toString()} ${a.unit ?? "elementų"}`; const l = t.inclusive ? "ne didesnis kaip" : "mažesnis kaip"; return `${$t(i ?? t.origin ?? "reikšmė")} turi būti ${l} ${t.maximum.toString()} ${a == null ? void 0 : a.unit}`; } case "too_small": { const i = o[t.origin] ?? t.origin, a = n(t.origin, Ko(Number(t.minimum)), t.inclusive ?? !1, "bigger"); if (a != null && a.verb) return `${$t(i ?? t.origin ?? "reikšmė")} ${a.verb} ${t.minimum.toString()} ${a.unit ?? "elementų"}`; const l = t.inclusive ? "ne mažesnis kaip" : "didesnis kaip"; return `${$t(i ?? t.origin ?? "reikšmė")} turi būti ${l} ${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"}: ${y(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 `${$t(i ?? t.origin ?? "reikšmė")} turi klaidingą įvestį`; } default: return "Klaidinga įvestis"; } }; }; function Sb() { return { localeError: kb() }; } const Ib = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Грешен внес: се очекува instanceof ${t.expected}, примено ${l}` : `Грешен внес: се очекува ${i}, примено ${l}`; } case "invalid_value": return t.values.length === 1 ? `Invalid input: expected ${M(t.values[0])}` : `Грешана опција: се очекува една ${y(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 ? "Непрепознаени клучеви" : "Непрепознаен клуч"}: ${y(t.keys, ", ")}`; case "invalid_key": return `Грешен клуч во ${t.origin}`; case "invalid_union": return "Грешен внес"; case "invalid_element": return `Грешна вредност во ${t.origin}`; default: return "Грешен внес"; } }; }; function wb() { return { localeError: Ib() }; } const zb = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Input tidak sah: dijangka instanceof ${t.expected}, diterima ${l}` : `Input tidak sah: dijangka ${i}, diterima ${l}`; } case "invalid_value": return t.values.length === 1 ? `Input tidak sah: dijangka ${M(t.values[0])}` : `Pilihan tidak sah: dijangka salah satu daripada ${y(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: ${y(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 xb() { return { localeError: zb() }; } const Db = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${l}` : `Ongeldige invoer: verwacht ${i}, ontving ${l}`; } case "invalid_value": return t.values.length === 1 ? `Ongeldige invoer: verwacht ${M(t.values[0])}` : `Ongeldige optie: verwacht één van ${y(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), l = t.origin === "date" ? "laat" : t.origin === "string" ? "lang" : "groot"; return a ? `Te ${l}: verwacht dat ${t.origin ?? "waarde"} ${i}${t.maximum.toString()} ${a.unit ?? "elementen"} ${a.verb}` : `Te ${l}: verwacht dat ${t.origin ?? "waarde"} ${i}${t.maximum.toString()} is`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin), l = t.origin === "date" ? "vroeg" : t.origin === "string" ? "kort" : "klein"; return a ? `Te ${l}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ${a.verb}` : `Te ${l}: 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" : ""}: ${y(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 jb() { return { localeError: Db() }; } const Ob = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ugyldig input: forventet instanceof ${t.expected}, fikk ${l}` : `Ugyldig input: forventet ${i}, fikk ${l}`; } case "invalid_value": return t.values.length === 1 ? `Ugyldig verdi: forventet ${M(t.values[0])}` : `Ugyldig valg: forventet en av ${y(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"}: ${y(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 Ub() { return { localeError: Ob() }; } const Eb = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Fâsit giren: umulan instanceof ${t.expected}, alınan ${l}` : `Fâsit giren: umulan ${i}, alınan ${l}`; } case "invalid_value": return t.values.length === 1 ? `Fâsit giren: umulan ${M(t.values[0])}` : `Fâsit tercih: mûteberler ${y(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" : ""}: ${y(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 Tb() { return { localeError: Eb() }; } const Nb = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ناسم ورودي: باید instanceof ${t.expected} وای, مګر ${l} ترلاسه شو` : `ناسم ورودي: باید ${i} وای, مګر ${l} ترلاسه شو`; } case "invalid_value": return t.values.length === 1 ? `ناسم ورودي: باید ${M(t.values[0])} وای` : `ناسم انتخاب: باید یو له ${y(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 ? "کلیډونه" : "کلیډ"}: ${y(t.keys, ", ")}`; case "invalid_key": return `ناسم کلیډ په ${t.origin} کې`; case "invalid_union": return "ناسمه ورودي"; case "invalid_element": return `ناسم عنصر په ${t.origin} کې`; default: return "ناسمه ورودي"; } }; }; function Pb() { return { localeError: Nb() }; } const Ab = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Nieprawidłowe dane wejściowe: oczekiwano instanceof ${t.expected}, otrzymano ${l}` : `Nieprawidłowe dane wejściowe: oczekiwano ${i}, otrzymano ${l}`; } case "invalid_value": return t.values.length === 1 ? `Nieprawidłowe dane wejściowe: oczekiwano ${M(t.values[0])}` : `Nieprawidłowa opcja: oczekiwano jednej z wartości ${y(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" : ""}: ${y(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 Zb() { return { localeError: Ab() }; } const Cb = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Tipo inválido: esperado instanceof ${t.expected}, recebido ${l}` : `Tipo inválido: esperado ${i}, recebido ${l}`; } case "invalid_value": return t.values.length === 1 ? `Entrada inválida: esperado ${M(t.values[0])}` : `Opção inválida: esperada uma das ${y(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" : ""}: ${y(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 Mb() { return { localeError: Cb() }; } const Fb = () => { const e = { string: { unit: "caractere", verb: "să aibă" }, file: { unit: "octeți", verb: "să aibă" }, array: { unit: "elemente", verb: "să aibă" }, set: { unit: "elemente", verb: "să aibă" }, map: { unit: "intrări", verb: "să aibă" } }; function n(t) { return e[t] ?? null; } const r = { regex: "intrare", email: "adresă de 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: "dată și oră ISO", date: "dată ISO", time: "oră ISO", duration: "durată ISO", ipv4: "adresă IPv4", ipv6: "adresă IPv6", mac: "adresă MAC", cidrv4: "interval IPv4", cidrv6: "interval IPv6", base64: "șir codat base64", base64url: "șir codat base64url", json_string: "șir JSON", e164: "număr E.164", jwt: "JWT", template_literal: "intrare" }, o = { nan: "NaN", string: "șir", number: "număr", boolean: "boolean", function: "funcție", array: "matrice", object: "obiect", undefined: "nedefinit", symbol: "simbol", bigint: "număr mare", void: "void", never: "never", map: "hartă", set: "set" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = F(t.input), l = o[a] ?? a; return `Intrare invalidă: așteptat ${i}, primit ${l}`; } case "invalid_value": return t.values.length === 1 ? `Intrare invalidă: așteptat ${M(t.values[0])}` : `Opțiune invalidă: așteptat una dintre ${y(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Prea mare: așteptat ca ${t.origin ?? "valoarea"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "elemente"}` : `Prea mare: așteptat ca ${t.origin ?? "valoarea"} să fie ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Prea mic: așteptat ca ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Prea mic: așteptat ca ${t.origin} să fie ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Șir invalid: trebuie să înceapă cu "${i.prefix}"` : i.format === "ends_with" ? `Șir invalid: trebuie să se termine cu "${i.suffix}"` : i.format === "includes" ? `Șir invalid: trebuie să includă "${i.includes}"` : i.format === "regex" ? `Șir invalid: trebuie să se potrivească cu modelul ${i.pattern}` : `Format invalid: ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Număr invalid: trebuie să fie multiplu de ${t.divisor}`; case "unrecognized_keys": return `Chei nerecunoscute: ${y(t.keys, ", ")}`; case "invalid_key": return `Cheie invalidă în ${t.origin}`; case "invalid_union": return "Intrare invalidă"; case "invalid_element": return `Valoare invalidă în ${t.origin}`; default: return "Intrare invalidă"; } }; }; function Lb() { return { localeError: Fb() }; } function Wo(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 Rb = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Неверный ввод: ожидалось instanceof ${t.expected}, получено ${l}` : `Неверный ввод: ожидалось ${i}, получено ${l}`; } case "invalid_value": return t.values.length === 1 ? `Неверный ввод: ожидалось ${M(t.values[0])}` : `Неверный вариант: ожидалось одно из ${y(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { const l = Number(t.maximum), c = Wo(l, 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 l = Number(t.minimum), c = Wo(l, 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 ? "и" : ""}: ${y(t.keys, ", ")}`; case "invalid_key": return `Неверный ключ в ${t.origin}`; case "invalid_union": return "Неверные входные данные"; case "invalid_element": return `Неверное значение в ${t.origin}`; default: return "Неверные входные данные"; } }; }; function Jb() { return { localeError: Rb() }; } const Bb = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Neveljaven vnos: pričakovano instanceof ${t.expected}, prejeto ${l}` : `Neveljaven vnos: pričakovano ${i}, prejeto ${l}`; } case "invalid_value": return t.values.length === 1 ? `Neveljaven vnos: pričakovano ${M(t.values[0])}` : `Neveljavna možnost: pričakovano eno izmed ${y(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č"}: ${y(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 Vb() { return { localeError: Bb() }; } const qb = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ogiltig inmatning: förväntat instanceof ${t.expected}, fick ${l}` : `Ogiltig inmatning: förväntat ${i}, fick ${l}`; } case "invalid_value": return t.values.length === 1 ? `Ogiltig inmatning: förväntat ${M(t.values[0])}` : `Ogiltigt val: förväntade en av ${y(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"}: ${y(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 Kb() { return { localeError: qb() }; } const Wb = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${t.expected}, பெறப்பட்டது ${l}` : `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${i}, பெறப்பட்டது ${l}`; } case "invalid_value": return t.values.length === 1 ? `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${M(t.values[0])}` : `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${y(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 ? "கள்" : ""}: ${y(t.keys, ", ")}`; case "invalid_key": return `${t.origin} இல் தவறான விசை`; case "invalid_union": return "தவறான உள்ளீடு"; case "invalid_element": return `${t.origin} இல் தவறான மதிப்பு`; default: return "தவறான உள்ளீடு"; } }; }; function Gb() { return { localeError: Wb() }; } const Xb = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${t.expected} แต่ได้รับ ${l}` : `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${i} แต่ได้รับ ${l}`; } case "invalid_value": return t.values.length === 1 ? `ค่าไม่ถูกต้อง: ควรเป็น ${M(t.values[0])}` : `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${y(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 `พบคีย์ที่ไม่รู้จัก: ${y(t.keys, ", ")}`; case "invalid_key": return `คีย์ไม่ถูกต้องใน ${t.origin}`; case "invalid_union": return "ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้"; case "invalid_element": return `ข้อมูลไม่ถูกต้องใน ${t.origin}`; default: return "ข้อมูลไม่ถูกต้อง"; } }; }; function Yb() { return { localeError: Xb() }; } const Hb = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Geçersiz değer: beklenen instanceof ${t.expected}, alınan ${l}` : `Geçersiz değer: beklenen ${i}, alınan ${l}`; } case "invalid_value": return t.values.length === 1 ? `Geçersiz değer: beklenen ${M(t.values[0])}` : `Geçersiz seçenek: aşağıdakilerden biri olmalı: ${y(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" : ""}: ${y(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 Qb() { return { localeError: Hb() }; } const e_ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Неправильні вхідні дані: очікується instanceof ${t.expected}, отримано ${l}` : `Неправильні вхідні дані: очікується ${i}, отримано ${l}`; } case "invalid_value": return t.values.length === 1 ? `Неправильні вхідні дані: очікується ${M(t.values[0])}` : `Неправильна опція: очікується одне з ${y(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 ? "і" : ""}: ${y(t.keys, ", ")}`; case "invalid_key": return `Неправильний ключ у ${t.origin}`; case "invalid_union": return "Неправильні вхідні дані"; case "invalid_element": return `Неправильне значення у ${t.origin}`; default: return "Неправильні вхідні дані"; } }; }; function uc() { return { localeError: e_() }; } function t_() { return uc(); } const n_ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `غلط ان پٹ: instanceof ${t.expected} متوقع تھا، ${l} موصول ہوا` : `غلط ان پٹ: ${i} متوقع تھا، ${l} موصول ہوا`; } case "invalid_value": return t.values.length === 1 ? `غلط ان پٹ: ${M(t.values[0])} متوقع تھا` : `غلط آپشن: ${y(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 ? "ز" : ""}: ${y(t.keys, "، ")}`; case "invalid_key": return `${t.origin} میں غلط کی`; case "invalid_union": return "غلط ان پٹ"; case "invalid_element": return `${t.origin} میں غلط ویلیو`; default: return "غلط ان پٹ"; } }; }; function r_() { return { localeError: n_() }; } const i_ = () => { 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" }, map: { unit: "yozuv", 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Noto‘g‘ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${l}` : `Noto‘g‘ri kirish: kutilgan ${i}, qabul qilingan ${l}`; } case "invalid_value": return t.values.length === 1 ? `Noto‘g‘ri kirish: kutilgan ${M(t.values[0])}` : `Noto‘g‘ri variant: quyidagilardan biri kutilgan ${y(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" : ""}: ${y(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 o_() { return { localeError: i_() }; } const a_ = () => { 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 = F(t.input), l = 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 ${l}` : `Đầu vào không hợp lệ: mong đợi ${i}, nhận được ${l}`; } case "invalid_value": return t.values.length === 1 ? `Đầu vào không hợp lệ: mong đợi ${M(t.values[0])}` : `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${y(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: ${y(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 l_() { return { localeError: a_() }; } const u_ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `无效输入:期望 instanceof ${t.expected},实际接收 ${l}` : `无效输入:期望 ${i},实际接收 ${l}`; } case "invalid_value": return t.values.length === 1 ? `无效输入:期望 ${M(t.values[0])}` : `无效选项:期望以下之一 ${y(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): ${y(t.keys, ", ")}`; case "invalid_key": return `${t.origin} 中的键(key)无效`; case "invalid_union": return "无效输入"; case "invalid_element": return `${t.origin} 中包含无效值(value)`; default: return "无效输入"; } }; }; function c_() { return { localeError: u_() }; } const s_ = () => { 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 = F(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `無效的輸入值:預期為 instanceof ${t.expected},但收到 ${l}` : `無效的輸入值:預期為 ${i},但收到 ${l}`; } case "invalid_value": return t.values.length === 1 ? `無效的輸入值:預期為 ${M(t.values[0])}` : `無效的選項:預期為以下其中之一 ${y(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 ? "們" : ""}:${y(t.keys, "、")}`; case "invalid_key": return `${t.origin} 中有無效的鍵值`; case "invalid_union": return "無效的輸入值"; case "invalid_element": return `${t.origin} 中有無效的值`; default: return "無效的輸入值"; } }; }; function d_() { return { localeError: s_() }; } const m_ = () => { 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 = F(t.input), l = 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í ${l}` : `Ìbáwọlé aṣìṣe: a ní láti fi ${i}, àmọ̀ a rí ${l}`; } case "invalid_value": return t.values.length === 1 ? `Ìbáwọlé aṣìṣe: a ní láti fi ${M(t.values[0])}` : `Àṣàyàn aṣìṣe: yan ọ̀kan lára ${y(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ọ̀: ${y(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 f_() { return { localeError: m_() }; } const cc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ar: I$, az: z$, be: D$, bg: O$, ca: E$, cs: N$, da: A$, de: C$, el: F$, en: ac, eo: J$, es: V$, fa: K$, fi: G$, fr: Y$, frCA: Q$, he: tb, hr: rb, hu: ob, hy: lb, id: cb, is: db, it: fb, ja: pb, ka: hb, kh: bb, km: lc, ko: yb, lt: Sb, mk: wb, ms: xb, nl: jb, no: Ub, ota: Tb, pl: Zb, ps: Pb, pt: Mb, ro: Lb, ru: Jb, sl: Vb, sv: Kb, ta: Gb, th: Yb, tr: Qb, ua: t_, uk: uc, ur: r_, uz: o_, vi: l_, yo: f_, zhCN: c_, zhTW: d_ }, Symbol.toStringTag, { value: "Module" })); var Go; const sc = Symbol("ZodOutput"), dc = Symbol("ZodInput"); class mc { 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 Br() { return new mc(); } (Go = globalThis).__zod_globalRegistry ?? (Go.__zod_globalRegistry = Br()); const je = globalThis.__zod_globalRegistry; // @__NO_SIDE_EFFECTS__ function fc(e, n) { return new e({ type: "string", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function vc(e, n) { return new e({ type: "string", coerce: !0, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Vr(e, n) { return new e({ type: "string", format: "email", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function sn(e, n) { return new e({ type: "string", format: "guid", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function qr(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Kr(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, version: "v4", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Wr(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, version: "v6", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Gr(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, version: "v7", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function _n(e, n) { return new e({ type: "string", format: "url", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Xr(e, n) { return new e({ type: "string", format: "emoji", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Yr(e, n) { return new e({ type: "string", format: "nanoid", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Hr(e, n) { return new e({ type: "string", format: "cuid", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Qr(e, n) { return new e({ type: "string", format: "cuid2", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function ei(e, n) { return new e({ type: "string", format: "ulid", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function ti(e, n) { return new e({ type: "string", format: "xid", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function ni(e, n) { return new e({ type: "string", format: "ksuid", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function ri(e, n) { return new e({ type: "string", format: "ipv4", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function ii(e, n) { return new e({ type: "string", format: "ipv6", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function pc(e, n) { return new e({ type: "string", format: "mac", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function oi(e, n) { return new e({ type: "string", format: "cidrv4", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function ai(e, n) { return new e({ type: "string", format: "cidrv6", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function li(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 ci(e, n) { return new e({ type: "string", format: "e164", check: "string_format", abort: !1, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function si(e, n) { return new e({ type: "string", format: "jwt", check: "string_format", abort: !1, ...$(n) }); } const gc = { Any: null, Minute: -1, Second: 0, Millisecond: 3, Microsecond: 6 }; // @__NO_SIDE_EFFECTS__ function hc(e, n) { return new e({ type: "string", format: "datetime", check: "string_format", offset: !1, local: !1, precision: null, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function $c(e, n) { return new e({ type: "string", format: "date", check: "string_format", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function bc(e, n) { return new e({ type: "string", format: "time", check: "string_format", precision: null, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function _c(e, n) { return new e({ type: "string", format: "duration", check: "string_format", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function yc(e, n) { return new e({ type: "number", checks: [], ...$(n) }); } // @__NO_SIDE_EFFECTS__ function kc(e, n) { return new e({ type: "number", coerce: !0, checks: [], ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Sc(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "safeint", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Ic(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "float32", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function wc(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "float64", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function zc(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "int32", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function xc(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "uint32", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Dc(e, n) { return new e({ type: "boolean", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function jc(e, n) { return new e({ type: "boolean", coerce: !0, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Oc(e, n) { return new e({ type: "bigint", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Uc(e, n) { return new e({ type: "bigint", coerce: !0, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Ec(e, n) { return new e({ type: "bigint", check: "bigint_format", abort: !1, format: "int64", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Tc(e, n) { return new e({ type: "bigint", check: "bigint_format", abort: !1, format: "uint64", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Nc(e, n) { return new e({ type: "symbol", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Pc(e, n) { return new e({ type: "undefined", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Ac(e, n) { return new e({ type: "null", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Zc(e) { return new e({ type: "any" }); } // @__NO_SIDE_EFFECTS__ function Cc(e) { return new e({ type: "unknown" }); } // @__NO_SIDE_EFFECTS__ function Mc(e, n) { return new e({ type: "never", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Fc(e, n) { return new e({ type: "void", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Lc(e, n) { return new e({ type: "date", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Rc(e, n) { return new e({ type: "date", coerce: !0, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Jc(e, n) { return new e({ type: "nan", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Je(e, n) { return new Nr({ check: "less_than", ...$(n), value: e, inclusive: !1 }); } // @__NO_SIDE_EFFECTS__ function Oe(e, n) { return new Nr({ check: "less_than", ...$(n), value: e, inclusive: !0 }); } // @__NO_SIDE_EFFECTS__ function Be(e, n) { return new Pr({ check: "greater_than", ...$(n), value: e, inclusive: !1 }); } // @__NO_SIDE_EFFECTS__ function ke(e, n) { return new Pr({ check: "greater_than", ...$(n), value: e, inclusive: !0 }); } // @__NO_SIDE_EFFECTS__ function di(e) { return /* @__PURE__ */ Be(0, e); } // @__NO_SIDE_EFFECTS__ function mi(e) { return /* @__PURE__ */ Je(0, e); } // @__NO_SIDE_EFFECTS__ function fi(e) { return /* @__PURE__ */ Oe(0, e); } // @__NO_SIDE_EFFECTS__ function vi(e) { return /* @__PURE__ */ ke(0, e); } // @__NO_SIDE_EFFECTS__ function ct(e, n) { return new xl({ check: "multiple_of", ...$(n), value: e }); } // @__NO_SIDE_EFFECTS__ function pt(e, n) { return new Ol({ check: "max_size", ...$(n), maximum: e }); } // @__NO_SIDE_EFFECTS__ function Ve(e, n) { return new Ul({ check: "min_size", ...$(n), minimum: e }); } // @__NO_SIDE_EFFECTS__ function At(e, n) { return new El({ check: "size_equals", ...$(n), size: e }); } // @__NO_SIDE_EFFECTS__ function Zt(e, n) { return new Tl({ check: "max_length", ...$(n), maximum: e }); } // @__NO_SIDE_EFFECTS__ function Qe(e, n) { return new Nl({ check: "min_length", ...$(n), minimum: e }); } // @__NO_SIDE_EFFECTS__ function Ct(e, n) { return new Pl({ check: "length_equals", ...$(n), length: e }); } // @__NO_SIDE_EFFECTS__ function yn(e, n) { return new Al({ check: "string_format", format: "regex", ...$(n), pattern: e }); } // @__NO_SIDE_EFFECTS__ function kn(e) { return new Zl({ check: "string_format", format: "lowercase", ...$(e) }); } // @__NO_SIDE_EFFECTS__ function Sn(e) { return new Cl({ check: "string_format", format: "uppercase", ...$(e) }); } // @__NO_SIDE_EFFECTS__ function In(e, n) { return new Ml({ check: "string_format", format: "includes", ...$(n), includes: e }); } // @__NO_SIDE_EFFECTS__ function wn(e, n) { return new Fl({ check: "string_format", format: "starts_with", ...$(n), prefix: e }); } // @__NO_SIDE_EFFECTS__ function zn(e, n) { return new Ll({ check: "string_format", format: "ends_with", ...$(n), suffix: e }); } // @__NO_SIDE_EFFECTS__ function pi(e, n, r) { return new Rl({ check: "property", property: e, schema: n, ...$(r) }); } // @__NO_SIDE_EFFECTS__ function xn(e, n) { return new Jl({ check: "mime_type", mime: e, ...$(n) }); } // @__NO_SIDE_EFFECTS__ function Fe(e) { return new Bl({ check: "overwrite", tx: e }); } // @__NO_SIDE_EFFECTS__ function Dn(e) { return /* @__PURE__ */ Fe((n) => n.normalize(e)); } // @__NO_SIDE_EFFECTS__ function jn() { return /* @__PURE__ */ Fe((e) => e.trim()); } // @__NO_SIDE_EFFECTS__ function On() { return /* @__PURE__ */ Fe((e) => e.toLowerCase()); } // @__NO_SIDE_EFFECTS__ function Un() { return /* @__PURE__ */ Fe((e) => e.toUpperCase()); } // @__NO_SIDE_EFFECTS__ function En() { return /* @__PURE__ */ Fe((e) => Sa(e)); } // @__NO_SIDE_EFFECTS__ function Bc(e, n, r) { return new e({ type: "array", element: n, // get element() { // return element; // }, ...$(r) }); } // @__NO_SIDE_EFFECTS__ function v_(e, n, r) { return new e({ type: "union", options: n, ...$(r) }); } function p_(e, n, r) { return new e({ type: "union", options: n, inclusive: !1, ...$(r) }); } // @__NO_SIDE_EFFECTS__ function g_(e, n, r, o) { return new e({ type: "union", options: r, discriminator: n, ...$(o) }); } // @__NO_SIDE_EFFECTS__ function h_(e, n, r) { return new e({ type: "intersection", left: n, right: r }); } // @__NO_SIDE_EFFECTS__ function $_(e, n, r, o) { const t = r instanceof B, i = t ? o : r, a = t ? r : null; return new e({ type: "tuple", items: n, rest: a, ...$(i) }); } // @__NO_SIDE_EFFECTS__ function b_(e, n, r, o) { return new e({ type: "record", keyType: n, valueType: r, ...$(o) }); } // @__NO_SIDE_EFFECTS__ function __(e, n, r, o) { return new e({ type: "map", keyType: n, valueType: r, ...$(o) }); } // @__NO_SIDE_EFFECTS__ function y_(e, n, r) { return new e({ type: "set", valueType: n, ...$(r) }); } // @__NO_SIDE_EFFECTS__ function k_(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 S_(e, n, r) { return new e({ type: "enum", entries: n, ...$(r) }); } // @__NO_SIDE_EFFECTS__ function I_(e, n, r) { return new e({ type: "literal", values: Array.isArray(n) ? n : [n], ...$(r) }); } // @__NO_SIDE_EFFECTS__ function Vc(e, n) { return new e({ type: "file", ...$(n) }); } // @__NO_SIDE_EFFECTS__ function w_(e, n) { return new e({ type: "transform", transform: n }); } // @__NO_SIDE_EFFECTS__ function z_(e, n) { return new e({ type: "optional", innerType: n }); } // @__NO_SIDE_EFFECTS__ function x_(e, n) { return new e({ type: "nullable", innerType: n }); } // @__NO_SIDE_EFFECTS__ function D_(e, n, r) { return new e({ type: "default", innerType: n, get defaultValue() { return typeof r == "function" ? r() : gn(r); } }); } // @__NO_SIDE_EFFECTS__ function j_(e, n, r) { return new e({ type: "nonoptional", innerType: n, ...$(r) }); } // @__NO_SIDE_EFFECTS__ function O_(e, n) { return new e({ type: "success", innerType: n }); } // @__NO_SIDE_EFFECTS__ function U_(e, n, r) { return new e({ type: "catch", innerType: n, catchValue: typeof r == "function" ? r : () => r }); } // @__NO_SIDE_EFFECTS__ function E_(e, n, r) { return new e({ type: "pipe", in: n, out: r }); } // @__NO_SIDE_EFFECTS__ function T_(e, n) { return new e({ type: "readonly", innerType: n }); } // @__NO_SIDE_EFFECTS__ function N_(e, n, r) { return new e({ type: "template_literal", parts: n, ...$(r) }); } // @__NO_SIDE_EFFECTS__ function P_(e, n) { return new e({ type: "lazy", getter: n }); } // @__NO_SIDE_EFFECTS__ function A_(e, n) { return new e({ type: "promise", innerType: n }); } // @__NO_SIDE_EFFECTS__ function qc(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 Kc(e, n, r) { return new e({ type: "custom", check: "custom", fn: n, ...$(r) }); } // @__NO_SIDE_EFFECTS__ function Wc(e, n) { const r = /* @__PURE__ */ Gc((o) => (o.addIssue = (t) => { if (typeof t == "string") o.issues.push(lt(t, o.value, r._zod.def)); else { const i = t; i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = o.value), i.inst ?? (i.inst = r), i.continue ?? (i.continue = !r._zod.def.abort), o.issues.push(lt(i)); } }, e(o.value, o)), n); return r; } // @__NO_SIDE_EFFECTS__ function Gc(e, n) { const r = new le({ check: "custom", ...$(n) }); return r._zod.check = e, r; } // @__NO_SIDE_EFFECTS__ function Xc(e) { const n = new le({ check: "describe" }); return n._zod.onattach = [ (r) => { const o = je.get(r) ?? {}; je.add(r, { ...o, description: e }); } ], n._zod.check = () => { }, n; } // @__NO_SIDE_EFFECTS__ function Yc(e) { const n = new le({ check: "meta" }); return n._zod.onattach = [ (r) => { const o = je.get(r) ?? {}; je.add(r, { ...o, ...e }); } ], n._zod.check = () => { }, n; } // @__NO_SIDE_EFFECTS__ function Hc(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((f) => typeof f == "string" ? f.toLowerCase() : f), t = t.map((f) => typeof f == "string" ? f.toLowerCase() : f)); const i = new Set(o), a = new Set(t), l = e.Codec ?? Jr, c = e.Boolean ?? Cr, u = e.String ?? Pt, d = new u({ type: "string", error: r.error }), s = new c({ type: "boolean", error: r.error }), m = new l({ type: "pipe", in: d, out: s, transform: ((f, p) => { let h = f; return r.case !== "sensitive" && (h = h.toLowerCase()), i.has(h) ? !0 : a.has(h) ? !1 : (p.issues.push({ code: "invalid_value", expected: "stringbool", values: [...i, ...a], input: p.value, inst: m, continue: !1 }), {}); }), reverseTransform: ((f, p) => f === !0 ? o[0] || "true" : t[0] || "false"), error: r.error }); return m; } // @__NO_SIDE_EFFECTS__ function Mt(e, n, r, o = {}) { const t = $(o), i = { ...$(o), check: "string_format", type: "string", format: n, fn: typeof r == "function" ? r : (l) => r.test(l), ...t }; return r instanceof RegExp && (i.pattern = r), new e(i); } function st(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) ?? je, 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 l = (s = (d = e._zod).toJSONSchema) == null ? void 0 : s.call(d); if (l) a.schema = l; else { const m = { ...r, schemaPath: [...r.schemaPath, e], path: r.path }; if (e._zod.processJSONSchema) e._zod.processJSONSchema(n, a.schema, m); else { const p = a.schema, h = n.processors[t.type]; if (!h) throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`); h(e, n, p, m); } const f = e._zod.parent; f && (a.ref || (a.ref = f), ne(f, n, m), n.seen.get(f).isParent = !0); } const c = n.metadataRegistry.get(e); return c && Object.assign(a.schema, c), n.io === "input" && $e(e) && (delete a.schema.examples, delete a.schema.default), n.io === "input" && "_prefault" in a.schema && ((o = a.schema).default ?? (o.default = a.schema._prefault)), delete a.schema._prefault, n.seen.get(e).schema; } function dt(e, n) { var a, l, c, u; 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 m = o.get(s); if (m && m !== 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 h; const s = e.target === "draft-2020-12" ? "$defs" : "definitions"; if (e.external) { const E = (h = e.external.registry.get(d[0])) == null ? void 0 : h.id, S = e.external.uri ?? ((L) => L); if (E) return { ref: S(E) }; const w = d[1].defId ?? d[1].schema.id ?? `schema${e.counter++}`; return d[1].defId = w, { defId: w, ref: `${S("__shared")}#/${s}/${w}` }; } if (d[1] === r) return { ref: "#" }; const f = `#/${s}/`, p = d[1].schema.id ?? `__schema${e.counter++}`; return { defId: p, ref: f + p }; }, i = (d) => { if (d[1].schema.$ref) return; const s = d[1], { ref: m, defId: f } = t(d); s.def = { ...s.schema }, f && (s.defId = f); const p = s.schema; for (const h in p) delete p[h]; p.$ref = m; }; if (e.cycles === "throw") for (const d of e.seen.entries()) { const s = d[1]; if (s.cycle) throw new Error(`Cycle detected: #/${(l = s.cycle) == null ? void 0 : l.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 f = (c = e.external.registry.get(d[0])) == null ? void 0 : c.id; if (n !== d[0] && f) { i(d); continue; } } if ((u = e.metadataRegistry.get(d[0])) == null ? void 0 : u.id) { i(d); continue; } if (s.cycle) { i(d); continue; } if (s.count > 1 && e.reused === "ref") { i(d); continue; } } } function mt(e, n) { var l, c, u, d; const r = e.seen.get(n); if (!r) throw new Error("Unprocessed schema. This is a bug in Zod."); const o = (s) => { const m = e.seen.get(s); if (m.ref === null) return; const f = m.def ?? m.schema, p = { ...f }, h = m.ref; if (m.ref = null, h) { o(h); const S = e.seen.get(h), w = S.schema; if (w.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (f.allOf = f.allOf ?? [], f.allOf.push(w)) : Object.assign(f, w), Object.assign(f, p), s._zod.parent === h) for (const A in f) A === "$ref" || A === "allOf" || A in p || delete f[A]; if (w.$ref && S.def) for (const A in f) A === "$ref" || A === "allOf" || A in S.def && JSON.stringify(f[A]) === JSON.stringify(S.def[A]) && delete f[A]; } const E = s._zod.parent; if (E && E !== h) { o(E); const S = e.seen.get(E); if (S != null && S.schema.$ref && (f.$ref = S.schema.$ref, S.def)) for (const w in f) w === "$ref" || w === "allOf" || w in S.def && JSON.stringify(f[w]) === JSON.stringify(S.def[w]) && delete f[w]; } e.override({ zodSchema: s, jsonSchema: f, path: m.path ?? [] }); }; for (const s of [...e.seen.entries()].reverse()) o(s[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, (l = e.external) != null && l.uri) { const s = (c = e.external.registry.get(n)) == null ? void 0 : c.id; if (!s) throw new Error("Schema is missing an `id` property"); t.$id = e.external.uri(s); } Object.assign(t, r.def ?? r.schema); const i = (u = e.metadataRegistry.get(n)) == null ? void 0 : u.id; i !== void 0 && t.id === i && delete t.id; const a = ((d = e.external) == null ? void 0 : d.defs) ?? {}; for (const s of e.seen.entries()) { const m = s[1]; m.def && m.defId && (m.def.id === m.defId && delete m.def.id, a[m.defId] = m.def); } e.external || Object.keys(a).length > 0 && (e.target === "draft-2020-12" ? t.$defs = a : t.definitions = a); try { const s = JSON.parse(JSON.stringify(t)); return Object.defineProperty(s, "~standard", { value: { ...n["~standard"], jsonSchema: { input: yt(n, "input", e.processors), output: yt(n, "output", e.processors) } }, enumerable: !1, writable: !1 }), s; } catch { throw new Error("Error converting schema to JSON."); } } function $e(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 $e(o.element, r); if (o.type === "set") return $e(o.valueType, r); if (o.type === "lazy") return $e(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 $e(o.innerType, r); if (o.type === "intersection") return $e(o.left, r) || $e(o.right, r); if (o.type === "record" || o.type === "map") return $e(o.keyType, r) || $e(o.valueType, r); if (o.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : $e(o.in, r) || $e(o.out, r); if (o.type === "object") { for (const t in o.shape) if ($e(o.shape[t], r)) return !0; return !1; } if (o.type === "union") { for (const t of o.options) if ($e(t, r)) return !0; return !1; } if (o.type === "tuple") { for (const t of o.items) if ($e(t, r)) return !0; return !!(o.rest && $e(o.rest, r)); } return !1; } const Qc = (e, n = {}) => (r) => { const o = st({ ...r, processors: n }); return ne(e, o), dt(o, e), mt(o, e); }, yt = (e, n, r = {}) => (o) => { const { libraryOptions: t, target: i } = o ?? {}, a = st({ ...t ?? {}, target: i, io: n, processors: r }); return ne(e, a), dt(a, e), mt(a, e); }, Z_ = { guid: "uuid", url: "uri", datetime: "date-time", json_string: "json-string", regex: "" // do not set }, es = (e, n, r, o) => { const t = r; t.type = "string"; const { minimum: i, maximum: a, format: l, patterns: c, contentEncoding: u } = e._zod.bag; if (typeof i == "number" && (t.minLength = i), typeof a == "number" && (t.maxLength = a), l && (t.format = Z_[l] ?? l, t.format === "" && delete t.format, l === "time" && delete t.format), u && (t.contentEncoding = u), 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 })) ]); } }, ts = (e, n, r, o) => { const t = r, { minimum: i, maximum: a, format: l, multipleOf: c, exclusiveMaximum: u, exclusiveMinimum: d } = e._zod.bag; typeof l == "string" && l.includes("int") ? t.type = "integer" : t.type = "number"; const s = typeof d == "number" && d >= (i ?? Number.NEGATIVE_INFINITY), m = typeof u == "number" && u <= (a ?? Number.POSITIVE_INFINITY), f = n.target === "draft-04" || n.target === "openapi-3.0"; s ? f ? (t.minimum = d, t.exclusiveMinimum = !0) : t.exclusiveMinimum = d : typeof i == "number" && (t.minimum = i), m ? f ? (t.maximum = u, t.exclusiveMaximum = !0) : t.exclusiveMaximum = u : typeof a == "number" && (t.maximum = a), typeof c == "number" && (t.multipleOf = c); }, ns = (e, n, r, o) => { r.type = "boolean"; }, rs = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("BigInt cannot be represented in JSON Schema"); }, is = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Symbols cannot be represented in JSON Schema"); }, os = (e, n, r, o) => { n.target === "openapi-3.0" ? (r.type = "string", r.nullable = !0, r.enum = [null]) : r.type = "null"; }, as = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Undefined cannot be represented in JSON Schema"); }, ls = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Void cannot be represented in JSON Schema"); }, us = (e, n, r, o) => { r.not = {}; }, cs = (e, n, r, o) => { }, ss = (e, n, r, o) => { }, ds = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Date cannot be represented in JSON Schema"); }, ms = (e, n, r, o) => { const t = e._zod.def, i = hr(t.entries); i.every((a) => typeof a == "number") && (r.type = "number"), i.every((a) => typeof a == "string") && (r.type = "string"), r.enum = i; }, fs = (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; }, vs = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("NaN cannot be represented in JSON Schema"); }, ps = (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; }, gs = (e, n, r, o) => { const t = r, i = { type: "string", format: "binary", contentEncoding: "binary" }, { minimum: a, maximum: l, mime: c } = e._zod.bag; a !== void 0 && (i.minLength = a), l !== void 0 && (i.maxLength = l), c ? c.length === 1 ? (i.contentMediaType = c[0], Object.assign(t, i)) : (Object.assign(t, i), t.anyOf = c.map((u) => ({ contentMediaType: u }))) : Object.assign(t, i); }, hs = (e, n, r, o) => { r.type = "boolean"; }, $s = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Custom types cannot be represented in JSON Schema"); }, bs = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Function types cannot be represented in JSON Schema"); }, _s = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Transforms cannot be represented in JSON Schema"); }, ys = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Map cannot be represented in JSON Schema"); }, ks = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Set cannot be represented in JSON Schema"); }, Ss = (e, n, r, o) => { const t = r, i = e._zod.def, { minimum: a, maximum: l } = e._zod.bag; typeof a == "number" && (t.minItems = a), typeof l == "number" && (t.maxItems = l), t.type = "array", t.items = ne(i.element, n, { ...o, path: [...o.path, "items"] }); }, Is = (e, n, r, o) => { var u; 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 l = new Set(Object.keys(a)), c = new Set([...l].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)), ((u = i.catchall) == null ? void 0 : u._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); }, gi = (e, n, r, o) => { const t = e._zod.def, i = t.inclusive === !1, a = t.options.map((l, c) => ne(l, n, { ...o, path: [...o.path, i ? "oneOf" : "anyOf", c] })); i ? r.oneOf = a : r.anyOf = a; }, ws = (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] }), l = (u) => "allOf" in u && Object.keys(u).length === 1, c = [ ...l(i) ? i.allOf : [i], ...l(a) ? a.allOf : [a] ]; r.allOf = c; }, zs = (e, n, r, o) => { const t = r, i = e._zod.def; t.type = "array"; const a = n.target === "draft-2020-12" ? "prefixItems" : "items", l = n.target === "draft-2020-12" || n.target === "openapi-3.0" ? "items" : "additionalItems", c = i.items.map((m, f) => ne(m, n, { ...o, path: [...o.path, a, f] })), u = i.rest ? ne(i.rest, n, { ...o, path: [...o.path, l, ...n.target === "openapi-3.0" ? [i.items.length] : []] }) : null; n.target === "draft-2020-12" ? (t.prefixItems = c, u && (t.items = u)) : n.target === "openapi-3.0" ? (t.items = { anyOf: c }, u && t.items.anyOf.push(u), t.minItems = c.length, u || (t.maxItems = c.length)) : (t.items = c, u && (t.additionalItems = u)); const { minimum: d, maximum: s } = e._zod.bag; typeof d == "number" && (t.minItems = d), typeof s == "number" && (t.maxItems = s); }, xs = (e, n, r, o) => { const t = r, i = e._zod.def; t.type = "object"; const a = i.keyType, l = a._zod.bag, c = l == null ? void 0 : l.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 u = a._zod.values; if (u) { const d = [...u].filter((s) => typeof s == "string" || typeof s == "number"); d.length > 0 && (t.required = d); } }, Ds = (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" }]; }, 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; }, Os = (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)); }, Us = (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))); }, Es = (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; }, Ts = (e, n, r, o) => { const t = e._zod.def, i = t.in._zod.traits.has("$ZodTransform"), a = n.io === "input" ? i ? t.out : t.in : t.out; ne(a, n, o); const l = n.seen.get(e); l.ref = a; }, Ns = (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; }, Ps = (e, n, r, o) => { const t = e._zod.def; ne(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType; }, hi = (e, n, r, o) => { const t = e._zod.def; ne(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType; }, As = (e, n, r, o) => { const t = e._zod.innerType; ne(t, n, o); const i = n.seen.get(e); i.ref = t; }, dr = { string: es, number: ts, boolean: ns, bigint: rs, symbol: is, null: os, undefined: as, void: ls, never: us, any: cs, unknown: ss, date: ds, enum: ms, literal: fs, nan: vs, template_literal: ps, file: gs, success: hs, custom: $s, function: bs, transform: _s, map: ys, set: ks, array: Ss, object: Is, union: gi, intersection: ws, tuple: zs, record: xs, nullable: Ds, nonoptional: js, default: Os, prefault: Us, catch: Es, pipe: Ts, readonly: Ns, promise: Ps, optional: hi, lazy: As }; function Zs(e, n) { if ("_idmap" in e) { const o = e, t = st({ ...n, processors: dr }), i = {}; for (const c of o._idmap.entries()) { const [u, d] = c; ne(d, t); } const a = {}, l = { registry: o, uri: n == null ? void 0 : n.uri, defs: i }; t.external = l; for (const c of o._idmap.entries()) { const [u, d] = c; dt(t, d), a[u] = mt(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 = st({ ...n, processors: dr }); return ne(e, r), dt(r, e), mt(r, e); } class C_ { /** @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 = st({ processors: dr, 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)), dt(this.ctx, n); const o = mt(this.ctx, n), { "~standard": t, ...i } = o; return i; } } const M_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), F_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, $ZodAny: wu, $ZodArray: Ou, $ZodAsyncError: Ye, $ZodBase64: fu, $ZodBase64URL: pu, $ZodBigInt: Mr, $ZodBigIntFormat: yu, $ZodBoolean: Cr, $ZodCIDRv4: du, $ZodCIDRv6: mu, $ZodCUID: Ql, $ZodCUID2: eu, $ZodCatch: Yu, $ZodCheck: le, $ZodCheckBigIntFormat: jl, $ZodCheckEndsWith: Ll, $ZodCheckGreaterThan: Pr, $ZodCheckIncludes: Ml, $ZodCheckLengthEquals: Pl, $ZodCheckLessThan: Nr, $ZodCheckLowerCase: Zl, $ZodCheckMaxLength: Tl, $ZodCheckMaxSize: Ol, $ZodCheckMimeType: Jl, $ZodCheckMinLength: Nl, $ZodCheckMinSize: Ul, $ZodCheckMultipleOf: xl, $ZodCheckNumberFormat: Dl, $ZodCheckOverwrite: Bl, $ZodCheckProperty: Rl, $ZodCheckRegex: Al, $ZodCheckSizeEquals: El, $ZodCheckStartsWith: Fl, $ZodCheckStringFormat: Nt, $ZodCheckUpperCase: Cl, $ZodCodec: Jr, $ZodCustom: oc, $ZodCustomStringFormat: bu, $ZodDate: ju, $ZodDefault: Ku, $ZodDiscriminatedUnion: Au, $ZodE164: gu, $ZodEmail: Gl, $ZodEmoji: Yl, $ZodEncodeError: vn, $ZodEnum: Lu, $ZodError: br, $ZodExactOptional: Vu, $ZodFile: Ju, $ZodFunction: nc, $ZodGUID: Kl, $ZodIPv4: uu, $ZodIPv6: cu, $ZodISODate: ou, $ZodISODateTime: iu, $ZodISODuration: lu, $ZodISOTime: au, $ZodIntersection: Zu, $ZodJWT: $u, $ZodKSUID: ru, $ZodLazy: ic, $ZodLiteral: Ru, $ZodMAC: su, $ZodMap: Mu, $ZodNaN: Hu, $ZodNanoID: Hl, $ZodNever: xu, $ZodNonOptional: Gu, $ZodNull: Iu, $ZodNullable: qu, $ZodNumber: Zr, $ZodNumberFormat: _u, $ZodObject: Tu, $ZodObjectJIT: Nu, $ZodOptional: Lr, $ZodPipe: Rr, $ZodPrefault: Wu, $ZodPreprocess: Qu, $ZodPromise: rc, $ZodReadonly: ec, $ZodRealError: ze, $ZodRecord: Cu, $ZodRegistry: mc, $ZodSet: Fu, $ZodString: Pt, $ZodStringFormat: ie, $ZodSuccess: Xu, $ZodSymbol: ku, $ZodTemplateLiteral: tc, $ZodTransform: Bu, $ZodTuple: Fr, $ZodType: B, $ZodULID: tu, $ZodURL: Xl, $ZodUUID: Wl, $ZodUndefined: Su, $ZodUnion: bn, $ZodUnknown: zu, $ZodVoid: Du, $ZodXID: nu, $ZodXor: Pu, $brand: ya, $constructor: v, $input: dc, $output: sc, Doc: Vl, JSONSchema: M_, JSONSchemaGenerator: C_, NEVER: _a, TimePrecision: gc, _any: Zc, _array: Bc, _base64: li, _base64url: ui, _bigint: Oc, _boolean: Dc, _catch: U_, _check: Gc, _cidrv4: oi, _cidrv6: ai, _coercedBigint: Uc, _coercedBoolean: jc, _coercedDate: Rc, _coercedNumber: kc, _coercedString: vc, _cuid: Hr, _cuid2: Qr, _custom: qc, _date: Lc, _decode: Sr, _decodeAsync: wr, _default: D_, _discriminatedUnion: g_, _e164: ci, _email: Vr, _emoji: Xr, _encode: kr, _encodeAsync: Ir, _endsWith: zn, _enum: k_, _file: Vc, _float32: Ic, _float64: wc, _gt: Be, _gte: ke, _guid: sn, _includes: In, _int: Sc, _int32: zc, _int64: Ec, _intersection: h_, _ipv4: ri, _ipv6: ii, _isoDate: $c, _isoDateTime: hc, _isoDuration: _c, _isoTime: bc, _jwt: si, _ksuid: ni, _lazy: P_, _length: Ct, _literal: I_, _lowercase: kn, _lt: Je, _lte: Oe, _mac: pc, _map: __, _max: Oe, _maxLength: Zt, _maxSize: pt, _mime: xn, _min: ke, _minLength: Qe, _minSize: Ve, _multipleOf: ct, _nan: Jc, _nanoid: Yr, _nativeEnum: S_, _negative: mi, _never: Mc, _nonnegative: vi, _nonoptional: j_, _nonpositive: fi, _normalize: Dn, _null: Ac, _nullable: x_, _number: yc, _optional: z_, _overwrite: Fe, _parse: Dt, _parseAsync: jt, _pipe: E_, _positive: di, _promise: A_, _property: pi, _readonly: T_, _record: b_, _refine: Kc, _regex: yn, _safeDecode: xr, _safeDecodeAsync: jr, _safeEncode: zr, _safeEncodeAsync: Dr, _safeParse: Ot, _safeParseAsync: Ut, _set: y_, _size: At, _slugify: En, _startsWith: wn, _string: fc, _stringFormat: Mt, _stringbool: Hc, _success: O_, _superRefine: Wc, _symbol: Nc, _templateLiteral: N_, _toLowerCase: On, _toUpperCase: Un, _transform: w_, _trim: jn, _tuple: $_, _uint32: xc, _uint64: Tc, _ulid: ei, _undefined: Pc, _union: v_, _unknown: Cc, _uppercase: Sn, _url: _n, _uuid: qr, _uuidv4: Kr, _uuidv6: Wr, _uuidv7: Gr, _void: Fc, _xid: ti, _xor: p_, clone: Ue, config: ve, createStandardJSONSchemaMethod: yt, createToJSONSchemaMethod: Qc, decode: qh, decodeAsync: Wh, describe: Xc, encode: Vh, encodeAsync: Kh, extractDefs: dt, finalize: mt, flattenError: _r, formatError: yr, globalConfig: _t, globalRegistry: je, initializeContext: st, isValidBase64: Ar, isValidBase64URL: vu, isValidJWT: hu, locales: cc, meta: Yc, parse: ur, parseAsync: cr, prettifyError: Ja, process: ne, regexes: Tr, registry: Br, safeDecode: Xh, safeDecodeAsync: Hh, safeEncode: Gh, safeEncodeAsync: Yh, safeParse: Ba, safeParseAsync: Va, toDotPath: Ra, toJSONSchema: Zs, treeifyError: La, util: Ma, version: ql }, Symbol.toStringTag, { value: "Module" })), L_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, endsWith: zn, gt: Be, gte: ke, includes: In, length: Ct, lowercase: kn, lt: Je, lte: Oe, maxLength: Zt, maxSize: pt, mime: xn, minLength: Qe, minSize: Ve, multipleOf: ct, negative: mi, nonnegative: vi, nonpositive: fi, normalize: Dn, overwrite: Fe, positive: di, property: pi, regex: yn, size: At, slugify: En, startsWith: wn, toLowerCase: On, toUpperCase: Un, trim: jn, uppercase: Sn }, Symbol.toStringTag, { value: "Module" })), $i = /* @__PURE__ */ v("ZodISODateTime", (e, n) => { iu.init(e, n), oe.init(e, n); }); function Cs(e) { return /* @__PURE__ */ hc($i, e); } const bi = /* @__PURE__ */ v("ZodISODate", (e, n) => { ou.init(e, n), oe.init(e, n); }); function Ms(e) { return /* @__PURE__ */ $c(bi, e); } const _i = /* @__PURE__ */ v("ZodISOTime", (e, n) => { au.init(e, n), oe.init(e, n); }); function Fs(e) { return /* @__PURE__ */ bc(_i, e); } const yi = /* @__PURE__ */ v("ZodISODuration", (e, n) => { lu.init(e, n), oe.init(e, n); }); function Ls(e) { return /* @__PURE__ */ _c(yi, e); } const Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ZodISODate: bi, ZodISODateTime: $i, ZodISODuration: yi, ZodISOTime: _i, date: Ms, datetime: Cs, duration: Ls, time: Fs }, Symbol.toStringTag, { value: "Module" })), Js = (e, n) => { br.init(e, n), e.name = "ZodError", Object.defineProperties(e, { format: { value: (r) => yr(e, r) // enumerable: false, }, flatten: { value: (r) => _r(e, r) // enumerable: false, }, addIssue: { value: (r) => { e.issues.push(r), e.message = JSON.stringify(e.issues, ln, 2); } // enumerable: false, }, addIssues: { value: (r) => { e.issues.push(...r), e.message = JSON.stringify(e.issues, ln, 2); } // enumerable: false, }, isEmpty: { get() { return e.issues.length === 0; } // enumerable: false, } }); }, R_ = /* @__PURE__ */ v("ZodError", Js), xe = /* @__PURE__ */ v("ZodError", Js, { Parent: Error }), Bs = /* @__PURE__ */ Dt(xe), Vs = /* @__PURE__ */ jt(xe), qs = /* @__PURE__ */ Ot(xe), Ks = /* @__PURE__ */ Ut(xe), Ws = /* @__PURE__ */ kr(xe), Gs = /* @__PURE__ */ Sr(xe), Xs = /* @__PURE__ */ Ir(xe), Ys = /* @__PURE__ */ wr(xe), Hs = /* @__PURE__ */ zr(xe), Qs = /* @__PURE__ */ xr(xe), ed = /* @__PURE__ */ Dr(xe), td = /* @__PURE__ */ jr(xe), Xo = /* @__PURE__ */ new WeakMap(); function Ft(e, n, r) { const o = Object.getPrototypeOf(e); let t = Xo.get(o); if (t || (t = /* @__PURE__ */ new Set(), Xo.set(o, t)), !t.has(n)) { t.add(n); for (const i in r) { const a = r[i]; Object.defineProperty(o, i, { configurable: !0, enumerable: !1, get() { const l = a.bind(this); return Object.defineProperty(this, i, { configurable: !0, writable: !0, enumerable: !0, value: l }), l; }, set(l) { Object.defineProperty(this, i, { configurable: !0, writable: !0, enumerable: !0, value: l }); } }); } } } const V = /* @__PURE__ */ v("ZodType", (e, n) => (B.init(e, n), Object.assign(e["~standard"], { jsonSchema: { input: yt(e, "input"), output: yt(e, "output") } }), e.toJSONSchema = Qc(e, {}), e.def = n, e.type = n.type, Object.defineProperty(e, "_def", { value: n }), e.parse = (r, o) => Bs(e, r, o, { callee: e.parse }), e.safeParse = (r, o) => qs(e, r, o), e.parseAsync = async (r, o) => Vs(e, r, o, { callee: e.parseAsync }), e.safeParseAsync = async (r, o) => Ks(e, r, o), e.spa = e.safeParseAsync, e.encode = (r, o) => Ws(e, r, o), e.decode = (r, o) => Gs(e, r, o), e.encodeAsync = async (r, o) => Xs(e, r, o), e.decodeAsync = async (r, o) => Ys(e, r, o), e.safeEncode = (r, o) => Hs(e, r, o), e.safeDecode = (r, o) => Qs(e, r, o), e.safeEncodeAsync = async (r, o) => ed(e, r, o), e.safeDecodeAsync = async (r, o) => td(e, r, o), Ft(e, "ZodType", { check(...r) { const o = this.def; return this.clone(Pe(o, { checks: [ ...o.checks ?? [], ...r.map((t) => typeof t == "function" ? { _zod: { check: t, def: { check: "custom" }, onattach: [] } } : t) ] }), { parent: !0 }); }, with(...r) { return this.check(...r); }, clone(r, o) { return Ue(this, r, o); }, brand() { return this; }, register(r, o) { return r.add(this, o), this; }, refine(r, o) { return this.check(fo(r, o)); }, superRefine(r, o) { return this.check(vo(r, o)); }, overwrite(r) { return this.check(/* @__PURE__ */ Fe(r)); }, optional() { return It(this); }, exactOptional() { return Ki(this); }, nullable() { return wt(this); }, nullish() { return It(wt(this)); }, nonoptional(r) { return Qi(this, r); }, array() { return qt(this); }, or(r) { return Qn([this, r]); }, and(r) { return Zi(this, r); }, transform(r) { return mn(this, tr(r)); }, default(r) { return Xi(this, r); }, prefault(r) { return Hi(this, r); }, catch(r) { return no(this, r); }, pipe(r) { return mn(this, r); }, readonly() { return ao(this); }, describe(r) { const o = this.clone(); return je.add(o, { description: r }), o; }, meta(...r) { if (r.length === 0) return je.get(this); const o = this.clone(); return je.add(o, r[0]), o; }, isOptional() { return this.safeParse(void 0).success; }, isNullable() { return this.safeParse(null).success; }, apply(r) { return r(this); } }), Object.defineProperty(e, "description", { get() { var r; return (r = je.get(e)) == null ? void 0 : r.description; }, configurable: !0 }), e)), Tn = /* @__PURE__ */ v("_ZodString", (e, n) => { Pt.init(e, n), V.init(e, n), e._zod.processJSONSchema = (o, t, i) => es(e, o, t); const r = e._zod.bag; e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, Ft(e, "_ZodString", { regex(...o) { return this.check(/* @__PURE__ */ yn(...o)); }, includes(...o) { return this.check(/* @__PURE__ */ In(...o)); }, startsWith(...o) { return this.check(/* @__PURE__ */ wn(...o)); }, endsWith(...o) { return this.check(/* @__PURE__ */ zn(...o)); }, min(...o) { return this.check(/* @__PURE__ */ Qe(...o)); }, max(...o) { return this.check(/* @__PURE__ */ Zt(...o)); }, length(...o) { return this.check(/* @__PURE__ */ Ct(...o)); }, nonempty(...o) { return this.check(/* @__PURE__ */ Qe(1, ...o)); }, lowercase(o) { return this.check(/* @__PURE__ */ kn(o)); }, uppercase(o) { return this.check(/* @__PURE__ */ Sn(o)); }, trim() { return this.check(/* @__PURE__ */ jn()); }, normalize(...o) { return this.check(/* @__PURE__ */ Dn(...o)); }, toLowerCase() { return this.check(/* @__PURE__ */ On()); }, toUpperCase() { return this.check(/* @__PURE__ */ Un()); }, slugify() { return this.check(/* @__PURE__ */ En()); } }); }), Lt = /* @__PURE__ */ v("ZodString", (e, n) => { Pt.init(e, n), Tn.init(e, n), e.email = (r) => e.check(/* @__PURE__ */ Vr(Nn, r)), e.url = (r) => e.check(/* @__PURE__ */ _n(Rt, r)), e.jwt = (r) => e.check(/* @__PURE__ */ si(Gn, r)), e.emoji = (r) => e.check(/* @__PURE__ */ Xr(Pn, r)), e.guid = (r) => e.check(/* @__PURE__ */ sn(St, r)), e.uuid = (r) => e.check(/* @__PURE__ */ qr(Ne, r)), e.uuidv4 = (r) => e.check(/* @__PURE__ */ Kr(Ne, r)), e.uuidv6 = (r) => e.check(/* @__PURE__ */ Wr(Ne, r)), e.uuidv7 = (r) => e.check(/* @__PURE__ */ Gr(Ne, r)), e.nanoid = (r) => e.check(/* @__PURE__ */ Yr(An, r)), e.guid = (r) => e.check(/* @__PURE__ */ sn(St, r)), e.cuid = (r) => e.check(/* @__PURE__ */ Hr(Zn, r)), e.cuid2 = (r) => e.check(/* @__PURE__ */ Qr(Cn, r)), e.ulid = (r) => e.check(/* @__PURE__ */ ei(Mn, r)), e.base64 = (r) => e.check(/* @__PURE__ */ li(qn, r)), e.base64url = (r) => e.check(/* @__PURE__ */ ui(Kn, r)), e.xid = (r) => e.check(/* @__PURE__ */ ti(Fn, r)), e.ksuid = (r) => e.check(/* @__PURE__ */ ni(Ln, r)), e.ipv4 = (r) => e.check(/* @__PURE__ */ ri(Rn, r)), e.ipv6 = (r) => e.check(/* @__PURE__ */ ii(Jn, r)), e.cidrv4 = (r) => e.check(/* @__PURE__ */ oi(Bn, r)), e.cidrv6 = (r) => e.check(/* @__PURE__ */ ai(Vn, r)), e.e164 = (r) => e.check(/* @__PURE__ */ ci(Wn, r)), e.datetime = (r) => e.check(Cs(r)), e.date = (r) => e.check(Ms(r)), e.time = (r) => e.check(Fs(r)), e.duration = (r) => e.check(Ls(r)); }); function kt(e) { return /* @__PURE__ */ fc(Lt, e); } const oe = /* @__PURE__ */ v("ZodStringFormat", (e, n) => { ie.init(e, n), Tn.init(e, n); }), Nn = /* @__PURE__ */ v("ZodEmail", (e, n) => { Gl.init(e, n), oe.init(e, n); }); function nd(e) { return /* @__PURE__ */ Vr(Nn, e); } const St = /* @__PURE__ */ v("ZodGUID", (e, n) => { Kl.init(e, n), oe.init(e, n); }); function rd(e) { return /* @__PURE__ */ sn(St, e); } const Ne = /* @__PURE__ */ v("ZodUUID", (e, n) => { Wl.init(e, n), oe.init(e, n); }); function id(e) { return /* @__PURE__ */ qr(Ne, e); } function od(e) { return /* @__PURE__ */ Kr(Ne, e); } function ad(e) { return /* @__PURE__ */ Wr(Ne, e); } function ld(e) { return /* @__PURE__ */ Gr(Ne, e); } const Rt = /* @__PURE__ */ v("ZodURL", (e, n) => { Xl.init(e, n), oe.init(e, n); }); function ud(e) { return /* @__PURE__ */ _n(Rt, e); } function cd(e) { return /* @__PURE__ */ _n(Rt, { protocol: Ur, hostname: sl, ...$(e) }); } const Pn = /* @__PURE__ */ v("ZodEmoji", (e, n) => { Yl.init(e, n), oe.init(e, n); }); function sd(e) { return /* @__PURE__ */ Xr(Pn, e); } const An = /* @__PURE__ */ v("ZodNanoID", (e, n) => { Hl.init(e, n), oe.init(e, n); }); function dd(e) { return /* @__PURE__ */ Yr(An, e); } const Zn = /* @__PURE__ */ v("ZodCUID", (e, n) => { Ql.init(e, n), oe.init(e, n); }); function md(e) { return /* @__PURE__ */ Hr(Zn, e); } const Cn = /* @__PURE__ */ v("ZodCUID2", (e, n) => { eu.init(e, n), oe.init(e, n); }); function fd(e) { return /* @__PURE__ */ Qr(Cn, e); } const Mn = /* @__PURE__ */ v("ZodULID", (e, n) => { tu.init(e, n), oe.init(e, n); }); function vd(e) { return /* @__PURE__ */ ei(Mn, e); } const Fn = /* @__PURE__ */ v("ZodXID", (e, n) => { nu.init(e, n), oe.init(e, n); }); function pd(e) { return /* @__PURE__ */ ti(Fn, e); } const Ln = /* @__PURE__ */ v("ZodKSUID", (e, n) => { ru.init(e, n), oe.init(e, n); }); function gd(e) { return /* @__PURE__ */ ni(Ln, e); } const Rn = /* @__PURE__ */ v("ZodIPv4", (e, n) => { uu.init(e, n), oe.init(e, n); }); function hd(e) { return /* @__PURE__ */ ri(Rn, e); } const ki = /* @__PURE__ */ v("ZodMAC", (e, n) => { su.init(e, n), oe.init(e, n); }); function $d(e) { return /* @__PURE__ */ pc(ki, e); } const Jn = /* @__PURE__ */ v("ZodIPv6", (e, n) => { cu.init(e, n), oe.init(e, n); }); function bd(e) { return /* @__PURE__ */ ii(Jn, e); } const Bn = /* @__PURE__ */ v("ZodCIDRv4", (e, n) => { du.init(e, n), oe.init(e, n); }); function _d(e) { return /* @__PURE__ */ oi(Bn, e); } const Vn = /* @__PURE__ */ v("ZodCIDRv6", (e, n) => { mu.init(e, n), oe.init(e, n); }); function yd(e) { return /* @__PURE__ */ ai(Vn, e); } const qn = /* @__PURE__ */ v("ZodBase64", (e, n) => { fu.init(e, n), oe.init(e, n); }); function kd(e) { return /* @__PURE__ */ li(qn, e); } const Kn = /* @__PURE__ */ v("ZodBase64URL", (e, n) => { pu.init(e, n), oe.init(e, n); }); function Sd(e) { return /* @__PURE__ */ ui(Kn, e); } const Wn = /* @__PURE__ */ v("ZodE164", (e, n) => { gu.init(e, n), oe.init(e, n); }); function Id(e) { return /* @__PURE__ */ ci(Wn, e); } const Gn = /* @__PURE__ */ v("ZodJWT", (e, n) => { $u.init(e, n), oe.init(e, n); }); function wd(e) { return /* @__PURE__ */ si(Gn, e); } const gt = /* @__PURE__ */ v("ZodCustomStringFormat", (e, n) => { bu.init(e, n), oe.init(e, n); }); function zd(e, n, r = {}) { return /* @__PURE__ */ Mt(gt, e, n, r); } function xd(e) { return /* @__PURE__ */ Mt(gt, "hostname", cl, e); } function Dd(e) { return /* @__PURE__ */ Mt(gt, "hex", wl, e); } function jd(e, n) { const r = (n == null ? void 0 : n.enc) ?? "hex", o = `${e}_${r}`, t = Tr[o]; if (!t) throw new Error(`Unrecognized hash format: ${o}`); return /* @__PURE__ */ Mt(gt, o, t, n); } const Jt = /* @__PURE__ */ v("ZodNumber", (e, n) => { Zr.init(e, n), V.init(e, n), e._zod.processJSONSchema = (o, t, i) => ts(e, o, t), Ft(e, "ZodNumber", { gt(o, t) { return this.check(/* @__PURE__ */ Be(o, t)); }, gte(o, t) { return this.check(/* @__PURE__ */ ke(o, t)); }, min(o, t) { return this.check(/* @__PURE__ */ ke(o, t)); }, lt(o, t) { return this.check(/* @__PURE__ */ Je(o, t)); }, lte(o, t) { return this.check(/* @__PURE__ */ Oe(o, t)); }, max(o, t) { return this.check(/* @__PURE__ */ Oe(o, t)); }, int(o) { return this.check(dn(o)); }, safe(o) { return this.check(dn(o)); }, positive(o) { return this.check(/* @__PURE__ */ Be(0, o)); }, nonnegative(o) { return this.check(/* @__PURE__ */ ke(0, o)); }, negative(o) { return this.check(/* @__PURE__ */ Je(0, o)); }, nonpositive(o) { return this.check(/* @__PURE__ */ Oe(0, o)); }, multipleOf(o, t) { return this.check(/* @__PURE__ */ ct(o, t)); }, step(o, t) { return this.check(/* @__PURE__ */ ct(o, t)); }, finite() { return this; } }); 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 Si(e) { return /* @__PURE__ */ yc(Jt, e); } const nt = /* @__PURE__ */ v("ZodNumberFormat", (e, n) => { _u.init(e, n), Jt.init(e, n); }); function dn(e) { return /* @__PURE__ */ Sc(nt, e); } function Od(e) { return /* @__PURE__ */ Ic(nt, e); } function Ud(e) { return /* @__PURE__ */ wc(nt, e); } function Ed(e) { return /* @__PURE__ */ zc(nt, e); } function Td(e) { return /* @__PURE__ */ xc(nt, e); } const Bt = /* @__PURE__ */ v("ZodBoolean", (e, n) => { Cr.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => ns(e, r, o); }); function Ii(e) { return /* @__PURE__ */ Dc(Bt, e); } const Vt = /* @__PURE__ */ v("ZodBigInt", (e, n) => { Mr.init(e, n), V.init(e, n), e._zod.processJSONSchema = (o, t, i) => rs(e, o), e.gte = (o, t) => e.check(/* @__PURE__ */ ke(o, t)), e.min = (o, t) => e.check(/* @__PURE__ */ ke(o, t)), e.gt = (o, t) => e.check(/* @__PURE__ */ Be(o, t)), e.gte = (o, t) => e.check(/* @__PURE__ */ ke(o, t)), e.min = (o, t) => e.check(/* @__PURE__ */ ke(o, t)), e.lt = (o, t) => e.check(/* @__PURE__ */ Je(o, t)), e.lte = (o, t) => e.check(/* @__PURE__ */ Oe(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Oe(o, t)), e.positive = (o) => e.check(/* @__PURE__ */ Be(BigInt(0), o)), e.negative = (o) => e.check(/* @__PURE__ */ Je(BigInt(0), o)), e.nonpositive = (o) => e.check(/* @__PURE__ */ Oe(BigInt(0), o)), e.nonnegative = (o) => e.check(/* @__PURE__ */ ke(BigInt(0), o)), e.multipleOf = (o, t) => e.check(/* @__PURE__ */ ct(o, t)); const r = e._zod.bag; e.minValue = r.minimum ?? null, e.maxValue = r.maximum ?? null, e.format = r.format ?? null; }); function Nd(e) { return /* @__PURE__ */ Oc(Vt, e); } const Xn = /* @__PURE__ */ v("ZodBigIntFormat", (e, n) => { yu.init(e, n), Vt.init(e, n); }); function Pd(e) { return /* @__PURE__ */ Ec(Xn, e); } function Ad(e) { return /* @__PURE__ */ Tc(Xn, e); } const wi = /* @__PURE__ */ v("ZodSymbol", (e, n) => { ku.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => is(e, r); }); function Zd(e) { return /* @__PURE__ */ Nc(wi, e); } const zi = /* @__PURE__ */ v("ZodUndefined", (e, n) => { Su.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => as(e, r); }); function Cd(e) { return /* @__PURE__ */ Pc(zi, e); } const xi = /* @__PURE__ */ v("ZodNull", (e, n) => { Iu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => os(e, r, o); }); function Di(e) { return /* @__PURE__ */ Ac(xi, e); } const ji = /* @__PURE__ */ v("ZodAny", (e, n) => { wu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => cs(); }); function Md() { return /* @__PURE__ */ Zc(ji); } const Oi = /* @__PURE__ */ v("ZodUnknown", (e, n) => { zu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => ss(); }); function et() { return /* @__PURE__ */ Cc(Oi); } const Ui = /* @__PURE__ */ v("ZodNever", (e, n) => { xu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => us(e, r, o); }); function Yn(e) { return /* @__PURE__ */ Mc(Ui, e); } const Ei = /* @__PURE__ */ v("ZodVoid", (e, n) => { Du.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => ls(e, r); }); function Fd(e) { return /* @__PURE__ */ Fc(Ei, e); } const Hn = /* @__PURE__ */ v("ZodDate", (e, n) => { ju.init(e, n), V.init(e, n), e._zod.processJSONSchema = (o, t, i) => ds(e, o), e.min = (o, t) => e.check(/* @__PURE__ */ ke(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Oe(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 Ld(e) { return /* @__PURE__ */ Lc(Hn, e); } const Ti = /* @__PURE__ */ v("ZodArray", (e, n) => { Ou.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ss(e, r, o, t), e.element = n.element, Ft(e, "ZodArray", { min(r, o) { return this.check(/* @__PURE__ */ Qe(r, o)); }, nonempty(r) { return this.check(/* @__PURE__ */ Qe(1, r)); }, max(r, o) { return this.check(/* @__PURE__ */ Zt(r, o)); }, length(r, o) { return this.check(/* @__PURE__ */ Ct(r, o)); }, unwrap() { return this.element; } }); }); function qt(e, n) { return /* @__PURE__ */ Bc(Ti, e, n); } function Rd(e) { const n = e._zod.def.shape; return er(Object.keys(n)); } const Kt = /* @__PURE__ */ v("ZodObject", (e, n) => { Nu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => Is(e, r, o, t), K(e, "shape", () => n.shape), Ft(e, "ZodObject", { keyof() { return er(Object.keys(this._zod.def.shape)); }, catchall(r) { return this.clone({ ...this._zod.def, catchall: r }); }, passthrough() { return this.clone({ ...this._zod.def, catchall: et() }); }, loose() { return this.clone({ ...this._zod.def, catchall: et() }); }, strict() { return this.clone({ ...this._zod.def, catchall: Yn() }); }, strip() { return this.clone({ ...this._zod.def, catchall: void 0 }); }, extend(r) { return Ua(this, r); }, safeExtend(r) { return Ea(this, r); }, merge(r) { return Ta(this, r); }, pick(r) { return ja(this, r); }, omit(r) { return Oa(this, r); }, partial(...r) { return Na(nr, this, r[0]); }, required(...r) { return Pa(rr, this, r[0]); } }); }); function Jd(e, n) { const r = { type: "object", shape: e ?? {}, ...$(n) }; return new Kt(r); } function Bd(e, n) { return new Kt({ type: "object", shape: e, catchall: Yn(), ...$(n) }); } function Vd(e, n) { return new Kt({ type: "object", shape: e, catchall: et(), ...$(n) }); } const Wt = /* @__PURE__ */ v("ZodUnion", (e, n) => { bn.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => gi(e, r, o, t), e.options = n.options; }); function Qn(e, n) { return new Wt({ type: "union", options: e, ...$(n) }); } const Ni = /* @__PURE__ */ v("ZodXor", (e, n) => { Wt.init(e, n), Pu.init(e, n), e._zod.processJSONSchema = (r, o, t) => gi(e, r, o, t), e.options = n.options; }); function qd(e, n) { return new Ni({ type: "union", options: e, inclusive: !1, ...$(n) }); } const Pi = /* @__PURE__ */ v("ZodDiscriminatedUnion", (e, n) => { Wt.init(e, n), Au.init(e, n); }); function Kd(e, n, r) { return new Pi({ type: "union", options: n, discriminator: e, ...$(r) }); } const Ai = /* @__PURE__ */ v("ZodIntersection", (e, n) => { Zu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => ws(e, r, o, t); }); function Zi(e, n) { return new Ai({ type: "intersection", left: e, right: n }); } const Ci = /* @__PURE__ */ v("ZodTuple", (e, n) => { Fr.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => zs(e, r, o, t), e.rest = (r) => e.clone({ ...e._zod.def, rest: r }); }); function Mi(e, n, r) { const o = n instanceof B, t = o ? r : n, i = o ? n : null; return new Ci({ type: "tuple", items: e, rest: i, ...$(t) }); } const ft = /* @__PURE__ */ v("ZodRecord", (e, n) => { Cu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => xs(e, r, o, t), e.keyType = n.keyType, e.valueType = n.valueType; }); function Fi(e, n, r) { return !n || !n._zod ? new ft({ type: "record", keyType: kt(), valueType: e, ...$(n) }) : new ft({ type: "record", keyType: e, valueType: n, ...$(r) }); } function Wd(e, n, r) { const o = Ue(e); return o._zod.values = void 0, new ft({ type: "record", keyType: o, valueType: n, ...$(r) }); } function Gd(e, n, r) { return new ft({ type: "record", keyType: e, valueType: n, mode: "loose", ...$(r) }); } const Li = /* @__PURE__ */ v("ZodMap", (e, n) => { Mu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => ys(e, r), e.keyType = n.keyType, e.valueType = n.valueType, e.min = (...r) => e.check(/* @__PURE__ */ Ve(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ Ve(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ pt(...r)), e.size = (...r) => e.check(/* @__PURE__ */ At(...r)); }); function Xd(e, n, r) { return new Li({ type: "map", keyType: e, valueType: n, ...$(r) }); } const Ri = /* @__PURE__ */ v("ZodSet", (e, n) => { Fu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => ks(e, r), e.min = (...r) => e.check(/* @__PURE__ */ Ve(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ Ve(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ pt(...r)), e.size = (...r) => e.check(/* @__PURE__ */ At(...r)); }); function Yd(e, n) { return new Ri({ type: "set", valueType: e, ...$(n) }); } const vt = /* @__PURE__ */ v("ZodEnum", (e, n) => { Lu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (o, t, i) => ms(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 vt({ ...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 vt({ ...n, checks: [], ...$(t), entries: i }); }; }); function er(e, n) { const r = Array.isArray(e) ? Object.fromEntries(e.map((o) => [o, o])) : e; return new vt({ type: "enum", entries: r, ...$(n) }); } function Hd(e, n) { return new vt({ type: "enum", entries: e, ...$(n) }); } const Ji = /* @__PURE__ */ v("ZodLiteral", (e, n) => { Ru.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => fs(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 Qd(e, n) { return new Ji({ type: "literal", values: Array.isArray(e) ? e : [e], ...$(n) }); } const Bi = /* @__PURE__ */ v("ZodFile", (e, n) => { Ju.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => gs(e, r, o), e.min = (r, o) => e.check(/* @__PURE__ */ Ve(r, o)), e.max = (r, o) => e.check(/* @__PURE__ */ pt(r, o)), e.mime = (r, o) => e.check(/* @__PURE__ */ xn(Array.isArray(r) ? r : [r], o)); }); function em(e) { return /* @__PURE__ */ Vc(Bi, e); } const Vi = /* @__PURE__ */ v("ZodTransform", (e, n) => { Bu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => _s(e, r), e._zod.parse = (r, o) => { if (o.direction === "backward") throw new vn(e.constructor.name); r.addIssue = (i) => { if (typeof i == "string") r.issues.push(lt(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(lt(a)); } }; const t = n.transform(r.value, r); return t instanceof Promise ? t.then((i) => (r.value = i, r.fallback = !0, r)) : (r.value = t, r.fallback = !0, r); }; }); function tr(e) { return new Vi({ type: "transform", transform: e }); } const nr = /* @__PURE__ */ v("ZodOptional", (e, n) => { Lr.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => hi(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function It(e) { return new nr({ type: "optional", innerType: e }); } const qi = /* @__PURE__ */ v("ZodExactOptional", (e, n) => { Vu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => hi(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function Ki(e) { return new qi({ type: "optional", innerType: e }); } const Wi = /* @__PURE__ */ v("ZodNullable", (e, n) => { qu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ds(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function wt(e) { return new Wi({ type: "nullable", innerType: e }); } function tm(e) { return It(wt(e)); } const Gi = /* @__PURE__ */ v("ZodDefault", (e, n) => { Ku.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => Os(e, r, o, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap; }); function Xi(e, n) { return new Gi({ type: "default", innerType: e, get defaultValue() { return typeof n == "function" ? n() : gn(n); } }); } const Yi = /* @__PURE__ */ v("ZodPrefault", (e, n) => { Wu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => Us(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function Hi(e, n) { return new Yi({ type: "prefault", innerType: e, get defaultValue() { return typeof n == "function" ? n() : gn(n); } }); } const rr = /* @__PURE__ */ v("ZodNonOptional", (e, n) => { Gu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => js(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function Qi(e, n) { return new rr({ type: "nonoptional", innerType: e, ...$(n) }); } const eo = /* @__PURE__ */ v("ZodSuccess", (e, n) => { Xu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => hs(e, r, o), e.unwrap = () => e._zod.def.innerType; }); function nm(e) { return new eo({ type: "success", innerType: e }); } const to = /* @__PURE__ */ v("ZodCatch", (e, n) => { Yu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => Es(e, r, o, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap; }); function no(e, n) { return new to({ type: "catch", innerType: e, catchValue: typeof n == "function" ? n : () => n }); } const ro = /* @__PURE__ */ v("ZodNaN", (e, n) => { Hu.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => vs(e, r); }); function rm(e) { return /* @__PURE__ */ Jc(ro, e); } const Gt = /* @__PURE__ */ v("ZodPipe", (e, n) => { Rr.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ts(e, r, o, t), e.in = n.in, e.out = n.out; }); function mn(e, n) { return new Gt({ type: "pipe", in: e, out: n // ...util.normalizeParams(params), }); } const Xt = /* @__PURE__ */ v("ZodCodec", (e, n) => { Gt.init(e, n), Jr.init(e, n); }); function im(e, n, r) { return new Xt({ type: "pipe", in: e, out: n, transform: r.decode, reverseTransform: r.encode }); } function om(e) { const n = e._zod.def; return new Xt({ type: "pipe", in: n.out, out: n.in, transform: n.reverseTransform, reverseTransform: n.transform }); } const io = /* @__PURE__ */ v("ZodPreprocess", (e, n) => { Gt.init(e, n), Qu.init(e, n); }), oo = /* @__PURE__ */ v("ZodReadonly", (e, n) => { ec.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ns(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function ao(e) { return new oo({ type: "readonly", innerType: e }); } const lo = /* @__PURE__ */ v("ZodTemplateLiteral", (e, n) => { tc.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => ps(e, r, o); }); function am(e, n) { return new lo({ type: "template_literal", parts: e, ...$(n) }); } const uo = /* @__PURE__ */ v("ZodLazy", (e, n) => { ic.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => As(e, r, o, t), e.unwrap = () => e._zod.def.getter(); }); function co(e) { return new uo({ type: "lazy", getter: e }); } const so = /* @__PURE__ */ v("ZodPromise", (e, n) => { rc.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ps(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function lm(e) { return new so({ type: "promise", innerType: e }); } const mo = /* @__PURE__ */ v("ZodFunction", (e, n) => { nc.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => bs(e, r); }); function fn(e) { return new mo({ type: "function", input: Array.isArray(e == null ? void 0 : e.input) ? Mi(e == null ? void 0 : e.input) : (e == null ? void 0 : e.input) ?? qt(et()), output: (e == null ? void 0 : e.output) ?? et() }); } const Yt = /* @__PURE__ */ v("ZodCustom", (e, n) => { oc.init(e, n), V.init(e, n), e._zod.processJSONSchema = (r, o, t) => $s(e, r); }); function um(e) { const n = new le({ check: "custom" // ...util.normalizeParams(params), }); return n._zod.check = e, n; } function cm(e, n) { return /* @__PURE__ */ qc(Yt, e ?? (() => !0), n); } function fo(e, n = {}) { return /* @__PURE__ */ Kc(Yt, e, n); } function vo(e, n) { return /* @__PURE__ */ Wc(e, n); } const sm = Xc, dm = Yc; function mm(e, n = {}) { const r = new Yt({ 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 fm = (...e) => /* @__PURE__ */ Hc({ Codec: Xt, Boolean: Bt, String: Lt }, ...e); function vm(e) { const n = co(() => Qn([kt(e), Si(), Ii(), Di(), qt(n), Fi(kt(), n)])); return n; } function pm(e, n) { return new io({ type: "pipe", in: tr(e), out: n }); } const J_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ZodAny: ji, ZodArray: Ti, ZodBase64: qn, ZodBase64URL: Kn, ZodBigInt: Vt, ZodBigIntFormat: Xn, ZodBoolean: Bt, ZodCIDRv4: Bn, ZodCIDRv6: Vn, ZodCUID: Zn, ZodCUID2: Cn, ZodCatch: to, ZodCodec: Xt, ZodCustom: Yt, ZodCustomStringFormat: gt, ZodDate: Hn, ZodDefault: Gi, ZodDiscriminatedUnion: Pi, ZodE164: Wn, ZodEmail: Nn, ZodEmoji: Pn, ZodEnum: vt, ZodExactOptional: qi, ZodFile: Bi, ZodFunction: mo, ZodGUID: St, ZodIPv4: Rn, ZodIPv6: Jn, ZodIntersection: Ai, ZodJWT: Gn, ZodKSUID: Ln, ZodLazy: uo, ZodLiteral: Ji, ZodMAC: ki, ZodMap: Li, ZodNaN: ro, ZodNanoID: An, ZodNever: Ui, ZodNonOptional: rr, ZodNull: xi, ZodNullable: Wi, ZodNumber: Jt, ZodNumberFormat: nt, ZodObject: Kt, ZodOptional: nr, ZodPipe: Gt, ZodPrefault: Yi, ZodPreprocess: io, ZodPromise: so, ZodReadonly: oo, ZodRecord: ft, ZodSet: Ri, ZodString: Lt, ZodStringFormat: oe, ZodSuccess: eo, ZodSymbol: wi, ZodTemplateLiteral: lo, ZodTransform: Vi, ZodTuple: Ci, ZodType: V, ZodULID: Mn, ZodURL: Rt, ZodUUID: Ne, ZodUndefined: zi, ZodUnion: Wt, ZodUnknown: Oi, ZodVoid: Ei, ZodXID: Fn, ZodXor: Ni, _ZodString: Tn, _default: Xi, _function: fn, any: Md, array: qt, base64: kd, base64url: Sd, bigint: Nd, boolean: Ii, catch: no, check: um, cidrv4: _d, cidrv6: yd, codec: im, cuid: md, cuid2: fd, custom: cm, date: Ld, describe: sm, discriminatedUnion: Kd, e164: Id, email: nd, emoji: sd, enum: er, exactOptional: Ki, file: em, float32: Od, float64: Ud, function: fn, guid: rd, hash: jd, hex: Dd, hostname: xd, httpUrl: cd, instanceof: mm, int: dn, int32: Ed, int64: Pd, intersection: Zi, invertCodec: om, ipv4: hd, ipv6: bd, json: vm, jwt: wd, keyof: Rd, ksuid: gd, lazy: co, literal: Qd, looseObject: Vd, looseRecord: Gd, mac: $d, map: Xd, meta: dm, nan: rm, nanoid: dd, nativeEnum: Hd, never: Yn, nonoptional: Qi, null: Di, nullable: wt, nullish: tm, number: Si, object: Jd, optional: It, partialRecord: Wd, pipe: mn, prefault: Hi, preprocess: pm, promise: lm, readonly: ao, record: Fi, refine: fo, set: Yd, strictObject: Bd, string: kt, stringFormat: zd, stringbool: fm, success: nm, superRefine: vo, symbol: Zd, templateLiteral: am, transform: tr, tuple: Mi, uint32: Td, uint64: Ad, ulid: vd, undefined: Cd, union: Qn, unknown: et, url: ud, uuid: id, uuidv4: od, uuidv6: ad, uuidv7: ld, void: Fd, xid: pd, xor: qd }, Symbol.toStringTag, { value: "Module" })), B_ = { 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 V_(e) { ve({ customError: e }); } function q_() { return ve().customError; } var mr; mr || (mr = {}); const O = { ...J_, ...L_, iso: Rs }, K_ = /* @__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 W_(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 G_(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 gm(e, n) { if (e.not !== void 0) { if (typeof e.not == "object" && Object.keys(e.not).length === 0) return O.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 O.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 = G_(t, n), a = he(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 O.null(); if (t.length === 0) return O.never(); if (t.length === 1) return O.literal(t[0]); if (t.every((a) => typeof a == "string")) return O.enum(t); const i = t.map((a) => O.literal(a)); return i.length < 2 ? i[0] : O.union([i[0], i[1], ...i.slice(2)]); } if (e.const !== void 0) return O.literal(e.const); const r = e.type; if (Array.isArray(r)) { const t = r.map((i) => { const a = { ...e, type: i }; return gm(a, n); }); return t.length === 0 ? O.never() : t.length === 1 ? t[0] : O.union(t); } if (!r) return O.any(); let o; switch (r) { case "string": { let t = O.string(); if (e.format) { const i = e.format; i === "email" ? t = t.check(O.email()) : i === "uri" || i === "uri-reference" ? t = t.check(O.url()) : i === "uuid" || i === "guid" ? t = t.check(O.uuid()) : i === "date-time" ? t = t.check(O.iso.datetime()) : i === "date" ? t = t.check(O.iso.date()) : i === "time" ? t = t.check(O.iso.time()) : i === "duration" ? t = t.check(O.iso.duration()) : i === "ipv4" ? t = t.check(O.ipv4()) : i === "ipv6" ? t = t.check(O.ipv6()) : i === "mac" ? t = t.check(O.mac()) : i === "cidr" ? t = t.check(O.cidrv4()) : i === "cidr-v6" ? t = t.check(O.cidrv6()) : i === "base64" ? t = t.check(O.base64()) : i === "base64url" ? t = t.check(O.base64url()) : i === "e164" ? t = t.check(O.e164()) : i === "jwt" ? t = t.check(O.jwt()) : i === "emoji" ? t = t.check(O.emoji()) : i === "nanoid" ? t = t.check(O.nanoid()) : i === "cuid" ? t = t.check(O.cuid()) : i === "cuid2" ? t = t.check(O.cuid2()) : i === "ulid" ? t = t.check(O.ulid()) : i === "xid" ? t = t.check(O.xid()) : i === "ksuid" && (t = t.check(O.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" ? O.number().int() : O.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 = O.boolean(); break; } case "null": { o = O.null(); break; } case "object": { const t = {}, i = e.properties || {}, a = new Set(e.required || []); for (const [c, u] of Object.entries(i)) { const d = he(u, n); t[c] = a.has(c) ? d : d.optional(); } if (e.propertyNames) { const c = he(e.propertyNames, n), u = e.additionalProperties && typeof e.additionalProperties == "object" ? he(e.additionalProperties, n) : O.any(); if (Object.keys(t).length === 0) { o = O.record(c, u); break; } const d = O.object(t).passthrough(), s = O.looseRecord(c, u); o = O.intersection(d, s); break; } if (e.patternProperties) { const c = e.patternProperties, u = Object.keys(c), d = []; for (const m of u) { const f = he(c[m], n), p = O.string().regex(new RegExp(m)); d.push(O.looseRecord(p, f)); } const s = []; if (Object.keys(t).length > 0 && s.push(O.object(t).passthrough()), s.push(...d), s.length === 0) o = O.object({}).passthrough(); else if (s.length === 1) o = s[0]; else { let m = O.intersection(s[0], s[1]); for (let f = 2; f < s.length; f++) m = O.intersection(m, s[f]); o = m; } break; } const l = O.object(t); e.additionalProperties === !1 ? o = l.strict() : typeof e.additionalProperties == "object" ? o = l.catchall(he(e.additionalProperties, n)) : o = l.passthrough(); break; } case "array": { const t = e.prefixItems, i = e.items; if (t && Array.isArray(t)) { const a = t.map((c) => he(c, n)), l = i && typeof i == "object" && !Array.isArray(i) ? he(i, n) : void 0; l ? o = O.tuple(a).rest(l) : o = O.tuple(a), typeof e.minItems == "number" && (o = o.check(O.minLength(e.minItems))), typeof e.maxItems == "number" && (o = o.check(O.maxLength(e.maxItems))); } else if (Array.isArray(i)) { const a = i.map((c) => he(c, n)), l = e.additionalItems && typeof e.additionalItems == "object" ? he(e.additionalItems, n) : void 0; l ? o = O.tuple(a).rest(l) : o = O.tuple(a), typeof e.minItems == "number" && (o = o.check(O.minLength(e.minItems))), typeof e.maxItems == "number" && (o = o.check(O.maxLength(e.maxItems))); } else if (i !== void 0) { const a = he(i, n); let l = O.array(a); typeof e.minItems == "number" && (l = l.min(e.minItems)), typeof e.maxItems == "number" && (l = l.max(e.maxItems)), o = l; } else o = O.array(O.any()); break; } default: throw new Error(`Unsupported type: ${r}`); } return o; } function he(e, n) { if (typeof e == "boolean") return e ? O.any() : O.never(); let r = gm(e, n); const o = e.type || e.enum !== void 0 || e.const !== void 0; if (e.anyOf && Array.isArray(e.anyOf)) { const l = e.anyOf.map((u) => he(u, n)), c = O.union(l); r = o ? O.intersection(r, c) : c; } if (e.oneOf && Array.isArray(e.oneOf)) { const l = e.oneOf.map((u) => he(u, n)), c = O.xor(l); r = o ? O.intersection(r, c) : c; } if (e.allOf && Array.isArray(e.allOf)) if (e.allOf.length === 0) r = o ? r : O.any(); else { let l = o ? r : he(e.allOf[0], n); const c = o ? 0 : 1; for (let u = c; u < e.allOf.length; u++) l = O.intersection(l, he(e.allOf[u], n)); r = l; } e.nullable === !0 && n.version === "openapi-3.0" && (r = O.nullable(r)), e.readOnly === !0 && (r = O.readonly(r)), e.default !== void 0 && (r = r.default(e.default)); const t = {}, i = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"]; for (const l of i) l in e && (t[l] = e[l]); const a = ["contentEncoding", "contentMediaType", "contentSchema"]; for (const l of a) l in e && (t[l] = e[l]); for (const l of Object.keys(e)) K_.has(l) || (t[l] = e[l]); return Object.keys(t).length > 0 && n.registry.add(r, t), e.description && (r = r.describe(e.description)), r; } function X_(e, n) { if (typeof e == "boolean") return e ? O.any() : O.never(); let r; try { r = JSON.parse(JSON.stringify(e)); } catch { throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas"); } const o = W_(r, n == null ? void 0 : n.defaultTarget), t = r.$defs || r.definitions || {}, i = { version: o, defs: t, refs: /* @__PURE__ */ new Map(), processing: /* @__PURE__ */ new Set(), rootSchema: r, registry: (n == null ? void 0 : n.registry) ?? je }; return he(r, i); } function Y_(e) { return /* @__PURE__ */ vc(Lt, e); } function H_(e) { return /* @__PURE__ */ kc(Jt, e); } function Q_(e) { return /* @__PURE__ */ jc(Bt, e); } function ey(e) { return /* @__PURE__ */ Uc(Vt, e); } function ty(e) { return /* @__PURE__ */ Rc(Hn, e); } const ny = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, bigint: ey, boolean: Q_, date: ty, number: H_, string: Y_ }, Symbol.toStringTag, { value: "Module" })); ve(ac()); const be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, $brand: ya, $input: dc, $output: sc, NEVER: _a, TimePrecision: gc, ZodAny: ji, ZodArray: Ti, ZodBase64: qn, ZodBase64URL: Kn, ZodBigInt: Vt, ZodBigIntFormat: Xn, ZodBoolean: Bt, ZodCIDRv4: Bn, ZodCIDRv6: Vn, ZodCUID: Zn, ZodCUID2: Cn, ZodCatch: to, ZodCodec: Xt, ZodCustom: Yt, ZodCustomStringFormat: gt, ZodDate: Hn, ZodDefault: Gi, ZodDiscriminatedUnion: Pi, ZodE164: Wn, ZodEmail: Nn, ZodEmoji: Pn, ZodEnum: vt, ZodError: R_, ZodExactOptional: qi, ZodFile: Bi, get ZodFirstPartyTypeKind() { return mr; }, ZodFunction: mo, ZodGUID: St, ZodIPv4: Rn, ZodIPv6: Jn, ZodISODate: bi, ZodISODateTime: $i, ZodISODuration: yi, ZodISOTime: _i, ZodIntersection: Ai, ZodIssueCode: B_, ZodJWT: Gn, ZodKSUID: Ln, ZodLazy: uo, ZodLiteral: Ji, ZodMAC: ki, ZodMap: Li, ZodNaN: ro, ZodNanoID: An, ZodNever: Ui, ZodNonOptional: rr, ZodNull: xi, ZodNullable: Wi, ZodNumber: Jt, ZodNumberFormat: nt, ZodObject: Kt, ZodOptional: nr, ZodPipe: Gt, ZodPrefault: Yi, ZodPreprocess: io, ZodPromise: so, ZodReadonly: oo, ZodRealError: xe, ZodRecord: ft, ZodSet: Ri, ZodString: Lt, ZodStringFormat: oe, ZodSuccess: eo, ZodSymbol: wi, ZodTemplateLiteral: lo, ZodTransform: Vi, ZodTuple: Ci, ZodType: V, ZodULID: Mn, ZodURL: Rt, ZodUUID: Ne, ZodUndefined: zi, ZodUnion: Wt, ZodUnknown: Oi, ZodVoid: Ei, ZodXID: Fn, ZodXor: Ni, _ZodString: Tn, _default: Xi, _function: fn, any: Md, array: qt, base64: kd, base64url: Sd, bigint: Nd, boolean: Ii, catch: no, check: um, cidrv4: _d, cidrv6: yd, clone: Ue, codec: im, coerce: ny, config: ve, core: F_, cuid: md, cuid2: fd, custom: cm, date: Ld, decode: Gs, decodeAsync: Ys, describe: sm, discriminatedUnion: Kd, e164: Id, email: nd, emoji: sd, encode: Ws, encodeAsync: Xs, endsWith: zn, enum: er, exactOptional: Ki, file: em, flattenError: _r, float32: Od, float64: Ud, formatError: yr, fromJSONSchema: X_, function: fn, getErrorMap: q_, globalRegistry: je, gt: Be, gte: ke, guid: rd, hash: jd, hex: Dd, hostname: xd, httpUrl: cd, includes: In, instanceof: mm, int: dn, int32: Ed, int64: Pd, intersection: Zi, invertCodec: om, ipv4: hd, ipv6: bd, iso: Rs, json: vm, jwt: wd, keyof: Rd, ksuid: gd, lazy: co, length: Ct, literal: Qd, locales: cc, looseObject: Vd, looseRecord: Gd, lowercase: kn, lt: Je, lte: Oe, mac: $d, map: Xd, maxLength: Zt, maxSize: pt, meta: dm, mime: xn, minLength: Qe, minSize: Ve, multipleOf: ct, nan: rm, nanoid: dd, nativeEnum: Hd, negative: mi, never: Yn, nonnegative: vi, nonoptional: Qi, nonpositive: fi, normalize: Dn, null: Di, nullable: wt, nullish: tm, number: Si, object: Jd, optional: It, overwrite: Fe, parse: Bs, parseAsync: Vs, partialRecord: Wd, pipe: mn, positive: di, prefault: Hi, preprocess: pm, prettifyError: Ja, promise: lm, property: pi, readonly: ao, record: Fi, refine: fo, regex: yn, regexes: Tr, registry: Br, safeDecode: Qs, safeDecodeAsync: td, safeEncode: Hs, safeEncodeAsync: ed, safeParse: qs, safeParseAsync: Ks, set: Yd, setErrorMap: V_, size: At, slugify: En, startsWith: wn, strictObject: Bd, string: kt, stringFormat: zd, stringbool: fm, success: nm, superRefine: vo, symbol: Zd, templateLiteral: am, toJSONSchema: Zs, toLowerCase: On, toUpperCase: Un, transform: tr, treeifyError: La, trim: jn, tuple: Mi, uint32: Td, uint64: Ad, ulid: vd, undefined: Cd, union: Qn, unknown: et, uppercase: Sn, url: ud, util: Ma, uuid: id, uuidv4: od, uuidv6: ad, uuidv7: ld, void: Fd, xid: pd, xor: qd }, Symbol.toStringTag, { value: "Module" })); var ry = {}; globalThis.cacheMemoria_cache = ry; var iy = ((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))(iy || {}), oy = ((e) => (e.token = "token", e))(oy || {}), ay = ((e) => (e.Usuario = "usuario", e.Fornecedor = "fornecedor", e))(ay || {}), ly = ((e) => (e["="] = "=", e["!="] = "!=", e[">"] = ">", e[">="] = ">=", e["<"] = "<", e["<="] = "<=", e.like = "like", e.in = "in", e.isNull = "isNull", e))(ly || {}), uy = be.enum(["=", "!=", ">", ">=", "<", "<=", "like", "in", "isNull"]); be.object({ coluna: be.string(), valor: be.any(), operador: uy, ou: be.boolean().optional() }); var cy = be.enum([">", "<", ">=", "<=", "=", "!=", "in", "like", "∩"]), sy = /^\{[\w:]+\}$/, dy = /^\w+(\.\w+)*$/, my = be.string().regex(dy, "Coluna inválida").describe("nome da coluna ou caminho aninhado do jsonb"), fy = be.object({ id: be.string().describe("id da condição do filtro").regex(sy, "O id deve seguir o formato {identificador}"), coluna: my, operador: cy, valor: be.any().describe("valor de comparação") }), vy = (e) => { let n = (e.match(/\{[\w:]+\}|\bNAO\b|\bE\b|\bOU\b|\(|\)/g) || []).join(""), r = e.replace(/\s+/g, ""), o = n.replace(/\s+/g, ""); if (r !== o) return !1; let t = e.replace(/\{[\w:]+\}/g, "true").replace(/\bNAO\b/g, "!").replace(/\bE\b/g, "&&").replace(/\bOU\b/g, "||"); try { return new Function(`return (${t})`)(), !0; } catch { return !1; } }, py = be.object({ condicoes: be.array(fy), formula: be.string().refine(vy, { message: "Fórmula inválida. Use apenas referências de condições {id} ou {id:sufixo}, operadores E/OU/NAO e parênteses." }) }).superRefine((e, n) => { let r = new Set(e.condicoes.map((t) => t.id)), o = e.formula.match(/\{[\w:]+\}/g) || []; for (let t of o) r.has(t) || n.addIssue({ code: "custom", path: ["formula"], message: `A referência ${t} não existe em condicoes.` }); }), gy = (e) => py.parse(e), Zy = () => ({ criarFiltroDelta: gy }), hy = ((e) => (e["e-licencie"] = "e-licencie", e["gov.e-licencie"] = "gov.e-licencie", e))(hy || {}), $y = ((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))($y || {}), by = ((e) => (e.UN = "UN", e.KG = "KG", e.TON = "TON", e.g = "g", e["M³"] = "M³", e.Lt = "Lt", e))(by || {}), _y = /^\d{2}\.\d{3}\.\d{3}\/\d{4}-\d{2}$/, yy = /^[A-Z0-9]{2}\.[A-Z0-9]{3}\.[A-Z0-9]{3}\/[A-Z0-9]{4}-\d{2}$/i, ky = Number((/* @__PURE__ */ new Date()).toISOString().slice(0, 7).replace("-", "")), Sy = be.string().regex(ky < 202407 ? _y : yy).describe("Documento (CNPJ) no formato XX.XXX.XXX/XXXX-XX"), Iy = be.string().regex(/^\d{3}\.\d{3}\.\d{3}-\d{2}$/).describe("Documento (CPF) no formato XXX.XXX.XXX-XX"); Iy.or(Sy).describe("CPF ou CNPJ"); const Cy = { install(e) { e.component("EliOlaMundo", wh), e.component("EliBotao", oa), e.component("EliBadge", vr), e.component("EliCartao", Rm), e.component("EliTabela", yh), e.component("EliEntradaTexto", pr), e.component("EliEntradaNumero", ca), e.component("EliEntradaDataHora", ua), e.component("EliEntradaParagrafo", sa), e.component("EliEntradaSelecao", da); } }; export { vr as EliBadge, oa as EliBotao, Rm as EliCartao, Vm as EliEntradaConfirmacao, ua as EliEntradaDataHora, ca as EliEntradaNumero, sa as EliEntradaParagrafo, da as EliEntradaSelecao, ff as EliEntradaSelecaoMultipla, pr as EliEntradaTexto, wh as EliOlaMundo, yh as EliTabela, Ay as celulaTabela, Cy as default, Zy as iniciarFiltroDelta };