import { createApp } from "vue";
import App from "./App.vue";
import setupPlugins from "@/plugins";
// 本地SVG图标
import "virtual:svg-icons-register";
// 暗黑主题样式
import "element-plus/theme-chalk/dark/css-vars.css";
// 暗黑模式自定义变量
import "@/styles/dark/css-vars.css";
import "@/styles/index.scss";
//辅助工具类
import "@/styles/util.scss";
import "uno.css";
// 自动为某些默认事件（如 touchstart、wheel 等）添加 { passive: true },提升滚动性能并消除控制台的非被动事件监听警告
import "default-passive-events";

// vue-amp初始化
// import { initAMapApiLoader } from "@vuemap/vue-amap";
import "@vuemap/vue-amap/dist/style.css";
// initAMapApiLoader({
//   key: "6033c97e67bf2e9ceac306e1a3fa35f8",
//   securityJsCode: "0547b69252ef0ed14e11f5c4ac152f07",
// });

const app = createApp(App);
// 注册插件
app.use(setupPlugins);
app.mount("#app");
