clarity-js 0.8.4-beta → 0.8.5-beta
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.extended.js +1 -1
- package/build/clarity.insight.js +1 -1
- package/build/clarity.js +23 -48
- package/build/clarity.min.js +1 -1
- package/build/clarity.module.js +23 -48
- package/build/clarity.performance.js +1 -1
- package/package.json +2 -2
- package/src/core/task.ts +2 -1
- package/src/core/version.ts +1 -1
- package/src/data/metadata.ts +4 -16
- package/src/interaction/click.ts +8 -30
- package/test/stub.test.ts +7 -0
- package/types/data.d.ts +2 -1
package/build/clarity.insight.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var t=Object.freeze({__proto__:null,get queue(){return Re},get start(){return Le},get stop(){return Ue},get track(){return De}}),e=Object.freeze({__proto__:null,get clone(){return pn},get compute(){return hn},get data(){return rn},get keys(){return an},get reset(){return fn},get start(){return ln},get stop(){return gn},get trigger(){return dn},get update(){return vn}}),n=Object.freeze({__proto__:null,get check(){return Tn},get compute(){return On},get data(){return nn},get start(){return kn},get stop(){return xn},get trigger(){return _n}}),r=Object.freeze({__proto__:null,get compute(){return Pn},get data(){return En},get log(){return In},get reset(){return Yn},get start(){return Sn},get stop(){return Xn},get updates(){return Nn}}),a=Object.freeze({__proto__:null,get callback(){return Fn},get callbacks(){return Cn},get clear(){return Un},get consent(){return Rn},get data(){return An},get electron(){return Dn},get id(){return Ln},get metadata(){return qn},get save(){return Vn},get shortid(){return Zn},get start(){return Wn},get stop(){return zn}}),i=Object.freeze({__proto__:null,get data(){return nr},get envelope(){return ir},get start(){return rr},get stop(){return ar}}),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,dob:null,delayDom:!1,throttleDom:!0,conversions:!1,includeSubdomains:!0,throttleMutations:!1,dropMutations:!1,criticalMs:200,discard:[]};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(),n=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(e+n-c),0)}var l="0.8.4-beta";function d(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,i=0;i<t.length;i+=2){if(r=(r<<5)+r^t.charCodeAt(i),i+1<t.length)a=(a<<5)+a^t.charCodeAt(i+1)}return n=Math.abs(r+11579*a),(e?n%Math.pow(2,e):n).toString(36)}var p=/\S/gi,h=255,f=!0,v=null,g=null,m=null;function w(t,e,n,r,a){if(void 0===r&&(r=!1),t){if("input"==e&&("checkbox"===a||"radio"===a))return 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,r=!1,a=!1,i=!1,o=null;O();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(r=r||c>=48&&c<=57,a=a||64===c,i=9===c||10===c||13===c||32===c,0===u||u===t.length-1||i){if(r||a){null===o&&(o=t.split(""));var s=t.substring(e+1,i?u:u+1);s=f&&null!==m?s.match(m)?s:T(s,"▪","▫"):k(s),o.splice(e+1-n,s.length,s),n+=s.length-1}i&&(r=!1,a=!1,e=u)}}return o?o.join(""):t}(t);case"input":case"change":return _(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?b(t):k(t);case"src":case"srcset":case"title":case"alt":return 3===n?"":t;case"value":case"click":case"input":case"change":return _(t);case"placeholder":return k(t)}break;case 4:switch(e){case"*T":case"data-":return r?b(t):k(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 T(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 y(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t;if(e)r="".concat("https://").concat("Electron");else{var a=o.drop;if(a&&a.length>0&&t&&t.indexOf("?")>0){var i=t.split("?"),u=i[0],c=i[1];r=u+"?"+c.split("&").map((function(t){return a.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}}return n&&(r=r.substring(0,h)),r}function b(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"".concat(a).concat(e.length.toString(36)).concat(i)}return t}function k(t){return t.replace(p,"•")}function T(t,e,n){return O(),t?t.replace(g,e).replace(v,n):t}function _(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 O(){if(f&&null===v)try{v=new RegExp("\\p{N}","gu"),g=new RegExp("\\p{L}","gu"),m=new RegExp("\\p{Sc}","gu")}catch(t){f=!1}}var x=null,E=null,N=!1;function M(){N&&(x={time:s(),event:4,data:{visible:E.visible,docWidth:E.docWidth,docHeight:E.docHeight,screenWidth:E.screenWidth,screenHeight:E.screenHeight,scrollX:E.scrollX,scrollY:E.scrollY,pointerX:E.pointerX,pointerY:E.pointerY,activityTime:E.activityTime,scrollTime:E.scrollTime,pointerTime:E.pointerTime,moveX:E.moveX,moveY:E.moveY,moveTime:E.moveTime,downX:E.downX,downY:E.downY,downTime:E.downTime,upX:E.upX,upY:E.upY,upTime:E.upTime,pointerPrevX:E.pointerPrevX,pointerPrevY:E.pointerPrevY,pointerPrevTime:E.pointerPrevTime}}),E=E||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0,scrollTime:0,pointerTime:void 0,moveX:void 0,moveY:void 0,moveTime:void 0,downX:void 0,downY:void 0,downTime:void 0,upX:void 0,upY:void 0,upTime:void 0,pointerPrevX:void 0,pointerPrevY:void 0,pointerPrevTime:void 0}}function S(t,e,n,r){switch(t){case 8:E.docWidth=e,E.docHeight=n;break;case 11:E.screenWidth=e,E.screenHeight=n;break;case 10:E.scrollX=e,E.scrollY=n,E.scrollTime=r;break;case 12:E.moveX=e,E.moveY=n,E.moveTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;case 13:E.downX=e,E.downY=n,E.downTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;case 14:E.upX=e,E.upY=n,E.upTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;default:E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r}N=!0}function X(t){E.activityTime=t}function I(t,e){E.visible="visible"===e?1:0,E.visible||X(t),N=!0}function P(){N&&bn(4)}var Y=Object.freeze({__proto__:null,activity:X,compute:P,reset:M,start:function(){N=!1,M()},get state(){return x},stop:function(){M()},track:S,visibility:I}),j=null;function A(t,e){_r()&&t&&"string"==typeof t&&t.length<255&&(j=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},bn(24))}var C,D=null,H=null;function W(t){t in D||(D[t]=0),t in H||(H[t]=0),D[t]++,H[t]++}function z(t,e){null!==e&&(t in D||(D[t]=0),t in H||(H[t]=0),D[t]+=e,H[t]+=e)}function q(t,e){null!==e&&!1===isNaN(e)&&(t in D||(D[t]=0),(e>D[t]||0===D[t])&&(H[t]=e,D[t]=e))}function L(t,e,n){return window.setTimeout(cr(t),e,n)}function R(t){return window.clearTimeout(t)}var U=0,F=0,V=null;function J(){V&&R(V),V=L(B,F),U=s()}function B(){var t=s();C={gap:t-U},bn(25),C.gap<3e5?V=L(B,F):br&&(A("clarity","suspend"),Mr(),["mousemove","touchstart"].forEach((function(t){return lr(document,t,Or)})),["resize","scroll","pageshow"].forEach((function(t){return lr(window,t,Or)})))}var Z=Object.freeze({__proto__:null,get data(){return C},reset:J,start:function(){F=6e4,U=0},stop:function(){R(V),U=0,F=0}}),G=null;function K(){bn(36)}function Q(){G={}}var $=Object.freeze({__proto__:null,compute:K,get data(){return G},reset:Q,start:function(){G={}},stop:function(){G={}},track:function(t,e){if(t in G){var n=G[t],r=n[n.length-1];e-r[0]>100?G[t].push([e,0]):r[1]=e-r[0]}else G[t]=[[e,0]]}}),tt=null;function et(t){_r()&&o.lean&&(o.lean=!1,tt={key:t},Fn(),Vn(),o.upgrade&&o.upgrade(t),bn(3))}var nt=Object.freeze({__proto__:null,get data(){return tt},start:function(){!o.lean&&o.upgrade&&o.upgrade("Config"),tt=null},stop:function(){tt=null},upgrade:et});function rt(t,e,n,r){return new(n||(n=Promise))((function(a,i){function o(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,u)}c((r=r.apply(t,e||[])).next())}))}function at(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(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,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var it=null;function ot(t,e){ct(t,"string"==typeof e?[e]:e)}function ut(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),rt(this,void 0,void 0,(function(){var a,i;return at(this,(function(o){switch(o.label){case 0:return i={},[4,dt(t)];case 1:return i.userId=o.sent(),i.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(T(u.substring(2),"*","*")):T(u,"*","*")),ct("userId",[(a=i).userId]),ct("userHint",[a.userHint]),ct("userType",[pt(t)]),e&&(ct("sessionId",[e]),a.sessionId=e),n&&(ct("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function ct(t,e){if(_r()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in it?it[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);it[t]=n}}function st(){bn(34)}function lt(){it={}}function dt(t){return rt(this,void 0,void 0,(function(){var e;return at(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),crypto&&t?[4,crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t))]:[3,2];case 1:return e=n.sent(),[2,Array.prototype.map.call(new Uint8Array(e),(function(t){return("00"+t.toString(16)).slice(-2)})).join("")];case 2:return[2,""];case 3:return[3,5];case 4:return n.sent(),[2,""];case 5:return[2]}}))}))}function pt(t){return t&&t.indexOf("@")>0?"email":"string"}var ht="CompressionStream"in window;function ft(t){return rt(this,void 0,void 0,(function(){var e,n;return at(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),ht?(e=new ReadableStream({start:function(e){return rt(this,void 0,void 0,(function(){return at(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,vt(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 vt(t){return rt(this,void 0,void 0,(function(){var e,n,r,a,i;return at(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 gt=null;function mt(t){try{if(!gt)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){gt(t)}))}catch(t){}}var wt,yt=[Y,r,Object.freeze({__proto__:null,compute:st,get data(){return it},identify:ut,reset:lt,set:ot,start:function(){lt()},stop:function(){lt()}}),n,$,a,i,t,Z,nt,e];function bt(){D={},H={},W(5),yt.forEach((function(t){return cr(t.start)()}))}function kt(){yt.slice().reverse().forEach((function(t){return cr(t.stop)()})),D={},H={}}function Tt(){st(),P(),Pn(),bn(0),K(),On(),hn()}function _t(t){return rt(this,void 0,void 0,(function(){var e,n,r,a,i,o,u,c,l,d,p,h,f;return at(this,(function(v){switch(e=s(),n=[e,t],t){case 8:r=wt,n.push(r.width),n.push(r.height),S(t,r.width,r.height),Re(n);break;case 43:if((a=ge).length>0){for(i=0,o=a;i<o.length;i++)for(u=o[i],c=u.metadata.privacy,l=u.data,d=0,p=["tag","attributes","value"];d<p.length;d++)if(l[h=p[d]])switch(h){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(l[h]);break;case"attributes":for(f in l[h])void 0!==l[h][f]&&n.push(Ot(f,l[h][f],c));break;case"value":n.push(w(l[h],l.tag,c))}Re(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}(n),!0)}}return[2]}))}))}function Ot(t,e,n){return"".concat(t,"=").concat(w(e,0===t.indexOf("data-")?"data-":t,n))}function xt(){wt=null}function Et(){xt(),Nt()}function Nt(){Nt.dn=19;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,c=Math.max(n,r,a,i,o,u),s=t?t.clientHeight:null,l=t?t.scrollHeight:null,d=t?t.offsetHeight:null,p=e?e.clientHeight:null,h=e?e.scrollHeight:null,f=e?e.offsetHeight:null,v=Math.max(s,l,d,p,h,f);null!==wt&&c===wt.width&&v===wt.height||null===c||null===v||(wt={width:c,height:v},_t(8))}var Mt=[],St=null;var Xt=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:St,log:function(){},observe:function(){},reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:Mt,stop:function(){}}),It=[],Pt=null,Yt=null,jt=null;function At(){It=[],Pt=null,Yt=null}function Ct(t,e){return void 0===e&&(e=0),rt(this,void 0,void 0,(function(){var n,r,a;return at(this,(function(i){for(n=0,r=It;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){It[1===e?"unshift":"push"]({task:t,resolve:n,id:Ln()})})),null===Pt&&null===Yt&&Dt(),[2,a]}))}))}function Dt(){var t=It.shift();t&&(Pt=t,t.task().then((function(){t.id===Ln()&&(t.resolve(),Pt=null,Dt())})).catch((function(e){t.id===Ln()&&(e&&en(0,1,e.name,e.message,e.stack),Pt=null,Dt())})))}var Ht,Wt=["input","textarea","radio","button","canvas","select"],zt=[];function qt(t){lr(t,"click",Lt.bind(this,9,t),!0)}function Lt(t,e,n){Lt.dn=6;var r=document.documentElement,a="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+r.scrollLeft):null,i="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+r.scrollTop):null,o=ke(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}(o),c=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}(o);0===n.detail&&c&&(a=Math.round(c.x+c.w/2),i=Math.round(c.y+c.h/2));var l=c?Math.max(Math.floor((a-c.x)/c.w*32767),0):0,d=c?Math.max(Math.floor((i-c.y)/c.h*32767),0):0;if(null!==a&&null!==i){var p=function(t){var e=null,n=!1;if(t){var r=t.textContent||String(t.value||"")||t.alt;if(r){var a=r.replace(/\s+/g," ").trim();n=(e=a.substring(0,25)).length===a.length}}return{text:e,isFullText:n?1:0}}(o);zt.push({time:s(n),event:t,data:{target:o,x:a,y:i,eX:l,eY:d,button:n.button,reaction:Rt(o),context:Jt(u),text:p.text,link:u?u.href:null,hash:null,trust:n.isTrusted?1:0,isFullText:p.isFullText,tag:Ut(o).substring(0,10),class:Ft(o).substring(0,50),id:Vt(o).substring(0,25)}}),Ct(Me.bind(this,t))}}function Rt(t){var e=Ut(t);return Wt.indexOf(e)>=0?0:1}function Ut(t){var e="";return t.nodeType===Node.ELEMENT_NODE&&(e=t.tagName.toLowerCase()),e}function Ft(t){var e="";return t.nodeType===Node.ELEMENT_NODE&&(e=t.className.toLowerCase()),e}function Vt(t){var e="";return t.nodeType===Node.ELEMENT_NODE&&(e=t.id.toLowerCase()),e}function Jt(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 Bt(){zt=[]}var Zt=null,Gt=!1;function Kt(){Kt.dn=12;var t=document.documentElement;Ht={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},Gt?(R(Zt),Zt=L(Qt,500,11)):(Me(11),Gt=!0)}function Qt(t){Ct(Me.bind(this,t))}function $t(){Ht=null,R(Zt)}var te=[],ee=null;function ne(t){void 0===t&&(t=null),ne.dn=13;var e=window,n=document.documentElement,r=t?ke(t):n;if(r&&r.nodeType===Node.DOCUMENT_NODE){r=n=r.documentElement}var a=r===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(r.scrollLeft),i=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),o=window.innerWidth,u=window.innerHeight,c=o/3,l=o>u?.15*u:.2*u,d=u-l,p=re(c,l),h=re(c,d),f={time:s(t),event:10,data:{target:r,x:a,y:i,top:p,bottom:h}};if((null!==t||0!==a||0!==i)&&null!==a&&null!==i){var v=te.length,g=v>1?te[v-2]:null;g&&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}(g,f)&&te.pop(),te.push(f),R(ee),ee=L(ae,500,10)}}function re(t,e){var n,r,a;return"caretPositionFromPoint"in document?a=null===(n=document.caretPositionFromPoint(t,e))||void 0===n?void 0:n.offsetNode:"caretRangeFromPoint"in document&&(a=null===(r=document.caretRangeFromPoint(t,e))||void 0===r?void 0:r.startContainer),a||(a=document.elementFromPoint(t,e)),a&&a.nodeType===Node.TEXT_NODE&&(a=a.parentNode),a}function ae(t){Ct(Me.bind(this,t))}var ie,oe,ue=[];function ce(t){ce.dn=16,ue.push({time:s(t),event:39,data:{target:ke(t)}}),Ct(Me.bind(this,39))}function se(){ue=[]}function le(t){le.dn=17,ie={name:t.type,persisted:t.persisted?1:0},Me(26,s(t)),Mr()}function de(){ie=null}function pe(t){void 0===t&&(t=null),pe.dn=18,oe={visible:"visibilityState"in document?document.visibilityState:"default"},Me(28,s(t))}function he(){oe=null}function fe(t){!function(t){lr(t===document?window:t,"scroll",ne,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(qt(t),function(t){lr(t,"submit",ce,!0)}(t))}var ve=Object.freeze({__proto__:null,observe:fe,start:function t(){t.dn=8,Se=[],Ie(),Bt(),Gt=!1,lr(window,"resize",Kt),Kt(),lr(document,"visibilitychange",pe),pe(),te=[],ne(),se(),lr(window,"pagehide",le)},stop:function(){Se=[],Ie(),Bt(),$t(),he(),R(ee),te=[],se(),de()}}),ge=[],me=1,we=null;function ye(){return!1}function be(){}function ke(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 Te(t){var e={id:0,hash:null,privacy:o.conversions?1:5};return t&&(e.id=we.has(t)?we.get(t):xe(t)),e}function _e(){we=new WeakMap}function Oe(t){var e={},n=t.attributes;if(n&&n.length>0)for(var r=0;r<n.length;r++)e[n[r].name]=n[r].value;return e}function xe(t){return null===t?null:we.has(t)?we.get(t):(we.set(t,me),me++)}function Ee(t,e,n){if(t&&n&&n.tag){var r=xe(t),a=e?we.get(e):null,i=t.previousSibling?we.get(t.previousSibling):null;ge.push({id:r,parent:a,previous:i,children:[],data:n,selector:null,hash:null,region:null,metadata:{active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null}})}}var Ne=Object.freeze({__proto__:null,compute:function(){},get:function(t){return null},hashText:be,iframe:ye,metadata:Te,offset:function(){return{x:0,y:0}},snapshot:function(){ge=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,r=null,a=null,i=e.shift(),o=i.firstChild,u=i.parentElement?i.parentElement:i.parentNode?i.parentNode:null;o;)e.push(o),o=o.nextSibling;switch(i.nodeType){case Node.DOCUMENT_TYPE_NODE:var c=i;r="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:a=i.nodeValue,r=we.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=i;n=Oe(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}Ee(i,u,{tag:r,attributes:n,value:a})}}(document),_t(43)},start:function(){_e(),Et(),xe(document.documentElement),fe(document)},stop:function(){_e(),xt()},target:ke,get values(){return ge}});function Me(t,e){return void 0===e&&(e=null),rt(this,void 0,void 0,(function(){var n,r,a,i,o,u,c,l,d,p,h,f,v,g,m,b,k,T,_,O,x,E,N,M,X,P,Y,j,A,C,D,H,W,z,q;return at(this,(function(L){switch(n=e||s(),r=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(a=0,i=Mt;a<i.length;a++)z=i[a],(o=Te(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(o.id),r.push(z.data.x),r.push(z.data.y),void 0!==z.data.id&&(r.push(z.data.id),void 0!==z.data.isPrimary&&r.push(z.data.isPrimary.toString())),Re(r),S(z.event,z.data.x,z.data.y,z.time));break;case 9:for(u=0,c=zt;u<c.length;u++)z=c[u],l=Te(z.data.target,z.event,z.data.text),r=[z.time,z.event],d=l.hash?l.hash.join("."):"",r.push(l.id),r.push(z.data.x),r.push(z.data.y),r.push(z.data.eX),r.push(z.data.eY),r.push(z.data.button),r.push(z.data.reaction),r.push(z.data.context),r.push(w(z.data.text,"click",l.privacy)),r.push(y(z.data.link)),r.push(d),r.push(z.data.trust),r.push(z.data.isFullText),r.push(z.data.tag),r.push(z.data.class),r.push(z.data.id),Re(r),Pe(z.time,z.event,d,z.data.x,z.data.y,z.data.reaction,z.data.context);Bt();break;case 38:for(p=0,h=Mt;p<h.length;p++)z=h[p],r=[z.time,z.event],(D=Te(z.data.target,z.event)).id>0&&(r.push(D.id),r.push(z.data.action),Re(r));break;case 11:f=Ht,r.push(f.width),r.push(f.height),S(t,f.width,f.height),$t(),Re(r);break;case 26:v=ie,r.push(v.name),r.push(v.persisted),de(),Re(r);break;case 27:for(g=0,m=Mt;g<m.length;g++)z=m[g],b=Te(z.data.target,z.event,z.data.value),(r=[z.time,z.event]).push(b.id),r.push(w(z.data.value,"input",b.privacy,!1,z.data.type)),Re(r);break;case 21:(k=St)&&(T=Te(k.start),_=Te(k.end),r.push(T.id),r.push(k.startOffset),r.push(_.id),r.push(k.endOffset),Re(r));break;case 10:for(O=0,x=te;O<x.length;O++)z=x[O],E=Te(z.data.target,z.event),N=Te(z.data.top,z.event),M=Te(z.data.bottom,z.event),X=(null==N?void 0:N.hash)?N.hash.join("."):"",P=(null==M?void 0:M.hash)?M.hash.join("."):"",E.id>0&&((r=[z.time,z.event]).push(E.id),r.push(z.data.x),r.push(z.data.y),r.push(X),r.push(P),Re(r),S(z.event,z.data.x,z.data.y,z.time));te=[];break;case 42:for(Y=0,j=Mt;Y<j.length;Y++)z=j[Y],r=[z.time,z.event],(D=Te(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(D.id),r.push(z.data.type),r.push(w(z.data.value,"change",D.privacy)),r.push(w(z.data.checksum,"checksum",D.privacy)),Re(r));break;case 39:for(A=0,C=ue;A<C.length;A++)z=C[A],r=[z.time,z.event],(D=Te(z.data.target,z.event)).id>0&&(r.push(D.id),Re(r));se();break;case 22:for(H=0,W=Xe;H<W.length;H++)z=W[H],(r=[z.time,z.event]).push(z.data.type),r.push(z.data.hash),r.push(z.data.x),r.push(z.data.y),r.push(z.data.reaction),r.push(z.data.context),Re(r,!1);Ie();break;case 28:q=oe,r.push(q.visible),Re(r),I(n,q.visible),he()}return[2]}))}))}var Se=[],Xe=[];function Ie(){Xe=[]}function Pe(t,e,n,r,a,i,o){void 0===i&&(i=1),void 0===o&&(o=0),Se.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:i,context:o}}),S(e,r,a,t)}var Ye,je,Ae,Ce,De,He=0,We=0,ze=null,qe=0;function Le(){Ce=!0,He=0,We=0,qe=0,Ye=[],je=[],Ae={},De=null}function Re(t,e){if(void 0===e&&(e=!0),Ce){var n=s(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(r){case 5:He+=a.length;case 37:case 6:case 43:case 45:case 46:We+=a.length,Ye.push(a);break;default:je.push(a)}W(25);var i=function(){var t=!1===o.lean&&He>0?100:nr.sequence*o.delay;return"string"==typeof o.upload?Math.max(Math.min(t,3e4),100):o.delay}();n-qe>2*i&&(R(ze),ze=null),e&&null===ze&&(25!==r&&J(),ze=L(Fe,i),qe=n,Tn(We))}}function Ue(){R(ze),Fe(!0),He=0,We=0,qe=0,Ye=[],je=[],Ae={},De=null,Ce=!1}function Fe(t){return void 0===t&&(t=!1),rt(this,void 0,void 0,(function(){var e,n,r,a,i,u,c,s;return at(this,(function(l){switch(l.label){case 0:return ze=null,(e=!1===o.lean&&We>0&&(We<1048576||nr.sequence>0))&&q(1,1),function(){var t=[];Xe=[];for(var e=nr.start+nr.duration,n=Math.max(e-2e3,0),r=0,a=Se;r<a.length;r++){var i=a[r];i.time>=n&&(i.time<=e&&Xe.push(i),t.push(i))}Se=t,Me(22)}(),Tt(),n=!0===t,r=JSON.stringify(ir(n)),a="[".concat(je.join(),"]"),i=e?"[".concat(Ye.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:r,a:a,p:i}),n?(s=null,[3,3]):[3,1];case 1:return[4,ft(u)];case 2:s=l.sent(),l.label=3;case 3:return z(2,(c=s)?c.length:u.length),Ve(u,c,nr.sequence,n),je=[],e&&(Ye=[],We=0,He=0),[2]}}))}))}function Ve(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof o.upload){var a=o.upload,i=!1;if(r&&"sendBeacon"in navigator)try{(i=navigator.sendBeacon.bind(navigator)(a,t))&&Be(n)}catch(t){}if(!1===i){n in Ae?Ae[n].attempts++:Ae[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",a,!0),u.timeout=15e3,u.ontimeout=function(){ur(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(u.onreadystatechange=function(){cr(Je)(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),Be(n)}}function Je(t,e){var n=Ae[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?_n(6):(0===t.status&&(o.upload=o.fallback?o.fallback:o.upload),Ve(n.data,null,e)):(De={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&bn(2),200===t.status&&t.responseText&&function(t){for(var e=t&&t.length>0?t.split("\n"):[],n=0,r=e;n<r.length;n++){var a=r[n],i=a&&a.length>0?a.split(/ (.*)/):[""];switch(i[0]){case"END":_n(6);break;case"UPGRADE":et("Auto");break;case"ACTION":o.action&&i.length>1&&o.action(i[1]);break;case"EXTRACT":i.length>1&&dn(i[1]);break;case"SIGNAL":i.length>1&&mt(i[1])}}}(t.responseText),0===t.status&&(Ve(n.data,null,e,!0),_n(3)),t.status>=200&&t.status<=208&&Be(e),delete Ae[e]))}function Be(t){1===t&&(Vn(),Fn())}var Ze,Ge={};function Ke(t){Ke.dn=4;var e=t.error||t;return e.message in Ge||(Ge[e.message]=0),Ge[e.message]++>=5||e&&e.message&&(Ze={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},Qe(31)),!0}function Qe(t){return rt(this,void 0,void 0,(function(){var e;return at(this,(function(n){switch(e=[s(),t],t){case 31:e.push(Ze.message),e.push(Ze.line),e.push(Ze.column),e.push(Ze.stack),e.push(y(Ze.source)),Re(e);break;case 33:$e&&(e.push($e.code),e.push($e.name),e.push($e.message),e.push($e.stack),e.push($e.severity),Re(e,!1))}return[2]}))}))}var $e,tn={};function en(t,e,n,r,a){void 0===n&&(n=null),void 0===r&&(r=null),void 0===a&&(a=null);var i=n?"".concat(n,"|").concat(r):"";t in tn&&tn[t].indexOf(i)>=0||($e={code:t,name:n,message:r,stack:a,severity:e},t in tn?tn[t].push(i):tn[t]=[i],Qe(33))}var nn,rn={},an=new Set,on={},un={},cn={},sn={};function ln(){fn()}function dn(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=e[0].split(/\|(.*)/),r=parseInt(n[0]),a=n.length>1?n[1]:"",i=e.length>1?JSON.parse(e[1]):{};for(var o in on[r]={},un[r]={},cn[r]={},sn[r]=a,i){var u=parseInt(o),c=i[o],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.slice(1);on[r][u]=mn(l);break;case 2:un[r][u]=c;break;case 4:var d=c.slice(1);cn[r][u]=d}}}catch(t){en(8,1,t?t.name:null)}}function pn(t){return JSON.parse(JSON.stringify(t))}function hn(){try{for(var t in on){var e=parseInt(t);if(""==sn[e]||document.querySelector(sn[e])){var n=on[e];for(var r in n){var a=parseInt(r),i=(m=wn(pn(n[a])))?JSON.stringify(m).slice(0,1e4):m;i&&vn(e,a,i)}var o=un[e];for(var u in o){var c=!1,s=parseInt(u),l=o[s];l.startsWith("@")&&(c=!0,l=l.slice(1));var p=document.querySelectorAll(l);if(p){var h=Array.from(p).map((function(t){return t.textContent})).join("<SEP>");vn(e,s,(c?d(h).trim():h).slice(0,1e4))}}var f=cn[e];for(var v in f){var g=parseInt(v);vn(e,g,(void f[g]).trim().slice(0,1e4))}}}an.size>0&&bn(40)}catch(t){en(5,1,t?t.name:null)}var m}function fn(){an.clear()}function vn(t,e,n){var r,a=!1;t in rn||(rn[t]={},a=!0),r=cn[t],0==Object.keys(r).length||e in rn[t]&&rn[t][e]==n||(a=!0),rn[t][e]=n,a&&an.add(t)}function gn(){fn()}function mn(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.slice(0,a):i>0?r.slice(0,i):r,type:a>0?1:i>0?2:3,condition:i>0?r.slice(i+1,o):null})}return e}function wn(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&&yn(a,r.condition))n=wn(t,a);else if(Array.isArray(a)){for(var i=[],o=0,u=a;o<u.length;o++){var c=u[o];if(yn(c,r.condition)){var s=wn(t,c);s&&i.push(s)}}n=i}return n}return null}function yn(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}function bn(t){var e=[s(),t];switch(t){case 4:var n=x;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),e.push(n.data.scrollTime),e.push(n.data.pointerTime),e.push(n.data.moveX),e.push(n.data.moveY),e.push(n.data.moveTime),e.push(n.data.downX),e.push(n.data.downY),e.push(n.data.downTime),e.push(n.data.upX),e.push(n.data.upY),e.push(n.data.upTime),e.push(n.data.pointerPrevX),e.push(n.data.pointerPrevY),e.push(n.data.pointerPrevTime),Re(e,!1)),M();break;case 25:e.push(C.gap),Re(e);break;case 35:e.push(nn.check),Re(e,!1);break;case 3:e.push(tt.key),Re(e);break;case 2:e.push(De.sequence),e.push(De.attempts),e.push(De.status),Re(e,!1);break;case 24:j.key&&e.push(j.key),e.push(j.value),Re(e);break;case 34:var r=Object.keys(it);if(r.length>0){for(var a=0,i=r;a<i.length;a++){var o=i[a];e.push(o),e.push(it[o])}lt(),Re(e,!1)}break;case 0:var u=Object.keys(H);if(u.length>0){for(var c=0,l=u;c<l.length;c++){var d=l[c],p=parseInt(d,10);e.push(p),e.push(Math.round(H[d]))}H={},Re(e,!1)}break;case 1:var h=Object.keys(Nn);if(h.length>0){for(var f=0,v=h;f<v.length;f++){var g=v[f];p=parseInt(g,10);e.push(p),e.push(Nn[g])}Yn(),Re(e,!1)}break;case 36:var m=Object.keys(G);if(m.length>0){for(var w=0,y=m;w<y.length;w++){var b=y[w];p=parseInt(b,10);e.push(p),e.push([].concat.apply([],G[b]))}Q(),Re(e,!1)}break;case 40:an.forEach((function(t){e.push(t);var n=[];for(var r in rn[t]){var a=parseInt(r,10);n.push(a),n.push(rn[t][r])}e.push(n)})),fn(),Re(e,!1)}}function kn(){nn={check:0}}function Tn(t){if(0===nn.check){var e=nn.check;e=nr.sequence>=128?1:e,e=nr.pageNum>=128?7:e,e=s()>72e5?2:e,(e=t>10485760?2:e)!==nn.check&&_n(e)}}function _n(t){nn.check=t,5!==t&&(Un(),Mr())}function On(){0!==nn.check&&bn(35)}function xn(){nn=null}var En=null,Nn=null,Mn=!1;function Sn(){En={},Nn={},Mn=!1}function Xn(){En={},Nn={},Mn=!1}function In(t,e){if(e&&(e="".concat(e),t in En||(En[t]=[]),En[t].indexOf(e)<0)){if(En[t].length>128)return void(Mn||(Mn=!0,_n(5)));En[t].push(e),t in Nn||(Nn[t]=[]),Nn[t].push(e)}}function Pn(){bn(1)}function Yn(){Nn={},Mn=!1}function jn(t){In(36,t.toString())}var An=null,Cn=[],Dn=0,Hn=null;function Wn(){var t,e,n;Hn=null;var r=navigator&&"userAgent"in navigator?navigator.userAgent:"",a=null!==(n=null===(e=null===(t=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===t?void 0:t.resolvedOptions())||void 0===e?void 0:e.timeZone)&&void 0!==n?n:"",i=(new Date).getTimezoneOffset().toString(),u=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";Dn=r.indexOf("Electron")>0?1:0;var s,l=function(){var t={session:Zn(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=Qn("_clsk",!o.includeSubdomains);if(e){var n=e.split("|");n.length>=5&&t.ts-Gn(n[1])<18e5&&(t.session=n[0],t.count=Gn(n[2])+1,t.upgrade=Gn(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),p=Kn(),h=o.projectId||d(location.host);An={projectId:h,userId:p.id,sessionId:l.session,pageNum:l.count},o.lean=o.track&&null!==l.upgrade?0===l.upgrade:o.lean,o.upload=o.track&&"string"==typeof o.upload&&l.upload&&l.upload.length>"https://".length?l.upload:o.upload,In(0,r),In(3,c),In(1,y(location.href,!!Dn)),In(2,document.referrer),In(15,function(){var t=Zn();if(o.track&&Jn(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),In(16,document.documentElement.lang),In(17,document.dir),In(26,"".concat(window.devicePixelRatio)),In(28,p.dob.toString()),In(29,p.version.toString()),In(33,u),In(34,a),In(35,i),q(0,l.ts),q(1,0),q(35,Dn),navigator&&(In(9,navigator.language),q(33,navigator.hardwareConcurrency),q(32,navigator.maxTouchPoints),q(34,Math.round(navigator.deviceMemory)),(s=navigator.userAgentData)&&s.getHighEntropyValues?s.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;In(22,t.platform),In(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){In(24,t.name+"~"+t.version)})),In(25,t.model),q(27,t.mobile?1:0)})):In(22,navigator.platform)),screen&&(q(14,Math.round(screen.width)),q(15,Math.round(screen.height)),q(16,Math.round(screen.colorDepth)));for(var f=0,v=o.cookies;f<v.length;f++){var g=v[f],m=Qn(g);m&&ot(g,m)}!function(t){jn(t?1:0)}(o.track),Bn(p)}function zn(){Hn=null,An=null,Cn.forEach((function(t){t.called=!1}))}function qn(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1);var r=o.lean?0:1,a=!1;An&&(r||!1===e)&&(t(An,!o.lean),a=!0),!n&&a||Cn.push({callback:t,wait:e,recall:n,called:a})}function Ln(){return An?[An.userId,An.sessionId,An.pageNum].join("."):""}function Rn(t){if(void 0===t&&(t=!0),!t)return o.track=!1,tr("_clsk","",-Number.MAX_VALUE),tr("_clck","",-Number.MAX_VALUE),Mr(),void window.setTimeout(Nr,250);_r()&&(o.track=!0,Bn(Kn(),1),Vn(),jn(2))}function Un(){tr("_clsk","",0)}function Fn(){!function(t){if(Cn.length>0)for(var e=0;e<Cn.length;e++){var n=Cn[e];!n.callback||n.called||n.wait&&!t||(n.callback(An,!o.lean),n.called=!0,n.recall||(Cn.splice(e,1),e--))}}(o.lean?0:1)}function Vn(){if(An&&o.track){var t=Math.round(Date.now()),e=o.upload&&"string"==typeof o.upload?o.upload.replace("https://",""):"",n=o.lean?0:1;tr("_clsk",[An.sessionId,t,An.pageNum,n,e].join("|"),1)}}function Jn(t,e){try{return!!t[e]}catch(t){return!1}}function Bn(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5),r=0===t.dob?null===o.dob?0:o.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&tr("_clck",[An.userId,2,n.toString(36),e,r].join("|"),365)}function Zn(){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 Gn(t,e){return void 0===e&&(e=10),parseInt(t,e)}function Kn(){var t={id:Zn(),version:0,expiry:null,consent:0,dob:0},e=Qn("_clck",!o.includeSubdomains);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 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>1&&(t.version=Gn(n[1])),n.length>2&&(t.expiry=Gn(n[2],36)),n.length>3&&1===Gn(n[3])&&(t.consent=1),n.length>4&&Gn(n[1])>1&&(t.dob=Gn(n[4])),o.track=o.track||1===t.consent,t.id=o.track?n[0]:t.id}return t}function Qn(t,e){var n;if(void 0===e&&(e=!1),Jn(document,"cookie")){var r=document.cookie.split(";");if(r)for(var a=0;a<r.length;a++){var i=r[a].split("=");if(i.length>1&&i[0]&&i[0].trim()===t){for(var o=$n(i[1]),u=o[0],c=o[1];u;)u=(n=$n(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function $n(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}function tr(t,e,n){if((o.track||""==e)&&(navigator&&navigator.cookieEnabled||Jn(document,"cookie"))){var r=function(t){return encodeURIComponent(t)}(e),a=new Date;a.setDate(a.getDate()+n);var i=a?"expires="+a.toUTCString():"",u="".concat(t,"=").concat(r).concat(";").concat(i).concat(";path=/");try{if(null===Hn){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(Hn=".".concat(c[s]).concat(Hn||""),s<c.length-1&&(document.cookie="".concat(u).concat(";").concat("domain=").concat(Hn),Qn(t)===e))return;Hn=""}}catch(t){Hn=""}document.cookie=Hn?"".concat(u).concat(";").concat("domain=").concat(Hn):u}}var er,nr=null;function rr(){var t=An;nr={version:l,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0,applicationPlatform:0,url:""}}function ar(){nr=null}function ir(t){return nr.start=nr.start+nr.duration,nr.duration=s()-nr.start,nr.sequence++,nr.upload=t&&"sendBeacon"in navigator?1:0,nr.end=t?1:0,nr.applicationPlatform=0,nr.url=y(location.href,!1,!0),[nr.version,nr.sequence,nr.start,nr.duration,nr.projectId,nr.userId,nr.sessionId,nr.pageNum,nr.upload,nr.end,nr.applicationPlatform,nr.url]}function or(){er=[]}function ur(t){if(er&&-1===er.indexOf(t.message)){var e=o.report;if(e&&e.length>0){var n={v:nr.version,p:nr.projectId,u:nr.userId,s:nr.sessionId,n:nr.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var r=new XMLHttpRequest;r.open("POST",e,!0),r.send(JSON.stringify(n)),er.push(t.message)}}return t}function cr(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw ur(t)}var n=performance.now()-e;z(4,n),n>30&&(W(7),q(6,n),en(9,0,"".concat(t.dn||t.name,"-").concat(n)))}}var sr=new Map;function lr(t,e,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!0),n=cr(n);try{t[u("addEventListener")](e,n,{capture:r,passive:a}),function(t){return sr.has(t)}(t)||sr.set(t,[]),sr.get(t).push({event:e,listener:n,options:{capture:r,passive:a}})}catch(t){}}function dr(){sr.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[u("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),sr.delete(e)}(t,e)})),sr=new Map}var pr=null,hr=null,fr=null,vr=0;function gr(){return!(vr++>20)||(en(4,0),!1)}function mr(){mr.dn=1,vr=0,fr!==yr()&&(Mr(),window.setTimeout(wr,250))}function wr(){Nr(),q(29,1)}function yr(){return location.href?location.href.replace(location.hash,""):location.href}var br=!1;function kr(){br=!0,c=performance.now()+performance.timeOrigin,At(),dr(),or(),fr=yr(),vr=0,lr(window,"popstate",mr),null===pr&&(pr=history.pushState,history.pushState=function(){pr.apply(this,arguments),_r()&&gr()&&mr()}),null===hr&&(hr=history.replaceState,history.replaceState=function(){hr.apply(this,arguments),_r()&&gr()&&mr()})}function Tr(){fr=null,vr=0,or(),dr(),At(),c=0,br=!1}function _r(){return br}function Or(){Or.dn=2,Nr(),A("clarity","restart")}var xr=Object.freeze({__proto__:null,start:function t(){t.dn=3,function(){q(26,navigator.webdriver?1:0);try{q(31,window.top==window.self||window.top==window?1:2)}catch(t){q(31,0)}}(),lr(window,"error",Ke),Ge={},tn={}},stop:function(){tn={}}}),Er=[xr,Ne,ve,Xt];function Nr(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===br&&"undefined"!=typeof Promise&&window.MutationObserver&&document.createTreeWalker&&"now"in Date&&"now"in performance&&"undefined"!=typeof WeakMap&&!t}catch(t){return!1}}()&&(!function(t){if(null===t||br)return!1;for(var e in t)e in o&&(o[e]=t[e])}(t),kr(),bt(),Er.forEach((function(t){return cr(t.start)()})),null===t&&Pr())}function Mr(){_r()&&(Er.slice().reverse().forEach((function(t){return cr(t.stop)()})),kt(),Tr(),void 0!==Xr&&(Xr[Ir]=function(){(Xr[Ir].q=Xr[Ir].q||[]).push(arguments),"start"===arguments[0]&&Xr[Ir].q.unshift(Xr[Ir].q.pop())&&Pr()}))}var Sr=Object.freeze({__proto__:null,consent:Rn,event:A,hashText:be,identify:ut,metadata:qn,pause:function(){_r()&&(A("clarity","pause"),null===Yt&&(Yt=new Promise((function(t){jt=t}))))},resume:function(){_r()&&(Yt&&(jt(),Yt=null,null===Pt&&Dt()),A("clarity","resume"))},set:ot,signal:function(t){gt=t},start:Nr,stop:Mr,upgrade:et,version:l}),Xr=window,Ir="clarity";function Pr(){if(void 0!==Xr){if(Xr[Ir]&&Xr[Ir].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=Xr[Ir]&&Xr[Ir].q||[];for(Xr[Ir]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Sr[t].apply(Sr,e)},Xr[Ir].v=l;t.length>0;)Xr[Ir].apply(Xr,t.shift())}}Pr()}();
|
|
1
|
+
!function(){"use strict";var t=Object.freeze({__proto__:null,get queue(){return qe},get start(){return ze},get stop(){return Re},get track(){return Ae}}),e=Object.freeze({__proto__:null,get clone(){return ln},get compute(){return dn},get data(){return en},get keys(){return nn},get reset(){return pn},get start(){return cn},get stop(){return fn},get trigger(){return sn},get update(){return hn}}),n=Object.freeze({__proto__:null,get check(){return yn},get compute(){return Tn},get data(){return tn},get start(){return bn},get stop(){return _n},get trigger(){return kn}}),r=Object.freeze({__proto__:null,get compute(){return Xn},get data(){return xn},get log(){return Sn},get reset(){return In},get start(){return Mn},get stop(){return Nn},get updates(){return On}}),a=Object.freeze({__proto__:null,get callback(){return Ln},get callbacks(){return jn},get clear(){return Rn},get consent(){return qn},get data(){return Yn},get electron(){return An},get id(){return zn},get metadata(){return Wn},get save(){return Un},get shortid(){return Jn},get start(){return Dn},get stop(){return Hn}}),i=Object.freeze({__proto__:null,get data(){return tr},get envelope(){return rr},get start(){return er},get stop(){return nr}}),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,dob:null,delayDom:!1,throttleDom:!0,conversions:!1,includeSubdomains:!0,throttleMutations:!1,dropMutations:!1,criticalMs:200,discard:[]};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(),n=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(e+n-c),0)}var l="0.8.5-beta";function d(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,i=0;i<t.length;i+=2){if(r=(r<<5)+r^t.charCodeAt(i),i+1<t.length)a=(a<<5)+a^t.charCodeAt(i+1)}return n=Math.abs(r+11579*a),(e?n%Math.pow(2,e):n).toString(36)}var p=/\S/gi,h=255,f=!0,v=null,g=null,m=null;function w(t,e,n,r,a){if(void 0===r&&(r=!1),t){if("input"==e&&("checkbox"===a||"radio"===a))return 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,r=!1,a=!1,i=!1,o=null;x();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(r=r||c>=48&&c<=57,a=a||64===c,i=9===c||10===c||13===c||32===c,0===u||u===t.length-1||i){if(r||a){null===o&&(o=t.split(""));var s=t.substring(e+1,i?u:u+1);s=f&&null!==m?s.match(m)?s:T(s,"▪","▫"):k(s),o.splice(e+1-n,s.length,s),n+=s.length-1}i&&(r=!1,a=!1,e=u)}}return o?o.join(""):t}(t);case"input":case"change":return _(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?y(t):k(t);case"src":case"srcset":case"title":case"alt":return 3===n?"":t;case"value":case"click":case"input":case"change":return _(t);case"placeholder":return k(t)}break;case 4:switch(e){case"*T":case"data-":return r?y(t):k(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 T(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 b(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t;if(e)r="".concat("https://").concat("Electron");else{var a=o.drop;if(a&&a.length>0&&t&&t.indexOf("?")>0){var i=t.split("?"),u=i[0],c=i[1];r=u+"?"+c.split("&").map((function(t){return a.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}}return n&&(r=r.substring(0,h)),r}function y(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"".concat(a).concat(e.length.toString(36)).concat(i)}return t}function k(t){return t.replace(p,"•")}function T(t,e,n){return x(),t?t.replace(g,e).replace(v,n):t}function _(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 x(){if(f&&null===v)try{v=new RegExp("\\p{N}","gu"),g=new RegExp("\\p{L}","gu"),m=new RegExp("\\p{Sc}","gu")}catch(t){f=!1}}var O=null,E=null,M=!1;function N(){M&&(O={time:s(),event:4,data:{visible:E.visible,docWidth:E.docWidth,docHeight:E.docHeight,screenWidth:E.screenWidth,screenHeight:E.screenHeight,scrollX:E.scrollX,scrollY:E.scrollY,pointerX:E.pointerX,pointerY:E.pointerY,activityTime:E.activityTime,scrollTime:E.scrollTime,pointerTime:E.pointerTime,moveX:E.moveX,moveY:E.moveY,moveTime:E.moveTime,downX:E.downX,downY:E.downY,downTime:E.downTime,upX:E.upX,upY:E.upY,upTime:E.upTime,pointerPrevX:E.pointerPrevX,pointerPrevY:E.pointerPrevY,pointerPrevTime:E.pointerPrevTime}}),E=E||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0,scrollTime:0,pointerTime:void 0,moveX:void 0,moveY:void 0,moveTime:void 0,downX:void 0,downY:void 0,downTime:void 0,upX:void 0,upY:void 0,upTime:void 0,pointerPrevX:void 0,pointerPrevY:void 0,pointerPrevTime:void 0}}function S(t,e,n,r){switch(t){case 8:E.docWidth=e,E.docHeight=n;break;case 11:E.screenWidth=e,E.screenHeight=n;break;case 10:E.scrollX=e,E.scrollY=n,E.scrollTime=r;break;case 12:E.moveX=e,E.moveY=n,E.moveTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;case 13:E.downX=e,E.downY=n,E.downTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;case 14:E.upX=e,E.upY=n,E.upTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;default:E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r}M=!0}function X(t){E.activityTime=t}function I(t,e){E.visible="visible"===e?1:0,E.visible||X(t),M=!0}function P(){M&&wn(4)}var Y=Object.freeze({__proto__:null,activity:X,compute:P,reset:N,start:function(){M=!1,N()},get state(){return O},stop:function(){N()},track:S,visibility:I}),j=null;function A(t,e){kr()&&t&&"string"==typeof t&&t.length<255&&(j=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},wn(24))}var C,D=null,H=null;function W(t){t in D||(D[t]=0),t in H||(H[t]=0),D[t]++,H[t]++}function z(t,e){null!==e&&(t in D||(D[t]=0),t in H||(H[t]=0),D[t]+=e,H[t]+=e)}function q(t,e){null!==e&&!1===isNaN(e)&&(t in D||(D[t]=0),(e>D[t]||0===D[t])&&(H[t]=e,D[t]=e))}function R(t,e,n){return window.setTimeout(or(t),e,n)}function L(t){return window.clearTimeout(t)}var U=0,F=0,V=null;function J(){V&&L(V),V=R(B,F),U=s()}function B(){var t=s();C={gap:t-U},wn(25),C.gap<3e5?V=R(B,F):wr&&(A("clarity","suspend"),Er(),["mousemove","touchstart"].forEach((function(t){return cr(document,t,Tr)})),["resize","scroll","pageshow"].forEach((function(t){return cr(window,t,Tr)})))}var Z=Object.freeze({__proto__:null,get data(){return C},reset:J,start:function(){F=6e4,U=0},stop:function(){L(V),U=0,F=0}}),G=null;function K(){wn(36)}function Q(){G={}}var $=Object.freeze({__proto__:null,compute:K,get data(){return G},reset:Q,start:function(){G={}},stop:function(){G={}},track:function(t,e){if(t in G){var n=G[t],r=n[n.length-1];e-r[0]>100?G[t].push([e,0]):r[1]=e-r[0]}else G[t]=[[e,0]]}}),tt=null;function et(t){kr()&&o.lean&&(o.lean=!1,tt={key:t},Ln(),Un(),o.upgrade&&o.upgrade(t),wn(3))}var nt=Object.freeze({__proto__:null,get data(){return tt},start:function(){!o.lean&&o.upgrade&&o.upgrade("Config"),tt=null},stop:function(){tt=null},upgrade:et});function rt(t,e,n,r){return new(n||(n=Promise))((function(a,i){function o(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,u)}c((r=r.apply(t,e||[])).next())}))}function at(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(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,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var it=null;function ot(t,e){ct(t,"string"==typeof e?[e]:e)}function ut(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),rt(this,void 0,void 0,(function(){var a,i;return at(this,(function(o){switch(o.label){case 0:return i={},[4,dt(t)];case 1:return i.userId=o.sent(),i.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(T(u.substring(2),"*","*")):T(u,"*","*")),ct("userId",[(a=i).userId]),ct("userHint",[a.userHint]),ct("userType",[pt(t)]),e&&(ct("sessionId",[e]),a.sessionId=e),n&&(ct("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function ct(t,e){if(kr()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in it?it[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);it[t]=n}}function st(){wn(34)}function lt(){it={}}function dt(t){return rt(this,void 0,void 0,(function(){var e;return at(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),crypto&&t?[4,crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t))]:[3,2];case 1:return e=n.sent(),[2,Array.prototype.map.call(new Uint8Array(e),(function(t){return("00"+t.toString(16)).slice(-2)})).join("")];case 2:return[2,""];case 3:return[3,5];case 4:return n.sent(),[2,""];case 5:return[2]}}))}))}function pt(t){return t&&t.indexOf("@")>0?"email":"string"}var ht="CompressionStream"in window;function ft(t){return rt(this,void 0,void 0,(function(){var e,n;return at(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),ht?(e=new ReadableStream({start:function(e){return rt(this,void 0,void 0,(function(){return at(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,vt(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 vt(t){return rt(this,void 0,void 0,(function(){var e,n,r,a,i;return at(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 gt=null;function mt(t){try{if(!gt)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){gt(t)}))}catch(t){}}var wt,bt=[Y,r,Object.freeze({__proto__:null,compute:st,get data(){return it},identify:ut,reset:lt,set:ot,start:function(){lt()},stop:function(){lt()}}),n,$,a,i,t,Z,nt,e];function yt(){D={},H={},W(5),bt.forEach((function(t){return or(t.start)()}))}function kt(){bt.slice().reverse().forEach((function(t){return or(t.stop)()})),D={},H={}}function Tt(){st(),P(),Xn(),wn(0),K(),Tn(),dn()}function _t(t){return rt(this,void 0,void 0,(function(){var e,n,r,a,i,o,u,c,l,d,p,h,f;return at(this,(function(v){switch(e=s(),n=[e,t],t){case 8:r=wt,n.push(r.width),n.push(r.height),S(t,r.width,r.height),qe(n);break;case 43:if((a=fe).length>0){for(i=0,o=a;i<o.length;i++)for(u=o[i],c=u.metadata.privacy,l=u.data,d=0,p=["tag","attributes","value"];d<p.length;d++)if(l[h=p[d]])switch(h){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(l[h]);break;case"attributes":for(f in l[h])void 0!==l[h][f]&&n.push(xt(f,l[h][f],c));break;case"value":n.push(w(l[h],l.tag,c))}qe(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}(n),!0)}}return[2]}))}))}function xt(t,e,n){return"".concat(t,"=").concat(w(e,0===t.indexOf("data-")?"data-":t,n))}function Ot(){wt=null}function Et(){Ot(),Mt()}function Mt(){Mt.dn=19;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,c=Math.max(n,r,a,i,o,u),s=t?t.clientHeight:null,l=t?t.scrollHeight:null,d=t?t.offsetHeight:null,p=e?e.clientHeight:null,h=e?e.scrollHeight:null,f=e?e.offsetHeight:null,v=Math.max(s,l,d,p,h,f);null!==wt&&c===wt.width&&v===wt.height||null===c||null===v||(wt={width:c,height:v},_t(8))}var Nt=[],St=null;var Xt=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:St,log:function(){},observe:function(){},reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:Nt,stop:function(){}}),It=[],Pt=null,Yt=null,jt=null;function At(){It=[],Pt=null,Yt=null}function Ct(t,e){return void 0===e&&(e=0),rt(this,void 0,void 0,(function(){var n,r,a;return at(this,(function(i){for(n=0,r=It;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){It[1===e?"unshift":"push"]({task:t,resolve:n,id:zn()})})),null===Pt&&null===Yt&&Dt(),[2,a]}))}))}function Dt(){var t=It.shift();t&&(Pt=t,t.task().then((function(){t.id===zn()&&(t.resolve(),Pt=null,Dt())})).catch((function(e){t.id===zn()&&(e&&$e(0,1,e.name,e.message,e.stack),Pt=null,Dt())})))}var Ht,Wt=["input","textarea","radio","button","canvas","select"],zt=[];function qt(t){cr(t,"click",Rt.bind(this,9,t),!0)}function Rt(t,e,n){Rt.dn=6;var r=document.documentElement,a="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+r.scrollLeft):null,i="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+r.scrollTop):null,o=be(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}(o),c=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}(o);0===n.detail&&c&&(a=Math.round(c.x+c.w/2),i=Math.round(c.y+c.h/2));var l=c?Math.max(Math.floor((a-c.x)/c.w*32767),0):0,d=c?Math.max(Math.floor((i-c.y)/c.h*32767),0):0;if(null!==a&&null!==i){var p=function(t){var e=null,n=!1;if(t){var r=t.textContent||String(t.value||"")||t.alt;if(r){var a=r.replace(/\s+/g," ").trim();n=(e=a.substring(0,25)).length===a.length}}return{text:e,isFullText:n?1:0}}(o);zt.push({time:s(n),event:t,data:{target:o,x:a,y:i,eX:l,eY:d,button:n.button,reaction:Lt(o),context:Ft(u),text:p.text,link:u?u.href:null,hash:null,trust:n.isTrusted?1:0,isFullText:p.isFullText,tag:Ut(o,"tagName").substring(0,10),class:Ut(o,"className").substring(0,50),id:Ut(o,"id").substring(0,25)}}),Ct(Ee.bind(this,t))}}function Lt(t){var e=Ut(t,"tagName");return Wt.indexOf(e)>=0?0:1}function Ut(t,e){var n;return t.nodeType===Node.ELEMENT_NODE&&(null===(n=null==t?void 0:t[e])||void 0===n?void 0:n.toLowerCase())||""}function Ft(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 Vt(){zt=[]}var Jt=null,Bt=!1;function Zt(){Zt.dn=12;var t=document.documentElement;Ht={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},Bt?(L(Jt),Jt=R(Gt,500,11)):(Ee(11),Bt=!0)}function Gt(t){Ct(Ee.bind(this,t))}function Kt(){Ht=null,L(Jt)}var Qt=[],$t=null;function te(t){void 0===t&&(t=null),te.dn=13;var e=window,n=document.documentElement,r=t?be(t):n;if(r&&r.nodeType===Node.DOCUMENT_NODE){r=n=r.documentElement}var a=r===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(r.scrollLeft),i=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),o=window.innerWidth,u=window.innerHeight,c=o/3,l=o>u?.15*u:.2*u,d=u-l,p=ee(c,l),h=ee(c,d),f={time:s(t),event:10,data:{target:r,x:a,y:i,top:p,bottom:h}};if((null!==t||0!==a||0!==i)&&null!==a&&null!==i){var v=Qt.length,g=v>1?Qt[v-2]:null;g&&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}(g,f)&&Qt.pop(),Qt.push(f),L($t),$t=R(ne,500,10)}}function ee(t,e){var n,r,a;return"caretPositionFromPoint"in document?a=null===(n=document.caretPositionFromPoint(t,e))||void 0===n?void 0:n.offsetNode:"caretRangeFromPoint"in document&&(a=null===(r=document.caretRangeFromPoint(t,e))||void 0===r?void 0:r.startContainer),a||(a=document.elementFromPoint(t,e)),a&&a.nodeType===Node.TEXT_NODE&&(a=a.parentNode),a}function ne(t){Ct(Ee.bind(this,t))}var re,ae,ie=[];function oe(t){oe.dn=16,ie.push({time:s(t),event:39,data:{target:be(t)}}),Ct(Ee.bind(this,39))}function ue(){ie=[]}function ce(t){ce.dn=17,re={name:t.type,persisted:t.persisted?1:0},Ee(26,s(t)),Er()}function se(){re=null}function le(t){void 0===t&&(t=null),le.dn=18,ae={visible:"visibilityState"in document?document.visibilityState:"default"},Ee(28,s(t))}function de(){ae=null}function pe(t){!function(t){cr(t===document?window:t,"scroll",te,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(qt(t),function(t){cr(t,"submit",oe,!0)}(t))}var he=Object.freeze({__proto__:null,observe:pe,start:function t(){t.dn=8,Me=[],Se(),Vt(),Bt=!1,cr(window,"resize",Zt),Zt(),cr(document,"visibilitychange",le),le(),Qt=[],te(),ue(),cr(window,"pagehide",ce)},stop:function(){Me=[],Se(),Vt(),Kt(),de(),L($t),Qt=[],ue(),se()}}),fe=[],ve=1,ge=null;function me(){return!1}function we(){}function be(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 ye(t){var e={id:0,hash:null,privacy:o.conversions?1:5};return t&&(e.id=ge.has(t)?ge.get(t):_e(t)),e}function ke(){ge=new WeakMap}function Te(t){var e={},n=t.attributes;if(n&&n.length>0)for(var r=0;r<n.length;r++)e[n[r].name]=n[r].value;return e}function _e(t){return null===t?null:ge.has(t)?ge.get(t):(ge.set(t,ve),ve++)}function xe(t,e,n){if(t&&n&&n.tag){var r=_e(t),a=e?ge.get(e):null,i=t.previousSibling?ge.get(t.previousSibling):null;fe.push({id:r,parent:a,previous:i,children:[],data:n,selector:null,hash:null,region:null,metadata:{active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null}})}}var Oe=Object.freeze({__proto__:null,compute:function(){},get:function(t){return null},hashText:we,iframe:me,metadata:ye,offset:function(){return{x:0,y:0}},snapshot:function(){fe=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,r=null,a=null,i=e.shift(),o=i.firstChild,u=i.parentElement?i.parentElement:i.parentNode?i.parentNode:null;o;)e.push(o),o=o.nextSibling;switch(i.nodeType){case Node.DOCUMENT_TYPE_NODE:var c=i;r="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:a=i.nodeValue,r=ge.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=i;n=Te(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}xe(i,u,{tag:r,attributes:n,value:a})}}(document),_t(43)},start:function(){ke(),Et(),_e(document.documentElement),pe(document)},stop:function(){ke(),Ot()},target:be,get values(){return fe}});function Ee(t,e){return void 0===e&&(e=null),rt(this,void 0,void 0,(function(){var n,r,a,i,o,u,c,l,d,p,h,f,v,g,m,y,k,T,_,x,O,E,M,N,X,P,Y,j,A,C,D,H,W,z,q;return at(this,(function(R){switch(n=e||s(),r=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(a=0,i=Nt;a<i.length;a++)z=i[a],(o=ye(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(o.id),r.push(z.data.x),r.push(z.data.y),void 0!==z.data.id&&(r.push(z.data.id),void 0!==z.data.isPrimary&&r.push(z.data.isPrimary.toString())),qe(r),S(z.event,z.data.x,z.data.y,z.time));break;case 9:for(u=0,c=zt;u<c.length;u++)z=c[u],l=ye(z.data.target,z.event,z.data.text),r=[z.time,z.event],d=l.hash?l.hash.join("."):"",r.push(l.id),r.push(z.data.x),r.push(z.data.y),r.push(z.data.eX),r.push(z.data.eY),r.push(z.data.button),r.push(z.data.reaction),r.push(z.data.context),r.push(w(z.data.text,"click",l.privacy)),r.push(b(z.data.link)),r.push(d),r.push(z.data.trust),r.push(z.data.isFullText),r.push(z.data.tag),r.push(z.data.class),r.push(z.data.id),qe(r),Xe(z.time,z.event,d,z.data.x,z.data.y,z.data.reaction,z.data.context);Vt();break;case 38:for(p=0,h=Nt;p<h.length;p++)z=h[p],r=[z.time,z.event],(D=ye(z.data.target,z.event)).id>0&&(r.push(D.id),r.push(z.data.action),qe(r));break;case 11:f=Ht,r.push(f.width),r.push(f.height),S(t,f.width,f.height),Kt(),qe(r);break;case 26:v=re,r.push(v.name),r.push(v.persisted),se(),qe(r);break;case 27:for(g=0,m=Nt;g<m.length;g++)z=m[g],y=ye(z.data.target,z.event,z.data.value),(r=[z.time,z.event]).push(y.id),r.push(w(z.data.value,"input",y.privacy,!1,z.data.type)),qe(r);break;case 21:(k=St)&&(T=ye(k.start),_=ye(k.end),r.push(T.id),r.push(k.startOffset),r.push(_.id),r.push(k.endOffset),qe(r));break;case 10:for(x=0,O=Qt;x<O.length;x++)z=O[x],E=ye(z.data.target,z.event),M=ye(z.data.top,z.event),N=ye(z.data.bottom,z.event),X=(null==M?void 0:M.hash)?M.hash.join("."):"",P=(null==N?void 0:N.hash)?N.hash.join("."):"",E.id>0&&((r=[z.time,z.event]).push(E.id),r.push(z.data.x),r.push(z.data.y),r.push(X),r.push(P),qe(r),S(z.event,z.data.x,z.data.y,z.time));Qt=[];break;case 42:for(Y=0,j=Nt;Y<j.length;Y++)z=j[Y],r=[z.time,z.event],(D=ye(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(D.id),r.push(z.data.type),r.push(w(z.data.value,"change",D.privacy)),r.push(w(z.data.checksum,"checksum",D.privacy)),qe(r));break;case 39:for(A=0,C=ie;A<C.length;A++)z=C[A],r=[z.time,z.event],(D=ye(z.data.target,z.event)).id>0&&(r.push(D.id),qe(r));ue();break;case 22:for(H=0,W=Ne;H<W.length;H++)z=W[H],(r=[z.time,z.event]).push(z.data.type),r.push(z.data.hash),r.push(z.data.x),r.push(z.data.y),r.push(z.data.reaction),r.push(z.data.context),qe(r,!1);Se();break;case 28:q=ae,r.push(q.visible),qe(r),I(n,q.visible),de()}return[2]}))}))}var Me=[],Ne=[];function Se(){Ne=[]}function Xe(t,e,n,r,a,i,o){void 0===i&&(i=1),void 0===o&&(o=0),Me.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:i,context:o}}),S(e,r,a,t)}var Ie,Pe,Ye,je,Ae,Ce=0,De=0,He=null,We=0;function ze(){je=!0,Ce=0,De=0,We=0,Ie=[],Pe=[],Ye={},Ae=null}function qe(t,e){if(void 0===e&&(e=!0),je){var n=s(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(r){case 5:Ce+=a.length;case 37:case 6:case 43:case 45:case 46:De+=a.length,Ie.push(a);break;default:Pe.push(a)}W(25);var i=function(){var t=!1===o.lean&&Ce>0?100:tr.sequence*o.delay;return"string"==typeof o.upload?Math.max(Math.min(t,3e4),100):o.delay}();n-We>2*i&&(L(He),He=null),e&&null===He&&(25!==r&&J(),He=R(Le,i),We=n,yn(De))}}function Re(){L(He),Le(!0),Ce=0,De=0,We=0,Ie=[],Pe=[],Ye={},Ae=null,je=!1}function Le(t){return void 0===t&&(t=!1),rt(this,void 0,void 0,(function(){var e,n,r,a,i,u,c,s;return at(this,(function(l){switch(l.label){case 0:return He=null,(e=!1===o.lean&&De>0&&(De<1048576||tr.sequence>0))&&q(1,1),function(){var t=[];Ne=[];for(var e=tr.start+tr.duration,n=Math.max(e-2e3,0),r=0,a=Me;r<a.length;r++){var i=a[r];i.time>=n&&(i.time<=e&&Ne.push(i),t.push(i))}Me=t,Ee(22)}(),Tt(),n=!0===t,r=JSON.stringify(rr(n)),a="[".concat(Pe.join(),"]"),i=e?"[".concat(Ie.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:r,a:a,p:i}),n?(s=null,[3,3]):[3,1];case 1:return[4,ft(u)];case 2:s=l.sent(),l.label=3;case 3:return z(2,(c=s)?c.length:u.length),Ue(u,c,tr.sequence,n),Pe=[],e&&(Ie=[],De=0,Ce=0),[2]}}))}))}function Ue(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof o.upload){var a=o.upload,i=!1;if(r&&"sendBeacon"in navigator)try{(i=navigator.sendBeacon.bind(navigator)(a,t))&&Ve(n)}catch(t){}if(!1===i){n in Ye?Ye[n].attempts++:Ye[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",a,!0),u.timeout=15e3,u.ontimeout=function(){ir(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(u.onreadystatechange=function(){or(Fe)(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),Ve(n)}}function Fe(t,e){var n=Ye[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?kn(6):(0===t.status&&(o.upload=o.fallback?o.fallback:o.upload),Ue(n.data,null,e)):(Ae={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&wn(2),200===t.status&&t.responseText&&function(t){for(var e=t&&t.length>0?t.split("\n"):[],n=0,r=e;n<r.length;n++){var a=r[n],i=a&&a.length>0?a.split(/ (.*)/):[""];switch(i[0]){case"END":kn(6);break;case"UPGRADE":et("Auto");break;case"ACTION":o.action&&i.length>1&&o.action(i[1]);break;case"EXTRACT":i.length>1&&sn(i[1]);break;case"SIGNAL":i.length>1&&mt(i[1])}}}(t.responseText),0===t.status&&(Ue(n.data,null,e,!0),kn(3)),t.status>=200&&t.status<=208&&Ve(e),delete Ye[e]))}function Ve(t){1===t&&(Un(),Ln())}var Je,Be={};function Ze(t){Ze.dn=4;var e=t.error||t;return e.message in Be||(Be[e.message]=0),Be[e.message]++>=5||e&&e.message&&(Je={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},Ge(31)),!0}function Ge(t){return rt(this,void 0,void 0,(function(){var e;return at(this,(function(n){switch(e=[s(),t],t){case 31:e.push(Je.message),e.push(Je.line),e.push(Je.column),e.push(Je.stack),e.push(b(Je.source)),qe(e);break;case 33:Ke&&(e.push(Ke.code),e.push(Ke.name),e.push(Ke.message),e.push(Ke.stack),e.push(Ke.severity),qe(e,!1))}return[2]}))}))}var Ke,Qe={};function $e(t,e,n,r,a){void 0===n&&(n=null),void 0===r&&(r=null),void 0===a&&(a=null);var i=n?"".concat(n,"|").concat(r):"";t in Qe&&Qe[t].indexOf(i)>=0||(Ke={code:t,name:n,message:r,stack:a,severity:e},t in Qe?Qe[t].push(i):Qe[t]=[i],Ge(33))}var tn,en={},nn=new Set,rn={},an={},on={},un={};function cn(){pn()}function sn(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=e[0].split(/\|(.*)/),r=parseInt(n[0]),a=n.length>1?n[1]:"",i=e.length>1?JSON.parse(e[1]):{};for(var o in rn[r]={},an[r]={},on[r]={},un[r]=a,i){var u=parseInt(o),c=i[o],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.slice(1);rn[r][u]=vn(l);break;case 2:an[r][u]=c;break;case 4:var d=c.slice(1);on[r][u]=d}}}catch(t){$e(8,1,t?t.name:null)}}function ln(t){return JSON.parse(JSON.stringify(t))}function dn(){try{for(var t in rn){var e=parseInt(t);if(""==un[e]||document.querySelector(un[e])){var n=rn[e];for(var r in n){var a=parseInt(r),i=(m=gn(ln(n[a])))?JSON.stringify(m).slice(0,1e4):m;i&&hn(e,a,i)}var o=an[e];for(var u in o){var c=!1,s=parseInt(u),l=o[s];l.startsWith("@")&&(c=!0,l=l.slice(1));var p=document.querySelectorAll(l);if(p){var h=Array.from(p).map((function(t){return t.textContent})).join("<SEP>");hn(e,s,(c?d(h).trim():h).slice(0,1e4))}}var f=on[e];for(var v in f){var g=parseInt(v);hn(e,g,(void f[g]).trim().slice(0,1e4))}}}nn.size>0&&wn(40)}catch(t){$e(5,1,t?t.name:null)}var m}function pn(){nn.clear()}function hn(t,e,n){var r,a=!1;t in en||(en[t]={},a=!0),r=on[t],0==Object.keys(r).length||e in en[t]&&en[t][e]==n||(a=!0),en[t][e]=n,a&&nn.add(t)}function fn(){pn()}function vn(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.slice(0,a):i>0?r.slice(0,i):r,type:a>0?1:i>0?2:3,condition:i>0?r.slice(i+1,o):null})}return e}function gn(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&&mn(a,r.condition))n=gn(t,a);else if(Array.isArray(a)){for(var i=[],o=0,u=a;o<u.length;o++){var c=u[o];if(mn(c,r.condition)){var s=gn(t,c);s&&i.push(s)}}n=i}return n}return null}function mn(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}function wn(t){var e=[s(),t];switch(t){case 4:var n=O;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),e.push(n.data.scrollTime),e.push(n.data.pointerTime),e.push(n.data.moveX),e.push(n.data.moveY),e.push(n.data.moveTime),e.push(n.data.downX),e.push(n.data.downY),e.push(n.data.downTime),e.push(n.data.upX),e.push(n.data.upY),e.push(n.data.upTime),e.push(n.data.pointerPrevX),e.push(n.data.pointerPrevY),e.push(n.data.pointerPrevTime),qe(e,!1)),N();break;case 25:e.push(C.gap),qe(e);break;case 35:e.push(tn.check),qe(e,!1);break;case 3:e.push(tt.key),qe(e);break;case 2:e.push(Ae.sequence),e.push(Ae.attempts),e.push(Ae.status),qe(e,!1);break;case 24:j.key&&e.push(j.key),e.push(j.value),qe(e);break;case 34:var r=Object.keys(it);if(r.length>0){for(var a=0,i=r;a<i.length;a++){var o=i[a];e.push(o),e.push(it[o])}lt(),qe(e,!1)}break;case 0:var u=Object.keys(H);if(u.length>0){for(var c=0,l=u;c<l.length;c++){var d=l[c],p=parseInt(d,10);e.push(p),e.push(Math.round(H[d]))}H={},qe(e,!1)}break;case 1:var h=Object.keys(On);if(h.length>0){for(var f=0,v=h;f<v.length;f++){var g=v[f];p=parseInt(g,10);e.push(p),e.push(On[g])}In(),qe(e,!1)}break;case 36:var m=Object.keys(G);if(m.length>0){for(var w=0,b=m;w<b.length;w++){var y=b[w];p=parseInt(y,10);e.push(p),e.push([].concat.apply([],G[y]))}Q(),qe(e,!1)}break;case 40:nn.forEach((function(t){e.push(t);var n=[];for(var r in en[t]){var a=parseInt(r,10);n.push(a),n.push(en[t][r])}e.push(n)})),pn(),qe(e,!1)}}function bn(){tn={check:0}}function yn(t){if(0===tn.check){var e=tn.check;e=tr.sequence>=128?1:e,e=tr.pageNum>=128?7:e,e=s()>72e5?2:e,(e=t>10485760?2:e)!==tn.check&&kn(e)}}function kn(t){tn.check=t,5!==t&&(Rn(),Er())}function Tn(){0!==tn.check&&wn(35)}function _n(){tn=null}var xn=null,On=null,En=!1;function Mn(){xn={},On={},En=!1}function Nn(){xn={},On={},En=!1}function Sn(t,e){if(e&&(e="".concat(e),t in xn||(xn[t]=[]),xn[t].indexOf(e)<0)){if(xn[t].length>128)return void(En||(En=!0,kn(5)));xn[t].push(e),t in On||(On[t]=[]),On[t].push(e)}}function Xn(){wn(1)}function In(){On={},En=!1}function Pn(t){Sn(36,t.toString())}var Yn=null,jn=[],An=0,Cn=null;function Dn(){var t,e,n;Cn=null;var r=navigator&&"userAgent"in navigator?navigator.userAgent:"",a=null!==(n=null===(e=null===(t=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===t?void 0:t.resolvedOptions())||void 0===e?void 0:e.timeZone)&&void 0!==n?n:"",i=(new Date).getTimezoneOffset().toString(),u=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";An=r.indexOf("Electron")>0?1:0;var s,l=function(){var t={session:Jn(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=Gn("_clsk",!o.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-Bn(n[1])<18e5&&(t.session=n[0],t.count=Bn(n[2])+1,t.upgrade=Bn(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),p=Zn(),h=o.projectId||d(location.host);Yn={projectId:h,userId:p.id,sessionId:l.session,pageNum:l.count},o.lean=o.track&&null!==l.upgrade?0===l.upgrade:o.lean,o.upload=o.track&&"string"==typeof o.upload&&l.upload&&l.upload.length>"https://".length?l.upload:o.upload,Sn(0,r),Sn(3,c),Sn(1,b(location.href,!!An)),Sn(2,document.referrer),Sn(15,function(){var t=Jn();if(o.track&&Fn(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),Sn(16,document.documentElement.lang),Sn(17,document.dir),Sn(26,"".concat(window.devicePixelRatio)),Sn(28,p.dob.toString()),Sn(29,p.version.toString()),Sn(33,u),Sn(34,a),Sn(35,i),q(0,l.ts),q(1,0),q(35,An),navigator&&(Sn(9,navigator.language),q(33,navigator.hardwareConcurrency),q(32,navigator.maxTouchPoints),q(34,Math.round(navigator.deviceMemory)),(s=navigator.userAgentData)&&s.getHighEntropyValues?s.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;Sn(22,t.platform),Sn(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){Sn(24,t.name+"~"+t.version)})),Sn(25,t.model),q(27,t.mobile?1:0)})):Sn(22,navigator.platform)),screen&&(q(14,Math.round(screen.width)),q(15,Math.round(screen.height)),q(16,Math.round(screen.colorDepth)));for(var f=0,v=o.cookies;f<v.length;f++){var g=v[f],m=Gn(g);m&&ot(g,m)}!function(t){Pn(t?1:0)}(o.track),Vn(p)}function Hn(){Cn=null,Yn=null,jn.forEach((function(t){t.called=!1}))}function Wn(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1);var r=o.lean?0:1,a=!1;Yn&&(r||!1===e)&&(t(Yn,!o.lean),a=!0),!n&&a||jn.push({callback:t,wait:e,recall:n,called:a})}function zn(){return Yn?[Yn.userId,Yn.sessionId,Yn.pageNum].join("."):""}function qn(t){if(void 0===t&&(t=!0),!t)return o.track=!1,Qn("_clsk","",-Number.MAX_VALUE),Qn("_clck","",-Number.MAX_VALUE),Er(),void window.setTimeout(Or,250);kr()&&(o.track=!0,Vn(Zn(),1),Un(),Pn(2))}function Rn(){Qn("_clsk","",0)}function Ln(){!function(t){if(jn.length>0)for(var e=0;e<jn.length;e++){var n=jn[e];!n.callback||n.called||n.wait&&!t||(n.callback(Yn,!o.lean),n.called=!0,n.recall||(jn.splice(e,1),e--))}}(o.lean?0:1)}function Un(){if(Yn&&o.track){var t=Math.round(Date.now()),e=o.upload&&"string"==typeof o.upload?o.upload.replace("https://",""):"",n=o.lean?0:1;Qn("_clsk",[Yn.sessionId,t,Yn.pageNum,n,e].join("|"),1)}}function Fn(t,e){try{return!!t[e]}catch(t){return!1}}function Vn(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5),r=0===t.dob?null===o.dob?0:o.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&Qn("_clck",[Yn.userId,2,n.toString(36),e,r].join("|"),365)}function Jn(){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 Bn(t,e){return void 0===e&&(e=10),parseInt(t,e)}function Zn(){var t={id:Jn(),version:0,expiry:null,consent:0,dob:0},e=Gn("_clck",!o.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=Bn(n[1])),n.length>2&&(t.expiry=Bn(n[2],36)),n.length>3&&1===Bn(n[3])&&(t.consent=1),n.length>4&&Bn(n[1])>1&&(t.dob=Bn(n[4])),o.track=o.track||1===t.consent,t.id=o.track?n[0]:t.id}return t}function Gn(t,e){var n;if(void 0===e&&(e=!1),Fn(document,"cookie")){var r=document.cookie.split(";");if(r)for(var a=0;a<r.length;a++){var i=r[a].split("=");if(i.length>1&&i[0]&&i[0].trim()===t){for(var o=Kn(i[1]),u=o[0],c=o[1];u;)u=(n=Kn(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function Kn(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}function Qn(t,e,n){if((o.track||""==e)&&(navigator&&navigator.cookieEnabled||Fn(document,"cookie"))){var r=function(t){return encodeURIComponent(t)}(e),a=new Date;a.setDate(a.getDate()+n);var i=a?"expires="+a.toUTCString():"",u="".concat(t,"=").concat(r).concat(";").concat(i).concat(";path=/");try{if(null===Cn){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(Cn=".".concat(c[s]).concat(Cn||""),s<c.length-1&&(document.cookie="".concat(u).concat(";").concat("domain=").concat(Cn),Gn(t)===e))return;Cn=""}}catch(t){Cn=""}document.cookie=Cn?"".concat(u).concat(";").concat("domain=").concat(Cn):u}}var $n,tr=null;function er(){var t=Yn;tr={version:l,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0,applicationPlatform:0,url:""}}function nr(){tr=null}function rr(t){return tr.start=tr.start+tr.duration,tr.duration=s()-tr.start,tr.sequence++,tr.upload=t&&"sendBeacon"in navigator?1:0,tr.end=t?1:0,tr.applicationPlatform=0,tr.url=b(location.href,!1,!0),[tr.version,tr.sequence,tr.start,tr.duration,tr.projectId,tr.userId,tr.sessionId,tr.pageNum,tr.upload,tr.end,tr.applicationPlatform,tr.url]}function ar(){$n=[]}function ir(t){if($n&&-1===$n.indexOf(t.message)){var e=o.report;if(e&&e.length>0){var n={v:tr.version,p:tr.projectId,u:tr.userId,s:tr.sessionId,n:tr.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var r=new XMLHttpRequest;r.open("POST",e,!0),r.send(JSON.stringify(n)),$n.push(t.message)}}return t}function or(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw ir(t)}var n=performance.now()-e;z(4,n),n>30&&(W(7),q(6,n),$e(9,0,"".concat(t.dn||t.name,"-").concat(n)))}}var ur=new Map;function cr(t,e,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!0),n=or(n);try{t[u("addEventListener")](e,n,{capture:r,passive:a}),function(t){return ur.has(t)}(t)||ur.set(t,[]),ur.get(t).push({event:e,listener:n,options:{capture:r,passive:a}})}catch(t){}}function sr(){ur.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[u("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),ur.delete(e)}(t,e)})),ur=new Map}var lr=null,dr=null,pr=null,hr=0;function fr(){return!(hr++>20)||($e(4,0),!1)}function vr(){vr.dn=1,hr=0,pr!==mr()&&(Er(),window.setTimeout(gr,250))}function gr(){Or(),q(29,1)}function mr(){return location.href?location.href.replace(location.hash,""):location.href}var wr=!1;function br(){wr=!0,c=performance.now()+performance.timeOrigin,At(),sr(),ar(),pr=mr(),hr=0,cr(window,"popstate",vr),null===lr&&(lr=history.pushState,history.pushState=function(){lr.apply(this,arguments),kr()&&fr()&&vr()}),null===dr&&(dr=history.replaceState,history.replaceState=function(){dr.apply(this,arguments),kr()&&fr()&&vr()})}function yr(){pr=null,hr=0,ar(),sr(),At(),c=0,wr=!1}function kr(){return wr}function Tr(){Tr.dn=2,Or(),A("clarity","restart")}var _r=Object.freeze({__proto__:null,start:function t(){t.dn=3,function(){q(26,navigator.webdriver?1:0);try{q(31,window.top==window.self||window.top==window?1:2)}catch(t){q(31,0)}}(),cr(window,"error",Ze),Be={},Qe={}},stop:function(){Qe={}}}),xr=[_r,Oe,he,Xt];function Or(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===wr&&"undefined"!=typeof Promise&&window.MutationObserver&&document.createTreeWalker&&"now"in Date&&"now"in performance&&"undefined"!=typeof WeakMap&&!t}catch(t){return!1}}()&&(!function(t){if(null===t||wr)return!1;for(var e in t)e in o&&(o[e]=t[e])}(t),br(),yt(),xr.forEach((function(t){return or(t.start)()})),null===t&&Xr())}function Er(){kr()&&(xr.slice().reverse().forEach((function(t){return or(t.stop)()})),kt(),yr(),void 0!==Nr&&(Nr[Sr]=function(){(Nr[Sr].q=Nr[Sr].q||[]).push(arguments),"start"===arguments[0]&&Nr[Sr].q.unshift(Nr[Sr].q.pop())&&Xr()}))}var Mr=Object.freeze({__proto__:null,consent:qn,event:A,hashText:we,identify:ut,metadata:Wn,pause:function(){kr()&&(A("clarity","pause"),null===Yt&&(Yt=new Promise((function(t){jt=t}))))},resume:function(){kr()&&(Yt&&(jt(),Yt=null,null===Pt&&Dt()),A("clarity","resume"))},set:ot,signal:function(t){gt=t},start:Or,stop:Er,upgrade:et,version:l}),Nr=window,Sr="clarity";function Xr(){if(void 0!==Nr){if(Nr[Sr]&&Nr[Sr].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=Nr[Sr]&&Nr[Sr].q||[];for(Nr[Sr]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Mr[t].apply(Mr,e)},Nr[Sr].v=l;t.length>0;)Nr[Sr].apply(Nr,t.shift())}}Xr()}();
|
package/build/clarity.js
CHANGED
|
@@ -189,7 +189,7 @@ function stop$F() {
|
|
|
189
189
|
startTime = 0;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
var version$1 = "0.8.
|
|
192
|
+
var version$1 = "0.8.5-beta";
|
|
193
193
|
|
|
194
194
|
// tslint:disable: no-bitwise
|
|
195
195
|
function hash (input, precision) {
|
|
@@ -1169,20 +1169,23 @@ function stop$x(timer) {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
1171
|
function suspend$1(timer) {
|
|
1172
|
+
var _a;
|
|
1172
1173
|
return __awaiter(this, void 0, void 0, function () {
|
|
1173
|
-
var id,
|
|
1174
|
-
return __generator(this, function (
|
|
1175
|
-
switch (
|
|
1174
|
+
var id, _b;
|
|
1175
|
+
return __generator(this, function (_c) {
|
|
1176
|
+
switch (_c.label) {
|
|
1176
1177
|
case 0:
|
|
1177
1178
|
id = key(timer);
|
|
1178
1179
|
if (!(id in tracker)) return [3 /*break*/, 2];
|
|
1179
1180
|
stop$x(timer);
|
|
1180
|
-
|
|
1181
|
+
// some customer polyfills for requestIdleCallback return null
|
|
1182
|
+
_b = tracker[id];
|
|
1181
1183
|
return [4 /*yield*/, wait()];
|
|
1182
1184
|
case 1:
|
|
1183
|
-
|
|
1185
|
+
// some customer polyfills for requestIdleCallback return null
|
|
1186
|
+
_b.yield = ((_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.timeRemaining()) || 30 /* Setting.LongTask */;
|
|
1184
1187
|
restart$2(timer);
|
|
1185
|
-
|
|
1188
|
+
_c.label = 2;
|
|
1186
1189
|
case 2:
|
|
1187
1190
|
// After we are done with suspending task, ensure that we are still operating in the right context
|
|
1188
1191
|
// If the task is still being tracked, continue running the task, otherwise ask caller to stop execution
|
|
@@ -1340,9 +1343,9 @@ function handler$3(event, root, evt) {
|
|
|
1340
1343
|
hash: null,
|
|
1341
1344
|
trust: evt.isTrusted ? 1 /* BooleanFlag.True */ : 0 /* BooleanFlag.False */,
|
|
1342
1345
|
isFullText: textInfo.isFullText,
|
|
1343
|
-
tag:
|
|
1344
|
-
class:
|
|
1345
|
-
id:
|
|
1346
|
+
tag: getElementAttribute(t, "tagName").substring(0, 10 /* Setting.ClickTag */),
|
|
1347
|
+
class: getElementAttribute(t, "className").substring(0, 50 /* Setting.ClickClass */),
|
|
1348
|
+
id: getElementAttribute(t, "id").substring(0, 25 /* Setting.ClickId */),
|
|
1346
1349
|
}
|
|
1347
1350
|
});
|
|
1348
1351
|
schedule$1(encode$3.bind(this, event));
|
|
@@ -1378,32 +1381,19 @@ function text(element) {
|
|
|
1378
1381
|
return { text: output, isFullText: isFullText ? 1 /* BooleanFlag.True */ : 0 /* BooleanFlag.False */ };
|
|
1379
1382
|
}
|
|
1380
1383
|
function reaction(element) {
|
|
1381
|
-
var tagName =
|
|
1384
|
+
var tagName = getElementAttribute(element, "tagName");
|
|
1382
1385
|
if (UserInputTags.indexOf(tagName) >= 0) {
|
|
1383
1386
|
return 0 /* BooleanFlag.False */;
|
|
1384
1387
|
}
|
|
1385
1388
|
return 1 /* BooleanFlag.True */;
|
|
1386
1389
|
}
|
|
1387
|
-
function
|
|
1388
|
-
var
|
|
1389
|
-
if (element.nodeType === Node.ELEMENT_NODE) {
|
|
1390
|
-
tagName = element.tagName.toLowerCase();
|
|
1391
|
-
}
|
|
1392
|
-
return tagName;
|
|
1393
|
-
}
|
|
1394
|
-
function className(element) {
|
|
1395
|
-
var c = "";
|
|
1396
|
-
if (element.nodeType === Node.ELEMENT_NODE) {
|
|
1397
|
-
c = element.className.toLowerCase();
|
|
1398
|
-
}
|
|
1399
|
-
return c;
|
|
1400
|
-
}
|
|
1401
|
-
function id$1(element) {
|
|
1402
|
-
var i = "";
|
|
1390
|
+
function getElementAttribute(element, attribute) {
|
|
1391
|
+
var _a;
|
|
1403
1392
|
if (element.nodeType === Node.ELEMENT_NODE) {
|
|
1404
|
-
|
|
1393
|
+
var value = (_a = element === null || element === void 0 ? void 0 : element[attribute]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
1394
|
+
return value || "";
|
|
1405
1395
|
}
|
|
1406
|
-
return
|
|
1396
|
+
return "";
|
|
1407
1397
|
}
|
|
1408
1398
|
function layout$1(element) {
|
|
1409
1399
|
var box = null;
|
|
@@ -5115,7 +5105,8 @@ function session() {
|
|
|
5115
5105
|
var output = { session: shortid(), ts: Math.round(Date.now()), count: 1, upgrade: null, upload: "" /* Constant.Empty */ };
|
|
5116
5106
|
var value = getCookie("_clsk" /* Constant.SessionKey */, !config$2.includeSubdomains);
|
|
5117
5107
|
if (value) {
|
|
5118
|
-
|
|
5108
|
+
// Maintaining support for pipe separator for backward compatibility, this can be removed in future releases
|
|
5109
|
+
var parts = value.includes("^" /* Constant.Caret */) ? value.split("^" /* Constant.Caret */) : value.split("|" /* Constant.Pipe */);
|
|
5119
5110
|
// Making it backward & forward compatible by using greater than comparison (v0.6.21)
|
|
5120
5111
|
// In future version, we can reduce the parts length to be 5 where the last part contains the full upload URL
|
|
5121
5112
|
if (parts.length >= 5 && output.ts - num(parts[1]) < 1800000 /* Setting.SessionTimeout */) {
|
|
@@ -5136,24 +5127,8 @@ function user() {
|
|
|
5136
5127
|
var cookie = getCookie("_clck" /* Constant.CookieKey */, !config$2.includeSubdomains);
|
|
5137
5128
|
if (cookie && cookie.length > 0) {
|
|
5138
5129
|
// Splitting and looking up first part for forward compatibility, in case we wish to store additional information in a cookie
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
// Count number of times Clarity's user cookie crumb appears in document.cookie (could be on different sub-domains e.g. www.domain.com and .domain.com)
|
|
5142
|
-
var count = 0;
|
|
5143
|
-
for (var _i = 0, _a = document.cookie.split(";" /* Constant.Semicolon */); _i < _a.length; _i++) {
|
|
5144
|
-
var c = _a[_i];
|
|
5145
|
-
count += c.split("=" /* Constant.Equals */)[0].trim() === "_clck" /* Constant.CookieKey */ ? 1 : 0;
|
|
5146
|
-
}
|
|
5147
|
-
// Check if we either got version-less cookie value or saw multiple copies of the user cookie crumbs
|
|
5148
|
-
// In both these cases, we go ahead and delete the existing cookie set on current domain
|
|
5149
|
-
if (parts.length === 1 || count > 1) {
|
|
5150
|
-
var deleted = "".concat(";" /* Constant.Semicolon */).concat("expires=" /* Constant.Expires */).concat((new Date(0)).toUTCString()).concat(";path=/" /* Constant.Path */);
|
|
5151
|
-
// First, delete current user cookie which might be set on current sub-domain vs. root domain
|
|
5152
|
-
document.cookie = "".concat("_clck" /* Constant.CookieKey */, "=").concat(deleted);
|
|
5153
|
-
// Second, same thing for current session cookie so it can be re-written later with the root domain
|
|
5154
|
-
document.cookie = "".concat("_clsk" /* Constant.SessionKey */, "=").concat(deleted);
|
|
5155
|
-
}
|
|
5156
|
-
// End code for backward compatibility
|
|
5130
|
+
// Maintaining support for pipe separator for backward compatibility, this can be removed in future releases
|
|
5131
|
+
var parts = cookie.includes("^" /* Constant.Caret */) ? cookie.split("^" /* Constant.Caret */) : cookie.split("|" /* Constant.Pipe */);
|
|
5157
5132
|
// Read version information and timestamp from cookie, if available
|
|
5158
5133
|
if (parts.length > 1) {
|
|
5159
5134
|
output.version = num(parts[1]);
|