@applitools/eyes-browser 1.6.20 → 1.6.21
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 +47 -0
- package/dist/index.js +417 -346
- package/package.json +2 -2
- package/types/Eyes.d.ts +2 -2
- package/types/index.d.ts +1 -1
- package/types/input/Configuration.d.ts +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.6.21](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.6.20...js/eyes-browser@1.6.21) (2026-06-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/dom-snapshot bumped to 4.17.3
|
|
9
|
+
#### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* capture opaque-origin sandboxed blob iframes in UFG | FLD-4606 ([#3916](https://github.com/Applitools-Dev/sdk/issues/3916)) ([9296f7e](https://github.com/Applitools-Dev/sdk/commit/9296f7ef9fe3aa3889402009860ef5e3276f0303))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
* @applitools/snippets bumped to 2.9.3
|
|
16
|
+
#### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* capture opaque-origin sandboxed blob iframes in UFG | FLD-4606 ([#3916](https://github.com/Applitools-Dev/sdk/issues/3916)) ([9296f7e](https://github.com/Applitools-Dev/sdk/commit/9296f7ef9fe3aa3889402009860ef5e3276f0303))
|
|
19
|
+
* @applitools/core bumped to 4.65.0
|
|
20
|
+
#### Features
|
|
21
|
+
|
|
22
|
+
* add useLatestEnvBaseline to session startInfo | AD-14089 ([#3887](https://github.com/Applitools-Dev/sdk/issues/3887)) ([b15b9af](https://github.com/Applitools-Dev/sdk/commit/b15b9af34328193f6705c90a26c24aa1e4b23d1c))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
#### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* capture opaque-origin sandboxed blob iframes in UFG | FLD-4606 ([#3916](https://github.com/Applitools-Dev/sdk/issues/3916)) ([9296f7e](https://github.com/Applitools-Dev/sdk/commit/9296f7ef9fe3aa3889402009860ef5e3276f0303))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
* @applitools/driver bumped to 1.26.3
|
|
32
|
+
|
|
33
|
+
* @applitools/spec-driver-webdriver bumped to 1.6.3
|
|
34
|
+
|
|
35
|
+
* @applitools/spec-driver-selenium bumped to 1.8.3
|
|
36
|
+
|
|
37
|
+
* @applitools/spec-driver-playwright bumped to 1.9.3
|
|
38
|
+
|
|
39
|
+
* @applitools/spec-driver-puppeteer bumped to 1.8.3
|
|
40
|
+
|
|
41
|
+
* @applitools/screenshoter bumped to 3.12.22
|
|
42
|
+
|
|
43
|
+
* @applitools/nml-client bumped to 1.11.31
|
|
44
|
+
|
|
45
|
+
* @applitools/ec-client bumped to 1.12.33
|
|
46
|
+
|
|
47
|
+
* @applitools/eyes bumped to 1.43.2
|
|
48
|
+
|
|
49
|
+
|
|
3
50
|
## [1.6.20](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.6.19...js/eyes-browser@1.6.20) (2026-06-09)
|
|
4
51
|
|
|
5
52
|
|
package/dist/index.js
CHANGED
|
@@ -15377,10 +15377,26 @@ var require_Configuration = __commonJS({
|
|
|
15377
15377
|
getBaselineEnvName() {
|
|
15378
15378
|
return this.baselineEnvName;
|
|
15379
15379
|
}
|
|
15380
|
-
setBaselineEnvName(baselineEnvName) {
|
|
15380
|
+
setBaselineEnvName(baselineEnvName, options) {
|
|
15381
15381
|
this.baselineEnvName = baselineEnvName;
|
|
15382
|
+
if (options !== void 0) {
|
|
15383
|
+
utils2.guard.isObject(options, { name: "options" });
|
|
15384
|
+
if (options.useLatestEnvBaseline !== void 0) {
|
|
15385
|
+
utils2.guard.isBoolean(options.useLatestEnvBaseline, { name: "options.useLatestEnvBaseline" });
|
|
15386
|
+
}
|
|
15387
|
+
this._config.baselineEnvOptions = options;
|
|
15388
|
+
}
|
|
15382
15389
|
return this;
|
|
15383
15390
|
}
|
|
15391
|
+
/** @internal */
|
|
15392
|
+
get baselineEnvOptions() {
|
|
15393
|
+
return this._config.baselineEnvOptions;
|
|
15394
|
+
}
|
|
15395
|
+
/** @internal */
|
|
15396
|
+
set baselineEnvOptions(baselineEnvOptions) {
|
|
15397
|
+
utils2.guard.isObject(baselineEnvOptions, { name: "baselineEnvOptions" });
|
|
15398
|
+
this._config.baselineEnvOptions = baselineEnvOptions;
|
|
15399
|
+
}
|
|
15384
15400
|
get batch() {
|
|
15385
15401
|
return this._config.batch;
|
|
15386
15402
|
}
|
|
@@ -16392,6 +16408,7 @@ var require_Configuration = __commonJS({
|
|
|
16392
16408
|
properties: this.properties,
|
|
16393
16409
|
batch: this.batch,
|
|
16394
16410
|
baselineEnvName: this.baselineEnvName,
|
|
16411
|
+
baselineEnvOptions: this._config.baselineEnvOptions,
|
|
16395
16412
|
environmentName: this.environmentName,
|
|
16396
16413
|
environment: utils2.general.removeUndefinedProps({
|
|
16397
16414
|
hostingApp: this.hostApp,
|
|
@@ -29154,7 +29171,7 @@ var require_requests = __commonJS({
|
|
|
29154
29171
|
return makeFunctionalSessionRequests({ core, test, req: req2, logger });
|
|
29155
29172
|
}
|
|
29156
29173
|
async function openCheckAndClose({ target, settings, logger = mainLogger }) {
|
|
29157
|
-
var _a, _b, _c, _d, _f, _g, _h, _j, _k;
|
|
29174
|
+
var _a, _b, _c, _d, _f, _g, _h, _j, _k, _l;
|
|
29158
29175
|
const req2 = (0, req_eyes_1.makeReqEyes)({ settings, fetch: fetch2, logger });
|
|
29159
29176
|
logger.log('Request "openCheckAndClose" called with settings', settings);
|
|
29160
29177
|
const account = await getAccountInfoWithCache({ settings, logger });
|
|
@@ -29213,6 +29230,7 @@ var require_requests = __commonJS({
|
|
|
29213
29230
|
}),
|
|
29214
29231
|
environmentName: settings.environmentName,
|
|
29215
29232
|
baselineEnvName: settings.baselineEnvName,
|
|
29233
|
+
useLatestEnvBaseline: (_l = settings.baselineEnvOptions) === null || _l === void 0 ? void 0 : _l.useLatestEnvBaseline,
|
|
29216
29234
|
branchName: settings.branchName,
|
|
29217
29235
|
parentBranchName: settings.parentBranchName,
|
|
29218
29236
|
baselineBranchName: settings.baselineBranchName,
|
|
@@ -29996,7 +30014,7 @@ var require_requests = __commonJS({
|
|
|
29996
30014
|
}
|
|
29997
30015
|
exports.makeFunctionalSessionRequests = makeFunctionalSessionRequests;
|
|
29998
30016
|
function toStartInfo({ settings }) {
|
|
29999
|
-
var _a, _b, _c, _d, _f, _g, _h, _j, _k;
|
|
30017
|
+
var _a, _b, _c, _d, _f, _g, _h, _j, _k, _l;
|
|
30000
30018
|
return {
|
|
30001
30019
|
agentId: settings.agentId,
|
|
30002
30020
|
agentSessionId: settings.userTestId,
|
|
@@ -30033,6 +30051,7 @@ var require_requests = __commonJS({
|
|
|
30033
30051
|
}),
|
|
30034
30052
|
environmentName: settings.environmentName,
|
|
30035
30053
|
baselineEnvName: settings.baselineEnvName,
|
|
30054
|
+
useLatestEnvBaseline: (_l = settings.baselineEnvOptions) === null || _l === void 0 ? void 0 : _l.useLatestEnvBaseline,
|
|
30036
30055
|
branchName: settings.branchName,
|
|
30037
30056
|
parentBranchName: settings.parentBranchName,
|
|
30038
30057
|
baselineBranchName: settings.baselineBranchName,
|
|
@@ -75656,52 +75675,57 @@ var require_dist3 = __commonJS({
|
|
|
75656
75675
|
var s = function() {
|
|
75657
75676
|
"use strict";
|
|
75658
75677
|
return function() {
|
|
75659
|
-
var t = function(t2, n2,
|
|
75660
|
-
return (
|
|
75661
|
-
var
|
|
75662
|
-
var o4 = void 0 === t4 ? [] : t4,
|
|
75663
|
-
|
|
75664
|
-
|
|
75678
|
+
var t = function(t2, n2, r2) {
|
|
75679
|
+
return (o2 = function(t3) {
|
|
75680
|
+
var r3 = (void 0 === t3 ? [] : t3)[0], o3 = function(t4) {
|
|
75681
|
+
var r4, o4 = void 0 === t4 ? [] : t4, e2 = o4[0], i2 = o4[1], a2 = void 0 === i2 ? [] : i2;
|
|
75682
|
+
try {
|
|
75683
|
+
r4 = n2.getComputedStyle(e2);
|
|
75684
|
+
} catch (t5) {
|
|
75685
|
+
return [];
|
|
75686
|
+
}
|
|
75687
|
+
return r4 && "function" == typeof r4.getPropertyValue ? a2.map(function(t5) {
|
|
75688
|
+
return r4.getPropertyValue(t5);
|
|
75665
75689
|
}) : [];
|
|
75666
|
-
}([
|
|
75667
|
-
return ("scroll" ===
|
|
75668
|
-
}) &&
|
|
75669
|
-
var
|
|
75690
|
+
}([r3, ["overflow-x", "overflow-y", "overflow"]]);
|
|
75691
|
+
return ("scroll" === o3[0] || "auto" === o3[0] || "hidden" === o3[2]) && r3.scrollWidth > r3.clientWidth || ("scroll" === o3[1] || "auto" === o3[1] || "hidden" === o3[2]) && r3.scrollHeight > r3.clientHeight;
|
|
75692
|
+
}) && o2.__esModule && Object.prototype.hasOwnProperty.call(o2, "default") ? o2.default : o2;
|
|
75693
|
+
var o2;
|
|
75670
75694
|
}, n = true;
|
|
75671
75695
|
try {
|
|
75672
|
-
var
|
|
75673
|
-
if (
|
|
75674
|
-
for (var
|
|
75675
|
-
o2
|
|
75676
|
-
return
|
|
75696
|
+
var r = function t2(n2) {
|
|
75697
|
+
if (c.Array.isArray(n2)) {
|
|
75698
|
+
for (var r2 = new c.Array(n2.length), o2 = 0; o2 < n2.length; o2++)
|
|
75699
|
+
r2[o2] = t2(n2[o2]);
|
|
75700
|
+
return r2;
|
|
75677
75701
|
}
|
|
75678
75702
|
if (n2 && "object" == typeof n2 && Object.getPrototypeOf(n2) === Object.prototype) {
|
|
75679
|
-
var e2 = new
|
|
75703
|
+
var e2 = new c.Object();
|
|
75680
75704
|
for (var i2 in n2)
|
|
75681
75705
|
Object.prototype.hasOwnProperty.call(n2, i2) && (e2[i2] = t2(n2[i2]));
|
|
75682
75706
|
return e2;
|
|
75683
75707
|
}
|
|
75684
75708
|
return n2;
|
|
75685
|
-
},
|
|
75686
|
-
|
|
75687
|
-
var e = Math.floor(4294967296 * Math.random()), i =
|
|
75688
|
-
i.textContent = "window['ctor-" + e + "'] = " + t.toString() + ";",
|
|
75689
|
-
var a =
|
|
75690
|
-
if (delete
|
|
75709
|
+
}, o = window.__applitools_sandbox;
|
|
75710
|
+
o || ((o = document.createElement("iframe")).setAttribute("data-applitools-sandbox", ""), o.setAttribute("data-applitools-skip", ""), document.head.appendChild(o), window.__applitools_sandbox = o);
|
|
75711
|
+
var e = Math.floor(4294967296 * Math.random()), i = o.contentDocument.createElement("script");
|
|
75712
|
+
i.textContent = "window['ctor-" + e + "'] = " + t.toString() + ";", o.contentDocument.head.appendChild(i);
|
|
75713
|
+
var a = o.contentWindow["ctor-" + e];
|
|
75714
|
+
if (delete o.contentWindow["ctor-" + e], "function" != typeof a)
|
|
75691
75715
|
throw new Error("Sandbox failed to extract function");
|
|
75692
75716
|
n = false;
|
|
75693
|
-
var
|
|
75694
|
-
|
|
75717
|
+
var c = o.contentWindow, d = c.__EYES__APPLITOOLS__ = c.__EYES__APPLITOOLS__ || {};
|
|
75718
|
+
d._stringify || (d._stringify = c.JSON.stringify.bind(c.JSON));
|
|
75695
75719
|
var l = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
|
|
75696
|
-
l._stringify && l._stringify !== JSON.stringify || (l._stringify =
|
|
75697
|
-
for (var
|
|
75698
|
-
_
|
|
75699
|
-
return a(document, window,
|
|
75700
|
-
} catch (
|
|
75720
|
+
l._stringify && l._stringify !== JSON.stringify || (l._stringify = c.JSON.stringify.bind(c.JSON));
|
|
75721
|
+
for (var u = new c.Array(arguments.length), _ = 0; _ < arguments.length; _++)
|
|
75722
|
+
u[_] = r(_ < 0 || arguments.length <= _ ? void 0 : arguments[_]);
|
|
75723
|
+
return a(document, window, c).apply(void 0, u);
|
|
75724
|
+
} catch (r2) {
|
|
75701
75725
|
try {
|
|
75702
75726
|
return t(document, window, window).apply(void 0, arguments);
|
|
75703
75727
|
} catch (t2) {
|
|
75704
|
-
throw n ? t2 :
|
|
75728
|
+
throw n ? t2 : r2;
|
|
75705
75729
|
}
|
|
75706
75730
|
}
|
|
75707
75731
|
};
|
|
@@ -75984,17 +76008,17 @@ var require_dist3 = __commonJS({
|
|
|
75984
76008
|
var s = function() {
|
|
75985
76009
|
"use strict";
|
|
75986
76010
|
return function() {
|
|
75987
|
-
var t = function(t2, r2,
|
|
75988
|
-
return (
|
|
75989
|
-
var
|
|
75990
|
-
var r4 = void 0 === t3 ? [] : t3,
|
|
75991
|
-
return
|
|
75992
|
-
return t4[r5] = { value:
|
|
75993
|
-
}, {});
|
|
75994
|
-
}([void 0 ===
|
|
75995
|
-
var
|
|
75996
|
-
if (
|
|
75997
|
-
var o3 =
|
|
76011
|
+
var t = function(t2, r2, e2) {
|
|
76012
|
+
return (n2 = function(r3) {
|
|
76013
|
+
var e3 = (void 0 === r3 ? [] : r3)[0], n3 = function(t3) {
|
|
76014
|
+
var r4 = void 0 === t3 ? [] : t3, e4 = r4[0], n4 = r4[1], o3 = void 0 === n4 ? [] : n4, i2 = e4.style;
|
|
76015
|
+
return i2 && "function" == typeof i2.getPropertyValue ? o3.reduce(function(t4, r5) {
|
|
76016
|
+
return t4[r5] = { value: i2.getPropertyValue(r5), important: Boolean(i2.getPropertyPriority(r5)) }, t4;
|
|
76017
|
+
}, {}) : {};
|
|
76018
|
+
}([void 0 === e3 ? t2.documentElement : e3, ["transform", "-webkit-transform"]]), o2 = Object.keys(n3).reduce(function(t3, r4) {
|
|
76019
|
+
var e4 = n3[r4].value;
|
|
76020
|
+
if (e4) {
|
|
76021
|
+
var o3 = e4.match(/^translate\s*\(\s*(\-?[\d, \.]+)px\s*(,\s*(-?[\d, \.]+)px)?\s*\)/);
|
|
75998
76022
|
if (o3) {
|
|
75999
76023
|
var i2 = o3[1], a2 = void 0 !== o3[3] ? o3[3] : 0;
|
|
76000
76024
|
t3.push({ x: Math.round(-parseFloat(i2)), y: Math.round(-parseFloat(a2)) });
|
|
@@ -76008,15 +76032,15 @@ var require_dist3 = __commonJS({
|
|
|
76008
76032
|
}))
|
|
76009
76033
|
throw new Error("Got different css positions!");
|
|
76010
76034
|
return o2[0] || { x: 0, y: 0 };
|
|
76011
|
-
}) &&
|
|
76012
|
-
var
|
|
76035
|
+
}) && n2.__esModule && Object.prototype.hasOwnProperty.call(n2, "default") ? n2.default : n2;
|
|
76036
|
+
var n2;
|
|
76013
76037
|
}, r = true;
|
|
76014
76038
|
try {
|
|
76015
|
-
var
|
|
76039
|
+
var e = function t2(r2) {
|
|
76016
76040
|
if (d.Array.isArray(r2)) {
|
|
76017
|
-
for (var
|
|
76018
|
-
n2
|
|
76019
|
-
return
|
|
76041
|
+
for (var e2 = new d.Array(r2.length), n2 = 0; n2 < r2.length; n2++)
|
|
76042
|
+
e2[n2] = t2(r2[n2]);
|
|
76043
|
+
return e2;
|
|
76020
76044
|
}
|
|
76021
76045
|
if (r2 && "object" == typeof r2 && Object.getPrototypeOf(r2) === Object.prototype) {
|
|
76022
76046
|
var o2 = new d.Object();
|
|
@@ -76025,26 +76049,26 @@ var require_dist3 = __commonJS({
|
|
|
76025
76049
|
return o2;
|
|
76026
76050
|
}
|
|
76027
76051
|
return r2;
|
|
76028
|
-
},
|
|
76029
|
-
|
|
76030
|
-
var o = Math.floor(4294967296 * Math.random()), i =
|
|
76031
|
-
i.textContent = "window['ctor-" + o + "'] = " + t.toString() + ";",
|
|
76032
|
-
var a =
|
|
76033
|
-
if (delete
|
|
76052
|
+
}, n = window.__applitools_sandbox;
|
|
76053
|
+
n || ((n = document.createElement("iframe")).setAttribute("data-applitools-sandbox", ""), n.setAttribute("data-applitools-skip", ""), document.head.appendChild(n), window.__applitools_sandbox = n);
|
|
76054
|
+
var o = Math.floor(4294967296 * Math.random()), i = n.contentDocument.createElement("script");
|
|
76055
|
+
i.textContent = "window['ctor-" + o + "'] = " + t.toString() + ";", n.contentDocument.head.appendChild(i);
|
|
76056
|
+
var a = n.contentWindow["ctor-" + o];
|
|
76057
|
+
if (delete n.contentWindow["ctor-" + o], "function" != typeof a)
|
|
76034
76058
|
throw new Error("Sandbox failed to extract function");
|
|
76035
76059
|
r = false;
|
|
76036
|
-
var d =
|
|
76060
|
+
var d = n.contentWindow, c = d.__EYES__APPLITOOLS__ = d.__EYES__APPLITOOLS__ || {};
|
|
76037
76061
|
c._stringify || (c._stringify = d.JSON.stringify.bind(d.JSON));
|
|
76038
|
-
var
|
|
76039
|
-
|
|
76040
|
-
for (var
|
|
76041
|
-
|
|
76042
|
-
return a(document, window, d).apply(void 0,
|
|
76043
|
-
} catch (
|
|
76062
|
+
var u = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
|
|
76063
|
+
u._stringify && u._stringify !== JSON.stringify || (u._stringify = d.JSON.stringify.bind(d.JSON));
|
|
76064
|
+
for (var s2 = new d.Array(arguments.length), f = 0; f < arguments.length; f++)
|
|
76065
|
+
s2[f] = e(f < 0 || arguments.length <= f ? void 0 : arguments[f]);
|
|
76066
|
+
return a(document, window, d).apply(void 0, s2);
|
|
76067
|
+
} catch (e2) {
|
|
76044
76068
|
try {
|
|
76045
76069
|
return t(document, window, window).apply(void 0, arguments);
|
|
76046
76070
|
} catch (t2) {
|
|
76047
|
-
throw r ? t2 :
|
|
76071
|
+
throw r ? t2 : e2;
|
|
76048
76072
|
}
|
|
76049
76073
|
}
|
|
76050
76074
|
};
|
|
@@ -76057,22 +76081,22 @@ var require_dist3 = __commonJS({
|
|
|
76057
76081
|
return function() {
|
|
76058
76082
|
var t = function(t2, n2, r2) {
|
|
76059
76083
|
return (e2 = function(t3) {
|
|
76060
|
-
var n3 = void 0 === t3 ? [] : t3, r3 = n3[0], e3 = n3[1];
|
|
76061
|
-
return
|
|
76062
|
-
return t4[n4] = { value:
|
|
76063
|
-
}, {});
|
|
76084
|
+
var n3 = void 0 === t3 ? [] : t3, r3 = n3[0], e3 = n3[1], o2 = void 0 === e3 ? [] : e3, i2 = r3.style;
|
|
76085
|
+
return i2 && "function" == typeof i2.getPropertyValue ? o2.reduce(function(t4, n4) {
|
|
76086
|
+
return t4[n4] = { value: i2.getPropertyValue(n4), important: Boolean(i2.getPropertyPriority(n4)) }, t4;
|
|
76087
|
+
}, {}) : {};
|
|
76064
76088
|
}) && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
|
|
76065
76089
|
var e2;
|
|
76066
76090
|
}, n = true;
|
|
76067
76091
|
try {
|
|
76068
76092
|
var r = function t2(n2) {
|
|
76069
|
-
if (
|
|
76070
|
-
for (var r2 = new
|
|
76093
|
+
if (c.Array.isArray(n2)) {
|
|
76094
|
+
for (var r2 = new c.Array(n2.length), e2 = 0; e2 < n2.length; e2++)
|
|
76071
76095
|
r2[e2] = t2(n2[e2]);
|
|
76072
76096
|
return r2;
|
|
76073
76097
|
}
|
|
76074
76098
|
if (n2 && "object" == typeof n2 && Object.getPrototypeOf(n2) === Object.prototype) {
|
|
76075
|
-
var o2 = new
|
|
76099
|
+
var o2 = new c.Object();
|
|
76076
76100
|
for (var i2 in n2)
|
|
76077
76101
|
Object.prototype.hasOwnProperty.call(n2, i2) && (o2[i2] = t2(n2[i2]));
|
|
76078
76102
|
return o2;
|
|
@@ -76086,13 +76110,13 @@ var require_dist3 = __commonJS({
|
|
|
76086
76110
|
if (delete e.contentWindow["ctor-" + o], "function" != typeof a)
|
|
76087
76111
|
throw new Error("Sandbox failed to extract function");
|
|
76088
76112
|
n = false;
|
|
76089
|
-
var
|
|
76090
|
-
|
|
76113
|
+
var c = e.contentWindow, d = c.__EYES__APPLITOOLS__ = c.__EYES__APPLITOOLS__ || {};
|
|
76114
|
+
d._stringify || (d._stringify = c.JSON.stringify.bind(c.JSON));
|
|
76091
76115
|
var _ = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
|
|
76092
|
-
_._stringify && _._stringify !== JSON.stringify || (_._stringify =
|
|
76093
|
-
for (var l = new
|
|
76116
|
+
_._stringify && _._stringify !== JSON.stringify || (_._stringify = c.JSON.stringify.bind(c.JSON));
|
|
76117
|
+
for (var l = new c.Array(arguments.length), p = 0; p < arguments.length; p++)
|
|
76094
76118
|
l[p] = r(p < 0 || arguments.length <= p ? void 0 : arguments[p]);
|
|
76095
|
-
return a(document, window,
|
|
76119
|
+
return a(document, window, c).apply(void 0, l);
|
|
76096
76120
|
} catch (r2) {
|
|
76097
76121
|
try {
|
|
76098
76122
|
return t(document, window, window).apply(void 0, arguments);
|
|
@@ -76163,10 +76187,10 @@ var require_dist3 = __commonJS({
|
|
|
76163
76187
|
return function() {
|
|
76164
76188
|
var r3 = function(e3) {
|
|
76165
76189
|
var r4 = (void 0 === e3 ? [] : e3)[0], n3 = void 0 === r4 ? t2.documentElement : r4, o2 = function(t3) {
|
|
76166
|
-
var e4 = void 0 === t3 ? [] : t3, r5 = e4[0], n4 = e4[1];
|
|
76167
|
-
return
|
|
76168
|
-
return t4[e5] = { value:
|
|
76169
|
-
}, {});
|
|
76190
|
+
var e4 = void 0 === t3 ? [] : t3, r5 = e4[0], n4 = e4[1], o3 = void 0 === n4 ? [] : n4, i3 = r5.style;
|
|
76191
|
+
return i3 && "function" == typeof i3.getPropertyValue ? o3.reduce(function(t4, e5) {
|
|
76192
|
+
return t4[e5] = { value: i3.getPropertyValue(e5), important: Boolean(i3.getPropertyPriority(e5)) }, t4;
|
|
76193
|
+
}, {}) : {};
|
|
76170
76194
|
}([n3, ["transform", "-webkit-transform"]]), i2 = Object.keys(o2).reduce(function(t3, e4) {
|
|
76171
76195
|
var r5 = o2[e4].value;
|
|
76172
76196
|
if (r5) {
|
|
@@ -76194,44 +76218,54 @@ var require_dist3 = __commonJS({
|
|
|
76194
76218
|
return function(t3) {
|
|
76195
76219
|
return t3 && t3.__esModule && Object.prototype.hasOwnProperty.call(t3, "default") ? t3.default : t3;
|
|
76196
76220
|
}(function(r4) {
|
|
76197
|
-
var o2 = void 0 === r4 ? [] : r4, i2 = o2[0], a2 = o2[1],
|
|
76198
|
-
if (i2 === t2.documentElement ||
|
|
76221
|
+
var o2 = void 0 === r4 ? [] : r4, i2 = o2[0], a2 = o2[1], u2 = void 0 !== a2 && a2, f2 = "string" == typeof i2.tagName ? i2.tagName.toLowerCase() : "";
|
|
76222
|
+
if (i2 === t2.documentElement || f2 === function() {
|
|
76199
76223
|
var e3 = "HTML", r5 = t2.scrollingElement;
|
|
76200
76224
|
return r5 && (e3 = r5.tagName), e3.toLowerCase();
|
|
76201
76225
|
}())
|
|
76202
76226
|
return { x: 0, y: 0, width: i2.clientWidth, height: i2.clientHeight };
|
|
76203
|
-
var
|
|
76204
|
-
if (
|
|
76205
|
-
var
|
|
76206
|
-
|
|
76227
|
+
var c2 = "function" == typeof i2.getBoundingClientRect ? i2.getBoundingClientRect() : { left: 0, top: 0, width: 0, height: 0 }, l2 = { x: c2.left, y: c2.top, width: c2.width, height: c2.height };
|
|
76228
|
+
if (u2) {
|
|
76229
|
+
var d2;
|
|
76230
|
+
try {
|
|
76231
|
+
d2 = e2.getComputedStyle(i2);
|
|
76232
|
+
} catch (r5) {
|
|
76233
|
+
d2 = null;
|
|
76234
|
+
}
|
|
76235
|
+
d2 && "function" == typeof d2.getPropertyValue && (l2.x += parseInt(d2.getPropertyValue("border-left-width")), l2.y += parseInt(d2.getPropertyValue("border-top-width"))), l2.width = i2.clientWidth, l2.height = i2.clientHeight;
|
|
76207
76236
|
}
|
|
76208
|
-
var
|
|
76209
|
-
for (var n3 = (void 0 === r5 ? [] : r5)[0];
|
|
76210
|
-
|
|
76211
|
-
|
|
76237
|
+
var s2 = function(r5) {
|
|
76238
|
+
for (var n3, o3 = (void 0 === r5 ? [] : r5)[0]; o3.offsetParent && o3.offsetParent !== t2.body && o3.offsetParent !== t2.documentElement; )
|
|
76239
|
+
o3 = o3.offsetParent;
|
|
76240
|
+
try {
|
|
76241
|
+
n3 = e2.getComputedStyle(o3);
|
|
76242
|
+
} catch (r6) {
|
|
76243
|
+
return null;
|
|
76244
|
+
}
|
|
76245
|
+
return n3 && "function" == typeof n3.getPropertyValue && "fixed" === n3.getPropertyValue("position") ? o3 : null;
|
|
76212
76246
|
}([i2]);
|
|
76213
|
-
if (
|
|
76214
|
-
if (
|
|
76215
|
-
var
|
|
76216
|
-
|
|
76247
|
+
if (s2) {
|
|
76248
|
+
if (s2 !== i2) {
|
|
76249
|
+
var y = n2([s2]);
|
|
76250
|
+
l2.x += y.x, l2.y += y.y;
|
|
76217
76251
|
}
|
|
76218
76252
|
} else {
|
|
76219
|
-
var
|
|
76220
|
-
|
|
76253
|
+
var p = n2();
|
|
76254
|
+
l2.x += p.x, l2.y += p.y;
|
|
76221
76255
|
}
|
|
76222
|
-
return
|
|
76256
|
+
return l2;
|
|
76223
76257
|
});
|
|
76224
76258
|
}();
|
|
76225
76259
|
}, e = true;
|
|
76226
76260
|
try {
|
|
76227
76261
|
var r = function t2(e2) {
|
|
76228
|
-
if (
|
|
76229
|
-
for (var r2 = new
|
|
76262
|
+
if (u.Array.isArray(e2)) {
|
|
76263
|
+
for (var r2 = new u.Array(e2.length), n2 = 0; n2 < e2.length; n2++)
|
|
76230
76264
|
r2[n2] = t2(e2[n2]);
|
|
76231
76265
|
return r2;
|
|
76232
76266
|
}
|
|
76233
76267
|
if (e2 && "object" == typeof e2 && Object.getPrototypeOf(e2) === Object.prototype) {
|
|
76234
|
-
var o2 = new
|
|
76268
|
+
var o2 = new u.Object();
|
|
76235
76269
|
for (var i2 in e2)
|
|
76236
76270
|
Object.prototype.hasOwnProperty.call(e2, i2) && (o2[i2] = t2(e2[i2]));
|
|
76237
76271
|
return o2;
|
|
@@ -76245,13 +76279,13 @@ var require_dist3 = __commonJS({
|
|
|
76245
76279
|
if (delete n.contentWindow["ctor-" + o], "function" != typeof a)
|
|
76246
76280
|
throw new Error("Sandbox failed to extract function");
|
|
76247
76281
|
e = false;
|
|
76248
|
-
var
|
|
76249
|
-
|
|
76250
|
-
var
|
|
76251
|
-
|
|
76252
|
-
for (var l = new
|
|
76253
|
-
l[
|
|
76254
|
-
return a(document, window,
|
|
76282
|
+
var u = n.contentWindow, f = u.__EYES__APPLITOOLS__ = u.__EYES__APPLITOOLS__ || {};
|
|
76283
|
+
f._stringify || (f._stringify = u.JSON.stringify.bind(u.JSON));
|
|
76284
|
+
var c = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
|
|
76285
|
+
c._stringify && c._stringify !== JSON.stringify || (c._stringify = u.JSON.stringify.bind(u.JSON));
|
|
76286
|
+
for (var l = new u.Array(arguments.length), d = 0; d < arguments.length; d++)
|
|
76287
|
+
l[d] = r(d < 0 || arguments.length <= d ? void 0 : arguments[d]);
|
|
76288
|
+
return a(document, window, u).apply(void 0, l);
|
|
76255
76289
|
} catch (r2) {
|
|
76256
76290
|
try {
|
|
76257
76291
|
return t(document, window, window).apply(void 0, arguments);
|
|
@@ -76323,10 +76357,10 @@ var require_dist3 = __commonJS({
|
|
|
76323
76357
|
var t = function(t2, r2, e2) {
|
|
76324
76358
|
return o2 = function(r3) {
|
|
76325
76359
|
var e3 = (void 0 === r3 ? [] : r3)[0], n3 = void 0 === e3 ? t2.documentElement : e3, o3 = function(t3) {
|
|
76326
|
-
var r4 = void 0 === t3 ? [] : t3, e4 = r4[0], n4 = r4[1];
|
|
76327
|
-
return
|
|
76328
|
-
return t4[r5] = { value:
|
|
76329
|
-
}, {});
|
|
76360
|
+
var r4 = void 0 === t3 ? [] : t3, e4 = r4[0], n4 = r4[1], o4 = void 0 === n4 ? [] : n4, i3 = e4.style;
|
|
76361
|
+
return i3 && "function" == typeof i3.getPropertyValue ? o4.reduce(function(t4, r5) {
|
|
76362
|
+
return t4[r5] = { value: i3.getPropertyValue(r5), important: Boolean(i3.getPropertyPriority(r5)) }, t4;
|
|
76363
|
+
}, {}) : {};
|
|
76330
76364
|
}([n3, ["transform", "-webkit-transform"]]), i2 = Object.keys(o3).reduce(function(t3, r4) {
|
|
76331
76365
|
var e4 = o3[r4].value;
|
|
76332
76366
|
if (e4) {
|
|
@@ -76379,8 +76413,8 @@ var require_dist3 = __commonJS({
|
|
|
76379
76413
|
d._stringify || (d._stringify = c.JSON.stringify.bind(c.JSON));
|
|
76380
76414
|
var s2 = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
|
|
76381
76415
|
s2._stringify && s2._stringify !== JSON.stringify || (s2._stringify = c.JSON.stringify.bind(c.JSON));
|
|
76382
|
-
for (var u = new c.Array(arguments.length),
|
|
76383
|
-
u[
|
|
76416
|
+
for (var u = new c.Array(arguments.length), f = 0; f < arguments.length; f++)
|
|
76417
|
+
u[f] = e(f < 0 || arguments.length <= f ? void 0 : arguments[f]);
|
|
76384
76418
|
return a(document, window, c).apply(void 0, u);
|
|
76385
76419
|
} catch (e2) {
|
|
76386
76420
|
try {
|
|
@@ -76397,48 +76431,53 @@ var require_dist3 = __commonJS({
|
|
|
76397
76431
|
var s = function() {
|
|
76398
76432
|
"use strict";
|
|
76399
76433
|
return function() {
|
|
76400
|
-
var t = function(t2,
|
|
76401
|
-
return (
|
|
76402
|
-
for (var
|
|
76403
|
-
|
|
76404
|
-
|
|
76405
|
-
|
|
76406
|
-
|
|
76407
|
-
|
|
76434
|
+
var t = function(t2, e2, n2) {
|
|
76435
|
+
return (r2 = function(n3) {
|
|
76436
|
+
for (var r3, o2 = (void 0 === n3 ? [] : n3)[0]; o2.offsetParent && o2.offsetParent !== t2.body && o2.offsetParent !== t2.documentElement; )
|
|
76437
|
+
o2 = o2.offsetParent;
|
|
76438
|
+
try {
|
|
76439
|
+
r3 = e2.getComputedStyle(o2);
|
|
76440
|
+
} catch (n4) {
|
|
76441
|
+
return null;
|
|
76442
|
+
}
|
|
76443
|
+
return r3 && "function" == typeof r3.getPropertyValue && "fixed" === r3.getPropertyValue("position") ? o2 : null;
|
|
76444
|
+
}) && r2.__esModule && Object.prototype.hasOwnProperty.call(r2, "default") ? r2.default : r2;
|
|
76445
|
+
var r2;
|
|
76446
|
+
}, e = true;
|
|
76408
76447
|
try {
|
|
76409
|
-
var
|
|
76410
|
-
if (d.Array.isArray(
|
|
76411
|
-
for (var
|
|
76412
|
-
|
|
76413
|
-
return
|
|
76448
|
+
var n = function t2(e2) {
|
|
76449
|
+
if (d.Array.isArray(e2)) {
|
|
76450
|
+
for (var n2 = new d.Array(e2.length), r2 = 0; r2 < e2.length; r2++)
|
|
76451
|
+
n2[r2] = t2(e2[r2]);
|
|
76452
|
+
return n2;
|
|
76414
76453
|
}
|
|
76415
|
-
if (
|
|
76416
|
-
var
|
|
76417
|
-
for (var i2 in
|
|
76418
|
-
Object.prototype.hasOwnProperty.call(
|
|
76419
|
-
return
|
|
76454
|
+
if (e2 && "object" == typeof e2 && Object.getPrototypeOf(e2) === Object.prototype) {
|
|
76455
|
+
var o2 = new d.Object();
|
|
76456
|
+
for (var i2 in e2)
|
|
76457
|
+
Object.prototype.hasOwnProperty.call(e2, i2) && (o2[i2] = t2(e2[i2]));
|
|
76458
|
+
return o2;
|
|
76420
76459
|
}
|
|
76421
|
-
return
|
|
76422
|
-
},
|
|
76423
|
-
|
|
76424
|
-
var
|
|
76425
|
-
i.textContent = "window['ctor-" +
|
|
76426
|
-
var a =
|
|
76427
|
-
if (delete
|
|
76460
|
+
return e2;
|
|
76461
|
+
}, r = window.__applitools_sandbox;
|
|
76462
|
+
r || ((r = document.createElement("iframe")).setAttribute("data-applitools-sandbox", ""), r.setAttribute("data-applitools-skip", ""), document.head.appendChild(r), window.__applitools_sandbox = r);
|
|
76463
|
+
var o = Math.floor(4294967296 * Math.random()), i = r.contentDocument.createElement("script");
|
|
76464
|
+
i.textContent = "window['ctor-" + o + "'] = " + t.toString() + ";", r.contentDocument.head.appendChild(i);
|
|
76465
|
+
var a = r.contentWindow["ctor-" + o];
|
|
76466
|
+
if (delete r.contentWindow["ctor-" + o], "function" != typeof a)
|
|
76428
76467
|
throw new Error("Sandbox failed to extract function");
|
|
76429
|
-
|
|
76430
|
-
var d =
|
|
76468
|
+
e = false;
|
|
76469
|
+
var d = r.contentWindow, c = d.__EYES__APPLITOOLS__ = d.__EYES__APPLITOOLS__ || {};
|
|
76431
76470
|
c._stringify || (c._stringify = d.JSON.stringify.bind(d.JSON));
|
|
76432
76471
|
var f = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
|
|
76433
76472
|
f._stringify && f._stringify !== JSON.stringify || (f._stringify = d.JSON.stringify.bind(d.JSON));
|
|
76434
|
-
for (var
|
|
76435
|
-
_
|
|
76436
|
-
return a(document, window, d).apply(void 0,
|
|
76437
|
-
} catch (
|
|
76473
|
+
for (var l = new d.Array(arguments.length), _ = 0; _ < arguments.length; _++)
|
|
76474
|
+
l[_] = n(_ < 0 || arguments.length <= _ ? void 0 : arguments[_]);
|
|
76475
|
+
return a(document, window, d).apply(void 0, l);
|
|
76476
|
+
} catch (n2) {
|
|
76438
76477
|
try {
|
|
76439
76478
|
return t(document, window, window).apply(void 0, arguments);
|
|
76440
76479
|
} catch (t2) {
|
|
76441
|
-
throw
|
|
76480
|
+
throw e ? t2 : n2;
|
|
76442
76481
|
}
|
|
76443
76482
|
}
|
|
76444
76483
|
};
|
|
@@ -76449,39 +76488,39 @@ var require_dist3 = __commonJS({
|
|
|
76449
76488
|
var s = function() {
|
|
76450
76489
|
"use strict";
|
|
76451
76490
|
return function() {
|
|
76452
|
-
var t = function(t2,
|
|
76491
|
+
var t = function(t2, e2, r2) {
|
|
76453
76492
|
return o2 = function(t3) {
|
|
76454
|
-
var
|
|
76455
|
-
return t4[
|
|
76493
|
+
var e3 = void 0 === t3 ? [] : t3, r3 = e3[0], n3 = e3[1], o3 = Object.keys(n3).sort(), i2 = o3.reduce(function(t4, e4) {
|
|
76494
|
+
return t4[e4] = { value: r3.style.getPropertyValue(e4), important: Boolean(r3.style.getPropertyPriority(e4)) }, t4;
|
|
76456
76495
|
}, {});
|
|
76457
76496
|
return o3.forEach(function(t4) {
|
|
76458
|
-
|
|
76497
|
+
r3.style.setProperty(t4, "string" != typeof n3[t4] && n3[t4] ? n3[t4].value : n3[t4], n3[t4] && n3[t4].important ? "important" : "");
|
|
76459
76498
|
}), i2;
|
|
76460
|
-
}, (n2 = function(
|
|
76461
|
-
var
|
|
76462
|
-
n3 !== t2.documentElement &&
|
|
76463
|
-
var
|
|
76464
|
-
return
|
|
76465
|
-
}() || (
|
|
76466
|
-
var
|
|
76467
|
-
return
|
|
76499
|
+
}, (n2 = function(e3) {
|
|
76500
|
+
var r3, n3 = (void 0 === e3 ? [] : e3)[0], i2 = "string" == typeof n3.tagName ? n3.tagName.toLowerCase() : "";
|
|
76501
|
+
n3 !== t2.documentElement && i2 !== function() {
|
|
76502
|
+
var e4 = "HTML", r4 = t2.scrollingElement;
|
|
76503
|
+
return r4 && (e4 = r4.tagName), e4.toLowerCase();
|
|
76504
|
+
}() || (r3 = o2([n3, { transform: "none" }]));
|
|
76505
|
+
var a2 = { width: n3.scrollWidth, height: n3.scrollHeight };
|
|
76506
|
+
return r3 && o2([n3, r3]), a2;
|
|
76468
76507
|
}) && n2.__esModule && Object.prototype.hasOwnProperty.call(n2, "default") ? n2.default : n2;
|
|
76469
76508
|
var n2, o2;
|
|
76470
|
-
},
|
|
76509
|
+
}, e = true;
|
|
76471
76510
|
try {
|
|
76472
|
-
var
|
|
76473
|
-
if (c.Array.isArray(
|
|
76474
|
-
for (var
|
|
76475
|
-
|
|
76476
|
-
return
|
|
76511
|
+
var r = function t2(e2) {
|
|
76512
|
+
if (c.Array.isArray(e2)) {
|
|
76513
|
+
for (var r2 = new c.Array(e2.length), n2 = 0; n2 < e2.length; n2++)
|
|
76514
|
+
r2[n2] = t2(e2[n2]);
|
|
76515
|
+
return r2;
|
|
76477
76516
|
}
|
|
76478
|
-
if (
|
|
76517
|
+
if (e2 && "object" == typeof e2 && Object.getPrototypeOf(e2) === Object.prototype) {
|
|
76479
76518
|
var o2 = new c.Object();
|
|
76480
|
-
for (var i2 in
|
|
76481
|
-
Object.prototype.hasOwnProperty.call(
|
|
76519
|
+
for (var i2 in e2)
|
|
76520
|
+
Object.prototype.hasOwnProperty.call(e2, i2) && (o2[i2] = t2(e2[i2]));
|
|
76482
76521
|
return o2;
|
|
76483
76522
|
}
|
|
76484
|
-
return
|
|
76523
|
+
return e2;
|
|
76485
76524
|
}, n = window.__applitools_sandbox;
|
|
76486
76525
|
n || ((n = document.createElement("iframe")).setAttribute("data-applitools-sandbox", ""), n.setAttribute("data-applitools-skip", ""), document.head.appendChild(n), window.__applitools_sandbox = n);
|
|
76487
76526
|
var o = Math.floor(4294967296 * Math.random()), i = n.contentDocument.createElement("script");
|
|
@@ -76489,19 +76528,19 @@ var require_dist3 = __commonJS({
|
|
|
76489
76528
|
var a = n.contentWindow["ctor-" + o];
|
|
76490
76529
|
if (delete n.contentWindow["ctor-" + o], "function" != typeof a)
|
|
76491
76530
|
throw new Error("Sandbox failed to extract function");
|
|
76492
|
-
|
|
76531
|
+
e = false;
|
|
76493
76532
|
var c = n.contentWindow, d = c.__EYES__APPLITOOLS__ = c.__EYES__APPLITOOLS__ || {};
|
|
76494
76533
|
d._stringify || (d._stringify = c.JSON.stringify.bind(c.JSON));
|
|
76495
76534
|
var l = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
|
|
76496
76535
|
l._stringify && l._stringify !== JSON.stringify || (l._stringify = c.JSON.stringify.bind(c.JSON));
|
|
76497
76536
|
for (var s2 = new c.Array(arguments.length), u = 0; u < arguments.length; u++)
|
|
76498
|
-
s2[u] =
|
|
76537
|
+
s2[u] = r(u < 0 || arguments.length <= u ? void 0 : arguments[u]);
|
|
76499
76538
|
return a(document, window, c).apply(void 0, s2);
|
|
76500
|
-
} catch (
|
|
76539
|
+
} catch (r2) {
|
|
76501
76540
|
try {
|
|
76502
76541
|
return t(document, window, window).apply(void 0, arguments);
|
|
76503
76542
|
} catch (t2) {
|
|
76504
|
-
throw
|
|
76543
|
+
throw e ? t2 : r2;
|
|
76505
76544
|
}
|
|
76506
76545
|
}
|
|
76507
76546
|
};
|
|
@@ -76514,22 +76553,27 @@ var require_dist3 = __commonJS({
|
|
|
76514
76553
|
return function() {
|
|
76515
76554
|
var t = function(t2, n2, r2) {
|
|
76516
76555
|
return (e2 = function(t3) {
|
|
76517
|
-
var r3 = void 0 === t3 ? [] : t3,
|
|
76518
|
-
|
|
76519
|
-
|
|
76556
|
+
var r3, e3 = void 0 === t3 ? [] : t3, o2 = e3[0], i2 = e3[1], a2 = void 0 === i2 ? [] : i2;
|
|
76557
|
+
try {
|
|
76558
|
+
r3 = n2.getComputedStyle(o2);
|
|
76559
|
+
} catch (t4) {
|
|
76560
|
+
return [];
|
|
76561
|
+
}
|
|
76562
|
+
return r3 && "function" == typeof r3.getPropertyValue ? a2.map(function(t4) {
|
|
76563
|
+
return r3.getPropertyValue(t4);
|
|
76520
76564
|
}) : [];
|
|
76521
76565
|
}) && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
|
|
76522
76566
|
var e2;
|
|
76523
76567
|
}, n = true;
|
|
76524
76568
|
try {
|
|
76525
76569
|
var r = function t2(n2) {
|
|
76526
|
-
if (
|
|
76527
|
-
for (var r2 = new
|
|
76570
|
+
if (c.Array.isArray(n2)) {
|
|
76571
|
+
for (var r2 = new c.Array(n2.length), e2 = 0; e2 < n2.length; e2++)
|
|
76528
76572
|
r2[e2] = t2(n2[e2]);
|
|
76529
76573
|
return r2;
|
|
76530
76574
|
}
|
|
76531
76575
|
if (n2 && "object" == typeof n2 && Object.getPrototypeOf(n2) === Object.prototype) {
|
|
76532
|
-
var o2 = new
|
|
76576
|
+
var o2 = new c.Object();
|
|
76533
76577
|
for (var i2 in n2)
|
|
76534
76578
|
Object.prototype.hasOwnProperty.call(n2, i2) && (o2[i2] = t2(n2[i2]));
|
|
76535
76579
|
return o2;
|
|
@@ -76543,13 +76587,13 @@ var require_dist3 = __commonJS({
|
|
|
76543
76587
|
if (delete e.contentWindow["ctor-" + o], "function" != typeof a)
|
|
76544
76588
|
throw new Error("Sandbox failed to extract function");
|
|
76545
76589
|
n = false;
|
|
76546
|
-
var
|
|
76547
|
-
|
|
76590
|
+
var c = e.contentWindow, d = c.__EYES__APPLITOOLS__ = c.__EYES__APPLITOOLS__ || {};
|
|
76591
|
+
d._stringify || (d._stringify = c.JSON.stringify.bind(c.JSON));
|
|
76548
76592
|
var _ = window.__EYES__APPLITOOLS__ = window.__EYES__APPLITOOLS__ || {};
|
|
76549
|
-
_._stringify && _._stringify !== JSON.stringify || (_._stringify =
|
|
76550
|
-
for (var p = new
|
|
76551
|
-
p[
|
|
76552
|
-
return a(document, window,
|
|
76593
|
+
_._stringify && _._stringify !== JSON.stringify || (_._stringify = c.JSON.stringify.bind(c.JSON));
|
|
76594
|
+
for (var p = new c.Array(arguments.length), u = 0; u < arguments.length; u++)
|
|
76595
|
+
p[u] = r(u < 0 || arguments.length <= u ? void 0 : arguments[u]);
|
|
76596
|
+
return a(document, window, c).apply(void 0, p);
|
|
76553
76597
|
} catch (r2) {
|
|
76554
76598
|
try {
|
|
76555
76599
|
return t(document, window, window).apply(void 0, arguments);
|
|
@@ -102519,6 +102563,8 @@ var require_processPagePollCjs = __commonJS({
|
|
|
102519
102563
|
}
|
|
102520
102564
|
function ql(e3) {
|
|
102521
102565
|
let t3 = [];
|
|
102566
|
+
if (!e3 || "function" != typeof e3.getPropertyValue)
|
|
102567
|
+
return t3;
|
|
102522
102568
|
for (let n3 = 0, r2 = e3.length; n3 < r2; n3++) {
|
|
102523
102569
|
const r3 = e3[n3];
|
|
102524
102570
|
let o2 = e3.getPropertyValue(r3);
|
|
@@ -102533,8 +102579,11 @@ var require_processPagePollCjs = __commonJS({
|
|
|
102533
102579
|
const { ownerDocument: t3 } = e3;
|
|
102534
102580
|
if (!t3)
|
|
102535
102581
|
return true;
|
|
102536
|
-
const
|
|
102537
|
-
|
|
102582
|
+
const n3 = t3.defaultView.getComputedStyle(e3);
|
|
102583
|
+
if (!n3 || "string" != typeof n3.display)
|
|
102584
|
+
return false;
|
|
102585
|
+
const { display: r2 } = n3, { width: o2, height: i2 } = e3.getBoundingClientRect();
|
|
102586
|
+
return "none" === r2 || 0 === o2 || 0 === i2;
|
|
102538
102587
|
}
|
|
102539
102588
|
function Zl(e3) {
|
|
102540
102589
|
try {
|
|
@@ -102598,166 +102647,186 @@ var require_processPagePollCjs = __commonJS({
|
|
|
102598
102647
|
}), r3;
|
|
102599
102648
|
}
|
|
102600
102649
|
function p2(e4, r3, f2) {
|
|
102601
|
-
|
|
102602
|
-
|
|
102603
|
-
|
|
102604
|
-
|
|
102605
|
-
|
|
102606
|
-
|
|
102607
|
-
|
|
102608
|
-
|
|
102609
|
-
|
|
102610
|
-
|
|
102611
|
-
|
|
102612
|
-
|
|
102613
|
-
|
|
102614
|
-
|
|
102615
|
-
|
|
102616
|
-
|
|
102617
|
-
|
|
102618
|
-
|
|
102619
|
-
|
|
102620
|
-
|
|
102621
|
-
|
|
102622
|
-
|
|
102623
|
-
|
|
102624
|
-
|
|
102625
|
-
|
|
102626
|
-
|
|
102627
|
-
|
|
102628
|
-
|
|
102629
|
-
|
|
102630
|
-
|
|
102631
|
-
|
|
102650
|
+
try {
|
|
102651
|
+
return function(e5, r4, f3) {
|
|
102652
|
+
var g2;
|
|
102653
|
+
const b2 = Yl(r4);
|
|
102654
|
+
let y2;
|
|
102655
|
+
if ([Node.ELEMENT_NODE, Node.DOCUMENT_FRAGMENT_NODE].includes(b2.nodeType)) {
|
|
102656
|
+
if (b2.hasAttribute && b2.hasAttribute("data-applitools-skip"))
|
|
102657
|
+
return null;
|
|
102658
|
+
if (["LINK", "STYLE", "SOURCE"].includes(b2.nodeName) && (null === (g2 = b2.media) || void 0 === g2 ? void 0 : g2.trim()) && !Zl(b2.media))
|
|
102659
|
+
return null;
|
|
102660
|
+
if ("SCRIPT" === b2.nodeName)
|
|
102661
|
+
y2 = function(e6) {
|
|
102662
|
+
return { nodeType: Node.ELEMENT_NODE, nodeName: "SCRIPT", attributes: Ql(e6).map((t4) => {
|
|
102663
|
+
const n4 = e6.attributes[t4].name;
|
|
102664
|
+
return { name: n4, value: Jl.test(n4) ? "" : e6.attributes[t4].value };
|
|
102665
|
+
}).filter((e7) => "src" !== e7.name), childNodeIndexes: [] };
|
|
102666
|
+
}(b2);
|
|
102667
|
+
else {
|
|
102668
|
+
const c3 = b2.shadowRoot && b2.shadowRoot.childNodes.length && "ShadowRoot" !== b2.shadowRoot.constructor.name;
|
|
102669
|
+
if (y2 = function(e6) {
|
|
102670
|
+
var t4, n4, r5;
|
|
102671
|
+
const o3 = { nodeType: e6.nodeType, nodeName: e6.nodeName, attributes: Ql(e6).map((t5) => {
|
|
102672
|
+
let n5 = e6.attributes[t5].value;
|
|
102673
|
+
const r6 = e6.attributes[t5].name;
|
|
102674
|
+
return !n5.includes("blob:") || "IFRAME" === e6.nodeName && "src" === r6 && m(e6) ? Jl.test(r6) ? n5 = "" : "IFRAME" === e6.nodeName && m(e6) && "src" === r6 && "about:blank" !== e6.contentDocument.location.href && e6.contentDocument.location.href !== w(n5, e6.ownerDocument.location.href) ? n5 = e6.contentDocument.location.href : "style" === r6 && (n5 = function(e7) {
|
|
102675
|
+
const t6 = { type: "DeclarationList", children: yl(e7) };
|
|
102676
|
+
return Qs(t6);
|
|
102677
|
+
}(e6.style)) : n5 = n5.replace(/blob:/g, ""), { name: r6, value: n5 };
|
|
102678
|
+
}) };
|
|
102679
|
+
if ("INPUT" === e6.tagName && ["checkbox", "radio"].includes(e6.type)) {
|
|
102680
|
+
if (e6.attributes.getNamedItem("checked") && !e6.checked) {
|
|
102681
|
+
const e7 = o3.attributes.findIndex((e8) => "checked" === e8.name);
|
|
102682
|
+
o3.attributes.splice(e7, 1);
|
|
102683
|
+
}
|
|
102684
|
+
!e6.attributes.getNamedItem("checked") && e6.checked && o3.attributes.push({ name: "checked" }), e6.indeterminate && o3.attributes.push({ name: "data-applitools-js-properties", value: JSON.stringify({ indeterminate: true }) });
|
|
102685
|
+
}
|
|
102686
|
+
if ("INPUT" === e6.tagName && Gl.has(e6.type)) {
|
|
102687
|
+
const i3 = null !== e6.attributes.getNamedItem("value"), a3 = null !== (n4 = null === (t4 = e6.attributes.getNamedItem("value")) || void 0 === t4 ? void 0 : t4.value) && void 0 !== n4 ? n4 : "", s3 = null !== (r5 = e6.value) && void 0 !== r5 ? r5 : "";
|
|
102688
|
+
i3 && a3 === s3 || ec(o3.attributes, "value", s3);
|
|
102689
|
+
}
|
|
102690
|
+
return "OPTION" === e6.tagName && e6.parentElement && e6.parentElement.selectedOptions && Array.from(e6.parentElement.selectedOptions).indexOf(Yl.unwrap(e6)) > -1 && ec(o3.attributes, "selected", ""), "STYLE" === e6.tagName && e6.sheet && e6.sheet.disabled && o3.attributes.push({ name: "data-applitools-disabled", value: "" }), "LINK" === e6.tagName && "text/css" === e6.type && e6.sheet && e6.sheet.disabled && ec(o3.attributes, "disabled", ""), o3;
|
|
102691
|
+
}(b2), "STYLE" === b2.nodeName && b2.sheet && b2.sheet.cssRules.length ? (e5.push(function(e6, t4, n4) {
|
|
102692
|
+
const r5 = (o3 = e6, function(e7) {
|
|
102693
|
+
return t5 = function(e8) {
|
|
102694
|
+
const t6 = e8.length, n5 = [1732584193, -271733879, -1732584194, 271733878];
|
|
102695
|
+
let r6;
|
|
102696
|
+
for (r6 = 64; r6 <= e8.length; r6 += 64)
|
|
102697
|
+
Nl(n5, Bl(e8.substring(r6 - 64, r6)));
|
|
102698
|
+
e8 = e8.substring(r6 - 64);
|
|
102699
|
+
const o4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
102700
|
+
for (r6 = 0; r6 < e8.length; r6++)
|
|
102701
|
+
o4[r6 >> 2] |= e8.charCodeAt(r6) << (r6 % 4 << 3);
|
|
102702
|
+
if (o4[r6 >> 2] |= 128 << (r6 % 4 << 3), r6 > 55)
|
|
102703
|
+
for (Nl(n5, o4), r6 = 0; r6 < 16; r6++)
|
|
102704
|
+
o4[r6] = 0;
|
|
102705
|
+
return o4[14] = 8 * t6, Nl(n5, o4), n5;
|
|
102706
|
+
}(e7), t5.map(Ml).join("");
|
|
102707
|
+
var t5;
|
|
102708
|
+
}(Array.prototype.map.call(o3.sheet.cssRules, (e7) => e7.cssText).join("")));
|
|
102709
|
+
var o3;
|
|
102710
|
+
return n4.__dsNodeCache && n4.__dsNodeCache.key === r5 ? t4.log("[domNodesToCdt] using cache for inline css of", Tl(e6)) : n4.__dsNodeCache = { key: r5, value: Ll(e6, t4) }, { nodeType: Node.TEXT_NODE, nodeValue: n4.__dsNodeCache.value };
|
|
102711
|
+
}(b2, n3, r4)), y2.childNodeIndexes = [e5.length - 1]) : "TEXTAREA" === b2.tagName && b2.value !== b2.textContent ? (e5.push(function(e6) {
|
|
102712
|
+
return { nodeType: Node.TEXT_NODE, nodeValue: e6.value };
|
|
102713
|
+
}(b2)), y2.childNodeIndexes = [e5.length - 1]) : y2.childNodeIndexes = !c3 && b2.childNodes.length ? d2(e5, b2.childNodes, f3) : [], f3 && "SLOT" === b2.tagName && "function" == typeof b2.assignedNodes) {
|
|
102714
|
+
const t4 = b2.assignedNodes();
|
|
102715
|
+
t4.length && (y2.childNodeIndexes = d2(e5, t4, f3) || []);
|
|
102632
102716
|
}
|
|
102633
|
-
|
|
102634
|
-
|
|
102635
|
-
|
|
102636
|
-
const i3 = null !== e5.attributes.getNamedItem("value"), a3 = null !== (n4 = null === (t4 = e5.attributes.getNamedItem("value")) || void 0 === t4 ? void 0 : t4.value) && void 0 !== n4 ? n4 : "", s3 = null !== (r4 = e5.value) && void 0 !== r4 ? r4 : "";
|
|
102637
|
-
i3 && a3 === s3 || ec(o3.attributes, "value", s3);
|
|
102638
|
-
}
|
|
102639
|
-
return "OPTION" === e5.tagName && e5.parentElement && e5.parentElement.selectedOptions && Array.from(e5.parentElement.selectedOptions).indexOf(Yl.unwrap(e5)) > -1 && ec(o3.attributes, "selected", ""), "STYLE" === e5.tagName && e5.sheet && e5.sheet.disabled && o3.attributes.push({ name: "data-applitools-disabled", value: "" }), "LINK" === e5.tagName && "text/css" === e5.type && e5.sheet && e5.sheet.disabled && ec(o3.attributes, "disabled", ""), o3;
|
|
102640
|
-
}(b2), "STYLE" === b2.nodeName && b2.sheet && b2.sheet.cssRules.length ? (e4.push(function(e5, t4, n4) {
|
|
102641
|
-
const r4 = (o3 = e5, function(e6) {
|
|
102642
|
-
return t5 = function(e7) {
|
|
102643
|
-
const t6 = e7.length, n5 = [1732584193, -271733879, -1732584194, 271733878];
|
|
102644
|
-
let r5;
|
|
102645
|
-
for (r5 = 64; r5 <= e7.length; r5 += 64)
|
|
102646
|
-
Nl(n5, Bl(e7.substring(r5 - 64, r5)));
|
|
102647
|
-
e7 = e7.substring(r5 - 64);
|
|
102648
|
-
const o4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
102649
|
-
for (r5 = 0; r5 < e7.length; r5++)
|
|
102650
|
-
o4[r5 >> 2] |= e7.charCodeAt(r5) << (r5 % 4 << 3);
|
|
102651
|
-
if (o4[r5 >> 2] |= 128 << (r5 % 4 << 3), r5 > 55)
|
|
102652
|
-
for (Nl(n5, o4), r5 = 0; r5 < 16; r5++)
|
|
102653
|
-
o4[r5] = 0;
|
|
102654
|
-
return o4[14] = 8 * t6, Nl(n5, o4), n5;
|
|
102655
|
-
}(e6), t5.map(Ml).join("");
|
|
102656
|
-
var t5;
|
|
102657
|
-
}(Array.prototype.map.call(o3.sheet.cssRules, (e6) => e6.cssText).join("")));
|
|
102658
|
-
var o3;
|
|
102659
|
-
return n4.__dsNodeCache && n4.__dsNodeCache.key === r4 ? t4.log("[domNodesToCdt] using cache for inline css of", Tl(e5)) : n4.__dsNodeCache = { key: r4, value: Ll(e5, t4) }, { nodeType: Node.TEXT_NODE, nodeValue: n4.__dsNodeCache.value };
|
|
102660
|
-
}(b2, n3, r3)), y2.childNodeIndexes = [e4.length - 1]) : "TEXTAREA" === b2.tagName && b2.value !== b2.textContent ? (e4.push(function(e5) {
|
|
102661
|
-
return { nodeType: Node.TEXT_NODE, nodeValue: e5.value };
|
|
102662
|
-
}(b2)), y2.childNodeIndexes = [e4.length - 1]) : y2.childNodeIndexes = !c3 && b2.childNodes.length ? d2(e4, b2.childNodes, f2) : [], f2 && "SLOT" === b2.tagName && "function" == typeof b2.assignedNodes) {
|
|
102663
|
-
const t4 = b2.assignedNodes();
|
|
102664
|
-
t4.length && (y2.childNodeIndexes = d2(e4, t4, f2) || []);
|
|
102665
|
-
}
|
|
102666
|
-
if (b2.shadowRoot && (c3 ? y2.childNodeIndexes = y2.childNodeIndexes.concat(d2(e4, b2.shadowRoot.childNodes, true)) : (y2.shadowRootIndex = p2(e4, b2.shadowRoot), o2.push(b2.shadowRoot))), "CANVAS" === b2.nodeName && !Vl(r3)) {
|
|
102667
|
-
const e5 = w(`applitools-canvas-${z()}.png`, t3);
|
|
102668
|
-
y2.attributes.push({ name: "data-applitools-src", value: e5 }), i2.push({ element: b2, cdtNode: y2, url: e5 });
|
|
102669
|
-
}
|
|
102670
|
-
if ("IFRAME" === b2.nodeName) {
|
|
102671
|
-
const n4 = z();
|
|
102672
|
-
if (b2.setAttribute("data-applitools-selector", n4.toString()), Vl(r3))
|
|
102673
|
-
y2.attributes.forEach((e5) => {
|
|
102674
|
-
"src" !== e5.name && "srcdoc" !== e5.name || (y2.attributes.push({ name: `data-applitools-original-${e5.name}`, value: e5.value }), e5.value = "");
|
|
102675
|
-
});
|
|
102676
|
-
else if (m(r3))
|
|
102677
|
-
if (x(b2)) {
|
|
102678
|
-
const e5 = w(`?applitools-iframe=${z()}`, t3);
|
|
102679
|
-
y2.attributes.push({ name: "data-applitools-src", value: e5 }), a2.push({ element: b2, url: e5 });
|
|
102680
|
-
} else {
|
|
102681
|
-
const e5 = b2.contentDocument.location.href, t4 = w(`?applitools-iframe=${z()}`, e5);
|
|
102682
|
-
y2.attributes.push({ name: "data-applitools-src", value: t4 }), s2.push({ element: b2, url: t4 });
|
|
102717
|
+
if (b2.shadowRoot && (c3 ? y2.childNodeIndexes = y2.childNodeIndexes.concat(d2(e5, b2.shadowRoot.childNodes, true)) : (y2.shadowRootIndex = p2(e5, b2.shadowRoot), o2.push(b2.shadowRoot))), "CANVAS" === b2.nodeName && !Vl(r4)) {
|
|
102718
|
+
const e6 = w(`applitools-canvas-${z()}.png`, t3);
|
|
102719
|
+
y2.attributes.push({ name: "data-applitools-src", value: e6 }), i2.push({ element: b2, cdtNode: y2, url: e6 });
|
|
102683
102720
|
}
|
|
102684
|
-
|
|
102685
|
-
|
|
102686
|
-
|
|
102687
|
-
|
|
102688
|
-
|
|
102689
|
-
|
|
102690
|
-
|
|
102691
|
-
|
|
102692
|
-
|
|
102693
|
-
|
|
102694
|
-
|
|
102695
|
-
|
|
102696
|
-
|
|
102697
|
-
|
|
102698
|
-
|
|
102699
|
-
|
|
102700
|
-
|
|
102701
|
-
;
|
|
102702
|
-
return r5;
|
|
102703
|
-
}($l, t5, (e6) => e6[1]));
|
|
102704
|
-
}
|
|
102705
|
-
if (t4('img[src],source[src],input[type="image"][src],audio[src],video[src]')) {
|
|
102706
|
-
const t5 = e5.getAttribute("src");
|
|
102707
|
-
n5.push(t5);
|
|
102708
|
-
}
|
|
102709
|
-
if (t4("image,use")) {
|
|
102710
|
-
const t5 = e5.getAttribute("href") || e5.getAttribute("xlink:href");
|
|
102711
|
-
t5 && !function(e6, t6) {
|
|
102712
|
-
try {
|
|
102713
|
-
const n6 = new URL(t6), r5 = new URL(e6, t6);
|
|
102714
|
-
return r5.origin === n6.origin && r5.pathname === n6.pathname && Boolean(r5.hash);
|
|
102715
|
-
} catch (e7) {
|
|
102716
|
-
return false;
|
|
102721
|
+
if ("IFRAME" === b2.nodeName) {
|
|
102722
|
+
const n4 = z();
|
|
102723
|
+
if (b2.setAttribute("data-applitools-selector", n4.toString()), Vl(r4))
|
|
102724
|
+
y2.attributes.forEach((e6) => {
|
|
102725
|
+
"src" !== e6.name && "srcdoc" !== e6.name || (y2.attributes.push({ name: `data-applitools-original-${e6.name}`, value: e6.value }), e6.value = "");
|
|
102726
|
+
});
|
|
102727
|
+
else if (m(r4))
|
|
102728
|
+
if (x(b2)) {
|
|
102729
|
+
const e6 = w(`?applitools-iframe=${z()}`, t3);
|
|
102730
|
+
y2.attributes.push({ name: "data-applitools-src", value: e6 }), a2.push({ element: b2, url: e6 });
|
|
102731
|
+
} else {
|
|
102732
|
+
const e6 = b2.contentDocument.location.href, t4 = w(`?applitools-iframe=${z()}`, e6);
|
|
102733
|
+
y2.attributes.push({ name: "data-applitools-src", value: t4 }), s2.push({ element: b2, url: t4 });
|
|
102734
|
+
}
|
|
102735
|
+
else {
|
|
102736
|
+
const t4 = `[data-applitools-selector="${n4}"]`;
|
|
102737
|
+
l2.push({ selector: t4, index: e5.length });
|
|
102717
102738
|
}
|
|
102718
|
-
}
|
|
102719
|
-
|
|
102720
|
-
if (t4("object") && e5.getAttribute("data") && n5.push(e5.getAttribute("data")), t4('link[rel~="stylesheet"], link[as="stylesheet"]')) {
|
|
102721
|
-
const t5 = e5.getAttribute("href");
|
|
102722
|
-
n5.push(t5);
|
|
102739
|
+
}
|
|
102740
|
+
b2.adoptedStyleSheets && b2.adoptedStyleSheets.length > 0 && (y2.exp_adoptedStyleSheets = tc(b2, n3));
|
|
102723
102741
|
}
|
|
102724
|
-
if (
|
|
102725
|
-
const
|
|
102726
|
-
|
|
102742
|
+
if (b2.nodeType === Node.ELEMENT_NODE) {
|
|
102743
|
+
const n4 = function(e6) {
|
|
102744
|
+
const t4 = (e6.matches || e6.msMatchesSelector).bind(e6);
|
|
102745
|
+
let n5 = [];
|
|
102746
|
+
if (t4("img[srcset],source[srcset]")) {
|
|
102747
|
+
const t5 = e6.getAttribute("srcset");
|
|
102748
|
+
n5 = n5.concat(function(e7, t6, n6) {
|
|
102749
|
+
const r6 = [], o3 = new RegExp(e7.source, e7.flags), i3 = o3.global;
|
|
102750
|
+
let a3;
|
|
102751
|
+
for (; (a3 = o3.exec(t6)) && (r6.push(n6(a3)), i3); )
|
|
102752
|
+
;
|
|
102753
|
+
return r6;
|
|
102754
|
+
}($l, t5, (e7) => e7[1]));
|
|
102755
|
+
}
|
|
102756
|
+
if (t4('img[src],source[src],input[type="image"][src],audio[src],video[src]')) {
|
|
102757
|
+
const t5 = e6.getAttribute("src");
|
|
102758
|
+
n5.push(t5);
|
|
102759
|
+
}
|
|
102760
|
+
if (t4("image,use")) {
|
|
102761
|
+
const t5 = e6.getAttribute("href") || e6.getAttribute("xlink:href");
|
|
102762
|
+
t5 && !function(e7, t6) {
|
|
102763
|
+
try {
|
|
102764
|
+
const n6 = new URL(t6), r6 = new URL(e7, t6);
|
|
102765
|
+
return r6.origin === n6.origin && r6.pathname === n6.pathname && Boolean(r6.hash);
|
|
102766
|
+
} catch (e8) {
|
|
102767
|
+
return false;
|
|
102768
|
+
}
|
|
102769
|
+
}(t5, e6.ownerDocument.location.href) && n5.push(t5);
|
|
102770
|
+
}
|
|
102771
|
+
if (t4("object") && e6.getAttribute("data") && n5.push(e6.getAttribute("data")), t4('link[rel~="stylesheet"], link[as="stylesheet"]')) {
|
|
102772
|
+
const t5 = e6.getAttribute("href");
|
|
102773
|
+
n5.push(t5);
|
|
102774
|
+
}
|
|
102775
|
+
if (t4("video[poster]")) {
|
|
102776
|
+
const t5 = e6.getAttribute("poster");
|
|
102777
|
+
n5.push(t5);
|
|
102778
|
+
}
|
|
102779
|
+
if (t4("embed[src]")) {
|
|
102780
|
+
const t5 = e6.getAttribute("src");
|
|
102781
|
+
n5.push(t5);
|
|
102782
|
+
}
|
|
102783
|
+
const r5 = function(e7) {
|
|
102784
|
+
if (e7.hasAttribute("style"))
|
|
102785
|
+
return ql(e7.style);
|
|
102786
|
+
}(e6);
|
|
102787
|
+
return r5 && (n5 = n5.concat(r5)), n5;
|
|
102788
|
+
}(b2);
|
|
102789
|
+
if (n4.length > 0 && (c2 = c2.concat(n4)), "IMG" === b2.tagName && /^blob:/.test(b2.src)) {
|
|
102790
|
+
const e6 = b2.src.replace(/^blob:/, "");
|
|
102791
|
+
u2.push({ element: b2, cdtNode: y2, url: e6 });
|
|
102792
|
+
}
|
|
102793
|
+
if ("VIDEO" === b2.tagName && (/^blob:/.test(b2.src) || b2.srcObject)) {
|
|
102794
|
+
let n5;
|
|
102795
|
+
if (b2.src) {
|
|
102796
|
+
if (n5 = b2.src.replace(/^blob:/, ""), y2.attributes = y2.attributes.filter((e6) => "src" !== e6.name), !y2.childNodeIndexes.some((t4) => "SOURCE" === e5[t4].nodeName)) {
|
|
102797
|
+
const t4 = { nodeType: Node.ELEMENT_NODE, nodeName: "SOURCE", attributes: [{ name: "src", value: b2.src.replace(/^blob:/, "") }], childNodeIndexes: [] };
|
|
102798
|
+
e5.push(t4), y2.childNodeIndexes.push(e5.length - 1);
|
|
102799
|
+
}
|
|
102800
|
+
} else
|
|
102801
|
+
n5 = w(`applitools-video-${z()}.webm`, t3), y2.attributes.push({ name: "data-applitools-src", value: n5 });
|
|
102802
|
+
h2.push({ element: b2, url: n5 });
|
|
102803
|
+
}
|
|
102727
102804
|
}
|
|
102728
|
-
|
|
102729
|
-
|
|
102730
|
-
|
|
102805
|
+
} else
|
|
102806
|
+
b2.nodeType === Node.TEXT_NODE ? y2 = function(e6) {
|
|
102807
|
+
return { nodeType: Node.TEXT_NODE, nodeValue: e6.nodeValue };
|
|
102808
|
+
}(b2) : b2.nodeType === Node.DOCUMENT_TYPE_NODE && (y2 = function(e6) {
|
|
102809
|
+
return { nodeType: Node.DOCUMENT_TYPE_NODE, nodeName: e6.nodeName };
|
|
102810
|
+
}(b2));
|
|
102811
|
+
return y2 ? (e5.push(y2), e5.length - 1) : null;
|
|
102812
|
+
}(e4, r3, f2);
|
|
102813
|
+
} catch (e5) {
|
|
102814
|
+
try {
|
|
102815
|
+
n3.warn("[domNodesToCdt] skipped a node that failed to serialize", function(e6) {
|
|
102816
|
+
try {
|
|
102817
|
+
const t4 = e6;
|
|
102818
|
+
if (t4.nodeType !== Node.ELEMENT_NODE)
|
|
102819
|
+
return `nodeType=${e6.nodeType}`;
|
|
102820
|
+
const n4 = "string" == typeof t4.tagName ? t4.tagName.toLowerCase() : `nodeType=${t4.nodeType}`;
|
|
102821
|
+
return `${n4}${t4.id ? `#${t4.id}` : ""}${"string" == typeof t4.className && t4.className ? `.${t4.className.trim().split(/\s+/).join(".")}` : ""}`;
|
|
102822
|
+
} catch (e7) {
|
|
102823
|
+
return "unknown-node";
|
|
102731
102824
|
}
|
|
102732
|
-
|
|
102733
|
-
|
|
102734
|
-
return ql(e6.style);
|
|
102735
|
-
}(e5);
|
|
102736
|
-
return r4 && (n5 = n5.concat(r4)), n5;
|
|
102737
|
-
}(b2);
|
|
102738
|
-
if (n4.length > 0 && (c2 = c2.concat(n4)), "IMG" === b2.tagName && /^blob:/.test(b2.src)) {
|
|
102739
|
-
const e5 = b2.src.replace(/^blob:/, "");
|
|
102740
|
-
u2.push({ element: b2, cdtNode: y2, url: e5 });
|
|
102741
|
-
}
|
|
102742
|
-
if ("VIDEO" === b2.tagName && (/^blob:/.test(b2.src) || b2.srcObject)) {
|
|
102743
|
-
let n5;
|
|
102744
|
-
if (b2.src) {
|
|
102745
|
-
if (n5 = b2.src.replace(/^blob:/, ""), y2.attributes = y2.attributes.filter((e5) => "src" !== e5.name), !y2.childNodeIndexes.some((t4) => "SOURCE" === e4[t4].nodeName)) {
|
|
102746
|
-
const t4 = { nodeType: Node.ELEMENT_NODE, nodeName: "SOURCE", attributes: [{ name: "src", value: b2.src.replace(/^blob:/, "") }], childNodeIndexes: [] };
|
|
102747
|
-
e4.push(t4), y2.childNodeIndexes.push(e4.length - 1);
|
|
102748
|
-
}
|
|
102749
|
-
} else
|
|
102750
|
-
n5 = w(`applitools-video-${z()}.webm`, t3), y2.attributes.push({ name: "data-applitools-src", value: n5 });
|
|
102751
|
-
h2.push({ element: b2, url: n5 });
|
|
102752
|
-
}
|
|
102825
|
+
}(r3), String(e5));
|
|
102826
|
+
} catch (e6) {
|
|
102753
102827
|
}
|
|
102754
|
-
|
|
102755
|
-
|
|
102756
|
-
return { nodeType: Node.TEXT_NODE, nodeValue: e5.nodeValue };
|
|
102757
|
-
}(b2) : b2.nodeType === Node.DOCUMENT_TYPE_NODE && (y2 = function(e5) {
|
|
102758
|
-
return { nodeType: Node.DOCUMENT_TYPE_NODE, nodeName: e5.nodeName };
|
|
102759
|
-
}(b2));
|
|
102760
|
-
return y2 ? (e4.push(y2), e4.length - 1) : null;
|
|
102828
|
+
return null;
|
|
102829
|
+
}
|
|
102761
102830
|
}
|
|
102762
102831
|
}
|
|
102763
102832
|
function Ql(e3) {
|
|
@@ -104665,7 +104734,7 @@ creating temp style for access.`), r2 = Qh(e3);
|
|
|
104665
104734
|
function M2(e3) {
|
|
104666
104735
|
return r3.defaultView && r3.defaultView.frameElement && r3.defaultView.frameElement.getAttribute(e3);
|
|
104667
104736
|
}
|
|
104668
|
-
}(n3).then((e3) => (m2.log("processPage end"), e3.scriptVersion = "4.17.
|
|
104737
|
+
}(n3).then((e3) => (m2.log("processPage end"), e3.scriptVersion = "4.17.3", e3));
|
|
104669
104738
|
}, n2[S], "domSnapshotResult");
|
|
104670
104739
|
return function(e3) {
|
|
104671
104740
|
try {
|
|
@@ -104993,10 +105062,12 @@ var require_take_dom_snapshot = __commonJS({
|
|
|
104993
105062
|
const crossFrames = extractCrossFrames({ snapshot: snapshot2, logger });
|
|
104994
105063
|
for (const { reference, parentSnapshot, cdtNode } of crossFrames) {
|
|
104995
105064
|
const frameContext = await context2.context(reference).then((context3) => context3.focus()).catch((err) => {
|
|
104996
|
-
var _a3;
|
|
105065
|
+
var _a3, _b3;
|
|
104997
105066
|
const srcAttr = (_a3 = cdtNode.attributes) === null || _a3 === void 0 ? void 0 : _a3.find((attr) => attr.name === "src");
|
|
104998
|
-
if (srcAttr)
|
|
105067
|
+
if (srcAttr) {
|
|
105068
|
+
(_b3 = cdtNode.attributes) === null || _b3 === void 0 ? void 0 : _b3.push({ name: "data-applitools-original-src", value: srcAttr.value });
|
|
104999
105069
|
srcAttr.value = "";
|
|
105070
|
+
}
|
|
105000
105071
|
logger.log(`could not switch to frame during takeDomSnapshot. Path to frame: ${JSON.stringify(reference)}`, err);
|
|
105001
105072
|
});
|
|
105002
105073
|
if (frameContext) {
|
|
@@ -130879,7 +130950,7 @@ var require_package3 = __commonJS({
|
|
|
130879
130950
|
"../core/package.json"(exports, module) {
|
|
130880
130951
|
module.exports = {
|
|
130881
130952
|
name: "@applitools/core",
|
|
130882
|
-
version: "4.
|
|
130953
|
+
version: "4.65.0",
|
|
130883
130954
|
homepage: "https://applitools.com",
|
|
130884
130955
|
bugs: {
|
|
130885
130956
|
url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -132431,7 +132502,7 @@ var require_package4 = __commonJS({
|
|
|
132431
132502
|
"../eyes/package.json"(exports, module) {
|
|
132432
132503
|
module.exports = {
|
|
132433
132504
|
name: "@applitools/eyes",
|
|
132434
|
-
version: "1.43.
|
|
132505
|
+
version: "1.43.2",
|
|
132435
132506
|
keywords: [
|
|
132436
132507
|
"applitools",
|
|
132437
132508
|
"eyes",
|
|
@@ -133485,8 +133556,8 @@ var require_Eyes = __commonJS({
|
|
|
133485
133556
|
getBaselineEnvName() {
|
|
133486
133557
|
return this._config.getBaselineEnvName();
|
|
133487
133558
|
}
|
|
133488
|
-
setBaselineEnvName(baselineEnvName) {
|
|
133489
|
-
this._config.setBaselineEnvName(baselineEnvName);
|
|
133559
|
+
setBaselineEnvName(baselineEnvName, options) {
|
|
133560
|
+
this._config.setBaselineEnvName(baselineEnvName, options);
|
|
133490
133561
|
}
|
|
133491
133562
|
getBranchName() {
|
|
133492
133563
|
return this._config.getBranchName();
|
|
@@ -134047,7 +134118,7 @@ var require_package5 = __commonJS({
|
|
|
134047
134118
|
"package.json"(exports, module) {
|
|
134048
134119
|
module.exports = {
|
|
134049
134120
|
name: "@applitools/eyes-browser",
|
|
134050
|
-
version: "1.6.
|
|
134121
|
+
version: "1.6.21",
|
|
134051
134122
|
type: "module",
|
|
134052
134123
|
keywords: [
|
|
134053
134124
|
"applitools",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-browser",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"test": "run playwright test"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@applitools/eyes": "1.43.
|
|
54
|
+
"@applitools/eyes": "1.43.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@applitools/test-server": "1.4.4",
|
package/types/Eyes.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { Image } from './input/Image';
|
|
|
10
10
|
import { OCRSettings } from './input/OCRSettings';
|
|
11
11
|
import { VisualLocatorSettings } from './input/VisualLocatorSettings';
|
|
12
12
|
import { ProxySettings, ProxySettingsData } from './input/ProxySettings';
|
|
13
|
-
import { Configuration, ConfigurationData } from './input/Configuration';
|
|
13
|
+
import { BaselineEnvOptions, Configuration, ConfigurationData } from './input/Configuration';
|
|
14
14
|
import { BatchInfo, BatchInfoData } from './input/BatchInfo';
|
|
15
15
|
import { RectangleSize, RectangleSizeData } from './input/RectangleSize';
|
|
16
16
|
import { Region } from './input/Region';
|
|
@@ -186,7 +186,7 @@ export declare class Eyes<TSpec extends Core.SpecType = Core.SpecType, TCheckSet
|
|
|
186
186
|
/** @deprecated */
|
|
187
187
|
setBaselineName(baselineName: string): void;
|
|
188
188
|
getBaselineEnvName(): string;
|
|
189
|
-
setBaselineEnvName(baselineEnvName: string): void;
|
|
189
|
+
setBaselineEnvName(baselineEnvName: string, options?: BaselineEnvOptions): void;
|
|
190
190
|
getBranchName(): string;
|
|
191
191
|
setBranchName(branchName: string): void;
|
|
192
192
|
getHostApp(): string;
|
package/types/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export { AccessibilitySettings } from './input/AccessibilitySettings';
|
|
|
28
28
|
export { BatchInfo as BatchInfoPlain, BatchInfoData as BatchInfo } from './input/BatchInfo';
|
|
29
29
|
export { Image } from './input/Image';
|
|
30
30
|
export { CheckSettingsImage as CheckSettingsImagePlain, CheckSettingsImageFluent as CheckSettingsImage, CheckSettingsAutomation as CheckSettingsAutomationPlain, CheckSettingsAutomationFluent as CheckSettingsAutomation, TargetImage, TargetAutomation, Target, } from './input/CheckSettings';
|
|
31
|
-
export { Configuration as ConfigurationPlain, ConfigurationData as Configuration } from './input/Configuration';
|
|
31
|
+
export { BaselineEnvOptions, Configuration as ConfigurationPlain, ConfigurationData as Configuration, } from './input/Configuration';
|
|
32
32
|
export { CutProvider as CutProviderPlain, CutProviderData as CutProvider, FixedCutProviderData as FixedCutProvider, UnscaledFixedCutProviderData as UnscaledFixedCutProvider, } from './input/CutProvider';
|
|
33
33
|
export { ExactMatchSettings as ExactMatchSettingsPlain, ExactMatchSettingsData as ExactMatchSettings, } from './input/ExactMatchSettings';
|
|
34
34
|
export { FloatingMatchSettings as FloatingMatchSettingsPlain, FloatingMatchSettingsData as FloatingMatchSettings, } from './input/FloatingMatchSettings';
|
|
@@ -23,6 +23,9 @@ import { PropertyData, PropertyDataData } from './PropertyData';
|
|
|
23
23
|
import { ImageMatchSettings } from './ImageMatchSettings';
|
|
24
24
|
import { LatestCommitInfo } from './LatestCommitInfo';
|
|
25
25
|
type MultiDeviceTargetTypes = IosDeviceTargetNames | AndroidDeviceTargetNames | IosDeviceTarget | AndroidDeviceTarget;
|
|
26
|
+
export type BaselineEnvOptions = {
|
|
27
|
+
useLatestEnvBaseline?: boolean;
|
|
28
|
+
};
|
|
26
29
|
export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
|
|
27
30
|
accessibilityValidation?: AccessibilitySettings;
|
|
28
31
|
agentId?: string;
|
|
@@ -31,6 +34,8 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
|
|
|
31
34
|
autProxy?: AUTProxySettings;
|
|
32
35
|
baselineBranchName?: string;
|
|
33
36
|
baselineEnvName?: string;
|
|
37
|
+
/** @internal */
|
|
38
|
+
baselineEnvOptions?: BaselineEnvOptions;
|
|
34
39
|
batch?: BatchInfo;
|
|
35
40
|
branchName?: string;
|
|
36
41
|
browsersInfo?: RenderInfo[];
|
|
@@ -150,7 +155,11 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
|
|
|
150
155
|
get baselineEnvName(): string;
|
|
151
156
|
set baselineEnvName(baselineEnvName: string);
|
|
152
157
|
getBaselineEnvName(): string;
|
|
153
|
-
setBaselineEnvName(baselineEnvName: string): this;
|
|
158
|
+
setBaselineEnvName(baselineEnvName: string, options?: BaselineEnvOptions): this;
|
|
159
|
+
/** @internal */
|
|
160
|
+
get baselineEnvOptions(): BaselineEnvOptions;
|
|
161
|
+
/** @internal */
|
|
162
|
+
set baselineEnvOptions(baselineEnvOptions: BaselineEnvOptions);
|
|
154
163
|
get batch(): BatchInfo;
|
|
155
164
|
set batch(batch: BatchInfo);
|
|
156
165
|
getBatch(): BatchInfoData;
|