diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 20614e59..1a52674b 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -30,6 +30,8 @@ jobs: git checkout -f "${REF}" export SKIP_ENV_VALIDATION=1 + export ARGON2_MEMORY_SIZE=1024 + export ARGON2_ITERATIONS=1 pnpm install --frozen-lockfile pnpm prisma:generate pnpm biome:lint diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 34ed2dfa..0c63867c 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -307,6 +307,7 @@ jobs: pnpm install --frozen-lockfile # prisma generate does not need a live DB connection. pnpm prisma:generate + export ARGON2_MEMORY_SIZE=1024 ARGON2_ITERATIONS=1 pnpm typecheck pnpm test # Validate production env (AUTH_SECRET, DATABASE_URL, …) during build. diff --git a/.next.prev/build/56416d4ae4ce586f.js b/.next.prev/build/56416d4ae4ce586f.js deleted file mode 100644 index 95484ea0..00000000 --- a/.next.prev/build/56416d4ae4ce586f.js +++ /dev/null @@ -1,6 +0,0 @@ -var R=require("./chunks/[turbopack]_runtime.js")("56416d4ae4ce586f.js") -R.c("chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js") -R.c("chunks/[root-of-the-server]__1f933tp._.js") -R.m("[turbopack-node]/child_process/globals.ts [postcss] (ecmascript)") -R.m("[turbopack-node]/child_process/evaluate.ts/evaluate.js { INNER => \"[turbopack-node]/transforms/postcss.ts { CONFIG => \\\"[project]/postcss.config.mjs [postcss] (ecmascript)\\\" } [postcss] (ecmascript)\", RUNTIME => \"[turbopack-node]/child_process/evaluate.ts [postcss] (ecmascript)\" } [postcss] (ecmascript)") -module.exports=R.m("[turbopack-node]/child_process/evaluate.ts/evaluate.js { INNER => \"[turbopack-node]/transforms/postcss.ts { CONFIG => \\\"[project]/postcss.config.mjs [postcss] (ecmascript)\\\" } [postcss] (ecmascript)\", RUNTIME => \"[turbopack-node]/child_process/evaluate.ts [postcss] (ecmascript)\" } [postcss] (ecmascript)").exports diff --git a/.next.prev/build/56416d4ae4ce586f.js.map b/.next.prev/build/56416d4ae4ce586f.js.map deleted file mode 100644 index c15d7ec0..00000000 --- a/.next.prev/build/56416d4ae4ce586f.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/.next.prev/build/cf208e1b0e4c4caf.js b/.next.prev/build/cf208e1b0e4c4caf.js deleted file mode 100644 index 41b5d070..00000000 --- a/.next.prev/build/cf208e1b0e4c4caf.js +++ /dev/null @@ -1,6 +0,0 @@ -var R=require("./chunks/[turbopack]_runtime.js")("cf208e1b0e4c4caf.js") -R.c("chunks/[turbopack-node]_transforms_webpack-loaders_ts_1nw9y6m._.js") -R.c("chunks/[root-of-the-server]__1nvwxt6._.js") -R.m("[turbopack-node]/child_process/globals.ts [webpack_loaders] (ecmascript)") -R.m("[turbopack-node]/child_process/evaluate.ts/evaluate.js { INNER => \"[turbopack-node]/transforms/webpack-loaders.ts [webpack_loaders] (ecmascript)\", RUNTIME => \"[turbopack-node]/child_process/evaluate.ts [webpack_loaders] (ecmascript)\" } [webpack_loaders] (ecmascript)") -module.exports=R.m("[turbopack-node]/child_process/evaluate.ts/evaluate.js { INNER => \"[turbopack-node]/transforms/webpack-loaders.ts [webpack_loaders] (ecmascript)\", RUNTIME => \"[turbopack-node]/child_process/evaluate.ts [webpack_loaders] (ecmascript)\" } [webpack_loaders] (ecmascript)").exports diff --git a/.next.prev/build/cf208e1b0e4c4caf.js.map b/.next.prev/build/cf208e1b0e4c4caf.js.map deleted file mode 100644 index c15d7ec0..00000000 --- a/.next.prev/build/cf208e1b0e4c4caf.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/.next.prev/build/chunks/[root-of-the-server]__0oj80bi._.js b/.next.prev/build/chunks/[root-of-the-server]__0oj80bi._.js deleted file mode 100644 index 989843d4..00000000 --- a/.next.prev/build/chunks/[root-of-the-server]__0oj80bi._.js +++ /dev/null @@ -1,205 +0,0 @@ -module.exports = [ -"[externals]/path [external] (path, cjs)", ((__turbopack_context__, module, exports) => { - -const mod = __turbopack_context__.x("path", () => require("path")); - -module.exports = mod; -}), -"[externals]/url [external] (url, cjs)", ((__turbopack_context__, module, exports) => { - -const mod = __turbopack_context__.x("url", () => require("url")); - -module.exports = mod; -}), -"[externals]/fs [external] (fs, cjs)", ((__turbopack_context__, module, exports) => { - -const mod = __turbopack_context__.x("fs", () => require("fs")); - -module.exports = mod; -}), -"[project]/postcss.config.mjs [postcss] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([ - "default", - ()=>__TURBOPACK__default__export__ -]); -const __TURBOPACK__default__export__ = { - plugins: { - "@tailwindcss/postcss": {} - } -}; -}), -"[turbopack-node]/transforms/transforms.ts [postcss] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -/** - * Shared utilities for our 2 transform implementations. - */ __turbopack_context__.s([ - "fromPath", - ()=>fromPath, - "getReadEnvVariables", - ()=>getReadEnvVariables, - "toPath", - ()=>toPath -]); -var __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/path [external] (path, cjs)"); -; -const contextDir = process.cwd(); -const toPath = (file)=>{ - const relPath = (0, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["relative"])(contextDir, file); - if ((0, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["isAbsolute"])(relPath)) { - throw new Error(`Cannot depend on path (${file}) outside of root directory (${contextDir})`); - } - return __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["sep"] !== '/' ? relPath.replaceAll(__TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["sep"], '/') : relPath; -}; -const fromPath = (path)=>{ - return (0, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["join"])(/* turbopackIgnore: true */ contextDir, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["sep"] !== '/' ? path.replaceAll('/', __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["sep"]) : path); -}; -// Patch process.env to track which env vars are read -const originalEnv = process.env; -const readEnvVars = new Set(); -process.env = new Proxy(originalEnv, { - get (target, prop) { - if (typeof prop === 'string') { - // We register the env var as dependency on the - // current transform and all future transforms - // since the env var might be cached in module scope - // and influence them all - readEnvVars.add(prop); - } - return Reflect.get(target, prop); - }, - set (target, prop, value) { - return Reflect.set(target, prop, value); - } -}); -function getReadEnvVariables() { - return Array.from(readEnvVars); -} -}), -"[turbopack-node]/transforms/postcss.ts { CONFIG => \"[project]/postcss.config.mjs [postcss] (ecmascript)\" } [postcss] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([ - "default", - ()=>transform, - "init", - ()=>init -]); -// @ts-ignore -var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$postcss$40$8$2e$5$2e$21$2f$node_modules$2f$postcss$2f$lib$2f$postcss$2e$mjs__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/.pnpm/postcss@8.5.21/node_modules/postcss/lib/postcss.mjs [postcss] (ecmascript)"); -// @ts-ignore -var __TURBOPACK__imported__module__$5b$project$5d2f$postcss$2e$config$2e$mjs__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/postcss.config.mjs [postcss] (ecmascript)"); -var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/transforms/transforms.ts [postcss] (ecmascript)"); -; -; -; -let processor; -const init = async (ipc)=>{ - let config = __TURBOPACK__imported__module__$5b$project$5d2f$postcss$2e$config$2e$mjs__$5b$postcss$5d$__$28$ecmascript$29$__["default"]; - if (typeof config === 'function') { - config = await config({ - env: 'development' - }); - } - if (typeof config === 'undefined') { - throw new Error('PostCSS config is undefined (make sure to export an function or object from config file)'); - } - let plugins; - if (Array.isArray(config.plugins)) { - plugins = config.plugins.map((plugin)=>{ - if (Array.isArray(plugin)) { - return plugin; - } else if (typeof plugin === 'string') { - return [ - plugin, - {} - ]; - } else { - return plugin; - } - }); - } else if (typeof config.plugins === 'object') { - plugins = Object.entries(config.plugins).filter(([, options])=>options); - } else { - plugins = []; - } - const loadedPlugins = plugins.map((plugin)=>{ - if (Array.isArray(plugin)) { - const [arg, options] = plugin; - let pluginFactory = arg; - if (typeof pluginFactory === 'string') { - pluginFactory = require(/* turbopackIgnore: true */ pluginFactory); - } - if (pluginFactory.default) { - pluginFactory = pluginFactory.default; - } - return pluginFactory(options); - } - return plugin; - }); - processor = (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$postcss$40$8$2e$5$2e$21$2f$node_modules$2f$postcss$2f$lib$2f$postcss$2e$mjs__$5b$postcss$5d$__$28$ecmascript$29$__["default"])(loadedPlugins); -}; -async function transform(ipc, cssContent, name, sourceMap) { - const { css, map, messages } = await processor.process(cssContent, { - from: name, - to: name, - map: sourceMap ? { - inline: false, - annotation: false - } : undefined - }); - const assets = []; - const filePaths = []; - const buildFilePaths = []; - const directories = []; - for (const msg of messages){ - switch(msg.type){ - case 'asset': - assets.push({ - file: msg.file, - content: msg.content, - sourceMap: !sourceMap ? undefined : typeof msg.sourceMap === 'string' ? msg.sourceMap : JSON.stringify(msg.sourceMap) - }); - break; - case 'dependency': - case 'missing-dependency': - filePaths.push((0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["toPath"])(msg.file)); - break; - case 'build-dependency': - buildFilePaths.push((0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["toPath"])(msg.file)); - break; - case 'dir-dependency': - directories.push([ - (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["toPath"])(msg.dir), - msg.glob - ]); - break; - case 'context-dependency': - directories.push([ - (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["toPath"])(msg.dir), - '**' - ]); - break; - default: - break; - } - } - ipc.sendInfo({ - type: 'dependencies', - filePaths, - directories, - buildFilePaths, - envVariables: (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["getReadEnvVariables"])() - }); - return { - css, - map: sourceMap ? JSON.stringify(map) : undefined, - assets - }; -} -}), -]; - -//# sourceMappingURL=%5Broot-of-the-server%5D__0oj80bi._.js.map \ No newline at end of file diff --git a/.next.prev/build/chunks/[root-of-the-server]__0oj80bi._.js.map b/.next.prev/build/chunks/[root-of-the-server]__0oj80bi._.js.map deleted file mode 100644 index 5ff82ed9..00000000 --- a/.next.prev/build/chunks/[root-of-the-server]__0oj80bi._.js.map +++ /dev/null @@ -1,8 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [ - {"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/postcss.config.mjs"],"sourcesContent":["export default {\n\tplugins: {\n\t\t\"@tailwindcss/postcss\": {},\n\t},\n};\n"],"names":["plugins"],"mappings":";;;;uCAAe;IACdA,SAAS;QACR,wBAAwB,CAAC;IAC1B;AACD"}}, - {"offset": {"line": 35, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/transforms/transforms.ts"],"sourcesContent":["/**\n * Shared utilities for our 2 transform implementations.\n */\n\nimport type { Channel as Ipc } from '../types'\nimport { relative, isAbsolute, join, sep } from 'path'\nimport { type StructuredError } from '../error'\nimport { type StackFrame } from '../compiled/stacktrace-parser'\n\nexport type IpcInfoMessage =\n | {\n type: 'dependencies'\n envVariables?: string[]\n directories?: Array<[string, string]>\n filePaths?: string[]\n buildFilePaths?: string[]\n }\n | {\n type: 'emittedError'\n severity: 'warning' | 'error'\n error: StructuredError\n }\n | {\n type: 'log'\n logs: Array<{\n time: number\n logType: string\n args: any[]\n trace?: StackFrame[]\n }>\n }\n\nexport type IpcRequestMessage =\n | {\n type: 'resolve'\n options: any\n lookupPath: string\n request: string\n }\n | {\n type: 'trackFileRead'\n file: string\n }\n\nexport type TransformIpc = Ipc\n\nconst contextDir = process.cwd()\nexport const toPath = (file: string) => {\n const relPath = relative(contextDir, file)\n if (isAbsolute(relPath)) {\n throw new Error(\n `Cannot depend on path (${file}) outside of root directory (${contextDir})`\n )\n }\n return sep !== '/' ? relPath.replaceAll(sep, '/') : relPath\n}\nexport const fromPath = (path: string) => {\n return join(\n /* turbopackIgnore: true */ contextDir,\n sep !== '/' ? path.replaceAll('/', sep) : path\n )\n}\n\n// Patch process.env to track which env vars are read\nconst originalEnv = process.env\nconst readEnvVars = new Set()\nprocess.env = new Proxy(originalEnv, {\n get(target, prop) {\n if (typeof prop === 'string') {\n // We register the env var as dependency on the\n // current transform and all future transforms\n // since the env var might be cached in module scope\n // and influence them all\n readEnvVars.add(prop)\n }\n return Reflect.get(target, prop)\n },\n set(target, prop, value) {\n return Reflect.set(target, prop, value)\n },\n})\n\nexport function getReadEnvVariables(): string[] {\n return Array.from(readEnvVars)\n}\n"],"names":["contextDir","process","cwd","toPath","file","relPath","Error","replaceAll","fromPath","path","originalEnv","env","readEnvVars","Set","Proxy","get","target","prop","add","Reflect","set","value","getReadEnvVariables","Array","from"],"mappings":"AAAA;;CAEC;;;;;;;;AAGD;;AAyCA,MAAMA,aAAaC,QAAQC,GAAG;AACvB,MAAMC,SAAS,CAACC;IACrB,MAAMC,UAAU,IAAA,6GAAQ,EAACL,YAAYI;IACrC,IAAI,IAAA,+GAAU,EAACC,UAAU;QACvB,MAAM,IAAIC,MACR,CAAC,uBAAuB,EAAEF,KAAK,6BAA6B,EAAEJ,WAAW,CAAC,CAAC;IAE/E;IACA,OAAO,wGAAG,KAAK,MAAMK,QAAQE,UAAU,CAAC,wGAAG,EAAE,OAAOF;AACtD;AACO,MAAMG,WAAW,CAACC;IACvB,OAAO,IAAA,yGAAI,EACT,yBAAyB,GAAGT,YAC5B,wGAAG,KAAK,MAAMS,KAAKF,UAAU,CAAC,KAAK,wGAAG,IAAIE;AAE9C;AAEA,qDAAqD;AACrD,MAAMC,cAAcT,QAAQU,GAAG;AAC/B,MAAMC,cAAc,IAAIC;AACxBZ,QAAQU,GAAG,GAAG,IAAIG,MAAMJ,aAAa;IACnCK,KAAIC,MAAM,EAAEC,IAAI;QACd,IAAI,OAAOA,SAAS,UAAU;YAC5B,+CAA+C;YAC/C,8CAA8C;YAC9C,oDAAoD;YACpD,yBAAyB;YACzBL,YAAYM,GAAG,CAACD;QAClB;QACA,OAAOE,QAAQJ,GAAG,CAACC,QAAQC;IAC7B;IACAG,KAAIJ,MAAM,EAAEC,IAAI,EAAEI,KAAK;QACrB,OAAOF,QAAQC,GAAG,CAACJ,QAAQC,MAAMI;IACnC;AACF;AAEO,SAASC;IACd,OAAOC,MAAMC,IAAI,CAACZ;AACpB"}}, - {"offset": {"line": 83, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/transforms/postcss.ts"],"sourcesContent":["declare const __turbopack_external_require__: (\n id: string,\n thunk: () => any,\n esm?: boolean\n) => any\n\nimport type { Processor } from 'postcss'\n\n// @ts-ignore\nimport postcss from '@vercel/turbopack/postcss'\n// @ts-ignore\nimport importedConfig from 'CONFIG'\nimport { getReadEnvVariables, toPath, type TransformIpc } from './transforms'\n\nlet processor: Processor | undefined\n\nexport const init = async (ipc: TransformIpc) => {\n let config = importedConfig\n if (typeof config === 'function') {\n config = await config({ env: 'development' })\n }\n if (typeof config === 'undefined') {\n throw new Error(\n 'PostCSS config is undefined (make sure to export an function or object from config file)'\n )\n }\n let plugins: any[]\n if (Array.isArray(config.plugins)) {\n plugins = config.plugins.map((plugin: [string, any] | string | any) => {\n if (Array.isArray(plugin)) {\n return plugin\n } else if (typeof plugin === 'string') {\n return [plugin, {}]\n } else {\n return plugin\n }\n })\n } else if (typeof config.plugins === 'object') {\n plugins = Object.entries(config.plugins).filter(([, options]) => options)\n } else {\n plugins = []\n }\n const loadedPlugins = plugins.map((plugin) => {\n if (Array.isArray(plugin)) {\n const [arg, options] = plugin\n let pluginFactory = arg\n\n if (typeof pluginFactory === 'string') {\n pluginFactory = require(/* turbopackIgnore: true */ pluginFactory)\n }\n\n if (pluginFactory.default) {\n pluginFactory = pluginFactory.default\n }\n\n return pluginFactory(options)\n }\n return plugin\n })\n\n processor = postcss(loadedPlugins)\n}\n\nexport default async function transform(\n ipc: TransformIpc,\n cssContent: string,\n name: string,\n sourceMap: boolean\n) {\n const { css, map, messages } = await processor!.process(cssContent, {\n from: name,\n to: name,\n map: sourceMap\n ? {\n inline: false,\n annotation: false,\n }\n : undefined,\n })\n\n const assets = []\n const filePaths: string[] = []\n const buildFilePaths: string[] = []\n const directories: Array<[string, string]> = []\n\n for (const msg of messages) {\n switch (msg.type) {\n case 'asset':\n assets.push({\n file: msg.file,\n content: msg.content,\n sourceMap: !sourceMap\n ? undefined\n : typeof msg.sourceMap === 'string'\n ? msg.sourceMap\n : JSON.stringify(msg.sourceMap),\n // There is also an info field, which we currently ignore\n })\n break\n case 'dependency':\n case 'missing-dependency':\n filePaths.push(toPath(msg.file))\n break\n case 'build-dependency':\n buildFilePaths.push(toPath(msg.file))\n break\n case 'dir-dependency':\n directories.push([toPath(msg.dir), msg.glob])\n break\n case 'context-dependency':\n directories.push([toPath(msg.dir), '**'])\n break\n default:\n // TODO: do we need to do anything here?\n break\n }\n }\n ipc.sendInfo({\n type: 'dependencies',\n filePaths,\n directories,\n buildFilePaths,\n envVariables: getReadEnvVariables(),\n })\n return {\n css,\n map: sourceMap ? JSON.stringify(map) : undefined,\n assets,\n }\n}\n"],"names":["processor","init","ipc","config","env","Error","plugins","Array","isArray","map","plugin","Object","entries","filter","options","loadedPlugins","arg","pluginFactory","require","default","transform","cssContent","name","sourceMap","css","messages","process","from","to","inline","annotation","undefined","assets","filePaths","buildFilePaths","directories","msg","type","push","file","content","JSON","stringify","dir","glob","sendInfo","envVariables"],"mappings":";;;;;;AAQA,aAAa;AACb;AACA,aAAa;AACb;AACA;;;;AAEA,IAAIA;AAEG,MAAMC,OAAO,OAAOC;IACzB,IAAIC,SAAS,0HAAc;IAC3B,IAAI,OAAOA,WAAW,YAAY;QAChCA,SAAS,MAAMA,OAAO;YAAEC,KAAK;QAAc;IAC7C;IACA,IAAI,OAAOD,WAAW,aAAa;QACjC,MAAM,IAAIE,MACR;IAEJ;IACA,IAAIC;IACJ,IAAIC,MAAMC,OAAO,CAACL,OAAOG,OAAO,GAAG;QACjCA,UAAUH,OAAOG,OAAO,CAACG,GAAG,CAAC,CAACC;YAC5B,IAAIH,MAAMC,OAAO,CAACE,SAAS;gBACzB,OAAOA;YACT,OAAO,IAAI,OAAOA,WAAW,UAAU;gBACrC,OAAO;oBAACA;oBAAQ,CAAC;iBAAE;YACrB,OAAO;gBACL,OAAOA;YACT;QACF;IACF,OAAO,IAAI,OAAOP,OAAOG,OAAO,KAAK,UAAU;QAC7CA,UAAUK,OAAOC,OAAO,CAACT,OAAOG,OAAO,EAAEO,MAAM,CAAC,CAAC,GAAGC,QAAQ,GAAKA;IACnE,OAAO;QACLR,UAAU,EAAE;IACd;IACA,MAAMS,gBAAgBT,QAAQG,GAAG,CAAC,CAACC;QACjC,IAAIH,MAAMC,OAAO,CAACE,SAA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C5C;YACF,KAAK;gBACHT,YAAYG,IAAI,CAAC;oBAAC,IAAA,yIAAM,EAACF,IAAIO,GAAG;oBAAG;iBAAK;gBACxC;YACF;gBAEE;QACJ;IACF;IACAzC,IAAI2C,QAAQ,CAAC;QACXR,MAAM;QACNJ;QACAE;QACAD;QACAY,cAAc,IAAA,sJAAmB;IACnC;IACA,OAAO;QACLtB;QACAf,KAAKc,YAAYkB,KAAKC,SAAS,CAACjC,OAAOsB;QACvCC;IACF;AACF"}}] -} \ No newline at end of file diff --git a/.next.prev/build/chunks/[root-of-the-server]__0x8m--0._.js b/.next.prev/build/chunks/[root-of-the-server]__0x8m--0._.js deleted file mode 100644 index f69a32c5..00000000 --- a/.next.prev/build/chunks/[root-of-the-server]__0x8m--0._.js +++ /dev/null @@ -1,476 +0,0 @@ -module.exports = [ -"[externals]/path [external] (path, cjs)", ((__turbopack_context__, module, exports) => { - -const mod = __turbopack_context__.x("path", () => require("path")); - -module.exports = mod; -}), -"[turbopack-node]/transforms/transforms.ts [webpack_loaders] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -/** - * Shared utilities for our 2 transform implementations. - */ __turbopack_context__.s([ - "fromPath", - ()=>fromPath, - "getReadEnvVariables", - ()=>getReadEnvVariables, - "toPath", - ()=>toPath -]); -var __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/path [external] (path, cjs)"); -; -const contextDir = process.cwd(); -const toPath = (file)=>{ - const relPath = (0, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["relative"])(contextDir, file); - if ((0, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["isAbsolute"])(relPath)) { - throw new Error(`Cannot depend on path (${file}) outside of root directory (${contextDir})`); - } - return __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["sep"] !== '/' ? relPath.replaceAll(__TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["sep"], '/') : relPath; -}; -const fromPath = (path)=>{ - return (0, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["join"])(/* turbopackIgnore: true */ contextDir, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["sep"] !== '/' ? path.replaceAll('/', __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["sep"]) : path); -}; -// Patch process.env to track which env vars are read -const originalEnv = process.env; -const readEnvVars = new Set(); -process.env = new Proxy(originalEnv, { - get (target, prop) { - if (typeof prop === 'string') { - // We register the env var as dependency on the - // current transform and all future transforms - // since the env var might be cached in module scope - // and influence them all - readEnvVars.add(prop); - } - return Reflect.get(target, prop); - }, - set (target, prop, value) { - return Reflect.set(target, prop, value); - } -}); -function getReadEnvVariables() { - return Array.from(readEnvVars); -} -}), -"[externals]/fs [external] (fs, cjs)", ((__turbopack_context__, module, exports) => { - -const mod = __turbopack_context__.x("fs", () => require("fs")); - -module.exports = mod; -}), -"[externals]/next/dist/compiled/loader-runner [external] (next/dist/compiled/loader-runner, cjs)", ((__turbopack_context__, module, exports) => { - -const mod = __turbopack_context__.x("next/dist/compiled/loader-runner", () => require("next/dist/compiled/loader-runner")); - -module.exports = mod; -}), -"[turbopack-node]/transforms/webpack-loaders.ts [webpack_loaders] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([ - "default", - ()=>transform -]); -var __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/path [external] (path, cjs)"); -var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$compiled$2f$stacktrace$2d$parser$2f$index$2e$js__$5b$webpack_loaders$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/compiled/stacktrace-parser/index.js [webpack_loaders] (ecmascript)"); -var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$error$2e$ts__$5b$webpack_loaders$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/error.ts [webpack_loaders] (ecmascript)"); -var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$webpack_loaders$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/transforms/transforms.ts [webpack_loaders] (ecmascript)"); -var __TURBOPACK__imported__module__$5b$externals$5d2f$fs__$5b$external$5d$__$28$fs$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/fs [external] (fs, cjs)"); -; -; -; -; -; -; -const { runLoaders } = __turbopack_context__.r("[externals]/next/dist/compiled/loader-runner [external] (next/dist/compiled/loader-runner, cjs)"); -const contextDir = process.cwd(); -const LogType = Object.freeze({ - error: 'error', - warn: 'warn', - info: 'info', - log: 'log', - debug: 'debug', - trace: 'trace', - group: 'group', - groupCollapsed: 'groupCollapsed', - groupEnd: 'groupEnd', - profile: 'profile', - profileEnd: 'profileEnd', - time: 'time', - clear: 'clear', - status: 'status' -}); -const loaderFlag = 'LOADER_EXECUTION'; -const cutOffByFlag = (stack, flag)=>{ - const errorStack = stack.split('\n'); - for(let i = 0; i < errorStack.length; i++){ - if (errorStack[i].includes(flag)) { - errorStack.length = i; - } - } - return errorStack.join('\n'); -}; -/** - * @param stack stack trace - * @returns stack trace without the loader execution flag included - */ const cutOffLoaderExecution = (stack)=>cutOffByFlag(stack, loaderFlag); -class DummySpan { - traceChild() { - return new DummySpan(); - } - traceFn(fn) { - return fn(this); - } - async traceAsyncFn(fn) { - return await fn(this); - } - stop() { - return; - } -} -const transform = (ipc, content, name, query, loaders, sourceMap)=>{ - return new Promise((resolve, reject)=>{ - const resource = (0, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["resolve"])(contextDir, name); - const resourceDir = (0, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["dirname"])(resource); - const loadersWithOptions = loaders.map((loader)=>typeof loader === 'string' ? { - loader, - options: {} - } : loader); - const logs = []; - runLoaders({ - resource: resource + query, - context: { - _module: { - // For debugging purpose, if someone find context is not full compatible to - // webpack they can guess this comes from turbopack - __reserved: 'TurbopackContext' - }, - currentTraceSpan: new DummySpan(), - rootContext: contextDir, - sourceMap, - getOptions () { - const entry = this.loaders[this.loaderIndex]; - return entry.options && typeof entry.options === 'object' ? entry.options : {}; - }, - fs: { - readFile (p, optionsOrCb, maybeCb) { - ipc.sendRequest({ - type: 'trackFileRead', - file: (0, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["relative"])(contextDir, (0, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["resolve"])(p)) - }).then(()=>{ - __TURBOPACK__imported__module__$5b$externals$5d2f$fs__$5b$external$5d$__$28$fs$2c$__cjs$29$__["default"].readFile(p, optionsOrCb, maybeCb); - }, (err)=>{ - ipc.sendError(err); - // sendError is going to stop the process, no need to call callback - }); - } - }, - getResolve: (options)=>{ - const rustOptions = { - aliasFields: undefined, - conditionNames: undefined, - noPackageJson: false, - extensions: undefined, - mainFields: undefined, - noExportsField: false, - mainFiles: undefined, - noModules: false, - preferRelative: false - }; - if (options.alias) { - if (!Array.isArray(options.alias) || options.alias.length > 0) { - throw new Error('alias resolve option is not supported'); - } - } - if (options.aliasFields) { - if (!Array.isArray(options.aliasFields)) { - throw new Error('aliasFields resolve option must be an array'); - } - rustOptions.aliasFields = options.aliasFields; - } - if (options.conditionNames) { - if (!Array.isArray(options.conditionNames)) { - throw new Error('conditionNames resolve option must be an array'); - } - rustOptions.conditionNames = options.conditionNames; - } - if (options.descriptionFiles) { - if (!Array.isArray(options.descriptionFiles) || options.descriptionFiles.length > 0) { - throw new Error('descriptionFiles resolve option is not supported'); - } - rustOptions.noPackageJson = true; - } - if (options.extensions) { - if (!Array.isArray(options.extensions)) { - throw new Error('extensions resolve option must be an array'); - } - rustOptions.extensions = options.extensions; - } - if (options.mainFields) { - if (!Array.isArray(options.mainFields)) { - throw new Error('mainFields resolve option must be an array'); - } - rustOptions.mainFields = options.mainFields; - } - if (options.exportsFields) { - if (!Array.isArray(options.exportsFields) || options.exportsFields.length > 0) { - throw new Error('exportsFields resolve option is not supported'); - } - rustOptions.noExportsField = true; - } - if (options.mainFiles) { - if (!Array.isArray(options.mainFiles)) { - throw new Error('mainFiles resolve option must be an array'); - } - rustOptions.mainFiles = options.mainFiles; - } - if (options.modules) { - if (!Array.isArray(options.modules) || options.modules.length > 0) { - throw new Error('modules resolve option is not supported'); - } - rustOptions.noModules = true; - } - if (options.restrictions) { - // TODO This is ignored for now - } - if (options.dependencyType) { - // TODO This is ignored for now - } - if (options.preferRelative) { - if (typeof options.preferRelative !== 'boolean') { - throw new Error('preferRelative resolve option must be a boolean'); - } - rustOptions.preferRelative = options.preferRelative; - } - return (lookupPath, request, callback)=>{ - if (__TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["default"].isAbsolute(request)) { - // Relativize absolute requests. Turbopack disallow them in JS code, but here it's - // generated programatically and there is a smaller problem of - // non-cacheable/non-portable builds. - request = __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["default"].relative(lookupPath, request); - // On Windows, the path might be still absolute if it's on a different drive. Just - // let the resolver throw the error in that case. - if (!__TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["default"].isAbsolute(request) && request.split(__TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["default"].sep)[0] !== '..') { - request = './' + request; - } - } - const promise = ipc.sendRequest({ - type: 'resolve', - options: rustOptions, - lookupPath: (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$webpack_loaders$5d$__$28$ecmascript$29$__["toPath"])(lookupPath), - request - }).then((unknownResult)=>{ - let result = unknownResult; - if (result && typeof result.path === 'string') { - return (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$webpack_loaders$5d$__$28$ecmascript$29$__["fromPath"])(result.path); - } else { - throw Error('Expected { path: string } from resolve request'); - } - }); - if (callback) { - promise.then((result)=>callback(undefined, result), (err)=>callback(err)).catch((err)=>{ - ipc.sendError(err); - }); - } else { - return promise; - } - }; - }, - emitWarning: makeErrorEmitter('warning', ipc), - emitError: makeErrorEmitter('error', ipc), - getLogger (name) { - const logFn = (logType, ...args)=>{ - let trace; - switch(logType){ - case LogType.warn: - case LogType.error: - case LogType.trace: - case LogType.debug: - trace = (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$compiled$2f$stacktrace$2d$parser$2f$index$2e$js__$5b$webpack_loaders$5d$__$28$ecmascript$29$__["parse"])(cutOffLoaderExecution(new Error('Trace').stack).split('\n').slice(3).join('\n')); - break; - default: - break; - } - // Batch logs messages to be sent at the end - logs.push({ - time: Date.now(), - logType, - args, - trace - }); - }; - let timers; - let timersAggregates; - // See https://github.com/webpack/webpack/blob/a48c34b34d2d6c44f9b2b221d7baf278d34ac0be/lib/logging/Logger.js#L8 - return { - error: logFn.bind(this, LogType.error), - warn: logFn.bind(this, LogType.warn), - info: logFn.bind(this, LogType.info), - log: logFn.bind(this, LogType.log), - debug: logFn.bind(this, LogType.debug), - assert: (assertion, ...args)=>{ - if (!assertion) { - logFn(LogType.error, ...args); - } - }, - trace: logFn.bind(this, LogType.trace), - clear: logFn.bind(this, LogType.clear), - status: logFn.bind(this, LogType.status), - group: logFn.bind(this, LogType.group), - groupCollapsed: logFn.bind(this, LogType.groupCollapsed), - groupEnd: logFn.bind(this, LogType.groupEnd), - profile: logFn.bind(this, LogType.profile), - profileEnd: logFn.bind(this, LogType.profileEnd), - time: (label)=>{ - timers = timers || new Map(); - timers.set(label, process.hrtime()); - }, - timeLog: (label)=>{ - const prev = timers && timers.get(label); - if (!prev) { - throw new Error(`No such label '${label}' for WebpackLogger.timeLog()`); - } - const time = process.hrtime(prev); - logFn(LogType.time, [ - label, - ...time - ]); - }, - timeEnd: (label)=>{ - const prev = timers && timers.get(label); - if (!prev) { - throw new Error(`No such label '${label}' for WebpackLogger.timeEnd()`); - } - const time = process.hrtime(prev); - /** @type {Map} */ timers.delete(label); - logFn(LogType.time, [ - label, - ...time - ]); - }, - timeAggregate: (label)=>{ - const prev = timers && timers.get(label); - if (!prev) { - throw new Error(`No such label '${label}' for WebpackLogger.timeAggregate()`); - } - const time = process.hrtime(prev); - /** @type {Map} */ timers.delete(label); - /** @type {Map} */ timersAggregates = timersAggregates || new Map(); - const current = timersAggregates.get(label); - if (current !== undefined) { - if (time[1] + current[1] > 1e9) { - time[0] += current[0] + 1; - time[1] = time[1] - 1e9 + current[1]; - } else { - time[0] += current[0]; - time[1] += current[1]; - } - } - timersAggregates.set(label, time); - }, - timeAggregateEnd: (label)=>{ - if (timersAggregates === undefined) return; - const time = timersAggregates.get(label); - if (time === undefined) return; - timersAggregates.delete(label); - logFn(LogType.time, [ - label, - ...time - ]); - } - }; - } - }, - loaders: loadersWithOptions.map((loader)=>({ - loader: /*TURBOPACK member replacement*/ __turbopack_context__.x.resolve(loader.loader, { - paths: [ - contextDir, - resourceDir - ] - }), - options: loader.options - })), - readResource: (_filename, callback)=>{ - // TODO assuming that filename === resource, but loaders might change that - let data = typeof content === 'string' ? Buffer.from(content, 'utf-8') : Buffer.from(content.binary, 'base64'); - callback(null, data); - } - }, (err, result)=>{ - if (logs.length) { - ipc.sendInfo({ - type: 'log', - logs: logs - }); - logs.length = 0; - } - ipc.sendInfo({ - type: 'dependencies', - envVariables: (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$webpack_loaders$5d$__$28$ecmascript$29$__["getReadEnvVariables"])(), - filePaths: result.fileDependencies.map(__TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$webpack_loaders$5d$__$28$ecmascript$29$__["toPath"]), - directories: result.contextDependencies.map((dep)=>[ - (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$webpack_loaders$5d$__$28$ecmascript$29$__["toPath"])(dep), - '**' - ]) - }); - if (err) { - // Resolve loader paths to include in the error message using - // the same "(from ...)" style as webpack's format-webpack-messages. - const loaderPathList = loadersWithOptions.map((l)=>{ - try { - return /*TURBOPACK member replacement*/ __turbopack_context__.x.resolve(l.loader, { - paths: [ - contextDir, - resourceDir - ] - }); - } catch { - return l.loader; - } - }); - const loaderPaths = loaderPathList.join(', '); - if (!(err instanceof Error)) { - // String throws lose their stack trace, so we create a - // synthetic one pointing at the loader. - const wrappedErr = new Error(`${String(err)}\n (from ${loaderPaths})`); - wrappedErr.stack = `Error: ${String(err)}\n at loader (${loaderPaths})`; - return reject(wrappedErr); - } - // Only append "(from ...)" when no loader path is already - // visible in the stack trace, to avoid redundant noise. - const stack = typeof err.stack === 'string' ? err.stack : ''; - if (!loaderPathList.some((p)=>stack.includes(p))) { - err.message += `\n (from ${loaderPaths})`; - } - return reject(err); - } - if (!result.result) return reject(new Error('No result from loaders')); - const [source, map] = result.result; - const resolvedValue = { - source: Buffer.isBuffer(source) ? { - binary: source.toString('base64') - } : source, - map: typeof map === 'string' ? map : typeof map === 'object' ? JSON.stringify(map) : undefined - }; - // Delay resolution by one event loop turn to catch deferred errors - // from loaders (e.g. unhandled Promise rejections, setTimeout throws). - // During this delay, uncaughtException/unhandledRejection handlers can - // fire and send the error via IPC before we send the 'end' message. - setTimeout(()=>resolve(resolvedValue), 0); - }); - }); -}; -; -function makeErrorEmitter(severity, ipc) { - return function(error) { - ipc.sendInfo({ - type: 'emittedError', - severity: severity, - error: (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$error$2e$ts__$5b$webpack_loaders$5d$__$28$ecmascript$29$__["structuredError"])(error) - }); - }; -} -}), -]; - -//# sourceMappingURL=%5Broot-of-the-server%5D__0x8m--0._.js.map \ No newline at end of file diff --git a/.next.prev/build/chunks/[root-of-the-server]__0x8m--0._.js.map b/.next.prev/build/chunks/[root-of-the-server]__0x8m--0._.js.map deleted file mode 100644 index e71986b2..00000000 --- a/.next.prev/build/chunks/[root-of-the-server]__0x8m--0._.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [ - {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/transforms/transforms.ts"],"sourcesContent":["/**\n * Shared utilities for our 2 transform implementations.\n */\n\nimport type { Channel as Ipc } from '../types'\nimport { relative, isAbsolute, join, sep } from 'path'\nimport { type StructuredError } from '../error'\nimport { type StackFrame } from '../compiled/stacktrace-parser'\n\nexport type IpcInfoMessage =\n | {\n type: 'dependencies'\n envVariables?: string[]\n directories?: Array<[string, string]>\n filePaths?: string[]\n buildFilePaths?: string[]\n }\n | {\n type: 'emittedError'\n severity: 'warning' | 'error'\n error: StructuredError\n }\n | {\n type: 'log'\n logs: Array<{\n time: number\n logType: string\n args: any[]\n trace?: StackFrame[]\n }>\n }\n\nexport type IpcRequestMessage =\n | {\n type: 'resolve'\n options: any\n lookupPath: string\n request: string\n }\n | {\n type: 'trackFileRead'\n file: string\n }\n\nexport type TransformIpc = Ipc\n\nconst contextDir = process.cwd()\nexport const toPath = (file: string) => {\n const relPath = relative(contextDir, file)\n if (isAbsolute(relPath)) {\n throw new Error(\n `Cannot depend on path (${file}) outside of root directory (${contextDir})`\n )\n }\n return sep !== '/' ? relPath.replaceAll(sep, '/') : relPath\n}\nexport const fromPath = (path: string) => {\n return join(\n /* turbopackIgnore: true */ contextDir,\n sep !== '/' ? path.replaceAll('/', sep) : path\n )\n}\n\n// Patch process.env to track which env vars are read\nconst originalEnv = process.env\nconst readEnvVars = new Set()\nprocess.env = new Proxy(originalEnv, {\n get(target, prop) {\n if (typeof prop === 'string') {\n // We register the env var as dependency on the\n // current transform and all future transforms\n // since the env var might be cached in module scope\n // and influence them all\n readEnvVars.add(prop)\n }\n return Reflect.get(target, prop)\n },\n set(target, prop, value) {\n return Reflect.set(target, prop, value)\n },\n})\n\nexport function getReadEnvVariables(): string[] {\n return Array.from(readEnvVars)\n}\n"],"names":["contextDir","process","cwd","toPath","file","relPath","Error","replaceAll","fromPath","path","originalEnv","env","readEnvVars","Set","Proxy","get","target","prop","add","Reflect","set","value","getReadEnvVariables","Array","from"],"mappings":"AAAA;;CAEC;;;;;;;;AAGD;;AAyCA,MAAMA,aAAaC,QAAQC,GAAG;AACvB,MAAMC,SAAS,CAACC;IACrB,MAAMC,UAAU,IAAA,6GAAQ,EAACL,YAAYI;IACrC,IAAI,IAAA,+GAAU,EAACC,UAAU;QACvB,MAAM,IAAIC,MACR,CAAC,uBAAuB,EAAEF,KAAK,6BAA6B,EAAEJ,WAAW,CAAC,CAAC;IAE/E;IACA,OAAO,wGAAG,KAAK,MAAMK,QAAQE,UAAU,CAAC,wGAAG,EAAE,OAAOF;AACtD;AACO,MAAMG,WAAW,CAACC;IACvB,OAAO,IAAA,yGAAI,EACT,yBAAyB,GAAGT,YAC5B,wGAAG,KAAK,MAAMS,KAAKF,UAAU,CAAC,KAAK,wGAAG,IAAIE;AAE9C;AAEA,qDAAqD;AACrD,MAAMC,cAAcT,QAAQU,GAAG;AAC/B,MAAMC,cAAc,IAAIC;AACxBZ,QAAQU,GAAG,GAAG,IAAIG,MAAMJ,aAAa;IACnCK,KAAIC,MAAM,EAAEC,IAAI;QACd,IAAI,OAAOA,SAAS,UAAU;YAC5B,+CAA+C;YAC/C,8CAA8C;YAC9C,oDAAoD;YACpD,yBAAyB;YACzBL,YAAYM,GAAG,CAACD;QAClB;QACA,OAAOE,QAAQJ,GAAG,CAACC,QAAQC;IAC7B;IACAG,KAAIJ,MAAM,EAAEC,IAAI,EAAEI,KAAK;QACrB,OAAOF,QAAQC,GAAG,CAACJ,QAAQC,MAAMI;IACnC;AACF;AAEO,SAASC;IACd,OAAOC,MAAMC,IAAI,CAACZ;AACpB"}}, - {"offset": {"line": 70, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/transforms/webpack-loaders.ts"],"sourcesContent":["declare const __turbopack_external_require__: {\n resolve: (name: string, opt?: { paths: string[] }) => string\n} & ((id: string, thunk: () => any, esm?: boolean) => any)\n\nimport type { Channel as Ipc } from '../types'\nimport { dirname, resolve as pathResolve, relative } from 'path'\nimport {\n StackFrame,\n parse as parseStackTrace,\n} from '../compiled/stacktrace-parser'\nimport { structuredError, type StructuredError } from '../error'\nimport {\n fromPath,\n getReadEnvVariables,\n toPath,\n type TransformIpc,\n} from './transforms'\nimport fs from 'fs'\nimport path from 'path'\n\nexport type IpcInfoMessage =\n | {\n type: 'dependencies'\n envVariables?: string[]\n directories?: Array<[string, string]>\n filePaths?: string[]\n buildFilePaths?: string[]\n }\n | {\n type: 'emittedError'\n severity: 'warning' | 'error'\n error: StructuredError\n }\n | {\n type: 'log'\n logs: Array<{\n time: number\n logType: string\n args: any[]\n trace?: StackFrame[]\n }>\n }\n\nexport type IpcRequestMessage = {\n type: 'resolve'\n options: any\n lookupPath: string\n request: string\n}\n\ntype LoaderConfig =\n | string\n | {\n loader: string\n options: { [k: string]: unknown }\n }\n\nconst {\n runLoaders,\n}: typeof import('loader-runner') = require('@vercel/turbopack/loader-runner')\n\nconst contextDir = process.cwd()\n\nconst LogType = Object.freeze({\n error: 'error',\n warn: 'warn',\n info: 'info',\n log: 'log',\n debug: 'debug',\n\n trace: 'trace',\n\n group: 'group',\n groupCollapsed: 'groupCollapsed',\n groupEnd: 'groupEnd',\n\n profile: 'profile',\n profileEnd: 'profileEnd',\n\n time: 'time',\n\n clear: 'clear',\n status: 'status',\n})\n\nconst loaderFlag = 'LOADER_EXECUTION'\n\nconst cutOffByFlag = (stack: string, flag: string): string => {\n const errorStack = stack.split('\\n')\n for (let i = 0; i < errorStack.length; i++) {\n if (errorStack[i].includes(flag)) {\n errorStack.length = i\n }\n }\n return errorStack.join('\\n')\n}\n\n/**\n * @param stack stack trace\n * @returns stack trace without the loader execution flag included\n */\nconst cutOffLoaderExecution = (stack: string): string =>\n cutOffByFlag(stack, loaderFlag)\n\nclass DummySpan {\n traceChild() {\n return new DummySpan()\n }\n\n traceFn(fn: (span: DummySpan) => T): T {\n return fn(this)\n }\n\n async traceAsyncFn(fn: (span: DummySpan) => T | Promise): Promise {\n return await fn(this)\n }\n\n stop() {\n return\n }\n}\n\ntype ResolveOptions = {\n dependencyType?: string\n alias?: Record | unknown[]\n aliasFields?: string[]\n cacheWithContext?: boolean\n conditionNames?: string[]\n descriptionFiles?: string[]\n enforceExtension?: boolean\n extensionAlias: Record\n extensions?: string[]\n fallback?: Record\n mainFields?: string[]\n mainFiles?: string[]\n exportsFields?: string[]\n modules?: string[]\n plugins?: unknown[]\n symlinks?: boolean\n unsafeCache?: boolean\n useSyncFileSystemCalls?: boolean\n preferRelative?: boolean\n preferAbsolute?: boolean\n restrictions?: unknown[]\n roots?: string[]\n importFields?: string[]\n}\n\nconst transform = (\n ipc: TransformIpc,\n content: string | { binary: string },\n name: string,\n query: string,\n loaders: LoaderConfig[],\n sourceMap: boolean\n) => {\n return new Promise((resolve, reject) => {\n const resource = pathResolve(contextDir, name)\n const resourceDir = dirname(resource)\n\n const loadersWithOptions = loaders.map((loader) =>\n typeof loader === 'string' ? { loader, options: {} } : loader\n )\n\n const logs: Array<{\n time: number\n logType: string\n args: unknown[]\n trace: StackFrame[] | undefined\n }> = []\n\n runLoaders(\n {\n resource: resource + query,\n context: {\n _module: {\n // For debugging purpose, if someone find context is not full compatible to\n // webpack they can guess this comes from turbopack\n __reserved: 'TurbopackContext',\n },\n currentTraceSpan: new DummySpan(),\n rootContext: contextDir,\n sourceMap,\n getOptions() {\n const entry = this.loaders[this.loaderIndex]\n return entry.options && typeof entry.options === 'object'\n ? entry.options\n : {}\n },\n fs: {\n readFile(p: string, optionsOrCb: any, maybeCb: any) {\n ipc\n .sendRequest({\n type: 'trackFileRead',\n file: relative(contextDir, pathResolve(p)),\n })\n .then(\n () => {\n fs.readFile(p, optionsOrCb, maybeCb)\n },\n (err) => {\n ipc.sendError(err)\n // sendError is going to stop the process, no need to call callback\n }\n )\n },\n },\n getResolve: (options: ResolveOptions) => {\n const rustOptions = {\n aliasFields: undefined as undefined | string[],\n conditionNames: undefined as undefined | string[],\n noPackageJson: false,\n extensions: undefined as undefined | string[],\n mainFields: undefined as undefined | string[],\n noExportsField: false,\n mainFiles: undefined as undefined | string[],\n noModules: false,\n preferRelative: false,\n }\n if (options.alias) {\n if (!Array.isArray(options.alias) || options.alias.length > 0) {\n throw new Error('alias resolve option is not supported')\n }\n }\n if (options.aliasFields) {\n if (!Array.isArray(options.aliasFields)) {\n throw new Error('aliasFields resolve option must be an array')\n }\n rustOptions.aliasFields = options.aliasFields\n }\n if (options.conditionNames) {\n if (!Array.isArray(options.conditionNames)) {\n throw new Error(\n 'conditionNames resolve option must be an array'\n )\n }\n rustOptions.conditionNames = options.conditionNames\n }\n if (options.descriptionFiles) {\n if (\n !Array.isArray(options.descriptionFiles) ||\n options.descriptionFiles.length > 0\n ) {\n throw new Error(\n 'descriptionFiles resolve option is not supported'\n )\n }\n rustOptions.noPackageJson = true\n }\n if (options.extensions) {\n if (!Array.isArray(options.extensions)) {\n throw new Error('extensions resolve option must be an array')\n }\n rustOptions.extensions = options.extensions\n }\n if (options.mainFields) {\n if (!Array.isArray(options.mainFields)) {\n throw new Error('mainFields resolve option must be an array')\n }\n rustOptions.mainFields = options.mainFields\n }\n if (options.exportsFields) {\n if (\n !Array.isArray(options.exportsFields) ||\n options.exportsFields.length > 0\n ) {\n throw new Error('exportsFields resolve option is not supported')\n }\n rustOptions.noExportsField = true\n }\n if (options.mainFiles) {\n if (!Array.isArray(options.mainFiles)) {\n throw new Error('mainFiles resolve option must be an array')\n }\n rustOptions.mainFiles = options.mainFiles\n }\n if (options.modules) {\n if (\n !Array.isArray(options.modules) ||\n options.modules.length > 0\n ) {\n throw new Error('modules resolve option is not supported')\n }\n rustOptions.noModules = true\n }\n if (options.restrictions) {\n // TODO This is ignored for now\n }\n if (options.dependencyType) {\n // TODO This is ignored for now\n }\n if (options.preferRelative) {\n if (typeof options.preferRelative !== 'boolean') {\n throw new Error(\n 'preferRelative resolve option must be a boolean'\n )\n }\n rustOptions.preferRelative = options.preferRelative\n }\n return (\n lookupPath: string,\n request: string,\n callback?: (err?: Error, result?: string) => void\n ) => {\n if (path.isAbsolute(request)) {\n // Relativize absolute requests. Turbopack disallow them in JS code, but here it's\n // generated programatically and there is a smaller problem of\n // non-cacheable/non-portable builds.\n request = path.relative(lookupPath, request)\n\n // On Windows, the path might be still absolute if it's on a different drive. Just\n // let the resolver throw the error in that case.\n if (\n !path.isAbsolute(request) &&\n request.split(path.sep)[0] !== '..'\n ) {\n request = './' + request\n }\n }\n\n const promise = ipc\n .sendRequest({\n type: 'resolve',\n options: rustOptions,\n lookupPath: toPath(lookupPath),\n request,\n })\n .then((unknownResult) => {\n let result = unknownResult as { path: string }\n if (result && typeof result.path === 'string') {\n return fromPath(result.path)\n } else {\n throw Error(\n 'Expected { path: string } from resolve request'\n )\n }\n })\n if (callback) {\n promise\n .then(\n (result) => callback(undefined, result),\n (err) => callback(err)\n )\n .catch((err) => {\n ipc.sendError(err)\n })\n } else {\n return promise\n }\n }\n },\n emitWarning: makeErrorEmitter('warning', ipc),\n emitError: makeErrorEmitter('error', ipc),\n getLogger(name: unknown) {\n const logFn = (logType: string, ...args: unknown[]) => {\n let trace: StackFrame[] | undefined\n switch (logType) {\n case LogType.warn:\n case LogType.error:\n case LogType.trace:\n case LogType.debug:\n trace = parseStackTrace(\n cutOffLoaderExecution(new Error('Trace').stack!)\n .split('\\n')\n .slice(3)\n .join('\\n')\n )\n break\n default:\n // TODO: do we need to handle this?\n break\n }\n // Batch logs messages to be sent at the end\n logs.push({\n time: Date.now(),\n logType,\n args,\n trace,\n })\n }\n let timers: Map | undefined\n let timersAggregates: Map | undefined\n\n // See https://github.com/webpack/webpack/blob/a48c34b34d2d6c44f9b2b221d7baf278d34ac0be/lib/logging/Logger.js#L8\n return {\n error: logFn.bind(this, LogType.error),\n warn: logFn.bind(this, LogType.warn),\n info: logFn.bind(this, LogType.info),\n log: logFn.bind(this, LogType.log),\n debug: logFn.bind(this, LogType.debug),\n assert: (assertion: boolean, ...args: any[]) => {\n if (!assertion) {\n logFn(LogType.error, ...args)\n }\n },\n trace: logFn.bind(this, LogType.trace),\n clear: logFn.bind(this, LogType.clear),\n status: logFn.bind(this, LogType.status),\n group: logFn.bind(this, LogType.group),\n groupCollapsed: logFn.bind(this, LogType.groupCollapsed),\n groupEnd: logFn.bind(this, LogType.groupEnd),\n profile: logFn.bind(this, LogType.profile),\n profileEnd: logFn.bind(this, LogType.profileEnd),\n time: (label: string) => {\n timers = timers || new Map()\n timers.set(label, process.hrtime())\n },\n timeLog: (label: string) => {\n const prev = timers && timers.get(label)\n if (!prev) {\n throw new Error(\n `No such label '${label}' for WebpackLogger.timeLog()`\n )\n }\n const time = process.hrtime(prev)\n logFn(LogType.time, [label, ...time])\n },\n timeEnd: (label: string) => {\n const prev = timers && timers.get(label)\n if (!prev) {\n throw new Error(\n `No such label '${label}' for WebpackLogger.timeEnd()`\n )\n }\n const time = process.hrtime(prev)\n /** @type {Map} */\n timers!.delete(label)\n logFn(LogType.time, [label, ...time])\n },\n timeAggregate: (label: string) => {\n const prev = timers && timers.get(label)\n if (!prev) {\n throw new Error(\n `No such label '${label}' for WebpackLogger.timeAggregate()`\n )\n }\n const time = process.hrtime(prev)\n /** @type {Map} */\n timers!.delete(label)\n /** @type {Map} */\n timersAggregates = timersAggregates || new Map()\n const current = timersAggregates.get(label)\n if (current !== undefined) {\n if (time[1] + current[1] > 1e9) {\n time[0] += current[0] + 1\n time[1] = time[1] - 1e9 + current[1]\n } else {\n time[0] += current[0]\n time[1] += current[1]\n }\n }\n timersAggregates.set(label, time)\n },\n timeAggregateEnd: (label: string) => {\n if (timersAggregates === undefined) return\n const time = timersAggregates.get(label)\n if (time === undefined) return\n timersAggregates.delete(label)\n logFn(LogType.time, [label, ...time])\n },\n }\n },\n },\n\n loaders: loadersWithOptions.map((loader) => ({\n loader: __turbopack_external_require__.resolve(loader.loader, {\n paths: [contextDir, resourceDir],\n }),\n options: loader.options,\n })),\n readResource: (_filename, callback) => {\n // TODO assuming that filename === resource, but loaders might change that\n let data =\n typeof content === 'string'\n ? Buffer.from(content, 'utf-8')\n : Buffer.from(content.binary, 'base64')\n callback(null, data)\n },\n },\n (err, result) => {\n if (logs.length) {\n ipc.sendInfo({ type: 'log', logs: logs })\n logs.length = 0\n }\n ipc.sendInfo({\n type: 'dependencies',\n envVariables: getReadEnvVariables(),\n filePaths: result.fileDependencies.map(toPath),\n directories: result.contextDependencies.map((dep) => [\n toPath(dep),\n '**',\n ]),\n })\n if (err) {\n // Resolve loader paths to include in the error message using\n // the same \"(from ...)\" style as webpack's format-webpack-messages.\n const loaderPathList = loadersWithOptions.map((l) => {\n try {\n return __turbopack_external_require__.resolve(l.loader, {\n paths: [contextDir, resourceDir],\n })\n } catch {\n return l.loader\n }\n })\n const loaderPaths = loaderPathList.join(', ')\n\n if (!(err instanceof Error)) {\n // String throws lose their stack trace, so we create a\n // synthetic one pointing at the loader.\n const wrappedErr = new Error(\n `${String(err)}\\n (from ${loaderPaths})`\n )\n wrappedErr.stack = `Error: ${String(err)}\\n at loader (${loaderPaths})`\n return reject(wrappedErr)\n }\n\n // Only append \"(from ...)\" when no loader path is already\n // visible in the stack trace, to avoid redundant noise.\n const stack = typeof err.stack === 'string' ? err.stack : ''\n if (!loaderPathList.some((p) => stack.includes(p))) {\n err.message += `\\n (from ${loaderPaths})`\n }\n return reject(err)\n }\n if (!result.result) return reject(new Error('No result from loaders'))\n const [source, map] = result.result\n const resolvedValue = {\n source: Buffer.isBuffer(source)\n ? { binary: source.toString('base64') }\n : source,\n map:\n typeof map === 'string'\n ? map\n : typeof map === 'object'\n ? JSON.stringify(map)\n : undefined,\n }\n // Delay resolution by one event loop turn to catch deferred errors\n // from loaders (e.g. unhandled Promise rejections, setTimeout throws).\n // During this delay, uncaughtException/unhandledRejection handlers can\n // fire and send the error via IPC before we send the 'end' message.\n setTimeout(() => resolve(resolvedValue), 0)\n }\n )\n })\n}\n\nexport { transform as default }\n\nfunction makeErrorEmitter(\n severity: 'warning' | 'error',\n ipc: Ipc\n) {\n return function (error: Error | string) {\n ipc.sendInfo({\n type: 'emittedError',\n severity: severity,\n error: structuredError(error),\n })\n }\n}\n"],"names":["runLoaders","contextDir","process","cwd","LogType","Object","freeze","error","warn","info","log","debug","trace","group","groupCollapsed","groupEnd","profile","profileEnd","time","clear","status","loaderFlag","cutOffByFlag","stack","flag","errorStack","split","i","length","includes","join","cutOffLoaderExecution","DummySpan","traceChild","traceFn","fn","traceAsyncFn","stop","transform","ipc","content","name","query","loaders","sourceMap","Promise","resolve","reject","resource","resourceDir","loadersWithOptions","map","loader","options","logs","context","_module","__reserved","currentTraceSpan","rootContext","getOptions","entry","loaderIndex","fs","readFile","p","optionsOrCb","maybeCb","sendRequest","type","file","then","err","sendError","getResolve","rustOptions","aliasFields","undefined","conditionNames","noPackageJson","extensions","mainFields","noExportsField","mainFiles","noModules","preferRelative","alias","Array","isArray","Error","descriptionFiles","exportsFields","modules","restrictions","dependencyType","lookupPath","request","callback","isAbsolute","relative","sep","promise","unknownResult","result","path","catch","emitWarning","makeErrorEmitter","emitError","getLogger","logFn","logType","args","slice","push","Date","now","timers","timersAggregates","bind","assert","assertion","label","Map","set","hrtime","timeLog","prev","get","timeEnd","delete","timeAggregate","current","timeAggregateEnd","paths","readResource","_filename","data","Buffer","from","binary","sendInfo","envVariables","filePaths","fileDependencies","directories","contextDependencies","dep","loaderPathList","l","loaderPaths","wrappedErr","String","some","message","source","resolvedValue","isBuffer","toString","JSON","stringify","setTimeout","severity"],"mappings":";;;;AAKA;AACA;AAIA;AACA;AAMA;;;;;;;AAwCA,MAAM,EACJA,UAAU,EACX;AAED,MAAMC,aAAaC,QAAQC,GAAG;AAE9B,MAAMC,UAAUC,OAAOC,MAAM,CAAC;IAC5BC,OAAO;IACPC,MAAM;IACNC,MAAM;IACNC,KAAK;IACLC,OAAO;IAEPC,OAAO;IAEPC,OAAO;IACPC,gBAAgB;IAChBC,UAAU;IAEVC,SAAS;IACTC,YAAY;IAEZC,MAAM;IAENC,OAAO;IACPC,QAAQ;AACV;AAEA,MAAMC,aAAa;AAEnB,MAAMC,eAAe,CAACC,OAAeC;IACnC,MAAMC,aAAaF,MAAMG,KAAK,CAAC;IAC/B,IAAK,IAAIC,IAAI,GAAGA,IAAIF,WAAWG,MAAM,EAAED,IAAK;QAC1C,IAAIF,UAAU,CAACE,EAAE,CAACE,QAAQ,CAACL,OAAO;YAChCC,WAAWG,MAAM,GAAGD;QACtB;IACF;IACA,OAAOF,WAAWK,IAAI,CAAC;AACzB;AAEA;;;CAGC,GACD,MAAMC,wBAAwB,CAACR,QAC7BD,aAAaC,OAAOF;AAEtB,MAAMW;IACJC,aAAa;QACX,OAAO,IAAID;IACb;IAEAE,QAAWC,EAA0B,EAAK;QACxC,OAAOA,GAAG,IAAI;IAChB;IAEA,MAAMC,aAAgBD,EAAuC,EAAc;QACzE,OAAO,MAAMA,GAAG,IAAI;IACtB;IAEAE,OAAO;QACL;IACF;AACF;AA4BA,MAAMC,YAAY,CAChBC,KACAC,SACAC,MACAC,OACAC,SACAC;IAEA,OAAO,IAAIC,QAAQ,CAACC,SAASC;QAC3B,MAAMC,WAAW,IAAA,4GAAW,EAAC/C,YAAYwC;QACzC,MAAMQ,cAAc,IAAA,4GAAO,EAACD;QAE5B,MAAME,qBAAqBP,QAAQQ,GAAG,CAAC,CAACC,SACt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,IAAIjD,KAAK,KAAK,WAAWiD,IAAIjD,KAAK,GAAG;gBAC1D,IAAI,CAAC6H,eAAeK,IAAI,CAAC,CAACxF,IAAM1C,MAAMM,QAAQ,CAACoC,KAAK;oBAClDO,IAAIkF,OAAO,IAAI,CAAC,UAAU,EAAEJ,YAAY,CAAC,CAAC;gBAC5C;gBACA,OAAOvG,OAAOyB;YAChB;YACA,IAAI,CAAC+B,OAAOA,MAAM,EAAE,OAAOxD,OAAO,IAAI0C,MAAM;YAC5C,MAAM,CAACkE,QAAQxG,IAAI,GAAGoD,OAAOA,MAAM;YACnC,MAAMqD,gBAAgB;gBACpBD,QAAQjB,OAAOmB,QAAQ,CAACF,UACpB;oBAAEf,QAAQe,OAAOG,QAAQ,CAAC;gBAAU,IACpCH;gBACJxG,KACE,OAAOA,QAAQ,WACXA,MACA,OAAOA,QAAQ,WACb4G,KAAKC,SAAS,CAAC7G,OACf0B;YACV;YACA,mEAAmE;YACnE,uEAAuE;YACvE,uEAAuE;YACvE,oEAAoE;YACpEoF,WAAW,IAAMnH,QAAQ8G,gBAAgB;QAC3C;IAEJ;AACF;;AAIA,SAASjD,iBACPuD,QAA6B,EAC7B3H,GAA2C;IAE3C,OAAO,SAAUhC,KAAqB;QACpCgC,IAAIsG,QAAQ,CAAC;YACXxE,MAAM;YACN6F,UAAUA;YACV3J,OAAO,IAAA,uIAAe,EAACA;QACzB;IACF;AACF"}}] -} \ No newline at end of file diff --git a/.next.prev/build/chunks/[root-of-the-server]__1f933tp._.js b/.next.prev/build/chunks/[root-of-the-server]__1f933tp._.js deleted file mode 100644 index 7addd6ea..00000000 --- a/.next.prev/build/chunks/[root-of-the-server]__1f933tp._.js +++ /dev/null @@ -1,500 +0,0 @@ -module.exports = [ -"[turbopack-node]/child_process/globals.ts [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => { - -// @ts-ignore -process.turbopack = {}; -}), -"[externals]/node:net [external] (node:net, cjs)", ((__turbopack_context__, module, exports) => { - -const mod = __turbopack_context__.x("node:net", () => require("node:net")); - -module.exports = mod; -}), -"[externals]/node:stream [external] (node:stream, cjs)", ((__turbopack_context__, module, exports) => { - -const mod = __turbopack_context__.x("node:stream", () => require("node:stream")); - -module.exports = mod; -}), -"[turbopack-node]/compiled/stacktrace-parser/index.js [postcss] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([ - "parse", - ()=>parse -]); -if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = ("TURBOPACK compile-time value", "/ROOT/compiled/stacktrace-parser") + "/"; -var n = ""; -function parse(e) { - var r = e.split("\n"); - return r.reduce(function(e, r) { - var n = parseChrome(r) || parseWinjs(r) || parseGecko(r) || parseNode(r) || parseJSC(r); - if (n) { - e.push(n); - } - return e; - }, []); -} -var a = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i; -var l = /\((\S*)(?::(\d+))(?::(\d+))\)/; -function parseChrome(e) { - var r = a.exec(e); - if (!r) { - return null; - } - var u = r[2] && r[2].indexOf("native") === 0; - var t = r[2] && r[2].indexOf("eval") === 0; - var i = l.exec(r[2]); - if (t && i != null) { - r[2] = i[1]; - r[3] = i[2]; - r[4] = i[3]; - } - return { - file: !u ? r[2] : null, - methodName: r[1] || n, - arguments: u ? [ - r[2] - ] : [], - lineNumber: r[3] ? +r[3] : null, - column: r[4] ? +r[4] : null - }; -} -var u = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i; -function parseWinjs(e) { - var r = u.exec(e); - if (!r) { - return null; - } - return { - file: r[2], - methodName: r[1] || n, - arguments: [], - lineNumber: +r[3], - column: r[4] ? +r[4] : null - }; -} -var t = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i; -var i = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i; -function parseGecko(e) { - var r = t.exec(e); - if (!r) { - return null; - } - var a = r[3] && r[3].indexOf(" > eval") > -1; - var l = i.exec(r[3]); - if (a && l != null) { - r[3] = l[1]; - r[4] = l[2]; - r[5] = null; - } - return { - file: r[3], - methodName: r[1] || n, - arguments: r[2] ? r[2].split(",") : [], - lineNumber: r[4] ? +r[4] : null, - column: r[5] ? +r[5] : null - }; -} -var s = /^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i; -function parseJSC(e) { - var r = s.exec(e); - if (!r) { - return null; - } - return { - file: r[3], - methodName: r[1] || n, - arguments: [], - lineNumber: +r[4], - column: r[5] ? +r[5] : null - }; -} -var o = /^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i; -function parseNode(e) { - var r = o.exec(e); - if (!r) { - return null; - } - return { - file: r[2], - methodName: r[1] || n, - arguments: [], - lineNumber: +r[3], - column: r[4] ? +r[4] : null - }; -} -}), -"[turbopack-node]/error.ts [postcss] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([ - "default", - ()=>isError, - "getProperError", - ()=>getProperError, - "structuredError", - ()=>structuredError -]); -var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$compiled$2f$stacktrace$2d$parser$2f$index$2e$js__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/compiled/stacktrace-parser/index.js [postcss] (ecmascript)"); -; -function isError(err) { - return typeof err === 'object' && err !== null && 'name' in err && 'message' in err; -} -function getProperError(err) { - if (isError(err)) { - return err; - } - if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable - ; - return new Error(isPlainObject(err) ? JSON.stringify(err) : err + ''); -} -function getObjectClassLabel(value) { - return Object.prototype.toString.call(value); -} -function isPlainObject(value) { - if (getObjectClassLabel(value) !== '[object Object]') { - return false; - } - const prototype = Object.getPrototypeOf(value); - /** - * this used to be previously: - * - * `return prototype === null || prototype === Object.prototype` - * - * but Edge Runtime expose Object from vm, being that kind of type-checking wrongly fail. - * - * It was changed to the current implementation since it's resilient to serialization. - */ return prototype === null || prototype.hasOwnProperty('isPrototypeOf'); -} -function structuredError(e) { - e = getProperError(e); - return { - name: e.name, - message: e.message, - stack: typeof e.stack === 'string' ? (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$compiled$2f$stacktrace$2d$parser$2f$index$2e$js__$5b$postcss$5d$__$28$ecmascript$29$__["parse"])(e.stack) : [], - cause: e.cause ? structuredError(getProperError(e.cause)) : undefined - }; -} -}), -"[turbopack-node]/child_process/index.ts [postcss] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([ - "IPC", - ()=>IPC -]); -var __TURBOPACK__imported__module__$5b$externals$5d2f$node$3a$net__$5b$external$5d$__$28$node$3a$net$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/node:net [external] (node:net, cjs)"); -var __TURBOPACK__imported__module__$5b$externals$5d2f$node$3a$stream__$5b$external$5d$__$28$node$3a$stream$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/node:stream [external] (node:stream, cjs)"); -var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$error$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/error.ts [postcss] (ecmascript)"); -; -; -; -function createIpc(port) { - const socket = (0, __TURBOPACK__imported__module__$5b$externals$5d2f$node$3a$net__$5b$external$5d$__$28$node$3a$net$2c$__cjs$29$__["createConnection"])({ - port, - host: '127.0.0.1' - }); - /** - * A writable stream that writes to the socket. - * We don't write directly to the socket because we need to - * handle backpressure and wait for the socket to be drained - * before writing more data. - */ const socketWritable = new __TURBOPACK__imported__module__$5b$externals$5d2f$node$3a$stream__$5b$external$5d$__$28$node$3a$stream$2c$__cjs$29$__["Writable"]({ - write (chunk, _enc, cb) { - if (socket.write(chunk)) { - cb(); - } else { - socket.once('drain', cb); - } - }, - final (cb) { - socket.end(cb); - } - }); - const packetQueue = []; - const recvPromiseResolveQueue = []; - function pushPacket(packet) { - const recvPromiseResolve = recvPromiseResolveQueue.shift(); - if (recvPromiseResolve != null) { - recvPromiseResolve(JSON.parse(packet.toString('utf8'))); - } else { - packetQueue.push(packet); - } - } - let state = { - type: 'waiting' - }; - let buffer = Buffer.alloc(0); - socket.once('connect', ()=>{ - socket.setNoDelay(true); - socket.on('data', (chunk)=>{ - buffer = Buffer.concat([ - buffer, - chunk - ]); - loop: while(true){ - switch(state.type){ - case 'waiting': - { - if (buffer.length >= 4) { - const length = buffer.readUInt32BE(0); - buffer = buffer.subarray(4); - state = { - type: 'packet', - length - }; - } else { - break loop; - } - break; - } - case 'packet': - { - if (buffer.length >= state.length) { - const packet = buffer.subarray(0, state.length); - buffer = buffer.subarray(state.length); - state = { - type: 'waiting' - }; - pushPacket(packet); - } else { - break loop; - } - break; - } - default: - invariant(state, (state)=>`Unknown state type: ${state?.type}`); - } - } - }); - }); - // When the socket is closed, this process is no longer needed. - // This might happen e. g. when parent process is killed or - // node.js pool is garbage collected. - socket.once('close', ()=>{ - process.exit(0); - }); - // TODO(lukesandberg): some of the messages being sent are very large and contain lots - // of redundant information. Consider adding gzip compression to our stream. - function doSend(message) { - return new Promise((resolve, reject)=>{ - // Reserve 4 bytes for our length prefix, we will over-write after encoding. - const packet = Buffer.from('0000' + message, 'utf8'); - packet.writeUInt32BE(packet.length - 4, 0); - socketWritable.write(packet, (err)=>{ - process.stderr.write(`TURBOPACK_OUTPUT_D\n`); - process.stdout.write(`TURBOPACK_OUTPUT_D\n`); - if (err != null) { - reject(err); - } else { - resolve(); - } - }); - }); - } - function send(message) { - return doSend(JSON.stringify(message)); - } - function sendReady() { - return doSend(''); - } - return { - async recv () { - const packet = packetQueue.shift(); - if (packet != null) { - return JSON.parse(packet.toString('utf8')); - } - const result = await new Promise((resolve)=>{ - recvPromiseResolveQueue.push((result)=>{ - resolve(result); - }); - }); - return result; - }, - send (message) { - return send(message); - }, - sendReady, - async sendError (error) { - let failed = false; - try { - await send({ - type: 'error', - ...(0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$error$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["structuredError"])(error) - }); - } catch (err) { - // There's nothing we can do about errors that happen after this point, we can't tell anyone - // about them. - console.error('failed to send error back to rust:', err); - failed = true; - } - await new Promise((res)=>socket.end(()=>res())); - process.exit(failed ? 1 : 0); - } - }; -} -const PORT = process.argv[2]; -const IPC = createIpc(parseInt(PORT, 10)); -process.on('uncaughtException', (err)=>{ - IPC.sendError(err); -}); -process.on('unhandledRejection', (reason)=>{ - IPC.sendError(reason instanceof Error ? reason : new Error(String(reason))); -}); -const improveConsole = (name, stream, addStack)=>{ - // @ts-ignore - const original = console[name]; - // @ts-ignore - const stdio = process[stream]; - // @ts-ignore - console[name] = (...args)=>{ - stdio.write(`TURBOPACK_OUTPUT_B\n`); - original(...args); - if (addStack) { - const stack = new Error().stack?.replace(/^.+\n.+\n/, '') + '\n'; - stdio.write('TURBOPACK_OUTPUT_S\n'); - stdio.write(stack); - } - stdio.write('TURBOPACK_OUTPUT_E\n'); - }; -}; -improveConsole('error', 'stderr', true); -improveConsole('warn', 'stderr', true); -improveConsole('count', 'stdout', true); -improveConsole('trace', 'stderr', false); -improveConsole('log', 'stdout', true); -improveConsole('group', 'stdout', true); -improveConsole('groupCollapsed', 'stdout', true); -improveConsole('table', 'stdout', true); -improveConsole('debug', 'stdout', true); -improveConsole('info', 'stdout', true); -improveConsole('dir', 'stdout', true); -improveConsole('dirxml', 'stdout', true); -improveConsole('timeEnd', 'stdout', true); -improveConsole('timeLog', 'stdout', true); -improveConsole('timeStamp', 'stdout', true); -improveConsole('assert', 'stderr', true); -/** - * Utility function to ensure all variants of an enum are handled. - */ function invariant(never, computeMessage) { - throw new Error(`Invariant: ${computeMessage(never)}`); -} -}), -"[turbopack-node]/child_process/evaluate.ts [postcss] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([ - "run", - ()=>run -]); -var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$child_process$2f$index$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/child_process/index.ts [postcss] (ecmascript)"); -; -const ipc = __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$child_process$2f$index$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["IPC"]; -const queue = []; -const run = async (moduleFactory)=>{ - let nextId = 1; - const requests = new Map(); - const internalIpc = { - sendInfo: (message)=>ipc.send({ - type: 'info', - data: message - }), - sendRequest: (message)=>{ - const id = nextId++; - let resolve, reject; - const promise = new Promise((res, rej)=>{ - resolve = res; - reject = rej; - }); - requests.set(id, { - resolve, - reject - }); - return ipc.send({ - type: 'request', - id, - data: message - }).then(()=>promise); - }, - sendError: (error)=>{ - return ipc.sendError(error); - } - }; - // Initialize module and send ready message - let getValue; - try { - const module = await moduleFactory(); - if (typeof module.init === 'function') { - await module.init(); - } - getValue = module.default; - await ipc.sendReady(); - } catch (err) { - await ipc.sendReady(); - await ipc.sendError(err); - } - // Queue handling - let isRunning = false; - const run = async ()=>{ - while(queue.length > 0){ - const args = queue.shift(); - try { - const value = await getValue(internalIpc, ...args); - await ipc.send({ - type: 'end', - data: value === undefined ? undefined : JSON.stringify(value, null, 2), - duration: 0 - }); - } catch (e) { - await ipc.sendError(e); - } - } - isRunning = false; - }; - // Communication handling - while(true){ - const msg = await ipc.recv(); - switch(msg.type){ - case 'evaluate': - { - queue.push(msg.args); - if (!isRunning) { - isRunning = true; - run(); - } - break; - } - case 'result': - { - const request = requests.get(msg.id); - if (request) { - requests.delete(msg.id); - if (msg.error) { - request.reject(new Error(msg.error)); - } else { - request.resolve(msg.data); - } - } - break; - } - default: - { - console.error('unexpected message type', msg.type); - process.exit(1); - } - } - } -}; -}), -"[turbopack-node]/child_process/evaluate.ts/evaluate.js { INNER => \"[turbopack-node]/transforms/postcss.ts { CONFIG => \\\"[project]/postcss.config.mjs [postcss] (ecmascript)\\\" } [postcss] (ecmascript)\", RUNTIME => \"[turbopack-node]/child_process/evaluate.ts [postcss] (ecmascript)\" } [postcss] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([]); -var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$child_process$2f$evaluate$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/child_process/evaluate.ts [postcss] (ecmascript)"); -; -(0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$child_process$2f$evaluate$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["run"])(()=>__turbopack_context__.A('[turbopack-node]/transforms/postcss.ts { CONFIG => "[project]/postcss.config.mjs [postcss] (ecmascript)" } [postcss] (ecmascript, async loader)')); -}), -]; - -//# sourceMappingURL=%5Broot-of-the-server%5D__1f933tp._.js.map \ No newline at end of file diff --git a/.next.prev/build/chunks/[root-of-the-server]__1f933tp._.js.map b/.next.prev/build/chunks/[root-of-the-server]__1f933tp._.js.map deleted file mode 100644 index faadccfc..00000000 --- a/.next.prev/build/chunks/[root-of-the-server]__1f933tp._.js.map +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/child_process/globals.ts"],"sourcesContent":["// @ts-ignore\nprocess.turbopack = {}\n"],"names":["process","turbopack"],"mappings":"AAAA,aAAa;AACbA,QAAQC,SAAS,GAAG,CAAC"}}, - {"offset": {"line": 21, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/compiled/stacktrace-parser/index.js"],"sourcesContent":["if (typeof __nccwpck_require__ !== \"undefined\")\n __nccwpck_require__.ab = __dirname + \"/\";\n\nvar n = \"\";\nexport function parse(e) {\n var r = e.split(\"\\n\");\n return r.reduce(function (e, r) {\n var n =\n parseChrome(r) ||\n parseWinjs(r) ||\n parseGecko(r) ||\n parseNode(r) ||\n parseJSC(r);\n if (n) {\n e.push(n);\n }\n return e;\n }, []);\n}\nvar a =\n /^\\s*at (.*?) ?\\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\\/|[a-z]:\\\\|\\\\\\\\).*?)(?::(\\d+))?(?::(\\d+))?\\)?\\s*$/i;\nvar l = /\\((\\S*)(?::(\\d+))(?::(\\d+))\\)/;\nfunction parseChrome(e) {\n var r = a.exec(e);\n if (!r) {\n return null;\n }\n var u = r[2] && r[2].indexOf(\"native\") === 0;\n var t = r[2] && r[2].indexOf(\"eval\") === 0;\n var i = l.exec(r[2]);\n if (t && i != null) {\n r[2] = i[1];\n r[3] = i[2];\n r[4] = i[3];\n }\n return {\n file: !u ? r[2] : null,\n methodName: r[1] || n,\n arguments: u ? [r[2]] : [],\n lineNumber: r[3] ? +r[3] : null,\n column: r[4] ? +r[4] : null,\n };\n}\nvar u =\n /^\\s*at (?:((?:\\[object object\\])?.+) )?\\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;\nfunction parseWinjs(e) {\n var r = u.exec(e);\n if (!r) {\n return null;\n }\n return {\n file: r[2],\n methodName: r[1] || n,\n arguments: [],\n lineNumber: +r[3],\n column: r[4] ? +r[4] : null,\n };\n}\nvar t =\n /^\\s*(.*?)(?:\\((.*?)\\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\\[native).*?|[^@]*bundle)(?::(\\d+))?(?::(\\d+))?\\s*$/i;\nvar i = /(\\S+) line (\\d+)(?: > eval line \\d+)* > eval/i;\nfunction parseGecko(e) {\n var r = t.exec(e);\n if (!r) {\n return null;\n }\n var a = r[3] && r[3].indexOf(\" > eval\") > -1;\n var l = i.exec(r[3]);\n if (a && l != null) {\n r[3] = l[1];\n r[4] = l[2];\n r[5] = null;\n }\n return {\n file: r[3],\n methodName: r[1] || n,\n arguments: r[2] ? r[2].split(\",\") : [],\n lineNumber: r[4] ? +r[4] : null,\n column: r[5] ? +r[5] : null,\n };\n}\nvar s = /^\\s*(?:([^@]*)(?:\\((.*?)\\))?@)?(\\S.*?):(\\d+)(?::(\\d+))?\\s*$/i;\nfunction parseJSC(e) {\n var r = s.exec(e);\n if (!r) {\n return null;\n }\n return {\n file: r[3],\n methodName: r[1] || n,\n arguments: [],\n lineNumber: +r[4],\n column: r[5] ? +r[5] : null,\n };\n}\nvar o =\n /^\\s*at (?:((?:\\[object object\\])?[^\\\\/]+(?: \\[as \\S+\\])?) )?\\(?(.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;\nfunction parseNode(e) {\n var r = o.exec(e);\n if (!r) {\n return null;\n }\n return {\n file: r[2],\n methodName: r[1] || n,\n arguments: [],\n lineNumber: +r[3],\n column: r[4] ? +r[4] : null,\n };\n}\n"],"names":["__nccwpck_require__","ab","n","parse","e","r","split","reduce","parseChrome","parseWinjs","parseGecko","parseNode","parseJSC","push","a","l","exec","u","indexOf","t","i","file","methodName","arguments","lineNumber","column","s","o"],"mappings":";;;;AAAA,IAAI,OAAOA,wBAAwB,aACjCA,oBAAoBC,EAAE,GAAG,uEAAY;AAEvC,IAAIC,IAAI;AACD,SAASC,MAAMC,CAAC;IACrB,IAAIC,IAAID,EAAEE,KAAK,CAAC;IAChB,OAAOD,EAAEE,MAAM,CAAC,SAAUH,CAAC,EAAEC,CAAC;QAC5B,IAAIH,IACFM,YAAYH,MACZI,WAAWJ,MACXK,WAAWL,MACXM,UAAUN,MACVO,SAASP;QACX,IAAIH,GAAG;YACLE,EAAES,IAAI,CAACX;QACT;QACA,OAAOE;IACT,GAAG,EAAE;AACP;AACA,IAAIU,IACF;AACF,IAAIC,IAAI;AACR,SAASP,YAAYJ,CAAC;IACpB,IAAIC,IAAIS,EAAEE,IAAI,CAACZ;IACf,IAAI,CAACC,GAAG;QACN,OAAO;IACT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AACnB,CAAC,CAAC,EAAE;QACjBoB,QAAQpB,CAAC,CAAC,EAAE,GAAG,CAACA,CAAC,CAAC,EAAE,GAAG;IACzB;AACF"}}, - {"offset": {"line": 130, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/error.ts"],"sourcesContent":["import type { StackFrame } from './compiled/stacktrace-parser'\nimport { parse as parseStackTrace } from './compiled/stacktrace-parser'\n\n// merged from next.js\n// https://github.com/vercel/next.js/blob/e657741b9908cf0044aaef959c0c4defb19ed6d8/packages/next/src/lib/is-error.ts\n// https://github.com/vercel/next.js/blob/e657741b9908cf0044aaef959c0c4defb19ed6d8/packages/next/src/shared/lib/is-plain-object.ts\n\nexport default function isError(err: unknown): err is Error {\n return (\n typeof err === 'object' && err !== null && 'name' in err && 'message' in err\n )\n}\n\nexport function getProperError(err: unknown): Error {\n if (isError(err)) {\n return err\n }\n\n if (process.env.NODE_ENV === 'development') {\n // Provide a better error message for cases where `throw undefined`\n // is called in development\n if (typeof err === 'undefined') {\n return new Error('`undefined` was thrown instead of a real error')\n }\n\n if (err === null) {\n return new Error('`null` was thrown instead of a real error')\n }\n }\n\n return new Error(isPlainObject(err) ? JSON.stringify(err) : err + '')\n}\n\nfunction getObjectClassLabel(value: any): string {\n return Object.prototype.toString.call(value)\n}\n\nfunction isPlainObject(value: any): boolean {\n if (getObjectClassLabel(value) !== '[object Object]') {\n return false\n }\n\n const prototype = Object.getPrototypeOf(value)\n\n /**\n * this used to be previously:\n *\n * `return prototype === null || prototype === Object.prototype`\n *\n * but Edge Runtime expose Object from vm, being that kind of type-checking wrongly fail.\n *\n * It was changed to the current implementation since it's resilient to serialization.\n */\n return prototype === null || prototype.hasOwnProperty('isPrototypeOf')\n}\n\nexport type StructuredError = {\n name: string\n message: string\n stack: StackFrame[]\n cause: StructuredError | undefined\n}\n\nexport function structuredError(e: Error | string): StructuredError {\n e = getProperError(e)\n\n return {\n name: e.name,\n message: e.message,\n stack: typeof e.stack === 'string' ? parseStackTrace(e.stack) : [],\n cause: e.cause ? structuredError(getProperError(e.cause)) : undefined,\n }\n}\n"],"names":["isError","err","getProperError","Error","isPlainObject","JSON","stringify","getObjectClassLabel","value","Object","prototype","toString","call","getPrototypeOf","hasOwnProperty","structuredError","e","name","message","stack","cause","undefined"],"mappings":";;;;;;;;AACA;;AAMe,SAASA,QAAQC,GAAY;IAC1C,OACE,OAAOA,QAAQ,YAAYA,QAAQ,QAAQ,UAAUA,OAAO,aAAaA;AAE7E;AAEO,SAASC,eAAeD,GAAY;IACzC,IAAID,QAAQC,MAAM;QAChB,OAAOA;IACT;IAEA;;IAYA,OAAO,IAAIE,MAAMC,cAAcH,OAAOI,KAAKC,SAAS,CAACL,OAAOA,MAAM;AACpE;AAEA,SAASM,oBAAoBC,KAAU;IACrC,OAAOC,OAAOC,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACJ;AACxC;AAEA,SAASJ,cAAcI,KAAU;IAC/B,IAAID,oBAAoBC,WAAW,mBAAmB;QACpD,OAAO;IACT;IAEA,MAAME,YAAYD,OAAOI,cAAc,CAACL;IAExC;;;;;;;;GAQC,GACD,OAAOE,cAAc,QAAQA,UAAUI,cAAc,CAAC;AACxD;AASO,SAASC,gBAAgBC,CAAiB;IAC/CA,IAAId,eAAec;IAEnB,OAAO;QACLC,MAAMD,EAAEC,IAAI;QACZC,SAASF,EAAEE,OAAO;QAClBC,OAAO,OAAOH,EAAEG,KAAK,KAAK,WAAW,IAAA,yJAAe,EAACH,EAAEG,KAAK,IAAI,EAAE;QAClEC,OAAOJ,EAAEI,KAAK,GAAGL,gBAAgBb,eAAec,EAAEI,KAAK,KAAKC;IAC9D;AACF"}}, - {"offset": {"line": 182, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/child_process/index.ts"],"sourcesContent":["import { createConnection } from 'node:net'\nimport { Writable } from 'node:stream'\nimport { structuredError } from '../error'\n\ntype State =\n | {\n type: 'waiting'\n }\n | {\n type: 'packet'\n length: number\n }\n\nexport type Ipc = {\n recv(): Promise\n send(message: TOutgoing): Promise\n sendError(error: Error | string): Promise\n sendReady(): Promise\n}\n\nfunction createIpc(\n port: number\n): Ipc {\n const socket = createConnection({\n port,\n host: '127.0.0.1',\n })\n\n /**\n * A writable stream that writes to the socket.\n * We don't write directly to the socket because we need to\n * handle backpressure and wait for the socket to be drained\n * before writing more data.\n */\n const socketWritable = new Writable({\n write(chunk, _enc, cb) {\n if (socket.write(chunk)) {\n cb()\n } else {\n socket.once('drain', cb)\n }\n },\n final(cb) {\n socket.end(cb)\n },\n })\n\n const packetQueue: Buffer[] = []\n const recvPromiseResolveQueue: Array<(message: TIncoming) => void> = []\n\n function pushPacket(packet: Buffer) {\n const recvPromiseResolve = recvPromiseResolveQueue.shift()\n if (recvPromiseResolve != null) {\n recvPromiseResolve(JSON.parse(packet.toString('utf8')) as TIncoming)\n } else {\n packetQueue.push(packet)\n }\n }\n\n let state: State = { type: 'waiting' }\n let buffer: Buffer = Buffer.alloc(0)\n socket.once('connect', () => {\n socket.setNoDelay(true)\n socket.on('data', (chunk) => {\n buffer = Buffer.concat([buffer, chunk])\n\n loop: while (true) {\n switch (state.type) {\n case 'waiting': {\n if (buffer.length >= 4) {\n const length = buffer.readUInt32BE(0)\n buffer = buffer.subarray(4)\n state = { type: 'packet', length }\n } else {\n break loop\n }\n break\n }\n case 'packet': {\n if (buffer.length >= state.length) {\n const packet = buffer.subarray(0, state.length)\n buffer = buffer.subarray(state.length)\n state = { type: 'waiting' }\n pushPacket(packet)\n } else {\n break loop\n }\n break\n }\n default:\n invariant(state, (state) => `Unknown state type: ${state?.type}`)\n }\n }\n })\n })\n // When the socket is closed, this process is no longer needed.\n // This might happen e. g. when parent process is killed or\n // node.js pool is garbage collected.\n socket.once('close', () => {\n process.exit(0)\n })\n\n // TODO(lukesandberg): some of the messages being sent are very large and contain lots\n // of redundant information. Consider adding gzip compression to our stream.\n function doSend(message: string): Promise {\n return new Promise((resolve, reject) => {\n // Reserve 4 bytes for our length prefix, we will over-write after encoding.\n const packet = Buffer.from('0000' + message, 'utf8')\n packet.writeUInt32BE(packet.length - 4, 0)\n socketWritable.write(packet, (err) => {\n process.stderr.write(`TURBOPACK_OUTPUT_D\\n`)\n process.stdout.write(`TURBOPACK_OUTPUT_D\\n`)\n if (err != null) {\n reject(err)\n } else {\n resolve()\n }\n })\n })\n }\n\n function send(message: any): Promise {\n return doSend(JSON.stringify(message))\n }\n function sendReady(): Promise {\n return doSend('')\n }\n\n return {\n async recv() {\n const packet = packetQueue.shift()\n if (packet != null) {\n return JSON.parse(packet.toString('utf8')) as TIncoming\n }\n\n const result = await new Promise((resolve) => {\n recvPromiseResolveQueue.push((result) => {\n resolve(result)\n })\n })\n\n return result\n },\n\n send(message: TOutgoing) {\n return send(message)\n },\n\n sendReady,\n\n async sendError(error: Error): Promise {\n let failed = false\n try {\n await send({\n type: 'error',\n ...structuredError(error),\n })\n } catch (err) {\n // There's nothing we can do about errors that happen after this point, we can't tell anyone\n // about them.\n console.error('failed to send error back to rust:', err)\n failed = true\n }\n await new Promise((res) => socket.end(() => res()))\n process.exit(failed ? 1 : 0)\n },\n }\n}\n\nconst PORT = process.argv[2]\n\nexport const IPC = createIpc(parseInt(PORT, 10))\n\nprocess.on('uncaughtException', (err) => {\n IPC.sendError(err)\n})\n\nprocess.on('unhandledRejection', (reason) => {\n IPC.sendError(reason instanceof Error ? reason : new Error(String(reason)))\n})\n\nconst improveConsole = (name: string, stream: string, addStack: boolean) => {\n // @ts-ignore\n const original = console[name]\n // @ts-ignore\n const stdio = process[stream]\n // @ts-ignore\n console[name] = (...args: any[]) => {\n stdio.write(`TURBOPACK_OUTPUT_B\\n`)\n original(...args)\n if (addStack) {\n const stack = new Error().stack?.replace(/^.+\\n.+\\n/, '') + '\\n'\n stdio.write('TURBOPACK_OUTPUT_S\\n')\n stdio.write(stack)\n }\n stdio.write('TURBOPACK_OUTPUT_E\\n')\n }\n}\n\nimproveConsole('error', 'stderr', true)\nimproveConsole('warn', 'stderr', true)\nimproveConsole('count', 'stdout', true)\nimproveConsole('trace', 'stderr', false)\nimproveConsole('log', 'stdout', true)\nimproveConsole('group', 'stdout', true)\nimproveConsole('groupCollapsed', 'stdout', true)\nimproveConsole('table', 'stdout', true)\nimproveConsole('debug', 'stdout', true)\nimproveConsole('info', 'stdout', true)\nimproveConsole('dir', 'stdout', true)\nimproveConsole('dirxml', 'stdout', true)\nimproveConsole('timeEnd', 'stdout', true)\nimproveConsole('timeLog', 'stdout', true)\nimproveConsole('timeStamp', 'stdout', true)\nimproveConsole('assert', 'stderr', true)\n\n/**\n * Utility function to ensure all variants of an enum are handled.\n */\nfunction invariant(never: never, computeMessage: (arg: any) => string): never {\n throw new Error(`Invariant: ${computeMessage(never)}`)\n}\n"],"names":["createIpc","port","socket","host","socketWritable","write","chunk","_enc","cb","once","final","end","packetQueue","recvPromiseResolveQueue","pushPacket","packet","recvPromiseResolve","shift","JSON","parse","toString","push","state","type","buffer","Buffer","alloc","setNoDelay","on","concat","loop","length","readUInt32BE","subarray","invariant","process","exit","doSend","message","Promise","resolve","reject","from","writeUInt32BE","err","stderr","stdout","send","stringify","sendReady","recv","result","sendError","error","failed","console","res","PORT","argv","IPC","parseInt","reason","Error","String","improveConsole","name","stream","addStack","original","stdio","args","stack","replace","never","computeMessage"],"mappings":";;;;AAAA;AACA;AACA;;;;AAkBA,SAASA,UACPC,IAAY;IAEZ,MAAMC,SAAS,IAAA,mIAAgB,EAAC;QAC9BD;QACAE,MAAM;IACR;IAEA;;;;;GAKC,GACD,MAAMC,iBAAiB,IAAI,iIAAQ,CAAC;QAClCC,OAAMC,KAAK,EAAEC,IAAI,EAAEC,EAAE;YACnB,IAAIN,OAAOG,KAAK,CAACC,QAAQ;gBACvBE;YACF,OAAO;gBACLN,OAAOO,IAAI,CAAC,SAASD;YACvB;QACF;QACAE,OAAMF,EAAE;YACNN,OAAOS,GAAG,CAACH;QACb;IACF;IAEA,MAAMI,cAAwB,EAAE;IAChC,MAAMC,0BAA+D,EA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UuC,KAAY,EAAEC,cAAoC;IACnE,MAAM,IAAIZ,MAAM,CAAC,WAAW,EAAEY,eAAeD,QAAQ;AACvD"}}, - {"offset": {"line": 386, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/child_process/evaluate.ts"],"sourcesContent":["import { IPC } from './index'\nimport type { Ipc as GenericIpc } from './index'\n\nimport type { Channel as Ipc } from '../types'\n\ntype IpcIncomingMessage =\n | {\n type: 'evaluate'\n args: string[]\n }\n | {\n type: 'result'\n id: number\n error: string | null\n data: any | null\n }\n\ntype IpcOutgoingMessage =\n | {\n type: 'end'\n data: string | undefined\n duration: number\n }\n | {\n type: 'info'\n data: any\n }\n | {\n type: 'request'\n id: number\n data: any\n }\n\nconst ipc = IPC as GenericIpc\n\nconst queue: string[][] = []\n\nexport const run = async (\n moduleFactory: () => Promise<{\n init?: () => Promise\n default: (ipc: Ipc, ...deserializedArgs: any[]) => any\n }>\n) => {\n let nextId = 1\n const requests = new Map()\n const internalIpc = {\n sendInfo: (message: any) =>\n ipc.send({\n type: 'info',\n data: message,\n }),\n sendRequest: (message: any) => {\n const id = nextId++\n let resolve, reject\n const promise = new Promise((res, rej) => {\n resolve = res\n reject = rej\n })\n requests.set(id, { resolve, reject })\n return ipc\n .send({ type: 'request', id, data: message })\n .then(() => promise)\n },\n sendError: (error: Error) => {\n return ipc.sendError(error)\n },\n }\n\n // Initialize module and send ready message\n let getValue: (ipc: Ipc, ...deserializedArgs: any[]) => any\n try {\n const module = await moduleFactory()\n if (typeof module.init === 'function') {\n await module.init()\n }\n getValue = module.default\n await ipc.sendReady()\n } catch (err) {\n await ipc.sendReady()\n await ipc.sendError(err as Error)\n }\n\n // Queue handling\n let isRunning = false\n const run = async () => {\n while (queue.length > 0) {\n const args = queue.shift()!\n try {\n const value = await getValue(internalIpc, ...args)\n await ipc.send({\n type: 'end',\n data:\n value === undefined ? undefined : JSON.stringify(value, null, 2),\n duration: 0,\n })\n } catch (e) {\n await ipc.sendError(e as Error)\n }\n }\n isRunning = false\n }\n\n // Communication handling\n while (true) {\n const msg = await ipc.recv()\n\n switch (msg.type) {\n case 'evaluate': {\n queue.push(msg.args)\n if (!isRunning) {\n isRunning = true\n run()\n }\n break\n }\n case 'result': {\n const request = requests.get(msg.id)\n if (request) {\n requests.delete(msg.id)\n if (msg.error) {\n request.reject(new Error(msg.error))\n } else {\n request.resolve(msg.data)\n }\n }\n break\n }\n default: {\n console.error('unexpected message type', (msg as any).type)\n process.exit(1)\n }\n }\n }\n}\n\nexport type { IpcIncomingMessage, IpcOutgoingMessage }\n"],"names":["ipc","queue","run","moduleFactory","nextId","requests","Map","internalIpc","sendInfo","message","send","type","data","sendRequest","id","resolve","reject","promise","Promise","res","rej","set","then","sendError","error","getValue","module","init","default","sendReady","err","isRunning","length","args","shift","value","undefined","JSON","stringify","duration","e","msg","recv","push","request","get","delete","Error","console","process","exit"],"mappings":";;;;AAAA;;AAiCA,MAAMA,MAAM,oIAAG;AAEf,MAAMC,QAAoB,EAAE;AAErB,MAAMC,MAAM,OACjBC;IAKA,IAAIC,SAAS;IACb,MAAMC,WAAW,IAAIC;IACrB,MAAMC,cAAc;QAClBC,UAAU,CAACC,UACTT,IAAIU,IAAI,CAAC;gBACPC,MAAM;gBACNC,MAAMH;YACR;QACFI,aAAa,CAACJ;YACZ,MAAMK,KAAKV;YACX,IAAIW,SAASC;YACb,MAAMC,UAAU,IAAIC,QAAQ,CAACC,KAAKC;gBAChCL,UAAUI;gBACVH,SAASI;YACX;YACAf,SAASgB,GAAG,CAACP,IAAI;gBAAEC;gBAASC;YAAO;YACnC,OAAOhB,IACJU,IAAI,CAAC;gBAAEC,MAAM;gBAAWG;gBAAIF,MAAMH;YAAQ,GAC1Ca,IAAI,CAAC,IAAML;QAChB;QACAM,WAAW,CAACC;YACV,OAAOxB,IAAIuB,SAAS,CAACC;QACvB;IACF;IAEA,2CAA2C;IAC3C,IAAIC;IACJ,IAAI;QACF,MAAMC,SAAS,MAAMvB;QACrB,IAAI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iB,IAAY9B,IAAI;oBAC1DsC,QAAQC,IAAI,CAAC;gBACf;QACF;IACF;AACF"}}, - {"offset": {"line": 492, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/child_process/evaluate.ts/evaluate.js"],"sourcesContent":["import { run } from 'RUNTIME'; run(() => import('INNER'))"],"names":[],"mappings":";AAAA;;AAA+B,IAAA,uIAAG,EAAC"}}] -} \ No newline at end of file diff --git a/.next.prev/build/chunks/[root-of-the-server]__1nvwxt6._.js b/.next.prev/build/chunks/[root-of-the-server]__1nvwxt6._.js deleted file mode 100644 index a86803ab..00000000 --- a/.next.prev/build/chunks/[root-of-the-server]__1nvwxt6._.js +++ /dev/null @@ -1,500 +0,0 @@ -module.exports = [ -"[turbopack-node]/child_process/globals.ts [webpack_loaders] (ecmascript)", ((__turbopack_context__, module, exports) => { - -// @ts-ignore -process.turbopack = {}; -}), -"[externals]/node:net [external] (node:net, cjs)", ((__turbopack_context__, module, exports) => { - -const mod = __turbopack_context__.x("node:net", () => require("node:net")); - -module.exports = mod; -}), -"[externals]/node:stream [external] (node:stream, cjs)", ((__turbopack_context__, module, exports) => { - -const mod = __turbopack_context__.x("node:stream", () => require("node:stream")); - -module.exports = mod; -}), -"[turbopack-node]/compiled/stacktrace-parser/index.js [webpack_loaders] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([ - "parse", - ()=>parse -]); -if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = ("TURBOPACK compile-time value", "/ROOT/compiled/stacktrace-parser") + "/"; -var n = ""; -function parse(e) { - var r = e.split("\n"); - return r.reduce(function(e, r) { - var n = parseChrome(r) || parseWinjs(r) || parseGecko(r) || parseNode(r) || parseJSC(r); - if (n) { - e.push(n); - } - return e; - }, []); -} -var a = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i; -var l = /\((\S*)(?::(\d+))(?::(\d+))\)/; -function parseChrome(e) { - var r = a.exec(e); - if (!r) { - return null; - } - var u = r[2] && r[2].indexOf("native") === 0; - var t = r[2] && r[2].indexOf("eval") === 0; - var i = l.exec(r[2]); - if (t && i != null) { - r[2] = i[1]; - r[3] = i[2]; - r[4] = i[3]; - } - return { - file: !u ? r[2] : null, - methodName: r[1] || n, - arguments: u ? [ - r[2] - ] : [], - lineNumber: r[3] ? +r[3] : null, - column: r[4] ? +r[4] : null - }; -} -var u = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i; -function parseWinjs(e) { - var r = u.exec(e); - if (!r) { - return null; - } - return { - file: r[2], - methodName: r[1] || n, - arguments: [], - lineNumber: +r[3], - column: r[4] ? +r[4] : null - }; -} -var t = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i; -var i = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i; -function parseGecko(e) { - var r = t.exec(e); - if (!r) { - return null; - } - var a = r[3] && r[3].indexOf(" > eval") > -1; - var l = i.exec(r[3]); - if (a && l != null) { - r[3] = l[1]; - r[4] = l[2]; - r[5] = null; - } - return { - file: r[3], - methodName: r[1] || n, - arguments: r[2] ? r[2].split(",") : [], - lineNumber: r[4] ? +r[4] : null, - column: r[5] ? +r[5] : null - }; -} -var s = /^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i; -function parseJSC(e) { - var r = s.exec(e); - if (!r) { - return null; - } - return { - file: r[3], - methodName: r[1] || n, - arguments: [], - lineNumber: +r[4], - column: r[5] ? +r[5] : null - }; -} -var o = /^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i; -function parseNode(e) { - var r = o.exec(e); - if (!r) { - return null; - } - return { - file: r[2], - methodName: r[1] || n, - arguments: [], - lineNumber: +r[3], - column: r[4] ? +r[4] : null - }; -} -}), -"[turbopack-node]/error.ts [webpack_loaders] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([ - "default", - ()=>isError, - "getProperError", - ()=>getProperError, - "structuredError", - ()=>structuredError -]); -var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$compiled$2f$stacktrace$2d$parser$2f$index$2e$js__$5b$webpack_loaders$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/compiled/stacktrace-parser/index.js [webpack_loaders] (ecmascript)"); -; -function isError(err) { - return typeof err === 'object' && err !== null && 'name' in err && 'message' in err; -} -function getProperError(err) { - if (isError(err)) { - return err; - } - if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable - ; - return new Error(isPlainObject(err) ? JSON.stringify(err) : err + ''); -} -function getObjectClassLabel(value) { - return Object.prototype.toString.call(value); -} -function isPlainObject(value) { - if (getObjectClassLabel(value) !== '[object Object]') { - return false; - } - const prototype = Object.getPrototypeOf(value); - /** - * this used to be previously: - * - * `return prototype === null || prototype === Object.prototype` - * - * but Edge Runtime expose Object from vm, being that kind of type-checking wrongly fail. - * - * It was changed to the current implementation since it's resilient to serialization. - */ return prototype === null || prototype.hasOwnProperty('isPrototypeOf'); -} -function structuredError(e) { - e = getProperError(e); - return { - name: e.name, - message: e.message, - stack: typeof e.stack === 'string' ? (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$compiled$2f$stacktrace$2d$parser$2f$index$2e$js__$5b$webpack_loaders$5d$__$28$ecmascript$29$__["parse"])(e.stack) : [], - cause: e.cause ? structuredError(getProperError(e.cause)) : undefined - }; -} -}), -"[turbopack-node]/child_process/index.ts [webpack_loaders] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([ - "IPC", - ()=>IPC -]); -var __TURBOPACK__imported__module__$5b$externals$5d2f$node$3a$net__$5b$external$5d$__$28$node$3a$net$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/node:net [external] (node:net, cjs)"); -var __TURBOPACK__imported__module__$5b$externals$5d2f$node$3a$stream__$5b$external$5d$__$28$node$3a$stream$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/node:stream [external] (node:stream, cjs)"); -var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$error$2e$ts__$5b$webpack_loaders$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/error.ts [webpack_loaders] (ecmascript)"); -; -; -; -function createIpc(port) { - const socket = (0, __TURBOPACK__imported__module__$5b$externals$5d2f$node$3a$net__$5b$external$5d$__$28$node$3a$net$2c$__cjs$29$__["createConnection"])({ - port, - host: '127.0.0.1' - }); - /** - * A writable stream that writes to the socket. - * We don't write directly to the socket because we need to - * handle backpressure and wait for the socket to be drained - * before writing more data. - */ const socketWritable = new __TURBOPACK__imported__module__$5b$externals$5d2f$node$3a$stream__$5b$external$5d$__$28$node$3a$stream$2c$__cjs$29$__["Writable"]({ - write (chunk, _enc, cb) { - if (socket.write(chunk)) { - cb(); - } else { - socket.once('drain', cb); - } - }, - final (cb) { - socket.end(cb); - } - }); - const packetQueue = []; - const recvPromiseResolveQueue = []; - function pushPacket(packet) { - const recvPromiseResolve = recvPromiseResolveQueue.shift(); - if (recvPromiseResolve != null) { - recvPromiseResolve(JSON.parse(packet.toString('utf8'))); - } else { - packetQueue.push(packet); - } - } - let state = { - type: 'waiting' - }; - let buffer = Buffer.alloc(0); - socket.once('connect', ()=>{ - socket.setNoDelay(true); - socket.on('data', (chunk)=>{ - buffer = Buffer.concat([ - buffer, - chunk - ]); - loop: while(true){ - switch(state.type){ - case 'waiting': - { - if (buffer.length >= 4) { - const length = buffer.readUInt32BE(0); - buffer = buffer.subarray(4); - state = { - type: 'packet', - length - }; - } else { - break loop; - } - break; - } - case 'packet': - { - if (buffer.length >= state.length) { - const packet = buffer.subarray(0, state.length); - buffer = buffer.subarray(state.length); - state = { - type: 'waiting' - }; - pushPacket(packet); - } else { - break loop; - } - break; - } - default: - invariant(state, (state)=>`Unknown state type: ${state?.type}`); - } - } - }); - }); - // When the socket is closed, this process is no longer needed. - // This might happen e. g. when parent process is killed or - // node.js pool is garbage collected. - socket.once('close', ()=>{ - process.exit(0); - }); - // TODO(lukesandberg): some of the messages being sent are very large and contain lots - // of redundant information. Consider adding gzip compression to our stream. - function doSend(message) { - return new Promise((resolve, reject)=>{ - // Reserve 4 bytes for our length prefix, we will over-write after encoding. - const packet = Buffer.from('0000' + message, 'utf8'); - packet.writeUInt32BE(packet.length - 4, 0); - socketWritable.write(packet, (err)=>{ - process.stderr.write(`TURBOPACK_OUTPUT_D\n`); - process.stdout.write(`TURBOPACK_OUTPUT_D\n`); - if (err != null) { - reject(err); - } else { - resolve(); - } - }); - }); - } - function send(message) { - return doSend(JSON.stringify(message)); - } - function sendReady() { - return doSend(''); - } - return { - async recv () { - const packet = packetQueue.shift(); - if (packet != null) { - return JSON.parse(packet.toString('utf8')); - } - const result = await new Promise((resolve)=>{ - recvPromiseResolveQueue.push((result)=>{ - resolve(result); - }); - }); - return result; - }, - send (message) { - return send(message); - }, - sendReady, - async sendError (error) { - let failed = false; - try { - await send({ - type: 'error', - ...(0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$error$2e$ts__$5b$webpack_loaders$5d$__$28$ecmascript$29$__["structuredError"])(error) - }); - } catch (err) { - // There's nothing we can do about errors that happen after this point, we can't tell anyone - // about them. - console.error('failed to send error back to rust:', err); - failed = true; - } - await new Promise((res)=>socket.end(()=>res())); - process.exit(failed ? 1 : 0); - } - }; -} -const PORT = process.argv[2]; -const IPC = createIpc(parseInt(PORT, 10)); -process.on('uncaughtException', (err)=>{ - IPC.sendError(err); -}); -process.on('unhandledRejection', (reason)=>{ - IPC.sendError(reason instanceof Error ? reason : new Error(String(reason))); -}); -const improveConsole = (name, stream, addStack)=>{ - // @ts-ignore - const original = console[name]; - // @ts-ignore - const stdio = process[stream]; - // @ts-ignore - console[name] = (...args)=>{ - stdio.write(`TURBOPACK_OUTPUT_B\n`); - original(...args); - if (addStack) { - const stack = new Error().stack?.replace(/^.+\n.+\n/, '') + '\n'; - stdio.write('TURBOPACK_OUTPUT_S\n'); - stdio.write(stack); - } - stdio.write('TURBOPACK_OUTPUT_E\n'); - }; -}; -improveConsole('error', 'stderr', true); -improveConsole('warn', 'stderr', true); -improveConsole('count', 'stdout', true); -improveConsole('trace', 'stderr', false); -improveConsole('log', 'stdout', true); -improveConsole('group', 'stdout', true); -improveConsole('groupCollapsed', 'stdout', true); -improveConsole('table', 'stdout', true); -improveConsole('debug', 'stdout', true); -improveConsole('info', 'stdout', true); -improveConsole('dir', 'stdout', true); -improveConsole('dirxml', 'stdout', true); -improveConsole('timeEnd', 'stdout', true); -improveConsole('timeLog', 'stdout', true); -improveConsole('timeStamp', 'stdout', true); -improveConsole('assert', 'stderr', true); -/** - * Utility function to ensure all variants of an enum are handled. - */ function invariant(never, computeMessage) { - throw new Error(`Invariant: ${computeMessage(never)}`); -} -}), -"[turbopack-node]/child_process/evaluate.ts [webpack_loaders] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([ - "run", - ()=>run -]); -var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$child_process$2f$index$2e$ts__$5b$webpack_loaders$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/child_process/index.ts [webpack_loaders] (ecmascript)"); -; -const ipc = __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$child_process$2f$index$2e$ts__$5b$webpack_loaders$5d$__$28$ecmascript$29$__["IPC"]; -const queue = []; -const run = async (moduleFactory)=>{ - let nextId = 1; - const requests = new Map(); - const internalIpc = { - sendInfo: (message)=>ipc.send({ - type: 'info', - data: message - }), - sendRequest: (message)=>{ - const id = nextId++; - let resolve, reject; - const promise = new Promise((res, rej)=>{ - resolve = res; - reject = rej; - }); - requests.set(id, { - resolve, - reject - }); - return ipc.send({ - type: 'request', - id, - data: message - }).then(()=>promise); - }, - sendError: (error)=>{ - return ipc.sendError(error); - } - }; - // Initialize module and send ready message - let getValue; - try { - const module = await moduleFactory(); - if (typeof module.init === 'function') { - await module.init(); - } - getValue = module.default; - await ipc.sendReady(); - } catch (err) { - await ipc.sendReady(); - await ipc.sendError(err); - } - // Queue handling - let isRunning = false; - const run = async ()=>{ - while(queue.length > 0){ - const args = queue.shift(); - try { - const value = await getValue(internalIpc, ...args); - await ipc.send({ - type: 'end', - data: value === undefined ? undefined : JSON.stringify(value, null, 2), - duration: 0 - }); - } catch (e) { - await ipc.sendError(e); - } - } - isRunning = false; - }; - // Communication handling - while(true){ - const msg = await ipc.recv(); - switch(msg.type){ - case 'evaluate': - { - queue.push(msg.args); - if (!isRunning) { - isRunning = true; - run(); - } - break; - } - case 'result': - { - const request = requests.get(msg.id); - if (request) { - requests.delete(msg.id); - if (msg.error) { - request.reject(new Error(msg.error)); - } else { - request.resolve(msg.data); - } - } - break; - } - default: - { - console.error('unexpected message type', msg.type); - process.exit(1); - } - } - } -}; -}), -"[turbopack-node]/child_process/evaluate.ts/evaluate.js { INNER => \"[turbopack-node]/transforms/webpack-loaders.ts [webpack_loaders] (ecmascript)\", RUNTIME => \"[turbopack-node]/child_process/evaluate.ts [webpack_loaders] (ecmascript)\" } [webpack_loaders] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([]); -var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$child_process$2f$evaluate$2e$ts__$5b$webpack_loaders$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/child_process/evaluate.ts [webpack_loaders] (ecmascript)"); -; -(0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$child_process$2f$evaluate$2e$ts__$5b$webpack_loaders$5d$__$28$ecmascript$29$__["run"])(()=>__turbopack_context__.A("[turbopack-node]/transforms/webpack-loaders.ts [webpack_loaders] (ecmascript, async loader)")); -}), -]; - -//# sourceMappingURL=%5Broot-of-the-server%5D__1nvwxt6._.js.map \ No newline at end of file diff --git a/.next.prev/build/chunks/[root-of-the-server]__1nvwxt6._.js.map b/.next.prev/build/chunks/[root-of-the-server]__1nvwxt6._.js.map deleted file mode 100644 index 06ce7f0b..00000000 --- a/.next.prev/build/chunks/[root-of-the-server]__1nvwxt6._.js.map +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/child_process/globals.ts"],"sourcesContent":["// @ts-ignore\nprocess.turbopack = {}\n"],"names":["process","turbopack"],"mappings":"AAAA,aAAa;AACbA,QAAQC,SAAS,GAAG,CAAC"}}, - {"offset": {"line": 21, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/compiled/stacktrace-parser/index.js"],"sourcesContent":["if (typeof __nccwpck_require__ !== \"undefined\")\n __nccwpck_require__.ab = __dirname + \"/\";\n\nvar n = \"\";\nexport function parse(e) {\n var r = e.split(\"\\n\");\n return r.reduce(function (e, r) {\n var n =\n parseChrome(r) ||\n parseWinjs(r) ||\n parseGecko(r) ||\n parseNode(r) ||\n parseJSC(r);\n if (n) {\n e.push(n);\n }\n return e;\n }, []);\n}\nvar a =\n /^\\s*at (.*?) ?\\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\\/|[a-z]:\\\\|\\\\\\\\).*?)(?::(\\d+))?(?::(\\d+))?\\)?\\s*$/i;\nvar l = /\\((\\S*)(?::(\\d+))(?::(\\d+))\\)/;\nfunction parseChrome(e) {\n var r = a.exec(e);\n if (!r) {\n return null;\n }\n var u = r[2] && r[2].indexOf(\"native\") === 0;\n var t = r[2] && r[2].indexOf(\"eval\") === 0;\n var i = l.exec(r[2]);\n if (t && i != null) {\n r[2] = i[1];\n r[3] = i[2];\n r[4] = i[3];\n }\n return {\n file: !u ? r[2] : null,\n methodName: r[1] || n,\n arguments: u ? [r[2]] : [],\n lineNumber: r[3] ? +r[3] : null,\n column: r[4] ? +r[4] : null,\n };\n}\nvar u =\n /^\\s*at (?:((?:\\[object object\\])?.+) )?\\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;\nfunction parseWinjs(e) {\n var r = u.exec(e);\n if (!r) {\n return null;\n }\n return {\n file: r[2],\n methodName: r[1] || n,\n arguments: [],\n lineNumber: +r[3],\n column: r[4] ? +r[4] : null,\n };\n}\nvar t =\n /^\\s*(.*?)(?:\\((.*?)\\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\\[native).*?|[^@]*bundle)(?::(\\d+))?(?::(\\d+))?\\s*$/i;\nvar i = /(\\S+) line (\\d+)(?: > eval line \\d+)* > eval/i;\nfunction parseGecko(e) {\n var r = t.exec(e);\n if (!r) {\n return null;\n }\n var a = r[3] && r[3].indexOf(\" > eval\") > -1;\n var l = i.exec(r[3]);\n if (a && l != null) {\n r[3] = l[1];\n r[4] = l[2];\n r[5] = null;\n }\n return {\n file: r[3],\n methodName: r[1] || n,\n arguments: r[2] ? r[2].split(\",\") : [],\n lineNumber: r[4] ? +r[4] : null,\n column: r[5] ? +r[5] : null,\n };\n}\nvar s = /^\\s*(?:([^@]*)(?:\\((.*?)\\))?@)?(\\S.*?):(\\d+)(?::(\\d+))?\\s*$/i;\nfunction parseJSC(e) {\n var r = s.exec(e);\n if (!r) {\n return null;\n }\n return {\n file: r[3],\n methodName: r[1] || n,\n arguments: [],\n lineNumber: +r[4],\n column: r[5] ? +r[5] : null,\n };\n}\nvar o =\n /^\\s*at (?:((?:\\[object object\\])?[^\\\\/]+(?: \\[as \\S+\\])?) )?\\(?(.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;\nfunction parseNode(e) {\n var r = o.exec(e);\n if (!r) {\n return null;\n }\n return {\n file: r[2],\n methodName: r[1] || n,\n arguments: [],\n lineNumber: +r[3],\n column: r[4] ? +r[4] : null,\n };\n}\n"],"names":["__nccwpck_require__","ab","n","parse","e","r","split","reduce","parseChrome","parseWinjs","parseGecko","parseNode","parseJSC","push","a","l","exec","u","indexOf","t","i","file","methodName","arguments","lineNumber","column","s","o"],"mappings":";;;;AAAA,IAAI,OAAOA,wBAAwB,aACjCA,oBAAoBC,EAAE,GAAG,uEAAY;AAEvC,IAAIC,IAAI;AACD,SAASC,MAAMC,CAAC;IACrB,IAAIC,IAAID,EAAEE,KAAK,CAAC;IAChB,OAAOD,EAAEE,MAAM,CAAC,SAAUH,CAAC,EAAEC,CAAC;QAC5B,IAAIH,IACFM,YAAYH,MACZI,WAAWJ,MACXK,WAAWL,MACXM,UAAUN,MACVO,SAASP;QACX,IAAIH,GAAG;YACLE,EAAES,IAAI,CAACX;QACT;QACA,OAAOE;IACT,GAAG,EAAE;AACP;AACA,IAAIU,IACF;AACF,IAAIC,IAAI;AACR,SAASP,YAAYJ,CAAC;IACpB,IAAIC,IAAIS,EAAEE,IAAI,CAACZ;IACf,IAAI,CAACC,GAAG;QACN,OAAO;IACT;IACA,IAAIY,IAAIZ,CAAC,CAAC,EAAE,IAAIA,CAAC,CAAC,EAAE,CAACa,OAAO,CAAC,cAAc;IAC3C,IAAIC,IAAId,CAAC,CAAC,EAAE,IAAIA,CAAC,CAAC,EAAE,CAACa,OAAO,CAAC,YAAY;IACzC,IAAIE,IAAIL,EAAEC,IAAI,CAACX,CAAC,CAAC,EAAE;IACnB,IAAIc,KAAKC,KAAK,MAAM;QAClBf,CAAC,CAAC,EAAE,GAAGe,CAAC,CAAC,EAAE;QACXf,CAAC,CAAC,EAAE,GAAGe,CAAC,CAAC,EAAE;QACXf,CAAC,CAAC,EAAE,GAAGe,CAAC,CAAC,EAAE;IACb;IACA,OAAO;QACLC,MAAM,CAACJ,IAAIZ,CAAC,CAAC,EAAE,GAAG;QAClBiB,YAAYjB,CAAC,CAAC,EAAE,IAAIH;QACpBqB,WAAWN,IAAI;YAACZ,CAAC,CAAC,EAAE;SAAC,GAAG,EAAE;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EAAE,GAAG,CAACA,CAAC,CAAC,EAAE,GAAG;IACzB;AACF;AACA,IAAIqB,IAAI;AACR,SAASd,SAASR,CAAC;IACjB,IAAIC,IAAIqB,EAAEV,IAAI,CAACZ;IACf,IAAI,CAACC,GAAG;QACN,OAAO;IACT;IACA,OAAO;QACLgB,MAAMhB,CAAC,CAAC,EAAE;QACViB,YAAYjB,CAAC,CAAC,EAAE,IAAIH;QACpBqB,WAAW,EAAE;QACbC,YAAY,CAACnB,CAAC,CAAC,EAAE;QACjBoB,QAAQpB,CAAC,CAAC,EAAE,GAAG,CAACA,CAAC,CAAC,EAAE,GAAG;IACzB;AACF;AACA,IAAIsB,IACF;AACF,SAAShB,UAAUP,CAAC;IAClB,IAAIC,IAAIsB,EAAEX,IAAI,CAACZ;IACf,IAAI,CAACC,GAAG;QACN,OAAO;IACT;IACA,OAAO;QACLgB,MAAMhB,CAAC,CAAC,EAAE;QACViB,YAAYjB,CAAC,CAAC,EAAE,IAAIH;QACpBqB,WAAW,EAAE;QACbC,YAAY,CAACnB,CAAC,CAAC,EAAE;QACjBoB,QAAQpB,CAAC,CAAC,EAAE,GAAG,CAACA,CAAC,CAAC,EAAE,GAAG;IACzB;AACF"}}, - {"offset": {"line": 130, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/error.ts"],"sourcesContent":["import type { StackFrame } from './compiled/stacktrace-parser'\nimport { parse as parseStackTrace } from './compiled/stacktrace-parser'\n\n// merged from next.js\n// https://github.com/vercel/next.js/blob/e657741b9908cf0044aaef959c0c4defb19ed6d8/packages/next/src/lib/is-error.ts\n// https://github.com/vercel/next.js/blob/e657741b9908cf0044aaef959c0c4defb19ed6d8/packages/next/src/shared/lib/is-plain-object.ts\n\nexport default function isError(err: unknown): err is Error {\n return (\n typeof err === 'object' && err !== null && 'name' in err && 'message' in err\n )\n}\n\nexport function getProperError(err: unknown): Error {\n if (isError(err)) {\n return err\n }\n\n if (process.env.NODE_ENV === 'development') {\n // Provide a better error message for cases where `throw undefined`\n // is called in development\n if (typeof err === 'undefined') {\n return new Error('`undefined` was thrown instead of a real error')\n }\n\n if (err === null) {\n return new Error('`null` was thrown instead of a real error')\n }\n }\n\n return new Error(isPlainObject(err) ? JSON.stringify(err) : err + '')\n}\n\nfunction getObjectClassLabel(value: any): string {\n return Object.prototype.toString.call(value)\n}\n\nfunction isPlainObject(value: any): boolean {\n if (getObjectClassLabel(value) !== '[object Object]') {\n return false\n }\n\n const prototype = Object.getPrototypeOf(value)\n\n /**\n * this used to be previously:\n *\n * `return prototype === null || prototype === Object.prototype`\n *\n * but Edge Runtime expose Object from vm, being that kind of type-checking wrongly fail.\n *\n * It was changed to the current implementation since it's resilient to serialization.\n */\n return prototype === null || prototype.hasOwnProperty('isPrototypeOf')\n}\n\nexport type StructuredError = {\n name: string\n message: string\n stack: StackFrame[]\n cause: StructuredError | undefined\n}\n\nexport function structuredError(e: Error | string): StructuredError {\n e = getProperError(e)\n\n return {\n name: e.name,\n message: e.message,\n stack: typeof e.stack === 'string' ? parseStackTrace(e.stack) : [],\n cause: e.cause ? structuredError(getProperError(e.cause)) : undefined,\n }\n}\n"],"names":["isError","err","getProperError","Error","isPlainObject","JSON","stringify","getObjectClassLabel","value","Object","prototype","toString","call","getPrototypeOf","hasOwnProperty","structuredError","e","name","message","stack","cause","undefined"],"mappings":";;;;;;;;AACA;;AAMe,SAASA,QAAQC,GAAY;IAC1C,OACE,OAAOA,QAAQ,YAAYA,QAAQ,QAAQ,UAAUA,OAAO,aAAaA;AAE7E;AAEO,SAASC,eAAeD,GAAY;IACzC,IAAID,QAAQC,MAAM;QAChB,OAAOA;IACT;IAEA;;IAYA,OAAO,IAAIE,MAAMC,cAAcH,OAAOI,KAAKC,SAAS,CAACL,OAAOA,MAAM;AACpE;AAEA,SAASM,oBAAoBC,KAAU;IACrC,OAAOC,OAAOC,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACJ;AACxC;AAEA,SAASJ,cAAcI,KAAU;IAC/B,IAAID,oBAAoBC,WAAW,mBAAmB;QACpD,OAAO;IACT;IAEA,MAAME,YAAYD,OAAOI,cAAc,CAACL;IAExC;;;;;;;;GAQC,GACD,OAAOE,cAAc,QAAQA,UAAUI,cAAc,CAAC;AACxD;AASO,SAASC,gBAAgBC,CAAiB;IAC/CA,IAAId,eAAec;IAEnB,OAAO;QACLC,MAAMD,EAAEC,IAAI;QACZC,SAASF,EAAEE,OAAO;QAClBC,OAAO,OAAOH,EAAEG,KAAK,KAAK,WAAW,IAAA,iKAAe,EAACH,EAAEG,KAAK,IAAI,EAAE;QAClEC,OAAOJ,EAAEI,KAAK,GAAGL,gBAAgBb,eAAec,EAAEI,KAAK,KAAKC;IAC9D;AACF"}}, - {"offset": {"line": 182, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/child_process/index.ts"],"sourcesContent":["import { createConnection } from 'node:net'\nimport { Writable } from 'node:stream'\nimport { structuredError } from '../error'\n\ntype State =\n | {\n type: 'waiting'\n }\n | {\n type: 'packet'\n length: number\n }\n\nexport type Ipc = {\n recv(): Promise\n send(message: TOutgoing): Promise\n sendError(error: Error | string): Promise\n sendReady(): Promise\n}\n\nfunction createIpc(\n port: number\n): Ipc {\n const socket = createConnection({\n port,\n host: '127.0.0.1',\n })\n\n /**\n * A writable stream that writes to the socket.\n * We don't write directly to the socket because we need to\n * handle backpressure and wait for the socket to be drained\n * before writing more data.\n */\n const socketWritable = new Writable({\n write(chunk, _enc, cb) {\n if (socket.write(chunk)) {\n cb()\n } else {\n socket.once('drain', cb)\n }\n },\n final(cb) {\n socket.end(cb)\n },\n })\n\n const packetQueue: Buffer[] = []\n const recvPromiseResolveQueue: Array<(message: TIncoming) => void> = []\n\n function pushPacket(packet: Buffer) {\n const recvPromiseResolve = recvPromiseResolveQueue.shift()\n if (recvPromiseResolve != null) {\n recvPromiseResolve(JSON.parse(packet.toString('utf8')) as TIncoming)\n } else {\n packetQueue.push(packet)\n }\n }\n\n let state: State = { type: 'waiting' }\n let buffer: Buffer = Buffer.alloc(0)\n socket.once('connect', () => {\n socket.setNoDelay(true)\n socket.on('data', (chunk) => {\n buffer = Buffer.concat([buffer, chunk])\n\n loop: while (true) {\n switch (state.type) {\n case 'waiting': {\n if (buffer.length >= 4) {\n const length = buffer.readUInt32BE(0)\n buffer = buffer.subarray(4)\n state = { type: 'packet', length }\n } else {\n break loop\n }\n break\n }\n case 'packet': {\n if (buffer.length >= state.length) {\n const packet = buffer.subarray(0, state.length)\n buffer = buffer.subarray(state.length)\n state = { type: 'waiting' }\n pushPacket(packet)\n } else {\n break loop\n }\n break\n }\n default:\n invariant(state, (state) => `Unknown state type: ${state?.type}`)\n }\n }\n })\n })\n // When the socket is closed, this process is no longer needed.\n // This might happen e. g. when parent process is killed or\n // node.js pool is garbage collected.\n socket.once('close', () => {\n process.exit(0)\n })\n\n // TODO(lukesandberg): some of the messages being sent are very large and contain lots\n // of redundant information. Consider adding gzip compression to our stream.\n function doSend(message: string): Promise {\n return new Promise((resolve, reject) => {\n // Reserve 4 bytes for our length prefix, we will over-write after encoding.\n const packet = Buffer.from('0000' + message, 'utf8')\n packet.writeUInt32BE(packet.length - 4, 0)\n socketWritable.write(packet, (err) => {\n process.stderr.write(`TURBOPACK_OUTPUT_D\\n`)\n process.stdout.write(`TURBOPACK_OUTPUT_D\\n`)\n if (err != null) {\n reject(err)\n } else {\n resolve()\n }\n })\n })\n }\n\n function send(message: any): Promise {\n return doSend(JSON.stringify(message))\n }\n function sendReady(): Promise {\n return doSend('')\n }\n\n return {\n async recv() {\n const packet = packetQueue.shift()\n if (packet != null) {\n return JSON.parse(packet.toString('utf8')) as TIncoming\n }\n\n const result = await new Promise((resolve) => {\n recvPromiseResolveQueue.push((result) => {\n resolve(result)\n })\n })\n\n return result\n },\n\n send(message: TOutgoing) {\n return send(message)\n },\n\n sendReady,\n\n async sendError(error: Error): Promise {\n let failed = false\n try {\n await send({\n type: 'error',\n ...structuredError(error),\n })\n } catch (err) {\n // There's nothing we can do about errors that happen after this point, we can't tell anyone\n // about them.\n console.error('failed to send error back to rust:', err)\n failed = true\n }\n await new Promise((res) => socket.end(() => res()))\n process.exit(failed ? 1 : 0)\n },\n }\n}\n\nconst PORT = process.argv[2]\n\nexport const IPC = createIpc(parseInt(PORT, 10))\n\nprocess.on('uncaughtException', (err) => {\n IPC.sendError(err)\n})\n\nprocess.on('unhandledRejection', (reason) => {\n IPC.sendError(reason instanceof Error ? reason : new Error(String(reason)))\n})\n\nconst improveConsole = (name: string, stream: string, addStack: boolean) => {\n // @ts-ignore\n const original = console[name]\n // @ts-ignore\n const stdio = process[stream]\n // @ts-ignore\n console[name] = (...args: any[]) => {\n stdio.write(`TURBOPACK_OUTPUT_B\\n`)\n original(...args)\n if (addStack) {\n const stack = new Error().stack?.replace(/^.+\\n.+\\n/, '') + '\\n'\n stdio.write('TURBOPACK_OUTPUT_S\\n')\n stdio.write(stack)\n }\n stdio.write('TURBOPACK_OUTPUT_E\\n')\n }\n}\n\nimproveConsole('error', 'stderr', true)\nimproveConsole('warn', 'stderr', true)\nimproveConsole('count', 'stdout', true)\nimproveConsole('trace', 'stderr', false)\nimproveConsole('log', 'stdout', true)\nimproveConsole('group', 'stdout', true)\nimproveConsole('groupCollapsed', 'stdout', true)\nimproveConsole('table', 'stdout', true)\nimproveConsole('debug', 'stdout', true)\nimproveConsole('info', 'stdout', true)\nimproveConsole('dir', 'stdout', true)\nimproveConsole('dirxml', 'stdout', true)\nimproveConsole('timeEnd', 'stdout', true)\nimproveConsole('timeLog', 'stdout', true)\nimproveConsole('timeStamp', 'stdout', true)\nimproveConsole('assert', 'stderr', true)\n\n/**\n * Utility function to ensure all variants of an enum are handled.\n */\nfunction invariant(never: never, computeMessage: (arg: any) => string): never {\n throw new Error(`Invariant: ${computeMessage(never)}`)\n}\n"],"names":["createIpc","port","socket","host","socketWritable","write","chunk","_enc","cb","once","final","end","packetQueue","recvPromiseResolveQueue","pushPacket","packet","recvPromiseResolve","shift","JSON","parse","toString","push","state","type","buffer","Buffer","alloc","setNoDelay","on","concat","loop","length","readUInt32BE","subarray","invariant","process","exit","doSend","message","Promise","resolve","reject","from","writeUInt32BE","err","stderr","stdout","send","stringify","sendReady","recv","result","sendError","error","failed","console","res","PORT","argv","IPC","parseInt","reason","Error","String","improveConsole","name","stream","addStack","original","stdio","args","stack","replace","never","computeMessage"],"mappings":";;;;AAAA;AACA;AACA;;;;AAkBA,SAASA,UACPC,IAAY;IAEZ,MAAMC,SAAS,IAAA,mIAAgB,EAAC;QAC9BD;QACAE,MAAM;IACR;IAEA;;;;;GAKC,GACD,MAAMC,iBAAiB,IAAI,iIAAQ,CAAC;QAClCC,OAAMC,KAAK,EAAEC,IAAI,EAAEC,EAAE;YACnB,IAAIN,OAAOG,KAAK,CAACC,QAAQ;gBACvBE;YACF,OAAO;gBACLN,OAAOO,IAAI,CAAC,SAASD;YACvB;QACF;QACAE,OAAMF,EAAE;YACNN,OAAOS,GAAG,CAACH;QACb;IACF;IAEA,MAAMI,cAAwB,EAAE;IAChC,MAAMC,0BAA+D,EAAE;IAEvE,SAASC,WAAWC,MAAc;QAChC,MAAMC,qBAAqBH,wBAAwBI,KAAK;QACxD,IAAID,sBAAsB,MAAM;YAC9BA,mBAAmBE,KAAKC,KAAK,CAACJ,OAAOK,QAAQ,CAAC;QAChD,OAAO;YACLR,YAAYS,IAAI,CAACN;QACnB;IACF;IAEA,IAAIO,QAAe;QAAEC,MAAM;IAAU;IACrC,IAAIC,SAAiBC,OAAOC,KAAK,CAAC;IAClCxB,OAAOO,IAAI,CAAC,WAAW;QACrBP,OAAOyB,UAAU,CAAC;QAClBzB,OAAO0B,EAAE,CAAC,QAAQ,CAACtB;YACjBkB,SAASC,OAAOI,MAAM,CAAC;gBAACL;gBAAQlB;aAAM;YAEtCwB,MAAM,MAAO,KAAM;gBACjB,OAAQR,MAAMC,IAAI;oBAChB,KAAK;wBAAW;4BACd,IAAIC,OAAOO,MAAM,IAAI,GAAG;gCACtB,MAAMA,SAASP,OAAOQ,YAAY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ClC+D,YAAYE;QACZ,IAAIH,UAAU;YACZ,MAAMI,QAAQ,IAAIT,QAAQS,KAAK,EAAEC,QAAQ,aAAa,MAAM;YAC5DH,MAAMhE,KAAK,CAAC;YACZgE,MAAMhE,KAAK,CAACkE;QACd;QACAF,MAAMhE,KAAK,CAAC;IACd;AACF;AAEA2D,eAAe,SAAS,UAAU;AAClCA,eAAe,QAAQ,UAAU;AACjCA,eAAe,SAAS,UAAU;AAClCA,eAAe,SAAS,UAAU;AAClCA,eAAe,OAAO,UAAU;AAChCA,eAAe,SAAS,UAAU;AAClCA,eAAe,kBAAkB,UAAU;AAC3CA,eAAe,SAAS,UAAU;AAClCA,eAAe,SAAS,UAAU;AAClCA,eAAe,QAAQ,UAAU;AACjCA,eAAe,OAAO,UAAU;AAChCA,eAAe,UAAU,UAAU;AACnCA,eAAe,WAAW,UAAU;AACpCA,eAAe,WAAW,UAAU;AACpCA,eAAe,aAAa,UAAU;AACtCA,eAAe,UAAU,UAAU;AAEnC;;CAEC,GACD,SAAS9B,UAAUuC,KAAY,EAAEC,cAAoC;IACnE,MAAM,IAAIZ,MAAM,CAAC,WAAW,EAAEY,eAAeD,QAAQ;AACvD"}}, - {"offset": {"line": 386, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/child_process/evaluate.ts"],"sourcesContent":["import { IPC } from './index'\nimport type { Ipc as GenericIpc } from './index'\n\nimport type { Channel as Ipc } from '../types'\n\ntype IpcIncomingMessage =\n | {\n type: 'evaluate'\n args: string[]\n }\n | {\n type: 'result'\n id: number\n error: string | null\n data: any | null\n }\n\ntype IpcOutgoingMessage =\n | {\n type: 'end'\n data: string | undefined\n duration: number\n }\n | {\n type: 'info'\n data: any\n }\n | {\n type: 'request'\n id: number\n data: any\n }\n\nconst ipc = IPC as GenericIpc\n\nconst queue: string[][] = []\n\nexport const run = async (\n moduleFactory: () => Promise<{\n init?: () => Promise\n default: (ipc: Ipc, ...deserializedArgs: any[]) => any\n }>\n) => {\n let nextId = 1\n const requests = new Map()\n const internalIpc = {\n sendInfo: (message: any) =>\n ipc.send({\n type: 'info',\n data: message,\n }),\n sendRequest: (message: any) => {\n const id = nextId++\n let resolve, reject\n const promise = new Promise((res, rej) => {\n resolve = res\n reject = rej\n })\n requests.set(id, { resolve, reject })\n return ipc\n .send({ type: 'request', id, data: message })\n .then(() => promise)\n },\n sendError: (error: Error) => {\n return ipc.sendError(error)\n },\n }\n\n // Initialize module and send ready message\n let getValue: (ipc: Ipc, ...deserializedArgs: any[]) => any\n try {\n const module = await moduleFactory()\n if (typeof module.init === 'function') {\n await module.init()\n }\n getValue = module.default\n await ipc.sendReady()\n } catch (err) {\n await ipc.sendReady()\n await ipc.sendError(err as Error)\n }\n\n // Queue handling\n let isRunning = false\n const run = async () => {\n while (queue.length > 0) {\n const args = queue.shift()!\n try {\n const value = await getValue(internalIpc, ...args)\n await ipc.send({\n type: 'end',\n data:\n value === undefined ? undefined : JSON.stringify(value, null, 2),\n duration: 0,\n })\n } catch (e) {\n await ipc.sendError(e as Error)\n }\n }\n isRunning = false\n }\n\n // Communication handling\n while (true) {\n const msg = await ipc.recv()\n\n switch (msg.type) {\n case 'evaluate': {\n queue.push(msg.args)\n if (!isRunning) {\n isRunning = true\n run()\n }\n break\n }\n case 'result': {\n const request = requests.get(msg.id)\n if (request) {\n requests.delete(msg.id)\n if (msg.error) {\n request.reject(new Error(msg.error))\n } else {\n request.resolve(msg.data)\n }\n }\n break\n }\n default: {\n console.error('unexpected message type', (msg as any).type)\n process.exit(1)\n }\n }\n }\n}\n\nexport type { IpcIncomingMessage, IpcOutgoingMessage }\n"],"names":["ipc","queue","run","moduleFactory","nextId","requests","Map","internalIpc","sendInfo","message","send","type","data","sendRequest","id","resolve","reject","promise","Promise","res","rej","set","then","sendError","error","getValue","module","init","default","sendReady","err","isRunning","length","args","shift","value","undefined","JSON","stringify","duration","e","msg","recv","push","request","get","delete","Error","console","process","exit"],"mappings":";;;;AAAA;;AAiCA,MAAMA,MAAM,4I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AAS,CAACiB;YACtB;QACF;QACAT,YAAY;IACd;IAEA,yBAAyB;IACzB,MAAO,KAAM;QACX,MAAMU,MAAM,MAAMzC,IAAI0C,IAAI;QAE1B,OAAQD,IAAI9B,IAAI;YACd,KAAK;gBAAY;oBACfV,MAAM0C,IAAI,CAACF,IAAIR,IAAI;oBACnB,IAAI,CAACF,WAAW;wBACdA,YAAY;wBACZ7B;oBACF;oBACA;gBACF;YACA,KAAK;gBAAU;oBACb,MAAM0C,UAAUvC,SAASwC,GAAG,CAACJ,IAAI3B,EAAE;oBACnC,IAAI8B,SAAS;wBACXvC,SAASyC,MAAM,CAACL,IAAI3B,EAAE;wBACtB,IAAI2B,IAAIjB,KAAK,EAAE;4BACboB,QAAQ5B,MAAM,CAAC,IAAI+B,MAAMN,IAAIjB,KAAK;wBACpC,OAAO;4BACLoB,QAAQ7B,OAAO,CAAC0B,IAAI7B,IAAI;wBAC1B;oBACF;oBACA;gBACF;YACA;gBAAS;oBACPoC,QAAQxB,KAAK,CAAC,2BAA2B,AAACiB,IAAY9B,IAAI;oBAC1DsC,QAAQC,IAAI,CAAC;gBACf;QACF;IACF;AACF"}}, - {"offset": {"line": 492, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/child_process/evaluate.ts/evaluate.js"],"sourcesContent":["import { run } from 'RUNTIME'; run(() => import('INNER'))"],"names":[],"mappings":";AAAA;;AAA+B,IAAA,+IAAG,EAAC"}}] -} \ No newline at end of file diff --git a/.next.prev/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js b/.next.prev/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js deleted file mode 100644 index caa0f18c..00000000 --- a/.next.prev/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js +++ /dev/null @@ -1,13 +0,0 @@ -module.exports = [ -"[turbopack-node]/transforms/postcss.ts { CONFIG => \"[project]/postcss.config.mjs [postcss] (ecmascript)\" } [postcss] (ecmascript, async loader)", ((__turbopack_context__) => { - -__turbopack_context__.v((parentImport) => { - return Promise.all([ - "chunks/node_modules__pnpm_1k5k_4d._.js", - "chunks/[root-of-the-server]__0oj80bi._.js" -].map((chunk) => __turbopack_context__.l(chunk))).then(() => { - return parentImport("[turbopack-node]/transforms/postcss.ts { CONFIG => \"[project]/postcss.config.mjs [postcss] (ecmascript)\" } [postcss] (ecmascript)"); - }); -}); -}), -]; \ No newline at end of file diff --git a/.next.prev/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js.map b/.next.prev/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js.map deleted file mode 100644 index c15d7ec0..00000000 --- a/.next.prev/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/.next.prev/build/chunks/[turbopack-node]_transforms_webpack-loaders_ts_1nw9y6m._.js b/.next.prev/build/chunks/[turbopack-node]_transforms_webpack-loaders_ts_1nw9y6m._.js deleted file mode 100644 index 4732006c..00000000 --- a/.next.prev/build/chunks/[turbopack-node]_transforms_webpack-loaders_ts_1nw9y6m._.js +++ /dev/null @@ -1,12 +0,0 @@ -module.exports = [ -"[turbopack-node]/transforms/webpack-loaders.ts [webpack_loaders] (ecmascript, async loader)", ((__turbopack_context__) => { - -__turbopack_context__.v((parentImport) => { - return Promise.all([ - "chunks/[root-of-the-server]__0x8m--0._.js" -].map((chunk) => __turbopack_context__.l(chunk))).then(() => { - return parentImport("[turbopack-node]/transforms/webpack-loaders.ts [webpack_loaders] (ecmascript)"); - }); -}); -}), -]; \ No newline at end of file diff --git a/.next.prev/build/chunks/[turbopack-node]_transforms_webpack-loaders_ts_1nw9y6m._.js.map b/.next.prev/build/chunks/[turbopack-node]_transforms_webpack-loaders_ts_1nw9y6m._.js.map deleted file mode 100644 index c15d7ec0..00000000 --- a/.next.prev/build/chunks/[turbopack-node]_transforms_webpack-loaders_ts_1nw9y6m._.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/.next.prev/build/chunks/[turbopack]_runtime.js b/.next.prev/build/chunks/[turbopack]_runtime.js deleted file mode 100644 index a85eb41f..00000000 --- a/.next.prev/build/chunks/[turbopack]_runtime.js +++ /dev/null @@ -1,890 +0,0 @@ -const RUNTIME_PUBLIC_PATH = "chunks/[turbopack]_runtime.js"; -const RELATIVE_ROOT_PATH = ".."; -const ASSET_PREFIX = "/"; -const WORKER_FORWARDED_GLOBALS = []; -/** - * This file contains runtime types and functions that are shared between all - * TurboPack ECMAScript runtimes. - * - * It will be prepended to the runtime code of each runtime. - */ /* eslint-disable @typescript-eslint/no-unused-vars */ /// -/** - * Describes why a module was instantiated. - * Shared between browser and Node.js runtimes. - */ var SourceType = /*#__PURE__*/ function(SourceType) { - /** - * The module was instantiated because it was included in an evaluated chunk's - * runtime. - * SourceData is a ChunkPath. - */ SourceType[SourceType["Runtime"] = 0] = "Runtime"; - /** - * The module was instantiated because a parent module imported it. - * SourceData is a ModuleId. - */ SourceType[SourceType["Parent"] = 1] = "Parent"; - /** - * The module was instantiated because it was included in a chunk's hot module - * update. - * SourceData is an array of ModuleIds or undefined. - */ SourceType[SourceType["Update"] = 2] = "Update"; - return SourceType; -}(SourceType || {}); -/** - * Flag indicating which module object type to create when a module is merged. Set to `true` - * by each runtime that uses ModuleWithDirection (browser dev-base.ts, nodejs dev-base.ts, - * nodejs build-base.ts). Browser production (build-base.ts) leaves it as `false` since it - * uses plain Module objects. - */ let createModuleWithDirectionFlag = false; -const REEXPORTED_OBJECTS = new WeakMap(); -/** - * Constructs the `__turbopack_context__` object for a module. - */ function Context(module, exports) { - this.m = module; - // We need to store this here instead of accessing it from the module object to: - // 1. Make it available to factories directly, since we rewrite `this` to - // `__turbopack_context__.e` in CJS modules. - // 2. Support async modules which rewrite `module.exports` to a promise, so we - // can still access the original exports object from functions like - // `esmExport` - // Ideally we could find a new approach for async modules and drop this property altogether. - this.e = exports; -} -const contextPrototype = Context.prototype; -const hasOwnProperty = Object.prototype.hasOwnProperty; -const toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag; -function defineProp(obj, name, options) { - if (!hasOwnProperty.call(obj, name)) Object.defineProperty(obj, name, options); -} -function getOverwrittenModule(moduleCache, id) { - let module = moduleCache[id]; - if (!module) { - if (createModuleWithDirectionFlag) { - // set in development modes for hmr support - module = createModuleWithDirection(id); - } else { - module = createModuleObject(id); - } - moduleCache[id] = module; - } - return module; -} -/** - * Creates the module object. Only done here to ensure all module objects have the same shape. - */ function createModuleObject(id) { - return { - exports: {}, - error: undefined, - id, - namespaceObject: undefined - }; -} -function createModuleWithDirection(id) { - return { - exports: {}, - error: undefined, - id, - namespaceObject: undefined, - parents: [], - children: [] - }; -} -const BindingTag_Value = 0; -/** - * Adds the getters to the exports object. - */ function esm(exports, bindings) { - defineProp(exports, '__esModule', { - value: true - }); - if (toStringTag) defineProp(exports, toStringTag, { - value: 'Module' - }); - let i = 0; - while(i < bindings.length){ - const propName = bindings[i++]; - const tagOrFunction = bindings[i++]; - if (typeof tagOrFunction === 'number') { - if (tagOrFunction === BindingTag_Value) { - defineProp(exports, propName, { - value: bindings[i++], - enumerable: true, - writable: false - }); - } else { - throw new Error(`unexpected tag: ${tagOrFunction}`); - } - } else { - const getterFn = tagOrFunction; - if (typeof bindings[i] === 'function') { - const setterFn = bindings[i++]; - defineProp(exports, propName, { - get: getterFn, - set: setterFn, - enumerable: true - }); - } else { - defineProp(exports, propName, { - get: getterFn, - enumerable: true - }); - } - } - } - Object.seal(exports); -} -/** - * Makes the module an ESM with exports - */ function esmExport(bindings, id) { - let module; - let exports; - if (id != null) { - module = getOverwrittenModule(this.c, id); - exports = module.exports; - } else { - module = this.m; - exports = this.e; - } - module.namespaceObject = exports; - esm(exports, bindings); -} -contextPrototype.s = esmExport; -function ensureDynamicExports(module, exports) { - let reexportedObjects = REEXPORTED_OBJECTS.get(module); - if (!reexportedObjects) { - REEXPORTED_OBJECTS.set(module, reexportedObjects = []); - module.exports = module.namespaceObject = new Proxy(exports, { - get (target, prop) { - if (hasOwnProperty.call(target, prop) || prop === 'default' || prop === '__esModule') { - return Reflect.get(target, prop); - } - for (const obj of reexportedObjects){ - const value = Reflect.get(obj, prop); - if (value !== undefined) return value; - } - return undefined; - }, - ownKeys (target) { - const keys = Reflect.ownKeys(target); - for (const obj of reexportedObjects){ - for (const key of Reflect.ownKeys(obj)){ - if (key !== 'default' && !keys.includes(key)) keys.push(key); - } - } - return keys; - } - }); - } - return reexportedObjects; -} -/** - * Dynamically exports properties from an object - */ function dynamicExport(object, id) { - let module; - let exports; - if (id != null) { - module = getOverwrittenModule(this.c, id); - exports = module.exports; - } else { - module = this.m; - exports = this.e; - } - const reexportedObjects = ensureDynamicExports(module, exports); - if (typeof object === 'object' && object !== null) { - reexportedObjects.push(object); - } -} -contextPrototype.j = dynamicExport; -function exportValue(value, id) { - let module; - if (id != null) { - module = getOverwrittenModule(this.c, id); - } else { - module = this.m; - } - module.exports = value; -} -contextPrototype.v = exportValue; -function exportNamespace(namespace, id) { - let module; - if (id != null) { - module = getOverwrittenModule(this.c, id); - } else { - module = this.m; - } - module.exports = module.namespaceObject = namespace; -} -contextPrototype.n = exportNamespace; -function createGetter(obj, key) { - return ()=>obj[key]; -} -/** - * @returns prototype of the object - */ const getProto = Object.getPrototypeOf ? (obj)=>Object.getPrototypeOf(obj) : (obj)=>obj.__proto__; -/** Prototypes that are not expanded for exports */ const LEAF_PROTOTYPES = [ - null, - getProto({}), - getProto([]), - getProto(getProto) -]; -/** - * @param raw - * @param ns - * @param allowExportDefault - * * `false`: will have the raw module as default export - * * `true`: will have the default property as default export - */ function interopEsm(raw, ns, allowExportDefault) { - const bindings = []; - let defaultLocation = -1; - for(let current = raw; (typeof current === 'object' || typeof current === 'function') && !LEAF_PROTOTYPES.includes(current); current = getProto(current)){ - for (const key of Object.getOwnPropertyNames(current)){ - bindings.push(key, createGetter(raw, key)); - if (defaultLocation === -1 && key === 'default') { - defaultLocation = bindings.length - 1; - } - } - } - // this is not really correct - // we should set the `default` getter if the imported module is a `.cjs file` - if (!(allowExportDefault && defaultLocation >= 0)) { - // Replace the binding with one for the namespace itself in order to preserve iteration order. - if (defaultLocation >= 0) { - // Replace the getter with the value - bindings.splice(defaultLocation, 1, BindingTag_Value, raw); - } else { - bindings.push('default', BindingTag_Value, raw); - } - } - esm(ns, bindings); - return ns; -} -function createNS(raw) { - if (typeof raw === 'function') { - return function(...args) { - return raw.apply(this, args); - }; - } else { - return Object.create(null); - } -} -function esmImport(id) { - const module = getOrInstantiateModuleFromParent(id, this.m); - // any ES module has to have `module.namespaceObject` defined. - if (module.namespaceObject) return module.namespaceObject; - // only ESM can be an async module, so we don't need to worry about exports being a promise here. - const raw = module.exports; - return module.namespaceObject = interopEsm(raw, createNS(raw), raw && raw.__esModule); -} -contextPrototype.i = esmImport; -function asyncLoader(moduleId) { - const loader = this.r(moduleId); - return loader(esmImport.bind(this)); -} -contextPrototype.A = asyncLoader; -// Add a simple runtime require so that environments without one can still pass -// `typeof require` CommonJS checks so that exports are correctly registered. -const runtimeRequire = // @ts-ignore -typeof require === 'function' ? require : function require1() { - throw new Error('Unexpected use of runtime require'); -}; -contextPrototype.t = runtimeRequire; -function commonJsRequire(id) { - return getOrInstantiateModuleFromParent(id, this.m).exports; -} -contextPrototype.r = commonJsRequire; -/** - * Remove fragments and query parameters since they are never part of the context map keys - * - * This matches how we parse patterns at resolving time. Arguably we should only do this for - * strings passed to `import` but the resolve does it for `import` and `require` and so we do - * here as well. - */ function parseRequest(request) { - // Per the URI spec fragments can contain `?` characters, so we should trim it off first - // https://datatracker.ietf.org/doc/html/rfc3986#section-3.5 - const hashIndex = request.indexOf('#'); - if (hashIndex !== -1) { - request = request.substring(0, hashIndex); - } - const queryIndex = request.indexOf('?'); - if (queryIndex !== -1) { - request = request.substring(0, queryIndex); - } - return request; -} -/** - * `require.context` and require/import expression runtime. - */ function moduleContext(map) { - function moduleContext(id) { - id = parseRequest(id); - if (hasOwnProperty.call(map, id)) { - return map[id].module(); - } - const e = new Error(`Cannot find module '${id}'`); - e.code = 'MODULE_NOT_FOUND'; - throw e; - } - moduleContext.keys = ()=>{ - return Object.keys(map); - }; - moduleContext.resolve = (id)=>{ - id = parseRequest(id); - if (hasOwnProperty.call(map, id)) { - return map[id].id(); - } - const e = new Error(`Cannot find module '${id}'`); - e.code = 'MODULE_NOT_FOUND'; - throw e; - }; - moduleContext.import = async (id)=>{ - return await moduleContext(id); - }; - return moduleContext; -} -contextPrototype.f = moduleContext; -/** - * Returns the path of a chunk defined by its data. - */ function getChunkPath(chunkData) { - return typeof chunkData === 'string' ? chunkData : chunkData.path; -} -function isPromise(maybePromise) { - return maybePromise != null && typeof maybePromise === 'object' && 'then' in maybePromise && typeof maybePromise.then === 'function'; -} -function isAsyncModuleExt(obj) { - return turbopackQueues in obj; -} -function createPromise() { - let resolve; - let reject; - const promise = new Promise((res, rej)=>{ - reject = rej; - resolve = res; - }); - return { - promise, - resolve: resolve, - reject: reject - }; -} -// Load the CompressedmoduleFactories of a chunk into the `moduleFactories` Map. -// The CompressedModuleFactories format is -// - 1 or more module ids -// - a module factory function -// So walking this is a little complex but the flat structure is also fast to -// traverse, we can use `typeof` operators to distinguish the two cases. -function installCompressedModuleFactories(chunkModules, offset, moduleFactories, newModuleId) { - let i = offset; - while(i < chunkModules.length){ - let end = i + 1; - // Find our factory function - while(end < chunkModules.length && typeof chunkModules[end] !== 'function'){ - end++; - } - if (end === chunkModules.length) { - throw new Error('malformed chunk format, expected a factory function'); - } - // Install the factory for each module ID that doesn't already have one. - // When some IDs in this group already have a factory, reuse that existing - // group factory for the missing IDs to keep all IDs in the group consistent. - // Otherwise, install the factory from this chunk. - const moduleFactoryFn = chunkModules[end]; - let existingGroupFactory = undefined; - for(let j = i; j < end; j++){ - const id = chunkModules[j]; - const existingFactory = moduleFactories.get(id); - if (existingFactory) { - existingGroupFactory = existingFactory; - break; - } - } - const factoryToInstall = existingGroupFactory ?? moduleFactoryFn; - let didInstallFactory = false; - for(let j = i; j < end; j++){ - const id = chunkModules[j]; - if (!moduleFactories.has(id)) { - if (!didInstallFactory) { - if (factoryToInstall === moduleFactoryFn) { - applyModuleFactoryName(moduleFactoryFn); - } - didInstallFactory = true; - } - moduleFactories.set(id, factoryToInstall); - newModuleId?.(id); - } - } - i = end + 1; // end is pointing at the last factory advance to the next id or the end of the array. - } -} -// everything below is adapted from webpack -// https://github.com/webpack/webpack/blob/6be4065ade1e252c1d8dcba4af0f43e32af1bdc1/lib/runtime/AsyncModuleRuntimeModule.js#L13 -const turbopackQueues = Symbol('turbopack queues'); -const turbopackExports = Symbol('turbopack exports'); -const turbopackError = Symbol('turbopack error'); -function resolveQueue(queue) { - if (queue && queue.status !== 1) { - queue.status = 1; - queue.forEach((fn)=>fn.queueCount--); - queue.forEach((fn)=>fn.queueCount-- ? fn.queueCount++ : fn()); - } -} -function wrapDeps(deps) { - return deps.map((dep)=>{ - if (dep !== null && typeof dep === 'object') { - if (isAsyncModuleExt(dep)) return dep; - if (isPromise(dep)) { - const queue = Object.assign([], { - status: 0 - }); - const obj = { - [turbopackExports]: {}, - [turbopackQueues]: (fn)=>fn(queue) - }; - dep.then((res)=>{ - obj[turbopackExports] = res; - resolveQueue(queue); - }, (err)=>{ - obj[turbopackError] = err; - resolveQueue(queue); - }); - return obj; - } - } - return { - [turbopackExports]: dep, - [turbopackQueues]: ()=>{} - }; - }); -} -function asyncModule(body, hasAwait) { - const module = this.m; - const queue = hasAwait ? Object.assign([], { - status: -1 - }) : undefined; - const depQueues = new Set(); - const { resolve, reject, promise: rawPromise } = createPromise(); - const promise = Object.assign(rawPromise, { - [turbopackExports]: module.exports, - [turbopackQueues]: (fn)=>{ - queue && fn(queue); - depQueues.forEach(fn); - promise['catch'](()=>{}); - } - }); - const attributes = { - get () { - return promise; - }, - set (v) { - // Calling `esmExport` leads to this. - if (v !== promise) { - promise[turbopackExports] = v; - } - } - }; - Object.defineProperty(module, 'exports', attributes); - Object.defineProperty(module, 'namespaceObject', attributes); - function handleAsyncDependencies(deps) { - const currentDeps = wrapDeps(deps); - const getResult = ()=>currentDeps.map((d)=>{ - if (d[turbopackError]) throw d[turbopackError]; - return d[turbopackExports]; - }); - const { promise, resolve } = createPromise(); - const fn = Object.assign(()=>resolve(getResult), { - queueCount: 0 - }); - function fnQueue(q) { - if (q !== queue && !depQueues.has(q)) { - depQueues.add(q); - if (q && q.status === 0) { - fn.queueCount++; - q.push(fn); - } - } - } - currentDeps.map((dep)=>dep[turbopackQueues](fnQueue)); - return fn.queueCount ? promise : getResult(); - } - function asyncResult(err) { - if (err) { - reject(promise[turbopackError] = err); - } else { - resolve(promise[turbopackExports]); - } - resolveQueue(queue); - } - body(handleAsyncDependencies, asyncResult); - if (queue && queue.status === -1) { - queue.status = 0; - } -} -contextPrototype.a = asyncModule; -/** - * A pseudo "fake" URL object to resolve to its relative path. - * - * When UrlRewriteBehavior is set to relative, calls to the `new URL()` will construct url without base using this - * runtime function to generate context-agnostic urls between different rendering context, i.e ssr / client to avoid - * hydration mismatch. - * - * This is based on webpack's existing implementation: - * https://github.com/webpack/webpack/blob/87660921808566ef3b8796f8df61bd79fc026108/lib/runtime/RelativeUrlRuntimeModule.js - */ const relativeURL = function relativeURL(inputUrl) { - const realUrl = new URL(inputUrl, 'x:/'); - const values = {}; - for(const key in realUrl)values[key] = realUrl[key]; - values.href = inputUrl; - values.pathname = inputUrl.replace(/[?#].*/, ''); - values.origin = values.protocol = ''; - values.toString = values.toJSON = (..._args)=>inputUrl; - for(const key in values)Object.defineProperty(this, key, { - enumerable: true, - configurable: true, - value: values[key] - }); -}; -relativeURL.prototype = URL.prototype; -contextPrototype.U = relativeURL; -/** - * Utility function to ensure all variants of an enum are handled. - */ function invariant(never, computeMessage) { - throw new Error(`Invariant: ${computeMessage(never)}`); -} -/** - * Constructs an error message for when a module factory is not available. - */ function factoryNotAvailableMessage(moduleId, sourceType, sourceData) { - let instantiationReason; - switch(sourceType){ - case 0: - instantiationReason = `as a runtime entry of chunk ${sourceData}`; - break; - case 1: - instantiationReason = `because it was required from module ${sourceData}`; - break; - case 2: - instantiationReason = 'because of an HMR update'; - break; - default: - invariant(sourceType, (sourceType)=>`Unknown source type: ${sourceType}`); - } - return `Module ${moduleId} was instantiated ${instantiationReason}, but the module factory is not available.`; -} -/** - * A stub function to make `require` available but non-functional in ESM. - */ function requireStub(_moduleId) { - throw new Error('dynamic usage of require is not supported'); -} -contextPrototype.z = requireStub; -// Make `globalThis` available to the module in a way that cannot be shadowed by a local variable. -contextPrototype.g = globalThis; -function applyModuleFactoryName(factory) { - // Give the module factory a nice name to improve stack traces. - Object.defineProperty(factory, 'name', { - value: 'module evaluation' - }); -} -/// -/// A 'base' utilities to support runtime can have externals. -/// Currently this is for node.js / edge runtime both. -/// If a fn requires node.js specific behavior, it should be placed in `node-external-utils` instead. -async function externalImport(id) { - let raw; - try { - raw = await import(id); - } catch (err) { - // TODO(alexkirsz) This can happen when a client-side module tries to load - // an external module we don't provide a shim for (e.g. querystring, url). - // For now, we fail semi-silently, but in the future this should be a - // compilation error. - throw new Error(`Failed to load external module ${id}: ${err}`); - } - if (raw && raw.__esModule && raw.default && 'default' in raw.default) { - return interopEsm(raw.default, createNS(raw), true); - } - return raw; -} -contextPrototype.y = externalImport; -function externalRequire(id, thunk, esm = false) { - let raw; - try { - raw = thunk(); - } catch (err) { - // TODO(alexkirsz) This can happen when a client-side module tries to load - // an external module we don't provide a shim for (e.g. querystring, url). - // For now, we fail semi-silently, but in the future this should be a - // compilation error. - throw new Error(`Failed to load external module ${id}: ${err}`); - } - if (!esm || raw.__esModule) { - return raw; - } - return interopEsm(raw, createNS(raw), true); -} -externalRequire.resolve = (id, options)=>{ - return require.resolve(id, options); -}; -contextPrototype.x = externalRequire; -/* eslint-disable @typescript-eslint/no-unused-vars */ const path = require('path'); -const relativePathToRuntimeRoot = path.relative(RUNTIME_PUBLIC_PATH, '.'); -// Compute the relative path to the `distDir`. -const relativePathToDistRoot = path.join(relativePathToRuntimeRoot, RELATIVE_ROOT_PATH); -const RUNTIME_ROOT = path.resolve(__filename, relativePathToRuntimeRoot); -// Compute the absolute path to the root, by stripping distDir from the absolute path to this file. -const ABSOLUTE_ROOT = path.resolve(__filename, relativePathToDistRoot); -/** - * Returns an absolute path to the given module path. - * Module path should be relative, either path to a file or a directory. - * - * This fn allows to calculate an absolute path for some global static values, such as - * `__dirname` or `import.meta.url` that Turbopack will not embeds in compile time. - * See ImportMetaBinding::code_generation for the usage. - */ function resolveAbsolutePath(modulePath) { - if (modulePath) { - return path.join(ABSOLUTE_ROOT, modulePath); - } - return ABSOLUTE_ROOT; -} -Context.prototype.P = resolveAbsolutePath; -/* eslint-disable @typescript-eslint/no-unused-vars */ /// -function readWebAssemblyAsResponse(path) { - const { createReadStream } = require('fs'); - const { Readable } = require('stream'); - const stream = createReadStream(path); - // @ts-ignore unfortunately there's a slight type mismatch with the stream. - return new Response(Readable.toWeb(stream), { - headers: { - 'content-type': 'application/wasm' - } - }); -} -async function compileWebAssemblyFromPath(path) { - const response = readWebAssemblyAsResponse(path); - return await WebAssembly.compileStreaming(response); -} -async function instantiateWebAssemblyFromPath(path, importsObj) { - const response = readWebAssemblyAsResponse(path); - const { instance } = await WebAssembly.instantiateStreaming(response, importsObj); - return instance.exports; -} -/* eslint-disable @typescript-eslint/no-unused-vars */ /// -/// -/// -/// -/// -/** - * Base Node.js runtime shared between production and development. - * Contains chunk loading, module caching, and other non-HMR functionality. - */ process.env.TURBOPACK = '1'; -const url = require('url'); -const moduleFactories = new Map(); -const moduleCache = Object.create(null); -/** - * Returns an absolute path to the given module's id. - */ function resolvePathFromModule(moduleId) { - const exported = this.r(moduleId); - const exportedPath = exported?.default ?? exported; - if (typeof exportedPath !== 'string') { - return exported; - } - const strippedAssetPrefix = exportedPath.slice(ASSET_PREFIX.length); - const resolved = path.resolve(RUNTIME_ROOT, strippedAssetPrefix); - return url.pathToFileURL(resolved).href; -} -/** - * Exports a URL value. No suffix is added in Node.js runtime. - */ function exportUrl(urlValue, id) { - exportValue.call(this, urlValue, id); -} -function loadRuntimeChunk(sourcePath, chunkData) { - if (typeof chunkData === 'string') { - loadRuntimeChunkPath(sourcePath, chunkData); - } else { - loadRuntimeChunkPath(sourcePath, chunkData.path); - } -} -const loadedChunks = new Set(); -const unsupportedLoadChunk = Promise.resolve(undefined); -const loadedChunk = Promise.resolve(undefined); -const chunkCache = new Map(); -function clearChunkCache() { - chunkCache.clear(); - loadedChunks.clear(); -} -function loadRuntimeChunkPath(sourcePath, chunkPath) { - if (!isJs(chunkPath)) { - // We only support loading JS chunks in Node.js. - // This branch can be hit when trying to load a CSS chunk. - return; - } - if (loadedChunks.has(chunkPath)) { - return; - } - try { - const resolved = path.resolve(RUNTIME_ROOT, chunkPath); - const chunkModules = require(resolved); - installCompressedModuleFactories(chunkModules, 0, moduleFactories); - loadedChunks.add(chunkPath); - } catch (cause) { - let errorMessage = `Failed to load chunk ${chunkPath}`; - if (sourcePath) { - errorMessage += ` from runtime for chunk ${sourcePath}`; - } - const error = new Error(errorMessage, { - cause - }); - error.name = 'ChunkLoadError'; - throw error; - } -} -function loadChunkAsync(chunkData) { - const chunkPath = typeof chunkData === 'string' ? chunkData : chunkData.path; - if (!isJs(chunkPath)) { - // We only support loading JS chunks in Node.js. - // This branch can be hit when trying to load a CSS chunk. - return unsupportedLoadChunk; - } - let entry = chunkCache.get(chunkPath); - if (entry === undefined) { - try { - // resolve to an absolute path to simplify `require` handling - const resolved = path.resolve(RUNTIME_ROOT, chunkPath); - // TODO: consider switching to `import()` to enable concurrent chunk loading and async file io - // However this is incompatible with hot reloading (since `import` doesn't use the require cache) - const chunkModules = require(resolved); - installCompressedModuleFactories(chunkModules, 0, moduleFactories); - entry = loadedChunk; - } catch (cause) { - const errorMessage = `Failed to load chunk ${chunkPath} from module ${this.m.id}`; - const error = new Error(errorMessage, { - cause - }); - error.name = 'ChunkLoadError'; - // Cache the failure promise, future requests will also get this same rejection - entry = Promise.reject(error); - } - chunkCache.set(chunkPath, entry); - } - // TODO: Return an instrumented Promise that React can use instead of relying on referential equality. - return entry; -} -contextPrototype.l = loadChunkAsync; -function loadChunkAsyncByUrl(chunkUrl) { - const path1 = url.fileURLToPath(new URL(chunkUrl, RUNTIME_ROOT)); - return loadChunkAsync.call(this, path1); -} -contextPrototype.L = loadChunkAsyncByUrl; -function loadWebAssembly(chunkPath, _edgeModule, imports) { - const resolved = path.resolve(RUNTIME_ROOT, chunkPath); - return instantiateWebAssemblyFromPath(resolved, imports); -} -contextPrototype.w = loadWebAssembly; -function loadWebAssemblyModule(chunkPath, _edgeModule) { - const resolved = path.resolve(RUNTIME_ROOT, chunkPath); - return compileWebAssemblyFromPath(resolved); -} -contextPrototype.u = loadWebAssemblyModule; -/** - * Creates a Node.js worker thread by instantiating the given WorkerConstructor - * with the appropriate path and options, including forwarded globals. - * - * @param WorkerConstructor The Worker constructor from worker_threads - * @param workerPath Path to the worker entry chunk - * @param workerOptions options to pass to the Worker constructor (optional) - */ function createWorker(WorkerConstructor, workerPath, workerOptions) { - // Build the forwarded globals object - const forwardedGlobals = {}; - for (const name of WORKER_FORWARDED_GLOBALS){ - forwardedGlobals[name] = globalThis[name]; - } - // Merge workerData with forwarded globals - const existingWorkerData = workerOptions?.workerData || {}; - const options = { - ...workerOptions, - workerData: { - ...typeof existingWorkerData === 'object' ? existingWorkerData : {}, - __turbopack_globals__: forwardedGlobals - } - }; - return new WorkerConstructor(workerPath, options); -} -const regexJsUrl = /\.js(?:\?[^#]*)?(?:#.*)?$/; -/** - * Checks if a given path/URL ends with .js, optionally followed by ?query or #fragment. - */ function isJs(chunkUrlOrPath) { - return regexJsUrl.test(chunkUrlOrPath); -} -/* eslint-disable @typescript-eslint/no-unused-vars */ /// -/** - * Production Node.js runtime. - * Uses ModuleWithDirection and simple module instantiation without HMR support. - */ // moduleCache and moduleFactories are declared in runtime-base.ts -// this is read in runtime-utils.ts so it creates a module with direction for hmr -createModuleWithDirectionFlag = true; -const nodeContextPrototype = Context.prototype; -nodeContextPrototype.q = exportUrl; -nodeContextPrototype.M = moduleFactories; -// Cast moduleCache to ModuleWithDirection for production mode -nodeContextPrototype.c = moduleCache; -nodeContextPrototype.R = resolvePathFromModule; -nodeContextPrototype.b = createWorker; -nodeContextPrototype.C = clearChunkCache; -function instantiateModule(id, sourceType, sourceData) { - const moduleFactory = moduleFactories.get(id); - if (typeof moduleFactory !== 'function') { - // This can happen if modules incorrectly handle HMR disposes/updates, - // e.g. when they keep a `setTimeout` around which still executes old code - // and contains e.g. a `require("something")` call. - throw new Error(factoryNotAvailableMessage(id, sourceType, sourceData)); - } - const module1 = createModuleWithDirection(id); - const exports = module1.exports; - moduleCache[id] = module1; - const context = new Context(module1, exports); - // NOTE(alexkirsz) This can fail when the module encounters a runtime error. - try { - moduleFactory(context, module1, exports); - } catch (error) { - module1.error = error; - throw error; - } - ; - module1.loaded = true; - if (module1.namespaceObject && module1.exports !== module1.namespaceObject) { - // in case of a circular dependency: cjs1 -> esm2 -> cjs1 - interopEsm(module1.exports, module1.namespaceObject); - } - return module1; -} -/** - * Retrieves a module from the cache, or instantiate it if it is not cached. - */ // @ts-ignore -function getOrInstantiateModuleFromParent(id, sourceModule) { - const module1 = moduleCache[id]; - if (module1) { - if (module1.error) { - throw module1.error; - } - return module1; - } - return instantiateModule(id, SourceType.Parent, sourceModule.id); -} -/** - * Instantiates a runtime module. - */ function instantiateRuntimeModule(chunkPath, moduleId) { - return instantiateModule(moduleId, SourceType.Runtime, chunkPath); -} -/** - * Retrieves a module from the cache, or instantiate it as a runtime module if it is not cached. - */ // @ts-ignore TypeScript doesn't separate this module space from the browser runtime -function getOrInstantiateRuntimeModule(chunkPath, moduleId) { - const module1 = moduleCache[moduleId]; - if (module1) { - if (module1.error) { - throw module1.error; - } - return module1; - } - return instantiateRuntimeModule(chunkPath, moduleId); -} -module.exports = (sourcePath)=>({ - m: (id)=>getOrInstantiateRuntimeModule(sourcePath, id), - c: (chunkData)=>loadRuntimeChunk(sourcePath, chunkData) - }); - - -//# sourceMappingURL=%5Bturbopack%5D_runtime.js.map \ No newline at end of file diff --git a/.next.prev/build/chunks/[turbopack]_runtime.js.map b/.next.prev/build/chunks/[turbopack]_runtime.js.map deleted file mode 100644 index 19883e67..00000000 --- a/.next.prev/build/chunks/[turbopack]_runtime.js.map +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared/runtime/runtime-utils.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * TurboPack ECMAScript runtimes.\n *\n * It will be prepended to the runtime code of each runtime.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n\ntype EsmNamespaceObject = Record\n\n/**\n * Describes why a module was instantiated.\n * Shared between browser and Node.js runtimes.\n */\nenum SourceType {\n /**\n * The module was instantiated because it was included in an evaluated chunk's\n * runtime.\n * SourceData is a ChunkPath.\n */\n Runtime = 0,\n /**\n * The module was instantiated because a parent module imported it.\n * SourceData is a ModuleId.\n */\n Parent = 1,\n /**\n * The module was instantiated because it was included in a chunk's hot module\n * update.\n * SourceData is an array of ModuleIds or undefined.\n */\n Update = 2,\n}\n\ntype SourceData = ChunkPath | ModuleId | ModuleId[] | undefined\n\n// @ts-ignore Defined in `dev-base.ts`\ndeclare function getOrInstantiateModuleFromParent(\n id: ModuleId,\n sourceModule: M\n): M\n\n// @ts-ignore Defined in `hmr-runtime.ts` (dev mode only)\ndeclare let devModuleCache: Record | undefined\n\n/**\n * Flag indicating which module object type to create when a module is merged. Set to `true`\n * by each runtime that uses ModuleWithDirection (browser dev-base.ts, nodejs dev-base.ts,\n * nodejs build-base.ts). Browser production (build-base.ts) leaves it as `false` since it\n * uses plain Module objects.\n */\nlet createModuleWithDirectionFlag = false\n\nconst REEXPORTED_OBJECTS = new WeakMap()\n\n/**\n * Constructs the `__turbopack_context__` object for a module.\n */\nfunction Context(\n this: TurbopackBaseContext,\n module: Module,\n exports: Exports\n) {\n this.m = module\n // We need to store this here instead of accessing it from the module object to:\n // 1. Make it available to factories directly, since we rewrite `this` to\n // `__turbopack_context__.e` in CJS modules.\n // 2. Support async modules which rewrite `module.exports` to a promise, so we\n // can still access the original exports object from functions like\n // `esmExport`\n // Ideally we could find a new approach for async modules and drop this property altogether.\n this.e = exports\n}\nconst contextPrototype = Context.prototype as TurbopackBaseContext\n\ntype ModuleContextMap = Record\n\ninterface ModuleContextEntry {\n id: () => ModuleId\n module: () => any\n}\n\ninterface ModuleContext {\n // require call\n (moduleId: string): Exports | EsmNamespaceObject\n\n // async import call\n import(moduleId: string): Promise\n\n keys(): ModuleId[]\n\n resolve(moduleId: string): ModuleId\n}\n\ntype GetOrInstantiateModuleFromParent = (\n moduleId: M['id'],\n parentModule: M\n) => M\n\ndeclare function getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module\n\nconst hasOwnProperty = Object.prototype.hasOwnProperty\nconst toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag\n\nfunction defineProp(\n obj: any,\n name: PropertyKey,\n options: PropertyDescriptor & ThisType\n) {\n if (!hasOwnProperty.call(obj, name)) Object.defineProperty(obj, name, options)\n}\n\nfunction getOverwrittenModule(\n moduleCache: ModuleCache,\n id: ModuleId\n): Module {\n let module = moduleCache[id]\n if (!module) {\n if (createModuleWithDirectionFlag) {\n // set in development modes for hmr support\n module = createModuleWithDirection(id)\n } else {\n module = createModuleObject(id)\n }\n moduleCache[id] = module\n }\n return module\n}\n\n/**\n * Creates the module object. Only done here to ensure all module objects have the same shape.\n */\nfunction createModuleObject(id: ModuleId): Module {\n return {\n exports: {},\n error: undefined,\n id,\n namespaceObject: undefined,\n }\n}\n\nfunction createModuleWithDirection(id: ModuleId): ModuleWithDirection {\n return {\n exports: {},\n error: undefined,\n id,\n namespaceObject: undefined,\n parents: [],\n children: [],\n }\n}\n\ntype BindingTag = 0\nconst BindingTag_Value = 0 as BindingTag\n\n// an arbitrary sequence of bindings as\n// - a prop name\n// - BindingTag_Value, a value to be bound directly, or\n// - 1 or 2 functions to bind as getters and sdetters\ntype EsmBindings = Array<\n string | BindingTag | (() => unknown) | ((v: unknown) => void) | unknown\n>\n\n/**\n * Adds the getters to the exports object.\n */\nfunction esm(exports: Exports, bindings: EsmBindings) {\n defineProp(exports, '__esModule', { value: true })\n if (toStringTag) defineProp(exports, toStringTag, { value: 'Module' })\n let i = 0\n while (i < bindings.length) {\n const propName = bindings[i++] as string\n const tagOrFunction = bindings[i++]\n if (typeof tagOrFunction === 'number') {\n if (tagOrFunction === BindingTag_Value) {\n defineProp(exports, propName, {\n value: bindings[i++],\n enumerable: true,\n writable: false,\n })\n } else {\n throw new Error(`unexpected tag: ${tagOrFunction}`)\n }\n } else {\n const getterFn = tagOrFunction as () => unknown\n if (typeof bindings[i] === 'function') {\n const setterFn = bindings[i++] as (v: unknown) => void\n defineProp(exports, propName, {\n get: getterFn,\n set: setterFn,\n enumerable: true,\n })\n } else {\n defineProp(exports, propName, {\n get: getterFn,\n enumerable: true,\n })\n }\n }\n }\n Object.seal(exports)\n}\n\n/**\n * Makes the module an ESM with exports\n */\nfunction esmExport(\n this: TurbopackBaseContext,\n bindings: EsmBindings,\n id: ModuleId | undefined\n) {\n let module: Module\n let exports: Module['exports']\n if (id != null) {\n module = getOverwrittenModule(this.c, id)\n exports = module.exports\n } else {\n module = this.m\n exports = this.e\n }\n module.namespaceObject = exports\n esm(exports, bindings)\n}\ncontextPrototype.s = esmExport\n\ntype ReexportedObjects = Record[]\nfunction ensureDynamicExports(\n module: Module,\n exports: Exports\n): ReexportedObjects {\n let reexportedObjects: ReexportedObjects | undefined =\n REEXPORTED_OBJECTS.get(module)\n\n if (!reexportedObjects) {\n REEXPORTED_OBJECTS.set(module, (reexportedObjects = []))\n module.exports = module.namespaceObject = new Proxy(exports, {\n get(target, prop) {\n if (\n hasOwnProperty.call(target, prop) ||\n prop === 'default' ||\n prop === '__esModule'\n ) {\n return Reflect.get(target, prop)\n }\n for (const obj of reexportedObjects!) {\n const value = Reflect.get(obj, prop)\n if (value !== undefined) return value\n }\n return undefined\n },\n ownKeys(target) {\n const keys = Reflect.ownKeys(target)\n for (const obj of reexportedObjects!) {\n for (const key of Reflect.ownKeys(obj)) {\n if (key !== 'default' && !keys.includes(key)) keys.push(key)\n }\n }\n return keys\n },\n })\n }\n return reexportedObjects\n}\n\n/**\n * Dynamically exports properties from an object\n */\nfunction dynamicExport(\n this: TurbopackBaseContext,\n object: Record,\n id: ModuleId | undefined\n) {\n let module: Module\n let exports: Exports\n if (id != null) {\n module = getOverwrittenModule(this.c, id)\n exports = module.exports\n } else {\n module = this.m\n exports = this.e\n }\n const reexportedObjects = ensureDynamicExports(module, exports)\n\n if (typeof object === 'object' && object !== null) {\n reexportedObjects.push(object)\n }\n}\ncontextPrototype.j = dynamicExport\n\nfunction exportValue(\n this: TurbopackBaseContext,\n value: any,\n id: ModuleId | undefined\n) {\n let module: Module\n if (id != null) {\n module = getOverwrittenModule(this.c, id)\n } else {\n module = this.m\n }\n module.exports = value\n}\ncontextPrototype.v = exportValue\n\nfunction exportNamespace(\n this: TurbopackBaseContext,\n namespace: any,\n id: ModuleId | undefined\n) {\n let module: Module\n if (id != null) {\n module = getOverwrittenModule(this.c, id)\n } else {\n module = this.m\n }\n module.exports = module.namespaceObject = namespace\n}\ncontextPrototype.n = exportNamespace\n\nfunction createGetter(obj: Record, key: string | symbol) {\n return () => obj[key]\n}\n\n/**\n * @returns prototype of the object\n */\nconst getProto: (obj: any) => any = Object.getPrototypeOf\n ? (obj) => Object.getPrototypeOf(obj)\n : (obj) => obj.__proto__\n\n/** Prototypes that are not expanded for exports */\nconst LEAF_PROTOTYPES = [null, getProto({}), getProto([]), getProto(getProto)]\n\n/**\n * @param raw\n * @param ns\n * @param allowExportDefault\n * * `false`: will have the raw module as default export\n * * `true`: will have the default property as default export\n */\nfunction interopEsm(\n raw: Exports,\n ns: EsmNamespaceObject,\n allowExportDefault?: boolean\n) {\n const bindings: EsmBindings = []\n let defaultLocation = -1\n for (\n let current = raw;\n (typeof current === 'object' || typeof current === 'function') &&\n !LEAF_PROTOTYPES.includes(current);\n current = getProto(current)\n ) {\n for (const key of Object.getOwnPropertyNames(current)) {\n bindings.push(key, createGetter(raw, key))\n if (defaultLocation === -1 && key === 'default') {\n defaultLocation = bindings.length - 1\n }\n }\n }\n\n // this is not really correct\n // we should set the `default` getter if the imported module is a `.cjs file`\n if (!(allowExportDefault && defaultLocation >= 0)) {\n // Replace the binding with one for the namespace itself in order to preserve iteration order.\n if (defaultLocation >= 0) {\n // Replace the getter with the value\n bindings.splice(defaultLocation, 1, BindingTag_Value, raw)\n } else {\n bindings.push('default', BindingTag_Value, raw)\n }\n }\n\n esm(ns, bindings)\n return ns\n}\n\nfunction createNS(raw: Module['exports']): EsmNamespaceObject {\n if (typeof raw === 'function') {\n return function (this: any, ...args: any[]) {\n return raw.apply(this, args)\n }\n } else {\n return Object.create(null)\n }\n}\n\nfunction esmImport(\n this: TurbopackBaseContext,\n id: ModuleId\n): Exclude {\n const module = getOrInstantiateModuleFromParent(id, this.m)\n\n // any ES module has to have `module.namespaceObject` defined.\n if (module.namespaceObject) return module.namespaceObject\n\n // only ESM can be an async module, so we don't need to worry about exports being a promise here.\n const raw = module.exports\n return (module.namespaceObject = interopEsm(\n raw,\n createNS(raw),\n raw && (raw as any).__esModule\n ))\n}\ncontextPrototype.i = esmImport\n\nfunction asyncLoader(\n this: TurbopackBaseContext,\n moduleId: ModuleId\n): Promise {\n const loader = this.r(moduleId) as (\n importFunction: EsmImport\n ) => Promise\n return loader(esmImport.bind(this))\n}\ncontextPrototype.A = asyncLoader\n\n// Add a simple runtime require so that environments without one can still pass\n// `typeof require` CommonJS checks so that exports are correctly registered.\nconst runtimeRequire =\n // @ts-ignore\n typeof require === 'function'\n ? // @ts-ignore\n require\n : function require() {\n throw new Error('Unexpected use of runtime require')\n }\ncontextPrototype.t = runtimeRequire\n\nfunction commonJsRequire(\n this: TurbopackBaseContext,\n id: ModuleId\n): Exports {\n return getOrInstantiateModuleFromParent(id, this.m).exports\n}\ncontextPrototype.r = commonJsRequire\n\n/**\n * Remove fragments and query parameters since they are never part of the context map keys\n *\n * This matches how we parse patterns at resolving time. Arguably we should only do this for\n * strings passed to `import` but the resolve does it for `import` and `require` and so we do\n * here as well.\n */\nfunction parseRequest(request: string): string {\n // Per the URI spec fragments can contain `?` characters, so we should trim it off first\n // https://datatracker.ietf.org/doc/html/rfc3986#section-3.5\n const hashIndex = request.indexOf('#')\n if (hashIndex !== -1) {\n request = request.substring(0, hashIndex)\n }\n\n const queryIndex = request.indexOf('?')\n if (queryIndex !== -1) {\n request = request.substring(0, queryIndex)\n }\n\n return request\n}\n/**\n * `require.context` and require/import expression runtime.\n */\nfunction moduleContext(map: ModuleContextMap): ModuleContext {\n function moduleContext(id: string): Exports {\n id = parseRequest(id)\n if (hasOwnProperty.call(map, id)) {\n return map[id].module()\n }\n\n const e = new Error(`Cannot find module '${id}'`)\n ;(e as any).code = 'MODULE_NOT_FOUND'\n throw e\n }\n\n moduleContext.keys = (): string[] => {\n return Object.keys(map)\n }\n\n moduleContext.resolve = (id: string): ModuleId => {\n id = parseRequest(id)\n if (hasOwnProperty.call(map, id)) {\n return map[id].id()\n }\n\n const e = new Error(`Cannot find module '${id}'`)\n ;(e as any).code = 'MODULE_NOT_FOUND'\n throw e\n }\n\n moduleContext.import = async (id: string) => {\n return await (moduleContext(id) as Promise)\n }\n\n return moduleContext\n}\ncontextPrototype.f = moduleContext\n\n/**\n * Returns the path of a chunk defined by its data.\n */\nfunction getChunkPath(chunkData: ChunkData): ChunkPath {\n return typeof chunkData === 'string' ? chunkData : chunkData.path\n}\n\nfunction isPromise(maybePromise: any): maybePromise is Promise {\n return (\n maybePromise != null &&\n typeof maybePromise === 'object' &&\n 'then' in maybePromise &&\n typeof maybePromise.then === 'function'\n )\n}\n\nfunction isAsyncModuleExt(obj: T): obj is AsyncModuleExt & T {\n return turbopackQueues in obj\n}\n\nfunction createPromise() {\n let resolve: (value: T | PromiseLike) => void\n let reject: (reason?: any) => void\n\n const promise = new Promise((res, rej) => {\n reject = rej\n resolve = res\n })\n\n return {\n promise,\n resolve: resolve!,\n reject: reject!,\n }\n}\n\n// Load the CompressedmoduleFactories of a chunk into the `moduleFactories` Map.\n// The CompressedModuleFactories format is\n// - 1 or more module ids\n// - a module factory function\n// So walking this is a little complex but the flat structure is also fast to\n// traverse, we can use `typeof` operators to distinguish the two cases.\nfunction installCompressedModuleFactories(\n chunkModules: CompressedModuleFactories,\n offset: number,\n moduleFactories: ModuleFactories,\n newModuleId?: (id: ModuleId) => void\n) {\n let i = offset\n while (i < chunkModules.length) {\n let end = i + 1\n // Find our factory function\n while (\n end < chunkModules.length &&\n typeof chunkModules[end] !== 'function'\n ) {\n end++\n }\n if (end === chunkModules.length) {\n throw new Error('malformed chunk format, expected a factory function')\n }\n\n // Install the factory for each module ID that doesn't already have one.\n // When some IDs in this group already have a factory, reuse that existing\n // group factory for the missing IDs to keep all IDs in the group consistent.\n // Otherwise, install the factory from this chunk.\n const moduleFactoryFn = chunkModules[end] as Function\n let existingGroupFactory: Function | undefined = undefined\n for (let j = i; j < end; j++) {\n const id = chunkModules[j] as ModuleId\n const existingFactory = moduleFactories.get(id)\n if (existingFactory) {\n existingGroupFactory = existingFactory\n break\n }\n }\n const factoryToInstall = existingGroupFactory ?? moduleFactoryFn\n\n let didInstallFactory = false\n for (let j = i; j < end; j++) {\n const id = chunkModules[j] as ModuleId\n if (!moduleFactories.has(id)) {\n if (!didInstallFactory) {\n if (factoryToInstall === moduleFactoryFn) {\n applyModuleFactoryName(moduleFactoryFn)\n }\n didInstallFactory = true\n }\n moduleFactories.set(id, factoryToInstall)\n newModuleId?.(id)\n }\n }\n i = end + 1 // end is pointing at the last factory advance to the next id or the end of the array.\n }\n}\n\n// everything below is adapted from webpack\n// https://github.com/webpack/webpack/blob/6be4065ade1e252c1d8dcba4af0f43e32af1bdc1/lib/runtime/AsyncModuleRuntimeModule.js#L13\n\nconst turbopackQueues = Symbol('turbopack queues')\nconst turbopackExports = Symbol('turbopack exports')\nconst turbopackError = Symbol('turbopack error')\n\nconst enum QueueStatus {\n Unknown = -1,\n Unresolved = 0,\n Resolved = 1,\n}\n\ntype AsyncQueueFn = (() => void) & { queueCount: number }\ntype AsyncQueue = AsyncQueueFn[] & {\n status: QueueStatus\n}\n\nfunction resolveQueue(queue?: AsyncQueue) {\n if (queue && queue.status !== QueueStatus.Resolved) {\n queue.status = QueueStatus.Resolved\n queue.forEach((fn) => fn.queueCount--)\n queue.forEach((fn) => (fn.queueCount-- ? fn.queueCount++ : fn()))\n }\n}\n\ntype Dep = Exports | AsyncModulePromise | Promise\n\ntype AsyncModuleExt = {\n [turbopackQueues]: (fn: (queue: AsyncQueue) => void) => void\n [turbopackExports]: Exports\n [turbopackError]?: any\n}\n\ntype AsyncModulePromise = Promise & AsyncModuleExt\n\nfunction wrapDeps(deps: Dep[]): AsyncModuleExt[] {\n return deps.map((dep): AsyncModuleExt => {\n if (dep !== null && typeof dep === 'object') {\n if (isAsyncModuleExt(dep)) return dep\n if (isPromise(dep)) {\n const queue: AsyncQueue = Object.assign([], {\n status: QueueStatus.Unresolved,\n })\n\n const obj: AsyncModuleExt = {\n [turbopackExports]: {},\n [turbopackQueues]: (fn: (queue: AsyncQueue) => void) => fn(queue),\n }\n\n dep.then(\n (res) => {\n obj[turbopackExports] = res\n resolveQueue(queue)\n },\n (err) => {\n obj[turbopackError] = err\n resolveQueue(queue)\n }\n )\n\n return obj\n }\n }\n\n return {\n [turbopackExports]: dep,\n [turbopackQueues]: () => {},\n }\n })\n}\n\nfunction asyncModule(\n this: TurbopackBaseContext,\n body: (\n handleAsyncDependencies: (\n deps: Dep[]\n ) => Exports[] | Promise<() => Exports[]>,\n asyncResult: (err?: any) => void\n ) => void,\n hasAwait: boolean\n) {\n const module = this.m\n const queue: AsyncQueue | undefined = hasAwait\n ? Object.assign([], { status: QueueStatus.Unknown })\n : undefined\n\n const depQueues: Set = new Set()\n\n const { resolve, reject, promise: rawPromise } = createPromise()\n\n const promise: AsyncModulePromise = Object.assign(rawPromise, {\n [turbopackExports]: module.exports,\n [turbopackQueues]: (fn) => {\n queue && fn(queue)\n depQueues.forEach(fn)\n promise['catch'](() => {})\n },\n } satisfies AsyncModuleExt)\n\n const attributes: PropertyDescriptor = {\n get(): any {\n return promise\n },\n set(v: any) {\n // Calling `esmExport` leads to this.\n if (v !== promise) {\n promise[turbopackExports] = v\n }\n },\n }\n\n Object.defineProperty(module, 'exports', attributes)\n Object.defineProperty(module, 'namespaceObject', attributes)\n\n function handleAsyncDependencies(deps: Dep[]) {\n const currentDeps = wrapDeps(deps)\n\n const getResult = () =>\n currentDeps.map((d) => {\n if (d[turbopackError]) throw d[turbopackError]\n return d[turbopackExports]\n })\n\n const { promise, resolve } = createPromise<() => Exports[]>()\n\n const fn: AsyncQueueFn = Object.assign(() => resolve(getResult), {\n queueCount: 0,\n })\n\n function fnQueue(q: AsyncQueue) {\n if (q !== queue && !depQueues.has(q)) {\n depQueues.add(q)\n if (q && q.status === QueueStatus.Unresolved) {\n fn.queueCount++\n q.push(fn)\n }\n }\n }\n\n currentDeps.map((dep) => dep[turbopackQueues](fnQueue))\n\n return fn.queueCount ? promise : getResult()\n }\n\n function asyncResult(err?: any) {\n if (err) {\n reject((promise[turbopackError] = err))\n } else {\n resolve(promise[turbopackExports])\n }\n\n resolveQueue(queue)\n }\n\n body(handleAsyncDependencies, asyncResult)\n\n if (queue && queue.status === QueueStatus.Unknown) {\n queue.status = QueueStatus.Unresolved\n }\n}\ncontextPrototype.a = asyncModule\n\n/**\n * A pseudo \"fake\" URL object to resolve to its relative path.\n *\n * When UrlRewriteBehavior is set to relative, calls to the `new URL()` will construct url without base using this\n * runtime function to generate context-agnostic urls between different rendering context, i.e ssr / client to avoid\n * hydration mismatch.\n *\n * This is based on webpack's existing implementation:\n * https://github.com/webpack/webpack/blob/87660921808566ef3b8796f8df61bd79fc026108/lib/runtime/RelativeUrlRuntimeModule.js\n */\nconst relativeURL = function relativeURL(this: any, inputUrl: string) {\n const realUrl = new URL(inputUrl, 'x:/')\n const values: Record = {}\n for (const key in realUrl) values[key] = (realUrl as any)[key]\n values.href = inputUrl\n values.pathname = inputUrl.replace(/[?#].*/, '')\n values.origin = values.protocol = ''\n values.toString = values.toJSON = (..._args: Array) => inputUrl\n for (const key in values)\n Object.defineProperty(this, key, {\n enumerable: true,\n configurable: true,\n value: values[key],\n })\n}\nrelativeURL.prototype = URL.prototype\ncontextPrototype.U = relativeURL\n\n/**\n * Utility function to ensure all variants of an enum are handled.\n */\nfunction invariant(never: never, computeMessage: (arg: any) => string): never {\n throw new Error(`Invariant: ${computeMessage(never)}`)\n}\n\n/**\n * Constructs an error message for when a module factory is not available.\n */\nfunction factoryNotAvailableMessage(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): string {\n let instantiationReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n instantiationReason = `as a runtime entry of chunk ${sourceData}`\n break\n case SourceType.Parent:\n instantiationReason = `because it was required from module ${sourceData}`\n break\n case SourceType.Update:\n instantiationReason = 'because of an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n return `Module ${moduleId} was instantiated ${instantiationReason}, but the module factory is not available.`\n}\n\n/**\n * A stub function to make `require` available but non-functional in ESM.\n */\nfunction requireStub(_moduleId: ModuleId): never {\n throw new Error('dynamic usage of require is not supported')\n}\ncontextPrototype.z = requireStub\n\n// Make `globalThis` available to the module in a way that cannot be shadowed by a local variable.\ncontextPrototype.g = globalThis\n\ntype ContextConstructor = {\n new (module: Module, exports: Exports): TurbopackBaseContext\n}\n\nfunction applyModuleFactoryName(factory: Function) {\n // Give the module factory a nice name to improve stack traces.\n Object.defineProperty(factory, 'name', {\n value: 'module evaluation',\n })\n}\n"],"names":["SourceType","createModuleWithDirectionFlag","REEXPORTED_OBJECTS","WeakMap","Context","module","exports","m","e","contextPrototype","prototype","hasOwnProperty","Object","toStringTag","Symbol","defineProp","obj","name","options","call","defineProperty","getOverwrittenModule","moduleCache","id","createModuleWithDirection","createModuleObject","error","undefined","namespaceObject","parents","children","BindingTag_Value","esm","bindings","value","i","length","propName","tagOrFunction","enumerable","writable","Error","getterFn","setterFn","get","set","seal","esmExport","c","s","ensureDynamicExports","reexportedObjects","Proxy","target","prop","Reflect","ownKeys","keys","key","includes","push","dynamicExport","object","j","exportValue","v","exportNamespace","namespace","n","createGetter","getProto","getPrototypeOf","__proto__","LEAF_PROTOTYPES","interopEsm","raw","ns","allowExportDefault","defaultLocation","current","getOwnPropertyNames","splice","createNS","args","apply","create","esmImport","getOrInstantiateModuleFromParent","__esModule","asyncLoader","moduleId","loader","r","bind","A","runtimeRequire","require","require1","t","commonJsRequire","parseRequest","request","hashIndex","indexOf","substring","queryIndex","moduleContext","map","code","resolve","import","f","getChunkPath","chunkData","path","isPromise","maybePromise","then","isAsyncModuleExt","turbopackQueues","createPromise","reject","promise","Promise","res","rej","installCompressedModuleFactories","chunkModules","offset","moduleFactories","newModuleId","end","moduleFactoryFn","existingGroupFactory","existingFactory","factoryToInstall","didInstallFactory","has","applyModuleFactoryName","turbopackExports","turbopackError","resolveQueue","queue","status","forEach","fn","queueCount","wrapDeps","deps","dep","assign","err","asyncModule","body","hasAwait","depQueues","Set","rawPromise","attributes","handleAsyncDependencies","currentDeps","getResult","d","fnQueue","q","add","asyncResult","a","relativeURL","inputUrl","realUrl","URL","values","href","pathname","replace","origin","protocol","toString","toJSON","_args","configurable","U","invariant","never","computeMessage","factoryNotAvailableMessage","sourceType","sourceData","instantiationReason","requireStub","_moduleId","z","g","globalThis","factory"],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,6CAA6C;AAI7C;;;CAGC,GACD,IAAA,AAAKA,oC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,MAAM/G,OAAOkH,OAChBhK,OAAOQ,cAAc,CAAC,IAAI,EAAEsC,KAAK;QAC/BnB,YAAY;QACZ8I,cAAc;QACdnJ,OAAO0I,MAAM,CAAClH,IAAI;IACpB;AACJ;AACA8G,YAAY9J,SAAS,GAAGiK,IAAIjK,SAAS;AACrCD,iBAAiB6K,CAAC,GAAGd;AAErB;;CAEC,GACD,SAASe,UAAUC,KAAY,EAAEC,cAAoC;IACnE,MAAM,IAAIhJ,MAAM,CAAC,WAAW,EAAEgJ,eAAeD,QAAQ;AACvD;AAEA;;CAEC,GACD,SAASE,2BACPhG,QAAkB,EAClBiG,UAAsB,EACtBC,UAAsB;IAEtB,IAAIC;IACJ,OAAQF;QACN;YACEE,sBAAsB,CAAC,4BAA4B,EAAED,YAAY;YACjE;QACF;YACEC,sBAAsB,CAAC,oCAAoC,EAAED,YAAY;YACzE;QACF;YACEC,sBAAsB;YACtB;QACF;YACEN,UACEI,YACA,CAACA,aAAe,CAAC,qBAAqB,EAAEA,YAAY;IAE1D;IACA,OAAO,CAAC,OAAO,EAAEjG,SAAS,kBAAkB,EAAEmG,oBAAoB,0CAA0C,CAAC;AAC/G;AAEA;;CAEC,GACD,SAASC,YAAYC,SAAmB;IACtC,MAAM,IAAItJ,MAAM;AAClB;AACAhC,iBAAiBuL,CAAC,GAAGF;AAErB,kGAAkG;AAClGrL,iBAAiBwL,CAAC,GAAGC;AAMrB,SAASxD,uBAAuByD,OAAiB;IAC/C,+DAA+D;IAC/DvL,OAAOQ,cAAc,CAAC+K,SAAS,QAAQ;QACrCjK,OAAO;IACT;AACF","ignoreList":[0]}}, - {"offset": {"line": 580, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared-node/base-externals-utils.ts"],"sourcesContent":["/// \n\n/// A 'base' utilities to support runtime can have externals.\n/// Currently this is for node.js / edge runtime both.\n/// If a fn requires node.js specific behavior, it should be placed in `node-external-utils` instead.\n\nasync function externalImport(id: DependencySpecifier) {\n let raw\n try {\n raw = await import(id)\n } catch (err) {\n // TODO(alexkirsz) This can happen when a client-side module tries to load\n // an external module we don't provide a shim for (e.g. querystring, url).\n // For now, we fail semi-silently, but in the future this should be a\n // compilation error.\n throw new Error(`Failed to load external module ${id}: ${err}`)\n }\n\n if (raw && raw.__esModule && raw.default && 'default' in raw.default) {\n return interopEsm(raw.default, createNS(raw), true)\n }\n\n return raw\n}\ncontextPrototype.y = externalImport\n\nfunction externalRequire(\n id: ModuleId,\n thunk: () => any,\n esm: boolean = false\n): Exports | EsmNamespaceObject {\n let raw\n try {\n raw = thunk()\n } catch (err) {\n // TODO(alexkirsz) This can happen when a client-side module tries to load\n // an external module we don't provide a shim for (e.g. querystring, url).\n // For now, we fail semi-silently, but in the future this should be a\n // compilation error.\n throw new Error(`Failed to load external module ${id}: ${err}`)\n }\n\n if (!esm || raw.__esModule) {\n return raw\n }\n\n return interopEsm(raw, createNS(raw), true)\n}\n\nexternalRequire.resolve = (\n id: string,\n options?: {\n paths?: string[]\n }\n) => {\n return require.resolve(id, options)\n}\ncontextPrototype.x = externalRequire\n"],"names":["externalImport","id","raw","err","Error","__esModule","default","interopEsm","createNS","contextPrototype","y","externalRequire","thunk","esm","resolve","options","require","x"],"mappings":"AAAA,2DAA2D;AAE3D,6DAA6D;AAC7D,sDAAsD;AACtD,qGAAqG;AAErG,eAAeA,eAAeC,EAAuB;IACnD,IAAIC;IACJ,IAAI;QACFA,MAAM,MAAM,MAAM,CAACD;IACrB,EAAE,OAAOE,KAAK;QACZ,0EAA0E;QAC1E,0EAA0E;QAC1E,qEAAqE;QACrE,qBAAqB;QACrB,MAAM,IAAIC,MAAM,CAAC,+BAA+B,EAAEH,GAAG,EAAE,EAAEE,KAAK;IAChE;IAEA,IAAID,OAAOA,IAAIG,UAAU,IAAIH,IAAII,OAAO,IAAI,aAAaJ,IAAII,OAAO,EAAE;QACpE,OAAOC,WAAWL,IAAII,OAAO,EAAEE,SAASN,MAAM;IAChD;IAEA,OAAOA;AACT;AACAO,iBAAiBC,CAAC,GAAGV;AAErB,SAASW,gBACPV,EAAY,EACZW,KAAgB,EAChBC,MAAe,KAAK;IAEpB,IAAIX;IACJ,IAAI;QACFA,MAAMU;IACR,EAAE,OAAOT,KAAK;QACZ,0EAA0E;QAC1E,0EAA0E;QAC1E,qEAAqE;QACrE,qBAAqB;QACrB,MAAM,IAAIC,MAAM,CAAC,+BAA+B,EAAEH,GAAG,EAAE,EAAEE,KAAK;IAChE;IAEA,IAAI,CAACU,OAAOX,IAAIG,UAAU,EAAE;QAC1B,OAAOH;IACT;IAEA,OAAOK,WAAWL,KAAKM,SAASN,MAAM;AACxC;AAEAS,gBAAgBG,OAAO,GAAG,CACxBb,IACAc;IAIA,OAAOC,QAAQF,OAAO,CAACb,IAAIc;AAC7B;AACAN,iBAAiBQ,CAAC,GAAGN","ignoreList":[0]}}, - {"offset": {"line": 621, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared-node/node-externals-utils.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n\ndeclare var RUNTIME_PUBLIC_PATH: string\ndeclare var RELATIVE_ROOT_PATH: string\ndeclare var ASSET_PREFIX: string\n\nconst path = require('path')\n\nconst relativePathToRuntimeRoot = path.relative(RUNTIME_PUBLIC_PATH, '.')\n// Compute the relative path to the `distDir`.\nconst relativePathToDistRoot = path.join(\n relativePathToRuntimeRoot,\n RELATIVE_ROOT_PATH\n)\nconst RUNTIME_ROOT = path.resolve(__filename, relativePathToRuntimeRoot)\n// Compute the absolute path to the root, by stripping distDir from the absolute path to this file.\nconst ABSOLUTE_ROOT = path.resolve(__filename, relativePathToDistRoot)\n\n/**\n * Returns an absolute path to the given module path.\n * Module path should be relative, either path to a file or a directory.\n *\n * This fn allows to calculate an absolute path for some global static values, such as\n * `__dirname` or `import.meta.url` that Turbopack will not embeds in compile time.\n * See ImportMetaBinding::code_generation for the usage.\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n if (modulePath) {\n return path.join(ABSOLUTE_ROOT, modulePath)\n }\n return ABSOLUTE_ROOT\n}\nContext.prototype.P = resolveAbsolutePath\n"],"names":["path","require","relativePathToRuntimeRoot","relative","RUNTIME_PUBLIC_PATH","relativePathToDistRoot","join","RELATIVE_ROOT_PATH","RUNTIME_ROOT","resolve","__filename","ABSOLUTE_ROOT","resolveAbsolutePath","modulePath","Context","prototype","P"],"mappings":"AAAA,oDAAoD,GAMpD,MAAMA,OAAOC,QAAQ;AAErB,MAAMC,4BAA4BF,KAAKG,QAAQ,CAACC,qBAAqB;AACrE,8CAA8C;AAC9C,MAAMC,yBAAyBL,KAAKM,IAAI,CACtCJ,2BACAK;AAEF,MAAMC,eAAeR,KAAKS,OAAO,CAACC,YAAYR;AAC9C,mGAAmG;AACnG,MAAMS,gBAAgBX,KAAKS,OAAO,CAACC,YAAYL;AAE/C;;;;;;;CAOC,GACD,SAASO,oBAAoBC,UAAmB;IAC9C,IAAIA,YAAY;QACd,OAAOb,KAAKM,IAAI,CAACK,eAAeE;IAClC;IACA,OAAOF;AACT;AACAG,QAAQC,SAAS,CAACC,CAAC,GAAGJ","ignoreList":[0]}}, - {"offset": {"line": 642, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared-node/node-wasm-utils.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n\nfunction readWebAssemblyAsResponse(path: string) {\n const { createReadStream } = require('fs') as typeof import('fs')\n const { Readable } = require('stream') as typeof import('stream')\n\n const stream = createReadStream(path)\n\n // @ts-ignore unfortunately there's a slight type mismatch with the stream.\n return new Response(Readable.toWeb(stream), {\n headers: {\n 'content-type': 'application/wasm',\n },\n })\n}\n\nasync function compileWebAssemblyFromPath(\n path: string\n): Promise {\n const response = readWebAssemblyAsResponse(path)\n\n return await WebAssembly.compileStreaming(response)\n}\n\nasync function instantiateWebAssemblyFromPath(\n path: string,\n importsObj: WebAssembly.Imports\n): Promise {\n const response = readWebAssemblyAsResponse(path)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n response,\n importsObj\n )\n\n return instance.exports\n}\n"],"names":["readWebAssemblyAsResponse","path","createReadStream","require","Readable","stream","Response","toWeb","headers","compileWebAssemblyFromPath","response","WebAssembly","compileStreaming","instantiateWebAssemblyFromPath","importsObj","instance","instantiateStreaming","exports"],"mappings":"AAAA,oDAAoD,GAEpD,2DAA2D;AAE3D,SAASA,0BAA0BC,IAAY;IAC7C,MAAM,EAAEC,gBAAgB,EAAE,GAAGC,QAAQ;IACrC,MAAM,EAAEC,QAAQ,EAAE,GAAGD,QAAQ;IAE7B,MAAME,SAASH,iBAAiBD;IAEhC,2EAA2E;IAC3E,OAAO,IAAIK,SAASF,SAASG,KAAK,CAACF,SAAS;QAC1CG,SAAS;YACP,gBAAgB;QAClB;IACF;AACF;AAEA,eAAeC,2BACbR,IAAY;IAEZ,MAAMS,WAAWV,0BAA0BC;IAE3C,OAAO,MAAMU,YAAYC,gBAAgB,CAACF;AAC5C;AAEA,eAAeG,+BACbZ,IAAY,EACZa,UAA+B;IAE/B,MAAMJ,WAAWV,0BAA0BC;IAE3C,MAAM,EAAEc,QAAQ,EAAE,GAAG,MAAMJ,YAAYK,oBAAoB,CACzDN,UACAI;IAGF,OAAOC,SAASE,OAAO;AACzB","ignoreList":[0]}}, - {"offset": {"line": 663, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/nodejs/runtime/runtime-base.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n/// \n/// \n\n/**\n * Base Node.js runtime shared between production and development.\n * Contains chunk loading, module caching, and other non-HMR functionality.\n */\n\nprocess.env.TURBOPACK = '1'\n\nconst url = require('url') as typeof import('url')\n\nconst moduleFactories: ModuleFactories = new Map()\nconst moduleCache: ModuleCache = Object.create(null)\n\n/**\n * Returns an absolute path to the given module's id.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n const exportedPath = exported?.default ?? exported\n if (typeof exportedPath !== 'string') {\n return exported as any\n }\n\n const strippedAssetPrefix = exportedPath.slice(ASSET_PREFIX.length)\n const resolved = path.resolve(RUNTIME_ROOT, strippedAssetPrefix)\n\n return url.pathToFileURL(resolved).href\n}\n\n/**\n * Exports a URL value. No suffix is added in Node.js runtime.\n */\nfunction exportUrl(\n this: TurbopackBaseContext,\n urlValue: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, urlValue, id)\n}\n\nfunction loadRuntimeChunk(sourcePath: ChunkPath, chunkData: ChunkData): void {\n if (typeof chunkData === 'string') {\n loadRuntimeChunkPath(sourcePath, chunkData)\n } else {\n loadRuntimeChunkPath(sourcePath, chunkData.path)\n }\n}\n\nconst loadedChunks = new Set()\nconst unsupportedLoadChunk = Promise.resolve(undefined)\nconst loadedChunk: Promise = Promise.resolve(undefined)\nconst chunkCache = new Map>()\n\nfunction clearChunkCache() {\n chunkCache.clear()\n loadedChunks.clear()\n}\n\nfunction loadRuntimeChunkPath(\n sourcePath: ChunkPath,\n chunkPath: ChunkPath\n): void {\n if (!isJs(chunkPath)) {\n // We only support loading JS chunks in Node.js.\n // This branch can be hit when trying to load a CSS chunk.\n return\n }\n\n if (loadedChunks.has(chunkPath)) {\n return\n }\n\n try {\n const resolved = path.resolve(RUNTIME_ROOT, chunkPath)\n const chunkModules: CompressedModuleFactories = require(resolved)\n installCompressedModuleFactories(chunkModules, 0, moduleFactories)\n loadedChunks.add(chunkPath)\n } catch (cause) {\n let errorMessage = `Failed to load chunk ${chunkPath}`\n\n if (sourcePath) {\n errorMessage += ` from runtime for chunk ${sourcePath}`\n }\n\n const error = new Error(errorMessage, { cause })\n error.name = 'ChunkLoadError'\n throw error\n }\n}\n\nfunction loadChunkAsync(\n this: TurbopackBaseContext,\n chunkData: ChunkData\n): Promise {\n const chunkPath = typeof chunkData === 'string' ? chunkData : chunkData.path\n if (!isJs(chunkPath)) {\n // We only support loading JS chunks in Node.js.\n // This branch can be hit when trying to load a CSS chunk.\n return unsupportedLoadChunk\n }\n\n let entry = chunkCache.get(chunkPath)\n if (entry === undefined) {\n try {\n // resolve to an absolute path to simplify `require` handling\n const resolved = path.resolve(RUNTIME_ROOT, chunkPath)\n // TODO: consider switching to `import()` to enable concurrent chunk loading and async file io\n // However this is incompatible with hot reloading (since `import` doesn't use the require cache)\n const chunkModules: CompressedModuleFactories = require(resolved)\n installCompressedModuleFactories(chunkModules, 0, moduleFactories)\n entry = loadedChunk\n } catch (cause) {\n const errorMessage = `Failed to load chunk ${chunkPath} from module ${this.m.id}`\n const error = new Error(errorMessage, { cause })\n error.name = 'ChunkLoadError'\n\n // Cache the failure promise, future requests will also get this same rejection\n entry = Promise.reject(error)\n }\n chunkCache.set(chunkPath, entry)\n }\n // TODO: Return an instrumented Promise that React can use instead of relying on referential equality.\n return entry\n}\ncontextPrototype.l = loadChunkAsync\n\nfunction loadChunkAsyncByUrl(\n this: TurbopackBaseContext,\n chunkUrl: string\n) {\n const path = url.fileURLToPath(new URL(chunkUrl, RUNTIME_ROOT)) as ChunkPath\n return loadChunkAsync.call(this, path)\n}\ncontextPrototype.L = loadChunkAsyncByUrl\n\nfunction loadWebAssembly(\n chunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n imports: WebAssembly.Imports\n) {\n const resolved = path.resolve(RUNTIME_ROOT, chunkPath)\n\n return instantiateWebAssemblyFromPath(resolved, imports)\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n chunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n) {\n const resolved = path.resolve(RUNTIME_ROOT, chunkPath)\n\n return compileWebAssemblyFromPath(resolved)\n}\ncontextPrototype.u = loadWebAssemblyModule\n\n/**\n * Creates a Node.js worker thread by instantiating the given WorkerConstructor\n * with the appropriate path and options, including forwarded globals.\n *\n * @param WorkerConstructor The Worker constructor from worker_threads\n * @param workerPath Path to the worker entry chunk\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (path: string, options?: object): unknown },\n workerPath: string,\n workerOptions?: { workerData?: unknown; [key: string]: unknown }\n): unknown {\n // Build the forwarded globals object\n const forwardedGlobals: Record = {}\n for (const name of WORKER_FORWARDED_GLOBALS) {\n forwardedGlobals[name] = (globalThis as Record)[name]\n }\n\n // Merge workerData with forwarded globals\n const existingWorkerData = workerOptions?.workerData || {}\n const options = {\n ...workerOptions,\n workerData: {\n ...(typeof existingWorkerData === 'object' ? existingWorkerData : {}),\n __turbopack_globals__: forwardedGlobals,\n },\n }\n\n return new WorkerConstructor(workerPath, options)\n}\n\nconst regexJsUrl = /\\.js(?:\\?[^#]*)?(?:#.*)?$/\n/**\n * Checks if a given path/URL ends with .js, optionally followed by ?query or #fragment.\n */\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return regexJsUrl.test(chunkUrlOrPath)\n}\n"],"names":["process","env","TURBOPACK","url","require","moduleFactories","Map","moduleCache","Object","create","resolvePathFromModule","moduleId","exported","r","exportedPath","default","strippedAssetPrefix","slice","ASSET_PREFIX","length","resolved","path","resolve","RUNTIME_ROOT","pathToFileURL","href","exportUrl","urlValue","id","exportValue","call","loadRuntimeChunk","sourcePath","chunkData","loadRuntimeChunkPath","loadedChunks","Set","unsupportedLoadChunk","Promise","undefined","loadedChunk","chunkCache","clearChunkCache","clear","chunkPath","isJs","has","chunkModules","installCompressedModuleFactories","add","cause","errorMessage","error","Error","name","loadChunkAsync","entry","get","m","reject","set","contextPrototype","l","loadChunkAsyncByUrl","chunkUrl","path1","fileURLToPath","URL","L","loadWebAssembly","_edgeModule","imports","instantiateWebAssemblyFromPath","w","loadWebAssemblyModule","compileWebAssemblyFromPath","u","createWorker","WorkerConstructor","workerPath","workerOptions","forwardedGlobals","WORKER_FORWARDED_GLOBALS","globalThis","existingWorkerData","workerData","options","__turbopack_globals__","regexJsUrl","chunkUrlOrPath","test"],"mappings":"AAAA,oDAAoD,GAEpD,8DAA8D;AAC9D,kEA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eAAezB,IAAI,CAAC,IAAI,EAAEmC;AACnC;AACAJ,iBAAiBO,CAAC,GAAGL;AAErB,SAASM,gBACPzB,SAAoB,EACpB0B,WAAqC,EACrCC,OAA4B;IAE5B,MAAMnD,WAAWC,KAAKC,OAAO,CAACC,cAAcqB;IAE5C,OAAO4B,+BAA+BpD,UAAUmD;AAClD;AACAV,iBAAiBY,CAAC,GAAGJ;AAErB,SAASK,sBACP9B,SAAoB,EACpB0B,WAAqC;IAErC,MAAMlD,WAAWC,KAAKC,OAAO,CAACC,cAAcqB;IAE5C,OAAO+B,2BAA2BvD;AACpC;AACAyC,iBAAiBe,CAAC,GAAGF;AAErB;;;;;;;CAOC,GACD,SAASG,aACPC,iBAAoE,EACpEC,UAAkB,EAClBC,aAAgE;IAEhE,qCAAqC;IACrC,MAAMC,mBAA4C,CAAC;IACnD,KAAK,MAAM3B,QAAQ4B,yBAA0B;QAC3CD,gBAAgB,CAAC3B,KAAK,GAAG,AAAC6B,UAAsC,CAAC7B,KAAK;IACxE;IAEA,0CAA0C;IAC1C,MAAM8B,qBAAqBJ,eAAeK,cAAc,CAAC;IACzD,MAAMC,UAAU;QACd,GAAGN,aAAa;QAChBK,YAAY;YACV,GAAI,OAAOD,uBAAuB,WAAWA,qBAAqB,CAAC,CAAC;YACpEG,uBAAuBN;QACzB;IACF;IAEA,OAAO,IAAIH,kBAAkBC,YAAYO;AAC3C;AAEA,MAAME,aAAa;AACnB;;CAEC,GACD,SAAS3C,KAAK4C,cAAoC;IAChD,OAAOD,WAAWE,IAAI,CAACD;AACzB","ignoreList":[0]}}, - {"offset": {"line": 810, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/nodejs/runtime/build-base.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n\n/**\n * Production Node.js runtime.\n * Uses ModuleWithDirection and simple module instantiation without HMR support.\n */\n\n// moduleCache and moduleFactories are declared in runtime-base.ts\n\n// this is read in runtime-utils.ts so it creates a module with direction for hmr\ncreateModuleWithDirectionFlag = true\n\ninterface TurbopackNodeBuildContext\n extends TurbopackBaseContext {\n R: ResolvePathFromModule\n x: ExternalRequire\n y: ExternalImport\n C: typeof clearChunkCache\n}\n\nconst nodeContextPrototype = Context.prototype as TurbopackNodeBuildContext\n\nnodeContextPrototype.q = exportUrl\nnodeContextPrototype.M = moduleFactories\n// Cast moduleCache to ModuleWithDirection for production mode\nnodeContextPrototype.c = moduleCache as ModuleCache\nnodeContextPrototype.R = resolvePathFromModule\nnodeContextPrototype.b = createWorker\nnodeContextPrototype.C = clearChunkCache\n\nfunction instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): ModuleWithDirection {\n const moduleFactory = moduleFactories.get(id)\n if (typeof moduleFactory !== 'function') {\n // This can happen if modules incorrectly handle HMR disposes/updates,\n // e.g. when they keep a `setTimeout` around which still executes old code\n // and contains e.g. a `require(\"something\")` call.\n throw new Error(factoryNotAvailableMessage(id, sourceType, sourceData))\n }\n\n const module: ModuleWithDirection = createModuleWithDirection(id)\n const exports = module.exports\n moduleCache[id] = module\n\n const context =\n new (Context as any as ContextConstructor)(\n module,\n exports\n )\n // NOTE(alexkirsz) This can fail when the module encounters a runtime error.\n try {\n moduleFactory(context, module, exports)\n } catch (error) {\n module.error = error as any\n throw error\n }\n\n ;(module as any).loaded = true\n if (module.namespaceObject && module.exports !== module.namespaceObject) {\n // in case of a circular dependency: cjs1 -> esm2 -> cjs1\n interopEsm(module.exports, module.namespaceObject)\n }\n\n return module\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore\nfunction getOrInstantiateModuleFromParent(\n id: ModuleId,\n sourceModule: ModuleWithDirection\n): ModuleWithDirection {\n const module = moduleCache[id]\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): ModuleWithDirection {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it as a runtime module if it is not cached.\n */\n// @ts-ignore TypeScript doesn't separate this module space from the browser runtime\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): ModuleWithDirection {\n const module = moduleCache[moduleId]\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n return instantiateRuntimeModule(chunkPath, moduleId)\n}\n\nmodule.exports = (sourcePath: ChunkPath) => ({\n m: (id: ModuleId) => getOrInstantiateRuntimeModule(sourcePath, id),\n c: (chunkData: ChunkData) => loadRuntimeChunk(sourcePath, chunkData),\n})\n"],"names":["createModuleWithDirectionFlag","nodeContextPrototype","Context","prototype","q","exportUrl","M","moduleFactories","c","moduleCache","R","resolvePathFromModule","b","createWorker","C","clearChunkCache","instantiateModule","id","sourceType","sourceData","moduleFactory","get","Error","factoryNotAvailableMessage","module1","createModuleWithDirection","exports","context","error","loaded","namespaceObject","interopEsm","getOrInstantiateModuleFromParent","sourceModule","SourceType","Parent","instantiateRuntimeModule","chunkPath","moduleId","Runtime","getOrInstantiateRuntimeModule","module","sourcePath","m","chunkData","loadRuntimeChunk"],"mappings":"AAAA,oDAAoD,GAEpD,0CAA0C;AAE1C;;;CAGC,GAED,kEAAkE;AAElE,iFAAiF;AACjFA,gCAAgC;AAUhC,MAAMC,uBAAuBC,QAAQC,SAAS;AAE9CF,qBAAqBG,CAAC,GAAGC;AACzBJ,qBAAqBK,CAAC,GAAGC;AACzB,8DAA8D;AAC9DN,qBAAqBO,CAAC,GAAGC;AACzBR,qBAAqBS,CAAC,GAAGC;AACzBV,qBAAqBW,CAAC,GAAGC;AACzBZ,qBAAqBa,CAAC,GAAGC;AAEzB,SAASC,kBACPC,EAAY,EACZC,UAAsB,EACtBC,UAAsB;IAEtB,MAAMC,gBAAgBb,gBAAgBc,GAA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WAAWC;AAC7C;AAEAG,OAAOf,OAAO,GAAG,CAACgB,aAA0B,CAAC;QAC3CC,GAAG,CAAC1B,KAAiBuB,8BAA8BE,YAAYzB;QAC/DT,GAAG,CAACoC,YAAyBC,iBAAiBH,YAAYE;IAC5D,CAAC","ignoreList":[0]}}] -} \ No newline at end of file diff --git a/.next.prev/build/chunks/node_modules__pnpm_1k5k_4d._.js b/.next.prev/build/chunks/node_modules__pnpm_1k5k_4d._.js deleted file mode 100644 index 5bc9df56..00000000 --- a/.next.prev/build/chunks/node_modules__pnpm_1k5k_4d._.js +++ /dev/null @@ -1,7137 +0,0 @@ -module.exports = [ -"[project]/node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => { - -let p = process || {}, argv = p.argv || [], env = p.env || {}; -let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI); -let formatter = (open, close, replace = open)=>(input)=>{ - let string = "" + input, index = string.indexOf(close, open.length); - return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close; - }; -let replaceClose = (string, close, replace, index)=>{ - let result = "", cursor = 0; - do { - result += string.substring(cursor, index) + replace; - cursor = index + close.length; - index = string.indexOf(close, cursor); - }while (~index) - return result + string.substring(cursor); -}; -let createColors = (enabled = isColorSupported)=>{ - let f = enabled ? formatter : ()=>String; - return { - isColorSupported: enabled, - reset: f("\x1b[0m", "\x1b[0m"), - bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"), - dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"), - italic: f("\x1b[3m", "\x1b[23m"), - underline: f("\x1b[4m", "\x1b[24m"), - inverse: f("\x1b[7m", "\x1b[27m"), - hidden: f("\x1b[8m", "\x1b[28m"), - strikethrough: f("\x1b[9m", "\x1b[29m"), - black: f("\x1b[30m", "\x1b[39m"), - red: f("\x1b[31m", "\x1b[39m"), - green: f("\x1b[32m", "\x1b[39m"), - yellow: f("\x1b[33m", "\x1b[39m"), - blue: f("\x1b[34m", "\x1b[39m"), - magenta: f("\x1b[35m", "\x1b[39m"), - cyan: f("\x1b[36m", "\x1b[39m"), - white: f("\x1b[37m", "\x1b[39m"), - gray: f("\x1b[90m", "\x1b[39m"), - bgBlack: f("\x1b[40m", "\x1b[49m"), - bgRed: f("\x1b[41m", "\x1b[49m"), - bgGreen: f("\x1b[42m", "\x1b[49m"), - bgYellow: f("\x1b[43m", "\x1b[49m"), - bgBlue: f("\x1b[44m", "\x1b[49m"), - bgMagenta: f("\x1b[45m", "\x1b[49m"), - bgCyan: f("\x1b[46m", "\x1b[49m"), - bgWhite: f("\x1b[47m", "\x1b[49m"), - blackBright: f("\x1b[90m", "\x1b[39m"), - redBright: f("\x1b[91m", "\x1b[39m"), - greenBright: f("\x1b[92m", "\x1b[39m"), - yellowBright: f("\x1b[93m", "\x1b[39m"), - blueBright: f("\x1b[94m", "\x1b[39m"), - magentaBright: f("\x1b[95m", "\x1b[39m"), - cyanBright: f("\x1b[96m", "\x1b[39m"), - whiteBright: f("\x1b[97m", "\x1b[39m"), - bgBlackBright: f("\x1b[100m", "\x1b[49m"), - bgRedBright: f("\x1b[101m", "\x1b[49m"), - bgGreenBright: f("\x1b[102m", "\x1b[49m"), - bgYellowBright: f("\x1b[103m", "\x1b[49m"), - bgBlueBright: f("\x1b[104m", "\x1b[49m"), - bgMagentaBright: f("\x1b[105m", "\x1b[49m"), - bgCyanBright: f("\x1b[106m", "\x1b[49m"), - bgWhiteBright: f("\x1b[107m", "\x1b[49m") - }; -}; -module.exports = createColors(); -module.exports.createColors = createColors; -}), -"[project]/node_modules/.pnpm/postcss@8.5.21/node_modules/postcss/lib/tokenize.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => { -"use strict"; - -const SINGLE_QUOTE = "'".charCodeAt(0); -const DOUBLE_QUOTE = '"'.charCodeAt(0); -const BACKSLASH = '\\'.charCodeAt(0); -const SLASH = '/'.charCodeAt(0); -const NEWLINE = '\n'.charCodeAt(0); -const SPACE = ' '.charCodeAt(0); -const FEED = '\f'.charCodeAt(0); -const TAB = '\t'.charCodeAt(0); -const CR = '\r'.charCodeAt(0); -const OPEN_SQUARE = '['.charCodeAt(0); -const CLOSE_SQUARE = ']'.charCodeAt(0); -const OPEN_PARENTHESES = '('.charCodeAt(0); -const CLOSE_PARENTHESES = ')'.charCodeAt(0); -const OPEN_CURLY = '{'.charCodeAt(0); -const CLOSE_CURLY = '}'.charCodeAt(0); -const SEMICOLON = ';'.charCodeAt(0); -const ASTERISK = '*'.charCodeAt(0); -const COLON = ':'.charCodeAt(0); -const AT = '@'.charCodeAt(0); -const RE_AT_END = /[\t\n\f\r "#'()/;[\\\]{}]/g; -const RE_WORD_END = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g; -const RE_BAD_BRACKET = /.[\r\n"'(/\\]/; -const RE_HEX_ESCAPE = /[\da-f]/i; -module.exports = function tokenizer(input, options = {}) { - let css = input.css.valueOf(); - let ignore = options.ignoreErrors; - let code, content, escape, next, quote; - let currentToken, escaped, escapePos, n, prev; - let length = css.length; - let pos = 0; - let buffer = []; - let returned = []; - let lastBadParen = -1; - function position() { - return pos; - } - function unclosed(what) { - throw input.error('Unclosed ' + what, pos); - } - function endOfFile() { - return returned.length === 0 && pos >= length; - } - function nextToken(opts) { - if (returned.length) return returned.pop(); - if (pos >= length) return; - let ignoreUnclosed = opts ? opts.ignoreUnclosed : false; - code = css.charCodeAt(pos); - switch(code){ - case NEWLINE: - case SPACE: - case TAB: - case CR: - case FEED: - { - next = pos; - do { - next += 1; - code = css.charCodeAt(next); - }while (code === SPACE || code === NEWLINE || code === TAB || code === CR || code === FEED) - currentToken = [ - 'space', - css.slice(pos, next) - ]; - pos = next - 1; - break; - } - case OPEN_SQUARE: - case CLOSE_SQUARE: - case OPEN_CURLY: - case CLOSE_CURLY: - case COLON: - case SEMICOLON: - case CLOSE_PARENTHESES: - { - let controlChar = String.fromCharCode(code); - currentToken = [ - controlChar, - controlChar, - pos - ]; - break; - } - case OPEN_PARENTHESES: - { - prev = buffer.length ? buffer.pop()[1] : ''; - n = css.charCodeAt(pos + 1); - if (prev === 'url' && n !== SINGLE_QUOTE && n !== DOUBLE_QUOTE && n !== SPACE && n !== NEWLINE && n !== TAB && n !== FEED && n !== CR) { - next = pos; - do { - escaped = false; - next = css.indexOf(')', next + 1); - if (next === -1) { - if (ignore || ignoreUnclosed) { - next = pos; - break; - } else { - unclosed('bracket'); - } - } - escapePos = next; - while(css.charCodeAt(escapePos - 1) === BACKSLASH){ - escapePos -= 1; - escaped = !escaped; - } - }while (escaped) - currentToken = [ - 'brackets', - css.slice(pos, next + 1), - pos, - next - ]; - pos = next; - } else if (pos <= lastBadParen) { - currentToken = [ - '(', - '(', - pos - ]; - } else { - next = css.indexOf(')', pos + 1); - content = css.slice(pos, next + 1); - if (next === -1 || RE_BAD_BRACKET.test(content)) { - lastBadParen = next === -1 ? length : next; - currentToken = [ - '(', - '(', - pos - ]; - } else { - currentToken = [ - 'brackets', - content, - pos, - next - ]; - pos = next; - } - } - break; - } - case SINGLE_QUOTE: - case DOUBLE_QUOTE: - { - quote = code === SINGLE_QUOTE ? "'" : '"'; - next = pos; - do { - escaped = false; - next = css.indexOf(quote, next + 1); - if (next === -1) { - if (ignore || ignoreUnclosed) { - next = pos + 1; - break; - } else { - unclosed('string'); - } - } - escapePos = next; - while(css.charCodeAt(escapePos - 1) === BACKSLASH){ - escapePos -= 1; - escaped = !escaped; - } - }while (escaped) - currentToken = [ - 'string', - css.slice(pos, next + 1), - pos, - next - ]; - pos = next; - break; - } - case AT: - { - RE_AT_END.lastIndex = pos + 1; - RE_AT_END.test(css); - if (RE_AT_END.lastIndex === 0) { - next = css.length - 1; - } else { - next = RE_AT_END.lastIndex - 2; - } - currentToken = [ - 'at-word', - css.slice(pos, next + 1), - pos, - next - ]; - pos = next; - break; - } - case BACKSLASH: - { - next = pos; - escape = true; - while(css.charCodeAt(next + 1) === BACKSLASH){ - next += 1; - escape = !escape; - } - code = css.charCodeAt(next + 1); - if (escape && code !== SLASH && code !== SPACE && code !== NEWLINE && code !== TAB && code !== CR && code !== FEED) { - next += 1; - if (RE_HEX_ESCAPE.test(css.charAt(next))) { - while(RE_HEX_ESCAPE.test(css.charAt(next + 1))){ - next += 1; - } - if (css.charCodeAt(next + 1) === SPACE) { - next += 1; - } - } - } - currentToken = [ - 'word', - css.slice(pos, next + 1), - pos, - next - ]; - pos = next; - break; - } - default: - { - if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) { - next = css.indexOf('*/', pos + 2) + 1; - if (next === 0) { - if (ignore || ignoreUnclosed) { - next = css.length; - } else { - unclosed('comment'); - } - } - currentToken = [ - 'comment', - css.slice(pos, next + 1), - pos, - next - ]; - pos = next; - } else { - RE_WORD_END.lastIndex = pos + 1; - RE_WORD_END.test(css); - if (RE_WORD_END.lastIndex === 0) { - next = css.length - 1; - } else { - next = RE_WORD_END.lastIndex - 2; - } - currentToken = [ - 'word', - css.slice(pos, next + 1), - pos, - next - ]; - buffer.push(currentToken); - pos = next; - } - break; - } - } - pos++; - return currentToken; - } - function back(token) { - returned.push(token); - } - return { - back, - endOfFile, - nextToken, - position - }; -}; -}), -"[project]/node_modules/.pnpm/postcss@8.5.21/node_modules/postcss/lib/terminal-highlight.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => { -"use strict"; - -let pico = __turbopack_context__.r("[project]/node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js [postcss] (ecmascript)"); -let tokenizer = __turbopack_context__.r("[project]/node_modules/.pnpm/postcss@8.5.21/node_modules/postcss/lib/tokenize.js [postcss] (ecmascript)"); -let Input; -function registerInput(dependant) { - Input = dependant; -} -const HIGHLIGHT_THEME = { - ';': pico.yellow, - ':': pico.yellow, - '(': pico.cyan, - ')': pico.cyan, - '[': pico.yellow, - ']': pico.yellow, - '{': pico.yellow, - '}': pico.yellow, - 'at-word': pico.cyan, - 'brackets': pico.cyan, - 'call': pico.cyan, - 'class': pico.yellow, - 'comment': pico.gray, - 'hash': pico.magenta, - 'string': pico.green -}; -function getTokenType([type, value], processor) { - if (type === 'word') { - if (value[0] === '.') { - return 'class'; - } - if (value[0] === '#') { - return 'hash'; - } - } - if (!processor.endOfFile()) { - let next = processor.nextToken(); - processor.back(next); - if (next[0] === 'brackets' || next[0] === '(') return 'call'; - } - return type; -} -function terminalHighlight(css) { - let processor = tokenizer(new Input(css), { - ignoreErrors: true - }); - let result = ''; - while(!processor.endOfFile()){ - let token = processor.nextToken(); - let color = HIGHLIGHT_THEME[getTokenType(token, processor)]; - if (color) { - result += token[1].split(/\r?\n/).map((i)=>color(i)).join('\n'); - } else { - result += token[1]; - } - } - return result; -} -terminalHighlight.registerInput = registerInput; -module.exports = terminalHighlight; -}), -"[project]/node_modules/.pnpm/postcss@8.5.21/node_modules/postcss/lib/css-syntax-error.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => { -"use strict"; - -let pico = __turbopack_context__.r("[project]/node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js [postcss] (ecmascript)"); -let terminalHighlight = __turbopack_context__.r("[project]/node_modules/.pnpm/postcss@8.5.21/node_modules/postcss/lib/terminal-highlight.js [postcss] (ecmascript)"); -class CssSyntaxError extends Error { - constructor(message, line, column, source, file, plugin){ - super(message); - this.name = 'CssSyntaxError'; - this.reason = message; - if (file) { - this.file = file; - } - if (source) { - this.source = source; - } - if (plugin) { - this.plugin = plugin; - } - if (typeof line !== 'undefined' && typeof column !== 'undefined') { - if (typeof line === 'number') { - this.line = line; - this.column = column; - } else { - this.line = line.line; - this.column = line.column; - this.endLine = column.line; - this.endColumn = column.column; - } - } - this.setMessage(); - if (Error.captureStackTrace) { - Error.captureStackTrace(this, CssSyntaxError); - } - } - setMessage() { - this.message = this.plugin ? this.plugin + ': ' : ''; - this.message += this.file ? this.file : ''; - if (typeof this.line !== 'undefined') { - this.message += ':' + this.line + ':' + this.column; - } - this.message += ': ' + this.reason; - } - showSourceCode(color) { - if (!this.source) return ''; - let css = this.source; - if (color == null) color = pico.isColorSupported; - let aside = (text)=>text; - let mark = (text)=>text; - let highlight = (text)=>text; - if (color) { - let { bold, gray, red } = pico.createColors(true); - mark = (text)=>bold(red(text)); - aside = (text)=>gray(text); - if (terminalHighlight) { - highlight = (text)=>terminalHighlight(text); - } - } - let lines = css.split(/\r?\n/); - let start = Math.max(this.line - 3, 0); - let end = Math.min(this.line + 2, lines.length); - let maxWidth = String(end).length; - return lines.slice(start, end).map((line, index)=>{ - let number = start + 1 + index; - let gutter = ' ' + (' ' + number).slice(-maxWidth) + ' | '; - if (number === this.line) { - if (line.length > 160) { - let padding = 20; - let subLineStart = Math.max(0, this.column - padding); - let subLineEnd = Math.max(this.column + padding, this.endColumn + padding); - let subLine = line.slice(subLineStart, subLineEnd); - let spacing = aside(gutter.replace(/\d/g, ' ')) + line.slice(0, Math.min(this.column - 1, padding - 1)).replace(/[^\t]/g, ' '); - return mark('>') + aside(gutter) + highlight(subLine) + '\n ' + spacing + mark('^'); - } - let spacing = aside(gutter.replace(/\d/g, ' ')) + line.slice(0, this.column - 1).replace(/[^\t]/g, ' '); - return mark('>') + aside(gutter) + highlight(line) + '\n ' + spacing + mark('^'); - } - return ' ' + aside(gutter) + highlight(line); - }).join('\n'); - } - toString() { - let code = this.showSourceCode(); - if (code) { - code = '\n\n' + code + '\n'; - } - return this.name + ': ' + this.message + code; - } -} -module.exports = CssSyntaxError; -CssSyntaxError.default = CssSyntaxError; -}), -"[project]/node_modules/.pnpm/postcss@8.5.21/node_modules/postcss/lib/stringifier.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => { -"use strict"; - -// Escapes sequences that could break out of an HTML