import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'
import { initVisibilityListener } from './composables/useVisibility.js'

// Initialize visibility listener for energy saving (pause animations when tab hidden)
initVisibilityListener()

import './style.css'
import '@milkdown/crepe/theme/common/style.css'
import '@milkdown/crepe/theme/frame.css'

const app = createApp(App)
app.use(createPinia())
app.use(router)
app.mount('#app')

