!function(){var t=navigator.userAgent;if(null!=/.*(MercadoLibre-).*/i.exec(t))return!1;function e(){this.COOKIE_REDIRECT="redirect",this.COOKIE_NOTIF="notif_d",this.COOKIE_VIP_COUNT="vip_c",this.COOKIE_VIP_COUNTER_EXPIRE="vip_cexp",this.COOKIE_ML_COUT="_ml_clout",this.COOKIE_A2HS_REFUSED="refused_a2hs",this.COOKIE_A2HS_ATTEMPTED="attempted_a2hs",this.COOKIE_A2HS_REDIRECT="redirect_a2hs",this.DOWNLOAD_APP_BANNER_CLOSED_COOKIE="nav_dab_closed",this.DOWNLOAD_APP_BANNER_LAST_CLOSED_COOKIE="nav_dab_last_closed",this.ML_CLOUT_WRONG_VALUE=-10,this.ML_CLOUT_ABOUT_TO_GET_BLOCK=2,this.NOTIF_EXPIRE_TIME=15,this.A2HS_REDIRECT_EXPIRE_TIME=365,this.DAYS_TO_RETRY_A2HS=15,this.BANNER_CLOSED_DAYS_THRESHOLD=10,this.BANNER_CLOSED_SESSION_THRESHOLD=1,this.TIMES_BANNER_CAN_BE_CLOSED=3,this.NOTIF_HIDE_EXPIRE=this.calculateDays(this.NOTIF_EXPIRE_TIME),this.BANNER_NOTIF_CONFLICT_EXPIRE=this.calculateMinutes(15),this.COUNTER_EXPIRE=this.calculateDays(2),this.BANNER_DOWNLOAD_DATE=this.getCookie(this.COOKIE_REDIRECT),this.NOTIF_CLOSE_DATE=this.getCookie(this.COOKIE_NOTIF),this.A2HS_REFUSED=this.getCookie(this.COOKIE_A2HS_REFUSED),this.A2HS_ATTEMPTED=this.getCookie(this.COOKIE_A2HS_ATTEMPTED),this.A2HS_REDIRECT=this.getCookie(this.COOKIE_A2HS_REDIRECT),this.SNACKBAR_HASH_SUCCESS="subscriptionSuccess",this.SNACKBAR_HASH_FAIL="subscriptionFail",this.SNACKBAR_HASH_BLOCKED="subscriptionBlocked",this.SNACKBAR_HASH_DISABLED="subscriptionDisabled",this.A2HS_MODAL_SELECTOR="a2hs-modal",this.A2HS_BUTTON_ALLOW_SELECTOR="accept-a2hs-button",this.A2HS_BUTTON_CANCEL_SELECTOR="refuse-a2hs-button",this.A2HS_BUTTON_CLOSE_SELECTOR="close-a2hs-button",this.A2HS_BUTTON_NOTUNDERSTAND_SELECTOR="not-understand-a2hs-button",this.A2HSclickActionBinded=this.A2HSclickAction.bind(this),this.DEVICE=this.getDevice(),this.NOW=(new Date).getTime(),this.CURRENT_PAGE=this.getCurrentPage(),this.wordings={notifications:{title:{es:"¿Quieres recibir notificaciones?",pt:"Quer receber notificações?"},text:{es:"Te escribiremos solo para avisarte si ocurre algo importante con tus compras y ventas.",pt:"Avisaremos você apenas se ocorrer algo importante com as suas compras e vendas."},accept:{es:"Siguiente",pt:"Próxima"},cancel:{es:"Ahora no",pt:"Agora não"}},snackbar:{success:{es:"¡Listo! Estás suscripto a las notificaciones.",pt:"Pronto! Você receberá notificações das suas negociações."},fail:{es:"Hubo un error, vuelve a intentarlo.",pt:"Ocorreu um erro, tente novamente."},disabled:{es:"Habilita los permisos del navegador para recibir notificaciones.",pt:"Habilite as permissões do navegador para receber notificações."}}},this.styles={newhome:"",base:"",notifications:"",animation:""},this.markup={freeDataDisclaimer:'
Válido para Vivo
',loading:'
',notifications:'
##NOTIF_TITLE##
##NOTIF_TEXT##
'},this.excludeSitesBanner=["MLM","MLC","MLA","MLB"],this.isSlowNetwork()||null==this.DEVICE||this.isFbApp()||this.show()}e.prototype.getDevice=function(){var t=navigator.userAgent,e=/.*(android|iphone|ipod).*/i.exec(t);if(null!=e){var i=e[1].toLowerCase();"ipod"!=i&&"iphone"!=i||(i="ios");return null==/.*(windows|nokia).*/i.exec(t)?i.toUpperCase():null}return null},e.prototype.isSupportedBrowserForNotifications=function(){var t=navigator.userAgent.match("Chrome[ /]+[0-9]+(.[0-9]+)*");if(t&&t[0]){var e=t[0].split("/")[1],i=e.split(".")[0];return!(!e||!i)&&parseInt(i,10)>50}return!1},e.prototype.getMarkup=function(t){var e="";return"NOTIF"===t&&(e=this.styles.animation+this.styles.notifications+this.markup.notifications,e=this.isPortuguese()?(e=(e=(e=e.replace("##NOTIF_TITLE##",this.wordings.notifications.title.pt)).replace("##NOTIF_TEXT##",this.wordings.notifications.text.pt)).replace("##NOTIF_ACCEPT##",this.wordings.notifications.accept.pt)).replace("##NOTIF_CANCEL##",this.wordings.notifications.cancel.pt):(e=(e=(e=e.replace("##NOTIF_TITLE##",this.wordings.notifications.title.es)).replace("##NOTIF_TEXT##",this.wordings.notifications.text.es)).replace("##NOTIF_ACCEPT##",this.wordings.notifications.accept.es)).replace("##NOTIF_CANCEL##",this.wordings.notifications.cancel.es)),e},e.prototype.addEvent=function(t,e,i){var n=document.getElementById(t);n&&n.addEventListener(e,(function(t){i(),t.stopPropagation(),t.preventDefault()}))},e.prototype.freezeBody=function(){document.body.classList?document.body.classList.add("freeze"):document.body.className+=" freeze"},e.prototype.unfreezeBody=function(){document.body.classList?document.body.classList.remove("freeze"):document.body.className=document.body.className.replace(new RegExp("(^|\\b)freeze(\\b|$)","gi")," ")},e.prototype.isFbApp=function(){var t=navigator.userAgent;return null!=/.*(FBForIphone|FBAN|FB4A).*/i.exec(t)},e.prototype.showNotificationsBanner=function(t,e){var i=document.getElementById("splash"),n=document.getElementById("banner"),o=document.getElementById("notif-banner");if(null===i&&null===n&&null===o){var s=this.getMarkup(t);setTimeout(function(){var t=document.createElement("div");t.id="notif-banner",t.innerHTML=this.styles.newhome+this.styles.base+s,document.body&&(document.body.insertBefore(t,document.body.firstChild),meli_ga("send","event","NOTIFICATIONS","PUSH_SHOW",e)),this.addEvent("accept-notif","click",function(){this.goToNotificationsCenter(e)}.bind(this)),this.addEvent("cancel-notif","click",function(){this.setCancelCookieAndCloseNotif(e)}.bind(this))}.bind(this),5)}},e.prototype.getTemplateBullets=function(){var t=this.getSiteId(),e="MLB"===t||"MPT"===t?"pt":"es",i=window.navigator.userLanguage||window.navigator.language,n={title:{es:"Prueba Mercado Libre Lite, nuestra app hecha más liviana",pt:"Use o novo app Lite do Mercado Livre"},bullet1:{es:"Ocupa solo 1 MB.",pt:"Ocupa apenas 1 MB."},bullet2:{es:"Es más rápida.",pt:"Navega mais rápido."},cancelButton:{es:"Ahora no",pt:"Agora não"},notUnderstandButton:{es:"Quiero saber más",pt:"Quero saber mais"}},o="Añadir",s=o+" la app Lite";function a(){var t=navigator.userAgent;return t.indexOf("Android")>=0&&parseFloat(t.slice(t.indexOf("Android")+8))}return"es-US"===i||"es-419"===i&&a()&&a()<7?s=(o="Agregar")+" la app Lite":0===i.indexOf("en")?s=(o="Add")+" app Lite":0===i.indexOf("pt")&&(s=(o="Adicionar")+" o app Lite"),"