Files
meseo-staging/public/t.js
T
Andres Resiri 70daeb214a
CI / Quality gate (push) Has been cancelled
Initial project commit for Coolify staging
2026-08-03 10:45:41 -04:00

6 lines
163 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* 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;t<Z.length;t++){var r=Z[t].plugin_key||Z[t].plugin,n="_meseo_plugin:"+r,o=!1;try{o=!!sessionStorage.getItem(n)}catch(a){}if(!o){e.push(Z[t]);try{sessionStorage.setItem(n,"1")}catch(a){}}}e.length!==0&&u("plugin_detected",{plugins:e})}}var V=K.siteId,ct=document.querySelector('script[src*="t.js"]'),q="";if(K.appUrl&&/^https?:\/\//.test(K.appUrl))try{q=new URL(K.appUrl).origin}catch(e){}if(!q&&ct&&ct.src)try{var $t=new URL(ct.src).origin;$t!==window.location.origin&&(q=$t)}catch(e){}if(!q){var Kt=document.querySelector('meta[name="meseo-app-url"]');if(Kt){var To=Kt.getAttribute("content")||"";try{var Zt=new URL(To).origin;Zt!==window.location.origin&&(q=Zt)}catch(e){}}}if(!q)if(K.isPreview||window.__meseo_suppress)q="";else{console.error('[meSEO] Could not resolve meSEO app origin. Site Tag will not send events. Update your install snippet to set meSEOConfig.appUrl="https://app.meseoapp.com".');return}var Re=q+"/api/collect",st="meseo_sid",qe="meseo_sts",Qt=1800*1e3,er=[".co.uk",".co.in",".com.au",".co.jp",".com.br",".co.za",".com.mx"];function No(){if(!window.meSEOConfig||!window.meSEOConfig.crossSubdomain)return null;var e=window.location.hostname;if(e.indexOf(".")===-1||/^\d+\.\d+\.\d+\.\d+$/.test(e))return null;var t=e.split(".");if(t.length<3)return null;for(var r="."+t.slice(-2).join("."),n=0;n<er.length;n++)if(r.endsWith(er[n])&&t.length===3)return null;return r}function Ro(){for(var e=document.cookie.split("; "),t=null,r=null,n=0;n<e.length;n++){var o=e[n].split("=");o[0]==="meseo_xsid"&&(t=o[1]),o[0]==="meseo_xsts"&&(r=o[1])}if(!t||!r)return null;var a=parseInt(r,10);return isNaN(a)||Date.now()-a>Qt?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-a<Qt){try{sessionStorage.setItem(qe,String(t))}catch(i){}return e&&ut(n,t),{id:n,isNew:!1}}}n="ses_"+t.toString(36)+"_"+Math.random().toString(36).slice(2,10);try{sessionStorage.setItem(st,n),sessionStorage.setItem(qe,String(t))}catch(i){}return e&&ut(n,t),{id:n,isNew:!0}}function tr(){var e={};try{var t=new URLSearchParams(window.location.search);["utm_source","utm_medium","utm_campaign","utm_term","utm_content"].forEach(function(r){var n=t.get(r);n&&(e[r]=n)})}catch(r){}return e}var rr=[{key:"gclid",platform:"google_ads"},{key:"gbraid",platform:"google_ads"},{key:"wbraid",platform:"google_ads"},{key:"dclid",platform:"google_dv360"},{key:"fbclid",platform:"meta"},{key:"msclkid",platform:"microsoft_ads"},{key:"ttclid",platform:"tiktok"},{key:"li_fat_id",platform:"linkedin"}];function qo(){var e={};try{for(var t=new URLSearchParams(window.location.search),r=0;r<rr.length;r++){var n=rr[r],o=t.get(n.key);o&&(e[n.key]=o,e._platform=e._platform||n.platform)}}catch(a){}return e}var lt={},Do=5e3,Po={form_submit:1,click_to_call:1,booking_submit:1,booking_confirmed:1,sms_click:1},Fo={session_start:1,page_view:1,purchase:1,purchase_completed:1,checkout_started:1,add_to_cart:1,form_submit:1,booking_confirmed:1,booking_submit:1,click_to_call:1,sms_submit:1,sms_click:1,email_click:1,waitlist_signup:1,newsletter_signup:1,file_download:1,plugin_detected:1,outbound_click:1,ai_referral:1,ai_session_profile:1,paid_click_landing:1,return_visit:1,competitor_referral:1,multi_session_conversion:1,conversion_path_complete:1},Ee=[];function De(e){if(Ee.length){var t=Ee.splice(0,Ee.length),r={site_id:V,visitor_id:we||null,events:t},n=JSON.stringify(r);if(e)try{if(navigator.sendBeacon){navigator.sendBeacon(Re,n);return}}catch(o){}try{fetch(Re,{method:"POST",headers:{"Content-Type":"application/json"},body:n,keepalive:!0,credentials:"omit"}).catch(function(){})}catch(o){}}}setInterval(function(){De(!1)},3e4);var dt=typeof Map!="undefined"?new Map:null,Mo=3e5;function Pe(e,t,r){if(!dt)return!0;var n;try{n=(t&&t.id&&t.id.length>0&&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<Mo?!1:(dt.set(o,i),!0)}function u(e,t){if(K.suppressEvents||window.__meseo_suppress)return null;if(Po[e]){var r=e+":"+window.location.pathname,n=Date.now();if(lt[r]&&n-lt[r]<Do){try{console.debug("[meSEO] sendEvent deduped (within 5s):",e)}catch(c){}return null}lt[r]=n}var o=xe(),a=Object.assign({},tr(),t||{});a.user_agent=navigator.userAgent;var i={site_id:V,event_type:e,page_url:window.location.href,referrer:document.referrer||null,timestamp:new Date().toISOString(),session_id:o.id,visitor_id:we||null,metadata:a};return Fo[e]?navigator.sendBeacon?navigator.sendBeacon(Re,JSON.stringify(i)):fetch(Re,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i),keepalive:!0,credentials:"omit"}).catch(function(){}):(Ee.push({event_type:e,page_url:window.location.href,referrer:document.referrer||null,timestamp:new Date().toISOString(),session_id:o.id,metadata:a}),Ee.length>=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<c.length;l++){var s=c[l].getAttribute("src")||"";if(s.indexOf("/_next/")>-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<m.length;x++){var C=m[x].getAttribute("href")||"";if(C.indexOf("/wp-content/")>-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;i<a.length;i++)if(a[i].indexOf("__reactFiber")===0||a[i].indexOf("__reactInternalInstance")===0){e={name:"react",confidence:40,category:"js_framework"};break}}}if(e){var c=null;try{c=JSON.parse(sessionStorage.getItem("meseo_platform_meta")||"null")}catch(s){}var l=c&&c.confidence||0;if(e.confidence>l){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<r.length;o++)if(t.indexOf(r[o].match)>-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;U<R.length;U++)R[U].remove();var J=(D.textContent||"").trim();J&&(O=J.split(/\s+/).length)}}catch(X){}return{title:b,metaDescription:_,canonicalUrl:f,h1:y,wordCount:O}}function s(b){if(!b||b===document.body)return"body";if(b.id)return"#"+CSS.escape(b.id);for(var _=[],w=b;w&&w!==document.body&&_.length<5;){var f=(w.tagName||"").toLowerCase();if(w.id){_.unshift("#"+CSS.escape(w.id));break}var p=w.parentElement;if(p&&p.children&&p.children.length>1){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;p<b.length&&f.length<500;p++){var y=b[p],S=y.getAttribute("href")||"";if(!(!S||S[0]==="#"||S.indexOf("mailto:")===0||S.indexOf("tel:")===0)){var O;try{O=new URL(S,window.location.href)}catch(le){continue}if(O.hostname.toLowerCase()===_){var T=O.pathname;w[T]||(w[T]=!0,f.push({href:T,anchorText:(y.textContent||"").trim().slice(0,200),tag:"a",selector:s(y),section:m(y)}))}}}for(var D=document.querySelectorAll("img[src]"),R=0;R<D.length&&f.length<500;R++){var U=D[R];if(!(!U.complete||U.naturalWidth!==0)){var J=U.getAttribute("src")||"";if(J){var X;try{X=new URL(J,window.location.href)}catch(le){continue}if(X.hostname.toLowerCase()===_){var nt="img:"+X.pathname;w[nt]||(w[nt]=!0,f.push({href:X.pathname,anchorText:(U.alt||"[broken image]").slice(0,200),tag:"img",selector:s(U),section:m(U)}))}}}}return f}function C(){for(var b=[],_=["header a[href]","nav a[href]","[role='navigation'] a[href]",".nav a[href]",".navbar a[href]",".navigation a[href]",".menu a[href]",".site-nav a[href]"],w=0;w<_.length;w++)for(var f=document.querySelectorAll(_[w]),p=0;p<f.length;p++)b.push({el:f[p],section:_[w].split(" ")[0].replace(/[\[\].#]/g,"")});for(var y=window.location.hostname.toLowerCase(),S={},O=[],T=0;T<b.length;T++){var D=b[T].el,R=D.getAttribute("href")||"";if(!(!R||R[0]==="#"||R.indexOf("mailto:")===0||R.indexOf("tel:")===0)){var U;try{U=new URL(R,window.location.href)}catch(X){continue}if(U.hostname.toLowerCase()===y){var J=U.pathname;S[J]||(S[J]=!0,O.push({href:J,anchorText:(D.textContent||"").trim().slice(0,200),section:b[T].section}))}}}return O}function A(){var b=window.location.pathname;if(o!==b){o=b;var _=l(),w=null;if(window.performance&&window.performance.timing){var f=window.performance.timing;f.loadEventEnd>0&&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<e.length;r++){var n=(e[r].src||"")+"",o=n.match(Go);if(o){var a=o[1].toLowerCase();fr[a]||(fr[a]=!0,t.push(a))}}if(t.length===0)return;try{console.debug("[meSEO] form_iframe_present:",t)}catch(i){}u("form_iframe_present",{providers:t,iframe_count:e.length})}catch(i){}}function pr(){if(mr(),typeof MutationObserver!="undefined")try{var e=new MutationObserver(function(t){for(var r=!1,n=0;n<t.length;n++)for(var o=t[n].addedNodes,a=0;a<o.length;a++){var i=o[a];if(!(!i||i.nodeType!==1)){var c=(i.tagName||"").toUpperCase();if(c==="IFRAME")r=!0;else if(c==="FORM")try{console.debug("[meSEO] dynamic <form> 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.ts<Jo)return t.id}catch(n){}}catch(n){}var r;try{r=typeof crypto!="undefined"&&crypto.randomUUID?crypto.randomUUID():null}catch(n){r=null}r||(r="fs-"+Date.now().toString(36)+"-"+Math.random().toString(36).slice(2,10));try{sessionStorage.setItem(gr,JSON.stringify({id:r,ts:Date.now()}))}catch(n){}return r}var vr={};document.addEventListener("submit",function(e){var t=e.target;if(!(!t||t.tagName!=="FORM")){var r="submit:"+(t.id||t.action||"form-"+Array.prototype.indexOf.call(document.forms,t));if(!vr[r]){vr[r]=!0;var n=0;try{n=t.elements?t.elements.length:0}catch(o){}try{console.debug("[meSEO] form_submit:",{formId:t.id||null,formName:t.name||null,formAction:B(t.action||""),formMethod:(t.method||"GET").toUpperCase(),fieldCount:n})}catch(o){}u("form_submit",{form_id:t.id||null,form_name:t.name||null,form_action:B(t.action||""),form_method:(t.method||"GET").toUpperCase(),form_field_count:n,source:"native",submissionId:ee()})}}},!0);var Yo=/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/,hr=/\b(email|newsletter|subscribe|signup|mailing[_-]?list)\b/i,yr={},_r={},wr={},br=!1,Me=[{sel:".mc-embedded-subscribe-form, form[action*='list-manage.com']",provider:"mailchimp"},{sel:".ctct-form, form[id*='ctct-'], form[action*='constantcontact.com']",provider:"constant_contact"},{sel:"[data-formkit-form], .ck-form, .formkit-form, form[action*='convertkit.com']",provider:"convertkit"},{sel:"form[id^='_form_'], form[action*='activehosted.com']",provider:"activecampaign"},{sel:".klaviyo-form, form[action*='manage.kmail-lists.com'], form[action*='klaviyo.com']",provider:"klaviyo"}];function Xo(e){if(!e||!e.matches)return null;for(var t=0;t<Me.length;t++){var r=Me[t];try{if(e.matches(r.sel)||e.closest&&e.closest(r.sel))return r.provider}catch(n){}}return null}function $o(e){try{for(var t=e.querySelectorAll("input, textarea"),r=0;r<t.length;r++){var n=(t[r].name||"")+"",o=(t[r].id||"")+"",a=(t[r].type||"")+"";if(a.toLowerCase()==="email"||hr.test(n)||hr.test(o))return!0}}catch(i){}return!1}function Ko(e){var t=Xo(e);return t||(e&&e.elements&&e.elements.length>0&&e.elements.length<=4&&$o(e)?"native":null)}function Sr(){for(var e=0,t=0;t<Me.length;t++){var r=Me[t],n;try{n=document.querySelectorAll(r.sel)}catch(i){continue}for(var o=0;o<n.length;o++){var a=n[o];a.getAttribute("data-meseo-esp")||(a.setAttribute("data-meseo-esp",r.provider),e++)}}return e}function kr(){Sr()>0&&!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;r<t.length;r++)try{var n=JSON.parse(t[r].textContent||"null");if(!n)continue;for(var o=Array.isArray(n)?n:n["@graph"]||[n],a=0;a<o.length;a++)o[a]&&e.push(o[a])}catch(i){}}catch(i){}return e}function qr(e,t){if(!e)return!1;var r=e["@type"];return r?typeof r=="string"?r===t:Array.isArray(r)?r.indexOf(t)!==-1:!1:!1}function Qo(){for(var e=Rr(),t=0;t<e.length;t++){var r=e[t];if(qr(r,"Product")){var n=r.offers;Array.isArray(n)&&(n=n[0]);var o=null,a=null;return n&&typeof n=="object"&&(o=n.price!=null?n.price:n.priceSpecification&&n.priceSpecification.price||null,a=n.priceCurrency||n.priceSpecification&&n.priceSpecification.priceCurrency||null),{productName:typeof r.name=="string"?r.name:null,productId:typeof r.sku=="string"&&r.sku||typeof r.productID=="string"&&r.productID||typeof r.mpn=="string"&&r.mpn||null,price:o!=null?Number(o):null,currency:typeof a=="string"?a:null}}}return null}function ea(){var e=document.querySelector('meta[property="og:type"]');if(!e||(e.content||"").toLowerCase()!=="product")return null;function t(n){var o=document.querySelector('meta[property="'+n+'"]');return o&&o.content||null}var r=t("product:price:amount")||t("og:price:amount");return{productName:t("og:title"),productId:t("product:retailer_item_id")||t("product:product_id"),price:r?Number(r):null,currency:t("product:price:currency")||t("og:price:currency")}}function ta(){for(var e=Rr(),t=0;t<e.length;t++){var r=e[t];if(qr(r,"Order")){var n=r.price!=null?r.price:r.totalPrice!=null?r.totalPrice:r.priceSpecification&&r.priceSpecification.price||null,o=r.priceCurrency||r.priceSpecification&&r.priceSpecification.priceCurrency||null;return{orderId:r.orderNumber||r.orderIdentifier||null,total:n!=null?Number(n):null,currency:typeof o=="string"?o:null}}}return null}function ra(){var e=document.body&&document.body.innerText||"";if(!e||e.length>1e5)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;e<Dr.length;e++){var t=Dr[e];try{if(!t.detect())continue}catch(n){continue}Er||(Er=!0,Z.push({plugin:"ecommerce",plugin_key:"ecommerce_"+t.key,category:"ecommerce",platform:t.key}));for(var r=0;r<t.ajax.length;r++)(function(n,o,a){G(a,function(){var i="ajax:"+o+":"+n;Nr[i]||(Nr[i]=!0,u(n,{source:o,detection:"ajax",source_page_url:window.location.href}))})})(t.ajax[r].event,t.key,t.ajax[r].pattern);return t.key}return null}function oa(){if(!mt){var e=Qo()||ea();if(e){var t=(e.productId?String(e.productId).slice(0,100):null)||(e.productName?String(e.productName).slice(0,100):null)||window.location.pathname.slice(0,100),r="_meseo_pv:"+t;try{if(sessionStorage.getItem(r))return;sessionStorage.setItem(r,"1")}catch(n){}mt=!0,u("product_view",{product_name:e.productName?String(e.productName).slice(0,200):null,product_id:e.productId?String(e.productId).slice(0,100):null,price:typeof e.price=="number"&&isFinite(e.price)?e.price:null,currency:typeof e.currency=="string"?e.currency:null,source_page_url:window.location.href})}}}var aa="[data-product-id] a, .product a, .product-card a, .woocommerce-loop-product__link, .shopify-product-card a, [class*='productCard'] a, [class*='ProductCard'] a";document.addEventListener("click",function(e){try{var t=e.target;if(!t||!t.closest)return;var r=t.closest(aa);if(!r||mt)return;var n=r.getAttribute&&r.getAttribute("href"),o=n||r.id||(r.innerText||"").trim().slice(0,60);if(!o||Lr[o])return;Lr[o]=!0;var a=null;try{var i=r.closest("[data-product-id], li, article, .product, .product-card");if(i&&i.parentElement){for(var c=i.parentElement.children,l=0;l<c.length;l++)if(c[l]===i){a=l+1;break}}}catch(x){}var s=null;try{var m=r.querySelector("h1, h2, h3, .product-title, [itemprop='name']");m&&(s=(m.innerText||m.textContent||"").trim().slice(0,200)),s||(s=(r.innerText||"").trim().slice(0,200))}catch(x){}u("product_click",{product_name:s||null,destination_url:n||null,list_position:a,source_page_url:window.location.href})}catch(x){}},!0);var ia=/\b(add\s*to\s*(?:cart|bag|basket)|buy\s*now)\b/i,ca=`.add-to-cart, .add_to_cart_button, .single_add_to_cart_button, [data-action='add-to-cart'], [data-action="add-to-cart"], [name='add-to-cart'], .sqs-add-to-cart-button, .btn-addtocart`;function sa(e){for(var t=e,r=0;r<6&&t;r++){if(t.getAttribute){var n=t.getAttribute("data-product-title")||t.getAttribute("data-product-name")||t.getAttribute("data-product");if(n)return String(n).slice(0,200)}t=t.parentElement}try{var o=e.closest?e.closest("article, section, form, li, div"):null;if(o){var a=o.querySelector("h1, h2, h3, .product-title, [itemprop='name']");if(a)return(a.innerText||a.textContent||"").trim().slice(0,200)}}catch(i){}return null}document.addEventListener("click",function(e){try{var t=e.target;if(!t||!t.closest)return;var r=null;try{r=t.closest(ca)}catch(c){}if(!r){var n=t.closest("button, a, input[type='submit'], input[type='button']");if(n){var o=(n.innerText||n.value||"").trim();o&&ia.test(o)&&(r=n)}}if(!r)return;var a=sa(r),i=a||r.id||(r.innerText||"").trim().slice(0,60)||"generic";if(Ar[i])return;Ar[i]=!0,u("add_to_cart",{product_name:a||null,source:"native",source_page_url:window.location.href})}catch(c){}},!0);function ua(){var e=(window.location.pathname||"").toLowerCase();return/\/(cart|basket|bag)(\/|$)/.test(e)}function la(){return!!document.querySelector(".cart, #cart, .woocommerce-cart-form, [data-cart], .shopping-cart")}function da(){if(!Ir&&(ua()||la())){Ir=!0;try{sessionStorage.setItem("_meseo_cart_view_ts",String(Date.now()))}catch(e){}u("cart_view",{source_page_url:window.location.href})}}document.addEventListener("change",function(e){try{var t=e.target;if(!t||t.tagName!=="INPUT"||(t.type||"").toLowerCase()!=="number"||!t.closest||!t.closest(".cart, #cart, [data-cart], .woocommerce-cart-form, .shopping-cart"))return;pt&&clearTimeout(pt),pt=setTimeout(function(){u("cart_update",{source:"native",source_page_url:window.location.href})},800)}catch(r){}},!0);function Pr(){var e=(window.location.pathname||"").toLowerCase();return/\/(order-confirmation|order-received|order-complete|thank[-_]?you|receipt)(\/|$)/.test(e)?!1:/\/(checkout|pay|order)(\/|$)/.test(e)}function fa(){if(!gt&&Pr()){try{if(sessionStorage.getItem("_meseo_checkout_started")){gt=!0;return}sessionStorage.setItem("_meseo_checkout_started",String(Date.now()))}catch(e){}gt=!0,u("checkout_started",{source:"url_detection",source_page_url:window.location.href})}}var ma=/^(next|continue|review|proceed|place\s+order|confirm\s+order|pay\s+now)\b/i;document.addEventListener("click",function(e){try{if(!Pr()||!e.target||!e.target.closest)return;var t=e.target.closest("button, a, input[type='submit']");if(!t)return;var r=(t.innerText||t.value||"").trim();if(!r||!ma.test(r))return;var n=r.slice(0,40);if(Cr[n])return;Cr[n]=!0,u("checkout_step",{step:n,source_page_url:window.location.href})}catch(o){}},!0);var Fr=[{sel:".apple-pay-button, [data-payment-method='apple_pay'], apple-pay-button",method:"apple_pay"},{sel:".paypal-button, #paypal-button, [data-funding-source='paypal'], .pp-button",method:"paypal"},{sel:".gpay-button, [data-payment-method='google_pay']",method:"google_pay"}];document.addEventListener("click",function(e){try{if(!e.target||!e.target.closest)return;for(var t=0;t<Fr.length;t++){var r=Fr[t],n=null;try{n=e.target.closest(r.sel)}catch(o){}if(n){if(Ue[r.method])return;Ue[r.method]=!0,u("payment_method_selected",{method:r.method,source_page_url:window.location.href});return}}}catch(o){}},!0),document.addEventListener("focusin",function(e){try{var t=e.target;if(!t||!t.matches||!t.matches("input[autocomplete*='cc-'], input[name*='card'], input[name*='cc-'], input[id*='card-number'], [data-stripe='number']")||Ue.card)return;Ue.card=!0,u("payment_method_selected",{method:"card",source_page_url:window.location.href})}catch(r){}});function pa(){var e=(window.location.pathname||"").toLowerCase();return/\/(order-confirmation|order-received|order-complete|thank[-_]?you|receipt|order[/-][^/]+[/-](?:complete|received))/.test(e)}function ga(){if(!Or&&pa()){var e=ta()||ra()||{};if(!(!e.orderId&&!e.total)){Or=!0,u("purchase_completed",{order_id:e.orderId?String(e.orderId).slice(0,100):null,value:typeof e.total=="number"&&isFinite(e.total)?e.total:null,currency:typeof e.currency=="string"?e.currency:null,source:e.orderId?"json_ld":"text_parse",source_page_url:window.location.href});try{sessionStorage.removeItem("_meseo_cart_view_ts")}catch(t){}try{sessionStorage.setItem("_meseo_purchase_completed","1")}catch(t){}}}}function Mr(){if(!Tr)try{if(sessionStorage.getItem("_meseo_purchase_completed"))return;var e=sessionStorage.getItem("_meseo_cart_view_ts"),t=sessionStorage.getItem("_meseo_checkout_started");if(!e||t)return;Tr=!0,u("cart_abandoned",{cart_view_ts:e,source_page_url:window.location.href})}catch(r){}}window.addEventListener("beforeunload",Mr),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Mr()});function vt(){try{na()}catch(e){}try{oa()}catch(e){}try{da()}catch(e){}try{fa()}catch(e){}try{ga()}catch(e){}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",vt):vt(),setTimeout(vt,2e3);var Le=Date.now(),ie={},Ur={},Vr={};function Br(){var e=(window.location.pathname||"").toLowerCase();return e==="/"||e===""?"home":/\/(contact|get[-_]in[-_]touch|contact[-_]us)\b/.test(e)?"contact":/\/(location|locations|office|offices|branch|visit[-_]us|find[-_]us|directions)\b/.test(e)?"location":/\/(service|services|treatment|treatments|procedure|procedures)\b/.test(e)?"service":/\/(about|about[-_]us|team|meet[-_]the|staff|doctors)\b/.test(e)?"about":/\/(blog|article|articles|post|posts|news)\b/.test(e)?"content":/\/(faq|faqs|help|support)\b/.test(e)?"help":"content"}function va(e){if(!e||!e.getAttribute)return null;try{var t=e.getAttribute("data-label")||e.getAttribute("data-office")||e.getAttribute("data-department")||e.getAttribute("data-phone-label");if(t)return String(t).trim().slice(0,60);var r=e.getAttribute("aria-label");if(r&&!/^\+?[\d\s().-]{7,}$/.test(r))return r.trim().slice(0,60);for(var n=e.previousSibling,o=0;o<3&&n;o++){var a=(n.textContent||"").trim();if(a&&a.length<50&&!/^\+?[\d\s().-]{7,}$/.test(a)){var i=a.replace(/[:\-]$/,"").trim();if(i)return i.slice(0,60)}n=n.previousSibling}for(var c=e.parentElement,l=0;l<3&&c;l++){var s=c.querySelector&&c.querySelector("h1, h2, h3, h4, .phone-label, [itemprop='name']");if(s&&s!==e){var m=(s.innerText||s.textContent||"").trim();if(m&&m.length<80&&!/^\+?[\d\s().-]{7,}$/.test(m))return m.slice(0,60)}c=c.parentElement}}catch(x){}return null}function zr(e){if(!e||!e.closest)return"content";try{if(e.closest("footer, [role='contentinfo'], .footer, .site-footer, [class*='footer']"))return"footer";if(e.closest("header, [role='banner'], .header, .site-header, [class*='header']"))return"header";if(e.closest("aside, [role='complementary'], .sidebar, [class*='sidebar']"))return"sidebar"}catch(t){}return"content"}try{let e=function(t){try{for(var r=(t||document).querySelectorAll("a[href^='tel:']"),n=0;n<r.length;n++)jr.observe(r[n])}catch(o){}};var jr=new IntersectionObserver(function(t){for(var r=0;r<t.length;r++){var n=t[r],o=n.target&&n.target.href||"";o&&(ie[o]||(ie[o]={}),n.isIntersecting?(ie[o].hasBeenVisible=!0,ie[o].isCurrentlyVisible=!0):ie[o].isCurrentlyVisible=!1)}},{threshold:.1});e(document);var ha=new MutationObserver(function(t){for(var r=0;r<t.length;r++)for(var n=t[r].addedNodes||[],o=0;o<n.length;o++){var a=n[o];!a||a.nodeType!==1||(a.tagName==="A"&&(a.getAttribute("href")||"").indexOf("tel:")===0&&jr.observe(a),a.querySelectorAll&&e(a))}});document.body&&ha.observe(document.body,{childList:!0,subtree:!0})}catch(e){}var Hr=/(?:\+?(\d{1,3})[-.\s]?)?\(?(\d{3,4})\)?[-.\s]?(\d{3,4})[-.\s]?(\d{4})(?!\d)/g;function Wr(e,t,r){var n="_meseo_phone:"+e;try{if(sessionStorage.getItem(n))return}catch(a){}var o=e+":"+t;if(!Ur[o]&&Pe("phone_number_visible",null,o)){Ur[o]=!0;try{sessionStorage.setItem(n,"1")}catch(a){}u("phone_number_visible",{phone_last4:e,position:t,source:r,source_page_url:window.location.href})}}function ya(){try{for(var e=document.querySelectorAll("a[href^='tel:']"),t=0;t<e.length;t++){var r=e[t],n=(r.href||"").replace(/^tel:/i,"").replace(/\D/g,"");n.length<4||Wr(n.slice(-4),zr(r),"tel_link")}}catch(x){}try{if(!document.createTreeWalker||!document.body)return;for(var o=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,null),a,i=0;(a=o.nextNode())&&i<800;){i++;var c=a.nodeValue;if(!(!c||c.length<10||c.length>5e3)){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<r.length&&t.length<10;n++){for(var o=r[n],a=(o.href||o.textContent||"").replace(/\D/g,""),i=null,c=0;c<e.swap.origAttrs.length;c++){var l=o.getAttribute(e.swap.origAttrs[c]);if(l){i=l;break}}i=i?String(i).replace(/\D/g,""):null;var s=a.length>=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;e<Gr.length;e++){var t=Gr[e];try{if(!t.detect())continue}catch(a){continue}var r="_meseo_ctd:"+t.key;try{if(sessionStorage.getItem(r))continue}catch(a){}if(!Vr[t.key]){Vr[t.key]=!0;try{sessionStorage.setItem(r,"1")}catch(a){}var n=_a(t);if(n.length===0)u("call_tracking_detected",{provider:t.key,source_page_url:window.location.href});else for(var o=0;o<n.length;o++)u("call_tracking_detected",{provider:t.key,tracking_last4:n[o].trackingLast4,original_last4:n[o].originalLast4,source_page_url:window.location.href})}}}function Ve(){try{ya()}catch(e){}try{wa()}catch(e){}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Ve):Ve(),setTimeout(Ve,1500),setTimeout(Ve,4e3);var fe={},Jr=!1,Yr=!1,Xr=!1,$r=[],Kr=[];function oe(e){return fe[e]||(fe[e]={uid:e,provider:null,videoId:null,title:null,duration:null,autoplay:!1,playFired:!1,milestones:{},watchTimeMs:0,lastTickAt:0}),fe[e]}function me(e){e.playFired||(e.playFired=!0,u("video_play",{provider:e.provider,video_id:e.videoId,title:e.title?String(e.title).slice(0,200):null,duration:typeof e.duration=="number"&&isFinite(e.duration)?e.duration:null,autoplay:!!e.autoplay,source_page_url:window.location.href}),e.lastTickAt=Date.now())}function pe(e,t){e.milestones[t]||(e.milestones[t]=!0,u("video_progress",{provider:e.provider,video_id:e.videoId,milestone:t,duration:typeof e.duration=="number"&&isFinite(e.duration)?e.duration:null,source_page_url:window.location.href}))}function ce(e){e.milestones[100]||(e.milestones[100]=!0,u("video_complete",{provider:e.provider,video_id:e.videoId,title:e.title?String(e.title).slice(0,200):null,duration:typeof e.duration=="number"&&isFinite(e.duration)?e.duration:null,watch_time_ms:e.watchTimeMs,source_page_url:window.location.href}))}function ge(e,t,r,n){typeof r=="number"&&isFinite(r)&&r>0&&(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<e.length;t++)ba(e[t],t)}catch(r){}}try{let e=function(){try{window._meseoUserInteracted=!0}catch(t){}document.removeEventListener("click",e,!0),document.removeEventListener("keydown",e,!0),document.removeEventListener("touchstart",e,!0)};document.addEventListener("click",e,!0),document.addEventListener("keydown",e,!0),document.addEventListener("touchstart",e,!0)}catch(e){}function ka(e){var t=(e||"").match(/\/embed\/([A-Za-z0-9_-]{6,})/);return t?t[1]:null}function xa(e,t){if(!e._meseoAttached){e._meseoAttached=!0;var r=e.getAttribute("src")||"";if(r){if(r.indexOf("enablejsapi=1")===-1){var n=r.indexOf("?")>-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<e.length;r++)if(e[r].contentWindow===t)return e[r];return null}function Ea(){try{for(var e=document.querySelectorAll("iframe[src*='youtube.com/embed/'], iframe[src*='youtube-nocookie.com/embed/']"),t=0;t<e.length;t++)xa(e[t],t)}catch(r){}}function La(e){var t=(e||"").match(/player\.vimeo\.com\/video\/(\d+)/);return t?t[1]:null}function Aa(e,t){if(!e._meseoAttached){e._meseoAttached=!0;var r=e.getAttribute("src")||"";if(r){if(r.indexOf("api=1")===-1){var n=r.indexOf("?")>-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<e.length;t++)Aa(e[t],t)}catch(r){}}function Ca(){try{var e=document.querySelectorAll("iframe[src*='loom.com']");if(e.length===0)return;var t;try{t=new IntersectionObserver(function(n){for(var o=0;o<n.length;o++){var a=n[o];if(a.isIntersecting&&!a.target._meseoLoomFired){a.target._meseoLoomFired=!0;var i=a.target.getAttribute("src")||"",c=i.match(/loom\.com\/(?:embed|share)\/([A-Za-z0-9]+)/),l="loom:"+(c?c[1]:"unknown")+":"+o,s=oe(l);s.provider="loom",s.videoId=c?c[1]:null,me(s)}}},{threshold:.5});for(var r=0;r<e.length;r++)t.observe(e[r])}catch(n){}}catch(n){}}function Oa(){try{window._wq=window._wq||[],window._wq.push({id:"_all",onReady:function(e){try{var t=e&&typeof e.hashedId=="function"?e.hashedId():null,r="wistia:"+(t||"unknown"),n=oe(r);n.provider="wistia",n.videoId=t;try{n.title=e.name&&e.name()}catch(o){}try{n.duration=e.duration&&e.duration()}catch(o){}e.bind("play",function(){me(n)}),e.bind("pause",function(){n.lastTickAt=0}),e.bind("end",function(){ce(n)}),e.bind("percentwatchedchanged",function(o){try{var a=(o||0)*100;a>=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;r<t.length;r++)e.push(t[r]);for(var n=document.querySelectorAll("embed[type='application/pdf']"),r=0;r<n.length;r++)e.push(n[r]);for(var o=document.querySelectorAll("embed[src*='.pdf']"),r=0;r<o.length;r++)e.push(o[r]);for(var a=document.querySelectorAll("object[type='application/pdf']"),r=0;r<a.length;r++)e.push(a[r]);for(var i=document.querySelectorAll("object[data*='.pdf']"),r=0;r<i.length;r++)e.push(i[r]);for(var r=0;r<e.length;r++){var c=e[r];if(!rn.has(c)){try{rn.add(c)}catch(C){}var l=Pa(c),s;try{var m=new URL(l||"",window.location.href);s=(m.pathname.split("/").pop()||"").split(/[?#]/)[0]||"pdf"}catch(C){s="pdf"}ht.push({openedAt:Date.now(),fileName:s.slice(0,200),fileUrl:l||""}),u("pdf_opened",{file_name:s.slice(0,200),file_url:B(l||""),source_page_url:window.location.href})}}}catch(x){}}function an(){if(!nn){nn=!0;try{for(var e=Date.now(),t=0;t<ht.length;t++){var r=ht[t];u("pdf_time_spent",{file_name:r.fileName,file_url:B(r.fileUrl||""),time_spent_ms:Math.max(0,e-r.openedAt),source_page_url:window.location.href})}}catch(n){}}}window.addEventListener("beforeunload",an),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&an()});function cn(){if(!on){on=!0;try{u("page_printed",{source_page_url:window.location.href})}catch(e){}}}try{if(window.addEventListener("beforeprint",cn),typeof window.matchMedia=="function"){var ze=window.matchMedia("print"),sn=function(e){e.matches&&cn()};ze.addEventListener?ze.addEventListener("change",sn):ze.addListener&&ze.addListener(sn)}}catch(e){}function yt(){Fa()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",yt):yt(),setTimeout(yt,2e3);var un={},ln={},je={},dn={},fn={},Ae={},mn=!1,ve=[{key:"facebook",hrefRe:/facebook\.com\/sharer|facebook\.com\/share\.php/i,clsRe:/(?:^|[\s_-])(?:fb|facebook)[-_]?share(?:$|[\s_-])|share[-_](?:fb|facebook)/i},{key:"twitter",hrefRe:/(?:twitter|x)\.com\/(?:intent\/tweet|share)/i,clsRe:/(?:^|[\s_-])(?:twitter|x)[-_]?share(?:$|[\s_-])|share[-_](?:twitter|x)(?![a-z])/i},{key:"linkedin",hrefRe:/linkedin\.com\/(?:share|sharing\/share-offsite)/i,clsRe:/(?:^|[\s_-])linkedin[-_]?share(?:$|[\s_-])|share[-_]linkedin/i},{key:"pinterest",hrefRe:/pinterest\.com\/pin\/create/i,clsRe:/(?:^|[\s_-])(?:pinterest|pin[-_]it)(?:$|[\s_-])|share[-_]pinterest/i},{key:"whatsapp",hrefRe:/(?:wa\.me|api\.whatsapp\.com|whatsapp\.com\/send)/i,clsRe:/(?:^|[\s_-])whats?app[-_]?share(?:$|[\s_-])|share[-_]whats?app/i},{key:"reddit",hrefRe:/reddit\.com\/submit/i,clsRe:/(?:^|[\s_-])reddit[-_]?share(?:$|[\s_-])|share[-_]reddit/i},{key:"telegram",hrefRe:/(?:t\.me|telegram\.me)\/share/i,clsRe:/(?:^|[\s_-])telegram[-_]?share(?:$|[\s_-])/i}];function Ma(e){try{var t=e.className;if(!t)return"";if(typeof t=="string")return t;if(t.baseVal!==void 0)return t.baseVal}catch(r){}return""}function Ua(e){for(var t=e.getAttribute&&e.getAttribute("href")||"",r=t.toLowerCase(),n=0;n<ve.length;n++)if(ve[n].hrefRe.test(r))return ve[n].key;if(/^mailto:/i.test(t)&&Va(e))return"email";for(var o=Ma(e).toLowerCase()+" "+(e.id||"").toLowerCase(),a=0;a<ve.length;a++)if(ve[a].clsRe.test(o))return ve[a].key;return null}function Va(e){try{return!!(e.closest&&e.closest(".share, .social-share, .share-buttons, .sharing, [class*='share-'], [data-share], [class*='social-share']"))}catch(t){return!1}}document.addEventListener("click",function(e){try{var t=e.target;if(!t||!t.closest)return;var r=t.closest("a, button, [data-share], [role='button']");if(!r)return;var n=Ua(r);if(!n)return;var o=r.getAttribute&&r.getAttribute("href")||"",a=n+":"+(o||"generic");if(un[a])return;un[a]=!0,u("social_share",{platform:n,share_url:o?B(o):null,source_page_url:window.location.href})}catch(i){}},!0);var Ba=/^https?:\/\/\S{4,}$/i,za=/(?:\+?(\d{1,3})[-.\s]?)?\(?(\d{3,4})\)?[-.\s]?(\d{3,4})[-.\s]?(\d{4})/,ja=/\b\d{1,5}\s+[A-Za-z0-9.,'\- ]{2,60}\b(?:street|st|avenue|ave|road|rd|boulevard|blvd|lane|ln|drive|dr|court|ct|place|pl|highway|hwy|parkway|pkwy|way|route|rt)\.?\b/i;function Ha(e){if(!e)return null;var t=e.trim();return t.length===0||t.length>500?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;c<i.length;c++){var l=i[c];if(l.isIntersecting){var s=l.target._meseoReviewKey;!s||je[s]||Pe("review_widget_visible",l.target,s)&&(je[s]=!0,u("review_widget_visible",{provider:s.split(":")[0],source_page_url:window.location.href}))}}},{threshold:.3})}catch(i){Ie=null}for(var e=0;e<pn.length;e++){var t=pn[e],r;try{r=document.querySelectorAll(t.sel)}catch(i){continue}for(var n=0;n<r.length;n++){var o=r[n];if(!o._meseoReviewAttached){if(o._meseoReviewAttached=!0,o._meseoReviewKey=t.key+":"+n,Ie)try{Ie.observe(o)}catch(i){}else{var a=o._meseoReviewKey;!je[a]&&Pe("review_widget_visible",o,a)&&(je[a]=!0,u("review_widget_visible",{provider:t.key,source_page_url:window.location.href}))}o.addEventListener("click",function(i){try{for(var c=i.currentTarget||i.target;c&&!c._meseoReviewKey;)c=c.parentElement;if(!c)return;var l=c._meseoReviewKey;if(!l||dn[l])return;dn[l]=!0,u("review_widget_clicked",{provider:l.split(":")[0],source_page_url:window.location.href})}catch(s){}},!0)}}}}var Ga=[".testimonial",".testimonials","[class*='testimonial']","[class*='testimonials']","[data-testimonial]",".reviews-section","[class*='reviews-section']","[class*='social-proof']","[id*='testimonial']","[id*='reviews']","[id*='social-proof']"].join(", "),Ce=null;function Ja(){if(!Ce)try{Ce=new IntersectionObserver(function(o){for(var a=0;a<o.length;a++){var i=o[a],c=i.target._meseoProofId;if(c){var l=Ae[c];l||(l=Ae[c]={totalMs:0,lastSeenTs:0,currentlyVisible:!1}),i.isIntersecting?(!fn[c]&&Pe("social_proof_visible",i.target,c)&&(fn[c]=!0,u("social_proof_visible",{source_page_url:window.location.href})),l.currentlyVisible=!0,l.lastSeenTs=Date.now()):l.currentlyVisible&&(l.lastSeenTs>0&&(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;r<e.length&&t>0;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<se.length;r++){var n=se[r].domain;if(n&&(t===n||t.endsWith("."+n)))return se[r]}return null}function $a(){try{var e=sessionStorage.getItem("_meseo_competitors_list"),t=sessionStorage.getItem("_meseo_competitors_ts");if(e&&t){var r=Date.now()-parseInt(t,10);if(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;o<r.length;o++){var a=r[o];if(a!==e){var i=a.compareDocumentPosition(e);i&4&&(n=a)}}if(!n)return null;var c=(n.innerText||n.textContent||"").trim();return c?c.slice(0,120):null}catch(l){return null}}function kn(){try{var e=window.getSelection&&window.getSelection();if(!e||e.rangeCount===0)return;var t=e.toString();if(!t||t.length<5||t.length>2e3)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<e.length;o++)if(e[o].state==="hidden"){if(e[o].ts-e[0].ts<5e3)return"immediate_bounce";break}return n>=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;n<te.length;n++){var o=te[n-1],a=te[n],i=Math.max(0,a.ts-o.ts);o.state==="visible"?e+=i:t+=i,o.state!==a.state&&r++}var c=ti(te,e,t,r);u("tab_pattern",{pattern:c,total_visible_time_ms:e,total_hidden_time_ms:t,switch_count:r,source_page_url:window.location.href})}catch(l){}}}window.addEventListener("beforeunload",En),window.addEventListener("pagehide",En);var Ge={},ri=/\b(cancer|tumor|diabetes|disease|diagnos(is|es|e|ed)|symptom|pregnan(t|cy)|hiv|aids|std|sti|mental|depression|anxiety|psychiatric|therapy|medication|prescription|drug|surgery|treatment|condition|disorder|syndrome|chronic|acute|infection|pain|injury|fracture|allergy|allergic)\b/i;function Ln(e){if(!e||typeof e!="string")return null;var t=e.trim();if(t.length===0)return null;t.length>500&&(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;Ke<kt.length;Ke++)if(kt[Ke].name==="first-contentful-paint"){ue=kt[Ke].startTime;break}}catch(e){}try{if(typeof PerformanceObserver=="function"){var si=new PerformanceObserver(function(e){for(var t=e.getEntries(),r=0;r<t.length;r++){var n=t[r];Je=n.renderTime||n.loadTime||n.startTime||Je}});si.observe({type:"largest-contentful-paint",buffered:!0})}}catch(e){}try{if(typeof PerformanceObserver=="function"){var ui=new PerformanceObserver(function(e){for(var t=e.getEntries(),r=0;r<t.length;r++)t[r].name==="first-contentful-paint"&&!ue&&(ue=t[r].startTime)});ui.observe({type:"paint",buffered:!0})}}catch(e){}try{if(typeof PerformanceObserver=="function"){var li=new PerformanceObserver(function(e){for(var t=e.getEntries(),r=0;r<t.length;r++){var n=t[r];if(!n.hadRecentInput){var o=n.startTime;he>0&&(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;r<t.length;r++){var n=t[r];if(!(!n||typeof n.duration!="number")&&(n.duration>ye&&(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;r<t.length;r++){var n=(t[r].processingStart||0)-(t[r].startTime||0);n>ye&&(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;r<t.length;r++){var n=t[r];if(!(!n||!n.name)){var o=!1;try{var a=new URL(n.name,window.location.href);o=a.origin!==window.location.origin}catch(c){continue}if(o){var i=n.transferSize===0&&n.encodedBodySize===0&&n.decodedBodySize===0;i&&(Dn[n.name]||(Dn[n.name]=!0,j("resource_error",{resource_url:n.name.slice(0,2048),resource_type:n.initiatorType||null,duration_ms:Math.round(n.duration||0),url:window.location.href})))}}}});mi.observe({type:"resource",buffered:!0})}}catch(e){}var Pn=0,xt={},pi=3,gi=10;function Fn(e,t,r){try{var n=String(e||"unknown").slice(0,200);if(!n||n==="Script error."||n==="ResizeObserver loop limit exceeded"||(xt[n]=(xt[n]||0)+1,xt[n]>pi)||(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;t<e.length;t++)if(e[t].name==="first-contentful-paint"){ue=e[t].startTime;break}}catch(n){}var r=null;try{r=navigator.connection||null}catch(n){}ai({siteId:V,pageUrl:window.location.href,lcp:typeof Je=="number"?Math.round(Je):null,cls:typeof Ye=="number"?Math.round(Ye*1e3)/1e3:null,inp:ye>0?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]<n-vi;)o.shift();if(o.length>=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<t.length;r++)Gn(t[r])}catch(n){}}try{var Jn=new MutationObserver(function(e){if(Ze>=At){try{Jn.disconnect()}catch(o){}return}for(var t=0;t<e.length;t++){var r=e[t];if(r.type==="childList"&&r.addedNodes)for(var n=0;n<r.addedNodes.length;n++)It(r.addedNodes[n]);else r.type==="attributes"&&It(r.target)}});document.body&&Jn.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","role"]}),document.body&&It(document.body)}catch(e){}var _e={},Yn={},Xn=!1;function $n(e){return e?"abandon:"+(e.id||e.action||e.name||"form-"+Array.prototype.indexOf.call(document.forms,e)):null}document.addEventListener("focusin",function(e){try{var t=e.target;if(!t||t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&t.tagName!=="SELECT")return;var r=t.form||t.closest&&t.closest("form");if(!r||r.tagName!=="FORM")return;var n=$n(r);if(!n)return;_e[n]||(_e[n]={formId:r.id||null,startedAt:Date.now(),lastFieldFocused:null,formElement:r});var o=(t.name||t.id||t.type||"").toString().slice(0,60);o&&(_e[n].lastFieldFocused=o)}catch(a){}},!0),document.addEventListener("submit",function(e){try{var t=e.target;if(!t||t.tagName!=="FORM")return;var r=$n(t);r&&(Yn[r]=!0)}catch(n){}},!0);function Ct(){if(!Xn){Xn=!0;try{for(var e in _e)if(Object.prototype.hasOwnProperty.call(_e,e)&&!Yn[e]){var t=_e[e];if(!(!t||!t.formElement)){var r=0,n=0;try{for(var o=t.formElement.elements||[],a=0;a<o.length;a++){var i=o[a];if(!(!i||!i.tagName)){var c=(i.type||"").toLowerCase();if(!(c==="submit"||c==="button"||c==="hidden"||c==="reset"||c==="image"||c==="fieldset")&&!(!i.name&&!i.id&&i.tagName==="INPUT")){r++;var l="";try{l=i.value||""}catch(m){}var s=!1;(c==="checkbox"||c==="radio")&&typeof i.checked=="boolean"?s=i.checked:s=String(l).length>0,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;r<Rt.length;r++)if(Rt[r].re.test(t))return Rt[r].type;var n=(e.className&&e.className.baseVal!==void 0?e.className.baseVal:e.className||"")+" "+(e.id||"");if(Li.test(n))return"generic";try{if(e.hasAttribute&&e.hasAttribute("data-calendar"))return"generic"}catch(o){}return null}function Ii(e){try{if(e.getAttribute){var t=e.getAttribute("data-event-title")||e.getAttribute("data-title")||e.getAttribute("data-name");if(t)return String(t).slice(0,120)}var r=e.closest&&e.closest("article, section, [class*='event'], [class*='webinar'], main, body");if(r){var n=r.querySelector("h1, h2, h3, [itemprop='name']");if(n){var o=(n.innerText||n.textContent||"").trim();if(o)return o.slice(0,120)}}}catch(a){}return null}document.addEventListener("click",function(e){try{var t=e.target;if(!t||!t.closest)return;var r=t.closest("a, button, [data-calendar]");if(!r)return;var n=Ai(r);if(!n)return;var o=n+":"+(r.getAttribute&&r.getAttribute("href")||r.id||"inline");if(io[o])return;io[o]=!0,u("calendar_add",{calendar_type:n,event_title:Ii(r),link_url:r.getAttribute&&r.getAttribute("href")||null,element_label:ne(r),source_page_url:window.location.href})}catch(a){}},!0);var Ci=/\b(reschedule|change\s+appointment|modify\s+booking|change\s+booking|move\s+appointment|reschedule\s+appointment)\b/i,Oi=/\b(cancel\s+(?:appointment|booking|my\s+appointment|reservation)|cancel\s+this|cancel\s+visit)\b/i;document.addEventListener("click",function(e){try{if(!Nt())return;var t=e.target;if(!t||!t.closest)return;var r=t.closest("a, button, [role='button']");if(!r)return;var n=((r.innerText||r.value||r.getAttribute("aria-label")||"")+"").trim();if(!n||n.length>80)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<ae.length;l++){var s=ae[l];if(i.indexOf(s.pattern)>-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<ae.length;s++){var m=ae[s];if(c.indexOf(m.pattern)>-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;s<c.length;s++){var m=c[s];m.offsetHeight>0&&(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;r<t.length;r++)t[r].src&&e.push(t[r].src);be=e.join(" ")}catch(n){be=""}return be}var Se=null;function zt(){if(Se!==null)return Se;try{Se=document.cookie}catch(e){Se=""}return Se}var So=[{name:"Google Analytics 4",plugin_key:"ga4",category:"analytics",detect:function(){var e=typeof window.gtag=="function",t=/googletagmanager\.com\/gtag\//.test(M());return e&&t?{matched:!0,confidence:"high"}:e||t?{matched:!0,confidence:"medium"}:!1}},{name:"Google Tag Manager",plugin_key:"gtm",category:"analytics",detect:function(){var e=typeof window.google_tag_manager=="object"&&window.google_tag_manager!==null,t=/googletagmanager\.com\/gtm\.js/.test(M());return e&&t?{matched:!0,confidence:"high"}:e||t?{matched:!0,confidence:"medium"}:!1}},{name:"Universal Analytics",plugin_key:"ua_legacy",category:"analytics",detect:function(){var e=typeof window.ga=="function",t=/_ga=/.test(zt());return e&&t?{matched:!0,confidence:"high"}:e?{matched:!0,confidence:"medium"}:!1}},{name:"Meta Pixel",plugin_key:"fb_pixel",category:"pixel",detect:function(){var e=typeof window.fbq=="function",t=/_fbp=/.test(zt());return e&&t?{matched:!0,confidence:"high"}:e?{matched:!0,confidence:"medium"}:!1}},{name:"LinkedIn Insight Tag",plugin_key:"linkedin_insight",category:"pixel",detect:function(){var e=typeof window._linkedin_partner_id!="undefined",t=/snap\.licdn\.com\/li\.lms-analytics/.test(M());return e&&t?{matched:!0,confidence:"high"}:e||t?{matched:!0,confidence:"medium"}:!1}},{name:"TikTok Pixel",plugin_key:"tiktok_pixel",category:"pixel",detect:function(){return typeof window.ttq!="undefined"}},{name:"X Pixel",plugin_key:"twitter_pixel",category:"pixel",detect:function(){return typeof window.twq=="function"}},{name:"Pinterest Tag",plugin_key:"pinterest_tag",category:"pixel",detect:function(){return typeof window.pintrk=="function"}},{name:"Reddit Pixel",plugin_key:"reddit_pixel",category:"pixel",detect:function(){return typeof window.rdt=="function"}},{name:"Microsoft Clarity",plugin_key:"clarity",category:"analytics",detect:function(){return typeof window.clarity=="function"}},{name:"Hotjar",plugin_key:"hotjar",category:"analytics",detect:function(){return typeof window.hj=="function"}},{name:"Amplitude",plugin_key:"amplitude",category:"analytics",detect:function(){return/cdn\.amplitude\.com/.test(M())}},{name:"WordPress",plugin_key:"wordpress",category:"seo",detect:function(){try{var e=document.querySelector('meta[name="generator"]');return!!(e&&/WordPress/.test(e.getAttribute("content")||""))}catch(t){return!1}},version:function(){try{var e=document.querySelector('meta[name="generator"]'),t=e&&e.getAttribute("content")||"",r=/WordPress\s+(\d+\.\d+(?:\.\d+)*)/.exec(t);return r?r[1]:null}catch(n){return null}}},{name:"Yoast SEO",plugin_key:"yoast",category:"seo",detect:function(){try{var e=document.querySelector('meta[name="generator"]');return!!(e&&/Yoast SEO/.test(e.getAttribute("content")||""))}catch(t){return!1}},version:function(){try{var e=document.querySelector('meta[name="generator"]'),t=e&&e.getAttribute("content")||"",r=/Yoast SEO\s+(\d+\.\d+(?:\.\d+)*)/.exec(t);return r?r[1]:null}catch(n){return null}}},{name:"Rank Math SEO",plugin_key:"rankmath",category:"seo",detect:function(){try{var e=document.querySelector('meta[name="generator"]');return e&&/rank.?math/i.test(e.getAttribute("content")||"")?!0:!!document.querySelector('link[href*="rankmath"]')}catch(t){return!1}},version:function(){try{var e=document.querySelector('meta[name="generator"]'),t=e&&e.getAttribute("content")||"";if(/rank.?math/i.test(t)){var r=/(\d+\.\d+(?:\.\d+)+)/.exec(t);if(r)return r[1]}for(var n=document.scripts,o=0;o<n.length;o++){var a=n[o].src||"";if(/rankmath/.test(a)){var i=/[?&]ver=(\d+\.\d+(?:\.\d+)*)/.exec(a);if(i)return i[1]}}}catch(c){}return null}},{name:"Elementor",plugin_key:"elementor",category:"page_builder",detect:function(){try{return!!document.querySelector(".elementor")}catch(e){return!1}},version:function(){try{var e=document.body;if(e&&e.getAttribute("data-elementor-version"))return e.getAttribute("data-elementor-version");for(var t=document.scripts,r=0;r<t.length;r++){var n=t[r].src||"";if(/elementor/.test(n)){var o=/[?&]ver=(\d+\.\d+(?:\.\d+)*)/.exec(n);if(o)return o[1]}}}catch(a){}return null}},{name:"WooCommerce",plugin_key:"woocommerce",category:"ecommerce",detect:function(){try{return!!document.querySelector(".woocommerce")||!!(document.body&&document.body.classList.contains("woocommerce-page"))}catch(e){return!1}},version:function(){try{for(var e=document.scripts,t=0;t<e.length;t++){var r=e[t].src||"";if(/\/woocommerce\//.test(r)||/[/?]wc-/.test(r)){var n=/[?&]ver=(\d+\.\d+(?:\.\d+)*)/.exec(r);if(n)return n[1]}}}catch(o){}return null}},{name:"HubSpot Tracking",plugin_key:"hubspot_track",category:"crm",detect:function(){return/js\.hs-scripts\.com/.test(M())}},{name:"Klaviyo",plugin_key:"klaviyo",category:"crm",detect:function(){return typeof window._learnq!="undefined"||/static\.klaviyo\.com/.test(M())}},{name:"Mailchimp",plugin_key:"mailchimp",category:"crm",detect:function(){return/chimpstatic\.com/.test(M())}},{name:"Formidable Forms",plugin_key:"formidable",category:"form",detect:function(){try{return!!document.querySelector(".frm_form_fields")}catch(e){return!1}}},{name:"Fluent Forms",plugin_key:"fluent_forms",category:"form",detect:function(){try{return!!document.querySelector(".fluentform")}catch(e){return!1}}},{name:"Divi",plugin_key:"divi",category:"page_builder",detect:function(){try{return!!document.querySelector(".et_pb_section")||!!(document.body&&document.body.classList.contains("et_divi_theme"))}catch(e){return!1}}},{name:"Beaver Builder",plugin_key:"beaver_builder",category:"page_builder",detect:function(){try{return!!document.querySelector(".fl-builder-content")}catch(e){return!1}}},{name:"Brizy",plugin_key:"brizy",category:"page_builder",detect:function(){try{return!!document.querySelector(".brz-root")}catch(e){return!1}}},{name:"Bricks",plugin_key:"bricks",category:"page_builder",detect:function(){try{return!!document.querySelector(".brxe-container")}catch(e){return!1}}},{name:"Bookly",plugin_key:"bookly",category:"booking",detect:function(){try{return!!document.querySelector(".bookly-form")}catch(e){return!1}}},{name:"BookingPress",plugin_key:"bookingpress",category:"booking",detect:function(){try{return!!document.querySelector(".bookingpress_form")}catch(e){return!1}}},{name:"SimplyBook.me",plugin_key:"simplybook",category:"booking",detect:function(){return/simplybook\.me/.test(M())}},{name:"Setmore",plugin_key:"setmore",category:"booking",detect:function(){return/setmore\.com/.test(M())}},{name:"Trustpilot",plugin_key:"trustpilot",category:"reviews",detect:function(){try{return!!document.querySelector('[class*="trustpilot-widget"]')}catch(e){return!1}}},{name:"Google Reviews Widget",plugin_key:"google_reviews_widget",category:"reviews",detect:function(){try{return!!document.querySelector('[class*="google-reviews"]')||/reviewsonmywebsite\.com/.test(M())}catch(e){return!1}}},{name:"NiceJob",plugin_key:"nicejob",category:"reviews",detect:function(){return/nicejob\.co/.test(M())}},{name:"WP Rocket",plugin_key:"wp_rocket",category:"cache",detect:function(){return typeof window.WPRocketBeacon!="undefined"||/wp-rocket/i.test(M())},version:function(){try{if(window.WPRocketBeacon&&window.WPRocketBeacon.version)return String(window.WPRocketBeacon.version);for(var e=document.scripts,t=0;t<e.length;t++){var r=e[t].src||"";if(/wp-rocket/i.test(r)){var n=/[?&]ver=(\d+\.\d+(?:\.\d+)*)/.exec(r);if(n)return n[1]}}}catch(o){}return null}},{name:"LiteSpeed Cache",plugin_key:"litespeed_cache",category:"cache",detect:function(){try{var e=document.querySelector('meta[name="generator"]');return!!(e&&/LiteSpeed/i.test(e.getAttribute("content")||""))}catch(t){return!1}},version:function(){try{var e=document.querySelector('meta[name="generator"]'),t=e&&e.getAttribute("content")||"",r=/LiteSpeed Cache\s+(\d+\.\d+(?:\.\d+)*)/.exec(t);return r?r[1]:null}catch(n){return null}}},{name:"Wordfence",plugin_key:"wordfence",category:"security",detect:function(){return/wordfence/i.test(M())||/wfwaf-/i.test(zt())}},{name:"Sucuri",plugin_key:"sucuri",category:"security",detect:function(){return/cdn\.sucuri\.net/.test(M())}},{name:"PatientPop",plugin_key:"patientpop",category:"lead_gen",detect:function(){return/patientpop\.com/.test(M())}},{name:"Doctible",plugin_key:"doctible",category:"lead_gen",detect:function(){return/doctible\.com/.test(M())}},{name:"All in One SEO",plugin_key:"aioseo",category:"seo",detect:function(){try{if(document.querySelector('meta[name="aios-prevent"]'))return!0;var e=document.querySelector('meta[name="generator"]');return!!(e&&/aioseo/i.test(e.getAttribute("content")||""))}catch(t){return!1}},version:function(){try{var e=document.querySelector('meta[name="generator"]'),t=e&&e.getAttribute("content")||"";if(!t&&document.querySelector('meta[name="aios-prevent"]')){for(var r=document.scripts,n=0;n<r.length;n++){var o=r[n].src||"";if(/aioseo/.test(o)){var a=/[?&]ver=(\d+\.\d+(?:\.\d+)*)/.exec(o);if(a)return a[1]}}return null}var i=/(\d+\.\d+(?:\.\d+)+)/.exec(t);return i?i[1]:null}catch(c){return null}}},{name:"SEOPress",plugin_key:"seopress",category:"seo",detect:function(){try{var e=document.querySelector('meta[name="generator"]');return!!(e&&/SEOPress/.test(e.getAttribute("content")||""))}catch(t){return!1}},version:function(){try{var e=document.querySelector('meta[name="generator"]'),t=e&&e.getAttribute("content")||"",r=/(\d+\.\d+(?:\.\d+)*)/.exec(t.replace(/SEOPress\s*/i,""));return r?r[1]:null}catch(n){return null}}},{name:"Shopify",plugin_key:"shopify",category:"ecommerce",detect:function(){if(typeof window.Shopify!="undefined")return{matched:!0,confidence:"high"};try{var e=document.querySelector('meta[name="generator"]');if(e&&/Shopify/.test(e.getAttribute("content")||""))return{matched:!0,confidence:"medium"}}catch(t){}return!1}},{name:"Easy Digital Downloads",plugin_key:"edd",category:"ecommerce",detect:function(){try{return!!document.querySelector(".edd_form")||!!(document.body&&document.body.classList.contains("edd-page"))}catch(e){return!1}}},{name:"ActiveCampaign",plugin_key:"activecampaign",category:"crm",detect:function(){return/trackcmp\.net/.test(M())||typeof window.vgo!="undefined"}},{name:"ConvertKit",plugin_key:"convertkit",category:"crm",detect:function(){return/f\.convertkit\.com/.test(M())||/convertkit\.com\/landing/.test(M())}}];function ji(){be=null,Se=null;try{for(var e=0;e<So.length;e++){var t=So[e],r=t.plugin_key;if(!Yt.has(r)){var n=!1;try{n=t.detect()}catch(i){continue}if(n){Yt.add(r);var o="medium";n&&typeof n=="object"&&n.matched&&(o=n.confidence||"medium");try{console.debug("[meSEO] integration detected:",t.name)}catch(i){}var a=null;try{a=t.version?t.version():null}catch(i){}Z.push({plugin:t.name,plugin_key:r,category:t.category,tag_v:at,confidence:o,version:a})}}}}catch(i){}}function Hi(){try{Object.keys(wo).forEach(function(e){var t=wo[e];if(!t._activated){var r=!1;try{r=!!t.detect()}catch(i){r=!1}if(r){t._activated=!0;try{console.debug("[meSEO] booking plugin detected:",t.name)}catch(i){}var n=null;try{n=t.version?t.version():null}catch(i){}Z.push({plugin:t.name,plugin_key:e,category:t.category||"booking",tag_v:at,confidence:"medium",version:n});try{var o=document.querySelectorAll(t.container);if(o&&o.length>0)for(var a=0;a<o.length;a++)try{t.track(o[a])}catch(i){}else try{t.track(null)}catch(i){}}catch(i){}}}})}catch(e){}}function Ne(){document.hidden||(Hi(),zi(),ji())}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Ne):Ne(),typeof requestIdleCallback=="function"?requestIdleCallback(function(){Ne(),it()},{timeout:5e3}):setTimeout(function(){Ne(),it()},5e3);function ko(){if(typeof MutationObserver!="undefined")try{var e=new MutationObserver(function(t){for(var r=!1,n=0;n<t.length&&!r;n++)for(var o=t[n].addedNodes,a=0;a<o.length;a++){var i=o[a];if(!(!i||i.nodeType!==1)){var c=((i.id||"")+" "+(i.className&&i.className.baseVal!==void 0?i.className.baseVal:i.className||"")).toLowerCase(),l=(i.getAttribute&&i.getAttribute("src")||"").toLowerCase();if(i.tagName==="IFRAME"||i.tagName==="SCRIPT"||/amelia|stepbooking|elementor-widget-stepbooking|calendly|nexhealth|acuity|jotform|typeform|wpforms|gform|wpcf7|hbspt|hs-form|deardoc|dd-chat|birdeye|podium|weave|intercom|drift|tidio|tawk|livechat|crisp|olark|smartsupp|jivo|purechat|userlike|frontchat/.test(c+" "+l)){r=!0;break}}}r&&(Ne(),it())});e.observe(document.body||document.documentElement,{childList:!0,subtree:!0})}catch(t){}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ko):ko();var jt={make_an_appointment:"booking_submit",makeanappointment:"booking_submit","make-an-appointment":"booking_submit",book_appointment:"booking_submit",bookappointment:"booking_submit",book_appointment2025:"booking_submit",bookappointment2025:"booking_submit",book_appointment_2025:"booking_submit","book-appointment":"booking_submit",schedule_appointment:"booking_submit",schedule_visit:"booking_submit",appointment_request:"booking_submit",request_appointment:"booking_submit",appointment_scheduled:"booking_confirmed",appointment_confirmed:"booking_confirmed",booking_confirmed:"booking_confirmed",conversion:"form_submit",contact_us:"form_submit",contactus:"form_submit","contact-us":"form_submit",contact_form_submit:"form_submit",contact_form:"form_submit",form_submit:"form_submit",form_submission:"form_submit",generate_lead:"form_submit",lead_form:"form_submit",sign_up:"form_submit",signup:"form_submit",register:"form_submit",subscribe:"form_submit",newsletter_signup:"form_submit",newsletter:"form_submit",request_quote:"form_submit",request_a_quote:"form_submit",free_consultation:"form_submit",phone_call:"click_to_call",click_to_call:"click_to_call",click2call:"click_to_call",call_click:"click_to_call",call_now:"click_to_call",tel_click:"click_to_call",purchase:"purchase",order_complete:"purchase",transaction:"purchase",begin_checkout:"checkout_started",checkout_started:"checkout_started",add_to_cart:"add_to_cart",addtocart:"add_to_cart"},Wi={page_view:1,session_start:1,first_visit:1,scroll:1,click:1,view_search_results:1,file_download:1,video_start:1,video_progress:1,video_complete:1,ad_impression:1,ad_click:1,user_engagement:1};function Gi(e){if(!e||typeof e!="string")return!0;var t=e.toLowerCase();return!!(t.indexOf("gtm.")===0||t.indexOf("optimize.")===0||t.indexOf("gtagapiget")===0||Wi[t])}var Ht={},rt=null;function xo(e){return(e||"").toLowerCase().replace(/[^a-z0-9]/g,"")}function Ji(e){if(!rt){rt={};for(var t in jt)Object.prototype.hasOwnProperty.call(jt,t)&&(rt[xo(t)]=jt[t])}return rt[xo(e)]||null}function Yi(e){var t=(e||"").toLowerCase();return t?/appointment|booking|schedule|reservation|reserve_a_/.test(t)?"booking_submit":/purchase|order_complete|transaction|checkout_complete/.test(t)?"purchase":/begin_checkout|checkout_start/.test(t)?"checkout_started":/add_to_cart|addtocart/.test(t)?"add_to_cart":/(^|_)call($|_)|click_to_call|phone_call|tel_click|call_now/.test(t)?"click_to_call":/contact|form|submit|lead|sign(_|-)?up|subscribe|newsletter|inquiry|enquiry|request/.test(t)?"form_submit":null:null}function Xi(e){var t="";if(e&&typeof e=="object")for(var r=["event_category","conversion_type","event_label","event_action","send_to"],n=0;n<r.length;n++){var o=e[r[n]];typeof o=="string"&&o&&(t+=" "+o.toLowerCase())}return/appointment|booking|schedul|reserv/.test(t)?"booking_submit":/(^|_| )call($|_| )|click_to_call|phone_call|tel/.test(t)?"click_to_call":/purchase|order|transaction/.test(t)?"purchase":"form_submit"}function Eo(e,t){if(!Gi(e)){var r=Ji(e),n=r?"map":null;!r&&e.toLowerCase()==="conversion"&&(r=Xi(t),n="conversion-subtype"),r||(r=Yi(e),r&&(n="pattern"));try{console.debug("[meSEO] gtag event received:",e,"\u2192 mapped:",r||"custom_event","(via",n||"none",")")}catch(m){}var o=t&&typeof t=="object"?t:{},a={source:"gtag_intercept",original_event:e.slice(0,100),page_url:window.location.pathname};window._meseoHealthcareMode||((typeof o.value=="number"||typeof o.value=="string")&&(a.value=o.value),typeof o.currency=="string"&&(a.currency=o.currency.slice(0,8)));var i={form_submit:1,booking_submit:1,booking_confirmed:1,click_to_call:1},c=r||"custom_event";if(i[c]){var l=c+":"+window.location.pathname,s=Date.now();if(Ht[l]&&s-Ht[l]<5e3){try{console.debug("[meSEO] gtag deduped (within 5s):",e,"\u2192",c)}catch(m){}return}Ht[l]=s}c==="form_submit"&&(a.submissionId=ee());try{console.debug("[meSEO] gtag "+(r?"conversion":"custom")+":",e,"\u2192",c,a)}catch(m){}u(c,a)}}function Lo(){if(!window.gtag||typeof window.gtag!="function")return!1;if(window.gtag._meseoPatch)return!0;try{var e=window.gtag,t=function(){var r;try{r=e.apply(this,arguments)}catch(n){}try{arguments.length>=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;r<arguments.length;r++){var n=arguments[r];if(!(!n||typeof n!="object")){var o=typeof n.event=="string"&&n.event||typeof n.eventName=="string"&&n.eventName||null;o&&Eo(o,n)}}}catch(a){}return t},window.dataLayer._meseoPatch=!0;try{console.debug("[meSEO] dataLayer interceptor active")}catch(t){}return!0}catch(t){return!1}}try{Lo()}catch(e){}try{Ao()}catch(e){}var $i=Date.now(),Ki=setInterval(function(){var e=Lo(),t=Ao();(e&&t||Date.now()-$i>3e4)&&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;s<c.evidence.length&&!l;s++){var m=c.evidence[s];l=o(m,c)}l||a(c,r)}).catch(function(){a(null,r)});function o(c,l){var s=null;if(c.selector)try{s=document.querySelector(c.selector)}catch(T){}if(!s&&c.xpath)try{var m=document.evaluate(c.xpath,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null);s=m.singleNodeValue}catch(T){}if(!s&&c.brokenHref)for(var x=document.querySelectorAll("a"),C=0;C<x.length;C++){var A=x[C],F=A.getAttribute("href")||"";if(F===c.brokenHref||c.brokenHref&&F.indexOf(c.brokenHref.replace(/^https?:\/\/[^/]+/,""))!==-1)if(c.anchorText&&c.anchorText!=="(unknown)"&&c.anchorText!=="(no text)"){var b=(A.innerText||A.textContent||"").trim();if(b.indexOf(c.anchorText.slice(0,30))!==-1){s=A;break}}else{s=A;break}}if(!s&&c.snippet&&c.snippet.length>10){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='<div style="position:fixed;top:16px;right:16px;z-index:999999;background:#1e293b;color:#fff;padding:16px 20px;border-radius:12px;font-family:-apple-system,system-ui,sans-serif;font-size:13px;max-width:400px;box-shadow:0 8px 32px rgba(0,0,0,0.3);"><div style="display:flex;align-items:center;gap:8px;margin-bottom:8px;"><span style="background:#ef4444;color:#fff;font-size:10px;font-weight:700;padding:2px 6px;border-radius:4px;">BROKEN LINK</span><span style="color:#94a3b8;font-size:11px;">meSEO Audit</span></div><div style="font-weight:600;margin-bottom:4px;">'+i(l.title||"Broken internal link")+"</div>"+(c.brokenHref?'<div style="color:#fca5a5;font-size:11px;word-break:break-all;margin-bottom:4px;">\u2192 '+i(c.brokenHref)+" (HTTP "+(c.statusCode||"?")+")</div>":"")+(c.anchorText&&c.anchorText!=="(unknown)"?'<div style="color:#94a3b8;font-size:11px;">Link text: "'+i(c.anchorText)+'"</div>':"")+'<button id="meseo-dismiss" style="margin-top:8px;background:#334155;color:#fff;border:none;padding:6px 12px;border-radius:6px;font-size:11px;cursor:pointer;">Dismiss</button></div>',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='<div style="position:fixed;bottom:16px;right:16px;z-index:999999;background:#1e293b;color:#fff;padding:16px 20px;border-radius:12px;font-family:-apple-system,system-ui,sans-serif;font-size:13px;max-width:420px;box-shadow:0 8px 32px rgba(0,0,0,0.3);"><div style="display:flex;align-items:center;gap:8px;margin-bottom:8px;"><span style="background:#f59e0b;color:#000;font-size:10px;font-weight:700;padding:2px 6px;border-radius:4px;">NOT FOUND</span><span style="color:#94a3b8;font-size:11px;">meSEO Audit</span></div><div style="font-weight:600;margin-bottom:4px;">Could not locate the broken link element on this page.</div><div style="color:#94a3b8;font-size:11px;margin-bottom:4px;">The page may have changed since the audit was run.</div>';if(c&&c.evidence&&c.evidence[0]){var x=c.evidence[0];m+='<div style="background:#0f172a;padding:8px 10px;border-radius:6px;margin-top:8px;font-size:11px;">',x.brokenHref&&(m+='<div style="color:#fca5a5;word-break:break-all;">Broken: '+i(x.brokenHref)+"</div>"),x.anchorText&&x.anchorText!=="(unknown)"&&(m+='<div style="color:#94a3b8;margin-top:2px;">Text: "'+i(x.anchorText)+'"</div>'),x.selector&&(m+='<div style="color:#64748b;margin-top:2px;font-family:monospace;">Selector: '+i(x.selector)+"</div>"),m+="</div>"}m+='<button id="meseo-fallback-dismiss" style="margin-top:8px;background:#334155;color:#fff;border:none;padding:6px 12px;border-radius:6px;font-size:11px;cursor:pointer;">Dismiss</button></div>',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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}})()}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;Q<I.length;Q++){var $=I[Q];if($.complete&&$.naturalWidth===0&&$.getAttribute("src")){var Io=$.getAttribute("src")||"";if(g[Io])continue;E.push({el:$,src:Io})}if(!$.hasAttribute("alt")||$.getAttribute("alt")===""){var Wt=$.getAttribute("src")||"";if(g["alt:"+Wt])continue;g["alt:"+Wt]=!0,L.push({el:$,src:Wt})}}E.length>0&&!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;Gt<Co.length;Gt++){var Oo=Co[Gt],ot=Oo.getAttribute("href")||"";if(!(ot==="#"||ot==="")){var ke=ot.slice(1);if(ke){try{ke=decodeURIComponent(ke)}catch(P){}var Qi=document.getElementById(ke)||document.querySelector('[name="'+m(ke)+'"]');Qi||re.push({el:Oo,href:ot,targetId:ke})}}}return re.length>0&&!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=`<div style="font-size:16px;line-height:1;">\u26A0</div><div style="flex:1;"><div style="font-weight:800;color:#fff;margin-bottom:2px;">Element not found on this page</div><div>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.</div></div>`;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;h<g.length;h++){var k=document.querySelectorAll(g[h]);if(k.length){for(var N=0;N<k.length;N++)v.push(k[N]);break}}if(!v.length)for(var E=document.querySelectorAll(d.selector),L=0;L<E.length;L++)v.push(E[L])}catch(I){return}v.length&&v.forEach(function(I){y(I,d)})}function y(d,v){var g=d.getBoundingClientRect();if(!(g.width===0&&g.height===0)){var h=J(d),k=F.get(h);if(k){k.issues.push(v);var N=X(k.topSeverity),E=X(v.severity);E>N&&(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+='<div style="display:flex;justify-content:flex-end;margin:-4px -4px 4px 0;"><button data-meseo-close-tip="1" style="background:transparent;border:0;color:#64748b;cursor:pointer;font-size:16px;line-height:1;padding:2px 6px;">\xD7</button></div>'),d.forEach(function(I,Q){var $=le(I.severity);Q>0&&(E+='<div style="border-top:1px solid #334155;margin:10px 0 8px;"></div>'),E+='<div style="font-weight:800;color:'+$+';text-transform:uppercase;font-size:9px;letter-spacing:1px;">'+H(I.severity)+" \xB7 "+H(I.category)+'</div><div style="font-weight:700;margin-top:3px;font-size:13px;">'+H(I.title)+'</div><div style="color:#cbd5e1;margin-top:5px;">'+H(I.message)+"</div>",I.context&&I.context.anchorText&&(E+='<div style="color:#94a3b8;margin-top:4px;font-size:11px;">Link text: "'+H(I.context.anchorText)+'"</div>'),I.context&&I.context.redirectChain&&I.context.redirectChain.length&&(E+='<div style="color:#94a3b8;margin-top:4px;font-size:11px;">Chain: '+H(I.context.redirectChain.join(" \u2192 "))+"</div>"),E+='<div style="color:#fde68a;margin-top:8px;border-top:1px dashed #334155;padding-top:6px;font-size:11px;"><strong style="color:#fbbf24;">Fix:</strong> '+H(I.recommendation)+"</div>"}),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?'<div class="meseo-error">'+H(d.error)+"</div>":"",h="",k="";return d&&d.summary&&(h='<div class="meseo-summary"><div class="meseo-count"><span class="meseo-dot" style="background:#ef4444"></span><strong>'+d.summary.critical+'</strong> critical</div><div class="meseo-count"><span class="meseo-dot" style="background:#f59e0b"></span><strong>'+d.summary.warnings+'</strong> warnings</div><div class="meseo-count"><span class="meseo-dot" style="background:#3b82f6"></span><strong>'+d.summary.info+'</strong> info</div><div style="margin-left:auto;color:#64748b;font-size:10px">page-level</div></div>'),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?"":'<span style="color:'+L+';font-weight:700;">#'+(E+1)+"</span>";return'<div class="meseo-issue" style="border-left-color:'+L+'" data-issue-id="'+H(N.id)+'"><div class="meseo-issue-header"><span class="meseo-severity-pill" style="background:'+L+"22;color:"+L+'">'+H(N.severity)+"</span>"+Q+(I?'<span style="font-size:9px;color:#64748b;margin-left:auto;">PAGE-LEVEL</span>':"")+'</div><div class="meseo-issue-title">'+H(N.title)+'</div><div class="meseo-issue-msg">'+H(N.message)+"</div></div>"}).join(""):d&&d.noAudit?k='<div class="meseo-empty">No completed audit found for this brand yet.</div>':g||(k='<div class="meseo-empty">No issues found on this page \u{1F389}<br><span style="font-size:10px;color:#94a3b8">Navigate to another page to scan it too</span></div>'),"<style>"+v+'</style><div class="meseo-panel"><div class="meseo-header"><div class="meseo-logo">m</div><div class="meseo-title">Live Audit \xB7 This Page</div><button class="meseo-btn" data-action="minimise" title="Minimise">\u2212</button><button class="meseo-btn" data-action="close" title="Close">\xD7</button></div>'+g+h+'<div class="meseo-body">'+k+'</div><div class="meseo-footer">meSEO Live Audit \xB7 '+H(window.location.pathname)+"</div></div>"}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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}})()}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<S.length;O++)try{if(new URL(S[O].getAttribute("src"),window.location.href).pathname===y)return S[O]}catch(R){}return null}for(var T=document.querySelectorAll("a[href]"),D=0;D<T.length;D++)try{if(new URL(T[D].getAttribute("href"),window.location.href).pathname===y)return T[D]}catch(R){}return null}function i(f,p){var y=document.createElement("span");y.className="__meseo_broken_badge",y.textContent=String(p.statusCode||404);function S(){var T=f.getBoundingClientRect();y.style.top=T.top+window.scrollY-8+"px",y.style.left=T.left+window.scrollX+T.width-20+"px",y.style.position="absolute"}S(),document.body.appendChild(y);var O=function(){S()};window.addEventListener("scroll",O,{passive:!0,capture:!0}),window.addEventListener("resize",O),f.title="BROKEN LINK \u2192 "+(p.destinationUrl||"unknown")+" (HTTP "+(p.statusCode||404)+`)
Link text: "`+(p.linkText||"")+`"
Section: `+(p.parentSection||"unknown")}var c=[];function l(f){if(!f||f.length===0){b({type:"meseo-inspect-ready",brokenCount:0});return}o();for(var p=null,y=0;y<f.length;y++){var S=f[y],O=a(S);if(O)try{O.setAttribute("data-meseo-broken",String(y)),i(O,S),c[y]={el:O,record:S},p||(p=O)}catch(T){}}if(p)try{p.scrollIntoView({behavior:"smooth",block:"center"})}catch(T){}F(),b({type:"meseo-inspect-ready",brokenCount:f.length})}var s={el:null,label:null,overlay:null,overlayReposition:null};function m(){if(s.el)try{s.el.removeAttribute("data-meseo-focused")}catch(f){}s.label&&s.label.parentNode&&s.label.parentNode.removeChild(s.label),s.overlay&&s.overlay.parentNode&&s.overlay.parentNode.removeChild(s.overlay),s.overlayReposition&&(window.removeEventListener("scroll",s.overlayReposition,!0),window.removeEventListener("resize",s.overlayReposition)),s={el:null,label:null,overlay:null,overlayReposition:null}}function x(f,p){if(m(),!f)return;try{f.setAttribute("data-meseo-focused","1")}catch(R){}var y=document.createElement("span");y.className="__meseo_broken_focus_label",y.textContent="Broken: "+(p.statusCode||404)+" \u2014 "+(p.destinationUrl||"unknown"),document.body.appendChild(y);var S=null,O=(f.tagName||"").toLowerCase();if(O==="img"||p.elementType==="img"){S=document.createElement("div"),S.className="__meseo_broken_img_overlay";var T="";try{T=f.getAttribute("alt")||""}catch(R){}S.textContent=T?"Broken image \u2014 "+T:"Broken image \u2014 "+(p.destinationUrl||"404"),document.body.appendChild(S)}function D(){try{var R=f.getBoundingClientRect(),U=R.top+window.scrollY-28;R.top<40&&(U=R.top+window.scrollY+R.height+6),y.style.top=U+"px",y.style.left=R.left+window.scrollX+"px",S&&(S.style.top=R.top+window.scrollY+"px",S.style.left=R.left+window.scrollX+"px",S.style.width=R.width+"px",S.style.height=R.height+"px")}catch(J){}}D(),window.addEventListener("scroll",D,{passive:!0,capture:!0}),window.addEventListener("resize",D),s={el:f,label:y,overlay:S,overlayReposition:D};try{f.scrollIntoView({behavior:"smooth",block:"center"})}catch(R){}setTimeout(function(){if(s.el===f)try{f.removeAttribute("data-meseo-focused")}catch(R){}},3800)}function C(f){if(!f)return{el:null,record:null};var p=typeof f.index=="number"?f.index:-1;if(p>=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)})})();})();