@datadog/datadog-ci-plugin-container-app 5.13.0 → 5.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -59579,7 +59579,7 @@ var require_src$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
59579
59579
  var require_package$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
59580
59580
  module.exports = {
59581
59581
  "name": "@datadog/datadog-ci-base",
59582
- "version": "5.13.0",
59582
+ "version": "5.14.0",
59583
59583
  "description": "Base package for Datadog CI",
59584
59584
  "license": "Apache-2.0",
59585
59585
  "keywords": ["datadog", "datadog-ci"],
@@ -59609,6 +59609,10 @@ var require_package$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
59609
59609
  "development": "./src/constants.ts",
59610
59610
  "default": "./dist/constants.js"
59611
59611
  },
59612
+ "./helpers/request/*": {
59613
+ "development": "./src/helpers/request/*.ts",
59614
+ "default": "./dist/helpers/request/*.js"
59615
+ },
59612
59616
  "./helpers/*": {
59613
59617
  "development": "./src/helpers/*.ts",
59614
59618
  "default": "./dist/helpers/*.js"
@@ -60742,7 +60746,6 @@ var require_plugin = /* @__PURE__ */ __commonJSMin(((exports) => {
60742
60746
  ]);
60743
60747
  console.log();
60744
60748
  patchModulePaths(nodeModulesPath);
60745
- printPluginVersion(pluginPackage);
60746
60749
  });
60747
60750
  const handlePluginAutoInstall = (scope) => __awaiter(void 0, void 0, void 0, function* () {
60748
60751
  if (!!process.env["DISABLE_PLUGIN_AUTO_INSTALL"]) {
@@ -60922,7 +60925,7 @@ var require_plugin = /* @__PURE__ */ __commonJSMin(((exports) => {
60922
60925
  //#region ../base/dist/helpers/serverless/constants.js
60923
60926
  var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports) => {
60924
60927
  Object.defineProperty(exports, "__esModule", { value: true });
60925
- exports.ENV_VAR_REGEX = exports.DEFAULT_HEALTH_CHECK_PORT = exports.DEFAULT_LOGS_PATH = exports.DEFAULT_VOLUME_PATH = exports.DEFAULT_VOLUME_NAME = exports.DEFAULT_SIDECAR_NAME = exports.SIDECAR_PORT = exports.SIDECAR_IMAGE = exports.SIDECAR_CONTAINER_NAME = exports.FLARE_PROJECT_FILES = exports.FLARE_ENDPOINT_PATH = exports.INSIGHTS_FILE_NAME = exports.ADDITIONAL_FILES_DIRECTORY = exports.PROJECT_FILES_DIRECTORY = exports.LOGS_DIRECTORY = exports.FLARE_OUTPUT_DIRECTORY = exports.EXTRA_TAGS_REG_EXP = exports.VERSION_ENV_VAR = exports.ENVIRONMENT_ENV_VAR = exports.SERVICE_ENV_VAR = exports.DD_SOURCE_ENV_VAR = exports.DD_TAGS_ENV_VAR = exports.DD_LLMOBS_AGENTLESS_ENABLED_ENV_VAR = exports.DD_LLMOBS_ML_APP_ENV_VAR = exports.DD_LLMOBS_ENABLED_ENV_VAR = exports.DD_TRACE_ENABLED_ENV_VAR = exports.DD_LOG_LEVEL_ENV_VAR = exports.HEALTH_PORT_ENV_VAR = exports.LOGS_PATH_ENV_VAR = exports.LOGS_INJECTION_ENV_VAR = exports.SITE_ENV_VAR = exports.CI_SITE_ENV_VAR = exports.CI_API_KEY_ENV_VAR = exports.API_KEY_ENV_VAR = void 0;
60928
+ exports.ENV_VAR_REGEX = exports.DEFAULT_HEALTH_CHECK_PORT = exports.DEFAULT_LOGS_PATH = exports.DEFAULT_VOLUME_PATH = exports.DEFAULT_VOLUME_NAME = exports.DEFAULT_SIDECAR_NAME = exports.SIDECAR_PORT = exports.SIDECAR_IMAGE = exports.SIDECAR_CONTAINER_NAME = exports.FLARE_PROJECT_FILES = exports.INSIGHTS_FILE_NAME = exports.ADDITIONAL_FILES_DIRECTORY = exports.PROJECT_FILES_DIRECTORY = exports.LOGS_DIRECTORY = exports.FLARE_OUTPUT_DIRECTORY = exports.EXTRA_TAGS_REG_EXP = exports.VERSION_ENV_VAR = exports.ENVIRONMENT_ENV_VAR = exports.SERVICE_ENV_VAR = exports.DD_SOURCE_ENV_VAR = exports.DD_TAGS_ENV_VAR = exports.DD_LLMOBS_AGENTLESS_ENABLED_ENV_VAR = exports.DD_LLMOBS_ML_APP_ENV_VAR = exports.DD_LLMOBS_ENABLED_ENV_VAR = exports.DD_TRACE_ENABLED_ENV_VAR = exports.DD_LOG_LEVEL_ENV_VAR = exports.HEALTH_PORT_ENV_VAR = exports.LOGS_PATH_ENV_VAR = exports.LOGS_INJECTION_ENV_VAR = exports.SITE_ENV_VAR = exports.CI_SITE_ENV_VAR = exports.CI_API_KEY_ENV_VAR = exports.API_KEY_ENV_VAR = void 0;
60926
60929
  exports.API_KEY_ENV_VAR = "DD_API_KEY";
60927
60930
  exports.CI_API_KEY_ENV_VAR = "DATADOG_API_KEY";
60928
60931
  exports.CI_SITE_ENV_VAR = "DATADOG_SITE";
@@ -60946,7 +60949,6 @@ var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports) => {
60946
60949
  exports.PROJECT_FILES_DIRECTORY = "project_files";
60947
60950
  exports.ADDITIONAL_FILES_DIRECTORY = "additional_files";
60948
60951
  exports.INSIGHTS_FILE_NAME = "INSIGHTS.md";
60949
- exports.FLARE_ENDPOINT_PATH = "/api/ui/support/serverless/flare";
60950
60952
  exports.FLARE_PROJECT_FILES = [
60951
60953
  "datadog-cloudfomation-macro.yaml",
60952
60954
  "datadog-cloudfomation-macro.yml",
@@ -92639,177 +92641,6 @@ var require_dist$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
92639
92641
  exports.ProxyAgent = ProxyAgent;
92640
92642
  }));
92641
92643
  //#endregion
92642
- //#region ../../node_modules/ansi-escapes/index.js
92643
- var require_ansi_escapes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
92644
- const ansiEscapes = module.exports;
92645
- module.exports.default = ansiEscapes;
92646
- const ESC = "\x1B[";
92647
- const OSC = "\x1B]";
92648
- const BEL = "\x07";
92649
- const SEP = ";";
92650
- const isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
92651
- ansiEscapes.cursorTo = (x, y) => {
92652
- if (typeof x !== "number") throw new TypeError("The `x` argument is required");
92653
- if (typeof y !== "number") return ESC + (x + 1) + "G";
92654
- return ESC + (y + 1) + ";" + (x + 1) + "H";
92655
- };
92656
- ansiEscapes.cursorMove = (x, y) => {
92657
- if (typeof x !== "number") throw new TypeError("The `x` argument is required");
92658
- let ret = "";
92659
- if (x < 0) ret += ESC + -x + "D";
92660
- else if (x > 0) ret += ESC + x + "C";
92661
- if (y < 0) ret += ESC + -y + "A";
92662
- else if (y > 0) ret += ESC + y + "B";
92663
- return ret;
92664
- };
92665
- ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
92666
- ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
92667
- ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
92668
- ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
92669
- ansiEscapes.cursorLeft = ESC + "G";
92670
- ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
92671
- ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
92672
- ansiEscapes.cursorGetPosition = ESC + "6n";
92673
- ansiEscapes.cursorNextLine = ESC + "E";
92674
- ansiEscapes.cursorPrevLine = ESC + "F";
92675
- ansiEscapes.cursorHide = ESC + "?25l";
92676
- ansiEscapes.cursorShow = ESC + "?25h";
92677
- ansiEscapes.eraseLines = (count) => {
92678
- let clear = "";
92679
- for (let i = 0; i < count; i++) clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
92680
- if (count) clear += ansiEscapes.cursorLeft;
92681
- return clear;
92682
- };
92683
- ansiEscapes.eraseEndLine = ESC + "K";
92684
- ansiEscapes.eraseStartLine = ESC + "1K";
92685
- ansiEscapes.eraseLine = ESC + "2K";
92686
- ansiEscapes.eraseDown = ESC + "J";
92687
- ansiEscapes.eraseUp = ESC + "1J";
92688
- ansiEscapes.eraseScreen = ESC + "2J";
92689
- ansiEscapes.scrollUp = ESC + "S";
92690
- ansiEscapes.scrollDown = ESC + "T";
92691
- ansiEscapes.clearScreen = "\x1Bc";
92692
- ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
92693
- ansiEscapes.beep = BEL;
92694
- ansiEscapes.link = (text, url) => {
92695
- return [
92696
- OSC,
92697
- "8",
92698
- SEP,
92699
- SEP,
92700
- url,
92701
- BEL,
92702
- text,
92703
- OSC,
92704
- "8",
92705
- SEP,
92706
- SEP,
92707
- BEL
92708
- ].join("");
92709
- };
92710
- ansiEscapes.image = (buffer, options = {}) => {
92711
- let ret = `${OSC}1337;File=inline=1`;
92712
- if (options.width) ret += `;width=${options.width}`;
92713
- if (options.height) ret += `;height=${options.height}`;
92714
- if (options.preserveAspectRatio === false) ret += ";preserveAspectRatio=0";
92715
- return ret + ":" + buffer.toString("base64") + BEL;
92716
- };
92717
- ansiEscapes.iTerm = {
92718
- setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
92719
- annotation: (message, options = {}) => {
92720
- let ret = `${OSC}1337;`;
92721
- const hasX = typeof options.x !== "undefined";
92722
- const hasY = typeof options.y !== "undefined";
92723
- if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
92724
- message = message.replace(/\|/g, "");
92725
- ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
92726
- if (options.length > 0) ret += (hasX ? [
92727
- message,
92728
- options.length,
92729
- options.x,
92730
- options.y
92731
- ] : [options.length, message]).join("|");
92732
- else ret += message;
92733
- return ret + BEL;
92734
- }
92735
- };
92736
- }));
92737
- //#endregion
92738
- //#region ../../node_modules/supports-hyperlinks/index.js
92739
- var require_supports_hyperlinks = /* @__PURE__ */ __commonJSMin(((exports, module) => {
92740
- const supportsColor = require_supports_color();
92741
- const hasFlag = require_has_flag();
92742
- function parseVersion(versionString) {
92743
- if (/^\d{3,4}$/.test(versionString)) {
92744
- const m = /(\d{1,2})(\d{2})/.exec(versionString);
92745
- return {
92746
- major: 0,
92747
- minor: parseInt(m[1], 10),
92748
- patch: parseInt(m[2], 10)
92749
- };
92750
- }
92751
- const versions = (versionString || "").split(".").map((n) => parseInt(n, 10));
92752
- return {
92753
- major: versions[0],
92754
- minor: versions[1],
92755
- patch: versions[2]
92756
- };
92757
- }
92758
- function supportsHyperlink(stream) {
92759
- const { env } = process;
92760
- if ("FORCE_HYPERLINK" in env) return !(env.FORCE_HYPERLINK.length > 0 && parseInt(env.FORCE_HYPERLINK, 10) === 0);
92761
- if (hasFlag("no-hyperlink") || hasFlag("no-hyperlinks") || hasFlag("hyperlink=false") || hasFlag("hyperlink=never")) return false;
92762
- if (hasFlag("hyperlink=true") || hasFlag("hyperlink=always")) return true;
92763
- if ("NETLIFY" in env) return true;
92764
- if (!supportsColor.supportsColor(stream)) return false;
92765
- if (stream && !stream.isTTY) return false;
92766
- if (process.platform === "win32") return false;
92767
- if ("CI" in env) return false;
92768
- if ("TEAMCITY_VERSION" in env) return false;
92769
- if ("TERM_PROGRAM" in env) {
92770
- const version = parseVersion(env.TERM_PROGRAM_VERSION);
92771
- switch (env.TERM_PROGRAM) {
92772
- case "iTerm.app":
92773
- if (version.major === 3) return version.minor >= 1;
92774
- return version.major > 3;
92775
- case "WezTerm": return version.major >= 20200620;
92776
- case "vscode": return version.major > 1 || version.major === 1 && version.minor >= 72;
92777
- }
92778
- }
92779
- if ("VTE_VERSION" in env) {
92780
- if (env.VTE_VERSION === "0.50.0") return false;
92781
- const version = parseVersion(env.VTE_VERSION);
92782
- return version.major > 0 || version.minor >= 50;
92783
- }
92784
- return false;
92785
- }
92786
- module.exports = {
92787
- supportsHyperlink,
92788
- stdout: supportsHyperlink(process.stdout),
92789
- stderr: supportsHyperlink(process.stderr)
92790
- };
92791
- }));
92792
- //#endregion
92793
- //#region ../../node_modules/terminal-link/index.js
92794
- var require_terminal_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
92795
- const ansiEscapes = require_ansi_escapes();
92796
- const supportsHyperlinks = require_supports_hyperlinks();
92797
- const terminalLink = (text, url, { target = "stdout", ...options } = {}) => {
92798
- if (!supportsHyperlinks[target]) {
92799
- if (options.fallback === false) return text;
92800
- return typeof options.fallback === "function" ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
92801
- }
92802
- return ansiEscapes.link(text, url);
92803
- };
92804
- module.exports = (text, url, options = {}) => terminalLink(text, url, options);
92805
- module.exports.stderr = (text, url, options = {}) => terminalLink(text, url, {
92806
- target: "stderr",
92807
- ...options
92808
- });
92809
- module.exports.isSupported = supportsHyperlinks.stdout;
92810
- module.exports.stderr.isSupported = supportsHyperlinks.stderr;
92811
- }));
92812
- //#endregion
92813
92644
  //#region ../../node_modules/undici/lib/core/symbols.js
92814
92645
  var require_symbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
