import{a}from"/build/_shared/chunk-DARZJBW4.js";import{B as R,C as l,a as y,b as E,y as c}from"/build/_shared/chunk-XIQ3C74K.js";import{a as m}from"/build/_shared/chunk-LR6G3KVW.js";import{b as h,d as i}from"/build/_shared/chunk-G5WX4PPA.js";var u=h(n=>{"use strict";var p=E();n.createRoot=p.createRoot,n.hydrateRoot=p.hydrateRoot;var O});R();var t=i(y(),1),f=i(u(),1);var o=i(l(),1);function _(){return(0,t.useEffect)(()=>{a.init("phc_iZ0VLonpOMLBi7z9cljlvKHXODB1udna8oQbtFDlBbQ",{api_host:"https://app.posthog.com"})},[]),null}function C(){return(0,t.useEffect)(()=>{(async()=>{if(!document.cookie.split("; ").find(e=>e.startsWith("timezone="))){let e=Intl.DateTimeFormat().resolvedOptions().timeZone;try{await fetch(m.actions.setTZ,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timezone:e})})}catch(d){console.error("Error setting timezone",d)}}})()},[]),null}(0,t.startTransition)(()=>{(0,f.hydrateRoot)(document,(0,o.jsxs)(t.StrictMode,{children:[(0,o.jsx)(c,{}),(0,o.jsx)(_,{}),(0,o.jsx)(C,{})]}))});
