import { __exports as a } from "../../../../../../../../_virtual/limitNumber.js";
import { __require as d } from "../../compile/codegen/index.js";
var s;
function l() {
  if (s) return a;
  s = 1, Object.defineProperty(a, "__esModule", { value: !0 });
  const t = d(), e = t.operators, i = {
    maximum: { okStr: "<=", ok: e.LTE, fail: e.GT },
    minimum: { okStr: ">=", ok: e.GTE, fail: e.LT },
    exclusiveMaximum: { okStr: "<", ok: e.LT, fail: e.GTE },
    exclusiveMinimum: { okStr: ">", ok: e.GT, fail: e.LTE }
  }, u = {
    message: ({ keyword: r, schemaCode: o }) => (0, t.str)`must be ${i[r].okStr} ${o}`,
    params: ({ keyword: r, schemaCode: o }) => (0, t._)`{comparison: ${i[r].okStr}, limit: ${o}}`
  }, n = {
    keyword: Object.keys(i),
    type: "number",
    schemaType: "number",
    $data: !0,
    error: u,
    code(r) {
      const { keyword: o, data: m, schemaCode: c } = r;
      r.fail$data((0, t._)`${m} ${i[o].fail} ${c} || isNaN(${m})`);
    }
  };
  return a.default = n, a;
}
export {
  l as __require
};
//# sourceMappingURL=limitNumber.js.map
