create-tamagui 1.97.0 → 1.98.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1007,8 +1007,8 @@ var require_source = __commonJS({
1007
1007
  // ../../node_modules/commander/index.js
1008
1008
  var require_commander = __commonJS({
1009
1009
  "../../node_modules/commander/index.js"(exports2, module2) {
1010
- var EventEmitter2 = require("events").EventEmitter, spawn2 = require("child_process").spawn, path6 = require("path"), dirname = path6.dirname, basename2 = path6.basename, fs7 = require("fs");
1011
- require("util").inherits(Command, EventEmitter2);
1010
+ var EventEmitter3 = require("events").EventEmitter, spawn2 = require("child_process").spawn, path6 = require("path"), dirname = path6.dirname, basename2 = path6.basename, fs7 = require("fs");
1011
+ require("util").inherits(Command, EventEmitter3);
1012
1012
  exports2 = module2.exports = new Command();
1013
1013
  exports2.Command = Command;
1014
1014
  exports2.Option = Option;
@@ -1100,16 +1100,16 @@ var require_commander = __commonJS({
1100
1100
  baseDir = dirname(resolvedLink);
1101
1101
  var localBin = path6.join(baseDir, bin), isExplicitJS = !1;
1102
1102
  exists(localBin + ".js") ? (bin = localBin + ".js", isExplicitJS = !0) : exists(localBin + ".ts") ? (bin = localBin + ".ts", isExplicitJS = !0) : exists(localBin) && (bin = localBin), args = args.slice(1);
1103
- var proc2;
1104
- process.platform !== "win32" ? isExplicitJS ? (args.unshift(bin), args = (process.execArgv || []).concat(args), proc2 = spawn2(process.argv[0], args, { stdio: "inherit", customFds: [0, 1, 2] })) : proc2 = spawn2(bin, args, { stdio: "inherit", customFds: [0, 1, 2] }) : (args.unshift(bin), proc2 = spawn2(process.execPath, args, { stdio: "inherit" }));
1103
+ var proc3;
1104
+ process.platform !== "win32" ? isExplicitJS ? (args.unshift(bin), args = (process.execArgv || []).concat(args), proc3 = spawn2(process.argv[0], args, { stdio: "inherit", customFds: [0, 1, 2] })) : proc3 = spawn2(bin, args, { stdio: "inherit", customFds: [0, 1, 2] }) : (args.unshift(bin), proc3 = spawn2(process.execPath, args, { stdio: "inherit" }));
1105
1105
  var signals = ["SIGUSR1", "SIGUSR2", "SIGTERM", "SIGINT", "SIGHUP"];
1106
1106
  signals.forEach(function(signal) {
1107
1107
  process.on(signal, function() {
1108
- proc2.killed === !1 && proc2.exitCode === null && proc2.kill(signal);
1108
+ proc3.killed === !1 && proc3.exitCode === null && proc3.kill(signal);
1109
1109
  });
1110
- }), proc2.on("close", process.exit.bind(process)), proc2.on("error", function(err) {
1110
+ }), proc3.on("close", process.exit.bind(process)), proc3.on("error", function(err) {
1111
1111
  err.code === "ENOENT" ? console.error("error: %s(1) does not exist, try --help", bin) : err.code === "EACCES" && console.error("error: %s(1) not executable. try chmod or run with root", bin), process.exit(1);
1112
- }), this.runningCommand = proc2;
1112
+ }), this.runningCommand = proc3;
1113
1113
  };
1114
1114
  Command.prototype.normalize = function(args) {
1115
1115
  for (var ret = [], arg, lastOpt, index, i = 0, len = args.length; i < len; ++i)
@@ -2356,12 +2356,12 @@ var require_kill = __commonJS({
2356
2356
  var require_is_stream = __commonJS({
2357
2357
  "../../node_modules/is-stream/index.js"(exports2, module2) {
2358
2358
  "use strict";
2359
- var isStream2 = (stream2) => stream2 !== null && typeof stream2 == "object" && typeof stream2.pipe == "function";
2360
- isStream2.writable = (stream2) => isStream2(stream2) && stream2.writable !== !1 && typeof stream2._write == "function" && typeof stream2._writableState == "object";
2361
- isStream2.readable = (stream2) => isStream2(stream2) && stream2.readable !== !1 && typeof stream2._read == "function" && typeof stream2._readableState == "object";
2362
- isStream2.duplex = (stream2) => isStream2.writable(stream2) && isStream2.readable(stream2);
2363
- isStream2.transform = (stream2) => isStream2.duplex(stream2) && typeof stream2._transform == "function";
2364
- module2.exports = isStream2;
2359
+ var isStream3 = (stream2) => stream2 !== null && typeof stream2 == "object" && typeof stream2.pipe == "function";
2360
+ isStream3.writable = (stream2) => isStream3(stream2) && stream2.writable !== !1 && typeof stream2._write == "function" && typeof stream2._writableState == "object";
2361
+ isStream3.readable = (stream2) => isStream3(stream2) && stream2.readable !== !1 && typeof stream2._read == "function" && typeof stream2._readableState == "object";
2362
+ isStream3.duplex = (stream2) => isStream3.writable(stream2) && isStream3.readable(stream2);
2363
+ isStream3.transform = (stream2) => isStream3.duplex(stream2) && typeof stream2._transform == "function";
2364
+ module2.exports = isStream3;
2365
2365
  }
2366
2366
  });
2367
2367
 
@@ -2450,8 +2450,8 @@ var require_merge_stream = __commonJS({
2450
2450
  var require_stream = __commonJS({
2451
2451
  "../../node_modules/execa/lib/stream.js"(exports2, module2) {
2452
2452
  "use strict";
2453
- var isStream2 = require_is_stream(), getStream = require_get_stream(), mergeStream = require_merge_stream(), handleInput = (spawned, input) => {
2454
- input === void 0 || spawned.stdin === void 0 || (isStream2(input) ? input.pipe(spawned.stdin) : spawned.stdin.end(input));
2453
+ var isStream3 = require_is_stream(), getStream = require_get_stream(), mergeStream = require_merge_stream(), handleInput = (spawned, input) => {
2454
+ input === void 0 || spawned.stdin === void 0 || (isStream3(input) ? input.pipe(spawned.stdin) : spawned.stdin.end(input));
2455
2455
  }, makeAllStream = (spawned, { all }) => {
2456
2456
  if (!all || !spawned.stdout && !spawned.stderr)
2457
2457
  return;
@@ -2482,7 +2482,7 @@ var require_stream = __commonJS({
2482
2482
  ]);
2483
2483
  }
2484
2484
  }, validateInputSync = ({ input }) => {
2485
- if (isStream2(input))
2485
+ if (isStream3(input))
2486
2486
  throw new TypeError("The `input` option cannot be a stream in sync mode");
2487
2487
  };
2488
2488
  module2.exports = {
@@ -2937,7 +2937,7 @@ var require_polyfills = __commonJS({
2937
2937
  // ../../node_modules/graceful-fs/legacy-streams.js
2938
2938
  var require_legacy_streams = __commonJS({
2939
2939
  "../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
2940
- var Stream2 = require("stream").Stream;
2940
+ var Stream3 = require("stream").Stream;
2941
2941
  module2.exports = legacy;
2942
2942
  function legacy(fs7) {
2943
2943
  return {
@@ -2947,7 +2947,7 @@ var require_legacy_streams = __commonJS({
2947
2947
  function ReadStream(path6, options) {
2948
2948
  if (!(this instanceof ReadStream))
2949
2949
  return new ReadStream(path6, options);
2950
- Stream2.call(this);
2950
+ Stream3.call(this);
2951
2951
  var self = this;
2952
2952
  this.path = path6, this.fd = null, this.readable = !0, this.paused = !1, this.flags = "r", this.mode = 438, this.bufferSize = 64 * 1024, options = options || {};
2953
2953
  for (var keys = Object.keys(options), index = 0, length = keys.length; index < length; index++) {
@@ -2982,7 +2982,7 @@ var require_legacy_streams = __commonJS({
2982
2982
  function WriteStream(path6, options) {
2983
2983
  if (!(this instanceof WriteStream))
2984
2984
  return new WriteStream(path6, options);
2985
- Stream2.call(this), this.path = path6, this.fd = null, this.writable = !0, this.flags = "w", this.encoding = "binary", this.mode = 438, this.bytesWritten = 0, options = options || {};
2985
+ Stream3.call(this), this.path = path6, this.fd = null, this.writable = !0, this.flags = "w", this.encoding = "binary", this.mode = 438, this.bytesWritten = 0, options = options || {};
2986
2986
  for (var keys = Object.keys(options), index = 0, length = keys.length; index < length; index++) {
2987
2987
  var key = keys[index];
2988
2988
  this[key] = options[key];
@@ -4075,8 +4075,8 @@ var require_utils2 = __commonJS({
4075
4075
  "../../node_modules/jsonfile/utils.js"(exports2, module2) {
4076
4076
  function stringify(obj, { EOL = `
4077
4077
  `, finalEOL = !0, replacer = null, spaces } = {}) {
4078
- let EOF2 = finalEOL ? EOL : "";
4079
- return JSON.stringify(obj, replacer, spaces).replace(/\n/g, EOL) + EOF2;
4078
+ let EOF3 = finalEOL ? EOL : "";
4079
+ return JSON.stringify(obj, replacer, spaces).replace(/\n/g, EOL) + EOF3;
4080
4080
  }
4081
4081
  function stripBom(content) {
4082
4082
  return Buffer.isBuffer(content) && (content = content.toString("utf8")), content.replace(/^\uFEFF/, "");
@@ -4617,7 +4617,7 @@ var require_util2 = __commonJS({
4617
4617
  var require_prompt = __commonJS({
4618
4618
  "../../node_modules/prompts/dist/elements/prompt.js"(exports2, module2) {
4619
4619
  "use strict";
4620
- var readline = require("readline"), _require = require_util2(), action = _require.action, EventEmitter2 = require("events"), _require2 = require_src(), beep = _require2.beep, cursor = _require2.cursor, color = require_kleur(), Prompt = class extends EventEmitter2 {
4620
+ var readline = require("readline"), _require = require_util2(), action = _require.action, EventEmitter3 = require("events"), _require2 = require_src(), beep = _require2.beep, cursor = _require2.cursor, color = require_kleur(), Prompt = class extends EventEmitter3 {
4621
4621
  constructor(opts = {}) {
4622
4622
  super(), this.firstRender = !0, this.in = opts.in || process.stdin, this.out = opts.out || process.stdout, this.onRender = (opts.onRender || (() => {
4623
4623
  })).bind(this);
@@ -6163,7 +6163,7 @@ var require_util3 = __commonJS({
6163
6163
  var require_prompt2 = __commonJS({
6164
6164
  "../../node_modules/prompts/lib/elements/prompt.js"(exports2, module2) {
6165
6165
  "use strict";
6166
- var readline = require("readline"), { action } = require_util3(), EventEmitter2 = require("events"), { beep, cursor } = require_src(), color = require_kleur(), Prompt = class extends EventEmitter2 {
6166
+ var readline = require("readline"), { action } = require_util3(), EventEmitter3 = require("events"), { beep, cursor } = require_src(), color = require_kleur(), Prompt = class extends EventEmitter3 {
6167
6167
  constructor(opts = {}) {
6168
6168
  super(), this.firstRender = !0, this.in = opts.in || process.stdin, this.out = opts.out || process.stdout, this.onRender = (opts.onRender || (() => {
6169
6169
  })).bind(this);
@@ -7490,7 +7490,7 @@ var require_lib3 = __commonJS({
7490
7490
  // ../../node_modules/through/index.js
7491
7491
  var require_through = __commonJS({
7492
7492
  "../../node_modules/through/index.js"(exports2, module2) {
7493
- var Stream2 = require("stream");
7493
+ var Stream3 = require("stream");
7494
7494
  exports2 = module2.exports = through;
7495
7495
  through.through = through;
7496
7496
  function through(write, end, opts) {
@@ -7499,7 +7499,7 @@ var require_through = __commonJS({
7499
7499
  }, end = end || function() {
7500
7500
  this.queue(null);
7501
7501
  };
7502
- var ended = !1, destroyed = !1, buffer = [], _ended = !1, stream2 = new Stream2();
7502
+ var ended = !1, destroyed = !1, buffer = [], _ended = !1, stream2 = new Stream3();
7503
7503
  stream2.readable = stream2.writable = !0, stream2.paused = !1, stream2.autoDestroy = !(opts && opts.autoDestroy === !1), stream2.write = function(data) {
7504
7504
  return write.call(this, data), !stream2.paused;
7505
7505
  };
@@ -7541,7 +7541,7 @@ var require_through = __commonJS({
7541
7541
  var require_from = __commonJS({
7542
7542
  "../../node_modules/from/index.js"(exports2, module2) {
7543
7543
  "use strict";
7544
- var Stream2 = require("stream");
7544
+ var Stream3 = require("stream");
7545
7545
  module2.exports = function from(source) {
7546
7546
  if (Array.isArray(source)) {
7547
7547
  var source_index = 0, source_len = source.length;
@@ -7549,7 +7549,7 @@ var require_from = __commonJS({
7549
7549
  return source_index < source_len ? this.emit("data", source[source_index++]) : this.emit("end"), !0;
7550
7550
  });
7551
7551
  }
7552
- var s = new Stream2(), i = 0;
7552
+ var s = new Stream3(), i = 0;
7553
7553
  s.ended = !1, s.started = !1, s.readable = !0, s.writable = !1, s.paused = !1, s.ended = !1, s.pause = function() {
7554
7554
  s.started = !0, s.paused = !0;
7555
7555
  };
@@ -7576,7 +7576,7 @@ var require_from = __commonJS({
7576
7576
  // ../../node_modules/duplexer/index.js
7577
7577
  var require_duplexer = __commonJS({
7578
7578
  "../../node_modules/duplexer/index.js"(exports2, module2) {
7579
- var Stream2 = require("stream"), writeMethods = ["write", "end", "destroy"], readMethods = ["resume", "pause"], readEvents = ["data", "close"], slice = Array.prototype.slice;
7579
+ var Stream3 = require("stream"), writeMethods = ["write", "end", "destroy"], readMethods = ["resume", "pause"], readEvents = ["data", "close"], slice = Array.prototype.slice;
7580
7580
  module2.exports = duplex;
7581
7581
  function forEach(arr, fn) {
7582
7582
  if (arr.forEach)
@@ -7585,7 +7585,7 @@ var require_duplexer = __commonJS({
7585
7585
  fn(arr[i], i);
7586
7586
  }
7587
7587
  function duplex(writer, reader) {
7588
- var stream2 = new Stream2(), ended = !1;
7588
+ var stream2 = new Stream3(), ended = !1;
7589
7589
  return forEach(writeMethods, proxyWriter), forEach(readMethods, proxyReader), forEach(readEvents, proxyStream), reader.on("end", handleEnd), writer.on("drain", function() {
7590
7590
  stream2.emit("drain");
7591
7591
  }), writer.on("error", reemit), reader.on("error", reemit), stream2.writable = writer.writable, stream2.readable = reader.readable, stream2;
@@ -7629,9 +7629,9 @@ var require_duplexer = __commonJS({
7629
7629
  // ../../node_modules/map-stream/index.js
7630
7630
  var require_map_stream = __commonJS({
7631
7631
  "../../node_modules/map-stream/index.js"(exports2, module2) {
7632
- var Stream2 = require("stream").Stream;
7632
+ var Stream3 = require("stream").Stream;
7633
7633
  module2.exports = function(mapper, opts) {
7634
- var stream2 = new Stream2(), self = this, inputs = 0, outputs = 0, ended = !1, paused = !1, destroyed = !1, lastWritten = 0, inNext = !1;
7634
+ var stream2 = new Stream3(), self = this, inputs = 0, outputs = 0, ended = !1, paused = !1, destroyed = !1, lastWritten = 0, inNext = !1;
7635
7635
  this.opts = opts || {};
7636
7636
  var errorEventName = this.opts.failures ? "failure" : "error", writeQueue = {};
7637
7637
  stream2.writable = !0, stream2.readable = !0;
@@ -7691,9 +7691,9 @@ var require_pause_stream = __commonJS({
7691
7691
  }
7692
7692
  });
7693
7693
 
7694
- // ../../node_modules/split/index.js
7694
+ // ../../node_modules/event-stream/node_modules/split/index.js
7695
7695
  var require_split = __commonJS({
7696
- "../../node_modules/split/index.js"(exports2, module2) {
7696
+ "../../node_modules/event-stream/node_modules/split/index.js"(exports2, module2) {
7697
7697
  var through = require_through(), Decoder = require("string_decoder").StringDecoder;
7698
7698
  module2.exports = split;
7699
7699
  function split(matcher, mapper, options) {
@@ -7758,8 +7758,8 @@ var require_stream_combiner = __commonJS({
7758
7758
  // ../../node_modules/event-stream/index.js
7759
7759
  var require_event_stream = __commonJS({
7760
7760
  "../../node_modules/event-stream/index.js"(exports2) {
7761
- var Stream2 = require("stream").Stream, es = exports2, through = require_through(), from = require_from(), duplex = require_duplexer(), map = require_map_stream(), pause = require_pause_stream(), split = require_split(), pipeline = require_stream_combiner(), immediately = global.setImmediate || process.nextTick;
7762
- es.Stream = Stream2;
7761
+ var Stream3 = require("stream").Stream, es = exports2, through = require_through(), from = require_from(), duplex = require_duplexer(), map = require_map_stream(), pause = require_pause_stream(), split = require_split(), pipeline = require_stream_combiner(), immediately = global.setImmediate || process.nextTick;
7762
+ es.Stream = Stream3;
7763
7763
  es.through = through;
7764
7764
  es.from = from;
7765
7765
  es.duplex = duplex;
@@ -7771,7 +7771,7 @@ var require_event_stream = __commonJS({
7771
7771
  es.merge = function() {
7772
7772
  var toMerge = [].slice.call(arguments);
7773
7773
  toMerge.length === 1 && toMerge[0] instanceof Array && (toMerge = toMerge[0]);
7774
- var stream2 = new Stream2();
7774
+ var stream2 = new Stream3();
7775
7775
  stream2.setMaxListeners(0);
7776
7776
  var endCount = 0;
7777
7777
  return stream2.writable = stream2.readable = !0, toMerge.length ? toMerge.forEach(function(e) {
@@ -7793,7 +7793,7 @@ var require_event_stream = __commonJS({
7793
7793
  es.writeArray = function(done) {
7794
7794
  if (typeof done != "function")
7795
7795
  throw new Error("function writeArray (done): done must be function");
7796
- var a = new Stream2(), array = [], isDone = !1;
7796
+ var a = new Stream3(), array = [], isDone = !1;
7797
7797
  return a.write = function(l) {
7798
7798
  array.push(l);
7799
7799
  }, a.end = function() {
@@ -7803,7 +7803,7 @@ var require_event_stream = __commonJS({
7803
7803
  }, a;
7804
7804
  };
7805
7805
  es.readArray = function(array) {
7806
- var stream2 = new Stream2(), i = 0, paused = !1, ended = !1;
7806
+ var stream2 = new Stream3(), i = 0, paused = !1, ended = !1;
7807
7807
  if (stream2.readable = !0, stream2.writable = !1, !Array.isArray(array))
7808
7808
  throw new Error("event-stream.read expects an array");
7809
7809
  return stream2.resume = function() {
@@ -7820,7 +7820,7 @@ var require_event_stream = __commonJS({
7820
7820
  }, stream2;
7821
7821
  };
7822
7822
  es.readable = function(func, continueOnError) {
7823
- var stream2 = new Stream2(), i = 0, paused = !1, ended = !1, reading = !1;
7823
+ var stream2 = new Stream3(), i = 0, paused = !1, ended = !1, reading = !1;
7824
7824
  if (stream2.readable = !0, stream2.writable = !1, typeof func != "function")
7825
7825
  throw new Error("event-stream.readable expects async function");
7826
7826
  stream2.on("end", function() {
@@ -7939,8 +7939,8 @@ var require_ps_tree = __commonJS({
7939
7939
  }),
7940
7940
  es.writeArray(function(err, ps) {
7941
7941
  var parents = {}, children = [];
7942
- parents[pid] = !0, ps.forEach(function(proc2) {
7943
- parents[proc2.PPID] && (parents[proc2.PID] = !0, children.push(proc2));
7942
+ parents[pid] = !0, ps.forEach(function(proc3) {
7943
+ parents[proc3.PPID] && (parents[proc3.PID] = !0, children.push(proc3));
7944
7944
  }), callback(null, children);
7945
7945
  })
7946
7946
  ).on("error", callback);
@@ -7968,7 +7968,7 @@ var require_ps_tree = __commonJS({
7968
7968
  var require_merge2 = __commonJS({
7969
7969
  "../../node_modules/merge2/index.js"(exports2, module2) {
7970
7970
  "use strict";
7971
- var Stream2 = require("stream"), PassThrough = Stream2.PassThrough, slice = Array.prototype.slice;
7971
+ var Stream3 = require("stream"), PassThrough = Stream3.PassThrough, slice = Array.prototype.slice;
7972
7972
  module2.exports = merge22;
7973
7973
  function merge22() {
7974
7974
  let streamsQueue = [], args = slice.call(arguments), merging = !1, options = args[args.length - 1];
@@ -17905,9 +17905,9 @@ ${callerStack}`), Object.assign(error, result), reject(error);
17905
17905
  }
17906
17906
  });
17907
17907
 
17908
- // ../../node_modules/@expo/package-manager/node_modules/sudo-prompt/index.js
17908
+ // ../../node_modules/sudo-prompt/index.js
17909
17909
  var require_sudo_prompt = __commonJS({
17910
- "../../node_modules/@expo/package-manager/node_modules/sudo-prompt/index.js"(exports2, module2) {
17910
+ "../../node_modules/sudo-prompt/index.js"(exports2, module2) {
17911
17911
  var Node = {
17912
17912
  child: require("child_process"),
17913
17913
  crypto: require("crypto"),
@@ -18867,6 +18867,48 @@ var require_lib4 = __commonJS({
18867
18867
  }
18868
18868
  });
18869
18869
 
18870
+ // ../../node_modules/picocolors/picocolors.js
18871
+ var require_picocolors = __commonJS({
18872
+ "../../node_modules/picocolors/picocolors.js"(exports2, module2) {
18873
+ var tty2 = require("tty"), 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), formatter = (open3, close, replace = open3) => (input) => {
18874
+ let string = "" + input, index = string.indexOf(close, open3.length);
18875
+ return ~index ? open3 + replaceClose(string, close, replace, index) + close : open3 + string + close;
18876
+ }, replaceClose = (string, close, replace, index) => {
18877
+ let start = string.substring(0, index) + replace, end = string.substring(index + close.length), nextIndex = end.indexOf(close);
18878
+ return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
18879
+ }, createColors = (enabled = isColorSupported) => ({
18880
+ isColorSupported: enabled,
18881
+ reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
18882
+ bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
18883
+ dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
18884
+ italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
18885
+ underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
18886
+ inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
18887
+ hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
18888
+ strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
18889
+ black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
18890
+ red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
18891
+ green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
18892
+ yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
18893
+ blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
18894
+ magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
18895
+ cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
18896
+ white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
18897
+ gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
18898
+ bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
18899
+ bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
18900
+ bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
18901
+ bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
18902
+ bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
18903
+ bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
18904
+ bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
18905
+ bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
18906
+ });
18907
+ module2.exports = createColors();
18908
+ module2.exports.createColors = createColors;
18909
+ }
18910
+ });
18911
+
18870
18912
  // ../../node_modules/@babel/highlight/node_modules/escape-string-regexp/index.js
18871
18913
  var require_escape_string_regexp = __commonJS({
18872
18914
  "../../node_modules/@babel/highlight/node_modules/escape-string-regexp/index.js"(exports2, module2) {
@@ -19820,43 +19862,43 @@ var require_lib5 = __commonJS({
19820
19862
  });
19821
19863
  exports2.default = highlight;
19822
19864
  exports2.shouldHighlight = shouldHighlight;
19823
- var _jsTokens = require_js_tokens(), _helperValidatorIdentifier = require_lib4(), _chalk = _interopRequireWildcard(require_chalk(), !0);
19824
- function _getRequireWildcardCache(nodeInterop) {
19865
+ var _jsTokens = require_js_tokens(), _helperValidatorIdentifier = require_lib4(), _picocolors = _interopRequireWildcard(require_picocolors(), !0);
19866
+ function _getRequireWildcardCache(e) {
19825
19867
  if (typeof WeakMap != "function")
19826
19868
  return null;
19827
- var cacheBabelInterop = /* @__PURE__ */ new WeakMap(), cacheNodeInterop = /* @__PURE__ */ new WeakMap();
19828
- return (_getRequireWildcardCache = function(nodeInterop2) {
19829
- return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
19830
- })(nodeInterop);
19831
- }
19832
- function _interopRequireWildcard(obj, nodeInterop) {
19833
- if (!nodeInterop && obj && obj.__esModule)
19834
- return obj;
19835
- if (obj === null || typeof obj != "object" && typeof obj != "function")
19836
- return { default: obj };
19837
- var cache2 = _getRequireWildcardCache(nodeInterop);
19838
- if (cache2 && cache2.has(obj))
19839
- return cache2.get(obj);
19840
- var newObj = {}, hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
19841
- for (var key in obj)
19842
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
19843
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
19844
- desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : newObj[key] = obj[key];
19845
- }
19846
- return newObj.default = obj, cache2 && cache2.set(obj, newObj), newObj;
19847
- }
19848
- var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
19849
- function getDefs(chalk13) {
19869
+ var r = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
19870
+ return (_getRequireWildcardCache = function(e2) {
19871
+ return e2 ? t : r;
19872
+ })(e);
19873
+ }
19874
+ function _interopRequireWildcard(e, r) {
19875
+ if (!r && e && e.__esModule)
19876
+ return e;
19877
+ if (e === null || typeof e != "object" && typeof e != "function")
19878
+ return { default: e };
19879
+ var t = _getRequireWildcardCache(r);
19880
+ if (t && t.has(e))
19881
+ return t.get(e);
19882
+ var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
19883
+ for (var u in e)
19884
+ if (u !== "default" && Object.prototype.hasOwnProperty.call(e, u)) {
19885
+ var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
19886
+ i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
19887
+ }
19888
+ return n.default = e, t && t.set(e, n), n;
19889
+ }
19890
+ var colors = typeof process == "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(!1) : _picocolors.default, compose = (f, g) => (v) => f(g(v)), sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
19891
+ function getDefs(colors2) {
19850
19892
  return {
19851
- keyword: chalk13.cyan,
19852
- capitalized: chalk13.yellow,
19853
- jsxIdentifier: chalk13.yellow,
19854
- punctuator: chalk13.yellow,
19855
- number: chalk13.magenta,
19856
- string: chalk13.green,
19857
- regex: chalk13.magenta,
19858
- comment: chalk13.grey,
19859
- invalid: chalk13.white.bgRed.bold
19893
+ keyword: colors2.cyan,
19894
+ capitalized: colors2.yellow,
19895
+ jsxIdentifier: colors2.yellow,
19896
+ punctuator: colors2.yellow,
19897
+ number: colors2.magenta,
19898
+ string: colors2.green,
19899
+ regex: colors2.magenta,
19900
+ comment: colors2.gray,
19901
+ invalid: compose(compose(colors2.white, colors2.bgRed), colors2.bold)
19860
19902
  };
19861
19903
  }
19862
19904
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/, BRACKET = /^[()[\]{}]$/, tokenize;
@@ -19896,27 +19938,39 @@ var require_lib5 = __commonJS({
19896
19938
  return highlighted;
19897
19939
  }
19898
19940
  function shouldHighlight(options) {
19899
- return _chalk.default.level > 0 || options.forceColor;
19941
+ return colors.isColorSupported || options.forceColor;
19900
19942
  }
19901
- var chalkWithForcedColor;
19902
- function getChalk(forceColor) {
19943
+ var pcWithForcedColor;
19944
+ function getColors(forceColor) {
19903
19945
  if (forceColor) {
19904
- var _chalkWithForcedColor;
19905
- return (_chalkWithForcedColor = chalkWithForcedColor) != null || (chalkWithForcedColor = new _chalk.default.constructor({
19906
- enabled: !0,
19907
- level: 1
19908
- })), chalkWithForcedColor;
19946
+ var _pcWithForcedColor;
19947
+ return (_pcWithForcedColor = pcWithForcedColor) != null || (pcWithForcedColor = (0, _picocolors.createColors)(!0)), pcWithForcedColor;
19909
19948
  }
19910
- return _chalk.default;
19949
+ return colors;
19911
19950
  }
19912
- exports2.getChalk = (options) => getChalk(options.forceColor);
19913
19951
  function highlight(code, options = {}) {
19914
19952
  if (code !== "" && shouldHighlight(options)) {
19915
- let defs = getDefs(getChalk(options.forceColor));
19953
+ let defs = getDefs(getColors(options.forceColor));
19916
19954
  return highlightTokens(defs, code);
19917
19955
  } else
19918
19956
  return code;
19919
19957
  }
19958
+ {
19959
+ let chalk13, chalkWithForcedColor;
19960
+ exports2.getChalk = ({
19961
+ forceColor
19962
+ }) => {
19963
+ var _chalk;
19964
+ if ((_chalk = chalk13) != null || (chalk13 = require_chalk()), forceColor) {
19965
+ var _chalkWithForcedColor;
19966
+ return (_chalkWithForcedColor = chalkWithForcedColor) != null || (chalkWithForcedColor = new chalk13.constructor({
19967
+ enabled: !0,
19968
+ level: 1
19969
+ })), chalkWithForcedColor;
19970
+ }
19971
+ return chalk13;
19972
+ };
19973
+ }
19920
19974
  }
19921
19975
  });
19922
19976
 
@@ -26253,7 +26307,7 @@ var globby2 = Object.assign(function(patterns, options) {
26253
26307
  // package.json
26254
26308
  var package_default = {
26255
26309
  name: "create-tamagui",
26256
- version: "1.96.0",
26310
+ version: "1.97.1",
26257
26311
  bin: "./run.js",
26258
26312
  main: "dist",
26259
26313
  files: [
@@ -26274,7 +26328,7 @@ var package_default = {
26274
26328
  devDependencies: {
26275
26329
  "@expo/package-manager": "^1.1.2",
26276
26330
  "@playwright/test": "^1.40.1",
26277
- "@tamagui/build": "1.96.0",
26331
+ "@tamagui/build": "1.97.1",
26278
26332
  "@types/async-retry": "1.4.2",
26279
26333
  "@types/cross-spawn": "^6.0.2",
26280
26334
  "@types/node": "^16.11.9",
@@ -27256,7 +27310,7 @@ minimatch.Minimatch = Minimatch;
27256
27310
  minimatch.escape = escape;
27257
27311
  minimatch.unescape = unescape;
27258
27312
 
27259
- // ../../node_modules/rimraf/node_modules/lru-cache/dist/mjs/index.js
27313
+ // ../../node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js
27260
27314
  var perf = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, warned = /* @__PURE__ */ new Set(), PROCESS = typeof process == "object" && process ? process : {}, emitWarning = (msg, type, code, fn) => {
27261
27315
  typeof PROCESS.emitWarning == "function" ? PROCESS.emitWarning(msg, type, code, fn) : console.error(`[${code}] ${type}: ${msg}`);
27262
27316
  }, AC = globalThis.AbortController, AS = globalThis.AbortSignal;
@@ -27535,6 +27589,8 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
27535
27589
  }, this.#statusTTL = (status, index) => {
27536
27590
  if (ttls[index]) {
27537
27591
  let ttl = ttls[index], start = starts[index];
27592
+ if (!ttl || !start)
27593
+ return;
27538
27594
  status.ttl = ttl, status.start = start, status.now = cachedNow || getNow();
27539
27595
  let age = status.now - start;
27540
27596
  status.remainingTTL = ttl - age;
@@ -27554,11 +27610,14 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
27554
27610
  if (index === void 0)
27555
27611
  return 0;
27556
27612
  let ttl = ttls[index], start = starts[index];
27557
- if (ttl === 0 || start === 0)
27613
+ if (!ttl || !start)
27558
27614
  return 1 / 0;
27559
27615
  let age = (cachedNow || getNow()) - start;
27560
27616
  return ttl - age;
27561
- }, this.#isStale = (index) => ttls[index] !== 0 && starts[index] !== 0 && (cachedNow || getNow()) - starts[index] > ttls[index];
27617
+ }, this.#isStale = (index) => {
27618
+ let s = starts[index], t = ttls[index];
27619
+ return !!t && !!s && (cachedNow || getNow()) - s > t;
27620
+ };
27562
27621
  }
27563
27622
  // conditionally set private methods related to TTL
27564
27623
  #updateItemAge = () => {
@@ -27681,6 +27740,11 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
27681
27740
  [Symbol.iterator]() {
27682
27741
  return this.entries();
27683
27742
  }
27743
+ /**
27744
+ * A String value that is used in the creation of the default string description of an object.
27745
+ * Called by the built-in method Object.prototype.toString.
27746
+ */
27747
+ [Symbol.toStringTag] = "LRUCache";
27684
27748
  /**
27685
27749
  * Find a value for which the supplied fn method returns a truthy value,
27686
27750
  * similar to Array.find(). fn is called as fn(value, key, cache).
@@ -27724,6 +27788,29 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
27724
27788
  this.#isStale(i) && (this.delete(this.#keyList[i]), deleted = !0);
27725
27789
  return deleted;
27726
27790
  }
27791
+ /**
27792
+ * Get the extended info about a given entry, to get its value, size, and
27793
+ * TTL info simultaneously. Like {@link LRUCache#dump}, but just for a
27794
+ * single key. Always returns stale values, if their info is found in the
27795
+ * cache, so be sure to check for expired TTLs if relevant.
27796
+ */
27797
+ info(key) {
27798
+ let i = this.#keyMap.get(key);
27799
+ if (i === void 0)
27800
+ return;
27801
+ let v = this.#valList[i], value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
27802
+ if (value === void 0)
27803
+ return;
27804
+ let entry = { value };
27805
+ if (this.#ttls && this.#starts) {
27806
+ let ttl = this.#ttls[i], start = this.#starts[i];
27807
+ if (ttl && start) {
27808
+ let remain = ttl - (perf.now() - start);
27809
+ entry.ttl = remain, entry.start = Date.now();
27810
+ }
27811
+ }
27812
+ return this.#sizes && (entry.size = this.#sizes[i]), entry;
27813
+ }
27727
27814
  /**
27728
27815
  * Return an array of [key, {@link LRUCache.Entry}] tuples which can be
27729
27816
  * passed to cache.load()
@@ -27856,10 +27943,10 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
27856
27943
  */
27857
27944
  peek(k, peekOptions = {}) {
27858
27945
  let { allowStale = this.allowStale } = peekOptions, index = this.#keyMap.get(k);
27859
- if (index !== void 0 && (allowStale || !this.#isStale(index))) {
27860
- let v = this.#valList[index];
27861
- return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
27862
- }
27946
+ if (index === void 0 || !allowStale && this.#isStale(index))
27947
+ return;
27948
+ let v = this.#valList[index];
27949
+ return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
27863
27950
  }
27864
27951
  #backgroundFetch(k, index, options, context) {
27865
27952
  let v = index === void 0 ? void 0 : this.#valList[index];
@@ -28001,7 +28088,17 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
28001
28088
  else {
28002
28089
  this.#removeItemSize(index);
28003
28090
  let v = this.#valList[index];
28004
- this.#isBackgroundFetch(v) ? v.__abortController.abort(new Error("deleted")) : (this.#hasDispose || this.#hasDisposeAfter) && (this.#hasDispose && this.#dispose?.(v, k, "delete"), this.#hasDisposeAfter && this.#disposed?.push([v, k, "delete"])), this.#keyMap.delete(k), this.#keyList[index] = void 0, this.#valList[index] = void 0, index === this.#tail ? this.#tail = this.#prev[index] : index === this.#head ? this.#head = this.#next[index] : (this.#next[this.#prev[index]] = this.#next[index], this.#prev[this.#next[index]] = this.#prev[index]), this.#size--, this.#free.push(index);
28091
+ if (this.#isBackgroundFetch(v) ? v.__abortController.abort(new Error("deleted")) : (this.#hasDispose || this.#hasDisposeAfter) && (this.#hasDispose && this.#dispose?.(v, k, "delete"), this.#hasDisposeAfter && this.#disposed?.push([v, k, "delete"])), this.#keyMap.delete(k), this.#keyList[index] = void 0, this.#valList[index] = void 0, index === this.#tail)
28092
+ this.#tail = this.#prev[index];
28093
+ else if (index === this.#head)
28094
+ this.#head = this.#next[index];
28095
+ else {
28096
+ let pi = this.#prev[index];
28097
+ this.#next[pi] = this.#next[index];
28098
+ let ni = this.#next[index];
28099
+ this.#prev[ni] = this.#prev[index];
28100
+ }
28101
+ this.#size--, this.#free.push(index);
28005
28102
  }
28006
28103
  }
28007
28104
  if (this.#hasDisposeAfter && this.#disposed?.length) {
@@ -28032,10 +28129,10 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
28032
28129
  }
28033
28130
  };
28034
28131
 
28035
- // ../../node_modules/rimraf/node_modules/path-scurry/dist/mjs/index.js
28132
+ // ../../node_modules/path-scurry/dist/esm/index.js
28036
28133
  var import_path3 = require("path"), import_url = require("url"), actualFS = __toESM(require("fs"), 1), import_fs2 = require("fs"), import_promises = require("fs/promises");
28037
28134
 
28038
- // ../../node_modules/rimraf/node_modules/minipass/dist/mjs/index.js
28135
+ // ../../node_modules/path-scurry/node_modules/minipass/dist/esm/index.js
28039
28136
  var import_events = require("events"), import_stream = __toESM(require("stream"), 1), import_string_decoder = require("string_decoder"), proc = typeof process == "object" && process ? process : {
28040
28137
  stdout: null,
28041
28138
  stderr: null
@@ -28591,7 +28688,7 @@ s.pipe !== import_stream.default.Writable.prototype.pipe, isWritable = (s) => !!
28591
28688
  }
28592
28689
  };
28593
28690
 
28594
- // ../../node_modules/rimraf/node_modules/path-scurry/dist/mjs/index.js
28691
+ // ../../node_modules/path-scurry/dist/esm/index.js
28595
28692
  var realpathSync = import_fs2.realpathSync.native, defaultFS = {
28596
28693
  lstatSync: import_fs2.lstatSync,
28597
28694
  readdir: import_fs2.readdir,
@@ -29069,7 +29166,7 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
29069
29166
  return target;
29070
29167
  if (this.canReadlink() && this.parent)
29071
29168
  try {
29072
- let read = await this.#fs.promises.readlink(this.fullpath()), linkTarget = this.parent.resolve(read);
29169
+ let read = await this.#fs.promises.readlink(this.fullpath()), linkTarget = (await this.parent.realpath())?.resolve(read);
29073
29170
  if (linkTarget)
29074
29171
  return this.#linkTarget = linkTarget;
29075
29172
  } catch (er) {
@@ -29086,7 +29183,7 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
29086
29183
  return target;
29087
29184
  if (this.canReadlink() && this.parent)
29088
29185
  try {
29089
- let read = this.#fs.readlinkSync(this.fullpath()), linkTarget = this.parent.resolve(read);
29186
+ let read = this.#fs.readlinkSync(this.fullpath()), linkTarget = this.parent.realpathSync()?.resolve(read);
29090
29187
  if (linkTarget)
29091
29188
  return this.#linkTarget = linkTarget;
29092
29189
  } catch (er) {
@@ -29096,8 +29193,10 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
29096
29193
  }
29097
29194
  #readdirSuccess(children) {
29098
29195
  this.#type |= READDIR_CALLED;
29099
- for (let p = children.provisional; p < children.length; p++)
29100
- children[p].#markENOENT();
29196
+ for (let p = children.provisional; p < children.length; p++) {
29197
+ let c = children[p];
29198
+ c && c.#markENOENT();
29199
+ }
29101
29200
  }
29102
29201
  #markENOENT() {
29103
29202
  this.#type & ENOENT || (this.#type = (this.#type | ENOENT) & IFMT_UNKNOWN, this.#markChildrenENOENT());
@@ -29867,10 +29966,10 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
29867
29966
  }
29868
29967
  }, Path = process.platform === "win32" ? PathWin32 : PathPosix, PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
29869
29968
 
29870
- // ../../node_modules/rimraf/node_modules/glob/dist/mjs/glob.js
29969
+ // ../../node_modules/rimraf/node_modules/glob/dist/esm/glob.js
29871
29970
  var import_url2 = require("url");
29872
29971
 
29873
- // ../../node_modules/rimraf/node_modules/glob/dist/mjs/pattern.js
29972
+ // ../../node_modules/rimraf/node_modules/glob/dist/esm/pattern.js
29874
29973
  var isPatternList = (pl) => pl.length >= 1, isGlobList = (gl) => gl.length >= 1, Pattern = class _Pattern {
29875
29974
  #patternList;
29876
29975
  #globList;
@@ -29999,7 +30098,563 @@ var isPatternList = (pl) => pl.length >= 1, isGlobList = (gl) => gl.length >= 1,
29999
30098
  }
30000
30099
  };
30001
30100
 
30002
- // ../../node_modules/rimraf/node_modules/glob/dist/mjs/ignore.js
30101
+ // ../../node_modules/rimraf/node_modules/minipass/dist/esm/index.js
30102
+ var import_events2 = require("events"), import_stream2 = __toESM(require("stream"), 1), import_string_decoder2 = require("string_decoder"), proc2 = typeof process == "object" && process ? process : {
30103
+ stdout: null,
30104
+ stderr: null
30105
+ }, isStream2 = (s) => !!s && typeof s == "object" && (s instanceof Minipass2 || s instanceof import_stream2.default || isReadable2(s) || isWritable2(s)), isReadable2 = (s) => !!s && typeof s == "object" && s instanceof import_events2.EventEmitter && typeof s.pipe == "function" && // node core Writable streams have a pipe() method, but it throws
30106
+ s.pipe !== import_stream2.default.Writable.prototype.pipe, isWritable2 = (s) => !!s && typeof s == "object" && s instanceof import_events2.EventEmitter && typeof s.write == "function" && typeof s.end == "function", EOF2 = Symbol("EOF"), MAYBE_EMIT_END2 = Symbol("maybeEmitEnd"), EMITTED_END2 = Symbol("emittedEnd"), EMITTING_END2 = Symbol("emittingEnd"), EMITTED_ERROR2 = Symbol("emittedError"), CLOSED2 = Symbol("closed"), READ2 = Symbol("read"), FLUSH2 = Symbol("flush"), FLUSHCHUNK2 = Symbol("flushChunk"), ENCODING2 = Symbol("encoding"), DECODER2 = Symbol("decoder"), FLOWING2 = Symbol("flowing"), PAUSED2 = Symbol("paused"), RESUME2 = Symbol("resume"), BUFFER2 = Symbol("buffer"), PIPES2 = Symbol("pipes"), BUFFERLENGTH2 = Symbol("bufferLength"), BUFFERPUSH2 = Symbol("bufferPush"), BUFFERSHIFT2 = Symbol("bufferShift"), OBJECTMODE2 = Symbol("objectMode"), DESTROYED2 = Symbol("destroyed"), ERROR2 = Symbol("error"), EMITDATA2 = Symbol("emitData"), EMITEND3 = Symbol("emitEnd"), EMITEND22 = Symbol("emitEnd2"), ASYNC2 = Symbol("async"), ABORT2 = Symbol("abort"), ABORTED2 = Symbol("aborted"), SIGNAL2 = Symbol("signal"), DATALISTENERS2 = Symbol("dataListeners"), DISCARDED2 = Symbol("discarded"), defer2 = (fn) => Promise.resolve().then(fn), nodefer2 = (fn) => fn(), isEndish2 = (ev) => ev === "end" || ev === "finish" || ev === "prefinish", isArrayBufferLike2 = (b) => b instanceof ArrayBuffer || !!b && typeof b == "object" && b.constructor && b.constructor.name === "ArrayBuffer" && b.byteLength >= 0, isArrayBufferView2 = (b) => !Buffer.isBuffer(b) && ArrayBuffer.isView(b), Pipe2 = class {
30107
+ src;
30108
+ dest;
30109
+ opts;
30110
+ ondrain;
30111
+ constructor(src, dest, opts) {
30112
+ this.src = src, this.dest = dest, this.opts = opts, this.ondrain = () => src[RESUME2](), this.dest.on("drain", this.ondrain);
30113
+ }
30114
+ unpipe() {
30115
+ this.dest.removeListener("drain", this.ondrain);
30116
+ }
30117
+ // only here for the prototype
30118
+ /* c8 ignore start */
30119
+ proxyErrors(_er) {
30120
+ }
30121
+ /* c8 ignore stop */
30122
+ end() {
30123
+ this.unpipe(), this.opts.end && this.dest.end();
30124
+ }
30125
+ }, PipeProxyErrors2 = class extends Pipe2 {
30126
+ unpipe() {
30127
+ this.src.removeListener("error", this.proxyErrors), super.unpipe();
30128
+ }
30129
+ constructor(src, dest, opts) {
30130
+ super(src, dest, opts), this.proxyErrors = (er) => dest.emit("error", er), src.on("error", this.proxyErrors);
30131
+ }
30132
+ }, isObjectModeOptions2 = (o) => !!o.objectMode, isEncodingOptions2 = (o) => !o.objectMode && !!o.encoding && o.encoding !== "buffer", Minipass2 = class extends import_events2.EventEmitter {
30133
+ [FLOWING2] = !1;
30134
+ [PAUSED2] = !1;
30135
+ [PIPES2] = [];
30136
+ [BUFFER2] = [];
30137
+ [OBJECTMODE2];
30138
+ [ENCODING2];
30139
+ [ASYNC2];
30140
+ [DECODER2];
30141
+ [EOF2] = !1;
30142
+ [EMITTED_END2] = !1;
30143
+ [EMITTING_END2] = !1;
30144
+ [CLOSED2] = !1;
30145
+ [EMITTED_ERROR2] = null;
30146
+ [BUFFERLENGTH2] = 0;
30147
+ [DESTROYED2] = !1;
30148
+ [SIGNAL2];
30149
+ [ABORTED2] = !1;
30150
+ [DATALISTENERS2] = 0;
30151
+ [DISCARDED2] = !1;
30152
+ /**
30153
+ * true if the stream can be written
30154
+ */
30155
+ writable = !0;
30156
+ /**
30157
+ * true if the stream can be read
30158
+ */
30159
+ readable = !0;
30160
+ /**
30161
+ * If `RType` is Buffer, then options do not need to be provided.
30162
+ * Otherwise, an options object must be provided to specify either
30163
+ * {@link Minipass.SharedOptions.objectMode} or
30164
+ * {@link Minipass.SharedOptions.encoding}, as appropriate.
30165
+ */
30166
+ constructor(...args) {
30167
+ let options = args[0] || {};
30168
+ if (super(), options.objectMode && typeof options.encoding == "string")
30169
+ throw new TypeError("Encoding and objectMode may not be used together");
30170
+ isObjectModeOptions2(options) ? (this[OBJECTMODE2] = !0, this[ENCODING2] = null) : isEncodingOptions2(options) ? (this[ENCODING2] = options.encoding, this[OBJECTMODE2] = !1) : (this[OBJECTMODE2] = !1, this[ENCODING2] = null), this[ASYNC2] = !!options.async, this[DECODER2] = this[ENCODING2] ? new import_string_decoder2.StringDecoder(this[ENCODING2]) : null, options && options.debugExposeBuffer === !0 && Object.defineProperty(this, "buffer", { get: () => this[BUFFER2] }), options && options.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: () => this[PIPES2] });
30171
+ let { signal } = options;
30172
+ signal && (this[SIGNAL2] = signal, signal.aborted ? this[ABORT2]() : signal.addEventListener("abort", () => this[ABORT2]()));
30173
+ }
30174
+ /**
30175
+ * The amount of data stored in the buffer waiting to be read.
30176
+ *
30177
+ * For Buffer strings, this will be the total byte length.
30178
+ * For string encoding streams, this will be the string character length,
30179
+ * according to JavaScript's `string.length` logic.
30180
+ * For objectMode streams, this is a count of the items waiting to be
30181
+ * emitted.
30182
+ */
30183
+ get bufferLength() {
30184
+ return this[BUFFERLENGTH2];
30185
+ }
30186
+ /**
30187
+ * The `BufferEncoding` currently in use, or `null`
30188
+ */
30189
+ get encoding() {
30190
+ return this[ENCODING2];
30191
+ }
30192
+ /**
30193
+ * @deprecated - This is a read only property
30194
+ */
30195
+ set encoding(_enc) {
30196
+ throw new Error("Encoding must be set at instantiation time");
30197
+ }
30198
+ /**
30199
+ * @deprecated - Encoding may only be set at instantiation time
30200
+ */
30201
+ setEncoding(_enc) {
30202
+ throw new Error("Encoding must be set at instantiation time");
30203
+ }
30204
+ /**
30205
+ * True if this is an objectMode stream
30206
+ */
30207
+ get objectMode() {
30208
+ return this[OBJECTMODE2];
30209
+ }
30210
+ /**
30211
+ * @deprecated - This is a read-only property
30212
+ */
30213
+ set objectMode(_om) {
30214
+ throw new Error("objectMode must be set at instantiation time");
30215
+ }
30216
+ /**
30217
+ * true if this is an async stream
30218
+ */
30219
+ get async() {
30220
+ return this[ASYNC2];
30221
+ }
30222
+ /**
30223
+ * Set to true to make this stream async.
30224
+ *
30225
+ * Once set, it cannot be unset, as this would potentially cause incorrect
30226
+ * behavior. Ie, a sync stream can be made async, but an async stream
30227
+ * cannot be safely made sync.
30228
+ */
30229
+ set async(a) {
30230
+ this[ASYNC2] = this[ASYNC2] || !!a;
30231
+ }
30232
+ // drop everything and get out of the flow completely
30233
+ [ABORT2]() {
30234
+ this[ABORTED2] = !0, this.emit("abort", this[SIGNAL2]?.reason), this.destroy(this[SIGNAL2]?.reason);
30235
+ }
30236
+ /**
30237
+ * True if the stream has been aborted.
30238
+ */
30239
+ get aborted() {
30240
+ return this[ABORTED2];
30241
+ }
30242
+ /**
30243
+ * No-op setter. Stream aborted status is set via the AbortSignal provided
30244
+ * in the constructor options.
30245
+ */
30246
+ set aborted(_) {
30247
+ }
30248
+ write(chunk, encoding, cb) {
30249
+ if (this[ABORTED2])
30250
+ return !1;
30251
+ if (this[EOF2])
30252
+ throw new Error("write after end");
30253
+ if (this[DESTROYED2])
30254
+ return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), !0;
30255
+ typeof encoding == "function" && (cb = encoding, encoding = "utf8"), encoding || (encoding = "utf8");
30256
+ let fn = this[ASYNC2] ? defer2 : nodefer2;
30257
+ if (!this[OBJECTMODE2] && !Buffer.isBuffer(chunk)) {
30258
+ if (isArrayBufferView2(chunk))
30259
+ chunk = Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
30260
+ else if (isArrayBufferLike2(chunk))
30261
+ chunk = Buffer.from(chunk);
30262
+ else if (typeof chunk != "string")
30263
+ throw new Error("Non-contiguous data written to non-objectMode stream");
30264
+ }
30265
+ return this[OBJECTMODE2] ? (this[FLOWING2] && this[BUFFERLENGTH2] !== 0 && this[FLUSH2](!0), this[FLOWING2] ? this.emit("data", chunk) : this[BUFFERPUSH2](chunk), this[BUFFERLENGTH2] !== 0 && this.emit("readable"), cb && fn(cb), this[FLOWING2]) : chunk.length ? (typeof chunk == "string" && // unless it is a string already ready for us to use
30266
+ !(encoding === this[ENCODING2] && !this[DECODER2]?.lastNeed) && (chunk = Buffer.from(chunk, encoding)), Buffer.isBuffer(chunk) && this[ENCODING2] && (chunk = this[DECODER2].write(chunk)), this[FLOWING2] && this[BUFFERLENGTH2] !== 0 && this[FLUSH2](!0), this[FLOWING2] ? this.emit("data", chunk) : this[BUFFERPUSH2](chunk), this[BUFFERLENGTH2] !== 0 && this.emit("readable"), cb && fn(cb), this[FLOWING2]) : (this[BUFFERLENGTH2] !== 0 && this.emit("readable"), cb && fn(cb), this[FLOWING2]);
30267
+ }
30268
+ /**
30269
+ * Low-level explicit read method.
30270
+ *
30271
+ * In objectMode, the argument is ignored, and one item is returned if
30272
+ * available.
30273
+ *
30274
+ * `n` is the number of bytes (or in the case of encoding streams,
30275
+ * characters) to consume. If `n` is not provided, then the entire buffer
30276
+ * is returned, or `null` is returned if no data is available.
30277
+ *
30278
+ * If `n` is greater that the amount of data in the internal buffer,
30279
+ * then `null` is returned.
30280
+ */
30281
+ read(n) {
30282
+ if (this[DESTROYED2])
30283
+ return null;
30284
+ if (this[DISCARDED2] = !1, this[BUFFERLENGTH2] === 0 || n === 0 || n && n > this[BUFFERLENGTH2])
30285
+ return this[MAYBE_EMIT_END2](), null;
30286
+ this[OBJECTMODE2] && (n = null), this[BUFFER2].length > 1 && !this[OBJECTMODE2] && (this[BUFFER2] = [
30287
+ this[ENCODING2] ? this[BUFFER2].join("") : Buffer.concat(this[BUFFER2], this[BUFFERLENGTH2])
30288
+ ]);
30289
+ let ret = this[READ2](n || null, this[BUFFER2][0]);
30290
+ return this[MAYBE_EMIT_END2](), ret;
30291
+ }
30292
+ [READ2](n, chunk) {
30293
+ if (this[OBJECTMODE2])
30294
+ this[BUFFERSHIFT2]();
30295
+ else {
30296
+ let c = chunk;
30297
+ n === c.length || n === null ? this[BUFFERSHIFT2]() : typeof c == "string" ? (this[BUFFER2][0] = c.slice(n), chunk = c.slice(0, n), this[BUFFERLENGTH2] -= n) : (this[BUFFER2][0] = c.subarray(n), chunk = c.subarray(0, n), this[BUFFERLENGTH2] -= n);
30298
+ }
30299
+ return this.emit("data", chunk), !this[BUFFER2].length && !this[EOF2] && this.emit("drain"), chunk;
30300
+ }
30301
+ end(chunk, encoding, cb) {
30302
+ return typeof chunk == "function" && (cb = chunk, chunk = void 0), typeof encoding == "function" && (cb = encoding, encoding = "utf8"), chunk !== void 0 && this.write(chunk, encoding), cb && this.once("end", cb), this[EOF2] = !0, this.writable = !1, (this[FLOWING2] || !this[PAUSED2]) && this[MAYBE_EMIT_END2](), this;
30303
+ }
30304
+ // don't let the internal resume be overwritten
30305
+ [RESUME2]() {
30306
+ this[DESTROYED2] || (!this[DATALISTENERS2] && !this[PIPES2].length && (this[DISCARDED2] = !0), this[PAUSED2] = !1, this[FLOWING2] = !0, this.emit("resume"), this[BUFFER2].length ? this[FLUSH2]() : this[EOF2] ? this[MAYBE_EMIT_END2]() : this.emit("drain"));
30307
+ }
30308
+ /**
30309
+ * Resume the stream if it is currently in a paused state
30310
+ *
30311
+ * If called when there are no pipe destinations or `data` event listeners,
30312
+ * this will place the stream in a "discarded" state, where all data will
30313
+ * be thrown away. The discarded state is removed if a pipe destination or
30314
+ * data handler is added, if pause() is called, or if any synchronous or
30315
+ * asynchronous iteration is started.
30316
+ */
30317
+ resume() {
30318
+ return this[RESUME2]();
30319
+ }
30320
+ /**
30321
+ * Pause the stream
30322
+ */
30323
+ pause() {
30324
+ this[FLOWING2] = !1, this[PAUSED2] = !0, this[DISCARDED2] = !1;
30325
+ }
30326
+ /**
30327
+ * true if the stream has been forcibly destroyed
30328
+ */
30329
+ get destroyed() {
30330
+ return this[DESTROYED2];
30331
+ }
30332
+ /**
30333
+ * true if the stream is currently in a flowing state, meaning that
30334
+ * any writes will be immediately emitted.
30335
+ */
30336
+ get flowing() {
30337
+ return this[FLOWING2];
30338
+ }
30339
+ /**
30340
+ * true if the stream is currently in a paused state
30341
+ */
30342
+ get paused() {
30343
+ return this[PAUSED2];
30344
+ }
30345
+ [BUFFERPUSH2](chunk) {
30346
+ this[OBJECTMODE2] ? this[BUFFERLENGTH2] += 1 : this[BUFFERLENGTH2] += chunk.length, this[BUFFER2].push(chunk);
30347
+ }
30348
+ [BUFFERSHIFT2]() {
30349
+ return this[OBJECTMODE2] ? this[BUFFERLENGTH2] -= 1 : this[BUFFERLENGTH2] -= this[BUFFER2][0].length, this[BUFFER2].shift();
30350
+ }
30351
+ [FLUSH2](noDrain = !1) {
30352
+ do
30353
+ ;
30354
+ while (this[FLUSHCHUNK2](this[BUFFERSHIFT2]()) && this[BUFFER2].length);
30355
+ !noDrain && !this[BUFFER2].length && !this[EOF2] && this.emit("drain");
30356
+ }
30357
+ [FLUSHCHUNK2](chunk) {
30358
+ return this.emit("data", chunk), this[FLOWING2];
30359
+ }
30360
+ /**
30361
+ * Pipe all data emitted by this stream into the destination provided.
30362
+ *
30363
+ * Triggers the flow of data.
30364
+ */
30365
+ pipe(dest, opts) {
30366
+ if (this[DESTROYED2])
30367
+ return dest;
30368
+ this[DISCARDED2] = !1;
30369
+ let ended = this[EMITTED_END2];
30370
+ return opts = opts || {}, dest === proc2.stdout || dest === proc2.stderr ? opts.end = !1 : opts.end = opts.end !== !1, opts.proxyErrors = !!opts.proxyErrors, ended ? opts.end && dest.end() : (this[PIPES2].push(opts.proxyErrors ? new PipeProxyErrors2(this, dest, opts) : new Pipe2(this, dest, opts)), this[ASYNC2] ? defer2(() => this[RESUME2]()) : this[RESUME2]()), dest;
30371
+ }
30372
+ /**
30373
+ * Fully unhook a piped destination stream.
30374
+ *
30375
+ * If the destination stream was the only consumer of this stream (ie,
30376
+ * there are no other piped destinations or `'data'` event listeners)
30377
+ * then the flow of data will stop until there is another consumer or
30378
+ * {@link Minipass#resume} is explicitly called.
30379
+ */
30380
+ unpipe(dest) {
30381
+ let p = this[PIPES2].find((p2) => p2.dest === dest);
30382
+ p && (this[PIPES2].length === 1 ? (this[FLOWING2] && this[DATALISTENERS2] === 0 && (this[FLOWING2] = !1), this[PIPES2] = []) : this[PIPES2].splice(this[PIPES2].indexOf(p), 1), p.unpipe());
30383
+ }
30384
+ /**
30385
+ * Alias for {@link Minipass#on}
30386
+ */
30387
+ addListener(ev, handler) {
30388
+ return this.on(ev, handler);
30389
+ }
30390
+ /**
30391
+ * Mostly identical to `EventEmitter.on`, with the following
30392
+ * behavior differences to prevent data loss and unnecessary hangs:
30393
+ *
30394
+ * - Adding a 'data' event handler will trigger the flow of data
30395
+ *
30396
+ * - Adding a 'readable' event handler when there is data waiting to be read
30397
+ * will cause 'readable' to be emitted immediately.
30398
+ *
30399
+ * - Adding an 'endish' event handler ('end', 'finish', etc.) which has
30400
+ * already passed will cause the event to be emitted immediately and all
30401
+ * handlers removed.
30402
+ *
30403
+ * - Adding an 'error' event handler after an error has been emitted will
30404
+ * cause the event to be re-emitted immediately with the error previously
30405
+ * raised.
30406
+ */
30407
+ on(ev, handler) {
30408
+ let ret = super.on(ev, handler);
30409
+ if (ev === "data")
30410
+ this[DISCARDED2] = !1, this[DATALISTENERS2]++, !this[PIPES2].length && !this[FLOWING2] && this[RESUME2]();
30411
+ else if (ev === "readable" && this[BUFFERLENGTH2] !== 0)
30412
+ super.emit("readable");
30413
+ else if (isEndish2(ev) && this[EMITTED_END2])
30414
+ super.emit(ev), this.removeAllListeners(ev);
30415
+ else if (ev === "error" && this[EMITTED_ERROR2]) {
30416
+ let h = handler;
30417
+ this[ASYNC2] ? defer2(() => h.call(this, this[EMITTED_ERROR2])) : h.call(this, this[EMITTED_ERROR2]);
30418
+ }
30419
+ return ret;
30420
+ }
30421
+ /**
30422
+ * Alias for {@link Minipass#off}
30423
+ */
30424
+ removeListener(ev, handler) {
30425
+ return this.off(ev, handler);
30426
+ }
30427
+ /**
30428
+ * Mostly identical to `EventEmitter.off`
30429
+ *
30430
+ * If a 'data' event handler is removed, and it was the last consumer
30431
+ * (ie, there are no pipe destinations or other 'data' event listeners),
30432
+ * then the flow of data will stop until there is another consumer or
30433
+ * {@link Minipass#resume} is explicitly called.
30434
+ */
30435
+ off(ev, handler) {
30436
+ let ret = super.off(ev, handler);
30437
+ return ev === "data" && (this[DATALISTENERS2] = this.listeners("data").length, this[DATALISTENERS2] === 0 && !this[DISCARDED2] && !this[PIPES2].length && (this[FLOWING2] = !1)), ret;
30438
+ }
30439
+ /**
30440
+ * Mostly identical to `EventEmitter.removeAllListeners`
30441
+ *
30442
+ * If all 'data' event handlers are removed, and they were the last consumer
30443
+ * (ie, there are no pipe destinations), then the flow of data will stop
30444
+ * until there is another consumer or {@link Minipass#resume} is explicitly
30445
+ * called.
30446
+ */
30447
+ removeAllListeners(ev) {
30448
+ let ret = super.removeAllListeners(ev);
30449
+ return (ev === "data" || ev === void 0) && (this[DATALISTENERS2] = 0, !this[DISCARDED2] && !this[PIPES2].length && (this[FLOWING2] = !1)), ret;
30450
+ }
30451
+ /**
30452
+ * true if the 'end' event has been emitted
30453
+ */
30454
+ get emittedEnd() {
30455
+ return this[EMITTED_END2];
30456
+ }
30457
+ [MAYBE_EMIT_END2]() {
30458
+ !this[EMITTING_END2] && !this[EMITTED_END2] && !this[DESTROYED2] && this[BUFFER2].length === 0 && this[EOF2] && (this[EMITTING_END2] = !0, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[CLOSED2] && this.emit("close"), this[EMITTING_END2] = !1);
30459
+ }
30460
+ /**
30461
+ * Mostly identical to `EventEmitter.emit`, with the following
30462
+ * behavior differences to prevent data loss and unnecessary hangs:
30463
+ *
30464
+ * If the stream has been destroyed, and the event is something other
30465
+ * than 'close' or 'error', then `false` is returned and no handlers
30466
+ * are called.
30467
+ *
30468
+ * If the event is 'end', and has already been emitted, then the event
30469
+ * is ignored. If the stream is in a paused or non-flowing state, then
30470
+ * the event will be deferred until data flow resumes. If the stream is
30471
+ * async, then handlers will be called on the next tick rather than
30472
+ * immediately.
30473
+ *
30474
+ * If the event is 'close', and 'end' has not yet been emitted, then
30475
+ * the event will be deferred until after 'end' is emitted.
30476
+ *
30477
+ * If the event is 'error', and an AbortSignal was provided for the stream,
30478
+ * and there are no listeners, then the event is ignored, matching the
30479
+ * behavior of node core streams in the presense of an AbortSignal.
30480
+ *
30481
+ * If the event is 'finish' or 'prefinish', then all listeners will be
30482
+ * removed after emitting the event, to prevent double-firing.
30483
+ */
30484
+ emit(ev, ...args) {
30485
+ let data = args[0];
30486
+ if (ev !== "error" && ev !== "close" && ev !== DESTROYED2 && this[DESTROYED2])
30487
+ return !1;
30488
+ if (ev === "data")
30489
+ return !this[OBJECTMODE2] && !data ? !1 : this[ASYNC2] ? (defer2(() => this[EMITDATA2](data)), !0) : this[EMITDATA2](data);
30490
+ if (ev === "end")
30491
+ return this[EMITEND3]();
30492
+ if (ev === "close") {
30493
+ if (this[CLOSED2] = !0, !this[EMITTED_END2] && !this[DESTROYED2])
30494
+ return !1;
30495
+ let ret2 = super.emit("close");
30496
+ return this.removeAllListeners("close"), ret2;
30497
+ } else if (ev === "error") {
30498
+ this[EMITTED_ERROR2] = data, super.emit(ERROR2, data);
30499
+ let ret2 = !this[SIGNAL2] || this.listeners("error").length ? super.emit("error", data) : !1;
30500
+ return this[MAYBE_EMIT_END2](), ret2;
30501
+ } else if (ev === "resume") {
30502
+ let ret2 = super.emit("resume");
30503
+ return this[MAYBE_EMIT_END2](), ret2;
30504
+ } else if (ev === "finish" || ev === "prefinish") {
30505
+ let ret2 = super.emit(ev);
30506
+ return this.removeAllListeners(ev), ret2;
30507
+ }
30508
+ let ret = super.emit(ev, ...args);
30509
+ return this[MAYBE_EMIT_END2](), ret;
30510
+ }
30511
+ [EMITDATA2](data) {
30512
+ for (let p of this[PIPES2])
30513
+ p.dest.write(data) === !1 && this.pause();
30514
+ let ret = this[DISCARDED2] ? !1 : super.emit("data", data);
30515
+ return this[MAYBE_EMIT_END2](), ret;
30516
+ }
30517
+ [EMITEND3]() {
30518
+ return this[EMITTED_END2] ? !1 : (this[EMITTED_END2] = !0, this.readable = !1, this[ASYNC2] ? (defer2(() => this[EMITEND22]()), !0) : this[EMITEND22]());
30519
+ }
30520
+ [EMITEND22]() {
30521
+ if (this[DECODER2]) {
30522
+ let data = this[DECODER2].end();
30523
+ if (data) {
30524
+ for (let p of this[PIPES2])
30525
+ p.dest.write(data);
30526
+ this[DISCARDED2] || super.emit("data", data);
30527
+ }
30528
+ }
30529
+ for (let p of this[PIPES2])
30530
+ p.end();
30531
+ let ret = super.emit("end");
30532
+ return this.removeAllListeners("end"), ret;
30533
+ }
30534
+ /**
30535
+ * Return a Promise that resolves to an array of all emitted data once
30536
+ * the stream ends.
30537
+ */
30538
+ async collect() {
30539
+ let buf = Object.assign([], {
30540
+ dataLength: 0
30541
+ });
30542
+ this[OBJECTMODE2] || (buf.dataLength = 0);
30543
+ let p = this.promise();
30544
+ return this.on("data", (c) => {
30545
+ buf.push(c), this[OBJECTMODE2] || (buf.dataLength += c.length);
30546
+ }), await p, buf;
30547
+ }
30548
+ /**
30549
+ * Return a Promise that resolves to the concatenation of all emitted data
30550
+ * once the stream ends.
30551
+ *
30552
+ * Not allowed on objectMode streams.
30553
+ */
30554
+ async concat() {
30555
+ if (this[OBJECTMODE2])
30556
+ throw new Error("cannot concat in objectMode");
30557
+ let buf = await this.collect();
30558
+ return this[ENCODING2] ? buf.join("") : Buffer.concat(buf, buf.dataLength);
30559
+ }
30560
+ /**
30561
+ * Return a void Promise that resolves once the stream ends.
30562
+ */
30563
+ async promise() {
30564
+ return new Promise((resolve7, reject) => {
30565
+ this.on(DESTROYED2, () => reject(new Error("stream destroyed"))), this.on("error", (er) => reject(er)), this.on("end", () => resolve7());
30566
+ });
30567
+ }
30568
+ /**
30569
+ * Asynchronous `for await of` iteration.
30570
+ *
30571
+ * This will continue emitting all chunks until the stream terminates.
30572
+ */
30573
+ [Symbol.asyncIterator]() {
30574
+ this[DISCARDED2] = !1;
30575
+ let stopped = !1, stop = async () => (this.pause(), stopped = !0, { value: void 0, done: !0 });
30576
+ return {
30577
+ next: () => {
30578
+ if (stopped)
30579
+ return stop();
30580
+ let res = this.read();
30581
+ if (res !== null)
30582
+ return Promise.resolve({ done: !1, value: res });
30583
+ if (this[EOF2])
30584
+ return stop();
30585
+ let resolve7, reject, onerr = (er) => {
30586
+ this.off("data", ondata), this.off("end", onend), this.off(DESTROYED2, ondestroy), stop(), reject(er);
30587
+ }, ondata = (value) => {
30588
+ this.off("error", onerr), this.off("end", onend), this.off(DESTROYED2, ondestroy), this.pause(), resolve7({ value, done: !!this[EOF2] });
30589
+ }, onend = () => {
30590
+ this.off("error", onerr), this.off("data", ondata), this.off(DESTROYED2, ondestroy), stop(), resolve7({ done: !0, value: void 0 });
30591
+ }, ondestroy = () => onerr(new Error("stream destroyed"));
30592
+ return new Promise((res2, rej) => {
30593
+ reject = rej, resolve7 = res2, this.once(DESTROYED2, ondestroy), this.once("error", onerr), this.once("end", onend), this.once("data", ondata);
30594
+ });
30595
+ },
30596
+ throw: stop,
30597
+ return: stop,
30598
+ [Symbol.asyncIterator]() {
30599
+ return this;
30600
+ }
30601
+ };
30602
+ }
30603
+ /**
30604
+ * Synchronous `for of` iteration.
30605
+ *
30606
+ * The iteration will terminate when the internal buffer runs out, even
30607
+ * if the stream has not yet terminated.
30608
+ */
30609
+ [Symbol.iterator]() {
30610
+ this[DISCARDED2] = !1;
30611
+ let stopped = !1, stop = () => (this.pause(), this.off(ERROR2, stop), this.off(DESTROYED2, stop), this.off("end", stop), stopped = !0, { done: !0, value: void 0 }), next = () => {
30612
+ if (stopped)
30613
+ return stop();
30614
+ let value = this.read();
30615
+ return value === null ? stop() : { done: !1, value };
30616
+ };
30617
+ return this.once("end", stop), this.once(ERROR2, stop), this.once(DESTROYED2, stop), {
30618
+ next,
30619
+ throw: stop,
30620
+ return: stop,
30621
+ [Symbol.iterator]() {
30622
+ return this;
30623
+ }
30624
+ };
30625
+ }
30626
+ /**
30627
+ * Destroy a stream, preventing it from being used for any further purpose.
30628
+ *
30629
+ * If the stream has a `close()` method, then it will be called on
30630
+ * destruction.
30631
+ *
30632
+ * After destruction, any attempt to write data, read data, or emit most
30633
+ * events will be ignored.
30634
+ *
30635
+ * If an error argument is provided, then it will be emitted in an
30636
+ * 'error' event.
30637
+ */
30638
+ destroy(er) {
30639
+ if (this[DESTROYED2])
30640
+ return er ? this.emit("error", er) : this.emit(DESTROYED2), this;
30641
+ this[DESTROYED2] = !0, this[DISCARDED2] = !0, this[BUFFER2].length = 0, this[BUFFERLENGTH2] = 0;
30642
+ let wc = this;
30643
+ return typeof wc.close == "function" && !this[CLOSED2] && wc.close(), er ? this.emit("error", er) : this.emit(DESTROYED2), this;
30644
+ }
30645
+ /**
30646
+ * Alias for {@link isStream}
30647
+ *
30648
+ * Former export location, maintained for backwards compatibility.
30649
+ *
30650
+ * @deprecated
30651
+ */
30652
+ static get isStream() {
30653
+ return isStream2;
30654
+ }
30655
+ };
30656
+
30657
+ // ../../node_modules/rimraf/node_modules/glob/dist/esm/ignore.js
30003
30658
  var defaultPlatform2 = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", Ignore = class {
30004
30659
  relative;
30005
30660
  relativeChildren;
@@ -30021,7 +30676,12 @@ var defaultPlatform2 = typeof process == "object" && process && typeof process.p
30021
30676
  for (let ign of ignored) {
30022
30677
  let mm = new Minimatch(ign, mmopts);
30023
30678
  for (let i = 0; i < mm.set.length; i++) {
30024
- let parsed = mm.set[i], globParts = mm.globParts[i], p = new Pattern(parsed, globParts, 0, platform), m = new Minimatch(p.globString(), mmopts), children = globParts[globParts.length - 1] === "**", absolute = p.isAbsolute();
30679
+ let parsed = mm.set[i], globParts = mm.globParts[i];
30680
+ if (!parsed || !globParts)
30681
+ throw new Error("invalid pattern object");
30682
+ for (; parsed[0] === "." && globParts[0] === "."; )
30683
+ parsed.shift(), globParts.shift();
30684
+ let p = new Pattern(parsed, globParts, 0, platform), m = new Minimatch(p.globString(), mmopts), children = globParts[globParts.length - 1] === "**", absolute = p.isAbsolute();
30025
30685
  absolute ? this.absolute.push(m) : this.relative.push(m), children && (absolute ? this.absoluteChildren.push(m) : this.relativeChildren.push(m));
30026
30686
  }
30027
30687
  }
@@ -30042,12 +30702,13 @@ var defaultPlatform2 = typeof process == "object" && process && typeof process.p
30042
30702
  if (m.match(relative))
30043
30703
  return !0;
30044
30704
  for (let m of this.absoluteChildren)
30045
- m.match(fullpath);
30705
+ if (m.match(fullpath))
30706
+ return !0;
30046
30707
  return !1;
30047
30708
  }
30048
30709
  };
30049
30710
 
30050
- // ../../node_modules/rimraf/node_modules/glob/dist/mjs/processor.js
30711
+ // ../../node_modules/rimraf/node_modules/glob/dist/esm/processor.js
30051
30712
  var HasWalkedCache = class _HasWalkedCache {
30052
30713
  store;
30053
30714
  constructor(store = /* @__PURE__ */ new Map()) {
@@ -30127,24 +30788,16 @@ var HasWalkedCache = class _HasWalkedCache {
30127
30788
  if (t.isENOENT())
30128
30789
  continue;
30129
30790
  let p, rest, changed = !1;
30130
- for (; typeof (p = pattern.pattern()) == "string" && (rest = pattern.rest()); ) {
30131
- let c = t.resolve(p);
30132
- if (c.isUnknown() && p !== "..")
30133
- break;
30134
- t = c, pattern = rest, changed = !0;
30135
- }
30791
+ for (; typeof (p = pattern.pattern()) == "string" && (rest = pattern.rest()); )
30792
+ t = t.resolve(p), pattern = rest, changed = !0;
30136
30793
  if (p = pattern.pattern(), rest = pattern.rest(), changed) {
30137
30794
  if (this.hasWalkedCache.hasWalked(t, pattern))
30138
30795
  continue;
30139
30796
  this.hasWalkedCache.storeWalked(t, pattern);
30140
30797
  }
30141
30798
  if (typeof p == "string") {
30142
- if (rest)
30143
- this.subwalks.add(t, pattern);
30144
- else {
30145
- let ifDir = p === ".." || p === "" || p === ".";
30146
- this.matches.add(t.resolve(p), absolute, ifDir);
30147
- }
30799
+ let ifDir = p === ".." || p === "" || p === ".";
30800
+ this.matches.add(t.resolve(p), absolute, ifDir);
30148
30801
  continue;
30149
30802
  } else if (p === GLOBSTAR) {
30150
30803
  (!t.isSymbolicLink() || this.follow || pattern.checkFollowGlobstar()) && this.subwalks.add(t, pattern);
@@ -30200,7 +30853,7 @@ var HasWalkedCache = class _HasWalkedCache {
30200
30853
  }
30201
30854
  };
30202
30855
 
30203
- // ../../node_modules/rimraf/node_modules/glob/dist/mjs/walker.js
30856
+ // ../../node_modules/rimraf/node_modules/glob/dist/esm/walker.js
30204
30857
  var makeIgnore = (ignore, opts) => typeof ignore == "string" ? new Ignore([ignore], opts) : Array.isArray(ignore) ? new Ignore(ignore, opts) : ignore, GlobUtil = class {
30205
30858
  path;
30206
30859
  patterns;
@@ -30250,11 +30903,15 @@ var makeIgnore = (ignore, opts) => typeof ignore == "string" ? new Ignore([ignor
30250
30903
  return;
30251
30904
  e = rpc;
30252
30905
  }
30253
- let needStat = e.isUnknown() || this.opts.stat;
30254
- return this.matchCheckTest(needStat ? await e.lstat() : e, ifDir);
30906
+ let s = e.isUnknown() || this.opts.stat ? await e.lstat() : e;
30907
+ if (this.opts.follow && this.opts.nodir && s?.isSymbolicLink()) {
30908
+ let target = await s.realpath();
30909
+ target && (target.isUnknown() || this.opts.stat) && await target.lstat();
30910
+ }
30911
+ return this.matchCheckTest(s, ifDir);
30255
30912
  }
30256
30913
  matchCheckTest(e, ifDir) {
30257
- return e && (this.maxDepth === 1 / 0 || e.depth() <= this.maxDepth) && (!ifDir || e.canReaddir()) && (!this.opts.nodir || !e.isDirectory()) && !this.#ignored(e) ? e : void 0;
30914
+ return e && (this.maxDepth === 1 / 0 || e.depth() <= this.maxDepth) && (!ifDir || e.canReaddir()) && (!this.opts.nodir || !e.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !e.isSymbolicLink() || !e.realpathCached()?.isDirectory()) && !this.#ignored(e) ? e : void 0;
30258
30915
  }
30259
30916
  matchCheckSync(e, ifDir) {
30260
30917
  if (ifDir && this.opts.nodir)
@@ -30265,8 +30922,12 @@ var makeIgnore = (ignore, opts) => typeof ignore == "string" ? new Ignore([ignor
30265
30922
  return;
30266
30923
  e = rpc;
30267
30924
  }
30268
- let needStat = e.isUnknown() || this.opts.stat;
30269
- return this.matchCheckTest(needStat ? e.lstatSync() : e, ifDir);
30925
+ let s = e.isUnknown() || this.opts.stat ? e.lstatSync() : e;
30926
+ if (this.opts.follow && this.opts.nodir && s?.isSymbolicLink()) {
30927
+ let target = s.realpathSync();
30928
+ target && (target?.isUnknown() || this.opts.stat) && target.lstatSync();
30929
+ }
30930
+ return this.matchCheckTest(s, ifDir);
30270
30931
  }
30271
30932
  matchFinish(e, absolute) {
30272
30933
  if (this.#ignored(e))
@@ -30392,7 +31053,7 @@ var makeIgnore = (ignore, opts) => typeof ignore == "string" ? new Ignore([ignor
30392
31053
  }, GlobStream = class extends GlobUtil {
30393
31054
  results;
30394
31055
  constructor(patterns, path6, opts) {
30395
- super(patterns, path6, opts), this.results = new Minipass({
31056
+ super(patterns, path6, opts), this.results = new Minipass2({
30396
31057
  signal: this.signal,
30397
31058
  objectMode: !0
30398
31059
  }), this.results.on("drain", () => this.resume()), this.results.on("resume", () => this.resume());
@@ -30411,7 +31072,7 @@ var makeIgnore = (ignore, opts) => typeof ignore == "string" ? new Ignore([ignor
30411
31072
  }
30412
31073
  };
30413
31074
 
30414
- // ../../node_modules/rimraf/node_modules/glob/dist/mjs/glob.js
31075
+ // ../../node_modules/rimraf/node_modules/glob/dist/esm/glob.js
30415
31076
  var defaultPlatform3 = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", Glob = class {
30416
31077
  absolute;
30417
31078
  cwd;
@@ -30494,7 +31155,12 @@ var defaultPlatform3 = typeof process == "object" && process && typeof process.p
30494
31155
  windowsPathsNoEscape: this.windowsPathsNoEscape,
30495
31156
  debug: !!this.opts.debug
30496
31157
  }, mms = this.pattern.map((p) => new Minimatch(p, mmo)), [matchSet, globParts] = mms.reduce((set, m) => (set[0].push(...m.set), set[1].push(...m.globParts), set), [[], []]);
30497
- this.patterns = matchSet.map((set, i) => new Pattern(set, globParts[i], 0, this.platform));
31158
+ this.patterns = matchSet.map((set, i) => {
31159
+ let g = globParts[i];
31160
+ if (!g)
31161
+ throw new Error("invalid pattern object");
31162
+ return new Pattern(set, g, 0, this.platform);
31163
+ });
30498
31164
  }
30499
31165
  async walk() {
30500
31166
  return [
@@ -30554,7 +31220,7 @@ var defaultPlatform3 = typeof process == "object" && process && typeof process.p
30554
31220
  }
30555
31221
  };
30556
31222
 
30557
- // ../../node_modules/rimraf/node_modules/glob/dist/mjs/has-magic.js
31223
+ // ../../node_modules/rimraf/node_modules/glob/dist/esm/has-magic.js
30558
31224
  var hasMagic = (pattern, options = {}) => {
30559
31225
  Array.isArray(pattern) || (pattern = [pattern]);
30560
31226
  for (let p of pattern)
@@ -30563,7 +31229,7 @@ var hasMagic = (pattern, options = {}) => {
30563
31229
  return !1;
30564
31230
  };
30565
31231
 
30566
- // ../../node_modules/rimraf/node_modules/glob/dist/mjs/index.js
31232
+ // ../../node_modules/rimraf/node_modules/glob/dist/esm/index.js
30567
31233
  function globStreamSync(pattern, options = {}) {
30568
31234
  return new Glob(pattern, options).streamSync();
30569
31235
  }