!function(o,e,t){function l(o){let e=o.querySelectorAll("meta"),t={};return e.forEach(o=>{let e=o.getAttribute("name"),l=o.getAttribute("property"),i=o.getAttribute("http-equiv"),a=o.getAttribute("content");e&&a?t[e]=a:l&&a?t[l]=a:i&&a&&(t[i]=a)}),t}o.id5=o.id5||!1,o.aref=o.aref||!1,o.host=o.host||!1,o.meta=o.meta||!1,o.puid=o.puid||"",o.partner=o.partner||"",o.pdKeys=o.pdKeys||"",o.Init=function(e){h(e||{}).then(e=>{if(o.pdKeys=e,o.id5)ID5.init({partnerId:1618,pd:p(e)}).onAvailable(function(e){o.id5=e.getUserId(),o.callEP()});else{var t=document.createElement("script");t.src="https://cdn.id5-sync.com/api/1.0/id5-api.js",t.type="text/javascript",t.async=t.defer=!0,t.onload=function(){ID5.init({partnerId:1618,pd:p(e)}).onAvailable(function(e){o.id5=e.getUserId(),o.callEP()})},document.head.appendChild(t)}})},o.init=o.Init,o.callback=function(e,t){let l=e||"",i=t||{},{partner:a,puid:r,email:n,...c}=i;o.Init(i),a&&(o.partner=a),r&&(o.puid=r),d(n).then(e=>{n=e,c={email:n,...c},o.meta={...o.meta,...c},o.callEP(l)})},o.callEP=function(e){let t=document.createElement("img");t.style.height="1",t.style.width="1",t.style.display="none",t.alt="";let l=JSON.stringify({...o.meta,...o.pdKeys});t.src="https://us-central1-adsmovil-data-providers.cloudfunctions.net/id5?id5uid="+o.id5+"&referrer="+o.aref+"&puid="+o.puid+"&partner="+o.partner+"&event_id="+(e||"")+"¶ms="+l,document.body.appendChild(t)};let i={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},a=["icloud.com","me.com",],r=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com",],n=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com",],c=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru",];function s(o){return o.length>1?o:""}function u(o,e){e=function o(e={},t){for(let l in t)void 0===e[l]&&(e[l]=t[l]);return e}(e,i);let t=o.split("@"),l=t.pop(),u=t.join("@"),m=[u,l];if(m[1]=m[1].toLowerCase(),"gmail.com"===m[1]||"googlemail.com"===m[1]){if(e.gmail_remove_subaddress&&(m[0]=m[0].split("+")[0]),e.gmail_remove_dots&&(m[0]=m[0].replace(/\.+/g,s)),!m[0].length)return!1;(e.all_lowercase||e.gmail_lowercase)&&(m[0]=m[0].toLowerCase()),m[1]=e.gmail_convert_googlemaildotcom?"gmail.com":m[1]}else if(a.indexOf(m[1])>=0){if(e.icloud_remove_subaddress&&(m[0]=m[0].split("+")[0]),!m[0].length)return!1;(e.all_lowercase||e.icloud_lowercase)&&(m[0]=m[0].toLowerCase())}else if(r.indexOf(m[1])>=0){if(e.outlookdotcom_remove_subaddress&&(m[0]=m[0].split("+")[0]),!m[0].length)return!1;(e.all_lowercase||e.outlookdotcom_lowercase)&&(m[0]=m[0].toLowerCase())}else if(n.indexOf(m[1])>=0){if(e.yahoo_remove_subaddress){let d=m[0].split("-");m[0]=d.length>1?d.slice(0,-1).join("-"):d[0]}if(!m[0].length)return!1;(e.all_lowercase||e.yahoo_lowercase)&&(m[0]=m[0].toLowerCase())}else c.indexOf(m[1])>=0?(e.all_lowercase||e.yandex_lowercase)&&(m[0]=m[0].toLowerCase()):e.all_lowercase&&(m[0]=m[0].toLowerCase());return m.join("@")}function m(o){let e=new TextEncoder().encode(o);return crypto.subtle.digest("SHA-256",e).then(o=>{let e=Array.from(new Uint8Array(o)),t=e.map(o=>o.toString(16).padStart(2,"0")).join("");return t})}async function d(o){return o=o?"string"==typeof o?await m(u(o)):await m(u(o[0])):null}async function h(e){let t=[],i=e.email?m(u(e.email)):Promise.resolve(null),a=e.phone?m(e.phone):Promise.resolve(null),[r,n]=await Promise.all([i,a]);if(!o.meta)try{window.parent!==window?(o.meta=l(window.parent.document),o.aref=window.parent.location.href,o.host=window.parent.location.hostname):(o.meta=l(document),o.aref=window.location.href,o.host=window.location.hostname)}catch(c){o.meta=l(document),o.aref=window.location.href,o.host=window.location.hostname}return r&&(t[1]=r),n&&(t[2]=n),e.puid&&(t[5]=e.puid,o.puid=e.puid),e.partner&&(t[4]=e.partner,o.partner=e.partner),e.idfa&&(t[6]=e.idfa),e.gaid&&(t[7]=e.gaid),t[8]=o.aref,t[9]=o.host,e.ipv4&&(t[10]=e.ipv4),e.ipv6&&(t[11]=e.ipv6),t[12]=navigator.userAgent,e.idfv&&(t[14]=e.idfv),t}function p(o){let e=Object.keys(o).map(e=>e+"="+o[e]).join("&"),t=btoa(e);return t}function $(o){for(var e=o+"=",t=document.cookie.split(";"),l=0;l