市场夺宝奇兵
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
4.0 KiB

  1. const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./pages-g-EVEhKa.js","./_plugin-vue_export-helper-DfavQbjy.js","./payload-BX9lTMvN.js","./runtime-core.esm-bundler-Cyv4obHQ.js","./ModuleList-ByxGSHde.js","./vue-router-BxYGFXy-.js","./QuerySelector-iLRAQoow.js","./options-D_MMddT_.js","./search-Bklj8tNk.js","./_...all_-DVz6Qbfk.js","./metric-D2Mof43y.js","./hot-D67q3Up2.js","./module-BFxZWV4q.js","./module-2YhSO2gi.css","./plugins-Ngzgf8uz.js"])))=>i.map(i=>d[i]);
  2. import { Suspense, createBlock, createElementBlock, createTextVNode, createVNode, defineComponent, h, onMounted, openBlock, resolveComponent, withAsyncContext, withCtx } from "./runtime-core.esm-bundler-Cyv4obHQ.js";
  3. import { createApp, createRouter, createWebHashHistory } from "./vue-router-BxYGFXy-.js";
  4. import { __vitePreload, createPinia, isStaticMode, usePayloadStore } from "./payload-BX9lTMvN.js";
  5. (function polyfill() {
  6. const relList = document.createElement("link").relList;
  7. if (relList && relList.supports && relList.supports("modulepreload")) return;
  8. for (const link of document.querySelectorAll("link[rel=\"modulepreload\"]")) processPreload(link);
  9. new MutationObserver((mutations) => {
  10. for (const mutation of mutations) {
  11. if (mutation.type !== "childList") continue;
  12. for (const node of mutation.addedNodes) if (node.tagName === "LINK" && node.rel === "modulepreload") processPreload(node);
  13. }
  14. }).observe(document, {
  15. childList: true,
  16. subtree: true
  17. });
  18. function getFetchOpts(link) {
  19. const fetchOpts = {};
  20. if (link.integrity) fetchOpts.integrity = link.integrity;
  21. if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy;
  22. if (link.crossOrigin === "use-credentials") fetchOpts.credentials = "include";
  23. else if (link.crossOrigin === "anonymous") fetchOpts.credentials = "omit";
  24. else fetchOpts.credentials = "same-origin";
  25. return fetchOpts;
  26. }
  27. function processPreload(link) {
  28. if (link.ep) return;
  29. link.ep = true;
  30. const fetchOpts = getFetchOpts(link);
  31. fetch(link.href, fetchOpts);
  32. }
  33. })();
  34. const routes = [{
  35. path: "/",
  36. name: "/",
  37. component: () => __vitePreload(() => import("./pages-g-EVEhKa.js"), __vite__mapDeps([0,1,2,3,4,5,6,7,8]), import.meta.url),
  38. children: [
  39. {
  40. path: ":all(.*)",
  41. name: "//[...all]",
  42. component: () => __vitePreload(() => import("./_...all_-DVz6Qbfk.js"), __vite__mapDeps([9,1,3]), import.meta.url)
  43. },
  44. {
  45. path: "metric",
  46. name: "//metric",
  47. component: () => __vitePreload(() => import("./metric-D2Mof43y.js"), __vite__mapDeps([10,1,2,3,8,7,6,11]), import.meta.url)
  48. },
  49. {
  50. path: "module",
  51. name: "//module",
  52. component: () => __vitePreload(() => import("./module-BFxZWV4q.js"), __vite__mapDeps([12,1,2,3,4,5,6,7,11,13]), import.meta.url)
  53. },
  54. {
  55. path: "plugins",
  56. name: "//plugins",
  57. component: () => __vitePreload(() => import("./plugins-Ngzgf8uz.js"), __vite__mapDeps([14,1,2,3,6]), import.meta.url)
  58. }
  59. ]
  60. }];
  61. const _hoisted_1 = {
  62. grid: "~ rows-[min-content_1fr]",
  63. size: "h-screen w-screen"
  64. };
  65. var App_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
  66. __name: "App",
  67. async setup(__props) {
  68. let __temp, __restore;
  69. onMounted(() => {
  70. if (isStaticMode) document.title = "Vite Inspect (Production)";
  71. });
  72. const payload = usePayloadStore();
  73. [__temp, __restore] = withAsyncContext(() => payload.init()), await __temp, __restore();
  74. return (_ctx, _cache) => {
  75. const _component_RouterView = resolveComponent("RouterView");
  76. return openBlock(), createElementBlock("main", _hoisted_1, [(openBlock(), createBlock(Suspense, null, {
  77. fallback: withCtx(() => [..._cache[0] || (_cache[0] = [createTextVNode(" Loading... ", -1)])]),
  78. default: withCtx(() => [createVNode(_component_RouterView)]),
  79. _: 1
  80. }))]);
  81. };
  82. }
  83. });
  84. var App_default = App_vue_vue_type_script_setup_true_lang_default;
  85. const app = createApp(() => h(Suspense, {}, {
  86. default: () => h(App_default),
  87. fallback: "Loading..."
  88. }));
  89. const router = createRouter({
  90. routes,
  91. history: createWebHashHistory()
  92. });
  93. const pinia = createPinia();
  94. app.use(pinia);
  95. app.use(router);
  96. app.mount("#app");