@applitools/eyes-browser 1.4.27 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +65 -0
- package/dist/index.js +853 -89
- package/package.json +2 -2
- package/types/enums/IosMultiDeviceTarget.d.ts +18 -5
- package/types/index.d.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -4357,6 +4357,772 @@ var require_guard = __commonJS({
|
|
|
4357
4357
|
}
|
|
4358
4358
|
});
|
|
4359
4359
|
|
|
4360
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/rng.js
|
|
4361
|
+
var require_rng = __commonJS({
|
|
4362
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/rng.js"(exports) {
|
|
4363
|
+
"use strict";
|
|
4364
|
+
init_process();
|
|
4365
|
+
init_setImmediate();
|
|
4366
|
+
init_buffer();
|
|
4367
|
+
init_setInterval();
|
|
4368
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4369
|
+
value: true
|
|
4370
|
+
});
|
|
4371
|
+
exports.default = rng;
|
|
4372
|
+
var getRandomValues;
|
|
4373
|
+
var rnds8 = new Uint8Array(16);
|
|
4374
|
+
function rng() {
|
|
4375
|
+
if (!getRandomValues) {
|
|
4376
|
+
getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
4377
|
+
if (!getRandomValues) {
|
|
4378
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4379
|
+
}
|
|
4380
|
+
}
|
|
4381
|
+
return getRandomValues(rnds8);
|
|
4382
|
+
}
|
|
4383
|
+
}
|
|
4384
|
+
});
|
|
4385
|
+
|
|
4386
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/regex.js
|
|
4387
|
+
var require_regex = __commonJS({
|
|
4388
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/regex.js"(exports) {
|
|
4389
|
+
"use strict";
|
|
4390
|
+
init_process();
|
|
4391
|
+
init_setImmediate();
|
|
4392
|
+
init_buffer();
|
|
4393
|
+
init_setInterval();
|
|
4394
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4395
|
+
value: true
|
|
4396
|
+
});
|
|
4397
|
+
exports.default = void 0;
|
|
4398
|
+
var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
4399
|
+
exports.default = _default;
|
|
4400
|
+
}
|
|
4401
|
+
});
|
|
4402
|
+
|
|
4403
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/validate.js
|
|
4404
|
+
var require_validate = __commonJS({
|
|
4405
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/validate.js"(exports) {
|
|
4406
|
+
"use strict";
|
|
4407
|
+
init_process();
|
|
4408
|
+
init_setImmediate();
|
|
4409
|
+
init_buffer();
|
|
4410
|
+
init_setInterval();
|
|
4411
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4412
|
+
value: true
|
|
4413
|
+
});
|
|
4414
|
+
exports.default = void 0;
|
|
4415
|
+
var _regex = _interopRequireDefault(require_regex());
|
|
4416
|
+
function _interopRequireDefault(obj) {
|
|
4417
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
4418
|
+
}
|
|
4419
|
+
function validate(uuid) {
|
|
4420
|
+
return typeof uuid === "string" && _regex.default.test(uuid);
|
|
4421
|
+
}
|
|
4422
|
+
var _default = validate;
|
|
4423
|
+
exports.default = _default;
|
|
4424
|
+
}
|
|
4425
|
+
});
|
|
4426
|
+
|
|
4427
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/stringify.js
|
|
4428
|
+
var require_stringify = __commonJS({
|
|
4429
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/stringify.js"(exports) {
|
|
4430
|
+
"use strict";
|
|
4431
|
+
init_process();
|
|
4432
|
+
init_setImmediate();
|
|
4433
|
+
init_buffer();
|
|
4434
|
+
init_setInterval();
|
|
4435
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4436
|
+
value: true
|
|
4437
|
+
});
|
|
4438
|
+
exports.default = void 0;
|
|
4439
|
+
exports.unsafeStringify = unsafeStringify;
|
|
4440
|
+
var _validate = _interopRequireDefault(require_validate());
|
|
4441
|
+
function _interopRequireDefault(obj) {
|
|
4442
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
4443
|
+
}
|
|
4444
|
+
var byteToHex = [];
|
|
4445
|
+
for (let i = 0; i < 256; ++i) {
|
|
4446
|
+
byteToHex.push((i + 256).toString(16).slice(1));
|
|
4447
|
+
}
|
|
4448
|
+
function unsafeStringify(arr, offset = 0) {
|
|
4449
|
+
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
4450
|
+
}
|
|
4451
|
+
function stringify(arr, offset = 0) {
|
|
4452
|
+
const uuid = unsafeStringify(arr, offset);
|
|
4453
|
+
if (!(0, _validate.default)(uuid)) {
|
|
4454
|
+
throw TypeError("Stringified UUID is invalid");
|
|
4455
|
+
}
|
|
4456
|
+
return uuid;
|
|
4457
|
+
}
|
|
4458
|
+
var _default = stringify;
|
|
4459
|
+
exports.default = _default;
|
|
4460
|
+
}
|
|
4461
|
+
});
|
|
4462
|
+
|
|
4463
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/v1.js
|
|
4464
|
+
var require_v1 = __commonJS({
|
|
4465
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/v1.js"(exports) {
|
|
4466
|
+
"use strict";
|
|
4467
|
+
init_process();
|
|
4468
|
+
init_setImmediate();
|
|
4469
|
+
init_buffer();
|
|
4470
|
+
init_setInterval();
|
|
4471
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4472
|
+
value: true
|
|
4473
|
+
});
|
|
4474
|
+
exports.default = void 0;
|
|
4475
|
+
var _rng = _interopRequireDefault(require_rng());
|
|
4476
|
+
var _stringify = require_stringify();
|
|
4477
|
+
function _interopRequireDefault(obj) {
|
|
4478
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
4479
|
+
}
|
|
4480
|
+
var _nodeId;
|
|
4481
|
+
var _clockseq;
|
|
4482
|
+
var _lastMSecs = 0;
|
|
4483
|
+
var _lastNSecs = 0;
|
|
4484
|
+
function v1(options, buf, offset) {
|
|
4485
|
+
let i = buf && offset || 0;
|
|
4486
|
+
const b = buf || new Array(16);
|
|
4487
|
+
options = options || {};
|
|
4488
|
+
let node = options.node || _nodeId;
|
|
4489
|
+
let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq;
|
|
4490
|
+
if (node == null || clockseq == null) {
|
|
4491
|
+
const seedBytes = options.random || (options.rng || _rng.default)();
|
|
4492
|
+
if (node == null) {
|
|
4493
|
+
node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
|
|
4494
|
+
}
|
|
4495
|
+
if (clockseq == null) {
|
|
4496
|
+
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383;
|
|
4497
|
+
}
|
|
4498
|
+
}
|
|
4499
|
+
let msecs = options.msecs !== void 0 ? options.msecs : Date.now();
|
|
4500
|
+
let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1;
|
|
4501
|
+
const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;
|
|
4502
|
+
if (dt < 0 && options.clockseq === void 0) {
|
|
4503
|
+
clockseq = clockseq + 1 & 16383;
|
|
4504
|
+
}
|
|
4505
|
+
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) {
|
|
4506
|
+
nsecs = 0;
|
|
4507
|
+
}
|
|
4508
|
+
if (nsecs >= 1e4) {
|
|
4509
|
+
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
4510
|
+
}
|
|
4511
|
+
_lastMSecs = msecs;
|
|
4512
|
+
_lastNSecs = nsecs;
|
|
4513
|
+
_clockseq = clockseq;
|
|
4514
|
+
msecs += 122192928e5;
|
|
4515
|
+
const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
|
|
4516
|
+
b[i++] = tl >>> 24 & 255;
|
|
4517
|
+
b[i++] = tl >>> 16 & 255;
|
|
4518
|
+
b[i++] = tl >>> 8 & 255;
|
|
4519
|
+
b[i++] = tl & 255;
|
|
4520
|
+
const tmh = msecs / 4294967296 * 1e4 & 268435455;
|
|
4521
|
+
b[i++] = tmh >>> 8 & 255;
|
|
4522
|
+
b[i++] = tmh & 255;
|
|
4523
|
+
b[i++] = tmh >>> 24 & 15 | 16;
|
|
4524
|
+
b[i++] = tmh >>> 16 & 255;
|
|
4525
|
+
b[i++] = clockseq >>> 8 | 128;
|
|
4526
|
+
b[i++] = clockseq & 255;
|
|
4527
|
+
for (let n = 0; n < 6; ++n) {
|
|
4528
|
+
b[i + n] = node[n];
|
|
4529
|
+
}
|
|
4530
|
+
return buf || (0, _stringify.unsafeStringify)(b);
|
|
4531
|
+
}
|
|
4532
|
+
var _default = v1;
|
|
4533
|
+
exports.default = _default;
|
|
4534
|
+
}
|
|
4535
|
+
});
|
|
4536
|
+
|
|
4537
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/parse.js
|
|
4538
|
+
var require_parse = __commonJS({
|
|
4539
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/parse.js"(exports) {
|
|
4540
|
+
"use strict";
|
|
4541
|
+
init_process();
|
|
4542
|
+
init_setImmediate();
|
|
4543
|
+
init_buffer();
|
|
4544
|
+
init_setInterval();
|
|
4545
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4546
|
+
value: true
|
|
4547
|
+
});
|
|
4548
|
+
exports.default = void 0;
|
|
4549
|
+
var _validate = _interopRequireDefault(require_validate());
|
|
4550
|
+
function _interopRequireDefault(obj) {
|
|
4551
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
4552
|
+
}
|
|
4553
|
+
function parse(uuid) {
|
|
4554
|
+
if (!(0, _validate.default)(uuid)) {
|
|
4555
|
+
throw TypeError("Invalid UUID");
|
|
4556
|
+
}
|
|
4557
|
+
let v;
|
|
4558
|
+
const arr = new Uint8Array(16);
|
|
4559
|
+
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
4560
|
+
arr[1] = v >>> 16 & 255;
|
|
4561
|
+
arr[2] = v >>> 8 & 255;
|
|
4562
|
+
arr[3] = v & 255;
|
|
4563
|
+
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
4564
|
+
arr[5] = v & 255;
|
|
4565
|
+
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
4566
|
+
arr[7] = v & 255;
|
|
4567
|
+
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
4568
|
+
arr[9] = v & 255;
|
|
4569
|
+
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255;
|
|
4570
|
+
arr[11] = v / 4294967296 & 255;
|
|
4571
|
+
arr[12] = v >>> 24 & 255;
|
|
4572
|
+
arr[13] = v >>> 16 & 255;
|
|
4573
|
+
arr[14] = v >>> 8 & 255;
|
|
4574
|
+
arr[15] = v & 255;
|
|
4575
|
+
return arr;
|
|
4576
|
+
}
|
|
4577
|
+
var _default = parse;
|
|
4578
|
+
exports.default = _default;
|
|
4579
|
+
}
|
|
4580
|
+
});
|
|
4581
|
+
|
|
4582
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/v35.js
|
|
4583
|
+
var require_v35 = __commonJS({
|
|
4584
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/v35.js"(exports) {
|
|
4585
|
+
"use strict";
|
|
4586
|
+
init_process();
|
|
4587
|
+
init_setImmediate();
|
|
4588
|
+
init_buffer();
|
|
4589
|
+
init_setInterval();
|
|
4590
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4591
|
+
value: true
|
|
4592
|
+
});
|
|
4593
|
+
exports.URL = exports.DNS = void 0;
|
|
4594
|
+
exports.default = v35;
|
|
4595
|
+
var _stringify = require_stringify();
|
|
4596
|
+
var _parse = _interopRequireDefault(require_parse());
|
|
4597
|
+
function _interopRequireDefault(obj) {
|
|
4598
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
4599
|
+
}
|
|
4600
|
+
function stringToBytes(str) {
|
|
4601
|
+
str = unescape(encodeURIComponent(str));
|
|
4602
|
+
const bytes = [];
|
|
4603
|
+
for (let i = 0; i < str.length; ++i) {
|
|
4604
|
+
bytes.push(str.charCodeAt(i));
|
|
4605
|
+
}
|
|
4606
|
+
return bytes;
|
|
4607
|
+
}
|
|
4608
|
+
var DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
4609
|
+
exports.DNS = DNS;
|
|
4610
|
+
var URL3 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
4611
|
+
exports.URL = URL3;
|
|
4612
|
+
function v35(name, version, hashfunc) {
|
|
4613
|
+
function generateUUID(value, namespace, buf, offset) {
|
|
4614
|
+
var _namespace;
|
|
4615
|
+
if (typeof value === "string") {
|
|
4616
|
+
value = stringToBytes(value);
|
|
4617
|
+
}
|
|
4618
|
+
if (typeof namespace === "string") {
|
|
4619
|
+
namespace = (0, _parse.default)(namespace);
|
|
4620
|
+
}
|
|
4621
|
+
if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
|
|
4622
|
+
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
4623
|
+
}
|
|
4624
|
+
let bytes = new Uint8Array(16 + value.length);
|
|
4625
|
+
bytes.set(namespace);
|
|
4626
|
+
bytes.set(value, namespace.length);
|
|
4627
|
+
bytes = hashfunc(bytes);
|
|
4628
|
+
bytes[6] = bytes[6] & 15 | version;
|
|
4629
|
+
bytes[8] = bytes[8] & 63 | 128;
|
|
4630
|
+
if (buf) {
|
|
4631
|
+
offset = offset || 0;
|
|
4632
|
+
for (let i = 0; i < 16; ++i) {
|
|
4633
|
+
buf[offset + i] = bytes[i];
|
|
4634
|
+
}
|
|
4635
|
+
return buf;
|
|
4636
|
+
}
|
|
4637
|
+
return (0, _stringify.unsafeStringify)(bytes);
|
|
4638
|
+
}
|
|
4639
|
+
try {
|
|
4640
|
+
generateUUID.name = name;
|
|
4641
|
+
} catch (err) {
|
|
4642
|
+
}
|
|
4643
|
+
generateUUID.DNS = DNS;
|
|
4644
|
+
generateUUID.URL = URL3;
|
|
4645
|
+
return generateUUID;
|
|
4646
|
+
}
|
|
4647
|
+
}
|
|
4648
|
+
});
|
|
4649
|
+
|
|
4650
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/md5.js
|
|
4651
|
+
var require_md5 = __commonJS({
|
|
4652
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/md5.js"(exports) {
|
|
4653
|
+
"use strict";
|
|
4654
|
+
init_process();
|
|
4655
|
+
init_setImmediate();
|
|
4656
|
+
init_buffer();
|
|
4657
|
+
init_setInterval();
|
|
4658
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4659
|
+
value: true
|
|
4660
|
+
});
|
|
4661
|
+
exports.default = void 0;
|
|
4662
|
+
function md5(bytes) {
|
|
4663
|
+
if (typeof bytes === "string") {
|
|
4664
|
+
const msg = unescape(encodeURIComponent(bytes));
|
|
4665
|
+
bytes = new Uint8Array(msg.length);
|
|
4666
|
+
for (let i = 0; i < msg.length; ++i) {
|
|
4667
|
+
bytes[i] = msg.charCodeAt(i);
|
|
4668
|
+
}
|
|
4669
|
+
}
|
|
4670
|
+
return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
|
|
4671
|
+
}
|
|
4672
|
+
function md5ToHexEncodedArray(input) {
|
|
4673
|
+
const output = [];
|
|
4674
|
+
const length32 = input.length * 32;
|
|
4675
|
+
const hexTab = "0123456789abcdef";
|
|
4676
|
+
for (let i = 0; i < length32; i += 8) {
|
|
4677
|
+
const x = input[i >> 5] >>> i % 32 & 255;
|
|
4678
|
+
const hex = parseInt(hexTab.charAt(x >>> 4 & 15) + hexTab.charAt(x & 15), 16);
|
|
4679
|
+
output.push(hex);
|
|
4680
|
+
}
|
|
4681
|
+
return output;
|
|
4682
|
+
}
|
|
4683
|
+
function getOutputLength(inputLength8) {
|
|
4684
|
+
return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
|
|
4685
|
+
}
|
|
4686
|
+
function wordsToMd5(x, len) {
|
|
4687
|
+
x[len >> 5] |= 128 << len % 32;
|
|
4688
|
+
x[getOutputLength(len) - 1] = len;
|
|
4689
|
+
let a = 1732584193;
|
|
4690
|
+
let b = -271733879;
|
|
4691
|
+
let c = -1732584194;
|
|
4692
|
+
let d = 271733878;
|
|
4693
|
+
for (let i = 0; i < x.length; i += 16) {
|
|
4694
|
+
const olda = a;
|
|
4695
|
+
const oldb = b;
|
|
4696
|
+
const oldc = c;
|
|
4697
|
+
const oldd = d;
|
|
4698
|
+
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
4699
|
+
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
4700
|
+
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
4701
|
+
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
|
4702
|
+
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
|
4703
|
+
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
|
4704
|
+
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
|
4705
|
+
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
|
4706
|
+
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
|
4707
|
+
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
|
4708
|
+
c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
|
4709
|
+
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
|
4710
|
+
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
|
4711
|
+
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
|
4712
|
+
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
|
4713
|
+
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
|
4714
|
+
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
|
4715
|
+
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
|
4716
|
+
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
|
4717
|
+
b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
|
4718
|
+
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
|
4719
|
+
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
|
4720
|
+
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
|
4721
|
+
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
|
4722
|
+
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
|
4723
|
+
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
|
4724
|
+
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
|
4725
|
+
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
|
4726
|
+
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
|
4727
|
+
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
|
4728
|
+
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
|
4729
|
+
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
|
4730
|
+
a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
|
4731
|
+
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
|
4732
|
+
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
|
4733
|
+
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
|
4734
|
+
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
|
4735
|
+
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
|
4736
|
+
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
|
4737
|
+
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
|
4738
|
+
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
|
4739
|
+
d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
|
4740
|
+
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
|
4741
|
+
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
|
4742
|
+
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
|
4743
|
+
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
|
4744
|
+
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
|
4745
|
+
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
|
4746
|
+
a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
|
4747
|
+
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
|
4748
|
+
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
|
4749
|
+
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
|
4750
|
+
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
|
4751
|
+
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
|
4752
|
+
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
|
4753
|
+
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
|
4754
|
+
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
|
4755
|
+
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
|
4756
|
+
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
|
4757
|
+
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
|
4758
|
+
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
|
4759
|
+
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
|
4760
|
+
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
|
4761
|
+
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
|
4762
|
+
a = safeAdd(a, olda);
|
|
4763
|
+
b = safeAdd(b, oldb);
|
|
4764
|
+
c = safeAdd(c, oldc);
|
|
4765
|
+
d = safeAdd(d, oldd);
|
|
4766
|
+
}
|
|
4767
|
+
return [a, b, c, d];
|
|
4768
|
+
}
|
|
4769
|
+
function bytesToWords(input) {
|
|
4770
|
+
if (input.length === 0) {
|
|
4771
|
+
return [];
|
|
4772
|
+
}
|
|
4773
|
+
const length8 = input.length * 8;
|
|
4774
|
+
const output = new Uint32Array(getOutputLength(length8));
|
|
4775
|
+
for (let i = 0; i < length8; i += 8) {
|
|
4776
|
+
output[i >> 5] |= (input[i / 8] & 255) << i % 32;
|
|
4777
|
+
}
|
|
4778
|
+
return output;
|
|
4779
|
+
}
|
|
4780
|
+
function safeAdd(x, y) {
|
|
4781
|
+
const lsw = (x & 65535) + (y & 65535);
|
|
4782
|
+
const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
4783
|
+
return msw << 16 | lsw & 65535;
|
|
4784
|
+
}
|
|
4785
|
+
function bitRotateLeft(num, cnt) {
|
|
4786
|
+
return num << cnt | num >>> 32 - cnt;
|
|
4787
|
+
}
|
|
4788
|
+
function md5cmn(q, a, b, x, s, t) {
|
|
4789
|
+
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
|
4790
|
+
}
|
|
4791
|
+
function md5ff(a, b, c, d, x, s, t) {
|
|
4792
|
+
return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
|
4793
|
+
}
|
|
4794
|
+
function md5gg(a, b, c, d, x, s, t) {
|
|
4795
|
+
return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
|
4796
|
+
}
|
|
4797
|
+
function md5hh(a, b, c, d, x, s, t) {
|
|
4798
|
+
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
|
4799
|
+
}
|
|
4800
|
+
function md5ii(a, b, c, d, x, s, t) {
|
|
4801
|
+
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
4802
|
+
}
|
|
4803
|
+
var _default = md5;
|
|
4804
|
+
exports.default = _default;
|
|
4805
|
+
}
|
|
4806
|
+
});
|
|
4807
|
+
|
|
4808
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/v3.js
|
|
4809
|
+
var require_v3 = __commonJS({
|
|
4810
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/v3.js"(exports) {
|
|
4811
|
+
"use strict";
|
|
4812
|
+
init_process();
|
|
4813
|
+
init_setImmediate();
|
|
4814
|
+
init_buffer();
|
|
4815
|
+
init_setInterval();
|
|
4816
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4817
|
+
value: true
|
|
4818
|
+
});
|
|
4819
|
+
exports.default = void 0;
|
|
4820
|
+
var _v = _interopRequireDefault(require_v35());
|
|
4821
|
+
var _md = _interopRequireDefault(require_md5());
|
|
4822
|
+
function _interopRequireDefault(obj) {
|
|
4823
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
4824
|
+
}
|
|
4825
|
+
var v3 = (0, _v.default)("v3", 48, _md.default);
|
|
4826
|
+
var _default = v3;
|
|
4827
|
+
exports.default = _default;
|
|
4828
|
+
}
|
|
4829
|
+
});
|
|
4830
|
+
|
|
4831
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/native.js
|
|
4832
|
+
var require_native = __commonJS({
|
|
4833
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/native.js"(exports) {
|
|
4834
|
+
"use strict";
|
|
4835
|
+
init_process();
|
|
4836
|
+
init_setImmediate();
|
|
4837
|
+
init_buffer();
|
|
4838
|
+
init_setInterval();
|
|
4839
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4840
|
+
value: true
|
|
4841
|
+
});
|
|
4842
|
+
exports.default = void 0;
|
|
4843
|
+
var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
4844
|
+
var _default = {
|
|
4845
|
+
randomUUID
|
|
4846
|
+
};
|
|
4847
|
+
exports.default = _default;
|
|
4848
|
+
}
|
|
4849
|
+
});
|
|
4850
|
+
|
|
4851
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/v4.js
|
|
4852
|
+
var require_v4 = __commonJS({
|
|
4853
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/v4.js"(exports) {
|
|
4854
|
+
"use strict";
|
|
4855
|
+
init_process();
|
|
4856
|
+
init_setImmediate();
|
|
4857
|
+
init_buffer();
|
|
4858
|
+
init_setInterval();
|
|
4859
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4860
|
+
value: true
|
|
4861
|
+
});
|
|
4862
|
+
exports.default = void 0;
|
|
4863
|
+
var _native = _interopRequireDefault(require_native());
|
|
4864
|
+
var _rng = _interopRequireDefault(require_rng());
|
|
4865
|
+
var _stringify = require_stringify();
|
|
4866
|
+
function _interopRequireDefault(obj) {
|
|
4867
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
4868
|
+
}
|
|
4869
|
+
function v4(options, buf, offset) {
|
|
4870
|
+
if (_native.default.randomUUID && !buf && !options) {
|
|
4871
|
+
return _native.default.randomUUID();
|
|
4872
|
+
}
|
|
4873
|
+
options = options || {};
|
|
4874
|
+
const rnds = options.random || (options.rng || _rng.default)();
|
|
4875
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
4876
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
4877
|
+
if (buf) {
|
|
4878
|
+
offset = offset || 0;
|
|
4879
|
+
for (let i = 0; i < 16; ++i) {
|
|
4880
|
+
buf[offset + i] = rnds[i];
|
|
4881
|
+
}
|
|
4882
|
+
return buf;
|
|
4883
|
+
}
|
|
4884
|
+
return (0, _stringify.unsafeStringify)(rnds);
|
|
4885
|
+
}
|
|
4886
|
+
var _default = v4;
|
|
4887
|
+
exports.default = _default;
|
|
4888
|
+
}
|
|
4889
|
+
});
|
|
4890
|
+
|
|
4891
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/sha1.js
|
|
4892
|
+
var require_sha1 = __commonJS({
|
|
4893
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/sha1.js"(exports) {
|
|
4894
|
+
"use strict";
|
|
4895
|
+
init_process();
|
|
4896
|
+
init_setImmediate();
|
|
4897
|
+
init_buffer();
|
|
4898
|
+
init_setInterval();
|
|
4899
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4900
|
+
value: true
|
|
4901
|
+
});
|
|
4902
|
+
exports.default = void 0;
|
|
4903
|
+
function f(s, x, y, z) {
|
|
4904
|
+
switch (s) {
|
|
4905
|
+
case 0:
|
|
4906
|
+
return x & y ^ ~x & z;
|
|
4907
|
+
case 1:
|
|
4908
|
+
return x ^ y ^ z;
|
|
4909
|
+
case 2:
|
|
4910
|
+
return x & y ^ x & z ^ y & z;
|
|
4911
|
+
case 3:
|
|
4912
|
+
return x ^ y ^ z;
|
|
4913
|
+
}
|
|
4914
|
+
}
|
|
4915
|
+
function ROTL(x, n) {
|
|
4916
|
+
return x << n | x >>> 32 - n;
|
|
4917
|
+
}
|
|
4918
|
+
function sha1(bytes) {
|
|
4919
|
+
const K = [1518500249, 1859775393, 2400959708, 3395469782];
|
|
4920
|
+
const H = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
4921
|
+
if (typeof bytes === "string") {
|
|
4922
|
+
const msg = unescape(encodeURIComponent(bytes));
|
|
4923
|
+
bytes = [];
|
|
4924
|
+
for (let i = 0; i < msg.length; ++i) {
|
|
4925
|
+
bytes.push(msg.charCodeAt(i));
|
|
4926
|
+
}
|
|
4927
|
+
} else if (!Array.isArray(bytes)) {
|
|
4928
|
+
bytes = Array.prototype.slice.call(bytes);
|
|
4929
|
+
}
|
|
4930
|
+
bytes.push(128);
|
|
4931
|
+
const l = bytes.length / 4 + 2;
|
|
4932
|
+
const N = Math.ceil(l / 16);
|
|
4933
|
+
const M = new Array(N);
|
|
4934
|
+
for (let i = 0; i < N; ++i) {
|
|
4935
|
+
const arr = new Uint32Array(16);
|
|
4936
|
+
for (let j = 0; j < 16; ++j) {
|
|
4937
|
+
arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3];
|
|
4938
|
+
}
|
|
4939
|
+
M[i] = arr;
|
|
4940
|
+
}
|
|
4941
|
+
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
|
4942
|
+
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
4943
|
+
M[N - 1][15] = (bytes.length - 1) * 8 & 4294967295;
|
|
4944
|
+
for (let i = 0; i < N; ++i) {
|
|
4945
|
+
const W = new Uint32Array(80);
|
|
4946
|
+
for (let t = 0; t < 16; ++t) {
|
|
4947
|
+
W[t] = M[i][t];
|
|
4948
|
+
}
|
|
4949
|
+
for (let t = 16; t < 80; ++t) {
|
|
4950
|
+
W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
|
|
4951
|
+
}
|
|
4952
|
+
let a = H[0];
|
|
4953
|
+
let b = H[1];
|
|
4954
|
+
let c = H[2];
|
|
4955
|
+
let d = H[3];
|
|
4956
|
+
let e = H[4];
|
|
4957
|
+
for (let t = 0; t < 80; ++t) {
|
|
4958
|
+
const s = Math.floor(t / 20);
|
|
4959
|
+
const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0;
|
|
4960
|
+
e = d;
|
|
4961
|
+
d = c;
|
|
4962
|
+
c = ROTL(b, 30) >>> 0;
|
|
4963
|
+
b = a;
|
|
4964
|
+
a = T;
|
|
4965
|
+
}
|
|
4966
|
+
H[0] = H[0] + a >>> 0;
|
|
4967
|
+
H[1] = H[1] + b >>> 0;
|
|
4968
|
+
H[2] = H[2] + c >>> 0;
|
|
4969
|
+
H[3] = H[3] + d >>> 0;
|
|
4970
|
+
H[4] = H[4] + e >>> 0;
|
|
4971
|
+
}
|
|
4972
|
+
return [H[0] >> 24 & 255, H[0] >> 16 & 255, H[0] >> 8 & 255, H[0] & 255, H[1] >> 24 & 255, H[1] >> 16 & 255, H[1] >> 8 & 255, H[1] & 255, H[2] >> 24 & 255, H[2] >> 16 & 255, H[2] >> 8 & 255, H[2] & 255, H[3] >> 24 & 255, H[3] >> 16 & 255, H[3] >> 8 & 255, H[3] & 255, H[4] >> 24 & 255, H[4] >> 16 & 255, H[4] >> 8 & 255, H[4] & 255];
|
|
4973
|
+
}
|
|
4974
|
+
var _default = sha1;
|
|
4975
|
+
exports.default = _default;
|
|
4976
|
+
}
|
|
4977
|
+
});
|
|
4978
|
+
|
|
4979
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/v5.js
|
|
4980
|
+
var require_v5 = __commonJS({
|
|
4981
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/v5.js"(exports) {
|
|
4982
|
+
"use strict";
|
|
4983
|
+
init_process();
|
|
4984
|
+
init_setImmediate();
|
|
4985
|
+
init_buffer();
|
|
4986
|
+
init_setInterval();
|
|
4987
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4988
|
+
value: true
|
|
4989
|
+
});
|
|
4990
|
+
exports.default = void 0;
|
|
4991
|
+
var _v = _interopRequireDefault(require_v35());
|
|
4992
|
+
var _sha = _interopRequireDefault(require_sha1());
|
|
4993
|
+
function _interopRequireDefault(obj) {
|
|
4994
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
4995
|
+
}
|
|
4996
|
+
var v5 = (0, _v.default)("v5", 80, _sha.default);
|
|
4997
|
+
var _default = v5;
|
|
4998
|
+
exports.default = _default;
|
|
4999
|
+
}
|
|
5000
|
+
});
|
|
5001
|
+
|
|
5002
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/nil.js
|
|
5003
|
+
var require_nil = __commonJS({
|
|
5004
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/nil.js"(exports) {
|
|
5005
|
+
"use strict";
|
|
5006
|
+
init_process();
|
|
5007
|
+
init_setImmediate();
|
|
5008
|
+
init_buffer();
|
|
5009
|
+
init_setInterval();
|
|
5010
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5011
|
+
value: true
|
|
5012
|
+
});
|
|
5013
|
+
exports.default = void 0;
|
|
5014
|
+
var _default = "00000000-0000-0000-0000-000000000000";
|
|
5015
|
+
exports.default = _default;
|
|
5016
|
+
}
|
|
5017
|
+
});
|
|
5018
|
+
|
|
5019
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/version.js
|
|
5020
|
+
var require_version = __commonJS({
|
|
5021
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/version.js"(exports) {
|
|
5022
|
+
"use strict";
|
|
5023
|
+
init_process();
|
|
5024
|
+
init_setImmediate();
|
|
5025
|
+
init_buffer();
|
|
5026
|
+
init_setInterval();
|
|
5027
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5028
|
+
value: true
|
|
5029
|
+
});
|
|
5030
|
+
exports.default = void 0;
|
|
5031
|
+
var _validate = _interopRequireDefault(require_validate());
|
|
5032
|
+
function _interopRequireDefault(obj) {
|
|
5033
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
5034
|
+
}
|
|
5035
|
+
function version(uuid) {
|
|
5036
|
+
if (!(0, _validate.default)(uuid)) {
|
|
5037
|
+
throw TypeError("Invalid UUID");
|
|
5038
|
+
}
|
|
5039
|
+
return parseInt(uuid.slice(14, 15), 16);
|
|
5040
|
+
}
|
|
5041
|
+
var _default = version;
|
|
5042
|
+
exports.default = _default;
|
|
5043
|
+
}
|
|
5044
|
+
});
|
|
5045
|
+
|
|
5046
|
+
// ../utils/node_modules/uuid/dist/commonjs-browser/index.js
|
|
5047
|
+
var require_commonjs_browser = __commonJS({
|
|
5048
|
+
"../utils/node_modules/uuid/dist/commonjs-browser/index.js"(exports) {
|
|
5049
|
+
"use strict";
|
|
5050
|
+
init_process();
|
|
5051
|
+
init_setImmediate();
|
|
5052
|
+
init_buffer();
|
|
5053
|
+
init_setInterval();
|
|
5054
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5055
|
+
value: true
|
|
5056
|
+
});
|
|
5057
|
+
Object.defineProperty(exports, "NIL", {
|
|
5058
|
+
enumerable: true,
|
|
5059
|
+
get: function get() {
|
|
5060
|
+
return _nil.default;
|
|
5061
|
+
}
|
|
5062
|
+
});
|
|
5063
|
+
Object.defineProperty(exports, "parse", {
|
|
5064
|
+
enumerable: true,
|
|
5065
|
+
get: function get() {
|
|
5066
|
+
return _parse.default;
|
|
5067
|
+
}
|
|
5068
|
+
});
|
|
5069
|
+
Object.defineProperty(exports, "stringify", {
|
|
5070
|
+
enumerable: true,
|
|
5071
|
+
get: function get() {
|
|
5072
|
+
return _stringify.default;
|
|
5073
|
+
}
|
|
5074
|
+
});
|
|
5075
|
+
Object.defineProperty(exports, "v1", {
|
|
5076
|
+
enumerable: true,
|
|
5077
|
+
get: function get() {
|
|
5078
|
+
return _v.default;
|
|
5079
|
+
}
|
|
5080
|
+
});
|
|
5081
|
+
Object.defineProperty(exports, "v3", {
|
|
5082
|
+
enumerable: true,
|
|
5083
|
+
get: function get() {
|
|
5084
|
+
return _v2.default;
|
|
5085
|
+
}
|
|
5086
|
+
});
|
|
5087
|
+
Object.defineProperty(exports, "v4", {
|
|
5088
|
+
enumerable: true,
|
|
5089
|
+
get: function get() {
|
|
5090
|
+
return _v3.default;
|
|
5091
|
+
}
|
|
5092
|
+
});
|
|
5093
|
+
Object.defineProperty(exports, "v5", {
|
|
5094
|
+
enumerable: true,
|
|
5095
|
+
get: function get() {
|
|
5096
|
+
return _v4.default;
|
|
5097
|
+
}
|
|
5098
|
+
});
|
|
5099
|
+
Object.defineProperty(exports, "validate", {
|
|
5100
|
+
enumerable: true,
|
|
5101
|
+
get: function get() {
|
|
5102
|
+
return _validate.default;
|
|
5103
|
+
}
|
|
5104
|
+
});
|
|
5105
|
+
Object.defineProperty(exports, "version", {
|
|
5106
|
+
enumerable: true,
|
|
5107
|
+
get: function get() {
|
|
5108
|
+
return _version.default;
|
|
5109
|
+
}
|
|
5110
|
+
});
|
|
5111
|
+
var _v = _interopRequireDefault(require_v1());
|
|
5112
|
+
var _v2 = _interopRequireDefault(require_v3());
|
|
5113
|
+
var _v3 = _interopRequireDefault(require_v4());
|
|
5114
|
+
var _v4 = _interopRequireDefault(require_v5());
|
|
5115
|
+
var _nil = _interopRequireDefault(require_nil());
|
|
5116
|
+
var _version = _interopRequireDefault(require_version());
|
|
5117
|
+
var _validate = _interopRequireDefault(require_validate());
|
|
5118
|
+
var _stringify = _interopRequireDefault(require_stringify());
|
|
5119
|
+
var _parse = _interopRequireDefault(require_parse());
|
|
5120
|
+
function _interopRequireDefault(obj) {
|
|
5121
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
5122
|
+
}
|
|
5123
|
+
}
|
|
5124
|
+
});
|
|
5125
|
+
|
|
4360
5126
|
// ../utils/dist/general.js
|
|
4361
5127
|
var require_general = __commonJS({
|
|
4362
5128
|
"../utils/dist/general.js"(exports) {
|
|
@@ -4401,6 +5167,7 @@ var require_general = __commonJS({
|
|
|
4401
5167
|
exports.zip = exports.dedupAndMap = exports.deepEqual = exports.pluralize = exports.extend = exports.wrap = exports.batchify = exports.clearCachify = exports.cachify = exports.absolutizeUrl = exports.removeUndefinedProps = exports.toUriEncoding = exports.toUnAnchoredUri = exports.toString = exports.toJSON = exports.sleep = exports.jwtDecode = exports.shortid = exports.guid = exports.getEnvCaseInsensitive = exports.getEnvValue = void 0;
|
|
4402
5168
|
var buffer_1 = require_buffer();
|
|
4403
5169
|
var types20 = __importStar(require_types());
|
|
5170
|
+
var uuid_1 = require_commonjs_browser();
|
|
4404
5171
|
function getEnvValue(name, type) {
|
|
4405
5172
|
if (!process)
|
|
4406
5173
|
return void 0;
|
|
@@ -4428,11 +5195,7 @@ var require_general = __commonJS({
|
|
|
4428
5195
|
}
|
|
4429
5196
|
exports.getEnvCaseInsensitive = getEnvCaseInsensitive;
|
|
4430
5197
|
function guid() {
|
|
4431
|
-
return
|
|
4432
|
-
const r = Math.random() * 16 | 0;
|
|
4433
|
-
const v = c === "x" ? r : r & 3 | 8;
|
|
4434
|
-
return v.toString(16);
|
|
4435
|
-
});
|
|
5198
|
+
return (0, uuid_1.v4)();
|
|
4436
5199
|
}
|
|
4437
5200
|
exports.guid = guid;
|
|
4438
5201
|
function shortid() {
|
|
@@ -12115,7 +12878,7 @@ var require_templates = __commonJS({
|
|
|
12115
12878
|
["e", "\x1B"],
|
|
12116
12879
|
["a", "\x07"]
|
|
12117
12880
|
]);
|
|
12118
|
-
function
|
|
12881
|
+
function unescape2(c) {
|
|
12119
12882
|
const u = c[0] === "u";
|
|
12120
12883
|
const bracket = c[1] === "{";
|
|
12121
12884
|
if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
|
|
@@ -12135,7 +12898,7 @@ var require_templates = __commonJS({
|
|
|
12135
12898
|
if (!Number.isNaN(number)) {
|
|
12136
12899
|
results.push(number);
|
|
12137
12900
|
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
12138
|
-
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ?
|
|
12901
|
+
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape2(escape) : character));
|
|
12139
12902
|
} else {
|
|
12140
12903
|
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
12141
12904
|
}
|
|
@@ -12182,7 +12945,7 @@ var require_templates = __commonJS({
|
|
|
12182
12945
|
let chunk = [];
|
|
12183
12946
|
temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
|
|
12184
12947
|
if (escapeCharacter) {
|
|
12185
|
-
chunk.push(
|
|
12948
|
+
chunk.push(unescape2(escapeCharacter));
|
|
12186
12949
|
} else if (style) {
|
|
12187
12950
|
const string = chunk.join("");
|
|
12188
12951
|
chunk = [];
|
|
@@ -13301,7 +14064,9 @@ var require_logger = __commonJS({
|
|
|
13301
14064
|
extend(optionsOrLogger, extraOptions) {
|
|
13302
14065
|
var _a2, _b2, _c2;
|
|
13303
14066
|
const extendOptions = [options];
|
|
13304
|
-
if (utils34.types.has(optionsOrLogger, "
|
|
14067
|
+
if (utils34.types.has(optionsOrLogger, "isSpyLogger")) {
|
|
14068
|
+
return optionsOrLogger.extend(this);
|
|
14069
|
+
} else if (utils34.types.has(optionsOrLogger, "isLogger")) {
|
|
13305
14070
|
if (optionsOrLogger !== logger)
|
|
13306
14071
|
extendOptions.push({
|
|
13307
14072
|
console: optionsOrLogger.options.console,
|
|
@@ -13494,6 +14259,19 @@ var require_types5 = __commonJS({
|
|
|
13494
14259
|
}
|
|
13495
14260
|
});
|
|
13496
14261
|
|
|
14262
|
+
// ../req/dist/stop.js
|
|
14263
|
+
var stop;
|
|
14264
|
+
var init_stop = __esm({
|
|
14265
|
+
"../req/dist/stop.js"() {
|
|
14266
|
+
"use strict";
|
|
14267
|
+
init_process();
|
|
14268
|
+
init_setImmediate();
|
|
14269
|
+
init_buffer();
|
|
14270
|
+
init_setInterval();
|
|
14271
|
+
stop = Symbol("stop retry");
|
|
14272
|
+
}
|
|
14273
|
+
});
|
|
14274
|
+
|
|
13497
14275
|
// ../req/dist/fetch-browser.js
|
|
13498
14276
|
var fetch_browser_default, Request, Headers, Response;
|
|
13499
14277
|
var init_fetch_browser = __esm({
|
|
@@ -13527,19 +14305,6 @@ var init_abort_controller = __esm({
|
|
|
13527
14305
|
}
|
|
13528
14306
|
});
|
|
13529
14307
|
|
|
13530
|
-
// ../req/dist/stop.js
|
|
13531
|
-
var stop;
|
|
13532
|
-
var init_stop = __esm({
|
|
13533
|
-
"../req/dist/stop.js"() {
|
|
13534
|
-
"use strict";
|
|
13535
|
-
init_process();
|
|
13536
|
-
init_setImmediate();
|
|
13537
|
-
init_buffer();
|
|
13538
|
-
init_setInterval();
|
|
13539
|
-
stop = Symbol("stop retry");
|
|
13540
|
-
}
|
|
13541
|
-
});
|
|
13542
|
-
|
|
13543
14308
|
// ../req/dist/agent-browser.js
|
|
13544
14309
|
function makeAgent() {
|
|
13545
14310
|
return null;
|
|
@@ -13876,7 +14641,8 @@ __export(dist_exports, {
|
|
|
13876
14641
|
Response: () => Response,
|
|
13877
14642
|
default: () => req,
|
|
13878
14643
|
makeReq: () => makeReq,
|
|
13879
|
-
req: () => req
|
|
14644
|
+
req: () => req,
|
|
14645
|
+
stop: () => stop
|
|
13880
14646
|
});
|
|
13881
14647
|
var init_dist = __esm({
|
|
13882
14648
|
"../req/dist/index.js"() {
|
|
@@ -13884,6 +14650,7 @@ var init_dist = __esm({
|
|
|
13884
14650
|
init_setImmediate();
|
|
13885
14651
|
init_buffer();
|
|
13886
14652
|
init_setInterval();
|
|
14653
|
+
init_stop();
|
|
13887
14654
|
init_fetch_browser();
|
|
13888
14655
|
init_req();
|
|
13889
14656
|
init_req();
|
|
@@ -14500,7 +15267,6 @@ var require_req_eyes = __commonJS({
|
|
|
14500
15267
|
{
|
|
14501
15268
|
limit: retryLimit,
|
|
14502
15269
|
timeout: retryTimeout,
|
|
14503
|
-
statuses: [404, 502, 503, 504],
|
|
14504
15270
|
codes: [
|
|
14505
15271
|
"ECONNRESET",
|
|
14506
15272
|
"ECONNABORTED",
|
|
@@ -14510,18 +15276,14 @@ var require_req_eyes = __commonJS({
|
|
|
14510
15276
|
"EAI_AGAIN",
|
|
14511
15277
|
"STUCK_REQUEST",
|
|
14512
15278
|
"ENOMEM"
|
|
14513
|
-
]
|
|
14514
|
-
},
|
|
14515
|
-
{
|
|
14516
|
-
limit: retryLimit,
|
|
14517
|
-
timeout: retryTimeout,
|
|
15279
|
+
],
|
|
14518
15280
|
validate(options) {
|
|
14519
|
-
var _a2, _b2;
|
|
14520
|
-
return ((_a2 = options.response) === null || _a2 === void 0 ? void 0 : _a2.status)
|
|
15281
|
+
var _a2, _b2, _c2, _d;
|
|
15282
|
+
return [404, 502, 503, 504, 500].includes((_b2 = (_a2 = options === null || options === void 0 ? void 0 : options.response) === null || _a2 === void 0 ? void 0 : _a2.status) !== null && _b2 !== void 0 ? _b2 : 0) && !((_d = (_c2 = options === null || options === void 0 ? void 0 : options.response) === null || _c2 === void 0 ? void 0 : _c2.headers) === null || _d === void 0 ? void 0 : _d.get("x-applitools-dont-retry"));
|
|
14521
15283
|
}
|
|
14522
15284
|
}
|
|
14523
15285
|
],
|
|
14524
|
-
hooks: [
|
|
15286
|
+
hooks: [handleLongRequestsV2({ req: req_1.default, settings }), handleLogs({ logger }), handleUnexpectedResponse()],
|
|
14525
15287
|
fetch: fetch2
|
|
14526
15288
|
});
|
|
14527
15289
|
}
|
|
@@ -14548,10 +15310,10 @@ var require_req_eyes = __commonJS({
|
|
|
14548
15310
|
request.headers.set("x-applitools-eyes-client-request-id", `${requestId.split("#", 1)[0]}#${attempt + 1}`);
|
|
14549
15311
|
},
|
|
14550
15312
|
async afterResponse({ request, response, options }) {
|
|
14551
|
-
var _a;
|
|
15313
|
+
var _a, _b, _c;
|
|
14552
15314
|
const logger = (_a = options === null || options === void 0 ? void 0 : options.logger) !== null && _a !== void 0 ? _a : defaultLogger;
|
|
14553
15315
|
const requestId = request.headers.get("x-applitools-eyes-client-request-id");
|
|
14554
|
-
logger === null || logger === void 0 ? void 0 : logger.log(`Request "${options === null || options === void 0 ? void 0 : options.name}" [${requestId}] that was sent to the address "[${request.method}]${request.url}" respond with ${response.statusText}(${response.status})`, !response.ok ? `and body ${JSON.stringify(await response.clone().text())}` : "");
|
|
15316
|
+
logger === null || logger === void 0 ? void 0 : logger.log(`Request "${options === null || options === void 0 ? void 0 : options.name}" [${requestId}] that was sent to the address "[${request.method}]${request.url}" respond with ${response.statusText}(${response.status}), dont retry returned ${(_c = (_b = response === null || response === void 0 ? void 0 : response.headers) === null || _b === void 0 ? void 0 : _b.get("x-applitools-dont-retry")) !== null && _c !== void 0 ? _c : false}`, !response.ok ? `and body ${JSON.stringify(await response.clone().text())}` : "");
|
|
14555
15317
|
},
|
|
14556
15318
|
afterError({ request, error, options }) {
|
|
14557
15319
|
var _a;
|
|
@@ -14582,50 +15344,52 @@ var require_req_eyes = __commonJS({
|
|
|
14582
15344
|
}
|
|
14583
15345
|
};
|
|
14584
15346
|
}
|
|
14585
|
-
function
|
|
15347
|
+
function handleLongRequestsV2({ req: req2, settings }) {
|
|
14586
15348
|
return {
|
|
14587
15349
|
beforeRequest({ request }) {
|
|
14588
15350
|
request.headers.set("Eyes-Expect-Version", "2");
|
|
14589
|
-
request.headers.set("Eyes-Expect", "202+
|
|
15351
|
+
request.headers.set("Eyes-Expect", "202+result");
|
|
14590
15352
|
request.headers.set("Eyes-Date", (/* @__PURE__ */ new Date()).toUTCString());
|
|
14591
15353
|
},
|
|
14592
15354
|
async afterResponse({ response, options }) {
|
|
15355
|
+
const logger = options.logger;
|
|
15356
|
+
logger === null || logger === void 0 ? void 0 : logger.log(`Location header: ${response.headers.has("Location") ? response.headers.get("Location") : "not found"}`);
|
|
14593
15357
|
if (response.status === 202 && response.headers.has("Location")) {
|
|
14594
15358
|
if (response.headers.has("Retry-After")) {
|
|
14595
15359
|
await utils34.general.sleep(Number(response.headers.get("Retry-After")) * 1e3);
|
|
14596
15360
|
}
|
|
14597
|
-
const
|
|
14598
|
-
|
|
15361
|
+
const resultUrl = updateOriginAndPath(response.headers.get("Location"), settings.eyesServerUrl);
|
|
15362
|
+
logger === null || logger === void 0 ? void 0 : logger.log(`Polling started for location: ${resultUrl}`);
|
|
15363
|
+
const pollResponse = await req2(resultUrl, options !== null && options !== void 0 ? options : {}, {
|
|
14599
15364
|
method: "GET",
|
|
14600
15365
|
body: void 0,
|
|
14601
|
-
expected: [200, 201],
|
|
15366
|
+
expected: [200, 201, 202, 203, 204, 205, 206, 207, 208, 502, 503, 504],
|
|
14602
15367
|
retry: {
|
|
14603
|
-
|
|
14604
|
-
|
|
14605
|
-
|
|
14606
|
-
|
|
14607
|
-
|
|
14608
|
-
/* 5s */
|
|
14609
|
-
]
|
|
15368
|
+
timeout: [...Array(5).fill(1e3), ...Array(5).fill(2e3), 5e3],
|
|
15369
|
+
validate: async ({ response: response2 }) => {
|
|
15370
|
+
var _a;
|
|
15371
|
+
return !(response2 === null || response2 === void 0 ? void 0 : response2.headers.get("x-applitools-dont-retry")) && ![400, 401, 403, 500].includes((_a = response2 === null || response2 === void 0 ? void 0 : response2.status) !== null && _a !== void 0 ? _a : 400);
|
|
15372
|
+
}
|
|
14610
15373
|
},
|
|
14611
15374
|
connectionTimeout: 0,
|
|
14612
15375
|
hooks: [
|
|
14613
15376
|
{
|
|
14614
|
-
beforeRetry({ request, response: response2 }) {
|
|
14615
|
-
if (response2 && response2.status
|
|
14616
|
-
const
|
|
14617
|
-
return { request, url:
|
|
15377
|
+
beforeRetry({ request, response: response2, error: _error, attempt: _attempt }) {
|
|
15378
|
+
if (response2 && [200, 201, 202].includes(response2.status) && response2.headers.has("Location")) {
|
|
15379
|
+
const location2 = updateOriginAndPath(response2.headers.get("Location"), settings.eyesServerUrl);
|
|
15380
|
+
return { request, url: location2 };
|
|
14618
15381
|
}
|
|
15382
|
+
},
|
|
15383
|
+
afterError({ request, error, options: options2 }) {
|
|
15384
|
+
const logger2 = options2 === null || options2 === void 0 ? void 0 : options2.logger;
|
|
15385
|
+
const requestId = request.headers.get("x-applitools-eyes-client-request-id");
|
|
15386
|
+
logger2 === null || logger2 === void 0 ? void 0 : logger2.error(`Request "${options2 === null || options2 === void 0 ? void 0 : options2.name}" [${requestId}] that was sent to the address "[${request.method}]${request.url}" failed with error`, error);
|
|
14619
15387
|
}
|
|
14620
15388
|
},
|
|
14621
15389
|
handleUnexpectedResponse()
|
|
14622
15390
|
]
|
|
14623
15391
|
});
|
|
14624
|
-
|
|
14625
|
-
return await req2(resultLocation, options !== null && options !== void 0 ? options : {}, {
|
|
14626
|
-
method: "DELETE",
|
|
14627
|
-
expected: void 0
|
|
14628
|
-
});
|
|
15392
|
+
return pollResponse;
|
|
14629
15393
|
}
|
|
14630
15394
|
}
|
|
14631
15395
|
};
|
|
@@ -22952,8 +23716,8 @@ var require_browser7 = __commonJS({
|
|
|
22952
23716
|
throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11");
|
|
22953
23717
|
}
|
|
22954
23718
|
var Buffer4 = require_safe_buffer().Buffer;
|
|
22955
|
-
var
|
|
22956
|
-
if (
|
|
23719
|
+
var crypto2 = global.crypto || global.msCrypto;
|
|
23720
|
+
if (crypto2 && crypto2.getRandomValues) {
|
|
22957
23721
|
module.exports = randomBytes;
|
|
22958
23722
|
} else {
|
|
22959
23723
|
module.exports = oldBrowser;
|
|
@@ -22965,10 +23729,10 @@ var require_browser7 = __commonJS({
|
|
|
22965
23729
|
if (size > 0) {
|
|
22966
23730
|
if (size > MAX_BYTES) {
|
|
22967
23731
|
for (var generated = 0; generated < size; generated += MAX_BYTES) {
|
|
22968
|
-
|
|
23732
|
+
crypto2.getRandomValues(bytes.slice(generated, generated + MAX_BYTES));
|
|
22969
23733
|
}
|
|
22970
23734
|
} else {
|
|
22971
|
-
|
|
23735
|
+
crypto2.getRandomValues(bytes);
|
|
22972
23736
|
}
|
|
22973
23737
|
}
|
|
22974
23738
|
if (typeof cb === "function") {
|
|
@@ -23091,7 +23855,7 @@ var require_hash_base = __commonJS({
|
|
|
23091
23855
|
});
|
|
23092
23856
|
|
|
23093
23857
|
// ../../node_modules/md5.js/index.js
|
|
23094
|
-
var
|
|
23858
|
+
var require_md52 = __commonJS({
|
|
23095
23859
|
"../../node_modules/md5.js/index.js"(exports, module) {
|
|
23096
23860
|
"use strict";
|
|
23097
23861
|
init_process();
|
|
@@ -23817,7 +24581,7 @@ var require_sha = __commonJS({
|
|
|
23817
24581
|
});
|
|
23818
24582
|
|
|
23819
24583
|
// ../../node_modules/sha.js/sha1.js
|
|
23820
|
-
var
|
|
24584
|
+
var require_sha12 = __commonJS({
|
|
23821
24585
|
"../../node_modules/sha.js/sha1.js"(exports, module) {
|
|
23822
24586
|
init_process();
|
|
23823
24587
|
init_setImmediate();
|
|
@@ -24525,7 +25289,7 @@ var require_sha2 = __commonJS({
|
|
|
24525
25289
|
return new Algorithm();
|
|
24526
25290
|
};
|
|
24527
25291
|
exports.sha = require_sha();
|
|
24528
|
-
exports.sha1 =
|
|
25292
|
+
exports.sha1 = require_sha12();
|
|
24529
25293
|
exports.sha224 = require_sha224();
|
|
24530
25294
|
exports.sha256 = require_sha256();
|
|
24531
25295
|
exports.sha384 = require_sha384();
|
|
@@ -24639,7 +25403,7 @@ var require_browser8 = __commonJS({
|
|
|
24639
25403
|
init_buffer();
|
|
24640
25404
|
init_setInterval();
|
|
24641
25405
|
var inherits = require_inherits_browser();
|
|
24642
|
-
var MD5 =
|
|
25406
|
+
var MD5 = require_md52();
|
|
24643
25407
|
var RIPEMD160 = require_ripemd160();
|
|
24644
25408
|
var sha = require_sha2();
|
|
24645
25409
|
var Base = require_cipher_base();
|
|
@@ -24711,13 +25475,13 @@ var require_legacy = __commonJS({
|
|
|
24711
25475
|
});
|
|
24712
25476
|
|
|
24713
25477
|
// ../../node_modules/create-hash/md5.js
|
|
24714
|
-
var
|
|
25478
|
+
var require_md53 = __commonJS({
|
|
24715
25479
|
"../../node_modules/create-hash/md5.js"(exports, module) {
|
|
24716
25480
|
init_process();
|
|
24717
25481
|
init_setImmediate();
|
|
24718
25482
|
init_buffer();
|
|
24719
25483
|
init_setInterval();
|
|
24720
|
-
var MD5 =
|
|
25484
|
+
var MD5 = require_md52();
|
|
24721
25485
|
module.exports = function(buffer) {
|
|
24722
25486
|
return new MD5().update(buffer).digest();
|
|
24723
25487
|
};
|
|
@@ -24736,7 +25500,7 @@ var require_browser9 = __commonJS({
|
|
|
24736
25500
|
var Legacy = require_legacy();
|
|
24737
25501
|
var Base = require_cipher_base();
|
|
24738
25502
|
var Buffer4 = require_safe_buffer().Buffer;
|
|
24739
|
-
var md5 =
|
|
25503
|
+
var md5 = require_md53();
|
|
24740
25504
|
var RIPEMD160 = require_ripemd160();
|
|
24741
25505
|
var sha = require_sha2();
|
|
24742
25506
|
var ZEROS = Buffer4.alloc(128);
|
|
@@ -25029,7 +25793,7 @@ var require_sync_browser = __commonJS({
|
|
|
25029
25793
|
init_setImmediate();
|
|
25030
25794
|
init_buffer();
|
|
25031
25795
|
init_setInterval();
|
|
25032
|
-
var md5 =
|
|
25796
|
+
var md5 = require_md53();
|
|
25033
25797
|
var RIPEMD160 = require_ripemd160();
|
|
25034
25798
|
var sha = require_sha2();
|
|
25035
25799
|
var Buffer4 = require_safe_buffer().Buffer;
|
|
@@ -27363,7 +28127,7 @@ var require_evp_bytestokey = __commonJS({
|
|
|
27363
28127
|
init_buffer();
|
|
27364
28128
|
init_setInterval();
|
|
27365
28129
|
var Buffer4 = require_safe_buffer().Buffer;
|
|
27366
|
-
var MD5 =
|
|
28130
|
+
var MD5 = require_md52();
|
|
27367
28131
|
function EVP_BytesToKey(password, salt, keyBits, ivLen) {
|
|
27368
28132
|
if (!Buffer4.isBuffer(password))
|
|
27369
28133
|
password = Buffer4.from(password, "binary");
|
|
@@ -30671,16 +31435,16 @@ var require_brorand = __commonJS({
|
|
|
30671
31435
|
}
|
|
30672
31436
|
} else {
|
|
30673
31437
|
try {
|
|
30674
|
-
|
|
30675
|
-
if (typeof
|
|
31438
|
+
crypto2 = require_crypto_browserify();
|
|
31439
|
+
if (typeof crypto2.randomBytes !== "function")
|
|
30676
31440
|
throw new Error("Not supported");
|
|
30677
31441
|
Rand.prototype._rand = function _rand(n) {
|
|
30678
|
-
return
|
|
31442
|
+
return crypto2.randomBytes(n);
|
|
30679
31443
|
};
|
|
30680
31444
|
} catch (e) {
|
|
30681
31445
|
}
|
|
30682
31446
|
}
|
|
30683
|
-
var
|
|
31447
|
+
var crypto2;
|
|
30684
31448
|
}
|
|
30685
31449
|
});
|
|
30686
31450
|
|
|
@@ -44908,7 +45672,7 @@ var require_browser17 = __commonJS({
|
|
|
44908
45672
|
var randombytes = require_browser7();
|
|
44909
45673
|
var Buffer4 = safeBuffer.Buffer;
|
|
44910
45674
|
var kBufferMaxLength = safeBuffer.kMaxLength;
|
|
44911
|
-
var
|
|
45675
|
+
var crypto2 = global.crypto || global.msCrypto;
|
|
44912
45676
|
var kMaxUint32 = Math.pow(2, 32) - 1;
|
|
44913
45677
|
function assertOffset(offset, length) {
|
|
44914
45678
|
if (typeof offset !== "number" || offset !== offset) {
|
|
@@ -44932,7 +45696,7 @@ var require_browser17 = __commonJS({
|
|
|
44932
45696
|
throw new RangeError("buffer too small");
|
|
44933
45697
|
}
|
|
44934
45698
|
}
|
|
44935
|
-
if (
|
|
45699
|
+
if (crypto2 && crypto2.getRandomValues || !process.browser) {
|
|
44936
45700
|
exports.randomFill = randomFill;
|
|
44937
45701
|
exports.randomFillSync = randomFillSync;
|
|
44938
45702
|
} else {
|
|
@@ -44961,7 +45725,7 @@ var require_browser17 = __commonJS({
|
|
|
44961
45725
|
if (process.browser) {
|
|
44962
45726
|
var ourBuf = buf.buffer;
|
|
44963
45727
|
var uint = new Uint8Array(ourBuf, offset, size);
|
|
44964
|
-
|
|
45728
|
+
crypto2.getRandomValues(uint);
|
|
44965
45729
|
if (cb) {
|
|
44966
45730
|
process.nextTick(function() {
|
|
44967
45731
|
cb(null, buf);
|
|
@@ -58850,7 +59614,7 @@ ${l2}`}`, { bundledCss: i2, unfetchedResources: u2 };
|
|
|
58850
59614
|
return d4 && (N3.shadowRoot = d4), N3;
|
|
58851
59615
|
}
|
|
58852
59616
|
}(t4);
|
|
58853
|
-
d2(i2.doCaptureDoc), l2(i2.waitForImages), await Promise.all(f2), d2(i2.waitForImages), N2.version = "1.3.0", N2.scriptVersion = "11.
|
|
59617
|
+
d2(i2.doCaptureDoc), l2(i2.waitForImages), await Promise.all(f2), d2(i2.waitForImages), N2.version = "1.3.0", N2.scriptVersion = "11.6.1";
|
|
58854
59618
|
const S2 = h2.length ? `${h2.join("\n")}
|
|
58855
59619
|
` : "", A2 = m2.size ? `${Array.from(m2).join("\n")}
|
|
58856
59620
|
` : "", Y2 = JSON.stringify({ separator: y2, cssStartToken: g2, cssEndToken: g2, iframeStartToken: `"${p2}`, iframeEndToken: `${p2}"` });
|
|
@@ -65978,7 +66742,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
65978
66742
|
return t4;
|
|
65979
66743
|
};
|
|
65980
66744
|
const yu = su, ku = Lo, wu = ie, vu = wt, xu = lu, Su = pu, _u = Pt, Cu = mu, Au = cs, Eu = Is, zu = y, Lu = U, Pu = q, { tokenize: Ou, parse: Tu, generate: Ru, lexer: Bu, createLexer: Nu, walk: Iu, find: Du, findLast: Uu, findAll: Mu, toPlainObject: ju, fromPlainObject: Fu, fork: Wu } = yu;
|
|
65981
|
-
g.version = "1.
|
|
66745
|
+
g.version = "1.2.0".version, g.createSyntax = ku, g.List = wu.List, g.Lexer = vu.Lexer, g.definitionSyntax = xu, g.clone = Su.clone, g.isCustomProperty = _u.isCustomProperty, g.keyword = _u.keyword, g.property = _u.property, g.vendorPrefix = _u.vendorPrefix, g.ident = Cu, g.string = Au, g.url = Eu, g.tokenTypes = zu, g.tokenNames = Lu, g.TokenStream = Pu.TokenStream, g.createLexer = Nu, g.find = Du, g.findAll = Mu, g.findLast = Uu, g.fork = Wu, g.fromPlainObject = Fu, g.generate = Ru, g.lexer = Bu, g.parse = Tu, g.toPlainObject = ju, g.tokenize = Ou, g.walk = Iu;
|
|
65982
66746
|
var Hu = {};
|
|
65983
66747
|
const qu = /* @__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"])]]), $u = new Map([Gu("animation", "moz"), Gu("border-image", "moz"), Gu("mask", "moz"), Gu("transition", "moz"), Gu("columns", "moz"), Gu("text-stroke", "moz"), Gu("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"])]]), Vu = new Map([Gu("animation", "webkit"), Gu("border-radius", "webkit"), Gu("column-rule", "webkit"), Gu("columns", "webkit"), Gu("flex", "webkit"), Gu("flex-flow", "webkit"), Gu("mask", "webkit"), Gu("text-stroke", "webkit"), Gu("perspective-origin", "webkit"), Gu("transform-origin", "webkit"), Gu("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"])]]), Ku = ["background-position", "background-repeat", "text-decoration"];
|
|
65984
66748
|
$u.forEach((e4, t4) => qu.set(t4, e4)), Vu.forEach((e4, t4) => qu.set(t4, e4));
|
|
@@ -68935,7 +69699,7 @@ creating temp style for access.`), r2 = Am(e4);
|
|
|
68935
69699
|
function B2(e5) {
|
|
68936
69700
|
return t5.defaultView && t5.defaultView.frameElement && t5.defaultView.frameElement.getAttribute(e5);
|
|
68937
69701
|
}
|
|
68938
|
-
}(t4).then((e4) => (h2("processPage end"), e4.scriptVersion = "4.
|
|
69702
|
+
}(t4).then((e4) => (h2("processPage end"), e4.scriptVersion = "4.13.1", e4));
|
|
68939
69703
|
};
|
|
68940
69704
|
window[Sg] = window[Sg] || {};
|
|
68941
69705
|
const Ag = xg(Cg, window[Sg], _g);
|
|
@@ -75486,7 +76250,7 @@ var require_tokenizer2 = __commonJS({
|
|
|
75486
76250
|
});
|
|
75487
76251
|
|
|
75488
76252
|
// ../css-tree/cjs/definition-syntax/parse.cjs
|
|
75489
|
-
var
|
|
76253
|
+
var require_parse2 = __commonJS({
|
|
75490
76254
|
"../css-tree/cjs/definition-syntax/parse.cjs"(exports) {
|
|
75491
76255
|
"use strict";
|
|
75492
76256
|
init_process();
|
|
@@ -75942,7 +76706,7 @@ var require_match_graph = __commonJS({
|
|
|
75942
76706
|
init_setImmediate();
|
|
75943
76707
|
init_buffer();
|
|
75944
76708
|
init_setInterval();
|
|
75945
|
-
var parse =
|
|
76709
|
+
var parse = require_parse2();
|
|
75946
76710
|
var MATCH = { type: "Match" };
|
|
75947
76711
|
var MISMATCH = { type: "Mismatch" };
|
|
75948
76712
|
var DISALLOW_EMPTY = { type: "DisallowEmpty" };
|
|
@@ -77043,7 +77807,7 @@ var require_Lexer = __commonJS({
|
|
|
77043
77807
|
var trace = require_trace();
|
|
77044
77808
|
var search = require_search();
|
|
77045
77809
|
var structure = require_structure();
|
|
77046
|
-
var parse =
|
|
77810
|
+
var parse = require_parse2();
|
|
77047
77811
|
var generate = require_generate();
|
|
77048
77812
|
var walk = require_walk();
|
|
77049
77813
|
var cssWideKeywordsSyntax = matchGraph.buildMatchGraph(genericConst.cssWideKeywords.join(" | "));
|
|
@@ -82808,14 +83572,14 @@ var require_syntax2 = __commonJS({
|
|
|
82808
83572
|
});
|
|
82809
83573
|
|
|
82810
83574
|
// ../css-tree/dist/version.cjs
|
|
82811
|
-
var
|
|
83575
|
+
var require_version2 = __commonJS({
|
|
82812
83576
|
"../css-tree/dist/version.cjs"(exports, module) {
|
|
82813
83577
|
"use strict";
|
|
82814
83578
|
init_process();
|
|
82815
83579
|
init_setImmediate();
|
|
82816
83580
|
init_buffer();
|
|
82817
83581
|
init_setInterval();
|
|
82818
|
-
module.exports = "1.
|
|
83582
|
+
module.exports = "1.2.0";
|
|
82819
83583
|
}
|
|
82820
83584
|
});
|
|
82821
83585
|
|
|
@@ -82829,7 +83593,7 @@ var require_definition_syntax = __commonJS({
|
|
|
82829
83593
|
init_setInterval();
|
|
82830
83594
|
var SyntaxError2 = require_SyntaxError2();
|
|
82831
83595
|
var generate = require_generate();
|
|
82832
|
-
var parse =
|
|
83596
|
+
var parse = require_parse2();
|
|
82833
83597
|
var walk = require_walk();
|
|
82834
83598
|
exports.SyntaxError = SyntaxError2.SyntaxError;
|
|
82835
83599
|
exports.generate = generate.generate;
|
|
@@ -82947,7 +83711,7 @@ var require_cjs = __commonJS({
|
|
|
82947
83711
|
init_buffer();
|
|
82948
83712
|
init_setInterval();
|
|
82949
83713
|
var index$1 = require_syntax2();
|
|
82950
|
-
var version =
|
|
83714
|
+
var version = require_version2();
|
|
82951
83715
|
var create = require_create5();
|
|
82952
83716
|
var List = require_List();
|
|
82953
83717
|
var Lexer = require_Lexer();
|
|
@@ -91604,10 +92368,10 @@ var require_register_default_scripts = __commonJS({
|
|
|
91604
92368
|
if (utils_1.general.getEnvValue("CAPTURE_CANVAS_WITH_WEBGL", "boolean") === true) {
|
|
91605
92369
|
scripts.push({ name: "captureImagesScript", code: captureImagesScript });
|
|
91606
92370
|
}
|
|
91607
|
-
await scripts.
|
|
92371
|
+
await Promise.all(scripts.map(async (script) => {
|
|
91608
92372
|
logger.info("running user script", script.name);
|
|
91609
92373
|
await driver.addScriptToEvaluateOnNewDocument(script.code);
|
|
91610
|
-
});
|
|
92374
|
+
}));
|
|
91611
92375
|
return scripts;
|
|
91612
92376
|
} catch (error) {
|
|
91613
92377
|
logger.error(error);
|
|
@@ -93476,7 +94240,7 @@ var require_package2 = __commonJS({
|
|
|
93476
94240
|
"../core/package.json"(exports, module) {
|
|
93477
94241
|
module.exports = {
|
|
93478
94242
|
name: "@applitools/core",
|
|
93479
|
-
version: "4.
|
|
94243
|
+
version: "4.44.2",
|
|
93480
94244
|
homepage: "https://applitools.com",
|
|
93481
94245
|
bugs: {
|
|
93482
94246
|
url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -98445,7 +99209,7 @@ var require_package3 = __commonJS({
|
|
|
98445
99209
|
"../eyes/package.json"(exports, module) {
|
|
98446
99210
|
module.exports = {
|
|
98447
99211
|
name: "@applitools/eyes",
|
|
98448
|
-
version: "1.
|
|
99212
|
+
version: "1.36.0",
|
|
98449
99213
|
keywords: [
|
|
98450
99214
|
"applitools",
|
|
98451
99215
|
"eyes",
|