server.mjs 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585
  1. import { hasInjectionContext, inject, version, unref, defineComponent, h, computed, ref, provide, shallowReactive, watch, Suspense, nextTick, Fragment, Transition, getCurrentInstance, mergeProps, useSSRContext, createApp, effectScope, reactive, getCurrentScope, withCtx, createVNode, onErrorCaptured, onServerPrefetch, resolveDynamicComponent, toRef, defineAsyncComponent, shallowRef, isReadonly, isRef, isShallow, isReactive, toRaw } from 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/vue/index.mjs';
  2. import { $fetch } from 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/ofetch/dist/node.mjs';
  3. import { b as baseURL } from '../_/renderer.mjs';
  4. import { createHooks } from 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/hookable/dist/index.mjs';
  5. import { getContext } from 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/unctx/dist/index.mjs';
  6. import { sanitizeStatusCode, createError as createError$1, appendHeader } from 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/h3/dist/index.mjs';
  7. import { getActiveHead, CapoPlugin } from 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/unhead/dist/index.mjs';
  8. import { defineHeadPlugin } from 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/@unhead/shared/dist/index.mjs';
  9. import { useRoute as useRoute$1, RouterView, createMemoryHistory, createRouter, START_LOCATION } from 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/vue-router/dist/vue-router.node.mjs';
  10. import { toRouteMatcher, createRouter as createRouter$1 } from 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/radix3/dist/index.mjs';
  11. import { defu } from 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/defu/dist/defu.mjs';
  12. import { hasProtocol, isScriptProtocol, joinURL, withQuery } from 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/ufo/dist/index.mjs';
  13. import { createPinia } from 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/pinia/dist/pinia.prod.cjs';
  14. import { ssrRenderAttrs, ssrRenderComponent, ssrRenderAttr, ssrRenderSuspense, ssrRenderVNode } from 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/vue/server-renderer/index.mjs';
  15. import { ElPopover } from 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/element-plus/es/index.mjs';
  16. import 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/vue-bundle-renderer/dist/runtime.mjs';
  17. import 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/devalue/index.js';
  18. import 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/@unhead/ssr/dist/index.mjs';
  19. import '../_/nitro.mjs';
  20. import 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/destr/dist/index.mjs';
  21. import 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/unenv/runtime/fetch/index.mjs';
  22. import 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/klona/dist/index.mjs';
  23. import 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/scule/dist/index.mjs';
  24. import 'node:fs';
  25. import 'node:url';
  26. import 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/pathe/dist/index.mjs';
  27. import 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/ohash/dist/index.mjs';
  28. import 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/unstorage/dist/index.mjs';
  29. import 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs.mjs';
  30. import 'file:///D:/dev/nuxt/sannongzixunwang_web/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js';
  31. import 'file://D:/dev/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs-lite.mjs';
  32. if (!globalThis.$fetch) {
  33. globalThis.$fetch = $fetch.create({
  34. baseURL: baseURL()
  35. });
  36. }
  37. const appLayoutTransition = false;
  38. const appPageTransition = false;
  39. const appKeepalive = false;
  40. const nuxtLinkDefaults = { "componentName": "NuxtLink", "prefetch": true, "prefetchOn": { "visibility": true } };
  41. const appId = "nuxt-app";
  42. function getNuxtAppCtx(id = appId) {
  43. return getContext(id, {
  44. asyncContext: false
  45. });
  46. }
  47. const NuxtPluginIndicator = "__nuxt_plugin";
  48. function createNuxtApp(options) {
  49. var _a;
  50. let hydratingCount = 0;
  51. const nuxtApp = {
  52. _id: options.id || appId || "nuxt-app",
  53. _scope: effectScope(),
  54. provide: undefined,
  55. globalName: "nuxt",
  56. versions: {
  57. get nuxt() {
  58. return "3.15.2";
  59. },
  60. get vue() {
  61. return nuxtApp.vueApp.version;
  62. }
  63. },
  64. payload: shallowReactive({
  65. ...((_a = options.ssrContext) == null ? undefined : _a.payload) || {},
  66. data: shallowReactive({}),
  67. state: reactive({}),
  68. once: /* @__PURE__ */ new Set(),
  69. _errors: shallowReactive({})
  70. }),
  71. static: {
  72. data: {}
  73. },
  74. runWithContext(fn) {
  75. if (nuxtApp._scope.active && !getCurrentScope()) {
  76. return nuxtApp._scope.run(() => callWithNuxt(nuxtApp, fn));
  77. }
  78. return callWithNuxt(nuxtApp, fn);
  79. },
  80. isHydrating: false,
  81. deferHydration() {
  82. if (!nuxtApp.isHydrating) {
  83. return () => {
  84. };
  85. }
  86. hydratingCount++;
  87. let called = false;
  88. return () => {
  89. if (called) {
  90. return;
  91. }
  92. called = true;
  93. hydratingCount--;
  94. if (hydratingCount === 0) {
  95. nuxtApp.isHydrating = false;
  96. return nuxtApp.callHook("app:suspense:resolve");
  97. }
  98. };
  99. },
  100. _asyncDataPromises: {},
  101. _asyncData: shallowReactive({}),
  102. _payloadRevivers: {},
  103. ...options
  104. };
  105. {
  106. nuxtApp.payload.serverRendered = true;
  107. }
  108. if (nuxtApp.ssrContext) {
  109. nuxtApp.payload.path = nuxtApp.ssrContext.url;
  110. nuxtApp.ssrContext.nuxt = nuxtApp;
  111. nuxtApp.ssrContext.payload = nuxtApp.payload;
  112. nuxtApp.ssrContext.config = {
  113. public: nuxtApp.ssrContext.runtimeConfig.public,
  114. app: nuxtApp.ssrContext.runtimeConfig.app
  115. };
  116. }
  117. nuxtApp.hooks = createHooks();
  118. nuxtApp.hook = nuxtApp.hooks.hook;
  119. {
  120. const contextCaller = async function(hooks, args) {
  121. for (const hook of hooks) {
  122. await nuxtApp.runWithContext(() => hook(...args));
  123. }
  124. };
  125. nuxtApp.hooks.callHook = (name, ...args) => nuxtApp.hooks.callHookWith(contextCaller, name, ...args);
  126. }
  127. nuxtApp.callHook = nuxtApp.hooks.callHook;
  128. nuxtApp.provide = (name, value) => {
  129. const $name = "$" + name;
  130. defineGetter(nuxtApp, $name, value);
  131. defineGetter(nuxtApp.vueApp.config.globalProperties, $name, value);
  132. };
  133. defineGetter(nuxtApp.vueApp, "$nuxt", nuxtApp);
  134. defineGetter(nuxtApp.vueApp.config.globalProperties, "$nuxt", nuxtApp);
  135. const runtimeConfig = options.ssrContext.runtimeConfig;
  136. nuxtApp.provide("config", runtimeConfig);
  137. return nuxtApp;
  138. }
  139. function registerPluginHooks(nuxtApp, plugin2) {
  140. if (plugin2.hooks) {
  141. nuxtApp.hooks.addHooks(plugin2.hooks);
  142. }
  143. }
  144. async function applyPlugin(nuxtApp, plugin2) {
  145. if (typeof plugin2 === "function") {
  146. const { provide: provide2 } = await nuxtApp.runWithContext(() => plugin2(nuxtApp)) || {};
  147. if (provide2 && typeof provide2 === "object") {
  148. for (const key in provide2) {
  149. nuxtApp.provide(key, provide2[key]);
  150. }
  151. }
  152. }
  153. }
  154. async function applyPlugins(nuxtApp, plugins2) {
  155. var _a, _b, _c, _d;
  156. const resolvedPlugins = [];
  157. const unresolvedPlugins = [];
  158. const parallels = [];
  159. const errors = [];
  160. let promiseDepth = 0;
  161. async function executePlugin(plugin2) {
  162. var _a2;
  163. const unresolvedPluginsForThisPlugin = ((_a2 = plugin2.dependsOn) == null ? undefined : _a2.filter((name) => plugins2.some((p) => p._name === name) && !resolvedPlugins.includes(name))) ?? [];
  164. if (unresolvedPluginsForThisPlugin.length > 0) {
  165. unresolvedPlugins.push([new Set(unresolvedPluginsForThisPlugin), plugin2]);
  166. } else {
  167. const promise = applyPlugin(nuxtApp, plugin2).then(async () => {
  168. if (plugin2._name) {
  169. resolvedPlugins.push(plugin2._name);
  170. await Promise.all(unresolvedPlugins.map(async ([dependsOn, unexecutedPlugin]) => {
  171. if (dependsOn.has(plugin2._name)) {
  172. dependsOn.delete(plugin2._name);
  173. if (dependsOn.size === 0) {
  174. promiseDepth++;
  175. await executePlugin(unexecutedPlugin);
  176. }
  177. }
  178. }));
  179. }
  180. });
  181. if (plugin2.parallel) {
  182. parallels.push(promise.catch((e) => errors.push(e)));
  183. } else {
  184. await promise;
  185. }
  186. }
  187. }
  188. for (const plugin2 of plugins2) {
  189. if (((_a = nuxtApp.ssrContext) == null ? undefined : _a.islandContext) && ((_b = plugin2.env) == null ? undefined : _b.islands) === false) {
  190. continue;
  191. }
  192. registerPluginHooks(nuxtApp, plugin2);
  193. }
  194. for (const plugin2 of plugins2) {
  195. if (((_c = nuxtApp.ssrContext) == null ? undefined : _c.islandContext) && ((_d = plugin2.env) == null ? undefined : _d.islands) === false) {
  196. continue;
  197. }
  198. await executePlugin(plugin2);
  199. }
  200. await Promise.all(parallels);
  201. if (promiseDepth) {
  202. for (let i = 0; i < promiseDepth; i++) {
  203. await Promise.all(parallels);
  204. }
  205. }
  206. if (errors.length) {
  207. throw errors[0];
  208. }
  209. }
  210. // @__NO_SIDE_EFFECTS__
  211. function defineNuxtPlugin(plugin2) {
  212. if (typeof plugin2 === "function") {
  213. return plugin2;
  214. }
  215. const _name = plugin2._name || plugin2.name;
  216. delete plugin2.name;
  217. return Object.assign(plugin2.setup || (() => {
  218. }), plugin2, { [NuxtPluginIndicator]: true, _name });
  219. }
  220. function callWithNuxt(nuxt, setup, args) {
  221. const fn = () => setup();
  222. const nuxtAppCtx = getNuxtAppCtx(nuxt._id);
  223. {
  224. return nuxt.vueApp.runWithContext(() => nuxtAppCtx.callAsync(nuxt, fn));
  225. }
  226. }
  227. function tryUseNuxtApp(id) {
  228. var _a;
  229. let nuxtAppInstance;
  230. if (hasInjectionContext()) {
  231. nuxtAppInstance = (_a = getCurrentInstance()) == null ? undefined : _a.appContext.app.$nuxt;
  232. }
  233. nuxtAppInstance = nuxtAppInstance || getNuxtAppCtx(id).tryUse();
  234. return nuxtAppInstance || null;
  235. }
  236. function useNuxtApp(id) {
  237. const nuxtAppInstance = tryUseNuxtApp(id);
  238. if (!nuxtAppInstance) {
  239. {
  240. throw new Error("[nuxt] instance unavailable");
  241. }
  242. }
  243. return nuxtAppInstance;
  244. }
  245. // @__NO_SIDE_EFFECTS__
  246. function useRuntimeConfig(_event) {
  247. return useNuxtApp().$config;
  248. }
  249. function defineGetter(obj, key, val) {
  250. Object.defineProperty(obj, key, { get: () => val });
  251. }
  252. const LayoutMetaSymbol = Symbol("layout-meta");
  253. const PageRouteSymbol = Symbol("route");
  254. const useRouter = () => {
  255. var _a;
  256. return (_a = useNuxtApp()) == null ? undefined : _a.$router;
  257. };
  258. const useRoute = () => {
  259. if (hasInjectionContext()) {
  260. return inject(PageRouteSymbol, useNuxtApp()._route);
  261. }
  262. return useNuxtApp()._route;
  263. };
  264. // @__NO_SIDE_EFFECTS__
  265. function defineNuxtRouteMiddleware(middleware) {
  266. return middleware;
  267. }
  268. const isProcessingMiddleware = () => {
  269. try {
  270. if (useNuxtApp()._processingMiddleware) {
  271. return true;
  272. }
  273. } catch {
  274. return false;
  275. }
  276. return false;
  277. };
  278. const URL_QUOTE_RE = /"/g;
  279. const navigateTo = (to, options) => {
  280. if (!to) {
  281. to = "/";
  282. }
  283. const toPath = typeof to === "string" ? to : "path" in to ? resolveRouteObject(to) : useRouter().resolve(to).href;
  284. const isExternalHost = hasProtocol(toPath, { acceptRelative: true });
  285. const isExternal = (options == null ? undefined : options.external) || isExternalHost;
  286. if (isExternal) {
  287. if (!(options == null ? undefined : options.external)) {
  288. throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");
  289. }
  290. const { protocol } = new URL(toPath, "http://localhost");
  291. if (protocol && isScriptProtocol(protocol)) {
  292. throw new Error(`Cannot navigate to a URL with '${protocol}' protocol.`);
  293. }
  294. }
  295. const inMiddleware = isProcessingMiddleware();
  296. const router = useRouter();
  297. const nuxtApp = useNuxtApp();
  298. {
  299. if (nuxtApp.ssrContext) {
  300. const fullPath = typeof to === "string" || isExternal ? toPath : router.resolve(to).fullPath || "/";
  301. const location2 = isExternal ? toPath : joinURL((/* @__PURE__ */ useRuntimeConfig()).app.baseURL, fullPath);
  302. const redirect = async function(response) {
  303. await nuxtApp.callHook("app:redirected");
  304. const encodedLoc = location2.replace(URL_QUOTE_RE, "%22");
  305. const encodedHeader = encodeURL(location2, isExternalHost);
  306. nuxtApp.ssrContext._renderResponse = {
  307. statusCode: sanitizeStatusCode((options == null ? undefined : options.redirectCode) || 302, 302),
  308. body: `<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0; url=${encodedLoc}"></head></html>`,
  309. headers: { location: encodedHeader }
  310. };
  311. return response;
  312. };
  313. if (!isExternal && inMiddleware) {
  314. router.afterEach((final) => final.fullPath === fullPath ? redirect(false) : undefined);
  315. return to;
  316. }
  317. return redirect(!inMiddleware ? undefined : (
  318. /* abort route navigation */
  319. false
  320. ));
  321. }
  322. }
  323. if (isExternal) {
  324. nuxtApp._scope.stop();
  325. if (options == null ? undefined : options.replace) {
  326. (undefined).replace(toPath);
  327. } else {
  328. (undefined).href = toPath;
  329. }
  330. if (inMiddleware) {
  331. if (!nuxtApp.isHydrating) {
  332. return false;
  333. }
  334. return new Promise(() => {
  335. });
  336. }
  337. return Promise.resolve();
  338. }
  339. return (options == null ? undefined : options.replace) ? router.replace(to) : router.push(to);
  340. };
  341. function resolveRouteObject(to) {
  342. return withQuery(to.path || "", to.query || {}) + (to.hash || "");
  343. }
  344. function encodeURL(location2, isExternalHost = false) {
  345. const url = new URL(location2, "http://localhost");
  346. if (!isExternalHost) {
  347. return url.pathname + url.search + url.hash;
  348. }
  349. if (location2.startsWith("//")) {
  350. return url.toString().replace(url.protocol, "");
  351. }
  352. return url.toString();
  353. }
  354. const NUXT_ERROR_SIGNATURE = "__nuxt_error";
  355. const useError = () => toRef(useNuxtApp().payload, "error");
  356. const showError = (error) => {
  357. const nuxtError = createError(error);
  358. try {
  359. const nuxtApp = useNuxtApp();
  360. const error2 = useError();
  361. if (false) ;
  362. error2.value = error2.value || nuxtError;
  363. } catch {
  364. throw nuxtError;
  365. }
  366. return nuxtError;
  367. };
  368. const isNuxtError = (error) => !!error && typeof error === "object" && NUXT_ERROR_SIGNATURE in error;
  369. const createError = (error) => {
  370. const nuxtError = createError$1(error);
  371. Object.defineProperty(nuxtError, NUXT_ERROR_SIGNATURE, {
  372. value: true,
  373. configurable: false,
  374. writable: false
  375. });
  376. return nuxtError;
  377. };
  378. version[0] === "3";
  379. function resolveUnref(r) {
  380. return typeof r === "function" ? r() : unref(r);
  381. }
  382. function resolveUnrefHeadInput(ref2) {
  383. if (ref2 instanceof Promise || ref2 instanceof Date || ref2 instanceof RegExp)
  384. return ref2;
  385. const root = resolveUnref(ref2);
  386. if (!ref2 || !root)
  387. return root;
  388. if (Array.isArray(root))
  389. return root.map((r) => resolveUnrefHeadInput(r));
  390. if (typeof root === "object") {
  391. const resolved = {};
  392. for (const k in root) {
  393. if (!Object.prototype.hasOwnProperty.call(root, k)) {
  394. continue;
  395. }
  396. if (k === "titleTemplate" || k[0] === "o" && k[1] === "n") {
  397. resolved[k] = unref(root[k]);
  398. continue;
  399. }
  400. resolved[k] = resolveUnrefHeadInput(root[k]);
  401. }
  402. return resolved;
  403. }
  404. return root;
  405. }
  406. defineHeadPlugin({
  407. hooks: {
  408. "entries:resolve": (ctx) => {
  409. for (const entry2 of ctx.entries)
  410. entry2.resolvedInput = resolveUnrefHeadInput(entry2.input);
  411. }
  412. }
  413. });
  414. const headSymbol = "usehead";
  415. const _global = typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
  416. const globalKey$1 = "__unhead_injection_handler__";
  417. function setHeadInjectionHandler(handler) {
  418. _global[globalKey$1] = handler;
  419. }
  420. function injectHead() {
  421. if (globalKey$1 in _global) {
  422. return _global[globalKey$1]();
  423. }
  424. const head = inject(headSymbol);
  425. if (!head && "prerender" !== "production")
  426. console.warn("Unhead is missing Vue context, falling back to shared context. This may have unexpected results.");
  427. return head || getActiveHead();
  428. }
  429. [CapoPlugin({ track: true })];
  430. const unhead_KgADcZ0jPj = /* @__PURE__ */ defineNuxtPlugin({
  431. name: "nuxt:head",
  432. enforce: "pre",
  433. setup(nuxtApp) {
  434. const head = nuxtApp.ssrContext.head;
  435. setHeadInjectionHandler(
  436. // need a fresh instance of the nuxt app to avoid parallel requests interfering with each other
  437. () => useNuxtApp().vueApp._context.provides.usehead
  438. );
  439. nuxtApp.vueApp.use(head);
  440. }
  441. });
  442. function createContext(opts = {}) {
  443. let currentInstance;
  444. let isSingleton = false;
  445. const checkConflict = (instance) => {
  446. if (currentInstance && currentInstance !== instance) {
  447. throw new Error("Context conflict");
  448. }
  449. };
  450. let als;
  451. if (opts.asyncContext) {
  452. const _AsyncLocalStorage = opts.AsyncLocalStorage || globalThis.AsyncLocalStorage;
  453. if (_AsyncLocalStorage) {
  454. als = new _AsyncLocalStorage();
  455. } else {
  456. console.warn("[unctx] `AsyncLocalStorage` is not provided.");
  457. }
  458. }
  459. const _getCurrentInstance = () => {
  460. if (als) {
  461. const instance = als.getStore();
  462. if (instance !== undefined) {
  463. return instance;
  464. }
  465. }
  466. return currentInstance;
  467. };
  468. return {
  469. use: () => {
  470. const _instance = _getCurrentInstance();
  471. if (_instance === undefined) {
  472. throw new Error("Context is not available");
  473. }
  474. return _instance;
  475. },
  476. tryUse: () => {
  477. return _getCurrentInstance();
  478. },
  479. set: (instance, replace) => {
  480. if (!replace) {
  481. checkConflict(instance);
  482. }
  483. currentInstance = instance;
  484. isSingleton = true;
  485. },
  486. unset: () => {
  487. currentInstance = undefined;
  488. isSingleton = false;
  489. },
  490. call: (instance, callback) => {
  491. checkConflict(instance);
  492. currentInstance = instance;
  493. try {
  494. return als ? als.run(instance, callback) : callback();
  495. } finally {
  496. if (!isSingleton) {
  497. currentInstance = undefined;
  498. }
  499. }
  500. },
  501. async callAsync(instance, callback) {
  502. currentInstance = instance;
  503. const onRestore = () => {
  504. currentInstance = instance;
  505. };
  506. const onLeave = () => currentInstance === instance ? onRestore : undefined;
  507. asyncHandlers.add(onLeave);
  508. try {
  509. const r = als ? als.run(instance, callback) : callback();
  510. if (!isSingleton) {
  511. currentInstance = void 0;
  512. }
  513. return await r;
  514. } finally {
  515. asyncHandlers.delete(onLeave);
  516. }
  517. }
  518. };
  519. }
  520. function createNamespace(defaultOpts = {}) {
  521. const contexts = {};
  522. return {
  523. get(key, opts = {}) {
  524. if (!contexts[key]) {
  525. contexts[key] = createContext({ ...defaultOpts, ...opts });
  526. }
  527. return contexts[key];
  528. }
  529. };
  530. }
  531. const _globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : {};
  532. const globalKey = "__unctx__";
  533. _globalThis[globalKey] || (_globalThis[globalKey] = createNamespace());
  534. const asyncHandlersKey = "__unctx_async_handlers__";
  535. const asyncHandlers = _globalThis[asyncHandlersKey] || (_globalThis[asyncHandlersKey] = /* @__PURE__ */ new Set());
  536. function executeAsync(function_) {
  537. const restores = [];
  538. for (const leaveHandler of asyncHandlers) {
  539. const restore2 = leaveHandler();
  540. if (restore2) {
  541. restores.push(restore2);
  542. }
  543. }
  544. const restore = () => {
  545. for (const restore2 of restores) {
  546. restore2();
  547. }
  548. };
  549. let awaitable = function_();
  550. if (awaitable && typeof awaitable === "object" && "catch" in awaitable) {
  551. awaitable = awaitable.catch((error) => {
  552. restore();
  553. throw error;
  554. });
  555. }
  556. return [awaitable, restore];
  557. }
  558. const ROUTE_KEY_PARENTHESES_RE$1 = /(:\w+)\([^)]+\)/g;
  559. const ROUTE_KEY_SYMBOLS_RE$1 = /(:\w+)[?+*]/g;
  560. const ROUTE_KEY_NORMAL_RE$1 = /:\w+/g;
  561. const interpolatePath = (route, match) => {
  562. return match.path.replace(ROUTE_KEY_PARENTHESES_RE$1, "$1").replace(ROUTE_KEY_SYMBOLS_RE$1, "$1").replace(ROUTE_KEY_NORMAL_RE$1, (r) => {
  563. var _a;
  564. return ((_a = route.params[r.slice(1)]) == null ? undefined : _a.toString()) || "";
  565. });
  566. };
  567. const generateRouteKey$1 = (routeProps, override) => {
  568. const matchedRoute = routeProps.route.matched.find((m) => {
  569. var _a;
  570. return ((_a = m.components) == null ? undefined : _a.default) === routeProps.Component.type;
  571. });
  572. const source = override ?? (matchedRoute == null ? undefined : matchedRoute.meta.key) ?? (matchedRoute && interpolatePath(routeProps.route, matchedRoute));
  573. return typeof source === "function" ? source(routeProps.route) : source;
  574. };
  575. const wrapInKeepAlive = (props, children) => {
  576. return { default: () => children };
  577. };
  578. function toArray$1(value) {
  579. return Array.isArray(value) ? value : [value];
  580. }
  581. async function getRouteRules(arg) {
  582. const path = typeof arg === "string" ? arg : arg.path;
  583. {
  584. useNuxtApp().ssrContext._preloadManifest = true;
  585. const _routeRulesMatcher = toRouteMatcher(
  586. createRouter$1({ routes: (/* @__PURE__ */ useRuntimeConfig()).nitro.routeRules })
  587. );
  588. return defu({}, ..._routeRulesMatcher.matchAll(path).reverse());
  589. }
  590. }
  591. const __nuxt_page_meta$2 = {
  592. middleware: "auth"
  593. };
  594. const __nuxt_page_meta$1 = {
  595. middleware: "auth"
  596. };
  597. const __nuxt_page_meta = {
  598. middleware: "auth"
  599. };
  600. function handleHotUpdate(_router, _generateRoutes) {
  601. }
  602. const _routes = [
  603. {
  604. name: "advertising-adDetail",
  605. path: "/advertising/adDetail",
  606. component: () => import('./adDetail-JAkO5aWw.mjs')
  607. },
  608. {
  609. name: "advertising",
  610. path: "/advertising",
  611. component: () => import('./index-BpT1pGsO.mjs')
  612. },
  613. {
  614. name: "index",
  615. path: "/",
  616. component: () => import('./index-FkuY0UIE.mjs')
  617. },
  618. {
  619. name: "login",
  620. path: "/login",
  621. component: () => import('./login-CBBpr7Ja.mjs')
  622. },
  623. {
  624. name: "newsDetail-id",
  625. path: "/newsDetail/:id()",
  626. component: () => import('./_id_-BtYEzUt1.mjs')
  627. },
  628. {
  629. name: "newsList-id",
  630. path: "/newsList/:id()",
  631. meta: __nuxt_page_meta$2,
  632. component: () => import('./_id_-D-DR0tzT.mjs')
  633. },
  634. {
  635. name: "primaryNavigation-id",
  636. path: "/primaryNavigation/:id()",
  637. component: () => import('./_id_-DrOqi7fq.mjs')
  638. },
  639. {
  640. name: "register",
  641. path: "/register",
  642. component: () => import('./register-DR18Dcar.mjs')
  643. },
  644. {
  645. name: "search-search",
  646. path: "/search/search",
  647. meta: __nuxt_page_meta$1,
  648. component: () => import('./search-CoKbz5rE.mjs')
  649. },
  650. {
  651. name: "speciaArticle-id",
  652. path: "/speciaArticle/:id()",
  653. component: () => import('./_id_-BDCVWBC1.mjs')
  654. },
  655. {
  656. name: "specialList-id",
  657. path: "/specialList/:id()",
  658. meta: __nuxt_page_meta,
  659. component: () => import('./_id_-BawiBl1N.mjs')
  660. },
  661. {
  662. name: "topic-id",
  663. path: "/topic/:id()",
  664. component: () => import('./_id_-DjOYAtbM.mjs')
  665. },
  666. {
  667. name: "topic",
  668. path: "/topic",
  669. component: () => import('./index-CLGwzU5C.mjs')
  670. },
  671. {
  672. name: "user-about",
  673. path: "/user/about",
  674. component: () => import('./about-BngT2DDj.mjs')
  675. }
  676. ];
  677. const _wrapIf = (component, props, slots) => {
  678. props = props === true ? {} : props;
  679. return { default: () => {
  680. var _a;
  681. return props ? h(component, props, slots) : (_a = slots.default) == null ? undefined : _a.call(slots);
  682. } };
  683. };
  684. const ROUTE_KEY_PARENTHESES_RE = /(:\w+)\([^)]+\)/g;
  685. const ROUTE_KEY_SYMBOLS_RE = /(:\w+)[?+*]/g;
  686. const ROUTE_KEY_NORMAL_RE = /:\w+/g;
  687. function generateRouteKey(route) {
  688. const source = (route == null ? undefined : route.meta.key) ?? route.path.replace(ROUTE_KEY_PARENTHESES_RE, "$1").replace(ROUTE_KEY_SYMBOLS_RE, "$1").replace(ROUTE_KEY_NORMAL_RE, (r) => {
  689. var _a;
  690. return ((_a = route.params[r.slice(1)]) == null ? undefined : _a.toString()) || "";
  691. });
  692. return typeof source === "function" ? source(route) : source;
  693. }
  694. function isChangingPage(to, from) {
  695. if (to === from || from === START_LOCATION) {
  696. return false;
  697. }
  698. if (generateRouteKey(to) !== generateRouteKey(from)) {
  699. return true;
  700. }
  701. const areComponentsSame = to.matched.every(
  702. (comp, index) => {
  703. var _a, _b;
  704. return comp.components && comp.components.default === ((_b = (_a = from.matched[index]) == null ? undefined : _a.components) == null ? undefined : _b.default);
  705. }
  706. );
  707. if (areComponentsSame) {
  708. return false;
  709. }
  710. return true;
  711. }
  712. const routerOptions0 = {
  713. scrollBehavior(to, from, savedPosition) {
  714. var _a;
  715. const nuxtApp = useNuxtApp();
  716. const behavior = ((_a = useRouter().options) == null ? undefined : _a.scrollBehaviorType) ?? "auto";
  717. let position = savedPosition || undefined;
  718. const routeAllowsScrollToTop = typeof to.meta.scrollToTop === "function" ? to.meta.scrollToTop(to, from) : to.meta.scrollToTop;
  719. if (!position && from && to && routeAllowsScrollToTop !== false && isChangingPage(to, from)) {
  720. position = { left: 0, top: 0 };
  721. }
  722. if (to.path === from.path) {
  723. if (from.hash && !to.hash) {
  724. return { left: 0, top: 0 };
  725. }
  726. if (to.hash) {
  727. return { el: to.hash, top: _getHashElementScrollMarginTop(to.hash), behavior };
  728. }
  729. return false;
  730. }
  731. const hasTransition = (route) => !!(route.meta.pageTransition ?? appPageTransition);
  732. const hookToWait = hasTransition(from) && hasTransition(to) ? "page:transition:finish" : "page:finish";
  733. return new Promise((resolve) => {
  734. nuxtApp.hooks.hookOnce(hookToWait, async () => {
  735. await new Promise((resolve2) => setTimeout(resolve2, 0));
  736. if (to.hash) {
  737. position = { el: to.hash, top: _getHashElementScrollMarginTop(to.hash), behavior };
  738. }
  739. resolve(position);
  740. });
  741. });
  742. }
  743. };
  744. function _getHashElementScrollMarginTop(selector) {
  745. try {
  746. const elem = (void 0).querySelector(selector);
  747. if (elem) {
  748. return (Number.parseFloat(getComputedStyle(elem).scrollMarginTop) || 0) + (Number.parseFloat(getComputedStyle((void 0).documentElement).scrollPaddingTop) || 0);
  749. }
  750. } catch {
  751. }
  752. return 0;
  753. }
  754. const configRouterOptions = {
  755. hashMode: false,
  756. scrollBehaviorType: "auto"
  757. };
  758. const routerOptions = {
  759. ...configRouterOptions,
  760. ...routerOptions0
  761. };
  762. const validate = /* @__PURE__ */ defineNuxtRouteMiddleware(async (to) => {
  763. var _a;
  764. let __temp, __restore;
  765. if (!((_a = to.meta) == null ? undefined : _a.validate)) {
  766. return;
  767. }
  768. const nuxtApp = useNuxtApp();
  769. const router = useRouter();
  770. const result = ([__temp, __restore] = executeAsync(() => Promise.resolve(to.meta.validate(to))), __temp = await __temp, __restore(), __temp);
  771. if (result === true) {
  772. return;
  773. }
  774. const error = createError({
  775. statusCode: result && result.statusCode || 404,
  776. statusMessage: result && result.statusMessage || `Page Not Found: ${to.fullPath}`,
  777. data: {
  778. path: to.fullPath
  779. }
  780. });
  781. const unsub = router.beforeResolve((final) => {
  782. unsub();
  783. if (final === to) {
  784. const unsub2 = router.afterEach(async () => {
  785. unsub2();
  786. await nuxtApp.runWithContext(() => showError(error));
  787. });
  788. return false;
  789. }
  790. });
  791. });
  792. const manifest_45route_45rule = /* @__PURE__ */ defineNuxtRouteMiddleware(async (to) => {
  793. {
  794. return;
  795. }
  796. });
  797. const globalMiddleware = [
  798. validate,
  799. manifest_45route_45rule
  800. ];
  801. const namedMiddleware = {
  802. auth: () => import('./auth-DRRsgHvx.mjs')
  803. };
  804. const plugin = /* @__PURE__ */ defineNuxtPlugin({
  805. name: "nuxt:router",
  806. enforce: "pre",
  807. async setup(nuxtApp) {
  808. var _a, _b, _c;
  809. let __temp, __restore;
  810. let routerBase = (/* @__PURE__ */ useRuntimeConfig()).app.baseURL;
  811. const history = ((_a = routerOptions.history) == null ? undefined : _a.call(routerOptions, routerBase)) ?? createMemoryHistory(routerBase);
  812. const routes2 = routerOptions.routes ? ([__temp, __restore] = executeAsync(() => routerOptions.routes(_routes)), __temp = await __temp, __restore(), __temp) ?? _routes : _routes;
  813. let startPosition;
  814. const router = createRouter({
  815. ...routerOptions,
  816. scrollBehavior: (to, from, savedPosition) => {
  817. if (from === START_LOCATION) {
  818. startPosition = savedPosition;
  819. return;
  820. }
  821. if (routerOptions.scrollBehavior) {
  822. router.options.scrollBehavior = routerOptions.scrollBehavior;
  823. if ("scrollRestoration" in (undefined).history) {
  824. const unsub = router.beforeEach(() => {
  825. unsub();
  826. (undefined).history.scrollRestoration = "manual";
  827. });
  828. }
  829. return routerOptions.scrollBehavior(to, START_LOCATION, startPosition || savedPosition);
  830. }
  831. },
  832. history,
  833. routes: routes2
  834. });
  835. handleHotUpdate(router, routerOptions.routes ? routerOptions.routes : (routes22) => routes22);
  836. nuxtApp.vueApp.use(router);
  837. const previousRoute = shallowRef(router.currentRoute.value);
  838. router.afterEach((_to, from) => {
  839. previousRoute.value = from;
  840. });
  841. Object.defineProperty(nuxtApp.vueApp.config.globalProperties, "previousRoute", {
  842. get: () => previousRoute.value
  843. });
  844. const initialURL = nuxtApp.ssrContext.url;
  845. const _route = shallowRef(router.currentRoute.value);
  846. const syncCurrentRoute = () => {
  847. _route.value = router.currentRoute.value;
  848. };
  849. nuxtApp.hook("page:finish", syncCurrentRoute);
  850. router.afterEach((to, from) => {
  851. var _a2, _b2, _c2, _d;
  852. if (((_b2 = (_a2 = to.matched[0]) == null ? undefined : _a2.components) == null ? undefined : _b2.default) === ((_d = (_c2 = from.matched[0]) == null ? undefined : _c2.components) == null ? undefined : _d.default)) {
  853. syncCurrentRoute();
  854. }
  855. });
  856. const route = {};
  857. for (const key in _route.value) {
  858. Object.defineProperty(route, key, {
  859. get: () => _route.value[key],
  860. enumerable: true
  861. });
  862. }
  863. nuxtApp._route = shallowReactive(route);
  864. nuxtApp._middleware = nuxtApp._middleware || {
  865. global: [],
  866. named: {}
  867. };
  868. useError();
  869. if (!((_b = nuxtApp.ssrContext) == null ? undefined : _b.islandContext)) {
  870. router.afterEach(async (to, _from, failure) => {
  871. delete nuxtApp._processingMiddleware;
  872. if (failure) {
  873. await nuxtApp.callHook("page:loading:end");
  874. }
  875. if ((failure == null ? undefined : failure.type) === 4) {
  876. return;
  877. }
  878. if (to.redirectedFrom && to.fullPath !== initialURL) {
  879. await nuxtApp.runWithContext(() => navigateTo(to.fullPath || "/"));
  880. }
  881. });
  882. }
  883. try {
  884. if (true) {
  885. ;
  886. [__temp, __restore] = executeAsync(() => router.push(initialURL)), await __temp, __restore();
  887. ;
  888. }
  889. ;
  890. [__temp, __restore] = executeAsync(() => router.isReady()), await __temp, __restore();
  891. ;
  892. } catch (error2) {
  893. [__temp, __restore] = executeAsync(() => nuxtApp.runWithContext(() => showError(error2))), await __temp, __restore();
  894. }
  895. const resolvedInitialRoute = router.currentRoute.value;
  896. syncCurrentRoute();
  897. if ((_c = nuxtApp.ssrContext) == null ? undefined : _c.islandContext) {
  898. return { provide: { router } };
  899. }
  900. const initialLayout = nuxtApp.payload.state._layout;
  901. router.beforeEach(async (to, from) => {
  902. var _a2, _b2;
  903. await nuxtApp.callHook("page:loading:start");
  904. to.meta = reactive(to.meta);
  905. if (nuxtApp.isHydrating && initialLayout && !isReadonly(to.meta.layout)) {
  906. to.meta.layout = initialLayout;
  907. }
  908. nuxtApp._processingMiddleware = true;
  909. if (!((_a2 = nuxtApp.ssrContext) == null ? undefined : _a2.islandContext)) {
  910. const middlewareEntries = /* @__PURE__ */ new Set([...globalMiddleware, ...nuxtApp._middleware.global]);
  911. for (const component of to.matched) {
  912. const componentMiddleware = component.meta.middleware;
  913. if (!componentMiddleware) {
  914. continue;
  915. }
  916. for (const entry2 of toArray$1(componentMiddleware)) {
  917. middlewareEntries.add(entry2);
  918. }
  919. }
  920. {
  921. const routeRules = await nuxtApp.runWithContext(() => getRouteRules({ path: to.path }));
  922. if (routeRules.appMiddleware) {
  923. for (const key in routeRules.appMiddleware) {
  924. if (routeRules.appMiddleware[key]) {
  925. middlewareEntries.add(key);
  926. } else {
  927. middlewareEntries.delete(key);
  928. }
  929. }
  930. }
  931. }
  932. for (const entry2 of middlewareEntries) {
  933. const middleware = typeof entry2 === "string" ? nuxtApp._middleware.named[entry2] || await ((_b2 = namedMiddleware[entry2]) == null ? undefined : _b2.call(namedMiddleware).then((r) => r.default || r)) : entry2;
  934. if (!middleware) {
  935. throw new Error(`Unknown route middleware: '${entry2}'.`);
  936. }
  937. const result = await nuxtApp.runWithContext(() => middleware(to, from));
  938. {
  939. if (result === false || result instanceof Error) {
  940. const error2 = result || createError$1({
  941. statusCode: 404,
  942. statusMessage: `Page Not Found: ${initialURL}`
  943. });
  944. await nuxtApp.runWithContext(() => showError(error2));
  945. return false;
  946. }
  947. }
  948. if (result === true) {
  949. continue;
  950. }
  951. if (result || result === false) {
  952. return result;
  953. }
  954. }
  955. }
  956. });
  957. router.onError(async () => {
  958. delete nuxtApp._processingMiddleware;
  959. await nuxtApp.callHook("page:loading:end");
  960. });
  961. router.afterEach(async (to, _from) => {
  962. if (to.matched.length === 0) {
  963. await nuxtApp.runWithContext(() => showError(createError$1({
  964. statusCode: 404,
  965. fatal: false,
  966. statusMessage: `Page not found: ${to.fullPath}`,
  967. data: {
  968. path: to.fullPath
  969. }
  970. })));
  971. }
  972. });
  973. nuxtApp.hooks.hookOnce("app:created", async () => {
  974. try {
  975. if ("name" in resolvedInitialRoute) {
  976. resolvedInitialRoute.name = void 0;
  977. }
  978. await router.replace({
  979. ...resolvedInitialRoute,
  980. force: true
  981. });
  982. router.options.scrollBehavior = routerOptions.scrollBehavior;
  983. } catch (error2) {
  984. await nuxtApp.runWithContext(() => showError(error2));
  985. }
  986. });
  987. return { provide: { router } };
  988. }
  989. });
  990. function definePayloadReducer(name, reduce) {
  991. {
  992. useNuxtApp().ssrContext._payloadReducers[name] = reduce;
  993. }
  994. }
  995. const reducers = [
  996. ["NuxtError", (data) => isNuxtError(data) && data.toJSON()],
  997. ["EmptyShallowRef", (data) => isRef(data) && isShallow(data) && !data.value && (typeof data.value === "bigint" ? "0n" : JSON.stringify(data.value) || "_")],
  998. ["EmptyRef", (data) => isRef(data) && !data.value && (typeof data.value === "bigint" ? "0n" : JSON.stringify(data.value) || "_")],
  999. ["ShallowRef", (data) => isRef(data) && isShallow(data) && data.value],
  1000. ["ShallowReactive", (data) => isReactive(data) && isShallow(data) && toRaw(data)],
  1001. ["Ref", (data) => isRef(data) && data.value],
  1002. ["Reactive", (data) => isReactive(data) && toRaw(data)]
  1003. ];
  1004. const revive_payload_server_eJ33V7gbc6 = /* @__PURE__ */ defineNuxtPlugin({
  1005. name: "nuxt:revive-payload:server",
  1006. setup() {
  1007. for (const [reducer, fn] of reducers) {
  1008. definePayloadReducer(reducer, fn);
  1009. }
  1010. }
  1011. });
  1012. const components_plugin_KR1HBZs4kY = /* @__PURE__ */ defineNuxtPlugin({
  1013. name: "nuxt:global-components"
  1014. });
  1015. const element_plus_elM4AXquKi = /* @__PURE__ */ defineNuxtPlugin(() => {
  1016. });
  1017. const pinia_Uphuq97G1L = /* @__PURE__ */ defineNuxtPlugin((nuxtApp) => {
  1018. const pinia = createPinia();
  1019. nuxtApp.vueApp.use(pinia);
  1020. return {
  1021. provide: {
  1022. pinia
  1023. }
  1024. };
  1025. });
  1026. function toArray(value) {
  1027. return Array.isArray(value) ? value : [value];
  1028. }
  1029. function useRequestEvent(nuxtApp = useNuxtApp()) {
  1030. var _a;
  1031. return (_a = nuxtApp.ssrContext) == null ? undefined : _a.event;
  1032. }
  1033. function prerenderRoutes(path) {
  1034. const paths = toArray(path);
  1035. appendHeader(useRequestEvent(), "x-nitro-prerender", paths.map((p) => encodeURIComponent(p)).join(", "));
  1036. }
  1037. let routes;
  1038. const prerender_server_LXx1wM9sKF = /* @__PURE__ */ defineNuxtPlugin(async () => {
  1039. let __temp, __restore;
  1040. if (routes && !routes.length) {
  1041. return;
  1042. }
  1043. (/* @__PURE__ */ useRuntimeConfig()).nitro.routeRules;
  1044. routes || (routes = Array.from(processRoutes(([__temp, __restore] = executeAsync(() => {
  1045. var _a;
  1046. return (_a = routerOptions.routes) == null ? undefined : _a.call(routerOptions, _routes);
  1047. }), __temp = await __temp, __restore(), __temp) ?? _routes)));
  1048. const batch = routes.splice(0, 10);
  1049. prerenderRoutes(batch);
  1050. });
  1051. const OPTIONAL_PARAM_RE = /^\/?:.*(?:\?|\(\.\*\)\*)$/;
  1052. function shouldPrerender(path) {
  1053. return true;
  1054. }
  1055. function processRoutes(routes2, currentPath = "/", routesToPrerender = /* @__PURE__ */ new Set()) {
  1056. var _a;
  1057. for (const route of routes2) {
  1058. if (OPTIONAL_PARAM_RE.test(route.path) && !((_a = route.children) == null ? undefined : _a.length) && shouldPrerender()) {
  1059. routesToPrerender.add(currentPath);
  1060. }
  1061. if (route.path.includes(":")) {
  1062. continue;
  1063. }
  1064. const fullPath = joinURL(currentPath, route.path);
  1065. {
  1066. routesToPrerender.add(fullPath);
  1067. }
  1068. if (route.children) {
  1069. processRoutes(route.children, fullPath, routesToPrerender);
  1070. }
  1071. }
  1072. return routesToPrerender;
  1073. }
  1074. const plugins = [
  1075. unhead_KgADcZ0jPj,
  1076. plugin,
  1077. revive_payload_server_eJ33V7gbc6,
  1078. components_plugin_KR1HBZs4kY,
  1079. element_plus_elM4AXquKi,
  1080. pinia_Uphuq97G1L,
  1081. prerender_server_LXx1wM9sKF
  1082. ];
  1083. const layouts = {};
  1084. const LayoutLoader = defineComponent({
  1085. name: "LayoutLoader",
  1086. inheritAttrs: false,
  1087. props: {
  1088. name: String,
  1089. layoutProps: Object
  1090. },
  1091. setup(props, context) {
  1092. return () => h(layouts[props.name], props.layoutProps, context.slots);
  1093. }
  1094. });
  1095. const __nuxt_component_0 = defineComponent({
  1096. name: "NuxtLayout",
  1097. inheritAttrs: false,
  1098. props: {
  1099. name: {
  1100. type: [String, Boolean, Object],
  1101. default: null
  1102. },
  1103. fallback: {
  1104. type: [String, Object],
  1105. default: null
  1106. }
  1107. },
  1108. setup(props, context) {
  1109. const nuxtApp = useNuxtApp();
  1110. const injectedRoute = inject(PageRouteSymbol);
  1111. const route = injectedRoute === useRoute() ? useRoute$1() : injectedRoute;
  1112. const layout = computed(() => {
  1113. let layout2 = unref(props.name) ?? route.meta.layout ?? "default";
  1114. if (layout2 && !(layout2 in layouts)) {
  1115. if (props.fallback) {
  1116. layout2 = unref(props.fallback);
  1117. }
  1118. }
  1119. return layout2;
  1120. });
  1121. const layoutRef = ref();
  1122. context.expose({ layoutRef });
  1123. const done = nuxtApp.deferHydration();
  1124. return () => {
  1125. const hasLayout = layout.value && layout.value in layouts;
  1126. const transitionProps = route.meta.layoutTransition ?? appLayoutTransition;
  1127. return _wrapIf(Transition, hasLayout && transitionProps, {
  1128. default: () => h(Suspense, { suspensible: true, onResolve: () => {
  1129. nextTick(done);
  1130. } }, {
  1131. default: () => h(
  1132. LayoutProvider,
  1133. {
  1134. layoutProps: mergeProps(context.attrs, { ref: layoutRef }),
  1135. key: layout.value || undefined,
  1136. name: layout.value,
  1137. shouldProvide: !props.name,
  1138. hasTransition: !!transitionProps
  1139. },
  1140. context.slots
  1141. )
  1142. })
  1143. }).default();
  1144. };
  1145. }
  1146. });
  1147. const LayoutProvider = defineComponent({
  1148. name: "NuxtLayoutProvider",
  1149. inheritAttrs: false,
  1150. props: {
  1151. name: {
  1152. type: [String, Boolean]
  1153. },
  1154. layoutProps: {
  1155. type: Object
  1156. },
  1157. hasTransition: {
  1158. type: Boolean
  1159. },
  1160. shouldProvide: {
  1161. type: Boolean
  1162. }
  1163. },
  1164. setup(props, context) {
  1165. const name = props.name;
  1166. if (props.shouldProvide) {
  1167. provide(LayoutMetaSymbol, {
  1168. isCurrent: (route) => name === (route.meta.layout ?? "default")
  1169. });
  1170. }
  1171. return () => {
  1172. var _a, _b;
  1173. if (!name || typeof name === "string" && !(name in layouts)) {
  1174. return (_b = (_a = context.slots).default) == null ? undefined : _b.call(_a);
  1175. }
  1176. return h(
  1177. LayoutLoader,
  1178. { key: name, layoutProps: props.layoutProps, name },
  1179. context.slots
  1180. );
  1181. };
  1182. }
  1183. });
  1184. const RouteProvider = defineComponent({
  1185. props: {
  1186. vnode: {
  1187. type: Object,
  1188. required: true
  1189. },
  1190. route: {
  1191. type: Object,
  1192. required: true
  1193. },
  1194. vnodeRef: Object,
  1195. renderKey: String,
  1196. trackRootNodes: Boolean
  1197. },
  1198. setup(props) {
  1199. const previousKey = props.renderKey;
  1200. const previousRoute = props.route;
  1201. const route = {};
  1202. for (const key in props.route) {
  1203. Object.defineProperty(route, key, {
  1204. get: () => previousKey === props.renderKey ? props.route[key] : previousRoute[key],
  1205. enumerable: true
  1206. });
  1207. }
  1208. provide(PageRouteSymbol, shallowReactive(route));
  1209. return () => {
  1210. return h(props.vnode, { ref: props.vnodeRef });
  1211. };
  1212. }
  1213. });
  1214. const __nuxt_component_1 = defineComponent({
  1215. name: "NuxtPage",
  1216. inheritAttrs: false,
  1217. props: {
  1218. name: {
  1219. type: String
  1220. },
  1221. transition: {
  1222. type: [Boolean, Object],
  1223. default: undefined
  1224. },
  1225. keepalive: {
  1226. type: [Boolean, Object],
  1227. default: undefined
  1228. },
  1229. route: {
  1230. type: Object
  1231. },
  1232. pageKey: {
  1233. type: [Function, String],
  1234. default: null
  1235. }
  1236. },
  1237. setup(props, { attrs, slots, expose }) {
  1238. const nuxtApp = useNuxtApp();
  1239. const pageRef = ref();
  1240. const forkRoute = inject(PageRouteSymbol, null);
  1241. let previousPageKey;
  1242. expose({ pageRef });
  1243. inject(LayoutMetaSymbol, null);
  1244. let vnode;
  1245. const done = nuxtApp.deferHydration();
  1246. if (props.pageKey) {
  1247. watch(() => props.pageKey, (next, prev) => {
  1248. if (next !== prev) {
  1249. nuxtApp.callHook("page:loading:start");
  1250. }
  1251. });
  1252. }
  1253. let pageLoadingEndHookAlreadyCalled = false;
  1254. return () => {
  1255. return h(RouterView, { name: props.name, route: props.route, ...attrs }, {
  1256. default: (routeProps) => {
  1257. if (!routeProps.Component) {
  1258. done();
  1259. return;
  1260. }
  1261. const key = generateRouteKey$1(routeProps, props.pageKey);
  1262. if (!nuxtApp.isHydrating && !hasChildrenRoutes(forkRoute, routeProps.route, routeProps.Component) && previousPageKey === key) {
  1263. nuxtApp.callHook("page:loading:end");
  1264. pageLoadingEndHookAlreadyCalled = true;
  1265. }
  1266. previousPageKey = key;
  1267. const hasTransition = !!(props.transition ?? routeProps.route.meta.pageTransition ?? appPageTransition);
  1268. const transitionProps = hasTransition && _mergeTransitionProps([
  1269. props.transition,
  1270. routeProps.route.meta.pageTransition,
  1271. appPageTransition,
  1272. { onAfterLeave: () => {
  1273. nuxtApp.callHook("page:transition:finish", routeProps.Component);
  1274. } }
  1275. ].filter(Boolean));
  1276. const keepaliveConfig = props.keepalive ?? routeProps.route.meta.keepalive ?? appKeepalive;
  1277. vnode = _wrapIf(
  1278. Transition,
  1279. hasTransition && transitionProps,
  1280. wrapInKeepAlive(
  1281. keepaliveConfig,
  1282. h(Suspense, {
  1283. suspensible: true,
  1284. onPending: () => nuxtApp.callHook("page:start", routeProps.Component),
  1285. onResolve: () => {
  1286. nextTick(() => nuxtApp.callHook("page:finish", routeProps.Component).then(() => {
  1287. if (!pageLoadingEndHookAlreadyCalled) {
  1288. return nuxtApp.callHook("page:loading:end");
  1289. }
  1290. pageLoadingEndHookAlreadyCalled = false;
  1291. }).finally(done));
  1292. }
  1293. }, {
  1294. default: () => {
  1295. const providerVNode = h(RouteProvider, {
  1296. key: key || undefined,
  1297. vnode: slots.default ? h(Fragment, undefined, slots.default(routeProps)) : routeProps.Component,
  1298. route: routeProps.route,
  1299. renderKey: key || undefined,
  1300. trackRootNodes: hasTransition,
  1301. vnodeRef: pageRef
  1302. });
  1303. return providerVNode;
  1304. }
  1305. })
  1306. )
  1307. ).default();
  1308. return vnode;
  1309. }
  1310. });
  1311. };
  1312. }
  1313. });
  1314. function _mergeTransitionProps(routeProps) {
  1315. const _props = routeProps.map((prop) => ({
  1316. ...prop,
  1317. onAfterLeave: prop.onAfterLeave ? toArray$1(prop.onAfterLeave) : undefined
  1318. }));
  1319. return defu(..._props);
  1320. }
  1321. function hasChildrenRoutes(fork, newRoute, Component) {
  1322. if (!fork) {
  1323. return false;
  1324. }
  1325. const index = newRoute.matched.findIndex((m) => {
  1326. var _a;
  1327. return ((_a = m.components) == null ? undefined : _a.default) === (Component == null ? undefined : Component.type);
  1328. });
  1329. return index < newRoute.matched.length - 1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+1OqgN5LvgZm+bWyb6TlcnUznX9HZQCDm8l1HHkCOMeaVNC2Sw+Q407nRezWfNkODMQQQaUbiXu1PeDRJLWeA2AFIfSWYL4c9LETSzCTEHI0RL1Vb9H0589HIXPQIPwWIzD0E6B7EJfpkCGpfR2ZZFBhDyK+hZaix7ilk6yHetyLxViHxnutrZrg3why3n9OGbdSeQT5ZUMgsk9orcqDTqKC+/DIO/FqRW4NUeYg93FNvQ8dqNI/WGWBQNZtLSNnPrO8EnKfD3lsXDSZ5KA2WBL8JUaS+gpUOCyF/E3LVTJOr7CVIvYsvbTKQzvgvZF8jhTmhJDAWUK2qRgP3dD7/CXO4NQ18+yBx5qEyNncGnRolg7GAos53zV0ARNphGV+IQwBC8SkjOU7mnrvk0SkwSQ05DyH8pi+1S2dE5DvIH/a+oNTReTAmsxObi7naUpnAPo1WZjIqaXSlpY9Og7HawXcU3c9Z7YjMSX9HKYKlBEqlHzlf1suyP/YWsT+ztEvAWEAmEtU6d+Ppfjy7IZk5jlprPjVTU1dU3l0G5hwghf8DgHoqzwfdLJDvsyO3dGXF3aVg0oxKHT7Tan4MfnRDkIYQvf6I5FgPhz8QUoOhlp0XMFZLE/HBqrezGHcBpj22l+F2njnuVOi5/ETwR9ZQXOdZdN7AZJiP0Tho6VGEbx8fV9c4w2l5Zx09H+DzDiYd7YppyErVzqcCplTmit33fzDFSuzTWv8/gHPqYRXKkssAAAAASUVORK5CYII=";
  1333. const _export_sfc = (sfc, props) => {
  1334. const target = sfc.__vccOpts || sfc;
  1335. for (const [key, val] of props) {
  1336. target[key] = val;
  1337. }
  1338. return target;
  1339. };
  1340. const _sfc_main$2 = {
  1341. __name: "app",
  1342. __ssrInlineRender: true,
  1343. setup(__props) {
  1344. return (_ctx, _push, _parent, _attrs) => {
  1345. const _component_NuxtLayout = __nuxt_component_0;
  1346. const _component_NuxtPage = __nuxt_component_1;
  1347. _push(`<div${ssrRenderAttrs(mergeProps({ class: "sannong" }, _attrs))} data-v-82c887d8>`);
  1348. _push(ssrRenderComponent(_component_NuxtLayout, null, {
  1349. default: withCtx((_, _push2, _parent2, _scopeId) => {
  1350. if (_push2) {
  1351. _push2(ssrRenderComponent(_component_NuxtPage, null, null, _parent2, _scopeId));
  1352. _push2(`<ul class="kefu" data-v-82c887d8${_scopeId}><li data-v-82c887d8${_scopeId}>`);
  1353. _push2(ssrRenderComponent(unref(ElPopover), {
  1354. ref: "popover",
  1355. placement: "right",
  1356. width: 80,
  1357. trigger: "hover"
  1358. }, {
  1359. reference: withCtx((_2, _push3, _parent3, _scopeId2) => {
  1360. if (_push3) {
  1361. _push3(`<img${ssrRenderAttr("src", _imports_4)} alt="" data-v-82c887d8${_scopeId2}>`);
  1362. } else {
  1363. return [
  1364. createVNode("img", {
  1365. src: _imports_4,
  1366. alt: ""
  1367. })
  1368. ];
  1369. }
  1370. }),
  1371. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  1372. if (_push3) {
  1373. _push3(`<p data-v-82c887d8${_scopeId2}>联系QQ:</p><p data-v-82c887d8${_scopeId2}>2909421493</p><p data-v-82c887d8${_scopeId2}>213552413</p>`);
  1374. } else {
  1375. return [
  1376. createVNode("p", null, "联系QQ:"),
  1377. createVNode("p", null, "2909421493"),
  1378. createVNode("p", null, "213552413")
  1379. ];
  1380. }
  1381. }),
  1382. _: 1
  1383. }, _parent2, _scopeId));
  1384. _push2(`<h6 data-v-82c887d8${_scopeId}>QQ客服</h6></li><li data-v-82c887d8${_scopeId}>`);
  1385. _push2(ssrRenderComponent(unref(ElPopover), {
  1386. ref: "popover",
  1387. placement: "right",
  1388. width: 80,
  1389. trigger: "hover"
  1390. }, {
  1391. reference: withCtx((_2, _push3, _parent3, _scopeId2) => {
  1392. if (_push3) {
  1393. _push3(`<img${ssrRenderAttr("src", _imports_5)} alt="" data-v-82c887d8${_scopeId2}>`);
  1394. } else {
  1395. return [
  1396. createVNode("img", {
  1397. src: _imports_5,
  1398. alt: ""
  1399. })
  1400. ];
  1401. }
  1402. }),
  1403. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  1404. if (_push3) {
  1405. _push3(`<p data-v-82c887d8${_scopeId2}>联系电话:</p><p data-v-82c887d8${_scopeId2}>010-56019387</p>`);
  1406. } else {
  1407. return [
  1408. createVNode("p", null, "联系电话:"),
  1409. createVNode("p", null, "010-56019387")
  1410. ];
  1411. }
  1412. }),
  1413. _: 1
  1414. }, _parent2, _scopeId));
  1415. _push2(`<h6 data-v-82c887d8${_scopeId}>电话客服</h6></li></ul>`);
  1416. } else {
  1417. return [
  1418. createVNode(_component_NuxtPage),
  1419. createVNode("ul", { class: "kefu" }, [
  1420. createVNode("li", null, [
  1421. createVNode(unref(ElPopover), {
  1422. ref: "popover",
  1423. placement: "right",
  1424. width: 80,
  1425. trigger: "hover"
  1426. }, {
  1427. reference: withCtx(() => [
  1428. createVNode("img", {
  1429. src: _imports_4,
  1430. alt: ""
  1431. })
  1432. ]),
  1433. default: withCtx(() => [
  1434. createVNode("p", null, "联系QQ:"),
  1435. createVNode("p", null, "2909421493"),
  1436. createVNode("p", null, "213552413")
  1437. ]),
  1438. _: 1
  1439. }, 512),
  1440. createVNode("h6", null, "QQ客服")
  1441. ]),
  1442. createVNode("li", null, [
  1443. createVNode(unref(ElPopover), {
  1444. ref: "popover",
  1445. placement: "right",
  1446. width: 80,
  1447. trigger: "hover"
  1448. }, {
  1449. reference: withCtx(() => [
  1450. createVNode("img", {
  1451. src: _imports_5,
  1452. alt: ""
  1453. })
  1454. ]),
  1455. default: withCtx(() => [
  1456. createVNode("p", null, "联系电话:"),
  1457. createVNode("p", null, "010-56019387")
  1458. ]),
  1459. _: 1
  1460. }, 512),
  1461. createVNode("h6", null, "电话客服")
  1462. ])
  1463. ])
  1464. ];
  1465. }
  1466. }),
  1467. _: 1
  1468. }, _parent));
  1469. _push(`</div>`);
  1470. };
  1471. }
  1472. };
  1473. const _sfc_setup$2 = _sfc_main$2.setup;
  1474. _sfc_main$2.setup = (props, ctx) => {
  1475. const ssrContext = useSSRContext();
  1476. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("app.vue");
  1477. return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : undefined;
  1478. };
  1479. const AppComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-82c887d8"]]);
  1480. const _sfc_main$1 = {
  1481. __name: "nuxt-error-page",
  1482. __ssrInlineRender: true,
  1483. props: {
  1484. error: Object
  1485. },
  1486. setup(__props) {
  1487. const props = __props;
  1488. const _error = props.error;
  1489. _error.stack ? _error.stack.split("\n").splice(1).map((line) => {
  1490. const text = line.replace("webpack:/", "").replace(".vue", ".js").trim();
  1491. return {
  1492. text,
  1493. internal: line.includes("node_modules") && !line.includes(".cache") || line.includes("internal") || line.includes("new Promise")
  1494. };
  1495. }).map((i) => `<span class="stack${i.internal ? " internal" : ""}">${i.text}</span>`).join("\n") : "";
  1496. const statusCode = Number(_error.statusCode || 500);
  1497. const is404 = statusCode === 404;
  1498. const statusMessage = _error.statusMessage ?? (is404 ? "Page Not Found" : "Internal Server Error");
  1499. const description = _error.message || _error.toString();
  1500. const stack = undefined;
  1501. const _Error404 = defineAsyncComponent(() => import('./error-404-BxLHD5OU.mjs'));
  1502. const _Error = defineAsyncComponent(() => import('./error-500-BgZPBPyl.mjs'));
  1503. const ErrorTemplate = is404 ? _Error404 : _Error;
  1504. return (_ctx, _push, _parent, _attrs) => {
  1505. _push(ssrRenderComponent(unref(ErrorTemplate), mergeProps({ statusCode: unref(statusCode), statusMessage: unref(statusMessage), description: unref(description), stack: unref(stack) }, _attrs), null, _parent));
  1506. };
  1507. }
  1508. };
  1509. const _sfc_setup$1 = _sfc_main$1.setup;
  1510. _sfc_main$1.setup = (props, ctx) => {
  1511. const ssrContext = useSSRContext();
  1512. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("node_modules/nuxt/dist/app/components/nuxt-error-page.vue");
  1513. return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : undefined;
  1514. };
  1515. const _sfc_main = {
  1516. __name: "nuxt-root",
  1517. __ssrInlineRender: true,
  1518. setup(__props) {
  1519. const IslandRenderer = () => null;
  1520. const nuxtApp = useNuxtApp();
  1521. nuxtApp.deferHydration();
  1522. nuxtApp.ssrContext.url;
  1523. const SingleRenderer = false;
  1524. provide(PageRouteSymbol, useRoute());
  1525. nuxtApp.hooks.callHookWith((hooks) => hooks.map((hook) => hook()), "vue:setup");
  1526. const error = useError();
  1527. const abortRender = error.value && !nuxtApp.ssrContext.error;
  1528. onErrorCaptured((err, target, info) => {
  1529. nuxtApp.hooks.callHook("vue:error", err, target, info).catch((hookError) => console.error("[nuxt] Error in `vue:error` hook", hookError));
  1530. {
  1531. const p = nuxtApp.runWithContext(() => showError(err));
  1532. onServerPrefetch(() => p);
  1533. return false;
  1534. }
  1535. });
  1536. const islandContext = nuxtApp.ssrContext.islandContext;
  1537. return (_ctx, _push, _parent, _attrs) => {
  1538. ssrRenderSuspense(_push, {
  1539. default: () => {
  1540. if (unref(abortRender)) {
  1541. _push(`<div></div>`);
  1542. } else if (unref(error)) {
  1543. _push(ssrRenderComponent(unref(_sfc_main$1), { error: unref(error) }, null, _parent));
  1544. } else if (unref(islandContext)) {
  1545. _push(ssrRenderComponent(unref(IslandRenderer), { context: unref(islandContext) }, null, _parent));
  1546. } else if (unref(SingleRenderer)) {
  1547. ssrRenderVNode(_push, createVNode(resolveDynamicComponent(unref(SingleRenderer)), null, null), _parent);
  1548. } else {
  1549. _push(ssrRenderComponent(unref(AppComponent), null, null, _parent));
  1550. }
  1551. },
  1552. _: 1
  1553. });
  1554. };
  1555. }
  1556. };
  1557. const _sfc_setup = _sfc_main.setup;
  1558. _sfc_main.setup = (props, ctx) => {
  1559. const ssrContext = useSSRContext();
  1560. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("node_modules/nuxt/dist/app/components/nuxt-root.vue");
  1561. return _sfc_setup ? _sfc_setup(props, ctx) : undefined;
  1562. };
  1563. let entry;
  1564. {
  1565. entry = async function createNuxtAppServer(ssrContext) {
  1566. const vueApp = createApp(_sfc_main);
  1567. const nuxt = createNuxtApp({ vueApp, ssrContext });
  1568. try {
  1569. await applyPlugins(nuxt, plugins);
  1570. await nuxt.hooks.callHook("app:created", vueApp);
  1571. } catch (error) {
  1572. await nuxt.hooks.callHook("app:error", error);
  1573. nuxt.payload.error = nuxt.payload.error || createError(error);
  1574. }
  1575. if (ssrContext == null ? undefined : ssrContext._renderResponse) {
  1576. throw new Error("skipping render");
  1577. }
  1578. return vueApp;
  1579. };
  1580. }
  1581. const entry$1 = (ssrContext) => entry(ssrContext);
  1582. export { _export_sfc as _, navigateTo as a, useNuxtApp as b, useRuntimeConfig as c, resolveUnrefHeadInput as d, entry$1 as default, useRoute as e, injectHead as i, nuxtLinkDefaults as n, resolveRouteObject as r, useRouter as u };
  1583. //# sourceMappingURL=server.mjs.map