1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[806],{8891:function(e){var t,r,i,n,o,s,a,p,c,u,_,l,h,d,f,g,m,y,b={DEBUG:!1,LIB_VERSION:"2.53.0"};if("undefined"==typeof window){var v={hostname:""};g={navigator:{userAgent:""},document:{location:v,referrer:""},screen:{width:0,height:0},location:v}}else g=window;var x=Array.prototype,k=Function.prototype,M=Object.prototype,S=x.slice,O=M.toString,w=M.hasOwnProperty,q=g.console,L=g.navigator,E=g.document,P=g.opera,I=g.screen,T=L.userAgent,C=k.bind,D=x.forEach,B=x.indexOf,A=x.map,U=Array.isArray,N={},$={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},F={log:function(){if(b.DEBUG&&!$.isUndefined(q)&&q)try{q.log.apply(q,arguments)}catch(e){$.each(arguments,function(e){q.log(e)})}},warn:function(){if(b.DEBUG&&!$.isUndefined(q)&&q){var e=["Mixpanel warning:"].concat($.toArray(arguments));try{q.warn.apply(q,e)}catch(t){$.each(e,function(e){q.warn(e)})}}},error:function(){if(b.DEBUG&&!$.isUndefined(q)&&q){var e=["Mixpanel error:"].concat($.toArray(arguments));try{q.error.apply(q,e)}catch(t){$.each(e,function(e){q.error(e)})}}},critical:function(){if(!$.isUndefined(q)&&q){var e=["Mixpanel error:"].concat($.toArray(arguments));try{q.error.apply(q,e)}catch(t){$.each(e,function(e){q.error(e)})}}}},log_func_with_prefix=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(F,arguments)}},console_with_prefix=function(e){return{log:log_func_with_prefix(F.log,e),error:log_func_with_prefix(F.error,e),critical:log_func_with_prefix(F.critical,e)}};$.bind=function(e,t){var r,i;if(C&&e.bind===C)return C.apply(e,S.call(arguments,1));if(!$.isFunction(e))throw TypeError();return r=S.call(arguments,2),i=function(){if(!(this instanceof i))return e.apply(t,r.concat(S.call(arguments)));var n={};n.prototype=e.prototype;var o=new n;n.prototype=null;var s=e.apply(o,r.concat(S.call(arguments)));return Object(s)===s?s:o}},$.each=function(e,t,r){if(null!=e){if(D&&e.forEach===D)e.forEach(t,r);else if(e.length===+e.length){for(var i=0,n=e.length;i<n;i++)if(i in e&&t.call(r,e[i],i,e)===N)return}else for(var o in e)if(w.call(e,o)&&t.call(r,e[o],o,e)===N)return}},$.extend=function(e){return $.each(S.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},$.isArray=U||function(e){return"[object Array]"===O.call(e)},$.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},$.isArguments=function(e){return!!(e&&w.call(e,"callee"))},$.toArray=function(e){return e?e.toArray?e.toArray():$.isArray(e)||$.isArguments(e)?S.call(e):$.values(e):[]},$.map=function(e,t,r){if(A&&e.map===A)return e.map(t,r);var i=[];return $.each(e,function(e){i.push(t.call(r,e))}),i},$.keys=function(e){var t=[];return null===e||$.each(e,function(e,r){t[t.length]=r}),t},$.values=function(e){var t=[];return null===e||$.each(e,function(e){t[t.length]=e}),t},$.include=function(e,t){var r=!1;return null===e?r:B&&e.indexOf===B?-1!=e.indexOf(t):($.each(e,function(e){if(r||(r=e===t))return N}),r)},$.includes=function(e,t){return -1!==e.indexOf(t)},$.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},$.isObject=function(e){return e===Object(e)&&!$.isArray(e)},$.isEmptyObject=function(e){if($.isObject(e)){for(var t in e)if(w.call(e,t))return!1;return!0}return!1},$.isUndefined=function(e){return void 0===e},$.isString=function(e){return"[object String]"==O.call(e)},$.isDate=function(e){return"[object Date]"==O.call(e)},$.isNumber=function(e){return"[object Number]"==O.call(e)},$.isElement=function(e){return!!(e&&1===e.nodeType)},$.encodeDates=function(e){return $.each(e,function(t,r){$.isDate(t)?e[r]=$.formatDate(t):$.isObject(t)&&(e[r]=$.encodeDates(t))}),e},$.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},$.formatDate=function(e){function pad(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+pad(e.getUTCMonth()+1)+"-"+pad(e.getUTCDate())+"T"+pad(e.getUTCHours())+":"+pad(e.getUTCMinutes())+":"+pad(e.getUTCSeconds())},$.strip_empty_properties=function(e){var t={};return $.each(e,function(e,r){$.isString(e)&&e.length>0&&(t[r]=e)}),t},$.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):$.isArray(e)?(r=[],$.each(e,function(e){r.push($.truncate(e,t))})):$.isObject(e)?(r={},$.each(e,function(e,i){r[i]=$.truncate(e,t)})):r=e,r},$.JSONEncode=function(e){var quote=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},str=function(e,t){var r="",i=0,n="",o="",s=0,a=r,p=[],c=t[e];switch(c&&"object"==typeof c&&"function"==typeof c.toJSON&&(c=c.toJSON(e)),typeof c){case"string":return quote(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";if(r+=" ",p=[],"[object Array]"===O.apply(c)){for(i=0,s=c.length;i<s;i+=1)p[i]=str(i,c)||"null";
1return o=0===p.length?"[]":r?"[\n"+r+p.join(",\n"+r)+"\n"+a+"]":"["+p.join(",")+"]",r=a,o}for(n in c)w.call(c,n)&&(o=str(n,c))&&p.push(quote(n)+(r?": ":":")+o);return o=0===p.length?"{}":r?"{"+p.join(",")+a+"}":"{"+p.join(",")+"}",r=a,o}};return str("",{"":e})},$.JSONDecode=(o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},s=function(e){var r=SyntaxError(e);throw r.at=t,r.text=i,r},a=function(e){return e&&e!==r&&s("Expected '"+e+"' instead of '"+r+"'"),r=i.charAt(t),t+=1,r},p=function(){var e,t="";for("-"===r&&(t="-",a("-"));r>="0"&&r<="9";)t+=r,a();if("."===r)for(t+=".";a()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,a(),("-"===r||"+"===r)&&(t+=r,a());r>="0"&&r<="9";)t+=r,a();if(isFinite(e=+t))return e;s("Bad number")},c=function(){var e,t,i,n="";if('"'===r)for(;a();){if('"'===r)return a(),n;if("\\"===r){if(a(),"u"===r){for(t=0,i=0;t<4&&isFinite(e=parseInt(a(),16));t+=1)i=16*i+e;n+=String.fromCharCode(i)}else if("string"==typeof o[r])n+=o[r];else break}else n+=r}s("Bad string")},u=function(){for(;r&&r<=" ";)a()},_=function(){switch(r){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}s('Unexpected "'+r+'"')},l=function(){var e=[];if("["===r){if(a("["),u(),"]"===r)return a("]"),e;for(;r;){if(e.push(n()),u(),"]"===r)return a("]"),e;a(","),u()}}s("Bad array")},h=function(){var e,t={};if("{"===r){if(a("{"),u(),"}"===r)return a("}"),t;for(;r;){if(e=c(),u(),a(":"),Object.hasOwnProperty.call(t,e)&&s('Duplicate key "'+e+'"'),t[e]=n(),u(),"}"===r)return a("}"),t;a(","),u()}}s("Bad object")},n=function(){switch(u(),r){case"{":return h();case"[":return l();case'"':return c();case"-":return p();default:return r>="0"&&r<="9"?p():_()}},function(e){var o;return i=e,t=0,r=" ",o=n(),u(),r&&s("Syntax error"),o}),$.base64Encode=function(e){var t,r,i,n,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,p=0,c="",u=[];if(!e)return e;e=$.utf8Encode(e);do t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,i=o>>6&63,n=63&o,u[p++]=s.charAt(t)+s.charAt(r)+s.charAt(i)+s.charAt(n);while(a<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},$.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,i,n="",o=0;for(i=0,t=r=0,o=e.length;i<o;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(n+=e.substring(t,r)),n+=a,t=r=i+1)}return r>t&&(n+=e.substring(t,e.length)),n},$.UUID=(d=function(){var e,t=1*new Date;if(g.performance&&g.performance.now)e=g.performance.now();else for(e=0;t==1*new Date;)e++;return t.toString(16)+Math.floor(e).toString(16)},f=function(){var e,t,r=[],i=0;function xor(e,t){var i,n=0;for(i=0;i<t.length;i++)n|=r[i]<<8*i;return e^n}for(e=0;e<T.length;e++)t=T.charCodeAt(e),r.unshift(255&t),r.length>=4&&(i=xor(i,r),r=[]);return r.length>0&&(i=xor(i,r)),i.toString(16)},function(){var e=(I.height*I.width).toString(16);return d()+"-"+Math.random().toString(16).replace(".","")+"-"+f()+"-"+e+"-"+d()});var R=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];$.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<R.length;t++)if(-1!==e.indexOf(R[t]))return!0;return!1},$.HTTPBuildQuery=function(e,t){var r,i,n=[];return $.isUndefined(t)&&(t="&"),$.each(e,function(e,t){r=encodeURIComponent(e.toString()),i=encodeURIComponent(t),n[n.length]=i+"="+r}),n.join(t)},$.getQueryParam=function(e,t){var r=RegExp("[\\?&]"+(t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"))+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch(e){F.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},$.cookie={get:function(e){for(var t=e+"=",r=E.cookie.split(";"),i=0;i<r.length;i++){for(var n=r[i];" "==n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return decodeURIComponent(n.substring(t.length,n.length))}return null},parse:function(e){var t;try{t=$.JSONDecode($.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,i,n,o,s){var a="",p="",c="";if(s)a="; domain="+s;else if(i){var u=extract_domain(E.location.hostname);a=u?"; domain=."+u:""}if(r){var _=new Date;_.setTime(_.getTime()+1e3*r),p="; expires="+_.toGMTString()}o&&(n=!0,c="; SameSite=None"),n&&(c+="; secure"),E.cookie=e+"="+encodeURIComponent(t)+p+"; path=/"+a+c},set:function(e,t,r,i,n,o,s){var a="",p="",c="";if(s)a="; domain="+s;else if(i){var u=extract_domain(E.location.hostname);a=u?"; domain=."+u:""}if(r){var _=new Date;_.setTime(_.getTime()+864e5*r),p="; expires="+_.toGMTString()}o&&(n=!0,c="; SameSite=None"),n&&(c+="; secure");var l=e+"="+encodeURIComponent(t)+p+"; path=/"+a+c;return E.cookie=l,l},remove:function(e,t,r){$.cookie.set(e,"",-1,t,!1,!1,r)}};var j=null,localStorageSupported=function(e,t){if(null!==j&&!t)return j;var r=!0;try{e=e||window.localStorage;var i="__mplss_"+cheap_guid(8);e.setItem(i,"xyz"),"xyz"!==e.getItem(i)&&(r=!1),e.removeItem(i)}catch(e){r=!1}return j=r,r};$.localStorage={is_supported:function(e){var t=localStorageSupported(null,e);return t||F.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){F.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(e){$.localStorage.error(e)}return null},parse:function(e){try{return $.JSONDecode($.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(e){$.localStorage.error(e)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(e){$.localStorage.error(e)}}},$.register_event=function(){function makeHandler(e,t,r){return function(i){if(i=i||fixEvent(window.event)){var n,o,s=!0;return $.isFunction(r)&&(n=r(i)),o=t.call(e,i),(!1===n||!1===o)&&(s=!1),s}}}function fixEvent(e){return e&&(e.preventDefault=fixEvent.preventDefault,e.stopPropagation=fixEvent.stopPropagation),e}return fixEvent.preventDefault=function(){this.returnValue=!1},fixEvent.stopPropagation=function(){this.cancelBubble=!0},function(e,t,r,i,n){if(!e){F.error("No valid element provided to register_event");return}if(e.addEventListener&&!i)e.addEventListener(t,r,!!n);else{var o="on"+t,s=e[o];e[o]=makeHandler(e,r,s)}}}();var G=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');$.dom_query=function(){function getAllChildren(e){return e.all?e.all:e.getElementsByTagName("*")}var e=/[\t\r\n]/g;function hasClass(t,r){return(" "+t.className+" ").replace(e," ").indexOf(" "+r+" ")>=0}function getElementsBySelector(e){if(!E.getElementsByTagName)return[];var t=e.split(" "),r=[E];for(l=0;l<t.length;l++){if((a=t[l].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){c=(p=a.split("#"))[0];var i=p[1],n=E.getElementById(i);if(!n||c&&n.nodeName.toLowerCase()!=c)return[];r=[n];continue}if(a.indexOf(".")>-1){c=(p=a.split("."))[0];var o=p[1];for(c||(c="*"),u=[],_=0,h=0;h<r.length;h++)for(d=0,f="*"==c?getAllChildren(r[h]):r[h].getElementsByTagName(c);d<f.length;d++)u[_++]=f[d];for(h=0,r=[],g=0;h<u.length;h++)u[h].className&&$.isString(u[h].className)&&hasClass(u[h],o)&&(r[g++]=u[h]);continue}var s=a.match(G);if(s){c=s[1];var a,p,c,u,_,l,h,d,f,g,m,y=s[2],b=s[3],v=s[4];for(c||(c="*"),u=[],_=0,h=0;h<r.length;h++)for(d=0,f="*"==c?getAllChildren(r[h]):r[h].getElementsByTagName(c);d<f.length;d++)u[_++]=f[d];switch(r=[],g=0,b){case"=":m=function(e){return e.getAttribute(y)==v};break;case"~":m=function(e){return e.getAttribute(y).match(RegExp("\\b"+v+"\\b"))};break;case"|":m=function(e){return e.getAttribute(y).match(RegExp("^"+v+"-?"))};break;case"^":m=function(e){return 0===e.getAttribute(y).indexOf(v)};break;case"$":m=function(e){return e.getAttribute(y).lastIndexOf(v)==e.getAttribute(y).length-v.length};break;case"*":m=function(e){return e.getAttribute(y).indexOf(v)>-1};break;default:m=function(e){return e.getAttribute(y)}}for(h=0,r=[],g=0;h<u.length;h++)m(u[h])&&(r[g++]=u[h]);continue}for(h=0,c=a,u=[],_=0;h<r.length;h++)for(d=0,f=r[h].getElementsByTagName(c);d<f.length;d++)u[_++]=f[d];r=u}return r}return function(e){return $.isElement(e)?[e]:$.isObject(e)&&!$.isUndefined(e.length)?e:getElementsBySelector.call(this,e)}}();var z=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],Q=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","ttclid","twclid","wbraid"];$.info={campaignParams:function(e){var t="",r={};return $.each(z,function(i){(t=$.getQueryParam(E.URL,i)).length?r[i]=t:void 0!==e&&(r[i]=e)}),r},clickParams:function(){var e="",t={};return $.each(Q,function(r){(e=$.getQueryParam(E.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return $.extend($.info.campaignParams(),$.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=$.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var i=$.getQueryParam(e,"yahoo"!=t?"q":"p");
1i.length&&(r.mp_keyword=i)}return r},browser:function(e,t,r){if(t=t||"",r||$.includes(e," OPR/"))return $.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if($.includes(e,"IEMobile")||$.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if($.includes(e,"SamsungBrowser/"))return"Samsung Internet";if($.includes(e,"Edge")||$.includes(e,"Edg/"))return"Microsoft Edge";if($.includes(e,"FBIOS"))return"Facebook Mobile";if($.includes(e,"Chrome"))return"Chrome";else if($.includes(e,"CriOS"))return"Chrome iOS";else if($.includes(e,"UCWEB")||$.includes(e,"UCBrowser"))return"UC Browser";else if($.includes(e,"FxiOS"))return"Firefox iOS";else if($.includes(t,"Apple"))return $.includes(e,"Mobile")?"Mobile Safari":"Safari";else if($.includes(e,"Android"))return"Android Mobile";else if($.includes(e,"Konqueror"))return"Konqueror";else if($.includes(e,"Firefox"))return"Firefox";else if($.includes(e,"MSIE")||$.includes(e,"Trident/"))return"Internet Explorer";else if($.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,r){var i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[$.info.browser(e,t,r)];if(void 0===i)return null;var n=e.match(i);return n?parseFloat(n[n.length-2]):null},os:function(){if(/Windows/i.test(T))return/Phone/.test(T)||/WPDesktop/.test(T)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(T))return"iOS";if(/Android/.test(T))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(T))return"BlackBerry";if(/Mac/i.test(T))return"Mac OS X";if(/Linux/.test(T))return"Linux";if(/CrOS/.test(T))return"Chrome OS";else return""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return g.location.href},properties:function(e){return"object"!=typeof e&&(e={}),$.extend($.strip_empty_properties({$os:$.info.os(),$browser:$.info.browser(T,L.vendor,P),$referrer:E.referrer,$referring_domain:$.info.referringDomain(E.referrer),$device:$.info.device(T)}),{$current_url:$.info.currentUrl(),$browser_version:$.info.browserVersion(T,L.vendor,P),$screen_height:I.height,$screen_width:I.width,mp_lib:"web",$lib_version:b.LIB_VERSION,$insert_id:cheap_guid(),time:$.timestamp()/1e3},$.strip_empty_properties(e))},people_properties:function(){return $.extend($.strip_empty_properties({$os:$.info.os(),$browser:$.info.browser(T,L.vendor,P)}),{$browser_version:$.info.browserVersion(T,L.vendor,P)})},mpPageViewProperties:function(){return $.strip_empty_properties({current_page_title:E.title,current_domain:g.location.hostname,current_url_path:g.location.pathname,current_url_protocol:g.location.protocol,current_url_search:g.location.search})}};var cheap_guid=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},J=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,K=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,extract_domain=function(e){var t=K,r=e.split("."),i=r[r.length-1];(i.length>4||"com"===i||"org"===i)&&(t=J);var n=e.match(t);return n?n[0]:""},H=null,V=null;"undefined"!=typeof JSON&&(H=JSON.stringify,V=JSON.parse),H=H||$.JSONEncode,V=V||$.JSONDecode,$.toArray=$.toArray,$.isObject=$.isObject,$.JSONEncode=$.JSONEncode,$.JSONDecode=$.JSONDecode,$.isBlockedUA=$.isBlockedUA,$.isEmptyObject=$.isEmptyObject,$.info=$.info,$.info.device=$.info.device,$.info.browser=$.info.browser,$.info.browserVersion=$.info.browserVersion,$.info.properties=$.info.properties;var DomTracker=function(){};DomTracker.prototype.create_properties=function(){},DomTracker.prototype.event_handler=function(){},DomTracker.prototype.after_track_handler=function(){},DomTracker.prototype.init=function(e){return this.mp=e,this},DomTracker.prototype.track=function(e,t,r,i){var n=this,o=$.dom_query(e);if(0===o.length){F.error("The DOM query ("+e+") returned 0 elements");return}return $.each(o,function(e){$.register_event(e,this.override_event,function(e){var o={},s=n.create_properties(r,this),a=n.mp.get_config("track_links_timeout");n.event_handler(e,this,o),window.setTimeout(n.track_callback(i,s,o,!0),a),n.mp.track(t,s,n.track_callback(i,s,o))})},this),!0},DomTracker.prototype.track_callback=function(e,t,r,i){i=i||!1;var n=this;return function(){!r.callback_fired&&(r.callback_fired=!0,e&&!1===e(i,t)||n.after_track_handler(t,r,i))}},DomTracker.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):$.extend({},e)};var LinkTracker=function(){this.override_event="click"};$.inherit(LinkTracker,DomTracker),LinkTracker.prototype.create_properties=function(e,t){var r=LinkTracker.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},LinkTracker.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},LinkTracker.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var FormTracker=function(){this.override_event="submit"};$.inherit(FormTracker,DomTracker),FormTracker.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},FormTracker.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Y=console_with_prefix("lock"),SharedLock=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};SharedLock.prototype.withLock=function(e,t,r){r||"function"==typeof t||(r=t,t=null);var i=r||new Date().getTime()+"|"+Math.random(),n=new Date().getTime(),o=this.storageKey,s=this.pollIntervalMS,a=this.timeoutMS,p=this.storage,c=o+":X",u=o+":Y",_=o+":Z",reportError=function(e){t&&t(e)},delay=function(e){if(new Date().getTime()-n>a){Y.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+i+"]"),p.removeItem(_),p.removeItem(u),loop();return}setTimeout(function(){try{e()}catch(e){reportError(e)}},s*(Math.random()+.1))},waitFor=function(e,t){e()?t():delay(function(){waitFor(e,t)})},getSetY=function(){var e=p.getItem(u);if(e&&e!==i)return!1;if(p.setItem(u,i),p.getItem(u)===i)return!0;
1if(!localStorageSupported(p,!0))throw Error("localStorage support dropped while acquiring lock");return!1},loop=function(){p.setItem(c,i),waitFor(getSetY,function(){if(p.getItem(c)===i){criticalSection();return}delay(function(){if(p.getItem(u)!==i){loop();return}waitFor(function(){return!p.getItem(_)},criticalSection)})})},criticalSection=function(){p.setItem(_,"1");try{e()}finally{p.removeItem(_),p.getItem(u)===i&&p.removeItem(u),p.getItem(c)===i&&p.removeItem(c)}};try{if(localStorageSupported(p,!0))loop();else throw Error("localStorage support check failed")}catch(e){reportError(e)}};var W=console_with_prefix("batch"),RequestQueue=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||$.bind(W.error,W),this.lock=new SharedLock(e,{storage:this.storage}),this.pid=t.pid||null,this.memQueue=[]};RequestQueue.prototype.enqueue=function(e,t,r){var i={id:cheap_guid(),flushAfter:new Date().getTime()+2*t,payload:e};this.lock.withLock($.bind(function(){var t;try{var n=this.readFromStorage();n.push(i),(t=this.saveToStorage(n))&&this.memQueue.push(i)}catch(r){this.reportError("Error enqueueing item",e),t=!1}r&&r(t)},this),$.bind(function(e){this.reportError("Error acquiring storage lock",e),r&&r(!1)},this),this.pid)},RequestQueue.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(t.length<e){var r=this.readFromStorage();if(r.length){var i={};$.each(t,function(e){i[e.id]=!0});for(var n=0;n<r.length;n++){var o=r[n];if(new Date().getTime()>o.flushAfter&&!i[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}}return t};var filterOutIDsAndInvalid=function(e,t){var r=[];return $.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};RequestQueue.prototype.removeItemsByID=function(e,t){var r={};$.each(e,function(e){r[e]=!0}),this.memQueue=filterOutIDsAndInvalid(this.memQueue,r);var i=$.bind(function(){var t;try{var i=this.readFromStorage();if(i=filterOutIDsAndInvalid(i,r),t=this.saveToStorage(i)){i=this.readFromStorage();for(var n=0;n<i.length;n++){var o=i[n];if(o.id&&r[o.id])return this.reportError("Item not removed from storage"),!1}}}catch(r){this.reportError("Error removing items",e),t=!1}return t},this);this.lock.withLock(function(){var e=i();t&&t(e)},$.bind(function(e){var r=!1;if(this.reportError("Error acquiring storage lock",e),!localStorageSupported(this.storage,!0)&&!(r=i()))try{this.storage.removeItem(this.storageKey)}catch(e){this.reportError("Error clearing queue",e)}t&&t(r)},this),this.pid)};var updatePayloads=function(e,t){var r=[];return $.each(e,function(e){var i=e.id;if(i in t){var n=t[i];null!==n&&(e.payload=n,r.push(e))}else r.push(e)}),r};RequestQueue.prototype.updatePayloads=function(e,t){this.memQueue=updatePayloads(this.memQueue,e),this.lock.withLock($.bind(function(){var r;try{var i=this.readFromStorage();i=updatePayloads(i,e),r=this.saveToStorage(i)}catch(t){this.reportError("Error updating items",e),r=!1}t&&t(r)},this),$.bind(function(e){this.reportError("Error acquiring storage lock",e),t&&t(!1)},this),this.pid)},RequestQueue.prototype.readFromStorage=function(){var e;try{(e=this.storage.getItem(this.storageKey))&&(e=V(e),$.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]},RequestQueue.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,H(e)),!0}catch(e){return this.reportError("Error saving queue",e),!1}},RequestQueue.prototype.clear=function(){this.memQueue=[],this.storage.removeItem(this.storageKey)};var X=console_with_prefix("batch"),RequestBatcher=function(e,t){this.errorReporter=t.errorReporter,this.queue=new RequestQueue(e,{errorReporter:$.bind(this.reportError,this),storage:t.storage}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={}};function optIn(e,t){_optInOut(!0,e,t)}function optOut(e,t){_optInOut(!1,e,t)}function hasOptedIn(e,t){return"1"===_getStorageValue(e,t)}function hasOptedOut(e,t){if(_hasDoNotTrackFlagOn(t))return F.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;var r="0"===_getStorageValue(e,t);return r&&F.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function addOptOutCheckMixpanelLib(e){return _addOptOutCheck(e,function(e){return this.get_config(e)})}function addOptOutCheckMixpanelPeople(e){return _addOptOutCheck(e,function(e){return this._get_config(e)})}function addOptOutCheckMixpanelGroup(e){return _addOptOutCheck(e,function(e){return this._get_config(e)})}
1function clearOptInOut(e,t){_getStorage(t=t||{}).remove(_getStorageKey(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function _getStorage(e){return"localStorage"===(e=e||{}).persistenceType?$.localStorage:$.cookie}function _getStorageKey(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function _getStorageValue(e,t){return _getStorage(t).get(_getStorageKey(e,t))}function _hasDoNotTrackFlagOn(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||g,r=t.navigator||{},i=!1;return $.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){$.includes([!0,1,"1","yes"],e)&&(i=!0)}),i}function _optInOut(e,t,r){if(!$.isString(t)||!t.length){F.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}_getStorage(r=r||{}).set(_getStorageKey(t,r),e?1:0,$.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})}function _addOptOutCheck(e,t){return function(){var r=!1;try{var i=t.call(this,"token"),n=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");i&&(r=hasOptedOut(i,{ignoreDnt:n,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){F.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var p=arguments[arguments.length-1];"function"==typeof p&&p(0)}}RequestBatcher.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)},RequestBatcher.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},RequestBatcher.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},RequestBatcher.prototype.clear=function(){this.queue.clear()},RequestBatcher.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},RequestBatcher.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},RequestBatcher.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout($.bind(this.flush,this),this.flushInterval))},RequestBatcher.prototype.flush=function(e){try{if(this.requestInProgress){X.log("Flush: Request already in progress");return}e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),i=this.batchSize,n=this.queue.fillBatch(i),o=[],s={};if($.each(n,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=$.extend({},t.properties,{mp_sent_by_lib_version:b.LIB_VERSION}));var r=!0,i=e.id;i?(this.itemIdsSentSuccessfully[i]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:n.length,timesSent:this.itemIdsSentSuccessfully[i]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&o.push(t)}s[e.id]=t},this),o.length<1){this.resetFlush();return}this.requestInProgress=!0;var a=$.bind(function(o){this.requestInProgress=!1;try{var a=!1;if(e.unloading)this.queue.updatePayloads(s);else if($.isObject(o)&&"timeout"===o.error&&new Date().getTime()-r>=t)this.reportError("Network timeout; retrying"),this.flush();else if($.isObject(o)&&o.xhr_req&&(o.xhr_req.status>=500||429===o.xhr_req.status||"timeout"===o.error)){var p=2*this.flushInterval,c=o.xhr_req.responseHeaders;if(c){var u=c["Retry-After"];u&&(p=1e3*parseInt(u,10)||p)}p=Math.min(6e5,p),this.reportError("Error; retry in "+p+" ms"),this.scheduleFlush(p)}else if($.isObject(o)&&o.xhr_req&&413===o.xhr_req.status){if(n.length>1){var _=Math.max(1,Math.floor(i/2));this.batchSize=Math.min(this.batchSize,_,n.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",n),this.resetBatchSize(),a=!0}else a=!0;a&&(this.queue.removeItemsByID($.map(n,function(e){return e.id}),$.bind(function(e){e?(this.consecutiveRemovalFailures=0,this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())},this)),$.each(n,$.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:n.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)))}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),p={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(p.transport="sendBeacon"),X.log("MIXPANEL REQUEST:",o),this.sendRequest(o,p,a)}catch(e){this.reportError("Error flushing request queue",e),this.resetFlush()}},RequestBatcher.prototype.reportError=function(e,t){if(X.error.apply(X.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){X.error(e)}};var Z="$set",ee="$set_once",et="$unset",er="$add",ei="$append",en="$union",eo="$remove",es={set_action:function(e,t){var r={},i={};return $.isObject(e)?$.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[Z]=i,r},unset_action:function(e){var t={},r=[];return $.isArray(e)||(e=[e]),$.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[et]=r,t},set_once_action:function(e,t){var r={},i={};return $.isObject(e)?$.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[ee]=i,r},union_action:function(e,t){var r={},i={};return $.isObject(e)?$.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=$.isArray(e)?e:[e])},this):i[e]=$.isArray(t)?t:[t],r[en]=i,r},append_action:function(e,t){var r={},i={};return $.isObject(e)?$.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[ei]=i,r},remove_action:function(e,t){var r={},i={};return $.isObject(e)?$.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[eo]=i,r},delete_action:function(){var e={};return e.$delete="",e}},MixpanelGroup=function(){};$.extend(MixpanelGroup.prototype,es),MixpanelGroup.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},MixpanelGroup.prototype.set=addOptOutCheckMixpanelGroup(function(e,t,r){var i=this.set_action(e,t);return $.isObject(e)&&(r=t),this._send_request(i,r)}),MixpanelGroup.prototype.set_once=addOptOutCheckMixpanelGroup(function(e,t,r){var i=this.set_once_action(e,t);return $.isObject(e)&&(r=t),this._send_request(i,r)}),MixpanelGroup.prototype.unset=addOptOutCheckMixpanelGroup(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),MixpanelGroup.prototype.union=addOptOutCheckMixpanelGroup(function(e,t,r){$.isObject(e)&&(r=t);var i=this.union_action(e,t);return this._send_request(i,r)}),MixpanelGroup.prototype.delete=addOptOutCheckMixpanelGroup(function(e){var t=this.delete_action();return this._send_request(t,e)}),MixpanelGroup.prototype.remove=addOptOutCheckMixpanelGroup(function(e,t,r){var i=this.remove_action(e,t);return this._send_request(i,r)}),MixpanelGroup.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=$.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},MixpanelGroup.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},MixpanelGroup.prototype._get_config=function(e){return this._mixpanel.get_config(e)},MixpanelGroup.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},MixpanelGroup.prototype.remove=MixpanelGroup.prototype.remove,MixpanelGroup.prototype.set=MixpanelGroup.prototype.set,MixpanelGroup.prototype.set_once=MixpanelGroup.prototype.set_once,MixpanelGroup.prototype.union=MixpanelGroup.prototype.union,MixpanelGroup.prototype.unset=MixpanelGroup.prototype.unset,MixpanelGroup.prototype.toString=MixpanelGroup.prototype.toString;var MixpanelPeople=function(){};$.extend(MixpanelPeople.prototype,es),MixpanelPeople.prototype._init=function(e){this._mixpanel=e},MixpanelPeople.prototype.set=addOptOutCheckMixpanelPeople(function(e,t,r){var i=this.set_action(e,t);return $.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),i[Z]=$.extend({},$.info.people_properties(),i[Z]),this._send_request(i,r)}),MixpanelPeople.prototype.set_once=addOptOutCheckMixpanelPeople(function(e,t,r){var i=this.set_once_action(e,t);return $.isObject(e)&&(r=t),this._send_request(i,r)}),MixpanelPeople.prototype.unset=addOptOutCheckMixpanelPeople(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),MixpanelPeople.prototype.increment=addOptOutCheckMixpanelPeople(function(e,t,r){var i={},n={};return $.isObject(e)?($.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e))){F.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}n[t]=e}},this),r=t):($.isUndefined(t)&&(t=1),n[e]=t),i[er]=n,this._send_request(i,r)}),MixpanelPeople.prototype.append=addOptOutCheckMixpanelPeople(function(e,t,r){$.isObject(e)&&(r=t);var i=this.append_action(e,t);return this._send_request(i,r)}),MixpanelPeople.prototype.remove=addOptOutCheckMixpanelPeople(function(e,t,r){$.isObject(e)&&(r=t);var i=this.remove_action(e,t);return this._send_request(i,r)}),MixpanelPeople.prototype.union=addOptOutCheckMixpanelPeople(function(e,t,r){$.isObject(e)&&(r=t);var i=this.union_action(e,t);return this._send_request(i,r)}),MixpanelPeople.prototype.track_charge=addOptOutCheckMixpanelPeople(function(e,t,r){if(!$.isNumber(e)&&isNaN(e=parseFloat(e))){F.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",$.extend({$amount:e},t),r)}),MixpanelPeople.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},MixpanelPeople.prototype.delete_user=function(){if(!this._identify_called()){F.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},MixpanelPeople.prototype.toString=function(){return this._mixpanel.toString()+".people"},MixpanelPeople.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),i=this._mixpanel.get_property("$user_id"),n=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),i&&(e.$user_id=i),n&&(e.$had_persisted_distinct_id=n);var o=$.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),$.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),$.truncate(o,255))},MixpanelPeople.prototype._get_config=function(e){return this._mixpanel.get_config(e)},MixpanelPeople.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},MixpanelPeople.prototype._enqueue=function(e){Z in e?this._mixpanel.persistence._add_to_people_queue(Z,e):ee in e?this._mixpanel.persistence._add_to_people_queue(ee,e):et in e?this._mixpanel.persistence._add_to_people_queue(et,e):er in e?this._mixpanel.persistence._add_to_people_queue(er,e):ei in e?this._mixpanel.persistence._add_to_people_queue(ei,e):eo in e?this._mixpanel.persistence._add_to_people_queue(eo,e):en in e?this._mixpanel.persistence._add_to_people_queue(en,e):F.error("Invalid call to _enqueue():",e)},MixpanelPeople.prototype._flush_one_queue=function(e,t,r,i){var n=this,o=$.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!$.isUndefined(o)&&$.isObject(o)&&!$.isEmptyObject(o)&&(n._mixpanel.persistence._pop_from_people_queue(e,o),n._mixpanel.persistence.save(),i&&(s=i(o)),t.call(n,s,function(t,i){0===t&&n._mi
1xpanel.persistence._add_to_people_queue(e,o),$.isUndefined(r)||r(t,i)}))},MixpanelPeople.prototype._flush=function(e,t,r,i,n,o,s){var a=this;this._flush_one_queue(Z,this.set,e),this._flush_one_queue(ee,this.set_once,i),this._flush_one_queue(et,this.unset,o,function(e){return $.keys(e)}),this._flush_one_queue(er,this.increment,t),this._flush_one_queue(en,this.union,n);var p=this._mixpanel.persistence.load_queue(ei);if(!$.isUndefined(p)&&$.isArray(p)&&p.length)for(var c,append_callback=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(ei,c),$.isUndefined(r)||r(e,t)},u=p.length-1;u>=0;u--)c=(p=this._mixpanel.persistence.load_queue(ei)).pop(),a._mixpanel.persistence.save(),$.isEmptyObject(c)||a.append(c,append_callback);var _=this._mixpanel.persistence.load_queue(eo);if(!$.isUndefined(_)&&$.isArray(_)&&_.length)for(var l,remove_callback=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(eo,l),$.isUndefined(s)||s(e,t)},h=_.length-1;h>=0;h--)l=(_=this._mixpanel.persistence.load_queue(eo)).pop(),a._mixpanel.persistence.save(),$.isEmptyObject(l)||a.remove(l,remove_callback)},MixpanelPeople.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},MixpanelPeople.prototype.set=MixpanelPeople.prototype.set,MixpanelPeople.prototype.set_once=MixpanelPeople.prototype.set_once,MixpanelPeople.prototype.unset=MixpanelPeople.prototype.unset,MixpanelPeople.prototype.increment=MixpanelPeople.prototype.increment,MixpanelPeople.prototype.append=MixpanelPeople.prototype.append,MixpanelPeople.prototype.remove=MixpanelPeople.prototype.remove,MixpanelPeople.prototype.union=MixpanelPeople.prototype.union,MixpanelPeople.prototype.track_charge=MixpanelPeople.prototype.track_charge,MixpanelPeople.prototype.clear_charges=MixpanelPeople.prototype.clear_charges,MixpanelPeople.prototype.delete_user=MixpanelPeople.prototype.delete_user,MixpanelPeople.prototype.toString=MixpanelPeople.prototype.toString;var ea="__mps",ep="__mpso",ec="__mpus",eu="__mpa",e_="__mpap",el="__mpr",eh="__mpu",ed="$people_distinct_id",ef="__alias",eg="__timers",em=[ea,ep,ec,eu,e_,el,eh,ed,ef,eg],MixpanelPersistence=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(F.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&$.localStorage.is_supported()?this.storage=$.localStorage:this.storage=$.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};MixpanelPersistence.prototype.properties=function(){var e={};return this.load(),$.each(this.props,function(t,r){$.include(em,r)||(e[r]=t)}),e},MixpanelPersistence.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=$.extend({},e))}},MixpanelPersistence.prototype.upgrade=function(){var e,t;this.storage===$.localStorage?(e=$.cookie.parse(this.name),$.cookie.remove(this.name),$.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===$.cookie&&(t=$.localStorage.parse(this.name),$.localStorage.remove(this.name),t&&this.register_once(t))},MixpanelPersistence.prototype.save=function(){this.disabled||this.storage.set(this.name,$.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},MixpanelPersistence.prototype.load_prop=function(e){return this.load(),this.props[e]},MixpanelPersistence.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},MixpanelPersistence.prototype.clear=function(){this.remove(),this.props={}},MixpanelPersistence.prototype.register_once=function(e,t,r){return!!$.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),$.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},MixpanelPersistence.prototype.register=function(e,t){return!!$.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),$.extend(this.props,e),this.save(),!0)},MixpanelPersistence.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},MixpanelPersistence.prototype.update_search_keyword=function(e){this.register($.info.searchInfo(e))},MixpanelPersistence.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:$.info.referringDomain(e)||"$direct"},"")},MixpanelPersistence.prototype.get_referrer_info=function(){return $.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},MixpanelPersistence.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},MixpanelPersistence.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},MixpanelPersistence.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},MixpanelPersistence.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},MixpanelPersistence.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},MixpanelPersistence.prototype.get_cross_subdomain=function(){return this.cross_subdomain},MixpanelPersistence.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},MixpanelPersistence.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),i=t[e],n=this._get_or_create_queue(Z),o=this._get_or_create_queue(ee),s=this._get_or_create_queue(et),a=this._get_or_create_queue(er),p=this._get_or_create_queue(en),c=this._get_or_create_queue(eo,[]),u=this._get_or_create_queue(ei,[]);
1r===ea?($.extend(n,i),this._pop_from_people_queue(er,i),this._pop_from_people_queue(en,i),this._pop_from_people_queue(et,i)):r===ep?($.each(i,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(et,i)):r===ec?$.each(i,function(e){$.each([n,o,a,p],function(t){e in t&&delete t[e]}),$.each(u,function(t){e in t&&delete t[e]}),s[e]=!0}):r===eu?($.each(i,function(e,t){t in n?n[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(et,i)):r===eh?($.each(i,function(e,t){$.isArray(e)&&(t in p||(p[t]=[]),p[t]=p[t].concat(e))}),this._pop_from_people_queue(et,i)):r===el?(c.push(i),this._pop_from_people_queue(ei,i)):r===e_&&(u.push(i),this._pop_from_people_queue(et,i)),F.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),F.log(t),this.save()},MixpanelPersistence.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];$.isUndefined(r)||$.each(t,function(t,i){e===ei||e===eo?$.each(r,function(e){e[i]===t&&delete e[i]}):delete r[i]},this)},MixpanelPersistence.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},MixpanelPersistence.prototype._get_queue_key=function(e){return e===Z?ea:e===ee?ep:e===et?ec:e===er?eu:e===ei?e_:e===eo?el:e===en?eh:void F.error("Invalid queue:",e)},MixpanelPersistence.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=$.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},MixpanelPersistence.prototype.set_event_timer=function(e,t){var r=this.load_prop(eg)||{};r[e]=t,this.props[eg]=r,this.save()},MixpanelPersistence.prototype.remove_event_timer=function(e){var t=(this.load_prop(eg)||{})[e];return $.isUndefined(t)||(delete this.props[eg][e],this.save()),t};var IDENTITY_FUNC=function(e){return e},NOOP_FUNC=function(){},ey="mixpanel",eb="base64",ev="$device:",ex=g.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ek=!ex&&-1===T.indexOf("MSIE")&&-1===T.indexOf("Mozilla"),eM=null;L.sendBeacon&&(eM=function(){return L.sendBeacon.apply(L,arguments)});var eS={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},eO={api_host:"https://api-js.mixpanel.com",api_routes:eS,api_method:"POST",api_transport:"XHR",api_payload_format:eb,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:NOOP_FUNC,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:NOOP_FUNC,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,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:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_idle_timeout_ms:18e5,record_mask_text_class:RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:864e5,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},ew=!1,MixpanelLib=function(){},create_mplib=function(e,t,r){var i,n=r===ey?y:y[r];if(n&&0===m)i=n;else{if(n&&!$.isArray(n)){F.error("You have already initialized "+r);return}i=new MixpanelLib}if(i._cached_groups={},i._init(e,t,r),i.people=new MixpanelPeople,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var o=$.info.campaignParams(null),s={},a=!1;$.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&i.people.set_once(s)}return b.DEBUG=b.DEBUG||i.get_config("debug"),!$.isUndefined(n)&&$.isArray(n)&&(i._execute_array.call(i.people,n.people),i._execute_array(n)),i};MixpanelLib.prototype.init=function(e,t,r){if($.isUndefined(r)){this.report_error("You must name your new library: init(token, config, name)");return}if(r===ey){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}
1var i=create_mplib(e,t,r);return y[r]=i,i._loaded(),i},MixpanelLib.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var i={};if(!("api_payload_format"in t)&&(t.api_host||eO.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json"),this.set_config($.extend({},eO,i,t,{name:r,token:e,callback_fn:(r===ey?r:ey+"."+r)+"._jsc"})),this._jsc=NOOP_FUNC,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if($.localStorage.is_supported(!0)&&ex){if(this.init_batchers(),eM&&g.addEventListener){var n=$.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);g.addEventListener("pagehide",function(e){e.persisted&&n()}),g.addEventListener("visibilitychange",function(){"hidden"===E.visibilityState&&n()})}}else this._batch_requests=!1,F.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),$.each(this.get_batcher_configs(),function(e){F.log("Clearing batch queue "+e.queue_key),$.localStorage.remove(e.queue_key)})}this.persistence=this.cookie=new MixpanelPersistence(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=$.UUID();this.get_distinct_id()||this.register_once({distinct_id:ev+o,$device_id:o},"");var s=this.get_config("track_pageview");s&&this._init_url_change_tracking(s),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},MixpanelLib.prototype.start_session_recording=addOptOutCheckMixpanelLib(function(){if(!g.MutationObserver){F.critical("Browser does not support MutationObserver; skipping session recording");return}var e=$.bind(function(){this._recorder=this._recorder||new g.__mp_recorder(this),this._recorder.startRecording()},this);if($.isUndefined(g.__mp_recorder)){var t=E.createElement("script");t.type="text/javascript",t.async=!0,t.onload=e,t.src=this.get_config("recorder_src"),E.head.appendChild(t)}else e()}),MixpanelLib.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():F.critical("Session recorder module not loaded")},MixpanelLib.prototype.get_session_recording_properties=function(){var e={};if(this._recorder){var t=this._recorder.replayId;t&&(e.$mp_replay_id=t)}return e},MixpanelLib.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=$.info.campaignParams(null);$.each(e,(function(e,t){this.unregister(t)}).bind(this))}},MixpanelLib.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(E.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register($.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(E.referrer)},MixpanelLib.prototype._dom_loaded=function(){$.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||$.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},MixpanelLib.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!ew)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},MixpanelLib.prototype._init_url_change_tracking=function(e){var t="";if(this.track_pageview()&&(t=$.info.currentUrl()),$.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){g.addEventListener("popstate",function(){g.dispatchEvent(new Event("mp_locationchange"))}),g.addEventListener("hashchange",function(){g.dispatchEvent(new Event("mp_locationchange"))});var r=g.history.pushState;"function"==typeof r&&(g.history.pushState=function(e,t,i){r.call(g.history,e,t,i),g.dispatchEvent(new Event("mp_locationchange"))});var i=g.history.replaceState;"function"==typeof i&&(g.history.replaceState=function(e,t,r){i.call(g.history,e,t,r),g.dispatchEvent(new Event("mp_locationchange"))}),g.addEventListener("mp_locationchange",(function(){var r=$.info.currentUrl(),i=!1;"full-url"===e?i=r!==t:"url-with-path-and-query-string"===e?i=r.split("#")[0]!==t.split("#")[0]:"url-with-path"===e&&(i=r.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),i&&this.track_pageview()&&(t=r)}).bind(this))}},MixpanelLib.prototype._prepare_callback=function(e,t){if($.isUndefined(e))return null;if(ex)return function(r){e(r,t)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),n=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(n){delete r[i],e(n,t)},n},MixpanelLib.prototype._send_request=function(e,t,r,i){var n=!0;if(ek)return this.__request_queue.push(arguments),n;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
1:this.get_config("verbose")},s=null;!i&&($.isFunction(r)||"string"==typeof r)&&(i=r,r=null),r=$.extend(o,r||{}),ex||(r.method="GET");var a="POST"===r.method,p=eM&&a&&"sendbeacon"===r.transport.toLowerCase(),c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),!ex&&(i?t.callback=i:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),e+="?"+$.HTTPBuildQuery(t);var u=this;if("img"in t){var _=E.createElement("img");_.src=e,E.body.appendChild(_)}else if(p){try{n=eM(e,s)}catch(e){u.report_error(e),n=!1}try{i&&i(n?1:0)}catch(e){u.report_error(e)}}else if(ex)try{var l=new XMLHttpRequest;l.open(r.method,e,!0);var h=this.get_config("xhr_headers");if(a&&(h["Content-Type"]="application/x-www-form-urlencoded"),$.each(h,function(e,t){l.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==l.timeout){l.timeout=r.timeout_ms;var d=new Date().getTime()}l.withCredentials=!0,l.onreadystatechange=function(){if(4===l.readyState){var e,t;if(200===l.status){if(i){if(c){try{e=$.JSONDecode(l.responseText)}catch(t){if(u.report_error(t),!r.ignore_json_errors)return;e=l.responseText}i(e)}else i(Number(l.responseText))}}else t=l.timeout&&!l.status&&new Date().getTime()-d>=l.timeout?"timeout":"Bad HTTP status: "+l.status+" "+l.statusText,u.report_error(t),i&&(c?i({status:0,error:t,xhr_req:l}):i(0))}},l.send(s)}catch(e){u.report_error(e),n=!1}else{var f=E.createElement("script");f.type="text/javascript",f.async=!0,f.defer=!0,f.src=e;var g=E.getElementsByTagName("script")[0];g.parentNode.insertBefore(f,g)}return n},MixpanelLib.prototype._execute_array=function(e){var t,r=[],i=[],n=[];$.each(e,function(e){e&&(t=e[0],$.isArray(t)?n.push(e):"function"==typeof e?e.call(this):$.isArray(e)&&"alias"===t?r.push(e):$.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?n.push(e):i.push(e))},this);var execute=function(e,t){$.each(e,function(e){if($.isArray(e[0])){var r=t;$.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};execute(r,this),execute(i,this),execute(n,this)},MixpanelLib.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},MixpanelLib.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},MixpanelLib.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=$.bind(function(e){return new RequestBatcher(e.queue_key,{libConfig:this.config,sendRequestFunc:$.bind(function(t,r,i){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),r,this._prepare_callback(i,t))},this),beforeSendHook:$.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),errorReporter:this.get_config("error_reporter"),stopAllBatchingFunc:$.bind(this.stop_batch_senders,this)})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},MixpanelLib.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,$.each(this.request_batchers,function(e){e.start()}))},MixpanelLib.prototype.stop_batch_senders=function(){this._batch_requests=!1,$.each(this.request_batchers,function(e){e.stop(),e.clear()})},MixpanelLib.prototype.push=function(e){this._execute_array([e])},MixpanelLib.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},MixpanelLib.prototype._encode_data_for_request=function(e){var t=$.JSONEncode(e);return this.get_config("api_payload_format")===eb&&(t=$.base64Encode(t)),{data:t}},MixpanelLib.prototype._track_or_batch=function(e,t){var r=$.truncate(e.data,255),i=e.endpoint,n=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||NOOP_FUNC;var a=!0,p=$.bind(function(){return(s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r)?(F.log("MIXPANEL REQUEST:"),F.log(r),this._send_request(i,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?n.enqueue(r,function(e){e?t(1,r):p()}):a=p(),a&&r},MixpanelLib.prototype.track=addOptOutCheckMixpanelLib(function(e,t,r,i){i||"function"!=typeof r||(i=r,r=null);var n=(r=r||{}).transport;n&&(r.transport=n);var o=r.send_immediately;if("function"!=typeof i&&(i=NOOP_FUNC),$.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}
1if(this._event_is_disabled(e)){i(0);return}(t=$.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!$.isUndefined(s)){var a=new Date().getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var p=this.get_config("track_marketing")?$.info.marketingParams():{};t=$.extend({},$.info.properties({mp_loader:this.get_config("mp_loader")}),p,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var c=this.get_config("property_blacklist");$.isArray(c)?$.each(c,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+c);var u={event:e,properties:t};return this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},i)}),MixpanelLib.prototype.set_group=addOptOutCheckMixpanelLib(function(e,t,r){$.isArray(t)||(t=[t]);var i={};return i[e]=t,this.register(i),this.people.set(e,t,r)}),MixpanelLib.prototype.add_group=addOptOutCheckMixpanelLib(function(e,t,r){var i=this.get_property(e),n={};return void 0===i?(n[e]=[t],this.register(n)):-1===i.indexOf(t)&&(i.push(t),n[e]=i,this.register(n)),this.people.union(e,t,r)}),MixpanelLib.prototype.remove_group=addOptOutCheckMixpanelLib(function(e,t,r){var i=this.get_property(e);if(void 0!==i){var n=i.indexOf(t);n>-1&&(i.splice(n,1),this.register({group_key:i})),0===i.length&&this.unregister(e)}return this.people.remove(e,t,r)}),MixpanelLib.prototype.track_with_groups=addOptOutCheckMixpanelLib(function(e,t,r,i){var n=$.extend({},t||{});return $.each(r,function(e,t){null!=e&&(n[t]=e)}),this.track(e,n,i)}),MixpanelLib.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},MixpanelLib.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},MixpanelLib.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),i=this._cached_groups[r];return(void 0===i||i._group_key!==e||i._group_id!==t)&&((i=new MixpanelGroup)._init(this,e,t),this._cached_groups[r]=i),i},MixpanelLib.prototype.track_pageview=addOptOutCheckMixpanelLib(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",i=$.extend($.info.mpPageViewProperties(),$.info.campaignParams(),$.info.clickParams()),n=$.extend({},i,e);return this.track(r,n)}),MixpanelLib.prototype.track_links=function(){return this._track_dom.call(this,LinkTracker,arguments)},MixpanelLib.prototype.track_forms=function(){return this._track_dom.call(this,FormTracker,arguments)},MixpanelLib.prototype.time_event=function(e){if($.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var eq={persistent:!0},options_for_register=function(e){var t;return t=$.isObject(e)?e:$.isUndefined(e)?{}:{days:e},$.extend({},eq,t)};MixpanelLib.prototype.register=function(e,t){var r=options_for_register(t);r.persistent?this.persistence.register(e,r.days):$.extend(this.unpersisted_superprops,e)},MixpanelLib.prototype.register_once=function(e,t,r){var i=options_for_register(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),$.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},MixpanelLib.prototype.unregister=function(e,t){(t=options_for_register(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},MixpanelLib.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},MixpanelLib.prototype.identify=function(e,t,r,i,n,o,s,a){var p=this.get_distinct_id();if(e&&p!==e){if("string"==typeof e&&0===e.indexOf(ev))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:p},""),e!==p&&e!==this.get_property(ef)&&(this.unregister(ef),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,i,n,o,s,a),e!==p&&this.track("$identify",{distinct_id:e,$anon_distinct_id:p},{skip_hooks:!0})},MixpanelLib.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=$.UUID();this.register_once({distinct_id:ev+e,$device_id:e},"")},MixpanelLib.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},MixpanelLib.prototype.alias=function(e,t){if(e===this.get_property(ed))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return($.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(ef,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},MixpanelLib.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},MixpanelLib.prototype.set_config=function(e){$.isObject(e)&&($.extend(this.config,e),e.batch_size&&$.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),b.DEBUG=b.DEBUG||this.get_config("debug"))},MixpanelLib.prototype.get_config=function(e){return this.config[e]},MixpanelLib.prototype._run_hook=function(e){var t=(this.config.hooks[e]||IDENTITY_FUNC).apply(this,S.call(arguments,1
1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},MixpanelLib.prototype.get_property=function(e){return this.persistence.load_prop([e])},MixpanelLib.prototype.toString=function(){var e=this.get_config("name");return e!==ey&&(e=ey+"."+e),e},MixpanelLib.prototype._event_is_disabled=function(e){return $.isBlockedUA(T)||this._flags.disable_all_events||$.include(this.__disabled_events,e)},MixpanelLib.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&$.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||$.cookie.get("mp_optout"))&&($.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},MixpanelLib.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()},MixpanelLib.prototype._gdpr_call_func=function(e,t){return t=$.extend({track:$.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),$.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},MixpanelLib.prototype.opt_in_tracking=function(e){e=$.extend({enable_persistence:!0},e),this._gdpr_call_func(optIn,e),this._gdpr_update_persistence(e)},MixpanelLib.prototype.opt_out_tracking=function(e){(e=$.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(optOut,e),this._gdpr_update_persistence(e)},MixpanelLib.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(hasOptedIn,e)},MixpanelLib.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(hasOptedOut,e)},MixpanelLib.prototype.clear_opt_in_out_tracking=function(e){e=$.extend({enable_persistence:!0},e),this._gdpr_call_func(clearOptInOut,e),this._gdpr_update_persistence(e)},MixpanelLib.prototype.report_error=function(e,t){F.error.apply(F.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){F.error(e)}},MixpanelLib.prototype.init=MixpanelLib.prototype.init,MixpanelLib.prototype.reset=MixpanelLib.prototype.reset,MixpanelLib.prototype.disable=MixpanelLib.prototype.disable,MixpanelLib.prototype.time_event=MixpanelLib.prototype.time_event,MixpanelLib.prototype.track=MixpanelLib.prototype.track,MixpanelLib.prototype.track_links=MixpanelLib.prototype.track_links,MixpanelLib.prototype.track_forms=MixpanelLib.prototype.track_forms,MixpanelLib.prototype.track_pageview=MixpanelLib.prototype.track_pageview,MixpanelLib.prototype.register=MixpanelLib.prototype.register,MixpanelLib.prototype.register_once=MixpanelLib.prototype.register_once,MixpanelLib.prototype.unregister=MixpanelLib.prototype.unregister,MixpanelLib.prototype.identify=MixpanelLib.prototype.identify,MixpanelLib.prototype.alias=MixpanelLib.prototype.alias,MixpanelLib.prototype.name_tag=MixpanelLib.prototype.name_tag,MixpanelLib.prototype.set_config=MixpanelLib.prototype.set_config,MixpanelLib.prototype.get_config=MixpanelLib.prototype.get_config,MixpanelLib.prototype.get_property=MixpanelLib.prototype.get_property,MixpanelLib.prototype.get_distinct_id=MixpanelLib.prototype.get_distinct_id,MixpanelLib.prototype.toString=MixpanelLib.prototype.toString,MixpanelLib.prototype.opt_out_tracking=MixpanelLib.prototype.opt_out_tracking,MixpanelLib.prototype.opt_in_tracking=MixpanelLib.prototype.opt_in_tracking,MixpanelLib.prototype.has_opted_out_tracking=MixpanelLib.prototype.has_opted_out_tracking,MixpanelLib.prototype.has_opted_in_tracking=MixpanelLib.prototype.has_opted_in_tracking,MixpanelLib.prototype.clear_opt_in_out_tracking=MixpanelLib.prototype.clear_opt_in_out_tracking,MixpanelLib.prototype.get_group=MixpanelLib.prototype.get_group,MixpanelLib.prototype.set_group=MixpanelLib.prototype.set_group,MixpanelLib.prototype.add_group=MixpanelLib.prototype.add_group,MixpanelLib.prototype.remove_group=MixpanelLib.prototype.remove_group,MixpanelLib.prototype.track_with_groups=MixpanelLib.prototype.track_with_groups,MixpanelLib.prototype.start_batch_senders=MixpanelLib.prototype.start_batch_senders,MixpanelLib.prototype.stop_batch_senders=MixpanelLib.prototype.stop_batch_senders,MixpanelLib.prototype.start_session_recording=MixpanelLib.prototype.start_session_recording,MixpanelLib.prototype.stop_session_recording=MixpanelLib.prototype.stop_session_recording,MixpanelLib.prototype.get_session_recording_properties=MixpanelLib.prototype.get_session_recording_properties,MixpanelLib.prototype.DEFAULT_API_ROUTES=eS,MixpanelPersistence.prototype.properties=MixpanelPersistence.prototype.properties,MixpanelPersistence.prototype.update_search_keyword=MixpanelPersistence.prototype.update_search_keyword,MixpanelPersistence.prototype.update_referrer_info=MixpanelPersistence.prototype.update_referrer_info,MixpanelPersistence.prototype.get_cross_subdomain=MixpanelPersistence.prototype.get_cross_subdomain,MixpanelPersistence.prototype.clear=MixpanelPersistence.prototype.clear;var eL={},extend_mp=function(){$.each(eL,function(e,t){t!==ey&&(y[t]=e)}),y._=$},eE=(m=0,(y=new MixpanelLib).init=function(e,t,r){if(r)return y[r]||(y[r]=eL[r]=create_mplib
1(e,t,r),y[r]._loaded()),y[r];var i=y;eL[ey]?i=eL[ey]:e&&((i=create_mplib(e,t,ey))._loaded(),eL[ey]=i),y=i,1===m&&(g[ey]=y),extend_mp()},y.init(),function(){function dom_loaded_handler(){dom_loaded_handler.done||(dom_loaded_handler.done=!0,ew=!0,ek=!1,$.each(eL,function(e){e._dom_loaded()}))}function do_scroll_check(){try{E.documentElement.doScroll("left")}catch(e){setTimeout(do_scroll_check,1);return}dom_loaded_handler()}if(E.addEventListener)"complete"===E.readyState?dom_loaded_handler():E.addEventListener("DOMContentLoaded",dom_loaded_handler,!1);else if(E.attachEvent){E.attachEvent("onreadystatechange",dom_loaded_handler);var e=!1;try{e=null===g.frameElement}catch(e){}E.documentElement.doScroll&&e&&do_scroll_check()}$.register_event(g,"load",dom_loaded_handler,!0)}(),y);e.exports=eE}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.