mixpanel-browser 2.61.2 → 2.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,145 +1,144 @@
1
- (function() {
2
- var k=void 0,l=!0,r=null,C=!1;function V(){return function(){}}
3
- (function(){function ub(){function a(){if(!a.pd)Ma=a.pd=l,Na=C,c.a(J,function(a){a.Tc()})}function b(){try{v.documentElement.doScroll("left")}catch(d){setTimeout(b,1);return}a()}if(v.addEventListener)"complete"===v.readyState?a():v.addEventListener("DOMContentLoaded",a,C);else if(v.attachEvent){v.attachEvent("onreadystatechange",a);var d=C;try{d=j.frameElement===r}catch(g){}v.documentElement.doScroll&&d&&b()}c.uc(j,"load",a,l)}function vb(){y.init=function(a,b,d){if(d)return y[d]||(y[d]=J[d]=ca(a,
4
- b,d),y[d].va()),y[d];d=y;if(J.mixpanel)d=J.mixpanel;else if(a)d=ca(a,b,"mixpanel"),d.va(),J.mixpanel=d;y=d;1===ta&&(j.mixpanel=y);wb()}}function wb(){c.a(J,function(a,b){"mixpanel"!==b&&(y[b]=a)});y._=c}function ua(a){a=c.g(a)?a:c.e(a)?{}:{days:a};return c.extend({},xb,a)}function ca(a,b,d){var g,f="mixpanel"===d?y:y[d];if(f&&0===ta)g=f;else{if(f&&!c.isArray(f)){s.error("You have already initialized "+d);return}g=new e}g.Fb={};g.fa(a,b,d);g.people=new n;g.people.fa(g);if(!g.c("skip_first_touch_marketing")){var a=
5
- c.info.ga(r),h={},t=C;c.a(a,function(a,b){(h["initial_"+b]=a)&&(t=l)});t&&g.people.V(h)}K=K||g.c("debug");!c.e(f)&&c.isArray(f)&&(g.Ra.call(g.people,f.people),g.Ra(f));return g}function e(){}function yb(a){return a}function Oa(a){throw Error(a+" not available in this build.");}function L(a){this.R=r;this.se=a}function o(a){this.props={};this.Ke=C;this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;if("cookie"!==b&&"localStorage"!==b)s.m("Unknown persistence type "+
6
- b+"; falling back to cookie"),b=a.persistence="cookie";this.o="localStorage"===b&&c.localStorage.ia()?c.localStorage:c.cookie;this.load();this.Nc(a);this.Fe();this.save()}function n(){}function x(){}function F(a,b){this.S=b.S;this.ma=new G(a,{S:c.bind(this.h,this),K:b.K,Ec:b.Ec,Fc:b.Fc,v:b.v,fb:b.fb});this.J=b.J;this.ee=b.fe;this.wa=b.wa;this.qe=b.re;this.M=this.J.batch_size;this.Da=this.J.batch_flush_interval_ms;this.pa=!this.J.batch_autostart;this.ab=0;this.Q={};this.ac=b.ac||C;this.Wc=r}function Pa(a,
7
- b){var d=[];c.a(a,function(a){var c=a.id;if(c in b){if(c=b[c],c!==r)a.payload=c,d.push(a)}else d.push(a)});return d}function Qa(a,b){var d=[];c.a(a,function(a){a.id&&!b[a.id]&&d.push(a)});return d}function G(a,b){b=b||{};this.W=a;if(this.v=b.v)this.K=b.K||new W,this.Ja=new Ra(a,{o:b.Ec||j.localStorage,xb:b.Fc});this.h=b.S||c.bind(Sa.error,Sa);this.La=b.La||r;this.F=[];this.mb=C;this.rd=b.fb?zb(c.bind(this.Ib,this),b.fb):c.bind(function(a){return this.Ib([a])},this)}function W(a){this.o=a||localStorage}
8
- function Ra(a,b){b=b||{};this.W=a;this.o=b.o||j.localStorage;this.rc=b.rc||100;this.xb=b.xb||2E3;this.sc=b.sc||w}function da(){this.nc="submit"}function S(){this.nc="click"}function I(){}function E(a){this.B=a}function X(){}function Ta(a){var b=Ab,d=a.split("."),d=d[d.length-1];if(4<d.length||"com"===d||"org"===d)b=Bb;return(a=a.match(b))?a[0]:""}function va(a){var b=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return a?b.substring(0,a):b}function zb(a,b){var d=
9
- r,c=[];return function(f){var h=this;c.push(f);d||(d=new w(function(f){setTimeout(function(){var b=a.apply(h,[c]);d=r;c=[];f(b)},b)}));return d}}function ea(a,b){return wa!==r&&!b?wa:wa=Ua(a||j.localStorage)}function Ua(a){var b=l;try{var d="__mplss_"+va(8);a.setItem(d,"xyz");"xyz"!==a.getItem(d)&&(b=C);a.removeItem(d)}catch(c){b=C}return b}function xa(a){return function(){try{return a.apply(this,arguments)}catch(b){s.m("Implementation error. Please turn on debug and contact support@mixpanel.com."),
10
- K&&s.m(b)}}}function fa(a){return{log:ya(s.log,a),error:ya(s.error,a),m:ya(s.m,a)}}function ya(a,b){return function(){arguments[0]="["+b+"] "+arguments[0];return a.apply(s,arguments)}}function ga(a,b){za.add(a,b);Aa||(Aa=Cb(za.qd))}function Va(a){var b,d=typeof a;if(a!==r&&("object"===d||"function"===d))b=a.then;return"function"===typeof b?b:C}function Ba(){for(var a=0;a<this.I.length;a++){var b=1===this.state?this.I[a].te:this.I[a].sd,d=this.I[a],c=k,f=k;try{b===C?d.reject(this.ka):(c=b===l?this.ka:
11
- b.call(k,this.ka),c===d.rb?d.reject(TypeError("Promise-chain cycle")):(f=Va(c))?f.call(c,d.resolve,d.reject):d.resolve(c))}catch(h){d.reject(h)}}this.I.length=0}function Wa(a){var b,d=this;if(!d.qa){d.qa=l;if(d.Ca)d=d.Ca;try{(b=Va(a))?ga(function(){var c=new Xa(d);try{b.call(a,function(){Wa.apply(c,arguments)},function(){Y.apply(c,arguments)})}catch(g){Y.call(c,g)}}):(d.ka=a,d.state=1,0<d.I.length&&ga(Ba,d))}catch(c){Y.call(new Xa(d),c)}}}function Y(a){var b=this;if(!b.qa){b.qa=l;if(b.Ca)b=b.Ca;b.ka=
12
- a;b.state=2;0<b.I.length&&ga(Ba,b)}}function Ya(a,b,d,c){for(var f=0;f<b.length;f++)(function(f){a.resolve(b[f]).then(function(a){d(f,a)},c)})(f)}function Xa(a){this.Ca=a;this.qa=C}function Db(a){this.rb=a;this.state=0;this.qa=C;this.I=[];this.ka=k}function M(a){if("function"!==typeof a)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var b=new Db(this);this.then=function(a,d){var c={te:"function"===typeof a?a:l,sd:"function"===typeof d?d:C};c.rb=
13
- new this.constructor(function(a,b){if("function"!==typeof a||"function"!==typeof b)throw TypeError("Not a function");c.resolve=a;c.reject=b});b.I.push(c);0!==b.state&&ga(Ba,b);return c.rb};this["catch"]=function(a){return this.then(k,a)};try{a.call(k,function(a){Wa.call(b,a)},function(a){Y.call(b,a)})}catch(d){Y.call(b,d)}}function Za(a,b,d){function g(a){s.error(b+" error: "+a)}return{ia:function(c){(c=d(a,c))||s.error(b+" unsupported");return c},error:g,get:function(b){try{return a.getItem(b)}catch(d){g(d)}return r},
14
- parse:function(b){try{return c.aa(a.getItem(b))||{}}catch(d){}return r},set:function(b,d){try{a.setItem(b,d)}catch(c){g(c)}},remove:function(b){try{a.removeItem(b)}catch(d){g(d)}}}}function Ca(a){for(var b={},a=$a(a).split(" "),d=0;d<a.length;d++){var c=a[d];c&&(b[c]=l)}return b}function $a(a){switch(typeof a.className){case "string":return a.className;case "object":return a.className.Je||a.getAttribute("class")||"";default:return""}}function Eb(a){if(a.previousElementSibling)return a.previousElementSibling;
15
- do a=a.previousSibling;while(a&&!(a&&1===a.nodeType));return a}function ab(a,b,d,g,f,h){var t={$classes:$a(a).split(" "),$tag_name:a.tagName.toLowerCase()},i=a.id;i&&(t.$id=i);Da(a,b,f,h)&&c.a(Fb.concat(g),function(b){if(a.hasAttribute(b)&&!d[b]){var c=a.getAttribute(b);ha(c)&&(t["$attr-"+b]=c)}});g=b=1;for(f=a;f=Eb(f);)b++,f.tagName===a.tagName&&g++;t.$nth_child=b;t.$nth_of_type=g;return t}function Gb(a,b){var d=b.bd,g=b.cd||[],f=b.gd,h=b.hd||[],t=b.ld||C,i=b.kd||[],e={};c.a(b.fd||[],function(a){e[a]=
16
- l});var p=r,q="undefined"===typeof a.target?a.srcElement:a.target;if(q&&3===q.nodeType)q=q.parentNode;if(Hb(q,a)&&Ea(q,a,d,g)&&!Fa(q,a,f,h)){for(var u=[q],A=q;A.parentNode&&!H(A,"body");)u.push(A.parentNode),A=A.parentNode;var bb=[],Z,n=C;c.a(u,function(b){var c=Da(b,a,d,g);!e.href&&"a"===b.tagName.toLowerCase()&&(Z=b.getAttribute("href"),Z=c&&ha(Z)&&Z);Fa(b,a,f,h)&&(n=l);bb.push(ab(b,a,e,i,d,g))},this);if(!n){u=v.documentElement;p={$event_type:a.type,$host:j.location.host,$pathname:j.location.pathname,
17
- $elements:bb,$el_attr__href:Z,$viewportHeight:Math.max(u.clientHeight,j.innerHeight||0),$viewportWidth:Math.max(u.clientWidth,j.innerWidth||0)};c.a(i,function(a){if(!e[a]&&q.hasAttribute(a)){var b=q.getAttribute(a);ha(b)&&(p["$el_attr__"+a]=b)}});if(t)(u=cb(q,a,d,g))&&u.length&&(p.$el_text=u);a.type===$&&(c.a(Ib,function(b){b in a&&(p["$"+b]=a[b])}),q=Jb(a));if(t)(u=cb(q,a,d,g))&&u.length&&(p.$el_text=u);if(q){if(!Ea(q,a,d,g)||Fa(q,a,f,h))return r;t=ab(q,a,e,i,d,g);p.$target=t;p.$el_classes=t.$classes;
18
- c.extend(p,c.X({$el_id:t.$id,$el_tag_name:t.$tag_name}))}}}return p}function cb(a,b,d,g){var f="";Da(a,b,d,g)&&a.childNodes&&a.childNodes.length&&c.a(a.childNodes,function(a){a&&3===a.nodeType&&a.textContent&&(f+=c.trim(a.textContent).split(/(\s+)/).filter(ha).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))});return c.trim(f)}function Jb(a){for(var b=a.target,a=a.composedPath(),d=0;d<a.length;d++){var c=a[d];if(H(c,"a")||H(c,"button")||H(c,"input")||H(c,"select")||c.getAttribute&&
19
- "button"===c.getAttribute("role")){b=c;break}if(c===b)break}return b}function Ea(a,b,d,c){if(d)try{if(!d(a,b))return C}catch(f){return D.m("Error while checking element in allowElementCallback",f),C}if(!c.length)return l;for(b=0;b<c.length;b++){d=c[b];try{if(a.matches(d))return l}catch(h){D.m("Error while checking selector: "+d,h)}}return C}function Fa(a,b,d,c){if(d)try{if(d(a,b))return l}catch(f){return D.m("Error while checking element in blockElementCallback",f),l}if(c&&c.length)for(b=0;b<c.length;b++){d=
20
- c[b];try{if(a.matches(d))return l}catch(h){D.m("Error while checking selector: "+d,h)}}a=Ca(a);for(b=0;b<Ga.length;b++)if(a[Ga[b]])return l;return C}function H(a,b){return a&&a.tagName&&a.tagName.toLowerCase()===b.toLowerCase()}function Hb(a,b){if(!a||H(a,"html")||!(a&&1===a.nodeType))return C;switch(a.tagName.toLowerCase()){case "form":return b.type===Ha;case "input":return-1===["button","submit"].indexOf(a.getAttribute("type"))?b.type===ia:b.type===$;case "select":case "textarea":return b.type===
21
- ia;default:return b.type===$}}function Da(a,b,d,c){if(!Ea(a,b,d,c))return C;for(d=a;d.parentNode&&!H(d,"body");d=d.parentNode){c=Ca(d);for(b=0;b<db.length;b++)if(c[db[b]])return C}d=Ca(a);for(b=0;b<eb.length;b++)if(d[eb[b]])return l;if(H(a,"input")||H(a,"select")||H(a,"textarea")||"true"===a.getAttribute("contenteditable"))return C;b=a.type||"";if("string"===typeof b)switch(b.toLowerCase()){case "hidden":return C;case "password":return C}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,
22
- ""))?C:l}function ha(a){if(a===r||c.e(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 C;return l}function Kb(a,b){fb(l,a,b)}function Lb(a,b){fb(C,a,b)}function Mb(a,b){return"1"===ja(b).get(ka(a,b))}function gb(a,b){if(Nb(b))return s.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),
23
- l;var d="0"===ja(b).get(ka(a,b));d&&s.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data.");return d}function Q(a){return Ia(a,function(a){return this.c(a)})}function N(a){return Ia(a,function(a){return this.s(a)})}function T(a){return Ia(a,function(a){return this.s(a)})}function Ob(a,b){b=b||{};ja(b).remove(ka(a,b),!!b.Wb,b.Ub)}function ja(a){a=a||{};return"localStorage"===a.qc?c.localStorage:c.cookie}function ka(a,b){b=b||{};return(b.pc||Pb)+a}
24
- function Nb(a){if(a&&a.fc)return C;var a=a&&a.window||j,b=a.navigator||{},d=C;c.a([b.doNotTrack,b.msDoNotTrack,a.doNotTrack],function(a){c.i([l,1,"1","yes"],a)&&(d=l)});return d}function fb(a,b,d){!c.ob(b)||!b.length?s.error("gdpr."+(a?"optIn":"optOut")+" called with an invalid token"):(d=d||{},ja(d).set(ka(b,d),a?1:0,c.jc(d.Vb)?d.Vb:r,!!d.Wb,!!d.de,!!d.md,d.Ub),d.p&&a&&d.p(d.ye||"$opt_in",d.ze,{send_immediately:l}))}function Ia(a,b){return function(){var d=C;try{var c=b.call(this,"token"),f=b.call(this,
25
- "ignore_dnt"),h=b.call(this,"opt_out_tracking_persistence_type"),e=b.call(this,"opt_out_tracking_cookie_prefix"),i=b.call(this,"window");c&&(d=gb(c,{fc:f,qc:h,pc:e,window:i}))}catch(m){s.error("Unexpected error when checking tracking opt-out status: "+m)}if(!d)return a.apply(this,arguments);d=arguments[arguments.length-1];"function"===typeof d&&d(0)}}var K=C,j;if("undefined"===typeof window){var hb={hostname:""};j={navigator:{userAgent:"",onLine:l},document:{createElement:function(){return{}},location:hb,
26
- referrer:""},screen:{width:0,height:0},location:hb,addEventListener:V(),removeEventListener:V()}}else j=window;var ib=j.setImmediate,O,Aa,za,jb=Object.prototype.toString,Cb="undefined"!==typeof ib?function(a){return ib(a)}:setTimeout;try{Object.defineProperty({},"x",{}),O=function(a,b,d,c){return Object.defineProperty(a,b,{value:d,writable:l,configurable:c!==C})}}catch(Xb){O=function(a,b,d){a[b]=d;return a}}za=function(){function a(a,b){this.ud=a;this.self=b;this.next=k}var b,d,c;return{add:function(f,
27
- h){c=new a(f,h);d?d.next=c:b=c;d=c;c=k},qd:function(){var a=b;for(b=d=Aa=k;a;)a.ud.call(a.self),a=a.next}}}();var kb=O({},"constructor",M,C);M.prototype=kb;O(kb,"__NPO__",0,C);O(M,"resolve",function(a){return a&&"object"===typeof a&&1===a.__NPO__?a:new this(function(b,d){if("function"!==typeof b||"function"!==typeof d)throw TypeError("Not a function");b(a)})});O(M,"reject",function(a){return new this(function(b,d){if("function"!==typeof b||"function"!==typeof d)throw TypeError("Not a function");d(a)})});
28
- O(M,"all",function(a){var b=this;return"[object Array]"!==jb.call(a)?b.reject(TypeError("Not an array")):0===a.length?b.resolve([]):new b(function(d,c){if("function"!==typeof d||"function"!==typeof c)throw TypeError("Not a function");var f=a.length,h=Array(f),e=0;Ya(b,a,function(a,b){h[a]=b;++e===f&&d(h)},c)})});O(M,"race",function(a){var b=this;return"[object Array]"!==jb.call(a)?b.reject(TypeError("Not an array")):new b(function(d,c){if("function"!==typeof d||"function"!==typeof c)throw TypeError("Not a function");
29
- Ya(b,a,function(a,b){d(b)},c)})});var w;w="undefined"!==typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:M;var la=Array.prototype,lb=Object.prototype,R=la.slice,aa=lb.toString,ma=lb.hasOwnProperty,z=j.console,P=j.navigator,v=j.document,na=j.opera,oa=j.screen,B=P.userAgent,Ja=Function.prototype.bind,mb=la.forEach,nb=la.indexOf,ob=la.map,Qb=Array.isArray,Ka={},c={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},s={log:function(){if(K&&!c.e(z)&&z)try{z.log.apply(z,
30
- arguments)}catch(a){c.a(arguments,function(a){z.log(a)})}},warn:function(){if(K&&!c.e(z)&&z){var a=["Mixpanel warning:"].concat(c.Y(arguments));try{z.warn.apply(z,a)}catch(b){c.a(a,function(a){z.warn(a)})}}},error:function(){if(K&&!c.e(z)&&z){var a=["Mixpanel error:"].concat(c.Y(arguments));try{z.error.apply(z,a)}catch(b){c.a(a,function(a){z.error(a)})}}},m:function(){if(!c.e(z)&&z){var a=["Mixpanel error:"].concat(c.Y(arguments));try{z.error.apply(z,a)}catch(b){c.a(a,function(a){z.error(a)})}}}};
31
- c.bind=function(a,b){var d,g;if(Ja&&a.bind===Ja)return Ja.apply(a,R.call(arguments,1));if(!c.nb(a))throw new TypeError;d=R.call(arguments,2);return g=function(){if(!(this instanceof g))return a.apply(b,d.concat(R.call(arguments)));var c={};c.prototype=a.prototype;var h=new c;c.prototype=r;c=a.apply(h,d.concat(R.call(arguments)));return Object(c)===c?c:h}};c.a=function(a,b,d){if(!(a===r||a===k))if(mb&&a.forEach===mb)a.forEach(b,d);else if(a.length===+a.length)for(var c=0,f=a.length;c<f&&!(c in a&&
32
- b.call(d,a[c],c,a)===Ka);c++);else for(c in a)if(ma.call(a,c)&&b.call(d,a[c],c,a)===Ka)break};c.extend=function(a){c.a(R.call(arguments,1),function(b){for(var d in b)b[d]!==k&&(a[d]=b[d])});return a};c.isArray=Qb||function(a){return"[object Array]"===aa.call(a)};c.nb=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return C}};c.Id=function(a){return!(!a||!ma.call(a,"callee"))};c.Y=function(a){return!a?[]:a.Y?a.Y():c.isArray(a)||c.Id(a)?R.call(a):c.He(a)};c.map=function(a,b,d){if(ob&&a.map===
33
- ob)return a.map(b,d);var g=[];c.a(a,function(a){g.push(b.call(d,a))});return g};c.keys=function(a){var b=[];if(a===r)return b;c.a(a,function(a,c){b[b.length]=c});return b};c.He=function(a){var b=[];if(a===r)return b;c.a(a,function(a){b[b.length]=a});return b};c.lb=function(a,b){var d=C;if(a===r)return d;if(nb&&a.indexOf===nb)return-1!=a.indexOf(b);c.a(a,function(a){if(d||(d=a===b))return Ka});return d};c.i=function(a,b){return-1!==a.indexOf(b)};c.hc=function(a,b){a.prototype=new b;a.prototype.constructor=
34
- a;a.ue=b.prototype};c.g=function(a){return a===Object(a)&&!c.isArray(a)};c.Ga=function(a){if(c.g(a)){for(var b in a)if(ma.call(a,b))return C;return l}return C};c.e=function(a){return a===k};c.ob=function(a){return"[object String]"==aa.call(a)};c.Jd=function(a){return"[object Date]"==aa.call(a)};c.jc=function(a){return"[object Number]"==aa.call(a)};c.Kd=function(a){return!!(a&&1===a.nodeType)};c.cb=function(a){c.a(a,function(b,d){c.Jd(b)?a[d]=c.vd(b):c.g(b)&&(a[d]=c.cb(b))});return a};c.timestamp=
35
- function(){Date.now=Date.now||function(){return+new Date};return Date.now()};c.vd=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.X=function(a){var b={};c.a(a,function(a,g){c.ob(a)&&0<a.length&&(b[g]=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.g(a)?(d=
36
- {},c.a(a,function(a,f){d[f]=c.truncate(a,b)})):d=a;return d};c.sa=function(){return function(a){function b(a,c){var h="",e=0,i=e="",i=0,m=h,p=[],q=c[a];q&&"object"===typeof q&&"function"===typeof q.toJSON&&(q=q.toJSON(a));switch(typeof q){case "string":return d(q);case "number":return isFinite(q)?""+q:"null";case "boolean":case "null":return""+q;case "object":if(!q)return"null";h+=" ";p=[];if("[object Array]"===aa.apply(q)){i=q.length;for(e=0;e<i;e+=1)p[e]=b(e,q)||"null";return i=0===p.length?
37
- "[]":h?"[\n"+h+p.join(",\n"+h)+"\n"+m+"]":"["+p.join(",")+"]"}for(e in q)ma.call(q,e)&&(i=b(e,q))&&p.push(d(e)+(h?": ":":")+i);return i=0===p.length?"{}":h?"{"+p.join(",")+""+m+"}":"{"+p.join(",")+"}"}}function d(a){var b=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};b.lastIndex=0;return b.test(a)?'"'+a.replace(b,function(a){var b=d[a];
38
- return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}return b("",{"":a})}}();c.aa=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"),C;case "n":return f("n"),f("u"),f("l"),f("l"),r}h('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);
39
- if(!isFinite(a))break;c=16*c+a}d+=String.fromCharCode(c)}else if("string"===typeof m[i])d+=m[i];else break;else d+=i}h("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;h("Bad number")}function f(a){a&&a!==i&&h("Expected '"+a+"' instead of '"+i+"'");i=p.charAt(e);e+=1;return i}function h(a){a=
40
- new SyntaxError(a);a.Ie=e;a.text=p;throw a;}var e,i,m={'"':'"',"\\":"\\","/":"/",b:"\u0008",f:"\u000c",n:"\n",r:"\r",t:"\t"},p,q;q=function(){b();switch(i){case "{":var e;a:{var t,m={};if("{"===i){f("{");b();if("}"===i){f("}");e=m;break a}for(;i;){t=d();b();f(":");Object.hasOwnProperty.call(m,t)&&h('Duplicate key "'+t+'"');m[t]=q();b();if("}"===i){f("}");e=m;break a}f(",");b()}}h("Bad object")}return e;case "[":a:{e=[];if("["===i){f("[");b();if("]"===i){f("]");t=e;break a}for(;i;){e.push(q());b();
41
- if("]"===i){f("]");t=e;break a}f(",");b()}}h("Bad array")}return t;case '"':return d();case "-":return c();default:return"0"<=i&&"9">=i?c():a()}};return function(a){p=a;e=0;i=" ";a=q();b();i&&h("Syntax error");return a}}();c.ed=function(a){var b,d,g,f,h=0,e=0,i="",i=[];if(!a)return a;a=c.Ge(a);do b=a.charCodeAt(h++),d=a.charCodeAt(h++),g=a.charCodeAt(h++),f=b<<16|d<<8|g,b=f>>18&63,d=f>>12&63,g=f>>6&63,f&=63,i[e++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d)+
42
- "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f);while(h<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.Ge=function(a){var a=(a+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),b="",d,c,f=0,h;d=c=0;f=a.length;for(h=0;h<f;h++){var e=a.charCodeAt(h),i=r;128>e?c++:i=127<e&&2048>e?String.fromCharCode(e>>6|192,e&63|128):String.fromCharCode(e>>
43
- 12|224,e>>6&63|128,e&63|128);i!==r&&(c>d&&(b+=a.substring(d,c)),b+=i,d=c=h+1)}c>d&&(b+=a.substring(d,a.length));return b};c.Na=function(){function a(){function a(b,d){var c,g=0;for(c=0;c<d.length;c++)g|=h[c]<<8*c;return b^g}var b,c,h=[],e=0;for(b=0;b<B.length;b++)c=B.charCodeAt(b),h.unshift(c&255),4<=h.length&&(e=a(e,h),h=[]);0<h.length&&(e=a(e,h));return e.toString(16)}function b(){var a=1*new Date,b;if(j.performance&&j.performance.now)b=j.performance.now();else for(b=0;a==1*new Date;)b++;return a.toString(16)+
44
- Math.floor(b).toString(16)}return function(){var d=(oa.height*oa.width).toString(16);return b()+"-"+Math.random().toString(16).replace(".","")+"-"+a()+"-"+d+"-"+b()}}();var pb="ahrefsbot,ahrefssiteaudit,amazonbot,baiduspider,bingbot,bingpreview,chrome-lighthouse,facebookexternal,petalbot,pinterest,screaming frog,yahoo! slurp,yandex,adsbot-google,apis-google,duplexweb-google,feedfetcher-google,google favicon,google web preview,google-read-aloud,googlebot,googleweblight,mediapartners-google,storebot-google".split(",");
45
- c.ic=function(a){var b,a=a.toLowerCase();for(b=0;b<pb.length;b++)if(-1!==a.indexOf(pb[b]))return l;return C};c.Db=function(a){var b,d,g,f=[];c.e(b)&&(b="&");c.a(a,function(a,b){d=encodeURIComponent(a.toString());g=encodeURIComponent(b);f[f.length]=g+"="+d});return f.join(b)};c.ib=function(a,b){var b=b.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]"),d=RegExp("[\\?&]"+b+"=([^&#]*)").exec(a);if(d===r||d&&"string"!==typeof d[1]&&d[1].length)return"";d=d[1];try{d=decodeURIComponent(d)}catch(c){s.error("Skipping decoding for malformed query param: "+
46
- d)}return d.replace(/\+/g," ")};c.cookie={get:function(a){for(var a=a+"=",b=v.cookie.split(";"),d=0;d<b.length;d++){for(var c=b[d];" "==c.charAt(0);)c=c.substring(1,c.length);if(0===c.indexOf(a))return decodeURIComponent(c.substring(a.length,c.length))}return r},parse:function(a){var b;try{b=c.aa(c.cookie.get(a))||{}}catch(d){}return b},Oe:function(a,b,c,g,f,h,e){var i="",m="",p="";e?i="; domain="+e:g&&(i=(i=Ta(v.location.hostname))?"; domain=."+i:"");c&&(m=new Date,m.setTime(m.getTime()+1E3*c),m=
47
- "; expires="+m.toGMTString());h&&(f=l,p="; SameSite=None");f&&(p+="; secure");v.cookie=a+"="+encodeURIComponent(b)+m+"; path=/"+i+p},set:function(a,b,c,g,f,h,e){var i="",m="",p="";e?i="; domain="+e:g&&(i=(i=Ta(v.location.hostname))?"; domain=."+i:"");c&&(m=new Date,m.setTime(m.getTime()+864E5*c),m="; expires="+m.toGMTString());h&&(f=l,p="; SameSite=None");f&&(p+="; secure");a=a+"="+encodeURIComponent(b)+m+"; path=/"+i+p;return v.cookie=a},remove:function(a,b,d){c.cookie.set(a,"",-1,b,C,C,d)}};var wa=
48
- r,La=r;c.localStorage=Za(j.localStorage,"localStorage",ea);c.sessionStorage=Za(j.sessionStorage,"sessionStorage",function(a,b){return La!==r&&!b?La:La=Ua(a||j.sessionStorage)});c.uc=function(){function a(a,g,f){return function(h){if(h=h||b(j.event)){var e=l,i;c.nb(f)&&(i=f(h));h=g.call(a,h);if(C===i||C===h)e=C;return e}}}function b(a){if(a)a.preventDefault=b.preventDefault,a.stopPropagation=b.stopPropagation;return a}b.preventDefault=function(){this.returnValue=C};b.stopPropagation=function(){this.cancelBubble=
49
- l};return function(b,c,f,h,e){b?b.addEventListener&&!h?b.addEventListener(c,f,!!e):(c="on"+c,b[c]=a(b,f,b[c])):s.error("No valid element provided to register_event")}}();var Rb=/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/;c.od=function(){function a(a,b){return 0<=(" "+a.className+" ").replace(d," ").indexOf(" "+b+" ")}function b(b){if(!v.getElementsByTagName)return[];var b=b.split(" "),d,h,e,i,m,p,q,u=[v];for(i=0;i<b.length;i++)if(d=b[i].replace(/^\s+/,"").replace(/\s+$/,""),-1<d.indexOf("#")){h=
50
- d.split("#");d=h[0];u=v.getElementById(h[1]);if(!u||d&&u.nodeName.toLowerCase()!=d)return[];u=[u]}else if(-1<d.indexOf(".")){h=d.split(".");d=h[0];var A=h[1];d||(d="*");h=[];for(m=e=0;m<u.length;m++){q="*"==d?u[m].all?u[m].all:u[m].getElementsByTagName("*"):u[m].getElementsByTagName(d);for(p=0;p<q.length;p++)h[e++]=q[p]}u=[];for(m=d=0;m<h.length;m++)h[m].className&&c.ob(h[m].className)&&a(h[m],A)&&(u[d++]=h[m])}else if(h=d.match(Rb)){d=h[1];var j=h[2],A=h[3],n=h[4];d||(d="*");h=[];for(m=e=0;m<u.length;m++){q=
51
- "*"==d?u[m].all?u[m].all:u[m].getElementsByTagName("*"):u[m].getElementsByTagName(d);for(p=0;p<q.length;p++)h[e++]=q[p]}u=[];d=0;switch(A){case "=":A=function(a){return a.getAttribute(j)==n};break;case "~":A=function(a){return a.getAttribute(j).match(RegExp("\\b"+n+"\\b"))};break;case "|":A=function(a){return a.getAttribute(j).match(RegExp("^"+n+"-?"))};break;case "^":A=function(a){return 0===a.getAttribute(j).indexOf(n)};break;case "$":A=function(a){return a.getAttribute(j).lastIndexOf(n)==a.getAttribute(j).length-
52
- n.length};break;case "*":A=function(a){return-1<a.getAttribute(j).indexOf(n)};break;default:A=function(a){return a.getAttribute(j)}}u=[];for(m=d=0;m<h.length;m++)A(h[m])&&(u[d++]=h[m])}else{h=[];for(m=e=0;m<u.length;m++){q=u[m].getElementsByTagName(d);for(p=0;p<q.length;p++)h[e++]=q[p]}u=h}return u}var d=/[\t\r\n]/g;return function(a){return c.Kd(a)?[a]:c.g(a)&&!c.e(a.length)?a:b.call(this,a)}}();var Sb="utm_source,utm_medium,utm_campaign,utm_content,utm_term,utm_id,utm_source_platform,utm_campaign_id,utm_creative_format,utm_marketing_tactic".split(","),
53
- Tb="dclid,fbclid,gclid,ko_click_id,li_fat_id,msclkid,sccid,ttclid,twclid,wbraid".split(",");c.info={ga:function(a){var b="",d={};c.a(Sb,function(g){b=c.ib(v.URL,g);b.length?d[g]=b:a!==k&&(d[g]=a)});return d},Tb:function(){var a="",b={};c.a(Tb,function(d){a=c.ib(v.URL,d);a.length&&(b[d]=a)});return b},Sd:function(){return c.extend(c.info.ga(),c.info.Tb())},be:function(a){return 0===a.search("https?://(.*)google.([^/?]*)")?"google":0===a.search("https?://(.*)bing.com")?"bing":0===a.search("https?://(.*)yahoo.com")?
54
- "yahoo":0===a.search("https?://(.*)duckduckgo.com")?"duckduckgo":r},ce:function(a){var b=c.info.be(a),d={};if(b!==r)d.$search_engine=b,a=c.ib(a,"yahoo"!=b?"q":"p"),a.length&&(d.mp_keyword=a);return d},xa:function(a,b,d){return d||c.i(a," OPR/")?c.i(a,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":c.i(a,"IEMobile")||c.i(a,"WPDesktop")?"Internet Explorer Mobile":c.i(a,"SamsungBrowser/")?"Samsung Internet":c.i(a,"Edge")||c.i(a,"Edg/")?"Microsoft Edge":c.i(a,"FBIOS")?
55
- "Facebook Mobile":c.i(a,"Chrome")?"Chrome":c.i(a,"CriOS")?"Chrome iOS":c.i(a,"UCWEB")||c.i(a,"UCBrowser")?"UC Browser":c.i(a,"FxiOS")?"Firefox iOS":c.i(b||"","Apple")?c.i(a,"Mobile")?"Mobile Safari":"Safari":c.i(a,"Android")?"Android Mobile":c.i(a,"Konqueror")?"Konqueror":c.i(a,"Firefox")?"Firefox":c.i(a,"MSIE")||c.i(a,"Trident/")?"Internet Explorer":c.i(a,"Gecko")?"Mozilla":""},$a:function(a,b,d){b={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,
56
- "Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[c.info.xa(a,
57
- b,d)];if(b===k)return r;a=a.match(b);return!a?r:parseFloat(a[a.length-2])},mc:function(){return/Windows/i.test(B)?/Phone/.test(B)||/WPDesktop/.test(B)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(B)?"iOS":/Android/.test(B)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(B)?"BlackBerry":/Mac/i.test(B)?"Mac OS X":/Linux/.test(B)?"Linux":/CrOS/.test(B)?"Chrome OS":""},$b:function(a){return/Windows Phone/i.test(a)||/WPDesktop/.test(a)?"Windows Phone":/iPad/.test(a)?"iPad":/iPod/.test(a)?"iPod Touch":
58
- /iPhone/.test(a)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":/Android/.test(a)?"Android":""},tc:function(a){a=a.split("/");return 3<=a.length?a[2]:""},Aa:function(){return j.location.href},la:function(a){"object"!==typeof a&&(a={});return c.extend(c.X({$os:c.info.mc(),$browser:c.info.xa(B,P.vendor,na),$referrer:v.referrer,$referring_domain:c.info.tc(v.referrer),$device:c.info.$b(B)}),{$current_url:c.info.Aa(),$browser_version:c.info.$a(B,P.vendor,na),$screen_height:oa.height,$screen_width:oa.width,
59
- mp_lib:"web",$lib_version:"2.61.2",$insert_id:va(),time:c.timestamp()/1E3},c.X(a))},Xd:function(){return c.extend(c.X({$os:c.info.mc(),$browser:c.info.xa(B,P.vendor,na)}),{$browser_version:c.info.$a(B,P.vendor,na)})},Td:function(){return c.X({current_page_title:v.title,current_domain:j.location.hostname,current_url_path:j.location.pathname,current_url_protocol:j.location.protocol,current_url_search:j.location.search})}};var Bb=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Ab=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,
60
- pa=r,qa=r;if("undefined"!==typeof JSON)pa=JSON.stringify,qa=JSON.parse;pa=pa||c.sa;qa=qa||c.aa;c.info=c.info;c.info.browser=c.info.xa;c.info.browserVersion=c.info.$a;c.info.device=c.info.$b;c.info.properties=c.info.la;c.isBlockedUA=c.ic;c.isEmptyObject=c.Ga;c.isObject=c.g;c.JSONDecode=c.aa;c.JSONEncode=c.sa;c.toArray=c.Y;c.NPO=M;var ia="change",$="click",Ha="submit",Ib="clientX,clientY,offsetX,offsetY,pageX,pageY,screenX,screenY,x,y".split(","),eb=["mp-include"],Ga=["mp-no-track"],db=Ga.concat(["mp-sensitive"]),
61
- Fb="aria-label,aria-labelledby,aria-describedby,href,name,role,title,type".split(","),D=fa("autocapture"),qb={allow_selectors:[],allow_url_regexes:[],block_attrs:[],block_element_callback:r,block_selectors:[],block_url_regexes:[],capture_extra_attrs:[],capture_text_content:C,scroll_capture_all:C,scroll_depth_percent_checkpoints:[25,50,75,100],click:l,input:l,pageview:"full-url",scroll:l,submit:l},ra={$mp_autocapture:l};E.prototype.A=function(){var a;try{a=!!v.createElement("div").matches}catch(b){a=
62
- C}a?(this.Ed(),this.Cd(),this.Dd(),this.Fd(),this.Gd()):D.m("Autocapture unavailable: missing required DOM APIs")};E.prototype.wd=function(){var a=this.B.c("autocapture");return a?c.g(a)?c.extend({},qb,a):qb:{}};E.prototype.j=function(a){return this.wd()[a]};E.prototype.Ba=function(){var a,b=c.info.Aa(),d=this.j("allow_url_regexes")||[];if(d.length){var g=C;for(a=0;a<d.length;a++){var f=d[a];try{if(b.match(f)){g=l;break}}catch(e){return D.m("Error while checking block URL regex: "+f,e),l}}if(!g)return l}d=
63
- this.j("block_url_regexes")||[];if(!d||!d.length)return C;for(a=0;a<d.length;a++)try{if(b.match(d[a]))return l}catch(t){return D.m("Error while checking block URL regex: "+d[a],t),l}return C};E.prototype.oc=function(){return this.B.c("autocapture")?this.j("pageview"):this.B.c("track_pageview")};E.prototype.yb=function(a,b){if(!this.Ba()){var d=Gb(a,{bd:this.j("allow_element_callback"),cd:this.j("allow_selectors"),fd:this.j("block_attrs"),gd:this.j("block_element_callback"),hd:this.j("block_selectors"),
64
- kd:this.j("capture_extra_attrs"),ld:this.j("capture_text_content")});d&&(c.extend(d,ra),this.B.p(b,d))}};E.prototype.Cd=function(){j.removeEventListener($,this.Md);if(this.j("click"))D.log("Initializing click tracking"),this.Md=j.addEventListener($,function(a){this.j("click")&&this.yb(a,"$mp_click")}.bind(this))};E.prototype.Dd=function(){j.removeEventListener(ia,this.Ld);if(this.j("input"))D.log("Initializing input tracking"),this.Ld=j.addEventListener(ia,function(a){this.j("input")&&this.yb(a,"$mp_input_change")}.bind(this))};
65
- E.prototype.Ed=function(){j.removeEventListener("popstate",this.Pd);j.removeEventListener("hashchange",this.Nd);j.removeEventListener("mp_locationchange",this.Od);if(this.oc()){D.log("Initializing pageview tracking");var a="",b=C;this.Ba()||(b=this.B.zb(ra));b&&(a=c.info.Aa());this.Pd=j.addEventListener("popstate",function(){j.dispatchEvent(new Event("mp_locationchange"))});this.Nd=j.addEventListener("hashchange",function(){j.dispatchEvent(new Event("mp_locationchange"))});var d=j.history.pushState;
66
- if("function"===typeof d)j.history.pushState=function(a,b,c){d.call(j.history,a,b,c);j.dispatchEvent(new Event("mp_locationchange"))};var g=j.history.replaceState;if("function"===typeof g)j.history.replaceState=function(a,b,c){g.call(j.history,a,b,c);j.dispatchEvent(new Event("mp_locationchange"))};this.Od=j.addEventListener("mp_locationchange",xa(function(){if(!this.Ba()){var b=c.info.Aa(),d=C,g=b.split("#")[0].split("?")[0]!==a.split("#")[0].split("?")[0],e=this.oc();"full-url"===e?d=b!==a:"url-with-path-and-query-string"===
67
- e?d=b.split("#")[0]!==a.split("#")[0]:"url-with-path"===e&&(d=g);if(d&&(this.B.zb(ra)&&(a=b),g))this.Ha=0,D.log("Path change: re-initializing scroll depth checkpoints")}}.bind(this)))}};E.prototype.Fd=function(){j.removeEventListener("scrollend",this.Qd);if(this.j("scroll"))D.log("Initializing scroll tracking"),this.Ha=0,this.Qd=j.addEventListener("scrollend",xa(function(){if(this.j("scroll")&&!this.Ba()){var a=this.j("scroll_capture_all"),b=(this.j("scroll_depth_percent_checkpoints")||[]).slice().sort(function(a,
68
- b){return a-b}),d=j.scrollY,g=c.extend({$scroll_top:d},ra);try{var f=v.body.scrollHeight,e=Math.round(100*(d/(f-j.innerHeight)));g.$scroll_height=f;g.$scroll_percentage=e;if(e>this.Ha)for(d=0;d<b.length;d++){var t=b[d];if(e>=t&&this.Ha<t)this.Ha=g.$scroll_checkpoint=t,a=l}}catch(i){D.m("Error while calculating scroll percentage",i)}a&&this.B.p("$mp_scroll",g)}}.bind(this)))};E.prototype.Gd=function(){j.removeEventListener(Ha,this.Rd);if(this.j("submit"))D.log("Initializing submit tracking"),this.Rd=
69
- j.addEventListener(Ha,function(a){this.j("submit")&&this.yb(a,"$mp_submit")}.bind(this))};(function(a){var a=a.prototype,b;for(b in a)"function"===typeof a[b]&&(a[b]=xa(a[b]))})(E);I.prototype.za=V();I.prototype.gb=V();I.prototype.Xa=V();I.prototype.A=function(a){this.B=a;return this};I.prototype.p=function(a,b,d,g){var f=this,e=c.od(a);if(0===e.length)s.error("The DOM query ("+a+") returned 0 elements");else return c.a(e,function(a){c.uc(a,this.nc,function(a){var c={},e=f.za(d,this),h=f.B.c("track_links_timeout");
70
- f.gb(a,this,c);window.setTimeout(f.Jc(g,e,c,l),h);f.B.p(b,e,f.Jc(g,e,c))})},this),l};I.prototype.Jc=function(a,b,c,g){var g=g||C,f=this;return function(){if(!c.jd)c.jd=l,a&&a(g,b)===C||f.Xa(b,c,g)}};I.prototype.za=function(a,b){return"function"===typeof a?a(b):c.extend({},a)};c.hc(S,I);S.prototype.za=function(a,b){var c=S.ue.za.apply(this,arguments);if(b.href)c.url=b.href;return c};S.prototype.gb=function(a,b,c){c.kc=2===a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;c.href=b.href;c.kc||a.preventDefault()};
71
- S.prototype.Xa=function(a,b){b.kc||setTimeout(function(){window.location=b.href},0)};c.hc(da,I);da.prototype.gb=function(a,b,c){c.element=b;a.preventDefault()};da.prototype.Xa=function(a,b){setTimeout(function(){b.element.submit()},0)};var Ub=fa("lock");Ra.prototype.Cb=function(a,b){return new this.sc(c.bind(function(c,g){function f(){function b(){o.removeItem(w);o.getItem(v)===j&&o.removeItem(v);o.getItem(s)===j&&o.removeItem(s)}o.setItem(w,"1");a().then(function(a){b();c(a)}).catch(function(a){b();
72
- g(a)})}function e(){o.setItem(s,j);i(t,function(){o.getItem(s)===j?f():m(function(){o.getItem(v)!==j?e():i(function(){return!o.getItem(w)},f)})})}function t(){var a=o.getItem(v);if(a&&a!==j)return C;o.setItem(v,j);if(o.getItem(v)===j)return l;ea(o,l)||g(Error("localStorage support dropped while acquiring lock"));return C}function i(a,b){a()?b():m(function(){i(a,b)})}function m(a){(new Date).getTime()-q>n?(Ub.error("Timeout waiting for mutex on "+u+"; clearing lock. ["+j+"]"),o.removeItem(w),o.removeItem(v),
73
- e()):setTimeout(function(){try{a()}catch(b){g(b)}},A*(Math.random()+0.1))}var j=b||(new Date).getTime()+"|"+Math.random(),q=(new Date).getTime(),u=this.W,A=this.rc,n=this.xb,o=this.o,s=u+":X",v=u+":Y",w=u+":Z";try{if(ea(o,l))e();else throw Error("localStorage support check failed");}catch(x){g(x)}},this))};W.prototype.A=function(){return w.resolve()};W.prototype.setItem=function(a,b){return new w(c.bind(function(c,g){try{this.o.setItem(a,pa(b))}catch(f){g(f)}c()},this))};W.prototype.getItem=function(a){return new w(c.bind(function(b,
74
- c){var g;try{g=qa(this.o.getItem(a))}catch(f){c(f)}b(g)},this))};W.prototype.removeItem=function(a){return new w(c.bind(function(b,c){try{this.o.removeItem(a)}catch(g){c(g)}b()},this))};var Sa=fa("batch");G.prototype.O=function(){return this.mb?w.resolve():this.K.A().then(c.bind(function(){this.mb=l},this)).catch(c.bind(function(a){this.h("Error initializing queue persistence. Disabling persistence",a);this.mb=l;this.v=C},this))};G.prototype.eb=function(a,b){var c={id:va(),flushAfter:(new Date).getTime()+
75
- 2*b,payload:a};if(this.v)return this.rd(c);this.F.push(c);return w.resolve(l)};G.prototype.Ib=function(a){return this.Ja.Cb(c.bind(function(){return this.O().then(c.bind(function(){return this.oa()},this)).then(c.bind(function(b){return this.tb(b.concat(a))},this)).then(c.bind(function(b){if(b)this.F=this.F.concat(a);return b},this)).catch(c.bind(function(b){this.h("Error enqueueing items",b,a);return C},this))},this),this.La).catch(c.bind(function(a){this.h("Error acquiring storage lock",a);return C},
76
- this))};G.prototype.td=function(a){var b=this.F.slice(0,a);return this.v&&b.length<a?this.O().then(c.bind(function(){return this.oa()},this)).then(c.bind(function(d){if(d.length){var g={};c.a(b,function(a){g[a.id]=l});for(var f=0;f<d.length;f++){var e=d[f];if((new Date).getTime()>e.flushAfter&&!g[e.id]&&(e.Vd=l,b.push(e),b.length>=a))break}}return b},this)):w.resolve(b)};G.prototype.Yd=function(a){var b={};c.a(a,function(a){b[a]=l});this.F=Qa(this.F,b);if(this.v){var d=c.bind(function(){return this.O().then(c.bind(function(){return this.oa()},
77
- this)).then(c.bind(function(a){a=Qa(a,b);return this.tb(a)},this)).then(c.bind(function(){return this.oa()},this)).then(c.bind(function(a){for(var c=0;c<a.length;c++){var d=a[c];if(d.id&&b[d.id])throw Error("Item not removed from storage");}return l},this)).catch(c.bind(function(b){this.h("Error removing items",b,a);return C},this))},this);return this.Ja.Cb(d,this.La).catch(c.bind(function(a){this.h("Error acquiring storage lock",a);return ea(this.Ja.o,l)?C:d().then(c.bind(function(a){return!a?this.K.removeItem(this.W).then(function(){return a}):
78
- a},this)).catch(c.bind(function(a){this.h("Error clearing queue",a);return C},this))},this))}return w.resolve(l)};G.prototype.Ee=function(a){this.F=Pa(this.F,a);return this.v?this.Ja.Cb(c.bind(function(){return this.O().then(c.bind(function(){return this.oa()},this)).then(c.bind(function(b){b=Pa(b,a);return this.tb(b)},this)).catch(c.bind(function(b){this.h("Error updating items",a,b);return C},this))},this),this.La).catch(c.bind(function(a){this.h("Error acquiring storage lock",a);return C},this)):
79
- w.resolve(l)};G.prototype.oa=function(){return this.O().then(c.bind(function(){return this.K.getItem(this.W)},this)).then(c.bind(function(a){a&&!c.isArray(a)&&(this.h("Invalid storage entry:",a),a=r);return a||[]},this)).catch(c.bind(function(a){this.h("Error retrieving queue",a);return[]},this))};G.prototype.tb=function(a){return this.O().then(c.bind(function(){return this.K.setItem(this.W,a)},this)).then(function(){return l}).catch(c.bind(function(a){this.h("Error saving queue",a);return C},this))};
80
- G.prototype.clear=function(){this.F=[];return this.v?this.O().then(c.bind(function(){return this.K.removeItem(this.W)},this)):w.resolve()};var ba=fa("batch");F.prototype.eb=function(a){return this.ma.eb(a,this.Da)};F.prototype.start=function(){this.pa=C;this.ab=0;return this.flush()};F.prototype.stop=function(){this.pa=l;if(this.wb)clearTimeout(this.wb),this.wb=r};F.prototype.clear=function(){return this.ma.clear()};F.prototype.wc=function(){this.M=this.J.batch_size};F.prototype.U=function(){this.yc(this.J.batch_flush_interval_ms)};
81
- F.prototype.yc=function(a){this.Da=a;if(!this.pa)this.wb=setTimeout(c.bind(function(){if(!this.pa)this.Wc=this.flush()},this),this.Da)};F.prototype.ge=function(a,b){return new w(c.bind(function(c){this.ee(a,b,c)},this))};F.prototype.flush=function(a){if(this.sb)return ba.log("Flush: Request already in progress"),w.resolve();this.sb=l;var a=a||{},b=this.J.batch_request_timeout_ms,d=(new Date).getTime(),g=this.M;return this.ma.td(g).then(c.bind(function(f){var e=f.length===g,t=[],i={};c.a(f,function(a){var b=
82
- a.payload;this.wa&&!a.Vd&&(b=this.wa(b));if(b){b.event&&b.properties&&(b.properties=c.extend({},b.properties,{mp_sent_by_lib_version:"2.61.2"}));var d=l,g=a.id;if(g){if(5<(this.Q[g]||0))this.h("[dupe] item ID sent too many times, not sending",{item:a,M:f.length,xe:this.Q[g]}),d=C}else this.h("[dupe] found item with no ID",{item:a});d&&t.push(b)}i[a.id]=b},this);if(1>t.length)return this.sb=C,this.U(),w.resolve();var m=c.bind(function(){return this.ma.Yd(c.map(f,function(a){return a.id})).then(c.bind(function(a){c.a(f,
83
- c.bind(function(a){var b=a.id;b?(this.Q[b]=this.Q[b]||0,this.Q[b]++,5<this.Q[b]&&this.h("[dupe] item ID sent too many times",{item:a,M:f.length,xe:this.Q[b]})):this.h("[dupe] found item with no ID while removing",{item:a})},this));if(a){this.ab=0;return this.ac&&!e?(this.U(),w.resolve()):this.flush()}5<++this.ab?(this.h("Too many queue failures; disabling batching system."),this.qe()):this.U();return w.resolve()},this))},this),p=c.bind(function(e){this.sb=C;try{if(a.Lc)return this.ma.Ee(i);if(c.g(e)&&
84
- "timeout"===e.error&&(new Date).getTime()-d>=b)return this.h("Network timeout; retrying"),this.flush();var h;if(h=c.g(e)){var t;if(!(t=500<=e.Fa)){var q;if(!(q=429===e.Fa)){var p;if(p=0>=e.Fa){var n=j.navigator.onLine;p=!(c.e(n)||n)}q=p||"timeout"===e.error}t=q}h=t}if(h){var o=2*this.Da;e.xc&&(o=1E3*parseInt(e.xc,10)||o);o=Math.min(6E5,o);this.h("Error; retry in "+o+" ms");this.yc(o);return w.resolve()}if(c.g(e)&&413===e.Fa){if(1<f.length){var s=Math.max(1,Math.floor(g/2));this.M=Math.min(this.M,
85
- s,f.length-1);this.h("413 response; reducing batch size to "+this.M);this.U();return w.resolve()}this.h("Single-event request too large; dropping",f);this.wc()}return m()}catch(v){this.h("Error handling API response",v),this.U()}},this),q={method:"POST",Pc:l,Bd:l,Ic:b};if(a.Lc)q.Ab="sendBeacon";ba.log("MIXPANEL REQUEST:",t);return this.ge(t,q).then(p)},this)).catch(c.bind(function(a){this.h("Error flushing request queue",a);this.U()},this))};F.prototype.h=function(a,b){ba.error.apply(ba.error,arguments);
86
- if(this.S)try{b instanceof Error||(b=Error(a)),this.S(a,b)}catch(c){ba.error(c)}};var Pb="__mp_opt_in_out_",rb={Ac:function(a,b){var d={},g={};c.g(a)?c.a(a,function(a,b){this.H(b)||(g[b]=a)},this):g[a]=b;d.$set=g;return d},Mc:function(a){var b={},d=[];c.isArray(a)||(a=[a]);c.a(a,function(a){this.H(a)||d.push(a)},this);b.$unset=d;return b},Dc:function(a,b){var d={},g={};c.g(a)?c.a(a,function(a,b){this.H(b)||(g[b]=a)},this):g[a]=b;d.$set_once=g;return d},Kc:function(a,b){var d={},g={};c.g(a)?c.a(a,
87
- function(a,b){this.H(b)||(g[b]=c.isArray(a)?a:[a])},this):g[a]=c.isArray(b)?b:[b];d.$union=g;return d},dd:function(a,b){var d={},g={};c.g(a)?c.a(a,function(a,b){this.H(b)||(g[b]=a)},this):g[a]=b;d.$append=g;return d},vc:function(a,b){var d={},g={};c.g(a)?c.a(a,function(a,b){this.H(b)||(g[b]=a)},this):g[a]=b;d.$remove=g;return d},Me:function(){return{$delete:""}}};c.extend(x.prototype,rb);x.prototype.fa=function(a,b,c){this.d=a;this.Ta=b;this.Sa=c};x.prototype.set=T(function(a,b,d){var g=this.Ac(a,
88
- b);c.g(a)&&(d=b);return this.k(g,d)});x.prototype.V=T(function(a,b,d){var g=this.Dc(a,b);c.g(a)&&(d=b);return this.k(g,d)});x.prototype.Ma=T(function(a,b){return this.k(this.Mc(a),b)});x.prototype.ra=T(function(a,b,d){c.g(a)&&(d=b);return this.k(this.Kc(a,b),d)});x.prototype["delete"]=T(function(a){return this.k({$delete:""},a)});x.prototype.remove=T(function(a,b,c){return this.k(this.vc(a,b),c)});x.prototype.k=function(a,b){a.$group_key=this.Ta;a.$group_id=this.Sa;a.$token=this.s("token");return this.d.Wa({type:"groups",
89
- data:c.cb(a),N:this.s("api_host")+"/"+this.s("api_routes").groups,Za:this.d.C.jb},b)};x.prototype.H=function(a){return"$group_key"===a||"$group_id"===a};x.prototype.s=function(a){return this.d.c(a)};x.prototype.toString=function(){return this.d.toString()+".group."+this.Ta+"."+this.Sa};x.prototype.remove=x.prototype.remove;x.prototype.set=x.prototype.set;x.prototype.set_once=x.prototype.V;x.prototype.union=x.prototype.ra;x.prototype.unset=x.prototype.Ma;x.prototype.toString=x.prototype.toString;c.extend(n.prototype,
90
- rb);n.prototype.fa=function(a){this.d=a};n.prototype.set=N(function(a,b,d){var g=this.Ac(a,b);c.g(a)&&(d=b);this.s("save_referrer")&&this.d.persistence.Bb(document.referrer);g.$set=c.extend({},c.info.Xd(),g.$set);return this.k(g,d)});n.prototype.V=N(function(a,b,d){var g=this.Dc(a,b);c.g(a)&&(d=b);return this.k(g,d)});n.prototype.Ma=N(function(a,b){return this.k(this.Mc(a),b)});n.prototype.gc=N(function(a,b,d){var g={},e={};c.g(a)?(c.a(a,function(a,b){this.H(b)||(isNaN(parseFloat(a))?s.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):
91
- e[b]=a)},this),d=b):(c.e(b)&&(b=1),e[a]=b);g.$add=e;return this.k(g,d)});n.prototype.append=N(function(a,b,d){c.g(a)&&(d=b);return this.k(this.dd(a,b),d)});n.prototype.remove=N(function(a,b,d){c.g(a)&&(d=b);return this.k(this.vc(a,b),d)});n.prototype.ra=N(function(a,b,d){c.g(a)&&(d=b);return this.k(this.Kc(a,b),d)});n.prototype.Ae=N(function(a,b,d){if(!c.jc(a)&&(a=parseFloat(a),isNaN(a))){s.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",
92
- c.extend({$amount:a},b),d)});n.prototype.Rb=function(a){return this.set("$transactions",[],a)};n.prototype.Zb=function(){if(this.Ua())return this.k({$delete:this.d.P()});s.error("mixpanel.people.delete_user() requires you to call identify() first")};n.prototype.toString=function(){return this.d.toString()+".people"};n.prototype.k=function(a,b){a.$token=this.s("token");a.$distinct_id=this.d.P();var d=this.d.z("$device_id"),g=this.d.z("$user_id"),e=this.d.z("$had_persisted_distinct_id");d&&(a.$device_id=
93
- d);g&&(a.$user_id=g);e&&(a.$had_persisted_distinct_id=e);d=c.cb(a);return!this.Ua()?(this.Uc(a),c.e(b)||(this.s("verbose")?b({status:-1,error:r}):b(-1)),c.truncate(d,255)):this.d.Wa({type:"people",data:d,N:this.s("api_host")+"/"+this.s("api_routes").engage,Za:this.d.C.qb},b)};n.prototype.s=function(a){return this.d.c(a)};n.prototype.Ua=function(){return this.d.ca.ec===l};n.prototype.Uc=function(a){"$set"in a?this.d.persistence.w("$set",a):"$set_once"in a?this.d.persistence.w("$set_once",a):"$unset"in
94
- a?this.d.persistence.w("$unset",a):"$add"in a?this.d.persistence.w("$add",a):"$append"in a?this.d.persistence.w("$append",a):"$remove"in a?this.d.persistence.w("$remove",a):"$union"in a?this.d.persistence.w("$union",a):s.error("Invalid call to _enqueue():",a)};n.prototype.da=function(a,b,d,g){var e=this,h=c.extend({},this.d.persistence.ja(a)),j=h;!c.e(h)&&c.g(h)&&!c.Ga(h)&&(e.d.persistence.D(a,h),e.d.persistence.save(),g&&(j=g(h)),b.call(e,j,function(b,g){0===b&&e.d.persistence.w(a,h);c.e(d)||d(b,
95
- g)}))};n.prototype.Vc=function(a,b,d,e,f,h,j){var i=this;this.da("$set",this.set,a);this.da("$set_once",this.V,e);this.da("$unset",this.Ma,h,function(a){return c.keys(a)});this.da("$add",this.gc,b);this.da("$union",this.ra,f);a=this.d.persistence.ja("$append");if(!c.e(a)&&c.isArray(a)&&a.length)for(var m,b=function(a,b){0===a&&i.d.persistence.w("$append",m);c.e(d)||d(a,b)},e=a.length-1;0<=e;e--)a=this.d.persistence.ja("$append"),m=a.pop(),i.d.persistence.save(),c.Ga(m)||i.append(m,b);a=this.d.persistence.ja("$remove");
96
- if(!c.e(a)&&c.isArray(a)&&a.length)for(var p,b=function(a,b){0===a&&i.d.persistence.w("$remove",p);c.e(j)||j(a,b)},e=a.length-1;0<=e;e--)a=this.d.persistence.ja("$remove"),p=a.pop(),i.d.persistence.save(),c.Ga(p)||i.remove(p,b)};n.prototype.H=function(a){return"$distinct_id"===a||"$token"===a||"$device_id"===a||"$user_id"===a||"$had_persisted_distinct_id"===a};n.prototype.set=n.prototype.set;n.prototype.set_once=n.prototype.V;n.prototype.unset=n.prototype.Ma;n.prototype.increment=n.prototype.gc;n.prototype.append=
97
- n.prototype.append;n.prototype.remove=n.prototype.remove;n.prototype.union=n.prototype.ra;n.prototype.track_charge=n.prototype.Ae;n.prototype.clear_charges=n.prototype.Rb;n.prototype.delete_user=n.prototype.Zb;n.prototype.toString=n.prototype.toString;var Vb="__mps,__mpso,__mpus,__mpa,__mpap,__mpr,__mpu,$people_distinct_id,__alias,__timers".split(",");o.prototype.la=function(){var a={};this.load();c.a(this.props,function(b,d){c.lb(Vb,d)||(a[d]=b)});return a};o.prototype.load=function(){if(!this.disabled){var a=
98
- this.o.parse(this.name);a&&(this.props=c.extend({},a))}};o.prototype.Fe=function(){var a;this.o===c.localStorage?(a=c.cookie.parse(this.name),c.cookie.remove(this.name),c.cookie.remove(this.name,l),a&&this.G(a)):this.o===c.cookie&&(a=c.localStorage.parse(this.name),c.localStorage.remove(this.name),a&&this.G(a))};o.prototype.save=function(){this.disabled||this.o.set(this.name,c.sa(this.props),this.hb,this.bb,this.zc,this.Xb,this.ya)};o.prototype.Ia=function(a){this.load();return this.props[a]};o.prototype.remove=
99
- function(){this.o.remove(this.name,C,this.ya);this.o.remove(this.name,l,this.ya)};o.prototype.clear=function(){this.remove();this.props={}};o.prototype.G=function(a,b,d){return c.g(a)?("undefined"===typeof b&&(b="None"),this.hb="undefined"===typeof d?this.Yb:d,this.load(),c.a(a,function(a,c){if(!this.props.hasOwnProperty(c)||this.props[c]===b)this.props[c]=a},this),this.save(),l):C};o.prototype.q=function(a,b){return c.g(a)?(this.hb="undefined"===typeof b?this.Yb:b,this.load(),c.extend(this.props,
100
- a),this.save(),l):C};o.prototype.$=function(a){this.load();a in this.props&&(delete this.props[a],this.save())};o.prototype.Oc=function(a){this.q(c.info.ce(a))};o.prototype.Bb=function(a){this.G({$initial_referrer:a||"$direct",$initial_referring_domain:c.info.tc(a)||"$direct"},"")};o.prototype.zd=function(){return c.X({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};o.prototype.Nc=function(a){this.Yb=this.hb=a.cookie_expiration;this.Cc(a.disable_persistence);
101
- this.ie(a.cookie_domain);this.je(a.cross_site_cookie);this.ke(a.cross_subdomain_cookie);this.ne(a.secure_cookie)};o.prototype.Cc=function(a){(this.disabled=a)?this.remove():this.save()};o.prototype.ie=function(a){if(a!==this.ya)this.remove(),this.ya=a,this.save()};o.prototype.je=function(a){if(a!==this.Xb)this.Xb=a,this.remove(),this.save()};o.prototype.ke=function(a){if(a!==this.bb)this.bb=a,this.remove(),this.save()};o.prototype.xd=function(){return this.bb};o.prototype.ne=function(a){if(a!==this.zc)this.zc=
102
- a?l:C,this.remove(),this.save()};o.prototype.w=function(a,b){var d=this.ua(a),e=b[a],f=this.L("$set"),h=this.L("$set_once"),j=this.L("$unset"),i=this.L("$add"),m=this.L("$union"),p=this.L("$remove",[]),q=this.L("$append",[]);"__mps"===d?(c.extend(f,e),this.D("$add",e),this.D("$union",e),this.D("$unset",e)):"__mpso"===d?(c.a(e,function(a,b){b in h||(h[b]=a)}),this.D("$unset",e)):"__mpus"===d?c.a(e,function(a){c.a([f,h,i,m],function(b){a in b&&delete b[a]});c.a(q,function(b){a in b&&delete b[a]});j[a]=
103
- 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.D("$unset",e)):"__mpu"===d?(c.a(e,function(a,b){c.isArray(a)&&(b in m||(m[b]=[]),c.a(a,function(a){c.lb(m[b],a)||m[b].push(a)}))}),this.D("$unset",e)):"__mpr"===d?(p.push(e),this.D("$append",e)):"__mpap"===d&&(q.push(e),this.D("$unset",e));s.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");s.log(b);this.save()};o.prototype.D=function(a,b){var d=this.props[this.ua(a)];c.e(d)||c.a(b,function(b,e){"$append"===
104
- a||"$remove"===a?c.a(d,function(a){a[e]===b&&delete a[e]}):delete d[e]},this)};o.prototype.ja=function(a){return this.Ia(this.ua(a))};o.prototype.ua=function(a){if("$set"===a)return"__mps";if("$set_once"===a)return"__mpso";if("$unset"===a)return"__mpus";if("$add"===a)return"__mpa";if("$append"===a)return"__mpap";if("$remove"===a)return"__mpr";if("$union"===a)return"__mpu";s.error("Invalid queue:",a)};o.prototype.L=function(a,b){var d=this.ua(a),b=c.e(b)?{}:b;return this.props[d]||(this.props[d]=b)};
105
- o.prototype.le=function(a){var b=(new Date).getTime(),c=this.Ia("__timers")||{};c[a]=b;this.props.__timers=c;this.save()};o.prototype.Zd=function(a){var b=(this.Ia("__timers")||{})[a];c.e(b)||(delete this.props.__timers[a],this.save());return b};var Wb=["mixpanelRecordingEvents","mixpanelRecordingRegistry"];L.prototype.Lb=function(){return new w(function(a,b){var c=j.indexedDB.open("mixpanelBrowserDb",1);c.onerror=function(){b(c.error)};c.onsuccess=function(){a(c.result)};c.onupgradeneeded=function(a){var b=
106
- a.target.result;Wb.forEach(function(a){b.createObjectStore(a)})}})};L.prototype.A=function(){if(!j.indexedDB)return w.reject("indexedDB is not supported in this browser");if(!this.R)this.R=this.Lb();return this.R.then(function(a){return a instanceof j.IDBDatabase?w.resolve():w.reject(a)})};L.prototype.Ka=function(a,b){function c(d){return new w(function(c,j){var i=d.transaction(e,a);i.oncomplete=function(){c(i)};i.onabort=i.onerror=function(){j(i.error)};b(i.objectStore(e))})}var e=this.se;return this.R.then(c).catch(function(a){return a&&
107
- "InvalidStateError"===a.name?(this.R=this.Lb(),this.R.then(c)):w.reject(a)}.bind(this))};L.prototype.setItem=function(a,b){return this.Ka("readwrite",function(c){c.put(b,a)})};L.prototype.getItem=function(a){var b;return this.Ka("readonly",function(c){b=c.get(a)}).then(function(){return b.result})};L.prototype.removeItem=function(a){return this.Ka("readwrite",function(b){b.Le(a)})};L.prototype.getAll=function(){var a;return this.Ka("readonly",function(b){a=b.getAll()}).then(function(){return a.result})};
108
- var ta,y,U=j.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Na=!U&&-1===B.indexOf("MSIE")&&-1===B.indexOf("Mozilla"),sa=r;P.sendBeacon&&(sa=function(){return P.sendBeacon.apply(P,arguments)});var sb={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},tb={api_host:"https://api-js.mixpanel.com",api_routes:sb,api_method:"POST",api_transport:"XHR",api_payload_format:"base64",app_host:"https://mixpanel.com",autocapture:C,cdn:"https://cdn.mxpnl.com",cross_site_cookie:C,cross_subdomain_cookie:l,
109
- error_reporter:X,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:X,mp_loader:r,track_marketing:l,track_pageview:C,skip_first_touch_marketing:C,store_google:l,stop_utm_persistence:C,save_referrer:l,test:C,verbose:C,img:C,debug:C,track_links_timeout:300,cookie_expiration:365,upgrade:C,disable_persistence:C,disable_cookie:C,secure_cookie:C,ip:l,opt_out_tracking_by_default:C,opt_out_persistence_by_default:C,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:r,
110
- property_blacklist:[],xhr_headers:{},ignore_dnt:C,batch_requests:l,batch_size:50,batch_flush_interval_ms:5E3,batch_request_timeout_ms:9E4,batch_autostart:l,hooks:{},record_block_class:/^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$/,record_block_selector:"img, video",record_canvas:C,record_collect_fonts:C,record_idle_timeout_ms:18E5,record_mask_text_class:/^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$/,record_mask_text_selector:"*",record_max_ms:864E5,record_min_ms:0,record_sessions_percent:0,
111
- recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Ma=C;e.prototype.A=function(a,b,d){if(c.e(d))this.l("You must name your new library: init(token, config, name)");else if("mixpanel"===d)this.l("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");else return a=ca(a,b,d),y[d]=a,a.va(),a};e.prototype.fa=function(a,b,d){b=b||{};this.__loaded=l;this.config={};var e={};"api_payload_format"in b||(b.api_host||tb.api_host).match(/\.mixpanel\.com/)&&
112
- (e.api_payload_format="json");this.Bc(c.extend({},tb,e,b,{name:d,token:a,callback_fn:("mixpanel"===d?d:"mixpanel."+d)+"._jsc"}));this._jsc=X;this.Pa=[];this.Qa=[];this.Oa=[];this.ca={disable_all_events:C,identify_called:C};this.C={};if(this.ba=this.c("batch_requests"))if(!c.localStorage.ia(l)||!U)this.ba=C,s.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),c.a(this.bc(),function(a){s.log("Clearing batch queue "+a.na);c.localStorage.remove(a.na)});else if(this.Hd(),
113
- sa&&j.addEventListener){var f=c.bind(function(){this.C.T.pa||this.C.T.flush({Lc:l})},this);j.addEventListener("pagehide",function(a){a.persisted&&f()});j.addEventListener("visibilitychange",function(){"hidden"===v.visibilityState&&f()})}this.persistence=this.cookie=new o(this.config);this.Z={};this.Xc();a=c.Na();this.P()||this.G({distinct_id:"$device:"+a,$device_id:a},"");this.Ya=new E(this);this.Ya.A();this.Yc();this.Gb()};e.prototype.Yc=function(){if(c.sessionStorage.ia())try{var a=this.c("name")+
114
- "_"+this.c("token"),b="mp_tab_id_"+a,d="mp_gen_new_tab_id_"+a;(c.sessionStorage.get(d)||!c.sessionStorage.get(b))&&c.sessionStorage.set(b,"$tab-"+c.Na());c.sessionStorage.set(d,"1");this.ve=c.sessionStorage.get(b);j.addEventListener("beforeunload",function(){c.sessionStorage.remove(d)})}catch(e){this.l("Error initializing tab id",e)}else this.l("Session storage is not supported, cannot keep track of unique tab ID.")};e.prototype.dc=function(){return this.ve||r};e.prototype.Zc=function(){var a=new L("mixpanelRecordingRegistry"),
115
- b=this.dc();return a.A().then(function(){return a.getAll()}).then(function(a){for(var c=0;c<a.length;c++){var e=a[c],h=Date.now();if(!e||h>e.maxExpires||h>e.idleExpires||a[c].tabId===b)return l}return C}).catch(c.bind(function(a){this.l("Error checking recording registry",a)},this))};e.prototype.Gb=Q(function(a){if(j.MutationObserver){var b=c.bind(function(a){var b=c.bind(function(){this.u=this.u||new j.__mp_recorder(this);this.u.resumeRecording(a)},this);c.e(j.__mp_recorder)?Oa(this.c("recorder_src"),
116
- b):b()},this),d=0<this.c("record_sessions_percent")&&100*Math.random()<=this.c("record_sessions_percent");a||d?b(l):this.Zc().then(function(a){a&&b(C)})}else s.m("Browser does not support MutationObserver; skipping session recording")});e.prototype.pe=function(){this.Gb(l)};e.prototype.Hc=function(){this.u&&this.u.stopRecording()};e.prototype.Wd=function(){this.u&&this.u.pauseRecording()};e.prototype.ae=function(){this.u&&this.u.resumeRecording()};e.prototype.cc=function(){var a={},b=this.Kb();b&&
117
- (a.$mp_replay_id=b);return a};e.prototype.Ad=function(){var a=r,b=this.Kb();b&&(a="https://mixpanel.com/projects/replay-redirect?"+c.Db({replay_id:b,distinct_id:this.P(),token:this.c("token")}));return a};e.prototype.Kb=function(){var a=r;this.u&&(a=this.u.replayId);return a||r};e.prototype.Qc=function(){return this.u};e.prototype.va=function(){this.c("loaded")(this);this.Pb();this.people.V(this.persistence.zd());if(this.c("store_google")&&this.c("stop_utm_persistence")){var a=c.info.ga(r);c.a(a,
118
- function(a,c){this.$(c)}.bind(this))}};e.prototype.Pb=function(){this.persistence.Oc(v.referrer);this.c("store_google")&&!this.c("stop_utm_persistence")&&this.q(c.info.ga());this.c("save_referrer")&&this.persistence.Bb(v.referrer)};e.prototype.Tc=function(){c.a(this.Pa,function(a){this.Va.apply(this,a)},this);this.ha()||c.a(this.Qa,function(a){this.k.apply(this,a)},this);delete this.Pa;delete this.Qa};e.prototype.Va=function(a,b){if(this.c("img"))return this.l("You can't use DOM tracking functions with img = true."),
119
- C;if(!Ma)return this.Pa.push([a,b]),C;var c=(new a).A(this);return c.p.apply(c,b)};e.prototype.Mb=function(a,b){if(c.e(a))return r;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};e.prototype.k=function(a,b,d,e){var f=l;if(Na)return this.Qa.push(arguments),f;var h={method:this.c("api_method"),Ab:this.c("api_transport"),Pc:this.c("verbose")},j=r;if(!e&&(c.nb(d)||"string"===typeof d))e=
120
- d,d=r;d=c.extend(h,d||{});if(!U)d.method="GET";var h="POST"===d.method,i=sa&&h&&"sendbeacon"===d.Ab.toLowerCase(),m=d.Pc;b.verbose&&(m=l);this.c("test")&&(b.test=1);m&&(b.verbose=1);this.c("img")&&(b.img=1);if(!U)if(e)b.callback=e;else if(m||this.c("test"))b.callback="(function(){})";b.ip=this.c("ip")?1:0;b._=(new Date).getTime().toString();h&&(j="data="+encodeURIComponent(b.data),delete b.data);var a=a+("?"+c.Db(b)),p=this;if("img"in b)j=v.createElement("img"),j.src=a,v.body.appendChild(j);else if(i){try{f=
121
- sa(a,j)}catch(q){p.l(q),f=C}try{e&&e(f?1:0)}catch(o){p.l(o)}}else if(U)try{var n=new XMLHttpRequest;n.open(d.method,a,l);var s=this.c("xhr_headers");h&&(s["Content-Type"]="application/x-www-form-urlencoded");c.a(s,function(a,b){n.setRequestHeader(b,a)});if(d.Ic&&"undefined"!==typeof n.timeout){n.timeout=d.Ic;var w=(new Date).getTime()}n.withCredentials=l;n.onreadystatechange=function(){if(4===n.readyState)if(200===n.status){if(e)if(m){var a;try{a=c.aa(n.responseText)}catch(b){if(p.l(b),d.Bd)a=n.responseText;
122
- else return}e(a)}else e(Number(n.responseText))}else a=n.timeout&&!n.status&&(new Date).getTime()-w>=n.timeout?"timeout":"Bad HTTP status: "+n.status+" "+n.statusText,p.l(a),e&&(m?e({status:0,Fa:n.status,error:a,xc:(n.responseHeaders||{})["Retry-After"]}):e(0))};n.send(j)}catch(x){p.l(x),f=C}else j=v.createElement("script"),j.type="text/javascript",j.async=l,j.defer=l,j.src=a,s=v.getElementsByTagName("script")[0],s.parentNode.insertBefore(j,s);return f};e.prototype.Ra=function(a){function b(a,b){c.a(a,
123
- function(a){if(c.isArray(a[0])){var d=b;c.a(a,function(a){d=d[a[0]].apply(d,a.slice(1))})}else this[a[0]].apply(this,a.slice(1))},b)}var d,e=[],f=[],h=[];c.a(a,function(a){a&&(d=a[0],c.isArray(d)?h.push(a):"function"===typeof a?a.call(this):c.isArray(a)&&"alias"===d?e.push(a):c.isArray(a)&&-1!==d.indexOf("track")&&"function"===typeof this[d]?h.push(a):f.push(a))},this);b(e,this);b(f,this);b(h,this)};e.prototype.Qb=function(){return!!this.C.T};e.prototype.bc=function(){var a="__mpq_"+this.c("token"),
124
- b=this.c("api_routes");return this.Eb=this.Eb||{T:{type:"events",N:"/"+b.track,na:a+"_ev"},qb:{type:"people",N:"/"+b.engage,na:a+"_pp"},jb:{type:"groups",N:"/"+b.groups,na:a+"_gr"}}};e.prototype.Hd=function(){if(!this.Qb()){var a=c.bind(function(a){return new F(a.na,{J:this.config,S:this.c("error_reporter"),fe:c.bind(function(b,c,e){this.k(this.c("api_host")+a.N,this.Hb(b),c,this.Mb(e,b))},this),wa:c.bind(function(b){return this.Ob("before_send_"+a.type,b)},this),re:c.bind(this.vb,this),v:l})},this),
125
- b=this.bc();this.C={T:a(b.T),qb:a(b.qb),jb:a(b.jb)}}this.c("batch_autostart")&&this.ub()};e.prototype.ub=function(){this.Rc=l;if(this.Qb())this.ba=l,c.a(this.C,function(a){a.start()})};e.prototype.vb=function(){this.ba=C;c.a(this.C,function(a){a.stop();a.clear()})};e.prototype.push=function(a){this.Ra([a])};e.prototype.disable=function(a){"undefined"===typeof a?this.ca.nd=l:this.Oa=this.Oa.concat(a)};e.prototype.Hb=function(a){a=c.sa(a);"base64"===this.c("api_payload_format")&&(a=c.ed(a));return{data:a}};
126
- e.prototype.Wa=function(a,b){var d=c.truncate(a.data,255),e=a.N,f=a.Za,h=a.oe,j=a.he||{},b=b||X,i=l,m=c.bind(function(){j.Gc||(d=this.Ob("before_send_"+a.type,d));return d?(s.log("MIXPANEL REQUEST:"),s.log(d),this.k(e,this.Hb(d),j,this.Mb(b,d))):r},this);this.ba&&!h?f.eb(d).then(function(a){a?b(1,d):m()}):i=m();return i&&d};e.prototype.p=Q(function(a,b,d,e){!e&&"function"===typeof d&&(e=d,d=r);var d=d||{},f=d.transport;if(f)d.Ab=f;f=d.send_immediately;"function"!==typeof e&&(e=X);if(c.e(a))this.l("No event name provided to mixpanel.track");
127
- else if(this.Jb(a))e(0);else{b=c.extend({},b);b.token=this.c("token");var h=this.persistence.Zd(a);c.e(h)||(b.$duration=parseFloat((((new Date).getTime()-h)/1E3).toFixed(3)));this.Pb();h=this.c("track_marketing")?c.info.Sd():{};b=c.extend({},c.info.la({mp_loader:this.c("mp_loader")}),h,this.persistence.la(),this.Z,this.cc(),b);h=this.c("property_blacklist");c.isArray(h)?c.a(h,function(a){delete b[a]}):this.l("Invalid value for property_blacklist config: "+h);return this.Wa({type:"events",data:{event:a,
128
- properties:b},N:this.c("api_host")+"/"+this.c("api_routes").track,Za:this.C.T,oe:f,he:d},e)}});e.prototype.me=Q(function(a,b,d){c.isArray(b)||(b=[b]);var e={};e[a]=b;this.q(e);return this.people.set(a,b,d)});e.prototype.$c=Q(function(a,b,c){var e=this.z(a),f={};e===k?(f[a]=[b],this.q(f)):-1===e.indexOf(b)&&(e.push(b),f[a]=e,this.q(f));return this.people.ra(a,b,c)});e.prototype.$d=Q(function(a,b,c){var e=this.z(a);if(e!==k){var f=e.indexOf(b);-1<f&&(e.splice(f,1),this.q({Ne:e}));0===e.length&&this.$(a)}return this.people.remove(a,
129
- b,c)});e.prototype.De=Q(function(a,b,d,e){var f=c.extend({},b||{});c.a(d,function(a,b){a!==r&&a!==k&&(f[b]=a)});return this.p(a,f,e)});e.prototype.Sc=function(a,b){return a+"_"+JSON.stringify(b)};e.prototype.yd=function(a,b){var c=this.Sc(a,b),e=this.Fb[c];if(e===k||e.Ta!==a||e.Sa!==b)e=new x,e.fa(this,a,b),this.Fb[c]=e;return e};e.prototype.zb=Q(function(a,b){"object"!==typeof a&&(a={});var b=b||{},d=b.event_name||"$mp_web_page_view",e=c.extend(c.info.Td(),c.info.ga(),c.info.Tb()),e=c.extend({},
130
- e,a);return this.p(d,e)});e.prototype.Ce=function(){return this.Va.call(this,S,arguments)};e.prototype.Be=function(){return this.Va.call(this,da,arguments)};e.prototype.we=function(a){c.e(a)?this.l("No event name provided to mixpanel.time_event"):this.Jb(a)||this.persistence.le(a)};var xb={persistent:l};e.prototype.q=function(a,b){var d=ua(b);d.persistent?this.persistence.q(a,d.days):c.extend(this.Z,a)};e.prototype.G=function(a,b,d){d=ua(d);d.persistent?this.persistence.G(a,b,d.days):("undefined"===
131
- typeof b&&(b="None"),c.a(a,function(a,c){if(!this.Z.hasOwnProperty(c)||this.Z[c]===b)this.Z[c]=a},this))};e.prototype.$=function(a,b){b=ua(b);b.persistent?this.persistence.$(a):delete this.Z[a]};e.prototype.Nb=function(a,b){var c={};c[a]=b;this.q(c)};e.prototype.kb=function(a,b,c,e,f,h,j,i){var m=this.P();if(a&&m!==a){if("string"===typeof a&&0===a.indexOf("$device:"))return this.l("distinct_id cannot have $device: prefix"),-1;this.q({$user_id:a})}this.z("$device_id")||this.G({$had_persisted_distinct_id:l,
132
- $device_id:m},"");a!==m&&a!==this.z("__alias")&&(this.$("__alias"),this.q({distinct_id:a}));this.ca.ec=l;this.people.Vc(b,c,e,f,h,j,i);a!==m&&this.p("$identify",{distinct_id:a,$anon_distinct_id:m},{Gc:l})};e.prototype.reset=function(){this.persistence.clear();this.ca.ec=C;var a=c.Na();this.G({distinct_id:"$device:"+a,$device_id:a},"")};e.prototype.P=function(){return this.z("distinct_id")};e.prototype.ad=function(a,b){if(a===this.z("$people_distinct_id"))return this.l("Attempting to create alias for existing People user - aborting."),
133
- -2;var d=this;c.e(b)&&(b=this.P());if(a!==b)return this.Nb("__alias",a),this.p("$create_alias",{alias:a,distinct_id:b},{Gc:l},function(){d.kb(a)});this.l("alias matches current distinct_id - skipping api call.");this.kb(a);return-1};e.prototype.Ud=function(a){this.Nb("mp_name_tag",a)};e.prototype.Bc=function(a){if(c.g(a))c.extend(this.config,a),a.batch_size&&c.a(this.C,function(a){a.wc()}),this.c("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.c("disable_persistence")||
134
- (this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.Nc(this.config),K=K||this.c("debug"),"autocapture"in a&&this.Ya&&this.Ya.A()};e.prototype.c=function(a){return this.config[a]};e.prototype.Ob=function(a){var b=(this.config.hooks[a]||yb).apply(this,R.call(arguments,1));"undefined"===typeof b&&(this.l(a+" hook did not return a value"),b=r);return b};e.prototype.z=function(a){return this.persistence.Ia([a])};e.prototype.toString=function(){var a=this.c("name");
135
- "mixpanel"!==a&&(a="mixpanel."+a);return a};e.prototype.Jb=function(a){return c.ic(B)||this.ca.nd||c.lb(this.Oa,a)};e.prototype.Xc=function(){"localStorage"===this.c("opt_out_tracking_persistence_type")&&c.localStorage.ia()&&(!this.Ea()&&this.Ea({persistence_type:"cookie"})&&this.lc({enable_persistence:C}),!this.ha()&&this.ha({persistence_type:"cookie"})&&this.pb({clear_persistence:C}),this.Sb({persistence_type:"cookie",enable_persistence:C}));if(this.ha())this.ta({clear_persistence:l});else if(!this.Ea()&&
136
- (this.c("opt_out_tracking_by_default")||c.cookie.get("mp_optout")))c.cookie.remove("mp_optout"),this.pb({clear_persistence:this.c("opt_out_persistence_by_default")})};e.prototype.ta=function(a){if(a&&a.clear_persistence)a=l;else if(a&&a.enable_persistence)a=C;else return;!this.c("disable_persistence")&&this.persistence.disabled!==a&&this.persistence.Cc(a);a?(this.vb(),this.Hc()):this.Rc&&this.ub()};e.prototype.ea=function(a,b){b=c.extend({track:c.bind(this.p,this),persistence_type:this.c("opt_out_tracking_persistence_type"),
137
- cookie_prefix:this.c("opt_out_tracking_cookie_prefix"),cookie_expiration:this.c("cookie_expiration"),cross_site_cookie:this.c("cross_site_cookie"),cross_subdomain_cookie:this.c("cross_subdomain_cookie"),cookie_domain:this.c("cookie_domain"),secure_cookie:this.c("secure_cookie"),ignore_dnt:this.c("ignore_dnt")},b);c.localStorage.ia()||(b.persistence_type="cookie");return a(this.c("token"),{p:b.track,ye:b.track_event_name,ze:b.track_properties,qc:b.persistence_type,pc:b.cookie_prefix,Ub:b.cookie_domain,
138
- Vb:b.cookie_expiration,md:b.cross_site_cookie,Wb:b.cross_subdomain_cookie,de:b.secure_cookie,fc:b.ignore_dnt})};e.prototype.lc=function(a){a=c.extend({enable_persistence:l},a);this.ea(Kb,a);this.ta(a)};e.prototype.pb=function(a){a=c.extend({clear_persistence:l,delete_user:l},a);a.delete_user&&this.people&&this.people.Ua()&&(this.people.Zb(),this.people.Rb());this.ea(Lb,a);this.ta(a)};e.prototype.Ea=function(a){return this.ea(Mb,a)};e.prototype.ha=function(a){return this.ea(gb,a)};e.prototype.Sb=function(a){a=
139
- c.extend({enable_persistence:l},a);this.ea(Ob,a);this.ta(a)};e.prototype.l=function(a,b){s.error.apply(s.error,arguments);try{!b&&!(a instanceof Error)&&(a=Error(a)),this.c("error_reporter")(a,b)}catch(c){s.error(c)}};e.prototype.init=e.prototype.A;e.prototype.reset=e.prototype.reset;e.prototype.disable=e.prototype.disable;e.prototype.time_event=e.prototype.we;e.prototype.track=e.prototype.p;e.prototype.track_links=e.prototype.Ce;e.prototype.track_forms=e.prototype.Be;e.prototype.track_pageview=e.prototype.zb;
140
- e.prototype.register=e.prototype.q;e.prototype.register_once=e.prototype.G;e.prototype.unregister=e.prototype.$;e.prototype.identify=e.prototype.kb;e.prototype.alias=e.prototype.ad;e.prototype.name_tag=e.prototype.Ud;e.prototype.set_config=e.prototype.Bc;e.prototype.get_config=e.prototype.c;e.prototype.get_property=e.prototype.z;e.prototype.get_distinct_id=e.prototype.P;e.prototype.toString=e.prototype.toString;e.prototype.opt_out_tracking=e.prototype.pb;e.prototype.opt_in_tracking=e.prototype.lc;
141
- e.prototype.has_opted_out_tracking=e.prototype.ha;e.prototype.has_opted_in_tracking=e.prototype.Ea;e.prototype.clear_opt_in_out_tracking=e.prototype.Sb;e.prototype.get_group=e.prototype.yd;e.prototype.set_group=e.prototype.me;e.prototype.add_group=e.prototype.$c;e.prototype.remove_group=e.prototype.$d;e.prototype.track_with_groups=e.prototype.De;e.prototype.start_batch_senders=e.prototype.ub;e.prototype.stop_batch_senders=e.prototype.vb;e.prototype.start_session_recording=e.prototype.pe;e.prototype.stop_session_recording=
142
- e.prototype.Hc;e.prototype.pause_session_recording=e.prototype.Wd;e.prototype.resume_session_recording=e.prototype.ae;e.prototype.get_session_recording_properties=e.prototype.cc;e.prototype.get_session_replay_url=e.prototype.Ad;e.prototype.get_tab_id=e.prototype.dc;e.prototype.DEFAULT_API_ROUTES=sb;e.prototype.__get_recorder=e.prototype.Qc;o.prototype.properties=o.prototype.la;o.prototype.update_search_keyword=o.prototype.Oc;o.prototype.update_referrer_info=o.prototype.Bb;o.prototype.get_cross_subdomain=
143
- o.prototype.xd;o.prototype.clear=o.prototype.clear;var J={};(function(a){Oa=a;ta=1;y=j.mixpanel;c.e(y)?s.m('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.'):y.__loaded||y.config&&y.persistence?s.m("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors."):1.1>(y.__SV||
144
- 0)?s.m("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(c.a(y._i,function(a){a&&c.isArray(a)&&(J[a[a.length-1]]=ca.apply(this,a))}),vb(),y.init(),c.a(J,function(a){a.va()}),ub())})(function(a,b){var c=document.createElement("script");c.type="text/javascript";c.async=l;c.onload=b;c.src=a;document.head.appendChild(c)})})();
145
- })();
1
+ (function(){function yb(){function a(){a.done||(Oa=a.done=!0,Pa=!1,d.g(O,function(e){e.Tc()}))}function b(){try{B.documentElement.doScroll("left")}catch(e){setTimeout(b,1);return}a()}if(B.addEventListener)"complete"===B.readyState?a():B.addEventListener("DOMContentLoaded",a,!1);else if(B.attachEvent){B.attachEvent("onreadystatechange",a);var c=!1;try{c=null===r.frameElement}catch(e){}B.documentElement.doScroll&&c&&b()}d.uc(r,"load",a,!0)}function zb(){E.init=function(a,b,c){if(c)return E[c]||(E[c]=
2
+ O[c]=ja(a,b,c),E[c].xa()),E[c];c=E;O.mixpanel?c=O.mixpanel:a&&(c=ja(a,b,"mixpanel"),c.xa(),O.mixpanel=c);E=c;1===va&&(r.mixpanel=E);Ab()}}function Ab(){d.g(O,function(a,b){"mixpanel"!==b&&(E[b]=a)});E._=d}function wa(a){a=d.l(a)?a:d.j(a)?{}:{days:a};return d.extend({},Bb,a)}function ja(a,b,c){var e="mixpanel"===c?E:E[c];if(e&&0===va)var f=e;else{if(e&&!d.isArray(e)){y.error("You have already initialized "+c);return}f=new l}f.Eb={};f.ja(a,b,c);f.people=new w;f.people.ja(f);if(!f.h("skip_first_touch_marketing")){a=
3
+ d.info.ka(null);var g={},k=!1;d.g(a,function(h,p){(g["initial_"+p]=h)&&(k=!0)});k&&f.people.$(g)}P=P||f.h("debug");!d.j(e)&&d.isArray(e)&&(f.Sa.call(f.people,e.people),f.Sa(e));return f}function l(){}function Cb(a){return a}function Qa(a){throw Error(a+" not available in this build.");}function Q(a){this.W=null;this.qe=a}function x(a){this.props={};this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;"cookie"!==b&&"localStorage"!==b&&(y.v("Unknown persistence type "+
4
+ b+"; falling back to cookie"),b=a.persistence="cookie");"localStorage"===b&&d.localStorage.ma()?this.storage=d.localStorage:this.storage=d.cookie;this.load();this.Nc(a);this.upgrade();this.save()}function w(){}function C(){}function K(a,b){this.X=b.X;this.qa=new L(a,{X:d.bind(this.m,this),P:b.P,Ec:b.Ec,Fc:b.Fc,C:b.C,fb:b.fb});this.O=b.O;this.ce=b.de;this.ya=b.ya;this.oe=b.pe;this.S=this.O.batch_size;this.Fa=this.O.batch_flush_interval_ms;this.stopped=!this.O.batch_autostart;this.bb=0;this.V={};this.$b=
5
+ b.$b||!1}function Ra(a,b){var c=[];d.g(a,function(e){var f=e.id;f in b?(f=b[f],null!==f&&(e.payload=f,c.push(e))):c.push(e)});return c}function Sa(a,b){var c=[];d.g(a,function(e){e.id&&!b[e.id]&&c.push(e)});return c}function L(a,b){b=b||{};this.aa=a;if(this.C=b.C)this.P=b.P||new da,this.lock=new Ta(a,{storage:b.Ec||r.localStorage,vb:b.Fc});this.m=b.X||d.bind(Ua.error,Ua);this.Ma=b.Ma||null;this.K=[];this.lb=!1;this.pd=b.fb?Db(d.bind(this.Hb,this),b.fb):d.bind(function(c){return this.Hb([c])},this)}
6
+ function da(a){this.storage=a||r.localStorage}function Ta(a,b){b=b||{};this.aa=a;this.storage=b.storage||r.localStorage;this.rc=b.rc||100;this.vb=b.vb||2E3;this.sc=b.sc||D}function ka(){this.nc="submit"}function Y(){this.nc="click"}function N(){}function I(a){this.H=a}function ea(){}function Va(a){var b=Eb,c=a.split(".");c=c[c.length-1];if(4<c.length||"com"===c||"org"===c)b=Fb;return(a=a.match(b))?a[0]:""}function xa(a){var b=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,
7
+ 10);return a?b.substring(0,a):b}function Db(a,b){var c=null,e=[];return function(f){var g=this;e.push(f);c||(c=new D(function(k){setTimeout(function(){var h=a.apply(g,[e]);c=null;e=[];k(h)},b)}));return c}}function la(a,b){return null===ya||b?ya=Wa(a||r.localStorage):ya}function Wa(a){var b=!0;try{var c="__mplss_"+xa(8);a.setItem(c,"xyz");"xyz"!==a.getItem(c)&&(b=!1);a.removeItem(c)}catch(e){b=!1}return b}function za(a){return function(){try{return a.apply(this,arguments)}catch(b){y.v("Implementation error. Please turn on debug and contact support@mixpanel.com."),
8
+ P&&y.v(b)}}}function ma(a){return{log:Aa(y.log,a),error:Aa(y.error,a),v:Aa(y.v,a)}}function Aa(a,b){return function(){arguments[0]="["+b+"] "+arguments[0];return a.apply(y,arguments)}}function na(a,b){Xa.add(a,b);Ba||(Ba=Gb(Xa.od))}function Ya(a){var b=typeof a;if(null!==a&&("object"===b||"function"===b))var c=a.then;return"function"===typeof c?c:!1}function Ca(){for(var a=0;a<this.N.length;a++){var b=void 0,c=void 0,e=1===this.state?this.N[a].re:this.N[a].qd,f=this.N[a];try{!1===e?f.reject(this.oa):
9
+ (c=!0===e?this.oa:e.call(void 0,this.oa),c===f.promise?f.reject(TypeError("Promise-chain cycle")):(b=Ya(c))?b.call(c,f.resolve,f.reject):f.resolve(c))}catch(g){f.reject(g)}}this.N.length=0}function Za(a){var b,c=this;if(!c.ta){c.ta=!0;c.Ea&&(c=c.Ea);try{(b=Ya(a))?na(function(){var e=new $a(c);try{b.call(a,function(){Za.apply(e,arguments)},function(){fa.apply(e,arguments)})}catch(f){fa.call(e,f)}}):(c.oa=a,c.state=1,0<c.N.length&&na(Ca,c))}catch(e){fa.call(new $a(c),e)}}}function fa(a){var b=this;
10
+ b.ta||(b.ta=!0,b.Ea&&(b=b.Ea),b.oa=a,b.state=2,0<b.N.length&&na(Ca,b))}function ab(a,b,c,e){for(var f=0;f<b.length;f++)(function(g){a.resolve(b[g]).then(function(k){c(g,k)},e)})(f)}function $a(a){this.Ea=a;this.ta=!1}function Hb(a){this.promise=a;this.state=0;this.ta=!1;this.N=[];this.oa=void 0}function R(a){if("function"!==typeof a)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var b=new Hb(this);this.then=function(c,e){var f={re:"function"===
11
+ typeof c?c:!0,qd:"function"===typeof e?e:!1};f.promise=new this.constructor(function(g,k){if("function"!==typeof g||"function"!==typeof k)throw TypeError("Not a function");f.resolve=g;f.reject=k});b.N.push(f);0!==b.state&&na(Ca,b);return f.promise};this["catch"]=function(c){return this.then(void 0,c)};try{a.call(void 0,function(c){Za.call(b,c)},function(c){fa.call(b,c)})}catch(c){fa.call(b,c)}}function bb(a,b,c){function e(f){y.error(b+" error: "+f)}return{ma:function(f){(f=c(a,f))||y.error(b+" unsupported");
12
+ return f},error:e,get:function(f){try{return a.getItem(f)}catch(g){e(g)}return null},parse:function(f){try{return d.ea(a.getItem(f))||{}}catch(g){}return null},set:function(f,g){try{a.setItem(f,g)}catch(k){e(k)}},remove:function(f){try{a.removeItem(f)}catch(g){e(g)}}}}function Da(a){var b={};a=cb(a).split(" ");for(var c=0;c<a.length;c++){var e=a[c];e&&(b[e]=!0)}return b}function cb(a){switch(typeof a.className){case "string":return a.className;case "object":return a.className.Fe||a.getAttribute("class")||
13
+ "";default:return""}}function Ib(a){if(a.previousElementSibling)return a.previousElementSibling;do a=a.previousSibling;while(a&&(!a||1!==a.nodeType));return a}function db(a,b,c,e,f,g){var k={$classes:cb(a).split(" "),$tag_name:a.tagName.toLowerCase()},h=a.id;h&&(k.$id=h);Ea(a,b,f,g)&&d.g(Jb.concat(e),function(p){if(a.hasAttribute(p)&&!c[p]){var q=a.getAttribute(p);oa(q)&&(k["$attr-"+p]=q)}});e=b=1;for(f=a;f=Ib(f);)b++,f.tagName===a.tagName&&e++;k.$nth_child=b;k.$nth_of_type=e;return k}function Kb(a,
14
+ b){var c=b.ad,e=b.bd||[],f=b.fd,g=b.gd||[],k=b.kd||!1,h=b.jd||[],p={};d.g(b.ed||[],function(A){p[A]=!0});var q=null,n="undefined"===typeof a.target?a.srcElement:a.target;n&&3===n.nodeType&&(n=n.parentNode);if(Lb(n,a)&&Fa(n,a,c,e)&&!Ga(n,a,f,g)){b=[n];for(var m=n;m.parentNode&&!M(m,"body");)b.push(m.parentNode),m=m.parentNode;var t=[],u,v=!1;d.g(b,function(A){var z=Ea(A,a,c,e);p.href||"a"!==A.tagName.toLowerCase()||(u=A.getAttribute("href"),u=z&&oa(u)&&u);Ga(A,a,f,g)&&(v=!0);t.push(db(A,a,p,h,c,e))},
15
+ this);if(!v&&(b=B.documentElement,q={$event_type:a.type,$host:r.location.host,$pathname:r.location.pathname,$elements:t,$el_attr__href:u,$viewportHeight:Math.max(b.clientHeight,r.innerHeight||0),$viewportWidth:Math.max(b.clientWidth,r.innerWidth||0)},d.g(h,function(A){if(!p[A]&&n.hasAttribute(A)){var z=n.getAttribute(A);oa(z)&&(q["$el_attr__"+A]=z)}}),k&&(b=eb(n,a,c,e))&&b.length&&(q.$el_text=b),"click"===a.type&&(d.g(Mb,function(A){A in a&&(q["$"+A]=a[A])}),n=Nb(a)),k&&(b=eb(n,a,c,e))&&b.length&&
16
+ (q.$el_text=b),n)){if(!Fa(n,a,c,e)||Ga(n,a,f,g))return null;k=db(n,a,p,h,c,e);q.$target=k;q.$el_classes=k.$classes;d.extend(q,d.ba({$el_id:k.$id,$el_tag_name:k.$tag_name}))}}return q}function eb(a,b,c,e){var f="";Ea(a,b,c,e)&&a.childNodes&&a.childNodes.length&&d.g(a.childNodes,function(g){g&&3===g.nodeType&&g.textContent&&(f+=d.trim(g.textContent).split(/(\s+)/).filter(oa).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))});return d.trim(f)}function Nb(a){var b=a.target;a=a.composedPath();
17
+ for(var c=0;c<a.length;c++){var e=a[c];if(M(e,"a")||M(e,"button")||M(e,"input")||M(e,"select")||e.getAttribute&&"button"===e.getAttribute("role")){b=e;break}if(e===b)break}return b}function Fa(a,b,c,e){if(c)try{if(!c(a,b))return!1}catch(f){return H.v("Error while checking element in allowElementCallback",f),!1}if(!e.length)return!0;for(b=0;b<e.length;b++){c=e[b];try{if(a.matches(c))return!0}catch(f){H.v("Error while checking selector: "+c,f)}}return!1}function Ga(a,b,c,e){if(c)try{if(c(a,b))return!0}catch(f){return H.v("Error while checking element in blockElementCallback",
18
+ f),!0}if(e&&e.length)for(b=0;b<e.length;b++){c=e[b];try{if(a.matches(c))return!0}catch(f){H.v("Error while checking selector: "+c,f)}}a=Da(a);for(b=0;b<Ha.length;b++)if(a[Ha[b]])return!0;return!1}function M(a,b){return a&&a.tagName&&a.tagName.toLowerCase()===b.toLowerCase()}function Lb(a,b){if(!a||M(a,"html")||!a||1!==a.nodeType)return!1;switch(a.tagName.toLowerCase()){case "form":return"submit"===b.type;case "input":return-1===["button","submit"].indexOf(a.getAttribute("type"))?"change"===b.type:
19
+ "click"===b.type;case "select":case "textarea":return"change"===b.type;default:return"click"===b.type}}function Ea(a,b,c,e){if(!Fa(a,b,c,e))return!1;for(c=a;c.parentNode&&!M(c,"body");c=c.parentNode)for(e=Da(c),b=0;b<fb.length;b++)if(e[fb[b]])return!1;c=Da(a);for(b=0;b<gb.length;b++)if(c[gb[b]])return!0;if(M(a,"input")||M(a,"select")||M(a,"textarea")||"true"===a.getAttribute("contenteditable"))return!1;b=a.type||"";if("string"===typeof b)switch(b.toLowerCase()){case "hidden":return!1;case "password":return!1}a=
20
+ 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,""))?!1:!0}function oa(a){return null===a||d.j(a)||"string"===typeof a&&(a=d.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))?
21
+ !1:!0}function Ob(a,b){hb(!0,a,b)}function Pb(a,b){hb(!1,a,b)}function Qb(a,b){return"1"===ib(a,b)}function jb(a,b){if(Rb(b))return y.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;(a="0"===ib(a,b))&&y.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data.");return a}function V(a){return Ia(a,
22
+ function(b){return this.h(b)})}function S(a){return Ia(a,function(b){return this.A(b)})}function Z(a){return Ia(a,function(b){return this.A(b)})}function Sb(a,b){b=b||{};Ja(b).remove(Ka(a,b),!!b.Vb,b.Tb)}function Ja(a){a=a||{};return"localStorage"===a.qc?d.localStorage:d.cookie}function Ka(a,b){b=b||{};return(b.pc||"__mp_opt_in_out_")+a}function ib(a,b){return Ja(b).get(Ka(a,b))}function Rb(a){if(a&&a.ec)return!1;a=a&&a.window||r;var b=a.navigator||{},c=!1;d.g([b.doNotTrack,b.msDoNotTrack,a.doNotTrack],
23
+ function(e){d.includes([!0,1,"1","yes"],e)&&(c=!0)});return c}function hb(a,b,c){d.nb(b)&&b.length?(c=c||{},Ja(c).set(Ka(b,c),a?1:0,d.jc(c.Ub)?c.Ub:null,!!c.Vb,!!c.be,!!c.ld,c.Tb),c.track&&a&&c.track(c.we||"$opt_in",c.xe,{send_immediately:!0})):y.error("gdpr."+(a?"optIn":"optOut")+" called with an invalid token")}function Ia(a,b){return function(){var c=!1;try{var e=b.call(this,"token"),f=b.call(this,"ignore_dnt"),g=b.call(this,"opt_out_tracking_persistence_type"),k=b.call(this,"opt_out_tracking_cookie_prefix"),
24
+ h=b.call(this,"window");e&&(c=jb(e,{ec:f,qc:g,pc:k,window:h}))}catch(p){y.error("Unexpected error when checking tracking opt-out status: "+p)}if(!c)return a.apply(this,arguments);c=arguments[arguments.length-1];"function"===typeof c&&c(0)}}var P=!1;if("undefined"===typeof window){var kb={hostname:""};var r={crypto:{Ie:function(){throw Error("unsupported");}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:kb,referrer:""},screen:{width:0,height:0},location:kb,
25
+ addEventListener:function(){},removeEventListener:function(){}}}else r=window;var lb=r.setImmediate,Ba,mb=Object.prototype.toString,Gb="undefined"!==typeof lb?function(a){return lb(a)}:setTimeout;try{Object.defineProperty({},"x",{});var W=function(a,b,c,e){return Object.defineProperty(a,b,{value:c,writable:!0,configurable:!1!==e})}}catch(a){W=function(b,c,e){b[c]=e;return b}}var Xa=function(){function a(f,g){this.sd=f;this.self=g;this.next=void 0}var b,c,e;return{add:function(f,g){e=new a(f,g);c?
26
+ c.next=e:b=e;c=e;e=void 0},od:function(){var f=b;for(b=c=Ba=void 0;f;)f.sd.call(f.self),f=f.next}}}();var nb=W({},"constructor",R,!1);R.prototype=nb;W(nb,"__NPO__",0,!1);W(R,"resolve",function(a){return a&&"object"===typeof a&&1===a.__NPO__?a:new this(function(b,c){if("function"!==typeof b||"function"!==typeof c)throw TypeError("Not a function");b(a)})});W(R,"reject",function(a){return new this(function(b,c){if("function"!==typeof b||"function"!==typeof c)throw TypeError("Not a function");c(a)})});
27
+ W(R,"all",function(a){var b=this;return"[object Array]"!==mb.call(a)?b.reject(TypeError("Not an array")):0===a.length?b.resolve([]):new b(function(c,e){if("function"!==typeof c||"function"!==typeof e)throw TypeError("Not a function");var f=a.length,g=Array(f),k=0;ab(b,a,function(h,p){g[h]=p;++k===f&&c(g)},e)})});W(R,"race",function(a){var b=this;return"[object Array]"!==mb.call(a)?b.reject(TypeError("Not an array")):new b(function(c,e){if("function"!==typeof c||"function"!==typeof e)throw TypeError("Not a function");
28
+ ab(b,a,function(f,g){c(g)},e)})});var D="undefined"!==typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:R;var pa=Array.prototype,ob=Object.prototype,X=pa.slice,ha=ob.toString,qa=ob.hasOwnProperty,F=r.console,T=r.navigator,B=r.document,ra=r.opera,pb=r.screen,G=T.userAgent,La=Function.prototype.bind,qb=pa.forEach,rb=pa.indexOf,sb=pa.map,Tb=Array.isArray,Ma={},d={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},y={log:function(){if(P&&!d.j(F)&&F)try{F.log.apply(F,
29
+ arguments)}catch(a){d.g(arguments,function(b){F.log(b)})}},warn:function(){if(P&&!d.j(F)&&F){var a=["Mixpanel warning:"].concat(d.ca(arguments));try{F.warn.apply(F,a)}catch(b){d.g(a,function(c){F.warn(c)})}}},error:function(){if(P&&!d.j(F)&&F){var a=["Mixpanel error:"].concat(d.ca(arguments));try{F.error.apply(F,a)}catch(b){d.g(a,function(c){F.error(c)})}}},v:function(){if(!d.j(F)&&F){var a=["Mixpanel error:"].concat(d.ca(arguments));try{F.error.apply(F,a)}catch(b){d.g(a,function(c){F.error(c)})}}}};
30
+ d.bind=function(a,b){var c;if(La&&a.bind===La)return La.apply(a,X.call(arguments,1));if(!d.mb(a))throw new TypeError;var e=X.call(arguments,2);return c=function(){if(!(this instanceof c))return a.apply(b,e.concat(X.call(arguments)));var f={};f.prototype=a.prototype;var g=new f;f.prototype=null;f=a.apply(g,e.concat(X.call(arguments)));return Object(f)===f?f:g}};d.g=function(a,b,c){if(null!==a&&void 0!==a)if(qb&&a.forEach===qb)a.forEach(b,c);else if(a.length===+a.length)for(var e=0,f=a.length;e<f&&
31
+ !(e in a&&b.call(c,a[e],e,a)===Ma);e++);else for(e in a)if(qa.call(a,e)&&b.call(c,a[e],e,a)===Ma)break};d.extend=function(a){d.g(X.call(arguments,1),function(b){for(var c in b)void 0!==b[c]&&(a[c]=b[c])});return a};d.isArray=Tb||function(a){return"[object Array]"===ha.call(a)};d.mb=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return!1}};d.Gd=function(a){return!(!a||!qa.call(a,"callee"))};d.ca=function(a){return a?a.ca?a.ca():d.isArray(a)||d.Gd(a)?X.call(a):d.values(a):[]};d.map=function(a,
32
+ b,c){if(sb&&a.map===sb)return a.map(b,c);var e=[];d.g(a,function(f){e.push(b.call(c,f))});return e};d.keys=function(a){var b=[];if(null===a)return b;d.g(a,function(c,e){b[b.length]=e});return b};d.values=function(a){var b=[];if(null===a)return b;d.g(a,function(c){b[b.length]=c});return b};d.kb=function(a,b){var c=!1;if(null===a)return c;if(rb&&a.indexOf===rb)return-1!=a.indexOf(b);d.g(a,function(e){if(c||(c=e===b))return Ma});return c};d.includes=function(a,b){return-1!==a.indexOf(b)};d.hc=function(a,
33
+ b){a.prototype=new b;a.prototype.constructor=a;a.se=b.prototype};d.l=function(a){return a===Object(a)&&!d.isArray(a)};d.Ia=function(a){if(d.l(a)){for(var b in a)if(qa.call(a,b))return!1;return!0}return!1};d.j=function(a){return void 0===a};d.nb=function(a){return"[object String]"==ha.call(a)};d.Hd=function(a){return"[object Date]"==ha.call(a)};d.jc=function(a){return"[object Number]"==ha.call(a)};d.Id=function(a){return!(!a||1!==a.nodeType)};d.eb=function(a){d.g(a,function(b,c){d.Hd(b)?a[c]=d.td(b):
34
+ d.l(b)&&(a[c]=d.eb(b))});return a};d.timestamp=function(){Date.now=Date.now||function(){return+new Date};return Date.now()};d.td=function(a){function b(c){return 10>c?"0"+c:c}return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+"T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())};d.ba=function(a){var b={};d.g(a,function(c,e){d.nb(c)&&0<c.length&&(b[e]=c)});return b};d.truncate=function(a,b){if("string"===typeof a)var c=a.slice(0,b);else d.isArray(a)?(c=[],
35
+ d.g(a,function(e){c.push(d.truncate(e,b))})):d.l(a)?(c={},d.g(a,function(e,f){c[f]=d.truncate(e,b)})):c=a;return c};d.Cb=function(){return function(a){function b(e,f){var g="";var k="";var h=g;(f=f[e])&&"object"===typeof f&&"function"===typeof f.toJSON&&(f=f.toJSON(e));switch(typeof f){case "string":return c(f);case "number":return isFinite(f)?String(f):"null";case "boolean":case "null":return String(f);case "object":if(!f)return"null";g+=" ";e=[];if("[object Array]"===ha.apply(f)){var p=f.length;
36
+ for(k=0;k<p;k+=1)e[k]=b(k,f)||"null";return p=0===e.length?"[]":g?"[\n"+g+e.join(",\n"+g)+"\n"+h+"]":"["+e.join(",")+"]"}for(k in f)qa.call(f,k)&&(p=b(k,f))&&e.push(c(k)+(g?": ":":")+p);return p=0===e.length?"{}":g?"{"+e.join(",")+h+"}":"{"+e.join(",")+"}"}}function c(e){var f=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,g={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};f.lastIndex=0;return f.test(e)?
37
+ '"'+e.replace(f,function(k){var h=g[k];return"string"===typeof h?h:"\\u"+("0000"+k.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}return b("",{"":a})}}();d.ea=function(){function a(){switch(h){case "t":return f("t"),f("r"),f("u"),f("e"),!0;case "f":return f("f"),f("a"),f("l"),f("s"),f("e"),!1;case "n":return f("n"),f("u"),f("l"),f("l"),null}g('Unexpected "'+h+'"')}function b(){for(;h&&" ">=h;)f()}function c(){var m,t="",u;if('"'===h)for(;f();){if('"'===h)return f(),t;if("\\"===h)if(f(),"u"===
38
+ h){for(m=u=0;4>m;m+=1){var v=parseInt(f(),16);if(!isFinite(v))break;u=16*u+v}t+=String.fromCharCode(u)}else if("string"===typeof p[h])t+=p[h];else break;else t+=h}g("Bad string")}function e(){var m="";"-"===h&&(m="-",f("-"));for(;"0"<=h&&"9">=h;)m+=h,f();if("."===h)for(m+=".";f()&&"0"<=h&&"9">=h;)m+=h;if("e"===h||"E"===h){m+=h;f();if("-"===h||"+"===h)m+=h,f();for(;"0"<=h&&"9">=h;)m+=h,f()}m=+m;if(isFinite(m))return m;g("Bad number")}function f(m){m&&m!==h&&g("Expected '"+m+"' instead of '"+h+"'");
39
+ h=q.charAt(k);k+=1;return h}function g(m){m=new SyntaxError(m);m.Ee=k;m.text=q;throw m;}var k,h,p={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},q;var n=function(){b();switch(h){case "{":a:{var m={};if("{"===h){f("{");b();if("}"===h){f("}");var t=m;break a}for(;h;){t=c();b();f(":");Object.hasOwnProperty.call(m,t)&&g('Duplicate key "'+t+'"');m[t]=n();b();if("}"===h){f("}");t=m;break a}f(",");b()}}g("Bad object");t=void 0}return t;case "[":a:{t=[];if("["===h){f("[");b();if("]"===h){f("]");
40
+ break a}for(;h;){t.push(n());b();if("]"===h){f("]");break a}f(",");b()}}g("Bad array");t=void 0}return t;case '"':return c();case "-":return e();default:return"0"<=h&&"9">=h?e():a()}};return function(m){q=m;k=0;h=" ";m=n();b();h&&g("Syntax error");return m}}();d.dd=function(a){var b=0,c=0,e=[];if(!a)return a;a=d.De(a);do{var f=a.charCodeAt(b++);var g=a.charCodeAt(b++);var k=a.charCodeAt(b++);var h=f<<16|g<<8|k;f=h>>18&63;g=h>>12&63;k=h>>6&63;h&=63;e[c++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+
41
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(k)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)}while(b<a.length);b=e.join("");switch(a.length%3){case 1:b=b.slice(0,-2)+"==";break;case 2:b=b.slice(0,-1)+"="}return b};d.De=function(a){a=(a+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var b="",c,e;var f=c=0;var g=a.length;for(e=0;e<g;e++){var k=a.charCodeAt(e),h=
42
+ null;128>k?c++:h=127<k&&2048>k?String.fromCharCode(k>>6|192,k&63|128):String.fromCharCode(k>>12|224,k>>6&63|128,k&63|128);null!==h&&(c>f&&(b+=a.substring(f,c)),b+=h,f=c=e+1)}c>f&&(b+=a.substring(f,a.length));return b};d.Oa=function(){try{return r.crypto.randomUUID()}catch(c){for(var a=Array(36),b=0;36>b;b++)a[b]=Math.floor(16*Math.random());a[14]=4;a[19]=a[19]&=-5;a[19]=a[19]|=8;a[8]=a[13]=a[18]=a[23]="-";return d.map(a,function(e){return e.toString(16)}).join("")}};var tb="ahrefsbot;ahrefssiteaudit;amazonbot;baiduspider;bingbot;bingpreview;chrome-lighthouse;facebookexternal;petalbot;pinterest;screaming frog;yahoo! slurp;yandex;adsbot-google;apis-google;duplexweb-google;feedfetcher-google;google favicon;google web preview;google-read-aloud;googlebot;googleweblight;mediapartners-google;storebot-google".split(";");
43
+ d.ic=function(a){var b;a=a.toLowerCase();for(b=0;b<tb.length;b++)if(-1!==a.indexOf(tb[b]))return!0;return!1};d.Bb=function(a){var b,c,e,f=[];d.j(b)&&(b="&");d.g(a,function(g,k){c=encodeURIComponent(g.toString());e=encodeURIComponent(k);f[f.length]=e+"="+c});return f.join(b)};d.ib=function(a,b){b=b.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");a=(new RegExp("[\\?&]"+b+"=([^&#]*)")).exec(a);if(null===a||a&&"string"!==typeof a[1]&&a[1].length)return"";a=a[1];try{a=decodeURIComponent(a)}catch(c){y.error("Skipping decoding for malformed query param: "+
44
+ a)}return a.replace(/\+/g," ")};d.cookie={get:function(a){a+="=";for(var b=B.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 null},parse:function(a){try{var b=d.ea(d.cookie.get(a))||{}}catch(c){}return b},Je:function(a,b,c,e,f,g,k){var h="",p="",q="";k?h="; domain="+k:e&&(h=(h=Va(B.location.hostname))?"; domain=."+h:"");c&&(p=new Date,p.setTime(p.getTime()+1E3*c),p=
45
+ "; expires="+p.toGMTString());g&&(f=!0,q="; SameSite=None");f&&(q+="; secure");B.cookie=a+"="+encodeURIComponent(b)+p+"; path=/"+h+q},set:function(a,b,c,e,f,g,k){var h="",p="",q="";k?h="; domain="+k:e&&(h=(h=Va(B.location.hostname))?"; domain=."+h:"");c&&(p=new Date,p.setTime(p.getTime()+864E5*c),p="; expires="+p.toGMTString());g&&(f=!0,q="; SameSite=None");f&&(q+="; secure");a=a+"="+encodeURIComponent(b)+p+"; path=/"+h+q;return B.cookie=a},remove:function(a,b,c){d.cookie.set(a,"",-1,b,!1,!1,c)}};
46
+ var ya=null,Na=null;d.localStorage=bb(r.localStorage,"localStorage",la);d.sessionStorage=bb(r.sessionStorage,"sessionStorage",function(a,b){return null===Na||b?Na=Wa(a||r.sessionStorage):Na});d.uc=function(){function a(c,e,f){return function(g){if(g=g||b(r.event)){var k=!0,h;d.mb(f)&&(h=f(g));g=e.call(c,g);if(!1===h||!1===g)k=!1;return k}}}function b(c){c&&(c.preventDefault=b.preventDefault,c.stopPropagation=b.stopPropagation);return c}b.preventDefault=function(){this.returnValue=!1};b.stopPropagation=
47
+ function(){this.cancelBubble=!0};return function(c,e,f,g,k){c?c.addEventListener&&!g?c.addEventListener(e,f,!!k):(e="on"+e,c[e]=a(c,f,c[e])):y.error("No valid element provided to register_event")}}();var Ub=/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/;d.nd=function(){function a(f){return f.all?f.all:f.getElementsByTagName("*")}function b(f,g){g=" "+g+" ";return 0<=(" "+f.className+" ").replace(e," ").indexOf(g)}function c(f){if(!B.getElementsByTagName)return[];f=f.split(" ");var g,k,h,p,q=[B];
48
+ for(k=0;k<f.length;k++){var n=f[k].replace(/^\s+/,"").replace(/\s+$/,"");if(-1<n.indexOf("#")){var m=n.split("#");n=m[0];q=B.getElementById(m[1]);if(!q||n&&q.nodeName.toLowerCase()!=n)return[];q=[q]}else if(-1<n.indexOf(".")){m=n.split(".");n=m[0];var t=m[1];n||(n="*");m=[];for(h=g=0;h<q.length;h++){var u="*"==n?a(q[h]):q[h].getElementsByTagName(n);for(p=0;p<u.length;p++)m[g++]=u[p]}q=[];for(h=n=0;h<m.length;h++)m[h].className&&d.nb(m[h].className)&&b(m[h],t)&&(q[n++]=m[h])}else if(m=n.match(Ub)){n=
49
+ m[1];var v=m[2];t=m[3];var A=m[4];n||(n="*");m=[];for(h=g=0;h<q.length;h++)for(u="*"==n?a(q[h]):q[h].getElementsByTagName(n),p=0;p<u.length;p++)m[g++]=u[p];q=[];n=0;switch(t){case "=":t=function(z){return z.getAttribute(v)==A};break;case "~":t=function(z){return z.getAttribute(v).match(new RegExp("\\b"+A+"\\b"))};break;case "|":t=function(z){return z.getAttribute(v).match(new RegExp("^"+A+"-?"))};break;case "^":t=function(z){return 0===z.getAttribute(v).indexOf(A)};break;case "$":t=function(z){return z.getAttribute(v).lastIndexOf(A)==
50
+ z.getAttribute(v).length-A.length};break;case "*":t=function(z){return-1<z.getAttribute(v).indexOf(A)};break;default:t=function(z){return z.getAttribute(v)}}q=[];for(h=n=0;h<m.length;h++)t(m[h])&&(q[n++]=m[h])}else{m=[];for(h=g=0;h<q.length;h++)for(u=q[h].getElementsByTagName(n),p=0;p<u.length;p++)m[g++]=u[p];q=m}}return q}var e=/[\t\r\n]/g;return function(f){return d.Id(f)?[f]:d.l(f)&&!d.j(f.length)?f:c.call(this,f)}}();var Vb="utm_source utm_medium utm_campaign utm_content utm_term utm_id utm_source_platform utm_campaign_id utm_creative_format utm_marketing_tactic".split(" "),
51
+ Wb="dclid fbclid gclid ko_click_id li_fat_id msclkid sccid ttclid twclid wbraid".split(" ");d.info={ka:function(a){var b="",c={};d.g(Vb,function(e){b=d.ib(B.URL,e);b.length?c[e]=b:void 0!==a&&(c[e]=a)});return c},Sb:function(){var a="",b={};d.g(Wb,function(c){a=d.ib(B.URL,c);a.length&&(b[c]=a)});return b},Qd:function(){return d.extend(d.info.ka(),d.info.Sb())},$d:function(a){return 0===a.search("https?://(.*)google.([^/?]*)")?"google":0===a.search("https?://(.*)bing.com")?"bing":0===a.search("https?://(.*)yahoo.com")?
52
+ "yahoo":0===a.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},ae:function(a){var b=d.info.$d(a),c={};null!==b&&(c.$search_engine=b,a=d.ib(a,"yahoo"!=b?"q":"p"),a.length&&(c.mp_keyword=a));return c},za:function(a,b,c){b=b||"";return c||d.includes(a," OPR/")?d.includes(a,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":d.includes(a,"IEMobile")||d.includes(a,"WPDesktop")?"Internet Explorer Mobile":d.includes(a,"SamsungBrowser/")?"Samsung Internet":d.includes(a,
53
+ "Edge")||d.includes(a,"Edg/")?"Microsoft Edge":d.includes(a,"FBIOS")?"Facebook Mobile":d.includes(a,"Chrome")?"Chrome":d.includes(a,"CriOS")?"Chrome iOS":d.includes(a,"UCWEB")||d.includes(a,"UCBrowser")?"UC Browser":d.includes(a,"FxiOS")?"Firefox iOS":d.includes(b,"Apple")?d.includes(a,"Mobile")?"Mobile Safari":"Safari":d.includes(a,"Android")?"Android Mobile":d.includes(a,"Konqueror")?"Konqueror":d.includes(a,"Firefox")?"Firefox":d.includes(a,"MSIE")||d.includes(a,"Trident/")?"Internet Explorer":
54
+ d.includes(a,"Gecko")?"Mozilla":""},ab:function(a,b,c){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+)?)/,
55
+ "Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[d.info.za(a,b,c)];return void 0===b?null:(a=a.match(b))?parseFloat(a[a.length-2]):null},mc:function(){return/Windows/i.test(G)?/Phone/.test(G)||/WPDesktop/.test(G)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(G)?"iOS":/Android/.test(G)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(G)?"BlackBerry":/Mac/i.test(G)?"Mac OS X":/Linux/.test(G)?
56
+ "Linux":/CrOS/.test(G)?"Chrome OS":""},Zb: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":""},tc:function(a){a=a.split("/");return 3<=a.length?a[2]:""},Ca:function(){return r.location.href},pa:function(a){"object"!==typeof a&&(a={});return d.extend(d.ba({$os:d.info.mc(),$browser:d.info.za(G,T.vendor,ra),$referrer:B.referrer,
57
+ $referring_domain:d.info.tc(B.referrer),$device:d.info.Zb(G)}),{$current_url:d.info.Ca(),$browser_version:d.info.ab(G,T.vendor,ra),$screen_height:pb.height,$screen_width:pb.width,mp_lib:"web",$lib_version:"2.63.0",$insert_id:xa(),time:d.timestamp()/1E3},d.ba(a))},Vd:function(){return d.extend(d.ba({$os:d.info.mc(),$browser:d.info.za(G,T.vendor,ra)}),{$browser_version:d.info.ab(G,T.vendor,ra)})},Rd:function(){return d.ba({current_page_title:B.title,current_domain:r.location.hostname,current_url_path:r.location.pathname,
58
+ current_url_protocol:r.location.protocol,current_url_search:r.location.search})}};var Fb=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Eb=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,aa=null,sa=null;"undefined"!==typeof JSON&&(aa=JSON.stringify,sa=JSON.parse);aa=aa||d.Cb;sa=sa||d.ea;d.info=d.info;d.info.browser=d.info.za;d.info.browserVersion=d.info.ab;d.info.device=d.info.Zb;d.info.properties=d.info.pa;d.isBlockedUA=d.ic;d.isEmptyObject=d.Ia;d.isObject=d.l;d.JSONDecode=d.ea;d.JSONEncode=d.Cb;d.toArray=d.ca;d.NPO=R;var Mb=
59
+ "clientX clientY offsetX offsetY pageX pageY screenX screenY x y".split(" "),gb=["mp-include"],Ha=["mp-no-track"],fb=Ha.concat(["mp-sensitive"]),Jb="aria-label aria-labelledby aria-describedby href name role title type".split(" "),H=ma("autocapture"),ub={allow_selectors:[],allow_url_regexes:[],block_attrs:[],block_element_callback:null,block_selectors:[],block_url_regexes:[],capture_extra_attrs:[],capture_text_content:!1,scroll_capture_all:!1,scroll_depth_percent_checkpoints:[25,50,75,100],click:!0,
60
+ input:!0,pageview:"full-url",scroll:!0,submit:!0},ta={$mp_autocapture:!0};I.prototype.G=function(){try{var a=!!B.createElement("div").matches}catch(b){a=!1}a?(this.Cd(),this.Ad(),this.Bd(),this.Dd(),this.Ed()):H.v("Autocapture unavailable: missing required DOM APIs")};I.prototype.ud=function(){var a=this.H.h("autocapture");return a?d.l(a)?d.extend({},ub,a):ub:{}};I.prototype.o=function(a){return this.ud()[a]};I.prototype.Da=function(){var a,b=d.info.Ca(),c=this.o("allow_url_regexes")||[];if(c.length){var e=
61
+ !1;for(a=0;a<c.length;a++){var f=c[a];try{if(b.match(f)){e=!0;break}}catch(g){return H.v("Error while checking block URL regex: "+f,g),!0}}if(!e)return!0}c=this.o("block_url_regexes")||[];if(!c||!c.length)return!1;for(a=0;a<c.length;a++)try{if(b.match(c[a]))return!0}catch(g){return H.v("Error while checking block URL regex: "+c[a],g),!0}return!1};I.prototype.oc=function(){return this.H.h("autocapture")?this.o("pageview"):this.H.h("track_pageview")};I.prototype.wb=function(a,b){!this.Da()&&(a=Kb(a,
62
+ {ad:this.o("allow_element_callback"),bd:this.o("allow_selectors"),ed:this.o("block_attrs"),fd:this.o("block_element_callback"),gd:this.o("block_selectors"),jd:this.o("capture_extra_attrs"),kd:this.o("capture_text_content")}))&&(d.extend(a,ta),this.H.track(b,a))};I.prototype.Ad=function(){r.removeEventListener("click",this.Kd);this.o("click")&&(H.log("Initializing click tracking"),this.Kd=r.addEventListener("click",function(a){this.o("click")&&this.wb(a,"$mp_click")}.bind(this)))};I.prototype.Bd=function(){r.removeEventListener("change",
63
+ this.Jd);this.o("input")&&(H.log("Initializing input tracking"),this.Jd=r.addEventListener("change",function(a){this.o("input")&&this.wb(a,"$mp_input_change")}.bind(this)))};I.prototype.Cd=function(){r.removeEventListener("popstate",this.Nd);r.removeEventListener("hashchange",this.Ld);r.removeEventListener("mp_locationchange",this.Md);if(this.oc()){H.log("Initializing pageview tracking");var a="",b=!1;this.Da()||(b=this.H.xb(ta));b&&(a=d.info.Ca());this.Nd=r.addEventListener("popstate",function(){r.dispatchEvent(new Event("mp_locationchange"))});
64
+ this.Ld=r.addEventListener("hashchange",function(){r.dispatchEvent(new Event("mp_locationchange"))});var c=r.history.pushState;"function"===typeof c&&(r.history.pushState=function(f,g,k){c.call(r.history,f,g,k);r.dispatchEvent(new Event("mp_locationchange"))});var e=r.history.replaceState;"function"===typeof e&&(r.history.replaceState=function(f,g,k){e.call(r.history,f,g,k);r.dispatchEvent(new Event("mp_locationchange"))});this.Md=r.addEventListener("mp_locationchange",za(function(){if(!this.Da()){var f=
65
+ d.info.Ca(),g=!1,k=f.split("#")[0].split("?")[0]!==a.split("#")[0].split("?")[0],h=this.oc();"full-url"===h?g=f!==a:"url-with-path-and-query-string"===h?g=f.split("#")[0]!==a.split("#")[0]:"url-with-path"===h&&(g=k);g&&(this.H.xb(ta)&&(a=f),k&&(this.Ja=0,H.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)))}};I.prototype.Dd=function(){r.removeEventListener("scrollend",this.Od);this.o("scroll")&&(H.log("Initializing scroll tracking"),this.Ja=0,this.Od=r.addEventListener("scrollend",
66
+ za(function(){if(this.o("scroll")&&!this.Da()){var a=this.o("scroll_capture_all"),b=(this.o("scroll_depth_percent_checkpoints")||[]).slice().sort(function(h,p){return h-p}),c=r.scrollY,e=d.extend({$scroll_top:c},ta);try{var f=B.body.scrollHeight,g=Math.round(c/(f-r.innerHeight)*100);e.$scroll_height=f;e.$scroll_percentage=g;if(g>this.Ja)for(c=0;c<b.length;c++){var k=b[c];g>=k&&this.Ja<k&&(this.Ja=e.$scroll_checkpoint=k,a=!0)}}catch(h){H.v("Error while calculating scroll percentage",h)}a&&this.H.track("$mp_scroll",
67
+ e)}}.bind(this))))};I.prototype.Ed=function(){r.removeEventListener("submit",this.Pd);this.o("submit")&&(H.log("Initializing submit tracking"),this.Pd=r.addEventListener("submit",function(a){this.o("submit")&&this.wb(a,"$mp_submit")}.bind(this)))};(function(a){a=a.prototype;for(var b in a)"function"===typeof a[b]&&(a[b]=za(a[b]))})(I);N.prototype.Ba=function(){};N.prototype.gb=function(){};N.prototype.Ya=function(){};N.prototype.G=function(a){this.H=a;return this};N.prototype.track=function(a,b,c,
68
+ e){var f=this,g=d.nd(a);if(0===g.length)y.error("The DOM query ("+a+") returned 0 elements");else return d.g(g,function(k){d.uc(k,this.nc,function(h){var p={},q=f.Ba(c,this),n=f.H.h("track_links_timeout");f.gb(h,this,p);window.setTimeout(f.Jc(e,q,p,!0),n);f.H.track(b,q,f.Jc(e,q,p))})},this),!0};N.prototype.Jc=function(a,b,c,e){e=e||!1;var f=this;return function(){c.hd||(c.hd=!0,a&&!1===a(e,b)||f.Ya(c))}};N.prototype.Ba=function(a,b){return"function"===typeof a?a(b):d.extend({},a)};d.hc(Y,N);Y.prototype.Ba=
69
+ function(a,b){var c=Y.se.Ba.apply(this,arguments);b.href&&(c.url=b.href);return c};Y.prototype.gb=function(a,b,c){c.kc=2===a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;c.href=b.href;c.kc||a.preventDefault()};Y.prototype.Ya=function(a){a.kc||setTimeout(function(){window.location=a.href},0)};d.hc(ka,N);ka.prototype.gb=function(a,b,c){c.element=b;a.preventDefault()};ka.prototype.Ya=function(a){setTimeout(function(){a.element.submit()},0)};var Xb=ma("lock");Ta.prototype.Ab=function(a,b){return new this.sc(d.bind(function(c,
70
+ e){function f(){function J(){v.removeItem(ba);v.getItem(z)===q&&v.removeItem(z);v.getItem(A)===q&&v.removeItem(A)}v.setItem(ba,"1");a().then(function(U){J();c(U)}).catch(function(U){J();e(U)})}function g(){v.setItem(A,q);h(k,function(){v.getItem(A)===q?f():p(function(){v.getItem(z)!==q?g():h(function(){return!v.getItem(ba)},f)})})}function k(){var J=v.getItem(z);if(J&&J!==q)return!1;v.setItem(z,q);if(v.getItem(z)===q)return!0;la(v,!0)||e(Error("localStorage support dropped while acquiring lock"));
71
+ return!1}function h(J,U){J()?U():p(function(){h(J,U)})}function p(J){(new Date).getTime()-n>u?(Xb.error("Timeout waiting for mutex on "+m+"; clearing lock. ["+q+"]"),v.removeItem(ba),v.removeItem(z),g()):setTimeout(function(){try{J()}catch(U){e(U)}},t*(Math.random()+.1))}var q=b||(new Date).getTime()+"|"+Math.random(),n=(new Date).getTime(),m=this.aa,t=this.rc,u=this.vb,v=this.storage,A=m+":X",z=m+":Y",ba=m+":Z";try{if(la(v,!0))g();else throw Error("localStorage support check failed");}catch(J){e(J)}},
72
+ this))};da.prototype.G=function(){return D.resolve()};da.prototype.setItem=function(a,b){return new D(d.bind(function(c,e){try{this.storage.setItem(a,aa(b))}catch(f){e(f)}c()},this))};da.prototype.getItem=function(a){return new D(d.bind(function(b,c){try{var e=sa(this.storage.getItem(a))}catch(f){c(f)}b(e)},this))};da.prototype.removeItem=function(a){return new D(d.bind(function(b,c){try{this.storage.removeItem(a)}catch(e){c(e)}b()},this))};var Ua=ma("batch");L.prototype.T=function(){return this.lb?
73
+ D.resolve():this.P.G().then(d.bind(function(){this.lb=!0},this)).catch(d.bind(function(a){this.m("Error initializing queue persistence. Disabling persistence",a);this.lb=!0;this.C=!1},this))};L.prototype.enqueue=function(a,b){a={id:xa(),flushAfter:(new Date).getTime()+2*b,payload:a};if(this.C)return this.pd(a);this.K.push(a);return D.resolve(!0)};L.prototype.Hb=function(a){var b=d.bind(function(){return this.T().then(d.bind(function(){return this.sa()},this)).then(d.bind(function(c){return this.rb(c.concat(a))},
74
+ this)).then(d.bind(function(c){c&&(this.K=this.K.concat(a));return c},this)).catch(d.bind(function(c){this.m("Error enqueueing items",c,a);return!1},this))},this);return this.lock.Ab(b,this.Ma).catch(d.bind(function(c){this.m("Error acquiring storage lock",c);return!1},this))};L.prototype.rd=function(a){var b=this.K.slice(0,a);return this.C&&b.length<a?this.T().then(d.bind(function(){return this.sa()},this)).then(d.bind(function(c){if(c.length){var e={};d.g(b,function(k){e[k.id]=!0});for(var f=0;f<
75
+ c.length;f++){var g=c[f];if((new Date).getTime()>g.flushAfter&&!e[g.id]&&(g.Td=!0,b.push(g),b.length>=a))break}}return b},this)):D.resolve(b)};L.prototype.Wd=function(a){var b={};d.g(a,function(e){b[e]=!0});this.K=Sa(this.K,b);if(this.C){var c=d.bind(function(){return this.T().then(d.bind(function(){return this.sa()},this)).then(d.bind(function(e){e=Sa(e,b);return this.rb(e)},this)).then(d.bind(function(){return this.sa()},this)).then(d.bind(function(e){for(var f=0;f<e.length;f++){var g=e[f];if(g.id&&
76
+ b[g.id])throw Error("Item not removed from storage");}return!0},this)).catch(d.bind(function(e){this.m("Error removing items",e,a);return!1},this))},this);return this.lock.Ab(c,this.Ma).catch(d.bind(function(e){this.m("Error acquiring storage lock",e);return la(this.lock.storage,!0)?!1:c().then(d.bind(function(f){return f?f:this.P.removeItem(this.aa).then(function(){return f})},this)).catch(d.bind(function(f){this.m("Error clearing queue",f);return!1},this))},this))}return D.resolve(!0)};L.prototype.Ce=
77
+ function(a){this.K=Ra(this.K,a);return this.C?this.lock.Ab(d.bind(function(){return this.T().then(d.bind(function(){return this.sa()},this)).then(d.bind(function(b){b=Ra(b,a);return this.rb(b)},this)).catch(d.bind(function(b){this.m("Error updating items",a,b);return!1},this))},this),this.Ma).catch(d.bind(function(b){this.m("Error acquiring storage lock",b);return!1},this)):D.resolve(!0)};L.prototype.sa=function(){return this.T().then(d.bind(function(){return this.P.getItem(this.aa)},this)).then(d.bind(function(a){a&&
78
+ !d.isArray(a)&&(this.m("Invalid storage entry:",a),a=null);return a||[]},this)).catch(d.bind(function(a){this.m("Error retrieving queue",a);return[]},this))};L.prototype.rb=function(a){return this.T().then(d.bind(function(){return this.P.setItem(this.aa,a)},this)).then(function(){return!0}).catch(d.bind(function(b){this.m("Error saving queue",b);return!1},this))};L.prototype.clear=function(){this.K=[];return this.C?this.T().then(d.bind(function(){return this.P.removeItem(this.aa)},this)):D.resolve()};
79
+ var ia=ma("batch");K.prototype.enqueue=function(a){return this.qa.enqueue(a,this.Fa)};K.prototype.start=function(){this.stopped=!1;this.bb=0;return this.flush()};K.prototype.stop=function(){this.stopped=!0;this.ub&&(clearTimeout(this.ub),this.ub=null)};K.prototype.clear=function(){return this.qa.clear()};K.prototype.wc=function(){this.S=this.O.batch_size};K.prototype.Z=function(){this.yc(this.O.batch_flush_interval_ms)};K.prototype.yc=function(a){this.Fa=a;this.stopped||(this.ub=setTimeout(d.bind(function(){this.stopped||
80
+ this.flush()},this),this.Fa))};K.prototype.ee=function(a,b){return new D(d.bind(function(c){this.ce(a,b,c)},this))};K.prototype.flush=function(a){if(this.qb)return ia.log("Flush: Request already in progress"),D.resolve();this.qb=!0;a=a||{};var b=this.O.batch_request_timeout_ms,c=(new Date).getTime(),e=this.S;return this.qa.rd(e).then(d.bind(function(f){var g=f.length===e,k=[],h={};d.g(f,function(m){var t=m.payload;this.ya&&!m.Td&&(t=this.ya(t));if(t){t.event&&t.properties&&(t.properties=d.extend({},
81
+ t.properties,{mp_sent_by_lib_version:"2.63.0"}));var u=!0,v=m.id;v?5<(this.V[v]||0)&&(this.m("[dupe] item ID sent too many times, not sending",{item:m,S:f.length,ve:this.V[v]}),u=!1):this.m("[dupe] found item with no ID",{item:m});u&&k.push(t)}h[m.id]=t},this);if(1>k.length)return this.qb=!1,this.Z(),D.resolve();var p=d.bind(function(){return this.qa.Wd(d.map(f,function(m){return m.id})).then(d.bind(function(m){d.g(f,d.bind(function(t){var u=t.id;u?(this.V[u]=this.V[u]||0,this.V[u]++,5<this.V[u]&&
82
+ this.m("[dupe] item ID sent too many times",{item:t,S:f.length,ve:this.V[u]})):this.m("[dupe] found item with no ID while removing",{item:t})},this));if(m)return this.bb=0,this.$b&&!g?(this.Z(),D.resolve()):this.flush();5<++this.bb?(this.m("Too many queue failures; disabling batching system."),this.oe()):this.Z();return D.resolve()},this))},this),q=d.bind(function(m){this.qb=!1;try{if(a.Lc)return this.qa.Ce(h);if(d.l(m)&&"timeout"===m.error&&(new Date).getTime()-c>=b)return this.m("Network timeout; retrying"),
83
+ this.flush();var t;if(t=d.l(m)){var u;if(!(u=500<=m.Ha||429===m.Ha)){var v;if(v=0>=m.Ha){var A=r.navigator.onLine;v=!(d.j(A)||A)}u=v}t=u||"timeout"===m.error}if(t){var z=2*this.Fa;m.xc&&(z=1E3*parseInt(m.xc,10)||z);z=Math.min(6E5,z);this.m("Error; retry in "+z+" ms");this.yc(z);return D.resolve()}if(d.l(m)&&413===m.Ha){if(1<f.length)return this.S=Math.min(this.S,Math.max(1,Math.floor(e/2)),f.length-1),this.m("413 response; reducing batch size to "+this.S),this.Z(),D.resolve();this.m("Single-event request too large; dropping",
84
+ f);this.wc()}return p()}catch(ba){this.m("Error handling API response",ba),this.Z()}},this),n={method:"POST",Pc:!0,zd:!0,Ic:b};a.Lc&&(n.yb="sendBeacon");ia.log("MIXPANEL REQUEST:",k);return this.ee(k,n).then(q)},this)).catch(d.bind(function(f){this.m("Error flushing request queue",f);this.Z()},this))};K.prototype.m=function(a,b){ia.error.apply(ia.error,arguments);if(this.X)try{b instanceof Error||(b=Error(a)),this.X(a,b)}catch(c){ia.error(c)}};var vb={Ac:function(a,b){var c={},e={};d.l(a)?d.g(a,function(f,
85
+ g){this.M(g)||(e[g]=f)},this):e[a]=b;c.$set=e;return c},Mc:function(a){var b={},c=[];d.isArray(a)||(a=[a]);d.g(a,function(e){this.M(e)||c.push(e)},this);b.$unset=c;return b},Dc:function(a,b){var c={},e={};d.l(a)?d.g(a,function(f,g){this.M(g)||(e[g]=f)},this):e[a]=b;c.$set_once=e;return c},Kc:function(a,b){var c={},e={};d.l(a)?d.g(a,function(f,g){this.M(g)||(e[g]=d.isArray(f)?f:[f])},this):e[a]=d.isArray(b)?b:[b];c.$union=e;return c},cd:function(a,b){var c={},e={};d.l(a)?d.g(a,function(f,g){this.M(g)||
86
+ (e[g]=f)},this):e[a]=b;c.$append=e;return c},vc:function(a,b){var c={},e={};d.l(a)?d.g(a,function(f,g){this.M(g)||(e[g]=f)},this):e[a]=b;c.$remove=e;return c},Ge:function(){return{$delete:""}}};d.extend(C.prototype,vb);C.prototype.ja=function(a,b,c){this.i=a;this.Ua=b;this.Ta=c};C.prototype.set=Z(function(a,b,c){var e=this.Ac(a,b);d.l(a)&&(c=b);return this.s(e,c)});C.prototype.$=Z(function(a,b,c){var e=this.Dc(a,b);d.l(a)&&(c=b);return this.s(e,c)});C.prototype.Na=Z(function(a,b){a=this.Mc(a);return this.s(a,
87
+ b)});C.prototype.ua=Z(function(a,b,c){d.l(a)&&(c=b);a=this.Kc(a,b);return this.s(a,c)});C.prototype["delete"]=Z(function(a){return this.s({$delete:""},a)});C.prototype.remove=Z(function(a,b,c){a=this.vc(a,b);return this.s(a,c)});C.prototype.s=function(a,b){a.$group_key=this.Ua;a.$group_id=this.Ta;a.$token=this.A("token");a=d.eb(a);return this.i.Xa({type:"groups",data:a,endpoint:this.A("api_host")+"/"+this.A("api_routes").groups,$a:this.i.I.groups},b)};C.prototype.M=function(a){return"$group_key"===
88
+ a||"$group_id"===a};C.prototype.A=function(a){return this.i.h(a)};C.prototype.toString=function(){return this.i.toString()+".group."+this.Ua+"."+this.Ta};C.prototype.remove=C.prototype.remove;C.prototype.set=C.prototype.set;C.prototype.set_once=C.prototype.$;C.prototype.union=C.prototype.ua;C.prototype.unset=C.prototype.Na;C.prototype.toString=C.prototype.toString;d.extend(w.prototype,vb);w.prototype.ja=function(a){this.i=a};w.prototype.set=S(function(a,b,c){var e=this.Ac(a,b);d.l(a)&&(c=b);this.A("save_referrer")&&
89
+ this.i.persistence.zb(document.referrer);e.$set=d.extend({},d.info.Vd(),e.$set);return this.s(e,c)});w.prototype.$=S(function(a,b,c){var e=this.Dc(a,b);d.l(a)&&(c=b);return this.s(e,c)});w.prototype.Na=S(function(a,b){a=this.Mc(a);return this.s(a,b)});w.prototype.fc=S(function(a,b,c){var e={},f={};d.l(a)?(d.g(a,function(g,k){this.M(k)||(isNaN(parseFloat(g))?y.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):f[k]=g)},this),c=b):(d.j(b)&&(b=1),f[a]=b);e.$add=f;
90
+ return this.s(e,c)});w.prototype.append=S(function(a,b,c){d.l(a)&&(c=b);a=this.cd(a,b);return this.s(a,c)});w.prototype.remove=S(function(a,b,c){d.l(a)&&(c=b);a=this.vc(a,b);return this.s(a,c)});w.prototype.ua=S(function(a,b,c){d.l(a)&&(c=b);a=this.Kc(a,b);return this.s(a,c)});w.prototype.ye=S(function(a,b,c){if(!d.jc(a)&&(a=parseFloat(a),isNaN(a))){y.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",d.extend({$amount:a},b),
91
+ c)});w.prototype.Qb=function(a){return this.set("$transactions",[],a)};w.prototype.Yb=function(){if(this.Va()){var a={$delete:this.i.U()};return this.s(a)}y.error("mixpanel.people.delete_user() requires you to call identify() first")};w.prototype.toString=function(){return this.i.toString()+".people"};w.prototype.s=function(a,b){a.$token=this.A("token");a.$distinct_id=this.i.U();var c=this.i.F("$device_id"),e=this.i.F("$user_id"),f=this.i.F("$had_persisted_distinct_id");c&&(a.$device_id=c);e&&(a.$user_id=
92
+ e);f&&(a.$had_persisted_distinct_id=f);c=d.eb(a);return this.Va()?this.i.Xa({type:"people",data:c,endpoint:this.A("api_host")+"/"+this.A("api_routes").engage,$a:this.i.I.pb},b):(this.Uc(a),d.j(b)||(this.A("verbose")?b({status:-1,error:null}):b(-1)),d.truncate(c,255))};w.prototype.A=function(a){return this.i.h(a)};w.prototype.Va=function(){return!0===this.i.ga.dc};w.prototype.Uc=function(a){"$set"in a?this.i.persistence.D("$set",a):"$set_once"in a?this.i.persistence.D("$set_once",a):"$unset"in a?this.i.persistence.D("$unset",
93
+ a):"$add"in a?this.i.persistence.D("$add",a):"$append"in a?this.i.persistence.D("$append",a):"$remove"in a?this.i.persistence.D("$remove",a):"$union"in a?this.i.persistence.D("$union",a):y.error("Invalid call to _enqueue():",a)};w.prototype.ha=function(a,b,c,e){var f=this,g=d.extend({},this.i.persistence.na(a)),k=g;d.j(g)||!d.l(g)||d.Ia(g)||(f.i.persistence.J(a,g),f.i.persistence.save(),e&&(k=e(g)),b.call(f,k,function(h,p){0===h&&f.i.persistence.D(a,g);d.j(c)||c(h,p)}))};w.prototype.Vc=function(a,
94
+ b,c,e,f,g,k){var h=this;this.ha("$set",this.set,a);this.ha("$set_once",this.$,e);this.ha("$unset",this.Na,g,function(n){return d.keys(n)});this.ha("$add",this.fc,b);this.ha("$union",this.ua,f);a=this.i.persistence.na("$append");if(!d.j(a)&&d.isArray(a)&&a.length)for(b=function(n,m){0===n&&h.i.persistence.D("$append",p);d.j(c)||c(n,m)},e=a.length-1;0<=e;e--){a=this.i.persistence.na("$append");var p=a.pop();h.i.persistence.save();d.Ia(p)||h.append(p,b)}a=this.i.persistence.na("$remove");if(!d.j(a)&&
95
+ d.isArray(a)&&a.length)for(b=function(n,m){0===n&&h.i.persistence.D("$remove",q);d.j(k)||k(n,m)},e=a.length-1;0<=e;e--){a=this.i.persistence.na("$remove");var q=a.pop();h.i.persistence.save();d.Ia(q)||h.remove(q,b)}};w.prototype.M=function(a){return"$distinct_id"===a||"$token"===a||"$device_id"===a||"$user_id"===a||"$had_persisted_distinct_id"===a};w.prototype.set=w.prototype.set;w.prototype.set_once=w.prototype.$;w.prototype.unset=w.prototype.Na;w.prototype.increment=w.prototype.fc;w.prototype.append=
96
+ w.prototype.append;w.prototype.remove=w.prototype.remove;w.prototype.union=w.prototype.ua;w.prototype.track_charge=w.prototype.ye;w.prototype.clear_charges=w.prototype.Qb;w.prototype.delete_user=w.prototype.Yb;w.prototype.toString=w.prototype.toString;var Yb="__mps __mpso __mpus __mpa __mpap __mpr __mpu $people_distinct_id __alias __timers".split(" ");x.prototype.pa=function(){var a={};this.load();d.g(this.props,function(b,c){d.kb(Yb,c)||(a[c]=b)});return a};x.prototype.load=function(){if(!this.disabled){var a=
97
+ this.storage.parse(this.name);a&&(this.props=d.extend({},a))}};x.prototype.upgrade=function(){if(this.storage===d.localStorage){var a=d.cookie.parse(this.name);d.cookie.remove(this.name);d.cookie.remove(this.name,!0);a&&this.L(a)}else this.storage===d.cookie&&(a=d.localStorage.parse(this.name),d.localStorage.remove(this.name),a&&this.L(a))};x.prototype.save=function(){this.disabled||this.storage.set(this.name,aa(this.props),this.hb,this.cb,this.zc,this.Wb,this.Aa)};x.prototype.Ka=function(a){this.load();
98
+ return this.props[a]};x.prototype.remove=function(){this.storage.remove(this.name,!1,this.Aa);this.storage.remove(this.name,!0,this.Aa)};x.prototype.clear=function(){this.remove();this.props={}};x.prototype.L=function(a,b,c){return d.l(a)?("undefined"===typeof b&&(b="None"),this.hb="undefined"===typeof c?this.Xb:c,this.load(),d.g(a,function(e,f){this.props.hasOwnProperty(f)&&this.props[f]!==b||(this.props[f]=e)},this),this.save(),!0):!1};x.prototype.register=function(a,b){return d.l(a)?(this.hb="undefined"===
99
+ typeof b?this.Xb:b,this.load(),d.extend(this.props,a),this.save(),!0):!1};x.prototype.unregister=function(a){this.load();a in this.props&&(delete this.props[a],this.save())};x.prototype.Oc=function(a){this.register(d.info.ae(a))};x.prototype.zb=function(a){this.L({$initial_referrer:a||"$direct",$initial_referring_domain:d.info.tc(a)||"$direct"},"")};x.prototype.xd=function(){return d.ba({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};
100
+ x.prototype.Nc=function(a){this.Xb=this.hb=a.cookie_expiration;this.Cc(a.disable_persistence);this.ge(a.cookie_domain);this.he(a.cross_site_cookie);this.ie(a.cross_subdomain_cookie);this.le(a.secure_cookie)};x.prototype.Cc=function(a){(this.disabled=a)?this.remove():this.save()};x.prototype.ge=function(a){a!==this.Aa&&(this.remove(),this.Aa=a,this.save())};x.prototype.he=function(a){a!==this.Wb&&(this.Wb=a,this.remove(),this.save())};x.prototype.ie=function(a){a!==this.cb&&(this.cb=a,this.remove(),
101
+ this.save())};x.prototype.vd=function(){return this.cb};x.prototype.le=function(a){a!==this.zc&&(this.zc=a?!0:!1,this.remove(),this.save())};x.prototype.D=function(a,b){var c=this.wa(a);a=b[a];var e=this.R("$set"),f=this.R("$set_once"),g=this.R("$unset"),k=this.R("$add"),h=this.R("$union"),p=this.R("$remove",[]),q=this.R("$append",[]);"__mps"===c?(d.extend(e,a),this.J("$add",a),this.J("$union",a),this.J("$unset",a)):"__mpso"===c?(d.g(a,function(n,m){m in f||(f[m]=n)}),this.J("$unset",a)):"__mpus"===
102
+ c?d.g(a,function(n){d.g([e,f,k,h],function(m){n in m&&delete m[n]});d.g(q,function(m){n in m&&delete m[n]});g[n]=!0}):"__mpa"===c?(d.g(a,function(n,m){m in e?e[m]+=n:(m in k||(k[m]=0),k[m]+=n)},this),this.J("$unset",a)):"__mpu"===c?(d.g(a,function(n,m){d.isArray(n)&&(m in h||(h[m]=[]),d.g(n,function(t){d.kb(h[m],t)||h[m].push(t)}))}),this.J("$unset",a)):"__mpr"===c?(p.push(a),this.J("$append",a)):"__mpap"===c&&(q.push(a),this.J("$unset",a));y.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");
103
+ y.log(b);this.save()};x.prototype.J=function(a,b){var c=this.props[this.wa(a)];d.j(c)||d.g(b,function(e,f){"$append"===a||"$remove"===a?d.g(c,function(g){g[f]===e&&delete g[f]}):delete c[f]},this)};x.prototype.na=function(a){return this.Ka(this.wa(a))};x.prototype.wa=function(a){if("$set"===a)return"__mps";if("$set_once"===a)return"__mpso";if("$unset"===a)return"__mpus";if("$add"===a)return"__mpa";if("$append"===a)return"__mpap";if("$remove"===a)return"__mpr";if("$union"===a)return"__mpu";y.error("Invalid queue:",
104
+ a)};x.prototype.R=function(a,b){a=this.wa(a);b=d.j(b)?{}:b;return this.props[a]||(this.props[a]=b)};x.prototype.je=function(a){var b=(new Date).getTime(),c=this.Ka("__timers")||{};c[a]=b;this.props.__timers=c;this.save()};x.prototype.Xd=function(a){var b=(this.Ka("__timers")||{})[a];d.j(b)||(delete this.props.__timers[a],this.save());return b};var Zb=["mixpanelRecordingEvents","mixpanelRecordingRegistry"];Q.prototype.Kb=function(){return new D(function(a,b){var c=r.indexedDB.open("mixpanelBrowserDb",
105
+ 1);c.onerror=function(){b(c.error)};c.onsuccess=function(){a(c.result)};c.onupgradeneeded=function(e){var f=e.target.result;Zb.forEach(function(g){f.createObjectStore(g)})}})};Q.prototype.G=function(){if(!r.indexedDB)return D.reject("indexedDB is not supported in this browser");this.W||(this.W=this.Kb());return this.W.then(function(a){return a instanceof r.IDBDatabase?D.resolve():D.reject(a)})};Q.prototype.La=function(a,b){function c(f){return new D(function(g,k){var h=f.transaction(e,a);h.oncomplete=
106
+ function(){g(h)};h.onabort=h.onerror=function(){k(h.error)};b(h.objectStore(e))})}var e=this.qe;return this.W.then(c).catch(function(f){return f&&"InvalidStateError"===f.name?(this.W=this.Kb(),this.W.then(c)):D.reject(f)}.bind(this))};Q.prototype.setItem=function(a,b){return this.La("readwrite",function(c){c.put(b,a)})};Q.prototype.getItem=function(a){var b;return this.La("readonly",function(c){b=c.get(a)}).then(function(){return b.result})};Q.prototype.removeItem=function(a){return this.La("readwrite",
107
+ function(b){b.delete(a)})};Q.prototype.getAll=function(){var a;return this.La("readonly",function(b){a=b.getAll()}).then(function(){return a.result})};var va,E,ca=r.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Pa=!ca&&-1===G.indexOf("MSIE")&&-1===G.indexOf("Mozilla"),ua=null;T.sendBeacon&&(ua=function(){return T.sendBeacon.apply(T,arguments)});var wb={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},xb={api_host:"https://api-js.mixpanel.com",api_routes:wb,api_method:"POST",
108
+ api_transport:"XHR",api_payload_format:"base64",app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:ea,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:ea,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,
109
+ disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5E3,batch_request_timeout_ms:9E4,batch_autostart:!0,hooks:{},record_block_class:/^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$/,record_block_selector:"img, video",record_canvas:!1,
110
+ record_collect_fonts:!1,record_idle_timeout_ms:18E5,record_mask_text_class:/^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$/,record_mask_text_selector:"*",record_max_ms:864E5,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Oa=!1;l.prototype.G=function(a,b,c){if(d.j(c))this.u("You must name your new library: init(token, config, name)");else if("mixpanel"===c)this.u("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");
111
+ else return a=ja(a,b,c),E[c]=a,a.xa(),a};l.prototype.ja=function(a,b,c){b=b||{};this.__loaded=!0;this.config={};var e={};"api_payload_format"in b||(b.api_host||xb.api_host).match(/\.mixpanel\.com/)&&(e.api_payload_format="json");this.Bc(d.extend({},xb,e,b,{name:c,token:a,callback_fn:("mixpanel"===c?c:"mixpanel."+c)+"._jsc"}));this._jsc=ea;this.Qa=[];this.Ra=[];this.Pa=[];this.ga={disable_all_events:!1,identify_called:!1};this.I={};if(this.fa=this.h("batch_requests"))if(d.localStorage.ma(!0)&&ca){if(this.Fd(),
112
+ ua&&r.addEventListener){var f=d.bind(function(){this.I.Y.stopped||this.I.Y.flush({Lc:!0})},this);r.addEventListener("pagehide",function(g){g.persisted&&f()});r.addEventListener("visibilitychange",function(){"hidden"===B.visibilityState&&f()})}}else this.fa=!1,y.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),d.g(this.ac(),function(g){y.log("Clearing batch queue "+g.ra);d.localStorage.remove(g.ra)});this.persistence=this.cookie=new x(this.config);this.da={};this.Wc();
113
+ a=d.Oa();this.U()||this.L({distinct_id:"$device:"+a,$device_id:a},"");this.Za=new I(this);this.Za.G();this.Xc();this.Fb()};l.prototype.Xc=function(){if(d.sessionStorage.ma())try{var a=this.h("name")+"_"+this.h("token"),b="mp_tab_id_"+a,c="mp_gen_new_tab_id_"+a;!d.sessionStorage.get(c)&&d.sessionStorage.get(b)||d.sessionStorage.set(b,"$tab-"+d.Oa());d.sessionStorage.set(c,"1");this.te=d.sessionStorage.get(b);r.addEventListener("beforeunload",function(){d.sessionStorage.remove(c)})}catch(e){this.u("Error initializing tab id",
114
+ e)}else this.u("Session storage is not supported, cannot keep track of unique tab ID.")};l.prototype.cc=function(){return this.te||null};l.prototype.Yc=function(){var a=new Q("mixpanelRecordingRegistry"),b=this.cc();return a.G().then(function(){return a.getAll()}).then(function(c){for(var e=0;e<c.length;e++){var f=c[e],g=Date.now();if(!f||g>f.maxExpires||g>f.idleExpires||c[e].tabId===b)return!0}return!1}).catch(d.bind(function(c){this.u("Error checking recording registry",c)},this))};l.prototype.Fb=
115
+ V(function(a){if(r.MutationObserver){var b=d.bind(function(e){var f=d.bind(function(){this.B=this.B||new r.__mp_recorder(this);this.B.resumeRecording(e)},this);d.j(r.__mp_recorder)?Qa(this.h("recorder_src"),f):f()},this),c=0<this.h("record_sessions_percent")&&100*Math.random()<=this.h("record_sessions_percent");a||c?b(!0):this.Yc().then(function(e){e&&b(!1)})}else y.v("Browser does not support MutationObserver; skipping session recording")});l.prototype.ne=function(){this.Fb(!0)};l.prototype.Hc=function(){this.B&&
116
+ this.B.stopRecording()};l.prototype.Ud=function(){this.B&&this.B.pauseRecording()};l.prototype.Zd=function(){this.B&&this.B.resumeRecording()};l.prototype.bc=function(){var a={},b=this.Jb();b&&(a.$mp_replay_id=b);return a};l.prototype.yd=function(){var a=null,b=this.Jb();b&&(a="https://mixpanel.com/projects/replay-redirect?"+d.Bb({replay_id:b,distinct_id:this.U(),token:this.h("token")}));return a};l.prototype.Jb=function(){var a=null;this.B&&(a=this.B.replayId);return a||null};l.prototype.Qc=function(){return this.B};
117
+ l.prototype.xa=function(){this.h("loaded")(this);this.Ob();this.people.$(this.persistence.xd());if(this.h("store_google")&&this.h("stop_utm_persistence")){var a=d.info.ka(null);d.g(a,function(b,c){this.unregister(c)}.bind(this))}};l.prototype.Ob=function(){this.persistence.Oc(B.referrer);this.h("store_google")&&!this.h("stop_utm_persistence")&&this.register(d.info.ka());this.h("save_referrer")&&this.persistence.zb(B.referrer)};l.prototype.Tc=function(){d.g(this.Qa,function(a){this.Wa.apply(this,a)},
118
+ this);this.la()||d.g(this.Ra,function(a){this.s.apply(this,a)},this);delete this.Qa;delete this.Ra};l.prototype.Wa=function(a,b){if(this.h("img"))return this.u("You can't use DOM tracking functions with img = true."),!1;if(!Oa)return this.Qa.push([a,b]),!1;a=(new a).G(this);return a.track.apply(a,b)};l.prototype.Lb=function(a,b){if(d.j(a))return null;if(ca)return function(g){a(g,b)};var c=this._jsc,e=""+Math.floor(1E8*Math.random()),f=this.h("callback_fn")+"["+e+"]";c[e]=function(g){delete c[e];a(g,
119
+ b)};return f};l.prototype.s=function(a,b,c,e){var f=!0;if(Pa)return this.Ra.push(arguments),f;var g={method:this.h("api_method"),yb:this.h("api_transport"),Pc:this.h("verbose")},k=null;e||!d.mb(c)&&"string"!==typeof c||(e=c,c=null);c=d.extend(g,c||{});ca||(c.method="GET");g="POST"===c.method;var h=ua&&g&&"sendbeacon"===c.yb.toLowerCase(),p=c.Pc;b.verbose&&(p=!0);this.h("test")&&(b.test=1);p&&(b.verbose=1);this.h("img")&&(b.img=1);if(!ca)if(e)b.callback=e;else if(p||this.h("test"))b.callback="(function(){})";
120
+ b.ip=this.h("ip")?1:0;b._=(new Date).getTime().toString();g&&(k="data="+encodeURIComponent(b.data),delete b.data);a+="?"+d.Bb(b);var q=this;if("img"in b)k=B.createElement("img"),k.src=a,B.body.appendChild(k);else if(h){try{f=ua(a,k)}catch(u){q.u(u),f=!1}try{e&&e(f?1:0)}catch(u){q.u(u)}}else if(ca)try{var n=new XMLHttpRequest;n.open(c.method,a,!0);var m=this.h("xhr_headers");g&&(m["Content-Type"]="application/x-www-form-urlencoded");d.g(m,function(u,v){n.setRequestHeader(v,u)});if(c.Ic&&"undefined"!==
121
+ typeof n.timeout){n.timeout=c.Ic;var t=(new Date).getTime()}n.withCredentials=!0;n.onreadystatechange=function(){if(4===n.readyState)if(200===n.status){if(e)if(p){try{var u=d.ea(n.responseText)}catch(v){if(q.u(v),c.zd)u=n.responseText;else return}e(u)}else e(Number(n.responseText))}else u=n.timeout&&!n.status&&(new Date).getTime()-t>=n.timeout?"timeout":"Bad HTTP status: "+n.status+" "+n.statusText,q.u(u),e&&(p?e({status:0,Ha:n.status,error:u,xc:(n.responseHeaders||{})["Retry-After"]}):e(0))};n.send(k)}catch(u){q.u(u),
122
+ f=!1}else k=B.createElement("script"),k.type="text/javascript",k.async=!0,k.defer=!0,k.src=a,m=B.getElementsByTagName("script")[0],m.parentNode.insertBefore(k,m);return f};l.prototype.Sa=function(a){function b(k,h){d.g(k,function(p){if(d.isArray(p[0])){var q=h;d.g(p,function(n){q=q[n[0]].apply(q,n.slice(1))})}else this[p[0]].apply(this,p.slice(1))},h)}var c,e=[],f=[],g=[];d.g(a,function(k){k&&(c=k[0],d.isArray(c)?g.push(k):"function"===typeof k?k.call(this):d.isArray(k)&&"alias"===c?e.push(k):d.isArray(k)&&
123
+ -1!==c.indexOf("track")&&"function"===typeof this[c]?g.push(k):f.push(k))},this);b(e,this);b(f,this);b(g,this)};l.prototype.Pb=function(){return!!this.I.Y};l.prototype.ac=function(){var a="__mpq_"+this.h("token"),b=this.h("api_routes");return this.Db=this.Db||{Y:{type:"events",endpoint:"/"+b.track,ra:a+"_ev"},pb:{type:"people",endpoint:"/"+b.engage,ra:a+"_pp"},groups:{type:"groups",endpoint:"/"+b.groups,ra:a+"_gr"}}};l.prototype.Fd=function(){if(!this.Pb()){var a=d.bind(function(c){return new K(c.ra,
124
+ {O:this.config,X:this.h("error_reporter"),de:d.bind(function(e,f,g){this.s(this.h("api_host")+c.endpoint,this.Gb(e),f,this.Lb(g,e))},this),ya:d.bind(function(e){return this.Nb("before_send_"+c.type,e)},this),pe:d.bind(this.tb,this),C:!0})},this),b=this.ac();this.I={Y:a(b.Y),pb:a(b.pb),groups:a(b.groups)}}this.h("batch_autostart")&&this.sb()};l.prototype.sb=function(){this.Rc=!0;this.Pb()&&(this.fa=!0,d.g(this.I,function(a){a.start()}))};l.prototype.tb=function(){this.fa=!1;d.g(this.I,function(a){a.stop();
125
+ a.clear()})};l.prototype.push=function(a){this.Sa([a])};l.prototype.disable=function(a){"undefined"===typeof a?this.ga.md=!0:this.Pa=this.Pa.concat(a)};l.prototype.Gb=function(a){a=aa(a);"base64"===this.h("api_payload_format")&&(a=d.dd(a));return{data:a}};l.prototype.Xa=function(a,b){var c=d.truncate(a.data,255),e=a.endpoint,f=a.$a,g=a.me,k=a.fe||{};b=b||ea;var h=!0,p=d.bind(function(){k.Gc||(c=this.Nb("before_send_"+a.type,c));return c?(y.log("MIXPANEL REQUEST:"),y.log(c),this.s(e,this.Gb(c),k,this.Lb(b,
126
+ c))):null},this);this.fa&&!g?f.enqueue(c).then(function(q){q?b(1,c):p()}):h=p();return h&&c};l.prototype.track=V(function(a,b,c,e){e||"function"!==typeof c||(e=c,c=null);c=c||{};var f=c.transport;f&&(c.yb=f);f=c.send_immediately;"function"!==typeof e&&(e=ea);if(d.j(a))this.u("No event name provided to mixpanel.track");else if(this.Ib(a))e(0);else{b=d.extend({},b);b.token=this.h("token");var g=this.persistence.Xd(a);d.j(g)||(b.$duration=parseFloat((((new Date).getTime()-g)/1E3).toFixed(3)));this.Ob();
127
+ g=this.h("track_marketing")?d.info.Qd():{};b=d.extend({},d.info.pa({mp_loader:this.h("mp_loader")}),g,this.persistence.pa(),this.da,this.bc(),b);g=this.h("property_blacklist");d.isArray(g)?d.g(g,function(k){delete b[k]}):this.u("Invalid value for property_blacklist config: "+g);return this.Xa({type:"events",data:{event:a,properties:b},endpoint:this.h("api_host")+"/"+this.h("api_routes").track,$a:this.I.Y,me:f,fe:c},e)}});l.prototype.ke=V(function(a,b,c){d.isArray(b)||(b=[b]);var e={};e[a]=b;this.register(e);
128
+ return this.people.set(a,b,c)});l.prototype.Zc=V(function(a,b,c){var e=this.F(a),f={};void 0===e?(f[a]=[b],this.register(f)):-1===e.indexOf(b)&&(e.push(b),f[a]=e,this.register(f));return this.people.ua(a,b,c)});l.prototype.Yd=V(function(a,b,c){var e=this.F(a);if(void 0!==e){var f=e.indexOf(b);-1<f&&(e.splice(f,1),this.register({He:e}));0===e.length&&this.unregister(a)}return this.people.remove(a,b,c)});l.prototype.Be=V(function(a,b,c,e){var f=d.extend({},b||{});d.g(c,function(g,k){null!==g&&void 0!==
129
+ g&&(f[k]=g)});return this.track(a,f,e)});l.prototype.Sc=function(a,b){return a+"_"+JSON.stringify(b)};l.prototype.wd=function(a,b){var c=this.Sc(a,b),e=this.Eb[c];if(void 0===e||e.Ua!==a||e.Ta!==b)e=new C,e.ja(this,a,b),this.Eb[c]=e;return e};l.prototype.xb=V(function(a,b){"object"!==typeof a&&(a={});b=b||{};b=b.event_name||"$mp_web_page_view";var c=d.extend(d.info.Rd(),d.info.ka(),d.info.Sb());a=d.extend({},c,a);return this.track(b,a)});l.prototype.Ae=function(){return this.Wa.call(this,Y,arguments)};
130
+ l.prototype.ze=function(){return this.Wa.call(this,ka,arguments)};l.prototype.ue=function(a){d.j(a)?this.u("No event name provided to mixpanel.time_event"):this.Ib(a)||this.persistence.je(a)};var Bb={persistent:!0};l.prototype.register=function(a,b){b=wa(b);b.persistent?this.persistence.register(a,b.days):d.extend(this.da,a)};l.prototype.L=function(a,b,c){c=wa(c);c.persistent?this.persistence.L(a,b,c.days):("undefined"===typeof b&&(b="None"),d.g(a,function(e,f){this.da.hasOwnProperty(f)&&this.da[f]!==
131
+ b||(this.da[f]=e)},this))};l.prototype.unregister=function(a,b){b=wa(b);b.persistent?this.persistence.unregister(a):delete this.da[a]};l.prototype.Mb=function(a,b){var c={};c[a]=b;this.register(c)};l.prototype.jb=function(a,b,c,e,f,g,k,h){var p=this.U();if(a&&p!==a){if("string"===typeof a&&0===a.indexOf("$device:"))return this.u("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:a})}this.F("$device_id")||this.L({$had_persisted_distinct_id:!0,$device_id:p},"");a!==p&&a!==this.F("__alias")&&
132
+ (this.unregister("__alias"),this.register({distinct_id:a}));this.ga.dc=!0;this.people.Vc(b,c,e,f,g,k,h);a!==p&&this.track("$identify",{distinct_id:a,$anon_distinct_id:p},{Gc:!0})};l.prototype.reset=function(){this.persistence.clear();this.ga.dc=!1;var a=d.Oa();this.L({distinct_id:"$device:"+a,$device_id:a},"")};l.prototype.U=function(){return this.F("distinct_id")};l.prototype.$c=function(a,b){if(a===this.F("$people_distinct_id"))return this.u("Attempting to create alias for existing People user - aborting."),
133
+ -2;var c=this;d.j(b)&&(b=this.U());if(a!==b)return this.Mb("__alias",a),this.track("$create_alias",{alias:a,distinct_id:b},{Gc:!0},function(){c.jb(a)});this.u("alias matches current distinct_id - skipping api call.");this.jb(a);return-1};l.prototype.Sd=function(a){this.Mb("mp_name_tag",a)};l.prototype.Bc=function(a){d.l(a)&&(d.extend(this.config,a),a.batch_size&&d.g(this.I,function(b){b.wc()}),this.h("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.h("disable_persistence")||
134
+ (this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.Nc(this.config),P=P||this.h("debug"),"autocapture"in a&&this.Za&&this.Za.G())};l.prototype.h=function(a){return this.config[a]};l.prototype.Nb=function(a){var b=(this.config.hooks[a]||Cb).apply(this,X.call(arguments,1));"undefined"===typeof b&&(this.u(a+" hook did not return a value"),b=null);return b};l.prototype.F=function(a){return this.persistence.Ka([a])};l.prototype.toString=function(){var a=this.h("name");
135
+ "mixpanel"!==a&&(a="mixpanel."+a);return a};l.prototype.Ib=function(a){return d.ic(G)||this.ga.md||d.kb(this.Pa,a)};l.prototype.Wc=function(){"localStorage"===this.h("opt_out_tracking_persistence_type")&&d.localStorage.ma()&&(!this.Ga()&&this.Ga({persistence_type:"cookie"})&&this.lc({enable_persistence:!1}),!this.la()&&this.la({persistence_type:"cookie"})&&this.ob({clear_persistence:!1}),this.Rb({persistence_type:"cookie",enable_persistence:!1}));this.la()?this.va({clear_persistence:!0}):this.Ga()||
136
+ !this.h("opt_out_tracking_by_default")&&!d.cookie.get("mp_optout")||(d.cookie.remove("mp_optout"),this.ob({clear_persistence:this.h("opt_out_persistence_by_default")}))};l.prototype.va=function(a){if(a&&a.clear_persistence)a=!0;else if(a&&a.enable_persistence)a=!1;else return;this.h("disable_persistence")||this.persistence.disabled===a||this.persistence.Cc(a);a?(this.tb(),this.Hc()):this.Rc&&this.sb()};l.prototype.ia=function(a,b){b=d.extend({track:d.bind(this.track,this),persistence_type:this.h("opt_out_tracking_persistence_type"),
137
+ cookie_prefix:this.h("opt_out_tracking_cookie_prefix"),cookie_expiration:this.h("cookie_expiration"),cross_site_cookie:this.h("cross_site_cookie"),cross_subdomain_cookie:this.h("cross_subdomain_cookie"),cookie_domain:this.h("cookie_domain"),secure_cookie:this.h("secure_cookie"),ignore_dnt:this.h("ignore_dnt")},b);d.localStorage.ma()||(b.persistence_type="cookie");return a(this.h("token"),{track:b.track,we:b.track_event_name,xe:b.track_properties,qc:b.persistence_type,pc:b.cookie_prefix,Tb:b.cookie_domain,
138
+ Ub:b.cookie_expiration,ld:b.cross_site_cookie,Vb:b.cross_subdomain_cookie,be:b.secure_cookie,ec:b.ignore_dnt})};l.prototype.lc=function(a){a=d.extend({enable_persistence:!0},a);this.ia(Ob,a);this.va(a)};l.prototype.ob=function(a){a=d.extend({clear_persistence:!0,delete_user:!0},a);a.delete_user&&this.people&&this.people.Va()&&(this.people.Yb(),this.people.Qb());this.ia(Pb,a);this.va(a)};l.prototype.Ga=function(a){return this.ia(Qb,a)};l.prototype.la=function(a){return this.ia(jb,a)};l.prototype.Rb=
139
+ function(a){a=d.extend({enable_persistence:!0},a);this.ia(Sb,a);this.va(a)};l.prototype.u=function(a,b){y.error.apply(y.error,arguments);try{b||a instanceof Error||(a=Error(a)),this.h("error_reporter")(a,b)}catch(c){y.error(c)}};l.prototype.init=l.prototype.G;l.prototype.reset=l.prototype.reset;l.prototype.disable=l.prototype.disable;l.prototype.time_event=l.prototype.ue;l.prototype.track=l.prototype.track;l.prototype.track_links=l.prototype.Ae;l.prototype.track_forms=l.prototype.ze;l.prototype.track_pageview=
140
+ l.prototype.xb;l.prototype.register=l.prototype.register;l.prototype.register_once=l.prototype.L;l.prototype.unregister=l.prototype.unregister;l.prototype.identify=l.prototype.jb;l.prototype.alias=l.prototype.$c;l.prototype.name_tag=l.prototype.Sd;l.prototype.set_config=l.prototype.Bc;l.prototype.get_config=l.prototype.h;l.prototype.get_property=l.prototype.F;l.prototype.get_distinct_id=l.prototype.U;l.prototype.toString=l.prototype.toString;l.prototype.opt_out_tracking=l.prototype.ob;l.prototype.opt_in_tracking=
141
+ l.prototype.lc;l.prototype.has_opted_out_tracking=l.prototype.la;l.prototype.has_opted_in_tracking=l.prototype.Ga;l.prototype.clear_opt_in_out_tracking=l.prototype.Rb;l.prototype.get_group=l.prototype.wd;l.prototype.set_group=l.prototype.ke;l.prototype.add_group=l.prototype.Zc;l.prototype.remove_group=l.prototype.Yd;l.prototype.track_with_groups=l.prototype.Be;l.prototype.start_batch_senders=l.prototype.sb;l.prototype.stop_batch_senders=l.prototype.tb;l.prototype.start_session_recording=l.prototype.ne;
142
+ l.prototype.stop_session_recording=l.prototype.Hc;l.prototype.pause_session_recording=l.prototype.Ud;l.prototype.resume_session_recording=l.prototype.Zd;l.prototype.get_session_recording_properties=l.prototype.bc;l.prototype.get_session_replay_url=l.prototype.yd;l.prototype.get_tab_id=l.prototype.cc;l.prototype.DEFAULT_API_ROUTES=wb;l.prototype.__get_recorder=l.prototype.Qc;x.prototype.properties=x.prototype.pa;x.prototype.update_search_keyword=x.prototype.Oc;x.prototype.update_referrer_info=x.prototype.zb;
143
+ x.prototype.get_cross_subdomain=x.prototype.vd;x.prototype.clear=x.prototype.clear;var O={};(function(a){Qa=a;va=1;E=r.mixpanel;d.j(E)?y.v('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.'):E.__loaded||E.config&&E.persistence?y.v("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors."):
144
+ 1.1>(E.__SV||0)?y.v("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(d.g(E._i,function(b){b&&d.isArray(b)&&(O[b[b.length-1]]=ja.apply(this,b))}),zb(),E.init(),d.g(O,function(b){b.xa()}),yb())})(function(a,b){var c=document.createElement("script");c.type="text/javascript";c.async=!0;c.onload=b;c.src=a;document.head.appendChild(c)})})()