/* PostHog runs on the real domain only. Localhost and *.vercel.app previews would otherwise fill the project with test traffic and session recordings. Not initialising at all is what also suppresses the recorder and the scroll_depth / time_on_page events: array.js never loads, window.posthog stays undefined, and the guarded capture calls elsewhere become no-ops. Escape hatch for verifying instrumentation before shipping: ?ph_debug=1 in the URL, or localStorage ph_debug = '1'. */ function unflatPosthogAllowed(){ try{ if(location.search.indexOf('ph_debug=1') > -1) return true; }catch(e){} try{ if(window.localStorage && localStorage.getItem('ph_debug') === '1') return true; }catch(e){} var h = location.hostname; if(h === 'localhost' || h === '127.0.0.1' || h === '::1' || h === '[::1]') return false; if(h.length > 11 && h.slice(-11) === '.vercel.app') return false; return true; }