clarity-js 0.7.4 → 0.7.6
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.insight.js +1 -1
- package/build/clarity.js +90 -59
- package/build/clarity.min.js +1 -1
- package/build/clarity.module.js +90 -59
- package/package.json +1 -1
- package/rollup.config.ts +5 -5
- package/src/core/report.ts +1 -1
- package/src/core/scrub.ts +39 -9
- package/src/core/version.ts +1 -1
- package/src/data/upload.ts +6 -2
- package/src/{core → insight}/blank.ts +3 -1
- package/src/insight/encode.ts +61 -0
- package/src/insight/snapshot.ts +112 -0
- package/src/interaction/click.ts +15 -2
- package/src/interaction/encode.ts +1 -1
- package/src/interaction/pointer.ts +1 -1
- package/src/layout/document.ts +2 -2
- package/src/layout/encode.ts +1 -1
- package/src/layout/index.ts +1 -1
- package/src/layout/node.ts +2 -2
- package/src/layout/offset.ts +1 -1
- package/src/layout/target.ts +0 -13
- package/src/layout/traverse.ts +4 -4
- package/src/performance/observer.ts +1 -1
- package/types/core.d.ts +2 -1
- package/types/data.d.ts +6 -3
- package/types/layout.d.ts +1 -0
package/build/clarity.insight.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var t=Object.freeze({__proto__:null,get queue(){return ea},get start(){return ta},get stop(){return na},get track(){return Gn}}),e=Object.freeze({__proto__:null,get clone(){return ka},get compute(){return Ea},get data(){return va},get keys(){return ga},get reset(){return Oa},get start(){return ya},get stop(){return xa},get trigger(){return wa},get update(){return Sa}}),n=Object.freeze({__proto__:null,get check(){return Ca},get compute(){return ja},get data(){return pa},get start(){return Ia},get stop(){return Aa},get trigger(){return Da}}),a=Object.freeze({__proto__:null,get compute(){return qa},get data(){return Ra},get log(){return Wa},get reset(){return Pa},get start(){return La},get stop(){return Ha},get updates(){return za}}),r=Object.freeze({__proto__:null,get callbacks(){return Xa},get clear(){return Za},get consent(){return Ga},get data(){return Ya},get id(){return Ja},get metadata(){return Fa},get save(){return Ka},get start(){return Ba},get stop(){return Va}}),i=Object.freeze({__proto__:null,get data(){return or},get envelope(){return sr},get start(){return ur},get stop(){return cr}}),o={projectId:null,delay:1e3,lean:!1,track:!0,content:!0,drop:[],mask:[],unmask:[],regions:[],cookies:[],fraud:!0,checksum:[],report:null,upload:null,fallback:null,upgrade:null,action:null};function u(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var c=0;function s(t){void 0===t&&(t=null);var e=t&&t.timeStamp>0?t.timeStamp:performance.now();return Math.max(Math.round(e-c),0)}var l="0.7.4";function d(t,e){void 0===e&&(e=null);for(var n,a=5381,r=a,i=0;i<t.length;i+=2){if(a=(a<<5)+a^t.charCodeAt(i),i+1<t.length)r=(r<<5)+r^t.charCodeAt(i+1)}return n=Math.abs(a+11579*r),(e?n%Math.pow(2,e):n).toString(36)}var f=/\S/gi,h=!0,p=null,v=null,g=null;function m(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":case"click":return function(t){var e=-1,n=0,a=!1,r=!1,i=!1,o=null;if(h&&null===p)try{p=new RegExp("\\p{N}","gu"),v=new RegExp("\\p{L}","gu"),g=new RegExp("\\p{Sc}","gu")}catch(t){h=!1}for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(a=a||c>=48&&c<=57,r=r||64===c,i=9===c||10===c||13===c||32===c,0===u||u===t.length-1||i){if(a||r){null===o&&(o=t.split(""));var s=t.substring(e+1,i?u:u+1);s=h&&null!==g?s.match(g)?s:s.replace(v,"▪").replace(p,"▫"):w(s),o.splice(e+1-n,s.length,s),n+=s.length-1}i&&(a=!1,r=!1,e=u)}}return o?o.join(""):t}(t);case"input":case"change":return k(t)}return t;case 2:case 3:switch(e){case"*T":return a?y(t):w(t);case"src":case"srcset":case"title":case"alt":return 3===n?"":t;case"value":case"click":case"input":case"change":return k(t);case"placeholder":return w(t)}break;case 4:switch(e){case"*T":return a?y(t):w(t);case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":return""}}return t}function b(t){var e=o.drop;if(e&&e.length>0&&t&&t.indexOf("?")>0){var n=t.split("?"),a=n[0],r=n[1];return a+"?"+r.split("&").map((function(t){return e.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}return t}function y(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}function w(t){return t.replace(f,"•")}function k(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}var E=null,O=null,S=!1;function x(){S&&(E={time:s(),event:4,data:{visible:O.visible,docWidth:O.docWidth,docHeight:O.docHeight,screenWidth:O.screenWidth,screenHeight:O.screenHeight,scrollX:O.scrollX,scrollY:O.scrollY,pointerX:O.pointerX,pointerY:O.pointerY,activityTime:O.activityTime}}),O=O||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0}}function _(t,e,n){switch(t){case 8:O.docWidth=e,O.docHeight=n;break;case 11:O.screenWidth=e,O.screenHeight=n;break;case 10:O.scrollX=e,O.scrollY=n;break;default:O.pointerX=e,O.pointerY=n}S=!0}function M(t){O.activityTime=t}function T(t,e){O.visible="visible"===e?1:0,O.visible||M(t),S=!0}function N(){S&&Na(4)}var I=Object.freeze({__proto__:null,activity:M,compute:N,reset:x,start:function(){S=!1,x()},get state(){return E},stop:function(){x()},track:_,visibility:T}),C=null;function D(t,e){_r()&&t&&e&&"string"==typeof t&&"string"==typeof e&&t.length<255&&e.length<255&&(C={key:t,value:e},Na(24))}var j,A=null,R=null;function z(t){t in A||(A[t]=0),t in R||(R[t]=0),A[t]++,R[t]++}function L(t,e){null!==e&&(t in A||(A[t]=0),t in R||(R[t]=0),A[t]+=e,R[t]+=e)}function H(t,e){null!==e&&!1===isNaN(e)&&(t in A||(A[t]=0),(e>A[t]||0===A[t])&&(R[t]=e,A[t]=e))}function W(t,e,n){return window.setTimeout(dr(t),e,n)}function q(t){return window.clearTimeout(t)}var P=0,Y=0,X=null;function U(){X&&q(X),X=W(B,Y),P=s()}function B(){var t=s();j={gap:t-P},Na(25),j.gap<3e5?X=W(B,Y):Or&&(D("clarity","suspend"),Yr(),["mousemove","touchstart"].forEach((function(t){return hr(document,t,Tr)})),["resize","scroll","pageshow"].forEach((function(t){return hr(window,t,Tr)})))}var V=Object.freeze({__proto__:null,get data(){return j},reset:U,start:function(){Y=6e4,P=0},stop:function(){q(X),P=0,Y=0}}),F=null;function J(t,e){if(t in F){var n=F[t],a=n[n.length-1];e-a[0]>100?F[t].push([e,0]):a[1]=e-a[0]}else F[t]=[[e,0]]}function G(){Na(36)}function Z(){F={}}var K=Object.freeze({__proto__:null,compute:G,get data(){return F},reset:Z,start:function(){F={}},stop:function(){F={}},track:J}),Q=null;function $(t){_r()&&o.lean&&(o.lean=!1,Q={key:t},Ka(),o.upgrade&&o.upgrade(t),Na(3))}var tt=Object.freeze({__proto__:null,get data(){return Q},start:function(){!o.lean&&o.upgrade&&o.upgrade("Config"),Q=null},stop:function(){Q=null},upgrade:$}),et=null;function nt(t,e){rt(t,"string"==typeof e?[e]:e)}function at(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null),rt("userId",[t]),rt("sessionId",[e]),rt("pageId",[n])}function rt(t,e){if(_r()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in et?et[t]:[]),a=0;a<e.length;a++)"string"==typeof e[a]&&e[a].length<255&&n.push(e[a]);et[t]=n}}function it(){Na(34)}function ot(){et={}}function ut(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 ct(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(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var st="CompressionStream"in window;function lt(t){return ut(this,void 0,void 0,(function(){var e,n;return ct(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),st?(e=new ReadableStream({start:function(e){return ut(this,void 0,void 0,(function(){return ct(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,dt(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 dt(t){return ut(this,void 0,void 0,(function(){var e,n,a,r,i;return ct(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 ft=[I,a,Object.freeze({__proto__:null,compute:it,get data(){return et},identify:at,reset:ot,set:nt,start:function(){ot()},stop:function(){ot()}}),n,K,r,i,t,V,tt,e];function ht(){A={},R={},z(5),ft.forEach((function(t){return dr(t.start)()}))}function pt(){ft.slice().reverse().forEach((function(t){return dr(t.stop)()})),A={},R={}}function vt(){it(),N(),qa(),Na(0),G(),ja(),Ea()}var gt,mt=[];function bt(t,e,n){o.fraud&&null!==t&&n&&n.length>=5&&(gt={id:t,target:e,checksum:d(n,24)},mt.indexOf(gt.checksum)<0&&(mt.push(gt.checksum),la(41)))}var yt="load,active,fixed,visible,focus,show,collaps,animat".split(","),wt={};function kt(t,e){var n=t.attributes,a=t.prefix?t.prefix[e]:null,r=0===e?"".concat("~").concat(t.position-1):":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).concat(">"),t.tag=0===t.tag.indexOf("svg:")?t.tag.substr("svg:".length):t.tag;var i="".concat(a).concat(t.tag).concat(r),o="id"in n&&n.id.length>0?n.id:null,u="BODY"!==t.tag&&"class"in n&&n.class.length>0?n.class.trim().split(/\s+/).filter((function(t){return Et(t)})).join("."):null;if(u&&u.length>0)if(0===e){var c="".concat(function(t){for(var e=t.split(">"),n=0;n<e.length;n++){var a=e[n].indexOf("~"),r=e[n].indexOf(".");e[n]=e[n].substring(0,r>0?r:a>0?a:e[n].length)}return e.join(">")}(a)).concat(t.tag).concat(".").concat(u);c in wt||(wt[c]=[]),wt[c].indexOf(t.id)<0&&wt[c].push(t.id),i="".concat(c).concat("~").concat(wt[c].indexOf(t.id))}else i="".concat(a).concat(t.tag,".").concat(u).concat(r);return i=o&&Et(o)?"".concat(function(t){var e=t.lastIndexOf("*S"),n=t.lastIndexOf("".concat("iframe:").concat("HTML")),a=Math.max(e,n);if(a<0)return"";return t.substring(0,t.indexOf(">",a)+1)}(a)).concat("#").concat(o):i,i}}function Et(t){if(!t)return!1;if(yt.some((function(e){return t.toLowerCase().indexOf(e)>=0})))return!1;for(var e=0;e<t.length;e++){var n=t.charCodeAt(e);if(n>=48&&n<=57)return!1}return!0}var Ot=1,St=[],xt=[],_t=[],Mt={},Tt=[],Nt=[],It=[],Ct=[],Dt=[],jt=[],At=null,Rt=null,zt=null,Lt=null;function Ht(){qt(),Pt(document,!0)}function Wt(){qt()}function qt(){Ot=1,St=[],xt=[],_t=[],Mt={},Tt=[],Nt=[],It="address,password,contact".split(","),Ct="password,secret,pass,social,ssn,code,hidden".split(","),Dt="radio,checkbox,range,button,reset,submit".split(","),jt="INPUT,SELECT,TEXTAREA".split(","),At=new WeakMap,Rt=new WeakMap,zt=new WeakMap,Lt=new WeakMap,wt={}}function Pt(t,e){void 0===e&&(e=!1);try{e&&o.unmask.forEach((function(t){return t.indexOf("!")<0?Nt.push(t):Tt.push(t.substr(1))})),"querySelectorAll"in t&&(o.regions.forEach((function(e){return t.querySelectorAll(e[1]).forEach((function(t){return Ce(t,"".concat(e[0]))}))})),o.mask.forEach((function(e){return t.querySelectorAll(e).forEach((function(t){return zt.set(t,3)}))})),o.checksum.forEach((function(e){return t.querySelectorAll(e[1]).forEach((function(t){return Lt.set(t,e[0])}))})),Nt.forEach((function(e){return t.querySelectorAll(e).forEach((function(t){return zt.set(t,0)}))})))}catch(t){ha(5,1,t?t.name:null)}}function Yt(t,e){if(void 0===e&&(e=!1),null===t)return null;var n=At.get(t);return!n&&e&&(n=Ot++,At.set(t,n)),n||null}function Xt(t){var e=!1;if(t.nodeType===Node.ELEMENT_NODE&&"IFRAME"===t.tagName){var n=t;try{n.contentDocument&&(Rt.set(n.contentDocument,n),e=!0)}catch(t){}}return e}function Ut(t){var e=t.nodeType===Node.DOCUMENT_NODE?t:null;return e&&Rt.has(e)?Rt.get(e):null}function Bt(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 Vt(t){var e=t.parent&&t.parent in xt?xt[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=xt[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={id:t.id,tag:a.tag,prefix:n,position:r,attributes:a.attributes};t.selector=[kt(i,0),kt(i,1)],t.hash=t.selector.map((function(t){return t?d(t):null})),t.hash.forEach((function(e){return Mt[e]=t.id}))}function Ft(t){var e=Jt(Zt(t));return null!==e&&null!==e.textContent?e.textContent.substr(0,25):""}function Jt(t){return t in St?St[t]:null}function Gt(t){var e=Yt(t);return e in xt?xt[e]:null}function Zt(t){return t in Mt?Mt[t]:null}function Kt(t){return Yt(t)in St}function Qt(){for(var t=[],e=0,n=_t;e<n.length;e++){var a=n[e];a in xt&&t.push(xt[a])}return _t=[],t}function $t(t){for(var e=null;null===e&&t.previousSibling;)e=Yt(t.previousSibling),t=t.previousSibling;return e}function te(t,e,n,a){void 0===n&&(n=!0),void 0===a&&(a=!1);var r=_t.indexOf(t);r>=0&&1===e&&a?(_t.splice(r,1),_t.push(t)):-1===r&&n&&_t.push(t)}var ee=Object.freeze({__proto__:null,add:function(t,e,n,a){var r,i=Yt(t,!0),u=e?Yt(e):null,c=$t(t),s=null,l=De(t)?i:null,d=Lt.has(t)?Lt.get(t):null,f=o.content?1:3;u>=0&&xt[u]&&((s=xt[u]).children.push(i),l=null===l?s.region:l,d=null===d?s.metadata.fraud:d,f=s.metadata.privacy),n.attributes&&"data-clarity-region"in n.attributes&&(Ce(t,n.attributes["data-clarity-region"]),l=i),St[i]=t,xt[i]={id:i,parent:u,previous:c,children:[],data:n,selector:null,hash:null,region:l,metadata:{active:!0,suspend:!1,privacy:f,position:null,fraud:d,size:null}},function(t,e,n){var a=e.data,r=e.metadata,i=r.privacy,o=a.attributes||{},u=a.tag.toUpperCase();switch(!0){case jt.indexOf(u)>=0:var c=o.type,s="";Object.keys(o).forEach((function(t){return s+=o[t].toLowerCase()}));var l=Ct.some((function(t){return s.indexOf(t)>=0}));r.privacy="INPUT"===u&&Dt.indexOf(c)>=0?i:l?4:2;break;case"data-clarity-mask"in o:r.privacy=3;break;case"data-clarity-unmask"in o:r.privacy=0;break;case zt.has(t):r.privacy=zt.get(t);break;case Lt.has(t):r.privacy=2;break;case"*T"===u:var d=n&&n.data?n.data.tag:"",f=n&&n.selector?n.selector[1]:"",h=["STYLE","TITLE","svg:style"];r.privacy=h.includes(d)||Tt.some((function(t){return f.indexOf(t)>=0}))?0:i;break;case 1===i:r.privacy=function(t,e,n){if(t&&e.some((function(e){return t.indexOf(e)>=0})))return 2;return n.privacy}(o.class,It,r)}}(t,xt[i],s),Vt(xt[i]),"IMG"===(r=xt[i]).data.tag&&3===r.metadata.privacy&&(r.metadata.size=[]),te(i,a)},get:Gt,getId:Yt,getNode:Jt,getValue:function(t){return t in xt?xt[t]:null},has:Kt,hashText:Ft,iframe:Ut,lookup:Zt,parse:Pt,sameorigin:Xt,start:Ht,stop:Wt,update:function(t,e,n,a){var r=Yt(t),i=e?Yt(e):null,o=$t(t),u=!1,c=!1;if(r in xt){var s=xt[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:xt[i].children.indexOf(o)+1;xt[i].children.splice(d,0,r),s.region=De(t)?r:xt[i].region}else!function(t,e){if(t in xt){var n=xt[t];n.metadata.active=!1,n.parent=null,te(t,e)}}(r,a);if(null!==l&&l>=0){var f=xt[l].children.indexOf(r);f>=0&&xt[l].children.splice(f,1)}c=!0}for(var h in n)Bt(s.data,n,h)&&(u=!0,s.data[h]=n[h]);Vt(s),te(r,a,u,c)}},updates:Qt}),ne=5e3,ae={},re=[],ie=null,oe=null,ue=null;function ce(){ae={},re=[],ie=null,oe=null}function se(t,e){return void 0===e&&(e=0),ut(this,void 0,void 0,(function(){var n,a,r;return ct(this,(function(i){for(n=0,a=re;n<a.length;n++)if(a[n].task===t)return[2];return r=new Promise((function(n){re[1===e?"unshift":"push"]({task:t,resolve:n,id:Ja()})})),null===ie&&null===oe&&le(),[2,r]}))}))}function le(){var t=re.shift();t&&(ie=t,t.task().then((function(){t.id===Ja()&&(t.resolve(),ie=null,le())})).catch((function(e){t.id===Ja()&&(e&&ha(0,1,e.name,e.message,e.stack),ie=null,le())})))}function de(t){var e=ve(t);return e in ae?performance.now()-ae[e].start>ae[e].yield?0:1:2}function fe(t){ae[ve(t)]={start:performance.now(),calls:0,yield:30}}function he(t){var e=performance.now(),n=ve(t),a=e-ae[n].start;L(t.cost,a),z(5),ae[n].calls>0&&L(4,a)}function pe(t){return ut(this,void 0,void 0,(function(){var e,n;return ct(this,(function(a){switch(a.label){case 0:return(e=ve(t))in ae?(he(t),n=ae[e],[4,ge()]):[3,2];case 1:n.yield=a.sent().timeRemaining(),function(t){var e=ve(t);if(ae&&ae[e]){var n=ae[e].calls,a=ae[e].yield;fe(t),ae[e].calls=n+1,ae[e].yield=a}}(t),a.label=2;case 2:return[2,e in ae?1:2]}}))}))}function ve(t){return"".concat(t.id,".").concat(t.cost)}function ge(){return ut(this,void 0,void 0,(function(){return ct(this,(function(t){switch(t.label){case 0:return oe?[4,oe]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2,new Promise((function(t){be(t,{timeout:ne})}))]}}))}))}var me,be=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 ye(){me=null}function we(){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!==me&&c===me.width&&v===me.height||null===c||null===v||(me={width:c,height:v},ke(8))}function ke(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),ut(this,void 0,void 0,(function(){var a,r,i,u,c,l,d,f,h,p,v,g,b,y,w,k,E,O,S,x,T,N;return ct(this,(function(I){switch(I.label){case 0:switch(a=n||s(),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=me,r.push(i.width),r.push(i.height),_(t,i.width,i.height),ea(r),[3,10];case 2:for(u=0,c=xe;u<c.length;u++)l=c[u],(r=[l.time,7]).push(l.data.id),r.push(l.data.interaction),r.push(l.data.visibility),r.push(l.data.name),ea(r);return Le(),[3,10];case 3:if(2===de(e))return[3,10];if(!((d=Qt()).length>0))return[3,9];f=0,h=d,I.label=4;case 4:return f<h.length?(p=h[f],0!==(v=de(e))?[3,6]:[4,pe(e)]):[3,8];case 5:v=I.sent(),I.label=6;case 6:if(2===v)return[3,8];for(g=p.data,b=p.metadata.active,y=p.metadata.suspend,w=p.metadata.privacy,k=function(t){var e=t.metadata.privacy;return"*T"===t.data.tag&&!(0===e||1===e)}(p),E=0,O=b?["tag","attributes","value"]:["tag"];E<O.length;E++)if(g[S=O[E]])switch(S){case"tag":x=Ee(p),T=k?-1:1,r.push(p.id*T),p.parent&&b&&r.push(p.parent),p.previous&&b&&r.push(p.previous),r.push(y?"*M":g[S]),x&&2===x.length&&r.push("".concat("#").concat(Oe(x[0]),".").concat(Oe(x[1])));break;case"attributes":for(N in g[S])void 0!==g[S][N]&&r.push(Se(N,g[S][N],w));break;case"value":bt(p.metadata.fraud,p.id,g[S]),r.push(m(g[S],g.tag,w,k))}I.label=7;case 7:return f++,[3,4];case 8:6===t&&M(a),ea(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),!o.lean),I.label=9;case 9:return[3,10];case 10:return[2]}}))}))}function Ee(t){if(null!==t.metadata.size&&0===t.metadata.size.length){var e=Jt(t.id);if(e)return[Math.floor(100*e.offsetWidth),Math.floor(100*e.offsetHeight)]}return t.metadata.size}function Oe(t){return t.toString(36)}function Se(t,e,n){return"".concat(t,"=").concat(m(e,t,n))}var xe=[],_e=null,Me={},Te=[],Ne=!1,Ie=null;function Ce(t,e){!1===_e.has(t)&&(_e.set(t,e),(Ie=null===Ie&&Ne?new IntersectionObserver(Ae,{threshold:[0,.2,.4,.6,.8,1]}):Ie)&&t&&t.nodeType===Node.ELEMENT_NODE&&Ie.observe(t))}function De(t){return _e&&_e.has(t)}function je(){for(var t=[],e=0,n=Te;e<n.length;e++){var a=n[e],r=Yt(a.node);r in Me||(r?(a.data.id=r,Me[r]=a.data,xe.push(ze(a.data))):t.push(a))}Te=t,xe.length>0&&ke(7)}function Ae(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(_e.has(r)&&i.width+i.height>0&&u.width>0&&u.height>0){var c=r?Yt(r):null,s=c in Me?Me[c]:{id:c,name:_e.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;Re(r,s,s.interaction,d?13:l?10:0),s.visibility>=13&&Ie&&Ie.unobserve(r)}}xe.length>0&&ke(7)}function Re(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 Me&&r||!(e.id in Me))&&(Me[e.id]=e,xe.push(ze(e))):Te.push({node:t,data:e})}function ze(t){return{time:s(),data:{id:t.id,interaction:t.interaction,visibility:t.visibility,name:t.name}}}function Le(){xe=[]}var He=[],We=null;var qe,Pe=["input","textarea","radio","button","canvas"],Ye=[];function Xe(t){hr(t,"click",Ue.bind(this,9,t),!0)}function Ue(t,e,n){var a=Ut(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=function(t){var e={x:0,y:0};if(t&&t.offsetParent)do{var n=t.offsetParent,a=null===n?Ut(t.ownerDocument):null;e.x+=t.offsetLeft,e.y+=t.offsetTop,t=a||n}while(t);return e}(a);i=i?i+Math.round(u.x):i,o=o?o+Math.round(u.y):o}var c=Hn(n),l=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&&(Ye.push({time:s(n),event:t,data:{target:c,x:i,y:o,eX:f,eY:h,button:n.button,reaction:Ve(c),context:Fe(l),text:Be(c),link:l?l.href:null,hash:null,trust:n.isTrusted?1:0}}),se(qn.bind(this,t)))}function Be(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 Ve(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t.tagName.toLowerCase();if(Pe.indexOf(e)>=0)return 0}return 1}function Fe(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 Je(){Ye=[]}function Ge(){var t=document.documentElement;qe={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},qn(11)}function Ze(){qe=null}var Ke=[],Qe=null;function $e(t){void 0===t&&(t=null);var e=window,n=document.documentElement,a=t?Hn(t):n;if(a&&a.nodeType===Node.DOCUMENT_NODE){var r=Ut(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:s(t),event:10,data:{target:a,x:i,y:o}};if((null!==t||0!==i||0!==o)&&null!==i&&null!==o){var c=Ke.length,l=c>1?Ke[c-2]:null;l&&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}(l,u)&&Ke.pop(),Ke.push(u),q(Qe),Qe=W(tn,500,10)}}function tn(t){se(qn.bind(this,t))}var en,nn,an=[];function rn(t){an.push({time:s(t),event:39,data:{target:Hn(t)}}),se(qn.bind(this,39))}function on(){an=[]}function un(t){en={name:t.type},qn(26,s(t)),Yr()}function cn(){en=null}function sn(t){void 0===t&&(t=null),nn={visible:"visibilityState"in document?document.visibilityState:"default"},qn(28,s(t))}function ln(){nn=null}function dn(t){!function(t){var e=Ut(t);hr(e?e.contentWindow:t===document?window:t,"scroll",$e,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(Xe(t),function(t){hr(t,"submit",rn,!0)}(t))}var fn=Object.freeze({__proto__:null,observe:dn,start:function(){Pn=[],Xn(),Je(),hr(window,"resize",Ge),Ge(),hr(document,"visibilitychange",sn),sn(),Ke=[],$e(),on(),hr(window,"pagehide",un)},stop:function(){Pn=[],Xn(),Je(),Ze(),ln(),q(Qe),Ke=[],on(),cn()}}),hn=/[^0-9\.]/g;function pn(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":Wa(5,t[a]),Wa(8,t.creator),Wa(18,t.headline);break;case"product":Wa(5,t[a]),Wa(10,t.name),Wa(12,t.sku),t.brand&&Wa(6,t.brand.name);break;case"aggregaterating":t.ratingValue&&(H(11,vn(t.ratingValue,100)),H(18,vn(t.bestRating)),H(19,vn(t.worstRating))),H(12,vn(t.ratingCount)),H(17,vn(t.reviewCount));break;case"person":Wa(8,t.name);break;case"offer":Wa(7,t.availability),Wa(14,t.itemCondition),Wa(13,t.priceCurrency),Wa(12,t.sku),H(13,vn(t.price));break;case"brand":Wa(6,t.name)}null!==r&&"object"==typeof r&&pn(r)}}function vn(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(hn,""))*e)}return null}var gn=["title","alt","onload","onfocus","onerror","data-drupal-form-submit-last"],mn=/[\r\n]+/g;function bn(t,e){var n,a=null;if(2===e&&!1===Kt(t))return a;0!==e&&t.nodeType===Node.TEXT_NODE&&t.parentElement&&"STYLE"===t.parentElement.tagName&&(t=t.parentNode);var r=!1===Kt(t)?"add":"update",i=t.parentElement?t.parentElement:null,o=t.ownerDocument!==document;switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:i=o&&t.parentNode?Ut(t.parentNode):i;var u=t,c={tag:(o?"iframe:":"")+"*D",attributes:{name:u.name,publicId:u.publicId,systemId:u.systemId}};ee[r](t,i,c,e);break;case Node.DOCUMENT_NODE:t===document&&Pt(document),yn(t);break;case Node.DOCUMENT_FRAGMENT_NODE:var s=t;if(s.host)if(Pt(s),"function"===typeof s.constructor&&s.constructor.toString().indexOf("[native code]")>=0){yn(s);for(var l="",d=0,f=("adoptedStyleSheets"in s?s.adoptedStyleSheets:[]);d<f.length;d++){l+=kn(f[d])}var h={tag:"*S",attributes:{style:l}};ee[r](t,s.host,h,e)}else ee[r](t,s.host,{tag:"*P",attributes:{}},e);break;case Node.TEXT_NODE:if(i=i||t.parentNode,"update"===r||i&&Kt(i)&&"STYLE"!==i.tagName){var p={tag:"*T",value:t.nodeValue};ee[r](t,i,p,e)}break;case Node.ELEMENT_NODE:var v=t,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;gn.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=t.parentElement?t.parentElement:t.parentNode?t.parentNode:null,"http://www.w3.org/2000/svg"===v.namespaceURI&&(g="svg:"+g),g){case"HTML":i=o&&i?Ut(i):null;var b={tag:(o?"iframe:":"")+g,attributes:m};ee[r](t,i,b,e);break;case"SCRIPT":if("type"in m&&"application/ld+json"===m.type)try{pn(JSON.parse(v.text.replace(mn,"")))}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":Wa(20,w);break;case"og:type":Wa(19,w);break;case"generator":Wa(21,w)}}break;case"HEAD":var k={tag:g,attributes:m},E=o&&(null===(n=t.ownerDocument)||void 0===n?void 0:n.location)?t.ownerDocument.location:location;k.attributes["*B"]=E.protocol+"//"+E.hostname+E.pathname,ee[r](t,i,k,e);break;case"BASE":var O=Gt(t.parentElement);if(O){var S=document.createElement("a");S.href=m.href,O.data.attributes["*B"]=S.protocol+"//"+S.hostname+S.pathname}break;case"STYLE":var x={tag:g,attributes:m,value:wn(v)};ee[r](t,i,x,e);break;case"IFRAME":var _=t,M={tag:g,attributes:m};Xt(_)&&(!function(t){!1===Kt(t)&&hr(t,"load",Ln.bind(this,t,"childList"),!0)}(_),M.attributes["*O"]="true",_.contentDocument&&_.contentWindow&&"loading"!==_.contentDocument.readyState&&(a=_.contentDocument)),ee[r](t,i,M,e);break;default:var T={tag:g,attributes:m};v.shadowRoot&&(a=v.shadowRoot),ee[r](t,i,T,e)}}return a}function yn(t){Kt(t)||(!function(t){try{var e=u("MutationObserver"),n=e in window?new window[e](dr(Dn)):null;n&&(n.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),On.push(n))}catch(t){ha(2,0,t?t.name:null)}}(t),dn(t))}function wn(t){var e=t.textContent?t.textContent.trim():"",n=t.dataset?Object.keys(t.dataset).length:0;return(0===e.length||n>0)&&(e=kn(t.sheet)),e}function kn(t){var e="",n=null;try{n=t?t.cssRules:[]}catch(t){if(ha(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 En(t,e,n){return ut(this,void 0,void 0,(function(){var a,r,i,o,u;return ct(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=de(e))?[3,3]:[4,pe(e)];case 2:o=c.sent(),c.label=3;case 3:return 2===o?[3,4]:((u=bn(r,n))&&a.push(u),[3,1]);case 4:return[2]}}))}))}var On=[],Sn=[],xn=null,_n=null,Mn=null,Tn=[],Nn=null,In=null,Cn={};function Dn(t){var e=s();J(6,e),Sn.push({time:e,mutations:t}),se(jn,1).then((function(){W(we),dr(je)()}))}function jn(){return ut(this,void 0,void 0,(function(){var t,e,n,a,r,i,o,u,c,l;return ct(this,(function(d){switch(d.label){case 0:fe(t={id:Ja(),cost:3}),d.label=1;case 1:if(!(Sn.length>0))return[3,8];e=Sn.shift(),n=s(),a=0,r=e.mutations,d.label=2;case 2:return a<r.length?(i=r[a],0!==(o=de(t))?[3,4]:[4,pe(t)]):[3,6];case 3:o=d.sent(),d.label=4;case 4:if(2===o)return[3,6];switch(u=i.target,c=function(t,e,n){var a=t.target?Gt(t.target.parentNode):null;if(a&&"HTML"!==a.data.tag){var r=s()>In,i=Gt(t.target),o=i&&i.selector?i.selector.join():t.target.nodeName,u=[a.selector?a.selector.join():"",o,t.attributeName,An(t.addedNodes),An(t.removedNodes)].join();Cn[u]=u in Cn?Cn[u]:[0,n];var c=Cn[u];if(!1===r&&c[0]>=10&&Rn(c[2],2,e),c[0]=r?c[1]===n?c[0]:c[0]+1:1,c[1]=n,10===c[0])return c[2]=t.removedNodes,"suspend";if(c[0]>10)return""}return t.type}(i,t,n),c&&u&&u.ownerDocument&&Pt(u.ownerDocument),c&&u&&u.nodeType==Node.DOCUMENT_FRAGMENT_NODE&&u.host&&Pt(u),c){case"attributes":bn(u,3);break;case"characterData":bn(u,4);break;case"childList":Rn(i.addedNodes,1,t),Rn(i.removedNodes,2,t);break;case"suspend":(l=Gt(u))&&(l.metadata.suspend=!0)}d.label=5;case 5:return a++,[3,2];case 6:return[4,ke(6,t,e.time)];case 7:return d.sent(),[3,1];case 8:return he(t),[2]}}))}))}function An(t){for(var e=[],n=0;t&&n<t.length;n++)e.push(t[n].nodeName);return e.join()}function Rn(t,e,n){return ut(this,void 0,void 0,(function(){var a,r,i;return ct(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]:(En(t[r],n,e),[3,5]):[3,6];case 2:return 0!==(i=de(n))?[3,4]:[4,pe(n)];case 3:i=o.sent(),o.label=4;case 4:if(2===i)return[3,6];bn(t[r],e),o.label=5;case 5:return r++,[3,1];case 6:return[2]}}))}))}function zn(t){return Tn.indexOf(t)<0&&Tn.push(t),Nn&&q(Nn),Nn=W((function(){!function(){for(var t=0,e=Tn;t<e.length;t++){var n=e[t];if(n){var a=n.nodeType===Node.DOCUMENT_FRAGMENT_NODE;if(a&&Kt(n))continue;Ln(n,a?"childList":"characterData")}}Tn=[]}()}),33),t}function Ln(t,e){dr(Dn)([{addedNodes:[t],attributeName:null,attributeNamespace:null,nextSibling:null,oldValue:null,previousSibling:null,removedNodes:[],target:t,type:e}])}function Hn(t){var e=t.composed&&t.composedPath?t.composedPath():null,n=e&&e.length>0?e[0]:t.target;return In=s()+3e3,n.nodeType===Node.DOCUMENT_NODE?n.documentElement:n}function Wn(t,e,n){void 0===n&&(n=null);var a={id:0,hash:null,privacy:2,node:t};if(t){var r=Gt(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=Jt(t),a=t in Me?Me[t]:{id:t,visibility:0,interaction:16,name:_e.get(n)},r=16;switch(e){case 9:r=20;break;case 27:r=30}Re(n,a,r,a.visibility)}(r.region,e),i.fraud&&bt(i.fraud,r.id,n||r.data.value)}}return a}function qn(t,e){return void 0===e&&(e=null),ut(this,void 0,void 0,(function(){var n,a,r,i,o,u,c,l,d,f,h,p,v,g,y,w,k,E,O,S,x,M,N,I,C,D,j,A,R,z,L;return ct(this,(function(H){switch(n=e||s(),a=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(r=0,i=He;r<i.length;r++)z=i[r],(o=Wn(z.data.target,z.event)).id>0&&((a=[z.time,z.event]).push(o.id),a.push(z.data.x),a.push(z.data.y),ea(a),_(z.event,z.data.x,z.data.y));break;case 9:for(u=0,c=Ye;u<c.length;u++)z=c[u],l=Wn(z.data.target,z.event,z.data.text),a=[z.time,z.event],d=l.hash.join("."),a.push(l.id),a.push(z.data.x),a.push(z.data.y),a.push(z.data.eX),a.push(z.data.eY),a.push(z.data.button),a.push(z.data.reaction),a.push(z.data.context),a.push(m(z.data.text,"click",l.privacy)),a.push(b(z.data.link)),a.push(d),a.push(z.data.trust),ea(a),Un(z.time,z.event,d,z.data.x,z.data.y,z.data.reaction,z.data.context);Je();break;case 38:for(f=0,h=He;f<h.length;f++)z=h[f],a=[z.time,z.event],(j=Wn(z.data.target,z.event)).id>0&&(a.push(j.id),a.push(z.data.action),ea(a));break;case 11:p=qe,a.push(p.width),a.push(p.height),_(t,p.width,p.height),Ze(),ea(a);break;case 26:v=en,a.push(v.name),cn(),ea(a);break;case 27:for(g=0,y=He;g<y.length;g++)z=y[g],w=Wn(z.data.target,z.event,z.data.value),(a=[z.time,z.event]).push(w.id),a.push(m(z.data.value,"input",w.privacy)),ea(a);break;case 21:(k=We)&&(E=Wn(k.start,t),O=Wn(k.end,t),a.push(E.id),a.push(k.startOffset),a.push(O.id),a.push(k.endOffset),ea(a));break;case 10:for(S=0,x=Ke;S<x.length;S++)z=x[S],(M=Wn(z.data.target,z.event)).id>0&&((a=[z.time,z.event]).push(M.id),a.push(z.data.x),a.push(z.data.y),ea(a),_(z.event,z.data.x,z.data.y));Ke=[];break;case 42:for(N=0,I=He;N<I.length;N++)z=I[N],a=[z.time,z.event],(j=Wn(z.data.target,z.event)).id>0&&((a=[z.time,z.event]).push(j.id),a.push(z.data.type),a.push(m(z.data.value,"change",j.privacy)),a.push(m(z.data.checksum,"checksum",j.privacy)),ea(a));break;case 39:for(C=0,D=an;C<D.length;C++)z=D[C],a=[z.time,z.event],(j=Wn(z.data.target,z.event)).id>0&&(a.push(j.id),ea(a));on();break;case 22:for(A=0,R=Yn;A<R.length;A++)z=R[A],(a=[z.time,z.event]).push(z.data.type),a.push(z.data.hash),a.push(z.data.x),a.push(z.data.y),a.push(z.data.reaction),a.push(z.data.context),ea(a,!1);Xn();break;case 28:L=nn,a.push(L.visible),ea(a),T(n,L.visible),ln()}return[2]}))}))}var Pn=[],Yn=[];function Xn(){Yn=[]}function Un(t,e,n,a,r,i,o){void 0===i&&(i=1),void 0===o&&(o=0),Pn.push({time:t,event:22,data:{type:e,hash:n,x:a,y:r,reaction:i,context:o}}),_(e,a,r)}var Bn,Vn,Fn,Jn,Gn,Zn=0,Kn=0,Qn=null,$n=0;function ta(){Jn=!0,Zn=0,Kn=0,$n=0,Bn=[],Vn=[],Fn={},Gn=null}function ea(t,e){if(void 0===e&&(e=!0),Jn){var n=s(),a=t.length>1?t[1]:null,r=JSON.stringify(t);switch(a){case 5:Zn+=r.length;case 37:case 6:Kn+=r.length,Bn.push(r);break;default:Vn.push(r)}z(25);var i=function(){var t=!1===o.lean&&Zn>0?100:or.sequence*o.delay;return"string"==typeof o.upload?Math.max(Math.min(t,3e4),100):o.delay}();n-$n>2*i&&(q(Qn),Qn=null),e&&null===Qn&&(25!==a&&U(),Qn=W(aa,i),$n=n,Ca(Kn))}}function na(){q(Qn),aa(!0),Zn=0,Kn=0,$n=0,Bn=[],Vn=[],Fn={},Gn=null,Jn=!1}function aa(t){return void 0===t&&(t=!1),ut(this,void 0,void 0,(function(){var e,n,a,r,i,u,c,s;return ct(this,(function(l){switch(l.label){case 0:return Qn=null,(e=!1===o.lean&&Kn>0&&(Kn<1048576||or.sequence>0))&&H(1,1),je(),function(){var t=[];Yn=[];for(var e=or.start+or.duration,n=Math.max(e-2e3,0),a=0,r=Pn;a<r.length;a++){var i=r[a];i.time>=n&&(i.time<=e&&Yn.push(i),t.push(i))}Pn=t,qn(22)}(),vt(),n=!0===t,a=JSON.stringify(sr(n)),r="[".concat(Vn.join(),"]"),i=e?"[".concat(Bn.join(),"]"):"",u=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,lt(u)];case 2:s=l.sent(),l.label=3;case 3:return L(2,(c=s)?c.length:u.length),ra(u,c,or.sequence,n),Vn=[],e&&(Bn=[],Kn=0,Zn=0),[2]}}))}))}function ra(t,e,n,a){if(void 0===a&&(a=!1),"string"==typeof o.upload){var r=o.upload,i=!1;if(a&&"sendBeacon"in navigator)try{(i=navigator.sendBeacon.bind(navigator)(r,t))&&oa(n)}catch(t){}if(!1===i){n in Fn?Fn[n].attempts++:Fn[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",r),null!==n&&(u.onreadystatechange=function(){dr(ia)(u,n)}),u.withCredentials=!0,e?(u.setRequestHeader("Accept","application/x-clarity-gzip"),u.send(e)):u.send(t)}}else if(o.upload){(0,o.upload)(t),oa(n)}}function ia(t,e){var n=Fn[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Da(6):(0===t.status&&(o.upload=o.fallback?o.fallback:o.upload),ra(n.data,null,e)):(Gn={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&Na(2),200===t.status&&t.responseText&&function(t){for(var e=t&&t.length>0?t.split("\n"):[],n=0,a=e;n<a.length;n++){var r=a[n],i=r&&r.length>0?r.split(/ (.*)/):[""];switch(i[0]){case"END":Da(6);break;case"UPGRADE":$("Auto");break;case"ACTION":o.action&&i.length>1&&o.action(i[1]);break;case"EXTRACT":i.length>1&&wa(i[1])}}}(t.responseText),0===t.status&&(ra(n.data,null,e,!0),Da(3)),t.status>=200&&t.status<=208&&oa(e),delete Fn[e]))}function oa(t){1===t&&Ka()}var ua,ca={};function sa(t){var e=t.error||t;return e.message in ca||(ca[e.message]=0),ca[e.message]++>=5||e&&e.message&&(ua={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},la(31)),!0}function la(t){return ut(this,void 0,void 0,(function(){var e;return ct(this,(function(n){switch(e=[s(),t],t){case 31:e.push(ua.message),e.push(ua.line),e.push(ua.column),e.push(ua.stack),e.push(b(ua.source)),ea(e);break;case 33:da&&(e.push(da.code),e.push(da.name),e.push(da.message),e.push(da.stack),e.push(da.severity),ea(e,!1));break;case 41:gt&&(e.push(gt.id),e.push(gt.target),e.push(gt.checksum),ea(e,!1))}return[2]}))}))}var da,fa={};function ha(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 fa&&fa[t].indexOf(i)>=0||(da={code:t,name:n,message:a,stack:r,severity:e},t in fa?fa[t].push(i):fa[t]=[i],la(33))}var pa,va={},ga=[],ma={},ba={};function ya(){Oa()}function wa(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=parseInt(e[0]),a=e.length>1?JSON.parse(e[1]):{};for(var r in ma[n]={},ba[n]={},a){var i=parseInt(r),o=a[r];switch(o.startsWith("~")?0:2){case 0:var u=o.substring(1,o.length);ma[n][i]=_a(u);break;case 2:ba[n][i]=o}}}catch(t){ha(8,1,t?t.name:null)}}function ka(t){return JSON.parse(JSON.stringify(t))}function Ea(){try{for(var t in ma){var e=parseInt(t);if(!(e in ga)){var n=ma[e];for(var a in n){var r=parseInt(a),i=(l=Ma(ka(n[r])))?JSON.stringify(l).substring(0,1e4):l;i&&Sa(e,r,i)}var o=ba[e];for(var u in o){var c=parseInt(u),s=document.querySelectorAll(o[c]);if(s)Sa(e,c,Array.from(s).map((function(t){return t.innerText})).join("<SEP>").substring(0,1e4))}}}}catch(t){ha(5,1,t?t.name:null)}var l;Na(40)}function Oa(){va={},ga=[],ma={},ba={}}function Sa(t,e,n){t in va||(va[t]=[],ga.push(t)),va[t].push([e,n])}function xa(){Oa()}function _a(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 Ma(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&&Ta(r,a.condition))n=Ma(t,r);else if(Array.isArray(r)){for(var i=[],o=0,u=r;o<u.length;o++){var c=u[o];if(Ta(c,a.condition)){var s=Ma(t,c);s&&i.push(s)}}n=i}return n}return null}function Ta(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}function Na(t){var e=[s(),t];switch(t){case 4:var n=E;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),ea(e,!1)),x();break;case 25:e.push(j.gap),ea(e);break;case 35:e.push(pa.check),ea(e,!1);break;case 3:e.push(Q.key),ea(e);break;case 2:e.push(Gn.sequence),e.push(Gn.attempts),e.push(Gn.status),ea(e,!1);break;case 24:e.push(C.key),e.push(C.value),ea(e);break;case 34:var a=Object.keys(et);if(a.length>0){for(var r=0,i=a;r<i.length;r++){var o=i[r];e.push(o),e.push(et[o])}ot(),ea(e,!1)}break;case 0:var u=Object.keys(R);if(u.length>0){for(var c=0,l=u;c<l.length;c++){var d=l[c],f=parseInt(d,10);e.push(f),e.push(Math.round(R[d]))}R={},ea(e,!1)}break;case 1:var h=Object.keys(za);if(h.length>0){for(var p=0,v=h;p<v.length;p++){var g=v[p];f=parseInt(g,10);e.push(f),e.push(za[g])}Pa(),ea(e,!1)}break;case 36:var m=Object.keys(F);if(m.length>0){for(var b=0,y=m;b<y.length;b++){var w=y[b];f=parseInt(w,10);e.push(f),e.push([].concat.apply([],F[w]))}Z(),ea(e,!1)}break;case 40:for(var k=0,O=ga;k<O.length;k++){w=O[k];e.push(w),e.push([].concat.apply([],va[w]))}Oa(),ea(e,!1)}}function Ia(){pa={check:0}}function Ca(t){if(0===pa.check){var e=pa.check;e=or.sequence>=128?1:e,e=s()>72e5?2:e,(e=t>10485760?2:e)!==pa.check&&Da(e)}}function Da(t){pa.check=t,Za(),Yr()}function ja(){0!==pa.check&&Na(35)}function Aa(){pa=null}var Ra=null,za=null;function La(){Ra={},za={}}function Ha(){Ra={},za={}}function Wa(t,e){e&&(e="".concat(e),t in Ra||(Ra[t]=[]),Ra[t].indexOf(e)<0&&(Ra[t].push(e),t in za||(za[t]=[]),za[t].push(e),Ra[t].length>128&&Da(5)))}function qa(){Na(1)}function Pa(){za={}}var Ya=null,Xa=[],Ua=null;function Ba(){Ua=null;var t,e=navigator&&"userAgent"in navigator?navigator.userAgent:"",n=document&&document.title?document.title:"",a=function(){var t={session:tr(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=ar("_clsk");if(e){var n=e.split("|");n.length>=5&&t.ts-er(n[1])<18e5&&(t.session=n[0],t.count=er(n[2])+1,t.upgrade=er(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),r=nr(),i=o.projectId||d(location.host);Ya={projectId:i,userId:r.id,sessionId:a.session,pageNum:a.count},o.lean=o.track&&null!==a.upgrade?0===a.upgrade:o.lean,o.upload=o.track&&"string"==typeof o.upload&&a.upload&&a.upload.length>"https://".length?a.upload:o.upload,Wa(0,e),Wa(3,n),Wa(1,b(location.href)),Wa(2,document.referrer),Wa(15,function(){var t=tr();if(o.track&&Qa(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),Wa(16,document.documentElement.lang),Wa(17,document.dir),Wa(26,"".concat(window.devicePixelRatio)),H(0,a.ts),H(1,0),navigator&&(Wa(9,navigator.language),H(33,navigator.hardwareConcurrency),H(32,navigator.maxTouchPoints),H(34,Math.round(navigator.deviceMemory)),(t=navigator.userAgentData)&&t.getHighEntropyValues?t.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;Wa(22,t.platform),Wa(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){Wa(24,t.name+"~"+t.version)})),Wa(25,t.model),H(27,t.mobile?1:0)})):Wa(22,navigator.platform)),screen&&(H(14,Math.round(screen.width)),H(15,Math.round(screen.height)),H(16,Math.round(screen.colorDepth)));for(var u=0,c=o.cookies;u<c.length;u++){var s=c[u],l=ar(s);l&&nt(s,l)}$a(r)}function Va(){Ua=null,Ya=null}function Fa(t,e){void 0===e&&(e=!0),Ya&&!1===e&&t(Ya,!o.lean),Xa.push({callback:t,wait:e})}function Ja(){return Ya?[Ya.userId,Ya.sessionId,Ya.pageNum].join("."):""}function Ga(){_r()&&(o.track=!0,$a(nr(),1))}function Za(){rr("_clsk","",0)}function Ka(){var t=Math.round(Date.now()),e=o.upload&&"string"==typeof o.upload?o.upload.replace("https://",""):"",n=o.lean?0:1;!function(t){Xa.length>0&&Xa.forEach((function(e){!e.callback||e.wait&&!t||e.callback(Ya,!o.lean)}))}(n),rr("_clsk",[Ya.sessionId,t,Ya.pageNum,n,e].join("|"),1)}function Qa(t,e){try{return!!t[e]}catch(t){return!1}}function $a(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)&&rr("_clck",[Ya.userId,1,n.toString(36),e].join("|"),365)}function tr(){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 er(t,e){return void 0===e&&(e=10),parseInt(t,e)}function nr(){var t={id:tr(),expiry:null,consent:0},e=ar("_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 u="".concat(";").concat("expires=").concat(new Date(0).toUTCString()).concat(";path=/");document.cookie="".concat("_clck","=").concat(u),document.cookie="".concat("_clsk","=").concat(u)}n.length>2&&(t.expiry=er(n[2],36)),n.length>3&&1===er(n[3])&&(t.consent=1),o.track=o.track||1===t.consent,t.id=o.track?n[0]:t.id}return t}function ar(t){if(Qa(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 rr(t,e,n){if(o.track&&(navigator&&navigator.cookieEnabled||Qa(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===Ua){for(var u=location.hostname?location.hostname.split("."):[],c=u.length-1;c>=0;c--)if(Ua=".".concat(u[c]).concat(Ua||""),c<u.length-1&&(document.cookie="".concat(i).concat(";").concat("domain=").concat(Ua),ar(t)===e))return;Ua=""}}catch(t){Ua=""}document.cookie=Ua?"".concat(i).concat(";").concat("domain=").concat(Ua):i}}var ir,or=null;function ur(){var t=Ya;or={version:l,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0}}function cr(){or=null}function sr(t){return or.start=or.start+or.duration,or.duration=s()-or.start,or.sequence++,or.upload=t&&"sendBeacon"in navigator?1:0,or.end=t?1:0,[or.version,or.sequence,or.start,or.duration,or.projectId,or.userId,or.sessionId,or.pageNum,or.upload,or.end]}function lr(){ir=[]}function dr(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw function(t){if(ir&&-1===ir.indexOf(t.message)){var e=o.report;if(e&&e.length>0){var n={v:or.version,p:or.projectId,u:or.userId,s:or.sessionId,n:or.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)),ir.push(t.message)}}return t}(t)}var n=performance.now()-e;L(4,n),n>30&&(z(7),H(6,n))}}var fr=[];function hr(t,e,n,a){void 0===a&&(a=!1),n=dr(n);try{t[u("addEventListener")](e,n,a),fr.push({event:e,target:t,listener:n,capture:a})}catch(t){}}function pr(){for(var t=0,e=fr;t<e.length;t++){var n=e[t];try{n.target[u("removeEventListener")](n.event,n.listener,n.capture)}catch(t){}}fr=[]}var vr=null,gr=null,mr=null,br=0;function yr(){return!(br++>20)||(ha(4,0),!1)}function wr(){br=0,mr!==Er()&&(Yr(),window.setTimeout(kr,250))}function kr(){Pr(),H(29,1)}function Er(){return location.href?location.href.replace(location.hash,""):location.href}var Or=!1;function Sr(){Or=!0,c=performance.now(),ce(),pr(),lr(),mr=Er(),br=0,hr(window,"popstate",wr),null===vr&&(vr=history.pushState,history.pushState=function(){vr.apply(this,arguments),_r()&&yr()&&wr()}),null===gr&&(gr=history.replaceState,history.replaceState=function(){gr.apply(this,arguments),_r()&&yr()&&wr()})}function xr(){mr=null,br=0,lr(),pr(),ce(),c=0,Or=!1}function _r(){return Or}function Mr(t){if(null===t||Or)return!1;for(var e in t)e in o&&(o[e]=t[e]);return!0}function Tr(){Pr(),D("clarity","restart")}var Nr=Object.freeze({__proto__:null,start:function(){!function(){mt=[],H(26,navigator.webdriver?1:0);try{H(31,window.top==window.self?1:2)}catch(t){H(31,0)}}(),hr(window,"error",sa),ca={},fa={}},stop:function(){fa={}}});function Ir(){return ut(this,void 0,void 0,(function(){var t,e;return ct(this,(function(n){switch(n.label){case 0:return t=s(),fe(e={id:Ja(),cost:3}),[4,En(document,e,0)];case 1:return n.sent(),[4,ke(5,e,t)];case 2:return n.sent(),he(e),[2]}}))}))}var Cr=Object.freeze({__proto__:null,hashText:Ft,start:function(){ye(),we(),Le(),Ie=null,_e=new WeakMap,Me={},Te=[],Ne=!!window.IntersectionObserver,Ht(),function(){if(On=[],Tn=[],Nn=null,In=0,Cn={},null===xn&&(xn=CSSStyleSheet.prototype.insertRule,CSSStyleSheet.prototype.insertRule=function(){return _r()&&zn(this.ownerNode),xn.apply(this,arguments)}),null===_n&&(_n=CSSStyleSheet.prototype.deleteRule,CSSStyleSheet.prototype.deleteRule=function(){return _r()&&zn(this.ownerNode),_n.apply(this,arguments)}),null===Mn){Mn=Element.prototype.attachShadow;try{Element.prototype.attachShadow=function(){return _r()?zn(Mn.apply(this,arguments)):Mn.apply(this,arguments)}}catch(t){Mn=null}}}(),se(Ir,1).then((function(){dr(we)(),dr(je)()}))},stop:function(){Le(),_e=null,Me={},Te=[],Ie&&(Ie.disconnect(),Ie=null),Ne=!1,Wt(),function(){for(var t=0,e=On;t<e.length;t++){var n=e[t];n&&n.disconnect()}On=[],Cn={},Sn=[],Tn=[],In=0,Nn=null}(),ye()}});var Dr,jr=null;function Ar(){jr=null}function Rr(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){ut(this,void 0,void 0,(function(){var e,n;return ct(this,(function(a){return e=s(),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),Ar(),ea(n,!1)),[2]}))}))}(29)}var zr=["navigation","resource","longtask","first-input","layout-shift","largest-contentful-paint"];function Lr(){try{Dr&&Dr.disconnect(),Dr=new PerformanceObserver(dr(Hr));for(var t=0,e=zr;t<e.length;t++){var n=e[t];PerformanceObserver.supportedEntryTypes.indexOf(n)>=0&&("layout-shift"===n&&L(9,0),Dr.observe({type:n,buffered:!0}))}}catch(t){ha(3,1)}}function Hr(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":Rr(a);break;case"resource":var r=a.name;Wa(4,Wr(r)),r!==o.upload&&r!==o.fallback||H(28,a.duration);break;case"longtask":z(7);break;case"first-input":e&&H(10,a.processingStart-a.startTime);break;case"layout-shift":e&&!a.hadRecentInput&&L(9,1e3*a.value);break;case"largest-contentful-paint":e&&H(8,a.startTime)}}}(t.getEntries())}function Wr(t){var e=document.createElement("a");return e.href=t,e.hostname}var qr=[Nr,Cr,fn,Object.freeze({__proto__:null,start:function(){Ar(),function(){navigator&&"connection"in navigator&&Wa(27,navigator.connection.effectiveType),window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?"complete"!==document.readyState?hr(window,"load",W.bind(this,Lr,0)):Lr():ha(3,0)}()},stop:function(){Dr&&Dr.disconnect(),Dr=null,Ar()}})];function Pr(t){void 0===t&&(t=null),function(){try{return!1===Or&&"undefined"!=typeof Promise&&window.MutationObserver&&document.createTreeWalker&&"now"in Date&&"now"in performance&&"undefined"!=typeof WeakMap}catch(t){return!1}}()&&(Mr(t),Sr(),ht(),qr.forEach((function(t){return dr(t.start)()})),null===t&&Vr())}function Yr(){_r()&&(qr.slice().reverse().forEach((function(t){return dr(t.stop)()})),pt(),xr(),void 0!==Ur&&(Ur[Br]=function(){(Ur[Br].q=Ur[Br].q||[]).push(arguments)}))}var Xr=Object.freeze({__proto__:null,consent:Ga,event:D,hashText:Ft,identify:at,metadata:Fa,pause:function(){_r()&&(D("clarity","pause"),null===oe&&(oe=new Promise((function(t){ue=t}))))},resume:function(){_r()&&(oe&&(ue(),oe=null,null===ie&&le()),D("clarity","resume"))},set:nt,start:Pr,stop:Yr,upgrade:$,version:l}),Ur=window,Br="clarity";function Vr(){if(void 0!==Ur){if(Ur[Br]&&Ur[Br].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=Ur[Br]&&Ur[Br].q||[];for(Ur[Br]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Xr[t].apply(Xr,e)},Ur[Br].v=l;t.length>0;)Ur[Br].apply(Ur,t.shift())}}Vr()}();
|
|
1
|
+
!function(){"use strict";var t=Object.freeze({__proto__:null,get queue(){return Se},get start(){return Ne},get stop(){return Ie},get track(){return xe}}),e=Object.freeze({__proto__:null,get clone(){return Ge},get compute(){return Fe},get data(){return Le},get keys(){return Ue},get reset(){return Ke},get start(){return Be},get stop(){return $e},get trigger(){return Ze},get update(){return Qe}}),n=Object.freeze({__proto__:null,get check(){return on},get compute(){return cn},get data(){return Pe},get start(){return rn},get stop(){return sn},get trigger(){return un}}),a=Object.freeze({__proto__:null,get compute(){return gn},get data(){return ln},get log(){return pn},get reset(){return vn},get start(){return fn},get stop(){return dn},get updates(){return hn}}),r=Object.freeze({__proto__:null,get callbacks(){return yn},get clear(){return En},get consent(){return On},get data(){return mn},get id(){return xn},get metadata(){return _n},get save(){return Mn},get start(){return bn},get stop(){return kn}}),o=Object.freeze({__proto__:null,get data(){return An},get envelope(){return Yn},get start(){return Wn},get stop(){return Xn}}),i={projectId:null,delay:1e3,lean:!1,track:!0,content:!0,drop:[],mask:[],unmask:[],regions:[],cookies:[],fraud:!0,checksum:[],report:null,upload:null,fallback:null,upgrade:null,action:null};function u(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var c=0;function s(t){void 0===t&&(t=null);var e=t&&t.timeStamp>0?t.timeStamp:performance.now();return Math.max(Math.round(e-c),0)}var l="0.7.6";var h=/\S/gi,f=!0,d=null,p=null,g=null;function v(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":case"click":return function(t){var e=-1,n=0,a=!1,r=!1,o=!1,i=null;k();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(a=a||c>=48&&c<=57,r=r||64===c,o=9===c||10===c||13===c||32===c,0===u||u===t.length-1||o){if(a||r){null===i&&(i=t.split(""));var s=t.substring(e+1,o?u:u+1);s=f&&null!==g?s.match(g)?s:s.replace(p,"▪").replace(d,"▫"):w(s),i.splice(e+1-n,s.length,s),n+=s.length-1}o&&(a=!1,r=!1,e=u)}}return i?i.join(""):t}(t);case"input":case"change":return b(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return a?y(t):w(t);case"src":case"srcset":case"title":case"alt":return 3===n?"":t;case"value":case"click":case"input":case"change":return b(t);case"placeholder":return w(t)}break;case 4:switch(e){case"*T":case"data-":return a?y(t):w(t);case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":return""}break;case 5:switch(e){case"*T":case"data-":return function(t){return k(),t.replace(p,"▪").replace(d,"▫")}(t);case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":case"src":case"srcset":case"alt":case"title":return""}}return t}function m(t){var e=i.drop;if(e&&e.length>0&&t&&t.indexOf("?")>0){var n=t.split("?"),a=n[0],r=n[1];return a+"?"+r.split("&").map((function(t){return e.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}return t}function y(t){var e=t.trim();if(e.length>0){var n=e[0],a=t.indexOf(n),r=t.substr(0,a),o=t.substr(a+e.length);return"".concat(r).concat(e.length.toString(36)).concat(o)}return t}function w(t){return t.replace(h,"•")}function b(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 k(){if(f&&null===d)try{d=new RegExp("\\p{N}","gu"),p=new RegExp("\\p{L}","gu"),g=new RegExp("\\p{Sc}","gu")}catch(t){f=!1}}var _=null,x=null,O=!1;function E(){O&&(_={time:s(),event:4,data:{visible:x.visible,docWidth:x.docWidth,docHeight:x.docHeight,screenWidth:x.screenWidth,screenHeight:x.screenHeight,scrollX:x.scrollX,scrollY:x.scrollY,pointerX:x.pointerX,pointerY:x.pointerY,activityTime:x.activityTime}}),x=x||{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:x.docWidth=e,x.docHeight=n;break;case 11:x.screenWidth=e,x.screenHeight=n;break;case 10:x.scrollX=e,x.scrollY=n;break;default:x.pointerX=e,x.pointerY=n}O=!0}function T(t){x.activityTime=t}function N(t,e){x.visible="visible"===e?1:0,x.visible||T(t),O=!0}function S(){O&&an(4)}var I=Object.freeze({__proto__:null,activity:T,compute:S,reset:E,start:function(){O=!1,E()},get state(){return _},stop:function(){E()},track:M,visibility:N}),j=null;function C(t,e){na()&&t&&e&&"string"==typeof t&&"string"==typeof e&&t.length<255&&e.length<255&&(j={key:t,value:e},an(24))}var D,H=null,A=null;function W(t){t in H||(H[t]=0),t in A||(A[t]=0),H[t]++,A[t]++}function X(t,e){null!==e&&(t in H||(H[t]=0),t in A||(A[t]=0),H[t]+=e,A[t]+=e)}function Y(t,e){null!==e&&!1===isNaN(e)&&(t in H||(H[t]=0),(e>H[t]||0===H[t])&&(A[t]=e,H[t]=e))}function z(t,e,n){return window.setTimeout(Rn(t),e,n)}function q(t){return window.clearTimeout(t)}var R=0,P=0,L=null;function U(){L&&q(L),L=z(V,P),R=s()}function V(){var t=s();D={gap:t-R},an(25),D.gap<3e5?L=z(V,P):$n&&(C("clarity","suspend"),ua(),["mousemove","touchstart"].forEach((function(t){return Ln(document,t,ra)})),["resize","scroll","pageshow"].forEach((function(t){return Ln(window,t,ra)})))}var J=Object.freeze({__proto__:null,get data(){return D},reset:U,start:function(){P=6e4,R=0},stop:function(){q(L),R=0,P=0}}),B=null;function Z(){an(36)}function G(){B={}}var F=Object.freeze({__proto__:null,compute:Z,get data(){return B},reset:G,start:function(){B={}},stop:function(){B={}},track:function(t,e){if(t in B){var n=B[t],a=n[n.length-1];e-a[0]>100?B[t].push([e,0]):a[1]=e-a[0]}else B[t]=[[e,0]]}}),K=null;function Q(t){na()&&i.lean&&(i.lean=!1,K={key:t},Mn(),i.upgrade&&i.upgrade(t),an(3))}var $=Object.freeze({__proto__:null,get data(){return K},start:function(){!i.lean&&i.upgrade&&i.upgrade("Config"),K=null},stop:function(){K=null},upgrade:Q}),tt=null;function et(t,e){at(t,"string"==typeof e?[e]:e)}function nt(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null),at("userId",[t]),at("sessionId",[e]),at("pageId",[n])}function at(t,e){if(na()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in tt?tt[t]:[]),a=0;a<e.length;a++)"string"==typeof e[a]&&e[a].length<255&&n.push(e[a]);tt[t]=n}}function rt(){an(34)}function ot(){tt={}}function it(t,e,n,a){return new(n||(n=Promise))((function(r,o){function i(t){try{c(a.next(t))}catch(t){o(t)}}function u(t){try{c(a.throw(t))}catch(t){o(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(i,u)}c((a=a.apply(t,e||[])).next())}))}function ut(t,e){var n,a,r,o,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,a=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(r=i.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){i.label=u[1];break}if(6===u[0]&&i.label<r[1]){i.label=r[1],r=u;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(u);break}r[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}catch(t){u=[6,t],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var ct="CompressionStream"in window;function st(t){return it(this,void 0,void 0,(function(){var e,n;return ut(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),ct?(e=new ReadableStream({start:function(e){return it(this,void 0,void 0,(function(){return ut(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,lt(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 lt(t){return it(this,void 0,void 0,(function(){var e,n,a,r,o;return ut(this,(function(i){switch(i.label){case 0:e=t.getReader(),n=[],a=!1,r=[],i.label=1;case 1:return a?[3,3]:[4,e.read()];case 2:return o=i.sent(),a=o.done,r=o.value,a?[2,n]:(n.push.apply(n,r),[3,1]);case 3:return[2,n]}}))}))}var ht,ft=[I,a,Object.freeze({__proto__:null,compute:rt,get data(){return tt},identify:nt,reset:ot,set:et,start:function(){ot()},stop:function(){ot()}}),n,F,r,o,t,J,$,e];function dt(){H={},A={},W(5),ft.forEach((function(t){return Rn(t.start)()}))}function pt(){ft.slice().reverse().forEach((function(t){return Rn(t.stop)()})),H={},A={}}function gt(){rt(),S(),gn(),an(0),Z(),cn(),Fe()}function vt(t){return it(this,void 0,void 0,(function(){var e,n,a,r,o,i,u,c,l,h,f,d,p;return ut(this,(function(g){switch(e=s(),n=[e,t],t){case 8:a=ht,n.push(a.width),n.push(a.height),M(t,a.width,a.height),Se(n);break;case 43:if((r=ne).length>0){for(o=0,i=r;o<i.length;o++)for(u=i[o],c=u.metadata.privacy,l=u.data,h=0,f=["tag","attributes","value"];h<f.length;h++)if(l[d=f[h]])switch(d){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(l[d]);break;case"attributes":for(p in l[d])void 0!==l[d][p]&&n.push(mt(p,l[d][p],c));break;case"value":n.push(v(l[d],l.tag,c))}Se(function(t){for(var e=[],n={},a=0,r=null,o=0;o<t.length;o++)if("string"==typeof t[o]){var i=t[o],u=n[i]||-1;u>=0?r?r.push(u):(r=[u],e.push(r),a++):(r=null,e.push(i),n[i]=a++)}else r=null,e.push(t[o]),a++;return e}(n),!0)}}return[2]}))}))}function mt(t,e,n){return"".concat(t,"=").concat(v(e,0===t.indexOf("data-")?"data-":t,n))}function yt(){ht=null}function wt(){var t,e,n,a,r,o,i,u,c,s,l,h,f,d,p,g;yt(),t=document.body,e=document.documentElement,n=t?t.clientWidth:null,a=t?t.scrollWidth:null,r=t?t.offsetWidth:null,o=e?e.clientWidth:null,i=e?e.scrollWidth:null,u=e?e.offsetWidth:null,c=Math.max(n,a,r,o,i,u),s=t?t.clientHeight:null,l=t?t.scrollHeight:null,h=t?t.offsetHeight:null,f=e?e.clientHeight:null,d=e?e.scrollHeight:null,p=e?e.offsetHeight:null,g=Math.max(s,l,h,f,d,p),null!==ht&&c===ht.width&&g===ht.height||null===c||null===g||(ht={width:c,height:g},vt(8))}var bt=[],kt=null;var _t=Object.freeze({__proto__:null,compute:function(){},data:kt,log:function(){},observe:function(){},reset:function(){},start:function(){},state:bt,stop:function(){}}),xt=[],Ot=null,Et=null,Mt=null;function Tt(){xt=[],Ot=null,Et=null}function Nt(t,e){return void 0===e&&(e=0),it(this,void 0,void 0,(function(){var n,a,r;return ut(this,(function(o){for(n=0,a=xt;n<a.length;n++)if(a[n].task===t)return[2];return r=new Promise((function(n){xt[1===e?"unshift":"push"]({task:t,resolve:n,id:xn()})})),null===Ot&&null===Et&&St(),[2,r]}))}))}function St(){var t=xt.shift();t&&(Ot=t,t.task().then((function(){t.id===xn()&&(t.resolve(),Ot=null,St())})).catch((function(e){t.id===xn()&&(e&&Re(0,1,e.name,e.message,e.stack),Ot=null,St())})))}var It,jt=["input","textarea","radio","button","canvas"],Ct=[];function Dt(t){Ln(t,"click",Ht.bind(this,9,t),!0)}function Ht(t,e,n){var a=document.documentElement,r="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,i=ue(n),u=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}(i),c=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}(i);0===n.detail&&c&&(r=Math.round(c.x+c.w/2),o=Math.round(c.y+c.h/2));var l=c?Math.max(Math.floor((r-c.x)/c.w*32767),0):0,h=c?Math.max(Math.floor((o-c.y)/c.h*32767),0):0;null!==r&&null!==o&&(Ct.push({time:s(n),event:t,data:{target:i,x:r,y:o,eX:l,eY:h,button:n.button,reaction:Wt(i),context:Xt(u),text:At(i),link:u?u.href:null,hash:null,trust:n.isTrusted?1:0}}),Nt(pe.bind(this,t)))}function At(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 Wt(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t.tagName.toLowerCase();if(jt.indexOf(e)>=0)return 0}return 1}function Xt(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 Yt(){Ct=[]}function zt(){var t=document.documentElement;It={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},pe(11)}function qt(){It=null}var Rt=[],Pt=null;function Lt(t){void 0===t&&(t=null);var e=window,n=document.documentElement,a=t?ue(t):n;if(a&&a.nodeType===Node.DOCUMENT_NODE){a=n=a.documentElement}var r=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),i={time:s(t),event:10,data:{target:a,x:r,y:o}};if((null!==t||0!==r||0!==o)&&null!==r&&null!==o){var u=Rt.length,c=u>1?Rt[u-2]:null;c&&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}(c,i)&&Rt.pop(),Rt.push(i),q(Pt),Pt=z(Ut,500,10)}}function Ut(t){Nt(pe.bind(this,t))}var Vt,Jt,Bt=[];function Zt(t){Bt.push({time:s(t),event:39,data:{target:ue(t)}}),Nt(pe.bind(this,39))}function Gt(){Bt=[]}function Ft(t){Vt={name:t.type},pe(26,s(t)),ua()}function Kt(){Vt=null}function Qt(t){void 0===t&&(t=null),Jt={visible:"visibilityState"in document?document.visibilityState:"default"},pe(28,s(t))}function $t(){Jt=null}function te(t){!function(t){Ln(t===document?window:t,"scroll",Lt,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(Dt(t),function(t){Ln(t,"submit",Zt,!0)}(t))}var ee=Object.freeze({__proto__:null,observe:te,start:function(){ge=[],me(),Yt(),Ln(window,"resize",zt),zt(),Ln(document,"visibilitychange",Qt),Qt(),Rt=[],Lt(),Gt(),Ln(window,"pagehide",Ft)},stop:function(){ge=[],me(),Yt(),qt(),$t(),q(Pt),Rt=[],Gt(),Kt()}}),ne=[],ae=1,re=null;function oe(){return!1}function ie(){}function ue(t){var e=t.composed&&t.composedPath?t.composedPath():null,n=e&&e.length>0?e[0]:t.target;return n.nodeType===Node.DOCUMENT_NODE?n.documentElement:n}function ce(t){var e={id:0,hash:null,privacy:5,node:t};return t&&(e.id=re.has(t)?re.get(t):he(t)),e}function se(){re=new WeakMap}function le(t){var e={},n=t.attributes;if(n&&n.length>0)for(var a=0;a<n.length;a++)e[n[a].name]=n[a].value;return e}function he(t){return null===t?null:re.has(t)?re.get(t):(re.set(t,ae),ae++)}function fe(t,e,n){if(t&&n&&n.tag){var a=he(t),r=e?re.get(e):null,o=t.previousSibling?re.get(t.previousSibling):null;ne.push({id:a,parent:r,previous:o,children:[],data:n,selector:null,hash:null,region:null,metadata:{active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null}})}}var de=Object.freeze({__proto__:null,compute:function(){},hashText:ie,iframe:oe,metadata:ce,offset:function(){return{x:0,y:0}},snapshot:function(){ne=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,a=null,r=null,o=e.shift(),i=o.firstChild,u=o.parentElement?o.parentElement:o.parentNode?o.parentNode:null;i;)e.push(i),i=i.nextSibling;switch(o.nodeType){case Node.DOCUMENT_TYPE_NODE:var c=o;a="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:r=o.nodeValue,a=re.get(u)?"*T":a;break;case Node.ELEMENT_NODE:var s=o;n=le(s),a=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:a}fe(o,u,{tag:a,attributes:n,value:r})}}(document),vt(43)},start:function(){se(),wt(),he(document.documentElement),te(document)},stop:function(){se(),yt()},target:ue,get values(){return ne}});function pe(t,e){return void 0===e&&(e=null),it(this,void 0,void 0,(function(){var n,a,r,o,i,u,c,l,h,f,d,p,g,y,w,b,k,_,x,O,E,T,S,I,j,C,D,H,A,W,X;return ut(this,(function(Y){switch(n=e||s(),a=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(r=0,o=bt;r<o.length;r++)W=o[r],(i=ce(W.data.target,W.event)).id>0&&((a=[W.time,W.event]).push(i.id),a.push(W.data.x),a.push(W.data.y),Se(a),M(W.event,W.data.x,W.data.y));break;case 9:for(u=0,c=Ct;u<c.length;u++)W=c[u],l=ce(W.data.target,W.event,W.data.text),a=[W.time,W.event],h=l.hash?l.hash.join("."):"",a.push(l.id),a.push(W.data.x),a.push(W.data.y),a.push(W.data.eX),a.push(W.data.eY),a.push(W.data.button),a.push(W.data.reaction),a.push(W.data.context),a.push(v(W.data.text,"click",l.privacy)),a.push(m(W.data.link)),a.push(h),a.push(W.data.trust),Se(a),ye(W.time,W.event,h,W.data.x,W.data.y,W.data.reaction,W.data.context);Yt();break;case 38:for(f=0,d=bt;f<d.length;f++)W=d[f],a=[W.time,W.event],(D=ce(W.data.target,W.event)).id>0&&(a.push(D.id),a.push(W.data.action),Se(a));break;case 11:p=It,a.push(p.width),a.push(p.height),M(t,p.width,p.height),qt(),Se(a);break;case 26:g=Vt,a.push(g.name),Kt(),Se(a);break;case 27:for(y=0,w=bt;y<w.length;y++)W=w[y],b=ce(W.data.target,W.event,W.data.value),(a=[W.time,W.event]).push(b.id),a.push(v(W.data.value,"input",b.privacy)),Se(a);break;case 21:(k=kt)&&(_=ce(k.start),x=ce(k.end),a.push(_.id),a.push(k.startOffset),a.push(x.id),a.push(k.endOffset),Se(a));break;case 10:for(O=0,E=Rt;O<E.length;O++)W=E[O],(T=ce(W.data.target,W.event)).id>0&&((a=[W.time,W.event]).push(T.id),a.push(W.data.x),a.push(W.data.y),Se(a),M(W.event,W.data.x,W.data.y));Rt=[];break;case 42:for(S=0,I=bt;S<I.length;S++)W=I[S],a=[W.time,W.event],(D=ce(W.data.target,W.event)).id>0&&((a=[W.time,W.event]).push(D.id),a.push(W.data.type),a.push(v(W.data.value,"change",D.privacy)),a.push(v(W.data.checksum,"checksum",D.privacy)),Se(a));break;case 39:for(j=0,C=Bt;j<C.length;j++)W=C[j],a=[W.time,W.event],(D=ce(W.data.target,W.event)).id>0&&(a.push(D.id),Se(a));Gt();break;case 22:for(H=0,A=ve;H<A.length;H++)W=A[H],(a=[W.time,W.event]).push(W.data.type),a.push(W.data.hash),a.push(W.data.x),a.push(W.data.y),a.push(W.data.reaction),a.push(W.data.context),Se(a,!1);me();break;case 28:X=Jt,a.push(X.visible),Se(a),N(n,X.visible),$t()}return[2]}))}))}var ge=[],ve=[];function me(){ve=[]}function ye(t,e,n,a,r,o,i){void 0===o&&(o=1),void 0===i&&(i=0),ge.push({time:t,event:22,data:{type:e,hash:n,x:a,y:r,reaction:o,context:i}}),M(e,a,r)}var we,be,ke,_e,xe,Oe=0,Ee=0,Me=null,Te=0;function Ne(){_e=!0,Oe=0,Ee=0,Te=0,we=[],be=[],ke={},xe=null}function Se(t,e){if(void 0===e&&(e=!0),_e){var n=s(),a=t.length>1?t[1]:null,r=JSON.stringify(t);switch(a){case 5:Oe+=r.length;case 37:case 6:case 43:Ee+=r.length,we.push(r);break;default:be.push(r)}W(25);var o=function(){var t=!1===i.lean&&Oe>0?100:An.sequence*i.delay;return"string"==typeof i.upload?Math.max(Math.min(t,3e4),100):i.delay}();n-Te>2*o&&(q(Me),Me=null),e&&null===Me&&(25!==a&&U(),Me=z(je,o),Te=n,on(Ee))}}function Ie(){q(Me),je(!0),Oe=0,Ee=0,Te=0,we=[],be=[],ke={},xe=null,_e=!1}function je(t){return void 0===t&&(t=!1),it(this,void 0,void 0,(function(){var e,n,a,r,o,u,c,s;return ut(this,(function(l){switch(l.label){case 0:return Me=null,(e=!1===i.lean&&Ee>0&&(Ee<1048576||An.sequence>0))&&Y(1,1),function(){var t=[];ve=[];for(var e=An.start+An.duration,n=Math.max(e-2e3,0),a=0,r=ge;a<r.length;a++){var o=r[a];o.time>=n&&(o.time<=e&&ve.push(o),t.push(o))}ge=t,pe(22)}(),gt(),n=!0===t,a=JSON.stringify(Yn(n)),r="[".concat(be.join(),"]"),o=e?"[".concat(we.join(),"]"):"",u=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:o}),n?(s=null,[3,3]):[3,1];case 1:return[4,st(u)];case 2:s=l.sent(),l.label=3;case 3:return X(2,(c=s)?c.length:u.length),Ce(u,c,An.sequence,n),be=[],e&&(we=[],Ee=0,Oe=0),[2]}}))}))}function Ce(t,e,n,a){if(void 0===a&&(a=!1),"string"==typeof i.upload){var r=i.upload,o=!1;if(a&&"sendBeacon"in navigator)try{(o=navigator.sendBeacon.bind(navigator)(r,t))&&He(n)}catch(t){}if(!1===o){n in ke?ke[n].attempts++:ke[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",r,!0),u.timeout=15e3,u.ontimeout=function(){qn(new Error("".concat("Timeout"," : ").concat(r)))},null!==n&&(u.onreadystatechange=function(){Rn(De)(u,n)}),u.withCredentials=!0,e?(u.setRequestHeader("Accept","application/x-clarity-gzip"),u.send(e)):u.send(t)}}else if(i.upload){(0,i.upload)(t),He(n)}}function De(t,e){var n=ke[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?un(6):(0===t.status&&(i.upload=i.fallback?i.fallback:i.upload),Ce(n.data,null,e)):(xe={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&an(2),200===t.status&&t.responseText&&function(t){for(var e=t&&t.length>0?t.split("\n"):[],n=0,a=e;n<a.length;n++){var r=a[n],o=r&&r.length>0?r.split(/ (.*)/):[""];switch(o[0]){case"END":un(6);break;case"UPGRADE":Q("Auto");break;case"ACTION":i.action&&o.length>1&&i.action(o[1]);break;case"EXTRACT":o.length>1&&Ze(o[1])}}}(t.responseText),0===t.status&&(Ce(n.data,null,e,!0),un(3)),t.status>=200&&t.status<=208&&He(e),delete ke[e]))}function He(t){1===t&&Mn()}var Ae,We={};function Xe(t){var e=t.error||t;return e.message in We||(We[e.message]=0),We[e.message]++>=5||e&&e.message&&(Ae={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},Ye(31)),!0}function Ye(t){return it(this,void 0,void 0,(function(){var e;return ut(this,(function(n){switch(e=[s(),t],t){case 31:e.push(Ae.message),e.push(Ae.line),e.push(Ae.column),e.push(Ae.stack),e.push(m(Ae.source)),Se(e);break;case 33:ze&&(e.push(ze.code),e.push(ze.name),e.push(ze.message),e.push(ze.stack),e.push(ze.severity),Se(e,!1))}return[2]}))}))}var ze,qe={};function Re(t,e,n,a,r){void 0===n&&(n=null),void 0===a&&(a=null),void 0===r&&(r=null);var o=n?"".concat(n,"|").concat(a):"";t in qe&&qe[t].indexOf(o)>=0||(ze={code:t,name:n,message:a,stack:r,severity:e},t in qe?qe[t].push(o):qe[t]=[o],Ye(33))}var Pe,Le={},Ue=[],Ve={},Je={};function Be(){Ke()}function Ze(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=parseInt(e[0]),a=e.length>1?JSON.parse(e[1]):{};for(var r in Ve[n]={},Je[n]={},a){var o=parseInt(r),i=a[r];switch(i.startsWith("~")?0:2){case 0:var u=i.substring(1,i.length);Ve[n][o]=tn(u);break;case 2:Je[n][o]=i}}}catch(t){Re(8,1,t?t.name:null)}}function Ge(t){return JSON.parse(JSON.stringify(t))}function Fe(){try{for(var t in Ve){var e=parseInt(t);if(!(e in Ue)){var n=Ve[e];for(var a in n){var r=parseInt(a),o=(l=en(Ge(n[r])))?JSON.stringify(l).substring(0,1e4):l;o&&Qe(e,r,o)}var i=Je[e];for(var u in i){var c=parseInt(u),s=document.querySelectorAll(i[c]);if(s)Qe(e,c,Array.from(s).map((function(t){return t.innerText})).join("<SEP>").substring(0,1e4))}}}}catch(t){Re(5,1,t?t.name:null)}var l;an(40)}function Ke(){Le={},Ue=[],Ve={},Je={}}function Qe(t,e,n){t in Le||(Le[t]=[],Ue.push(t)),Le[t].push([e,n])}function $e(){Ke()}function tn(t){for(var e=[],n=t.split(".");n.length>0;){var a=n.shift(),r=a.indexOf("["),o=a.indexOf("{"),i=a.indexOf("}");e.push({name:r>0?a.substring(0,r):o>0?a.substring(0,o):a,type:r>0?1:o>0?2:3,condition:o>0?a.substring(o+1,i):null})}return e}function en(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&&nn(r,a.condition))n=en(t,r);else if(Array.isArray(r)){for(var o=[],i=0,u=r;i<u.length;i++){var c=u[i];if(nn(c,a.condition)){var s=en(t,c);s&&o.push(s)}}n=o}return n}return null}function nn(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}function an(t){var e=[s(),t];switch(t){case 4:var n=_;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),Se(e,!1)),E();break;case 25:e.push(D.gap),Se(e);break;case 35:e.push(Pe.check),Se(e,!1);break;case 3:e.push(K.key),Se(e);break;case 2:e.push(xe.sequence),e.push(xe.attempts),e.push(xe.status),Se(e,!1);break;case 24:e.push(j.key),e.push(j.value),Se(e);break;case 34:var a=Object.keys(tt);if(a.length>0){for(var r=0,o=a;r<o.length;r++){var i=o[r];e.push(i),e.push(tt[i])}ot(),Se(e,!1)}break;case 0:var u=Object.keys(A);if(u.length>0){for(var c=0,l=u;c<l.length;c++){var h=l[c],f=parseInt(h,10);e.push(f),e.push(Math.round(A[h]))}A={},Se(e,!1)}break;case 1:var d=Object.keys(hn);if(d.length>0){for(var p=0,g=d;p<g.length;p++){var v=g[p];f=parseInt(v,10);e.push(f),e.push(hn[v])}vn(),Se(e,!1)}break;case 36:var m=Object.keys(B);if(m.length>0){for(var y=0,w=m;y<w.length;y++){var b=w[y];f=parseInt(b,10);e.push(f),e.push([].concat.apply([],B[b]))}G(),Se(e,!1)}break;case 40:for(var k=0,x=Ue;k<x.length;k++){b=x[k];e.push(b),e.push([].concat.apply([],Le[b]))}Ke(),Se(e,!1)}}function rn(){Pe={check:0}}function on(t){if(0===Pe.check){var e=Pe.check;e=An.sequence>=128?1:e,e=s()>72e5?2:e,(e=t>10485760?2:e)!==Pe.check&&un(e)}}function un(t){Pe.check=t,En(),ua()}function cn(){0!==Pe.check&&an(35)}function sn(){Pe=null}var ln=null,hn=null;function fn(){ln={},hn={}}function dn(){ln={},hn={}}function pn(t,e){e&&(e="".concat(e),t in ln||(ln[t]=[]),ln[t].indexOf(e)<0&&(ln[t].push(e),t in hn||(hn[t]=[]),hn[t].push(e),ln[t].length>128&&un(5)))}function gn(){an(1)}function vn(){hn={}}var mn=null,yn=[],wn=null;function bn(){wn=null;var t,e=navigator&&"userAgent"in navigator?navigator.userAgent:"",n=document&&document.title?document.title:"",a=function(){var t={session:Sn(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=Cn("_clsk");if(e){var n=e.split("|");n.length>=5&&t.ts-In(n[1])<18e5&&(t.session=n[0],t.count=In(n[2])+1,t.upgrade=In(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),r=jn(),o=i.projectId||function(t,e){void 0===e&&(e=null);for(var n,a=5381,r=a,o=0;o<t.length;o+=2)a=(a<<5)+a^t.charCodeAt(o),o+1<t.length&&(r=(r<<5)+r^t.charCodeAt(o+1));return n=Math.abs(a+11579*r),(e?n%Math.pow(2,e):n).toString(36)}(location.host);mn={projectId:o,userId:r.id,sessionId:a.session,pageNum:a.count},i.lean=i.track&&null!==a.upgrade?0===a.upgrade:i.lean,i.upload=i.track&&"string"==typeof i.upload&&a.upload&&a.upload.length>"https://".length?a.upload:i.upload,pn(0,e),pn(3,n),pn(1,m(location.href)),pn(2,document.referrer),pn(15,function(){var t=Sn();if(i.track&&Tn(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),pn(16,document.documentElement.lang),pn(17,document.dir),pn(26,"".concat(window.devicePixelRatio)),Y(0,a.ts),Y(1,0),navigator&&(pn(9,navigator.language),Y(33,navigator.hardwareConcurrency),Y(32,navigator.maxTouchPoints),Y(34,Math.round(navigator.deviceMemory)),(t=navigator.userAgentData)&&t.getHighEntropyValues?t.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;pn(22,t.platform),pn(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){pn(24,t.name+"~"+t.version)})),pn(25,t.model),Y(27,t.mobile?1:0)})):pn(22,navigator.platform)),screen&&(Y(14,Math.round(screen.width)),Y(15,Math.round(screen.height)),Y(16,Math.round(screen.colorDepth)));for(var u=0,c=i.cookies;u<c.length;u++){var s=c[u],l=Cn(s);l&&et(s,l)}Nn(r)}function kn(){wn=null,mn=null}function _n(t,e){void 0===e&&(e=!0),mn&&!1===e&&t(mn,!i.lean),yn.push({callback:t,wait:e})}function xn(){return mn?[mn.userId,mn.sessionId,mn.pageNum].join("."):""}function On(){na()&&(i.track=!0,Nn(jn(),1))}function En(){Dn("_clsk","",0)}function Mn(){var t=Math.round(Date.now()),e=i.upload&&"string"==typeof i.upload?i.upload.replace("https://",""):"",n=i.lean?0:1;!function(t){yn.length>0&&yn.forEach((function(e){!e.callback||e.wait&&!t||e.callback(mn,!i.lean)}))}(n),Dn("_clsk",[mn.sessionId,t,mn.pageNum,n,e].join("|"),1)}function Tn(t,e){try{return!!t[e]}catch(t){return!1}}function Nn(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)&&Dn("_clck",[mn.userId,1,n.toString(36),e].join("|"),365)}function Sn(){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 In(t,e){return void 0===e&&(e=10),parseInt(t,e)}function jn(){var t={id:Sn(),expiry:null,consent:0},e=Cn("_clck");if(e&&e.length>0){for(var n=e.split("|"),a=0,r=0,o=document.cookie.split(";");r<o.length;r++){a+="_clck"===o[r].split("=")[0].trim()?1:0}if(1===n.length||a>1){var u="".concat(";").concat("expires=").concat(new Date(0).toUTCString()).concat(";path=/");document.cookie="".concat("_clck","=").concat(u),document.cookie="".concat("_clsk","=").concat(u)}n.length>2&&(t.expiry=In(n[2],36)),n.length>3&&1===In(n[3])&&(t.consent=1),i.track=i.track||1===t.consent,t.id=i.track?n[0]:t.id}return t}function Cn(t){if(Tn(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 Dn(t,e,n){if(i.track&&(navigator&&navigator.cookieEnabled||Tn(document,"cookie"))){var a=new Date;a.setDate(a.getDate()+n);var r=a?"expires="+a.toUTCString():"",o="".concat(t,"=").concat(e).concat(";").concat(r).concat(";path=/");try{if(null===wn){for(var u=location.hostname?location.hostname.split("."):[],c=u.length-1;c>=0;c--)if(wn=".".concat(u[c]).concat(wn||""),c<u.length-1&&(document.cookie="".concat(o).concat(";").concat("domain=").concat(wn),Cn(t)===e))return;wn=""}}catch(t){wn=""}document.cookie=wn?"".concat(o).concat(";").concat("domain=").concat(wn):o}}var Hn,An=null;function Wn(){var t=mn;An={version:l,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0}}function Xn(){An=null}function Yn(t){return An.start=An.start+An.duration,An.duration=s()-An.start,An.sequence++,An.upload=t&&"sendBeacon"in navigator?1:0,An.end=t?1:0,[An.version,An.sequence,An.start,An.duration,An.projectId,An.userId,An.sessionId,An.pageNum,An.upload,An.end]}function zn(){Hn=[]}function qn(t){if(Hn&&-1===Hn.indexOf(t.message)){var e=i.report;if(e&&e.length>0){var n={v:An.version,p:An.projectId,u:An.userId,s:An.sessionId,n:An.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var a=new XMLHttpRequest;a.open("POST",e,!0),a.send(JSON.stringify(n)),Hn.push(t.message)}}return t}function Rn(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw qn(t)}var n=performance.now()-e;X(4,n),n>30&&(W(7),Y(6,n))}}var Pn=[];function Ln(t,e,n,a){void 0===a&&(a=!1),n=Rn(n);try{t[u("addEventListener")](e,n,a),Pn.push({event:e,target:t,listener:n,capture:a})}catch(t){}}function Un(){for(var t=0,e=Pn;t<e.length;t++){var n=e[t];try{n.target[u("removeEventListener")](n.event,n.listener,n.capture)}catch(t){}}Pn=[]}var Vn=null,Jn=null,Bn=null,Zn=0;function Gn(){return!(Zn++>20)||(Re(4,0),!1)}function Fn(){Zn=0,Bn!==Qn()&&(ua(),window.setTimeout(Kn,250))}function Kn(){ia(),Y(29,1)}function Qn(){return location.href?location.href.replace(location.hash,""):location.href}var $n=!1;function ta(){$n=!0,c=performance.now(),Tt(),Un(),zn(),Bn=Qn(),Zn=0,Ln(window,"popstate",Fn),null===Vn&&(Vn=history.pushState,history.pushState=function(){Vn.apply(this,arguments),na()&&Gn()&&Fn()}),null===Jn&&(Jn=history.replaceState,history.replaceState=function(){Jn.apply(this,arguments),na()&&Gn()&&Fn()})}function ea(){Bn=null,Zn=0,zn(),Un(),Tt(),c=0,$n=!1}function na(){return $n}function aa(t){if(null===t||$n)return!1;for(var e in t)e in i&&(i[e]=t[e]);return!0}function ra(){ia(),C("clarity","restart")}var oa=[Object.freeze({__proto__:null,start:function(){!function(){Y(26,navigator.webdriver?1:0);try{Y(31,window.top==window.self?1:2)}catch(t){Y(31,0)}}(),Ln(window,"error",Xe),We={},qe={}},stop:function(){qe={}}}),de,ee,_t];function ia(t){void 0===t&&(t=null),function(){try{return!1===$n&&"undefined"!=typeof Promise&&window.MutationObserver&&document.createTreeWalker&&"now"in Date&&"now"in performance&&"undefined"!=typeof WeakMap}catch(t){return!1}}()&&(aa(t),ta(),dt(),oa.forEach((function(t){return Rn(t.start)()})),null===t&&ha())}function ua(){na()&&(oa.slice().reverse().forEach((function(t){return Rn(t.stop)()})),pt(),ea(),void 0!==sa&&(sa[la]=function(){(sa[la].q=sa[la].q||[]).push(arguments)}))}var ca=Object.freeze({__proto__:null,consent:On,event:C,hashText:ie,identify:nt,metadata:_n,pause:function(){na()&&(C("clarity","pause"),null===Et&&(Et=new Promise((function(t){Mt=t}))))},resume:function(){na()&&(Et&&(Mt(),Et=null,null===Ot&&St()),C("clarity","resume"))},set:et,start:ia,stop:ua,upgrade:Q,version:l}),sa=window,la="clarity";function ha(){if(void 0!==sa){if(sa[la]&&sa[la].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=sa[la]&&sa[la].q||[];for(sa[la]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return ca[t].apply(ca,e)},sa[la].v=l;t.length>0;)sa[la].apply(sa,t.shift())}}ha()}();
|