Socket
Socket
Sign inDemoInstall

mixpanel-browser

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mixpanel-browser - npm Package Compare versions

Comparing version 2.49.0 to 2.50.0

dist/mixpanel-recorder.js

4

dist/mixpanel-js-wrapper.js

@@ -12,3 +12,3 @@ // ==ClosureCompiler==

if (!mixpanel['__SV']) {
var script, first_script, gen_fn, functions, i, lib_name = "mixpanel";
var script, first_script, functions, i, lib_name = "mixpanel";
window[lib_name] = mixpanel;

@@ -248,2 +248,2 @@

};
})(window, '_mixpanel');
})(window, '_mixpanel');
(function() {
var l=void 0,m=!0,q=null,D=!1;
(function(){function Aa(){function a(){if(!a.Ac)la=a.Ac=m,ma=D,c.a(F,function(a){a.nc()})}function b(){try{w.documentElement.doScroll("left")}catch(d){setTimeout(b,1);return}a()}if(w.addEventListener)"complete"===w.readyState?a():w.addEventListener("DOMContentLoaded",a,D);else if(w.attachEvent){w.attachEvent("onreadystatechange",a);var d=D;try{d=o.frameElement===q}catch(f){}w.documentElement.doScroll&&d&&b()}c.Rb(o,"load",a,m)}function Ba(){y.init=function(a,b,d){if(d)return y[d]||(y[d]=F[d]=S(a,
b,d),y[d].ja()),y[d];d=y;if(F.mixpanel)d=F.mixpanel;else if(a)d=S(a,b,"mixpanel"),d.ja(),F.mixpanel=d;y=d;1===ca&&(o.mixpanel=y);Ca()}}function Ca(){c.a(F,function(a,b){"mixpanel"!==b&&(y[b]=a)});y._=c}function da(a){a=c.e(a)?a:c.g(a)?{}:{days:a};return c.extend({},Da,a)}function S(a,b,d){var f,h="mixpanel"===d?y:y[d];if(h&&0===ca)f=h;else{if(h&&!c.isArray(h)){s.error("You have already initialized "+d);return}f=new e}f.jb={};f.W(a,b,d);f.people=new j;f.people.W(f);if(!f.c("skip_first_touch_marketing")){var a=
c.info.X(q),g={},p=D;c.a(a,function(a,b){(g["initial_"+b]=a)&&(p=m)});p&&f.people.L(g)}J=J||f.c("debug");!c.g(h)&&c.isArray(h)&&(f.za.call(f.people,h.people),f.za(h));return f}function e(){}function P(){}function Ea(a){return a}function n(a){this.props={};this.wd=D;this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;if("cookie"!==b&&"localStorage"!==b)s.H("Unknown persistence type "+b+"; falling back to cookie"),b=a.persistence="cookie";this.i="localStorage"===
b&&c.localStorage.ra()?c.localStorage:c.cookie;this.load();this.hc(a);this.sd(a);this.save()}function j(){}function v(){}function C(a,b){this.I=b.I;this.aa=new G(a,{I:c.bind(this.h,this),i:b.i});this.A=b.A;this.Wc=b.Xc;this.ka=b.ka;this.fd=b.gd;this.C=this.A.batch_size;this.oa=this.A.batch_flush_interval_ms;this.ua=!this.A.batch_autostart;this.Ia=0;this.F={}}function na(a,b){var d=[];c.a(a,function(a){var c=a.id;if(c in b){if(c=b[c],c!==q)a.payload=c,d.push(a)}else d.push(a)});return d}function oa(a,
b){var d=[];c.a(a,function(a){a.id&&!b[a.id]&&d.push(a)});return d}function G(a,b){b=b||{};this.M=a;this.i=b.i||window.localStorage;this.h=b.I||c.bind(pa.error,pa);this.Wa=new qa(a,{i:this.i});this.ta=b.ta||q;this.G=[]}function qa(a,b){b=b||{};this.M=a;this.i=b.i||window.localStorage;this.Pb=b.Pb||100;this.bc=b.bc||2E3}function T(){this.Mb="submit"}function L(){this.Mb="click"}function E(){}function ra(a){var b=Fa,d=a.split("."),d=d[d.length-1];if(4<d.length||"com"===d||"org"===d)b=Ga;return(a=a.match(b))?
a[0]:""}function ea(a){var b=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return a?b.substring(0,a):b}function U(a,b){if(fa!==q&&!b)return fa;var d=m;try{var a=a||window.localStorage,c="__mplss_"+ea(8);a.setItem(c,"xyz");"xyz"!==a.getItem(c)&&(d=D);a.removeItem(c)}catch(h){d=D}return fa=d}function ga(a){return{log:ha(s.log,a),error:ha(s.error,a),H:ha(s.H,a)}}function ha(a,b){return function(){arguments[0]="["+b+"] "+arguments[0];return a.apply(s,arguments)}}
function Ha(a,b){sa(m,a,b)}function Ia(a,b){sa(D,a,b)}function Ja(a,b){return"1"===V(b).get(W(a,b))}function ta(a,b){if(Ka(b))return s.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),m;var d="0"===V(b).get(W(a,b));d&&s.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data.");return d}
function M(a){return ia(a,function(a){return this.c(a)})}function H(a){return ia(a,function(a){return this.p(a)})}function N(a){return ia(a,function(a){return this.p(a)})}function La(a,b){b=b||{};V(b).remove(W(a,b),!!b.wb,b.ub)}function V(a){a=a||{};return"localStorage"===a.Ob?c.localStorage:c.cookie}function W(a,b){b=b||{};return(b.Nb||Ma)+a}function Ka(a){if(a&&a.Db)return D;var a=a&&a.window||o,b=a.navigator||{},d=D;c.a([b.doNotTrack,b.msDoNotTrack,a.doNotTrack],function(a){c.j([m,1,"1","yes"],
a)&&(d=m)});return d}function sa(a,b,d){!c.Va(b)||!b.length?s.error("gdpr."+(a?"optIn":"optOut")+" called with an invalid token"):(d=d||{},V(d).set(W(b,d),a?1:0,c.Hb(d.vb)?d.vb:q,!!d.wb,!!d.Vc,!!d.xc,d.ub),d.o&&a&&d.o(d.ld||"$opt_in",d.md,{send_immediately:m}))}function ia(a,b){return function(){var d=D;try{var c=b.call(this,"token"),h=b.call(this,"ignore_dnt"),g=b.call(this,"opt_out_tracking_persistence_type"),p=b.call(this,"opt_out_tracking_cookie_prefix"),i=b.call(this,"window");c&&(d=ta(c,{Db:h,
Ob:g,Nb:p,window:i}))}catch(e){s.error("Unexpected error when checking tracking opt-out status: "+e)}if(!d)return a.apply(this,arguments);d=arguments[arguments.length-1];"function"===typeof d&&d(0)}}var J=D,o;if("undefined"===typeof window){var B={hostname:""};o={navigator:{userAgent:""},document:{location:B,referrer:""},screen:{width:0,height:0},location:B}}else o=window;var B=Array.prototype,ua=Object.prototype,K=B.slice,Q=ua.toString,X=ua.hasOwnProperty,z=o.console,I=o.navigator,w=o.document,Y=
o.opera,Z=o.screen,A=I.userAgent,ja=Function.prototype.bind,va=B.forEach,wa=B.indexOf,xa=B.map,B=Array.isArray,ka={},c={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},s={log:function(){if(J&&!c.g(z)&&z)try{z.log.apply(z,arguments)}catch(a){c.a(arguments,function(a){z.log(a)})}},warn:function(){if(J&&!c.g(z)&&z){var a=["Mixpanel warning:"].concat(c.N(arguments));try{z.warn.apply(z,a)}catch(b){c.a(a,function(a){z.warn(a)})}}},error:function(){if(J&&!c.g(z)&&z){var a=["Mixpanel error:"].concat(c.N(arguments));
try{z.error.apply(z,a)}catch(b){c.a(a,function(a){z.error(a)})}}},H:function(){if(!c.g(z)&&z){var a=["Mixpanel error:"].concat(c.N(arguments));try{z.error.apply(z,a)}catch(b){c.a(a,function(a){z.error(a)})}}}};c.bind=function(a,b){var d,f;if(ja&&a.bind===ja)return ja.apply(a,K.call(arguments,1));if(!c.Ua(a))throw new TypeError;d=K.call(arguments,2);return f=function(){if(!(this instanceof f))return a.apply(b,d.concat(K.call(arguments)));var c={};c.prototype=a.prototype;var g=new c;c.prototype=q;c=
a.apply(g,d.concat(K.call(arguments)));return Object(c)===c?c:g}};c.a=function(a,b,d){if(!(a===q||a===l))if(va&&a.forEach===va)a.forEach(b,d);else if(a.length===+a.length)for(var c=0,h=a.length;c<h&&!(c in a&&b.call(d,a[c],c,a)===ka);c++);else for(c in a)if(X.call(a,c)&&b.call(d,a[c],c,a)===ka)break};c.extend=function(a){c.a(K.call(arguments,1),function(b){for(var d in b)b[d]!==l&&(a[d]=b[d])});return a};c.isArray=B||function(a){return"[object Array]"===Q.call(a)};c.Ua=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return D}};
c.Ic=function(a){return!(!a||!X.call(a,"callee"))};c.N=function(a){return!a?[]:a.N?a.N():c.isArray(a)||c.Ic(a)?K.call(a):c.ud(a)};c.map=function(a,b,d){if(xa&&a.map===xa)return a.map(b,d);var f=[];c.a(a,function(a){f.push(b.call(d,a))});return f};c.keys=function(a){var b=[];if(a===q)return b;c.a(a,function(a,c){b[b.length]=c});return b};c.ud=function(a){var b=[];if(a===q)return b;c.a(a,function(a){b[b.length]=a});return b};c.Sa=function(a,b){var d=D;if(a===q)return d;if(wa&&a.indexOf===wa)return-1!=
a.indexOf(b);c.a(a,function(a){if(d||(d=a===b))return ka});return d};c.j=function(a,b){return-1!==a.indexOf(b)};c.Fb=function(a,b){a.prototype=new b;a.hd=b.prototype};c.e=function(a){return a===Object(a)&&!c.isArray(a)};c.qa=function(a){if(c.e(a)){for(var b in a)if(X.call(a,b))return D;return m}return D};c.g=function(a){return a===l};c.Va=function(a){return"[object String]"==Q.call(a)};c.Jc=function(a){return"[object Date]"==Q.call(a)};c.Hb=function(a){return"[object Number]"==Q.call(a)};c.Kc=function(a){return!!(a&&
1===a.nodeType)};c.La=function(a){c.a(a,function(b,d){c.Jc(b)?a[d]=c.Cc(b):c.e(b)&&(a[d]=c.La(b))});return a};c.timestamp=function(){Date.now=Date.now||function(){return+new Date};return Date.now()};c.Cc=function(a){function b(a){return 10>a?"0"+a:a}return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+"T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())};c.ea=function(a){var b={};c.a(a,function(a,f){c.Va(a)&&0<a.length&&(b[f]=a)});return b};c.truncate=function(a,
b){var d;"string"===typeof a?d=a.slice(0,b):c.isArray(a)?(d=[],c.a(a,function(a){d.push(c.truncate(a,b))})):c.e(a)?(d={},c.a(a,function(a,h){d[h]=c.truncate(a,b)})):d=a;return d};c.ga=function(){return function(a){function b(a,c){var g="",p=0,i=p="",i=0,e=g,r=[],t=c[a];t&&"object"===typeof t&&"function"===typeof t.toJSON&&(t=t.toJSON(a));switch(typeof t){case "string":return d(t);case "number":return isFinite(t)?""+t:"null";case "boolean":case "null":return""+t;case "object":if(!t)return"null";g+=
" ";r=[];if("[object Array]"===Q.apply(t)){i=t.length;for(p=0;p<i;p+=1)r[p]=b(p,t)||"null";return i=0===r.length?"[]":g?"[\n"+g+r.join(",\n"+g)+"\n"+e+"]":"["+r.join(",")+"]"}for(p in t)X.call(t,p)&&(i=b(p,t))&&r.push(d(p)+(g?": ":":")+i);return i=0===r.length?"{}":g?"{"+r.join(",")+""+e+"}":"{"+r.join(",")+"}"}}function d(a){var b=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f",
"\r":"\\r",'"':'\\"',"\\":"\\\\"};b.lastIndex=0;return b.test(a)?'"'+a.replace(b,function(a){var b=d[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}return b("",{"":a})}}();c.R=function(){function a(){switch(i){case "t":return h("t"),h("r"),h("u"),h("e"),m;case "f":return h("f"),h("a"),h("l"),h("s"),h("e"),D;case "n":return h("n"),h("u"),h("l"),h("l"),q}g('Unexpected "'+i+'"')}function b(){for(;i&&" ">=i;)h()}function d(){var a,b,d="",c;if('"'===
i)for(;h();){if('"'===i)return h(),d;if("\\"===i)if(h(),"u"===i){for(b=c=0;4>b;b+=1){a=parseInt(h(),16);if(!isFinite(a))break;c=16*c+a}d+=String.fromCharCode(c)}else if("string"===typeof e[i])d+=e[i];else break;else d+=i}g("Bad string")}function c(){var a;a="";"-"===i&&(a="-",h("-"));for(;"0"<=i&&"9">=i;)a+=i,h();if("."===i)for(a+=".";h()&&"0"<=i&&"9">=i;)a+=i;if("e"===i||"E"===i){a+=i;h();if("-"===i||"+"===i)a+=i,h();for(;"0"<=i&&"9">=i;)a+=i,h()}a=+a;if(isFinite(a))return a;g("Bad number")}function h(a){a&&
a!==i&&g("Expected '"+a+"' instead of '"+i+"'");i=r.charAt(p);p+=1;return i}function g(a){a=new SyntaxError(a);a.vd=p;a.text=r;throw a;}var p,i,e={'"':'"',"\\":"\\","/":"/",b:"\u0008",f:"\u000c",n:"\n",r:"\r",t:"\t"},r,t;t=function(){b();switch(i){case "{":var p;a:{var e,k={};if("{"===i){h("{");b();if("}"===i){h("}");p=k;break a}for(;i;){e=d();b();h(":");Object.hasOwnProperty.call(k,e)&&g('Duplicate key "'+e+'"');k[e]=t();b();if("}"===i){h("}");p=k;break a}h(",");b()}}g("Bad object")}return p;case "[":a:{p=
[];if("["===i){h("[");b();if("]"===i){h("]");e=p;break a}for(;i;){p.push(t());b();if("]"===i){h("]");e=p;break a}h(",");b()}}g("Bad array")}return e;case '"':return d();case "-":return c();default:return"0"<=i&&"9">=i?c():a()}};return function(a){r=a;p=0;i=" ";a=t();b();i&&g("Syntax error");return a}}();c.vc=function(a){var b,d,f,h,g=0,p=0,e="",e=[];if(!a)return a;a=c.td(a);do b=a.charCodeAt(g++),d=a.charCodeAt(g++),f=a.charCodeAt(g++),h=b<<16|d<<8|f,b=h>>18&63,d=h>>12&63,f=h>>6&63,h&=63,e[p++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)+
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h);while(g<a.length);e=e.join("");switch(a.length%3){case 1:e=e.slice(0,-2)+"==";break;case 2:e=e.slice(0,-1)+"="}return e};c.td=function(a){var a=(a+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),b="",d,c,h=0,g;d=c=0;h=a.length;for(g=0;g<h;g++){var e=a.charCodeAt(g),i=q;
128>e?c++:i=127<e&&2048>e?String.fromCharCode(e>>6|192,e&63|128):String.fromCharCode(e>>12|224,e>>6&63|128,e&63|128);i!==q&&(c>d&&(b+=a.substring(d,c)),b+=i,d=c=g+1)}c>d&&(b+=a.substring(d,a.length));return b};c.hb=function(){function a(){function a(b,d){var c,f=0;for(c=0;c<d.length;c++)f|=g[c]<<8*c;return b^f}var b,c,g=[],e=0;for(b=0;b<A.length;b++)c=A.charCodeAt(b),g.unshift(c&255),4<=g.length&&(e=a(e,g),g=[]);0<g.length&&(e=a(e,g));return e.toString(16)}function b(){var a=1*new Date,b;if(o.performance&&
o.performance.now)b=o.performance.now();else for(b=0;a==1*new Date;)b++;return a.toString(16)+Math.floor(b).toString(16)}return function(){var c=(Z.height*Z.width).toString(16);return b()+"-"+Math.random().toString(16).replace(".","")+"-"+a()+"-"+c+"-"+b()}}();var ya="ahrefsbot,ahrefssiteaudit,baiduspider,bingbot,bingpreview,chrome-lighthouse,facebookexternal,petalbot,pinterest,screaming frog,yahoo! slurp,yandexbot,adsbot-google,apis-google,duplexweb-google,feedfetcher-google,google favicon,google web preview,google-read-aloud,googlebot,googleweblight,mediapartners-google,storebot-google".split(",");
c.Gb=function(a){var b,a=a.toLowerCase();for(b=0;b<ya.length;b++)if(-1!==a.indexOf(ya[b]))return m;return D};c.kc=function(a){var b,d,f,h=[];c.g(b)&&(b="&");c.a(a,function(a,b){d=encodeURIComponent(a.toString());f=encodeURIComponent(b);h[h.length]=f+"="+d});return h.join(b)};c.Pa=function(a,b){var b=b.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),c=RegExp("[\\?&]"+b+"=([^&#]*)").exec(a);if(c===q||c&&"string"!==typeof c[1]&&c[1].length)return"";c=c[1];try{c=decodeURIComponent(c)}catch(f){s.error("Skipping decoding for malformed query param: "+
c)}return c.replace(/\+/g," ")};c.cookie={get:function(a){for(var a=a+"=",b=w.cookie.split(";"),c=0;c<b.length;c++){for(var f=b[c];" "==f.charAt(0);)f=f.substring(1,f.length);if(0===f.indexOf(a))return decodeURIComponent(f.substring(a.length,f.length))}return q},parse:function(a){var b;try{b=c.R(c.cookie.get(a))||{}}catch(d){}return b},zd:function(a,b,c,f,h,g,e){var i="",k="",r="";e?i="; domain="+e:f&&(i=(i=ra(w.location.hostname))?"; domain=."+i:"");c&&(k=new Date,k.setTime(k.getTime()+1E3*c),k=
"; expires="+k.toGMTString());g&&(h=m,r="; SameSite=None");h&&(r+="; secure");w.cookie=a+"="+encodeURIComponent(b)+k+"; path=/"+i+r},set:function(a,b,c,f,h,g,e){var i="",k="",r="";e?i="; domain="+e:f&&(i=(i=ra(w.location.hostname))?"; domain=."+i:"");c&&(k=new Date,k.setTime(k.getTime()+864E5*c),k="; expires="+k.toGMTString());g&&(h=m,r="; SameSite=None");h&&(r+="; secure");a=a+"="+encodeURIComponent(b)+k+"; path=/"+i+r;return w.cookie=a},remove:function(a,b,d){c.cookie.set(a,"",-1,b,D,D,d)}};var fa=
q;c.localStorage={ra:function(a){(a=U(q,a))||s.error("localStorage unsupported; falling back to cookie store");return a},error:function(a){s.error("localStorage error: "+a)},get:function(a){try{return window.localStorage.getItem(a)}catch(b){c.localStorage.error(b)}return q},parse:function(a){try{return c.R(c.localStorage.get(a))||{}}catch(b){}return q},set:function(a,b){try{window.localStorage.setItem(a,b)}catch(d){c.localStorage.error(d)}},remove:function(a){try{window.localStorage.removeItem(a)}catch(b){c.localStorage.error(b)}}};
c.Rb=function(){function a(a,f,h){return function(g){if(g=g||b(window.event)){var e=m,i;c.Ua(h)&&(i=h(g));g=f.call(a,g);if(D===i||D===g)e=D;return e}}}function b(a){if(a)a.preventDefault=b.preventDefault,a.stopPropagation=b.stopPropagation;return a}b.preventDefault=function(){this.returnValue=D};b.stopPropagation=function(){this.cancelBubble=m};return function(b,c,h,g,e){b?b.addEventListener&&!g?b.addEventListener(c,h,!!e):(c="on"+c,b[c]=a(b,h,b[c])):s.error("No valid element provided to register_event")}}();
var Na=/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/;c.zc=function(){function a(a,b){return 0<=(" "+a.className+" ").replace(d," ").indexOf(" "+b+" ")}function b(b){if(!w.getElementsByTagName)return[];var b=b.split(" "),d,g,e,i,k,r,t,x=[w];for(i=0;i<b.length;i++)if(d=b[i].replace(/^\s+/,"").replace(/\s+$/,""),-1<d.indexOf("#")){g=d.split("#");d=g[0];x=w.getElementById(g[1]);if(!x||d&&x.nodeName.toLowerCase()!=d)return[];x=[x]}else if(-1<d.indexOf(".")){g=d.split(".");d=g[0];var u=g[1];d||(d="*");
g=[];for(k=e=0;k<x.length;k++){t="*"==d?x[k].all?x[k].all:x[k].getElementsByTagName("*"):x[k].getElementsByTagName(d);for(r=0;r<t.length;r++)g[e++]=t[r]}x=[];for(k=d=0;k<g.length;k++)g[k].className&&c.Va(g[k].className)&&a(g[k],u)&&(x[d++]=g[k])}else if(g=d.match(Na)){d=g[1];var j=g[2],u=g[3],n=g[4];d||(d="*");g=[];for(k=e=0;k<x.length;k++){t="*"==d?x[k].all?x[k].all:x[k].getElementsByTagName("*"):x[k].getElementsByTagName(d);for(r=0;r<t.length;r++)g[e++]=t[r]}x=[];d=0;switch(u){case "=":u=function(a){return a.getAttribute(j)==
n};break;case "~":u=function(a){return a.getAttribute(j).match(RegExp("\\b"+n+"\\b"))};break;case "|":u=function(a){return a.getAttribute(j).match(RegExp("^"+n+"-?"))};break;case "^":u=function(a){return 0===a.getAttribute(j).indexOf(n)};break;case "$":u=function(a){return a.getAttribute(j).lastIndexOf(n)==a.getAttribute(j).length-n.length};break;case "*":u=function(a){return-1<a.getAttribute(j).indexOf(n)};break;default:u=function(a){return a.getAttribute(j)}}x=[];for(k=d=0;k<g.length;k++)u(g[k])&&
(x[d++]=g[k])}else{g=[];for(k=e=0;k<x.length;k++){t=x[k].getElementsByTagName(d);for(r=0;r<t.length;r++)g[e++]=t[r]}x=g}return x}var d=/[\t\r\n]/g;return function(a){return c.Kc(a)?[a]:c.e(a)&&!c.g(a.length)?a:b.call(this,a)}}();var Oa=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],Pa="dclid,fbclid,gclid,ko_click_id,li_fat_id,msclkid,ttclid,twclid,wbraid".split(",");c.info={X:function(a){var b="",d={};c.a(Oa,function(f){b=c.Pa(w.URL,f);b.length?d[f]=b:a!==l&&(d[f]=a)});return d},
tb:function(){var a="",b={};c.a(Pa,function(d){a=c.Pa(w.URL,d);a.length&&(b[d]=a)});return b},Lc:function(){return c.extend(c.info.X(),c.info.tb())},Tc:function(a){return 0===a.search("https?://(.*)google.([^/?]*)")?"google":0===a.search("https?://(.*)bing.com")?"bing":0===a.search("https?://(.*)yahoo.com")?"yahoo":0===a.search("https?://(.*)duckduckgo.com")?"duckduckgo":q},Uc:function(a){var b=c.info.Tc(a),d={};if(b!==q)d.$search_engine=b,a=c.Pa(a,"yahoo"!=b?"q":"p"),a.length&&(d.mp_keyword=a);return d},
la:function(a,b,d){return d||c.j(a," OPR/")?c.j(a,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":c.j(a,"IEMobile")||c.j(a,"WPDesktop")?"Internet Explorer Mobile":c.j(a,"SamsungBrowser/")?"Samsung Internet":c.j(a,"Edge")||c.j(a,"Edg/")?"Microsoft Edge":c.j(a,"FBIOS")?"Facebook Mobile":c.j(a,"Chrome")?"Chrome":c.j(a,"CriOS")?"Chrome iOS":c.j(a,"UCWEB")||c.j(a,"UCBrowser")?"UC Browser":c.j(a,"FxiOS")?"Firefox iOS":c.j(b||"","Apple")?c.j(a,"Mobile")?"Mobile Safari":"Safari":
c.j(a,"Android")?"Android Mobile":c.j(a,"Konqueror")?"Konqueror":c.j(a,"Firefox")?"Firefox":c.j(a,"MSIE")||c.j(a,"Trident/")?"Internet Explorer":c.j(a,"Gecko")?"Mozilla":""},Ha:function(a,b,d){b={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,
Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[c.info.la(a,b,d)];if(b===l)return q;a=a.match(b);return!a?q:parseFloat(a[a.length-2])},Lb:function(){return/Windows/i.test(A)?/Phone/.test(A)||/WPDesktop/.test(A)?"Windows Phone":"Windows":
/(iPhone|iPad|iPod)/.test(A)?"iOS":/Android/.test(A)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(A)?"BlackBerry":/Mac/i.test(A)?"Mac OS X":/Linux/.test(A)?"Linux":/CrOS/.test(A)?"Chrome OS":""},Ab:function(a){return/Windows Phone/i.test(a)||/WPDesktop/.test(a)?"Windows Phone":/iPad/.test(a)?"iPad":/iPod/.test(a)?"iPod Touch":/iPhone/.test(a)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":/Android/.test(a)?"Android":""},Qb:function(a){a=a.split("/");return 3<=a.length?a[2]:""},Ka:function(){return o.location.href},
$:function(a){"object"!==typeof a&&(a={});return c.extend(c.ea({$os:c.info.Lb(),$browser:c.info.la(A,I.vendor,Y),$referrer:w.referrer,$referring_domain:c.info.Qb(w.referrer),$device:c.info.Ab(A)}),{$current_url:c.info.Ka(),$browser_version:c.info.Ha(A,I.vendor,Y),$screen_height:Z.height,$screen_width:Z.width,mp_lib:"web",$lib_version:"2.49.0",$insert_id:ea(),time:c.timestamp()/1E3},c.ea(a))},Pc:function(){return c.extend(c.ea({$os:c.info.Lb(),$browser:c.info.la(A,I.vendor,Y)}),{$browser_version:c.info.Ha(A,
I.vendor,Y)})},Mc:function(){return c.ea({current_page_title:w.title,current_domain:o.location.hostname,current_url_path:o.location.pathname,current_url_protocol:o.location.protocol,current_url_search:o.location.search})}};var Ga=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Fa=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,$=q,aa=q;if("undefined"!==typeof JSON)$=JSON.stringify,aa=JSON.parse;$=$||c.ga;aa=aa||c.R;c.toArray=c.N;c.isObject=c.e;c.JSONEncode=c.ga;c.JSONDecode=c.R;c.isBlockedUA=c.Gb;c.isEmptyObject=c.qa;c.info=
c.info;c.info.device=c.info.Ab;c.info.browser=c.info.la;c.info.browserVersion=c.info.Ha;c.info.properties=c.info.$;E.prototype.na=function(){};E.prototype.Na=function(){};E.prototype.Fa=function(){};E.prototype.Ta=function(a){this.Ib=a;return this};E.prototype.o=function(a,b,d,f){var h=this,g=c.zc(a);if(0===g.length)s.error("The DOM query ("+a+") returned 0 elements");else return c.a(g,function(a){c.Rb(a,this.Mb,function(a){var c={},g=h.na(d,this),e=h.Ib.c("track_links_timeout");h.Na(a,this,c);window.setTimeout(h.dc(f,
g,c,m),e);h.Ib.o(b,g,h.dc(f,g,c))})},this),m};E.prototype.dc=function(a,b,c,f){var f=f||D,h=this;return function(){if(!c.wc)c.wc=m,a&&a(f,b)===D||h.Fa(b,c,f)}};E.prototype.na=function(a,b){return"function"===typeof a?a(b):c.extend({},a)};c.Fb(L,E);L.prototype.na=function(a,b){var c=L.hd.na.apply(this,arguments);if(b.href)c.url=b.href;return c};L.prototype.Na=function(a,b,c){c.Jb=2===a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;c.href=b.href;c.Jb||a.preventDefault()};L.prototype.Fa=function(a,
b){b.Jb||setTimeout(function(){window.location=b.href},0)};c.Fb(T,E);T.prototype.Na=function(a,b,c){c.element=b;a.preventDefault()};T.prototype.Fa=function(a,b){setTimeout(function(){b.element.submit()},0)};var Qa=ga("lock");qa.prototype.gb=function(a,b,c){function f(){j.setItem(s,"1");try{a()}finally{j.removeItem(s),j.getItem(o)===k&&j.removeItem(o),j.getItem(n)===k&&j.removeItem(n)}}function h(){j.setItem(n,k);e(g,function(){j.getItem(n)===k?f():i(function(){j.getItem(o)!==k?h():e(function(){return!j.getItem(s)},
f)})})}function g(){var a=j.getItem(o);if(a&&a!==k)return D;j.setItem(o,k);if(j.getItem(o)===k)return m;if(!U(j,m))throw Error("localStorage support dropped while acquiring lock");return D}function e(a,b){a()?b():i(function(){e(a,b)})}function i(a){(new Date).getTime()-r>u?(Qa.error("Timeout waiting for mutex on "+t+"; clearing lock. ["+k+"]"),j.removeItem(s),j.removeItem(o),h()):setTimeout(function(){try{a()}catch(c){b&&b(c)}},x*(Math.random()+0.1))}!c&&"function"!==typeof b&&(c=b,b=q);var k=c||
(new Date).getTime()+"|"+Math.random(),r=(new Date).getTime(),t=this.M,x=this.Pb,u=this.bc,j=this.i,n=t+":X",o=t+":Y",s=t+":Z";try{if(U(j,m))h();else throw Error("localStorage support check failed");}catch(w){b&&b(w)}};var pa=ga("batch");G.prototype.Ma=function(a,b,d){var f={id:ea(),flushAfter:(new Date).getTime()+2*b,payload:a};this.Wa.gb(c.bind(function(){var b;try{var c=this.ca();c.push(f);(b=this.Za(c))&&this.G.push(f)}catch(e){this.h("Error enqueueing item",a),b=D}d&&d(b)},this),c.bind(function(a){this.h("Error acquiring storage lock",
a);d&&d(D)},this),this.ta)};G.prototype.Bc=function(a){var b=this.G.slice(0,a);if(b.length<a){var d=this.ca();if(d.length){var f={};c.a(b,function(a){f[a.id]=m});for(var h=0;h<d.length;h++){var g=d[h];if((new Date).getTime()>g.flushAfter&&!f[g.id]&&(g.Oc=m,b.push(g),b.length>=a))break}}}return b};G.prototype.Qc=function(a,b){var d={};c.a(a,function(a){d[a]=m});this.G=oa(this.G,d);var f=c.bind(function(){var b;try{var c=this.ca(),c=oa(c,d);if(b=this.Za(c))for(var c=this.ca(),f=0;f<c.length;f++){var e=
c[f];if(e.id&&d[e.id])return this.h("Item not removed from storage"),D}}catch(k){this.h("Error removing items",a),b=D}return b},this);this.Wa.gb(function(){var a=f();b&&b(a)},c.bind(function(a){var c=D;this.h("Error acquiring storage lock",a);if(!U(this.i,m)&&(c=f(),!c))try{this.i.removeItem(this.M)}catch(d){this.h("Error clearing queue",d)}b&&b(c)},this),this.ta)};G.prototype.rd=function(a){this.G=na(this.G,a);this.Wa.gb(c.bind(function(){try{var b=this.ca(),b=na(b,a);this.Za(b)}catch(c){this.h("Error updating items",
a)}},this),c.bind(function(a){this.h("Error acquiring storage lock",a)},this),this.ta)};G.prototype.ca=function(){var a;try{if(a=this.i.getItem(this.M))a=aa(a),c.isArray(a)||(this.h("Invalid storage entry:",a),a=q)}catch(b){this.h("Error retrieving queue",b),a=q}return a||[]};G.prototype.Za=function(a){try{return this.i.setItem(this.M,$(a)),m}catch(b){return this.h("Error saving queue",b),D}};G.prototype.clear=function(){this.G=[];this.i.removeItem(this.M)};var R=ga("batch");C.prototype.Ma=function(a,
b){this.aa.Ma(a,this.oa,b)};C.prototype.start=function(){this.ua=D;this.Ia=0;this.flush()};C.prototype.stop=function(){this.ua=m;if(this.bb)clearTimeout(this.bb),this.bb=q};C.prototype.clear=function(){this.aa.clear()};C.prototype.Ub=function(){this.C=this.A.batch_size};C.prototype.da=function(){this.Vb(this.A.batch_flush_interval_ms)};C.prototype.Vb=function(a){this.oa=a;if(!this.ua)this.bb=setTimeout(c.bind(this.flush,this),this.oa)};C.prototype.flush=function(a){try{if(this.Tb)R.log("Flush: Request already in progress");
else{var a=a||{},b=this.A.batch_request_timeout_ms,d=(new Date).getTime(),f=this.C,h=this.aa.Bc(f),e=[],p={};c.a(h,function(a){var b=a.payload;this.ka&&!a.Oc&&(b=this.ka(b));if(b){b.event&&b.properties&&(b.properties=c.extend({},b.properties,{mp_sent_by_lib_version:"2.49.0"}));var d=m,f=a.id;if(f){if(5<(this.F[f]||0))this.h("[dupe] item ID sent too many times, not sending",{item:a,C:h.length,kd:this.F[f]}),d=D}else this.h("[dupe] found item with no ID",{item:a});d&&e.push(b)}p[a.id]=b},this);if(1>
e.length)this.da();else{this.Tb=m;var i=c.bind(function(e){this.Tb=D;try{var g=D;if(a.fc)this.aa.rd(p);else if(c.e(e)&&"timeout"===e.error&&(new Date).getTime()-d>=b)this.h("Network timeout; retrying"),this.flush();else if(c.e(e)&&e.Q&&(500<=e.Q.status||429===e.Q.status||"timeout"===e.error)){var i=2*this.oa,k=e.Q.responseHeaders;if(k){var j=k["Retry-After"];j&&(i=1E3*parseInt(j,10)||i)}i=Math.min(6E5,i);this.h("Error; retry in "+i+" ms");this.Vb(i)}else if(c.e(e)&&e.Q&&413===e.Q.status)if(1<h.length){var r=
Math.max(1,Math.floor(f/2));this.C=Math.min(this.C,r,h.length-1);this.h("413 response; reducing batch size to "+this.C);this.da()}else this.h("Single-event request too large; dropping",h),this.Ub(),g=m;else g=m;g&&(this.aa.Qc(c.map(h,function(a){return a.id}),c.bind(function(a){a?(this.Ia=0,this.flush()):(this.h("Failed to remove items from queue"),5<++this.Ia?(this.h("Too many queue failures; disabling batching system."),this.fd()):this.da())},this)),c.a(h,c.bind(function(a){var b=a.id;b?(this.F[b]=
this.F[b]||0,this.F[b]++,5<this.F[b]&&this.h("[dupe] item ID sent too many times",{item:a,C:h.length,kd:this.F[b]})):this.h("[dupe] found item with no ID while removing",{item:a})},this)))}catch(n){this.h("Error handling API response",n),this.da()}},this),k={method:"POST",jc:m,Gc:m,cc:b};if(a.fc)k.eb="sendBeacon";R.log("MIXPANEL REQUEST:",e);this.Wc(e,k,i)}}}catch(j){this.h("Error flushing request queue",j),this.da()}};C.prototype.h=function(a,b){R.error.apply(R.error,arguments);if(this.I)try{b instanceof
Error||(b=Error(a)),this.I(a,b)}catch(c){R.error(c)}};var Ma="__mp_opt_in_out_",B={Xb:function(a,b){var d={},f={};c.e(a)?c.a(a,function(a,b){this.z(b)||(f[b]=a)},this):f[a]=b;d.$set=f;return d},gc:function(a){var b={},d=[];c.isArray(a)||(a=[a]);c.a(a,function(a){this.z(a)||d.push(a)},this);b.$unset=d;return b},$b:function(a,b){var d={},f={};c.e(a)?c.a(a,function(a,b){this.z(b)||(f[b]=a)},this):f[a]=b;d.$set_once=f;return d},ec:function(a,b){var d={},f={};c.e(a)?c.a(a,function(a,b){this.z(b)||(f[b]=
c.isArray(a)?a:[a])},this):f[a]=c.isArray(b)?b:[b];d.$union=f;return d},uc:function(a,b){var d={},f={};c.e(a)?c.a(a,function(a,b){this.z(b)||(f[b]=a)},this):f[a]=b;d.$append=f;return d},Sb:function(a,b){var d={},f={};c.e(a)?c.a(a,function(a,b){this.z(b)||(f[b]=a)},this):f[a]=b;d.$remove=f;return d},xd:function(){return{$delete:""}}};c.extend(v.prototype,B);v.prototype.W=function(a,b,c){this.d=a;this.Ba=b;this.Aa=c};v.prototype.set=N(function(a,b,d){var f=this.Xb(a,b);c.e(a)&&(d=b);return this.k(f,
d)});v.prototype.L=N(function(a,b,d){var f=this.$b(a,b);c.e(a)&&(d=b);return this.k(f,d)});v.prototype.va=N(function(a,b){return this.k(this.gc(a),b)});v.prototype.fa=N(function(a,b,d){c.e(a)&&(d=b);return this.k(this.ec(a,b),d)});v.prototype["delete"]=N(function(a){return this.k({$delete:""},a)});v.prototype.remove=N(function(a,b,c){return this.k(this.Sb(a,b),c)});v.prototype.k=function(a,b){a.$group_key=this.Ba;a.$group_id=this.Aa;a.$token=this.p("token");return this.d.Ea({type:"groups",data:c.La(a),
D:this.p("api_host")+"/"+this.p("api_routes").groups,Ga:this.d.u.Qa},b)};v.prototype.z=function(a){return"$group_key"===a||"$group_id"===a};v.prototype.p=function(a){return this.d.c(a)};v.prototype.toString=function(){return this.d.toString()+".group."+this.Ba+"."+this.Aa};v.prototype.remove=v.prototype.remove;v.prototype.set=v.prototype.set;v.prototype.set_once=v.prototype.L;v.prototype.union=v.prototype.fa;v.prototype.unset=v.prototype.va;v.prototype.toString=v.prototype.toString;c.extend(j.prototype,
B);j.prototype.W=function(a){this.d=a};j.prototype.set=H(function(a,b,d){var f=this.Xb(a,b);c.e(a)&&(d=b);this.p("save_referrer")&&this.d.persistence.fb(document.referrer);f.$set=c.extend({},c.info.Pc(),f.$set);return this.k(f,d)});j.prototype.L=H(function(a,b,d){var f=this.$b(a,b);c.e(a)&&(d=b);return this.k(f,d)});j.prototype.va=H(function(a,b){return this.k(this.gc(a),b)});j.prototype.Eb=H(function(a,b,d){var f={},e={};c.e(a)?(c.a(a,function(a,b){this.z(b)||(isNaN(parseFloat(a))?s.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):
e[b]=a)},this),d=b):(c.g(b)&&(b=1),e[a]=b);f.$add=e;return this.k(f,d)});j.prototype.append=H(function(a,b,d){c.e(a)&&(d=b);return this.k(this.uc(a,b),d)});j.prototype.remove=H(function(a,b,d){c.e(a)&&(d=b);return this.k(this.Sb(a,b),d)});j.prototype.fa=H(function(a,b,d){c.e(a)&&(d=b);return this.k(this.ec(a,b),d)});j.prototype.nd=H(function(a,b,d){if(!c.Hb(a)&&(a=parseFloat(a),isNaN(a))){s.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",
c.extend({$amount:a},b),d)});j.prototype.rb=function(a){return this.set("$transactions",[],a)};j.prototype.zb=function(){if(this.Ca())return this.k({$delete:this.d.K()});s.error("mixpanel.people.delete_user() requires you to call identify() first")};j.prototype.toString=function(){return this.d.toString()+".people"};j.prototype.k=function(a,b){a.$token=this.p("token");a.$distinct_id=this.d.K();var d=this.d.s("$device_id"),f=this.d.s("$user_id"),e=this.d.s("$had_persisted_distinct_id");d&&(a.$device_id=
d);f&&(a.$user_id=f);e&&(a.$had_persisted_distinct_id=e);d=c.La(a);return!this.Ca()?(this.oc(a),c.g(b)||(this.p("verbose")?b({status:-1,error:q}):b(-1)),c.truncate(d,255)):this.d.Ea({type:"people",data:d,D:this.p("api_host")+"/"+this.p("api_routes").engage,Ga:this.d.u.Ya},b)};j.prototype.p=function(a){return this.d.c(a)};j.prototype.Ca=function(){return this.d.T.Cb===m};j.prototype.oc=function(a){"$set"in a?this.d.persistence.q("$set",a):"$set_once"in a?this.d.persistence.q("$set_once",a):"$unset"in
a?this.d.persistence.q("$unset",a):"$add"in a?this.d.persistence.q("$add",a):"$append"in a?this.d.persistence.q("$append",a):"$remove"in a?this.d.persistence.q("$remove",a):"$union"in a?this.d.persistence.q("$union",a):s.error("Invalid call to _enqueue():",a)};j.prototype.U=function(a,b,d,f){var e=this,g=c.extend({},this.d.persistence.Z(a)),p=g;!c.g(g)&&c.e(g)&&!c.qa(g)&&(e.d.persistence.v(a,g),e.d.persistence.save(),f&&(p=f(g)),b.call(e,p,function(b,f){0===b&&e.d.persistence.q(a,g);c.g(d)||d(b,f)}))};
j.prototype.pc=function(a,b,d,f,e,g,p){var i=this;this.U("$set",this.set,a);this.U("$set_once",this.L,f);this.U("$unset",this.va,g,function(a){return c.keys(a)});this.U("$add",this.Eb,b);this.U("$union",this.fa,e);a=this.d.persistence.Z("$append");if(!c.g(a)&&c.isArray(a)&&a.length)for(var k,b=function(a,b){0===a&&i.d.persistence.q("$append",k);c.g(d)||d(a,b)},f=a.length-1;0<=f;f--)a=this.d.persistence.Z("$append"),k=a.pop(),i.d.persistence.save(),c.qa(k)||i.append(k,b);a=this.d.persistence.Z("$remove");
if(!c.g(a)&&c.isArray(a)&&a.length)for(var j,b=function(a,b){0===a&&i.d.persistence.q("$remove",j);c.g(p)||p(a,b)},f=a.length-1;0<=f;f--)a=this.d.persistence.Z("$remove"),j=a.pop(),i.d.persistence.save(),c.qa(j)||i.remove(j,b)};j.prototype.z=function(a){return"$distinct_id"===a||"$token"===a||"$device_id"===a||"$user_id"===a||"$had_persisted_distinct_id"===a};j.prototype.set=j.prototype.set;j.prototype.set_once=j.prototype.L;j.prototype.unset=j.prototype.va;j.prototype.increment=j.prototype.Eb;j.prototype.append=
j.prototype.append;j.prototype.remove=j.prototype.remove;j.prototype.union=j.prototype.fa;j.prototype.track_charge=j.prototype.nd;j.prototype.clear_charges=j.prototype.rb;j.prototype.delete_user=j.prototype.zb;j.prototype.toString=j.prototype.toString;var Ra="__mps,__mpso,__mpus,__mpa,__mpap,__mpr,__mpu,$people_distinct_id,__alias,__timers".split(",");n.prototype.$=function(){var a={};this.load();c.a(this.props,function(b,d){c.Sa(Ra,d)||(a[d]=b)});return a};n.prototype.load=function(){if(!this.disabled){var a=
this.i.parse(this.name);a&&(this.props=c.extend({},a))}};n.prototype.sd=function(a){var b=a.upgrade,d;if(b)d="mp_super_properties","string"===typeof b&&(d=b),b=this.i.parse(d),this.i.remove(d),this.i.remove(d,m),b&&(this.props=c.extend(this.props,b.all,b.events));if(!a.cookie_name&&"mixpanel"!==a.name&&(d="mp_"+a.token+"_"+a.name,b=this.i.parse(d)))this.i.remove(d),this.i.remove(d,m),this.w(b);this.i===c.localStorage&&(b=c.cookie.parse(this.name),c.cookie.remove(this.name),c.cookie.remove(this.name,
m),b&&this.w(b))};n.prototype.save=function(){this.disabled||this.i.set(this.name,c.ga(this.props),this.Oa,this.Ja,this.Wb,this.xb,this.ma)};n.prototype.sa=function(a){this.load();return this.props[a]};n.prototype.remove=function(){this.i.remove(this.name,D,this.ma);this.i.remove(this.name,m,this.ma)};n.prototype.clear=function(){this.remove();this.props={}};n.prototype.w=function(a,b,d){return c.e(a)?("undefined"===typeof b&&(b="None"),this.Oa="undefined"===typeof d?this.yb:d,this.load(),c.a(a,function(a,
c){if(!this.props.hasOwnProperty(c)||this.props[c]===b)this.props[c]=a},this),this.save(),m):D};n.prototype.m=function(a,b){return c.e(a)?(this.Oa="undefined"===typeof b?this.yb:b,this.load(),c.extend(this.props,a),this.save(),m):D};n.prototype.P=function(a){this.load();a in this.props&&(delete this.props[a],this.save())};n.prototype.ic=function(a){this.m(c.info.Uc(a))};n.prototype.fb=function(a){this.w({$initial_referrer:a||"$direct",$initial_referring_domain:c.info.Qb(a)||"$direct"},"")};n.prototype.Fc=
function(){return c.ea({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};n.prototype.hc=function(a){this.yb=this.Oa=a.cookie_expiration;this.Zb(a.disable_persistence);this.Zc(a.cookie_domain);this.$c(a.cross_site_cookie);this.ad(a.cross_subdomain_cookie);this.dd(a.secure_cookie)};n.prototype.Zb=function(a){(this.disabled=a)?this.remove():this.save()};n.prototype.Zc=function(a){if(a!==this.ma)this.remove(),this.ma=a,this.save()};n.prototype.$c=
function(a){if(a!==this.xb)this.xb=a,this.remove(),this.save()};n.prototype.ad=function(a){if(a!==this.Ja)this.Ja=a,this.remove(),this.save()};n.prototype.Dc=function(){return this.Ja};n.prototype.dd=function(a){if(a!==this.Wb)this.Wb=a?m:D,this.remove(),this.save()};n.prototype.q=function(a,b){var d=this.ia(a),f=b[a],e=this.B("$set"),g=this.B("$set_once"),p=this.B("$unset"),i=this.B("$add"),k=this.B("$union"),j=this.B("$remove",[]),n=this.B("$append",[]);"__mps"===d?(c.extend(e,f),this.v("$add",
f),this.v("$union",f),this.v("$unset",f)):"__mpso"===d?(c.a(f,function(a,b){b in g||(g[b]=a)}),this.v("$unset",f)):"__mpus"===d?c.a(f,function(a){c.a([e,g,i,k],function(b){a in b&&delete b[a]});c.a(n,function(b){a in b&&delete b[a]});p[a]=m}):"__mpa"===d?(c.a(f,function(a,b){b in e?e[b]+=a:(b in i||(i[b]=0),i[b]+=a)},this),this.v("$unset",f)):"__mpu"===d?(c.a(f,function(a,b){c.isArray(a)&&(b in k||(k[b]=[]),k[b]=k[b].concat(a))}),this.v("$unset",f)):"__mpr"===d?(j.push(f),this.v("$append",f)):"__mpap"===
d&&(n.push(f),this.v("$unset",f));s.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");s.log(b);this.save()};n.prototype.v=function(a,b){var d=this.props[this.ia(a)];c.g(d)||c.a(b,function(b,e){"$append"===a||"$remove"===a?c.a(d,function(a){a[e]===b&&delete a[e]}):delete d[e]},this)};n.prototype.Z=function(a){return this.sa(this.ia(a))};n.prototype.ia=function(a){if("$set"===a)return"__mps";if("$set_once"===a)return"__mpso";if("$unset"===a)return"__mpus";if("$add"===a)return"__mpa";if("$append"===
a)return"__mpap";if("$remove"===a)return"__mpr";if("$union"===a)return"__mpu";s.error("Invalid queue:",a)};n.prototype.B=function(a,b){var d=this.ia(a),b=c.g(b)?{}:b;return this.props[d]||(this.props[d]=b)};n.prototype.bd=function(a){var b=(new Date).getTime(),c=this.sa("__timers")||{};c[a]=b;this.props.__timers=c;this.save()};n.prototype.Rc=function(a){var b=(this.sa("__timers")||{})[a];c.g(b)||(delete this.props.__timers[a],this.save());return b};var ca,y,O=o.XMLHttpRequest&&"withCredentials"in
new XMLHttpRequest,ma=!O&&-1===A.indexOf("MSIE")&&-1===A.indexOf("Mozilla"),ba=q;I.sendBeacon&&(ba=function(){return I.sendBeacon.apply(I,arguments)});var B={track:"track/",engage:"engage/",groups:"groups/"},za={api_host:"https://api-js.mixpanel.com",api_routes:B,api_method:"POST",api_transport:"XHR",api_payload_format:"base64",app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:D,cross_subdomain_cookie:m,error_reporter:P,persistence:"cookie",persistence_name:"",cookie_domain:"",
cookie_name:"",loaded:P,mp_loader:q,track_marketing:m,track_pageview:D,skip_first_touch_marketing:D,store_google:m,stop_utm_persistence:D,save_referrer:m,test:D,verbose:D,img:D,debug:D,track_links_timeout:300,cookie_expiration:365,upgrade:D,disable_persistence:D,disable_cookie:D,secure_cookie:D,ip:m,opt_out_tracking_by_default:D,opt_out_persistence_by_default:D,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:q,property_blacklist:[],xhr_headers:{},ignore_dnt:D,batch_requests:m,
batch_size:50,batch_flush_interval_ms:5E3,batch_request_timeout_ms:9E4,batch_autostart:m,hooks:{}},la=D;e.prototype.Ta=function(a,b,d){if(c.g(d))this.l("You must name your new library: init(token, config, name)");else if("mixpanel"===d)this.l("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");else return a=S(a,b,d),y[d]=a,a.ja(),a};e.prototype.W=function(a,b,d){b=b||{};this.__loaded=m;this.config={};var e={};"api_payload_format"in b||(b.api_host||za.api_host).match(/\.mixpanel\.com/)&&
(e.api_payload_format="json");this.Yb(c.extend({},za,e,b,{name:d,token:a,callback_fn:("mixpanel"===d?d:"mixpanel."+d)+"._jsc"}));this._jsc=P;this.xa=[];this.ya=[];this.wa=[];this.T={disable_all_events:D,identify_called:D};this.u={};if(this.S=this.c("batch_requests"))if(!c.localStorage.ra(m)||!O)this.S=D,s.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),c.a(this.Bb(),function(a){s.log("Clearing batch queue "+a.ba);c.localStorage.remove(a.ba)});else if(this.Hc(),ba&&
o.addEventListener){var h=c.bind(function(){this.u.J.ua||this.u.J.flush({fc:m})},this);o.addEventListener("pagehide",function(a){a.persisted&&h()});o.addEventListener("visibilitychange",function(){"hidden"===w.visibilityState&&h()})}this.persistence=this.cookie=new n(this.config);this.O={};this.qc();a=c.hb();this.K()||this.w({distinct_id:"$device:"+a,$device_id:a},"");(a=this.c("track_pageview"))&&this.rc(a)};e.prototype.ja=function(){this.c("loaded")(this);this.pb();this.people.L(this.persistence.Fc());
if(this.c("store_google")&&this.c("stop_utm_persistence")){var a=c.info.X(q);c.a(a,function(a,c){this.P(c)}.bind(this))}};e.prototype.pb=function(){this.persistence.ic(w.referrer);this.c("store_google")&&!this.c("stop_utm_persistence")&&this.m(c.info.X());this.c("save_referrer")&&this.persistence.fb(w.referrer)};e.prototype.nc=function(){c.a(this.xa,function(a){this.Da.apply(this,a)},this);this.Y()||c.a(this.ya,function(a){this.k.apply(this,a)},this);delete this.xa;delete this.ya};e.prototype.Da=
function(a,b){if(this.c("img"))return this.l("You can't use DOM tracking functions with img = true."),D;if(!la)return this.xa.push([a,b]),D;var c=(new a).Ta(this);return c.o.apply(c,b)};e.prototype.rc=function(a){var b="";this.cb()&&(b=c.info.Ka());if(c.Sa(["full-url","url-with-path-and-query-string","url-with-path"],a)){o.addEventListener("popstate",function(){o.dispatchEvent(new Event("mp_locationchange"))});o.addEventListener("hashchange",function(){o.dispatchEvent(new Event("mp_locationchange"))});
var d=o.history.pushState;if("function"===typeof d)o.history.pushState=function(a,b,c){d.call(o.history,a,b,c);o.dispatchEvent(new Event("mp_locationchange"))};var e=o.history.replaceState;if("function"===typeof e)o.history.replaceState=function(a,b,c){e.call(o.history,a,b,c);o.dispatchEvent(new Event("mp_locationchange"))};o.addEventListener("mp_locationchange",function(){var d=c.info.Ka(),e=D;"full-url"===a?e=d!==b:"url-with-path-and-query-string"===a?e=d.split("#")[0]!==b.split("#")[0]:"url-with-path"===
a&&(e=d.split("#")[0].split("?")[0]!==b.split("#")[0].split("?")[0]);e&&this.cb()&&(b=d)}.bind(this))}};e.prototype.mb=function(a,b){if(c.g(a))return q;if(O)return function(c){a(c,b)};var d=this._jsc,e=""+Math.floor(1E8*Math.random()),h=this.c("callback_fn")+"["+e+"]";d[e]=function(c){delete d[e];a(c,b)};return h};e.prototype.k=function(a,b,d,e){var h=m;if(ma)return this.ya.push(arguments),h;var g={method:this.c("api_method"),eb:this.c("api_transport"),jc:this.c("verbose")},j=q;if(!e&&(c.Ua(d)||"string"===
typeof d))e=d,d=q;d=c.extend(g,d||{});if(!O)d.method="GET";var g="POST"===d.method,i=ba&&g&&"sendbeacon"===d.eb.toLowerCase(),k=d.jc;b.verbose&&(k=m);this.c("test")&&(b.test=1);k&&(b.verbose=1);this.c("img")&&(b.img=1);if(!O)if(e)b.callback=e;else if(k||this.c("test"))b.callback="(function(){})";b.ip=this.c("ip")?1:0;b._=(new Date).getTime().toString();g&&(j="data="+encodeURIComponent(b.data),delete b.data);var a=a+("?"+c.kc(b)),n=this;if("img"in b)j=w.createElement("img"),j.src=a,w.body.appendChild(j);
else if(i){try{h=ba(a,j)}catch(o){n.l(o),h=D}try{e&&e(h?1:0)}catch(s){n.l(s)}}else if(O)try{var u=new XMLHttpRequest;u.open(d.method,a,m);var v=this.c("xhr_headers");g&&(v["Content-Type"]="application/x-www-form-urlencoded");c.a(v,function(a,b){u.setRequestHeader(b,a)});if(d.cc&&"undefined"!==typeof u.timeout){u.timeout=d.cc;var y=(new Date).getTime()}u.withCredentials=m;u.onreadystatechange=function(){if(4===u.readyState)if(200===u.status){if(e)if(k){var a;try{a=c.R(u.responseText)}catch(b){if(n.l(b),
d.Gc)a=u.responseText;else return}e(a)}else e(Number(u.responseText))}else a=u.timeout&&!u.status&&(new Date).getTime()-y>=u.timeout?"timeout":"Bad HTTP status: "+u.status+" "+u.statusText,n.l(a),e&&(k?e({status:0,error:a,Q:u}):e(0))};u.send(j)}catch(z){n.l(z),h=D}else j=w.createElement("script"),j.type="text/javascript",j.async=m,j.defer=m,j.src=a,v=w.getElementsByTagName("script")[0],v.parentNode.insertBefore(j,v);return h};e.prototype.za=function(a){function b(a,b){c.a(a,function(a){if(c.isArray(a[0])){var d=
b;c.a(a,function(a){d=d[a[0]].apply(d,a.slice(1))})}else this[a[0]].apply(this,a.slice(1))},b)}var d,e=[],h=[],g=[];c.a(a,function(a){a&&(d=a[0],c.isArray(d)?g.push(a):"function"===typeof a?a.call(this):c.isArray(a)&&"alias"===d?e.push(a):c.isArray(a)&&-1!==d.indexOf("track")&&"function"===typeof this[d]?g.push(a):h.push(a))},this);b(e,this);b(h,this);b(g,this)};e.prototype.qb=function(){return!!this.u.J};e.prototype.Bb=function(){var a="__mpq_"+this.c("token"),b=this.c("api_routes");return this.ib=
this.ib||{J:{type:"events",D:"/"+b.track,ba:a+"_ev"},Ya:{type:"people",D:"/"+b.engage,ba:a+"_pp"},Qa:{type:"groups",D:"/"+b.groups,ba:a+"_gr"}}};e.prototype.Hc=function(){if(!this.qb()){var a=c.bind(function(a){return new C(a.ba,{A:this.config,Xc:c.bind(function(b,c,e){this.k(this.c("api_host")+a.D,this.kb(b),c,this.mb(e,b))},this),ka:c.bind(function(b){return this.ob("before_send_"+a.type,b)},this),I:this.c("error_reporter"),gd:c.bind(this.ab,this)})},this),b=this.Bb();this.u={J:a(b.J),Ya:a(b.Ya),
Qa:a(b.Qa)}}this.c("batch_autostart")&&this.$a()};e.prototype.$a=function(){this.lc=m;if(this.qb())this.S=m,c.a(this.u,function(a){a.start()})};e.prototype.ab=function(){this.S=D;c.a(this.u,function(a){a.stop();a.clear()})};e.prototype.push=function(a){this.za([a])};e.prototype.disable=function(a){"undefined"===typeof a?this.T.yc=m:this.wa=this.wa.concat(a)};e.prototype.kb=function(a){a=c.ga(a);"base64"===this.c("api_payload_format")&&(a=c.vc(a));return{data:a}};e.prototype.Ea=function(a,b){var d=
c.truncate(a.data,255),e=a.D,h=a.Ga,g=a.ed,j=a.Yc||{},b=b||P,i=m,k=c.bind(function(){j.ac||(d=this.ob("before_send_"+a.type,d));return d?(s.log("MIXPANEL REQUEST:"),s.log(d),this.k(e,this.kb(d),j,this.mb(b,d))):q},this);this.S&&!g?h.Ma(d,function(a){a?b(1,d):k()}):i=k();return i&&d};e.prototype.o=M(function(a,b,d,e){!e&&"function"===typeof d&&(e=d,d=q);var d=d||{},h=d.transport;if(h)d.eb=h;h=d.send_immediately;"function"!==typeof e&&(e=P);if(c.g(a))this.l("No event name provided to mixpanel.track");
else if(this.lb(a))e(0);else{b=c.extend({},b);b.token=this.c("token");var g=this.persistence.Rc(a);c.g(g)||(b.$duration=parseFloat((((new Date).getTime()-g)/1E3).toFixed(3)));this.pb();g=this.c("track_marketing")?c.info.Lc():{};b=c.extend({},c.info.$({mp_loader:this.c("mp_loader")}),g,this.persistence.$(),this.O,b);g=this.c("property_blacklist");c.isArray(g)?c.a(g,function(a){delete b[a]}):this.l("Invalid value for property_blacklist config: "+g);return this.Ea({type:"events",data:{event:a,properties:b},
D:this.c("api_host")+"/"+this.c("api_routes").track,Ga:this.u.J,ed:h,Yc:d},e)}});e.prototype.cd=M(function(a,b,d){c.isArray(b)||(b=[b]);var e={};e[a]=b;this.m(e);return this.people.set(a,b,d)});e.prototype.sc=M(function(a,b,c){var e=this.s(a),h={};e===l?(h[a]=[b],this.m(h)):-1===e.indexOf(b)&&(e.push(b),h[a]=e,this.m(h));return this.people.fa(a,b,c)});e.prototype.Sc=M(function(a,b,c){var e=this.s(a);if(e!==l){var h=e.indexOf(b);-1<h&&(e.splice(h,1),this.m({yd:e}));0===e.length&&this.P(a)}return this.people.remove(a,
b,c)});e.prototype.qd=M(function(a,b,d,e){var h=c.extend({},b||{});c.a(d,function(a,b){a!==q&&a!==l&&(h[b]=a)});return this.o(a,h,e)});e.prototype.mc=function(a,b){return a+"_"+JSON.stringify(b)};e.prototype.Ec=function(a,b){var c=this.mc(a,b),e=this.jb[c];if(e===l||e.Ba!==a||e.Aa!==b)e=new v,e.W(this,a,b),this.jb[c]=e;return e};e.prototype.cb=M(function(a,b){"object"!==typeof a&&(a={});var b=b||{},d=b.event_name||"$mp_web_page_view",e=c.extend(c.info.Mc(),c.info.X(),c.info.tb()),e=c.extend({},e,
a);return this.o(d,e)});e.prototype.pd=function(){return this.Da.call(this,L,arguments)};e.prototype.od=function(){return this.Da.call(this,T,arguments)};e.prototype.jd=function(a){c.g(a)?this.l("No event name provided to mixpanel.time_event"):this.lb(a)||this.persistence.bd(a)};var Da={persistent:m};e.prototype.m=function(a,b){var d=da(b);d.persistent?this.persistence.m(a,d.days):c.extend(this.O,a)};e.prototype.w=function(a,b,d){d=da(d);d.persistent?this.persistence.w(a,b,d.days):("undefined"===
typeof b&&(b="None"),c.a(a,function(a,c){if(!this.O.hasOwnProperty(c)||this.O[c]===b)this.O[c]=a},this))};e.prototype.P=function(a,b){b=da(b);b.persistent?this.persistence.P(a):delete this.O[a]};e.prototype.nb=function(a,b){var c={};c[a]=b;this.m(c)};e.prototype.Ra=function(a,b,c,e,h,g,j,i){var k=this.K();if(a&&k!==a){if("string"===typeof a&&0===a.indexOf("$device:"))return this.l("distinct_id cannot have $device: prefix"),-1;this.m({$user_id:a})}this.s("$device_id")||this.w({$had_persisted_distinct_id:m,
$device_id:k},"");a!==k&&a!==this.s("__alias")&&(this.P("__alias"),this.m({distinct_id:a}));this.T.Cb=m;this.people.pc(b,c,e,h,g,j,i);a!==k&&this.o("$identify",{distinct_id:a,$anon_distinct_id:k},{ac:m})};e.prototype.reset=function(){this.persistence.clear();this.T.Cb=D;var a=c.hb();this.w({distinct_id:"$device:"+a,$device_id:a},"")};e.prototype.K=function(){return this.s("distinct_id")};e.prototype.tc=function(a,b){if(a===this.s("$people_distinct_id"))return this.l("Attempting to create alias for existing People user - aborting."),
-2;var d=this;c.g(b)&&(b=this.K());if(a!==b)return this.nb("__alias",a),this.o("$create_alias",{alias:a,distinct_id:b},{ac:m},function(){d.Ra(a)});this.l("alias matches current distinct_id - skipping api call.");this.Ra(a);return-1};e.prototype.Nc=function(a){this.nb("mp_name_tag",a)};e.prototype.Yb=function(a){if(c.e(a))c.extend(this.config,a),a.batch_size&&c.a(this.u,function(a){a.Ub()}),this.c("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.c("disable_persistence")||
(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.hc(this.config),J=J||this.c("debug")};e.prototype.c=function(a){return this.config[a]};e.prototype.ob=function(a){var b=(this.config.hooks[a]||Ea).apply(this,K.call(arguments,1));"undefined"===typeof b&&(this.l(a+" hook did not return a value"),b=q);return b};e.prototype.s=function(a){return this.persistence.sa([a])};e.prototype.toString=function(){var a=this.c("name");"mixpanel"!==a&&(a="mixpanel."+a);
return a};e.prototype.lb=function(a){return c.Gb(A)||this.T.yc||c.Sa(this.wa,a)};e.prototype.qc=function(){"localStorage"===this.c("opt_out_tracking_persistence_type")&&c.localStorage.ra()&&(!this.pa()&&this.pa({persistence_type:"cookie"})&&this.Kb({enable_persistence:D}),!this.Y()&&this.Y({persistence_type:"cookie"})&&this.Xa({clear_persistence:D}),this.sb({persistence_type:"cookie",enable_persistence:D}));if(this.Y())this.ha({clear_persistence:m});else if(!this.pa()&&(this.c("opt_out_tracking_by_default")||
c.cookie.get("mp_optout")))c.cookie.remove("mp_optout"),this.Xa({clear_persistence:this.c("opt_out_persistence_by_default")})};e.prototype.ha=function(a){if(a&&a.clear_persistence)a=m;else if(a&&a.enable_persistence)a=D;else return;!this.c("disable_persistence")&&this.persistence.disabled!==a&&this.persistence.Zb(a);a?this.ab():this.lc&&this.$a()};e.prototype.V=function(a,b){b=c.extend({track:c.bind(this.o,this),persistence_type:this.c("opt_out_tracking_persistence_type"),cookie_prefix:this.c("opt_out_tracking_cookie_prefix"),
cookie_expiration:this.c("cookie_expiration"),cross_site_cookie:this.c("cross_site_cookie"),cross_subdomain_cookie:this.c("cross_subdomain_cookie"),cookie_domain:this.c("cookie_domain"),secure_cookie:this.c("secure_cookie"),ignore_dnt:this.c("ignore_dnt")},b);c.localStorage.ra()||(b.persistence_type="cookie");return a(this.c("token"),{o:b.track,ld:b.track_event_name,md:b.track_properties,Ob:b.persistence_type,Nb:b.cookie_prefix,ub:b.cookie_domain,vb:b.cookie_expiration,xc:b.cross_site_cookie,wb:b.cross_subdomain_cookie,
Vc:b.secure_cookie,Db:b.ignore_dnt})};e.prototype.Kb=function(a){a=c.extend({enable_persistence:m},a);this.V(Ha,a);this.ha(a)};e.prototype.Xa=function(a){a=c.extend({clear_persistence:m,delete_user:m},a);a.delete_user&&this.people&&this.people.Ca()&&(this.people.zb(),this.people.rb());this.V(Ia,a);this.ha(a)};e.prototype.pa=function(a){return this.V(Ja,a)};e.prototype.Y=function(a){return this.V(ta,a)};e.prototype.sb=function(a){a=c.extend({enable_persistence:m},a);this.V(La,a);this.ha(a)};e.prototype.l=
function(a,b){s.error.apply(s.error,arguments);try{!b&&!(a instanceof Error)&&(a=Error(a)),this.c("error_reporter")(a,b)}catch(c){s.error(c)}};e.prototype.init=e.prototype.Ta;e.prototype.reset=e.prototype.reset;e.prototype.disable=e.prototype.disable;e.prototype.time_event=e.prototype.jd;e.prototype.track=e.prototype.o;e.prototype.track_links=e.prototype.pd;e.prototype.track_forms=e.prototype.od;e.prototype.track_pageview=e.prototype.cb;e.prototype.register=e.prototype.m;e.prototype.register_once=
e.prototype.w;e.prototype.unregister=e.prototype.P;e.prototype.identify=e.prototype.Ra;e.prototype.alias=e.prototype.tc;e.prototype.name_tag=e.prototype.Nc;e.prototype.set_config=e.prototype.Yb;e.prototype.get_config=e.prototype.c;e.prototype.get_property=e.prototype.s;e.prototype.get_distinct_id=e.prototype.K;e.prototype.toString=e.prototype.toString;e.prototype.opt_out_tracking=e.prototype.Xa;e.prototype.opt_in_tracking=e.prototype.Kb;e.prototype.has_opted_out_tracking=e.prototype.Y;e.prototype.has_opted_in_tracking=
e.prototype.pa;e.prototype.clear_opt_in_out_tracking=e.prototype.sb;e.prototype.get_group=e.prototype.Ec;e.prototype.set_group=e.prototype.cd;e.prototype.add_group=e.prototype.sc;e.prototype.remove_group=e.prototype.Sc;e.prototype.track_with_groups=e.prototype.qd;e.prototype.start_batch_senders=e.prototype.$a;e.prototype.stop_batch_senders=e.prototype.ab;e.prototype.DEFAULT_API_ROUTES=B;n.prototype.properties=n.prototype.$;n.prototype.update_search_keyword=n.prototype.ic;n.prototype.update_referrer_info=
n.prototype.fb;n.prototype.get_cross_subdomain=n.prototype.Dc;n.prototype.clear=n.prototype.clear;var F={};(function(){ca=1;y=o.mixpanel;c.g(y)?s.H('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.'):y.__loaded||y.config&&y.persistence?s.H("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors."):
1.1>(y.__SV||0)?s.H("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(c.a(y._i,function(a){a&&c.isArray(a)&&(F[a[a.length-1]]=S.apply(this,a))}),Ba(),y.init(),c.a(F,function(a){a.ja()}),Aa())})()})();
var l=void 0,m=!0,r=null,D=!1;
(function(){function Aa(){function a(){if(!a.Cc)la=a.Cc=m,ma=D,c.a(F,function(a){a.pc()})}function b(){try{t.documentElement.doScroll("left")}catch(d){setTimeout(b,1);return}a()}if(t.addEventListener)"complete"===t.readyState?a():t.addEventListener("DOMContentLoaded",a,D);else if(t.attachEvent){t.attachEvent("onreadystatechange",a);var d=D;try{d=n.frameElement===r}catch(f){}t.documentElement.doScroll&&d&&b()}c.Sb(n,"load",a,m)}function Ba(){x.init=function(a,b,d){if(d)return x[d]||(x[d]=F[d]=S(a,
b,d),x[d].ka()),x[d];d=x;if(F.mixpanel)d=F.mixpanel;else if(a)d=S(a,b,"mixpanel"),d.ka(),F.mixpanel=d;x=d;1===ca&&(n.mixpanel=x);Ca()}}function Ca(){c.a(F,function(a,b){"mixpanel"!==b&&(x[b]=a)});x._=c}function da(a){a=c.e(a)?a:c.g(a)?{}:{days:a};return c.extend({},Da,a)}function S(a,b,d){var f,h="mixpanel"===d?x:x[d];if(h&&0===ca)f=h;else{if(h&&!c.isArray(h)){o.error("You have already initialized "+d);return}f=new e}f.kb={};f.X(a,b,d);f.people=new j;f.people.X(f);if(!f.c("skip_first_touch_marketing")){var a=
c.info.Y(r),g={},v=D;c.a(a,function(a,b){(g["initial_"+b]=a)&&(v=m)});v&&f.people.M(g)}J=J||f.c("debug");!c.g(h)&&c.isArray(h)&&(f.Aa.call(f.people,h.people),f.Aa(h));return f}function e(){}function P(){}function Ea(a){return a}function q(a){this.props={};this.zd=D;this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;if("cookie"!==b&&"localStorage"!==b)o.A("Unknown persistence type "+b+"; falling back to cookie"),b=a.persistence="cookie";this.i="localStorage"===
b&&c.localStorage.sa()?c.localStorage:c.cookie;this.load();this.jc(a);this.vd(a);this.save()}function j(){}function u(){}function C(a,b){this.J=b.J;this.ba=new G(a,{J:c.bind(this.h,this),i:b.i});this.B=b.B;this.Yc=b.Zc;this.la=b.la;this.hd=b.jd;this.D=this.B.batch_size;this.pa=this.B.batch_flush_interval_ms;this.va=!this.B.batch_autostart;this.Ja=0;this.G={}}function na(a,b){var d=[];c.a(a,function(a){var c=a.id;if(c in b){if(c=b[c],c!==r)a.payload=c,d.push(a)}else d.push(a)});return d}function oa(a,
b){var d=[];c.a(a,function(a){a.id&&!b[a.id]&&d.push(a)});return d}function G(a,b){b=b||{};this.N=a;this.i=b.i||window.localStorage;this.h=b.J||c.bind(pa.error,pa);this.Xa=new qa(a,{i:this.i});this.ua=b.ua||r;this.H=[]}function qa(a,b){b=b||{};this.N=a;this.i=b.i||window.localStorage;this.Qb=b.Qb||100;this.dc=b.dc||2E3}function T(){this.Nb="submit"}function M(){this.Nb="click"}function E(){}function ra(a){var b=Fa,d=a.split("."),d=d[d.length-1];if(4<d.length||"com"===d||"org"===d)b=Ga;return(a=a.match(b))?
a[0]:""}function ea(a){var b=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return a?b.substring(0,a):b}function U(a,b){if(fa!==r&&!b)return fa;var d=m;try{var a=a||window.localStorage,c="__mplss_"+ea(8);a.setItem(c,"xyz");"xyz"!==a.getItem(c)&&(d=D);a.removeItem(c)}catch(h){d=D}return fa=d}function ga(a){return{log:ha(o.log,a),error:ha(o.error,a),A:ha(o.A,a)}}function ha(a,b){return function(){arguments[0]="["+b+"] "+arguments[0];return a.apply(o,arguments)}}
function Ha(a,b){sa(m,a,b)}function Ia(a,b){sa(D,a,b)}function Ja(a,b){return"1"===V(b).get(W(a,b))}function ta(a,b){if(Ka(b))return o.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),m;var d="0"===V(b).get(W(a,b));d&&o.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data.");return d}
function K(a){return ia(a,function(a){return this.c(a)})}function H(a){return ia(a,function(a){return this.p(a)})}function N(a){return ia(a,function(a){return this.p(a)})}function La(a,b){b=b||{};V(b).remove(W(a,b),!!b.xb,b.vb)}function V(a){a=a||{};return"localStorage"===a.Pb?c.localStorage:c.cookie}function W(a,b){b=b||{};return(b.Ob||Ma)+a}function Ka(a){if(a&&a.Eb)return D;var a=a&&a.window||n,b=a.navigator||{},d=D;c.a([b.doNotTrack,b.msDoNotTrack,a.doNotTrack],function(a){c.j([m,1,"1","yes"],
a)&&(d=m)});return d}function sa(a,b,d){!c.Wa(b)||!b.length?o.error("gdpr."+(a?"optIn":"optOut")+" called with an invalid token"):(d=d||{},V(d).set(W(b,d),a?1:0,c.Ib(d.wb)?d.wb:r,!!d.xb,!!d.Xc,!!d.zc,d.vb),d.o&&a&&d.o(d.od||"$opt_in",d.pd,{send_immediately:m}))}function ia(a,b){return function(){var d=D;try{var c=b.call(this,"token"),h=b.call(this,"ignore_dnt"),g=b.call(this,"opt_out_tracking_persistence_type"),v=b.call(this,"opt_out_tracking_cookie_prefix"),i=b.call(this,"window");c&&(d=ta(c,{Eb:h,
Pb:g,Ob:v,window:i}))}catch(e){o.error("Unexpected error when checking tracking opt-out status: "+e)}if(!d)return a.apply(this,arguments);d=arguments[arguments.length-1];"function"===typeof d&&d(0)}}var J=D,n;if("undefined"===typeof window){var A={hostname:""};n={navigator:{userAgent:""},document:{location:A,referrer:""},screen:{width:0,height:0},location:A}}else n=window;var A=Array.prototype,ua=Object.prototype,L=A.slice,Q=ua.toString,X=ua.hasOwnProperty,y=n.console,I=n.navigator,t=n.document,Y=
n.opera,Z=n.screen,z=I.userAgent,ja=Function.prototype.bind,va=A.forEach,wa=A.indexOf,xa=A.map,A=Array.isArray,ka={},c={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},o={log:function(){if(J&&!c.g(y)&&y)try{y.log.apply(y,arguments)}catch(a){c.a(arguments,function(a){y.log(a)})}},warn:function(){if(J&&!c.g(y)&&y){var a=["Mixpanel warning:"].concat(c.O(arguments));try{y.warn.apply(y,a)}catch(b){c.a(a,function(a){y.warn(a)})}}},error:function(){if(J&&!c.g(y)&&y){var a=["Mixpanel error:"].concat(c.O(arguments));
try{y.error.apply(y,a)}catch(b){c.a(a,function(a){y.error(a)})}}},A:function(){if(!c.g(y)&&y){var a=["Mixpanel error:"].concat(c.O(arguments));try{y.error.apply(y,a)}catch(b){c.a(a,function(a){y.error(a)})}}}};c.bind=function(a,b){var d,f;if(ja&&a.bind===ja)return ja.apply(a,L.call(arguments,1));if(!c.Va(a))throw new TypeError;d=L.call(arguments,2);return f=function(){if(!(this instanceof f))return a.apply(b,d.concat(L.call(arguments)));var c={};c.prototype=a.prototype;var g=new c;c.prototype=r;c=
a.apply(g,d.concat(L.call(arguments)));return Object(c)===c?c:g}};c.a=function(a,b,d){if(!(a===r||a===l))if(va&&a.forEach===va)a.forEach(b,d);else if(a.length===+a.length)for(var c=0,h=a.length;c<h&&!(c in a&&b.call(d,a[c],c,a)===ka);c++);else for(c in a)if(X.call(a,c)&&b.call(d,a[c],c,a)===ka)break};c.extend=function(a){c.a(L.call(arguments,1),function(b){for(var d in b)b[d]!==l&&(a[d]=b[d])});return a};c.isArray=A||function(a){return"[object Array]"===Q.call(a)};c.Va=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return D}};
c.Kc=function(a){return!(!a||!X.call(a,"callee"))};c.O=function(a){return!a?[]:a.O?a.O():c.isArray(a)||c.Kc(a)?L.call(a):c.xd(a)};c.map=function(a,b,d){if(xa&&a.map===xa)return a.map(b,d);var f=[];c.a(a,function(a){f.push(b.call(d,a))});return f};c.keys=function(a){var b=[];if(a===r)return b;c.a(a,function(a,c){b[b.length]=c});return b};c.xd=function(a){var b=[];if(a===r)return b;c.a(a,function(a){b[b.length]=a});return b};c.Ta=function(a,b){var d=D;if(a===r)return d;if(wa&&a.indexOf===wa)return-1!=
a.indexOf(b);c.a(a,function(a){if(d||(d=a===b))return ka});return d};c.j=function(a,b){return-1!==a.indexOf(b)};c.Gb=function(a,b){a.prototype=new b;a.ld=b.prototype};c.e=function(a){return a===Object(a)&&!c.isArray(a)};c.ra=function(a){if(c.e(a)){for(var b in a)if(X.call(a,b))return D;return m}return D};c.g=function(a){return a===l};c.Wa=function(a){return"[object String]"==Q.call(a)};c.Lc=function(a){return"[object Date]"==Q.call(a)};c.Ib=function(a){return"[object Number]"==Q.call(a)};c.Mc=function(a){return!!(a&&
1===a.nodeType)};c.Ma=function(a){c.a(a,function(b,d){c.Lc(b)?a[d]=c.Ec(b):c.e(b)&&(a[d]=c.Ma(b))});return a};c.timestamp=function(){Date.now=Date.now||function(){return+new Date};return Date.now()};c.Ec=function(a){function b(a){return 10>a?"0"+a:a}return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+"T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())};c.fa=function(a){var b={};c.a(a,function(a,f){c.Wa(a)&&0<a.length&&(b[f]=a)});return b};c.truncate=function(a,
b){var d;"string"===typeof a?d=a.slice(0,b):c.isArray(a)?(d=[],c.a(a,function(a){d.push(c.truncate(a,b))})):c.e(a)?(d={},c.a(a,function(a,h){d[h]=c.truncate(a,b)})):d=a;return d};c.ha=function(){return function(a){function b(a,c){var g="",v=0,i=v="",i=0,e=g,p=[],s=c[a];s&&"object"===typeof s&&"function"===typeof s.toJSON&&(s=s.toJSON(a));switch(typeof s){case "string":return d(s);case "number":return isFinite(s)?""+s:"null";case "boolean":case "null":return""+s;case "object":if(!s)return"null";g+=
" ";p=[];if("[object Array]"===Q.apply(s)){i=s.length;for(v=0;v<i;v+=1)p[v]=b(v,s)||"null";return i=0===p.length?"[]":g?"[\n"+g+p.join(",\n"+g)+"\n"+e+"]":"["+p.join(",")+"]"}for(v in s)X.call(s,v)&&(i=b(v,s))&&p.push(d(v)+(g?": ":":")+i);return i=0===p.length?"{}":g?"{"+p.join(",")+""+e+"}":"{"+p.join(",")+"}"}}function d(a){var b=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f",
"\r":"\\r",'"':'\\"',"\\":"\\\\"};b.lastIndex=0;return b.test(a)?'"'+a.replace(b,function(a){var b=d[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}return b("",{"":a})}}();c.S=function(){function a(){switch(i){case "t":return h("t"),h("r"),h("u"),h("e"),m;case "f":return h("f"),h("a"),h("l"),h("s"),h("e"),D;case "n":return h("n"),h("u"),h("l"),h("l"),r}g('Unexpected "'+i+'"')}function b(){for(;i&&" ">=i;)h()}function d(){var a,b,d="",c;if('"'===
i)for(;h();){if('"'===i)return h(),d;if("\\"===i)if(h(),"u"===i){for(b=c=0;4>b;b+=1){a=parseInt(h(),16);if(!isFinite(a))break;c=16*c+a}d+=String.fromCharCode(c)}else if("string"===typeof k[i])d+=k[i];else break;else d+=i}g("Bad string")}function c(){var a;a="";"-"===i&&(a="-",h("-"));for(;"0"<=i&&"9">=i;)a+=i,h();if("."===i)for(a+=".";h()&&"0"<=i&&"9">=i;)a+=i;if("e"===i||"E"===i){a+=i;h();if("-"===i||"+"===i)a+=i,h();for(;"0"<=i&&"9">=i;)a+=i,h()}a=+a;if(isFinite(a))return a;g("Bad number")}function h(a){a&&
a!==i&&g("Expected '"+a+"' instead of '"+i+"'");i=p.charAt(e);e+=1;return i}function g(a){a=new SyntaxError(a);a.yd=e;a.text=p;throw a;}var e,i,k={'"':'"',"\\":"\\","/":"/",b:"\u0008",f:"\u000c",n:"\n",r:"\r",t:"\t"},p,s;s=function(){b();switch(i){case "{":var e;a:{var v,k={};if("{"===i){h("{");b();if("}"===i){h("}");e=k;break a}for(;i;){v=d();b();h(":");Object.hasOwnProperty.call(k,v)&&g('Duplicate key "'+v+'"');k[v]=s();b();if("}"===i){h("}");e=k;break a}h(",");b()}}g("Bad object")}return e;case "[":a:{e=
[];if("["===i){h("[");b();if("]"===i){h("]");v=e;break a}for(;i;){e.push(s());b();if("]"===i){h("]");v=e;break a}h(",");b()}}g("Bad array")}return v;case '"':return d();case "-":return c();default:return"0"<=i&&"9">=i?c():a()}};return function(a){p=a;e=0;i=" ";a=s();b();i&&g("Syntax error");return a}}();c.xc=function(a){var b,d,f,h,g=0,e=0,i="",i=[];if(!a)return a;a=c.wd(a);do b=a.charCodeAt(g++),d=a.charCodeAt(g++),f=a.charCodeAt(g++),h=b<<16|d<<8|f,b=h>>18&63,d=h>>12&63,f=h>>6&63,h&=63,i[e++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)+
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h);while(g<a.length);i=i.join("");switch(a.length%3){case 1:i=i.slice(0,-2)+"==";break;case 2:i=i.slice(0,-1)+"="}return i};c.wd=function(a){var a=(a+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),b="",d,c,h=0,g;d=c=0;h=a.length;for(g=0;g<h;g++){var e=a.charCodeAt(g),i=r;
128>e?c++:i=127<e&&2048>e?String.fromCharCode(e>>6|192,e&63|128):String.fromCharCode(e>>12|224,e>>6&63|128,e&63|128);i!==r&&(c>d&&(b+=a.substring(d,c)),b+=i,d=c=g+1)}c>d&&(b+=a.substring(d,a.length));return b};c.ib=function(){function a(){function a(b,d){var c,f=0;for(c=0;c<d.length;c++)f|=g[c]<<8*c;return b^f}var b,c,g=[],e=0;for(b=0;b<z.length;b++)c=z.charCodeAt(b),g.unshift(c&255),4<=g.length&&(e=a(e,g),g=[]);0<g.length&&(e=a(e,g));return e.toString(16)}function b(){var a=1*new Date,b;if(n.performance&&
n.performance.now)b=n.performance.now();else for(b=0;a==1*new Date;)b++;return a.toString(16)+Math.floor(b).toString(16)}return function(){var c=(Z.height*Z.width).toString(16);return b()+"-"+Math.random().toString(16).replace(".","")+"-"+a()+"-"+c+"-"+b()}}();var ya="ahrefsbot,ahrefssiteaudit,baiduspider,bingbot,bingpreview,chrome-lighthouse,facebookexternal,petalbot,pinterest,screaming frog,yahoo! slurp,yandexbot,adsbot-google,apis-google,duplexweb-google,feedfetcher-google,google favicon,google web preview,google-read-aloud,googlebot,googleweblight,mediapartners-google,storebot-google".split(",");
c.Hb=function(a){var b,a=a.toLowerCase();for(b=0;b<ya.length;b++)if(-1!==a.indexOf(ya[b]))return m;return D};c.mc=function(a){var b,d,f,h=[];c.g(b)&&(b="&");c.a(a,function(a,b){d=encodeURIComponent(a.toString());f=encodeURIComponent(b);h[h.length]=f+"="+d});return h.join(b)};c.Qa=function(a,b){var b=b.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),c=RegExp("[\\?&]"+b+"=([^&#]*)").exec(a);if(c===r||c&&"string"!==typeof c[1]&&c[1].length)return"";c=c[1];try{c=decodeURIComponent(c)}catch(f){o.error("Skipping decoding for malformed query param: "+
c)}return c.replace(/\+/g," ")};c.cookie={get:function(a){for(var a=a+"=",b=t.cookie.split(";"),c=0;c<b.length;c++){for(var f=b[c];" "==f.charAt(0);)f=f.substring(1,f.length);if(0===f.indexOf(a))return decodeURIComponent(f.substring(a.length,f.length))}return r},parse:function(a){var b;try{b=c.S(c.cookie.get(a))||{}}catch(d){}return b},Cd:function(a,b,c,f,h,g,e){var i="",k="",p="";e?i="; domain="+e:f&&(i=(i=ra(t.location.hostname))?"; domain=."+i:"");c&&(k=new Date,k.setTime(k.getTime()+1E3*c),k=
"; expires="+k.toGMTString());g&&(h=m,p="; SameSite=None");h&&(p+="; secure");t.cookie=a+"="+encodeURIComponent(b)+k+"; path=/"+i+p},set:function(a,b,c,f,h,g,e){var i="",k="",p="";e?i="; domain="+e:f&&(i=(i=ra(t.location.hostname))?"; domain=."+i:"");c&&(k=new Date,k.setTime(k.getTime()+864E5*c),k="; expires="+k.toGMTString());g&&(h=m,p="; SameSite=None");h&&(p+="; secure");a=a+"="+encodeURIComponent(b)+k+"; path=/"+i+p;return t.cookie=a},remove:function(a,b,d){c.cookie.set(a,"",-1,b,D,D,d)}};var fa=
r;c.localStorage={sa:function(a){(a=U(r,a))||o.error("localStorage unsupported; falling back to cookie store");return a},error:function(a){o.error("localStorage error: "+a)},get:function(a){try{return window.localStorage.getItem(a)}catch(b){c.localStorage.error(b)}return r},parse:function(a){try{return c.S(c.localStorage.get(a))||{}}catch(b){}return r},set:function(a,b){try{window.localStorage.setItem(a,b)}catch(d){c.localStorage.error(d)}},remove:function(a){try{window.localStorage.removeItem(a)}catch(b){c.localStorage.error(b)}}};
c.Sb=function(){function a(a,f,h){return function(g){if(g=g||b(window.event)){var e=m,i;c.Va(h)&&(i=h(g));g=f.call(a,g);if(D===i||D===g)e=D;return e}}}function b(a){if(a)a.preventDefault=b.preventDefault,a.stopPropagation=b.stopPropagation;return a}b.preventDefault=function(){this.returnValue=D};b.stopPropagation=function(){this.cancelBubble=m};return function(b,c,h,g,e){b?b.addEventListener&&!g?b.addEventListener(c,h,!!e):(c="on"+c,b[c]=a(b,h,b[c])):o.error("No valid element provided to register_event")}}();
var Na=/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/;c.Bc=function(){function a(a,b){return 0<=(" "+a.className+" ").replace(d," ").indexOf(" "+b+" ")}function b(b){if(!t.getElementsByTagName)return[];var b=b.split(" "),d,g,e,i,k,p,s,w=[t];for(i=0;i<b.length;i++)if(d=b[i].replace(/^\s+/,"").replace(/\s+$/,""),-1<d.indexOf("#")){g=d.split("#");d=g[0];w=t.getElementById(g[1]);if(!w||d&&w.nodeName.toLowerCase()!=d)return[];w=[w]}else if(-1<d.indexOf(".")){g=d.split(".");d=g[0];var B=g[1];d||(d="*");
g=[];for(k=e=0;k<w.length;k++){s="*"==d?w[k].all?w[k].all:w[k].getElementsByTagName("*"):w[k].getElementsByTagName(d);for(p=0;p<s.length;p++)g[e++]=s[p]}w=[];for(k=d=0;k<g.length;k++)g[k].className&&c.Wa(g[k].className)&&a(g[k],B)&&(w[d++]=g[k])}else if(g=d.match(Na)){d=g[1];var j=g[2],B=g[3],n=g[4];d||(d="*");g=[];for(k=e=0;k<w.length;k++){s="*"==d?w[k].all?w[k].all:w[k].getElementsByTagName("*"):w[k].getElementsByTagName(d);for(p=0;p<s.length;p++)g[e++]=s[p]}w=[];d=0;switch(B){case "=":B=function(a){return a.getAttribute(j)==
n};break;case "~":B=function(a){return a.getAttribute(j).match(RegExp("\\b"+n+"\\b"))};break;case "|":B=function(a){return a.getAttribute(j).match(RegExp("^"+n+"-?"))};break;case "^":B=function(a){return 0===a.getAttribute(j).indexOf(n)};break;case "$":B=function(a){return a.getAttribute(j).lastIndexOf(n)==a.getAttribute(j).length-n.length};break;case "*":B=function(a){return-1<a.getAttribute(j).indexOf(n)};break;default:B=function(a){return a.getAttribute(j)}}w=[];for(k=d=0;k<g.length;k++)B(g[k])&&
(w[d++]=g[k])}else{g=[];for(k=e=0;k<w.length;k++){s=w[k].getElementsByTagName(d);for(p=0;p<s.length;p++)g[e++]=s[p]}w=g}return w}var d=/[\t\r\n]/g;return function(a){return c.Mc(a)?[a]:c.e(a)&&!c.g(a.length)?a:b.call(this,a)}}();var Oa=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],Pa="dclid,fbclid,gclid,ko_click_id,li_fat_id,msclkid,ttclid,twclid,wbraid".split(",");c.info={Y:function(a){var b="",d={};c.a(Oa,function(f){b=c.Qa(t.URL,f);b.length?d[f]=b:a!==l&&(d[f]=a)});return d},
ub:function(){var a="",b={};c.a(Pa,function(d){a=c.Qa(t.URL,d);a.length&&(b[d]=a)});return b},Nc:function(){return c.extend(c.info.Y(),c.info.ub())},Vc:function(a){return 0===a.search("https?://(.*)google.([^/?]*)")?"google":0===a.search("https?://(.*)bing.com")?"bing":0===a.search("https?://(.*)yahoo.com")?"yahoo":0===a.search("https?://(.*)duckduckgo.com")?"duckduckgo":r},Wc:function(a){var b=c.info.Vc(a),d={};if(b!==r)d.$search_engine=b,a=c.Qa(a,"yahoo"!=b?"q":"p"),a.length&&(d.mp_keyword=a);return d},
ma:function(a,b,d){return d||c.j(a," OPR/")?c.j(a,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":c.j(a,"IEMobile")||c.j(a,"WPDesktop")?"Internet Explorer Mobile":c.j(a,"SamsungBrowser/")?"Samsung Internet":c.j(a,"Edge")||c.j(a,"Edg/")?"Microsoft Edge":c.j(a,"FBIOS")?"Facebook Mobile":c.j(a,"Chrome")?"Chrome":c.j(a,"CriOS")?"Chrome iOS":c.j(a,"UCWEB")||c.j(a,"UCBrowser")?"UC Browser":c.j(a,"FxiOS")?"Firefox iOS":c.j(b||"","Apple")?c.j(a,"Mobile")?"Mobile Safari":"Safari":
c.j(a,"Android")?"Android Mobile":c.j(a,"Konqueror")?"Konqueror":c.j(a,"Firefox")?"Firefox":c.j(a,"MSIE")||c.j(a,"Trident/")?"Internet Explorer":c.j(a,"Gecko")?"Mozilla":""},Ia:function(a,b,d){b={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,
Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[c.info.ma(a,b,d)];if(b===l)return r;a=a.match(b);return!a?r:parseFloat(a[a.length-2])},Mb:function(){return/Windows/i.test(z)?/Phone/.test(z)||/WPDesktop/.test(z)?"Windows Phone":"Windows":
/(iPhone|iPad|iPod)/.test(z)?"iOS":/Android/.test(z)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(z)?"BlackBerry":/Mac/i.test(z)?"Mac OS X":/Linux/.test(z)?"Linux":/CrOS/.test(z)?"Chrome OS":""},Bb:function(a){return/Windows Phone/i.test(a)||/WPDesktop/.test(a)?"Windows Phone":/iPad/.test(a)?"iPad":/iPod/.test(a)?"iPod Touch":/iPhone/.test(a)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":/Android/.test(a)?"Android":""},Rb:function(a){a=a.split("/");return 3<=a.length?a[2]:""},La:function(){return n.location.href},
aa:function(a){"object"!==typeof a&&(a={});return c.extend(c.fa({$os:c.info.Mb(),$browser:c.info.ma(z,I.vendor,Y),$referrer:t.referrer,$referring_domain:c.info.Rb(t.referrer),$device:c.info.Bb(z)}),{$current_url:c.info.La(),$browser_version:c.info.Ia(z,I.vendor,Y),$screen_height:Z.height,$screen_width:Z.width,mp_lib:"web",$lib_version:"2.50.0",$insert_id:ea(),time:c.timestamp()/1E3},c.fa(a))},Rc:function(){return c.extend(c.fa({$os:c.info.Mb(),$browser:c.info.ma(z,I.vendor,Y)}),{$browser_version:c.info.Ia(z,
I.vendor,Y)})},Oc:function(){return c.fa({current_page_title:t.title,current_domain:n.location.hostname,current_url_path:n.location.pathname,current_url_protocol:n.location.protocol,current_url_search:n.location.search})}};var Ga=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Fa=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,$=r,aa=r;if("undefined"!==typeof JSON)$=JSON.stringify,aa=JSON.parse;$=$||c.ha;aa=aa||c.S;c.toArray=c.O;c.isObject=c.e;c.JSONEncode=c.ha;c.JSONDecode=c.S;c.isBlockedUA=c.Hb;c.isEmptyObject=c.ra;c.info=
c.info;c.info.device=c.info.Bb;c.info.browser=c.info.ma;c.info.browserVersion=c.info.Ia;c.info.properties=c.info.aa;E.prototype.oa=function(){};E.prototype.Oa=function(){};E.prototype.Ga=function(){};E.prototype.Ua=function(a){this.Jb=a;return this};E.prototype.o=function(a,b,d,f){var h=this,g=c.Bc(a);if(0===g.length)o.error("The DOM query ("+a+") returned 0 elements");else return c.a(g,function(a){c.Sb(a,this.Nb,function(a){var c={},g=h.oa(d,this),e=h.Jb.c("track_links_timeout");h.Oa(a,this,c);window.setTimeout(h.fc(f,
g,c,m),e);h.Jb.o(b,g,h.fc(f,g,c))})},this),m};E.prototype.fc=function(a,b,c,f){var f=f||D,h=this;return function(){if(!c.yc)c.yc=m,a&&a(f,b)===D||h.Ga(b,c,f)}};E.prototype.oa=function(a,b){return"function"===typeof a?a(b):c.extend({},a)};c.Gb(M,E);M.prototype.oa=function(a,b){var c=M.ld.oa.apply(this,arguments);if(b.href)c.url=b.href;return c};M.prototype.Oa=function(a,b,c){c.Kb=2===a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;c.href=b.href;c.Kb||a.preventDefault()};M.prototype.Ga=function(a,
b){b.Kb||setTimeout(function(){window.location=b.href},0)};c.Gb(T,E);T.prototype.Oa=function(a,b,c){c.element=b;a.preventDefault()};T.prototype.Ga=function(a,b){setTimeout(function(){b.element.submit()},0)};var Qa=ga("lock");qa.prototype.hb=function(a,b,c){function f(){j.setItem(o,"1");try{a()}finally{j.removeItem(o),j.getItem(q)===k&&j.removeItem(q),j.getItem(n)===k&&j.removeItem(n)}}function h(){j.setItem(n,k);e(g,function(){j.getItem(n)===k?f():i(function(){j.getItem(q)!==k?h():e(function(){return!j.getItem(o)},
f)})})}function g(){var a=j.getItem(q);if(a&&a!==k)return D;j.setItem(q,k);if(j.getItem(q)===k)return m;if(!U(j,m))throw Error("localStorage support dropped while acquiring lock");return D}function e(a,b){a()?b():i(function(){e(a,b)})}function i(a){(new Date).getTime()-p>B?(Qa.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+k+"]"),j.removeItem(o),j.removeItem(q),h()):setTimeout(function(){try{a()}catch(c){b&&b(c)}},w*(Math.random()+0.1))}!c&&"function"!==typeof b&&(c=b,b=r);var k=c||
(new Date).getTime()+"|"+Math.random(),p=(new Date).getTime(),s=this.N,w=this.Qb,B=this.dc,j=this.i,n=s+":X",q=s+":Y",o=s+":Z";try{if(U(j,m))h();else throw Error("localStorage support check failed");}catch(t){b&&b(t)}};var pa=ga("batch");G.prototype.Na=function(a,b,d){var f={id:ea(),flushAfter:(new Date).getTime()+2*b,payload:a};this.Xa.hb(c.bind(function(){var b;try{var c=this.da();c.push(f);(b=this.$a(c))&&this.H.push(f)}catch(e){this.h("Error enqueueing item",a),b=D}d&&d(b)},this),c.bind(function(a){this.h("Error acquiring storage lock",
a);d&&d(D)},this),this.ua)};G.prototype.Dc=function(a){var b=this.H.slice(0,a);if(b.length<a){var d=this.da();if(d.length){var f={};c.a(b,function(a){f[a.id]=m});for(var h=0;h<d.length;h++){var g=d[h];if((new Date).getTime()>g.flushAfter&&!f[g.id]&&(g.Qc=m,b.push(g),b.length>=a))break}}}return b};G.prototype.Sc=function(a,b){var d={};c.a(a,function(a){d[a]=m});this.H=oa(this.H,d);var f=c.bind(function(){var b;try{var c=this.da(),c=oa(c,d);if(b=this.$a(c))for(var c=this.da(),f=0;f<c.length;f++){var e=
c[f];if(e.id&&d[e.id])return this.h("Item not removed from storage"),D}}catch(k){this.h("Error removing items",a),b=D}return b},this);this.Xa.hb(function(){var a=f();b&&b(a)},c.bind(function(a){var c=D;this.h("Error acquiring storage lock",a);if(!U(this.i,m)&&(c=f(),!c))try{this.i.removeItem(this.N)}catch(d){this.h("Error clearing queue",d)}b&&b(c)},this),this.ua)};G.prototype.ud=function(a){this.H=na(this.H,a);this.Xa.hb(c.bind(function(){try{var b=this.da(),b=na(b,a);this.$a(b)}catch(c){this.h("Error updating items",
a)}},this),c.bind(function(a){this.h("Error acquiring storage lock",a)},this),this.ua)};G.prototype.da=function(){var a;try{if(a=this.i.getItem(this.N))a=aa(a),c.isArray(a)||(this.h("Invalid storage entry:",a),a=r)}catch(b){this.h("Error retrieving queue",b),a=r}return a||[]};G.prototype.$a=function(a){try{return this.i.setItem(this.N,$(a)),m}catch(b){return this.h("Error saving queue",b),D}};G.prototype.clear=function(){this.H=[];this.i.removeItem(this.N)};var R=ga("batch");C.prototype.Na=function(a,
b){this.ba.Na(a,this.pa,b)};C.prototype.start=function(){this.va=D;this.Ja=0;this.flush()};C.prototype.stop=function(){this.va=m;if(this.cb)clearTimeout(this.cb),this.cb=r};C.prototype.clear=function(){this.ba.clear()};C.prototype.Vb=function(){this.D=this.B.batch_size};C.prototype.ea=function(){this.Wb(this.B.batch_flush_interval_ms)};C.prototype.Wb=function(a){this.pa=a;if(!this.va)this.cb=setTimeout(c.bind(this.flush,this),this.pa)};C.prototype.flush=function(a){try{if(this.Ub)R.log("Flush: Request already in progress");
else{var a=a||{},b=this.B.batch_request_timeout_ms,d=(new Date).getTime(),f=this.D,h=this.ba.Dc(f),e=[],v={};c.a(h,function(a){var b=a.payload;this.la&&!a.Qc&&(b=this.la(b));if(b){b.event&&b.properties&&(b.properties=c.extend({},b.properties,{mp_sent_by_lib_version:"2.50.0"}));var d=m,f=a.id;if(f){if(5<(this.G[f]||0))this.h("[dupe] item ID sent too many times, not sending",{item:a,D:h.length,nd:this.G[f]}),d=D}else this.h("[dupe] found item with no ID",{item:a});d&&e.push(b)}v[a.id]=b},this);if(1>
e.length)this.ea();else{this.Ub=m;var i=c.bind(function(e){this.Ub=D;try{var g=D;if(a.hc)this.ba.ud(v);else if(c.e(e)&&"timeout"===e.error&&(new Date).getTime()-d>=b)this.h("Network timeout; retrying"),this.flush();else if(c.e(e)&&e.R&&(500<=e.R.status||429===e.R.status||"timeout"===e.error)){var i=2*this.pa,k=e.R.responseHeaders;if(k){var j=k["Retry-After"];j&&(i=1E3*parseInt(j,10)||i)}i=Math.min(6E5,i);this.h("Error; retry in "+i+" ms");this.Wb(i)}else if(c.e(e)&&e.R&&413===e.R.status)if(1<h.length){var p=
Math.max(1,Math.floor(f/2));this.D=Math.min(this.D,p,h.length-1);this.h("413 response; reducing batch size to "+this.D);this.ea()}else this.h("Single-event request too large; dropping",h),this.Vb(),g=m;else g=m;g&&(this.ba.Sc(c.map(h,function(a){return a.id}),c.bind(function(a){a?(this.Ja=0,this.flush()):(this.h("Failed to remove items from queue"),5<++this.Ja?(this.h("Too many queue failures; disabling batching system."),this.hd()):this.ea())},this)),c.a(h,c.bind(function(a){var b=a.id;b?(this.G[b]=
this.G[b]||0,this.G[b]++,5<this.G[b]&&this.h("[dupe] item ID sent too many times",{item:a,D:h.length,nd:this.G[b]})):this.h("[dupe] found item with no ID while removing",{item:a})},this)))}catch(n){this.h("Error handling API response",n),this.ea()}},this),k={method:"POST",lc:m,Ic:m,ec:b};if(a.hc)k.fb="sendBeacon";R.log("MIXPANEL REQUEST:",e);this.Yc(e,k,i)}}}catch(j){this.h("Error flushing request queue",j),this.ea()}};C.prototype.h=function(a,b){R.error.apply(R.error,arguments);if(this.J)try{b instanceof
Error||(b=Error(a)),this.J(a,b)}catch(c){R.error(c)}};var Ma="__mp_opt_in_out_",A={Yb:function(a,b){var d={},f={};c.e(a)?c.a(a,function(a,b){this.z(b)||(f[b]=a)},this):f[a]=b;d.$set=f;return d},ic:function(a){var b={},d=[];c.isArray(a)||(a=[a]);c.a(a,function(a){this.z(a)||d.push(a)},this);b.$unset=d;return b},ac:function(a,b){var d={},f={};c.e(a)?c.a(a,function(a,b){this.z(b)||(f[b]=a)},this):f[a]=b;d.$set_once=f;return d},gc:function(a,b){var d={},f={};c.e(a)?c.a(a,function(a,b){this.z(b)||(f[b]=
c.isArray(a)?a:[a])},this):f[a]=c.isArray(b)?b:[b];d.$union=f;return d},wc:function(a,b){var d={},f={};c.e(a)?c.a(a,function(a,b){this.z(b)||(f[b]=a)},this):f[a]=b;d.$append=f;return d},Tb:function(a,b){var d={},f={};c.e(a)?c.a(a,function(a,b){this.z(b)||(f[b]=a)},this):f[a]=b;d.$remove=f;return d},Ad:function(){return{$delete:""}}};c.extend(u.prototype,A);u.prototype.X=function(a,b,c){this.d=a;this.Ca=b;this.Ba=c};u.prototype.set=N(function(a,b,d){var f=this.Yb(a,b);c.e(a)&&(d=b);return this.k(f,
d)});u.prototype.M=N(function(a,b,d){var f=this.ac(a,b);c.e(a)&&(d=b);return this.k(f,d)});u.prototype.wa=N(function(a,b){return this.k(this.ic(a),b)});u.prototype.ga=N(function(a,b,d){c.e(a)&&(d=b);return this.k(this.gc(a,b),d)});u.prototype["delete"]=N(function(a){return this.k({$delete:""},a)});u.prototype.remove=N(function(a,b,c){return this.k(this.Tb(a,b),c)});u.prototype.k=function(a,b){a.$group_key=this.Ca;a.$group_id=this.Ba;a.$token=this.p("token");return this.d.Fa({type:"groups",data:c.Ma(a),
F:this.p("api_host")+"/"+this.p("api_routes").groups,Ha:this.d.u.Ra},b)};u.prototype.z=function(a){return"$group_key"===a||"$group_id"===a};u.prototype.p=function(a){return this.d.c(a)};u.prototype.toString=function(){return this.d.toString()+".group."+this.Ca+"."+this.Ba};u.prototype.remove=u.prototype.remove;u.prototype.set=u.prototype.set;u.prototype.set_once=u.prototype.M;u.prototype.union=u.prototype.ga;u.prototype.unset=u.prototype.wa;u.prototype.toString=u.prototype.toString;c.extend(j.prototype,
A);j.prototype.X=function(a){this.d=a};j.prototype.set=H(function(a,b,d){var f=this.Yb(a,b);c.e(a)&&(d=b);this.p("save_referrer")&&this.d.persistence.gb(document.referrer);f.$set=c.extend({},c.info.Rc(),f.$set);return this.k(f,d)});j.prototype.M=H(function(a,b,d){var f=this.ac(a,b);c.e(a)&&(d=b);return this.k(f,d)});j.prototype.wa=H(function(a,b){return this.k(this.ic(a),b)});j.prototype.Fb=H(function(a,b,d){var f={},e={};c.e(a)?(c.a(a,function(a,b){this.z(b)||(isNaN(parseFloat(a))?o.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):
e[b]=a)},this),d=b):(c.g(b)&&(b=1),e[a]=b);f.$add=e;return this.k(f,d)});j.prototype.append=H(function(a,b,d){c.e(a)&&(d=b);return this.k(this.wc(a,b),d)});j.prototype.remove=H(function(a,b,d){c.e(a)&&(d=b);return this.k(this.Tb(a,b),d)});j.prototype.ga=H(function(a,b,d){c.e(a)&&(d=b);return this.k(this.gc(a,b),d)});j.prototype.qd=H(function(a,b,d){if(!c.Ib(a)&&(a=parseFloat(a),isNaN(a))){o.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",
c.extend({$amount:a},b),d)});j.prototype.sb=function(a){return this.set("$transactions",[],a)};j.prototype.Ab=function(){if(this.Da())return this.k({$delete:this.d.L()});o.error("mixpanel.people.delete_user() requires you to call identify() first")};j.prototype.toString=function(){return this.d.toString()+".people"};j.prototype.k=function(a,b){a.$token=this.p("token");a.$distinct_id=this.d.L();var d=this.d.s("$device_id"),f=this.d.s("$user_id"),e=this.d.s("$had_persisted_distinct_id");d&&(a.$device_id=
d);f&&(a.$user_id=f);e&&(a.$had_persisted_distinct_id=e);d=c.Ma(a);return!this.Da()?(this.qc(a),c.g(b)||(this.p("verbose")?b({status:-1,error:r}):b(-1)),c.truncate(d,255)):this.d.Fa({type:"people",data:d,F:this.p("api_host")+"/"+this.p("api_routes").engage,Ha:this.d.u.Za},b)};j.prototype.p=function(a){return this.d.c(a)};j.prototype.Da=function(){return this.d.U.Db===m};j.prototype.qc=function(a){"$set"in a?this.d.persistence.q("$set",a):"$set_once"in a?this.d.persistence.q("$set_once",a):"$unset"in
a?this.d.persistence.q("$unset",a):"$add"in a?this.d.persistence.q("$add",a):"$append"in a?this.d.persistence.q("$append",a):"$remove"in a?this.d.persistence.q("$remove",a):"$union"in a?this.d.persistence.q("$union",a):o.error("Invalid call to _enqueue():",a)};j.prototype.V=function(a,b,d,f){var e=this,g=c.extend({},this.d.persistence.$(a)),j=g;!c.g(g)&&c.e(g)&&!c.ra(g)&&(e.d.persistence.v(a,g),e.d.persistence.save(),f&&(j=f(g)),b.call(e,j,function(b,f){0===b&&e.d.persistence.q(a,g);c.g(d)||d(b,f)}))};
j.prototype.rc=function(a,b,d,f,e,g,j){var i=this;this.V("$set",this.set,a);this.V("$set_once",this.M,f);this.V("$unset",this.wa,g,function(a){return c.keys(a)});this.V("$add",this.Fb,b);this.V("$union",this.ga,e);a=this.d.persistence.$("$append");if(!c.g(a)&&c.isArray(a)&&a.length)for(var k,b=function(a,b){0===a&&i.d.persistence.q("$append",k);c.g(d)||d(a,b)},f=a.length-1;0<=f;f--)a=this.d.persistence.$("$append"),k=a.pop(),i.d.persistence.save(),c.ra(k)||i.append(k,b);a=this.d.persistence.$("$remove");
if(!c.g(a)&&c.isArray(a)&&a.length)for(var p,b=function(a,b){0===a&&i.d.persistence.q("$remove",p);c.g(j)||j(a,b)},f=a.length-1;0<=f;f--)a=this.d.persistence.$("$remove"),p=a.pop(),i.d.persistence.save(),c.ra(p)||i.remove(p,b)};j.prototype.z=function(a){return"$distinct_id"===a||"$token"===a||"$device_id"===a||"$user_id"===a||"$had_persisted_distinct_id"===a};j.prototype.set=j.prototype.set;j.prototype.set_once=j.prototype.M;j.prototype.unset=j.prototype.wa;j.prototype.increment=j.prototype.Fb;j.prototype.append=
j.prototype.append;j.prototype.remove=j.prototype.remove;j.prototype.union=j.prototype.ga;j.prototype.track_charge=j.prototype.qd;j.prototype.clear_charges=j.prototype.sb;j.prototype.delete_user=j.prototype.Ab;j.prototype.toString=j.prototype.toString;var Ra="__mps,__mpso,__mpus,__mpa,__mpap,__mpr,__mpu,$people_distinct_id,__alias,__timers".split(",");q.prototype.aa=function(){var a={};this.load();c.a(this.props,function(b,d){c.Ta(Ra,d)||(a[d]=b)});return a};q.prototype.load=function(){if(!this.disabled){var a=
this.i.parse(this.name);a&&(this.props=c.extend({},a))}};q.prototype.vd=function(a){var b=a.upgrade,d;if(b)d="mp_super_properties","string"===typeof b&&(d=b),b=this.i.parse(d),this.i.remove(d),this.i.remove(d,m),b&&(this.props=c.extend(this.props,b.all,b.events));if(!a.cookie_name&&"mixpanel"!==a.name&&(d="mp_"+a.token+"_"+a.name,b=this.i.parse(d)))this.i.remove(d),this.i.remove(d,m),this.w(b);this.i===c.localStorage&&(b=c.cookie.parse(this.name),c.cookie.remove(this.name),c.cookie.remove(this.name,
m),b&&this.w(b))};q.prototype.save=function(){this.disabled||this.i.set(this.name,c.ha(this.props),this.Pa,this.Ka,this.Xb,this.yb,this.na)};q.prototype.ta=function(a){this.load();return this.props[a]};q.prototype.remove=function(){this.i.remove(this.name,D,this.na);this.i.remove(this.name,m,this.na)};q.prototype.clear=function(){this.remove();this.props={}};q.prototype.w=function(a,b,d){return c.e(a)?("undefined"===typeof b&&(b="None"),this.Pa="undefined"===typeof d?this.zb:d,this.load(),c.a(a,function(a,
c){if(!this.props.hasOwnProperty(c)||this.props[c]===b)this.props[c]=a},this),this.save(),m):D};q.prototype.m=function(a,b){return c.e(a)?(this.Pa="undefined"===typeof b?this.zb:b,this.load(),c.extend(this.props,a),this.save(),m):D};q.prototype.Q=function(a){this.load();a in this.props&&(delete this.props[a],this.save())};q.prototype.kc=function(a){this.m(c.info.Wc(a))};q.prototype.gb=function(a){this.w({$initial_referrer:a||"$direct",$initial_referring_domain:c.info.Rb(a)||"$direct"},"")};q.prototype.Hc=
function(){return c.fa({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};q.prototype.jc=function(a){this.zb=this.Pa=a.cookie_expiration;this.$b(a.disable_persistence);this.ad(a.cookie_domain);this.bd(a.cross_site_cookie);this.cd(a.cross_subdomain_cookie);this.fd(a.secure_cookie)};q.prototype.$b=function(a){(this.disabled=a)?this.remove():this.save()};q.prototype.ad=function(a){if(a!==this.na)this.remove(),this.na=a,this.save()};q.prototype.bd=
function(a){if(a!==this.yb)this.yb=a,this.remove(),this.save()};q.prototype.cd=function(a){if(a!==this.Ka)this.Ka=a,this.remove(),this.save()};q.prototype.Fc=function(){return this.Ka};q.prototype.fd=function(a){if(a!==this.Xb)this.Xb=a?m:D,this.remove(),this.save()};q.prototype.q=function(a,b){var d=this.ja(a),f=b[a],e=this.C("$set"),g=this.C("$set_once"),j=this.C("$unset"),i=this.C("$add"),k=this.C("$union"),p=this.C("$remove",[]),n=this.C("$append",[]);"__mps"===d?(c.extend(e,f),this.v("$add",
f),this.v("$union",f),this.v("$unset",f)):"__mpso"===d?(c.a(f,function(a,b){b in g||(g[b]=a)}),this.v("$unset",f)):"__mpus"===d?c.a(f,function(a){c.a([e,g,i,k],function(b){a in b&&delete b[a]});c.a(n,function(b){a in b&&delete b[a]});j[a]=m}):"__mpa"===d?(c.a(f,function(a,b){b in e?e[b]+=a:(b in i||(i[b]=0),i[b]+=a)},this),this.v("$unset",f)):"__mpu"===d?(c.a(f,function(a,b){c.isArray(a)&&(b in k||(k[b]=[]),k[b]=k[b].concat(a))}),this.v("$unset",f)):"__mpr"===d?(p.push(f),this.v("$append",f)):"__mpap"===
d&&(n.push(f),this.v("$unset",f));o.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");o.log(b);this.save()};q.prototype.v=function(a,b){var d=this.props[this.ja(a)];c.g(d)||c.a(b,function(b,e){"$append"===a||"$remove"===a?c.a(d,function(a){a[e]===b&&delete a[e]}):delete d[e]},this)};q.prototype.$=function(a){return this.ta(this.ja(a))};q.prototype.ja=function(a){if("$set"===a)return"__mps";if("$set_once"===a)return"__mpso";if("$unset"===a)return"__mpus";if("$add"===a)return"__mpa";if("$append"===
a)return"__mpap";if("$remove"===a)return"__mpr";if("$union"===a)return"__mpu";o.error("Invalid queue:",a)};q.prototype.C=function(a,b){var d=this.ja(a),b=c.g(b)?{}:b;return this.props[d]||(this.props[d]=b)};q.prototype.dd=function(a){var b=(new Date).getTime(),c=this.ta("__timers")||{};c[a]=b;this.props.__timers=c;this.save()};q.prototype.Tc=function(a){var b=(this.ta("__timers")||{})[a];c.g(b)||(delete this.props.__timers[a],this.save());return b};var ca,x,O=n.XMLHttpRequest&&"withCredentials"in
new XMLHttpRequest,ma=!O&&-1===z.indexOf("MSIE")&&-1===z.indexOf("Mozilla"),ba=r;I.sendBeacon&&(ba=function(){return I.sendBeacon.apply(I,arguments)});var A={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},za={api_host:"https://api-js.mixpanel.com",api_routes:A,api_method:"POST",api_transport:"XHR",api_payload_format:"base64",app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:D,cross_subdomain_cookie:m,error_reporter:P,persistence:"cookie",persistence_name:"",
cookie_domain:"",cookie_name:"",loaded:P,mp_loader:r,track_marketing:m,track_pageview:D,skip_first_touch_marketing:D,store_google:m,stop_utm_persistence:D,save_referrer:m,test:D,verbose:D,img:D,debug:D,track_links_timeout:300,cookie_expiration:365,upgrade:D,disable_persistence:D,disable_cookie:D,secure_cookie:D,ip:m,opt_out_tracking_by_default:D,opt_out_persistence_by_default:D,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:r,property_blacklist:[],xhr_headers:{},ignore_dnt:D,
batch_requests:m,batch_size:50,batch_flush_interval_ms:5E3,batch_request_timeout_ms:9E4,batch_autostart:m,hooks:{},record_sessions_percent:0,record_idle_timeout_ms:18E5,record_max_ms:864E5,record_mask_text_selector:"*",recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},la=D;e.prototype.Ua=function(a,b,d){if(c.g(d))this.l("You must name your new library: init(token, config, name)");else if("mixpanel"===d)this.l("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");
else return a=S(a,b,d),x[d]=a,a.ka(),a};e.prototype.X=function(a,b,d){b=b||{};this.__loaded=m;this.config={};var e={};"api_payload_format"in b||(b.api_host||za.api_host).match(/\.mixpanel\.com/)&&(e.api_payload_format="json");this.Zb(c.extend({},za,e,b,{name:d,token:a,callback_fn:("mixpanel"===d?d:"mixpanel."+d)+"._jsc"}));this._jsc=P;this.ya=[];this.za=[];this.xa=[];this.U={disable_all_events:D,identify_called:D};this.u={};if(this.T=this.c("batch_requests"))if(!c.localStorage.sa(m)||!O)this.T=D,
o.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),c.a(this.Cb(),function(a){o.log("Clearing batch queue "+a.ca);c.localStorage.remove(a.ca)});else if(this.Jc(),ba&&n.addEventListener){var h=c.bind(function(){this.u.K.va||this.u.K.flush({hc:m})},this);n.addEventListener("pagehide",function(a){a.persisted&&h()});n.addEventListener("visibilitychange",function(){"hidden"===t.visibilityState&&h()})}this.persistence=this.cookie=new q(this.config);this.P={};this.sc();a=c.ib();
this.L()||this.w({distinct_id:"$device:"+a,$device_id:a},"");(a=this.c("track_pageview"))&&this.tc(a);0<this.c("record_sessions_percent")&&100*Math.random()<=this.c("record_sessions_percent")&&this.cc()};e.prototype.cc=K(function(){if(n.MutationObserver){var a=c.bind(function(){this.I=this.I||new n.__mp_recorder(this);this.I.startRecording()},this);if(c.g(n.__mp_recorder)){var b=t.createElement("script");b.type="text/javascript";b.async=m;b.onload=a;b.src=this.c("recorder_src");t.head.appendChild(b)}else a()}else o.A("Browser does not support MutationObserver; skipping session recording")});
e.prototype.kd=function(){this.I?this.I.stopRecording():o.A("Session recorder module not loaded")};e.prototype.ka=function(){this.c("loaded")(this);this.qb();this.people.M(this.persistence.Hc());if(this.c("store_google")&&this.c("stop_utm_persistence")){var a=c.info.Y(r);c.a(a,function(a,c){this.Q(c)}.bind(this))}};e.prototype.qb=function(){this.persistence.kc(t.referrer);this.c("store_google")&&!this.c("stop_utm_persistence")&&this.m(c.info.Y());this.c("save_referrer")&&this.persistence.gb(t.referrer)};
e.prototype.pc=function(){c.a(this.ya,function(a){this.Ea.apply(this,a)},this);this.Z()||c.a(this.za,function(a){this.k.apply(this,a)},this);delete this.ya;delete this.za};e.prototype.Ea=function(a,b){if(this.c("img"))return this.l("You can't use DOM tracking functions with img = true."),D;if(!la)return this.ya.push([a,b]),D;var c=(new a).Ua(this);return c.o.apply(c,b)};e.prototype.tc=function(a){var b="";this.eb()&&(b=c.info.La());if(c.Ta(["full-url","url-with-path-and-query-string","url-with-path"],
a)){n.addEventListener("popstate",function(){n.dispatchEvent(new Event("mp_locationchange"))});n.addEventListener("hashchange",function(){n.dispatchEvent(new Event("mp_locationchange"))});var d=n.history.pushState;if("function"===typeof d)n.history.pushState=function(a,b,c){d.call(n.history,a,b,c);n.dispatchEvent(new Event("mp_locationchange"))};var e=n.history.replaceState;if("function"===typeof e)n.history.replaceState=function(a,b,c){e.call(n.history,a,b,c);n.dispatchEvent(new Event("mp_locationchange"))};
n.addEventListener("mp_locationchange",function(){var d=c.info.La(),e=D;"full-url"===a?e=d!==b:"url-with-path-and-query-string"===a?e=d.split("#")[0]!==b.split("#")[0]:"url-with-path"===a&&(e=d.split("#")[0].split("?")[0]!==b.split("#")[0].split("?")[0]);e&&this.eb()&&(b=d)}.bind(this))}};e.prototype.nb=function(a,b){if(c.g(a))return r;if(O)return function(c){a(c,b)};var d=this._jsc,e=""+Math.floor(1E8*Math.random()),h=this.c("callback_fn")+"["+e+"]";d[e]=function(c){delete d[e];a(c,b)};return h};
e.prototype.k=function(a,b,d,e){var h=m;if(ma)return this.za.push(arguments),h;var g={method:this.c("api_method"),fb:this.c("api_transport"),lc:this.c("verbose")},j=r;if(!e&&(c.Va(d)||"string"===typeof d))e=d,d=r;d=c.extend(g,d||{});if(!O)d.method="GET";var g="POST"===d.method,i=ba&&g&&"sendbeacon"===d.fb.toLowerCase(),k=d.lc;b.verbose&&(k=m);this.c("test")&&(b.test=1);k&&(b.verbose=1);this.c("img")&&(b.img=1);if(!O)if(e)b.callback=e;else if(k||this.c("test"))b.callback="(function(){})";b.ip=this.c("ip")?
1:0;b._=(new Date).getTime().toString();g&&(j="data="+encodeURIComponent(b.data),delete b.data);var a=a+("?"+c.mc(b)),p=this;if("img"in b)j=t.createElement("img"),j.src=a,t.body.appendChild(j);else if(i){try{h=ba(a,j)}catch(n){p.l(n),h=D}try{e&&e(h?1:0)}catch(q){p.l(q)}}else if(O)try{var o=new XMLHttpRequest;o.open(d.method,a,m);var u=this.c("xhr_headers");g&&(u["Content-Type"]="application/x-www-form-urlencoded");c.a(u,function(a,b){o.setRequestHeader(b,a)});if(d.ec&&"undefined"!==typeof o.timeout){o.timeout=
d.ec;var x=(new Date).getTime()}o.withCredentials=m;o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status){if(e)if(k){var a;try{a=c.S(o.responseText)}catch(b){if(p.l(b),d.Ic)a=o.responseText;else return}e(a)}else e(Number(o.responseText))}else a=o.timeout&&!o.status&&(new Date).getTime()-x>=o.timeout?"timeout":"Bad HTTP status: "+o.status+" "+o.statusText,p.l(a),e&&(k?e({status:0,error:a,R:o}):e(0))};o.send(j)}catch(y){p.l(y),h=D}else j=t.createElement("script"),j.type="text/javascript",
j.async=m,j.defer=m,j.src=a,u=t.getElementsByTagName("script")[0],u.parentNode.insertBefore(j,u);return h};e.prototype.Aa=function(a){function b(a,b){c.a(a,function(a){if(c.isArray(a[0])){var d=b;c.a(a,function(a){d=d[a[0]].apply(d,a.slice(1))})}else this[a[0]].apply(this,a.slice(1))},b)}var d,e=[],h=[],g=[];c.a(a,function(a){a&&(d=a[0],c.isArray(d)?g.push(a):"function"===typeof a?a.call(this):c.isArray(a)&&"alias"===d?e.push(a):c.isArray(a)&&-1!==d.indexOf("track")&&"function"===typeof this[d]?g.push(a):
h.push(a))},this);b(e,this);b(h,this);b(g,this)};e.prototype.rb=function(){return!!this.u.K};e.prototype.Cb=function(){var a="__mpq_"+this.c("token"),b=this.c("api_routes");return this.jb=this.jb||{K:{type:"events",F:"/"+b.track,ca:a+"_ev"},Za:{type:"people",F:"/"+b.engage,ca:a+"_pp"},Ra:{type:"groups",F:"/"+b.groups,ca:a+"_gr"}}};e.prototype.Jc=function(){if(!this.rb()){var a=c.bind(function(a){return new C(a.ca,{B:this.config,Zc:c.bind(function(b,c,e){this.k(this.c("api_host")+a.F,this.lb(b),c,
this.nb(e,b))},this),la:c.bind(function(b){return this.pb("before_send_"+a.type,b)},this),J:this.c("error_reporter"),jd:c.bind(this.bb,this)})},this),b=this.Cb();this.u={K:a(b.K),Za:a(b.Za),Ra:a(b.Ra)}}this.c("batch_autostart")&&this.ab()};e.prototype.ab=function(){this.nc=m;if(this.rb())this.T=m,c.a(this.u,function(a){a.start()})};e.prototype.bb=function(){this.T=D;c.a(this.u,function(a){a.stop();a.clear()})};e.prototype.push=function(a){this.Aa([a])};e.prototype.disable=function(a){"undefined"===
typeof a?this.U.Ac=m:this.xa=this.xa.concat(a)};e.prototype.lb=function(a){a=c.ha(a);"base64"===this.c("api_payload_format")&&(a=c.xc(a));return{data:a}};e.prototype.Fa=function(a,b){var d=c.truncate(a.data,255),e=a.F,h=a.Ha,g=a.gd,j=a.$c||{},b=b||P,i=m,k=c.bind(function(){j.bc||(d=this.pb("before_send_"+a.type,d));return d?(o.log("MIXPANEL REQUEST:"),o.log(d),this.k(e,this.lb(d),j,this.nb(b,d))):r},this);this.T&&!g?h.Na(d,function(a){a?b(1,d):k()}):i=k();return i&&d};e.prototype.o=K(function(a,b,
d,e){!e&&"function"===typeof d&&(e=d,d=r);var d=d||{},h=d.transport;if(h)d.fb=h;h=d.send_immediately;"function"!==typeof e&&(e=P);if(c.g(a))this.l("No event name provided to mixpanel.track");else if(this.mb(a))e(0);else{b=c.extend({},b);b.token=this.c("token");var g=this.persistence.Tc(a);c.g(g)||(b.$duration=parseFloat((((new Date).getTime()-g)/1E3).toFixed(3)));this.qb();g=this.c("track_marketing")?c.info.Nc():{};if(this.I){var j=this.I.replayId;j&&(b.$mp_replay_id=j)}b=c.extend({},c.info.aa({mp_loader:this.c("mp_loader")}),
g,this.persistence.aa(),this.P,b);g=this.c("property_blacklist");c.isArray(g)?c.a(g,function(a){delete b[a]}):this.l("Invalid value for property_blacklist config: "+g);return this.Fa({type:"events",data:{event:a,properties:b},F:this.c("api_host")+"/"+this.c("api_routes").track,Ha:this.u.K,gd:h,$c:d},e)}});e.prototype.ed=K(function(a,b,d){c.isArray(b)||(b=[b]);var e={};e[a]=b;this.m(e);return this.people.set(a,b,d)});e.prototype.uc=K(function(a,b,c){var e=this.s(a),h={};e===l?(h[a]=[b],this.m(h)):
-1===e.indexOf(b)&&(e.push(b),h[a]=e,this.m(h));return this.people.ga(a,b,c)});e.prototype.Uc=K(function(a,b,c){var e=this.s(a);if(e!==l){var h=e.indexOf(b);-1<h&&(e.splice(h,1),this.m({Bd:e}));0===e.length&&this.Q(a)}return this.people.remove(a,b,c)});e.prototype.td=K(function(a,b,d,e){var h=c.extend({},b||{});c.a(d,function(a,b){a!==r&&a!==l&&(h[b]=a)});return this.o(a,h,e)});e.prototype.oc=function(a,b){return a+"_"+JSON.stringify(b)};e.prototype.Gc=function(a,b){var c=this.oc(a,b),e=this.kb[c];
if(e===l||e.Ca!==a||e.Ba!==b)e=new u,e.X(this,a,b),this.kb[c]=e;return e};e.prototype.eb=K(function(a,b){"object"!==typeof a&&(a={});var b=b||{},d=b.event_name||"$mp_web_page_view",e=c.extend(c.info.Oc(),c.info.Y(),c.info.ub()),e=c.extend({},e,a);return this.o(d,e)});e.prototype.sd=function(){return this.Ea.call(this,M,arguments)};e.prototype.rd=function(){return this.Ea.call(this,T,arguments)};e.prototype.md=function(a){c.g(a)?this.l("No event name provided to mixpanel.time_event"):this.mb(a)||this.persistence.dd(a)};
var Da={persistent:m};e.prototype.m=function(a,b){var d=da(b);d.persistent?this.persistence.m(a,d.days):c.extend(this.P,a)};e.prototype.w=function(a,b,d){d=da(d);d.persistent?this.persistence.w(a,b,d.days):("undefined"===typeof b&&(b="None"),c.a(a,function(a,c){if(!this.P.hasOwnProperty(c)||this.P[c]===b)this.P[c]=a},this))};e.prototype.Q=function(a,b){b=da(b);b.persistent?this.persistence.Q(a):delete this.P[a]};e.prototype.ob=function(a,b){var c={};c[a]=b;this.m(c)};e.prototype.Sa=function(a,b,c,
e,h,g,j,i){var k=this.L();if(a&&k!==a){if("string"===typeof a&&0===a.indexOf("$device:"))return this.l("distinct_id cannot have $device: prefix"),-1;this.m({$user_id:a})}this.s("$device_id")||this.w({$had_persisted_distinct_id:m,$device_id:k},"");a!==k&&a!==this.s("__alias")&&(this.Q("__alias"),this.m({distinct_id:a}));this.U.Db=m;this.people.rc(b,c,e,h,g,j,i);a!==k&&this.o("$identify",{distinct_id:a,$anon_distinct_id:k},{bc:m})};e.prototype.reset=function(){this.persistence.clear();this.U.Db=D;var a=
c.ib();this.w({distinct_id:"$device:"+a,$device_id:a},"")};e.prototype.L=function(){return this.s("distinct_id")};e.prototype.vc=function(a,b){if(a===this.s("$people_distinct_id"))return this.l("Attempting to create alias for existing People user - aborting."),-2;var d=this;c.g(b)&&(b=this.L());if(a!==b)return this.ob("__alias",a),this.o("$create_alias",{alias:a,distinct_id:b},{bc:m},function(){d.Sa(a)});this.l("alias matches current distinct_id - skipping api call.");this.Sa(a);return-1};e.prototype.Pc=
function(a){this.ob("mp_name_tag",a)};e.prototype.Zb=function(a){if(c.e(a))c.extend(this.config,a),a.batch_size&&c.a(this.u,function(a){a.Vb()}),this.c("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.c("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.jc(this.config),J=J||this.c("debug")};e.prototype.c=function(a){return this.config[a]};e.prototype.pb=function(a){var b=(this.config.hooks[a]||Ea).apply(this,
L.call(arguments,1));"undefined"===typeof b&&(this.l(a+" hook did not return a value"),b=r);return b};e.prototype.s=function(a){return this.persistence.ta([a])};e.prototype.toString=function(){var a=this.c("name");"mixpanel"!==a&&(a="mixpanel."+a);return a};e.prototype.mb=function(a){return c.Hb(z)||this.U.Ac||c.Ta(this.xa,a)};e.prototype.sc=function(){"localStorage"===this.c("opt_out_tracking_persistence_type")&&c.localStorage.sa()&&(!this.qa()&&this.qa({persistence_type:"cookie"})&&this.Lb({enable_persistence:D}),
!this.Z()&&this.Z({persistence_type:"cookie"})&&this.Ya({clear_persistence:D}),this.tb({persistence_type:"cookie",enable_persistence:D}));if(this.Z())this.ia({clear_persistence:m});else if(!this.qa()&&(this.c("opt_out_tracking_by_default")||c.cookie.get("mp_optout")))c.cookie.remove("mp_optout"),this.Ya({clear_persistence:this.c("opt_out_persistence_by_default")})};e.prototype.ia=function(a){if(a&&a.clear_persistence)a=m;else if(a&&a.enable_persistence)a=D;else return;!this.c("disable_persistence")&&
this.persistence.disabled!==a&&this.persistence.$b(a);a?this.bb():this.nc&&this.ab()};e.prototype.W=function(a,b){b=c.extend({track:c.bind(this.o,this),persistence_type:this.c("opt_out_tracking_persistence_type"),cookie_prefix:this.c("opt_out_tracking_cookie_prefix"),cookie_expiration:this.c("cookie_expiration"),cross_site_cookie:this.c("cross_site_cookie"),cross_subdomain_cookie:this.c("cross_subdomain_cookie"),cookie_domain:this.c("cookie_domain"),secure_cookie:this.c("secure_cookie"),ignore_dnt:this.c("ignore_dnt")},
b);c.localStorage.sa()||(b.persistence_type="cookie");return a(this.c("token"),{o:b.track,od:b.track_event_name,pd:b.track_properties,Pb:b.persistence_type,Ob:b.cookie_prefix,vb:b.cookie_domain,wb:b.cookie_expiration,zc:b.cross_site_cookie,xb:b.cross_subdomain_cookie,Xc:b.secure_cookie,Eb:b.ignore_dnt})};e.prototype.Lb=function(a){a=c.extend({enable_persistence:m},a);this.W(Ha,a);this.ia(a)};e.prototype.Ya=function(a){a=c.extend({clear_persistence:m,delete_user:m},a);a.delete_user&&this.people&&this.people.Da()&&
(this.people.Ab(),this.people.sb());this.W(Ia,a);this.ia(a)};e.prototype.qa=function(a){return this.W(Ja,a)};e.prototype.Z=function(a){return this.W(ta,a)};e.prototype.tb=function(a){a=c.extend({enable_persistence:m},a);this.W(La,a);this.ia(a)};e.prototype.l=function(a,b){o.error.apply(o.error,arguments);try{!b&&!(a instanceof Error)&&(a=Error(a)),this.c("error_reporter")(a,b)}catch(c){o.error(c)}};e.prototype.init=e.prototype.Ua;e.prototype.reset=e.prototype.reset;e.prototype.disable=e.prototype.disable;
e.prototype.time_event=e.prototype.md;e.prototype.track=e.prototype.o;e.prototype.track_links=e.prototype.sd;e.prototype.track_forms=e.prototype.rd;e.prototype.track_pageview=e.prototype.eb;e.prototype.register=e.prototype.m;e.prototype.register_once=e.prototype.w;e.prototype.unregister=e.prototype.Q;e.prototype.identify=e.prototype.Sa;e.prototype.alias=e.prototype.vc;e.prototype.name_tag=e.prototype.Pc;e.prototype.set_config=e.prototype.Zb;e.prototype.get_config=e.prototype.c;e.prototype.get_property=
e.prototype.s;e.prototype.get_distinct_id=e.prototype.L;e.prototype.toString=e.prototype.toString;e.prototype.opt_out_tracking=e.prototype.Ya;e.prototype.opt_in_tracking=e.prototype.Lb;e.prototype.has_opted_out_tracking=e.prototype.Z;e.prototype.has_opted_in_tracking=e.prototype.qa;e.prototype.clear_opt_in_out_tracking=e.prototype.tb;e.prototype.get_group=e.prototype.Gc;e.prototype.set_group=e.prototype.ed;e.prototype.add_group=e.prototype.uc;e.prototype.remove_group=e.prototype.Uc;e.prototype.track_with_groups=
e.prototype.td;e.prototype.start_batch_senders=e.prototype.ab;e.prototype.stop_batch_senders=e.prototype.bb;e.prototype.start_session_recording=e.prototype.cc;e.prototype.stop_session_recording=e.prototype.kd;e.prototype.DEFAULT_API_ROUTES=A;q.prototype.properties=q.prototype.aa;q.prototype.update_search_keyword=q.prototype.kc;q.prototype.update_referrer_info=q.prototype.gb;q.prototype.get_cross_subdomain=q.prototype.Fc;q.prototype.clear=q.prototype.clear;var F={};(function(){ca=1;x=n.mixpanel;c.g(x)?
o.A('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.'):x.__loaded||x.config&&x.persistence?o.A("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors."):1.1>(x.__SV||0)?o.A("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):
(c.a(x._i,function(a){a&&c.isArray(a)&&(F[a[a.length-1]]=S.apply(this,a))}),Ba(),x.init(),c.a(F,function(a){a.ka()}),Aa())})()})();
})();
{
"name": "mixpanel-browser",
"version": "2.49.0",
"version": "2.50.0",
"description": "The official Mixpanel JavaScript browser client library",

@@ -35,2 +35,3 @@ "main": "dist/mixpanel.cjs.js",

"devDependencies": {
"@rollup/plugin-node-resolve": "15.2.3",
"babel": "6.5.2",

@@ -55,3 +56,4 @@ "babel-core": "6.7.2",

"request": "2.88.0",
"rollup": "0.25.8",
"rollup": "2.79.1",
"rollup-plugin-esbuild": "4.10.3",
"rollup-plugin-npm": "1.4.0",

@@ -61,3 +63,6 @@ "sinon": "8.1.1",

"webpack": "1.12.2"
},
"dependencies": {
"rrweb": "2.0.0-alpha.4"
}
}
var Config = {
DEBUG: false,
LIB_VERSION: '2.49.0'
LIB_VERSION: '2.50.0'
};
export default Config;

@@ -23,2 +23,5 @@ /* eslint camelcase: "off", eqeqeq: "off" */

// Maximum allowed session recording length
var MAX_RECORDING_MS = 24 * 60 * 60 * 1000; // 24 hours
/*

@@ -1725,2 +1728,3 @@ * Saved references to long variable names, so that closure compiler can

export {
MAX_RECORDING_MS,
_,

@@ -1727,0 +1731,0 @@ userAgent,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc