import { __exports as o } from "../../../../../../_virtual/readFile.js";
import F from "../../../../../../_virtual/___vite-browser-external.js";
var a;
function y() {
  if (a)
    return o;
  a = 1, Object.defineProperty(o, "__esModule", {
    value: !0
  }), o.readFile = l, o.readFileSync = f;
  var u = c(F);
  function c(e) {
    return e && e.__esModule ? e : { default: e };
  }
  async function d(e, t) {
    return new Promise((n, r) => {
      u.default.readFile(e, t, (i, s) => {
        if (i) {
          r(i);
          return;
        }
        n(s);
      });
    });
  }
  async function l(e, t = {}) {
    const n = t.throwNotFound === !0;
    try {
      return await d(e, "utf8");
    } catch (r) {
      if (n === !1 && r.code === "ENOENT")
        return null;
      throw r;
    }
  }
  function f(e, t = {}) {
    const n = t.throwNotFound === !0;
    try {
      return u.default.readFileSync(e, "utf8");
    } catch (r) {
      if (n === !1 && r.code === "ENOENT")
        return null;
      throw r;
    }
  }
  return o;
}
export {
  y as __require
};
//# sourceMappingURL=readFile.js.map
