import { p as t } from "../../../../../_virtual/index12.js";
var o;
function w() {
  if (o)
    return t.exports;
  o = 1;
  var i = process.platform === "win32", n = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/, s = {};
  function p(e) {
    return n.exec(e).slice(1);
  }
  s.parse = function(e) {
    if (typeof e != "string")
      throw new TypeError(
        "Parameter 'pathString' must be a string, not " + typeof e
      );
    var r = p(e);
    if (!r || r.length !== 5)
      throw new TypeError("Invalid path '" + e + "'");
    return {
      root: r[1],
      dir: r[0] === r[1] ? r[0] : r[0].slice(0, -1),
      base: r[2],
      ext: r[4],
      name: r[3]
    };
  };
  var l = /^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/, a = {};
  function f(e) {
    return l.exec(e).slice(1);
  }
  return a.parse = function(e) {
    if (typeof e != "string")
      throw new TypeError(
        "Parameter 'pathString' must be a string, not " + typeof e
      );
    var r = f(e);
    if (!r || r.length !== 5)
      throw new TypeError("Invalid path '" + e + "'");
    return {
      root: r[1],
      dir: r[0].slice(0, -1),
      base: r[2],
      ext: r[4],
      name: r[3]
    };
  }, i ? t.exports = s.parse : t.exports = a.parse, t.exports.posix = a.parse, t.exports.win32 = s.parse, t.exports;
}
export {
  w as __require
};
//# sourceMappingURL=index.js.map
