import { __exports as r } from "../../../../../../../../_virtual/const.js";
import { __require as l } from "../../compile/codegen/index.js";
import { __require as f } from "../../compile/util.js";
import { __require as m } from "../../runtime/equal.js";
var s;
function h() {
  if (s) return r;
  s = 1, Object.defineProperty(r, "__esModule", { value: !0 });
  const o = l(), u = f(), i = m(), n = {
    keyword: "const",
    $data: !0,
    error: {
      message: "must be equal to constant",
      params: ({ schemaCode: e }) => (0, o._)`{allowedValue: ${e}}`
    },
    code(e) {
      const { gen: _, data: a, $data: c, schemaCode: d, schema: t } = e;
      c || t && typeof t == "object" ? e.fail$data((0, o._)`!${(0, u.useFunc)(_, i.default)}(${a}, ${d})`) : e.fail((0, o._)`${t} !== ${a}`);
    }
  };
  return r.default = n, r;
}
export {
  h as __require
};
//# sourceMappingURL=const.js.map
