diff --git a/.next/dev/build-manifest.json b/.next/dev/build-manifest.json deleted file mode 100644 index 546e56f..0000000 --- a/.next/dev/build-manifest.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "pages": { - "/_app": [ - "static/chunks/node_modules_next_dist_compiled_0o6l_m6._.js", - "static/chunks/node_modules_next_dist_shared_lib_0~pg0mt._.js", - "static/chunks/node_modules_next_dist_client_0pe1dg-._.js", - "static/chunks/node_modules_next_dist_0u_w_5s._.js", - "static/chunks/node_modules_next_app_0jt-zj..js", - "static/chunks/[next]_entry_page-loader_ts_0j~flwh._.js", - "static/chunks/node_modules_react-dom_0bruynb._.js", - "static/chunks/node_modules_0lx093h._.js", - "static/chunks/[root-of-the-server]__0c0okpg._.js", - "static/chunks/pages__app_07xvfw~._.js", - "static/chunks/turbopack-pages__app_0_wu8vy._.js" - ], - "/_error": [ - "static/chunks/node_modules_next_dist_compiled_0o6l_m6._.js", - "static/chunks/node_modules_next_dist_shared_lib_12bi_n7._.js", - "static/chunks/node_modules_next_dist_client_0pe1dg-._.js", - "static/chunks/node_modules_next_dist_0rt-2cr._.js", - "static/chunks/[next]_entry_page-loader_ts_0rqw6yo._.js", - "static/chunks/node_modules_react-dom_0bruynb._.js", - "static/chunks/node_modules_0lx093h._.js", - "static/chunks/[root-of-the-server]__01mw43t._.js", - "static/chunks/pages__error_07xvfw~._.js", - "static/chunks/turbopack-pages__error_016chbq._.js" - ] - }, - "devFiles": [], - "polyfillFiles": [ - "static/chunks/node_modules_next_dist_build_polyfills_polyfill-nomodule.js" - ], - "lowPriorityFiles": [ - "static/development/_buildManifest.js", - "static/development/_ssgManifest.js", - "static/development/_clientMiddlewareManifest.js" - ], - "rootMainFiles": [ - "static/chunks/[turbopack]_browser_dev_hmr-client_hmr-client_ts_10z625~._.js", - "static/chunks/node_modules_next_dist_compiled_next-devtools_index_0553esy.js", - "static/chunks/node_modules_next_dist_compiled_react-dom_058-ah~._.js", - "static/chunks/node_modules_next_dist_compiled_react-server-dom-turbopack_0p3wegg._.js", - "static/chunks/node_modules_next_dist_compiled_0rpq4pf._.js", - "static/chunks/node_modules_next_dist_client_0fhqo1d._.js", - "static/chunks/node_modules_next_dist_115brz8._.js", - "static/chunks/node_modules_@swc_helpers_cjs_0-4ujiy._.js", - "static/chunks/_0rqeker._.js", - "static/chunks/turbopack-_0p44nws._.js" - ] -} \ No newline at end of file diff --git a/.next/dev/build/chunks/[turbopack]_runtime.js b/.next/dev/build/chunks/[turbopack]_runtime.js deleted file mode 100644 index 2e5cca7..0000000 --- a/.next/dev/build/chunks/[turbopack]_runtime.js +++ /dev/null @@ -1,1739 +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); -} -/// -/// -/// -/// -/** - * Shared HMR (Hot Module Replacement) implementation. - * - * This file contains the complete HMR implementation that's shared between - * browser and Node.js runtimes. It manages module hot state, dependency - * tracking, the module.hot API, and the full HMR update flow. - */ /** - * The development module cache shared across the runtime. - * Browser runtime declares this directly. - * Node.js runtime assigns globalThis.__turbopack_module_cache__ to this. - */ let devModuleCache; -/** - * Module IDs that are instantiated as part of the runtime of a chunk. - */ let runtimeModules; -/** - * Maps module IDs to persisted data between executions of their hot module - * implementation (`hot.data`). - */ const moduleHotData = new Map(); -/** - * Maps module instances to their hot module state. - * Uses WeakMap so it works with both HotModule and ModuleWithDirection. - */ const moduleHotState = new WeakMap(); -/** - * Modules that call `module.hot.invalidate()` (while being updated). - */ const queuedInvalidatedModules = new Set(); -class UpdateApplyError extends Error { - name = 'UpdateApplyError'; - dependencyChain; - constructor(message, dependencyChain){ - super(message); - this.dependencyChain = dependencyChain; - } -} -/** - * Records parent-child relationship when a module imports another. - * Should be called during module instantiation. - */ // eslint-disable-next-line @typescript-eslint/no-unused-vars -function trackModuleImport(parentModule, childModuleId, childModule) { - // Record that parent imports child - if (parentModule.children.indexOf(childModuleId) === -1) { - parentModule.children.push(childModuleId); - } - // Record that child is imported by parent - if (childModule && childModule.parents.indexOf(parentModule.id) === -1) { - childModule.parents.push(parentModule.id); - } -} -function formatDependencyChain(dependencyChain) { - return `Dependency chain: ${dependencyChain.join(' -> ')}`; -} -/** - * Walks the dependency tree to find all modules affected by a change. - * Returns information about whether the update can be accepted and which - * modules need to be invalidated. - * - * @param moduleId - The module that changed - * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept(). - * This is used for server-side HMR where pages auto-accept at the top level. - */ function getAffectedModuleEffects(moduleId, autoAcceptRootModules) { - const outdatedModules = new Set(); - const outdatedDependencies = new Map(); - const queue = [ - { - moduleId, - dependencyChain: [] - } - ]; - let nextItem; - while(nextItem = queue.shift()){ - const { moduleId, dependencyChain } = nextItem; - if (moduleId != null) { - if (outdatedModules.has(moduleId)) { - continue; - } - outdatedModules.add(moduleId); - } - // We've arrived at the runtime of the chunk, which means that nothing - // else above can accept this update. - if (moduleId === undefined) { - if (autoAcceptRootModules) { - return { - type: 'accepted', - moduleId, - outdatedModules, - outdatedDependencies - }; - } - return { - type: 'unaccepted', - dependencyChain - }; - } - const module = devModuleCache[moduleId]; - const hotState = moduleHotState.get(module); - if (// The module is not in the cache. Since this is a "modified" update, - // it means that the module was never instantiated before. - !module || hotState.selfAccepted && !hotState.selfInvalidated) { - continue; - } - if (hotState.selfDeclined) { - return { - type: 'self-declined', - dependencyChain, - moduleId - }; - } - if (runtimeModules.has(moduleId)) { - if (autoAcceptRootModules) { - continue; - } - queue.push({ - moduleId: undefined, - dependencyChain: [ - ...dependencyChain, - moduleId - ] - }); - continue; - } - for (const parentId of module.parents){ - const parent = devModuleCache[parentId]; - if (!parent) { - continue; - } - const parentHotState = moduleHotState.get(parent); - // Check if parent declined this dependency - if (parentHotState?.declinedDependencies[moduleId]) { - return { - type: 'declined', - dependencyChain: [ - ...dependencyChain, - moduleId - ], - moduleId, - parentId - }; - } - // Skip if parent is already outdated - if (outdatedModules.has(parentId)) { - continue; - } - // Check if parent accepts this dependency - if (parentHotState?.acceptedDependencies[moduleId]) { - if (!outdatedDependencies.has(parentId)) { - outdatedDependencies.set(parentId, new Set()); - } - outdatedDependencies.get(parentId).add(moduleId); - continue; - } - // Neither accepted nor declined — propagate to parent - queue.push({ - moduleId: parentId, - dependencyChain: [ - ...dependencyChain, - moduleId - ] - }); - } - // If no parents and we're at a root module, auto-accept if configured - if (module.parents.length === 0 && autoAcceptRootModules) { - continue; - } - } - return { - type: 'accepted', - moduleId, - outdatedModules, - outdatedDependencies - }; -} -/** - * Merges source dependency map into target dependency map. - */ function mergeDependencies(target, source) { - for (const [parentId, deps] of source){ - const existing = target.get(parentId); - if (existing) { - for (const dep of deps){ - existing.add(dep); - } - } else { - target.set(parentId, new Set(deps)); - } - } -} -/** - * Computes all modules that need to be invalidated based on which modules changed. - * - * @param invalidated - The modules that have been invalidated - * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept() - */ function computedInvalidatedModules(invalidated, autoAcceptRootModules) { - const outdatedModules = new Set(); - const outdatedDependencies = new Map(); - for (const moduleId of invalidated){ - const effect = getAffectedModuleEffects(moduleId, autoAcceptRootModules); - switch(effect.type){ - case 'unaccepted': - throw new UpdateApplyError(`cannot apply update: unaccepted module. ${formatDependencyChain(effect.dependencyChain)}.`, effect.dependencyChain); - case 'self-declined': - throw new UpdateApplyError(`cannot apply update: self-declined module. ${formatDependencyChain(effect.dependencyChain)}.`, effect.dependencyChain); - case 'declined': - throw new UpdateApplyError(`cannot apply update: declined dependency. ${formatDependencyChain(effect.dependencyChain)}. Declined by ${effect.parentId}.`, effect.dependencyChain); - case 'accepted': - for (const outdatedModuleId of effect.outdatedModules){ - outdatedModules.add(outdatedModuleId); - } - mergeDependencies(outdatedDependencies, effect.outdatedDependencies); - break; - default: - invariant(effect, (effect)=>`Unknown effect type: ${effect?.type}`); - } - } - return { - outdatedModules, - outdatedDependencies - }; -} -/** - * Creates the module.hot API object and its internal state. - * This provides the HMR API that user code calls (module.hot.accept(), etc.) - */ function createModuleHot(moduleId, hotData) { - const hotState = { - selfAccepted: false, - selfDeclined: false, - selfInvalidated: false, - disposeHandlers: [], - acceptedDependencies: {}, - acceptedErrorHandlers: {}, - declinedDependencies: {} - }; - const hot = { - // TODO(alexkirsz) This is not defined in the HMR API. It was used to - // decide whether to warn whenever an HMR-disposed module required other - // modules. We might want to remove it. - active: true, - data: hotData ?? {}, - accept: (modules, callback, errorHandler)=>{ - if (modules === undefined) { - hotState.selfAccepted = true; - } else if (typeof modules === 'function') { - hotState.selfAccepted = modules; - } else if (typeof modules === 'object' && modules !== null) { - for(let i = 0; i < modules.length; i++){ - hotState.acceptedDependencies[modules[i]] = callback || function() {}; - hotState.acceptedErrorHandlers[modules[i]] = errorHandler; - } - } else { - hotState.acceptedDependencies[modules] = callback || function() {}; - hotState.acceptedErrorHandlers[modules] = errorHandler; - } - }, - decline: (dep)=>{ - if (dep === undefined) { - hotState.selfDeclined = true; - } else if (typeof dep === 'object' && dep !== null) { - for(let i = 0; i < dep.length; i++){ - hotState.declinedDependencies[dep[i]] = true; - } - } else { - hotState.declinedDependencies[dep] = true; - } - }, - dispose: (callback)=>{ - hotState.disposeHandlers.push(callback); - }, - addDisposeHandler: (callback)=>{ - hotState.disposeHandlers.push(callback); - }, - removeDisposeHandler: (callback)=>{ - const idx = hotState.disposeHandlers.indexOf(callback); - if (idx >= 0) { - hotState.disposeHandlers.splice(idx, 1); - } - }, - invalidate: ()=>{ - hotState.selfInvalidated = true; - queuedInvalidatedModules.add(moduleId); - }, - // NOTE(alexkirsz) This is part of the management API, which we don't - // implement, but the Next.js React Refresh runtime uses this to decide - // whether to schedule an update. - status: ()=>'idle', - // NOTE(alexkirsz) Since we always return "idle" for now, these are no-ops. - addStatusHandler: (_handler)=>{}, - removeStatusHandler: (_handler)=>{}, - // NOTE(jridgewell) Check returns the list of updated modules, but we don't - // want the webpack code paths to ever update (the turbopack paths handle - // this already). - check: ()=>Promise.resolve(null) - }; - return { - hot, - hotState - }; -} -/** - * Processes queued invalidated modules and adds them to the outdated modules set. - * Modules that call module.hot.invalidate() are queued and processed here. - * - * @param outdatedModules - The current set of outdated modules - * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept() - */ function applyInvalidatedModules(outdatedModules, outdatedDependencies, autoAcceptRootModules) { - if (queuedInvalidatedModules.size > 0) { - const result = computedInvalidatedModules(queuedInvalidatedModules, autoAcceptRootModules); - for (const moduleId of result.outdatedModules){ - outdatedModules.add(moduleId); - } - mergeDependencies(outdatedDependencies, result.outdatedDependencies); - queuedInvalidatedModules.clear(); - } - return { - outdatedModules, - outdatedDependencies - }; -} -/** - * Computes which outdated modules have self-accepted and can be hot reloaded. - */ function computeOutdatedSelfAcceptedModules(outdatedModules) { - const outdatedSelfAcceptedModules = []; - for (const moduleId of outdatedModules){ - const module = devModuleCache[moduleId]; - const hotState = moduleHotState.get(module); - if (module && hotState?.selfAccepted && !hotState.selfInvalidated) { - outdatedSelfAcceptedModules.push({ - moduleId, - errorHandler: hotState.selfAccepted - }); - } - } - return outdatedSelfAcceptedModules; -} -/** - * Disposes of an instance of a module. - * Runs hot.dispose handlers and manages persistent hot data. - * - * NOTE: mode = "replace" will not remove modules from devModuleCache. - * This must be done in a separate step afterwards. - */ function disposeModule(moduleId, mode) { - const module = devModuleCache[moduleId]; - if (!module) { - return; - } - const hotState = moduleHotState.get(module); - if (!hotState) { - return; - } - const data = {}; - // Run the `hot.dispose` handler, if any, passing in the persistent - // `hot.data` object. - for (const disposeHandler of hotState.disposeHandlers){ - disposeHandler(data); - } - // This used to warn in `getOrInstantiateModuleFromParent` when a disposed - // module is still importing other modules. - if (module.hot) { - module.hot.active = false; - } - moduleHotState.delete(module); - // Remove the disposed module from its children's parent list. - // It will be added back once the module re-instantiates and imports its - // children again. - for (const childId of module.children){ - const child = devModuleCache[childId]; - if (!child) { - continue; - } - const idx = child.parents.indexOf(module.id); - if (idx >= 0) { - child.parents.splice(idx, 1); - } - } - switch(mode){ - case 'clear': - delete devModuleCache[module.id]; - moduleHotData.delete(module.id); - break; - case 'replace': - moduleHotData.set(module.id, data); - break; - default: - invariant(mode, (mode)=>`invalid mode: ${mode}`); - } -} -/** - * Dispose phase: runs dispose handlers and cleans up outdated/disposed modules. - * Returns the parent modules of outdated modules for use in the apply phase. - */ function disposePhase(outdatedModules, disposedModules, outdatedDependencies) { - for (const moduleId of outdatedModules){ - disposeModule(moduleId, 'replace'); - } - for (const moduleId of disposedModules){ - disposeModule(moduleId, 'clear'); - } - // Removing modules from the module cache is a separate step. - // We also want to keep track of previous parents of the outdated modules. - const outdatedModuleParents = new Map(); - for (const moduleId of outdatedModules){ - const oldModule = devModuleCache[moduleId]; - outdatedModuleParents.set(moduleId, oldModule?.parents); - delete devModuleCache[moduleId]; - } - // Remove outdated dependencies from parent module's children list. - // When a parent accepts a child's update, the child is re-instantiated - // but the parent stays alive. We remove the old child reference so it - // gets re-added when the child re-imports. - for (const [parentId, deps] of outdatedDependencies){ - const module = devModuleCache[parentId]; - if (module) { - for (const dep of deps){ - const idx = module.children.indexOf(dep); - if (idx >= 0) { - module.children.splice(idx, 1); - } - } - } - } - return { - outdatedModuleParents - }; -} -/* eslint-disable @typescript-eslint/no-unused-vars */ /** - * Shared module instantiation logic. - * This handles the full module instantiation flow for both browser and Node.js. - * Only React Refresh hooks differ between platforms (passed as callback). - */ function instantiateModuleShared(moduleId, sourceType, sourceData, moduleFactories, devModuleCache, runtimeModules, createModuleObjectFn, createContextFn, runModuleExecutionHooksFn) { - // 1. Factory validation (same in both browser and Node.js) - const id = moduleId; - const moduleFactory = moduleFactories.get(id); - if (typeof moduleFactory !== 'function') { - throw new Error(factoryNotAvailableMessage(moduleId, sourceType, sourceData) + `\nThis is often caused by a stale browser cache, misconfigured Cache-Control headers, or a service worker serving outdated responses.` + `\nTo fix this, make sure your Cache-Control headers allow revalidation of chunks and review your service worker configuration. ` + `As an immediate workaround, try hard-reloading the page, clearing the browser cache, or unregistering any service workers.`); - } - // 2. Hot API setup (same in both - works for browser, included for Node.js) - const hotData = moduleHotData.get(id); - const { hot, hotState } = createModuleHot(id, hotData); - // 3. Parent assignment logic (same in both) - let parents; - switch(sourceType){ - case SourceType.Runtime: - runtimeModules.add(id); - parents = []; - break; - case SourceType.Parent: - parents = [ - sourceData - ]; - break; - case SourceType.Update: - parents = sourceData || []; - break; - default: - throw new Error(`Unknown source type: ${sourceType}`); - } - // 4. Module creation (platform creates base module object) - const module = createModuleObjectFn(id); - const exports = module.exports; - module.parents = parents; - module.children = []; - module.hot = hot; - devModuleCache[id] = module; - moduleHotState.set(module, hotState); - // 5. Module execution (React Refresh hooks are platform-specific) - try { - runModuleExecutionHooksFn(module, (refresh)=>{ - const context = createContextFn(module, exports, refresh); - moduleFactory.call(exports, context, module, exports); - }); - } catch (error) { - module.error = error; - throw error; - } - // 6. ESM interop (same in both) - if (module.namespaceObject && module.exports !== module.namespaceObject) { - // in case of a circular dependency: cjs1 -> esm2 -> cjs1 - interopEsm(module.exports, module.namespaceObject); - } - return module; -} -/** - * Analyzes update entries and chunks to determine which modules were added, modified, or deleted. - * This is pure logic that doesn't depend on the runtime environment. - */ function computeChangedModules(entries, updates, chunkModulesMap) { - const chunksAdded = new Map(); - const chunksDeleted = new Map(); - const added = new Map(); - const modified = new Map(); - const deleted = new Set(); - for (const [chunkPath, mergedChunkUpdate] of Object.entries(updates)){ - switch(mergedChunkUpdate.type){ - case 'added': - { - const updateAdded = new Set(mergedChunkUpdate.modules); - for (const moduleId of updateAdded){ - added.set(moduleId, entries[moduleId]); - } - chunksAdded.set(chunkPath, updateAdded); - break; - } - case 'deleted': - { - const updateDeleted = chunkModulesMap ? new Set(chunkModulesMap.get(chunkPath)) : new Set(); - for (const moduleId of updateDeleted){ - deleted.add(moduleId); - } - chunksDeleted.set(chunkPath, updateDeleted); - break; - } - case 'partial': - { - const updateAdded = new Set(mergedChunkUpdate.added); - const updateDeleted = new Set(mergedChunkUpdate.deleted); - for (const moduleId of updateAdded){ - added.set(moduleId, entries[moduleId]); - } - for (const moduleId of updateDeleted){ - deleted.add(moduleId); - } - chunksAdded.set(chunkPath, updateAdded); - chunksDeleted.set(chunkPath, updateDeleted); - break; - } - default: - throw new Error('Unknown merged chunk update type'); - } - } - // If a module was added from one chunk and deleted from another in the same update, - // consider it to be modified, as it means the module was moved from one chunk to another - // AND has new code in a single update. - for (const moduleId of added.keys()){ - if (deleted.has(moduleId)) { - added.delete(moduleId); - deleted.delete(moduleId); - } - } - for (const [moduleId, entry] of Object.entries(entries)){ - // Modules that haven't been added to any chunk but have new code are considered - // to be modified. - // This needs to be under the previous loop, as we need it to get rid of modules - // that were added and deleted in the same update. - if (!added.has(moduleId)) { - modified.set(moduleId, entry); - } - } - return { - added, - deleted, - modified, - chunksAdded, - chunksDeleted - }; -} -/** - * Compiles new module code and walks the dependency tree to find all outdated modules. - * Uses the evalModuleEntry function to compile code (platform-specific). - * - * @param added - Map of added modules - * @param modified - Map of modified modules - * @param evalModuleEntry - Function to compile module code - * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept() - */ function computeOutdatedModules(added, modified, evalModuleEntry, autoAcceptRootModules) { - const newModuleFactories = new Map(); - // Compile added modules - for (const [moduleId, entry] of added){ - if (entry != null) { - newModuleFactories.set(moduleId, evalModuleEntry(entry)); - } - } - // Walk dependency tree to find all modules affected by modifications - const { outdatedModules, outdatedDependencies } = computedInvalidatedModules(modified.keys(), autoAcceptRootModules); - // Compile modified modules - for (const [moduleId, entry] of modified){ - newModuleFactories.set(moduleId, evalModuleEntry(entry)); - } - return { - outdatedModules, - outdatedDependencies, - newModuleFactories - }; -} -/** - * Updates module factories and re-instantiates self-accepted modules. - * Uses the instantiateModule function (platform-specific via callback). - */ function applyPhase(outdatedSelfAcceptedModules, newModuleFactories, outdatedModuleParents, outdatedDependencies, moduleFactories, devModuleCache, instantiateModuleFn, applyModuleFactoryNameFn, reportError) { - // Update module factories - for (const [moduleId, factory] of newModuleFactories.entries()){ - applyModuleFactoryNameFn(factory); - moduleFactories.set(moduleId, factory); - } - // TODO(alexkirsz) Run new runtime entries here. - // Call accept handlers for outdated dependencies. - // This runs BEFORE re-instantiating self-accepted modules, matching - // webpack's behavior. - for (const [parentId, deps] of outdatedDependencies){ - const module = devModuleCache[parentId]; - if (!module) continue; - const hotState = moduleHotState.get(module); - if (!hotState) continue; - // Group deps by callback, deduplicating callbacks that handle multiple deps. - // Each callback receives only the deps it was registered for. - const callbackDeps = new Map(); - const callbackErrorHandlers = new Map(); - for (const dep of deps){ - const acceptCallback = hotState.acceptedDependencies[dep]; - if (acceptCallback) { - let depList = callbackDeps.get(acceptCallback); - if (!depList) { - depList = []; - callbackDeps.set(acceptCallback, depList); - callbackErrorHandlers.set(acceptCallback, hotState.acceptedErrorHandlers[dep]); - } - depList.push(dep); - } - } - for (const [callback, cbDeps] of callbackDeps){ - try { - callback.call(null, cbDeps); - } catch (err) { - const errorHandler = callbackErrorHandlers.get(callback); - if (typeof errorHandler === 'function') { - try { - errorHandler(err, { - moduleId: parentId, - dependencyId: cbDeps[0] - }); - } catch (err2) { - reportError(err2); - reportError(err); - } - } else { - reportError(err); - } - } - } - } - // Re-instantiate all outdated self-accepted modules - for (const { moduleId, errorHandler } of outdatedSelfAcceptedModules){ - try { - instantiateModuleFn(moduleId, SourceType.Update, outdatedModuleParents.get(moduleId)); - } catch (err) { - if (typeof errorHandler === 'function') { - try { - errorHandler(err, { - moduleId, - module: devModuleCache[moduleId] - }); - } catch (err2) { - reportError(err2); - reportError(err); - } - } else { - reportError(err); - } - } - } -} -/** - * Internal implementation that orchestrates the full HMR update flow: - * invalidation, disposal, and application of new modules. - * - * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept() - */ function applyInternal(outdatedModules, outdatedDependencies, disposedModules, newModuleFactories, moduleFactories, devModuleCache, instantiateModuleFn, applyModuleFactoryNameFn, autoAcceptRootModules) { - ; - ({ outdatedModules, outdatedDependencies } = applyInvalidatedModules(outdatedModules, outdatedDependencies, autoAcceptRootModules)); - // Find self-accepted modules to re-instantiate - const outdatedSelfAcceptedModules = computeOutdatedSelfAcceptedModules(outdatedModules); - // Run dispose handlers, save hot.data, clear caches - const { outdatedModuleParents } = disposePhase(outdatedModules, disposedModules, outdatedDependencies); - let error; - function reportError(err) { - if (!error) error = err; // Keep first error - } - applyPhase(outdatedSelfAcceptedModules, newModuleFactories, outdatedModuleParents, outdatedDependencies, moduleFactories, devModuleCache, instantiateModuleFn, applyModuleFactoryNameFn, reportError); - if (error) { - throw error; - } - // Recursively apply any queued invalidations from new module execution - if (queuedInvalidatedModules.size > 0) { - applyInternal(new Set(), new Map(), [], new Map(), moduleFactories, devModuleCache, instantiateModuleFn, applyModuleFactoryNameFn, autoAcceptRootModules); - } -} -/** - * Main entry point for applying an ECMAScript merged update. - * This is called by both browser and Node.js runtimes with platform-specific callbacks. - * - * @param options.autoAcceptRootModules - If true, root modules auto-accept updates without explicit - * module.hot.accept(). Used for server-side HMR where pages - * auto-accept at the top level. - */ function applyEcmascriptMergedUpdateShared(options) { - const { added, modified, disposedModules, evalModuleEntry, instantiateModule, applyModuleFactoryName, moduleFactories, devModuleCache, autoAcceptRootModules } = options; - const { outdatedModules, outdatedDependencies, newModuleFactories } = computeOutdatedModules(added, modified, evalModuleEntry, autoAcceptRootModules); - applyInternal(outdatedModules, outdatedDependencies, disposedModules, newModuleFactories, moduleFactories, devModuleCache, instantiateModule, applyModuleFactoryName, autoAcceptRootModules); -} -/* eslint-disable @typescript-eslint/no-unused-vars */ /// -/// -/// -/** - * Development Node.js runtime. - * Uses HotModule and shared HMR logic for hot module replacement support. - */ // Cast the module cache to HotModule for development mode -// (hmr-runtime.ts declares devModuleCache as `let` variable expecting assignment) -// This is safe because HotModule extends Module -devModuleCache = moduleCache; -// this is read in runtime-utils.ts so it creates a module with direction for hmr -createModuleWithDirectionFlag = true; -if (!globalThis.__turbopack_runtime_modules__) { - globalThis.__turbopack_runtime_modules__ = new Set(); -} -runtimeModules = globalThis.__turbopack_runtime_modules__; -const nodeDevContextPrototype = Context.prototype; -nodeDevContextPrototype.q = exportUrl; -nodeDevContextPrototype.M = moduleFactories; -nodeDevContextPrototype.c = devModuleCache; -nodeDevContextPrototype.R = resolvePathFromModule; -nodeDevContextPrototype.b = createWorker; -nodeDevContextPrototype.C = clearChunkCache; -/** - * Instantiates a module in development mode using shared HMR logic. - */ function instantiateModule(id, sourceType, sourceData) { - // Node.js: creates base module object (hot API added by shared code) - const createModuleObjectFn = (moduleId)=>{ - return createModuleWithDirection(moduleId); - }; - // Node.js: creates Context (no refresh parameter) - const createContext = (module1, exports, _refresh)=>{ - return new Context(module1, exports); - }; - // Node.js: no hooks wrapper, just execute directly - const runWithHooks = (module1, exec)=>{ - exec(undefined); // no refresh context - }; - // Use shared instantiation logic (includes hot API setup) - const newModule = instantiateModuleShared(id, sourceType, sourceData, moduleFactories, devModuleCache, runtimeModules, createModuleObjectFn, createContext, runWithHooks); - newModule.loaded = true; - return newModule; -} -/** - * Instantiates a runtime module in development mode. - */ 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 = devModuleCache[moduleId]; - if (module1) { - if (module1.error) { - throw module1.error; - } - return module1; - } - return instantiateRuntimeModule(chunkPath, moduleId); -} -/** - * Retrieves a module from the cache, or instantiate it if it is not cached. - * Also tracks parent-child relationships for HMR dependency tracking. - */ // @ts-ignore -function getOrInstantiateModuleFromParent(id, sourceModule) { - // Track parent-child relationship - trackModuleImport(sourceModule, id, devModuleCache[id]); - const module1 = devModuleCache[id]; - if (module1) { - if (module1.error) { - throw module1.error; - } - return module1; - } - const newModule = instantiateModule(id, SourceType.Parent, sourceModule.id); - // Track again after instantiation to ensure the relationship is recorded - trackModuleImport(sourceModule, id, newModule); - return newModule; -} -module.exports = (sourcePath)=>({ - m: (id)=>getOrInstantiateRuntimeModule(sourcePath, id), - c: (chunkData)=>loadRuntimeChunk(sourcePath, chunkData) - }); -/// -/// -/* eslint-disable @typescript-eslint/no-unused-vars */ /** - * Appends the module code with //# sourceURL and //# sourceMappingURL so - * that Node.js can resolve stack frames from `eval`ed server HMR modules back to - * their original source files. Mirrors the browser's _eval in dev-backend-dom.ts. - */ function inlineSourcemaps(entry) { - const [chunkPath, moduleId] = entry.url.split('?', 2); - const absolutePath = path.resolve(RUNTIME_ROOT, chunkPath); - const fileHref = url.pathToFileURL(absolutePath).href; - const sourceURL = moduleId ? `${fileHref}?${moduleId}` : fileHref; - let code = entry.code + '\n\n//# sourceURL=' + sourceURL; - if (entry.map) { - code += '\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,' + Buffer.from(entry.map).toString('base64'); - } - return code; -} -let serverHmrUpdateHandler = null; -function initializeServerHmr(moduleFactories, devModuleCache) { - if (serverHmrUpdateHandler != null) { - throw new Error('[Server HMR] Server HMR client is already initialized'); - } - // Register the update handler for the server runtime - serverHmrUpdateHandler = (msg)=>{ - handleNodejsUpdate(msg, moduleFactories, devModuleCache); - }; -} -/** - * Emits an HMR message to the registered update handler. - * Node uses a simpler listener pattern than the browser's websocket connection. - * - * Note: This is only called via __turbopack_server_hmr_apply__ which ensures - * the handler is initialized first via ensureHmrClientInitialized(). - */ function emitMessage(msg) { - if (serverHmrUpdateHandler == null) { - console.warn('[Server HMR] No update handler registered to receive message:', msg); - return false; - } - try { - serverHmrUpdateHandler(msg.data); - return true; - } catch (err) { - console.error('[Server HMR] Listener error:', err); - return false; - } -} -/** - * Handles server message updates and applies them to the Node.js runtime. - * Uses shared HMR update logic from hmr-runtime.ts. - */ function handleNodejsUpdate(msg, moduleFactories, devModuleCache) { - if (msg.type !== 'partial') { - return; - } - const instruction = msg.instruction; - if (instruction.type !== 'EcmascriptMergedUpdate') { - return; - } - try { - const { entries = {}, chunks = {} } = instruction; - const evalModuleEntry = (entry)=>{ - // eslint-disable-next-line no-eval - return (0, eval)(entry.map ? inlineSourcemaps(entry) : entry.code); - }; - const { added, modified } = computeChangedModules(entries, chunks, undefined // no chunkModulesMap for Node.js - ); - // Use shared HMR update implementation - applyEcmascriptMergedUpdateShared({ - added, - modified, - disposedModules: [], - evalModuleEntry, - instantiateModule, - applyModuleFactoryName: ()=>{}, - moduleFactories, - devModuleCache, - autoAcceptRootModules: true - }); - } catch (e) { - console.error('[Server HMR] Update failed, full reload needed:', e); - throw e; - } -} -/// -/// -/** - * Note: hmr-runtime.ts is embedded before this file, so its functions - * (initializeServerHmr, emitMessage) are available in the same scope. - */ // Initialize server HMR client (connects to shared HMR infrastructure) -let hmrClientInitialized = false; -function ensureHmrClientInitialized() { - if (hmrClientInitialized) return; - hmrClientInitialized = true; - // initializeServerHmr is from hmr-client.ts (embedded before this file) - // moduleFactories is from dev-runtime.ts - // devModuleCache is the HotModule-typed cache from dev-runtime.ts - initializeServerHmr(moduleFactories, devModuleCache); -} -function __turbopack_server_hmr_apply__(update) { - try { - ensureHmrClientInitialized(); - // emitMessage returns false if any listener failed to apply the update - return emitMessage({ - type: 'turbopack-message', - data: update - }); - } catch (err) { - console.error('[Server HMR] Failed to apply update:', err); - return false; - } -} -const handlers = globalThis.__turbopack_server_hmr_handlers__ ?? new Map(); -const chunkPrefix = path.relative(RUNTIME_ROOT, path.dirname(__filename)); -if (handlers.size === 0) { - // First registration in this generation: install the routing dispatcher. - globalThis.__turbopack_server_hmr_apply__ = (update)=>{ - const registry = globalThis.__turbopack_server_hmr_handlers__ ?? new Map(); - const updateChunkPaths = Object.keys(update.instruction?.chunks ?? {}); - const toCall = []; - if (updateChunkPaths.length === 0) { - for (const entry of registry.values())toCall.push(entry); - } else { - const seen = new Set(); - for (const chunkPath of updateChunkPaths){ - const dir = path.dirname(chunkPath); - for (const [key, entry] of registry){ - if (dir === entry.chunkPrefix && !seen.has(key)) { - seen.add(key); - toCall.push(entry); - } - } - } - } - let applied = false; - for (const { handler } of toCall){ - try { - if (handler(update)) applied = true; - } catch (err) { - console.error('[Server HMR] Handler error:', err); - } - } - return applied; - }; -} -globalThis.__turbopack_server_hmr_handlers__ = handlers; -handlers.set(__filename, { - handler: __turbopack_server_hmr_apply__, - chunkPrefix -}); - - -//# sourceMappingURL=%5Bturbopack%5D_runtime.js.map \ No newline at end of file diff --git a/.next/dev/build/chunks/[turbopack]_runtime.js.map b/.next/dev/build/chunks/[turbopack]_runtime.js.map deleted file mode 100644 index 40882cb..0000000 --- a/.next/dev/build/chunks/[turbopack]_runtime.js.map +++ /dev/null @@ -1,14 +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,oCAAAA;IACH;;;;GAIC;IAED;;;GAGC;IAED;;;;GAIC;WAhBEA;EAAAA;AA+BL;;;;;CAKC,GACD,IAAIC,gCAAgC;AAEpC,MAAMC,qBAAqB,IAAIC;AAE/B;;CAEC,GACD,SAASC,QAEPC,MAAc,EACdC,OAAgB;IAEhB,IAAI,CAACC,CAAC,GAAGF;IACT,gFAAgF;IAChF,yEAAyE;IACzE,+CAA+C;IAC/C,8EAA8E;IAC9E,sEAAsE;IACtE,iBAAiB;IACjB,4FAA4F;IAC5F,IAAI,CAACG,CAAC,GAAGF;AACX;AACA,MAAMG,mBAAmBL,QAA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,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,kEAAkE;AAClE,kEAAkE;AAClE,6DAA6D;AAC7D,8CAA8C;AAE9C;;;CAGC,GAEDA,QAAQC,GAAG,CAACC,SAAS,GAAG;AAExB,MAAMC,MAAMC,QAAQ;AAEpB,MAAMC,kBAAmC,IAAIC;AAC7C,MAAMC,cAAmCC,OAAOC,MAAM,CAAC;AAEvD;;CAEC,GACD,SAASC,sBAEPC,QAAgB;IAEhB,MAAMC,WAAW,IAAI,CAACC,CAAC,CAACF;IACxB,MAAMG,eAAeF,UAAUG,WAAWH;IAC1C,IAAI,OAAOE,iBAAiB,UAAU;QACpC,OAAOF;IACT;IAEA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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]/shared/runtime/hmr-runtime.ts"],"sourcesContent":["/// \n/// \n/// \n/// \n\ntype HotModuleFactoryFunction = ModuleFactoryFunction<\n HotModule,\n TurbopackBaseContext\n>\n\n/**\n * Shared HMR (Hot Module Replacement) implementation.\n *\n * This file contains the complete HMR implementation that's shared between\n * browser and Node.js runtimes. It manages module hot state, dependency\n * tracking, the module.hot API, and the full HMR update flow.\n */\n\n/**\n * The development module cache shared across the runtime.\n * Browser runtime declares this directly.\n * Node.js runtime assigns globalThis.__turbopack_module_cache__ to this.\n */\nlet devModuleCache: Record\n\n/**\n * Module IDs that are instantiated as part of the runtime of a chunk.\n */\nlet runtimeModules: Set\n\n/**\n * Maps module IDs to persisted data between executions of their hot module\n * implementation (`hot.data`).\n */\nconst moduleHotData: Map = new Map()\n\n/**\n * Maps module instances to their hot module state.\n * Uses WeakMap so it works with both HotModule and ModuleWithDirection.\n */\nconst moduleHotState: WeakMap = new WeakMap()\n\n/**\n * Modules that call `module.hot.invalidate()` (while being updated).\n */\nconst queuedInvalidatedModules: Set = new Set()\n\nclass UpdateApplyError extends Error {\n name = 'UpdateApplyError'\n\n dependencyChain: ModuleId[]\n\n constructor(message: string, dependencyChain: ModuleId[]) {\n super(message)\n this.dependencyChain = dependencyChain\n }\n}\n\ntype ModuleEffect =\n | {\n type: 'unaccepted'\n dependencyChain: ModuleId[]\n }\n | {\n type: 'self-declined'\n dependencyChain: ModuleId[]\n moduleId: ModuleId\n }\n | {\n type: 'declined'\n dependencyChain: ModuleId[]\n moduleId: ModuleId\n parentId: ModuleId\n }\n | {\n type: 'accepted'\n moduleId: ModuleId\n outdatedModules: Set\n outdatedDependencies: Map>\n }\n\n/**\n * Records parent-child relationship when a module imports another.\n * Should be called during module instantiation.\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction trackModuleImport(\n parentModule: ModuleWithDirection,\n childModuleId: ModuleId,\n childModule: ModuleWithDirection | undefined\n): void {\n // Record that parent imports child\n if (parentModule.children.indexOf(childModuleId) === -1) {\n parentModule.children.push(childModuleId)\n }\n\n // Record that child is imported by parent\n if (childModule && childModule.parents.indexOf(parentModule.id) === -1) {\n childModule.parents.push(parentModule.id)\n }\n}\n\nfunction formatDependencyChain(dependencyChain: ModuleId[]): string {\n return `Dependency chain: ${dependencyChain.join(' -> ')}`\n}\n\n/**\n * Walks the dependency tree to find all modules affected by a change.\n * Returns information about whether the update can be accepted and which\n * modules need to be invalidated.\n *\n * @param moduleId - The module that changed\n * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept().\n * This is used for server-side HMR where pages auto-accept at the top level.\n */\nfunction getAffectedModuleEffects(\n moduleId: ModuleId,\n autoAcceptRootModules: boolean\n): ModuleEffect {\n const outdatedModules: Set = new Set()\n const outdatedDependencies: Map> = new Map()\n\n type QueueItem = { moduleId?: ModuleId; dependencyChain: ModuleId[] }\n\n const queue: QueueItem[] = [\n {\n moduleId,\n dependencyChain: [],\n },\n ]\n\n let nextItem\n while ((nextItem = queue.shift())) {\n const { moduleId, dependencyChain } = nextItem\n\n if (moduleId != null) {\n if (outdatedModules.has(moduleId)) {\n // Avoid infinite loops caused by cycles between modules in the dependency chain.\n continue\n }\n\n outdatedModules.add(moduleId)\n }\n\n // We've arrived at the runtime of the chunk, which means that nothing\n // else above can accept this update.\n if (moduleId === undefined) {\n if (autoAcceptRootModules) {\n return {\n type: 'accepted',\n moduleId,\n outdatedModules,\n outdatedDependencies,\n }\n }\n return {\n type: 'unaccepted',\n dependencyChain,\n }\n }\n\n const module = devModuleCache[moduleId]\n const hotState = moduleHotState.get(module)!\n\n if (\n // The module is not in the cache. Since this is a \"modified\" update,\n // it means that the module was never instantiated before.\n !module || // The module accepted itself without invalidating globalThis.\n // TODO is that right?\n (hotState.selfAccepted && !hotState.selfInvalidated)\n ) {\n continue\n }\n\n if (hotState.selfDeclined) {\n return {\n type: 'self-declined',\n dependencyChain,\n moduleId,\n }\n }\n\n if (runtimeModules.has(moduleId)) {\n if (autoAcceptRootModules) {\n continue\n }\n queue.push({\n moduleId: undefined,\n dependencyChain: [...dependencyChain, moduleId],\n })\n continue\n }\n\n for (const parentId of module.parents) {\n const parent = devModuleCache[parentId]\n\n if (!parent) {\n continue\n }\n\n const parentHotState = moduleHotState.get(parent)\n\n // Check if parent declined this dependency\n if (parentHotState?.declinedDependencies[moduleId]) {\n return {\n type: 'declined',\n dependencyChain: [...dependencyChain, moduleId],\n moduleId,\n parentId,\n }\n }\n\n // Skip if parent is already outdated\n if (outdatedModules.has(parentId)) {\n continue\n }\n\n // Check if parent accepts this dependency\n if (parentHotState?.acceptedDependencies[moduleId]) {\n if (!outdatedDependencies.has(parentId)) {\n outdatedDependencies.set(parentId, new Set())\n }\n outdatedDependencies.get(parentId)!.add(moduleId)\n continue\n }\n\n // Neither accepted nor declined — propagate to parent\n queue.push({\n moduleId: parentId,\n dependencyChain: [...dependencyChain, moduleId],\n })\n }\n\n // If no parents and we're at a root module, auto-accept if configured\n if (module.parents.length === 0 && autoAcceptRootModules) {\n continue\n }\n }\n\n return {\n type: 'accepted',\n moduleId,\n outdatedModules,\n outdatedDependencies,\n }\n}\n\n/**\n * Merges source dependency map into target dependency map.\n */\nfunction mergeDependencies(\n target: Map>,\n source: Map>\n): void {\n for (const [parentId, deps] of source) {\n const existing = target.get(parentId)\n if (existing) {\n for (const dep of deps) {\n existing.add(dep)\n }\n } else {\n target.set(parentId, new Set(deps))\n }\n }\n}\n\n/**\n * Computes all modules that need to be invalidated based on which modules changed.\n *\n * @param invalidated - The modules that have been invalidated\n * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept()\n */\nfunction computedInvalidatedModules(\n invalidated: Iterable,\n autoAcceptRootModules: boolean\n): {\n outdatedModules: Set\n outdatedDependencies: Map>\n} {\n const outdatedModules = new Set()\n const outdatedDependencies = new Map>()\n\n for (const moduleId of invalidated) {\n const effect = getAffectedModuleEffects(moduleId, autoAcceptRootModules)\n\n switch (effect.type) {\n case 'unaccepted':\n throw new UpdateApplyError(\n `cannot apply update: unaccepted module. ${formatDependencyChain(\n effect.dependencyChain\n )}.`,\n effect.dependencyChain\n )\n case 'self-declined':\n throw new UpdateApplyError(\n `cannot apply update: self-declined module. ${formatDependencyChain(\n effect.dependencyChain\n )}.`,\n effect.dependencyChain\n )\n case 'declined':\n throw new UpdateApplyError(\n `cannot apply update: declined dependency. ${formatDependencyChain(\n effect.dependencyChain\n )}. Declined by ${effect.parentId}.`,\n effect.dependencyChain\n )\n case 'accepted':\n for (const outdatedModuleId of effect.outdatedModules) {\n outdatedModules.add(outdatedModuleId)\n }\n mergeDependencies(outdatedDependencies, effect.outdatedDependencies)\n break\n default:\n invariant(effect, (effect) => `Unknown effect type: ${effect?.type}`)\n }\n }\n\n return { outdatedModules, outdatedDependencies }\n}\n\n/**\n * Creates the module.hot API object and its internal state.\n * This provides the HMR API that user code calls (module.hot.accept(), etc.)\n */\n\nfunction createModuleHot(\n moduleId: ModuleId,\n hotData: HotData\n): { hot: Hot; hotState: HotState } {\n const hotState: HotState = {\n selfAccepted: false,\n selfDeclined: false,\n selfInvalidated: false,\n disposeHandlers: [],\n acceptedDependencies: {},\n acceptedErrorHandlers: {},\n declinedDependencies: {},\n }\n\n const hot: Hot = {\n // TODO(alexkirsz) This is not defined in the HMR API. It was used to\n // decide whether to warn whenever an HMR-disposed module required other\n // modules. We might want to remove it.\n active: true,\n\n data: hotData ?? {},\n\n accept: (\n modules?: string | string[] | AcceptErrorHandler,\n callback?: AcceptCallback,\n errorHandler?: AcceptErrorHandler\n ) => {\n if (modules === undefined) {\n hotState.selfAccepted = true\n } else if (typeof modules === 'function') {\n hotState.selfAccepted = modules\n } else if (typeof modules === 'object' && modules !== null) {\n for (let i = 0; i < modules.length; i++) {\n hotState.acceptedDependencies[modules[i]] = callback || function () {}\n hotState.acceptedErrorHandlers[modules[i]] = errorHandler\n }\n } else {\n hotState.acceptedDependencies[modules] = callback || function () {}\n hotState.acceptedErrorHandlers[modules] = errorHandler\n }\n },\n\n decline: (dep?: string | string[]) => {\n if (dep === undefined) {\n hotState.selfDeclined = true\n } else if (typeof dep === 'object' && dep !== null) {\n for (let i = 0; i < dep.length; i++) {\n hotState.declinedDependencies[dep[i]] = true\n }\n } else {\n hotState.declinedDependencies[dep] = true\n }\n },\n\n dispose: (callback) => {\n hotState.disposeHandlers.push(callback)\n },\n\n addDisposeHandler: (callback) => {\n hotState.disposeHandlers.push(callback)\n },\n\n removeDisposeHandler: (callback) => {\n const idx = hotState.disposeHandlers.indexOf(callback)\n if (idx >= 0) {\n hotState.disposeHandlers.splice(idx, 1)\n }\n },\n\n invalidate: () => {\n hotState.selfInvalidated = true\n queuedInvalidatedModules.add(moduleId)\n },\n\n // NOTE(alexkirsz) This is part of the management API, which we don't\n // implement, but the Next.js React Refresh runtime uses this to decide\n // whether to schedule an update.\n status: () => 'idle',\n\n // NOTE(alexkirsz) Since we always return \"idle\" for now, these are no-ops.\n addStatusHandler: (_handler) => {},\n removeStatusHandler: (_handler) => {},\n\n // NOTE(jridgewell) Check returns the list of updated modules, but we don't\n // want the webpack code paths to ever update (the turbopack paths handle\n // this already).\n check: () => Promise.resolve(null),\n }\n\n return { hot, hotState }\n}\n\n/**\n * Processes queued invalidated modules and adds them to the outdated modules set.\n * Modules that call module.hot.invalidate() are queued and processed here.\n *\n * @param outdatedModules - The current set of outdated modules\n * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept()\n */\nfunction applyInvalidatedModules(\n outdatedModules: Set,\n outdatedDependencies: Map>,\n autoAcceptRootModules: boolean\n): {\n outdatedModules: Set\n outdatedDependencies: Map>\n} {\n if (queuedInvalidatedModules.size > 0) {\n const result = computedInvalidatedModules(\n queuedInvalidatedModules,\n autoAcceptRootModules\n )\n for (const moduleId of result.outdatedModules) {\n outdatedModules.add(moduleId)\n }\n mergeDependencies(outdatedDependencies, result.outdatedDependencies)\n\n queuedInvalidatedModules.clear()\n }\n\n return { outdatedModules, outdatedDependencies }\n}\n\n/**\n * Computes which outdated modules have self-accepted and can be hot reloaded.\n */\n\nfunction computeOutdatedSelfAcceptedModules(\n outdatedModules: Iterable\n): { moduleId: ModuleId; errorHandler: true | Function }[] {\n const outdatedSelfAcceptedModules: {\n moduleId: ModuleId\n errorHandler: true | Function\n }[] = []\n for (const moduleId of outdatedModules) {\n const module = devModuleCache[moduleId]\n const hotState = moduleHotState.get(module)\n if (module && hotState?.selfAccepted && !hotState.selfInvalidated) {\n outdatedSelfAcceptedModules.push({\n moduleId,\n errorHandler: hotState.selfAccepted,\n })\n }\n }\n return outdatedSelfAcceptedModules\n}\n\n/**\n * Disposes of an instance of a module.\n * Runs hot.dispose handlers and manages persistent hot data.\n *\n * NOTE: mode = \"replace\" will not remove modules from devModuleCache.\n * This must be done in a separate step afterwards.\n */\nfunction disposeModule(moduleId: ModuleId, mode: 'clear' | 'replace') {\n const module = devModuleCache[moduleId]\n if (!module) {\n return\n }\n\n const hotState = moduleHotState.get(module)\n if (!hotState) {\n return\n }\n\n const data: HotData = {}\n\n // Run the `hot.dispose` handler, if any, passing in the persistent\n // `hot.data` object.\n for (const disposeHandler of hotState.disposeHandlers) {\n disposeHandler(data)\n }\n\n // This used to warn in `getOrInstantiateModuleFromParent` when a disposed\n // module is still importing other modules.\n if (module.hot) {\n module.hot.active = false\n }\n\n moduleHotState.delete(module)\n\n // Remove the disposed module from its children's parent list.\n // It will be added back once the module re-instantiates and imports its\n // children again.\n for (const childId of module.children) {\n const child = devModuleCache[childId]\n if (!child) {\n continue\n }\n\n const idx = child.parents.indexOf(module.id)\n if (idx >= 0) {\n child.parents.splice(idx, 1)\n }\n }\n\n switch (mode) {\n case 'clear':\n delete devModuleCache[module.id]\n moduleHotData.delete(module.id)\n break\n case 'replace':\n moduleHotData.set(module.id, data)\n break\n default:\n invariant(mode, (mode) => `invalid mode: ${mode}`)\n }\n}\n\n/**\n * Dispose phase: runs dispose handlers and cleans up outdated/disposed modules.\n * Returns the parent modules of outdated modules for use in the apply phase.\n */\n\nfunction disposePhase(\n outdatedModules: Iterable,\n disposedModules: Iterable,\n outdatedDependencies: Map>\n): { outdatedModuleParents: Map> } {\n for (const moduleId of outdatedModules) {\n disposeModule(moduleId, 'replace')\n }\n\n for (const moduleId of disposedModules) {\n disposeModule(moduleId, 'clear')\n }\n\n // Removing modules from the module cache is a separate step.\n // We also want to keep track of previous parents of the outdated modules.\n const outdatedModuleParents = new Map>()\n for (const moduleId of outdatedModules) {\n const oldModule = devModuleCache[moduleId]\n outdatedModuleParents.set(moduleId, oldModule?.parents)\n delete devModuleCache[moduleId]\n }\n\n // Remove outdated dependencies from parent module's children list.\n // When a parent accepts a child's update, the child is re-instantiated\n // but the parent stays alive. We remove the old child reference so it\n // gets re-added when the child re-imports.\n for (const [parentId, deps] of outdatedDependencies) {\n const module = devModuleCache[parentId]\n if (module) {\n for (const dep of deps) {\n const idx = module.children.indexOf(dep)\n if (idx >= 0) {\n module.children.splice(idx, 1)\n }\n }\n }\n }\n\n return { outdatedModuleParents }\n}\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/**\n * Shared module instantiation logic.\n * This handles the full module instantiation flow for both browser and Node.js.\n * Only React Refresh hooks differ between platforms (passed as callback).\n */\nfunction instantiateModuleShared(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData,\n moduleFactories: ModuleFactories,\n devModuleCache: ModuleCache,\n runtimeModules: Set,\n createModuleObjectFn: (id: ModuleId) => HotModule,\n createContextFn: (module: HotModule, exports: Exports, refresh?: any) => any,\n runModuleExecutionHooksFn: (\n module: HotModule,\n exec: (refresh: any) => void\n ) => void\n): HotModule {\n // 1. Factory validation (same in both browser and Node.js)\n const id = moduleId\n const moduleFactory = moduleFactories.get(id)\n if (typeof moduleFactory !== 'function') {\n throw new Error(\n factoryNotAvailableMessage(moduleId, sourceType, sourceData) +\n `\\nThis is often caused by a stale browser cache, misconfigured Cache-Control headers, or a service worker serving outdated responses.` +\n `\\nTo fix this, make sure your Cache-Control headers allow revalidation of chunks and review your service worker configuration. ` +\n `As an immediate workaround, try hard-reloading the page, clearing the browser cache, or unregistering any service workers.`\n )\n }\n\n // 2. Hot API setup (same in both - works for browser, included for Node.js)\n const hotData = moduleHotData.get(id)!\n const { hot, hotState } = createModuleHot(id, hotData)\n\n // 3. Parent assignment logic (same in both)\n let parents: ModuleId[]\n switch (sourceType) {\n case SourceType.Runtime:\n runtimeModules.add(id)\n parents = []\n break\n case SourceType.Parent:\n parents = [sourceData as ModuleId]\n break\n case SourceType.Update:\n parents = (sourceData as ModuleId[]) || []\n break\n default:\n throw new Error(`Unknown source type: ${sourceType}`)\n }\n\n // 4. Module creation (platform creates base module object)\n const module = createModuleObjectFn(id)\n const exports = module.exports\n module.parents = parents\n module.children = []\n module.hot = hot\n\n devModuleCache[id] = module\n moduleHotState.set(module, hotState)\n\n // 5. Module execution (React Refresh hooks are platform-specific)\n try {\n runModuleExecutionHooksFn(module, (refresh) => {\n const context = createContextFn(module, exports, refresh)\n moduleFactory.call(exports, context, module, exports)\n })\n } catch (error) {\n module.error = error as any\n throw error\n }\n\n // 6. ESM interop (same in both)\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 * Analyzes update entries and chunks to determine which modules were added, modified, or deleted.\n * This is pure logic that doesn't depend on the runtime environment.\n */\nfunction computeChangedModules(\n entries: Record,\n updates: Record,\n chunkModulesMap?: Map>\n): {\n added: Map\n modified: Map\n deleted: Set\n chunksAdded: Map>\n chunksDeleted: Map>\n} {\n const chunksAdded = new Map()\n const chunksDeleted = new Map()\n const added: Map = new Map()\n const modified = new Map()\n const deleted: Set = new Set()\n\n for (const [chunkPath, mergedChunkUpdate] of Object.entries(updates) as Array<\n [ChunkPath, EcmascriptMergedChunkUpdate]\n >) {\n switch (mergedChunkUpdate.type) {\n case 'added': {\n const updateAdded = new Set(mergedChunkUpdate.modules)\n for (const moduleId of updateAdded) {\n added.set(moduleId, entries[moduleId])\n }\n chunksAdded.set(chunkPath, updateAdded)\n break\n }\n case 'deleted': {\n const updateDeleted = chunkModulesMap\n ? new Set(chunkModulesMap.get(chunkPath))\n : new Set()\n for (const moduleId of updateDeleted) {\n deleted.add(moduleId)\n }\n chunksDeleted.set(chunkPath, updateDeleted)\n break\n }\n case 'partial': {\n const updateAdded = new Set(mergedChunkUpdate.added)\n const updateDeleted = new Set(mergedChunkUpdate.deleted)\n for (const moduleId of updateAdded) {\n added.set(moduleId, entries[moduleId])\n }\n for (const moduleId of updateDeleted) {\n deleted.add(moduleId)\n }\n chunksAdded.set(chunkPath, updateAdded)\n chunksDeleted.set(chunkPath, updateDeleted)\n break\n }\n default:\n throw new Error('Unknown merged chunk update type')\n }\n }\n\n // If a module was added from one chunk and deleted from another in the same update,\n // consider it to be modified, as it means the module was moved from one chunk to another\n // AND has new code in a single update.\n for (const moduleId of added.keys()) {\n if (deleted.has(moduleId)) {\n added.delete(moduleId)\n deleted.delete(moduleId)\n }\n }\n\n for (const [moduleId, entry] of Object.entries(entries)) {\n // Modules that haven't been added to any chunk but have new code are considered\n // to be modified.\n // This needs to be under the previous loop, as we need it to get rid of modules\n // that were added and deleted in the same update.\n if (!added.has(moduleId)) {\n modified.set(moduleId, entry)\n }\n }\n\n return { added, deleted, modified, chunksAdded, chunksDeleted }\n}\n\n/**\n * Compiles new module code and walks the dependency tree to find all outdated modules.\n * Uses the evalModuleEntry function to compile code (platform-specific).\n *\n * @param added - Map of added modules\n * @param modified - Map of modified modules\n * @param evalModuleEntry - Function to compile module code\n * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept()\n */\nfunction computeOutdatedModules(\n added: Map,\n modified: Map,\n evalModuleEntry: (entry: EcmascriptModuleEntry) => HotModuleFactoryFunction,\n autoAcceptRootModules: boolean\n): {\n outdatedModules: Set\n outdatedDependencies: Map>\n newModuleFactories: Map\n} {\n const newModuleFactories = new Map()\n\n // Compile added modules\n for (const [moduleId, entry] of added) {\n if (entry != null) {\n newModuleFactories.set(moduleId, evalModuleEntry(entry))\n }\n }\n\n // Walk dependency tree to find all modules affected by modifications\n const { outdatedModules, outdatedDependencies } = computedInvalidatedModules(\n modified.keys(),\n autoAcceptRootModules\n )\n\n // Compile modified modules\n for (const [moduleId, entry] of modified) {\n newModuleFactories.set(moduleId, evalModuleEntry(entry))\n }\n\n return { outdatedModules, outdatedDependencies, newModuleFactories }\n}\n\n/**\n * Updates module factories and re-instantiates self-accepted modules.\n * Uses the instantiateModule function (platform-specific via callback).\n */\nfunction applyPhase(\n outdatedSelfAcceptedModules: {\n moduleId: ModuleId\n errorHandler: true | Function\n }[],\n newModuleFactories: Map,\n outdatedModuleParents: Map>,\n outdatedDependencies: Map>,\n moduleFactories: ModuleFactories,\n devModuleCache: ModuleCache,\n instantiateModuleFn: (\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n ) => HotModule,\n applyModuleFactoryNameFn: (factory: HotModuleFactoryFunction) => void,\n reportError: (err: any) => void\n) {\n // Update module factories\n for (const [moduleId, factory] of newModuleFactories.entries()) {\n applyModuleFactoryNameFn(factory)\n moduleFactories.set(moduleId, factory)\n }\n\n // TODO(alexkirsz) Run new runtime entries here.\n\n // Call accept handlers for outdated dependencies.\n // This runs BEFORE re-instantiating self-accepted modules, matching\n // webpack's behavior.\n for (const [parentId, deps] of outdatedDependencies) {\n const module = devModuleCache[parentId]\n if (!module) continue\n\n const hotState = moduleHotState.get(module)\n if (!hotState) continue\n\n // Group deps by callback, deduplicating callbacks that handle multiple deps.\n // Each callback receives only the deps it was registered for.\n const callbackDeps = new Map void), ModuleId[]>()\n const callbackErrorHandlers = new Map<\n AcceptCallback | (() => void),\n AcceptErrorHandler | undefined\n >()\n\n for (const dep of deps) {\n const acceptCallback = hotState.acceptedDependencies[dep]\n if (acceptCallback) {\n let depList = callbackDeps.get(acceptCallback)\n if (!depList) {\n depList = []\n callbackDeps.set(acceptCallback, depList)\n callbackErrorHandlers.set(\n acceptCallback,\n hotState.acceptedErrorHandlers[dep]\n )\n }\n depList.push(dep)\n }\n }\n\n for (const [callback, cbDeps] of callbackDeps) {\n try {\n callback.call(null, cbDeps)\n } catch (err: any) {\n const errorHandler = callbackErrorHandlers.get(callback)\n if (typeof errorHandler === 'function') {\n try {\n errorHandler(err, {\n moduleId: parentId,\n dependencyId: cbDeps[0],\n })\n } catch (err2) {\n reportError(err2)\n reportError(err)\n }\n } else {\n reportError(err)\n }\n }\n }\n }\n\n // Re-instantiate all outdated self-accepted modules\n for (const { moduleId, errorHandler } of outdatedSelfAcceptedModules) {\n try {\n instantiateModuleFn(\n moduleId,\n SourceType.Update,\n outdatedModuleParents.get(moduleId)\n )\n } catch (err) {\n if (typeof errorHandler === 'function') {\n try {\n errorHandler(err, { moduleId, module: devModuleCache[moduleId] })\n } catch (err2) {\n reportError(err2)\n reportError(err)\n }\n } else {\n reportError(err)\n }\n }\n }\n}\n\n/**\n * Internal implementation that orchestrates the full HMR update flow:\n * invalidation, disposal, and application of new modules.\n *\n * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept()\n */\nfunction applyInternal(\n outdatedModules: Set,\n outdatedDependencies: Map>,\n disposedModules: Iterable,\n newModuleFactories: Map,\n moduleFactories: ModuleFactories,\n devModuleCache: ModuleCache,\n instantiateModuleFn: (\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n ) => HotModule,\n applyModuleFactoryNameFn: (factory: HotModuleFactoryFunction) => void,\n autoAcceptRootModules: boolean\n) {\n ;({ outdatedModules, outdatedDependencies } = applyInvalidatedModules(\n outdatedModules,\n outdatedDependencies,\n autoAcceptRootModules\n ))\n\n // Find self-accepted modules to re-instantiate\n const outdatedSelfAcceptedModules =\n computeOutdatedSelfAcceptedModules(outdatedModules)\n\n // Run dispose handlers, save hot.data, clear caches\n const { outdatedModuleParents } = disposePhase(\n outdatedModules,\n disposedModules,\n outdatedDependencies\n )\n\n let error: any\n\n function reportError(err: any) {\n if (!error) error = err // Keep first error\n }\n\n applyPhase(\n outdatedSelfAcceptedModules,\n newModuleFactories,\n outdatedModuleParents,\n outdatedDependencies,\n moduleFactories,\n devModuleCache,\n instantiateModuleFn,\n applyModuleFactoryNameFn,\n reportError\n )\n\n if (error) {\n throw error\n }\n\n // Recursively apply any queued invalidations from new module execution\n if (queuedInvalidatedModules.size > 0) {\n applyInternal(\n new Set(),\n new Map(),\n [],\n new Map(),\n moduleFactories,\n devModuleCache,\n instantiateModuleFn,\n applyModuleFactoryNameFn,\n autoAcceptRootModules\n )\n }\n}\n\n/**\n * Main entry point for applying an ECMAScript merged update.\n * This is called by both browser and Node.js runtimes with platform-specific callbacks.\n *\n * @param options.autoAcceptRootModules - If true, root modules auto-accept updates without explicit\n * module.hot.accept(). Used for server-side HMR where pages\n * auto-accept at the top level.\n */\nfunction applyEcmascriptMergedUpdateShared(options: {\n added: Map\n modified: Map\n disposedModules: Iterable\n evalModuleEntry: (entry: EcmascriptModuleEntry) => HotModuleFactoryFunction\n instantiateModule: (\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n ) => HotModule\n applyModuleFactoryName: (factory: HotModuleFactoryFunction) => void\n moduleFactories: ModuleFactories\n devModuleCache: ModuleCache\n autoAcceptRootModules: boolean\n}) {\n const {\n added,\n modified,\n disposedModules,\n evalModuleEntry,\n instantiateModule,\n applyModuleFactoryName,\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules,\n } = options\n\n const { outdatedModules, outdatedDependencies, newModuleFactories } =\n computeOutdatedModules(\n added,\n modified,\n evalModuleEntry,\n autoAcceptRootModules\n )\n\n applyInternal(\n outdatedModules,\n outdatedDependencies,\n disposedModules,\n newModuleFactories,\n moduleFactories,\n devModuleCache,\n instantiateModule,\n applyModuleFactoryName,\n autoAcceptRootModules\n )\n}\n"],"names":["devModuleCache","runtimeModules","moduleHotData","Map","moduleHotState","WeakMap","queuedInvalidatedModules","Set","UpdateApplyError","Error","name","dependencyChain","message","trackModuleImport","parentModule","childModuleId","childModule","children","indexOf","push","parents","id","formatDependencyChain","join","getAffectedModuleEffects","moduleId","autoAcceptRootModules","outdatedModules","outdatedDependencies","queue","nextItem","shift","has","add","undefined","type","module","hotState","get","selfAccepted","selfInvalidated","selfDeclined","parentId","parent","parentHotState","declinedDependencies","acceptedDependencies","set","length","mergeDependencies","target","source","deps","existing","dep","computedInvalidatedModules","invalidated","effect","outdatedModuleId","invariant","createModuleHot","hotData","disposeHandlers","acceptedErrorHandlers","hot","active","data","accept","modules","callback","errorHandler","i","decline","dispose","addDisposeHandler","removeDisposeHandler","idx","splice","invalidate","status","addStatusHandler","_handler","removeStatusHandler","check","Promise","resolve","applyInvalidatedModules","size","result","clear","computeOutdatedSelfAcceptedModules","outdatedSelfAcceptedModules","disposeModule","mode","disposeHandler","delete","childId","child","disposePhase","disposedModules","outdatedModuleParents","oldModule","instantiateModuleShared","sourceType","sourceData","moduleFactories","createModuleObjectFn","createContextFn","runModuleExecutionHooksFn","moduleFactory","factoryNotAvailableMessage","SourceType","Runtime","Parent","Update","exports","refresh","context","call","error","namespaceObject","interopEsm","computeChangedModules","entries","updates","chunkModulesMap","chunksAdded","chunksDeleted","added","modified","deleted","chunkPath","mergedChunkUpdate","Object","updateAdded","updateDeleted","keys","entry","computeOutdatedModules","evalModuleEntry","newModuleFactories","applyPhase","instantiateModuleFn","applyModuleFactoryNameFn","reportError","factory","callbackDeps","callbackErrorHandlers","acceptCallback","depList","cbDeps","err","dependencyId","err2","applyInternal","applyEcmascriptMergedUpdateShared","options","instantiateModule","applyModuleFactoryName"],"mappings":"AAAA,2CAA2C;AAC3C,6CAA6C;AAC7C,4CAA4C;AAC5C,4CAA4C;AAO5C;;;;;;CAMC,GAED;;;;CAIC,GACD,IAAIA;AAEJ;;CAEC,GACD,IAAIC;AAEJ;;;CAGC,GACD,MAAMC,gBAAwC,IAAIC;AAElD;;;CAGC,GACD,MAAMC,iBAAyC,IAAIC;AAEnD;;CAEC,GACD,MAAMC,2BAA0C,IAAIC;AAEpD,MAAMC,yBAAyBC;IAC7BC,OAAO,mBAAkB;IAEzBC,gBAA2B;IAE3BH,YAAYI,OAAe,EAAED,eAA2B,CAAE;QACxD,KAAK,CAACC;QACN,IAAI,CAACD,eAAe,GAAGA;IACzB;AACF;AAyBA;;;CAGC,GACD,6DAA6D;AAC7D,SAASE,kBACPC,YAAiC,EACjCC,aAAuB,EACvBC,WAA4C;IAE5C,mCAAmC;IACnC,IAAIF,aAAaG,QAAQ,CAACC,OAAO,CAACH,mBAAmB,CAAC,GAAG;QACvDD,aAAaG,QAAQ,CAACE,IAAI,CAACJ;IAC7B;IAEA,0CAA0C;IAC1C,IAAIC,eAAeA,YAAYI,OAAO,CAACF,OAAO,CAACJ,aAAaO,EAAE,MAAM,CAAC,GAAG;QACtEL,YAAYI,OAAO,CAACD,IAAI,CAACL,aAAaO,EAAE;IAC1C;AACF;AAEA,SAASC,sBAAsBX,eAA2B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C,EAAEC,eAAe,EAAEC,oBAAoB,EAAE,GAAG0D,wBAC5C3D,iBACAC,sBACAF,sBACD;IAED,+CAA+C;IAC/C,MAAMiE,8BACJD,mCAAmC/D;IAErC,oDAAoD;IACpD,MAAM,EAAEyE,qBAAqB,EAAE,GAAGF,aAChCvE,iBACAwE,iBACAvE;IAGF,IAAI2F;IAEJ,SAASyB,YAAYO,GAAQ;QAC3B,IAAI,CAAChC,OAAOA,QAAQgC,KAAI,mBAAmB;IAC7C;IAEAV,WACElD,6BACAiD,oBACAxC,uBACAxE,sBACA6E,iBACAzG,gBACA8I,qBACAC,0BACAC;IAGF,IAAIzB,OAAO;QACT,MAAMA;IACR;IAEA,uEAAuE;IACvE,IAAIjH,yBAAyBiF,IAAI,GAAG,GAAG;QACrCmE,cACE,IAAInJ,OACJ,IAAIJ,OACJ,EAAE,EACF,IAAIA,OACJsG,iBACAzG,gBACA8I,qBACAC,0BACArH;IAEJ;AACF;AAEA;;;;;;;CAOC,GACD,SAASiI,kCAAkCC,OAc1C;IACC,MAAM,EACJ5B,KAAK,EACLC,QAAQ,EACR9B,eAAe,EACfwC,eAAe,EACfkB,iBAAiB,EACjBC,sBAAsB,EACtBrD,eAAe,EACfzG,cAAc,EACd0B,qBAAqB,EACtB,GAAGkI;IAEJ,MAAM,EAAEjI,eAAe,EAAEC,oBAAoB,EAAEgH,kBAAkB,EAAE,GACjEF,uBACEV,OACAC,UACAU,iBACAjH;IAGJgI,cACE/H,iBACAC,sBACAuE,iBACAyC,oBACAnC,iBACAzG,gBACA6J,mBACAC,wBACApI;AAEJ","ignoreList":[0]}}, - {"offset": {"line": 1504, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/nodejs/runtime/dev-base.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n\n/**\n * Development Node.js runtime.\n * Uses HotModule and shared HMR logic for hot module replacement support.\n */\n\n// Cast the module cache to HotModule for development mode\n// (hmr-runtime.ts declares devModuleCache as `let` variable expecting assignment)\n// This is safe because HotModule extends Module\ndevModuleCache = moduleCache as ModuleCache\n\n// this is read in runtime-utils.ts so it creates a module with direction for hmr\ncreateModuleWithDirectionFlag = true\n\nif (!globalThis.__turbopack_runtime_modules__) {\n globalThis.__turbopack_runtime_modules__ = new Set()\n}\nruntimeModules = globalThis.__turbopack_runtime_modules__\n\ninterface TurbopackNodeDevBuildContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n x: ExternalRequire\n y: ExternalImport\n C: typeof clearChunkCache\n}\n\nconst nodeDevContextPrototype =\n Context.prototype as TurbopackNodeDevBuildContext\n\nnodeDevContextPrototype.q = exportUrl\nnodeDevContextPrototype.M = moduleFactories\nnodeDevContextPrototype.c = devModuleCache\nnodeDevContextPrototype.R = resolvePathFromModule\nnodeDevContextPrototype.b = createWorker\nnodeDevContextPrototype.C = clearChunkCache\n\n/**\n * Instantiates a module in development mode using shared HMR logic.\n */\nfunction instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): HotModule {\n // Node.js: creates base module object (hot API added by shared code)\n const createModuleObjectFn = (moduleId: ModuleId) => {\n return createModuleWithDirection(moduleId) as HotModule\n }\n\n // Node.js: creates Context (no refresh parameter)\n const createContext = (\n module: HotModule,\n exports: Exports,\n _refresh?: any\n ) => {\n return new (Context as any as ContextConstructor)(\n module,\n exports\n )\n }\n\n // Node.js: no hooks wrapper, just execute directly\n const runWithHooks = (module: HotModule, exec: (refresh: any) => void) => {\n exec(undefined) // no refresh context\n }\n\n // Use shared instantiation logic (includes hot API setup)\n const newModule = instantiateModuleShared(\n id,\n sourceType,\n sourceData,\n moduleFactories,\n devModuleCache,\n runtimeModules,\n createModuleObjectFn,\n createContext,\n runWithHooks\n )\n\n // Node.js-specific: mark module as loaded\n ;(newModule as any).loaded = true\n\n return newModule\n}\n\n/**\n * Instantiates a runtime module in development mode.\n */\nfunction instantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): HotModule {\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): HotModule {\n const module = devModuleCache[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\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n * Also tracks parent-child relationships for HMR dependency tracking.\n */\n// @ts-ignore\nfunction getOrInstantiateModuleFromParent(\n id: ModuleId,\n sourceModule: HotModule\n): HotModule {\n // Track parent-child relationship\n trackModuleImport(sourceModule, id, devModuleCache[id])\n\n const module = devModuleCache[id]\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n return module\n }\n\n const newModule = instantiateModule(id, SourceType.Parent, sourceModule.id)\n\n // Track again after instantiation to ensure the relationship is recorded\n trackModuleImport(sourceModule, id, newModule)\n\n return newModule\n}\n\nmodule.exports = (sourcePath: ChunkPath) => ({\n m: (id: ModuleId) => getOrInstantiateRuntimeModule(sourcePath, id),\n c: (chunkData: ChunkData) => loadRuntimeChunk(sourcePath, chunkData),\n})\n"],"names":["devModuleCache","moduleCache","createModuleWithDirectionFlag","globalThis","__turbopack_runtime_modules__","Set","runtimeModules","nodeDevContextPrototype","Context","prototype","q","exportUrl","M","moduleFactories","c","R","resolvePathFromModule","b","createWorker","C","clearChunkCache","instantiateModule","id","sourceType","sourceData","createModuleObjectFn","moduleId","createModuleWithDirection","createContext","module1","exports","_refresh","runWithHooks","exec","undefined","newModule","instantiateModuleShared","loaded","instantiateRuntimeModule","chunkPath","SourceType","Runtime","getOrInstantiateRuntimeModule","error","getOrInstantiateModuleFromParent","sourceModule","trackModuleImport","Parent","module","sourcePath","m","chunkData","loadRuntimeChunk"],"mappings":"AAAA,oDAAoD,GAEpD,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,QAAOc,KAAK;QACpB;QACA,OAAOd;IACT;IAEA,OAAOS,yBAAyBC,WAAWb;AAC7C;AAEA;;;CAGC,GACD,aAAa;AACb,SAASkB,iCACPtB,EAAY,EACZuB,YAAuB;IAEvB,kCAAkC;IAClCC,kBAAkBD,cAAcvB,IAAItB,cAAc,CAACsB,GAAG;IAEtD,MAAMO,UAAS7B,cAAc,CAACsB,GAAG;IAEjC,IAAIO,SAAQ;QACV,IAAIA,QAAOc,KAAK,EAAE;YAChB,MAAMd,QAAOc,KAAK;QACpB;QAEA,OAAOd;IACT;IAEA,MAAMM,YAAYd,kBAAkBC,IAAIkB,WAAWO,MAAM,EAAEF,aAAavB,EAAE;IAE1E,yEAAyE;IACzEwB,kBAAkBD,cAAcvB,IAAIa;IAEpC,OAAOA;AACT;AAEAa,OAAOlB,OAAO,GAAG,CAACmB,aAA0B,CAAC;QAC3CC,GAAG,CAAC5B,KAAiBoB,8BAA8BO,YAAY3B;QAC/DR,GAAG,CAACqC,YAAyBC,iBAAiBH,YAAYE;IAC5D,CAAC","ignoreList":[0]}}, - {"offset": {"line": 1588, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/nodejs/dev/hmr-client.ts"],"sourcesContent":["/// \n/// \n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\ntype NodeJsHmrPayload = {\n resource: {\n path: string\n headers?: Record\n }\n issues: Issue[]\n type: 'partial'\n instruction: EcmascriptMergedUpdate\n}\n\n/**\n * Appends the module code with //# sourceURL and //# sourceMappingURL so\n * that Node.js can resolve stack frames from `eval`ed server HMR modules back to\n * their original source files. Mirrors the browser's _eval in dev-backend-dom.ts.\n */\nfunction inlineSourcemaps(entry: EcmascriptModuleEntry): string {\n const [chunkPath, moduleId] = entry.url.split('?', 2)\n const absolutePath = path.resolve(RUNTIME_ROOT, chunkPath)\n const fileHref = url.pathToFileURL(absolutePath).href\n const sourceURL = moduleId ? `${fileHref}?${moduleId}` : fileHref\n let code = entry.code + '\\n\\n//# sourceURL=' + sourceURL\n if (entry.map) {\n code +=\n '\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,' +\n Buffer.from(entry.map).toString('base64')\n }\n return code\n}\n\nlet serverHmrUpdateHandler: ((msg: NodeJsHmrPayload) => void) | null = null\n\nfunction initializeServerHmr(\n moduleFactories: ModuleFactories,\n devModuleCache: ModuleCache\n): void {\n if (serverHmrUpdateHandler != null) {\n throw new Error('[Server HMR] Server HMR client is already initialized')\n }\n\n // Register the update handler for the server runtime\n serverHmrUpdateHandler = (msg: NodeJsHmrPayload) => {\n handleNodejsUpdate(msg, moduleFactories, devModuleCache)\n }\n}\n\n/**\n * Emits an HMR message to the registered update handler.\n * Node uses a simpler listener pattern than the browser's websocket connection.\n *\n * Note: This is only called via __turbopack_server_hmr_apply__ which ensures\n * the handler is initialized first via ensureHmrClientInitialized().\n */\nfunction emitMessage(msg: { type: string; data: any }): boolean {\n if (serverHmrUpdateHandler == null) {\n console.warn(\n '[Server HMR] No update handler registered to receive message:',\n msg\n )\n return false\n }\n\n try {\n serverHmrUpdateHandler(msg.data)\n return true\n } catch (err) {\n console.error('[Server HMR] Listener error:', err)\n return false\n }\n}\n\n/**\n * Handles server message updates and applies them to the Node.js runtime.\n * Uses shared HMR update logic from hmr-runtime.ts.\n */\nfunction handleNodejsUpdate(\n msg: NodeJsHmrPayload,\n moduleFactories: ModuleFactories,\n devModuleCache: ModuleCache\n): void {\n if (msg.type !== 'partial') {\n return\n }\n\n const instruction = msg.instruction\n if (instruction.type !== 'EcmascriptMergedUpdate') {\n return\n }\n\n try {\n const { entries = {}, chunks = {} } = instruction\n\n const evalModuleEntry = (entry: EcmascriptModuleEntry) => {\n // eslint-disable-next-line no-eval\n return (0, eval)(entry.map ? inlineSourcemaps(entry) : entry.code)\n }\n\n const { added, modified } = computeChangedModules(\n entries,\n chunks,\n undefined // no chunkModulesMap for Node.js\n )\n\n // Use shared HMR update implementation\n applyEcmascriptMergedUpdateShared({\n added,\n modified,\n disposedModules: [], // no disposedModules for Node.js (no chunk management)\n evalModuleEntry,\n instantiateModule,\n applyModuleFactoryName: () => {}, // Node doesn't use this\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules: true,\n })\n } catch (e) {\n console.error('[Server HMR] Update failed, full reload needed:', e)\n throw e\n }\n}\n"],"names":["inlineSourcemaps","entry","chunkPath","moduleId","url","split","absolutePath","path","resolve","RUNTIME_ROOT","fileHref","pathToFileURL","href","sourceURL","code","map","Buffer","from","toString","serverHmrUpdateHandler","initializeServerHmr","moduleFactories","devModuleCache","Error","msg","handleNodejsUpdate","emitMessage","console","warn","data","err","error","type","instruction","entries","chunks","evalModuleEntry","eval","added","modified","computeChangedModules","undefined","applyEcmascriptMergedUpdateShared","disposedModules","instantiateModule","applyModuleFactoryName","autoAcceptRootModules","e"],"mappings":"AAAA,+DAA+D;AAC/D,4DAA4D;AAE5D,oDAAoD,GAYpD;;;;CAIC,GACD,SAASA,iBAAiBC,KAA4B;IACpD,MAAM,CAACC,WAAWC,SAAS,GAAGF,MAAMG,GAAG,CAACC,KAAK,CAAC,KAAK;IACnD,MAAMC,eAAeC,KAAKC,OAAO,CAACC,cAAcP;IAChD,MAAMQ,WAAWN,IAAIO,aAAa,CAACL,cAAcM,IAAI;IACrD,MAAMC,YAAYV,WAAW,GAAGO,SAAS,CAAC,EAAEP,UAAU,GAAGO;IACzD,IAAII,OAAOb,MAAMa,IAAI,GAAG,uBAAuBD;IAC/C,IAAIZ,MAAMc,GAAG,EAAE;QACbD,QACE,uEACAE,OAAOC,IAAI,CAAChB,MAAMc,GAAG,EAAEG,QAAQ,CAAC;IACpC;IACA,OAAOJ;AACT;AAEA,IAAIK,yBAAmE;AAEvE,SAASC,oBACPC,eAAgC,EAChCC,cAAsC;IAEtC,IAAIH,0BAA0B,MAAM;QAClC,MAAM,IAAII,MAAM;IAClB;IAEA,qDAAqD;IACrDJ,yBAAyB,CAACK;QACxBC,mBAAmBD,KAAKH,iBAAiBC;IAC3C;AACF;AAEA;;;;;;CAMC,GACD,SAASI,YAAYF,GAAgC;IACnD,IAAIL,0BAA0B,MAAM;QAClCQ,QAAQC,IAAI,CACV,iEACAJ;QAEF,OAAO;IACT;IAEA,IAAI;QACFL,uBAAuBK,IAAIK,IAAI;QAC/B,OAAO;IACT,EAAE,OAAOC,KAAK;QACZH,QAAQI,KAAK,CAAC,gCAAgCD;QAC9C,OAAO;IACT;AACF;AAEA;;;CAGC,GACD,SAASL,mBACPD,GAAqB,EACrBH,eAAgC,EAChCC,cAAsC;IAEtC,IAAIE,IAAIQ,IAAI,KAAK,WAAW;QAC1B;IACF;IAEA,MAAMC,cAAcT,IAAIS,WAAW;IACnC,IAAIA,YAAYD,IAAI,KAAK,0BAA0B;QACjD;IACF;IAEA,IAAI;QACF,MAAM,EAAEE,UAAU,CAAC,CAAC,EAAEC,SAAS,CAAC,CAAC,EAAE,GAAGF;QAEtC,MAAMG,kBAAkB,CAACnC;YACvB,mCAAmC;YACnC,OAAO,CAAC,GAAGoC,IAAI,EAAEpC,MAAMc,GAAG,GAAGf,iBAAiBC,SAASA,MAAMa,IAAI;QACnE;QAEA,MAAM,EAAEwB,KAAK,EAAEC,QAAQ,EAAE,GAAGC,sBAC1BN,SACAC,QACAM,UAAU,iCAAiC;;QAG7C,uCAAuC;QACvCC,kCAAkC;YAChCJ;YACAC;YACAI,iBAAiB,EAAE;YACnBP;YACAQ;YACAC,wBAAwB,KAAO;YAC/BxB;YACAC;YACAwB,uBAAuB;QACzB;IACF,EAAE,OAAOC,GAAG;QACVpB,QAAQI,KAAK,CAAC,mDAAmDgB;QACjE,MAAMA;IACR;AACF","ignoreList":[0]}}, - {"offset": {"line": 1670, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/nodejs/dev/dev-nodejs.ts"],"sourcesContent":["/// \n/// \n\n/**\n * Note: hmr-runtime.ts is embedded before this file, so its functions\n * (initializeServerHmr, emitMessage) are available in the same scope.\n */\n\n// Initialize server HMR client (connects to shared HMR infrastructure)\nlet hmrClientInitialized = false\nfunction ensureHmrClientInitialized() {\n if (hmrClientInitialized) return\n hmrClientInitialized = true\n\n // initializeServerHmr is from hmr-client.ts (embedded before this file)\n // moduleFactories is from dev-runtime.ts\n // devModuleCache is the HotModule-typed cache from dev-runtime.ts\n initializeServerHmr(moduleFactories, devModuleCache)\n}\n\nfunction __turbopack_server_hmr_apply__(update: NodeJsHmrPayload): boolean {\n try {\n ensureHmrClientInitialized()\n\n // emitMessage returns false if any listener failed to apply the update\n return emitMessage({\n type: 'turbopack-message',\n data: update,\n })\n } catch (err) {\n console.error('[Server HMR] Failed to apply update:', err)\n return false\n }\n}\n\n// Turbopack produces one server runtime per chunking context (e.g.\n// server/chunks/ssr/ for pages, server/chunks/ for route handlers), each with\n// its own moduleFactories. We keep a globalThis Map from __filename to handler\n// so updates are routed only to runtimes whose chunkPrefix matches the update's\n// chunk paths, skipping unnecessary eval() calls. Map.set() naturally replaces\n// stale entries when a runtime file is re-evaluated after require.cache eviction.\n\ntype HmrHandlerEntry = {\n handler: (update: NodeJsHmrPayload) => boolean\n /** Output directory relative to RUNTIME_ROOT, e.g. \"server/chunks/ssr\". */\n chunkPrefix: string\n}\n\nconst handlers: Map =\n globalThis.__turbopack_server_hmr_handlers__ ?? new Map()\n\nconst chunkPrefix = path.relative(RUNTIME_ROOT, path.dirname(__filename))\n\nif (handlers.size === 0) {\n // First registration in this generation: install the routing dispatcher.\n globalThis.__turbopack_server_hmr_apply__ = (\n update: NodeJsHmrPayload\n ): boolean => {\n const registry: Map =\n globalThis.__turbopack_server_hmr_handlers__ ?? new Map()\n const updateChunkPaths = Object.keys(update.instruction?.chunks ?? {})\n\n const toCall: HmrHandlerEntry[] = []\n if (updateChunkPaths.length === 0) {\n for (const entry of registry.values()) toCall.push(entry)\n } else {\n const seen = new Set()\n for (const chunkPath of updateChunkPaths) {\n const dir = path.dirname(chunkPath)\n for (const [key, entry] of registry) {\n if (dir === entry.chunkPrefix && !seen.has(key)) {\n seen.add(key)\n toCall.push(entry)\n }\n }\n }\n }\n\n let applied = false\n for (const { handler } of toCall) {\n try {\n if (handler(update)) applied = true\n } catch (err) {\n console.error('[Server HMR] Handler error:', err)\n }\n }\n\n return applied\n }\n}\n\nglobalThis.__turbopack_server_hmr_handlers__ = handlers\n\nhandlers.set(__filename, {\n handler: __turbopack_server_hmr_apply__,\n chunkPrefix,\n})\n"],"names":["hmrClientInitialized","ensureHmrClientInitialized","initializeServerHmr","moduleFactories","devModuleCache","__turbopack_server_hmr_apply__","update","emitMessage","type","data","err","console","error","handlers","globalThis","__turbopack_server_hmr_handlers__","Map","chunkPrefix","path","relative","RUNTIME_ROOT","dirname","__filename","size","registry","updateChunkPaths","Object","keys","instruction","chunks","toCall","length","entry","values","push","seen","Set","chunkPath","dir","key","has","add","applied","handler","set"],"mappings":"AAAA,+DAA+D;AAC/D,wCAAwC;AAExC;;;CAGC,GAED,uEAAuE;AACvE,IAAIA,uBAAuB;AAC3B,SAASC;IACP,IAAID,sBAAsB;IAC1BA,uBAAuB;IAEvB,wEAAwE;IACxE,yCAAyC;IACzC,kEAAkE;IAClEE,oBAAoBC,iBAAiBC;AACvC;AAEA,SAASC,+BAA+BC,MAAwB;IAC9D,IAAI;QACFL;QAEA,uEAAuE;QACvE,OAAOM,YAAY;YACjBC,MAAM;YACNC,MAAMH;QACR;IACF,EAAE,OAAOI,KAAK;QACZC,QAAQC,KAAK,CAAC,wCAAwCF;QACtD,OAAO;IACT;AACF;AAeA,MAAMG,WACJC,WAAWC,iCAAiC,IAAI,IAAIC;AAEtD,MAAMC,cAAcC,KAAKC,QAAQ,CAACC,cAAcF,KAAKG,OAAO,CAACC;AAE7D,IAAIT,SAASU,IAAI,KAAK,GAAG;IACvB,yEAAyE;IACzET,WAAWT,8BAA8B,GAAG,CAC1CC;QAEA,MAAMkB,WACJV,WAAWC,iCAAiC,IAAI,IAAIC;QACtD,MAAMS,mBAAmBC,OAAOC,IAAI,CAACrB,OAAOsB,WAAW,EAAEC,UAAU,CAAC;QAEpE,MAAMC,SAA4B,EAAE;QACpC,IAAIL,iBAAiBM,MAAM,KAAK,GAAG;YACjC,KAAK,MAAMC,SAASR,SAASS,MAAM,GAAIH,OAAOI,IAAI,CAACF;QACrD,OAAO;YACL,MAAMG,OAAO,IAAIC;YACjB,KAAK,MAAMC,aAAaZ,iBAAkB;gBACxC,MAAMa,MAAMpB,KAAKG,OAAO,CAACgB;gBACzB,KAAK,MAAM,CAACE,KAAKP,MAAM,IAAIR,SAAU;oBACnC,IAAIc,QAAQN,MAAMf,WAAW,IAAI,CAACkB,KAAKK,GAAG,CAACD,MAAM;wBAC/CJ,KAAKM,GAAG,CAACF;wBACTT,OAAOI,IAAI,CAACF;oBACd;gBACF;YACF;QACF;QAEA,IAAIU,UAAU;QACd,KAAK,MAAM,EAAEC,OAAO,EAAE,IAAIb,OAAQ;YAChC,IAAI;gBACF,IAAIa,QAAQrC,SAASoC,UAAU;YACjC,EAAE,OAAOhC,KAAK;gBACZC,QAAQC,KAAK,CAAC,+BAA+BF;YAC/C;QACF;QAEA,OAAOgC;IACT;AACF;AAEA5B,WAAWC,iCAAiC,GAAGF;AAE/CA,SAAS+B,GAAG,CAACtB,YAAY;IACvBqB,SAAStC;IACTY;AACF","ignoreList":[0]}}] -} \ No newline at end of file diff --git a/.next/dev/build/package.json b/.next/dev/build/package.json deleted file mode 100644 index 7156107..0000000 --- a/.next/dev/build/package.json +++ /dev/null @@ -1 +0,0 @@ -{"type": "commonjs"} \ No newline at end of file diff --git a/.next/dev/build/postcss.js b/.next/dev/build/postcss.js deleted file mode 100644 index 16e95c9..0000000 --- a/.next/dev/build/postcss.js +++ /dev/null @@ -1,6 +0,0 @@ -var R=require("./chunks/[turbopack]_runtime.js")("postcss.js") -R.c("chunks/[turbopack-node]_transforms_postcss_ts_06e.r3r._.js") -R.c("chunks/[root-of-the-server]__0ubbtyl._.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/dev/build/postcss.js.map b/.next/dev/build/postcss.js.map deleted file mode 100644 index c15d7ec..0000000 --- a/.next/dev/build/postcss.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/.next/dev/cache/.rscinfo b/.next/dev/cache/.rscinfo deleted file mode 100644 index 47df955..0000000 --- a/.next/dev/cache/.rscinfo +++ /dev/null @@ -1 +0,0 @@ -{"encryption.key":"HV9SQcPKgApkMU+g4yHRy0Kk4bI6p7veg84WeOiURbQ=","encryption.expire_at":1776932920754} \ No newline at end of file diff --git a/.next/dev/cache/next-devtools-config.json b/.next/dev/cache/next-devtools-config.json deleted file mode 100644 index 9e26dfe..0000000 --- a/.next/dev/cache/next-devtools-config.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/.next/dev/fallback-build-manifest.json b/.next/dev/fallback-build-manifest.json deleted file mode 100644 index 41883af..0000000 --- a/.next/dev/fallback-build-manifest.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "pages": { - "/_app": [ - "static/chunks/node_modules_next_dist_compiled_0o6l_m6._.js", - "static/chunks/node_modules_next_dist_shared_lib_0~pg0mt._.js", - "static/chunks/node_modules_next_dist_client_0pe1dg-._.js", - "static/chunks/node_modules_next_dist_0u_w_5s._.js", - "static/chunks/node_modules_next_app_0jt-zj..js", - "static/chunks/[next]_entry_page-loader_ts_0j~flwh._.js", - "static/chunks/node_modules_react-dom_0bruynb._.js", - "static/chunks/node_modules_0lx093h._.js", - "static/chunks/[root-of-the-server]__0c0okpg._.js", - "static/chunks/pages__app_07xvfw~._.js", - "static/chunks/turbopack-pages__app_0_wu8vy._.js" - ], - "/_error": [ - "static/chunks/node_modules_next_dist_compiled_0o6l_m6._.js", - "static/chunks/node_modules_next_dist_shared_lib_12bi_n7._.js", - "static/chunks/node_modules_next_dist_client_0pe1dg-._.js", - "static/chunks/node_modules_next_dist_0rt-2cr._.js", - "static/chunks/[next]_entry_page-loader_ts_0rqw6yo._.js", - "static/chunks/node_modules_react-dom_0bruynb._.js", - "static/chunks/node_modules_0lx093h._.js", - "static/chunks/[root-of-the-server]__01mw43t._.js", - "static/chunks/pages__error_07xvfw~._.js", - "static/chunks/turbopack-pages__error_016chbq._.js" - ] - }, - "devFiles": [], - "polyfillFiles": [], - "lowPriorityFiles": [ - "static/development/_buildManifest.js", - "static/development/_ssgManifest.js", - "static/development/_clientMiddlewareManifest.js" - ], - "rootMainFiles": [] -} \ No newline at end of file diff --git a/.next/dev/logs/next-development.log b/.next/dev/logs/next-development.log deleted file mode 100644 index c103c36..0000000 --- a/.next/dev/logs/next-development.log +++ /dev/null @@ -1,78 +0,0 @@ -{"timestamp":"00:00:01.425","source":"Server","level":"LOG","message":""} -{"timestamp":"00:00:03.004","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"00:00:03.184","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"00:06:22.835","source":"Server","level":"LOG","message":"✓ Compiled in 751ms"} -{"timestamp":"00:06:23.155","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"00:06:28.748","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"00:06:30.699","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"01:51:12.928","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"01:51:13.389","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"01:51:15.872","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"01:56:33.431","source":"Server","level":"LOG","message":" Reload env: .env"} -{"timestamp":"01:56:34.029","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"01:58:16.266","source":"Server","level":"LOG","message":" Reload env: .env"} -{"timestamp":"01:58:16.904","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"01:58:46.788","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:22:34.080","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"02:24:33.238","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"02:26:25.719","source":"Server","level":"LOG","message":"✓ Compiled in 293ms"} -{"timestamp":"02:26:26.345","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"02:32:43.980","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:46:29.696","source":"Server","level":"LOG","message":"✓ Compiled in 100ms"} -{"timestamp":"02:46:29.883","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:46:47.041","source":"Server","level":"LOG","message":"✓ Compiled in 99ms"} -{"timestamp":"02:46:47.262","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:47:06.184","source":"Server","level":"LOG","message":"✓ Compiled in 80ms"} -{"timestamp":"02:47:06.391","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:47:18.104","source":"Server","level":"LOG","message":"✓ Compiled in 72ms"} -{"timestamp":"02:47:18.317","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:47:37.387","source":"Server","level":"LOG","message":"✓ Compiled in 136ms"} -{"timestamp":"02:47:37.647","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:47:54.919","source":"Server","level":"LOG","message":"✓ Compiled in 98ms"} -{"timestamp":"02:47:55.137","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:48:05.331","source":"Server","level":"LOG","message":"✓ Compiled in 68ms"} -{"timestamp":"02:48:05.557","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:48:14.643","source":"Server","level":"LOG","message":"✓ Compiled in 81ms"} -{"timestamp":"02:48:14.833","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:48:21.232","source":"Server","level":"LOG","message":"✓ Compiled in 72ms"} -{"timestamp":"02:48:21.474","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:48:27.425","source":"Server","level":"LOG","message":"✓ Compiled in 64ms"} -{"timestamp":"02:48:27.612","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:48:43.941","source":"Server","level":"LOG","message":"✓ Compiled in 62ms"} -{"timestamp":"02:48:44.154","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:48:57.664","source":"Server","level":"LOG","message":"✓ Compiled in 58ms"} -{"timestamp":"02:48:57.857","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:49:03.427","source":"Server","level":"LOG","message":"✓ Compiled in 73ms"} -{"timestamp":"02:49:03.612","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:49:12.578","source":"Server","level":"LOG","message":"✓ Compiled in 74ms"} -{"timestamp":"02:49:12.897","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:49:18.089","source":"Server","level":"LOG","message":"✓ Compiled in 90ms"} -{"timestamp":"02:49:18.112","source":"Server","level":"ERROR","message":"⨯ ./src/app/app-versions/page.tsx:575:1\nUnexpected token. Did you mean `{'}'}` or `}`?\n 573 | \n 574 | )\n> 575 | }\n | ^\n 576 |\n\nParsing ecmascript source code failed\n\nImport traces:\n Client Component Browser:\n ./src/app/app-versions/page.tsx [Client Component Browser]\n ./src/app/app-versions/page.tsx [Server Component]\n\n Client Component SSR:\n ./src/app/app-versions/page.tsx [Client Component SSR]\n ./src/app/app-versions/page.tsx [Server Component]\n\n"} -{"timestamp":"02:49:18.431","source":"Browser","level":"ERROR","message":"./src/app/app-versions/page.tsx:575:1\nUnexpected token. Did you mean `{'}'}` or `}`?\n 573 | \n 574 | )\n> 575 | }\n | ^\n 576 |\n\nParsing ecmascript source code failed\n\nImport traces:\n Client Component Browser:\n ./src/app/app-versions/page.tsx [Client Component Browser]\n ./src/app/app-versions/page.tsx [Server Component]\n\n Client Component SSR:\n ./src/app/app-versions/page.tsx [Client Component SSR]\n ./src/app/app-versions/page.tsx [Server Component]"} -{"timestamp":"02:49:18.432","source":"Browser","level":"ERROR","message":"./src/app/app-versions/page.tsx:575:1\nUnexpected token. Did you mean `{'}'}` or `}`?\n 573 | \n 574 | )\n> 575 | }\n | ^\n 576 |\n\nParsing ecmascript source code failed\n\nImport traces:\n Client Component Browser:\n ./src/app/app-versions/page.tsx [Client Component Browser]\n ./src/app/app-versions/page.tsx [Server Component]\n\n Client Component SSR:\n ./src/app/app-versions/page.tsx [Client Component SSR]\n ./src/app/app-versions/page.tsx [Server Component]"} -{"timestamp":"02:49:18.435","source":"Server","level":"ERROR","message":"⨯ ./src/app/app-versions/page.tsx:575:1\nUnexpected token. Did you mean `{'}'}` or `}`?\n 573 | \n 574 | )\n> 575 | }\n | ^\n 576 |\n\nParsing ecmascript source code failed\n\nImport traces:\n Client Component Browser:\n ./src/app/app-versions/page.tsx [Client Component Browser]\n ./src/app/app-versions/page.tsx [Server Component]\n\n Client Component SSR:\n ./src/app/app-versions/page.tsx [Client Component SSR]\n ./src/app/app-versions/page.tsx [Server Component]\n\n"} -{"timestamp":"02:49:18.459","source":"Server","level":"ERROR","message":"⨯ ./src/app/app-versions/page.tsx:575:1\nUnexpected token. Did you mean `{'}'}` or `}`?\n 573 | \n 574 | )\n> 575 | }\n | ^\n 576 |\n\nParsing ecmascript source code failed\n\nImport traces:\n Client Component Browser:\n ./src/app/app-versions/page.tsx [Client Component Browser]\n ./src/app/app-versions/page.tsx [Server Component]\n\n Client Component SSR:\n ./src/app/app-versions/page.tsx [Client Component SSR]\n ./src/app/app-versions/page.tsx [Server Component]\n\n"} -{"timestamp":"02:49:18.475","source":"Server","level":"ERROR","message":"⨯ ./src/app/app-versions/page.tsx:575:1\nUnexpected token. Did you mean `{'}'}` or `}`?\n 573 | \n 574 | )\n> 575 | }\n | ^\n 576 |\n\nParsing ecmascript source code failed\n\nImport traces:\n Client Component Browser:\n ./src/app/app-versions/page.tsx [Client Component Browser]\n ./src/app/app-versions/page.tsx [Server Component]\n\n Client Component SSR:\n ./src/app/app-versions/page.tsx [Client Component SSR]\n ./src/app/app-versions/page.tsx [Server Component]\n\n"} -{"timestamp":"02:49:18.598","source":"Browser","level":"ERROR","message":"uncaughtError: Error: ./src/app/app-versions/page.tsx:575:1\nUnexpected token. Did you mean `{'}'}` or `}`?\n 573 | \n 574 | )\n> 575 | }\n | ^\n 576 |\n\nParsing ecmascript source code failed\n\nImport traces:\n Client Component Browser:\n ./src/app/app-versions/page.tsx [Client Component Browser]\n ./src/app/app-versions/page.tsx [Server Component]\n\n Client Component SSR:\n ./src/app/app-versions/page.tsx [Client Component SSR]\n ./src/app/app-versions/page.tsx [Server Component]\n\n"} -{"timestamp":"02:49:18.613","source":"Server","level":"ERROR","message":"[browser] \"\\u001b[31mUncaught Error: ./src/app/app-versions/page.tsx:575:1\\nUnexpected token. Did you mean `{'}'}` or `}`?\\n 573 | \\n 574 | )\\n> 575 | }\\n | ^\\n 576 |\\n\\nParsing ecmascript source code failed\\n\\nImport traces:\\n Client Component Browser:\\n ./src/app/app-versions/page.tsx [Client Component Browser]\\n ./src/app/app-versions/page.tsx [Server Component]\\n\\n Client Component SSR:\\n ./src/app/app-versions/page.tsx [Client Component SSR]\\n ./src/app/app-versions/page.tsx [Server Component]\\n\\n\\u001b[39m\\n\\u001b[31m at (Error: ./src/app/app-versions/page.tsx:575:1)\\n at (Error: (./src/app/app-versions/page.tsx:575:1)\\u001b[39m\""} -{"timestamp":"02:49:18.614","source":"Browser","level":"ERROR","message":"\u001b[31mUncaught Error: ./src/app/app-versions/page.tsx:575:1\nUnexpected token. Did you mean `{'}'}` or `}`?\n 573 | \n 574 | )\n> 575 | }\n | ^\n 576 |\n\nParsing ecmascript source code failed\n\nImport traces:\n Client Component Browser:\n ./src/app/app-versions/page.tsx [Client Component Browser]\n ./src/app/app-versions/page.tsx [Server Component]\n\n Client Component SSR:\n ./src/app/app-versions/page.tsx [Client Component SSR]\n ./src/app/app-versions/page.tsx [Server Component]\n\n\u001b[39m\n\u001b[31m at (Error: ./src/app/app-versions/page.tsx:575:1)\n at (Error: (./src/app/app-versions/page.tsx:575:1)\u001b[39m"} -{"timestamp":"02:49:19.456","source":"Browser","level":"ERROR","message":"./src/app/app-versions/page.tsx:575:1\nUnexpected token. Did you mean `{'}'}` or `}`?\n 573 | \n 574 | )\n> 575 | }\n | ^\n 576 |\n\nParsing ecmascript source code failed\n\nImport traces:\n Client Component Browser:\n ./src/app/app-versions/page.tsx [Client Component Browser]\n ./src/app/app-versions/page.tsx [Server Component]\n\n Client Component SSR:\n ./src/app/app-versions/page.tsx [Client Component SSR]\n ./src/app/app-versions/page.tsx [Server Component]"} -{"timestamp":"02:49:19.456","source":"Browser","level":"ERROR","message":"./src/app/app-versions/page.tsx:575:1\nUnexpected token. Did you mean `{'}'}` or `}`?\n 573 | \n 574 | )\n> 575 | }\n | ^\n 576 |\n\nParsing ecmascript source code failed\n\nImport traces:\n Client Component Browser:\n ./src/app/app-versions/page.tsx [Client Component Browser]\n ./src/app/app-versions/page.tsx [Server Component]\n\n Client Component SSR:\n ./src/app/app-versions/page.tsx [Client Component SSR]\n ./src/app/app-versions/page.tsx [Server Component]"} -{"timestamp":"02:49:27.394","source":"Server","level":"LOG","message":"✓ Compiled in 111ms"} -{"timestamp":"02:49:27.793","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"02:49:27.942","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"02:53:27.533","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"02:58:25.018","source":"Server","level":"LOG","message":"✓ Compiled in 256ms"} -{"timestamp":"02:58:25.550","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"02:58:25.803","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"03:01:14.680","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"03:01:16.619","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"03:01:17.958","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"03:01:22.532","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"03:01:24.918","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"03:01:26.983","source":"Browser","level":"INFO","message":"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold"} -{"timestamp":"03:03:07.012","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"03:03:16.147","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"03:03:19.121","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"03:03:19.178","source":"Server","level":"LOG","message":"Migration already applied or not needed"} -{"timestamp":"03:03:19.270","source":"Server","level":"LOG","message":"Migration already applied or not needed"} diff --git a/.next/dev/package.json b/.next/dev/package.json deleted file mode 100644 index c9a4422..0000000 --- a/.next/dev/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "commonjs" -} \ No newline at end of file diff --git a/.next/dev/prerender-manifest.json b/.next/dev/prerender-manifest.json deleted file mode 100644 index b83e1b4..0000000 --- a/.next/dev/prerender-manifest.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 4, - "routes": {}, - "dynamicRoutes": {}, - "notFoundRoutes": [], - "preview": { - "previewModeId": "fe61c2dd5a30fb2a5230e827694c71f5", - "previewModeSigningKey": "490f7269a31770e47550ec91c2476e6a3c76f293ef213e3776f82b577afcfa86", - "previewModeEncryptionKey": "457f8f228d581668b6d69cfa6157f75c153bff7d7f33c7e5ba96b6056d88d0a9" - } -} \ No newline at end of file diff --git a/.next/dev/routes-manifest.json b/.next/dev/routes-manifest.json deleted file mode 100644 index 442224a..0000000 --- a/.next/dev/routes-manifest.json +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"caseSensitive":false,"basePath":"","rewrites":{"beforeFiles":[],"afterFiles":[],"fallback":[]},"redirects":[{"source":"/:path+/","destination":"/:path+","permanent":true,"internal":true,"priority":true,"regex":"^(?:\\/((?:[^\\/]+?)(?:\\/(?:[^\\/]+?))*))\\/$"}],"headers":[],"onMatchHeaders":[]} \ No newline at end of file diff --git a/.next/dev/server/app-paths-manifest.json b/.next/dev/server/app-paths-manifest.json deleted file mode 100644 index 09c526a..0000000 --- a/.next/dev/server/app-paths-manifest.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "/_not-found/page": "app/_not-found/page.js", - "/api/app-versions/route": "app/api/app-versions/route.js", - "/api/dashboard/route": "app/api/dashboard/route.js", - "/api/devices/route": "app/api/devices/route.js", - "/api/material-categories/route": "app/api/material-categories/route.js", - "/api/material-types/route": "app/api/material-types/route.js", - "/api/material-versions/route": "app/api/material-versions/route.js", - "/api/materials/route": "app/api/materials/route.js", - "/api/models/checklist/route": "app/api/models/checklist/route.js", - "/api/models/route": "app/api/models/route.js", - "/api/repair/route": "app/api/repair/route.js", - "/api/scrap/route": "app/api/scrap/route.js", - "/api/update-logs/route": "app/api/update-logs/route.js", - "/api/upload/route": "app/api/upload/route.js", - "/app-versions/page": "app/app-versions/page.js", - "/devices/page": "app/devices/page.js", - "/help/page": "app/help/page.js", - "/materials/categories/page": "app/materials/categories/page.js", - "/materials/manage/page": "app/materials/manage/page.js", - "/materials/page": "app/materials/page.js", - "/models/page": "app/models/page.js", - "/page": "app/page.js", - "/python-devices/page": "app/python-devices/page.js", - "/repair/page": "app/repair/page.js", - "/scrap/page": "app/scrap/page.js" -} \ No newline at end of file diff --git a/.next/dev/server/app/config-files/page.js b/.next/dev/server/app/config-files/page.js deleted file mode 100644 index 4f3de25..0000000 --- a/.next/dev/server/app/config-files/page.js +++ /dev/null @@ -1,15 +0,0 @@ -var R=require("../../chunks/ssr/[turbopack]_runtime.js")("server/app/config-files/page.js") -R.c("server/chunks/ssr/node_modules_next_dist_esm_0i-0hxq._.js") -R.c("server/chunks/ssr/[root-of-the-server]__10r9tc9._.js") -R.c("server/chunks/ssr/node_modules_next_dist_esm_00xse_0._.js") -R.c("server/chunks/ssr/node_modules_next_dist_compiled_07ho8ku._.js") -R.c("server/chunks/ssr/node_modules_next_dist_server_route-modules_app-page_0f6k0sl._.js") -R.c("server/chunks/ssr/[externals]__0n13xf4._.js") -R.c("server/chunks/ssr/_04snudh._.js") -R.c("server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js") -R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js") -R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js") -R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js") -R.c("server/chunks/ssr/_next-internal_server_app_config-files_page_actions_0of41c3.js") -R.m("[project]/node_modules/next/dist/esm/build/templates/app-page.js?page=/config-files/page { MODULE_0 => \"[project]/src/app/layout.tsx [app-rsc] (ecmascript, Next.js Server Component)\", MODULE_1 => \"[project]/node_modules/next/dist/client/components/builtin/not-found.js [app-rsc] (ecmascript, Next.js Server Component)\", MODULE_2 => \"[project]/node_modules/next/dist/client/components/builtin/forbidden.js [app-rsc] (ecmascript, Next.js Server Component)\", MODULE_3 => \"[project]/node_modules/next/dist/client/components/builtin/unauthorized.js [app-rsc] (ecmascript, Next.js Server Component)\", MODULE_4 => \"[project]/node_modules/next/dist/client/components/builtin/global-error.js [app-rsc] (ecmascript, Next.js Server Component)\", MODULE_5 => \"[project]/src/app/config-files/page.tsx [app-rsc] (ecmascript, Next.js Server Component)\" } [app-rsc] (ecmascript)") -module.exports=R.m("[project]/node_modules/next/dist/esm/build/templates/app-page.js?page=/config-files/page { MODULE_0 => \"[project]/src/app/layout.tsx [app-rsc] (ecmascript, Next.js Server Component)\", MODULE_1 => \"[project]/node_modules/next/dist/client/components/builtin/not-found.js [app-rsc] (ecmascript, Next.js Server Component)\", MODULE_2 => \"[project]/node_modules/next/dist/client/components/builtin/forbidden.js [app-rsc] (ecmascript, Next.js Server Component)\", MODULE_3 => \"[project]/node_modules/next/dist/client/components/builtin/unauthorized.js [app-rsc] (ecmascript, Next.js Server Component)\", MODULE_4 => \"[project]/node_modules/next/dist/client/components/builtin/global-error.js [app-rsc] (ecmascript, Next.js Server Component)\", MODULE_5 => \"[project]/src/app/config-files/page.tsx [app-rsc] (ecmascript, Next.js Server Component)\" } [app-rsc] (ecmascript)").exports diff --git a/.next/dev/server/app/config-files/page.js.map b/.next/dev/server/app/config-files/page.js.map deleted file mode 100644 index c15d7ec..0000000 --- a/.next/dev/server/app/config-files/page.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/.next/dev/server/app/config-files/page/app-paths-manifest.json b/.next/dev/server/app/config-files/page/app-paths-manifest.json deleted file mode 100644 index a9363bd..0000000 --- a/.next/dev/server/app/config-files/page/app-paths-manifest.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "/config-files/page": "app/config-files/page.js" -} \ No newline at end of file diff --git a/.next/dev/server/app/config-files/page/build-manifest.json b/.next/dev/server/app/config-files/page/build-manifest.json deleted file mode 100644 index c92f10b..0000000 --- a/.next/dev/server/app/config-files/page/build-manifest.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "devFiles": [], - "ampDevFiles": [], - "polyfillFiles": [ - "static/chunks/node_modules_next_dist_build_polyfills_polyfill-nomodule.js" - ], - "lowPriorityFiles": [], - "rootMainFiles": [ - "static/chunks/[turbopack]_browser_dev_hmr-client_hmr-client_ts_10z625~._.js", - "static/chunks/node_modules_next_dist_compiled_next-devtools_index_0553esy.js", - "static/chunks/node_modules_next_dist_compiled_react-dom_058-ah~._.js", - "static/chunks/node_modules_next_dist_compiled_react-server-dom-turbopack_0p3wegg._.js", - "static/chunks/node_modules_next_dist_compiled_0rpq4pf._.js", - "static/chunks/node_modules_next_dist_client_0fhqo1d._.js", - "static/chunks/node_modules_next_dist_115brz8._.js", - "static/chunks/node_modules_@swc_helpers_cjs_0-4ujiy._.js", - "static/chunks/_0rqeker._.js", - "static/chunks/turbopack-_0p44nws._.js" - ], - "pages": {}, - "ampFirstPages": [] -} \ No newline at end of file diff --git a/.next/dev/server/app/config-files/page/next-font-manifest.json b/.next/dev/server/app/config-files/page/next-font-manifest.json deleted file mode 100644 index e0cc400..0000000 --- a/.next/dev/server/app/config-files/page/next-font-manifest.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pages": {}, - "app": {}, - "appUsingSizeAdjust": false, - "pagesUsingSizeAdjust": false -} \ No newline at end of file diff --git a/.next/dev/server/app/config-files/page/react-loadable-manifest.json b/.next/dev/server/app/config-files/page/react-loadable-manifest.json deleted file mode 100644 index 9e26dfe..0000000 --- a/.next/dev/server/app/config-files/page/react-loadable-manifest.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/.next/dev/server/app/config-files/page/server-reference-manifest.json b/.next/dev/server/app/config-files/page/server-reference-manifest.json deleted file mode 100644 index 27a92af..0000000 --- a/.next/dev/server/app/config-files/page/server-reference-manifest.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "node": {}, - "edge": {} -} \ No newline at end of file diff --git a/.next/dev/server/app/config-files/page_client-reference-manifest.js b/.next/dev/server/app/config-files/page_client-reference-manifest.js deleted file mode 100644 index 2460d18..0000000 --- a/.next/dev/server/app/config-files/page_client-reference-manifest.js +++ /dev/null @@ -1,3 +0,0 @@ -globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {}; -globalThis.__RSC_MANIFEST["/config-files/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js ":{"id":"[project]/node_modules/next/dist/client/components/layout-router.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":"[project]/node_modules/next/dist/client/components/layout-router.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js ":{"id":"[project]/node_modules/next/dist/client/components/render-from-template-context.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":"[project]/node_modules/next/dist/client/components/render-from-template-context.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js ":{"id":"[project]/node_modules/next/dist/client/components/client-page.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":"[project]/node_modules/next/dist/client/components/client-page.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js ":{"id":"[project]/node_modules/next/dist/client/components/client-segment.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":"[project]/node_modules/next/dist/client/components/client-segment.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js ":{"id":"[project]/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":"[project]/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js ":{"id":"[project]/node_modules/next/dist/lib/framework/boundary-components.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":"[project]/node_modules/next/dist/lib/framework/boundary-components.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js ":{"id":"[project]/node_modules/next/dist/lib/metadata/generate/icon-mark.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":"[project]/node_modules/next/dist/lib/metadata/generate/icon-mark.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/next-devtools/userspace/app/segment-explorer-node.js ":{"id":"[project]/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/esm/next-devtools/userspace/app/segment-explorer-node.js":{"id":"[project]/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/src/app/components/sidebar.tsx ":{"id":"[project]/src/app/components/sidebar.tsx [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/src/app/components/sidebar.tsx":{"id":"[project]/src/app/components/sidebar.tsx [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/src/app/components/header.tsx ":{"id":"[project]/src/app/components/header.tsx [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/src/app/components/header.tsx":{"id":"[project]/src/app/components/header.tsx [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js ":{"id":"[project]/node_modules/next/dist/client/components/builtin/global-error.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js","/_next/static/chunks/node_modules_next_dist_client_components_builtin_global-error_0f63mjb.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":"[project]/node_modules/next/dist/client/components/builtin/global-error.js [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js","/_next/static/chunks/node_modules_next_dist_client_components_builtin_global-error_0f63mjb.js"],"async":false},"[project]/src/app/config-files/page.tsx ":{"id":"[project]/src/app/config-files/page.tsx [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js","/_next/static/chunks/src_0jzt67w._.js","/_next/static/chunks/node_modules_lucide-react_dist_esm_icons_0mf-lb-._.js","/_next/static/chunks/src_app_config-files_page_tsx_0f63mjb._.js"],"async":false},"[project]/src/app/config-files/page.tsx":{"id":"[project]/src/app/config-files/page.tsx [app-client] (ecmascript)","name":"*","chunks":["/_next/static/chunks/node_modules_0ulvbg7._.js","/_next/static/chunks/src_app_components_0_lrvu~._.js","/_next/static/chunks/src_app_layout_tsx_004glpo._.js","/_next/static/chunks/src_0jzt67w._.js","/_next/static/chunks/node_modules_lucide-react_dist_esm_icons_0mf-lb-._.js","/_next/static/chunks/src_app_config-files_page_tsx_0f63mjb._.js"],"async":false}},"ssrModuleMapping":{"[project]/node_modules/next/dist/client/components/layout-router.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/client/components/layout-router.js [app-ssr] (ecmascript)","name":"*","chunks":["server/chunks/ssr/node_modules_next_dist_client_0.p0.cy._.js","server/chunks/ssr/node_modules_next_dist_esm_0cqcg00._.js","server/chunks/ssr/node_modules_next_dist_11b4uhw._.js","server/chunks/ssr/node_modules_next_navigation_08-xh1..js","server/chunks/ssr/node_modules_0nciuk8._.js","server/chunks/ssr/[root-of-the-server]__0dmu~vd._.js"],"async":false}},"[project]/node_modules/next/dist/client/components/render-from-template-context.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js [app-ssr] (ecmascript)","name":"*","chunks":["server/chunks/ssr/node_modules_next_dist_client_0.p0.cy._.js","server/chunks/ssr/node_modules_next_dist_esm_0cqcg00._.js","server/chunks/ssr/node_modules_next_dist_11b4uhw._.js","server/chunks/ssr/node_modules_next_navigation_08-xh1..js","server/chunks/ssr/node_modules_0nciuk8._.js","server/chunks/ssr/[root-of-the-server]__0dmu~vd._.js"],"async":false}},"[project]/node_modules/next/dist/client/components/client-page.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/client/components/client-page.js [app-ssr] (ecmascript)","name":"*","chunks":["server/chunks/ssr/node_modules_next_dist_client_0.p0.cy._.js","server/chunks/ssr/node_modules_next_dist_esm_0cqcg00._.js","server/chunks/ssr/node_modules_next_dist_11b4uhw._.js","server/chunks/ssr/node_modules_next_navigation_08-xh1..js","server/chunks/ssr/node_modules_0nciuk8._.js","server/chunks/ssr/[root-of-the-server]__0dmu~vd._.js"],"async":false}},"[project]/node_modules/next/dist/client/components/client-segment.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/client/components/client-segment.js [app-ssr] (ecmascript)","name":"*","chunks":["server/chunks/ssr/node_modules_next_dist_client_0.p0.cy._.js","server/chunks/ssr/node_modules_next_dist_esm_0cqcg00._.js","server/chunks/ssr/node_modules_next_dist_11b4uhw._.js","server/chunks/ssr/node_modules_next_navigation_08-xh1..js","server/chunks/ssr/node_modules_0nciuk8._.js","server/chunks/ssr/[root-of-the-server]__0dmu~vd._.js"],"async":false}},"[project]/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js [app-ssr] (ecmascript)","name":"*","chunks":["server/chunks/ssr/node_modules_next_dist_client_0.p0.cy._.js","server/chunks/ssr/node_modules_next_dist_esm_0cqcg00._.js","server/chunks/ssr/node_modules_next_dist_11b4uhw._.js","server/chunks/ssr/node_modules_next_navigation_08-xh1..js","server/chunks/ssr/node_modules_0nciuk8._.js","server/chunks/ssr/[root-of-the-server]__0dmu~vd._.js"],"async":false}},"[project]/node_modules/next/dist/lib/framework/boundary-components.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js [app-ssr] (ecmascript)","name":"*","chunks":["server/chunks/ssr/node_modules_next_dist_client_0.p0.cy._.js","server/chunks/ssr/node_modules_next_dist_esm_0cqcg00._.js","server/chunks/ssr/node_modules_next_dist_11b4uhw._.js","server/chunks/ssr/node_modules_next_navigation_08-xh1..js","server/chunks/ssr/node_modules_0nciuk8._.js","server/chunks/ssr/[root-of-the-server]__0dmu~vd._.js"],"async":false}},"[project]/node_modules/next/dist/lib/metadata/generate/icon-mark.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js [app-ssr] (ecmascript)","name":"*","chunks":["server/chunks/ssr/node_modules_next_dist_client_0.p0.cy._.js","server/chunks/ssr/node_modules_next_dist_esm_0cqcg00._.js","server/chunks/ssr/node_modules_next_dist_11b4uhw._.js","server/chunks/ssr/node_modules_next_navigation_08-xh1..js","server/chunks/ssr/node_modules_0nciuk8._.js","server/chunks/ssr/[root-of-the-server]__0dmu~vd._.js"],"async":false}},"[project]/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/next-devtools/userspace/app/segment-explorer-node.js [app-ssr] (ecmascript)","name":"*","chunks":["server/chunks/ssr/node_modules_next_dist_client_0.p0.cy._.js","server/chunks/ssr/node_modules_next_dist_esm_0cqcg00._.js","server/chunks/ssr/node_modules_next_dist_11b4uhw._.js","server/chunks/ssr/node_modules_next_navigation_08-xh1..js","server/chunks/ssr/node_modules_0nciuk8._.js","server/chunks/ssr/[root-of-the-server]__0dmu~vd._.js"],"async":false}},"[project]/src/app/components/sidebar.tsx [app-client] (ecmascript)":{"*":{"id":"[project]/src/app/components/sidebar.tsx [app-ssr] (ecmascript)","name":"*","chunks":["server/chunks/ssr/node_modules_next_dist_client_0.p0.cy._.js","server/chunks/ssr/node_modules_next_dist_esm_0cqcg00._.js","server/chunks/ssr/node_modules_next_dist_11b4uhw._.js","server/chunks/ssr/node_modules_next_navigation_08-xh1..js","server/chunks/ssr/node_modules_0nciuk8._.js","server/chunks/ssr/[root-of-the-server]__0dmu~vd._.js"],"async":false}},"[project]/src/app/components/header.tsx [app-client] (ecmascript)":{"*":{"id":"[project]/src/app/components/header.tsx [app-ssr] (ecmascript)","name":"*","chunks":["server/chunks/ssr/node_modules_next_dist_client_0.p0.cy._.js","server/chunks/ssr/node_modules_next_dist_esm_0cqcg00._.js","server/chunks/ssr/node_modules_next_dist_11b4uhw._.js","server/chunks/ssr/node_modules_next_navigation_08-xh1..js","server/chunks/ssr/node_modules_0nciuk8._.js","server/chunks/ssr/[root-of-the-server]__0dmu~vd._.js"],"async":false}},"[project]/node_modules/next/dist/client/components/builtin/global-error.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/client/components/builtin/global-error.js [app-ssr] (ecmascript)","name":"*","chunks":["server/chunks/ssr/node_modules_next_dist_client_0.p0.cy._.js","server/chunks/ssr/node_modules_next_dist_esm_0cqcg00._.js","server/chunks/ssr/node_modules_next_dist_11b4uhw._.js","server/chunks/ssr/node_modules_next_navigation_08-xh1..js","server/chunks/ssr/node_modules_0nciuk8._.js","server/chunks/ssr/[root-of-the-server]__0dmu~vd._.js","server/chunks/ssr/node_modules_09w7yel._.js"],"async":false}},"[project]/src/app/config-files/page.tsx [app-client] (ecmascript)":{"*":{"id":"[project]/src/app/config-files/page.tsx [app-ssr] (ecmascript)","name":"*","chunks":["server/chunks/ssr/node_modules_next_dist_client_0.p0.cy._.js","server/chunks/ssr/node_modules_next_dist_esm_0cqcg00._.js","server/chunks/ssr/node_modules_next_dist_11b4uhw._.js","server/chunks/ssr/node_modules_next_navigation_08-xh1..js","server/chunks/ssr/node_modules_0nciuk8._.js","server/chunks/ssr/[root-of-the-server]__0dmu~vd._.js","server/chunks/ssr/src_0yh~yz.._.js","server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_05vmnrh._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"[project]/node_modules/next/dist/client/components/layout-router.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/client/components/layout-router.js [app-rsc] (client reference proxy)","name":"*","chunks":[],"async":false}},"[project]/node_modules/next/dist/client/components/render-from-template-context.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js [app-rsc] (client reference proxy)","name":"*","chunks":[],"async":false}},"[project]/node_modules/next/dist/client/components/client-page.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/client/components/client-page.js [app-rsc] (client reference proxy)","name":"*","chunks":[],"async":false}},"[project]/node_modules/next/dist/client/components/client-segment.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/client/components/client-segment.js [app-rsc] (client reference proxy)","name":"*","chunks":[],"async":false}},"[project]/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js [app-rsc] (client reference proxy)","name":"*","chunks":[],"async":false}},"[project]/node_modules/next/dist/lib/framework/boundary-components.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js [app-rsc] (client reference proxy)","name":"*","chunks":[],"async":false}},"[project]/node_modules/next/dist/lib/metadata/generate/icon-mark.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js [app-rsc] (client reference proxy)","name":"*","chunks":[],"async":false}},"[project]/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/esm/next-devtools/userspace/app/segment-explorer-node.js [app-rsc] (client reference proxy)","name":"*","chunks":[],"async":false}},"[project]/src/app/components/sidebar.tsx [app-client] (ecmascript)":{"*":{"id":"[project]/src/app/components/sidebar.tsx [app-rsc] (client reference proxy)","name":"*","chunks":[],"async":false}},"[project]/src/app/components/header.tsx [app-client] (ecmascript)":{"*":{"id":"[project]/src/app/components/header.tsx [app-rsc] (client reference proxy)","name":"*","chunks":[],"async":false}},"[project]/node_modules/next/dist/client/components/builtin/global-error.js [app-client] (ecmascript)":{"*":{"id":"[project]/node_modules/next/dist/client/components/builtin/global-error.js [app-rsc] (client reference proxy)","name":"*","chunks":[],"async":false}},"[project]/src/app/config-files/page.tsx [app-client] (ecmascript)":{"*":{"id":"[project]/src/app/config-files/page.tsx [app-rsc] (client reference proxy)","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/src/app/layout":[{"path":"static/chunks/src_styles_index_0t07~u2.css","inlined":false}],"[project]/node_modules/next/dist/client/components/builtin/global-error":[{"path":"static/chunks/src_styles_index_0t07~u2.css","inlined":false}],"[project]/src/app/config-files/page":[{"path":"static/chunks/src_styles_index_0t07~u2.css","inlined":false}]},"entryJSFiles":{"[project]/src/app/layout":["static/chunks/node_modules_0ulvbg7._.js","static/chunks/src_app_components_0_lrvu~._.js","static/chunks/src_app_layout_tsx_004glpo._.js"],"[project]/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/node_modules_0ulvbg7._.js","static/chunks/src_app_components_0_lrvu~._.js","static/chunks/src_app_layout_tsx_004glpo._.js","static/chunks/node_modules_next_dist_client_components_builtin_global-error_0f63mjb.js"],"[project]/src/app/config-files/page":["static/chunks/node_modules_0ulvbg7._.js","static/chunks/src_app_components_0_lrvu~._.js","static/chunks/src_app_layout_tsx_004glpo._.js","static/chunks/src_0jzt67w._.js","static/chunks/node_modules_lucide-react_dist_esm_icons_0mf-lb-._.js","static/chunks/src_app_config-files_page_tsx_0f63mjb._.js"]}}; - diff --git a/.next/dev/server/chunks/ssr/[turbopack]_runtime.js b/.next/dev/server/chunks/ssr/[turbopack]_runtime.js deleted file mode 100644 index b463ed7..0000000 --- a/.next/dev/server/chunks/ssr/[turbopack]_runtime.js +++ /dev/null @@ -1,1752 +0,0 @@ -const RUNTIME_PUBLIC_PATH = "server/chunks/ssr/[turbopack]_runtime.js"; -const RELATIVE_ROOT_PATH = "../.."; -const ASSET_PREFIX = "/_next/"; -const WORKER_FORWARDED_GLOBALS = ["NEXT_DEPLOYMENT_ID","NEXT_CLIENT_ASSET_SUFFIX"]; -// Apply forwarded globals from workerData if running in a worker thread -if (typeof require !== 'undefined') { - try { - const { workerData } = require('worker_threads'); - if (workerData?.__turbopack_globals__) { - Object.assign(globalThis, workerData.__turbopack_globals__); - // Remove internal data so it's not visible to user code - delete workerData.__turbopack_globals__; - } - } catch (_) { - // Not in a worker thread context, ignore - } -} -/** - * 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); -} -/// -/// -/// -/// -/** - * Shared HMR (Hot Module Replacement) implementation. - * - * This file contains the complete HMR implementation that's shared between - * browser and Node.js runtimes. It manages module hot state, dependency - * tracking, the module.hot API, and the full HMR update flow. - */ /** - * The development module cache shared across the runtime. - * Browser runtime declares this directly. - * Node.js runtime assigns globalThis.__turbopack_module_cache__ to this. - */ let devModuleCache; -/** - * Module IDs that are instantiated as part of the runtime of a chunk. - */ let runtimeModules; -/** - * Maps module IDs to persisted data between executions of their hot module - * implementation (`hot.data`). - */ const moduleHotData = new Map(); -/** - * Maps module instances to their hot module state. - * Uses WeakMap so it works with both HotModule and ModuleWithDirection. - */ const moduleHotState = new WeakMap(); -/** - * Modules that call `module.hot.invalidate()` (while being updated). - */ const queuedInvalidatedModules = new Set(); -class UpdateApplyError extends Error { - name = 'UpdateApplyError'; - dependencyChain; - constructor(message, dependencyChain){ - super(message); - this.dependencyChain = dependencyChain; - } -} -/** - * Records parent-child relationship when a module imports another. - * Should be called during module instantiation. - */ // eslint-disable-next-line @typescript-eslint/no-unused-vars -function trackModuleImport(parentModule, childModuleId, childModule) { - // Record that parent imports child - if (parentModule.children.indexOf(childModuleId) === -1) { - parentModule.children.push(childModuleId); - } - // Record that child is imported by parent - if (childModule && childModule.parents.indexOf(parentModule.id) === -1) { - childModule.parents.push(parentModule.id); - } -} -function formatDependencyChain(dependencyChain) { - return `Dependency chain: ${dependencyChain.join(' -> ')}`; -} -/** - * Walks the dependency tree to find all modules affected by a change. - * Returns information about whether the update can be accepted and which - * modules need to be invalidated. - * - * @param moduleId - The module that changed - * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept(). - * This is used for server-side HMR where pages auto-accept at the top level. - */ function getAffectedModuleEffects(moduleId, autoAcceptRootModules) { - const outdatedModules = new Set(); - const outdatedDependencies = new Map(); - const queue = [ - { - moduleId, - dependencyChain: [] - } - ]; - let nextItem; - while(nextItem = queue.shift()){ - const { moduleId, dependencyChain } = nextItem; - if (moduleId != null) { - if (outdatedModules.has(moduleId)) { - continue; - } - outdatedModules.add(moduleId); - } - // We've arrived at the runtime of the chunk, which means that nothing - // else above can accept this update. - if (moduleId === undefined) { - if (autoAcceptRootModules) { - return { - type: 'accepted', - moduleId, - outdatedModules, - outdatedDependencies - }; - } - return { - type: 'unaccepted', - dependencyChain - }; - } - const module = devModuleCache[moduleId]; - const hotState = moduleHotState.get(module); - if (// The module is not in the cache. Since this is a "modified" update, - // it means that the module was never instantiated before. - !module || hotState.selfAccepted && !hotState.selfInvalidated) { - continue; - } - if (hotState.selfDeclined) { - return { - type: 'self-declined', - dependencyChain, - moduleId - }; - } - if (runtimeModules.has(moduleId)) { - if (autoAcceptRootModules) { - continue; - } - queue.push({ - moduleId: undefined, - dependencyChain: [ - ...dependencyChain, - moduleId - ] - }); - continue; - } - for (const parentId of module.parents){ - const parent = devModuleCache[parentId]; - if (!parent) { - continue; - } - const parentHotState = moduleHotState.get(parent); - // Check if parent declined this dependency - if (parentHotState?.declinedDependencies[moduleId]) { - return { - type: 'declined', - dependencyChain: [ - ...dependencyChain, - moduleId - ], - moduleId, - parentId - }; - } - // Skip if parent is already outdated - if (outdatedModules.has(parentId)) { - continue; - } - // Check if parent accepts this dependency - if (parentHotState?.acceptedDependencies[moduleId]) { - if (!outdatedDependencies.has(parentId)) { - outdatedDependencies.set(parentId, new Set()); - } - outdatedDependencies.get(parentId).add(moduleId); - continue; - } - // Neither accepted nor declined — propagate to parent - queue.push({ - moduleId: parentId, - dependencyChain: [ - ...dependencyChain, - moduleId - ] - }); - } - // If no parents and we're at a root module, auto-accept if configured - if (module.parents.length === 0 && autoAcceptRootModules) { - continue; - } - } - return { - type: 'accepted', - moduleId, - outdatedModules, - outdatedDependencies - }; -} -/** - * Merges source dependency map into target dependency map. - */ function mergeDependencies(target, source) { - for (const [parentId, deps] of source){ - const existing = target.get(parentId); - if (existing) { - for (const dep of deps){ - existing.add(dep); - } - } else { - target.set(parentId, new Set(deps)); - } - } -} -/** - * Computes all modules that need to be invalidated based on which modules changed. - * - * @param invalidated - The modules that have been invalidated - * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept() - */ function computedInvalidatedModules(invalidated, autoAcceptRootModules) { - const outdatedModules = new Set(); - const outdatedDependencies = new Map(); - for (const moduleId of invalidated){ - const effect = getAffectedModuleEffects(moduleId, autoAcceptRootModules); - switch(effect.type){ - case 'unaccepted': - throw new UpdateApplyError(`cannot apply update: unaccepted module. ${formatDependencyChain(effect.dependencyChain)}.`, effect.dependencyChain); - case 'self-declined': - throw new UpdateApplyError(`cannot apply update: self-declined module. ${formatDependencyChain(effect.dependencyChain)}.`, effect.dependencyChain); - case 'declined': - throw new UpdateApplyError(`cannot apply update: declined dependency. ${formatDependencyChain(effect.dependencyChain)}. Declined by ${effect.parentId}.`, effect.dependencyChain); - case 'accepted': - for (const outdatedModuleId of effect.outdatedModules){ - outdatedModules.add(outdatedModuleId); - } - mergeDependencies(outdatedDependencies, effect.outdatedDependencies); - break; - default: - invariant(effect, (effect)=>`Unknown effect type: ${effect?.type}`); - } - } - return { - outdatedModules, - outdatedDependencies - }; -} -/** - * Creates the module.hot API object and its internal state. - * This provides the HMR API that user code calls (module.hot.accept(), etc.) - */ function createModuleHot(moduleId, hotData) { - const hotState = { - selfAccepted: false, - selfDeclined: false, - selfInvalidated: false, - disposeHandlers: [], - acceptedDependencies: {}, - acceptedErrorHandlers: {}, - declinedDependencies: {} - }; - const hot = { - // TODO(alexkirsz) This is not defined in the HMR API. It was used to - // decide whether to warn whenever an HMR-disposed module required other - // modules. We might want to remove it. - active: true, - data: hotData ?? {}, - accept: (modules, callback, errorHandler)=>{ - if (modules === undefined) { - hotState.selfAccepted = true; - } else if (typeof modules === 'function') { - hotState.selfAccepted = modules; - } else if (typeof modules === 'object' && modules !== null) { - for(let i = 0; i < modules.length; i++){ - hotState.acceptedDependencies[modules[i]] = callback || function() {}; - hotState.acceptedErrorHandlers[modules[i]] = errorHandler; - } - } else { - hotState.acceptedDependencies[modules] = callback || function() {}; - hotState.acceptedErrorHandlers[modules] = errorHandler; - } - }, - decline: (dep)=>{ - if (dep === undefined) { - hotState.selfDeclined = true; - } else if (typeof dep === 'object' && dep !== null) { - for(let i = 0; i < dep.length; i++){ - hotState.declinedDependencies[dep[i]] = true; - } - } else { - hotState.declinedDependencies[dep] = true; - } - }, - dispose: (callback)=>{ - hotState.disposeHandlers.push(callback); - }, - addDisposeHandler: (callback)=>{ - hotState.disposeHandlers.push(callback); - }, - removeDisposeHandler: (callback)=>{ - const idx = hotState.disposeHandlers.indexOf(callback); - if (idx >= 0) { - hotState.disposeHandlers.splice(idx, 1); - } - }, - invalidate: ()=>{ - hotState.selfInvalidated = true; - queuedInvalidatedModules.add(moduleId); - }, - // NOTE(alexkirsz) This is part of the management API, which we don't - // implement, but the Next.js React Refresh runtime uses this to decide - // whether to schedule an update. - status: ()=>'idle', - // NOTE(alexkirsz) Since we always return "idle" for now, these are no-ops. - addStatusHandler: (_handler)=>{}, - removeStatusHandler: (_handler)=>{}, - // NOTE(jridgewell) Check returns the list of updated modules, but we don't - // want the webpack code paths to ever update (the turbopack paths handle - // this already). - check: ()=>Promise.resolve(null) - }; - return { - hot, - hotState - }; -} -/** - * Processes queued invalidated modules and adds them to the outdated modules set. - * Modules that call module.hot.invalidate() are queued and processed here. - * - * @param outdatedModules - The current set of outdated modules - * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept() - */ function applyInvalidatedModules(outdatedModules, outdatedDependencies, autoAcceptRootModules) { - if (queuedInvalidatedModules.size > 0) { - const result = computedInvalidatedModules(queuedInvalidatedModules, autoAcceptRootModules); - for (const moduleId of result.outdatedModules){ - outdatedModules.add(moduleId); - } - mergeDependencies(outdatedDependencies, result.outdatedDependencies); - queuedInvalidatedModules.clear(); - } - return { - outdatedModules, - outdatedDependencies - }; -} -/** - * Computes which outdated modules have self-accepted and can be hot reloaded. - */ function computeOutdatedSelfAcceptedModules(outdatedModules) { - const outdatedSelfAcceptedModules = []; - for (const moduleId of outdatedModules){ - const module = devModuleCache[moduleId]; - const hotState = moduleHotState.get(module); - if (module && hotState?.selfAccepted && !hotState.selfInvalidated) { - outdatedSelfAcceptedModules.push({ - moduleId, - errorHandler: hotState.selfAccepted - }); - } - } - return outdatedSelfAcceptedModules; -} -/** - * Disposes of an instance of a module. - * Runs hot.dispose handlers and manages persistent hot data. - * - * NOTE: mode = "replace" will not remove modules from devModuleCache. - * This must be done in a separate step afterwards. - */ function disposeModule(moduleId, mode) { - const module = devModuleCache[moduleId]; - if (!module) { - return; - } - const hotState = moduleHotState.get(module); - if (!hotState) { - return; - } - const data = {}; - // Run the `hot.dispose` handler, if any, passing in the persistent - // `hot.data` object. - for (const disposeHandler of hotState.disposeHandlers){ - disposeHandler(data); - } - // This used to warn in `getOrInstantiateModuleFromParent` when a disposed - // module is still importing other modules. - if (module.hot) { - module.hot.active = false; - } - moduleHotState.delete(module); - // Remove the disposed module from its children's parent list. - // It will be added back once the module re-instantiates and imports its - // children again. - for (const childId of module.children){ - const child = devModuleCache[childId]; - if (!child) { - continue; - } - const idx = child.parents.indexOf(module.id); - if (idx >= 0) { - child.parents.splice(idx, 1); - } - } - switch(mode){ - case 'clear': - delete devModuleCache[module.id]; - moduleHotData.delete(module.id); - break; - case 'replace': - moduleHotData.set(module.id, data); - break; - default: - invariant(mode, (mode)=>`invalid mode: ${mode}`); - } -} -/** - * Dispose phase: runs dispose handlers and cleans up outdated/disposed modules. - * Returns the parent modules of outdated modules for use in the apply phase. - */ function disposePhase(outdatedModules, disposedModules, outdatedDependencies) { - for (const moduleId of outdatedModules){ - disposeModule(moduleId, 'replace'); - } - for (const moduleId of disposedModules){ - disposeModule(moduleId, 'clear'); - } - // Removing modules from the module cache is a separate step. - // We also want to keep track of previous parents of the outdated modules. - const outdatedModuleParents = new Map(); - for (const moduleId of outdatedModules){ - const oldModule = devModuleCache[moduleId]; - outdatedModuleParents.set(moduleId, oldModule?.parents); - delete devModuleCache[moduleId]; - } - // Remove outdated dependencies from parent module's children list. - // When a parent accepts a child's update, the child is re-instantiated - // but the parent stays alive. We remove the old child reference so it - // gets re-added when the child re-imports. - for (const [parentId, deps] of outdatedDependencies){ - const module = devModuleCache[parentId]; - if (module) { - for (const dep of deps){ - const idx = module.children.indexOf(dep); - if (idx >= 0) { - module.children.splice(idx, 1); - } - } - } - } - return { - outdatedModuleParents - }; -} -/* eslint-disable @typescript-eslint/no-unused-vars */ /** - * Shared module instantiation logic. - * This handles the full module instantiation flow for both browser and Node.js. - * Only React Refresh hooks differ between platforms (passed as callback). - */ function instantiateModuleShared(moduleId, sourceType, sourceData, moduleFactories, devModuleCache, runtimeModules, createModuleObjectFn, createContextFn, runModuleExecutionHooksFn) { - // 1. Factory validation (same in both browser and Node.js) - const id = moduleId; - const moduleFactory = moduleFactories.get(id); - if (typeof moduleFactory !== 'function') { - throw new Error(factoryNotAvailableMessage(moduleId, sourceType, sourceData) + `\nThis is often caused by a stale browser cache, misconfigured Cache-Control headers, or a service worker serving outdated responses.` + `\nTo fix this, make sure your Cache-Control headers allow revalidation of chunks and review your service worker configuration. ` + `As an immediate workaround, try hard-reloading the page, clearing the browser cache, or unregistering any service workers.`); - } - // 2. Hot API setup (same in both - works for browser, included for Node.js) - const hotData = moduleHotData.get(id); - const { hot, hotState } = createModuleHot(id, hotData); - // 3. Parent assignment logic (same in both) - let parents; - switch(sourceType){ - case SourceType.Runtime: - runtimeModules.add(id); - parents = []; - break; - case SourceType.Parent: - parents = [ - sourceData - ]; - break; - case SourceType.Update: - parents = sourceData || []; - break; - default: - throw new Error(`Unknown source type: ${sourceType}`); - } - // 4. Module creation (platform creates base module object) - const module = createModuleObjectFn(id); - const exports = module.exports; - module.parents = parents; - module.children = []; - module.hot = hot; - devModuleCache[id] = module; - moduleHotState.set(module, hotState); - // 5. Module execution (React Refresh hooks are platform-specific) - try { - runModuleExecutionHooksFn(module, (refresh)=>{ - const context = createContextFn(module, exports, refresh); - moduleFactory.call(exports, context, module, exports); - }); - } catch (error) { - module.error = error; - throw error; - } - // 6. ESM interop (same in both) - if (module.namespaceObject && module.exports !== module.namespaceObject) { - // in case of a circular dependency: cjs1 -> esm2 -> cjs1 - interopEsm(module.exports, module.namespaceObject); - } - return module; -} -/** - * Analyzes update entries and chunks to determine which modules were added, modified, or deleted. - * This is pure logic that doesn't depend on the runtime environment. - */ function computeChangedModules(entries, updates, chunkModulesMap) { - const chunksAdded = new Map(); - const chunksDeleted = new Map(); - const added = new Map(); - const modified = new Map(); - const deleted = new Set(); - for (const [chunkPath, mergedChunkUpdate] of Object.entries(updates)){ - switch(mergedChunkUpdate.type){ - case 'added': - { - const updateAdded = new Set(mergedChunkUpdate.modules); - for (const moduleId of updateAdded){ - added.set(moduleId, entries[moduleId]); - } - chunksAdded.set(chunkPath, updateAdded); - break; - } - case 'deleted': - { - const updateDeleted = chunkModulesMap ? new Set(chunkModulesMap.get(chunkPath)) : new Set(); - for (const moduleId of updateDeleted){ - deleted.add(moduleId); - } - chunksDeleted.set(chunkPath, updateDeleted); - break; - } - case 'partial': - { - const updateAdded = new Set(mergedChunkUpdate.added); - const updateDeleted = new Set(mergedChunkUpdate.deleted); - for (const moduleId of updateAdded){ - added.set(moduleId, entries[moduleId]); - } - for (const moduleId of updateDeleted){ - deleted.add(moduleId); - } - chunksAdded.set(chunkPath, updateAdded); - chunksDeleted.set(chunkPath, updateDeleted); - break; - } - default: - throw new Error('Unknown merged chunk update type'); - } - } - // If a module was added from one chunk and deleted from another in the same update, - // consider it to be modified, as it means the module was moved from one chunk to another - // AND has new code in a single update. - for (const moduleId of added.keys()){ - if (deleted.has(moduleId)) { - added.delete(moduleId); - deleted.delete(moduleId); - } - } - for (const [moduleId, entry] of Object.entries(entries)){ - // Modules that haven't been added to any chunk but have new code are considered - // to be modified. - // This needs to be under the previous loop, as we need it to get rid of modules - // that were added and deleted in the same update. - if (!added.has(moduleId)) { - modified.set(moduleId, entry); - } - } - return { - added, - deleted, - modified, - chunksAdded, - chunksDeleted - }; -} -/** - * Compiles new module code and walks the dependency tree to find all outdated modules. - * Uses the evalModuleEntry function to compile code (platform-specific). - * - * @param added - Map of added modules - * @param modified - Map of modified modules - * @param evalModuleEntry - Function to compile module code - * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept() - */ function computeOutdatedModules(added, modified, evalModuleEntry, autoAcceptRootModules) { - const newModuleFactories = new Map(); - // Compile added modules - for (const [moduleId, entry] of added){ - if (entry != null) { - newModuleFactories.set(moduleId, evalModuleEntry(entry)); - } - } - // Walk dependency tree to find all modules affected by modifications - const { outdatedModules, outdatedDependencies } = computedInvalidatedModules(modified.keys(), autoAcceptRootModules); - // Compile modified modules - for (const [moduleId, entry] of modified){ - newModuleFactories.set(moduleId, evalModuleEntry(entry)); - } - return { - outdatedModules, - outdatedDependencies, - newModuleFactories - }; -} -/** - * Updates module factories and re-instantiates self-accepted modules. - * Uses the instantiateModule function (platform-specific via callback). - */ function applyPhase(outdatedSelfAcceptedModules, newModuleFactories, outdatedModuleParents, outdatedDependencies, moduleFactories, devModuleCache, instantiateModuleFn, applyModuleFactoryNameFn, reportError) { - // Update module factories - for (const [moduleId, factory] of newModuleFactories.entries()){ - applyModuleFactoryNameFn(factory); - moduleFactories.set(moduleId, factory); - } - // TODO(alexkirsz) Run new runtime entries here. - // Call accept handlers for outdated dependencies. - // This runs BEFORE re-instantiating self-accepted modules, matching - // webpack's behavior. - for (const [parentId, deps] of outdatedDependencies){ - const module = devModuleCache[parentId]; - if (!module) continue; - const hotState = moduleHotState.get(module); - if (!hotState) continue; - // Group deps by callback, deduplicating callbacks that handle multiple deps. - // Each callback receives only the deps it was registered for. - const callbackDeps = new Map(); - const callbackErrorHandlers = new Map(); - for (const dep of deps){ - const acceptCallback = hotState.acceptedDependencies[dep]; - if (acceptCallback) { - let depList = callbackDeps.get(acceptCallback); - if (!depList) { - depList = []; - callbackDeps.set(acceptCallback, depList); - callbackErrorHandlers.set(acceptCallback, hotState.acceptedErrorHandlers[dep]); - } - depList.push(dep); - } - } - for (const [callback, cbDeps] of callbackDeps){ - try { - callback.call(null, cbDeps); - } catch (err) { - const errorHandler = callbackErrorHandlers.get(callback); - if (typeof errorHandler === 'function') { - try { - errorHandler(err, { - moduleId: parentId, - dependencyId: cbDeps[0] - }); - } catch (err2) { - reportError(err2); - reportError(err); - } - } else { - reportError(err); - } - } - } - } - // Re-instantiate all outdated self-accepted modules - for (const { moduleId, errorHandler } of outdatedSelfAcceptedModules){ - try { - instantiateModuleFn(moduleId, SourceType.Update, outdatedModuleParents.get(moduleId)); - } catch (err) { - if (typeof errorHandler === 'function') { - try { - errorHandler(err, { - moduleId, - module: devModuleCache[moduleId] - }); - } catch (err2) { - reportError(err2); - reportError(err); - } - } else { - reportError(err); - } - } - } -} -/** - * Internal implementation that orchestrates the full HMR update flow: - * invalidation, disposal, and application of new modules. - * - * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept() - */ function applyInternal(outdatedModules, outdatedDependencies, disposedModules, newModuleFactories, moduleFactories, devModuleCache, instantiateModuleFn, applyModuleFactoryNameFn, autoAcceptRootModules) { - ; - ({ outdatedModules, outdatedDependencies } = applyInvalidatedModules(outdatedModules, outdatedDependencies, autoAcceptRootModules)); - // Find self-accepted modules to re-instantiate - const outdatedSelfAcceptedModules = computeOutdatedSelfAcceptedModules(outdatedModules); - // Run dispose handlers, save hot.data, clear caches - const { outdatedModuleParents } = disposePhase(outdatedModules, disposedModules, outdatedDependencies); - let error; - function reportError(err) { - if (!error) error = err; // Keep first error - } - applyPhase(outdatedSelfAcceptedModules, newModuleFactories, outdatedModuleParents, outdatedDependencies, moduleFactories, devModuleCache, instantiateModuleFn, applyModuleFactoryNameFn, reportError); - if (error) { - throw error; - } - // Recursively apply any queued invalidations from new module execution - if (queuedInvalidatedModules.size > 0) { - applyInternal(new Set(), new Map(), [], new Map(), moduleFactories, devModuleCache, instantiateModuleFn, applyModuleFactoryNameFn, autoAcceptRootModules); - } -} -/** - * Main entry point for applying an ECMAScript merged update. - * This is called by both browser and Node.js runtimes with platform-specific callbacks. - * - * @param options.autoAcceptRootModules - If true, root modules auto-accept updates without explicit - * module.hot.accept(). Used for server-side HMR where pages - * auto-accept at the top level. - */ function applyEcmascriptMergedUpdateShared(options) { - const { added, modified, disposedModules, evalModuleEntry, instantiateModule, applyModuleFactoryName, moduleFactories, devModuleCache, autoAcceptRootModules } = options; - const { outdatedModules, outdatedDependencies, newModuleFactories } = computeOutdatedModules(added, modified, evalModuleEntry, autoAcceptRootModules); - applyInternal(outdatedModules, outdatedDependencies, disposedModules, newModuleFactories, moduleFactories, devModuleCache, instantiateModule, applyModuleFactoryName, autoAcceptRootModules); -} -/* eslint-disable @typescript-eslint/no-unused-vars */ /// -/// -/// -/** - * Development Node.js runtime. - * Uses HotModule and shared HMR logic for hot module replacement support. - */ // Cast the module cache to HotModule for development mode -// (hmr-runtime.ts declares devModuleCache as `let` variable expecting assignment) -// This is safe because HotModule extends Module -devModuleCache = moduleCache; -// this is read in runtime-utils.ts so it creates a module with direction for hmr -createModuleWithDirectionFlag = true; -if (!globalThis.__turbopack_runtime_modules__) { - globalThis.__turbopack_runtime_modules__ = new Set(); -} -runtimeModules = globalThis.__turbopack_runtime_modules__; -const nodeDevContextPrototype = Context.prototype; -nodeDevContextPrototype.q = exportUrl; -nodeDevContextPrototype.M = moduleFactories; -nodeDevContextPrototype.c = devModuleCache; -nodeDevContextPrototype.R = resolvePathFromModule; -nodeDevContextPrototype.b = createWorker; -nodeDevContextPrototype.C = clearChunkCache; -/** - * Instantiates a module in development mode using shared HMR logic. - */ function instantiateModule(id, sourceType, sourceData) { - // Node.js: creates base module object (hot API added by shared code) - const createModuleObjectFn = (moduleId)=>{ - return createModuleWithDirection(moduleId); - }; - // Node.js: creates Context (no refresh parameter) - const createContext = (module1, exports, _refresh)=>{ - return new Context(module1, exports); - }; - // Node.js: no hooks wrapper, just execute directly - const runWithHooks = (module1, exec)=>{ - exec(undefined); // no refresh context - }; - // Use shared instantiation logic (includes hot API setup) - const newModule = instantiateModuleShared(id, sourceType, sourceData, moduleFactories, devModuleCache, runtimeModules, createModuleObjectFn, createContext, runWithHooks); - newModule.loaded = true; - return newModule; -} -/** - * Instantiates a runtime module in development mode. - */ 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 = devModuleCache[moduleId]; - if (module1) { - if (module1.error) { - throw module1.error; - } - return module1; - } - return instantiateRuntimeModule(chunkPath, moduleId); -} -/** - * Retrieves a module from the cache, or instantiate it if it is not cached. - * Also tracks parent-child relationships for HMR dependency tracking. - */ // @ts-ignore -function getOrInstantiateModuleFromParent(id, sourceModule) { - // Track parent-child relationship - trackModuleImport(sourceModule, id, devModuleCache[id]); - const module1 = devModuleCache[id]; - if (module1) { - if (module1.error) { - throw module1.error; - } - return module1; - } - const newModule = instantiateModule(id, SourceType.Parent, sourceModule.id); - // Track again after instantiation to ensure the relationship is recorded - trackModuleImport(sourceModule, id, newModule); - return newModule; -} -module.exports = (sourcePath)=>({ - m: (id)=>getOrInstantiateRuntimeModule(sourcePath, id), - c: (chunkData)=>loadRuntimeChunk(sourcePath, chunkData) - }); -/// -/// -/* eslint-disable @typescript-eslint/no-unused-vars */ /** - * Appends the module code with //# sourceURL and //# sourceMappingURL so - * that Node.js can resolve stack frames from `eval`ed server HMR modules back to - * their original source files. Mirrors the browser's _eval in dev-backend-dom.ts. - */ function inlineSourcemaps(entry) { - const [chunkPath, moduleId] = entry.url.split('?', 2); - const absolutePath = path.resolve(RUNTIME_ROOT, chunkPath); - const fileHref = url.pathToFileURL(absolutePath).href; - const sourceURL = moduleId ? `${fileHref}?${moduleId}` : fileHref; - let code = entry.code + '\n\n//# sourceURL=' + sourceURL; - if (entry.map) { - code += '\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,' + Buffer.from(entry.map).toString('base64'); - } - return code; -} -let serverHmrUpdateHandler = null; -function initializeServerHmr(moduleFactories, devModuleCache) { - if (serverHmrUpdateHandler != null) { - throw new Error('[Server HMR] Server HMR client is already initialized'); - } - // Register the update handler for the server runtime - serverHmrUpdateHandler = (msg)=>{ - handleNodejsUpdate(msg, moduleFactories, devModuleCache); - }; -} -/** - * Emits an HMR message to the registered update handler. - * Node uses a simpler listener pattern than the browser's websocket connection. - * - * Note: This is only called via __turbopack_server_hmr_apply__ which ensures - * the handler is initialized first via ensureHmrClientInitialized(). - */ function emitMessage(msg) { - if (serverHmrUpdateHandler == null) { - console.warn('[Server HMR] No update handler registered to receive message:', msg); - return false; - } - try { - serverHmrUpdateHandler(msg.data); - return true; - } catch (err) { - console.error('[Server HMR] Listener error:', err); - return false; - } -} -/** - * Handles server message updates and applies them to the Node.js runtime. - * Uses shared HMR update logic from hmr-runtime.ts. - */ function handleNodejsUpdate(msg, moduleFactories, devModuleCache) { - if (msg.type !== 'partial') { - return; - } - const instruction = msg.instruction; - if (instruction.type !== 'EcmascriptMergedUpdate') { - return; - } - try { - const { entries = {}, chunks = {} } = instruction; - const evalModuleEntry = (entry)=>{ - // eslint-disable-next-line no-eval - return (0, eval)(entry.map ? inlineSourcemaps(entry) : entry.code); - }; - const { added, modified } = computeChangedModules(entries, chunks, undefined // no chunkModulesMap for Node.js - ); - // Use shared HMR update implementation - applyEcmascriptMergedUpdateShared({ - added, - modified, - disposedModules: [], - evalModuleEntry, - instantiateModule, - applyModuleFactoryName: ()=>{}, - moduleFactories, - devModuleCache, - autoAcceptRootModules: true - }); - } catch (e) { - console.error('[Server HMR] Update failed, full reload needed:', e); - throw e; - } -} -/// -/// -/** - * Note: hmr-runtime.ts is embedded before this file, so its functions - * (initializeServerHmr, emitMessage) are available in the same scope. - */ // Initialize server HMR client (connects to shared HMR infrastructure) -let hmrClientInitialized = false; -function ensureHmrClientInitialized() { - if (hmrClientInitialized) return; - hmrClientInitialized = true; - // initializeServerHmr is from hmr-client.ts (embedded before this file) - // moduleFactories is from dev-runtime.ts - // devModuleCache is the HotModule-typed cache from dev-runtime.ts - initializeServerHmr(moduleFactories, devModuleCache); -} -function __turbopack_server_hmr_apply__(update) { - try { - ensureHmrClientInitialized(); - // emitMessage returns false if any listener failed to apply the update - return emitMessage({ - type: 'turbopack-message', - data: update - }); - } catch (err) { - console.error('[Server HMR] Failed to apply update:', err); - return false; - } -} -const handlers = globalThis.__turbopack_server_hmr_handlers__ ?? new Map(); -const chunkPrefix = path.relative(RUNTIME_ROOT, path.dirname(__filename)); -if (handlers.size === 0) { - // First registration in this generation: install the routing dispatcher. - globalThis.__turbopack_server_hmr_apply__ = (update)=>{ - const registry = globalThis.__turbopack_server_hmr_handlers__ ?? new Map(); - const updateChunkPaths = Object.keys(update.instruction?.chunks ?? {}); - const toCall = []; - if (updateChunkPaths.length === 0) { - for (const entry of registry.values())toCall.push(entry); - } else { - const seen = new Set(); - for (const chunkPath of updateChunkPaths){ - const dir = path.dirname(chunkPath); - for (const [key, entry] of registry){ - if (dir === entry.chunkPrefix && !seen.has(key)) { - seen.add(key); - toCall.push(entry); - } - } - } - } - let applied = false; - for (const { handler } of toCall){ - try { - if (handler(update)) applied = true; - } catch (err) { - console.error('[Server HMR] Handler error:', err); - } - } - return applied; - }; -} -globalThis.__turbopack_server_hmr_handlers__ = handlers; -handlers.set(__filename, { - handler: __turbopack_server_hmr_apply__, - chunkPrefix -}); - - -//# sourceMappingURL=%5Bturbopack%5D_runtime.js.map \ No newline at end of file diff --git a/.next/dev/server/chunks/ssr/[turbopack]_runtime.js.map b/.next/dev/server/chunks/ssr/[turbopack]_runtime.js.map deleted file mode 100644 index eaa666f..0000000 --- a/.next/dev/server/chunks/ssr/[turbopack]_runtime.js.map +++ /dev/null @@ -1,14 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [ - {"offset": {"line": 17, "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,AA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D,IAAK,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": 593, "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": 634, "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": 655, "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": 676, "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;AAC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AAOgC,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": 823, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared/runtime/hmr-runtime.ts"],"sourcesContent":["/// \n/// \n/// \n/// \n\ntype HotModuleFactoryFunction = ModuleFactoryFunction<\n HotModule,\n TurbopackBaseContext\n>\n\n/**\n * Shared HMR (Hot Module Replacement) implementation.\n *\n * This file contains the complete HMR implementation that's shared between\n * browser and Node.js runtimes. It manages module hot state, dependency\n * tracking, the module.hot API, and the full HMR update flow.\n */\n\n/**\n * The development module cache shared across the runtime.\n * Browser runtime declares this directly.\n * Node.js runtime assigns globalThis.__turbopack_module_cache__ to this.\n */\nlet devModuleCache: Record\n\n/**\n * Module IDs that are instantiated as part of the runtime of a chunk.\n */\nlet runtimeModules: Set\n\n/**\n * Maps module IDs to persisted data between executions of their hot module\n * implementation (`hot.data`).\n */\nconst moduleHotData: Map = new Map()\n\n/**\n * Maps module instances to their hot module state.\n * Uses WeakMap so it works with both HotModule and ModuleWithDirection.\n */\nconst moduleHotState: WeakMap = new WeakMap()\n\n/**\n * Modules that call `module.hot.invalidate()` (while being updated).\n */\nconst queuedInvalidatedModules: Set = new Set()\n\nclass UpdateApplyError extends Error {\n name = 'UpdateApplyError'\n\n dependencyChain: ModuleId[]\n\n constructor(message: string, dependencyChain: ModuleId[]) {\n super(message)\n this.dependencyChain = dependencyChain\n }\n}\n\ntype ModuleEffect =\n | {\n type: 'unaccepted'\n dependencyChain: ModuleId[]\n }\n | {\n type: 'self-declined'\n dependencyChain: ModuleId[]\n moduleId: ModuleId\n }\n | {\n type: 'declined'\n dependencyChain: ModuleId[]\n moduleId: ModuleId\n parentId: ModuleId\n }\n | {\n type: 'accepted'\n moduleId: ModuleId\n outdatedModules: Set\n outdatedDependencies: Map>\n }\n\n/**\n * Records parent-child relationship when a module imports another.\n * Should be called during module instantiation.\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction trackModuleImport(\n parentModule: ModuleWithDirection,\n childModuleId: ModuleId,\n childModule: ModuleWithDirection | undefined\n): void {\n // Record that parent imports child\n if (parentModule.children.indexOf(childModuleId) === -1) {\n parentModule.children.push(childModuleId)\n }\n\n // Record that child is imported by parent\n if (childModule && childModule.parents.indexOf(parentModule.id) === -1) {\n childModule.parents.push(parentModule.id)\n }\n}\n\nfunction formatDependencyChain(dependencyChain: ModuleId[]): string {\n return `Dependency chain: ${dependencyChain.join(' -> ')}`\n}\n\n/**\n * Walks the dependency tree to find all modules affected by a change.\n * Returns information about whether the update can be accepted and which\n * modules need to be invalidated.\n *\n * @param moduleId - The module that changed\n * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept().\n * This is used for server-side HMR where pages auto-accept at the top level.\n */\nfunction getAffectedModuleEffects(\n moduleId: ModuleId,\n autoAcceptRootModules: boolean\n): ModuleEffect {\n const outdatedModules: Set = new Set()\n const outdatedDependencies: Map> = new Map()\n\n type QueueItem = { moduleId?: ModuleId; dependencyChain: ModuleId[] }\n\n const queue: QueueItem[] = [\n {\n moduleId,\n dependencyChain: [],\n },\n ]\n\n let nextItem\n while ((nextItem = queue.shift())) {\n const { moduleId, dependencyChain } = nextItem\n\n if (moduleId != null) {\n if (outdatedModules.has(moduleId)) {\n // Avoid infinite loops caused by cycles between modules in the dependency chain.\n continue\n }\n\n outdatedModules.add(moduleId)\n }\n\n // We've arrived at the runtime of the chunk, which means that nothing\n // else above can accept this update.\n if (moduleId === undefined) {\n if (autoAcceptRootModules) {\n return {\n type: 'accepted',\n moduleId,\n outdatedModules,\n outdatedDependencies,\n }\n }\n return {\n type: 'unaccepted',\n dependencyChain,\n }\n }\n\n const module = devModuleCache[moduleId]\n const hotState = moduleHotState.get(module)!\n\n if (\n // The module is not in the cache. Since this is a \"modified\" update,\n // it means that the module was never instantiated before.\n !module || // The module accepted itself without invalidating globalThis.\n // TODO is that right?\n (hotState.selfAccepted && !hotState.selfInvalidated)\n ) {\n continue\n }\n\n if (hotState.selfDeclined) {\n return {\n type: 'self-declined',\n dependencyChain,\n moduleId,\n }\n }\n\n if (runtimeModules.has(moduleId)) {\n if (autoAcceptRootModules) {\n continue\n }\n queue.push({\n moduleId: undefined,\n dependencyChain: [...dependencyChain, moduleId],\n })\n continue\n }\n\n for (const parentId of module.parents) {\n const parent = devModuleCache[parentId]\n\n if (!parent) {\n continue\n }\n\n const parentHotState = moduleHotState.get(parent)\n\n // Check if parent declined this dependency\n if (parentHotState?.declinedDependencies[moduleId]) {\n return {\n type: 'declined',\n dependencyChain: [...dependencyChain, moduleId],\n moduleId,\n parentId,\n }\n }\n\n // Skip if parent is already outdated\n if (outdatedModules.has(parentId)) {\n continue\n }\n\n // Check if parent accepts this dependency\n if (parentHotState?.acceptedDependencies[moduleId]) {\n if (!outdatedDependencies.has(parentId)) {\n outdatedDependencies.set(parentId, new Set())\n }\n outdatedDependencies.get(parentId)!.add(moduleId)\n continue\n }\n\n // Neither accepted nor declined — propagate to parent\n queue.push({\n moduleId: parentId,\n dependencyChain: [...dependencyChain, moduleId],\n })\n }\n\n // If no parents and we're at a root module, auto-accept if configured\n if (module.parents.length === 0 && autoAcceptRootModules) {\n continue\n }\n }\n\n return {\n type: 'accepted',\n moduleId,\n outdatedModules,\n outdatedDependencies,\n }\n}\n\n/**\n * Merges source dependency map into target dependency map.\n */\nfunction mergeDependencies(\n target: Map>,\n source: Map>\n): void {\n for (const [parentId, deps] of source) {\n const existing = target.get(parentId)\n if (existing) {\n for (const dep of deps) {\n existing.add(dep)\n }\n } else {\n target.set(parentId, new Set(deps))\n }\n }\n}\n\n/**\n * Computes all modules that need to be invalidated based on which modules changed.\n *\n * @param invalidated - The modules that have been invalidated\n * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept()\n */\nfunction computedInvalidatedModules(\n invalidated: Iterable,\n autoAcceptRootModules: boolean\n): {\n outdatedModules: Set\n outdatedDependencies: Map>\n} {\n const outdatedModules = new Set()\n const outdatedDependencies = new Map>()\n\n for (const moduleId of invalidated) {\n const effect = getAffectedModuleEffects(moduleId, autoAcceptRootModules)\n\n switch (effect.type) {\n case 'unaccepted':\n throw new UpdateApplyError(\n `cannot apply update: unaccepted module. ${formatDependencyChain(\n effect.dependencyChain\n )}.`,\n effect.dependencyChain\n )\n case 'self-declined':\n throw new UpdateApplyError(\n `cannot apply update: self-declined module. ${formatDependencyChain(\n effect.dependencyChain\n )}.`,\n effect.dependencyChain\n )\n case 'declined':\n throw new UpdateApplyError(\n `cannot apply update: declined dependency. ${formatDependencyChain(\n effect.dependencyChain\n )}. Declined by ${effect.parentId}.`,\n effect.dependencyChain\n )\n case 'accepted':\n for (const outdatedModuleId of effect.outdatedModules) {\n outdatedModules.add(outdatedModuleId)\n }\n mergeDependencies(outdatedDependencies, effect.outdatedDependencies)\n break\n default:\n invariant(effect, (effect) => `Unknown effect type: ${effect?.type}`)\n }\n }\n\n return { outdatedModules, outdatedDependencies }\n}\n\n/**\n * Creates the module.hot API object and its internal state.\n * This provides the HMR API that user code calls (module.hot.accept(), etc.)\n */\n\nfunction createModuleHot(\n moduleId: ModuleId,\n hotData: HotData\n): { hot: Hot; hotState: HotState } {\n const hotState: HotState = {\n selfAccepted: false,\n selfDeclined: false,\n selfInvalidated: false,\n disposeHandlers: [],\n acceptedDependencies: {},\n acceptedErrorHandlers: {},\n declinedDependencies: {},\n }\n\n const hot: Hot = {\n // TODO(alexkirsz) This is not defined in the HMR API. It was used to\n // decide whether to warn whenever an HMR-disposed module required other\n // modules. We might want to remove it.\n active: true,\n\n data: hotData ?? {},\n\n accept: (\n modules?: string | string[] | AcceptErrorHandler,\n callback?: AcceptCallback,\n errorHandler?: AcceptErrorHandler\n ) => {\n if (modules === undefined) {\n hotState.selfAccepted = true\n } else if (typeof modules === 'function') {\n hotState.selfAccepted = modules\n } else if (typeof modules === 'object' && modules !== null) {\n for (let i = 0; i < modules.length; i++) {\n hotState.acceptedDependencies[modules[i]] = callback || function () {}\n hotState.acceptedErrorHandlers[modules[i]] = errorHandler\n }\n } else {\n hotState.acceptedDependencies[modules] = callback || function () {}\n hotState.acceptedErrorHandlers[modules] = errorHandler\n }\n },\n\n decline: (dep?: string | string[]) => {\n if (dep === undefined) {\n hotState.selfDeclined = true\n } else if (typeof dep === 'object' && dep !== null) {\n for (let i = 0; i < dep.length; i++) {\n hotState.declinedDependencies[dep[i]] = true\n }\n } else {\n hotState.declinedDependencies[dep] = true\n }\n },\n\n dispose: (callback) => {\n hotState.disposeHandlers.push(callback)\n },\n\n addDisposeHandler: (callback) => {\n hotState.disposeHandlers.push(callback)\n },\n\n removeDisposeHandler: (callback) => {\n const idx = hotState.disposeHandlers.indexOf(callback)\n if (idx >= 0) {\n hotState.disposeHandlers.splice(idx, 1)\n }\n },\n\n invalidate: () => {\n hotState.selfInvalidated = true\n queuedInvalidatedModules.add(moduleId)\n },\n\n // NOTE(alexkirsz) This is part of the management API, which we don't\n // implement, but the Next.js React Refresh runtime uses this to decide\n // whether to schedule an update.\n status: () => 'idle',\n\n // NOTE(alexkirsz) Since we always return \"idle\" for now, these are no-ops.\n addStatusHandler: (_handler) => {},\n removeStatusHandler: (_handler) => {},\n\n // NOTE(jridgewell) Check returns the list of updated modules, but we don't\n // want the webpack code paths to ever update (the turbopack paths handle\n // this already).\n check: () => Promise.resolve(null),\n }\n\n return { hot, hotState }\n}\n\n/**\n * Processes queued invalidated modules and adds them to the outdated modules set.\n * Modules that call module.hot.invalidate() are queued and processed here.\n *\n * @param outdatedModules - The current set of outdated modules\n * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept()\n */\nfunction applyInvalidatedModules(\n outdatedModules: Set,\n outdatedDependencies: Map>,\n autoAcceptRootModules: boolean\n): {\n outdatedModules: Set\n outdatedDependencies: Map>\n} {\n if (queuedInvalidatedModules.size > 0) {\n const result = computedInvalidatedModules(\n queuedInvalidatedModules,\n autoAcceptRootModules\n )\n for (const moduleId of result.outdatedModules) {\n outdatedModules.add(moduleId)\n }\n mergeDependencies(outdatedDependencies, result.outdatedDependencies)\n\n queuedInvalidatedModules.clear()\n }\n\n return { outdatedModules, outdatedDependencies }\n}\n\n/**\n * Computes which outdated modules have self-accepted and can be hot reloaded.\n */\n\nfunction computeOutdatedSelfAcceptedModules(\n outdatedModules: Iterable\n): { moduleId: ModuleId; errorHandler: true | Function }[] {\n const outdatedSelfAcceptedModules: {\n moduleId: ModuleId\n errorHandler: true | Function\n }[] = []\n for (const moduleId of outdatedModules) {\n const module = devModuleCache[moduleId]\n const hotState = moduleHotState.get(module)\n if (module && hotState?.selfAccepted && !hotState.selfInvalidated) {\n outdatedSelfAcceptedModules.push({\n moduleId,\n errorHandler: hotState.selfAccepted,\n })\n }\n }\n return outdatedSelfAcceptedModules\n}\n\n/**\n * Disposes of an instance of a module.\n * Runs hot.dispose handlers and manages persistent hot data.\n *\n * NOTE: mode = \"replace\" will not remove modules from devModuleCache.\n * This must be done in a separate step afterwards.\n */\nfunction disposeModule(moduleId: ModuleId, mode: 'clear' | 'replace') {\n const module = devModuleCache[moduleId]\n if (!module) {\n return\n }\n\n const hotState = moduleHotState.get(module)\n if (!hotState) {\n return\n }\n\n const data: HotData = {}\n\n // Run the `hot.dispose` handler, if any, passing in the persistent\n // `hot.data` object.\n for (const disposeHandler of hotState.disposeHandlers) {\n disposeHandler(data)\n }\n\n // This used to warn in `getOrInstantiateModuleFromParent` when a disposed\n // module is still importing other modules.\n if (module.hot) {\n module.hot.active = false\n }\n\n moduleHotState.delete(module)\n\n // Remove the disposed module from its children's parent list.\n // It will be added back once the module re-instantiates and imports its\n // children again.\n for (const childId of module.children) {\n const child = devModuleCache[childId]\n if (!child) {\n continue\n }\n\n const idx = child.parents.indexOf(module.id)\n if (idx >= 0) {\n child.parents.splice(idx, 1)\n }\n }\n\n switch (mode) {\n case 'clear':\n delete devModuleCache[module.id]\n moduleHotData.delete(module.id)\n break\n case 'replace':\n moduleHotData.set(module.id, data)\n break\n default:\n invariant(mode, (mode) => `invalid mode: ${mode}`)\n }\n}\n\n/**\n * Dispose phase: runs dispose handlers and cleans up outdated/disposed modules.\n * Returns the parent modules of outdated modules for use in the apply phase.\n */\n\nfunction disposePhase(\n outdatedModules: Iterable,\n disposedModules: Iterable,\n outdatedDependencies: Map>\n): { outdatedModuleParents: Map> } {\n for (const moduleId of outdatedModules) {\n disposeModule(moduleId, 'replace')\n }\n\n for (const moduleId of disposedModules) {\n disposeModule(moduleId, 'clear')\n }\n\n // Removing modules from the module cache is a separate step.\n // We also want to keep track of previous parents of the outdated modules.\n const outdatedModuleParents = new Map>()\n for (const moduleId of outdatedModules) {\n const oldModule = devModuleCache[moduleId]\n outdatedModuleParents.set(moduleId, oldModule?.parents)\n delete devModuleCache[moduleId]\n }\n\n // Remove outdated dependencies from parent module's children list.\n // When a parent accepts a child's update, the child is re-instantiated\n // but the parent stays alive. We remove the old child reference so it\n // gets re-added when the child re-imports.\n for (const [parentId, deps] of outdatedDependencies) {\n const module = devModuleCache[parentId]\n if (module) {\n for (const dep of deps) {\n const idx = module.children.indexOf(dep)\n if (idx >= 0) {\n module.children.splice(idx, 1)\n }\n }\n }\n }\n\n return { outdatedModuleParents }\n}\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/**\n * Shared module instantiation logic.\n * This handles the full module instantiation flow for both browser and Node.js.\n * Only React Refresh hooks differ between platforms (passed as callback).\n */\nfunction instantiateModuleShared(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData,\n moduleFactories: ModuleFactories,\n devModuleCache: ModuleCache,\n runtimeModules: Set,\n createModuleObjectFn: (id: ModuleId) => HotModule,\n createContextFn: (module: HotModule, exports: Exports, refresh?: any) => any,\n runModuleExecutionHooksFn: (\n module: HotModule,\n exec: (refresh: any) => void\n ) => void\n): HotModule {\n // 1. Factory validation (same in both browser and Node.js)\n const id = moduleId\n const moduleFactory = moduleFactories.get(id)\n if (typeof moduleFactory !== 'function') {\n throw new Error(\n factoryNotAvailableMessage(moduleId, sourceType, sourceData) +\n `\\nThis is often caused by a stale browser cache, misconfigured Cache-Control headers, or a service worker serving outdated responses.` +\n `\\nTo fix this, make sure your Cache-Control headers allow revalidation of chunks and review your service worker configuration. ` +\n `As an immediate workaround, try hard-reloading the page, clearing the browser cache, or unregistering any service workers.`\n )\n }\n\n // 2. Hot API setup (same in both - works for browser, included for Node.js)\n const hotData = moduleHotData.get(id)!\n const { hot, hotState } = createModuleHot(id, hotData)\n\n // 3. Parent assignment logic (same in both)\n let parents: ModuleId[]\n switch (sourceType) {\n case SourceType.Runtime:\n runtimeModules.add(id)\n parents = []\n break\n case SourceType.Parent:\n parents = [sourceData as ModuleId]\n break\n case SourceType.Update:\n parents = (sourceData as ModuleId[]) || []\n break\n default:\n throw new Error(`Unknown source type: ${sourceType}`)\n }\n\n // 4. Module creation (platform creates base module object)\n const module = createModuleObjectFn(id)\n const exports = module.exports\n module.parents = parents\n module.children = []\n module.hot = hot\n\n devModuleCache[id] = module\n moduleHotState.set(module, hotState)\n\n // 5. Module execution (React Refresh hooks are platform-specific)\n try {\n runModuleExecutionHooksFn(module, (refresh) => {\n const context = createContextFn(module, exports, refresh)\n moduleFactory.call(exports, context, module, exports)\n })\n } catch (error) {\n module.error = error as any\n throw error\n }\n\n // 6. ESM interop (same in both)\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 * Analyzes update entries and chunks to determine which modules were added, modified, or deleted.\n * This is pure logic that doesn't depend on the runtime environment.\n */\nfunction computeChangedModules(\n entries: Record,\n updates: Record,\n chunkModulesMap?: Map>\n): {\n added: Map\n modified: Map\n deleted: Set\n chunksAdded: Map>\n chunksDeleted: Map>\n} {\n const chunksAdded = new Map()\n const chunksDeleted = new Map()\n const added: Map = new Map()\n const modified = new Map()\n const deleted: Set = new Set()\n\n for (const [chunkPath, mergedChunkUpdate] of Object.entries(updates) as Array<\n [ChunkPath, EcmascriptMergedChunkUpdate]\n >) {\n switch (mergedChunkUpdate.type) {\n case 'added': {\n const updateAdded = new Set(mergedChunkUpdate.modules)\n for (const moduleId of updateAdded) {\n added.set(moduleId, entries[moduleId])\n }\n chunksAdded.set(chunkPath, updateAdded)\n break\n }\n case 'deleted': {\n const updateDeleted = chunkModulesMap\n ? new Set(chunkModulesMap.get(chunkPath))\n : new Set()\n for (const moduleId of updateDeleted) {\n deleted.add(moduleId)\n }\n chunksDeleted.set(chunkPath, updateDeleted)\n break\n }\n case 'partial': {\n const updateAdded = new Set(mergedChunkUpdate.added)\n const updateDeleted = new Set(mergedChunkUpdate.deleted)\n for (const moduleId of updateAdded) {\n added.set(moduleId, entries[moduleId])\n }\n for (const moduleId of updateDeleted) {\n deleted.add(moduleId)\n }\n chunksAdded.set(chunkPath, updateAdded)\n chunksDeleted.set(chunkPath, updateDeleted)\n break\n }\n default:\n throw new Error('Unknown merged chunk update type')\n }\n }\n\n // If a module was added from one chunk and deleted from another in the same update,\n // consider it to be modified, as it means the module was moved from one chunk to another\n // AND has new code in a single update.\n for (const moduleId of added.keys()) {\n if (deleted.has(moduleId)) {\n added.delete(moduleId)\n deleted.delete(moduleId)\n }\n }\n\n for (const [moduleId, entry] of Object.entries(entries)) {\n // Modules that haven't been added to any chunk but have new code are considered\n // to be modified.\n // This needs to be under the previous loop, as we need it to get rid of modules\n // that were added and deleted in the same update.\n if (!added.has(moduleId)) {\n modified.set(moduleId, entry)\n }\n }\n\n return { added, deleted, modified, chunksAdded, chunksDeleted }\n}\n\n/**\n * Compiles new module code and walks the dependency tree to find all outdated modules.\n * Uses the evalModuleEntry function to compile code (platform-specific).\n *\n * @param added - Map of added modules\n * @param modified - Map of modified modules\n * @param evalModuleEntry - Function to compile module code\n * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept()\n */\nfunction computeOutdatedModules(\n added: Map,\n modified: Map,\n evalModuleEntry: (entry: EcmascriptModuleEntry) => HotModuleFactoryFunction,\n autoAcceptRootModules: boolean\n): {\n outdatedModules: Set\n outdatedDependencies: Map>\n newModuleFactories: Map\n} {\n const newModuleFactories = new Map()\n\n // Compile added modules\n for (const [moduleId, entry] of added) {\n if (entry != null) {\n newModuleFactories.set(moduleId, evalModuleEntry(entry))\n }\n }\n\n // Walk dependency tree to find all modules affected by modifications\n const { outdatedModules, outdatedDependencies } = computedInvalidatedModules(\n modified.keys(),\n autoAcceptRootModules\n )\n\n // Compile modified modules\n for (const [moduleId, entry] of modified) {\n newModuleFactories.set(moduleId, evalModuleEntry(entry))\n }\n\n return { outdatedModules, outdatedDependencies, newModuleFactories }\n}\n\n/**\n * Updates module factories and re-instantiates self-accepted modules.\n * Uses the instantiateModule function (platform-specific via callback).\n */\nfunction applyPhase(\n outdatedSelfAcceptedModules: {\n moduleId: ModuleId\n errorHandler: true | Function\n }[],\n newModuleFactories: Map,\n outdatedModuleParents: Map>,\n outdatedDependencies: Map>,\n moduleFactories: ModuleFactories,\n devModuleCache: ModuleCache,\n instantiateModuleFn: (\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n ) => HotModule,\n applyModuleFactoryNameFn: (factory: HotModuleFactoryFunction) => void,\n reportError: (err: any) => void\n) {\n // Update module factories\n for (const [moduleId, factory] of newModuleFactories.entries()) {\n applyModuleFactoryNameFn(factory)\n moduleFactories.set(moduleId, factory)\n }\n\n // TODO(alexkirsz) Run new runtime entries here.\n\n // Call accept handlers for outdated dependencies.\n // This runs BEFORE re-instantiating self-accepted modules, matching\n // webpack's behavior.\n for (const [parentId, deps] of outdatedDependencies) {\n const module = devModuleCache[parentId]\n if (!module) continue\n\n const hotState = moduleHotState.get(module)\n if (!hotState) continue\n\n // Group deps by callback, deduplicating callbacks that handle multiple deps.\n // Each callback receives only the deps it was registered for.\n const callbackDeps = new Map void), ModuleId[]>()\n const callbackErrorHandlers = new Map<\n AcceptCallback | (() => void),\n AcceptErrorHandler | undefined\n >()\n\n for (const dep of deps) {\n const acceptCallback = hotState.acceptedDependencies[dep]\n if (acceptCallback) {\n let depList = callbackDeps.get(acceptCallback)\n if (!depList) {\n depList = []\n callbackDeps.set(acceptCallback, depList)\n callbackErrorHandlers.set(\n acceptCallback,\n hotState.acceptedErrorHandlers[dep]\n )\n }\n depList.push(dep)\n }\n }\n\n for (const [callback, cbDeps] of callbackDeps) {\n try {\n callback.call(null, cbDeps)\n } catch (err: any) {\n const errorHandler = callbackErrorHandlers.get(callback)\n if (typeof errorHandler === 'function') {\n try {\n errorHandler(err, {\n moduleId: parentId,\n dependencyId: cbDeps[0],\n })\n } catch (err2) {\n reportError(err2)\n reportError(err)\n }\n } else {\n reportError(err)\n }\n }\n }\n }\n\n // Re-instantiate all outdated self-accepted modules\n for (const { moduleId, errorHandler } of outdatedSelfAcceptedModules) {\n try {\n instantiateModuleFn(\n moduleId,\n SourceType.Update,\n outdatedModuleParents.get(moduleId)\n )\n } catch (err) {\n if (typeof errorHandler === 'function') {\n try {\n errorHandler(err, { moduleId, module: devModuleCache[moduleId] })\n } catch (err2) {\n reportError(err2)\n reportError(err)\n }\n } else {\n reportError(err)\n }\n }\n }\n}\n\n/**\n * Internal implementation that orchestrates the full HMR update flow:\n * invalidation, disposal, and application of new modules.\n *\n * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept()\n */\nfunction applyInternal(\n outdatedModules: Set,\n outdatedDependencies: Map>,\n disposedModules: Iterable,\n newModuleFactories: Map,\n moduleFactories: ModuleFactories,\n devModuleCache: ModuleCache,\n instantiateModuleFn: (\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n ) => HotModule,\n applyModuleFactoryNameFn: (factory: HotModuleFactoryFunction) => void,\n autoAcceptRootModules: boolean\n) {\n ;({ outdatedModules, outdatedDependencies } = applyInvalidatedModules(\n outdatedModules,\n outdatedDependencies,\n autoAcceptRootModules\n ))\n\n // Find self-accepted modules to re-instantiate\n const outdatedSelfAcceptedModules =\n computeOutdatedSelfAcceptedModules(outdatedModules)\n\n // Run dispose handlers, save hot.data, clear caches\n const { outdatedModuleParents } = disposePhase(\n outdatedModules,\n disposedModules,\n outdatedDependencies\n )\n\n let error: any\n\n function reportError(err: any) {\n if (!error) error = err // Keep first error\n }\n\n applyPhase(\n outdatedSelfAcceptedModules,\n newModuleFactories,\n outdatedModuleParents,\n outdatedDependencies,\n moduleFactories,\n devModuleCache,\n instantiateModuleFn,\n applyModuleFactoryNameFn,\n reportError\n )\n\n if (error) {\n throw error\n }\n\n // Recursively apply any queued invalidations from new module execution\n if (queuedInvalidatedModules.size > 0) {\n applyInternal(\n new Set(),\n new Map(),\n [],\n new Map(),\n moduleFactories,\n devModuleCache,\n instantiateModuleFn,\n applyModuleFactoryNameFn,\n autoAcceptRootModules\n )\n }\n}\n\n/**\n * Main entry point for applying an ECMAScript merged update.\n * This is called by both browser and Node.js runtimes with platform-specific callbacks.\n *\n * @param options.autoAcceptRootModules - If true, root modules auto-accept updates without explicit\n * module.hot.accept(). Used for server-side HMR where pages\n * auto-accept at the top level.\n */\nfunction applyEcmascriptMergedUpdateShared(options: {\n added: Map\n modified: Map\n disposedModules: Iterable\n evalModuleEntry: (entry: EcmascriptModuleEntry) => HotModuleFactoryFunction\n instantiateModule: (\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n ) => HotModule\n applyModuleFactoryName: (factory: HotModuleFactoryFunction) => void\n moduleFactories: ModuleFactories\n devModuleCache: ModuleCache\n autoAcceptRootModules: boolean\n}) {\n const {\n added,\n modified,\n disposedModules,\n evalModuleEntry,\n instantiateModule,\n applyModuleFactoryName,\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules,\n } = options\n\n const { outdatedModules, outdatedDependencies, newModuleFactories } =\n computeOutdatedModules(\n added,\n modified,\n evalModuleEntry,\n autoAcceptRootModules\n )\n\n applyInternal(\n outdatedModules,\n outdatedDependencies,\n disposedModules,\n newModuleFactories,\n moduleFactories,\n devModuleCache,\n instantiateModule,\n applyModuleFactoryName,\n autoAcceptRootModules\n )\n}\n"],"names":["devModuleCache","runtimeModules","moduleHotData","Map","moduleHotState","WeakMap","queuedInvalidatedModules","Set","UpdateApplyError","Error","name","dependencyChain","message","trackModuleImport","parentModule","childModuleId","childModule","children","indexOf","push","parents","id","formatDependencyChain","join","getAffectedModuleEffects","moduleId","autoAcceptRootModules","outdatedModules","outdatedDependencies","queue","nextItem","shift","has","add","undefined","type","module","hotState","get","selfAccepted","selfInvalidated","selfDeclined","parentId","parent","parentHotState","declinedDependencies","acceptedDependencies","set","length","mergeDependencies","target","source","deps","existing","dep","computedInvalidatedModules","invalidated","effect","outdatedModuleId","invariant","createModuleHot","hotData","disposeHandlers","acceptedErrorHandlers","hot","active","data","accept","modules","callback","errorHandler","i","decline","dispose","addDisposeHandler","removeDisposeHandler","idx","splice","invalidate","status","addStatusHandler","_handler","removeStatusHandler","check","Promise","resolve","applyInvalidatedModules","size","result","clear","computeOutdatedSelfAcceptedModules","outdatedSelfAcceptedModules","disposeModule","mode","disposeHandler","delete","childId","child","disposePhase","disposedModules","outdatedModuleParents","oldModule","instantiateModuleShared","sourceType","sourceData","moduleFactories","createModuleObjectFn","createContextFn","runModuleExecutionHooksFn","moduleFactory","factoryNotAvailableMessage","SourceType","Runtime","Parent","Update","exports","refresh","context","call","error","namespaceObject","interopEsm","computeChangedModules","entries","updates","chunkModulesMap","chunksAdded","chunksDeleted","added","modified","deleted","chunkPath","mergedChunkUpdate","Object","updateAdded","updateDeleted","keys","entry","computeOutdatedModules","evalModuleEntry","newModuleFactories","applyPhase","instantiateModuleFn","applyModuleFactoryNameFn","reportError","factory","callbackDeps","callbackErrorHandlers","acceptCallback","depList","cbDeps","err","dependencyId","err2","applyInternal","applyEcmascriptMergedUpdateShared","options","instantiateModule","applyModuleFactoryName"],"mappings":"AAAA,2CAA2C;AAC3C,6CAA6C;AAC7C,4CAA4C;AAC5C,4CAA4C;AAO5C;;;;;;CAMC,GAED;;;;CAIC,GACD,IAAIA;AAEJ;;CAEC,GACD,IAAIC;AAEJ;;;CAGC,GACD,MAAMC,gBAAwC,IAAIC;AAElD;;;CAGC,GACD,MAAMC,iBAAyC,IAAIC;AAEnD;;CAEC,GACD,MAAMC,2BAA0C,IAAIC;AAEpD,MAAMC,yBAAyBC;IAC7BC,OAAO,mBAAkB;IAEzBC,gBAA2B;IAE3BH,YAAYI,OAAe,EAAED,eAA2B,CAAE;QACxD,KAAK,CAACC;QACN,IAAI,CAACD,eAAe,GAAGA;IACzB;AACF;AAyBA;;;CAGC,GAC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,kBAAkB,EAAE,GACjEF,uBACEV,OACAC,UACAU,iBACAjH;IAGJgI,cACE/H,iBACAC,sBACAuE,iBACAyC,oBACAnC,iBACAzG,gBACA6J,mBACAC,wBACApI;AAEJ","ignoreList":[0]}}, - {"offset": {"line": 1517, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/nodejs/runtime/dev-base.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n\n/**\n * Development Node.js runtime.\n * Uses HotModule and shared HMR logic for hot module replacement support.\n */\n\n// Cast the module cache to HotModule for development mode\n// (hmr-runtime.ts declares devModuleCache as `let` variable expecting assignment)\n// This is safe because HotModule extends Module\ndevModuleCache = moduleCache as ModuleCache\n\n// this is read in runtime-utils.ts so it creates a module with direction for hmr\ncreateModuleWithDirectionFlag = true\n\nif (!globalThis.__turbopack_runtime_modules__) {\n globalThis.__turbopack_runtime_modules__ = new Set()\n}\nruntimeModules = globalThis.__turbopack_runtime_modules__\n\ninterface TurbopackNodeDevBuildContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n x: ExternalRequire\n y: ExternalImport\n C: typeof clearChunkCache\n}\n\nconst nodeDevContextPrototype =\n Context.prototype as TurbopackNodeDevBuildContext\n\nnodeDevContextPrototype.q = exportUrl\nnodeDevContextPrototype.M = moduleFactories\nnodeDevContextPrototype.c = devModuleCache\nnodeDevContextPrototype.R = resolvePathFromModule\nnodeDevContextPrototype.b = createWorker\nnodeDevContextPrototype.C = clearChunkCache\n\n/**\n * Instantiates a module in development mode using shared HMR logic.\n */\nfunction instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): HotModule {\n // Node.js: creates base module object (hot API added by shared code)\n const createModuleObjectFn = (moduleId: ModuleId) => {\n return createModuleWithDirection(moduleId) as HotModule\n }\n\n // Node.js: creates Context (no refresh parameter)\n const createContext = (\n module: HotModule,\n exports: Exports,\n _refresh?: any\n ) => {\n return new (Context as any as ContextConstructor)(\n module,\n exports\n )\n }\n\n // Node.js: no hooks wrapper, just execute directly\n const runWithHooks = (module: HotModule, exec: (refresh: any) => void) => {\n exec(undefined) // no refresh context\n }\n\n // Use shared instantiation logic (includes hot API setup)\n const newModule = instantiateModuleShared(\n id,\n sourceType,\n sourceData,\n moduleFactories,\n devModuleCache,\n runtimeModules,\n createModuleObjectFn,\n createContext,\n runWithHooks\n )\n\n // Node.js-specific: mark module as loaded\n ;(newModule as any).loaded = true\n\n return newModule\n}\n\n/**\n * Instantiates a runtime module in development mode.\n */\nfunction instantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): HotModule {\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): HotModule {\n const module = devModuleCache[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\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n * Also tracks parent-child relationships for HMR dependency tracking.\n */\n// @ts-ignore\nfunction getOrInstantiateModuleFromParent(\n id: ModuleId,\n sourceModule: HotModule\n): HotModule {\n // Track parent-child relationship\n trackModuleImport(sourceModule, id, devModuleCache[id])\n\n const module = devModuleCache[id]\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n return module\n }\n\n const newModule = instantiateModule(id, SourceType.Parent, sourceModule.id)\n\n // Track again after instantiation to ensure the relationship is recorded\n trackModuleImport(sourceModule, id, newModule)\n\n return newModule\n}\n\nmodule.exports = (sourcePath: ChunkPath) => ({\n m: (id: ModuleId) => getOrInstantiateRuntimeModule(sourcePath, id),\n c: (chunkData: ChunkData) => loadRuntimeChunk(sourcePath, chunkData),\n})\n"],"names":["devModuleCache","moduleCache","createModuleWithDirectionFlag","globalThis","__turbopack_runtime_modules__","Set","runtimeModules","nodeDevContextPrototype","Context","prototype","q","exportUrl","M","moduleFactories","c","R","resolvePathFromModule","b","createWorker","C","clearChunkCache","instantiateModule","id","sourceType","sourceData","createModuleObjectFn","moduleId","createModuleWithDirection","createContext","module1","exports","_refresh","runWithHooks","exec","undefined","newModule","instantiateModuleShared","loaded","instantiateRuntimeModule","chunkPath","SourceType","Runtime","getOrInstantiateRuntimeModule","error","getOrInstantiateModuleFromParent","sourceModule","trackModuleImport","Parent","module","sourcePath","m","chunkData","loadRuntimeChunk"],"mappings":"AAAA,oDAAoD,GAEpD,0CAA0C;AAC1C,+DAA+D;AAC/D,4DAA4D;AAE5D;;;CAGC,GAED,0DAA0D;AAC1D,kFAAkF;AAClF,gDAAgD;AAChDA,iBAAiBC;AAEjB,iFAAiF;AACjFC,gCAAgC;AAEhC,IAAI,CAACC,WAAWC,6BAA6B,EAAE;IAC7CD,WAAWC,6BAA6B,GAAG,IAAIC;AACjD;AACAC,iBAAiBH,WAAWC,6BAA6B;AASzD,MAAMG,0BACJC,QAAQC,SAAS;AAEnBF,wBAAwBG,CAAC,GAAGC;AAC5BJ,wBAAwBK,CAAC,GAAGC;AAC5BN,wBAAwBO,CAAC,GAAGd;AAC5BO,wBAAwBQ,CAAC,GAAGC;AAC5BT,wBAAwBU,CAAC,GAAGC;AAC5BX,wBAAwBY,CAAC,GAAGC;AAE5B;;CAEC,GACD,SAASC,kBACPC,EAAY,EACZC,UAAsB,EACtBC,UAAsB;IAEtB,qEAAqE;IACrE,MAAMC,uBAAuB,CAACC;QAC5B,OAAOC,0BAA0BD;IACnC;IAEA,kDAAkD;IAClD,MAAME,gBAAgB,CACpBC,SACAC,SACAC;QAEA,OAAO,IAAKvB,QACVqB,SACAC;IAEJ;IAEA,mDAAmD;IACnD,MAAME,eAAe,CAACH,SAAmBI;QACvCA,KAAKC,YAAW,qBAAqB;IACvC;IAEA,0DAA0D;IAC1D,MAAMC,YAAYC,wBAChBd,IACAC,YACAC,YACAX,iBACAb,gBACAM,gBACAmB,sBACAG,eACAI;IAIAG,UAAkBE,MAAM,GAAG;IAE7B,OAAOF;AACT;AAEA;;CAEC,GACD,SAASG,yBACPC,SAAoB,EACpBb,QAAkB;IAElB,OAAOL,kBAAkBK,UAAUc,WAAWC,OAAO,EAAEF;AACzD;AAEA;;CAEC,GACD,oFAAoF;AACpF,SAASG,8BACPH,SAAoB,EACpBb,QAAkB;IAElB,MAAMG,UAAS7B,cAAc,CAAC0B,SAAS;IAEvC,IAAIG,SAAQ;QACV,IAAIA,QAAOc,KAAK,EAAE;YAChB,MAAMd,QAAOc,KAAK;QACpB;QACA,OAAOd;IACT;IAEA,OAAOS,yBAAyBC,WAAWb;AAC7C;AAEA;;;CAGC,GACD,aAAa;AACb,SAASkB,iCACPtB,EAAY,EACZuB,YAAuB;IAEvB,kCAAkC;IAClCC,kBAAkBD,cAAcvB,IAAItB,cAAc,CAACsB,GAAG;IAEtD,MAAMO,UAAS7B,cAAc,CAACsB,GAAG;IAEjC,IAAIO,SAAQ;QACV,IAAIA,QAAOc,KAAK,EAAE;YAChB,MAAMd,QAAOc,KAAK;QACpB;QAEA,OAAOd;IACT;IAEA,MAAMM,YAAYd,kBAAkBC,IAAIkB,WAAWO,MAAM,EAAEF,aAAavB,EAAE;IAE1E,yEAAyE;IACzEwB,kBAAkBD,cAAcvB,IAAIa;IAEpC,OAAOA;AACT;AAEAa,OAAOlB,OAAO,GAAG,CAACmB,aAA0B,CAAC;QAC3CC,GAAG,CAAC5B,KAAiBoB,8BAA8BO,YAAY3B;QAC/DR,GAAG,CAACqC,YAAyBC,iBAAiBH,YAAYE;IAC5D,CAAC","ignoreList":[0]}}, - {"offset": {"line": 1601, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/nodejs/dev/hmr-client.ts"],"sourcesContent":["/// \n/// \n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\ntype NodeJsHmrPayload = {\n resource: {\n path: string\n headers?: Record\n }\n issues: Issue[]\n type: 'partial'\n instruction: EcmascriptMergedUpdate\n}\n\n/**\n * Appends the module code with //# sourceURL and //# sourceMappingURL so\n * that Node.js can resolve stack frames from `eval`ed server HMR modules back to\n * their original source files. Mirrors the browser's _eval in dev-backend-dom.ts.\n */\nfunction inlineSourcemaps(entry: EcmascriptModuleEntry): string {\n const [chunkPath, moduleId] = entry.url.split('?', 2)\n const absolutePath = path.resolve(RUNTIME_ROOT, chunkPath)\n const fileHref = url.pathToFileURL(absolutePath).href\n const sourceURL = moduleId ? `${fileHref}?${moduleId}` : fileHref\n let code = entry.code + '\\n\\n//# sourceURL=' + sourceURL\n if (entry.map) {\n code +=\n '\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,' +\n Buffer.from(entry.map).toString('base64')\n }\n return code\n}\n\nlet serverHmrUpdateHandler: ((msg: NodeJsHmrPayload) => void) | null = null\n\nfunction initializeServerHmr(\n moduleFactories: ModuleFactories,\n devModuleCache: ModuleCache\n): void {\n if (serverHmrUpdateHandler != null) {\n throw new Error('[Server HMR] Server HMR client is already initialized')\n }\n\n // Register the update handler for the server runtime\n serverHmrUpdateHandler = (msg: NodeJsHmrPayload) => {\n handleNodejsUpdate(msg, moduleFactories, devModuleCache)\n }\n}\n\n/**\n * Emits an HMR message to the registered update handler.\n * Node uses a simpler listener pattern than the browser's websocket connection.\n *\n * Note: This is only called via __turbopack_server_hmr_apply__ which ensures\n * the handler is initialized first via ensureHmrClientInitialized().\n */\nfunction emitMessage(msg: { type: string; data: any }): boolean {\n if (serverHmrUpdateHandler == null) {\n console.warn(\n '[Server HMR] No update handler registered to receive message:',\n msg\n )\n return false\n }\n\n try {\n serverHmrUpdateHandler(msg.data)\n return true\n } catch (err) {\n console.error('[Server HMR] Listener error:', err)\n return false\n }\n}\n\n/**\n * Handles server message updates and applies them to the Node.js runtime.\n * Uses shared HMR update logic from hmr-runtime.ts.\n */\nfunction handleNodejsUpdate(\n msg: NodeJsHmrPayload,\n moduleFactories: ModuleFactories,\n devModuleCache: ModuleCache\n): void {\n if (msg.type !== 'partial') {\n return\n }\n\n const instruction = msg.instruction\n if (instruction.type !== 'EcmascriptMergedUpdate') {\n return\n }\n\n try {\n const { entries = {}, chunks = {} } = instruction\n\n const evalModuleEntry = (entry: EcmascriptModuleEntry) => {\n // eslint-disable-next-line no-eval\n return (0, eval)(entry.map ? inlineSourcemaps(entry) : entry.code)\n }\n\n const { added, modified } = computeChangedModules(\n entries,\n chunks,\n undefined // no chunkModulesMap for Node.js\n )\n\n // Use shared HMR update implementation\n applyEcmascriptMergedUpdateShared({\n added,\n modified,\n disposedModules: [], // no disposedModules for Node.js (no chunk management)\n evalModuleEntry,\n instantiateModule,\n applyModuleFactoryName: () => {}, // Node doesn't use this\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules: true,\n })\n } catch (e) {\n console.error('[Server HMR] Update failed, full reload needed:', e)\n throw e\n }\n}\n"],"names":["inlineSourcemaps","entry","chunkPath","moduleId","url","split","absolutePath","path","resolve","RUNTIME_ROOT","fileHref","pathToFileURL","href","sourceURL","code","map","Buffer","from","toString","serverHmrUpdateHandler","initializeServerHmr","moduleFactories","devModuleCache","Error","msg","handleNodejsUpdate","emitMessage","console","warn","data","err","error","type","instruction","entries","chunks","evalModuleEntry","eval","added","modified","computeChangedModules","undefined","applyEcmascriptMergedUpdateShared","disposedModules","instantiateModule","applyModuleFactoryName","autoAcceptRootModules","e"],"mappings":"AAAA,+DAA+D;AAC/D,4DAA4D;AAE5D,oDAAoD,GAYpD;;;;CAIC,GACD,SAASA,iBAAiBC,KAA4B;IACpD,MAAM,CAACC,WAAWC,SAAS,GAAGF,MAAMG,GAAG,CAACC,KAAK,CAAC,KAAK;IACnD,MAAMC,eAAeC,KAAKC,OAAO,CAACC,cAAcP;IAChD,MAAMQ,WAAWN,IAAIO,aAAa,CAACL,cAAcM,IAAI;IACrD,MAAMC,YAAYV,WAAW,GAAGO,SAAS,CAAC,EAAEP,UAAU,GAAGO;IACzD,IA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P;YACAQ;YACAC,wBAAwB,KAAO;YAC/BxB;YACAC;YACAwB,uBAAuB;QACzB;IACF,EAAE,OAAOC,GAAG;QACVpB,QAAQI,KAAK,CAAC,mDAAmDgB;QACjE,MAAMA;IACR;AACF","ignoreList":[0]}}, - {"offset": {"line": 1683, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/nodejs/dev/dev-nodejs.ts"],"sourcesContent":["/// \n/// \n\n/**\n * Note: hmr-runtime.ts is embedded before this file, so its functions\n * (initializeServerHmr, emitMessage) are available in the same scope.\n */\n\n// Initialize server HMR client (connects to shared HMR infrastructure)\nlet hmrClientInitialized = false\nfunction ensureHmrClientInitialized() {\n if (hmrClientInitialized) return\n hmrClientInitialized = true\n\n // initializeServerHmr is from hmr-client.ts (embedded before this file)\n // moduleFactories is from dev-runtime.ts\n // devModuleCache is the HotModule-typed cache from dev-runtime.ts\n initializeServerHmr(moduleFactories, devModuleCache)\n}\n\nfunction __turbopack_server_hmr_apply__(update: NodeJsHmrPayload): boolean {\n try {\n ensureHmrClientInitialized()\n\n // emitMessage returns false if any listener failed to apply the update\n return emitMessage({\n type: 'turbopack-message',\n data: update,\n })\n } catch (err) {\n console.error('[Server HMR] Failed to apply update:', err)\n return false\n }\n}\n\n// Turbopack produces one server runtime per chunking context (e.g.\n// server/chunks/ssr/ for pages, server/chunks/ for route handlers), each with\n// its own moduleFactories. We keep a globalThis Map from __filename to handler\n// so updates are routed only to runtimes whose chunkPrefix matches the update's\n// chunk paths, skipping unnecessary eval() calls. Map.set() naturally replaces\n// stale entries when a runtime file is re-evaluated after require.cache eviction.\n\ntype HmrHandlerEntry = {\n handler: (update: NodeJsHmrPayload) => boolean\n /** Output directory relative to RUNTIME_ROOT, e.g. \"server/chunks/ssr\". */\n chunkPrefix: string\n}\n\nconst handlers: Map =\n globalThis.__turbopack_server_hmr_handlers__ ?? new Map()\n\nconst chunkPrefix = path.relative(RUNTIME_ROOT, path.dirname(__filename))\n\nif (handlers.size === 0) {\n // First registration in this generation: install the routing dispatcher.\n globalThis.__turbopack_server_hmr_apply__ = (\n update: NodeJsHmrPayload\n ): boolean => {\n const registry: Map =\n globalThis.__turbopack_server_hmr_handlers__ ?? new Map()\n const updateChunkPaths = Object.keys(update.instruction?.chunks ?? {})\n\n const toCall: HmrHandlerEntry[] = []\n if (updateChunkPaths.length === 0) {\n for (const entry of registry.values()) toCall.push(entry)\n } else {\n const seen = new Set()\n for (const chunkPath of updateChunkPaths) {\n const dir = path.dirname(chunkPath)\n for (const [key, entry] of registry) {\n if (dir === entry.chunkPrefix && !seen.has(key)) {\n seen.add(key)\n toCall.push(entry)\n }\n }\n }\n }\n\n let applied = false\n for (const { handler } of toCall) {\n try {\n if (handler(update)) applied = true\n } catch (err) {\n console.error('[Server HMR] Handler error:', err)\n }\n }\n\n return applied\n }\n}\n\nglobalThis.__turbopack_server_hmr_handlers__ = handlers\n\nhandlers.set(__filename, {\n handler: __turbopack_server_hmr_apply__,\n chunkPrefix,\n})\n"],"names":["hmrClientInitialized","ensureHmrClientInitialized","initializeServerHmr","moduleFactories","devModuleCache","__turbopack_server_hmr_apply__","update","emitMessage","type","data","err","console","error","handlers","globalThis","__turbopack_server_hmr_handlers__","Map","chunkPrefix","path","relative","RUNTIME_ROOT","dirname","__filename","size","registry","updateChunkPaths","Object","keys","instruction","chunks","toCall","length","entry","values","push","seen","Set","chunkPath","dir","key","has","add","applied","handler","set"],"mappings":"AAAA,+DAA+D;AAC/D,wCAAwC;AAExC;;;CAGC,GAED,uEAAuE;AACvE,IAAIA,uBAAuB;AAC3B,SAASC;IACP,IAAID,sBAAsB;IAC1BA,uBAAuB;IAEvB,wEAAwE;IACxE,yCAAyC;IACzC,kEAAkE;IAClEE,oBAAoBC,iBAAiBC;AACvC;AAEA,SAASC,+BAA+BC,MAAwB;IAC9D,IAAI;QACFL;QAEA,uEAAuE;QACvE,OAAOM,YAAY;YACjBC,MAAM;YACNC,MAAMH;QACR;IACF,EAAE,OAAOI,KAAK;QACZC,QAAQC,KAAK,CAAC,wCAAwCF;QACtD,OAAO;IACT;AACF;AAeA,MAAMG,WACJC,WAAWC,iCAAiC,IAAI,IAAIC;AAEtD,MAAMC,cAAcC,KAAKC,QAAQ,CAACC,cAAcF,KAAKG,OAAO,CAACC;AAE7D,IAAIT,SAASU,IAAI,KAAK,GAAG;IACvB,yEAAyE;IACzET,WAAWT,8BAA8B,GAAG,CAC1CC;QAEA,MAAMkB,WACJV,WAAWC,iCAAiC,IAAI,IAAIC;QACtD,MAAMS,mBAAmBC,OAAOC,IAAI,CAACrB,OAAOsB,WAAW,EAAEC,UAAU,CAAC;QAEpE,MAAMC,SAA4B,EAAE;QACpC,IAAIL,iBAAiBM,MAAM,KAAK,GAAG;YACjC,KAAK,MAAMC,SAASR,SAASS,MAAM,GAAIH,OAAOI,IAAI,CAACF;QACrD,OAAO;YACL,MAAMG,OAAO,IAAIC;YACjB,KAAK,MAAMC,aAAaZ,iBAAkB;gBACxC,MAAMa,MAAMpB,KAAKG,OAAO,CAACgB;gBACzB,KAAK,MAAM,CAACE,KAAKP,MAAM,IAAIR,SAAU;oBACnC,IAAIc,QAAQN,MAAMf,WAAW,IAAI,CAACkB,KAAKK,GAAG,CAACD,MAAM;wBAC/CJ,KAAKM,GAAG,CAACF;wBACTT,OAAOI,IAAI,CAACF;oBACd;gBACF;YACF;QACF;QAEA,IAAIU,UAAU;QACd,KAAK,MAAM,EAAEC,OAAO,EAAE,IAAIb,OAAQ;YAChC,IAAI;gBACF,IAAIa,QAAQrC,SAASoC,UAAU;YACjC,EAAE,OAAOhC,KAAK;gBACZC,QAAQC,KAAK,CAAC,+BAA+BF;YAC/C;QACF;QAEA,OAAOgC;IACT;AACF;AAEA5B,WAAWC,iCAAiC,GAAGF;AAE/CA,SAAS+B,GAAG,CAACtB,YAAY;IACvBqB,SAAStC;IACTY;AACF","ignoreList":[0]}}] -} \ No newline at end of file diff --git a/.next/dev/server/interception-route-rewrite-manifest.js b/.next/dev/server/interception-route-rewrite-manifest.js deleted file mode 100644 index 24f77ba..0000000 --- a/.next/dev/server/interception-route-rewrite-manifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__INTERCEPTION_ROUTE_REWRITE_MANIFEST="[]"; \ No newline at end of file diff --git a/.next/dev/server/middleware-build-manifest.js b/.next/dev/server/middleware-build-manifest.js deleted file mode 100644 index 5e07d36..0000000 --- a/.next/dev/server/middleware-build-manifest.js +++ /dev/null @@ -1,50 +0,0 @@ -globalThis.__BUILD_MANIFEST = { - "pages": { - "/_app": [ - "static/chunks/node_modules_next_dist_compiled_0o6l_m6._.js", - "static/chunks/node_modules_next_dist_shared_lib_0~pg0mt._.js", - "static/chunks/node_modules_next_dist_client_0pe1dg-._.js", - "static/chunks/node_modules_next_dist_0u_w_5s._.js", - "static/chunks/node_modules_next_app_0jt-zj..js", - "static/chunks/[next]_entry_page-loader_ts_0j~flwh._.js", - "static/chunks/node_modules_react-dom_0bruynb._.js", - "static/chunks/node_modules_0lx093h._.js", - "static/chunks/[root-of-the-server]__0c0okpg._.js", - "static/chunks/pages__app_07xvfw~._.js", - "static/chunks/turbopack-pages__app_0_wu8vy._.js" - ], - "/_error": [ - "static/chunks/node_modules_next_dist_compiled_0o6l_m6._.js", - "static/chunks/node_modules_next_dist_shared_lib_12bi_n7._.js", - "static/chunks/node_modules_next_dist_client_0pe1dg-._.js", - "static/chunks/node_modules_next_dist_0rt-2cr._.js", - "static/chunks/[next]_entry_page-loader_ts_0rqw6yo._.js", - "static/chunks/node_modules_react-dom_0bruynb._.js", - "static/chunks/node_modules_0lx093h._.js", - "static/chunks/[root-of-the-server]__01mw43t._.js", - "static/chunks/pages__error_07xvfw~._.js", - "static/chunks/turbopack-pages__error_016chbq._.js" - ] - }, - "devFiles": [], - "polyfillFiles": [ - "static/chunks/node_modules_next_dist_build_polyfills_polyfill-nomodule.js" - ], - "lowPriorityFiles": [ - "static/development/_buildManifest.js", - "static/development/_ssgManifest.js", - "static/development/_clientMiddlewareManifest.js" - ], - "rootMainFiles": [ - "static/chunks/[turbopack]_browser_dev_hmr-client_hmr-client_ts_10z625~._.js", - "static/chunks/node_modules_next_dist_compiled_next-devtools_index_0553esy.js", - "static/chunks/node_modules_next_dist_compiled_react-dom_058-ah~._.js", - "static/chunks/node_modules_next_dist_compiled_react-server-dom-turbopack_0p3wegg._.js", - "static/chunks/node_modules_next_dist_compiled_0rpq4pf._.js", - "static/chunks/node_modules_next_dist_client_0fhqo1d._.js", - "static/chunks/node_modules_next_dist_115brz8._.js", - "static/chunks/node_modules_@swc_helpers_cjs_0-4ujiy._.js", - "static/chunks/_0rqeker._.js", - "static/chunks/turbopack-_0p44nws._.js" - ] -}; diff --git a/.next/dev/server/middleware-manifest.json b/.next/dev/server/middleware-manifest.json deleted file mode 100644 index eb7130b..0000000 --- a/.next/dev/server/middleware-manifest.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 3, - "middleware": {}, - "sortedMiddleware": [], - "functions": {} -} \ No newline at end of file diff --git a/.next/dev/server/next-font-manifest.js b/.next/dev/server/next-font-manifest.js deleted file mode 100644 index dcd0697..0000000 --- a/.next/dev/server/next-font-manifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__NEXT_FONT_MANIFEST="{\n \"app\": {},\n \"appUsingSizeAdjust\": false,\n \"pages\": {},\n \"pagesUsingSizeAdjust\": false\n}" \ No newline at end of file diff --git a/.next/dev/server/next-font-manifest.json b/.next/dev/server/next-font-manifest.json deleted file mode 100644 index 7b7649c..0000000 --- a/.next/dev/server/next-font-manifest.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "app": {}, - "appUsingSizeAdjust": false, - "pages": {}, - "pagesUsingSizeAdjust": false -} \ No newline at end of file diff --git a/.next/dev/server/pages-manifest.json b/.next/dev/server/pages-manifest.json deleted file mode 100644 index 6ac637a..0000000 --- a/.next/dev/server/pages-manifest.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "/_app": "pages/_app.js", - "/_document": "pages/_document.js", - "/_error": "pages/_error.js" -} \ No newline at end of file diff --git a/.next/dev/server/server-reference-manifest.js b/.next/dev/server/server-reference-manifest.js deleted file mode 100644 index b7b38ad..0000000 --- a/.next/dev/server/server-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"HV9SQcPKgApkMU+g4yHRy0Kk4bI6p7veg84WeOiURbQ=\"\n}" \ No newline at end of file diff --git a/.next/dev/server/server-reference-manifest.json b/.next/dev/server/server-reference-manifest.json deleted file mode 100644 index d4db961..0000000 --- a/.next/dev/server/server-reference-manifest.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "node": {}, - "edge": {}, - "encryptionKey": "HV9SQcPKgApkMU+g4yHRy0Kk4bI6p7veg84WeOiURbQ=" -} \ No newline at end of file diff --git a/.next/dev/static/chunks/node_modules_next_dist_build_polyfills_polyfill-nomodule.js b/.next/dev/static/chunks/node_modules_next_dist_build_polyfills_polyfill-nomodule.js deleted file mode 100644 index ab422b9..0000000 --- a/.next/dev/static/chunks/node_modules_next_dist_build_polyfills_polyfill-nomodule.js +++ /dev/null @@ -1 +0,0 @@ -!function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var r,n,o=function(t){return t&&t.Math===Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),s=!a(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),c=Function.prototype.call,f=s?c.bind(c):function(){return c.apply(c,arguments)},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,p=h&&!l.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:l,v={f:p},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,y=g.call,m=s&&g.bind.bind(y,y),b=s?m:function(t){return function(){return y.apply(t,arguments)}},w=b({}.toString),S=b("".slice),E=function(t){return S(w(t),8,-1)},O=Object,x=b("".split),R=a(function(){return!O("z").propertyIsEnumerable(0)})?function(t){return"String"===E(t)?x(t,""):O(t)}:O,P=function(t){return null==t},A=TypeError,j=function(t){if(P(t))throw new A("Can't call method on "+t);return t},k=function(t){return R(j(t))},I="object"==typeof document&&document.all,T=void 0===I&&void 0!==I?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},M=function(t){return"object"==typeof t?null!==t:T(t)},L=function(t,e){return arguments.length<2?T(r=i[t])?r:void 0:i[t]&&i[t][e];var r},U=b({}.isPrototypeOf),N=i.navigator,C=N&&N.userAgent,_=C?String(C):"",F=i.process,B=i.Deno,D=F&&F.versions||B&&B.version,z=D&&D.v8;z&&(n=(r=z.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&_&&(!(r=_.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=_.match(/Chrome\/(\d+)/))&&(n=+r[1]);var W=n,q=i.String,H=!!Object.getOwnPropertySymbols&&!a(function(){var t=Symbol("symbol detection");return!q(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&W&&W<41}),$=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K=Object,G=$?function(t){return"symbol"==typeof t}:function(t){var e=L("Symbol");return T(e)&&U(e.prototype,K(t))},V=String,Y=function(t){try{return V(t)}catch(t){return"Object"}},X=TypeError,J=function(t){if(T(t))return t;throw new X(Y(t)+" is not a function")},Q=function(t,e){var r=t[e];return P(r)?void 0:J(r)},Z=TypeError,tt=Object.defineProperty,et=function(t,e){try{tt(i,t,{value:e,configurable:!0,writable:!0})}catch(r){i[t]=e}return e},rt=e(function(t){var e="__core-js_shared__",r=t.exports=i[e]||et(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),nt=function(t,e){return rt[t]||(rt[t]=e||{})},ot=Object,it=function(t){return ot(j(t))},at=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,e){return at(it(t),e)},st=0,ct=Math.random(),ft=b(1..toString),lt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ft(++st+ct,36)},ht=i.Symbol,pt=nt("wks"),vt=$?ht.for||ht:ht&&ht.withoutSetter||lt,dt=function(t){return ut(pt,t)||(pt[t]=H&&ut(ht,t)?ht[t]:vt("Symbol."+t)),pt[t]},gt=TypeError,yt=dt("toPrimitive"),mt=function(t,e){if(!M(t)||G(t))return t;var r,n=Q(t,yt);if(n){if(void 0===e&&(e="default"),r=f(n,t,e),!M(r)||G(r))return r;throw new gt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&T(r=t.toString)&&!M(n=f(r,t)))return n;if(T(r=t.valueOf)&&!M(n=f(r,t)))return n;if("string"!==e&&T(r=t.toString)&&!M(n=f(r,t)))return n;throw new Z("Can't convert object to primitive value")}(t,e)},bt=function(t){var e=mt(t,"string");return G(e)?e:e+""},wt=i.document,St=M(wt)&&M(wt.createElement),Et=function(t){return St?wt.createElement(t):{}},Ot=!u&&!a(function(){return 7!==Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a}),xt=Object.getOwnPropertyDescriptor,Rt={f:u?xt:function(t,e){if(t=k(t),e=bt(e),Ot)try{return xt(t,e)}catch(t){}if(ut(t,e))return d(!f(v.f,t,e),t[e])}},Pt=u&&a(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),At=String,jt=TypeError,kt=function(t){if(M(t))return t;throw new jt(At(t)+" is not an object")},It=TypeError,Tt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Lt="enumerable",Ut="configurable",Nt="writable",Ct={f:u?Pt?function(t,e,r){if(kt(t),e=bt(e),kt(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Nt in r&&!r[Nt]){var n=Mt(t,e);n&&n[Nt]&&(t[e]=r.value,r={configurable:Ut in r?r[Ut]:n[Ut],enumerable:Lt in r?r[Lt]:n[Lt],writable:!1})}return Tt(t,e,r)}:Tt:function(t,e,r){if(kt(t),e=bt(e),kt(r),Ot)try{return Tt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new It("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},_t=u?function(t,e,r){return Ct.f(t,e,d(1,r))}:function(t,e,r){return t[e]=r,t},Ft=Function.prototype,Bt=u&&Object.getOwnPropertyDescriptor,Dt=ut(Ft,"name"),zt={EXISTS:Dt,PROPER:Dt&&"something"===function(){}.name,CONFIGURABLE:Dt&&(!u||u&&Bt(Ft,"name").configurable)},Wt=b(Function.toString);T(rt.inspectSource)||(rt.inspectSource=function(t){return Wt(t)});var qt,Ht,$t,Kt=rt.inspectSource,Gt=i.WeakMap,Vt=T(Gt)&&/native code/.test(String(Gt)),Yt=nt("keys"),Xt=function(t){return Yt[t]||(Yt[t]=lt(t))},Jt={},Qt="Object already initialized",Zt=i.TypeError;if(Vt||rt.state){var te=rt.state||(rt.state=new(0,i.WeakMap));te.get=te.get,te.has=te.has,te.set=te.set,qt=function(t,e){if(te.has(t))throw new Zt(Qt);return e.facade=t,te.set(t,e),e},Ht=function(t){return te.get(t)||{}},$t=function(t){return te.has(t)}}else{var ee=Xt("state");Jt[ee]=!0,qt=function(t,e){if(ut(t,ee))throw new Zt(Qt);return e.facade=t,_t(t,ee,e),e},Ht=function(t){return ut(t,ee)?t[ee]:{}},$t=function(t){return ut(t,ee)}}var re,ne={set:qt,get:Ht,has:$t,enforce:function(t){return $t(t)?Ht(t):qt(t,{})},getterFor:function(t){return function(e){var r;if(!M(e)||(r=Ht(e)).type!==t)throw new Zt("Incompatible receiver, "+t+" required");return r}}},oe=e(function(t){var e=zt.CONFIGURABLE,r=ne.enforce,n=ne.get,o=String,i=Object.defineProperty,s=b("".slice),c=b("".replace),f=b([].join),l=u&&!a(function(){return 8!==i(function(){},"length",{value:8}).length}),h=String(String).split("String"),p=t.exports=function(t,n,a){"Symbol("===s(o(n),0,7)&&(n="["+c(o(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),a&&a.getter&&(n="get "+n),a&&a.setter&&(n="set "+n),(!ut(t,"name")||e&&t.name!==n)&&(u?i(t,"name",{value:n,configurable:!0}):t.name=n),l&&a&&ut(a,"arity")&&t.length!==a.arity&&i(t,"length",{value:a.arity});try{a&&ut(a,"constructor")&&a.constructor?u&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=r(t);return ut(p,"source")||(p.source=f(h,"string"==typeof n?n:"")),t};Function.prototype.toString=p(function(){return T(this)&&n(this).source||Kt(this)},"toString")}),ie=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(T(r)&&oe(r,i,n),n.global)o?t[e]=r:et(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Ct.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ae=Math.ceil,ue=Math.floor,se=Math.trunc||function(t){var e=+t;return(e>0?ue:ae)(e)},ce=function(t){var e=+t;return e!=e||0===e?0:se(e)},fe=Math.max,le=Math.min,he=function(t,e){var r=ce(t);return r<0?fe(r+e,0):le(r,e)},pe=Math.min,ve=function(t){var e=ce(t);return e>0?pe(e,9007199254740991):0},de=function(t){return ve(t.length)},ge=function(t){return function(e,r,n){var o=k(e),i=de(o);if(0===i)return!t&&-1;var a,u=he(n,i);if(t&&r!=r){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((t||u in o)&&o[u]===r)return t||u||0;return!t&&-1}},ye={includes:ge(!0),indexOf:ge(!1)},me=ye.indexOf,be=b([].push),we=function(t,e){var r,n=k(t),o=0,i=[];for(r in n)!ut(Jt,r)&&ut(n,r)&&be(i,r);for(;e.length>o;)ut(n,r=e[o++])&&(~me(i,r)||be(i,r));return i},Se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ee=Se.concat("length","prototype"),Oe={f:Object.getOwnPropertyNames||function(t){return we(t,Ee)}},xe={f:Object.getOwnPropertySymbols},Re=b([].concat),Pe=L("Reflect","ownKeys")||function(t){var e=Oe.f(kt(t)),r=xe.f;return r?Re(e,r(t)):e},Ae=function(t,e,r){for(var n=Pe(e),o=Ct.f,i=Rt.f,a=0;aa;)Ct.f(t,r=o[a++],n[r]);return t},Be={f:Fe},De=L("document","documentElement"),ze="prototype",We="script",qe=Xt("IE_PROTO"),He=function(){},$e=function(t){return"<"+We+">"+t+""},Ke=function(t){t.write($e("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ge=function(){try{re=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Ge="undefined"!=typeof document?document.domain&&re?Ke(re):(e=Et("iframe"),r="java"+We+":",e.style.display="none",De.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write($e("document.F=Object")),t.close(),t.F):Ke(re);for(var n=Se.length;n--;)delete Ge[ze][Se[n]];return Ge()};Jt[qe]=!0;var Ve=Object.create||function(t,e){var r;return null!==t?(He[ze]=kt(t),r=new He,He[ze]=null,r[qe]=t):r=Ge(),void 0===e?r:Be.f(r,e)},Ye=Ct.f,Xe=dt("unscopables"),Je=Array.prototype;void 0===Je[Xe]&&Ye(Je,Xe,{configurable:!0,value:Ve(null)});var Qe=function(t){Je[Xe][t]=!0};Ce({target:"Array",proto:!0},{at:function(t){var e=it(this),r=de(e),n=ce(t),o=n>=0?n:r+n;return o<0||o>=r?void 0:e[o]}}),Qe("at");var Ze=function(t,e){return b(i[t].prototype[e])},tr=(Ze("Array","at"),TypeError),er=function(t,e){if(!delete t[e])throw new tr("Cannot delete property "+Y(e)+" of "+Y(t))},rr=Math.min,nr=[].copyWithin||function(t,e){var r=it(this),n=de(r),o=he(t,n),i=he(e,n),a=arguments.length>2?arguments[2]:void 0,u=rr((void 0===a?n:he(a,n))-i,n-o),s=1;for(i0;)i in r?r[o]=r[i]:er(r,o),o+=s,i+=s;return r};Ce({target:"Array",proto:!0},{copyWithin:nr}),Qe("copyWithin"),Ze("Array","copyWithin"),Ce({target:"Array",proto:!0},{fill:function(t){for(var e=it(this),r=de(e),n=arguments.length,o=he(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:he(i,r);a>o;)e[o++]=t;return e}}),Qe("fill"),Ze("Array","fill");var or=function(t){if("Function"===E(t))return b(t)},ir=or(or.bind),ar=function(t,e){return J(t),void 0===e?t:s?ir(t,e):function(){return t.apply(e,arguments)}},ur=Array.isArray||function(t){return"Array"===E(t)},sr={};sr[dt("toStringTag")]="z";var cr="[object z]"===String(sr),fr=dt("toStringTag"),lr=Object,hr="Arguments"===E(function(){return arguments}()),pr=cr?E:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=lr(t),fr))?r:hr?E(e):"Object"===(n=E(e))&&T(e.callee)?"Arguments":n},vr=function(){},dr=L("Reflect","construct"),gr=/^\s*(?:class|function)\b/,yr=b(gr.exec),mr=!gr.test(vr),br=function(t){if(!T(t))return!1;try{return dr(vr,[],t),!0}catch(t){return!1}},wr=function(t){if(!T(t))return!1;switch(pr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mr||!!yr(gr,Kt(t))}catch(t){return!0}};wr.sham=!0;var Sr=!dr||a(function(){var t;return br(br.call)||!br(Object)||!br(function(){t=!0})||t})?wr:br,Er=dt("species"),Or=Array,xr=function(t,e){return new(function(t){var e;return ur(t)&&(Sr(e=t.constructor)&&(e===Or||ur(e.prototype))||M(e)&&null===(e=e[Er]))&&(e=void 0),void 0===e?Or:e}(t))(0===e?0:e)},Rr=b([].push),Pr=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,u=5===t||i;return function(s,c,f,l){for(var h,p,v=it(s),d=R(v),g=de(d),y=ar(c,f),m=0,b=l||xr,w=e?b(s,g):r||a?b(s,0):void 0;g>m;m++)if((u||m in d)&&(p=y(h=d[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Rr(w,h)}else switch(t){case 4:return!1;case 7:Rr(w,h)}return i?-1:n||o?o:w}},Ar={forEach:Pr(0),map:Pr(1),filter:Pr(2),some:Pr(3),every:Pr(4),find:Pr(5),findIndex:Pr(6),filterReject:Pr(7)},jr=Ar.find,kr="find",Ir=!0;kr in[]&&Array(1)[kr](function(){Ir=!1}),Ce({target:"Array",proto:!0,forced:Ir},{find:function(t){return jr(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe(kr),Ze("Array","find");var Tr=Ar.findIndex,Mr="findIndex",Lr=!0;Mr in[]&&Array(1)[Mr](function(){Lr=!1}),Ce({target:"Array",proto:!0,forced:Lr},{findIndex:function(t){return Tr(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe(Mr),Ze("Array","findIndex");var Ur=TypeError,Nr=function(t){if(t>9007199254740991)throw Ur("Maximum allowed index exceeded");return t},Cr=function(t,e,r,n,o,i,a,u){for(var s,c,f=o,l=0,h=!!a&&ar(a,u);l0&&ur(s)?(c=de(s),f=Cr(t,e,s,c,f,i-1)-1):(Nr(f+1),t[f]=s),f++),l++;return f},_r=Cr;Ce({target:"Array",proto:!0},{flatMap:function(t){var e,r=it(this),n=de(r);return J(t),(e=xr(r,0)).length=_r(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}}),Qe("flatMap"),Ze("Array","flatMap"),Ce({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=it(this),r=de(e),n=xr(e,0);return n.length=_r(n,e,e,r,0,void 0===t?1:ce(t)),n}}),Qe("flat"),Ze("Array","flat");var Fr,Br,Dr,zr=String,Wr=function(t){if("Symbol"===pr(t))throw new TypeError("Cannot convert a Symbol value to a string");return zr(t)},qr=b("".charAt),Hr=b("".charCodeAt),$r=b("".slice),Kr=function(t){return function(e,r){var n,o,i=Wr(j(e)),a=ce(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Hr(i,a))<55296||n>56319||a+1===u||(o=Hr(i,a+1))<56320||o>57343?t?qr(i,a):n:t?$r(i,a,a+2):o-56320+(n-55296<<10)+65536}},Gr={codeAt:Kr(!1),charAt:Kr(!0)},Vr=!a(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Yr=Xt("IE_PROTO"),Xr=Object,Jr=Xr.prototype,Qr=Vr?Xr.getPrototypeOf:function(t){var e=it(t);if(ut(e,Yr))return e[Yr];var r=e.constructor;return T(r)&&e instanceof r?r.prototype:e instanceof Xr?Jr:null},Zr=dt("iterator"),tn=!1;[].keys&&("next"in(Dr=[].keys())?(Br=Qr(Qr(Dr)))!==Object.prototype&&(Fr=Br):tn=!0);var en=!M(Fr)||a(function(){var t={};return Fr[Zr].call(t)!==t});en&&(Fr={}),T(Fr[Zr])||ie(Fr,Zr,function(){return this});var rn={IteratorPrototype:Fr,BUGGY_SAFARI_ITERATORS:tn},nn=Ct.f,on=dt("toStringTag"),an=function(t,e,r){t&&!r&&(t=t.prototype),t&&!ut(t,on)&&nn(t,on,{configurable:!0,value:e})},un={},sn=rn.IteratorPrototype,cn=function(){return this},fn=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Ve(sn,{next:d(+!n,r)}),an(t,o,!1),un[o]=cn,t},ln=function(t,e,r){try{return b(J(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},hn=String,pn=TypeError,vn=function(t){if(function(t){return M(t)||null===t}(t))return t;throw new pn("Can't set "+hn(t)+" as a prototype")},dn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=ln(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return j(r),vn(n),M(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),gn=zt.PROPER,yn=zt.CONFIGURABLE,mn=rn.IteratorPrototype,bn=rn.BUGGY_SAFARI_ITERATORS,wn=dt("iterator"),Sn="keys",En="values",On="entries",xn=function(){return this},Rn=function(t,e,r,n,o,i,a){fn(r,e,n);var u,s,c,l=function(t){if(t===o&&g)return g;if(!bn&&t&&t in v)return v[t];switch(t){case Sn:case En:case On:return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+" Iterator",p=!1,v=t.prototype,d=v[wn]||v["@@iterator"]||o&&v[o],g=!bn&&d||l(o),y="Array"===e&&v.entries||d;if(y&&(u=Qr(y.call(new t)))!==Object.prototype&&u.next&&(Qr(u)!==mn&&(dn?dn(u,mn):T(u[wn])||ie(u,wn,xn)),an(u,h,!0)),gn&&o===En&&d&&d.name!==En&&(yn?_t(v,"name",En):(p=!0,g=function(){return f(d,this)})),o)if(s={values:l(En),keys:i?g:l(Sn),entries:l(On)},a)for(c in s)(bn||p||!(c in v))&&ie(v,c,s[c]);else Ce({target:e,proto:!0,forced:bn||p},s);return v[wn]!==g&&ie(v,wn,g,{name:o}),un[e]=g,s},Pn=function(t,e){return{value:t,done:e}},An=Gr.charAt,jn="String Iterator",kn=ne.set,In=ne.getterFor(jn);Rn(String,"String",function(t){kn(this,{type:jn,string:Wr(t),index:0})},function(){var t,e=In(this),r=e.string,n=e.index;return n>=r.length?Pn(void 0,!0):(t=An(r,n),e.index+=t.length,Pn(t,!1))});var Tn=function(t,e,r){var n,o;kt(t);try{if(!(n=Q(t,"return"))){if("throw"===e)throw r;return r}n=f(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return kt(n),r},Mn=function(t,e,r,n){try{return n?e(kt(r)[0],r[1]):e(r)}catch(e){Tn(t,"throw",e)}},Ln=dt("iterator"),Un=Array.prototype,Nn=function(t){return void 0!==t&&(un.Array===t||Un[Ln]===t)},Cn=function(t,e,r){u?Ct.f(t,e,d(0,r)):t[e]=r},_n=dt("iterator"),Fn=function(t){if(!P(t))return Q(t,_n)||Q(t,"@@iterator")||un[pr(t)]},Bn=TypeError,Dn=function(t,e){var r=arguments.length<2?Fn(t):e;if(J(r))return kt(f(r,t));throw new Bn(Y(t)+" is not iterable")},zn=Array,Wn=function(t){var e=it(t),r=Sr(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=ar(o,n>2?arguments[2]:void 0));var a,u,s,c,l,h,p=Fn(e),v=0;if(!p||this===zn&&Nn(p))for(a=de(e),u=r?new this(a):zn(a);a>v;v++)h=i?o(e[v],v):e[v],Cn(u,v,h);else for(u=r?new this:[],l=(c=Dn(e,p)).next;!(s=f(l,c)).done;v++)h=i?Mn(c,o,[s.value,v],!0):s.value,Cn(u,v,h);return u.length=v,u},qn=dt("iterator"),Hn=!1;try{var $n=0,Kn={next:function(){return{done:!!$n++}},return:function(){Hn=!0}};Kn[qn]=function(){return this},Array.from(Kn,function(){throw 2})}catch(t){}var Gn=function(t,e){try{if(!e&&!Hn)return!1}catch(t){return!1}var r=!1;try{var n={};n[qn]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Vn=!Gn(function(t){Array.from(t)});Ce({target:"Array",stat:!0,forced:Vn},{from:Wn});var Yn=i,Xn=ye.includes,Jn=a(function(){return!Array(1).includes()});Ce({target:"Array",proto:!0,forced:Jn},{includes:function(t){return Xn(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe("includes"),Ze("Array","includes");var Qn=Ct.f,Zn="Array Iterator",to=ne.set,eo=ne.getterFor(Zn),ro=Rn(Array,"Array",function(t,e){to(this,{type:Zn,target:k(t),index:0,kind:e})},function(){var t=eo(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Pn(void 0,!0);switch(t.kind){case"keys":return Pn(r,!1);case"values":return Pn(e[r],!1)}return Pn([r,e[r]],!1)},"values"),no=un.Arguments=un.Array;if(Qe("keys"),Qe("values"),Qe("entries"),u&&"values"!==no.name)try{Qn(no,"name",{value:"values"})}catch(t){}cr||ie(Object.prototype,"toString",cr?{}.toString:function(){return"[object "+pr(this)+"]"},{unsafe:!0}),Ze("Array","values");var oo=Array,io=a(function(){function t(){}return!(oo.of.call(t)instanceof t)});Ce({target:"Array",stat:!0,forced:io},{of:function(){for(var t=0,e=arguments.length,r=new(Sr(this)?this:oo)(e);e>t;)Cn(r,t,arguments[t++]);return r.length=e,r}});var ao=dt("hasInstance"),uo=Function.prototype;ao in uo||Ct.f(uo,ao,{value:oe(function(t){if(!T(this)||!M(t))return!1;var e=this.prototype;return M(e)?U(e,t):t instanceof this},ao)}),dt("hasInstance");var so=function(t,e,r){return r.get&&oe(r.get,e,{getter:!0}),r.set&&oe(r.set,e,{setter:!0}),Ct.f(t,e,r)},co=zt.EXISTS,fo=Function.prototype,lo=b(fo.toString),ho=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,po=b(ho.exec);u&&!co&&so(fo,"name",{configurable:!0,get:function(){try{return po(ho,lo(this))[1]}catch(t){return""}}});var vo=b([].slice),go=Oe.f,yo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mo={f:function(t){return yo&&"Window"===E(t)?function(t){try{return go(t)}catch(t){return vo(yo)}}(t):go(k(t))}},bo=a(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),wo=Object.isExtensible,So=a(function(){wo(1)})||bo?function(t){return!!M(t)&&(!bo||"ArrayBuffer"!==E(t))&&(!wo||wo(t))}:wo,Eo=!a(function(){return Object.isExtensible(Object.preventExtensions({}))}),Oo=e(function(t){var e=Ct.f,r=!1,n=lt("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var t=Oe.f,e=b([].splice),o={};o[n]=1,t(o).length&&(Oe.f=function(r){for(var o=t(r),i=0,a=o.length;ii;i++)if((u=y(t[i]))&&U(Po,u))return u;return new Ro(!1)}n=Dn(t,o)}for(s=h?t.next:n.next;!(c=f(s,n)).done;){try{u=y(c.value)}catch(t){Tn(n,"throw",t)}if("object"==typeof u&&u&&U(Po,u))return u}return new Ro(!1)},jo=TypeError,ko=function(t,e){if(U(e,t))return t;throw new jo("Incorrect invocation")},Io=function(t,e,r){var n,o;return dn&&T(n=e.constructor)&&n!==r&&M(o=n.prototype)&&o!==r.prototype&&dn(t,o),t},To=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),u=n?"set":"add",s=i[t],c=s&&s.prototype,f=s,l={},h=function(t){var e=b(c[t]);ie(c,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!M(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!M(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!M(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(Ue(t,!T(s)||!(o||c.forEach&&!a(function(){(new s).entries().next()}))))f=r.getConstructor(e,t,n,u),Oo.enable();else if(Ue(t,!0)){var p=new f,v=p[u](o?{}:-0,1)!==p,d=a(function(){p.has(1)}),g=Gn(function(t){new s(t)}),y=!o&&a(function(){for(var t=new s,e=5;e--;)t[u](e,e);return!t.has(-0)});g||((f=e(function(t,e){ko(t,c);var r=Io(new s,t,f);return P(e)||Ao(e,r[u],{that:r,AS_ENTRIES:n}),r})).prototype=c,c.constructor=f),(d||y)&&(h("delete"),h("has"),n&&h("get")),(y||v)&&h(u),o&&c.clear&&delete c.clear}return l[t]=f,Ce({global:!0,constructor:!0,forced:f!==s},l),an(f,t),o||r.setStrong(f,t,n),f},Mo=function(t,e,r){for(var n in e)ie(t,n,e[n],r);return t},Lo=dt("species"),Uo=function(t){var e=L(t);u&&e&&!e[Lo]&&so(e,Lo,{configurable:!0,get:function(){return this}})},No=Oo.fastKey,Co=ne.set,_o=ne.getterFor,Fo={getConstructor:function(t,e,r,n){var o=t(function(t,o){ko(t,i),Co(t,{type:e,index:Ve(null),first:null,last:null,size:0}),u||(t.size=0),P(o)||Ao(o,t[n],{that:t,AS_ENTRIES:r})}),i=o.prototype,a=_o(e),s=function(t,e,r){var n,o,i=a(t),s=c(t,e);return s?s.value=r:(i.last=s={index:o=No(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=s),n&&(n.next=s),u?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},c=function(t,e){var r,n=a(t),o=No(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return Mo(i,{clear:function(){for(var t=a(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=Ve(null),u?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=c(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),u?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=ar(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),Mo(i,r?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),u&&so(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=_o(e),i=_o(n);Rn(t,e,function(t,e){Co(this,{type:n,target:t,state:o(t),kind:e,last:null})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?Pn("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,Pn(void 0,!0))},r?"entries":"values",!r,!0),Uo(e)}};To("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Fo);var Bo=Map.prototype,Do={Map:Map,set:b(Bo.set),get:b(Bo.get),has:b(Bo.has),remove:b(Bo.delete),proto:Bo},zo=Do.Map,Wo=Do.has,qo=Do.get,Ho=Do.set,$o=b([].push),Ko=a(function(){return 1!==zo.groupBy("ab",function(t){return t}).get("a").length});Ce({target:"Map",stat:!0,forced:Ko},{groupBy:function(t,e){j(t),J(e);var r=new zo,n=0;return Ao(t,function(t){var o=e(t,n++);Wo(r,o)?$o(qo(r,o),t):Ho(r,o,[t])}),r}});var Go={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Vo=Et("span").classList,Yo=Vo&&Vo.constructor&&Vo.constructor.prototype,Xo=Yo===Object.prototype?void 0:Yo,Jo=dt("iterator"),Qo=ro.values,Zo=function(t,e){if(t){if(t[Jo]!==Qo)try{_t(t,Jo,Qo)}catch(e){t[Jo]=Qo}if(an(t,e,!0),Go[e])for(var r in ro)if(t[r]!==ro[r])try{_t(t,r,ro[r])}catch(e){t[r]=ro[r]}}};for(var ti in Go)Zo(i[ti]&&i[ti].prototype,ti);Zo(Xo,"DOMTokenList");var ei=function(t,e,r){return function(n){var o=it(n),i=arguments.length,a=i>1?arguments[1]:void 0,u=void 0!==a,s=u?ar(a,i>2?arguments[2]:void 0):void 0,c=new t,f=0;return Ao(o,function(t){var n=u?s(t,f++):t;r?e(c,kt(n)[0],n[1]):e(c,n)}),c}};Ce({target:"Map",stat:!0,forced:!0},{from:ei(Do.Map,Do.set,!0)});var ri=function(t,e,r){return function(){for(var n=new t,o=arguments.length,i=0;i1?arguments[1]:void 0);return!1!==di(e,function(t,n){if(!r(t,n,e))return!1},!0)}});var gi=Do.Map,yi=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new gi;return di(e,function(t,o){r(t,o,e)&&yi(n,o,t)}),n}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=di(e,function(t,n){if(r(t,n,e))return{value:t}},!0);return n&&n.value}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=di(e,function(t,n){if(r(t,n,e))return{key:n}},!0);return n&&n.key}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return!0===di(oi(this),function(e){if((r=e)===(n=t)||r!=r&&n!=n)return!0;var r,n},!0)}});var mi=Do.Map;Ce({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var r=new(T(this)?this:mi);J(e);var n=J(r.set);return Ao(t,function(t){f(n,r,e(t),t)}),r}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var e=di(oi(this),function(e,r){if(e===t)return{key:r}},!0);return e&&e.key}});var bi=Do.Map,wi=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new bi;return di(e,function(t,o){wi(n,r(t,o,e),t)}),n}});var Si=Do.Map,Ei=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new Si;return di(e,function(t,o){Ei(n,o,r(t,o,e))}),n}});var Oi=Do.set;Ce({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=oi(this),r=arguments.length,n=0;n1?arguments[1]:void 0);return!0===di(e,function(t,n){if(r(t,n,e))return!0},!0)}});var Ri=TypeError,Pi=Do.get,Ai=Do.has,ji=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var r=oi(this),n=arguments.length;J(e);var o=Ai(r,t);if(!o&&n<3)throw new Ri("Updating absent value");var i=o?Pi(r,t):J(n>2?arguments[2]:void 0)(t,r);return ji(r,t,e(i,t,r)),r}});var ki=TypeError,Ii=function(t,e){var r,n=kt(this),o=J(n.get),i=J(n.has),a=J(n.set),u=arguments.length>2?arguments[2]:void 0;if(!T(e)&&!T(u))throw new ki("At least one callback required");return f(i,n,t)?(r=f(o,n,t),T(e)&&(r=e(r),f(a,n,t,r))):T(u)&&(r=u(),f(a,n,t,r)),r};Ce({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Ii}),Ce({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Ii});var Ti=b(1..valueOf),Mi="\t\n\v\f\r                 \u2028\u2029\ufeff",Li=b("".replace),Ui=RegExp("^["+Mi+"]+"),Ni=RegExp("(^|[^"+Mi+"])["+Mi+"]+$"),Ci=function(t){return function(e){var r=Wr(j(e));return 1&t&&(r=Li(r,Ui,"")),2&t&&(r=Li(r,Ni,"$1")),r}},_i={start:Ci(1),end:Ci(2),trim:Ci(3)},Fi=Oe.f,Bi=Rt.f,Di=Ct.f,zi=_i.trim,Wi="Number",qi=i[Wi],Hi=qi.prototype,$i=i.TypeError,Ki=b("".slice),Gi=b("".charCodeAt),Vi=Ue(Wi,!qi(" 0o1")||!qi("0b1")||qi("+0x1")),Yi=function(t){var e,r=arguments.length<1?0:qi(function(t){var e=mt(t,"number");return"bigint"==typeof e?e:function(t){var e,r,n,o,i,a,u,s,c=mt(t,"number");if(G(c))throw new $i("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=zi(c),43===(e=Gi(c,0))||45===e){if(88===(r=Gi(c,2))||120===r)return NaN}else if(48===e){switch(Gi(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=Ki(c,2)).length,u=0;uo)return NaN;return parseInt(i,n)}return+c}(e)}(t));return U(Hi,e=this)&&a(function(){Ti(e)})?Io(Object(r),this,Yi):r};Yi.prototype=Hi,Vi&&(Hi.constructor=Yi),Ce({global:!0,constructor:!0,wrap:!0,forced:Vi},{Number:Yi}),Vi&&function(t,e){for(var r,n=u?Fi(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)ut(e,r=n[o])&&!ut(t,r)&&Di(t,r,Bi(e,r))}(Yn[Wi],qi),Ce({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var Xi=i.isFinite;Ce({target:"Number",stat:!0},{isFinite:Number.isFinite||function(t){return"number"==typeof t&&Xi(t)}});var Ji=Math.floor,Qi=Number.isInteger||function(t){return!M(t)&&isFinite(t)&&Ji(t)===t};Ce({target:"Number",stat:!0},{isInteger:Qi}),Ce({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Zi=Math.abs;Ce({target:"Number",stat:!0},{isSafeInteger:function(t){return Qi(t)&&Zi(t)<=9007199254740991}}),Ce({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),Ce({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var ta=_i.trim,ea=b("".charAt),ra=i.parseFloat,na=i.Symbol,oa=na&&na.iterator,ia=1/ra(Mi+"-0")!=-Infinity||oa&&!a(function(){ra(Object(oa))})?function(t){var e=ta(Wr(t)),r=ra(e);return 0===r&&"-"===ea(e,0)?-0:r}:ra;Ce({target:"Number",stat:!0,forced:Number.parseFloat!==ia},{parseFloat:ia});var aa=_i.trim,ua=i.parseInt,sa=i.Symbol,ca=sa&&sa.iterator,fa=/^[+-]?0x/i,la=b(fa.exec),ha=8!==ua(Mi+"08")||22!==ua(Mi+"0x16")||ca&&!a(function(){ua(Object(ca))})?function(t,e){var r=aa(Wr(t));return ua(r,e>>>0||(la(fa,r)?16:10))}:ua;Ce({target:"Number",stat:!0,forced:Number.parseInt!==ha},{parseInt:ha});var pa=b(v.f),va=b([].push),da=u&&a(function(){var t=Object.create(null);return t[2]=2,!pa(t,2)}),ga=function(t){return function(e){for(var r,n=k(e),o=_e(n),i=da&&null===Qr(n),a=o.length,s=0,c=[];a>s;)r=o[s++],u&&!(i?r in n:pa(n,r))||va(c,t?[r,n[r]]:n[r]);return c}},ya={entries:ga(!0),values:ga(!1)},ma=ya.entries;Ce({target:"Object",stat:!0},{entries:function(t){return ma(t)}}),Ce({target:"Object",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(t){for(var e,r,n=k(t),o=Rt.f,i=Pe(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&Cn(a,e,r);return a}});var ba=a(function(){_e(1)});Ce({target:"Object",stat:!0,forced:ba},{keys:function(t){return _e(it(t))}});var wa=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Ce({target:"Object",stat:!0},{is:wa});var Sa=ya.values;Ce({target:"Object",stat:!0},{values:function(t){return Sa(t)}}),Ce({target:"Object",stat:!0},{hasOwn:ut});var Ea=Function.prototype,Oa=Ea.apply,xa=Ea.call,Ra="object"==typeof Reflect&&Reflect.apply||(s?xa.bind(Oa):function(){return xa.apply(Oa,arguments)}),Pa=!a(function(){Reflect.apply(function(){})});Ce({target:"Reflect",stat:!0,forced:Pa},{apply:function(t,e,r){return Ra(J(t),e,kt(r))}});var Aa=Function,ja=b([].concat),ka=b([].join),Ia={},Ta=s?Aa.bind:function(t){var e=J(this),r=e.prototype,n=vo(arguments,1),o=function(){var r=ja(n,vo(arguments));return this instanceof o?function(t,e,r){if(!ut(Ia,e)){for(var n=[],o=0;ob)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}),gs=Oe.f,ys=ne.enforce,ms=dt("match"),bs=i.RegExp,ws=bs.prototype,Ss=i.SyntaxError,Es=b(ws.exec),Os=b("".charAt),xs=b("".replace),Rs=b("".indexOf),Ps=b("".slice),As=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,js=/a/g,ks=/a/g,Is=new bs(js)!==js,Ts=cs.MISSED_STICKY,Ms=cs.UNSUPPORTED_Y,Ls=u&&(!Is||Ts||ps||ds||a(function(){return ks[ms]=!1,bs(js)!==js||bs(ks)===ks||"/a/i"!==String(bs(js,"i"))}));if(Ue("RegExp",Ls)){for(var Us=function(t,e){var r,n,o,i,a,u,s=U(ws,this),c=es(t),f=void 0===e,l=[],h=t;if(!s&&c&&f&&t.constructor===Us)return t;if((c||U(ws,t))&&(t=t.source,f&&(e=os(h))),t=void 0===t?"":Wr(t),e=void 0===e?"":Wr(e),h=t,ps&&"dotAll"in js&&(n=!!e&&Rs(e,"s")>-1)&&(e=xs(e,/s/g,"")),r=e,Ts&&"sticky"in js&&(o=!!e&&Rs(e,"y")>-1)&&Ms&&(e=xs(e,/y/g,"")),ds&&(i=function(t){for(var e,r=t.length,n=0,o="",i=[],a=Ve(null),u=!1,s=!1,c=0,f="";n<=r;n++){if("\\"===(e=Os(t,n)))e+=Os(t,++n);else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:if(o+=e,"?:"===Ps(t,n+1,n+3))continue;Es(As,Ps(t,n+1))&&(n+=2,s=!0),c++;continue;case">"===e&&s:if(""===f||ut(a,f))throw new Ss("Invalid capture group name");a[f]=!0,i[i.length]=[f,c],s=!1,f="";continue}s?f+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=Io(bs(t,e),s?this:ws,Us),(n||o||l.length)&&(u=ys(a),n&&(u.dotAll=!0,u.raw=Us(function(t){for(var e,r=t.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(e=Os(t,n))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+Os(t,++n);return o}(t),r)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==h)try{_t(a,"source",""===h?"(?:)":h)}catch(t){}return a},Ns=gs(bs),Cs=0;Ns.length>Cs;)ls(Us,bs,Ns[Cs++]);ws.constructor=Us,Us.prototype=ws,ie(i,"RegExp",Us,{constructor:!0})}Uo("RegExp");var _s=zt.PROPER,Fs="toString",Bs=RegExp.prototype,Ds=Bs[Fs];(a(function(){return"/a/b"!==Ds.call({source:"a",flags:"b"})})||_s&&Ds.name!==Fs)&&ie(Bs,Fs,function(){var t=kt(this);return"/"+Wr(t.source)+"/"+Wr(os(t))},{unsafe:!0});var zs=ne.get,Ws=RegExp.prototype,qs=TypeError;u&&ps&&so(Ws,"dotAll",{configurable:!0,get:function(){if(this!==Ws){if("RegExp"===E(this))return!!zs(this).dotAll;throw new qs("Incompatible receiver, RegExp required")}}});var Hs=ne.get,$s=nt("native-string-replace",String.prototype.replace),Ks=RegExp.prototype.exec,Gs=Ks,Vs=b("".charAt),Ys=b("".indexOf),Xs=b("".replace),Js=b("".slice),Qs=function(){var t=/a/,e=/b*/g;return f(Ks,t,"a"),f(Ks,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Zs=cs.BROKEN_CARET,tc=void 0!==/()??/.exec("")[1];(Qs||tc||Zs||ps||ds)&&(Gs=function(t){var e,r,n,o,i,a,u,s=this,c=Hs(s),l=Wr(t),h=c.raw;if(h)return h.lastIndex=s.lastIndex,e=f(Gs,h,l),s.lastIndex=h.lastIndex,e;var p=c.groups,v=Zs&&s.sticky,d=f(rs,s),g=s.source,y=0,m=l;if(v&&(d=Xs(d,"y",""),-1===Ys(d,"g")&&(d+="g"),m=Js(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Vs(l,s.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,y++),r=new RegExp("^(?:"+g+")",d)),tc&&(r=new RegExp("^"+g+"$(?!\\s)",d)),Qs&&(n=s.lastIndex),o=f(Ks,v?r:s,m),v?o?(o.input=Js(o.input,y),o[0]=Js(o[0],y),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Qs&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),tc&&o&&o.length>1&&f($s,o[0],r,function(){for(i=1;i]*>)/g,Oc=/\$([$&'`]|\d{1,2})/g,xc=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Oc;return void 0!==o&&(o=it(o),s=Ec),wc(i,s,function(i,s){var c;switch(bc(s,0)){case"$":return"$";case"&":return t;case"`":return Sc(e,0,r);case"'":return Sc(e,a);case"<":c=o[Sc(s,1,-1)];break;default:var f=+s;if(0===f)return i;if(f>u){var l=mc(f/10);return 0===l?i:l<=u?void 0===n[l-1]?bc(s,1):n[l-1]+bc(s,1):i}c=n[f-1]}return void 0===c?"":c})},Rc=dt("replace"),Pc=Math.max,Ac=Math.min,jc=b([].concat),kc=b([].push),Ic=b("".indexOf),Tc=b("".slice),Mc="$0"==="a".replace(/./,"$0"),Lc=!!/./[Rc]&&""===/./[Rc]("a","$0"),Uc=!a(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")});pc("replace",function(t,e,r){var n=Lc?"$":"$0";return[function(t,r){var n=j(this),o=P(t)?void 0:Q(t,Rc);return o?f(o,t,n,r):f(e,Wr(n),t,r)},function(t,o){var i=kt(this),a=Wr(t);if("string"==typeof o&&-1===Ic(o,n)&&-1===Ic(o,"$<")){var u=r(e,i,a,o);if(u.done)return u.value}var s=T(o);s||(o=Wr(o));var c,f=i.global;f&&(c=i.unicode,i.lastIndex=0);for(var l,h=[];null!==(l=yc(i,a))&&(kc(h,l),f);)""===Wr(l[0])&&(i.lastIndex=dc(a,ve(i.lastIndex),c));for(var p,v="",d=0,g=0;g=d&&(v+=Tc(a,d,b)+y,d=b+m.length)}return v+Tc(a,d)}]},!Uc||!Mc||Lc),pc("search",function(t,e,r){return[function(e){var r=j(this),n=P(e)?void 0:Q(e,t);return n?f(n,e,r):new RegExp(e)[t](Wr(r))},function(t){var n=kt(this),o=Wr(t),i=r(e,n,o);if(i.done)return i.value;var a=n.lastIndex;wa(a,0)||(n.lastIndex=0);var u=yc(n,o);return wa(n.lastIndex,a)||(n.lastIndex=a),null===u?-1:u.index}]});var Nc=dt("species"),Cc=function(t,e){var r,n=kt(t).constructor;return void 0===n||P(r=kt(n)[Nc])?e:La(r)},_c=cs.UNSUPPORTED_Y,Fc=Math.min,Bc=b([].push),Dc=b("".slice),zc=!a(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),Wc="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;pc("split",function(t,e,r){var n="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:f(e,this,t,r)}:e;return[function(e,r){var o=j(this),i=P(e)?void 0:Q(e,t);return i?f(i,e,o,r):f(n,Wr(o),e,r)},function(t,o){var i=kt(this),a=Wr(t);if(!Wc){var u=r(n,i,a,o,n!==e);if(u.done)return u.value}var s=Cc(i,RegExp),c=i.unicode,f=new s(_c?"^(?:"+i.source+")":i,(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(_c?"g":"y")),l=void 0===o?4294967295:o>>>0;if(0===l)return[];if(0===a.length)return null===yc(f,a)?[a]:[];for(var h=0,p=0,v=[];p0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},Kc=b($c),Gc=b("".slice),Vc=Math.ceil,Yc=function(t){return function(e,r,n){var o,i,a=Wr(j(e)),u=ve(r),s=a.length,c=void 0===n?" ":Wr(n);return u<=s||""===c?a:((i=Kc(c,Vc((o=u-s)/c.length))).length>o&&(i=Gc(i,0,o)),t?a+i:i+a)}},Xc={start:Yc(!1),end:Yc(!0)},Jc=Xc.start,Qc=Array,Zc=RegExp.escape,tf=b("".charAt),ef=b("".charCodeAt),rf=b(1.1.toString),nf=b([].join),of=/^[0-9a-z]/i,af=/^[$()*+./?[\\\]^{|}]/,uf=RegExp("^[!\"#%&',\\-:;<=>@`~"+Mi+"]"),sf=b(of.exec),cf={"\t":"t","\n":"n","\v":"v","\f":"f","\r":"r"},ff=function(t){var e=rf(ef(t,0),16);return e.length<3?"\\x"+Jc(e,2,"0"):"\\u"+Jc(e,4,"0")},lf=!Zc||"\\x61b"!==Zc("ab");Ce({target:"RegExp",stat:!0,forced:lf},{escape:function(t){!function(t){if("string"==typeof t)return t;throw new qc("Argument is not a string")}(t);for(var e=t.length,r=Qc(e),n=0;n=56320||n+1>=e||56320!=(64512&ef(t,n+1))?r[n]=ff(o):(r[n]=o,r[++n]=tf(t,n))}}return nf(r,"")}}),To("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Fo);var hf=Set.prototype,pf={Set:Set,add:b(hf.add),has:b(hf.has),remove:b(hf.delete),proto:hf},vf=pf.has,df=function(t){return vf(t),t},gf=pf.Set,yf=pf.proto,mf=b(yf.forEach),bf=b(yf.keys),wf=bf(new gf).next,Sf=function(t,e,r){return r?ci({iterator:bf(t),next:wf},e):mf(t,e)},Ef=pf.Set,Of=pf.add,xf=function(t){var e=new Ef;return Sf(t,function(t){Of(e,t)}),e},Rf=ln(pf.proto,"size","get")||function(t){return t.size},Pf="Invalid size",Af=RangeError,jf=TypeError,kf=Math.max,If=function(t,e){this.set=t,this.size=kf(e,0),this.has=J(t.has),this.keys=J(t.keys)};If.prototype={getIterator:function(){return{iterator:t=kt(f(this.keys,this.set)),next:t.next,done:!1};var t},includes:function(t){return f(this.has,this.set,t)}};var Tf=function(t){kt(t);var e=+t.size;if(e!=e)throw new jf(Pf);var r=ce(e);if(r<0)throw new Af(Pf);return new If(t,r)},Mf=pf.has,Lf=pf.remove,Uf=function(t){var e=df(this),r=Tf(t),n=xf(e);return Rf(e)<=r.size?Sf(e,function(t){r.includes(t)&&Lf(n,t)}):ci(r.getIterator(),function(t){Mf(e,t)&&Lf(n,t)}),n},Nf=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},Cf=function(t){var e=L("Set");try{(new e)[t](Nf(0));try{return(new e)[t](Nf(-1)),!1}catch(t){return!0}}catch(t){return!1}};Ce({target:"Set",proto:!0,real:!0,forced:!Cf("difference")},{difference:Uf});var _f=pf.Set,Ff=pf.add,Bf=pf.has,Df=function(t){var e=df(this),r=Tf(t),n=new _f;return Rf(e)>r.size?ci(r.getIterator(),function(t){Bf(e,t)&&Ff(n,t)}):Sf(e,function(t){r.includes(t)&&Ff(n,t)}),n},zf=!Cf("intersection")||a(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))});Ce({target:"Set",proto:!0,real:!0,forced:zf},{intersection:Df});var Wf=pf.has,qf=function(t){var e=df(this),r=Tf(t);if(Rf(e)<=r.size)return!1!==Sf(e,function(t){if(r.includes(t))return!1},!0);var n=r.getIterator();return!1!==ci(n,function(t){if(Wf(e,t))return Tn(n,"normal",!1)})};Ce({target:"Set",proto:!0,real:!0,forced:!Cf("isDisjointFrom")},{isDisjointFrom:qf});var Hf=function(t){var e=df(this),r=Tf(t);return!(Rf(e)>r.size)&&!1!==Sf(e,function(t){if(!r.includes(t))return!1},!0)};Ce({target:"Set",proto:!0,real:!0,forced:!Cf("isSubsetOf")},{isSubsetOf:Hf});var $f=pf.has,Kf=function(t){var e=df(this),r=Tf(t);if(Rf(e)1?arguments[1]:void 0);return!1!==Sf(e,function(t){if(!r(t,t,e))return!1},!0)}});var el=dt("iterator"),rl=Object,nl=L("Set"),ol=function(t){return function(t){return M(t)&&"number"==typeof t.size&&T(t.has)&&T(t.keys)}(t)?t:function(t){if(P(t))return!1;var e=rl(t);return void 0!==e[el]||"@@iterator"in e||ut(un,pr(e))}(t)?new nl(t):t};Ce({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(t){return f(Uf,this,ol(t))}});var il=pf.Set,al=pf.add;Ce({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new il;return Sf(e,function(t){r(t,t,e)&&al(n,t)}),n}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{find:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=Sf(e,function(t){if(r(t,t,e))return{value:t}},!0);return n&&n.value}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(t){return f(Df,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(t){return f(qf,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(t){return f(Hf,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(t){return f(Kf,this,ol(t))}});var ul=b([].join),sl=b([].push);Ce({target:"Set",proto:!0,real:!0,forced:!0},{join:function(t){var e=df(this),r=void 0===t?",":Wr(t),n=[];return Sf(e,function(t){sl(n,t)}),ul(n,r)}});var cl=pf.Set,fl=pf.add;Ce({target:"Set",proto:!0,real:!0,forced:!0},{map:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new cl;return Sf(e,function(t){fl(n,r(t,t,e))}),n}});var ll=TypeError;Ce({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=df(this),r=arguments.length<2,n=r?void 0:arguments[1];if(J(t),Sf(e,function(o){r?(r=!1,n=o):n=t(n,o,o,e)}),r)throw new ll("Reduce of empty set with no initial value");return n}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{some:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0);return!0===Sf(e,function(t){if(r(t,t,e))return!0},!0)}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(t){return f(Xf,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{union:function(t){return f(Qf,this,ol(t))}});var hl=dt("species"),pl=dt("isConcatSpreadable"),vl=W>=51||!a(function(){var t=[];return t[pl]=!1,t.concat()[0]!==t}),dl=function(t){if(!M(t))return!1;var e=t[pl];return void 0!==e?!!e:ur(t)},gl=!(vl&&(W>=51||!a(function(){var t=[];return(t.constructor={})[hl]=function(){return{foo:1}},1!==t.concat(Boolean).foo})));Ce({target:"Array",proto:!0,arity:1,forced:gl},{concat:function(t){var e,r,n,o,i,a=it(this),u=xr(a,0),s=0;for(e=-1,n=arguments.length;e1?arguments[1]:void 0,n=e.length,o=void 0===r?n:ip(ve(r),n),i=Wr(t);return op(e,o-i.length,o)===i}}),Ze("String","endsWith");var sp=RangeError,cp=String.fromCharCode,fp=String.fromCodePoint,lp=b([].join);Ce({target:"String",stat:!0,arity:1,forced:!!fp&&1!==fp.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,o=0;n>o;){if(e=+arguments[o++],he(e,1114111)!==e)throw new sp(e+" is not a valid code point");r[o]=e<65536?cp(e):cp(55296+((e-=65536)>>10),e%1024+56320)}return lp(r,"")}});var hp=b("".indexOf);Ce({target:"String",proto:!0,forced:!rp("includes")},{includes:function(t){return!!~hp(Wr(j(this)),Wr(tp(t)),arguments.length>1?arguments[1]:void 0)}}),Ze("String","includes"),b(un.String);var pp=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(_),vp=Xc.start;Ce({target:"String",proto:!0,forced:pp},{padStart:function(t){return vp(this,t,arguments.length>1?arguments[1]:void 0)}}),Ze("String","padStart");var dp=Xc.end;Ce({target:"String",proto:!0,forced:pp},{padEnd:function(t){return dp(this,t,arguments.length>1?arguments[1]:void 0)}}),Ze("String","padEnd");var gp=b([].push),yp=b([].join);Ce({target:"String",stat:!0},{raw:function(t){var e=k(it(t).raw),r=de(e);if(!r)return"";for(var n=arguments.length,o=[],i=0;;){if(gp(o,Wr(e[i++])),i===r)return yp(o,"");i1?arguments[1]:void 0,e.length)),n=Wr(t);return bp(e,r,r+n.length)===n}}),Ze("String","startsWith");var Op=zt.PROPER,xp=function(t){return a(function(){return!!Mi[t]()||"​…᠎"!=="​…᠎"[t]()||Op&&Mi[t].name!==t})},Rp=_i.start,Pp=xp("trimStart")?function(){return Rp(this)}:"".trimStart;Ce({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==Pp},{trimLeft:Pp}),Ce({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==Pp},{trimStart:Pp}),Ze("String","trimLeft");var Ap=_i.end,jp=xp("trimEnd")?function(){return Ap(this)}:"".trimEnd;Ce({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==jp},{trimRight:jp}),Ce({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==jp},{trimEnd:jp}),Ze("String","trimRight");var kp=Object.getOwnPropertyDescriptor,Ip=function(t){if(!u)return i[t];var e=kp(i,t);return e&&e.value},Tp=dt("iterator"),Mp=!a(function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach(function(t,r){e.delete("b"),n+=r+t}),r.delete("a",2),r.delete("b",void 0),!e.size&&!u||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Tp]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host}),Lp=TypeError,Up=function(t,e){if(t0;)t[o]=t[--o];o!==i++&&(t[o]=n)}else for(var a=Np(r/2),u=Cp(vo(t,0,a),e),s=Cp(vo(t,a),e),c=u.length,f=s.length,l=0,h=0;l0&&0!=(t&r);r>>=1)e++;return e},pv=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},vv=function(t){for(var e=(t=nv(t,cv," ")).length,r="",n=0;ne){r+="%",n++;continue}var i=lv(t,n+1);if(i!=i){r+=o,n++;continue}n+=2;var a=hv(i);if(0===a)o=Jp(i);else{if(1===a||a>4){r+="�",n++;continue}for(var u=[i],s=1;se||"%"!==tv(t,n));){var c=lv(t,n+1);if(c!=c){n+=3;break}if(c>191||c<128)break;rv(u,c),n+=2,s++}if(u.length!==a){r+="�";continue}var f=pv(u);null===f?r+="�":o=Qp(f)}}r+=o,n++}return r},dv=/[!'()~]|%20/g,gv={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},yv=function(t){return gv[t]},mv=function(t){return nv(Xp(t),dv,yv)},bv=fn(function(t,e){zp(this,{type:Dp,target:Wp(t).entries,index:0,kind:e})},Bp,function(){var t=qp(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Pn(void 0,!0);var n=e[r];switch(t.kind){case"keys":return Pn(n.key,!1);case"values":return Pn(n.value,!1)}return Pn([n.key,n.value],!1)},!0),wv=function(t){this.entries=[],this.url=null,void 0!==t&&(M(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===tv(t,0)?uv(t,1):t:Wr(t)))};wv.prototype={type:Bp,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,u,s=this.entries,c=Fn(t);if(c)for(r=(e=Dn(t,c)).next;!(n=f(r,e)).done;){if(o=Dn(kt(n.value)),(a=f(i=o.next,o)).done||(u=f(i,o)).done||!f(i,o).done)throw new Yp("Expected sequence with length 2");rv(s,{key:Wr(a.value),value:Wr(u.value)})}else for(var l in t)ut(t,l)&&rv(s,{key:l,value:Wr(t[l])})},parseQuery:function(t){if(t)for(var e,r,n=this.entries,o=av(t,"&"),i=0;i0?arguments[0]:void 0));u||(this.size=t.entries.length)},Ev=Sv.prototype;if(Mo(Ev,{append:function(t,e){var r=Wp(this);Up(arguments.length,2),rv(r.entries,{key:Wr(t),value:Wr(e)}),u||this.length++,r.updateURL()},delete:function(t){for(var e=Wp(this),r=Up(arguments.length,1),n=e.entries,o=Wr(t),i=r<2?void 0:arguments[1],a=void 0===i?i:Wr(i),s=0;se.key?1:-1}),t.updateURL()},forEach:function(t){for(var e,r=Wp(this).entries,n=ar(t,arguments.length>1?arguments[1]:void 0),o=0;o1?Rv(arguments[1]):{})}}),T($p)){var Pv=function(t){return ko(this,Gp),new $p(t,arguments.length>1?Rv(arguments[1]):{})};Gp.constructor=Pv,Pv.prototype=Gp,Ce({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Pv})}}var Av={URLSearchParams:Sv,getState:Wp},jv=URLSearchParams,kv=jv.prototype,Iv=b(kv.append),Tv=b(kv.delete),Mv=b(kv.forEach),Lv=b([].push),Uv=new jv("a=1&a=2&b=3");Uv.delete("a",1),Uv.delete("b",void 0),Uv+""!="a=2"&&ie(kv,"delete",function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return Tv(this,t);var n=[];Mv(this,function(t,e){Lv(n,{key:e,value:t})}),Up(e,1);for(var o,i=Wr(t),a=Wr(r),u=0,s=0,c=!1,f=n.length;uo;)for(var s,c=R(arguments[o++]),l=i?$v(_e(c),i(c)):_e(c),h=l.length,p=0;h>p;)s=l[p++],u&&!f(a,c,s)||(r[s]=c[s]);return r}:qv,Gv=2147483647,Vv=/[^\0-\u007E]/,Yv=/[.\u3002\uFF0E\uFF61]/g,Xv="Overflow: input needs wider integers to process",Jv=RangeError,Qv=b(Yv.exec),Zv=Math.floor,td=String.fromCharCode,ed=b("".charCodeAt),rd=b([].join),nd=b([].push),od=b("".replace),id=b("".split),ad=b("".toLowerCase),ud=function(t){return t+22+75*(t<26)},sd=function(t,e,r){var n=0;for(t=r?Zv(t/700):t>>1,t+=Zv(t/e);t>455;)t=Zv(t/35),n+=36;return Zv(n+36*t/(t+38))},cd=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r=55296&&o<=56319&&r=i&&nZv((Gv-a)/l))throw new Jv(Xv);for(a+=(f-i)*l,i=f,r=0;rGv)throw new Jv(Xv);if(n===i){for(var h=a,p=36;;){var v=p<=u?1:p>=u+26?26:p-u;if(h?@[\\\]^|]/,qd=/[\0\t\n\r #/:<>?@[\\\]^|]/,Hd=/^[\u0000-\u0020]+/,$d=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Kd=/[\t\n\r]/g,Gd=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)Td(e,t%256),t=md(t/256);return Ed(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r?n:e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=Od(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},Vd={},Yd=Kv({},Vd,{" ":1,'"':1,"<":1,">":1,"`":1}),Xd=Kv({},Yd,{"#":1,"?":1,"{":1,"}":1}),Jd=Kv({},Xd,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Qd=function(t,e){var r=fd(t,0);return r>32&&r<127&&!ut(e,t)?t:encodeURIComponent(t)},Zd={ftp:21,file:null,http:80,https:443,ws:80,wss:443},tg=function(t,e){var r;return 2===t.length&&Sd(Nd,wd(t,0))&&(":"===(r=wd(t,1))||!e&&"|"===r)},eg=function(t){var e;return t.length>1&&tg(kd(t,0,2))&&(2===t.length||"/"===(e=wd(t,2))||"\\"===e||"?"===e||"#"===e)},rg=function(t){return"."===t||"%2e"===Id(t)},ng={},og={},ig={},ag={},ug={},sg={},cg={},fg={},lg={},hg={},pg={},vg={},dg={},gg={},yg={},mg={},bg={},wg={},Sg={},Eg={},Og={},xg=function(t,e,r){var n,o,i,a=Wr(t);if(e){if(o=this.parse(a))throw new gd(o);this.searchParams=null}else{if(void 0!==r&&(n=new xg(r,!0)),o=this.parse(a,null,n))throw new gd(o);(i=vd(new pd)).bindURL(this),this.searchParams=i}};xg.prototype={type:"URL",parse:function(t,e,r){var n,o,i,a,u,s=this,c=e||ng,f=0,l="",h=!1,p=!1,v=!1;for(t=Wr(t),e||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,t=Pd(t,Hd,""),t=Pd(t,$d,"$1")),t=Pd(t,Kd,""),n=Wn(t);f<=n.length;){switch(o=n[f],c){case ng:if(!o||!Sd(Nd,o)){if(e)return Md;c=ig;continue}l+=Id(o),c=og;break;case og:if(o&&(Sd(Cd,o)||"+"===o||"-"===o||"."===o))l+=Id(o);else{if(":"!==o){if(e)return Md;l="",c=ig,f=0;continue}if(e&&(s.isSpecial()!==ut(Zd,l)||"file"===l&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=l,e)return void(s.isSpecial()&&Zd[s.scheme]===s.port&&(s.port=null));l="","file"===s.scheme?c=gg:s.isSpecial()&&r&&r.scheme===s.scheme?c=ag:s.isSpecial()?c=fg:"/"===n[f+1]?(c=ug,f++):(s.cannotBeABaseURL=!0,Rd(s.path,""),c=Sg)}break;case ig:if(!r||r.cannotBeABaseURL&&"#"!==o)return Md;if(r.cannotBeABaseURL&&"#"===o){s.scheme=r.scheme,s.path=vo(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=Og;break}c="file"===r.scheme?gg:sg;continue;case ag:if("/"!==o||"/"!==n[f+1]){c=sg;continue}c=lg,f++;break;case ug:if("/"===o){c=hg;break}c=wg;continue;case sg:if(s.scheme=r.scheme,o===Wv)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query=r.query;else if("/"===o||"\\"===o&&s.isSpecial())c=cg;else if("?"===o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query="",c=Eg;else{if("#"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.path.length--,c=wg;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query=r.query,s.fragment="",c=Og}break;case cg:if(!s.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=wg;continue}c=hg}else c=lg;break;case fg:if(c=lg,"/"!==o||"/"!==wd(l,f+1))continue;f++;break;case lg:if("/"!==o&&"\\"!==o){c=hg;continue}break;case hg:if("@"===o){h&&(l="%40"+l),h=!0,i=Wn(l);for(var d=0;d65535)return Ud;s.port=s.isSpecial()&&m===Zd[s.scheme]?null:m,l=""}if(e)return;c=bg;continue}return Ud}l+=o;break;case gg:if(s.scheme="file","/"===o||"\\"===o)c=yg;else{if(!r||"file"!==r.scheme){c=wg;continue}switch(o){case Wv:s.host=r.host,s.path=vo(r.path),s.query=r.query;break;case"?":s.host=r.host,s.path=vo(r.path),s.query="",c=Eg;break;case"#":s.host=r.host,s.path=vo(r.path),s.query=r.query,s.fragment="",c=Og;break;default:eg(Ed(vo(n,f),""))||(s.host=r.host,s.path=vo(r.path),s.shortenPath()),c=wg;continue}}break;case yg:if("/"===o||"\\"===o){c=mg;break}r&&"file"===r.scheme&&!eg(Ed(vo(n,f),""))&&(tg(r.path[0],!0)?Rd(s.path,r.path[0]):s.host=r.host),c=wg;continue;case mg:if(o===Wv||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&tg(l))c=wg;else if(""===l){if(s.host="",e)return;c=bg}else{if(a=s.parseHost(l))return a;if("localhost"===s.host&&(s.host=""),e)return;l="",c=bg}continue}l+=o;break;case bg:if(s.isSpecial()){if(c=wg,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==Wv&&(c=wg,"/"!==o))continue}else s.fragment="",c=Og;else s.query="",c=Eg;break;case wg:if(o===Wv||"/"===o||"\\"===o&&s.isSpecial()||!e&&("?"===o||"#"===o)){if(".."===(u=Id(u=l))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"===o||"\\"===o&&s.isSpecial()||Rd(s.path,"")):rg(l)?"/"===o||"\\"===o&&s.isSpecial()||Rd(s.path,""):("file"===s.scheme&&!s.path.length&&tg(l)&&(s.host&&(s.host=""),l=wd(l,0)+":"),Rd(s.path,l)),l="","file"===s.scheme&&(o===Wv||"?"===o||"#"===o))for(;s.path.length>1&&""===s.path[0];)Ad(s.path);"?"===o?(s.query="",c=Eg):"#"===o&&(s.fragment="",c=Og)}else l+=Qd(o,Xd);break;case Sg:"?"===o?(s.query="",c=Eg):"#"===o?(s.fragment="",c=Og):o!==Wv&&(s.path[0]+=Qd(o,Vd));break;case Eg:e||"#"!==o?o!==Wv&&("'"===o&&s.isSpecial()?s.query+="%27":s.query+="#"===o?"%23":Qd(o,Vd)):(s.fragment="",c=Og);break;case Og:o!==Wv&&(s.fragment+=Qd(o,Yd))}f++}},parseHost:function(t){var e,r,n;if("["===wd(t,0)){if("]"!==wd(t,t.length-1))return Ld;if(e=function(t){var e,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,h=function(){return wd(t,l)};if(":"===h()){if(":"!==wd(t,1))return;l+=2,f=++c}for(;h();){if(8===c)return;if(":"!==h()){for(e=r=0;r<4&&Sd(zd,h());)e=16*e+yd(h(),16),l++,r++;if("."===h()){if(0===r)return;if(l-=r,c>6)return;for(n=0;h();){if(o=null,n>0){if(!("."===h()&&n<4))return;l++}if(!Sd(_d,h()))return;for(;Sd(_d,h());){if(i=yd(h(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;l++}s[c]=256*s[c]+o,2!=++n&&4!==n||c++}if(4!==n)return;break}if(":"===h()){if(l++,!h())return}else if(h())return;s[c++]=e}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!==c&&a>0;)u=s[c],s[c--]=s[f+a-1],s[f+--a]=u;else if(8!==c)return;return s}(kd(t,1,-1)),!e)return Ld;this.host=e}else if(this.isSpecial()){if(t=function(t){var e,r,n=[],o=id(od(ad(t),Yv,"."),".");for(e=0;e4)return t;for(r=[],n=0;n1&&"0"===wd(o,0)&&(i=Sd(Fd,o)?16:8,o=kd(o,8===i?1:2)),""===o)a=0;else{if(!Sd(10===i?Dd:8===i?Bd:zd,o))return t;a=yd(o,i)}Rd(r,a)}for(n=0;n=bd(256,5-e))return null}else if(a>255)return null;for(u=xd(r),n=0;n1?arguments[1]:void 0,n=ld(e,new xg(t,!1,r));u||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Pg=Rg.prototype,Ag=function(t,e){return{get:function(){return hd(this)[t]()},set:e&&function(t){return hd(this)[e](t)},configurable:!0,enumerable:!0}};if(u&&(so(Pg,"href",Ag("serialize","setHref")),so(Pg,"origin",Ag("getOrigin")),so(Pg,"protocol",Ag("getProtocol","setProtocol")),so(Pg,"username",Ag("getUsername","setUsername")),so(Pg,"password",Ag("getPassword","setPassword")),so(Pg,"host",Ag("getHost","setHost")),so(Pg,"hostname",Ag("getHostname","setHostname")),so(Pg,"port",Ag("getPort","setPort")),so(Pg,"pathname",Ag("getPathname","setPathname")),so(Pg,"search",Ag("getSearch","setSearch")),so(Pg,"searchParams",Ag("getSearchParams")),so(Pg,"hash",Ag("getHash","setHash"))),ie(Pg,"toJSON",function(){return hd(this).serialize()},{enumerable:!0}),ie(Pg,"toString",function(){return hd(this).serialize()},{enumerable:!0}),dd){var jg=dd.createObjectURL,kg=dd.revokeObjectURL;jg&&ie(Rg,"createObjectURL",ar(jg,dd)),kg&&ie(Rg,"revokeObjectURL",ar(kg,dd))}an(Rg,"URL"),Ce({global:!0,constructor:!0,forced:!Mp,sham:!u},{URL:Rg});var Ig=L("URL"),Tg=Mp&&a(function(){Ig.canParse()}),Mg=a(function(){return 1!==Ig.canParse.length});Ce({target:"URL",stat:!0,forced:!Tg||Mg},{canParse:function(t){var e=Up(arguments.length,1),r=Wr(t),n=e<2||void 0===arguments[1]?void 0:Wr(arguments[1]);try{return!!new Ig(r,n)}catch(t){return!1}}});var Lg=L("URL");Ce({target:"URL",stat:!0,forced:!Mp},{parse:function(t){var e=Up(arguments.length,1),r=Wr(t),n=e<2||void 0===arguments[1]?void 0:Wr(arguments[1]);try{return new Lg(r,n)}catch(t){return null}}}),Ce({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return f(URL.prototype.toString,this)}});var Ug=WeakMap.prototype,Ng={WeakMap:WeakMap,set:b(Ug.set),get:b(Ug.get),has:b(Ug.has),remove:b(Ug.delete)},Cg=Ng.has,_g=function(t){return Cg(t),t},Fg=Ng.get,Bg=Ng.has,Dg=Ng.set;Ce({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var r,n,o=_g(this);return Bg(o,t)?(r=Fg(o,t),"update"in e&&(r=e.update(r,t,o),Dg(o,t,r)),r):(n=e.insert(t,o),Dg(o,t,n),n)}}),Ce({target:"WeakMap",stat:!0,forced:!0},{from:ei(Ng.WeakMap,Ng.set,!0)}),Ce({target:"WeakMap",stat:!0,forced:!0},{of:ri(Ng.WeakMap,Ng.set,!0)});var zg=Ng.remove;Ce({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=_g(this),r=!0,n=0,o=arguments.length;n2&&(n=r,M(o=arguments[2])&&"cause"in o&&_t(n,"cause",o.cause));var s=[];return Ao(t,ny,{that:s}),_t(r,"errors",s),r};dn?dn(oy,ry):Ae(oy,ry,{name:!0});var iy=oy.prototype=Ve(ry.prototype,{constructor:d(1,oy),message:d(1,""),name:d(1,"AggregateError")});Ce({global:!0,constructor:!0,arity:2},{AggregateError:oy});var ay,uy,sy,cy,fy=function(t){return _.slice(0,t.length)===t},ly=fy("Bun/")?"BUN":fy("Cloudflare-Workers")?"CLOUDFLARE":fy("Deno/")?"DENO":fy("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===E(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST",hy="NODE"===ly,py=/(?:ipad|iphone|ipod).*applewebkit/i.test(_),vy=i.setImmediate,dy=i.clearImmediate,gy=i.process,yy=i.Dispatch,my=i.Function,by=i.MessageChannel,wy=i.String,Sy=0,Ey={},Oy="onreadystatechange";a(function(){ay=i.location});var xy=function(t){if(ut(Ey,t)){var e=Ey[t];delete Ey[t],e()}},Ry=function(t){return function(){xy(t)}},Py=function(t){xy(t.data)},Ay=function(t){i.postMessage(wy(t),ay.protocol+"//"+ay.host)};vy&&dy||(vy=function(t){Up(arguments.length,1);var e=T(t)?t:my(t),r=vo(arguments,1);return Ey[++Sy]=function(){Ra(e,void 0,r)},uy(Sy),Sy},dy=function(t){delete Ey[t]},hy?uy=function(t){gy.nextTick(Ry(t))}:yy&&yy.now?uy=function(t){yy.now(Ry(t))}:by&&!py?(cy=(sy=new by).port2,sy.port1.onmessage=Py,uy=ar(cy.postMessage,cy)):i.addEventListener&&T(i.postMessage)&&!i.importScripts&&ay&&"file:"!==ay.protocol&&!a(Ay)?(uy=Ay,i.addEventListener("message",Py,!1)):uy=Oy in Et("script")?function(t){De.appendChild(Et("script"))[Oy]=function(){De.removeChild(this),xy(t)}}:function(t){setTimeout(Ry(t),0)});var jy={set:vy,clear:dy},ky=function(){this.head=null,this.tail=null};ky.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Iy,Ty,My,Ly,Uy,Ny=ky,Cy=/ipad|iphone|ipod/i.test(_)&&"undefined"!=typeof Pebble,_y=/web0s(?!.*chrome)/i.test(_),Fy=jy.set,By=i.MutationObserver||i.WebKitMutationObserver,Dy=i.document,zy=i.process,Wy=i.Promise,qy=Ip("queueMicrotask");if(!qy){var Hy=new Ny,$y=function(){var t,e;for(hy&&(t=zy.domain)&&t.exit();e=Hy.get();)try{e()}catch(t){throw Hy.head&&Iy(),t}t&&t.enter()};py||hy||_y||!By||!Dy?!Cy&&Wy&&Wy.resolve?((Ly=Wy.resolve(void 0)).constructor=Wy,Uy=ar(Ly.then,Ly),Iy=function(){Uy($y)}):hy?Iy=function(){zy.nextTick($y)}:(Fy=ar(Fy,i),Iy=function(){Fy($y)}):(Ty=!0,My=Dy.createTextNode(""),new By($y).observe(My,{characterData:!0}),Iy=function(){My.data=Ty=!Ty}),qy=function(t){Hy.head||Iy(),Hy.add(t)}}var Ky,Gy,Vy,Yy=qy,Xy=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Jy=i.Promise,Qy=dt("species"),Zy=!1,tm=T(i.PromiseRejectionEvent),em=Ue("Promise",function(){var t=Kt(Jy),e=t!==String(Jy);if(!e&&66===W)return!0;if(!W||W<51||!/native code/.test(t)){var r=new Jy(function(t){t(1)}),n=function(t){t(function(){},function(){})};if((r.constructor={})[Qy]=n,!(Zy=r.then(function(){})instanceof n))return!0}return!(e||"BROWSER"!==ly&&"DENO"!==ly||tm)}),rm={CONSTRUCTOR:em,REJECTION_EVENT:tm,SUBCLASSING:Zy},nm=TypeError,om=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw new nm("Bad Promise constructor");e=t,r=n}),this.resolve=J(e),this.reject=J(r)},im={f:function(t){return new om(t)}},am=jy.set,um="Promise",sm=rm.CONSTRUCTOR,cm=rm.REJECTION_EVENT,fm=rm.SUBCLASSING,lm=ne.getterFor(um),hm=ne.set,pm=Jy&&Jy.prototype,vm=Jy,dm=pm,gm=i.TypeError,ym=i.document,mm=i.process,bm=im.f,wm=bm,Sm=!!(ym&&ym.createEvent&&i.dispatchEvent),Em="unhandledrejection",Om=function(t){var e;return!(!M(t)||!T(e=t.then))&&e},xm=function(t,e){var r,n,o,i=e.value,a=1===e.state,u=a?t.ok:t.fail,s=t.resolve,c=t.reject,l=t.domain;try{u?(a||(2===e.rejection&&km(e),e.rejection=1),!0===u?r=i:(l&&l.enter(),r=u(i),l&&(l.exit(),o=!0)),r===t.promise?c(new gm("Promise-chain cycle")):(n=Om(r))?f(n,r,s,c):s(r)):c(i)}catch(t){l&&!o&&l.exit(),c(t)}},Rm=function(t,e){t.notified||(t.notified=!0,Yy(function(){for(var r,n=t.reactions;r=n.get();)xm(r,t);t.notified=!1,e&&!t.rejection&&Am(t)}))},Pm=function(t,e,r){var n,o;Sm?((n=ym.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),i.dispatchEvent(n)):n={promise:e,reason:r},!cm&&(o=i["on"+t])?o(n):t===Em&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",r)},Am=function(t){f(am,i,function(){var e,r=t.facade,n=t.value;if(jm(t)&&(e=Xy(function(){hy?mm.emit("unhandledRejection",n,r):Pm(Em,r,n)}),t.rejection=hy||jm(t)?2:1,e.error))throw e.value})},jm=function(t){return 1!==t.rejection&&!t.parent},km=function(t){f(am,i,function(){var e=t.facade;hy?mm.emit("rejectionHandled",e):Pm("rejectionhandled",e,t.value)})},Im=function(t,e,r){return function(n){t(e,n,r)}},Tm=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Rm(t,!0))},Mm=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new gm("Promise can't be resolved itself");var n=Om(e);n?Yy(function(){var r={done:!1};try{f(n,e,Im(Mm,r,t),Im(Tm,r,t))}catch(e){Tm(r,e,t)}}):(t.value=e,t.state=1,Rm(t,!1))}catch(e){Tm({done:!1},e,t)}}};if(sm&&(vm=function(t){ko(this,dm),J(t),f(Ky,this);var e=lm(this);try{t(Im(Mm,e),Im(Tm,e))}catch(t){Tm(e,t)}},(Ky=function(t){hm(this,{type:um,done:!1,notified:!1,parent:!1,reactions:new Ny,rejection:!1,state:0,value:null})}).prototype=ie(dm=vm.prototype,"then",function(t,e){var r=lm(this),n=bm(Cc(this,vm));return r.parent=!0,n.ok=!T(t)||t,n.fail=T(e)&&e,n.domain=hy?mm.domain:void 0,0===r.state?r.reactions.add(n):Yy(function(){xm(n,r)}),n.promise}),Gy=function(){var t=new Ky,e=lm(t);this.promise=t,this.resolve=Im(Mm,e),this.reject=Im(Tm,e)},im.f=bm=function(t){return t===vm||void 0===t?new Gy(t):wm(t)},T(Jy)&&pm!==Object.prototype)){Vy=pm.then,fm||ie(pm,"then",function(t,e){var r=this;return new vm(function(t,e){f(Vy,r,t,e)}).then(t,e)},{unsafe:!0});try{delete pm.constructor}catch(t){}dn&&dn(pm,dm)}Ce({global:!0,constructor:!0,wrap:!0,forced:sm},{Promise:vm}),an(vm,um,!1),Uo(um);var Lm=rm.CONSTRUCTOR||!Gn(function(t){Jy.all(t).then(void 0,function(){})});Ce({target:"Promise",stat:!0,forced:Lm},{all:function(t){var e=this,r=im.f(e),n=r.resolve,o=r.reject,i=Xy(function(){var r=J(e.resolve),i=[],a=0,u=1;Ao(t,function(t){var s=a++,c=!1;u++,f(r,e,t).then(function(t){c||(c=!0,i[s]=t,--u||n(i))},o)}),--u||n(i)});return i.error&&o(i.value),r.promise}});var Um=Jy&&Jy.prototype;if(Ce({target:"Promise",proto:!0,forced:rm.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),T(Jy)){var Nm=L("Promise").prototype.catch;Um.catch!==Nm&&ie(Um,"catch",Nm,{unsafe:!0})}Ce({target:"Promise",stat:!0,forced:Lm},{race:function(t){var e=this,r=im.f(e),n=r.reject,o=Xy(function(){var o=J(e.resolve);Ao(t,function(t){f(o,e,t).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}}),Ce({target:"Promise",stat:!0,forced:rm.CONSTRUCTOR},{reject:function(t){var e=im.f(this);return(0,e.reject)(t),e.promise}});var Cm=function(t,e){if(kt(t),M(e)&&e.constructor===t)return e;var r=im.f(t);return(0,r.resolve)(e),r.promise};Ce({target:"Promise",stat:!0,forced:rm.CONSTRUCTOR},{resolve:function(t){return Cm(this,t)}}),Ce({target:"Promise",stat:!0,forced:Lm},{allSettled:function(t){var e=this,r=im.f(e),n=r.resolve,o=r.reject,i=Xy(function(){var r=J(e.resolve),o=[],i=0,a=1;Ao(t,function(t){var u=i++,s=!1;a++,f(r,e,t).then(function(t){s||(s=!0,o[u]={status:"fulfilled",value:t},--a||n(o))},function(t){s||(s=!0,o[u]={status:"rejected",reason:t},--a||n(o))})}),--a||n(o)});return i.error&&o(i.value),r.promise}});var _m="No one promise resolved";Ce({target:"Promise",stat:!0,forced:Lm},{any:function(t){var e=this,r=L("AggregateError"),n=im.f(e),o=n.resolve,i=n.reject,a=Xy(function(){var n=J(e.resolve),a=[],u=0,s=1,c=!1;Ao(t,function(t){var l=u++,h=!1;s++,f(n,e,t).then(function(t){h||c||(c=!0,o(t))},function(t){h||c||(h=!0,a[l]=t,--s||i(new r(a,_m)))})}),--s||i(new r(a,_m))});return a.error&&i(a.value),n.promise}}),Ce({target:"Promise",stat:!0},{withResolvers:function(){var t=im.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var Fm=Jy&&Jy.prototype,Bm=!!Jy&&a(function(){Fm.finally.call({then:function(){}},function(){})});if(Ce({target:"Promise",proto:!0,real:!0,forced:Bm},{finally:function(t){var e=Cc(this,L("Promise")),r=T(t);return this.then(r?function(r){return Cm(e,t()).then(function(){return r})}:t,r?function(r){return Cm(e,t()).then(function(){throw r})}:t)}}),T(Jy)){var Dm=L("Promise").prototype.finally;Fm.finally!==Dm&&ie(Fm,"finally",Dm,{unsafe:!0})}var zm=i.Promise,Wm=!1,qm=!zm||!zm.try||Xy(function(){zm.try(function(t){Wm=8===t},8)}).error||!Wm;Ce({target:"Promise",stat:!0,forced:qm},{try:function(t){var e=arguments.length>1?vo(arguments,1):[],r=im.f(this),n=Xy(function(){return Ra(J(t),void 0,e)});return(n.error?r.reject:r.resolve)(n.value),r.promise}}),Ze("Promise","finally");var Hm="URLSearchParams"in self,$m="Symbol"in self&&"iterator"in Symbol,Km="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),Gm="FormData"in self,Vm="ArrayBuffer"in self;if(Vm)var Ym=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Xm=ArrayBuffer.isView||function(t){return t&&Ym.indexOf(Object.prototype.toString.call(t))>-1};function Jm(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function Qm(t){return"string"!=typeof t&&(t=String(t)),t}function Zm(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return $m&&(e[Symbol.iterator]=function(){return e}),e}function tb(t){this.map={},t instanceof tb?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function eb(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function rb(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function nb(t){var e=new FileReader,r=rb(e);return e.readAsArrayBuffer(t),r}function ob(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function ib(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:Km&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:Gm&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:Hm&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():Vm&&Km&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=ob(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Vm&&(ArrayBuffer.prototype.isPrototypeOf(t)||Xm(t))?this._bodyArrayBuffer=ob(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Hm&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Km&&(this.blob=function(){var t=eb(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?eb(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(nb)}),this.text=function(){var t=eb(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=rb(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function sb(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function cb(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new tb(e.headers),this.url=e.url||"",this._initBody(t)}ub.prototype.clone=function(){return new ub(this,{body:this._bodyInit})},ib.call(ub.prototype),ib.call(cb.prototype),cb.prototype.clone=function(){return new cb(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new tb(this.headers),url:this.url})},cb.error=function(){var t=new cb(null,{status:0,statusText:""});return t.type="error",t};var fb=[301,302,303,307,308];cb.redirect=function(t,e){if(-1===fb.indexOf(e))throw new RangeError("Invalid status code");return new cb(null,{status:e,headers:{location:t}})};var lb=self.DOMException;try{new lb}catch(t){(lb=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),lb.prototype.constructor=lb}function hb(t,e){return new Promise(function(r,n){var o=new ub(t,e);if(o.signal&&o.signal.aborted)return n(new lb("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var t,e,n={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new tb,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}}),e)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL"),r(new cb("response"in i?i.response:i.responseText,n))},i.onerror=function(){n(new TypeError("Network request failed"))},i.ontimeout=function(){n(new TypeError("Network request failed"))},i.onabort=function(){n(new lb("Aborted","AbortError"))},i.open(o.method,o.url,!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&Km&&(i.responseType="blob"),o.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})}hb.polyfill=!0,self.fetch||(self.fetch=hb,self.Headers=tb,self.Request=ub,self.Response=cb);var pb=Object.getOwnPropertySymbols,vb=Object.prototype.hasOwnProperty,db=Object.prototype.propertyIsEnumerable,gb=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,o=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i0&&r[0]<4?1:+(r[0]+r[1])),!n&&_&&(!(r=_.match(/Edge\\/(\\d+)/))||r[1]>=74)&&(r=_.match(/Chrome\\/(\\d+)/))&&(n=+r[1]);var W=n,q=i.String,H=!!Object.getOwnPropertySymbols&&!a(function(){var t=Symbol(\"symbol detection\");return!q(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&W&&W<41}),$=H&&!Symbol.sham&&\"symbol\"==typeof Symbol.iterator,K=Object,G=$?function(t){return\"symbol\"==typeof t}:function(t){var e=L(\"Symbol\");return T(e)&&U(e.prototype,K(t))},V=String,Y=function(t){try{return V(t)}catch(t){return\"Object\"}},X=TypeError,J=function(t){if(T(t))return t;throw new X(Y(t)+\" is not a function\")},Q=function(t,e){var r=t[e];return P(r)?void 0:J(r)},Z=TypeError,tt=Object.defineProperty,et=function(t,e){try{tt(i,t,{value:e,configurable:!0,writable:!0})}catch(r){i[t]=e}return e},rt=e(function(t){var e=\"__core-js_shared__\",r=t.exports=i[e]||et(e,{});(r.versions||(r.versions=[])).push({version:\"3.38.1\",mode:\"global\",copyright:\"© 2014-2024 Denis Pushkarev (zloirock.ru)\",license:\"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE\",source:\"https://github.com/zloirock/core-js\"})}),nt=function(t,e){return rt[t]||(rt[t]=e||{})},ot=Object,it=function(t){return ot(j(t))},at=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,e){return at(it(t),e)},st=0,ct=Math.random(),ft=b(1..toString),lt=function(t){return\"Symbol(\"+(void 0===t?\"\":t)+\")_\"+ft(++st+ct,36)},ht=i.Symbol,pt=nt(\"wks\"),vt=$?ht.for||ht:ht&&ht.withoutSetter||lt,dt=function(t){return ut(pt,t)||(pt[t]=H&&ut(ht,t)?ht[t]:vt(\"Symbol.\"+t)),pt[t]},gt=TypeError,yt=dt(\"toPrimitive\"),mt=function(t,e){if(!M(t)||G(t))return t;var r,n=Q(t,yt);if(n){if(void 0===e&&(e=\"default\"),r=f(n,t,e),!M(r)||G(r))return r;throw new gt(\"Can't convert object to primitive value\")}return void 0===e&&(e=\"number\"),function(t,e){var r,n;if(\"string\"===e&&T(r=t.toString)&&!M(n=f(r,t)))return n;if(T(r=t.valueOf)&&!M(n=f(r,t)))return n;if(\"string\"!==e&&T(r=t.toString)&&!M(n=f(r,t)))return n;throw new Z(\"Can't convert object to primitive value\")}(t,e)},bt=function(t){var e=mt(t,\"string\");return G(e)?e:e+\"\"},wt=i.document,St=M(wt)&&M(wt.createElement),Et=function(t){return St?wt.createElement(t):{}},Ot=!u&&!a(function(){return 7!==Object.defineProperty(Et(\"div\"),\"a\",{get:function(){return 7}}).a}),xt=Object.getOwnPropertyDescriptor,Rt={f:u?xt:function(t,e){if(t=k(t),e=bt(e),Ot)try{return xt(t,e)}catch(t){}if(ut(t,e))return d(!f(v.f,t,e),t[e])}},Pt=u&&a(function(){return 42!==Object.defineProperty(function(){},\"prototype\",{value:42,writable:!1}).prototype}),At=String,jt=TypeError,kt=function(t){if(M(t))return t;throw new jt(At(t)+\" is not an object\")},It=TypeError,Tt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Lt=\"enumerable\",Ut=\"configurable\",Nt=\"writable\",Ct={f:u?Pt?function(t,e,r){if(kt(t),e=bt(e),kt(r),\"function\"==typeof t&&\"prototype\"===e&&\"value\"in r&&Nt in r&&!r[Nt]){var n=Mt(t,e);n&&n[Nt]&&(t[e]=r.value,r={configurable:Ut in r?r[Ut]:n[Ut],enumerable:Lt in r?r[Lt]:n[Lt],writable:!1})}return Tt(t,e,r)}:Tt:function(t,e,r){if(kt(t),e=bt(e),kt(r),Ot)try{return Tt(t,e,r)}catch(t){}if(\"get\"in r||\"set\"in r)throw new It(\"Accessors not supported\");return\"value\"in r&&(t[e]=r.value),t}},_t=u?function(t,e,r){return Ct.f(t,e,d(1,r))}:function(t,e,r){return t[e]=r,t},Ft=Function.prototype,Bt=u&&Object.getOwnPropertyDescriptor,Dt=ut(Ft,\"name\"),zt={EXISTS:Dt,PROPER:Dt&&\"something\"===function(){}.name,CONFIGURABLE:Dt&&(!u||u&&Bt(Ft,\"name\").configurable)},Wt=b(Function.toString);T(rt.inspectSource)||(rt.inspectSource=function(t){return Wt(t)});var qt,Ht,$t,Kt=rt.inspectSource,Gt=i.WeakMap,Vt=T(Gt)&&/native code/.test(String(Gt)),Yt=nt(\"keys\"),Xt=function(t){return Yt[t]||(Yt[t]=lt(t))},Jt={},Qt=\"Object already initialized\",Zt=i.TypeError;if(Vt||rt.state){var te=rt.state||(rt.state=new(0,i.WeakMap));te.get=te.get,te.has=te.has,te.set=te.set,qt=function(t,e){if(te.has(t))throw new Zt(Qt);return e.facade=t,te.set(t,e),e},Ht=function(t){return te.get(t)||{}},$t=function(t){return te.has(t)}}else{var ee=Xt(\"state\");Jt[ee]=!0,qt=function(t,e){if(ut(t,ee))throw new Zt(Qt);return e.facade=t,_t(t,ee,e),e},Ht=function(t){return ut(t,ee)?t[ee]:{}},$t=function(t){return ut(t,ee)}}var re,ne={set:qt,get:Ht,has:$t,enforce:function(t){return $t(t)?Ht(t):qt(t,{})},getterFor:function(t){return function(e){var r;if(!M(e)||(r=Ht(e)).type!==t)throw new Zt(\"Incompatible receiver, \"+t+\" required\");return r}}},oe=e(function(t){var e=zt.CONFIGURABLE,r=ne.enforce,n=ne.get,o=String,i=Object.defineProperty,s=b(\"\".slice),c=b(\"\".replace),f=b([].join),l=u&&!a(function(){return 8!==i(function(){},\"length\",{value:8}).length}),h=String(String).split(\"String\"),p=t.exports=function(t,n,a){\"Symbol(\"===s(o(n),0,7)&&(n=\"[\"+c(o(n),/^Symbol\\(([^)]*)\\).*$/,\"$1\")+\"]\"),a&&a.getter&&(n=\"get \"+n),a&&a.setter&&(n=\"set \"+n),(!ut(t,\"name\")||e&&t.name!==n)&&(u?i(t,\"name\",{value:n,configurable:!0}):t.name=n),l&&a&&ut(a,\"arity\")&&t.length!==a.arity&&i(t,\"length\",{value:a.arity});try{a&&ut(a,\"constructor\")&&a.constructor?u&&i(t,\"prototype\",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=r(t);return ut(p,\"source\")||(p.source=f(h,\"string\"==typeof n?n:\"\")),t};Function.prototype.toString=p(function(){return T(this)&&n(this).source||Kt(this)},\"toString\")}),ie=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(T(r)&&oe(r,i,n),n.global)o?t[e]=r:et(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Ct.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ae=Math.ceil,ue=Math.floor,se=Math.trunc||function(t){var e=+t;return(e>0?ue:ae)(e)},ce=function(t){var e=+t;return e!=e||0===e?0:se(e)},fe=Math.max,le=Math.min,he=function(t,e){var r=ce(t);return r<0?fe(r+e,0):le(r,e)},pe=Math.min,ve=function(t){var e=ce(t);return e>0?pe(e,9007199254740991):0},de=function(t){return ve(t.length)},ge=function(t){return function(e,r,n){var o=k(e),i=de(o);if(0===i)return!t&&-1;var a,u=he(n,i);if(t&&r!=r){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((t||u in o)&&o[u]===r)return t||u||0;return!t&&-1}},ye={includes:ge(!0),indexOf:ge(!1)},me=ye.indexOf,be=b([].push),we=function(t,e){var r,n=k(t),o=0,i=[];for(r in n)!ut(Jt,r)&&ut(n,r)&&be(i,r);for(;e.length>o;)ut(n,r=e[o++])&&(~me(i,r)||be(i,r));return i},Se=[\"constructor\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toLocaleString\",\"toString\",\"valueOf\"],Ee=Se.concat(\"length\",\"prototype\"),Oe={f:Object.getOwnPropertyNames||function(t){return we(t,Ee)}},xe={f:Object.getOwnPropertySymbols},Re=b([].concat),Pe=L(\"Reflect\",\"ownKeys\")||function(t){var e=Oe.f(kt(t)),r=xe.f;return r?Re(e,r(t)):e},Ae=function(t,e,r){for(var n=Pe(e),o=Ct.f,i=Rt.f,a=0;aa;)Ct.f(t,r=o[a++],n[r]);return t},Be={f:Fe},De=L(\"document\",\"documentElement\"),ze=\"prototype\",We=\"script\",qe=Xt(\"IE_PROTO\"),He=function(){},$e=function(t){return\"<\"+We+\">\"+t+\"\"},Ke=function(t){t.write($e(\"\")),t.close();var e=t.parentWindow.Object;return t=null,e},Ge=function(){try{re=new ActiveXObject(\"htmlfile\")}catch(t){}var t,e,r;Ge=\"undefined\"!=typeof document?document.domain&&re?Ke(re):(e=Et(\"iframe\"),r=\"java\"+We+\":\",e.style.display=\"none\",De.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write($e(\"document.F=Object\")),t.close(),t.F):Ke(re);for(var n=Se.length;n--;)delete Ge[ze][Se[n]];return Ge()};Jt[qe]=!0;var Ve=Object.create||function(t,e){var r;return null!==t?(He[ze]=kt(t),r=new He,He[ze]=null,r[qe]=t):r=Ge(),void 0===e?r:Be.f(r,e)},Ye=Ct.f,Xe=dt(\"unscopables\"),Je=Array.prototype;void 0===Je[Xe]&&Ye(Je,Xe,{configurable:!0,value:Ve(null)});var Qe=function(t){Je[Xe][t]=!0};Ce({target:\"Array\",proto:!0},{at:function(t){var e=it(this),r=de(e),n=ce(t),o=n>=0?n:r+n;return o<0||o>=r?void 0:e[o]}}),Qe(\"at\");var Ze=function(t,e){return b(i[t].prototype[e])},tr=(Ze(\"Array\",\"at\"),TypeError),er=function(t,e){if(!delete t[e])throw new tr(\"Cannot delete property \"+Y(e)+\" of \"+Y(t))},rr=Math.min,nr=[].copyWithin||function(t,e){var r=it(this),n=de(r),o=he(t,n),i=he(e,n),a=arguments.length>2?arguments[2]:void 0,u=rr((void 0===a?n:he(a,n))-i,n-o),s=1;for(i0;)i in r?r[o]=r[i]:er(r,o),o+=s,i+=s;return r};Ce({target:\"Array\",proto:!0},{copyWithin:nr}),Qe(\"copyWithin\"),Ze(\"Array\",\"copyWithin\"),Ce({target:\"Array\",proto:!0},{fill:function(t){for(var e=it(this),r=de(e),n=arguments.length,o=he(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:he(i,r);a>o;)e[o++]=t;return e}}),Qe(\"fill\"),Ze(\"Array\",\"fill\");var or=function(t){if(\"Function\"===E(t))return b(t)},ir=or(or.bind),ar=function(t,e){return J(t),void 0===e?t:s?ir(t,e):function(){return t.apply(e,arguments)}},ur=Array.isArray||function(t){return\"Array\"===E(t)},sr={};sr[dt(\"toStringTag\")]=\"z\";var cr=\"[object z]\"===String(sr),fr=dt(\"toStringTag\"),lr=Object,hr=\"Arguments\"===E(function(){return arguments}()),pr=cr?E:function(t){var e,r,n;return void 0===t?\"Undefined\":null===t?\"Null\":\"string\"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=lr(t),fr))?r:hr?E(e):\"Object\"===(n=E(e))&&T(e.callee)?\"Arguments\":n},vr=function(){},dr=L(\"Reflect\",\"construct\"),gr=/^\\s*(?:class|function)\\b/,yr=b(gr.exec),mr=!gr.test(vr),br=function(t){if(!T(t))return!1;try{return dr(vr,[],t),!0}catch(t){return!1}},wr=function(t){if(!T(t))return!1;switch(pr(t)){case\"AsyncFunction\":case\"GeneratorFunction\":case\"AsyncGeneratorFunction\":return!1}try{return mr||!!yr(gr,Kt(t))}catch(t){return!0}};wr.sham=!0;var Sr=!dr||a(function(){var t;return br(br.call)||!br(Object)||!br(function(){t=!0})||t})?wr:br,Er=dt(\"species\"),Or=Array,xr=function(t,e){return new(function(t){var e;return ur(t)&&(Sr(e=t.constructor)&&(e===Or||ur(e.prototype))||M(e)&&null===(e=e[Er]))&&(e=void 0),void 0===e?Or:e}(t))(0===e?0:e)},Rr=b([].push),Pr=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,u=5===t||i;return function(s,c,f,l){for(var h,p,v=it(s),d=R(v),g=de(d),y=ar(c,f),m=0,b=l||xr,w=e?b(s,g):r||a?b(s,0):void 0;g>m;m++)if((u||m in d)&&(p=y(h=d[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Rr(w,h)}else switch(t){case 4:return!1;case 7:Rr(w,h)}return i?-1:n||o?o:w}},Ar={forEach:Pr(0),map:Pr(1),filter:Pr(2),some:Pr(3),every:Pr(4),find:Pr(5),findIndex:Pr(6),filterReject:Pr(7)},jr=Ar.find,kr=\"find\",Ir=!0;kr in[]&&Array(1)[kr](function(){Ir=!1}),Ce({target:\"Array\",proto:!0,forced:Ir},{find:function(t){return jr(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe(kr),Ze(\"Array\",\"find\");var Tr=Ar.findIndex,Mr=\"findIndex\",Lr=!0;Mr in[]&&Array(1)[Mr](function(){Lr=!1}),Ce({target:\"Array\",proto:!0,forced:Lr},{findIndex:function(t){return Tr(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe(Mr),Ze(\"Array\",\"findIndex\");var Ur=TypeError,Nr=function(t){if(t>9007199254740991)throw Ur(\"Maximum allowed index exceeded\");return t},Cr=function(t,e,r,n,o,i,a,u){for(var s,c,f=o,l=0,h=!!a&&ar(a,u);l0&&ur(s)?(c=de(s),f=Cr(t,e,s,c,f,i-1)-1):(Nr(f+1),t[f]=s),f++),l++;return f},_r=Cr;Ce({target:\"Array\",proto:!0},{flatMap:function(t){var e,r=it(this),n=de(r);return J(t),(e=xr(r,0)).length=_r(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}}),Qe(\"flatMap\"),Ze(\"Array\",\"flatMap\"),Ce({target:\"Array\",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=it(this),r=de(e),n=xr(e,0);return n.length=_r(n,e,e,r,0,void 0===t?1:ce(t)),n}}),Qe(\"flat\"),Ze(\"Array\",\"flat\");var Fr,Br,Dr,zr=String,Wr=function(t){if(\"Symbol\"===pr(t))throw new TypeError(\"Cannot convert a Symbol value to a string\");return zr(t)},qr=b(\"\".charAt),Hr=b(\"\".charCodeAt),$r=b(\"\".slice),Kr=function(t){return function(e,r){var n,o,i=Wr(j(e)),a=ce(r),u=i.length;return a<0||a>=u?t?\"\":void 0:(n=Hr(i,a))<55296||n>56319||a+1===u||(o=Hr(i,a+1))<56320||o>57343?t?qr(i,a):n:t?$r(i,a,a+2):o-56320+(n-55296<<10)+65536}},Gr={codeAt:Kr(!1),charAt:Kr(!0)},Vr=!a(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Yr=Xt(\"IE_PROTO\"),Xr=Object,Jr=Xr.prototype,Qr=Vr?Xr.getPrototypeOf:function(t){var e=it(t);if(ut(e,Yr))return e[Yr];var r=e.constructor;return T(r)&&e instanceof r?r.prototype:e instanceof Xr?Jr:null},Zr=dt(\"iterator\"),tn=!1;[].keys&&(\"next\"in(Dr=[].keys())?(Br=Qr(Qr(Dr)))!==Object.prototype&&(Fr=Br):tn=!0);var en=!M(Fr)||a(function(){var t={};return Fr[Zr].call(t)!==t});en&&(Fr={}),T(Fr[Zr])||ie(Fr,Zr,function(){return this});var rn={IteratorPrototype:Fr,BUGGY_SAFARI_ITERATORS:tn},nn=Ct.f,on=dt(\"toStringTag\"),an=function(t,e,r){t&&!r&&(t=t.prototype),t&&!ut(t,on)&&nn(t,on,{configurable:!0,value:e})},un={},sn=rn.IteratorPrototype,cn=function(){return this},fn=function(t,e,r,n){var o=e+\" Iterator\";return t.prototype=Ve(sn,{next:d(+!n,r)}),an(t,o,!1),un[o]=cn,t},ln=function(t,e,r){try{return b(J(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},hn=String,pn=TypeError,vn=function(t){if(function(t){return M(t)||null===t}(t))return t;throw new pn(\"Can't set \"+hn(t)+\" as a prototype\")},dn=Object.setPrototypeOf||(\"__proto__\"in{}?function(){var t,e=!1,r={};try{(t=ln(Object.prototype,\"__proto__\",\"set\"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return j(r),vn(n),M(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),gn=zt.PROPER,yn=zt.CONFIGURABLE,mn=rn.IteratorPrototype,bn=rn.BUGGY_SAFARI_ITERATORS,wn=dt(\"iterator\"),Sn=\"keys\",En=\"values\",On=\"entries\",xn=function(){return this},Rn=function(t,e,r,n,o,i,a){fn(r,e,n);var u,s,c,l=function(t){if(t===o&&g)return g;if(!bn&&t&&t in v)return v[t];switch(t){case Sn:case En:case On:return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+\" Iterator\",p=!1,v=t.prototype,d=v[wn]||v[\"@@iterator\"]||o&&v[o],g=!bn&&d||l(o),y=\"Array\"===e&&v.entries||d;if(y&&(u=Qr(y.call(new t)))!==Object.prototype&&u.next&&(Qr(u)!==mn&&(dn?dn(u,mn):T(u[wn])||ie(u,wn,xn)),an(u,h,!0)),gn&&o===En&&d&&d.name!==En&&(yn?_t(v,\"name\",En):(p=!0,g=function(){return f(d,this)})),o)if(s={values:l(En),keys:i?g:l(Sn),entries:l(On)},a)for(c in s)(bn||p||!(c in v))&&ie(v,c,s[c]);else Ce({target:e,proto:!0,forced:bn||p},s);return v[wn]!==g&&ie(v,wn,g,{name:o}),un[e]=g,s},Pn=function(t,e){return{value:t,done:e}},An=Gr.charAt,jn=\"String Iterator\",kn=ne.set,In=ne.getterFor(jn);Rn(String,\"String\",function(t){kn(this,{type:jn,string:Wr(t),index:0})},function(){var t,e=In(this),r=e.string,n=e.index;return n>=r.length?Pn(void 0,!0):(t=An(r,n),e.index+=t.length,Pn(t,!1))});var Tn=function(t,e,r){var n,o;kt(t);try{if(!(n=Q(t,\"return\"))){if(\"throw\"===e)throw r;return r}n=f(n,t)}catch(t){o=!0,n=t}if(\"throw\"===e)throw r;if(o)throw n;return kt(n),r},Mn=function(t,e,r,n){try{return n?e(kt(r)[0],r[1]):e(r)}catch(e){Tn(t,\"throw\",e)}},Ln=dt(\"iterator\"),Un=Array.prototype,Nn=function(t){return void 0!==t&&(un.Array===t||Un[Ln]===t)},Cn=function(t,e,r){u?Ct.f(t,e,d(0,r)):t[e]=r},_n=dt(\"iterator\"),Fn=function(t){if(!P(t))return Q(t,_n)||Q(t,\"@@iterator\")||un[pr(t)]},Bn=TypeError,Dn=function(t,e){var r=arguments.length<2?Fn(t):e;if(J(r))return kt(f(r,t));throw new Bn(Y(t)+\" is not iterable\")},zn=Array,Wn=function(t){var e=it(t),r=Sr(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=ar(o,n>2?arguments[2]:void 0));var a,u,s,c,l,h,p=Fn(e),v=0;if(!p||this===zn&&Nn(p))for(a=de(e),u=r?new this(a):zn(a);a>v;v++)h=i?o(e[v],v):e[v],Cn(u,v,h);else for(u=r?new this:[],l=(c=Dn(e,p)).next;!(s=f(l,c)).done;v++)h=i?Mn(c,o,[s.value,v],!0):s.value,Cn(u,v,h);return u.length=v,u},qn=dt(\"iterator\"),Hn=!1;try{var $n=0,Kn={next:function(){return{done:!!$n++}},return:function(){Hn=!0}};Kn[qn]=function(){return this},Array.from(Kn,function(){throw 2})}catch(t){}var Gn=function(t,e){try{if(!e&&!Hn)return!1}catch(t){return!1}var r=!1;try{var n={};n[qn]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Vn=!Gn(function(t){Array.from(t)});Ce({target:\"Array\",stat:!0,forced:Vn},{from:Wn});var Yn=i,Xn=ye.includes,Jn=a(function(){return!Array(1).includes()});Ce({target:\"Array\",proto:!0,forced:Jn},{includes:function(t){return Xn(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe(\"includes\"),Ze(\"Array\",\"includes\");var Qn=Ct.f,Zn=\"Array Iterator\",to=ne.set,eo=ne.getterFor(Zn),ro=Rn(Array,\"Array\",function(t,e){to(this,{type:Zn,target:k(t),index:0,kind:e})},function(){var t=eo(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Pn(void 0,!0);switch(t.kind){case\"keys\":return Pn(r,!1);case\"values\":return Pn(e[r],!1)}return Pn([r,e[r]],!1)},\"values\"),no=un.Arguments=un.Array;if(Qe(\"keys\"),Qe(\"values\"),Qe(\"entries\"),u&&\"values\"!==no.name)try{Qn(no,\"name\",{value:\"values\"})}catch(t){}cr||ie(Object.prototype,\"toString\",cr?{}.toString:function(){return\"[object \"+pr(this)+\"]\"},{unsafe:!0}),Ze(\"Array\",\"values\");var oo=Array,io=a(function(){function t(){}return!(oo.of.call(t)instanceof t)});Ce({target:\"Array\",stat:!0,forced:io},{of:function(){for(var t=0,e=arguments.length,r=new(Sr(this)?this:oo)(e);e>t;)Cn(r,t,arguments[t++]);return r.length=e,r}});var ao=dt(\"hasInstance\"),uo=Function.prototype;ao in uo||Ct.f(uo,ao,{value:oe(function(t){if(!T(this)||!M(t))return!1;var e=this.prototype;return M(e)?U(e,t):t instanceof this},ao)}),dt(\"hasInstance\");var so=function(t,e,r){return r.get&&oe(r.get,e,{getter:!0}),r.set&&oe(r.set,e,{setter:!0}),Ct.f(t,e,r)},co=zt.EXISTS,fo=Function.prototype,lo=b(fo.toString),ho=/function\\b(?:\\s|\\/\\*[\\S\\s]*?\\*\\/|\\/\\/[^\\n\\r]*[\\n\\r]+)*([^\\s(/]*)/,po=b(ho.exec);u&&!co&&so(fo,\"name\",{configurable:!0,get:function(){try{return po(ho,lo(this))[1]}catch(t){return\"\"}}});var vo=b([].slice),go=Oe.f,yo=\"object\"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mo={f:function(t){return yo&&\"Window\"===E(t)?function(t){try{return go(t)}catch(t){return vo(yo)}}(t):go(k(t))}},bo=a(function(){if(\"function\"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,\"a\",{value:8})}}),wo=Object.isExtensible,So=a(function(){wo(1)})||bo?function(t){return!!M(t)&&(!bo||\"ArrayBuffer\"!==E(t))&&(!wo||wo(t))}:wo,Eo=!a(function(){return Object.isExtensible(Object.preventExtensions({}))}),Oo=e(function(t){var e=Ct.f,r=!1,n=lt(\"meta\"),o=0,i=function(t){e(t,n,{value:{objectID:\"O\"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var t=Oe.f,e=b([].splice),o={};o[n]=1,t(o).length&&(Oe.f=function(r){for(var o=t(r),i=0,a=o.length;ii;i++)if((u=y(t[i]))&&U(Po,u))return u;return new Ro(!1)}n=Dn(t,o)}for(s=h?t.next:n.next;!(c=f(s,n)).done;){try{u=y(c.value)}catch(t){Tn(n,\"throw\",t)}if(\"object\"==typeof u&&u&&U(Po,u))return u}return new Ro(!1)},jo=TypeError,ko=function(t,e){if(U(e,t))return t;throw new jo(\"Incorrect invocation\")},Io=function(t,e,r){var n,o;return dn&&T(n=e.constructor)&&n!==r&&M(o=n.prototype)&&o!==r.prototype&&dn(t,o),t},To=function(t,e,r){var n=-1!==t.indexOf(\"Map\"),o=-1!==t.indexOf(\"Weak\"),u=n?\"set\":\"add\",s=i[t],c=s&&s.prototype,f=s,l={},h=function(t){var e=b(c[t]);ie(c,t,\"add\"===t?function(t){return e(this,0===t?0:t),this}:\"delete\"===t?function(t){return!(o&&!M(t))&&e(this,0===t?0:t)}:\"get\"===t?function(t){return o&&!M(t)?void 0:e(this,0===t?0:t)}:\"has\"===t?function(t){return!(o&&!M(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(Ue(t,!T(s)||!(o||c.forEach&&!a(function(){(new s).entries().next()}))))f=r.getConstructor(e,t,n,u),Oo.enable();else if(Ue(t,!0)){var p=new f,v=p[u](o?{}:-0,1)!==p,d=a(function(){p.has(1)}),g=Gn(function(t){new s(t)}),y=!o&&a(function(){for(var t=new s,e=5;e--;)t[u](e,e);return!t.has(-0)});g||((f=e(function(t,e){ko(t,c);var r=Io(new s,t,f);return P(e)||Ao(e,r[u],{that:r,AS_ENTRIES:n}),r})).prototype=c,c.constructor=f),(d||y)&&(h(\"delete\"),h(\"has\"),n&&h(\"get\")),(y||v)&&h(u),o&&c.clear&&delete c.clear}return l[t]=f,Ce({global:!0,constructor:!0,forced:f!==s},l),an(f,t),o||r.setStrong(f,t,n),f},Mo=function(t,e,r){for(var n in e)ie(t,n,e[n],r);return t},Lo=dt(\"species\"),Uo=function(t){var e=L(t);u&&e&&!e[Lo]&&so(e,Lo,{configurable:!0,get:function(){return this}})},No=Oo.fastKey,Co=ne.set,_o=ne.getterFor,Fo={getConstructor:function(t,e,r,n){var o=t(function(t,o){ko(t,i),Co(t,{type:e,index:Ve(null),first:null,last:null,size:0}),u||(t.size=0),P(o)||Ao(o,t[n],{that:t,AS_ENTRIES:r})}),i=o.prototype,a=_o(e),s=function(t,e,r){var n,o,i=a(t),s=c(t,e);return s?s.value=r:(i.last=s={index:o=No(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=s),n&&(n.next=s),u?i.size++:t.size++,\"F\"!==o&&(i.index[o]=s)),t},c=function(t,e){var r,n=a(t),o=No(e);if(\"F\"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return Mo(i,{clear:function(){for(var t=a(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=Ve(null),u?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=c(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),u?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=ar(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),Mo(i,r?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),u&&so(i,\"size\",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+\" Iterator\",o=_o(e),i=_o(n);Rn(t,e,function(t,e){Co(this,{type:n,target:t,state:o(t),kind:e,last:null})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?Pn(\"keys\"===e?r.key:\"values\"===e?r.value:[r.key,r.value],!1):(t.target=null,Pn(void 0,!0))},r?\"entries\":\"values\",!r,!0),Uo(e)}};To(\"Map\",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Fo);var Bo=Map.prototype,Do={Map:Map,set:b(Bo.set),get:b(Bo.get),has:b(Bo.has),remove:b(Bo.delete),proto:Bo},zo=Do.Map,Wo=Do.has,qo=Do.get,Ho=Do.set,$o=b([].push),Ko=a(function(){return 1!==zo.groupBy(\"ab\",function(t){return t}).get(\"a\").length});Ce({target:\"Map\",stat:!0,forced:Ko},{groupBy:function(t,e){j(t),J(e);var r=new zo,n=0;return Ao(t,function(t){var o=e(t,n++);Wo(r,o)?$o(qo(r,o),t):Ho(r,o,[t])}),r}});var Go={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Vo=Et(\"span\").classList,Yo=Vo&&Vo.constructor&&Vo.constructor.prototype,Xo=Yo===Object.prototype?void 0:Yo,Jo=dt(\"iterator\"),Qo=ro.values,Zo=function(t,e){if(t){if(t[Jo]!==Qo)try{_t(t,Jo,Qo)}catch(e){t[Jo]=Qo}if(an(t,e,!0),Go[e])for(var r in ro)if(t[r]!==ro[r])try{_t(t,r,ro[r])}catch(e){t[r]=ro[r]}}};for(var ti in Go)Zo(i[ti]&&i[ti].prototype,ti);Zo(Xo,\"DOMTokenList\");var ei=function(t,e,r){return function(n){var o=it(n),i=arguments.length,a=i>1?arguments[1]:void 0,u=void 0!==a,s=u?ar(a,i>2?arguments[2]:void 0):void 0,c=new t,f=0;return Ao(o,function(t){var n=u?s(t,f++):t;r?e(c,kt(n)[0],n[1]):e(c,n)}),c}};Ce({target:\"Map\",stat:!0,forced:!0},{from:ei(Do.Map,Do.set,!0)});var ri=function(t,e,r){return function(){for(var n=new t,o=arguments.length,i=0;i1?arguments[1]:void 0);return!1!==di(e,function(t,n){if(!r(t,n,e))return!1},!0)}});var gi=Do.Map,yi=Do.set;Ce({target:\"Map\",proto:!0,real:!0,forced:!0},{filter:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new gi;return di(e,function(t,o){r(t,o,e)&&yi(n,o,t)}),n}}),Ce({target:\"Map\",proto:!0,real:!0,forced:!0},{find:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=di(e,function(t,n){if(r(t,n,e))return{value:t}},!0);return n&&n.value}}),Ce({target:\"Map\",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=di(e,function(t,n){if(r(t,n,e))return{key:n}},!0);return n&&n.key}}),Ce({target:\"Map\",proto:!0,real:!0,forced:!0},{includes:function(t){return!0===di(oi(this),function(e){if((r=e)===(n=t)||r!=r&&n!=n)return!0;var r,n},!0)}});var mi=Do.Map;Ce({target:\"Map\",stat:!0,forced:!0},{keyBy:function(t,e){var r=new(T(this)?this:mi);J(e);var n=J(r.set);return Ao(t,function(t){f(n,r,e(t),t)}),r}}),Ce({target:\"Map\",proto:!0,real:!0,forced:!0},{keyOf:function(t){var e=di(oi(this),function(e,r){if(e===t)return{key:r}},!0);return e&&e.key}});var bi=Do.Map,wi=Do.set;Ce({target:\"Map\",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new bi;return di(e,function(t,o){wi(n,r(t,o,e),t)}),n}});var Si=Do.Map,Ei=Do.set;Ce({target:\"Map\",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new Si;return di(e,function(t,o){Ei(n,o,r(t,o,e))}),n}});var Oi=Do.set;Ce({target:\"Map\",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=oi(this),r=arguments.length,n=0;n1?arguments[1]:void 0);return!0===di(e,function(t,n){if(r(t,n,e))return!0},!0)}});var Ri=TypeError,Pi=Do.get,Ai=Do.has,ji=Do.set;Ce({target:\"Map\",proto:!0,real:!0,forced:!0},{update:function(t,e){var r=oi(this),n=arguments.length;J(e);var o=Ai(r,t);if(!o&&n<3)throw new Ri(\"Updating absent value\");var i=o?Pi(r,t):J(n>2?arguments[2]:void 0)(t,r);return ji(r,t,e(i,t,r)),r}});var ki=TypeError,Ii=function(t,e){var r,n=kt(this),o=J(n.get),i=J(n.has),a=J(n.set),u=arguments.length>2?arguments[2]:void 0;if(!T(e)&&!T(u))throw new ki(\"At least one callback required\");return f(i,n,t)?(r=f(o,n,t),T(e)&&(r=e(r),f(a,n,t,r))):T(u)&&(r=u(),f(a,n,t,r)),r};Ce({target:\"Map\",proto:!0,real:!0,forced:!0},{upsert:Ii}),Ce({target:\"Map\",proto:!0,real:!0,name:\"upsert\",forced:!0},{updateOrInsert:Ii});var Ti=b(1..valueOf),Mi=\"\\t\\n\\v\\f\\r                 \\u2028\\u2029\\ufeff\",Li=b(\"\".replace),Ui=RegExp(\"^[\"+Mi+\"]+\"),Ni=RegExp(\"(^|[^\"+Mi+\"])[\"+Mi+\"]+$\"),Ci=function(t){return function(e){var r=Wr(j(e));return 1&t&&(r=Li(r,Ui,\"\")),2&t&&(r=Li(r,Ni,\"$1\")),r}},_i={start:Ci(1),end:Ci(2),trim:Ci(3)},Fi=Oe.f,Bi=Rt.f,Di=Ct.f,zi=_i.trim,Wi=\"Number\",qi=i[Wi],Hi=qi.prototype,$i=i.TypeError,Ki=b(\"\".slice),Gi=b(\"\".charCodeAt),Vi=Ue(Wi,!qi(\" 0o1\")||!qi(\"0b1\")||qi(\"+0x1\")),Yi=function(t){var e,r=arguments.length<1?0:qi(function(t){var e=mt(t,\"number\");return\"bigint\"==typeof e?e:function(t){var e,r,n,o,i,a,u,s,c=mt(t,\"number\");if(G(c))throw new $i(\"Cannot convert a Symbol value to a number\");if(\"string\"==typeof c&&c.length>2)if(c=zi(c),43===(e=Gi(c,0))||45===e){if(88===(r=Gi(c,2))||120===r)return NaN}else if(48===e){switch(Gi(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=Ki(c,2)).length,u=0;uo)return NaN;return parseInt(i,n)}return+c}(e)}(t));return U(Hi,e=this)&&a(function(){Ti(e)})?Io(Object(r),this,Yi):r};Yi.prototype=Hi,Vi&&(Hi.constructor=Yi),Ce({global:!0,constructor:!0,wrap:!0,forced:Vi},{Number:Yi}),Vi&&function(t,e){for(var r,n=u?Fi(e):\"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range\".split(\",\"),o=0;n.length>o;o++)ut(e,r=n[o])&&!ut(t,r)&&Di(t,r,Bi(e,r))}(Yn[Wi],qi),Ce({target:\"Number\",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var Xi=i.isFinite;Ce({target:\"Number\",stat:!0},{isFinite:Number.isFinite||function(t){return\"number\"==typeof t&&Xi(t)}});var Ji=Math.floor,Qi=Number.isInteger||function(t){return!M(t)&&isFinite(t)&&Ji(t)===t};Ce({target:\"Number\",stat:!0},{isInteger:Qi}),Ce({target:\"Number\",stat:!0},{isNaN:function(t){return t!=t}});var Zi=Math.abs;Ce({target:\"Number\",stat:!0},{isSafeInteger:function(t){return Qi(t)&&Zi(t)<=9007199254740991}}),Ce({target:\"Number\",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),Ce({target:\"Number\",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var ta=_i.trim,ea=b(\"\".charAt),ra=i.parseFloat,na=i.Symbol,oa=na&&na.iterator,ia=1/ra(Mi+\"-0\")!=-Infinity||oa&&!a(function(){ra(Object(oa))})?function(t){var e=ta(Wr(t)),r=ra(e);return 0===r&&\"-\"===ea(e,0)?-0:r}:ra;Ce({target:\"Number\",stat:!0,forced:Number.parseFloat!==ia},{parseFloat:ia});var aa=_i.trim,ua=i.parseInt,sa=i.Symbol,ca=sa&&sa.iterator,fa=/^[+-]?0x/i,la=b(fa.exec),ha=8!==ua(Mi+\"08\")||22!==ua(Mi+\"0x16\")||ca&&!a(function(){ua(Object(ca))})?function(t,e){var r=aa(Wr(t));return ua(r,e>>>0||(la(fa,r)?16:10))}:ua;Ce({target:\"Number\",stat:!0,forced:Number.parseInt!==ha},{parseInt:ha});var pa=b(v.f),va=b([].push),da=u&&a(function(){var t=Object.create(null);return t[2]=2,!pa(t,2)}),ga=function(t){return function(e){for(var r,n=k(e),o=_e(n),i=da&&null===Qr(n),a=o.length,s=0,c=[];a>s;)r=o[s++],u&&!(i?r in n:pa(n,r))||va(c,t?[r,n[r]]:n[r]);return c}},ya={entries:ga(!0),values:ga(!1)},ma=ya.entries;Ce({target:\"Object\",stat:!0},{entries:function(t){return ma(t)}}),Ce({target:\"Object\",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(t){for(var e,r,n=k(t),o=Rt.f,i=Pe(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&Cn(a,e,r);return a}});var ba=a(function(){_e(1)});Ce({target:\"Object\",stat:!0,forced:ba},{keys:function(t){return _e(it(t))}});var wa=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Ce({target:\"Object\",stat:!0},{is:wa});var Sa=ya.values;Ce({target:\"Object\",stat:!0},{values:function(t){return Sa(t)}}),Ce({target:\"Object\",stat:!0},{hasOwn:ut});var Ea=Function.prototype,Oa=Ea.apply,xa=Ea.call,Ra=\"object\"==typeof Reflect&&Reflect.apply||(s?xa.bind(Oa):function(){return xa.apply(Oa,arguments)}),Pa=!a(function(){Reflect.apply(function(){})});Ce({target:\"Reflect\",stat:!0,forced:Pa},{apply:function(t,e,r){return Ra(J(t),e,kt(r))}});var Aa=Function,ja=b([].concat),ka=b([].join),Ia={},Ta=s?Aa.bind:function(t){var e=J(this),r=e.prototype,n=vo(arguments,1),o=function(){var r=ja(n,vo(arguments));return this instanceof o?function(t,e,r){if(!ut(Ia,e)){for(var n=[],o=0;ob)\",\"g\");return\"b\"!==t.exec(\"b\").groups.a||\"bc\"!==\"b\".replace(t,\"$c\")}),gs=Oe.f,ys=ne.enforce,ms=dt(\"match\"),bs=i.RegExp,ws=bs.prototype,Ss=i.SyntaxError,Es=b(ws.exec),Os=b(\"\".charAt),xs=b(\"\".replace),Rs=b(\"\".indexOf),Ps=b(\"\".slice),As=/^\\?<[^\\s\\d!#%&*+<=>@^][^\\s!#%&*+<=>@^]*>/,js=/a/g,ks=/a/g,Is=new bs(js)!==js,Ts=cs.MISSED_STICKY,Ms=cs.UNSUPPORTED_Y,Ls=u&&(!Is||Ts||ps||ds||a(function(){return ks[ms]=!1,bs(js)!==js||bs(ks)===ks||\"/a/i\"!==String(bs(js,\"i\"))}));if(Ue(\"RegExp\",Ls)){for(var Us=function(t,e){var r,n,o,i,a,u,s=U(ws,this),c=es(t),f=void 0===e,l=[],h=t;if(!s&&c&&f&&t.constructor===Us)return t;if((c||U(ws,t))&&(t=t.source,f&&(e=os(h))),t=void 0===t?\"\":Wr(t),e=void 0===e?\"\":Wr(e),h=t,ps&&\"dotAll\"in js&&(n=!!e&&Rs(e,\"s\")>-1)&&(e=xs(e,/s/g,\"\")),r=e,Ts&&\"sticky\"in js&&(o=!!e&&Rs(e,\"y\")>-1)&&Ms&&(e=xs(e,/y/g,\"\")),ds&&(i=function(t){for(var e,r=t.length,n=0,o=\"\",i=[],a=Ve(null),u=!1,s=!1,c=0,f=\"\";n<=r;n++){if(\"\\\\\"===(e=Os(t,n)))e+=Os(t,++n);else if(\"]\"===e)u=!1;else if(!u)switch(!0){case\"[\"===e:u=!0;break;case\"(\"===e:if(o+=e,\"?:\"===Ps(t,n+1,n+3))continue;Es(As,Ps(t,n+1))&&(n+=2,s=!0),c++;continue;case\">\"===e&&s:if(\"\"===f||ut(a,f))throw new Ss(\"Invalid capture group name\");a[f]=!0,i[i.length]=[f,c],s=!1,f=\"\";continue}s?f+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=Io(bs(t,e),s?this:ws,Us),(n||o||l.length)&&(u=ys(a),n&&(u.dotAll=!0,u.raw=Us(function(t){for(var e,r=t.length,n=0,o=\"\",i=!1;n<=r;n++)\"\\\\\"!==(e=Os(t,n))?i||\".\"!==e?(\"[\"===e?i=!0:\"]\"===e&&(i=!1),o+=e):o+=\"[\\\\s\\\\S]\":o+=e+Os(t,++n);return o}(t),r)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==h)try{_t(a,\"source\",\"\"===h?\"(?:)\":h)}catch(t){}return a},Ns=gs(bs),Cs=0;Ns.length>Cs;)ls(Us,bs,Ns[Cs++]);ws.constructor=Us,Us.prototype=ws,ie(i,\"RegExp\",Us,{constructor:!0})}Uo(\"RegExp\");var _s=zt.PROPER,Fs=\"toString\",Bs=RegExp.prototype,Ds=Bs[Fs];(a(function(){return\"/a/b\"!==Ds.call({source:\"a\",flags:\"b\"})})||_s&&Ds.name!==Fs)&&ie(Bs,Fs,function(){var t=kt(this);return\"/\"+Wr(t.source)+\"/\"+Wr(os(t))},{unsafe:!0});var zs=ne.get,Ws=RegExp.prototype,qs=TypeError;u&&ps&&so(Ws,\"dotAll\",{configurable:!0,get:function(){if(this!==Ws){if(\"RegExp\"===E(this))return!!zs(this).dotAll;throw new qs(\"Incompatible receiver, RegExp required\")}}});var Hs=ne.get,$s=nt(\"native-string-replace\",String.prototype.replace),Ks=RegExp.prototype.exec,Gs=Ks,Vs=b(\"\".charAt),Ys=b(\"\".indexOf),Xs=b(\"\".replace),Js=b(\"\".slice),Qs=function(){var t=/a/,e=/b*/g;return f(Ks,t,\"a\"),f(Ks,e,\"a\"),0!==t.lastIndex||0!==e.lastIndex}(),Zs=cs.BROKEN_CARET,tc=void 0!==/()??/.exec(\"\")[1];(Qs||tc||Zs||ps||ds)&&(Gs=function(t){var e,r,n,o,i,a,u,s=this,c=Hs(s),l=Wr(t),h=c.raw;if(h)return h.lastIndex=s.lastIndex,e=f(Gs,h,l),s.lastIndex=h.lastIndex,e;var p=c.groups,v=Zs&&s.sticky,d=f(rs,s),g=s.source,y=0,m=l;if(v&&(d=Xs(d,\"y\",\"\"),-1===Ys(d,\"g\")&&(d+=\"g\"),m=Js(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&\"\\n\"!==Vs(l,s.lastIndex-1))&&(g=\"(?: \"+g+\")\",m=\" \"+m,y++),r=new RegExp(\"^(?:\"+g+\")\",d)),tc&&(r=new RegExp(\"^\"+g+\"$(?!\\\\s)\",d)),Qs&&(n=s.lastIndex),o=f(Ks,v?r:s,m),v?o?(o.input=Js(o.input,y),o[0]=Js(o[0],y),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Qs&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),tc&&o&&o.length>1&&f($s,o[0],r,function(){for(i=1;i]*>)/g,Oc=/\\$([$&'`]|\\d{1,2})/g,xc=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Oc;return void 0!==o&&(o=it(o),s=Ec),wc(i,s,function(i,s){var c;switch(bc(s,0)){case\"$\":return\"$\";case\"&\":return t;case\"`\":return Sc(e,0,r);case\"'\":return Sc(e,a);case\"<\":c=o[Sc(s,1,-1)];break;default:var f=+s;if(0===f)return i;if(f>u){var l=mc(f/10);return 0===l?i:l<=u?void 0===n[l-1]?bc(s,1):n[l-1]+bc(s,1):i}c=n[f-1]}return void 0===c?\"\":c})},Rc=dt(\"replace\"),Pc=Math.max,Ac=Math.min,jc=b([].concat),kc=b([].push),Ic=b(\"\".indexOf),Tc=b(\"\".slice),Mc=\"$0\"===\"a\".replace(/./,\"$0\"),Lc=!!/./[Rc]&&\"\"===/./[Rc](\"a\",\"$0\"),Uc=!a(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:\"7\"},t},\"7\"!==\"\".replace(t,\"$\")});pc(\"replace\",function(t,e,r){var n=Lc?\"$\":\"$0\";return[function(t,r){var n=j(this),o=P(t)?void 0:Q(t,Rc);return o?f(o,t,n,r):f(e,Wr(n),t,r)},function(t,o){var i=kt(this),a=Wr(t);if(\"string\"==typeof o&&-1===Ic(o,n)&&-1===Ic(o,\"$<\")){var u=r(e,i,a,o);if(u.done)return u.value}var s=T(o);s||(o=Wr(o));var c,f=i.global;f&&(c=i.unicode,i.lastIndex=0);for(var l,h=[];null!==(l=yc(i,a))&&(kc(h,l),f);)\"\"===Wr(l[0])&&(i.lastIndex=dc(a,ve(i.lastIndex),c));for(var p,v=\"\",d=0,g=0;g=d&&(v+=Tc(a,d,b)+y,d=b+m.length)}return v+Tc(a,d)}]},!Uc||!Mc||Lc),pc(\"search\",function(t,e,r){return[function(e){var r=j(this),n=P(e)?void 0:Q(e,t);return n?f(n,e,r):new RegExp(e)[t](Wr(r))},function(t){var n=kt(this),o=Wr(t),i=r(e,n,o);if(i.done)return i.value;var a=n.lastIndex;wa(a,0)||(n.lastIndex=0);var u=yc(n,o);return wa(n.lastIndex,a)||(n.lastIndex=a),null===u?-1:u.index}]});var Nc=dt(\"species\"),Cc=function(t,e){var r,n=kt(t).constructor;return void 0===n||P(r=kt(n)[Nc])?e:La(r)},_c=cs.UNSUPPORTED_Y,Fc=Math.min,Bc=b([].push),Dc=b(\"\".slice),zc=!a(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r=\"ab\".split(t);return 2!==r.length||\"a\"!==r[0]||\"b\"!==r[1]}),Wc=\"c\"===\"abbc\".split(/(b)*/)[1]||4!==\"test\".split(/(?:)/,-1).length||2!==\"ab\".split(/(?:ab)*/).length||4!==\".\".split(/(.?)(.?)/).length||\".\".split(/()()/).length>1||\"\".split(/.?/).length;pc(\"split\",function(t,e,r){var n=\"0\".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:f(e,this,t,r)}:e;return[function(e,r){var o=j(this),i=P(e)?void 0:Q(e,t);return i?f(i,e,o,r):f(n,Wr(o),e,r)},function(t,o){var i=kt(this),a=Wr(t);if(!Wc){var u=r(n,i,a,o,n!==e);if(u.done)return u.value}var s=Cc(i,RegExp),c=i.unicode,f=new s(_c?\"^(?:\"+i.source+\")\":i,(i.ignoreCase?\"i\":\"\")+(i.multiline?\"m\":\"\")+(i.unicode?\"u\":\"\")+(_c?\"g\":\"y\")),l=void 0===o?4294967295:o>>>0;if(0===l)return[];if(0===a.length)return null===yc(f,a)?[a]:[];for(var h=0,p=0,v=[];p0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},Kc=b($c),Gc=b(\"\".slice),Vc=Math.ceil,Yc=function(t){return function(e,r,n){var o,i,a=Wr(j(e)),u=ve(r),s=a.length,c=void 0===n?\" \":Wr(n);return u<=s||\"\"===c?a:((i=Kc(c,Vc((o=u-s)/c.length))).length>o&&(i=Gc(i,0,o)),t?a+i:i+a)}},Xc={start:Yc(!1),end:Yc(!0)},Jc=Xc.start,Qc=Array,Zc=RegExp.escape,tf=b(\"\".charAt),ef=b(\"\".charCodeAt),rf=b(1.1.toString),nf=b([].join),of=/^[0-9a-z]/i,af=/^[$()*+./?[\\\\\\]^{|}]/,uf=RegExp(\"^[!\\\"#%&',\\\\-:;<=>@`~\"+Mi+\"]\"),sf=b(of.exec),cf={\"\\t\":\"t\",\"\\n\":\"n\",\"\\v\":\"v\",\"\\f\":\"f\",\"\\r\":\"r\"},ff=function(t){var e=rf(ef(t,0),16);return e.length<3?\"\\\\x\"+Jc(e,2,\"0\"):\"\\\\u\"+Jc(e,4,\"0\")},lf=!Zc||\"\\\\x61b\"!==Zc(\"ab\");Ce({target:\"RegExp\",stat:!0,forced:lf},{escape:function(t){!function(t){if(\"string\"==typeof t)return t;throw new qc(\"Argument is not a string\")}(t);for(var e=t.length,r=Qc(e),n=0;n=56320||n+1>=e||56320!=(64512&ef(t,n+1))?r[n]=ff(o):(r[n]=o,r[++n]=tf(t,n))}}return nf(r,\"\")}}),To(\"Set\",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Fo);var hf=Set.prototype,pf={Set:Set,add:b(hf.add),has:b(hf.has),remove:b(hf.delete),proto:hf},vf=pf.has,df=function(t){return vf(t),t},gf=pf.Set,yf=pf.proto,mf=b(yf.forEach),bf=b(yf.keys),wf=bf(new gf).next,Sf=function(t,e,r){return r?ci({iterator:bf(t),next:wf},e):mf(t,e)},Ef=pf.Set,Of=pf.add,xf=function(t){var e=new Ef;return Sf(t,function(t){Of(e,t)}),e},Rf=ln(pf.proto,\"size\",\"get\")||function(t){return t.size},Pf=\"Invalid size\",Af=RangeError,jf=TypeError,kf=Math.max,If=function(t,e){this.set=t,this.size=kf(e,0),this.has=J(t.has),this.keys=J(t.keys)};If.prototype={getIterator:function(){return{iterator:t=kt(f(this.keys,this.set)),next:t.next,done:!1};var t},includes:function(t){return f(this.has,this.set,t)}};var Tf=function(t){kt(t);var e=+t.size;if(e!=e)throw new jf(Pf);var r=ce(e);if(r<0)throw new Af(Pf);return new If(t,r)},Mf=pf.has,Lf=pf.remove,Uf=function(t){var e=df(this),r=Tf(t),n=xf(e);return Rf(e)<=r.size?Sf(e,function(t){r.includes(t)&&Lf(n,t)}):ci(r.getIterator(),function(t){Mf(e,t)&&Lf(n,t)}),n},Nf=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},Cf=function(t){var e=L(\"Set\");try{(new e)[t](Nf(0));try{return(new e)[t](Nf(-1)),!1}catch(t){return!0}}catch(t){return!1}};Ce({target:\"Set\",proto:!0,real:!0,forced:!Cf(\"difference\")},{difference:Uf});var _f=pf.Set,Ff=pf.add,Bf=pf.has,Df=function(t){var e=df(this),r=Tf(t),n=new _f;return Rf(e)>r.size?ci(r.getIterator(),function(t){Bf(e,t)&&Ff(n,t)}):Sf(e,function(t){r.includes(t)&&Ff(n,t)}),n},zf=!Cf(\"intersection\")||a(function(){return\"3,2\"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))});Ce({target:\"Set\",proto:!0,real:!0,forced:zf},{intersection:Df});var Wf=pf.has,qf=function(t){var e=df(this),r=Tf(t);if(Rf(e)<=r.size)return!1!==Sf(e,function(t){if(r.includes(t))return!1},!0);var n=r.getIterator();return!1!==ci(n,function(t){if(Wf(e,t))return Tn(n,\"normal\",!1)})};Ce({target:\"Set\",proto:!0,real:!0,forced:!Cf(\"isDisjointFrom\")},{isDisjointFrom:qf});var Hf=function(t){var e=df(this),r=Tf(t);return!(Rf(e)>r.size)&&!1!==Sf(e,function(t){if(!r.includes(t))return!1},!0)};Ce({target:\"Set\",proto:!0,real:!0,forced:!Cf(\"isSubsetOf\")},{isSubsetOf:Hf});var $f=pf.has,Kf=function(t){var e=df(this),r=Tf(t);if(Rf(e)1?arguments[1]:void 0);return!1!==Sf(e,function(t){if(!r(t,t,e))return!1},!0)}});var el=dt(\"iterator\"),rl=Object,nl=L(\"Set\"),ol=function(t){return function(t){return M(t)&&\"number\"==typeof t.size&&T(t.has)&&T(t.keys)}(t)?t:function(t){if(P(t))return!1;var e=rl(t);return void 0!==e[el]||\"@@iterator\"in e||ut(un,pr(e))}(t)?new nl(t):t};Ce({target:\"Set\",proto:!0,real:!0,forced:!0},{difference:function(t){return f(Uf,this,ol(t))}});var il=pf.Set,al=pf.add;Ce({target:\"Set\",proto:!0,real:!0,forced:!0},{filter:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new il;return Sf(e,function(t){r(t,t,e)&&al(n,t)}),n}}),Ce({target:\"Set\",proto:!0,real:!0,forced:!0},{find:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=Sf(e,function(t){if(r(t,t,e))return{value:t}},!0);return n&&n.value}}),Ce({target:\"Set\",proto:!0,real:!0,forced:!0},{intersection:function(t){return f(Df,this,ol(t))}}),Ce({target:\"Set\",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(t){return f(qf,this,ol(t))}}),Ce({target:\"Set\",proto:!0,real:!0,forced:!0},{isSubsetOf:function(t){return f(Hf,this,ol(t))}}),Ce({target:\"Set\",proto:!0,real:!0,forced:!0},{isSupersetOf:function(t){return f(Kf,this,ol(t))}});var ul=b([].join),sl=b([].push);Ce({target:\"Set\",proto:!0,real:!0,forced:!0},{join:function(t){var e=df(this),r=void 0===t?\",\":Wr(t),n=[];return Sf(e,function(t){sl(n,t)}),ul(n,r)}});var cl=pf.Set,fl=pf.add;Ce({target:\"Set\",proto:!0,real:!0,forced:!0},{map:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new cl;return Sf(e,function(t){fl(n,r(t,t,e))}),n}});var ll=TypeError;Ce({target:\"Set\",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=df(this),r=arguments.length<2,n=r?void 0:arguments[1];if(J(t),Sf(e,function(o){r?(r=!1,n=o):n=t(n,o,o,e)}),r)throw new ll(\"Reduce of empty set with no initial value\");return n}}),Ce({target:\"Set\",proto:!0,real:!0,forced:!0},{some:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0);return!0===Sf(e,function(t){if(r(t,t,e))return!0},!0)}}),Ce({target:\"Set\",proto:!0,real:!0,forced:!0},{symmetricDifference:function(t){return f(Xf,this,ol(t))}}),Ce({target:\"Set\",proto:!0,real:!0,forced:!0},{union:function(t){return f(Qf,this,ol(t))}});var hl=dt(\"species\"),pl=dt(\"isConcatSpreadable\"),vl=W>=51||!a(function(){var t=[];return t[pl]=!1,t.concat()[0]!==t}),dl=function(t){if(!M(t))return!1;var e=t[pl];return void 0!==e?!!e:ur(t)},gl=!(vl&&(W>=51||!a(function(){var t=[];return(t.constructor={})[hl]=function(){return{foo:1}},1!==t.concat(Boolean).foo})));Ce({target:\"Array\",proto:!0,arity:1,forced:gl},{concat:function(t){var e,r,n,o,i,a=it(this),u=xr(a,0),s=0;for(e=-1,n=arguments.length;e1?arguments[1]:void 0,n=e.length,o=void 0===r?n:ip(ve(r),n),i=Wr(t);return op(e,o-i.length,o)===i}}),Ze(\"String\",\"endsWith\");var sp=RangeError,cp=String.fromCharCode,fp=String.fromCodePoint,lp=b([].join);Ce({target:\"String\",stat:!0,arity:1,forced:!!fp&&1!==fp.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,o=0;n>o;){if(e=+arguments[o++],he(e,1114111)!==e)throw new sp(e+\" is not a valid code point\");r[o]=e<65536?cp(e):cp(55296+((e-=65536)>>10),e%1024+56320)}return lp(r,\"\")}});var hp=b(\"\".indexOf);Ce({target:\"String\",proto:!0,forced:!rp(\"includes\")},{includes:function(t){return!!~hp(Wr(j(this)),Wr(tp(t)),arguments.length>1?arguments[1]:void 0)}}),Ze(\"String\",\"includes\"),b(un.String);var pp=/Version\\/10(?:\\.\\d+){1,2}(?: [\\w./]+)?(?: Mobile\\/\\w+)? Safari\\//.test(_),vp=Xc.start;Ce({target:\"String\",proto:!0,forced:pp},{padStart:function(t){return vp(this,t,arguments.length>1?arguments[1]:void 0)}}),Ze(\"String\",\"padStart\");var dp=Xc.end;Ce({target:\"String\",proto:!0,forced:pp},{padEnd:function(t){return dp(this,t,arguments.length>1?arguments[1]:void 0)}}),Ze(\"String\",\"padEnd\");var gp=b([].push),yp=b([].join);Ce({target:\"String\",stat:!0},{raw:function(t){var e=k(it(t).raw),r=de(e);if(!r)return\"\";for(var n=arguments.length,o=[],i=0;;){if(gp(o,Wr(e[i++])),i===r)return yp(o,\"\");i1?arguments[1]:void 0,e.length)),n=Wr(t);return bp(e,r,r+n.length)===n}}),Ze(\"String\",\"startsWith\");var Op=zt.PROPER,xp=function(t){return a(function(){return!!Mi[t]()||\"​…᠎\"!==\"​…᠎\"[t]()||Op&&Mi[t].name!==t})},Rp=_i.start,Pp=xp(\"trimStart\")?function(){return Rp(this)}:\"\".trimStart;Ce({target:\"String\",proto:!0,name:\"trimStart\",forced:\"\".trimLeft!==Pp},{trimLeft:Pp}),Ce({target:\"String\",proto:!0,name:\"trimStart\",forced:\"\".trimStart!==Pp},{trimStart:Pp}),Ze(\"String\",\"trimLeft\");var Ap=_i.end,jp=xp(\"trimEnd\")?function(){return Ap(this)}:\"\".trimEnd;Ce({target:\"String\",proto:!0,name:\"trimEnd\",forced:\"\".trimRight!==jp},{trimRight:jp}),Ce({target:\"String\",proto:!0,name:\"trimEnd\",forced:\"\".trimEnd!==jp},{trimEnd:jp}),Ze(\"String\",\"trimRight\");var kp=Object.getOwnPropertyDescriptor,Ip=function(t){if(!u)return i[t];var e=kp(i,t);return e&&e.value},Tp=dt(\"iterator\"),Mp=!a(function(){var t=new URL(\"b?a=1&b=2&c=3\",\"https://a\"),e=t.searchParams,r=new URLSearchParams(\"a=1&a=2&b=3\"),n=\"\";return t.pathname=\"c%20d\",e.forEach(function(t,r){e.delete(\"b\"),n+=r+t}),r.delete(\"a\",2),r.delete(\"b\",void 0),!e.size&&!u||!e.sort||\"https://a/c%20d?a=1&c=3\"!==t.href||\"3\"!==e.get(\"c\")||\"a=1\"!==String(new URLSearchParams(\"?a=1\"))||!e[Tp]||\"a\"!==new URL(\"https://a@b\").username||\"b\"!==new URLSearchParams(new URLSearchParams(\"a=b\")).get(\"a\")||\"xn--e1aybc\"!==new URL(\"https://тест\").host||\"#%D0%B1\"!==new URL(\"https://a#б\").hash||\"a1c3\"!==n||\"x\"!==new URL(\"https://x\",void 0).host}),Lp=TypeError,Up=function(t,e){if(t0;)t[o]=t[--o];o!==i++&&(t[o]=n)}else for(var a=Np(r/2),u=Cp(vo(t,0,a),e),s=Cp(vo(t,a),e),c=u.length,f=s.length,l=0,h=0;l0&&0!=(t&r);r>>=1)e++;return e},pv=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},vv=function(t){for(var e=(t=nv(t,cv,\" \")).length,r=\"\",n=0;ne){r+=\"%\",n++;continue}var i=lv(t,n+1);if(i!=i){r+=o,n++;continue}n+=2;var a=hv(i);if(0===a)o=Jp(i);else{if(1===a||a>4){r+=\"�\",n++;continue}for(var u=[i],s=1;se||\"%\"!==tv(t,n));){var c=lv(t,n+1);if(c!=c){n+=3;break}if(c>191||c<128)break;rv(u,c),n+=2,s++}if(u.length!==a){r+=\"�\";continue}var f=pv(u);null===f?r+=\"�\":o=Qp(f)}}r+=o,n++}return r},dv=/[!'()~]|%20/g,gv={\"!\":\"%21\",\"'\":\"%27\",\"(\":\"%28\",\")\":\"%29\",\"~\":\"%7E\",\"%20\":\"+\"},yv=function(t){return gv[t]},mv=function(t){return nv(Xp(t),dv,yv)},bv=fn(function(t,e){zp(this,{type:Dp,target:Wp(t).entries,index:0,kind:e})},Bp,function(){var t=qp(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Pn(void 0,!0);var n=e[r];switch(t.kind){case\"keys\":return Pn(n.key,!1);case\"values\":return Pn(n.value,!1)}return Pn([n.key,n.value],!1)},!0),wv=function(t){this.entries=[],this.url=null,void 0!==t&&(M(t)?this.parseObject(t):this.parseQuery(\"string\"==typeof t?\"?\"===tv(t,0)?uv(t,1):t:Wr(t)))};wv.prototype={type:Bp,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,u,s=this.entries,c=Fn(t);if(c)for(r=(e=Dn(t,c)).next;!(n=f(r,e)).done;){if(o=Dn(kt(n.value)),(a=f(i=o.next,o)).done||(u=f(i,o)).done||!f(i,o).done)throw new Yp(\"Expected sequence with length 2\");rv(s,{key:Wr(a.value),value:Wr(u.value)})}else for(var l in t)ut(t,l)&&rv(s,{key:l,value:Wr(t[l])})},parseQuery:function(t){if(t)for(var e,r,n=this.entries,o=av(t,\"&\"),i=0;i0?arguments[0]:void 0));u||(this.size=t.entries.length)},Ev=Sv.prototype;if(Mo(Ev,{append:function(t,e){var r=Wp(this);Up(arguments.length,2),rv(r.entries,{key:Wr(t),value:Wr(e)}),u||this.length++,r.updateURL()},delete:function(t){for(var e=Wp(this),r=Up(arguments.length,1),n=e.entries,o=Wr(t),i=r<2?void 0:arguments[1],a=void 0===i?i:Wr(i),s=0;se.key?1:-1}),t.updateURL()},forEach:function(t){for(var e,r=Wp(this).entries,n=ar(t,arguments.length>1?arguments[1]:void 0),o=0;o1?Rv(arguments[1]):{})}}),T($p)){var Pv=function(t){return ko(this,Gp),new $p(t,arguments.length>1?Rv(arguments[1]):{})};Gp.constructor=Pv,Pv.prototype=Gp,Ce({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Pv})}}var Av={URLSearchParams:Sv,getState:Wp},jv=URLSearchParams,kv=jv.prototype,Iv=b(kv.append),Tv=b(kv.delete),Mv=b(kv.forEach),Lv=b([].push),Uv=new jv(\"a=1&a=2&b=3\");Uv.delete(\"a\",1),Uv.delete(\"b\",void 0),Uv+\"\"!=\"a=2\"&&ie(kv,\"delete\",function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return Tv(this,t);var n=[];Mv(this,function(t,e){Lv(n,{key:e,value:t})}),Up(e,1);for(var o,i=Wr(t),a=Wr(r),u=0,s=0,c=!1,f=n.length;uo;)for(var s,c=R(arguments[o++]),l=i?$v(_e(c),i(c)):_e(c),h=l.length,p=0;h>p;)s=l[p++],u&&!f(a,c,s)||(r[s]=c[s]);return r}:qv,Gv=2147483647,Vv=/[^\\0-\\u007E]/,Yv=/[.\\u3002\\uFF0E\\uFF61]/g,Xv=\"Overflow: input needs wider integers to process\",Jv=RangeError,Qv=b(Yv.exec),Zv=Math.floor,td=String.fromCharCode,ed=b(\"\".charCodeAt),rd=b([].join),nd=b([].push),od=b(\"\".replace),id=b(\"\".split),ad=b(\"\".toLowerCase),ud=function(t){return t+22+75*(t<26)},sd=function(t,e,r){var n=0;for(t=r?Zv(t/700):t>>1,t+=Zv(t/e);t>455;)t=Zv(t/35),n+=36;return Zv(n+36*t/(t+38))},cd=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r=55296&&o<=56319&&r=i&&nZv((Gv-a)/l))throw new Jv(Xv);for(a+=(f-i)*l,i=f,r=0;rGv)throw new Jv(Xv);if(n===i){for(var h=a,p=36;;){var v=p<=u?1:p>=u+26?26:p-u;if(h?@[\\\\\\]^|]/,qd=/[\\0\\t\\n\\r #/:<>?@[\\\\\\]^|]/,Hd=/^[\\u0000-\\u0020]+/,$d=/(^|[^\\u0000-\\u0020])[\\u0000-\\u0020]+$/,Kd=/[\\t\\n\\r]/g,Gd=function(t){var e,r,n,o;if(\"number\"==typeof t){for(e=[],r=0;r<4;r++)Td(e,t%256),t=md(t/256);return Ed(e,\".\")}if(\"object\"==typeof t){for(e=\"\",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r?n:e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?\":\":\"::\",o=!0):(e+=Od(t[r],16),r<7&&(e+=\":\")));return\"[\"+e+\"]\"}return t},Vd={},Yd=Kv({},Vd,{\" \":1,'\"':1,\"<\":1,\">\":1,\"`\":1}),Xd=Kv({},Yd,{\"#\":1,\"?\":1,\"{\":1,\"}\":1}),Jd=Kv({},Xd,{\"/\":1,\":\":1,\";\":1,\"=\":1,\"@\":1,\"[\":1,\"\\\\\":1,\"]\":1,\"^\":1,\"|\":1}),Qd=function(t,e){var r=fd(t,0);return r>32&&r<127&&!ut(e,t)?t:encodeURIComponent(t)},Zd={ftp:21,file:null,http:80,https:443,ws:80,wss:443},tg=function(t,e){var r;return 2===t.length&&Sd(Nd,wd(t,0))&&(\":\"===(r=wd(t,1))||!e&&\"|\"===r)},eg=function(t){var e;return t.length>1&&tg(kd(t,0,2))&&(2===t.length||\"/\"===(e=wd(t,2))||\"\\\\\"===e||\"?\"===e||\"#\"===e)},rg=function(t){return\".\"===t||\"%2e\"===Id(t)},ng={},og={},ig={},ag={},ug={},sg={},cg={},fg={},lg={},hg={},pg={},vg={},dg={},gg={},yg={},mg={},bg={},wg={},Sg={},Eg={},Og={},xg=function(t,e,r){var n,o,i,a=Wr(t);if(e){if(o=this.parse(a))throw new gd(o);this.searchParams=null}else{if(void 0!==r&&(n=new xg(r,!0)),o=this.parse(a,null,n))throw new gd(o);(i=vd(new pd)).bindURL(this),this.searchParams=i}};xg.prototype={type:\"URL\",parse:function(t,e,r){var n,o,i,a,u,s=this,c=e||ng,f=0,l=\"\",h=!1,p=!1,v=!1;for(t=Wr(t),e||(s.scheme=\"\",s.username=\"\",s.password=\"\",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,t=Pd(t,Hd,\"\"),t=Pd(t,$d,\"$1\")),t=Pd(t,Kd,\"\"),n=Wn(t);f<=n.length;){switch(o=n[f],c){case ng:if(!o||!Sd(Nd,o)){if(e)return Md;c=ig;continue}l+=Id(o),c=og;break;case og:if(o&&(Sd(Cd,o)||\"+\"===o||\"-\"===o||\".\"===o))l+=Id(o);else{if(\":\"!==o){if(e)return Md;l=\"\",c=ig,f=0;continue}if(e&&(s.isSpecial()!==ut(Zd,l)||\"file\"===l&&(s.includesCredentials()||null!==s.port)||\"file\"===s.scheme&&!s.host))return;if(s.scheme=l,e)return void(s.isSpecial()&&Zd[s.scheme]===s.port&&(s.port=null));l=\"\",\"file\"===s.scheme?c=gg:s.isSpecial()&&r&&r.scheme===s.scheme?c=ag:s.isSpecial()?c=fg:\"/\"===n[f+1]?(c=ug,f++):(s.cannotBeABaseURL=!0,Rd(s.path,\"\"),c=Sg)}break;case ig:if(!r||r.cannotBeABaseURL&&\"#\"!==o)return Md;if(r.cannotBeABaseURL&&\"#\"===o){s.scheme=r.scheme,s.path=vo(r.path),s.query=r.query,s.fragment=\"\",s.cannotBeABaseURL=!0,c=Og;break}c=\"file\"===r.scheme?gg:sg;continue;case ag:if(\"/\"!==o||\"/\"!==n[f+1]){c=sg;continue}c=lg,f++;break;case ug:if(\"/\"===o){c=hg;break}c=wg;continue;case sg:if(s.scheme=r.scheme,o===Wv)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query=r.query;else if(\"/\"===o||\"\\\\\"===o&&s.isSpecial())c=cg;else if(\"?\"===o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query=\"\",c=Eg;else{if(\"#\"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.path.length--,c=wg;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query=r.query,s.fragment=\"\",c=Og}break;case cg:if(!s.isSpecial()||\"/\"!==o&&\"\\\\\"!==o){if(\"/\"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=wg;continue}c=hg}else c=lg;break;case fg:if(c=lg,\"/\"!==o||\"/\"!==wd(l,f+1))continue;f++;break;case lg:if(\"/\"!==o&&\"\\\\\"!==o){c=hg;continue}break;case hg:if(\"@\"===o){h&&(l=\"%40\"+l),h=!0,i=Wn(l);for(var d=0;d65535)return Ud;s.port=s.isSpecial()&&m===Zd[s.scheme]?null:m,l=\"\"}if(e)return;c=bg;continue}return Ud}l+=o;break;case gg:if(s.scheme=\"file\",\"/\"===o||\"\\\\\"===o)c=yg;else{if(!r||\"file\"!==r.scheme){c=wg;continue}switch(o){case Wv:s.host=r.host,s.path=vo(r.path),s.query=r.query;break;case\"?\":s.host=r.host,s.path=vo(r.path),s.query=\"\",c=Eg;break;case\"#\":s.host=r.host,s.path=vo(r.path),s.query=r.query,s.fragment=\"\",c=Og;break;default:eg(Ed(vo(n,f),\"\"))||(s.host=r.host,s.path=vo(r.path),s.shortenPath()),c=wg;continue}}break;case yg:if(\"/\"===o||\"\\\\\"===o){c=mg;break}r&&\"file\"===r.scheme&&!eg(Ed(vo(n,f),\"\"))&&(tg(r.path[0],!0)?Rd(s.path,r.path[0]):s.host=r.host),c=wg;continue;case mg:if(o===Wv||\"/\"===o||\"\\\\\"===o||\"?\"===o||\"#\"===o){if(!e&&tg(l))c=wg;else if(\"\"===l){if(s.host=\"\",e)return;c=bg}else{if(a=s.parseHost(l))return a;if(\"localhost\"===s.host&&(s.host=\"\"),e)return;l=\"\",c=bg}continue}l+=o;break;case bg:if(s.isSpecial()){if(c=wg,\"/\"!==o&&\"\\\\\"!==o)continue}else if(e||\"?\"!==o)if(e||\"#\"!==o){if(o!==Wv&&(c=wg,\"/\"!==o))continue}else s.fragment=\"\",c=Og;else s.query=\"\",c=Eg;break;case wg:if(o===Wv||\"/\"===o||\"\\\\\"===o&&s.isSpecial()||!e&&(\"?\"===o||\"#\"===o)){if(\"..\"===(u=Id(u=l))||\"%2e.\"===u||\".%2e\"===u||\"%2e%2e\"===u?(s.shortenPath(),\"/\"===o||\"\\\\\"===o&&s.isSpecial()||Rd(s.path,\"\")):rg(l)?\"/\"===o||\"\\\\\"===o&&s.isSpecial()||Rd(s.path,\"\"):(\"file\"===s.scheme&&!s.path.length&&tg(l)&&(s.host&&(s.host=\"\"),l=wd(l,0)+\":\"),Rd(s.path,l)),l=\"\",\"file\"===s.scheme&&(o===Wv||\"?\"===o||\"#\"===o))for(;s.path.length>1&&\"\"===s.path[0];)Ad(s.path);\"?\"===o?(s.query=\"\",c=Eg):\"#\"===o&&(s.fragment=\"\",c=Og)}else l+=Qd(o,Xd);break;case Sg:\"?\"===o?(s.query=\"\",c=Eg):\"#\"===o?(s.fragment=\"\",c=Og):o!==Wv&&(s.path[0]+=Qd(o,Vd));break;case Eg:e||\"#\"!==o?o!==Wv&&(\"'\"===o&&s.isSpecial()?s.query+=\"%27\":s.query+=\"#\"===o?\"%23\":Qd(o,Vd)):(s.fragment=\"\",c=Og);break;case Og:o!==Wv&&(s.fragment+=Qd(o,Yd))}f++}},parseHost:function(t){var e,r,n;if(\"[\"===wd(t,0)){if(\"]\"!==wd(t,t.length-1))return Ld;if(e=function(t){var e,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,h=function(){return wd(t,l)};if(\":\"===h()){if(\":\"!==wd(t,1))return;l+=2,f=++c}for(;h();){if(8===c)return;if(\":\"!==h()){for(e=r=0;r<4&&Sd(zd,h());)e=16*e+yd(h(),16),l++,r++;if(\".\"===h()){if(0===r)return;if(l-=r,c>6)return;for(n=0;h();){if(o=null,n>0){if(!(\".\"===h()&&n<4))return;l++}if(!Sd(_d,h()))return;for(;Sd(_d,h());){if(i=yd(h(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;l++}s[c]=256*s[c]+o,2!=++n&&4!==n||c++}if(4!==n)return;break}if(\":\"===h()){if(l++,!h())return}else if(h())return;s[c++]=e}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!==c&&a>0;)u=s[c],s[c--]=s[f+a-1],s[f+--a]=u;else if(8!==c)return;return s}(kd(t,1,-1)),!e)return Ld;this.host=e}else if(this.isSpecial()){if(t=function(t){var e,r,n=[],o=id(od(ad(t),Yv,\".\"),\".\");for(e=0;e4)return t;for(r=[],n=0;n1&&\"0\"===wd(o,0)&&(i=Sd(Fd,o)?16:8,o=kd(o,8===i?1:2)),\"\"===o)a=0;else{if(!Sd(10===i?Dd:8===i?Bd:zd,o))return t;a=yd(o,i)}Rd(r,a)}for(n=0;n=bd(256,5-e))return null}else if(a>255)return null;for(u=xd(r),n=0;n1?arguments[1]:void 0,n=ld(e,new xg(t,!1,r));u||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Pg=Rg.prototype,Ag=function(t,e){return{get:function(){return hd(this)[t]()},set:e&&function(t){return hd(this)[e](t)},configurable:!0,enumerable:!0}};if(u&&(so(Pg,\"href\",Ag(\"serialize\",\"setHref\")),so(Pg,\"origin\",Ag(\"getOrigin\")),so(Pg,\"protocol\",Ag(\"getProtocol\",\"setProtocol\")),so(Pg,\"username\",Ag(\"getUsername\",\"setUsername\")),so(Pg,\"password\",Ag(\"getPassword\",\"setPassword\")),so(Pg,\"host\",Ag(\"getHost\",\"setHost\")),so(Pg,\"hostname\",Ag(\"getHostname\",\"setHostname\")),so(Pg,\"port\",Ag(\"getPort\",\"setPort\")),so(Pg,\"pathname\",Ag(\"getPathname\",\"setPathname\")),so(Pg,\"search\",Ag(\"getSearch\",\"setSearch\")),so(Pg,\"searchParams\",Ag(\"getSearchParams\")),so(Pg,\"hash\",Ag(\"getHash\",\"setHash\"))),ie(Pg,\"toJSON\",function(){return hd(this).serialize()},{enumerable:!0}),ie(Pg,\"toString\",function(){return hd(this).serialize()},{enumerable:!0}),dd){var jg=dd.createObjectURL,kg=dd.revokeObjectURL;jg&&ie(Rg,\"createObjectURL\",ar(jg,dd)),kg&&ie(Rg,\"revokeObjectURL\",ar(kg,dd))}an(Rg,\"URL\"),Ce({global:!0,constructor:!0,forced:!Mp,sham:!u},{URL:Rg});var Ig=L(\"URL\"),Tg=Mp&&a(function(){Ig.canParse()}),Mg=a(function(){return 1!==Ig.canParse.length});Ce({target:\"URL\",stat:!0,forced:!Tg||Mg},{canParse:function(t){var e=Up(arguments.length,1),r=Wr(t),n=e<2||void 0===arguments[1]?void 0:Wr(arguments[1]);try{return!!new Ig(r,n)}catch(t){return!1}}});var Lg=L(\"URL\");Ce({target:\"URL\",stat:!0,forced:!Mp},{parse:function(t){var e=Up(arguments.length,1),r=Wr(t),n=e<2||void 0===arguments[1]?void 0:Wr(arguments[1]);try{return new Lg(r,n)}catch(t){return null}}}),Ce({target:\"URL\",proto:!0,enumerable:!0},{toJSON:function(){return f(URL.prototype.toString,this)}});var Ug=WeakMap.prototype,Ng={WeakMap:WeakMap,set:b(Ug.set),get:b(Ug.get),has:b(Ug.has),remove:b(Ug.delete)},Cg=Ng.has,_g=function(t){return Cg(t),t},Fg=Ng.get,Bg=Ng.has,Dg=Ng.set;Ce({target:\"WeakMap\",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var r,n,o=_g(this);return Bg(o,t)?(r=Fg(o,t),\"update\"in e&&(r=e.update(r,t,o),Dg(o,t,r)),r):(n=e.insert(t,o),Dg(o,t,n),n)}}),Ce({target:\"WeakMap\",stat:!0,forced:!0},{from:ei(Ng.WeakMap,Ng.set,!0)}),Ce({target:\"WeakMap\",stat:!0,forced:!0},{of:ri(Ng.WeakMap,Ng.set,!0)});var zg=Ng.remove;Ce({target:\"WeakMap\",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=_g(this),r=!0,n=0,o=arguments.length;n2&&(n=r,M(o=arguments[2])&&\"cause\"in o&&_t(n,\"cause\",o.cause));var s=[];return Ao(t,ny,{that:s}),_t(r,\"errors\",s),r};dn?dn(oy,ry):Ae(oy,ry,{name:!0});var iy=oy.prototype=Ve(ry.prototype,{constructor:d(1,oy),message:d(1,\"\"),name:d(1,\"AggregateError\")});Ce({global:!0,constructor:!0,arity:2},{AggregateError:oy});var ay,uy,sy,cy,fy=function(t){return _.slice(0,t.length)===t},ly=fy(\"Bun/\")?\"BUN\":fy(\"Cloudflare-Workers\")?\"CLOUDFLARE\":fy(\"Deno/\")?\"DENO\":fy(\"Node.js/\")?\"NODE\":i.Bun&&\"string\"==typeof Bun.version?\"BUN\":i.Deno&&\"object\"==typeof Deno.version?\"DENO\":\"process\"===E(i.process)?\"NODE\":i.window&&i.document?\"BROWSER\":\"REST\",hy=\"NODE\"===ly,py=/(?:ipad|iphone|ipod).*applewebkit/i.test(_),vy=i.setImmediate,dy=i.clearImmediate,gy=i.process,yy=i.Dispatch,my=i.Function,by=i.MessageChannel,wy=i.String,Sy=0,Ey={},Oy=\"onreadystatechange\";a(function(){ay=i.location});var xy=function(t){if(ut(Ey,t)){var e=Ey[t];delete Ey[t],e()}},Ry=function(t){return function(){xy(t)}},Py=function(t){xy(t.data)},Ay=function(t){i.postMessage(wy(t),ay.protocol+\"//\"+ay.host)};vy&&dy||(vy=function(t){Up(arguments.length,1);var e=T(t)?t:my(t),r=vo(arguments,1);return Ey[++Sy]=function(){Ra(e,void 0,r)},uy(Sy),Sy},dy=function(t){delete Ey[t]},hy?uy=function(t){gy.nextTick(Ry(t))}:yy&&yy.now?uy=function(t){yy.now(Ry(t))}:by&&!py?(cy=(sy=new by).port2,sy.port1.onmessage=Py,uy=ar(cy.postMessage,cy)):i.addEventListener&&T(i.postMessage)&&!i.importScripts&&ay&&\"file:\"!==ay.protocol&&!a(Ay)?(uy=Ay,i.addEventListener(\"message\",Py,!1)):uy=Oy in Et(\"script\")?function(t){De.appendChild(Et(\"script\"))[Oy]=function(){De.removeChild(this),xy(t)}}:function(t){setTimeout(Ry(t),0)});var jy={set:vy,clear:dy},ky=function(){this.head=null,this.tail=null};ky.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Iy,Ty,My,Ly,Uy,Ny=ky,Cy=/ipad|iphone|ipod/i.test(_)&&\"undefined\"!=typeof Pebble,_y=/web0s(?!.*chrome)/i.test(_),Fy=jy.set,By=i.MutationObserver||i.WebKitMutationObserver,Dy=i.document,zy=i.process,Wy=i.Promise,qy=Ip(\"queueMicrotask\");if(!qy){var Hy=new Ny,$y=function(){var t,e;for(hy&&(t=zy.domain)&&t.exit();e=Hy.get();)try{e()}catch(t){throw Hy.head&&Iy(),t}t&&t.enter()};py||hy||_y||!By||!Dy?!Cy&&Wy&&Wy.resolve?((Ly=Wy.resolve(void 0)).constructor=Wy,Uy=ar(Ly.then,Ly),Iy=function(){Uy($y)}):hy?Iy=function(){zy.nextTick($y)}:(Fy=ar(Fy,i),Iy=function(){Fy($y)}):(Ty=!0,My=Dy.createTextNode(\"\"),new By($y).observe(My,{characterData:!0}),Iy=function(){My.data=Ty=!Ty}),qy=function(t){Hy.head||Iy(),Hy.add(t)}}var Ky,Gy,Vy,Yy=qy,Xy=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Jy=i.Promise,Qy=dt(\"species\"),Zy=!1,tm=T(i.PromiseRejectionEvent),em=Ue(\"Promise\",function(){var t=Kt(Jy),e=t!==String(Jy);if(!e&&66===W)return!0;if(!W||W<51||!/native code/.test(t)){var r=new Jy(function(t){t(1)}),n=function(t){t(function(){},function(){})};if((r.constructor={})[Qy]=n,!(Zy=r.then(function(){})instanceof n))return!0}return!(e||\"BROWSER\"!==ly&&\"DENO\"!==ly||tm)}),rm={CONSTRUCTOR:em,REJECTION_EVENT:tm,SUBCLASSING:Zy},nm=TypeError,om=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw new nm(\"Bad Promise constructor\");e=t,r=n}),this.resolve=J(e),this.reject=J(r)},im={f:function(t){return new om(t)}},am=jy.set,um=\"Promise\",sm=rm.CONSTRUCTOR,cm=rm.REJECTION_EVENT,fm=rm.SUBCLASSING,lm=ne.getterFor(um),hm=ne.set,pm=Jy&&Jy.prototype,vm=Jy,dm=pm,gm=i.TypeError,ym=i.document,mm=i.process,bm=im.f,wm=bm,Sm=!!(ym&&ym.createEvent&&i.dispatchEvent),Em=\"unhandledrejection\",Om=function(t){var e;return!(!M(t)||!T(e=t.then))&&e},xm=function(t,e){var r,n,o,i=e.value,a=1===e.state,u=a?t.ok:t.fail,s=t.resolve,c=t.reject,l=t.domain;try{u?(a||(2===e.rejection&&km(e),e.rejection=1),!0===u?r=i:(l&&l.enter(),r=u(i),l&&(l.exit(),o=!0)),r===t.promise?c(new gm(\"Promise-chain cycle\")):(n=Om(r))?f(n,r,s,c):s(r)):c(i)}catch(t){l&&!o&&l.exit(),c(t)}},Rm=function(t,e){t.notified||(t.notified=!0,Yy(function(){for(var r,n=t.reactions;r=n.get();)xm(r,t);t.notified=!1,e&&!t.rejection&&Am(t)}))},Pm=function(t,e,r){var n,o;Sm?((n=ym.createEvent(\"Event\")).promise=e,n.reason=r,n.initEvent(t,!1,!0),i.dispatchEvent(n)):n={promise:e,reason:r},!cm&&(o=i[\"on\"+t])?o(n):t===Em&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}(\"Unhandled promise rejection\",r)},Am=function(t){f(am,i,function(){var e,r=t.facade,n=t.value;if(jm(t)&&(e=Xy(function(){hy?mm.emit(\"unhandledRejection\",n,r):Pm(Em,r,n)}),t.rejection=hy||jm(t)?2:1,e.error))throw e.value})},jm=function(t){return 1!==t.rejection&&!t.parent},km=function(t){f(am,i,function(){var e=t.facade;hy?mm.emit(\"rejectionHandled\",e):Pm(\"rejectionhandled\",e,t.value)})},Im=function(t,e,r){return function(n){t(e,n,r)}},Tm=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Rm(t,!0))},Mm=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new gm(\"Promise can't be resolved itself\");var n=Om(e);n?Yy(function(){var r={done:!1};try{f(n,e,Im(Mm,r,t),Im(Tm,r,t))}catch(e){Tm(r,e,t)}}):(t.value=e,t.state=1,Rm(t,!1))}catch(e){Tm({done:!1},e,t)}}};if(sm&&(vm=function(t){ko(this,dm),J(t),f(Ky,this);var e=lm(this);try{t(Im(Mm,e),Im(Tm,e))}catch(t){Tm(e,t)}},(Ky=function(t){hm(this,{type:um,done:!1,notified:!1,parent:!1,reactions:new Ny,rejection:!1,state:0,value:null})}).prototype=ie(dm=vm.prototype,\"then\",function(t,e){var r=lm(this),n=bm(Cc(this,vm));return r.parent=!0,n.ok=!T(t)||t,n.fail=T(e)&&e,n.domain=hy?mm.domain:void 0,0===r.state?r.reactions.add(n):Yy(function(){xm(n,r)}),n.promise}),Gy=function(){var t=new Ky,e=lm(t);this.promise=t,this.resolve=Im(Mm,e),this.reject=Im(Tm,e)},im.f=bm=function(t){return t===vm||void 0===t?new Gy(t):wm(t)},T(Jy)&&pm!==Object.prototype)){Vy=pm.then,fm||ie(pm,\"then\",function(t,e){var r=this;return new vm(function(t,e){f(Vy,r,t,e)}).then(t,e)},{unsafe:!0});try{delete pm.constructor}catch(t){}dn&&dn(pm,dm)}Ce({global:!0,constructor:!0,wrap:!0,forced:sm},{Promise:vm}),an(vm,um,!1),Uo(um);var Lm=rm.CONSTRUCTOR||!Gn(function(t){Jy.all(t).then(void 0,function(){})});Ce({target:\"Promise\",stat:!0,forced:Lm},{all:function(t){var e=this,r=im.f(e),n=r.resolve,o=r.reject,i=Xy(function(){var r=J(e.resolve),i=[],a=0,u=1;Ao(t,function(t){var s=a++,c=!1;u++,f(r,e,t).then(function(t){c||(c=!0,i[s]=t,--u||n(i))},o)}),--u||n(i)});return i.error&&o(i.value),r.promise}});var Um=Jy&&Jy.prototype;if(Ce({target:\"Promise\",proto:!0,forced:rm.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),T(Jy)){var Nm=L(\"Promise\").prototype.catch;Um.catch!==Nm&&ie(Um,\"catch\",Nm,{unsafe:!0})}Ce({target:\"Promise\",stat:!0,forced:Lm},{race:function(t){var e=this,r=im.f(e),n=r.reject,o=Xy(function(){var o=J(e.resolve);Ao(t,function(t){f(o,e,t).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}}),Ce({target:\"Promise\",stat:!0,forced:rm.CONSTRUCTOR},{reject:function(t){var e=im.f(this);return(0,e.reject)(t),e.promise}});var Cm=function(t,e){if(kt(t),M(e)&&e.constructor===t)return e;var r=im.f(t);return(0,r.resolve)(e),r.promise};Ce({target:\"Promise\",stat:!0,forced:rm.CONSTRUCTOR},{resolve:function(t){return Cm(this,t)}}),Ce({target:\"Promise\",stat:!0,forced:Lm},{allSettled:function(t){var e=this,r=im.f(e),n=r.resolve,o=r.reject,i=Xy(function(){var r=J(e.resolve),o=[],i=0,a=1;Ao(t,function(t){var u=i++,s=!1;a++,f(r,e,t).then(function(t){s||(s=!0,o[u]={status:\"fulfilled\",value:t},--a||n(o))},function(t){s||(s=!0,o[u]={status:\"rejected\",reason:t},--a||n(o))})}),--a||n(o)});return i.error&&o(i.value),r.promise}});var _m=\"No one promise resolved\";Ce({target:\"Promise\",stat:!0,forced:Lm},{any:function(t){var e=this,r=L(\"AggregateError\"),n=im.f(e),o=n.resolve,i=n.reject,a=Xy(function(){var n=J(e.resolve),a=[],u=0,s=1,c=!1;Ao(t,function(t){var l=u++,h=!1;s++,f(n,e,t).then(function(t){h||c||(c=!0,o(t))},function(t){h||c||(h=!0,a[l]=t,--s||i(new r(a,_m)))})}),--s||i(new r(a,_m))});return a.error&&i(a.value),n.promise}}),Ce({target:\"Promise\",stat:!0},{withResolvers:function(){var t=im.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var Fm=Jy&&Jy.prototype,Bm=!!Jy&&a(function(){Fm.finally.call({then:function(){}},function(){})});if(Ce({target:\"Promise\",proto:!0,real:!0,forced:Bm},{finally:function(t){var e=Cc(this,L(\"Promise\")),r=T(t);return this.then(r?function(r){return Cm(e,t()).then(function(){return r})}:t,r?function(r){return Cm(e,t()).then(function(){throw r})}:t)}}),T(Jy)){var Dm=L(\"Promise\").prototype.finally;Fm.finally!==Dm&&ie(Fm,\"finally\",Dm,{unsafe:!0})}var zm=i.Promise,Wm=!1,qm=!zm||!zm.try||Xy(function(){zm.try(function(t){Wm=8===t},8)}).error||!Wm;Ce({target:\"Promise\",stat:!0,forced:qm},{try:function(t){var e=arguments.length>1?vo(arguments,1):[],r=im.f(this),n=Xy(function(){return Ra(J(t),void 0,e)});return(n.error?r.reject:r.resolve)(n.value),r.promise}}),Ze(\"Promise\",\"finally\");var Hm=\"URLSearchParams\"in self,$m=\"Symbol\"in self&&\"iterator\"in Symbol,Km=\"FileReader\"in self&&\"Blob\"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),Gm=\"FormData\"in self,Vm=\"ArrayBuffer\"in self;if(Vm)var Ym=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],Xm=ArrayBuffer.isView||function(t){return t&&Ym.indexOf(Object.prototype.toString.call(t))>-1};function Jm(t){if(\"string\"!=typeof t&&(t=String(t)),/[^a-z0-9\\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError(\"Invalid character in header field name\");return t.toLowerCase()}function Qm(t){return\"string\"!=typeof t&&(t=String(t)),t}function Zm(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return $m&&(e[Symbol.iterator]=function(){return e}),e}function tb(t){this.map={},t instanceof tb?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function eb(t){if(t.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));t.bodyUsed=!0}function rb(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function nb(t){var e=new FileReader,r=rb(e);return e.readAsArrayBuffer(t),r}function ob(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function ib(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?\"string\"==typeof t?this._bodyText=t:Km&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:Gm&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:Hm&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():Vm&&Km&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=ob(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Vm&&(ArrayBuffer.prototype.isPrototypeOf(t)||Xm(t))?this._bodyArrayBuffer=ob(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText=\"\",this.headers.get(\"content-type\")||(\"string\"==typeof t?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):Hm&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},Km&&(this.blob=function(){var t=eb(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?eb(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(nb)}),this.text=function(){var t=eb(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=rb(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n-1?e:t}(e.method||this.method||\"GET\"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&r)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(r)}function sb(t){var e=new FormData;return t.trim().split(\"&\").forEach(function(t){if(t){var r=t.split(\"=\"),n=r.shift().replace(/\\+/g,\" \"),o=r.join(\"=\").replace(/\\+/g,\" \");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function cb(t,e){e||(e={}),this.type=\"default\",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=\"statusText\"in e?e.statusText:\"OK\",this.headers=new tb(e.headers),this.url=e.url||\"\",this._initBody(t)}ub.prototype.clone=function(){return new ub(this,{body:this._bodyInit})},ib.call(ub.prototype),ib.call(cb.prototype),cb.prototype.clone=function(){return new cb(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new tb(this.headers),url:this.url})},cb.error=function(){var t=new cb(null,{status:0,statusText:\"\"});return t.type=\"error\",t};var fb=[301,302,303,307,308];cb.redirect=function(t,e){if(-1===fb.indexOf(e))throw new RangeError(\"Invalid status code\");return new cb(null,{status:e,headers:{location:t}})};var lb=self.DOMException;try{new lb}catch(t){(lb=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),lb.prototype.constructor=lb}function hb(t,e){return new Promise(function(r,n){var o=new ub(t,e);if(o.signal&&o.signal.aborted)return n(new lb(\"Aborted\",\"AbortError\"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var t,e,n={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||\"\",e=new tb,t.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(t){var r=t.split(\":\"),n=r.shift().trim();if(n){var o=r.join(\":\").trim();e.append(n,o)}}),e)};n.url=\"responseURL\"in i?i.responseURL:n.headers.get(\"X-Request-URL\"),r(new cb(\"response\"in i?i.response:i.responseText,n))},i.onerror=function(){n(new TypeError(\"Network request failed\"))},i.ontimeout=function(){n(new TypeError(\"Network request failed\"))},i.onabort=function(){n(new lb(\"Aborted\",\"AbortError\"))},i.open(o.method,o.url,!0),\"include\"===o.credentials?i.withCredentials=!0:\"omit\"===o.credentials&&(i.withCredentials=!1),\"responseType\"in i&&Km&&(i.responseType=\"blob\"),o.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),o.signal&&(o.signal.addEventListener(\"abort\",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener(\"abort\",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})}hb.polyfill=!0,self.fetch||(self.fetch=hb,self.Headers=tb,self.Request=ub,self.Response=cb);var pb=Object.getOwnPropertySymbols,vb=Object.prototype.hasOwnProperty,db=Object.prototype.propertyIsEnumerable,gb=function(){try{if(!Object.assign)return!1;var t=new String(\"abc\");if(t[5]=\"de\",\"5\"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e[\"_\"+String.fromCharCode(r)]=r;if(\"0123456789\"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(\"\"))return!1;var n={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(t){n[t]=t}),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},n)).join(\"\")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,o=function(t){if(null==t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}(t),i=1;i = ParamMap[Route] - -interface LayoutSlotMap { - "/": never -} - - -export type { AppRoutes, PageRoutes, LayoutRoutes, RedirectRoutes, RewriteRoutes, ParamMap, AppRouteHandlerRoutes } - -declare global { - /** - * Props for Next.js App Router page components - * @example - * ```tsx - * export default function Page(props: PageProps<'/blog/[slug]'>) { - * const { slug } = await props.params - * return
Blog post: {slug}
- * } - * ``` - */ - interface PageProps { - params: Promise - searchParams: Promise> - } - - /** - * Props for Next.js App Router layout components - * @example - * ```tsx - * export default function Layout(props: LayoutProps<'/dashboard'>) { - * return
{props.children}
- * } - * ``` - */ - type LayoutProps = { - params: Promise - children: React.ReactNode - } & { - [K in LayoutSlotMap[LayoutRoute]]: React.ReactNode - } - - /** - * Context for Next.js App Router route handlers - * @example - * ```tsx - * export async function GET(request: NextRequest, context: RouteContext<'/api/users/[id]'>) { - * const { id } = await context.params - * return Response.json({ id }) - * } - * ``` - */ - interface RouteContext { - params: Promise - } -} diff --git a/.next/dev/types/validator.ts b/.next/dev/types/validator.ts deleted file mode 100644 index 7e85fd8..0000000 --- a/.next/dev/types/validator.ts +++ /dev/null @@ -1,412 +0,0 @@ -// This file is generated automatically by Next.js -// Do not edit this file manually -// This file validates that all pages and layouts export the correct types - -import type { AppRoutes, LayoutRoutes, ParamMap, AppRouteHandlerRoutes } from "./routes.js" -import type { ResolvingMetadata, ResolvingViewport } from "next/types.js" -import type { NextRequest } from 'next/server.js' - -type AppPageConfig = { - default: React.ComponentType<{ params: Promise } & any> | ((props: { params: Promise } & any) => React.ReactNode | Promise | never | void | Promise) - generateStaticParams?: (props: { params: ParamMap[Route] }) => Promise | any[] - generateMetadata?: ( - props: { params: Promise } & any, - parent: ResolvingMetadata - ) => Promise | any - generateViewport?: ( - props: { params: Promise } & any, - parent: ResolvingViewport - ) => Promise | any - metadata?: any - viewport?: any -} - -type LayoutConfig = { - default: React.ComponentType> | ((props: LayoutProps) => React.ReactNode | Promise | never | void | Promise) - generateStaticParams?: (props: { params: ParamMap[Route] }) => Promise | any[] - generateMetadata?: ( - props: { params: Promise } & any, - parent: ResolvingMetadata - ) => Promise | any - generateViewport?: ( - props: { params: Promise } & any, - parent: ResolvingViewport - ) => Promise | any - metadata?: any - viewport?: any -} - -type RouteHandlerConfig = { - GET?: (request: NextRequest, context: { params: Promise }) => Promise | Response | void - POST?: (request: NextRequest, context: { params: Promise }) => Promise | Response | void - PUT?: (request: NextRequest, context: { params: Promise }) => Promise | Response | void - PATCH?: (request: NextRequest, context: { params: Promise }) => Promise | Response | void - DELETE?: (request: NextRequest, context: { params: Promise }) => Promise | Response | void - HEAD?: (request: NextRequest, context: { params: Promise }) => Promise | Response | void - OPTIONS?: (request: NextRequest, context: { params: Promise }) => Promise | Response | void -} - - -// Validate ../../../src/app/app-versions/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/app-versions/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/config-files/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/config-files/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/devices/[sn]/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/devices/[sn]/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/devices/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/devices/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/firmware/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/firmware/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/help/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/help/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/licenses/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/licenses/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/materials/categories/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/materials/categories/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/materials/manage/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/materials/manage/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/materials/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/materials/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/materials/register/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/materials/register/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/models/bom/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/models/bom/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/models/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/models/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/registration/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/registration/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/repair/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/repair/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/scrap/page.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/scrap/page.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/app-versions/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/app-versions/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/board-types/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/board-types/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/boards/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/boards/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/config-files/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/config-files/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/dashboard/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/dashboard/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/devices/detail/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/devices/detail/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/devices/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/devices/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/firmware/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/firmware/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/licenses/[id]/preview/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/licenses/[id]/preview/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/licenses/download/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/licenses/download/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/licenses/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/licenses/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/material-categories/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/material-categories/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/material-types/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/material-types/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/material-versions/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/material-versions/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/materials/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/materials/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/models/bom/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/models/bom/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/models/checklist/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/models/checklist/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/models/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/models/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/repair/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/repair/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/scrap/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/scrap/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/update-logs/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/update-logs/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - -// Validate ../../../src/app/api/upload/route.ts -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/api/upload/route.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -} - - - - - -// Validate ../../../src/app/layout.tsx -{ - type __IsExpected> = Specific - const handler = {} as typeof import("../../../src/app/layout.js") - type __Check = __IsExpected - // @ts-ignore - type __Unused = __Check -}