(function tmWebkitMessageHandlersShim(){
if(window.__tmWebkitMessageHandlersShim){
return;
}
window.__tmWebkitMessageHandlersShim=true;
function createHandlerStub(){
return {
postMessage: function (){}};}
var webkitRef=window.webkit;
if(!webkitRef||typeof webkitRef!=='object'){
webkitRef={};
try {
window.webkit=webkitRef;
} catch (err){
return;
}}
var handlers=webkitRef.messageHandlers;
if(!handlers||typeof handlers!=='object'){
handlers={};
webkitRef.messageHandlers=handlers;
}
if(handlers.__tmWebkitProxy){
return;
}
if(typeof Proxy!=='function'){
webkitRef.messageHandlers=handlers;
return;
}
webkitRef.messageHandlers=new Proxy(handlers, {
get: function (target, prop){
if(prop==='__tmWebkitProxy'){
return true;
}
if(Object.prototype.hasOwnProperty.call(target, prop)){
return target[prop];
}
if(typeof prop==='symbol'){
return target[prop];
}
var stub=createHandlerStub();
target[prop]=stub;
return stub;
}});
})();
(function (){
function tmIsRealJQueryInstance(jq){
return !!(
jq &&
jq.fn &&
jq.fn.jquery &&
typeof jq.fn.val==='function'
);
}
function tmResolveJQuery(){
var pinned=window.__tmJQueryRef;
if(tmIsRealJQueryInstance(pinned)){
return pinned;
}
var global=window.jQuery;
if(tmIsRealJQueryInstance(global)){
window.__tmJQueryRef=global;
return global;
}
return null;
}
function tmEnsureGlobalJQuery(){
var jq=tmResolveJQuery();
if(!jq){
return null;
}
if(!tmIsRealJQueryInstance(window.jQuery)){
window.jQuery=jq;
window.$=jq;
}
return jq;
}
function tmRefreshJQueryPin(){
if(tmIsRealJQueryInstance(window.jQuery)){
window.__tmJQueryRef=window.jQuery;
}}
function hasRealJQuery(){
return !!tmResolveJQuery();
}
function tmPluginReady(jq, pluginName){
return !pluginName||(jq.fn&&typeof jq.fn[pluginName]==='function');
}
function runJQueryReady(fn, jq){
jq(function (){
if(!tmIsRealJQueryInstance(jq)){
return;
}
if(typeof fn==='function'){
fn(jq);
}});
}
window.tmResolveJQuery=tmResolveJQuery;
window.tmEnsureGlobalJQuery=tmEnsureGlobalJQuery;
window.tmRefreshJQueryPin=tmRefreshJQueryPin;
window.tmHasRealJQuery=hasRealJQuery;
if(!window.tmWhenJQueryReady){
window.tmWhenJQueryReady=function (fn, tries){
var maxTries=typeof tries==='number' ? tries:200;
var delayMs=25;
var attempt=0;
function runWhenReady(){
var jq=tmResolveJQuery();
if(jq){
runJQueryReady(fn, jq);
return;
}
if(attempt >=maxTries){
return;
}
attempt +=1;
setTimeout(runWhenReady, delayMs);
}
runWhenReady();
};}
if(!window.tmWhenJQueryPluginReady){
window.tmWhenJQueryPluginReady=function (fn, pluginName, tries){
var maxTries=typeof tries==='number' ? tries:200;
var delayMs=25;
var attempt=0;
var plugin=typeof pluginName==='string' ? pluginName:'';
function runWhenReady(){
var jq=tmResolveJQuery();
if(jq&&tmPluginReady(jq, plugin)){
runJQueryReady(function ($){
if(!tmPluginReady($, plugin)){
if(attempt < maxTries){
attempt +=1;
setTimeout(runWhenReady, delayMs);
}
return;
}
if(typeof fn==='function'){
fn($);
}}, jq);
return;
}
if(attempt >=maxTries){
return;
}
attempt +=1;
setTimeout(runWhenReady, delayMs);
}
runWhenReady();
};}
if(!window.__tmJQueryReadyGuard){
window.__tmJQueryReadyGuard=true;
window.__tmPendingJQueryReady=window.__tmPendingJQueryReady||[];
var queue=window.__tmPendingJQueryReady;
var originalDollar=window.$;
window.tmGetHiddenInputInt=function (id, fallback){
var fallbackNum=parseInt(fallback, 10);
if(!isFinite(fallbackNum)){
fallbackNum=0;
}
var el=document.getElementById(id);
if(!el||typeof el.value!=='string'||el.value===''){
return fallbackNum;
}
var parsed=parseInt(el.value, 10);
return isFinite(parsed) ? parsed:fallbackNum;
};
function flushPendingCallbacks(){
var jq=tmResolveJQuery();
if(!jq||!queue.length){
return;
}
while (queue.length){
var cb=queue.shift();
try {
jq(cb);
} catch (err){}}
}
function queueReadyCallback(callback){
if(typeof callback!=='function'){
return;
}
var jq=tmResolveJQuery();
if(jq){
jq(callback);
return;
}
queue.push(callback);
}
function jQueryStub(arg){
if(typeof arg==='function'){
queueReadyCallback(arg);
return;
}
return {
ready: function (cb){
queueReadyCallback(cb);
}};}
jQueryStub.ready=queueReadyCallback;
jQueryStub.fn={};
jQueryStub.Event=function jQueryEventShim(type, extra){
var event;
if(typeof window.Event==='function'){
try {
event=new window.Event(type, { bubbles: true, cancelable: true });
} catch (e){
event=document.createEvent('Event');
event.initEvent(type, true, true);
}}else if(document.createEvent){
event=document.createEvent('Event');
event.initEvent(type, true, true);
}else{
event={ type: type };}
if(extra&&typeof extra==='object'){
Object.keys(extra).forEach(function (key){
event[key]=extra[key];
});
}
return event;
};
if(!window.jQuery){
window.jQuery=jQueryStub;
}
if(!window.$||window.$===originalDollar){
window.$=window.jQuery;
}
window.tmWhenJQueryReady(function (){
flushPendingCallbacks();
});
}
window.tmWhenBodyReady=function (fn){
if(typeof fn!=='function'){
return;
}
if(document.getElementsByTagName('body')[0]){
fn();
return;
}
document.addEventListener('DOMContentLoaded', fn, { once: true });
};
if(typeof window.closeFullScreen!=='function'){
window.closeFullScreen=function closeFullScreen(){
try {
var doc=document;
var fullscreenElement=doc.fullscreenElement
|| doc.webkitFullscreenElement
|| doc.msFullscreenElement;
if(fullscreenElement){
var exitFullscreen=doc.exitFullscreen
|| doc.webkitExitFullscreen
|| doc.msExitFullscreen;
if(exitFullscreen){
var exitPromise=exitFullscreen.call(doc);
if(exitPromise&&typeof exitPromise.catch==='function'){
exitPromise.catch(function (){});
}}
}
var videoOverlay=doc.getElementById('tm-video-fullscreen-overlay');
if(videoOverlay){
videoOverlay.remove();
}
var modalMassagens=doc.getElementById('modal-massagens');
if(modalMassagens){
modalMassagens.style.display='none';
}
var modalBeneficios=doc.getElementById('modal-beneficios');
if(modalBeneficios){
modalBeneficios.style.display='none';
}
doc.querySelectorAll('.modal-overlay, .modal-overlay-massagens').forEach(function (el){
el.style.display='none';
});
if(typeof window.fecharModalBeneficios==='function'){
window.fecharModalBeneficios();
}
if(typeof window.fecharModalCidadesInclude==='function'){
window.fecharModalCidadesInclude();
}
var ageModal=doc.getElementById('modal-18-plus');
var ageModalAberto=ageModal
&& ageModal.style.display!=='none'
&& ageModal.offsetParent!==null;
if(!ageModalAberto){
doc.body.style.overflow='';
doc.body.classList.remove('age-locked');
}} catch (err){
}};}
(function tmTurnstileFailureGuard(){
if(window.__tmTurnstileFailureGuard){
return;
}
window.__tmTurnstileFailureGuard=true;
var TM_TURNSTILE_MSG='Não foi possível carregar a verificação de segurança. Desative bloqueadores de anúncios ou rastreadores e recarregue a página.';
function tmTurnstileFailureText(reason){
if(reason&&typeof reason==='object'&&reason.message){
return String(reason.message).toLowerCase();
}
if(reason===undefined||reason===null){
return '';
}
return String(reason).toLowerCase();
}
window.tmTurnstileIsKnownFailure=function (reason){
var lower=tmTurnstileFailureText(reason);
if(!lower){
return false;
}
return lower.indexOf('unreachable')!==-1
|| lower.indexOf('did not contain')!==-1
|| lower.indexOf('turnstile widget seem to have hung')!==-1
|| (lower.indexOf('turnstile')!==-1&&lower.indexOf('hung')!==-1)
|| lower.indexOf('challenges.cloudflare')!==-1;
};
window.tmTurnstileNotifyUser=function (message, contextEl){
message=message||TM_TURNSTILE_MSG;
var anchor=contextEl||document.querySelector('[data-tm-turnstile-status]')
|| document.getElementById('tm-captcha-status')
|| document.querySelector('.cf-turnstile-wrap')
|| document.querySelector('.cf-turnstile');
if(!anchor){
return;
}
var parent=anchor.parentNode||anchor;
if(parent.querySelector('.tm-turnstile-notice')){
return;
}
var notice=document.createElement('div');
notice.className='tm-turnstile-notice';
notice.setAttribute('role', 'alert');
notice.textContent=message;
notice.style.cssText='margin-top:8px;padding:10px 12px;border-radius:8px;background:#fff3f3;color:#8b0038;font-size:14px;line-height:1.4;';
parent.appendChild(notice);
};
window.tmTurnstileErrorCallback=function (){
window.tmTurnstileNotifyUser();
};
window.tmTurnstileTimeoutCallback=function (){
window.tmTurnstileNotifyUser('A verificação de segurança demorou demais. Desative bloqueadores de anúncios ou recarregue a página.');
};
function tmPrepareTurnstileElement(el){
if(!el||el.nodeType!==1){
return;
}
if(!el.getAttribute('data-error-callback')){
el.setAttribute('data-error-callback', 'tmTurnstileErrorCallback');
}
if(!el.getAttribute('data-timeout-callback')){
el.setAttribute('data-timeout-callback', 'tmTurnstileTimeoutCallback');
}}
function tmPrepareTurnstileWidgets(root){
var scope=root&&root.querySelectorAll ? root:document;
scope.querySelectorAll('.cf-turnstile, .cf-turnstile-wrap').forEach(tmPrepareTurnstileElement);
}
tmPrepareTurnstileWidgets(document);
window.tmWhenBodyReady(function (){
tmPrepareTurnstileWidgets(document);
});
if(typeof MutationObserver==='function'&&document.documentElement){
var observer=new MutationObserver(function (mutations){
mutations.forEach(function (mutation){
mutation.addedNodes.forEach(function (node){
if(!node||node.nodeType!==1){
return;
}
if(node.matches&&(node.matches('.cf-turnstile')||node.matches('.cf-turnstile-wrap'))){
tmPrepareTurnstileElement(node);
}
tmPrepareTurnstileWidgets(node);
});
});
});
observer.observe(document.documentElement, { childList: true, subtree: true });
}
window.addEventListener('unhandledrejection', function (event){
if(!window.tmTurnstileIsKnownFailure(event.reason)){
return;
}
event.preventDefault();
window.tmTurnstileNotifyUser();
});
})();
if(document.getElementsByTagName('body')[0]){
return;
}
try {
Object.defineProperty(document, 'body', {
get: function (){
return document.getElementsByTagName('body')[0]||document.documentElement;
},
configurable: true
});
} catch (e){}})();