/* meSEO Site Tag • Minified production build */ "use strict";(()=>{(function(){"use strict";var K=window.meSEOConfig;if(!K||!K.siteId){console.warn("[meSEO] No siteId found. Make sure meSEOConfig is set before loading t.js.");return}var ae=[],Jt=!1,at="2026.05.31";window.__meseoDetectedKeys||(window.__meseoDetectedKeys=new Set);var Yt=window.__meseoDetectedKeys,Z=[],Xt=!1;function it(){if(!Xt&&Z.length!==0){Xt=!0;for(var e=[],t=0;tQt?null:{sid:t,sts:a}}function ut(e,t){var r=No();if(r){var n=window.location.protocol==="https:"?"; Secure":"",o="; domain="+r+"; path=/; Max-Age=1800; SameSite=Lax"+n;try{document.cookie="meseo_xsid="+e+o,document.cookie="meseo_xsts="+t+o}catch(a){}}}function xe(){var e=window.meSEOConfig&&window.meSEOConfig.crossSubdomain===!0,t=Date.now();if(e){var r=Ro();if(r){try{sessionStorage.setItem(st,r.sid),sessionStorage.setItem(qe,String(t))}catch(i){}return ut(r.sid,t),{id:r.sid,isNew:!1}}}var n,o;try{n=sessionStorage.getItem(st),o=sessionStorage.getItem(qe)}catch(i){}if(n&&o){var a=parseInt(o,10);if(!isNaN(a)&&t-a0&&t.id.length<100?t.id:null)||t&&t.getAttribute&&t.getAttribute("data-meseo-id")||r||(t?(t.tagName||"EL")+":"+(t.textContent||"").replace(/\s+/g," ").slice(0,60)+":"+((t.offsetTop|0)+","+(t.offsetLeft|0)):"unknown")}catch(c){n=r||"unknown"}var o=e+":"+n,a=dt.get(o),i=Date.now();return a&&i-a=200&&De(!1)),i}function B(e){if(!e||typeof e!="string")return e;try{if(window._meseoHealthcareMode){var t=new URL(e,window.location.href);return t.pathname}}catch(r){try{return e.split("?")[0]}catch(n){return e}}return e}function ne(e){if(!e||!e.tagName)return null;try{for(var t=e,r=0;r<3&&t;r++){if(t.getAttribute){var n=t.getAttribute("aria-label");if(n)return String(n).trim().slice(0,60)}var o=t.innerText||t.textContent||"";if(o=String(o).replace(/\s+/g," ").trim(),o&&o.length>0&&o.length<80)return o.slice(0,60);t=t.parentElement}if(e.id)return"#"+String(e.id).slice(0,58);var a=e.getAttribute&&e.getAttribute("title");if(a&&(a=String(a).trim(),a))return a.slice(0,60);var i=e.getAttribute&&e.getAttribute("alt");if(i&&(i=String(i).trim(),i))return i.slice(0,60);if(e.tagName==="A"&&e.href){var c=String(e.href);try{c=c.replace(window.location.origin,"")}catch(C){}return("Link: "+c).slice(0,60)}if(e.tagName==="IMG"&&e.src){var l=String(e.src).split("/"),s=l[l.length-1].split("?")[0];return("Image: "+s).slice(0,60)}if(e.value)return String(e.value).slice(0,60);if(e.placeholder)return String(e.placeholder).slice(0,60);var m="";if(e.className&&typeof e.className=="string"){var x=e.className.split(/\s+/).filter(function(C){return C&&C.length>2&&C.indexOf("_")<0});m=x.slice(0,2).join(".")}return(e.tagName.toLowerCase()+(m?"."+m:"")).slice(0,60)}catch(C){try{return e.tagName?e.tagName.toLowerCase():null}catch(A){return null}}}function Uo(){try{var e=null;try{var t=sessionStorage.getItem("meseo_platform_meta");t&&(e=JSON.parse(t))}catch(b){}if(e&&e.name)return e;var r=null,n=document.querySelector('meta[name="generator"]'),o=n?(n.getAttribute("content")||"").toLowerCase():"";if(o.indexOf("wordpress")>-1){var a=o.match(/wordpress ([0-9.]+)/i);r={name:"wordpress",version:a?a[1]:void 0,confidence:70,category:"cms"}}else if(o.indexOf("drupal")>-1)r={name:"drupal",confidence:70,category:"cms"};else if(o.indexOf("joomla")>-1)r={name:"joomla",confidence:70,category:"cms"};else if(o.indexOf("ghost")>-1){var i=o.match(/ghost ([0-9.]+)/i);r={name:"ghost",version:i?i[1]:void 0,confidence:70,category:"cms"}}else o.indexOf("squarespace")>-1?r={name:"squarespace",confidence:75,category:"cms"}:o.indexOf("wix")>-1?r={name:"wix",confidence:80,category:"cms"}:o.indexOf("webflow")>-1?r={name:"webflow",confidence:75,category:"cms"}:o.indexOf("shopify")>-1?r={name:"shopify",confidence:80,category:"ecommerce"}:o.indexOf("weebly")>-1?r={name:"weebly",confidence:70,category:"cms"}:o.indexOf("duda")>-1?r={name:"duda",confidence:70,category:"cms"}:o.indexOf("gatsby")>-1?r={name:"gatsby",confidence:75,category:"js_framework"}:o.indexOf("hugo")>-1?r={name:"hugo",confidence:60,category:"static_site"}:o.indexOf("jekyll")>-1?r={name:"jekyll",confidence:60,category:"static_site"}:(o.indexOf("eleventy")>-1||o.indexOf("11ty")>-1)&&(r={name:"eleventy",confidence:60,category:"static_site"});if(!r)for(var c=document.querySelectorAll("script[src]"),l=0;l-1){r={name:"nextjs",confidence:90,category:"js_framework"};break}if(s.indexOf("/wp-content/")>-1||s.indexOf("/wp-includes/")>-1){r={name:"wordpress",confidence:70,category:"cms"};break}if(s.indexOf("cdn.shopify.com")>-1){r={name:"shopify",confidence:80,category:"ecommerce"};break}if(s.indexOf("static.wixstatic.com")>-1){r={name:"wix",confidence:80,category:"cms"};break}if(s.indexOf("squarespace.com")>-1||s.indexOf("squarespace-cdn.com")>-1){r={name:"squarespace",confidence:75,category:"cms"};break}if(s.indexOf("webflow.com")>-1){r={name:"webflow",confidence:75,category:"cms"};break}if(s.indexOf("/_nuxt/")>-1||s.indexOf("/__nuxt/")>-1){r={name:"nuxt",confidence:75,category:"js_framework"};break}if(s.indexOf("cdn11.bigcommerce.com")>-1){r={name:"bigcommerce",confidence:75,category:"ecommerce"};break}if(s.indexOf("irp-cdn.multiscreensite.com")>-1||s.indexOf("dudasite.com")>-1){r={name:"duda",confidence:70,category:"cms"};break}}if(!r)for(var m=document.querySelectorAll("link[href]"),x=0;x-1||C.indexOf("/wp-includes/")>-1){r={name:"wordpress",confidence:70,category:"cms"};break}if(C.indexOf("/sites/default/files/")>-1){r={name:"drupal",confidence:70,category:"cms"};break}if(C.indexOf("cdn.shopify.com")>-1){r={name:"shopify",confidence:80,category:"ecommerce"};break}if(C.indexOf("squarespace.com")>-1){r={name:"squarespace",confidence:75,category:"cms"};break}}if(!r){var A=document.documentElement;A&&(A.getAttribute("data-wf-page")!==null||A.getAttribute("data-wf-site")!==null?r={name:"webflow",confidence:75,category:"cms"}:A.getAttribute("ng-version")!==null&&(r={name:"angular",confidence:65,category:"js_framework"}))}if(!r&&document.body){var F=" "+(document.body.className||"")+" ";F.indexOf(" woocommerce ")>-1||F.indexOf(" woocommerce-page ")>-1?r={name:"woocommerce",confidence:80,category:"ecommerce"}:document.body.getAttribute("data-shopify")!==null&&(r={name:"shopify",confidence:80,category:"ecommerce"})}if(!r&&document.getElementById("___gatsby")&&(r={name:"gatsby",confidence:75,category:"js_framework"}),!r&&document.getElementById("__next")&&(r={name:"nextjs",confidence:90,category:"js_framework"}),r){try{sessionStorage.setItem("meseo_platform_meta",JSON.stringify(r))}catch(b){}try{sessionStorage.setItem("meseo_platform_detected","1")}catch(b){}}return r}catch(b){return null}}window.addEventListener("load",function(){try{var e=null;if(window.Shopify&&window.Shopify.shop)e={name:"shopify",confidence:80,category:"ecommerce"};else if(window.__NEXT_DATA__||window.next&&window.next.version){var t=window.next&&window.next.version?window.next.version:void 0;e={name:"nextjs",version:t,confidence:90,category:"js_framework"}}else if(window.__nuxt__||typeof window.useNuxtApp!="undefined")e={name:"nuxt",confidence:75,category:"js_framework"};else if(window.Webflow||window.WebflowEditor)e={name:"webflow",confidence:75,category:"cms"};else if(window.Wix||window.wixDevelopersAnalytics)e={name:"wix",confidence:80,category:"cms"};else if(window.angular||window.ng&&window.ng.getVersion){var r=window.ng&&window.ng.getVersion?window.ng.getVersion().full:void 0;e={name:"angular",version:r,confidence:65,category:"js_framework"}}else window.__gatsby?e={name:"gatsby",confidence:75,category:"js_framework"}:window.wp&&(window.wp.domReady||window.wp.hooks)&&(e={name:"wordpress",confidence:70,category:"cms"});if(!e){var n=document.querySelector("[data-server-rendered]");n&&(e={name:"vue",confidence:50,category:"js_framework"})}if(!e){var o=document.getElementById("root")||document.getElementById("app");if(o){for(var a=Object.keys(o),i=0;il){try{sessionStorage.setItem("meseo_platform_meta",JSON.stringify(e))}catch(s){}try{sessionStorage.setItem("meseo_platform_detected","1")}catch(s){}}}}catch(s){}});var ft=xe(),W=qo(),Fe=null;try{var nr=String(window.location.href||""),or=nr.indexOf("#:~:text=");or>-1&&(Fe=nr.slice(or+9).split("&")[0])}catch(e){}if(ft.isNew){var ar=W||{};Fe&&(ar.landingTextFragment=Fe),u("session_start",ar)}var Vo=Uo();u("page_view",{title:document.title,textFragment:Fe||void 0,platform:Vo||void 0}),(function(){if(ft.isNew){var t=(document.referrer||"").toLowerCase();if(t){for(var r=[{match:"chat.openai.com",platform:"chatgpt",channel:"llmo"},{match:"chatgpt.com",platform:"chatgpt",channel:"llmo"},{match:"perplexity.ai",platform:"perplexity",channel:"llmo"},{match:"claude.ai",platform:"claude",channel:"llmo"},{match:"you.com",platform:"you_com",channel:"llmo"},{match:"phind.com",platform:"phind",channel:"llmo"},{match:"meta.ai",platform:"meta_ai",channel:"llmo"},{match:"poe.com",platform:"poe",channel:"llmo"},{match:"gemini.google.com",platform:"gemini",channel:"geo"},{match:"bard.google.com",platform:"gemini",channel:"geo"},{match:"copilot.microsoft.com",platform:"copilot",channel:"geo"}],n=null,o=0;o-1){n=r[o];break}!n&&t.indexOf("bing.com")>-1&&t.indexOf("/chat")>-1&&(n={match:"bing.com/chat",platform:"copilot",channel:"geo"});var a=null;if(!n&&/(^|\.)google\.[a-z.]+/.test(t)){var i=String(window.location.href||""),c=i.indexOf("#:~:text=");if(c>-1){n={match:"google_ai_overview",platform:"google_ai_overview",channel:"geo"};try{var l=i.slice(c+9).split("&")[0];a=decodeURIComponent(l.replace(/\+/g," "))}catch(x){a=null}}}if(n){var s=a;if(!s)try{var m=new URL(document.referrer);s=m.searchParams.get("q")||m.searchParams.get("query")||null}catch(x){}try{sessionStorage.setItem("meseo_ai_referred","1"),sessionStorage.setItem("meseo_ai_platform",n.platform),sessionStorage.setItem("meseo_ai_channel",n.channel)}catch(x){}u("ai_referral",{platform:n.platform,channel:n.channel,referrerUrl:document.referrer.slice(0,2048),queryContext:s,landingPage:window.location.pathname})}}}})();var z=null;try{if(sessionStorage.getItem("meseo_ai_referred")==="1"||ft.isNew){let e=function(){cr||!z||(cr=!0,z.firstInteractionAt=Date.now()-z.startTime)},t=function(){z&&(z.dwellTime=Date.now()-z.startTime,u("ai_session_profile",z),z=null)};var Bo=sessionStorage.getItem("meseo_ai_referred")==="1",ir=window.location.pathname.replace(/^\/|\/$/g,"").split("/");z={aiReferred:Bo,platform:sessionStorage.getItem("meseo_ai_platform")||null,channel:sessionStorage.getItem("meseo_ai_channel")||null,landingPage:window.location.pathname,landingDepth:ir[0]?ir.length:0,startTime:Date.now(),firstInteractionAt:0,maxScroll:0,dwellTime:0,textSelected:!1,ctaClicks:0,navClicks:0,phoneClicks:0,pagesViewed:1,searchTerms:[],formStarted:!1,formSubmitted:!1,rageClicks:0,returnVisitor:!1};try{var zo=parseInt(localStorage.getItem("meseo_visit_count")||"0",10);z.returnVisitor=zo>1}catch(r){}var cr=!1;document.addEventListener("click",e,{once:!0,passive:!0}),document.addEventListener("scroll",function(){if(e(),!!z){var r=Math.round(window.scrollY/(document.body.scrollHeight-window.innerHeight+1)*100);r>z.maxScroll&&(z.maxScroll=r)}},{passive:!0}),document.addEventListener("copy",function(){z&&(z.textSelected=!0)},{passive:!0}),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t()})}}catch(e){}if(W._platform){var sr="meseo_paid:"+(W.gclid||W.fbclid||W.msclkid||W.ttclid||W.li_fat_id||W.dclid||W.wbraid||W.gbraid||"");try{sessionStorage.getItem(sr)||(sessionStorage.setItem(sr,"1"),u("paid_click_landing",W))}catch(e){u("paid_click_landing",W)}}try{(function(){if(!q)return;var t=q+"/api/site-tag/page-seen",r=q+"/api/site-tag/page-links",n=q+"/api/site-tag/nav-structure",o=null,a=window.performance&&window.performance.timing&&window.performance.timing.navigationStart||Date.now();function i(b){window.requestIdleCallback?window.requestIdleCallback(b,{timeout:2e3}):setTimeout(b,200)}function c(b,_){if(!(K.suppressEvents||window.__meseo_suppress))try{var w=JSON.stringify(_);if(navigator.sendBeacon){var f=new Blob([w],{type:"application/json"});if(navigator.sendBeacon(b,f))return}fetch(b,{method:"POST",headers:{"Content-Type":"application/json"},body:w,keepalive:!0,credentials:"omit"}).catch(function(){})}catch(p){}}function l(){var b=(document.title||"").slice(0,500),_="",w=document.querySelector('meta[name="description"]');w&&(_=(w.getAttribute("content")||"").slice(0,1e3));var f="",p=document.querySelector('link[rel="canonical"]');p&&(f=(p.getAttribute("href")||"").slice(0,2048));var y="",S=document.querySelector("h1");S&&(y=(S.textContent||"").trim().slice(0,500));var O=0;try{var T=document.querySelector("main")||document.body;if(T){for(var D=T.cloneNode(!0),R=D.querySelectorAll("script, style, noscript"),U=0;U1){var y=Array.prototype.indexOf.call(p.children,w);y>=0&&(f+=":nth-child("+(y+1)+")")}_.unshift(f),w=p}return _.join(" > ")||(b.tagName||"").toLowerCase()}function m(b){for(var _=b&&b.parentElement;_;){var w=_.tagName;if(w==="HEADER"||w==="FOOTER"||w==="NAV"||w==="MAIN"||w==="SECTION"||w==="ARTICLE"||w==="ASIDE")return w.toLowerCase();_=_.parentElement}return"body"}function x(){for(var b=document.querySelectorAll("a[href]"),_=window.location.hostname.toLowerCase(),w={},f=[],p=0;p0&&f.navigationStart>0?w=(f.loadEventEnd-f.navigationStart)/1e3:w=(Date.now()-a)/1e3}c(t,{siteId:V,url:b,fullUrl:window.location.href,title:_.title,statusCode:200,referrer:document.referrer||null,timestamp:new Date().toISOString(),loadTime:w,metaDescription:_.metaDescription,h1:_.h1,canonicalUrl:_.canonicalUrl,wordCount:_.wordCount}),i(function(){var p=x();c(r,{siteId:V,sourceUrl:window.location.href,links:p});var y=C();y.length>0&&c(n,{siteId:V,sourceUrl:window.location.href,links:y})})}}document.readyState==="complete"||document.readyState==="interactive"?i(A):document.addEventListener("DOMContentLoaded",function(){i(A)});function F(b){var _=history[b];if(!(typeof _!="function"||_.__meseoWrapped)){var w=function(){var f=_.apply(this,arguments);return setTimeout(function(){i(A)},50),f};w.__meseoWrapped=!0,history[b]=w}}F("pushState"),F("replaceState"),window.addEventListener("popstate",function(){setTimeout(function(){i(A)},50)})})()}catch(e){}document.addEventListener("click",function(e){for(var t=e.target;t&&t.tagName!=="A";)t=t.parentElement;if(!(!t||!t.href)){var r=t.href.toLowerCase(),n=ne(e.target)||ne(t),o=t.tagName||null,a=t.id||null;if(r.indexOf("tel:")===0){var i=t.href.replace(/^tel:/i,"").replace(/\D/g,""),c=i.length>=4?i.slice(-4):null,l=ie&&ie[t.href]||{};u("click_to_call",{phone_number:t.href.replace("tel:",""),phone_last4:c,link_text:(t.innerText||"").trim().slice(0,100),link_url:t.href,page_type:Br(),time_on_page_ms:Date.now()-Le,was_in_viewport:!!l.isCurrentlyVisible,was_ever_visible:!!l.hasBeenVisible,number_label:va(t),element_label:n,element_tag:o,element_id:a});return}if(r.indexOf("sms:")===0){var s=t.href.replace(/sms:([^?]*).*/,"$1"),m=s.replace(/\D/g,""),x=m.length>=4?m.slice(-4):null;u("sms_submit",{phone_number:s,link_text:(t.innerText||"").trim().slice(0,100),link_url:t.href,element_label:n,element_tag:o,element_id:a}),u("sms_click",{phone_last4:x,link_text:(t.innerText||"").trim().slice(0,100),page_type:Br(),element_label:n});return}if(r.indexOf("mailto:")===0){var C=t.href.replace(/^mailto:/i,"").split(/[?#]/)[0]||"",A="",F=C.lastIndexOf("@");if(F>-1&&(A=C.slice(F+1).toLowerCase().trim()),!A)return;var b="mailto:"+A;if(yr[b])return;yr[b]=!0,u("email_click",{email_domain:A,link_text:(t.innerText||"").trim().slice(0,100),source_page_url:window.location.href,element_label:n,element_tag:o,element_id:a});return}var _=qa(t.href);if(_){var w="download:"+_.fullUrl;tn[w]||(tn[w]=!0,u("file_download",{file_name:_.fileName,file_extension:_.extension,file_url:B(_.fullUrl),category:Da(_.fileName,window.location.href),link_text:(t.innerText||"").trim().slice(0,100),source_page_url:window.location.href,element_label:n,element_tag:o,element_id:a}));return}try{var f=new URL(t.href,window.location.href),p=f.hostname,y=window.location.hostname,S=p.replace(/^www\./i,""),O=y.replace(/^www\./i,""),T=f.protocol==="http:"||f.protocol==="https:";if(T&&S&&S!==O){u("outbound_click",{link_url:t.href,link_text:(t.innerText||"").trim().slice(0,100),link_domain:p,source_page_url:window.location.href,element_label:n,element_tag:o,element_id:a});try{Za(t,f,S)}catch(D){}}}catch(D){}}},!0);var ur={};function jo(e){for(var t=e&&e.parentElement,r=0;t&&r<12;){var n=(t.tagName||"").toUpperCase();if(n==="FORM")return t;if(t.getAttribute){var o=t.getAttribute("role")||"";if(o==="form"||t.hasAttribute("data-form"))return t}var a=((t.id||"")+"").toLowerCase(),i=((t.className&&t.className.baseVal!==void 0?t.className.baseVal:t.className||"")+"").toLowerCase();if(/\bform\b|appointment|booking|schedule|intake|contact/.test(a+" "+i))return t;t=t.parentElement,r++}return null}function lr(e,t,r){var n;if(t.tagName==="FORM"?n=t.id||t.action||"form-"+Array.prototype.indexOf.call(document.forms,t):n="container:"+(t.id||t.getAttribute("data-form")||t.tagName+"."+(t.className||"").toString().slice(0,60)),!ur[n]){ur[n]=!0;try{console.debug("[meSEO] form_start:",{formKey:n,formId:t.id||null,formAction:t.action||null,formTag:t.tagName,parentTag:t.parentElement&&t.parentElement.tagName,kind:r})}catch(o){}u("form_start",{form_id:t.id||null,form_action:t.action||null,field_name:e.name||e.type||"unknown",form_kind:r})}}document.addEventListener("focusin",function(e){var t=e.target;if(t){if(t.form){lr(t,t.form,"form");return}var r=(t.tagName||"").toUpperCase();if(!(r!=="INPUT"&&r!=="TEXTAREA"&&r!=="SELECT")){var n=jo(t);n&&lr(t,n,n.tagName==="FORM"?"form":"container")}}},!0);var dr={},Ho=/\b(schedule|appointment|book(?:\s+now|\s+online)?|request\s+(?:an?\s+)?(?:appointment|consult|consultation|callback)|new\s+patient|patient\s+(?:portal|intake)|get\s+started|contact\s+us|reserve|reservation|find\s+a\s+(?:doctor|provider|location))\b/i,Wo=/(book|schedule|appointment|request|portal|intake|contact|reserve|cta-?(?:book|schedule))/i;document.addEventListener("click",function(e){var t=e.target;if(t){for(var r=null,n=t,o=0;o<6&&n;o++){var a=(n.tagName||"").toUpperCase();if(a==="A"||a==="BUTTON"||n.getAttribute&&n.getAttribute("role")==="button"){r=n;break}n=n.parentElement}if(r&&!(r.tagName==="A"&&r.href&&r.href.toLowerCase().indexOf("tel:")===0)){var i=(r.innerText||r.textContent||"").trim();if(!(i.length>120)){var c=((r.id||"")+" "+(r.className&&r.className.baseVal!==void 0?r.className.baseVal:r.className||"")+" "+(r.getAttribute&&r.getAttribute("data-action")||"")+" "+(r.getAttribute&&r.getAttribute("aria-label")||"")).toLowerCase(),l=!!i&&Ho.test(i),s=Wo.test(c);if(!(!l&&!s)){var m=(i||c).slice(0,60).toLowerCase().replace(/\s+/g," ");if(!dr[m]){dr[m]=!0;try{console.debug("[meSEO] appointment_intent:",{text:i.slice(0,80),attrs:c.slice(0,120),href:r.href||null})}catch(x){}u("appointment_intent",{cta_text:i.slice(0,100),cta_href:r.href||null,cta_id:r.id||null,matched_via:l?"text":"attr",element_label:ne(r)||i.slice(0,60)||null,element_tag:r.tagName||null,element_id:r.id||null})}}}}}},!0);var Go=/(jotform|typeform|nexhealth|patientpop|doctible|podium|formstack|wufoo|hubspot|gohighlevel|calendly|acuityscheduling|squareup|simplepractice|tebra|kareo|athenahealth|mychart|epic|cerner)/i,fr={};function mr(){try{for(var e=document.getElementsByTagName("iframe"),t=[],r=0;r added:",{formId:i.id||null,formAction:i.action||null,parentTag:i.parentElement&&i.parentElement.tagName})}catch(l){}else i.querySelector&&i.querySelector("iframe")&&(r=!0)}}r&&mr()});e.observe(document.body||document.documentElement,{childList:!0,subtree:!0})}catch(t){}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",pr):pr();var gr="_meseo_form_sub",Jo=3e4;function ee(){try{var e=sessionStorage.getItem(gr);if(e)try{var t=JSON.parse(e);if(t&&t.id&&typeof t.ts=="number"&&Date.now()-t.ts0&&e.elements.length<=4&&$o(e)?"native":null)}function Sr(){for(var e=0,t=0;t0&&!br&&(br=!0,Z.push({plugin:"esp",plugin_key:"esp",category:"email",source:"esp_scan"}))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",kr):kr();try{var Zo=new MutationObserver(function(){Sr()});Zo.observe(document.body||document.documentElement,{childList:!0,subtree:!0})}catch(e){}document.addEventListener("submit",function(e){try{var t=e.target;if(!t||t.tagName!=="FORM")return;var r=Ko(t);if(!r)return;var n="newsletter:"+(t.id||t.action||r+":"+Array.prototype.indexOf.call(document.forms,t));if(wr[n])return;wr[n]=!0,u("newsletter_signup",{form_id:t.id||null,form_action:B(t.action||""),source:r})}catch(o){}},!0);var xr={};function de(e){return function(){xr[e]||(xr[e]=!0,u("newsletter_signup",{form_id:null,source:e,detection:"ajax"}))}}try{G("list-manage.com",de("mailchimp")),G("kmail-lists.com",de("klaviyo")),G("klaviyo.com/api",de("klaviyo")),G("activehosted.com",de("activecampaign")),G("convertkit.com/subscriptions",de("convertkit")),G("constantcontact.com/api",de("constant_contact"))}catch(e){}document.addEventListener("copy",function(){try{var e=window.getSelection&&window.getSelection(),t=e?e.toString():"";if(!t||t.length>500)return;var r=t.match(Yo);if(!r)return;var n=r[0],o=n.lastIndexOf("@");if(o===-1)return;var a=n.slice(o+1).toLowerCase();if(!a||_r[a])return;_r[a]=!0,u("email_copied",{email_domain:a,source_page_url:window.location.href})}catch(i){}});var Er=!1,mt=!1,Lr={},Ar={},Ir=!1,pt=null,gt=!1,Cr={},Ue={},Or=!1,Tr=!1,Nr={};function Rr(){var e=[];try{for(var t=document.querySelectorAll('script[type="application/ld+json"]'),r=0;r1e5)return null;var t=e.match(/\b(?:order\s+total|grand\s+total|total|order\s+amount|charged|amount\s+due)[^\d$€£¥]{0,30}([$€£¥])\s*([\d,]+(?:\.\d{2})?)/i);if(!t)return null;var r=parseFloat(t[2].replace(/,/g,""));if(!isFinite(r))return null;var n=t[1],o=n==="$"?"USD":n==="\u20AC"?"EUR":n==="\xA3"?"GBP":n==="\xA5"?"JPY":null;return{total:r,currency:o}}var Dr=[{key:"shopify",detect:function(){return!!window.Shopify||!!document.querySelector('meta[name="shopify-checkout-api-token"]')},ajax:[{pattern:"/cart/add.js",event:"add_to_cart"},{pattern:"/cart/update.js",event:"cart_update"},{pattern:"/wallets/checkouts",event:"checkout_started"}]},{key:"woocommerce",detect:function(){return document.body&&document.body.classList&&document.body.classList.contains("woocommerce")||!!document.querySelector(".woocommerce-cart, .woocommerce-checkout")},ajax:[{pattern:"wc-ajax=add_to_cart",event:"add_to_cart"},{pattern:"wc-ajax=checkout",event:"checkout_started"}]},{key:"bigcommerce",detect:function(){return!!window.BCData},ajax:[{pattern:"/api/storefront/carts",event:"cart_update"},{pattern:"/api/storefront/checkouts",event:"checkout_started"}]},{key:"magento",detect:function(){try{return!!(window.require&&window.require.s&&window.require.s.contexts&&window.require.s.contexts._)}catch(e){return!1}},ajax:[{pattern:"/rest/default/v1/carts",event:"cart_update"},{pattern:"/checkout/cart/add",event:"add_to_cart"}]},{key:"squarespace",detect:function(){if(document.querySelector(".sqs-add-to-cart-button"))return!0;try{return!!(window.Static&&window.Static.SQUARESPACE_CONTEXT&&window.Static.SQUARESPACE_CONTEXT.website)}catch(e){return!1}},ajax:[{pattern:"/api/commerce/cart/add",event:"add_to_cart"},{pattern:"/api/commerce/checkout",event:"checkout_started"}]}];function na(){for(var e=0;e5e3)){var l=(c.replace(/\D/g,"")||"").length;if(!(l<7)){Hr.lastIndex=0;for(var s;(s=Hr.exec(c))!==null;){var m=s[4];m&&Wr(m,zr(a.parentElement),"text_pattern")}}}}}catch(x){}}var Gr=[{key:"callrail",detect:function(){return!!window.CallTrk||!!document.querySelector("script[src*='callrail.com'], script[src*='callrail.net'], .callrail-swap, [data-callrail]")},swap:{selector:"a[href^='tel:'].callrail-swap, a[data-callrail-original], a[data-swapped-from]",origAttrs:["data-swapped-from","data-callrail-original"]}},{key:"calltrackingmetrics",detect:function(){return!!window._ctmtracker||!!document.querySelector("script[src*='tctm.co'], script[src*='calltrackingmetrics.com']")},swap:{selector:"[data-ctm-number], a.ctm-phone, [data-ctm-original-number]",origAttrs:["data-ctm-original-number","data-original-number"]}},{key:"marchex",detect:function(){return!!document.querySelector("script[src*='marchex.com'], script[src*='marchex.io']")},swap:{selector:"[data-marchex-number], [data-marchex-original]",origAttrs:["data-marchex-original"]}},{key:"invoca",detect:function(){return!!window.Invoca||!!document.querySelector("script[src*='invoca.com'], .invoca-phone, [data-invoca-tracking]")},swap:{selector:".invoca-phone, [data-invoca-tracking], [data-invoca-original-phone]",origAttrs:["data-invoca-original-phone"]}}];function _a(e){var t=[];if(!e||!e.swap)return t;try{for(var r=document.querySelectorAll(e.swap.selector),n=0;n=4?a.slice(-4):null,m=i&&i.length>=4?i.slice(-4):null;!s&&!m||t.push({trackingLast4:s,originalLast4:m})}}catch(x){}return t}function wa(){for(var e=0;e0&&(e.duration=r);var o=Date.now();if(n&&e.lastTickAt>0){var a=o-e.lastTickAt;a>0&&a<3e3&&(e.watchTimeMs+=a)}if(e.lastTickAt=n?o:0,!(!e.duration||!isFinite(e.duration)||e.duration<=0)){var i=t/e.duration*100;i>=25&&!e.milestones[25]&&pe(e,25),i>=50&&!e.milestones[50]&&pe(e,50),i>=75&&!e.milestones[75]&&pe(e,75),i>=95&&!e.milestones[100]&&ce(e)}}function ba(e,t){if(!e._meseoAttached){e._meseoAttached=!0;var r="html5:"+(e.currentSrc||e.src||"anon")+":"+t,n=oe(r);n.provider="html5",n.videoId=e.getAttribute("id")||(e.currentSrc||e.src||"").split("/").pop()||null,n.autoplay=!!e.autoplay,n.duration=isFinite(e.duration)?e.duration:null;var o=!1;try{o=!!window._meseoUserInteracted}catch(a){}e.addEventListener("play",function(){try{!window._meseoUserInteracted&&!o&&(n.autoplay=!0)}catch(a){}me(n)}),e.addEventListener("timeupdate",function(){try{ge(n,e.currentTime||0,e.duration,!e.paused&&!e.ended)}catch(a){}}),e.addEventListener("ended",function(){ge(n,e.duration||0,e.duration,!1),ce(n)}),e.addEventListener("pause",function(){n.lastTickAt=0})}}function Sa(){try{for(var e=document.querySelectorAll("video"),t=0;t-1?"&":"?";try{e.setAttribute("src",r+n+"enablejsapi=1")}catch(l){}}var o=ka(r),a="youtube:"+(o||"unknown")+":"+t,i=oe(a);i.provider="youtube",i.videoId=o,i.autoplay=/[?&]autoplay=1/.test(r),e.setAttribute("data-meseo-video-uid",a),$r.push(e);var c=function(){try{e.contentWindow.postMessage(JSON.stringify({event:"listening",id:a,channel:"widget"}),"*"),e.contentWindow.postMessage(JSON.stringify({event:"command",func:"addEventListener",args:["onStateChange"]}),"*")}catch(l){}};e.contentWindow&&c(),e.addEventListener("load",c)}}}function Zr(e){try{e.contentWindow.postMessage(JSON.stringify({event:"command",func:"getCurrentTime"}),"*"),e.contentWindow.postMessage(JSON.stringify({event:"command",func:"getDuration"}),"*"),e.contentWindow.postMessage(JSON.stringify({event:"command",func:"getVideoData"}),"*")}catch(t){}}function Qr(e,t){for(var r=0;r-1?"&":"?";try{e.setAttribute("src",r+n+"api=1")}catch(l){}}var o=La(r),a="vimeo:"+(o||"unknown")+":"+t,i=oe(a);i.provider="vimeo",i.videoId=o,i.autoplay=/[?&]autoplay=1/.test(r),e.setAttribute("data-meseo-video-uid",a),Kr.push(e);var c=function(){try{var l=function(s,m){e.contentWindow.postMessage(JSON.stringify({method:s,value:m}),"*")};l("addEventListener","play"),l("addEventListener","pause"),l("addEventListener","ended"),l("addEventListener","timeupdate")}catch(s){}};e.contentWindow&&c(),e.addEventListener("load",c)}}}function Ia(){try{for(var e=document.querySelectorAll("iframe[src*='player.vimeo.com']"),t=0;t=25&&!n.milestones[25]&&pe(n,25),a>=50&&!n.milestones[50]&&pe(n,50),a>=75&&!n.milestones[75]&&pe(n,75),a>=95&&!n.milestones[100]&&ce(n)}catch(i){}}),e.bind("timechange",function(o){try{ge(n,o||0,n.duration,!0)}catch(a){}})}catch(o){}}})}catch(e){}}function Ta(){var e=0,t=setInterval(function(){e++;try{window.VidyardV4&&window.VidyardV4.api&&typeof window.VidyardV4.api.addReadyListener=="function"&&(clearInterval(t),window.VidyardV4.api.addReadyListener(function(r,n){try{var o="vidyard:"+(n&&n.uuid||"unknown"),a=oe(o);a.provider="vidyard",a.videoId=n&&n.uuid;try{a.duration=n.metadata&&n.metadata.length_in_seconds}catch(i){}try{a.title=n.metadata&&n.metadata.name}catch(i){}n.on&&(n.on("play",function(){me(a)}),n.on("pause",function(){a.lastTickAt=0}),n.on("ended",function(){ce(a)}),n.on("timeupdate",function(i){try{ge(a,i||0,a.duration,!0)}catch(c){}}))}catch(i){}}))}catch(r){}e>40&&clearInterval(t)},250)}function Na(){if(!Yr){Yr=!0;var e={};window.addEventListener("message",function(t){if(t.data){var r=t.data;if(typeof r=="string")try{r=JSON.parse(r)}catch(m){return}if(!(!r||typeof r!="object")){if(r.event==="onStateChange"||r.event==="infoDelivery"||r.event==="onReady"){var n=Qr($r,t.source);if(!n)return;var o=n.getAttribute("data-meseo-video-uid");if(!o)return;var a=oe(o);r.event==="onStateChange"?r.info===1?(me(a),a.lastTickAt=Date.now(),e[o]||(e[o]=setInterval(function(){Zr(n)},2e3),Zr(n))):r.info===0?(ce(a),e[o]&&(clearInterval(e[o]),e[o]=null),a.lastTickAt=0):r.info===2&&(a.lastTickAt=0):r.event==="infoDelivery"&&r.info&&(typeof r.info.currentTime=="number"&&typeof r.info.duration=="number"&&ge(a,r.info.currentTime,r.info.duration,r.info.playerState===1),r.info.videoData&&r.info.videoData.title&&(a.title=r.info.videoData.title));return}var i=typeof r.event=="string"&&(r.event==="play"||r.event==="pause"||r.event==="ended"||r.event==="timeupdate"||r.event==="ready");if(i){var c=Qr(Kr,t.source);if(!c)return;var l=c.getAttribute("data-meseo-video-uid");if(!l)return;var s=oe(l);r.event==="play"?(me(s),s.lastTickAt=Date.now()):r.event==="pause"?s.lastTickAt=0:r.event==="ended"?(ce(s),s.lastTickAt=0):r.event==="timeupdate"&&r.data&&(typeof r.data.duration=="number"&&(s.duration=r.data.duration),typeof r.data.seconds=="number"&&ge(s,r.data.seconds,s.duration,!0))}}}})}}function en(){if(!Jr){Jr=!0;try{for(var e in fe)if(Object.prototype.hasOwnProperty.call(fe,e)){var t=fe[e];if(t.playFired){var r=null;typeof t.duration=="number"&&isFinite(t.duration)&&t.duration>0&&(r=Math.round(t.watchTimeMs/1e3/t.duration*100)),u("video_engagement",{provider:t.provider,video_id:t.videoId,title:t.title?String(t.title).slice(0,200):null,duration:typeof t.duration=="number"&&isFinite(t.duration)?t.duration:null,watch_time_ms:t.watchTimeMs,percent_watched:r,completed:!!t.milestones[100],autoplay:!!t.autoplay,source_page_url:window.location.href})}}}catch(n){}}}window.addEventListener("beforeunload",en),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&en()});function Be(){Na(),Sa(),Ea(),Ia(),Ca(),Xr||(Xr=!0,Oa(),Ta())}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Be):Be(),setTimeout(Be,1500),setTimeout(Be,4e3);var Ra=/\.(pdf|docx?|xlsx?|pptx?|zip|csv|txt|mp3|mp4|avi|mov|wav|wmv|rar|7z|tar|gz|epub)(\?|#|$)/i,tn={},rn=new(typeof WeakSet=="function"?WeakSet:function(){this.add=this.has=function(){return!1}}),ht=[],nn=!1,on=!1;function qa(e){if(!e||typeof e!="string")return null;try{var t=new URL(e,window.location.href);if(t.protocol!=="http:"&&t.protocol!=="https:")return null;var r=t.pathname||"",n=r.match(Ra);if(!n)return null;var o=(r.split("/").pop()||"").slice(0,200);return o?{fileName:o,extension:n[1].toLowerCase(),fullUrl:t.href}:null}catch(a){return null}}function Da(e,t){var r=(e||"").toLowerCase();if(/\b(brochure|flyer|flier)\b/.test(r))return"brochure";if(/\b(whitepaper|white[-_ ]?paper|ebook|e[-_ ]?book)\b/.test(r))return"whitepaper";if(/\bcase[-_ ]?stud(y|ies)\b/.test(r))return"case_study";if(/\b(pricing|price[-_ ]?list|rate[-_ ]?sheet|rates)\b/.test(r))return"pricing";if(/\b(form|application|intake|registration|consent|release|waiver|questionnaire)\b/.test(r))return"form";if(/\bmenu\b/.test(r))return"menu";if(/\b(manual|instructions|user[-_ ]?guide|owner[-_ ]?guide|handbook)\b/.test(r))return"manual";var n=(t||"").toLowerCase();return/\b(pricing|rates)\b/.test(n)?"pricing":/\bcase[-_ ]?stud(y|ies)\b/.test(n)?"case_study":/\bbrochure\b/.test(n)?"brochure":/\b(whitepaper|white[-_ ]?paper)\b/.test(n)?"whitepaper":"other"}function Pa(e){if(!e)return"";var t=(e.tagName||"").toUpperCase();return t==="IFRAME"||t==="EMBED"?e.src||e.getAttribute("src")||"":t==="OBJECT"&&(e.data||e.getAttribute("data"))||""}function Fa(){try{for(var e=[],t=document.querySelectorAll("iframe[src*='.pdf']"),r=0;r500?null:/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/.test(t)?"email":Ba.test(t)?"url":za.test(t)?"phone":ja.test(t)?"address":t.length>=30?"text":null}document.addEventListener("copy",function(){try{var e=window.getSelection&&window.getSelection(),t=e?e.toString():"",r=Ha(t);if(!r||ln[r])return;ln[r]=!0,u("content_copied",{content_type:r,content_length:t.length,source_page_url:window.location.href})}catch(n){}});var pn=[{key:"google_reviews",sel:"iframe[src*='google.com/maps/embed'], iframe[src*='trustindex'], .google-reviews-widget, [class*='google-review']"},{key:"yelp",sel:"iframe[src*='yelp.com'], .yelp-widget, [class*='yelp-embed']"},{key:"healthgrades",sel:"iframe[src*='healthgrades.com'], .hg-widget, [class*='healthgrades']"},{key:"zocdoc",sel:"iframe[src*='zocdoc.com'], .zocdoc-widget, [class*='zocdoc']"},{key:"vitals",sel:"iframe[src*='vitals.com'], [class*='vitals-widget']"},{key:"realself",sel:"iframe[src*='realself.com'], [class*='realself']"},{key:"trustpilot",sel:"iframe[src*='trustpilot.com'], .trustpilot-widget, [class*='trustpilot-widget']"},{key:"birdeye",sel:"iframe[src*='birdeye.com'], iframe[src*='birdeye.io'], .birdeye-reviews, [class*='birdeye-reviews']"}],Ie=null;function Wa(){if(!Ie)try{Ie=new IntersectionObserver(function(i){for(var c=0;c0&&(l.totalMs+=Date.now()-l.lastSeenTs),l.currentlyVisible=!1,l.lastSeenTs=0)}}},{threshold:.4})}catch(o){Ce=null}if(Ce){var e;try{e=document.querySelectorAll(Ga)}catch(o){return}for(var t=20,r=0;r0;r++){var n=e[r];if(!n._meseoProofAttached){n._meseoProofAttached=!0,n._meseoProofId="proof:"+r;try{Ce.observe(n),t--}catch(o){}}}}}function gn(){if(!mn){mn=!0;try{var e=Date.now(),t=0;for(var r in Ae)if(Object.prototype.hasOwnProperty.call(Ae,r)){var n=Ae[r];n&&(n.currentlyVisible&&n.lastSeenTs>0&&(n.totalMs+=Math.max(0,e-n.lastSeenTs)),t+=n.totalMs)}t>0&&u("social_proof_attention",{attention_ms:t,source_page_url:window.location.href})}catch(o){}}}window.addEventListener("beforeunload",gn),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&gn()});function He(){try{Wa()}catch(e){}try{Ja()}catch(e){}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",He):He(),setTimeout(He,2e3),setTimeout(He,5e3);var se=[],_t=!1,wt=!1,vn=!1,hn={},Ya=q+"/api/site-tag/competitors?site_id="+encodeURIComponent(V);function Xa(e){return(e||"").toLowerCase().replace(/^www\./,"")}function yn(e){if(!se||se.length===0)return null;var t=Xa(e);if(!t)return null;for(var r=0;r=0&&r<36e5){var n=JSON.parse(e);if(Array.isArray(n)){se=n,_t=!0,_n();return}}}}catch(o){}try{fetch(Ya,{method:"GET",credentials:"omit"}).then(function(o){return o&&o.ok?o.json():null}).then(function(o){if(!(!o||!Array.isArray(o.competitors))){se=o.competitors,_t=!0;try{sessionStorage.setItem("_meseo_competitors_list",JSON.stringify(o.competitors)),sessionStorage.setItem("_meseo_competitors_ts",String(Date.now()))}catch(a){}_n()}}).catch(function(){})}catch(o){}}function _n(){if(!wt){try{if(sessionStorage.getItem("_meseo_competitor_referrer")){wt=!0,wn();return}}catch(n){}var e=document.referrer||"";if(e){var t;try{t=new URL(e).hostname}catch(n){return}var r=yn(t);if(r){wt=!0;try{sessionStorage.setItem("_meseo_competitor_referrer",r.domain),sessionStorage.setItem("_meseo_competitor_referrer_name",r.name||""),sessionStorage.setItem("_meseo_competitor_referrer_ts",String(Date.now())),sessionStorage.setItem("_meseo_competitor_journey",JSON.stringify([window.location.pathname||"/"]))}catch(n){}u("competitor_referral",{competitor_domain:r.domain,competitor_name:r.name||null,landing_page:window.location.pathname,source_page_url:window.location.href})}}}}function wn(){try{if(!sessionStorage.getItem("_meseo_competitor_referrer"))return;var e=sessionStorage.getItem("_meseo_competitor_journey"),t;try{t=e?JSON.parse(e):[]}catch(n){t=[]}Array.isArray(t)||(t=[]);var r=window.location.pathname||"/";(t.length===0||t[t.length-1]!==r)&&(t.push(r),t.length>30&&(t=t.slice(-30)),sessionStorage.setItem("_meseo_competitor_journey",JSON.stringify(t)))}catch(n){}}function Ka(e){if(!vn){var t,r,n,o;try{if(t=sessionStorage.getItem("_meseo_competitor_referrer"),!t)return;r=sessionStorage.getItem("_meseo_competitor_referrer_name")||null,n=parseInt(sessionStorage.getItem("_meseo_competitor_referrer_ts")||"0",10),o=JSON.parse(sessionStorage.getItem("_meseo_competitor_journey")||"[]"),Array.isArray(o)||(o=[])}catch(a){return}vn=!0,u("competitive_journey",{arrived_from:t,arrived_from_name:r,departed_to:e,pages_visited:o,page_count:o.length,session_duration_ms:n>0?Math.max(0,Date.now()-n):null,source_page_url:window.location.href})}}function Za(e,t,r){if(_t){var n=yn(r);if(n){var o=n.domain;if(!hn[o]){hn[o]=!0;var a=Date.now()-Le,i=null;try{i=sessionStorage.getItem("_meseo_competitor_referrer")||null}catch(c){}u("competitor_visit",{competitor_domain:n.domain,competitor_name:n.name||null,link_url:B(e.href||""),source_page_url:window.location.href,time_on_site_before_leaving_ms:a,from_competitor:i}),Ka(n.domain)}}}}try{$a()}catch(e){}try{wn()}catch(e){}var Oe=0,bn=!1;function We(){try{var e=Math.max(document.body?document.body.scrollHeight:0,document.documentElement?document.documentElement.scrollHeight:0,1),t=window.innerHeight||0,r=window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||0,n=r+t,o=n/e*100;o>100&&(o=100),o>Oe&&(Oe=o)}catch(a){}}try{We()}catch(e){}window.addEventListener("scroll",We,{passive:!0}),window.addEventListener("resize",We,{passive:!0});function Qa(){try{if(!document.body)return 0;var e=document.body.innerText||"";e.length>5e5&&(e=e.slice(0,5e5));var t=e.match(/\S+/g);return t?t.length:0}catch(r){return 0}}function bt(){if(!bn){bn=!0;try{We();var e=Math.max(0,Date.now()-Le),t=Qa(),r=Math.round(Oe),n=e/6e4,o=t*(r/100),a=n>0?Math.round(o/n):0,i=r>75&&a>=50&&a<=400&&e>3e4;u("content_engagement",{max_scroll_depth:r,time_on_page_ms:e,word_count:t,reading_speed_wpm:a,read_complete:i,source_page_url:window.location.href})}catch(c){}}}window.addEventListener("beforeunload",bt),window.addEventListener("pagehide",bt),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&bt()});var Sn={};function ei(e){if(!e)return null;try{if(e.nodeType===3&&(e=e.parentElement),!e)return null;var t=e.closest&&e.closest("article, section, main, .content, .post, .entry, [role='main']")||document.body;if(!t||!t.querySelectorAll)return null;for(var r=t.querySelectorAll("h1, h2, h3, h4"),n=null,o=0;o2e3)return;var r=e.getRangeAt(0),n=r.commonAncestorContainer,o=ei(n),a=(o||"unknown")+":"+Math.floor(t.length/50);if(Sn[a])return;Sn[a]=!0,u("text_selected",{section_heading:o,selection_length:t.length,source_page_url:window.location.href})}catch(i){}}document.addEventListener("mouseup",kn),document.addEventListener("keyup",function(e){e&&(e.key==="Shift"||(e.key||"").indexOf("Arrow")===0)&&kn()});var te=[{state:document.visibilityState||"visible",ts:Le}],xn=!1;document.addEventListener("visibilitychange",function(){try{te.push({state:document.visibilityState,ts:Date.now()}),te.length>50&&te.splice(0,te.length-50)}catch(e){}});function ti(e,t,r,n){if(n===0)return"single_visit";for(var o=1;o=4?"multi_tab_comparison":"compare_and_return"}function En(){if(!xn){xn=!0;try{te.push({state:document.visibilityState||"hidden",ts:Date.now()});for(var e=0,t=0,r=0,n=1;n500&&(t=t.slice(0,500));try{if(window._meseoHealthcareMode)return ri.test(t)?null:t.slice(0,60)}catch(r){}return t.slice(0,200)}function An(e){return!e||!e.querySelector?null:e.querySelector("input[type='search'], input[name='s'], input[name='q'], input[name='search'], input[name='query'], input[name='keyword'], input[name='keywords']")}function ni(e){if(!e||e.tagName!=="FORM")return!1;try{if((e.getAttribute("role")||"").toLowerCase()==="search"||e.querySelector("input[type='search']")||An(e))return!0;var t=((e.className&&e.className.baseVal!==void 0?e.className.baseVal:e.className)||"")+" "+(e.id||"");if(/search[-_ ]?form|search-bar|search-box/i.test(t))return!0}catch(r){}return!1}document.addEventListener("submit",function(e){try{var t=e.target;if(!ni(t))return;var r=An(t);if(!r)return;var n=Ln(r.value||"");if(!n)return;var o="submit:"+n.toLowerCase();if(Ge[o])return;Ge[o]=!0,u("site_search",{query:n,query_length:(r.value||"").length,source:"form_submit",source_page_url:window.location.href})}catch(a){}},!0);function In(){try{var e=new URLSearchParams(window.location.search||""),t=e.get("s")||e.get("q")||e.get("search")||e.get("query")||e.get("keyword");if(!t||t.length<2)return;var r=Ln(t);if(!r)return;var n="url:"+r.toLowerCase();if(Ge[n])return;Ge[n]=!0;var o=null;try{var a=document.body?(document.body.innerText||"").slice(0,3e3):"",i=a.match(/\b(\d{1,6})\s+(?:results?|matches|items|products|found)\b/i);i&&(o=parseInt(i[1],10))}catch(c){}u("site_search",{query:r,query_length:t.length,results_count:typeof o=="number"&&isFinite(o)?o:null,source:"url",source_page_url:window.location.href})}catch(c){}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",In):In();var Cn=q+"/api/site-tag/rum",On=q+"/api/site-tag/event",oi=200;function ai(e){try{var t=JSON.stringify(e);if(navigator.sendBeacon){var r=new Blob([t],{type:"application/json"});if(navigator.sendBeacon(Cn,r))return}fetch(Cn,{method:"POST",headers:{"Content-Type":"application/json"},body:t,keepalive:!0,credentials:"omit"}).catch(function(){})}catch(n){}}function j(e,t){if(!(K.suppressEvents||window.__meseo_suppress))try{var r=xe(),n=JSON.stringify({siteId:V,sessionId:r&&r.id,pageUrl:window.location.href,eventType:e,eventData:t||{}});if(navigator.sendBeacon){var o=new Blob([n],{type:"application/json"});if(navigator.sendBeacon(On,o))return}fetch(On,{method:"POST",headers:{"Content-Type":"application/json"},body:n,keepalive:!0,credentials:"omit"}).catch(function(){})}catch(a){}}function ii(){try{var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e&&(e.effectiveType||e.type)||null}catch(t){return null}}function ci(){try{var e=(navigator.userAgent||"").toLowerCase();return/ipad|tablet/.test(e)?"tablet":/mobile|iphone|android(?!.*tab)/.test(e)?"mobile":"desktop"}catch(t){return null}}var Tn=!1,Je=null,Ye=0,he=0,St=0,Nn=0,ye=0,ue=null,Xe=null;try{var $e=performance.getEntriesByType?performance.getEntriesByType("navigation"):[];$e&&$e[0]&&typeof $e[0].responseStart=="number"?Xe=Math.max(0,$e[0].responseStart):performance.timing&&performance.timing.responseStart&&performance.timing.navigationStart&&(Xe=performance.timing.responseStart-performance.timing.navigationStart)}catch(e){}try{for(var kt=performance.getEntriesByType?performance.getEntriesByType("paint"):[],Ke=0;Ke0&&(o-Nn>1e3||o-St>5e3)&&(he=0,St=o),he===0&&(St=o),Nn=o,he+=n.value||0,he>Ye&&(Ye=he)}}});li.observe({type:"layout-shift",buffered:!0})}}catch(e){}var Rn={};function di(e){var t=e&&e.name||"";return/^key/.test(t)?"keypress":/^pointer/.test(t)||/^touch/.test(t)?"tap":"click"}try{if(typeof PerformanceObserver=="function"){var qn=new PerformanceObserver(function(e){for(var t=e.getEntries(),r=0;rye&&(ye=n.duration),n.duration>=oi)){var o=n.target&&n.target.nodeType===1?n.target:null,a=o&&ne(o)||null,i=di(n),c=(a||"anon")+":"+i;Rn[c]||(Rn[c]=!0,j("slow_interaction",{element_label:a,element_tag:o?o.tagName:null,element_id:o&&o.id||null,delay:Math.round(n.duration),interaction_type:i,url:window.location.href}))}}});try{qn.observe({type:"event",buffered:!0,durationThreshold:40})}catch(e){qn.observe({type:"event",buffered:!0})}try{var fi=new PerformanceObserver(function(e){for(var t=e.getEntries(),r=0;rye&&(ye=n)}});fi.observe({type:"first-input",buffered:!0})}catch(e){}}}catch(e){}var Dn={};try{if(typeof PerformanceObserver=="function"){var mi=new PerformanceObserver(function(e){for(var t=e.getEntries(),r=0;rpi)||(Pn++,Pn>gi))return;j("js_error",{message:n,filename:t?String(t).slice(0,500):null,lineNumber:typeof r=="number"?r:null,url:window.location.href})}catch(o){}}try{var Mn=window.onerror;window.onerror=function(e,t,r){if(Fn(e,t,r),typeof Mn=="function")try{return Mn.apply(this,arguments)}catch(n){}return!1}}catch(e){}try{window.addEventListener("unhandledrejection",function(e){var t=e&&e.reason,r="";if(t instanceof Error)r=t.message;else if(typeof t=="string")r=t;else try{r=JSON.stringify(t)}catch(n){r="Unhandled rejection"}Fn("[promise] "+r,null,null)})}catch(e){}function Et(){if(!Tn){Tn=!0;try{if(ue==null)try{for(var e=performance.getEntriesByType?performance.getEntriesByType("paint"):[],t=0;t0?Math.round(ye):null,ttfb:typeof Xe=="number"?Math.round(Xe):null,fcp:typeof ue=="number"?Math.round(ue):null,device:ci(),connection:ii(),deviceMemory:r&&typeof navigator.deviceMemory=="number"||typeof navigator.deviceMemory=="number"?navigator.deviceMemory:null,viewportW:window.innerWidth||null,viewportH:window.innerHeight||null})}catch(n){}}}window.addEventListener("pagehide",Et),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Et()}),setTimeout(Et,15e3);function Lt(e){if(!e)return null;try{if(e.id)return"#"+String(e.id).slice(0,60);var t=(e.className&&e.className.baseVal!==void 0?e.className.baseVal:e.className||"")+"";return(e.tagName||"")+"."+t.slice(0,40)}catch(r){return null}}var vi=2e3,hi=3,Un={},Vn={},Bn=0;document.addEventListener("click",function(e){try{Bn++;var t=e.target;if(!t)return;var r=Lt(t)||Lt(t.parentElement);if(!r)return;var n=Date.now(),o=Un[r]=Un[r]||[];for(o.push(n);o.length&&o[0]=hi&&!Vn[r]){Vn[r]=!0;var a=(t.tagName==="SVG"||t.nodeType===3)&&t.parentElement||t;j("rage_click",{element_label:ne(a),element_tag:a.tagName||null,element_id:a.id||null,click_count:o.length,url:window.location.href})}}catch(i){}},!0);var yi=5,zn=0,jn={},_i="a, button, input, select, textarea, label, [role='button'], [role='link'], [role='tab'], [role='menuitem']";document.addEventListener("click",function(e){if(!(zn>=yi))try{var t=e.target;if(!t||t.nodeType!==1||t.closest&&t.closest(_i))return;var r;try{r=window.getComputedStyle(t).cursor}catch(a){return}if(r!=="pointer")return;var n=!1,o;try{o=new MutationObserver(function(){n=!0}),o.observe(document.body||document.documentElement,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}catch(a){return}setTimeout(function(){try{o.disconnect()}catch(c){}if(!n){var a=Lt(t);if(!(a&&jn[a])){a&&(jn[a]=!0),zn++;var i=((t.innerText||t.textContent||"")+"").replace(/\s+/g," ").trim();j("dead_click",{element_label:ne(t),element_tag:t.tagName,element_id:t.id||null,element_text:i.slice(0,50),url:window.location.href})}}},500)}catch(a){}},!0);var Hn=".error, .alert-danger, .alert-error, .form-error, .field-error, .validation-error, [role='alert'], .invalid-feedback, .has-error, .ant-form-item-explain-error",Wn={},At=15,Ze=0;function Gn(e){if(!(Ze>=At)&&!(!e||e.nodeType!==1))try{var t=((e.innerText||e.textContent||"")+"").replace(/\s+/g," ").trim();if(!t||t.length<3||t.length>500)return;var r=t.slice(0,80).toLowerCase();if(Wn[r])return;Wn[r]=!0,Ze++;var n=null;try{var o=e.closest&&e.closest("form");o&&(n=o.id||o.name||null||(o.action?B(o.action):null))}catch(a){}j("error_shown",{error_text:t.slice(0,100),nearest_form_id:n,element_tag:e.tagName||null,url:window.location.href})}catch(a){}}function It(e){if(!(!e||Ze>=At))try{if(e.matches&&e.matches(Hn)&&Gn(e),e.querySelectorAll)for(var t=e.querySelectorAll(Hn),r=0;r=At){try{Jn.disconnect()}catch(o){}return}for(var t=0;t0,s&&n++}}}}catch(m){}j("form_abandoned",{form_id:t.formId,fields_filled_count:n,total_fields:r,time_spent_ms:Math.max(0,Date.now()-t.startedAt),last_field_focused:t.lastFieldFocused,url:window.location.href})}}}catch(m){}}}window.addEventListener("beforeunload",Ct),window.addEventListener("pagehide",Ct),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ct()});var Kn=!1;function Ot(){if(!Kn){Kn=!0;try{var e=Date.now()-Le;Oe<15&&e<1e4&&Bn===0&&j("scroll_bounce",{max_scroll_depth:Math.round(Oe),time_on_page_ms:e,url:window.location.href})}catch(t){}}}window.addEventListener("beforeunload",Ot),window.addEventListener("pagehide",Ot),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ot()});var Tt=0,Zn=!1,wi=3;document.addEventListener("keydown",function(e){try{if(!e||e.key!=="Tab")return;Tt++,!Zn&&Tt>=wi&&(Zn=!0,j("keyboard_navigation",{tab_count:Tt,url:window.location.href}))}catch(t){}},!0);var Qn=!1,eo=!1,bi=3e4,Si=/(?:^|\.)(google|bing|yahoo|duckduckgo|ecosia|baidu|yandex|qwant|brave)\.[a-z.]{2,10}$/i;function to(){try{if(!document.referrer)return!1;var e=new URL(document.referrer).hostname||"";return Si.test(e)}catch(t){return!1}}window.addEventListener("popstate",function(){if(!Qn){Qn=!0;try{try{sessionStorage.setItem("_meseo_back_from",window.location.href),sessionStorage.setItem("_meseo_back_ts",String(Date.now()))}catch(e){}j("navigation_pattern",{pattern:"back_button",from_url:B(window.location.href),to_url:null,referrer_was_search:to(),url:window.location.href})}catch(e){}}});function ro(){if(!eo)try{var e=parseInt(sessionStorage.getItem("_meseo_back_ts")||"0",10),t=sessionStorage.getItem("_meseo_back_from")||"";if(!e||Date.now()-e>bi||!to()||t===window.location.href)return;eo=!0,j("navigation_pattern",{pattern:"pogo_stick",from_url:t?B(t):null,to_url:B(window.location.href),url:window.location.href});try{sessionStorage.removeItem("_meseo_back_ts"),sessionStorage.removeItem("_meseo_back_from")}catch(r){}}catch(r){}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ro):ro();var no=!1,ki=/\b(404|not\s*found|page\s*not\s*found|page\s*doesn'?t\s*exist)\b/i,xi=/\b(page\s+not\s+found|404\s+error|page\s+(?:does|doesn'?t)\s+exist|we\s+can'?t\s+find\s+(?:that|the\s+page)|sorry[,\s]+we\s+couldn'?t\s+find)\b/i;function Ei(){try{var e=(document.title||"").toLowerCase();if(ki.test(e))return!0;var t=document.body?(document.body.innerText||"").slice(0,2e3).toLowerCase():"";if(xi.test(t))return!0;var r=document.querySelector("meta[name='http-status'], meta[name='httpstatus']");if(r&&/404/.test(r.content||""))return!0}catch(n){}return!1}function oo(){if(!no&&Ei()){no=!0;try{j("page_not_found",{requested_url:B(window.location.href),referrer:document.referrer?B(document.referrer):null,url:window.location.href})}catch(e){}}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",oo):oo();function ao(){try{if(sessionStorage.getItem("_meseo_a11y_context_sent")==="1")return;sessionStorage.setItem("_meseo_a11y_context_sent","1")}catch(a){}try{var e=navigator.language||navigator.languages&&navigator.languages[0]||null,t=null;try{t=Array.isArray(navigator.languages)?navigator.languages.slice(0,5):null}catch(a){}var r=null,n=null,o=null;try{typeof window.matchMedia=="function"&&(r=window.matchMedia("(prefers-reduced-motion: reduce)").matches,n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":window.matchMedia("(prefers-color-scheme: light)").matches?"light":"no-preference",window.matchMedia("(prefers-contrast: more)").matches?o="more":window.matchMedia("(prefers-contrast: less)").matches?o="less":o="no-preference")}catch(a){}j("accessibility_context",{language:e,languages:t,prefers_reduced_motion:r,prefers_color_scheme:n,prefers_contrast:o,screen_width:window.screen&&window.screen.width||null,screen_height:window.screen&&window.screen.height||null,viewport_width:window.innerWidth||null,viewport_height:window.innerHeight||null,device_pixel_ratio:window.devicePixelRatio||null,touch_enabled:"ontouchstart"in window||navigator.maxTouchPoints&&navigator.maxTouchPoints>0,url:window.location.href})}catch(a){}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ao):ao();var io={},co={},so={},Y={},uo=!1;function Nt(){try{var e=(window.location.pathname||"").toLowerCase();return/\/(appointment|appointments|book|booking|bookings|schedule|scheduling|calendar|reservation|reservations|confirmation|visit)\b/.test(e)}catch(t){return!1}}var Rt=[{re:/calendar\.google\.com\/(?:event|render|calendar\/render)/i,type:"google"},{re:/outlook\.(?:office|live|office365)\.com\/(?:calendar|owa\/?\?.*compose)/i,type:"outlook"},{re:/calendar\.yahoo\.com/i,type:"yahoo"},{re:/webcal:/i,type:"apple"}],Li=/(?:^|[\s_-])(atcb|addeventatc|add-to-calendar|addtocalendar|add-event|add[-_]?event|atc[-_]btn)(?:$|[\s_-])/i;function Ai(e){if(!e)return null;var t=e.getAttribute&&e.getAttribute("href")||"";if(/\.ics(?:[?#]|$)/i.test(t))return"ical";for(var r=0;r80)return;var o=null;if(Ci.test(n)?o="reschedule":Oi.test(n)&&(o="cancel"),!o)return;var a=o+":"+(r.id||n.slice(0,40));if(co[a])return;co[a]=!0,u("appointment_modify_intent",{action:o,link_text:n.slice(0,80),element_label:ne(r),source_page_url:window.location.href})}catch(i){}},!0);var Ti=".datepicker .ui-state-default,.flatpickr-day:not(.flatpickr-disabled),.pika-day:not(.is-disabled),.react-datepicker__day:not(.react-datepicker__day--disabled),.rdp-day:not(.rdp-day_disabled),.MuiPickersDay-root:not(.Mui-disabled),.ant-picker-cell:not(.ant-picker-cell-disabled),.fc-day[data-date],[role='gridcell'][aria-selected],[data-picker-day]",lo=["sun","mon","tue","wed","thu","fri","sat"];function Ni(e){try{var t=e.getAttribute&&e.getAttribute("aria-label");if(t){var r=t.match(/\b(sun|mon|tue|tues|wed|thu|thur|thurs|fri|sat)(?:day|s)?\b/i);if(r)return r[1].toLowerCase().slice(0,3)}var n=e.getAttribute&&(e.getAttribute("data-date")||e.getAttribute("data-day")||e.getAttribute("aria-label-ymd"));if(n){var o=new Date(n);if(!isNaN(o.getTime()))return lo[o.getDay()]}}catch(a){}return null}document.addEventListener("click",function(e){try{if(!Nt())return;var t=e.target;if(!t||!t.closest)return;var r=null;try{r=t.closest(Ti)}catch(i){}if(!r)return;var n=null;try{n=r.closest(".datepicker, .flatpickr-calendar, .pika-single, .react-datepicker, .rdp, .MuiPickersLayout-root, .ant-picker-panel, .fc, [role='application']")||r.parentElement}catch(i){n=r.parentElement}var o="picker:"+(n&&n.id||0);Y[o]||(Y[o]={datesChecked:0,selectedDow:null}),Y[o].datesChecked++;var a=Ni(r);a&&(Y[o].selectedDow=a)}catch(i){}},!0),document.addEventListener("change",function(e){try{if(!Nt())return;var t=e.target;if(!t||t.tagName!=="INPUT"||(t.type||"").toLowerCase()!=="date")return;var r="native:"+(t.name||t.id||"date");Y[r]||(Y[r]={datesChecked:0,selectedDow:null}),Y[r].datesChecked++;var n=t.value||"";if(n){var o=new Date(n);isNaN(o.getTime())||(Y[r].selectedDow=lo[o.getDay()])}}catch(a){}},!0);function qt(){if(!uo){uo=!0;try{for(var e in Y)if(Object.prototype.hasOwnProperty.call(Y,e)){var t=Y[e];!t||t.datesChecked===0||u("availability_check",{dates_checked:t.datesChecked,selected_dow:t.selectedDow,picker_id:e,source_page_url:window.location.href})}}catch(r){}}}window.addEventListener("beforeunload",qt),window.addEventListener("pagehide",qt),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&qt()});var Qe=/\b(wait[-_ ]?list|notify\s+me|let\s+me\s+know|join\s+the\s+list)\b/i;function Ri(e){if(!e||e.tagName!=="FORM")return!1;try{if(Qe.test(window.location.pathname||""))return!0;var t=e.querySelector("button[type='submit'], input[type='submit'], button:not([type])");if(t){var r=(t.innerText||t.value||"").trim();if(r&&Qe.test(r))return!0}var n=e.closest("section, article, div[class*='form'], div")||e,o=n.querySelector&&n.querySelector("h1, h2, h3, h4, legend, label");if(o){var a=(o.innerText||o.textContent||"").trim();if(a&&Qe.test(a))return!0}var i=((e.className&&e.className.baseVal!==void 0?e.className.baseVal:e.className||"")+" "+(e.id||"")+" "+(e.getAttribute("data-form-type")||"")).trim();if(i&&Qe.test(i))return!0}catch(c){}return!1}document.addEventListener("submit",function(e){try{var t=e.target;if(!Ri(t))return;var r="waitlist:"+(t.id||t.action||Array.prototype.indexOf.call(document.forms,t));if(so[r])return;so[r]=!0,u("waitlist_signup",{form_id:t.id||null,form_action:B(t.action||""),source:"native",source_page_url:window.location.href})}catch(n){}},!0);var we=null,Te=1,Dt=!1,fo=0,mo=null,Pt=Date.now(),Ft=!1,po="_meseo_vid",Mt="_meseo_vfirst_ts",et="_meseo_vvisits",go="_meseo_vlast_ts",vo="_meseo_vlast_entry",ho="_meseo_vlast_sid",Ut="_meseo_vpath",Vt="_meseo_vcontent",yo="_meseo_vpath_sid";function qi(){try{var e=tr(),t=e.utm_source||"",r=e.utm_medium||"",n="";try{n=document.referrer?new URL(document.referrer).hostname.toLowerCase():""}catch(o){}return t||(/google\./i.test(n)?(t="google",r=r||"organic"):/bing\./i.test(n)?(t="bing",r=r||"organic"):/(^|\.)(duckduckgo|yahoo|ecosia|baidu|yandex|qwant|brave)\./i.test(n)?(t="search",r=r||"organic"):/facebook\./i.test(n)?(t="facebook",r=r||"social"):/instagram\./i.test(n)?(t="instagram",r=r||"social"):/(^|\.)(twitter|x)\./i.test(n)?(t="twitter",r=r||"social"):/linkedin\./i.test(n)?(t="linkedin",r=r||"social"):/(^|\.)(tiktok|youtube)\./i.test(n)?(t=n.indexOf("tiktok")>-1?"tiktok":"youtube",r=r||"social"):n?(t=n.replace(/^www\./,""),r=r||"referral"):(t="direct",r="none")),r||(r=e.gclid?"cpc":"other"),{source:t.slice(0,80),medium:r.slice(0,40),campaign:e.utm_campaign||null}}catch(o){return{source:"direct",medium:"none",campaign:null}}}function tt(e){try{var t=localStorage.getItem(e);if(!t)return[];var r=JSON.parse(t);return Array.isArray(r)?r:[]}catch(n){return[]}}function _o(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(r){}}function Di(){try{if(typeof localStorage=="undefined")return}catch(c){return}try{var e=localStorage.getItem(po),t=parseInt(localStorage.getItem(Mt)||"0",10)||0,r=parseInt(localStorage.getItem(et)||"0",10)||0,n=parseInt(localStorage.getItem(go)||"0",10)||0,o=localStorage.getItem(vo),a=localStorage.getItem(ho),i=(xe()||{}).id||null;e?(we=e,Pt=t||Date.now(),i&&i!==a?(r=r+1,localStorage.setItem(et,String(r)),Te=r,Dt=!0,fo=n?Math.max(0,Math.floor((Date.now()-n)/864e5)):0,mo=o||null,u("return_visit",{visit_number:Te,days_since_last_visit:fo,previous_entry_page:mo,visitor_first_ts:Pt,source_page_url:window.location.href})):(Te=r||1,Dt=Te>1)):(e="v_"+Date.now().toString(36)+"_"+Math.random().toString(36).slice(2,10),localStorage.setItem(po,e),t=Date.now(),localStorage.setItem(Mt,String(t)),r=1,localStorage.setItem(et,String(r)),we=e,Te=1,Dt=!1,Pt=t);try{localStorage.setItem(go,String(Date.now()))}catch(c){}try{localStorage.setItem(ho,i||"")}catch(c){}if(a!==i)try{localStorage.setItem(vo,window.location.href)}catch(c){}}catch(c){}}function Pi(){try{var e=(xe()||{}).id||null,t=null;try{t=localStorage.getItem(yo)}catch(o){return}if(e&&t===e)return;var r=qi(),n=tt(Ut);n.push({ts:Date.now(),source:r.source,medium:r.medium,campaign:r.campaign,entry:B(window.location.pathname||"/")}),n.length>20&&(n=n.slice(-20)),_o(Ut,n);try{localStorage.setItem(yo,e||"")}catch(o){}}catch(o){}}var Fi=/\/(checkout|pay|order|cart|book|booking|schedule|appointment|confirmation|thank[-_]?you|receipt|order[-_]received)\b/i;function Mi(){try{var e=window.location.pathname||"/";if(Fi.test(e.toLowerCase()))return;var t=tt(Vt),r=t.length>0?t[t.length-1]:null;if(r&&r.path===e)return;t.push({ts:Date.now(),path:B(e)}),t.length>30&&(t=t.slice(-30)),_o(Vt,t)}catch(n){}}var Ui={form_submit:1,booking_confirmed:1,purchase:1,purchase_completed:1,add_to_cart:1,checkout_started:1,email_click:1,sms_click:1,newsletter_signup:1,file_download:1,waitlist_signup:1,click_to_call:1};function Vi(e){if(!Ft){Ft=!0;try{var t=parseInt(localStorage.getItem(Mt)||"0",10)||Date.now(),r=parseInt(localStorage.getItem(et)||"1",10)||1,n=tt(Ut),o=tt(Vt),a=Math.max(0,(Date.now()-t)/864e5),i={conversion_type:e,visitor_id:we,days_to_convert:Math.round(a*10)/10,sessions_to_convert:r,touchpoints:n,content_path:o.map(function(c){return c.path}),source_page_url:window.location.href};Bt("conversion_path_complete",i),r>=2&&Bt("multi_session_conversion",{conversion_type:e,visitor_id:we,session_count:r,touchpoints:n,days_to_convert:i.days_to_convert,source_page_url:window.location.href})}catch(c){}}}var Bt=u;u=function(e,t){var r;try{r=Bt(e,t)}catch(n){r=void 0}try{e&&Ui[e]&&!Ft&&Vi(e)}catch(n){}return r};try{Di()}catch(e){}try{Pi()}catch(e){}try{Mi()}catch(e){}function G(e,t){try{if(typeof e!="string"||typeof t!="function"||(ae||(ae=[]),ae.push({pattern:e.toLowerCase(),callback:t}),Jt))return;Jt=!0;var r=XMLHttpRequest.prototype.open,n=XMLHttpRequest.prototype.send;if(XMLHttpRequest.prototype.open=function(a,i){try{this._meseoUrl=(i||"")+""}catch(c){}return r.apply(this,arguments)},XMLHttpRequest.prototype.send=function(a){try{var i=(this._meseoUrl||"").toLowerCase();if(i){var c="";typeof a=="string"&&(c=a.toLowerCase().slice(0,256));for(var l=0;l-1||c&&c.indexOf(s.pattern)>-1)try{s.callback(i)}catch(m){}}}}catch(m){}return n.apply(this,arguments)},typeof window.fetch=="function"){var o=window.fetch;window.fetch=function(a,i){try{var c=(typeof a=="string"?a:a&&a.url||"").toLowerCase(),l="";if(i&&typeof i.body=="string"&&(l=i.body.toLowerCase().slice(0,256)),c)for(var s=0;s-1||l&&l.indexOf(m.pattern)>-1)try{m.callback(c)}catch(x){}}}catch(x){}return o.apply(this,arguments)}}}catch(a){}}function Bi(e,t,r){if(!(!e||!t||typeof r!="function")&&typeof MutationObserver!="undefined"){var n=!1;try{if(e.querySelector&&e.querySelector(t)){n=!0;try{r()}catch(a){}return}var o=new MutationObserver(function(){if(!n&&e.querySelector&&e.querySelector(t)){n=!0;try{r()}catch(a){}o.disconnect()}});o.observe(e,{childList:!0,subtree:!0})}catch(a){}}}var wo={amelia:{name:"Amelia",detect:function(){return!!document.querySelector([".amelia-app-booking",".amelia-frontend",'[id*="amelia-booking"]','[id*="amelia"]','[class*="amelia-booking"]','[class*="amelia"]',".elementor-widget-stepbooking",".elementor-widget-amelia",'[data-widget_type*="amelia"]','[data-widget_type="stepbooking"]'].join(", "))||typeof window.ameliaBooking!="undefined"||typeof window.wpAmeliaUrls!="undefined"},container:[".amelia-app-booking",".amelia-frontend",".elementor-widget-stepbooking",'[id*="amelia-booking"]','[class*="amelia"]'].join(", "),track:function(e){if(e){try{var t="";if(typeof MutationObserver!="undefined"){var r=new MutationObserver(function(){try{var a=e.querySelector('.am-active-step, .amelia-booking-step.active, [aria-current="step"], .step-item.current');if(a){var i=a.getAttribute("data-step")||(a.parentElement?Array.prototype.indexOf.call(a.parentElement.children,a)+1:null);if(i!=null&&e._meseoLastStep!==i){e._meseoLastStep=i,u("booking_step",{source:"amelia",step:String(i)});return}}for(var c=e.querySelectorAll('h2, h3, [class*="step"], [class*="header"]'),l="",s=0;s0&&(l+=(m.textContent||"").trim()+" ")}if(!l)return;var x=0,C=l.toLowerCase();/location|service|provider/.test(C)?x=1:/date|time|slot/.test(C)?x=2:/information|details|patient|your info/.test(C)?x=3:/confirm|summary|review/.test(C)&&(x=4);var A=x+":"+C.slice(0,80);x>0&&A!==t&&(t=A,u("booking_step",{source:"amelia",step:String(x),stepName:l.trim().slice(0,80)}))}catch(F){}});r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"],characterData:!0})}}catch(a){}try{var n={};e.addEventListener("click",function(a){for(var i=a.target,c=0;c<6&&i;c++){var l=(i.tagName||"").toUpperCase();if(l==="BUTTON"||l==="A"||i.getAttribute&&i.getAttribute("role")==="button"){var s=(i.innerText||i.textContent||"").trim().toLowerCase();if(/^(continue|next|book|confirm|submit|book now|confirm booking)$/.test(s)){var m=s+":"+(e._meseoLastStep||0);n[m]||(n[m]=!0,u("booking_step",{source:"amelia",step:"button:"+s}))}break}i=i.parentElement}},!0)}catch(a){}G("wpamelia",function(){u("booking_submit",{source:"amelia"})}),G("wp-json/amelia",function(){u("booking_submit",{source:"amelia"})}),G("/amelia/api",function(){u("booking_submit",{source:"amelia"})}),Bi(e,[".am-congratulations",".am-confirmation",".amelia-booking-confirmed",'[class*="congratulations"]','[class*="confirmed"]','[class*="success"]','[class*="thank"]'].join(", "),function(){e._meseoBookingConfirmedFired||(e._meseoBookingConfirmedFired=!0,u("booking_confirmed",{source:"amelia"}))});try{if(typeof MutationObserver!="undefined"){var o=new MutationObserver(function(){try{if(e._meseoBookingConfirmedFired){o.disconnect();return}var a=(e.innerText||"").toLowerCase();/thank you|appointment confirmed|booking confirmed|successfully booked/.test(a)&&(e._meseoBookingConfirmedFired=!0,u("booking_confirmed",{source:"amelia"}),o.disconnect())}catch(i){}});o.observe(e,{childList:!0,subtree:!0,characterData:!0})}}catch(a){}try{console.debug("[meSEO] Amelia Step Booking detected and tracked")}catch(a){}u("booking_widget_opened",{source:"amelia"})}}},calendly:{name:"Calendly",detect:function(){return!!document.querySelector(".calendly-inline-widget, .calendly-badge-widget")||typeof window.Calendly!="undefined"},container:".calendly-inline-widget, .calendly-badge-widget",track:function(){window.addEventListener("message",function(e){try{if(!e||!e.origin||e.origin.indexOf("calendly.com")===-1||!e.data||!e.data.event)return;e.data.event==="calendly.event_type_viewed"?u("booking_widget_opened",{source:"calendly"}):e.data.event==="calendly.date_and_time_selected"?u("booking_step",{source:"calendly",step:"datetime_selected"}):e.data.event==="calendly.event_scheduled"&&u("booking_confirmed",{source:"calendly"})}catch(t){}})}},nexhealth:{name:"NexHealth",detect:function(){return!!document.querySelector('[data-nexhealth], iframe[src*="nexhealth"]')},container:'[data-nexhealth], iframe[src*="nexhealth"]',track:function(){window.addEventListener("message",function(e){try{if(!e||!e.data)return;if(typeof e.data=="string"&&e.data.toLowerCase().indexOf("nexhealth")>-1)try{var t=JSON.parse(e.data);t&&(t.type==="appointment_booked"||t.event==="booked")&&u("booking_confirmed",{source:"nexhealth"})}catch(r){}}catch(r){}}),u("booking_widget_opened",{source:"nexhealth"})}},acuity:{name:"Acuity Scheduling",detect:function(){return!!document.querySelector('iframe[src*="acuityscheduling"]')},container:'iframe[src*="acuityscheduling"]',track:function(){window.addEventListener("message",function(e){try{if(!e||!e.origin||e.origin.indexOf("acuityscheduling")===-1)return;var t=null;try{t=typeof e.data=="string"?JSON.parse(e.data):e.data}catch(r){}t&&t.action==="appointment-scheduled"&&u("booking_confirmed",{source:"acuity"})}catch(r){}}),u("booking_widget_opened",{source:"acuity"})}},jotform:{name:"JotForm",detect:function(){return!!document.querySelector('iframe[src*="jotform"], .jotform-form, [id*="JotForm"]')},container:'iframe[src*="jotform"], .jotform-form',track:function(){window.addEventListener("message",function(e){try{if(!e||!e.origin||e.origin.indexOf("jotform")===-1)return;var t=typeof e.data=="string"?JSON.parse(e.data):e.data;t&&t.action==="submission-completed"&&u("form_submit",{source:"jotform",form_id:t.formID||null,submissionId:ee()})}catch(r){}})}},typeform:{name:"Typeform",detect:function(){return!!document.querySelector('[data-tf-widget], iframe[src*="typeform"]')},container:'[data-tf-widget], iframe[src*="typeform"]',track:function(){window.addEventListener("message",function(e){try{if(!e||!e.data)return;(e.data.type==="form-submit"||typeof e.data=="string"&&e.data.indexOf("form-submit")>-1)&&u("form_submit",{source:"typeform",submissionId:ee()})}catch(t){}})}},wpforms:{name:"WPForms",detect:function(){return!!document.querySelector(".wpforms-form, .wpforms-container")},container:".wpforms-form",track:function(){G("wpforms_submit",function(){u("form_submit",{source:"wpforms",submissionId:ee()})})}},gravityforms:{name:"Gravity Forms",detect:function(){return!!document.querySelector(".gform_wrapper, .gfield")},container:".gform_wrapper",track:function(){try{document.addEventListener("gform_confirmation_loaded",function(e){var t=null;try{t=e&&e.detail&&(e.detail.formId||e.detail)||null}catch(r){}u("form_submit",{source:"gravityforms",form_id:t,submissionId:ee()})})}catch(e){}G("gf_submit",function(){u("form_submit",{source:"gravityforms",submissionId:ee()})})}},contactform7:{name:"Contact Form 7",detect:function(){return!!document.querySelector(".wpcf7-form, .wpcf7")},container:".wpcf7-form",track:function(){try{document.addEventListener("wpcf7mailsent",function(e){var t=null;try{t=e&&e.detail&&e.detail.contactFormId?e.detail.contactFormId:null}catch(r){}u("form_submit",{source:"contactform7",form_id:t,submissionId:ee()})})}catch(e){}}},hubspot:{name:"HubSpot Forms",detect:function(){return!!document.querySelector(".hs-form, .hbspt-form")||typeof window.hbspt!="undefined"},container:".hs-form, .hbspt-form",track:function(){window.addEventListener("message",function(e){try{if(!e||!e.data)return;e.data.type==="hsFormCallback"&&e.data.eventName==="onFormSubmitted"&&u("form_submit",{source:"hubspot",form_id:e.data.id||null,submissionId:ee()})}catch(t){}})}},deardoc:{name:"DearDoc",detect:function(){return!!document.querySelector(['[class*="deardoc"]','[id*="deardoc"]','iframe[src*="deardoc"]',"[data-deardoc]",".dd-chat-widget"].join(", "))||typeof window.DearDoc!="undefined"||typeof window.deardocChat!="undefined"},container:'[class*="deardoc"], [id*="deardoc"], .dd-chat-widget, iframe[src*="deardoc"]',track:function(){var e=!1;document.addEventListener("click",function(t){if(!e)for(var r=t.target,n=0;n<6&&r;n++){var o=((r.className&&r.className.baseVal!==void 0?r.className.baseVal:r.className)||"").toString().toLowerCase(),a=((r.id||"")+"").toLowerCase(),i=((r.innerText||r.textContent||"")+"").trim().toLowerCase();if(o.indexOf("deardoc")>-1||a.indexOf("deardoc")>-1||o.indexOf("dd-chat")>-1||i==="chat now"){e=!0;try{console.debug("[meSEO] DearDoc chat opened")}catch(c){}u("chat_opened",{provider:"deardoc"});break}r=r.parentElement}},!0),window.addEventListener("message",function(t){try{if(!t||!t.data)return;var r=typeof t.data=="string"?t.data:"";if(!r||r.toLowerCase().indexOf("deardoc")===-1)return;var n=null;try{n=JSON.parse(r)}catch(o){}if(!n)return;n.type==="chat_started"||n.event==="opened"?e||(e=!0,u("chat_opened",{provider:"deardoc"})):(n.type==="message_sent"||n.event==="message")&&u("chat_message_sent",{provider:"deardoc"})}catch(o){}});try{console.debug("[meSEO] DearDoc chat widget detected")}catch(t){}u("chat_widget_detected",{provider:"deardoc"})}},birdeye:{name:"Birdeye",detect:function(){return!!document.querySelector('[class*="birdeye"], [id*="birdeye"], iframe[src*="birdeye"]')||typeof window.Birdeye!="undefined"},container:'[class*="birdeye"], [id*="birdeye"], iframe[src*="birdeye"]',track:function(){var e=!1;document.addEventListener("click",function(t){if(!e)for(var r=t.target,n=0;n<6&&r;n++){var o=((r.className&&r.className.baseVal!==void 0?r.className.baseVal:r.className)||"").toString().toLowerCase(),a=((r.id||"")+"").toLowerCase();if(o.indexOf("birdeye")>-1||a.indexOf("birdeye")>-1){e=!0,u("chat_opened",{provider:"birdeye"});break}r=r.parentElement}},!0),window.addEventListener("message",function(t){try{if(!t||!t.origin||t.origin.indexOf("birdeye")===-1)return;e||(e=!0,u("chat_opened",{provider:"birdeye"}))}catch(r){}});try{console.debug("[meSEO] Birdeye chat widget detected")}catch(t){}u("chat_widget_detected",{provider:"birdeye"})}},podium:{name:"Podium",detect:function(){return!!document.querySelector('[class*="podium"], [id*="podium"], iframe[src*="podium"]')||typeof window.Podium!="undefined"},container:'[class*="podium"], [id*="podium"], iframe[src*="podium"]',track:function(){var e=!1;document.addEventListener("click",function(t){if(!e)for(var r=t.target,n=0;n<6&&r;n++){var o=((r.className&&r.className.baseVal!==void 0?r.className.baseVal:r.className)||"").toString().toLowerCase(),a=((r.id||"")+"").toLowerCase();if(o.indexOf("podium")>-1||a.indexOf("podium")>-1){e=!0,u("chat_opened",{provider:"podium"});break}r=r.parentElement}},!0),window.addEventListener("message",function(t){try{if(!t||!t.origin||t.origin.indexOf("podium")===-1)return;e||(e=!0,u("chat_opened",{provider:"podium"}))}catch(r){}});try{console.debug("[meSEO] Podium chat widget detected")}catch(t){}u("chat_widget_detected",{provider:"podium"})}},weave:{name:"Weave",detect:function(){return!!document.querySelector('[class*="weave"], [id*="weave"], iframe[src*="getweave"]')||typeof window.getWeave!="undefined"||typeof window.Weave!="undefined"},container:'[class*="weave"], [id*="weave"], iframe[src*="getweave"]',track:function(){var e=!1;document.addEventListener("click",function(t){if(!e)for(var r=t.target,n=0;n<6&&r;n++){var o=((r.className&&r.className.baseVal!==void 0?r.className.baseVal:r.className)||"").toString().toLowerCase(),a=((r.id||"")+"").toLowerCase();if(o.indexOf("weave")>-1||a.indexOf("weave")>-1){e=!0,u("chat_opened",{provider:"weave"});break}r=r.parentElement}},!0),window.addEventListener("message",function(t){try{if(!t||!t.origin||t.origin.indexOf("getweave")===-1)return;e||(e=!0,u("chat_opened",{provider:"weave"}))}catch(r){}});try{console.debug("[meSEO] Weave chat widget detected")}catch(t){}u("chat_widget_detected",{provider:"weave"})}}},bo={intercom:{name:"Intercom",detect:function(){return typeof window.Intercom!="undefined"||!!document.querySelector('script[src*="widget.intercom.io"]')},track:function(){try{if(typeof window.Intercom!="function")return;var e={opened:!1};window.Intercom("onShow",function(){e.opened||(e.opened=!0,u("chat_opened",{provider:"intercom"}))}),window.Intercom("onHide",function(){e.opened=!1})}catch(t){}}},drift:{name:"Drift",detect:function(){return typeof window.drift!="undefined"||typeof window.driftt!="undefined"||!!document.querySelector('script[src*="js.driftt.com"]')},track:function(){try{var e=window.drift||window.driftt;if(!e||typeof e.on!="function")return;var t={opened:!1};e.on("chatOpen",function(){t.opened||(t.opened=!0,u("chat_opened",{provider:"drift"}))}),e.on("message",function(){u("chat_message_sent",{provider:"drift"})})}catch(r){}}},tidio:{name:"Tidio",detect:function(){return typeof window.tidioChatApi!="undefined"||!!document.querySelector('script[src*="code.tidio.co"]')},track:function(){try{var e=function(){if(!(typeof window.tidioChatApi!="object"||!window.tidioChatApi)&&typeof window.tidioChatApi.on=="function"){var t={opened:!1};window.tidioChatApi.on("open",function(){t.opened||(t.opened=!0,u("chat_opened",{provider:"tidio"}))}),window.tidioChatApi.on("messageFromVisitor",function(){u("chat_message_sent",{provider:"tidio"})})}};typeof window.tidioChatApi!="undefined"?e():document.addEventListener("tidioChat-ready",e)}catch(t){}}},tawkto:{name:"Tawk.to",detect:function(){return typeof window.Tawk_API!="undefined"||!!document.querySelector('script[src*="embed.tawk.to"]')},track:function(){try{if(typeof window.Tawk_API!="object"||!window.Tawk_API)return;var e=window.Tawk_API,t={opened:!1},r=e.onChatStarted;e.onChatStarted=function(){t.opened||(t.opened=!0,u("chat_opened",{provider:"tawkto"})),typeof r=="function"&&r.apply(this,arguments)};var n=e.onChatMessageVisitor;e.onChatMessageVisitor=function(){u("chat_message_sent",{provider:"tawkto"}),typeof n=="function"&&n.apply(this,arguments)}}catch(o){}}},livechat:{name:"LiveChat",detect:function(){return typeof window.LC_API!="undefined"||typeof window.LiveChatWidget!="undefined"||!!document.querySelector('script[src*="cdn.livechatinc.com"]')},track:function(){}},crisp:{name:"Crisp",detect:function(){return typeof window.$crisp!="undefined"||!!document.querySelector('script[src*="client.crisp.chat"]')},track:function(){}},olark:{name:"Olark",detect:function(){return typeof window.olark!="undefined"||!!document.querySelector('script[src*="static.olark.com"]')},track:function(){}},hubspot_chat:{name:"HubSpot Chat",detect:function(){return typeof window.HubSpotConversations!="undefined"||!!document.querySelector('script[src*="js-na1.hs-scripts.com"]')},track:function(){}},zendesk:{name:"Zendesk Chat",detect:function(){return typeof window.zE!="undefined"||typeof window.zESettings!="undefined"||!!document.querySelector('script[src*="static.zdassets.com"]')},track:function(){}},fb_messenger:{name:"Facebook Messenger",detect:function(){return typeof window.FB!="undefined"&&typeof window.FB.CustomerChat!="undefined"||!!document.querySelector('script[src*="connect.facebook.net"]')},track:function(){}},smartsupp:{name:"Smartsupp",detect:function(){return typeof window.smartsupp!="undefined"||!!document.querySelector('script[src*="smartsuppchat.com"]')},track:function(){}},jivochat:{name:"JivoChat",detect:function(){return typeof window.jivo_api!="undefined"||!!document.querySelector('script[src*="code.jivosite.com"]')},track:function(){}},purechat:{name:"Pure Chat",detect:function(){return typeof window.purechatApi!="undefined"||!!document.querySelector('script[src*="app.purechat.com"]')},track:function(){}},userlike:{name:"Userlike",detect:function(){return typeof window.userlikeStart!="undefined"||!!document.querySelector('script[src*="userlike.com/api/chat"]')},track:function(){}},frontchat:{name:"Front Chat",detect:function(){return typeof window.FrontChat!="undefined"||!!document.querySelector('script[src*="chat-assets.frontapp.com"]')},track:function(){}}},ec=new Set(["intercom","drift","tidio","tawkto"]);function zi(){try{Object.keys(bo).forEach(function(e){var t=bo[e];if(!t._activated){var r=!1;try{r=!!t.detect()}catch(o){r=!1}if(r){t._activated=!0;try{console.debug("[meSEO] chat widget detected:",t.name)}catch(o){}var n=null;try{n=t.version?t.version():null}catch(o){}Z.push({plugin:t.name,plugin_key:"chat_"+e,category:"chat",tag_v:at,confidence:"medium",version:n});try{t.track()}catch(o){}}}})}catch(e){}}var be=null;function M(){if(be!==null)return be;try{for(var e=[],t=document.scripts,r=0;r0)for(var a=0;a=2&&arguments[0]==="event"&&typeof arguments[1]=="string"&&Eo(arguments[1],arguments[2])}catch(n){}return r};t._meseoPatch=!0,window.gtag=t;try{console.debug("[meSEO] gtag interceptor active")}catch(r){}return!0}catch(r){return!1}}function Ao(){if(!window.dataLayer||typeof window.dataLayer.push!="function")return!1;if(window.dataLayer._meseoPatch)return!0;try{var e=window.dataLayer.push.bind(window.dataLayer);window.dataLayer.push=function(){var t;try{t=e.apply(this,arguments)}catch(a){}try{for(var r=0;r3e4)&&clearInterval(Ki)},500);window.meSEO=window.meSEO||{},window.meSEO.track=function(e,t){if(!e||typeof e!="string"){console.warn("[meSEO] track() requires an event name string.");return}u(e,t||{})},window.meSEO.siteId=V;try{(function(){if(!q)return;var t=q+"/api/site-tag/script/",r=["attribution","form-phone","heatmap","signals"],n=0;function o(){if(n>=r.length){a();return}var i=document.createElement("script");i.async=!0,i.src=t+r[n],i.onload=function(){n++,o()},i.onerror=function(){n++,o()},(document.head||document.documentElement).appendChild(i)}function a(){try{window.meSEOAttribution&&window.meSEOAttribution.init()}catch(c){}var i={siteId:V,endpoint:q+"/api/site-tag/conversion",eventEndpoint:q+"/api/site-tag/event",rumEndpoint:q+"/api/site-tag/rum",seoEndpoint:q+"/api/site-tag/seo-monitor"};try{window.meSEOFormPhone&&window.meSEOFormPhone.init({siteId:V,endpoint:i.endpoint,countInferredIframeSubmits:!!(window.meSEOConfig&&window.meSEOConfig.countInferredIframeSubmits),requireSuccessConfirmed:!!(window.meSEOConfig&&window.meSEOConfig.requireSuccessConfirmed)})}catch(c){}try{window.meSEOHeatmap&&window.meSEOHeatmap.init({siteId:V,endpoint:q+"/api/site-tag/heatmap"})}catch(c){}try{window.meSEOSignals&&window.meSEOSignals.init(i)}catch(c){}}window.requestIdleCallback?window.requestIdleCallback(o,{timeout:3e3}):setTimeout(o,500)})()}catch(e){}try{(function(){var t;try{t=new URLSearchParams(window.location.search)}catch(c){return}var r=t.get("meseo_issue");if(!r||t.get("meseo_audit")==="true"||V&&q)return;if(!q){console.warn("[meSEO] Cannot highlight: meSEO app origin unknown. Set meSEOConfig.appUrl or load t.js from the meSEO app domain.");return}var n=q+"/api/site-tag/issue-evidence";fetch(n+"?siteId="+encodeURIComponent(V)+"&issueId="+encodeURIComponent(r)+"&pageUrl="+encodeURIComponent(window.location.origin+window.location.pathname),{credentials:"omit"}).then(function(c){return c.ok?c.json():null}).then(function(c){if(!c||!c.evidence||c.evidence.length===0){a(c,r);return}for(var l=!1,s=0;s10){for(var _=c.snippet.trim().slice(0,50),w=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT);w.nextNode();)if(w.currentNode.textContent&&w.currentNode.textContent.indexOf(_)!==-1){s=w.currentNode.parentElement;break}}if(!s)return!1;s.scrollIntoView({behavior:"smooth",block:"center"});var f=s.style.outline,p=s.style.backgroundColor,y=s.style.transition;s.style.transition="outline 0.3s, background-color 0.3s",s.style.outline="3px solid #ef4444",s.style.backgroundColor="rgba(239, 68, 68, 0.08)";var S=document.createElement("div");S.id="meseo-highlight-tooltip",S.innerHTML='
BROKEN LINKmeSEO Audit
'+i(l.title||"Broken internal link")+"
"+(c.brokenHref?'
\u2192 '+i(c.brokenHref)+" (HTTP "+(c.statusCode||"?")+")
":"")+(c.anchorText&&c.anchorText!=="(unknown)"?'
Link text: "'+i(c.anchorText)+'"
':"")+'
',document.body.appendChild(S);var O=document.getElementById("meseo-dismiss");return O&&(O.onclick=function(){s.style.outline=f,s.style.backgroundColor=p,s.style.transition=y,S.remove()}),!0}function a(c,l){var s=document.createElement("div");s.id="meseo-highlight-fallback";var m='
NOT FOUNDmeSEO Audit
Could not locate the broken link element on this page.
The page may have changed since the audit was run.
';if(c&&c.evidence&&c.evidence[0]){var x=c.evidence[0];m+='
',x.brokenHref&&(m+='
Broken: '+i(x.brokenHref)+"
"),x.anchorText&&x.anchorText!=="(unknown)"&&(m+='
Text: "'+i(x.anchorText)+'"
'),x.selector&&(m+='
Selector: '+i(x.selector)+"
"),m+="
"}m+='
',s.innerHTML=m,document.body.appendChild(s);var C=document.getElementById("meseo-fallback-dismiss");C&&(C.onclick=function(){s.remove()})}function i(c){return String(c).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}})()}catch(e){}try{(function(){var t;try{t=new URLSearchParams(window.location.search)}catch(d){return}var r=t.get("meseo_audit")==="true",n=t.get("meseo_issue");if(!r&&!n)return;var o=t.get("meseo_tag_id");if(o&&o!==V){console.warn("[meSEO] Audit overlay: tag ID mismatch");return}if(!q){console.warn("[meSEO] Audit overlay: meSEO app origin unknown");return}var a=q+"/api/site-tag/audit-overlay",i=t.get("highlight")||n||null;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",c):c();function c(){function d(){var g=window.location.pathname,h=fetch(a+"?siteId="+encodeURIComponent(V)+"&pageUrl="+encodeURIComponent(g),{credentials:"omit"}).then(function(k){return k.ok?k.json():null}).catch(function(){return null});h.then(function(k){var N=k&&k.enabled&&Array.isArray(k.issues)?k.issues:[],E=l(N),L=N.concat(E),I=s(L);w({enabled:k?k.enabled:!0,error:k&&k.error?k.error:null,noAudit:k?k.noAudit:!1,issues:L,summary:I})})}d();var v=window.location.href;setInterval(function(){window.location.href!==v&&(v=window.location.href,setTimeout(d,600))},800),window.addEventListener("popstate",function(){setTimeout(d,300)})}function l(d){var v=[],g={};d.forEach(function(P){P.context&&P.context.targetUrl&&(g[P.context.targetUrl]=!0)});for(var h=d.some(function(P){return P.type==="missing_alt_text"||P.title&&P.title.indexOf("alt text")>-1}),k=d.some(function(P){return P.type==="broken_image"||P.title&&P.title.indexOf("Broken image")>-1}),N=d.some(function(P){return P.type==="broken_fragment"||P.title&&P.title.indexOf("anchor")>-1}),E=[],L=[],I=document.querySelectorAll("img"),Q=0;Q0&&!k&&v.push({id:"live:broken-img-group",type:"broken_image",severity:"critical",category:"Broken Images",title:"Broken images ("+E.length+")",message:E.length+" image"+(E.length!==1?"s":"")+" failed to load on this page.",recommendation:"Fix or replace broken image sources. Broken images hurt UX and SEO.",selector:null,_liveElement:E[0].el,_liveElements:E.map(function(P){return P.el}),context:{targetUrl:E[0].src,affectedCount:E.length}}),L.length>0&&!h&&v.push({id:"live:alt-group",type:"missing_alt_text",severity:L.length>=5?"high":"medium",category:"Accessibility",title:"Images missing alt text ("+L.length+")",message:L.length+" image"+(L.length!==1?"s":"")+" on this page lack alt attributes.",recommendation:"Add descriptive alt text for accessibility and image SEO.",selector:null,_liveElement:L[0].el,_liveElements:L.map(function(P){return P.el}),context:{targetUrl:L[0].src,affectedCount:L.length}});for(var re=[],Co=document.querySelectorAll('a[href^="#"]'),Gt=0;Gt0&&!N&&v.push({id:"live:frag-group",type:"broken_fragment",severity:"medium",category:"Broken Links",title:"Broken anchor links ("+re.length+")",message:re.length+" anchor link"+(re.length!==1?"s":"")+" point to non-existent page fragments.",recommendation:"Add matching id attributes to the target elements, or update the href values.",selector:null,_liveElement:re[0].el,_liveElements:re.map(function(P){return P.el}),context:{targetUrl:re[0].href,affectedCount:re.length}}),v}function s(d){var v={total:d.length,critical:0,warnings:0,info:0};return d.forEach(function(g){g.severity==="critical"?v.critical++:g.severity==="high"||g.severity==="medium"?v.warnings++:v.info++}),v}function m(d){return window.CSS&&window.CSS.escape?window.CSS.escape(d):String(d).replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1")}function x(){var d=document.createElement("div");return d.id="meseo-audit-overlay-host",d.style.cssText="position:fixed;top:0;left:0;width:0;height:0;z-index:2147483647;",document.body.appendChild(d),d.attachShadow({mode:"open"})}function C(){if(!document.getElementById("meseo-audit-keyframes")){var d=document.createElement("style");d.id="meseo-audit-keyframes",d.textContent="@keyframes meseoPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: .85; } }[data-meseo-pulse='1'] { animation: meseoElementPulse 2s ease-in-out infinite; }@keyframes meseoElementPulse { 0%,100% { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ef4444, 0 0 20px #ef444480; } 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 8px #ef4444, 0 0 35px #ef4444cc; } }[data-meseo-target='1'] { animation: meseoTargetPulse 1.4s ease-in-out infinite; }@keyframes meseoTargetPulse { 0%,100% { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ef4444, 0 0 20px rgba(239,68,68,0.5); } 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 10px #ef4444, 0 0 40px rgba(239,68,68,0.9); } }",document.head.appendChild(d)}}var A=null,F=new Map,b=0,_=null;function w(d){C(),A=x();var v=nt(d);A.innerHTML=v;var g=A.querySelector("[data-action='close']"),h=A.querySelector("[data-action='minimise']"),k=A.querySelector(".meseo-panel");g&&g.addEventListener("click",Zi),h&&h.addEventListener("click",function(){k.classList.toggle("meseo-minimised")}),(d.issues||[]).forEach(function(E){!E.selector&&!E._liveElement||p(E)});var N=A.querySelectorAll(".meseo-issue[data-issue-id]");N.forEach(function(E){E.addEventListener("click",function(){var L=E.getAttribute("data-issue-id");R(L)})}),document.addEventListener("click",function(E){_&&(_.contains(E.target)||E.target&&E.target.getAttribute&&E.target.getAttribute("data-meseo-badge")||D())},!0),i&&setTimeout(function(){var E=R(i);E||f(i)},300)}function f(d){if(A){var v=A.querySelector(".meseo-panel");if(v){var g=A.querySelector(".meseo-not-found");g&&g.parentNode&&g.parentNode.removeChild(g);var h=document.createElement("div");h.className="meseo-not-found",h.style.cssText="padding:12px 14px;background:#7f1d1d;color:#fecaca;font-size:11px;line-height:1.5;border-bottom:1px solid #991b1b;display:flex;gap:8px;align-items:flex-start;",h.innerHTML=`
\u26A0
Element not found on this page
The issue we tried to highlight isn't in the current DOM. The page may have been updated since the last audit, or the element was removed. Other issues on this page are still shown below.
`;var k=A.querySelector(".meseo-header");k&&k.nextSibling?v.insertBefore(h,k.nextSibling):v.appendChild(h)}}}function p(d){var v=[];if(d._liveElement)v=[d._liveElement];else if(d.selector)try{for(var g=d.selector.split(/\s*,\s*/),h=0;hN&&(k.topSeverity=v.severity,S(d,v.severity)),O(k,v);return}b++;var L=b,I={el:d,issues:[v],topSeverity:v.severity,badges:[],number:L,originalBoxShadow:d.style.boxShadow,originalTransition:d.style.transition,positionUpdaters:[]};F.set(h,I),S(d,v.severity),d.setAttribute("data-meseo-issue-id",v.id),O(I,v)}}function S(d,v){var g=le(v);d.style.transition="box-shadow .2s ease",d.style.boxShadow="0 0 0 3px #fff, 0 0 0 6px "+g+", 0 0 20px "+g+"80",v==="critical"&&d.setAttribute("data-meseo-pulse","1")}function O(d,v){var g=le(v.severity),h=document.createElement("div");h.setAttribute("data-meseo-badge","1"),h.textContent=String(d.number),h.style.cssText="position:fixed;z-index:2147483646;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:"+g+";color:#fff;font:800 11px/22px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;text-align:center;border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.3);cursor:pointer;pointer-events:auto;user-select:none;",v.severity==="critical"&&(h.style.animation="meseoPulse 1.4s ease-in-out infinite");var k=d.badges.length*26;document.body.appendChild(h),d.badges.push(h);function N(){var I=d.el.getBoundingClientRect();h.style.top=I.top-11+"px",h.style.left=I.left+I.width-11-k+"px"}N();var E=setInterval(N,400);window.addEventListener("scroll",N,!0),window.addEventListener("resize",N),d.positionUpdaters.push({interval:E,fn:N});var L=null;h.addEventListener("mouseenter",function(){_||(L=T(d.issues,h,!1))}),h.addEventListener("mouseleave",function(){L&&L.parentNode&&L.parentNode.removeChild(L),L=null}),h.addEventListener("click",function(I){I.stopPropagation(),L&&L.parentNode&&L.parentNode.removeChild(L),L=null,d.el.scrollIntoView({behavior:"smooth",block:"center"}),D(),setTimeout(function(){_=T(d.issues,h,!0)},400)})}function T(d,v,g){var h=v.getBoundingClientRect(),k=document.createElement("div"),N=d.reduce(function(I,Q){return X(Q.severity)>X(I)?Q.severity:I},"info");k.setAttribute("data-meseo-tooltip",g?"sticky":"hover"),k.style.cssText="position:fixed;z-index:2147483647;top:"+(h.bottom+10)+"px;left:"+Math.max(8,Math.min(window.innerWidth-340,h.left-150))+"px;width:320px;background:#0f172a;color:#f8fafc;padding:12px 14px;border-radius:10px;font:12px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:0 20px 50px rgba(0,0,0,.5);border:1px solid "+le(N)+";"+(g?"pointer-events:auto;":"pointer-events:none;");var E="";if(g&&(E+='
'),d.forEach(function(I,Q){var $=le(I.severity);Q>0&&(E+='
'),E+='
'+H(I.severity)+" \xB7 "+H(I.category)+'
'+H(I.title)+'
'+H(I.message)+"
",I.context&&I.context.anchorText&&(E+='
Link text: "'+H(I.context.anchorText)+'"
'),I.context&&I.context.redirectChain&&I.context.redirectChain.length&&(E+='
Chain: '+H(I.context.redirectChain.join(" \u2192 "))+"
"),E+='
Fix: '+H(I.recommendation)+"
"}),k.innerHTML=E,document.body.appendChild(k),g){var L=k.querySelector('[data-meseo-close-tip="1"]');L&&L.addEventListener("click",function(I){I.stopPropagation(),D()})}return k}function D(){_&&_.parentNode&&_.parentNode.removeChild(_),_=null}function R(d){if(!d)return!1;var v=d.indexOf(":")>=0?d.split(":")[0]:d,g=null;return F.forEach(function(h){if(!g){var k=h.issues.some(function(N){return typeof N.id!="string"?!1:N.id===d||N.id.indexOf(d+":")===0||N.id===v});k&&(g=h)}}),g?(U(g),g.el.scrollIntoView({behavior:"smooth",block:"center"}),D(),setTimeout(function(){var h=g.badges[0];h&&(_=T(g.issues,h,!0))},350),!0):!1}function U(d){if(!d.isTarget){d.isTarget=!0;var v=d.el;d.originalBackground=v.style.backgroundColor;try{v.style.setProperty("background-color","rgba(255, 255, 0, 0.35)","important")}catch(h){v.style.backgroundColor="rgba(255, 255, 0, 0.35)"}v.style.transition="box-shadow .2s ease",v.style.boxShadow="0 0 0 3px #fff, 0 0 0 6px #ef4444, 0 0 20px rgba(239, 68, 68, 0.5)",v.setAttribute("data-meseo-target","1");var g=d.badges[0];g&&(g.style.minWidth="32px",g.style.height="32px",g.style.borderRadius="16px",g.style.fontSize="14px",g.style.lineHeight="32px",g.style.background="#ef4444",g.style.animation="meseoPulse 1.2s ease-in-out infinite")}}function J(d){return d.__meseoKey||(d.__meseoKey="mk_"+Math.random().toString(36).slice(2,10)),d.__meseoKey}function X(d){return d==="critical"?5:d==="high"?4:d==="medium"?3:d==="low"?2:1}function nt(d){var v=":host { all: initial; }* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }.meseo-issue { cursor: pointer; }.meseo-panel { position: fixed; bottom: 20px; right: 20px; width: 340px; max-height: 70vh; overflow: hidden; background: #0f172a; color: #f8fafc; border-radius: 12px; border: 1px solid #334155; box-shadow: 0 20px 60px rgba(0,0,0,.5); display: flex; flex-direction: column; font-size: 13px; }.meseo-panel.meseo-minimised .meseo-body { display: none; }.meseo-header { padding: 12px 14px; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); display: flex; align-items: center; gap: 8px; cursor: move; }.meseo-logo { width: 20px; height: 20px; background: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #4f46e5; font-size: 11px; }.meseo-title { flex: 1; font-weight: 700; font-size: 12px; letter-spacing: .3px; }.meseo-btn { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 22px; height: 22px; border-radius: 4px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; padding: 0; }.meseo-btn:hover { background: rgba(255,255,255,.25); }.meseo-summary { padding: 10px 14px; border-bottom: 1px solid #1e293b; display: flex; gap: 10px; font-size: 11px; }.meseo-count { display: flex; align-items: center; gap: 4px; }.meseo-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }.meseo-body { padding: 10px 0; overflow-y: auto; flex: 1; }.meseo-issue { padding: 10px 14px; border-left: 3px solid transparent; cursor: pointer; border-bottom: 1px solid #1e293b; }.meseo-issue:hover { background: #1e293b; }.meseo-issue-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }.meseo-severity-pill { font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; letter-spacing: .5px; }.meseo-issue-title { font-weight: 600; font-size: 12px; margin-bottom: 3px; }.meseo-issue-msg { font-size: 11px; color: #94a3b8; line-height: 1.4; }.meseo-empty { padding: 20px; text-align: center; color: #64748b; font-size: 12px; }.meseo-error { padding: 16px; color: #fca5a5; font-size: 11px; background: #7f1d1d22; border-bottom: 1px solid #7f1d1d; }.meseo-footer { padding: 8px 14px; background: #0b1220; font-size: 10px; color: #64748b; text-align: center; border-top: 1px solid #1e293b; }",g=d&&d.error?'
'+H(d.error)+"
":"",h="",k="";return d&&d.summary&&(h='
'+d.summary.critical+' critical
'+d.summary.warnings+' warnings
'+d.summary.info+' info
page-level
'),d&&d.issues&&d.issues.length>0?k=d.issues.map(function(N,E){var L=le(N.severity),I=!N.selector&&!N._liveElement,Q=I?"":'#'+(E+1)+"";return'
'+H(N.severity)+""+Q+(I?'PAGE-LEVEL':"")+'
'+H(N.title)+'
'+H(N.message)+"
"}).join(""):d&&d.noAudit?k='
No completed audit found for this brand yet.
':g||(k='
No issues found on this page \u{1F389}
Navigate to another page to scan it too
'),"
Live Audit \xB7 This Page
'+g+h+'
'+k+'
"}function le(d){switch(d){case"critical":return"#ef4444";case"high":return"#f97316";case"medium":return"#f59e0b";case"low":return"#3b82f6";default:return"#64748b"}}function Zi(){F.forEach(function(g){try{if(g.el.style.boxShadow=g.originalBoxShadow||"",g.el.style.transition=g.originalTransition||"",g.isTarget){try{g.el.style.removeProperty("background-color")}catch(h){}g.originalBackground&&(g.el.style.backgroundColor=g.originalBackground)}g.el.removeAttribute("data-meseo-pulse"),g.el.removeAttribute("data-meseo-target"),g.el.removeAttribute("data-meseo-issue-id"),g.badges.forEach(function(h){h.parentNode&&h.parentNode.removeChild(h)}),g.positionUpdaters.forEach(function(h){clearInterval(h.interval),window.removeEventListener("scroll",h.fn,!0),window.removeEventListener("resize",h.fn)})}catch(h){}}),F.clear(),b=0,D();var d=document.getElementById("meseo-audit-overlay-host");d&&d.parentNode&&d.parentNode.removeChild(d);var v=document.getElementById("meseo-audit-keyframes");v&&v.parentNode&&v.parentNode.removeChild(v),A=null}function H(d){return String(d==null?"":d).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}})()}catch(e){}try{(function(){var t=new URLSearchParams(window.location.search);if(t.get("__meseo_inspect")!=="broken-links")return;var r=q?q+"/api/site-tag/page-links":"",n=window.location.pathname;function o(){if(!document.getElementById("meseo-broken-style")){var f=document.createElement("style");f.id="meseo-broken-style",f.textContent=["@keyframes meseoBrokenPulse {"," 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }"," 50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }","}","@keyframes meseoBrokenFocus {"," 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.75), 0 0 40px rgba(239,68,68,0.6); }"," 50% { box-shadow: 0 0 0 14px rgba(239,68,68,0), 0 0 60px rgba(239,68,68,0.2); }","}","[data-meseo-broken] {"," outline: 3px solid #EF4444 !important;"," outline-offset: 2px !important;"," animation: meseoBrokenPulse 2s infinite !important;","}",'[data-meseo-focused="1"] {'," outline: 3px dashed #EF4444 !important;"," outline-offset: 4px !important;"," animation: meseoBrokenFocus 1.2s ease-in-out 3 !important;"," background-color: rgba(239,68,68,0.15) !important;"," position: relative !important;","}",".__meseo_broken_badge {"," position: absolute !important;"," background: #EF4444 !important;"," color: #fff !important;"," font: 600 10px/16px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important;"," padding: 1px 6px !important;"," border-radius: 10px !important;"," z-index: 2147483646 !important;"," pointer-events: none !important;"," box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;","}",".__meseo_broken_focus_label {"," position: absolute !important;"," background: #EF4444 !important;"," color: #fff !important;"," font: 600 11px/18px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important;"," padding: 4px 10px !important;"," border-radius: 6px !important;"," z-index: 2147483647 !important;"," pointer-events: none !important;"," box-shadow: 0 6px 16px rgba(239,68,68,0.4) !important;"," max-width: 420px !important;"," white-space: nowrap !important;"," overflow: hidden !important;"," text-overflow: ellipsis !important;","}",".__meseo_broken_img_overlay {"," position: absolute !important;"," background: rgba(239,68,68,0.25) !important;"," border: 3px dashed #EF4444 !important;"," z-index: 2147483645 !important;"," pointer-events: none !important;"," box-sizing: border-box !important;"," display: flex !important;"," align-items: center !important;"," justify-content: center !important;"," color: #7F1D1D !important;"," font: 600 11px/16px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important;"," text-align: center !important;"," padding: 6px !important;","}"].join(` `),document.head.appendChild(f)}}function a(f){if(f.selector)try{var p=document.querySelector(f.selector);if(p)return p}catch(R){}var y=f.destinationUrl;if(!y)return null;if(f.elementType==="img"){for(var S=document.querySelectorAll("img[src]"),O=0;O=0&&c[p]&&document.body.contains(c[p].el))return c[p];var y=f.record||(p>=0&&c[p]?c[p].record:null);if(!y)return{el:null,record:null};var S=a(y);if(!S&&y.selector)try{S=document.querySelector(y.selector)}catch(O){}return{el:S,record:y}}var A=!1;function F(){A||(A=!0,window.addEventListener("message",function(f){if(!(!f||!f.data||typeof f.data!="object")){var p=f.data;if(p.type==="meseo-inspect-focus"){var y=C(p);x(y.el,y.record||p.record||{})}else p.type==="meseo-inspect-clear-focus"&&m()}}))}function b(f){if(window.parent!==window)try{window.parent.postMessage(f,"*")}catch(p){}}function _(){if(!(!r||!V)){var f=r+"?siteId="+encodeURIComponent(V)+"&pageUrl="+encodeURIComponent(n);try{fetch(f,{method:"GET",credentials:"omit"}).then(function(p){return p.ok?p.json():null}).then(function(p){p&&l(p.brokenLinks||[])}).catch(function(){})}catch(p){}}}window.addEventListener("message",function(f){if(!(!f||!f.data||typeof f.data!="object")&&f.data.type==="meseo-inspect-paint"){var p=f.data.brokenLinks;Array.isArray(p)&&p.length>0?l(p):b({type:"meseo-inspect-ready",brokenCount:0})}});function w(){setTimeout(_,2e3)}document.readyState==="complete"?w():window.addEventListener("load",w)})()}catch(e){}document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&De(!0)}),window.addEventListener("beforeunload",function(){De(!0)})})();})();