@applitools/eyes-browser 1.4.2 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -271,13 +271,13 @@ var require_buffer = __commonJS({
271
271
  var base64 = require_base64_js();
272
272
  var ieee754 = require_ieee754();
273
273
  var customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
274
- exports.Buffer = Buffer3;
274
+ exports.Buffer = Buffer4;
275
275
  exports.SlowBuffer = SlowBuffer;
276
276
  exports.INSPECT_MAX_BYTES = 50;
277
277
  var K_MAX_LENGTH = 2147483647;
278
278
  exports.kMaxLength = K_MAX_LENGTH;
279
- Buffer3.TYPED_ARRAY_SUPPORT = typedArraySupport();
280
- if (!Buffer3.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
279
+ Buffer4.TYPED_ARRAY_SUPPORT = typedArraySupport();
280
+ if (!Buffer4.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
281
281
  console.error(
282
282
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
283
283
  );
@@ -295,18 +295,18 @@ var require_buffer = __commonJS({
295
295
  return false;
296
296
  }
297
297
  }
298
- Object.defineProperty(Buffer3.prototype, "parent", {
298
+ Object.defineProperty(Buffer4.prototype, "parent", {
299
299
  enumerable: true,
300
300
  get: function() {
301
- if (!Buffer3.isBuffer(this))
301
+ if (!Buffer4.isBuffer(this))
302
302
  return void 0;
303
303
  return this.buffer;
304
304
  }
305
305
  });
306
- Object.defineProperty(Buffer3.prototype, "offset", {
306
+ Object.defineProperty(Buffer4.prototype, "offset", {
307
307
  enumerable: true,
308
308
  get: function() {
309
- if (!Buffer3.isBuffer(this))
309
+ if (!Buffer4.isBuffer(this))
310
310
  return void 0;
311
311
  return this.byteOffset;
312
312
  }
@@ -316,10 +316,10 @@ var require_buffer = __commonJS({
316
316
  throw new RangeError('The value "' + length + '" is invalid for option "size"');
317
317
  }
318
318
  const buf = new Uint8Array(length);
319
- Object.setPrototypeOf(buf, Buffer3.prototype);
319
+ Object.setPrototypeOf(buf, Buffer4.prototype);
320
320
  return buf;
321
321
  }
322
- function Buffer3(arg, encodingOrOffset, length) {
322
+ function Buffer4(arg, encodingOrOffset, length) {
323
323
  if (typeof arg === "number") {
324
324
  if (typeof encodingOrOffset === "string") {
325
325
  throw new TypeError(
@@ -330,7 +330,7 @@ var require_buffer = __commonJS({
330
330
  }
331
331
  return from(arg, encodingOrOffset, length);
332
332
  }
333
- Buffer3.poolSize = 8192;
333
+ Buffer4.poolSize = 8192;
334
334
  function from(value, encodingOrOffset, length) {
335
335
  if (typeof value === "string") {
336
336
  return fromString(value, encodingOrOffset);
@@ -356,23 +356,23 @@ var require_buffer = __commonJS({
356
356
  }
357
357
  const valueOf = value.valueOf && value.valueOf();
358
358
  if (valueOf != null && valueOf !== value) {
359
- return Buffer3.from(valueOf, encodingOrOffset, length);
359
+ return Buffer4.from(valueOf, encodingOrOffset, length);
360
360
  }
361
361
  const b = fromObject(value);
362
362
  if (b)
363
363
  return b;
364
364
  if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
365
- return Buffer3.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
365
+ return Buffer4.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
366
366
  }
367
367
  throw new TypeError(
368
368
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
369
369
  );
370
370
  }
371
- Buffer3.from = function(value, encodingOrOffset, length) {
371
+ Buffer4.from = function(value, encodingOrOffset, length) {
372
372
  return from(value, encodingOrOffset, length);
373
373
  };
374
- Object.setPrototypeOf(Buffer3.prototype, Uint8Array.prototype);
375
- Object.setPrototypeOf(Buffer3, Uint8Array);
374
+ Object.setPrototypeOf(Buffer4.prototype, Uint8Array.prototype);
375
+ Object.setPrototypeOf(Buffer4, Uint8Array);
376
376
  function assertSize(size) {
377
377
  if (typeof size !== "number") {
378
378
  throw new TypeError('"size" argument must be of type number');
@@ -390,24 +390,24 @@ var require_buffer = __commonJS({
390
390
  }
391
391
  return createBuffer(size);
392
392
  }
393
- Buffer3.alloc = function(size, fill, encoding) {
393
+ Buffer4.alloc = function(size, fill, encoding) {
394
394
  return alloc(size, fill, encoding);
395
395
  };
396
396
  function allocUnsafe(size) {
397
397
  assertSize(size);
398
398
  return createBuffer(size < 0 ? 0 : checked(size) | 0);
399
399
  }
400
- Buffer3.allocUnsafe = function(size) {
400
+ Buffer4.allocUnsafe = function(size) {
401
401
  return allocUnsafe(size);
402
402
  };
403
- Buffer3.allocUnsafeSlow = function(size) {
403
+ Buffer4.allocUnsafeSlow = function(size) {
404
404
  return allocUnsafe(size);
405
405
  };
406
406
  function fromString(string, encoding) {
407
407
  if (typeof encoding !== "string" || encoding === "") {
408
408
  encoding = "utf8";
409
409
  }
410
- if (!Buffer3.isEncoding(encoding)) {
410
+ if (!Buffer4.isEncoding(encoding)) {
411
411
  throw new TypeError("Unknown encoding: " + encoding);
412
412
  }
413
413
  const length = byteLength(string, encoding) | 0;
@@ -448,11 +448,11 @@ var require_buffer = __commonJS({
448
448
  } else {
449
449
  buf = new Uint8Array(array, byteOffset, length);
450
450
  }
451
- Object.setPrototypeOf(buf, Buffer3.prototype);
451
+ Object.setPrototypeOf(buf, Buffer4.prototype);
452
452
  return buf;
453
453
  }
454
454
  function fromObject(obj) {
455
- if (Buffer3.isBuffer(obj)) {
455
+ if (Buffer4.isBuffer(obj)) {
456
456
  const len = checked(obj.length) | 0;
457
457
  const buf = createBuffer(len);
458
458
  if (buf.length === 0) {
@@ -481,17 +481,17 @@ var require_buffer = __commonJS({
481
481
  if (+length != length) {
482
482
  length = 0;
483
483
  }
484
- return Buffer3.alloc(+length);
484
+ return Buffer4.alloc(+length);
485
485
  }
486
- Buffer3.isBuffer = function isBuffer(b) {
487
- return b != null && b._isBuffer === true && b !== Buffer3.prototype;
486
+ Buffer4.isBuffer = function isBuffer(b) {
487
+ return b != null && b._isBuffer === true && b !== Buffer4.prototype;
488
488
  };
489
- Buffer3.compare = function compare(a, b) {
489
+ Buffer4.compare = function compare(a, b) {
490
490
  if (isInstance(a, Uint8Array))
491
- a = Buffer3.from(a, a.offset, a.byteLength);
491
+ a = Buffer4.from(a, a.offset, a.byteLength);
492
492
  if (isInstance(b, Uint8Array))
493
- b = Buffer3.from(b, b.offset, b.byteLength);
494
- if (!Buffer3.isBuffer(a) || !Buffer3.isBuffer(b)) {
493
+ b = Buffer4.from(b, b.offset, b.byteLength);
494
+ if (!Buffer4.isBuffer(a) || !Buffer4.isBuffer(b)) {
495
495
  throw new TypeError(
496
496
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
497
497
  );
@@ -513,7 +513,7 @@ var require_buffer = __commonJS({
513
513
  return 1;
514
514
  return 0;
515
515
  };
516
- Buffer3.isEncoding = function isEncoding(encoding) {
516
+ Buffer4.isEncoding = function isEncoding(encoding) {
517
517
  switch (String(encoding).toLowerCase()) {
518
518
  case "hex":
519
519
  case "utf8":
@@ -531,12 +531,12 @@ var require_buffer = __commonJS({
531
531
  return false;
532
532
  }
533
533
  };
534
- Buffer3.concat = function concat(list, length) {
534
+ Buffer4.concat = function concat(list, length) {
535
535
  if (!Array.isArray(list)) {
536
536
  throw new TypeError('"list" argument must be an Array of Buffers');
537
537
  }
538
538
  if (list.length === 0) {
539
- return Buffer3.alloc(0);
539
+ return Buffer4.alloc(0);
540
540
  }
541
541
  let i;
542
542
  if (length === void 0) {
@@ -545,14 +545,14 @@ var require_buffer = __commonJS({
545
545
  length += list[i].length;
546
546
  }
547
547
  }
548
- const buffer = Buffer3.allocUnsafe(length);
548
+ const buffer = Buffer4.allocUnsafe(length);
549
549
  let pos = 0;
550
550
  for (i = 0; i < list.length; ++i) {
551
551
  let buf = list[i];
552
552
  if (isInstance(buf, Uint8Array)) {
553
553
  if (pos + buf.length > buffer.length) {
554
- if (!Buffer3.isBuffer(buf))
555
- buf = Buffer3.from(buf);
554
+ if (!Buffer4.isBuffer(buf))
555
+ buf = Buffer4.from(buf);
556
556
  buf.copy(buffer, pos);
557
557
  } else {
558
558
  Uint8Array.prototype.set.call(
@@ -561,7 +561,7 @@ var require_buffer = __commonJS({
561
561
  pos
562
562
  );
563
563
  }
564
- } else if (!Buffer3.isBuffer(buf)) {
564
+ } else if (!Buffer4.isBuffer(buf)) {
565
565
  throw new TypeError('"list" argument must be an Array of Buffers');
566
566
  } else {
567
567
  buf.copy(buffer, pos);
@@ -571,7 +571,7 @@ var require_buffer = __commonJS({
571
571
  return buffer;
572
572
  };
573
573
  function byteLength(string, encoding) {
574
- if (Buffer3.isBuffer(string)) {
574
+ if (Buffer4.isBuffer(string)) {
575
575
  return string.length;
576
576
  }
577
577
  if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
@@ -614,7 +614,7 @@ var require_buffer = __commonJS({
614
614
  }
615
615
  }
616
616
  }
617
- Buffer3.byteLength = byteLength;
617
+ Buffer4.byteLength = byteLength;
618
618
  function slowToString(encoding, start, end) {
619
619
  let loweredCase = false;
620
620
  if (start === void 0 || start < 0) {
@@ -663,13 +663,13 @@ var require_buffer = __commonJS({
663
663
  }
664
664
  }
665
665
  }
666
- Buffer3.prototype._isBuffer = true;
666
+ Buffer4.prototype._isBuffer = true;
667
667
  function swap(b, n, m) {
668
668
  const i = b[n];
669
669
  b[n] = b[m];
670
670
  b[m] = i;
671
671
  }
672
- Buffer3.prototype.swap16 = function swap16() {
672
+ Buffer4.prototype.swap16 = function swap16() {
673
673
  const len = this.length;
674
674
  if (len % 2 !== 0) {
675
675
  throw new RangeError("Buffer size must be a multiple of 16-bits");
@@ -679,7 +679,7 @@ var require_buffer = __commonJS({
679
679
  }
680
680
  return this;
681
681
  };
682
- Buffer3.prototype.swap32 = function swap32() {
682
+ Buffer4.prototype.swap32 = function swap32() {
683
683
  const len = this.length;
684
684
  if (len % 4 !== 0) {
685
685
  throw new RangeError("Buffer size must be a multiple of 32-bits");
@@ -690,7 +690,7 @@ var require_buffer = __commonJS({
690
690
  }
691
691
  return this;
692
692
  };
693
- Buffer3.prototype.swap64 = function swap64() {
693
+ Buffer4.prototype.swap64 = function swap64() {
694
694
  const len = this.length;
695
695
  if (len % 8 !== 0) {
696
696
  throw new RangeError("Buffer size must be a multiple of 64-bits");
@@ -703,7 +703,7 @@ var require_buffer = __commonJS({
703
703
  }
704
704
  return this;
705
705
  };
706
- Buffer3.prototype.toString = function toString() {
706
+ Buffer4.prototype.toString = function toString() {
707
707
  const length = this.length;
708
708
  if (length === 0)
709
709
  return "";
@@ -711,15 +711,15 @@ var require_buffer = __commonJS({
711
711
  return utf8Slice(this, 0, length);
712
712
  return slowToString.apply(this, arguments);
713
713
  };
714
- Buffer3.prototype.toLocaleString = Buffer3.prototype.toString;
715
- Buffer3.prototype.equals = function equals(b) {
716
- if (!Buffer3.isBuffer(b))
714
+ Buffer4.prototype.toLocaleString = Buffer4.prototype.toString;
715
+ Buffer4.prototype.equals = function equals(b) {
716
+ if (!Buffer4.isBuffer(b))
717
717
  throw new TypeError("Argument must be a Buffer");
718
718
  if (this === b)
719
719
  return true;
720
- return Buffer3.compare(this, b) === 0;
720
+ return Buffer4.compare(this, b) === 0;
721
721
  };
722
- Buffer3.prototype.inspect = function inspect() {
722
+ Buffer4.prototype.inspect = function inspect() {
723
723
  let str = "";
724
724
  const max = exports.INSPECT_MAX_BYTES;
725
725
  str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
@@ -728,13 +728,13 @@ var require_buffer = __commonJS({
728
728
  return "<Buffer " + str + ">";
729
729
  };
730
730
  if (customInspectSymbol) {
731
- Buffer3.prototype[customInspectSymbol] = Buffer3.prototype.inspect;
731
+ Buffer4.prototype[customInspectSymbol] = Buffer4.prototype.inspect;
732
732
  }
733
- Buffer3.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
733
+ Buffer4.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
734
734
  if (isInstance(target, Uint8Array)) {
735
- target = Buffer3.from(target, target.offset, target.byteLength);
735
+ target = Buffer4.from(target, target.offset, target.byteLength);
736
736
  }
737
- if (!Buffer3.isBuffer(target)) {
737
+ if (!Buffer4.isBuffer(target)) {
738
738
  throw new TypeError(
739
739
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target
740
740
  );
@@ -816,9 +816,9 @@ var require_buffer = __commonJS({
816
816
  return -1;
817
817
  }
818
818
  if (typeof val === "string") {
819
- val = Buffer3.from(val, encoding);
819
+ val = Buffer4.from(val, encoding);
820
820
  }
821
- if (Buffer3.isBuffer(val)) {
821
+ if (Buffer4.isBuffer(val)) {
822
822
  if (val.length === 0) {
823
823
  return -1;
824
824
  }
@@ -891,13 +891,13 @@ var require_buffer = __commonJS({
891
891
  }
892
892
  return -1;
893
893
  }
894
- Buffer3.prototype.includes = function includes(val, byteOffset, encoding) {
894
+ Buffer4.prototype.includes = function includes(val, byteOffset, encoding) {
895
895
  return this.indexOf(val, byteOffset, encoding) !== -1;
896
896
  };
897
- Buffer3.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
897
+ Buffer4.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
898
898
  return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
899
899
  };
900
- Buffer3.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
900
+ Buffer4.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
901
901
  return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
902
902
  };
903
903
  function hexWrite(buf, string, offset, length) {
@@ -936,7 +936,7 @@ var require_buffer = __commonJS({
936
936
  function ucs2Write(buf, string, offset, length) {
937
937
  return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
938
938
  }
939
- Buffer3.prototype.write = function write(string, offset, length, encoding) {
939
+ Buffer4.prototype.write = function write(string, offset, length, encoding) {
940
940
  if (offset === void 0) {
941
941
  encoding = "utf8";
942
942
  length = this.length;
@@ -995,7 +995,7 @@ var require_buffer = __commonJS({
995
995
  }
996
996
  }
997
997
  };
998
- Buffer3.prototype.toJSON = function toJSON() {
998
+ Buffer4.prototype.toJSON = function toJSON() {
999
999
  return {
1000
1000
  type: "Buffer",
1001
1001
  data: Array.prototype.slice.call(this._arr || this, 0)
@@ -1120,7 +1120,7 @@ var require_buffer = __commonJS({
1120
1120
  }
1121
1121
  return res;
1122
1122
  }
1123
- Buffer3.prototype.slice = function slice(start, end) {
1123
+ Buffer4.prototype.slice = function slice(start, end) {
1124
1124
  const len = this.length;
1125
1125
  start = ~~start;
1126
1126
  end = end === void 0 ? len : ~~end;
@@ -1141,7 +1141,7 @@ var require_buffer = __commonJS({
1141
1141
  if (end < start)
1142
1142
  end = start;
1143
1143
  const newBuf = this.subarray(start, end);
1144
- Object.setPrototypeOf(newBuf, Buffer3.prototype);
1144
+ Object.setPrototypeOf(newBuf, Buffer4.prototype);
1145
1145
  return newBuf;
1146
1146
  };
1147
1147
  function checkOffset(offset, ext, length) {
@@ -1150,7 +1150,7 @@ var require_buffer = __commonJS({
1150
1150
  if (offset + ext > length)
1151
1151
  throw new RangeError("Trying to access beyond buffer length");
1152
1152
  }
1153
- Buffer3.prototype.readUintLE = Buffer3.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
1153
+ Buffer4.prototype.readUintLE = Buffer4.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
1154
1154
  offset = offset >>> 0;
1155
1155
  byteLength2 = byteLength2 >>> 0;
1156
1156
  if (!noAssert)
@@ -1163,7 +1163,7 @@ var require_buffer = __commonJS({
1163
1163
  }
1164
1164
  return val;
1165
1165
  };
1166
- Buffer3.prototype.readUintBE = Buffer3.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
1166
+ Buffer4.prototype.readUintBE = Buffer4.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
1167
1167
  offset = offset >>> 0;
1168
1168
  byteLength2 = byteLength2 >>> 0;
1169
1169
  if (!noAssert) {
@@ -1176,37 +1176,37 @@ var require_buffer = __commonJS({
1176
1176
  }
1177
1177
  return val;
1178
1178
  };
1179
- Buffer3.prototype.readUint8 = Buffer3.prototype.readUInt8 = function readUInt8(offset, noAssert) {
1179
+ Buffer4.prototype.readUint8 = Buffer4.prototype.readUInt8 = function readUInt8(offset, noAssert) {
1180
1180
  offset = offset >>> 0;
1181
1181
  if (!noAssert)
1182
1182
  checkOffset(offset, 1, this.length);
1183
1183
  return this[offset];
1184
1184
  };
1185
- Buffer3.prototype.readUint16LE = Buffer3.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
1185
+ Buffer4.prototype.readUint16LE = Buffer4.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
1186
1186
  offset = offset >>> 0;
1187
1187
  if (!noAssert)
1188
1188
  checkOffset(offset, 2, this.length);
1189
1189
  return this[offset] | this[offset + 1] << 8;
1190
1190
  };
1191
- Buffer3.prototype.readUint16BE = Buffer3.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
1191
+ Buffer4.prototype.readUint16BE = Buffer4.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
1192
1192
  offset = offset >>> 0;
1193
1193
  if (!noAssert)
1194
1194
  checkOffset(offset, 2, this.length);
1195
1195
  return this[offset] << 8 | this[offset + 1];
1196
1196
  };
1197
- Buffer3.prototype.readUint32LE = Buffer3.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
1197
+ Buffer4.prototype.readUint32LE = Buffer4.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
1198
1198
  offset = offset >>> 0;
1199
1199
  if (!noAssert)
1200
1200
  checkOffset(offset, 4, this.length);
1201
1201
  return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
1202
1202
  };
1203
- Buffer3.prototype.readUint32BE = Buffer3.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
1203
+ Buffer4.prototype.readUint32BE = Buffer4.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
1204
1204
  offset = offset >>> 0;
1205
1205
  if (!noAssert)
1206
1206
  checkOffset(offset, 4, this.length);
1207
1207
  return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
1208
1208
  };
1209
- Buffer3.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
1209
+ Buffer4.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
1210
1210
  offset = offset >>> 0;
1211
1211
  validateNumber(offset, "offset");
1212
1212
  const first = this[offset];
@@ -1218,7 +1218,7 @@ var require_buffer = __commonJS({
1218
1218
  const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last * 2 ** 24;
1219
1219
  return BigInt(lo) + (BigInt(hi) << BigInt(32));
1220
1220
  });
1221
- Buffer3.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
1221
+ Buffer4.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
1222
1222
  offset = offset >>> 0;
1223
1223
  validateNumber(offset, "offset");
1224
1224
  const first = this[offset];
@@ -1230,7 +1230,7 @@ var require_buffer = __commonJS({
1230
1230
  const lo = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last;
1231
1231
  return (BigInt(hi) << BigInt(32)) + BigInt(lo);
1232
1232
  });
1233
- Buffer3.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
1233
+ Buffer4.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
1234
1234
  offset = offset >>> 0;
1235
1235
  byteLength2 = byteLength2 >>> 0;
1236
1236
  if (!noAssert)
@@ -1246,7 +1246,7 @@ var require_buffer = __commonJS({
1246
1246
  val -= Math.pow(2, 8 * byteLength2);
1247
1247
  return val;
1248
1248
  };
1249
- Buffer3.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) {
1249
+ Buffer4.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) {
1250
1250
  offset = offset >>> 0;
1251
1251
  byteLength2 = byteLength2 >>> 0;
1252
1252
  if (!noAssert)
@@ -1262,7 +1262,7 @@ var require_buffer = __commonJS({
1262
1262
  val -= Math.pow(2, 8 * byteLength2);
1263
1263
  return val;
1264
1264
  };
1265
- Buffer3.prototype.readInt8 = function readInt8(offset, noAssert) {
1265
+ Buffer4.prototype.readInt8 = function readInt8(offset, noAssert) {
1266
1266
  offset = offset >>> 0;
1267
1267
  if (!noAssert)
1268
1268
  checkOffset(offset, 1, this.length);
@@ -1270,33 +1270,33 @@ var require_buffer = __commonJS({
1270
1270
  return this[offset];
1271
1271
  return (255 - this[offset] + 1) * -1;
1272
1272
  };
1273
- Buffer3.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
1273
+ Buffer4.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
1274
1274
  offset = offset >>> 0;
1275
1275
  if (!noAssert)
1276
1276
  checkOffset(offset, 2, this.length);
1277
1277
  const val = this[offset] | this[offset + 1] << 8;
1278
1278
  return val & 32768 ? val | 4294901760 : val;
1279
1279
  };
1280
- Buffer3.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
1280
+ Buffer4.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
1281
1281
  offset = offset >>> 0;
1282
1282
  if (!noAssert)
1283
1283
  checkOffset(offset, 2, this.length);
1284
1284
  const val = this[offset + 1] | this[offset] << 8;
1285
1285
  return val & 32768 ? val | 4294901760 : val;
1286
1286
  };
1287
- Buffer3.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
1287
+ Buffer4.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
1288
1288
  offset = offset >>> 0;
1289
1289
  if (!noAssert)
1290
1290
  checkOffset(offset, 4, this.length);
1291
1291
  return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
1292
1292
  };
1293
- Buffer3.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
1293
+ Buffer4.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
1294
1294
  offset = offset >>> 0;
1295
1295
  if (!noAssert)
1296
1296
  checkOffset(offset, 4, this.length);
1297
1297
  return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
1298
1298
  };
1299
- Buffer3.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
1299
+ Buffer4.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
1300
1300
  offset = offset >>> 0;
1301
1301
  validateNumber(offset, "offset");
1302
1302
  const first = this[offset];
@@ -1307,7 +1307,7 @@ var require_buffer = __commonJS({
1307
1307
  const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last << 24);
1308
1308
  return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);
1309
1309
  });
1310
- Buffer3.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
1310
+ Buffer4.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
1311
1311
  offset = offset >>> 0;
1312
1312
  validateNumber(offset, "offset");
1313
1313
  const first = this[offset];
@@ -1319,39 +1319,39 @@ var require_buffer = __commonJS({
1319
1319
  this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
1320
1320
  return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last);
1321
1321
  });
1322
- Buffer3.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
1322
+ Buffer4.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
1323
1323
  offset = offset >>> 0;
1324
1324
  if (!noAssert)
1325
1325
  checkOffset(offset, 4, this.length);
1326
1326
  return ieee754.read(this, offset, true, 23, 4);
1327
1327
  };
1328
- Buffer3.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
1328
+ Buffer4.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
1329
1329
  offset = offset >>> 0;
1330
1330
  if (!noAssert)
1331
1331
  checkOffset(offset, 4, this.length);
1332
1332
  return ieee754.read(this, offset, false, 23, 4);
1333
1333
  };
1334
- Buffer3.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
1334
+ Buffer4.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
1335
1335
  offset = offset >>> 0;
1336
1336
  if (!noAssert)
1337
1337
  checkOffset(offset, 8, this.length);
1338
1338
  return ieee754.read(this, offset, true, 52, 8);
1339
1339
  };
1340
- Buffer3.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
1340
+ Buffer4.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
1341
1341
  offset = offset >>> 0;
1342
1342
  if (!noAssert)
1343
1343
  checkOffset(offset, 8, this.length);
1344
1344
  return ieee754.read(this, offset, false, 52, 8);
1345
1345
  };
1346
1346
  function checkInt(buf, value, offset, ext, max, min) {
1347
- if (!Buffer3.isBuffer(buf))
1347
+ if (!Buffer4.isBuffer(buf))
1348
1348
  throw new TypeError('"buffer" argument must be a Buffer instance');
1349
1349
  if (value > max || value < min)
1350
1350
  throw new RangeError('"value" argument is out of bounds');
1351
1351
  if (offset + ext > buf.length)
1352
1352
  throw new RangeError("Index out of range");
1353
1353
  }
1354
- Buffer3.prototype.writeUintLE = Buffer3.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
1354
+ Buffer4.prototype.writeUintLE = Buffer4.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
1355
1355
  value = +value;
1356
1356
  offset = offset >>> 0;
1357
1357
  byteLength2 = byteLength2 >>> 0;
@@ -1367,7 +1367,7 @@ var require_buffer = __commonJS({
1367
1367
  }
1368
1368
  return offset + byteLength2;
1369
1369
  };
1370
- Buffer3.prototype.writeUintBE = Buffer3.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
1370
+ Buffer4.prototype.writeUintBE = Buffer4.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
1371
1371
  value = +value;
1372
1372
  offset = offset >>> 0;
1373
1373
  byteLength2 = byteLength2 >>> 0;
@@ -1383,7 +1383,7 @@ var require_buffer = __commonJS({
1383
1383
  }
1384
1384
  return offset + byteLength2;
1385
1385
  };
1386
- Buffer3.prototype.writeUint8 = Buffer3.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
1386
+ Buffer4.prototype.writeUint8 = Buffer4.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
1387
1387
  value = +value;
1388
1388
  offset = offset >>> 0;
1389
1389
  if (!noAssert)
@@ -1391,7 +1391,7 @@ var require_buffer = __commonJS({
1391
1391
  this[offset] = value & 255;
1392
1392
  return offset + 1;
1393
1393
  };
1394
- Buffer3.prototype.writeUint16LE = Buffer3.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
1394
+ Buffer4.prototype.writeUint16LE = Buffer4.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
1395
1395
  value = +value;
1396
1396
  offset = offset >>> 0;
1397
1397
  if (!noAssert)
@@ -1400,7 +1400,7 @@ var require_buffer = __commonJS({
1400
1400
  this[offset + 1] = value >>> 8;
1401
1401
  return offset + 2;
1402
1402
  };
1403
- Buffer3.prototype.writeUint16BE = Buffer3.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
1403
+ Buffer4.prototype.writeUint16BE = Buffer4.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
1404
1404
  value = +value;
1405
1405
  offset = offset >>> 0;
1406
1406
  if (!noAssert)
@@ -1409,7 +1409,7 @@ var require_buffer = __commonJS({
1409
1409
  this[offset + 1] = value & 255;
1410
1410
  return offset + 2;
1411
1411
  };
1412
- Buffer3.prototype.writeUint32LE = Buffer3.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
1412
+ Buffer4.prototype.writeUint32LE = Buffer4.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
1413
1413
  value = +value;
1414
1414
  offset = offset >>> 0;
1415
1415
  if (!noAssert)
@@ -1420,7 +1420,7 @@ var require_buffer = __commonJS({
1420
1420
  this[offset] = value & 255;
1421
1421
  return offset + 4;
1422
1422
  };
1423
- Buffer3.prototype.writeUint32BE = Buffer3.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
1423
+ Buffer4.prototype.writeUint32BE = Buffer4.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
1424
1424
  value = +value;
1425
1425
  offset = offset >>> 0;
1426
1426
  if (!noAssert)
@@ -1471,13 +1471,13 @@ var require_buffer = __commonJS({
1471
1471
  buf[offset] = hi;
1472
1472
  return offset + 8;
1473
1473
  }
1474
- Buffer3.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
1474
+ Buffer4.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
1475
1475
  return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1476
1476
  });
1477
- Buffer3.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
1477
+ Buffer4.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
1478
1478
  return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1479
1479
  });
1480
- Buffer3.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
1480
+ Buffer4.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
1481
1481
  value = +value;
1482
1482
  offset = offset >>> 0;
1483
1483
  if (!noAssert) {
@@ -1496,7 +1496,7 @@ var require_buffer = __commonJS({
1496
1496
  }
1497
1497
  return offset + byteLength2;
1498
1498
  };
1499
- Buffer3.prototype.writeIntBE = function writeIntBE(value, offset, byteLength2, noAssert) {
1499
+ Buffer4.prototype.writeIntBE = function writeIntBE(value, offset, byteLength2, noAssert) {
1500
1500
  value = +value;
1501
1501
  offset = offset >>> 0;
1502
1502
  if (!noAssert) {
@@ -1515,7 +1515,7 @@ var require_buffer = __commonJS({
1515
1515
  }
1516
1516
  return offset + byteLength2;
1517
1517
  };
1518
- Buffer3.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
1518
+ Buffer4.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
1519
1519
  value = +value;
1520
1520
  offset = offset >>> 0;
1521
1521
  if (!noAssert)
@@ -1525,7 +1525,7 @@ var require_buffer = __commonJS({
1525
1525
  this[offset] = value & 255;
1526
1526
  return offset + 1;
1527
1527
  };
1528
- Buffer3.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
1528
+ Buffer4.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
1529
1529
  value = +value;
1530
1530
  offset = offset >>> 0;
1531
1531
  if (!noAssert)
@@ -1534,7 +1534,7 @@ var require_buffer = __commonJS({
1534
1534
  this[offset + 1] = value >>> 8;
1535
1535
  return offset + 2;
1536
1536
  };
1537
- Buffer3.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
1537
+ Buffer4.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
1538
1538
  value = +value;
1539
1539
  offset = offset >>> 0;
1540
1540
  if (!noAssert)
@@ -1543,7 +1543,7 @@ var require_buffer = __commonJS({
1543
1543
  this[offset + 1] = value & 255;
1544
1544
  return offset + 2;
1545
1545
  };
1546
- Buffer3.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
1546
+ Buffer4.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
1547
1547
  value = +value;
1548
1548
  offset = offset >>> 0;
1549
1549
  if (!noAssert)
@@ -1554,7 +1554,7 @@ var require_buffer = __commonJS({
1554
1554
  this[offset + 3] = value >>> 24;
1555
1555
  return offset + 4;
1556
1556
  };
1557
- Buffer3.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
1557
+ Buffer4.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
1558
1558
  value = +value;
1559
1559
  offset = offset >>> 0;
1560
1560
  if (!noAssert)
@@ -1567,10 +1567,10 @@ var require_buffer = __commonJS({
1567
1567
  this[offset + 3] = value & 255;
1568
1568
  return offset + 4;
1569
1569
  };
1570
- Buffer3.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
1570
+ Buffer4.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
1571
1571
  return wrtBigUInt64LE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1572
1572
  });
1573
- Buffer3.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
1573
+ Buffer4.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
1574
1574
  return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1575
1575
  });
1576
1576
  function checkIEEE754(buf, value, offset, ext, max, min) {
@@ -1588,10 +1588,10 @@ var require_buffer = __commonJS({
1588
1588
  ieee754.write(buf, value, offset, littleEndian, 23, 4);
1589
1589
  return offset + 4;
1590
1590
  }
1591
- Buffer3.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
1591
+ Buffer4.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
1592
1592
  return writeFloat(this, value, offset, true, noAssert);
1593
1593
  };
1594
- Buffer3.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
1594
+ Buffer4.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
1595
1595
  return writeFloat(this, value, offset, false, noAssert);
1596
1596
  };
1597
1597
  function writeDouble(buf, value, offset, littleEndian, noAssert) {
@@ -1603,14 +1603,14 @@ var require_buffer = __commonJS({
1603
1603
  ieee754.write(buf, value, offset, littleEndian, 52, 8);
1604
1604
  return offset + 8;
1605
1605
  }
1606
- Buffer3.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
1606
+ Buffer4.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
1607
1607
  return writeDouble(this, value, offset, true, noAssert);
1608
1608
  };
1609
- Buffer3.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
1609
+ Buffer4.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
1610
1610
  return writeDouble(this, value, offset, false, noAssert);
1611
1611
  };
1612
- Buffer3.prototype.copy = function copy(target, targetStart, start, end) {
1613
- if (!Buffer3.isBuffer(target))
1612
+ Buffer4.prototype.copy = function copy(target, targetStart, start, end) {
1613
+ if (!Buffer4.isBuffer(target))
1614
1614
  throw new TypeError("argument should be a Buffer");
1615
1615
  if (!start)
1616
1616
  start = 0;
@@ -1650,7 +1650,7 @@ var require_buffer = __commonJS({
1650
1650
  }
1651
1651
  return len;
1652
1652
  };
1653
- Buffer3.prototype.fill = function fill(val, start, end, encoding) {
1653
+ Buffer4.prototype.fill = function fill(val, start, end, encoding) {
1654
1654
  if (typeof val === "string") {
1655
1655
  if (typeof start === "string") {
1656
1656
  encoding = start;
@@ -1663,7 +1663,7 @@ var require_buffer = __commonJS({
1663
1663
  if (encoding !== void 0 && typeof encoding !== "string") {
1664
1664
  throw new TypeError("encoding must be a string");
1665
1665
  }
1666
- if (typeof encoding === "string" && !Buffer3.isEncoding(encoding)) {
1666
+ if (typeof encoding === "string" && !Buffer4.isEncoding(encoding)) {
1667
1667
  throw new TypeError("Unknown encoding: " + encoding);
1668
1668
  }
1669
1669
  if (val.length === 1) {
@@ -1693,7 +1693,7 @@ var require_buffer = __commonJS({
1693
1693
  this[i] = val;
1694
1694
  }
1695
1695
  } else {
1696
- const bytes = Buffer3.isBuffer(val) ? val : Buffer3.from(val, encoding);
1696
+ const bytes = Buffer4.isBuffer(val) ? val : Buffer4.from(val, encoding);
1697
1697
  const len = bytes.length;
1698
1698
  if (len === 0) {
1699
1699
  throw new TypeError('The value "' + val + '" is invalid for argument "value"');
@@ -7356,12 +7356,12 @@ var require_buffer_list = __commonJS({
7356
7356
  return (hint === "string" ? String : Number)(input);
7357
7357
  }
7358
7358
  var _require = require_buffer();
7359
- var Buffer3 = _require.Buffer;
7359
+ var Buffer4 = _require.Buffer;
7360
7360
  var _require2 = require_util();
7361
7361
  var inspect = _require2.inspect;
7362
7362
  var custom = inspect && inspect.custom || "inspect";
7363
7363
  function copyBuffer(src, target, offset) {
7364
- Buffer3.prototype.copy.call(src, target, offset);
7364
+ Buffer4.prototype.copy.call(src, target, offset);
7365
7365
  }
7366
7366
  module.exports = /* @__PURE__ */ function() {
7367
7367
  function BufferList() {
@@ -7430,8 +7430,8 @@ var require_buffer_list = __commonJS({
7430
7430
  key: "concat",
7431
7431
  value: function concat(n) {
7432
7432
  if (this.length === 0)
7433
- return Buffer3.alloc(0);
7434
- var ret = Buffer3.allocUnsafe(n >>> 0);
7433
+ return Buffer4.alloc(0);
7434
+ var ret = Buffer4.allocUnsafe(n >>> 0);
7435
7435
  var p = this.head;
7436
7436
  var i = 0;
7437
7437
  while (p) {
@@ -7499,7 +7499,7 @@ var require_buffer_list = __commonJS({
7499
7499
  }, {
7500
7500
  key: "_getBuffer",
7501
7501
  value: function _getBuffer(n) {
7502
- var ret = Buffer3.allocUnsafe(n);
7502
+ var ret = Buffer4.allocUnsafe(n);
7503
7503
  var p = this.head;
7504
7504
  var c = 1;
7505
7505
  p.data.copy(ret);
@@ -7849,14 +7849,14 @@ var require_stream_writable = __commonJS({
7849
7849
  deprecate: require_browser2()
7850
7850
  };
7851
7851
  var Stream = require_stream_browser();
7852
- var Buffer3 = require_buffer().Buffer;
7852
+ var Buffer4 = require_buffer().Buffer;
7853
7853
  var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
7854
7854
  };
7855
7855
  function _uint8ArrayToBuffer(chunk) {
7856
- return Buffer3.from(chunk);
7856
+ return Buffer4.from(chunk);
7857
7857
  }
7858
7858
  function _isUint8Array(obj) {
7859
- return Buffer3.isBuffer(obj) || obj instanceof OurUint8Array;
7859
+ return Buffer4.isBuffer(obj) || obj instanceof OurUint8Array;
7860
7860
  }
7861
7861
  var destroyImpl = require_destroy();
7862
7862
  var _require = require_state();
@@ -7993,7 +7993,7 @@ var require_stream_writable = __commonJS({
7993
7993
  var state = this._writableState;
7994
7994
  var ret = false;
7995
7995
  var isBuf = !state.objectMode && _isUint8Array(chunk);
7996
- if (isBuf && !Buffer3.isBuffer(chunk)) {
7996
+ if (isBuf && !Buffer4.isBuffer(chunk)) {
7997
7997
  chunk = _uint8ArrayToBuffer(chunk);
7998
7998
  }
7999
7999
  if (typeof encoding === "function") {
@@ -8044,7 +8044,7 @@ var require_stream_writable = __commonJS({
8044
8044
  });
8045
8045
  function decodeChunk(state, chunk, encoding) {
8046
8046
  if (!state.objectMode && state.decodeStrings !== false && typeof chunk === "string") {
8047
- chunk = Buffer3.from(chunk, encoding);
8047
+ chunk = Buffer4.from(chunk, encoding);
8048
8048
  }
8049
8049
  return chunk;
8050
8050
  }
@@ -8441,34 +8441,34 @@ var require_safe_buffer = __commonJS({
8441
8441
  init_buffer();
8442
8442
  init_setInterval();
8443
8443
  var buffer = require_buffer();
8444
- var Buffer3 = buffer.Buffer;
8444
+ var Buffer4 = buffer.Buffer;
8445
8445
  function copyProps(src, dst) {
8446
8446
  for (var key in src) {
8447
8447
  dst[key] = src[key];
8448
8448
  }
8449
8449
  }
8450
- if (Buffer3.from && Buffer3.alloc && Buffer3.allocUnsafe && Buffer3.allocUnsafeSlow) {
8450
+ if (Buffer4.from && Buffer4.alloc && Buffer4.allocUnsafe && Buffer4.allocUnsafeSlow) {
8451
8451
  module.exports = buffer;
8452
8452
  } else {
8453
8453
  copyProps(buffer, exports);
8454
8454
  exports.Buffer = SafeBuffer;
8455
8455
  }
8456
8456
  function SafeBuffer(arg, encodingOrOffset, length) {
8457
- return Buffer3(arg, encodingOrOffset, length);
8457
+ return Buffer4(arg, encodingOrOffset, length);
8458
8458
  }
8459
- SafeBuffer.prototype = Object.create(Buffer3.prototype);
8460
- copyProps(Buffer3, SafeBuffer);
8459
+ SafeBuffer.prototype = Object.create(Buffer4.prototype);
8460
+ copyProps(Buffer4, SafeBuffer);
8461
8461
  SafeBuffer.from = function(arg, encodingOrOffset, length) {
8462
8462
  if (typeof arg === "number") {
8463
8463
  throw new TypeError("Argument must not be a number");
8464
8464
  }
8465
- return Buffer3(arg, encodingOrOffset, length);
8465
+ return Buffer4(arg, encodingOrOffset, length);
8466
8466
  };
8467
8467
  SafeBuffer.alloc = function(size, fill, encoding) {
8468
8468
  if (typeof size !== "number") {
8469
8469
  throw new TypeError("Argument must be a number");
8470
8470
  }
8471
- var buf = Buffer3(size);
8471
+ var buf = Buffer4(size);
8472
8472
  if (fill !== void 0) {
8473
8473
  if (typeof encoding === "string") {
8474
8474
  buf.fill(fill, encoding);
@@ -8484,7 +8484,7 @@ var require_safe_buffer = __commonJS({
8484
8484
  if (typeof size !== "number") {
8485
8485
  throw new TypeError("Argument must be a number");
8486
8486
  }
8487
- return Buffer3(size);
8487
+ return Buffer4(size);
8488
8488
  };
8489
8489
  SafeBuffer.allocUnsafeSlow = function(size) {
8490
8490
  if (typeof size !== "number") {
@@ -8503,8 +8503,8 @@ var require_string_decoder = __commonJS({
8503
8503
  init_setImmediate();
8504
8504
  init_buffer();
8505
8505
  init_setInterval();
8506
- var Buffer3 = require_safe_buffer().Buffer;
8507
- var isEncoding = Buffer3.isEncoding || function(encoding) {
8506
+ var Buffer4 = require_safe_buffer().Buffer;
8507
+ var isEncoding = Buffer4.isEncoding || function(encoding) {
8508
8508
  encoding = "" + encoding;
8509
8509
  switch (encoding && encoding.toLowerCase()) {
8510
8510
  case "hex":
@@ -8554,7 +8554,7 @@ var require_string_decoder = __commonJS({
8554
8554
  }
8555
8555
  function normalizeEncoding(enc) {
8556
8556
  var nenc = _normalizeEncoding(enc);
8557
- if (typeof nenc !== "string" && (Buffer3.isEncoding === isEncoding || !isEncoding(enc)))
8557
+ if (typeof nenc !== "string" && (Buffer4.isEncoding === isEncoding || !isEncoding(enc)))
8558
8558
  throw new Error("Unknown encoding: " + enc);
8559
8559
  return nenc || enc;
8560
8560
  }
@@ -8584,7 +8584,7 @@ var require_string_decoder = __commonJS({
8584
8584
  }
8585
8585
  this.lastNeed = 0;
8586
8586
  this.lastTotal = 0;
8587
- this.lastChar = Buffer3.allocUnsafe(nb);
8587
+ this.lastChar = Buffer4.allocUnsafe(nb);
8588
8588
  }
8589
8589
  StringDecoder.prototype.write = function(buf) {
8590
8590
  if (buf.length === 0)
@@ -9082,14 +9082,14 @@ var require_stream_readable = __commonJS({
9082
9082
  return emitter.listeners(type).length;
9083
9083
  };
9084
9084
  var Stream = require_stream_browser();
9085
- var Buffer3 = require_buffer().Buffer;
9085
+ var Buffer4 = require_buffer().Buffer;
9086
9086
  var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
9087
9087
  };
9088
9088
  function _uint8ArrayToBuffer(chunk) {
9089
- return Buffer3.from(chunk);
9089
+ return Buffer4.from(chunk);
9090
9090
  }
9091
9091
  function _isUint8Array(obj) {
9092
- return Buffer3.isBuffer(obj) || obj instanceof OurUint8Array;
9092
+ return Buffer4.isBuffer(obj) || obj instanceof OurUint8Array;
9093
9093
  }
9094
9094
  var debugUtil = require_util();
9095
9095
  var debug;
@@ -9207,7 +9207,7 @@ var require_stream_readable = __commonJS({
9207
9207
  if (typeof chunk === "string") {
9208
9208
  encoding = encoding || state.defaultEncoding;
9209
9209
  if (encoding !== state.encoding) {
9210
- chunk = Buffer3.from(chunk, encoding);
9210
+ chunk = Buffer4.from(chunk, encoding);
9211
9211
  encoding = "";
9212
9212
  }
9213
9213
  skipChunkCheck = true;
@@ -9233,7 +9233,7 @@ var require_stream_readable = __commonJS({
9233
9233
  if (er) {
9234
9234
  errorOrDestroy(stream, er);
9235
9235
  } else if (state.objectMode || chunk && chunk.length > 0) {
9236
- if (typeof chunk !== "string" && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer3.prototype) {
9236
+ if (typeof chunk !== "string" && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer4.prototype) {
9237
9237
  chunk = _uint8ArrayToBuffer(chunk);
9238
9238
  }
9239
9239
  if (addToFront) {
@@ -13026,10 +13026,11 @@ async function req(input, ...requestOptions) {
13026
13026
  if (fb === null || fb === void 0 ? void 0 : fb.updateOptions)
13027
13027
  options2 = await fb.updateOptions({ options: options2 });
13028
13028
  const requestController = new AbortController2();
13029
- const requestTimer = options2.requestTimeout ? setTimeout(() => {
13029
+ const timeout = calculateTimeout(options2.requestTimeout, options2.body);
13030
+ const requestTimer = timeout ? setTimeout(() => {
13030
13031
  abortCode !== null && abortCode !== void 0 ? abortCode : abortCode = AbortCode.requestTimeout;
13031
13032
  requestController.abort();
13032
- }, options2.requestTimeout) : null;
13033
+ }, timeout) : null;
13033
13034
  if (connectionController.signal.aborted)
13034
13035
  requestController.abort();
13035
13036
  connectionController.signal.onabort = () => requestController.abort();
@@ -13212,7 +13213,36 @@ function afterError({ error, options, ...rest }) {
13212
13213
  return await ((_a2 = hooks.afterError) === null || _a2 === void 0 ? void 0 : _a2.call(hooks, { error: error2, options, ...rest })) || error2;
13213
13214
  }, error);
13214
13215
  }
13215
- var utils28;
13216
+ function calculateTimeout(requestTimeout, body) {
13217
+ if (!requestTimeout)
13218
+ return requestTimeout;
13219
+ if (utils28.types.isNumber(requestTimeout))
13220
+ return requestTimeout;
13221
+ if (utils28.types.isPlainObject(requestTimeout)) {
13222
+ const { base, perByte } = requestTimeout;
13223
+ if (utils28.types.isString(body))
13224
+ return base + perByte * body.length;
13225
+ if (utils28.types.isArray(body))
13226
+ return base + perByte * body.reduce((acc, item) => acc + item.length, 0);
13227
+ if (utils28.types.instanceOf(body, ArrayBuffer))
13228
+ return base + perByte * body.byteLength;
13229
+ if (global.Blob && utils28.types.instanceOf(body, Blob))
13230
+ return base + perByte * body.size;
13231
+ if (global.Buffer && utils28.types.instanceOf(body, import_buffer65.Buffer))
13232
+ return base + perByte * body.byteLength;
13233
+ try {
13234
+ return base + perByte * JSON.stringify(body).length;
13235
+ } catch (error) {
13236
+ try {
13237
+ return base + perByte * String(body).length;
13238
+ } catch (error2) {
13239
+ return base + perByte * 1;
13240
+ }
13241
+ }
13242
+ }
13243
+ return requestTimeout;
13244
+ }
13245
+ var utils28, import_buffer65;
13216
13246
  var init_req = __esm({
13217
13247
  "../req/dist/req.js"() {
13218
13248
  "use strict";
@@ -13226,6 +13256,7 @@ var init_req = __esm({
13226
13256
  init_req_errors();
13227
13257
  init_fetch_browser();
13228
13258
  utils28 = __toESM(require_browser3(), 1);
13259
+ import_buffer65 = __toESM(require_buffer(), 1);
13229
13260
  }
13230
13261
  });
13231
13262
 
@@ -20346,7 +20377,7 @@ var require_lib = __commonJS({
20346
20377
  init_setImmediate();
20347
20378
  init_buffer();
20348
20379
  init_setInterval();
20349
- var Buffer3 = require_buffer().Buffer;
20380
+ var Buffer4 = require_buffer().Buffer;
20350
20381
  var Transform = require_stream_browserify().Transform;
20351
20382
  var binding = require_binding();
20352
20383
  var util = require_util();
@@ -20525,7 +20556,7 @@ var require_lib = __commonJS({
20525
20556
  if (nread >= kMaxLength) {
20526
20557
  err = new RangeError(kRangeErrorMessage);
20527
20558
  } else {
20528
- buf = Buffer3.concat(buffers, nread);
20559
+ buf = Buffer4.concat(buffers, nread);
20529
20560
  }
20530
20561
  buffers = [];
20531
20562
  engine.close();
@@ -20534,8 +20565,8 @@ var require_lib = __commonJS({
20534
20565
  }
20535
20566
  function zlibBufferSync(engine, buffer) {
20536
20567
  if (typeof buffer === "string")
20537
- buffer = Buffer3.from(buffer);
20538
- if (!Buffer3.isBuffer(buffer))
20568
+ buffer = Buffer4.from(buffer);
20569
+ if (!Buffer4.isBuffer(buffer))
20539
20570
  throw new TypeError("Not a string or buffer");
20540
20571
  var flushFlag = engine._finishFlushFlag;
20541
20572
  return engine._processChunk(buffer, flushFlag);
@@ -20617,7 +20648,7 @@ var require_lib = __commonJS({
20617
20648
  }
20618
20649
  }
20619
20650
  if (opts.dictionary) {
20620
- if (!Buffer3.isBuffer(opts.dictionary)) {
20651
+ if (!Buffer4.isBuffer(opts.dictionary)) {
20621
20652
  throw new Error("Invalid dictionary: it should be a Buffer instance");
20622
20653
  }
20623
20654
  }
@@ -20639,7 +20670,7 @@ var require_lib = __commonJS({
20639
20670
  if (typeof opts.strategy === "number")
20640
20671
  strategy = opts.strategy;
20641
20672
  this._handle.init(opts.windowBits || exports.Z_DEFAULT_WINDOWBITS, level, opts.memLevel || exports.Z_DEFAULT_MEMLEVEL, strategy, opts.dictionary);
20642
- this._buffer = Buffer3.allocUnsafe(this._chunkSize);
20673
+ this._buffer = Buffer4.allocUnsafe(this._chunkSize);
20643
20674
  this._offset = 0;
20644
20675
  this._level = level;
20645
20676
  this._strategy = strategy;
@@ -20681,7 +20712,7 @@ var require_lib = __commonJS({
20681
20712
  return this._handle.reset();
20682
20713
  };
20683
20714
  Zlib.prototype._flush = function(callback) {
20684
- this._transform(Buffer3.alloc(0), "", callback);
20715
+ this._transform(Buffer4.alloc(0), "", callback);
20685
20716
  };
20686
20717
  Zlib.prototype.flush = function(kind, callback) {
20687
20718
  var _this2 = this;
@@ -20704,7 +20735,7 @@ var require_lib = __commonJS({
20704
20735
  }
20705
20736
  } else {
20706
20737
  this._flushFlag = kind;
20707
- this.write(Buffer3.alloc(0), "", callback);
20738
+ this.write(Buffer4.alloc(0), "", callback);
20708
20739
  }
20709
20740
  };
20710
20741
  Zlib.prototype.close = function(callback) {
@@ -20727,7 +20758,7 @@ var require_lib = __commonJS({
20727
20758
  var ws = this._writableState;
20728
20759
  var ending = ws.ending || ws.ended;
20729
20760
  var last = ending && (!chunk || ws.length === chunk.length);
20730
- if (chunk !== null && !Buffer3.isBuffer(chunk))
20761
+ if (chunk !== null && !Buffer4.isBuffer(chunk))
20731
20762
  return cb(new Error("invalid input"));
20732
20763
  if (!this._handle)
20733
20764
  return cb(new Error("zlib binding closed"));
@@ -20778,7 +20809,7 @@ var require_lib = __commonJS({
20778
20809
  _close(this);
20779
20810
  throw new RangeError(kRangeErrorMessage);
20780
20811
  }
20781
- var buf = Buffer3.concat(buffers, nread);
20812
+ var buf = Buffer4.concat(buffers, nread);
20782
20813
  _close(this);
20783
20814
  return buf;
20784
20815
  }
@@ -20821,7 +20852,7 @@ var require_lib = __commonJS({
20821
20852
  if (availOutAfter === 0 || self2._offset >= self2._chunkSize) {
20822
20853
  availOutBefore = self2._chunkSize;
20823
20854
  self2._offset = 0;
20824
- self2._buffer = Buffer3.allocUnsafe(self2._chunkSize);
20855
+ self2._buffer = Buffer4.allocUnsafe(self2._chunkSize);
20825
20856
  }
20826
20857
  if (availOutAfter === 0) {
20827
20858
  inOff += availInBefore - availInAfter;
@@ -28814,10 +28845,10 @@ var require_heartbeat = __commonJS({
28814
28845
  Object.defineProperty(exports, "__esModule", { value: true });
28815
28846
  exports.makeHeartbeat = void 0;
28816
28847
  var utils34 = __importStar(require_browser3());
28848
+ var processId = utils34.general.guid();
28849
+ var isStarted = false;
28817
28850
  function makeHeartbeat({ requests, logger: mainLogger }) {
28818
28851
  const logger = mainLogger.extend(mainLogger, { tags: [`heartbeat-base-${utils34.general.shortid()}`] });
28819
- const processId = utils34.general.guid();
28820
- let isStarted = false;
28821
28852
  return {
28822
28853
  processId,
28823
28854
  async startPeriodicHeartbeatMessaging(settings) {
@@ -35117,7 +35148,7 @@ ${l2}`}`, { bundledCss: i2, unfetchedResources: u2 };
35117
35148
  return i4 && (E3.shadowRoot = i4), E3;
35118
35149
  }
35119
35150
  }(t4);
35120
- i2(c2.doCaptureDoc), u2(c2.waitForImages), await Promise.all(l2), i2(c2.waitForImages), T2.version = "1.3.0", T2.scriptVersion = "11.2.7";
35151
+ i2(c2.doCaptureDoc), u2(c2.waitForImages), await Promise.all(l2), i2(c2.waitForImages), T2.version = "1.3.0", T2.scriptVersion = "11.2.8";
35121
35152
  const N2 = f2.length ? `${f2.join("\n")}
35122
35153
  ` : "", b2 = d2.size ? `${Array.from(d2).join("\n")}
35123
35154
  ` : "", S2 = JSON.stringify({ separator: p2, cssStartToken: h2, cssEndToken: h2, iframeStartToken: `"${m2}`, iframeEndToken: `${m2}"` });
@@ -36695,7 +36726,9 @@ var require_check2 = __commonJS({
36695
36726
  if (settings.retryTimeout) {
36696
36727
  logger.log(`Retry timeout is set to ${settings.retryTimeout}ms - will retry checking until it passes or timeout is reached`);
36697
36728
  const start = Date.now();
36698
- if (await isNewTest({ eyes, driver, environments: uniqueEnvironments, logger })) {
36729
+ const environmentLogger = logger.extend({ tags: [`environment-${utils34.general.shortid()}`] });
36730
+ const baseEyes = await Promise.all(uniqueEnvironments.map((environment) => getBaseEyes({ environment, driver, logger: environmentLogger })));
36731
+ if (baseEyes.map((baseEye) => baseEye.test.isNew).some((isNew) => isNew)) {
36699
36732
  await new Promise((resolve) => setTimeout(resolve, settings.retryTimeout));
36700
36733
  }
36701
36734
  let asExpected = false, retries = 0;
@@ -36747,11 +36780,39 @@ var require_check2 = __commonJS({
36747
36780
  item.jobs.push(promise.then());
36748
36781
  return item;
36749
36782
  }
36783
+ function getBaseEyes({ environment, driver, logger }) {
36784
+ return eyes.getBaseEyes({ settings: { environment, driver }, logger });
36785
+ }
36750
36786
  }
36751
36787
  exports.makeCheck = makeCheck;
36752
- async function isNewTest({ eyes, driver, environments, logger }) {
36753
- const environmentLogger = logger.extend({ tags: [`environment-${utils34.general.shortid()}`] });
36754
- return (await Promise.all(environments.map(async (environment) => await eyes.getBaseEyes({ settings: { environment, driver }, logger: environmentLogger })))).map((baseEyes) => baseEyes.test.isNew).some((isNew) => isNew);
36788
+ async function logAmmutabilityIfNeeded({ eyes, baseEyes, settings }) {
36789
+ var _a;
36790
+ if (settings.assumesMutability) {
36791
+ await eyes.core.logEvent({
36792
+ settings: {
36793
+ level: "Notice",
36794
+ event: {
36795
+ type: "eyes.check",
36796
+ message: "Assuming mutability for check Target",
36797
+ test: {
36798
+ checkName: settings.name,
36799
+ batchId: baseEyes.test.batchId,
36800
+ sessionId: baseEyes.test.sessionId,
36801
+ testName: baseEyes.test.testName,
36802
+ testId: baseEyes.test.testId,
36803
+ userTestId: baseEyes.test.userTestId,
36804
+ appId: baseEyes.test.appId,
36805
+ baselineId: baseEyes.test.baselineId,
36806
+ environmentId: (_a = baseEyes.test.environment) === null || _a === void 0 ? void 0 : _a.environmentId
36807
+ },
36808
+ isNew: baseEyes.test.isNew,
36809
+ resultsUrl: baseEyes.test.resultsUrl
36810
+ },
36811
+ ...eyes.test.eyesServer
36812
+ }
36813
+ });
36814
+ settings.assumesMutability = false;
36815
+ }
36755
36816
  }
36756
36817
  async function checkEnvironment({ eyes, driver, target, environment, signal, logger, settings }) {
36757
36818
  var _a, _b;
@@ -36762,6 +36823,11 @@ var require_check2 = __commonJS({
36762
36823
  abortError({ logger: environmentLogger, message: 'Command "check" was aborted before checking' });
36763
36824
  }
36764
36825
  const baseEyes = await eyes.getBaseEyes({ settings: { environment, driver }, logger: environmentLogger });
36826
+ void logAmmutabilityIfNeeded({
36827
+ eyes,
36828
+ baseEyes,
36829
+ settings
36830
+ });
36765
36831
  try {
36766
36832
  if (signal === null || signal === void 0 ? void 0 : signal.aborted) {
36767
36833
  abortError({
@@ -37107,7 +37173,7 @@ var require_check_and_close2 = __commonJS({
37107
37173
  baseSettings.push(settings);
37108
37174
  }
37109
37175
  const promises = exactEnvironments.map(async (environment, index) => {
37110
- var _a2, _b2, _c2;
37176
+ var _a2, _b2, _c2, _d;
37111
37177
  const environmentLogger = logger.extend({ tags: [`environment-${utils34.general.shortid()}`] });
37112
37178
  try {
37113
37179
  if (signal === null || signal === void 0 ? void 0 : signal.aborted) {
@@ -37123,13 +37189,38 @@ var require_check_and_close2 = __commonJS({
37123
37189
  environmentLogger.warn(`Check on environment with id "${(_a2 = baseEyes.test.environment) === null || _a2 === void 0 ? void 0 : _a2.environmentId}" was aborted during one of the previous steps`);
37124
37190
  throw new abort_error_1.AbortError(`Check on environment with id "${(_b2 = baseEyes.test.environment) === null || _b2 === void 0 ? void 0 : _b2.environmentId}" was aborted during one of the previous steps`);
37125
37191
  }
37192
+ if (settings.assumesMutability) {
37193
+ eyes.core.logEvent({
37194
+ settings: {
37195
+ level: "Notice",
37196
+ event: {
37197
+ type: "eyes.check",
37198
+ message: "Assuming mutability for check Target",
37199
+ test: {
37200
+ checkName: settings.name,
37201
+ batchId: baseEyes.test.batchId,
37202
+ sessionId: baseEyes.test.sessionId,
37203
+ testName: baseEyes.test.testName,
37204
+ testId: baseEyes.test.testId,
37205
+ userTestId: baseEyes.test.userTestId,
37206
+ appId: baseEyes.test.appId,
37207
+ baselineId: baseEyes.test.baselineId,
37208
+ environmentId: (_c2 = baseEyes.test.environment) === null || _c2 === void 0 ? void 0 : _c2.environmentId
37209
+ },
37210
+ isNew: baseEyes.test.isNew,
37211
+ resultsUrl: baseEyes.test.resultsUrl
37212
+ },
37213
+ ...eyes.test.eyesServer
37214
+ }
37215
+ });
37216
+ }
37126
37217
  await baseEyes.checkAndClose({
37127
37218
  target: baseTargets[index],
37128
37219
  settings: baseSettings[index],
37129
37220
  logger: environmentLogger
37130
37221
  });
37131
37222
  } catch (error) {
37132
- environmentLogger.error(`Check on environment with id "${(_c2 = baseEyes.test.environment) === null || _c2 === void 0 ? void 0 : _c2.environmentId}" failed due to an error`, error);
37223
+ environmentLogger.error(`Check on environment with id "${(_d = baseEyes.test.environment) === null || _d === void 0 ? void 0 : _d.environmentId}" failed due to an error`, error);
37133
37224
  if (baseEyes.running && !(signal === null || signal === void 0 ? void 0 : signal.aborted))
37134
37225
  await baseEyes.abort({ logger: environmentLogger, settings: { reason: error } });
37135
37226
  }
@@ -41469,7 +41560,7 @@ var require_processPagePollCjs = __commonJS({
41469
41560
  return t4;
41470
41561
  };
41471
41562
  const fu = iu, gu = _i, bu = ne, yu = bt, ku = ou, wu = uu, vu = zt, xu = du, Su = as, Cu = Ds, _u = f, Au = I, zu = j, { tokenize: Lu, parse: Tu, generate: Eu, lexer: Nu, createLexer: Ru, walk: Du, find: Pu, findLast: Iu, findAll: Ou, toPlainObject: Bu, fromPlainObject: Fu, fork: Uu } = fu;
41472
- p.version = "1.1.2".version, p.createSyntax = gu, p.List = bu.List, p.Lexer = yu.Lexer, p.definitionSyntax = ku, p.clone = wu.clone, p.isCustomProperty = vu.isCustomProperty, p.keyword = vu.keyword, p.property = vu.property, p.vendorPrefix = vu.vendorPrefix, p.ident = xu, p.string = Su, p.url = Cu, p.tokenTypes = _u, p.tokenNames = Au, p.TokenStream = zu.TokenStream, p.createLexer = Ru, p.find = Pu, p.findAll = Ou, p.findLast = Iu, p.fork = Uu, p.fromPlainObject = Fu, p.generate = Eu, p.lexer = Nu, p.parse = Tu, p.toPlainObject = Bu, p.tokenize = Lu, p.walk = Du;
41563
+ p.version = "1.1.3".version, p.createSyntax = gu, p.List = bu.List, p.Lexer = yu.Lexer, p.definitionSyntax = ku, p.clone = wu.clone, p.isCustomProperty = vu.isCustomProperty, p.keyword = vu.keyword, p.property = vu.property, p.vendorPrefix = vu.vendorPrefix, p.ident = xu, p.string = Su, p.url = Cu, p.tokenTypes = _u, p.tokenNames = Au, p.TokenStream = zu.TokenStream, p.createLexer = Ru, p.find = Pu, p.findAll = Ou, p.findLast = Iu, p.fork = Uu, p.fromPlainObject = Fu, p.generate = Eu, p.lexer = Nu, p.parse = Tu, p.toPlainObject = Bu, p.tokenize = Lu, p.walk = Du;
41473
41564
  var Mu = {};
41474
41565
  const ju = /* @__PURE__ */ new Map([["background", /* @__PURE__ */ new Set(["background-color", "background-position", "background-position-x", "background-position-y", "background-size", "background-repeat", "background-repeat-x", "background-repeat-y", "background-clip", "background-origin", "background-attachment", "background-image"])], ["background-position", /* @__PURE__ */ new Set(["background-position-x", "background-position-y"])], ["background-repeat", /* @__PURE__ */ new Set(["background-repeat-x", "background-repeat-y"])], ["font", /* @__PURE__ */ new Set(["font-style", "font-variant-caps", "font-weight", "font-stretch", "font-size", "line-height", "font-family", "font-size-adjust", "font-kerning", "font-optical-sizing", "font-variant-alternates", "font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-language-override", "font-feature-settings", "font-variation-settings"])], ["font-variant", /* @__PURE__ */ new Set(["font-variant-caps", "font-variant-numeric", "font-variant-alternates", "font-variant-ligatures", "font-variant-east-asian"])], ["outline", /* @__PURE__ */ new Set(["outline-width", "outline-style", "outline-color"])], ["border", /* @__PURE__ */ new Set(["border-top-width", "border-right-width", "border-bottom-width", "border-left-width", "border-top-style", "border-right-style", "border-bottom-style", "border-left-style", "border-top-color", "border-right-color", "border-bottom-color", "border-left-color", "border-image-source", "border-image-slice", "border-image-width", "border-image-outset", "border-image-repeat"])], ["border-width", /* @__PURE__ */ new Set(["border-top-width", "border-right-width", "border-bottom-width", "border-left-width"])], ["border-style", /* @__PURE__ */ new Set(["border-top-style", "border-right-style", "border-bottom-style", "border-left-style"])], ["border-color", /* @__PURE__ */ new Set(["border-top-color", "border-right-color", "border-bottom-color", "border-left-color"])], ["border-block", /* @__PURE__ */ new Set(["border-block-start-width", "border-block-end-width", "border-block-start-style", "border-block-end-style", "border-block-start-color", "border-block-end-color"])], ["border-block-start", /* @__PURE__ */ new Set(["border-block-start-width", "border-block-start-style", "border-block-start-color"])], ["border-block-end", /* @__PURE__ */ new Set(["border-block-end-width", "border-block-end-style", "border-block-end-color"])], ["border-inline", /* @__PURE__ */ new Set(["border-inline-start-width", "border-inline-end-width", "border-inline-start-style", "border-inline-end-style", "border-inline-start-color", "border-inline-end-color"])], ["border-inline-start", /* @__PURE__ */ new Set(["border-inline-start-width", "border-inline-start-style", "border-inline-start-color"])], ["border-inline-end", /* @__PURE__ */ new Set(["border-inline-end-width", "border-inline-end-style", "border-inline-end-color"])], ["border-image", /* @__PURE__ */ new Set(["border-image-source", "border-image-slice", "border-image-width", "border-image-outset", "border-image-repeat"])], ["border-radius", /* @__PURE__ */ new Set(["border-top-left-radius", "border-top-right-radius", "border-bottom-right-radius", "border-bottom-left-radius"])], ["padding", /* @__PURE__ */ new Set(["padding-top", "padding-right", "padding-bottom", "padding-left"])], ["padding-block", /* @__PURE__ */ new Set(["padding-block-start", "padding-block-end"])], ["padding-inline", /* @__PURE__ */ new Set(["padding-inline-start", "padding-inline-end"])], ["margin", /* @__PURE__ */ new Set(["margin-top", "margin-right", "margin-bottom", "margin-left"])], ["margin-block", /* @__PURE__ */ new Set(["margin-block-start", "margin-block-end"])], ["margin-inline", /* @__PURE__ */ new Set(["margin-inline-start", "margin-inline-end"])], ["inset", /* @__PURE__ */ new Set(["top", "right", "bottom", "left"])], ["inset-block", /* @__PURE__ */ new Set(["inset-block-start", "inset-block-end"])], ["inset-inline", /* @__PURE__ */ new Set(["inset-inline-start", "inset-inline-end"])], ["flex", /* @__PURE__ */ new Set(["flex-grow", "flex-shrink", "flex-basis"])], ["flex-flow", /* @__PURE__ */ new Set(["flex-direction", "flex-wrap"])], ["gap", /* @__PURE__ */ new Set(["row-gap", "column-gap"])], ["transition", /* @__PURE__ */ new Set(["transition-duration", "transition-timing-function", "transition-delay", "transition-property"])], ["grid", /* @__PURE__ */ new Set(["grid-template-rows", "grid-template-columns", "grid-template-areas", "grid-auto-flow", "grid-auto-columns", "grid-auto-rows"])], ["grid-template", /* @__PURE__ */ new Set(["grid-template-rows", "grid-template-columns", "grid-template-areas"])], ["grid-row", /* @__PURE__ */ new Set(["grid-row-start", "grid-row-end"])], ["grid-column", /* @__PURE__ */ new Set(["grid-column-start", "grid-column-end"])], ["grid-gap", /* @__PURE__ */ new Set(["grid-row-gap", "grid-column-gap", "row-gap", "column-gap"])], ["place-content", /* @__PURE__ */ new Set(["align-content", "justify-content"])], ["place-items", /* @__PURE__ */ new Set(["align-items", "justify-items"])], ["place-self", /* @__PURE__ */ new Set(["align-self", "justify-self"])], ["columns", /* @__PURE__ */ new Set(["column-width", "column-count"])], ["column-rule", /* @__PURE__ */ new Set(["column-rule-width", "column-rule-style", "column-rule-color"])], ["list-style", /* @__PURE__ */ new Set(["list-style-type", "list-style-position", "list-style-image"])], ["offset", /* @__PURE__ */ new Set(["offset-position", "offset-path", "offset-distance", "offset-rotate", "offset-anchor"])], ["overflow", /* @__PURE__ */ new Set(["overflow-x", "overflow-y"])], ["overscroll-behavior", /* @__PURE__ */ new Set(["overscroll-behavior-x", "overscroll-behavior-y"])], ["scroll-margin", /* @__PURE__ */ new Set(["scroll-margin-top", "scroll-margin-right", "scroll-margin-bottom", "scroll-margin-left"])], ["scroll-padding", /* @__PURE__ */ new Set(["scroll-padding-top", "scroll-padding-right", "scroll-padding-bottom", "scroll-padding-left"])], ["text-decoration", /* @__PURE__ */ new Set(["text-decoration-line", "text-decoration-style", "text-decoration-color", "text-decoration-thickness"])], ["text-stroke", /* @__PURE__ */ new Set(["text-stroke-color", "text-stroke-width"])], ["animation", /* @__PURE__ */ new Set(["animation-duration", "animation-timing-function", "animation-delay", "animation-iteration-count", "animation-direction", "animation-fill-mode", "animation-play-state", "animation-name", "animation-timeline", "animation-range-start", "animation-range-end"])], ["mask", /* @__PURE__ */ new Set(["mask-image", "mask-mode", "mask-repeat-x", "mask-repeat-y", "mask-position-x", "mask-position-y", "mask-clip", "mask-origin", "mask-size", "mask-composite"])], ["mask-repeat", /* @__PURE__ */ new Set(["mask-repeat-x", "mask-repeat-y"])], ["mask-position", /* @__PURE__ */ new Set(["mask-position-x", "mask-position-y"])], ["perspective-origin", /* @__PURE__ */ new Set(["perspective-origin-x", "perspective-origin-y"])], ["transform-origin", /* @__PURE__ */ new Set(["transform-origin-x", "transform-origin-y", "transform-origin-z"])], ["white-space", /* @__PURE__ */ new Set(["white-space-collapse", "text-wrap"])]]), qu = new Map([Vu("animation", "moz"), Vu("border-image", "moz"), Vu("mask", "moz"), Vu("transition", "moz"), Vu("columns", "moz"), Vu("text-stroke", "moz"), Vu("column-rule", "moz"), ["-moz-border-end", /* @__PURE__ */ new Set(["-moz-border-end-color", "-moz-border-end-style", "-moz-border-end-width"])], ["-moz-border-start", /* @__PURE__ */ new Set(["-moz-border-start-color", "-moz-border-start-style", "-moz-border-start-width"])], ["-moz-outline-radius", /* @__PURE__ */ new Set(["-moz-outline-radius-topleft", "-moz-outline-radius-topright", "-moz-outline-radius-bottomright", "-moz-outline-radius-bottomleft"])]]), Wu = new Map([Vu("animation", "webkit"), Vu("border-radius", "webkit"), Vu("column-rule", "webkit"), Vu("columns", "webkit"), Vu("flex", "webkit"), Vu("flex-flow", "webkit"), Vu("mask", "webkit"), Vu("text-stroke", "webkit"), Vu("perspective-origin", "webkit"), Vu("transform-origin", "webkit"), Vu("transition", "webkit"), ["-webkit-border-start", /* @__PURE__ */ new Set(["-webkit-border-start-color", "-webkit-border-start-style", "-webkit-border-start-width"])], ["-webkit-border-before", /* @__PURE__ */ new Set(["-webkit-border-before-color", "-webkit-border-before-style", "-webkit-border-before-width"])], ["-webkit-border-end", /* @__PURE__ */ new Set(["-webkit-border-end-color", "-webkit-border-end-style", "-webkit-border-end-width"])], ["-webkit-border-after", /* @__PURE__ */ new Set(["-webkit-border-after-color", "-webkit-border-after-style", "-webkit-border-after-width"])]]), Hu = ["background-position", "background-repeat", "text-decoration"];
41475
41566
  qu.forEach((e4, t4) => ju.set(t4, e4)), Wu.forEach((e4, t4) => ju.set(t4, e4));
@@ -43475,7 +43566,7 @@ creating temp style for access.`), r2 = wf(e4);
43475
43566
  function R2(e5) {
43476
43567
  return t5.defaultView && t5.defaultView.frameElement && t5.defaultView.frameElement.getAttribute(e5);
43477
43568
  }
43478
- }(t4).then((e4) => (u2("processPage end"), e4.scriptVersion = "4.11.1", e4));
43569
+ }(t4).then((e4) => (u2("processPage end"), e4.scriptVersion = "4.11.2", e4));
43479
43570
  };
43480
43571
  window[ig] = window[ig] || {};
43481
43572
  const sg = rg(ag, window[ig], og);
@@ -44281,14 +44372,6 @@ var require_take_snapshots2 = __commonJS({
44281
44372
  throw new abort_error_1.AbortError('Command "takeSnapshots" was called after test was already aborted');
44282
44373
  }
44283
44374
  const uniqueEnvironments = (0, uniquify_environments_1.uniquifyEnvironments)((_a = settings.environments) !== null && _a !== void 0 ? _a : defaultEnvironments);
44284
- const ufgClient = await core.getUFGClient({
44285
- settings: {
44286
- ...account.ufgServer,
44287
- eyesServerUrl: account.eyesServer.eyesServerUrl,
44288
- apiKey: account.eyesServer.apiKey
44289
- },
44290
- logger
44291
- });
44292
44375
  const driver = spec && target ? await (0, driver_1.makeDriver)({ spec, driver: target, logger }) : null;
44293
44376
  if (!driver)
44294
44377
  throw new Error("Cannot create check snapshot without a driver");
@@ -44305,6 +44388,14 @@ var require_take_snapshots2 = __commonJS({
44305
44388
  });
44306
44389
  let snapshots;
44307
44390
  if (environment.isWeb) {
44391
+ const ufgClient = await core.getUFGClient({
44392
+ settings: {
44393
+ ...account.ufgServer,
44394
+ eyesServerUrl: account.eyesServer.eyesServerUrl,
44395
+ apiKey: account.eyesServer.apiKey
44396
+ },
44397
+ logger
44398
+ });
44308
44399
  snapshots = await (0, take_dom_snapshots_1.takeDomSnapshots)({
44309
44400
  driver,
44310
44401
  settings: {
@@ -44415,7 +44506,10 @@ var require_req_ufg = __commonJS({
44415
44506
  proxy: settings.proxy,
44416
44507
  useDnsCache: settings.useDnsCache,
44417
44508
  connectionTimeout: (_a = settings.connectionTimeout) !== null && _a !== void 0 ? _a : 3e5,
44418
- requestTimeout: 3e4,
44509
+ requestTimeout: {
44510
+ base: 3e4,
44511
+ perByte: 0.01
44512
+ },
44419
44513
  retry: {
44420
44514
  limit: 5,
44421
44515
  timeout: 200,
@@ -44620,7 +44714,13 @@ var require_requests3 = __commonJS({
44620
44714
  });
44621
44715
  const results = await response.json().then((results2) => {
44622
44716
  return results2.map((result) => {
44623
- return { jobId: result.jobId, renderId: result.renderId, status: result.renderStatus };
44717
+ return {
44718
+ jobId: result.jobId,
44719
+ renderId: result.renderId,
44720
+ status: result.renderStatus,
44721
+ needMoreResources: result.needMoreResources,
44722
+ needMoreDom: result.needMoreDom
44723
+ };
44624
44724
  });
44625
44725
  });
44626
44726
  logger2.log('Request "startRenders" finished successfully with body', results);
@@ -44842,7 +44942,7 @@ var require_browser7 = __commonJS({
44842
44942
  function oldBrowser() {
44843
44943
  throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11");
44844
44944
  }
44845
- var Buffer3 = require_safe_buffer().Buffer;
44945
+ var Buffer4 = require_safe_buffer().Buffer;
44846
44946
  var crypto = global.crypto || global.msCrypto;
44847
44947
  if (crypto && crypto.getRandomValues) {
44848
44948
  module.exports = randomBytes;
@@ -44852,7 +44952,7 @@ var require_browser7 = __commonJS({
44852
44952
  function randomBytes(size, cb) {
44853
44953
  if (size > MAX_UINT32)
44854
44954
  throw new RangeError("requested too many random bytes");
44855
- var bytes = Buffer3.allocUnsafe(size);
44955
+ var bytes = Buffer4.allocUnsafe(size);
44856
44956
  if (size > 0) {
44857
44957
  if (size > MAX_BYTES) {
44858
44958
  for (var generated = 0; generated < size; generated += MAX_BYTES) {
@@ -44899,17 +44999,17 @@ var require_hash_base = __commonJS({
44899
44999
  init_setImmediate();
44900
45000
  init_buffer();
44901
45001
  init_setInterval();
44902
- var Buffer3 = require_safe_buffer().Buffer;
45002
+ var Buffer4 = require_safe_buffer().Buffer;
44903
45003
  var Transform = require_readable_browser().Transform;
44904
45004
  var inherits = require_inherits_browser();
44905
45005
  function throwIfNotStringOrBuffer(val, prefix) {
44906
- if (!Buffer3.isBuffer(val) && typeof val !== "string") {
45006
+ if (!Buffer4.isBuffer(val) && typeof val !== "string") {
44907
45007
  throw new TypeError(prefix + " must be a string or a buffer");
44908
45008
  }
44909
45009
  }
44910
45010
  function HashBase(blockSize) {
44911
45011
  Transform.call(this);
44912
- this._block = Buffer3.allocUnsafe(blockSize);
45012
+ this._block = Buffer4.allocUnsafe(blockSize);
44913
45013
  this._blockSize = blockSize;
44914
45014
  this._blockOffset = 0;
44915
45015
  this._length = [0, 0, 0, 0];
@@ -44938,8 +45038,8 @@ var require_hash_base = __commonJS({
44938
45038
  throwIfNotStringOrBuffer(data, "Data");
44939
45039
  if (this._finalized)
44940
45040
  throw new Error("Digest already called");
44941
- if (!Buffer3.isBuffer(data))
44942
- data = Buffer3.from(data, encoding);
45041
+ if (!Buffer4.isBuffer(data))
45042
+ data = Buffer4.from(data, encoding);
44943
45043
  var block = this._block;
44944
45044
  var offset = 0;
44945
45045
  while (this._blockOffset + data.length - offset >= this._blockSize) {
@@ -44991,7 +45091,7 @@ var require_md5 = __commonJS({
44991
45091
  init_setInterval();
44992
45092
  var inherits = require_inherits_browser();
44993
45093
  var HashBase = require_hash_base();
44994
- var Buffer3 = require_safe_buffer().Buffer;
45094
+ var Buffer4 = require_safe_buffer().Buffer;
44995
45095
  var ARRAY16 = new Array(16);
44996
45096
  function MD5() {
44997
45097
  HashBase.call(this, 64);
@@ -45089,7 +45189,7 @@ var require_md5 = __commonJS({
45089
45189
  this._block.writeUInt32LE(this._length[0], 56);
45090
45190
  this._block.writeUInt32LE(this._length[1], 60);
45091
45191
  this._update();
45092
- var buffer = Buffer3.allocUnsafe(16);
45192
+ var buffer = Buffer4.allocUnsafe(16);
45093
45193
  buffer.writeInt32LE(this._a, 0);
45094
45194
  buffer.writeInt32LE(this._b, 4);
45095
45195
  buffer.writeInt32LE(this._c, 8);
@@ -45123,7 +45223,7 @@ var require_ripemd160 = __commonJS({
45123
45223
  init_setImmediate();
45124
45224
  init_buffer();
45125
45225
  init_setInterval();
45126
- var Buffer3 = require_buffer().Buffer;
45226
+ var Buffer4 = require_buffer().Buffer;
45127
45227
  var inherits = require_inherits_browser();
45128
45228
  var HashBase = require_hash_base();
45129
45229
  var ARRAY16 = new Array(16);
@@ -45528,7 +45628,7 @@ var require_ripemd160 = __commonJS({
45528
45628
  this._block.writeUInt32LE(this._length[0], 56);
45529
45629
  this._block.writeUInt32LE(this._length[1], 60);
45530
45630
  this._update();
45531
- var buffer = Buffer3.alloc ? Buffer3.alloc(20) : new Buffer3(20);
45631
+ var buffer = Buffer4.alloc ? Buffer4.alloc(20) : new Buffer4(20);
45532
45632
  buffer.writeInt32LE(this._a, 0);
45533
45633
  buffer.writeInt32LE(this._b, 4);
45534
45634
  buffer.writeInt32LE(this._c, 8);
@@ -45565,9 +45665,9 @@ var require_hash = __commonJS({
45565
45665
  init_setImmediate();
45566
45666
  init_buffer();
45567
45667
  init_setInterval();
45568
- var Buffer3 = require_safe_buffer().Buffer;
45668
+ var Buffer4 = require_safe_buffer().Buffer;
45569
45669
  function Hash(blockSize, finalSize) {
45570
- this._block = Buffer3.alloc(blockSize);
45670
+ this._block = Buffer4.alloc(blockSize);
45571
45671
  this._finalSize = finalSize;
45572
45672
  this._blockSize = blockSize;
45573
45673
  this._len = 0;
@@ -45575,7 +45675,7 @@ var require_hash = __commonJS({
45575
45675
  Hash.prototype.update = function(data, enc) {
45576
45676
  if (typeof data === "string") {
45577
45677
  enc = enc || "utf8";
45578
- data = Buffer3.from(data, enc);
45678
+ data = Buffer4.from(data, enc);
45579
45679
  }
45580
45680
  var block = this._block;
45581
45681
  var blockSize = this._blockSize;
@@ -45633,7 +45733,7 @@ var require_sha = __commonJS({
45633
45733
  init_setInterval();
45634
45734
  var inherits = require_inherits_browser();
45635
45735
  var Hash = require_hash();
45636
- var Buffer3 = require_safe_buffer().Buffer;
45736
+ var Buffer4 = require_safe_buffer().Buffer;
45637
45737
  var K = [
45638
45738
  1518500249,
45639
45739
  1859775393,
@@ -45695,7 +45795,7 @@ var require_sha = __commonJS({
45695
45795
  this._e = e + this._e | 0;
45696
45796
  };
45697
45797
  Sha.prototype._hash = function() {
45698
- var H = Buffer3.allocUnsafe(20);
45798
+ var H = Buffer4.allocUnsafe(20);
45699
45799
  H.writeInt32BE(this._a | 0, 0);
45700
45800
  H.writeInt32BE(this._b | 0, 4);
45701
45801
  H.writeInt32BE(this._c | 0, 8);
@@ -45716,7 +45816,7 @@ var require_sha1 = __commonJS({
45716
45816
  init_setInterval();
45717
45817
  var inherits = require_inherits_browser();
45718
45818
  var Hash = require_hash();
45719
- var Buffer3 = require_safe_buffer().Buffer;
45819
+ var Buffer4 = require_safe_buffer().Buffer;
45720
45820
  var K = [
45721
45821
  1518500249,
45722
45822
  1859775393,
@@ -45781,7 +45881,7 @@ var require_sha1 = __commonJS({
45781
45881
  this._e = e + this._e | 0;
45782
45882
  };
45783
45883
  Sha1.prototype._hash = function() {
45784
- var H = Buffer3.allocUnsafe(20);
45884
+ var H = Buffer4.allocUnsafe(20);
45785
45885
  H.writeInt32BE(this._a | 0, 0);
45786
45886
  H.writeInt32BE(this._b | 0, 4);
45787
45887
  H.writeInt32BE(this._c | 0, 8);
@@ -45802,7 +45902,7 @@ var require_sha256 = __commonJS({
45802
45902
  init_setInterval();
45803
45903
  var inherits = require_inherits_browser();
45804
45904
  var Hash = require_hash();
45805
- var Buffer3 = require_safe_buffer().Buffer;
45905
+ var Buffer4 = require_safe_buffer().Buffer;
45806
45906
  var K = [
45807
45907
  1116352408,
45808
45908
  1899447441,
@@ -45941,7 +46041,7 @@ var require_sha256 = __commonJS({
45941
46041
  this._h = h + this._h | 0;
45942
46042
  };
45943
46043
  Sha256.prototype._hash = function() {
45944
- var H = Buffer3.allocUnsafe(32);
46044
+ var H = Buffer4.allocUnsafe(32);
45945
46045
  H.writeInt32BE(this._a, 0);
45946
46046
  H.writeInt32BE(this._b, 4);
45947
46047
  H.writeInt32BE(this._c, 8);
@@ -45966,7 +46066,7 @@ var require_sha224 = __commonJS({
45966
46066
  var inherits = require_inherits_browser();
45967
46067
  var Sha256 = require_sha256();
45968
46068
  var Hash = require_hash();
45969
- var Buffer3 = require_safe_buffer().Buffer;
46069
+ var Buffer4 = require_safe_buffer().Buffer;
45970
46070
  var W = new Array(64);
45971
46071
  function Sha224() {
45972
46072
  this.init();
@@ -45986,7 +46086,7 @@ var require_sha224 = __commonJS({
45986
46086
  return this;
45987
46087
  };
45988
46088
  Sha224.prototype._hash = function() {
45989
- var H = Buffer3.allocUnsafe(28);
46089
+ var H = Buffer4.allocUnsafe(28);
45990
46090
  H.writeInt32BE(this._a, 0);
45991
46091
  H.writeInt32BE(this._b, 4);
45992
46092
  H.writeInt32BE(this._c, 8);
@@ -46009,7 +46109,7 @@ var require_sha512 = __commonJS({
46009
46109
  init_setInterval();
46010
46110
  var inherits = require_inherits_browser();
46011
46111
  var Hash = require_hash();
46012
- var Buffer3 = require_safe_buffer().Buffer;
46112
+ var Buffer4 = require_safe_buffer().Buffer;
46013
46113
  var K = [
46014
46114
  1116352408,
46015
46115
  3609767458,
@@ -46327,7 +46427,7 @@ var require_sha512 = __commonJS({
46327
46427
  this._hh = this._hh + hh + getCarry(this._hl, hl) | 0;
46328
46428
  };
46329
46429
  Sha512.prototype._hash = function() {
46330
- var H = Buffer3.allocUnsafe(64);
46430
+ var H = Buffer4.allocUnsafe(64);
46331
46431
  function writeInt64BE(h, l, offset) {
46332
46432
  H.writeInt32BE(h, offset);
46333
46433
  H.writeInt32BE(l, offset + 4);
@@ -46356,7 +46456,7 @@ var require_sha384 = __commonJS({
46356
46456
  var inherits = require_inherits_browser();
46357
46457
  var SHA512 = require_sha512();
46358
46458
  var Hash = require_hash();
46359
- var Buffer3 = require_safe_buffer().Buffer;
46459
+ var Buffer4 = require_safe_buffer().Buffer;
46360
46460
  var W = new Array(160);
46361
46461
  function Sha384() {
46362
46462
  this.init();
@@ -46384,7 +46484,7 @@ var require_sha384 = __commonJS({
46384
46484
  return this;
46385
46485
  };
46386
46486
  Sha384.prototype._hash = function() {
46387
- var H = Buffer3.allocUnsafe(48);
46487
+ var H = Buffer4.allocUnsafe(48);
46388
46488
  function writeInt64BE(h, l, offset) {
46389
46489
  H.writeInt32BE(h, offset);
46390
46490
  H.writeInt32BE(l, offset + 4);
@@ -46431,7 +46531,7 @@ var require_cipher_base = __commonJS({
46431
46531
  init_setImmediate();
46432
46532
  init_buffer();
46433
46533
  init_setInterval();
46434
- var Buffer3 = require_safe_buffer().Buffer;
46534
+ var Buffer4 = require_safe_buffer().Buffer;
46435
46535
  var Transform = require_stream_browserify().Transform;
46436
46536
  var StringDecoder = require_string_decoder().StringDecoder;
46437
46537
  var inherits = require_inherits_browser();
@@ -46453,7 +46553,7 @@ var require_cipher_base = __commonJS({
46453
46553
  inherits(CipherBase, Transform);
46454
46554
  CipherBase.prototype.update = function(data, inputEnc, outputEnc) {
46455
46555
  if (typeof data === "string") {
46456
- data = Buffer3.from(data, inputEnc);
46556
+ data = Buffer4.from(data, inputEnc);
46457
46557
  }
46458
46558
  var outData = this._update(data);
46459
46559
  if (this.hashMode)
@@ -46498,7 +46598,7 @@ var require_cipher_base = __commonJS({
46498
46598
  done(err);
46499
46599
  };
46500
46600
  CipherBase.prototype._finalOrDigest = function(outputEnc) {
46501
- var outData = this.__final() || Buffer3.alloc(0);
46601
+ var outData = this.__final() || Buffer4.alloc(0);
46502
46602
  if (outputEnc) {
46503
46603
  outData = this._toString(outData, outputEnc, true);
46504
46604
  }
@@ -46565,24 +46665,24 @@ var require_legacy = __commonJS({
46565
46665
  init_buffer();
46566
46666
  init_setInterval();
46567
46667
  var inherits = require_inherits_browser();
46568
- var Buffer3 = require_safe_buffer().Buffer;
46668
+ var Buffer4 = require_safe_buffer().Buffer;
46569
46669
  var Base = require_cipher_base();
46570
- var ZEROS = Buffer3.alloc(128);
46670
+ var ZEROS = Buffer4.alloc(128);
46571
46671
  var blocksize = 64;
46572
46672
  function Hmac(alg, key) {
46573
46673
  Base.call(this, "digest");
46574
46674
  if (typeof key === "string") {
46575
- key = Buffer3.from(key);
46675
+ key = Buffer4.from(key);
46576
46676
  }
46577
46677
  this._alg = alg;
46578
46678
  this._key = key;
46579
46679
  if (key.length > blocksize) {
46580
46680
  key = alg(key);
46581
46681
  } else if (key.length < blocksize) {
46582
- key = Buffer3.concat([key, ZEROS], blocksize);
46682
+ key = Buffer4.concat([key, ZEROS], blocksize);
46583
46683
  }
46584
- var ipad = this._ipad = Buffer3.allocUnsafe(blocksize);
46585
- var opad = this._opad = Buffer3.allocUnsafe(blocksize);
46684
+ var ipad = this._ipad = Buffer4.allocUnsafe(blocksize);
46685
+ var opad = this._opad = Buffer4.allocUnsafe(blocksize);
46586
46686
  for (var i = 0; i < blocksize; i++) {
46587
46687
  ipad[i] = key[i] ^ 54;
46588
46688
  opad[i] = key[i] ^ 92;
@@ -46594,8 +46694,8 @@ var require_legacy = __commonJS({
46594
46694
  this._hash.push(data);
46595
46695
  };
46596
46696
  Hmac.prototype._final = function() {
46597
- var h = this._alg(Buffer3.concat(this._hash));
46598
- return this._alg(Buffer3.concat([this._opad, h]));
46697
+ var h = this._alg(Buffer4.concat(this._hash));
46698
+ return this._alg(Buffer4.concat([this._opad, h]));
46599
46699
  };
46600
46700
  module.exports = Hmac;
46601
46701
  }
@@ -46626,15 +46726,15 @@ var require_browser9 = __commonJS({
46626
46726
  var inherits = require_inherits_browser();
46627
46727
  var Legacy = require_legacy();
46628
46728
  var Base = require_cipher_base();
46629
- var Buffer3 = require_safe_buffer().Buffer;
46729
+ var Buffer4 = require_safe_buffer().Buffer;
46630
46730
  var md5 = require_md52();
46631
46731
  var RIPEMD160 = require_ripemd160();
46632
46732
  var sha = require_sha2();
46633
- var ZEROS = Buffer3.alloc(128);
46733
+ var ZEROS = Buffer4.alloc(128);
46634
46734
  function Hmac(alg, key) {
46635
46735
  Base.call(this, "digest");
46636
46736
  if (typeof key === "string") {
46637
- key = Buffer3.from(key);
46737
+ key = Buffer4.from(key);
46638
46738
  }
46639
46739
  var blocksize = alg === "sha512" || alg === "sha384" ? 128 : 64;
46640
46740
  this._alg = alg;
@@ -46643,10 +46743,10 @@ var require_browser9 = __commonJS({
46643
46743
  var hash = alg === "rmd160" ? new RIPEMD160() : sha(alg);
46644
46744
  key = hash.update(key).digest();
46645
46745
  } else if (key.length < blocksize) {
46646
- key = Buffer3.concat([key, ZEROS], blocksize);
46746
+ key = Buffer4.concat([key, ZEROS], blocksize);
46647
46747
  }
46648
- var ipad = this._ipad = Buffer3.allocUnsafe(blocksize);
46649
- var opad = this._opad = Buffer3.allocUnsafe(blocksize);
46748
+ var ipad = this._ipad = Buffer4.allocUnsafe(blocksize);
46749
+ var opad = this._opad = Buffer4.allocUnsafe(blocksize);
46650
46750
  for (var i = 0; i < blocksize; i++) {
46651
46751
  ipad[i] = key[i] ^ 54;
46652
46752
  opad[i] = key[i] ^ 92;
@@ -46898,14 +46998,14 @@ var require_to_buffer = __commonJS({
46898
46998
  init_setImmediate();
46899
46999
  init_buffer();
46900
47000
  init_setInterval();
46901
- var Buffer3 = require_safe_buffer().Buffer;
47001
+ var Buffer4 = require_safe_buffer().Buffer;
46902
47002
  module.exports = function(thing, encoding, name) {
46903
- if (Buffer3.isBuffer(thing)) {
47003
+ if (Buffer4.isBuffer(thing)) {
46904
47004
  return thing;
46905
47005
  } else if (typeof thing === "string") {
46906
- return Buffer3.from(thing, encoding);
47006
+ return Buffer4.from(thing, encoding);
46907
47007
  } else if (ArrayBuffer.isView(thing)) {
46908
- return Buffer3.from(thing.buffer);
47008
+ return Buffer4.from(thing.buffer);
46909
47009
  } else {
46910
47010
  throw new TypeError(name + " must be a string, a Buffer, a typed array or a DataView");
46911
47011
  }
@@ -46923,11 +47023,11 @@ var require_sync_browser = __commonJS({
46923
47023
  var md5 = require_md52();
46924
47024
  var RIPEMD160 = require_ripemd160();
46925
47025
  var sha = require_sha2();
46926
- var Buffer3 = require_safe_buffer().Buffer;
47026
+ var Buffer4 = require_safe_buffer().Buffer;
46927
47027
  var checkParameters = require_precondition();
46928
47028
  var defaultEncoding = require_default_encoding();
46929
47029
  var toBuffer = require_to_buffer();
46930
- var ZEROS = Buffer3.alloc(128);
47030
+ var ZEROS = Buffer4.alloc(128);
46931
47031
  var sizes = {
46932
47032
  md5: 16,
46933
47033
  sha1: 20,
@@ -46944,15 +47044,15 @@ var require_sync_browser = __commonJS({
46944
47044
  if (key.length > blocksize) {
46945
47045
  key = hash(key);
46946
47046
  } else if (key.length < blocksize) {
46947
- key = Buffer3.concat([key, ZEROS], blocksize);
47047
+ key = Buffer4.concat([key, ZEROS], blocksize);
46948
47048
  }
46949
- var ipad = Buffer3.allocUnsafe(blocksize + sizes[alg]);
46950
- var opad = Buffer3.allocUnsafe(blocksize + sizes[alg]);
47049
+ var ipad = Buffer4.allocUnsafe(blocksize + sizes[alg]);
47050
+ var opad = Buffer4.allocUnsafe(blocksize + sizes[alg]);
46951
47051
  for (var i = 0; i < blocksize; i++) {
46952
47052
  ipad[i] = key[i] ^ 54;
46953
47053
  opad[i] = key[i] ^ 92;
46954
47054
  }
46955
- var ipad1 = Buffer3.allocUnsafe(blocksize + saltLen + 4);
47055
+ var ipad1 = Buffer4.allocUnsafe(blocksize + saltLen + 4);
46956
47056
  ipad.copy(ipad1, 0, 0, blocksize);
46957
47057
  this.ipad1 = ipad1;
46958
47058
  this.ipad2 = ipad;
@@ -46987,8 +47087,8 @@ var require_sync_browser = __commonJS({
46987
47087
  salt = toBuffer(salt, defaultEncoding, "Salt");
46988
47088
  digest = digest || "sha1";
46989
47089
  var hmac = new Hmac(digest, password, salt.length);
46990
- var DK = Buffer3.allocUnsafe(keylen);
46991
- var block1 = Buffer3.allocUnsafe(salt.length + 4);
47090
+ var DK = Buffer4.allocUnsafe(keylen);
47091
+ var block1 = Buffer4.allocUnsafe(salt.length + 4);
46992
47092
  salt.copy(block1, 0, 0, salt.length);
46993
47093
  var destPos = 0;
46994
47094
  var hLen = sizes[digest];
@@ -47018,7 +47118,7 @@ var require_async = __commonJS({
47018
47118
  init_setImmediate();
47019
47119
  init_buffer();
47020
47120
  init_setInterval();
47021
- var Buffer3 = require_safe_buffer().Buffer;
47121
+ var Buffer4 = require_safe_buffer().Buffer;
47022
47122
  var checkParameters = require_precondition();
47023
47123
  var defaultEncoding = require_default_encoding();
47024
47124
  var sync = require_sync_browser();
@@ -47047,7 +47147,7 @@ var require_async = __commonJS({
47047
47147
  if (checks[algo] !== void 0) {
47048
47148
  return checks[algo];
47049
47149
  }
47050
- ZERO_BUF = ZERO_BUF || Buffer3.alloc(8);
47150
+ ZERO_BUF = ZERO_BUF || Buffer4.alloc(8);
47051
47151
  var prom = browserPbkdf2(ZERO_BUF, ZERO_BUF, 10, 128, algo).then(function() {
47052
47152
  return true;
47053
47153
  }).catch(function() {
@@ -47089,7 +47189,7 @@ var require_async = __commonJS({
47089
47189
  }
47090
47190
  }, key, length << 3);
47091
47191
  }).then(function(res) {
47092
- return Buffer3.from(res);
47192
+ return Buffer4.from(res);
47093
47193
  });
47094
47194
  }
47095
47195
  function resolvePromise(promise, callback) {
@@ -48317,7 +48417,7 @@ var require_browserify_des = __commonJS({
48317
48417
  var CipherBase = require_cipher_base();
48318
48418
  var des = require_des2();
48319
48419
  var inherits = require_inherits_browser();
48320
- var Buffer3 = require_safe_buffer().Buffer;
48420
+ var Buffer4 = require_safe_buffer().Buffer;
48321
48421
  var modes = {
48322
48422
  "des-ede3-cbc": des.CBC.instantiate(des.EDE),
48323
48423
  "des-ede3": des.EDE,
@@ -48341,15 +48441,15 @@ var require_browserify_des = __commonJS({
48341
48441
  type = "encrypt";
48342
48442
  }
48343
48443
  var key = opts.key;
48344
- if (!Buffer3.isBuffer(key)) {
48345
- key = Buffer3.from(key);
48444
+ if (!Buffer4.isBuffer(key)) {
48445
+ key = Buffer4.from(key);
48346
48446
  }
48347
48447
  if (modeName === "des-ede" || modeName === "des-ede-cbc") {
48348
- key = Buffer3.concat([key, key.slice(0, 8)]);
48448
+ key = Buffer4.concat([key, key.slice(0, 8)]);
48349
48449
  }
48350
48450
  var iv = opts.iv;
48351
- if (!Buffer3.isBuffer(iv)) {
48352
- iv = Buffer3.from(iv);
48451
+ if (!Buffer4.isBuffer(iv)) {
48452
+ iv = Buffer4.from(iv);
48353
48453
  }
48354
48454
  this._des = mode.create({
48355
48455
  key,
@@ -48358,10 +48458,10 @@ var require_browserify_des = __commonJS({
48358
48458
  });
48359
48459
  }
48360
48460
  DES.prototype._update = function(data) {
48361
- return Buffer3.from(this._des.update(data));
48461
+ return Buffer4.from(this._des.update(data));
48362
48462
  };
48363
48463
  DES.prototype._final = function() {
48364
- return Buffer3.from(this._des.final());
48464
+ return Buffer4.from(this._des.final());
48365
48465
  };
48366
48466
  }
48367
48467
  });
@@ -48429,29 +48529,29 @@ var require_cfb = __commonJS({
48429
48529
  init_setImmediate();
48430
48530
  init_buffer();
48431
48531
  init_setInterval();
48432
- var Buffer3 = require_safe_buffer().Buffer;
48532
+ var Buffer4 = require_safe_buffer().Buffer;
48433
48533
  var xor = require_buffer_xor();
48434
48534
  function encryptStart(self2, data, decrypt) {
48435
48535
  var len = data.length;
48436
48536
  var out = xor(data, self2._cache);
48437
48537
  self2._cache = self2._cache.slice(len);
48438
- self2._prev = Buffer3.concat([self2._prev, decrypt ? data : out]);
48538
+ self2._prev = Buffer4.concat([self2._prev, decrypt ? data : out]);
48439
48539
  return out;
48440
48540
  }
48441
48541
  exports.encrypt = function(self2, data, decrypt) {
48442
- var out = Buffer3.allocUnsafe(0);
48542
+ var out = Buffer4.allocUnsafe(0);
48443
48543
  var len;
48444
48544
  while (data.length) {
48445
48545
  if (self2._cache.length === 0) {
48446
48546
  self2._cache = self2._cipher.encryptBlock(self2._prev);
48447
- self2._prev = Buffer3.allocUnsafe(0);
48547
+ self2._prev = Buffer4.allocUnsafe(0);
48448
48548
  }
48449
48549
  if (self2._cache.length <= data.length) {
48450
48550
  len = self2._cache.length;
48451
- out = Buffer3.concat([out, encryptStart(self2, data.slice(0, len), decrypt)]);
48551
+ out = Buffer4.concat([out, encryptStart(self2, data.slice(0, len), decrypt)]);
48452
48552
  data = data.slice(len);
48453
48553
  } else {
48454
- out = Buffer3.concat([out, encryptStart(self2, data, decrypt)]);
48554
+ out = Buffer4.concat([out, encryptStart(self2, data, decrypt)]);
48455
48555
  break;
48456
48556
  }
48457
48557
  }
@@ -48467,19 +48567,19 @@ var require_cfb8 = __commonJS({
48467
48567
  init_setImmediate();
48468
48568
  init_buffer();
48469
48569
  init_setInterval();
48470
- var Buffer3 = require_safe_buffer().Buffer;
48570
+ var Buffer4 = require_safe_buffer().Buffer;
48471
48571
  function encryptByte(self2, byteParam, decrypt) {
48472
48572
  var pad = self2._cipher.encryptBlock(self2._prev);
48473
48573
  var out = pad[0] ^ byteParam;
48474
- self2._prev = Buffer3.concat([
48574
+ self2._prev = Buffer4.concat([
48475
48575
  self2._prev.slice(1),
48476
- Buffer3.from([decrypt ? byteParam : out])
48576
+ Buffer4.from([decrypt ? byteParam : out])
48477
48577
  ]);
48478
48578
  return out;
48479
48579
  }
48480
48580
  exports.encrypt = function(self2, chunk, decrypt) {
48481
48581
  var len = chunk.length;
48482
- var out = Buffer3.allocUnsafe(len);
48582
+ var out = Buffer4.allocUnsafe(len);
48483
48583
  var i = -1;
48484
48584
  while (++i < len) {
48485
48585
  out[i] = encryptByte(self2, chunk[i], decrypt);
@@ -48496,7 +48596,7 @@ var require_cfb1 = __commonJS({
48496
48596
  init_setImmediate();
48497
48597
  init_buffer();
48498
48598
  init_setInterval();
48499
- var Buffer3 = require_safe_buffer().Buffer;
48599
+ var Buffer4 = require_safe_buffer().Buffer;
48500
48600
  function encryptByte(self2, byteParam, decrypt) {
48501
48601
  var pad;
48502
48602
  var i = -1;
@@ -48515,8 +48615,8 @@ var require_cfb1 = __commonJS({
48515
48615
  function shiftIn(buffer, value) {
48516
48616
  var len = buffer.length;
48517
48617
  var i = -1;
48518
- var out = Buffer3.allocUnsafe(buffer.length);
48519
- buffer = Buffer3.concat([buffer, Buffer3.from([value])]);
48618
+ var out = Buffer4.allocUnsafe(buffer.length);
48619
+ buffer = Buffer4.concat([buffer, Buffer4.from([value])]);
48520
48620
  while (++i < len) {
48521
48621
  out[i] = buffer[i] << 1 | buffer[i + 1] >> 7;
48522
48622
  }
@@ -48524,7 +48624,7 @@ var require_cfb1 = __commonJS({
48524
48624
  }
48525
48625
  exports.encrypt = function(self2, chunk, decrypt) {
48526
48626
  var len = chunk.length;
48527
- var out = Buffer3.allocUnsafe(len);
48627
+ var out = Buffer4.allocUnsafe(len);
48528
48628
  var i = -1;
48529
48629
  while (++i < len) {
48530
48630
  out[i] = encryptByte(self2, chunk[i], decrypt);
@@ -48590,7 +48690,7 @@ var require_ctr = __commonJS({
48590
48690
  init_buffer();
48591
48691
  init_setInterval();
48592
48692
  var xor = require_buffer_xor();
48593
- var Buffer3 = require_safe_buffer().Buffer;
48693
+ var Buffer4 = require_safe_buffer().Buffer;
48594
48694
  var incr32 = require_incr32();
48595
48695
  function getBlock(self2) {
48596
48696
  var out = self2._cipher.encryptBlockRaw(self2._prev);
@@ -48601,9 +48701,9 @@ var require_ctr = __commonJS({
48601
48701
  exports.encrypt = function(self2, chunk) {
48602
48702
  var chunkNum = Math.ceil(chunk.length / blockSize);
48603
48703
  var start = self2._cache.length;
48604
- self2._cache = Buffer3.concat([
48704
+ self2._cache = Buffer4.concat([
48605
48705
  self2._cache,
48606
- Buffer3.allocUnsafe(chunkNum * blockSize)
48706
+ Buffer4.allocUnsafe(chunkNum * blockSize)
48607
48707
  ]);
48608
48708
  for (var i = 0; i < chunkNum; i++) {
48609
48709
  var out = getBlock(self2);
@@ -48850,10 +48950,10 @@ var require_aes = __commonJS({
48850
48950
  init_setImmediate();
48851
48951
  init_buffer();
48852
48952
  init_setInterval();
48853
- var Buffer3 = require_safe_buffer().Buffer;
48953
+ var Buffer4 = require_safe_buffer().Buffer;
48854
48954
  function asUInt32Array(buf) {
48855
- if (!Buffer3.isBuffer(buf))
48856
- buf = Buffer3.from(buf);
48955
+ if (!Buffer4.isBuffer(buf))
48956
+ buf = Buffer4.from(buf);
48857
48957
  var len = buf.length / 4 | 0;
48858
48958
  var out = new Array(len);
48859
48959
  for (var i = 0; i < len; i++) {
@@ -48993,7 +49093,7 @@ var require_aes = __commonJS({
48993
49093
  };
48994
49094
  AES.prototype.encryptBlock = function(M) {
48995
49095
  var out = this.encryptBlockRaw(M);
48996
- var buf = Buffer3.allocUnsafe(16);
49096
+ var buf = Buffer4.allocUnsafe(16);
48997
49097
  buf.writeUInt32BE(out[0], 0);
48998
49098
  buf.writeUInt32BE(out[1], 4);
48999
49099
  buf.writeUInt32BE(out[2], 8);
@@ -49006,7 +49106,7 @@ var require_aes = __commonJS({
49006
49106
  M[1] = M[3];
49007
49107
  M[3] = m1;
49008
49108
  var out = cryptBlock(M, this._invKeySchedule, G.INV_SUB_MIX, G.INV_SBOX, this._nRounds);
49009
- var buf = Buffer3.allocUnsafe(16);
49109
+ var buf = Buffer4.allocUnsafe(16);
49010
49110
  buf.writeUInt32BE(out[0], 0);
49011
49111
  buf.writeUInt32BE(out[3], 4);
49012
49112
  buf.writeUInt32BE(out[2], 8);
@@ -49029,8 +49129,8 @@ var require_ghash = __commonJS({
49029
49129
  init_setImmediate();
49030
49130
  init_buffer();
49031
49131
  init_setInterval();
49032
- var Buffer3 = require_safe_buffer().Buffer;
49033
- var ZEROES = Buffer3.alloc(16, 0);
49132
+ var Buffer4 = require_safe_buffer().Buffer;
49133
+ var ZEROES = Buffer4.alloc(16, 0);
49034
49134
  function toArray(buf) {
49035
49135
  return [
49036
49136
  buf.readUInt32BE(0),
@@ -49040,7 +49140,7 @@ var require_ghash = __commonJS({
49040
49140
  ];
49041
49141
  }
49042
49142
  function fromArray(out) {
49043
- var buf = Buffer3.allocUnsafe(16);
49143
+ var buf = Buffer4.allocUnsafe(16);
49044
49144
  buf.writeUInt32BE(out[0] >>> 0, 0);
49045
49145
  buf.writeUInt32BE(out[1] >>> 0, 4);
49046
49146
  buf.writeUInt32BE(out[2] >>> 0, 8);
@@ -49049,8 +49149,8 @@ var require_ghash = __commonJS({
49049
49149
  }
49050
49150
  function GHASH(key) {
49051
49151
  this.h = key;
49052
- this.state = Buffer3.alloc(16, 0);
49053
- this.cache = Buffer3.allocUnsafe(0);
49152
+ this.state = Buffer4.alloc(16, 0);
49153
+ this.cache = Buffer4.allocUnsafe(0);
49054
49154
  }
49055
49155
  GHASH.prototype.ghash = function(block) {
49056
49156
  var i = -1;
@@ -49084,7 +49184,7 @@ var require_ghash = __commonJS({
49084
49184
  this.state = fromArray(Zi);
49085
49185
  };
49086
49186
  GHASH.prototype.update = function(buf) {
49087
- this.cache = Buffer3.concat([this.cache, buf]);
49187
+ this.cache = Buffer4.concat([this.cache, buf]);
49088
49188
  var chunk;
49089
49189
  while (this.cache.length >= 16) {
49090
49190
  chunk = this.cache.slice(0, 16);
@@ -49094,7 +49194,7 @@ var require_ghash = __commonJS({
49094
49194
  };
49095
49195
  GHASH.prototype.final = function(abl, bl) {
49096
49196
  if (this.cache.length) {
49097
- this.ghash(Buffer3.concat([this.cache, ZEROES], 16));
49197
+ this.ghash(Buffer4.concat([this.cache, ZEROES], 16));
49098
49198
  }
49099
49199
  this.ghash(fromArray([0, abl, 0, bl]));
49100
49200
  return this.state;
@@ -49111,7 +49211,7 @@ var require_authCipher = __commonJS({
49111
49211
  init_buffer();
49112
49212
  init_setInterval();
49113
49213
  var aes = require_aes();
49114
- var Buffer3 = require_safe_buffer().Buffer;
49214
+ var Buffer4 = require_safe_buffer().Buffer;
49115
49215
  var Transform = require_cipher_base();
49116
49216
  var inherits = require_inherits_browser();
49117
49217
  var GHASH = require_ghash();
@@ -49129,8 +49229,8 @@ var require_authCipher = __commonJS({
49129
49229
  }
49130
49230
  function calcIv(self2, iv, ck) {
49131
49231
  if (iv.length === 12) {
49132
- self2._finID = Buffer3.concat([iv, Buffer3.from([0, 0, 0, 1])]);
49133
- return Buffer3.concat([iv, Buffer3.from([0, 0, 0, 2])]);
49232
+ self2._finID = Buffer4.concat([iv, Buffer4.from([0, 0, 0, 1])]);
49233
+ return Buffer4.concat([iv, Buffer4.from([0, 0, 0, 2])]);
49134
49234
  }
49135
49235
  var ghash = new GHASH(ck);
49136
49236
  var len = iv.length;
@@ -49138,28 +49238,28 @@ var require_authCipher = __commonJS({
49138
49238
  ghash.update(iv);
49139
49239
  if (toPad) {
49140
49240
  toPad = 16 - toPad;
49141
- ghash.update(Buffer3.alloc(toPad, 0));
49241
+ ghash.update(Buffer4.alloc(toPad, 0));
49142
49242
  }
49143
- ghash.update(Buffer3.alloc(8, 0));
49243
+ ghash.update(Buffer4.alloc(8, 0));
49144
49244
  var ivBits = len * 8;
49145
- var tail = Buffer3.alloc(8);
49245
+ var tail = Buffer4.alloc(8);
49146
49246
  tail.writeUIntBE(ivBits, 0, 8);
49147
49247
  ghash.update(tail);
49148
49248
  self2._finID = ghash.state;
49149
- var out = Buffer3.from(self2._finID);
49249
+ var out = Buffer4.from(self2._finID);
49150
49250
  incr32(out);
49151
49251
  return out;
49152
49252
  }
49153
49253
  function StreamCipher(mode, key, iv, decrypt) {
49154
49254
  Transform.call(this);
49155
- var h = Buffer3.alloc(4, 0);
49255
+ var h = Buffer4.alloc(4, 0);
49156
49256
  this._cipher = new aes.AES(key);
49157
49257
  var ck = this._cipher.encryptBlock(h);
49158
49258
  this._ghash = new GHASH(ck);
49159
49259
  iv = calcIv(this, iv, ck);
49160
- this._prev = Buffer3.from(iv);
49161
- this._cache = Buffer3.allocUnsafe(0);
49162
- this._secCache = Buffer3.allocUnsafe(0);
49260
+ this._prev = Buffer4.from(iv);
49261
+ this._cache = Buffer4.allocUnsafe(0);
49262
+ this._secCache = Buffer4.allocUnsafe(0);
49163
49263
  this._decrypt = decrypt;
49164
49264
  this._alen = 0;
49165
49265
  this._len = 0;
@@ -49172,7 +49272,7 @@ var require_authCipher = __commonJS({
49172
49272
  if (!this._called && this._alen) {
49173
49273
  var rump = 16 - this._alen % 16;
49174
49274
  if (rump < 16) {
49175
- rump = Buffer3.alloc(rump, 0);
49275
+ rump = Buffer4.alloc(rump, 0);
49176
49276
  this._ghash.update(rump);
49177
49277
  }
49178
49278
  }
@@ -49196,7 +49296,7 @@ var require_authCipher = __commonJS({
49196
49296
  this._cipher.scrub();
49197
49297
  };
49198
49298
  StreamCipher.prototype.getAuthTag = function getAuthTag() {
49199
- if (this._decrypt || !Buffer3.isBuffer(this._authTag))
49299
+ if (this._decrypt || !Buffer4.isBuffer(this._authTag))
49200
49300
  throw new Error("Attempting to get auth tag in unsupported state");
49201
49301
  return this._authTag;
49202
49302
  };
@@ -49223,15 +49323,15 @@ var require_streamCipher = __commonJS({
49223
49323
  init_buffer();
49224
49324
  init_setInterval();
49225
49325
  var aes = require_aes();
49226
- var Buffer3 = require_safe_buffer().Buffer;
49326
+ var Buffer4 = require_safe_buffer().Buffer;
49227
49327
  var Transform = require_cipher_base();
49228
49328
  var inherits = require_inherits_browser();
49229
49329
  function StreamCipher(mode, key, iv, decrypt) {
49230
49330
  Transform.call(this);
49231
49331
  this._cipher = new aes.AES(key);
49232
- this._prev = Buffer3.from(iv);
49233
- this._cache = Buffer3.allocUnsafe(0);
49234
- this._secCache = Buffer3.allocUnsafe(0);
49332
+ this._prev = Buffer4.from(iv);
49333
+ this._cache = Buffer4.allocUnsafe(0);
49334
+ this._secCache = Buffer4.allocUnsafe(0);
49235
49335
  this._decrypt = decrypt;
49236
49336
  this._mode = mode;
49237
49337
  }
@@ -49253,21 +49353,21 @@ var require_evp_bytestokey = __commonJS({
49253
49353
  init_setImmediate();
49254
49354
  init_buffer();
49255
49355
  init_setInterval();
49256
- var Buffer3 = require_safe_buffer().Buffer;
49356
+ var Buffer4 = require_safe_buffer().Buffer;
49257
49357
  var MD5 = require_md5();
49258
49358
  function EVP_BytesToKey(password, salt, keyBits, ivLen) {
49259
- if (!Buffer3.isBuffer(password))
49260
- password = Buffer3.from(password, "binary");
49359
+ if (!Buffer4.isBuffer(password))
49360
+ password = Buffer4.from(password, "binary");
49261
49361
  if (salt) {
49262
- if (!Buffer3.isBuffer(salt))
49263
- salt = Buffer3.from(salt, "binary");
49362
+ if (!Buffer4.isBuffer(salt))
49363
+ salt = Buffer4.from(salt, "binary");
49264
49364
  if (salt.length !== 8)
49265
49365
  throw new RangeError("salt should be Buffer with 8 byte length");
49266
49366
  }
49267
49367
  var keyLen = keyBits / 8;
49268
- var key = Buffer3.alloc(keyLen);
49269
- var iv = Buffer3.alloc(ivLen || 0);
49270
- var tmp = Buffer3.alloc(0);
49368
+ var key = Buffer4.alloc(keyLen);
49369
+ var iv = Buffer4.alloc(ivLen || 0);
49370
+ var tmp = Buffer4.alloc(0);
49271
49371
  while (keyLen > 0 || ivLen > 0) {
49272
49372
  var hash = new MD5();
49273
49373
  hash.update(tmp);
@@ -49305,7 +49405,7 @@ var require_encrypter = __commonJS({
49305
49405
  init_setInterval();
49306
49406
  var MODES = require_modes();
49307
49407
  var AuthCipher = require_authCipher();
49308
- var Buffer3 = require_safe_buffer().Buffer;
49408
+ var Buffer4 = require_safe_buffer().Buffer;
49309
49409
  var StreamCipher = require_streamCipher();
49310
49410
  var Transform = require_cipher_base();
49311
49411
  var aes = require_aes();
@@ -49315,7 +49415,7 @@ var require_encrypter = __commonJS({
49315
49415
  Transform.call(this);
49316
49416
  this._cache = new Splitter();
49317
49417
  this._cipher = new aes.AES(key);
49318
- this._prev = Buffer3.from(iv);
49418
+ this._prev = Buffer4.from(iv);
49319
49419
  this._mode = mode;
49320
49420
  this._autopadding = true;
49321
49421
  }
@@ -49329,9 +49429,9 @@ var require_encrypter = __commonJS({
49329
49429
  thing = this._mode.encrypt(this, chunk);
49330
49430
  out.push(thing);
49331
49431
  }
49332
- return Buffer3.concat(out);
49432
+ return Buffer4.concat(out);
49333
49433
  };
49334
- var PADDING = Buffer3.alloc(16, 16);
49434
+ var PADDING = Buffer4.alloc(16, 16);
49335
49435
  Cipher.prototype._final = function() {
49336
49436
  var chunk = this._cache.flush();
49337
49437
  if (this._autopadding) {
@@ -49349,10 +49449,10 @@ var require_encrypter = __commonJS({
49349
49449
  return this;
49350
49450
  };
49351
49451
  function Splitter() {
49352
- this.cache = Buffer3.allocUnsafe(0);
49452
+ this.cache = Buffer4.allocUnsafe(0);
49353
49453
  }
49354
49454
  Splitter.prototype.add = function(data) {
49355
- this.cache = Buffer3.concat([this.cache, data]);
49455
+ this.cache = Buffer4.concat([this.cache, data]);
49356
49456
  };
49357
49457
  Splitter.prototype.get = function() {
49358
49458
  if (this.cache.length > 15) {
@@ -49364,23 +49464,23 @@ var require_encrypter = __commonJS({
49364
49464
  };
49365
49465
  Splitter.prototype.flush = function() {
49366
49466
  var len = 16 - this.cache.length;
49367
- var padBuff = Buffer3.allocUnsafe(len);
49467
+ var padBuff = Buffer4.allocUnsafe(len);
49368
49468
  var i = -1;
49369
49469
  while (++i < len) {
49370
49470
  padBuff.writeUInt8(len, i);
49371
49471
  }
49372
- return Buffer3.concat([this.cache, padBuff]);
49472
+ return Buffer4.concat([this.cache, padBuff]);
49373
49473
  };
49374
49474
  function createCipheriv(suite, password, iv) {
49375
49475
  var config = MODES[suite.toLowerCase()];
49376
49476
  if (!config)
49377
49477
  throw new TypeError("invalid suite type");
49378
49478
  if (typeof password === "string")
49379
- password = Buffer3.from(password);
49479
+ password = Buffer4.from(password);
49380
49480
  if (password.length !== config.key / 8)
49381
49481
  throw new TypeError("invalid key length " + password.length);
49382
49482
  if (typeof iv === "string")
49383
- iv = Buffer3.from(iv);
49483
+ iv = Buffer4.from(iv);
49384
49484
  if (config.mode !== "GCM" && iv.length !== config.iv)
49385
49485
  throw new TypeError("invalid iv length " + iv.length);
49386
49486
  if (config.type === "stream") {
@@ -49410,7 +49510,7 @@ var require_decrypter = __commonJS({
49410
49510
  init_buffer();
49411
49511
  init_setInterval();
49412
49512
  var AuthCipher = require_authCipher();
49413
- var Buffer3 = require_safe_buffer().Buffer;
49513
+ var Buffer4 = require_safe_buffer().Buffer;
49414
49514
  var MODES = require_modes();
49415
49515
  var StreamCipher = require_streamCipher();
49416
49516
  var Transform = require_cipher_base();
@@ -49422,7 +49522,7 @@ var require_decrypter = __commonJS({
49422
49522
  this._cache = new Splitter();
49423
49523
  this._last = void 0;
49424
49524
  this._cipher = new aes.AES(key);
49425
- this._prev = Buffer3.from(iv);
49525
+ this._prev = Buffer4.from(iv);
49426
49526
  this._mode = mode;
49427
49527
  this._autopadding = true;
49428
49528
  }
@@ -49436,7 +49536,7 @@ var require_decrypter = __commonJS({
49436
49536
  thing = this._mode.decrypt(this, chunk);
49437
49537
  out.push(thing);
49438
49538
  }
49439
- return Buffer3.concat(out);
49539
+ return Buffer4.concat(out);
49440
49540
  };
49441
49541
  Decipher.prototype._final = function() {
49442
49542
  var chunk = this._cache.flush();
@@ -49451,10 +49551,10 @@ var require_decrypter = __commonJS({
49451
49551
  return this;
49452
49552
  };
49453
49553
  function Splitter() {
49454
- this.cache = Buffer3.allocUnsafe(0);
49554
+ this.cache = Buffer4.allocUnsafe(0);
49455
49555
  }
49456
49556
  Splitter.prototype.add = function(data) {
49457
- this.cache = Buffer3.concat([this.cache, data]);
49557
+ this.cache = Buffer4.concat([this.cache, data]);
49458
49558
  };
49459
49559
  Splitter.prototype.get = function(autoPadding) {
49460
49560
  var out;
@@ -49497,11 +49597,11 @@ var require_decrypter = __commonJS({
49497
49597
  if (!config)
49498
49598
  throw new TypeError("invalid suite type");
49499
49599
  if (typeof iv === "string")
49500
- iv = Buffer3.from(iv);
49600
+ iv = Buffer4.from(iv);
49501
49601
  if (config.mode !== "GCM" && iv.length !== config.iv)
49502
49602
  throw new TypeError("invalid iv length " + iv.length);
49503
49603
  if (typeof password === "string")
49504
- password = Buffer3.from(password);
49604
+ password = Buffer4.from(password);
49505
49605
  if (password.length !== config.key / 8)
49506
49606
  throw new TypeError("invalid key length " + password.length);
49507
49607
  if (config.type === "stream") {
@@ -49701,12 +49801,12 @@ var require_bn = __commonJS({
49701
49801
  }
49702
49802
  BN.BN = BN;
49703
49803
  BN.wordSize = 26;
49704
- var Buffer3;
49804
+ var Buffer4;
49705
49805
  try {
49706
49806
  if (typeof window !== "undefined" && typeof window.Buffer !== "undefined") {
49707
- Buffer3 = window.Buffer;
49807
+ Buffer4 = window.Buffer;
49708
49808
  } else {
49709
- Buffer3 = require_buffer2().Buffer;
49809
+ Buffer4 = require_buffer2().Buffer;
49710
49810
  }
49711
49811
  } catch (e) {
49712
49812
  }
@@ -50144,8 +50244,8 @@ var require_bn = __commonJS({
50144
50244
  return this.toString(16);
50145
50245
  };
50146
50246
  BN.prototype.toBuffer = function toBuffer(endian, length) {
50147
- assert(typeof Buffer3 !== "undefined");
50148
- return this.toArrayLike(Buffer3, endian, length);
50247
+ assert(typeof Buffer4 !== "undefined");
50248
+ return this.toArrayLike(Buffer4, endian, length);
50149
50249
  };
50150
50250
  BN.prototype.toArray = function toArray(endian, length) {
50151
50251
  return this.toArrayLike(Array, endian, length);
@@ -53047,12 +53147,12 @@ var require_bn2 = __commonJS({
53047
53147
  }
53048
53148
  BN.BN = BN;
53049
53149
  BN.wordSize = 26;
53050
- var Buffer3;
53150
+ var Buffer4;
53051
53151
  try {
53052
53152
  if (typeof window !== "undefined" && typeof window.Buffer !== "undefined") {
53053
- Buffer3 = window.Buffer;
53153
+ Buffer4 = window.Buffer;
53054
53154
  } else {
53055
- Buffer3 = require_buffer2().Buffer;
53155
+ Buffer4 = require_buffer2().Buffer;
53056
53156
  }
53057
53157
  } catch (e) {
53058
53158
  }
@@ -53512,9 +53612,9 @@ var require_bn2 = __commonJS({
53512
53612
  BN.prototype.toJSON = function toJSON() {
53513
53613
  return this.toString(16, 2);
53514
53614
  };
53515
- if (Buffer3) {
53615
+ if (Buffer4) {
53516
53616
  BN.prototype.toBuffer = function toBuffer(endian, length) {
53517
- return this.toArrayLike(Buffer3, endian, length);
53617
+ return this.toArrayLike(Buffer4, endian, length);
53518
53618
  };
53519
53619
  }
53520
53620
  BN.prototype.toArray = function toArray(endian, length) {
@@ -61153,12 +61253,12 @@ var require_bn3 = __commonJS({
61153
61253
  }
61154
61254
  BN.BN = BN;
61155
61255
  BN.wordSize = 26;
61156
- var Buffer3;
61256
+ var Buffer4;
61157
61257
  try {
61158
61258
  if (typeof window !== "undefined" && typeof window.Buffer !== "undefined") {
61159
- Buffer3 = window.Buffer;
61259
+ Buffer4 = window.Buffer;
61160
61260
  } else {
61161
- Buffer3 = require_buffer2().Buffer;
61261
+ Buffer4 = require_buffer2().Buffer;
61162
61262
  }
61163
61263
  } catch (e) {
61164
61264
  }
@@ -61618,9 +61718,9 @@ var require_bn3 = __commonJS({
61618
61718
  BN.prototype.toJSON = function toJSON() {
61619
61719
  return this.toString(16, 2);
61620
61720
  };
61621
- if (Buffer3) {
61721
+ if (Buffer4) {
61622
61722
  BN.prototype.toBuffer = function toBuffer(endian, length) {
61623
- return this.toArrayLike(Buffer3, endian, length);
61723
+ return this.toArrayLike(Buffer4, endian, length);
61624
61724
  };
61625
61725
  }
61626
61726
  BN.prototype.toArray = function toArray(endian, length) {
@@ -64058,7 +64158,7 @@ var require_safer = __commonJS({
64058
64158
  init_buffer();
64059
64159
  init_setInterval();
64060
64160
  var buffer = require_buffer();
64061
- var Buffer3 = buffer.Buffer;
64161
+ var Buffer4 = buffer.Buffer;
64062
64162
  var safer = {};
64063
64163
  var key;
64064
64164
  for (key in buffer) {
@@ -64069,14 +64169,14 @@ var require_safer = __commonJS({
64069
64169
  safer[key] = buffer[key];
64070
64170
  }
64071
64171
  var Safer = safer.Buffer = {};
64072
- for (key in Buffer3) {
64073
- if (!Buffer3.hasOwnProperty(key))
64172
+ for (key in Buffer4) {
64173
+ if (!Buffer4.hasOwnProperty(key))
64074
64174
  continue;
64075
64175
  if (key === "allocUnsafe" || key === "allocUnsafeSlow")
64076
64176
  continue;
64077
- Safer[key] = Buffer3[key];
64177
+ Safer[key] = Buffer4[key];
64078
64178
  }
64079
- safer.Buffer.prototype = Buffer3.prototype;
64179
+ safer.Buffer.prototype = Buffer4.prototype;
64080
64180
  if (!Safer.from || Safer.from === Uint8Array.from) {
64081
64181
  Safer.from = function(value, encodingOrOffset, length) {
64082
64182
  if (typeof value === "number") {
@@ -64085,7 +64185,7 @@ var require_safer = __commonJS({
64085
64185
  if (value && typeof value.length === "undefined") {
64086
64186
  throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
64087
64187
  }
64088
- return Buffer3(value, encodingOrOffset, length);
64188
+ return Buffer4(value, encodingOrOffset, length);
64089
64189
  };
64090
64190
  }
64091
64191
  if (!Safer.alloc) {
@@ -64096,7 +64196,7 @@ var require_safer = __commonJS({
64096
64196
  if (size < 0 || size >= 2 * (1 << 30)) {
64097
64197
  throw new RangeError('The value "' + size + '" is invalid for option "size"');
64098
64198
  }
64099
- var buf = Buffer3(size);
64199
+ var buf = Buffer4(size);
64100
64200
  if (!fill || fill.length === 0) {
64101
64201
  buf.fill(0);
64102
64202
  } else if (typeof encoding === "string") {
@@ -64240,10 +64340,10 @@ var require_buffer3 = __commonJS({
64240
64340
  init_setInterval();
64241
64341
  var inherits = require_inherits_browser();
64242
64342
  var Reporter = require_reporter().Reporter;
64243
- var Buffer3 = require_safer().Buffer;
64343
+ var Buffer4 = require_safer().Buffer;
64244
64344
  function DecoderBuffer(base, options) {
64245
64345
  Reporter.call(this, options);
64246
- if (!Buffer3.isBuffer(base)) {
64346
+ if (!Buffer4.isBuffer(base)) {
64247
64347
  this.error("Input not Buffer");
64248
64348
  return;
64249
64349
  }
@@ -64257,7 +64357,7 @@ var require_buffer3 = __commonJS({
64257
64357
  if (data instanceof DecoderBuffer) {
64258
64358
  return true;
64259
64359
  }
64260
- const isCompatible = typeof data === "object" && Buffer3.isBuffer(data.base) && data.constructor.name === "DecoderBuffer" && typeof data.offset === "number" && typeof data.length === "number" && typeof data.save === "function" && typeof data.restore === "function" && typeof data.isEmpty === "function" && typeof data.readUInt8 === "function" && typeof data.skip === "function" && typeof data.raw === "function";
64360
+ const isCompatible = typeof data === "object" && Buffer4.isBuffer(data.base) && data.constructor.name === "DecoderBuffer" && typeof data.offset === "number" && typeof data.length === "number" && typeof data.save === "function" && typeof data.restore === "function" && typeof data.isEmpty === "function" && typeof data.readUInt8 === "function" && typeof data.skip === "function" && typeof data.raw === "function";
64261
64361
  return isCompatible;
64262
64362
  };
64263
64363
  DecoderBuffer.prototype.save = function save() {
@@ -64309,8 +64409,8 @@ var require_buffer3 = __commonJS({
64309
64409
  this.length = 1;
64310
64410
  } else if (typeof value === "string") {
64311
64411
  this.value = value;
64312
- this.length = Buffer3.byteLength(value);
64313
- } else if (Buffer3.isBuffer(value)) {
64412
+ this.length = Buffer4.byteLength(value);
64413
+ } else if (Buffer4.isBuffer(value)) {
64314
64414
  this.value = value;
64315
64415
  this.length = value.length;
64316
64416
  } else {
@@ -64327,7 +64427,7 @@ var require_buffer3 = __commonJS({
64327
64427
  };
64328
64428
  EncoderBuffer.prototype.join = function join(out, offset) {
64329
64429
  if (!out)
64330
- out = Buffer3.alloc(this.length);
64430
+ out = Buffer4.alloc(this.length);
64331
64431
  if (!offset)
64332
64432
  offset = 0;
64333
64433
  if (this.length === 0)
@@ -64342,7 +64442,7 @@ var require_buffer3 = __commonJS({
64342
64442
  out[offset] = this.value;
64343
64443
  else if (typeof this.value === "string")
64344
64444
  out.write(this.value, offset);
64345
- else if (Buffer3.isBuffer(this.value))
64445
+ else if (Buffer4.isBuffer(this.value))
64346
64446
  this.value.copy(out, offset);
64347
64447
  offset += this.length;
64348
64448
  }
@@ -64959,7 +65059,7 @@ var require_der2 = __commonJS({
64959
65059
  init_buffer();
64960
65060
  init_setInterval();
64961
65061
  var inherits = require_inherits_browser();
64962
- var Buffer3 = require_safer().Buffer;
65062
+ var Buffer4 = require_safer().Buffer;
64963
65063
  var Node2 = require_node();
64964
65064
  var der = require_der();
64965
65065
  function DEREncoder(entity) {
@@ -64980,7 +65080,7 @@ var require_der2 = __commonJS({
64980
65080
  DERNode.prototype._encodeComposite = function encodeComposite(tag, primitive, cls, content) {
64981
65081
  const encodedTag = encodeTag(tag, primitive, cls, this.reporter);
64982
65082
  if (content.length < 128) {
64983
- const header2 = Buffer3.alloc(2);
65083
+ const header2 = Buffer4.alloc(2);
64984
65084
  header2[0] = encodedTag;
64985
65085
  header2[1] = content.length;
64986
65086
  return this._createEncoderBuffer([header2, content]);
@@ -64988,7 +65088,7 @@ var require_der2 = __commonJS({
64988
65088
  let lenOctets = 1;
64989
65089
  for (let i = content.length; i >= 256; i >>= 8)
64990
65090
  lenOctets++;
64991
- const header = Buffer3.alloc(1 + 1 + lenOctets);
65091
+ const header = Buffer4.alloc(1 + 1 + lenOctets);
64992
65092
  header[0] = encodedTag;
64993
65093
  header[1] = 128 | lenOctets;
64994
65094
  for (let i = 1 + lenOctets, j = content.length; j > 0; i--, j >>= 8)
@@ -64999,7 +65099,7 @@ var require_der2 = __commonJS({
64999
65099
  if (tag === "bitstr") {
65000
65100
  return this._createEncoderBuffer([str.unused | 0, str.data]);
65001
65101
  } else if (tag === "bmpstr") {
65002
- const buf = Buffer3.alloc(str.length * 2);
65102
+ const buf = Buffer4.alloc(str.length * 2);
65003
65103
  for (let i = 0; i < str.length; i++) {
65004
65104
  buf.writeUInt16BE(str.charCodeAt(i), i * 2);
65005
65105
  }
@@ -65050,7 +65150,7 @@ var require_der2 = __commonJS({
65050
65150
  for (size++; ident >= 128; ident >>= 7)
65051
65151
  size++;
65052
65152
  }
65053
- const objid = Buffer3.alloc(size);
65153
+ const objid = Buffer4.alloc(size);
65054
65154
  let offset = objid.length - 1;
65055
65155
  for (let i = id.length - 1; i >= 0; i--) {
65056
65156
  let ident = id[i];
@@ -65106,18 +65206,18 @@ var require_der2 = __commonJS({
65106
65206
  }
65107
65207
  num = values[num];
65108
65208
  }
65109
- if (typeof num !== "number" && !Buffer3.isBuffer(num)) {
65209
+ if (typeof num !== "number" && !Buffer4.isBuffer(num)) {
65110
65210
  const numArray = num.toArray();
65111
65211
  if (!num.sign && numArray[0] & 128) {
65112
65212
  numArray.unshift(0);
65113
65213
  }
65114
- num = Buffer3.from(numArray);
65214
+ num = Buffer4.from(numArray);
65115
65215
  }
65116
- if (Buffer3.isBuffer(num)) {
65216
+ if (Buffer4.isBuffer(num)) {
65117
65217
  let size2 = num.length;
65118
65218
  if (num.length === 0)
65119
65219
  size2++;
65120
- const out2 = Buffer3.alloc(size2);
65220
+ const out2 = Buffer4.alloc(size2);
65121
65221
  num.copy(out2);
65122
65222
  if (num.length === 0)
65123
65223
  out2[0] = 0;
@@ -65138,7 +65238,7 @@ var require_der2 = __commonJS({
65138
65238
  if (out[0] & 128) {
65139
65239
  out.unshift(0);
65140
65240
  }
65141
- return this._createEncoderBuffer(Buffer3.from(out));
65241
+ return this._createEncoderBuffer(Buffer4.from(out));
65142
65242
  };
65143
65243
  DERNode.prototype._encodeBool = function encodeBool(value) {
65144
65244
  return this._createEncoderBuffer(value ? 255 : 0);
@@ -65512,7 +65612,7 @@ var require_pem2 = __commonJS({
65512
65612
  init_buffer();
65513
65613
  init_setInterval();
65514
65614
  var inherits = require_inherits_browser();
65515
- var Buffer3 = require_safer().Buffer;
65615
+ var Buffer4 = require_safer().Buffer;
65516
65616
  var DERDecoder = require_der3();
65517
65617
  function PEMDecoder(entity) {
65518
65618
  DERDecoder.call(this, entity);
@@ -65547,7 +65647,7 @@ var require_pem2 = __commonJS({
65547
65647
  throw new Error("PEM section not found for: " + label);
65548
65648
  const base64 = lines.slice(start + 1, end).join("");
65549
65649
  base64.replace(/[^a-z0-9+/=]+/gi, "");
65550
- const input = Buffer3.from(base64, "base64");
65650
+ const input = Buffer4.from(base64, "base64");
65551
65651
  return DERDecoder.prototype.decode.call(this, input, options);
65552
65652
  };
65553
65653
  }
@@ -65909,24 +66009,24 @@ var require_fixProc = __commonJS({
65909
66009
  var fullRegex = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m;
65910
66010
  var evp = require_evp_bytestokey();
65911
66011
  var ciphers = require_browser11();
65912
- var Buffer3 = require_safe_buffer().Buffer;
66012
+ var Buffer4 = require_safe_buffer().Buffer;
65913
66013
  module.exports = function(okey, password) {
65914
66014
  var key = okey.toString();
65915
66015
  var match = key.match(findProc);
65916
66016
  var decrypted;
65917
66017
  if (!match) {
65918
66018
  var match2 = key.match(fullRegex);
65919
- decrypted = Buffer3.from(match2[2].replace(/[\r\n]/g, ""), "base64");
66019
+ decrypted = Buffer4.from(match2[2].replace(/[\r\n]/g, ""), "base64");
65920
66020
  } else {
65921
66021
  var suite = "aes" + match[1];
65922
- var iv = Buffer3.from(match[2], "hex");
65923
- var cipherText = Buffer3.from(match[3].replace(/[\r\n]/g, ""), "base64");
66022
+ var iv = Buffer4.from(match[2], "hex");
66023
+ var cipherText = Buffer4.from(match[3].replace(/[\r\n]/g, ""), "base64");
65924
66024
  var cipherKey = evp(password, iv.slice(0, 8), parseInt(match[1], 10)).key;
65925
66025
  var out = [];
65926
66026
  var cipher = ciphers.createDecipheriv(suite, cipherKey, iv);
65927
66027
  out.push(cipher.update(cipherText));
65928
66028
  out.push(cipher.final());
65929
- decrypted = Buffer3.concat(out);
66029
+ decrypted = Buffer4.concat(out);
65930
66030
  }
65931
66031
  var tag = key.match(startRegex)[1];
65932
66032
  return {
@@ -65949,16 +66049,16 @@ var require_parse_asn1 = __commonJS({
65949
66049
  var fixProc = require_fixProc();
65950
66050
  var ciphers = require_browser11();
65951
66051
  var compat = require_browser10();
65952
- var Buffer3 = require_safe_buffer().Buffer;
66052
+ var Buffer4 = require_safe_buffer().Buffer;
65953
66053
  module.exports = parseKeys;
65954
66054
  function parseKeys(buffer) {
65955
66055
  var password;
65956
- if (typeof buffer === "object" && !Buffer3.isBuffer(buffer)) {
66056
+ if (typeof buffer === "object" && !Buffer4.isBuffer(buffer)) {
65957
66057
  password = buffer.passphrase;
65958
66058
  buffer = buffer.key;
65959
66059
  }
65960
66060
  if (typeof buffer === "string") {
65961
- buffer = Buffer3.from(buffer);
66061
+ buffer = Buffer4.from(buffer);
65962
66062
  }
65963
66063
  var stripped = fixProc(buffer, password);
65964
66064
  var type = stripped.tag;
@@ -66045,7 +66145,7 @@ var require_parse_asn1 = __commonJS({
66045
66145
  var out = [];
66046
66146
  out.push(cipher.update(cipherText));
66047
66147
  out.push(cipher.final());
66048
- return Buffer3.concat(out);
66148
+ return Buffer4.concat(out);
66049
66149
  }
66050
66150
  }
66051
66151
  });
@@ -66071,7 +66171,7 @@ var require_sign = __commonJS({
66071
66171
  init_setImmediate();
66072
66172
  init_buffer();
66073
66173
  init_setInterval();
66074
- var Buffer3 = require_safe_buffer().Buffer;
66174
+ var Buffer4 = require_safe_buffer().Buffer;
66075
66175
  var createHmac = require_browser9();
66076
66176
  var crt = require_browserify_rsa();
66077
66177
  var EC = require_elliptic().ec;
@@ -66092,7 +66192,7 @@ var require_sign = __commonJS({
66092
66192
  if (signType !== "rsa" && signType !== "ecdsa/rsa")
66093
66193
  throw new Error("wrong private key type");
66094
66194
  }
66095
- hash = Buffer3.concat([tag, hash]);
66195
+ hash = Buffer4.concat([tag, hash]);
66096
66196
  var len = priv.modulus.byteLength();
66097
66197
  var pad = [0, 1];
66098
66198
  while (hash.length + pad.length + 1 < len)
@@ -66111,7 +66211,7 @@ var require_sign = __commonJS({
66111
66211
  var curve = new EC(curveId);
66112
66212
  var key = curve.keyFromPrivate(priv.privateKey);
66113
66213
  var out = key.sign(hash);
66114
- return Buffer3.from(out.toDER());
66214
+ return Buffer4.from(out.toDER());
66115
66215
  }
66116
66216
  function dsaSign(hash, priv, algo) {
66117
66217
  var x = priv.params.priv_key;
@@ -66144,22 +66244,22 @@ var require_sign = __commonJS({
66144
66244
  var total = r.length + s.length + 4;
66145
66245
  var res = [48, total, 2, r.length];
66146
66246
  res = res.concat(r, [2, s.length], s);
66147
- return Buffer3.from(res);
66247
+ return Buffer4.from(res);
66148
66248
  }
66149
66249
  function getKey(x, q, hash, algo) {
66150
- x = Buffer3.from(x.toArray());
66250
+ x = Buffer4.from(x.toArray());
66151
66251
  if (x.length < q.byteLength()) {
66152
- var zeros = Buffer3.alloc(q.byteLength() - x.length);
66153
- x = Buffer3.concat([zeros, x]);
66252
+ var zeros = Buffer4.alloc(q.byteLength() - x.length);
66253
+ x = Buffer4.concat([zeros, x]);
66154
66254
  }
66155
66255
  var hlen = hash.length;
66156
66256
  var hbits = bits2octets(hash, q);
66157
- var v = Buffer3.alloc(hlen);
66257
+ var v = Buffer4.alloc(hlen);
66158
66258
  v.fill(1);
66159
- var k = Buffer3.alloc(hlen);
66160
- k = createHmac(algo, k).update(v).update(Buffer3.from([0])).update(x).update(hbits).digest();
66259
+ var k = Buffer4.alloc(hlen);
66260
+ k = createHmac(algo, k).update(v).update(Buffer4.from([0])).update(x).update(hbits).digest();
66161
66261
  v = createHmac(algo, k).update(v).digest();
66162
- k = createHmac(algo, k).update(v).update(Buffer3.from([1])).update(x).update(hbits).digest();
66262
+ k = createHmac(algo, k).update(v).update(Buffer4.from([1])).update(x).update(hbits).digest();
66163
66263
  v = createHmac(algo, k).update(v).digest();
66164
66264
  return { k, v };
66165
66265
  }
@@ -66173,10 +66273,10 @@ var require_sign = __commonJS({
66173
66273
  function bits2octets(bits, q) {
66174
66274
  bits = bits2int(bits, q);
66175
66275
  bits = bits.mod(q);
66176
- var out = Buffer3.from(bits.toArray());
66276
+ var out = Buffer4.from(bits.toArray());
66177
66277
  if (out.length < q.byteLength()) {
66178
- var zeros = Buffer3.alloc(q.byteLength() - out.length);
66179
- out = Buffer3.concat([zeros, out]);
66278
+ var zeros = Buffer4.alloc(q.byteLength() - out.length);
66279
+ out = Buffer4.concat([zeros, out]);
66180
66280
  }
66181
66281
  return out;
66182
66282
  }
@@ -66184,13 +66284,13 @@ var require_sign = __commonJS({
66184
66284
  var t;
66185
66285
  var k;
66186
66286
  do {
66187
- t = Buffer3.alloc(0);
66287
+ t = Buffer4.alloc(0);
66188
66288
  while (t.length * 8 < q.bitLength()) {
66189
66289
  kv.v = createHmac(algo, kv.k).update(kv.v).digest();
66190
- t = Buffer3.concat([t, kv.v]);
66290
+ t = Buffer4.concat([t, kv.v]);
66191
66291
  }
66192
66292
  k = bits2int(t, q);
66193
- kv.k = createHmac(algo, kv.k).update(kv.v).update(Buffer3.from([0])).digest();
66293
+ kv.k = createHmac(algo, kv.k).update(kv.v).update(Buffer4.from([0])).digest();
66194
66294
  kv.v = createHmac(algo, kv.k).update(kv.v).digest();
66195
66295
  } while (k.cmp(q) !== -1);
66196
66296
  return k;
@@ -66211,7 +66311,7 @@ var require_verify = __commonJS({
66211
66311
  init_setImmediate();
66212
66312
  init_buffer();
66213
66313
  init_setInterval();
66214
- var Buffer3 = require_safe_buffer().Buffer;
66314
+ var Buffer4 = require_safe_buffer().Buffer;
66215
66315
  var BN = require_bn3();
66216
66316
  var EC = require_elliptic().ec;
66217
66317
  var parseKeys = require_parse_asn1();
@@ -66230,7 +66330,7 @@ var require_verify = __commonJS({
66230
66330
  if (signType !== "rsa" && signType !== "ecdsa/rsa")
66231
66331
  throw new Error("wrong public key type");
66232
66332
  }
66233
- hash = Buffer3.concat([tag, hash]);
66333
+ hash = Buffer4.concat([tag, hash]);
66234
66334
  var len = pub.modulus.byteLength();
66235
66335
  var pad = [1];
66236
66336
  var padNum = 0;
@@ -66243,11 +66343,11 @@ var require_verify = __commonJS({
66243
66343
  while (++i < hash.length) {
66244
66344
  pad.push(hash[i]);
66245
66345
  }
66246
- pad = Buffer3.from(pad);
66346
+ pad = Buffer4.from(pad);
66247
66347
  var red = BN.mont(pub.modulus);
66248
66348
  sig = new BN(sig).toRed(red);
66249
66349
  sig = sig.redPow(new BN(pub.publicExponent));
66250
- sig = Buffer3.from(sig.fromRed().toArray());
66350
+ sig = Buffer4.from(sig.fromRed().toArray());
66251
66351
  var out = padNum < 8 ? 1 : 0;
66252
66352
  len = Math.min(sig.length, pad.length);
66253
66353
  if (sig.length !== pad.length)
@@ -66297,7 +66397,7 @@ var require_browser14 = __commonJS({
66297
66397
  init_setImmediate();
66298
66398
  init_buffer();
66299
66399
  init_setInterval();
66300
- var Buffer3 = require_safe_buffer().Buffer;
66400
+ var Buffer4 = require_safe_buffer().Buffer;
66301
66401
  var createHash = require_browser8();
66302
66402
  var stream = require_readable_browser();
66303
66403
  var inherits = require_inherits_browser();
@@ -66305,7 +66405,7 @@ var require_browser14 = __commonJS({
66305
66405
  var verify = require_verify();
66306
66406
  var algorithms = require_algorithms();
66307
66407
  Object.keys(algorithms).forEach(function(key) {
66308
- algorithms[key].id = Buffer3.from(algorithms[key].id, "hex");
66408
+ algorithms[key].id = Buffer4.from(algorithms[key].id, "hex");
66309
66409
  algorithms[key.toLowerCase()] = algorithms[key];
66310
66410
  });
66311
66411
  function Sign(algorithm) {
@@ -66325,7 +66425,7 @@ var require_browser14 = __commonJS({
66325
66425
  };
66326
66426
  Sign.prototype.update = function update(data, enc) {
66327
66427
  if (typeof data === "string")
66328
- data = Buffer3.from(data, enc);
66428
+ data = Buffer4.from(data, enc);
66329
66429
  this._hash.update(data);
66330
66430
  return this;
66331
66431
  };
@@ -66351,13 +66451,13 @@ var require_browser14 = __commonJS({
66351
66451
  };
66352
66452
  Verify.prototype.update = function update(data, enc) {
66353
66453
  if (typeof data === "string")
66354
- data = Buffer3.from(data, enc);
66454
+ data = Buffer4.from(data, enc);
66355
66455
  this._hash.update(data);
66356
66456
  return this;
66357
66457
  };
66358
66458
  Verify.prototype.verify = function verifyMethod(key, sig, enc) {
66359
66459
  if (typeof sig === "string")
66360
- sig = Buffer3.from(sig, enc);
66460
+ sig = Buffer4.from(sig, enc);
66361
66461
  this.end();
66362
66462
  var hash = this._hash.digest();
66363
66463
  return verify(sig, hash, key, this._signType, this._tag);
@@ -66507,19 +66607,19 @@ var require_mgf = __commonJS({
66507
66607
  init_buffer();
66508
66608
  init_setInterval();
66509
66609
  var createHash = require_browser8();
66510
- var Buffer3 = require_safe_buffer().Buffer;
66610
+ var Buffer4 = require_safe_buffer().Buffer;
66511
66611
  module.exports = function(seed, len) {
66512
- var t = Buffer3.alloc(0);
66612
+ var t = Buffer4.alloc(0);
66513
66613
  var i = 0;
66514
66614
  var c;
66515
66615
  while (t.length < len) {
66516
66616
  c = i2ops(i++);
66517
- t = Buffer3.concat([t, createHash("sha1").update(seed).update(c).digest()]);
66617
+ t = Buffer4.concat([t, createHash("sha1").update(seed).update(c).digest()]);
66518
66618
  }
66519
66619
  return t.slice(0, len);
66520
66620
  };
66521
66621
  function i2ops(c) {
66522
- var out = Buffer3.allocUnsafe(4);
66622
+ var out = Buffer4.allocUnsafe(4);
66523
66623
  out.writeUInt32BE(c, 0);
66524
66624
  return out;
66525
66625
  }
@@ -66552,9 +66652,9 @@ var require_withPublic = __commonJS({
66552
66652
  init_buffer();
66553
66653
  init_setInterval();
66554
66654
  var BN = require_bn();
66555
- var Buffer3 = require_safe_buffer().Buffer;
66655
+ var Buffer4 = require_safe_buffer().Buffer;
66556
66656
  function withPublic(paddedMsg, key) {
66557
- return Buffer3.from(paddedMsg.toRed(BN.mont(key.modulus)).redPow(new BN(key.publicExponent)).fromRed().toArray());
66657
+ return Buffer4.from(paddedMsg.toRed(BN.mont(key.modulus)).redPow(new BN(key.publicExponent)).fromRed().toArray());
66558
66658
  }
66559
66659
  module.exports = withPublic;
66560
66660
  }
@@ -66575,7 +66675,7 @@ var require_publicEncrypt = __commonJS({
66575
66675
  var BN = require_bn();
66576
66676
  var withPublic = require_withPublic();
66577
66677
  var crt = require_browserify_rsa();
66578
- var Buffer3 = require_safe_buffer().Buffer;
66678
+ var Buffer4 = require_safe_buffer().Buffer;
66579
66679
  module.exports = function publicEncrypt(publicKey, msg, reverse) {
66580
66680
  var padding;
66581
66681
  if (publicKey.padding) {
@@ -66608,18 +66708,18 @@ var require_publicEncrypt = __commonJS({
66608
66708
  function oaep(key, msg) {
66609
66709
  var k = key.modulus.byteLength();
66610
66710
  var mLen = msg.length;
66611
- var iHash = createHash("sha1").update(Buffer3.alloc(0)).digest();
66711
+ var iHash = createHash("sha1").update(Buffer4.alloc(0)).digest();
66612
66712
  var hLen = iHash.length;
66613
66713
  var hLen2 = 2 * hLen;
66614
66714
  if (mLen > k - hLen2 - 2) {
66615
66715
  throw new Error("message too long");
66616
66716
  }
66617
- var ps = Buffer3.alloc(k - mLen - hLen2 - 2);
66717
+ var ps = Buffer4.alloc(k - mLen - hLen2 - 2);
66618
66718
  var dblen = k - hLen - 1;
66619
66719
  var seed = randomBytes(hLen);
66620
- var maskedDb = xor(Buffer3.concat([iHash, ps, Buffer3.alloc(1, 1), msg], dblen), mgf(seed, dblen));
66720
+ var maskedDb = xor(Buffer4.concat([iHash, ps, Buffer4.alloc(1, 1), msg], dblen), mgf(seed, dblen));
66621
66721
  var maskedSeed = xor(seed, mgf(maskedDb, hLen));
66622
- return new BN(Buffer3.concat([Buffer3.alloc(1), maskedSeed, maskedDb], k));
66722
+ return new BN(Buffer4.concat([Buffer4.alloc(1), maskedSeed, maskedDb], k));
66623
66723
  }
66624
66724
  function pkcs1(key, msg, reverse) {
66625
66725
  var mLen = msg.length;
@@ -66629,14 +66729,14 @@ var require_publicEncrypt = __commonJS({
66629
66729
  }
66630
66730
  var ps;
66631
66731
  if (reverse) {
66632
- ps = Buffer3.alloc(k - mLen - 3, 255);
66732
+ ps = Buffer4.alloc(k - mLen - 3, 255);
66633
66733
  } else {
66634
66734
  ps = nonZero(k - mLen - 3);
66635
66735
  }
66636
- return new BN(Buffer3.concat([Buffer3.from([0, reverse ? 1 : 2]), ps, Buffer3.alloc(1), msg], k));
66736
+ return new BN(Buffer4.concat([Buffer4.from([0, reverse ? 1 : 2]), ps, Buffer4.alloc(1), msg], k));
66637
66737
  }
66638
66738
  function nonZero(len) {
66639
- var out = Buffer3.allocUnsafe(len);
66739
+ var out = Buffer4.allocUnsafe(len);
66640
66740
  var i = 0;
66641
66741
  var cache = randomBytes(len * 2);
66642
66742
  var cur = 0;
@@ -66670,7 +66770,7 @@ var require_privateDecrypt = __commonJS({
66670
66770
  var crt = require_browserify_rsa();
66671
66771
  var createHash = require_browser8();
66672
66772
  var withPublic = require_withPublic();
66673
- var Buffer3 = require_safe_buffer().Buffer;
66773
+ var Buffer4 = require_safe_buffer().Buffer;
66674
66774
  module.exports = function privateDecrypt(privateKey, enc, reverse) {
66675
66775
  var padding;
66676
66776
  if (privateKey.padding) {
@@ -66691,8 +66791,8 @@ var require_privateDecrypt = __commonJS({
66691
66791
  } else {
66692
66792
  msg = crt(enc, key);
66693
66793
  }
66694
- var zBuffer = Buffer3.alloc(k - msg.length);
66695
- msg = Buffer3.concat([zBuffer, msg], k);
66794
+ var zBuffer = Buffer4.alloc(k - msg.length);
66795
+ msg = Buffer4.concat([zBuffer, msg], k);
66696
66796
  if (padding === 4) {
66697
66797
  return oaep(key, msg);
66698
66798
  } else if (padding === 1) {
@@ -66705,7 +66805,7 @@ var require_privateDecrypt = __commonJS({
66705
66805
  };
66706
66806
  function oaep(key, msg) {
66707
66807
  var k = key.modulus.byteLength();
66708
- var iHash = createHash("sha1").update(Buffer3.alloc(0)).digest();
66808
+ var iHash = createHash("sha1").update(Buffer4.alloc(0)).digest();
66709
66809
  var hLen = iHash.length;
66710
66810
  if (msg[0] !== 0) {
66711
66811
  throw new Error("decryption error");
@@ -66749,8 +66849,8 @@ var require_privateDecrypt = __commonJS({
66749
66849
  return msg.slice(i);
66750
66850
  }
66751
66851
  function compare(a, b) {
66752
- a = Buffer3.from(a);
66753
- b = Buffer3.from(b);
66852
+ a = Buffer4.from(a);
66853
+ b = Buffer4.from(b);
66754
66854
  var dif = 0;
66755
66855
  var len = a.length;
66756
66856
  if (a.length !== b.length) {
@@ -66797,7 +66897,7 @@ var require_browser17 = __commonJS({
66797
66897
  }
66798
66898
  var safeBuffer = require_safe_buffer();
66799
66899
  var randombytes = require_browser7();
66800
- var Buffer3 = safeBuffer.Buffer;
66900
+ var Buffer4 = safeBuffer.Buffer;
66801
66901
  var kBufferMaxLength = safeBuffer.kMaxLength;
66802
66902
  var crypto = global.crypto || global.msCrypto;
66803
66903
  var kMaxUint32 = Math.pow(2, 32) - 1;
@@ -66831,7 +66931,7 @@ var require_browser17 = __commonJS({
66831
66931
  exports.randomFillSync = oldBrowser;
66832
66932
  }
66833
66933
  function randomFill(buf, offset, size, cb) {
66834
- if (!Buffer3.isBuffer(buf) && !(buf instanceof global.Uint8Array)) {
66934
+ if (!Buffer4.isBuffer(buf) && !(buf instanceof global.Uint8Array)) {
66835
66935
  throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
66836
66936
  }
66837
66937
  if (typeof offset === "function") {
@@ -66879,7 +66979,7 @@ var require_browser17 = __commonJS({
66879
66979
  if (typeof offset === "undefined") {
66880
66980
  offset = 0;
66881
66981
  }
66882
- if (!Buffer3.isBuffer(buf) && !(buf instanceof global.Uint8Array)) {
66982
+ if (!Buffer4.isBuffer(buf) && !(buf instanceof global.Uint8Array)) {
66883
66983
  throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
66884
66984
  }
66885
66985
  assertOffset(offset, buf.length);
@@ -67405,10 +67505,18 @@ var require_render = __commonJS({
67405
67505
  logger
67406
67506
  });
67407
67507
  renders.forEach((render2, index) => {
67508
+ var _a2;
67408
67509
  const [, { resolve, reject }] = batch[index];
67409
67510
  if (render2.status === "need-more-resources") {
67410
- logger.error(`Got unexpected status ${render2.status} in start render response`);
67411
- reject(new Error(`Got unexpected status ${render2.status} in start render response`));
67511
+ try {
67512
+ logger.error(`Got unexpected UFG error in start render response. Doesn't have all the needed assets to render this page on all environments. '
67513
+ + 'Please contact Applitools support at support@applitools.com with the following information: ` + JSON.stringify({ renderId: render2.renderId, jobId: render2.jobId }));
67514
+ logger.error("missing resources: ", (_a2 = render2.needMoreResources) === null || _a2 === void 0 ? void 0 : _a2.join(", ").slice(0, 1e3));
67515
+ logger.error("needMoreDom: ", render2.needMoreDom);
67516
+ logger.error(JSON.stringify(render2).slice(0, 1e3));
67517
+ } finally {
67518
+ reject(new Error(`Got unexpected status ${render2.status} in start render response`));
67519
+ }
67412
67520
  } else {
67413
67521
  resolve(render2);
67414
67522
  }
@@ -79306,7 +79414,7 @@ var require_version = __commonJS({
79306
79414
  init_setImmediate();
79307
79415
  init_buffer();
79308
79416
  init_setInterval();
79309
- module.exports = "1.1.2";
79417
+ module.exports = "1.1.3";
79310
79418
  }
79311
79419
  });
79312
79420
 
@@ -85203,7 +85311,7 @@ var require_check3 = __commonJS({
85203
85311
  }
85204
85312
  const generatedSelectors = snapshots.map((snapshot) => getGeneratedSelectors(utils34.types.has(snapshot, "generatedSelectors") ? snapshot.generatedSelectors : void 0));
85205
85313
  const promises = uniqueEnvironments.map(async (environment, index) => {
85206
- var _a2, _b2, _c, _d, _e, _f, _g, _h;
85314
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _j;
85207
85315
  const environmentLogger = logger.extend({ tags: [`environment-${utils34.general.shortid()}`] });
85208
85316
  const ufgEnvironment = environment;
85209
85317
  if (utils34.types.has(ufgEnvironment, "name") && ufgEnvironment.name === "edge") {
@@ -85283,13 +85391,38 @@ var require_check3 = __commonJS({
85283
85391
  environmentLogger.warn(`Render on environment with id "${(_f = baseEyes.test.environment) === null || _f === void 0 ? void 0 : _f.environmentId}" was aborted during one of the previous steps`);
85284
85392
  throw new abort_error_1.AbortError(`Render on environment with id "${(_g = baseEyes.test.environment) === null || _g === void 0 ? void 0 : _g.environmentId}" was aborted during one of the previous steps`);
85285
85393
  }
85394
+ if (settings.assumesMutability) {
85395
+ eyes.core.logEvent({
85396
+ settings: {
85397
+ level: "Notice",
85398
+ event: {
85399
+ type: "eyes.check",
85400
+ message: "Assuming mutability for check Target",
85401
+ test: {
85402
+ checkName: settings.name,
85403
+ batchId: baseEyes.test.batchId,
85404
+ sessionId: baseEyes.test.sessionId,
85405
+ testName: baseEyes.test.testName,
85406
+ testId: baseEyes.test.testId,
85407
+ userTestId: baseEyes.test.userTestId,
85408
+ appId: baseEyes.test.appId,
85409
+ baselineId: baseEyes.test.baselineId,
85410
+ environmentId: (_h = baseEyes.test.environment) === null || _h === void 0 ? void 0 : _h.environmentId
85411
+ },
85412
+ isNew: baseEyes.test.isNew,
85413
+ resultsUrl: baseEyes.test.resultsUrl
85414
+ },
85415
+ ...eyes.test.eyesServer
85416
+ }
85417
+ });
85418
+ }
85286
85419
  await baseEyes.check({
85287
85420
  target: { ...baseTarget, isTransformed: true },
85288
85421
  settings: baseSettings,
85289
85422
  logger: environmentLogger
85290
85423
  });
85291
85424
  } catch (error) {
85292
- environmentLogger.error(`Render on environment with id "${(_h = baseEyes.test.environment) === null || _h === void 0 ? void 0 : _h.environmentId}" failed due to an error`, error);
85425
+ environmentLogger.error(`Render on environment with id "${(_j = baseEyes.test.environment) === null || _j === void 0 ? void 0 : _j.environmentId}" failed due to an error`, error);
85293
85426
  if (baseEyes.running && !(signal === null || signal === void 0 ? void 0 : signal.aborted))
85294
85427
  await baseEyes.abort({ logger: environmentLogger, settings: { reason: error } });
85295
85428
  }
@@ -85448,7 +85581,7 @@ var require_check_and_close3 = __commonJS({
85448
85581
  }
85449
85582
  const generatedSelectors = snapshots.map((snapshot) => getGeneratedSelectors(utils34.types.has(snapshot, "generatedSelectors") ? snapshot.generatedSelectors : void 0));
85450
85583
  const promises = uniqueEnvironments.map(async (environment, index) => {
85451
- var _a2, _b2, _c, _d, _e, _f, _g, _h;
85584
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _j;
85452
85585
  const environmentLogger = logger.extend({ tags: [`environment-${utils34.general.shortid()}`] });
85453
85586
  const ufgEnvironment = environment;
85454
85587
  if (utils34.types.has(ufgEnvironment, "name") && ufgEnvironment.name === "edge") {
@@ -85528,13 +85661,38 @@ var require_check_and_close3 = __commonJS({
85528
85661
  environmentLogger.warn(`Render on environment with id "${(_f = baseEyes.test.environment) === null || _f === void 0 ? void 0 : _f.environmentId}" was aborted during one of the previous steps`);
85529
85662
  throw new abort_error_1.AbortError(`Render on environment with id "${(_g = baseEyes.test.environment) === null || _g === void 0 ? void 0 : _g.environmentId}" was aborted during one of the previous steps`);
85530
85663
  }
85664
+ if (settings.assumesMutability) {
85665
+ eyes.core.logEvent({
85666
+ settings: {
85667
+ level: "Notice",
85668
+ event: {
85669
+ type: "eyes.check",
85670
+ message: "Assuming mutability for check Target",
85671
+ test: {
85672
+ checkName: settings.name,
85673
+ batchId: baseEyes.test.batchId,
85674
+ sessionId: baseEyes.test.sessionId,
85675
+ testName: baseEyes.test.testName,
85676
+ testId: baseEyes.test.testId,
85677
+ userTestId: baseEyes.test.userTestId,
85678
+ appId: baseEyes.test.appId,
85679
+ baselineId: baseEyes.test.baselineId,
85680
+ environmentId: (_h = baseEyes.test.environment) === null || _h === void 0 ? void 0 : _h.environmentId
85681
+ },
85682
+ isNew: baseEyes.test.isNew,
85683
+ resultsUrl: baseEyes.test.resultsUrl
85684
+ },
85685
+ ...eyes.test.eyesServer
85686
+ }
85687
+ });
85688
+ }
85531
85689
  await baseEyes.checkAndClose({
85532
85690
  target: { ...baseTarget, isTransformed: true },
85533
85691
  settings: baseSettings,
85534
85692
  logger: environmentLogger
85535
85693
  });
85536
85694
  } catch (error) {
85537
- environmentLogger.error(`Render on environment with id "${(_h = baseEyes.test.environment) === null || _h === void 0 ? void 0 : _h.environmentId}" failed due to an error`, error);
85695
+ environmentLogger.error(`Render on environment with id "${(_j = baseEyes.test.environment) === null || _j === void 0 ? void 0 : _j.environmentId}" failed due to an error`, error);
85538
85696
  if (baseEyes.running && !(signal === null || signal === void 0 ? void 0 : signal.aborted))
85539
85697
  await baseEyes.abort({ logger: environmentLogger, settings: { reason: error } });
85540
85698
  }
@@ -87130,7 +87288,7 @@ var require_package2 = __commonJS({
87130
87288
  "../core/package.json"(exports, module) {
87131
87289
  module.exports = {
87132
87290
  name: "@applitools/core",
87133
- version: "4.15.0",
87291
+ version: "4.16.1",
87134
87292
  homepage: "https://applitools.com",
87135
87293
  bugs: {
87136
87294
  url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -90587,9 +90745,17 @@ var require_create_render_results = __commonJS({
90587
90745
  exports.makeCreateRenderResults = void 0;
90588
90746
  var ufg_client_1 = require_dist6();
90589
90747
  var to_base_check_settings_1 = require_to_base_check_settings();
90590
- function makeCreateRenderResults(_options) {
90748
+ function makeCreateRenderResults({ logger }) {
90591
90749
  return async function createRenderResults({ renders, rawResults }) {
90592
90750
  const results = rawResults.map((rawResult, index) => (0, ufg_client_1.toRenderResult)(rawResult, { renderId: renders[index].render.renderId }));
90751
+ results.forEach((result, index) => {
90752
+ if (result.status === "error") {
90753
+ logger.error(`Render with id "${renders[index].render.renderId}" failed due to an error - ${result.error}`);
90754
+ throw new Error(`Render with id "${renders[index].render.renderId}" failed due to an error - ${result.error}`);
90755
+ } else if (result.status !== "rendered") {
90756
+ throw new Error(`Unexpected status ${result.status} in get render results response`);
90757
+ }
90758
+ });
90593
90759
  return results.map(({ selectorRegions, renderId, status, error, ...baseTarget }, index) => {
90594
90760
  const { elementReferences: selectors, getBaseCheckSettings } = (0, to_base_check_settings_1.toBaseCheckSettings)({
90595
90761
  settings: renders[index].settings
@@ -90666,7 +90832,7 @@ var require_core5 = __commonJS({
90666
90832
  createRenderTarget: (0, create_render_target_1.makeCreateRenderTarget)({ core, logger }),
90667
90833
  startRenders: (0, start_renders_1.makeStartRenders)({ core, logger }),
90668
90834
  getRenderResults: (0, get_render_results_1.makeGetRenderResults)({ core, logger }),
90669
- createRenderResults: (0, create_render_results_1.makeCreateRenderResults)({ core, logger }),
90835
+ createRenderResults: (0, create_render_results_1.makeCreateRenderResults)({ logger }),
90670
90836
  openEyes: (0, open_eyes_1.makeOpenEyes)({ core, logger })
90671
90837
  };
90672
90838
  }
@@ -91241,7 +91407,7 @@ var require_package3 = __commonJS({
91241
91407
  "../eyes/package.json"(exports, module) {
91242
91408
  module.exports = {
91243
91409
  name: "@applitools/eyes",
91244
- version: "1.19.1",
91410
+ version: "1.20.1",
91245
91411
  keywords: [
91246
91412
  "applitools",
91247
91413
  "eyes",
@@ -92795,9 +92961,18 @@ init_buffer();
92795
92961
  init_setInterval();
92796
92962
  var utils14 = __toESM(require_browser3());
92797
92963
  var CheckSettingsBaseFluent = class {
92798
- constructor(settings) {
92964
+ constructor(settings, parent) {
92799
92965
  this._settings = {};
92966
+ this.childs = [];
92967
+ var _a;
92800
92968
  this._settings = utils14.types.instanceOf(settings, CheckSettingsBaseFluent) ? settings.toObject() : settings != null ? settings : {};
92969
+ this.parent = parent != null ? parent : settings == null ? void 0 : settings.parent;
92970
+ if (parent) {
92971
+ (_a = parent.childs) != null ? _a : parent.childs = [];
92972
+ parent.childs.push(this);
92973
+ } else {
92974
+ this._settings = utils14.types.instanceOf(settings, CheckSettingsBaseFluent) ? settings.toObject() : settings != null ? settings : {};
92975
+ }
92801
92976
  }
92802
92977
  region(region) {
92803
92978
  if (utils14.types.has(region, ["left", "top", "width", "height"])) {
@@ -93005,11 +93180,58 @@ var CheckSettingsBaseFluent = class {
93005
93180
  toString() {
93006
93181
  return utils14.general.toString(this);
93007
93182
  }
93183
+ /** @internal */
93184
+ assumesMutability() {
93185
+ if (this.childs.length)
93186
+ return true;
93187
+ for (let parent = this.parent; parent; parent = parent.parent) {
93188
+ if (parent.childs.length !== 1)
93189
+ return true;
93190
+ }
93191
+ return void 0;
93192
+ }
93193
+ static makeMutableTreeProxy(self2, ctor) {
93194
+ const shouldNotBeProxied = ["assumesMutability", "childs", "parent"];
93195
+ const shouldNotCreateChild = ["toObject", "toJSON", "toString"];
93196
+ return new Proxy(self2, {
93197
+ get(target, prop, receiver) {
93198
+ if (shouldNotBeProxied.includes(String(prop)))
93199
+ return Reflect.get(target, prop, receiver);
93200
+ let rootTarget = target;
93201
+ while (rootTarget.parent)
93202
+ rootTarget = rootTarget.parent;
93203
+ const origProp = Reflect.get(rootTarget, prop, receiver);
93204
+ if (typeof origProp !== "function")
93205
+ return origProp;
93206
+ if (shouldNotCreateChild.includes(String(prop)))
93207
+ return origProp;
93208
+ return function(...args) {
93209
+ const result = origProp.call(rootTarget, ...args);
93210
+ if (result instanceof CheckSettingsBaseFluent) {
93211
+ if (result instanceof CheckSettingsImageFluent || result instanceof CheckSettingsAutomationFluent) {
93212
+ return new ctor(null, null, target);
93213
+ } else {
93214
+ throw new Error("Unknown CheckSettings type");
93215
+ }
93216
+ }
93217
+ return result;
93218
+ };
93219
+ }
93220
+ });
93221
+ }
93008
93222
  };
93009
93223
  var CheckSettingsImageFluent = class extends CheckSettingsBaseFluent {
93010
- constructor(settings, target) {
93011
- super(settings);
93012
- this._target = target != null ? target : settings == null ? void 0 : settings._target;
93224
+ constructor(settings, target, parent) {
93225
+ super(void 0, parent);
93226
+ const self2 = CheckSettingsBaseFluent.makeMutableTreeProxy(this, CheckSettingsImageFluent);
93227
+ this._target = null;
93228
+ self2._target = target != null ? target : settings == null ? void 0 : settings._target;
93229
+ self2._settings = utils14.types.instanceOf(settings, CheckSettingsImageFluent) ? settings.toObject() : settings != null ? settings : {};
93230
+ if (settings instanceof CheckSettingsImageFluent) {
93231
+ parent != null ? parent : parent = settings.parent;
93232
+ parent == null ? void 0 : parent.childs.pop();
93233
+ }
93234
+ return self2;
93013
93235
  }
93014
93236
  image(image) {
93015
93237
  var _a;
@@ -93064,16 +93286,25 @@ var CheckSettingsImageFluent = class extends CheckSettingsBaseFluent {
93064
93286
  floatingRegions: (_e = this._settings.floatingRegions) == null ? void 0 : _e.slice(),
93065
93287
  accessibilityRegions: (_f = this._settings.accessibilityRegions) == null ? void 0 : _f.slice(),
93066
93288
  pageId: this._settings.pageId,
93067
- userCommandId: this._settings.variationGroupId
93289
+ userCommandId: this._settings.variationGroupId,
93290
+ assumesMutability: this.assumesMutability()
93068
93291
  })
93069
93292
  };
93070
93293
  }
93071
93294
  };
93072
93295
  var CheckSettingsAutomationFluent = class extends CheckSettingsBaseFluent {
93073
- constructor(settings, spec) {
93074
- super(settings);
93075
- this._spec = spec;
93076
- this._settings = utils14.types.instanceOf(settings, CheckSettingsAutomationFluent) ? settings.toObject() : settings != null ? settings : {};
93296
+ constructor(settings, spec, parent) {
93297
+ super(void 0, parent != null ? parent : settings == null ? void 0 : settings.parent);
93298
+ this._settings = null;
93299
+ this._spec = null;
93300
+ const self2 = CheckSettingsBaseFluent.makeMutableTreeProxy(this, CheckSettingsAutomationFluent);
93301
+ self2._spec = spec;
93302
+ self2._settings = utils14.types.instanceOf(settings, CheckSettingsAutomationFluent) ? settings.toObject() : settings != null ? settings : {};
93303
+ if (settings instanceof CheckSettingsAutomationFluent) {
93304
+ parent != null ? parent : parent = settings.parent;
93305
+ parent == null ? void 0 : parent.childs.pop();
93306
+ }
93307
+ return self2;
93077
93308
  }
93078
93309
  _isElementReference(value) {
93079
93310
  var _a, _b, _c;
@@ -93254,7 +93485,8 @@ var CheckSettingsAutomationFluent = class extends CheckSettingsBaseFluent {
93254
93485
  waitBeforeCapture: this._settings.waitBeforeCapture,
93255
93486
  retryTimeout: this._settings.timeout,
93256
93487
  userCommandId: this._settings.variationGroupId,
93257
- densityMetrics: this._settings.densityMetrics
93488
+ densityMetrics: this._settings.densityMetrics,
93489
+ assumesMutability: this.assumesMutability()
93258
93490
  })
93259
93491
  };
93260
93492
  }