@loaders.gl/textures 3.3.0 → 3.4.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2412,14 +2412,14 @@ var require_inherits_browser = __commonJS({
2412
2412
  var require_inherits = __commonJS({
2413
2413
  "../../node_modules/inherits/inherits.js"(exports2, module2) {
2414
2414
  try {
2415
- util = require("util");
2416
- if (typeof util.inherits !== "function")
2415
+ util2 = require("util");
2416
+ if (typeof util2.inherits !== "function")
2417
2417
  throw "";
2418
- module2.exports = util.inherits;
2418
+ module2.exports = util2.inherits;
2419
2419
  } catch (e) {
2420
2420
  module2.exports = require_inherits_browser();
2421
2421
  }
2422
- var util;
2422
+ var util2;
2423
2423
  }
2424
2424
  });
2425
2425
 
@@ -2574,10 +2574,10 @@ var require_stream_readable = __commonJS({
2574
2574
  return emitter.listeners(type).length;
2575
2575
  };
2576
2576
  var Stream2 = require("stream");
2577
- var util = require_util();
2578
- util.inherits = require_inherits();
2577
+ var util2 = require_util();
2578
+ util2.inherits = require_inherits();
2579
2579
  var StringDecoder;
2580
- util.inherits(Readable2, Stream2);
2580
+ util2.inherits(Readable2, Stream2);
2581
2581
  function ReadableState(options, stream) {
2582
2582
  options = options || {};
2583
2583
  var hwm = options.highWaterMark;
@@ -3180,11 +3180,11 @@ var require_stream_duplex = __commonJS({
3180
3180
  keys.push(key);
3181
3181
  return keys;
3182
3182
  };
3183
- var util = require_util();
3184
- util.inherits = require_inherits();
3183
+ var util2 = require_util();
3184
+ util2.inherits = require_inherits();
3185
3185
  var Readable2 = require_stream_readable();
3186
3186
  var Writable = require_stream_writable();
3187
- util.inherits(Duplex, Readable2);
3187
+ util2.inherits(Duplex, Readable2);
3188
3188
  forEach(objectKeys(Writable.prototype), function(method) {
3189
3189
  if (!Duplex.prototype[method])
3190
3190
  Duplex.prototype[method] = Writable.prototype[method];
@@ -3222,10 +3222,10 @@ var require_stream_writable = __commonJS({
3222
3222
  module2.exports = Writable;
3223
3223
  var Buffer2 = require("buffer").Buffer;
3224
3224
  Writable.WritableState = WritableState;
3225
- var util = require_util();
3226
- util.inherits = require_inherits();
3225
+ var util2 = require_util();
3226
+ util2.inherits = require_inherits();
3227
3227
  var Stream2 = require("stream");
3228
- util.inherits(Writable, Stream2);
3228
+ util2.inherits(Writable, Stream2);
3229
3229
  function WriteReq(chunk, encoding, cb) {
3230
3230
  this.chunk = chunk;
3231
3231
  this.encoding = encoding;
@@ -3452,9 +3452,9 @@ var require_stream_transform = __commonJS({
3452
3452
  "../../node_modules/contentstream/node_modules/readable-stream/lib/_stream_transform.js"(exports2, module2) {
3453
3453
  module2.exports = Transform;
3454
3454
  var Duplex = require_stream_duplex();
3455
- var util = require_util();
3456
- util.inherits = require_inherits();
3457
- util.inherits(Transform, Duplex);
3455
+ var util2 = require_util();
3456
+ util2.inherits = require_inherits();
3457
+ util2.inherits(Transform, Duplex);
3458
3458
  function TransformState(options, stream) {
3459
3459
  this.afterTransform = function(er, data) {
3460
3460
  return afterTransform(stream, er, data);
@@ -3546,9 +3546,9 @@ var require_stream_passthrough = __commonJS({
3546
3546
  "../../node_modules/contentstream/node_modules/readable-stream/lib/_stream_passthrough.js"(exports2, module2) {
3547
3547
  module2.exports = PassThrough;
3548
3548
  var Transform = require_stream_transform();
3549
- var util = require_util();
3550
- util.inherits = require_inherits();
3551
- util.inherits(PassThrough, Transform);
3549
+ var util2 = require_util();
3550
+ util2.inherits = require_inherits();
3551
+ util2.inherits(PassThrough, Transform);
3552
3552
  function PassThrough(options) {
3553
3553
  if (!(this instanceof PassThrough))
3554
3554
  return new PassThrough(options);
@@ -3582,7 +3582,7 @@ var require_contentstream = __commonJS({
3582
3582
  "../../node_modules/contentstream/index.js"(exports2, module2) {
3583
3583
  "use strict";
3584
3584
  var Readable2 = require_readable().Readable;
3585
- var util = require("util");
3585
+ var util2 = require("util");
3586
3586
  module2.exports = ContentStream;
3587
3587
  function ContentStream(obj, options) {
3588
3588
  if (!(this instanceof ContentStream)) {
@@ -3594,7 +3594,7 @@ var require_contentstream = __commonJS({
3594
3594
  }
3595
3595
  this._obj = obj;
3596
3596
  }
3597
- util.inherits(ContentStream, Readable2);
3597
+ util2.inherits(ContentStream, Readable2);
3598
3598
  ContentStream.prototype._read = function(n) {
3599
3599
  var obj = this._obj;
3600
3600
  if (typeof obj === "string") {
@@ -3624,10 +3624,10 @@ var require_stream_writable2 = __commonJS({
3624
3624
  module2.exports = Writable;
3625
3625
  var Buffer2 = require("buffer").Buffer;
3626
3626
  Writable.WritableState = WritableState;
3627
- var util = require_util();
3628
- util.inherits = require_inherits();
3627
+ var util2 = require_util();
3628
+ util2.inherits = require_inherits();
3629
3629
  var Stream2 = require("stream");
3630
- util.inherits(Writable, Stream2);
3630
+ util2.inherits(Writable, Stream2);
3631
3631
  function WriteReq(chunk, encoding, cb) {
3632
3632
  this.chunk = chunk;
3633
3633
  this.encoding = encoding;
@@ -3685,7 +3685,7 @@ var require_stream_writable2 = __commonJS({
3685
3685
  }
3686
3686
  function validChunk(stream, state, chunk, cb) {
3687
3687
  var valid = true;
3688
- if (!util.isBuffer(chunk) && !util.isString(chunk) && !util.isNullOrUndefined(chunk) && !state.objectMode) {
3688
+ if (!util2.isBuffer(chunk) && !util2.isString(chunk) && !util2.isNullOrUndefined(chunk) && !state.objectMode) {
3689
3689
  var er = new TypeError("Invalid non-string/buffer chunk");
3690
3690
  stream.emit("error", er);
3691
3691
  process.nextTick(function() {
@@ -3698,15 +3698,15 @@ var require_stream_writable2 = __commonJS({
3698
3698
  Writable.prototype.write = function(chunk, encoding, cb) {
3699
3699
  var state = this._writableState;
3700
3700
  var ret = false;
3701
- if (util.isFunction(encoding)) {
3701
+ if (util2.isFunction(encoding)) {
3702
3702
  cb = encoding;
3703
3703
  encoding = null;
3704
3704
  }
3705
- if (util.isBuffer(chunk))
3705
+ if (util2.isBuffer(chunk))
3706
3706
  encoding = "buffer";
3707
3707
  else if (!encoding)
3708
3708
  encoding = state.defaultEncoding;
3709
- if (!util.isFunction(cb))
3709
+ if (!util2.isFunction(cb))
3710
3710
  cb = function() {
3711
3711
  };
3712
3712
  if (state.ended)
@@ -3730,14 +3730,14 @@ var require_stream_writable2 = __commonJS({
3730
3730
  }
3731
3731
  };
3732
3732
  function decodeChunk(state, chunk, encoding) {
3733
- if (!state.objectMode && state.decodeStrings !== false && util.isString(chunk)) {
3733
+ if (!state.objectMode && state.decodeStrings !== false && util2.isString(chunk)) {
3734
3734
  chunk = new Buffer2(chunk, encoding);
3735
3735
  }
3736
3736
  return chunk;
3737
3737
  }
3738
3738
  function writeOrBuffer(stream, state, chunk, encoding, cb) {
3739
3739
  chunk = decodeChunk(state, chunk, encoding);
3740
- if (util.isBuffer(chunk))
3740
+ if (util2.isBuffer(chunk))
3741
3741
  encoding = "buffer";
3742
3742
  var len = state.objectMode ? 1 : chunk.length;
3743
3743
  state.length += len;
@@ -3854,15 +3854,15 @@ var require_stream_writable2 = __commonJS({
3854
3854
  Writable.prototype._writev = null;
3855
3855
  Writable.prototype.end = function(chunk, encoding, cb) {
3856
3856
  var state = this._writableState;
3857
- if (util.isFunction(chunk)) {
3857
+ if (util2.isFunction(chunk)) {
3858
3858
  cb = chunk;
3859
3859
  chunk = null;
3860
3860
  encoding = null;
3861
- } else if (util.isFunction(encoding)) {
3861
+ } else if (util2.isFunction(encoding)) {
3862
3862
  cb = encoding;
3863
3863
  encoding = null;
3864
3864
  }
3865
- if (!util.isNullOrUndefined(chunk))
3865
+ if (!util2.isNullOrUndefined(chunk))
3866
3866
  this.write(chunk, encoding);
3867
3867
  if (state.corked) {
3868
3868
  state.corked = 1;
@@ -3916,11 +3916,11 @@ var require_stream_duplex2 = __commonJS({
3916
3916
  keys.push(key);
3917
3917
  return keys;
3918
3918
  };
3919
- var util = require_util();
3920
- util.inherits = require_inherits();
3919
+ var util2 = require_util();
3920
+ util2.inherits = require_inherits();
3921
3921
  var Readable2 = require_stream_readable2();
3922
3922
  var Writable = require_stream_writable2();
3923
- util.inherits(Duplex, Readable2);
3923
+ util2.inherits(Duplex, Readable2);
3924
3924
  forEach(objectKeys(Writable.prototype), function(method) {
3925
3925
  if (!Duplex.prototype[method])
3926
3926
  Duplex.prototype[method] = Writable.prototype[method];
@@ -3965,8 +3965,8 @@ var require_stream_readable2 = __commonJS({
3965
3965
  return emitter.listeners(type).length;
3966
3966
  };
3967
3967
  var Stream2 = require("stream");
3968
- var util = require_util();
3969
- util.inherits = require_inherits();
3968
+ var util2 = require_util();
3969
+ util2.inherits = require_inherits();
3970
3970
  var StringDecoder;
3971
3971
  var debug = require("util");
3972
3972
  if (debug && debug.debuglog) {
@@ -3975,7 +3975,7 @@ var require_stream_readable2 = __commonJS({
3975
3975
  debug = function() {
3976
3976
  };
3977
3977
  }
3978
- util.inherits(Readable2, Stream2);
3978
+ util2.inherits(Readable2, Stream2);
3979
3979
  function ReadableState(options, stream) {
3980
3980
  var Duplex = require_stream_duplex2();
3981
3981
  options = options || {};
@@ -4021,7 +4021,7 @@ var require_stream_readable2 = __commonJS({
4021
4021
  }
4022
4022
  Readable2.prototype.push = function(chunk, encoding) {
4023
4023
  var state = this._readableState;
4024
- if (util.isString(chunk) && !state.objectMode) {
4024
+ if (util2.isString(chunk) && !state.objectMode) {
4025
4025
  encoding = encoding || state.defaultEncoding;
4026
4026
  if (encoding !== state.encoding) {
4027
4027
  chunk = new Buffer2(chunk, encoding);
@@ -4038,7 +4038,7 @@ var require_stream_readable2 = __commonJS({
4038
4038
  var er = chunkInvalid(state, chunk);
4039
4039
  if (er) {
4040
4040
  stream.emit("error", er);
4041
- } else if (util.isNullOrUndefined(chunk)) {
4041
+ } else if (util2.isNullOrUndefined(chunk)) {
4042
4042
  state.reading = false;
4043
4043
  if (!state.ended)
4044
4044
  onEofChunk(stream, state);
@@ -4100,7 +4100,7 @@ var require_stream_readable2 = __commonJS({
4100
4100
  return 0;
4101
4101
  if (state.objectMode)
4102
4102
  return n === 0 ? 0 : 1;
4103
- if (isNaN(n) || util.isNull(n)) {
4103
+ if (isNaN(n) || util2.isNull(n)) {
4104
4104
  if (state.flowing && state.buffer.length)
4105
4105
  return state.buffer[0].length;
4106
4106
  else
@@ -4123,7 +4123,7 @@ var require_stream_readable2 = __commonJS({
4123
4123
  debug("read", n);
4124
4124
  var state = this._readableState;
4125
4125
  var nOrig = n;
4126
- if (!util.isNumber(n) || n > 0)
4126
+ if (!util2.isNumber(n) || n > 0)
4127
4127
  state.emittedReadable = false;
4128
4128
  if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {
4129
4129
  debug("read: emitReadable", state.length, state.ended);
@@ -4165,7 +4165,7 @@ var require_stream_readable2 = __commonJS({
4165
4165
  ret = fromList(n, state);
4166
4166
  else
4167
4167
  ret = null;
4168
- if (util.isNull(ret)) {
4168
+ if (util2.isNull(ret)) {
4169
4169
  state.needReadable = true;
4170
4170
  n = 0;
4171
4171
  }
@@ -4174,13 +4174,13 @@ var require_stream_readable2 = __commonJS({
4174
4174
  state.needReadable = true;
4175
4175
  if (nOrig !== n && state.ended && state.length === 0)
4176
4176
  endReadable(this);
4177
- if (!util.isNull(ret))
4177
+ if (!util2.isNull(ret))
4178
4178
  this.emit("data", ret);
4179
4179
  return ret;
4180
4180
  };
4181
4181
  function chunkInvalid(state, chunk) {
4182
4182
  var er = null;
4183
- if (!util.isBuffer(chunk) && !util.isString(chunk) && !util.isNullOrUndefined(chunk) && !state.objectMode) {
4183
+ if (!util2.isBuffer(chunk) && !util2.isString(chunk) && !util2.isNullOrUndefined(chunk) && !state.objectMode) {
4184
4184
  er = new TypeError("Invalid non-string/buffer chunk");
4185
4185
  }
4186
4186
  return er;
@@ -4476,7 +4476,7 @@ var require_stream_readable2 = __commonJS({
4476
4476
  }
4477
4477
  });
4478
4478
  for (var i in stream) {
4479
- if (util.isFunction(stream[i]) && util.isUndefined(this[i])) {
4479
+ if (util2.isFunction(stream[i]) && util2.isUndefined(this[i])) {
4480
4480
  this[i] = function(method) {
4481
4481
  return function() {
4482
4482
  return stream[method].apply(stream, arguments);
@@ -4581,9 +4581,9 @@ var require_stream_transform2 = __commonJS({
4581
4581
  "../../node_modules/gif-encoder/node_modules/readable-stream/lib/_stream_transform.js"(exports2, module2) {
4582
4582
  module2.exports = Transform;
4583
4583
  var Duplex = require_stream_duplex2();
4584
- var util = require_util();
4585
- util.inherits = require_inherits();
4586
- util.inherits(Transform, Duplex);
4584
+ var util2 = require_util();
4585
+ util2.inherits = require_inherits();
4586
+ util2.inherits(Transform, Duplex);
4587
4587
  function TransformState(options, stream) {
4588
4588
  this.afterTransform = function(er, data) {
4589
4589
  return afterTransform(stream, er, data);
@@ -4601,7 +4601,7 @@ var require_stream_transform2 = __commonJS({
4601
4601
  return stream.emit("error", new Error("no writecb in Transform class"));
4602
4602
  ts.writechunk = null;
4603
4603
  ts.writecb = null;
4604
- if (!util.isNullOrUndefined(data))
4604
+ if (!util2.isNullOrUndefined(data))
4605
4605
  stream.push(data);
4606
4606
  if (cb)
4607
4607
  cb(er);
@@ -4620,7 +4620,7 @@ var require_stream_transform2 = __commonJS({
4620
4620
  this._readableState.needReadable = true;
4621
4621
  this._readableState.sync = false;
4622
4622
  this.once("prefinish", function() {
4623
- if (util.isFunction(this._flush))
4623
+ if (util2.isFunction(this._flush))
4624
4624
  this._flush(function(er) {
4625
4625
  done(stream, er);
4626
4626
  });
@@ -4648,7 +4648,7 @@ var require_stream_transform2 = __commonJS({
4648
4648
  };
4649
4649
  Transform.prototype._read = function(n) {
4650
4650
  var ts = this._transformState;
4651
- if (!util.isNull(ts.writechunk) && ts.writecb && !ts.transforming) {
4651
+ if (!util2.isNull(ts.writechunk) && ts.writecb && !ts.transforming) {
4652
4652
  ts.transforming = true;
4653
4653
  this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
4654
4654
  } else {
@@ -4674,9 +4674,9 @@ var require_stream_passthrough2 = __commonJS({
4674
4674
  "../../node_modules/gif-encoder/node_modules/readable-stream/lib/_stream_passthrough.js"(exports2, module2) {
4675
4675
  module2.exports = PassThrough;
4676
4676
  var Transform = require_stream_transform2();
4677
- var util = require_util();
4678
- util.inherits = require_inherits();
4679
- util.inherits(PassThrough, Transform);
4677
+ var util2 = require_util();
4678
+ util2.inherits = require_inherits();
4679
+ util2.inherits(PassThrough, Transform);
4680
4680
  function PassThrough(options) {
4681
4681
  if (!(this instanceof PassThrough))
4682
4682
  return new PassThrough(options);
@@ -5171,7 +5171,7 @@ var require_GIFEncoder = __commonJS({
5171
5171
  var assert3 = require("assert");
5172
5172
  var EventEmitter = require("events").EventEmitter;
5173
5173
  var ReadableStream2 = require_readable2();
5174
- var util = require("util");
5174
+ var util2 = require("util");
5175
5175
  var NeuQuant = require_TypedNeuQuant();
5176
5176
  var LZWEncoder = require_LZWEncoder();
5177
5177
  function ByteCapacitor(options) {
@@ -5179,7 +5179,7 @@ var require_GIFEncoder = __commonJS({
5179
5179
  this.okayToPush = true;
5180
5180
  this.resetData();
5181
5181
  }
5182
- util.inherits(ByteCapacitor, ReadableStream2);
5182
+ util2.inherits(ByteCapacitor, ReadableStream2);
5183
5183
  ByteCapacitor.prototype._read = function() {
5184
5184
  this.okayToPush = true;
5185
5185
  };
@@ -5240,7 +5240,7 @@ var require_GIFEncoder = __commonJS({
5240
5240
  that.push(null);
5241
5241
  });
5242
5242
  }
5243
- util.inherits(GIFEncoder, ByteCapacitor);
5243
+ util2.inherits(GIFEncoder, ByteCapacitor);
5244
5244
  GIFEncoder.prototype.setDelay = function(milliseconds) {
5245
5245
  this.delay = Math.round(milliseconds / 10);
5246
5246
  };
@@ -7568,7 +7568,7 @@ var require_jpeg_js = __commonJS({
7568
7568
  var require_chunkstream = __commonJS({
7569
7569
  "../../node_modules/pngjs-nozlib/lib/chunkstream.js"(exports2, module2) {
7570
7570
  "use strict";
7571
- var util = require("util");
7571
+ var util2 = require("util");
7572
7572
  var Stream2 = require("stream");
7573
7573
  var ChunkStream = module2.exports = function() {
7574
7574
  Stream2.call(this);
@@ -7579,7 +7579,7 @@ var require_chunkstream = __commonJS({
7579
7579
  this._encoding = "utf8";
7580
7580
  this.writable = true;
7581
7581
  };
7582
- util.inherits(ChunkStream, Stream2);
7582
+ util2.inherits(ChunkStream, Stream2);
7583
7583
  ChunkStream.prototype.read = function(length, callback) {
7584
7584
  this._reads.push({
7585
7585
  length: Math.abs(length),
@@ -7937,7 +7937,7 @@ var require_filter_parse = __commonJS({
7937
7937
  var require_filter_parse_async = __commonJS({
7938
7938
  "../../node_modules/pngjs-nozlib/lib/filter-parse-async.js"(exports2, module2) {
7939
7939
  "use strict";
7940
- var util = require("util");
7940
+ var util2 = require("util");
7941
7941
  var ChunkStream = require_chunkstream();
7942
7942
  var Filter = require_filter_parse();
7943
7943
  var FilterAsync = module2.exports = function(bitmapInfo) {
@@ -7955,7 +7955,7 @@ var require_filter_parse_async = __commonJS({
7955
7955
  });
7956
7956
  this._filter.start();
7957
7957
  };
7958
- util.inherits(FilterAsync, ChunkStream);
7958
+ util2.inherits(FilterAsync, ChunkStream);
7959
7959
  }
7960
7960
  });
7961
7961
 
@@ -8504,7 +8504,7 @@ var require_format_normaliser = __commonJS({
8504
8504
  var require_parser_async = __commonJS({
8505
8505
  "../../node_modules/pngjs-nozlib/lib/parser-async.js"(exports2, module2) {
8506
8506
  "use strict";
8507
- var util = require("util");
8507
+ var util2 = require("util");
8508
8508
  var zlib2 = require("zlib");
8509
8509
  var ChunkStream = require_chunkstream();
8510
8510
  var FilterAsync = require_filter_parse_async();
@@ -8527,7 +8527,7 @@ var require_parser_async = __commonJS({
8527
8527
  this.writable = true;
8528
8528
  this._parser.start();
8529
8529
  };
8530
- util.inherits(ParserAsync, ChunkStream);
8530
+ util2.inherits(ParserAsync, ChunkStream);
8531
8531
  ParserAsync.prototype._handleError = function(err) {
8532
8532
  this.emit("error", err);
8533
8533
  this.writable = false;
@@ -8863,7 +8863,7 @@ var require_packer = __commonJS({
8863
8863
  var require_packer_async = __commonJS({
8864
8864
  "../../node_modules/pngjs-nozlib/lib/packer-async.js"(exports2, module2) {
8865
8865
  "use strict";
8866
- var util = require("util");
8866
+ var util2 = require("util");
8867
8867
  var Stream2 = require("stream");
8868
8868
  var constants = require_constants();
8869
8869
  var Packer = require_packer();
@@ -8874,7 +8874,7 @@ var require_packer_async = __commonJS({
8874
8874
  this._deflate = this._packer.createDeflate();
8875
8875
  this.readable = true;
8876
8876
  };
8877
- util.inherits(PackerAsync, Stream2);
8877
+ util2.inherits(PackerAsync, Stream2);
8878
8878
  PackerAsync.prototype.pack = function(data, width, height, gamma) {
8879
8879
  this.emit("data", new Buffer(constants.PNG_SIGNATURE));
8880
8880
  this.emit("data", this._packer.packIHDR(width, height));
@@ -9085,7 +9085,7 @@ var require_png_sync = __commonJS({
9085
9085
  var require_png = __commonJS({
9086
9086
  "../../node_modules/pngjs-nozlib/lib/png.js"(exports2) {
9087
9087
  "use strict";
9088
- var util = require("util");
9088
+ var util2 = require("util");
9089
9089
  var Stream2 = require("stream");
9090
9090
  var Parser = require_parser_async();
9091
9091
  var Packer = require_packer_async();
@@ -9116,7 +9116,7 @@ var require_png = __commonJS({
9116
9116
  this._parser.on("close", this._handleClose.bind(this));
9117
9117
  this._packer.on("error", this.emit.bind(this, "error"));
9118
9118
  };
9119
- util.inherits(PNG, Stream2);
9119
+ util2.inherits(PNG, Stream2);
9120
9120
  PNG.sync = PNGSync;
9121
9121
  PNG.prototype.pack = function() {
9122
9122
  if (!this.data || !this.data.length) {
@@ -10672,7 +10672,7 @@ var require_save_pixels = __commonJS({
10672
10672
  var require_chunkstream2 = __commonJS({
10673
10673
  "../../node_modules/pngjs/lib/chunkstream.js"(exports2, module2) {
10674
10674
  "use strict";
10675
- var util = require("util");
10675
+ var util2 = require("util");
10676
10676
  var Stream2 = require("stream");
10677
10677
  var ChunkStream = module2.exports = function() {
10678
10678
  Stream2.call(this);
@@ -10683,7 +10683,7 @@ var require_chunkstream2 = __commonJS({
10683
10683
  this._encoding = "utf8";
10684
10684
  this.writable = true;
10685
10685
  };
10686
- util.inherits(ChunkStream, Stream2);
10686
+ util2.inherits(ChunkStream, Stream2);
10687
10687
  ChunkStream.prototype.read = function(length, callback) {
10688
10688
  this._reads.push({
10689
10689
  length: Math.abs(length),
@@ -11041,7 +11041,7 @@ var require_filter_parse2 = __commonJS({
11041
11041
  var require_filter_parse_async2 = __commonJS({
11042
11042
  "../../node_modules/pngjs/lib/filter-parse-async.js"(exports2, module2) {
11043
11043
  "use strict";
11044
- var util = require("util");
11044
+ var util2 = require("util");
11045
11045
  var ChunkStream = require_chunkstream2();
11046
11046
  var Filter = require_filter_parse2();
11047
11047
  var FilterAsync = module2.exports = function(bitmapInfo) {
@@ -11059,7 +11059,7 @@ var require_filter_parse_async2 = __commonJS({
11059
11059
  });
11060
11060
  this._filter.start();
11061
11061
  };
11062
- util.inherits(FilterAsync, ChunkStream);
11062
+ util2.inherits(FilterAsync, ChunkStream);
11063
11063
  }
11064
11064
  });
11065
11065
 
@@ -11653,7 +11653,7 @@ var require_format_normaliser2 = __commonJS({
11653
11653
  var require_parser_async2 = __commonJS({
11654
11654
  "../../node_modules/pngjs/lib/parser-async.js"(exports2, module2) {
11655
11655
  "use strict";
11656
- var util = require("util");
11656
+ var util2 = require("util");
11657
11657
  var zlib2 = require("zlib");
11658
11658
  var ChunkStream = require_chunkstream2();
11659
11659
  var FilterAsync = require_filter_parse_async2();
@@ -11678,7 +11678,7 @@ var require_parser_async2 = __commonJS({
11678
11678
  this.writable = true;
11679
11679
  this._parser.start();
11680
11680
  };
11681
- util.inherits(ParserAsync, ChunkStream);
11681
+ util2.inherits(ParserAsync, ChunkStream);
11682
11682
  ParserAsync.prototype._handleError = function(err) {
11683
11683
  this.emit("error", err);
11684
11684
  this.writable = false;
@@ -12143,7 +12143,7 @@ var require_packer2 = __commonJS({
12143
12143
  var require_packer_async2 = __commonJS({
12144
12144
  "../../node_modules/pngjs/lib/packer-async.js"(exports2, module2) {
12145
12145
  "use strict";
12146
- var util = require("util");
12146
+ var util2 = require("util");
12147
12147
  var Stream2 = require("stream");
12148
12148
  var constants = require_constants2();
12149
12149
  var Packer = require_packer2();
@@ -12154,7 +12154,7 @@ var require_packer_async2 = __commonJS({
12154
12154
  this._deflate = this._packer.createDeflate();
12155
12155
  this.readable = true;
12156
12156
  };
12157
- util.inherits(PackerAsync, Stream2);
12157
+ util2.inherits(PackerAsync, Stream2);
12158
12158
  PackerAsync.prototype.pack = function(data, width, height, gamma) {
12159
12159
  this.emit("data", new Buffer(constants.PNG_SIGNATURE));
12160
12160
  this.emit("data", this._packer.packIHDR(width, height));
@@ -12181,7 +12181,7 @@ var require_sync_inflate = __commonJS({
12181
12181
  "use strict";
12182
12182
  var assert3 = require("assert").ok;
12183
12183
  var zlib2 = require("zlib");
12184
- var util = require("util");
12184
+ var util2 = require("util");
12185
12185
  var kMaxLength = require("buffer").kMaxLength;
12186
12186
  function Inflate(opts) {
12187
12187
  if (!(this instanceof Inflate)) {
@@ -12272,7 +12272,7 @@ var require_sync_inflate = __commonJS({
12272
12272
  _close(this);
12273
12273
  return buf;
12274
12274
  };
12275
- util.inherits(Inflate, zlib2.Inflate);
12275
+ util2.inherits(Inflate, zlib2.Inflate);
12276
12276
  function zlibBufferSync(engine, buffer) {
12277
12277
  if (typeof buffer === "string") {
12278
12278
  buffer = Buffer.from(buffer);
@@ -12498,7 +12498,7 @@ var require_png_sync2 = __commonJS({
12498
12498
  var require_png2 = __commonJS({
12499
12499
  "../../node_modules/pngjs/lib/png.js"(exports2) {
12500
12500
  "use strict";
12501
- var util = require("util");
12501
+ var util2 = require("util");
12502
12502
  var Stream2 = require("stream");
12503
12503
  var Parser = require_parser_async2();
12504
12504
  var Packer = require_packer_async2();
@@ -12529,7 +12529,7 @@ var require_png2 = __commonJS({
12529
12529
  this._parser.on("close", this._handleClose.bind(this));
12530
12530
  this._packer.on("error", this.emit.bind(this, "error"));
12531
12531
  };
12532
- util.inherits(PNG, Stream2);
12532
+ util2.inherits(PNG, Stream2);
12533
12533
  PNG.sync = PNGSync;
12534
12534
  PNG.prototype.pack = function() {
12535
12535
  if (!this.data || !this.data.length) {
@@ -23528,20 +23528,20 @@ var require_memstore = __commonJS({
23528
23528
  var Store = require_store().Store;
23529
23529
  var permuteDomain = require_permuteDomain().permuteDomain;
23530
23530
  var pathMatch = require_pathMatch().pathMatch;
23531
- var util = require("util");
23531
+ var util2 = require("util");
23532
23532
  function MemoryCookieStore() {
23533
23533
  Store.call(this);
23534
23534
  this.idx = {};
23535
23535
  }
23536
- util.inherits(MemoryCookieStore, Store);
23536
+ util2.inherits(MemoryCookieStore, Store);
23537
23537
  exports2.MemoryCookieStore = MemoryCookieStore;
23538
23538
  MemoryCookieStore.prototype.idx = null;
23539
23539
  MemoryCookieStore.prototype.synchronous = true;
23540
23540
  MemoryCookieStore.prototype.inspect = function() {
23541
- return "{ idx: " + util.inspect(this.idx, false, 2) + " }";
23541
+ return "{ idx: " + util2.inspect(this.idx, false, 2) + " }";
23542
23542
  };
23543
- if (util.inspect.custom) {
23544
- MemoryCookieStore.prototype[util.inspect.custom] = MemoryCookieStore.prototype.inspect;
23543
+ if (util2.inspect.custom) {
23544
+ MemoryCookieStore.prototype[util2.inspect.custom] = MemoryCookieStore.prototype.inspect;
23545
23545
  }
23546
23546
  MemoryCookieStore.prototype.findCookie = function(domain, path2, key, cb) {
23547
23547
  if (!this.idx[domain]) {
@@ -23659,7 +23659,7 @@ var require_cookie = __commonJS({
23659
23659
  "use strict";
23660
23660
  var net = require("net");
23661
23661
  var urlParse = require("url").parse;
23662
- var util = require("util");
23662
+ var util2 = require("util");
23663
23663
  var pubsuffix = require_pubsuffix_psl();
23664
23664
  var Store = require_store().Store;
23665
23665
  var MemoryCookieStore = require_memstore().MemoryCookieStore;
@@ -24120,8 +24120,8 @@ var require_cookie = __commonJS({
24120
24120
  var now = Date.now();
24121
24121
  return 'Cookie="' + this.toString() + "; hostOnly=" + (this.hostOnly != null ? this.hostOnly : "?") + "; aAge=" + (this.lastAccessed ? now - this.lastAccessed.getTime() + "ms" : "?") + "; cAge=" + (this.creation ? now - this.creation.getTime() + "ms" : "?") + '"';
24122
24122
  };
24123
- if (util.inspect.custom) {
24124
- Cookie.prototype[util.inspect.custom] = Cookie.prototype.inspect;
24123
+ if (util2.inspect.custom) {
24124
+ Cookie.prototype[util2.inspect.custom] = Cookie.prototype.inspect;
24125
24125
  }
24126
24126
  Cookie.prototype.toJSON = function() {
24127
24127
  var obj = {};
@@ -25303,14 +25303,14 @@ var require_assert = __commonJS({
25303
25303
  "../../node_modules/assert-plus/assert.js"(exports2, module2) {
25304
25304
  var assert3 = require("assert");
25305
25305
  var Stream2 = require("stream").Stream;
25306
- var util = require("util");
25306
+ var util2 = require("util");
25307
25307
  var UUID_REGEXP = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
25308
25308
  function _capitalize(str) {
25309
25309
  return str.charAt(0).toUpperCase() + str.slice(1);
25310
25310
  }
25311
25311
  function _toss(name, expected, oper, arg, actual) {
25312
25312
  throw new assert3.AssertionError({
25313
- message: util.format("%s (%s) is required", name, expected),
25313
+ message: util2.format("%s (%s) is required", name, expected),
25314
25314
  actual: actual === void 0 ? typeof arg : actual(arg),
25315
25315
  expected,
25316
25316
  operator: oper || "===",
@@ -25656,7 +25656,7 @@ var require_algs = __commonJS({
25656
25656
  var require_errors = __commonJS({
25657
25657
  "../../node_modules/sshpk/lib/errors.js"(exports2, module2) {
25658
25658
  var assert3 = require_assert();
25659
- var util = require("util");
25659
+ var util2 = require("util");
25660
25660
  function FingerprintFormatError(fp, format) {
25661
25661
  if (Error.captureStackTrace)
25662
25662
  Error.captureStackTrace(this, FingerprintFormatError);
@@ -25669,7 +25669,7 @@ var require_errors = __commonJS({
25669
25669
  if (format !== void 0)
25670
25670
  this.message += " format = " + format;
25671
25671
  }
25672
- util.inherits(FingerprintFormatError, Error);
25672
+ util2.inherits(FingerprintFormatError, Error);
25673
25673
  function InvalidAlgorithmError(alg) {
25674
25674
  if (Error.captureStackTrace)
25675
25675
  Error.captureStackTrace(this, InvalidAlgorithmError);
@@ -25677,7 +25677,7 @@ var require_errors = __commonJS({
25677
25677
  this.algorithm = alg;
25678
25678
  this.message = 'Algorithm "' + alg + '" is not supported';
25679
25679
  }
25680
- util.inherits(InvalidAlgorithmError, Error);
25680
+ util2.inherits(InvalidAlgorithmError, Error);
25681
25681
  function KeyParseError(name, format, innerErr) {
25682
25682
  if (Error.captureStackTrace)
25683
25683
  Error.captureStackTrace(this, KeyParseError);
@@ -25687,7 +25687,7 @@ var require_errors = __commonJS({
25687
25687
  this.innerErr = innerErr;
25688
25688
  this.message = "Failed to parse " + name + " as a valid " + format + " format key: " + innerErr.message;
25689
25689
  }
25690
- util.inherits(KeyParseError, Error);
25690
+ util2.inherits(KeyParseError, Error);
25691
25691
  function SignatureParseError(type, format, innerErr) {
25692
25692
  if (Error.captureStackTrace)
25693
25693
  Error.captureStackTrace(this, SignatureParseError);
@@ -25697,7 +25697,7 @@ var require_errors = __commonJS({
25697
25697
  this.innerErr = innerErr;
25698
25698
  this.message = "Failed to parse the given data as a " + type + " signature in " + format + " format: " + innerErr.message;
25699
25699
  }
25700
- util.inherits(SignatureParseError, Error);
25700
+ util2.inherits(SignatureParseError, Error);
25701
25701
  function CertificateParseError(name, format, innerErr) {
25702
25702
  if (Error.captureStackTrace)
25703
25703
  Error.captureStackTrace(this, CertificateParseError);
@@ -25707,7 +25707,7 @@ var require_errors = __commonJS({
25707
25707
  this.innerErr = innerErr;
25708
25708
  this.message = "Failed to parse " + name + " as a valid " + format + " format certificate: " + innerErr.message;
25709
25709
  }
25710
- util.inherits(CertificateParseError, Error);
25710
+ util2.inherits(CertificateParseError, Error);
25711
25711
  function KeyEncryptedError(name, format) {
25712
25712
  if (Error.captureStackTrace)
25713
25713
  Error.captureStackTrace(this, KeyEncryptedError);
@@ -25716,7 +25716,7 @@ var require_errors = __commonJS({
25716
25716
  this.keyName = name;
25717
25717
  this.message = "The " + format + " format key " + name + " is encrypted (password-protected), and no passphrase was provided in `options`";
25718
25718
  }
25719
- util.inherits(KeyEncryptedError, Error);
25719
+ util2.inherits(KeyEncryptedError, Error);
25720
25720
  module2.exports = {
25721
25721
  FingerprintFormatError,
25722
25722
  InvalidAlgorithmError,
@@ -31595,7 +31595,7 @@ var require_ed_compat = __commonJS({
31595
31595
  };
31596
31596
  var nacl = require_nacl_fast();
31597
31597
  var stream = require("stream");
31598
- var util = require("util");
31598
+ var util2 = require("util");
31599
31599
  var assert3 = require_assert();
31600
31600
  var Buffer2 = require_safer().Buffer;
31601
31601
  var Signature = require_signature();
@@ -31606,7 +31606,7 @@ var require_ed_compat = __commonJS({
31606
31606
  this.chunks = [];
31607
31607
  stream.Writable.call(this, {});
31608
31608
  }
31609
- util.inherits(Verifier, stream.Writable);
31609
+ util2.inherits(Verifier, stream.Writable);
31610
31610
  Verifier.prototype._write = function(chunk, enc, cb) {
31611
31611
  this.chunks.push(chunk);
31612
31612
  cb();
@@ -31637,7 +31637,7 @@ var require_ed_compat = __commonJS({
31637
31637
  this.chunks = [];
31638
31638
  stream.Writable.call(this, {});
31639
31639
  }
31640
- util.inherits(Signer, stream.Writable);
31640
+ util2.inherits(Signer, stream.Writable);
31641
31641
  Signer.prototype._write = function(chunk, enc, cb) {
31642
31642
  this.chunks.push(chunk);
31643
31643
  cb();
@@ -34889,7 +34889,7 @@ var require_private_key = __commonJS({
34889
34889
  var Fingerprint = require_fingerprint();
34890
34890
  var Signature = require_signature();
34891
34891
  var errs = require_errors();
34892
- var util = require("util");
34892
+ var util2 = require("util");
34893
34893
  var utils = require_utils();
34894
34894
  var dhe = require_dhe();
34895
34895
  var generateECDSA = dhe.generateECDSA;
@@ -34916,7 +34916,7 @@ var require_private_key = __commonJS({
34916
34916
  Key.call(this, opts);
34917
34917
  this._pubCache = void 0;
34918
34918
  }
34919
- util.inherits(PrivateKey, Key);
34919
+ util2.inherits(PrivateKey, Key);
34920
34920
  PrivateKey.formats = formats2;
34921
34921
  PrivateKey.prototype.toBuffer = function(format, options) {
34922
34922
  if (format === void 0)
@@ -35092,7 +35092,7 @@ var require_identity = __commonJS({
35092
35092
  var Fingerprint = require_fingerprint();
35093
35093
  var Signature = require_signature();
35094
35094
  var errs = require_errors();
35095
- var util = require("util");
35095
+ var util2 = require("util");
35096
35096
  var utils = require_utils();
35097
35097
  var asn1 = require_lib2();
35098
35098
  var Buffer2 = require_safer().Buffer;
@@ -36349,7 +36349,7 @@ var require_certificate = __commonJS({
36349
36349
  var Fingerprint = require_fingerprint();
36350
36350
  var Signature = require_signature();
36351
36351
  var errs = require_errors();
36352
- var util = require("util");
36352
+ var util2 = require("util");
36353
36353
  var utils = require_utils();
36354
36354
  var Key = require_key();
36355
36355
  var PrivateKey = require_private_key();
@@ -37146,7 +37146,7 @@ var require_utils2 = __commonJS({
37146
37146
  "../../node_modules/http-signature/lib/utils.js"(exports2, module2) {
37147
37147
  var assert3 = require_assert();
37148
37148
  var sshpk = require_lib3();
37149
- var util = require("util");
37149
+ var util2 = require("util");
37150
37150
  var HASH_ALGOS = {
37151
37151
  "sha1": true,
37152
37152
  "sha256": true,
@@ -37163,11 +37163,11 @@ var require_utils2 = __commonJS({
37163
37163
  this.message = message;
37164
37164
  this.name = caller.name;
37165
37165
  }
37166
- util.inherits(HttpSignatureError, Error);
37166
+ util2.inherits(HttpSignatureError, Error);
37167
37167
  function InvalidAlgorithmError(message) {
37168
37168
  HttpSignatureError.call(this, message, InvalidAlgorithmError);
37169
37169
  }
37170
- util.inherits(InvalidAlgorithmError, HttpSignatureError);
37170
+ util2.inherits(InvalidAlgorithmError, HttpSignatureError);
37171
37171
  function validateAlgorithm(algorithm) {
37172
37172
  var alg = algorithm.toLowerCase().split("-");
37173
37173
  if (alg.length !== 2) {
@@ -37211,7 +37211,7 @@ var require_utils2 = __commonJS({
37211
37211
  var require_parser3 = __commonJS({
37212
37212
  "../../node_modules/http-signature/lib/parser.js"(exports2, module2) {
37213
37213
  var assert3 = require_assert();
37214
- var util = require("util");
37214
+ var util2 = require("util");
37215
37215
  var utils = require_utils2();
37216
37216
  var HASH_ALGOS = utils.HASH_ALGOS;
37217
37217
  var PK_ALGOS = utils.PK_ALGOS;
@@ -37231,23 +37231,23 @@ var require_parser3 = __commonJS({
37231
37231
  function ExpiredRequestError(message) {
37232
37232
  HttpSignatureError.call(this, message, ExpiredRequestError);
37233
37233
  }
37234
- util.inherits(ExpiredRequestError, HttpSignatureError);
37234
+ util2.inherits(ExpiredRequestError, HttpSignatureError);
37235
37235
  function InvalidHeaderError(message) {
37236
37236
  HttpSignatureError.call(this, message, InvalidHeaderError);
37237
37237
  }
37238
- util.inherits(InvalidHeaderError, HttpSignatureError);
37238
+ util2.inherits(InvalidHeaderError, HttpSignatureError);
37239
37239
  function InvalidParamsError(message) {
37240
37240
  HttpSignatureError.call(this, message, InvalidParamsError);
37241
37241
  }
37242
- util.inherits(InvalidParamsError, HttpSignatureError);
37242
+ util2.inherits(InvalidParamsError, HttpSignatureError);
37243
37243
  function MissingHeaderError(message) {
37244
37244
  HttpSignatureError.call(this, message, MissingHeaderError);
37245
37245
  }
37246
- util.inherits(MissingHeaderError, HttpSignatureError);
37246
+ util2.inherits(MissingHeaderError, HttpSignatureError);
37247
37247
  function StrictParsingError(message) {
37248
37248
  HttpSignatureError.call(this, message, StrictParsingError);
37249
37249
  }
37250
- util.inherits(StrictParsingError, HttpSignatureError);
37250
+ util2.inherits(StrictParsingError, HttpSignatureError);
37251
37251
  module2.exports = {
37252
37252
  parseRequest: function parseRequest(request, options) {
37253
37253
  assert3.object(request, "request");
@@ -38630,7 +38630,7 @@ var require_signer = __commonJS({
38630
38630
  var assert3 = require_assert();
38631
38631
  var crypto = require("crypto");
38632
38632
  var http2 = require("http");
38633
- var util = require("util");
38633
+ var util2 = require("util");
38634
38634
  var sshpk = require_lib3();
38635
38635
  var jsprim = require_jsprim();
38636
38636
  var utils = require_utils2();
@@ -38644,11 +38644,11 @@ var require_signer = __commonJS({
38644
38644
  function MissingHeaderError(message) {
38645
38645
  HttpSignatureError.call(this, message, MissingHeaderError);
38646
38646
  }
38647
- util.inherits(MissingHeaderError, HttpSignatureError);
38647
+ util2.inherits(MissingHeaderError, HttpSignatureError);
38648
38648
  function StrictParsingError(message) {
38649
38649
  HttpSignatureError.call(this, message, StrictParsingError);
38650
38650
  }
38651
- util.inherits(StrictParsingError, HttpSignatureError);
38651
+ util2.inherits(StrictParsingError, HttpSignatureError);
38652
38652
  function RequestSigner(options) {
38653
38653
  assert3.object(options, "options");
38654
38654
  var alg = [];
@@ -47630,7 +47630,7 @@ var require_forever_agent = __commonJS({
47630
47630
  "../../node_modules/forever-agent/index.js"(exports2, module2) {
47631
47631
  module2.exports = ForeverAgent;
47632
47632
  ForeverAgent.SSL = ForeverAgentSSL;
47633
- var util = require("util");
47633
+ var util2 = require("util");
47634
47634
  var Agent = require("http").Agent;
47635
47635
  var net = require("net");
47636
47636
  var tls = require("tls");
@@ -47670,7 +47670,7 @@ var require_forever_agent = __commonJS({
47670
47670
  }
47671
47671
  });
47672
47672
  }
47673
- util.inherits(ForeverAgent, Agent);
47673
+ util2.inherits(ForeverAgent, Agent);
47674
47674
  ForeverAgent.defaultMinSockets = 5;
47675
47675
  ForeverAgent.prototype.createConnection = net.createConnection;
47676
47676
  ForeverAgent.prototype.addRequestNoreuse = Agent.prototype.addRequest;
@@ -47717,7 +47717,7 @@ var require_forever_agent = __commonJS({
47717
47717
  function ForeverAgentSSL(options) {
47718
47718
  ForeverAgent.call(this, options);
47719
47719
  }
47720
- util.inherits(ForeverAgentSSL, ForeverAgent);
47720
+ util2.inherits(ForeverAgentSSL, ForeverAgent);
47721
47721
  ForeverAgentSSL.prototype.createConnection = createConnectionSSL;
47722
47722
  ForeverAgentSSL.prototype.addRequestNoreuse = AgentSSL.prototype.addRequest;
47723
47723
  function createConnectionSSL(port, host, options) {
@@ -47745,7 +47745,7 @@ var require_forever_agent = __commonJS({
47745
47745
  var require_delayed_stream = __commonJS({
47746
47746
  "../../node_modules/delayed-stream/lib/delayed_stream.js"(exports2, module2) {
47747
47747
  var Stream2 = require("stream").Stream;
47748
- var util = require("util");
47748
+ var util2 = require("util");
47749
47749
  module2.exports = DelayedStream;
47750
47750
  function DelayedStream() {
47751
47751
  this.source = null;
@@ -47756,7 +47756,7 @@ var require_delayed_stream = __commonJS({
47756
47756
  this._released = false;
47757
47757
  this._bufferedEvents = [];
47758
47758
  }
47759
- util.inherits(DelayedStream, Stream2);
47759
+ util2.inherits(DelayedStream, Stream2);
47760
47760
  DelayedStream.create = function(source, options) {
47761
47761
  var delayedStream = new this();
47762
47762
  options = options || {};
@@ -47835,7 +47835,7 @@ var require_delayed_stream = __commonJS({
47835
47835
  // ../../node_modules/combined-stream/lib/combined_stream.js
47836
47836
  var require_combined_stream = __commonJS({
47837
47837
  "../../node_modules/combined-stream/lib/combined_stream.js"(exports2, module2) {
47838
- var util = require("util");
47838
+ var util2 = require("util");
47839
47839
  var Stream2 = require("stream").Stream;
47840
47840
  var DelayedStream = require_delayed_stream();
47841
47841
  module2.exports = CombinedStream;
@@ -47851,7 +47851,7 @@ var require_combined_stream = __commonJS({
47851
47851
  this._insideLoop = false;
47852
47852
  this._pendingNext = false;
47853
47853
  }
47854
- util.inherits(CombinedStream, Stream2);
47854
+ util2.inherits(CombinedStream, Stream2);
47855
47855
  CombinedStream.create = function(options) {
47856
47856
  var combinedStream = new this();
47857
47857
  options = options || {};
@@ -48228,7 +48228,7 @@ var require_populate = __commonJS({
48228
48228
  var require_form_data = __commonJS({
48229
48229
  "../../node_modules/form-data/lib/form_data.js"(exports2, module2) {
48230
48230
  var CombinedStream = require_combined_stream();
48231
- var util = require("util");
48231
+ var util2 = require("util");
48232
48232
  var path2 = require("path");
48233
48233
  var http2 = require("http");
48234
48234
  var https2 = require("https");
@@ -48238,7 +48238,7 @@ var require_form_data = __commonJS({
48238
48238
  var asynckit = require_asynckit();
48239
48239
  var populate = require_populate();
48240
48240
  module2.exports = FormData;
48241
- util.inherits(FormData, CombinedStream);
48241
+ util2.inherits(FormData, CombinedStream);
48242
48242
  function FormData(options) {
48243
48243
  if (!(this instanceof FormData)) {
48244
48244
  return new FormData();
@@ -48263,7 +48263,7 @@ var require_form_data = __commonJS({
48263
48263
  if (typeof value == "number") {
48264
48264
  value = "" + value;
48265
48265
  }
48266
- if (util.isArray(value)) {
48266
+ if (util2.isArray(value)) {
48267
48267
  this._error(new Error("Arrays are not supported."));
48268
48268
  return;
48269
48269
  }
@@ -50407,10 +50407,10 @@ var require_util3 = __commonJS({
50407
50407
  var require_schema_obj = __commonJS({
50408
50408
  "../../node_modules/ajv/lib/compile/schema_obj.js"(exports2, module2) {
50409
50409
  "use strict";
50410
- var util = require_util3();
50410
+ var util2 = require_util3();
50411
50411
  module2.exports = SchemaObject;
50412
50412
  function SchemaObject(obj) {
50413
- util.copy(obj, this);
50413
+ util2.copy(obj, this);
50414
50414
  }
50415
50415
  }
50416
50416
  });
@@ -50505,7 +50505,7 @@ var require_resolve = __commonJS({
50505
50505
  "use strict";
50506
50506
  var URI = require_uri_all();
50507
50507
  var equal = require_fast_deep_equal();
50508
- var util = require_util3();
50508
+ var util2 = require_util3();
50509
50509
  var SchemaObject = require_schema_obj();
50510
50510
  var traverse = require_json_schema_traverse();
50511
50511
  module2.exports = resolve;
@@ -50582,7 +50582,7 @@ var require_resolve = __commonJS({
50582
50582
  return getJsonPointer.call(this, parsedRef, baseId, schema, root);
50583
50583
  }
50584
50584
  }
50585
- var PREVENT_SCOPE_CHANGE = util.toHash(["properties", "patternProperties", "enum", "dependencies", "definitions"]);
50585
+ var PREVENT_SCOPE_CHANGE = util2.toHash(["properties", "patternProperties", "enum", "dependencies", "definitions"]);
50586
50586
  function getJsonPointer(parsedRef, baseId, schema, root) {
50587
50587
  parsedRef.fragment = parsedRef.fragment || "";
50588
50588
  if (parsedRef.fragment.slice(0, 1) != "/")
@@ -50591,7 +50591,7 @@ var require_resolve = __commonJS({
50591
50591
  for (var i = 1; i < parts.length; i++) {
50592
50592
  var part = parts[i];
50593
50593
  if (part) {
50594
- part = util.unescapeFragment(part);
50594
+ part = util2.unescapeFragment(part);
50595
50595
  schema = schema[part];
50596
50596
  if (schema === void 0)
50597
50597
  break;
@@ -50615,7 +50615,7 @@ var require_resolve = __commonJS({
50615
50615
  if (schema !== void 0 && schema !== root.schema)
50616
50616
  return { schema, root, baseId };
50617
50617
  }
50618
- var SIMPLE_INLINED = util.toHash([
50618
+ var SIMPLE_INLINED = util2.toHash([
50619
50619
  "type",
50620
50620
  "format",
50621
50621
  "pattern",
@@ -50716,7 +50716,7 @@ var require_resolve = __commonJS({
50716
50716
  var baseId = baseIds[parentJsonPtr];
50717
50717
  var fullPath = fullPaths[parentJsonPtr] + "/" + parentKeyword;
50718
50718
  if (keyIndex !== void 0)
50719
- fullPath += "/" + (typeof keyIndex == "number" ? keyIndex : util.escapeFragment(keyIndex));
50719
+ fullPath += "/" + (typeof keyIndex == "number" ? keyIndex : util2.escapeFragment(keyIndex));
50720
50720
  if (typeof id == "string") {
50721
50721
  id = baseId = normalizeId(baseId ? URI.resolve(baseId, id) : id);
50722
50722
  var refVal = self2._refs[id];
@@ -51315,11 +51315,11 @@ var require_compile2 = __commonJS({
51315
51315
  "../../node_modules/ajv/lib/compile/index.js"(exports2, module2) {
51316
51316
  "use strict";
51317
51317
  var resolve = require_resolve();
51318
- var util = require_util3();
51318
+ var util2 = require_util3();
51319
51319
  var errorClasses = require_error_classes();
51320
51320
  var stableStringify = require_fast_json_stable_stringify();
51321
51321
  var validateGenerator = require_validate2();
51322
- var ucs2length = util.ucs2length;
51322
+ var ucs2length = util2.ucs2length;
51323
51323
  var equal = require_fast_deep_equal();
51324
51324
  var ValidationError = errorClasses.Validation;
51325
51325
  module2.exports = compile;
@@ -51373,7 +51373,7 @@ var require_compile2 = __commonJS({
51373
51373
  MissingRefError: errorClasses.MissingRef,
51374
51374
  RULES,
51375
51375
  validate: validateGenerator,
51376
- util,
51376
+ util: util2,
51377
51377
  resolve,
51378
51378
  resolveRef,
51379
51379
  usePattern,
@@ -51474,7 +51474,7 @@ var require_compile2 = __commonJS({
51474
51474
  case "number":
51475
51475
  return "" + value;
51476
51476
  case "string":
51477
- return util.toQuotedString(value);
51477
+ return util2.toQuotedString(value);
51478
51478
  case "object":
51479
51479
  if (value === null)
51480
51480
  return "null";
@@ -51557,7 +51557,7 @@ var require_compile2 = __commonJS({
51557
51557
  return -1;
51558
51558
  }
51559
51559
  function patternCode(i, patterns) {
51560
- return "var pattern" + i + " = new RegExp(" + util.toQuotedString(patterns[i]) + ");";
51560
+ return "var pattern" + i + " = new RegExp(" + util2.toQuotedString(patterns[i]) + ");";
51561
51561
  }
51562
51562
  function defaultCode(i) {
51563
51563
  return "var default" + i + " = defaults[" + i + "];";
@@ -51605,7 +51605,7 @@ var require_cache = __commonJS({
51605
51605
  var require_formats2 = __commonJS({
51606
51606
  "../../node_modules/ajv/lib/compile/formats.js"(exports2, module2) {
51607
51607
  "use strict";
51608
- var util = require_util3();
51608
+ var util2 = require_util3();
51609
51609
  var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
51610
51610
  var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
51611
51611
  var TIME = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
@@ -51621,7 +51621,7 @@ var require_formats2 = __commonJS({
51621
51621
  module2.exports = formats2;
51622
51622
  function formats2(mode) {
51623
51623
  mode = mode == "full" ? "full" : "fast";
51624
- return util.copy(formats2[mode]);
51624
+ return util2.copy(formats2[mode]);
51625
51625
  }
51626
51626
  formats2.fast = {
51627
51627
  date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/,
@@ -55061,7 +55061,7 @@ var require_ajv = __commonJS({
55061
55061
  var formats2 = require_formats2();
55062
55062
  var rules = require_rules2();
55063
55063
  var $dataMetaSchema = require_data();
55064
- var util = require_util3();
55064
+ var util2 = require_util3();
55065
55065
  module2.exports = Ajv;
55066
55066
  Ajv.prototype.validate = validate;
55067
55067
  Ajv.prototype.compile = compile;
@@ -55090,7 +55090,7 @@ var require_ajv = __commonJS({
55090
55090
  function Ajv(opts) {
55091
55091
  if (!(this instanceof Ajv))
55092
55092
  return new Ajv(opts);
55093
- opts = this._opts = util.copy(opts) || {};
55093
+ opts = this._opts = util2.copy(opts) || {};
55094
55094
  setLogger(this);
55095
55095
  this._schemas = {};
55096
55096
  this._refs = {};
@@ -55409,7 +55409,7 @@ var require_ajv = __commonJS({
55409
55409
  throw new Error('schema with key or id "' + id + '" already exists');
55410
55410
  }
55411
55411
  function getMetaSchemaOptions(self2) {
55412
- var metaOpts = util.copy(self2._opts);
55412
+ var metaOpts = util2.copy(self2._opts);
55413
55413
  for (var i = 0; i < META_IGNORE_OPTIONS.length; i++)
55414
55414
  delete metaOpts[META_IGNORE_OPTIONS[i]];
55415
55415
  return metaOpts;
@@ -57295,7 +57295,7 @@ var require_tunnel_agent = __commonJS({
57295
57295
  var https2 = require("https");
57296
57296
  var events = require("events");
57297
57297
  var assert3 = require("assert");
57298
- var util = require("util");
57298
+ var util2 = require("util");
57299
57299
  var Buffer2 = require_safe_buffer().Buffer;
57300
57300
  exports2.httpOverHttp = httpOverHttp;
57301
57301
  exports2.httpsOverHttp = httpsOverHttp;
@@ -57345,7 +57345,7 @@ var require_tunnel_agent = __commonJS({
57345
57345
  self2.removeSocket(socket);
57346
57346
  });
57347
57347
  }
57348
- util.inherits(TunnelingAgent, events.EventEmitter);
57348
+ util2.inherits(TunnelingAgent, events.EventEmitter);
57349
57349
  TunnelingAgent.prototype.addRequest = function addRequest(req, options) {
57350
57350
  var self2 = this;
57351
57351
  if (typeof options === "string") {
@@ -57673,7 +57673,7 @@ var require_request2 = __commonJS({
57673
57673
  var http2 = require("http");
57674
57674
  var https2 = require("https");
57675
57675
  var url = require("url");
57676
- var util = require("util");
57676
+ var util2 = require("util");
57677
57677
  var stream = require("stream");
57678
57678
  var zlib2 = require("zlib");
57679
57679
  var aws2 = require_aws_sign2();
@@ -57769,11 +57769,11 @@ var require_request2 = __commonJS({
57769
57769
  self2._tunnel = new Tunnel(self2);
57770
57770
  self2.init(options);
57771
57771
  }
57772
- util.inherits(Request, stream.Stream);
57772
+ util2.inherits(Request, stream.Stream);
57773
57773
  Request.debug = process.env.NODE_DEBUG && /\brequest\b/.test(process.env.NODE_DEBUG);
57774
57774
  function debug() {
57775
57775
  if (Request.debug) {
57776
- console.error("REQUEST %s", util.format.apply(util, arguments));
57776
+ console.error("REQUEST %s", util2.format.apply(util2, arguments));
57777
57777
  }
57778
57778
  }
57779
57779
  Request.prototype.debug = debug;
@@ -63357,7 +63357,7 @@ var require_ktx_parse = __commonJS({
63357
63357
  });
63358
63358
 
63359
63359
  // ../worker-utils/src/lib/env-utils/version.ts
63360
- var VERSION = true ? "3.3.0" : DEFAULT_VERSION;
63360
+ var VERSION = true ? "3.4.0-alpha.1" : DEFAULT_VERSION;
63361
63361
  if (false) {
63362
63362
  console.error("loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.");
63363
63363
  }
@@ -65679,31 +65679,23 @@ function encodeImageNode(image, options) {
65679
65679
 
65680
65680
  // ../polyfills/src/node/images/parse-image.node.ts
65681
65681
  var import_get_pixels = __toModule(require_node_pixels());
65682
+ var import_util = __toModule(require("util"));
65682
65683
  async function parseImageNode(arrayBuffer, mimeType) {
65683
- if (!mimeType) {
65684
- throw new Error("MIMEType is required to parse image under Node.js");
65685
- }
65684
+ assert2(mimeType, "MIMEType is required to parse image under Node.js");
65685
+ const getPixelsAsync = import_util.default.promisify(import_get_pixels.default);
65686
65686
  const buffer = arrayBuffer instanceof Buffer ? arrayBuffer : Buffer.from(arrayBuffer);
65687
65687
  const ndarray2 = await getPixelsAsync(buffer, mimeType);
65688
- return ndarray2;
65689
- }
65690
- function getPixelsAsync(buffer, mimeType) {
65691
- return new Promise((resolve) => (0, import_get_pixels.default)(buffer, mimeType, (err, ndarray2) => {
65692
- if (err) {
65693
- throw err;
65694
- }
65695
- const shape = [...ndarray2.shape];
65696
- const layers = ndarray2.shape.length === 4 ? ndarray2.shape.shift() : 1;
65697
- const data = ndarray2.data instanceof Buffer ? new Uint8Array(ndarray2.data) : ndarray2.data;
65698
- resolve({
65699
- shape,
65700
- data,
65701
- width: ndarray2.shape[0],
65702
- height: ndarray2.shape[1],
65703
- components: ndarray2.shape[2],
65704
- layers: layers ? [layers] : []
65705
- });
65706
- }));
65688
+ const shape = [...ndarray2.shape];
65689
+ const layers = ndarray2.shape.length === 4 ? ndarray2.shape.shift() : 1;
65690
+ const data = ndarray2.data instanceof Buffer ? new Uint8Array(ndarray2.data) : ndarray2.data;
65691
+ return {
65692
+ shape,
65693
+ data,
65694
+ width: ndarray2.shape[0],
65695
+ height: ndarray2.shape[1],
65696
+ components: ndarray2.shape[2],
65697
+ layers
65698
+ };
65707
65699
  }
65708
65700
 
65709
65701
  // ../polyfills/src/node/file/readable-stream.ts
@@ -65915,10 +65907,10 @@ if (!("allSettled" in Promise)) {
65915
65907
  }
65916
65908
 
65917
65909
  // src/lib/utils/version.ts
65918
- var VERSION3 = true ? "3.3.0" : "beta";
65910
+ var VERSION3 = true ? "3.4.0-alpha.1" : "beta";
65919
65911
 
65920
65912
  // src/lib/parsers/basis-module-loader.ts
65921
- var VERSION4 = true ? "3.3.0" : "beta";
65913
+ var VERSION4 = true ? "3.4.0-alpha.1" : "beta";
65922
65914
  var BASIS_CDN_ENCODER_WASM = `https://unpkg.com/@loaders.gl/textures@${VERSION4}/dist/libs/basis_encoder.wasm`;
65923
65915
  var BASIS_CDN_ENCODER_JS = `https://unpkg.com/@loaders.gl/textures@${VERSION4}/dist/libs/basis_encoder.js`;
65924
65916
  var loadBasisTranscoderPromise;