window.mouseflowHtmlDelay = 5000;
function getUserIdFromDataLayer() {
var dataLayer = window.dataLayer || [];
var userId = null;
for (var i = dataLayer.length - 1; i >= 0; i--) {
if (dataLayer[i].session && dataLayer[i].session.user && dataLayer[i].session.user.userID) {
userId = dataLayer[i].session.user.userID;
break;
}
}
return userId;
}
// Example usage
var userId = getUserIdFromDataLayer();
window._mfq = window._mfq || [];
window._mfq.push(["setVariable", "User ID", userId]);window.mouseflowHtmlDelay = 4000;;window.mouseflowAutoStart = false;
setTimeout(function() {
function loadMouseflow() {
if (typeof mouseflow != 'undefined' && window.name.indexOf('mf_liveHeatmaps') < 0) {
mouseflow.start();
}
document.removeEventListener('mousemove', loadMouseflow);
document.removeEventListener('touchstart', loadMouseflow);
document.removeEventListener('scroll', loadMouseflow);
}
document.addEventListener('mousemove', loadMouseflow);
document.addEventListener('touchstart', loadMouseflow);
document.addEventListener('scroll', loadMouseflow);
}, 500);;var mouseflowCrossDomainSupport = true;;window._mfq = window._mfq || []; window._mfq.push(['config', 'includeQueryStringInPath', true]);;if (window.ub && window.ub.page && window.ub.page.variantId){
if (window.mouseflowCrossDomainSupport)
var mouseflowPath = window.location.pathname + "variant-" + window.ub.page.variantId;
else
var mouseflowPath = window.location.host + window.location.pathname + "variant-" + window.ub.page.variantId;
}var mouseflowDisableKeyLogging = true;if(typeof mouseflow==='undefined'&&typeof mouseflowPlayback==='undefined'){(function(){var _184=true;var _183=false;var _155=[{_15:"startsWith",_6:"pedido.olx.com.br/",_21:"Tela de Detalhes do Pedido"},{_15:"startsWith",_6:"pedido-cdn.olx.com.br",_21:"Tela de Detalhes do Pedido CDN"},{_15:"startsWith",_6:"/.*\\?.*q=.*/",_21:"listing de categorias com busca - olx"},{_15:"startsWith",_6:"(?=.*\\/(imoveis|autos-e-pecas|para-a-sua-casa|eletronicos-e-celulares|musica-e-hobbies|esportes-e-lazer|artigos-infantis|animais-de-estimacao|moda-e-beleza|agro-e-industria|comercio-e-escritorio|servicos|vagas-de-emprego|moveis|eletrodomesticos|utilidades-domesticas|objetos-de-decoracao|materiais-de-construcao-e-jardim|celulares|computadores-e-acessorios|audio-tv-video-e-fotografia|videogames|instrumentos-musicais|hobbies-e-colecoes|livros-e-revistas|cds-dvds|antiguidades|esportes-e-ginastica|ciclismo|roupas-e-calcados|bijouteria-relogios-e-acessorios|beleza-e-saude|bolsas-malas-e-mochilas|brasil|estado-).*)(?!.*-\\d{9}).*",_21:"listing de categorias sem busca - geral OLX"},{_15:"startsWith",_6:"comprasegura.olx.com.br/com-adesao",_21:"Checkout fake"},{_15:"contains",_6:"goldpayments.olx.com.br/ui",_21:"Checkout Produtos Pagos"},{_15:"equals",_6:"olx-pay.olx.com.br/aderir?",_21:"Aderir"},{_15:"endsWith",_6:"/imoveis/",_21:"home imoveis"},{_15:"regex",_6:"(?=.*\\/autos-e-pecas.*)(?!.*-\\d{9}).*",_21:"listing autos"},{_15:"regex",_6:"(?=.*\\/autos-e-pecas.*)(?=.*-\\d{9}).*",_21:"adview autos"},{_15:"regex",_6:"\\/moda-e-beleza",_21:"home de moda"},{_15:"startsWith",_6:"www.olx.com.br/moveis",_21:"moveis"},{_15:"startsWith",_6:"/para-a-sua-casa/cama-mesa-e-banho",_21:"cama mesa e banho"},{_15:"startsWith",_6:"/para-a-sua-casa/casa-inteligente",_21:"casa inteligente"},{_15:"startsWith",_6:"/para-a-sua-casa/seguranca-residencial",_21:"seguranca residencial"},{_15:"startsWith",_6:"/moveis/cadeiras-de-escritorio-e-gamer",_21:"cadeiras de escritorio e gamer"},{_15:"startsWith",_6:"/moveis/moveis-infantis",_21:"moveis infantis"},{_15:"startsWith",_6:"/moveis/moveis-para-organizacao",_21:"moveis para organizacao"},{_15:"startsWith",_6:"/eletro/eletroportateis-para-cuidados-pessoais",_21:"eletro cuidados pessoais"},{_15:"startsWith",_6:"/eletro/eletroportateis-para-cozinha-e-limpeza",_21:"eletro cozinha e limpeza"},{_15:"startsWith",_6:"/materiais-de-construcao/alvenaria",_21:"alvenaria"},{_15:"startsWith",_6:"/materiais-de-construcao/ferramentas-de-pintura",_21:"ferramentas de pintura"},{_15:"startsWith",_6:"/materiais-de-construcao/pisos-e-revestimentos",_21:"pisos e revestimentos"},{_15:"regex",_6:"(?=.*\\/imoveis.*)(?=.*-\\d{9}).*",_21:"adview imoveis"},{_15:"regex",_6:"(?=.*\\/(para-a-sua-casa|eletronicos-e-celulares|musica-e-hobbies|esportes-e-lazer|artigos-infantis|moda-e-beleza|comercio-e-escritorio|moveis|eletrodomesticos|utilidades-domesticas|objetos-de-decoracao|materiais-de-construcao-e-jardim|celulares|computadores-e-acessorios|audio-tv-video-e-fotografia|games|instrumentos-musicais|hobbies-e-colecoes|livros-e-revistas|cds-dvds|antiguidades|esportes-e-ginastica|ciclismo|roupas-e-calcados|bijouteria-relogios-e-acessorios|beleza-e-saude|bolsas-malas-e-mochilas).*)(?=.*-\\d{9}).*",_21:"adview goods"},{_15:"startsWith",_6:"/aderir?=",_21:"Modelo transacional"},{_15:"contains",_6:"adquirir.olx.com.br",_21:"Plataforma POS"}];var _156=[];var _25='https://us.mouseflow.com';function _9(_357,_141){_141=(typeof _141!=='undefined'?_141:'');if(_7.debug)console.log('MF'+(_7.includeDebugTime?' - '+_141:'')+': '+_357)}var _56=new _336(window);var _39=new _297(window);var _5=new _305(window,Math,JSON,_56);var _13=new _290(_56,_5);var _40=new _251('local',window,_5,_9);var _224=new _251('session',window,_5,_9);var _213=new _338(window);var _7=new _310(window,_40,_184,_183);_7._127();_7._160=[".sc-hdxRZL",".sc-ipEyDJ.kwRQet.sc-jnhPJk.byhExU",".sc-ipEyDJ.hBCoqU","#tooltip-zipcode",".sc-bwzfXH.tLzmq"];_7._180=[];_7._113=["#vehicle_tag","#vehicle_brand"];_7._379=[{_18:"ad-edit-optin",_10:"Click",_0:".sc-cFlXAS",_19:"https://conta.olx.com.br/anuncios/publicados",_20:null},{_18:"ai-autos",_10:"Click",_0:"#category_item-2000",_19:"https://www2.olx.com.br/ai/form/0/",_20:"https://www2.olx.com.br/ai/form/0/-ct-ai-autos"},{_18:"teste",_10:"Click",_0:".sc-jYIdPM",_19:"https://conta.olx.com.br/chats",_20:null},{_18:"search-home-autos",_10:"Click",_0:"#searchtext-input",_19:"https://www.olx.com.br/autos-e-pecas",_20:"https://www.olx.com.br/autos-e-pecas-ct-search-home-autos"},{_18:"BT-Vericação-de-segurança",_10:"Click",_0:"div:nth-of-type(1) > .sc-geAPOV .sc-ifAKCX",_19:"https://conta.olx.com.br/anuncios/inativos",_20:"https://conta.olx.com.br/anuncios/inativos-ct-BT-Vericação-de-segurança"},{_18:"mf-ai-carros",_10:"Click",_0:"#category_item-2020",_19:"https://www2.olx.com.br/ai/form/0",_20:null},{_18:"carro-placa",_10:"Click",_0:"#vehicle_tag",_19:"https://www2.olx.com.br/ai/form/0/#seuanuncio",_20:null},{_18:"ai-eletro-cel",_10:"Click",_0:"#category_item-3000",_19:"https://www2.olx.com.br/ai/form/0/",_20:"https://www2.olx.com.br/ai/form/0/-ct-ai-eletro-cel"},{_18:"ai-para-casa",_10:"Click",_0:"#category_item-5000",_19:"https://www2.olx.com.br/ai/form/0/",_20:"https://www2.olx.com.br/ai/form/0/-ct-ai-para-casa"},{_18:"ai-imoveis",_10:"Click",_0:"#category_item-1000",_19:"https://www2.olx.com.br/ai/form/0/",_20:"https://www2.olx.com.br/ai/form/0/-ct-ai-imoveis"},{_18:"chat-adview",_10:"Click",_0:".ad__sc-12hn837-0",_19:"",_20:null},{_18:"adview-facility-defaut",_10:"Click",_0:".ad__sc-1mqlipf-0",_19:"",_20:null},{_18:"banner-economico",_10:"Click",_0:"a:nth-of-type(1) .sc-1is9sdz-0",_19:"https://www.olx.com.br/autos-e-pecas",_20:"https://www.olx.com.br/autos-e-pecas-ct-banner-economico"},{_18:"banner-app",_10:"Click",_0:"a:nth-of-type(2) .sc-1is9sdz-0",_19:"https://www.olx.com.br/autos-e-pecas",_20:"https://www.olx.com.br/autos-e-pecas-ct-banner-app"},{_18:"banner-rural",_10:"Click",_0:"a:nth-of-type(3) .sc-1is9sdz-0",_19:"https://www.olx.com.br/autos-e-pecas",_20:"https://www.olx.com.br/autos-e-pecas-ct-banner-rural"},{_18:"banner-conforto",_10:"Click",_0:"a:nth-of-type(4) .sc-1is9sdz-0",_19:"https://www.olx.com.br/autos-e-pecas",_20:"https://www.olx.com.br/autos-e-pecas-ct-banner-conforto"},{_18:"banner-antigos",_10:"Click",_0:"a:nth-of-type(5) .sc-1is9sdz-0",_19:"https://www.olx.com.br/autos-e-pecas",_20:"https://www.olx.com.br/autos-e-pecas-ct-banner-antigos"},{_18:"pesquisa-estilo-carro",_10:"Click",_0:".eICDwh > img",_19:"https://www.olx.com.br/autos-e-pecas",_20:"https://www.olx.com.br/autos-e-pecas-ct-pesquisa-estilo-carro"},{_18:"close-second-confirm",_10:"Click",_0:".olx-modal__dialog--show svg",_19:"https://comprasegura.olx.com.br/?listId=1264350773&source=ADVIEW",_20:"https://comprasegura.olx.com.br/-ct-close-second-confirm"},{_18:"ai-para-casa-tecidos",_10:"Click",_0:"#category_item-5130",_19:"https://www2.olx.com.br/desapega",_20:"https://www2.olx.com.br/desapega-ct-ai-para-casa-tecidos"},{_18:"ai-para-casa-inteligente",_10:"Click",_0:"#category_item-5150",_19:"https://www2.olx.com.br/desapega",_20:"https://www2.olx.com.br/desapega-ct-ai-para-casa-inteligente"},{_18:"ai-para-casa-seguranca",_10:"Click",_0:"#category_item-5190",_19:"https://www2.olx.com.br/desapega",_20:"https://www2.olx.com.br/desapega-ct-ai-para-casa-seguranca"},{_18:"ai-moveis-cadeiras",_10:"Click",_0:"#category_item-21030",_19:"https://www2.olx.com.br/ai/form/0/",_20:"https://www2.olx.com.br/ai/form/0/-ct-ai-moveis-cadeiras"},{_18:"ai-moveis-infantis",_10:"Click",_0:"#category_item-21100",_19:"https://www2.olx.com.br/ai/form/0/",_20:"https://www2.olx.com.br/ai/form/0/-ct-ai-moveis-infantis"},{_18:"ai-moveis-organizacao",_10:"Click",_0:"#category_item-21090",_19:"https://www2.olx.com.br/ai/form/0/",_20:"https://www2.olx.com.br/ai/form/0/-ct-ai-moveis-organizacao"},{_18:"ai-eletro",_10:"Click",_0:"#category_item-20000",_19:"https://www2.olx.com.br/ai/form/0/",_20:"https://www2.olx.com.br/ai/form/0/-ct-ai-eletro"},{_18:"ai-eletro-pessoais",_10:"Click",_0:"#category_item-20070",_19:"https://www2.olx.com.br/ai/form/0/",_20:"https://www2.olx.com.br/ai/form/0/-ct-ai-eletro-pessoais"},{_18:"ai-eletro-limpeza",_10:"Click",_0:"#category_item-20060",_19:"https://www2.olx.com.br/ai/form/0/",_20:"https://www2.olx.com.br/ai/form/0/-ct-ai-eletro-limpeza"},{_18:"ai-materias-construcao",_10:"Click",_0:"#category_item-22000",_19:"https://www2.olx.com.br/ai/form/0/",_20:"https://www2.olx.com.br/ai/form/0/-ct-ai-materias-construcao"},{_18:"toggle-festival",_10:"Click",_0:".olx-toggle-switch__icon--checked",_19:"https://www.olx.com.br/autos-e-pecas/carros-vans-e-utilitarios/estado-sp?vt=1&lis=home_autos_festival_search",_20:null}];_7._72='b837e449-83ee-457f-9ef5-8f976953f2bc';_7._381=true;_7._382='10000000';_7._197('appUrl',_25);function _287(_1,_7,_51,_5,_13,_123,_40){var _25,_72,_9,_55;var _194='mf_liveHeatmaps';var _16;var _122=[];var _90;var _140=false;function _52(_196,_119,_173,_100){_72=_196;_25=_173;_9=_119;_140=window.location.search.indexOf('mf_legacy=1')!==-1?true:false;_9('Live heatmaps starting');_55=_51._121();if(!_55){_9('Live heatmaps not initiated - could not create root HTML element');return}if(!_1.opener){_9('Live heatmaps not initiated - window.opener is missing');return}if(typeof _100==='function'){_100(function(){_128()})}else{_128()}}function _78(){_130()}function _128(){_13._22(_1,'message',function(_10){if(_10.origin!==_25)return;_153(_10.data);switch(_10.data.message){case'MouseflowLiveHeatmaps_Init_Received':_1.clearInterval(_90);break;case'MouseflowLiveHeatmaps_Init_Success':case'MouseflowLiveHeatmaps_Hello':_299(_10.data.minDate,_10.data.filters,_10.data.filteredViews,_10.data.user,_10.data.websiteSettings.cssSelectorTracked);_178(_10.data.scripts,function(){var message;if(_140){message={mfCommand:'settings',value:{websiteSettings:_10.data.websiteSettings}}}else{_231();message={mfCommand:'settings_liveheatmap',value:_16}}_191(JSON.stringify(message))});break;case'MouseflowLiveHeatmaps_StreamData_Chunk':_110(_10.data.requestUrl,true)._192(_10.data.dataChunk);break;case'MouseflowLiveHeatmaps_StreamData_Success':_110(_10.data.requestUrl)._69();break;case'MouseflowLiveHeatmaps_StreamData_Error':_110(_10.data.requestUrl)._86();break;case'MouseflowLiveHeatmaps_RequestData_Success':_110(_10.data.requestUrl)._69(_10.data.responseText);break;case'MouseflowLiveHeatmaps_RequestData_Error':_110(_10.data.requestUrl)._86();break}});_90=_1.setInterval(_210,500);_1.setTimeout(function(){_1.clearInterval(_90)},10000);_210()}function _210(){_112({message:'MouseflowLiveHeatmaps_Init',websiteId:_72,legacy:_140})}function _299(_301,_70,_302,_303,_113){_16=_240();var _102=_215();var _139=_7.location.search.match(/mf_liveHeatmaps=([^&]+)/);var _193=typeof _1.name==='string'&&_1.name.indexOf('mf_liveHeatmaps')===0?_1.name.slice(15).split('_'):[];var _300=_139||_193[1]==='init';if(_16&&!_300){_16.filters.url=_102.url;_45(_16);return}_16={isMinimized:false,appUrlBase:_25,websiteId:_72,filters:_102,minDate:_301,filteredViews:_302,user:_303,cssSelectorTracked:_113};if(_70&&_70.view){_16.selectedFilteredView=_70.view;delete _70.view}if(_70){Object.keys(_70).forEach(function(_17){var _6=_70[_17];if(_6 instanceof Date)_6=_138(_6);_16.filters[_17]=_6})}if(_139&&_139[1]!=='1')_16.filters.maptype=_139[1];else if(_193[2])_16.filters.maptype=_193[2];_45(_16);_1.name='mf_liveHeatmaps'}function _231(){_16.devices=_16.filters.device?[_16.filters.device]:[];_16.mapType=_16.filters.maptype;_16.url=_16.filters.url=_123._137()}function _178(_91,_67){if(!_91)return;var _85=0;function _116(){if(_85>=_91.length){_67();return}var _49=_91[_85];_152(_49);_85++;var _79=document.createElement('script');if(_49.startsWith('/'))_79.src=_25+_49;else _79.src=_25+'/'+_49;_79.onload=_116;_55.appendChild(_79)}_116()}function _240(){return _40._264(_194)}function _45(_16){if(_9)_9('Live heatmaps saving settings');_40._263(_194,_16)}function _130(){if(_9)_9('Live heatmaps removing settings');_40._269(_194)}function _110(_37,_308){var _195=_122.filter(function(_307){return _307._37===_37})[0];if(!_308&&_195)_122.splice(_122.indexOf(_195),1);return _195}function _316(_36){if(typeof _36!=='object')return;_16=_240();var _102=_215();Object.keys(_36).forEach(function(_17){var _6=_36[_17];if(_6 instanceof Date)_6=_138(_6);_16.filters[_17]=_6||undefined});Object.keys(_102).forEach(function(_17){if(!_16.filters[_17])_16.filters[_17]=_102[_17]});if(_16.filters.view){_16.selectedFilteredView=_16.filters.view;delete _16.filters.view}_45(_16)}function _215(){var _95=new Date();_95=new Date(_95.getFullYear(),_95.getMonth(),_95.getDate());var _185=new Date(_95);_185.setDate(_185.getDate()-29);return{maptype:'click',url:_123._137(),fromdate:_138(_185),todate:_138(_95)}}function _112(_24){_1.opener.postMessage(_24,_25);_9('Sent '+_24.message+(_24.requestUrl?', request URL: '+_24.requestUrl:''))}function _191(_24){_1.postMessage(_24,_1.location.origin);_9('Sent '+_24.message+(_24.requestUrl?', request URL: '+_24.requestUrl:''))}function _153(_24){if(_24.message&&_24.message.indexOf('MouseflowLiveHeatmaps_')===0)_9('Received '+_24.message+(_24.requestUrl?', request URL: '+_24.requestUrl:''))}function _152(_49){_9('Live heatmaps loading script: '+_49)}function _138(_186){return _186.getFullYear()+'-'+_235(_186.getMonth()+1,'00')+'-'+_235(_186.getDate(),'00')}function _235(_315,_234){return(_234+_315).slice(-_234.length)}this._52=_52;this._78=_78;this._202=function(_36){_316(_36);if(_140){_191('{"mfCommand":"MouseflowHeatmap_UpdateHeatmap"}')}else{_231();var message={mfCommand:'settings_change',value:{settings:_16,reloadData:_36&&_36.maptype?false:true}};_191(JSON.stringify(message))}_9('Sent postmessage updateheatmap')};_1.mouseflowHeatmap={streamData:function(_37,_192,_69,_86){_122.push({_37:_37,_192:_192||function(){},_69:_69||function(){},_86:_86||function(){}});_112({message:'MouseflowLiveHeatmaps_StreamData',requestUrl:_37})},getData:function(_37,_69,_86){_122.push({_37:_37,_69:_69||function(){},_86:_86||function(){}});_112({message:'MouseflowLiveHeatmaps_RequestData',requestUrl:_37})}}}function _282(_1,_51,_56,_39,_5,_13,_40,_7){var _12=_1.document,_25,_72,_9,_3,_55,_11,_209,_207,_205,_77,_54,_124,_76,_221,_87,_118,_107,_75,_66,_132;function _52(_296,_196,_160,_180,_113,_119){_25=_296;_72=_196;_9=_119;_3=_339()||{_73:false,_47:'exclude',_33:_160||[],_35:_180||[],_42:_113||[]};_9('Starting privacy tool');_55=_51._121();if(!_55){_9('Privacy tool not initiated - could not create root HTML element');return}_309();_39._84(function(){_294();_45(_3)},1000);}function _78(){_285();_51._199()}function _309(){_13._22(_1,'message',function(event){if(event.origin!==_25)return;switch(event.data.message){case'MouseflowPrivacyTool_Hello':_9('Privacy tool API ready');_107=event.source;if(event.data.cssSelectorBlacklist){_3._33=event.data.cssSelectorBlacklist;_3._35=event.data.cssSelectorWhitelist;_3._42=event.data.cssSelectorTracked}_127();break;case'MouseflowPrivacyTool_Save_Success':_9('Successfully saved CSS lists');if(_75)_75();_75=undefined;_66=undefined;break;case'MouseflowPrivacyTool_Save_Failed':_9('Failed saving CSS lists');if(_66)_66();_75=undefined;_66=undefined;_166('Uh oh! We couldn\'t save your changes.
'+'Please refresh the page and try again.');break;case'MouseflowPrivacyTool_Unauthorized':_9('Privacy tool API logged out - cannot save');if(_66)_66();_75=undefined;_66=undefined;_166('Uh oh! We couldn\'t save your changes.
'+'Please log into Mouseflow and try again.');break}});if(_1.opener){_9('Loading privacy tool API using window.opener');_1.opener.postMessage({message:'MouseflowPrivacyTool_Hello'},_25)}_39._84(function(){if(!_107){_9('Loading privacy tool API using iframe');var _117=_12.createElement('iframe');_117.style.width='0px';_117.style.height='0px';_117.style.display='none';_117.src=_25+'/websites/'+_72+'/privacytool';_55.appendChild(_117);_39._84(function(){if(!_107){_9('Loading privacy tool API timed out');_346('We\'re having trouble loading the Privacy Tool on this page. Please try '+'refreshing the page or logging in to Mouseflow and reloading the Privacy Tool from there.
'+'If you need help, please don\'t hesitate to reach out to us at: support@mouseflow.com')}},5000)}},2000)}function _294(){_11=_350(_3);_209=_11.querySelector('.tool-exclude output');_207=_11.querySelector('.tool-whitelist output');_205=_11.querySelector('.tool-track output');_77=_11.querySelector('.tool-status-text');_54=_11.querySelector('.btn-widget');_124=_11.querySelector('.tool-loading h2');_3._33.forEach(_241);_3._35.forEach(_225);_3._42.forEach(_223);_55.appendChild(_11);_76=_351();_11.appendChild(_76);_5._115(_12.body,'mf-privacy-tool-opened',!_3._73);_279();_127()}function _127(){if(_11&&_107){_5._23(_11,'is-loading');_61();_278();_131()}}function _159(){_130();_78();_1.close()}function _279(){_13._22(_11,'click','.mf-tool-close',_159,{_50:true})}function _278(){_13._22(_11,'click','.mf-tool-toggle',_288,{_50:true});_13._22(_11,'click','.mf-tool-close',_159,{_50:true});_13._22(_11,'click','.mf-tool-exclude',_283,{_50:true});_13._22(_11,'click','.mf-tool-whitelist',_293,{_50:true});_13._22(_11,'click','.mf-tool-track',_275,{_50:true});_13._22(_11,'click','.highlight-excluded',_281,{_50:true});_13._22(_11,'click','.highlight-whitelisted',_317,{_50:true});_13._22(_11,'click','.highlight-tracked',_324,{_50:true});_13._22(_11,'click','.mf-remove-excluded',_327,{_50:true});_13._22(_11,'click','.mf-remove-whitelisted',_326,{_50:true});_13._22(_11,'click','.mf-remove-tracked',_358,{_50:true});_13._22(_11,'submit',_359,{_50:true});_13._22(_12,'mouseover',_361,{_46:true});_13._22(_12,'mouseleave',_363,{_46:true});_13._22(_12,'mouseup',_364,{_46:true});_13._22(_12,'mouseenter',_80,{_46:true});_13._22(_12,'mousemove',_80,{_46:true});_13._22(_12,'mousedown',_80,{_46:true});_13._22(_12,'click',_80,{_46:true});_13._22(_12,'mouseout',_80,{_46:true});_13._22(_12,'scroll',_61,{_46:true,_198:true});_13._22(_1,'resize',_61,{_46:true,_198:true});var MutationObserver=_1.MutationObserver||_1.WebKitMutationObserver||_1.MozMutationObserver;if(MutationObserver){_118=new MutationObserver(function(_219){var _280=_219.some(function(_68){if(_68.target.nodeType!==1||_5._38(_68.target,'#mouseflow *'))return false;var _277=_68.oldValue&&_68.oldValue.indexOf('mf-highlight')!==-1;var _273=_68.target.className&&_68.target.className.indexOf('mf-highlight')!==-1;var _276=_277||_273;if(_68.type==='attributes'&&_68.attributeName==='class'&&_276)return false;return true});if(_280)_61();_219.forEach(function(_68){_68.addedNodes.forEach(function(_182){if(!_182.shadowRoot)return;_118.observe(_182.shadowRoot,{childList:true,subtree:true});_131(_182)})})});_118.observe(_12,{attributes:true,childList:true,characterData:true,subtree:true,attributeOldValue:true})}}function _285(){_13._311();if(_118)_118.disconnect()}function _131(_63){if(!_132)_132=_341();if(!_63)_63=_12;for(var _111=_56._331(_63);_111;_111=_56._334(_111)){_131(_111);var _82=_111.shadowRoot;if(!_82)continue;_131(_82);if(_82.adoptedStyleSheets){if(_82.adoptedStyleSheets.indexOf(_132)>-1)continue;var _218=Array.prototype.slice.call(_82.adoptedStyleSheets);_218.push(_132);_82.adoptedStyleSheets=_218}else{if(_82.querySelector('.mf-privacy-tool-style'))continue;var _59=_12.createElement('style');_59.type='text/css';_59.innerHTML=_179();_59.className='mf-privacy-tool-style';_82.appendChild(_59)}}}function _288(){_3._73=!_3._73;_45(_3);_5._115(_11,'tool-closed',_3._73);_5._115(_12.body,'mf-privacy-tool-opened',!_3._73);var _129=_11.getElementsByClassName('step')[0];var _125=_11.getElementsByClassName('tool-container')[0];if(_3._73){_5._23(_129,'fade-out');_5._30(_129,'fade-in');_5._23(_125,'fade-in');_5._30(_125,'fade-out')}else{_5._23(_129,'fade-in');_5._30(_129,'fade-out');_5._23(_125,'fade-out');_5._30(_125,'fade-in')}}function _283(){_3._47='exclude';_45(_3);_5._23(_11.getElementsByClassName('mf-tool-whitelist')[0],'active');_5._23(_11.getElementsByClassName('tool-whitelist')[0],'active');_5._23(_11.getElementsByClassName('mf-tool-track')[0],'active');_5._23(_11.getElementsByClassName('tool-track')[0],'active');_5._30(_11.getElementsByClassName('mf-tool-exclude')[0],'active');_5._30(_11.getElementsByClassName('tool-exclude')[0],'active')}function _293(){_3._47='whitelist';_45(_3);_5._23(_11.getElementsByClassName('mf-tool-exclude')[0],'active');_5._23(_11.getElementsByClassName('tool-exclude')[0],'active');_5._23(_11.getElementsByClassName('mf-tool-track')[0],'active');_5._23(_11.getElementsByClassName('tool-track')[0],'active');_5._30(_11.getElementsByClassName('mf-tool-whitelist')[0],'active');_5._30(_11.getElementsByClassName('tool-whitelist')[0],'active')}function _275(){_3._47='track';_45(_3);_5._23(_11.getElementsByClassName('mf-tool-exclude')[0],'active');_5._23(_11.getElementsByClassName('tool-exclude')[0],'active');_5._23(_11.getElementsByClassName('mf-tool-whitelist')[0],'active');_5._23(_11.getElementsByClassName('tool-whitelist')[0],'active');_5._30(_11.getElementsByClassName('mf-tool-track')[0],'active');_5._30(_11.getElementsByClassName('tool-track')[0],'active')}function _281(_8){if(_3._47==='exclude'){_226(_8.target.getAttribute('data-target'));_61()}}function _317(_8){if(_3._47==='whitelist'){_227(_8.target.getAttribute('data-target'));_61()}}function _324(_8){if(_3._47==='track'){_228(_8.target.getAttribute('data-target'));_61()}}function _327(_8){_226(_8.target.parentNode.getAttribute('data-target'));_61()}function _326(_8){_227(_8.target.parentNode.getAttribute('data-target'));_61()}function _358(_8){_228(_8.target.parentNode.getAttribute('data-target'));_61()}function _359(){_342();_377(_3._33,_3._35,_3._42,function(){_212();_54.innerHTML='Saved';_130();_39._84(_159,500)},function(){_212()})}function _361(_8){_39._162(_221);var _220=_12.getElementsByClassName('mf-highlight');for(var _2=0;_2<_220.length;_2++){_5._23(_220[_2],'mf-highlight')}_5._30(_76,'hidden');if(_80(_8)||_222(_8.target))return;_5._30(_8.target,'mf-highlight');_221=_39._84(function(){var _31=_8.target.getBoundingClientRect();_76.style.left=_31.left+_1.pageXOffset+'px';_76.style.top=_31.top+_1.pageYOffset+'px';_76.style.width=_31.width+'px';_76.style.height=_31.height+'px';_5._23(_76,'hidden')},75)}function _363(_8){if(_80(_8))return;if(_8.target===_12){_5._30(_76,'hidden')}}function _364(_8){if(_80(_8))return;if(_8.button!==0||_222(_8.target))return;_5._23(_8.target,'mf-highlight');var _0=_355(_8.target);if(_3._47==='exclude'){_241(_0)}else if(_3._47==='whitelist'){_225(_0)}else{_223(_0)}_61()}function _80(_8){if(_3._73||_8.target.nodeType!==1||_5._38(_8.target,'#mouseflow *'))return true;_8.preventDefault();_8.stopPropagation();return false}function _222(_4){return _4===_12.body||_5._38(_4,'html')||(_3._47==='whitelist'&&(!/INPUT|TEXTAREA/.test(_4.tagName)||/checkbox|radio|button|submit/.test(_4.type)))}function _223(_0){if(_0&&_3._42.indexOf(_0)===-1){_3._42.unshift(_0);_45(_3)}_99()}function _241(_0){if(_0&&_3._33.indexOf(_0)===-1){_3._33.unshift(_0);_45(_3)}_99()}function _225(_0){if(_0&&_3._35.indexOf(_0)===-1){_3._35.unshift(_0);_45(_3)}_99()}function _226(_0){if(_0&&_3._33.indexOf(_0)!==-1){_3._33=_3._33.filter(function(_109){return _109!==_0});_45(_3)}_99()}function _227(_0){if(_0&&_3._35.indexOf(_0)!==-1){_3._35=_3._35.filter(function(_109){return _109!==_0});_45(_3)}_99()}function _228(_0){if(_0&&_3._42.indexOf(_0)!==-1){_3._42=_3._42.filter(function(_109){return _109!==_0});_45(_3)}_99()}function _61(){_39._162(_87);if(!_87){_39._84(function(){if(_87){_39._162(_87);_229();_87=undefined}},200)}_87=_39._84(function(){_229();_87=undefined},100)}function _229(){var _230=_11.querySelectorAll('.highlight-excluded,.highlight-whitelisted,.highlight-tracked'),_2;for(_2=0;_2<_230.length;_2++){_11.removeChild(_230[_2])}_3._33.forEach(function(_0){var _57=_126(_0,_12);for(_2=0;_2<_57.length;_2++){_11.appendChild(_352(_0,_57[_2].getBoundingClientRect()))}});_3._35.forEach(function(_0){var _57=_126(_0,_12);for(_2=0;_2<_57.length;_2++){_11.appendChild(_353(_0,_57[_2].getBoundingClientRect()))}});_3._42.forEach(function(_0){var _57=_126(_0,_12);for(_2=0;_2<_57.length;_2++){_11.appendChild(_295(_0,_57[_2].getBoundingClientRect()))}})}function _126(_0,_28){try{var _57=[];_0.split(',').forEach(function(_0){var _26=_0.split(' > :document-fragment: > ',1);_28.querySelectorAll(_26[0]).forEach(function(_4){if(_26[1]&&_4.shadowRoot){_126(_26[1],_4.shadowRoot).forEach(function(_4){_57.push(_4)})}else{_57.push(_4)}})});return _57}catch(_387){_9('Could not get element from selector: '+ex.message)}}function _377(_33,_35,_42,_69,_371){if(_75){_9('Attempted to save CSS lists while previous save was in progress');return}_75=_69;_66=_371;_348();_107.postMessage({message:'MouseflowPrivacyTool_Save',blacklist:_33,whitelist:_35,tracked:_42},_25);_39._84(function(){if(_75===_69){_9('Saving CSS lists timed out');if(_66)_66();_75=undefined;_66=undefined;_166('Uh oh! We couldn\'t save your changes.
'+'Please log into Mouseflow and try again.')}},7500)}function _355(_4){if(_4==null)return null;try{var _103=[];while(_4){var _28=_4.getRootNode?_4.getRootNode():_12;var _0=_233(_4,_28);_103.unshift(_0);_4=_28.host}return _103.join(' > :document-fragment: > ')}catch(ex){_9('Could not get element selector: '+ex.message);return null}}function _393(_4,_28){var _106=_356(_4,_28);if(!_106)return null;if(_5._38(_4,_106))return _106;var _51=_28.querySelector(_106);var _64=_4;var _26=[];while(_64&&_64!==_51){var _27=_171(_64,_28);if(_27.length===0)_27.push(_236(_64));_26.unshift(_27);_64=_64.parentNode}_26.unshift(_106);return _161(_26,_28)}function _233(_4,_28,_26){if(!_26)_26=[];var _27=_171(_4,_28);_26.unshift(_27);var _0=_161(_26,_28);if(_0)return _0;if(_27.length===0){_27.push(_236(_4));_0=_161(_26,_28);if(_0)return _0}return _233(_4.parentNode,_28,_26)}function _161(_26,_28){var _154=_26.length>1?_332.apply(this,_26):_26[0];for(var _2=0;_2<_154.length;_2++){if(_28.querySelectorAll(_154[_2]).length===1)return _154[_2]}return null}function _356(_4,_28){var _64=_4;while(_64){var _27=_171(_64,_28);for(var _2=0;_2<_27.length;_2++){if(_28.querySelectorAll(_27[_2]).length===1)return _27[_2]}_64=_64.parentNode}return null}function _171(_4,_28){if(_4===_12.body)return['body'];var _27=[];var _63=_4.parentNode;var _2;var _103=_4.getAttribute('id');var _0='#'+_5._81(_103);if(_103&&_28.querySelectorAll(_0).length===1&&!_5._172(_4,'data-mf-ignore-child-ids')&&_7.useIdSelectors)return[_0];var _108=_4.getAttribute('name');_0='[name="'+_5._81(_108)+'"]';if(_108){if(_28.querySelectorAll(_0).length===1)return[_0];if(_63.querySelectorAll(_0).length===1)_27.push(_0)}var _62=_5._97(_4);for(_2=0;_2<_62.length;_2++){_0='.'+_5._81(_62[_2]);if(_28.querySelectorAll(_0).length===1)return[_0];if(_63.querySelectorAll(_0).length===1)_27.push(_0)}for(_2=0;_2<_62.length;_2++){_0=_5._81(_4.tagName.toLowerCase())+'.'+_5._81(_62[_2]);if(_28.querySelectorAll(_0).length===1)return[_0];if(_63.querySelectorAll(_0).length===1)_27.push(_0)}return _27}function _236(_4){var _0=_5._81(_4.tagName.toLowerCase());if(_4.parentNode.querySelectorAll(_0).length===1)return _0;var _238=0;var _135=_4;while(_135){if(_135.tagName===_4.tagName)_238++;_135=_135.previousElementSibling}_0+=':nth-of-type('+_238+')';return _0}function _332(){var _27,_93,_92,_2;var _114=0;var _89=arguments.length-1;var _136=false;var _120=true;while(_114<_89){_93=undefined;for(_2=0;_2<=_114;_2++){_93=_93?_134(_93,arguments[_2],' > '):arguments[_2]}_92=undefined;for(_2=arguments.length-1;_2>=_89;_2--){_92=_92?_134(arguments[_2],_92,' > '):arguments[_2]}var _133=(_114+1)==_89?' > ':' ';_27=_27?_27.concat(_134(_93,_92,_133)):_134(_93,_92,_133);if(_120&&_136){_89--;_136=false;_120=true}else if(_120){_89--;_136=true;_120=false}else{_114++;if(_114!=_89)_89++;_136=true;_120=true}}return _27}function _134(_211,_242,_133){var _27=[];for(var _2=0;_2<_211.length;_2++){for(var _174=0;_174<_242.length;_174++){_27.push(_211[_2]+_133+_242[_174])}}return _27}function _339(){return _40._264('mf_privacyTool')||null}function _45(_16){_40._263('mf_privacyTool',_16)}function _130(){_40._269('mf_privacyTool')}function _342(){_54.setAttribute('disabled','');_54.setAttribute('original-html',_54.innerHTML);_54.innerHTML='• • • •';_5._30(_54,'loading')}function _212(){_5._23(_54,'loading');_54.innerHTML=_54.getAttribute('original-html');_54.removeAttribute('original-html');_54.removeAttribute('disabled')}function _99(){_209.innerHTML=_345(_3._33);_207.innerHTML=_344(_3._35);_205.innerHTML=_343(_3._42);_77.innerHTML=_169(_3._33,_3._35,_3._42);_5._23(_77,'red')}function _346(_165){if(!_124)return;_124.innerHTML=_165;_5._30(_124,'red')}function _166(_165){if(!_77)return;_77.innerHTML=_165;_5._30(_77,'red')}function _348(){if(!_77)return;_77.innerHTML=_169(_3._33,_3._35,_3._42);_5._23(_77,'red')}function _350(_3){var _14=_12.createElement('div');_14.className='privacy-tool is-loading';_14.innerHTML=_362(_3);if(_3._73)_14.className+=' tool-closed';var _59=_12.createElement('style');_59.type='text/css';_59.innerHTML=_179();_14.appendChild(_59);return _14}function _351(){var _14=_12.createElement('div');_14.className='highlight-box';return _14}function _352(_0,_31){var _14=_12.createElement('div');_14.className='highlight-box highlight-excluded';_14.setAttribute('data-target',_0);_14.style.left=_31.left+_1.pageXOffset+'px';_14.style.top=_31.top+_1.pageYOffset+'px';_14.style.width=_31.width+'px';_14.style.height=_31.height+'px';return _14}function _353(_0,_31){var _14=_12.createElement('div');_14.className='highlight-box highlight-whitelisted';_14.setAttribute('data-target',_0);_14.style.left=_31.left+_1.pageXOffset+'px';_14.style.top=_31.top+_1.pageYOffset+'px';_14.style.width=_31.width+'px';_14.style.height=_31.height+'px';return _14}function _295(_0,_31){var _14=_12.createElement('div');_14.className='highlight-box highlight-tracked';_14.setAttribute('data-target',_0);_14.style.left=_31.left+_1.pageXOffset+'px';_14.style.top=_31.top+_1.pageYOffset+'px';_14.style.width=_31.width+'px';_14.style.height=_31.height+'px';return _14}function _362(_3){return('
'+'To get started, just click the element(s) or content you wish to exclude. '+'This will add the necessary CSS selectors to be blocked in the list below.'+'
'+''+'When you\'re finished, click "Hide to navigate" to browse to another page to exclude additional content, or click "Save and close" to keep your changes.'+'
'+''+'For more details and best practices, read our Support Guide.'+'
'+''+'You can whitelist any input field or text area, simply by clicking the field(s) on the page. '+'This will let Mouseflow record input in that field.'+'
'+''+'When you\'re finished, click "Hide to navigate" to browse to another page to exclude additional content, or click "Save and close" to keep your changes.'+'
'+''+'For more details and best practices, read our Support Guide.'+'
'+''+'When viewing a heatmap, most of your links will include a box that shows additional metrics(clicks, hovers, etc.).In some cases, these boxes will not appear.'+'
'+''+'If you\'ve found such an element, you can select it here. That will ensure the additional metrics are shown in your heatmaps.'+'
'+''+'When you\'re finished, click "Hide to navigate" to browse to another page to exclude additional content, or click "Save and close" to keep your changes.'+'
'+''+'For more details and best practices, read our Support Guide.'+'
'+'You have:
'+''+' • excluded '+_33.length+' '+(_33.length===1?'element':'elements')+'
'+' • whitelisted '+_35.length+' input '+(_35.length===1?'field':'fields')+'
'+' • tracked '+_271.length+' input '+(_271.length===1?'element':'elements')+'