@normed/bundle 4.4.0 → 4.5.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/bundles/index.js CHANGED
@@ -83,54 +83,54 @@ var require_polyfills = __commonJS({
83
83
  }
84
84
  var chdir;
85
85
  module2.exports = patch;
86
- function patch(fs10) {
86
+ function patch(fs11) {
87
87
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
88
- patchLchmod(fs10);
89
- }
90
- if (!fs10.lutimes) {
91
- patchLutimes(fs10);
92
- }
93
- fs10.chown = chownFix(fs10.chown);
94
- fs10.fchown = chownFix(fs10.fchown);
95
- fs10.lchown = chownFix(fs10.lchown);
96
- fs10.chmod = chmodFix(fs10.chmod);
97
- fs10.fchmod = chmodFix(fs10.fchmod);
98
- fs10.lchmod = chmodFix(fs10.lchmod);
99
- fs10.chownSync = chownFixSync(fs10.chownSync);
100
- fs10.fchownSync = chownFixSync(fs10.fchownSync);
101
- fs10.lchownSync = chownFixSync(fs10.lchownSync);
102
- fs10.chmodSync = chmodFixSync(fs10.chmodSync);
103
- fs10.fchmodSync = chmodFixSync(fs10.fchmodSync);
104
- fs10.lchmodSync = chmodFixSync(fs10.lchmodSync);
105
- fs10.stat = statFix(fs10.stat);
106
- fs10.fstat = statFix(fs10.fstat);
107
- fs10.lstat = statFix(fs10.lstat);
108
- fs10.statSync = statFixSync(fs10.statSync);
109
- fs10.fstatSync = statFixSync(fs10.fstatSync);
110
- fs10.lstatSync = statFixSync(fs10.lstatSync);
111
- if (fs10.chmod && !fs10.lchmod) {
112
- fs10.lchmod = function(path12, mode, cb) {
88
+ patchLchmod(fs11);
89
+ }
90
+ if (!fs11.lutimes) {
91
+ patchLutimes(fs11);
92
+ }
93
+ fs11.chown = chownFix(fs11.chown);
94
+ fs11.fchown = chownFix(fs11.fchown);
95
+ fs11.lchown = chownFix(fs11.lchown);
96
+ fs11.chmod = chmodFix(fs11.chmod);
97
+ fs11.fchmod = chmodFix(fs11.fchmod);
98
+ fs11.lchmod = chmodFix(fs11.lchmod);
99
+ fs11.chownSync = chownFixSync(fs11.chownSync);
100
+ fs11.fchownSync = chownFixSync(fs11.fchownSync);
101
+ fs11.lchownSync = chownFixSync(fs11.lchownSync);
102
+ fs11.chmodSync = chmodFixSync(fs11.chmodSync);
103
+ fs11.fchmodSync = chmodFixSync(fs11.fchmodSync);
104
+ fs11.lchmodSync = chmodFixSync(fs11.lchmodSync);
105
+ fs11.stat = statFix(fs11.stat);
106
+ fs11.fstat = statFix(fs11.fstat);
107
+ fs11.lstat = statFix(fs11.lstat);
108
+ fs11.statSync = statFixSync(fs11.statSync);
109
+ fs11.fstatSync = statFixSync(fs11.fstatSync);
110
+ fs11.lstatSync = statFixSync(fs11.lstatSync);
111
+ if (fs11.chmod && !fs11.lchmod) {
112
+ fs11.lchmod = function(path12, mode, cb) {
113
113
  if (cb) process.nextTick(cb);
114
114
  };
115
- fs10.lchmodSync = function() {
115
+ fs11.lchmodSync = function() {
116
116
  };
117
117
  }
118
- if (fs10.chown && !fs10.lchown) {
119
- fs10.lchown = function(path12, uid, gid, cb) {
118
+ if (fs11.chown && !fs11.lchown) {
119
+ fs11.lchown = function(path12, uid, gid, cb) {
120
120
  if (cb) process.nextTick(cb);
121
121
  };
122
- fs10.lchownSync = function() {
122
+ fs11.lchownSync = function() {
123
123
  };
124
124
  }
125
125
  if (platform === "win32") {
126
- fs10.rename = typeof fs10.rename !== "function" ? fs10.rename : function(fs$rename) {
126
+ fs11.rename = typeof fs11.rename !== "function" ? fs11.rename : function(fs$rename) {
127
127
  function rename(from, to, cb) {
128
128
  var start = Date.now();
129
129
  var backoff = 0;
130
130
  fs$rename(from, to, function CB(er) {
131
131
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
132
132
  setTimeout(function() {
133
- fs10.stat(to, function(stater, st) {
133
+ fs11.stat(to, function(stater, st) {
134
134
  if (stater && stater.code === "ENOENT")
135
135
  fs$rename(from, to, CB);
136
136
  else
@@ -146,9 +146,9 @@ var require_polyfills = __commonJS({
146
146
  }
147
147
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
148
148
  return rename;
149
- }(fs10.rename);
149
+ }(fs11.rename);
150
150
  }
151
- fs10.read = typeof fs10.read !== "function" ? fs10.read : function(fs$read) {
151
+ fs11.read = typeof fs11.read !== "function" ? fs11.read : function(fs$read) {
152
152
  function read(fd, buffer, offset, length, position, callback_) {
153
153
  var callback;
154
154
  if (callback_ && typeof callback_ === "function") {
@@ -156,22 +156,22 @@ var require_polyfills = __commonJS({
156
156
  callback = function(er, _, __) {
157
157
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
158
158
  eagCounter++;
159
- return fs$read.call(fs10, fd, buffer, offset, length, position, callback);
159
+ return fs$read.call(fs11, fd, buffer, offset, length, position, callback);
160
160
  }
161
161
  callback_.apply(this, arguments);
162
162
  };
163
163
  }
164
- return fs$read.call(fs10, fd, buffer, offset, length, position, callback);
164
+ return fs$read.call(fs11, fd, buffer, offset, length, position, callback);
165
165
  }
166
166
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
167
167
  return read;
168
- }(fs10.read);
169
- fs10.readSync = typeof fs10.readSync !== "function" ? fs10.readSync : /* @__PURE__ */ function(fs$readSync) {
168
+ }(fs11.read);
169
+ fs11.readSync = typeof fs11.readSync !== "function" ? fs11.readSync : /* @__PURE__ */ function(fs$readSync) {
170
170
  return function(fd, buffer, offset, length, position) {
171
171
  var eagCounter = 0;
172
172
  while (true) {
173
173
  try {
174
- return fs$readSync.call(fs10, fd, buffer, offset, length, position);
174
+ return fs$readSync.call(fs11, fd, buffer, offset, length, position);
175
175
  } catch (er) {
176
176
  if (er.code === "EAGAIN" && eagCounter < 10) {
177
177
  eagCounter++;
@@ -181,10 +181,10 @@ var require_polyfills = __commonJS({
181
181
  }
182
182
  }
183
183
  };
184
- }(fs10.readSync);
185
- function patchLchmod(fs11) {
186
- fs11.lchmod = function(path12, mode, callback) {
187
- fs11.open(
184
+ }(fs11.readSync);
185
+ function patchLchmod(fs12) {
186
+ fs12.lchmod = function(path12, mode, callback) {
187
+ fs12.open(
188
188
  path12,
189
189
  constants.O_WRONLY | constants.O_SYMLINK,
190
190
  mode,
@@ -193,80 +193,80 @@ var require_polyfills = __commonJS({
193
193
  if (callback) callback(err);
194
194
  return;
195
195
  }
196
- fs11.fchmod(fd, mode, function(err2) {
197
- fs11.close(fd, function(err22) {
196
+ fs12.fchmod(fd, mode, function(err2) {
197
+ fs12.close(fd, function(err22) {
198
198
  if (callback) callback(err2 || err22);
199
199
  });
200
200
  });
201
201
  }
202
202
  );
203
203
  };
204
- fs11.lchmodSync = function(path12, mode) {
205
- var fd = fs11.openSync(path12, constants.O_WRONLY | constants.O_SYMLINK, mode);
204
+ fs12.lchmodSync = function(path12, mode) {
205
+ var fd = fs12.openSync(path12, constants.O_WRONLY | constants.O_SYMLINK, mode);
206
206
  var threw = true;
207
207
  var ret;
208
208
  try {
209
- ret = fs11.fchmodSync(fd, mode);
209
+ ret = fs12.fchmodSync(fd, mode);
210
210
  threw = false;
211
211
  } finally {
212
212
  if (threw) {
213
213
  try {
214
- fs11.closeSync(fd);
214
+ fs12.closeSync(fd);
215
215
  } catch (er) {
216
216
  }
217
217
  } else {
218
- fs11.closeSync(fd);
218
+ fs12.closeSync(fd);
219
219
  }
220
220
  }
221
221
  return ret;
222
222
  };
223
223
  }
224
- function patchLutimes(fs11) {
225
- if (constants.hasOwnProperty("O_SYMLINK") && fs11.futimes) {
226
- fs11.lutimes = function(path12, at, mt, cb) {
227
- fs11.open(path12, constants.O_SYMLINK, function(er, fd) {
224
+ function patchLutimes(fs12) {
225
+ if (constants.hasOwnProperty("O_SYMLINK") && fs12.futimes) {
226
+ fs12.lutimes = function(path12, at, mt, cb) {
227
+ fs12.open(path12, constants.O_SYMLINK, function(er, fd) {
228
228
  if (er) {
229
229
  if (cb) cb(er);
230
230
  return;
231
231
  }
232
- fs11.futimes(fd, at, mt, function(er2) {
233
- fs11.close(fd, function(er22) {
232
+ fs12.futimes(fd, at, mt, function(er2) {
233
+ fs12.close(fd, function(er22) {
234
234
  if (cb) cb(er2 || er22);
235
235
  });
236
236
  });
237
237
  });
238
238
  };
239
- fs11.lutimesSync = function(path12, at, mt) {
240
- var fd = fs11.openSync(path12, constants.O_SYMLINK);
239
+ fs12.lutimesSync = function(path12, at, mt) {
240
+ var fd = fs12.openSync(path12, constants.O_SYMLINK);
241
241
  var ret;
242
242
  var threw = true;
243
243
  try {
244
- ret = fs11.futimesSync(fd, at, mt);
244
+ ret = fs12.futimesSync(fd, at, mt);
245
245
  threw = false;
246
246
  } finally {
247
247
  if (threw) {
248
248
  try {
249
- fs11.closeSync(fd);
249
+ fs12.closeSync(fd);
250
250
  } catch (er) {
251
251
  }
252
252
  } else {
253
- fs11.closeSync(fd);
253
+ fs12.closeSync(fd);
254
254
  }
255
255
  }
256
256
  return ret;
257
257
  };
258
- } else if (fs11.futimes) {
259
- fs11.lutimes = function(_a, _b, _c, cb) {
258
+ } else if (fs12.futimes) {
259
+ fs12.lutimes = function(_a, _b, _c, cb) {
260
260
  if (cb) process.nextTick(cb);
261
261
  };
262
- fs11.lutimesSync = function() {
262
+ fs12.lutimesSync = function() {
263
263
  };
264
264
  }
265
265
  }
266
266
  function chmodFix(orig) {
267
267
  if (!orig) return orig;
268
268
  return function(target, mode, cb) {
269
- return orig.call(fs10, target, mode, function(er) {
269
+ return orig.call(fs11, target, mode, function(er) {
270
270
  if (chownErOk(er)) er = null;
271
271
  if (cb) cb.apply(this, arguments);
272
272
  });
@@ -276,7 +276,7 @@ var require_polyfills = __commonJS({
276
276
  if (!orig) return orig;
277
277
  return function(target, mode) {
278
278
  try {
279
- return orig.call(fs10, target, mode);
279
+ return orig.call(fs11, target, mode);
280
280
  } catch (er) {
281
281
  if (!chownErOk(er)) throw er;
282
282
  }
@@ -285,7 +285,7 @@ var require_polyfills = __commonJS({
285
285
  function chownFix(orig) {
286
286
  if (!orig) return orig;
287
287
  return function(target, uid, gid, cb) {
288
- return orig.call(fs10, target, uid, gid, function(er) {
288
+ return orig.call(fs11, target, uid, gid, function(er) {
289
289
  if (chownErOk(er)) er = null;
290
290
  if (cb) cb.apply(this, arguments);
291
291
  });
@@ -295,7 +295,7 @@ var require_polyfills = __commonJS({
295
295
  if (!orig) return orig;
296
296
  return function(target, uid, gid) {
297
297
  try {
298
- return orig.call(fs10, target, uid, gid);
298
+ return orig.call(fs11, target, uid, gid);
299
299
  } catch (er) {
300
300
  if (!chownErOk(er)) throw er;
301
301
  }
@@ -315,13 +315,13 @@ var require_polyfills = __commonJS({
315
315
  }
316
316
  if (cb) cb.apply(this, arguments);
317
317
  }
318
- return options ? orig.call(fs10, target, options, callback) : orig.call(fs10, target, callback);
318
+ return options ? orig.call(fs11, target, options, callback) : orig.call(fs11, target, callback);
319
319
  };
320
320
  }
321
321
  function statFixSync(orig) {
322
322
  if (!orig) return orig;
323
323
  return function(target, options) {
324
- var stats = options ? orig.call(fs10, target, options) : orig.call(fs10, target);
324
+ var stats = options ? orig.call(fs11, target, options) : orig.call(fs11, target);
325
325
  if (stats) {
326
326
  if (stats.uid < 0) stats.uid += 4294967296;
327
327
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -350,7 +350,7 @@ var require_legacy_streams = __commonJS({
350
350
  "pnp:/builds/normed/bundle/.yarn/cache/graceful-fs-npm-4.2.11-24bb648a68-bf152d0ed1.zip/node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
351
351
  var Stream = require("stream").Stream;
352
352
  module2.exports = legacy;
353
- function legacy(fs10) {
353
+ function legacy(fs11) {
354
354
  return {
355
355
  ReadStream,
356
356
  WriteStream
@@ -393,7 +393,7 @@ var require_legacy_streams = __commonJS({
393
393
  });
394
394
  return;
395
395
  }
396
- fs10.open(this.path, this.flags, this.mode, function(err, fd) {
396
+ fs11.open(this.path, this.flags, this.mode, function(err, fd) {
397
397
  if (err) {
398
398
  self2.emit("error", err);
399
399
  self2.readable = false;
@@ -432,7 +432,7 @@ var require_legacy_streams = __commonJS({
432
432
  this.busy = false;
433
433
  this._queue = [];
434
434
  if (this.fd === null) {
435
- this._open = fs10.open;
435
+ this._open = fs11.open;
436
436
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
437
437
  this.flush();
438
438
  }
@@ -467,7 +467,7 @@ var require_clone = __commonJS({
467
467
  // pnp:/builds/normed/bundle/.yarn/cache/graceful-fs-npm-4.2.11-24bb648a68-bf152d0ed1.zip/node_modules/graceful-fs/graceful-fs.js
468
468
  var require_graceful_fs = __commonJS({
469
469
  "pnp:/builds/normed/bundle/.yarn/cache/graceful-fs-npm-4.2.11-24bb648a68-bf152d0ed1.zip/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
470
- var fs10 = require("fs");
470
+ var fs11 = require("fs");
471
471
  var polyfills = require_polyfills();
472
472
  var legacy = require_legacy_streams();
473
473
  var clone = require_clone();
@@ -499,12 +499,12 @@ var require_graceful_fs = __commonJS({
499
499
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
500
500
  console.error(m);
501
501
  };
502
- if (!fs10[gracefulQueue]) {
502
+ if (!fs11[gracefulQueue]) {
503
503
  queue = global[gracefulQueue] || [];
504
- publishQueue(fs10, queue);
505
- fs10.close = function(fs$close) {
504
+ publishQueue(fs11, queue);
505
+ fs11.close = function(fs$close) {
506
506
  function close(fd, cb) {
507
- return fs$close.call(fs10, fd, function(err) {
507
+ return fs$close.call(fs11, fd, function(err) {
508
508
  if (!err) {
509
509
  resetQueue();
510
510
  }
@@ -516,40 +516,40 @@ var require_graceful_fs = __commonJS({
516
516
  value: fs$close
517
517
  });
518
518
  return close;
519
- }(fs10.close);
520
- fs10.closeSync = function(fs$closeSync) {
519
+ }(fs11.close);
520
+ fs11.closeSync = function(fs$closeSync) {
521
521
  function closeSync(fd) {
522
- fs$closeSync.apply(fs10, arguments);
522
+ fs$closeSync.apply(fs11, arguments);
523
523
  resetQueue();
524
524
  }
525
525
  Object.defineProperty(closeSync, previousSymbol, {
526
526
  value: fs$closeSync
527
527
  });
528
528
  return closeSync;
529
- }(fs10.closeSync);
529
+ }(fs11.closeSync);
530
530
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
531
531
  process.on("exit", function() {
532
- debug(fs10[gracefulQueue]);
533
- require("assert").equal(fs10[gracefulQueue].length, 0);
532
+ debug(fs11[gracefulQueue]);
533
+ require("assert").equal(fs11[gracefulQueue].length, 0);
534
534
  });
535
535
  }
536
536
  }
537
537
  var queue;
538
538
  if (!global[gracefulQueue]) {
539
- publishQueue(global, fs10[gracefulQueue]);
540
- }
541
- module2.exports = patch(clone(fs10));
542
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs10.__patched) {
543
- module2.exports = patch(fs10);
544
- fs10.__patched = true;
545
- }
546
- function patch(fs11) {
547
- polyfills(fs11);
548
- fs11.gracefulify = patch;
549
- fs11.createReadStream = createReadStream;
550
- fs11.createWriteStream = createWriteStream;
551
- var fs$readFile = fs11.readFile;
552
- fs11.readFile = readFile;
539
+ publishQueue(global, fs11[gracefulQueue]);
540
+ }
541
+ module2.exports = patch(clone(fs11));
542
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs11.__patched) {
543
+ module2.exports = patch(fs11);
544
+ fs11.__patched = true;
545
+ }
546
+ function patch(fs12) {
547
+ polyfills(fs12);
548
+ fs12.gracefulify = patch;
549
+ fs12.createReadStream = createReadStream;
550
+ fs12.createWriteStream = createWriteStream;
551
+ var fs$readFile = fs12.readFile;
552
+ fs12.readFile = readFile;
553
553
  function readFile(path12, options, cb) {
554
554
  if (typeof options === "function")
555
555
  cb = options, options = null;
@@ -565,8 +565,8 @@ var require_graceful_fs = __commonJS({
565
565
  });
566
566
  }
567
567
  }
568
- var fs$writeFile = fs11.writeFile;
569
- fs11.writeFile = writeFile;
568
+ var fs$writeFile = fs12.writeFile;
569
+ fs12.writeFile = writeFile;
570
570
  function writeFile(path12, data, options, cb) {
571
571
  if (typeof options === "function")
572
572
  cb = options, options = null;
@@ -582,9 +582,9 @@ var require_graceful_fs = __commonJS({
582
582
  });
583
583
  }
584
584
  }
585
- var fs$appendFile = fs11.appendFile;
585
+ var fs$appendFile = fs12.appendFile;
586
586
  if (fs$appendFile)
587
- fs11.appendFile = appendFile;
587
+ fs12.appendFile = appendFile;
588
588
  function appendFile(path12, data, options, cb) {
589
589
  if (typeof options === "function")
590
590
  cb = options, options = null;
@@ -600,9 +600,9 @@ var require_graceful_fs = __commonJS({
600
600
  });
601
601
  }
602
602
  }
603
- var fs$copyFile = fs11.copyFile;
603
+ var fs$copyFile = fs12.copyFile;
604
604
  if (fs$copyFile)
605
- fs11.copyFile = copyFile;
605
+ fs12.copyFile = copyFile;
606
606
  function copyFile(src, dest, flags, cb) {
607
607
  if (typeof flags === "function") {
608
608
  cb = flags;
@@ -620,8 +620,8 @@ var require_graceful_fs = __commonJS({
620
620
  });
621
621
  }
622
622
  }
623
- var fs$readdir = fs11.readdir;
624
- fs11.readdir = readdir;
623
+ var fs$readdir = fs12.readdir;
624
+ fs12.readdir = readdir;
625
625
  var noReaddirOptionVersions = /^v[0-5]\./;
626
626
  function readdir(path12, options, cb) {
627
627
  if (typeof options === "function")
@@ -662,21 +662,21 @@ var require_graceful_fs = __commonJS({
662
662
  }
663
663
  }
664
664
  if (process.version.substr(0, 4) === "v0.8") {
665
- var legStreams = legacy(fs11);
665
+ var legStreams = legacy(fs12);
666
666
  ReadStream = legStreams.ReadStream;
667
667
  WriteStream = legStreams.WriteStream;
668
668
  }
669
- var fs$ReadStream = fs11.ReadStream;
669
+ var fs$ReadStream = fs12.ReadStream;
670
670
  if (fs$ReadStream) {
671
671
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
672
672
  ReadStream.prototype.open = ReadStream$open;
673
673
  }
674
- var fs$WriteStream = fs11.WriteStream;
674
+ var fs$WriteStream = fs12.WriteStream;
675
675
  if (fs$WriteStream) {
676
676
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
677
677
  WriteStream.prototype.open = WriteStream$open;
678
678
  }
679
- Object.defineProperty(fs11, "ReadStream", {
679
+ Object.defineProperty(fs12, "ReadStream", {
680
680
  get: function() {
681
681
  return ReadStream;
682
682
  },
@@ -686,7 +686,7 @@ var require_graceful_fs = __commonJS({
686
686
  enumerable: true,
687
687
  configurable: true
688
688
  });
689
- Object.defineProperty(fs11, "WriteStream", {
689
+ Object.defineProperty(fs12, "WriteStream", {
690
690
  get: function() {
691
691
  return WriteStream;
692
692
  },
@@ -697,7 +697,7 @@ var require_graceful_fs = __commonJS({
697
697
  configurable: true
698
698
  });
699
699
  var FileReadStream = ReadStream;
700
- Object.defineProperty(fs11, "FileReadStream", {
700
+ Object.defineProperty(fs12, "FileReadStream", {
701
701
  get: function() {
702
702
  return FileReadStream;
703
703
  },
@@ -708,7 +708,7 @@ var require_graceful_fs = __commonJS({
708
708
  configurable: true
709
709
  });
710
710
  var FileWriteStream = WriteStream;
711
- Object.defineProperty(fs11, "FileWriteStream", {
711
+ Object.defineProperty(fs12, "FileWriteStream", {
712
712
  get: function() {
713
713
  return FileWriteStream;
714
714
  },
@@ -757,13 +757,13 @@ var require_graceful_fs = __commonJS({
757
757
  });
758
758
  }
759
759
  function createReadStream(path12, options) {
760
- return new fs11.ReadStream(path12, options);
760
+ return new fs12.ReadStream(path12, options);
761
761
  }
762
762
  function createWriteStream(path12, options) {
763
- return new fs11.WriteStream(path12, options);
763
+ return new fs12.WriteStream(path12, options);
764
764
  }
765
- var fs$open = fs11.open;
766
- fs11.open = open;
765
+ var fs$open = fs12.open;
766
+ fs12.open = open;
767
767
  function open(path12, flags, mode, cb) {
768
768
  if (typeof mode === "function")
769
769
  cb = mode, mode = null;
@@ -779,20 +779,20 @@ var require_graceful_fs = __commonJS({
779
779
  });
780
780
  }
781
781
  }
782
- return fs11;
782
+ return fs12;
783
783
  }
784
784
  function enqueue(elem) {
785
785
  debug("ENQUEUE", elem[0].name, elem[1]);
786
- fs10[gracefulQueue].push(elem);
786
+ fs11[gracefulQueue].push(elem);
787
787
  retry();
788
788
  }
789
789
  var retryTimer;
790
790
  function resetQueue() {
791
791
  var now = Date.now();
792
- for (var i = 0; i < fs10[gracefulQueue].length; ++i) {
793
- if (fs10[gracefulQueue][i].length > 2) {
794
- fs10[gracefulQueue][i][3] = now;
795
- fs10[gracefulQueue][i][4] = now;
792
+ for (var i = 0; i < fs11[gracefulQueue].length; ++i) {
793
+ if (fs11[gracefulQueue][i].length > 2) {
794
+ fs11[gracefulQueue][i][3] = now;
795
+ fs11[gracefulQueue][i][4] = now;
796
796
  }
797
797
  }
798
798
  retry();
@@ -800,9 +800,9 @@ var require_graceful_fs = __commonJS({
800
800
  function retry() {
801
801
  clearTimeout(retryTimer);
802
802
  retryTimer = void 0;
803
- if (fs10[gracefulQueue].length === 0)
803
+ if (fs11[gracefulQueue].length === 0)
804
804
  return;
805
- var elem = fs10[gracefulQueue].shift();
805
+ var elem = fs11[gracefulQueue].shift();
806
806
  var fn = elem[0];
807
807
  var args = elem[1];
808
808
  var err = elem[2];
@@ -824,7 +824,7 @@ var require_graceful_fs = __commonJS({
824
824
  debug("RETRY", fn.name, args);
825
825
  fn.apply(null, args.concat([startTime]));
826
826
  } else {
827
- fs10[gracefulQueue].push(elem);
827
+ fs11[gracefulQueue].push(elem);
828
828
  }
829
829
  }
830
830
  if (retryTimer === void 0) {
@@ -839,7 +839,7 @@ var require_fs = __commonJS({
839
839
  "pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/fs/index.js"(exports2) {
840
840
  "use strict";
841
841
  var u = require_universalify().fromCallback;
842
- var fs10 = require_graceful_fs();
842
+ var fs11 = require_graceful_fs();
843
843
  var api = [
844
844
  "access",
845
845
  "appendFile",
@@ -880,26 +880,26 @@ var require_fs = __commonJS({
880
880
  "utimes",
881
881
  "writeFile"
882
882
  ].filter((key) => {
883
- return typeof fs10[key] === "function";
883
+ return typeof fs11[key] === "function";
884
884
  });
885
- Object.assign(exports2, fs10);
885
+ Object.assign(exports2, fs11);
886
886
  api.forEach((method) => {
887
- exports2[method] = u(fs10[method]);
887
+ exports2[method] = u(fs11[method]);
888
888
  });
889
889
  exports2.exists = function(filename, callback) {
890
890
  if (typeof callback === "function") {
891
- return fs10.exists(filename, callback);
891
+ return fs11.exists(filename, callback);
892
892
  }
893
893
  return new Promise((resolve) => {
894
- return fs10.exists(filename, resolve);
894
+ return fs11.exists(filename, resolve);
895
895
  });
896
896
  };
897
897
  exports2.read = function(fd, buffer, offset, length, position, callback) {
898
898
  if (typeof callback === "function") {
899
- return fs10.read(fd, buffer, offset, length, position, callback);
899
+ return fs11.read(fd, buffer, offset, length, position, callback);
900
900
  }
901
901
  return new Promise((resolve, reject) => {
902
- fs10.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
902
+ fs11.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
903
903
  if (err) return reject(err);
904
904
  resolve({ bytesRead, buffer: buffer2 });
905
905
  });
@@ -907,10 +907,10 @@ var require_fs = __commonJS({
907
907
  };
908
908
  exports2.write = function(fd, buffer, ...args) {
909
909
  if (typeof args[args.length - 1] === "function") {
910
- return fs10.write(fd, buffer, ...args);
910
+ return fs11.write(fd, buffer, ...args);
911
911
  }
912
912
  return new Promise((resolve, reject) => {
913
- fs10.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
913
+ fs11.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
914
914
  if (err) return reject(err);
915
915
  resolve({ bytesWritten, buffer: buffer2 });
916
916
  });
@@ -918,10 +918,10 @@ var require_fs = __commonJS({
918
918
  };
919
919
  exports2.readv = function(fd, buffers, ...args) {
920
920
  if (typeof args[args.length - 1] === "function") {
921
- return fs10.readv(fd, buffers, ...args);
921
+ return fs11.readv(fd, buffers, ...args);
922
922
  }
923
923
  return new Promise((resolve, reject) => {
924
- fs10.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
924
+ fs11.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
925
925
  if (err) return reject(err);
926
926
  resolve({ bytesRead, buffers: buffers2 });
927
927
  });
@@ -929,17 +929,17 @@ var require_fs = __commonJS({
929
929
  };
930
930
  exports2.writev = function(fd, buffers, ...args) {
931
931
  if (typeof args[args.length - 1] === "function") {
932
- return fs10.writev(fd, buffers, ...args);
932
+ return fs11.writev(fd, buffers, ...args);
933
933
  }
934
934
  return new Promise((resolve, reject) => {
935
- fs10.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
935
+ fs11.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
936
936
  if (err) return reject(err);
937
937
  resolve({ bytesWritten, buffers: buffers2 });
938
938
  });
939
939
  });
940
940
  };
941
- if (typeof fs10.realpath.native === "function") {
942
- exports2.realpath.native = u(fs10.realpath.native);
941
+ if (typeof fs11.realpath.native === "function") {
942
+ exports2.realpath.native = u(fs11.realpath.native);
943
943
  } else {
944
944
  process.emitWarning(
945
945
  "fs.realpath.native is not a function. Is fs being monkey-patched?",
@@ -972,7 +972,7 @@ var require_utils = __commonJS({
972
972
  var require_make_dir = __commonJS({
973
973
  "pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
974
974
  "use strict";
975
- var fs10 = require_fs();
975
+ var fs11 = require_fs();
976
976
  var { checkPath } = require_utils();
977
977
  var getMode = (options) => {
978
978
  const defaults = { mode: 511 };
@@ -981,14 +981,14 @@ var require_make_dir = __commonJS({
981
981
  };
982
982
  module2.exports.makeDir = async (dir, options) => {
983
983
  checkPath(dir);
984
- return fs10.mkdir(dir, {
984
+ return fs11.mkdir(dir, {
985
985
  mode: getMode(options),
986
986
  recursive: true
987
987
  });
988
988
  };
989
989
  module2.exports.makeDirSync = (dir, options) => {
990
990
  checkPath(dir);
991
- return fs10.mkdirSync(dir, {
991
+ return fs11.mkdirSync(dir, {
992
992
  mode: getMode(options),
993
993
  recursive: true
994
994
  });
@@ -1020,13 +1020,13 @@ var require_path_exists = __commonJS({
1020
1020
  "pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
1021
1021
  "use strict";
1022
1022
  var u = require_universalify().fromPromise;
1023
- var fs10 = require_fs();
1023
+ var fs11 = require_fs();
1024
1024
  function pathExists(path12) {
1025
- return fs10.access(path12).then(() => true).catch(() => false);
1025
+ return fs11.access(path12).then(() => true).catch(() => false);
1026
1026
  }
1027
1027
  module2.exports = {
1028
1028
  pathExists: u(pathExists),
1029
- pathExistsSync: fs10.existsSync
1029
+ pathExistsSync: fs11.existsSync
1030
1030
  };
1031
1031
  }
1032
1032
  });
@@ -1035,16 +1035,16 @@ var require_path_exists = __commonJS({
1035
1035
  var require_utimes = __commonJS({
1036
1036
  "pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
1037
1037
  "use strict";
1038
- var fs10 = require_fs();
1038
+ var fs11 = require_fs();
1039
1039
  var u = require_universalify().fromPromise;
1040
1040
  async function utimesMillis(path12, atime, mtime) {
1041
- const fd = await fs10.open(path12, "r+");
1041
+ const fd = await fs11.open(path12, "r+");
1042
1042
  let closeErr = null;
1043
1043
  try {
1044
- await fs10.futimes(fd, atime, mtime);
1044
+ await fs11.futimes(fd, atime, mtime);
1045
1045
  } finally {
1046
1046
  try {
1047
- await fs10.close(fd);
1047
+ await fs11.close(fd);
1048
1048
  } catch (e) {
1049
1049
  closeErr = e;
1050
1050
  }
@@ -1054,9 +1054,9 @@ var require_utimes = __commonJS({
1054
1054
  }
1055
1055
  }
1056
1056
  function utimesMillisSync(path12, atime, mtime) {
1057
- const fd = fs10.openSync(path12, "r+");
1058
- fs10.futimesSync(fd, atime, mtime);
1059
- return fs10.closeSync(fd);
1057
+ const fd = fs11.openSync(path12, "r+");
1058
+ fs11.futimesSync(fd, atime, mtime);
1059
+ return fs11.closeSync(fd);
1060
1060
  }
1061
1061
  module2.exports = {
1062
1062
  utimesMillis: u(utimesMillis),
@@ -1069,11 +1069,11 @@ var require_utimes = __commonJS({
1069
1069
  var require_stat = __commonJS({
1070
1070
  "pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
1071
1071
  "use strict";
1072
- var fs10 = require_fs();
1072
+ var fs11 = require_fs();
1073
1073
  var path12 = require("path");
1074
1074
  var u = require_universalify().fromPromise;
1075
1075
  function getStats(src, dest, opts) {
1076
- const statFunc = opts.dereference ? (file) => fs10.stat(file, { bigint: true }) : (file) => fs10.lstat(file, { bigint: true });
1076
+ const statFunc = opts.dereference ? (file) => fs11.stat(file, { bigint: true }) : (file) => fs11.lstat(file, { bigint: true });
1077
1077
  return Promise.all([
1078
1078
  statFunc(src),
1079
1079
  statFunc(dest).catch((err) => {
@@ -1084,7 +1084,7 @@ var require_stat = __commonJS({
1084
1084
  }
1085
1085
  function getStatsSync(src, dest, opts) {
1086
1086
  let destStat;
1087
- const statFunc = opts.dereference ? (file) => fs10.statSync(file, { bigint: true }) : (file) => fs10.lstatSync(file, { bigint: true });
1087
+ const statFunc = opts.dereference ? (file) => fs11.statSync(file, { bigint: true }) : (file) => fs11.lstatSync(file, { bigint: true });
1088
1088
  const srcStat = statFunc(src);
1089
1089
  try {
1090
1090
  destStat = statFunc(dest);
@@ -1146,7 +1146,7 @@ var require_stat = __commonJS({
1146
1146
  if (destParent === srcParent || destParent === path12.parse(destParent).root) return;
1147
1147
  let destStat;
1148
1148
  try {
1149
- destStat = await fs10.stat(destParent, { bigint: true });
1149
+ destStat = await fs11.stat(destParent, { bigint: true });
1150
1150
  } catch (err) {
1151
1151
  if (err.code === "ENOENT") return;
1152
1152
  throw err;
@@ -1162,7 +1162,7 @@ var require_stat = __commonJS({
1162
1162
  if (destParent === srcParent || destParent === path12.parse(destParent).root) return;
1163
1163
  let destStat;
1164
1164
  try {
1165
- destStat = fs10.statSync(destParent, { bigint: true });
1165
+ destStat = fs11.statSync(destParent, { bigint: true });
1166
1166
  } catch (err) {
1167
1167
  if (err.code === "ENOENT") return;
1168
1168
  throw err;
@@ -1201,7 +1201,7 @@ var require_stat = __commonJS({
1201
1201
  var require_copy = __commonJS({
1202
1202
  "pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
1203
1203
  "use strict";
1204
- var fs10 = require_fs();
1204
+ var fs11 = require_fs();
1205
1205
  var path12 = require("path");
1206
1206
  var { mkdirs } = require_mkdirs();
1207
1207
  var { pathExists } = require_path_exists();
@@ -1236,7 +1236,7 @@ var require_copy = __commonJS({
1236
1236
  return opts.filter(src, dest);
1237
1237
  }
1238
1238
  async function getStatsAndPerformCopy(destStat, src, dest, opts) {
1239
- const statFn = opts.dereference ? fs10.stat : fs10.lstat;
1239
+ const statFn = opts.dereference ? fs11.stat : fs11.lstat;
1240
1240
  const srcStat = await statFn(src);
1241
1241
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
1242
1242
  if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -1248,7 +1248,7 @@ var require_copy = __commonJS({
1248
1248
  async function onFile(srcStat, destStat, src, dest, opts) {
1249
1249
  if (!destStat) return copyFile(srcStat, src, dest, opts);
1250
1250
  if (opts.overwrite) {
1251
- await fs10.unlink(dest);
1251
+ await fs11.unlink(dest);
1252
1252
  return copyFile(srcStat, src, dest, opts);
1253
1253
  }
1254
1254
  if (opts.errorOnExist) {
@@ -1256,28 +1256,28 @@ var require_copy = __commonJS({
1256
1256
  }
1257
1257
  }
1258
1258
  async function copyFile(srcStat, src, dest, opts) {
1259
- await fs10.copyFile(src, dest);
1259
+ await fs11.copyFile(src, dest);
1260
1260
  if (opts.preserveTimestamps) {
1261
1261
  if (fileIsNotWritable(srcStat.mode)) {
1262
1262
  await makeFileWritable(dest, srcStat.mode);
1263
1263
  }
1264
- const updatedSrcStat = await fs10.stat(src);
1264
+ const updatedSrcStat = await fs11.stat(src);
1265
1265
  await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
1266
1266
  }
1267
- return fs10.chmod(dest, srcStat.mode);
1267
+ return fs11.chmod(dest, srcStat.mode);
1268
1268
  }
1269
1269
  function fileIsNotWritable(srcMode) {
1270
1270
  return (srcMode & 128) === 0;
1271
1271
  }
1272
1272
  function makeFileWritable(dest, srcMode) {
1273
- return fs10.chmod(dest, srcMode | 128);
1273
+ return fs11.chmod(dest, srcMode | 128);
1274
1274
  }
1275
1275
  async function onDir(srcStat, destStat, src, dest, opts) {
1276
1276
  if (!destStat) {
1277
- await fs10.mkdir(dest);
1277
+ await fs11.mkdir(dest);
1278
1278
  }
1279
1279
  const promises = [];
1280
- for await (const item of await fs10.opendir(src)) {
1280
+ for await (const item of await fs11.opendir(src)) {
1281
1281
  const srcItem = path12.join(src, item.name);
1282
1282
  const destItem = path12.join(dest, item.name);
1283
1283
  promises.push(
@@ -1292,22 +1292,22 @@ var require_copy = __commonJS({
1292
1292
  }
1293
1293
  await Promise.all(promises);
1294
1294
  if (!destStat) {
1295
- await fs10.chmod(dest, srcStat.mode);
1295
+ await fs11.chmod(dest, srcStat.mode);
1296
1296
  }
1297
1297
  }
1298
1298
  async function onLink(destStat, src, dest, opts) {
1299
- let resolvedSrc = await fs10.readlink(src);
1299
+ let resolvedSrc = await fs11.readlink(src);
1300
1300
  if (opts.dereference) {
1301
1301
  resolvedSrc = path12.resolve(process.cwd(), resolvedSrc);
1302
1302
  }
1303
1303
  if (!destStat) {
1304
- return fs10.symlink(resolvedSrc, dest);
1304
+ return fs11.symlink(resolvedSrc, dest);
1305
1305
  }
1306
1306
  let resolvedDest = null;
1307
1307
  try {
1308
- resolvedDest = await fs10.readlink(dest);
1308
+ resolvedDest = await fs11.readlink(dest);
1309
1309
  } catch (e) {
1310
- if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs10.symlink(resolvedSrc, dest);
1310
+ if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs11.symlink(resolvedSrc, dest);
1311
1311
  throw e;
1312
1312
  }
1313
1313
  if (opts.dereference) {
@@ -1319,8 +1319,8 @@ var require_copy = __commonJS({
1319
1319
  if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
1320
1320
  throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
1321
1321
  }
1322
- await fs10.unlink(dest);
1323
- return fs10.symlink(resolvedSrc, dest);
1322
+ await fs11.unlink(dest);
1323
+ return fs11.symlink(resolvedSrc, dest);
1324
1324
  }
1325
1325
  module2.exports = copy2;
1326
1326
  }
@@ -1330,7 +1330,7 @@ var require_copy = __commonJS({
1330
1330
  var require_copy_sync = __commonJS({
1331
1331
  "pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
1332
1332
  "use strict";
1333
- var fs10 = require_graceful_fs();
1333
+ var fs11 = require_graceful_fs();
1334
1334
  var path12 = require("path");
1335
1335
  var mkdirsSync = require_mkdirs().mkdirsSync;
1336
1336
  var utimesMillisSync = require_utimes().utimesMillisSync;
@@ -1353,11 +1353,11 @@ var require_copy_sync = __commonJS({
1353
1353
  stat.checkParentPathsSync(src, srcStat, dest, "copy");
1354
1354
  if (opts.filter && !opts.filter(src, dest)) return;
1355
1355
  const destParent = path12.dirname(dest);
1356
- if (!fs10.existsSync(destParent)) mkdirsSync(destParent);
1356
+ if (!fs11.existsSync(destParent)) mkdirsSync(destParent);
1357
1357
  return getStats(destStat, src, dest, opts);
1358
1358
  }
1359
1359
  function getStats(destStat, src, dest, opts) {
1360
- const statSync = opts.dereference ? fs10.statSync : fs10.lstatSync;
1360
+ const statSync = opts.dereference ? fs11.statSync : fs11.lstatSync;
1361
1361
  const srcStat = statSync(src);
1362
1362
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
1363
1363
  else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -1372,14 +1372,14 @@ var require_copy_sync = __commonJS({
1372
1372
  }
1373
1373
  function mayCopyFile(srcStat, src, dest, opts) {
1374
1374
  if (opts.overwrite) {
1375
- fs10.unlinkSync(dest);
1375
+ fs11.unlinkSync(dest);
1376
1376
  return copyFile(srcStat, src, dest, opts);
1377
1377
  } else if (opts.errorOnExist) {
1378
1378
  throw new Error(`'${dest}' already exists`);
1379
1379
  }
1380
1380
  }
1381
1381
  function copyFile(srcStat, src, dest, opts) {
1382
- fs10.copyFileSync(src, dest);
1382
+ fs11.copyFileSync(src, dest);
1383
1383
  if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
1384
1384
  return setDestMode(dest, srcStat.mode);
1385
1385
  }
@@ -1394,10 +1394,10 @@ var require_copy_sync = __commonJS({
1394
1394
  return setDestMode(dest, srcMode | 128);
1395
1395
  }
1396
1396
  function setDestMode(dest, srcMode) {
1397
- return fs10.chmodSync(dest, srcMode);
1397
+ return fs11.chmodSync(dest, srcMode);
1398
1398
  }
1399
1399
  function setDestTimestamps(src, dest) {
1400
- const updatedSrcStat = fs10.statSync(src);
1400
+ const updatedSrcStat = fs11.statSync(src);
1401
1401
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
1402
1402
  }
1403
1403
  function onDir(srcStat, destStat, src, dest, opts) {
@@ -1405,12 +1405,12 @@ var require_copy_sync = __commonJS({
1405
1405
  return copyDir(src, dest, opts);
1406
1406
  }
1407
1407
  function mkDirAndCopy(srcMode, src, dest, opts) {
1408
- fs10.mkdirSync(dest);
1408
+ fs11.mkdirSync(dest);
1409
1409
  copyDir(src, dest, opts);
1410
1410
  return setDestMode(dest, srcMode);
1411
1411
  }
1412
1412
  function copyDir(src, dest, opts) {
1413
- const dir = fs10.opendirSync(src);
1413
+ const dir = fs11.opendirSync(src);
1414
1414
  try {
1415
1415
  let dirent;
1416
1416
  while ((dirent = dir.readSync()) !== null) {
@@ -1428,18 +1428,18 @@ var require_copy_sync = __commonJS({
1428
1428
  return getStats(destStat, srcItem, destItem, opts);
1429
1429
  }
1430
1430
  function onLink(destStat, src, dest, opts) {
1431
- let resolvedSrc = fs10.readlinkSync(src);
1431
+ let resolvedSrc = fs11.readlinkSync(src);
1432
1432
  if (opts.dereference) {
1433
1433
  resolvedSrc = path12.resolve(process.cwd(), resolvedSrc);
1434
1434
  }
1435
1435
  if (!destStat) {
1436
- return fs10.symlinkSync(resolvedSrc, dest);
1436
+ return fs11.symlinkSync(resolvedSrc, dest);
1437
1437
  } else {
1438
1438
  let resolvedDest;
1439
1439
  try {
1440
- resolvedDest = fs10.readlinkSync(dest);
1440
+ resolvedDest = fs11.readlinkSync(dest);
1441
1441
  } catch (err) {
1442
- if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs10.symlinkSync(resolvedSrc, dest);
1442
+ if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs11.symlinkSync(resolvedSrc, dest);
1443
1443
  throw err;
1444
1444
  }
1445
1445
  if (opts.dereference) {
@@ -1455,8 +1455,8 @@ var require_copy_sync = __commonJS({
1455
1455
  }
1456
1456
  }
1457
1457
  function copyLink(resolvedSrc, dest) {
1458
- fs10.unlinkSync(dest);
1459
- return fs10.symlinkSync(resolvedSrc, dest);
1458
+ fs11.unlinkSync(dest);
1459
+ return fs11.symlinkSync(resolvedSrc, dest);
1460
1460
  }
1461
1461
  module2.exports = copySync;
1462
1462
  }
@@ -1478,13 +1478,13 @@ var require_copy2 = __commonJS({
1478
1478
  var require_remove = __commonJS({
1479
1479
  "pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
1480
1480
  "use strict";
1481
- var fs10 = require_graceful_fs();
1481
+ var fs11 = require_graceful_fs();
1482
1482
  var u = require_universalify().fromCallback;
1483
1483
  function remove(path12, callback) {
1484
- fs10.rm(path12, { recursive: true, force: true }, callback);
1484
+ fs11.rm(path12, { recursive: true, force: true }, callback);
1485
1485
  }
1486
1486
  function removeSync(path12) {
1487
- fs10.rmSync(path12, { recursive: true, force: true });
1487
+ fs11.rmSync(path12, { recursive: true, force: true });
1488
1488
  }
1489
1489
  module2.exports = {
1490
1490
  remove: u(remove),
@@ -1498,14 +1498,14 @@ var require_empty = __commonJS({
1498
1498
  "pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
1499
1499
  "use strict";
1500
1500
  var u = require_universalify().fromPromise;
1501
- var fs10 = require_fs();
1501
+ var fs11 = require_fs();
1502
1502
  var path12 = require("path");
1503
1503
  var mkdir = require_mkdirs();
1504
1504
  var remove = require_remove();
1505
1505
  var emptyDir = u(async function emptyDir2(dir) {
1506
1506
  let items;
1507
1507
  try {
1508
- items = await fs10.readdir(dir);
1508
+ items = await fs11.readdir(dir);
1509
1509
  } catch {
1510
1510
  return mkdir.mkdirs(dir);
1511
1511
  }
@@ -1514,7 +1514,7 @@ var require_empty = __commonJS({
1514
1514
  function emptyDirSync(dir) {
1515
1515
  let items;
1516
1516
  try {
1517
- items = fs10.readdirSync(dir);
1517
+ items = fs11.readdirSync(dir);
1518
1518
  } catch {
1519
1519
  return mkdir.mkdirsSync(dir);
1520
1520
  }
@@ -1538,51 +1538,51 @@ var require_file = __commonJS({
1538
1538
  "use strict";
1539
1539
  var u = require_universalify().fromPromise;
1540
1540
  var path12 = require("path");
1541
- var fs10 = require_fs();
1541
+ var fs11 = require_fs();
1542
1542
  var mkdir = require_mkdirs();
1543
1543
  async function createFile(file) {
1544
1544
  let stats;
1545
1545
  try {
1546
- stats = await fs10.stat(file);
1546
+ stats = await fs11.stat(file);
1547
1547
  } catch {
1548
1548
  }
1549
1549
  if (stats && stats.isFile()) return;
1550
1550
  const dir = path12.dirname(file);
1551
1551
  let dirStats = null;
1552
1552
  try {
1553
- dirStats = await fs10.stat(dir);
1553
+ dirStats = await fs11.stat(dir);
1554
1554
  } catch (err) {
1555
1555
  if (err.code === "ENOENT") {
1556
1556
  await mkdir.mkdirs(dir);
1557
- await fs10.writeFile(file, "");
1557
+ await fs11.writeFile(file, "");
1558
1558
  return;
1559
1559
  } else {
1560
1560
  throw err;
1561
1561
  }
1562
1562
  }
1563
1563
  if (dirStats.isDirectory()) {
1564
- await fs10.writeFile(file, "");
1564
+ await fs11.writeFile(file, "");
1565
1565
  } else {
1566
- await fs10.readdir(dir);
1566
+ await fs11.readdir(dir);
1567
1567
  }
1568
1568
  }
1569
1569
  function createFileSync(file) {
1570
1570
  let stats;
1571
1571
  try {
1572
- stats = fs10.statSync(file);
1572
+ stats = fs11.statSync(file);
1573
1573
  } catch {
1574
1574
  }
1575
1575
  if (stats && stats.isFile()) return;
1576
1576
  const dir = path12.dirname(file);
1577
1577
  try {
1578
- if (!fs10.statSync(dir).isDirectory()) {
1579
- fs10.readdirSync(dir);
1578
+ if (!fs11.statSync(dir).isDirectory()) {
1579
+ fs11.readdirSync(dir);
1580
1580
  }
1581
1581
  } catch (err) {
1582
1582
  if (err && err.code === "ENOENT") mkdir.mkdirsSync(dir);
1583
1583
  else throw err;
1584
1584
  }
1585
- fs10.writeFileSync(file, "");
1585
+ fs11.writeFileSync(file, "");
1586
1586
  }
1587
1587
  module2.exports = {
1588
1588
  createFile: u(createFile),
@@ -1597,19 +1597,19 @@ var require_link = __commonJS({
1597
1597
  "use strict";
1598
1598
  var u = require_universalify().fromPromise;
1599
1599
  var path12 = require("path");
1600
- var fs10 = require_fs();
1600
+ var fs11 = require_fs();
1601
1601
  var mkdir = require_mkdirs();
1602
1602
  var { pathExists } = require_path_exists();
1603
1603
  var { areIdentical } = require_stat();
1604
1604
  async function createLink(srcpath, dstpath) {
1605
1605
  let dstStat;
1606
1606
  try {
1607
- dstStat = await fs10.lstat(dstpath);
1607
+ dstStat = await fs11.lstat(dstpath);
1608
1608
  } catch {
1609
1609
  }
1610
1610
  let srcStat;
1611
1611
  try {
1612
- srcStat = await fs10.lstat(srcpath);
1612
+ srcStat = await fs11.lstat(srcpath);
1613
1613
  } catch (err) {
1614
1614
  err.message = err.message.replace("lstat", "ensureLink");
1615
1615
  throw err;
@@ -1620,26 +1620,26 @@ var require_link = __commonJS({
1620
1620
  if (!dirExists) {
1621
1621
  await mkdir.mkdirs(dir);
1622
1622
  }
1623
- await fs10.link(srcpath, dstpath);
1623
+ await fs11.link(srcpath, dstpath);
1624
1624
  }
1625
1625
  function createLinkSync(srcpath, dstpath) {
1626
1626
  let dstStat;
1627
1627
  try {
1628
- dstStat = fs10.lstatSync(dstpath);
1628
+ dstStat = fs11.lstatSync(dstpath);
1629
1629
  } catch {
1630
1630
  }
1631
1631
  try {
1632
- const srcStat = fs10.lstatSync(srcpath);
1632
+ const srcStat = fs11.lstatSync(srcpath);
1633
1633
  if (dstStat && areIdentical(srcStat, dstStat)) return;
1634
1634
  } catch (err) {
1635
1635
  err.message = err.message.replace("lstat", "ensureLink");
1636
1636
  throw err;
1637
1637
  }
1638
1638
  const dir = path12.dirname(dstpath);
1639
- const dirExists = fs10.existsSync(dir);
1640
- if (dirExists) return fs10.linkSync(srcpath, dstpath);
1639
+ const dirExists = fs11.existsSync(dir);
1640
+ if (dirExists) return fs11.linkSync(srcpath, dstpath);
1641
1641
  mkdir.mkdirsSync(dir);
1642
- return fs10.linkSync(srcpath, dstpath);
1642
+ return fs11.linkSync(srcpath, dstpath);
1643
1643
  }
1644
1644
  module2.exports = {
1645
1645
  createLink: u(createLink),
@@ -1653,13 +1653,13 @@ var require_symlink_paths = __commonJS({
1653
1653
  "pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
1654
1654
  "use strict";
1655
1655
  var path12 = require("path");
1656
- var fs10 = require_fs();
1656
+ var fs11 = require_fs();
1657
1657
  var { pathExists } = require_path_exists();
1658
1658
  var u = require_universalify().fromPromise;
1659
1659
  async function symlinkPaths(srcpath, dstpath) {
1660
1660
  if (path12.isAbsolute(srcpath)) {
1661
1661
  try {
1662
- await fs10.lstat(srcpath);
1662
+ await fs11.lstat(srcpath);
1663
1663
  } catch (err) {
1664
1664
  err.message = err.message.replace("lstat", "ensureSymlink");
1665
1665
  throw err;
@@ -1679,7 +1679,7 @@ var require_symlink_paths = __commonJS({
1679
1679
  };
1680
1680
  }
1681
1681
  try {
1682
- await fs10.lstat(srcpath);
1682
+ await fs11.lstat(srcpath);
1683
1683
  } catch (err) {
1684
1684
  err.message = err.message.replace("lstat", "ensureSymlink");
1685
1685
  throw err;
@@ -1691,7 +1691,7 @@ var require_symlink_paths = __commonJS({
1691
1691
  }
1692
1692
  function symlinkPathsSync(srcpath, dstpath) {
1693
1693
  if (path12.isAbsolute(srcpath)) {
1694
- const exists2 = fs10.existsSync(srcpath);
1694
+ const exists2 = fs11.existsSync(srcpath);
1695
1695
  if (!exists2) throw new Error("absolute srcpath does not exist");
1696
1696
  return {
1697
1697
  toCwd: srcpath,
@@ -1700,14 +1700,14 @@ var require_symlink_paths = __commonJS({
1700
1700
  }
1701
1701
  const dstdir = path12.dirname(dstpath);
1702
1702
  const relativeToDst = path12.join(dstdir, srcpath);
1703
- const exists = fs10.existsSync(relativeToDst);
1703
+ const exists = fs11.existsSync(relativeToDst);
1704
1704
  if (exists) {
1705
1705
  return {
1706
1706
  toCwd: relativeToDst,
1707
1707
  toDst: srcpath
1708
1708
  };
1709
1709
  }
1710
- const srcExists = fs10.existsSync(srcpath);
1710
+ const srcExists = fs11.existsSync(srcpath);
1711
1711
  if (!srcExists) throw new Error("relative srcpath does not exist");
1712
1712
  return {
1713
1713
  toCwd: srcpath,
@@ -1725,13 +1725,13 @@ var require_symlink_paths = __commonJS({
1725
1725
  var require_symlink_type = __commonJS({
1726
1726
  "pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
1727
1727
  "use strict";
1728
- var fs10 = require_fs();
1728
+ var fs11 = require_fs();
1729
1729
  var u = require_universalify().fromPromise;
1730
1730
  async function symlinkType(srcpath, type) {
1731
1731
  if (type) return type;
1732
1732
  let stats;
1733
1733
  try {
1734
- stats = await fs10.lstat(srcpath);
1734
+ stats = await fs11.lstat(srcpath);
1735
1735
  } catch {
1736
1736
  return "file";
1737
1737
  }
@@ -1741,7 +1741,7 @@ var require_symlink_type = __commonJS({
1741
1741
  if (type) return type;
1742
1742
  let stats;
1743
1743
  try {
1744
- stats = fs10.lstatSync(srcpath);
1744
+ stats = fs11.lstatSync(srcpath);
1745
1745
  } catch {
1746
1746
  return "file";
1747
1747
  }
@@ -1760,7 +1760,7 @@ var require_symlink = __commonJS({
1760
1760
  "use strict";
1761
1761
  var u = require_universalify().fromPromise;
1762
1762
  var path12 = require("path");
1763
- var fs10 = require_fs();
1763
+ var fs11 = require_fs();
1764
1764
  var { mkdirs, mkdirsSync } = require_mkdirs();
1765
1765
  var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
1766
1766
  var { symlinkType, symlinkTypeSync } = require_symlink_type();
@@ -1769,13 +1769,13 @@ var require_symlink = __commonJS({
1769
1769
  async function createSymlink(srcpath, dstpath, type) {
1770
1770
  let stats;
1771
1771
  try {
1772
- stats = await fs10.lstat(dstpath);
1772
+ stats = await fs11.lstat(dstpath);
1773
1773
  } catch {
1774
1774
  }
1775
1775
  if (stats && stats.isSymbolicLink()) {
1776
1776
  const [srcStat, dstStat] = await Promise.all([
1777
- fs10.stat(srcpath),
1778
- fs10.stat(dstpath)
1777
+ fs11.stat(srcpath),
1778
+ fs11.stat(dstpath)
1779
1779
  ]);
1780
1780
  if (areIdentical(srcStat, dstStat)) return;
1781
1781
  }
@@ -1786,27 +1786,27 @@ var require_symlink = __commonJS({
1786
1786
  if (!await pathExists(dir)) {
1787
1787
  await mkdirs(dir);
1788
1788
  }
1789
- return fs10.symlink(srcpath, dstpath, toType);
1789
+ return fs11.symlink(srcpath, dstpath, toType);
1790
1790
  }
1791
1791
  function createSymlinkSync(srcpath, dstpath, type) {
1792
1792
  let stats;
1793
1793
  try {
1794
- stats = fs10.lstatSync(dstpath);
1794
+ stats = fs11.lstatSync(dstpath);
1795
1795
  } catch {
1796
1796
  }
1797
1797
  if (stats && stats.isSymbolicLink()) {
1798
- const srcStat = fs10.statSync(srcpath);
1799
- const dstStat = fs10.statSync(dstpath);
1798
+ const srcStat = fs11.statSync(srcpath);
1799
+ const dstStat = fs11.statSync(dstpath);
1800
1800
  if (areIdentical(srcStat, dstStat)) return;
1801
1801
  }
1802
1802
  const relative = symlinkPathsSync(srcpath, dstpath);
1803
1803
  srcpath = relative.toDst;
1804
1804
  type = symlinkTypeSync(relative.toCwd, type);
1805
1805
  const dir = path12.dirname(dstpath);
1806
- const exists = fs10.existsSync(dir);
1807
- if (exists) return fs10.symlinkSync(srcpath, dstpath, type);
1806
+ const exists = fs11.existsSync(dir);
1807
+ if (exists) return fs11.symlinkSync(srcpath, dstpath, type);
1808
1808
  mkdirsSync(dir);
1809
- return fs10.symlinkSync(srcpath, dstpath, type);
1809
+ return fs11.symlinkSync(srcpath, dstpath, type);
1810
1810
  }
1811
1811
  module2.exports = {
1812
1812
  createSymlink: u(createSymlink),
@@ -1873,9 +1873,9 @@ var require_jsonfile = __commonJS({
1873
1873
  if (typeof options === "string") {
1874
1874
  options = { encoding: options };
1875
1875
  }
1876
- const fs10 = options.fs || _fs;
1876
+ const fs11 = options.fs || _fs;
1877
1877
  const shouldThrow = "throws" in options ? options.throws : true;
1878
- let data = await universalify.fromCallback(fs10.readFile)(file, options);
1878
+ let data = await universalify.fromCallback(fs11.readFile)(file, options);
1879
1879
  data = stripBom(data);
1880
1880
  let obj;
1881
1881
  try {
@@ -1895,10 +1895,10 @@ var require_jsonfile = __commonJS({
1895
1895
  if (typeof options === "string") {
1896
1896
  options = { encoding: options };
1897
1897
  }
1898
- const fs10 = options.fs || _fs;
1898
+ const fs11 = options.fs || _fs;
1899
1899
  const shouldThrow = "throws" in options ? options.throws : true;
1900
1900
  try {
1901
- let content = fs10.readFileSync(file, options);
1901
+ let content = fs11.readFileSync(file, options);
1902
1902
  content = stripBom(content);
1903
1903
  return JSON.parse(content, options.reviver);
1904
1904
  } catch (err) {
@@ -1911,15 +1911,15 @@ var require_jsonfile = __commonJS({
1911
1911
  }
1912
1912
  }
1913
1913
  async function _writeFile(file, obj, options = {}) {
1914
- const fs10 = options.fs || _fs;
1914
+ const fs11 = options.fs || _fs;
1915
1915
  const str = stringify2(obj, options);
1916
- await universalify.fromCallback(fs10.writeFile)(file, str, options);
1916
+ await universalify.fromCallback(fs11.writeFile)(file, str, options);
1917
1917
  }
1918
1918
  var writeFile = universalify.fromPromise(_writeFile);
1919
1919
  function writeFileSync(file, obj, options = {}) {
1920
- const fs10 = options.fs || _fs;
1920
+ const fs11 = options.fs || _fs;
1921
1921
  const str = stringify2(obj, options);
1922
- return fs10.writeFileSync(file, str, options);
1922
+ return fs11.writeFileSync(file, str, options);
1923
1923
  }
1924
1924
  var jsonfile = {
1925
1925
  readFile,
@@ -1951,7 +1951,7 @@ var require_output_file = __commonJS({
1951
1951
  "pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/output-file/index.js"(exports2, module2) {
1952
1952
  "use strict";
1953
1953
  var u = require_universalify().fromPromise;
1954
- var fs10 = require_fs();
1954
+ var fs11 = require_fs();
1955
1955
  var path12 = require("path");
1956
1956
  var mkdir = require_mkdirs();
1957
1957
  var pathExists = require_path_exists().pathExists;
@@ -1960,14 +1960,14 @@ var require_output_file = __commonJS({
1960
1960
  if (!await pathExists(dir)) {
1961
1961
  await mkdir.mkdirs(dir);
1962
1962
  }
1963
- return fs10.writeFile(file, data, encoding);
1963
+ return fs11.writeFile(file, data, encoding);
1964
1964
  }
1965
1965
  function outputFileSync(file, ...args) {
1966
1966
  const dir = path12.dirname(file);
1967
- if (!fs10.existsSync(dir)) {
1967
+ if (!fs11.existsSync(dir)) {
1968
1968
  mkdir.mkdirsSync(dir);
1969
1969
  }
1970
- fs10.writeFileSync(file, ...args);
1970
+ fs11.writeFileSync(file, ...args);
1971
1971
  }
1972
1972
  module2.exports = {
1973
1973
  outputFile: u(outputFile),
@@ -2026,7 +2026,7 @@ var require_json = __commonJS({
2026
2026
  var require_move = __commonJS({
2027
2027
  "pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
2028
2028
  "use strict";
2029
- var fs10 = require_fs();
2029
+ var fs11 = require_fs();
2030
2030
  var path12 = require("path");
2031
2031
  var { copy: copy2 } = require_copy2();
2032
2032
  var { remove } = require_remove();
@@ -2053,7 +2053,7 @@ var require_move = __commonJS({
2053
2053
  }
2054
2054
  }
2055
2055
  try {
2056
- await fs10.rename(src, dest);
2056
+ await fs11.rename(src, dest);
2057
2057
  } catch (err) {
2058
2058
  if (err.code !== "EXDEV") {
2059
2059
  throw err;
@@ -2078,7 +2078,7 @@ var require_move = __commonJS({
2078
2078
  var require_move_sync = __commonJS({
2079
2079
  "pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
2080
2080
  "use strict";
2081
- var fs10 = require_graceful_fs();
2081
+ var fs11 = require_graceful_fs();
2082
2082
  var path12 = require("path");
2083
2083
  var copySync = require_copy2().copySync;
2084
2084
  var removeSync = require_remove().removeSync;
@@ -2103,12 +2103,12 @@ var require_move_sync = __commonJS({
2103
2103
  removeSync(dest);
2104
2104
  return rename(src, dest, overwrite);
2105
2105
  }
2106
- if (fs10.existsSync(dest)) throw new Error("dest already exists.");
2106
+ if (fs11.existsSync(dest)) throw new Error("dest already exists.");
2107
2107
  return rename(src, dest, overwrite);
2108
2108
  }
2109
2109
  function rename(src, dest, overwrite) {
2110
2110
  try {
2111
- fs10.renameSync(src, dest);
2111
+ fs11.renameSync(src, dest);
2112
2112
  } catch (err) {
2113
2113
  if (err.code !== "EXDEV") throw err;
2114
2114
  return moveAcrossDevice(src, dest, overwrite);
@@ -6706,7 +6706,7 @@ var require_types = __commonJS({
6706
6706
  var require_mime = __commonJS({
6707
6707
  "pnp:/builds/normed/bundle/.yarn/cache/mime-npm-1.6.0-60ae95038a-b7d98bb1e0.zip/node_modules/mime/mime.js"(exports2, module2) {
6708
6708
  var path12 = require("path");
6709
- var fs10 = require("fs");
6709
+ var fs11 = require("fs");
6710
6710
  function Mime() {
6711
6711
  this.types = /* @__PURE__ */ Object.create(null);
6712
6712
  this.extensions = /* @__PURE__ */ Object.create(null);
@@ -6727,7 +6727,7 @@ var require_mime = __commonJS({
6727
6727
  };
6728
6728
  Mime.prototype.load = function(file) {
6729
6729
  this._loading = file;
6730
- var map = {}, content = fs10.readFileSync(file, "ascii"), lines = content.split(/[\r\n]+/);
6730
+ var map = {}, content = fs11.readFileSync(file, "ascii"), lines = content.split(/[\r\n]+/);
6731
6731
  lines.forEach(function(line) {
6732
6732
  var fields = line.replace(/\s*#.*|^\s*|\s*$/g, "").split(/\s+/);
6733
6733
  map[fields.shift()] = fields;
@@ -8531,13 +8531,13 @@ var require_fs2 = __commonJS({
8531
8531
  "pnp:/builds/normed/bundle/.yarn/cache/less-npm-4.3.0-29a3ad37f8-893d058939.zip/node_modules/less/lib/less-node/fs.js"(exports2) {
8532
8532
  "use strict";
8533
8533
  Object.defineProperty(exports2, "__esModule", { value: true });
8534
- var fs10;
8534
+ var fs11;
8535
8535
  try {
8536
- fs10 = require_graceful_fs();
8536
+ fs11 = require_graceful_fs();
8537
8537
  } catch (e) {
8538
- fs10 = require("fs");
8538
+ fs11 = require("fs");
8539
8539
  }
8540
- exports2.default = fs10;
8540
+ exports2.default = fs11;
8541
8541
  }
8542
8542
  });
8543
8543
 
@@ -14337,7 +14337,7 @@ var require_decoder = __commonJS({
14337
14337
  // pnp:/builds/normed/bundle/.yarn/cache/needle-npm-3.3.1-069ce952ef-31925ec72b.zip/node_modules/needle/lib/utils.js
14338
14338
  var require_utils3 = __commonJS({
14339
14339
  "pnp:/builds/normed/bundle/.yarn/cache/needle-npm-3.3.1-069ce952ef-31925ec72b.zip/node_modules/needle/lib/utils.js"(exports2, module2) {
14340
- var fs10 = require("fs");
14340
+ var fs11 = require("fs");
14341
14341
  var url = require("url");
14342
14342
  var stream = require("stream");
14343
14343
  function resolve_url(href, base) {
@@ -14388,7 +14388,7 @@ var require_utils3 = __commonJS({
14388
14388
  return cb(given_length);
14389
14389
  if (stream2.end !== void 0 && stream2.end !== Infinity && stream2.start !== void 0)
14390
14390
  return cb(stream2.end + 1 - (stream2.start || 0));
14391
- fs10.stat(stream2.path, function(err, stat) {
14391
+ fs11.stat(stream2.path, function(err, stat) {
14392
14392
  cb(stat ? stat.size - (stream2.start || 0) : null);
14393
14393
  });
14394
14394
  }
@@ -14496,7 +14496,7 @@ var require_package = __commonJS({
14496
14496
  // pnp:/builds/normed/bundle/.yarn/cache/needle-npm-3.3.1-069ce952ef-31925ec72b.zip/node_modules/needle/lib/needle.js
14497
14497
  var require_needle = __commonJS({
14498
14498
  "pnp:/builds/normed/bundle/.yarn/cache/needle-npm-3.3.1-069ce952ef-31925ec72b.zip/node_modules/needle/lib/needle.js"(exports2, module2) {
14499
- var fs10 = require("fs");
14499
+ var fs11 = require("fs");
14500
14500
  var http = require("http");
14501
14501
  var https = require("https");
14502
14502
  var url = require("url");
@@ -14896,7 +14896,7 @@ var require_needle = __commonJS({
14896
14896
  if (err && err.message == "write after end") request.destroy();
14897
14897
  });
14898
14898
  if (config.output && resp.statusCode == 200) {
14899
- var file = fs10.createWriteStream(config.output);
14899
+ var file = fs11.createWriteStream(config.output);
14900
14900
  file.on("error", had_error);
14901
14901
  out.on("end", function() {
14902
14902
  if (file.writable) file.end();
@@ -22668,13 +22668,13 @@ var require_url = __commonJS({
22668
22668
  return "\\".concat(match);
22669
22669
  });
22670
22670
  }
22671
- var URL = function(val, index, currentFileInfo, isEvald) {
22671
+ var URL2 = function(val, index, currentFileInfo, isEvald) {
22672
22672
  this.value = val;
22673
22673
  this._index = index;
22674
22674
  this._fileInfo = currentFileInfo;
22675
22675
  this.isEvald = isEvald;
22676
22676
  };
22677
- URL.prototype = Object.assign(new node_1.default(), {
22677
+ URL2.prototype = Object.assign(new node_1.default(), {
22678
22678
  type: "Url",
22679
22679
  accept: function(visitor) {
22680
22680
  this.value = visitor.visit(this.value);
@@ -22709,10 +22709,10 @@ var require_url = __commonJS({
22709
22709
  }
22710
22710
  }
22711
22711
  }
22712
- return new URL(val, this.getIndex(), this.fileInfo(), true);
22712
+ return new URL2(val, this.getIndex(), this.fileInfo(), true);
22713
22713
  }
22714
22714
  });
22715
- exports2.default = URL;
22715
+ exports2.default = URL2;
22716
22716
  }
22717
22717
  });
22718
22718
 
@@ -26749,7 +26749,7 @@ var require_readUInt = __commonJS({
26749
26749
  var require_tiff = __commonJS({
26750
26750
  "pnp:/builds/normed/bundle/.yarn/cache/image-size-patch-bc5785d808-6fbf67bc78.zip/node_modules/image-size/lib/types/tiff.js"(exports2, module2) {
26751
26751
  "use strict";
26752
- var fs10 = require("fs");
26752
+ var fs11 = require("fs");
26753
26753
  var readUInt = require_readUInt();
26754
26754
  function isTIFF(buffer) {
26755
26755
  var hex4 = buffer.toString("hex", 0, 4);
@@ -26758,13 +26758,13 @@ var require_tiff = __commonJS({
26758
26758
  function readIFD(buffer, filepath, isBigEndian) {
26759
26759
  var ifdOffset = readUInt(buffer, 32, 4, isBigEndian);
26760
26760
  var bufferSize = 1024;
26761
- var fileSize = fs10.statSync(filepath).size;
26761
+ var fileSize = fs11.statSync(filepath).size;
26762
26762
  if (ifdOffset + bufferSize > fileSize) {
26763
26763
  bufferSize = fileSize - ifdOffset - 10;
26764
26764
  }
26765
26765
  var endBuffer = new Buffer(bufferSize);
26766
- var descriptor = fs10.openSync(filepath, "r");
26767
- fs10.readSync(descriptor, endBuffer, 0, bufferSize, ifdOffset);
26766
+ var descriptor = fs11.openSync(filepath, "r");
26767
+ fs11.readSync(descriptor, endBuffer, 0, bufferSize, ifdOffset);
26768
26768
  var ifdBuffer = endBuffer.slice(2);
26769
26769
  return ifdBuffer;
26770
26770
  }
@@ -26935,7 +26935,7 @@ var require_detector = __commonJS({
26935
26935
  var require_lib4 = __commonJS({
26936
26936
  "pnp:/builds/normed/bundle/.yarn/cache/image-size-patch-bc5785d808-6fbf67bc78.zip/node_modules/image-size/lib/index.js"(exports2, module2) {
26937
26937
  "use strict";
26938
- var fs10 = require("fs");
26938
+ var fs11 = require("fs");
26939
26939
  var path12 = require("path");
26940
26940
  var detector = require_detector();
26941
26941
  var handlers = {};
@@ -26961,33 +26961,33 @@ var require_lib4 = __commonJS({
26961
26961
  throw new TypeError("unsupported file type: " + type + " (file: " + filepath + ")");
26962
26962
  }
26963
26963
  function asyncFileToBuffer(filepath, callback) {
26964
- fs10.open(filepath, "r", function(err, descriptor) {
26964
+ fs11.open(filepath, "r", function(err, descriptor) {
26965
26965
  if (err) {
26966
26966
  return callback(err);
26967
26967
  }
26968
- var size = fs10.fstatSync(descriptor).size;
26968
+ var size = fs11.fstatSync(descriptor).size;
26969
26969
  if (size <= 0) {
26970
26970
  return callback(new Error("File size is not greater than 0 \u2014\u2014 " + filepath));
26971
26971
  }
26972
26972
  var bufferSize = Math.min(size, MaxBufferSize);
26973
26973
  var buffer = new Buffer(bufferSize);
26974
- fs10.read(descriptor, buffer, 0, bufferSize, 0, function(err2) {
26974
+ fs11.read(descriptor, buffer, 0, bufferSize, 0, function(err2) {
26975
26975
  if (err2) {
26976
26976
  return callback(err2);
26977
26977
  }
26978
- fs10.close(descriptor, function(err3) {
26978
+ fs11.close(descriptor, function(err3) {
26979
26979
  callback(err3, buffer);
26980
26980
  });
26981
26981
  });
26982
26982
  });
26983
26983
  }
26984
26984
  function syncFileToBuffer(filepath) {
26985
- var descriptor = fs10.openSync(filepath, "r");
26986
- var size = fs10.fstatSync(descriptor).size;
26985
+ var descriptor = fs11.openSync(filepath, "r");
26986
+ var size = fs11.fstatSync(descriptor).size;
26987
26987
  var bufferSize = Math.min(size, MaxBufferSize);
26988
26988
  var buffer = new Buffer(bufferSize);
26989
- fs10.readSync(descriptor, buffer, 0, bufferSize, 0);
26990
- fs10.closeSync(descriptor);
26989
+ fs11.readSync(descriptor, buffer, 0, bufferSize, 0);
26990
+ fs11.closeSync(descriptor);
26991
26991
  return buffer;
26992
26992
  }
26993
26993
  module2.exports = function(input, callback) {
@@ -35143,7 +35143,7 @@ var require_pug_walk = __commonJS({
35143
35143
  var require_pug_load = __commonJS({
35144
35144
  "pnp:/builds/normed/bundle/.yarn/cache/pug-load-npm-3.0.0-dc9f2273d3-1800ec5199.zip/node_modules/pug-load/index.js"(exports2, module2) {
35145
35145
  "use strict";
35146
- var fs10 = require("fs");
35146
+ var fs11 = require("fs");
35147
35147
  var path12 = require("path");
35148
35148
  var walk = require_pug_walk();
35149
35149
  var assign = require_object_assign();
@@ -35214,7 +35214,7 @@ var require_pug_load = __commonJS({
35214
35214
  return filename;
35215
35215
  };
35216
35216
  load.read = function read(filename, options) {
35217
- return fs10.readFileSync(filename);
35217
+ return fs11.readFileSync(filename);
35218
35218
  };
35219
35219
  load.validateOptions = function validateOptions(options) {
35220
35220
  if (typeof options !== "object") {
@@ -35860,7 +35860,7 @@ var require_is_promise = __commonJS({
35860
35860
  var require_jstransformer = __commonJS({
35861
35861
  "pnp:/builds/normed/bundle/.yarn/cache/jstransformer-npm-1.0.0-41a47d180a-7bca6e2e2f.zip/node_modules/jstransformer/index.js"(exports2, module2) {
35862
35862
  "use strict";
35863
- var fs10 = require("fs");
35863
+ var fs11 = require("fs");
35864
35864
  var assert = require("assert");
35865
35865
  var Promise2 = require_promise();
35866
35866
  var isPromise = require_is_promise();
@@ -35872,9 +35872,9 @@ var require_jstransformer = __commonJS({
35872
35872
  tr.normalizeFnAsync = normalizeFnAsync;
35873
35873
  tr.normalize = normalize;
35874
35874
  tr.normalizeAsync = normalizeAsync;
35875
- if (fs10.readFile) {
35876
- tr.readFile = Promise2.denodeify(fs10.readFile);
35877
- tr.readFileSync = fs10.readFileSync;
35875
+ if (fs11.readFile) {
35876
+ tr.readFile = Promise2.denodeify(fs11.readFile);
35877
+ tr.readFileSync = fs11.readFileSync;
35878
35878
  } else {
35879
35879
  tr.readFile = function() {
35880
35880
  throw new Error("fs.readFile unsupported");
@@ -36668,14 +36668,14 @@ var require_is_core_module = __commonJS({
36668
36668
  // pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/async.js
36669
36669
  var require_async = __commonJS({
36670
36670
  "pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/async.js"(exports2, module2) {
36671
- var fs10 = require("fs");
36671
+ var fs11 = require("fs");
36672
36672
  var getHomedir = require_homedir();
36673
36673
  var path12 = require("path");
36674
36674
  var caller = require_caller();
36675
36675
  var nodeModulesPaths = require_node_modules_paths();
36676
36676
  var normalizeOptions = require_normalize_options();
36677
36677
  var isCore = require_is_core_module();
36678
- var realpathFS = process.platform !== "win32" && fs10.realpath && typeof fs10.realpath.native === "function" ? fs10.realpath.native : fs10.realpath;
36678
+ var realpathFS = process.platform !== "win32" && fs11.realpath && typeof fs11.realpath.native === "function" ? fs11.realpath.native : fs11.realpath;
36679
36679
  var homedir = getHomedir();
36680
36680
  var defaultPaths = function() {
36681
36681
  return [
@@ -36684,7 +36684,7 @@ var require_async = __commonJS({
36684
36684
  ];
36685
36685
  };
36686
36686
  var defaultIsFile = function isFile(file, cb) {
36687
- fs10.stat(file, function(err, stat) {
36687
+ fs11.stat(file, function(err, stat) {
36688
36688
  if (!err) {
36689
36689
  return cb(null, stat.isFile() || stat.isFIFO());
36690
36690
  }
@@ -36693,7 +36693,7 @@ var require_async = __commonJS({
36693
36693
  });
36694
36694
  };
36695
36695
  var defaultIsDir = function isDirectory(dir, cb) {
36696
- fs10.stat(dir, function(err, stat) {
36696
+ fs11.stat(dir, function(err, stat) {
36697
36697
  if (!err) {
36698
36698
  return cb(null, stat.isDirectory());
36699
36699
  }
@@ -36750,7 +36750,7 @@ var require_async = __commonJS({
36750
36750
  opts = normalizeOptions(x, opts);
36751
36751
  var isFile = opts.isFile || defaultIsFile;
36752
36752
  var isDirectory = opts.isDirectory || defaultIsDir;
36753
- var readFile = opts.readFile || fs10.readFile;
36753
+ var readFile = opts.readFile || fs11.readFile;
36754
36754
  var realpath = opts.realpath || defaultRealpath;
36755
36755
  var readPackage = opts.readPackage || defaultReadPackage;
36756
36756
  if (opts.readFile && opts.readPackage) {
@@ -37155,13 +37155,13 @@ var require_is_core = __commonJS({
37155
37155
  var require_sync = __commonJS({
37156
37156
  "pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/sync.js"(exports2, module2) {
37157
37157
  var isCore = require_is_core_module();
37158
- var fs10 = require("fs");
37158
+ var fs11 = require("fs");
37159
37159
  var path12 = require("path");
37160
37160
  var getHomedir = require_homedir();
37161
37161
  var caller = require_caller();
37162
37162
  var nodeModulesPaths = require_node_modules_paths();
37163
37163
  var normalizeOptions = require_normalize_options();
37164
- var realpathFS = process.platform !== "win32" && fs10.realpathSync && typeof fs10.realpathSync.native === "function" ? fs10.realpathSync.native : fs10.realpathSync;
37164
+ var realpathFS = process.platform !== "win32" && fs11.realpathSync && typeof fs11.realpathSync.native === "function" ? fs11.realpathSync.native : fs11.realpathSync;
37165
37165
  var homedir = getHomedir();
37166
37166
  var defaultPaths = function() {
37167
37167
  return [
@@ -37171,7 +37171,7 @@ var require_sync = __commonJS({
37171
37171
  };
37172
37172
  var defaultIsFile = function isFile(file) {
37173
37173
  try {
37174
- var stat = fs10.statSync(file, { throwIfNoEntry: false });
37174
+ var stat = fs11.statSync(file, { throwIfNoEntry: false });
37175
37175
  } catch (e) {
37176
37176
  if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
37177
37177
  throw e;
@@ -37180,7 +37180,7 @@ var require_sync = __commonJS({
37180
37180
  };
37181
37181
  var defaultIsDir = function isDirectory(dir) {
37182
37182
  try {
37183
- var stat = fs10.statSync(dir, { throwIfNoEntry: false });
37183
+ var stat = fs11.statSync(dir, { throwIfNoEntry: false });
37184
37184
  } catch (e) {
37185
37185
  if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
37186
37186
  throw e;
@@ -37224,7 +37224,7 @@ var require_sync = __commonJS({
37224
37224
  }
37225
37225
  var opts = normalizeOptions(x, options);
37226
37226
  var isFile = opts.isFile || defaultIsFile;
37227
- var readFileSync = opts.readFileSync || fs10.readFileSync;
37227
+ var readFileSync = opts.readFileSync || fs11.readFileSync;
37228
37228
  var isDirectory = opts.isDirectory || defaultIsDir;
37229
37229
  var realpathSync = opts.realpathSync || defaultRealpathSync;
37230
37230
  var readPackageSync = opts.readPackageSync || defaultReadPackageSync;
@@ -66322,7 +66322,7 @@ var require_sources = __commonJS({
66322
66322
  var require_build = __commonJS({
66323
66323
  "pnp:/builds/normed/bundle/.yarn/cache/pug-runtime-npm-3.0.1-13038c62ae-d34ee1b951.zip/node_modules/pug-runtime/build.js"(exports2, module2) {
66324
66324
  "use strict";
66325
- var fs10 = require("fs");
66325
+ var fs11 = require("fs");
66326
66326
  var dependencies = require_dependencies();
66327
66327
  var internals = require_internals();
66328
66328
  var sources = require_sources();
@@ -68088,7 +68088,7 @@ var require_wrap = __commonJS({
68088
68088
  var require_lib14 = __commonJS({
68089
68089
  "pnp:/builds/normed/bundle/.yarn/cache/pug-npm-3.0.3-9b210cb01a-a883647575.zip/node_modules/pug/lib/index.js"(exports2) {
68090
68090
  "use strict";
68091
- var fs10 = require("fs");
68091
+ var fs11 = require("fs");
68092
68092
  var path12 = require("path");
68093
68093
  var lex = require_pug_lexer();
68094
68094
  var stripComments = require_pug_strip_comments();
@@ -68250,7 +68250,7 @@ var require_lib14 = __commonJS({
68250
68250
  if (options.cache && exports2.cache[key]) {
68251
68251
  return exports2.cache[key];
68252
68252
  } else {
68253
- if (str === void 0) str = fs10.readFileSync(options.filename, "utf8");
68253
+ if (str === void 0) str = fs11.readFileSync(options.filename, "utf8");
68254
68254
  var templ = exports2.compile(str, options);
68255
68255
  if (options.cache) exports2.cache[key] = templ;
68256
68256
  return templ;
@@ -68360,7 +68360,7 @@ var require_lib14 = __commonJS({
68360
68360
  if (options.cache && exports2.cache[key]) {
68361
68361
  return exports2.cache[key];
68362
68362
  }
68363
- var str = fs10.readFileSync(options.filename, "utf8");
68363
+ var str = fs11.readFileSync(options.filename, "utf8");
68364
68364
  var out = exports2.compileClient(str, options);
68365
68365
  if (options.cache) exports2.cache[key] = out;
68366
68366
  return out;
@@ -68381,7 +68381,7 @@ var require_lib15 = __commonJS({
68381
68381
  Object.defineProperty(exports2, "__esModule", { value: true });
68382
68382
  exports2.pnpPlugin = void 0;
68383
68383
  var tslib_1 = require_tslib();
68384
- var fs10 = tslib_1.__importStar(require("fs"));
68384
+ var fs11 = tslib_1.__importStar(require("fs"));
68385
68385
  var path_1 = tslib_1.__importDefault(require("path"));
68386
68386
  var matchAll = /()/;
68387
68387
  var defaultExtensions = [`.tsx`, `.ts`, `.jsx`, `.mjs`, `.cjs`, `.js`, `.css`, `.json`];
@@ -68413,7 +68413,7 @@ var require_lib15 = __commonJS({
68413
68413
  }
68414
68414
  async function defaultOnLoad(args) {
68415
68415
  return {
68416
- contents: await fs10.promises.readFile(args.path),
68416
+ contents: await fs11.promises.readFile(args.path),
68417
68417
  loader: `default`,
68418
68418
  // For regular imports in the `file` namespace, resolveDir is the directory the
68419
68419
  // file being resolved lives in. For all other virtual modules, this defaults to
@@ -69149,6 +69149,185 @@ var load_less_default = plugin;
69149
69149
  var import_pug = __toESM(require_lib14());
69150
69150
  var import_fs4 = __toESM(require("fs"));
69151
69151
  var import_path5 = __toESM(require("path"));
69152
+ var import_crypto = __toESM(require("crypto"));
69153
+ function computeContentHash(content) {
69154
+ const hash = import_crypto.default.createHash("sha256").update(content).digest();
69155
+ const num = hash.readUInt32BE(0);
69156
+ return num.toString(36).toUpperCase().padStart(8, "0").slice(0, 8);
69157
+ }
69158
+ var ASSET_ATTRIBUTES = {
69159
+ img: ["src", "srcset"],
69160
+ video: ["src", "poster"],
69161
+ audio: ["src"],
69162
+ source: ["src", "srcset"],
69163
+ link: ["href"],
69164
+ script: ["src"],
69165
+ object: ["data"],
69166
+ embed: ["src"],
69167
+ track: ["src"],
69168
+ input: ["src"]
69169
+ // for type="image"
69170
+ };
69171
+ function isRelativeAssetPath(assetPath) {
69172
+ if (!assetPath) return false;
69173
+ if (assetPath.startsWith("#")) return false;
69174
+ if (assetPath.startsWith("//")) return false;
69175
+ try {
69176
+ new URL(assetPath);
69177
+ return false;
69178
+ } catch {
69179
+ return true;
69180
+ }
69181
+ }
69182
+ function isPugReference(assetPath) {
69183
+ return assetPath.endsWith(".pug") && isRelativeAssetPath(assetPath);
69184
+ }
69185
+ var discoveredPugReferences = /* @__PURE__ */ new Map();
69186
+ function clearDiscoveredPugReferences() {
69187
+ discoveredPugReferences.clear();
69188
+ }
69189
+ function applyAssetNamesTemplate(template, originalPath, hash, baseDir) {
69190
+ const ext = import_path5.default.extname(originalPath).slice(1);
69191
+ const name3 = import_path5.default.basename(originalPath, import_path5.default.extname(originalPath));
69192
+ const dir = import_path5.default.dirname(originalPath);
69193
+ const relativeDir = dir.startsWith(baseDir) ? dir.slice(baseDir.length).replace(/^\//, "") : dir;
69194
+ return template.replace(/\[name\]/g, name3).replace(/\[hash\]/g, hash).replace(/\[ext\]/g, ext).replace(/\[dir\]/g, relativeDir) + "." + ext;
69195
+ }
69196
+ async function processHtmlAssets(html, pugFilePath, options) {
69197
+ const assets = [];
69198
+ const pugReferences = [];
69199
+ const assetNames = options.assetNames || "[name]-[hash]";
69200
+ const outdir = options.outdir || ".";
69201
+ const outbase = options.outbase || import_path5.default.dirname(pugFilePath);
69202
+ const pugDir = import_path5.default.dirname(pugFilePath);
69203
+ const publicPath = options.publicPath || "";
69204
+ const processedAssets = /* @__PURE__ */ new Map();
69205
+ const allAttrs = [...new Set(Object.values(ASSET_ATTRIBUTES).flat())].join(
69206
+ "|"
69207
+ );
69208
+ const attrRegex = new RegExp(`(${allAttrs})\\s*=\\s*["']([^"']+)["']`, "gi");
69209
+ let modifiedHtml = html;
69210
+ const matches = [];
69211
+ let match;
69212
+ while ((match = attrRegex.exec(html)) !== null) {
69213
+ const attr = match[1];
69214
+ const value = match[2];
69215
+ if (attr && value) {
69216
+ matches.push({
69217
+ fullMatch: match[0],
69218
+ attr: attr.toLowerCase(),
69219
+ value
69220
+ });
69221
+ }
69222
+ }
69223
+ const discoveredPugPaths = /* @__PURE__ */ new Set();
69224
+ for (const { fullMatch, attr, value } of matches) {
69225
+ let newValue = value;
69226
+ if (attr === "srcset") {
69227
+ const srcsetParts = value.split(",");
69228
+ const newParts = [];
69229
+ for (const part of srcsetParts) {
69230
+ const trimmed = part.trim();
69231
+ const [assetPath, ...descriptors] = trimmed.split(/\s+/);
69232
+ if (assetPath && isPugReference(assetPath)) {
69233
+ const absolutePath = import_path5.default.resolve(pugDir, assetPath);
69234
+ if (!discoveredPugPaths.has(absolutePath)) {
69235
+ discoveredPugPaths.add(absolutePath);
69236
+ pugReferences.push({ originalHref: assetPath, absolutePath });
69237
+ }
69238
+ newParts.push(trimmed);
69239
+ } else if (assetPath && isRelativeAssetPath(assetPath)) {
69240
+ const hashedPath = await processAsset(
69241
+ assetPath,
69242
+ pugDir,
69243
+ outdir,
69244
+ outbase,
69245
+ assetNames,
69246
+ publicPath,
69247
+ assets,
69248
+ processedAssets
69249
+ );
69250
+ if (hashedPath) {
69251
+ newParts.push(
69252
+ [hashedPath, ...descriptors].filter(Boolean).join(" ")
69253
+ );
69254
+ } else {
69255
+ newParts.push(trimmed);
69256
+ }
69257
+ } else {
69258
+ newParts.push(trimmed);
69259
+ }
69260
+ }
69261
+ newValue = newParts.join(", ");
69262
+ } else if (isPugReference(value)) {
69263
+ const absolutePath = import_path5.default.resolve(pugDir, value);
69264
+ if (!discoveredPugPaths.has(absolutePath)) {
69265
+ discoveredPugPaths.add(absolutePath);
69266
+ pugReferences.push({ originalHref: value, absolutePath });
69267
+ }
69268
+ } else if (isRelativeAssetPath(value)) {
69269
+ const hashedPath = await processAsset(
69270
+ value,
69271
+ pugDir,
69272
+ outdir,
69273
+ outbase,
69274
+ assetNames,
69275
+ publicPath,
69276
+ assets,
69277
+ processedAssets
69278
+ );
69279
+ if (hashedPath) {
69280
+ newValue = hashedPath;
69281
+ }
69282
+ }
69283
+ if (newValue !== value) {
69284
+ const newFullMatch = fullMatch.replace(value, newValue);
69285
+ modifiedHtml = modifiedHtml.replace(fullMatch, newFullMatch);
69286
+ }
69287
+ }
69288
+ return { html: modifiedHtml, assets, pugReferences };
69289
+ }
69290
+ async function processAsset(assetPath, pugDir, outdir, outbase, assetNames, publicPath, assets, processedAssets) {
69291
+ const absoluteSource = import_path5.default.resolve(pugDir, assetPath);
69292
+ if (processedAssets.has(absoluteSource)) {
69293
+ return processedAssets.get(absoluteSource);
69294
+ }
69295
+ if (!import_fs4.default.existsSync(absoluteSource)) {
69296
+ return null;
69297
+ }
69298
+ try {
69299
+ const content = await import_fs4.default.promises.readFile(absoluteSource);
69300
+ const hash = computeContentHash(content);
69301
+ const hashedFilename = applyAssetNamesTemplate(
69302
+ assetNames,
69303
+ assetPath,
69304
+ hash,
69305
+ outbase
69306
+ );
69307
+ const absoluteOutput = import_path5.default.join(outdir, hashedFilename);
69308
+ const htmlPath = publicPath ? publicPath.replace(/\/$/, "") + "/" + hashedFilename : hashedFilename;
69309
+ assets.push({
69310
+ originalPath: assetPath,
69311
+ hashedPath: htmlPath,
69312
+ absoluteSource,
69313
+ absoluteOutput
69314
+ });
69315
+ processedAssets.set(absoluteSource, htmlPath);
69316
+ return htmlPath;
69317
+ } catch {
69318
+ return null;
69319
+ }
69320
+ }
69321
+ async function copyAssets(assets) {
69322
+ const copied = /* @__PURE__ */ new Set();
69323
+ for (const asset of assets) {
69324
+ if (copied.has(asset.absoluteOutput)) continue;
69325
+ copied.add(asset.absoluteOutput);
69326
+ const outputDir = import_path5.default.dirname(asset.absoluteOutput);
69327
+ await import_fs4.default.promises.mkdir(outputDir, { recursive: true });
69328
+ await import_fs4.default.promises.copyFile(asset.absoluteSource, asset.absoluteOutput);
69329
+ }
69330
+ }
69152
69331
  var filters = {
69153
69332
  escape: (str) => {
69154
69333
  return str.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
@@ -69218,7 +69397,7 @@ async function loadAsHtml(filepath, options) {
69218
69397
  }
69219
69398
  async function loadAsEntrypoint(filepath, options) {
69220
69399
  const fileData = await import_fs4.default.promises.readFile(filepath, "utf8");
69221
- const contents = import_pug.default.render(fileData, {
69400
+ let contents = import_pug.default.render(fileData, {
69222
69401
  filename: filepath,
69223
69402
  basedir: options.outbase,
69224
69403
  name: "render",
@@ -69229,6 +69408,18 @@ async function loadAsEntrypoint(filepath, options) {
69229
69408
  ],
69230
69409
  filters
69231
69410
  });
69411
+ const {
69412
+ html: processedHtml,
69413
+ assets,
69414
+ pugReferences
69415
+ } = await processHtmlAssets(contents, filepath, options);
69416
+ contents = processedHtml;
69417
+ if (pugReferences.length > 0) {
69418
+ discoveredPugReferences.set(filepath, pugReferences);
69419
+ }
69420
+ if (assets.length > 0) {
69421
+ await copyAssets(assets);
69422
+ }
69232
69423
  return {
69233
69424
  contents,
69234
69425
  loader: "copy"
@@ -69412,7 +69603,18 @@ function createCssExternalUrlsPlugin(patterns) {
69412
69603
  var import_esbuild_plugin_pnp = __toESM(require_lib15());
69413
69604
  var ts = __toESM(require("typescript"));
69414
69605
  var import_path7 = __toESM(require("path"));
69606
+ var import_fs6 = __toESM(require("fs"));
69415
69607
  import_chalk3.default.level = 3;
69608
+ function rewritePugReferencesInHtml(html, pugReferences, pugToOutputPath) {
69609
+ let result = html;
69610
+ for (const ref of pugReferences) {
69611
+ const outputPath = pugToOutputPath.get(ref.absolutePath);
69612
+ if (outputPath) {
69613
+ result = result.split(ref.originalHref).join(outputPath);
69614
+ }
69615
+ }
69616
+ return result;
69617
+ }
69416
69618
  function outExt(inExt) {
69417
69619
  if (inExt.match(/^((c|m)?sx?|tsx?)$/)) {
69418
69620
  return "js";
@@ -69515,7 +69717,12 @@ var esbuilder = {
69515
69717
  2
69516
69718
  )
69517
69719
  );
69518
- const codeBuild = esbuild.build(finalConfig).then(async (result) => {
69720
+ clearDiscoveredPugReferences();
69721
+ const pugHtmlOutputs = /* @__PURE__ */ new Map();
69722
+ const pugToOutputPath = /* @__PURE__ */ new Map();
69723
+ const processedPugFiles = /* @__PURE__ */ new Set();
69724
+ const pendingPugFiles = [];
69725
+ const processOutputFiles = async (result, currentOutputFilesMap, isDiscoveredBuild) => {
69519
69726
  if (result.errors.length || result.warnings.length) {
69520
69727
  log_default.info(`Build completed with errors or warnings:`, {
69521
69728
  errors: result.errors.length,
@@ -69539,24 +69746,24 @@ var esbuilder = {
69539
69746
  let relativeTarget = relativeFilePath;
69540
69747
  let content = file.contents;
69541
69748
  let transforms = [];
69542
- const oFM_result = outputFilesMap.get(relativeFilePath);
69749
+ const oFM_result = currentOutputFilesMap.get(relativeFilePath);
69543
69750
  if (oFM_result) {
69544
- relativeTarget = oFM_result.entrypoint.outfile.relative;
69751
+ relativeTarget = oFM_result.entrypoint?.outfile.relative ?? relativeFilePath;
69545
69752
  oFM_result.present = true;
69546
69753
  if (expectingSourcemap && oFM_result.mapFileExpected) {
69547
69754
  }
69548
69755
  } else if (expectingSourcemap && relativeFilePath.endsWith(".map")) {
69549
69756
  const nonMapPath = relativeFilePath.slice(0, -4);
69550
- const oFM_result2 = outputFilesMap.get(nonMapPath);
69551
- if (oFM_result2) {
69552
- relativeTarget = oFM_result2.entrypoint.outfile.relative + ".map";
69553
- oFM_result2.mapfilePresent = true;
69757
+ const mapOFM = currentOutputFilesMap.get(nonMapPath);
69758
+ if (mapOFM) {
69759
+ relativeTarget = (mapOFM.entrypoint?.outfile.relative ?? nonMapPath) + ".map";
69760
+ mapOFM.mapfilePresent = true;
69554
69761
  } else {
69555
69762
  log_default.warn(
69556
69763
  `Build artefact "${relativeFilePath}" was created but not expected.`
69557
69764
  );
69558
69765
  }
69559
- } else {
69766
+ } else if (!isDiscoveredBuild) {
69560
69767
  log_default.warn(
69561
69768
  `Build artefact "${relativeFilePath}" was created but not expected.`
69562
69769
  );
@@ -69566,48 +69773,149 @@ var esbuilder = {
69566
69773
  `Correcting output file name "${relativeFilePath}" to be "${relativeTarget}".`
69567
69774
  );
69568
69775
  }
69569
- const promise = fileWriter.writeFile(
69570
- import_path7.default.join(outdir, relativeTarget),
69571
- applyTransforms(content, transforms),
69572
- {
69573
- encoding: "utf-8"
69776
+ const isHtmlOutput = relativeFilePath.endsWith(".html");
69777
+ const sourcePath = oFM_result?.sourcePath;
69778
+ if (isHtmlOutput && sourcePath) {
69779
+ const pugRefs = discoveredPugReferences.get(sourcePath) || [];
69780
+ pugToOutputPath.set(sourcePath, relativeTarget);
69781
+ for (const ref of pugRefs) {
69782
+ if (!processedPugFiles.has(ref.absolutePath) && !pendingPugFiles.includes(ref.absolutePath)) {
69783
+ if (import_fs6.default.existsSync(ref.absolutePath)) {
69784
+ pendingPugFiles.push(ref.absolutePath);
69785
+ log_default.debug(
69786
+ `Discovered pug reference: ${ref.originalHref} -> ${ref.absolutePath}`
69787
+ );
69788
+ } else {
69789
+ log_default.warn(
69790
+ `Referenced pug file not found: ${ref.originalHref} (resolved to ${ref.absolutePath})`
69791
+ );
69792
+ }
69793
+ }
69574
69794
  }
69575
- );
69576
- writers.push(promise);
69795
+ pugHtmlOutputs.set(sourcePath, {
69796
+ content: file.text,
69797
+ sourcePath,
69798
+ outputPath: import_path7.default.join(outdir, relativeTarget),
69799
+ pugReferences: pugRefs
69800
+ });
69801
+ } else {
69802
+ const promise = fileWriter.writeFile(
69803
+ import_path7.default.join(outdir, relativeTarget),
69804
+ applyTransforms(content, transforms),
69805
+ { encoding: "utf-8" }
69806
+ );
69807
+ writers.push(promise);
69808
+ }
69577
69809
  }
69578
69810
  for (const [
69579
69811
  fileName,
69580
69812
  { entrypoint, present, mapfilePresent, mapFileExpected }
69581
- ] of outputFilesMap.entries()) {
69813
+ ] of currentOutputFilesMap.entries()) {
69582
69814
  if (!present) {
69583
69815
  log_default.warn(
69584
- `Output file "${fileName}" was expected but not created for entrypoint "${entrypoint.infile.relative}".`
69816
+ `Output file "${fileName}" was expected but not created for entrypoint "${entrypoint?.infile.relative ?? fileName}".`
69585
69817
  );
69586
69818
  }
69587
69819
  if (expectingSourcemap && mapFileExpected && !mapfilePresent) {
69588
69820
  log_default.warn(
69589
- `Map file "${fileName}.map" was expected but not created for entrypoint "${entrypoint.infile.relative}".`
69821
+ `Map file "${fileName}.map" was expected but not created for entrypoint "${entrypoint?.infile.relative ?? fileName}".`
69590
69822
  );
69591
69823
  }
69592
69824
  }
69593
69825
  await Promise.all(writers);
69594
- }).catch((err) => {
69595
- const errors = err.errors || [];
69596
- const warnings = err.warnings || [];
69597
- if (!errors.length && !warnings.length) {
69598
- log_default.error(
69599
- `Build failed with no errors or warnings, but an unknown error occurred.`
69826
+ };
69827
+ const codeBuild = (async () => {
69828
+ try {
69829
+ for (const entrypoint of build2) {
69830
+ if (entrypoint.infile.extension === "pug") {
69831
+ processedPugFiles.add(entrypoint.infile.absolute);
69832
+ }
69833
+ }
69834
+ const extendedOutputFilesMap = /* @__PURE__ */ new Map();
69835
+ for (const [key, value] of outputFilesMap.entries()) {
69836
+ extendedOutputFilesMap.set(key, {
69837
+ ...value,
69838
+ sourcePath: value.entrypoint.infile.absolute
69839
+ });
69840
+ }
69841
+ const initialResult = await esbuild.build(finalConfig);
69842
+ await processOutputFiles(
69843
+ initialResult,
69844
+ extendedOutputFilesMap,
69845
+ false
69600
69846
  );
69601
- throw err;
69602
- } else {
69603
- log_default.error(
69604
- `Build failed with ${errors.length} errors and ${warnings.length} warnings.`
69847
+ while (pendingPugFiles.length > 0) {
69848
+ const batch = pendingPugFiles.splice(0);
69849
+ const newEntryPoints = batch.filter(
69850
+ (f) => !processedPugFiles.has(f)
69851
+ );
69852
+ if (newEntryPoints.length === 0) break;
69853
+ log_default.debug(
69854
+ `Building ${newEntryPoints.length} discovered pug file(s):`,
69855
+ newEntryPoints
69856
+ );
69857
+ const discoveredOutputFilesMap = /* @__PURE__ */ new Map();
69858
+ for (const pugSourcePath of newEntryPoints) {
69859
+ const relativeSource = import_path7.default.relative(indir, pugSourcePath);
69860
+ const expectedOutput = relativeSource.replace(/\.pug$/, ".html");
69861
+ discoveredOutputFilesMap.set(expectedOutput, {
69862
+ entrypoint: void 0,
69863
+ sourcePath: pugSourcePath,
69864
+ present: false,
69865
+ mapfilePresent: false,
69866
+ mapFileExpected: false
69867
+ });
69868
+ processedPugFiles.add(pugSourcePath);
69869
+ }
69870
+ const discoveredConfig = {
69871
+ ...finalConfig,
69872
+ entryPoints: newEntryPoints
69873
+ };
69874
+ const discoveredResult = await esbuild.build(discoveredConfig);
69875
+ await processOutputFiles(
69876
+ discoveredResult,
69877
+ discoveredOutputFilesMap,
69878
+ true
69879
+ );
69880
+ }
69881
+ log_default.debug(
69882
+ `Rewriting pug references in ${pugHtmlOutputs.size} HTML file(s)`
69605
69883
  );
69606
- log_default.error(`Errors:`, errors);
69607
- log_default.warn(`Warnings:`, warnings);
69608
- throw [...errors, ...warnings];
69884
+ const htmlWriters = [];
69885
+ for (const [_sourcePath, output] of pugHtmlOutputs.entries()) {
69886
+ let html = output.content;
69887
+ if (output.pugReferences.length > 0) {
69888
+ html = rewritePugReferencesInHtml(
69889
+ html,
69890
+ output.pugReferences,
69891
+ pugToOutputPath
69892
+ );
69893
+ }
69894
+ const promise = fileWriter.writeFile(output.outputPath, html, {
69895
+ encoding: "utf-8"
69896
+ });
69897
+ htmlWriters.push(promise);
69898
+ }
69899
+ await Promise.all(htmlWriters);
69900
+ } catch (err) {
69901
+ const error = err;
69902
+ const errors = error.errors || [];
69903
+ const warnings = error.warnings || [];
69904
+ if (!errors.length && !warnings.length) {
69905
+ log_default.error(
69906
+ `Build failed with no errors or warnings, but an unknown error occurred.`
69907
+ );
69908
+ throw err;
69909
+ } else {
69910
+ log_default.error(
69911
+ `Build failed with ${errors.length} errors and ${warnings.length} warnings.`
69912
+ );
69913
+ log_default.error(`Errors:`, errors);
69914
+ log_default.warn(`Warnings:`, warnings);
69915
+ throw [...errors, ...warnings];
69916
+ }
69609
69917
  }
69610
- });
69918
+ })();
69611
69919
  promises.push(codeBuild);
69612
69920
  if (exampleFile.entryconfig.declarations) {
69613
69921
  log_default.debug(`Generating Declarations`);
@@ -69741,7 +70049,7 @@ var import_path11 = __toESM(require("path"));
69741
70049
 
69742
70050
  // pnp:/builds/normed/bundle/.yarn/cache/filesystem-traverse-npm-3.0.0-2273ac54af-8725791ac7.zip/node_modules/filesystem-traverse/dist/esm/index.mjs
69743
70051
  var import_path8 = __toESM(require("path"), 1);
69744
- var import_fs6 = __toESM(require("fs"), 1);
70052
+ var import_fs7 = __toESM(require("fs"), 1);
69745
70053
  function makeAsync(func) {
69746
70054
  return async (arg) => func(arg);
69747
70055
  }
@@ -69772,11 +70080,11 @@ function makeInclude(include, exclude) {
69772
70080
  };
69773
70081
  }
69774
70082
  async function search(match, context, directory, state = { complete: false }) {
69775
- const { fs: fs10, basedir, includeFile, includeDirectory } = context;
70083
+ const { fs: fs11, basedir, includeFile, includeDirectory } = context;
69776
70084
  if (state.complete) {
69777
70085
  return;
69778
70086
  }
69779
- const entries = await fs10.promises.readdir(import_path8.default.join(basedir, directory), {
70087
+ const entries = await fs11.promises.readdir(import_path8.default.join(basedir, directory), {
69780
70088
  encoding: "utf8",
69781
70089
  withFileTypes: true
69782
70090
  });
@@ -69802,9 +70110,9 @@ function optionsToContext(options) {
69802
70110
  options.include_dir,
69803
70111
  options.exclude_dir
69804
70112
  );
69805
- const fs10 = options.fs || import_fs6.default;
70113
+ const fs11 = options.fs || import_fs7.default;
69806
70114
  return {
69807
- fs: fs10,
70115
+ fs: fs11,
69808
70116
  basedir,
69809
70117
  includeFile,
69810
70118
  includeDirectory
@@ -70150,7 +70458,7 @@ var SetMap = class _SetMap {
70150
70458
  };
70151
70459
 
70152
70460
  // pnp:/builds/normed/bundle/packages/bundle/src/EntryConfigInstance.ts
70153
- var import_fs7 = __toESM(require("fs"));
70461
+ var import_fs8 = __toESM(require("fs"));
70154
70462
  var import_path10 = __toESM(require("path"));
70155
70463
  var namedEntryConfigs = /* @__PURE__ */ new Map();
70156
70464
  var entryConfigEquality = new SetMap();
@@ -70337,7 +70645,7 @@ async function readEsbuild(filepath, relativeDirectory) {
70337
70645
  relativeDirectory ?? process.cwd(),
70338
70646
  filepath
70339
70647
  );
70340
- const data = await import_fs7.default.promises.readFile(aboslutePath, "utf-8");
70648
+ const data = await import_fs8.default.promises.readFile(aboslutePath, "utf-8");
70341
70649
  return JSON.parse(data);
70342
70650
  }
70343
70651
  async function readTsconfig(filepath, relativeDirectory) {
@@ -70345,12 +70653,12 @@ async function readTsconfig(filepath, relativeDirectory) {
70345
70653
  relativeDirectory ?? process.cwd(),
70346
70654
  filepath
70347
70655
  );
70348
- const data = await import_fs7.default.promises.readFile(aboslutePath, "utf-8");
70656
+ const data = await import_fs8.default.promises.readFile(aboslutePath, "utf-8");
70349
70657
  return JSON.parse(data);
70350
70658
  }
70351
70659
 
70352
70660
  // pnp:/builds/normed/bundle/packages/bundle/src/entrypoints.ts
70353
- var import_fs8 = __toESM(require("fs"));
70661
+ var import_fs9 = __toESM(require("fs"));
70354
70662
  async function pathToEntrypoint(buildConfig, file, source) {
70355
70663
  const infile = new File({
70356
70664
  supportedModifiers: buildConfig.modifiers,
@@ -70358,7 +70666,7 @@ async function pathToEntrypoint(buildConfig, file, source) {
70358
70666
  basedir: buildConfig.dir.in,
70359
70667
  parseModifiers: true
70360
70668
  });
70361
- const stats = await import_fs8.default.promises.stat(infile.absolute);
70669
+ const stats = await import_fs9.default.promises.stat(infile.absolute);
70362
70670
  if (stats.isDirectory()) {
70363
70671
  (await Promise.all(
70364
70672
  await index_default({