UNPKG

clarity-js

Version:

An analytics library that uses web page interactions to generate aggregated insights

2 lines (1 loc) 40.5 kB
!function(){"use strict";var t,e,n,a,i,o,r,u,s,c,l,d,f,h,p,g,v,m,w,y,b,k,S,T,_,x,E,M,N,I,O,P,X,C,Y,D,A,j,H,W,q,L,R,U,F,V,J,z,B,Z,G,K,Q,$,tt,et,nt,at,it,ot,rt,ut,st,ct,lt,dt,ft,ht,pt,gt,vt,mt,wt,yt,bt,kt,St,Tt,_t,xt,Et,Mt,Nt,It,Ot,Pt,Xt,Ct,Yt,Dt,At,jt,Ht,Wt,qt,Lt,Rt,Ut,Ft,Vt,Jt={projectId:null,delay:1e3,lean:!1,lite:!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,modules:[],diagnostics:!1};function zt(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}function Bt(){return performance.now()+performance.timeOrigin}function Zt(e){var n,a,i;return void 0===e&&(e=null),n=0===t?Bt():t,a=e&&e.timeStamp>0?e.timeStamp:performance.now(),i=e&&e.view?e.view.performance.timeOrigin:performance.timeOrigin,Math.max(Math.round(a+i-n),0)}function Gt(t,e){var n,a,i,o;for(void 0===e&&(e=null),i=a=5381,o=0;o<t.length;o+=2)a=(a<<5)+a^t.charCodeAt(o),o+1<t.length&&(i=(i<<5)+i^t.charCodeAt(o+1));return n=Math.abs(a+11579*i),(e?n%Math.pow(2,e):n).toString(36)}function Kt(t,e,n,a,o){if(void 0===a&&(a=!1),t){if("input"==e&&("checkbox"===o||"radio"===o))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,n,a,o=-1,r=0,s=!1,c=!1,l=!1,d=null;for(ae(),e=0;e<t.length;e++)n=t.charCodeAt(e),s=s||n>=48&&n<=57,c=c||64===n,l=9===n||10===n||13===n||32===n,(0===e||e===t.length-1||l)&&((s||c)&&(null===d&&(d=t.split("")),a=t.substring(o+1,l?e:e+1),a=i&&null!==u?a.match(u)?a:ee(a,"▪","▫"):te(a),d.splice(o+1-r,a.length,a),r+=a.length-1),l&&(s=!1,c=!1,o=e));return d?d.join(""):t}(t);case"input":case"change":return ne(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return a?$t(t):te(t);case"src":case"srcset":case"title":case"alt":case"href":case"xlink:href":return 3===n?(null==t?void 0:t.startsWith("blob:"))?"blob:":"":t;case"value":case"click":case"input":case"change":return ne(t);case"placeholder":return te(t)}break;case 4:switch(e){case"*T":case"data-":return a?$t(t):te(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 ee(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 Qt(t,e,n){var i,o,r;return void 0===e&&(e=!1),void 0===n&&(n=!1),i=t,e?i="https://Electron":(o=Jt.drop)&&o.length>0&&t&&t.indexOf("?")>0&&(i=(r=t.split("?"))[0]+"?"+r[1].split("&").map((function(t){return o.some((function(e){return 0===t.indexOf(e+"=")}))?t.split("=")[0]+"=*na*":t})).join("&")),n&&(i=i.substring(0,a)),i}function $t(t){var e,n,a,i,o=t.trim();return o.length>0?(e=o[0],n=t.indexOf(e),a=t.substr(0,n),i=t.substr(n+o.length),a+o.length.toString(36)+i):t}function te(t){return t.replace(n,"•")}function ee(t,e,n){return ae(),t?t.replace(r,e).replace(o,n):t}function ne(t){var e,n=5*(Math.floor(t.length/5)+1),a="";for(e=0;e<n;e++)a+=e>0&&e%5==0?" ":"•";return a}function ae(){if(i&&null===o)try{o=new RegExp("\\p{N}","gu"),r=new RegExp("\\p{L}","gu"),u=new RegExp("\\p{Sc}","gu")}catch(t){i=!1}}function ie(){l&&(s={time:Zt(),event:4,data:Object.assign({},c)}),c=c||{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,modules:null}}function oe(t,e,n,a){switch(t){case 8:c.docWidth=e,c.docHeight=n;break;case 11:c.screenWidth=e,c.screenHeight=n;break;case 10:c.scrollX=e,c.scrollY=n,c.scrollTime=a;break;case 12:c.moveX=e,c.moveY=n,c.moveTime=a,re(e,n,a);break;case 13:c.downX=e,c.downY=n,c.downTime=a,re(e,n,a);break;case 14:c.upX=e,c.upY=n,c.upTime=a,re(e,n,a);break;default:re(e,n,a)}l=!0}function re(t,e,n){c.pointerPrevX=c.pointerX,c.pointerPrevY=c.pointerY,c.pointerPrevTime=c.pointerTime,c.pointerX=t,c.pointerY=e,c.pointerTime=n}function ue(t,e){ia()&&t&&"string"==typeof t&&t.length<255&&(d=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},On(24))}function se(t){t in f||(f[t]=0),t in h||(h[t]=0)}function ce(t){se(t),f[t]++,h[t]++}function le(t,e){null!==e&&(se(t),f[t]+=e,h[t]+=e)}function de(t,e){null!==e&&!1===isNaN(e)&&(t in f||(f[t]=0),(e>f[t]||0===f[t])&&(h[t]=e,f[t]=e))}function fe(t,e,n){return window.setTimeout(Kn(t),e,n)}function he(t){return window.clearTimeout(t)}function pe(){var t=Zt();p={gap:t-g},On(25),p.gap<3e5?m=fe(pe,v):Lt&&(ue("clarity","suspend"),ua(),["mousemove","touchstart"].forEach((function(t){return Qn(document,t,oa)})),["resize","scroll","pageshow"].forEach((function(t){return Qn(window,t,oa)})))}function ge(t,e,n,a){return new(n||(n=Promise))((function(i,o){function r(t){try{s(a.next(t))}catch(t){o(t)}}function u(t){try{s(a.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(r,u)}s((a=a.apply(t,e||[])).next())}))}function ve(t,e){var n,a,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[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(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(r=0)),r;)try{if(n=1,a&&(i=2&u[0]?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(!((i=(i=r.trys).length>0&&i[i.length-1])||6!==u[0]&&2!==u[0])){r=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(6===u[0]&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(t){u=[6,t],a=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function me(t){return ge(this,void 0,void 0,(function(){var e,n;return ve(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),y?(e=new ReadableStream({start:function(e){return ge(this,void 0,void 0,(function(){return ve(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,new Response(e).arrayBuffer()]):[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 we(t,e){ye(t,"string"==typeof e?[e]:e)}function ye(t,e){var n,a;if(ia()&&t&&e&&"string"==typeof t&&t.length<255){n=t in b?b[t]:[];for(a=0;a<e.length;a++)"string"==typeof e[a]&&e[a].length<255&&n.push(e[a]);b[t]=n}}function be(){b={}}function ke(t){return ge(this,void 0,void 0,(function(){var e;return ve(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 Se(t){return t&&t.indexOf("@")>0?"email":"string"}function Te(t){var e=t.error||t;return e.message in k||(k[e.message]=0),k[e.message]++>=5||e&&e.message&&(S={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},_e(31)),!0}function _e(t){return ge(this,void 0,void 0,(function(){var e;return ve(this,(function(n){switch(e=[Zt(),t],t){case 31:e.push(S.message,S.line,S.column,S.stack,Qt(S.source)),hn(e);break;case 33:_&&(e.push(_.code,_.name,_.message,_.stack,_.severity),hn(e,!1))}return[2]}))}))}function xe(t,e,n,a,i){void 0===n&&(n=null),void 0===a&&(a=null),void 0===i&&(i=null);var o=n?n+"|"+a:"";t in T&&T[t].includes(o)||(_={code:t,name:n,message:a,stack:i,severity:e},t in T?T[t].push(o):T[t]=[o],_e(33))}function Ee(t){var e,n,a,i,o,r,u,s,c,l,d;try{for(r in n=(e=t&&t.length>0?t.split(/ (.*)/):[""])[0].split(/\|(.*)/),a=parseInt(n[0]),i=n.length>1?n[1]:"",o=e.length>1?JSON.parse(e[1]):{},M[a]={},N[a]={},I[a]={},O[a]=i,o)switch(u=parseInt(r),s=o[r],c=2,s.startsWith("~")?c=0:s.startsWith("!")&&(c=4),c){case 0:l=s.slice(1),M[a][u]=Oe(l);break;case 2:N[a][u]=s;break;case 4:d=s.slice(1),I[a][u]=d}}catch(t){xe(8,1,t?t.name:null)}}function Me(t){return JSON.parse(JSON.stringify(t))}function Ne(){E.clear()}function Ie(t,e,n){var a,i=!1;t in x||(x[t]={},i=!0),a=I[t],0==Object.keys(a).length||e in x[t]&&x[t][e]==n||(i=!0),x[t][e]=n,i&&E.add(t)}function Oe(t){for(var e,n,a,i,o=[],r=t.split(".");r.length>0;)n=(e=r.shift()).indexOf("["),a=e.indexOf("{"),i=e.indexOf("}"),o.push({name:n>0?e.slice(0,n):a>0?e.slice(0,a):e,type:n>0?1:a>0?2:3,condition:a>0?e.slice(a+1,i):null});return o}function Pe(t,e){var n,a,i,o,r,u,s,c;if(void 0===e&&(e=window),0==t.length)return e;if(n=t.shift(),e&&e[n.name]){if(i=e[n.name],1!==n.type&&Xe(i,n.condition))a=Pe(t,i);else if(Array.isArray(i)){for(o=[],r=0,u=i;r<u.length;r++)Xe(s=u[r],n.condition)&&(c=Pe(t,s))&&o.push(c);a=o}return a}return null}function Xe(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}function Ce(t,e){try{return!!t[e]}catch(t){return!1}}function Ye(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}function De(t,e){var n,a,i,o,r,u,s;if(void 0===e&&(e=!1),Ce(document,"cookie")&&(a=document.cookie.split(";")))for(i=0;i<a.length;i++)if((o=a[i].split("=")).length>1&&o[0]&&o[0].trim()===t){for(u=(r=Ye(o[1]))[0],s=r[1];u;)u=(n=Ye(s))[0],s=n[1];return e?s.endsWith("~1")?s.substring(0,s.length-2):null:s}return null}function Ae(t,e,n){var a,i,o,r,u;if((Jt.track||""==e)&&(navigator&&navigator.cookieEnabled||Ce(document,"cookie"))){a=function(t){return encodeURIComponent(t)}(e),(i=new Date).setDate(i.getDate()+n),o=t+"="+a+";"+(i?"expires="+i.toUTCString():"")+";path=/";try{if(null===P){for(u=(r=location.hostname?location.hostname.split("."):[]).length-1;u>=0;u--)if(P="."+r[u]+(P||""),u<r.length-1&&(document.cookie=o+";domain="+P,De(t)===e))return;P=""}}catch(t){P=""}document.cookie=P?o+";domain="+P:o}}function je(t){try{C&&JSON.parse(t).forEach((function(t){return C(t)}))}catch(t){}}function He(){j=[],H=null,W=null}function We(t,e){return void 0===e&&(e=0),ge(this,void 0,void 0,(function(){var n,a,i;return ve(this,(function(o){for(n=0,a=j;n<a.length;n++)if(a[n].task===t)return[2];return i=new Promise((function(n){j[1===e?"unshift":"push"]({task:t,resolve:n,id:Hn()})})),null===H&&null===W&&qe(),[2,i]}))}))}function qe(){var t=j.shift();t&&(H=t,t.task().then((function(){t.id===Hn()&&(t.resolve(),H=null,qe())})).catch((function(e){t.id===Hn()&&(e&&xe(0,1,e.name,e.message,e.stack),H=null,qe())})))}function Le(t,e,n){var a,i,o,r,u,s,c=document.documentElement,l="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+c.scrollLeft):null,d="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+c.scrollTop):null,f=Tn(n),h=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}(f),p=Ue(f);0===n.detail&&p&&(l=Math.round(p.x+p.w/2),d=Math.round(p.y+p.h/2)),a=function(t,e,n,a){if(!a)return{eX:0,eY:0};for(var i=a,o=t,r=Math.max(Math.floor((e-i.x)/i.w*32767),0),u=Math.max(Math.floor((n-i.y)/i.h*32767),0),s=0;(r>32767||u>32767)&&o.parentElement&&s<10;)s++,(i=Ue(o=o.parentElement))&&(r=Math.max(Math.floor((e-i.x)/i.w*32767),0),u=Math.max(Math.floor((n-i.y)/i.h*32767),0));return{eX:r,eY:u}}(f,l,d,p),i=a.eX,o=a.eY,null!==l&&null!==d&&(r=function(t){var e,n,a=null,i=!1;return t&&(e=t.textContent||String(t.value||"")||t.alt)&&(i=(a=(n=e.replace(/\s+/g," ").trim()).substring(0,25)).length===n.length),{text:a,isFullText:i?1:0}}(f),U.push({time:Zt(n),event:t,data:{target:f,x:l,y:d,eX:i,eY:o,button:n.button,reaction:(u=f,s=Re(u,"tagName"),L.includes(s)?0:1),context:Fe(h),text:r.text,link:h?h.href:null,hash:null,trust:n.isTrusted?1:0,isFullText:r.isFullText,w:p?p.w:0,h:p?p.h:0,tag:Re(f,"tagName").substring(0,10),class:Re(f,"className").substring(0,50),id:Re(f,"id").substring(0,25),source:Jt.diagnostics&&!n.isTrusted?Ve():0}}),We(cn.bind(this,t)))}function Re(t,e){var n;return t.nodeType===Node.ELEMENT_NODE&&"string"==typeof(n=null==t?void 0:t[e])?null==n?void 0:n.toLowerCase():""}function Ue(t){var e,n,a,i=null,o=t.ownerDocument||document,r=o.documentElement,u=o.defaultView||window;return"function"==typeof t.getBoundingClientRect&&(e=t.getBoundingClientRect())&&e.width>0&&e.height>0&&(n="pageXOffset"in u?u.pageXOffset:r.scrollLeft,a="pageYOffset"in u?u.pageYOffset:r.scrollTop,i={x:Math.floor(e.left+n),y:Math.floor(e.top+a),w:Math.floor(e.width),h:Math.floor(e.height)}),i}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 Ve(){var t,e,n,a,i,o;Ve.dn=1;try{for(t=(new Error).stack||"",e=location.origin,n=4,a=0,i=t.split("\n");a<i.length;a++)(o=i[a]).includes("://")?n=!o.includes("extension")&&o.includes(e)?1:2:(o.includes("eval")||o.includes("Function")||o.includes("<a")||R.test(o))&&(n=3);return n}catch(t){return 4}}function Je(){U=[]}function ze(t,e){var n=0,a=null,i=null;function o(){var o,r,u,s=this,c=[];for(o=0;o<arguments.length;o++)c[o]=arguments[o];if(u=(r=performance.now())-n,0!==n&&u<e){if(i=c,a)return;a=setTimeout((function(){n=performance.now(),t.apply(s,i),i=null,a=null}),e-u)}else n=r,t.apply(this,c)}return o.cleanup=function(){a&&(clearTimeout(a),a=null,i=null)},o}function Be(){var t=document.documentElement;F={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},J?(he(V),V=fe(Ze,500,11)):(cn(11),J=!0)}function Ze(t){We(cn.bind(this,t))}function Ge(){F=null,he(V),z.cleanup()}function Ke(t){var e,n,a,i,o,r,u,s,c,l,d,f,h,p,g,v;void 0===t&&(t=null),e=window,n=document.documentElement,(a=t?Tn(t):n)&&(a&&a.nodeType===Node.DOCUMENT_NODE&&(a=n=a.documentElement),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),r=window.innerWidth,l=(u=window.innerHeight)-(c=r>u?.15*u:.2*u),d=Qe(s=r/3,c),f=Qe(s,l),h=t&&t.isTrusted?1:0,p={time:Zt(t),event:10,data:{target:a,x:i,y:o,top:d,bottom:f,trust:h}},null===t&&0===i&&0===o||null===i||null===o||((v=(g=B.length)>1?B[g-2]:null)&&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<50}(v,p)&&B.pop(),B.push(p),he(Z),Z=fe($e,500,10)))}function Qe(t,e){var n,a,i;return"caretPositionFromPoint"in document?i=null===(n=document.caretPositionFromPoint(t,e))||void 0===n?void 0:n.offsetNode:"caretRangeFromPoint"in document&&(i=null===(a=document.caretRangeFromPoint(t,e))||void 0===a?void 0:a.startContainer),i||(i=document.elementFromPoint(t,e)),i&&i.nodeType===Node.TEXT_NODE&&(i=i.parentNode),i}function $e(t){We(cn.bind(this,t))}function tn(t){K.push({time:Zt(t),event:39,data:{target:Tn(t)}}),We(cn.bind(this,39))}function en(){K=[]}function nn(t){Q={name:t.type,persisted:t.persisted?1:0},cn(26,Zt(t)),ua()}function an(){Q=null}function on(t){if(void 0===t&&(t=null),"visibilityState"in document){var e="visible"===document.visibilityState?1:0;$={visible:e},cn(28,Zt(t))}}function rn(){$=null}function un(){tt=null}function sn(t){tt={focused:t},cn(50)}function cn(t,e){return void 0===e&&(e=null),ge(this,void 0,void 0,(function(){var n,a,i,o,r,u,s,d,f,h,p,g,v,m,w,y,b,k,S,T,_,x,E,M,N,I,O,P,X,C,Y,j,H,W,q,L;return ve(this,(function(R){switch(n=e||Zt(),a=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(i=0,o=D;i<o.length;i++)W=o[i],(r=_n(W.data.target,W.event)).id>0&&((a=[W.time,W.event]).push(r.id),a.push(W.data.x),a.push(W.data.y),void 0!==W.data.id&&(a.push(W.data.id),void 0!==W.data.isPrimary&&a.push(""+W.data.isPrimary)),hn(a),(void 0===W.data.isPrimary||W.data.isPrimary)&&oe(W.event,W.data.x,W.data.y,W.time));break;case 9:case 48:for(u=0,s=U;u<s.length;u++)W=s[u],d=_n(W.data.target,W.event,W.data.text),a=[W.time,W.event],f=d.hash?d.hash.join("."):"",a.push(d.id,W.data.x,W.data.y,W.data.eX,W.data.eY,W.data.button,W.data.reaction,W.data.context,Kt(W.data.text,"click",d.privacy),Qt(W.data.link),f,W.data.trust,W.data.isFullText,W.data.w,W.data.h,W.data.tag,W.data.class,W.data.id,W.data.source),hn(a),dn(W.time,W.event,f,W.data.x,W.data.y,W.data.reaction,W.data.context);Je();break;case 38:for(h=0,p=D;h<p.length;h++)W=p[h],a=[W.time,W.event],(Y=_n(W.data.target,W.event)).id>0&&(a.push(Y.id),a.push(W.data.action),hn(a));break;case 11:g=F,a.push(g.width,g.height),oe(t,g.width,g.height),Ge(),hn(a);break;case 26:v=Q,a.push(v.name,v.persisted),an(),hn(a);break;case 27:for(m=0,w=D;m<w.length;m++)W=w[m],y=_n(W.data.target,W.event,W.data.value),(a=[W.time,W.event]).push(y.id),a.push(Kt(W.data.value,"input",y.privacy,!1,W.data.type)),a.push(W.data.trust),hn(a);break;case 21:(b=A)&&(k=_n(b.start),S=_n(b.end),a.push(k.id,b.startOffset,S.id,b.endOffset),hn(a));break;case 10:for(T=0,_=B;T<_.length;T++)W=_[T],x=_n(W.data.target,W.event),E=_n(W.data.top,W.event),M=_n(W.data.bottom,W.event),N=(null==E?void 0:E.hash)?E.hash.join("."):"",I=(null==M?void 0:M.hash)?M.hash.join("."):"",x.id>0&&((a=[W.time,W.event]).push(x.id,W.data.x,W.data.y,N,I,W.data.trust),hn(a),oe(W.event,W.data.x,W.data.y,W.time));B=[];break;case 42:for(O=0,P=D;O<P.length;O++)W=P[O],a=[W.time,W.event],(Y=_n(W.data.target,W.event)).id>0&&((a=[W.time,W.event]).push(Y.id),a.push(W.data.type),a.push(Kt(W.data.value,"change",Y.privacy)),a.push(Kt(W.data.checksum,"checksum",Y.privacy)),hn(a));break;case 39:for(X=0,C=K;X<C.length;X++)W=C[X],a=[W.time,W.event],(Y=_n(W.data.target,W.event)).id>0&&(a.push(Y.id),hn(a));en();break;case 22:for(j=0,H=nt;j<H.length;j++)W=H[j],(a=[W.time,W.event]).push(W.data.type,W.data.hash,W.data.x,W.data.y,W.data.reaction,W.data.context),hn(a,!1);ln();break;case 28:q=$,a.push(q.visible),hn(a),function(t,e){c.visible=e,c.visible||function(t){c.activityTime=t}(t),l=!0}(n,q.visible),rn();break;case 50:L=tt,a.push(L.focused),hn(a,!1),un()}return[2]}))}))}function ln(){nt=[]}function dn(t,e,n,a,i,o,r){void 0===o&&(o=1),void 0===r&&(r=0),et.push({time:t,event:22,data:{type:e,hash:n,x:a,y:i,reaction:o,context:r}}),oe(e,a,i,t)}function fn(t){var e,n;it&&((n=(e=t?t.split(" "):[""]).length>1?parseInt(e[1],10):null)&&ot.has(n)||function(t,e){try{var n=document.createElement("script");n.src=t,n.async=!0,n.onload=function(){e&&(ot.add(e),function(t){c.modules=Array.from(t),l=!0}(ot))},n.onerror=function(){Gn(new Error("MODULE: "+t))},document.head.appendChild(n)}catch(t){}}(e[0],n))}function hn(t,e){var n,a,i,o;if(void 0===e&&(e=!0),ft){switch(n=Zt(),a=t.length>1?t[1]:null,i=JSON.stringify(t),Jt.lean?!pt&&ut+i.length>10485760&&(xe(10,0),pt=!0):pt=!1,a){case 5:if(pt)break;rt+=i.length;case 37:case 6:case 43:case 45:case 46:case 44:case 51:if(pt)break;ut+=i.length,st.push(i);break;default:ct.push(i)}ce(25),o=function(){var t=!1===Jt.lean&&rt>0?100:Yt.sequence*Jt.delay;return"string"==typeof Jt.upload?Math.max(Math.min(t,3e4),100):Jt.delay}(),n-ht>2*o&&(he(lt),lt=null),e&&null===lt&&(25!==a&&(m&&he(m),m=fe(pe,v),g=Zt()),lt=fe(pn,o),ht=n,function(t){if(0===St.check){var e=St.check;e=Yt.sequence>=128?1:e,e=Yt.pageNum>=128?7:e,e=Zt()>72e5?2:e,(e=t>10485760?2:e)!==St.check&&Pn(e)}}(ut))}}function pn(t){return void 0===t&&(t=!1),ge(this,void 0,void 0,(function(){var e,n,a,i,o,r,u,s,c,d;return ve(this,(function(f){switch(f.label){case 0:return ft?(lt=null,(e=!1===Jt.lean&&ut>0&&(ut<1048576||Yt.sequence>0))&&de(1,1),function(){var t,e,n,a,i,o;if(Yt){for(t=[],nt=[],e=(Yt.start||0)+(Yt.duration||0),n=Math.max(e-2e3,0),a=0,i=et;a<i.length;a++)(o=i[a]).time>=n&&(o.time<=e&&nt.push(o),t.push(o));et=t,cn(22)}}(),function(){var t,e;On(34),l&&On(4),On(1),On(0),On(36),0!==St.check&&On(35),function(){var t,e,n,a,i,o,r,u,s,c,l,d,f,h,p,g,v;try{for(t in M)if(e=parseInt(t),""==O[e]||document.querySelector(O[e])){for(a in n=M[e])(o=(v=Pe(Me(n[i=parseInt(a)])))?JSON.stringify(v).slice(0,1e4):v)&&Ie(e,i,o);for(u in r=N[e])s=!1,(l=r[c=parseInt(u)]).startsWith("@")&&(s=!0,l=l.slice(1)),(d=document.querySelectorAll(l))&&(f=Array.from(d).map((function(t){if("IMG"===t.tagName){var e=t;return e.src||e.currentSrc||""}return t.textContent})).join("<SEP>"),Ie(e,c,(s?Gt(f).trim():f).slice(0,1e4)));for(p in h=I[e])Ie(e,g=parseInt(p),(void h[g]).trim().slice(0,1e4))}E.size>0&&On(40)}catch(t){xe(5,1,t?t.name:null)}}(),Mt&&(On(47),Mt=!1,Jt.track||(null==(e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics)?void 0:e.usedUpdate)&&Cn())}(),n=!0===t,Yt?(a=JSON.stringify(function(t){return Yt.start=Yt.start+Yt.duration,Yt.duration=Zt()-Yt.start,Yt.sequence++,Yt.upload=t&&"sendBeacon"in navigator?1:0,Yt.end=t?1:0,Yt.applicationPlatform=0,Yt.url=Qt(location.href,!1,!0),[Yt.version,Yt.sequence,Yt.start,Yt.duration,Yt.projectId,Yt.userId,Yt.sessionId,Yt.pageNum,Yt.upload,Yt.end,Yt.applicationPlatform,Yt.url]}(n)),i=ct,ct=[],e&&(o=st,st=[],ut=0,rt=0,pt=!1),r="["+i.join()+"]",u=e?"["+o.join()+"]":"",n&&u.length>0&&a.length+r.length+u.length>65536&&(u=""),s=(h={e:a,a:r,p:u}).p.length>0?'{"e":'+h.e+',"a":'+h.a+',"p":'+h.p+"}":'{"e":'+h.e+',"a":'+h.a+"}",n?(d=null,[3,3]):[3,1]):[2]):[2];case 1:return[4,me(s)];case 2:d=f.sent(),f.label=3;case 3:return le(2,(c=d)?c.length:s.length),gn(s,c,Yt.sequence,n),[2]}var h}))}))}function gn(t,e,n,a){var i,o,r;if(void 0===a&&(a=!1),"string"==typeof Jt.upload){if(i=Jt.upload,o=!1,a&&navigator&&navigator.sendBeacon)try{(o=navigator.sendBeacon.bind(navigator)(i,t))&&mn(n)}catch(t){}!1===o&&(n in dt?dt[n].attempts++:dt[n]={data:t,attempts:1},(r=new XMLHttpRequest).open("POST",i,!0),r.timeout=15e3,r.ontimeout=function(){Gn(new Error("Timeout : "+i))},null!==n&&(r.onreadystatechange=function(){Kn(vn)(r,n)}),r.withCredentials=!0,e?(r.setRequestHeader("Accept","application/x-clarity-gzip"),r.send(e)):r.send(t))}else Jt.upload&&((0,Jt.upload)(t),mn(n))}function vn(t,e){var n=dt[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Pn(6):(0===t.status&&(Jt.upload=Jt.fallback?Jt.fallback:Jt.upload),gt={sequence:e,attempts:n.attempts,status:t.status},On(2),gn(n.data,null,e)):(gt={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&On(2),200===t.status&&t.responseText&&function(t){var e,n,a,i;for(e=0,n=t&&t.length>0?t.split("\n"):[];e<n.length;e++)switch((i=(a=n[e])&&a.length>0?a.split(/ (.*)/):[""])[0]){case"END":Pn(6);break;case"UPGRADE":In("Auto");break;case"ACTION":Jt.action&&i.length>1&&Jt.action(i[1]);break;case"EXTRACT":i.length>1&&Ee(i[1]);break;case"SIGNAL":i.length>1&&je(i[1]);break;case"MODULE":i.length>1&&fn(i[1]);break;case"SNAPSHOT":Jt.lean=!1,wt=[],function(t){for(var e,n,a,i,o,r,u,s,c=[document];c.length>0;){for(e=null,n=null,a=null,o=(i=c.shift()).firstChild,r=i.parentElement?i.parentElement:i.parentNode?i.parentNode:null;o;)c.push(o),o=o.nextSibling;switch(i.nodeType){case Node.DOCUMENT_TYPE_NODE:n="*D",e={name:(u=i).name,publicId:u.publicId,systemId:u.systemId};break;case Node.TEXT_NODE:a=i.nodeValue,n=bt.get(r)?"*T":n;break;case Node.ELEMENT_NODE:e=En(s=i),n=["NOSCRIPT","SCRIPT","STYLE"].includes(s.tagName)?n:s.tagName}Nn(i,r,{tag:n,attributes:e,value:a})}}(),wn(43)}}(t.responseText),0===t.status&&(gn(n.data,null,e,!0),Pn(3)),t.status>=200&&t.status<=208&&mn(e),delete dt[e]))}function mn(t){1===t&&(Fn(),Un())}function wn(t){return ge(this,void 0,void 0,(function(){var e,n,a,i,o,r,u,s,c,l,d,f,h;return ve(this,(function(p){switch(e=Zt(),n=[e,t],t){case 8:a=vt,n.push(a.width),n.push(a.height),oe(t,a.width,a.height),hn(n);break;case 43:if((i=wt).length>0){for(o=0,r=i;o<r.length;o++)for(u=r[o],s=u.metadata.privacy,c=u.data,l=0,d=["tag","attributes","value"];l<d.length;l++)if(c[f=d[l]])switch(f){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(c[f]);break;case"attributes":for(h in c[f])void 0!==c[f][h]&&n.push(yn(h,c[f][h],s,c.tag));break;case"value":n.push(Kt(c[f],c.tag,s))}hn(function(t){var e,n,a,i=[],o={},r=0,u=null;for(e=0;e<t.length;e++)"string"==typeof t[e]?(a=o[n=t[e]]||-1)>=0?u?u.push(a):(u=[a],i.push(u),r++):(u=null,i.push(n),o[n]=r++):(u=null,i.push(t[e]),r++);return i}(n),!0)}}return[2]}))}))}function yn(t,e,n,a){return"href"===t&&"LINK"===a?t+"="+e:t+"="+Kt(e,0===t.indexOf("data-")?"data-":t,n)}function bn(){vt=null}function kn(t){t&&t.persisted&&(ra(),xe(11,0))}function Sn(){var t,e,n,a,i,o,r,u,s,c,l,d,f,h,p,g,v;xn(),bn(),e=document.body,n=document.documentElement,a=e?e.clientWidth:null,i=e?e.scrollWidth:null,o=e?e.offsetWidth:null,r=n?n.clientWidth:null,u=n?n.scrollWidth:null,s=n?n.offsetWidth:null,c=Math.max(a,i,o,r,u,s),l=e?e.clientHeight:null,d=e?e.scrollHeight:null,f=e?e.offsetHeight:null,h=n?n.clientHeight:null,p=n?n.scrollHeight:null,g=n?n.offsetHeight:null,v=Math.max(l,d,f,h,p,g),null!==vt&&c===vt.width&&v===vt.height||null===c||null===v||(vt={width:c,height:v},wn(8)),Mn(document.documentElement),function(t){Qn(t===document?window:t,"scroll",G,!0)}(t=document),t.nodeType===Node.DOCUMENT_NODE&&(function(t){Qn(t,"click",Le.bind(this,9,t),!0),Qn(t,"contextmenu",Le.bind(this,48,t),!0)}(t),function(t){Qn(t,"submit",tn,!0)}(t))}function Tn(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 _n(t){var e={id:0,hash:null,privacy:Jt.conversions?1:5};return t&&(e.id=bt.has(t)?bt.get(t):Mn(t)),e}function xn(){bt=new WeakMap}function En(t){var e,n={},a=t.attributes;if(a&&a.length>0)for(e=0;e<a.length;e++)n[a[e].name]=a[e].value;return n}function Mn(t){return null===t?null:bt.has(t)?bt.get(t):(bt.set(t,yt),yt++)}function Nn(t,e,n){var a,i,o,r;t&&n&&n.tag&&(a=Mn(t),i=e?bt.get(e):null,o=t.previousSibling?bt.get(t.previousSibling):null,r={active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null},wt.push({id:a,parent:i,previous:o,children:[],data:n,selector:null,hash:null,region:null,metadata:r}))}function In(t){ia()&&Jt.lean&&(Jt.lean=!1,kt={key:t},Un(),Fn(),Jt.upgrade&&Jt.upgrade(t),On(3),Jt.lite&&Sn())}function On(t){var e,n,a,i,o,r,u,c,l,f,g,v,m,y,k,S,T,_,M=[Zt(),t];switch(t){case 4:(e=s)&&e.data&&(n=e.data,(M=[e.time,e.event]).push(n.visible,n.docWidth,n.docHeight,n.screenWidth,n.screenHeight,n.scrollX,n.scrollY,n.pointerX,n.pointerY,n.activityTime,n.scrollTime,n.pointerTime,n.moveX,n.moveY,n.moveTime,n.downX,n.downY,n.downTime,n.upX,n.upY,n.upTime,n.pointerPrevX,n.pointerPrevY,n.pointerPrevTime,n.modules),hn(M,!1)),ie();break;case 25:M.push(p.gap),hn(M);break;case 35:M.push(St.check),hn(M,!1);break;case 3:M.push(kt.key),hn(M);break;case 2:M.push(gt.sequence,gt.attempts,gt.status),hn(M,!1);break;case 24:d.key&&M.push(d.key),M.push(d.value),hn(M);break;case 34:if((a=Object.keys(b)).length>0){for(i=0,o=a;i<o.length;i++)r=o[i],M.push(r),M.push(b[r]);be(),hn(M,!1)}break;case 0:if((u=Object.keys(h)).length>0){for(c=0,l=u;c<l.length;c++)f=l[c],g=parseInt(f,10),M.push(g),M.push(Math.round(h[f]));h={},hn(M,!1)}break;case 1:if((v=Object.keys(_t)).length>0){for(m=0,y=v;m<y.length;m++)n=y[m],g=parseInt(n,10),M.push(g),M.push(_t[n]);_t={},xt=!1,hn(M,!1)}break;case 36:if((k=Object.keys(w)).length>0){for(S=0,T=k;S<T.length;S++)_=T[S],g=parseInt(_,10),M.push(g),M.push([].concat.apply([],w[_]));w={},hn(M,!1)}break;case 40:E.forEach((function(t){var e,n,a;for(n in M.push(t),e=[],x[t])a=parseInt(n,10),e.push(a),e.push(x[t][n]);M.push(e)})),Ne(),hn(M,!1);break;case 47:M.push(Et.source,Et.ad_Storage,Et.analytics_Storage),hn(M,!1)}}function Pn(t){St.check=t,5!==t&&(Rn(),ua())}function Xn(t,e){if(e&&(e=""+e,t in Tt||(Tt[t]=[]),!Tt[t].includes(e))){if(Tt[t].length>128)return void(xt||(xt=!0,Pn(5)));Tt[t].push(e),t in _t||(_t[t]=[]),_t[t].push(e)}}function Cn(){var t,e,n,a=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;if(null==a?void 0:a.getConsentState)try{e=a.getConsentState("analytics_storage"),Wn({source:2,ad_Storage:1===(n={ad_Storage:a.getConsentState("ad_storage"),analytics_Storage:e}).ad_Storage?"granted":"denied",analytics_Storage:1===n.analytics_Storage?"granted":"denied"})}catch(t){return}}function Yn(){Dn(2)}function Dn(t){Xn(36,""+t)}function An(t){Et=t,On(47)}function jn(){var t,e,n,a;if(!Xt&&"granted"===(null==Pt?void 0:Pt.analytics_Storage)&&"granted"===(null==Pt?void 0:Pt.ad_Storage)){for(t=0,e=Jt.cookies;t<e.length;t++)(a=De(n=e[t]))&&we(n,a);Xt=!0}}function Hn(){return Nt?[Nt.userId,Nt.sessionId,Nt.pageNum].join("."):""}function Wn(t,e){var n,a,i;if(void 0===t&&(t=Ct),void 0===e&&(e=5),ia()){if(a={source:null!==(n=t.source)&&void 0!==n?n:e,ad_Storage:Ln(t.ad_Storage,null==Pt?void 0:Pt.ad_Storage),analytics_Storage:Ln(t.analytics_Storage,null==Pt?void 0:Pt.analytics_Storage)},Pt&&a.ad_Storage===Pt.ad_Storage&&a.analytics_Storage===Pt.analytics_Storage)return Pt.source=a.source,An(qn(Pt)),void Yn();if(Pt=a,Un(!0),!(i=qn(Pt)).analytics_Storage&&Jt.track)return Jt.track=!1,Rn(!0),ua(),void window.setTimeout(ra,250);ia()&&i.analytics_Storage&&(Jt.track=!0,Vn(Bn(),1),Fn()),jn(),An(i),Yn()}}function qn(t){var e;return{source:null!==(e=t.source)&&void 0!==e?e:255,ad_Storage:"granted"===t.ad_Storage?1:0,analytics_Storage:"granted"===t.analytics_Storage?1:0}}function Ln(t,e){return void 0===e&&(e="denied"),"string"==typeof t?t.toLowerCase():e}function Rn(t){void 0===t&&(t=!1),Ae("_clsk","",0),t&&Ae("_clck","",0)}function Un(t){void 0===t&&(t=!1),function(t,e){var n,a;if(void 0===e&&(e=!1),It.length>0)for(n=0;n<It.length;n++)(a=It[n]).callback&&(!a.called&&!e||a.consentInfo&&e)&&(!a.wait||t)&&(a.callback(Nt,!Jt.lean,a.consentInfo?Pt:void 0),a.called=!0,a.recall||(It.splice(n,1),n--))}(Jt.lean?0:1,t)}function Fn(){var t,e,n;Nt&&Jt.track&&(t=Math.round(Date.now()),e=Jt.upload&&"string"==typeof Jt.upload?Jt.upload.replace("https://",""):"",n=Jt.lean?0:1,Ae("_clsk",[Nt.sessionId,t,Nt.pageNum,n,e].join(X),1))}function Vn(t,e){var n,a;void 0===e&&(e=null),e=null===e?t.consent:e,n=Math.ceil((Date.now()+31536e6)/864e5),a=0===t.dob?null===Jt.dob?0:Jt.dob:t.dob,(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==a)&&Ae("_clck",[Nt.userId,2,n.toString(36),e,a].join(X),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 zn(t,e){return void 0===e&&(e=10),parseInt(t,e)}function Bn(){var t,e={id:Jn(),version:0,expiry:null,consent:0,dob:0},n=De("_clck",!Jt.includeSubdomains);return n&&n.length>0&&((t=n.includes("^")?n.split("^"):n.split("|")).length>1&&(e.version=zn(t[1])),t.length>2&&(e.expiry=zn(t[2],36)),t.length>3&&1===zn(t[3])&&(e.consent=1),t.length>4&&zn(t[1])>1&&(e.dob=zn(t[4])),Jt.track=Jt.track||1===e.consent,e.id=Jt.track?t[0]:e.id),e}function Zn(){Dt=[]}function Gn(t){var e,n,a;return Dt&&!Dt.includes(t.message)&&(e=Jt.report)&&e.length>0&&Yt&&(n={v:Yt.version,p:Yt.projectId,u:Yt.userId,s:Yt.sessionId,n:Yt.pageNum},t.message&&(n.m=t.message),t.stack&&(n.e=t.stack),(a=new XMLHttpRequest).open("POST",e,!0),a.send(JSON.stringify(n)),Dt.push(t.message)),t}function Kn(t){return function(){var e,n=performance.now();try{t.apply(this,arguments)}catch(t){throw Gn(t)}le(4,e=performance.now()-n),e>30&&(ce(7),de(6,e),t.dn&&xe(9,0,t.dn+"-"+e))}}function Qn(t,e,n,a,i){void 0===a&&(a=!1),void 0===i&&(i=!0),n=Kn(n);try{t[zt("addEventListener")](e,n,{capture:a,passive:i}),function(t){return At.has(t)}(t)||At.set(t,[]),At.get(t).push({event:e,listener:n,options:{capture:a,passive:i}})}catch(t){}}function $n(){At.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[zt("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),At.delete(e)}(t,e)})),At=new Map}function ta(t,e){if(null===t)try{t=history[e],history[e]=function(){t.apply(this,arguments),ia()&&(!(qt++>20)||(xe(4,0),0))&&ea()}}catch(e){t=null}return t}function ea(){qt=0,Wt!==aa()&&(ua(),window.setTimeout(na,250))}function na(){ra(),de(29,1)}function aa(){return location.href?location.href.replace(location.hash,""):location.href}function ia(){return Lt}function oa(){ra(),ue("clarity","restart")}function ra(e){void 0===e&&(e=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===Lt&&"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||Lt)return!1;for(var e in t)e in Jt&&(Jt[e]=t[e])}(e),Lt=!0,t=Bt(),He(),$n(),Zn(),Wt=aa(),qt=0,Qn(window,"popstate",ea),jt=ta(jt,"pushState"),Ht=ta(Ht,"replaceState"),f={},h={},ce(5),Y.forEach((function(t){return Kn(t.start)()})),Rt.forEach((function(t){return Kn(t.start)()})),null===e&&sa())}function ua(){ia()&&(Rt.slice().reverse().forEach((function(t){return Kn(t.stop)()})),Y.slice().reverse().forEach((function(t){return Kn(t.stop)()})),f={},h={},Wt=null,qt=0,Zn(),$n(),He(),t=0,Lt=!1,void 0!==Ft&&(Ft[Vt]=function(){(Ft[Vt].q=Ft[Vt].q||[]).push(arguments),"start"===arguments[0]&&Ft[Vt].q.unshift(Ft[Vt].q.pop())&&sa()}))}function sa(){if(void 0!==Ft){if(Ft[Vt]&&Ft[Vt].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=Ft[Vt]&&Ft[Vt].q||[];for(Ft[Vt]=function(t){var e,n=[];for(e=1;e<arguments.length;e++)n[e-1]=arguments[e];return Ut[t].apply(Ut,n)},Ft[Vt].v=e;t.length>0;)Ft[Vt].apply(Ft,t.shift())}}t=0,e="0.8.64",n=/\S/gi,a=2048,i=!0,o=null,r=null,u=null,s=null,c=null,l=!1,d=null,f=null,h=null,g=0,v=0,m=null,w=null,y="CompressionStream"in window,b=null,k={},T={},x={},E=new Set,M={},N={},I={},O={},P=null,X="^",C=null,Y=[{start:function(){l=!1,ie()},stop:function(){ie()}},{start:function(){Tt={},_t={},xt=!1},stop:function(){Tt={},_t={},xt=!1}},{start:function(){be()},stop:function(){be()}},{start:function(){St={check:0}},stop:function(){St=null}},{start:function(){w={}},stop:function(){w={}}},{start:function(){P=null},stop:function(){P=null}},{start:function(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;Mt=!0,(null==e?void 0:e.addListener)&&e.addListener(["ad_storage","analytics_storage"],Cn)},stop:function(){Mt=!0}},{start:function(){var t,e,n,a,i,o,r,u,s,c,l,d,f=navigator&&"userAgent"in navigator?navigator.userAgent:"",h=null!==(n="undefined"!=typeof Intl&&(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:"",p=""+(new Date).getTimezoneOffset(),g=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",v=document&&document.title?document.title:"";Ot=f.indexOf("Electron")>0?1:0,c={session:Jn(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},(l=De("_clsk",!Jt.includeSubdomains))&&(s=l.includes("^")?l.split("^"):l.split("|")).length>=5&&c.ts-zn(s[1])<18e5&&(c.session=s[0],c.count=zn(s[2])+1,c.upgrade=zn(s[3]),c.upload=s.length>=6?"https://"+s[5]+"/"+s[4]:"https://"+s[4]),a=c,i=Bn(),o=Jt.projectId||Gt(location.host),Nt={projectId:o,userId:i.id,sessionId:a.session,pageNum:a.count},Jt.lean=Jt.track&&null!==a.upgrade?0===a.upgrade:Jt.lean,Jt.upload=Jt.track&&"string"==typeof Jt.upload&&a.upload&&a.upload.length>"https://".length?a.upload:Jt.upload,Xn(0,f),Xn(3,v),Xn(1,Qt(location.href,!!Ot)),Xn(2,document.referrer),Xn(15,function(){var t=Jn();return Jt.track&&Ce(window,"sessionStorage")&&(t=sessionStorage.getItem("_cltk")||t,sessionStorage.setItem("_cltk",t)),t}()),Xn(16,document.documentElement.lang),Xn(17,document.dir),Xn(26,""+window.devicePixelRatio),Xn(28,""+i.dob),Xn(29,""+i.version),Xn(33,g),Xn(34,h),Xn(35,p),de(0,a.ts),de(1,0),de(35,Ot),(r=null===window||void 0===window?void 0:window.Zone)&&"__symbol__"in r&&de(39,1),navigator&&(Xn(9,navigator.language),de(33,navigator.hardwareConcurrency),de(32,navigator.maxTouchPoints),de(34,Math.round(navigator.deviceMemory)),(u=navigator.userAgentData)&&u.getHighEntropyValues?u.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;Xn(22,t.platform),Xn(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){Xn(24,t.name+"~"+t.version)})),Xn(25,t.model),de(27,t.mobile?1:0)})):Xn(22,navigator.platform)),screen&&(de(14,Math.round(screen.width)),de(15,Math.round(screen.height)),de(16,Math.round(screen.colorDepth))),null===Pt&&(Pt={source:i.consent?6:0,ad_Storage:Jt.track?"granted":"denied",analytics_Storage:Jt.track?"granted":"denied"}),jn(),Dn((d=qn(Pt)).analytics_Storage?1:0),Et=d,Vn(i)},stop:function(){Nt=null,Xt=!1,It.forEach((function(t){t.called=!1}))}},{start:function(){var t=Nt;Yt={version:e,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:""}},stop:function(){Yt=null}},{start:function(){ft=!0,rt=0,ut=0,pt=!1,ht=0,st=[],ct=[],dt={},gt=null},stop:function(){he(lt),pn(!0),rt=0,ut=0,pt=!1,ht=0,st=[],ct=[],dt={},gt=null,ft=!1}},{start:function(){v=6e4,g=0},stop:function(){he(m),g=0,v=0}},{start:function(){!Jt.lean&&Jt.upgrade&&Jt.upgrade("Config"),kt=null},stop:function(){kt=null}},{start:function(){Ne()},stop:function(){Ne()}}],D=[],A=null,j=[],H=null,W=null,q=null,L=["input","textarea","radio","button","canvas","select"],R=/VM\d/,U=[],V=null,J=!1,z=ze(Be,500),B=[],Z=null,G=ze(Ke,25),K=[],et=[],nt=[],at=[],it=!1,ot=null,rt=0,ut=0,lt=null,ht=0,pt=!1,mt=!1,wt=[],yt=1,bt=null,kt=null,Tt=null,_t=null,xt=!1,Et=null,Mt=!0,Nt=null,It=[],Ot=0,Pt=null,Xt=!1,Ct={source:7,ad_Storage:"denied",analytics_Storage:"denied"},Yt=null,At=new Map,jt=null,Ht=null,Wt=null,qt=0,Lt=!1,Rt=[{start:function(){!function(){de(26,navigator.webdriver?1:0);try{de(31,window.top==window.self||window.top==window?1:2)}catch(t){de(31,0)}}(),Qn(window,"error",Te),k={},T={}},stop:function(){T={}}},{start:Sn,stop:function(){xn(),bn()}},{start:function(){et=[],ln(),Je(),J=!1,Qn(window,"resize",z),Be(),Qn(document,"visibilitychange",on),on(),Qn(window,"focus",(function(){return sn(1)})),Qn(window,"blur",(function(){return sn(0)})),function(){if(!mt)try{window[zt("addEventListener")]("pageshow",Kn(kn),{capture:!1,passive:!0}),mt=!0}catch(t){}}(),B=[],Ke(),en(),Qn(window,"pagehide",nn)},stop:function(){et=[],ln(),Je(),Ge(),rn(),un(),he(Z),G.cleanup(),B=[],en(),an()}},{start:function(){},stop:function(){}},{start:function(){it=!0,ot=new Set,Jt.modules&&Jt.modules.length>0&&Jt.modules.forEach((function(t){fn(t)}))},stop:function(){at.reverse().forEach((function(t){try{t()}catch(t){}})),at=[],it=!1}}],Ut={__proto__:null,consent:function(t){void 0===t&&(t=!0),Wn(t?{source:4,ad_Storage:"granted",analytics_Storage:"granted"}:{source:4,ad_Storage:"denied",analytics_Storage:"denied"})},consentv2:Wn,dlog:Xn,event:ue,hashText:function(){},identify:function(t,e,n,a){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===a&&(a=null),ge(this,void 0,void 0,(function(){var i,o;return ve(this,(function(r){switch(r.label){case 0:return o={},[4,ke(t)];case 1:return o.userId=r.sent(),o.userHint=a||((u=t)&&u.length>=5?u.substring(0,2)+ee(u.substring(2),"*","*"):ee(u,"*","*")),ye("userId",[(i=o).userId]),ye("userHint",[i.userHint]),ye("userType",[Se(t)]),e&&(ye("sessionId",[e]),i.sessionId=e),n&&(ye("pageId",[n]),i.pageId=n),[2,i]}var u}))}))},maxMetric:de,measure:Kn,metadata:function(t,e,n,a){var i,o;void 0===e&&(e=!0),void 0===n&&(n=!1),void 0===a&&(a=!1),i=Jt.lean?0:1,o=!1,Nt&&(i||!1===e)&&(t(Nt,!Jt.lean,a?Pt:void 0),o=!0),!n&&o||It.push({callback:t,wait:e,recall:n,called:o,consentInfo:a})},pause:function(){ia()&&(ue("clarity","pause"),null===W&&(W=new Promise((function(t){q=t}))))},queue:hn,register:function(t){it&&"function"==typeof t&&at.push(t)},resume:function(){ia()&&(W&&(q(),W=null,null===H&&qe()),ue("clarity","resume"))},schedule:We,set:we,signal:function(t){C=t},start:ra,stop:ua,time:Zt,upgrade:In,version:e},Ft=window,Vt="clarity",sa()}();