{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;\nfunction isFatalError(settings, error) {\n  if (settings.errorFilter === null) {\n    return true;\n  }\n  return !settings.errorFilter(error);\n}\nexports.isFatalError = isFatalError;\nfunction isAppliedFilter(filter, value) {\n  return filter === null || filter(value);\n}\nexports.isAppliedFilter = isAppliedFilter;\nfunction replacePathSegmentSeparator(filepath, separator) {\n  return filepath.split(/[/\\\\]/).join(separator);\n}\nexports.replacePathSegmentSeparator = replacePathSegmentSeparator;\nfunction joinPathSegments(a, b, separator) {\n  if (a === '') {\n    return b;\n  }\n  /**\n   * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).\n   */\n  if (a.endsWith(separator)) {\n    return a + b;\n  }\n  return a + separator + b;\n}\nexports.joinPathSegments = joinPathSegments;","map":{"version":3,"names":["Object","defineProperty","exports","value","joinPathSegments","replacePathSegmentSeparator","isAppliedFilter","isFatalError","settings","error","errorFilter","filter","filepath","separator","split","join","a","b","endsWith"],"sources":["C:/Users/user/Desktop/000newport/node_modules/@nodelib/fs.walk/out/readers/common.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;\nfunction isFatalError(settings, error) {\n    if (settings.errorFilter === null) {\n        return true;\n    }\n    return !settings.errorFilter(error);\n}\nexports.isFatalError = isFatalError;\nfunction isAppliedFilter(filter, value) {\n    return filter === null || filter(value);\n}\nexports.isAppliedFilter = isAppliedFilter;\nfunction replacePathSegmentSeparator(filepath, separator) {\n    return filepath.split(/[/\\\\]/).join(separator);\n}\nexports.replacePathSegmentSeparator = replacePathSegmentSeparator;\nfunction joinPathSegments(a, b, separator) {\n    if (a === '') {\n        return b;\n    }\n    /**\n     * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).\n     */\n    if (a.endsWith(separator)) {\n        return a + b;\n    }\n    return a + separator + b;\n}\nexports.joinPathSegments = joinPathSegments;\n"],"mappings":"AAAA,YAAY;;AACZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,gBAAgB,GAAGF,OAAO,CAACG,2BAA2B,GAAGH,OAAO,CAACI,eAAe,GAAGJ,OAAO,CAACK,YAAY,GAAG,KAAK,CAAC;AACxH,SAASA,YAAYA,CAACC,QAAQ,EAAEC,KAAK,EAAE;EACnC,IAAID,QAAQ,CAACE,WAAW,KAAK,IAAI,EAAE;IAC/B,OAAO,IAAI;EACf;EACA,OAAO,CAACF,QAAQ,CAACE,WAAW,CAACD,KAAK,CAAC;AACvC;AACAP,OAAO,CAACK,YAAY,GAAGA,YAAY;AACnC,SAASD,eAAeA,CAACK,MAAM,EAAER,KAAK,EAAE;EACpC,OAAOQ,MAAM,KAAK,IAAI,IAAIA,MAAM,CAACR,KAAK,CAAC;AAC3C;AACAD,OAAO,CAACI,eAAe,GAAGA,eAAe;AACzC,SAASD,2BAA2BA,CAACO,QAAQ,EAAEC,SAAS,EAAE;EACtD,OAAOD,QAAQ,CAACE,KAAK,CAAC,OAAO,CAAC,CAACC,IAAI,CAACF,SAAS,CAAC;AAClD;AACAX,OAAO,CAACG,2BAA2B,GAAGA,2BAA2B;AACjE,SAASD,gBAAgBA,CAACY,CAAC,EAAEC,CAAC,EAAEJ,SAAS,EAAE;EACvC,IAAIG,CAAC,KAAK,EAAE,EAAE;IACV,OAAOC,CAAC;EACZ;EACA;AACJ;AACA;EACI,IAAID,CAAC,CAACE,QAAQ,CAACL,SAAS,CAAC,EAAE;IACvB,OAAOG,CAAC,GAAGC,CAAC;EAChB;EACA,OAAOD,CAAC,GAAGH,SAAS,GAAGI,CAAC;AAC5B;AACAf,OAAO,CAACE,gBAAgB,GAAGA,gBAAgB"},"metadata":{},"sourceType":"script","externalDependencies":[]}