(function(){function Cb(){function a(){a.done||(Qa=a.done=!0,Ra=!1,d.g(R,function(e){e.ed()}))}function b(){try{A.documentElement.doScroll("left")}catch(e){setTimeout(b,1);return}a()}if(A.addEventListener)"complete"===A.readyState?a():A.addEventListener("DOMContentLoaded",a,!1);else if(A.attachEvent){A.attachEvent("onreadystatechange",a);var c=!1;try{c=null===r.frameElement}catch(e){}A.documentElement.doScroll&&c&&b()}d.Gc(r,"load",a,!0)}function Db(){E.init=function(a,b,c){if(c)return E[c]||(E[c]= R[c]=ma(a,b,c),E[c].ya()),E[c];c=E;R.mixpanel?c=R.mixpanel:a&&(c=ma(a,b,"mixpanel"),c.ya(),R.mixpanel=c);E=c;1===xa&&(r.mixpanel=E);Eb()}}function Eb(){d.g(R,function(a,b){"mixpanel"!==b&&(E[b]=a)});E._=d}function ya(a){a=d.j(a)?a:d.l(a)?{}:{days:a};return d.extend({},Fb,a)}function ma(a,b,c){var e="mixpanel"===c?E:E[c];if(e&&0===xa)var f=e;else{if(e&&!d.isArray(e)){z.error("You have already initialized "+c);return}f=new l}f.Lb={};f.ja(a,b,c);f.people=new x;f.people.ja(f);if(!f.h("skip_first_touch_marketing")){a= d.info.ka(null);var g={},k=!1;d.g(a,function(h,p){(g["initial_"+p]=h)&&(k=!0)});k&&f.people.$(g)}S=S||f.h("debug");!d.l(e)&&d.isArray(e)&&(f.Ua.call(f.people,e.people),f.Ua(e));return f}function l(){}function Gb(a){return a}function Sa(a){throw Error(a+" not available in this build.");}function T(a){this.W=null;this.He=a}function y(a){this.props={};this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;"cookie"!==b&&"localStorage"!==b&&(z.s("Unknown persistence type "+ b+"; falling back to cookie"),b=a.persistence="cookie");"localStorage"===b&&d.localStorage.na()?this.storage=d.localStorage:this.storage=d.cookie;this.load();this.Zc(a);this.upgrade();this.save()}function x(){}function C(){}function M(a,b){this.X=b.X;this.ra=new O(a,{X:d.bind(this.m,this),R:b.R,Qc:b.Qc,Rc:b.Rc,F:b.F,ib:b.ib});this.P=b.P;this.te=b.ue;this.za=b.za;this.Fe=b.Ge;this.T=this.P.batch_size;this.Ga=this.P.batch_flush_interval_ms;this.stopped=!this.P.batch_autostart;this.fb=0;this.V={};this.ic= b.ic||!1}function Ta(a,b){var c=[];d.g(a,function(e){var f=e.id;f in b?(f=b[f],null!==f&&(e.payload=f,c.push(e))):c.push(e)});return c}function Ua(a,b){var c=[];d.g(a,function(e){e.id&&!b[e.id]&&c.push(e)});return c}function O(a,b){b=b||{};this.aa=a;if(this.F=b.F)this.R=b.R||new fa,this.lock=new Va(a,{storage:b.Qc||r.localStorage,Cb:b.Rc});this.m=b.X||d.bind(Wa.error,Wa);this.Na=b.Na||null;this.K=[];this.rb=!1;this.Cd=b.ib?Hb(d.bind(this.Nb,this),b.ib):d.bind(function(c){return this.Nb([c])},this)} function fa(a){this.storage=a||r.localStorage}function Va(a,b){b=b||{};this.aa=a;this.storage=b.storage||r.localStorage;this.Dc=b.Dc||100;this.Cb=b.Cb||2E3;this.Ec=b.Ec||D}function na(){this.zc="submit"}function ba(){this.zc="click"}function Q(){}function B(a){this.la=a.Hd;this.Id=a.Jd;this.track=a.Ue}function J(a){this.A=a}function ha(){}function Xa(a){var b=Ib,c=a.split(".");c=c[c.length-1];if(4c?"0"+c:c}return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+"T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())};d.ba=function(a){var b={};d.g(a,function(c,e){d.tb(c)&&0=h;)f()} function c(){var m,t="",w;if('"'===h)for(;f();){if('"'===h)return f(),t;if("\\"===h)if(f(),"u"===h){for(m=w=0;4>m;m+=1){var u=parseInt(f(),16);if(!isFinite(u))break;w=16*w+u}t+=String.fromCharCode(w)}else if("string"===typeof p[h])t+=p[h];else break;else t+=h}g("Bad string")}function e(){var m="";"-"===h&&(m="-",f("-"));for(;"0"<=h&&"9">=h;)m+=h,f();if("."===h)for(m+=".";f()&&"0"<=h&&"9">=h;)m+=h;if("e"===h||"E"===h){m+=h;f();if("-"===h||"+"===h)m+=h,f();for(;"0"<=h&&"9">=h;)m+=h,f()}m=+m;if(isFinite(m))return m; g("Bad number")}function f(m){m&&m!==h&&g("Expected '"+m+"' instead of '"+h+"'");h=q.charAt(k);k+=1;return h}function g(m){m=new SyntaxError(m);m.Xe=k;m.text=q;throw m;}var k,h,p={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},q;var n=function(){b();switch(h){case "{":a:{var m={};if("{"===h){f("{");b();if("}"===h){f("}");var t=m;break a}for(;h;){t=c();b();f(":");Object.hasOwnProperty.call(m,t)&&g('Duplicate key "'+t+'"');m[t]=n();b();if("}"===h){f("}");t=m;break a}f(",");b()}}g("Bad object"); t=void 0}return t;case "[":a:{t=[];if("["===h){f("[");b();if("]"===h){f("]");break a}for(;h;){t.push(n());b();if("]"===h){f("]");break a}f(",");b()}}g("Bad array");t=void 0}return t;case '"':return c();case "-":return e();default:return"0"<=h&&"9">=h?e():a()}};return function(m){q=m;k=0;h=" ";m=n();b();h&&g("Syntax error");return m}}();d.qd=function(a){var b=0,c=0,e=[];if(!a)return a;a=d.We(a);do{var f=a.charCodeAt(b++);var g=a.charCodeAt(b++);var k=a.charCodeAt(b++);var h=f<<16|g<<8|k;f=h>>18&63; g=h>>12&63;k=h>>6&63;h&=63;e[c++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(k)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)}while(bk?c++:h=127k?String.fromCharCode(k>>6|192,k&63|128):String.fromCharCode(k>>12|224,k>>6&63|128,k&63|128);null!==h&&(c>f&&(b+=a.substring(f,c)),b+=h,f=c=e+1)}c>f&&(b+=a.substring(f,a.length));return b};d.Pa=function(){try{return r.crypto.randomUUID()}catch(c){for(var a=Array(36),b=0;36>b;b++)a[b]=Math.floor(16*Math.random());a[14]=4;a[19]=a[19]&=-5;a[19]=a[19]|=8;a[8]=a[13]=a[18]= a[23]="-";return d.map(a,function(e){return e.toString(16)}).join("")}};var wb="ahrefsbot;ahrefssiteaudit;amazonbot;baiduspider;bingbot;bingpreview;chrome-lighthouse;facebookexternal;petalbot;pinterest;screaming frog;yahoo! slurp;yandex;adsbot-google;apis-google;duplexweb-google;feedfetcher-google;google favicon;google web preview;google-read-aloud;googlebot;googleweblight;mediapartners-google;storebot-google".split(";");d.sc=function(a){var b;a=a.toLowerCase();for(b=0;bthis.Ka)for(c=0;c=k&&this.Kaw?(bc.error("Timeout waiting for mutex on "+ m+"; clearing lock. ["+q+"]"),u.removeItem(N),u.removeItem(v),g()):setTimeout(function(){try{L()}catch(X){e(X)}},t*(Math.random()+.1))}var q=b||(new Date).getTime()+"|"+Math.random(),n=(new Date).getTime(),m=this.aa,t=this.Dc,w=this.Cb,u=this.storage,G=m+":X",v=m+":Y",N=m+":Z";try{if(oa(u,!0))g();else throw Error("localStorage support check failed");}catch(L){e(L)}},this))};fa.prototype.B=function(){return D.resolve()};fa.prototype.setItem=function(a,b){return new D(d.bind(function(c,e){try{this.storage.setItem(a, da(b))}catch(f){e(f)}c()},this))};fa.prototype.getItem=function(a){return new D(d.bind(function(b,c){try{var e=ua(this.storage.getItem(a))}catch(f){c(f)}b(e)},this))};fa.prototype.removeItem=function(a){return new D(d.bind(function(b,c){try{this.storage.removeItem(a)}catch(e){c(e)}b()},this))};var Wa=ia("batch");O.prototype.U=function(){return this.rb?D.resolve():this.R.B().then(d.bind(function(){this.rb=!0},this)).catch(d.bind(function(a){this.m("Error initializing queue persistence. Disabling persistence", a);this.rb=!0;this.F=!1},this))};O.prototype.enqueue=function(a,b){a={id:za(),flushAfter:(new Date).getTime()+2*b,payload:a};if(this.F)return this.Cd(a);this.K.push(a);return D.resolve(!0)};O.prototype.Nb=function(a){var b=d.bind(function(){return this.U().then(d.bind(function(){return this.ta()},this)).then(d.bind(function(c){return this.xb(c.concat(a))},this)).then(d.bind(function(c){c&&(this.K=this.K.concat(a));return c},this)).catch(d.bind(function(c){this.m("Error enqueueing items",c,a);return!1}, this))},this);return this.lock.Hb(b,this.Na).catch(d.bind(function(c){this.m("Error acquiring storage lock",c);return!1},this))};O.prototype.Ed=function(a){var b=this.K.slice(0,a);return this.F&&b.lengthg.flushAfter&&!e[g.id]&&(g.je=!0,b.push(g),b.length>=a))break}}return b},this)):D.resolve(b)};O.prototype.me= function(a){var b={};d.g(a,function(e){b[e]=!0});this.K=Ua(this.K,b);if(this.F){var c=d.bind(function(){return this.U().then(d.bind(function(){return this.ta()},this)).then(d.bind(function(e){e=Ua(e,b);return this.xb(e)},this)).then(d.bind(function(){return this.ta()},this)).then(d.bind(function(e){for(var f=0;fk.length)return this.wb=!1,this.Z(),D.resolve();var p=d.bind(function(){return this.ra.me(d.map(f,function(m){return m.id})).then(d.bind(function(m){d.g(f,d.bind(function(t){var w=t.id;w?(this.V[w]=this.V[w]||0,this.V[w]++,5=b)return this.m("Network timeout; retrying"),this.flush();var t;if(t=d.j(m)){var w;if(!(w=500<=m.Ia||429===m.Ia)){var u;if(u=0>=m.Ia){var G=r.navigator.onLine;u=!(d.l(G)||G)}w=u}t=w||"timeout"===m.error}if(t){var v=2*this.Ga;m.Jc&&(v=1E3*parseInt(m.Jc, 10)||v);v=Math.min(6E5,v);this.m("Error; retry in "+v+" ms");this.Kc(v);return D.resolve()}if(d.j(m)&&413===m.Ia){if(1f.maxExpires||g>f.idleExpires||c[e].tabId===b)return!0}return!1}).catch(d.bind(function(c){this.v("Error checking recording registry",c)},this))};l.prototype.Ta=Y(function(a){if(r.MutationObserver){var b=d.bind(function(e){var f=d.bind(function(){this.D=this.D||new r.__mp_recorder(this);this.D.resumeRecording(e)},this);d.l(r.__mp_recorder)?Sa(this.h("recorder_src"), f):f()},this),c=0=n.timeout?"timeout":"Bad HTTP status: "+n.status+" "+n.statusText,q.v(w),e&&(p?e({status:0,Ia:n.status,error:w,Jc:(n.responseHeaders||{})["Retry-After"]}):e(0))};n.send(k)}catch(w){q.v(w),f=!1}else k=A.createElement("script"),k.type="text/javascript", k.async=!0,k.defer=!0,k.src=a,m=A.getElementsByTagName("script")[0],m.parentNode.insertBefore(k,m);return f};l.prototype.Ua=function(a){function b(k,h){d.g(k,function(p){if(d.isArray(p[0])){var q=h;d.g(p,function(n){q=q[n[0]].apply(q,n.slice(1))})}else this[p[0]].apply(this,p.slice(1))},h)}var c,e=[],f=[],g=[];d.g(a,function(k){k&&(c=k[0],d.isArray(c)?g.push(k):"function"===typeof k?k.call(this):d.isArray(k)&&"alias"===c?e.push(k):d.isArray(k)&&-1!==c.indexOf("track")&&"function"===typeof this[c]? g.push(k):f.push(k))},this);b(e,this);b(f,this);b(g,this)};l.prototype.Vb=function(){return!!this.I.Y};l.prototype.lc=function(){var a="__mpq_"+this.h("token"),b=this.h("api_routes");return this.Kb=this.Kb||{Y:{type:"events",endpoint:"/"+b.track,sa:a+"_ev"},vb:{type:"people",endpoint:"/"+b.engage,sa:a+"_pp"},groups:{type:"groups",endpoint:"/"+b.groups,sa:a+"_gr"}}};l.prototype.Vd=function(){if(!this.Vb()){var a=d.bind(function(c){return new M(c.sa,{P:this.config,X:this.h("error_reporter"),ue:d.bind(function(e, f,g){this.u(this.h("api_host")+c.endpoint,this.Mb(e),f,this.Qb(g,e))},this),za:d.bind(function(e){return this.Sb("before_send_"+c.type,e)},this),Ge:d.bind(this.zb,this),F:!0})},this),b=this.lc();this.I={Y:a(b.Y),vb:a(b.vb),groups:a(b.groups)}}this.h("batch_autostart")&&this.yb()};l.prototype.yb=function(){this.cd=!0;this.Vb()&&(this.fa=!0,d.g(this.I,function(a){a.start()}))};l.prototype.zb=function(){this.fa=!1;d.g(this.I,function(a){a.stop();a.clear()})};l.prototype.push=function(a){this.Ua([a])}; l.prototype.disable=function(a){"undefined"===typeof a?this.ga.zd=!0:this.Qa=this.Qa.concat(a)};l.prototype.Mb=function(a){a=da(a);"base64"===this.h("api_payload_format")&&(a=d.qd(a));return{data:a}};l.prototype.$a=function(a,b){var c=d.truncate(a.data,255),e=a.endpoint,f=a.cb,g=a.De,k=a.we||{};b=b||ha;var h=!0,p=d.bind(function(){k.Sc||(c=this.Sb("before_send_"+a.type,c));return c?(z.log("MIXPANEL REQUEST:"),z.log(c),this.u(e,this.Mb(c),k,this.Qb(b,c))):null},this);this.fa&&!g?f.enqueue(c).then(function(q){q? b(1,c):p()}):h=p();return h&&c};l.prototype.track=Y(function(a,b,c,e){e||"function"!==typeof c||(e=c,c=null);c=c||{};var f=c.transport;f&&(c.Fb=f);f=c.send_immediately;"function"!==typeof e&&(e=ha);if(d.l(a))this.v("No event name provided to mixpanel.track");else if(this.Ob(a))e(0);else{b=d.extend({},b);b.token=this.h("token");var g=this.persistence.ne(a);d.l(g)||(b.$duration=parseFloat((((new Date).getTime()-g)/1E3).toFixed(3)));this.Tb();g=this.h("track_marketing")?d.info.ge():{};b=d.extend({}, d.info.qa({mp_loader:this.h("mp_loader")}),g,this.persistence.qa(),this.da,this.mc(),b);g=this.h("property_blacklist");d.isArray(g)?d.g(g,function(k){delete b[k]}):this.v("Invalid value for property_blacklist config: "+g);return this.$a({type:"events",data:{event:a,properties:b},endpoint:this.h("api_host")+"/"+this.h("api_routes").track,cb:this.I.Y,De:f,we:c},e)}});l.prototype.Be=Y(function(a,b,c){d.isArray(b)||(b=[b]);var e={};e[a]=b;this.register(e);return this.people.set(a,b,c)});l.prototype.ld= Y(function(a,b,c){var e=this.H(a),f={};void 0===e?(f[a]=[b],this.register(f)):-1===e.indexOf(b)&&(e.push(b),f[a]=e,this.register(f));return this.people.va(a,b,c)});l.prototype.oe=Y(function(a,b,c){var e=this.H(a);if(void 0!==e){var f=e.indexOf(b);-1(E.__SV||0)?z.s("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(d.g(E._i,function(b){b&&d.isArray(b)&&(R[b[b.length-1]]=ma.apply(this,b))}),Db(),E.init(),d.g(R,function(b){b.ya()}),Cb())})(function(a,b){var c=document.createElement("script");c.type="text/javascript";c.async=!0;c.onload=b;c.src=a;document.head.appendChild(c)})})()