!function(){const t=wc_mercadopago_health_monitor_params,e={background:["background-color","background-image","background-position-x","background-position-y","background-repeat","background-attachment","background-origin","background-clip","background-size"],border:["border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-color","border-right-color","border-bottom-color","border-left-color"],margin:["margin-top","margin-right","margin-bottom","margin-left"],padding:["padding-top","padding-right","padding-bottom","padding-left"],"border-radius":["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],font:["font-style","font-variant-caps","font-weight","font-size","line-height","font-family"],flex:["flex-grow","flex-shrink","flex-basis"],outline:["outline-color","outline-style","outline-width"],overflow:["overflow-x","overflow-y"],gap:["row-gap","column-gap"],"border-color":["border-top-color","border-right-color","border-bottom-color","border-left-color"],"border-style":["border-top-style","border-right-style","border-bottom-style","border-left-style"],"border-width":["border-top-width","border-right-width","border-bottom-width","border-left-width"]};function o(t,e){const o="https://api.mercadopago.com/ppcore/prod/monitor/v1/event/datadog/big/"+t;navigator.sendBeacon(o,JSON.stringify(e))}function r(e,o){return{value:e,message:o,plugin_version:t.plugin_version,platform:{name:"woocommerce",uri:t.theme,version:t.platform_version,url:window.location.href},details:{site_id:t.site_id||"not_available",cust_id:t.cust_id||"not_available",environment:t.is_test?"homol":"prod",sdk_instance_id:window.sessionStorage.getItem("_mp_flow_id")||"not_available"}}}function n(t,n){if(sessionStorage.getItem(n))return;const i=[];t.forEach((function(t){if(!document.querySelector(t))return;const o=function(t){const o=document.querySelector(t);if(!o)return null;const r=[o,...o.querySelectorAll("*")],n=["mercadopago","mercado-pago"];function i(t){if(t.href&&t.href.includes("woocommerce-mercadopago"))return!0;const e=t.ownerNode?.id||"";return n.some((t=>e.includes(t)))}function*s(t){for(const e of t)e.cssRules&&(yield*s(e.cssRules)),e.selectorText&&e.style&&(yield e)}function a(t){return e[t]||[t]}const c=new Map;for(const t of document.styleSheets){if(!i(t))continue;let e;try{e=t.cssRules||t.rules}catch{continue}for(const t of s(e))for(const e of r){try{if(!e.matches(t.selectorText))continue}catch{continue}c.has(e)||c.set(e,new Set);const o=c.get(e);for(const e of t.style)for(const t of a(e))o.add(t)}}const l=new Map;r.forEach((t=>{l.set(t,{transition:t.style.getPropertyValue("transition"),transitionPriority:t.style.getPropertyPriority("transition"),animation:t.style.getPropertyValue("animation"),animationPriority:t.style.getPropertyPriority("animation")}),t.style.setProperty("transition","none","important"),t.style.setProperty("animation","none","important")}));const d=[...document.styleSheets].filter((t=>!i(t))),m=new Map;r.forEach((t=>{const e=t.style.cssText,o="transition: none !important; animation: none !important;";e&&e!==o&&(m.set(t,e),t.style.cssText=o)})),d.forEach((t=>{t.disabled=!0}));const u=new Map;c.forEach(((t,e)=>{const o=window.getComputedStyle(e),r={};for(const e of t)r[e]=o.getPropertyValue(e).trim();u.set(e,r)})),d.forEach((t=>{t.disabled=!1})),m.forEach(((t,e)=>{e.style.cssText=t,e.style.setProperty("transition","none","important"),e.style.setProperty("animation","none","important")}));const p={};return u.forEach(((t,e)=>{const o=window.getComputedStyle(e),r={};for(const[e,n]of Object.entries(t)){const t=o.getPropertyValue(e).trim();t!==n&&(r[e]={expected:n,actual:t})}Object.keys(r).length>0&&(p[function(t){if(t.id)return`#${t.id}`;const e=[...t.classList].find((t=>t.startsWith("mp-")));if(e)return`.${e}`;if(t.classList[0])return`.${t.classList[0]}`;const o=t.parentElement,r=o?[...o.children].indexOf(t):0;return`${t.tagName.toLowerCase()}:nth-child(${r+1})`}(e)]=r)})),l.forEach((({transition:t,transitionPriority:e,animation:o,animationPriority:r},n)=>{t?n.style.setProperty("transition",t,e):n.style.removeProperty("transition"),o?n.style.setProperty("animation",o,r):n.style.removeProperty("animation")})),r.forEach((t=>{m.has(t)||0!==t.style.length||t.removeAttribute("style")})),p}(t);o&&Object.keys(o).length>0&&i.push({selector:t,issue:"custom_styles_detected",details:o})})),0!==i.length&&(o("mp_css_conflict_detected",r("true",i.map((t=>`${t.selector} (${t.issue})`)).join("; "))),sessionStorage.setItem(n,"1"))}try{const e=()=>{setTimeout((()=>{try{n([".mp-wallet-button-container"],"mp_health_css_conflict_wallet_sent"),function(){const e="mp_health_script_globals_sent";if(sessionStorage.getItem(e))return;if(!t.is_checkout)return;const n=[{name:"wc_mercadopago_checkout_session_data_register_params",label:"session_data_register"},{name:"mercadopago_melidata_params",label:"melidata_params"},{name:"MelidataClient",label:"melidata_client"},{name:"melidata",label:"melidata_instance"}];t.payment_methods&&t.payment_methods.includes("woo-mercado-pago-custom")&&n.push({name:"wc_mercadopago_supertoken_bundle_params",label:"supertoken_bundle"},{name:"MercadoPago",label:"mercadopago_sdk"});const i=n.filter((function(t){return void 0===window[t.name]})).map((function(t){return t.label}));0!==i.length&&(o("mp_script_missing_globals",r("true",i.join(", "))),sessionStorage.setItem(e,"1"))}()}catch(t){o("mp_health_check_error",r("error",t&&t.message?t.message:"unknown"))}}),3e3)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e(),document.addEventListener("supertoken_loaded",(function(){try{n([".mp-super-token-payment-methods-list"],"mp_health_css_conflict_supertoken_sent")}catch(t){o("mp_health_check_error",r("error",t&&t.message?t.message:"unknown"))}}),{once:!0})}catch(t){o("mp_health_monitor_error",r("error",t&&t.message?t.message:"unknown"))}}();