clarity-js 0.6.35 → 0.6.36
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/build/clarity.js +28 -28
- package/build/clarity.min.js +1 -1
- package/build/clarity.module.js +28 -28
- package/package.json +1 -1
- package/src/core/timeout.ts +1 -1
- package/src/core/version.ts +1 -1
- package/src/layout/mutation.ts +1 -1
- package/src/layout/node.ts +1 -1
package/build/clarity.js
CHANGED
|
@@ -115,7 +115,7 @@ function stop$B() {
|
|
|
115
115
|
startTime = 0;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
var version$1 = "0.6.
|
|
118
|
+
var version$1 = "0.6.36";
|
|
119
119
|
|
|
120
120
|
// tslint:disable: no-bitwise
|
|
121
121
|
function hash (input) {
|
|
@@ -649,7 +649,7 @@ function mangleText(value) {
|
|
|
649
649
|
var index = value.indexOf(first);
|
|
650
650
|
var prefix = value.substr(0, index);
|
|
651
651
|
var suffix = value.substr(index + trimmed.length);
|
|
652
|
-
return ""
|
|
652
|
+
return "" + prefix + trimmed.length.toString(36) + suffix;
|
|
653
653
|
}
|
|
654
654
|
return value;
|
|
655
655
|
}
|
|
@@ -723,7 +723,7 @@ function selector (input, beta) {
|
|
|
723
723
|
if (beta === void 0) { beta = false; }
|
|
724
724
|
var a = input.attributes;
|
|
725
725
|
var prefix = input.prefix ? input.prefix[beta ? 1 /* Beta */ : 0 /* Stable */] : null;
|
|
726
|
-
var suffix = beta || ((a && !("class" /* Class */ in a)) || TAGS.indexOf(input.tag) >= 0) ? ":nth-of-type("
|
|
726
|
+
var suffix = beta || ((a && !("class" /* Class */ in a)) || TAGS.indexOf(input.tag) >= 0) ? ":nth-of-type(" + input.position + ")" : "" /* Empty */;
|
|
727
727
|
switch (input.tag) {
|
|
728
728
|
case "STYLE":
|
|
729
729
|
case "TITLE":
|
|
@@ -738,9 +738,9 @@ function selector (input, beta) {
|
|
|
738
738
|
if (prefix === null) {
|
|
739
739
|
return "" /* Empty */;
|
|
740
740
|
}
|
|
741
|
-
prefix =
|
|
741
|
+
prefix = prefix + ">";
|
|
742
742
|
input.tag = input.tag.indexOf("svg:" /* SvgPrefix */) === 0 ? input.tag.substr("svg:" /* SvgPrefix */.length) : input.tag;
|
|
743
|
-
var selector = ""
|
|
743
|
+
var selector = "" + prefix + input.tag + suffix;
|
|
744
744
|
var classes = "class" /* Class */ in a && a["class" /* Class */].length > 0 ? a["class" /* Class */].trim().split(/\s+/) : null;
|
|
745
745
|
if (beta) {
|
|
746
746
|
// In beta mode, update selector to use "id" field when available. There are two exceptions:
|
|
@@ -748,19 +748,19 @@ function selector (input, beta) {
|
|
|
748
748
|
// (2) if "id" appears inside a shadow DOM, in which case we continue to prefix up to shadow DOM to prevent conflicts
|
|
749
749
|
var id = "id" /* Id */ in a && a["id" /* Id */].length > 0 ? a["id" /* Id */] : null;
|
|
750
750
|
classes = input.tag !== "BODY" /* BodyTag */ && classes ? classes.filter(function (c) { return !hasDigits(c); }) : [];
|
|
751
|
-
selector = classes.length > 0 ? ""
|
|
752
|
-
selector = id && hasDigits(id) === false ?
|
|
751
|
+
selector = classes.length > 0 ? "" + prefix + input.tag + "." + classes.join(".") + suffix : selector;
|
|
752
|
+
selector = id && hasDigits(id) === false ? getDomPrefix(prefix) + "#" + id : selector;
|
|
753
753
|
}
|
|
754
754
|
else {
|
|
755
755
|
// Otherwise, fallback to stable mode, where we include class names as part of the selector
|
|
756
|
-
selector = classes ? ""
|
|
756
|
+
selector = classes ? "" + prefix + input.tag + "." + classes.join(".") + suffix : selector;
|
|
757
757
|
}
|
|
758
758
|
return selector;
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
761
|
function getDomPrefix(prefix) {
|
|
762
762
|
var shadowDomStart = prefix.lastIndexOf("*S" /* ShadowDomTag */);
|
|
763
|
-
var iframeDomStart = prefix.lastIndexOf(""
|
|
763
|
+
var iframeDomStart = prefix.lastIndexOf("" + "iframe:" /* IFramePrefix */ + "HTML" /* HTML */);
|
|
764
764
|
var domStart = Math.max(shadowDomStart, iframeDomStart);
|
|
765
765
|
if (domStart < 0) {
|
|
766
766
|
return "";
|
|
@@ -921,7 +921,7 @@ function suspend$1(timer) {
|
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
923
|
function key(timer) {
|
|
924
|
-
return
|
|
924
|
+
return timer.id + "." + timer.cost;
|
|
925
925
|
}
|
|
926
926
|
function wait() {
|
|
927
927
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1098,7 +1098,7 @@ function encode$4 (type, timer, ts) {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
tokens.push(suspend ? "*M" /* SuspendMutationTag */ : data[key]);
|
|
1100
1100
|
if (box && box.length === 2) {
|
|
1101
|
-
tokens.push(""
|
|
1101
|
+
tokens.push("" + "#" /* Box */ + str$1(box[0]) + "." + str$1(box[1]));
|
|
1102
1102
|
}
|
|
1103
1103
|
break;
|
|
1104
1104
|
case "attributes":
|
|
@@ -1148,7 +1148,7 @@ function str$1(input) {
|
|
|
1148
1148
|
return input.toString(36);
|
|
1149
1149
|
}
|
|
1150
1150
|
function attribute(key, value, privacy) {
|
|
1151
|
-
return
|
|
1151
|
+
return key + "=" + scrub(value, key, privacy);
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
1154
|
var data$c;
|
|
@@ -1767,7 +1767,7 @@ function num$1(input, scale) {
|
|
|
1767
1767
|
return null;
|
|
1768
1768
|
}
|
|
1769
1769
|
|
|
1770
|
-
var IGNORE_ATTRIBUTES = ["title", "alt", "onload", "onfocus", "onerror"];
|
|
1770
|
+
var IGNORE_ATTRIBUTES = ["title", "alt", "onload", "onfocus", "onerror", "data-drupal-form-submit-last"];
|
|
1771
1771
|
var newlineRegex = /[\r\n]+/g;
|
|
1772
1772
|
function processNode (node, source) {
|
|
1773
1773
|
var child = null;
|
|
@@ -2122,7 +2122,7 @@ function handle$1(m) {
|
|
|
2122
2122
|
track$6(6 /* Mutation */, now);
|
|
2123
2123
|
mutations.push({ time: now, mutations: m });
|
|
2124
2124
|
schedule$1(process$2, 1 /* High */).then(function () {
|
|
2125
|
-
|
|
2125
|
+
setTimeout(compute$7);
|
|
2126
2126
|
measure(compute$6)();
|
|
2127
2127
|
});
|
|
2128
2128
|
}
|
|
@@ -2365,7 +2365,7 @@ function parse$1(root, init) {
|
|
|
2365
2365
|
// Since mutations may happen on leaf nodes too, e.g. text nodes, which may not support all selector APIs.
|
|
2366
2366
|
// We ensure that the root note supports querySelectorAll API before executing the code below to identify new regions.
|
|
2367
2367
|
if ("querySelectorAll" in root) {
|
|
2368
|
-
config$1.regions.forEach(function (x) { return root.querySelectorAll(x[1]).forEach(function (e) { return observe$1(e, ""
|
|
2368
|
+
config$1.regions.forEach(function (x) { return root.querySelectorAll(x[1]).forEach(function (e) { return observe$1(e, "" + x[0]); }); }); // Regions
|
|
2369
2369
|
config$1.mask.forEach(function (x) { return root.querySelectorAll(x).forEach(function (e) { return privacyMap.set(e, 3 /* TextImage */); }); }); // Masked Elements
|
|
2370
2370
|
config$1.fraud.forEach(function (x) { return root.querySelectorAll(x[1]).forEach(function (e) { return fraudMap.set(e, x[0]); }); }); // Fraud Check
|
|
2371
2371
|
unmask.forEach(function (x) { return root.querySelectorAll(x).forEach(function (e) { return privacyMap.set(e, 0 /* None */); }); }); // Unmasked Elements
|
|
@@ -3178,8 +3178,8 @@ function upload(final) {
|
|
|
3178
3178
|
compute$8();
|
|
3179
3179
|
last = final === true;
|
|
3180
3180
|
e = JSON.stringify(envelope(last));
|
|
3181
|
-
a = "["
|
|
3182
|
-
p = sendPlaybackBytes ? "["
|
|
3181
|
+
a = "[" + analysis.join() + "]";
|
|
3182
|
+
p = sendPlaybackBytes ? "[" + playback.join() + "]" : "" /* Empty */;
|
|
3183
3183
|
encoded = { e: e, a: a, p: p };
|
|
3184
3184
|
payload = stringify(encoded);
|
|
3185
3185
|
if (!last) return [3 /*break*/, 1];
|
|
@@ -3206,7 +3206,7 @@ function upload(final) {
|
|
|
3206
3206
|
});
|
|
3207
3207
|
}
|
|
3208
3208
|
function stringify(encoded) {
|
|
3209
|
-
return encoded.p.length > 0 ? "{\"e\":"
|
|
3209
|
+
return encoded.p.length > 0 ? "{\"e\":" + encoded.e + ",\"a\":" + encoded.a + ",\"p\":" + encoded.p + "}" : "{\"e\":" + encoded.e + ",\"a\":" + encoded.a + "}";
|
|
3210
3210
|
}
|
|
3211
3211
|
function send(payload, zipped, sequence, beacon) {
|
|
3212
3212
|
if (beacon === void 0) { beacon = false; }
|
|
@@ -3419,7 +3419,7 @@ function log$1(code, severity, name, message, stack) {
|
|
|
3419
3419
|
if (name === void 0) { name = null; }
|
|
3420
3420
|
if (message === void 0) { message = null; }
|
|
3421
3421
|
if (stack === void 0) { stack = null; }
|
|
3422
|
-
var key = name ?
|
|
3422
|
+
var key = name ? name + "|" + message : "";
|
|
3423
3423
|
// While rare, it's possible for code to fail repeatedly during the lifetime of the same page
|
|
3424
3424
|
// In those cases, we only want to log the failure once and not spam logs with redundant information.
|
|
3425
3425
|
if (code in history$2 && history$2[code].indexOf(key) >= 0) {
|
|
@@ -3727,7 +3727,7 @@ function log(dimension, value) {
|
|
|
3727
3727
|
// Check valid value before moving ahead
|
|
3728
3728
|
if (value) {
|
|
3729
3729
|
// Ensure received value is casted into a string if it wasn't a string to begin with
|
|
3730
|
-
value = ""
|
|
3730
|
+
value = "" + value;
|
|
3731
3731
|
if (!(dimension in data$3)) {
|
|
3732
3732
|
data$3[dimension] = [];
|
|
3733
3733
|
}
|
|
@@ -3909,7 +3909,7 @@ function session() {
|
|
|
3909
3909
|
output.session = parts[0];
|
|
3910
3910
|
output.count = num(parts[2]) + 1;
|
|
3911
3911
|
output.upgrade = num(parts[3]);
|
|
3912
|
-
output.upload = parts.length >= 6 ? ""
|
|
3912
|
+
output.upload = parts.length >= 6 ? "" + "https://" /* HTTPS */ + parts[5] + "/" + parts[4] : "" + "https://" /* HTTPS */ + parts[4];
|
|
3913
3913
|
}
|
|
3914
3914
|
}
|
|
3915
3915
|
return output;
|
|
@@ -3934,11 +3934,11 @@ function user() {
|
|
|
3934
3934
|
// Check if we either got version-less cookie value or saw multiple copies of the user cookie crumbs
|
|
3935
3935
|
// In both these cases, we go ahead and delete the existing cookie set on current domain
|
|
3936
3936
|
if (parts.length === 1 || count > 1) {
|
|
3937
|
-
var deleted = ""
|
|
3937
|
+
var deleted = "" + ";" /* Semicolon */ + "expires=" /* Expires */ + (new Date(0)).toUTCString() + ";path=/" /* Path */;
|
|
3938
3938
|
// First, delete current user cookie which might be set on current sub-domain vs. root domain
|
|
3939
|
-
document.cookie = "
|
|
3939
|
+
document.cookie = "_clck" /* CookieKey */ + "=" + deleted;
|
|
3940
3940
|
// Second, same thing for current session cookie so it can be re-written later with the root domain
|
|
3941
|
-
document.cookie = "
|
|
3941
|
+
document.cookie = "_clsk" /* SessionKey */ + "=" + deleted;
|
|
3942
3942
|
}
|
|
3943
3943
|
// End code for backward compatibility
|
|
3944
3944
|
// Read version information and timestamp from cookie, if available
|
|
@@ -3975,19 +3975,19 @@ function setCookie(key, value, time) {
|
|
|
3975
3975
|
var expiry = new Date();
|
|
3976
3976
|
expiry.setDate(expiry.getDate() + time);
|
|
3977
3977
|
var expires = expiry ? "expires=" /* Expires */ + expiry.toUTCString() : "" /* Empty */;
|
|
3978
|
-
var cookie =
|
|
3978
|
+
var cookie = key + "=" + value + ";" /* Semicolon */ + expires + ";path=/" /* Path */;
|
|
3979
3979
|
try {
|
|
3980
3980
|
// Attempt to get the root domain only once and fall back to writing cookie on the current domain.
|
|
3981
3981
|
if (rootDomain === null) {
|
|
3982
3982
|
var hostname = location.hostname ? location.hostname.split("." /* Dot */) : [];
|
|
3983
3983
|
// Walk backwards on a domain and attempt to set a cookie, until successful
|
|
3984
3984
|
for (var i = hostname.length - 1; i >= 0; i--) {
|
|
3985
|
-
rootDomain = "."
|
|
3985
|
+
rootDomain = "." + hostname[i] + (rootDomain ? rootDomain : "" /* Empty */);
|
|
3986
3986
|
// We do not wish to attempt writing a cookie on the absolute last part of the domain, e.g. .com or .net.
|
|
3987
3987
|
// So we start attempting after second-last part, e.g. .domain.com (PASS) or .co.uk (FAIL)
|
|
3988
3988
|
if (i < hostname.length - 1) {
|
|
3989
3989
|
// Write the cookie on the current computed top level domain
|
|
3990
|
-
document.cookie = ""
|
|
3990
|
+
document.cookie = "" + cookie + ";" /* Semicolon */ + "domain=" /* Domain */ + rootDomain;
|
|
3991
3991
|
// Once written, check if the cookie exists and its value matches exactly with what we intended to set
|
|
3992
3992
|
// Checking for exact value match helps us eliminate a corner case where the cookie may already be present with a different value
|
|
3993
3993
|
// If the check is successful, no more action is required and we can return from the function since rootDomain cookie is already set
|
|
@@ -4005,7 +4005,7 @@ function setCookie(key, value, time) {
|
|
|
4005
4005
|
catch (_a) {
|
|
4006
4006
|
rootDomain = "" /* Empty */;
|
|
4007
4007
|
}
|
|
4008
|
-
document.cookie = rootDomain ? ""
|
|
4008
|
+
document.cookie = rootDomain ? "" + cookie + ";" /* Semicolon */ + "domain=" /* Domain */ + rootDomain : cookie;
|
|
4009
4009
|
}
|
|
4010
4010
|
}
|
|
4011
4011
|
|
package/build/clarity.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var t=Object.freeze({__proto__:null,get start(){return yn},get stop(){return wn},get parse(){return En},get getId(){return On},get add(){return Mn},get update(){return Sn},get sameorigin(){return Nn},get iframe(){return _n},get getNode(){return In},get getValue(){return Cn},get get(){return jn},get lookup(){return zn},get has(){return Ln},get updates(){return An}}),e=Object.freeze({__proto__:null,get track(){return sa},get start(){return pa},get queue(){return va},get stop(){return ga}}),n=Object.freeze({__proto__:null,get data(){return Ta},get keys(){return Da},get fragments(){return ja},get start(){return za},get clone(){return La},get compute(){return Aa},get reset(){return Ha},get update(){return Ra},get stop(){return Ya}}),a=Object.freeze({__proto__:null,get data(){return xa},get start(){return Ua},get check(){return Ba},get trigger(){return Va},get compute(){return Fa},get stop(){return Ja}}),r=Object.freeze({__proto__:null,get data(){return Ga},get updates(){return Za},get start(){return Ka},get stop(){return Qa},get log(){return $a},get compute(){return tr},get reset(){return er}}),i=Object.freeze({__proto__:null,get data(){return nr},get callbacks(){return ar},get start(){return ir},get stop(){return or},get metadata(){return ur},get id(){return cr},get consent(){return sr},get clear(){return lr},get save(){return dr}}),o=Object.freeze({__proto__:null,get data(){return wr},get start(){return kr},get stop(){return Er},get envelope(){return Or}}),u={projectId:null,delay:1e3,lean:!1,track:!0,content:!0,mask:[],unmask:[],regions:[],extract:[],cookies:[],fraud:[],report:null,upload:null,fallback:null,upgrade:null};function c(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var s=0;function l(t){return void 0===t&&(t=null),t=t||performance.now(),Math.max(Math.round(t-s),0)}var d="0.6.35";function f(t){for(var e=5381,n=e,a=0;a<t.length;a+=2){if(e=(e<<5)+e^t.charCodeAt(a),a+1<t.length)n=(n<<5)+n^t.charCodeAt(a+1)}return Math.abs(e+11579*n).toString(36)}var h=null,p=null,v=!1;function g(){v&&(h={time:l(),event:4,data:{visible:p.visible,docWidth:p.docWidth,docHeight:p.docHeight,screenWidth:p.screenWidth,screenHeight:p.screenHeight,scrollX:p.scrollX,scrollY:p.scrollY,pointerX:p.pointerX,pointerY:p.pointerY,activityTime:p.activityTime}}),p=p||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0}}function m(t,e,n){switch(t){case 8:p.docWidth=e,p.docHeight=n;break;case 11:p.screenWidth=e,p.screenHeight=n;break;case 10:p.scrollX=e,p.scrollY=n;break;default:p.pointerX=e,p.pointerY=n}v=!0}function b(t){p.activityTime=t}function y(t,e){p.visible="visible"===e?1:0,p.visible||b(t),v=!0}function w(){v&&Pa(4)}var k=Object.freeze({__proto__:null,get state(){return h},start:function(){v=!1,g()},reset:g,track:m,activity:b,visibility:y,compute:w,stop:function(){g()}}),E=null;function O(t,e){Xr()&&t&&e&&"string"==typeof t&&"string"==typeof e&&t.length<255&&e.length<255&&(E={key:t,value:e},Pa(24))}var M,S=null,N=null;function _(t){t in S||(S[t]=0),t in N||(N[t]=0),S[t]++,N[t]++}function x(t,e){null!==e&&(t in S||(S[t]=0),t in N||(N[t]=0),S[t]+=e,N[t]+=e)}function T(t,e){null!==e&&!1===isNaN(e)&&(t in S||(S[t]=0),(e>S[t]||0===S[t])&&(N[t]=e,S[t]=e))}function D(t,e,n){return window.setTimeout(Nr(t),e,n)}function I(t){return window.clearTimeout(t)}var C=0,j=0,z=null;function L(){z&&I(z),z=D(A,j),C=l()}function A(){var t=l();M={gap:t-C},Pa(25),M.gap<3e5?z=D(A,j):Rr&&(O("clarity","suspend"),ai(),["mousemove","touchstart"].forEach((function(t){return xr(document,t,Pr)})),["resize","scroll","pageshow"].forEach((function(t){return xr(window,t,Pr)})))}var H=Object.freeze({__proto__:null,get data(){return M},start:function(){j=6e4,C=0},reset:L,stop:function(){I(z),C=0,j=0}}),R=null;function Y(t,e){if(t in R){var n=R[t],a=n[n.length-1];e-a[0]>100?R[t].push([e,0]):a[1]=e-a[0]}else R[t]=[[e,0]]}function W(){Pa(36)}function X(){R={}}var q=Object.freeze({__proto__:null,get data(){return R},start:function(){R={}},stop:function(){R={}},track:Y,compute:W,reset:X}),P=null;function U(t){Xr()&&u.lean&&(u.lean=!1,P={key:t},dr(),u.upgrade&&u.upgrade(t),Pa(3))}var B=Object.freeze({__proto__:null,get data(){return P},start:function(){!u.lean&&u.upgrade&&u.upgrade("Config"),P=null},upgrade:U,stop:function(){P=null}}),V=null;function F(t,e){G(t,"string"==typeof e?[e]:e)}function J(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null),G("userId",[t]),G("sessionId",[e]),G("pageId",[n])}function G(t,e){if(Xr()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in V?V[t]:[]),a=0;a<e.length;a++)"string"==typeof e[a]&&e[a].length<255&&n.push(e[a]);V[t]=n}}function Z(){Pa(34)}function K(){V={}}function Q(t,e,n,a){return new(n||(n=Promise))((function(r,i){function o(t){try{c(a.next(t))}catch(t){i(t)}}function u(t){try{c(a.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,u)}c((a=a.apply(t,e||[])).next())}))}function $(t,e){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,a=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=e.call(t,o)}catch(t){i=[6,t],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var tt="CompressionStream"in window;function et(t){return Q(this,void 0,void 0,(function(){var e,n;return $(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),tt?(e=new ReadableStream({start:function(e){return Q(this,void 0,void 0,(function(){return $(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,nt(e)]):[3,2];case 1:return[2,new(n.apply(Uint8Array,[void 0,a.sent()]))];case 2:return[3,4];case 3:return a.sent(),[3,4];case 4:return[2,null]}}))}))}function nt(t){return Q(this,void 0,void 0,(function(){var e,n,a,r,i;return $(this,(function(o){switch(o.label){case 0:e=t.getReader(),n=[],a=!1,r=[],o.label=1;case 1:return a?[3,3]:[4,e.read()];case 2:return i=o.sent(),a=i.done,r=i.value,a?[2,n]:(n.push.apply(n,r),[3,1]);case 3:return[2,n]}}))}))}var at=[k,r,Object.freeze({__proto__:null,get data(){return V},start:function(){K()},set:F,identify:J,compute:Z,reset:K,stop:function(){K()}}),a,q,i,o,e,H,B,n];function rt(){S={},N={},_(5),at.forEach((function(t){return Nr(t.start)()}))}function it(){at.slice().reverse().forEach((function(t){return Nr(t.stop)()})),S={},N={}}function ot(){Z(),w(),tr(),Pa(0),W(),Fa(),Aa()}function ut(t,e,n,a){if(void 0===a&&(a=!1),t)switch(n){case 0:return t;case 1:switch(e){case"*T":case"value":case"placeholder":return function(t){for(var e=-1,n=!1,a=!1,r=!1,i=null,o=0;o<t.length;o++){var u=t.charCodeAt(o);n=n||u>=48&&u<=57,a=a||64===u,r=9===u||10===u||13===u||32===u,(0===o||o===t.length-1||r)&&((n||a)&&(null===i&&(i=t.split("")),lt(i,e,r?o:o+1)),r&&(n=!1,a=!1,e=o))}return i?i.join(""):t}(t);case"input":return st(t)}return t;case 2:case 3:switch(e){case"*T":return a?function(t){var e=t.trim();if(e.length>0){var n=e[0],a=t.indexOf(n),r=t.substr(0,a),i=t.substr(a+e.length);return"".concat(r).concat(e.length.toString(36)).concat(i)}return t}(t):ct(t);case"src":case"srcset":case"title":case"alt":return 3===n?"":t;case"value":case"click":case"input":return st(t);case"placeholder":return ct(t)}}return t}function ct(t){return t.replace(/\S/gi,"•")}function st(t){for(var e=5*(Math.floor(t.length/5)+1),n="",a=0;a<e;a++)n+=a>0&&a%5==0?" ":"•";return n}function lt(t,e,n){for(var a=e+1;a<n;a++)t[a]="•"}var dt,ft=[];function ht(t,e,n){null!==t&&n&&n.length>=5&&(dt={id:t,target:e,hash:f(n)},ft.indexOf(dt.hash)<0&&(ft.push(dt.hash),Ma(41)))}var pt=["DIV","TR","P","LI","UL","A","BUTTON"];function vt(t,e){void 0===e&&(e=!1);var n=t.attributes,a=t.prefix?t.prefix[e?1:0]:null,r=e||n&&!("class"in n)||pt.indexOf(t.tag)>=0?":nth-of-type(".concat(t.position,")"):"";switch(t.tag){case"STYLE":case"TITLE":case"LINK":case"META":case"*T":case"*D":return"";case"HTML":return"HTML";default:if(null===a)return"";a="".concat(a,">"),t.tag=0===t.tag.indexOf("svg:")?t.tag.substr("svg:".length):t.tag;var i="".concat(a).concat(t.tag).concat(r),o="class"in n&&n.class.length>0?n.class.trim().split(/\s+/):null;if(e){var u="id"in n&&n.id.length>0?n.id:null;i=(o="BODY"!==t.tag&&o?o.filter((function(t){return!gt(t)})):[]).length>0?"".concat(a).concat(t.tag,".").concat(o.join(".")).concat(r):i,i=u&&!1===gt(u)?"".concat(function(t){var e=t.lastIndexOf("*S"),n=t.lastIndexOf("".concat("iframe:").concat("HTML")),a=Math.max(e,n);if(a<0)return"";var r=t.indexOf(">",a)+1;return t.substr(0,r)}(a),"#").concat(u):i}else i=o?"".concat(a).concat(t.tag,".").concat(o.join(".")).concat(r):i;return i}}function gt(t){for(var e=0;e<t.length;e++){var n=t.charCodeAt(e);if(n>=48&&n<=57)return!0}return!1}var mt={},bt=[],yt=null,wt=null,kt=null;function Et(){mt={},bt=[],yt=null,wt=null}function Ot(t,e){return void 0===e&&(e=0),Q(this,void 0,void 0,(function(){var n,a,r;return $(this,(function(i){for(n=0,a=bt;n<a.length;n++)if(a[n].task===t)return[2];return r=new Promise((function(n){bt[1===e?"unshift":"push"]({task:t,resolve:n,id:cr()})})),null===yt&&null===wt&&Mt(),[2,r]}))}))}function Mt(){var t=bt.shift();t&&(yt=t,t.task().then((function(){t.id===cr()&&(t.resolve(),yt=null,Mt())})).catch((function(e){t.id===cr()&&(e&&_a(0,1,e.name,e.message,e.stack),yt=null,Mt())})))}function St(t){var e=Tt(t);return e in mt?performance.now()-mt[e].start>mt[e].yield?0:1:2}function Nt(t){mt[Tt(t)]={start:performance.now(),calls:0,yield:30}}function _t(t){var e=performance.now(),n=Tt(t),a=e-mt[n].start;x(t.cost,a),_(5),mt[n].calls>0&&x(4,a)}function xt(t){return Q(this,void 0,void 0,(function(){var e,n;return $(this,(function(a){switch(a.label){case 0:return(e=Tt(t))in mt?(_t(t),n=mt[e],[4,Dt()]):[3,2];case 1:n.yield=a.sent().timeRemaining(),function(t){var e=Tt(t);if(mt&&mt[e]){var n=mt[e].calls,a=mt[e].yield;Nt(t),mt[e].calls=n+1,mt[e].yield=a}}(t),a.label=2;case 2:return[2,e in mt?1:2]}}))}))}function Tt(t){return"".concat(t.id,".").concat(t.cost)}function Dt(){return Q(this,void 0,void 0,(function(){return $(this,(function(t){switch(t.label){case 0:return wt?[4,wt]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2,new Promise((function(t){Ct(t,{timeout:5e3})}))]}}))}))}var It,Ct=window.requestIdleCallback||function(t,e){var n=performance.now(),a=new MessageChannel,r=a.port1,i=a.port2;r.onmessage=function(a){var r=performance.now(),o=r-n,u=r-a.data;if(u>30&&o<e.timeout)requestAnimationFrame((function(){i.postMessage(r)}));else{var c=o>e.timeout;t({didTimeout:c,timeRemaining:function(){return c?30:Math.max(0,30-u)}})}},requestAnimationFrame((function(){i.postMessage(performance.now())}))};function jt(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),Q(this,void 0,void 0,(function(){var a,r,i,o,c,s,d,f,h,p,v,g,y,w,k,E,O,M,S,N,_,x;return $(this,(function(T){switch(T.label){case 0:switch(a=n||l(),r=[a,t],t){case 8:return[3,1];case 7:return[3,2];case 5:case 6:return[3,3]}return[3,10];case 1:return i=It,r.push(i.width),r.push(i.height),m(t,i.width,i.height),va(r),[3,10];case 2:for(o=0,c=Yn;o<c.length;o++)s=c[o],(r=[s.time,7]).push(s.data.id),r.push(s.data.interaction),r.push(s.data.visibility),r.push(s.data.name),va(r);return Kn(),[3,10];case 3:if(2===St(e))return[3,10];if(!((d=An()).length>0))return[3,9];f=0,h=d,T.label=4;case 4:return f<h.length?(p=h[f],0!==(v=St(e))?[3,6]:[4,xt(e)]):[3,8];case 5:v=T.sent(),T.label=6;case 6:if(2===v)return[3,8];for(g=p.data,y=p.metadata.active,w=p.metadata.suspend,k=p.metadata.privacy,E=function(t){var e=t.metadata.privacy;return"*T"===t.data.tag&&!(0===e||1===e)}(p),O=0,M=y?["tag","attributes","value"]:["tag"];O<M.length;O++)if(g[S=M[O]])switch(S){case"tag":N=zt(p),_=E?-1:1,r.push(p.id*_),p.parent&&y&&r.push(p.parent),p.previous&&y&&r.push(p.previous),r.push(w?"*M":g[S]),N&&2===N.length&&r.push("".concat("#").concat(Lt(N[0]),".").concat(Lt(N[1])));break;case"attributes":for(x in g[S])void 0!==g[S][x]&&r.push(At(x,g[S][x],k));break;case"value":ht(p.metadata.fraud,p.id,g[S]),r.push(ut(g[S],g.tag,k,E))}T.label=7;case 7:return f++,[3,4];case 8:6===t&&b(a),va(function(t){for(var e=[],n={},a=0,r=null,i=0;i<t.length;i++)if("string"==typeof t[i]){var o=t[i],u=n[o]||-1;u>=0?r?r.push(u):(r=[u],e.push(r),a++):(r=null,e.push(o),n[o]=a++)}else r=null,e.push(t[i]),a++;return e}(r),!u.lean),T.label=9;case 9:return[3,10];case 10:return[2]}}))}))}function zt(t){if(null!==t.metadata.size&&0===t.metadata.size.length){var e=In(t.id);if(e)return[Math.floor(100*e.offsetWidth),Math.floor(100*e.offsetHeight)]}return t.metadata.size}function Lt(t){return t.toString(36)}function At(t,e,n){return"".concat(t,"=").concat(ut(e,t,n))}function Ht(){It=null}function Rt(){var t=document.body,e=document.documentElement,n=t?t.clientWidth:null,a=t?t.scrollWidth:null,r=t?t.offsetWidth:null,i=e?e.clientWidth:null,o=e?e.scrollWidth:null,u=e?e.offsetWidth:null,c=Math.max(n,a,r,i,o,u),s=t?t.clientHeight:null,l=t?t.scrollHeight:null,d=t?t.offsetHeight:null,f=e?e.clientHeight:null,h=e?e.scrollHeight:null,p=e?e.offsetHeight:null,v=Math.max(s,l,d,f,h,p);null!==It&&c===It.width&&v===It.height||null===c||null===v||(It={width:c,height:v},jt(8))}function Yt(t){var e={x:0,y:0};if(t&&t.offsetParent)do{var n=t.offsetParent,a=null===n?_n(t.ownerDocument):null;e.x+=t.offsetLeft,e.y+=t.offsetTop,t=a||n}while(t);return e}var Wt=["input","textarea","radio","button","canvas"],Xt=[];function qt(t){xr(t,"click",Pt.bind(this,9,t),!0)}function Pt(t,e,n){var a=_n(e),r=a?a.contentDocument.documentElement:document.documentElement,i="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+r.scrollLeft):null,o="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+r.scrollTop):null;if(a){var u=Yt(a);i=i?i+Math.round(u.x):i,o=o?o+Math.round(u.y):o}var c=Qn(n),s=function(t){for(;t&&t!==document;){if(t.nodeType===Node.ELEMENT_NODE){var e=t;if("A"===e.tagName)return e}t=t.parentNode}return null}(c),d=function(t){var e=null,n=document.documentElement;if("function"==typeof t.getBoundingClientRect){var a=t.getBoundingClientRect();a&&a.width>0&&a.height>0&&(e={x:Math.floor(a.left+("pageXOffset"in window?window.pageXOffset:n.scrollLeft)),y:Math.floor(a.top+("pageYOffset"in window?window.pageYOffset:n.scrollTop)),w:Math.floor(a.width),h:Math.floor(a.height)})}return e}(c);0===n.detail&&d&&(i=Math.round(d.x+d.w/2),o=Math.round(d.y+d.h/2));var f=d?Math.max(Math.floor((i-d.x)/d.w*32767),0):0,h=d?Math.max(Math.floor((o-d.y)/d.h*32767),0):0;null!==i&&null!==o&&(Xt.push({time:l(),event:t,data:{target:c,x:i,y:o,eX:f,eY:h,button:n.button,reaction:Bt(c),context:Vt(s),text:Ut(c),link:s?s.href:null,hash:null,trust:n.isTrusted?1:0}}),Ot(ta.bind(this,t)))}function Ut(t){var e=null;if(t){var n=t.textContent||t.value||t.alt;n&&(e=n.trim().replace(/\s+/g," ").substr(0,25))}return e}function Bt(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t.tagName.toLowerCase();if(Wt.indexOf(e)>=0)return 0}return 1}function Vt(t){if(t&&t.hasAttribute("target"))switch(t.getAttribute("target")){case"_blank":return 1;case"_parent":return 2;case"_top":return 3}return 0}function Ft(){Xt=[]}var Jt=[];function Gt(t,e){Jt.push({time:l(),event:38,data:{target:Qn(e),action:t}}),Ot(ta.bind(this,38))}function Zt(){Jt=[]}var Kt=null,Qt=[];function $t(t){var e=Qn(t),n=jn(e);if(e&&e.type&&n){var a=e.value;switch(e.type){case"radio":case"checkbox":a=e.checked?"true":"false"}var r={target:e,value:a};Qt.length>0&&Qt[Qt.length-1].data.target===r.target&&Qt.pop(),Qt.push({time:l(),event:27,data:r}),I(Kt),Kt=D(te,500,27)}}function te(t){Ot(ta.bind(this,t))}function ee(){Qt=[]}var ne,ae=[],re=null;function ie(t,e,n){var a=_n(e),r=a?a.contentDocument.documentElement:document.documentElement,i="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+r.scrollLeft):null,o="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+r.scrollTop):null;if(a){var u=Yt(a);i=i?i+Math.round(u.x):i,o=o?o+Math.round(u.y):o}null!==i&&null!==o&&ue({time:l(),event:t,data:{target:Qn(n),x:i,y:o}})}function oe(t,e,n){var a=_n(e),r=a?a.contentDocument.documentElement:document.documentElement,i=n.changedTouches,o=l();if(i)for(var u=0;u<i.length;u++){var c=i[u],s="clientX"in c?Math.round(c.clientX+r.scrollLeft):null,d="clientY"in c?Math.round(c.clientY+r.scrollTop):null;s=s&&a?s+Math.round(a.offsetLeft):s,d=d&&a?d+Math.round(a.offsetTop):d,null!==s&&null!==d&&ue({time:o,event:t,data:{target:Qn(n),x:s,y:d}})}}function ue(t){switch(t.event){case 12:case 15:case 19:var e=ae.length,n=e>1?ae[e-2]:null;n&&function(t,e){var n=t.data.x-e.data.x,a=t.data.y-e.data.y,r=Math.sqrt(n*n+a*a),i=e.time-t.time,o=e.data.target===t.data.target;return e.event===t.event&&o&&r<20&&i<25}(n,t)&&ae.pop(),ae.push(t),I(re),re=D(ce,500,t.event);break;default:ae.push(t),ce(t.event)}}function ce(t){Ot(ta.bind(this,t))}function se(){ae=[]}function le(){var t=document.documentElement;ne={width:t&&"clientWidth"in t?Math.min(t.clientWidth,window.innerWidth):window.innerWidth,height:t&&"clientHeight"in t?Math.min(t.clientHeight,window.innerHeight):window.innerHeight},ta(11)}function de(){ne=null}var fe=[],he=null;function pe(t){void 0===t&&(t=null);var e=window,n=document.documentElement,a=t?Qn(t):n;if(a&&a.nodeType===Node.DOCUMENT_NODE){var r=_n(a);e=r?r.contentWindow:e,a=n=a.documentElement}var i=a===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(a.scrollLeft),o=a===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(a.scrollTop),u={time:l(),event:10,data:{target:a,x:i,y:o}};if((null!==t||0!==i||0!==o)&&null!==i&&null!==o){var c=fe.length,s=c>1?fe[c-2]:null;s&&function(t,e){var n=t.data.x-e.data.x,a=t.data.y-e.data.y;return n*n+a*a<400&&e.time-t.time<25}(s,u)&&fe.pop(),fe.push(u),I(he),he=D(ve,500,10)}}function ve(t){Ot(ta.bind(this,t))}var ge=null,me=null,be=null;function ye(t){var e=(t.nodeType===Node.DOCUMENT_NODE?t:document).getSelection();if(null!==e&&!(null===e.anchorNode&&null===e.focusNode||e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset)){var n=ge.start?ge.start:null;null!==me&&null!==ge.start&&n!==e.anchorNode&&(I(be),we(21)),ge={start:e.anchorNode,startOffset:e.anchorOffset,end:e.focusNode,endOffset:e.focusOffset},me=e,I(be),be=D(we,500,21)}}function we(t){Ot(ta.bind(this,t))}function ke(){me=null,ge={start:0,startOffset:0,end:0,endOffset:0}}var Ee,Oe,Me=[];function Se(t){Me.push({time:l(),event:39,data:{target:Qn(t)}}),Ot(ta.bind(this,39))}function Ne(){Me=[]}function _e(t){Ee={name:t.type},ta(26),ai()}function xe(){Ee=null}function Te(){Oe={visible:"visibilityState"in document?document.visibilityState:"default"},ta(28)}function De(){Oe=null}function Ie(t){!function(t){var e=_n(t);xr(e?e.contentWindow:t===document?window:t,"scroll",pe,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(qt(t),function(t){xr(t,"cut",Gt.bind(this,0),!0),xr(t,"copy",Gt.bind(this,1),!0),xr(t,"paste",Gt.bind(this,2),!0)}(t),function(t){xr(t,"mousedown",ie.bind(this,13,t),!0),xr(t,"mouseup",ie.bind(this,14,t),!0),xr(t,"mousemove",ie.bind(this,12,t),!0),xr(t,"mousewheel",ie.bind(this,15,t),!0),xr(t,"dblclick",ie.bind(this,16,t),!0),xr(t,"touchstart",oe.bind(this,17,t),!0),xr(t,"touchend",oe.bind(this,18,t),!0),xr(t,"touchmove",oe.bind(this,19,t),!0),xr(t,"touchcancel",oe.bind(this,20,t),!0)}(t),function(t){xr(t,"input",$t,!0)}(t),function(t){xr(t,"selectstart",ye.bind(this,t),!0),xr(t,"selectionchange",ye.bind(this,t),!0)}(t),function(t){xr(t,"submit",Se,!0)}(t))}var Ce=Object.freeze({__proto__:null,start:function(){ea=[],aa(),Ft(),Zt(),se(),ee(),xr(window,"resize",le),le(),xr(document,"visibilitychange",Te),Te(),fe=[],pe(),ke(),Ne(),xr(window,"pagehide",_e)},stop:function(){ea=[],aa(),Ft(),Zt(),I(re),ae.length>0&&ce(ae[ae.length-1].event),I(Kt),ee(),de(),De(),I(he),fe=[],ke(),I(be),Ne(),xe()},observe:Ie}),je=/[^0-9\.]/g;function ze(t){for(var e=0,n=Object.keys(t);e<n.length;e++){var a=n[e],r=t[a];if("@type"===a&&"string"==typeof r)switch(r=(r=r.toLowerCase()).indexOf("article")>=0||r.indexOf("posting")>=0?"article":r){case"article":case"recipe":$a(5,t[a]),$a(8,t.creator),$a(18,t.headline);break;case"product":$a(5,t[a]),$a(10,t.name),$a(12,t.sku),t.brand&&$a(6,t.brand.name);break;case"aggregaterating":t.ratingValue&&(T(11,Le(t.ratingValue,100)),T(18,Le(t.bestRating)),T(19,Le(t.worstRating))),T(12,Le(t.ratingCount)),T(17,Le(t.reviewCount));break;case"person":$a(8,t.name);break;case"offer":$a(7,t.availability),$a(14,t.itemCondition),$a(13,t.priceCurrency),$a(12,t.sku),T(13,Le(t.price));break;case"brand":$a(6,t.name)}null!==r&&"object"==typeof r&&ze(r)}}function Le(t,e){if(void 0===e&&(e=1),null!==t)switch(typeof t){case"number":return Math.round(t*e);case"string":return Math.round(parseFloat(t.replace(je,""))*e)}return null}var Ae=["title","alt","onload","onfocus","onerror"],He=/[\r\n]+/g;function Re(e,n){var a=null;if(2===n&&!1===Ln(e))return a;0!==n&&e.nodeType===Node.TEXT_NODE&&e.parentElement&&"STYLE"===e.parentElement.tagName&&(e=e.parentNode);var r=!1===Ln(e)?"add":"update",i=e.parentElement?e.parentElement:null,o=e.ownerDocument!==document;switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:i=o&&e.parentNode?_n(e.parentNode):i;var u=e,c={tag:(o?"iframe:":"")+"*D",attributes:{name:u.name,publicId:u.publicId,systemId:u.systemId}};t[r](e,i,c,n);break;case Node.DOCUMENT_NODE:e===document&&En(document),Ye(e);break;case Node.DOCUMENT_FRAGMENT_NODE:var s=e;if(s.host)if(En(s),"function"===typeof s.constructor&&s.constructor.toString().indexOf("[native code]")>=0){Ye(s);for(var l="",d=0,f=("adoptedStyleSheets"in s?s.adoptedStyleSheets:[]);d<f.length;d++){l+=Xe(f[d])}var h={tag:"*S",attributes:{style:l}};t[r](e,s.host,h,n)}else t[r](e,s.host,{tag:"*P",attributes:{}},n);break;case Node.TEXT_NODE:if(i=i||e.parentNode,"update"===r||i&&Ln(i)&&"STYLE"!==i.tagName){var p={tag:"*T",value:e.nodeValue};t[r](e,i,p,n)}break;case Node.ELEMENT_NODE:var v=e,g=v.tagName,m=function(t){var e={},n=t.attributes;if(n&&n.length>0)for(var a=0;a<n.length;a++){var r=n[a].name;Ae.indexOf(r)<0&&(e[r]=n[a].value)}"INPUT"===t.tagName&&!("value"in e)&&t.value&&(e.value=t.value);return e}(v);switch(i=e.parentElement?e.parentElement:e.parentNode?e.parentNode:null,"http://www.w3.org/2000/svg"===v.namespaceURI&&(g="svg:"+g),g){case"HTML":i=o&&i?_n(i):null;var b={tag:(o?"iframe:":"")+g,attributes:m};t[r](e,i,b,n);break;case"SCRIPT":if("type"in m&&"application/ld+json"===m.type)try{ze(JSON.parse(v.text.replace(He,"")))}catch(t){}break;case"NOSCRIPT":break;case"META":var y="property"in m?"property":"name"in m?"name":null;if(y&&"content"in m){var w=m.content;switch(m[y]){case"og:title":$a(20,w);break;case"og:type":$a(19,w);break;case"generator":$a(21,w)}}break;case"HEAD":var k={tag:g,attributes:m};location&&(k.attributes["*B"]=location.protocol+"//"+location.hostname),t[r](e,i,k,n);break;case"STYLE":var E={tag:g,attributes:m,value:We(v)};t[r](e,i,E,n);break;case"IFRAME":var O=e,M={tag:g,attributes:m};Nn(O)&&(!function(t){!1===Ln(t)&&xr(t,"load",an.bind(this,t,"childList"),!0)}(O),M.attributes["*O"]="true",O.contentDocument&&O.contentWindow&&"loading"!==O.contentDocument.readyState&&(a=O.contentDocument)),t[r](e,i,M,n);break;default:var S={tag:g,attributes:m};v.shadowRoot&&(a=v.shadowRoot),t[r](e,i,S,n)}}return a}function Ye(t){Ln(t)||(!function(t){try{var e=c("MutationObserver"),n=e in window?new window[e](Nr(Qe)):null;n&&(n.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),Pe.push(n))}catch(t){_a(2,0,t?t.name:null)}}(t),Ie(t))}function We(t){var e=t.textContent?t.textContent.trim():"",n=t.dataset?Object.keys(t.dataset).length:0;return(0===e.length||n>0)&&(e=Xe(t.sheet)),e}function Xe(t){var e="",n=null;try{n=t?t.cssRules:[]}catch(t){if(_a(1,1,t?t.name:null),t&&"SecurityError"!==t.name)throw t}if(null!==n)for(var a=0;a<n.length;a++)e+=n[a].cssText;return e}function qe(t,e,n){return Q(this,void 0,void 0,(function(){var a,r,i,o,u;return $(this,(function(c){switch(c.label){case 0:a=[t],c.label=1;case 1:if(!(a.length>0))return[3,4];for(r=a.shift(),i=r.firstChild;i;)a.push(i),i=i.nextSibling;return 0!==(o=St(e))?[3,3]:[4,xt(e)];case 2:o=c.sent(),c.label=3;case 3:return 2===o?[3,4]:((u=Re(r,n))&&a.push(u),[3,1]);case 4:return[2]}}))}))}var Pe=[],Ue=[],Be=null,Ve=null,Fe=null,Je=[],Ge=null,Ze=null,Ke={};function Qe(t){var e=l();Y(6,e),Ue.push({time:e,mutations:t}),Ot($e,1).then((function(){Nr(Rt)(),Nr(Fn)()}))}function $e(){return Q(this,void 0,void 0,(function(){var t,e,n,a,r,i,o,u,c;return $(this,(function(s){switch(s.label){case 0:Nt(t={id:cr(),cost:3}),s.label=1;case 1:if(!(Ue.length>0))return[3,8];e=Ue.shift(),n=0,a=e.mutations,s.label=2;case 2:return n<a.length?(r=a[n],0!==(i=St(t))?[3,4]:[4,xt(t)]):[3,6];case 3:i=s.sent(),s.label=4;case 4:if(2===i)return[3,6];switch(o=r.target,u=function(t,e){var n=t.target?jn(t.target.parentNode):null;if(n&&"HTML"!==n.data.tag){var a=l()>Ze,r=jn(t.target),i=r&&r.selector?r.selector.join():t.target.nodeName,o=[n.selector?n.selector.join():"",i,t.attributeName,tn(t.addedNodes),tn(t.removedNodes)].join();Ke[o]=o in Ke?Ke[o]:[0];var u=Ke[o];if(!1===a&&u[0]>=10&&en(u[1],2,e),u[0]=a?u[0]+1:1,10===u[0])return u[1]=t.removedNodes,"suspend";if(u[0]>10)return""}return t.type}(r,t),u&&o&&o.ownerDocument&&En(o.ownerDocument),u&&o&&o.nodeType==Node.DOCUMENT_FRAGMENT_NODE&&o.host&&En(o),u){case"attributes":Re(o,3);break;case"characterData":Re(o,4);break;case"childList":en(r.addedNodes,1,t),en(r.removedNodes,2,t);break;case"suspend":(c=jn(o))&&(c.metadata.suspend=!0)}s.label=5;case 5:return n++,[3,2];case 6:return[4,jt(6,t,e.time)];case 7:return s.sent(),[3,1];case 8:return _t(t),[2]}}))}))}function tn(t){for(var e=[],n=0;t&&n<t.length;n++)e.push(t[n].nodeName);return e.join()}function en(t,e,n){return Q(this,void 0,void 0,(function(){var a,r,i;return $(this,(function(o){switch(o.label){case 0:a=t?t.length:0,r=0,o.label=1;case 1:return r<a?1!==e?[3,2]:(qe(t[r],n,e),[3,5]):[3,6];case 2:return 0!==(i=St(n))?[3,4]:[4,xt(n)];case 3:i=o.sent(),o.label=4;case 4:if(2===i)return[3,6];Re(t[r],e),o.label=5;case 5:return r++,[3,1];case 6:return[2]}}))}))}function nn(t,e){return void 0===e&&(e=!1),Je.indexOf(t)<0&&Je.push(t),Ge&&I(Ge),Ge=D((function(){!function(t){for(var e=0,n=Je;e<n.length;e++){var a=n[e];if(a){var r=a.nodeType===Node.DOCUMENT_FRAGMENT_NODE;if(r&&Ln(a))continue;an(a,r||t?"childList":"characterData")}}Je=[]}(e)}),33),t}function an(t,e){Nr(Qe)([{addedNodes:[t],attributeName:null,attributeNamespace:null,nextSibling:null,oldValue:null,previousSibling:null,removedNodes:[],target:t,type:e}])}var rn=1,on=[],un=[],cn=[],sn={},ln=[],dn=[],fn={},hn=[],pn=[],vn=null,gn=null,mn=null,bn=null;function yn(){kn(),En(document,!0)}function wn(){kn()}function kn(){rn=1,on=[],un=[],cn=[],sn={},ln=[],dn=[],hn="password,secret,pass,social,ssn,name,code,dob,cell,mob,contact,hidden,account,cvv,ccv,email,tel,phone,address,addr,card,zip".split(","),pn="radio,checkbox,range,button,reset,submit".split(","),vn=new WeakMap,gn=new WeakMap,mn=new WeakMap,bn=new WeakMap}function En(t,e){void 0===e&&(e=!1);try{e&&u.unmask.forEach((function(t){return t.indexOf("!")<0?dn.push(t):ln.push(t.substr(1))})),"querySelectorAll"in t&&(u.regions.forEach((function(e){return t.querySelectorAll(e[1]).forEach((function(t){return Bn(t,"".concat(e[0]))}))})),u.mask.forEach((function(e){return t.querySelectorAll(e).forEach((function(t){return mn.set(t,3)}))})),u.fraud.forEach((function(e){return t.querySelectorAll(e[1]).forEach((function(t){return bn.set(t,e[0])}))})),dn.forEach((function(e){return t.querySelectorAll(e).forEach((function(t){return mn.set(t,0)}))})))}catch(t){_a(5,1,t?t.name:null)}}function On(t,e){if(void 0===e&&(e=!1),null===t)return null;var n=vn.get(t);return!n&&e&&(n=rn++,vn.set(t,n)),n||null}function Mn(t,e,n,a){var r,i=On(t,!0),o=e?On(e):null,c=Hn(t),s=null,l=Vn(t)?i:null,d=null,f=bn.has(t)?bn.get(t):null,h=u.content?1:2;o>=0&&un[o]&&((s=un[o]).children.push(i),l=null===l?s.region:l,d=s.fragment,f=null===f?s.metadata.fraud:f),n.attributes&&"data-clarity-region"in n.attributes&&(Bn(t,n.attributes["data-clarity-region"]),l=i),on[i]=t,un[i]={id:i,parent:o,previous:c,children:[],data:n,selector:null,hash:null,region:l,metadata:{active:!0,suspend:!1,privacy:h,position:null,fraud:f,size:null},fragment:d},function(t,e,n){var a=e.data,r=e.metadata,i=r.privacy,o=a.attributes||{},u=a.tag.toUpperCase();switch(!0){case"data-clarity-mask"in o:r.privacy=3;break;case"data-clarity-unmask"in o:r.privacy=0;break;case mn.has(t):r.privacy=mn.get(t);break;case bn.has(t):r.privacy=2;break;case"*T"===u:var c=n&&n.data?n.data.tag:"",s=n&&n.selector?n.selector[0]:"";r.privacy="STYLE"===c||"TITLE"===c||ln.some((function(t){return s.indexOf(t)>=0}))?0:i;break;case"type"in o:r.privacy=xn(o.type,r);break;case"INPUT"===u&&0===i:var l="";Object.keys(o).forEach((function(t){return l+=o[t].toLowerCase()})),r.privacy=xn(l,r);break;case 1===i&&"INPUT"===u:r.privacy=pn.indexOf(o.type)>=0?0:i;break;case 1===i:r.privacy=xn(o.class,r);break;default:r.privacy=n?n.metadata.privacy:r.privacy}}(t,un[i],s),Dn(un[i]),"IMG"===(r=un[i]).data.tag&&3===r.metadata.privacy&&(r.metadata.size=[]),Rn(i,a,un[i].fragment)}function Sn(t,e,n,a){var r=On(t),i=e?On(e):null,o=Hn(t),u=!1,c=!1;if(r in un){var s=un[r];if(s.metadata.active=!0,s.previous!==o&&(u=!0,s.previous=o),s.parent!==i){u=!0;var l=s.parent;if(s.parent=i,null!==i&&i>=0){var d=null===o?0:un[i].children.indexOf(o)+1;un[i].children.splice(d,0,r),s.region=Vn(t)?r:un[i].region}else!function(t,e){if(t in un){var n=un[t];n.metadata.active=!1,n.parent=null,Rn(t,e)}}(r,a);if(null!==l&&l>=0){var f=un[l].children.indexOf(r);f>=0&&un[l].children.splice(f,1)}c=!0}for(var h in n)Tn(s.data,n,h)&&(u=!0,s.data[h]=n[h]);s.fragment&&fn[s.fragment]&&(u=!0),Dn(s),Rn(r,a,un[r].fragment,u,c)}}function Nn(t){var e=!1;if(t.nodeType===Node.ELEMENT_NODE&&"IFRAME"===t.tagName){var n=t;try{n.contentDocument&&(gn.set(n.contentDocument,n),e=!0)}catch(t){}}return e}function _n(t){var e=t.nodeType===Node.DOCUMENT_NODE?t:null;return e&&gn.has(e)?gn.get(e):null}function xn(t,e){return t&&hn.some((function(e){return t.indexOf(e)>=0}))?2:e.privacy}function Tn(t,e,n){if("object"==typeof t[n]&&"object"==typeof e[n]){for(var a in t[n])if(t[n][a]!==e[n][a])return!0;for(var a in e[n])if(e[n][a]!==t[n][a])return!0;return!1}return t[n]!==e[n]}function Dn(t){var e=t.parent&&t.parent in un?un[t.parent]:null,n=e?e.selector:null,a=t.data,r=function(t,e){e.metadata.position=1;for(var n=t?t.children.indexOf(e.id):-1;n-- >0;){var a=un[t.children[n]];if(e.data.tag===a.data.tag){e.metadata.position=a.metadata.position+1;break}}return e.metadata.position}(e,t),i={tag:a.tag,prefix:n,position:r,attributes:a.attributes};t.selector=[vt(i),vt(i,!0)],t.hash=t.selector.map((function(t){return t?f(t):null})),t.hash.forEach((function(e){return sn[e]=t.id})),t.hash.some((function(t){return-1!==ja.indexOf(t)}))&&(t.fragment=t.id)}function In(t){return t in on?on[t]:null}function Cn(t){return t in un?un[t]:null}function jn(t){var e=On(t);return e in un?un[e]:null}function zn(t){return t in sn?sn[t]:null}function Ln(t){return On(t)in on}function An(){for(var t=[],e=0,n=cn;e<n.length;e++){(a=n[e])in un&&t.push(un[a])}for(var a in cn=[],fn)Ra(fn[a],a,!0);return fn={},t}function Hn(t){for(var e=null;null===e&&t.previousSibling;)e=On(t.previousSibling),t=t.previousSibling;return e}function Rn(t,e,n,a,r){if(void 0===n&&(n=null),void 0===a&&(a=!0),void 0===r&&(r=!1),n&&!fn[n]){var i=In(n),o=Cn(n);i&&o&&(nn(i,!0),o.hash.forEach((function(t){-1!==ja.indexOf(t)&&(fn[n]=t)})))}var u=cn.indexOf(t);u>=0&&1===e&&r?(cn.splice(u,1),cn.push(t)):-1===u&&a&&cn.push(t)}var Yn=[],Wn=null,Xn={},qn=[],Pn=!1,Un=null;function Bn(t,e){!1===Wn.has(t)&&(Wn.set(t,e),(Un=null===Un&&Pn?new IntersectionObserver(Jn,{threshold:[0,.2,.4,.6,.8,1]}):Un)&&t&&t.nodeType===Node.ELEMENT_NODE&&Un.observe(t))}function Vn(t){return Wn&&Wn.has(t)}function Fn(){for(var t=[],e=0,n=qn;e<n.length;e++){var a=n[e],r=On(a.node);r in Xn||(r?(a.data.id=r,Xn[r]=a.data,Yn.push(Zn(a.data))):t.push(a))}qn=t,Yn.length>0&&jt(7)}function Jn(t){for(var e=0,n=t;e<n.length;e++){var a=n[e],r=a.target,i=a.boundingClientRect,o=a.intersectionRect,u=a.rootBounds;if(Wn.has(r)&&i.width+i.height>0&&u.width>0&&u.height>0){var c=r?On(r):null,s=c in Xn?Xn[c]:{id:c,name:Wn.get(r),interaction:16,visibility:0},l=(o?o.width*o.height*1/(u.width*u.height):0)>.05||a.intersectionRatio>.8,d=(l||10==s.visibility)&&Math.abs(i.top)+u.height>i.height;Gn(r,s,s.interaction,d?13:l?10:0),s.visibility>=13&&Un&&Un.unobserve(r)}}Yn.length>0&&jt(7)}function Gn(t,e,n,a){var r=n>e.interaction||a>e.visibility;e.interaction=n>e.interaction?n:e.interaction,e.visibility=a>e.visibility?a:e.visibility,e.id?(e.id in Xn&&r||!(e.id in Xn))&&(Xn[e.id]=e,Yn.push(Zn(e))):qn.push({node:t,data:e})}function Zn(t){return{time:l(),data:{id:t.id,interaction:t.interaction,visibility:t.visibility,name:t.name}}}function Kn(){Yn=[]}function Qn(t){var e=t.composed&&t.composedPath?t.composedPath():null,n=e&&e.length>0?e[0]:t.target;return Ze=l()+3e3,n.nodeType===Node.DOCUMENT_NODE?n.documentElement:n}function $n(t,e,n){void 0===n&&(n=null);var a={id:0,hash:null,privacy:2,node:t};if(t){var r=jn(t);if(null!==r){var i=r.metadata;a.id=r.id,a.hash=r.hash,a.privacy=i.privacy,r.region&&function(t,e){var n=In(t),a=t in Xn?Xn[t]:{id:t,visibility:0,interaction:16,name:Wn.get(n)},r=16;switch(e){case 9:r=20;break;case 27:r=30}Gn(n,a,r,a.visibility)}(r.region,e),i.fraud&&ht(i.fraud,r.id,n||r.data.value)}}return a}function ta(t){return Q(this,void 0,void 0,(function(){var e,n,a,r,i,o,u,c,s,d,f,h,p,v,g,b,w,k,E,O,M,S,N,_,x,T,D,I,C;return $(this,(function(j){switch(e=l(),n=[e,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(a=0,r=ae;a<r.length;a++)I=r[a],(i=$n(I.data.target,I.event)).id>0&&((n=[I.time,I.event]).push(i.id),n.push(I.data.x),n.push(I.data.y),va(n),m(I.event,I.data.x,I.data.y));se();break;case 9:for(o=0,u=Xt;o<u.length;o++)I=u[o],c=$n(I.data.target,I.event,I.data.text),n=[I.time,I.event],s=c.hash.join("."),n.push(c.id),n.push(I.data.x),n.push(I.data.y),n.push(I.data.eX),n.push(I.data.eY),n.push(I.data.button),n.push(I.data.reaction),n.push(I.data.context),n.push(ut(I.data.text,"click",c.privacy)),n.push(I.data.link),n.push(s),n.push(I.data.trust),va(n),ra(I.time,I.event,s,I.data.x,I.data.y,I.data.reaction,I.data.context);Ft();break;case 38:for(d=0,f=Jt;d<f.length;d++)I=f[d],n=[I.time,I.event],(x=$n(I.data.target,I.event)).id>0&&(n.push(x.id),n.push(I.data.action),va(n));Zt();break;case 11:h=ne,n.push(h.width),n.push(h.height),m(t,h.width,h.height),de(),va(n);break;case 26:p=Ee,n.push(p.name),xe(),va(n);break;case 27:for(v=0,g=Qt;v<g.length;v++)I=g[v],b=$n(I.data.target,I.event,I.data.value),(n=[I.time,I.event]).push(b.id),n.push(ut(I.data.value,"input",b.privacy)),va(n);ee();break;case 21:(w=ge)&&(k=$n(w.start,t),E=$n(w.end,t),n.push(k.id),n.push(w.startOffset),n.push(E.id),n.push(w.endOffset),ke(),va(n));break;case 10:for(O=0,M=fe;O<M.length;O++)I=M[O],(S=$n(I.data.target,I.event)).id>0&&((n=[I.time,I.event]).push(S.id),n.push(I.data.x),n.push(I.data.y),va(n),m(I.event,I.data.x,I.data.y));fe=[];break;case 39:for(N=0,_=Me;N<_.length;N++)I=_[N],n=[I.time,I.event],(x=$n(I.data.target,I.event)).id>0&&(n.push(x.id),va(n));Ne();break;case 22:for(T=0,D=na;T<D.length;T++)I=D[T],(n=[I.time,I.event]).push(I.data.type),n.push(I.data.hash),n.push(I.data.x),n.push(I.data.y),n.push(I.data.reaction),n.push(I.data.context),va(n,!1);aa();break;case 28:C=Oe,n.push(C.visible),va(n),y(e,C.visible),De()}return[2]}))}))}var ea=[],na=[];function aa(){na=[]}function ra(t,e,n,a,r,i,o){void 0===i&&(i=1),void 0===o&&(o=0),ea.push({time:t,event:22,data:{type:e,hash:n,x:a,y:r,reaction:i,context:o}}),m(e,a,r)}var ia,oa,ua,ca,sa,la=0,da=0,fa=null,ha=0;function pa(){ca=!0,la=0,da=0,ha=0,ia=[],oa=[],ua={},sa=null}function va(t,e){if(void 0===e&&(e=!0),ca){var n=l(),a=t.length>1?t[1]:null,r=JSON.stringify(t);switch(a){case 5:la+=r.length;case 37:case 6:da+=r.length,ia.push(r);break;default:oa.push(r)}_(25);var i=function(){var t=!1===u.lean&&la>0?100:wr.sequence*u.delay;return"string"==typeof u.upload?Math.max(Math.min(t,3e4),100):u.delay}();n-ha>2*i&&(I(fa),fa=null),e&&null===fa&&(25!==a&&L(),fa=D(ma,i),ha=n,Ba(da))}}function ga(){I(fa),ma(!0),la=0,da=0,ha=0,ia=[],oa=[],ua={},sa=null,ca=!1}function ma(t){return void 0===t&&(t=!1),Q(this,void 0,void 0,(function(){var e,n,a,r,i,o,c,s;return $(this,(function(l){switch(l.label){case 0:return fa=null,(e=!1===u.lean&&da>0&&(da<1048576||wr.sequence>0))&&T(1,1),Fn(),function(){var t=[];na=[];for(var e=wr.start+wr.duration,n=Math.max(e-2e3,0),a=0,r=ea;a<r.length;a++){var i=r[a];i.time>=n&&(i.time<=e&&na.push(i),t.push(i))}ea=t,ta(22)}(),ot(),n=!0===t,a=JSON.stringify(Or(n)),r="[".concat(oa.join(),"]"),i=e?"[".concat(ia.join(),"]"):"",o=function(t){return t.p.length>0?'{"e":'.concat(t.e,',"a":').concat(t.a,',"p":').concat(t.p,"}"):'{"e":'.concat(t.e,',"a":').concat(t.a,"}")}({e:a,a:r,p:i}),n?(s=null,[3,3]):[3,1];case 1:return[4,et(o)];case 2:s=l.sent(),l.label=3;case 3:return x(2,(c=s)?c.length:o.length),ba(o,c,wr.sequence,n),oa=[],e&&(ia=[],da=0,la=0),[2]}}))}))}function ba(t,e,n,a){if(void 0===a&&(a=!1),"string"==typeof u.upload){var r=u.upload,i=!1;if(a&&"sendBeacon"in navigator)try{(i=navigator.sendBeacon.bind(navigator)(r,t))&&wa(n)}catch(t){}if(!1===i){n in ua?ua[n].attempts++:ua[n]={data:t,attempts:1};var o=new XMLHttpRequest;o.open("POST",r),null!==n&&(o.onreadystatechange=function(){Nr(ya)(o,n)}),o.withCredentials=!0,e?(o.setRequestHeader("Accept","application/x-clarity-gzip"),o.send(e)):o.send(t)}}else if(u.upload){(0,u.upload)(t),wa(n)}}function ya(t,e){var n=ua[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Va(6):(0===t.status&&(u.upload=u.fallback?u.fallback:u.upload),ba(n.data,null,e)):(sa={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&Pa(2),200===t.status&&t.responseText&&function(t){switch(t&&t.length>0?t.split(" ")[0]:""){case"END":Va(6);break;case"UPGRADE":U("Auto")}}(t.responseText),0===t.status&&(ba(n.data,null,e,!0),Va(3)),t.status>=200&&t.status<=208&&wa(e),delete ua[e]))}function wa(t){1===t&&dr()}var ka,Ea={};function Oa(t){var e=t.error||t;return e.message in Ea||(Ea[e.message]=0),Ea[e.message]++>=5||e&&e.message&&(ka={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},Ma(31)),!0}function Ma(t){return Q(this,void 0,void 0,(function(){var e;return $(this,(function(n){switch(e=[l(),t],t){case 31:e.push(ka.message),e.push(ka.line),e.push(ka.column),e.push(ka.stack),e.push(ka.source),va(e);break;case 33:Sa&&(e.push(Sa.code),e.push(Sa.name),e.push(Sa.message),e.push(Sa.stack),e.push(Sa.severity),va(e,!1));break;case 41:dt&&(e.push(dt.id),e.push(dt.target),e.push(dt.hash),va(e,!1))}return[2]}))}))}var Sa,Na={};function _a(t,e,n,a,r){void 0===n&&(n=null),void 0===a&&(a=null),void 0===r&&(r=null);var i=n?"".concat(n,"|").concat(a):"";t in Na&&Na[t].indexOf(i)>=0||(Sa={code:t,name:n,message:a,stack:r,severity:e},t in Na?Na[t].push(i):Na[t]=[i],Ma(33))}var xa,Ta={},Da=[],Ia={},Ca={},ja=[];function za(){try{var t=u.extract;if(!t)return;for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1];switch(n){case 0:var r=t[e+2];Ia[a]=Wa(r);break;case 1:break;case 2:var i=t[e+2];Ca[a]=i;break;case 3:ja=t[e+2]}}}catch(t){_a(8,1,t?t.name:null)}}function La(t){return JSON.parse(JSON.stringify(t))}function Aa(){try{for(var t in Ia){var e=(r=Xa(La(Ia[t])))?JSON.stringify(r).substring(0,1e4):r;e&&Ra(t,e)}for(var n in Ca){var a=document.querySelector(Ca[n]);a&&Ra(n,a.innerText)}}catch(t){_a(5,1,t?t.name:null)}var r;Pa(40)}function Ha(){Da=[]}function Ra(t,e,n){void 0===n&&(n=!1),(!(t in Ta)||t in Ta&&Ta[t]!==e||n)&&(Ta[t]=e,Da.push(t))}function Ya(){Ta={},Da=[],Ia={},Ca={}}function Wa(t){for(var e=[],n=t.split(".");n.length>0;){var a=n.shift(),r=a.indexOf("["),i=a.indexOf("{"),o=a.indexOf("}");e.push({name:r>0?a.substring(0,r):i>0?a.substring(0,i):a,type:r>0?1:i>0?2:3,condition:i>0?a.substring(i+1,o):null})}return e}function Xa(t,e){if(void 0===e&&(e=window),0==t.length)return e;var n,a=t.shift();if(e&&e[a.name]){var r=e[a.name];if(1!==a.type&&qa(r,a.condition))n=Xa(t,r);else if(Array.isArray(r)){for(var i=[],o=0,u=r;o<u.length;o++){var c=u[o];if(qa(c,a.condition)){var s=Xa(t,c);s&&i.push(s)}}n=i}return n}return null}function qa(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}function Pa(t){var e=[l(),t];switch(t){case 4:var n=h;n&&((e=[n.time,n.event]).push(n.data.visible),e.push(n.data.docWidth),e.push(n.data.docHeight),e.push(n.data.screenWidth),e.push(n.data.screenHeight),e.push(n.data.scrollX),e.push(n.data.scrollY),e.push(n.data.pointerX),e.push(n.data.pointerY),e.push(n.data.activityTime),va(e,!1)),g();break;case 25:e.push(M.gap),va(e);break;case 35:e.push(xa.check),va(e,!1);break;case 3:e.push(P.key),va(e);break;case 2:e.push(sa.sequence),e.push(sa.attempts),e.push(sa.status),va(e,!1);break;case 24:e.push(E.key),e.push(E.value),va(e);break;case 34:var a=Object.keys(V);if(a.length>0){for(var r=0,i=a;r<i.length;r++){var o=i[r];e.push(o),e.push(V[o])}K(),va(e,!1)}break;case 0:var u=Object.keys(N);if(u.length>0){for(var c=0,s=u;c<s.length;c++){var d=s[c],f=parseInt(d,10);e.push(f),e.push(Math.round(N[d]))}N={},va(e,!1)}break;case 1:var p=Object.keys(Za);if(p.length>0){for(var v=0,m=p;v<m.length;v++){var b=m[v];f=parseInt(b,10);e.push(f),e.push(Za[b])}er(),va(e,!1)}break;case 36:var y=Object.keys(R);if(y.length>0){for(var w=0,k=y;w<k.length;w++){var O=k[w];f=parseInt(O,10);e.push(f),e.push([].concat.apply([],R[O]))}X(),va(e,!1)}break;case 40:for(var S=0,_=Da;S<_.length;S++){O=_[S];e.push(O),e.push(Ta[O])}Ha(),va(e,!1)}}function Ua(){xa={check:0}}function Ba(t){if(0===xa.check){var e=xa.check;e=wr.sequence>=128?1:e,e=l()>72e5?2:e,(e=t>10485760?2:e)!==xa.check&&Va(e)}}function Va(t){xa.check=t,lr(),ai()}function Fa(){0!==xa.check&&Pa(35)}function Ja(){xa=null}var Ga=null,Za=null;function Ka(){Ga={},Za={}}function Qa(){Ga={},Za={}}function $a(t,e){e&&(e="".concat(e),t in Ga||(Ga[t]=[]),Ga[t].indexOf(e)<0&&(Ga[t].push(e),t in Za||(Za[t]=[]),Za[t].push(e),Ga[t].length>128&&Va(5)))}function tr(){Pa(1)}function er(){Za={}}var nr=null,ar=[],rr=null;function ir(){rr=null;var t=navigator&&"userAgent"in navigator?navigator.userAgent:"",e=document&&document.title?document.title:"",n=function(){var t={session:pr(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=mr("_clsk");if(e){var n=e.split("|");n.length>=5&&t.ts-vr(n[1])<18e5&&(t.session=n[0],t.count=vr(n[2])+1,t.upgrade=vr(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),a=gr();nr={projectId:u.projectId||f(location.host),userId:a.id,sessionId:n.session,pageNum:n.count},u.lean=u.track&&null!==n.upgrade?0===n.upgrade:u.lean,u.upload=u.track&&"string"==typeof u.upload&&n.upload&&n.upload.length>"https://".length?n.upload:u.upload,$a(0,t),$a(3,e),$a(1,location.href),$a(2,document.referrer),$a(15,function(){var t=pr();if(u.track&&fr(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),$a(16,document.documentElement.lang),$a(17,document.dir),navigator&&($a(9,navigator.userLanguage||navigator.language),navigator.userAgentData&&navigator.userAgentData.getHighEntropyValues&&navigator.userAgentData.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;$a(22,t.platform),$a(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){$a(24,t.name+"~"+t.version)})),$a(25,t.model),T(27,t.mobile?1:0)}))),T(0,n.ts),T(1,0),screen&&(T(14,Math.round(screen.width)),T(15,Math.round(screen.height)),T(16,Math.round(screen.colorDepth)));for(var r=0,i=u.cookies;r<i.length;r++){var o=i[r],c=mr(o);c&&F(o,c)}hr(a)}function or(){rr=null,nr=null}function ur(t,e){void 0===e&&(e=!0),nr&&!1===e&&t(nr,!u.lean),ar.push({callback:t,wait:e})}function cr(){return nr?[nr.userId,nr.sessionId,nr.pageNum].join("."):""}function sr(){Xr()&&(u.track=!0,hr(gr(),1))}function lr(){br("_clsk","",0)}function dr(){var t=Math.round(Date.now()),e=u.upload&&"string"==typeof u.upload?u.upload.replace("https://",""):"",n=u.lean?0:1;!function(t){ar.length>0&&ar.forEach((function(e){!e.callback||e.wait&&!t||e.callback(nr,!u.lean)}))}(n),br("_clsk",[nr.sessionId,t,nr.pageNum,n,e].join("|"),1)}function fr(t,e){try{return!!t[e]}catch(t){return!1}}function hr(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5);(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e)&&br("_clck",[nr.userId,1,n.toString(36),e].join("|"),365)}function pr(){var t=Math.floor(Math.random()*Math.pow(2,32));return window&&window.crypto&&window.crypto.getRandomValues&&Uint32Array&&(t=window.crypto.getRandomValues(new Uint32Array(1))[0]),t.toString(36)}function vr(t,e){return void 0===e&&(e=10),parseInt(t,e)}function gr(){var t={id:pr(),expiry:null,consent:0},e=mr("_clck");if(e&&e.length>0){for(var n=e.split("|"),a=0,r=0,i=document.cookie.split(";");r<i.length;r++){a+="_clck"===i[r].split("=")[0].trim()?1:0}if(1===n.length||a>1){var o="".concat(";").concat("expires=").concat(new Date(0).toUTCString()).concat(";path=/");document.cookie="".concat("_clck","=").concat(o),document.cookie="".concat("_clsk","=").concat(o)}n.length>2&&(t.expiry=vr(n[2],36)),n.length>3&&1===vr(n[3])&&(t.consent=1),u.track=u.track||1===t.consent,t.id=u.track?n[0]:t.id}return t}function mr(t){if(fr(document,"cookie")){var e=document.cookie.split(";");if(e)for(var n=0;n<e.length;n++){var a=e[n].split("=");if(a.length>1&&a[0]&&a[0].trim()===t)return a[1]}}return null}function br(t,e,n){if(u.track&&(navigator&&navigator.cookieEnabled||fr(document,"cookie"))){var a=new Date;a.setDate(a.getDate()+n);var r=a?"expires="+a.toUTCString():"",i="".concat(t,"=").concat(e).concat(";").concat(r).concat(";path=/");try{if(null===rr){for(var o=location.hostname?location.hostname.split("."):[],c=o.length-1;c>=0;c--)if(rr=".".concat(o[c]).concat(rr||""),c<o.length-1&&(document.cookie="".concat(i).concat(";").concat("domain=").concat(rr),mr(t)===e))return;rr=""}}catch(t){rr=""}document.cookie=rr?"".concat(i).concat(";").concat("domain=").concat(rr):i}}var yr,wr=null;function kr(){var t=nr;wr={version:d,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0}}function Er(){wr=null}function Or(t){return wr.start=wr.start+wr.duration,wr.duration=l()-wr.start,wr.sequence++,wr.upload=t&&"sendBeacon"in navigator?1:0,wr.end=t?1:0,[wr.version,wr.sequence,wr.start,wr.duration,wr.projectId,wr.userId,wr.sessionId,wr.pageNum,wr.upload,wr.end]}function Mr(){yr=[]}function Sr(t){if(yr&&-1===yr.indexOf(t.message)){var e=u.report;if(e&&e.length>0){var n={v:wr.version,p:wr.projectId,u:wr.userId,s:wr.sessionId,n:wr.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var a=new XMLHttpRequest;a.open("POST",e),a.send(JSON.stringify(n)),yr.push(t.message)}}return t}function Nr(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw Sr(t)}var n=performance.now()-e;x(4,n),n>30&&(_(7),T(6,n))}}var _r=[];function xr(t,e,n,a){void 0===a&&(a=!1),n=Nr(n);try{t[c("addEventListener")](e,n,a),_r.push({event:e,target:t,listener:n,capture:a})}catch(t){}}function Tr(){for(var t=0,e=_r;t<e.length;t++){var n=e[t];try{n.target[c("removeEventListener")](n.event,n.listener,n.capture)}catch(t){}}_r=[]}var Dr=null,Ir=null,Cr=null,jr=0;function zr(){return!(jr++>20)||(_a(4,0),!1)}function Lr(){jr=0,Cr!==Hr()&&(ai(),window.setTimeout(Ar,250))}function Ar(){ni(),T(29,1)}function Hr(){return location.href?location.href.replace(location.hash,""):location.href}var Rr=!1;function Yr(){Rr=!0,s=performance.now(),Et(),Tr(),Mr(),Cr=Hr(),jr=0,xr(window,"popstate",Lr),null===Dr&&(Dr=history.pushState,history.pushState=function(){Dr.apply(this,arguments),Xr()&&zr()&&Lr()}),null===Ir&&(Ir=history.replaceState,history.replaceState=function(){Ir.apply(this,arguments),Xr()&&zr()&&Lr()})}function Wr(){Cr=null,jr=0,Mr(),Tr(),Et(),s=0,Rr=!1}function Xr(){return Rr}function qr(t){if(null===t||Rr)return!1;for(var e in t)e in u&&(u[e]=t[e]);return!0}function Pr(){ni(),O("clarity","restart")}var Ur=Object.freeze({__proto__:null,start:function(){ft=[],T(26,navigator.webdriver?1:0),xr(window,"error",Oa),Ea={},Na={}},stop:function(){Na={}}});function Br(){return Q(this,void 0,void 0,(function(){var t,e;return $(this,(function(n){switch(n.label){case 0:return t=l(),Nt(e={id:cr(),cost:3}),[4,qe(document,e,0)];case 1:return n.sent(),[4,jt(5,e,t)];case 2:return n.sent(),_t(e),[2]}}))}))}var Vr=Object.freeze({__proto__:null,start:function(){Ht(),Rt(),Kn(),Un=null,Wn=new WeakMap,Xn={},qn=[],Pn=!!window.IntersectionObserver,yn(),function(){if(Pe=[],Je=[],Ge=null,Ze=0,Ke={},null===Be&&(Be=CSSStyleSheet.prototype.insertRule,CSSStyleSheet.prototype.insertRule=function(){return Xr()&&nn(this.ownerNode),Be.apply(this,arguments)}),null===Ve&&(Ve=CSSStyleSheet.prototype.deleteRule,CSSStyleSheet.prototype.deleteRule=function(){return Xr()&&nn(this.ownerNode),Ve.apply(this,arguments)}),null===Fe){Fe=Element.prototype.attachShadow;try{Element.prototype.attachShadow=function(){return Xr()?nn(Fe.apply(this,arguments)):Fe.apply(this,arguments)}}catch(t){Fe=null}}}(),Ot(Br,1).then((function(){Nr(Rt)(),Nr(Fn)()}))},stop:function(){Kn(),Wn=null,Xn={},qn=[],Un&&(Un.disconnect(),Un=null),Pn=!1,wn(),function(){for(var t=0,e=Pe;t<e.length;t++){var n=e[t];n&&n.disconnect()}Pe=[],Ke={},Ue=[],Je=[],Ze=0,Ge=null}(),Ht()}});var Fr,Jr=null;function Gr(){Jr=null}function Zr(t){Jr={fetchStart:Math.round(t.fetchStart),connectStart:Math.round(t.connectStart),connectEnd:Math.round(t.connectEnd),requestStart:Math.round(t.requestStart),responseStart:Math.round(t.responseStart),responseEnd:Math.round(t.responseEnd),domInteractive:Math.round(t.domInteractive),domComplete:Math.round(t.domComplete),loadEventStart:Math.round(t.loadEventStart),loadEventEnd:Math.round(t.loadEventEnd),redirectCount:Math.round(t.redirectCount),size:t.transferSize?t.transferSize:0,type:t.type,protocol:t.nextHopProtocol,encodedSize:t.encodedBodySize?t.encodedBodySize:0,decodedSize:t.decodedBodySize?t.decodedBodySize:0},function(t){Q(this,void 0,void 0,(function(){var e,n;return $(this,(function(a){return e=l(),n=[e,t],29===t&&(n.push(Jr.fetchStart),n.push(Jr.connectStart),n.push(Jr.connectEnd),n.push(Jr.requestStart),n.push(Jr.responseStart),n.push(Jr.responseEnd),n.push(Jr.domInteractive),n.push(Jr.domComplete),n.push(Jr.loadEventStart),n.push(Jr.loadEventEnd),n.push(Jr.redirectCount),n.push(Jr.size),n.push(Jr.type),n.push(Jr.protocol),n.push(Jr.encodedSize),n.push(Jr.decodedSize),Gr(),va(n,!1)),[2]}))}))}(29)}var Kr=["navigation","resource","longtask","first-input","layout-shift","largest-contentful-paint"];function Qr(){try{Fr&&Fr.disconnect(),Fr=new PerformanceObserver(Nr($r));for(var t=0,e=Kr;t<e.length;t++){var n=e[t];PerformanceObserver.supportedEntryTypes.indexOf(n)>=0&&("layout-shift"===n&&x(9,0),Fr.observe({type:n,buffered:!0}))}}catch(t){_a(3,1)}}function $r(t){!function(t){for(var e=(!("visibilityState"in document)||"visible"===document.visibilityState),n=0;n<t.length;n++){var a=t[n];switch(a.entryType){case"navigation":Zr(a);break;case"resource":var r=a.name;$a(4,ti(r)),r!==u.upload&&r!==u.fallback||T(28,a.duration);break;case"longtask":_(7);break;case"first-input":e&&T(10,a.processingStart-a.startTime);break;case"layout-shift":e&&!a.hadRecentInput&&x(9,1e3*a.value);break;case"largest-contentful-paint":e&&T(8,a.startTime)}}performance&&"memory"in performance&&performance.memory.usedJSHeapSize&&T(30,Math.abs(performance.memory.usedJSHeapSize/1048576))}(t.getEntries())}function ti(t){var e=document.createElement("a");return e.href=t,e.hostname}var ei=[Ur,Vr,Ce,Object.freeze({__proto__:null,start:function(){Gr(),function(){window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?"complete"!==document.readyState?xr(window,"load",D.bind(this,Qr,0)):Qr():_a(3,0)}()},stop:function(){Fr&&Fr.disconnect(),Fr=null,Gr()}})];function ni(t){void 0===t&&(t=null),function(){try{return!1===Rr&&"undefined"!=typeof Promise&&window.MutationObserver&&document.createTreeWalker&&"now"in Date&&"now"in performance&&"undefined"!=typeof WeakMap}catch(t){return!1}}()&&(qr(t),Yr(),rt(),ei.forEach((function(t){return Nr(t.start)()})))}function ai(){Xr()&&(ei.slice().reverse().forEach((function(t){return Nr(t.stop)()})),it(),Wr())}var ri=Object.freeze({__proto__:null,version:d,start:ni,pause:function(){Xr()&&(O("clarity","pause"),null===wt&&(wt=new Promise((function(t){kt=t}))))},resume:function(){Xr()&&(wt&&(kt(),wt=null,null===yt&&Mt()),O("clarity","resume"))},stop:ai,consent:sr,event:O,identify:J,set:F,upgrade:U,metadata:ur});!function(){if("undefined"!=typeof window){var t=window,e="clarity";if(t[e]&&t[e].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var n=t[e]&&t[e].q||[];for(t[e]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return ri[t].apply(ri,e)},t[e].v=d;n.length>0;)t[e].apply(t,n.shift())}}()}();
|
|
1
|
+
!function(){"use strict";var t=Object.freeze({__proto__:null,get start(){return yn},get stop(){return wn},get parse(){return En},get getId(){return On},get add(){return Mn},get update(){return Sn},get sameorigin(){return Nn},get iframe(){return _n},get getNode(){return In},get getValue(){return Cn},get get(){return jn},get lookup(){return zn},get has(){return Ln},get updates(){return An}}),e=Object.freeze({__proto__:null,get track(){return cr},get start(){return pr},get queue(){return vr},get stop(){return gr}}),n=Object.freeze({__proto__:null,get data(){return Tr},get keys(){return Dr},get fragments(){return jr},get start(){return zr},get clone(){return Lr},get compute(){return Ar},get reset(){return Hr},get update(){return Rr},get stop(){return Yr}}),r=Object.freeze({__proto__:null,get data(){return xr},get start(){return Ur},get check(){return Br},get trigger(){return Vr},get compute(){return Fr},get stop(){return Jr}}),a=Object.freeze({__proto__:null,get data(){return Gr},get updates(){return Zr},get start(){return Kr},get stop(){return Qr},get log(){return $r},get compute(){return ta},get reset(){return ea}}),i=Object.freeze({__proto__:null,get data(){return na},get callbacks(){return ra},get start(){return ia},get stop(){return oa},get metadata(){return ua},get id(){return sa},get consent(){return ca},get clear(){return la},get save(){return da}}),o=Object.freeze({__proto__:null,get data(){return wa},get start(){return ka},get stop(){return Ea},get envelope(){return Oa}}),u={projectId:null,delay:1e3,lean:!1,track:!0,content:!0,mask:[],unmask:[],regions:[],extract:[],cookies:[],fraud:[],report:null,upload:null,fallback:null,upgrade:null};function s(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var c=0;function l(t){return void 0===t&&(t=null),t=t||performance.now(),Math.max(Math.round(t-c),0)}var d="0.6.36";function f(t){for(var e=5381,n=e,r=0;r<t.length;r+=2){if(e=(e<<5)+e^t.charCodeAt(r),r+1<t.length)n=(n<<5)+n^t.charCodeAt(r+1)}return Math.abs(e+11579*n).toString(36)}var h=null,p=null,v=!1;function g(){v&&(h={time:l(),event:4,data:{visible:p.visible,docWidth:p.docWidth,docHeight:p.docHeight,screenWidth:p.screenWidth,screenHeight:p.screenHeight,scrollX:p.scrollX,scrollY:p.scrollY,pointerX:p.pointerX,pointerY:p.pointerY,activityTime:p.activityTime}}),p=p||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0}}function m(t,e,n){switch(t){case 8:p.docWidth=e,p.docHeight=n;break;case 11:p.screenWidth=e,p.screenHeight=n;break;case 10:p.scrollX=e,p.scrollY=n;break;default:p.pointerX=e,p.pointerY=n}v=!0}function b(t){p.activityTime=t}function y(t,e){p.visible="visible"===e?1:0,p.visible||b(t),v=!0}function w(){v&&Pr(4)}var k=Object.freeze({__proto__:null,get state(){return h},start:function(){v=!1,g()},reset:g,track:m,activity:b,visibility:y,compute:w,stop:function(){g()}}),E=null;function O(t,e){Xa()&&t&&e&&"string"==typeof t&&"string"==typeof e&&t.length<255&&e.length<255&&(E={key:t,value:e},Pr(24))}var M,S=null,N=null;function _(t){t in S||(S[t]=0),t in N||(N[t]=0),S[t]++,N[t]++}function x(t,e){null!==e&&(t in S||(S[t]=0),t in N||(N[t]=0),S[t]+=e,N[t]+=e)}function T(t,e){null!==e&&!1===isNaN(e)&&(t in S||(S[t]=0),(e>S[t]||0===S[t])&&(N[t]=e,S[t]=e))}function D(t,e,n){return window.setTimeout(Na(t),e,n)}function I(t){return window.clearTimeout(t)}var C=0,j=0,z=null;function L(){z&&I(z),z=D(A,j),C=l()}function A(){var t=l();M={gap:t-C},Pr(25),M.gap<3e5?z=D(A,j):Ra&&(O("clarity","suspend"),ei(),["mousemove","touchstart"].forEach((function(t){return xa(document,t,Pa)})),["resize","scroll","pageshow"].forEach((function(t){return xa(window,t,Pa)})))}var H=Object.freeze({__proto__:null,get data(){return M},start:function(){j=6e4,C=0},reset:L,stop:function(){I(z),C=0,j=0}}),R=null;function Y(t,e){if(t in R){var n=R[t],r=n[n.length-1];e-r[0]>100?R[t].push([e,0]):r[1]=e-r[0]}else R[t]=[[e,0]]}function W(){Pr(36)}function X(){R={}}var q=Object.freeze({__proto__:null,get data(){return R},start:function(){R={}},stop:function(){R={}},track:Y,compute:W,reset:X}),P=null;function U(t){Xa()&&u.lean&&(u.lean=!1,P={key:t},da(),u.upgrade&&u.upgrade(t),Pr(3))}var B=Object.freeze({__proto__:null,get data(){return P},start:function(){!u.lean&&u.upgrade&&u.upgrade("Config"),P=null},upgrade:U,stop:function(){P=null}}),V=null;function F(t,e){G(t,"string"==typeof e?[e]:e)}function J(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null),G("userId",[t]),G("sessionId",[e]),G("pageId",[n])}function G(t,e){if(Xa()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in V?V[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);V[t]=n}}function Z(){Pr(34)}function K(){V={}}function Q(t,e,n,r){return new(n||(n=Promise))((function(a,i){function o(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,u)}s((r=r.apply(t,e||[])).next())}))}function $(t,e){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=e.call(t,o)}catch(t){i=[6,t],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var tt="CompressionStream"in window;function et(t){return Q(this,void 0,void 0,(function(){var e,n;return $(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),tt?(e=new ReadableStream({start:function(e){return Q(this,void 0,void 0,(function(){return $(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,nt(e)]):[3,2];case 1:return[2,new(n.apply(Uint8Array,[void 0,r.sent()]))];case 2:return[3,4];case 3:return r.sent(),[3,4];case 4:return[2,null]}}))}))}function nt(t){return Q(this,void 0,void 0,(function(){var e,n,r,a,i;return $(this,(function(o){switch(o.label){case 0:e=t.getReader(),n=[],r=!1,a=[],o.label=1;case 1:return r?[3,3]:[4,e.read()];case 2:return i=o.sent(),r=i.done,a=i.value,r?[2,n]:(n.push.apply(n,a),[3,1]);case 3:return[2,n]}}))}))}var rt=[k,a,Object.freeze({__proto__:null,get data(){return V},start:function(){K()},set:F,identify:J,compute:Z,reset:K,stop:function(){K()}}),r,q,i,o,e,H,B,n];function at(){S={},N={},_(5),rt.forEach((function(t){return Na(t.start)()}))}function it(){rt.slice().reverse().forEach((function(t){return Na(t.stop)()})),S={},N={}}function ot(){Z(),w(),ta(),Pr(0),W(),Fr(),Ar()}function ut(t,e,n,r){if(void 0===r&&(r=!1),t)switch(n){case 0:return t;case 1:switch(e){case"*T":case"value":case"placeholder":return function(t){for(var e=-1,n=!1,r=!1,a=!1,i=null,o=0;o<t.length;o++){var u=t.charCodeAt(o);n=n||u>=48&&u<=57,r=r||64===u,a=9===u||10===u||13===u||32===u,(0===o||o===t.length-1||a)&&((n||r)&&(null===i&&(i=t.split("")),lt(i,e,a?o:o+1)),a&&(n=!1,r=!1,e=o))}return i?i.join(""):t}(t);case"input":return ct(t)}return t;case 2:case 3:switch(e){case"*T":return r?function(t){var e=t.trim();if(e.length>0){var n=e[0],r=t.indexOf(n),a=t.substr(0,r),i=t.substr(r+e.length);return""+a+e.length.toString(36)+i}return t}(t):st(t);case"src":case"srcset":case"title":case"alt":return 3===n?"":t;case"value":case"click":case"input":return ct(t);case"placeholder":return st(t)}}return t}function st(t){return t.replace(/\S/gi,"•")}function ct(t){for(var e=5*(Math.floor(t.length/5)+1),n="",r=0;r<e;r++)n+=r>0&&r%5==0?" ":"•";return n}function lt(t,e,n){for(var r=e+1;r<n;r++)t[r]="•"}var dt,ft=[];function ht(t,e,n){null!==t&&n&&n.length>=5&&(dt={id:t,target:e,hash:f(n)},ft.indexOf(dt.hash)<0&&(ft.push(dt.hash),Mr(41)))}var pt=["DIV","TR","P","LI","UL","A","BUTTON"];function vt(t,e){void 0===e&&(e=!1);var n=t.attributes,r=t.prefix?t.prefix[e?1:0]:null,a=e||n&&!("class"in n)||pt.indexOf(t.tag)>=0?":nth-of-type("+t.position+")":"";switch(t.tag){case"STYLE":case"TITLE":case"LINK":case"META":case"*T":case"*D":return"";case"HTML":return"HTML";default:if(null===r)return"";r+=">",t.tag=0===t.tag.indexOf("svg:")?t.tag.substr("svg:".length):t.tag;var i=""+r+t.tag+a,o="class"in n&&n.class.length>0?n.class.trim().split(/\s+/):null;if(e){var u="id"in n&&n.id.length>0?n.id:null;i=(o="BODY"!==t.tag&&o?o.filter((function(t){return!gt(t)})):[]).length>0?""+r+t.tag+"."+o.join(".")+a:i,i=u&&!1===gt(u)?function(t){var e=t.lastIndexOf("*S"),n=t.lastIndexOf("iframe:HTML"),r=Math.max(e,n);if(r<0)return"";var a=t.indexOf(">",r)+1;return t.substr(0,a)}(r)+"#"+u:i}else i=o?""+r+t.tag+"."+o.join(".")+a:i;return i}}function gt(t){for(var e=0;e<t.length;e++){var n=t.charCodeAt(e);if(n>=48&&n<=57)return!0}return!1}var mt={},bt=[],yt=null,wt=null,kt=null;function Et(){mt={},bt=[],yt=null,wt=null}function Ot(t,e){return void 0===e&&(e=0),Q(this,void 0,void 0,(function(){var n,r,a;return $(this,(function(i){for(n=0,r=bt;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){bt[1===e?"unshift":"push"]({task:t,resolve:n,id:sa()})})),null===yt&&null===wt&&Mt(),[2,a]}))}))}function Mt(){var t=bt.shift();t&&(yt=t,t.task().then((function(){t.id===sa()&&(t.resolve(),yt=null,Mt())})).catch((function(e){t.id===sa()&&(e&&_r(0,1,e.name,e.message,e.stack),yt=null,Mt())})))}function St(t){var e=Tt(t);return e in mt?performance.now()-mt[e].start>mt[e].yield?0:1:2}function Nt(t){mt[Tt(t)]={start:performance.now(),calls:0,yield:30}}function _t(t){var e=performance.now(),n=Tt(t),r=e-mt[n].start;x(t.cost,r),_(5),mt[n].calls>0&&x(4,r)}function xt(t){return Q(this,void 0,void 0,(function(){var e,n;return $(this,(function(r){switch(r.label){case 0:return(e=Tt(t))in mt?(_t(t),n=mt[e],[4,Dt()]):[3,2];case 1:n.yield=r.sent().timeRemaining(),function(t){var e=Tt(t);if(mt&&mt[e]){var n=mt[e].calls,r=mt[e].yield;Nt(t),mt[e].calls=n+1,mt[e].yield=r}}(t),r.label=2;case 2:return[2,e in mt?1:2]}}))}))}function Tt(t){return t.id+"."+t.cost}function Dt(){return Q(this,void 0,void 0,(function(){return $(this,(function(t){switch(t.label){case 0:return wt?[4,wt]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2,new Promise((function(t){Ct(t,{timeout:5e3})}))]}}))}))}var It,Ct=window.requestIdleCallback||function(t,e){var n=performance.now(),r=new MessageChannel,a=r.port1,i=r.port2;a.onmessage=function(r){var a=performance.now(),o=a-n,u=a-r.data;if(u>30&&o<e.timeout)requestAnimationFrame((function(){i.postMessage(a)}));else{var s=o>e.timeout;t({didTimeout:s,timeRemaining:function(){return s?30:Math.max(0,30-u)}})}},requestAnimationFrame((function(){i.postMessage(performance.now())}))};function jt(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),Q(this,void 0,void 0,(function(){var r,a,i,o,s,c,d,f,h,p,v,g,y,w,k,E,O,M,S,N,_,x;return $(this,(function(T){switch(T.label){case 0:switch(r=n||l(),a=[r,t],t){case 8:return[3,1];case 7:return[3,2];case 5:case 6:return[3,3]}return[3,10];case 1:return i=It,a.push(i.width),a.push(i.height),m(t,i.width,i.height),vr(a),[3,10];case 2:for(o=0,s=Yn;o<s.length;o++)c=s[o],(a=[c.time,7]).push(c.data.id),a.push(c.data.interaction),a.push(c.data.visibility),a.push(c.data.name),vr(a);return Kn(),[3,10];case 3:if(2===St(e))return[3,10];if(!((d=An()).length>0))return[3,9];f=0,h=d,T.label=4;case 4:return f<h.length?(p=h[f],0!==(v=St(e))?[3,6]:[4,xt(e)]):[3,8];case 5:v=T.sent(),T.label=6;case 6:if(2===v)return[3,8];for(g=p.data,y=p.metadata.active,w=p.metadata.suspend,k=p.metadata.privacy,E=function(t){var e=t.metadata.privacy;return"*T"===t.data.tag&&!(0===e||1===e)}(p),O=0,M=y?["tag","attributes","value"]:["tag"];O<M.length;O++)if(g[S=M[O]])switch(S){case"tag":N=zt(p),_=E?-1:1,a.push(p.id*_),p.parent&&y&&a.push(p.parent),p.previous&&y&&a.push(p.previous),a.push(w?"*M":g[S]),N&&2===N.length&&a.push("#"+Lt(N[0])+"."+Lt(N[1]));break;case"attributes":for(x in g[S])void 0!==g[S][x]&&a.push(At(x,g[S][x],k));break;case"value":ht(p.metadata.fraud,p.id,g[S]),a.push(ut(g[S],g.tag,k,E))}T.label=7;case 7:return f++,[3,4];case 8:6===t&&b(r),vr(function(t){for(var e=[],n={},r=0,a=null,i=0;i<t.length;i++)if("string"==typeof t[i]){var o=t[i],u=n[o]||-1;u>=0?a?a.push(u):(a=[u],e.push(a),r++):(a=null,e.push(o),n[o]=r++)}else a=null,e.push(t[i]),r++;return e}(a),!u.lean),T.label=9;case 9:return[3,10];case 10:return[2]}}))}))}function zt(t){if(null!==t.metadata.size&&0===t.metadata.size.length){var e=In(t.id);if(e)return[Math.floor(100*e.offsetWidth),Math.floor(100*e.offsetHeight)]}return t.metadata.size}function Lt(t){return t.toString(36)}function At(t,e,n){return t+"="+ut(e,t,n)}function Ht(){It=null}function Rt(){var t=document.body,e=document.documentElement,n=t?t.clientWidth:null,r=t?t.scrollWidth:null,a=t?t.offsetWidth:null,i=e?e.clientWidth:null,o=e?e.scrollWidth:null,u=e?e.offsetWidth:null,s=Math.max(n,r,a,i,o,u),c=t?t.clientHeight:null,l=t?t.scrollHeight:null,d=t?t.offsetHeight:null,f=e?e.clientHeight:null,h=e?e.scrollHeight:null,p=e?e.offsetHeight:null,v=Math.max(c,l,d,f,h,p);null!==It&&s===It.width&&v===It.height||null===s||null===v||(It={width:s,height:v},jt(8))}function Yt(t){var e={x:0,y:0};if(t&&t.offsetParent)do{var n=t.offsetParent,r=null===n?_n(t.ownerDocument):null;e.x+=t.offsetLeft,e.y+=t.offsetTop,t=r||n}while(t);return e}var Wt=["input","textarea","radio","button","canvas"],Xt=[];function qt(t){xa(t,"click",Pt.bind(this,9,t),!0)}function Pt(t,e,n){var r=_n(e),a=r?r.contentDocument.documentElement:document.documentElement,i="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+a.scrollLeft):null,o="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+a.scrollTop):null;if(r){var u=Yt(r);i=i?i+Math.round(u.x):i,o=o?o+Math.round(u.y):o}var s=Qn(n),c=function(t){for(;t&&t!==document;){if(t.nodeType===Node.ELEMENT_NODE){var e=t;if("A"===e.tagName)return e}t=t.parentNode}return null}(s),d=function(t){var e=null,n=document.documentElement;if("function"==typeof t.getBoundingClientRect){var r=t.getBoundingClientRect();r&&r.width>0&&r.height>0&&(e={x:Math.floor(r.left+("pageXOffset"in window?window.pageXOffset:n.scrollLeft)),y:Math.floor(r.top+("pageYOffset"in window?window.pageYOffset:n.scrollTop)),w:Math.floor(r.width),h:Math.floor(r.height)})}return e}(s);0===n.detail&&d&&(i=Math.round(d.x+d.w/2),o=Math.round(d.y+d.h/2));var f=d?Math.max(Math.floor((i-d.x)/d.w*32767),0):0,h=d?Math.max(Math.floor((o-d.y)/d.h*32767),0):0;null!==i&&null!==o&&(Xt.push({time:l(),event:t,data:{target:s,x:i,y:o,eX:f,eY:h,button:n.button,reaction:Bt(s),context:Vt(c),text:Ut(s),link:c?c.href:null,hash:null,trust:n.isTrusted?1:0}}),Ot(tr.bind(this,t)))}function Ut(t){var e=null;if(t){var n=t.textContent||t.value||t.alt;n&&(e=n.trim().replace(/\s+/g," ").substr(0,25))}return e}function Bt(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t.tagName.toLowerCase();if(Wt.indexOf(e)>=0)return 0}return 1}function Vt(t){if(t&&t.hasAttribute("target"))switch(t.getAttribute("target")){case"_blank":return 1;case"_parent":return 2;case"_top":return 3}return 0}function Ft(){Xt=[]}var Jt=[];function Gt(t,e){Jt.push({time:l(),event:38,data:{target:Qn(e),action:t}}),Ot(tr.bind(this,38))}function Zt(){Jt=[]}var Kt=null,Qt=[];function $t(t){var e=Qn(t),n=jn(e);if(e&&e.type&&n){var r=e.value;switch(e.type){case"radio":case"checkbox":r=e.checked?"true":"false"}var a={target:e,value:r};Qt.length>0&&Qt[Qt.length-1].data.target===a.target&&Qt.pop(),Qt.push({time:l(),event:27,data:a}),I(Kt),Kt=D(te,500,27)}}function te(t){Ot(tr.bind(this,t))}function ee(){Qt=[]}var ne,re=[],ae=null;function ie(t,e,n){var r=_n(e),a=r?r.contentDocument.documentElement:document.documentElement,i="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+a.scrollLeft):null,o="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+a.scrollTop):null;if(r){var u=Yt(r);i=i?i+Math.round(u.x):i,o=o?o+Math.round(u.y):o}null!==i&&null!==o&&ue({time:l(),event:t,data:{target:Qn(n),x:i,y:o}})}function oe(t,e,n){var r=_n(e),a=r?r.contentDocument.documentElement:document.documentElement,i=n.changedTouches,o=l();if(i)for(var u=0;u<i.length;u++){var s=i[u],c="clientX"in s?Math.round(s.clientX+a.scrollLeft):null,d="clientY"in s?Math.round(s.clientY+a.scrollTop):null;c=c&&r?c+Math.round(r.offsetLeft):c,d=d&&r?d+Math.round(r.offsetTop):d,null!==c&&null!==d&&ue({time:o,event:t,data:{target:Qn(n),x:c,y:d}})}}function ue(t){switch(t.event){case 12:case 15:case 19:var e=re.length,n=e>1?re[e-2]:null;n&&function(t,e){var n=t.data.x-e.data.x,r=t.data.y-e.data.y,a=Math.sqrt(n*n+r*r),i=e.time-t.time,o=e.data.target===t.data.target;return e.event===t.event&&o&&a<20&&i<25}(n,t)&&re.pop(),re.push(t),I(ae),ae=D(se,500,t.event);break;default:re.push(t),se(t.event)}}function se(t){Ot(tr.bind(this,t))}function ce(){re=[]}function le(){var t=document.documentElement;ne={width:t&&"clientWidth"in t?Math.min(t.clientWidth,window.innerWidth):window.innerWidth,height:t&&"clientHeight"in t?Math.min(t.clientHeight,window.innerHeight):window.innerHeight},tr(11)}function de(){ne=null}var fe=[],he=null;function pe(t){void 0===t&&(t=null);var e=window,n=document.documentElement,r=t?Qn(t):n;if(r&&r.nodeType===Node.DOCUMENT_NODE){var a=_n(r);e=a?a.contentWindow:e,r=n=r.documentElement}var i=r===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(r.scrollLeft),o=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),u={time:l(),event:10,data:{target:r,x:i,y:o}};if((null!==t||0!==i||0!==o)&&null!==i&&null!==o){var s=fe.length,c=s>1?fe[s-2]:null;c&&function(t,e){var n=t.data.x-e.data.x,r=t.data.y-e.data.y;return n*n+r*r<400&&e.time-t.time<25}(c,u)&&fe.pop(),fe.push(u),I(he),he=D(ve,500,10)}}function ve(t){Ot(tr.bind(this,t))}var ge=null,me=null,be=null;function ye(t){var e=(t.nodeType===Node.DOCUMENT_NODE?t:document).getSelection();if(null!==e&&!(null===e.anchorNode&&null===e.focusNode||e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset)){var n=ge.start?ge.start:null;null!==me&&null!==ge.start&&n!==e.anchorNode&&(I(be),we(21)),ge={start:e.anchorNode,startOffset:e.anchorOffset,end:e.focusNode,endOffset:e.focusOffset},me=e,I(be),be=D(we,500,21)}}function we(t){Ot(tr.bind(this,t))}function ke(){me=null,ge={start:0,startOffset:0,end:0,endOffset:0}}var Ee,Oe,Me=[];function Se(t){Me.push({time:l(),event:39,data:{target:Qn(t)}}),Ot(tr.bind(this,39))}function Ne(){Me=[]}function _e(t){Ee={name:t.type},tr(26),ei()}function xe(){Ee=null}function Te(){Oe={visible:"visibilityState"in document?document.visibilityState:"default"},tr(28)}function De(){Oe=null}function Ie(t){!function(t){var e=_n(t);xa(e?e.contentWindow:t===document?window:t,"scroll",pe,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(qt(t),function(t){xa(t,"cut",Gt.bind(this,0),!0),xa(t,"copy",Gt.bind(this,1),!0),xa(t,"paste",Gt.bind(this,2),!0)}(t),function(t){xa(t,"mousedown",ie.bind(this,13,t),!0),xa(t,"mouseup",ie.bind(this,14,t),!0),xa(t,"mousemove",ie.bind(this,12,t),!0),xa(t,"mousewheel",ie.bind(this,15,t),!0),xa(t,"dblclick",ie.bind(this,16,t),!0),xa(t,"touchstart",oe.bind(this,17,t),!0),xa(t,"touchend",oe.bind(this,18,t),!0),xa(t,"touchmove",oe.bind(this,19,t),!0),xa(t,"touchcancel",oe.bind(this,20,t),!0)}(t),function(t){xa(t,"input",$t,!0)}(t),function(t){xa(t,"selectstart",ye.bind(this,t),!0),xa(t,"selectionchange",ye.bind(this,t),!0)}(t),function(t){xa(t,"submit",Se,!0)}(t))}var Ce=Object.freeze({__proto__:null,start:function(){er=[],rr(),Ft(),Zt(),ce(),ee(),xa(window,"resize",le),le(),xa(document,"visibilitychange",Te),Te(),fe=[],pe(),ke(),Ne(),xa(window,"pagehide",_e)},stop:function(){er=[],rr(),Ft(),Zt(),I(ae),re.length>0&&se(re[re.length-1].event),I(Kt),ee(),de(),De(),I(he),fe=[],ke(),I(be),Ne(),xe()},observe:Ie}),je=/[^0-9\.]/g;function ze(t){for(var e=0,n=Object.keys(t);e<n.length;e++){var r=n[e],a=t[r];if("@type"===r&&"string"==typeof a)switch(a=(a=a.toLowerCase()).indexOf("article")>=0||a.indexOf("posting")>=0?"article":a){case"article":case"recipe":$r(5,t[r]),$r(8,t.creator),$r(18,t.headline);break;case"product":$r(5,t[r]),$r(10,t.name),$r(12,t.sku),t.brand&&$r(6,t.brand.name);break;case"aggregaterating":t.ratingValue&&(T(11,Le(t.ratingValue,100)),T(18,Le(t.bestRating)),T(19,Le(t.worstRating))),T(12,Le(t.ratingCount)),T(17,Le(t.reviewCount));break;case"person":$r(8,t.name);break;case"offer":$r(7,t.availability),$r(14,t.itemCondition),$r(13,t.priceCurrency),$r(12,t.sku),T(13,Le(t.price));break;case"brand":$r(6,t.name)}null!==a&&"object"==typeof a&&ze(a)}}function Le(t,e){if(void 0===e&&(e=1),null!==t)switch(typeof t){case"number":return Math.round(t*e);case"string":return Math.round(parseFloat(t.replace(je,""))*e)}return null}var Ae=["title","alt","onload","onfocus","onerror","data-drupal-form-submit-last"],He=/[\r\n]+/g;function Re(e,n){var r=null;if(2===n&&!1===Ln(e))return r;0!==n&&e.nodeType===Node.TEXT_NODE&&e.parentElement&&"STYLE"===e.parentElement.tagName&&(e=e.parentNode);var a=!1===Ln(e)?"add":"update",i=e.parentElement?e.parentElement:null,o=e.ownerDocument!==document;switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:i=o&&e.parentNode?_n(e.parentNode):i;var u=e,s={tag:(o?"iframe:":"")+"*D",attributes:{name:u.name,publicId:u.publicId,systemId:u.systemId}};t[a](e,i,s,n);break;case Node.DOCUMENT_NODE:e===document&&En(document),Ye(e);break;case Node.DOCUMENT_FRAGMENT_NODE:var c=e;if(c.host)if(En(c),"function"===typeof c.constructor&&c.constructor.toString().indexOf("[native code]")>=0){Ye(c);for(var l="",d=0,f=("adoptedStyleSheets"in c?c.adoptedStyleSheets:[]);d<f.length;d++){l+=Xe(f[d])}var h={tag:"*S",attributes:{style:l}};t[a](e,c.host,h,n)}else t[a](e,c.host,{tag:"*P",attributes:{}},n);break;case Node.TEXT_NODE:if(i=i||e.parentNode,"update"===a||i&&Ln(i)&&"STYLE"!==i.tagName){var p={tag:"*T",value:e.nodeValue};t[a](e,i,p,n)}break;case Node.ELEMENT_NODE:var v=e,g=v.tagName,m=function(t){var e={},n=t.attributes;if(n&&n.length>0)for(var r=0;r<n.length;r++){var a=n[r].name;Ae.indexOf(a)<0&&(e[a]=n[r].value)}"INPUT"===t.tagName&&!("value"in e)&&t.value&&(e.value=t.value);return e}(v);switch(i=e.parentElement?e.parentElement:e.parentNode?e.parentNode:null,"http://www.w3.org/2000/svg"===v.namespaceURI&&(g="svg:"+g),g){case"HTML":i=o&&i?_n(i):null;var b={tag:(o?"iframe:":"")+g,attributes:m};t[a](e,i,b,n);break;case"SCRIPT":if("type"in m&&"application/ld+json"===m.type)try{ze(JSON.parse(v.text.replace(He,"")))}catch(t){}break;case"NOSCRIPT":break;case"META":var y="property"in m?"property":"name"in m?"name":null;if(y&&"content"in m){var w=m.content;switch(m[y]){case"og:title":$r(20,w);break;case"og:type":$r(19,w);break;case"generator":$r(21,w)}}break;case"HEAD":var k={tag:g,attributes:m};location&&(k.attributes["*B"]=location.protocol+"//"+location.hostname),t[a](e,i,k,n);break;case"STYLE":var E={tag:g,attributes:m,value:We(v)};t[a](e,i,E,n);break;case"IFRAME":var O=e,M={tag:g,attributes:m};Nn(O)&&(!function(t){!1===Ln(t)&&xa(t,"load",rn.bind(this,t,"childList"),!0)}(O),M.attributes["*O"]="true",O.contentDocument&&O.contentWindow&&"loading"!==O.contentDocument.readyState&&(r=O.contentDocument)),t[a](e,i,M,n);break;default:var S={tag:g,attributes:m};v.shadowRoot&&(r=v.shadowRoot),t[a](e,i,S,n)}}return r}function Ye(t){Ln(t)||(!function(t){try{var e=s("MutationObserver"),n=e in window?new window[e](Na(Qe)):null;n&&(n.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),Pe.push(n))}catch(t){_r(2,0,t?t.name:null)}}(t),Ie(t))}function We(t){var e=t.textContent?t.textContent.trim():"",n=t.dataset?Object.keys(t.dataset).length:0;return(0===e.length||n>0)&&(e=Xe(t.sheet)),e}function Xe(t){var e="",n=null;try{n=t?t.cssRules:[]}catch(t){if(_r(1,1,t?t.name:null),t&&"SecurityError"!==t.name)throw t}if(null!==n)for(var r=0;r<n.length;r++)e+=n[r].cssText;return e}function qe(t,e,n){return Q(this,void 0,void 0,(function(){var r,a,i,o,u;return $(this,(function(s){switch(s.label){case 0:r=[t],s.label=1;case 1:if(!(r.length>0))return[3,4];for(a=r.shift(),i=a.firstChild;i;)r.push(i),i=i.nextSibling;return 0!==(o=St(e))?[3,3]:[4,xt(e)];case 2:o=s.sent(),s.label=3;case 3:return 2===o?[3,4]:((u=Re(a,n))&&r.push(u),[3,1]);case 4:return[2]}}))}))}var Pe=[],Ue=[],Be=null,Ve=null,Fe=null,Je=[],Ge=null,Ze=null,Ke={};function Qe(t){var e=l();Y(6,e),Ue.push({time:e,mutations:t}),Ot($e,1).then((function(){D(Rt),Na(Fn)()}))}function $e(){return Q(this,void 0,void 0,(function(){var t,e,n,r,a,i,o,u,s;return $(this,(function(c){switch(c.label){case 0:Nt(t={id:sa(),cost:3}),c.label=1;case 1:if(!(Ue.length>0))return[3,8];e=Ue.shift(),n=0,r=e.mutations,c.label=2;case 2:return n<r.length?(a=r[n],0!==(i=St(t))?[3,4]:[4,xt(t)]):[3,6];case 3:i=c.sent(),c.label=4;case 4:if(2===i)return[3,6];switch(o=a.target,(u=function(t,e){var n=t.target?jn(t.target.parentNode):null;if(n&&"HTML"!==n.data.tag){var r=l()>Ze,a=jn(t.target),i=a&&a.selector?a.selector.join():t.target.nodeName,o=[n.selector?n.selector.join():"",i,t.attributeName,tn(t.addedNodes),tn(t.removedNodes)].join();Ke[o]=o in Ke?Ke[o]:[0];var u=Ke[o];if(!1===r&&u[0]>=10&&en(u[1],2,e),u[0]=r?u[0]+1:1,10===u[0])return u[1]=t.removedNodes,"suspend";if(u[0]>10)return""}return t.type}(a,t))&&o&&o.ownerDocument&&En(o.ownerDocument),u&&o&&o.nodeType==Node.DOCUMENT_FRAGMENT_NODE&&o.host&&En(o),u){case"attributes":Re(o,3);break;case"characterData":Re(o,4);break;case"childList":en(a.addedNodes,1,t),en(a.removedNodes,2,t);break;case"suspend":(s=jn(o))&&(s.metadata.suspend=!0)}c.label=5;case 5:return n++,[3,2];case 6:return[4,jt(6,t,e.time)];case 7:return c.sent(),[3,1];case 8:return _t(t),[2]}}))}))}function tn(t){for(var e=[],n=0;t&&n<t.length;n++)e.push(t[n].nodeName);return e.join()}function en(t,e,n){return Q(this,void 0,void 0,(function(){var r,a,i;return $(this,(function(o){switch(o.label){case 0:r=t?t.length:0,a=0,o.label=1;case 1:return a<r?1!==e?[3,2]:(qe(t[a],n,e),[3,5]):[3,6];case 2:return 0!==(i=St(n))?[3,4]:[4,xt(n)];case 3:i=o.sent(),o.label=4;case 4:if(2===i)return[3,6];Re(t[a],e),o.label=5;case 5:return a++,[3,1];case 6:return[2]}}))}))}function nn(t,e){return void 0===e&&(e=!1),Je.indexOf(t)<0&&Je.push(t),Ge&&I(Ge),Ge=D((function(){!function(t){for(var e=0,n=Je;e<n.length;e++){var r=n[e];if(r){var a=r.nodeType===Node.DOCUMENT_FRAGMENT_NODE;if(a&&Ln(r))continue;rn(r,a||t?"childList":"characterData")}}Je=[]}(e)}),33),t}function rn(t,e){Na(Qe)([{addedNodes:[t],attributeName:null,attributeNamespace:null,nextSibling:null,oldValue:null,previousSibling:null,removedNodes:[],target:t,type:e}])}var an=1,on=[],un=[],sn=[],cn={},ln=[],dn=[],fn={},hn=[],pn=[],vn=null,gn=null,mn=null,bn=null;function yn(){kn(),En(document,!0)}function wn(){kn()}function kn(){an=1,on=[],un=[],sn=[],cn={},ln=[],dn=[],hn="password,secret,pass,social,ssn,name,code,dob,cell,mob,contact,hidden,account,cvv,ccv,email,tel,phone,address,addr,card,zip".split(","),pn="radio,checkbox,range,button,reset,submit".split(","),vn=new WeakMap,gn=new WeakMap,mn=new WeakMap,bn=new WeakMap}function En(t,e){void 0===e&&(e=!1);try{e&&u.unmask.forEach((function(t){return t.indexOf("!")<0?dn.push(t):ln.push(t.substr(1))})),"querySelectorAll"in t&&(u.regions.forEach((function(e){return t.querySelectorAll(e[1]).forEach((function(t){return Bn(t,""+e[0])}))})),u.mask.forEach((function(e){return t.querySelectorAll(e).forEach((function(t){return mn.set(t,3)}))})),u.fraud.forEach((function(e){return t.querySelectorAll(e[1]).forEach((function(t){return bn.set(t,e[0])}))})),dn.forEach((function(e){return t.querySelectorAll(e).forEach((function(t){return mn.set(t,0)}))})))}catch(t){_r(5,1,t?t.name:null)}}function On(t,e){if(void 0===e&&(e=!1),null===t)return null;var n=vn.get(t);return!n&&e&&(n=an++,vn.set(t,n)),n||null}function Mn(t,e,n,r){var a,i=On(t,!0),o=e?On(e):null,s=Hn(t),c=null,l=Vn(t)?i:null,d=null,f=bn.has(t)?bn.get(t):null,h=u.content?1:2;o>=0&&un[o]&&((c=un[o]).children.push(i),l=null===l?c.region:l,d=c.fragment,f=null===f?c.metadata.fraud:f),n.attributes&&"data-clarity-region"in n.attributes&&(Bn(t,n.attributes["data-clarity-region"]),l=i),on[i]=t,un[i]={id:i,parent:o,previous:s,children:[],data:n,selector:null,hash:null,region:l,metadata:{active:!0,suspend:!1,privacy:h,position:null,fraud:f,size:null},fragment:d},function(t,e,n){var r=e.data,a=e.metadata,i=a.privacy,o=r.attributes||{},u=r.tag.toUpperCase();switch(!0){case"data-clarity-mask"in o:a.privacy=3;break;case"data-clarity-unmask"in o:a.privacy=0;break;case mn.has(t):a.privacy=mn.get(t);break;case bn.has(t):a.privacy=2;break;case"*T"===u:var s=n&&n.data?n.data.tag:"",c=n&&n.selector?n.selector[0]:"";a.privacy="STYLE"===s||"TITLE"===s||ln.some((function(t){return c.indexOf(t)>=0}))?0:i;break;case"type"in o:a.privacy=xn(o.type,a);break;case"INPUT"===u&&0===i:var l="";Object.keys(o).forEach((function(t){return l+=o[t].toLowerCase()})),a.privacy=xn(l,a);break;case 1===i&&"INPUT"===u:a.privacy=pn.indexOf(o.type)>=0?0:i;break;case 1===i:a.privacy=xn(o.class,a);break;default:a.privacy=n?n.metadata.privacy:a.privacy}}(t,un[i],c),Dn(un[i]),"IMG"===(a=un[i]).data.tag&&3===a.metadata.privacy&&(a.metadata.size=[]),Rn(i,r,un[i].fragment)}function Sn(t,e,n,r){var a=On(t),i=e?On(e):null,o=Hn(t),u=!1,s=!1;if(a in un){var c=un[a];if(c.metadata.active=!0,c.previous!==o&&(u=!0,c.previous=o),c.parent!==i){u=!0;var l=c.parent;if(c.parent=i,null!==i&&i>=0){var d=null===o?0:un[i].children.indexOf(o)+1;un[i].children.splice(d,0,a),c.region=Vn(t)?a:un[i].region}else!function(t,e){if(t in un){var n=un[t];n.metadata.active=!1,n.parent=null,Rn(t,e)}}(a,r);if(null!==l&&l>=0){var f=un[l].children.indexOf(a);f>=0&&un[l].children.splice(f,1)}s=!0}for(var h in n)Tn(c.data,n,h)&&(u=!0,c.data[h]=n[h]);c.fragment&&fn[c.fragment]&&(u=!0),Dn(c),Rn(a,r,un[a].fragment,u,s)}}function Nn(t){var e=!1;if(t.nodeType===Node.ELEMENT_NODE&&"IFRAME"===t.tagName){var n=t;try{n.contentDocument&&(gn.set(n.contentDocument,n),e=!0)}catch(t){}}return e}function _n(t){var e=t.nodeType===Node.DOCUMENT_NODE?t:null;return e&&gn.has(e)?gn.get(e):null}function xn(t,e){return t&&hn.some((function(e){return t.indexOf(e)>=0}))?2:e.privacy}function Tn(t,e,n){if("object"==typeof t[n]&&"object"==typeof e[n]){for(var r in t[n])if(t[n][r]!==e[n][r])return!0;for(var r in e[n])if(e[n][r]!==t[n][r])return!0;return!1}return t[n]!==e[n]}function Dn(t){var e=t.parent&&t.parent in un?un[t.parent]:null,n=e?e.selector:null,r=t.data,a=function(t,e){e.metadata.position=1;for(var n=t?t.children.indexOf(e.id):-1;n-- >0;){var r=un[t.children[n]];if(e.data.tag===r.data.tag){e.metadata.position=r.metadata.position+1;break}}return e.metadata.position}(e,t),i={tag:r.tag,prefix:n,position:a,attributes:r.attributes};t.selector=[vt(i),vt(i,!0)],t.hash=t.selector.map((function(t){return t?f(t):null})),t.hash.forEach((function(e){return cn[e]=t.id})),t.hash.some((function(t){return-1!==jr.indexOf(t)}))&&(t.fragment=t.id)}function In(t){return t in on?on[t]:null}function Cn(t){return t in un?un[t]:null}function jn(t){var e=On(t);return e in un?un[e]:null}function zn(t){return t in cn?cn[t]:null}function Ln(t){return On(t)in on}function An(){for(var t=[],e=0,n=sn;e<n.length;e++){(r=n[e])in un&&t.push(un[r])}for(var r in sn=[],fn)Rr(fn[r],r,!0);return fn={},t}function Hn(t){for(var e=null;null===e&&t.previousSibling;)e=On(t.previousSibling),t=t.previousSibling;return e}function Rn(t,e,n,r,a){if(void 0===n&&(n=null),void 0===r&&(r=!0),void 0===a&&(a=!1),n&&!fn[n]){var i=In(n),o=Cn(n);i&&o&&(nn(i,!0),o.hash.forEach((function(t){-1!==jr.indexOf(t)&&(fn[n]=t)})))}var u=sn.indexOf(t);u>=0&&1===e&&a?(sn.splice(u,1),sn.push(t)):-1===u&&r&&sn.push(t)}var Yn=[],Wn=null,Xn={},qn=[],Pn=!1,Un=null;function Bn(t,e){!1===Wn.has(t)&&(Wn.set(t,e),(Un=null===Un&&Pn?new IntersectionObserver(Jn,{threshold:[0,.2,.4,.6,.8,1]}):Un)&&t&&t.nodeType===Node.ELEMENT_NODE&&Un.observe(t))}function Vn(t){return Wn&&Wn.has(t)}function Fn(){for(var t=[],e=0,n=qn;e<n.length;e++){var r=n[e],a=On(r.node);a in Xn||(a?(r.data.id=a,Xn[a]=r.data,Yn.push(Zn(r.data))):t.push(r))}qn=t,Yn.length>0&&jt(7)}function Jn(t){for(var e=0,n=t;e<n.length;e++){var r=n[e],a=r.target,i=r.boundingClientRect,o=r.intersectionRect,u=r.rootBounds;if(Wn.has(a)&&i.width+i.height>0&&u.width>0&&u.height>0){var s=a?On(a):null,c=s in Xn?Xn[s]:{id:s,name:Wn.get(a),interaction:16,visibility:0},l=(o?o.width*o.height*1/(u.width*u.height):0)>.05||r.intersectionRatio>.8,d=(l||10==c.visibility)&&Math.abs(i.top)+u.height>i.height;Gn(a,c,c.interaction,d?13:l?10:0),c.visibility>=13&&Un&&Un.unobserve(a)}}Yn.length>0&&jt(7)}function Gn(t,e,n,r){var a=n>e.interaction||r>e.visibility;e.interaction=n>e.interaction?n:e.interaction,e.visibility=r>e.visibility?r:e.visibility,e.id?(e.id in Xn&&a||!(e.id in Xn))&&(Xn[e.id]=e,Yn.push(Zn(e))):qn.push({node:t,data:e})}function Zn(t){return{time:l(),data:{id:t.id,interaction:t.interaction,visibility:t.visibility,name:t.name}}}function Kn(){Yn=[]}function Qn(t){var e=t.composed&&t.composedPath?t.composedPath():null,n=e&&e.length>0?e[0]:t.target;return Ze=l()+3e3,n.nodeType===Node.DOCUMENT_NODE?n.documentElement:n}function $n(t,e,n){void 0===n&&(n=null);var r={id:0,hash:null,privacy:2,node:t};if(t){var a=jn(t);if(null!==a){var i=a.metadata;r.id=a.id,r.hash=a.hash,r.privacy=i.privacy,a.region&&function(t,e){var n=In(t),r=t in Xn?Xn[t]:{id:t,visibility:0,interaction:16,name:Wn.get(n)},a=16;switch(e){case 9:a=20;break;case 27:a=30}Gn(n,r,a,r.visibility)}(a.region,e),i.fraud&&ht(i.fraud,a.id,n||a.data.value)}}return r}function tr(t){return Q(this,void 0,void 0,(function(){var e,n,r,a,i,o,u,s,c,d,f,h,p,v,g,b,w,k,E,O,M,S,N,_,x,T,D,I,C;return $(this,(function(j){switch(e=l(),n=[e,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(r=0,a=re;r<a.length;r++)I=a[r],(i=$n(I.data.target,I.event)).id>0&&((n=[I.time,I.event]).push(i.id),n.push(I.data.x),n.push(I.data.y),vr(n),m(I.event,I.data.x,I.data.y));ce();break;case 9:for(o=0,u=Xt;o<u.length;o++)I=u[o],s=$n(I.data.target,I.event,I.data.text),n=[I.time,I.event],c=s.hash.join("."),n.push(s.id),n.push(I.data.x),n.push(I.data.y),n.push(I.data.eX),n.push(I.data.eY),n.push(I.data.button),n.push(I.data.reaction),n.push(I.data.context),n.push(ut(I.data.text,"click",s.privacy)),n.push(I.data.link),n.push(c),n.push(I.data.trust),vr(n),ar(I.time,I.event,c,I.data.x,I.data.y,I.data.reaction,I.data.context);Ft();break;case 38:for(d=0,f=Jt;d<f.length;d++)I=f[d],n=[I.time,I.event],(x=$n(I.data.target,I.event)).id>0&&(n.push(x.id),n.push(I.data.action),vr(n));Zt();break;case 11:h=ne,n.push(h.width),n.push(h.height),m(t,h.width,h.height),de(),vr(n);break;case 26:p=Ee,n.push(p.name),xe(),vr(n);break;case 27:for(v=0,g=Qt;v<g.length;v++)I=g[v],b=$n(I.data.target,I.event,I.data.value),(n=[I.time,I.event]).push(b.id),n.push(ut(I.data.value,"input",b.privacy)),vr(n);ee();break;case 21:(w=ge)&&(k=$n(w.start,t),E=$n(w.end,t),n.push(k.id),n.push(w.startOffset),n.push(E.id),n.push(w.endOffset),ke(),vr(n));break;case 10:for(O=0,M=fe;O<M.length;O++)I=M[O],(S=$n(I.data.target,I.event)).id>0&&((n=[I.time,I.event]).push(S.id),n.push(I.data.x),n.push(I.data.y),vr(n),m(I.event,I.data.x,I.data.y));fe=[];break;case 39:for(N=0,_=Me;N<_.length;N++)I=_[N],n=[I.time,I.event],(x=$n(I.data.target,I.event)).id>0&&(n.push(x.id),vr(n));Ne();break;case 22:for(T=0,D=nr;T<D.length;T++)I=D[T],(n=[I.time,I.event]).push(I.data.type),n.push(I.data.hash),n.push(I.data.x),n.push(I.data.y),n.push(I.data.reaction),n.push(I.data.context),vr(n,!1);rr();break;case 28:C=Oe,n.push(C.visible),vr(n),y(e,C.visible),De()}return[2]}))}))}var er=[],nr=[];function rr(){nr=[]}function ar(t,e,n,r,a,i,o){void 0===i&&(i=1),void 0===o&&(o=0),er.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:i,context:o}}),m(e,r,a)}var ir,or,ur,sr,cr,lr=0,dr=0,fr=null,hr=0;function pr(){sr=!0,lr=0,dr=0,hr=0,ir=[],or=[],ur={},cr=null}function vr(t,e){if(void 0===e&&(e=!0),sr){var n=l(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(r){case 5:lr+=a.length;case 37:case 6:dr+=a.length,ir.push(a);break;default:or.push(a)}_(25);var i=function(){var t=!1===u.lean&&lr>0?100:wa.sequence*u.delay;return"string"==typeof u.upload?Math.max(Math.min(t,3e4),100):u.delay}();n-hr>2*i&&(I(fr),fr=null),e&&null===fr&&(25!==r&&L(),fr=D(mr,i),hr=n,Br(dr))}}function gr(){I(fr),mr(!0),lr=0,dr=0,hr=0,ir=[],or=[],ur={},cr=null,sr=!1}function mr(t){return void 0===t&&(t=!1),Q(this,void 0,void 0,(function(){var e,n,r,a,i,o,s,c;return $(this,(function(l){switch(l.label){case 0:return fr=null,(e=!1===u.lean&&dr>0&&(dr<1048576||wa.sequence>0))&&T(1,1),Fn(),function(){var t=[];nr=[];for(var e=wa.start+wa.duration,n=Math.max(e-2e3,0),r=0,a=er;r<a.length;r++){var i=a[r];i.time>=n&&(i.time<=e&&nr.push(i),t.push(i))}er=t,tr(22)}(),ot(),n=!0===t,r=JSON.stringify(Oa(n)),a="["+or.join()+"]",i=e?"["+ir.join()+"]":"",o=function(t){return t.p.length>0?'{"e":'+t.e+',"a":'+t.a+',"p":'+t.p+"}":'{"e":'+t.e+',"a":'+t.a+"}"}({e:r,a:a,p:i}),n?(c=null,[3,3]):[3,1];case 1:return[4,et(o)];case 2:c=l.sent(),l.label=3;case 3:return x(2,(s=c)?s.length:o.length),br(o,s,wa.sequence,n),or=[],e&&(ir=[],dr=0,lr=0),[2]}}))}))}function br(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof u.upload){var a=u.upload,i=!1;if(r&&"sendBeacon"in navigator)try{(i=navigator.sendBeacon.bind(navigator)(a,t))&&wr(n)}catch(t){}if(!1===i){n in ur?ur[n].attempts++:ur[n]={data:t,attempts:1};var o=new XMLHttpRequest;o.open("POST",a),null!==n&&(o.onreadystatechange=function(){Na(yr)(o,n)}),o.withCredentials=!0,e?(o.setRequestHeader("Accept","application/x-clarity-gzip"),o.send(e)):o.send(t)}}else if(u.upload){(0,u.upload)(t),wr(n)}}function yr(t,e){var n=ur[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Vr(6):(0===t.status&&(u.upload=u.fallback?u.fallback:u.upload),br(n.data,null,e)):(cr={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&Pr(2),200===t.status&&t.responseText&&function(t){switch(t&&t.length>0?t.split(" ")[0]:""){case"END":Vr(6);break;case"UPGRADE":U("Auto")}}(t.responseText),0===t.status&&(br(n.data,null,e,!0),Vr(3)),t.status>=200&&t.status<=208&&wr(e),delete ur[e]))}function wr(t){1===t&&da()}var kr,Er={};function Or(t){var e=t.error||t;return e.message in Er||(Er[e.message]=0),Er[e.message]++>=5||e&&e.message&&(kr={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},Mr(31)),!0}function Mr(t){return Q(this,void 0,void 0,(function(){var e;return $(this,(function(n){switch(e=[l(),t],t){case 31:e.push(kr.message),e.push(kr.line),e.push(kr.column),e.push(kr.stack),e.push(kr.source),vr(e);break;case 33:Sr&&(e.push(Sr.code),e.push(Sr.name),e.push(Sr.message),e.push(Sr.stack),e.push(Sr.severity),vr(e,!1));break;case 41:dt&&(e.push(dt.id),e.push(dt.target),e.push(dt.hash),vr(e,!1))}return[2]}))}))}var Sr,Nr={};function _r(t,e,n,r,a){void 0===n&&(n=null),void 0===r&&(r=null),void 0===a&&(a=null);var i=n?n+"|"+r:"";t in Nr&&Nr[t].indexOf(i)>=0||(Sr={code:t,name:n,message:r,stack:a,severity:e},t in Nr?Nr[t].push(i):Nr[t]=[i],Mr(33))}var xr,Tr={},Dr=[],Ir={},Cr={},jr=[];function zr(){try{var t=u.extract;if(!t)return;for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1];switch(n){case 0:var a=t[e+2];Ir[r]=Wr(a);break;case 1:break;case 2:var i=t[e+2];Cr[r]=i;break;case 3:jr=t[e+2]}}}catch(t){_r(8,1,t?t.name:null)}}function Lr(t){return JSON.parse(JSON.stringify(t))}function Ar(){try{for(var t in Ir){var e=(a=Xr(Lr(Ir[t])))?JSON.stringify(a).substring(0,1e4):a;e&&Rr(t,e)}for(var n in Cr){var r=document.querySelector(Cr[n]);r&&Rr(n,r.innerText)}}catch(t){_r(5,1,t?t.name:null)}var a;Pr(40)}function Hr(){Dr=[]}function Rr(t,e,n){void 0===n&&(n=!1),(!(t in Tr)||t in Tr&&Tr[t]!==e||n)&&(Tr[t]=e,Dr.push(t))}function Yr(){Tr={},Dr=[],Ir={},Cr={}}function Wr(t){for(var e=[],n=t.split(".");n.length>0;){var r=n.shift(),a=r.indexOf("["),i=r.indexOf("{"),o=r.indexOf("}");e.push({name:a>0?r.substring(0,a):i>0?r.substring(0,i):r,type:a>0?1:i>0?2:3,condition:i>0?r.substring(i+1,o):null})}return e}function Xr(t,e){if(void 0===e&&(e=window),0==t.length)return e;var n,r=t.shift();if(e&&e[r.name]){var a=e[r.name];if(1!==r.type&&qr(a,r.condition))n=Xr(t,a);else if(Array.isArray(a)){for(var i=[],o=0,u=a;o<u.length;o++){var s=u[o];if(qr(s,r.condition)){var c=Xr(t,s);c&&i.push(c)}}n=i}return n}return null}function qr(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}function Pr(t){var e=[l(),t];switch(t){case 4:var n=h;n&&((e=[n.time,n.event]).push(n.data.visible),e.push(n.data.docWidth),e.push(n.data.docHeight),e.push(n.data.screenWidth),e.push(n.data.screenHeight),e.push(n.data.scrollX),e.push(n.data.scrollY),e.push(n.data.pointerX),e.push(n.data.pointerY),e.push(n.data.activityTime),vr(e,!1)),g();break;case 25:e.push(M.gap),vr(e);break;case 35:e.push(xr.check),vr(e,!1);break;case 3:e.push(P.key),vr(e);break;case 2:e.push(cr.sequence),e.push(cr.attempts),e.push(cr.status),vr(e,!1);break;case 24:e.push(E.key),e.push(E.value),vr(e);break;case 34:var r=Object.keys(V);if(r.length>0){for(var a=0,i=r;a<i.length;a++){var o=i[a];e.push(o),e.push(V[o])}K(),vr(e,!1)}break;case 0:var u=Object.keys(N);if(u.length>0){for(var s=0,c=u;s<c.length;s++){var d=c[s],f=parseInt(d,10);e.push(f),e.push(Math.round(N[d]))}N={},vr(e,!1)}break;case 1:var p=Object.keys(Zr);if(p.length>0){for(var v=0,m=p;v<m.length;v++){var b=m[v];f=parseInt(b,10);e.push(f),e.push(Zr[b])}ea(),vr(e,!1)}break;case 36:var y=Object.keys(R);if(y.length>0){for(var w=0,k=y;w<k.length;w++){var O=k[w];f=parseInt(O,10);e.push(f),e.push([].concat.apply([],R[O]))}X(),vr(e,!1)}break;case 40:for(var S=0,_=Dr;S<_.length;S++){O=_[S];e.push(O),e.push(Tr[O])}Hr(),vr(e,!1)}}function Ur(){xr={check:0}}function Br(t){if(0===xr.check){var e=xr.check;e=wa.sequence>=128?1:e,e=l()>72e5?2:e,(e=t>10485760?2:e)!==xr.check&&Vr(e)}}function Vr(t){xr.check=t,la(),ei()}function Fr(){0!==xr.check&&Pr(35)}function Jr(){xr=null}var Gr=null,Zr=null;function Kr(){Gr={},Zr={}}function Qr(){Gr={},Zr={}}function $r(t,e){e&&(e=""+e,t in Gr||(Gr[t]=[]),Gr[t].indexOf(e)<0&&(Gr[t].push(e),t in Zr||(Zr[t]=[]),Zr[t].push(e),Gr[t].length>128&&Vr(5)))}function ta(){Pr(1)}function ea(){Zr={}}var na=null,ra=[],aa=null;function ia(){aa=null;var t=navigator&&"userAgent"in navigator?navigator.userAgent:"",e=document&&document.title?document.title:"",n=function(){var t={session:pa(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=ma("_clsk");if(e){var n=e.split("|");n.length>=5&&t.ts-va(n[1])<18e5&&(t.session=n[0],t.count=va(n[2])+1,t.upgrade=va(n[3]),t.upload=n.length>=6?"https://"+n[5]+"/"+n[4]:"https://"+n[4])}return t}(),r=ga();na={projectId:u.projectId||f(location.host),userId:r.id,sessionId:n.session,pageNum:n.count},u.lean=u.track&&null!==n.upgrade?0===n.upgrade:u.lean,u.upload=u.track&&"string"==typeof u.upload&&n.upload&&n.upload.length>"https://".length?n.upload:u.upload,$r(0,t),$r(3,e),$r(1,location.href),$r(2,document.referrer),$r(15,function(){var t=pa();if(u.track&&fa(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),$r(16,document.documentElement.lang),$r(17,document.dir),navigator&&($r(9,navigator.userLanguage||navigator.language),navigator.userAgentData&&navigator.userAgentData.getHighEntropyValues&&navigator.userAgentData.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;$r(22,t.platform),$r(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){$r(24,t.name+"~"+t.version)})),$r(25,t.model),T(27,t.mobile?1:0)}))),T(0,n.ts),T(1,0),screen&&(T(14,Math.round(screen.width)),T(15,Math.round(screen.height)),T(16,Math.round(screen.colorDepth)));for(var a=0,i=u.cookies;a<i.length;a++){var o=i[a],s=ma(o);s&&F(o,s)}ha(r)}function oa(){aa=null,na=null}function ua(t,e){void 0===e&&(e=!0),na&&!1===e&&t(na,!u.lean),ra.push({callback:t,wait:e})}function sa(){return na?[na.userId,na.sessionId,na.pageNum].join("."):""}function ca(){Xa()&&(u.track=!0,ha(ga(),1))}function la(){ba("_clsk","",0)}function da(){var t=Math.round(Date.now()),e=u.upload&&"string"==typeof u.upload?u.upload.replace("https://",""):"",n=u.lean?0:1;!function(t){ra.length>0&&ra.forEach((function(e){!e.callback||e.wait&&!t||e.callback(na,!u.lean)}))}(n),ba("_clsk",[na.sessionId,t,na.pageNum,n,e].join("|"),1)}function fa(t,e){try{return!!t[e]}catch(t){return!1}}function ha(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5);(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e)&&ba("_clck",[na.userId,1,n.toString(36),e].join("|"),365)}function pa(){var t=Math.floor(Math.random()*Math.pow(2,32));return window&&window.crypto&&window.crypto.getRandomValues&&Uint32Array&&(t=window.crypto.getRandomValues(new Uint32Array(1))[0]),t.toString(36)}function va(t,e){return void 0===e&&(e=10),parseInt(t,e)}function ga(){var t={id:pa(),expiry:null,consent:0},e=ma("_clck");if(e&&e.length>0){for(var n=e.split("|"),r=0,a=0,i=document.cookie.split(";");a<i.length;a++){r+="_clck"===i[a].split("=")[0].trim()?1:0}if(1===n.length||r>1){var o=";expires="+new Date(0).toUTCString()+";path=/";document.cookie="_clck="+o,document.cookie="_clsk="+o}n.length>2&&(t.expiry=va(n[2],36)),n.length>3&&1===va(n[3])&&(t.consent=1),u.track=u.track||1===t.consent,t.id=u.track?n[0]:t.id}return t}function ma(t){if(fa(document,"cookie")){var e=document.cookie.split(";");if(e)for(var n=0;n<e.length;n++){var r=e[n].split("=");if(r.length>1&&r[0]&&r[0].trim()===t)return r[1]}}return null}function ba(t,e,n){if(u.track&&(navigator&&navigator.cookieEnabled||fa(document,"cookie"))){var r=new Date;r.setDate(r.getDate()+n);var a=t+"="+e+";"+(r?"expires="+r.toUTCString():"")+";path=/";try{if(null===aa){for(var i=location.hostname?location.hostname.split("."):[],o=i.length-1;o>=0;o--)if(aa="."+i[o]+(aa||""),o<i.length-1&&(document.cookie=a+";domain="+aa,ma(t)===e))return;aa=""}}catch(t){aa=""}document.cookie=aa?a+";domain="+aa:a}}var ya,wa=null;function ka(){var t=na;wa={version:d,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0}}function Ea(){wa=null}function Oa(t){return wa.start=wa.start+wa.duration,wa.duration=l()-wa.start,wa.sequence++,wa.upload=t&&"sendBeacon"in navigator?1:0,wa.end=t?1:0,[wa.version,wa.sequence,wa.start,wa.duration,wa.projectId,wa.userId,wa.sessionId,wa.pageNum,wa.upload,wa.end]}function Ma(){ya=[]}function Sa(t){if(ya&&-1===ya.indexOf(t.message)){var e=u.report;if(e&&e.length>0){var n={v:wa.version,p:wa.projectId,u:wa.userId,s:wa.sessionId,n:wa.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var r=new XMLHttpRequest;r.open("POST",e),r.send(JSON.stringify(n)),ya.push(t.message)}}return t}function Na(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw Sa(t)}var n=performance.now()-e;x(4,n),n>30&&(_(7),T(6,n))}}var _a=[];function xa(t,e,n,r){void 0===r&&(r=!1),n=Na(n);try{t[s("addEventListener")](e,n,r),_a.push({event:e,target:t,listener:n,capture:r})}catch(t){}}function Ta(){for(var t=0,e=_a;t<e.length;t++){var n=e[t];try{n.target[s("removeEventListener")](n.event,n.listener,n.capture)}catch(t){}}_a=[]}var Da=null,Ia=null,Ca=null,ja=0;function za(){return!(ja++>20)||(_r(4,0),!1)}function La(){ja=0,Ca!==Ha()&&(ei(),window.setTimeout(Aa,250))}function Aa(){ti(),T(29,1)}function Ha(){return location.href?location.href.replace(location.hash,""):location.href}var Ra=!1;function Ya(){Ra=!0,c=performance.now(),Et(),Ta(),Ma(),Ca=Ha(),ja=0,xa(window,"popstate",La),null===Da&&(Da=history.pushState,history.pushState=function(){Da.apply(this,arguments),Xa()&&za()&&La()}),null===Ia&&(Ia=history.replaceState,history.replaceState=function(){Ia.apply(this,arguments),Xa()&&za()&&La()})}function Wa(){Ca=null,ja=0,Ma(),Ta(),Et(),c=0,Ra=!1}function Xa(){return Ra}function qa(t){if(null===t||Ra)return!1;for(var e in t)e in u&&(u[e]=t[e]);return!0}function Pa(){ti(),O("clarity","restart")}function Ua(){return Q(this,void 0,void 0,(function(){var t,e;return $(this,(function(n){switch(n.label){case 0:return t=l(),Nt(e={id:sa(),cost:3}),[4,qe(document,e,0)];case 1:return n.sent(),[4,jt(5,e,t)];case 2:return n.sent(),_t(e),[2]}}))}))}var Ba,Va=null;function Fa(){Va=null}function Ja(t){Va={fetchStart:Math.round(t.fetchStart),connectStart:Math.round(t.connectStart),connectEnd:Math.round(t.connectEnd),requestStart:Math.round(t.requestStart),responseStart:Math.round(t.responseStart),responseEnd:Math.round(t.responseEnd),domInteractive:Math.round(t.domInteractive),domComplete:Math.round(t.domComplete),loadEventStart:Math.round(t.loadEventStart),loadEventEnd:Math.round(t.loadEventEnd),redirectCount:Math.round(t.redirectCount),size:t.transferSize?t.transferSize:0,type:t.type,protocol:t.nextHopProtocol,encodedSize:t.encodedBodySize?t.encodedBodySize:0,decodedSize:t.decodedBodySize?t.decodedBodySize:0},function(t){Q(this,void 0,void 0,(function(){var e,n;return $(this,(function(r){switch(e=l(),n=[e,t],t){case 29:n.push(Va.fetchStart),n.push(Va.connectStart),n.push(Va.connectEnd),n.push(Va.requestStart),n.push(Va.responseStart),n.push(Va.responseEnd),n.push(Va.domInteractive),n.push(Va.domComplete),n.push(Va.loadEventStart),n.push(Va.loadEventEnd),n.push(Va.redirectCount),n.push(Va.size),n.push(Va.type),n.push(Va.protocol),n.push(Va.encodedSize),n.push(Va.decodedSize),Fa(),vr(n,!1)}return[2]}))}))}(29)}var Ga=["navigation","resource","longtask","first-input","layout-shift","largest-contentful-paint"];function Za(){try{Ba&&Ba.disconnect(),Ba=new PerformanceObserver(Na(Ka));for(var t=0,e=Ga;t<e.length;t++){var n=e[t];PerformanceObserver.supportedEntryTypes.indexOf(n)>=0&&("layout-shift"===n&&x(9,0),Ba.observe({type:n,buffered:!0}))}}catch(t){_r(3,1)}}function Ka(t){!function(t){for(var e=(!("visibilityState"in document)||"visible"===document.visibilityState),n=0;n<t.length;n++){var r=t[n];switch(r.entryType){case"navigation":Ja(r);break;case"resource":var a=r.name;$r(4,Qa(a)),a!==u.upload&&a!==u.fallback||T(28,r.duration);break;case"longtask":_(7);break;case"first-input":e&&T(10,r.processingStart-r.startTime);break;case"layout-shift":e&&!r.hadRecentInput&&x(9,1e3*r.value);break;case"largest-contentful-paint":e&&T(8,r.startTime)}}performance&&"memory"in performance&&performance.memory.usedJSHeapSize&&T(30,Math.abs(performance.memory.usedJSHeapSize/1048576))}(t.getEntries())}function Qa(t){var e=document.createElement("a");return e.href=t,e.hostname}var $a=[Object.freeze({__proto__:null,start:function(){ft=[],T(26,navigator.webdriver?1:0),xa(window,"error",Or),Er={},Nr={}},stop:function(){Nr={}}}),Object.freeze({__proto__:null,start:function(){Ht(),Rt(),Kn(),Un=null,Wn=new WeakMap,Xn={},qn=[],Pn=!!window.IntersectionObserver,yn(),function(){if(Pe=[],Je=[],Ge=null,Ze=0,Ke={},null===Be&&(Be=CSSStyleSheet.prototype.insertRule,CSSStyleSheet.prototype.insertRule=function(){return Xa()&&nn(this.ownerNode),Be.apply(this,arguments)}),null===Ve&&(Ve=CSSStyleSheet.prototype.deleteRule,CSSStyleSheet.prototype.deleteRule=function(){return Xa()&&nn(this.ownerNode),Ve.apply(this,arguments)}),null===Fe){Fe=Element.prototype.attachShadow;try{Element.prototype.attachShadow=function(){return Xa()?nn(Fe.apply(this,arguments)):Fe.apply(this,arguments)}}catch(t){Fe=null}}}(),Ot(Ua,1).then((function(){Na(Rt)(),Na(Fn)()}))},stop:function(){Kn(),Wn=null,Xn={},qn=[],Un&&(Un.disconnect(),Un=null),Pn=!1,wn(),function(){for(var t=0,e=Pe;t<e.length;t++){var n=e[t];n&&n.disconnect()}Pe=[],Ke={},Ue=[],Je=[],Ze=0,Ge=null}(),Ht()}}),Ce,Object.freeze({__proto__:null,start:function(){Fa(),function(){window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?"complete"!==document.readyState?xa(window,"load",D.bind(this,Za,0)):Za():_r(3,0)}()},stop:function(){Ba&&Ba.disconnect(),Ba=null,Fa()}})];function ti(t){void 0===t&&(t=null),function(){try{return!1===Ra&&"undefined"!=typeof Promise&&window.MutationObserver&&document.createTreeWalker&&"now"in Date&&"now"in performance&&"undefined"!=typeof WeakMap}catch(t){return!1}}()&&(qa(t),Ya(),at(),$a.forEach((function(t){return Na(t.start)()})))}function ei(){Xa()&&($a.slice().reverse().forEach((function(t){return Na(t.stop)()})),it(),Wa())}var ni=Object.freeze({__proto__:null,version:d,start:ti,pause:function(){Xa()&&(O("clarity","pause"),null===wt&&(wt=new Promise((function(t){kt=t}))))},resume:function(){Xa()&&(wt&&(kt(),wt=null,null===yt&&Mt()),O("clarity","resume"))},stop:ei,consent:ca,event:O,identify:J,set:F,upgrade:U,metadata:ua});!function(){if("undefined"!=typeof window){var t=window,e="clarity";if(t[e]&&t[e].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var n=t[e]&&t[e].q||[];for(t[e]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return ni[t].apply(ni,e)},t[e].v=d;n.length>0;)t[e].apply(t,n.shift())}}()}();
|
package/build/clarity.module.js
CHANGED
|
@@ -111,7 +111,7 @@ function stop$B() {
|
|
|
111
111
|
startTime = 0;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
var version$1 = "0.6.
|
|
114
|
+
var version$1 = "0.6.36";
|
|
115
115
|
|
|
116
116
|
// tslint:disable: no-bitwise
|
|
117
117
|
function hash (input) {
|
|
@@ -645,7 +645,7 @@ function mangleText(value) {
|
|
|
645
645
|
var index = value.indexOf(first);
|
|
646
646
|
var prefix = value.substr(0, index);
|
|
647
647
|
var suffix = value.substr(index + trimmed.length);
|
|
648
|
-
return ""
|
|
648
|
+
return "" + prefix + trimmed.length.toString(36) + suffix;
|
|
649
649
|
}
|
|
650
650
|
return value;
|
|
651
651
|
}
|
|
@@ -719,7 +719,7 @@ function selector (input, beta) {
|
|
|
719
719
|
if (beta === void 0) { beta = false; }
|
|
720
720
|
var a = input.attributes;
|
|
721
721
|
var prefix = input.prefix ? input.prefix[beta ? 1 /* Beta */ : 0 /* Stable */] : null;
|
|
722
|
-
var suffix = beta || ((a && !("class" /* Class */ in a)) || TAGS.indexOf(input.tag) >= 0) ? ":nth-of-type("
|
|
722
|
+
var suffix = beta || ((a && !("class" /* Class */ in a)) || TAGS.indexOf(input.tag) >= 0) ? ":nth-of-type(" + input.position + ")" : "" /* Empty */;
|
|
723
723
|
switch (input.tag) {
|
|
724
724
|
case "STYLE":
|
|
725
725
|
case "TITLE":
|
|
@@ -734,9 +734,9 @@ function selector (input, beta) {
|
|
|
734
734
|
if (prefix === null) {
|
|
735
735
|
return "" /* Empty */;
|
|
736
736
|
}
|
|
737
|
-
prefix =
|
|
737
|
+
prefix = prefix + ">";
|
|
738
738
|
input.tag = input.tag.indexOf("svg:" /* SvgPrefix */) === 0 ? input.tag.substr("svg:" /* SvgPrefix */.length) : input.tag;
|
|
739
|
-
var selector = ""
|
|
739
|
+
var selector = "" + prefix + input.tag + suffix;
|
|
740
740
|
var classes = "class" /* Class */ in a && a["class" /* Class */].length > 0 ? a["class" /* Class */].trim().split(/\s+/) : null;
|
|
741
741
|
if (beta) {
|
|
742
742
|
// In beta mode, update selector to use "id" field when available. There are two exceptions:
|
|
@@ -744,19 +744,19 @@ function selector (input, beta) {
|
|
|
744
744
|
// (2) if "id" appears inside a shadow DOM, in which case we continue to prefix up to shadow DOM to prevent conflicts
|
|
745
745
|
var id = "id" /* Id */ in a && a["id" /* Id */].length > 0 ? a["id" /* Id */] : null;
|
|
746
746
|
classes = input.tag !== "BODY" /* BodyTag */ && classes ? classes.filter(function (c) { return !hasDigits(c); }) : [];
|
|
747
|
-
selector = classes.length > 0 ? ""
|
|
748
|
-
selector = id && hasDigits(id) === false ?
|
|
747
|
+
selector = classes.length > 0 ? "" + prefix + input.tag + "." + classes.join(".") + suffix : selector;
|
|
748
|
+
selector = id && hasDigits(id) === false ? getDomPrefix(prefix) + "#" + id : selector;
|
|
749
749
|
}
|
|
750
750
|
else {
|
|
751
751
|
// Otherwise, fallback to stable mode, where we include class names as part of the selector
|
|
752
|
-
selector = classes ? ""
|
|
752
|
+
selector = classes ? "" + prefix + input.tag + "." + classes.join(".") + suffix : selector;
|
|
753
753
|
}
|
|
754
754
|
return selector;
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
function getDomPrefix(prefix) {
|
|
758
758
|
var shadowDomStart = prefix.lastIndexOf("*S" /* ShadowDomTag */);
|
|
759
|
-
var iframeDomStart = prefix.lastIndexOf(""
|
|
759
|
+
var iframeDomStart = prefix.lastIndexOf("" + "iframe:" /* IFramePrefix */ + "HTML" /* HTML */);
|
|
760
760
|
var domStart = Math.max(shadowDomStart, iframeDomStart);
|
|
761
761
|
if (domStart < 0) {
|
|
762
762
|
return "";
|
|
@@ -917,7 +917,7 @@ function suspend$1(timer) {
|
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
function key(timer) {
|
|
920
|
-
return
|
|
920
|
+
return timer.id + "." + timer.cost;
|
|
921
921
|
}
|
|
922
922
|
function wait() {
|
|
923
923
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1094,7 +1094,7 @@ function encode$4 (type, timer, ts) {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
tokens.push(suspend ? "*M" /* SuspendMutationTag */ : data[key]);
|
|
1096
1096
|
if (box && box.length === 2) {
|
|
1097
|
-
tokens.push(""
|
|
1097
|
+
tokens.push("" + "#" /* Box */ + str$1(box[0]) + "." + str$1(box[1]));
|
|
1098
1098
|
}
|
|
1099
1099
|
break;
|
|
1100
1100
|
case "attributes":
|
|
@@ -1144,7 +1144,7 @@ function str$1(input) {
|
|
|
1144
1144
|
return input.toString(36);
|
|
1145
1145
|
}
|
|
1146
1146
|
function attribute(key, value, privacy) {
|
|
1147
|
-
return
|
|
1147
|
+
return key + "=" + scrub(value, key, privacy);
|
|
1148
1148
|
}
|
|
1149
1149
|
|
|
1150
1150
|
var data$c;
|
|
@@ -1763,7 +1763,7 @@ function num$1(input, scale) {
|
|
|
1763
1763
|
return null;
|
|
1764
1764
|
}
|
|
1765
1765
|
|
|
1766
|
-
var IGNORE_ATTRIBUTES = ["title", "alt", "onload", "onfocus", "onerror"];
|
|
1766
|
+
var IGNORE_ATTRIBUTES = ["title", "alt", "onload", "onfocus", "onerror", "data-drupal-form-submit-last"];
|
|
1767
1767
|
var newlineRegex = /[\r\n]+/g;
|
|
1768
1768
|
function processNode (node, source) {
|
|
1769
1769
|
var child = null;
|
|
@@ -2118,7 +2118,7 @@ function handle$1(m) {
|
|
|
2118
2118
|
track$6(6 /* Mutation */, now);
|
|
2119
2119
|
mutations.push({ time: now, mutations: m });
|
|
2120
2120
|
schedule$1(process$2, 1 /* High */).then(function () {
|
|
2121
|
-
|
|
2121
|
+
setTimeout(compute$7);
|
|
2122
2122
|
measure(compute$6)();
|
|
2123
2123
|
});
|
|
2124
2124
|
}
|
|
@@ -2361,7 +2361,7 @@ function parse$1(root, init) {
|
|
|
2361
2361
|
// Since mutations may happen on leaf nodes too, e.g. text nodes, which may not support all selector APIs.
|
|
2362
2362
|
// We ensure that the root note supports querySelectorAll API before executing the code below to identify new regions.
|
|
2363
2363
|
if ("querySelectorAll" in root) {
|
|
2364
|
-
config$1.regions.forEach(function (x) { return root.querySelectorAll(x[1]).forEach(function (e) { return observe$1(e, ""
|
|
2364
|
+
config$1.regions.forEach(function (x) { return root.querySelectorAll(x[1]).forEach(function (e) { return observe$1(e, "" + x[0]); }); }); // Regions
|
|
2365
2365
|
config$1.mask.forEach(function (x) { return root.querySelectorAll(x).forEach(function (e) { return privacyMap.set(e, 3 /* TextImage */); }); }); // Masked Elements
|
|
2366
2366
|
config$1.fraud.forEach(function (x) { return root.querySelectorAll(x[1]).forEach(function (e) { return fraudMap.set(e, x[0]); }); }); // Fraud Check
|
|
2367
2367
|
unmask.forEach(function (x) { return root.querySelectorAll(x).forEach(function (e) { return privacyMap.set(e, 0 /* None */); }); }); // Unmasked Elements
|
|
@@ -3174,8 +3174,8 @@ function upload(final) {
|
|
|
3174
3174
|
compute$8();
|
|
3175
3175
|
last = final === true;
|
|
3176
3176
|
e = JSON.stringify(envelope(last));
|
|
3177
|
-
a = "["
|
|
3178
|
-
p = sendPlaybackBytes ? "["
|
|
3177
|
+
a = "[" + analysis.join() + "]";
|
|
3178
|
+
p = sendPlaybackBytes ? "[" + playback.join() + "]" : "" /* Empty */;
|
|
3179
3179
|
encoded = { e: e, a: a, p: p };
|
|
3180
3180
|
payload = stringify(encoded);
|
|
3181
3181
|
if (!last) return [3 /*break*/, 1];
|
|
@@ -3202,7 +3202,7 @@ function upload(final) {
|
|
|
3202
3202
|
});
|
|
3203
3203
|
}
|
|
3204
3204
|
function stringify(encoded) {
|
|
3205
|
-
return encoded.p.length > 0 ? "{\"e\":"
|
|
3205
|
+
return encoded.p.length > 0 ? "{\"e\":" + encoded.e + ",\"a\":" + encoded.a + ",\"p\":" + encoded.p + "}" : "{\"e\":" + encoded.e + ",\"a\":" + encoded.a + "}";
|
|
3206
3206
|
}
|
|
3207
3207
|
function send(payload, zipped, sequence, beacon) {
|
|
3208
3208
|
if (beacon === void 0) { beacon = false; }
|
|
@@ -3415,7 +3415,7 @@ function log$1(code, severity, name, message, stack) {
|
|
|
3415
3415
|
if (name === void 0) { name = null; }
|
|
3416
3416
|
if (message === void 0) { message = null; }
|
|
3417
3417
|
if (stack === void 0) { stack = null; }
|
|
3418
|
-
var key = name ?
|
|
3418
|
+
var key = name ? name + "|" + message : "";
|
|
3419
3419
|
// While rare, it's possible for code to fail repeatedly during the lifetime of the same page
|
|
3420
3420
|
// In those cases, we only want to log the failure once and not spam logs with redundant information.
|
|
3421
3421
|
if (code in history$2 && history$2[code].indexOf(key) >= 0) {
|
|
@@ -3723,7 +3723,7 @@ function log(dimension, value) {
|
|
|
3723
3723
|
// Check valid value before moving ahead
|
|
3724
3724
|
if (value) {
|
|
3725
3725
|
// Ensure received value is casted into a string if it wasn't a string to begin with
|
|
3726
|
-
value = ""
|
|
3726
|
+
value = "" + value;
|
|
3727
3727
|
if (!(dimension in data$3)) {
|
|
3728
3728
|
data$3[dimension] = [];
|
|
3729
3729
|
}
|
|
@@ -3905,7 +3905,7 @@ function session() {
|
|
|
3905
3905
|
output.session = parts[0];
|
|
3906
3906
|
output.count = num(parts[2]) + 1;
|
|
3907
3907
|
output.upgrade = num(parts[3]);
|
|
3908
|
-
output.upload = parts.length >= 6 ? ""
|
|
3908
|
+
output.upload = parts.length >= 6 ? "" + "https://" /* HTTPS */ + parts[5] + "/" + parts[4] : "" + "https://" /* HTTPS */ + parts[4];
|
|
3909
3909
|
}
|
|
3910
3910
|
}
|
|
3911
3911
|
return output;
|
|
@@ -3930,11 +3930,11 @@ function user() {
|
|
|
3930
3930
|
// Check if we either got version-less cookie value or saw multiple copies of the user cookie crumbs
|
|
3931
3931
|
// In both these cases, we go ahead and delete the existing cookie set on current domain
|
|
3932
3932
|
if (parts.length === 1 || count > 1) {
|
|
3933
|
-
var deleted = ""
|
|
3933
|
+
var deleted = "" + ";" /* Semicolon */ + "expires=" /* Expires */ + (new Date(0)).toUTCString() + ";path=/" /* Path */;
|
|
3934
3934
|
// First, delete current user cookie which might be set on current sub-domain vs. root domain
|
|
3935
|
-
document.cookie = "
|
|
3935
|
+
document.cookie = "_clck" /* CookieKey */ + "=" + deleted;
|
|
3936
3936
|
// Second, same thing for current session cookie so it can be re-written later with the root domain
|
|
3937
|
-
document.cookie = "
|
|
3937
|
+
document.cookie = "_clsk" /* SessionKey */ + "=" + deleted;
|
|
3938
3938
|
}
|
|
3939
3939
|
// End code for backward compatibility
|
|
3940
3940
|
// Read version information and timestamp from cookie, if available
|
|
@@ -3971,19 +3971,19 @@ function setCookie(key, value, time) {
|
|
|
3971
3971
|
var expiry = new Date();
|
|
3972
3972
|
expiry.setDate(expiry.getDate() + time);
|
|
3973
3973
|
var expires = expiry ? "expires=" /* Expires */ + expiry.toUTCString() : "" /* Empty */;
|
|
3974
|
-
var cookie =
|
|
3974
|
+
var cookie = key + "=" + value + ";" /* Semicolon */ + expires + ";path=/" /* Path */;
|
|
3975
3975
|
try {
|
|
3976
3976
|
// Attempt to get the root domain only once and fall back to writing cookie on the current domain.
|
|
3977
3977
|
if (rootDomain === null) {
|
|
3978
3978
|
var hostname = location.hostname ? location.hostname.split("." /* Dot */) : [];
|
|
3979
3979
|
// Walk backwards on a domain and attempt to set a cookie, until successful
|
|
3980
3980
|
for (var i = hostname.length - 1; i >= 0; i--) {
|
|
3981
|
-
rootDomain = "."
|
|
3981
|
+
rootDomain = "." + hostname[i] + (rootDomain ? rootDomain : "" /* Empty */);
|
|
3982
3982
|
// We do not wish to attempt writing a cookie on the absolute last part of the domain, e.g. .com or .net.
|
|
3983
3983
|
// So we start attempting after second-last part, e.g. .domain.com (PASS) or .co.uk (FAIL)
|
|
3984
3984
|
if (i < hostname.length - 1) {
|
|
3985
3985
|
// Write the cookie on the current computed top level domain
|
|
3986
|
-
document.cookie = ""
|
|
3986
|
+
document.cookie = "" + cookie + ";" /* Semicolon */ + "domain=" /* Domain */ + rootDomain;
|
|
3987
3987
|
// Once written, check if the cookie exists and its value matches exactly with what we intended to set
|
|
3988
3988
|
// Checking for exact value match helps us eliminate a corner case where the cookie may already be present with a different value
|
|
3989
3989
|
// If the check is successful, no more action is required and we can return from the function since rootDomain cookie is already set
|
|
@@ -4001,7 +4001,7 @@ function setCookie(key, value, time) {
|
|
|
4001
4001
|
catch (_a) {
|
|
4002
4002
|
rootDomain = "" /* Empty */;
|
|
4003
4003
|
}
|
|
4004
|
-
document.cookie = rootDomain ? ""
|
|
4004
|
+
document.cookie = rootDomain ? "" + cookie + ";" /* Semicolon */ + "domain=" /* Domain */ + rootDomain : cookie;
|
|
4005
4005
|
}
|
|
4006
4006
|
}
|
|
4007
4007
|
|
package/package.json
CHANGED
package/src/core/timeout.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Event } from "@clarity-types/data";
|
|
2
2
|
import measure from "./measure";
|
|
3
3
|
|
|
4
|
-
export function setTimeout(handler: (event?: Event | boolean) => void, timeout
|
|
4
|
+
export function setTimeout(handler: (event?: Event | boolean) => void, timeout?: number, event?: Event): number {
|
|
5
5
|
return window.setTimeout(measure(handler), timeout, event);
|
|
6
6
|
}
|
|
7
7
|
|
package/src/core/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
let version = "0.6.
|
|
1
|
+
let version = "0.6.36";
|
|
2
2
|
export default version;
|
package/src/layout/mutation.ts
CHANGED
|
@@ -114,7 +114,7 @@ function handle(m: MutationRecord[]): void {
|
|
|
114
114
|
summary.track(Event.Mutation, now);
|
|
115
115
|
mutations.push({ time: now, mutations: m});
|
|
116
116
|
task.schedule(process, Priority.High).then((): void => {
|
|
117
|
-
|
|
117
|
+
setTimeout(doc.compute)
|
|
118
118
|
measure(region.compute)();
|
|
119
119
|
});
|
|
120
120
|
}
|
package/src/layout/node.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as interaction from "@src/interaction";
|
|
|
7
7
|
import * as mutation from "@src/layout/mutation";
|
|
8
8
|
import * as schema from "@src/layout/schema";
|
|
9
9
|
|
|
10
|
-
const IGNORE_ATTRIBUTES = ["title", "alt", "onload", "onfocus", "onerror"];
|
|
10
|
+
const IGNORE_ATTRIBUTES = ["title", "alt", "onload", "onfocus", "onerror", "data-drupal-form-submit-last"];
|
|
11
11
|
const newlineRegex = /[\r\n]+/g;
|
|
12
12
|
|
|
13
13
|
export default function (node: Node, source: Source): Node {
|