92815
92646
  module.exports = {
@@ -114380,10 +114211,10 @@ var require_request = /* @__PURE__ */ __commonJSMin(((exports) => {
114380
114211
  throw requestError;
114381
114212
  }
114382
114213
  const responseHeaders = parseResponseHeaders(response.headers);
114383
- const contentType = (_h = responseHeaders["content-type"]) !== null && _h !== void 0 ? _h : "";
114214
+ const mediaType = ((_h = responseHeaders["content-type"]) !== null && _h !== void 0 ? _h : "").split(";")[0].trim();
114384
114215
  const rawBody = yield response.text();
114385
114216
  let data = rawBody;
114386
- if (contentType.includes("application/json") && rawBody.length > 0) try {
114217
+ if (rawBody.length > 0 && (mediaType === "application/json" || mediaType === "application/vnd.api+json")) try {
114387
114218
  data = JSON.parse(rawBody);
114388
114219
  } catch (_j) {}
114389
114220
  if (!response.ok) throw new RequestError(`Request failed with status code ${response.status}`, config, {
@@ -114435,20 +114266,15 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
114435
114266
  return mod && mod.__esModule ? mod : { "default": mod };
114436
114267
  };
114437
114268
  Object.defineProperty(exports, "__esModule", { value: true });
114438
- exports.isFile = exports.getGitHubEventPayload = exports.execute = exports.maskString = exports.formatBytes = exports.timedExecAsync = exports.filterAndFormatGithubRemote = exports.filterSensitiveInfoFromRepository = exports.performSubCommand = exports.pluralize = exports.normalizeRef = exports.recursivelyRemoveUndefinedValues = exports.removeUndefinedValues = exports.removeEmptyValues = exports.buildPath = exports.getApiHostForSite = exports.getProxyAgent = exports.getRequestBuilder = exports.getProxyUrl = exports.resolveConfigFromFile = exports.resolveConfigFromFileAndEnvironment = exports.getConfig = exports.pick = exports.makeTerminalLink = exports.DEFAULT_CONFIG_PATHS = void 0;
114269
+ exports.isFile = exports.getGitHubEventPayload = exports.execute = exports.maskString = exports.formatBytes = exports.timedExecAsync = exports.filterAndFormatGithubRemote = exports.filterSensitiveInfoFromRepository = exports.performSubCommand = exports.pluralize = exports.normalizeRef = exports.recursivelyRemoveUndefinedValues = exports.removeUndefinedValues = exports.removeEmptyValues = exports.buildPath = exports.getApiHostForSite = exports.getProxyAgent = exports.getRequestBuilder = exports.getProxyUrl = exports.resolveConfigFromFile = exports.resolveConfigFromFileAndEnvironment = exports.getConfig = exports.pick = exports.DEFAULT_CONFIG_PATHS = void 0;
114439
114270
  const child_process_1$1 = require("child_process");
114440
114271
  const fs_1$5 = require("fs");
114441
114272
  const util_1 = require("util");
114442
114273
  const clipanion_1 = require_advanced();
114443
114274
  const deep_extend_1 = __importDefault(require_deep_extend());
114444
114275
  const proxy_agent_1 = require_dist$3();
114445
- const terminal_link_1 = __importDefault(require_terminal_link());
114446
114276
  const request_1 = require_request();
114447
114277
  exports.DEFAULT_CONFIG_PATHS = ["datadog-ci.json"];
114448
- const makeTerminalLink = (url) => {
114449
- return ((strings) => (0, terminal_link_1.default)(strings[0], url));
114450
- };
114451
- exports.makeTerminalLink = makeTerminalLink;
114452
114278
  const pick = (base, keys) => {
114453
114279
  const definedKeys = keys.filter((key) => !!base[key]);
114454
114280
  const pickedObject = {};
@@ -114932,6 +114758,66 @@ var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
114932
114758
  exports.InvalidConfigurationError = InvalidConfigurationError;
114933
114759
  }));
114934
114760
  //#endregion
114761
+ //#region ../base/dist/helpers/request/datadog-route.js
114762
+ var require_datadog_route = /* @__PURE__ */ __commonJSMin(((exports) => {
114763
+ Object.defineProperty(exports, "__esModule", { value: true });
114764
+ exports.datadogRoute = exports.DATADOG_ROUTE_PATHS = void 0;
114765
+ /**
114766
+ * List of all Datadog API routes used by datadog-ci.
114767
+ *
114768
+ * Only those routes are accepted by {@link datadogRoute}.
114769
+ */
114770
+ exports.DATADOG_ROUTE_PATHS = [
114771
+ "/api/intake/ci/custom_spans",
114772
+ "/api/ui/support/serverless/flare",
114773
+ "/api/unstable/deployments/gates/evaluation",
114774
+ "/api/unstable/deployments/gates/evaluation/:evaluationId",
114775
+ "/api/v1/validate",
114776
+ "/api/v2/ci/deployments/correlate-image",
114777
+ "/api/v2/ci/deployments/correlate",
114778
+ "/api/v2/ci/pipeline/metrics",
114779
+ "/api/v2/ci/pipeline/tags",
114780
+ "/api/v2/cicodescan",
114781
+ "/api/v2/cicovreprt",
114782
+ "/api/v2/ciiac",
114783
+ "/api/v2/cireport",
114784
+ "/api/v2/dora/deployment",
114785
+ "/api/v2/git/repository/packfile",
114786
+ "/api/v2/git/repository/search_commits",
114787
+ "/api/v2/quality-gates/evaluate",
114788
+ "/api/v2/srcmap",
114789
+ "/api/v2/static-analysis-sca/dependencies",
114790
+ "/synthetics/ci/batch/:batchId",
114791
+ "/synthetics/ci/tunnel",
114792
+ "/synthetics/mobile/applications/:applicationId/multipart-presigned-urls",
114793
+ "/synthetics/mobile/applications/:applicationId/multipart-upload-complete",
114794
+ "/synthetics/mobile/applications/validation-job-status/:jobId",
114795
+ "/synthetics/settings",
114796
+ "/synthetics/tests/:testId",
114797
+ "/synthetics/tests/:testId/version_history/:version?only_check_existence=true",
114798
+ "/synthetics/tests/:testType/:testId",
114799
+ "/synthetics/tests/poll_results",
114800
+ "/synthetics/tests/search",
114801
+ "/synthetics/tests/trigger/ci",
114802
+ "/v1/input"
114803
+ ];
114804
+ /**
114805
+ * Format a Datadog API route with optional parameters.
114806
+ *
114807
+ * @example
114808
+ * ```ts
114809
+ * const route = datadogRoute('/api/v2/resources/:resourceId', {
114810
+ * resourceId: '123',
114811
+ * })
114812
+ * ```
114813
+ */
114814
+ const datadogRoute = (route, ...[params]) => {
114815
+ if (!params) return route;
114816
+ return route.replace(/:([A-Za-z0-9_]+)/g, (_, key) => encodeURIComponent(String(params[key])));
114817
+ };
114818
+ exports.datadogRoute = datadogRoute;
114819
+ }));
114820
+ //#endregion
114935
114821
  //#region ../base/dist/helpers/apikey.js
114936
114822
  var require_apikey = /* @__PURE__ */ __commonJSMin(((exports) => {
114937
114823
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
@@ -114969,6 +114855,7 @@ var require_apikey = /* @__PURE__ */ __commonJSMin(((exports) => {
114969
114855
  const chalk_1 = __importDefault(require_source$1());
114970
114856
  const errors_1 = require_errors();
114971
114857
  const request_1 = require_request();
114858
+ const datadog_route_1 = require_datadog_route();
114972
114859
  const newApiKeyValidator = (params) => new ApiKeyValidatorImplem(params.apiKey, params.datadogSite, params.metricsLogger);
114973
114860
  exports.newApiKeyValidator = newApiKeyValidator;
114974
114861
  /** ApiKeyValidator is an helper class to interpret Datadog error responses and possibly check the
@@ -115005,7 +114892,8 @@ var require_apikey = /* @__PURE__ */ __commonJSMin(((exports) => {
115005
114892
  return (yield (0, request_1.httpRequest)({
115006
114893
  headers: { "DD-API-KEY": this.apiKey },
115007
114894
  method: "GET",
115008
- url: this.getApiKeyValidationURL()
114895
+ baseURL: `https://api.${this.datadogSite}`,
114896
+ url: (0, datadog_route_1.datadogRoute)("/api/v1/validate")
115009
114897
  })).data.valid;
115010
114898
  } catch (error) {
115011
114899
  if ((0, request_1.isRequestError)(error) && error.response && error.response.status === 403) return false;
@@ -115013,9 +114901,6 @@ var require_apikey = /* @__PURE__ */ __commonJSMin(((exports) => {
115013
114901
  }
115014
114902
  });
115015
114903
  }
115016
- getApiKeyValidationURL() {
115017
- return `https://api.${this.datadogSite}/api/v1/validate`;
115018
- }
115019
114904
  isApiKeyValid() {
115020
114905
  return __awaiter(this, void 0, void 0, function* () {
115021
114906
  if (this.isValid === void 0) this.isValid = yield this.validateApiKey();
@@ -123390,6 +123275,3453 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
123390
123275
  });
123391
123276
  }));
123392
123277
  //#endregion
123278
+ //#region ../../node_modules/glob/dist/commonjs/index.min.js
123279
+ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
123280
+ var R = (n, t) => () => (t || n((t = { exports: {} }).exports, t), t.exports);
123281
+ var Ge = R((Y) => {
123282
+ "use strict";
123283
+ Object.defineProperty(Y, "__esModule", { value: !0 });
123284
+ Y.range = Y.balanced = void 0;
123285
+ var Gs = (n, t, e) => {
123286
+ let s = n instanceof RegExp ? Ie(n, e) : n, i = t instanceof RegExp ? Ie(t, e) : t, r = s !== null && i != null && (0, Y.range)(s, i, e);
123287
+ return r && {
123288
+ start: r[0],
123289
+ end: r[1],
123290
+ pre: e.slice(0, r[0]),
123291
+ body: e.slice(r[0] + s.length, r[1]),
123292
+ post: e.slice(r[1] + i.length)
123293
+ };
123294
+ };
123295
+ Y.balanced = Gs;
123296
+ var Ie = (n, t) => {
123297
+ let e = t.match(n);
123298
+ return e ? e[0] : null;
123299
+ }, zs = (n, t, e) => {
123300
+ let s, i, r, h, o, a = e.indexOf(n), l = e.indexOf(t, a + 1), f = a;
123301
+ if (a >= 0 && l > 0) {
123302
+ if (n === t) return [a, l];
123303
+ for (s = [], r = e.length; f >= 0 && !o;) {
123304
+ if (f === a) s.push(f), a = e.indexOf(n, f + 1);
123305
+ else if (s.length === 1) {
123306
+ let c = s.pop();
123307
+ c !== void 0 && (o = [c, l]);
123308
+ } else i = s.pop(), i !== void 0 && i < r && (r = i, h = l), l = e.indexOf(t, f + 1);
123309
+ f = a < l && a >= 0 ? a : l;
123310
+ }
123311
+ s.length && h !== void 0 && (o = [r, h]);
123312
+ }
123313
+ return o;
123314
+ };
123315
+ Y.range = zs;
123316
+ });
123317
+ var Ke = R((it) => {
123318
+ "use strict";
123319
+ Object.defineProperty(it, "__esModule", { value: !0 });
123320
+ it.EXPANSION_MAX = void 0;
123321
+ it.expand = ei;
123322
+ var ze = Ge(), Ue = "\0SLASH" + Math.random() + "\0", $e = "\0OPEN" + Math.random() + "\0", ue = "\0CLOSE" + Math.random() + "\0", qe = "\0COMMA" + Math.random() + "\0", He = "\0PERIOD" + Math.random() + "\0", Us = new RegExp(Ue, "g"), $s = new RegExp($e, "g"), qs = new RegExp(ue, "g"), Hs = new RegExp(qe, "g"), Vs = new RegExp(He, "g"), Ks = /\\\\/g, Xs = /\\{/g, Ys = /\\}/g, Js = /\\,/g, Zs = /\\./g;
123323
+ it.EXPANSION_MAX = 1e5;
123324
+ function ce(n) {
123325
+ return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
123326
+ }
123327
+ function Qs(n) {
123328
+ return n.replace(Ks, Ue).replace(Xs, $e).replace(Ys, ue).replace(Js, qe).replace(Zs, He);
123329
+ }
123330
+ function ti(n) {
123331
+ return n.replace(Us, "\\").replace($s, "{").replace(qs, "}").replace(Hs, ",").replace(Vs, ".");
123332
+ }
123333
+ function Ve(n) {
123334
+ if (!n) return [""];
123335
+ let t = [], e = (0, ze.balanced)("{", "}", n);
123336
+ if (!e) return n.split(",");
123337
+ let { pre: s, body: i, post: r } = e, h = s.split(",");
123338
+ h[h.length - 1] += "{" + i + "}";
123339
+ let o = Ve(r);
123340
+ return r.length && (h[h.length - 1] += o.shift(), h.push.apply(h, o)), t.push.apply(t, h), t;
123341
+ }
123342
+ function ei(n, t = {}) {
123343
+ if (!n) return [];
123344
+ let { max: e = it.EXPANSION_MAX } = t;
123345
+ return n.slice(0, 2) === "{}" && (n = "\\{\\}" + n.slice(2)), ht(Qs(n), e, !0).map(ti);
123346
+ }
123347
+ function si(n) {
123348
+ return "{" + n + "}";
123349
+ }
123350
+ function ii(n) {
123351
+ return /^-?0\d/.test(n);
123352
+ }
123353
+ function ri(n, t) {
123354
+ return n <= t;
123355
+ }
123356
+ function ni(n, t) {
123357
+ return n >= t;
123358
+ }
123359
+ function ht(n, t, e) {
123360
+ let s = [], i = (0, ze.balanced)("{", "}", n);
123361
+ if (!i) return [n];
123362
+ let r = i.pre, h = i.post.length ? ht(i.post, t, !1) : [""];
123363
+ if (/\$$/.test(i.pre)) for (let o = 0; o < h.length && o < t; o++) {
123364
+ let a = r + "{" + i.body + "}" + h[o];
123365
+ s.push(a);
123366
+ }
123367
+ else {
123368
+ let o = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body), a = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body), l = o || a, f = i.body.indexOf(",") >= 0;
123369
+ if (!l && !f) return i.post.match(/,(?!,).*\}/) ? (n = i.pre + "{" + i.body + ue + i.post, ht(n, t, !0)) : [n];
123370
+ let c;
123371
+ if (l) c = i.body.split(/\.\./);
123372
+ else if (c = Ve(i.body), c.length === 1 && c[0] !== void 0 && (c = ht(c[0], t, !1).map(si), c.length === 1)) return h.map((u) => i.pre + c[0] + u);
123373
+ let d;
123374
+ if (l && c[0] !== void 0 && c[1] !== void 0) {
123375
+ let u = ce(c[0]), m = ce(c[1]), p = Math.max(c[0].length, c[1].length), b = c.length === 3 && c[2] !== void 0 ? Math.abs(ce(c[2])) : 1, w = ri;
123376
+ m < u && (b *= -1, w = ni);
123377
+ let E = c.some(ii);
123378
+ d = [];
123379
+ for (let y = u; w(y, m); y += b) {
123380
+ let S;
123381
+ if (a) S = String.fromCharCode(y), S === "\\" && (S = "");
123382
+ else if (S = String(y), E) {
123383
+ let B = p - S.length;
123384
+ if (B > 0) {
123385
+ let U = new Array(B + 1).join("0");
123386
+ y < 0 ? S = "-" + U + S.slice(1) : S = U + S;
123387
+ }
123388
+ }
123389
+ d.push(S);
123390
+ }
123391
+ } else {
123392
+ d = [];
123393
+ for (let u = 0; u < c.length; u++) d.push.apply(d, ht(c[u], t, !1));
123394
+ }
123395
+ for (let u = 0; u < d.length; u++) for (let m = 0; m < h.length && s.length < t; m++) {
123396
+ let p = r + d[u] + h[m];
123397
+ (!e || l || p) && s.push(p);
123398
+ }
123399
+ }
123400
+ return s;
123401
+ }
123402
+ });
123403
+ var Xe = R((Ct) => {
123404
+ "use strict";
123405
+ Object.defineProperty(Ct, "__esModule", { value: !0 });
123406
+ Ct.assertValidPattern = void 0;
123407
+ var hi = 1024 * 64, oi = (n) => {
123408
+ if (typeof n != "string") throw new TypeError("invalid pattern");
123409
+ if (n.length > hi) throw new TypeError("pattern is too long");
123410
+ };
123411
+ Ct.assertValidPattern = oi;
123412
+ });
123413
+ var Je = R((Rt) => {
123414
+ "use strict";
123415
+ Object.defineProperty(Rt, "__esModule", { value: !0 });
123416
+ Rt.parseClass = void 0;
123417
+ var ai = {
123418
+ "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", !0],
123419
+ "[:alpha:]": ["\\p{L}\\p{Nl}", !0],
123420
+ "[:ascii:]": ["\\x00-\\x7f", !1],
123421
+ "[:blank:]": ["\\p{Zs}\\t", !0],
123422
+ "[:cntrl:]": ["\\p{Cc}", !0],
123423
+ "[:digit:]": ["\\p{Nd}", !0],
123424
+ "[:graph:]": [
123425
+ "\\p{Z}\\p{C}",
123426
+ !0,
123427
+ !0
123428
+ ],
123429
+ "[:lower:]": ["\\p{Ll}", !0],
123430
+ "[:print:]": ["\\p{C}", !0],
123431
+ "[:punct:]": ["\\p{P}", !0],
123432
+ "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", !0],
123433
+ "[:upper:]": ["\\p{Lu}", !0],
123434
+ "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", !0],
123435
+ "[:xdigit:]": ["A-Fa-f0-9", !1]
123436
+ }, ot = (n) => n.replace(/[[\]\\-]/g, "\\$&"), li = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), Ye = (n) => n.join(""), ci = (n, t) => {
123437
+ let e = t;
123438
+ if (n.charAt(e) !== "[") throw new Error("not in a brace expression");
123439
+ let s = [], i = [], r = e + 1, h = !1, o = !1, a = !1, l = !1, f = e, c = "";
123440
+ t: for (; r < n.length;) {
123441
+ let p = n.charAt(r);
123442
+ if ((p === "!" || p === "^") && r === e + 1) {
123443
+ l = !0, r++;
123444
+ continue;
123445
+ }
123446
+ if (p === "]" && h && !a) {
123447
+ f = r + 1;
123448
+ break;
123449
+ }
123450
+ if (h = !0, p === "\\" && !a) {
123451
+ a = !0, r++;
123452
+ continue;
123453
+ }
123454
+ if (p === "[" && !a) {
123455
+ for (let [b, [w, v, E]] of Object.entries(ai)) if (n.startsWith(b, r)) {
123456
+ if (c) return [
123457
+ "$.",
123458
+ !1,
123459
+ n.length - e,
123460
+ !0
123461
+ ];
123462
+ r += b.length, E ? i.push(w) : s.push(w), o = o || v;
123463
+ continue t;
123464
+ }
123465
+ }
123466
+ if (a = !1, c) {
123467
+ p > c ? s.push(ot(c) + "-" + ot(p)) : p === c && s.push(ot(p)), c = "", r++;
123468
+ continue;
123469
+ }
123470
+ if (n.startsWith("-]", r + 1)) {
123471
+ s.push(ot(p + "-")), r += 2;
123472
+ continue;
123473
+ }
123474
+ if (n.startsWith("-", r + 1)) {
123475
+ c = p, r += 2;
123476
+ continue;
123477
+ }
123478
+ s.push(ot(p)), r++;
123479
+ }
123480
+ if (f < r) return [
123481
+ "",
123482
+ !1,
123483
+ 0,
123484
+ !1
123485
+ ];
123486
+ if (!s.length && !i.length) return [
123487
+ "$.",
123488
+ !1,
123489
+ n.length - e,
123490
+ !0
123491
+ ];
123492
+ if (i.length === 0 && s.length === 1 && /^\\?.$/.test(s[0]) && !l) return [
123493
+ li(s[0].length === 2 ? s[0].slice(-1) : s[0]),
123494
+ !1,
123495
+ f - e,
123496
+ !1
123497
+ ];
123498
+ let d = "[" + (l ? "^" : "") + Ye(s) + "]", u = "[" + (l ? "" : "^") + Ye(i) + "]";
123499
+ return [
123500
+ s.length && i.length ? "(" + d + "|" + u + ")" : s.length ? d : u,
123501
+ o,
123502
+ f - e,
123503
+ !0
123504
+ ];
123505
+ };
123506
+ Rt.parseClass = ci;
123507
+ });
123508
+ var kt = R((At) => {
123509
+ "use strict";
123510
+ Object.defineProperty(At, "__esModule", { value: !0 });
123511
+ At.unescape = void 0;
123512
+ var ui = (n, { windowsPathsNoEscape: t = !1, magicalBraces: e = !0 } = {}) => e ? t ? n.replace(/\[([^\/\\])\]/g, "$1") : n.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1") : t ? n.replace(/\[([^\/\\{}])\]/g, "$1") : n.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
123513
+ At.unescape = ui;
123514
+ });
123515
+ var pe = R((Dt) => {
123516
+ "use strict";
123517
+ Object.defineProperty(Dt, "__esModule", { value: !0 });
123518
+ Dt.AST = void 0;
123519
+ var fi = Je(), Mt = kt(), di = new Set([
123520
+ "!",
123521
+ "?",
123522
+ "+",
123523
+ "*",
123524
+ "@"
123525
+ ]), Ze = (n) => di.has(n), pi = "(?!(?:^|/)\\.\\.?(?:$|/))", Pt = "(?!\\.)", mi = new Set(["[", "."]), gi = new Set(["..", "."]), wi = /* @__PURE__ */ new Set("().*{}+?[]^$\\!"), bi = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), de = "[^/]", Qe = de + "*?", ts = de + "+?";
123526
+ Dt.AST = class n {
123527
+ type;
123528
+ #t;
123529
+ #s;
123530
+ #n = !1;
123531
+ #r = [];
123532
+ #h;
123533
+ #S;
123534
+ #w;
123535
+ #c = !1;
123536
+ #o;
123537
+ #f;
123538
+ #u = !1;
123539
+ constructor(t, e, s = {}) {
123540
+ this.type = t, t && (this.#s = !0), this.#h = e, this.#t = this.#h ? this.#h.#t : this, this.#o = this.#t === this ? s : this.#t.#o, this.#w = this.#t === this ? [] : this.#t.#w, t === "!" && !this.#t.#c && this.#w.push(this), this.#S = this.#h ? this.#h.#r.length : 0;
123541
+ }
123542
+ get hasMagic() {
123543
+ if (this.#s !== void 0) return this.#s;
123544
+ for (let t of this.#r) if (typeof t != "string" && (t.type || t.hasMagic)) return this.#s = !0;
123545
+ return this.#s;
123546
+ }
123547
+ toString() {
123548
+ return this.#f !== void 0 ? this.#f : this.type ? this.#f = this.type + "(" + this.#r.map((t) => String(t)).join("|") + ")" : this.#f = this.#r.map((t) => String(t)).join("");
123549
+ }
123550
+ #a() {
123551
+ if (this !== this.#t) throw new Error("should only call on root");
123552
+ if (this.#c) return this;
123553
+ this.toString(), this.#c = !0;
123554
+ let t;
123555
+ for (; t = this.#w.pop();) {
123556
+ if (t.type !== "!") continue;
123557
+ let e = t, s = e.#h;
123558
+ for (; s;) {
123559
+ for (let i = e.#S + 1; !s.type && i < s.#r.length; i++) for (let r of t.#r) {
123560
+ if (typeof r == "string") throw new Error("string part in extglob AST??");
123561
+ r.copyIn(s.#r[i]);
123562
+ }
123563
+ e = s, s = e.#h;
123564
+ }
123565
+ }
123566
+ return this;
123567
+ }
123568
+ push(...t) {
123569
+ for (let e of t) if (e !== "") {
123570
+ if (typeof e != "string" && !(e instanceof n && e.#h === this)) throw new Error("invalid part: " + e);
123571
+ this.#r.push(e);
123572
+ }
123573
+ }
123574
+ toJSON() {
123575
+ let t = this.type === null ? this.#r.slice().map((e) => typeof e == "string" ? e : e.toJSON()) : [this.type, ...this.#r.map((e) => e.toJSON())];
123576
+ return this.isStart() && !this.type && t.unshift([]), this.isEnd() && (this === this.#t || this.#t.#c && this.#h?.type === "!") && t.push({}), t;
123577
+ }
123578
+ isStart() {
123579
+ if (this.#t === this) return !0;
123580
+ if (!this.#h?.isStart()) return !1;
123581
+ if (this.#S === 0) return !0;
123582
+ let t = this.#h;
123583
+ for (let e = 0; e < this.#S; e++) {
123584
+ let s = t.#r[e];
123585
+ if (!(s instanceof n && s.type === "!")) return !1;
123586
+ }
123587
+ return !0;
123588
+ }
123589
+ isEnd() {
123590
+ if (this.#t === this || this.#h?.type === "!") return !0;
123591
+ if (!this.#h?.isEnd()) return !1;
123592
+ if (!this.type) return this.#h?.isEnd();
123593
+ let t = this.#h ? this.#h.#r.length : 0;
123594
+ return this.#S === t - 1;
123595
+ }
123596
+ copyIn(t) {
123597
+ typeof t == "string" ? this.push(t) : this.push(t.clone(this));
123598
+ }
123599
+ clone(t) {
123600
+ let e = new n(this.type, t);
123601
+ for (let s of this.#r) e.copyIn(s);
123602
+ return e;
123603
+ }
123604
+ static #i(t, e, s, i) {
123605
+ let r = !1, h = !1, o = -1, a = !1;
123606
+ if (e.type === null) {
123607
+ let u = s, m = "";
123608
+ for (; u < t.length;) {
123609
+ let p = t.charAt(u++);
123610
+ if (r || p === "\\") {
123611
+ r = !r, m += p;
123612
+ continue;
123613
+ }
123614
+ if (h) {
123615
+ u === o + 1 ? (p === "^" || p === "!") && (a = !0) : p === "]" && !(u === o + 2 && a) && (h = !1), m += p;
123616
+ continue;
123617
+ } else if (p === "[") {
123618
+ h = !0, o = u, a = !1, m += p;
123619
+ continue;
123620
+ }
123621
+ if (!i.noext && Ze(p) && t.charAt(u) === "(") {
123622
+ e.push(m), m = "";
123623
+ let b = new n(p, e);
123624
+ u = n.#i(t, b, u, i), e.push(b);
123625
+ continue;
123626
+ }
123627
+ m += p;
123628
+ }
123629
+ return e.push(m), u;
123630
+ }
123631
+ let l = s + 1, f = new n(null, e), c = [], d = "";
123632
+ for (; l < t.length;) {
123633
+ let u = t.charAt(l++);
123634
+ if (r || u === "\\") {
123635
+ r = !r, d += u;
123636
+ continue;
123637
+ }
123638
+ if (h) {
123639
+ l === o + 1 ? (u === "^" || u === "!") && (a = !0) : u === "]" && !(l === o + 2 && a) && (h = !1), d += u;
123640
+ continue;
123641
+ } else if (u === "[") {
123642
+ h = !0, o = l, a = !1, d += u;
123643
+ continue;
123644
+ }
123645
+ if (Ze(u) && t.charAt(l) === "(") {
123646
+ f.push(d), d = "";
123647
+ let m = new n(u, f);
123648
+ f.push(m), l = n.#i(t, m, l, i);
123649
+ continue;
123650
+ }
123651
+ if (u === "|") {
123652
+ f.push(d), d = "", c.push(f), f = new n(null, e);
123653
+ continue;
123654
+ }
123655
+ if (u === ")") return d === "" && e.#r.length === 0 && (e.#u = !0), f.push(d), d = "", e.push(...c, f), l;
123656
+ d += u;
123657
+ }
123658
+ return e.type = null, e.#s = void 0, e.#r = [t.substring(s - 1)], l;
123659
+ }
123660
+ static fromGlob(t, e = {}) {
123661
+ let s = new n(null, void 0, e);
123662
+ return n.#i(t, s, 0, e), s;
123663
+ }
123664
+ toMMPattern() {
123665
+ if (this !== this.#t) return this.#t.toMMPattern();
123666
+ let t = this.toString(), [e, s, i, r] = this.toRegExpSource();
123667
+ if (!(i || this.#s || this.#o.nocase && !this.#o.nocaseMagicOnly && t.toUpperCase() !== t.toLowerCase())) return s;
123668
+ let o = (this.#o.nocase ? "i" : "") + (r ? "u" : "");
123669
+ return Object.assign(new RegExp(`^${e}$`, o), {
123670
+ _src: e,
123671
+ _glob: t
123672
+ });
123673
+ }
123674
+ get options() {
123675
+ return this.#o;
123676
+ }
123677
+ toRegExpSource(t) {
123678
+ let e = t ?? !!this.#o.dot;
123679
+ if (this.#t === this && this.#a(), !this.type) {
123680
+ let a = this.isStart() && this.isEnd() && !this.#r.some((u) => typeof u != "string"), l = this.#r.map((u) => {
123681
+ let [m, p, b, w] = typeof u == "string" ? n.#v(u, this.#s, a) : u.toRegExpSource(t);
123682
+ return this.#s = this.#s || b, this.#n = this.#n || w, m;
123683
+ }).join(""), f = "";
123684
+ if (this.isStart() && typeof this.#r[0] == "string" && !(this.#r.length === 1 && gi.has(this.#r[0]))) {
123685
+ let m = mi, p = e && m.has(l.charAt(0)) || l.startsWith("\\.") && m.has(l.charAt(2)) || l.startsWith("\\.\\.") && m.has(l.charAt(4)), b = !e && !t && m.has(l.charAt(0));
123686
+ f = p ? pi : b ? Pt : "";
123687
+ }
123688
+ let c = "";
123689
+ return this.isEnd() && this.#t.#c && this.#h?.type === "!" && (c = "(?:$|\\/)"), [
123690
+ f + l + c,
123691
+ (0, Mt.unescape)(l),
123692
+ this.#s = !!this.#s,
123693
+ this.#n
123694
+ ];
123695
+ }
123696
+ let s = this.type === "*" || this.type === "+", i = this.type === "!" ? "(?:(?!(?:" : "(?:", r = this.#d(e);
123697
+ if (this.isStart() && this.isEnd() && !r && this.type !== "!") {
123698
+ let a = this.toString();
123699
+ return this.#r = [a], this.type = null, this.#s = void 0, [
123700
+ a,
123701
+ (0, Mt.unescape)(this.toString()),
123702
+ !1,
123703
+ !1
123704
+ ];
123705
+ }
123706
+ let h = !s || t || e || !Pt ? "" : this.#d(!0);
123707
+ h === r && (h = ""), h && (r = `(?:${r})(?:${h})*?`);
123708
+ let o = "";
123709
+ if (this.type === "!" && this.#u) o = (this.isStart() && !e ? Pt : "") + ts;
123710
+ else {
123711
+ let a = this.type === "!" ? "))" + (this.isStart() && !e && !t ? Pt : "") + Qe + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && h ? ")" : this.type === "*" && h ? ")?" : `)${this.type}`;
123712
+ o = i + r + a;
123713
+ }
123714
+ return [
123715
+ o,
123716
+ (0, Mt.unescape)(r),
123717
+ this.#s = !!this.#s,
123718
+ this.#n
123719
+ ];
123720
+ }
123721
+ #d(t) {
123722
+ return this.#r.map((e) => {
123723
+ if (typeof e == "string") throw new Error("string type in extglob ast??");
123724
+ let [s, i, r, h] = e.toRegExpSource(t);
123725
+ return this.#n = this.#n || h, s;
123726
+ }).filter((e) => !(this.isStart() && this.isEnd()) || !!e).join("|");
123727
+ }
123728
+ static #v(t, e, s = !1) {
123729
+ let i = !1, r = "", h = !1, o = !1;
123730
+ for (let a = 0; a < t.length; a++) {
123731
+ let l = t.charAt(a);
123732
+ if (i) {
123733
+ i = !1, r += (wi.has(l) ? "\\" : "") + l;
123734
+ continue;
123735
+ }
123736
+ if (l === "*") {
123737
+ if (o) continue;
123738
+ o = !0, r += s && /^[*]+$/.test(t) ? ts : Qe, e = !0;
123739
+ continue;
123740
+ } else o = !1;
123741
+ if (l === "\\") {
123742
+ a === t.length - 1 ? r += "\\\\" : i = !0;
123743
+ continue;
123744
+ }
123745
+ if (l === "[") {
123746
+ let [f, c, d, u] = (0, fi.parseClass)(t, a);
123747
+ if (d) {
123748
+ r += f, h = h || c, a += d - 1, e = e || u;
123749
+ continue;
123750
+ }
123751
+ }
123752
+ if (l === "?") {
123753
+ r += de, e = !0;
123754
+ continue;
123755
+ }
123756
+ r += bi(l);
123757
+ }
123758
+ return [
123759
+ r,
123760
+ (0, Mt.unescape)(t),
123761
+ !!e,
123762
+ h
123763
+ ];
123764
+ }
123765
+ };
123766
+ });
123767
+ var me = R((Ft) => {
123768
+ "use strict";
123769
+ Object.defineProperty(Ft, "__esModule", { value: !0 });
123770
+ Ft.escape = void 0;
123771
+ var yi = (n, { windowsPathsNoEscape: t = !1, magicalBraces: e = !1 } = {}) => e ? t ? n.replace(/[?*()[\]{}]/g, "[$&]") : n.replace(/[?*()[\]\\{}]/g, "\\$&") : t ? n.replace(/[?*()[\]]/g, "[$&]") : n.replace(/[?*()[\]\\]/g, "\\$&");
123772
+ Ft.escape = yi;
123773
+ });
123774
+ var H = R((g) => {
123775
+ "use strict";
123776
+ Object.defineProperty(g, "__esModule", { value: !0 });
123777
+ g.unescape = g.escape = g.AST = g.Minimatch = g.match = g.makeRe = g.braceExpand = g.defaults = g.filter = g.GLOBSTAR = g.sep = g.minimatch = void 0;
123778
+ var Si = Ke(), jt = Xe(), is = pe(), vi = me(), Ei = kt(), _i = (n, t, e = {}) => ((0, jt.assertValidPattern)(t), !e.nocomment && t.charAt(0) === "#" ? !1 : new J(t, e).match(n));
123779
+ g.minimatch = _i;
123780
+ var Oi = /^\*+([^+@!?\*\[\(]*)$/, xi = (n) => (t) => !t.startsWith(".") && t.endsWith(n), Ti = (n) => (t) => t.endsWith(n), Ci = (n) => (n = n.toLowerCase(), (t) => !t.startsWith(".") && t.toLowerCase().endsWith(n)), Ri = (n) => (n = n.toLowerCase(), (t) => t.toLowerCase().endsWith(n)), Ai = /^\*+\.\*+$/, ki = (n) => !n.startsWith(".") && n.includes("."), Mi = (n) => n !== "." && n !== ".." && n.includes("."), Pi = /^\.\*+$/, Di = (n) => n !== "." && n !== ".." && n.startsWith("."), Fi = /^\*+$/, ji = (n) => n.length !== 0 && !n.startsWith("."), Ni = (n) => n.length !== 0 && n !== "." && n !== "..", Li = /^\?+([^+@!?\*\[\(]*)?$/, Wi = ([n, t = ""]) => {
123781
+ let e = rs([n]);
123782
+ return t ? (t = t.toLowerCase(), (s) => e(s) && s.toLowerCase().endsWith(t)) : e;
123783
+ }, Bi = ([n, t = ""]) => {
123784
+ let e = ns([n]);
123785
+ return t ? (t = t.toLowerCase(), (s) => e(s) && s.toLowerCase().endsWith(t)) : e;
123786
+ }, Ii = ([n, t = ""]) => {
123787
+ let e = ns([n]);
123788
+ return t ? (s) => e(s) && s.endsWith(t) : e;
123789
+ }, Gi = ([n, t = ""]) => {
123790
+ let e = rs([n]);
123791
+ return t ? (s) => e(s) && s.endsWith(t) : e;
123792
+ }, rs = ([n]) => {
123793
+ let t = n.length;
123794
+ return (e) => e.length === t && !e.startsWith(".");
123795
+ }, ns = ([n]) => {
123796
+ let t = n.length;
123797
+ return (e) => e.length === t && e !== "." && e !== "..";
123798
+ }, hs = typeof process == "object" && process ? typeof process.env == "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix", es = {
123799
+ win32: { sep: "\\" },
123800
+ posix: { sep: "/" }
123801
+ };
123802
+ g.sep = hs === "win32" ? es.win32.sep : es.posix.sep;
123803
+ g.minimatch.sep = g.sep;
123804
+ g.GLOBSTAR = Symbol("globstar **");
123805
+ g.minimatch.GLOBSTAR = g.GLOBSTAR;
123806
+ var Ui = "[^/]*?", $i = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?", qi = "(?:(?!(?:\\/|^)\\.).)*?", Hi = (n, t = {}) => (e) => (0, g.minimatch)(e, n, t);
123807
+ g.filter = Hi;
123808
+ g.minimatch.filter = g.filter;
123809
+ var F = (n, t = {}) => Object.assign({}, n, t), Vi = (n) => {
123810
+ if (!n || typeof n != "object" || !Object.keys(n).length) return g.minimatch;
123811
+ let t = g.minimatch;
123812
+ return Object.assign((s, i, r = {}) => t(s, i, F(n, r)), {
123813
+ Minimatch: class extends t.Minimatch {
123814
+ constructor(i, r = {}) {
123815
+ super(i, F(n, r));
123816
+ }
123817
+ static defaults(i) {
123818
+ return t.defaults(F(n, i)).Minimatch;
123819
+ }
123820
+ },
123821
+ AST: class extends t.AST {
123822
+ constructor(i, r, h = {}) {
123823
+ super(i, r, F(n, h));
123824
+ }
123825
+ static fromGlob(i, r = {}) {
123826
+ return t.AST.fromGlob(i, F(n, r));
123827
+ }
123828
+ },
123829
+ unescape: (s, i = {}) => t.unescape(s, F(n, i)),
123830
+ escape: (s, i = {}) => t.escape(s, F(n, i)),
123831
+ filter: (s, i = {}) => t.filter(s, F(n, i)),
123832
+ defaults: (s) => t.defaults(F(n, s)),
123833
+ makeRe: (s, i = {}) => t.makeRe(s, F(n, i)),
123834
+ braceExpand: (s, i = {}) => t.braceExpand(s, F(n, i)),
123835
+ match: (s, i, r = {}) => t.match(s, i, F(n, r)),
123836
+ sep: t.sep,
123837
+ GLOBSTAR: g.GLOBSTAR
123838
+ });
123839
+ };
123840
+ g.defaults = Vi;
123841
+ g.minimatch.defaults = g.defaults;
123842
+ var Ki = (n, t = {}) => ((0, jt.assertValidPattern)(n), t.nobrace || !/\{(?:(?!\{).)*\}/.test(n) ? [n] : (0, Si.expand)(n, { max: t.braceExpandMax }));
123843
+ g.braceExpand = Ki;
123844
+ g.minimatch.braceExpand = g.braceExpand;
123845
+ var Xi = (n, t = {}) => new J(n, t).makeRe();
123846
+ g.makeRe = Xi;
123847
+ g.minimatch.makeRe = g.makeRe;
123848
+ var Yi = (n, t, e = {}) => {
123849
+ let s = new J(t, e);
123850
+ return n = n.filter((i) => s.match(i)), s.options.nonull && !n.length && n.push(t), n;
123851
+ };
123852
+ g.match = Yi;
123853
+ g.minimatch.match = g.match;
123854
+ var ss = /[?*]|[+@!]\(.*?\)|\[|\]/, Ji = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), J = class {
123855
+ options;
123856
+ set;
123857
+ pattern;
123858
+ windowsPathsNoEscape;
123859
+ nonegate;
123860
+ negate;
123861
+ comment;
123862
+ empty;
123863
+ preserveMultipleSlashes;
123864
+ partial;
123865
+ globSet;
123866
+ globParts;
123867
+ nocase;
123868
+ isWindows;
123869
+ platform;
123870
+ windowsNoMagicRoot;
123871
+ regexp;
123872
+ constructor(t, e = {}) {
123873
+ (0, jt.assertValidPattern)(t), e = e || {}, this.options = e, this.pattern = t, this.platform = e.platform || hs, this.isWindows = this.platform === "win32";
123874
+ this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e["allowWindowsEscape"] === !1, this.windowsPathsNoEscape && (this.pattern = this.pattern.replace(/\\/g, "/")), this.preserveMultipleSlashes = !!e.preserveMultipleSlashes, this.regexp = null, this.negate = !1, this.nonegate = !!e.nonegate, this.comment = !1, this.empty = !1, this.partial = !!e.partial, this.nocase = !!this.options.nocase, this.windowsNoMagicRoot = e.windowsNoMagicRoot !== void 0 ? e.windowsNoMagicRoot : !!(this.isWindows && this.nocase), this.globSet = [], this.globParts = [], this.set = [], this.make();
123875
+ }
123876
+ hasMagic() {
123877
+ if (this.options.magicalBraces && this.set.length > 1) return !0;
123878
+ for (let t of this.set) for (let e of t) if (typeof e != "string") return !0;
123879
+ return !1;
123880
+ }
123881
+ debug(...t) {}
123882
+ make() {
123883
+ let t = this.pattern, e = this.options;
123884
+ if (!e.nocomment && t.charAt(0) === "#") {
123885
+ this.comment = !0;
123886
+ return;
123887
+ }
123888
+ if (!t) {
123889
+ this.empty = !0;
123890
+ return;
123891
+ }
123892
+ this.parseNegate(), this.globSet = [...new Set(this.braceExpand())], e.debug && (this.debug = (...r) => console.error(...r)), this.debug(this.pattern, this.globSet);
123893
+ let s = this.globSet.map((r) => this.slashSplit(r));
123894
+ this.globParts = this.preprocess(s), this.debug(this.pattern, this.globParts);
123895
+ let i = this.globParts.map((r, h, o) => {
123896
+ if (this.isWindows && this.windowsNoMagicRoot) {
123897
+ let a = r[0] === "" && r[1] === "" && (r[2] === "?" || !ss.test(r[2])) && !ss.test(r[3]), l = /^[a-z]:/i.test(r[0]);
123898
+ if (a) return [...r.slice(0, 4), ...r.slice(4).map((f) => this.parse(f))];
123899
+ if (l) return [r[0], ...r.slice(1).map((f) => this.parse(f))];
123900
+ }
123901
+ return r.map((a) => this.parse(a));
123902
+ });
123903
+ if (this.debug(this.pattern, i), this.set = i.filter((r) => r.indexOf(!1) === -1), this.isWindows) for (let r = 0; r < this.set.length; r++) {
123904
+ let h = this.set[r];
123905
+ h[0] === "" && h[1] === "" && this.globParts[r][2] === "?" && typeof h[3] == "string" && /^[a-z]:$/i.test(h[3]) && (h[2] = "?");
123906
+ }
123907
+ this.debug(this.pattern, this.set);
123908
+ }
123909
+ preprocess(t) {
123910
+ if (this.options.noglobstar) for (let s = 0; s < t.length; s++) for (let i = 0; i < t[s].length; i++) t[s][i] === "**" && (t[s][i] = "*");
123911
+ let { optimizationLevel: e = 1 } = this.options;
123912
+ return e >= 2 ? (t = this.firstPhasePreProcess(t), t = this.secondPhasePreProcess(t)) : e >= 1 ? t = this.levelOneOptimize(t) : t = this.adjascentGlobstarOptimize(t), t;
123913
+ }
123914
+ adjascentGlobstarOptimize(t) {
123915
+ return t.map((e) => {
123916
+ let s = -1;
123917
+ for (; (s = e.indexOf("**", s + 1)) !== -1;) {
123918
+ let i = s;
123919
+ for (; e[i + 1] === "**";) i++;
123920
+ i !== s && e.splice(s, i - s);
123921
+ }
123922
+ return e;
123923
+ });
123924
+ }
123925
+ levelOneOptimize(t) {
123926
+ return t.map((e) => (e = e.reduce((s, i) => {
123927
+ let r = s[s.length - 1];
123928
+ return i === "**" && r === "**" ? s : i === ".." && r && r !== ".." && r !== "." && r !== "**" ? (s.pop(), s) : (s.push(i), s);
123929
+ }, []), e.length === 0 ? [""] : e));
123930
+ }
123931
+ levelTwoFileOptimize(t) {
123932
+ Array.isArray(t) || (t = this.slashSplit(t));
123933
+ let e = !1;
123934
+ do {
123935
+ if (e = !1, !this.preserveMultipleSlashes) {
123936
+ for (let i = 1; i < t.length - 1; i++) {
123937
+ let r = t[i];
123938
+ i === 1 && r === "" && t[0] === "" || (r === "." || r === "") && (e = !0, t.splice(i, 1), i--);
123939
+ }
123940
+ t[0] === "." && t.length === 2 && (t[1] === "." || t[1] === "") && (e = !0, t.pop());
123941
+ }
123942
+ let s = 0;
123943
+ for (; (s = t.indexOf("..", s + 1)) !== -1;) {
123944
+ let i = t[s - 1];
123945
+ i && i !== "." && i !== ".." && i !== "**" && (e = !0, t.splice(s - 1, 2), s -= 2);
123946
+ }
123947
+ } while (e);
123948
+ return t.length === 0 ? [""] : t;
123949
+ }
123950
+ firstPhasePreProcess(t) {
123951
+ let e = !1;
123952
+ do {
123953
+ e = !1;
123954
+ for (let s of t) {
123955
+ let i = -1;
123956
+ for (; (i = s.indexOf("**", i + 1)) !== -1;) {
123957
+ let h = i;
123958
+ for (; s[h + 1] === "**";) h++;
123959
+ h > i && s.splice(i + 1, h - i);
123960
+ let o = s[i + 1], a = s[i + 2], l = s[i + 3];
123961
+ if (o !== ".." || !a || a === "." || a === ".." || !l || l === "." || l === "..") continue;
123962
+ e = !0, s.splice(i, 1);
123963
+ let f = s.slice(0);
123964
+ f[i] = "**", t.push(f), i--;
123965
+ }
123966
+ if (!this.preserveMultipleSlashes) {
123967
+ for (let h = 1; h < s.length - 1; h++) {
123968
+ let o = s[h];
123969
+ h === 1 && o === "" && s[0] === "" || (o === "." || o === "") && (e = !0, s.splice(h, 1), h--);
123970
+ }
123971
+ s[0] === "." && s.length === 2 && (s[1] === "." || s[1] === "") && (e = !0, s.pop());
123972
+ }
123973
+ let r = 0;
123974
+ for (; (r = s.indexOf("..", r + 1)) !== -1;) {
123975
+ let h = s[r - 1];
123976
+ if (h && h !== "." && h !== ".." && h !== "**") {
123977
+ e = !0;
123978
+ let a = r === 1 && s[r + 1] === "**" ? ["."] : [];
123979
+ s.splice(r - 1, 2, ...a), s.length === 0 && s.push(""), r -= 2;
123980
+ }
123981
+ }
123982
+ }
123983
+ } while (e);
123984
+ return t;
123985
+ }
123986
+ secondPhasePreProcess(t) {
123987
+ for (let e = 0; e < t.length - 1; e++) for (let s = e + 1; s < t.length; s++) {
123988
+ let i = this.partsMatch(t[e], t[s], !this.preserveMultipleSlashes);
123989
+ if (i) {
123990
+ t[e] = [], t[s] = i;
123991
+ break;
123992
+ }
123993
+ }
123994
+ return t.filter((e) => e.length);
123995
+ }
123996
+ partsMatch(t, e, s = !1) {
123997
+ let i = 0, r = 0, h = [], o = "";
123998
+ for (; i < t.length && r < e.length;) if (t[i] === e[r]) h.push(o === "b" ? e[r] : t[i]), i++, r++;
123999
+ else if (s && t[i] === "**" && e[r] === t[i + 1]) h.push(t[i]), i++;
124000
+ else if (s && e[r] === "**" && t[i] === e[r + 1]) h.push(e[r]), r++;
124001
+ else if (t[i] === "*" && e[r] && (this.options.dot || !e[r].startsWith(".")) && e[r] !== "**") {
124002
+ if (o === "b") return !1;
124003
+ o = "a", h.push(t[i]), i++, r++;
124004
+ } else if (e[r] === "*" && t[i] && (this.options.dot || !t[i].startsWith(".")) && t[i] !== "**") {
124005
+ if (o === "a") return !1;
124006
+ o = "b", h.push(e[r]), i++, r++;
124007
+ } else return !1;
124008
+ return t.length === e.length && h;
124009
+ }
124010
+ parseNegate() {
124011
+ if (this.nonegate) return;
124012
+ let t = this.pattern, e = !1, s = 0;
124013
+ for (let i = 0; i < t.length && t.charAt(i) === "!"; i++) e = !e, s++;
124014
+ s && (this.pattern = t.slice(s)), this.negate = e;
124015
+ }
124016
+ matchOne(t, e, s = !1) {
124017
+ let i = this.options;
124018
+ if (this.isWindows) {
124019
+ let p = typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]), b = !p && t[0] === "" && t[1] === "" && t[2] === "?" && /^[a-z]:$/i.test(t[3]), w = typeof e[0] == "string" && /^[a-z]:$/i.test(e[0]), v = !w && e[0] === "" && e[1] === "" && e[2] === "?" && typeof e[3] == "string" && /^[a-z]:$/i.test(e[3]), E = b ? 3 : p ? 0 : void 0, y = v ? 3 : w ? 0 : void 0;
124020
+ if (typeof E == "number" && typeof y == "number") {
124021
+ let [S, B] = [t[E], e[y]];
124022
+ S.toLowerCase() === B.toLowerCase() && (e[y] = S, y > E ? e = e.slice(y) : E > y && (t = t.slice(E)));
124023
+ }
124024
+ }
124025
+ let { optimizationLevel: r = 1 } = this.options;
124026
+ r >= 2 && (t = this.levelTwoFileOptimize(t)), this.debug("matchOne", this, {
124027
+ file: t,
124028
+ pattern: e
124029
+ }), this.debug("matchOne", t.length, e.length);
124030
+ for (var h = 0, o = 0, a = t.length, l = e.length; h < a && o < l; h++, o++) {
124031
+ this.debug("matchOne loop");
124032
+ var f = e[o], c = t[h];
124033
+ if (this.debug(e, f, c), f === !1) return !1;
124034
+ if (f === g.GLOBSTAR) {
124035
+ this.debug("GLOBSTAR", [
124036
+ e,
124037
+ f,
124038
+ c
124039
+ ]);
124040
+ var d = h, u = o + 1;
124041
+ if (u === l) {
124042
+ for (this.debug("** at the end"); h < a; h++) if (t[h] === "." || t[h] === ".." || !i.dot && t[h].charAt(0) === ".") return !1;
124043
+ return !0;
124044
+ }
124045
+ for (; d < a;) {
124046
+ var m = t[d];
124047
+ if (this.debug(`
124048
+ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) return this.debug("globstar found match!", d, a, m), !0;
124049
+ if (m === "." || m === ".." || !i.dot && m.charAt(0) === ".") {
124050
+ this.debug("dot detected!", t, d, e, u);
124051
+ break;
124052
+ }
124053
+ this.debug("globstar swallow a segment, and continue"), d++;
124054
+ }
124055
+ return !!(s && (this.debug(`
124056
+ >>> no match, partial?`, t, d, e, u), d === a));
124057
+ }
124058
+ let p;
124059
+ if (typeof f == "string" ? (p = c === f, this.debug("string match", f, c, p)) : (p = f.test(c), this.debug("pattern match", f, c, p)), !p) return !1;
124060
+ }
124061
+ if (h === a && o === l) return !0;
124062
+ if (h === a) return s;
124063
+ if (o === l) return h === a - 1 && t[h] === "";
124064
+ throw new Error("wtf?");
124065
+ }
124066
+ braceExpand() {
124067
+ return (0, g.braceExpand)(this.pattern, this.options);
124068
+ }
124069
+ parse(t) {
124070
+ (0, jt.assertValidPattern)(t);
124071
+ let e = this.options;
124072
+ if (t === "**") return g.GLOBSTAR;
124073
+ if (t === "") return "";
124074
+ let s, i = null;
124075
+ (s = t.match(Fi)) ? i = e.dot ? Ni : ji : (s = t.match(Oi)) ? i = (e.nocase ? e.dot ? Ri : Ci : e.dot ? Ti : xi)(s[1]) : (s = t.match(Li)) ? i = (e.nocase ? e.dot ? Bi : Wi : e.dot ? Ii : Gi)(s) : (s = t.match(Ai)) ? i = e.dot ? Mi : ki : (s = t.match(Pi)) && (i = Di);
124076
+ let r = is.AST.fromGlob(t, this.options).toMMPattern();
124077
+ return i && typeof r == "object" && Reflect.defineProperty(r, "test", { value: i }), r;
124078
+ }
124079
+ makeRe() {
124080
+ if (this.regexp || this.regexp === !1) return this.regexp;
124081
+ let t = this.set;
124082
+ if (!t.length) return this.regexp = !1, this.regexp;
124083
+ let e = this.options, s = e.noglobstar ? Ui : e.dot ? $i : qi, i = new Set(e.nocase ? ["i"] : []), r = t.map((a) => {
124084
+ let l = a.map((c) => {
124085
+ if (c instanceof RegExp) for (let d of c.flags.split("")) i.add(d);
124086
+ return typeof c == "string" ? Ji(c) : c === g.GLOBSTAR ? g.GLOBSTAR : c._src;
124087
+ });
124088
+ l.forEach((c, d) => {
124089
+ let u = l[d + 1], m = l[d - 1];
124090
+ c !== g.GLOBSTAR || m === g.GLOBSTAR || (m === void 0 ? u !== void 0 && u !== g.GLOBSTAR ? l[d + 1] = "(?:\\/|" + s + "\\/)?" + u : l[d] = s : u === void 0 ? l[d - 1] = m + "(?:\\/|\\/" + s + ")?" : u !== g.GLOBSTAR && (l[d - 1] = m + "(?:\\/|\\/" + s + "\\/)" + u, l[d + 1] = g.GLOBSTAR));
124091
+ });
124092
+ let f = l.filter((c) => c !== g.GLOBSTAR);
124093
+ if (this.partial && f.length >= 1) {
124094
+ let c = [];
124095
+ for (let d = 1; d <= f.length; d++) c.push(f.slice(0, d).join("/"));
124096
+ return "(?:" + c.join("|") + ")";
124097
+ }
124098
+ return f.join("/");
124099
+ }).join("|"), [h, o] = t.length > 1 ? ["(?:", ")"] : ["", ""];
124100
+ r = "^" + h + r + o + "$", this.partial && (r = "^(?:\\/|" + h + r.slice(1, -1) + o + ")$"), this.negate && (r = "^(?!" + r + ").+$");
124101
+ try {
124102
+ this.regexp = new RegExp(r, [...i].join(""));
124103
+ } catch {
124104
+ this.regexp = !1;
124105
+ }
124106
+ return this.regexp;
124107
+ }
124108
+ slashSplit(t) {
124109
+ return this.preserveMultipleSlashes ? t.split("/") : this.isWindows && /^\/\/[^\/]+/.test(t) ? ["", ...t.split(/\/+/)] : t.split(/\/+/);
124110
+ }
124111
+ match(t, e = this.partial) {
124112
+ if (this.debug("match", t, this.pattern), this.comment) return !1;
124113
+ if (this.empty) return t === "";
124114
+ if (t === "/" && e) return !0;
124115
+ let s = this.options;
124116
+ this.isWindows && (t = t.split("\\").join("/"));
124117
+ let i = this.slashSplit(t);
124118
+ this.debug(this.pattern, "split", i);
124119
+ let r = this.set;
124120
+ this.debug(this.pattern, "set", r);
124121
+ let h = i[i.length - 1];
124122
+ if (!h) for (let o = i.length - 2; !h && o >= 0; o--) h = i[o];
124123
+ for (let o = 0; o < r.length; o++) {
124124
+ let a = r[o], l = i;
124125
+ if (s.matchBase && a.length === 1 && (l = [h]), this.matchOne(l, a, e)) return s.flipNegate ? !0 : !this.negate;
124126
+ }
124127
+ return s.flipNegate ? !1 : this.negate;
124128
+ }
124129
+ static defaults(t) {
124130
+ return g.minimatch.defaults(t).Minimatch;
124131
+ }
124132
+ };
124133
+ g.Minimatch = J;
124134
+ var Zi = pe();
124135
+ Object.defineProperty(g, "AST", {
124136
+ enumerable: !0,
124137
+ get: function() {
124138
+ return Zi.AST;
124139
+ }
124140
+ });
124141
+ var Qi = me();
124142
+ Object.defineProperty(g, "escape", {
124143
+ enumerable: !0,
124144
+ get: function() {
124145
+ return Qi.escape;
124146
+ }
124147
+ });
124148
+ var tr = kt();
124149
+ Object.defineProperty(g, "unescape", {
124150
+ enumerable: !0,
124151
+ get: function() {
124152
+ return tr.unescape;
124153
+ }
124154
+ });
124155
+ g.minimatch.AST = is.AST;
124156
+ g.minimatch.Minimatch = J;
124157
+ g.minimatch.escape = vi.escape;
124158
+ g.minimatch.unescape = Ei.unescape;
124159
+ });
124160
+ var fs = R((Wt) => {
124161
+ "use strict";
124162
+ Object.defineProperty(Wt, "__esModule", { value: !0 });
124163
+ Wt.LRUCache = void 0;
124164
+ var er = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, as = /* @__PURE__ */ new Set(), ge = typeof process == "object" && process ? process : {}, ls = (n, t, e, s) => {
124165
+ typeof ge.emitWarning == "function" ? ge.emitWarning(n, t, e, s) : console.error(`[${e}] ${t}: ${n}`);
124166
+ }, Lt = globalThis.AbortController, os = globalThis.AbortSignal;
124167
+ if (typeof Lt > "u") {
124168
+ os = class {
124169
+ onabort;
124170
+ _onabort = [];
124171
+ reason;
124172
+ aborted = !1;
124173
+ addEventListener(e, s) {
124174
+ this._onabort.push(s);
124175
+ }
124176
+ }, Lt = class {
124177
+ constructor() {
124178
+ t();
124179
+ }
124180
+ signal = new os();
124181
+ abort(e) {
124182
+ if (!this.signal.aborted) {
124183
+ this.signal.reason = e, this.signal.aborted = !0;
124184
+ for (let s of this.signal._onabort) s(e);
124185
+ this.signal.onabort?.(e);
124186
+ }
124187
+ }
124188
+ };
124189
+ let n = ge.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1", t = () => {
124190
+ n && (n = !1, ls("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t));
124191
+ };
124192
+ }
124193
+ var sr = (n) => !as.has(n), V = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n), cs = (n) => V(n) ? n <= Math.pow(2, 8) ? Uint8Array : n <= Math.pow(2, 16) ? Uint16Array : n <= Math.pow(2, 32) ? Uint32Array : n <= Number.MAX_SAFE_INTEGER ? Nt : null : null, Nt = class extends Array {
124194
+ constructor(n) {
124195
+ super(n), this.fill(0);
124196
+ }
124197
+ }, ir = class at {
124198
+ heap;
124199
+ length;
124200
+ static #t = !1;
124201
+ static create(t) {
124202
+ let e = cs(t);
124203
+ if (!e) return [];
124204
+ at.#t = !0;
124205
+ let s = new at(t, e);
124206
+ return at.#t = !1, s;
124207
+ }
124208
+ constructor(t, e) {
124209
+ if (!at.#t) throw new TypeError("instantiate Stack using Stack.create(n)");
124210
+ this.heap = new e(t), this.length = 0;
124211
+ }
124212
+ push(t) {
124213
+ this.heap[this.length++] = t;
124214
+ }
124215
+ pop() {
124216
+ return this.heap[--this.length];
124217
+ }
124218
+ };
124219
+ Wt.LRUCache = class us {
124220
+ #t;
124221
+ #s;
124222
+ #n;
124223
+ #r;
124224
+ #h;
124225
+ #S;
124226
+ #w;
124227
+ #c;
124228
+ get perf() {
124229
+ return this.#c;
124230
+ }
124231
+ ttl;
124232
+ ttlResolution;
124233
+ ttlAutopurge;
124234
+ updateAgeOnGet;
124235
+ updateAgeOnHas;
124236
+ allowStale;
124237
+ noDisposeOnSet;
124238
+ noUpdateTTL;
124239
+ maxEntrySize;
124240
+ sizeCalculation;
124241
+ noDeleteOnFetchRejection;
124242
+ noDeleteOnStaleGet;
124243
+ allowStaleOnFetchAbort;
124244
+ allowStaleOnFetchRejection;
124245
+ ignoreFetchAbort;
124246
+ #o;
124247
+ #f;
124248
+ #u;
124249
+ #a;
124250
+ #i;
124251
+ #d;
124252
+ #v;
124253
+ #y;
124254
+ #p;
124255
+ #R;
124256
+ #m;
124257
+ #O;
124258
+ #x;
124259
+ #g;
124260
+ #b;
124261
+ #E;
124262
+ #T;
124263
+ #e;
124264
+ #F;
124265
+ static unsafeExposeInternals(t) {
124266
+ return {
124267
+ starts: t.#x,
124268
+ ttls: t.#g,
124269
+ autopurgeTimers: t.#b,
124270
+ sizes: t.#O,
124271
+ keyMap: t.#u,
124272
+ keyList: t.#a,
124273
+ valList: t.#i,
124274
+ next: t.#d,
124275
+ prev: t.#v,
124276
+ get head() {
124277
+ return t.#y;
124278
+ },
124279
+ get tail() {
124280
+ return t.#p;
124281
+ },
124282
+ free: t.#R,
124283
+ isBackgroundFetch: (e) => t.#l(e),
124284
+ backgroundFetch: (e, s, i, r) => t.#z(e, s, i, r),
124285
+ moveToTail: (e) => t.#N(e),
124286
+ indexes: (e) => t.#k(e),
124287
+ rindexes: (e) => t.#M(e),
124288
+ isStale: (e) => t.#_(e)
124289
+ };
124290
+ }
124291
+ get max() {
124292
+ return this.#t;
124293
+ }
124294
+ get maxSize() {
124295
+ return this.#s;
124296
+ }
124297
+ get calculatedSize() {
124298
+ return this.#f;
124299
+ }
124300
+ get size() {
124301
+ return this.#o;
124302
+ }
124303
+ get fetchMethod() {
124304
+ return this.#S;
124305
+ }
124306
+ get memoMethod() {
124307
+ return this.#w;
124308
+ }
124309
+ get dispose() {
124310
+ return this.#n;
124311
+ }
124312
+ get onInsert() {
124313
+ return this.#r;
124314
+ }
124315
+ get disposeAfter() {
124316
+ return this.#h;
124317
+ }
124318
+ constructor(t) {
124319
+ let { max: e = 0, ttl: s, ttlResolution: i = 1, ttlAutopurge: r, updateAgeOnGet: h, updateAgeOnHas: o, allowStale: a, dispose: l, onInsert: f, disposeAfter: c, noDisposeOnSet: d, noUpdateTTL: u, maxSize: m = 0, maxEntrySize: p = 0, sizeCalculation: b, fetchMethod: w, memoMethod: v, noDeleteOnFetchRejection: E, noDeleteOnStaleGet: y, allowStaleOnFetchRejection: S, allowStaleOnFetchAbort: B, ignoreFetchAbort: U, perf: et } = t;
124320
+ if (et !== void 0 && typeof et?.now != "function") throw new TypeError("perf option must have a now() method if specified");
124321
+ if (this.#c = et ?? er, e !== 0 && !V(e)) throw new TypeError("max option must be a nonnegative integer");
124322
+ let st = e ? cs(e) : Array;
124323
+ if (!st) throw new Error("invalid max value: " + e);
124324
+ if (this.#t = e, this.#s = m, this.maxEntrySize = p || this.#s, this.sizeCalculation = b, this.sizeCalculation) {
124325
+ if (!this.#s && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
124326
+ if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
124327
+ }
124328
+ if (v !== void 0 && typeof v != "function") throw new TypeError("memoMethod must be a function if defined");
124329
+ if (this.#w = v, w !== void 0 && typeof w != "function") throw new TypeError("fetchMethod must be a function if specified");
124330
+ if (this.#S = w, this.#T = !!w, this.#u = /* @__PURE__ */ new Map(), this.#a = new Array(e).fill(void 0), this.#i = new Array(e).fill(void 0), this.#d = new st(e), this.#v = new st(e), this.#y = 0, this.#p = 0, this.#R = ir.create(e), this.#o = 0, this.#f = 0, typeof l == "function" && (this.#n = l), typeof f == "function" && (this.#r = f), typeof c == "function" ? (this.#h = c, this.#m = []) : (this.#h = void 0, this.#m = void 0), this.#E = !!this.#n, this.#F = !!this.#r, this.#e = !!this.#h, this.noDisposeOnSet = !!d, this.noUpdateTTL = !!u, this.noDeleteOnFetchRejection = !!E, this.allowStaleOnFetchRejection = !!S, this.allowStaleOnFetchAbort = !!B, this.ignoreFetchAbort = !!U, this.maxEntrySize !== 0) {
124331
+ if (this.#s !== 0 && !V(this.#s)) throw new TypeError("maxSize must be a positive integer if specified");
124332
+ if (!V(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
124333
+ this.#$();
124334
+ }
124335
+ if (this.allowStale = !!a, this.noDeleteOnStaleGet = !!y, this.updateAgeOnGet = !!h, this.updateAgeOnHas = !!o, this.ttlResolution = V(i) || i === 0 ? i : 1, this.ttlAutopurge = !!r, this.ttl = s || 0, this.ttl) {
124336
+ if (!V(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
124337
+ this.#P();
124338
+ }
124339
+ if (this.#t === 0 && this.ttl === 0 && this.#s === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
124340
+ if (!this.ttlAutopurge && !this.#t && !this.#s) {
124341
+ let le = "LRU_CACHE_UNBOUNDED";
124342
+ sr(le) && (as.add(le), ls("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", le, us));
124343
+ }
124344
+ }
124345
+ getRemainingTTL(t) {
124346
+ return this.#u.has(t) ? Infinity : 0;
124347
+ }
124348
+ #P() {
124349
+ let t = new Nt(this.#t), e = new Nt(this.#t);
124350
+ this.#g = t, this.#x = e;
124351
+ let s = this.ttlAutopurge ? new Array(this.#t) : void 0;
124352
+ this.#b = s, this.#W = (h, o, a = this.#c.now()) => {
124353
+ if (e[h] = o !== 0 ? a : 0, t[h] = o, s?.[h] && (clearTimeout(s[h]), s[h] = void 0), o !== 0 && s) {
124354
+ let l = setTimeout(() => {
124355
+ this.#_(h) && this.#A(this.#a[h], "expire");
124356
+ }, o + 1);
124357
+ l.unref && l.unref(), s[h] = l;
124358
+ }
124359
+ }, this.#C = (h) => {
124360
+ e[h] = t[h] !== 0 ? this.#c.now() : 0;
124361
+ }, this.#D = (h, o) => {
124362
+ if (t[o]) {
124363
+ let a = t[o], l = e[o];
124364
+ if (!a || !l) return;
124365
+ h.ttl = a, h.start = l, h.now = i || r();
124366
+ h.remainingTTL = a - (h.now - l);
124367
+ }
124368
+ };
124369
+ let i = 0, r = () => {
124370
+ let h = this.#c.now();
124371
+ if (this.ttlResolution > 0) {
124372
+ i = h;
124373
+ let o = setTimeout(() => i = 0, this.ttlResolution);
124374
+ o.unref && o.unref();
124375
+ }
124376
+ return h;
124377
+ };
124378
+ this.getRemainingTTL = (h) => {
124379
+ let o = this.#u.get(h);
124380
+ if (o === void 0) return 0;
124381
+ let a = t[o], l = e[o];
124382
+ if (!a || !l) return Infinity;
124383
+ return a - ((i || r()) - l);
124384
+ }, this.#_ = (h) => {
124385
+ let o = e[h], a = t[h];
124386
+ return !!a && !!o && (i || r()) - o > a;
124387
+ };
124388
+ }
124389
+ #C = () => {};
124390
+ #D = () => {};
124391
+ #W = () => {};
124392
+ #_ = () => !1;
124393
+ #$() {
124394
+ let t = new Nt(this.#t);
124395
+ this.#f = 0, this.#O = t, this.#L = (e) => {
124396
+ this.#f -= t[e], t[e] = 0;
124397
+ }, this.#B = (e, s, i, r) => {
124398
+ if (this.#l(s)) return 0;
124399
+ if (!V(i)) if (r) {
124400
+ if (typeof r != "function") throw new TypeError("sizeCalculation must be a function");
124401
+ if (i = r(s, e), !V(i)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
124402
+ } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
124403
+ return i;
124404
+ }, this.#j = (e, s, i) => {
124405
+ if (t[e] = s, this.#s) {
124406
+ let r = this.#s - t[e];
124407
+ for (; this.#f > r;) this.#G(!0);
124408
+ }
124409
+ this.#f += t[e], i && (i.entrySize = s, i.totalCalculatedSize = this.#f);
124410
+ };
124411
+ }
124412
+ #L = (t) => {};
124413
+ #j = (t, e, s) => {};
124414
+ #B = (t, e, s, i) => {
124415
+ if (s || i) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
124416
+ return 0;
124417
+ };
124418
+ *#k({ allowStale: t = this.allowStale } = {}) {
124419
+ if (this.#o) for (let e = this.#p; !(!this.#I(e) || ((t || !this.#_(e)) && (yield e), e === this.#y));) e = this.#v[e];
124420
+ }
124421
+ *#M({ allowStale: t = this.allowStale } = {}) {
124422
+ if (this.#o) for (let e = this.#y; !(!this.#I(e) || ((t || !this.#_(e)) && (yield e), e === this.#p));) e = this.#d[e];
124423
+ }
124424
+ #I(t) {
124425
+ return t !== void 0 && this.#u.get(this.#a[t]) === t;
124426
+ }
124427
+ *entries() {
124428
+ for (let t of this.#k()) this.#i[t] !== void 0 && this.#a[t] !== void 0 && !this.#l(this.#i[t]) && (yield [this.#a[t], this.#i[t]]);
124429
+ }
124430
+ *rentries() {
124431
+ for (let t of this.#M()) this.#i[t] !== void 0 && this.#a[t] !== void 0 && !this.#l(this.#i[t]) && (yield [this.#a[t], this.#i[t]]);
124432
+ }
124433
+ *keys() {
124434
+ for (let t of this.#k()) {
124435
+ let e = this.#a[t];
124436
+ e !== void 0 && !this.#l(this.#i[t]) && (yield e);
124437
+ }
124438
+ }
124439
+ *rkeys() {
124440
+ for (let t of this.#M()) {
124441
+ let e = this.#a[t];
124442
+ e !== void 0 && !this.#l(this.#i[t]) && (yield e);
124443
+ }
124444
+ }
124445
+ *values() {
124446
+ for (let t of this.#k()) this.#i[t] !== void 0 && !this.#l(this.#i[t]) && (yield this.#i[t]);
124447
+ }
124448
+ *rvalues() {
124449
+ for (let t of this.#M()) this.#i[t] !== void 0 && !this.#l(this.#i[t]) && (yield this.#i[t]);
124450
+ }
124451
+ [Symbol.iterator]() {
124452
+ return this.entries();
124453
+ }
124454
+ [Symbol.toStringTag] = "LRUCache";
124455
+ find(t, e = {}) {
124456
+ for (let s of this.#k()) {
124457
+ let i = this.#i[s], r = this.#l(i) ? i.__staleWhileFetching : i;
124458
+ if (r !== void 0 && t(r, this.#a[s], this)) return this.get(this.#a[s], e);
124459
+ }
124460
+ }
124461
+ forEach(t, e = this) {
124462
+ for (let s of this.#k()) {
124463
+ let i = this.#i[s], r = this.#l(i) ? i.__staleWhileFetching : i;
124464
+ r !== void 0 && t.call(e, r, this.#a[s], this);
124465
+ }
124466
+ }
124467
+ rforEach(t, e = this) {
124468
+ for (let s of this.#M()) {
124469
+ let i = this.#i[s], r = this.#l(i) ? i.__staleWhileFetching : i;
124470
+ r !== void 0 && t.call(e, r, this.#a[s], this);
124471
+ }
124472
+ }
124473
+ purgeStale() {
124474
+ let t = !1;
124475
+ for (let e of this.#M({ allowStale: !0 })) this.#_(e) && (this.#A(this.#a[e], "expire"), t = !0);
124476
+ return t;
124477
+ }
124478
+ info(t) {
124479
+ let e = this.#u.get(t);
124480
+ if (e === void 0) return;
124481
+ let s = this.#i[e], i = this.#l(s) ? s.__staleWhileFetching : s;
124482
+ if (i === void 0) return;
124483
+ let r = { value: i };
124484
+ if (this.#g && this.#x) {
124485
+ let h = this.#g[e], o = this.#x[e];
124486
+ if (h && o) r.ttl = h - (this.#c.now() - o), r.start = Date.now();
124487
+ }
124488
+ return this.#O && (r.size = this.#O[e]), r;
124489
+ }
124490
+ dump() {
124491
+ let t = [];
124492
+ for (let e of this.#k({ allowStale: !0 })) {
124493
+ let s = this.#a[e], i = this.#i[e], r = this.#l(i) ? i.__staleWhileFetching : i;
124494
+ if (r === void 0 || s === void 0) continue;
124495
+ let h = { value: r };
124496
+ if (this.#g && this.#x) {
124497
+ h.ttl = this.#g[e];
124498
+ let o = this.#c.now() - this.#x[e];
124499
+ h.start = Math.floor(Date.now() - o);
124500
+ }
124501
+ this.#O && (h.size = this.#O[e]), t.unshift([s, h]);
124502
+ }
124503
+ return t;
124504
+ }
124505
+ load(t) {
124506
+ this.clear();
124507
+ for (let [e, s] of t) {
124508
+ if (s.start) {
124509
+ let i = Date.now() - s.start;
124510
+ s.start = this.#c.now() - i;
124511
+ }
124512
+ this.set(e, s.value, s);
124513
+ }
124514
+ }
124515
+ set(t, e, s = {}) {
124516
+ if (e === void 0) return this.delete(t), this;
124517
+ let { ttl: i = this.ttl, start: r, noDisposeOnSet: h = this.noDisposeOnSet, sizeCalculation: o = this.sizeCalculation, status: a } = s, { noUpdateTTL: l = this.noUpdateTTL } = s, f = this.#B(t, e, s.size || 0, o);
124518
+ if (this.maxEntrySize && f > this.maxEntrySize) return a && (a.set = "miss", a.maxEntrySizeExceeded = !0), this.#A(t, "set"), this;
124519
+ let c = this.#o === 0 ? void 0 : this.#u.get(t);
124520
+ if (c === void 0) c = this.#o === 0 ? this.#p : this.#R.length !== 0 ? this.#R.pop() : this.#o === this.#t ? this.#G(!1) : this.#o, this.#a[c] = t, this.#i[c] = e, this.#u.set(t, c), this.#d[this.#p] = c, this.#v[c] = this.#p, this.#p = c, this.#o++, this.#j(c, f, a), a && (a.set = "add"), l = !1, this.#F && this.#r?.(e, t, "add");
124521
+ else {
124522
+ this.#N(c);
124523
+ let d = this.#i[c];
124524
+ if (e !== d) {
124525
+ if (this.#T && this.#l(d)) {
124526
+ d.__abortController.abort(/* @__PURE__ */ new Error("replaced"));
124527
+ let { __staleWhileFetching: u } = d;
124528
+ u !== void 0 && !h && (this.#E && this.#n?.(u, t, "set"), this.#e && this.#m?.push([
124529
+ u,
124530
+ t,
124531
+ "set"
124532
+ ]));
124533
+ } else h || (this.#E && this.#n?.(d, t, "set"), this.#e && this.#m?.push([
124534
+ d,
124535
+ t,
124536
+ "set"
124537
+ ]));
124538
+ if (this.#L(c), this.#j(c, f, a), this.#i[c] = e, a) {
124539
+ a.set = "replace";
124540
+ let u = d && this.#l(d) ? d.__staleWhileFetching : d;
124541
+ u !== void 0 && (a.oldValue = u);
124542
+ }
124543
+ } else a && (a.set = "update");
124544
+ this.#F && this.onInsert?.(e, t, e === d ? "update" : "replace");
124545
+ }
124546
+ if (i !== 0 && !this.#g && this.#P(), this.#g && (l || this.#W(c, i, r), a && this.#D(a, c)), !h && this.#e && this.#m) {
124547
+ let d = this.#m, u;
124548
+ for (; u = d?.shift();) this.#h?.(...u);
124549
+ }
124550
+ return this;
124551
+ }
124552
+ pop() {
124553
+ try {
124554
+ for (; this.#o;) {
124555
+ let t = this.#i[this.#y];
124556
+ if (this.#G(!0), this.#l(t)) {
124557
+ if (t.__staleWhileFetching) return t.__staleWhileFetching;
124558
+ } else if (t !== void 0) return t;
124559
+ }
124560
+ } finally {
124561
+ if (this.#e && this.#m) {
124562
+ let t = this.#m, e;
124563
+ for (; e = t?.shift();) this.#h?.(...e);
124564
+ }
124565
+ }
124566
+ }
124567
+ #G(t) {
124568
+ let e = this.#y, s = this.#a[e], i = this.#i[e];
124569
+ return this.#T && this.#l(i) ? i.__abortController.abort(/* @__PURE__ */ new Error("evicted")) : (this.#E || this.#e) && (this.#E && this.#n?.(i, s, "evict"), this.#e && this.#m?.push([
124570
+ i,
124571
+ s,
124572
+ "evict"
124573
+ ])), this.#L(e), this.#b?.[e] && (clearTimeout(this.#b[e]), this.#b[e] = void 0), t && (this.#a[e] = void 0, this.#i[e] = void 0, this.#R.push(e)), this.#o === 1 ? (this.#y = this.#p = 0, this.#R.length = 0) : this.#y = this.#d[e], this.#u.delete(s), this.#o--, e;
124574
+ }
124575
+ has(t, e = {}) {
124576
+ let { updateAgeOnHas: s = this.updateAgeOnHas, status: i } = e, r = this.#u.get(t);
124577
+ if (r !== void 0) {
124578
+ let h = this.#i[r];
124579
+ if (this.#l(h) && h.__staleWhileFetching === void 0) return !1;
124580
+ if (this.#_(r)) i && (i.has = "stale", this.#D(i, r));
124581
+ else return s && this.#C(r), i && (i.has = "hit", this.#D(i, r)), !0;
124582
+ } else i && (i.has = "miss");
124583
+ return !1;
124584
+ }
124585
+ peek(t, e = {}) {
124586
+ let { allowStale: s = this.allowStale } = e, i = this.#u.get(t);
124587
+ if (i === void 0 || !s && this.#_(i)) return;
124588
+ let r = this.#i[i];
124589
+ return this.#l(r) ? r.__staleWhileFetching : r;
124590
+ }
124591
+ #z(t, e, s, i) {
124592
+ let r = e === void 0 ? void 0 : this.#i[e];
124593
+ if (this.#l(r)) return r;
124594
+ let h = new Lt(), { signal: o } = s;
124595
+ o?.addEventListener("abort", () => h.abort(o.reason), { signal: h.signal });
124596
+ let a = {
124597
+ signal: h.signal,
124598
+ options: s,
124599
+ context: i
124600
+ }, l = (p, b = !1) => {
124601
+ let { aborted: w } = h.signal, v = s.ignoreFetchAbort && p !== void 0, E = s.ignoreFetchAbort || !!(s.allowStaleOnFetchAbort && p !== void 0);
124602
+ if (s.status && (w && !b ? (s.status.fetchAborted = !0, s.status.fetchError = h.signal.reason, v && (s.status.fetchAbortIgnored = !0)) : s.status.fetchResolved = !0), w && !v && !b) return c(h.signal.reason, E);
124603
+ let y = u, S = this.#i[e];
124604
+ return (S === u || v && b && S === void 0) && (p === void 0 ? y.__staleWhileFetching !== void 0 ? this.#i[e] = y.__staleWhileFetching : this.#A(t, "fetch") : (s.status && (s.status.fetchUpdated = !0), this.set(t, p, a.options))), p;
124605
+ }, f = (p) => (s.status && (s.status.fetchRejected = !0, s.status.fetchError = p), c(p, !1)), c = (p, b) => {
124606
+ let { aborted: w } = h.signal, v = w && s.allowStaleOnFetchAbort, E = v || s.allowStaleOnFetchRejection, y = E || s.noDeleteOnFetchRejection, S = u;
124607
+ if (this.#i[e] === u && (!y || !b && S.__staleWhileFetching === void 0 ? this.#A(t, "fetch") : v || (this.#i[e] = S.__staleWhileFetching)), E) return s.status && S.__staleWhileFetching !== void 0 && (s.status.returnedStale = !0), S.__staleWhileFetching;
124608
+ if (S.__returned === S) throw p;
124609
+ }, d = (p, b) => {
124610
+ let w = this.#S?.(t, r, a);
124611
+ w && w instanceof Promise && w.then((v) => p(v === void 0 ? void 0 : v), b), h.signal.addEventListener("abort", () => {
124612
+ (!s.ignoreFetchAbort || s.allowStaleOnFetchAbort) && (p(void 0), s.allowStaleOnFetchAbort && (p = (v) => l(v, !0)));
124613
+ });
124614
+ };
124615
+ s.status && (s.status.fetchDispatched = !0);
124616
+ let u = new Promise(d).then(l, f), m = Object.assign(u, {
124617
+ __abortController: h,
124618
+ __staleWhileFetching: r,
124619
+ __returned: void 0
124620
+ });
124621
+ return e === void 0 ? (this.set(t, m, {
124622
+ ...a.options,
124623
+ status: void 0
124624
+ }), e = this.#u.get(t)) : this.#i[e] = m, m;
124625
+ }
124626
+ #l(t) {
124627
+ if (!this.#T) return !1;
124628
+ let e = t;
124629
+ return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof Lt;
124630
+ }
124631
+ async fetch(t, e = {}) {
124632
+ let { allowStale: s = this.allowStale, updateAgeOnGet: i = this.updateAgeOnGet, noDeleteOnStaleGet: r = this.noDeleteOnStaleGet, ttl: h = this.ttl, noDisposeOnSet: o = this.noDisposeOnSet, size: a = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: f = this.noUpdateTTL, noDeleteOnFetchRejection: c = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: d = this.allowStaleOnFetchRejection, ignoreFetchAbort: u = this.ignoreFetchAbort, allowStaleOnFetchAbort: m = this.allowStaleOnFetchAbort, context: p, forceRefresh: b = !1, status: w, signal: v } = e;
124633
+ if (!this.#T) return w && (w.fetch = "get"), this.get(t, {
124634
+ allowStale: s,
124635
+ updateAgeOnGet: i,
124636
+ noDeleteOnStaleGet: r,
124637
+ status: w
124638
+ });
124639
+ let E = {
124640
+ allowStale: s,
124641
+ updateAgeOnGet: i,
124642
+ noDeleteOnStaleGet: r,
124643
+ ttl: h,
124644
+ noDisposeOnSet: o,
124645
+ size: a,
124646
+ sizeCalculation: l,
124647
+ noUpdateTTL: f,
124648
+ noDeleteOnFetchRejection: c,
124649
+ allowStaleOnFetchRejection: d,
124650
+ allowStaleOnFetchAbort: m,
124651
+ ignoreFetchAbort: u,
124652
+ status: w,
124653
+ signal: v
124654
+ }, y = this.#u.get(t);
124655
+ if (y === void 0) {
124656
+ w && (w.fetch = "miss");
124657
+ let S = this.#z(t, y, E, p);
124658
+ return S.__returned = S;
124659
+ } else {
124660
+ let S = this.#i[y];
124661
+ if (this.#l(S)) {
124662
+ let st = s && S.__staleWhileFetching !== void 0;
124663
+ return w && (w.fetch = "inflight", st && (w.returnedStale = !0)), st ? S.__staleWhileFetching : S.__returned = S;
124664
+ }
124665
+ let B = this.#_(y);
124666
+ if (!b && !B) return w && (w.fetch = "hit"), this.#N(y), i && this.#C(y), w && this.#D(w, y), S;
124667
+ let U = this.#z(t, y, E, p), et = U.__staleWhileFetching !== void 0 && s;
124668
+ return w && (w.fetch = B ? "stale" : "refresh", et && B && (w.returnedStale = !0)), et ? U.__staleWhileFetching : U.__returned = U;
124669
+ }
124670
+ }
124671
+ async forceFetch(t, e = {}) {
124672
+ let s = await this.fetch(t, e);
124673
+ if (s === void 0) throw new Error("fetch() returned undefined");
124674
+ return s;
124675
+ }
124676
+ memo(t, e = {}) {
124677
+ let s = this.#w;
124678
+ if (!s) throw new Error("no memoMethod provided to constructor");
124679
+ let { context: i, forceRefresh: r, ...h } = e, o = this.get(t, h);
124680
+ if (!r && o !== void 0) return o;
124681
+ let a = s(t, o, {
124682
+ options: h,
124683
+ context: i
124684
+ });
124685
+ return this.set(t, a, h), a;
124686
+ }
124687
+ get(t, e = {}) {
124688
+ let { allowStale: s = this.allowStale, updateAgeOnGet: i = this.updateAgeOnGet, noDeleteOnStaleGet: r = this.noDeleteOnStaleGet, status: h } = e, o = this.#u.get(t);
124689
+ if (o !== void 0) {
124690
+ let a = this.#i[o], l = this.#l(a);
124691
+ return h && this.#D(h, o), this.#_(o) ? (h && (h.get = "stale"), l ? (h && s && a.__staleWhileFetching !== void 0 && (h.returnedStale = !0), s ? a.__staleWhileFetching : void 0) : (r || this.#A(t, "expire"), h && s && (h.returnedStale = !0), s ? a : void 0)) : (h && (h.get = "hit"), l ? a.__staleWhileFetching : (this.#N(o), i && this.#C(o), a));
124692
+ } else h && (h.get = "miss");
124693
+ }
124694
+ #U(t, e) {
124695
+ this.#v[e] = t, this.#d[t] = e;
124696
+ }
124697
+ #N(t) {
124698
+ t !== this.#p && (t === this.#y ? this.#y = this.#d[t] : this.#U(this.#v[t], this.#d[t]), this.#U(this.#p, t), this.#p = t);
124699
+ }
124700
+ delete(t) {
124701
+ return this.#A(t, "delete");
124702
+ }
124703
+ #A(t, e) {
124704
+ let s = !1;
124705
+ if (this.#o !== 0) {
124706
+ let i = this.#u.get(t);
124707
+ if (i !== void 0) if (this.#b?.[i] && (clearTimeout(this.#b?.[i]), this.#b[i] = void 0), s = !0, this.#o === 1) this.#q(e);
124708
+ else {
124709
+ this.#L(i);
124710
+ let r = this.#i[i];
124711
+ if (this.#l(r) ? r.__abortController.abort(/* @__PURE__ */ new Error("deleted")) : (this.#E || this.#e) && (this.#E && this.#n?.(r, t, e), this.#e && this.#m?.push([
124712
+ r,
124713
+ t,
124714
+ e
124715
+ ])), this.#u.delete(t), this.#a[i] = void 0, this.#i[i] = void 0, i === this.#p) this.#p = this.#v[i];
124716
+ else if (i === this.#y) this.#y = this.#d[i];
124717
+ else {
124718
+ let h = this.#v[i];
124719
+ this.#d[h] = this.#d[i];
124720
+ let o = this.#d[i];
124721
+ this.#v[o] = this.#v[i];
124722
+ }
124723
+ this.#o--, this.#R.push(i);
124724
+ }
124725
+ }
124726
+ if (this.#e && this.#m?.length) {
124727
+ let i = this.#m, r;
124728
+ for (; r = i?.shift();) this.#h?.(...r);
124729
+ }
124730
+ return s;
124731
+ }
124732
+ clear() {
124733
+ return this.#q("delete");
124734
+ }
124735
+ #q(t) {
124736
+ for (let e of this.#M({ allowStale: !0 })) {
124737
+ let s = this.#i[e];
124738
+ if (this.#l(s)) s.__abortController.abort(/* @__PURE__ */ new Error("deleted"));
124739
+ else {
124740
+ let i = this.#a[e];
124741
+ this.#E && this.#n?.(s, i, t), this.#e && this.#m?.push([
124742
+ s,
124743
+ i,
124744
+ t
124745
+ ]);
124746
+ }
124747
+ }
124748
+ if (this.#u.clear(), this.#i.fill(void 0), this.#a.fill(void 0), this.#g && this.#x) {
124749
+ this.#g.fill(0), this.#x.fill(0);
124750
+ for (let e of this.#b ?? []) e !== void 0 && clearTimeout(e);
124751
+ this.#b?.fill(void 0);
124752
+ }
124753
+ if (this.#O && this.#O.fill(0), this.#y = 0, this.#p = 0, this.#R.length = 0, this.#f = 0, this.#o = 0, this.#e && this.#m) {
124754
+ let e = this.#m, s;
124755
+ for (; s = e?.shift();) this.#h?.(...s);
124756
+ }
124757
+ }
124758
+ };
124759
+ });
124760
+ var Oe = R((P) => {
124761
+ "use strict";
124762
+ var nr = P && P.__importDefault || function(n) {
124763
+ return n && n.__esModule ? n : { default: n };
124764
+ };
124765
+ Object.defineProperty(P, "__esModule", { value: !0 });
124766
+ P.Minipass = P.isWritable = P.isReadable = P.isStream = void 0;
124767
+ var ds = typeof process == "object" && process ? process : {
124768
+ stdout: null,
124769
+ stderr: null
124770
+ }, _e = require("node:events"), ws = nr(require("node:stream")), hr = require("node:string_decoder"), or = (n) => !!n && typeof n == "object" && (n instanceof qt || n instanceof ws.default || (0, P.isReadable)(n) || (0, P.isWritable)(n));
124771
+ P.isStream = or;
124772
+ var ar = (n) => !!n && typeof n == "object" && n instanceof _e.EventEmitter && typeof n.pipe == "function" && n.pipe !== ws.default.Writable.prototype.pipe;
124773
+ P.isReadable = ar;
124774
+ var lr = (n) => !!n && typeof n == "object" && n instanceof _e.EventEmitter && typeof n.write == "function" && typeof n.end == "function";
124775
+ P.isWritable = lr;
124776
+ var $ = Symbol("EOF"), q = Symbol("maybeEmitEnd"), K = Symbol("emittedEnd"), Bt = Symbol("emittingEnd"), lt = Symbol("emittedError"), It = Symbol("closed"), ps = Symbol("read"), Gt = Symbol("flush"), ms = Symbol("flushChunk"), L = Symbol("encoding"), rt = Symbol("decoder"), x = Symbol("flowing"), ct = Symbol("paused"), nt = Symbol("resume"), T = Symbol("buffer"), M = Symbol("pipes"), C = Symbol("bufferLength"), we = Symbol("bufferPush"), zt = Symbol("bufferShift"), k = Symbol("objectMode"), O = Symbol("destroyed"), be = Symbol("error"), ye = Symbol("emitData"), gs = Symbol("emitEnd"), Se = Symbol("emitEnd2"), I = Symbol("async"), ve = Symbol("abort"), Ut = Symbol("aborted"), ut = Symbol("signal"), Z = Symbol("dataListeners"), D = Symbol("discarded"), ft = (n) => Promise.resolve().then(n), cr = (n) => n(), ur = (n) => n === "end" || n === "finish" || n === "prefinish", fr = (n) => n instanceof ArrayBuffer || !!n && typeof n == "object" && n.constructor && n.constructor.name === "ArrayBuffer" && n.byteLength >= 0, dr = (n) => !Buffer.isBuffer(n) && ArrayBuffer.isView(n), $t = class {
124777
+ src;
124778
+ dest;
124779
+ opts;
124780
+ ondrain;
124781
+ constructor(t, e, s) {
124782
+ this.src = t, this.dest = e, this.opts = s, this.ondrain = () => t[nt](), this.dest.on("drain", this.ondrain);
124783
+ }
124784
+ unpipe() {
124785
+ this.dest.removeListener("drain", this.ondrain);
124786
+ }
124787
+ proxyErrors(t) {}
124788
+ end() {
124789
+ this.unpipe(), this.opts.end && this.dest.end();
124790
+ }
124791
+ }, Ee = class extends $t {
124792
+ unpipe() {
124793
+ this.src.removeListener("error", this.proxyErrors), super.unpipe();
124794
+ }
124795
+ constructor(t, e, s) {
124796
+ super(t, e, s), this.proxyErrors = (i) => this.dest.emit("error", i), t.on("error", this.proxyErrors);
124797
+ }
124798
+ }, pr = (n) => !!n.objectMode, mr = (n) => !n.objectMode && !!n.encoding && n.encoding !== "buffer", qt = class extends _e.EventEmitter {
124799
+ [x] = !1;
124800
+ [ct] = !1;
124801
+ [M] = [];
124802
+ [T] = [];
124803
+ [k];
124804
+ [L];
124805
+ [I];
124806
+ [rt];
124807
+ [$] = !1;
124808
+ [K] = !1;
124809
+ [Bt] = !1;
124810
+ [It] = !1;
124811
+ [lt] = null;
124812
+ [C] = 0;
124813
+ [O] = !1;
124814
+ [ut];
124815
+ [Ut] = !1;
124816
+ [Z] = 0;
124817
+ [D] = !1;
124818
+ writable = !0;
124819
+ readable = !0;
124820
+ constructor(...t) {
124821
+ let e = t[0] || {};
124822
+ if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
124823
+ pr(e) ? (this[k] = !0, this[L] = null) : mr(e) ? (this[L] = e.encoding, this[k] = !1) : (this[k] = !1, this[L] = null), this[I] = !!e.async, this[rt] = this[L] ? new hr.StringDecoder(this[L]) : null, e && e.debugExposeBuffer === !0 && Object.defineProperty(this, "buffer", { get: () => this[T] }), e && e.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: () => this[M] });
124824
+ let { signal: s } = e;
124825
+ s && (this[ut] = s, s.aborted ? this[ve]() : s.addEventListener("abort", () => this[ve]()));
124826
+ }
124827
+ get bufferLength() {
124828
+ return this[C];
124829
+ }
124830
+ get encoding() {
124831
+ return this[L];
124832
+ }
124833
+ set encoding(t) {
124834
+ throw new Error("Encoding must be set at instantiation time");
124835
+ }
124836
+ setEncoding(t) {
124837
+ throw new Error("Encoding must be set at instantiation time");
124838
+ }
124839
+ get objectMode() {
124840
+ return this[k];
124841
+ }
124842
+ set objectMode(t) {
124843
+ throw new Error("objectMode must be set at instantiation time");
124844
+ }
124845
+ get async() {
124846
+ return this[I];
124847
+ }
124848
+ set async(t) {
124849
+ this[I] = this[I] || !!t;
124850
+ }
124851
+ [ve]() {
124852
+ this[Ut] = !0, this.emit("abort", this[ut]?.reason), this.destroy(this[ut]?.reason);
124853
+ }
124854
+ get aborted() {
124855
+ return this[Ut];
124856
+ }
124857
+ set aborted(t) {}
124858
+ write(t, e, s) {
124859
+ if (this[Ut]) return !1;
124860
+ if (this[$]) throw new Error("write after end");
124861
+ if (this[O]) return this.emit("error", Object.assign(/* @__PURE__ */ new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), !0;
124862
+ typeof e == "function" && (s = e, e = "utf8"), e || (e = "utf8");
124863
+ let i = this[I] ? ft : cr;
124864
+ if (!this[k] && !Buffer.isBuffer(t)) {
124865
+ if (dr(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
124866
+ else if (fr(t)) t = Buffer.from(t);
124867
+ else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
124868
+ }
124869
+ return this[k] ? (this[x] && this[C] !== 0 && this[Gt](!0), this[x] ? this.emit("data", t) : this[we](t), this[C] !== 0 && this.emit("readable"), s && i(s), this[x]) : t.length ? (typeof t == "string" && !(e === this[L] && !this[rt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[L] && (t = this[rt].write(t)), this[x] && this[C] !== 0 && this[Gt](!0), this[x] ? this.emit("data", t) : this[we](t), this[C] !== 0 && this.emit("readable"), s && i(s), this[x]) : (this[C] !== 0 && this.emit("readable"), s && i(s), this[x]);
124870
+ }
124871
+ read(t) {
124872
+ if (this[O]) return null;
124873
+ if (this[D] = !1, this[C] === 0 || t === 0 || t && t > this[C]) return this[q](), null;
124874
+ this[k] && (t = null), this[T].length > 1 && !this[k] && (this[T] = [this[L] ? this[T].join("") : Buffer.concat(this[T], this[C])]);
124875
+ let e = this[ps](t || null, this[T][0]);
124876
+ return this[q](), e;
124877
+ }
124878
+ [ps](t, e) {
124879
+ if (this[k]) this[zt]();
124880
+ else {
124881
+ let s = e;
124882
+ t === s.length || t === null ? this[zt]() : typeof s == "string" ? (this[T][0] = s.slice(t), e = s.slice(0, t), this[C] -= t) : (this[T][0] = s.subarray(t), e = s.subarray(0, t), this[C] -= t);
124883
+ }
124884
+ return this.emit("data", e), !this[T].length && !this[$] && this.emit("drain"), e;
124885
+ }
124886
+ end(t, e, s) {
124887
+ return typeof t == "function" && (s = t, t = void 0), typeof e == "function" && (s = e, e = "utf8"), t !== void 0 && this.write(t, e), s && this.once("end", s), this[$] = !0, this.writable = !1, (this[x] || !this[ct]) && this[q](), this;
124888
+ }
124889
+ [nt]() {
124890
+ this[O] || (!this[Z] && !this[M].length && (this[D] = !0), this[ct] = !1, this[x] = !0, this.emit("resume"), this[T].length ? this[Gt]() : this[$] ? this[q]() : this.emit("drain"));
124891
+ }
124892
+ resume() {
124893
+ return this[nt]();
124894
+ }
124895
+ pause() {
124896
+ this[x] = !1, this[ct] = !0, this[D] = !1;
124897
+ }
124898
+ get destroyed() {
124899
+ return this[O];
124900
+ }
124901
+ get flowing() {
124902
+ return this[x];
124903
+ }
124904
+ get paused() {
124905
+ return this[ct];
124906
+ }
124907
+ [we](t) {
124908
+ this[k] ? this[C] += 1 : this[C] += t.length, this[T].push(t);
124909
+ }
124910
+ [zt]() {
124911
+ return this[k] ? this[C] -= 1 : this[C] -= this[T][0].length, this[T].shift();
124912
+ }
124913
+ [Gt](t = !1) {
124914
+ do ;
124915
+ while (this[ms](this[zt]()) && this[T].length);
124916
+ !t && !this[T].length && !this[$] && this.emit("drain");
124917
+ }
124918
+ [ms](t) {
124919
+ return this.emit("data", t), this[x];
124920
+ }
124921
+ pipe(t, e) {
124922
+ if (this[O]) return t;
124923
+ this[D] = !1;
124924
+ let s = this[K];
124925
+ return e = e || {}, t === ds.stdout || t === ds.stderr ? e.end = !1 : e.end = e.end !== !1, e.proxyErrors = !!e.proxyErrors, s ? e.end && t.end() : (this[M].push(e.proxyErrors ? new Ee(this, t, e) : new $t(this, t, e)), this[I] ? ft(() => this[nt]()) : this[nt]()), t;
124926
+ }
124927
+ unpipe(t) {
124928
+ let e = this[M].find((s) => s.dest === t);
124929
+ e && (this[M].length === 1 ? (this[x] && this[Z] === 0 && (this[x] = !1), this[M] = []) : this[M].splice(this[M].indexOf(e), 1), e.unpipe());
124930
+ }
124931
+ addListener(t, e) {
124932
+ return this.on(t, e);
124933
+ }
124934
+ on(t, e) {
124935
+ let s = super.on(t, e);
124936
+ if (t === "data") this[D] = !1, this[Z]++, !this[M].length && !this[x] && this[nt]();
124937
+ else if (t === "readable" && this[C] !== 0) super.emit("readable");
124938
+ else if (ur(t) && this[K]) super.emit(t), this.removeAllListeners(t);
124939
+ else if (t === "error" && this[lt]) {
124940
+ let i = e;
124941
+ this[I] ? ft(() => i.call(this, this[lt])) : i.call(this, this[lt]);
124942
+ }
124943
+ return s;
124944
+ }
124945
+ removeListener(t, e) {
124946
+ return this.off(t, e);
124947
+ }
124948
+ off(t, e) {
124949
+ let s = super.off(t, e);
124950
+ return t === "data" && (this[Z] = this.listeners("data").length, this[Z] === 0 && !this[D] && !this[M].length && (this[x] = !1)), s;
124951
+ }
124952
+ removeAllListeners(t) {
124953
+ let e = super.removeAllListeners(t);
124954
+ return (t === "data" || t === void 0) && (this[Z] = 0, !this[D] && !this[M].length && (this[x] = !1)), e;
124955
+ }
124956
+ get emittedEnd() {
124957
+ return this[K];
124958
+ }
124959
+ [q]() {
124960
+ !this[Bt] && !this[K] && !this[O] && this[T].length === 0 && this[$] && (this[Bt] = !0, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[It] && this.emit("close"), this[Bt] = !1);
124961
+ }
124962
+ emit(t, ...e) {
124963
+ let s = e[0];
124964
+ if (t !== "error" && t !== "close" && t !== O && this[O]) return !1;
124965
+ if (t === "data") return !this[k] && !s ? !1 : this[I] ? (ft(() => this[ye](s)), !0) : this[ye](s);
124966
+ if (t === "end") return this[gs]();
124967
+ if (t === "close") {
124968
+ if (this[It] = !0, !this[K] && !this[O]) return !1;
124969
+ let r = super.emit("close");
124970
+ return this.removeAllListeners("close"), r;
124971
+ } else if (t === "error") {
124972
+ this[lt] = s, super.emit(be, s);
124973
+ let r = !this[ut] || this.listeners("error").length ? super.emit("error", s) : !1;
124974
+ return this[q](), r;
124975
+ } else if (t === "resume") {
124976
+ let r = super.emit("resume");
124977
+ return this[q](), r;
124978
+ } else if (t === "finish" || t === "prefinish") {
124979
+ let r = super.emit(t);
124980
+ return this.removeAllListeners(t), r;
124981
+ }
124982
+ let i = super.emit(t, ...e);
124983
+ return this[q](), i;
124984
+ }
124985
+ [ye](t) {
124986
+ for (let s of this[M]) s.dest.write(t) === !1 && this.pause();
124987
+ let e = this[D] ? !1 : super.emit("data", t);
124988
+ return this[q](), e;
124989
+ }
124990
+ [gs]() {
124991
+ return this[K] ? !1 : (this[K] = !0, this.readable = !1, this[I] ? (ft(() => this[Se]()), !0) : this[Se]());
124992
+ }
124993
+ [Se]() {
124994
+ if (this[rt]) {
124995
+ let e = this[rt].end();
124996
+ if (e) {
124997
+ for (let s of this[M]) s.dest.write(e);
124998
+ this[D] || super.emit("data", e);
124999
+ }
125000
+ }
125001
+ for (let e of this[M]) e.end();
125002
+ let t = super.emit("end");
125003
+ return this.removeAllListeners("end"), t;
125004
+ }
125005
+ async collect() {
125006
+ let t = Object.assign([], { dataLength: 0 });
125007
+ this[k] || (t.dataLength = 0);
125008
+ let e = this.promise();
125009
+ return this.on("data", (s) => {
125010
+ t.push(s), this[k] || (t.dataLength += s.length);
125011
+ }), await e, t;
125012
+ }
125013
+ async concat() {
125014
+ if (this[k]) throw new Error("cannot concat in objectMode");
125015
+ let t = await this.collect();
125016
+ return this[L] ? t.join("") : Buffer.concat(t, t.dataLength);
125017
+ }
125018
+ async promise() {
125019
+ return new Promise((t, e) => {
125020
+ this.on(O, () => e(/* @__PURE__ */ new Error("stream destroyed"))), this.on("error", (s) => e(s)), this.on("end", () => t());
125021
+ });
125022
+ }
125023
+ [Symbol.asyncIterator]() {
125024
+ this[D] = !1;
125025
+ let t = !1, e = async () => (this.pause(), t = !0, {
125026
+ value: void 0,
125027
+ done: !0
125028
+ });
125029
+ return {
125030
+ next: () => {
125031
+ if (t) return e();
125032
+ let i = this.read();
125033
+ if (i !== null) return Promise.resolve({
125034
+ done: !1,
125035
+ value: i
125036
+ });
125037
+ if (this[$]) return e();
125038
+ let r, h, o = (c) => {
125039
+ this.off("data", a), this.off("end", l), this.off(O, f), e(), h(c);
125040
+ }, a = (c) => {
125041
+ this.off("error", o), this.off("end", l), this.off(O, f), this.pause(), r({
125042
+ value: c,
125043
+ done: !!this[$]
125044
+ });
125045
+ }, l = () => {
125046
+ this.off("error", o), this.off("data", a), this.off(O, f), e(), r({
125047
+ done: !0,
125048
+ value: void 0
125049
+ });
125050
+ }, f = () => o(/* @__PURE__ */ new Error("stream destroyed"));
125051
+ return new Promise((c, d) => {
125052
+ h = d, r = c, this.once(O, f), this.once("error", o), this.once("end", l), this.once("data", a);
125053
+ });
125054
+ },
125055
+ throw: e,
125056
+ return: e,
125057
+ [Symbol.asyncIterator]() {
125058
+ return this;
125059
+ },
125060
+ [Symbol.asyncDispose]: async () => {}
125061
+ };
125062
+ }
125063
+ [Symbol.iterator]() {
125064
+ this[D] = !1;
125065
+ let t = !1, e = () => (this.pause(), this.off(be, e), this.off(O, e), this.off("end", e), t = !0, {
125066
+ done: !0,
125067
+ value: void 0
125068
+ }), s = () => {
125069
+ if (t) return e();
125070
+ let i = this.read();
125071
+ return i === null ? e() : {
125072
+ done: !1,
125073
+ value: i
125074
+ };
125075
+ };
125076
+ return this.once("end", e), this.once(be, e), this.once(O, e), {
125077
+ next: s,
125078
+ throw: e,
125079
+ return: e,
125080
+ [Symbol.iterator]() {
125081
+ return this;
125082
+ },
125083
+ [Symbol.dispose]: () => {}
125084
+ };
125085
+ }
125086
+ destroy(t) {
125087
+ if (this[O]) return t ? this.emit("error", t) : this.emit(O), this;
125088
+ this[O] = !0, this[D] = !0, this[T].length = 0, this[C] = 0;
125089
+ let e = this;
125090
+ return typeof e.close == "function" && !this[It] && e.close(), t ? this.emit("error", t) : this.emit(O), this;
125091
+ }
125092
+ static get isStream() {
125093
+ return P.isStream;
125094
+ }
125095
+ };
125096
+ P.Minipass = qt;
125097
+ });
125098
+ var Ms = R((_) => {
125099
+ "use strict";
125100
+ var gr = _ && _.__createBinding || (Object.create ? (function(n, t, e, s) {
125101
+ s === void 0 && (s = e);
125102
+ var i = Object.getOwnPropertyDescriptor(t, e);
125103
+ (!i || ("get" in i ? !t.__esModule : i.writable || i.configurable)) && (i = {
125104
+ enumerable: !0,
125105
+ get: function() {
125106
+ return t[e];
125107
+ }
125108
+ }), Object.defineProperty(n, s, i);
125109
+ }) : (function(n, t, e, s) {
125110
+ s === void 0 && (s = e), n[s] = t[e];
125111
+ })), wr = _ && _.__setModuleDefault || (Object.create ? (function(n, t) {
125112
+ Object.defineProperty(n, "default", {
125113
+ enumerable: !0,
125114
+ value: t
125115
+ });
125116
+ }) : function(n, t) {
125117
+ n.default = t;
125118
+ }), br = _ && _.__importStar || function(n) {
125119
+ if (n && n.__esModule) return n;
125120
+ var t = {};
125121
+ if (n != null) for (var e in n) e !== "default" && Object.prototype.hasOwnProperty.call(n, e) && gr(t, n, e);
125122
+ return wr(t, n), t;
125123
+ };
125124
+ Object.defineProperty(_, "__esModule", { value: !0 });
125125
+ _.PathScurry = _.Path = _.PathScurryDarwin = _.PathScurryPosix = _.PathScurryWin32 = _.PathScurryBase = _.PathPosix = _.PathWin32 = _.PathBase = _.ChildrenCache = _.ResolveCache = void 0;
125126
+ var Qt = fs(), Yt = require("node:path"), yr = require("node:url"), pt = require("fs"), Sr = br(require("node:fs")), vr = pt.realpathSync.native, Ht = require("node:fs/promises"), bs = Oe(), mt = {
125127
+ lstatSync: pt.lstatSync,
125128
+ readdir: pt.readdir,
125129
+ readdirSync: pt.readdirSync,
125130
+ readlinkSync: pt.readlinkSync,
125131
+ realpathSync: vr,
125132
+ promises: {
125133
+ lstat: Ht.lstat,
125134
+ readdir: Ht.readdir,
125135
+ readlink: Ht.readlink,
125136
+ realpath: Ht.realpath
125137
+ }
125138
+ }, _s = (n) => !n || n === mt || n === Sr ? mt : {
125139
+ ...mt,
125140
+ ...n,
125141
+ promises: {
125142
+ ...mt.promises,
125143
+ ...n.promises || {}
125144
+ }
125145
+ }, Os = /^\\\\\?\\([a-z]:)\\?$/i, Er = (n) => n.replace(/\//g, "\\").replace(Os, "$1\\"), _r = /[\\\/]/, N = 0, xs = 1, Ts = 2, G = 4, Cs = 6, Rs = 8, Q = 10, As = 12, j = 15, dt = ~j, xe = 16, ys = 32, gt = 64, W = 128, Vt = 256, Xt = 512, Ss = gt | W | Xt, Or = 1023, Te = (n) => n.isFile() ? Rs : n.isDirectory() ? G : n.isSymbolicLink() ? Q : n.isCharacterDevice() ? Ts : n.isBlockDevice() ? Cs : n.isSocket() ? As : n.isFIFO() ? xs : N, vs = new Qt.LRUCache({ max: 2 ** 12 }), wt = (n) => {
125146
+ let t = vs.get(n);
125147
+ if (t) return t;
125148
+ let e = n.normalize("NFKD");
125149
+ return vs.set(n, e), e;
125150
+ }, Es = new Qt.LRUCache({ max: 2 ** 12 }), Kt = (n) => {
125151
+ let t = Es.get(n);
125152
+ if (t) return t;
125153
+ let e = wt(n.toLowerCase());
125154
+ return Es.set(n, e), e;
125155
+ }, bt = class extends Qt.LRUCache {
125156
+ constructor() {
125157
+ super({ max: 256 });
125158
+ }
125159
+ };
125160
+ _.ResolveCache = bt;
125161
+ var Jt = class extends Qt.LRUCache {
125162
+ constructor(t = 16 * 1024) {
125163
+ super({
125164
+ maxSize: t,
125165
+ sizeCalculation: (e) => e.length + 1
125166
+ });
125167
+ }
125168
+ };
125169
+ _.ChildrenCache = Jt;
125170
+ var ks = Symbol("PathScurry setAsCwd"), A = class {
125171
+ name;
125172
+ root;
125173
+ roots;
125174
+ parent;
125175
+ nocase;
125176
+ isCWD = !1;
125177
+ #t;
125178
+ #s;
125179
+ get dev() {
125180
+ return this.#s;
125181
+ }
125182
+ #n;
125183
+ get mode() {
125184
+ return this.#n;
125185
+ }
125186
+ #r;
125187
+ get nlink() {
125188
+ return this.#r;
125189
+ }
125190
+ #h;
125191
+ get uid() {
125192
+ return this.#h;
125193
+ }
125194
+ #S;
125195
+ get gid() {
125196
+ return this.#S;
125197
+ }
125198
+ #w;
125199
+ get rdev() {
125200
+ return this.#w;
125201
+ }
125202
+ #c;
125203
+ get blksize() {
125204
+ return this.#c;
125205
+ }
125206
+ #o;
125207
+ get ino() {
125208
+ return this.#o;
125209
+ }
125210
+ #f;
125211
+ get size() {
125212
+ return this.#f;
125213
+ }
125214
+ #u;
125215
+ get blocks() {
125216
+ return this.#u;
125217
+ }
125218
+ #a;
125219
+ get atimeMs() {
125220
+ return this.#a;
125221
+ }
125222
+ #i;
125223
+ get mtimeMs() {
125224
+ return this.#i;
125225
+ }
125226
+ #d;
125227
+ get ctimeMs() {
125228
+ return this.#d;
125229
+ }
125230
+ #v;
125231
+ get birthtimeMs() {
125232
+ return this.#v;
125233
+ }
125234
+ #y;
125235
+ get atime() {
125236
+ return this.#y;
125237
+ }
125238
+ #p;
125239
+ get mtime() {
125240
+ return this.#p;
125241
+ }
125242
+ #R;
125243
+ get ctime() {
125244
+ return this.#R;
125245
+ }
125246
+ #m;
125247
+ get birthtime() {
125248
+ return this.#m;
125249
+ }
125250
+ #O;
125251
+ #x;
125252
+ #g;
125253
+ #b;
125254
+ #E;
125255
+ #T;
125256
+ #e;
125257
+ #F;
125258
+ #P;
125259
+ #C;
125260
+ get parentPath() {
125261
+ return (this.parent || this).fullpath();
125262
+ }
125263
+ get path() {
125264
+ return this.parentPath;
125265
+ }
125266
+ constructor(t, e = N, s, i, r, h, o) {
125267
+ this.name = t, this.#O = r ? Kt(t) : wt(t), this.#e = e & Or, this.nocase = r, this.roots = i, this.root = s || this, this.#F = h, this.#g = o.fullpath, this.#E = o.relative, this.#T = o.relativePosix, this.parent = o.parent, this.parent ? this.#t = this.parent.#t : this.#t = _s(o.fs);
125268
+ }
125269
+ depth() {
125270
+ return this.#x !== void 0 ? this.#x : this.parent ? this.#x = this.parent.depth() + 1 : this.#x = 0;
125271
+ }
125272
+ childrenCache() {
125273
+ return this.#F;
125274
+ }
125275
+ resolve(t) {
125276
+ if (!t) return this;
125277
+ let e = this.getRootString(t), i = t.substring(e.length).split(this.splitSep);
125278
+ return e ? this.getRoot(e).#D(i) : this.#D(i);
125279
+ }
125280
+ #D(t) {
125281
+ let e = this;
125282
+ for (let s of t) e = e.child(s);
125283
+ return e;
125284
+ }
125285
+ children() {
125286
+ let t = this.#F.get(this);
125287
+ if (t) return t;
125288
+ let e = Object.assign([], { provisional: 0 });
125289
+ return this.#F.set(this, e), this.#e &= ~xe, e;
125290
+ }
125291
+ child(t, e) {
125292
+ if (t === "" || t === ".") return this;
125293
+ if (t === "..") return this.parent || this;
125294
+ let s = this.children(), i = this.nocase ? Kt(t) : wt(t);
125295
+ for (let a of s) if (a.#O === i) return a;
125296
+ let r = this.parent ? this.sep : "", h = this.#g ? this.#g + r + t : void 0, o = this.newChild(t, N, {
125297
+ ...e,
125298
+ parent: this,
125299
+ fullpath: h
125300
+ });
125301
+ return this.canReaddir() || (o.#e |= W), s.push(o), o;
125302
+ }
125303
+ relative() {
125304
+ if (this.isCWD) return "";
125305
+ if (this.#E !== void 0) return this.#E;
125306
+ let t = this.name, e = this.parent;
125307
+ if (!e) return this.#E = this.name;
125308
+ let s = e.relative();
125309
+ return s + (!s || !e.parent ? "" : this.sep) + t;
125310
+ }
125311
+ relativePosix() {
125312
+ if (this.sep === "/") return this.relative();
125313
+ if (this.isCWD) return "";
125314
+ if (this.#T !== void 0) return this.#T;
125315
+ let t = this.name, e = this.parent;
125316
+ if (!e) return this.#T = this.fullpathPosix();
125317
+ let s = e.relativePosix();
125318
+ return s + (!s || !e.parent ? "" : "/") + t;
125319
+ }
125320
+ fullpath() {
125321
+ if (this.#g !== void 0) return this.#g;
125322
+ let t = this.name, e = this.parent;
125323
+ if (!e) return this.#g = this.name;
125324
+ return this.#g = e.fullpath() + (e.parent ? this.sep : "") + t;
125325
+ }
125326
+ fullpathPosix() {
125327
+ if (this.#b !== void 0) return this.#b;
125328
+ if (this.sep === "/") return this.#b = this.fullpath();
125329
+ if (!this.parent) {
125330
+ let i = this.fullpath().replace(/\\/g, "/");
125331
+ return /^[a-z]:\//i.test(i) ? this.#b = `//?/${i}` : this.#b = i;
125332
+ }
125333
+ let t = this.parent, e = t.fullpathPosix();
125334
+ return this.#b = e + (!e || !t.parent ? "" : "/") + this.name;
125335
+ }
125336
+ isUnknown() {
125337
+ return (this.#e & j) === N;
125338
+ }
125339
+ isType(t) {
125340
+ return this[`is${t}`]();
125341
+ }
125342
+ getType() {
125343
+ return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : this.isSocket() ? "Socket" : "Unknown";
125344
+ }
125345
+ isFile() {
125346
+ return (this.#e & j) === Rs;
125347
+ }
125348
+ isDirectory() {
125349
+ return (this.#e & j) === G;
125350
+ }
125351
+ isCharacterDevice() {
125352
+ return (this.#e & j) === Ts;
125353
+ }
125354
+ isBlockDevice() {
125355
+ return (this.#e & j) === Cs;
125356
+ }
125357
+ isFIFO() {
125358
+ return (this.#e & j) === xs;
125359
+ }
125360
+ isSocket() {
125361
+ return (this.#e & j) === As;
125362
+ }
125363
+ isSymbolicLink() {
125364
+ return (this.#e & Q) === Q;
125365
+ }
125366
+ lstatCached() {
125367
+ return this.#e & ys ? this : void 0;
125368
+ }
125369
+ readlinkCached() {
125370
+ return this.#P;
125371
+ }
125372
+ realpathCached() {
125373
+ return this.#C;
125374
+ }
125375
+ readdirCached() {
125376
+ let t = this.children();
125377
+ return t.slice(0, t.provisional);
125378
+ }
125379
+ canReadlink() {
125380
+ if (this.#P) return !0;
125381
+ if (!this.parent) return !1;
125382
+ let t = this.#e & j;
125383
+ return !(t !== N && t !== Q || this.#e & Vt || this.#e & W);
125384
+ }
125385
+ calledReaddir() {
125386
+ return !!(this.#e & xe);
125387
+ }
125388
+ isENOENT() {
125389
+ return !!(this.#e & W);
125390
+ }
125391
+ isNamed(t) {
125392
+ return this.nocase ? this.#O === Kt(t) : this.#O === wt(t);
125393
+ }
125394
+ async readlink() {
125395
+ let t = this.#P;
125396
+ if (t) return t;
125397
+ if (this.canReadlink() && this.parent) try {
125398
+ let e = await this.#t.promises.readlink(this.fullpath()), s = (await this.parent.realpath())?.resolve(e);
125399
+ if (s) return this.#P = s;
125400
+ } catch (e) {
125401
+ this.#M(e.code);
125402
+ return;
125403
+ }
125404
+ }
125405
+ readlinkSync() {
125406
+ let t = this.#P;
125407
+ if (t) return t;
125408
+ if (this.canReadlink() && this.parent) try {
125409
+ let e = this.#t.readlinkSync(this.fullpath()), s = this.parent.realpathSync()?.resolve(e);
125410
+ if (s) return this.#P = s;
125411
+ } catch (e) {
125412
+ this.#M(e.code);
125413
+ return;
125414
+ }
125415
+ }
125416
+ #W(t) {
125417
+ this.#e |= xe;
125418
+ for (let e = t.provisional; e < t.length; e++) {
125419
+ let s = t[e];
125420
+ s && s.#_();
125421
+ }
125422
+ }
125423
+ #_() {
125424
+ this.#e & W || (this.#e = (this.#e | W) & dt, this.#$());
125425
+ }
125426
+ #$() {
125427
+ let t = this.children();
125428
+ t.provisional = 0;
125429
+ for (let e of t) e.#_();
125430
+ }
125431
+ #L() {
125432
+ this.#e |= Xt, this.#j();
125433
+ }
125434
+ #j() {
125435
+ if (this.#e & gt) return;
125436
+ let t = this.#e;
125437
+ (t & j) === G && (t &= dt), this.#e = t | gt, this.#$();
125438
+ }
125439
+ #B(t = "") {
125440
+ t === "ENOTDIR" || t === "EPERM" ? this.#j() : t === "ENOENT" ? this.#_() : this.children().provisional = 0;
125441
+ }
125442
+ #k(t = "") {
125443
+ t === "ENOTDIR" ? this.parent.#j() : t === "ENOENT" && this.#_();
125444
+ }
125445
+ #M(t = "") {
125446
+ let e = this.#e;
125447
+ e |= Vt, t === "ENOENT" && (e |= W), (t === "EINVAL" || t === "UNKNOWN") && (e &= dt), this.#e = e, t === "ENOTDIR" && this.parent && this.parent.#j();
125448
+ }
125449
+ #I(t, e) {
125450
+ return this.#z(t, e) || this.#G(t, e);
125451
+ }
125452
+ #G(t, e) {
125453
+ let s = Te(t), i = this.newChild(t.name, s, { parent: this }), r = i.#e & j;
125454
+ return r !== G && r !== Q && r !== N && (i.#e |= gt), e.unshift(i), e.provisional++, i;
125455
+ }
125456
+ #z(t, e) {
125457
+ for (let s = e.provisional; s < e.length; s++) {
125458
+ let i = e[s];
125459
+ if ((this.nocase ? Kt(t.name) : wt(t.name)) === i.#O) return this.#l(t, i, s, e);
125460
+ }
125461
+ }
125462
+ #l(t, e, s, i) {
125463
+ let r = e.name;
125464
+ return e.#e = e.#e & dt | Te(t), r !== t.name && (e.name = t.name), s !== i.provisional && (s === i.length - 1 ? i.pop() : i.splice(s, 1), i.unshift(e)), i.provisional++, e;
125465
+ }
125466
+ async lstat() {
125467
+ if ((this.#e & W) === 0) try {
125468
+ return this.#U(await this.#t.promises.lstat(this.fullpath())), this;
125469
+ } catch (t) {
125470
+ this.#k(t.code);
125471
+ }
125472
+ }
125473
+ lstatSync() {
125474
+ if ((this.#e & W) === 0) try {
125475
+ return this.#U(this.#t.lstatSync(this.fullpath())), this;
125476
+ } catch (t) {
125477
+ this.#k(t.code);
125478
+ }
125479
+ }
125480
+ #U(t) {
125481
+ let { atime: e, atimeMs: s, birthtime: i, birthtimeMs: r, blksize: h, blocks: o, ctime: a, ctimeMs: l, dev: f, gid: c, ino: d, mode: u, mtime: m, mtimeMs: p, nlink: b, rdev: w, size: v, uid: E } = t;
125482
+ this.#y = e, this.#a = s, this.#m = i, this.#v = r, this.#c = h, this.#u = o, this.#R = a, this.#d = l, this.#s = f, this.#S = c, this.#o = d, this.#n = u, this.#p = m, this.#i = p, this.#r = b, this.#w = w, this.#f = v, this.#h = E;
125483
+ let y = Te(t);
125484
+ this.#e = this.#e & dt | y | ys, y !== N && y !== G && y !== Q && (this.#e |= gt);
125485
+ }
125486
+ #N = [];
125487
+ #A = !1;
125488
+ #q(t) {
125489
+ this.#A = !1;
125490
+ let e = this.#N.slice();
125491
+ this.#N.length = 0, e.forEach((s) => s(null, t));
125492
+ }
125493
+ readdirCB(t, e = !1) {
125494
+ if (!this.canReaddir()) {
125495
+ e ? t(null, []) : queueMicrotask(() => t(null, []));
125496
+ return;
125497
+ }
125498
+ let s = this.children();
125499
+ if (this.calledReaddir()) {
125500
+ let r = s.slice(0, s.provisional);
125501
+ e ? t(null, r) : queueMicrotask(() => t(null, r));
125502
+ return;
125503
+ }
125504
+ if (this.#N.push(t), this.#A) return;
125505
+ this.#A = !0;
125506
+ let i = this.fullpath();
125507
+ this.#t.readdir(i, { withFileTypes: !0 }, (r, h) => {
125508
+ if (r) this.#B(r.code), s.provisional = 0;
125509
+ else {
125510
+ for (let o of h) this.#I(o, s);
125511
+ this.#W(s);
125512
+ }
125513
+ this.#q(s.slice(0, s.provisional));
125514
+ });
125515
+ }
125516
+ #H;
125517
+ async readdir() {
125518
+ if (!this.canReaddir()) return [];
125519
+ let t = this.children();
125520
+ if (this.calledReaddir()) return t.slice(0, t.provisional);
125521
+ let e = this.fullpath();
125522
+ if (this.#H) await this.#H;
125523
+ else {
125524
+ let s = () => {};
125525
+ this.#H = new Promise((i) => s = i);
125526
+ try {
125527
+ for (let i of await this.#t.promises.readdir(e, { withFileTypes: !0 })) this.#I(i, t);
125528
+ this.#W(t);
125529
+ } catch (i) {
125530
+ this.#B(i.code), t.provisional = 0;
125531
+ }
125532
+ this.#H = void 0, s();
125533
+ }
125534
+ return t.slice(0, t.provisional);
125535
+ }
125536
+ readdirSync() {
125537
+ if (!this.canReaddir()) return [];
125538
+ let t = this.children();
125539
+ if (this.calledReaddir()) return t.slice(0, t.provisional);
125540
+ let e = this.fullpath();
125541
+ try {
125542
+ for (let s of this.#t.readdirSync(e, { withFileTypes: !0 })) this.#I(s, t);
125543
+ this.#W(t);
125544
+ } catch (s) {
125545
+ this.#B(s.code), t.provisional = 0;
125546
+ }
125547
+ return t.slice(0, t.provisional);
125548
+ }
125549
+ canReaddir() {
125550
+ if (this.#e & Ss) return !1;
125551
+ let t = j & this.#e;
125552
+ return t === N || t === G || t === Q;
125553
+ }
125554
+ shouldWalk(t, e) {
125555
+ return (this.#e & G) === G && !(this.#e & Ss) && !t.has(this) && (!e || e(this));
125556
+ }
125557
+ async realpath() {
125558
+ if (this.#C) return this.#C;
125559
+ if (!((Xt | Vt | W) & this.#e)) try {
125560
+ let t = await this.#t.promises.realpath(this.fullpath());
125561
+ return this.#C = this.resolve(t);
125562
+ } catch {
125563
+ this.#L();
125564
+ }
125565
+ }
125566
+ realpathSync() {
125567
+ if (this.#C) return this.#C;
125568
+ if (!((Xt | Vt | W) & this.#e)) try {
125569
+ let t = this.#t.realpathSync(this.fullpath());
125570
+ return this.#C = this.resolve(t);
125571
+ } catch {
125572
+ this.#L();
125573
+ }
125574
+ }
125575
+ [ks](t) {
125576
+ if (t === this) return;
125577
+ t.isCWD = !1, this.isCWD = !0;
125578
+ let e = /* @__PURE__ */ new Set([]), s = [], i = this;
125579
+ for (; i && i.parent;) e.add(i), i.#E = s.join(this.sep), i.#T = s.join("/"), i = i.parent, s.push("..");
125580
+ for (i = t; i && i.parent && !e.has(i);) i.#E = void 0, i.#T = void 0, i = i.parent;
125581
+ }
125582
+ };
125583
+ _.PathBase = A;
125584
+ var yt = class n extends A {
125585
+ sep = "\\";
125586
+ splitSep = _r;
125587
+ constructor(t, e = N, s, i, r, h, o) {
125588
+ super(t, e, s, i, r, h, o);
125589
+ }
125590
+ newChild(t, e = N, s = {}) {
125591
+ return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
125592
+ }
125593
+ getRootString(t) {
125594
+ return Yt.win32.parse(t).root;
125595
+ }
125596
+ getRoot(t) {
125597
+ if (t = Er(t.toUpperCase()), t === this.root.name) return this.root;
125598
+ for (let [e, s] of Object.entries(this.roots)) if (this.sameRoot(t, e)) return this.roots[t] = s;
125599
+ return this.roots[t] = new Et(t, this).root;
125600
+ }
125601
+ sameRoot(t, e = this.root.name) {
125602
+ return t = t.toUpperCase().replace(/\//g, "\\").replace(Os, "$1\\"), t === e;
125603
+ }
125604
+ };
125605
+ _.PathWin32 = yt;
125606
+ var St = class n extends A {
125607
+ splitSep = "/";
125608
+ sep = "/";
125609
+ constructor(t, e = N, s, i, r, h, o) {
125610
+ super(t, e, s, i, r, h, o);
125611
+ }
125612
+ getRootString(t) {
125613
+ return t.startsWith("/") ? "/" : "";
125614
+ }
125615
+ getRoot(t) {
125616
+ return this.root;
125617
+ }
125618
+ newChild(t, e = N, s = {}) {
125619
+ return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
125620
+ }
125621
+ };
125622
+ _.PathPosix = St;
125623
+ var vt = class {
125624
+ root;
125625
+ rootPath;
125626
+ roots;
125627
+ cwd;
125628
+ #t;
125629
+ #s;
125630
+ #n;
125631
+ nocase;
125632
+ #r;
125633
+ constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16 * 1024, fs: h = mt } = {}) {
125634
+ this.#r = _s(h), (t instanceof URL || t.startsWith("file://")) && (t = (0, yr.fileURLToPath)(t));
125635
+ let o = e.resolve(t);
125636
+ this.roots = Object.create(null), this.rootPath = this.parseRootPath(o), this.#t = new bt(), this.#s = new bt(), this.#n = new Jt(r);
125637
+ let a = o.substring(this.rootPath.length).split(s);
125638
+ if (a.length === 1 && !a[0] && a.pop(), i === void 0) throw new TypeError("must provide nocase setting to PathScurryBase ctor");
125639
+ this.nocase = i, this.root = this.newRoot(this.#r), this.roots[this.rootPath] = this.root;
125640
+ let l = this.root, f = a.length - 1, c = e.sep, d = this.rootPath, u = !1;
125641
+ for (let m of a) {
125642
+ let p = f--;
125643
+ l = l.child(m, {
125644
+ relative: new Array(p).fill("..").join(c),
125645
+ relativePosix: new Array(p).fill("..").join("/"),
125646
+ fullpath: d += (u ? "" : c) + m
125647
+ }), u = !0;
125648
+ }
125649
+ this.cwd = l;
125650
+ }
125651
+ depth(t = this.cwd) {
125652
+ return typeof t == "string" && (t = this.cwd.resolve(t)), t.depth();
125653
+ }
125654
+ childrenCache() {
125655
+ return this.#n;
125656
+ }
125657
+ resolve(...t) {
125658
+ let e = "";
125659
+ for (let r = t.length - 1; r >= 0; r--) {
125660
+ let h = t[r];
125661
+ if (!(!h || h === ".") && (e = e ? `${h}/${e}` : h, this.isAbsolute(h))) break;
125662
+ }
125663
+ let s = this.#t.get(e);
125664
+ if (s !== void 0) return s;
125665
+ let i = this.cwd.resolve(e).fullpath();
125666
+ return this.#t.set(e, i), i;
125667
+ }
125668
+ resolvePosix(...t) {
125669
+ let e = "";
125670
+ for (let r = t.length - 1; r >= 0; r--) {
125671
+ let h = t[r];
125672
+ if (!(!h || h === ".") && (e = e ? `${h}/${e}` : h, this.isAbsolute(h))) break;
125673
+ }
125674
+ let s = this.#s.get(e);
125675
+ if (s !== void 0) return s;
125676
+ let i = this.cwd.resolve(e).fullpathPosix();
125677
+ return this.#s.set(e, i), i;
125678
+ }
125679
+ relative(t = this.cwd) {
125680
+ return typeof t == "string" && (t = this.cwd.resolve(t)), t.relative();
125681
+ }
125682
+ relativePosix(t = this.cwd) {
125683
+ return typeof t == "string" && (t = this.cwd.resolve(t)), t.relativePosix();
125684
+ }
125685
+ basename(t = this.cwd) {
125686
+ return typeof t == "string" && (t = this.cwd.resolve(t)), t.name;
125687
+ }
125688
+ dirname(t = this.cwd) {
125689
+ return typeof t == "string" && (t = this.cwd.resolve(t)), (t.parent || t).fullpath();
125690
+ }
125691
+ async readdir(t = this.cwd, e = { withFileTypes: !0 }) {
125692
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof A || (e = t, t = this.cwd);
125693
+ let { withFileTypes: s } = e;
125694
+ if (t.canReaddir()) {
125695
+ let i = await t.readdir();
125696
+ return s ? i : i.map((r) => r.name);
125697
+ } else return [];
125698
+ }
125699
+ readdirSync(t = this.cwd, e = { withFileTypes: !0 }) {
125700
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof A || (e = t, t = this.cwd);
125701
+ let { withFileTypes: s = !0 } = e;
125702
+ return t.canReaddir() ? s ? t.readdirSync() : t.readdirSync().map((i) => i.name) : [];
125703
+ }
125704
+ async lstat(t = this.cwd) {
125705
+ return typeof t == "string" && (t = this.cwd.resolve(t)), t.lstat();
125706
+ }
125707
+ lstatSync(t = this.cwd) {
125708
+ return typeof t == "string" && (t = this.cwd.resolve(t)), t.lstatSync();
125709
+ }
125710
+ async readlink(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
125711
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof A || (e = t.withFileTypes, t = this.cwd);
125712
+ let s = await t.readlink();
125713
+ return e ? s : s?.fullpath();
125714
+ }
125715
+ readlinkSync(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
125716
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof A || (e = t.withFileTypes, t = this.cwd);
125717
+ let s = t.readlinkSync();
125718
+ return e ? s : s?.fullpath();
125719
+ }
125720
+ async realpath(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
125721
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof A || (e = t.withFileTypes, t = this.cwd);
125722
+ let s = await t.realpath();
125723
+ return e ? s : s?.fullpath();
125724
+ }
125725
+ realpathSync(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
125726
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof A || (e = t.withFileTypes, t = this.cwd);
125727
+ let s = t.realpathSync();
125728
+ return e ? s : s?.fullpath();
125729
+ }
125730
+ async walk(t = this.cwd, e = {}) {
125731
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof A || (e = t, t = this.cwd);
125732
+ let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: h } = e, o = [];
125733
+ (!r || r(t)) && o.push(s ? t : t.fullpath());
125734
+ let a = /* @__PURE__ */ new Set(), l = (c, d) => {
125735
+ a.add(c), c.readdirCB((u, m) => {
125736
+ if (u) return d(u);
125737
+ let p = m.length;
125738
+ if (!p) return d();
125739
+ let b = () => {
125740
+ --p === 0 && d();
125741
+ };
125742
+ for (let w of m) (!r || r(w)) && o.push(s ? w : w.fullpath()), i && w.isSymbolicLink() ? w.realpath().then((v) => v?.isUnknown() ? v.lstat() : v).then((v) => v?.shouldWalk(a, h) ? l(v, b) : b()) : w.shouldWalk(a, h) ? l(w, b) : b();
125743
+ }, !0);
125744
+ }, f = t;
125745
+ return new Promise((c, d) => {
125746
+ l(f, (u) => {
125747
+ if (u) return d(u);
125748
+ c(o);
125749
+ });
125750
+ });
125751
+ }
125752
+ walkSync(t = this.cwd, e = {}) {
125753
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof A || (e = t, t = this.cwd);
125754
+ let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: h } = e, o = [];
125755
+ (!r || r(t)) && o.push(s ? t : t.fullpath());
125756
+ let a = new Set([t]);
125757
+ for (let l of a) {
125758
+ let f = l.readdirSync();
125759
+ for (let c of f) {
125760
+ (!r || r(c)) && o.push(s ? c : c.fullpath());
125761
+ let d = c;
125762
+ if (c.isSymbolicLink()) {
125763
+ if (!(i && (d = c.realpathSync()))) continue;
125764
+ d.isUnknown() && d.lstatSync();
125765
+ }
125766
+ d.shouldWalk(a, h) && a.add(d);
125767
+ }
125768
+ }
125769
+ return o;
125770
+ }
125771
+ [Symbol.asyncIterator]() {
125772
+ return this.iterate();
125773
+ }
125774
+ iterate(t = this.cwd, e = {}) {
125775
+ return typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof A || (e = t, t = this.cwd), this.stream(t, e)[Symbol.asyncIterator]();
125776
+ }
125777
+ [Symbol.iterator]() {
125778
+ return this.iterateSync();
125779
+ }
125780
+ *iterateSync(t = this.cwd, e = {}) {
125781
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof A || (e = t, t = this.cwd);
125782
+ let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: h } = e;
125783
+ (!r || r(t)) && (yield s ? t : t.fullpath());
125784
+ let o = new Set([t]);
125785
+ for (let a of o) {
125786
+ let l = a.readdirSync();
125787
+ for (let f of l) {
125788
+ (!r || r(f)) && (yield s ? f : f.fullpath());
125789
+ let c = f;
125790
+ if (f.isSymbolicLink()) {
125791
+ if (!(i && (c = f.realpathSync()))) continue;
125792
+ c.isUnknown() && c.lstatSync();
125793
+ }
125794
+ c.shouldWalk(o, h) && o.add(c);
125795
+ }
125796
+ }
125797
+ }
125798
+ stream(t = this.cwd, e = {}) {
125799
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof A || (e = t, t = this.cwd);
125800
+ let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: h } = e, o = new bs.Minipass({ objectMode: !0 });
125801
+ (!r || r(t)) && o.write(s ? t : t.fullpath());
125802
+ let a = /* @__PURE__ */ new Set(), l = [t], f = 0, c = () => {
125803
+ let d = !1;
125804
+ for (; !d;) {
125805
+ let u = l.shift();
125806
+ if (!u) {
125807
+ f === 0 && o.end();
125808
+ return;
125809
+ }
125810
+ f++, a.add(u);
125811
+ let m = (b, w, v = !1) => {
125812
+ if (b) return o.emit("error", b);
125813
+ if (i && !v) {
125814
+ let E = [];
125815
+ for (let y of w) y.isSymbolicLink() && E.push(y.realpath().then((S) => S?.isUnknown() ? S.lstat() : S));
125816
+ if (E.length) {
125817
+ Promise.all(E).then(() => m(null, w, !0));
125818
+ return;
125819
+ }
125820
+ }
125821
+ for (let E of w) E && (!r || r(E)) && (o.write(s ? E : E.fullpath()) || (d = !0));
125822
+ f--;
125823
+ for (let E of w) {
125824
+ let y = E.realpathCached() || E;
125825
+ y.shouldWalk(a, h) && l.push(y);
125826
+ }
125827
+ d && !o.flowing ? o.once("drain", c) : p || c();
125828
+ }, p = !0;
125829
+ u.readdirCB(m, !0), p = !1;
125830
+ }
125831
+ };
125832
+ return c(), o;
125833
+ }
125834
+ streamSync(t = this.cwd, e = {}) {
125835
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof A || (e = t, t = this.cwd);
125836
+ let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: h } = e, o = new bs.Minipass({ objectMode: !0 }), a = /* @__PURE__ */ new Set();
125837
+ (!r || r(t)) && o.write(s ? t : t.fullpath());
125838
+ let l = [t], f = 0, c = () => {
125839
+ let d = !1;
125840
+ for (; !d;) {
125841
+ let u = l.shift();
125842
+ if (!u) {
125843
+ f === 0 && o.end();
125844
+ return;
125845
+ }
125846
+ f++, a.add(u);
125847
+ let m = u.readdirSync();
125848
+ for (let p of m) (!r || r(p)) && (o.write(s ? p : p.fullpath()) || (d = !0));
125849
+ f--;
125850
+ for (let p of m) {
125851
+ let b = p;
125852
+ if (p.isSymbolicLink()) {
125853
+ if (!(i && (b = p.realpathSync()))) continue;
125854
+ b.isUnknown() && b.lstatSync();
125855
+ }
125856
+ b.shouldWalk(a, h) && l.push(b);
125857
+ }
125858
+ }
125859
+ d && !o.flowing && o.once("drain", c);
125860
+ };
125861
+ return c(), o;
125862
+ }
125863
+ chdir(t = this.cwd) {
125864
+ let e = this.cwd;
125865
+ this.cwd = typeof t == "string" ? this.cwd.resolve(t) : t, this.cwd[ks](e);
125866
+ }
125867
+ };
125868
+ _.PathScurryBase = vt;
125869
+ var Et = class extends vt {
125870
+ sep = "\\";
125871
+ constructor(t = process.cwd(), e = {}) {
125872
+ let { nocase: s = !0 } = e;
125873
+ super(t, Yt.win32, "\\", {
125874
+ ...e,
125875
+ nocase: s
125876
+ }), this.nocase = s;
125877
+ for (let i = this.cwd; i; i = i.parent) i.nocase = this.nocase;
125878
+ }
125879
+ parseRootPath(t) {
125880
+ return Yt.win32.parse(t).root.toUpperCase();
125881
+ }
125882
+ newRoot(t) {
125883
+ return new yt(this.rootPath, G, void 0, this.roots, this.nocase, this.childrenCache(), { fs: t });
125884
+ }
125885
+ isAbsolute(t) {
125886
+ return t.startsWith("/") || t.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(t);
125887
+ }
125888
+ };
125889
+ _.PathScurryWin32 = Et;
125890
+ var _t = class extends vt {
125891
+ sep = "/";
125892
+ constructor(t = process.cwd(), e = {}) {
125893
+ let { nocase: s = !1 } = e;
125894
+ super(t, Yt.posix, "/", {
125895
+ ...e,
125896
+ nocase: s
125897
+ }), this.nocase = s;
125898
+ }
125899
+ parseRootPath(t) {
125900
+ return "/";
125901
+ }
125902
+ newRoot(t) {
125903
+ return new St(this.rootPath, G, void 0, this.roots, this.nocase, this.childrenCache(), { fs: t });
125904
+ }
125905
+ isAbsolute(t) {
125906
+ return t.startsWith("/");
125907
+ }
125908
+ };
125909
+ _.PathScurryPosix = _t;
125910
+ var Zt = class extends _t {
125911
+ constructor(t = process.cwd(), e = {}) {
125912
+ let { nocase: s = !0 } = e;
125913
+ super(t, {
125914
+ ...e,
125915
+ nocase: s
125916
+ });
125917
+ }
125918
+ };
125919
+ _.PathScurryDarwin = Zt;
125920
+ _.Path = process.platform === "win32" ? yt : St;
125921
+ _.PathScurry = process.platform === "win32" ? Et : process.platform === "darwin" ? Zt : _t;
125922
+ });
125923
+ var Re = R((te) => {
125924
+ "use strict";
125925
+ Object.defineProperty(te, "__esModule", { value: !0 });
125926
+ te.Pattern = void 0;
125927
+ var xr = H(), Tr = (n) => n.length >= 1, Cr = (n) => n.length >= 1, Rr = Symbol.for("nodejs.util.inspect.custom");
125928
+ te.Pattern = class n {
125929
+ #t;
125930
+ #s;
125931
+ #n;
125932
+ length;
125933
+ #r;
125934
+ #h;
125935
+ #S;
125936
+ #w;
125937
+ #c;
125938
+ #o;
125939
+ #f = !0;
125940
+ constructor(t, e, s, i) {
125941
+ if (!Tr(t)) throw new TypeError("empty pattern list");
125942
+ if (!Cr(e)) throw new TypeError("empty glob list");
125943
+ if (e.length !== t.length) throw new TypeError("mismatched pattern list and glob list lengths");
125944
+ if (this.length = t.length, s < 0 || s >= this.length) throw new TypeError("index out of range");
125945
+ if (this.#t = t, this.#s = e, this.#n = s, this.#r = i, this.#n === 0) {
125946
+ if (this.isUNC()) {
125947
+ let [r, h, o, a, ...l] = this.#t, [f, c, d, u, ...m] = this.#s;
125948
+ l[0] === "" && (l.shift(), m.shift());
125949
+ let p = [
125950
+ r,
125951
+ h,
125952
+ o,
125953
+ a,
125954
+ ""
125955
+ ].join("/"), b = [
125956
+ f,
125957
+ c,
125958
+ d,
125959
+ u,
125960
+ ""
125961
+ ].join("/");
125962
+ this.#t = [p, ...l], this.#s = [b, ...m], this.length = this.#t.length;
125963
+ } else if (this.isDrive() || this.isAbsolute()) {
125964
+ let [r, ...h] = this.#t, [o, ...a] = this.#s;
125965
+ h[0] === "" && (h.shift(), a.shift());
125966
+ let l = r + "/", f = o + "/";
125967
+ this.#t = [l, ...h], this.#s = [f, ...a], this.length = this.#t.length;
125968
+ }
125969
+ }
125970
+ }
125971
+ [Rr]() {
125972
+ return "Pattern <" + this.#s.slice(this.#n).join("/") + ">";
125973
+ }
125974
+ pattern() {
125975
+ return this.#t[this.#n];
125976
+ }
125977
+ isString() {
125978
+ return typeof this.#t[this.#n] == "string";
125979
+ }
125980
+ isGlobstar() {
125981
+ return this.#t[this.#n] === xr.GLOBSTAR;
125982
+ }
125983
+ isRegExp() {
125984
+ return this.#t[this.#n] instanceof RegExp;
125985
+ }
125986
+ globString() {
125987
+ return this.#S = this.#S || (this.#n === 0 ? this.isAbsolute() ? this.#s[0] + this.#s.slice(1).join("/") : this.#s.join("/") : this.#s.slice(this.#n).join("/"));
125988
+ }
125989
+ hasMore() {
125990
+ return this.length > this.#n + 1;
125991
+ }
125992
+ rest() {
125993
+ return this.#h !== void 0 ? this.#h : this.hasMore() ? (this.#h = new n(this.#t, this.#s, this.#n + 1, this.#r), this.#h.#o = this.#o, this.#h.#c = this.#c, this.#h.#w = this.#w, this.#h) : this.#h = null;
125994
+ }
125995
+ isUNC() {
125996
+ let t = this.#t;
125997
+ return this.#c !== void 0 ? this.#c : this.#c = this.#r === "win32" && this.#n === 0 && t[0] === "" && t[1] === "" && typeof t[2] == "string" && !!t[2] && typeof t[3] == "string" && !!t[3];
125998
+ }
125999
+ isDrive() {
126000
+ let t = this.#t;
126001
+ return this.#w !== void 0 ? this.#w : this.#w = this.#r === "win32" && this.#n === 0 && this.length > 1 && typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]);
126002
+ }
126003
+ isAbsolute() {
126004
+ let t = this.#t;
126005
+ return this.#o !== void 0 ? this.#o : this.#o = t[0] === "" && t.length > 1 || this.isDrive() || this.isUNC();
126006
+ }
126007
+ root() {
126008
+ let t = this.#t[0];
126009
+ return typeof t == "string" && this.isAbsolute() && this.#n === 0 ? t : "";
126010
+ }
126011
+ checkFollowGlobstar() {
126012
+ return !(this.#n === 0 || !this.isGlobstar() || !this.#f);
126013
+ }
126014
+ markFollowGlobstar() {
126015
+ return this.#n === 0 || !this.isGlobstar() || !this.#f ? !1 : (this.#f = !1, !0);
126016
+ }
126017
+ };
126018
+ });
126019
+ var ke = R((ee) => {
126020
+ "use strict";
126021
+ Object.defineProperty(ee, "__esModule", { value: !0 });
126022
+ ee.Ignore = void 0;
126023
+ var Ps = H(), Ar = Re(), kr = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", Ae = class {
126024
+ relative;
126025
+ relativeChildren;
126026
+ absolute;
126027
+ absoluteChildren;
126028
+ platform;
126029
+ mmopts;
126030
+ constructor(t, { nobrace: e, nocase: s, noext: i, noglobstar: r, platform: h = kr }) {
126031
+ this.relative = [], this.absolute = [], this.relativeChildren = [], this.absoluteChildren = [], this.platform = h, this.mmopts = {
126032
+ dot: !0,
126033
+ nobrace: e,
126034
+ nocase: s,
126035
+ noext: i,
126036
+ noglobstar: r,
126037
+ optimizationLevel: 2,
126038
+ platform: h,
126039
+ nocomment: !0,
126040
+ nonegate: !0
126041
+ };
126042
+ for (let o of t) this.add(o);
126043
+ }
126044
+ add(t) {
126045
+ let e = new Ps.Minimatch(t, this.mmopts);
126046
+ for (let s = 0; s < e.set.length; s++) {
126047
+ let i = e.set[s], r = e.globParts[s];
126048
+ if (!i || !r) throw new Error("invalid pattern object");
126049
+ for (; i[0] === "." && r[0] === ".";) i.shift(), r.shift();
126050
+ let h = new Ar.Pattern(i, r, 0, this.platform), o = new Ps.Minimatch(h.globString(), this.mmopts), a = r[r.length - 1] === "**", l = h.isAbsolute();
126051
+ l ? this.absolute.push(o) : this.relative.push(o), a && (l ? this.absoluteChildren.push(o) : this.relativeChildren.push(o));
126052
+ }
126053
+ }
126054
+ ignored(t) {
126055
+ let e = t.fullpath(), s = `${e}/`, i = t.relative() || ".", r = `${i}/`;
126056
+ for (let h of this.relative) if (h.match(i) || h.match(r)) return !0;
126057
+ for (let h of this.absolute) if (h.match(e) || h.match(s)) return !0;
126058
+ return !1;
126059
+ }
126060
+ childrenIgnored(t) {
126061
+ let e = t.fullpath() + "/", s = (t.relative() || ".") + "/";
126062
+ for (let i of this.relativeChildren) if (i.match(s)) return !0;
126063
+ for (let i of this.absoluteChildren) if (i.match(e)) return !0;
126064
+ return !1;
126065
+ }
126066
+ };
126067
+ ee.Ignore = Ae;
126068
+ });
126069
+ var Fs = R((z) => {
126070
+ "use strict";
126071
+ Object.defineProperty(z, "__esModule", { value: !0 });
126072
+ z.Processor = z.SubWalks = z.MatchRecord = z.HasWalkedCache = void 0;
126073
+ var Ds = H(), se = class n {
126074
+ store;
126075
+ constructor(t = /* @__PURE__ */ new Map()) {
126076
+ this.store = t;
126077
+ }
126078
+ copy() {
126079
+ return new n(new Map(this.store));
126080
+ }
126081
+ hasWalked(t, e) {
126082
+ return this.store.get(t.fullpath())?.has(e.globString());
126083
+ }
126084
+ storeWalked(t, e) {
126085
+ let s = t.fullpath(), i = this.store.get(s);
126086
+ i ? i.add(e.globString()) : this.store.set(s, new Set([e.globString()]));
126087
+ }
126088
+ };
126089
+ z.HasWalkedCache = se;
126090
+ var ie = class {
126091
+ store = /* @__PURE__ */ new Map();
126092
+ add(t, e, s) {
126093
+ let i = (e ? 2 : 0) | (s ? 1 : 0), r = this.store.get(t);
126094
+ this.store.set(t, r === void 0 ? i : i & r);
126095
+ }
126096
+ entries() {
126097
+ return [...this.store.entries()].map(([t, e]) => [
126098
+ t,
126099
+ !!(e & 2),
126100
+ !!(e & 1)
126101
+ ]);
126102
+ }
126103
+ };
126104
+ z.MatchRecord = ie;
126105
+ var re = class {
126106
+ store = /* @__PURE__ */ new Map();
126107
+ add(t, e) {
126108
+ if (!t.canReaddir()) return;
126109
+ let s = this.store.get(t);
126110
+ s ? s.find((i) => i.globString() === e.globString()) || s.push(e) : this.store.set(t, [e]);
126111
+ }
126112
+ get(t) {
126113
+ let e = this.store.get(t);
126114
+ if (!e) throw new Error("attempting to walk unknown path");
126115
+ return e;
126116
+ }
126117
+ entries() {
126118
+ return this.keys().map((t) => [t, this.store.get(t)]);
126119
+ }
126120
+ keys() {
126121
+ return [...this.store.keys()].filter((t) => t.canReaddir());
126122
+ }
126123
+ };
126124
+ z.SubWalks = re;
126125
+ z.Processor = class n {
126126
+ hasWalkedCache;
126127
+ matches = new ie();
126128
+ subwalks = new re();
126129
+ patterns;
126130
+ follow;
126131
+ dot;
126132
+ opts;
126133
+ constructor(t, e) {
126134
+ this.opts = t, this.follow = !!t.follow, this.dot = !!t.dot, this.hasWalkedCache = e ? e.copy() : new se();
126135
+ }
126136
+ processPatterns(t, e) {
126137
+ this.patterns = e;
126138
+ let s = e.map((i) => [t, i]);
126139
+ for (let [i, r] of s) {
126140
+ this.hasWalkedCache.storeWalked(i, r);
126141
+ let h = r.root(), o = r.isAbsolute() && this.opts.absolute !== !1;
126142
+ if (h) {
126143
+ i = i.resolve(h === "/" && this.opts.root !== void 0 ? this.opts.root : h);
126144
+ let c = r.rest();
126145
+ if (c) r = c;
126146
+ else {
126147
+ this.matches.add(i, !0, !1);
126148
+ continue;
126149
+ }
126150
+ }
126151
+ if (i.isENOENT()) continue;
126152
+ let a, l, f = !1;
126153
+ for (; typeof (a = r.pattern()) == "string" && (l = r.rest());) i = i.resolve(a), r = l, f = !0;
126154
+ if (a = r.pattern(), l = r.rest(), f) {
126155
+ if (this.hasWalkedCache.hasWalked(i, r)) continue;
126156
+ this.hasWalkedCache.storeWalked(i, r);
126157
+ }
126158
+ if (typeof a == "string") {
126159
+ let c = a === ".." || a === "" || a === ".";
126160
+ this.matches.add(i.resolve(a), o, c);
126161
+ continue;
126162
+ } else if (a === Ds.GLOBSTAR) {
126163
+ (!i.isSymbolicLink() || this.follow || r.checkFollowGlobstar()) && this.subwalks.add(i, r);
126164
+ let c = l?.pattern(), d = l?.rest();
126165
+ if (!l || (c === "" || c === ".") && !d) this.matches.add(i, o, c === "" || c === ".");
126166
+ else if (c === "..") {
126167
+ let u = i.parent || i;
126168
+ d ? this.hasWalkedCache.hasWalked(u, d) || this.subwalks.add(u, d) : this.matches.add(u, o, !0);
126169
+ }
126170
+ } else a instanceof RegExp && this.subwalks.add(i, r);
126171
+ }
126172
+ return this;
126173
+ }
126174
+ subwalkTargets() {
126175
+ return this.subwalks.keys();
126176
+ }
126177
+ child() {
126178
+ return new n(this.opts, this.hasWalkedCache);
126179
+ }
126180
+ filterEntries(t, e) {
126181
+ let s = this.subwalks.get(t), i = this.child();
126182
+ for (let r of e) for (let h of s) {
126183
+ let o = h.isAbsolute(), a = h.pattern(), l = h.rest();
126184
+ a === Ds.GLOBSTAR ? i.testGlobstar(r, h, l, o) : a instanceof RegExp ? i.testRegExp(r, a, l, o) : i.testString(r, a, l, o);
126185
+ }
126186
+ return i;
126187
+ }
126188
+ testGlobstar(t, e, s, i) {
126189
+ if ((this.dot || !t.name.startsWith(".")) && (e.hasMore() || this.matches.add(t, i, !1), t.canReaddir() && (this.follow || !t.isSymbolicLink() ? this.subwalks.add(t, e) : t.isSymbolicLink() && (s && e.checkFollowGlobstar() ? this.subwalks.add(t, s) : e.markFollowGlobstar() && this.subwalks.add(t, e)))), s) {
126190
+ let r = s.pattern();
126191
+ if (typeof r == "string" && r !== ".." && r !== "" && r !== ".") this.testString(t, r, s.rest(), i);
126192
+ else if (r === "..") {
126193
+ let h = t.parent || t;
126194
+ this.subwalks.add(h, s);
126195
+ } else r instanceof RegExp && this.testRegExp(t, r, s.rest(), i);
126196
+ }
126197
+ }
126198
+ testRegExp(t, e, s, i) {
126199
+ e.test(t.name) && (s ? this.subwalks.add(t, s) : this.matches.add(t, i, !1));
126200
+ }
126201
+ testString(t, e, s, i) {
126202
+ t.isNamed(e) && (s ? this.subwalks.add(t, s) : this.matches.add(t, i, !1));
126203
+ }
126204
+ };
126205
+ });
126206
+ var Ls = R((X) => {
126207
+ "use strict";
126208
+ Object.defineProperty(X, "__esModule", { value: !0 });
126209
+ X.GlobStream = X.GlobWalker = X.GlobUtil = void 0;
126210
+ var Mr = Oe(), js = ke(), Ns = Fs(), Pr = (n, t) => typeof n == "string" ? new js.Ignore([n], t) : Array.isArray(n) ? new js.Ignore(n, t) : n, Ot = class {
126211
+ path;
126212
+ patterns;
126213
+ opts;
126214
+ seen = /* @__PURE__ */ new Set();
126215
+ paused = !1;
126216
+ aborted = !1;
126217
+ #t = [];
126218
+ #s;
126219
+ #n;
126220
+ signal;
126221
+ maxDepth;
126222
+ includeChildMatches;
126223
+ constructor(t, e, s) {
126224
+ if (this.patterns = t, this.path = e, this.opts = s, this.#n = !s.posix && s.platform === "win32" ? "\\" : "/", this.includeChildMatches = s.includeChildMatches !== !1, (s.ignore || !this.includeChildMatches) && (this.#s = Pr(s.ignore ?? [], s), !this.includeChildMatches && typeof this.#s.add != "function")) throw new Error("cannot ignore child matches, ignore lacks add() method.");
126225
+ this.maxDepth = s.maxDepth || Infinity, s.signal && (this.signal = s.signal, this.signal.addEventListener("abort", () => {
126226
+ this.#t.length = 0;
126227
+ }));
126228
+ }
126229
+ #r(t) {
126230
+ return this.seen.has(t) || !!this.#s?.ignored?.(t);
126231
+ }
126232
+ #h(t) {
126233
+ return !!this.#s?.childrenIgnored?.(t);
126234
+ }
126235
+ pause() {
126236
+ this.paused = !0;
126237
+ }
126238
+ resume() {
126239
+ if (this.signal?.aborted) return;
126240
+ this.paused = !1;
126241
+ let t;
126242
+ for (; !this.paused && (t = this.#t.shift());) t();
126243
+ }
126244
+ onResume(t) {
126245
+ this.signal?.aborted || (this.paused ? this.#t.push(t) : t());
126246
+ }
126247
+ async matchCheck(t, e) {
126248
+ if (e && this.opts.nodir) return;
126249
+ let s;
126250
+ if (this.opts.realpath) {
126251
+ if (s = t.realpathCached() || await t.realpath(), !s) return;
126252
+ t = s;
126253
+ }
126254
+ let r = t.isUnknown() || this.opts.stat ? await t.lstat() : t;
126255
+ if (this.opts.follow && this.opts.nodir && r?.isSymbolicLink()) {
126256
+ let h = await r.realpath();
126257
+ h && (h.isUnknown() || this.opts.stat) && await h.lstat();
126258
+ }
126259
+ return this.matchCheckTest(r, e);
126260
+ }
126261
+ matchCheckTest(t, e) {
126262
+ return t && (this.maxDepth === Infinity || t.depth() <= this.maxDepth) && (!e || t.canReaddir()) && (!this.opts.nodir || !t.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !t.isSymbolicLink() || !t.realpathCached()?.isDirectory()) && !this.#r(t) ? t : void 0;
126263
+ }
126264
+ matchCheckSync(t, e) {
126265
+ if (e && this.opts.nodir) return;
126266
+ let s;
126267
+ if (this.opts.realpath) {
126268
+ if (s = t.realpathCached() || t.realpathSync(), !s) return;
126269
+ t = s;
126270
+ }
126271
+ let r = t.isUnknown() || this.opts.stat ? t.lstatSync() : t;
126272
+ if (this.opts.follow && this.opts.nodir && r?.isSymbolicLink()) {
126273
+ let h = r.realpathSync();
126274
+ h && (h?.isUnknown() || this.opts.stat) && h.lstatSync();
126275
+ }
126276
+ return this.matchCheckTest(r, e);
126277
+ }
126278
+ matchFinish(t, e) {
126279
+ if (this.#r(t)) return;
126280
+ if (!this.includeChildMatches && this.#s?.add) {
126281
+ let r = `${t.relativePosix()}/**`;
126282
+ this.#s.add(r);
126283
+ }
126284
+ let s = this.opts.absolute === void 0 ? e : this.opts.absolute;
126285
+ this.seen.add(t);
126286
+ let i = this.opts.mark && t.isDirectory() ? this.#n : "";
126287
+ if (this.opts.withFileTypes) this.matchEmit(t);
126288
+ else if (s) {
126289
+ let r = this.opts.posix ? t.fullpathPosix() : t.fullpath();
126290
+ this.matchEmit(r + i);
126291
+ } else {
126292
+ let r = this.opts.posix ? t.relativePosix() : t.relative(), h = this.opts.dotRelative && !r.startsWith(".." + this.#n) ? "." + this.#n : "";
126293
+ this.matchEmit(r ? h + r + i : "." + i);
126294
+ }
126295
+ }
126296
+ async match(t, e, s) {
126297
+ let i = await this.matchCheck(t, s);
126298
+ i && this.matchFinish(i, e);
126299
+ }
126300
+ matchSync(t, e, s) {
126301
+ let i = this.matchCheckSync(t, s);
126302
+ i && this.matchFinish(i, e);
126303
+ }
126304
+ walkCB(t, e, s) {
126305
+ this.signal?.aborted && s(), this.walkCB2(t, e, new Ns.Processor(this.opts), s);
126306
+ }
126307
+ walkCB2(t, e, s, i) {
126308
+ if (this.#h(t)) return i();
126309
+ if (this.signal?.aborted && i(), this.paused) {
126310
+ this.onResume(() => this.walkCB2(t, e, s, i));
126311
+ return;
126312
+ }
126313
+ s.processPatterns(t, e);
126314
+ let r = 1, h = () => {
126315
+ --r === 0 && i();
126316
+ };
126317
+ for (let [o, a, l] of s.matches.entries()) this.#r(o) || (r++, this.match(o, a, l).then(() => h()));
126318
+ for (let o of s.subwalkTargets()) {
126319
+ if (this.maxDepth !== Infinity && o.depth() >= this.maxDepth) continue;
126320
+ r++;
126321
+ let a = o.readdirCached();
126322
+ o.calledReaddir() ? this.walkCB3(o, a, s, h) : o.readdirCB((l, f) => this.walkCB3(o, f, s, h), !0);
126323
+ }
126324
+ h();
126325
+ }
126326
+ walkCB3(t, e, s, i) {
126327
+ s = s.filterEntries(t, e);
126328
+ let r = 1, h = () => {
126329
+ --r === 0 && i();
126330
+ };
126331
+ for (let [o, a, l] of s.matches.entries()) this.#r(o) || (r++, this.match(o, a, l).then(() => h()));
126332
+ for (let [o, a] of s.subwalks.entries()) r++, this.walkCB2(o, a, s.child(), h);
126333
+ h();
126334
+ }
126335
+ walkCBSync(t, e, s) {
126336
+ this.signal?.aborted && s(), this.walkCB2Sync(t, e, new Ns.Processor(this.opts), s);
126337
+ }
126338
+ walkCB2Sync(t, e, s, i) {
126339
+ if (this.#h(t)) return i();
126340
+ if (this.signal?.aborted && i(), this.paused) {
126341
+ this.onResume(() => this.walkCB2Sync(t, e, s, i));
126342
+ return;
126343
+ }
126344
+ s.processPatterns(t, e);
126345
+ let r = 1, h = () => {
126346
+ --r === 0 && i();
126347
+ };
126348
+ for (let [o, a, l] of s.matches.entries()) this.#r(o) || this.matchSync(o, a, l);
126349
+ for (let o of s.subwalkTargets()) {
126350
+ if (this.maxDepth !== Infinity && o.depth() >= this.maxDepth) continue;
126351
+ r++;
126352
+ let a = o.readdirSync();
126353
+ this.walkCB3Sync(o, a, s, h);
126354
+ }
126355
+ h();
126356
+ }
126357
+ walkCB3Sync(t, e, s, i) {
126358
+ s = s.filterEntries(t, e);
126359
+ let r = 1, h = () => {
126360
+ --r === 0 && i();
126361
+ };
126362
+ for (let [o, a, l] of s.matches.entries()) this.#r(o) || this.matchSync(o, a, l);
126363
+ for (let [o, a] of s.subwalks.entries()) r++, this.walkCB2Sync(o, a, s.child(), h);
126364
+ h();
126365
+ }
126366
+ };
126367
+ X.GlobUtil = Ot;
126368
+ var Pe = class extends Ot {
126369
+ matches = /* @__PURE__ */ new Set();
126370
+ constructor(t, e, s) {
126371
+ super(t, e, s);
126372
+ }
126373
+ matchEmit(t) {
126374
+ this.matches.add(t);
126375
+ }
126376
+ async walk() {
126377
+ if (this.signal?.aborted) throw this.signal.reason;
126378
+ return this.path.isUnknown() && await this.path.lstat(), await new Promise((t, e) => {
126379
+ this.walkCB(this.path, this.patterns, () => {
126380
+ this.signal?.aborted ? e(this.signal.reason) : t(this.matches);
126381
+ });
126382
+ }), this.matches;
126383
+ }
126384
+ walkSync() {
126385
+ if (this.signal?.aborted) throw this.signal.reason;
126386
+ return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => {
126387
+ if (this.signal?.aborted) throw this.signal.reason;
126388
+ }), this.matches;
126389
+ }
126390
+ };
126391
+ X.GlobWalker = Pe;
126392
+ var De = class extends Ot {
126393
+ results;
126394
+ constructor(t, e, s) {
126395
+ super(t, e, s), this.results = new Mr.Minipass({
126396
+ signal: this.signal,
126397
+ objectMode: !0
126398
+ }), this.results.on("drain", () => this.resume()), this.results.on("resume", () => this.resume());
126399
+ }
126400
+ matchEmit(t) {
126401
+ this.results.write(t), this.results.flowing || this.pause();
126402
+ }
126403
+ stream() {
126404
+ let t = this.path;
126405
+ return t.isUnknown() ? t.lstat().then(() => {
126406
+ this.walkCB(t, this.patterns, () => this.results.end());
126407
+ }) : this.walkCB(t, this.patterns, () => this.results.end()), this.results;
126408
+ }
126409
+ streamSync() {
126410
+ return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => this.results.end()), this.results;
126411
+ }
126412
+ };
126413
+ X.GlobStream = De;
126414
+ });
126415
+ var je = R((oe) => {
126416
+ "use strict";
126417
+ Object.defineProperty(oe, "__esModule", { value: !0 });
126418
+ oe.Glob = void 0;
126419
+ var Dr = H(), Fr = require("node:url"), ne = Ms(), jr = Re(), he = Ls(), Nr = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", Fe = class {
126420
+ absolute;
126421
+ cwd;
126422
+ root;
126423
+ dot;
126424
+ dotRelative;
126425
+ follow;
126426
+ ignore;
126427
+ magicalBraces;
126428
+ mark;
126429
+ matchBase;
126430
+ maxDepth;
126431
+ nobrace;
126432
+ nocase;
126433
+ nodir;
126434
+ noext;
126435
+ noglobstar;
126436
+ pattern;
126437
+ platform;
126438
+ realpath;
126439
+ scurry;
126440
+ stat;
126441
+ signal;
126442
+ windowsPathsNoEscape;
126443
+ withFileTypes;
126444
+ includeChildMatches;
126445
+ opts;
126446
+ patterns;
126447
+ constructor(t, e) {
126448
+ if (!e) throw new TypeError("glob options required");
126449
+ if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = (0, Fr.fileURLToPath)(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== !1, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth : Infinity, this.stat = !!e.stat, this.ignore = e.ignore, this.withFileTypes && this.absolute !== void 0) throw new Error("cannot set absolute and withFileTypes:true");
126450
+ if (typeof t == "string" && (t = [t]), this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === !1, this.windowsPathsNoEscape && (t = t.map((a) => a.replace(/\\/g, "/"))), this.matchBase) {
126451
+ if (e.noglobstar) throw new TypeError("base matching requires globstar");
126452
+ t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
126453
+ }
126454
+ if (this.pattern = t, this.platform = e.platform || Nr, this.opts = {
126455
+ ...e,
126456
+ platform: this.platform
126457
+ }, e.scurry) {
126458
+ if (this.scurry = e.scurry, e.nocase !== void 0 && e.nocase !== e.scurry.nocase) throw new Error("nocase option contradicts provided scurry option");
126459
+ } else this.scurry = new (e.platform === "win32" ? ne.PathScurryWin32 : e.platform === "darwin" ? ne.PathScurryDarwin : e.platform ? ne.PathScurryPosix : ne.PathScurry)(this.cwd, {
126460
+ nocase: e.nocase,
126461
+ fs: e.fs
126462
+ });
126463
+ this.nocase = this.scurry.nocase;
126464
+ let s = this.platform === "darwin" || this.platform === "win32", i = {
126465
+ braceExpandMax: 1e4,
126466
+ ...e,
126467
+ dot: this.dot,
126468
+ matchBase: this.matchBase,
126469
+ nobrace: this.nobrace,
126470
+ nocase: this.nocase,
126471
+ nocaseMagicOnly: s,
126472
+ nocomment: !0,
126473
+ noext: this.noext,
126474
+ nonegate: !0,
126475
+ optimizationLevel: 2,
126476
+ platform: this.platform,
126477
+ windowsPathsNoEscape: this.windowsPathsNoEscape,
126478
+ debug: !!this.opts.debug
126479
+ }, [h, o] = this.pattern.map((a) => new Dr.Minimatch(a, i)).reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
126480
+ this.patterns = h.map((a, l) => {
126481
+ let f = o[l];
126482
+ if (!f) throw new Error("invalid pattern object");
126483
+ return new jr.Pattern(a, f, 0, this.platform);
126484
+ });
126485
+ }
126486
+ async walk() {
126487
+ return [...await new he.GlobWalker(this.patterns, this.scurry.cwd, {
126488
+ ...this.opts,
126489
+ maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
126490
+ platform: this.platform,
126491
+ nocase: this.nocase,
126492
+ includeChildMatches: this.includeChildMatches
126493
+ }).walk()];
126494
+ }
126495
+ walkSync() {
126496
+ return [...new he.GlobWalker(this.patterns, this.scurry.cwd, {
126497
+ ...this.opts,
126498
+ maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
126499
+ platform: this.platform,
126500
+ nocase: this.nocase,
126501
+ includeChildMatches: this.includeChildMatches
126502
+ }).walkSync()];
126503
+ }
126504
+ stream() {
126505
+ return new he.GlobStream(this.patterns, this.scurry.cwd, {
126506
+ ...this.opts,
126507
+ maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
126508
+ platform: this.platform,
126509
+ nocase: this.nocase,
126510
+ includeChildMatches: this.includeChildMatches
126511
+ }).stream();
126512
+ }
126513
+ streamSync() {
126514
+ return new he.GlobStream(this.patterns, this.scurry.cwd, {
126515
+ ...this.opts,
126516
+ maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
126517
+ platform: this.platform,
126518
+ nocase: this.nocase,
126519
+ includeChildMatches: this.includeChildMatches
126520
+ }).streamSync();
126521
+ }
126522
+ iterateSync() {
126523
+ return this.streamSync()[Symbol.iterator]();
126524
+ }
126525
+ [Symbol.iterator]() {
126526
+ return this.iterateSync();
126527
+ }
126528
+ iterate() {
126529
+ return this.stream()[Symbol.asyncIterator]();
126530
+ }
126531
+ [Symbol.asyncIterator]() {
126532
+ return this.iterate();
126533
+ }
126534
+ };
126535
+ oe.Glob = Fe;
126536
+ });
126537
+ var Ne = R((ae) => {
126538
+ "use strict";
126539
+ Object.defineProperty(ae, "__esModule", { value: !0 });
126540
+ ae.hasMagic = void 0;
126541
+ var Lr = H(), Wr = (n, t = {}) => {
126542
+ Array.isArray(n) || (n = [n]);
126543
+ for (let e of n) if (new Lr.Minimatch(e, t).hasMagic()) return !0;
126544
+ return !1;
126545
+ };
126546
+ ae.hasMagic = Wr;
126547
+ });
126548
+ Object.defineProperty(exports, "__esModule", { value: !0 });
126549
+ exports.glob = exports.sync = exports.iterate = exports.iterateSync = exports.stream = exports.streamSync = exports.Ignore = exports.hasMagic = exports.Glob = exports.unescape = exports.escape = void 0;
126550
+ exports.globStreamSync = xt;
126551
+ exports.globStream = Le;
126552
+ exports.globSync = We;
126553
+ exports.globIterateSync = Tt;
126554
+ exports.globIterate = Be;
126555
+ var Ws = H(), tt = je(), Br = Ne(), Is = H();
126556
+ Object.defineProperty(exports, "escape", {
126557
+ enumerable: !0,
126558
+ get: function() {
126559
+ return Is.escape;
126560
+ }
126561
+ });
126562
+ Object.defineProperty(exports, "unescape", {
126563
+ enumerable: !0,
126564
+ get: function() {
126565
+ return Is.unescape;
126566
+ }
126567
+ });
126568
+ var Ir = je();
126569
+ Object.defineProperty(exports, "Glob", {
126570
+ enumerable: !0,
126571
+ get: function() {
126572
+ return Ir.Glob;
126573
+ }
126574
+ });
126575
+ var Gr = Ne();
126576
+ Object.defineProperty(exports, "hasMagic", {
126577
+ enumerable: !0,
126578
+ get: function() {
126579
+ return Gr.hasMagic;
126580
+ }
126581
+ });
126582
+ var zr = ke();
126583
+ Object.defineProperty(exports, "Ignore", {
126584
+ enumerable: !0,
126585
+ get: function() {
126586
+ return zr.Ignore;
126587
+ }
126588
+ });
126589
+ function xt(n, t = {}) {
126590
+ return new tt.Glob(n, t).streamSync();
126591
+ }
126592
+ function Le(n, t = {}) {
126593
+ return new tt.Glob(n, t).stream();
126594
+ }
126595
+ function We(n, t = {}) {
126596
+ return new tt.Glob(n, t).walkSync();
126597
+ }
126598
+ async function Bs(n, t = {}) {
126599
+ return new tt.Glob(n, t).walk();
126600
+ }
126601
+ function Tt(n, t = {}) {
126602
+ return new tt.Glob(n, t).iterateSync();
126603
+ }
126604
+ function Be(n, t = {}) {
126605
+ return new tt.Glob(n, t).iterate();
126606
+ }
126607
+ exports.streamSync = xt;
126608
+ exports.stream = Object.assign(Le, { sync: xt });
126609
+ exports.iterateSync = Tt;
126610
+ exports.iterate = Object.assign(Be, { sync: Tt });
126611
+ exports.sync = Object.assign(We, {
126612
+ stream: xt,
126613
+ iterate: Tt
126614
+ });
126615
+ exports.glob = Object.assign(Bs, {
126616
+ glob: Bs,
126617
+ globSync: We,
126618
+ sync: exports.sync,
126619
+ globStream: Le,
126620
+ stream: exports.stream,
126621
+ globStreamSync: xt,
126622
+ streamSync: exports.streamSync,
126623
+ globIterate: Be,
126624
+ iterate: exports.iterate,
126625
+ globIterateSync: Tt,
126626
+ iterateSync: exports.iterateSync,
126627
+ Glob: tt.Glob,
126628
+ hasMagic: Br.hasMagic,
126629
+ escape: Ws.escape,
126630
+ unescape: Ws.unescape
126631
+ });
126632
+ exports.glob.glob = exports.glob;
126633
+ }));
126634
+ //#endregion
126635
+ //#region ../base/dist/helpers/glob.js
126636
+ var require_glob = /* @__PURE__ */ __commonJSMin(((exports) => {
126637
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
126638
+ if (k2 === void 0) k2 = k;
126639
+ var desc = Object.getOwnPropertyDescriptor(m, k);
126640
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
126641
+ enumerable: true,
126642
+ get: function() {
126643
+ return m[k];
126644
+ }
126645
+ };
126646
+ Object.defineProperty(o, k2, desc);
126647
+ }) : (function(o, m, k, k2) {
126648
+ if (k2 === void 0) k2 = k;
126649
+ o[k2] = m[k];
126650
+ }));
126651
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
126652
+ Object.defineProperty(o, "default", {
126653
+ enumerable: true,
126654
+ value: v
126655
+ });
126656
+ }) : function(o, v) {
126657
+ o["default"] = v;
126658
+ });
126659
+ var __importStar = exports && exports.__importStar || function(mod) {
126660
+ if (mod && mod.__esModule) return mod;
126661
+ var result = {};
126662
+ if (mod != null) {
126663
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
126664
+ }
126665
+ __setModuleDefault(result, mod);
126666
+ return result;
126667
+ };
126668
+ var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
126669
+ function adopt(value) {
126670
+ return value instanceof P ? value : new P(function(resolve) {
126671
+ resolve(value);
126672
+ });
126673
+ }
126674
+ return new (P || (P = Promise))(function(resolve, reject) {
126675
+ function fulfilled(value) {
126676
+ try {
126677
+ step(generator.next(value));
126678
+ } catch (e) {
126679
+ reject(e);
126680
+ }
126681
+ }
126682
+ function rejected(value) {
126683
+ try {
126684
+ step(generator["throw"](value));
126685
+ } catch (e) {
126686
+ reject(e);
126687
+ }
126688
+ }
126689
+ function step(result) {
126690
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
126691
+ }
126692
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
126693
+ });
126694
+ };
126695
+ var __importDefault = exports && exports.__importDefault || function(mod) {
126696
+ return mod && mod.__esModule ? mod : { "default": mod };
126697
+ };
126698
+ Object.defineProperty(exports, "__esModule", { value: true });
126699
+ exports.parsePathsList = exports.globAsync = exports.globSync = exports.hasMagic = void 0;
126700
+ const globModule = __importStar(require_index_min());
126701
+ const upath_1 = __importDefault(require_upath());
126702
+ const { hasMagic } = globModule;
126703
+ exports.hasMagic = hasMagic;
126704
+ /**
126705
+ * Synchronous form of `glob` which returns `upath`-normalized paths.
126706
+ */
126707
+ const globSync = (pattern, opts) => {
126708
+ return globModule.sync(pattern, Object.assign({}, opts)).map((path) => upath_1.default.normalizeSafe(path));
126709
+ };
126710
+ exports.globSync = globSync;
126711
+ /**
126712
+ * Asynchronous form of `glob` which returns `upath`-normalized paths.
126713
+ */
126714
+ const globAsync = (pattern, opts) => __awaiter(void 0, void 0, void 0, function* () {
126715
+ return (yield globModule.glob(pattern, Object.assign({}, opts))).map((path) => upath_1.default.normalizeSafe(path));
126716
+ });
126717
+ exports.globAsync = globAsync;
126718
+ const parsePathsList = (paths) => {
126719
+ if (!paths) return [];
126720
+ return paths.split(",").flatMap((path) => globModule.hasMagic(path) ? (0, exports.globSync)(path, { dotRelative: true }) : [path]).map((path) => path.endsWith("/") ? path.slice(0, -1) : path);
126721
+ };
126722
+ exports.parsePathsList = parsePathsList;
126723
+ }));
126724
+ //#endregion
123393
126725
  //#region ../base/dist/helpers/git/get-git-data.js
123394
126726
  var require_get_git_data = /* @__PURE__ */ __commonJSMin(((exports) => {
123395
126727
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
@@ -123867,10 +127199,11 @@ var require_ci = /* @__PURE__ */ __commonJSMin(((exports) => {
123867
127199
  return mod && mod.__esModule ? mod : { "default": mod };
123868
127200
  };
123869
127201
  Object.defineProperty(exports, "__esModule", { value: true });
123870
- exports.getGithubJobIDFromLogs = exports.getGithubStepInfoFromLogs = exports.enrichCIEnvFromGithubLogs = exports.getGithubJobNameFromLogs = exports.isGithubWindowsRunner = exports.shouldGetGithubJobID = exports.shouldGetGithubJobDisplayName = exports.isInteractive = exports.getCIProvider = exports.isCI = exports.getCIEnv = exports.getCIMetadata = exports.getCISpanTags = exports.githubWellKnownDiagnosticDirsWin = exports.githubWellKnownDiagnosticDirsUnix = exports.validateLevel = exports.LEVEL_TO_NUMBER = exports.VALID_LEVELS = exports.CI_LEVELS = exports.envDDGithubStepIndex = exports.envDDGithubJobName = exports.CI_ENGINES = void 0;
127202
+ exports.getGithubJobIDFromLogs = exports.getGithubStepInfoFromLogs = exports.enrichCIEnvFromGithubLogs = exports.getGithubJobNameFromLogs = exports.isGithubWindowsRunner = exports.shouldGetGithubJobID = exports.shouldGetGithubJobDisplayName = exports.isInteractive = exports.getCIProvider = exports.isCI = exports.getCIEnv = exports.getCIMetadata = exports.getCISpanTags = exports.githubWellKnownDiagnosticDirPatternsWin = exports.githubWellKnownDiagnosticDirPatternsUnix = exports.githubWellKnownDiagnosticDirsWin = exports.githubWellKnownDiagnosticDirsUnix = exports.validateLevel = exports.LEVEL_TO_NUMBER = exports.VALID_LEVELS = exports.CI_LEVELS = exports.envDDGithubStepIndex = exports.envDDGithubJobName = exports.CI_ENGINES = void 0;
123871
127203
  const fs_1$2 = __importDefault(require("fs"));
123872
127204
  const chalk_1 = __importDefault(require_source$1());
123873
127205
  const upath_1 = __importDefault(require_upath());
127206
+ const glob_1 = require_glob();
123874
127207
  const tags_1 = require_tags();
123875
127208
  const user_provided_git_1 = require_user_provided_git();
123876
127209
  const utils_1 = require_utils();
@@ -123924,12 +127257,10 @@ var require_ci = /* @__PURE__ */ __commonJSMin(((exports) => {
123924
127257
  if (level === exports.CI_LEVELS.STEP && provider !== exports.CI_ENGINES.GITHUB) return `Level '${exports.CI_LEVELS.STEP}' is only supported for provider [${exports.CI_ENGINES.GITHUB}]`;
123925
127258
  };
123926
127259
  exports.validateLevel = validateLevel;
123927
- exports.githubWellKnownDiagnosticDirsUnix = [
123928
- "/home/runner/actions-runner/cached/_diag",
123929
- "/home/runner/actions-runner/_diag",
123930
- "/opt/actions-runner/_diag"
123931
- ];
123932
- exports.githubWellKnownDiagnosticDirsWin = ["C:/actions-runner/cached/_diag", "C:/actions-runner/_diag"];
127260
+ exports.githubWellKnownDiagnosticDirsUnix = ["/home/runner/actions-runner/_diag", "/opt/actions-runner/_diag"];
127261
+ exports.githubWellKnownDiagnosticDirsWin = ["C:/actions-runner/_diag"];
127262
+ exports.githubWellKnownDiagnosticDirPatternsUnix = ["/home/runner/actions-runner/*/_diag", "/home/runner/actions-runner/*/*/_diag"];
127263
+ exports.githubWellKnownDiagnosticDirPatternsWin = ["C:/actions-runner/*/_diag", "C:/actions-runner/*/*/_diag"];
123933
127264
  const githubJobDisplayNameRegex = /"jobDisplayName":\s*"((?:[^"\\]|\\.)*)"/;
123934
127265
  const githubJodIDRegex = /"job":\s*{[\s\S]*?"v"\s*:\s*(\d+)(?:\.0)?/;
123935
127266
  /**
@@ -123960,13 +127291,27 @@ var require_ci = /* @__PURE__ */ __commonJSMin(((exports) => {
123960
127291
  const runnerTemp = process.env.RUNNER_TEMP;
123961
127292
  if (runnerTemp) {
123962
127293
  const runnerRoot = upath_1.default.resolve(runnerTemp, "..", "..");
123963
- dirs.push(upath_1.default.join(runnerRoot, "cached", "_diag"));
127294
+ dirs.push(`${runnerRoot}/*/_diag`);
127295
+ dirs.push(`${runnerRoot}/*/*/_diag`);
123964
127296
  dirs.push(upath_1.default.join(runnerRoot, "_diag"));
123965
- dirs.push(upath_1.default.join(runnerRoot, "actions-runner", "cached", "_diag"));
127297
+ dirs.push(`${runnerRoot}/actions-runner/*/_diag`);
127298
+ dirs.push(`${runnerRoot}/actions-runner/*/*/_diag`);
123966
127299
  dirs.push(upath_1.default.join(runnerRoot, "actions-runner", "_diag"));
123967
127300
  }
123968
127301
  return uniq(dirs.filter(Boolean));
123969
127302
  };
127303
+ /**
127304
+ * Expands a mixed list of literal directories and glob patterns into concrete
127305
+ * directories. Literals pass through unchanged (existence is checked later).
127306
+ */
127307
+ const expandDiagnosticDirCandidates = (candidates) => {
127308
+ const expanded = [];
127309
+ for (const candidate of candidates) if ((0, glob_1.hasMagic)(candidate)) try {
127310
+ expanded.push(...(0, glob_1.globSync)(candidate));
127311
+ } catch (_a) {}
127312
+ else expanded.push(candidate);
127313
+ return uniq(expanded);
127314
+ };
123970
127315
  const parseEmailAndName = (emailAndName) => {
123971
127316
  if (!emailAndName) return {
123972
127317
  name: "",
@@ -124558,8 +127903,16 @@ var require_ci = /* @__PURE__ */ __commonJSMin(((exports) => {
124558
127903
  const getGithubWorkerLogFiles = (context) => {
124559
127904
  let foundDiagDir = "";
124560
127905
  let workerLogFiles = [];
124561
- let wellKnownDirs = uniq([...getGithubDiagnosticDirsFromEnv(), ...exports.githubWellKnownDiagnosticDirsUnix]);
124562
- if ((0, exports.isGithubWindowsRunner)()) wellKnownDirs = uniq([...getGithubDiagnosticDirsFromEnv(), ...exports.githubWellKnownDiagnosticDirsWin]);
127906
+ let wellKnownDirs = expandDiagnosticDirCandidates([
127907
+ ...getGithubDiagnosticDirsFromEnv(),
127908
+ ...exports.githubWellKnownDiagnosticDirPatternsUnix,
127909
+ ...exports.githubWellKnownDiagnosticDirsUnix
127910
+ ]);
127911
+ if ((0, exports.isGithubWindowsRunner)()) wellKnownDirs = expandDiagnosticDirCandidates([
127912
+ ...getGithubDiagnosticDirsFromEnv(),
127913
+ ...exports.githubWellKnownDiagnosticDirPatternsWin,
127914
+ ...exports.githubWellKnownDiagnosticDirsWin
127915
+ ]);
124563
127916
  for (const currentDir of wellKnownDirs) try {
124564
127917
  const potentialLogs = fs_1$2.default.readdirSync(currentDir, { withFileTypes: true }).filter((file) => file.isFile() && file.name.startsWith("Worker_") && file.name.endsWith(".log")).map((file) => file.name);
124565
127918
  if (potentialLogs.length > 0) {
@@ -124582,22 +127935,43 @@ var require_ci = /* @__PURE__ */ __commonJSMin(((exports) => {
124582
127935
  return [foundDiagDir, workerLogFiles];
124583
127936
  };
124584
127937
  /**
124585
- * Narrows the list of Worker log files to check by using ACTIONS_ORCHESTRATION_ID
124586
- * to identify the correct log for the current job on non-ephemeral runners.
127938
+ * Narrows the list of Worker log files to the one belonging to the current job.
127939
+ *
127940
+ * Worker log filenames contain a timestamp (Worker_YYYYMMDD-HHMMSS-utc.log), so
127941
+ * alphabetical order equals chronological order. Logs are always returned
127942
+ * newest-first so that the caller's iteration naturally encounters the current
127943
+ * job's log before any earlier ones — correct on both ephemeral and non-ephemeral
127944
+ * (multi) runners regardless of the strategy used.
127945
+ *
127946
+ * Primary strategy (runner >= v2.331.0, feature-flag gated):
127947
+ * ACTIONS_ORCHESTRATION_ID is set by the runner from the system.orchestrationId
127948
+ * variable in the job request message. That variable is serialized into the Worker
127949
+ * log as part of the job message JSON. planId is a GUID shared by all jobs in the
127950
+ * same workflow run, so the full orchestration ID is needed for a unique match:
127951
+ * Non-matrix job: <planId>.<yaml-job-key>.__default
127952
+ * Single-dimension matrix: <planId>.<yaml-job-key>.<matrix-value>
127953
+ * Multi-dimension matrix: <planId>.<yaml-job-key>.<val1>.<val2>[...]
127954
+ *
127955
+ * Fallback (runner < v2.331.0 or ACTIONS_ORCHESTRATION_ID absent/unmatched):
127956
+ * Return all logs newest-first. The caller iterates until it finds a jobDisplayName,
127957
+ * which on a single-job runner is immediate, and on a multi-runner is the current
127958
+ * job's (most recent) log.
124587
127959
  */
124588
127960
  const getTargetWorkerLogFiles = (context, foundDiagDir, workerLogFiles) => {
127961
+ const sortedNewestFirst = [...workerLogFiles].sort().reverse();
124589
127962
  const orchestrationId = process.env.ACTIONS_ORCHESTRATION_ID;
124590
- if (!orchestrationId) return workerLogFiles;
124591
- const planId = orchestrationId.split(".")[0];
124592
- for (const logFile of workerLogFiles) {
124593
- const filePath = upath_1.default.join(foundDiagDir, logFile);
124594
- if (fs_1$2.default.readFileSync(filePath, "utf-8").includes(`"planId": "${planId}"`)) {
124595
- context.stdout.write(`Found Worker log for planId ${planId}: ${logFile}\n`);
124596
- return [logFile];
127963
+ if (orchestrationId) {
127964
+ for (const logFile of sortedNewestFirst) {
127965
+ const filePath = upath_1.default.join(foundDiagDir, logFile);
127966
+ const content = fs_1$2.default.readFileSync(filePath, "utf-8");
127967
+ if (content.includes("\"system.orchestrationId\":") && content.includes(`"${orchestrationId}"`)) {
127968
+ context.stdout.write(`Found Worker log via system.orchestrationId for ${orchestrationId}: ${logFile}\n`);
127969
+ return [logFile];
127970
+ }
124597
127971
  }
127972
+ context.stderr.write(`${chalk_1.default.yellow.bold("[WARNING]")} Could not find Worker log via system.orchestrationId for ${orchestrationId}, checking all logs\n`);
124598
127973
  }
124599
- context.stderr.write(`${chalk_1.default.yellow.bold("[WARNING]")} Could not find Worker log for planId ${planId}, checking all logs\n`);
124600
- return workerLogFiles;
127974
+ return sortedNewestFirst;
124601
127975
  };
124602
127976
  const getGithubJobAttributeFromLogFiles = (context, foundDiagDir, workerLogFiles, jobAttributeRegex) => {
124603
127977
  const logsToCheck = getTargetWorkerLogFiles(context, foundDiagDir, workerLogFiles);
@@ -152320,6 +155694,7 @@ var require_upload$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
152320
155694
  const fs_1$1 = __importDefault(require("fs"));
152321
155695
  const zlib_1 = require("zlib");
152322
155696
  const form_data_1 = __importDefault(require_form_data());
155697
+ const datadog_route_1 = require_datadog_route();
152323
155698
  const retry_1 = require_retry();
152324
155699
  var UploadStatus;
152325
155700
  (function(UploadStatus) {
@@ -152373,7 +155748,7 @@ var require_upload$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
152373
155748
  data,
152374
155749
  headers,
152375
155750
  method: "POST",
152376
- url: "v1/input"
155751
+ url: (0, datadog_route_1.datadogRoute)("/v1/input")
152377
155752
  });
152378
155753
  });
152379
155754
  }));
@@ -152431,6 +155806,7 @@ var require_gitdb = /* @__PURE__ */ __commonJSMin(((exports) => {
152431
155806
  const semver_1 = require_semver();
152432
155807
  const upath_1 = __importDefault(require_upath());
152433
155808
  const get_git_data_1 = require_get_git_data();
155809
+ const datadog_route_1 = require_datadog_route();
152434
155810
  const retry_1 = require_retry();
152435
155811
  const API_TIMEOUT = 15e3;
152436
155812
  const MAX_HISTORY = {
@@ -152584,7 +155960,7 @@ var require_gitdb = /* @__PURE__ */ __commonJSMin(((exports) => {
152584
155960
  }))
152585
155961
  });
152586
155962
  const response = yield runRequest(log, "search_commits", () => request({
152587
- url: "/api/v2/git/repository/search_commits",
155963
+ url: (0, datadog_route_1.datadogRoute)("/api/v2/git/repository/search_commits"),
152588
155964
  headers: { "Content-Type": "application/json" },
152589
155965
  data: localCommitData,
152590
155966
  method: "POST",
@@ -152661,7 +156037,7 @@ var require_gitdb = /* @__PURE__ */ __commonJSMin(((exports) => {
152661
156037
  contentType: "application/octet-stream"
152662
156038
  });
152663
156039
  return runRequest(log, "packfile", () => request({
152664
- url: "/api/v2/git/repository/packfile",
156040
+ url: (0, datadog_route_1.datadogRoute)("/api/v2/git/repository/packfile"),
152665
156041
  headers: Object.assign({}, form.getHeaders()),
152666
156042
  timeout: API_TIMEOUT,
152667
156043
  data: form,
@@ -152715,6 +156091,7 @@ var require_library = /* @__PURE__ */ __commonJSMin(((exports) => {
152715
156091
  exports.uploadRepository = exports.uploadGitCommitHash = exports.getGitCommitInfo = exports.isGitRepo = void 0;
152716
156092
  const apikey_1 = require_apikey();
152717
156093
  const logger_1 = require_logger();
156094
+ const datadog_route_1 = require_datadog_route();
152718
156095
  const upload_1 = require_upload$1();
152719
156096
  const utils_1 = require_utils();
152720
156097
  const version_1 = require_version();
@@ -152758,7 +156135,7 @@ var require_library = /* @__PURE__ */ __commonJSMin(((exports) => {
152758
156135
  apiKey,
152759
156136
  baseUrl: "https://sourcemap-intake." + datadogSite,
152760
156137
  headers: new Map([["DD-EVP-ORIGIN", "datadog-ci_sci"], ["DD-EVP-ORIGIN-VERSION", version_1.cliVersion]]),
152761
- overrideUrl: "api/v2/srcmap"
156138
+ overrideUrl: (0, datadog_route_1.datadogRoute)("/api/v2/srcmap")
152762
156139
  });
152763
156140
  if ((yield (0, exports.uploadRepository)(requestBuilder, version_1.cliVersion)(payload, {
152764
156141
  apiKeyValidator,
@@ -152848,6 +156225,7 @@ var require_upload = /* @__PURE__ */ __commonJSMin(((exports) => {
152848
156225
  const formatting_1 = require_formatting();
152849
156226
  const logger_1 = require_logger();
152850
156227
  const metrics_1 = require_metrics();
156228
+ const datadog_route_1 = require_datadog_route();
152851
156229
  const upload_1 = require_upload$1();
152852
156230
  const utils_1 = require_utils();
152853
156231
  const version_1 = require_version();
@@ -152985,7 +156363,7 @@ var require_upload = /* @__PURE__ */ __commonJSMin(((exports) => {
152985
156363
  apiKey,
152986
156364
  baseUrl: (0, api_1.getBaseIntakeUrl)(),
152987
156365
  headers: new Map([["DD-EVP-ORIGIN", "datadog-ci_git-metadata"], ["DD-EVP-ORIGIN-VERSION", this.cliVersion]]),
152988
- overrideUrl: "api/v2/srcmap"
156366
+ overrideUrl: (0, datadog_route_1.datadogRoute)("/api/v2/srcmap")
152989
156367
  });
152990
156368
  }
152991
156369
  getApiRequestBuilder(apiKey) {