Socket
Socket
Sign inDemoInstall

mixpanel-browser

Package Overview
Dependencies
Maintainers
7
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.22.1 to 2.22.2

.jshintignore

3

CHANGELOG.md

@@ -0,1 +1,4 @@

**2.22.2** (25 May 2018)
- Allow GDPR utils to use localStorage instead of cookies
**2.22.1** (22 May 2018)

@@ -2,0 +5,0 @@ - Add `xhr_headers` config option for sending extra headers with each request (thanks @austince)

238

mixpanel.min.js
(function() {
var l=!0,m=null,s=!1;function C(){return function(){}}
(function(){function fa(){function a(){if(!a.ad)X=a.ad=l,Y=s,c.a(z,function(a){a.wc()})}function b(){try{o.documentElement.doScroll("left")}catch(d){setTimeout(b,1);return}a()}if(o.addEventListener)"complete"===o.readyState?a():o.addEventListener("DOMContentLoaded",a,s);else if(o.attachEvent){o.attachEvent("onreadystatechange",a);var d=s;try{d=t.frameElement===m}catch(e){}o.documentElement.doScroll&&d&&b()}c.C(t,"load",a,l)}function ga(){v.init=function(a,b,d){if(d)return v[d]||(v[d]=z[d]=L(a,b,d),
v[d].qa()),v[d];d=v;if(z.mixpanel)d=z.mixpanel;else if(a)d=L(a,b,"mixpanel"),d.qa(),z.mixpanel=d;v=d;1===U&&(t.mixpanel=v);ha()}}function ha(){c.a(z,function(a,b){"mixpanel"!==b&&(v[b]=a)});v._=c}function L(a,b,d){var e,f="mixpanel"===d?v:v[d];if(f&&0===U)e=f;else{if(f&&!c.isArray(f)){q.error("You have already initialized "+d);return}e=new g}e.Oa(a,b,d);e.people=new n;e.people.Oa(e);A=A||e.c("debug");e.__autotrack_enabled=e.c("autotrack");if(e.c("autotrack"))I.bd(e.c("token"),100,100)?I.hd()?I.V(e):
(e.__autotrack_enabled=s,q.log("Disabling Automatic Event Collection because this browser is not supported")):(e.__autotrack_enabled=s,q.log("Not in active bucket: disabling Automatic Event Collection."));!c.d(f)&&c.isArray(f)&&(e.Ka.call(e.people,f.people),e.Ka(f));return e}function n(){}function g(){}function p(a){this.props={};this.Db=s;this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;if("cookie"!==b&&"localStorage"!==b)q.T("Unknown persistence type "+
b+"; falling back to cookie"),b=a.persistence="cookie";if(b="localStorage"===b){b=l;try{c.localStorage.set("__mplssupport__","xyz"),"xyz"!==c.localStorage.get("__mplssupport__")&&(b=s),c.localStorage.remove("__mplssupport__")}catch(d){b=s}b||q.error("localStorage unsupported; falling back to cookie store")}this.v=b?c.localStorage:c.cookie;this.load();this.kc(a);this.Jd(a);this.save()}function M(){this.Zb="submit"}function D(){this.Zb="click"}function y(){}function N(a){switch(typeof a.className){case "string":return a.className;
case "object":return a.className.Qd||a.getAttribute("class")||"";default:return""}}function ia(a){var b="";O(a)&&a.childNodes&&a.childNodes.length&&c.a(a.childNodes,function(a){a&&3===a.nodeType&&a.textContent&&(b+=c.trim(a.textContent).split(/(\s+)/).filter(P).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))});return c.trim(b)}function E(a,b){return a&&a.tagName&&a.tagName.toLowerCase()===b.toLowerCase()}function ja(a,b){if(!a||E(a,"html")||!(a&&1===a.nodeType))return s;switch(a.tagName.toLowerCase()){case "html":return s;
case "form":return"submit"===b.type;case "input":return-1===["button","submit"].indexOf(a.getAttribute("type"))?"change"===b.type:"click"===b.type;case "select":case "textarea":return"change"===b.type;default:return"click"===b.type}}function O(a){for(var b=a;b.parentNode&&!E(b,"body");b=b.parentNode){var d=N(b).split(" ");if(c.e(d,"mp-sensitive")||c.e(d,"mp-no-track"))return s}if(c.e(N(a).split(" "),"mp-include"))return l;if(E(a,"input")||E(a,"select")||E(a,"textarea")||"true"===a.getAttribute("contenteditable"))return s;
b=a.type||"";if("string"===typeof b)switch(b.toLowerCase()){case "hidden":return s;case "password":return s}a=a.name||a.id||"";return"string"===typeof a&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(a.replace(/[^a-zA-Z0-9]/g,""))?s:l}function P(a){if(a===m||c.d(a)||"string"===typeof a&&(a=c.trim(a),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((a||
"").replace(/[\- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(a)))return s;return l}function ka(a,b){Z(l,a,b)}function la(a,b){Z(s,a,b)}function ma(a,b){return"1"===c.cookie.get(Q(a,b))}function $(a,b){return t.navigator&&"1"===t.navigator.Rd?l:"0"===c.cookie.get(Q(a,b))}function aa(a){return ba(a,function(a){return this.c(a)})}function F(a){return ba(a,function(a){return this.aa(a)})}function na(a,b){b=b||{};c.cookie.remove(Q(a,b),!!b.Ib)}function Q(a,b){b=b||{};return(b.Hb||oa)+a}function Z(a,b,d){!c.ya(b)||
!b.length?console.error("gdpr."+(a?"optIn":"optOut")+" called with an invalid token"):(d=d||{},c.cookie.set(Q(b,d),a?1:0,c.Tb(d.Gb)?d.Gb:m,!!d.Ib,!!d.vd),d.s&&a&&d.s(d.Dd||"$opt_in",d.Ed))}function ba(a,b){return function(){var d=s;try{var c=b.call(this,"token"),f=b.call(this,"opt_out_tracking_cookie_prefix");c&&(d=$(c,{Hb:f}))}catch(j){console.error("Unexpected error when checking tracking opt-out status: "+j)}if(!d)return a.apply(this,arguments);d=arguments[arguments.length-1];"function"===typeof d&&
d(0)}}var A=s,t;if("undefined"===typeof window){var B={hostname:""};t={navigator:{userAgent:""},document:{location:B,referrer:""},screen:{width:0,height:0},location:B}}else t=window;var B=Array.prototype,ca=Object.prototype,G=B.slice,J=ca.toString,R=ca.hasOwnProperty,x=t.console,H=t.navigator,o=t.document,K=t.opera,S=t.screen,w=H.userAgent,V=Function.prototype.bind,da=B.forEach,ea=B.indexOf,B=Array.isArray,W={},c={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},q={log:function(){if(A&&
!c.d(x)&&x)try{x.log.apply(x,arguments)}catch(a){c.a(arguments,function(a){x.log(a)})}},error:function(){if(A&&!c.d(x)&&x){var a=["Mixpanel error:"].concat(c.ja(arguments));try{x.error.apply(x,a)}catch(b){c.a(a,function(a){x.error(a)})}}},T:function(){if(!c.d(x)&&x){var a=["Mixpanel error:"].concat(c.ja(arguments));try{x.error.apply(x,a)}catch(b){c.a(a,function(a){x.error(a)})}}}};c.bind=function(a,b){var d,e;if(V&&a.bind===V)return V.apply(a,G.call(arguments,1));if(!c.eb(a))throw new TypeError;d=
G.call(arguments,2);return e=function(){if(!(this instanceof e))return a.apply(b,d.concat(G.call(arguments)));var c={};c.prototype=a.prototype;var j=new c;c.prototype=m;c=a.apply(j,d.concat(G.call(arguments)));return Object(c)===c?c:j}};c.Bb=function(a){for(var b in a)"function"===typeof a[b]&&(a[b]=c.bind(a[b],a))};c.a=function(a,b,d){if(!(a===m||void 0===a))if(da&&a.forEach===da)a.forEach(b,d);else if(a.length===+a.length)for(var c=0,f=a.length;c<f&&!(c in a&&b.call(d,a[c],c,a)===W);c++);else for(c in a)if(R.call(a,
c)&&b.call(d,a[c],c,a)===W)break};c.K=function(a){a&&c.ya(a)&&(a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"));return a};c.extend=function(a){c.a(G.call(arguments,1),function(b){for(var d in b)void 0!==b[d]&&(a[d]=b[d])});return a};c.isArray=B||function(a){return"[object Array]"===J.call(a)};c.eb=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return s}};c.gd=function(a){return!(!a||!R.call(a,"callee"))};c.ja=function(a){return!a?
[]:a.ja?a.ja():c.isArray(a)||c.gd(a)?G.call(a):c.Ld(a)};c.keys=function(a){var b=[];if(a===m)return b;c.a(a,function(a,c){b[b.length]=c});return b};c.Ld=function(a){var b=[];if(a===m)return b;c.a(a,function(a){b[b.length]=a});return b};c.Sd=function(a){return a};c.Pb=function(a,b){var d=s;if(a===m)return d;if(ea&&a.indexOf===ea)return-1!=a.indexOf(b);c.a(a,function(a){if(d||(d=a===b))return W});return d};c.e=function(a,b){return-1!==a.indexOf(b)};c.Rb=function(a,b){a.prototype=new b;a.Bd=b.prototype};
c.k=function(a){return a===Object(a)&&!c.isArray(a)};c.cb=function(a){if(c.k(a)){for(var b in a)if(R.call(a,b))return s;return l}return s};c.d=function(a){return void 0===a};c.ya=function(a){return"[object String]"==J.call(a)};c.jd=function(a){return"[object Date]"==J.call(a)};c.Tb=function(a){return"[object Number]"==J.call(a)};c.kd=function(a){return!!(a&&1===a.nodeType)};c.Mb=function(a){c.a(a,function(b,d){c.jd(b)?a[d]=c.cd(b):c.k(b)&&(a[d]=c.Mb(b))});return a};c.timestamp=function(){Date.now=
Date.now||function(){return+new Date};return Date.now()};c.cd=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.l=function(a){return function(){try{return a.apply(this,arguments)}catch(b){q.T("Implementation error. Please turn on debug and contact support@mixpanel.com."),A&&q.T(b)}}};c.rd=function(a){for(var b=["identify","_check_and_handle_notifications",
"_show_notification"],d=0;d<b.length;d++)a.prototype[b[d]]=c.l(a.prototype[b[d]])};c.sd=function(a){for(var b in a)"function"===typeof a[b]&&(a[b]=c.l(a[b]))};c.za=function(a){var b={};c.a(a,function(a,e){c.ya(a)&&0<a.length&&(b[e]=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.k(a)?(d={},c.a(a,function(a,f){d[f]=c.truncate(a,b)})):d=a;return d};c.na=function(){return function(a){function b(a,c){var j=
"",k=0,i=k="",i=0,h=j,g=[],r=c[a];r&&"object"===typeof r&&"function"===typeof r.toJSON&&(r=r.toJSON(a));switch(typeof r){case "string":return d(r);case "number":return isFinite(r)?""+r:"null";case "boolean":case "null":return""+r;case "object":if(!r)return"null";j+=" ";g=[];if("[object Array]"===J.apply(r)){i=r.length;for(k=0;k<i;k+=1)g[k]=b(k,r)||"null";return i=0===g.length?"[]":j?"[\n"+j+g.join(",\n"+j)+"\n"+h+"]":"["+g.join(",")+"]"}for(k in r)R.call(r,k)&&(i=b(k,r))&&g.push(d(k)+(j?": ":":")+
i);return i=0===g.length?"{}":j?"{"+g.join(",")+""+h+"}":"{"+g.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.ma=function(){function a(){switch(i){case "t":return f("t"),f("r"),f("u"),f("e"),l;case "f":return f("f"),f("a"),f("l"),f("s"),f("e"),s;case "n":return f("n"),f("u"),f("l"),f("l"),m}j('Unexpected "'+i+'"')}function b(){for(;i&&" ">=i;)f()}function d(){var a,b,d="",c;if('"'===i)for(;f();){if('"'===i)return f(),d;if("\\"===i)if(f(),"u"===i){for(b=c=0;4>b;b+=1){a=parseInt(f(),16);if(!isFinite(a))break;c=16*c+a}d+=String.fromCharCode(c)}else if("string"===typeof h[i])d+=h[i];else break;else d+=i}j("Bad string")}
function c(){var a;a="";"-"===i&&(a="-",f("-"));for(;"0"<=i&&"9">=i;)a+=i,f();if("."===i)for(a+=".";f()&&"0"<=i&&"9">=i;)a+=i;if("e"===i||"E"===i){a+=i;f();if("-"===i||"+"===i)a+=i,f();for(;"0"<=i&&"9">=i;)a+=i,f()}a=+a;if(isFinite(a))return a;j("Bad number")}function f(a){a&&a!==i&&j("Expected '"+a+"' instead of '"+i+"'");i=g.charAt(k);k+=1;return i}function j(a){a=new SyntaxError(a);a.Pd=k;a.text=g;throw a;}var k,i,h={'"':'"',"\\":"\\","/":"/",b:"\u0008",f:"\u000c",n:"\n",r:"\r",t:"\t"},g,r;r=function(){b();
switch(i){case "{":var k;a:{var g,h={};if("{"===i){f("{");b();if("}"===i){f("}");k=h;break a}for(;i;){g=d();b();f(":");Object.hasOwnProperty.call(h,g)&&j('Duplicate key "'+g+'"');h[g]=r();b();if("}"===i){f("}");k=h;break a}f(",");b()}}j("Bad object")}return k;case "[":a:{k=[];if("["===i){f("[");b();if("]"===i){f("]");g=k;break a}for(;i;){k.push(r());b();if("]"===i){f("]");g=k;break a}f(",");b()}}j("Bad array")}return g;case '"':return d();case "-":return c();default:return"0"<=i&&"9">=i?c():a()}};
return function(a){g=a;k=0;i=" ";a=r();b();i&&j("Syntax error");return a}}();c.zb=function(a){var b,d,e,f,j=0,k=0,i="",i=[];if(!a)return a;a=c.Kd(a);do b=a.charCodeAt(j++),d=a.charCodeAt(j++),e=a.charCodeAt(j++),f=b<<16|d<<8|e,b=f>>18&63,d=f>>12&63,e=f>>6&63,f&=63,i[k++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)+
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f);while(j<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.Kd=function(a){var a=(a+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),b="",d,c,f=0,j;d=c=0;f=a.length;for(j=0;j<f;j++){var k=a.charCodeAt(j),i=m;128>k?c++:i=127<k&&2048>k?String.fromCharCode(k>>6|192,k&63|128):String.fromCharCode(k>>12|224,k>>6&63|128,k&63|128);i!==m&&(c>d&&(b+=a.substring(d,c)),b+=
i,d=c=j+1)}c>d&&(b+=a.substring(d,a.length));return b};c.lb=function(){function a(){function a(b,d){var c,f=0;for(c=0;c<d.length;c++)f|=j[c]<<8*c;return b^f}var b,c,j=[],k=0;for(b=0;b<w.length;b++)c=w.charCodeAt(b),j.unshift(c&255),4<=j.length&&(k=a(k,j),j=[]);0<j.length&&(k=a(k,j));return k.toString(16)}function b(){for(var a=1*new Date,b=0;a==1*new Date;)b++;return a.toString(16)+b.toString(16)}return function(){var c=(S.height*S.width).toString(16);return b()+"-"+Math.random().toString(16).replace(".",
"")+"-"+a()+"-"+c+"-"+b()}}();c.Sb=function(a){return/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp)/i.test(a)?l:s};c.qc=function(a){var b,d,e,f=[];c.d(b)&&(b="&");c.a(a,function(a,b){d=encodeURIComponent(a.toString());e=encodeURIComponent(b);f[f.length]=e+"="+d});return f.join(b)};c.Nb=function(a,b){var b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),c=RegExp("[\\?&]"+b+"=([^&#]*)").exec(a);return c===m||c&&"string"!==typeof c[1]&&c[1].length?"":decodeURIComponent(c[1]).replace(/\+/g,
" ")};c.ea=function(a,b){var c=a.match(RegExp(b+"=([^&]*)"));return c?c[1]:m};c.cookie={get:function(a){for(var a=a+"=",b=o.cookie.split(";"),c=0;c<b.length;c++){for(var e=b[c];" "==e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(a))return decodeURIComponent(e.substring(a.length,e.length))}return m},parse:function(a){var b;try{b=c.ma(c.cookie.get(a))||{}}catch(d){}return b},Td:function(a,b,c,e,f){var d;var j="",k="",i="";e&&(d=(j=(j=o.location.hostname.match(/[a-z0-9][a-z0-9\-]+\.[a-z\.]{2,6}$/i))?
var l=!0,m=null,r=!1;function C(){return function(){}}
(function(){function ha(){function a(){if(!a.fd)Z=a.fd=l,$=r,c.a(z,function(a){a.Bc()})}function b(){try{o.documentElement.doScroll("left")}catch(d){setTimeout(b,1);return}a()}if(o.addEventListener)"complete"===o.readyState?a():o.addEventListener("DOMContentLoaded",a,r);else if(o.attachEvent){o.attachEvent("onreadystatechange",a);var d=r;try{d=t.frameElement===m}catch(e){}o.documentElement.doScroll&&d&&b()}c.C(t,"load",a,l)}function ia(){v.init=function(a,b,d){if(d)return v[d]||(v[d]=z[d]=L(a,b,d),
v[d].ra()),v[d];d=v;if(z.mixpanel)d=z.mixpanel;else if(a)d=L(a,b,"mixpanel"),d.ra(),z.mixpanel=d;v=d;1===V&&(t.mixpanel=v);ja()}}function ja(){c.a(z,function(a,b){"mixpanel"!==b&&(v[b]=a)});v._=c}function L(a,b,d){var e,f="mixpanel"===d?v:v[d];if(f&&0===V)e=f;else{if(f&&!c.isArray(f)){q.error("You have already initialized "+d);return}e=new h}e.Pa(a,b,d);e.people=new n;e.people.Pa(e);A=A||e.c("debug");e.__autotrack_enabled=e.c("autotrack");if(e.c("autotrack"))I.gd(e.c("token"),100,100)?I.md()?I.V(e):
(e.__autotrack_enabled=r,q.log("Disabling Automatic Event Collection because this browser is not supported")):(e.__autotrack_enabled=r,q.log("Not in active bucket: disabling Automatic Event Collection."));!c.d(f)&&c.isArray(f)&&(e.La.call(e.people,f.people),e.La(f));return e}function n(){}function h(){}function p(a){this.props={};this.Gb=r;this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;if("cookie"!==b&&"localStorage"!==b)q.T("Unknown persistence type "+
b+"; falling back to cookie"),b=a.persistence="cookie";this.v="localStorage"===b&&c.localStorage.gb()?c.localStorage:c.cookie;this.load();this.pc(a);this.Md(a);this.save()}function M(){this.bc="submit"}function D(){this.bc="click"}function y(){}function N(a){switch(typeof a.className){case "string":return a.className;case "object":return a.className.Td||a.getAttribute("class")||"";default:return""}}function ka(a){var b="";O(a)&&a.childNodes&&a.childNodes.length&&c.a(a.childNodes,function(a){a&&3===
a.nodeType&&a.textContent&&(b+=c.trim(a.textContent).split(/(\s+)/).filter(P).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))});return c.trim(b)}function E(a,b){return a&&a.tagName&&a.tagName.toLowerCase()===b.toLowerCase()}function la(a,b){if(!a||E(a,"html")||!(a&&1===a.nodeType))return r;switch(a.tagName.toLowerCase()){case "html":return r;case "form":return"submit"===b.type;case "input":return-1===["button","submit"].indexOf(a.getAttribute("type"))?"change"===b.type:"click"===
b.type;case "select":case "textarea":return"change"===b.type;default:return"click"===b.type}}function O(a){for(var b=a;b.parentNode&&!E(b,"body");b=b.parentNode){var d=N(b).split(" ");if(c.e(d,"mp-sensitive")||c.e(d,"mp-no-track"))return r}if(c.e(N(a).split(" "),"mp-include"))return l;if(E(a,"input")||E(a,"select")||E(a,"textarea")||"true"===a.getAttribute("contenteditable"))return r;b=a.type||"";if("string"===typeof b)switch(b.toLowerCase()){case "hidden":return r;case "password":return r}a=a.name||
a.id||"";return"string"===typeof a&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(a.replace(/[^a-zA-Z0-9]/g,""))?r:l}function P(a){if(a===m||c.d(a)||"string"===typeof a&&(a=c.trim(a),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((a||"").replace(/[\- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(a)))return r;
return l}function ma(a,b){aa(l,a,b)}function na(a,b){aa(r,a,b)}function oa(a,b){return"1"===Q(b).get(R(a,b))}function ba(a,b){return t.navigator&&"1"===t.navigator.Vd?l:"0"===Q(b).get(R(a,b))}function ca(a){return da(a,function(a){return this.c(a)})}function F(a){return da(a,function(a){return this.aa(a)})}function pa(a,b){b=b||{};Q(b).remove(R(a,b),!!b.Lb)}function Q(a){a=a||{};return"localStorage"===a.dc?c.localStorage:c.cookie}function R(a,b){b=b||{};return(b.cc||qa)+a}function aa(a,b,d){!c.za(b)||
!b.length?console.error("gdpr."+(a?"optIn":"optOut")+" called with an invalid token"):(d=d||{},Q(d).set(R(b,d),a?1:0,c.Wb(d.Kb)?d.Kb:m,!!d.Lb,!!d.yd),d.s&&a&&d.s(d.Gd||"$opt_in",d.Hd))}function da(a,b){return function(){var d=r;try{var c=b.call(this,"token"),f=b.call(this,"opt_out_tracking_persistence_type"),j=b.call(this,"opt_out_tracking_cookie_prefix");c&&(d=ba(c,{dc:f,cc:j}))}catch(k){console.error("Unexpected error when checking tracking opt-out status: "+k)}if(!d)return a.apply(this,arguments);
d=arguments[arguments.length-1];"function"===typeof d&&d(0)}}var A=r,t;if("undefined"===typeof window){var B={hostname:""};t={navigator:{userAgent:""},document:{location:B,referrer:""},screen:{width:0,height:0},location:B}}else t=window;var B=Array.prototype,ea=Object.prototype,G=B.slice,J=ea.toString,S=ea.hasOwnProperty,x=t.console,H=t.navigator,o=t.document,K=t.opera,T=t.screen,w=H.userAgent,W=Function.prototype.bind,fa=B.forEach,ga=B.indexOf,B=Array.isArray,X={},c={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
"")}},q={log:function(){if(A&&!c.d(x)&&x)try{x.log.apply(x,arguments)}catch(a){c.a(arguments,function(a){x.log(a)})}},error:function(){if(A&&!c.d(x)&&x){var a=["Mixpanel error:"].concat(c.ka(arguments));try{x.error.apply(x,a)}catch(b){c.a(a,function(a){x.error(a)})}}},T:function(){if(!c.d(x)&&x){var a=["Mixpanel error:"].concat(c.ka(arguments));try{x.error.apply(x,a)}catch(b){c.a(a,function(a){x.error(a)})}}}};c.bind=function(a,b){var d,e;if(W&&a.bind===W)return W.apply(a,G.call(arguments,1));if(!c.fb(a))throw new TypeError;
d=G.call(arguments,2);return e=function(){if(!(this instanceof e))return a.apply(b,d.concat(G.call(arguments)));var c={};c.prototype=a.prototype;var j=new c;c.prototype=m;c=a.apply(j,d.concat(G.call(arguments)));return Object(c)===c?c:j}};c.Eb=function(a){for(var b in a)"function"===typeof a[b]&&(a[b]=c.bind(a[b],a))};c.a=function(a,b,d){if(!(a===m||void 0===a))if(fa&&a.forEach===fa)a.forEach(b,d);else if(a.length===+a.length)for(var c=0,f=a.length;c<f&&!(c in a&&b.call(d,a[c],c,a)===X);c++);else for(c in a)if(S.call(a,
c)&&b.call(d,a[c],c,a)===X)break};c.K=function(a){a&&c.za(a)&&(a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"));return a};c.extend=function(a){c.a(G.call(arguments,1),function(b){for(var d in b)void 0!==b[d]&&(a[d]=b[d])});return a};c.isArray=B||function(a){return"[object Array]"===J.call(a)};c.fb=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return r}};c.ld=function(a){return!(!a||!S.call(a,"callee"))};c.ka=function(a){return!a?
[]:a.ka?a.ka():c.isArray(a)||c.ld(a)?G.call(a):c.Od(a)};c.keys=function(a){var b=[];if(a===m)return b;c.a(a,function(a,c){b[b.length]=c});return b};c.Od=function(a){var b=[];if(a===m)return b;c.a(a,function(a){b[b.length]=a});return b};c.Wd=function(a){return a};c.Sb=function(a,b){var d=r;if(a===m)return d;if(ga&&a.indexOf===ga)return-1!=a.indexOf(b);c.a(a,function(a){if(d||(d=a===b))return X});return d};c.e=function(a,b){return-1!==a.indexOf(b)};c.Ub=function(a,b){a.prototype=new b;a.Ed=b.prototype};
c.k=function(a){return a===Object(a)&&!c.isArray(a)};c.eb=function(a){if(c.k(a)){for(var b in a)if(S.call(a,b))return r;return l}return r};c.d=function(a){return void 0===a};c.za=function(a){return"[object String]"==J.call(a)};c.nd=function(a){return"[object Date]"==J.call(a)};c.Wb=function(a){return"[object Number]"==J.call(a)};c.od=function(a){return!!(a&&1===a.nodeType)};c.Pb=function(a){c.a(a,function(b,d){c.nd(b)?a[d]=c.hd(b):c.k(b)&&(a[d]=c.Pb(b))});return a};c.timestamp=function(){Date.now=
Date.now||function(){return+new Date};return Date.now()};c.hd=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.l=function(a){return function(){try{return a.apply(this,arguments)}catch(b){q.T("Implementation error. Please turn on debug and contact support@mixpanel.com."),A&&q.T(b)}}};c.ud=function(a){for(var b=["identify","_check_and_handle_notifications",
"_show_notification"],d=0;d<b.length;d++)a.prototype[b[d]]=c.l(a.prototype[b[d]])};c.vd=function(a){for(var b in a)"function"===typeof a[b]&&(a[b]=c.l(a[b]))};c.Aa=function(a){var b={};c.a(a,function(a,e){c.za(a)&&0<a.length&&(b[e]=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.k(a)?(d={},c.a(a,function(a,f){d[f]=c.truncate(a,b)})):d=a;return d};c.oa=function(){return function(a){function b(a,c){var j=
"",k=0,i=k="",i=0,g=j,h=[],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";j+=" ";h=[];if("[object Array]"===J.apply(s)){i=s.length;for(k=0;k<i;k+=1)h[k]=b(k,s)||"null";return i=0===h.length?"[]":j?"[\n"+j+h.join(",\n"+j)+"\n"+g+"]":"["+h.join(",")+"]"}for(k in s)S.call(s,k)&&(i=b(k,s))&&h.push(d(k)+(j?": ":":")+
i);return i=0===h.length?"{}":j?"{"+h.join(",")+""+g+"}":"{"+h.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.na=function(){function a(){switch(i){case "t":return f("t"),f("r"),f("u"),f("e"),l;case "f":return f("f"),f("a"),f("l"),f("s"),f("e"),r;case "n":return f("n"),f("u"),f("l"),f("l"),m}j('Unexpected "'+i+'"')}function b(){for(;i&&" ">=i;)f()}function d(){var a,b,d="",c;if('"'===i)for(;f();){if('"'===i)return f(),d;if("\\"===i)if(f(),"u"===i){for(b=c=0;4>b;b+=1){a=parseInt(f(),16);if(!isFinite(a))break;c=16*c+a}d+=String.fromCharCode(c)}else if("string"===typeof h[i])d+=h[i];else break;else d+=i}j("Bad string")}
function c(){var a;a="";"-"===i&&(a="-",f("-"));for(;"0"<=i&&"9">=i;)a+=i,f();if("."===i)for(a+=".";f()&&"0"<=i&&"9">=i;)a+=i;if("e"===i||"E"===i){a+=i;f();if("-"===i||"+"===i)a+=i,f();for(;"0"<=i&&"9">=i;)a+=i,f()}a=+a;if(isFinite(a))return a;j("Bad number")}function f(a){a&&a!==i&&j("Expected '"+a+"' instead of '"+i+"'");i=g.charAt(k);k+=1;return i}function j(a){a=new SyntaxError(a);a.Sd=k;a.text=g;throw a;}var k,i,h={'"':'"',"\\":"\\","/":"/",b:"\u0008",f:"\u000c",n:"\n",r:"\r",t:"\t"},g,s;s=function(){b();
switch(i){case "{":var k;a:{var g,h={};if("{"===i){f("{");b();if("}"===i){f("}");k=h;break a}for(;i;){g=d();b();f(":");Object.hasOwnProperty.call(h,g)&&j('Duplicate key "'+g+'"');h[g]=s();b();if("}"===i){f("}");k=h;break a}f(",");b()}}j("Bad object")}return k;case "[":a:{k=[];if("["===i){f("[");b();if("]"===i){f("]");g=k;break a}for(;i;){k.push(s());b();if("]"===i){f("]");g=k;break a}f(",");b()}}j("Bad array")}return g;case '"':return d();case "-":return c();default:return"0"<=i&&"9">=i?c():a()}};
return function(a){g=a;k=0;i=" ";a=s();b();i&&j("Syntax error");return a}}();c.Cb=function(a){var b,d,e,f,j=0,k=0,i="",i=[];if(!a)return a;a=c.Nd(a);do b=a.charCodeAt(j++),d=a.charCodeAt(j++),e=a.charCodeAt(j++),f=b<<16|d<<8|e,b=f>>18&63,d=f>>12&63,e=f>>6&63,f&=63,i[k++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)+
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f);while(j<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.Nd=function(a){var a=(a+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),b="",d,c,f=0,j;d=c=0;f=a.length;for(j=0;j<f;j++){var k=a.charCodeAt(j),i=m;128>k?c++:i=127<k&&2048>k?String.fromCharCode(k>>6|192,k&63|128):String.fromCharCode(k>>12|224,k>>6&63|128,k&63|128);i!==m&&(c>d&&(b+=a.substring(d,c)),b+=
i,d=c=j+1)}c>d&&(b+=a.substring(d,a.length));return b};c.ob=function(){function a(){function a(b,d){var c,f=0;for(c=0;c<d.length;c++)f|=j[c]<<8*c;return b^f}var b,c,j=[],k=0;for(b=0;b<w.length;b++)c=w.charCodeAt(b),j.unshift(c&255),4<=j.length&&(k=a(k,j),j=[]);0<j.length&&(k=a(k,j));return k.toString(16)}function b(){for(var a=1*new Date,b=0;a==1*new Date;)b++;return a.toString(16)+b.toString(16)}return function(){var c=(T.height*T.width).toString(16);return b()+"-"+Math.random().toString(16).replace(".",
"")+"-"+a()+"-"+c+"-"+b()}}();c.Vb=function(a){return/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp)/i.test(a)?l:r};c.vc=function(a){var b,d,e,f=[];c.d(b)&&(b="&");c.a(a,function(a,b){d=encodeURIComponent(a.toString());e=encodeURIComponent(b);f[f.length]=e+"="+d});return f.join(b)};c.Qb=function(a,b){var b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),c=RegExp("[\\?&]"+b+"=([^&#]*)").exec(a);return c===m||c&&"string"!==typeof c[1]&&c[1].length?"":decodeURIComponent(c[1]).replace(/\+/g,
" ")};c.ea=function(a,b){var c=a.match(RegExp(b+"=([^&]*)"));return c?c[1]:m};c.cookie={get:function(a){for(var a=a+"=",b=o.cookie.split(";"),c=0;c<b.length;c++){for(var e=b[c];" "==e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(a))return decodeURIComponent(e.substring(a.length,e.length))}return m},parse:function(a){var b;try{b=c.na(c.cookie.get(a))||{}}catch(d){}return b},Xd:function(a,b,c,e,f){var d;var j="",k="",i="";e&&(d=(j=(j=o.location.hostname.match(/[a-z0-9][a-z0-9\-]+\.[a-z\.]{2,6}$/i))?
j[0]:"")?"; domain=."+j:"",j=d);c&&(k=new Date,k.setTime(k.getTime()+1E3*c),k="; expires="+k.toGMTString());f&&(i="; secure");o.cookie=a+"="+encodeURIComponent(b)+k+"; path=/"+j+i},set:function(a,b,c,e,f){var d;var j="",k="",i="";e&&(d=(j=(j=o.location.hostname.match(/[a-z0-9][a-z0-9\-]+\.[a-z\.]{2,6}$/i))?j[0]:"")?"; domain=."+j:"",j=d);c&&(k=new Date,k.setTime(k.getTime()+864E5*c),k="; expires="+k.toGMTString());f&&(i="; secure");a=a+"="+encodeURIComponent(b)+k+"; path=/"+j+i;return o.cookie=a},
remove:function(a,b){c.cookie.set(a,"",-1,b)}};c.localStorage={error:function(a){q.error("localStorage error: "+a)},get:function(a){try{return window.localStorage.getItem(a)}catch(b){c.localStorage.error(b)}return m},parse:function(a){try{return c.ma(c.localStorage.get(a))||{}}catch(b){}return m},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.C=function(){function a(a,
e,f){return function(j){if(j=j||b(window.event)){var k=l,i;c.eb(f)&&(i=f(j));j=e.call(a,j);if(s===i||s===j)k=s;return k}}}function b(a){if(a)a.preventDefault=b.preventDefault,a.stopPropagation=b.stopPropagation;return a}b.preventDefault=function(){this.returnValue=s};b.stopPropagation=function(){this.cancelBubble=l};return function(b,c,f,j,k){b?b.addEventListener&&!j?b.addEventListener(c,f,!!k):(c="on"+c,b[c]=a(b,f,b[c])):q.error("No valid element provided to register_event")}}();c.$c=function(){function a(a,
b){return 0<=(" "+a.className+" ").replace(d," ").indexOf(" "+b+" ")}function b(b){if(!o.getElementsByTagName)return[];var b=b.split(" "),d,j,k,i,g,h,r,u=[o];for(i=0;i<b.length;i++)if(d=b[i].replace(/^\s+/,"").replace(/\s+$/,""),-1<d.indexOf("#")){j=d.split("#");d=j[0];u=o.getElementById(j[1]);if(!u||d&&u.nodeName.toLowerCase()!=d)return[];u=[u]}else if(-1<d.indexOf(".")){j=d.split(".");d=j[0];var n=j[1];d||(d="*");j=[];for(g=k=0;g<u.length;g++){r="*"==d?u[g].all?u[g].all:u[g].getElementsByTagName("*"):
u[g].getElementsByTagName(d);for(h=0;h<r.length;h++)j[k++]=r[h]}u=[];for(g=d=0;g<j.length;g++)j[g].className&&c.ya(j[g].className)&&a(j[g],n)&&(u[d++]=j[g])}else if(j=d.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)){d=j[1];var p=j[2],n=j[3],q=j[4];d||(d="*");j=[];for(g=k=0;g<u.length;g++){r="*"==d?u[g].all?u[g].all:u[g].getElementsByTagName("*"):u[g].getElementsByTagName(d);for(h=0;h<r.length;h++)j[k++]=r[h]}u=[];d=0;switch(n){case "=":n=function(a){return a.getAttribute(p)==q};break;case "~":n=
function(a){return a.getAttribute(p).match(RegExp("\\b"+q+"\\b"))};break;case "|":n=function(a){return a.getAttribute(p).match(RegExp("^"+q+"-?"))};break;case "^":n=function(a){return 0===a.getAttribute(p).indexOf(q)};break;case "$":n=function(a){return a.getAttribute(p).lastIndexOf(q)==a.getAttribute(p).length-q.length};break;case "*":n=function(a){return-1<a.getAttribute(p).indexOf(q)};break;default:n=function(a){return a.getAttribute(p)}}u=[];for(g=d=0;g<j.length;g++)n(j[g])&&(u[d++]=j[g])}else{j=
[];for(g=k=0;g<u.length;g++){r=u[g].getElementsByTagName(d);for(h=0;h<r.length;h++)j[k++]=r[h]}u=j}return u}var d=/[\t\r\n]/g;return function(a){return c.kd(a)?[a]:c.k(a)&&!c.d(a.length)?a:b.call(this,a)}}();c.info={Uc:function(){var a="",b={};c.a("utm_source utm_medium utm_campaign utm_content utm_term".split(" "),function(d){a=c.Nb(o.URL,d);a.length&&(b[d]=a)});return b},td: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":m},ud:function(a){var b=c.info.td(a),d={};if(b!==m)d.$search_engine=b,a=c.Nb(a,"yahoo"!=b?"q":"p"),a.length&&(d.mp_keyword=a);return d},ca:function(a,b,d){return d||c.e(a," OPR/")?c.e(a,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":c.e(a,"IEMobile")||c.e(a,"WPDesktop")?"Internet Explorer Mobile":c.e(a,"Edge")?"Microsoft Edge":c.e(a,"FBIOS")?"Facebook Mobile":c.e(a,
"Chrome")?"Chrome":c.e(a,"CriOS")?"Chrome iOS":c.e(a,"UCWEB")||c.e(a,"UCBrowser")?"UC Browser":c.e(a,"FxiOS")?"Firefox iOS":c.e(b||"","Apple")?c.e(a,"Mobile")?"Mobile Safari":"Safari":c.e(a,"Android")?"Android Mobile":c.e(a,"Konqueror")?"Konqueror":c.e(a,"Firefox")?"Firefox":c.e(a,"MSIE")||c.e(a,"Trident/")?"Internet Explorer":c.e(a,"Gecko")?"Mozilla":""},Cb: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+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[c.info.ca(a,b,d)];if(void 0===b)return m;a=a.match(b);return!a?m:parseFloat(a[a.length-
2])},hb:function(){return/Windows/i.test(w)?/Phone/.test(w)||/WPDesktop/.test(w)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(w)?"iOS":/Android/.test(w)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(w)?"BlackBerry":/Mac/i.test(w)?"Mac OS X":/Linux/.test(w)?"Linux":/CrOS/.test(w)?"Chrome OS":""},Lb: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":""},$b:function(a){a=a.split("/");return 3<=a.length?a[2]:""},ha:function(){return c.extend(c.za({$os:c.info.hb(),$browser:c.info.ca(w,H.vendor,K),$referrer:o.referrer,$referring_domain:c.info.$b(o.referrer),$device:c.info.Lb(w)}),{$current_url:t.location.href,$browser_version:c.info.Cb(w,H.vendor,K),$screen_height:S.height,$screen_width:S.width,mp_lib:"web",$lib_version:"2.22.1"})},pd:function(){return c.extend(c.za({$os:c.info.hb(),$browser:c.info.ca(w,H.vendor,K)}),
{$browser_version:c.info.Cb(w,H.vendor,K)})},od:function(a){return c.za({mp_page:a,mp_referrer:o.referrer,mp_browser:c.info.ca(w,H.vendor,K),mp_platform:c.info.hb()})}};c.toArray=c.ja;c.isObject=c.k;c.JSONEncode=c.na;c.JSONDecode=c.ma;c.isBlockedUA=c.Sb;c.isEmptyObject=c.cb;c.info=c.info;c.info.device=c.info.Lb;c.info.browser=c.info.ca;c.info.properties=c.info.ha;var I={sb:[],Mc:function(a){if(a.previousElementSibling)return a.previousElementSibling;do a=a.previousSibling;while(a&&!(a&&1===a.nodeType));
return a},Jc:function(a,b){var c=document.createElement("script");c.type="text/javascript";c.src=a;c.onload=b;var e=document.getElementsByTagName("script");0<e.length?e[0].parentNode.insertBefore(c,e[0]):document.body.appendChild(c)},Dc:function(a){var b={classes:N(a).split(" "),tag_name:a.tagName.toLowerCase()};O(a)&&c.a(a.attributes,function(a){if(P(a.value))b["attr__"+a.name]=a.value});for(var d=1,e=1,f=a;f=this.Mc(f);)d++,f.tagName===a.tagName&&e++;b.nth_child=d;b.nth_of_type=e;return b},qb:function(a){return{$event_type:a,
$ce_version:1,$host:window.location.host,$pathname:window.location.pathname}},zc:function(a){var b=[];c.a(document.querySelectorAll(a.css_selector),function(a){var c;-1<["input","select"].indexOf(a.tagName.toLowerCase())?c=a.value:a.textContent&&(c=a.textContent);P(c)&&b.push(c)});return b.join(", ")},Bc:function(a){var b={};c.a(this.nb,function(d){c.a(d.event_selectors,function(e){e=document.querySelectorAll(e);c.a(e,function(f){c.e(a,f)&&O(f)&&(b[d.name]=this.zc(d))},this)},this)},this);return b},
Cc:function(a){return"undefined"===typeof a.target?a.srcElement:a.target},Pc:function(a,b){var d=this.Cc(a);if(d&&3===d.nodeType)d=d.parentNode;if(ja(d,a)){for(var e=[d],f=d;f.parentNode&&!E(f,"body");)e.push(f.parentNode),f=f.parentNode;var j=[],g,i=s;c.a(e,function(a){var b=O(a);"a"===a.tagName.toLowerCase()&&(g=a.getAttribute("href"),g=b&&P(g)&&g);b=N(a).split(" ");c.e(b,"mp-no-track")&&(i=l);j.push(this.Dc(a))},this);if(i)return s;var h;(d=ia(d))&&d.length&&(h=d);e=c.extend(this.qb(a.type),{$elements:j,
$el_attr__href:g,$el_text:h},this.Bc(e));b.s("$web_event",e);return l}},Od:function(a){window.location.href=a},uc:function(a){var b=c.bind(function(b){b=b||window.event;this.Pc(b,a)},this);c.C(document,"submit",b,s,l);c.C(document,"change",b,s,l);c.C(document,"click",b,s,l)},nb:{},V:function(a){if(!document||!document.body){console.log("document not ready yet, trying again in 500 milliseconds...");var b=this;setTimeout(function(){b.V(a)},500)}else{var d=a.c("token");if(-1<this.sb.indexOf(d))console.log('autotrack already initialized for token "'+
d+'"');else if(this.sb.push(d),!this.Kc(a)){var e=c.bind(function(b){if(b&&b.config&&b.config.enable_collect_everything===l){if(b.custom_properties)this.nb=b.custom_properties;a.s("$web_event",c.extend({$title:document.title},this.qb("pageview")));this.uc(a)}else a.__autotrack_enabled=s},this);a.m(a.c("api_host")+"/decide/",{verbose:l,version:"1",lib:"web",token:d},a.ra(e))}}},ob:function(a,b){var d;try{var e=c.ea(b,"state"),e=JSON.parse(decodeURIComponent(e)),f=c.ea(b,"expires_in");d={accessToken:c.ea(b,
"access_token"),accessTokenExpiresAt:(new Date).getTime()+1E3*Number(f),bookmarkletMode:!!e.bookmarkletMode,projectId:e.projectId,projectOwnerId:e.projectOwnerId,projectToken:e.token,readOnly:e.readOnly,userFlags:e.userFlags,userId:e.userId};window.sessionStorage.setItem("editorParams",JSON.stringify(d));e.desiredHash?window.location.hash=e.desiredHash:window.history?history.replaceState("",document.title,window.location.pathname+window.location.search):window.location.hash=""}catch(j){console.error("Unable to parse data from hash",
j)}return d},Kc:function(a){try{var b=s;if(c.ea(window.location.hash,"state"))var d=c.ea(window.location.hash,"state"),d=JSON.parse(decodeURIComponent(d)),b="mpeditor"===d.action;var e=!!window.sessionStorage.getItem("_mpcehash"),f;b?f=this.ob(a,window.location.hash):e?(f=this.ob(a,window.sessionStorage.getItem("_mpcehash")),window.sessionStorage.removeItem("_mpcehash")):f=JSON.parse(window.sessionStorage.getItem("editorParams")||"{}");return f.projectToken&&a.c("token")===f.projectToken?(this.Ic(a,
f),l):s}catch(j){return s}},Ic:function(a,b){return!window._mpEditorLoaded?(window._mpEditorLoaded=l,this.Jc(a.c("app_host")+"/js-bundle/reports/collect-everything/editor.js?_ts="+(new Date).getTime(),function(){window.mp_load_editor(b)}),l):s},bd:function(a,b,d){for(var b=!c.d(b)?b:10,d=!c.d(d)?d:10,e=0,f=0;f<a.length;f++)e+=a.charCodeAt(f);return e%b<d},hd:function(){return c.eb(document.querySelectorAll)}};c.Bb(I);c.sd(I);var oa="__mp_opt_in_out_",U,v,pa="__mps,__mpso,__mpus,__mpa,__mpap,__mpu,$people_distinct_id,__alias,__cmpns,__timers".split(","),
T=t.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Y=!T&&-1===w.indexOf("MSIE")&&-1===w.indexOf("Mozilla"),qa={api_host:"https://api.mixpanel.com",app_host:"https://mixpanel.com",autotrack:l,cdn:"https://cdn.mxpnl.com",cross_subdomain_cookie:l,persistence:"cookie",persistence_name:"",cookie_name:"",loaded:C(),store_google:l,save_referrer:l,test:s,verbose:s,img:s,track_pageview:l,debug:s,track_links_timeout:300,cookie_expiration:365,upgrade:s,disable_persistence:s,disable_cookie:s,secure_cookie:s,
ip:l,opt_out_tracking_by_default:s,opt_out_tracking_cookie_prefix:m,property_blacklist:[],xhr_headers:{}},X=s;y.prototype.va=C();y.prototype.Wa=C();y.prototype.Sa=C();y.prototype.V=function(a){this.Wb=a;return this};y.prototype.s=function(a,b,d,e){var f=this,j=c.$c(a);if(0===j.length)q.error("The DOM query ("+a+") returned 0 elements");else return c.a(j,function(a){c.C(a,this.Zb,function(a){var c={},j=f.va(d,this),g=f.Wb.c("track_links_timeout");f.Wa(a,this,c);t.setTimeout(f.gc(e,j,c,l),g);f.Wb.s(b,
j,f.gc(e,j,c))})},this),l};y.prototype.gc=function(a,b,c,e){var e=e||s,f=this;return function(){if(!c.Tc)c.Tc=l,a&&a(e,b)===s||f.Sa(b,c,e)}};y.prototype.va=function(a,b){return"function"===typeof a?a(b):c.extend({},a)};c.Rb(D,y);D.prototype.va=function(a,b){var c=D.Bd.va.apply(this,arguments);if(b.href)c.url=b.href;return c};D.prototype.Wa=function(a,b,c){c.Xb=2===a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;c.href=b.href;c.Xb||a.preventDefault()};D.prototype.Sa=function(a,b){b.Xb||setTimeout(function(){t.location=
b.href},0)};c.Rb(M,y);M.prototype.Wa=function(a,b,c){c.element=b;a.preventDefault()};M.prototype.Sa=function(a,b){setTimeout(function(){b.element.submit()},0)};p.prototype.ha=function(){var a={};c.a(this.props,function(b,d){c.Pb(pa,d)||(a[d]=b)});return a};p.prototype.load=function(){if(!this.disabled){var a=this.v.parse(this.name);a&&(this.props=c.extend({},a))}};p.prototype.Jd=function(a){var b=a.upgrade,d;if(b)d="mp_super_properties","string"===typeof b&&(d=b),b=this.v.parse(d),this.v.remove(d),
this.v.remove(d,l),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.v.parse(d)))this.v.remove(d),this.v.remove(d,l),this.D(b);this.v===c.localStorage&&(b=c.cookie.parse(this.name),c.cookie.remove(this.name),c.cookie.remove(this.name,l),b&&this.D(b))};p.prototype.save=function(){this.disabled||(this.yc(),this.v.set(this.name,c.na(this.props),this.Xa,this.Ua,this.ac))};p.prototype.remove=function(){this.v.remove(this.name,
s);this.v.remove(this.name,l)};p.prototype.clear=function(){this.remove();this.props={}};p.prototype.D=function(a,b,d){return c.k(a)?("undefined"===typeof b&&(b="None"),this.Xa="undefined"===typeof d?this.Jb:d,c.a(a,function(a,c){if(!this.props.hasOwnProperty(c)||this.props[c]===b)this.props[c]=a},this),this.save(),l):s};p.prototype.ia=function(a,b){return c.k(a)?(this.Xa="undefined"===typeof b?this.Jb:b,c.extend(this.props,a),this.save(),l):s};p.prototype.Ca=function(a){a in this.props&&(delete this.props[a],
this.save())};p.prototype.yc=c.l(function(){var a=this.props.__cmpns,b=A?6E4:36E5;if(a){for(var d in a)1*new Date-a[d]>b&&delete a[d];c.cb(a)&&delete this.props.__cmpns}});p.prototype.Id=function(){if(!this.Db)this.D(c.info.Uc()),this.Db=l};p.prototype.lc=function(a){this.ia(c.info.ud(a))};p.prototype.kb=function(a){this.D({$initial_referrer:a||"$direct",$initial_referring_domain:c.info.$b(a)||"$direct"},"")};p.prototype.ed=function(){return c.za({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};
p.prototype.kc=function(a){this.Jb=this.Xa=a.cookie_expiration;this.cc(a.disable_persistence);this.wd(a.cross_subdomain_cookie);this.yd(a.secure_cookie)};p.prototype.cc=function(a){(this.disabled=a)?this.remove():this.save()};p.prototype.wd=function(a){if(a!==this.Ua)this.Ua=a,this.remove(),this.save()};p.prototype.dd=function(){return this.Ua};p.prototype.yd=function(a){if(a!==this.ac)this.ac=a?l:s,this.remove(),this.save()};p.prototype.H=function(a,b){var d=this.Ma(a),e=b[a],f=this.R("$set"),j=
this.R("$set_once"),g=this.R("$unset"),i=this.R("$add"),h=this.R("$union"),n=this.R("$append",[]);"__mps"===d?(c.extend(f,e),this.I("$add",e),this.I("$union",e),this.I("$unset",e)):"__mpso"===d?(c.a(e,function(a,b){b in j||(j[b]=a)}),this.I("$unset",e)):"__mpus"===d?c.a(e,function(a){c.a([f,j,i,h],function(b){a in b&&delete b[a]});c.a(n,function(b){a in b&&delete b[a]});g[a]=l}):"__mpa"===d?(c.a(e,function(a,b){b in f?f[b]+=a:(b in i||(i[b]=0),i[b]+=a)},this),this.I("$unset",e)):"__mpu"===d?(c.a(e,
function(a,b){c.isArray(a)&&(b in h||(h[b]=[]),h[b]=h[b].concat(a))}),this.I("$unset",e)):"__mpap"===d&&(n.push(e),this.I("$unset",e));q.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");q.log(b);this.save()};p.prototype.I=function(a,b){var d=this.La(a);c.d(d)||(c.a(b,function(a,b){delete d[b]},this),this.save())};p.prototype.Ma=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("$union"===a)return"__mpu";q.error("Invalid queue:",a)};p.prototype.La=function(a){return this.props[this.Ma(a)]};p.prototype.R=function(a,b){var d=this.Ma(a),b=c.d(b)?{}:b;return this.props[d]||(this.props[d]=b)};p.prototype.xd=function(a){var b=this.props.__timers||{};b[a]=(new Date).getTime();this.props.__timers=b;this.save()};p.prototype.qd=function(a){var b=(this.props.__timers||{})[a];c.d(b)||(delete this.props.__timers[a],this.save());return b};var h;g.prototype.V=function(a,b,d){if(c.d(d))q.error("You must name your new library: init(token, config, name)");
else if("mixpanel"===d)q.error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");else return a=L(a,b,d),v[d]=a,a.qa(),a};g.prototype.Oa=function(a,b,d){this.__loaded=l;this.config={};this.bc(c.extend({},qa,b,{name:d,token:a,callback_fn:("mixpanel"===d?d:"mixpanel."+d)+"._jsc"}));this._jsc=C();this.Ia=[];this.Ja=[];this.Ha=[];this.P={disable_all_events:s,identify_called:s};this.persistence=this.cookie=new p(this.config);(this.c("opt_out_tracking_by_default")||
c.cookie.get("mp_optout"))&&this.Yb();this.sa();this.D({distinct_id:c.lb()},"")};g.prototype.sa=function(){var a=this.c("disable_persistence")||this.Za();this.persistence.disabled!==a&&this.persistence.cc(a)};g.prototype.qa=function(){this.c("loaded")(this);this.c("track_pageview")&&this.hc()};g.prototype.wc=function(){c.a(this.Ia,function(a){this.Qa.apply(this,a)},this);this.Za()||c.a(this.Ja,function(a){this.m.apply(this,a)},this);delete this.Ia;delete this.Ja};g.prototype.Qa=function(a,b){if(this.c("img"))return q.error("You can't use DOM tracking functions with img = true."),
s;if(!X)return this.Ia.push([a,b]),s;var c=(new a).V(this);return c.s.apply(c,b)};g.prototype.ra=function(a,b){if(c.d(a))return m;if(T)return function(c){a(c,b)};var d=this._jsc,e=""+Math.floor(1E8*Math.random()),f=this.c("callback_fn")+"["+e+"]";d[e]=function(c){delete d[e];a(c,b)};return f};g.prototype.m=function(a,b,d){if(Y)this.Ja.push(arguments);else{var e=this.c("verbose");b.verbose&&(e=l);this.c("test")&&(b.test=1);e&&(b.verbose=1);this.c("img")&&(b.img=1);if(!T)if(d)b.callback=d;else if(e||
this.c("test"))b.callback="(function(){})";b.ip=this.c("ip")?1:0;b._=(new Date).getTime().toString();a+="?"+c.qc(b);if("img"in b){var f=o.createElement("img");f.src=a;o.body.appendChild(f)}else if(T)try{var j=new XMLHttpRequest;j.open("GET",a,l);c.a(this.c("xhr_headers"),function(a,b){j.setRequestHeader(b,a)});j.withCredentials=l;j.onreadystatechange=function(){if(4===j.readyState)if(200===j.status){if(d)if(e){var a;try{a=c.ma(j.responseText)}catch(b){q.error(b);return}d(a)}else d(Number(j.responseText))}else a=
"Bad HTTP status: "+j.status+" "+j.statusText,q.error(a),d&&(e?d({status:0,error:a}):d(0))};j.send(m)}catch(g){q.error(g)}else{f=o.createElement("script");f.type="text/javascript";f.async=l;f.defer=l;f.src=a;var i=o.getElementsByTagName("script")[0];i.parentNode.insertBefore(f,i)}}};g.prototype.Ka=function(a){function b(a,b){c.a(a,function(a){this[a[0]].apply(this,a.slice(1))},b)}var d,e=[],f=[],j=[];c.a(a,function(a){a&&(d=a[0],"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]?j.push(a):f.push(a))},this);b(e,this);b(f,this);b(j,this)};g.prototype.push=function(a){this.Ka([a])};g.prototype.disable=function(a){"undefined"===typeof a?this.P.Xc=l:this.Ha=this.Ha.concat(a)};g.prototype.s=aa(function(a,b,d){"function"!==typeof d&&(d=C());if(c.d(a))q.error("No event name provided to mixpanel.track");else if(this.pb(a))d(0);else{b=b||{};b.token=this.c("token");var e=this.persistence.qd(a);c.d(e)||(b.$duration=parseFloat((((new Date).getTime()-
e)/1E3).toFixed(3)));this.persistence.lc(o.referrer);this.c("store_google")&&this.persistence.Id();this.c("save_referrer")&&this.persistence.kb(o.referrer);b=c.extend({},c.info.ha(),this.persistence.ha(),b);e=this.c("property_blacklist");c.isArray(e)?c.a(e,function(a){delete b[a]}):q.error("Invalid value for property_blacklist config: "+e);a=c.truncate({event:a,properties:b},255);e=c.na(a);e=c.zb(e);q.log("MIXPANEL REQUEST:");q.log(a);this.m(this.c("api_host")+"/track/",{data:e},this.ra(d,a));return a}});
g.prototype.hc=function(a){if(c.d(a))a=o.location.href;this.s("mp_page_view",c.info.od(a))};g.prototype.Hd=function(){return this.Qa.call(this,D,arguments)};g.prototype.Gd=function(){return this.Qa.call(this,M,arguments)};g.prototype.Cd=function(a){c.d(a)?q.error("No event name provided to mixpanel.time_event"):this.pb(a)||this.persistence.xd(a)};g.prototype.ia=function(a,b){this.persistence.ia(a,b)};g.prototype.D=function(a,b,c){this.persistence.D(a,b,c)};g.prototype.Ca=function(a){this.persistence.Ca(a)};
g.prototype.Pa=function(a,b){var c={};c[a]=b;this.ia(c)};g.prototype.$a=function(a,b,c,e,f,j,g){a!==this.U()&&a!==this.wa("__alias")&&(this.Ca("__alias"),this.Pa("distinct_id",a));this.mb(this.U());this.P.ab=l;this.people.Ac(b,c,e,f,j,g)};g.prototype.reset=function(){this.persistence.clear();this.P.ab=s;this.D({distinct_id:c.lb()},"")};g.prototype.U=function(){return this.wa("distinct_id")};g.prototype.Rc=function(a,b){if(a===this.wa("$people_distinct_id"))return q.T("Attempting to create alias for existing People user - aborting."),
-2;var d=this;c.d(b)&&(b=this.U());if(a!==b)return this.Pa("__alias",a),this.s("$create_alias",{alias:a,distinct_id:b},function(){d.$a(a)});q.error("alias matches current distinct_id - skipping api call.");this.$a(a);return-1};g.prototype.ld=function(a){this.Pa("mp_name_tag",a)};g.prototype.bc=function(a){if(c.k(a))c.extend(this.config,a),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.kc(this.config),A=A||this.c("debug")};g.prototype.c=function(a){return this.config[a]};g.prototype.wa=function(a){return this.persistence.props[a]};g.prototype.toString=function(){var a=this.c("name");"mixpanel"!==a&&(a="mixpanel."+a);return a};g.prototype.pb=function(a){return c.Sb(w)||this.P.Xc||c.Pb(this.Ha,a)};g.prototype.mb=aa(function(a){if(a&&!this.P.ab&&!this.c("disable_notifications")){q.log("MIXPANEL NOTIFICATION CHECK");var b=this;this.m(this.c("api_host")+
"/decide/",{verbose:l,version:"2",lib:"web",token:this.c("token"),distinct_id:a},this.ra(function(a){a.notifications&&0<a.notifications.length&&b.xb.call(b,a.notifications[0])}))}});g.prototype.xb=function(a){(new h(a,this)).show()};g.prototype.Z=function(a,b){b=c.extend({track:c.bind(this.s,this),cookie_prefix:this.c("opt_out_tracking_cookie_prefix"),cookie_expiration:this.c("cookie_expiration"),cross_subdomain_cookie:this.c("cross_subdomain_cookie"),secure_cookie:this.c("secure_cookie")},b);return a(this.c("token"),
{s:b.track,Dd:b.track_event_name,Ed:b.track_properties,Hb:b.cookie_prefix,Gb:b.cookie_expiration,Ib:b.cross_subdomain_cookie,vd:b.secure_cookie})};g.prototype.nd=function(a){this.Z(ka,a);this.sa()};g.prototype.Yb=function(a){a=c.extend({delete_user:l},a);a.delete_user&&this.people&&this.people.Na()&&(this.people.Kb(),this.people.Fb());this.Z(la,a);this.sa()};g.prototype.fd=function(a){return this.Z(ma,a)};g.prototype.Za=function(a){return this.Z($,a)};g.prototype.Vc=function(a){this.Z(na,a);this.sa()};
n.prototype.Oa=function(a){this.i=a};n.prototype.set=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(b)||(f[b]=a)},this),d=b):f[a]=b;this.aa("save_referrer")&&this.i.persistence.kb(o.referrer);f=c.extend({},c.info.pd(),this.i.persistence.ed(),f);e.$set=f;return this.m(e,d)});n.prototype.dc=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(b)||(f[b]=a)},this),d=b):f[a]=b;e.$set_once=f;return this.m(e,d)});n.prototype.jc=function(a,b){var d={},e=[];c.isArray(a)||
(a=[a]);c.a(a,function(a){this.S(a)||e.push(a)},this);d.$unset=e;return this.m(d,b)};n.prototype.Qb=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(b)||(isNaN(parseFloat(a))?q.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):f[b]=a)},this),d=b):(c.d(b)&&(b=1),f[a]=b);e.$add=f;return this.m(e,d)});n.prototype.append=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(b)||(f[b]=a)},this),d=b):f[a]=b;e.$append=f;return this.m(e,
d)});n.prototype.ic=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(b)||(f[b]=c.isArray(a)?a:[a])},this),d=b):f[a]=c.isArray(b)?b:[b];e.$union=f;return this.m(e,d)});n.prototype.Fd=F(function(a,b,d){if(!c.Tb(a)&&(a=parseFloat(a),isNaN(a))){q.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",c.extend({$amount:a},b),d)});n.prototype.Fb=function(a){return this.set("$transactions",[],a)};n.prototype.Kb=function(){if(this.Na())return this.m({$delete:this.i.U()});
q.error("mixpanel.people.delete_user() requires you to call identify() first")};n.prototype.toString=function(){return this.i.toString()+".people"};n.prototype.m=function(a,b){a.$token=this.aa("token");a.$distinct_id=this.i.U();var d=c.Mb(a),e=c.truncate(d,255),d=c.na(d),d=c.zb(d);if(!this.Na())return this.xc(a),c.d(b)||(this.aa("verbose")?b({status:-1,error:m}):b(-1)),e;q.log("MIXPANEL PEOPLE REQUEST:");q.log(e);this.i.m(this.aa("api_host")+"/engage/",{data:d},this.i.ra(b,e));return e};n.prototype.aa=
function(a){return this.i.c(a)};n.prototype.Na=function(){return this.i.P.ab===l};n.prototype.xc=function(a){"$set"in a?this.i.persistence.H("$set",a):"$set_once"in a?this.i.persistence.H("$set_once",a):"$unset"in a?this.i.persistence.H("$unset",a):"$add"in a?this.i.persistence.H("$add",a):"$append"in a?this.i.persistence.H("$append",a):"$union"in a?this.i.persistence.H("$union",a):q.error("Invalid call to _enqueue():",a)};n.prototype.$=function(a,b,d,e){var f=this,g=c.extend({},this.i.persistence.La(a)),
h=g;!c.d(g)&&c.k(g)&&!c.cb(g)&&(f.i.persistence.I(a,g),e&&(h=e(g)),b.call(f,h,function(b,e){0===b&&f.i.persistence.H(a,g);c.d(d)||d(b,e)}))};n.prototype.Ac=function(a,b,d,e,f,g){var h=this,i=this.i.persistence.La("$append");this.$("$set",this.set,a);this.$("$set_once",this.dc,e);this.$("$unset",this.jc,g,function(a){return c.keys(a)});this.$("$add",this.Qb,b);this.$("$union",this.ic,f);if(!c.d(i)&&c.isArray(i)&&i.length){for(var n,a=function(a,b){0===a&&h.i.persistence.H("$append",n);c.d(d)||d(a,
b)},b=i.length-1;0<=b;b--)n=i.pop(),h.append(n,a);h.i.persistence.save()}};n.prototype.S=function(a){return"$distinct_id"===a||"$token"===a};g.tc=function(a,b){c.Bb(this);this.gb=b;this.ib=this.gb.persistence;this.B=c.K(a.id);this.Vb=c.K(a.message_id);this.body=(c.K(a.body)||"").replace(/\n/g,"<br/>");this.Wc=c.K(a.cta)||"Close";this.fa=c.K(a.type)||"takeover";this.style=c.K(a.style)||"light";this.title=c.K(a.title)||"";this.ka=h.sc;this.X=h.rc;this.da=a.cta_url||m;this.bb=a.image_url||m;this.L=a.thumb_image_url||
m;this.Da=a.video_url||m;this.ua=l;if(!this.da)this.da="#dismiss",this.ua=s;this.u="mini"===this.fa;if(!this.u)this.fa="takeover";this.md=!this.u?h.Y:h.Ea;this.wb();this.xa=this.Ec();this.Hc()};h=g.tc;h.M=200;h.w="mixpanel-notification";h.la=0.6;h.G=25;h.oa=200;h.Y=388;h.Ea=420;h.z=85;h.Fa=5;h.J=60;h.Ga=Math.round(h.J/2);h.sc=595;h.rc=334;h.prototype.show=function(){var a=this;this.wb();this.p?(this.Gc(),this.Fc(),this.Lc(this.vc)):setTimeout(function(){a.show()},300)};h.prototype.Va=c.l(function(){this.Ub||
this.ub({invisible:l});var a=this.zd?this.h("video"):this.Q();if(this.mc)this.Nc("bg","visible"),this.N(a,"exiting"),setTimeout(this.vb,h.M);else{var b,c,e;this.u?(b="right",c=20,e=-100):(b="top",c=h.G,e=h.oa+h.G);this.pa([{q:this.h("bg"),o:"opacity",start:h.la,j:0},{q:a,o:"opacity",start:1,j:0},{q:a,o:b,start:c,j:e}],h.M,this.vb)}});h.prototype.N=c.l(function(a,b){b=h.w+"-"+b;"string"===typeof a&&(a=this.h(a));a.className?~(" "+a.className+" ").indexOf(" "+b+" ")||(a.className+=" "+b):a.className=
b});h.prototype.Nc=c.l(function(a,b){b=h.w+"-"+b;"string"===typeof a&&(a=this.h(a));if(a.className)a.className=(" "+a.className+" ").replace(" "+b+" ","").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")});h.prototype.pa=c.l(function(a,b,c,e){var f=this,g=s,h,i;h=1*new Date;var n,e=e||h;n=h-e;for(h=0;h<a.length;h++){i=a[h];if("undefined"===typeof i.F)i.F=i.start;if(i.F!==i.j){var g=l,o=i.j>=i.start?1:-1;i.F=i.start+(i.j-i.start)*n/b;if("opacity"!==i.o)i.F=Math.round(i.F);if(0<o&&i.F>=i.j||0>o&&i.F<=
i.j)i.F=i.j}}if(g){for(h=0;h<a.length;h++)i=a[h],i.q&&(i.q.style[i.o]=""+i.F+("opacity"===i.o?"":"px"));setTimeout(function(){f.pa(a,b,c,e)},10)}else c&&c()});h.prototype.vc=c.l(function(){var a=this;if(!this.Ad&&!this.rb()[this.B])this.Ad=l,this.p.appendChild(this.ga),setTimeout(function(){var b=a.Q();if(a.mc)a.u||a.N("bg","visible"),a.N(b,"visible"),a.tb();else{var c,e,f;a.u?(c="right",e=-100,f=20):(c="top",e=h.oa+h.G,f=h.G);a.pa([{q:a.h("bg"),o:"opacity",start:0,j:h.la},{q:b,o:"opacity",start:0,
j:1},{q:b,o:c,start:e,j:f}],h.M,a.tb)}},100),c.C(a.h("cancel"),"click",function(b){b.preventDefault();a.Va()}),c.C(a.h("button")||a.h("mini-content"),"click",function(b){b.preventDefault();a.W?(a.Ra("$campaign_open",{$resource_type:"video"}),a.Oc()):(a.Va(),a.ua&&a.Ra("$campaign_open",{$resource_type:"link"},function(){t.location.href=a.da}))})});h.prototype.h=function(a){return o.getElementById(h.w+"-"+a)};h.prototype.Q=function(){return this.h(this.fa)};h.prototype.rb=function(){return this.ib.props.__cmpns||
(this.ib.props.__cmpns={})};h.prototype.O=function(a,b){return this.A[a]&&this.A[a]<=b};h.prototype.Ec=function(){var a=[];this.u?(this.L=this.L||"//cdn.mxpnl.com/site_media/images/icons/notifications/mini-news-dark.png",a.push(this.L)):(this.bb?(a.push(this.bb),this.Ob='<img id="img" src="'+this.bb+'"/>'):this.Ob="",this.L?(a.push(this.L),this.fc='<div id="thumbborder-wrapper"><div id="thumbborder"></div></div><img id="thumbnail" src="'+this.L+'" width="'+h.J+'" height="'+h.J+'"/><div id="thumbspacer"></div>'):
this.fc="");return a};h.prototype.Fc=function(){var a="",b="",c="";this.ga=o.createElement("div");this.ga.id=h.w+"-wrapper";if(this.u)a='<div id="mini"><div id="mainbox"><div id="cancel"><div id="cancel-icon"></div></div><div id="mini-content"><div id="mini-icon"><div id="mini-icon-img"></div></div><div id="body"><div id="body-text"><div>'+this.body+'</div></div></div></div></div><div id="mini-border"></div></div>';else{var a=this.ua||this.W?"":'<div id="button-close"></div>',e=this.W?'<div id="button-play"></div>':
"";this.O("ie",7)&&(e=a="");a='<div id="takeover">'+this.fc+'<div id="mainbox"><div id="cancel"><div id="cancel-icon"></div></div><div id="content">'+this.Ob+'<div id="title">'+this.title+'</div><div id="body">'+this.body+'</div><div id="tagline"><a href="http://mixpanel.com?from=inapp" target="_blank">POWERED BY MIXPANEL</a></div></div><div id="button">'+a+'<a id="button-link" href="'+this.da+'">'+this.Wc+"</a>"+e+"</div></div></div>"}this.oc?(b="//www.youtube.com/embed/"+this.oc+"?wmode=transparent&showinfo=0&modestbranding=0&rel=0&autoplay=1&loop=0&vq=hd1080",
this.pc&&(b+="&enablejsapi=1&html5=1&controls=0",c='<div id="video-controls"><div id="video-progress" class="video-progress-el"><div id="video-progress-total" class="video-progress-el"></div><div id="video-elapsed" class="video-progress-el"></div></div><div id="video-time" class="video-progress-el"></div></div>')):this.nc&&(b="//player.vimeo.com/video/"+this.nc+"?autoplay=1&title=0&byline=0&portrait=0");if(this.W)this.Md='<iframe id="'+h.w+'-video-frame" width="'+this.ka+'" height="'+this.X+'" src="'+
b+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen="1" scrolling="no"></iframe>',c='<div id="video-'+(this.Ya?"":"no")+'flip"><div id="video"><div id="video-holder"></div>'+c+"</div></div>";b=c+a;this.Ya&&(b=(this.u?a:"")+'<div id="flipcontainer"><div id="flipper">'+(this.u?c:b)+"</div></div>");this.ga.innerHTML=('<div id="overlay" class="'+this.fa+'"><div id="campaignid-'+this.B+'"><div id="bgwrapper"><div id="bg"></div>'+b+"</div></div></div>").replace(/class=\"/g,'class="'+
h.w+"-").replace(/id=\"/g,'id="'+h.w+"-")};h.prototype.Gc=function(){this.g="dark"===this.style?{Ta:"#1d1f25",ba:"#282b32",ta:"#3a4147",Ab:"#4a5157",Sc:"#32353c",Eb:"0.4",fb:"#2a3137",Ba:"#fff",jb:"#9498a3",ec:"#464851",Aa:"#ddd"}:{Ta:"#fff",ba:"#e7eaee",ta:"#eceff3",Ab:"#f5f5f5",Sc:"#e4ecf2",Eb:"1.0",fb:"#fafafa",Ba:"#5c6578",jb:"#8b949b",ec:"#ced9e6",Aa:"#7c8598"};var a="0px 0px 35px 0px rgba(45, 49, 56, 0.7)",b=a,d=a,e=h.J+2*h.Fa,f=h.M/1E3+"s";this.u&&(a="none");var g={};g["@media only screen and (max-width: "+
(h.Ea+20-1)+"px)"]={"#overlay":{display:"none"}};a={".flipped":{transform:"rotateY(180deg)"},"#overlay":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",overflow:"auto","text-align":"center","z-index":"10000","font-family":'"Helvetica", "Arial", sans-serif',"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},"#overlay.mini":{height:"0",overflow:"visible"},"#overlay a":{width:"initial",padding:"0","text-decoration":"none","text-transform":"none",color:"inherit"},
"#bgwrapper":{position:"relative",width:"100%",height:"100%"},"#bg":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","min-width":4*this.Zc+"px","min-height":4*this.Yc+"px","background-color":"black",opacity:"0.0","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)",filter:"alpha(opacity=60)",transition:"opacity "+f},"#bg.visible":{opacity:h.la},".mini #bg":{width:"0",height:"0","min-width":"0"},"#flipcontainer":{perspective:"1000px",position:"absolute",width:"100%"},"#flipper":{position:"relative",
"transform-style":"preserve-3d",transition:"0.3s"},"#takeover":{position:"absolute",left:"50%",width:h.Y+"px","margin-left":Math.round(-h.Y/2)+"px","backface-visibility":"hidden",transform:"rotateY(0deg)",opacity:"0.0",top:h.oa+"px",transition:"opacity "+f+", top "+f},"#takeover.visible":{opacity:"1.0",top:h.G+"px"},"#takeover.exiting":{opacity:"0.0",top:h.oa+"px"},"#thumbspacer":{height:h.Ga+"px"},"#thumbborder-wrapper":{position:"absolute",top:-h.Fa+"px",left:h.Y/2-h.Ga-h.Fa+"px",width:e+"px",height:e/
2+"px",overflow:"hidden"},"#thumbborder":{position:"absolute",width:e+"px",height:e+"px","border-radius":e+"px","background-color":this.g.ba,opacity:"0.5"},"#thumbnail":{position:"absolute",top:"0px",left:h.Y/2-h.Ga+"px",width:h.J+"px",height:h.J+"px",overflow:"hidden","z-index":"100","border-radius":h.J+"px"},"#mini":{position:"absolute",right:"20px",top:h.G+"px",width:this.md+"px",height:2*h.z+"px","margin-top":20-h.z+"px","backface-visibility":"hidden",opacity:"0.0",transform:"rotateX(90deg)",
transition:"opacity 0.3s, transform 0.3s, right 0.3s"},"#mini.visible":{opacity:"1.0",transform:"rotateX(0deg)"},"#mini.exiting":{opacity:"0.0",right:"-150px"},"#mainbox":{"border-radius":"4px","box-shadow":a,"text-align":"center","background-color":this.g.Ta,"font-size":"14px",color:this.g.jb},"#mini #mainbox":{height:h.z+"px","margin-top":h.z+"px","border-radius":"3px",transition:"background-color "+f},"#mini-border":{height:h.z+6+"px",width:h.Ea+6+"px",position:"absolute",top:"-3px",left:"-3px",
"margin-top":h.z+"px","border-radius":"6px",opacity:"0.25","background-color":"#fff","z-index":"-1","box-shadow":d},"#mini-icon":{position:"relative",display:"inline-block",width:"75px",height:h.z+"px","border-radius":"3px 0 0 3px","background-color":this.g.ba,background:"linear-gradient(135deg, "+this.g.Ab+" 0%, "+this.g.ba+" 100%)",transition:"background-color "+f},"#mini:hover #mini-icon":{"background-color":this.g.fb},"#mini:hover #mainbox":{"background-color":this.g.fb},"#mini-icon-img":{position:"absolute",
"background-image":"url("+this.L+")",width:"48px",height:"48px",top:"20px",left:"12px"},"#content":{padding:"30px 20px 0px 20px"},"#mini-content":{"text-align":"left",height:h.z+"px",cursor:"pointer"},"#img":{width:"328px","margin-top":"30px","border-radius":"5px"},"#title":{"max-height":"600px",overflow:"hidden","word-wrap":"break-word",padding:"25px 0px 20px 0px","font-size":"19px","font-weight":"bold",color:this.g.Ba},"#body":{"max-height":"600px","margin-bottom":"25px",overflow:"hidden","word-wrap":"break-word",
"line-height":"21px","font-size":"15px","font-weight":"normal","text-align":"left"},"#mini #body":{display:"inline-block","max-width":"250px",margin:"0 0 0 30px",height:h.z+"px","font-size":"16px","letter-spacing":"0.8px",color:this.g.Ba},"#mini #body-text":{display:"table",height:h.z+"px"},"#mini #body-text div":{display:"table-cell","vertical-align":"middle"},"#tagline":{"margin-bottom":"15px","font-size":"10px","font-weight":"600","letter-spacing":"0.8px",color:"#ccd7e0","text-align":"left"},"#tagline a":{color:this.g.ec,
transition:"color "+f},"#tagline a:hover":{color:this.g.Aa},"#cancel":{position:"absolute",right:"0",width:"8px",height:"8px",padding:"10px","border-radius":"20px",margin:"12px 12px 0 0","box-sizing":"content-box",cursor:"pointer",transition:"background-color "+f},"#mini #cancel":{margin:"7px 7px 0 0"},"#cancel-icon":{width:"8px",height:"8px",overflow:"hidden","background-image":"url(//cdn.mxpnl.com/site_media/images/icons/notifications/cancel-x.png)",opacity:this.g.Eb},"#cancel:hover":{"background-color":this.g.ta},
"#button":{display:"block",height:"60px","line-height":"60px","text-align":"center","background-color":this.g.ba,"border-radius":"0 0 4px 4px",overflow:"hidden",cursor:"pointer",transition:"background-color "+f},"#button-close":{display:"inline-block",width:"9px",height:"60px","margin-right":"8px","vertical-align":"top","background-image":"url(//cdn.mxpnl.com/site_media/images/icons/notifications/close-x-"+this.style+".png)","background-repeat":"no-repeat","background-position":"0px 25px"},"#button-play":{display:"inline-block",
width:"30px",height:"60px","margin-left":"15px","background-image":"url(//cdn.mxpnl.com/site_media/images/icons/notifications/play-"+this.style+"-small.png)","background-repeat":"no-repeat","background-position":"0px 15px"},"a#button-link":{display:"inline-block","vertical-align":"top","text-align":"center","font-size":"17px","font-weight":"bold",overflow:"hidden","word-wrap":"break-word",color:this.g.Ba,transition:"color "+f},"#button:hover":{"background-color":this.g.ta,color:this.g.Aa},"#button:hover a":{color:this.g.Aa},
"#video-noflip":{position:"relative",top:2*-this.X+"px"},"#video-flip":{"backface-visibility":"hidden",transform:"rotateY(180deg)"},"#video":{position:"absolute",width:this.ka-1+"px",height:this.X+"px",top:h.G+"px","margin-top":"100px",left:"50%","margin-left":Math.round(-this.ka/2)+"px",overflow:"hidden","border-radius":"5px","box-shadow":b,transform:"translateZ(1px)",transition:"opacity "+f+", top "+f},"#video.exiting":{opacity:"0.0",top:this.X+"px"},"#video-holder":{position:"absolute",width:this.ka-
1+"px",height:this.X+"px",overflow:"hidden","border-radius":"5px"},"#video-frame":{"margin-left":"-1px",width:this.ka+"px"},"#video-controls":{opacity:"0",transition:"opacity 0.5s"},"#video:hover #video-controls":{opacity:"1.0"},"#video .video-progress-el":{position:"absolute",bottom:"0",height:"25px","border-radius":"0 0 0 5px"},"#video-progress":{width:"90%"},"#video-progress-total":{width:"100%","background-color":this.g.Ta,opacity:"0.7"},"#video-elapsed":{width:"0","background-color":"#6cb6f5",
opacity:"0.9"},"#video #video-time":{width:"10%",right:"0","font-size":"11px","line-height":"25px",color:this.g.jb,"background-color":"#666","border-radius":"0 0 5px 0"}};this.O("ie",8)&&c.extend(a,{"* html #overlay":{position:"absolute"},"* html #bg":{position:"absolute"},"html, body":{height:"100%"}});this.O("ie",7)&&c.extend(a,{"#mini #body":{display:"inline",zoom:"1",border:"1px solid "+this.g.ta},"#mini #body-text":{padding:"20px"},"#mini #mini-icon":{display:"none"}});var b="backface-visibility,border-radius,box-shadow,opacity,perspective,transform,transform-style,transition".split(","),
d=["khtml","moz","ms","o","webkit"],k;for(k in a)for(e=0;e<b.length;e++)if(f=b[e],f in a[k])for(var i=a[k][f],n=0;n<d.length;n++)a[k]["-"+d[n]+"-"+f]=i;(function(a,b){function c(a){var b="",d;for(d in a){var e=d.replace(/#/g,"#"+h.w+"-").replace(/\./g,"."+h.w+"-"),b=b+("\n"+e+" {"),e=a[d],f;for(f in e)b+=f+":"+e[f]+";";b+="}"}return b}var d=c(a)+function(a){var b="",d;for(d in a)b+="\n"+d+" {"+c(a[d])+"\n}";return b}(b),f=o.head||o.getElementsByTagName("head")[0]||o.documentElement,e=o.createElement("style");
f.appendChild(e);e.setAttribute("type","text/css");e.styleSheet?e.styleSheet.cssText=d:e.textContent=d})(a,g)};h.prototype.Hc=c.l(function(){if(this.Da){var a=this;a.pc="postMessage"in t;a.da=a.Da;var b=a.Da.match(/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i),c=a.Da.match(/vimeo\.com\/.*?(\d+)/i);if(b){if(a.W=l,a.oc=b[1],a.pc)t.onYouTubeIframeAPIReady=function(){a.h("video-frame")&&a.yb()},b=o.createElement("script"),b.src="//www.youtube.com/iframe_api",
c=o.getElementsByTagName("script")[0],c.parentNode.insertBefore(b,c)}else if(c)a.W=l,a.nc=c[1];if(a.O("ie",7)||a.O("firefox",3))a.W=s,a.ua=l}});h.prototype.tb=c.l(function(){function a(a,b){var c={};if(o.defaultView&&o.defaultView.getComputedStyle)c=o.defaultView.getComputedStyle(a,m);else if(a.currentStyle)c=a.currentStyle;return c[b]}var b=this;c.C(b.h("bg"),"click",function(){b.Va()});if(this.B){var d=this.h("overlay");d&&"hidden"!==a(d,"visibility")&&"none"!==a(d,"display")&&this.ub()}});h.prototype.ub=
c.l(function(a){if(!this.Ub)this.Ub=l,this.B&&(this.rb()[this.B]=1*new Date,this.ib.save()),this.Ra("$campaign_delivery",a),this.gb.people.append({$campaigns:this.B,$notifications:{campaign_id:this.B,message_id:this.Vb,type:"web",time:new Date}})});h.prototype.Lc=function(a){var b=this;if(0===this.xa.length)a();else{for(var c=0,e=[],f=function(){c++;c===b.xa.length&&a&&(a(),a=m)},g=0;g<this.xa.length;g++){var h=new Image;h.onload=f;h.src=this.xa[g];h.complete&&f();e.push(h)}this.O("ie",7)&&setTimeout(function(){var b=
l;for(g=0;g<e.length;g++)e[g].complete||(b=s);b&&a&&(a(),a=m)},500)}};h.prototype.vb=c.l(function(){t.clearInterval(this.Qc);this.ga.style.visibility="hidden";this.p.removeChild(this.ga)});h.prototype.wb=function(){function a(a){if(a in e)return l;if(!c)for(var a=a[0].toUpperCase()+a.slice(1),a=["O"+a,"Webkit"+a,"Moz"+a],b=0;b<a.length;b++)if(a[b]in e)return l;return s}function b(a){return(a=navigator.userAgent.match(a))&&a[1]}this.A={};this.A.chrome=b(/Chrome\/(\d+)/);this.A.firefox=b(/Firefox\/(\d+)/);
this.A.ie=b(/MSIE (\d+).+/);!this.A.ie&&!t.ActiveXObject&&"ActiveXObject"in t&&(this.A.ie=11);if(this.p=o.body||o.getElementsByTagName("body")[0])this.Zc=Math.max(this.p.scrollWidth,o.documentElement.scrollWidth,this.p.offsetWidth,o.documentElement.offsetWidth,this.p.clientWidth,o.documentElement.clientWidth),this.Yc=Math.max(this.p.scrollHeight,o.documentElement.scrollHeight,this.p.offsetHeight,o.documentElement.offsetHeight,this.p.clientHeight,o.documentElement.clientHeight);var c=this.A.ie,e=o.createElement("div").style;
this.mc=this.p&&a("transition")&&a("transform");this.Ya=(33<=this.A.chrome||15<=this.A.firefox)&&this.p&&a("backfaceVisibility")&&a("perspective")&&a("transform")};h.prototype.Oc=c.l(function(){function a(){t.YT&&t.YT.loaded&&b.yb();b.zd=l;b.Q().style.visibility="hidden"}var b=this,c=[{q:b.Q(),o:"opacity",start:1,j:0},{q:b.Q(),o:"top",start:h.G,j:-500},{q:b.h("video-noflip"),o:"opacity",start:0,j:1},{q:b.h("video-noflip"),o:"top",start:2*-b.X,j:0}];if(b.u){var e=b.h("bg"),f=b.h("overlay");e.style.width=
"100%";e.style.height="100%";f.style.width="100%";b.N(b.Q(),"exiting");b.N(e,"visible");c.push({q:b.h("bg"),o:"opacity",start:0,j:h.la})}b.h("video-holder").innerHTML=b.Md;b.Ya?(b.N("flipper","flipped"),setTimeout(a,h.M)):b.pa(c,h.M,a)});h.prototype.Ra=function(a,b,d){this.B?(b=b||{},b=c.extend(b,{campaign_id:this.B,message_id:this.Vb,message_type:"web_inapp",message_subtype:this.fa}),this.gb.track(a,b,d)):d&&d.call()};h.prototype.yb=c.l(function(){var a=this;if(!a.Nd){a.Nd=l;var b=a.h("video-elapsed"),
d=a.h("video-time"),e=a.h("video-progress");new t.YT.Player(h.w+"-video-frame",{events:{onReady:function(f){function g(a){var a=Math.round(i-a),b=Math.floor(a/60),c=Math.floor(b/60),a=a-60*b;d.innerHTML="-"+(c?c+":":"")+("00"+(b-60*c)).slice(-2)+":"+("00"+a).slice(-2)}var h=f.target,i=h.getDuration();g(0);a.Qc=t.setInterval(function(){var a=h.getCurrentTime();b.style.width=100*(a/i)+"%";g(a)},250);c.C(e,"click",function(a){a=Math.max(0,a.pageX-e.getBoundingClientRect().left);h.seekTo(i*a/e.clientWidth,
l)})}}})}});g.prototype.init=g.prototype.V;g.prototype.reset=g.prototype.reset;g.prototype.disable=g.prototype.disable;g.prototype.time_event=g.prototype.Cd;g.prototype.track=g.prototype.s;g.prototype.track_links=g.prototype.Hd;g.prototype.track_forms=g.prototype.Gd;g.prototype.track_pageview=g.prototype.hc;g.prototype.register=g.prototype.ia;g.prototype.register_once=g.prototype.D;g.prototype.unregister=g.prototype.Ca;g.prototype.identify=g.prototype.$a;g.prototype.alias=g.prototype.Rc;g.prototype.name_tag=
g.prototype.ld;g.prototype.set_config=g.prototype.bc;g.prototype.get_config=g.prototype.c;g.prototype.get_property=g.prototype.wa;g.prototype.get_distinct_id=g.prototype.U;g.prototype.toString=g.prototype.toString;g.prototype._check_and_handle_notifications=g.prototype.mb;g.prototype._show_notification=g.prototype.xb;g.prototype.opt_out_tracking=g.prototype.Yb;g.prototype.opt_in_tracking=g.prototype.nd;g.prototype.has_opted_out_tracking=g.prototype.Za;g.prototype.has_opted_in_tracking=g.prototype.fd;
g.prototype.clear_opt_in_out_tracking=g.prototype.Vc;p.prototype.properties=p.prototype.ha;p.prototype.update_search_keyword=p.prototype.lc;p.prototype.update_referrer_info=p.prototype.kb;p.prototype.get_cross_subdomain=p.prototype.dd;p.prototype.clear=p.prototype.clear;n.prototype.set=n.prototype.set;n.prototype.set_once=n.prototype.dc;n.prototype.unset=n.prototype.jc;n.prototype.increment=n.prototype.Qb;n.prototype.append=n.prototype.append;n.prototype.union=n.prototype.ic;n.prototype.track_charge=
n.prototype.Fd;n.prototype.clear_charges=n.prototype.Fb;n.prototype.delete_user=n.prototype.Kb;n.prototype.toString=n.prototype.toString;c.rd(g);var z={};(function(){U=1;v=t.mixpanel;c.d(v)?q.T('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.'):v.__loaded||v.config&&v.persistence?q.error("Mixpanel library has already been downloaded at least once."):1.1>(v.__SV||0)?q.T("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):
(c.a(v._i,function(a){a&&c.isArray(a)&&(z[a[a.length-1]]=L.apply(this,a))}),ga(),v.init(),c.a(z,function(a){a.qa()}),fa())})()})();
remove:function(a,b){c.cookie.set(a,"",-1,b)}};var Y=m;c.localStorage={gb:function(){if(Y!==m)return Y;var a=l;try{c.localStorage.set("__mplssupport__","xyz"),"xyz"!==c.localStorage.get("__mplssupport__")&&(a=r),c.localStorage.remove("__mplssupport__")}catch(b){a=r}a||q.error("localStorage unsupported; falling back to cookie store");return Y=a},error:function(a){q.error("localStorage error: "+a)},get:function(a){try{return window.localStorage.getItem(a)}catch(b){c.localStorage.error(b)}return m},
parse:function(a){try{return c.na(c.localStorage.get(a))||{}}catch(b){}return m},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.C=function(){function a(a,e,f){return function(j){if(j=j||b(window.event)){var k=l,i;c.fb(f)&&(i=f(j));j=e.call(a,j);if(r===i||r===j)k=r;return k}}}function b(a){if(a)a.preventDefault=b.preventDefault,a.stopPropagation=b.stopPropagation;
return a}b.preventDefault=function(){this.returnValue=r};b.stopPropagation=function(){this.cancelBubble=l};return function(b,c,f,j,k){b?b.addEventListener&&!j?b.addEventListener(c,f,!!k):(c="on"+c,b[c]=a(b,f,b[c])):q.error("No valid element provided to register_event")}}();c.ed=function(){function a(a,b){return 0<=(" "+a.className+" ").replace(d," ").indexOf(" "+b+" ")}function b(b){if(!o.getElementsByTagName)return[];var b=b.split(" "),d,j,k,i,g,h,s,u=[o];for(i=0;i<b.length;i++)if(d=b[i].replace(/^\s+/,
"").replace(/\s+$/,""),-1<d.indexOf("#")){j=d.split("#");d=j[0];u=o.getElementById(j[1]);if(!u||d&&u.nodeName.toLowerCase()!=d)return[];u=[u]}else if(-1<d.indexOf(".")){j=d.split(".");d=j[0];var n=j[1];d||(d="*");j=[];for(g=k=0;g<u.length;g++){s="*"==d?u[g].all?u[g].all:u[g].getElementsByTagName("*"):u[g].getElementsByTagName(d);for(h=0;h<s.length;h++)j[k++]=s[h]}u=[];for(g=d=0;g<j.length;g++)j[g].className&&c.za(j[g].className)&&a(j[g],n)&&(u[d++]=j[g])}else if(j=d.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)){d=
j[1];var p=j[2],n=j[3],q=j[4];d||(d="*");j=[];for(g=k=0;g<u.length;g++){s="*"==d?u[g].all?u[g].all:u[g].getElementsByTagName("*"):u[g].getElementsByTagName(d);for(h=0;h<s.length;h++)j[k++]=s[h]}u=[];d=0;switch(n){case "=":n=function(a){return a.getAttribute(p)==q};break;case "~":n=function(a){return a.getAttribute(p).match(RegExp("\\b"+q+"\\b"))};break;case "|":n=function(a){return a.getAttribute(p).match(RegExp("^"+q+"-?"))};break;case "^":n=function(a){return 0===a.getAttribute(p).indexOf(q)};break;
case "$":n=function(a){return a.getAttribute(p).lastIndexOf(q)==a.getAttribute(p).length-q.length};break;case "*":n=function(a){return-1<a.getAttribute(p).indexOf(q)};break;default:n=function(a){return a.getAttribute(p)}}u=[];for(g=d=0;g<j.length;g++)n(j[g])&&(u[d++]=j[g])}else{j=[];for(g=k=0;g<u.length;g++){s=u[g].getElementsByTagName(d);for(h=0;h<s.length;h++)j[k++]=s[h]}u=j}return u}var d=/[\t\r\n]/g;return function(a){return c.od(a)?[a]:c.k(a)&&!c.d(a.length)?a:b.call(this,a)}}();c.info={$c:function(){var a=
"",b={};c.a("utm_source utm_medium utm_campaign utm_content utm_term".split(" "),function(d){a=c.Qb(o.URL,d);a.length&&(b[d]=a)});return b},wd: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":m},xd:function(a){var b=c.info.wd(a),d={};if(b!==m)d.$search_engine=b,a=c.Qb(a,"yahoo"!=b?"q":"p"),a.length&&(d.mp_keyword=a);return d},
ca:function(a,b,d){return d||c.e(a," OPR/")?c.e(a,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":c.e(a,"IEMobile")||c.e(a,"WPDesktop")?"Internet Explorer Mobile":c.e(a,"Edge")?"Microsoft Edge":c.e(a,"FBIOS")?"Facebook Mobile":c.e(a,"Chrome")?"Chrome":c.e(a,"CriOS")?"Chrome iOS":c.e(a,"UCWEB")||c.e(a,"UCBrowser")?"UC Browser":c.e(a,"FxiOS")?"Firefox iOS":c.e(b||"","Apple")?c.e(a,"Mobile")?"Mobile Safari":"Safari":c.e(a,"Android")?"Android Mobile":c.e(a,"Konqueror")?
"Konqueror":c.e(a,"Firefox")?"Firefox":c.e(a,"MSIE")||c.e(a,"Trident/")?"Internet Explorer":c.e(a,"Gecko")?"Mozilla":""},Fb: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+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[c.info.ca(a,b,d)];if(void 0===b)return m;a=a.match(b);return!a?m:parseFloat(a[a.length-2])},kb:function(){return/Windows/i.test(w)?/Phone/.test(w)||/WPDesktop/.test(w)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(w)?"iOS":/Android/.test(w)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(w)?"BlackBerry":/Mac/i.test(w)?
"Mac OS X":/Linux/.test(w)?"Linux":/CrOS/.test(w)?"Chrome OS":""},Ob: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":""},ec:function(a){a=a.split("/");return 3<=a.length?a[2]:""},ia:function(){return c.extend(c.Aa({$os:c.info.kb(),$browser:c.info.ca(w,H.vendor,K),$referrer:o.referrer,$referring_domain:c.info.ec(o.referrer),
$device:c.info.Ob(w)}),{$current_url:t.location.href,$browser_version:c.info.Fb(w,H.vendor,K),$screen_height:T.height,$screen_width:T.width,mp_lib:"web",$lib_version:"2.22.2"})},sd:function(){return c.extend(c.Aa({$os:c.info.kb(),$browser:c.info.ca(w,H.vendor,K)}),{$browser_version:c.info.Fb(w,H.vendor,K)})},rd:function(a){return c.Aa({mp_page:a,mp_referrer:o.referrer,mp_browser:c.info.ca(w,H.vendor,K),mp_platform:c.info.kb()})}};c.toArray=c.ka;c.isObject=c.k;c.JSONEncode=c.oa;c.JSONDecode=c.na;c.isBlockedUA=
c.Vb;c.isEmptyObject=c.eb;c.info=c.info;c.info.device=c.info.Ob;c.info.browser=c.info.ca;c.info.properties=c.info.ia;var I={vb:[],Sc:function(a){if(a.previousElementSibling)return a.previousElementSibling;do a=a.previousSibling;while(a&&!(a&&1===a.nodeType));return a},Pc:function(a,b){var c=document.createElement("script");c.type="text/javascript";c.src=a;c.onload=b;var e=document.getElementsByTagName("script");0<e.length?e[0].parentNode.insertBefore(c,e[0]):document.body.appendChild(c)},Ic:function(a){var b=
{classes:N(a).split(" "),tag_name:a.tagName.toLowerCase()};O(a)&&c.a(a.attributes,function(a){if(P(a.value))b["attr__"+a.name]=a.value});for(var d=1,e=1,f=a;f=this.Sc(f);)d++,f.tagName===a.tagName&&e++;b.nth_child=d;b.nth_of_type=e;return b},tb:function(a){return{$event_type:a,$ce_version:1,$host:window.location.host,$pathname:window.location.pathname}},Ec:function(a){var b=[];c.a(document.querySelectorAll(a.css_selector),function(a){var c;-1<["input","select"].indexOf(a.tagName.toLowerCase())?c=
a.value:a.textContent&&(c=a.textContent);P(c)&&b.push(c)});return b.join(", ")},Gc:function(a){var b={};c.a(this.qb,function(d){c.a(d.event_selectors,function(e){e=document.querySelectorAll(e);c.a(e,function(f){c.e(a,f)&&O(f)&&(b[d.name]=this.Ec(d))},this)},this)},this);return b},Hc:function(a){return"undefined"===typeof a.target?a.srcElement:a.target},Vc:function(a,b){var d=this.Hc(a);if(d&&3===d.nodeType)d=d.parentNode;if(la(d,a)){for(var e=[d],f=d;f.parentNode&&!E(f,"body");)e.push(f.parentNode),
f=f.parentNode;var j=[],g,i=r;c.a(e,function(a){var b=O(a);"a"===a.tagName.toLowerCase()&&(g=a.getAttribute("href"),g=b&&P(g)&&g);b=N(a).split(" ");c.e(b,"mp-no-track")&&(i=l);j.push(this.Ic(a))},this);if(i)return r;var h;(d=ka(d))&&d.length&&(h=d);e=c.extend(this.tb(a.type),{$elements:j,$el_attr__href:g,$el_text:h},this.Gc(e));b.s("$web_event",e);return l}},Rd:function(a){window.location.href=a},zc:function(a){var b=c.bind(function(b){b=b||window.event;this.Vc(b,a)},this);c.C(document,"submit",b,
r,l);c.C(document,"change",b,r,l);c.C(document,"click",b,r,l)},qb:{},V:function(a){if(!document||!document.body){console.log("document not ready yet, trying again in 500 milliseconds...");var b=this;setTimeout(function(){b.V(a)},500)}else{var d=a.c("token");if(-1<this.vb.indexOf(d))console.log('autotrack already initialized for token "'+d+'"');else if(this.vb.push(d),!this.Qc(a)){var e=c.bind(function(b){if(b&&b.config&&b.config.enable_collect_everything===l){if(b.custom_properties)this.qb=b.custom_properties;
a.s("$web_event",c.extend({$title:document.title},this.tb("pageview")));this.zc(a)}else a.__autotrack_enabled=r},this);a.m(a.c("api_host")+"/decide/",{verbose:l,version:"1",lib:"web",token:d},a.sa(e))}}},rb:function(a,b){var d;try{var e=c.ea(b,"state"),e=JSON.parse(decodeURIComponent(e)),f=c.ea(b,"expires_in");d={accessToken:c.ea(b,"access_token"),accessTokenExpiresAt:(new Date).getTime()+1E3*Number(f),bookmarkletMode:!!e.bookmarkletMode,projectId:e.projectId,projectOwnerId:e.projectOwnerId,projectToken:e.token,
readOnly:e.readOnly,userFlags:e.userFlags,userId:e.userId};window.sessionStorage.setItem("editorParams",JSON.stringify(d));e.desiredHash?window.location.hash=e.desiredHash:window.history?history.replaceState("",document.title,window.location.pathname+window.location.search):window.location.hash=""}catch(j){console.error("Unable to parse data from hash",j)}return d},Qc:function(a){try{var b=r;if(c.ea(window.location.hash,"state"))var d=c.ea(window.location.hash,"state"),d=JSON.parse(decodeURIComponent(d)),
b="mpeditor"===d.action;var e=!!window.sessionStorage.getItem("_mpcehash"),f;b?f=this.rb(a,window.location.hash):e?(f=this.rb(a,window.sessionStorage.getItem("_mpcehash")),window.sessionStorage.removeItem("_mpcehash")):f=JSON.parse(window.sessionStorage.getItem("editorParams")||"{}");return f.projectToken&&a.c("token")===f.projectToken?(this.Oc(a,f),l):r}catch(j){return r}},Oc:function(a,b){return!window._mpEditorLoaded?(window._mpEditorLoaded=l,this.Pc(a.c("app_host")+"/js-bundle/reports/collect-everything/editor.js?_ts="+
(new Date).getTime(),function(){window.mp_load_editor(b)}),l):r},gd:function(a,b,d){for(var b=!c.d(b)?b:10,d=!c.d(d)?d:10,e=0,f=0;f<a.length;f++)e+=a.charCodeAt(f);return e%b<d},md:function(){return c.fb(document.querySelectorAll)}};c.Eb(I);c.vd(I);var qa="__mp_opt_in_out_",V,v,ra="__mps,__mpso,__mpus,__mpa,__mpap,__mpu,$people_distinct_id,__alias,__cmpns,__timers".split(","),U=t.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,$=!U&&-1===w.indexOf("MSIE")&&-1===w.indexOf("Mozilla"),sa={api_host:"https://api.mixpanel.com",
app_host:"https://mixpanel.com",autotrack:l,cdn:"https://cdn.mxpnl.com",cross_subdomain_cookie:l,persistence:"cookie",persistence_name:"",cookie_name:"",loaded:C(),store_google:l,save_referrer:l,test:r,verbose:r,img:r,track_pageview:l,debug:r,track_links_timeout:300,cookie_expiration:365,upgrade:r,disable_persistence:r,disable_cookie:r,secure_cookie:r,ip:l,opt_out_tracking_by_default:r,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:m,property_blacklist:[],xhr_headers:{}},
Z=r;y.prototype.wa=C();y.prototype.Xa=C();y.prototype.Ta=C();y.prototype.V=function(a){this.Zb=a;return this};y.prototype.s=function(a,b,d,e){var f=this,j=c.ed(a);if(0===j.length)q.error("The DOM query ("+a+") returned 0 elements");else return c.a(j,function(a){c.C(a,this.bc,function(a){var c={},j=f.wa(d,this),g=f.Zb.c("track_links_timeout");f.Xa(a,this,c);t.setTimeout(f.lc(e,j,c,l),g);f.Zb.s(b,j,f.lc(e,j,c))})},this),l};y.prototype.lc=function(a,b,c,e){var e=e||r,f=this;return function(){if(!c.Zc)c.Zc=
l,a&&a(e,b)===r||f.Ta(b,c,e)}};y.prototype.wa=function(a,b){return"function"===typeof a?a(b):c.extend({},a)};c.Ub(D,y);D.prototype.wa=function(a,b){var c=D.Ed.wa.apply(this,arguments);if(b.href)c.url=b.href;return c};D.prototype.Xa=function(a,b,c){c.$b=2===a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;c.href=b.href;c.$b||a.preventDefault()};D.prototype.Ta=function(a,b){b.$b||setTimeout(function(){t.location=b.href},0)};c.Ub(M,y);M.prototype.Xa=function(a,b,c){c.element=b;a.preventDefault()};
M.prototype.Ta=function(a,b){setTimeout(function(){b.element.submit()},0)};p.prototype.ia=function(){var a={};c.a(this.props,function(b,d){c.Sb(ra,d)||(a[d]=b)});return a};p.prototype.load=function(){if(!this.disabled){var a=this.v.parse(this.name);a&&(this.props=c.extend({},a))}};p.prototype.Md=function(a){var b=a.upgrade,d;if(b)d="mp_super_properties","string"===typeof b&&(d=b),b=this.v.parse(d),this.v.remove(d),this.v.remove(d,l),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.v.parse(d)))this.v.remove(d),this.v.remove(d,l),this.D(b);this.v===c.localStorage&&(b=c.cookie.parse(this.name),c.cookie.remove(this.name),c.cookie.remove(this.name,l),b&&this.D(b))};p.prototype.save=function(){this.disabled||(this.Dc(),this.v.set(this.name,c.oa(this.props),this.Ya,this.Va,this.fc))};p.prototype.remove=function(){this.v.remove(this.name,r);this.v.remove(this.name,l)};p.prototype.clear=function(){this.remove();this.props={}};
p.prototype.D=function(a,b,d){return c.k(a)?("undefined"===typeof b&&(b="None"),this.Ya="undefined"===typeof d?this.Mb:d,c.a(a,function(a,c){if(!this.props.hasOwnProperty(c)||this.props[c]===b)this.props[c]=a},this),this.save(),l):r};p.prototype.ja=function(a,b){return c.k(a)?(this.Ya="undefined"===typeof b?this.Mb:b,c.extend(this.props,a),this.save(),l):r};p.prototype.Da=function(a){a in this.props&&(delete this.props[a],this.save())};p.prototype.Dc=c.l(function(){var a=this.props.__cmpns,b=A?6E4:
36E5;if(a){for(var d in a)1*new Date-a[d]>b&&delete a[d];c.eb(a)&&delete this.props.__cmpns}});p.prototype.Ld=function(){if(!this.Gb)this.D(c.info.$c()),this.Gb=l};p.prototype.qc=function(a){this.ja(c.info.xd(a))};p.prototype.nb=function(a){this.D({$initial_referrer:a||"$direct",$initial_referring_domain:c.info.ec(a)||"$direct"},"")};p.prototype.kd=function(){return c.Aa({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};p.prototype.pc=
function(a){this.Mb=this.Ya=a.cookie_expiration;this.hc(a.disable_persistence);this.zd(a.cross_subdomain_cookie);this.Bd(a.secure_cookie)};p.prototype.hc=function(a){(this.disabled=a)?this.remove():this.save()};p.prototype.zd=function(a){if(a!==this.Va)this.Va=a,this.remove(),this.save()};p.prototype.jd=function(){return this.Va};p.prototype.Bd=function(a){if(a!==this.fc)this.fc=a?l:r,this.remove(),this.save()};p.prototype.H=function(a,b){var d=this.Na(a),e=b[a],f=this.R("$set"),j=this.R("$set_once"),
g=this.R("$unset"),i=this.R("$add"),h=this.R("$union"),n=this.R("$append",[]);"__mps"===d?(c.extend(f,e),this.I("$add",e),this.I("$union",e),this.I("$unset",e)):"__mpso"===d?(c.a(e,function(a,b){b in j||(j[b]=a)}),this.I("$unset",e)):"__mpus"===d?c.a(e,function(a){c.a([f,j,i,h],function(b){a in b&&delete b[a]});c.a(n,function(b){a in b&&delete b[a]});g[a]=l}):"__mpa"===d?(c.a(e,function(a,b){b in f?f[b]+=a:(b in i||(i[b]=0),i[b]+=a)},this),this.I("$unset",e)):"__mpu"===d?(c.a(e,function(a,b){c.isArray(a)&&
(b in h||(h[b]=[]),h[b]=h[b].concat(a))}),this.I("$unset",e)):"__mpap"===d&&(n.push(e),this.I("$unset",e));q.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");q.log(b);this.save()};p.prototype.I=function(a,b){var d=this.Ma(a);c.d(d)||(c.a(b,function(a,b){delete d[b]},this),this.save())};p.prototype.Na=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("$union"===a)return"__mpu";
q.error("Invalid queue:",a)};p.prototype.Ma=function(a){return this.props[this.Na(a)]};p.prototype.R=function(a,b){var d=this.Na(a),b=c.d(b)?{}:b;return this.props[d]||(this.props[d]=b)};p.prototype.Ad=function(a){var b=this.props.__timers||{};b[a]=(new Date).getTime();this.props.__timers=b;this.save()};p.prototype.td=function(a){var b=(this.props.__timers||{})[a];c.d(b)||(delete this.props.__timers[a],this.save());return b};var g;h.prototype.V=function(a,b,d){if(c.d(d))q.error("You must name your new library: init(token, config, name)");
else if("mixpanel"===d)q.error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");else return a=L(a,b,d),v[d]=a,a.ra(),a};h.prototype.Pa=function(a,b,d){this.__loaded=l;this.config={};this.gc(c.extend({},sa,b,{name:d,token:a,callback_fn:("mixpanel"===d?d:"mixpanel."+d)+"._jsc"}));this._jsc=C();this.Ja=[];this.Ka=[];this.Ia=[];this.P={disable_all_events:r,identify_called:r};this.persistence=this.cookie=new p(this.config);this.Jc();this.D({distinct_id:c.ob()},
"")};h.prototype.ta=function(){var a=this.c("disable_persistence")||this.fa();this.persistence.disabled!==a&&this.persistence.hc(a)};h.prototype.ra=function(){this.c("loaded")(this);this.c("track_pageview")&&this.mc()};h.prototype.Bc=function(){c.a(this.Ja,function(a){this.Ra.apply(this,a)},this);this.fa()||c.a(this.Ka,function(a){this.m.apply(this,a)},this);delete this.Ja;delete this.Ka};h.prototype.Ra=function(a,b){if(this.c("img"))return q.error("You can't use DOM tracking functions with img = true."),
r;if(!Z)return this.Ja.push([a,b]),r;var c=(new a).V(this);return c.s.apply(c,b)};h.prototype.sa=function(a,b){if(c.d(a))return m;if(U)return function(c){a(c,b)};var d=this._jsc,e=""+Math.floor(1E8*Math.random()),f=this.c("callback_fn")+"["+e+"]";d[e]=function(c){delete d[e];a(c,b)};return f};h.prototype.m=function(a,b,d){if($)this.Ka.push(arguments);else{var e=this.c("verbose");b.verbose&&(e=l);this.c("test")&&(b.test=1);e&&(b.verbose=1);this.c("img")&&(b.img=1);if(!U)if(d)b.callback=d;else if(e||
this.c("test"))b.callback="(function(){})";b.ip=this.c("ip")?1:0;b._=(new Date).getTime().toString();a+="?"+c.vc(b);if("img"in b){var f=o.createElement("img");f.src=a;o.body.appendChild(f)}else if(U)try{var j=new XMLHttpRequest;j.open("GET",a,l);c.a(this.c("xhr_headers"),function(a,b){j.setRequestHeader(b,a)});j.withCredentials=l;j.onreadystatechange=function(){if(4===j.readyState)if(200===j.status){if(d)if(e){var a;try{a=c.na(j.responseText)}catch(b){q.error(b);return}d(a)}else d(Number(j.responseText))}else a=
"Bad HTTP status: "+j.status+" "+j.statusText,q.error(a),d&&(e?d({status:0,error:a}):d(0))};j.send(m)}catch(g){q.error(g)}else{f=o.createElement("script");f.type="text/javascript";f.async=l;f.defer=l;f.src=a;var i=o.getElementsByTagName("script")[0];i.parentNode.insertBefore(f,i)}}};h.prototype.La=function(a){function b(a,b){c.a(a,function(a){this[a[0]].apply(this,a.slice(1))},b)}var d,e=[],f=[],j=[];c.a(a,function(a){a&&(d=a[0],"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]?j.push(a):f.push(a))},this);b(e,this);b(f,this);b(j,this)};h.prototype.push=function(a){this.La([a])};h.prototype.disable=function(a){"undefined"===typeof a?this.P.bd=l:this.Ia=this.Ia.concat(a)};h.prototype.s=ca(function(a,b,d){"function"!==typeof d&&(d=C());if(c.d(a))q.error("No event name provided to mixpanel.track");else if(this.sb(a))d(0);else{b=b||{};b.token=this.c("token");var e=this.persistence.td(a);c.d(e)||(b.$duration=parseFloat((((new Date).getTime()-
e)/1E3).toFixed(3)));this.persistence.qc(o.referrer);this.c("store_google")&&this.persistence.Ld();this.c("save_referrer")&&this.persistence.nb(o.referrer);b=c.extend({},c.info.ia(),this.persistence.ia(),b);e=this.c("property_blacklist");c.isArray(e)?c.a(e,function(a){delete b[a]}):q.error("Invalid value for property_blacklist config: "+e);a=c.truncate({event:a,properties:b},255);e=c.oa(a);e=c.Cb(e);q.log("MIXPANEL REQUEST:");q.log(a);this.m(this.c("api_host")+"/track/",{data:e},this.sa(d,a));return a}});
h.prototype.mc=function(a){if(c.d(a))a=o.location.href;this.s("mp_page_view",c.info.rd(a))};h.prototype.Kd=function(){return this.Ra.call(this,D,arguments)};h.prototype.Jd=function(){return this.Ra.call(this,M,arguments)};h.prototype.Fd=function(a){c.d(a)?q.error("No event name provided to mixpanel.time_event"):this.sb(a)||this.persistence.Ad(a)};h.prototype.ja=function(a,b){this.persistence.ja(a,b)};h.prototype.D=function(a,b,c){this.persistence.D(a,b,c)};h.prototype.Da=function(a){this.persistence.Da(a)};
h.prototype.Qa=function(a,b){var c={};c[a]=b;this.ja(c)};h.prototype.ab=function(a,b,c,e,f,j,g){a!==this.U()&&a!==this.xa("__alias")&&(this.Da("__alias"),this.Qa("distinct_id",a));this.pb(this.U());this.P.bb=l;this.people.Fc(b,c,e,f,j,g)};h.prototype.reset=function(){this.persistence.clear();this.P.bb=r;this.D({distinct_id:c.ob()},"")};h.prototype.U=function(){return this.xa("distinct_id")};h.prototype.Xc=function(a,b){if(a===this.xa("$people_distinct_id"))return q.T("Attempting to create alias for existing People user - aborting."),
-2;var d=this;c.d(b)&&(b=this.U());if(a!==b)return this.Qa("__alias",a),this.s("$create_alias",{alias:a,distinct_id:b},function(){d.ab(a)});q.error("alias matches current distinct_id - skipping api call.");this.ab(a);return-1};h.prototype.pd=function(a){this.Qa("mp_name_tag",a)};h.prototype.gc=function(a){if(c.k(a))c.extend(this.config,a),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.pc(this.config),A=A||this.c("debug")};h.prototype.c=function(a){return this.config[a]};h.prototype.xa=function(a){return this.persistence.props[a]};h.prototype.toString=function(){var a=this.c("name");"mixpanel"!==a&&(a="mixpanel."+a);return a};h.prototype.sb=function(a){return c.Vb(w)||this.P.bd||c.Sb(this.Ia,a)};h.prototype.pb=ca(function(a){if(a&&!this.P.bb&&!this.c("disable_notifications")){q.log("MIXPANEL NOTIFICATION CHECK");var b=this;this.m(this.c("api_host")+
"/decide/",{verbose:l,version:"2",lib:"web",token:this.c("token"),distinct_id:a},this.sa(function(a){a.notifications&&0<a.notifications.length&&b.Ab.call(b,a.notifications[0])}))}});h.prototype.Ab=function(a){(new g(a,this)).show()};h.prototype.Jc=function(){"localStorage"===this.c("opt_out_tracking_persistence_type")&&c.localStorage.gb()&&(!this.$a()&&this.$a({persistence_type:"cookie"})&&(this.Ud({persistence_type:"cookie"}),this.ac()),!this.fa()&&this.fa({persistence_type:"cookie"})&&(this.Jb({persistence_type:"cookie"}),
this.jb()));if(this.c("opt_out_tracking_by_default")||c.cookie.get("mp_optout"))c.cookie.remove("mp_optout"),this.jb();this.ta()};h.prototype.Z=function(a,b){b=c.extend({track:c.bind(this.s,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_subdomain_cookie:this.c("cross_subdomain_cookie"),secure_cookie:this.c("secure_cookie")},b);c.localStorage.gb()||(b.persistence_type="cookie");
return a(this.c("token"),{s:b.track,Gd:b.track_event_name,Hd:b.track_properties,dc:b.persistence_type,cc:b.cookie_prefix,Kb:b.cookie_expiration,Lb:b.cross_subdomain_cookie,yd:b.secure_cookie})};h.prototype.ac=function(a){this.Z(ma,a);this.ta()};h.prototype.jb=function(a){a=c.extend({delete_user:l},a);a.delete_user&&this.people&&this.people.Oa()&&(this.people.Nb(),this.people.Ib());this.Z(na,a);this.ta()};h.prototype.$a=function(a){return this.Z(oa,a)};h.prototype.fa=function(a){return this.Z(ba,a)};
h.prototype.Jb=function(a){this.Z(pa,a);this.ta()};n.prototype.Pa=function(a){this.i=a};n.prototype.set=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(b)||(f[b]=a)},this),d=b):f[a]=b;this.aa("save_referrer")&&this.i.persistence.nb(o.referrer);f=c.extend({},c.info.sd(),this.i.persistence.kd(),f);e.$set=f;return this.m(e,d)});n.prototype.ic=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(b)||(f[b]=a)},this),d=b):f[a]=b;e.$set_once=f;return this.m(e,d)});n.prototype.oc=
function(a,b){var d={},e=[];c.isArray(a)||(a=[a]);c.a(a,function(a){this.S(a)||e.push(a)},this);d.$unset=e;return this.m(d,b)};n.prototype.Tb=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(b)||(isNaN(parseFloat(a))?q.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):f[b]=a)},this),d=b):(c.d(b)&&(b=1),f[a]=b);e.$add=f;return this.m(e,d)});n.prototype.append=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(b)||(f[b]=a)},this),
d=b):f[a]=b;e.$append=f;return this.m(e,d)});n.prototype.nc=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(b)||(f[b]=c.isArray(a)?a:[a])},this),d=b):f[a]=c.isArray(b)?b:[b];e.$union=f;return this.m(e,d)});n.prototype.Id=F(function(a,b,d){if(!c.Wb(a)&&(a=parseFloat(a),isNaN(a))){q.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",c.extend({$amount:a},b),d)});n.prototype.Ib=function(a){return this.set("$transactions",
[],a)};n.prototype.Nb=function(){if(this.Oa())return this.m({$delete:this.i.U()});q.error("mixpanel.people.delete_user() requires you to call identify() first")};n.prototype.toString=function(){return this.i.toString()+".people"};n.prototype.m=function(a,b){a.$token=this.aa("token");a.$distinct_id=this.i.U();var d=c.Pb(a),e=c.truncate(d,255),d=c.oa(d),d=c.Cb(d);if(!this.Oa())return this.Cc(a),c.d(b)||(this.aa("verbose")?b({status:-1,error:m}):b(-1)),e;q.log("MIXPANEL PEOPLE REQUEST:");q.log(e);this.i.m(this.aa("api_host")+
"/engage/",{data:d},this.i.sa(b,e));return e};n.prototype.aa=function(a){return this.i.c(a)};n.prototype.Oa=function(){return this.i.P.bb===l};n.prototype.Cc=function(a){"$set"in a?this.i.persistence.H("$set",a):"$set_once"in a?this.i.persistence.H("$set_once",a):"$unset"in a?this.i.persistence.H("$unset",a):"$add"in a?this.i.persistence.H("$add",a):"$append"in a?this.i.persistence.H("$append",a):"$union"in a?this.i.persistence.H("$union",a):q.error("Invalid call to _enqueue():",a)};n.prototype.$=
function(a,b,d,e){var f=this,g=c.extend({},this.i.persistence.Ma(a)),h=g;!c.d(g)&&c.k(g)&&!c.eb(g)&&(f.i.persistence.I(a,g),e&&(h=e(g)),b.call(f,h,function(b,e){0===b&&f.i.persistence.H(a,g);c.d(d)||d(b,e)}))};n.prototype.Fc=function(a,b,d,e,f,g){var h=this,i=this.i.persistence.Ma("$append");this.$("$set",this.set,a);this.$("$set_once",this.ic,e);this.$("$unset",this.oc,g,function(a){return c.keys(a)});this.$("$add",this.Tb,b);this.$("$union",this.nc,f);if(!c.d(i)&&c.isArray(i)&&i.length){for(var n,
a=function(a,b){0===a&&h.i.persistence.H("$append",n);c.d(d)||d(a,b)},b=i.length-1;0<=b;b--)n=i.pop(),h.append(n,a);h.i.persistence.save()}};n.prototype.S=function(a){return"$distinct_id"===a||"$token"===a};h.yc=function(a,b){c.Eb(this);this.ib=b;this.lb=this.ib.persistence;this.B=c.K(a.id);this.Yb=c.K(a.message_id);this.body=(c.K(a.body)||"").replace(/\n/g,"<br/>");this.ad=c.K(a.cta)||"Close";this.ga=c.K(a.type)||"takeover";this.style=c.K(a.style)||"light";this.title=c.K(a.title)||"";this.la=g.xc;
this.X=g.wc;this.da=a.cta_url||m;this.cb=a.image_url||m;this.L=a.thumb_image_url||m;this.Ea=a.video_url||m;this.va=l;if(!this.da)this.da="#dismiss",this.va=r;this.u="mini"===this.ga;if(!this.u)this.ga="takeover";this.qd=!this.u?g.Y:g.Fa;this.zb();this.ya=this.Kc();this.Nc()};g=h.yc;g.M=200;g.w="mixpanel-notification";g.ma=0.6;g.G=25;g.pa=200;g.Y=388;g.Fa=420;g.z=85;g.Ga=5;g.J=60;g.Ha=Math.round(g.J/2);g.xc=595;g.wc=334;g.prototype.show=function(){var a=this;this.zb();this.p?(this.Mc(),this.Lc(),this.Rc(this.Ac)):
setTimeout(function(){a.show()},300)};g.prototype.Wa=c.l(function(){this.Xb||this.xb({invisible:l});var a=this.Cd?this.h("video"):this.Q();if(this.rc)this.Tc("bg","visible"),this.N(a,"exiting"),setTimeout(this.yb,g.M);else{var b,c,e;this.u?(b="right",c=20,e=-100):(b="top",c=g.G,e=g.pa+g.G);this.qa([{q:this.h("bg"),o:"opacity",start:g.ma,j:0},{q:a,o:"opacity",start:1,j:0},{q:a,o:b,start:c,j:e}],g.M,this.yb)}});g.prototype.N=c.l(function(a,b){b=g.w+"-"+b;"string"===typeof a&&(a=this.h(a));a.className?
~(" "+a.className+" ").indexOf(" "+b+" ")||(a.className+=" "+b):a.className=b});g.prototype.Tc=c.l(function(a,b){b=g.w+"-"+b;"string"===typeof a&&(a=this.h(a));if(a.className)a.className=(" "+a.className+" ").replace(" "+b+" ","").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")});g.prototype.qa=c.l(function(a,b,c,e){var f=this,g=r,h,i;h=1*new Date;var n,e=e||h;n=h-e;for(h=0;h<a.length;h++){i=a[h];if("undefined"===typeof i.F)i.F=i.start;if(i.F!==i.j){var g=l,o=i.j>=i.start?1:-1;i.F=i.start+(i.j-
i.start)*n/b;if("opacity"!==i.o)i.F=Math.round(i.F);if(0<o&&i.F>=i.j||0>o&&i.F<=i.j)i.F=i.j}}if(g){for(h=0;h<a.length;h++)i=a[h],i.q&&(i.q.style[i.o]=""+i.F+("opacity"===i.o?"":"px"));setTimeout(function(){f.qa(a,b,c,e)},10)}else c&&c()});g.prototype.Ac=c.l(function(){var a=this;if(!this.Dd&&!this.ub()[this.B])this.Dd=l,this.p.appendChild(this.ha),setTimeout(function(){var b=a.Q();if(a.rc)a.u||a.N("bg","visible"),a.N(b,"visible"),a.wb();else{var c,e,f;a.u?(c="right",e=-100,f=20):(c="top",e=g.pa+g.G,
f=g.G);a.qa([{q:a.h("bg"),o:"opacity",start:0,j:g.ma},{q:b,o:"opacity",start:0,j:1},{q:b,o:c,start:e,j:f}],g.M,a.wb)}},100),c.C(a.h("cancel"),"click",function(b){b.preventDefault();a.Wa()}),c.C(a.h("button")||a.h("mini-content"),"click",function(b){b.preventDefault();a.W?(a.Sa("$campaign_open",{$resource_type:"video"}),a.Uc()):(a.Wa(),a.va&&a.Sa("$campaign_open",{$resource_type:"link"},function(){t.location.href=a.da}))})});g.prototype.h=function(a){return o.getElementById(g.w+"-"+a)};g.prototype.Q=
function(){return this.h(this.ga)};g.prototype.ub=function(){return this.lb.props.__cmpns||(this.lb.props.__cmpns={})};g.prototype.O=function(a,b){return this.A[a]&&this.A[a]<=b};g.prototype.Kc=function(){var a=[];this.u?(this.L=this.L||"//cdn.mxpnl.com/site_media/images/icons/notifications/mini-news-dark.png",a.push(this.L)):(this.cb?(a.push(this.cb),this.Rb='<img id="img" src="'+this.cb+'"/>'):this.Rb="",this.L?(a.push(this.L),this.kc='<div id="thumbborder-wrapper"><div id="thumbborder"></div></div><img id="thumbnail" src="'+
this.L+'" width="'+g.J+'" height="'+g.J+'"/><div id="thumbspacer"></div>'):this.kc="");return a};g.prototype.Lc=function(){var a="",b="",c="";this.ha=o.createElement("div");this.ha.id=g.w+"-wrapper";if(this.u)a='<div id="mini"><div id="mainbox"><div id="cancel"><div id="cancel-icon"></div></div><div id="mini-content"><div id="mini-icon"><div id="mini-icon-img"></div></div><div id="body"><div id="body-text"><div>'+this.body+'</div></div></div></div></div><div id="mini-border"></div></div>';else{var a=
this.va||this.W?"":'<div id="button-close"></div>',e=this.W?'<div id="button-play"></div>':"";this.O("ie",7)&&(e=a="");a='<div id="takeover">'+this.kc+'<div id="mainbox"><div id="cancel"><div id="cancel-icon"></div></div><div id="content">'+this.Rb+'<div id="title">'+this.title+'</div><div id="body">'+this.body+'</div><div id="tagline"><a href="http://mixpanel.com?from=inapp" target="_blank">POWERED BY MIXPANEL</a></div></div><div id="button">'+a+'<a id="button-link" href="'+this.da+'">'+this.ad+
"</a>"+e+"</div></div></div>"}this.tc?(b="//www.youtube.com/embed/"+this.tc+"?wmode=transparent&showinfo=0&modestbranding=0&rel=0&autoplay=1&loop=0&vq=hd1080",this.uc&&(b+="&enablejsapi=1&html5=1&controls=0",c='<div id="video-controls"><div id="video-progress" class="video-progress-el"><div id="video-progress-total" class="video-progress-el"></div><div id="video-elapsed" class="video-progress-el"></div></div><div id="video-time" class="video-progress-el"></div></div>')):this.sc&&(b="//player.vimeo.com/video/"+
this.sc+"?autoplay=1&title=0&byline=0&portrait=0");if(this.W)this.Pd='<iframe id="'+g.w+'-video-frame" width="'+this.la+'" height="'+this.X+'" src="'+b+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen="1" scrolling="no"></iframe>',c='<div id="video-'+(this.Za?"":"no")+'flip"><div id="video"><div id="video-holder"></div>'+c+"</div></div>";b=c+a;this.Za&&(b=(this.u?a:"")+'<div id="flipcontainer"><div id="flipper">'+(this.u?c:b)+"</div></div>");this.ha.innerHTML=('<div id="overlay" class="'+
this.ga+'"><div id="campaignid-'+this.B+'"><div id="bgwrapper"><div id="bg"></div>'+b+"</div></div></div>").replace(/class=\"/g,'class="'+g.w+"-").replace(/id=\"/g,'id="'+g.w+"-")};g.prototype.Mc=function(){this.g="dark"===this.style?{Ua:"#1d1f25",ba:"#282b32",ua:"#3a4147",Db:"#4a5157",Yc:"#32353c",Hb:"0.4",hb:"#2a3137",Ca:"#fff",mb:"#9498a3",jc:"#464851",Ba:"#ddd"}:{Ua:"#fff",ba:"#e7eaee",ua:"#eceff3",Db:"#f5f5f5",Yc:"#e4ecf2",Hb:"1.0",hb:"#fafafa",Ca:"#5c6578",mb:"#8b949b",jc:"#ced9e6",Ba:"#7c8598"};
var a="0px 0px 35px 0px rgba(45, 49, 56, 0.7)",b=a,d=a,e=g.J+2*g.Ga,f=g.M/1E3+"s";this.u&&(a="none");var h={};h["@media only screen and (max-width: "+(g.Fa+20-1)+"px)"]={"#overlay":{display:"none"}};a={".flipped":{transform:"rotateY(180deg)"},"#overlay":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",overflow:"auto","text-align":"center","z-index":"10000","font-family":'"Helvetica", "Arial", sans-serif',"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},"#overlay.mini":{height:"0",
overflow:"visible"},"#overlay a":{width:"initial",padding:"0","text-decoration":"none","text-transform":"none",color:"inherit"},"#bgwrapper":{position:"relative",width:"100%",height:"100%"},"#bg":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","min-width":4*this.dd+"px","min-height":4*this.cd+"px","background-color":"black",opacity:"0.0","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)",filter:"alpha(opacity=60)",transition:"opacity "+f},"#bg.visible":{opacity:g.ma},
".mini #bg":{width:"0",height:"0","min-width":"0"},"#flipcontainer":{perspective:"1000px",position:"absolute",width:"100%"},"#flipper":{position:"relative","transform-style":"preserve-3d",transition:"0.3s"},"#takeover":{position:"absolute",left:"50%",width:g.Y+"px","margin-left":Math.round(-g.Y/2)+"px","backface-visibility":"hidden",transform:"rotateY(0deg)",opacity:"0.0",top:g.pa+"px",transition:"opacity "+f+", top "+f},"#takeover.visible":{opacity:"1.0",top:g.G+"px"},"#takeover.exiting":{opacity:"0.0",
top:g.pa+"px"},"#thumbspacer":{height:g.Ha+"px"},"#thumbborder-wrapper":{position:"absolute",top:-g.Ga+"px",left:g.Y/2-g.Ha-g.Ga+"px",width:e+"px",height:e/2+"px",overflow:"hidden"},"#thumbborder":{position:"absolute",width:e+"px",height:e+"px","border-radius":e+"px","background-color":this.g.ba,opacity:"0.5"},"#thumbnail":{position:"absolute",top:"0px",left:g.Y/2-g.Ha+"px",width:g.J+"px",height:g.J+"px",overflow:"hidden","z-index":"100","border-radius":g.J+"px"},"#mini":{position:"absolute",right:"20px",
top:g.G+"px",width:this.qd+"px",height:2*g.z+"px","margin-top":20-g.z+"px","backface-visibility":"hidden",opacity:"0.0",transform:"rotateX(90deg)",transition:"opacity 0.3s, transform 0.3s, right 0.3s"},"#mini.visible":{opacity:"1.0",transform:"rotateX(0deg)"},"#mini.exiting":{opacity:"0.0",right:"-150px"},"#mainbox":{"border-radius":"4px","box-shadow":a,"text-align":"center","background-color":this.g.Ua,"font-size":"14px",color:this.g.mb},"#mini #mainbox":{height:g.z+"px","margin-top":g.z+"px","border-radius":"3px",
transition:"background-color "+f},"#mini-border":{height:g.z+6+"px",width:g.Fa+6+"px",position:"absolute",top:"-3px",left:"-3px","margin-top":g.z+"px","border-radius":"6px",opacity:"0.25","background-color":"#fff","z-index":"-1","box-shadow":d},"#mini-icon":{position:"relative",display:"inline-block",width:"75px",height:g.z+"px","border-radius":"3px 0 0 3px","background-color":this.g.ba,background:"linear-gradient(135deg, "+this.g.Db+" 0%, "+this.g.ba+" 100%)",transition:"background-color "+f},"#mini:hover #mini-icon":{"background-color":this.g.hb},
"#mini:hover #mainbox":{"background-color":this.g.hb},"#mini-icon-img":{position:"absolute","background-image":"url("+this.L+")",width:"48px",height:"48px",top:"20px",left:"12px"},"#content":{padding:"30px 20px 0px 20px"},"#mini-content":{"text-align":"left",height:g.z+"px",cursor:"pointer"},"#img":{width:"328px","margin-top":"30px","border-radius":"5px"},"#title":{"max-height":"600px",overflow:"hidden","word-wrap":"break-word",padding:"25px 0px 20px 0px","font-size":"19px","font-weight":"bold",color:this.g.Ca},
"#body":{"max-height":"600px","margin-bottom":"25px",overflow:"hidden","word-wrap":"break-word","line-height":"21px","font-size":"15px","font-weight":"normal","text-align":"left"},"#mini #body":{display:"inline-block","max-width":"250px",margin:"0 0 0 30px",height:g.z+"px","font-size":"16px","letter-spacing":"0.8px",color:this.g.Ca},"#mini #body-text":{display:"table",height:g.z+"px"},"#mini #body-text div":{display:"table-cell","vertical-align":"middle"},"#tagline":{"margin-bottom":"15px","font-size":"10px",
"font-weight":"600","letter-spacing":"0.8px",color:"#ccd7e0","text-align":"left"},"#tagline a":{color:this.g.jc,transition:"color "+f},"#tagline a:hover":{color:this.g.Ba},"#cancel":{position:"absolute",right:"0",width:"8px",height:"8px",padding:"10px","border-radius":"20px",margin:"12px 12px 0 0","box-sizing":"content-box",cursor:"pointer",transition:"background-color "+f},"#mini #cancel":{margin:"7px 7px 0 0"},"#cancel-icon":{width:"8px",height:"8px",overflow:"hidden","background-image":"url(//cdn.mxpnl.com/site_media/images/icons/notifications/cancel-x.png)",
opacity:this.g.Hb},"#cancel:hover":{"background-color":this.g.ua},"#button":{display:"block",height:"60px","line-height":"60px","text-align":"center","background-color":this.g.ba,"border-radius":"0 0 4px 4px",overflow:"hidden",cursor:"pointer",transition:"background-color "+f},"#button-close":{display:"inline-block",width:"9px",height:"60px","margin-right":"8px","vertical-align":"top","background-image":"url(//cdn.mxpnl.com/site_media/images/icons/notifications/close-x-"+this.style+".png)","background-repeat":"no-repeat",
"background-position":"0px 25px"},"#button-play":{display:"inline-block",width:"30px",height:"60px","margin-left":"15px","background-image":"url(//cdn.mxpnl.com/site_media/images/icons/notifications/play-"+this.style+"-small.png)","background-repeat":"no-repeat","background-position":"0px 15px"},"a#button-link":{display:"inline-block","vertical-align":"top","text-align":"center","font-size":"17px","font-weight":"bold",overflow:"hidden","word-wrap":"break-word",color:this.g.Ca,transition:"color "+
f},"#button:hover":{"background-color":this.g.ua,color:this.g.Ba},"#button:hover a":{color:this.g.Ba},"#video-noflip":{position:"relative",top:2*-this.X+"px"},"#video-flip":{"backface-visibility":"hidden",transform:"rotateY(180deg)"},"#video":{position:"absolute",width:this.la-1+"px",height:this.X+"px",top:g.G+"px","margin-top":"100px",left:"50%","margin-left":Math.round(-this.la/2)+"px",overflow:"hidden","border-radius":"5px","box-shadow":b,transform:"translateZ(1px)",transition:"opacity "+f+", top "+
f},"#video.exiting":{opacity:"0.0",top:this.X+"px"},"#video-holder":{position:"absolute",width:this.la-1+"px",height:this.X+"px",overflow:"hidden","border-radius":"5px"},"#video-frame":{"margin-left":"-1px",width:this.la+"px"},"#video-controls":{opacity:"0",transition:"opacity 0.5s"},"#video:hover #video-controls":{opacity:"1.0"},"#video .video-progress-el":{position:"absolute",bottom:"0",height:"25px","border-radius":"0 0 0 5px"},"#video-progress":{width:"90%"},"#video-progress-total":{width:"100%",
"background-color":this.g.Ua,opacity:"0.7"},"#video-elapsed":{width:"0","background-color":"#6cb6f5",opacity:"0.9"},"#video #video-time":{width:"10%",right:"0","font-size":"11px","line-height":"25px",color:this.g.mb,"background-color":"#666","border-radius":"0 0 5px 0"}};this.O("ie",8)&&c.extend(a,{"* html #overlay":{position:"absolute"},"* html #bg":{position:"absolute"},"html, body":{height:"100%"}});this.O("ie",7)&&c.extend(a,{"#mini #body":{display:"inline",zoom:"1",border:"1px solid "+this.g.ua},
"#mini #body-text":{padding:"20px"},"#mini #mini-icon":{display:"none"}});var b="backface-visibility,border-radius,box-shadow,opacity,perspective,transform,transform-style,transition".split(","),d=["khtml","moz","ms","o","webkit"],k;for(k in a)for(e=0;e<b.length;e++)if(f=b[e],f in a[k])for(var i=a[k][f],n=0;n<d.length;n++)a[k]["-"+d[n]+"-"+f]=i;(function(a,b){function c(a){var b="",d;for(d in a){var e=d.replace(/#/g,"#"+g.w+"-").replace(/\./g,"."+g.w+"-"),b=b+("\n"+e+" {"),e=a[d],f;for(f in e)b+=
f+":"+e[f]+";";b+="}"}return b}var d=c(a)+function(a){var b="",d;for(d in a)b+="\n"+d+" {"+c(a[d])+"\n}";return b}(b),f=o.head||o.getElementsByTagName("head")[0]||o.documentElement,e=o.createElement("style");f.appendChild(e);e.setAttribute("type","text/css");e.styleSheet?e.styleSheet.cssText=d:e.textContent=d})(a,h)};g.prototype.Nc=c.l(function(){if(this.Ea){var a=this;a.uc="postMessage"in t;a.da=a.Ea;var b=a.Ea.match(/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i),
c=a.Ea.match(/vimeo\.com\/.*?(\d+)/i);if(b){if(a.W=l,a.tc=b[1],a.uc)t.onYouTubeIframeAPIReady=function(){a.h("video-frame")&&a.Bb()},b=o.createElement("script"),b.src="//www.youtube.com/iframe_api",c=o.getElementsByTagName("script")[0],c.parentNode.insertBefore(b,c)}else if(c)a.W=l,a.sc=c[1];if(a.O("ie",7)||a.O("firefox",3))a.W=r,a.va=l}});g.prototype.wb=c.l(function(){function a(a,b){var c={};if(o.defaultView&&o.defaultView.getComputedStyle)c=o.defaultView.getComputedStyle(a,m);else if(a.currentStyle)c=
a.currentStyle;return c[b]}var b=this;c.C(b.h("bg"),"click",function(){b.Wa()});if(this.B){var d=this.h("overlay");d&&"hidden"!==a(d,"visibility")&&"none"!==a(d,"display")&&this.xb()}});g.prototype.xb=c.l(function(a){if(!this.Xb)this.Xb=l,this.B&&(this.ub()[this.B]=1*new Date,this.lb.save()),this.Sa("$campaign_delivery",a),this.ib.people.append({$campaigns:this.B,$notifications:{campaign_id:this.B,message_id:this.Yb,type:"web",time:new Date}})});g.prototype.Rc=function(a){var b=this;if(0===this.ya.length)a();
else{for(var c=0,e=[],f=function(){c++;c===b.ya.length&&a&&(a(),a=m)},g=0;g<this.ya.length;g++){var h=new Image;h.onload=f;h.src=this.ya[g];h.complete&&f();e.push(h)}this.O("ie",7)&&setTimeout(function(){var b=l;for(g=0;g<e.length;g++)e[g].complete||(b=r);b&&a&&(a(),a=m)},500)}};g.prototype.yb=c.l(function(){t.clearInterval(this.Wc);this.ha.style.visibility="hidden";this.p.removeChild(this.ha)});g.prototype.zb=function(){function a(a){if(a in e)return l;if(!c)for(var a=a[0].toUpperCase()+a.slice(1),
a=["O"+a,"Webkit"+a,"Moz"+a],b=0;b<a.length;b++)if(a[b]in e)return l;return r}function b(a){return(a=navigator.userAgent.match(a))&&a[1]}this.A={};this.A.chrome=b(/Chrome\/(\d+)/);this.A.firefox=b(/Firefox\/(\d+)/);this.A.ie=b(/MSIE (\d+).+/);!this.A.ie&&!t.ActiveXObject&&"ActiveXObject"in t&&(this.A.ie=11);if(this.p=o.body||o.getElementsByTagName("body")[0])this.dd=Math.max(this.p.scrollWidth,o.documentElement.scrollWidth,this.p.offsetWidth,o.documentElement.offsetWidth,this.p.clientWidth,o.documentElement.clientWidth),
this.cd=Math.max(this.p.scrollHeight,o.documentElement.scrollHeight,this.p.offsetHeight,o.documentElement.offsetHeight,this.p.clientHeight,o.documentElement.clientHeight);var c=this.A.ie,e=o.createElement("div").style;this.rc=this.p&&a("transition")&&a("transform");this.Za=(33<=this.A.chrome||15<=this.A.firefox)&&this.p&&a("backfaceVisibility")&&a("perspective")&&a("transform")};g.prototype.Uc=c.l(function(){function a(){t.YT&&t.YT.loaded&&b.Bb();b.Cd=l;b.Q().style.visibility="hidden"}var b=this,
c=[{q:b.Q(),o:"opacity",start:1,j:0},{q:b.Q(),o:"top",start:g.G,j:-500},{q:b.h("video-noflip"),o:"opacity",start:0,j:1},{q:b.h("video-noflip"),o:"top",start:2*-b.X,j:0}];if(b.u){var e=b.h("bg"),f=b.h("overlay");e.style.width="100%";e.style.height="100%";f.style.width="100%";b.N(b.Q(),"exiting");b.N(e,"visible");c.push({q:b.h("bg"),o:"opacity",start:0,j:g.ma})}b.h("video-holder").innerHTML=b.Pd;b.Za?(b.N("flipper","flipped"),setTimeout(a,g.M)):b.qa(c,g.M,a)});g.prototype.Sa=function(a,b,d){this.B?
(b=b||{},b=c.extend(b,{campaign_id:this.B,message_id:this.Yb,message_type:"web_inapp",message_subtype:this.ga}),this.ib.track(a,b,d)):d&&d.call()};g.prototype.Bb=c.l(function(){var a=this;if(!a.Qd){a.Qd=l;var b=a.h("video-elapsed"),d=a.h("video-time"),e=a.h("video-progress");new t.YT.Player(g.w+"-video-frame",{events:{onReady:function(f){function g(a){var a=Math.round(i-a),b=Math.floor(a/60),c=Math.floor(b/60),a=a-60*b;d.innerHTML="-"+(c?c+":":"")+("00"+(b-60*c)).slice(-2)+":"+("00"+a).slice(-2)}
var h=f.target,i=h.getDuration();g(0);a.Wc=t.setInterval(function(){var a=h.getCurrentTime();b.style.width=100*(a/i)+"%";g(a)},250);c.C(e,"click",function(a){a=Math.max(0,a.pageX-e.getBoundingClientRect().left);h.seekTo(i*a/e.clientWidth,l)})}}})}});h.prototype.init=h.prototype.V;h.prototype.reset=h.prototype.reset;h.prototype.disable=h.prototype.disable;h.prototype.time_event=h.prototype.Fd;h.prototype.track=h.prototype.s;h.prototype.track_links=h.prototype.Kd;h.prototype.track_forms=h.prototype.Jd;
h.prototype.track_pageview=h.prototype.mc;h.prototype.register=h.prototype.ja;h.prototype.register_once=h.prototype.D;h.prototype.unregister=h.prototype.Da;h.prototype.identify=h.prototype.ab;h.prototype.alias=h.prototype.Xc;h.prototype.name_tag=h.prototype.pd;h.prototype.set_config=h.prototype.gc;h.prototype.get_config=h.prototype.c;h.prototype.get_property=h.prototype.xa;h.prototype.get_distinct_id=h.prototype.U;h.prototype.toString=h.prototype.toString;h.prototype._check_and_handle_notifications=
h.prototype.pb;h.prototype._show_notification=h.prototype.Ab;h.prototype.opt_out_tracking=h.prototype.jb;h.prototype.opt_in_tracking=h.prototype.ac;h.prototype.has_opted_out_tracking=h.prototype.fa;h.prototype.has_opted_in_tracking=h.prototype.$a;h.prototype.clear_opt_in_out_tracking=h.prototype.Jb;p.prototype.properties=p.prototype.ia;p.prototype.update_search_keyword=p.prototype.qc;p.prototype.update_referrer_info=p.prototype.nb;p.prototype.get_cross_subdomain=p.prototype.jd;p.prototype.clear=p.prototype.clear;
n.prototype.set=n.prototype.set;n.prototype.set_once=n.prototype.ic;n.prototype.unset=n.prototype.oc;n.prototype.increment=n.prototype.Tb;n.prototype.append=n.prototype.append;n.prototype.union=n.prototype.nc;n.prototype.track_charge=n.prototype.Id;n.prototype.clear_charges=n.prototype.Ib;n.prototype.delete_user=n.prototype.Nb;n.prototype.toString=n.prototype.toString;c.ud(h);var z={};(function(){V=1;v=t.mixpanel;c.d(v)?q.T('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.'):
v.__loaded||v.config&&v.persistence?q.error("Mixpanel library has already been downloaded at least once."):1.1>(v.__SV||0)?q.T("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(c.a(v._i,function(a){a&&c.isArray(a)&&(z[a[a.length-1]]=L.apply(this,a))}),ia(),v.init(),c.a(z,function(a){a.ra()}),ha())})()})();
})();
{
"name": "mixpanel-browser",
"version": "2.22.1",
"version": "2.22.2",
"description": "The official Mixpanel JavaScript browser client library",

@@ -5,0 +5,0 @@ "main": "build/mixpanel.cjs.js",

var Config = {
DEBUG: false,
LIB_VERSION: '2.22.1'
LIB_VERSION: '2.22.2'
};
export default Config;

@@ -26,3 +26,3 @@ /**

var GDPR_DEFAULT_COOKIE_PREFIX = '__mp_opt_in_out_';
var GDPR_DEFAULT_PERSISTENCE_PREFIX = '__mp_opt_in_out_';

@@ -36,3 +36,4 @@ /**

* @param {Object} [options.trackProperties] - set of properties to be tracked along with the opt-in action
* @param {string} [options.cookiePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie name
* @param {string} [options.persistenceType] Persistence mechanism used - cookie or localStorage
* @param {string} [options.persistencePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie/localstorage name
* @param {Number} [options.cookieExpiration] - number of days until the opt-in cookie expires

@@ -50,3 +51,4 @@ * @param {boolean} [options.crossSubdomainCookie] - whether the opt-in cookie is set as cross-subdomain or not

* @param {Object} [options]
* @param {string} [options.cookiePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie name
* @param {string} [options.persistenceType] Persistence mechanism used - cookie or localStorage
* @param {string} [options.persistencePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie/localstorage name
* @param {Number} [options.cookieExpiration] - number of days until the opt-out cookie expires

@@ -64,7 +66,8 @@ * @param {boolean} [options.crossSubdomainCookie] - whether the opt-out cookie is set as cross-subdomain or not

* @param {Object} [options]
* @param {string} [options.cookiePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie name
* @param {string} [options.persistenceType] Persistence mechanism used - cookie or localStorage
* @param {string} [options.persistencePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie/localstorage name
* @returns {boolean} whether the user has opted in to the given opt type
*/
export function hasOptedIn(token, options) {
return _getOptInOutCookieValue(token, options) === '1';
return _getStorageValue(token, options) === '1';
}

@@ -76,3 +79,4 @@

* @param {Object} [options]
* @param {string} [options.cookiePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie name
* @param {string} [options.persistenceType] Persistence mechanism used - cookie or localStorage
* @param {string} [options.persistencePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie/localstorage name
* @returns {boolean} whether the user has opted out of the given opt type

@@ -84,3 +88,3 @@ */

}
return _getOptInOutCookieValue(token, options) === '0';
return _getStorageValue(token, options) === '0';
}

@@ -118,3 +122,4 @@

* @param {Object} [options]
* @param {string} [options.cookiePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie name
* @param {string} [options.persistenceType] Persistence mechanism used - cookie or localStorage
* @param {string} [options.persistencePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie/localstorage name
* @param {Number} [options.cookieExpiration] - number of days until the opt-in cookie expires

@@ -126,3 +131,3 @@ * @param {boolean} [options.crossSubdomainCookie] - whether the opt-in cookie is set as cross-subdomain or not

options = options || {};
_.cookie.remove(_getOptInOutCookieName(token, options), !!options.crossSubdomainCookie);
_getStorage(options).remove(_getStorageKey(token, options), !!options.crossSubdomainCookie);
}

@@ -133,11 +138,22 @@

/**
* Get storage util
* @param {Object} [options]
* @param {string} [options.persistenceType]
* @returns {object} either _.cookie or _.localstorage
*/
function _getStorage(options) {
options = options || {};
return options.persistenceType === 'localStorage' ? _.localStorage : _.cookie;
}
/**
* Get the name of the cookie that is used for the given opt type (tracking, cookie, etc.)
* @param {string} token - Mixpanel project tracking token
* @param {Object} [options]
* @param {string} [options.cookiePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie name
* @param {string} [options.persistencePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie/localstorage name
* @returns {string} the name of the cookie for the given opt type
*/
function _getOptInOutCookieName(token, options) {
function _getStorageKey(token, options) {
options = options || {};
return (options.cookiePrefix || GDPR_DEFAULT_COOKIE_PREFIX) + token;
return (options.persistencePrefix || GDPR_DEFAULT_PERSISTENCE_PREFIX) + token;
}

@@ -149,7 +165,7 @@

* @param {Object} [options]
* @param {string} [options.cookiePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie name
* @param {string} [options.persistencePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie/localstorage name
* @returns {string} the value of the cookie for the given opt type
*/
function _getOptInOutCookieValue(token, options) {
return _.cookie.get(_getOptInOutCookieName(token, options));
function _getStorageValue(token, options) {
return _getStorage(options).get(_getStorageKey(token, options));
}

@@ -166,3 +182,3 @@

/**
* Set a cookie for the user indicating that they are opted in or out for the given opt type
* Set cookie/localstorage for the user indicating that they are opted in or out for the given opt type
* @param {boolean} optValue - whether to opt the user in or out for the given opt type

@@ -174,3 +190,3 @@ * @param {string} token - Mixpanel project tracking token

* @param {Object} [options.trackProperties] - set of properties to be tracked along with the opt-in action
* @param {string} [options.cookiePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie name
* @param {string} [options.persistencePrefix=__mp_opt_in_out] - custom prefix to be used in the cookie/localstorage name
* @param {Number} [options.cookieExpiration] - number of days until the opt-in cookie expires

@@ -188,4 +204,4 @@ * @param {boolean} [options.crossSubdomainCookie] - whether the opt-in cookie is set as cross-subdomain or not

_.cookie.set(
_getOptInOutCookieName(token, options),
_getStorage(options).set(
_getStorageKey(token, options),
optValue ? 1 : 0,

@@ -216,6 +232,10 @@ _.isNumber(options.cookieExpiration) ? options.cookieExpiration : null,

var token = getConfigValue.call(this, 'token');
var cookiePrefix = getConfigValue.call(this, 'opt_out_tracking_cookie_prefix');
var persistenceType = getConfigValue.call(this, 'opt_out_tracking_persistence_type');
var persistencePrefix = getConfigValue.call(this, 'opt_out_tracking_cookie_prefix');
if (token) { // if there was an issue getting the token, continue method execution as normal
optedOut = hasOptedOut(token, {cookiePrefix: cookiePrefix});
optedOut = hasOptedOut(token, {
persistenceType: persistenceType,
persistencePrefix: persistencePrefix
});
}

@@ -222,0 +242,0 @@ } catch(err) {

@@ -1040,3 +1040,29 @@ /* eslint camelcase: "off", eqeqeq: "off" */

// _.localStorage
var _localStorage_supported = null;
_.localStorage = {
is_supported: function() {
if (_localStorage_supported !== null) {
return _localStorage_supported;
}
var supported = true;
try {
var key = '__mplssupport__',
val = 'xyz';
_.localStorage.set(key, val);
if (_.localStorage.get(key) !== val) {
supported = false;
}
_.localStorage.remove(key);
} catch (err) {
supported = false;
}
if (!supported) {
console.error('localStorage unsupported; falling back to cookie store');
}
_localStorage_supported = supported;
return supported;
},
error: function(msg) {

@@ -1043,0 +1069,0 @@ console.error('localStorage error: ' + msg);

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