const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-vitals-BizrEd23.js","assets/vendor-misc-z3YbaCT0.js","assets/rolldown-runtime-B1FJdls4.js","assets/vendor-dnd-C1cICjTT.js","assets/vendor-markdown-Db1-9wH7.js"])))=>i.map(i=>d[i]);
import{Ut as e}from"./vendor-misc-z3YbaCT0.js";import{n as t}from"./axisEvents-Dhd0R1o7.js";import{t as n}from"./preload-helper-Bf_JiD2A.js";var r=(void 0)?.trim(),i=(void 0)?.trim()||`https://us.i.posthog.com`,a=!1;function o(){if(!(a||typeof window>`u`)&&r)try{e.init(r,{api_host:i,capture_pageview:!0,capture_pageleave:!0,autocapture:!0,person_profiles:`identified_only`,loaded:e=>{e.register({service:`axis`})}}),a=!0,u(),d(),f()}catch(e){console.warn(`[posthog] init failed`,e)}}function s(t,n){if(a)try{e.capture(t,n)}catch{}}function c(t,n){if(a)try{let r=t instanceof Error?t:Error(String(t));e.capture(`client_error`,{message:r.message,stack:r.stack,...n})}catch{}}function l(e,t){s(`terminal_visible_ms`,{ms:e,...t})}function u(){window.addEventListener(`error`,e=>{c(e.error??e.message,{filename:e.filename,lineno:e.lineno,colno:e.colno})}),window.addEventListener(`unhandledrejection`,e=>{c(e.reason,{kind:`unhandled_rejection`})})}async function d(){try{let e=await n(()=>import(`./web-vitals-BizrEd23.js`),__vite__mapDeps([0,1,2,3,4])),t=e=>{s(`web_vital`,{metric:e.name,value:e.value,rating:e.rating,id:e.id})};e.onLCP?.(t),e.onFCP?.(t),e.onCLS?.(t),e.onINP?.(t),e.onTTFB?.(t)}catch(e){console.warn(`[posthog] web-vitals load failed`,e)}}function f(){let e=window.location.pathname+window.location.search,n=t=>{let n=window.location.pathname+window.location.search;n!==e&&(e=n,s(`$pageview`,{reason:t}))},r=history.pushState,i=history.replaceState;history.pushState=function(...e){let t=r.apply(this,e);return n(`pushState`),t},history.replaceState=function(...e){let t=i.apply(this,e);return n(`replaceState`),t},window.addEventListener(`popstate`,()=>n(`popstate`)),t(`mc:navigate-project`,e=>{s(`axis_navigate_project`,{projectPath:e?.projectPath??null})})}export{o as i,c as n,l as r,s as t};