"use strict";Object.defineProperty(exports, "__esModule", {value: true});


var _chunkSCFUDB74cjs = require('./chunk-SCFUDB74.cjs');

// src/utilities/correct-paths.ts
_chunkSCFUDB74cjs.init_cjs_shims.call(void 0, );
var _path = require('path');
var removeWindowsDriveLetter = /* @__PURE__ */ _chunkSCFUDB74cjs.__name.call(void 0, (osSpecificPath) => {
  return osSpecificPath.replace(/^[A-Z]:/, "");
}, "removeWindowsDriveLetter");
var correctPaths = /* @__PURE__ */ _chunkSCFUDB74cjs.__name.call(void 0, (path) => {
  if (!path) {
    return "";
  }
  if (path.includes("\\")) {
    if (!path.toUpperCase().startsWith("C:")) {
      path = `C:${path}`;
    }
    return path.replaceAll("/", "\\");
  }
  return removeWindowsDriveLetter(path).split("\\").join("/");
}, "correctPaths");
var joinPaths = /* @__PURE__ */ _chunkSCFUDB74cjs.__name.call(void 0, (...paths) => {
  if (!paths || paths.length === 0) {
    return "";
  }
  return correctPaths(_path.join.call(void 0, ...paths));
}, "joinPaths");




exports.correctPaths = correctPaths; exports.joinPaths = joinPaths;
