import{__exports as e}from"../../../../_virtual/path.mjs";import t from"../../../../_virtual/_node_os.mjs";import r from"../../../../_virtual/_node_path.mjs";var n;function o(){if(n)return e;n=1,Object.defineProperty(e,"__esModule",{value:!0}),e.convertPosixPathToPattern=e.convertWindowsPathToPattern=e.convertPathToPattern=e.escapePosixPath=e.escapeWindowsPath=e.escape=e.removeLeadingDotSegment=e.makeAbsolute=e.unixify=void 0;const o=r,a="win32"===t.platform(),i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,c=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,s=/^\\\\([.?])/,u=/\\(?![!()+@[\]{}])/g;function P(e){return e.replace(c,"\\$2")}function p(e){return e.replace(i,"\\$2")}function f(e){return P(e).replace(s,"//$1").replace(u,"/")}function m(e){return p(e)}return e.unixify=function(e){return e.replace(/\\/g,"/")},e.makeAbsolute=function(e,t){return o.resolve(e,t)},e.removeLeadingDotSegment=function(e){if("."===e.charAt(0)){const t=e.charAt(1);if("/"===t||"\\"===t)return e.slice(2)}return e},e.escape=a?P:p,e.escapeWindowsPath=P,e.escapePosixPath=p,e.convertPathToPattern=a?f:m,e.convertWindowsPathToPattern=f,e.convertPosixPathToPattern=m,e}export{o as __require};