@socketsecurity/lib 5.26.0 → 5.26.1

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.
Files changed (147) hide show
  1. package/CHANGELOG.md +345 -1185
  2. package/README.md +1 -1
  3. package/dist/abort.js +7 -6
  4. package/dist/agent.js +16 -15
  5. package/dist/ansi.js +3 -2
  6. package/dist/archives.js +18 -17
  7. package/dist/argv/flags.js +29 -28
  8. package/dist/argv/parse.js +4 -3
  9. package/dist/arrays.js +3 -2
  10. package/dist/bin.js +12 -11
  11. package/dist/cacache.js +16 -11
  12. package/dist/cache-with-ttl.js +26 -21
  13. package/dist/colors.js +2 -1
  14. package/dist/constants/licenses.js +2 -1
  15. package/dist/constants/lifecycle-script-names.js +2 -1
  16. package/dist/constants/maintained-node-versions.js +2 -1
  17. package/dist/constants/node.js +4 -3
  18. package/dist/constants/package-default-socket-categories.js +2 -1
  19. package/dist/constants/packages.js +4 -3
  20. package/dist/constants/socket.js +1 -1
  21. package/dist/cover/code.js +9 -8
  22. package/dist/cover/formatters.js +12 -11
  23. package/dist/cover/type.js +5 -4
  24. package/dist/crypto.d.ts +36 -0
  25. package/dist/{effects/ultra.js → crypto.js} +33 -37
  26. package/dist/debug.js +12 -15
  27. package/dist/dlx/arborist.js +10 -9
  28. package/dist/dlx/binary.js +27 -24
  29. package/dist/dlx/cache.js +2 -10
  30. package/dist/dlx/detect.js +6 -5
  31. package/dist/dlx/integrity.js +13 -11
  32. package/dist/dlx/lockfile.js +7 -6
  33. package/dist/dlx/manifest.js +6 -5
  34. package/dist/dlx/package.js +17 -16
  35. package/dist/dlx/packages.js +6 -5
  36. package/dist/dlx/paths.d.ts +1 -1
  37. package/dist/dlx/paths.js +2 -1
  38. package/dist/effects/pulse-frames.js +4 -3
  39. package/dist/effects/shimmer-keyframes.d.ts +62 -0
  40. package/dist/effects/shimmer-keyframes.js +55 -0
  41. package/dist/effects/shimmer-terminal.d.ts +66 -0
  42. package/dist/effects/shimmer-terminal.js +57 -0
  43. package/dist/effects/shimmer.d.ts +293 -0
  44. package/dist/effects/shimmer.js +180 -0
  45. package/dist/env/rewire.js +4 -3
  46. package/dist/env.js +5 -4
  47. package/dist/errors.js +1 -1
  48. package/dist/external/@npmcli/package-json/lib/read-package.js +10 -10
  49. package/dist/external/@npmcli/package-json.js +372 -372
  50. package/dist/external/@npmcli/promise-spawn.js +24 -24
  51. package/dist/external/@socketregistry/packageurl-js.js +19 -18
  52. package/dist/external/@socketregistry/yocto-spinner.js +4 -3
  53. package/dist/external/@yarnpkg/extensions.js +2 -1
  54. package/dist/external/adm-zip.js +70 -70
  55. package/dist/external/debug.js +22 -22
  56. package/dist/external/external-pack.js +45 -45
  57. package/dist/external/fast-sort.js +5 -5
  58. package/dist/external/libnpmexec.js +4 -3
  59. package/dist/external/npm-pack.js +369 -369
  60. package/dist/external/p-map.js +9 -9
  61. package/dist/external/pico-pack.js +190 -190
  62. package/dist/external/pony-cause.js +2 -1
  63. package/dist/external/spdx-pack.js +11 -10
  64. package/dist/external/tar-fs.js +58 -58
  65. package/dist/external/which.js +13 -13
  66. package/dist/external/yargs-parser.js +71 -71
  67. package/dist/fs.js +19 -23
  68. package/dist/git.js +14 -13
  69. package/dist/github.d.ts +34 -0
  70. package/dist/github.js +248 -23
  71. package/dist/globs.d.ts +20 -0
  72. package/dist/globs.js +134 -25
  73. package/dist/http-request.d.ts +4 -3
  74. package/dist/http-request.js +39 -32
  75. package/dist/ipc-cli.js +2 -1
  76. package/dist/ipc.js +5 -4
  77. package/dist/json/edit.js +4 -3
  78. package/dist/json/format.js +3 -2
  79. package/dist/json/parse.js +7 -6
  80. package/dist/links.js +2 -1
  81. package/dist/logger.js +21 -14
  82. package/dist/memoization.js +16 -15
  83. package/dist/objects.js +2 -2
  84. package/dist/packages/edit.js +8 -7
  85. package/dist/packages/exports.js +17 -16
  86. package/dist/packages/isolation.js +20 -13
  87. package/dist/packages/licenses.js +6 -3
  88. package/dist/packages/manifest.js +2 -1
  89. package/dist/packages/normalize.js +8 -4
  90. package/dist/packages/operations.js +5 -4
  91. package/dist/packages/provenance.js +7 -6
  92. package/dist/packages/specs.js +2 -1
  93. package/dist/packages/validation.js +2 -1
  94. package/dist/paths/normalize.js +32 -40
  95. package/dist/paths/packages.js +2 -1
  96. package/dist/paths/rewire.js +3 -2
  97. package/dist/performance.js +19 -18
  98. package/dist/primordials.d.ts +9 -0
  99. package/dist/primordials.js +17 -0
  100. package/dist/process-lock.js +14 -13
  101. package/dist/promise-queue.js +17 -9
  102. package/dist/promises.d.ts +29 -6
  103. package/dist/promises.js +19 -15
  104. package/dist/regexps.js +9 -8
  105. package/dist/releases/github-api.d.ts +56 -0
  106. package/dist/releases/github-api.js +275 -0
  107. package/dist/releases/github-archives.d.ts +60 -0
  108. package/dist/releases/github-archives.js +136 -0
  109. package/dist/releases/github-assets.d.ts +21 -0
  110. package/dist/releases/github-assets.js +52 -0
  111. package/dist/releases/github-auth.d.ts +16 -0
  112. package/dist/releases/github-auth.js +51 -0
  113. package/dist/releases/github-downloads.d.ts +42 -0
  114. package/dist/releases/github-downloads.js +155 -0
  115. package/dist/releases/github-types.d.ts +66 -0
  116. package/dist/{effects/types.js → releases/github-types.js} +2 -2
  117. package/dist/releases/socket-btm.d.ts +1 -1
  118. package/dist/releases/socket-btm.js +17 -17
  119. package/dist/schema/parse.js +2 -1
  120. package/dist/schema/validate.js +6 -5
  121. package/dist/shadow.js +2 -1
  122. package/dist/signal-exit.js +2 -2
  123. package/dist/spawn.js +45 -35
  124. package/dist/spinner.d.ts +13 -6
  125. package/dist/spinner.js +75 -57
  126. package/dist/ssri.js +8 -7
  127. package/dist/stdio/footer.js +13 -12
  128. package/dist/stdio/header.js +5 -4
  129. package/dist/stdio/progress.js +13 -12
  130. package/dist/strings.js +19 -18
  131. package/dist/suppress-warnings.js +2 -2
  132. package/dist/tables.js +16 -13
  133. package/dist/temporary-executor.js +2 -1
  134. package/dist/themes/context.js +2 -1
  135. package/dist/themes/types.d.ts +1 -1
  136. package/dist/themes/utils.d.ts +8 -3
  137. package/dist/themes/utils.js +29 -5
  138. package/dist/url.js +4 -3
  139. package/package.json +44 -20
  140. package/dist/effects/text-shimmer.d.ts +0 -58
  141. package/dist/effects/text-shimmer.js +0 -192
  142. package/dist/effects/types.d.ts +0 -47
  143. package/dist/effects/ultra.d.ts +0 -22
  144. package/dist/releases/github.d.ts +0 -234
  145. package/dist/releases/github.js +0 -417
  146. package/dist/themes/index.d.ts +0 -49
  147. package/dist/themes/index.js +0 -60
@@ -1,4 +1,4 @@
1
- const { ArrayBufferIsView: _p_ArrayBufferIsView, ArrayCtor: _p_ArrayCtor, BufferIsBuffer: _p_BufferIsBuffer, DateNow: _p_DateNow, ErrorCtor: _p_ErrorCtor, JSONParse: _p_JSONParse, JSONStringify: _p_JSONStringify, MathRandom: _p_MathRandom, ObjectCreate: _p_ObjectCreate, ObjectDefineProperty: _p_ObjectDefineProperty, ObjectGetOwnPropertyDescriptor: _p_ObjectGetOwnPropertyDescriptor, PromiseCtor: _p_PromiseCtor, RegExpPrototypeTest: _p_RegExpPrototypeTest, SetCtor: _p_SetCtor, StringPrototypeCharAt: _p_StringPrototypeCharAt, StringPrototypeEndsWith: _p_StringPrototypeEndsWith, StringPrototypeSubstring: _p_StringPrototypeSubstring, SymbolFor: _p_SymbolFor, TypeErrorCtor: _p_TypeErrorCtor } = require('../primordials.js')
1
+ const { ArrayBufferIsView: _p_ArrayBufferIsView, ArrayCtor: _p_ArrayCtor, ArrayIsArray: _p_ArrayIsArray, ArrayPrototypeUnshift: _p_ArrayPrototypeUnshift, BufferConcat: _p_BufferConcat, BufferFrom: _p_BufferFrom, BufferIsBuffer: _p_BufferIsBuffer, DateCtor: _p_DateCtor, DateNow: _p_DateNow, DateParse: _p_DateParse, ErrorCtor: _p_ErrorCtor, JSONParse: _p_JSONParse, JSONStringify: _p_JSONStringify, MapCtor: _p_MapCtor, MathAbs: _p_MathAbs, MathFloor: _p_MathFloor, MathMax: _p_MathMax, MathMin: _p_MathMin, MathPow: _p_MathPow, MathRandom: _p_MathRandom, MathRound: _p_MathRound, NumberIsSafeInteger: _p_NumberIsSafeInteger, NumberParseInt: _p_NumberParseInt, ObjectAssign: _p_ObjectAssign, ObjectCreate: _p_ObjectCreate, ObjectDefineProperty: _p_ObjectDefineProperty, ObjectEntries: _p_ObjectEntries, ObjectFreeze: _p_ObjectFreeze, ObjectGetOwnPropertyDescriptor: _p_ObjectGetOwnPropertyDescriptor, ObjectGetPrototypeOf: _p_ObjectGetPrototypeOf, ObjectKeys: _p_ObjectKeys, PromiseAll: _p_PromiseAll, PromiseCtor: _p_PromiseCtor, PromiseReject: _p_PromiseReject, PromiseResolve: _p_PromiseResolve, ReflectDefineProperty: _p_ReflectDefineProperty, RegExpCtor: _p_RegExpCtor, SetCtor: _p_SetCtor, StringFromCharCode: _p_StringFromCharCode, StringPrototypeCharAt: _p_StringPrototypeCharAt, StringPrototypeCharCodeAt: _p_StringPrototypeCharCodeAt, StringPrototypeEndsWith: _p_StringPrototypeEndsWith, StringPrototypeLocaleCompare: _p_StringPrototypeLocaleCompare, StringPrototypeStartsWith: _p_StringPrototypeStartsWith, StringPrototypeSubstring: _p_StringPrototypeSubstring, TypeErrorCtor: _p_TypeErrorCtor, URLCtor: _p_URLCtor } = require('../primordials.js')
2
2
  "use strict";
3
3
  /**
4
4
  * Bundled from npm-pack
@@ -44,8 +44,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
44
44
  var require_lib = __commonJS({
45
45
  "node_modules/.pnpm/json-parse-even-better-errors@5.0.0/node_modules/json-parse-even-better-errors/lib/index.js"(exports2, module2) {
46
46
  "use strict";
47
- var INDENT = _p_SymbolFor("indent");
48
- var NEWLINE = _p_SymbolFor("newline");
47
+ var INDENT = Symbol.for("indent");
48
+ var NEWLINE = Symbol.for("newline");
49
49
  var DEFAULT_NEWLINE = "\n";
50
50
  var DEFAULT_INDENT = " ";
51
51
  var BOM = /^\uFEFF/;
@@ -53,7 +53,7 @@ var require_lib = __commonJS({
53
53
  var EMPTY = /^(?:\{\}|\[\])((?:\r?\n)+)?$/;
54
54
  var UNEXPECTED_TOKEN = /^Unexpected token '?(.)'?(,)? /i;
55
55
  var hexify = /* @__PURE__ */ __name((char) => {
56
- const h = char.charCodeAt(0).toString(16).toUpperCase();
56
+ const h = _p_StringPrototypeCharCodeAt(char, 0).toString(16).toUpperCase();
57
57
  return `0x${h.length % 2 ? "0" : ""}${h}`;
58
58
  }, "hexify");
59
59
  var stripBOM = /* @__PURE__ */ __name((txt) => String(txt).replace(BOM, ""), "stripBOM");
