import { $ZodCheckGreaterThan as a, $ZodCheckLessThan as s, $ZodCheckMultipleOf as f, $ZodCheckMinLength as m, $ZodCheckMaxLength as _, $ZodCheckLengthEquals as h, $ZodCheckOverwrite as g, $ZodCheckRegex as l, $ZodCheckIncludes as k, $ZodCheckStartsWith as w, $ZodCheckEndsWith as p, $ZodCheckLowerCase as d, $ZodCheckUpperCase as b, $ZodCheck as y } from "./checks.js";
import { normalizeParams as e, issue as u } from "./util.js";
function $(t, n) {
  return new t({
    type: "string",
    ...e(n)
  });
}
function x(t, n) {
  return new t({
    type: "string",
    format: "email",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function L(t, n) {
  return new t({
    type: "string",
    format: "guid",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function z(t, n) {
  return new t({
    type: "string",
    format: "uuid",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function j(t, n) {
  return new t({
    type: "string",
    format: "uuid",
    check: "string_format",
    abort: !1,
    version: "v4",
    ...e(n)
  });
}
function T(t, n) {
  return new t({
    type: "string",
    format: "uuid",
    check: "string_format",
    abort: !1,
    version: "v6",
    ...e(n)
  });
}
function W(t, n) {
  return new t({
    type: "string",
    format: "uuid",
    check: "string_format",
    abort: !1,
    version: "v7",
    ...e(n)
  });
}
function D(t, n) {
  return new t({
    type: "string",
    format: "url",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function M(t, n) {
  return new t({
    type: "string",
    format: "emoji",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function O(t, n) {
  return new t({
    type: "string",
    format: "nanoid",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function U(t, n) {
  return new t({
    type: "string",
    format: "cuid",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function q(t, n) {
  return new t({
    type: "string",
    format: "cuid2",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function E(t, n) {
  return new t({
    type: "string",
    format: "ulid",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function I(t, n) {
  return new t({
    type: "string",
    format: "xid",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function R(t, n) {
  return new t({
    type: "string",
    format: "ksuid",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function G(t, n) {
  return new t({
    type: "string",
    format: "ipv4",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function P(t, n) {
  return new t({
    type: "string",
    format: "ipv6",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function S(t, n) {
  return new t({
    type: "string",
    format: "cidrv4",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function A(t, n) {
  return new t({
    type: "string",
    format: "cidrv6",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function B(t, n) {
  return new t({
    type: "string",
    format: "base64",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function F(t, n) {
  return new t({
    type: "string",
    format: "base64url",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function H(t, n) {
  return new t({
    type: "string",
    format: "e164",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function J(t, n) {
  return new t({
    type: "string",
    format: "jwt",
    check: "string_format",
    abort: !1,
    ...e(n)
  });
}
function K(t, n) {
  return new t({
    type: "string",
    format: "datetime",
    check: "string_format",
    offset: !1,
    local: !1,
    precision: null,
    ...e(n)
  });
}
function N(t, n) {
  return new t({
    type: "string",
    format: "date",
    check: "string_format",
    ...e(n)
  });
}
function Q(t, n) {
  return new t({
    type: "string",
    format: "time",
    check: "string_format",
    precision: null,
    ...e(n)
  });
}
function V(t, n) {
  return new t({
    type: "string",
    format: "duration",
    check: "string_format",
    ...e(n)
  });
}
function X(t, n) {
  return new t({
    type: "number",
    checks: [],
    ...e(n)
  });
}
function Y(t, n) {
  return new t({
    type: "number",
    check: "number_format",
    abort: !1,
    format: "safeint",
    ...e(n)
  });
}
function tt(t, n) {
  return new t({
    type: "boolean",
    ...e(n)
  });
}
function nt(t, n) {
  return new t({
    type: "null",
    ...e(n)
  });
}
function et(t) {
  return new t({
    type: "unknown"
  });
}
function rt(t, n) {
  return new t({
    type: "never",
    ...e(n)
  });
}
function ot(t, n) {
  return new s({
    check: "less_than",
    ...e(n),
    value: t,
    inclusive: !1
  });
}
function it(t, n) {
  return new s({
    check: "less_than",
    ...e(n),
    value: t,
    inclusive: !0
  });
}
function ct(t, n) {
  return new a({
    check: "greater_than",
    ...e(n),
    value: t,
    inclusive: !1
  });
}
function ut(t, n) {
  return new a({
    check: "greater_than",
    ...e(n),
    value: t,
    inclusive: !0
  });
}
function at(t, n) {
  return new f({
    check: "multiple_of",
    ...e(n),
    value: t
  });
}
function st(t, n) {
  return new _({
    check: "max_length",
    ...e(n),
    maximum: t
  });
}
function ft(t, n) {
  return new m({
    check: "min_length",
    ...e(n),
    minimum: t
  });
}
function mt(t, n) {
  return new h({
    check: "length_equals",
    ...e(n),
    length: t
  });
}
function _t(t, n) {
  return new l({
    check: "string_format",
    format: "regex",
    ...e(n),
    pattern: t
  });
}
function ht(t) {
  return new d({
    check: "string_format",
    format: "lowercase",
    ...e(t)
  });
}
function gt(t) {
  return new b({
    check: "string_format",
    format: "uppercase",
    ...e(t)
  });
}
function lt(t, n) {
  return new k({
    check: "string_format",
    format: "includes",
    ...e(n),
    includes: t
  });
}
function kt(t, n) {
  return new w({
    check: "string_format",
    format: "starts_with",
    ...e(n),
    prefix: t
  });
}
function wt(t, n) {
  return new p({
    check: "string_format",
    format: "ends_with",
    ...e(n),
    suffix: t
  });
}
function c(t) {
  return new g({
    check: "overwrite",
    tx: t
  });
}
function pt(t) {
  return c((n) => n.normalize(t));
}
function dt() {
  return c((t) => t.trim());
}
function bt() {
  return c((t) => t.toLowerCase());
}
function yt() {
  return c((t) => t.toUpperCase());
}
function vt(t, n, r) {
  return new t({
    type: "array",
    element: n,
    // get element() {
    //   return element;
    // },
    ...e(r)
  });
}
function Ct(t, n, r) {
  const i = e(r);
  return i.abort ?? (i.abort = !0), new t({
    type: "custom",
    check: "custom",
    fn: n,
    ...i
  });
}
function Zt(t, n, r) {
  return new t({
    type: "custom",
    check: "custom",
    fn: n,
    ...e(r)
  });
}
function $t(t) {
  const n = v((r) => (r.addIssue = (i) => {
    if (typeof i == "string")
      r.issues.push(u(i, r.value, n._zod.def));
    else {
      const o = i;
      o.fatal && (o.continue = !1), o.code ?? (o.code = "custom"), o.input ?? (o.input = r.value), o.inst ?? (o.inst = n), o.continue ?? (o.continue = !n._zod.def.abort), r.issues.push(u(o));
    }
  }, t(r.value, r)));
  return n;
}
function v(t, n) {
  const r = new y({
    check: "custom",
    ...e(n)
  });
  return r._zod.check = t, r;
}
export {
  vt as _array,
  B as _base64,
  F as _base64url,
  tt as _boolean,
  v as _check,
  S as _cidrv4,
  A as _cidrv6,
  U as _cuid,
  q as _cuid2,
  Ct as _custom,
  H as _e164,
  x as _email,
  M as _emoji,
  wt as _endsWith,
  ct as _gt,
  ut as _gte,
  L as _guid,
  lt as _includes,
  Y as _int,
  G as _ipv4,
  P as _ipv6,
  N as _isoDate,
  K as _isoDateTime,
  V as _isoDuration,
  Q as _isoTime,
  J as _jwt,
  R as _ksuid,
  mt as _length,
  ht as _lowercase,
  ot as _lt,
  it as _lte,
  it as _max,
  st as _maxLength,
  ut as _min,
  ft as _minLength,
  at as _multipleOf,
  O as _nanoid,
  rt as _never,
  pt as _normalize,
  nt as _null,
  X as _number,
  c as _overwrite,
  Zt as _refine,
  _t as _regex,
  kt as _startsWith,
  $ as _string,
  $t as _superRefine,
  bt as _toLowerCase,
  yt as _toUpperCase,
  dt as _trim,
  E as _ulid,
  et as _unknown,
  gt as _uppercase,
  D as _url,
  z as _uuid,
  j as _uuidv4,
  T as _uuidv6,
  W as _uuidv7,
  I as _xid
};
//# sourceMappingURL=api.js.map
