@simon_he/pi 0.0.72 → 0.0.73

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 (3) hide show
  1. package/dist/index.cjs +149 -637
  2. package/dist/index.js +163 -651
  3. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -62,11 +62,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
62
62
  }
63
63
  });
64
64
 
65
- // node_modules/picocolors/picocolors.js
65
+ // node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors/picocolors.js
66
66
  var require_picocolors = __commonJS({
67
- "node_modules/picocolors/picocolors.js"(exports, module) {
68
- var tty3 = __require("tty");
69
- var isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty3.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env);
67
+ "node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors/picocolors.js"(exports, module) {
68
+ var tty2 = __require("tty");
69
+ var isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty2.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env);
70
70
  var formatter = (open, close, replace = open) => (input) => {
71
71
  let string = "" + input;
72
72
  let index = string.indexOf(close, open.length);
@@ -111,9 +111,9 @@ var require_picocolors = __commonJS({
111
111
  }
112
112
  });
113
113
 
114
- // node_modules/restore-cursor/node_modules/onetime/node_modules/mimic-fn/index.js
114
+ // node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js
115
115
  var require_mimic_fn = __commonJS({
116
- "node_modules/restore-cursor/node_modules/onetime/node_modules/mimic-fn/index.js"(exports, module) {
116
+ "node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports, module) {
117
117
  "use strict";
118
118
  var mimicFn = (to, from) => {
119
119
  for (const prop of Reflect.ownKeys(from)) {
@@ -126,9 +126,9 @@ var require_mimic_fn = __commonJS({
126
126
  }
127
127
  });
128
128
 
129
- // node_modules/restore-cursor/node_modules/onetime/index.js
129
+ // node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js
130
130
  var require_onetime = __commonJS({
131
- "node_modules/restore-cursor/node_modules/onetime/index.js"(exports, module) {
131
+ "node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports, module) {
132
132
  "use strict";
133
133
  var mimicFn = require_mimic_fn();
134
134
  var calledFunctions = /* @__PURE__ */ new WeakMap();
@@ -164,9 +164,9 @@ var require_onetime = __commonJS({
164
164
  }
165
165
  });
166
166
 
167
- // node_modules/signal-exit/signals.js
167
+ // node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js
168
168
  var require_signals = __commonJS({
169
- "node_modules/signal-exit/signals.js"(exports, module) {
169
+ "node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports, module) {
170
170
  module.exports = [
171
171
  "SIGABRT",
172
172
  "SIGALRM",
@@ -201,14 +201,14 @@ var require_signals = __commonJS({
201
201
  }
202
202
  });
203
203
 
204
- // node_modules/signal-exit/index.js
204
+ // node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
205
205
  var require_signal_exit = __commonJS({
206
- "node_modules/signal-exit/index.js"(exports, module) {
207
- var process12 = global.process;
208
- var processOk = function(process13) {
209
- return process13 && typeof process13 === "object" && typeof process13.removeListener === "function" && typeof process13.emit === "function" && typeof process13.reallyExit === "function" && typeof process13.listeners === "function" && typeof process13.kill === "function" && typeof process13.pid === "number" && typeof process13.on === "function";
206
+ "node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module) {
207
+ var process11 = global.process;
208
+ var processOk = function(process12) {
209
+ return process12 && typeof process12 === "object" && typeof process12.removeListener === "function" && typeof process12.emit === "function" && typeof process12.reallyExit === "function" && typeof process12.listeners === "function" && typeof process12.kill === "function" && typeof process12.pid === "number" && typeof process12.on === "function";
210
210
  };
211
- if (!processOk(process12)) {
211
+ if (!processOk(process11)) {
212
212
  module.exports = function() {
213
213
  return function() {
214
214
  };
@@ -216,15 +216,15 @@ var require_signal_exit = __commonJS({
216
216
  } else {
217
217
  assert = __require("assert");
218
218
  signals = require_signals();
219
- isWin2 = /^win/i.test(process12.platform);
219
+ isWin2 = /^win/i.test(process11.platform);
220
220
  EE = __require("events");
221
221
  if (typeof EE !== "function") {
222
222
  EE = EE.EventEmitter;
223
223
  }
224
- if (process12.__signal_exit_emitter__) {
225
- emitter = process12.__signal_exit_emitter__;
224
+ if (process11.__signal_exit_emitter__) {
225
+ emitter = process11.__signal_exit_emitter__;
226
226
  } else {
227
- emitter = process12.__signal_exit_emitter__ = new EE();
227
+ emitter = process11.__signal_exit_emitter__ = new EE();
228
228
  emitter.count = 0;
229
229
  emitter.emitted = {};
230
230
  }
@@ -261,12 +261,12 @@ var require_signal_exit = __commonJS({
261
261
  loaded = false;
262
262
  signals.forEach(function(sig) {
263
263
  try {
264
- process12.removeListener(sig, sigListeners[sig]);
264
+ process11.removeListener(sig, sigListeners[sig]);
265
265
  } catch (er) {
266
266
  }
267
267
  });
268
- process12.emit = originalProcessEmit;
269
- process12.reallyExit = originalProcessReallyExit;
268
+ process11.emit = originalProcessEmit;
269
+ process11.reallyExit = originalProcessReallyExit;
270
270
  emitter.count -= 1;
271
271
  };
272
272
  module.exports.unload = unload;
@@ -283,7 +283,7 @@ var require_signal_exit = __commonJS({
283
283
  if (!processOk(global.process)) {
284
284
  return;
285
285
  }
286
- var listeners = process12.listeners(sig);
286
+ var listeners = process11.listeners(sig);
287
287
  if (listeners.length === emitter.count) {
288
288
  unload();
289
289
  emit("exit", null, sig);
@@ -291,7 +291,7 @@ var require_signal_exit = __commonJS({
291
291
  if (isWin2 && sig === "SIGHUP") {
292
292
  sig = "SIGINT";
293
293
  }
294
- process12.kill(process12.pid, sig);
294
+ process11.kill(process11.pid, sig);
295
295
  }
296
296
  };
297
297
  });
@@ -307,36 +307,36 @@ var require_signal_exit = __commonJS({
307
307
  emitter.count += 1;
308
308
  signals = signals.filter(function(sig) {
309
309
  try {
310
- process12.on(sig, sigListeners[sig]);
310
+ process11.on(sig, sigListeners[sig]);
311
311
  return true;
312
312
  } catch (er) {
313
313
  return false;
314
314
  }
315
315
  });
316
- process12.emit = processEmit;
317
- process12.reallyExit = processReallyExit;
316
+ process11.emit = processEmit;
317
+ process11.reallyExit = processReallyExit;
318
318
  };
319
319
  module.exports.load = load;
320
- originalProcessReallyExit = process12.reallyExit;
320
+ originalProcessReallyExit = process11.reallyExit;
321
321
  processReallyExit = function processReallyExit2(code) {
322
322
  if (!processOk(global.process)) {
323
323
  return;
324
324
  }
325
- process12.exitCode = code || /* istanbul ignore next */
325
+ process11.exitCode = code || /* istanbul ignore next */
326
326
  0;
327
- emit("exit", process12.exitCode, null);
328
- emit("afterexit", process12.exitCode, null);
329
- originalProcessReallyExit.call(process12, process12.exitCode);
327
+ emit("exit", process11.exitCode, null);
328
+ emit("afterexit", process11.exitCode, null);
329
+ originalProcessReallyExit.call(process11, process11.exitCode);
330
330
  };
331
- originalProcessEmit = process12.emit;
331
+ originalProcessEmit = process11.emit;
332
332
  processEmit = function processEmit2(ev, arg) {
333
333
  if (ev === "exit" && processOk(global.process)) {
334
334
  if (arg !== void 0) {
335
- process12.exitCode = arg;
335
+ process11.exitCode = arg;
336
336
  }
337
337
  var ret = originalProcessEmit.apply(this, arguments);
338
- emit("exit", process12.exitCode, null);
339
- emit("afterexit", process12.exitCode, null);
338
+ emit("exit", process11.exitCode, null);
339
+ emit("afterexit", process11.exitCode, null);
340
340
  return ret;
341
341
  } else {
342
342
  return originalProcessEmit.apply(this, arguments);
@@ -360,9 +360,9 @@ var require_signal_exit = __commonJS({
360
360
  }
361
361
  });
362
362
 
363
- // node_modules/cli-spinners/spinners.json
363
+ // node_modules/.pnpm/cli-spinners@2.9.1/node_modules/cli-spinners/spinners.json
364
364
  var require_spinners = __commonJS({
365
- "node_modules/cli-spinners/spinners.json"(exports, module) {
365
+ "node_modules/.pnpm/cli-spinners@2.9.1/node_modules/cli-spinners/spinners.json"(exports, module) {
366
366
  module.exports = {
367
367
  dots: {
368
368
  interval: 80,
@@ -1357,6 +1357,7 @@ var require_spinners = __commonJS({
1357
1357
  "[= ]",
1358
1358
  "[== ]",
1359
1359
  "[=== ]",
1360
+ "[====]",
1360
1361
  "[ ===]",
1361
1362
  "[ ==]",
1362
1363
  "[ =]",
@@ -1987,9 +1988,9 @@ var require_spinners = __commonJS({
1987
1988
  }
1988
1989
  });
1989
1990
 
1990
- // node_modules/cli-spinners/index.js
1991
+ // node_modules/.pnpm/cli-spinners@2.9.1/node_modules/cli-spinners/index.js
1991
1992
  var require_cli_spinners = __commonJS({
1992
- "node_modules/cli-spinners/index.js"(exports, module) {
1993
+ "node_modules/.pnpm/cli-spinners@2.9.1/node_modules/cli-spinners/index.js"(exports, module) {
1993
1994
  "use strict";
1994
1995
  var spinners = Object.assign({}, require_spinners());
1995
1996
  var spinnersList = Object.keys(spinners);
@@ -2004,9 +2005,9 @@ var require_cli_spinners = __commonJS({
2004
2005
  }
2005
2006
  });
2006
2007
 
2007
- // node_modules/clone/clone.js
2008
+ // node_modules/.pnpm/clone@1.0.4/node_modules/clone/clone.js
2008
2009
  var require_clone = __commonJS({
2009
- "node_modules/clone/clone.js"(exports, module) {
2010
+ "node_modules/.pnpm/clone@1.0.4/node_modules/clone/clone.js"(exports, module) {
2010
2011
  var clone = function() {
2011
2012
  "use strict";
2012
2013
  function clone2(parent, circular, depth, prototype) {
@@ -2030,7 +2031,7 @@ var require_clone = __commonJS({
2030
2031
  if (depth2 == 0)
2031
2032
  return parent2;
2032
2033
  var child;
2033
- var proto3;
2034
+ var proto2;
2034
2035
  if (typeof parent2 != "object") {
2035
2036
  return parent2;
2036
2037
  }
@@ -2052,11 +2053,11 @@ var require_clone = __commonJS({
2052
2053
  return child;
2053
2054
  } else {
2054
2055
  if (typeof prototype == "undefined") {
2055
- proto3 = Object.getPrototypeOf(parent2);
2056
- child = Object.create(proto3);
2056
+ proto2 = Object.getPrototypeOf(parent2);
2057
+ child = Object.create(proto2);
2057
2058
  } else {
2058
2059
  child = Object.create(prototype);
2059
- proto3 = prototype;
2060
+ proto2 = prototype;
2060
2061
  }
2061
2062
  }
2062
2063
  if (circular) {
@@ -2069,8 +2070,8 @@ var require_clone = __commonJS({
2069
2070
  }
2070
2071
  for (var i in parent2) {
2071
2072
  var attrs;
2072
- if (proto3) {
2073
- attrs = Object.getOwnPropertyDescriptor(proto3, i);
2073
+ if (proto2) {
2074
+ attrs = Object.getOwnPropertyDescriptor(proto2, i);
2074
2075
  }
2075
2076
  if (attrs && attrs.set == null) {
2076
2077
  continue;
@@ -2129,9 +2130,9 @@ var require_clone = __commonJS({
2129
2130
  }
2130
2131
  });
2131
2132
 
2132
- // node_modules/defaults/index.js
2133
+ // node_modules/.pnpm/defaults@1.0.4/node_modules/defaults/index.js
2133
2134
  var require_defaults = __commonJS({
2134
- "node_modules/defaults/index.js"(exports, module) {
2135
+ "node_modules/.pnpm/defaults@1.0.4/node_modules/defaults/index.js"(exports, module) {
2135
2136
  var clone = require_clone();
2136
2137
  module.exports = function(options, defaults) {
2137
2138
  options = options || {};
@@ -2145,9 +2146,9 @@ var require_defaults = __commonJS({
2145
2146
  }
2146
2147
  });
2147
2148
 
2148
- // node_modules/wcwidth/combining.js
2149
+ // node_modules/.pnpm/wcwidth@1.0.1/node_modules/wcwidth/combining.js
2149
2150
  var require_combining = __commonJS({
2150
- "node_modules/wcwidth/combining.js"(exports, module) {
2151
+ "node_modules/.pnpm/wcwidth@1.0.1/node_modules/wcwidth/combining.js"(exports, module) {
2151
2152
  module.exports = [
2152
2153
  [768, 879],
2153
2154
  [1155, 1158],
@@ -2295,9 +2296,9 @@ var require_combining = __commonJS({
2295
2296
  }
2296
2297
  });
2297
2298
 
2298
- // node_modules/wcwidth/index.js
2299
+ // node_modules/.pnpm/wcwidth@1.0.1/node_modules/wcwidth/index.js
2299
2300
  var require_wcwidth = __commonJS({
2300
- "node_modules/wcwidth/index.js"(exports, module) {
2301
+ "node_modules/.pnpm/wcwidth@1.0.1/node_modules/wcwidth/index.js"(exports, module) {
2301
2302
  "use strict";
2302
2303
  var defaults = require_defaults();
2303
2304
  var combining = require_combining();
@@ -2362,16 +2363,16 @@ var require_wcwidth = __commonJS({
2362
2363
  }
2363
2364
  });
2364
2365
 
2365
- // node_modules/readable-stream/lib/internal/streams/stream.js
2366
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/stream.js
2366
2367
  var require_stream = __commonJS({
2367
- "node_modules/readable-stream/lib/internal/streams/stream.js"(exports, module) {
2368
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/stream.js"(exports, module) {
2368
2369
  module.exports = __require("stream");
2369
2370
  }
2370
2371
  });
2371
2372
 
2372
- // node_modules/readable-stream/lib/internal/streams/buffer_list.js
2373
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/buffer_list.js
2373
2374
  var require_buffer_list = __commonJS({
2374
- "node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports, module) {
2375
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports, module) {
2375
2376
  "use strict";
2376
2377
  function ownKeys(object, enumerableOnly) {
2377
2378
  var keys = Object.keys(object);
@@ -2631,9 +2632,9 @@ var require_buffer_list = __commonJS({
2631
2632
  }
2632
2633
  });
2633
2634
 
2634
- // node_modules/readable-stream/lib/internal/streams/destroy.js
2635
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/destroy.js
2635
2636
  var require_destroy = __commonJS({
2636
- "node_modules/readable-stream/lib/internal/streams/destroy.js"(exports, module) {
2637
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports, module) {
2637
2638
  "use strict";
2638
2639
  function destroy(err, cb) {
2639
2640
  var _this = this;
@@ -2724,9 +2725,9 @@ var require_destroy = __commonJS({
2724
2725
  }
2725
2726
  });
2726
2727
 
2727
- // node_modules/readable-stream/errors.js
2728
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors.js
2728
2729
  var require_errors = __commonJS({
2729
- "node_modules/readable-stream/errors.js"(exports, module) {
2730
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors.js"(exports, module) {
2730
2731
  "use strict";
2731
2732
  var codes = {};
2732
2733
  function createErrorType(code, message, Base) {
@@ -2824,9 +2825,9 @@ var require_errors = __commonJS({
2824
2825
  }
2825
2826
  });
2826
2827
 
2827
- // node_modules/readable-stream/lib/internal/streams/state.js
2828
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/state.js
2828
2829
  var require_state = __commonJS({
2829
- "node_modules/readable-stream/lib/internal/streams/state.js"(exports, module) {
2830
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/state.js"(exports, module) {
2830
2831
  "use strict";
2831
2832
  var ERR_INVALID_OPT_VALUE = require_errors().codes.ERR_INVALID_OPT_VALUE;
2832
2833
  function highWaterMarkFrom(options, isDuplex, duplexKey) {
@@ -2849,9 +2850,9 @@ var require_state = __commonJS({
2849
2850
  }
2850
2851
  });
2851
2852
 
2852
- // node_modules/inherits/inherits_browser.js
2853
+ // node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js
2853
2854
  var require_inherits_browser = __commonJS({
2854
- "node_modules/inherits/inherits_browser.js"(exports, module) {
2855
+ "node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(exports, module) {
2855
2856
  if (typeof Object.create === "function") {
2856
2857
  module.exports = function inherits(ctor, superCtor) {
2857
2858
  if (superCtor) {
@@ -2881,9 +2882,9 @@ var require_inherits_browser = __commonJS({
2881
2882
  }
2882
2883
  });
2883
2884
 
2884
- // node_modules/inherits/inherits.js
2885
+ // node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js
2885
2886
  var require_inherits = __commonJS({
2886
- "node_modules/inherits/inherits.js"(exports, module) {
2887
+ "node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(exports, module) {
2887
2888
  try {
2888
2889
  util = __require("util");
2889
2890
  if (typeof util.inherits !== "function")
@@ -2896,16 +2897,16 @@ var require_inherits = __commonJS({
2896
2897
  }
2897
2898
  });
2898
2899
 
2899
- // node_modules/util-deprecate/node.js
2900
+ // node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js
2900
2901
  var require_node = __commonJS({
2901
- "node_modules/util-deprecate/node.js"(exports, module) {
2902
+ "node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js"(exports, module) {
2902
2903
  module.exports = __require("util").deprecate;
2903
2904
  }
2904
2905
  });
2905
2906
 
2906
- // node_modules/readable-stream/lib/_stream_writable.js
2907
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_writable.js
2907
2908
  var require_stream_writable = __commonJS({
2908
- "node_modules/readable-stream/lib/_stream_writable.js"(exports, module) {
2909
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_writable.js"(exports, module) {
2909
2910
  "use strict";
2910
2911
  module.exports = Writable;
2911
2912
  function CorkedRequest(state) {
@@ -3403,9 +3404,9 @@ var require_stream_writable = __commonJS({
3403
3404
  }
3404
3405
  });
3405
3406
 
3406
- // node_modules/readable-stream/lib/_stream_duplex.js
3407
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_duplex.js
3407
3408
  var require_stream_duplex = __commonJS({
3408
- "node_modules/readable-stream/lib/_stream_duplex.js"(exports, module) {
3409
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_duplex.js"(exports, module) {
3409
3410
  "use strict";
3410
3411
  var objectKeys = Object.keys || function(obj) {
3411
3412
  var keys2 = [];
@@ -3502,9 +3503,9 @@ var require_stream_duplex = __commonJS({
3502
3503
  }
3503
3504
  });
3504
3505
 
3505
- // node_modules/safe-buffer/index.js
3506
+ // node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js
3506
3507
  var require_safe_buffer = __commonJS({
3507
- "node_modules/safe-buffer/index.js"(exports, module) {
3508
+ "node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js"(exports, module) {
3508
3509
  var buffer = __require("buffer");
3509
3510
  var Buffer2 = buffer.Buffer;
3510
3511
  function copyProps(src, dst) {
@@ -3560,9 +3561,9 @@ var require_safe_buffer = __commonJS({
3560
3561
  }
3561
3562
  });
3562
3563
 
3563
- // node_modules/string_decoder/lib/string_decoder.js
3564
+ // node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.js
3564
3565
  var require_string_decoder = __commonJS({
3565
- "node_modules/string_decoder/lib/string_decoder.js"(exports) {
3566
+ "node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.js"(exports) {
3566
3567
  "use strict";
3567
3568
  var Buffer2 = require_safe_buffer().Buffer;
3568
3569
  var isEncoding = Buffer2.isEncoding || function(encoding) {
@@ -3820,9 +3821,9 @@ var require_string_decoder = __commonJS({
3820
3821
  }
3821
3822
  });
3822
3823
 
3823
- // node_modules/readable-stream/lib/internal/streams/end-of-stream.js
3824
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
3824
3825
  var require_end_of_stream = __commonJS({
3825
- "node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports, module) {
3826
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports, module) {
3826
3827
  "use strict";
3827
3828
  var ERR_STREAM_PREMATURE_CLOSE = require_errors().codes.ERR_STREAM_PREMATURE_CLOSE;
3828
3829
  function once(callback) {
@@ -3921,9 +3922,9 @@ var require_end_of_stream = __commonJS({
3921
3922
  }
3922
3923
  });
3923
3924
 
3924
- // node_modules/readable-stream/lib/internal/streams/async_iterator.js
3925
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/async_iterator.js
3925
3926
  var require_async_iterator = __commonJS({
3926
- "node_modules/readable-stream/lib/internal/streams/async_iterator.js"(exports, module) {
3927
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/async_iterator.js"(exports, module) {
3927
3928
  "use strict";
3928
3929
  var _Object$setPrototypeO;
3929
3930
  function _defineProperty(obj, key, value) {
@@ -4106,9 +4107,9 @@ var require_async_iterator = __commonJS({
4106
4107
  }
4107
4108
  });
4108
4109
 
4109
- // node_modules/readable-stream/lib/internal/streams/from.js
4110
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/from.js
4110
4111
  var require_from = __commonJS({
4111
- "node_modules/readable-stream/lib/internal/streams/from.js"(exports, module) {
4112
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/from.js"(exports, module) {
4112
4113
  "use strict";
4113
4114
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
4114
4115
  try {
@@ -4232,9 +4233,9 @@ var require_from = __commonJS({
4232
4233
  }
4233
4234
  });
4234
4235
 
4235
- // node_modules/readable-stream/lib/_stream_readable.js
4236
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_readable.js
4236
4237
  var require_stream_readable = __commonJS({
4237
- "node_modules/readable-stream/lib/_stream_readable.js"(exports, module) {
4238
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_readable.js"(exports, module) {
4238
4239
  "use strict";
4239
4240
  module.exports = Readable;
4240
4241
  var Duplex;
@@ -5028,9 +5029,9 @@ var require_stream_readable = __commonJS({
5028
5029
  }
5029
5030
  });
5030
5031
 
5031
- // node_modules/readable-stream/lib/_stream_transform.js
5032
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_transform.js
5032
5033
  var require_stream_transform = __commonJS({
5033
- "node_modules/readable-stream/lib/_stream_transform.js"(exports, module) {
5034
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_transform.js"(exports, module) {
5034
5035
  "use strict";
5035
5036
  module.exports = Transform;
5036
5037
  var _require$codes = require_errors().codes;
@@ -5136,9 +5137,9 @@ var require_stream_transform = __commonJS({
5136
5137
  }
5137
5138
  });
5138
5139
 
5139
- // node_modules/readable-stream/lib/_stream_passthrough.js
5140
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_passthrough.js
5140
5141
  var require_stream_passthrough = __commonJS({
5141
- "node_modules/readable-stream/lib/_stream_passthrough.js"(exports, module) {
5142
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_passthrough.js"(exports, module) {
5142
5143
  "use strict";
5143
5144
  module.exports = PassThrough;
5144
5145
  var Transform = require_stream_transform();
@@ -5154,9 +5155,9 @@ var require_stream_passthrough = __commonJS({
5154
5155
  }
5155
5156
  });
5156
5157
 
5157
- // node_modules/readable-stream/lib/internal/streams/pipeline.js
5158
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/pipeline.js
5158
5159
  var require_pipeline = __commonJS({
5159
- "node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports, module) {
5160
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports, module) {
5160
5161
  "use strict";
5161
5162
  var eos;
5162
5163
  function once(callback) {
@@ -5253,9 +5254,9 @@ var require_pipeline = __commonJS({
5253
5254
  }
5254
5255
  });
5255
5256
 
5256
- // node_modules/readable-stream/readable.js
5257
+ // node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/readable.js
5257
5258
  var require_readable = __commonJS({
5258
- "node_modules/readable-stream/readable.js"(exports, module) {
5259
+ "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/readable.js"(exports, module) {
5259
5260
  var Stream = __require("stream");
5260
5261
  if (process.env.READABLE_STREAM === "disable" && Stream) {
5261
5262
  module.exports = Stream.Readable;
@@ -5275,9 +5276,9 @@ var require_readable = __commonJS({
5275
5276
  }
5276
5277
  });
5277
5278
 
5278
- // node_modules/bl/BufferList.js
5279
+ // node_modules/.pnpm/bl@5.1.0/node_modules/bl/BufferList.js
5279
5280
  var require_BufferList = __commonJS({
5280
- "node_modules/bl/BufferList.js"(exports, module) {
5281
+ "node_modules/.pnpm/bl@5.1.0/node_modules/bl/BufferList.js"(exports, module) {
5281
5282
  "use strict";
5282
5283
  var { Buffer: Buffer2 } = __require("buffer");
5283
5284
  var symbol = Symbol.for("BufferList");
@@ -5579,9 +5580,9 @@ var require_BufferList = __commonJS({
5579
5580
  }
5580
5581
  });
5581
5582
 
5582
- // node_modules/bl/bl.js
5583
+ // node_modules/.pnpm/bl@5.1.0/node_modules/bl/bl.js
5583
5584
  var require_bl = __commonJS({
5584
- "node_modules/bl/bl.js"(exports, module) {
5585
+ "node_modules/.pnpm/bl@5.1.0/node_modules/bl/bl.js"(exports, module) {
5585
5586
  "use strict";
5586
5587
  var DuplexStream = require_readable().Duplex;
5587
5588
  var inherits = require_inherits();
@@ -5652,7 +5653,7 @@ var require_bl = __commonJS({
5652
5653
 
5653
5654
  // src/index.ts
5654
5655
  var import_picocolors6 = __toESM(require_picocolors(), 1);
5655
- import process11 from "process";
5656
+ import process10 from "process";
5656
5657
  import {
5657
5658
  hasPkg,
5658
5659
  isGo,
@@ -5668,10 +5669,10 @@ import fg from "fast-glob";
5668
5669
  import path from "path";
5669
5670
  import { getPkg, getPkgTool, isFile, jsShell } from "lazy-js-utils";
5670
5671
 
5671
- // node_modules/ora/index.js
5672
- import process8 from "process";
5672
+ // node_modules/.pnpm/ora@6.3.1/node_modules/ora/index.js
5673
+ import process7 from "process";
5673
5674
 
5674
- // node_modules/ora/node_modules/chalk/source/vendor/ansi-styles/index.js
5675
+ // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/ansi-styles/index.js
5675
5676
  var ANSI_BACKGROUND_OFFSET = 10;
5676
5677
  var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
5677
5678
  var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
@@ -5857,7 +5858,7 @@ function assembleStyles() {
5857
5858
  var ansiStyles = assembleStyles();
5858
5859
  var ansi_styles_default = ansiStyles;
5859
5860
 
5860
- // node_modules/ora/node_modules/chalk/source/vendor/supports-color/index.js
5861
+ // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/supports-color/index.js
5861
5862
  import process2 from "process";
5862
5863
  import os from "os";
5863
5864
  import tty from "tty";
@@ -5983,7 +5984,7 @@ var supportsColor = {
5983
5984
  };
5984
5985
  var supports_color_default = supportsColor;
5985
5986
 
5986
- // node_modules/ora/node_modules/chalk/source/utilities.js
5987
+ // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/utilities.js
5987
5988
  function stringReplaceAll(string, substring, replacer) {
5988
5989
  let index = string.indexOf(substring);
5989
5990
  if (index === -1) {
@@ -6013,7 +6014,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
6013
6014
  return returnValue;
6014
6015
  }
6015
6016
 
6016
- // node_modules/ora/node_modules/chalk/source/index.js
6017
+ // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js
6017
6018
  var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
6018
6019
  var GENERATOR = Symbol("GENERATOR");
6019
6020
  var STYLER = Symbol("STYLER");
@@ -6033,10 +6034,10 @@ var applyOptions = (object, options = {}) => {
6033
6034
  object.level = options.level === void 0 ? colorLevel : options.level;
6034
6035
  };
6035
6036
  var chalkFactory = (options) => {
6036
- const chalk3 = (...strings) => strings.join(" ");
6037
- applyOptions(chalk3, options);
6038
- Object.setPrototypeOf(chalk3, createChalk.prototype);
6039
- return chalk3;
6037
+ const chalk2 = (...strings) => strings.join(" ");
6038
+ applyOptions(chalk2, options);
6039
+ Object.setPrototypeOf(chalk2, createChalk.prototype);
6040
+ return chalk2;
6040
6041
  };
6041
6042
  function createChalk(options) {
6042
6043
  return chalkFactory(options);
@@ -6160,10 +6161,10 @@ var chalk = createChalk();
6160
6161
  var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
6161
6162
  var source_default = chalk;
6162
6163
 
6163
- // node_modules/cli-cursor/index.js
6164
+ // node_modules/.pnpm/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
6164
6165
  import process4 from "process";
6165
6166
 
6166
- // node_modules/restore-cursor/index.js
6167
+ // node_modules/.pnpm/restore-cursor@4.0.0/node_modules/restore-cursor/index.js
6167
6168
  var import_onetime = __toESM(require_onetime(), 1);
6168
6169
  var import_signal_exit = __toESM(require_signal_exit(), 1);
6169
6170
  import process3 from "process";
@@ -6174,7 +6175,7 @@ var restoreCursor = (0, import_onetime.default)(() => {
6174
6175
  });
6175
6176
  var restore_cursor_default = restoreCursor;
6176
6177
 
6177
- // node_modules/cli-cursor/index.js
6178
+ // node_modules/.pnpm/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
6178
6179
  var isHidden = false;
6179
6180
  var cliCursor = {};
6180
6181
  cliCursor.show = (writableStream = process4.stderr) => {
@@ -6204,524 +6205,35 @@ cliCursor.toggle = (force, writableStream) => {
6204
6205
  };
6205
6206
  var cli_cursor_default = cliCursor;
6206
6207
 
6207
- // node_modules/ora/index.js
6208
+ // node_modules/.pnpm/ora@6.3.1/node_modules/ora/index.js
6208
6209
  var import_cli_spinners = __toESM(require_cli_spinners(), 1);
6209
6210
 
6210
- // node_modules/log-symbols/node_modules/chalk/source/vendor/ansi-styles/index.js
6211
- var ANSI_BACKGROUND_OFFSET2 = 10;
6212
- var wrapAnsi162 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
6213
- var wrapAnsi2562 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
6214
- var wrapAnsi16m2 = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
6215
- var styles3 = {
6216
- modifier: {
6217
- reset: [0, 0],
6218
- // 21 isn't widely supported and 22 does the same thing
6219
- bold: [1, 22],
6220
- dim: [2, 22],
6221
- italic: [3, 23],
6222
- underline: [4, 24],
6223
- overline: [53, 55],
6224
- inverse: [7, 27],
6225
- hidden: [8, 28],
6226
- strikethrough: [9, 29]
6227
- },
6228
- color: {
6229
- black: [30, 39],
6230
- red: [31, 39],
6231
- green: [32, 39],
6232
- yellow: [33, 39],
6233
- blue: [34, 39],
6234
- magenta: [35, 39],
6235
- cyan: [36, 39],
6236
- white: [37, 39],
6237
- // Bright color
6238
- blackBright: [90, 39],
6239
- gray: [90, 39],
6240
- // Alias of `blackBright`
6241
- grey: [90, 39],
6242
- // Alias of `blackBright`
6243
- redBright: [91, 39],
6244
- greenBright: [92, 39],
6245
- yellowBright: [93, 39],
6246
- blueBright: [94, 39],
6247
- magentaBright: [95, 39],
6248
- cyanBright: [96, 39],
6249
- whiteBright: [97, 39]
6250
- },
6251
- bgColor: {
6252
- bgBlack: [40, 49],
6253
- bgRed: [41, 49],
6254
- bgGreen: [42, 49],
6255
- bgYellow: [43, 49],
6256
- bgBlue: [44, 49],
6257
- bgMagenta: [45, 49],
6258
- bgCyan: [46, 49],
6259
- bgWhite: [47, 49],
6260
- // Bright color
6261
- bgBlackBright: [100, 49],
6262
- bgGray: [100, 49],
6263
- // Alias of `bgBlackBright`
6264
- bgGrey: [100, 49],
6265
- // Alias of `bgBlackBright`
6266
- bgRedBright: [101, 49],
6267
- bgGreenBright: [102, 49],
6268
- bgYellowBright: [103, 49],
6269
- bgBlueBright: [104, 49],
6270
- bgMagentaBright: [105, 49],
6271
- bgCyanBright: [106, 49],
6272
- bgWhiteBright: [107, 49]
6273
- }
6274
- };
6275
- var modifierNames2 = Object.keys(styles3.modifier);
6276
- var foregroundColorNames2 = Object.keys(styles3.color);
6277
- var backgroundColorNames2 = Object.keys(styles3.bgColor);
6278
- var colorNames2 = [...foregroundColorNames2, ...backgroundColorNames2];
6279
- function assembleStyles2() {
6280
- const codes = /* @__PURE__ */ new Map();
6281
- for (const [groupName, group] of Object.entries(styles3)) {
6282
- for (const [styleName, style] of Object.entries(group)) {
6283
- styles3[styleName] = {
6284
- open: `\x1B[${style[0]}m`,
6285
- close: `\x1B[${style[1]}m`
6286
- };
6287
- group[styleName] = styles3[styleName];
6288
- codes.set(style[0], style[1]);
6289
- }
6290
- Object.defineProperty(styles3, groupName, {
6291
- value: group,
6292
- enumerable: false
6293
- });
6294
- }
6295
- Object.defineProperty(styles3, "codes", {
6296
- value: codes,
6297
- enumerable: false
6298
- });
6299
- styles3.color.close = "\x1B[39m";
6300
- styles3.bgColor.close = "\x1B[49m";
6301
- styles3.color.ansi = wrapAnsi162();
6302
- styles3.color.ansi256 = wrapAnsi2562();
6303
- styles3.color.ansi16m = wrapAnsi16m2();
6304
- styles3.bgColor.ansi = wrapAnsi162(ANSI_BACKGROUND_OFFSET2);
6305
- styles3.bgColor.ansi256 = wrapAnsi2562(ANSI_BACKGROUND_OFFSET2);
6306
- styles3.bgColor.ansi16m = wrapAnsi16m2(ANSI_BACKGROUND_OFFSET2);
6307
- Object.defineProperties(styles3, {
6308
- rgbToAnsi256: {
6309
- value(red, green, blue) {
6310
- if (red === green && green === blue) {
6311
- if (red < 8) {
6312
- return 16;
6313
- }
6314
- if (red > 248) {
6315
- return 231;
6316
- }
6317
- return Math.round((red - 8) / 247 * 24) + 232;
6318
- }
6319
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
6320
- },
6321
- enumerable: false
6322
- },
6323
- hexToRgb: {
6324
- value(hex) {
6325
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
6326
- if (!matches) {
6327
- return [0, 0, 0];
6328
- }
6329
- let [colorString] = matches;
6330
- if (colorString.length === 3) {
6331
- colorString = [...colorString].map((character) => character + character).join("");
6332
- }
6333
- const integer = Number.parseInt(colorString, 16);
6334
- return [
6335
- /* eslint-disable no-bitwise */
6336
- integer >> 16 & 255,
6337
- integer >> 8 & 255,
6338
- integer & 255
6339
- /* eslint-enable no-bitwise */
6340
- ];
6341
- },
6342
- enumerable: false
6343
- },
6344
- hexToAnsi256: {
6345
- value: (hex) => styles3.rgbToAnsi256(...styles3.hexToRgb(hex)),
6346
- enumerable: false
6347
- },
6348
- ansi256ToAnsi: {
6349
- value(code) {
6350
- if (code < 8) {
6351
- return 30 + code;
6352
- }
6353
- if (code < 16) {
6354
- return 90 + (code - 8);
6355
- }
6356
- let red;
6357
- let green;
6358
- let blue;
6359
- if (code >= 232) {
6360
- red = ((code - 232) * 10 + 8) / 255;
6361
- green = red;
6362
- blue = red;
6363
- } else {
6364
- code -= 16;
6365
- const remainder = code % 36;
6366
- red = Math.floor(code / 36) / 5;
6367
- green = Math.floor(remainder / 6) / 5;
6368
- blue = remainder % 6 / 5;
6369
- }
6370
- const value = Math.max(red, green, blue) * 2;
6371
- if (value === 0) {
6372
- return 30;
6373
- }
6374
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
6375
- if (value === 2) {
6376
- result += 60;
6377
- }
6378
- return result;
6379
- },
6380
- enumerable: false
6381
- },
6382
- rgbToAnsi: {
6383
- value: (red, green, blue) => styles3.ansi256ToAnsi(styles3.rgbToAnsi256(red, green, blue)),
6384
- enumerable: false
6385
- },
6386
- hexToAnsi: {
6387
- value: (hex) => styles3.ansi256ToAnsi(styles3.hexToAnsi256(hex)),
6388
- enumerable: false
6389
- }
6390
- });
6391
- return styles3;
6392
- }
6393
- var ansiStyles2 = assembleStyles2();
6394
- var ansi_styles_default2 = ansiStyles2;
6395
-
6396
- // node_modules/log-symbols/node_modules/chalk/source/vendor/supports-color/index.js
6211
+ // node_modules/.pnpm/is-unicode-supported@1.3.0/node_modules/is-unicode-supported/index.js
6397
6212
  import process5 from "process";
6398
- import os2 from "os";
6399
- import tty2 from "tty";
6400
- function hasFlag2(flag, argv = globalThis.Deno ? globalThis.Deno.args : process5.argv) {
6401
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
6402
- const position = argv.indexOf(prefix + flag);
6403
- const terminatorPosition = argv.indexOf("--");
6404
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
6405
- }
6406
- var { env: env2 } = process5;
6407
- var flagForceColor2;
6408
- if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
6409
- flagForceColor2 = 0;
6410
- } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
6411
- flagForceColor2 = 1;
6412
- }
6413
- function envForceColor2() {
6414
- if ("FORCE_COLOR" in env2) {
6415
- if (env2.FORCE_COLOR === "true") {
6416
- return 1;
6417
- }
6418
- if (env2.FORCE_COLOR === "false") {
6419
- return 0;
6420
- }
6421
- return env2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
6422
- }
6423
- }
6424
- function translateLevel2(level) {
6425
- if (level === 0) {
6426
- return false;
6427
- }
6428
- return {
6429
- level,
6430
- hasBasic: true,
6431
- has256: level >= 2,
6432
- has16m: level >= 3
6433
- };
6434
- }
6435
- function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
6436
- const noFlagForceColor = envForceColor2();
6437
- if (noFlagForceColor !== void 0) {
6438
- flagForceColor2 = noFlagForceColor;
6439
- }
6440
- const forceColor = sniffFlags ? flagForceColor2 : noFlagForceColor;
6441
- if (forceColor === 0) {
6442
- return 0;
6443
- }
6444
- if (sniffFlags) {
6445
- if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
6446
- return 3;
6447
- }
6448
- if (hasFlag2("color=256")) {
6449
- return 2;
6450
- }
6451
- }
6452
- if ("TF_BUILD" in env2 && "AGENT_NAME" in env2) {
6453
- return 1;
6454
- }
6455
- if (haveStream && !streamIsTTY && forceColor === void 0) {
6456
- return 0;
6457
- }
6458
- const min = forceColor || 0;
6459
- if (env2.TERM === "dumb") {
6460
- return min;
6461
- }
6462
- if (process5.platform === "win32") {
6463
- const osRelease = os2.release().split(".");
6464
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
6465
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
6466
- }
6467
- return 1;
6468
- }
6469
- if ("CI" in env2) {
6470
- if ("GITHUB_ACTIONS" in env2 || "GITEA_ACTIONS" in env2) {
6471
- return 3;
6472
- }
6473
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
6474
- return 1;
6475
- }
6476
- return min;
6477
- }
6478
- if ("TEAMCITY_VERSION" in env2) {
6479
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
6480
- }
6481
- if (env2.COLORTERM === "truecolor") {
6482
- return 3;
6483
- }
6484
- if (env2.TERM === "xterm-kitty") {
6485
- return 3;
6486
- }
6487
- if ("TERM_PROGRAM" in env2) {
6488
- const version2 = Number.parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
6489
- switch (env2.TERM_PROGRAM) {
6490
- case "iTerm.app": {
6491
- return version2 >= 3 ? 3 : 2;
6492
- }
6493
- case "Apple_Terminal": {
6494
- return 2;
6495
- }
6496
- }
6497
- }
6498
- if (/-256(color)?$/i.test(env2.TERM)) {
6499
- return 2;
6500
- }
6501
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
6502
- return 1;
6503
- }
6504
- if ("COLORTERM" in env2) {
6505
- return 1;
6506
- }
6507
- return min;
6508
- }
6509
- function createSupportsColor2(stream, options = {}) {
6510
- const level = _supportsColor2(stream, {
6511
- streamIsTTY: stream && stream.isTTY,
6512
- ...options
6513
- });
6514
- return translateLevel2(level);
6515
- }
6516
- var supportsColor2 = {
6517
- stdout: createSupportsColor2({ isTTY: tty2.isatty(1) }),
6518
- stderr: createSupportsColor2({ isTTY: tty2.isatty(2) })
6519
- };
6520
- var supports_color_default2 = supportsColor2;
6521
-
6522
- // node_modules/log-symbols/node_modules/chalk/source/utilities.js
6523
- function stringReplaceAll2(string, substring, replacer) {
6524
- let index = string.indexOf(substring);
6525
- if (index === -1) {
6526
- return string;
6527
- }
6528
- const substringLength = substring.length;
6529
- let endIndex = 0;
6530
- let returnValue = "";
6531
- do {
6532
- returnValue += string.slice(endIndex, index) + substring + replacer;
6533
- endIndex = index + substringLength;
6534
- index = string.indexOf(substring, endIndex);
6535
- } while (index !== -1);
6536
- returnValue += string.slice(endIndex);
6537
- return returnValue;
6538
- }
6539
- function stringEncaseCRLFWithFirstIndex2(string, prefix, postfix, index) {
6540
- let endIndex = 0;
6541
- let returnValue = "";
6542
- do {
6543
- const gotCR = string[index - 1] === "\r";
6544
- returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
6545
- endIndex = index + 1;
6546
- index = string.indexOf("\n", endIndex);
6547
- } while (index !== -1);
6548
- returnValue += string.slice(endIndex);
6549
- return returnValue;
6550
- }
6551
-
6552
- // node_modules/log-symbols/node_modules/chalk/source/index.js
6553
- var { stdout: stdoutColor2, stderr: stderrColor2 } = supports_color_default2;
6554
- var GENERATOR2 = Symbol("GENERATOR");
6555
- var STYLER2 = Symbol("STYLER");
6556
- var IS_EMPTY2 = Symbol("IS_EMPTY");
6557
- var levelMapping2 = [
6558
- "ansi",
6559
- "ansi",
6560
- "ansi256",
6561
- "ansi16m"
6562
- ];
6563
- var styles4 = /* @__PURE__ */ Object.create(null);
6564
- var applyOptions2 = (object, options = {}) => {
6565
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
6566
- throw new Error("The `level` option should be an integer from 0 to 3");
6567
- }
6568
- const colorLevel = stdoutColor2 ? stdoutColor2.level : 0;
6569
- object.level = options.level === void 0 ? colorLevel : options.level;
6570
- };
6571
- var chalkFactory2 = (options) => {
6572
- const chalk3 = (...strings) => strings.join(" ");
6573
- applyOptions2(chalk3, options);
6574
- Object.setPrototypeOf(chalk3, createChalk2.prototype);
6575
- return chalk3;
6576
- };
6577
- function createChalk2(options) {
6578
- return chalkFactory2(options);
6579
- }
6580
- Object.setPrototypeOf(createChalk2.prototype, Function.prototype);
6581
- for (const [styleName, style] of Object.entries(ansi_styles_default2)) {
6582
- styles4[styleName] = {
6583
- get() {
6584
- const builder = createBuilder2(this, createStyler2(style.open, style.close, this[STYLER2]), this[IS_EMPTY2]);
6585
- Object.defineProperty(this, styleName, { value: builder });
6586
- return builder;
6587
- }
6588
- };
6589
- }
6590
- styles4.visible = {
6591
- get() {
6592
- const builder = createBuilder2(this, this[STYLER2], true);
6593
- Object.defineProperty(this, "visible", { value: builder });
6594
- return builder;
6595
- }
6596
- };
6597
- var getModelAnsi2 = (model, level, type, ...arguments_) => {
6598
- if (model === "rgb") {
6599
- if (level === "ansi16m") {
6600
- return ansi_styles_default2[type].ansi16m(...arguments_);
6601
- }
6602
- if (level === "ansi256") {
6603
- return ansi_styles_default2[type].ansi256(ansi_styles_default2.rgbToAnsi256(...arguments_));
6604
- }
6605
- return ansi_styles_default2[type].ansi(ansi_styles_default2.rgbToAnsi(...arguments_));
6606
- }
6607
- if (model === "hex") {
6608
- return getModelAnsi2("rgb", level, type, ...ansi_styles_default2.hexToRgb(...arguments_));
6609
- }
6610
- return ansi_styles_default2[type][model](...arguments_);
6611
- };
6612
- var usedModels2 = ["rgb", "hex", "ansi256"];
6613
- for (const model of usedModels2) {
6614
- styles4[model] = {
6615
- get() {
6616
- const { level } = this;
6617
- return function(...arguments_) {
6618
- const styler = createStyler2(getModelAnsi2(model, levelMapping2[level], "color", ...arguments_), ansi_styles_default2.color.close, this[STYLER2]);
6619
- return createBuilder2(this, styler, this[IS_EMPTY2]);
6620
- };
6621
- }
6622
- };
6623
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
6624
- styles4[bgModel] = {
6625
- get() {
6626
- const { level } = this;
6627
- return function(...arguments_) {
6628
- const styler = createStyler2(getModelAnsi2(model, levelMapping2[level], "bgColor", ...arguments_), ansi_styles_default2.bgColor.close, this[STYLER2]);
6629
- return createBuilder2(this, styler, this[IS_EMPTY2]);
6630
- };
6631
- }
6632
- };
6633
- }
6634
- var proto2 = Object.defineProperties(() => {
6635
- }, {
6636
- ...styles4,
6637
- level: {
6638
- enumerable: true,
6639
- get() {
6640
- return this[GENERATOR2].level;
6641
- },
6642
- set(level) {
6643
- this[GENERATOR2].level = level;
6644
- }
6645
- }
6646
- });
6647
- var createStyler2 = (open, close, parent) => {
6648
- let openAll;
6649
- let closeAll;
6650
- if (parent === void 0) {
6651
- openAll = open;
6652
- closeAll = close;
6653
- } else {
6654
- openAll = parent.openAll + open;
6655
- closeAll = close + parent.closeAll;
6656
- }
6657
- return {
6658
- open,
6659
- close,
6660
- openAll,
6661
- closeAll,
6662
- parent
6663
- };
6664
- };
6665
- var createBuilder2 = (self2, _styler, _isEmpty) => {
6666
- const builder = (...arguments_) => applyStyle2(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
6667
- Object.setPrototypeOf(builder, proto2);
6668
- builder[GENERATOR2] = self2;
6669
- builder[STYLER2] = _styler;
6670
- builder[IS_EMPTY2] = _isEmpty;
6671
- return builder;
6672
- };
6673
- var applyStyle2 = (self2, string) => {
6674
- if (self2.level <= 0 || !string) {
6675
- return self2[IS_EMPTY2] ? "" : string;
6676
- }
6677
- let styler = self2[STYLER2];
6678
- if (styler === void 0) {
6679
- return string;
6680
- }
6681
- const { openAll, closeAll } = styler;
6682
- if (string.includes("\x1B")) {
6683
- while (styler !== void 0) {
6684
- string = stringReplaceAll2(string, styler.close, styler.open);
6685
- styler = styler.parent;
6686
- }
6687
- }
6688
- const lfIndex = string.indexOf("\n");
6689
- if (lfIndex !== -1) {
6690
- string = stringEncaseCRLFWithFirstIndex2(string, closeAll, openAll, lfIndex);
6691
- }
6692
- return openAll + string + closeAll;
6693
- };
6694
- Object.defineProperties(createChalk2.prototype, styles4);
6695
- var chalk2 = createChalk2();
6696
- var chalkStderr2 = createChalk2({ level: stderrColor2 ? stderrColor2.level : 0 });
6697
- var source_default2 = chalk2;
6698
-
6699
- // node_modules/is-unicode-supported/index.js
6700
- import process6 from "process";
6701
6213
  function isUnicodeSupported() {
6702
- if (process6.platform !== "win32") {
6703
- return process6.env.TERM !== "linux";
6214
+ if (process5.platform !== "win32") {
6215
+ return process5.env.TERM !== "linux";
6704
6216
  }
6705
- return Boolean(process6.env.CI) || Boolean(process6.env.WT_SESSION) || Boolean(process6.env.TERMINUS_SUBLIME) || process6.env.ConEmuTask === "{cmd::Cmder}" || process6.env.TERM_PROGRAM === "Terminus-Sublime" || process6.env.TERM_PROGRAM === "vscode" || process6.env.TERM === "xterm-256color" || process6.env.TERM === "alacritty" || process6.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
6217
+ return Boolean(process5.env.CI) || Boolean(process5.env.WT_SESSION) || Boolean(process5.env.TERMINUS_SUBLIME) || process5.env.ConEmuTask === "{cmd::Cmder}" || process5.env.TERM_PROGRAM === "Terminus-Sublime" || process5.env.TERM_PROGRAM === "vscode" || process5.env.TERM === "xterm-256color" || process5.env.TERM === "alacritty" || process5.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
6706
6218
  }
6707
6219
 
6708
- // node_modules/log-symbols/index.js
6220
+ // node_modules/.pnpm/log-symbols@5.1.0/node_modules/log-symbols/index.js
6709
6221
  var main = {
6710
- info: source_default2.blue("\u2139"),
6711
- success: source_default2.green("\u2714"),
6712
- warning: source_default2.yellow("\u26A0"),
6713
- error: source_default2.red("\u2716")
6222
+ info: source_default.blue("\u2139"),
6223
+ success: source_default.green("\u2714"),
6224
+ warning: source_default.yellow("\u26A0"),
6225
+ error: source_default.red("\u2716")
6714
6226
  };
6715
6227
  var fallback = {
6716
- info: source_default2.blue("i"),
6717
- success: source_default2.green("\u221A"),
6718
- warning: source_default2.yellow("\u203C"),
6719
- error: source_default2.red("\xD7")
6228
+ info: source_default.blue("i"),
6229
+ success: source_default.green("\u221A"),
6230
+ warning: source_default.yellow("\u203C"),
6231
+ error: source_default.red("\xD7")
6720
6232
  };
6721
6233
  var logSymbols = isUnicodeSupported() ? main : fallback;
6722
6234
  var log_symbols_default = logSymbols;
6723
6235
 
6724
- // node_modules/ora/node_modules/strip-ansi/node_modules/ansi-regex/index.js
6236
+ // node_modules/.pnpm/ansi-regex@6.0.1/node_modules/ansi-regex/index.js
6725
6237
  function ansiRegex({ onlyFirst = false } = {}) {
6726
6238
  const pattern = [
6727
6239
  "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
@@ -6730,7 +6242,7 @@ function ansiRegex({ onlyFirst = false } = {}) {
6730
6242
  return new RegExp(pattern, onlyFirst ? void 0 : "g");
6731
6243
  }
6732
6244
 
6733
- // node_modules/ora/node_modules/strip-ansi/index.js
6245
+ // node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
6734
6246
  var regex = ansiRegex();
6735
6247
  function stripAnsi(string) {
6736
6248
  if (typeof string !== "string") {
@@ -6739,19 +6251,19 @@ function stripAnsi(string) {
6739
6251
  return string.replace(regex, "");
6740
6252
  }
6741
6253
 
6742
- // node_modules/ora/index.js
6254
+ // node_modules/.pnpm/ora@6.3.1/node_modules/ora/index.js
6743
6255
  var import_wcwidth = __toESM(require_wcwidth(), 1);
6744
6256
 
6745
- // node_modules/is-interactive/index.js
6257
+ // node_modules/.pnpm/is-interactive@2.0.0/node_modules/is-interactive/index.js
6746
6258
  function isInteractive({ stream = process.stdout } = {}) {
6747
6259
  return Boolean(
6748
6260
  stream && stream.isTTY && process.env.TERM !== "dumb" && !("CI" in process.env)
6749
6261
  );
6750
6262
  }
6751
6263
 
6752
- // node_modules/stdin-discarder/index.js
6264
+ // node_modules/.pnpm/stdin-discarder@0.1.0/node_modules/stdin-discarder/index.js
6753
6265
  var import_bl = __toESM(require_bl(), 1);
6754
- import process7 from "process";
6266
+ import process6 from "process";
6755
6267
  import readline from "readline";
6756
6268
  var ASCII_ETX_CODE = 3;
6757
6269
  var _requests, _mutedStream, _ourEmit, _rl;
@@ -6761,20 +6273,20 @@ var StdinDiscarder = class {
6761
6273
  __privateAdd(this, _mutedStream, new import_bl.BufferListStream());
6762
6274
  __privateAdd(this, _ourEmit, void 0);
6763
6275
  __privateAdd(this, _rl, void 0);
6764
- __privateGet(this, _mutedStream).pipe(process7.stdout);
6276
+ __privateGet(this, _mutedStream).pipe(process6.stdout);
6765
6277
  const self2 = this;
6766
6278
  __privateSet(this, _ourEmit, function(event, data, ...arguments_) {
6767
- const { stdin } = process7;
6279
+ const { stdin } = process6;
6768
6280
  if (__privateGet(self2, _requests) > 0 || stdin.emit === __privateGet(self2, _ourEmit)) {
6769
6281
  if (event === "keypress") {
6770
6282
  return;
6771
6283
  }
6772
6284
  if (event === "data" && data.includes(ASCII_ETX_CODE)) {
6773
- process7.emit("SIGINT");
6285
+ process6.emit("SIGINT");
6774
6286
  }
6775
6287
  Reflect.apply(__privateGet(self2, _ourEmit), this, [event, data, ...arguments_]);
6776
6288
  } else {
6777
- Reflect.apply(process7.stdin.emit, this, [event, data, ...arguments_]);
6289
+ Reflect.apply(process6.stdin.emit, this, [event, data, ...arguments_]);
6778
6290
  }
6779
6291
  });
6780
6292
  }
@@ -6795,24 +6307,24 @@ var StdinDiscarder = class {
6795
6307
  }
6796
6308
  // TODO: Use private methods when targeting Node.js 14.
6797
6309
  _realStart() {
6798
- if (process7.platform === "win32") {
6310
+ if (process6.platform === "win32") {
6799
6311
  return;
6800
6312
  }
6801
6313
  __privateSet(this, _rl, readline.createInterface({
6802
- input: process7.stdin,
6314
+ input: process6.stdin,
6803
6315
  output: __privateGet(this, _mutedStream)
6804
6316
  }));
6805
6317
  __privateGet(this, _rl).on("SIGINT", () => {
6806
- if (process7.listenerCount("SIGINT") === 0) {
6807
- process7.emit("SIGINT");
6318
+ if (process6.listenerCount("SIGINT") === 0) {
6319
+ process6.emit("SIGINT");
6808
6320
  } else {
6809
6321
  __privateGet(this, _rl).close();
6810
- process7.kill(process7.pid, "SIGINT");
6322
+ process6.kill(process6.pid, "SIGINT");
6811
6323
  }
6812
6324
  });
6813
6325
  }
6814
6326
  _realStop() {
6815
- if (process7.platform === "win32") {
6327
+ if (process6.platform === "win32") {
6816
6328
  return;
6817
6329
  }
6818
6330
  __privateGet(this, _rl).close();
@@ -6826,7 +6338,7 @@ _rl = new WeakMap();
6826
6338
  var stdinDiscarder = new StdinDiscarder();
6827
6339
  var stdin_discarder_default = stdinDiscarder;
6828
6340
 
6829
- // node_modules/ora/index.js
6341
+ // node_modules/.pnpm/ora@6.3.1/node_modules/ora/index.js
6830
6342
  var import_cli_spinners2 = __toESM(require_cli_spinners(), 1);
6831
6343
  var _linesToClear, _isDiscardingStdin, _lineCount, _frameIndex, _options, _spinner, _stream, _id, _initialInterval, _isEnabled, _isSilent, _indent, _text, _prefixText, _suffixText;
6832
6344
  var Ora = class {
@@ -6854,7 +6366,7 @@ var Ora = class {
6854
6366
  }
6855
6367
  __privateSet(this, _options, {
6856
6368
  color: "cyan",
6857
- stream: process8.stderr,
6369
+ stream: process7.stderr,
6858
6370
  discardStdin: true,
6859
6371
  hideCursor: true,
6860
6372
  ...options
@@ -6869,7 +6381,7 @@ var Ora = class {
6869
6381
  this.prefixText = __privateGet(this, _options).prefixText;
6870
6382
  this.suffixText = __privateGet(this, _options).suffixText;
6871
6383
  this.indent = __privateGet(this, _options).indent;
6872
- if (process8.env.NODE_ENV === "test") {
6384
+ if (process7.env.NODE_ENV === "test") {
6873
6385
  this._stream = __privateGet(this, _stream);
6874
6386
  this._isEnabled = __privateGet(this, _isEnabled);
6875
6387
  Object.defineProperty(this, "_linesToClear", {
@@ -7056,7 +6568,7 @@ var Ora = class {
7056
6568
  if (__privateGet(this, _options).hideCursor) {
7057
6569
  cli_cursor_default.hide(__privateGet(this, _stream));
7058
6570
  }
7059
- if (__privateGet(this, _options).discardStdin && process8.stdin.isTTY) {
6571
+ if (__privateGet(this, _options).discardStdin && process7.stdin.isTTY) {
7060
6572
  __privateSet(this, _isDiscardingStdin, true);
7061
6573
  stdin_discarder_default.start();
7062
6574
  }
@@ -7075,7 +6587,7 @@ var Ora = class {
7075
6587
  if (__privateGet(this, _options).hideCursor) {
7076
6588
  cli_cursor_default.show(__privateGet(this, _stream));
7077
6589
  }
7078
- if (__privateGet(this, _options).discardStdin && process8.stdin.isTTY && __privateGet(this, _isDiscardingStdin)) {
6590
+ if (__privateGet(this, _options).discardStdin && process7.stdin.isTTY && __privateGet(this, _isDiscardingStdin)) {
7079
6591
  stdin_discarder_default.stop();
7080
6592
  __privateSet(this, _isDiscardingStdin, false);
7081
6593
  }
@@ -7233,7 +6745,7 @@ function getLatestVersion(pkg) {
7233
6745
  import { jsShell as jsShell2 } from "lazy-js-utils";
7234
6746
 
7235
6747
  // package.json
7236
- var version = "0.0.72";
6748
+ var version = "0.0.73";
7237
6749
 
7238
6750
  // src/help.ts
7239
6751
  var isZh2 = process.env.PI_Lang === "zh";
@@ -7289,9 +6801,9 @@ async function installDeps() {
7289
6801
 
7290
6802
  // src/pi.ts
7291
6803
  var import_picocolors3 = __toESM(require_picocolors(), 1);
7292
- import process9 from "process";
6804
+ import process8 from "process";
7293
6805
  import { getPkgTool as getPkgTool2, jsShell as jsShell4, useNodeWorker } from "lazy-js-utils";
7294
- var isZh3 = process9.env.PI_Lang === "zh";
6806
+ var isZh3 = process8.env.PI_Lang === "zh";
7295
6807
  async function pi(params, pkg, executor = "ni") {
7296
6808
  const text = pkg ? `Installing ${pkg} ...` : "Updating dependency ...";
7297
6809
  const isLatest = executor === "pil";
@@ -7307,7 +6819,7 @@ async function pi(params, pkg, executor = "ni") {
7307
6819
  const newParams = isLatest ? params : await getParams(params);
7308
6820
  let stdio = "pipe";
7309
6821
  let loading_status;
7310
- const { PI_DEFAULT, PI_MaxSockets: sockets } = process9.env;
6822
+ const { PI_DEFAULT, PI_MaxSockets: sockets } = process8.env;
7311
6823
  const pkgTool = await getPkgTool2();
7312
6824
  const maxSockets = sockets || 4;
7313
6825
  const install = PI_DEFAULT === "yarn" || pkgTool === "yarn" ? newParams ? "add" : "" : "install";
@@ -7351,7 +6863,7 @@ ${result}` : failMsg));
7351
6863
  jsShell4(`pi ${dep}@latest`);
7352
6864
  }
7353
6865
  }
7354
- process9.exit();
6866
+ process8.exit();
7355
6867
  }
7356
6868
 
7357
6869
  // src/pa.ts
@@ -7465,7 +6977,7 @@ ${result}` : failMsg));
7465
6977
 
7466
6978
  // src/pio.ts
7467
6979
  var import_picocolors5 = __toESM(require_picocolors(), 1);
7468
- import process10 from "process";
6980
+ import process9 from "process";
7469
6981
  import { useNodeWorker as useNodeWorker3 } from "lazy-js-utils";
7470
6982
  async function pio(params, pkg, executor = "ni") {
7471
6983
  const successMsg = pkg ? `Installed ${pkg} successfully! \u{1F60A}` : "Updated dependency successfully! \u{1F60A}";
@@ -7483,11 +6995,11 @@ async function pio(params, pkg, executor = "ni") {
7483
6995
  loading_status.fail(import_picocolors5.default.red(result ? `${result}
7484
6996
 
7485
6997
  ${failMsg}` : failMsg));
7486
- process10.exit();
6998
+ process9.exit();
7487
6999
  }
7488
7000
 
7489
7001
  // src/index.ts
7490
- var rootPath = process11.cwd();
7002
+ var rootPath = process10.cwd();
7491
7003
  var runMap = {
7492
7004
  pi,
7493
7005
  pix,
@@ -7501,9 +7013,9 @@ var runMap = {
7501
7013
  pfind,
7502
7014
  pio
7503
7015
  };
7504
- var isZh5 = process11.env.PI_Lang === "zh";
7016
+ var isZh5 = process10.env.PI_Lang === "zh";
7505
7017
  async function setup() {
7506
- const cmd = process11.argv[1];
7018
+ const cmd = process10.argv[1];
7507
7019
  let exec = "";
7508
7020
  if (isWin()) {
7509
7021
  const last = cmd.lastIndexOf("\\") + 1;
@@ -7512,7 +7024,7 @@ async function setup() {
7512
7024
  const last = cmd.lastIndexOf("/") + 1;
7513
7025
  exec = cmd.slice(last, cmd.length);
7514
7026
  }
7515
- const argv = process11.argv.slice(2);
7027
+ const argv = process10.argv.slice(2);
7516
7028
  help(argv);
7517
7029
  const params = spaceFormat(argv.join(" ")).trim();
7518
7030
  if (!hasPkg(rootPath)) {
@@ -7552,7 +7064,7 @@ async function setup() {
7552
7064
  const target = (await fg(match))[0];
7553
7065
  if (!target) {
7554
7066
  console.log(import_picocolors6.default.red("No such file"));
7555
- process11.exit(1);
7067
+ process10.exit(1);
7556
7068
  }
7557
7069
  jsShell10(`go run ${target}`);
7558
7070
  } else if (exec === "pinit") {
@@ -7566,7 +7078,7 @@ async function setup() {
7566
7078
  )
7567
7079
  );
7568
7080
  }
7569
- process11.exit();
7081
+ process10.exit();
7570
7082
  }
7571
7083
  if (isRust()) {
7572
7084
  if (exec === "pi") {
@@ -7612,7 +7124,7 @@ async function setup() {
7612
7124
  )
7613
7125
  );
7614
7126
  }
7615
- process11.exit();
7127
+ process10.exit();
7616
7128
  }
7617
7129
  if (!runMap[exec]) {
7618
7130
  console.log(