@@ -99,7 +99,7 @@ var require_lib = __commonJS({
99
99
  constructor(er, txt, context, caller) {
100
100
  const metadata = parseError(er, txt, context);
101
101
  super(metadata.message);
102
- Object.assign(this, metadata);
102
+ _p_ObjectAssign(this, metadata);
103
103
  this.code = "EJSONPARSE";
104
104
  this.systemError = er;
105
105
  Error.captureStackTrace(this, caller || this.constructor);
@@ -114,7 +114,7 @@ var require_lib = __commonJS({
114
114
  }
115
115
  };
116
116
  var parseJson = /* @__PURE__ */ __name((txt, reviver) => {
117
- const result = JSON.parse(txt, reviver);
117
+ const result = _p_JSONParse(txt, reviver);
118
118
  if (result && typeof result === "object") {
119
119
  const match = txt.match(EMPTY) || txt.match(FORMAT) || [null, "", ""];
120
120
  result[NEWLINE] = match[1] ?? DEFAULT_NEWLINE;
@@ -127,10 +127,10 @@ var require_lib = __commonJS({
127
127
  try {
128
128
  return parseJson(txt, reviver);
129
129
  } catch (e) {
130
- if (typeof raw !== "string" && !Buffer.isBuffer(raw)) {
131
- const msg = Array.isArray(raw) && raw.length === 0 ? "an empty array" : String(raw);
132
- throw Object.assign(
133
- new TypeError(`Cannot parse ${msg}`),
130
+ if (typeof raw !== "string" && !_p_BufferIsBuffer(raw)) {
131
+ const msg = _p_ArrayIsArray(raw) && raw.length === 0 ? "an empty array" : String(raw);
132
+ throw _p_ObjectAssign(
133
+ new _p_TypeErrorCtor(`Cannot parse ${msg}`),
134
134
  { code: "EJSONPARSE", systemError: e }
135
135
  );
136
136
  }
@@ -160,7 +160,7 @@ var require_update_dependencies = __commonJS({
160
160
  var orderDeps = /* @__PURE__ */ __name((content) => {
161
161
  for (const type of depTypes) {
162
162
  if (content && content[type]) {
163
- content[type] = Object.keys(content[type]).sort((a, b) => a.localeCompare(b, "en")).reduce((res, key) => {
163
+ content[type] = _p_ObjectKeys(content[type]).sort((a, b) => _p_StringPrototypeLocaleCompare(a, b, "en")).reduce((res, key) => {
164
164
  res[key] = content[type][key];
165
165
  return res;
166
166
  }, {});
@@ -174,7 +174,7 @@ var require_update_dependencies = __commonJS({
174
174
  });
175
175
  if (pkg.dependencies) {
176
176
  if (pkg.optionalDependencies) {
177
- for (const name of Object.keys(pkg.optionalDependencies)) {
177
+ for (const name of _p_ObjectKeys(pkg.optionalDependencies)) {
178
178
  delete pkg.dependencies[name];
179
179
  }
180
180
  }
@@ -184,7 +184,7 @@ var require_update_dependencies = __commonJS({
184
184
  if (pkg[type]) {
185
185
  result[type] = pkg[type];
186
186
  }
187
- const emptyDepType = pkg[type] && typeof pkg === "object" && Object.keys(pkg[type]).length === 0;
187
+ const emptyDepType = pkg[type] && typeof pkg === "object" && _p_ObjectKeys(pkg[type]).length === 0;
188
188
  if (emptyDepType) {
189
189
  delete result[type];
190
190
  }
@@ -192,7 +192,7 @@ var require_update_dependencies = __commonJS({
192
192
  const { dependencies: origProd, peerDependencies: origPeer } = originalContent || {};
193
193
  const { peerDependencies: newPeer } = result;
194
194
  if (origProd && origPeer && newPeer) {
195
- for (const name of Object.keys(origPeer)) {
195
+ for (const name of _p_ObjectKeys(origPeer)) {
196
196
  if (origProd[name] !== void 0 && newPeer[name] !== void 0) {
197
197
  result.dependencies = result.dependencies || {};
198
198
  result.dependencies[name] = newPeer[name];
@@ -214,10 +214,10 @@ var require_update_scripts = __commonJS({
214
214
  if (!newScripts) {
215
215
  return originalContent;
216
216
  }
217
- const hasInvalidScripts = /* @__PURE__ */ __name(() => Object.entries(newScripts).some(([key, value]) => typeof key !== "string" || typeof value !== "string"), "hasInvalidScripts");
217
+ const hasInvalidScripts = /* @__PURE__ */ __name(() => _p_ObjectEntries(newScripts).some(([key, value]) => typeof key !== "string" || typeof value !== "string"), "hasInvalidScripts");
218
218
  if (hasInvalidScripts()) {
219
- throw Object.assign(
220
- new TypeError(
219
+ throw _p_ObjectAssign(
220
+ new _p_TypeErrorCtor(
221
221
  "package.json scripts should be a key-value pair of strings."
222
222
  ),
223
223
  { code: "ESCRIPTSINVALID" }
@@ -244,8 +244,8 @@ var require_update_workspaces = __commonJS({
244
244
  }
245
245
  const hasInvalidWorkspaces = /* @__PURE__ */ __name(() => newWorkspaces.some((w) => !(typeof w === "string")), "hasInvalidWorkspaces");
246
246
  if (!newWorkspaces.length || hasInvalidWorkspaces()) {
247
- throw Object.assign(
248
- new TypeError("workspaces should be an array of strings."),
247
+ throw _p_ObjectAssign(
248
+ new _p_TypeErrorCtor("workspaces should be an array of strings."),
249
249
  { code: "EWORKSPACESINVALID" }
250
250
  );
251
251
  }
@@ -338,8 +338,8 @@ var require_re = __commonJS({
338
338
  t[name] = index;
339
339
  src[index] = value;
340
340
  safeSrc[index] = safe;
341
- re[index] = new RegExp(value, isGlobal ? "g" : void 0);
342
- safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
341
+ re[index] = new _p_RegExpCtor(value, isGlobal ? "g" : void 0);
342
+ safeRe[index] = new _p_RegExpCtor(safe, isGlobal ? "g" : void 0);
343
343
  }, "createToken");
344
344
  createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
345
345
  createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
@@ -394,8 +394,8 @@ var require_re = __commonJS({
394
394
  var require_parse_options = __commonJS({
395
395
  "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js"(exports2, module2) {
396
396
  "use strict";
397
- var looseOption = Object.freeze({ loose: true });
398
- var emptyOpts = Object.freeze({});
397
+ var looseOption = _p_ObjectFreeze({ loose: true });
398
+ var emptyOpts = _p_ObjectFreeze({});
399
399
  var parseOptions = /* @__PURE__ */ __name((options) => {
400
400
  if (!options) {
401
401
  return emptyOpts;
@@ -453,10 +453,10 @@ var require_semver = __commonJS({
453
453
  version = version.version;
454
454
  }
455
455
  } else if (typeof version !== "string") {
456
- throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
456
+ throw new _p_TypeErrorCtor(`Invalid version. Must be a string. Got type "${typeof version}".`);
457
457
  }
458
458
  if (version.length > MAX_LENGTH) {
459
- throw new TypeError(
459
+ throw new _p_TypeErrorCtor(
460
460
  `version is longer than ${MAX_LENGTH} characters`
461
461
  );
462
462
  }
@@ -466,20 +466,20 @@ var require_semver = __commonJS({
466
466
  this.includePrerelease = !!options.includePrerelease;
467
467
  const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
468
468
  if (!m) {
469
- throw new TypeError(`Invalid Version: ${version}`);
469
+ throw new _p_TypeErrorCtor(`Invalid Version: ${version}`);
470
470
  }
471
471
  this.raw = version;
472
472
  this.major = +m[1];
473
473
  this.minor = +m[2];
474
474
  this.patch = +m[3];
475
475
  if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
476
- throw new TypeError("Invalid major version");
476
+ throw new _p_TypeErrorCtor("Invalid major version");
477
477
  }
478
478
  if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
479
- throw new TypeError("Invalid minor version");
479
+ throw new _p_TypeErrorCtor("Invalid minor version");
480
480
  }
481
481
  if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
482
- throw new TypeError("Invalid patch version");
482
+ throw new _p_TypeErrorCtor("Invalid patch version");
483
483
  }
484
484
  if (!m[4]) {
485
485
  this.prerelease = [];
@@ -580,14 +580,14 @@ var require_semver = __commonJS({
580
580
  // preminor will bump the version up to the next minor release, and immediately
581
581
  // down to pre-release. premajor and prepatch work the same way.
582
582
  inc(release, identifier, identifierBase) {
583
- if (release.startsWith("pre")) {
583
+ if (_p_StringPrototypeStartsWith(release, "pre")) {
584
584
  if (!identifier && identifierBase === false) {
585
- throw new Error("invalid increment argument: identifier is empty");
585
+ throw new _p_ErrorCtor("invalid increment argument: identifier is empty");
586
586
  }
587
587
  if (identifier) {
588
588
  const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
589
589
  if (!match || match[1] !== identifier) {
590
- throw new Error(`invalid identifier: ${identifier}`);
590
+ throw new _p_ErrorCtor(`invalid identifier: ${identifier}`);
591
591
  }
592
592
  }
593
593
  }
@@ -896,7 +896,7 @@ var require_lib2 = __commonJS({
896
896
  }, "end"),
897
897
  read: /* @__PURE__ */ __name(function(...args) {
898
898
  let resolve, reject;
899
- const promise = new Promise((_resolve, _reject) => {
899
+ const promise = new _p_PromiseCtor((_resolve, _reject) => {
900
900
  resolve = _resolve;
901
901
  reject = _reject;
902
902
  });
@@ -915,7 +915,7 @@ var require_commonjs = __commonJS({
915
915
  _p_ObjectDefineProperty(exports2, "__esModule", { value: true });
916
916
  exports2.LRUCache = void 0;
917
917
  var defaultPerf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
918
- var warned = /* @__PURE__ */ new Set();
918
+ var warned = /* @__PURE__ */ new _p_SetCtor();
919
919
  var PROCESS = typeof process === "object" && !!process ? process : {};
920
920
  var emitWarning = /* @__PURE__ */ __name((msg, type, code, fn) => {
921
921
  typeof PROCESS.emitWarning === "function" ? PROCESS.emitWarning(msg, type, code, fn) : console.error(`[${code}] ${type}: ${msg}`);
@@ -964,8 +964,8 @@ var require_commonjs = __commonJS({
964
964
  }
965
965
  var shouldWarn = /* @__PURE__ */ __name((code) => !warned.has(code), "shouldWarn");
966
966
  var TYPE = Symbol("type");
967
- var isPosInt = /* @__PURE__ */ __name((n) => n && n === Math.floor(n) && n > 0 && isFinite(n), "isPosInt");
968
- var getUintArray = /* @__PURE__ */ __name((max) => !isPosInt(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null, "getUintArray");
967
+ var isPosInt = /* @__PURE__ */ __name((n) => n && n === _p_MathFloor(n) && n > 0 && isFinite(n), "isPosInt");
968
+ var getUintArray = /* @__PURE__ */ __name((max) => !isPosInt(max) ? null : max <= _p_MathPow(2, 8) ? Uint8Array : max <= _p_MathPow(2, 16) ? Uint16Array : max <= _p_MathPow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null, "getUintArray");
969
969
  var ZeroArray = class extends Array {
970
970
  static {
971
971
  __name(this, "ZeroArray");
@@ -994,7 +994,7 @@ var require_commonjs = __commonJS({
994
994
  }
995
995
  constructor(max, HeapCls) {
996
996
  if (!_Stack.#constructing) {
997
- throw new TypeError("instantiate Stack using Stack.create(n)");
997
+ throw new _p_TypeErrorCtor("instantiate Stack using Stack.create(n)");
998
998
  }
999
999
  this.heap = new HeapCls(max);
1000
1000
  this.length = 0;
@@ -1196,16 +1196,16 @@ var require_commonjs = __commonJS({
1196
1196
  const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, onInsert, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort, perf } = options;
1197
1197
  if (perf !== void 0) {
1198
1198
  if (typeof perf?.now !== "function") {
1199
- throw new TypeError("perf option must have a now() method if specified");
1199
+ throw new _p_TypeErrorCtor("perf option must have a now() method if specified");
1200
1200
  }
1201
1201
  }
1202
1202
  this.#perf = perf ?? defaultPerf;
1203
1203
  if (max !== 0 && !isPosInt(max)) {
1204
- throw new TypeError("max option must be a nonnegative integer");
1204
+ throw new _p_TypeErrorCtor("max option must be a nonnegative integer");
1205
1205
  }
1206
1206
  const UintArray = max ? getUintArray(max) : Array;
1207
1207
  if (!UintArray) {
1208
- throw new Error("invalid max value: " + max);
1208
+ throw new _p_ErrorCtor("invalid max value: " + max);
1209
1209
  }
1210
1210
  this.#max = max;
1211
1211
  this.#maxSize = maxSize;
@@ -1213,24 +1213,24 @@ var require_commonjs = __commonJS({
1213
1213
  this.sizeCalculation = sizeCalculation;
1214
1214
  if (this.sizeCalculation) {
1215
1215
  if (!this.#maxSize && !this.maxEntrySize) {
1216
- throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
1216
+ throw new _p_TypeErrorCtor("cannot set sizeCalculation without setting maxSize or maxEntrySize");
1217
1217
  }
1218
1218
  if (typeof this.sizeCalculation !== "function") {
1219
- throw new TypeError("sizeCalculation set to non-function");
1219
+ throw new _p_TypeErrorCtor("sizeCalculation set to non-function");
1220
1220
  }
1221
1221
  }
1222
1222
  if (memoMethod !== void 0 && typeof memoMethod !== "function") {
1223
- throw new TypeError("memoMethod must be a function if defined");
1223
+ throw new _p_TypeErrorCtor("memoMethod must be a function if defined");
1224
1224
  }
1225
1225
  this.#memoMethod = memoMethod;
1226
1226
  if (fetchMethod !== void 0 && typeof fetchMethod !== "function") {
1227
- throw new TypeError("fetchMethod must be a function if specified");
1227
+ throw new _p_TypeErrorCtor("fetchMethod must be a function if specified");
1228
1228
  }
1229
1229
  this.#fetchMethod = fetchMethod;
1230
1230
  this.#hasFetchMethod = !!fetchMethod;
1231
- this.#keyMap = /* @__PURE__ */ new Map();
1232
- this.#keyList = new Array(max).fill(void 0);
1233
- this.#valList = new Array(max).fill(void 0);
1231
+ this.#keyMap = /* @__PURE__ */ new _p_MapCtor();
1232
+ this.#keyList = new _p_ArrayCtor(max).fill(void 0);
1233
+ this.#valList = new _p_ArrayCtor(max).fill(void 0);
1234
1234
  this.#next = new UintArray(max);
1235
1235
  this.#prev = new UintArray(max);
1236
1236
  this.#head = 0;
@@ -1263,11 +1263,11 @@ var require_commonjs = __commonJS({
1263
1263
  if (this.maxEntrySize !== 0) {
1264
1264
  if (this.#maxSize !== 0) {
1265
1265
  if (!isPosInt(this.#maxSize)) {
1266
- throw new TypeError("maxSize must be a positive integer if specified");
1266
+ throw new _p_TypeErrorCtor("maxSize must be a positive integer if specified");
1267
1267
  }
1268
1268
  }
1269
1269
  if (!isPosInt(this.maxEntrySize)) {
1270
- throw new TypeError("maxEntrySize must be a positive integer if specified");
1270
+ throw new _p_TypeErrorCtor("maxEntrySize must be a positive integer if specified");
1271
1271
  }
1272
1272
  this.#initializeSizeTracking();
1273
1273
  }
@@ -1280,12 +1280,12 @@ var require_commonjs = __commonJS({
1280
1280
  this.ttl = ttl || 0;
1281
1281
  if (this.ttl) {
1282
1282
  if (!isPosInt(this.ttl)) {
1283
- throw new TypeError("ttl must be a positive integer if specified");
1283
+ throw new _p_TypeErrorCtor("ttl must be a positive integer if specified");
1284
1284
  }
1285
1285
  this.#initializeTTLTracking();
1286
1286
  }
1287
1287
  if (this.#max === 0 && this.ttl === 0 && this.#maxSize === 0) {
1288
- throw new TypeError("At least one of max, maxSize, or ttl is required");
1288
+ throw new _p_TypeErrorCtor("At least one of max, maxSize, or ttl is required");
1289
1289
  }
1290
1290
  if (!this.ttlAutopurge && !this.#max && !this.#maxSize) {
1291
1291
  const code = "LRU_CACHE_UNBOUNDED";
@@ -1393,14 +1393,14 @@ var require_commonjs = __commonJS({
1393
1393
  if (!isPosInt(size)) {
1394
1394
  if (sizeCalculation) {
1395
1395
  if (typeof sizeCalculation !== "function") {
1396
- throw new TypeError("sizeCalculation must be a function");
1396
+ throw new _p_TypeErrorCtor("sizeCalculation must be a function");
1397
1397
  }
1398
1398
  size = sizeCalculation(v, k);
1399
1399
  if (!isPosInt(size)) {
1400
- throw new TypeError("sizeCalculation return invalid (expect positive integer)");
1400
+ throw new _p_TypeErrorCtor("sizeCalculation return invalid (expect positive integer)");
1401
1401
  }
1402
1402
  } else {
1403
- throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
1403
+ throw new _p_TypeErrorCtor("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
1404
1404
  }
1405
1405
  }
1406
1406
  return size;
@@ -1426,7 +1426,7 @@ var require_commonjs = __commonJS({
1426
1426
  }, "#addItemSize");
1427
1427
  #requireSize = /* @__PURE__ */ __name((_k, _v, size, sizeCalculation) => {
1428
1428
  if (size || sizeCalculation) {
1429
- throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
1429
+ throw new _p_TypeErrorCtor("cannot set size without setting maxSize or maxEntrySize on cache");
1430
1430
  }
1431
1431
  return 0;
1432
1432
  }, "#requireSize");
@@ -1645,7 +1645,7 @@ var require_commonjs = __commonJS({
1645
1645
  if (ttl && start) {
1646
1646
  const remain = ttl - (this.#perf.now() - start);
1647
1647
  entry.ttl = remain;
1648
- entry.start = Date.now();
1648
+ entry.start = _p_DateNow();
1649
1649
  }
1650
1650
  }
1651
1651
  if (this.#sizes) {
@@ -1678,7 +1678,7 @@ var require_commonjs = __commonJS({
1678
1678
  if (this.#ttls && this.#starts) {
1679
1679
  entry.ttl = this.#ttls[i];
1680
1680
  const age = this.#perf.now() - this.#starts[i];
1681
- entry.start = Math.floor(Date.now() - age);
1681
+ entry.start = _p_MathFloor(_p_DateNow() - age);
1682
1682
  }
1683
1683
  if (this.#sizes) {
1684
1684
  entry.size = this.#sizes[i];
@@ -1774,7 +1774,7 @@ var require_commonjs = __commonJS({
1774
1774
  const oldVal = this.#valList[index];
1775
1775
  if (v !== oldVal) {
1776
1776
  if (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) {
1777
- oldVal.__abortController.abort(new Error("replaced"));
1777
+ oldVal.__abortController.abort(new _p_ErrorCtor("replaced"));
1778
1778
  const { __staleWhileFetching: s } = oldVal;
1779
1779
  if (s !== void 0 && !noDisposeOnSet) {
1780
1780
  if (this.#hasDispose) {
@@ -1859,7 +1859,7 @@ var require_commonjs = __commonJS({
1859
1859
  const k = this.#keyList[head];
1860
1860
  const v = this.#valList[head];
1861
1861
  if (this.#hasFetchMethod && this.#isBackgroundFetch(v)) {
1862
- v.__abortController.abort(new Error("evicted"));
1862
+ v.__abortController.abort(new _p_ErrorCtor("evicted"));
1863
1863
  } else if (this.#hasDispose || this.#hasDisposeAfter) {
1864
1864
  if (this.#hasDispose) {
1865
1865
  this.#dispose?.(v, k, "evict");
@@ -2036,8 +2036,8 @@ var require_commonjs = __commonJS({
2036
2036
  }, "pcall");
2037
2037
  if (options.status)
2038
2038
  options.status.fetchDispatched = true;
2039
- const p = new Promise(pcall).then(cb, eb);
2040
- const bf = Object.assign(p, {
2039
+ const p = new _p_PromiseCtor(pcall).then(cb, eb);
2040
+ const bf = _p_ObjectAssign(p, {
2041
2041
  __abortController: ac,
2042
2042
  __staleWhileFetching: v,
2043
2043
  __returned: void 0
@@ -2147,13 +2147,13 @@ var require_commonjs = __commonJS({
2147
2147
  async forceFetch(k, fetchOptions = {}) {
2148
2148
  const v = await this.fetch(k, fetchOptions);
2149
2149
  if (v === void 0)
2150
- throw new Error("fetch() returned undefined");
2150
+ throw new _p_ErrorCtor("fetch() returned undefined");
2151
2151
  return v;
2152
2152
  }
2153
2153
  memo(k, memoOptions = {}) {
2154
2154
  const memoMethod = this.#memoMethod;
2155
2155
  if (!memoMethod) {
2156
- throw new Error("no memoMethod provided to constructor");
2156
+ throw new _p_ErrorCtor("no memoMethod provided to constructor");
2157
2157
  }
2158
2158
  const { context, forceRefresh, ...options } = memoOptions;
2159
2159
  const v = this.get(k, options);
@@ -2293,7 +2293,7 @@ var require_commonjs = __commonJS({
2293
2293
  for (const index of this.#rindexes({ allowStale: true })) {
2294
2294
  const v = this.#valList[index];
2295
2295
  if (this.#isBackgroundFetch(v)) {
2296
- v.__abortController.abort(new Error("deleted"));
2296
+ v.__abortController.abort(new _p_ErrorCtor("deleted"));
2297
2297
  } else {
2298
2298
  const k = this.#keyList[index];
2299
2299
  if (this.#hasDispose) {
@@ -2374,7 +2374,7 @@ var require_hosts = __commonJS({
2374
2374
  if (!type) {
2375
2375
  committish = url.hash.slice(1);
2376
2376
  }
2377
- if (project && project.endsWith(".git")) {
2377
+ if (project && _p_StringPrototypeEndsWith(project, ".git")) {
2378
2378
  project = project.slice(0, -4);
2379
2379
  }
2380
2380
  if (!user || !project) {
@@ -2396,7 +2396,7 @@ var require_hosts = __commonJS({
2396
2396
  if (["get"].includes(aux)) {
2397
2397
  return;
2398
2398
  }
2399
- if (project && project.endsWith(".git")) {
2399
+ if (project && _p_StringPrototypeEndsWith(project, ".git")) {
2400
2400
  project = project.slice(0, -4);
2401
2401
  }
2402
2402
  if (!user || !project) {
@@ -2460,7 +2460,7 @@ var require_hosts = __commonJS({
2460
2460
  project = user;
2461
2461
  user = null;
2462
2462
  }
2463
- if (project.endsWith(".git")) {
2463
+ if (_p_StringPrototypeEndsWith(project, ".git")) {
2464
2464
  project = project.slice(0, -4);
2465
2465
  }
2466
2466
  return { user, project, committish: url.hash.slice(1) };
@@ -2483,7 +2483,7 @@ var require_hosts = __commonJS({
2483
2483
  if (["archive"].includes(aux)) {
2484
2484
  return;
2485
2485
  }
2486
- if (project && project.endsWith(".git")) {
2486
+ if (project && _p_StringPrototypeEndsWith(project, ".git")) {
2487
2487
  project = project.slice(0, -4);
2488
2488
  }
2489
2489
  if (!user || !project) {
@@ -2492,8 +2492,8 @@ var require_hosts = __commonJS({
2492
2492
  return { user, project, committish: url.hash.slice(1) };
2493
2493
  }, "extract")
2494
2494
  };
2495
- for (const [name, host] of Object.entries(hosts)) {
2496
- hosts[name] = Object.assign({}, defaults, host);
2495
+ for (const [name, host] of _p_ObjectEntries(hosts)) {
2496
+ hosts[name] = _p_ObjectAssign({}, defaults, host);
2497
2497
  }
2498
2498
  module2.exports = hosts;
2499
2499
  }
@@ -2568,8 +2568,8 @@ var require_from_url = __commonJS({
2568
2568
  const colonOnlyAfterHash = firstColon === -1 || firstHash > -1 && firstColon > firstHash;
2569
2569
  const secondSlashOnlyAfterHash = secondSlash === -1 || firstHash > -1 && secondSlash > firstHash;
2570
2570
  const hasSlash = firstSlash > 0;
2571
- const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== "/" : !arg.endsWith("/");
2572
- const doesNotStartWithDot = !arg.startsWith(".");
2571
+ const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== "/" : !_p_StringPrototypeEndsWith(arg, "/");
2572
+ const doesNotStartWithDot = !_p_StringPrototypeStartsWith(arg, ".");
2573
2573
  return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash;
2574
2574
  }, "isGitHubShorthand");
2575
2575
  module2.exports = (giturl, opts, { gitHosts, protocols }) => {
@@ -2613,7 +2613,7 @@ var require_from_url = __commonJS({
2613
2613
  } else {
2614
2614
  project = decodeURIComponent(pathname);
2615
2615
  }
2616
- if (project.endsWith(".git")) {
2616
+ if (_p_StringPrototypeEndsWith(project, ".git")) {
2617
2617
  project = project.slice(0, -4);
2618
2618
  }
2619
2619
  if (parsed.hash) {
@@ -2660,7 +2660,7 @@ var require_lib3 = __commonJS({
2660
2660
  protocol,
2661
2661
  hostname,
2662
2662
  pathname
2663
- } = new URL(url);
2663
+ } = new _p_URLCtor(url);
2664
2664
  if (!hostname) {
2665
2665
  return null;
2666
2666
  }
@@ -2677,7 +2677,7 @@ var require_lib3 = __commonJS({
2677
2677
  __name(this, "GitHost");
2678
2678
  }
2679
2679
  constructor(type, user, auth, project, committish, defaultRepresentation, opts = {}) {
2680
- Object.assign(this, _GitHost.#gitHosts[type], {
2680
+ _p_ObjectAssign(this, _GitHost.#gitHosts[type], {
2681
2681
  type,
2682
2682
  user,
2683
2683
  auth,
@@ -2707,7 +2707,7 @@ var require_lib3 = __commonJS({
2707
2707
  if (typeof giturl !== "string") {
2708
2708
  return;
2709
2709
  }
2710
- const key = giturl + JSON.stringify(opts || {});
2710
+ const key = giturl + _p_JSONStringify(opts || {});
2711
2711
  if (!cache.has(key)) {
2712
2712
  const hostArgs = fromUrl(giturl, opts, {
2713
2713
  gitHosts: _GitHost.#gitHosts,
@@ -2724,7 +2724,7 @@ var require_lib3 = __commonJS({
2724
2724
  const r = manifest.repository;
2725
2725
  const rurl = r && (typeof r === "string" ? r : typeof r === "object" && typeof r.url === "string" ? r.url : null);
2726
2726
  if (!rurl) {
2727
- throw new Error("no repository");
2727
+ throw new _p_ErrorCtor("no repository");
2728
2728
  }
2729
2729
  const info = rurl && _GitHost.fromUrl(rurl.replace(/^git\+/, ""), opts) || null;
2730
2730
  if (info) {
@@ -2751,7 +2751,7 @@ var require_lib3 = __commonJS({
2751
2751
  options.committish = null;
2752
2752
  }
2753
2753
  const result = template(options);
2754
- return options.noGitPlus && result.startsWith("git+") ? result.slice(4) : result;
2754
+ return options.noGitPlus && _p_StringPrototypeStartsWith(result, "git+") ? result.slice(4) : result;
2755
2755
  }
2756
2756
  hash() {
2757
2757
  return this.committish ? `#${this.committish}` : "";
@@ -2819,7 +2819,7 @@ var require_lib3 = __commonJS({
2819
2819
  return this.sshurl(opts);
2820
2820
  }
2821
2821
  };
2822
- for (const [name, host] of Object.entries(hosts)) {
2822
+ for (const [name, host] of _p_ObjectEntries(hosts)) {
2823
2823
  GitHost.addHost(name, host);
2824
2824
  }
2825
2825
  module2.exports = GitHost;
@@ -2830,7 +2830,7 @@ var require_lib3 = __commonJS({
2830
2830
  var require_commonjs2 = __commonJS({
2831
2831
  "node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/commonjs/index.js"(exports2) {
2832
2832
  "use strict";
2833
- Object.defineProperty(exports2, "__esModule", { value: true });
2833
+ _p_ObjectDefineProperty(exports2, "__esModule", { value: true });
2834
2834
  exports2.range = exports2.balanced = void 0;
2835
2835
  var balanced = /* @__PURE__ */ __name((a, b, str) => {
2836
2836
  const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
@@ -2897,15 +2897,15 @@ var require_commonjs3 = __commonJS({
2897
2897
  exports2.expand = expand;
2898
2898
  var balanced_match_1 = require_commonjs2();
2899
2899
  var escSlash = "\0SLASH" + _p_MathRandom() + "\0";
2900
- var escOpen = "\0OPEN" + Math.random() + "\0";
2901
- var escClose = "\0CLOSE" + Math.random() + "\0";
2902
- var escComma = "\0COMMA" + Math.random() + "\0";
2903
- var escPeriod = "\0PERIOD" + Math.random() + "\0";
2904
- var escSlashPattern = new RegExp(escSlash, "g");
2905
- var escOpenPattern = new RegExp(escOpen, "g");
2906
- var escClosePattern = new RegExp(escClose, "g");
2907
- var escCommaPattern = new RegExp(escComma, "g");
2908
- var escPeriodPattern = new RegExp(escPeriod, "g");
2900
+ var escOpen = "\0OPEN" + _p_MathRandom() + "\0";
2901
+ var escClose = "\0CLOSE" + _p_MathRandom() + "\0";
2902
+ var escComma = "\0COMMA" + _p_MathRandom() + "\0";
2903
+ var escPeriod = "\0PERIOD" + _p_MathRandom() + "\0";
2904
+ var escSlashPattern = new _p_RegExpCtor(escSlash, "g");
2905
+ var escOpenPattern = new _p_RegExpCtor(escOpen, "g");
2906
+ var escClosePattern = new _p_RegExpCtor(escClose, "g");
2907
+ var escCommaPattern = new _p_RegExpCtor(escComma, "g");
2908
+ var escPeriodPattern = new _p_RegExpCtor(escPeriod, "g");
2909
2909
  var slashPattern = /\\\\/g;
2910
2910
  var openPattern = /\\{/g;
2911
2911
  var closePattern = /\\}/g;
@@ -2913,7 +2913,7 @@ var require_commonjs3 = __commonJS({
2913
2913
  var periodPattern = /\\\./g;
2914
2914
  exports2.EXPANSION_MAX = 1e5;
2915
2915
  function numeric(str) {
2916
- return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
2916
+ return !isNaN(str) ? parseInt(str, 10) : _p_StringPrototypeCharCodeAt(str, 0);
2917
2917
  }
2918
2918
  __name(numeric, "numeric");
2919
2919
  function escapeBraces(str) {
@@ -3013,8 +3013,8 @@ var require_commonjs3 = __commonJS({
3013
3013
  if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
3014
3014
  const x = numeric(n[0]);
3015
3015
  const y = numeric(n[1]);
3016
- const width = Math.max(n[0].length, n[1].length);
3017
- let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
3016
+ const width = _p_MathMax(n[0].length, n[1].length);
3017
+ let incr = n.length === 3 && n[2] !== void 0 ? _p_MathMax(_p_MathAbs(numeric(n[2])), 1) : 1;
3018
3018
  let test = lte;
3019
3019
  const reverse = y < x;
3020
3020
  if (reverse) {
@@ -3026,7 +3026,7 @@ var require_commonjs3 = __commonJS({
3026
3026
  for (let i = x; test(i, y); i += incr) {
3027
3027
  let c;
3028
3028
  if (isAlphaSequence) {
3029
- c = String.fromCharCode(i);
3029
+ c = _p_StringFromCharCode(i);
3030
3030
  if (c === "\\") {
3031
3031
  c = "";
3032
3032
  }
@@ -3035,7 +3035,7 @@ var require_commonjs3 = __commonJS({
3035
3035
  if (pad) {
3036
3036
  const need = width - c.length;
3037
3037
  if (need > 0) {
3038
- const z = new Array(need + 1).join("0");
3038
+ const z = new _p_ArrayCtor(need + 1).join("0");
3039
3039
  if (i < 0) {
3040
3040
  c = "-" + z + c.slice(1);
3041
3041
  } else {
@@ -3071,15 +3071,15 @@ var require_commonjs3 = __commonJS({
3071
3071
  var require_assert_valid_pattern = __commonJS({
3072
3072
  "node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"(exports2) {
3073
3073
  "use strict";
3074
- Object.defineProperty(exports2, "__esModule", { value: true });
3074
+ _p_ObjectDefineProperty(exports2, "__esModule", { value: true });
3075
3075
  exports2.assertValidPattern = void 0;
3076
3076
  var MAX_PATTERN_LENGTH = 1024 * 64;
3077
3077
  var assertValidPattern = /* @__PURE__ */ __name((pattern) => {
3078
3078
  if (typeof pattern !== "string") {
3079
- throw new TypeError("invalid pattern");
3079
+ throw new _p_TypeErrorCtor("invalid pattern");
3080
3080
  }
3081
3081
  if (pattern.length > MAX_PATTERN_LENGTH) {
3082
- throw new TypeError("pattern is too long");
3082
+ throw new _p_TypeErrorCtor("pattern is too long");
3083
3083
  }
3084
3084
  }, "assertValidPattern");
3085
3085
  exports2.assertValidPattern = assertValidPattern;
@@ -3090,7 +3090,7 @@ var require_assert_valid_pattern = __commonJS({
3090
3090
  var require_brace_expressions = __commonJS({
3091
3091
  "node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/brace-expressions.js"(exports2) {
3092
3092
  "use strict";
3093
- Object.defineProperty(exports2, "__esModule", { value: true });
3093
+ _p_ObjectDefineProperty(exports2, "__esModule", { value: true });
3094
3094
  exports2.parseClass = void 0;
3095
3095
  var posixClasses = {
3096
3096
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
@@ -3113,8 +3113,8 @@ var require_brace_expressions = __commonJS({
3113
3113
  var rangesToString = /* @__PURE__ */ __name((ranges) => ranges.join(""), "rangesToString");
3114
3114
  var parseClass = /* @__PURE__ */ __name((glob, position) => {
3115
3115
  const pos = position;
3116
- if (glob.charAt(pos) !== "[") {
3117
- throw new Error("not in a brace expression");
3116
+ if (_p_StringPrototypeCharAt(glob, pos) !== "[") {
3117
+ throw new _p_ErrorCtor("not in a brace expression");
3118
3118
  }
3119
3119
  const ranges = [];
3120
3120
  const negs = [];
@@ -3126,7 +3126,7 @@ var require_brace_expressions = __commonJS({
3126
3126
  let endPos = pos;
3127
3127
  let rangeStart = "";
3128
3128
  WHILE: while (i < glob.length) {
3129
- const c = glob.charAt(i);
3129
+ const c = _p_StringPrototypeCharAt(glob, i);
3130
3130
  if ((c === "!" || c === "^") && i === pos + 1) {
3131
3131
  negate = true;
3132
3132
  i++;
@@ -3145,8 +3145,8 @@ var require_brace_expressions = __commonJS({
3145
3145
  }
3146
3146
  }
3147
3147
  if (c === "[" && !escaping) {
3148
- for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
3149
- if (glob.startsWith(cls, i)) {
3148
+ for (const [cls, [unip, u, neg]] of _p_ObjectEntries(posixClasses)) {
3149
+ if (_p_StringPrototypeStartsWith(glob, cls, i)) {
3150
3150
  if (rangeStart) {
3151
3151
  return ["$.", false, glob.length - pos, true];
3152
3152
  }
@@ -3207,7 +3207,7 @@ var require_brace_expressions = __commonJS({
3207
3207
  var require_unescape = __commonJS({
3208
3208
  "node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/unescape.js"(exports2) {
3209
3209
  "use strict";
3210
- Object.defineProperty(exports2, "__esModule", { value: true });
3210
+ _p_ObjectDefineProperty(exports2, "__esModule", { value: true });
3211
3211
  exports2.unescape = void 0;
3212
3212
  var unescape = /* @__PURE__ */ __name((s, { windowsPathsNoEscape = false } = {}) => {
3213
3213
  return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
@@ -3224,13 +3224,13 @@ var require_ast = __commonJS({
3224
3224
  exports2.AST = void 0;
3225
3225
  var brace_expressions_js_1 = require_brace_expressions();
3226
3226
  var unescape_js_1 = require_unescape();
3227
- var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
3227
+ var types = /* @__PURE__ */ new _p_SetCtor(["!", "?", "+", "*", "@"]);
3228
3228
  var isExtglobType = /* @__PURE__ */ __name((c) => types.has(c), "isExtglobType");
3229
3229
  var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
3230
3230
  var startNoDot = "(?!\\.)";
3231
- var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
3232
- var justDots = /* @__PURE__ */ new Set(["..", "."]);
3233
- var reSpecials = new Set("().*{}+?[]^$\\!");
3231
+ var addPatternStart = /* @__PURE__ */ new _p_SetCtor(["[", "."]);
3232
+ var justDots = /* @__PURE__ */ new _p_SetCtor(["..", "."]);
3233
+ var reSpecials = new _p_SetCtor("().*{}+?[]^$\\!");
3234
3234
  var regExpEscape = /* @__PURE__ */ __name((s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regExpEscape");
3235
3235
  var qmark = "[^/]";
3236
3236
  var star = qmark + "*?";
@@ -3288,7 +3288,7 @@ var require_ast = __commonJS({
3288
3288
  }
3289
3289
  #fillNegs() {
3290
3290
  if (this !== this.#root)
3291
- throw new Error("should only call on root");
3291
+ throw new _p_ErrorCtor("should only call on root");
3292
3292
  if (this.#filledNegs)
3293
3293
  return this;
3294
3294
  this.toString();
@@ -3303,7 +3303,7 @@ var require_ast = __commonJS({
3303
3303
  for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
3304
3304
  for (const part of n.#parts) {
3305
3305
  if (typeof part === "string") {
3306
- throw new Error("string part in extglob AST??");
3306
+ throw new _p_ErrorCtor("string part in extglob AST??");
3307
3307
  }
3308
3308
  part.copyIn(pp.#parts[i]);
3309
3309
  }
@@ -3319,7 +3319,7 @@ var require_ast = __commonJS({
3319
3319
  if (p === "")
3320
3320
  continue;
3321
3321
  if (typeof p !== "string" && !(p instanceof _AST && p.#parent === this)) {
3322
- throw new Error("invalid part: " + p);
3322
+ throw new _p_ErrorCtor("invalid part: " + p);
3323
3323
  }
3324
3324
  this.#parts.push(p);
3325
3325
  }
@@ -3406,7 +3406,7 @@ var require_ast = __commonJS({
3406
3406
  acc2 += c;
3407
3407
  continue;
3408
3408
  }
3409
- if (!opt.noext && isExtglobType(c) && str.charAt(i2) === "(") {
3409
+ if (!opt.noext && isExtglobType(c) && _p_StringPrototypeCharAt(str, i2) === "(") {
3410
3410
  ast.push(acc2);
3411
3411
  acc2 = "";
3412
3412
  const ext = new _AST(c, ast);
@@ -3447,7 +3447,7 @@ var require_ast = __commonJS({
3447
3447
  acc += c;
3448
3448
  continue;
3449
3449
  }
3450
- if (isExtglobType(c) && str.charAt(i) === "(") {
3450
+ if (isExtglobType(c) && _p_StringPrototypeCharAt(str, i) === "(") {
3451
3451
  part.push(acc);
3452
3452
  acc = "";
3453
3453
  const ext = new _AST(c, part);
@@ -3475,7 +3475,7 @@ var require_ast = __commonJS({
3475
3475
  }
3476
3476
  ast.type = null;
3477
3477
  ast.#hasMagic = void 0;
3478
- ast.#parts = [str.substring(pos - 1)];
3478
+ ast.#parts = [_p_StringPrototypeSubstring(str, pos - 1)];
3479
3479
  return i;
3480
3480
  }
3481
3481
  static fromGlob(pattern, options = {}) {
@@ -3495,7 +3495,7 @@ var require_ast = __commonJS({
3495
3495
  return body;
3496
3496
  }
3497
3497
  const flags = (this.#options.nocase ? "i" : "") + (uflag ? "u" : "");
3498
- return Object.assign(new RegExp(`^${re}$`, flags), {
3498
+ return _p_ObjectAssign(new _p_RegExpCtor(`^${re}$`, flags), {
3499
3499
  _src: re,
3500
3500
  _glob: glob
3501
3501
  });
@@ -3592,11 +3592,11 @@ var require_ast = __commonJS({
3592
3592
  const aps = addPatternStart;
3593
3593
  const needNoTrav = (
3594
3594
  // dots are allowed, and the pattern starts with [ or .
3595
- dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
3596
- src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
3597
- src.startsWith("\\.\\.") && aps.has(src.charAt(4))
3595
+ dot && aps.has(_p_StringPrototypeCharAt(src, 0)) || // the pattern starts with \., and then [ or .
3596
+ _p_StringPrototypeStartsWith(src, "\\.") && aps.has(_p_StringPrototypeCharAt(src, 2)) || // the pattern starts with \.\., and then [ or .
3597
+ _p_StringPrototypeStartsWith(src, "\\.\\.") && aps.has(_p_StringPrototypeCharAt(src, 4))
3598
3598
  );
3599
- const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
3599
+ const needNoDot = !dot && !allowDot && aps.has(_p_StringPrototypeCharAt(src, 0));
3600
3600
  start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
3601
3601
  }
3602
3602
  }
@@ -3650,7 +3650,7 @@ var require_ast = __commonJS({
3650
3650
  #partsToRegExp(dot) {
3651
3651
  return this.#parts.map((p) => {
3652
3652
  if (typeof p === "string") {
3653
- throw new Error("string type in extglob ast??");
3653
+ throw new _p_ErrorCtor("string type in extglob ast??");
3654
3654
  }
3655
3655
  const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
3656
3656
  this.#uflag = this.#uflag || uflag;
@@ -3663,7 +3663,7 @@ var require_ast = __commonJS({
3663
3663
  let uflag = false;
3664
3664
  let inStar = false;
3665
3665
  for (let i = 0; i < glob.length; i++) {
3666
- const c = glob.charAt(i);
3666
+ const c = _p_StringPrototypeCharAt(glob, i);
3667
3667
  if (escaping) {
3668
3668
  escaping = false;
3669
3669
  re += (reSpecials.has(c) ? "\\" : "") + c;
@@ -3717,7 +3717,7 @@ var require_ast = __commonJS({
3717
3717
  var require_escape = __commonJS({
3718
3718
  "node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/escape.js"(exports2) {
3719
3719
  "use strict";
3720
- Object.defineProperty(exports2, "__esModule", { value: true });
3720
+ _p_ObjectDefineProperty(exports2, "__esModule", { value: true });
3721
3721
  exports2.escape = void 0;
3722
3722
  var escape = /* @__PURE__ */ __name((s, { windowsPathsNoEscape = false } = {}) => {
3723
3723
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
@@ -3739,30 +3739,30 @@ var require_commonjs4 = __commonJS({
3739
3739
  var unescape_js_1 = require_unescape();
3740
3740
  var minimatch = /* @__PURE__ */ __name((p, pattern, options = {}) => {
3741
3741
  (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
3742
- if (!options.nocomment && pattern.charAt(0) === "#") {
3742
+ if (!options.nocomment && _p_StringPrototypeCharAt(pattern, 0) === "#") {
3743
3743
  return false;
3744
3744
  }
3745
3745
  return new Minimatch(pattern, options).match(p);
3746
3746
  }, "minimatch");
3747
3747
  exports2.minimatch = minimatch;
3748
3748
  var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
3749
- var starDotExtTest = /* @__PURE__ */ __name((ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2), "starDotExtTest");
3750
- var starDotExtTestDot = /* @__PURE__ */ __name((ext2) => (f) => f.endsWith(ext2), "starDotExtTestDot");
3749
+ var starDotExtTest = /* @__PURE__ */ __name((ext2) => (f) => !_p_StringPrototypeStartsWith(f, ".") && _p_StringPrototypeEndsWith(f, ext2), "starDotExtTest");
3750
+ var starDotExtTestDot = /* @__PURE__ */ __name((ext2) => (f) => _p_StringPrototypeEndsWith(f, ext2), "starDotExtTestDot");
3751
3751
  var starDotExtTestNocase = /* @__PURE__ */ __name((ext2) => {
3752
3752
  ext2 = ext2.toLowerCase();
3753
- return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2);
3753
+ return (f) => !_p_StringPrototypeStartsWith(f, ".") && f.toLowerCase().endsWith(ext2);
3754
3754
  }, "starDotExtTestNocase");
3755
3755
  var starDotExtTestNocaseDot = /* @__PURE__ */ __name((ext2) => {
3756
3756
  ext2 = ext2.toLowerCase();
3757
3757
  return (f) => f.toLowerCase().endsWith(ext2);
3758
3758
  }, "starDotExtTestNocaseDot");
3759
3759
  var starDotStarRE = /^\*+\.\*+$/;
3760
- var starDotStarTest = /* @__PURE__ */ __name((f) => !f.startsWith(".") && f.includes("."), "starDotStarTest");
3760
+ var starDotStarTest = /* @__PURE__ */ __name((f) => !_p_StringPrototypeStartsWith(f, ".") && f.includes("."), "starDotStarTest");
3761
3761
  var starDotStarTestDot = /* @__PURE__ */ __name((f) => f !== "." && f !== ".." && f.includes("."), "starDotStarTestDot");
3762
3762
  var dotStarRE = /^\.\*+$/;
3763
- var dotStarTest = /* @__PURE__ */ __name((f) => f !== "." && f !== ".." && f.startsWith("."), "dotStarTest");
3763
+ var dotStarTest = /* @__PURE__ */ __name((f) => f !== "." && f !== ".." && _p_StringPrototypeStartsWith(f, "."), "dotStarTest");
3764
3764
  var starRE = /^\*+$/;
3765
- var starTest = /* @__PURE__ */ __name((f) => f.length !== 0 && !f.startsWith("."), "starTest");
3765
+ var starTest = /* @__PURE__ */ __name((f) => f.length !== 0 && !_p_StringPrototypeStartsWith(f, "."), "starTest");
3766
3766
  var starTestDot = /* @__PURE__ */ __name((f) => f.length !== 0 && f !== "." && f !== "..", "starTestDot");
3767
3767
  var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
3768
3768
  var qmarksTestNocase = /* @__PURE__ */ __name(([$0, ext2 = ""]) => {
@@ -3781,15 +3781,15 @@ var require_commonjs4 = __commonJS({
3781
3781
  }, "qmarksTestNocaseDot");
3782
3782
  var qmarksTestDot = /* @__PURE__ */ __name(([$0, ext2 = ""]) => {
3783
3783
  const noext = qmarksTestNoExtDot([$0]);
3784
- return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
3784
+ return !ext2 ? noext : (f) => noext(f) && _p_StringPrototypeEndsWith(f, ext2);
3785
3785
  }, "qmarksTestDot");
3786
3786
  var qmarksTest = /* @__PURE__ */ __name(([$0, ext2 = ""]) => {
3787
3787
  const noext = qmarksTestNoExt([$0]);
3788
- return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
3788
+ return !ext2 ? noext : (f) => noext(f) && _p_StringPrototypeEndsWith(f, ext2);
3789
3789
  }, "qmarksTest");
3790
3790
  var qmarksTestNoExt = /* @__PURE__ */ __name(([$0]) => {
3791
3791
  const len = $0.length;
3792
- return (f) => f.length === len && !f.startsWith(".");
3792
+ return (f) => f.length === len && !_p_StringPrototypeStartsWith(f, ".");
3793
3793
  }, "qmarksTestNoExt");
3794
3794
  var qmarksTestNoExtDot = /* @__PURE__ */ __name(([$0]) => {
3795
3795
  const len = $0.length;
@@ -3811,14 +3811,14 @@ var require_commonjs4 = __commonJS({
3811
3811
  var filter = /* @__PURE__ */ __name((pattern, options = {}) => (p) => (0, exports2.minimatch)(p, pattern, options), "filter");
3812
3812
  exports2.filter = filter;
3813
3813
  exports2.minimatch.filter = exports2.filter;
3814
- var ext = /* @__PURE__ */ __name((a, b = {}) => Object.assign({}, a, b), "ext");
3814
+ var ext = /* @__PURE__ */ __name((a, b = {}) => _p_ObjectAssign({}, a, b), "ext");
3815
3815
  var defaults = /* @__PURE__ */ __name((def) => {
3816
- if (!def || typeof def !== "object" || !Object.keys(def).length) {
3816
+ if (!def || typeof def !== "object" || !_p_ObjectKeys(def).length) {
3817
3817
  return exports2.minimatch;
3818
3818
  }
3819
3819
  const orig = exports2.minimatch;
3820
3820
  const m = /* @__PURE__ */ __name((p, pattern, options = {}) => orig(p, pattern, ext(def, options)), "m");
3821
- return Object.assign(m, {
3821
+ return _p_ObjectAssign(m, {
3822
3822
  Minimatch: class Minimatch extends orig.Minimatch {
3823
3823
  static {
3824
3824
  __name(this, "Minimatch");
@@ -3943,7 +3943,7 @@ var require_commonjs4 = __commonJS({
3943
3943
  make() {
3944
3944
  const pattern = this.pattern;
3945
3945
  const options = this.options;
3946
- if (!options.nocomment && pattern.charAt(0) === "#") {
3946
+ if (!options.nocomment && _p_StringPrototypeCharAt(pattern, 0) === "#") {
3947
3947
  this.comment = true;
3948
3948
  return;
3949
3949
  }
@@ -3952,7 +3952,7 @@ var require_commonjs4 = __commonJS({
3952
3952
  return;
3953
3953
  }
3954
3954
  this.parseNegate();
3955
- this.globSet = [...new Set(this.braceExpand())];
3955
+ this.globSet = [...new _p_SetCtor(this.braceExpand())];
3956
3956
  if (options.debug) {
3957
3957
  this.debug = (...args) => console.error(...args);
3958
3958
  }
@@ -4047,7 +4047,7 @@ var require_commonjs4 = __commonJS({
4047
4047
  });
4048
4048
  }
4049
4049
  levelTwoFileOptimize(parts) {
4050
- if (!Array.isArray(parts)) {
4050
+ if (!_p_ArrayIsArray(parts)) {
4051
4051
  parts = this.slashSplit(parts);
4052
4052
  }
4053
4053
  let didSomething = false;
@@ -4223,7 +4223,7 @@ var require_commonjs4 = __commonJS({
4223
4223
  const pattern = this.pattern;
4224
4224
  let negate = false;
4225
4225
  let negateOffset = 0;
4226
- for (let i = 0; i < pattern.length && pattern.charAt(i) === "!"; i++) {
4226
+ for (let i = 0; i < pattern.length && _p_StringPrototypeCharAt(pattern, i) === "!"; i++) {
4227
4227
  negate = !negate;
4228
4228
  negateOffset++;
4229
4229
  }
@@ -4290,7 +4290,7 @@ var require_commonjs4 = __commonJS({
4290
4290
  this.debug("globstar found match!", fr, fl, swallowee);
4291
4291
  return true;
4292
4292
  } else {
4293
- if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
4293
+ if (swallowee === "." || swallowee === ".." || !options.dot && _p_StringPrototypeCharAt(swallowee, 0) === ".") {
4294
4294
  this.debug("dot detected!", file, fr, pattern, pr);
4295
4295
  break;
4296
4296
  }
@@ -4324,7 +4324,7 @@ var require_commonjs4 = __commonJS({
4324
4324
  } else if (pi === pl) {
4325
4325
  return fi === fl - 1 && file[fi] === "";
4326
4326
  } else {
4327
- throw new Error("wtf?");
4327
+ throw new _p_ErrorCtor("wtf?");
4328
4328
  }
4329
4329
  }
4330
4330
  braceExpand() {
@@ -4352,7 +4352,7 @@ var require_commonjs4 = __commonJS({
4352
4352
  }
4353
4353
  const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();
4354
4354
  if (fastTest && typeof re === "object") {
4355
- Reflect.defineProperty(re, "test", { value: fastTest });
4355
+ _p_ReflectDefineProperty(re, "test", { value: fastTest });
4356
4356
  }
4357
4357
  return re;
4358
4358
  }
@@ -4366,7 +4366,7 @@ var require_commonjs4 = __commonJS({
4366
4366
  }
4367
4367
  const options = this.options;
4368
4368
  const twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot;
4369
- const flags = new Set(options.nocase ? ["i"] : []);
4369
+ const flags = new _p_SetCtor(options.nocase ? ["i"] : []);
4370
4370
  let re = set.map((pattern) => {
4371
4371
  const pp = pattern.map((p) => {
4372
4372
  if (p instanceof RegExp) {
@@ -4401,7 +4401,7 @@ var require_commonjs4 = __commonJS({
4401
4401
  if (this.negate)
4402
4402
  re = "^(?!" + re + ").+$";
4403
4403
  try {
4404
- this.regexp = new RegExp(re, [...flags].join(""));
4404
+ this.regexp = new _p_RegExpCtor(re, [...flags].join(""));
4405
4405
  } catch (ex) {
4406
4406
  this.regexp = false;
4407
4407
  }
@@ -4466,15 +4466,15 @@ var require_commonjs4 = __commonJS({
4466
4466
  };
4467
4467
  exports2.Minimatch = Minimatch;
4468
4468
  var ast_js_2 = require_ast();
4469
- Object.defineProperty(exports2, "AST", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4469
+ _p_ObjectDefineProperty(exports2, "AST", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4470
4470
  return ast_js_2.AST;
4471
4471
  }, "get") });
4472
4472
  var escape_js_2 = require_escape();
4473
- Object.defineProperty(exports2, "escape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4473
+ _p_ObjectDefineProperty(exports2, "escape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4474
4474
  return escape_js_2.escape;
4475
4475
  }, "get") });
4476
4476
  var unescape_js_2 = require_unescape();
4477
- Object.defineProperty(exports2, "unescape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4477
+ _p_ObjectDefineProperty(exports2, "unescape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4478
4478
  return unescape_js_2.unescape;
4479
4479
  }, "get") });
4480
4480
  exports2.minimatch.AST = ast_js_1.AST;
@@ -4538,7 +4538,7 @@ var require_commonjs5 = __commonJS({
4538
4538
  var SIGNAL = Symbol("signal");
4539
4539
  var DATALISTENERS = Symbol("dataListeners");
4540
4540
  var DISCARDED = Symbol("discarded");
4541
- var defer = /* @__PURE__ */ __name((fn) => Promise.resolve().then(fn), "defer");
4541
+ var defer = /* @__PURE__ */ __name((fn) => _p_PromiseResolve().then(fn), "defer");
4542
4542
  var nodefer = /* @__PURE__ */ __name((fn) => fn(), "nodefer");
4543
4543
  var isEndish = /* @__PURE__ */ __name((ev) => ev === "end" || ev === "finish" || ev === "prefinish", "isEndish");
4544
4544
  var isArrayBufferLike = /* @__PURE__ */ __name((b) => b instanceof ArrayBuffer || !!b && typeof b === "object" && b.constructor && b.constructor.name === "ArrayBuffer" && b.byteLength >= 0, "isArrayBufferLike");
@@ -4629,7 +4629,7 @@ var require_commonjs5 = __commonJS({
4629
4629
  const options = args[0] || {};
4630
4630
  super();
4631
4631
  if (options.objectMode && typeof options.encoding === "string") {
4632
- throw new TypeError("Encoding and objectMode may not be used together");
4632
+ throw new _p_TypeErrorCtor("Encoding and objectMode may not be used together");
4633
4633
  }
4634
4634
  if (isObjectModeOptions(options)) {
4635
4635
  this[OBJECTMODE] = true;
@@ -4647,7 +4647,7 @@ var require_commonjs5 = __commonJS({
4647
4647
  _p_ObjectDefineProperty(this, "buffer", { get: /* @__PURE__ */ __name(() => this[BUFFER], "get") });
4648
4648
  }
4649
4649
  if (options && options.debugExposePipes === true) {
4650
- Object.defineProperty(this, "pipes", { get: /* @__PURE__ */ __name(() => this[PIPES], "get") });
4650
+ _p_ObjectDefineProperty(this, "pipes", { get: /* @__PURE__ */ __name(() => this[PIPES], "get") });
4651
4651
  }
4652
4652
  const { signal } = options;
4653
4653
  if (signal) {
@@ -4681,13 +4681,13 @@ var require_commonjs5 = __commonJS({
4681
4681
  * @deprecated - This is a read only property
4682
4682
  */
4683
4683
  set encoding(_enc) {
4684
- throw new Error("Encoding must be set at instantiation time");
4684
+ throw new _p_ErrorCtor("Encoding must be set at instantiation time");
4685
4685
  }
4686
4686
  /**
4687
4687
  * @deprecated - Encoding may only be set at instantiation time
4688
4688
  */
4689
4689
  setEncoding(_enc) {
4690
- throw new Error("Encoding must be set at instantiation time");
4690
+ throw new _p_ErrorCtor("Encoding must be set at instantiation time");
4691
4691
  }
4692
4692
  /**
4693
4693
  * True if this is an objectMode stream
@@ -4699,7 +4699,7 @@ var require_commonjs5 = __commonJS({
4699
4699
  * @deprecated - This is a read-only property
4700
4700
  */
4701
4701
  set objectMode(_om) {
4702
- throw new Error("objectMode must be set at instantiation time");
4702
+ throw new _p_ErrorCtor("objectMode must be set at instantiation time");
4703
4703
  }
4704
4704
  /**
4705
4705
  * true if this is an async stream
@@ -4739,7 +4739,7 @@ var require_commonjs5 = __commonJS({
4739
4739
  if (this[ABORTED])
4740
4740
  return false;
4741
4741
  if (this[EOF])
4742
- throw new Error("write after end");
4742
+ throw new _p_ErrorCtor("write after end");
4743
4743
  if (this[DESTROYED]) {
4744
4744
  this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" }));
4745
4745
  return true;
@@ -4751,13 +4751,13 @@ var require_commonjs5 = __commonJS({
4751
4751
  if (!encoding)
4752
4752
  encoding = "utf8";
4753
4753
  const fn = this[ASYNC] ? defer : nodefer;
4754
- if (!this[OBJECTMODE] && !Buffer.isBuffer(chunk)) {
4754
+ if (!this[OBJECTMODE] && !_p_BufferIsBuffer(chunk)) {
4755
4755
  if (isArrayBufferView(chunk)) {
4756
- chunk = Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
4756
+ chunk = _p_BufferFrom(chunk.buffer, chunk.byteOffset, chunk.byteLength);
4757
4757
  } else if (isArrayBufferLike(chunk)) {
4758
- chunk = Buffer.from(chunk);
4758
+ chunk = _p_BufferFrom(chunk);
4759
4759
  } else if (typeof chunk !== "string") {
4760
- throw new Error("Non-contiguous data written to non-objectMode stream");
4760
+ throw new _p_ErrorCtor("Non-contiguous data written to non-objectMode stream");
4761
4761
  }
4762
4762
  }
4763
4763
  if (this[OBJECTMODE]) {
@@ -4782,9 +4782,9 @@ var require_commonjs5 = __commonJS({
4782
4782
  }
4783
4783
  if (typeof chunk === "string" && // unless it is a string already ready for us to use
4784
4784
  !(encoding === this[ENCODING] && !this[DECODER]?.lastNeed)) {
4785
- chunk = Buffer.from(chunk, encoding);
4785
+ chunk = _p_BufferFrom(chunk, encoding);
4786
4786
  }
4787
- if (Buffer.isBuffer(chunk) && this[ENCODING]) {
4787
+ if (_p_BufferIsBuffer(chunk) && this[ENCODING]) {
4788
4788
  chunk = this[DECODER].write(chunk);
4789
4789
  }
4790
4790
  if (this[FLOWING] && this[BUFFERLENGTH] !== 0)
@@ -4824,7 +4824,7 @@ var require_commonjs5 = __commonJS({
4824
4824
  n = null;
4825
4825
  if (this[BUFFER].length > 1 && !this[OBJECTMODE]) {
4826
4826
  this[BUFFER] = [
4827
- this[ENCODING] ? this[BUFFER].join("") : Buffer.concat(this[BUFFER], this[BUFFERLENGTH])
4827
+ this[ENCODING] ? this[BUFFER].join("") : _p_BufferConcat(this[BUFFER], this[BUFFERLENGTH])
4828
4828
  ];
4829
4829
  }
4830
4830
  const ret = this[READ](n || null, this[BUFFER][0]);
@@ -5202,7 +5202,7 @@ var require_commonjs5 = __commonJS({
5202
5202
  * the stream ends.
5203
5203
  */
5204
5204
  async collect() {
5205
- const buf = Object.assign([], {
5205
+ const buf = _p_ObjectAssign([], {
5206
5206
  dataLength: 0
5207
5207
  });
5208
5208
  if (!this[OBJECTMODE])
@@ -5224,16 +5224,16 @@ var require_commonjs5 = __commonJS({
5224
5224
  */
5225
5225
  async concat() {
5226
5226
  if (this[OBJECTMODE]) {
5227
- throw new Error("cannot concat in objectMode");
5227
+ throw new _p_ErrorCtor("cannot concat in objectMode");
5228
5228
  }
5229
5229
  const buf = await this.collect();
5230
- return this[ENCODING] ? buf.join("") : Buffer.concat(buf, buf.dataLength);
5230
+ return this[ENCODING] ? buf.join("") : _p_BufferConcat(buf, buf.dataLength);
5231
5231
  }
5232
5232
  /**
5233
5233
  * Return a void Promise that resolves once the stream ends.
5234
5234
  */
5235
5235
  async promise() {
5236
- return new Promise((resolve, reject) => {
5236
+ return new _p_PromiseCtor((resolve, reject) => {
5237
5237
  this.on(DESTROYED, () => reject(new Error("stream destroyed")));
5238
5238
  this.on("error", (er) => reject(er));
5239
5239
  this.on("end", () => resolve());
@@ -5257,7 +5257,7 @@ var require_commonjs5 = __commonJS({
5257
5257
  return stop();
5258
5258
  const res = this.read();
5259
5259
  if (res !== null)
5260
- return Promise.resolve({ done: false, value: res });
5260
+ return _p_PromiseResolve({ done: false, value: res });
5261
5261
  if (this[EOF])
5262
5262
  return stop();
5263
5263
  let resolve;
@@ -5283,8 +5283,8 @@ var require_commonjs5 = __commonJS({
5283
5283
  stop();
5284
5284
  resolve({ done: true, value: void 0 });
5285
5285
  }, "onend");
5286
- const ondestroy = /* @__PURE__ */ __name(() => onerr(new Error("stream destroyed")), "ondestroy");
5287
- return new Promise((res2, rej) => {
5286
+ const ondestroy = /* @__PURE__ */ __name(() => onerr(new _p_ErrorCtor("stream destroyed")), "ondestroy");
5287
+ return new _p_PromiseCtor((res2, rej) => {
5288
5288
  reject = rej;
5289
5289
  resolve = res2;
5290
5290
  this.once(DESTROYED, ondestroy);
@@ -5401,13 +5401,13 @@ var require_commonjs6 = __commonJS({
5401
5401
  return m[k];
5402
5402
  }, "get") };
5403
5403
  }
5404
- Object.defineProperty(o, k2, desc);
5404
+ _p_ObjectDefineProperty(o, k2, desc);
5405
5405
  }) : (function(o, m, k, k2) {
5406
5406
  if (k2 === void 0) k2 = k;
5407
5407
  o[k2] = m[k];
5408
5408
  }));
5409
5409
  var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v) {
5410
- Object.defineProperty(o, "default", { enumerable: true, value: v });
5410
+ _p_ObjectDefineProperty(o, "default", { enumerable: true, value: v });
5411
5411
  }) : function(o, v) {
5412
5412
  o["default"] = v;
5413
5413
  });
@@ -5420,7 +5420,7 @@ var require_commonjs6 = __commonJS({
5420
5420
  __setModuleDefault(result, mod);
5421
5421
  return result;
5422
5422
  };
5423
- Object.defineProperty(exports2, "__esModule", { value: true });
5423
+ _p_ObjectDefineProperty(exports2, "__esModule", { value: true });
5424
5424
  exports2.PathScurry = exports2.Path = exports2.PathScurryDarwin = exports2.PathScurryPosix = exports2.PathScurryWin32 = exports2.PathScurryBase = exports2.PathPosix = exports2.PathWin32 = exports2.PathBase = exports2.ChildrenCache = exports2.ResolveCache = void 0;
5425
5425
  var lru_cache_1 = require_commonjs();
5426
5426
  var node_path_1 = require("node:path");
@@ -5736,7 +5736,7 @@ var require_commonjs6 = __commonJS({
5736
5736
  if (cached) {
5737
5737
  return cached;
5738
5738
  }
5739
- const children = Object.assign([], { provisional: 0 });
5739
+ const children = _p_ObjectAssign([], { provisional: 0 });
5740
5740
  this.#children.set(this, children);
5741
5741
  this.#type &= ~READDIR_CALLED;
5742
5742
  return children;
@@ -6139,7 +6139,7 @@ var require_commonjs6 = __commonJS({
6139
6139
  if (ifmt !== IFDIR && ifmt !== IFLNK && ifmt !== UNKNOWN) {
6140
6140
  child.#type |= ENOTDIR;
6141
6141
  }
6142
- c.unshift(child);
6142
+ _p_ArrayPrototypeUnshift(c, child);
6143
6143
  c.provisional++;
6144
6144
  return child;
6145
6145
  }
@@ -6163,7 +6163,7 @@ var require_commonjs6 = __commonJS({
6163
6163
  c.pop();
6164
6164
  else
6165
6165
  c.splice(index, 1);
6166
- c.unshift(p);
6166
+ _p_ArrayPrototypeUnshift(c, p);
6167
6167
  }
6168
6168
  c.provisional++;
6169
6169
  return p;
@@ -6317,7 +6317,7 @@ var require_commonjs6 = __commonJS({
6317
6317
  } else {
6318
6318
  let resolve = /* @__PURE__ */ __name(() => {
6319
6319
  }, "resolve");
6320
- this.#asyncReaddirInFlight = new Promise((res) => resolve = res);
6320
+ this.#asyncReaddirInFlight = new _p_PromiseCtor((res) => resolve = res);
6321
6321
  try {
6322
6322
  for (const e of await this.#fs.promises.readdir(fullpath, {
6323
6323
  withFileTypes: true
@@ -6418,7 +6418,7 @@ var require_commonjs6 = __commonJS({
6418
6418
  return;
6419
6419
  oldCwd.isCWD = false;
6420
6420
  this.isCWD = true;
6421
- const changed = /* @__PURE__ */ new Set([]);
6421
+ const changed = /* @__PURE__ */ new _p_SetCtor([]);
6422
6422
  let rp = [];
6423
6423
  let p = this;
6424
6424
  while (p && p.parent) {
@@ -6478,7 +6478,7 @@ var require_commonjs6 = __commonJS({
6478
6478
  if (rootPath === this.root.name) {
6479
6479
  return this.root;
6480
6480
  }
6481
- for (const [compare, root] of Object.entries(this.roots)) {
6481
+ for (const [compare, root] of _p_ObjectEntries(this.roots)) {
6482
6482
  if (this.sameRoot(rootPath, compare)) {
6483
6483
  return this.roots[rootPath] = root;
6484
6484
  }
@@ -6519,7 +6519,7 @@ var require_commonjs6 = __commonJS({
6519
6519
  * @internal
6520
6520
  */
6521
6521
  getRootString(path) {
6522
- return path.startsWith("/") ? "/" : "";
6522
+ return _p_StringPrototypeStartsWith(path, "/") ? "/" : "";
6523
6523
  }
6524
6524
  /**
6525
6525
  * @internal
@@ -6574,21 +6574,21 @@ var require_commonjs6 = __commonJS({
6574
6574
  */
6575
6575
  constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
6576
6576
  this.#fs = fsFromOption(fs);
6577
- if (cwd instanceof URL || cwd.startsWith("file://")) {
6577
+ if (cwd instanceof URL || _p_StringPrototypeStartsWith(cwd, "file://")) {
6578
6578
  cwd = (0, node_url_1.fileURLToPath)(cwd);
6579
6579
  }
6580
6580
  const cwdPath = pathImpl.resolve(cwd);
6581
- this.roots = /* @__PURE__ */ Object.create(null);
6581
+ this.roots = /* @__PURE__ */ _p_ObjectCreate(null);
6582
6582
  this.rootPath = this.parseRootPath(cwdPath);
6583
6583
  this.#resolveCache = new ResolveCache();
6584
6584
  this.#resolvePosixCache = new ResolveCache();
6585
6585
  this.#children = new ChildrenCache(childrenCacheSize);
6586
- const split = cwdPath.substring(this.rootPath.length).split(sep);
6586
+ const split = _p_StringPrototypeSubstring(cwdPath, this.rootPath.length).split(sep);
6587
6587
  if (split.length === 1 && !split[0]) {
6588
6588
  split.pop();
6589
6589
  }
6590
6590
  if (nocase === void 0) {
6591
- throw new TypeError("must provide nocase setting to PathScurryBase ctor");
6591
+ throw new _p_TypeErrorCtor("must provide nocase setting to PathScurryBase ctor");
6592
6592
  }
6593
6593
  this.nocase = nocase;
6594
6594
  this.root = this.newRoot(this.#fs);
@@ -6847,7 +6847,7 @@ var require_commonjs6 = __commonJS({
6847
6847
  if (!filter || filter(entry)) {
6848
6848
  results.push(withFileTypes ? entry : entry.fullpath());
6849
6849
  }
6850
- const dirs = /* @__PURE__ */ new Set();
6850
+ const dirs = /* @__PURE__ */ new _p_SetCtor();
6851
6851
  const walk = /* @__PURE__ */ __name((dir, cb) => {
6852
6852
  dirs.add(dir);
6853
6853
  dir.readdirCB((er, entries) => {
@@ -6879,7 +6879,7 @@ var require_commonjs6 = __commonJS({
6879
6879
  }, true);
6880
6880
  }, "walk");
6881
6881
  const start = entry;
6882
- return new Promise((res, rej) => {
6882
+ return new _p_PromiseCtor((res, rej) => {
6883
6883
  walk(start, (er) => {
6884
6884
  if (er)
6885
6885
  return rej(er);
@@ -6899,7 +6899,7 @@ var require_commonjs6 = __commonJS({
6899
6899
  if (!filter || filter(entry)) {
6900
6900
  results.push(withFileTypes ? entry : entry.fullpath());
6901
6901
  }
6902
- const dirs = /* @__PURE__ */ new Set([entry]);
6902
+ const dirs = /* @__PURE__ */ new _p_SetCtor([entry]);
6903
6903
  for (const dir of dirs) {
6904
6904
  const entries = dir.readdirSync();
6905
6905
  for (const e of entries) {
@@ -6960,7 +6960,7 @@ var require_commonjs6 = __commonJS({
6960
6960
  if (!filter || filter(entry)) {
6961
6961
  yield withFileTypes ? entry : entry.fullpath();
6962
6962
  }
6963
- const dirs = /* @__PURE__ */ new Set([entry]);
6963
+ const dirs = /* @__PURE__ */ new _p_SetCtor([entry]);
6964
6964
  for (const dir of dirs) {
6965
6965
  const entries = dir.readdirSync();
6966
6966
  for (const e of entries) {
@@ -7017,7 +7017,7 @@ var require_commonjs6 = __commonJS({
7017
7017
  }
7018
7018
  }
7019
7019
  if (promises.length) {
7020
- Promise.all(promises).then(() => onReaddir(null, entries, true));
7020
+ _p_PromiseAll(promises).then(() => onReaddir(null, entries, true));
7021
7021
  return;
7022
7022
  }
7023
7023
  }
@@ -7058,7 +7058,7 @@ var require_commonjs6 = __commonJS({
7058
7058
  }
7059
7059
  const { withFileTypes = true, follow = false, filter, walkFilter } = opts;
7060
7060
  const results = new minipass_1.Minipass({ objectMode: true });
7061
- const dirs = /* @__PURE__ */ new Set();
7061
+ const dirs = /* @__PURE__ */ new _p_SetCtor();
7062
7062
  if (!filter || filter(entry)) {
7063
7063
  results.write(withFileTypes ? entry : entry.fullpath());
7064
7064
  }
@@ -7142,7 +7142,7 @@ var require_commonjs6 = __commonJS({
7142
7142
  * Return true if the provided path string is an absolute path
7143
7143
  */
7144
7144
  isAbsolute(p) {
7145
- return p.startsWith("/") || p.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(p);
7145
+ return _p_StringPrototypeStartsWith(p, "/") || _p_StringPrototypeStartsWith(p, "\\") || /^[a-z]:(\/|\\)/i.test(p);
7146
7146
  }
7147
7147
  };
7148
7148
  exports2.PathScurryWin32 = PathScurryWin32;
@@ -7175,7 +7175,7 @@ var require_commonjs6 = __commonJS({
7175
7175
  * Return true if the provided path string is an absolute path
7176
7176
  */
7177
7177
  isAbsolute(p) {
7178
- return p.startsWith("/");
7178
+ return _p_StringPrototypeStartsWith(p, "/");
7179
7179
  }
7180
7180
  };
7181
7181
  exports2.PathScurryPosix = PathScurryPosix;
@@ -7198,7 +7198,7 @@ var require_commonjs6 = __commonJS({
7198
7198
  var require_pattern = __commonJS({
7199
7199
  "node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/pattern.js"(exports2) {
7200
7200
  "use strict";
7201
- Object.defineProperty(exports2, "__esModule", { value: true });
7201
+ _p_ObjectDefineProperty(exports2, "__esModule", { value: true });
7202
7202
  exports2.Pattern = void 0;
7203
7203
  var minimatch_1 = require_commonjs4();
7204
7204
  var isPatternList = /* @__PURE__ */ __name((pl) => pl.length >= 1, "isPatternList");
@@ -7220,13 +7220,13 @@ var require_pattern = __commonJS({
7220
7220
  #followGlobstar = true;
7221
7221
  constructor(patternList, globList, index, platform) {
7222
7222
  if (!isPatternList(patternList)) {
7223
- throw new TypeError("empty pattern list");
7223
+ throw new _p_TypeErrorCtor("empty pattern list");
7224
7224
  }
7225
7225
  if (!isGlobList(globList)) {
7226
- throw new TypeError("empty glob list");
7226
+ throw new _p_TypeErrorCtor("empty glob list");
7227
7227
  }
7228
7228
  if (globList.length !== patternList.length) {
7229
- throw new TypeError("mismatched pattern list and glob list lengths");
7229
+ throw new _p_TypeErrorCtor("mismatched pattern list and glob list lengths");
7230
7230
  }
7231
7231
  this.length = patternList.length;
7232
7232
  if (index < 0 || index >= this.length) {
@@ -7375,7 +7375,7 @@ var require_pattern = __commonJS({
7375
7375
  var require_ignore = __commonJS({
7376
7376
  "node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/ignore.js"(exports2) {
7377
7377
  "use strict";
7378
- Object.defineProperty(exports2, "__esModule", { value: true });
7378
+ _p_ObjectDefineProperty(exports2, "__esModule", { value: true });
7379
7379
  exports2.Ignore = void 0;
7380
7380
  var minimatch_1 = require_commonjs4();
7381
7381
  var pattern_js_1 = require_pattern();
@@ -7416,7 +7416,7 @@ var require_ignore = __commonJS({
7416
7416
  const parsed = mm.set[i];
7417
7417
  const globParts = mm.globParts[i];
7418
7418
  if (!parsed || !globParts) {
7419
- throw new Error("invalid pattern object");
7419
+ throw new _p_ErrorCtor("invalid pattern object");
7420
7420
  }
7421
7421
  while (parsed[0] === "." && globParts[0] === ".") {
7422
7422
  parsed.shift();
@@ -7483,11 +7483,11 @@ var require_processor = __commonJS({
7483
7483
  __name(this, "HasWalkedCache");
7484
7484
  }
7485
7485
  store;
7486
- constructor(store = /* @__PURE__ */ new Map()) {
7486
+ constructor(store = /* @__PURE__ */ new _p_MapCtor()) {
7487
7487
  this.store = store;
7488
7488
  }
7489
7489
  copy() {
7490
- return new _HasWalkedCache(new Map(this.store));
7490
+ return new _HasWalkedCache(new _p_MapCtor(this.store));
7491
7491
  }
7492
7492
  hasWalked(target, pattern) {
7493
7493
  return this.store.get(target.fullpath())?.has(pattern.globString());
@@ -7506,7 +7506,7 @@ var require_processor = __commonJS({
7506
7506
  static {
7507
7507
  __name(this, "MatchRecord");
7508
7508
  }
7509
- store = /* @__PURE__ */ new Map();
7509
+ store = /* @__PURE__ */ new _p_MapCtor();
7510
7510
  add(target, absolute, ifDir) {
7511
7511
  const n = (absolute ? 2 : 0) | (ifDir ? 1 : 0);
7512
7512
  const current = this.store.get(target);
@@ -7526,7 +7526,7 @@ var require_processor = __commonJS({
7526
7526
  static {
7527
7527
  __name(this, "SubWalks");
7528
7528
  }
7529
- store = /* @__PURE__ */ new Map();
7529
+ store = /* @__PURE__ */ new _p_MapCtor();
7530
7530
  add(target, pattern) {
7531
7531
  if (!target.canReaddir()) {
7532
7532
  return;
@@ -7542,7 +7542,7 @@ var require_processor = __commonJS({
7542
7542
  get(target) {
7543
7543
  const subs = this.store.get(target);
7544
7544
  if (!subs) {
7545
- throw new Error("attempting to walk unknown path");
7545
+ throw new _p_ErrorCtor("attempting to walk unknown path");
7546
7546
  }
7547
7547
  return subs;
7548
7548
  }
@@ -7725,7 +7725,7 @@ var require_walker = __commonJS({
7725
7725
  var minipass_1 = require_commonjs5();
7726
7726
  var ignore_js_1 = require_ignore();
7727
7727
  var processor_js_1 = require_processor();
7728
- var makeIgnore = /* @__PURE__ */ __name((ignore, opts) => typeof ignore === "string" ? new ignore_js_1.Ignore([ignore], opts) : Array.isArray(ignore) ? new ignore_js_1.Ignore(ignore, opts) : ignore, "makeIgnore");
7728
+ var makeIgnore = /* @__PURE__ */ __name((ignore, opts) => typeof ignore === "string" ? new ignore_js_1.Ignore([ignore], opts) : _p_ArrayIsArray(ignore) ? new ignore_js_1.Ignore(ignore, opts) : ignore, "makeIgnore");
7729
7729
  var GlobUtil = class {
7730
7730
  static {
7731
7731
  __name(this, "GlobUtil");
@@ -7733,7 +7733,7 @@ var require_walker = __commonJS({
7733
7733
  path;
7734
7734
  patterns;
7735
7735
  opts;
7736
- seen = /* @__PURE__ */ new Set();
7736
+ seen = /* @__PURE__ */ new _p_SetCtor();
7737
7737
  paused = false;
7738
7738
  aborted = false;
7739
7739
  #onResume = [];
@@ -7752,7 +7752,7 @@ var require_walker = __commonJS({
7752
7752
  this.#ignore = makeIgnore(opts.ignore ?? [], opts);
7753
7753
  if (!this.includeChildMatches && typeof this.#ignore.add !== "function") {
7754
7754
  const m = "cannot ignore child matches, ignore lacks add() method.";
7755
- throw new Error(m);
7755
+ throw new _p_ErrorCtor(m);
7756
7756
  }
7757
7757
  }
7758
7758
  this.maxDepth = opts.maxDepth || Infinity;
@@ -7985,7 +7985,7 @@ var require_walker = __commonJS({
7985
7985
  static {
7986
7986
  __name(this, "GlobWalker");
7987
7987
  }
7988
- matches = /* @__PURE__ */ new Set();
7988
+ matches = /* @__PURE__ */ new _p_SetCtor();
7989
7989
  constructor(patterns, path, opts) {
7990
7990
  super(patterns, path, opts);
7991
7991
  }
@@ -7998,7 +7998,7 @@ var require_walker = __commonJS({
7998
7998
  if (this.path.isUnknown()) {
7999
7999
  await this.path.lstat();
8000
8000
  }
8001
- await new Promise((res, rej) => {
8001
+ await new _p_PromiseCtor((res, rej) => {
8002
8002
  this.walkCB(this.path, this.patterns, () => {
8003
8003
  if (this.signal?.aborted) {
8004
8004
  rej(this.signal.reason);
@@ -8128,7 +8128,7 @@ var require_glob = __commonJS({
8128
8128
  */
8129
8129
  constructor(pattern, opts) {
8130
8130
  if (!opts)
8131
- throw new TypeError("glob options required");
8131
+ throw new _p_TypeErrorCtor("glob options required");
8132
8132
  this.withFileTypes = !!opts.withFileTypes;
8133
8133
  this.signal = opts.signal;
8134
8134
  this.follow = !!opts.follow;
@@ -8166,7 +8166,7 @@ var require_glob = __commonJS({
8166
8166
  }
8167
8167
  if (this.matchBase) {
8168
8168
  if (opts.noglobstar) {
8169
- throw new TypeError("base matching requires globstar");
8169
+ throw new _p_TypeErrorCtor("base matching requires globstar");
8170
8170
  }
8171
8171
  pattern = pattern.map((p) => p.includes("/") ? p : `./**/${p}`);
8172
8172
  }
@@ -8176,7 +8176,7 @@ var require_glob = __commonJS({
8176
8176
  if (opts.scurry) {
8177
8177
  this.scurry = opts.scurry;
8178
8178
  if (opts.nocase !== void 0 && opts.nocase !== opts.scurry.nocase) {
8179
- throw new Error("nocase option contradicts provided scurry option");
8179
+ throw new _p_ErrorCtor("nocase option contradicts provided scurry option");
8180
8180
  }
8181
8181
  } else {
8182
8182
  const Scurry = opts.platform === "win32" ? path_scurry_1.PathScurryWin32 : opts.platform === "darwin" ? path_scurry_1.PathScurryDarwin : opts.platform ? path_scurry_1.PathScurryPosix : path_scurry_1.PathScurry;
@@ -8212,7 +8212,7 @@ var require_glob = __commonJS({
8212
8212
  this.patterns = matchSet.map((set, i) => {
8213
8213
  const g = globParts[i];
8214
8214
  if (!g)
8215
- throw new Error("invalid pattern object");
8215
+ throw new _p_ErrorCtor("invalid pattern object");
8216
8216
  return new pattern_js_1.Pattern(set, g, 0, this.platform);
8217
8217
  });
8218
8218
  }
@@ -8285,11 +8285,11 @@ var require_glob = __commonJS({
8285
8285
  var require_has_magic = __commonJS({
8286
8286
  "node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/has-magic.js"(exports2) {
8287
8287
  "use strict";
8288
- Object.defineProperty(exports2, "__esModule", { value: true });
8288
+ _p_ObjectDefineProperty(exports2, "__esModule", { value: true });
8289
8289
  exports2.hasMagic = void 0;
8290
8290
  var minimatch_1 = require_commonjs4();
8291
8291
  var hasMagic = /* @__PURE__ */ __name((pattern, options = {}) => {
8292
- if (!Array.isArray(pattern)) {
8292
+ if (!_p_ArrayIsArray(pattern)) {
8293
8293
  pattern = [pattern];
8294
8294
  }
8295
8295
  for (const p of pattern) {
@@ -8317,22 +8317,22 @@ var require_commonjs7 = __commonJS({
8317
8317
  var glob_js_1 = require_glob();
8318
8318
  var has_magic_js_1 = require_has_magic();
8319
8319
  var minimatch_2 = require_commonjs4();
8320
- Object.defineProperty(exports2, "escape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
8320
+ _p_ObjectDefineProperty(exports2, "escape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
8321
8321
  return minimatch_2.escape;
8322
8322
  }, "get") });
8323
- Object.defineProperty(exports2, "unescape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
8323
+ _p_ObjectDefineProperty(exports2, "unescape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
8324
8324
  return minimatch_2.unescape;
8325
8325
  }, "get") });
8326
8326
  var glob_js_2 = require_glob();
8327
- Object.defineProperty(exports2, "Glob", { enumerable: true, get: /* @__PURE__ */ __name(function() {
8327
+ _p_ObjectDefineProperty(exports2, "Glob", { enumerable: true, get: /* @__PURE__ */ __name(function() {
8328
8328
  return glob_js_2.Glob;
8329
8329
  }, "get") });
8330
8330
  var has_magic_js_2 = require_has_magic();
8331
- Object.defineProperty(exports2, "hasMagic", { enumerable: true, get: /* @__PURE__ */ __name(function() {
8331
+ _p_ObjectDefineProperty(exports2, "hasMagic", { enumerable: true, get: /* @__PURE__ */ __name(function() {
8332
8332
  return has_magic_js_2.hasMagic;
8333
8333
  }, "get") });
8334
8334
  var ignore_js_1 = require_ignore();
8335
- Object.defineProperty(exports2, "Ignore", { enumerable: true, get: /* @__PURE__ */ __name(function() {
8335
+ _p_ObjectDefineProperty(exports2, "Ignore", { enumerable: true, get: /* @__PURE__ */ __name(function() {
8336
8336
  return ignore_js_1.Ignore;
8337
8337
  }, "get") });
8338
8338
  function globStreamSync(pattern, options = {}) {
@@ -8360,16 +8360,16 @@ var require_commonjs7 = __commonJS({
8360
8360
  }
8361
8361
  __name(globIterate, "globIterate");
8362
8362
  exports2.streamSync = globStreamSync;
8363
- exports2.stream = Object.assign(globStream, { sync: globStreamSync });
8363
+ exports2.stream = _p_ObjectAssign(globStream, { sync: globStreamSync });
8364
8364
  exports2.iterateSync = globIterateSync;
8365
- exports2.iterate = Object.assign(globIterate, {
8365
+ exports2.iterate = _p_ObjectAssign(globIterate, {
8366
8366
  sync: globIterateSync
8367
8367
  });
8368
- exports2.sync = Object.assign(globSync, {
8368
+ exports2.sync = _p_ObjectAssign(globSync, {
8369
8369
  stream: globStreamSync,
8370
8370
  iterate: globIterateSync
8371
8371
  });
8372
- exports2.glob = Object.assign(glob_, {
8372
+ exports2.glob = _p_ObjectAssign(glob_, {
8373
8373
  glob: glob_,
8374
8374
  globSync,
8375
8375
  sync: exports2.sync,
@@ -9243,7 +9243,7 @@ var require_scan = __commonJS({
9243
9243
  }
9244
9244
  }
9245
9245
  if (string === "+" && index > 1 && source[index - 2] === " ") {
9246
- throw new Error("Space before `+`");
9246
+ throw new _p_ErrorCtor("Space before `+`");
9247
9247
  }
9248
9248
  return string && {
9249
9249
  type: "OPERATOR",
@@ -9306,7 +9306,7 @@ var require_scan = __commonJS({
9306
9306
  }
9307
9307
  var token = parseToken();
9308
9308
  if (!token) {
9309
- throw new Error("Unexpected `" + source[index] + "` at offset " + index);
9309
+ throw new _p_ErrorCtor("Unexpected `" + source[index] + "` at offset " + index);
9310
9310
  }
9311
9311
  tokens.push(token);
9312
9312
  }
@@ -9331,7 +9331,7 @@ var require_parse2 = __commonJS({
9331
9331
  __name(token, "token");
9332
9332
  function next() {
9333
9333
  if (!hasMore()) {
9334
- throw new Error();
9334
+ throw new _p_ErrorCtor();
9335
9335
  }
9336
9336
  index++;
9337
9337
  }
@@ -9351,7 +9351,7 @@ var require_parse2 = __commonJS({
9351
9351
  next();
9352
9352
  return t.string;
9353
9353
  }
9354
- throw new Error("Expected exception after `WITH`");
9354
+ throw new _p_ErrorCtor("Expected exception after `WITH`");
9355
9355
  }
9356
9356
  }
9357
9357
  __name(parseWith, "parseWith");
@@ -9363,7 +9363,7 @@ var require_parse2 = __commonJS({
9363
9363
  next();
9364
9364
  string += "DocumentRef-" + t.string + ":";
9365
9365
  if (!parseOperator(":")) {
9366
- throw new Error("Expected `:` after `DocumentRef-...`");
9366
+ throw new _p_ErrorCtor("Expected `:` after `DocumentRef-...`");
9367
9367
  }
9368
9368
  }
9369
9369
  t = token();
@@ -9398,7 +9398,7 @@ var require_parse2 = __commonJS({
9398
9398
  }
9399
9399
  var expr = parseExpression();
9400
9400
  if (!parseOperator(")")) {
9401
- throw new Error("Expected `)`");
9401
+ throw new _p_ErrorCtor("Expected `)`");
9402
9402
  }
9403
9403
  return expr;
9404
9404
  }
@@ -9418,7 +9418,7 @@ var require_parse2 = __commonJS({
9418
9418
  }
9419
9419
  var right = parseBinaryOp();
9420
9420
  if (!right) {
9421
- throw new Error("Expected expression");
9421
+ throw new _p_ErrorCtor("Expected expression");
9422
9422
  }
9423
9423
  return {
9424
9424
  left,
@@ -9432,7 +9432,7 @@ var require_parse2 = __commonJS({
9432
9432
  var parseExpression = makeBinaryOpParser("OR", parseAnd);
9433
9433
  var node = parseExpression();
9434
9434
  if (!node || hasMore()) {
9435
- throw new Error("Syntax error");
9435
+ throw new _p_ErrorCtor("Syntax error");
9436
9436
  }
9437
9437
  return node;
9438
9438
  };
@@ -9633,7 +9633,7 @@ var require_spdx_correct = __commonJS({
9633
9633
  objectMap[key].push(item[0]);
9634
9634
  return objectMap;
9635
9635
  }, {});
9636
- var licensesWithOneVersion = Object.keys(licensesWithVersions).map(/* @__PURE__ */ __name(function makeEntries(key) {
9636
+ var licensesWithOneVersion = _p_ObjectKeys(licensesWithVersions).map(/* @__PURE__ */ __name(function makeEntries(key) {
9637
9637
  return [key, licensesWithVersions[key]];
9638
9638
  }, "makeEntries")).filter(/* @__PURE__ */ __name(function identifySoleVersions(item) {
9639
9639
  return (
@@ -9946,7 +9946,7 @@ var require_normalize_data = __commonJS({
9946
9946
  delete data.modules;
9947
9947
  }
9948
9948
  const files = data.files;
9949
- if (files && !Array.isArray(files)) {
9949
+ if (files && !_p_ArrayIsArray(files)) {
9950
9950
  changes?.push(`Invalid 'files' member`);
9951
9951
  delete data.files;
9952
9952
  } else if (data.files) {
@@ -10009,7 +10009,7 @@ var require_normalize_data = __commonJS({
10009
10009
  if (typeof data.keywords === "string") {
10010
10010
  data.keywords = data.keywords.split(/,\s+/);
10011
10011
  }
10012
- if (data.keywords && !Array.isArray(data.keywords)) {
10012
+ if (data.keywords && !_p_ArrayIsArray(data.keywords)) {
10013
10013
  delete data.keywords;
10014
10014
  changes?.push(`keywords should be an array of strings`);
10015
10015
  } else if (data.keywords) {
@@ -10028,7 +10028,7 @@ var require_normalize_data = __commonJS({
10028
10028
  data[bd] = data[bdd];
10029
10029
  delete data[bdd];
10030
10030
  }
10031
- if (data[bd] && !Array.isArray(data[bd])) {
10031
+ if (data[bd] && !_p_ArrayIsArray(data[bd])) {
10032
10032
  changes?.push(`Invalid 'bundleDependencies' list. Must be array of package names`);
10033
10033
  delete data[bd];
10034
10034
  } else if (data[bd]) {
@@ -10080,7 +10080,7 @@ var require_normalize_data = __commonJS({
10080
10080
  data.author = stringifyPerson(data.author);
10081
10081
  }
10082
10082
  ["maintainers", "contributors"].forEach(function(set) {
10083
- if (!Array.isArray(data[set])) {
10083
+ if (!_p_ArrayIsArray(data[set])) {
10084
10084
  return;
10085
10085
  }
10086
10086
  data[set] = data[set].map(stringifyPerson);
@@ -10134,9 +10134,9 @@ var require_posix = __commonJS({
10134
10134
  const myGroups = options.groups ?? process.getgroups?.() ?? [];
10135
10135
  const myGid = options.gid ?? process.getgid?.() ?? myGroups[0];
10136
10136
  if (myUid === void 0 || myGid === void 0) {
10137
- throw new Error("cannot get uid or gid");
10137
+ throw new _p_ErrorCtor("cannot get uid or gid");
10138
10138
  }
10139
- const groups = /* @__PURE__ */ new Set([myGid, ...myGroups]);
10139
+ const groups = /* @__PURE__ */ new _p_SetCtor([myGid, ...myGroups]);
10140
10140
  const mod = stat.mode;
10141
10141
  const uid = stat.uid;
10142
10142
  const gid = stat.gid;
@@ -10189,7 +10189,7 @@ var require_win32 = __commonJS({
10189
10189
  }
10190
10190
  for (let i = 0; i < peSplit.length; i++) {
10191
10191
  const p = peSplit[i].toLowerCase();
10192
- const ext = path.substring(path.length - p.length).toLowerCase();
10192
+ const ext = _p_StringPrototypeSubstring(path, path.length - p.length).toLowerCase();
10193
10193
  if (p && ext === p) {
10194
10194
  return true;
10195
10195
  }
@@ -10204,7 +10204,7 @@ var require_win32 = __commonJS({
10204
10204
  var require_options = __commonJS({
10205
10205
  "node_modules/.pnpm/isexe@3.1.1/node_modules/isexe/dist/cjs/options.js"(exports2) {
10206
10206
  "use strict";
10207
- Object.defineProperty(exports2, "__esModule", { value: true });
10207
+ _p_ObjectDefineProperty(exports2, "__esModule", { value: true });
10208
10208
  }
10209
10209
  });
10210
10210
 
@@ -10214,19 +10214,19 @@ var require_cjs = __commonJS({
10214
10214
  "use strict";
10215
10215
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
10216
10216
  if (k2 === void 0) k2 = k;
10217
- var desc = Object.getOwnPropertyDescriptor(m, k);
10217
+ var desc = _p_ObjectGetOwnPropertyDescriptor(m, k);
10218
10218
  if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10219
10219
  desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
10220
10220
  return m[k];
10221
10221
  }, "get") };
10222
10222
  }
10223
- Object.defineProperty(o, k2, desc);
10223
+ _p_ObjectDefineProperty(o, k2, desc);
10224
10224
  }) : (function(o, m, k, k2) {
10225
10225
  if (k2 === void 0) k2 = k;
10226
10226
  o[k2] = m[k];
10227
10227
  }));
10228
10228
  var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v) {
10229
- Object.defineProperty(o, "default", { enumerable: true, value: v });
10229
+ _p_ObjectDefineProperty(o, "default", { enumerable: true, value: v });
10230
10230
  }) : function(o, v) {
10231
10231
  o["default"] = v;
10232
10232
  });
@@ -10242,7 +10242,7 @@ var require_cjs = __commonJS({
10242
10242
  var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
10243
10243
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding(exports3, m, p);
10244
10244
  };
10245
- Object.defineProperty(exports2, "__esModule", { value: true });
10245
+ _p_ObjectDefineProperty(exports2, "__esModule", { value: true });
10246
10246
  exports2.sync = exports2.isexe = exports2.posix = exports2.win32 = void 0;
10247
10247
  var posix = __importStar(require_posix());
10248
10248
  exports2.posix = posix;
@@ -10262,9 +10262,9 @@ var require_lib4 = __commonJS({
10262
10262
  var { isexe, sync: isexeSync } = require_cjs();
10263
10263
  var { join, delimiter, sep, posix } = require("path");
10264
10264
  var isWindows = process.platform === "win32";
10265
- var rSlash = new RegExp(`[${posix.sep}${sep === posix.sep ? "" : sep}]`.replace(/(\\)/g, "\\$1"));
10266
- var rRel = new RegExp(`^\\.${rSlash.source}`);
10267
- var getNotFoundError = /* @__PURE__ */ __name((cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }), "getNotFoundError");
10265
+ var rSlash = new _p_RegExpCtor(`[${posix.sep}${sep === posix.sep ? "" : sep}]`.replace(/(\\)/g, "\\$1"));
10266
+ var rRel = new _p_RegExpCtor(`^\\.${rSlash.source}`);
10267
+ var getNotFoundError = /* @__PURE__ */ __name((cmd) => _p_ObjectAssign(new _p_ErrorCtor(`not found: ${cmd}`), { code: "ENOENT" }), "getNotFoundError");
10268
10268
  var getPathInfo = /* @__PURE__ */ __name((cmd, {
10269
10269
  path: optPath = process.env.PATH,
10270
10270
  pathExt: optPathExt = process.env.PATHEXT,
@@ -10280,7 +10280,7 @@ var require_lib4 = __commonJS({
10280
10280
  const pathExtExe = optPathExt || [".EXE", ".CMD", ".BAT", ".COM"].join(optDelimiter);
10281
10281
  const pathExt = pathExtExe.split(optDelimiter).flatMap((item) => [item, item.toLowerCase()]);
10282
10282
  if (cmd.includes(".") && pathExt[0] !== "") {
10283
- pathExt.unshift("");
10283
+ _p_ArrayPrototypeUnshift(pathExt, "");
10284
10284
  }
10285
10285
  return { pathEnv, pathExt, pathExtExe };
10286
10286
  }
@@ -10413,11 +10413,11 @@ var require_lib5 = __commonJS({
10413
10413
  return spawnWithShell(cmd, args, opts, extra);
10414
10414
  }
10415
10415
  let resolve, reject;
10416
- const promise = new Promise((_resolve, _reject) => {
10416
+ const promise = new _p_PromiseCtor((_resolve, _reject) => {
10417
10417
  resolve = _resolve;
10418
10418
  reject = _reject;
10419
10419
  });
10420
- const closeError = new Error("command failed");
10420
+ const closeError = new _p_ErrorCtor("command failed");
10421
10421
  const stdout = [];
10422
10422
  const stderr = [];
10423
10423
  const getResult = /* @__PURE__ */ __name((result) => ({
@@ -10429,7 +10429,7 @@ var require_lib5 = __commonJS({
10429
10429
  }), "getResult");
10430
10430
  const rejectWithOpts = /* @__PURE__ */ __name((er, erOpts) => {
10431
10431
  const resultError = getResult(erOpts);
10432
- reject(Object.assign(er, resultError));
10432
+ reject(_p_ObjectAssign(er, resultError));
10433
10433
  }, "rejectWithOpts");
10434
10434
  const proc = spawn(cmd, args, opts);
10435
10435
  promise.stdin = proc.stdin;
@@ -10466,7 +10466,7 @@ var require_lib5 = __commonJS({
10466
10466
  let initialCmd = "";
10467
10467
  let insideQuotes = false;
10468
10468
  for (let i = 0; i < cmd.length; ++i) {
10469
- const char = cmd.charAt(i);
10469
+ const char = _p_StringPrototypeCharAt(cmd, i);
10470
10470
  if (char === " " && !insideQuotes) {
10471
10471
  break;
10472
10472
  }
@@ -10484,7 +10484,7 @@ var require_lib5 = __commonJS({
10484
10484
  } catch (err) {
10485
10485
  pathToInitial = initialCmd.toLowerCase();
10486
10486
  }
10487
- doubleEscape = pathToInitial.endsWith(".cmd") || pathToInitial.endsWith(".bat");
10487
+ doubleEscape = _p_StringPrototypeEndsWith(pathToInitial, ".cmd") || _p_StringPrototypeEndsWith(pathToInitial, ".bat");
10488
10488
  for (const arg of args) {
10489
10489
  script += ` ${escape.cmd(arg, doubleEscape)}`;
10490
10490
  }
@@ -10505,8 +10505,8 @@ var require_lib5 = __commonJS({
10505
10505
  if (platform === "linux" && os2.release().toLowerCase().includes("microsoft")) {
10506
10506
  platform = "wsl";
10507
10507
  if (!process.env.BROWSER) {
10508
- return Promise.reject(
10509
- new Error("Set the BROWSER environment variable to your desired browser.")
10508
+ return _p_PromiseReject(
10509
+ new _p_ErrorCtor("Set the BROWSER environment variable to your desired browser.")
10510
10510
  );
10511
10511
  }
10512
10512
  }
@@ -10530,7 +10530,7 @@ var require_lib5 = __commonJS({
10530
10530
  if (stdio === "pipe" || stdio === null) {
10531
10531
  return true;
10532
10532
  }
10533
- if (Array.isArray(stdio)) {
10533
+ if (_p_ArrayIsArray(stdio)) {
10534
10534
  return isPipe(stdio[fd], fd);
10535
10535
  }
10536
10536
  return false;
@@ -10541,13 +10541,13 @@ var require_lib5 = __commonJS({
10541
10541
  stderr: null
10542
10542
  };
10543
10543
  if (isPipe(stdio, 1)) {
10544
- result.stdout = Buffer.concat(stdout);
10544
+ result.stdout = _p_BufferConcat(stdout);
10545
10545
  if (stdioString) {
10546
10546
  result.stdout = result.stdout.toString().trim();
10547
10547
  }
10548
10548
  }
10549
10549
  if (isPipe(stdio, 2)) {
10550
- result.stderr = Buffer.concat(stderr);
10550
+ result.stderr = _p_BufferConcat(stderr);
10551
10551
  if (stdioString) {
10552
10552
  result.stderr = result.stderr.toString().trim();
10553
10553
  }
@@ -10556,7 +10556,7 @@ var require_lib5 = __commonJS({
10556
10556
  }, "stdioResult");
10557
10557
  var findInObject = /* @__PURE__ */ __name((obj, key) => {
10558
10558
  key = key.toLowerCase();
10559
- for (const objKey of Object.keys(obj).sort()) {
10559
+ for (const objKey of _p_ObjectKeys(obj).sort()) {
10560
10560
  if (objKey.toLowerCase() === key) {
10561
10561
  return obj[objKey];
10562
10562
  }
@@ -10572,7 +10572,7 @@ var require_err_code = __commonJS({
10572
10572
  "use strict";
10573
10573
  function assign(obj, props) {
10574
10574
  for (const key in props) {
10575
- Object.defineProperty(obj, key, {
10575
+ _p_ObjectDefineProperty(obj, key, {
10576
10576
  value: props[key],
10577
10577
  enumerable: true,
10578
10578
  configurable: true
@@ -10583,7 +10583,7 @@ var require_err_code = __commonJS({
10583
10583
  __name(assign, "assign");
10584
10584
  function createError(err, code, props) {
10585
10585
  if (!err || typeof err === "string") {
10586
- throw new TypeError("Please pass an Error to err-code");
10586
+ throw new _p_TypeErrorCtor("Please pass an Error to err-code");
10587
10587
  }
10588
10588
  if (!props) {
10589
10589
  props = {};
@@ -10602,7 +10602,7 @@ var require_err_code = __commonJS({
10602
10602
  props.stack = err.stack;
10603
10603
  const ErrClass = /* @__PURE__ */ __name(function() {
10604
10604
  }, "ErrClass");
10605
- ErrClass.prototype = Object.create(Object.getPrototypeOf(err));
10605
+ ErrClass.prototype = _p_ObjectCreate(_p_ObjectGetPrototypeOf(err));
10606
10606
  return assign(new ErrClass(), props);
10607
10607
  }
10608
10608
  }
@@ -10653,9 +10653,9 @@ var require_retry_operation = __commonJS({
10653
10653
  if (!err) {
10654
10654
  return false;
10655
10655
  }
10656
- var currentTime = (/* @__PURE__ */ new Date()).getTime();
10656
+ var currentTime = (/* @__PURE__ */ new _p_DateCtor()).getTime();
10657
10657
  if (err && currentTime - this._operationStart >= this._maxRetryTime) {
10658
- this._errors.unshift(new Error("RetryOperation timeout occurred"));
10658
+ this._errors.unshift(new _p_ErrorCtor("RetryOperation timeout occurred"));
10659
10659
  return false;
10660
10660
  }
10661
10661
  this._errors.push(err);
@@ -10703,7 +10703,7 @@ var require_retry_operation = __commonJS({
10703
10703
  self._operationTimeoutCb();
10704
10704
  }, self._operationTimeout);
10705
10705
  }
10706
- this._operationStart = (/* @__PURE__ */ new Date()).getTime();
10706
+ this._operationStart = (/* @__PURE__ */ new _p_DateCtor()).getTime();
10707
10707
  this._fn(this._attempts);
10708
10708
  };
10709
10709
  RetryOperation.prototype.try = function(fn) {
@@ -10770,7 +10770,7 @@ var require_retry = __commonJS({
10770
10770
  opts[key] = options[key];
10771
10771
  }
10772
10772
  if (opts.minTimeout > opts.maxTimeout) {
10773
- throw new Error("minTimeout is greater than maxTimeout");
10773
+ throw new _p_ErrorCtor("minTimeout is greater than maxTimeout");
10774
10774
  }
10775
10775
  var timeouts = [];
10776
10776
  for (var i = 0; i < opts.retries; i++) {
@@ -10785,9 +10785,9 @@ var require_retry = __commonJS({
10785
10785
  return timeouts;
10786
10786
  };
10787
10787
  exports2.createTimeout = function(attempt, opts) {
10788
- var random = opts.randomize ? Math.random() + 1 : 1;
10789
- var timeout = Math.round(random * opts.minTimeout * Math.pow(opts.factor, attempt));
10790
- timeout = Math.min(timeout, opts.maxTimeout);
10788
+ var random = opts.randomize ? _p_MathRandom() + 1 : 1;
10789
+ var timeout = _p_MathRound(random * opts.minTimeout * _p_MathPow(opts.factor, attempt));
10790
+ timeout = _p_MathMin(timeout, opts.maxTimeout);
10791
10791
  return timeout;
10792
10792
  };
10793
10793
  exports2.wrap = function(obj, options, methods) {
@@ -10856,14 +10856,14 @@ var require_promise_retry = __commonJS({
10856
10856
  fn = temp;
10857
10857
  }
10858
10858
  operation = retry.operation(options);
10859
- return new Promise(function(resolve, reject) {
10859
+ return new _p_PromiseCtor(function(resolve, reject) {
10860
10860
  operation.attempt(function(number) {
10861
- Promise.resolve().then(function() {
10861
+ _p_PromiseResolve().then(function() {
10862
10862
  return fn(function(err) {
10863
10863
  if (isRetryError(err)) {
10864
10864
  err = err.retried;
10865
10865
  }
10866
- throw errcode(new Error("Retrying"), "EPROMISERETRY", { retried: err });
10866
+ throw errcode(new _p_ErrorCtor("Retrying"), "EPROMISERETRY", { retried: err });
10867
10867
  }, number);
10868
10868
  }).then(resolve, function(err) {
10869
10869
  if (isRetryError(err)) {
@@ -10937,7 +10937,7 @@ var require_make_error = __commonJS({
10937
10937
  GitPathspecError,
10938
10938
  GitUnknownError
10939
10939
  } = require_errors();
10940
- var connectionErrorRe = new RegExp([
10940
+ var connectionErrorRe = new _p_RegExpCtor([
10941
10941
  "remote error: Internal Server Error",
10942
10942
  "The remote end hung up unexpectedly",
10943
10943
  "Connection timed out",
@@ -10958,7 +10958,7 @@ var require_make_error = __commonJS({
10958
10958
  } else {
10959
10959
  gitEr = new GitUnknownError(message);
10960
10960
  }
10961
- return Object.assign(gitEr, er);
10961
+ return _p_ObjectAssign(gitEr, er);
10962
10962
  }
10963
10963
  __name(makeError, "makeError");
10964
10964
  module2.exports = makeError;
@@ -10982,18 +10982,18 @@ var require_ini = __commonJS({
10982
10982
  const eol = opt.platform === "win32" ? "\r\n" : "\n";
10983
10983
  const separator = opt.whitespace ? " = " : "=";
10984
10984
  const children = [];
10985
- const keys = opt.sort ? Object.keys(obj).sort() : Object.keys(obj);
10985
+ const keys = opt.sort ? _p_ObjectKeys(obj).sort() : _p_ObjectKeys(obj);
10986
10986
  let padToChars = 0;
10987
10987
  if (opt.align) {
10988
10988
  padToChars = safe(
10989
- keys.filter((k) => obj[k] === null || Array.isArray(obj[k]) || typeof obj[k] !== "object").map((k) => Array.isArray(obj[k]) ? `${k}[]` : k).concat([""]).reduce((a, b) => safe(a).length >= safe(b).length ? a : b)
10989
+ keys.filter((k) => obj[k] === null || _p_ArrayIsArray(obj[k]) || typeof obj[k] !== "object").map((k) => _p_ArrayIsArray(obj[k]) ? `${k}[]` : k).concat([""]).reduce((a, b) => safe(a).length >= safe(b).length ? a : b)
10990
10990
  ).length;
10991
10991
  }
10992
10992
  let out = "";
10993
10993
  const arraySuffix = opt.bracketedArray ? "[]" : "";
10994
10994
  for (const k of keys) {
10995
10995
  const val = obj[k];
10996
- if (val && Array.isArray(val)) {
10996
+ if (val && _p_ArrayIsArray(val)) {
10997
10997
  for (const item of val) {
10998
10998
  out += safe(`${k}${arraySuffix}`).padEnd(padToChars, " ") + separator + safe(item) + eol;
10999
10999
  }
@@ -11059,10 +11059,10 @@ var require_ini = __commonJS({
11059
11059
  if (match[1] !== void 0) {
11060
11060
  section = unsafe(match[1]);
11061
11061
  if (section === "__proto__") {
11062
- p = /* @__PURE__ */ Object.create(null);
11062
+ p = /* @__PURE__ */ _p_ObjectCreate(null);
11063
11063
  continue;
11064
11064
  }
11065
- p = out[section] = out[section] || /* @__PURE__ */ Object.create(null);
11065
+ p = out[section] = out[section] || /* @__PURE__ */ _p_ObjectCreate(null);
11066
11066
  continue;
11067
11067
  }
11068
11068
  const keyRaw = unsafe(match[2]);
@@ -11073,28 +11073,28 @@ var require_ini = __commonJS({
11073
11073
  duplicates[keyRaw] = (duplicates?.[keyRaw] || 0) + 1;
11074
11074
  isArray = duplicates[keyRaw] > 1;
11075
11075
  }
11076
- const key = isArray && keyRaw.endsWith("[]") ? keyRaw.slice(0, -2) : keyRaw;
11076
+ const key = isArray && _p_StringPrototypeEndsWith(keyRaw, "[]") ? keyRaw.slice(0, -2) : keyRaw;
11077
11077
  if (key === "__proto__") {
11078
11078
  continue;
11079
11079
  }
11080
11080
  const valueRaw = match[3] ? unsafe(match[4]) : true;
11081
- const value = valueRaw === "true" || valueRaw === "false" || valueRaw === "null" ? JSON.parse(valueRaw) : valueRaw;
11081
+ const value = valueRaw === "true" || valueRaw === "false" || valueRaw === "null" ? _p_JSONParse(valueRaw) : valueRaw;
11082
11082
  if (isArray) {
11083
11083
  if (!hasOwnProperty.call(p, key)) {
11084
11084
  p[key] = [];
11085
- } else if (!Array.isArray(p[key])) {
11085
+ } else if (!_p_ArrayIsArray(p[key])) {
11086
11086
  p[key] = [p[key]];
11087
11087
  }
11088
11088
  }
11089
- if (Array.isArray(p[key])) {
11089
+ if (_p_ArrayIsArray(p[key])) {
11090
11090
  p[key].push(value);
11091
11091
  } else {
11092
11092
  p[key] = value;
11093
11093
  }
11094
11094
  }
11095
11095
  const remove = [];
11096
- for (const k of Object.keys(out)) {
11097
- if (!hasOwnProperty.call(out, k) || typeof out[k] !== "object" || Array.isArray(out[k])) {
11096
+ for (const k of _p_ObjectKeys(out)) {
11097
+ if (!hasOwnProperty.call(out, k) || typeof out[k] !== "object" || _p_ArrayIsArray(out[k])) {
11098
11098
  continue;
11099
11099
  }
11100
11100
  const parts = splitSections(k, ".");
@@ -11106,7 +11106,7 @@ var require_ini = __commonJS({
11106
11106
  continue;
11107
11107
  }
11108
11108
  if (!hasOwnProperty.call(p, part) || typeof p[part] !== "object") {
11109
- p[part] = /* @__PURE__ */ Object.create(null);
11109
+ p[part] = /* @__PURE__ */ _p_ObjectCreate(null);
11110
11110
  }
11111
11111
  p = p[part];
11112
11112
  }
@@ -11122,29 +11122,29 @@ var require_ini = __commonJS({
11122
11122
  return out;
11123
11123
  }, "decode");
11124
11124
  var isQuoted = /* @__PURE__ */ __name((val) => {
11125
- return val.startsWith('"') && val.endsWith('"') || val.startsWith("'") && val.endsWith("'");
11125
+ return _p_StringPrototypeStartsWith(val, '"') && _p_StringPrototypeEndsWith(val, '"') || _p_StringPrototypeStartsWith(val, "'") && _p_StringPrototypeEndsWith(val, "'");
11126
11126
  }, "isQuoted");
11127
11127
  var safe = /* @__PURE__ */ __name((val) => {
11128
11128
  if (typeof val !== "string" || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim()) {
11129
- return JSON.stringify(val);
11129
+ return _p_JSONStringify(val);
11130
11130
  }
11131
11131
  return val.split(";").join("\\;").split("#").join("\\#");
11132
11132
  }, "safe");
11133
11133
  var unsafe = /* @__PURE__ */ __name((val) => {
11134
11134
  val = (val || "").trim();
11135
11135
  if (isQuoted(val)) {
11136
- if (val.charAt(0) === "'") {
11136
+ if (_p_StringPrototypeCharAt(val, 0) === "'") {
11137
11137
  val = val.slice(1, -1);
11138
11138
  }
11139
11139
  try {
11140
- val = JSON.parse(val);
11140
+ val = _p_JSONParse(val);
11141
11141
  } catch {
11142
11142
  }
11143
11143
  } else {
11144
11144
  let esc = false;
11145
11145
  let unesc = "";
11146
11146
  for (let i = 0, l = val.length; i < l; i++) {
11147
- const c = val.charAt(i);
11147
+ const c = _p_StringPrototypeCharAt(val, i);
11148
11148
  if (esc) {
11149
11149
  if ("\\;#".indexOf(c) !== -1) {
11150
11150
  unesc += c;
@@ -11243,7 +11243,7 @@ var require_which = __commonJS({
11243
11243
  return opts.git;
11244
11244
  }
11245
11245
  if (!gitPath || opts.git === false) {
11246
- return Object.assign(new Error("No git binary found in $PATH"), { code: "ENOGIT" });
11246
+ return _p_ObjectAssign(new _p_ErrorCtor("No git binary found in $PATH"), { code: "ENOGIT" });
11247
11247
  }
11248
11248
  return gitPath;
11249
11249
  };
@@ -11262,7 +11262,7 @@ var require_spawn = __commonJS({
11262
11262
  const whichGit = require_which();
11263
11263
  const gitPath = whichGit(opts);
11264
11264
  if (gitPath instanceof Error) {
11265
- return Promise.reject(gitPath);
11265
+ return _p_PromiseReject(gitPath);
11266
11266
  }
11267
11267
  const args = opts.allowReplace || gitArgs[0] === "--no-replace-objects" ? gitArgs : ["--no-replace-objects", ...gitArgs];
11268
11268
  let retryOpts = opts.retry;
@@ -11631,7 +11631,7 @@ var require_lrucache = __commonJS({
11631
11631
  }
11632
11632
  constructor() {
11633
11633
  this.max = 1e3;
11634
- this.map = /* @__PURE__ */ new Map();
11634
+ this.map = /* @__PURE__ */ new _p_MapCtor();
11635
11635
  }
11636
11636
  get(key) {
11637
11637
  const value = this.map.get(key);
@@ -11692,7 +11692,7 @@ var require_range = __commonJS({
11692
11692
  this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
11693
11693
  this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
11694
11694
  if (!this.set.length) {
11695
- throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
11695
+ throw new _p_TypeErrorCtor(`Invalid SemVer Range: ${this.raw}`);
11696
11696
  }
11697
11697
  if (this.set.length > 1) {
11698
11698
  const first = this.set[0];
@@ -11759,7 +11759,7 @@ var require_range = __commonJS({
11759
11759
  });
11760
11760
  }
11761
11761
  debug("range list", rangeList);
11762
- const rangeMap = /* @__PURE__ */ new Map();
11762
+ const rangeMap = /* @__PURE__ */ new _p_MapCtor();
11763
11763
  const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
11764
11764
  for (const comp of comparators) {
11765
11765
  if (isNullSet(comp)) {
@@ -11776,7 +11776,7 @@ var require_range = __commonJS({
11776
11776
  }
11777
11777
  intersects(range, options) {
11778
11778
  if (!(range instanceof _Range)) {
11779
- throw new TypeError("a Range is required");
11779
+ throw new _p_TypeErrorCtor("a Range is required");
11780
11780
  }
11781
11781
  return this.set.some((thisComparators) => {
11782
11782
  return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
@@ -12078,7 +12078,7 @@ var require_comparator = __commonJS({
12078
12078
  const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
12079
12079
  const m = comp.match(r);
12080
12080
  if (!m) {
12081
- throw new TypeError(`Invalid comparator: ${comp}`);
12081
+ throw new _p_TypeErrorCtor(`Invalid comparator: ${comp}`);
12082
12082
  }
12083
12083
  this.operator = m[1] !== void 0 ? m[1] : "";
12084
12084
  if (this.operator === "=") {
@@ -12109,7 +12109,7 @@ var require_comparator = __commonJS({
12109
12109
  }
12110
12110
  intersects(comp, options) {
12111
12111
  if (!(comp instanceof _Comparator)) {
12112
- throw new TypeError("a Comparator is required");
12112
+ throw new _p_TypeErrorCtor("a Comparator is required");
12113
12113
  }
12114
12114
  if (this.operator === "") {
12115
12115
  if (this.value === "") {
@@ -12229,7 +12229,7 @@ var require_min_satisfying = __commonJS({
12229
12229
  return null;
12230
12230
  }
12231
12231
  versions.forEach((v) => {
12232
- if (_p_RegExpPrototypeTest(rangeObj, v)) {
12232
+ if (rangeObj.test(v)) {
12233
12233
  if (!min || minSV.compare(v) === 1) {
12234
12234
  min = v;
12235
12235
  minSV = new SemVer(min, options);
@@ -12522,7 +12522,7 @@ var require_subset = __commonJS({
12522
12522
  dom = minimumVersion;
12523
12523
  }
12524
12524
  }
12525
- const eqSet = /* @__PURE__ */ new Set();
12525
+ const eqSet = /* @__PURE__ */ new _p_SetCtor();
12526
12526
  let gt, lt;
12527
12527
  for (const c of sub) {
12528
12528
  if (c.operator === ">" || c.operator === ">=") {
@@ -12739,7 +12739,7 @@ var require_lines_to_revs = __commonJS({
12739
12739
  }));
12740
12740
  var finish = /* @__PURE__ */ __name((revs) => distTags(shaList(peelTags(revs))), "finish");
12741
12741
  var shaList = /* @__PURE__ */ __name((revs) => {
12742
- Object.keys(revs.refs).forEach((ref) => {
12742
+ _p_ObjectKeys(revs.refs).forEach((ref) => {
12743
12743
  const doc = revs.refs[ref];
12744
12744
  if (!revs.shas[doc.sha]) {
12745
12745
  revs.shas[doc.sha] = [ref];
@@ -12750,7 +12750,7 @@ var require_lines_to_revs = __commonJS({
12750
12750
  return revs;
12751
12751
  }, "shaList");
12752
12752
  var peelTags = /* @__PURE__ */ __name((revs) => {
12753
- Object.keys(revs.refs).filter((ref) => ref.endsWith("^{}")).forEach((ref) => {
12753
+ _p_ObjectKeys(revs.refs).filter((ref) => _p_StringPrototypeEndsWith(ref, "^{}")).forEach((ref) => {
12754
12754
  const peeled = revs.refs[ref];
12755
12755
  const unpeeled = revs.refs[ref.replace(/\^\{\}$/, "")];
12756
12756
  if (unpeeled) {
@@ -12763,7 +12763,7 @@ var require_lines_to_revs = __commonJS({
12763
12763
  var distTags = /* @__PURE__ */ __name((revs) => {
12764
12764
  const HEAD = revs.refs.HEAD || /* istanbul ignore next */
12765
12765
  {};
12766
- const versions = Object.keys(revs.versions);
12766
+ const versions = _p_ObjectKeys(revs.versions);
12767
12767
  versions.forEach((v) => {
12768
12768
  const ver = revs.versions[v];
12769
12769
  if (revs.refs.latest && ver.sha === revs.refs.latest.sha) {
@@ -12778,13 +12778,13 @@ var require_lines_to_revs = __commonJS({
12778
12778
  return revs;
12779
12779
  }, "distTags");
12780
12780
  var refType = /* @__PURE__ */ __name((ref) => {
12781
- if (ref.startsWith("refs/tags/")) {
12781
+ if (_p_StringPrototypeStartsWith(ref, "refs/tags/")) {
12782
12782
  return "tag";
12783
12783
  }
12784
- if (ref.startsWith("refs/heads/")) {
12784
+ if (_p_StringPrototypeStartsWith(ref, "refs/heads/")) {
12785
12785
  return "branch";
12786
12786
  }
12787
- if (ref.startsWith("refs/pull/")) {
12787
+ if (_p_StringPrototypeStartsWith(ref, "refs/pull/")) {
12788
12788
  return "pull";
12789
12789
  }
12790
12790
  if (ref === "HEAD") {
@@ -12874,7 +12874,7 @@ var require_lib6 = __commonJS({
12874
12874
  "node_modules/.pnpm/validate-npm-package-name@6.0.2/node_modules/validate-npm-package-name/lib/index.js"(exports2, module2) {
12875
12875
  "use strict";
12876
12876
  var { builtinModules: builtins } = require("module");
12877
- var scopedPackagePattern = new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
12877
+ var scopedPackagePattern = new _p_RegExpCtor("^(?:@([^/]+?)[/])?([^/]+?)$");
12878
12878
  var exclusionList = [
12879
12879
  "node_modules",
12880
12880
  "favicon.ico"
@@ -12897,7 +12897,7 @@ var require_lib6 = __commonJS({
12897
12897
  if (!name.length) {
12898
12898
  errors.push("name length must be greater than zero");
12899
12899
  }
12900
- if (name.startsWith(".")) {
12900
+ if (_p_StringPrototypeStartsWith(name, ".")) {
12901
12901
  errors.push("name cannot start with a period");
12902
12902
  }
12903
12903
  if (name.match(/^_/)) {
@@ -12928,7 +12928,7 @@ var require_lib6 = __commonJS({
12928
12928
  if (nameMatch) {
12929
12929
  var user = nameMatch[1];
12930
12930
  var pkg = nameMatch[2];
12931
- if (pkg.startsWith(".")) {
12931
+ if (_p_StringPrototypeStartsWith(pkg, ".")) {
12932
12932
  errors.push("name cannot start with a period");
12933
12933
  }
12934
12934
  if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {
@@ -12997,7 +12997,7 @@ var require_npa = __commonJS({
12997
12997
  spec = arg;
12998
12998
  } else if (isGit.test(arg)) {
12999
12999
  spec = `git+ssh://${arg}`;
13000
- } else if (!namePart.startsWith("@") && (hasSlashes.test(namePart) || isFileType.test(namePart))) {
13000
+ } else if (!_p_StringPrototypeStartsWith(namePart, "@") && (hasSlashes.test(namePart) || isFileType.test(namePart))) {
13001
13001
  spec = arg;
13002
13002
  } else if (nameEndsAt > 0) {
13003
13003
  name = namePart;
@@ -13080,19 +13080,19 @@ var require_npa = __commonJS({
13080
13080
  }
13081
13081
  __name(toPurl, "toPurl");
13082
13082
  function invalidPackageName(name, valid, raw) {
13083
- const err = new Error(`Invalid package name "${name}" of package "${raw}": ${valid.errors.join("; ")}.`);
13083
+ const err = new _p_ErrorCtor(`Invalid package name "${name}" of package "${raw}": ${valid.errors.join("; ")}.`);
13084
13084
  err.code = "EINVALIDPACKAGENAME";
13085
13085
  return err;
13086
13086
  }
13087
13087
  __name(invalidPackageName, "invalidPackageName");
13088
13088
  function invalidTagName(name, raw) {
13089
- const err = new Error(`Invalid tag name "${name}" of package "${raw}": Tags may not have any characters that encodeURIComponent encodes.`);
13089
+ const err = new _p_ErrorCtor(`Invalid tag name "${name}" of package "${raw}": Tags may not have any characters that encodeURIComponent encodes.`);
13090
13090
  err.code = "EINVALIDTAGNAME";
13091
13091
  return err;
13092
13092
  }
13093
13093
  __name(invalidTagName, "invalidTagName");
13094
13094
  function invalidPurlType(type, raw) {
13095
- const err = new Error(`Invalid type "${type}" of package "${raw}": Purl can only be generated for "version" types.`);
13095
+ const err = new _p_ErrorCtor(`Invalid type "${type}" of package "${raw}": Purl can only be generated for "version" types.`);
13096
13096
  err.code = "EINVALIDPURLTYPE";
13097
13097
  return err;
13098
13098
  }
@@ -13147,7 +13147,7 @@ var require_npa = __commonJS({
13147
13147
  return full.length ? full.join("@") : this.raw;
13148
13148
  }
13149
13149
  toJSON() {
13150
- const result = Object.assign({}, this);
13150
+ const result = _p_ObjectAssign({}, this);
13151
13151
  delete result.hosted;
13152
13152
  return result;
13153
13153
  }
@@ -13160,10 +13160,10 @@ var require_npa = __commonJS({
13160
13160
  for (const part of committish.split("::")) {
13161
13161
  if (!part.includes(":")) {
13162
13162
  if (res.gitRange) {
13163
- throw new Error("cannot override existing semver range with a committish");
13163
+ throw new _p_ErrorCtor("cannot override existing semver range with a committish");
13164
13164
  }
13165
13165
  if (res.gitCommittish) {
13166
- throw new Error("cannot override existing committish with a second committish");
13166
+ throw new _p_ErrorCtor("cannot override existing committish with a second committish");
13167
13167
  }
13168
13168
  res.gitCommittish = part;
13169
13169
  continue;
@@ -13171,17 +13171,17 @@ var require_npa = __commonJS({
13171
13171
  const [name, value] = part.split(":");
13172
13172
  if (name === "semver") {
13173
13173
  if (res.gitCommittish) {
13174
- throw new Error("cannot override existing committish with a semver range");
13174
+ throw new _p_ErrorCtor("cannot override existing committish with a semver range");
13175
13175
  }
13176
13176
  if (res.gitRange) {
13177
- throw new Error("cannot override existing semver range with a second semver range");
13177
+ throw new _p_ErrorCtor("cannot override existing semver range with a second semver range");
13178
13178
  }
13179
13179
  res.gitRange = decodeURIComponent(value);
13180
13180
  continue;
13181
13181
  }
13182
13182
  if (name === "path") {
13183
13183
  if (res.gitSubdir) {
13184
- throw new Error("cannot override existing path with a second path");
13184
+ throw new _p_ErrorCtor("cannot override existing path with a second path");
13185
13185
  }
13186
13186
  res.gitSubdir = `/${value}`;
13187
13187
  continue;
@@ -13190,7 +13190,7 @@ var require_npa = __commonJS({
13190
13190
  }
13191
13191
  }
13192
13192
  __name(setGitAttrs, "setGitAttrs");
13193
- var encodedPathChars = /* @__PURE__ */ new Map([
13193
+ var encodedPathChars = /* @__PURE__ */ new _p_MapCtor([
13194
13194
  ["\0", "%00"],
13195
13195
  [" ", "%09"],
13196
13196
  ["\n", "%0A"],
@@ -13212,17 +13212,17 @@ var require_npa = __commonJS({
13212
13212
  for (let i = 0; i < str.length; i++) {
13213
13213
  result = `${result}${encodedPathChars.get(str[i]) ?? str[i]}`;
13214
13214
  }
13215
- if (result.startsWith("file:")) {
13215
+ if (_p_StringPrototypeStartsWith(result, "file:")) {
13216
13216
  return result;
13217
13217
  }
13218
13218
  return `file:${result}`;
13219
13219
  }
13220
13220
  __name(pathToFileURL, "pathToFileURL");
13221
13221
  function fromFile(res, where) {
13222
- res.type = _p_RegExpPrototypeTest(isFileType, res.rawSpec) ? "file" : "directory";
13222
+ res.type = isFileType.test(res.rawSpec) ? "file" : "directory";
13223
13223
  res.where = where;
13224
13224
  let rawSpec = pathToFileURL(res.rawSpec);
13225
- if (rawSpec.startsWith("file:/")) {
13225
+ if (_p_StringPrototypeStartsWith(rawSpec, "file:/")) {
13226
13226
  if (/^file:\/\/[^/]/.test(rawSpec)) {
13227
13227
  rawSpec = `file:/${rawSpec.slice(5)}`;
13228
13228
  }
@@ -13236,8 +13236,8 @@ var require_npa = __commonJS({
13236
13236
  resolvedUrl = new URL2(rawSpec, `${pathToFileURL(path.resolve(where))}/`);
13237
13237
  specUrl = new URL2(rawSpec);
13238
13238
  } catch (originalError) {
13239
- const er = new Error("Invalid file: URL, must comply with RFC 8089");
13240
- throw Object.assign(er, {
13239
+ const er = new _p_ErrorCtor("Invalid file: URL, must comply with RFC 8089");
13240
+ throw _p_ObjectAssign(er, {
13241
13241
  raw: res.rawSpec,
13242
13242
  spec: res,
13243
13243
  where,
@@ -13276,7 +13276,7 @@ var require_npa = __commonJS({
13276
13276
  }
13277
13277
  __name(fromHostedGit, "fromHostedGit");
13278
13278
  function unsupportedURLType(protocol, spec) {
13279
- const err = new Error(`Unsupported URL Type "${protocol}": ${spec}`);
13279
+ const err = new _p_ErrorCtor(`Unsupported URL Type "${protocol}": ${spec}`);
13280
13280
  err.code = "EUNSUPPORTEDPROTOCOL";
13281
13281
  return err;
13282
13282
  }
@@ -13284,7 +13284,7 @@ var require_npa = __commonJS({
13284
13284
  function fromURL(res) {
13285
13285
  let rawSpec = res.rawSpec;
13286
13286
  res.saveSpec = rawSpec;
13287
- if (rawSpec.startsWith("git+ssh:")) {
13287
+ if (_p_StringPrototypeStartsWith(rawSpec, "git+ssh:")) {
13288
13288
  const matched = rawSpec.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);
13289
13289
  if (matched && !matched[1].match(isPortNumber)) {
13290
13290
  res.type = "git";
@@ -13292,7 +13292,7 @@ var require_npa = __commonJS({
13292
13292
  res.fetchSpec = matched[1];
13293
13293
  return res;
13294
13294
  }
13295
- } else if (rawSpec.startsWith("git+file://")) {
13295
+ } else if (_p_StringPrototypeStartsWith(rawSpec, "git+file://")) {
13296
13296
  rawSpec = rawSpec.replace(/\\/g, "/");
13297
13297
  }
13298
13298
  const parsedUrl = new URL2(rawSpec);
@@ -13330,13 +13330,13 @@ var require_npa = __commonJS({
13330
13330
  function fromAlias(res, where) {
13331
13331
  const subSpec = npa(res.rawSpec.substr(4), where);
13332
13332
  if (subSpec.type === "alias") {
13333
- throw new Error("nested aliases not supported");
13333
+ throw new _p_ErrorCtor("nested aliases not supported");
13334
13334
  }
13335
13335
  if (!subSpec.registry) {
13336
- throw new Error("aliases only work for registry deps");
13336
+ throw new _p_ErrorCtor("aliases only work for registry deps");
13337
13337
  }
13338
13338
  if (!subSpec.name) {
13339
- throw new Error("aliases must have a name");
13339
+ throw new _p_ErrorCtor("aliases must have a name");
13340
13340
  }
13341
13341
  res.subSpec = subSpec;
13342
13342
  res.registry = true;
@@ -13414,7 +13414,7 @@ var require_current_env = __commonJS({
13414
13414
  process3.report.excludeNetwork = originalExclude;
13415
13415
  if (report.header?.glibcVersionRuntime) {
13416
13416
  family = "glibc";
13417
- } else if (Array.isArray(report.sharedObjects) && report.sharedObjects.some(isMusl)) {
13417
+ } else if (_p_ArrayIsArray(report.sharedObjects) && report.sharedObjects.some(isMusl)) {
13418
13418
  family = "musl";
13419
13419
  } else {
13420
13420
  family = null;
@@ -13494,53 +13494,53 @@ var require_dev_engines = __commonJS({
13494
13494
  ];
13495
13495
  function checkDependency(wanted, current, opts) {
13496
13496
  const { engine } = opts;
13497
- if (typeof wanted !== "object" || wanted === null || Array.isArray(wanted)) {
13498
- throw new Error(`Invalid non-object value for "${engine}"`);
13497
+ if (typeof wanted !== "object" || wanted === null || _p_ArrayIsArray(wanted)) {
13498
+ throw new _p_ErrorCtor(`Invalid non-object value for "${engine}"`);
13499
13499
  }
13500
- const properties = Object.keys(wanted);
13500
+ const properties = _p_ObjectKeys(wanted);
13501
13501
  for (const prop of properties) {
13502
13502
  if (!recognizedProperties.includes(prop)) {
13503
- throw new Error(`Invalid property "${prop}" for "${engine}"`);
13503
+ throw new _p_ErrorCtor(`Invalid property "${prop}" for "${engine}"`);
13504
13504
  }
13505
13505
  }
13506
13506
  if (!properties.includes("name")) {
13507
- throw new Error(`Missing "name" property for "${engine}"`);
13507
+ throw new _p_ErrorCtor(`Missing "name" property for "${engine}"`);
13508
13508
  }
13509
13509
  if (typeof wanted.name !== "string") {
13510
- throw new Error(`Invalid non-string value for "name" within "${engine}"`);
13510
+ throw new _p_ErrorCtor(`Invalid non-string value for "name" within "${engine}"`);
13511
13511
  }
13512
13512
  if (typeof current.name !== "string" || current.name === "") {
13513
- throw new Error(`Unable to determine "name" for "${engine}"`);
13513
+ throw new _p_ErrorCtor(`Unable to determine "name" for "${engine}"`);
13514
13514
  }
13515
13515
  if (properties.includes("onFail")) {
13516
13516
  if (typeof wanted.onFail !== "string") {
13517
- throw new Error(`Invalid non-string value for "onFail" within "${engine}"`);
13517
+ throw new _p_ErrorCtor(`Invalid non-string value for "onFail" within "${engine}"`);
13518
13518
  }
13519
13519
  if (!recognizedOnFail.includes(wanted.onFail)) {
13520
- throw new Error(`Invalid onFail value "${wanted.onFail}" for "${engine}"`);
13520
+ throw new _p_ErrorCtor(`Invalid onFail value "${wanted.onFail}" for "${engine}"`);
13521
13521
  }
13522
13522
  }
13523
13523
  if (wanted.name !== current.name) {
13524
- return new Error(
13524
+ return new _p_ErrorCtor(
13525
13525
  `Invalid name "${wanted.name}" does not match "${current.name}" for "${engine}"`
13526
13526
  );
13527
13527
  }
13528
13528
  if (properties.includes("version")) {
13529
13529
  if (typeof wanted.version !== "string") {
13530
- throw new Error(`Invalid non-string value for "version" within "${engine}"`);
13530
+ throw new _p_ErrorCtor(`Invalid non-string value for "version" within "${engine}"`);
13531
13531
  }
13532
13532
  if (typeof current.version !== "string" || current.version === "") {
13533
- throw new Error(`Unable to determine "version" for "${engine}" "${wanted.name}"`);
13533
+ throw new _p_ErrorCtor(`Unable to determine "version" for "${engine}" "${wanted.name}"`);
13534
13534
  }
13535
13535
  if (validRange(wanted.version)) {
13536
13536
  if (!satisfies(current.version, wanted.version, opts.semver)) {
13537
- return new Error(
13537
+ return new _p_ErrorCtor(
13538
13538
  // eslint-disable-next-line max-len
13539
13539
  `Invalid semver version "${wanted.version}" does not match "${current.version}" for "${engine}"`
13540
13540
  );
13541
13541
  }
13542
13542
  } else if (wanted.version !== current.version) {
13543
- return new Error(
13543
+ return new _p_ErrorCtor(
13544
13544
  `Invalid version "${wanted.version}" does not match "${current.version}" for "${engine}"`
13545
13545
  );
13546
13546
  }
@@ -13548,13 +13548,13 @@ var require_dev_engines = __commonJS({
13548
13548
  }
13549
13549
  __name(checkDependency, "checkDependency");
13550
13550
  function checkDevEngines(wanted, current = {}, opts = {}) {
13551
- if (typeof wanted !== "object" || wanted === null || Array.isArray(wanted)) {
13552
- throw new Error(`Invalid non-object value for "devEngines"`);
13551
+ if (typeof wanted !== "object" || wanted === null || _p_ArrayIsArray(wanted)) {
13552
+ throw new _p_ErrorCtor(`Invalid non-object value for "devEngines"`);
13553
13553
  }
13554
13554
  const errors = [];
13555
- for (const engine of Object.keys(wanted)) {
13555
+ for (const engine of _p_ObjectKeys(wanted)) {
13556
13556
  if (!recognizedEngines.includes(engine)) {
13557
- throw new Error(`Invalid property "devEngines.${engine}"`);
13557
+ throw new _p_ErrorCtor(`Invalid property "devEngines.${engine}"`);
13558
13558
  }
13559
13559
  const dependencyAsAuthored = wanted[engine];
13560
13560
  const dependencies = [dependencyAsAuthored].flat();
@@ -13576,7 +13576,7 @@ var require_dev_engines = __commonJS({
13576
13576
  if (onFail === "download") {
13577
13577
  onFail = "error";
13578
13578
  }
13579
- const err = Object.assign(new Error(`Invalid devEngines.${engine}`), {
13579
+ const err = _p_ObjectAssign(new _p_ErrorCtor(`Invalid devEngines.${engine}`), {
13580
13580
  errors: depErrors,
13581
13581
  engine,
13582
13582
  isWarn: onFail === "warn",
@@ -13612,7 +13612,7 @@ var require_lib7 = __commonJS({
13612
13612
  const nodeFail = nodev && eng.node && !semver2.satisfies(nodev, eng.node, opt);
13613
13613
  const npmFail = npmVer && eng.npm && !semver2.satisfies(npmVer, eng.npm, opt);
13614
13614
  if (nodeFail || npmFail) {
13615
- throw Object.assign(new Error("Unsupported engine"), {
13615
+ throw _p_ObjectAssign(new _p_ErrorCtor("Unsupported engine"), {
13616
13616
  pkgid: target._id,
13617
13617
  current: { node: nodeVer, npm: npmVer },
13618
13618
  required: eng,
@@ -13634,7 +13634,7 @@ var require_lib7 = __commonJS({
13634
13634
  libcOk = false;
13635
13635
  }
13636
13636
  if (!osOk || !cpuOk || !libcOk) {
13637
- throw Object.assign(new Error("Unsupported platform"), {
13637
+ throw _p_ObjectAssign(new _p_ErrorCtor("Unsupported platform"), {
13638
13638
  pkgid: target._id,
13639
13639
  current: {
13640
13640
  os: os2,
@@ -13686,7 +13686,7 @@ var require_lib7 = __commonJS({
13686
13686
  var require_lib8 = __commonJS({
13687
13687
  "node_modules/.pnpm/npm-normalize-package-bin@5.0.0/node_modules/npm-normalize-package-bin/lib/index.js"(exports2, module2) {
13688
13688
  var { join, basename } = require("path");
13689
- var normalize = /* @__PURE__ */ __name((pkg) => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === "string" ? normalizeString(pkg) : Array.isArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === "object" ? normalizeObject(pkg) : removeBin(pkg), "normalize");
13689
+ var normalize = /* @__PURE__ */ __name((pkg) => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === "string" ? normalizeString(pkg) : _p_ArrayIsArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === "object" ? normalizeObject(pkg) : removeBin(pkg), "normalize");
13690
13690
  var normalizeString = /* @__PURE__ */ __name((pkg) => {
13691
13691
  if (!pkg.name) {
13692
13692
  return removeBin(pkg);
@@ -13709,7 +13709,7 @@ var require_lib8 = __commonJS({
13709
13709
  const orig = pkg.bin;
13710
13710
  const clean = {};
13711
13711
  let hasBins = false;
13712
- Object.keys(orig).forEach((binKey) => {
13712
+ _p_ObjectKeys(orig).forEach((binKey) => {
13713
13713
  const base = join("/", basename(binKey.replace(/\\|:/g, "/"))).slice(1);
13714
13714
  if (typeof orig[binKey] !== "string" || !base) {
13715
13715
  return;
@@ -13748,7 +13748,7 @@ var require_lib9 = __commonJS({
13748
13748
  return false;
13749
13749
  }
13750
13750
  }, "engineOk");
13751
- var isBefore = /* @__PURE__ */ __name((verTimes, ver, time) => !verTimes || !verTimes[ver] || Date.parse(verTimes[ver]) <= time, "isBefore");
13751
+ var isBefore = /* @__PURE__ */ __name((verTimes, ver, time) => !verTimes || !verTimes[ver] || _p_DateParse(verTimes[ver]) <= time, "isBefore");
13752
13752
  var avoidSemverOpt = { includePrerelease: true, loose: true };
13753
13753
  var shouldAvoid = /* @__PURE__ */ __name((ver, avoid) => avoid && semver2.satisfies(ver, avoid, avoidSemverOpt), "shouldAvoid");
13754
13754
  var decorateAvoid = /* @__PURE__ */ __name((result, avoid) => result && shouldAvoid(result.version, avoid) ? { ...result, _shouldAvoid: true } : result, "decorateAvoid");
@@ -13789,7 +13789,7 @@ var require_lib9 = __commonJS({
13789
13789
  _isSemVerMajor: true
13790
13790
  };
13791
13791
  }
13792
- throw Object.assign(new Error(`No avoidable versions for ${name}`), {
13792
+ throw _p_ObjectAssign(new _p_ErrorCtor(`No avoidable versions for ${name}`), {
13793
13793
  code: "ETARGET",
13794
13794
  name,
13795
13795
  wanted,
@@ -13800,12 +13800,12 @@ var require_lib9 = __commonJS({
13800
13800
  }
13801
13801
  const staged = includeStaged && packument.stagedVersions && packument.stagedVersions.versions || {};
13802
13802
  const restricted = packument.policyRestrictions && packument.policyRestrictions.versions || {};
13803
- const time = before && verTimes ? +new Date(before) : Infinity;
13803
+ const time = before && verTimes ? +new _p_DateCtor(before) : Infinity;
13804
13804
  const spec = npa.resolve(name, wanted || defaultTag);
13805
13805
  const type = spec.type;
13806
13806
  const distTags = packument["dist-tags"] || {};
13807
13807
  if (type !== "tag" && type !== "version" && type !== "range") {
13808
- throw new Error("Only tag, version, and range are supported");
13808
+ throw new _p_ErrorCtor("Only tag, version, and range are supported");
13809
13809
  }
13810
13810
  if (wanted && type === "tag") {
13811
13811
  const ver = distTags[wanted];
@@ -13829,9 +13829,9 @@ var require_lib9 = __commonJS({
13829
13829
  return mani;
13830
13830
  }
13831
13831
  }
13832
- const allEntries = Object.entries(versions).concat(Object.entries(staged)).concat(Object.entries(restricted)).filter(([ver]) => isBefore(verTimes, ver, time));
13832
+ const allEntries = _p_ObjectEntries(versions).concat(_p_ObjectEntries(staged)).concat(_p_ObjectEntries(restricted)).filter(([ver]) => isBefore(verTimes, ver, time));
13833
13833
  if (!allEntries.length) {
13834
- throw Object.assign(new Error(`No versions available for ${name}`), {
13834
+ throw _p_ObjectAssign(new _p_ErrorCtor(`No versions available for ${name}`), {
13835
13835
  code: "ENOVERSIONS",
13836
13836
  name,
13837
13837
  type,
@@ -13867,7 +13867,7 @@ var require_lib9 = __commonJS({
13867
13867
  return picked;
13868
13868
  }
13869
13869
  const { before = null, defaultTag = "latest" } = opts;
13870
- const bstr = before ? new Date(before).toLocaleString() : "";
13870
+ const bstr = before ? new _p_DateCtor(before).toLocaleString() : "";
13871
13871
  const { name } = packument;
13872
13872
  const pckg = `${name}@${wanted}` + (before ? ` with a date before ${bstr}` : "");
13873
13873
  const isForbidden = picked && !!restricted[picked.version];
@@ -13875,7 +13875,7 @@ var require_lib9 = __commonJS({
13875
13875
  const msg = !isForbidden ? `No matching version found for ${pckg}.` : `Could not download ${pckg} due to policy violations:
13876
13876
  ${polMsg}`;
13877
13877
  const code = isForbidden ? "E403" : "ETARGET";
13878
- throw Object.assign(new Error(msg), {
13878
+ throw _p_ObjectAssign(new _p_ErrorCtor(msg), {
13879
13879
  code,
13880
13880
  type: npa.resolve(packument.name, wanted).type,
13881
13881
  wanted,
@@ -16735,13 +16735,13 @@ function pMapIterable(iterable, mapper, {
16735
16735
  throw new _p_TypeErrorCtor(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof iterable})`);
16736
16736
  }
16737
16737
  if (typeof mapper !== "function") {
16738
- throw new TypeError("Mapper function is required");
16738
+ throw new _p_TypeErrorCtor("Mapper function is required");
16739
16739
  }
16740
- if (!(Number.isSafeInteger(concurrency) && concurrency >= 1 || concurrency === Number.POSITIVE_INFINITY)) {
16741
- throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
16740
+ if (!(_p_NumberIsSafeInteger(concurrency) && concurrency >= 1 || concurrency === Number.POSITIVE_INFINITY)) {
16741
+ throw new _p_TypeErrorCtor(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
16742
16742
  }
16743
- if (!(Number.isSafeInteger(backpressure) && backpressure >= concurrency || backpressure === Number.POSITIVE_INFINITY)) {
16744
- throw new TypeError(`Expected \`backpressure\` to be an integer from \`concurrency\` (${concurrency}) and up or \`Infinity\`, got \`${backpressure}\` (${typeof backpressure})`);
16743
+ if (!(_p_NumberIsSafeInteger(backpressure) && backpressure >= concurrency || backpressure === Number.POSITIVE_INFINITY)) {
16744
+ throw new _p_TypeErrorCtor(`Expected \`backpressure\` to be an integer from \`concurrency\` (${concurrency}) and up or \`Infinity\`, got \`${backpressure}\` (${typeof backpressure})`);
16745
16745
  }
16746
16746
  return {
16747
16747
  async *[Symbol.asyncIterator]() {
@@ -27453,7 +27453,7 @@ function envForceColor() {
27453
27453
  if (env.FORCE_COLOR.length === 0) {
27454
27454
  return 1;
27455
27455
  }
27456
- const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
27456
+ const level = _p_MathMin(Number.parseInt(env.FORCE_COLOR, 10), 3);
27457
27457
  if (![0, 1, 2, 3].includes(level)) {
27458
27458
  return;
27459
27459
  }
@@ -27529,7 +27529,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
27529
27529
  return 3;
27530
27530
  }
27531
27531
  if ("TERM_PROGRAM" in env) {
27532
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
27532
+ const version = _p_NumberParseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
27533
27533
  switch (env.TERM_PROGRAM) {
27534
27534
  case "iTerm.app": {
27535
27535
  return version >= 3 ? 3 : 2;