import { __exports as o } from "../../../../../../_virtual/loaders.js";
import { __require as c } from "../../../../import-fresh@3.3.0/node_modules/import-fresh/index.js";
import { __require as f } from "../../../../parse-json@5.2.0/node_modules/parse-json/index.js";
import { __require as p } from "../../../../yaml@1.10.2/node_modules/yaml/browser/index.js";
var i;
function $() {
  if (i)
    return o;
  i = 1, Object.defineProperty(o, "__esModule", {
    value: !0
  }), o.loaders = void 0;
  let t;
  const l = function(e) {
    return t === void 0 && (t = c()), t(e);
  };
  let n;
  const d = function(e, s) {
    n === void 0 && (n = f());
    try {
      return n(s);
    } catch (r) {
      throw r.message = `JSON Error in ${e}:
${r.message}`, r;
    }
  };
  let a;
  const m = {
    loadJs: l,
    loadJson: d,
    loadYaml: function(e, s) {
      a === void 0 && (a = p());
      try {
        return a.parse(s, {
          prettyErrors: !0
        });
      } catch (r) {
        throw r.message = `YAML Error in ${e}:
${r.message}`, r;
      }
    }
  };
  return o.loaders = m, o;
}
export {
  $ as __require
};
//# sourceMappingURL=loaders.js.map
